@momentum-design/components 0.51.0 → 0.51.2

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.
Files changed (31) hide show
  1. package/dist/browser/index.js +225 -185
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/select/select.component.d.ts +1 -1
  4. package/dist/components/select/select.component.js +7 -7
  5. package/dist/components/tab/tab.component.d.ts +21 -0
  6. package/dist/components/tab/tab.component.js +28 -1
  7. package/dist/components/tab/tab.styles.js +1 -0
  8. package/dist/components/tablist/index.d.ts +9 -0
  9. package/dist/components/tablist/index.js +6 -0
  10. package/dist/components/tablist/tablist.component.d.ts +230 -0
  11. package/dist/components/tablist/tablist.component.js +517 -0
  12. package/dist/components/tablist/tablist.constants.d.ts +12 -0
  13. package/dist/components/tablist/tablist.constants.js +13 -0
  14. package/dist/components/tablist/tablist.styles.d.ts +2 -0
  15. package/dist/components/tablist/tablist.styles.js +35 -0
  16. package/dist/components/tablist/tablist.types.d.ts +7 -0
  17. package/dist/components/tablist/tablist.types.js +1 -0
  18. package/dist/components/tablist/tablist.utils.d.ts +7 -0
  19. package/dist/components/tablist/tablist.utils.js +12 -0
  20. package/dist/custom-elements.json +265 -117
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.js +2 -1
  23. package/dist/react/index.d.ts +2 -1
  24. package/dist/react/index.js +2 -1
  25. package/dist/react/tab/index.d.ts +9 -0
  26. package/dist/react/tab/index.js +9 -0
  27. package/dist/react/tablist/index.d.ts +51 -0
  28. package/dist/react/tablist/index.js +59 -0
  29. package/dist/utils/styles/index.d.ts +2 -1
  30. package/dist/utils/styles/index.js +3 -3
  31. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Sl=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var l=(i,t,e,r)=>{for(var o=r>1?void 0:r?_l(t,e):t,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(t,e,o):a(o))||o);return r&&o&&Sl(t,e,o),o};var Hr=globalThis,Br=Hr.ShadowRoot&&(Hr.ShadyCSS===void 0||Hr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qo=Symbol(),gs=new WeakMap,lr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==qo)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(Br&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=gs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&gs.set(e,t))}return t}toString(){return this.cssText}},vs=i=>new lr(typeof i=="string"?i:i+"",void 0,qo),f=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new lr(e,i,qo)},Xo=(i,t)=>{if(Br)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=Hr.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Gr=Br?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return vs(e)})(i):i;var{is:Il,defineProperty:kl,getOwnPropertyDescriptor:wl,getOwnPropertyNames:Cl,getOwnPropertySymbols:Ll,getPrototypeOf:Nl}=Object,We=globalThis,ys=We.trustedTypes,Rl=ys?ys.emptyScript:"",Zo=We.reactiveElementPolyfillSupport,cr=(i,t)=>i,dr={toAttribute(i,t){switch(t){case Boolean:i=i?Rl: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}},Yr=(i,t)=>!Il(i,t),xs={attribute:!0,type:String,converter:dr,reflect:!1,hasChanged:Yr},Es,Ts;(Es=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ts=We.litPropertyMetadata)!=null||(We.litPropertyMetadata=new WeakMap);var Ce=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=xs){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&&kl(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var a;let{get:o,set:s}=(a=wl(this.prototype,t))!=null?a:{get(){return this[e]},set(n){this[e]=n}};return{get(){return o==null?void 0:o.call(this)},set(n){let d=o==null?void 0:o.call(this);s.call(this,n),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:xs}static _$Ei(){if(this.hasOwnProperty(cr("elementProperties")))return;let t=Nl(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(cr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cr("properties"))){let e=this.properties,r=[...Cl(e),...Ll(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(Gr(o))}else t!==void 0&&e.push(Gr(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 Xo(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 s;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let a=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:dr).toAttribute(e,r.type);this._$Em=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(t,e){var s;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let a=r.getPropertyOptions(o),n=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:dr;this._$Em=o,this[o]=n.fromAttribute(e,a.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:Yr)(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[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],n)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}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){}},As;Ce.elementStyles=[],Ce.shadowRootOptions={mode:"open"},Ce[cr("elementProperties")]=new Map,Ce[cr("finalized")]=new Map,Zo==null||Zo({ReactiveElement:Ce}),((As=We.reactiveElementVersions)!=null?As:We.reactiveElementVersions=[]).push("2.0.4");var pr=globalThis,Wr=pr.trustedTypes,Ss=Wr?Wr.createPolicy("lit-html",{createHTML:i=>i}):void 0,Qo="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,Jo="?"+Le,Ol=`<${Jo}>`,st=document,hr=()=>st.createComment(""),ur=i=>i===null||typeof i!="object"&&typeof i!="function",ei=Array.isArray,Ns=i=>ei(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",jo=`[
2
- \f\r]`,mr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_s=/-->/g,Is=/>/g,ot=RegExp(`>|${jo}(?:([^\\s"'>=/]+)(${jo}*=${jo}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ks=/'/g,ws=/"/g,Rs=/^(?:script|style|textarea|title)$/i,ti=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),p=ti(1),em=ti(2),tm=ti(3),Ne=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Cs=new WeakMap,it=st.createTreeWalker(st,129);function Os(i,t){if(!ei(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ss!==void 0?Ss.createHTML(t):t}var Ms=(i,t)=>{let e=i.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",a=mr;for(let n=0;n<e;n++){let d=i[n],m,h,u=-1,x=0;for(;x<d.length&&(a.lastIndex=x,h=a.exec(d),h!==null);)x=a.lastIndex,a===mr?h[1]==="!--"?a=_s:h[1]!==void 0?a=Is:h[2]!==void 0?(Rs.test(h[2])&&(o=RegExp("</"+h[2],"g")),a=ot):h[3]!==void 0&&(a=ot):a===ot?h[0]===">"?(a=o!=null?o:mr,u=-1):h[1]===void 0?u=-2:(u=a.lastIndex-h[2].length,m=h[1],a=h[3]===void 0?ot:h[3]==='"'?ws:ks):a===ws||a===ks?a=ot:a===_s||a===Is?a=mr:(a=ot,o=void 0);let g=a===ot&&i[n+1].startsWith("/>")?" ":"";s+=a===mr?d+Ol:u>=0?(r.push(m),d.slice(0,u)+Qo+d.slice(u)+Le+g):d+Le+(u===-2?n:g)}return[Os(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},fr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,a=0,n=t.length-1,d=this.parts,[m,h]=Ms(t,e);if(this.el=i.createElement(m,r),it.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=it.nextNode())!==null&&d.length<n;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(Qo)){let x=h[a++],g=o.getAttribute(u).split(Le),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:g,ctor:E[1]==="."?Xr:E[1]==="?"?Zr:E[1]==="@"?jr:nt}),o.removeAttribute(u)}else u.startsWith(Le)&&(d.push({type:6,index:s}),o.removeAttribute(u));if(Rs.test(o.tagName)){let u=o.textContent.split(Le),x=u.length-1;if(x>0){o.textContent=Wr?Wr.emptyScript:"";for(let g=0;g<x;g++)o.append(u[g],hr()),it.nextNode(),d.push({type:2,index:++s});o.append(u[x],hr())}}}else if(o.nodeType===8)if(o.data===Jo)d.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(Le,u+1))!==-1;)d.push({type:7,index:s}),u+=Le.length-1}s++}}static createElement(t,e){let r=st.createElement("template");return r.innerHTML=t,r}};function at(i,t,e=i,r){var a,n,d;if(t===Ne)return t;let o=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=ur(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==s&&((n=o==null?void 0:o._$AO)==null||n.call(o,!1),s===void 0?o=void 0:(o=new s(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=at(i,o._$AS(i,t.values),o,r)),t}var qr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,o=((m=t==null?void 0:t.creationScope)!=null?m:st).importNode(e,!0);it.currentNode=o;let s=it.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let h;d.type===2?h=new Rt(s,s.nextSibling,this,t):d.type===1?h=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(h=new Kr(s,this,t)),this._$AV.push(h),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=it.nextNode(),a++)}return it.currentNode=st,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++}},Rt=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 s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(s=o==null?void 0:o.isConnected)!=null?s:!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=at(this,t,e),ur(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ne&&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!==v&&ur(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=fr.createElement(Os(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===o)this._$AH.p(e);else{let a=new qr(o,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=Cs.get(t.strings);return e===void 0&&Cs.set(t.strings,e=new fr(t)),e}k(t){ei(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new i(this.O(hr()),this.O(hr()),this,this.options)):r=e[o],r._$AI(s),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))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=v}_$AI(t,e=this,r,o){let s=this.strings,a=!1;if(s===void 0)t=at(this,t,e,0),a=!ur(t)||t!==this._$AH&&t!==Ne,a&&(this._$AH=t);else{let n=t,d,m;for(t=s[0],d=0;d<s.length-1;d++)m=at(this,n[r+d],e,d),m===Ne&&(m=this._$AH[d]),a||(a=!ur(m)||m!==this._$AH[d]),m===v?t=v:t!==v&&(t+=(m!=null?m:"")+s[d+1]),this._$AH[d]=m}a&&!o&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Xr=class extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Zr=class extends nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},jr=class extends nt{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=at(this,t,e,0))!=null?a:v)===Ne)return;let r=this._$AH,o=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==v&&(r===v||o);o&&this.element.removeEventListener(this.name,this,r),s&&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)}},Kr=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){at(this,t)}},Ds={M:Qo,P:Le,A:Jo,C:1,L:Ms,R:qr,D:Ns,V:at,I:Rt,H:nt,N:Zr,U:jr,B:Xr,F:Kr},Ko=pr.litHtmlPolyfillSupport,Ls;Ko==null||Ko(fr,Rt),((Ls=pr.litHtmlVersions)!=null?Ls:pr.litHtmlVersions=[]).push("3.2.0");var $s=(i,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,o=r._$litPart$;if(o===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=o=new Rt(t.insertBefore(hr(),n),n,void 0,e!=null?e:{})}return o._$AI(i),o};var qe=class extends Ce{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=$s(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 Ne}},zs;qe._$litElement$=!0,qe.finalized=!0,(zs=globalThis.litElementHydrateSupport)==null||zs.call(globalThis,{LitElement:qe});var ri=globalThis.litElementPolyfillSupport;ri==null||ri({LitElement:qe});var Ps;((Ps=globalThis.litElementVersions)!=null?Ps:globalThis.litElementVersions=[]).push("4.1.0");var Ml={attribute:!0,type:String,converter:dr,reflect:!1,hasChanged:Yr},Dl=(i=Ml,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),s.set(e.name,i),r==="accessor"){let{name:a}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,d,i)},init(n){return n!==void 0&&this.P(a,void 0,i),n}}}if(r==="setter"){let{name:a}=e;return function(n){let d=this[a];t.call(this,n),this.requestUpdate(a,d,i)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(t,e)=>typeof e=="object"?Dl(i,t,e):((r,o,s)=>{let a=o.hasOwnProperty(s);return o.constructor.createProperty(s,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(o,s):void 0})(i,t,e)}function $(i){return c({...i,state:!0,attribute:!1})}var Re=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Ot(i,t){return(e,r,o)=>{let s=a=>{var n,d;return(d=(n=a.renderRoot)==null?void 0:n.querySelector(i))!=null?d:null};if(t){let{get:a,set:n}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return Re(e,r,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return Re(e,r,{get(){return s(this)}})}}function ue(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Re(t,e,{get(){var d,m;let a=(d=this.renderRoot)==null?void 0:d.querySelector(s),n=(m=a==null?void 0:a.assignedElements(i))!=null?m:[];return o===void 0?n:n.filter(h=>h.matches(o))}})}}function Vs(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return Re(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(o);return(n=s==null?void 0:s.assignedNodes(i))!=null?n:[]}})}}var C=f`
1
+ "use strict";(()=>{var zl=Object.defineProperty;var Pl=Object.getOwnPropertyDescriptor;var l=(i,r,e,t)=>{for(var o=t>1?void 0:t?Pl(r,e):r,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(t?s(r,e,o):s(o))||o);return t&&o&&zl(r,e,o),o};var qr=globalThis,Xr=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ei=Symbol(),wa=new WeakMap,mr=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==ei)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o,e=this.t;if(Xr&&r===void 0){let t=e!==void 0&&e.length===1;t&&(r=wa.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&wa.set(e,r))}return r}toString(){return this.cssText}},_a=i=>new mr(typeof i=="string"?i:i+"",void 0,ei),f=(i,...r)=>{let e=i.length===1?i[0]:r.reduce((t,o,a)=>t+(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 mr(e,i,ei)},ti=(i,r)=>{if(Xr)i.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of r){let t=document.createElement("style"),o=qr.litNonce;o!==void 0&&t.setAttribute("nonce",o),t.textContent=e.cssText,i.appendChild(t)}},Zr=Xr?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let e="";for(let t of r.cssRules)e+=t.cssText;return _a(e)})(i):i;var{is:Vl,defineProperty:Ul,getOwnPropertyDescriptor:Fl,getOwnPropertyNames:Bl,getOwnPropertySymbols:Hl,getPrototypeOf:Gl}=Object,Ze=globalThis,Ia=Ze.trustedTypes,Wl=Ia?Ia.emptyScript:"",ri=Ze.reactiveElementPolyfillSupport,pr=(i,r)=>i,hr={toAttribute(i,r){switch(r){case Boolean:i=i?Wl:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let e=i;switch(r){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}},jr=(i,r)=>!Vl(i,r),Ca={attribute:!0,type:String,converter:hr,reflect:!1,hasChanged:jr},ka,La;(ka=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(La=Ze.litPropertyMetadata)!=null||(Ze.litPropertyMetadata=new WeakMap);var Re=class extends HTMLElement{static addInitializer(r){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,e=Ca){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(r,e),!e.noAccessor){let t=Symbol(),o=this.getPropertyDescriptor(r,t,e);o!==void 0&&Ul(this.prototype,r,o)}}static getPropertyDescriptor(r,e,t){var s;let{get:o,set:a}=(s=Fl(this.prototype,r))!=null?s:{get(){return this[e]},set(n){this[e]=n}};return{get(){return o==null?void 0:o.call(this)},set(n){let d=o==null?void 0:o.call(this);a.call(this,n),this.requestUpdate(r,d,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){var e;return(e=this.elementProperties.get(r))!=null?e:Ca}static _$Ei(){if(this.hasOwnProperty(pr("elementProperties")))return;let r=Gl(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(pr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pr("properties"))){let e=this.properties,t=[...Bl(e),...Hl(e)];for(let o of t)this.createProperty(o,e[o])}let r=this[Symbol.metadata];if(r!==null){let e=litPropertyMetadata.get(r);if(e!==void 0)for(let[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let o=this._$Eu(e,t);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let e=[];if(Array.isArray(r)){let t=new Set(r.flat(1/0).reverse());for(let o of t)e.unshift(Zr(o))}else r!==void 0&&e.push(Zr(r));return e}static _$Eu(r,e){let t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(e=>e(this))}addController(r){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&((t=r.hostConnected)==null||t.call(r))}removeController(r){var e;(e=this._$EO)==null||e.delete(r)}_$E_(){let r=new Map,e=this.constructor.elementProperties;for(let t of e.keys())this.hasOwnProperty(t)&&(r.set(t,this[t]),delete this[t]);r.size>0&&(this._$Ep=r)}createRenderRoot(){var e;let r=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ti(r,this.constructor.elementStyles),r}connectedCallback(){var r,e;(r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostConnected)==null?void 0:o.call(t)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(r,e,t){this._$AK(r,t)}_$EC(r,e){var a;let t=this.constructor.elementProperties.get(r),o=this.constructor._$Eu(r,t);if(o!==void 0&&t.reflect===!0){let s=(((a=t.converter)==null?void 0:a.toAttribute)!==void 0?t.converter:hr).toAttribute(e,t.type);this._$Em=r,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(r,e){var a;let t=this.constructor,o=t._$Eh.get(r);if(o!==void 0&&this._$Em!==o){let s=t.getPropertyOptions(o),n=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:hr;this._$Em=o,this[o]=n.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(r,e,t){var o;if(r!==void 0){if(t!=null||(t=this.constructor.getPropertyOptions(r)),!((o=t.hasChanged)!=null?o:jr)(this[r],e))return;this.P(r,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,e,t){var o;this._$AL.has(r)||this._$AL.set(r,e),t.reflect===!0&&this._$Em!==r&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,n]of a)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let r=!1,e=this._$AL;try{r=this.shouldUpdate(e),r?(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 r=!1,this._$EU(),a}r&&this._$AE(e)}willUpdate(r){}_$AE(r){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostUpdated)==null?void 0:o.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(r){}firstUpdated(r){}},Ra;Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Re[pr("elementProperties")]=new Map,Re[pr("finalized")]=new Map,ri==null||ri({ReactiveElement:Re}),((Ra=Ze.reactiveElementVersions)!=null?Ra:Ze.reactiveElementVersions=[]).push("2.0.4");var fr=globalThis,Kr=fr.trustedTypes,Na=Kr?Kr.createPolicy("lit-html",{createHTML:i=>i}):void 0,ai="$lit$",Ne=`lit$${Math.random().toFixed(9).slice(2)}$`,si="?"+Ne,Yl=`<${si}>`,lt=document,br=()=>lt.createComment(""),gr=i=>i===null||typeof i!="object"&&typeof i!="function",ni=Array.isArray,Va=i=>ni(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",oi=`[
2
+ \f\r]`,ur=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oa=/-->/g,Ma=/>/g,st=RegExp(`>|${oi}(?:([^\\s"'>=/]+)(${oi}*=${oi}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Da=/'/g,$a=/"/g,Ua=/^(?:script|style|textarea|title)$/i,li=i=>(r,...e)=>({_$litType$:i,strings:r,values:e}),p=li(1),fm=li(2),bm=li(3),Oe=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),za=new WeakMap,nt=lt.createTreeWalker(lt,129);function Fa(i,r){if(!ni(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Na!==void 0?Na.createHTML(r):r}var Ba=(i,r)=>{let e=i.length-1,t=[],o,a=r===2?"<svg>":r===3?"<math>":"",s=ur;for(let n=0;n<e;n++){let d=i[n],m,h,u=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===ur?h[1]==="!--"?s=Oa:h[1]!==void 0?s=Ma:h[2]!==void 0?(Ua.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=st):h[3]!==void 0&&(s=st):s===st?h[0]===">"?(s=o!=null?o:ur,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,m=h[1],s=h[3]===void 0?st:h[3]==='"'?$a:Da):s===$a||s===Da?s=st:s===Oa||s===Ma?s=ur:(s=st,o=void 0);let g=s===st&&i[n+1].startsWith("/>")?" ":"";a+=s===ur?d+Yl:u>=0?(t.push(m),d.slice(0,u)+ai+d.slice(u)+Ne+g):d+Ne+(u===-2?n:g)}return[Fa(i,a+(i[e]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),t]},vr=class i{constructor({strings:r,_$litType$:e},t){let o;this.parts=[];let a=0,s=0,n=r.length-1,d=this.parts,[m,h]=Ba(r,e);if(this.el=i.createElement(m,t),nt.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=nt.nextNode())!==null&&d.length<n;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(ai)){let x=h[s++],g=o.getAttribute(u).split(Ne),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:g,ctor:E[1]==="."?Jr:E[1]==="?"?eo:E[1]==="@"?to:dt}),o.removeAttribute(u)}else u.startsWith(Ne)&&(d.push({type:6,index:a}),o.removeAttribute(u));if(Ua.test(o.tagName)){let u=o.textContent.split(Ne),x=u.length-1;if(x>0){o.textContent=Kr?Kr.emptyScript:"";for(let g=0;g<x;g++)o.append(u[g],br()),nt.nextNode(),d.push({type:2,index:++a});o.append(u[x],br())}}}else if(o.nodeType===8)if(o.data===si)d.push({type:2,index:a});else{let u=-1;for(;(u=o.data.indexOf(Ne,u+1))!==-1;)d.push({type:7,index:a}),u+=Ne.length-1}a++}}static createElement(r,e){let t=lt.createElement("template");return t.innerHTML=r,t}};function ct(i,r,e=i,t){var s,n,d;if(r===Oe)return r;let o=t!==void 0?(s=e.o)==null?void 0:s[t]:e.l,a=gr(r)?void 0:r._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((n=o==null?void 0:o._$AO)==null||n.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,t)),t!==void 0?((d=e.o)!=null?d:e.o=[])[t]=o:e.l=o),o!==void 0&&(r=ct(i,o._$AS(i,r.values),o,t)),r}var Qr=class{constructor(r,e){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){var m;let{el:{content:e},parts:t}=this._$AD,o=((m=r==null?void 0:r.creationScope)!=null?m:lt).importNode(e,!0);nt.currentNode=o;let a=nt.nextNode(),s=0,n=0,d=t[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new $t(a,a.nextSibling,this,r):d.type===1?h=new d.ctor(a,d.name,d.strings,this,r):d.type===6&&(h=new ro(a,this,r)),this._$AV.push(h),d=t[++n]}s!==(d==null?void 0:d.index)&&(a=nt.nextNode(),s++)}return nt.currentNode=lt,o}p(r){let e=0;for(let t of this._$AV)t!==void 0&&(t.strings!==void 0?(t._$AI(r,t,e),e+=t.strings.length-2):t._$AI(r[e])),e++}},$t=class i{get _$AU(){var r,e;return(e=(r=this._$AM)==null?void 0:r._$AU)!=null?e:this.v}constructor(r,e,t,o){var a;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=r,this._$AB=e,this._$AM=t,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let r=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=e.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,e=this){r=ct(this,r,e),gr(r)?r===y||r==null||r===""?(this._$AH!==y&&this._$AR(),this._$AH=y):r!==this._$AH&&r!==Oe&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Va(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==y&&gr(this._$AH)?this._$AA.nextSibling.data=r:this.T(lt.createTextNode(r)),this._$AH=r}$(r){var a;let{values:e,_$litType$:t}=r,o=typeof t=="number"?this._$AC(r):(t.el===void 0&&(t.el=vr.createElement(Fa(t.h,t.h[0]),this.options)),t);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new Qr(o,this),n=s.u(this.options);s.p(e),this.T(n),this._$AH=s}}_$AC(r){let e=za.get(r.strings);return e===void 0&&za.set(r.strings,e=new vr(r)),e}k(r){ni(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,t,o=0;for(let a of r)o===e.length?e.push(t=new i(this.O(br()),this.O(br()),this,this.options)):t=e[o],t._$AI(a),o++;o<e.length&&(this._$AR(t&&t._$AB.nextSibling,o),e.length=o)}_$AR(r=this._$AA.nextSibling,e){var t;for((t=this._$AP)==null?void 0:t.call(this,!1,!0,e);r&&r!==this._$AB;){let o=r.nextSibling;r.remove(),r=o}}setConnected(r){var e;this._$AM===void 0&&(this.v=r,(e=this._$AP)==null||e.call(this,r))}},dt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,e,t,o,a){this.type=1,this._$AH=y,this._$AN=void 0,this.element=r,this.name=e,this._$AM=o,this.options=a,t.length>2||t[0]!==""||t[1]!==""?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=y}_$AI(r,e=this,t,o){let a=this.strings,s=!1;if(a===void 0)r=ct(this,r,e,0),s=!gr(r)||r!==this._$AH&&r!==Oe,s&&(this._$AH=r);else{let n=r,d,m;for(r=a[0],d=0;d<a.length-1;d++)m=ct(this,n[t+d],e,d),m===Oe&&(m=this._$AH[d]),s||(s=!gr(m)||m!==this._$AH[d]),m===y?r=y:r!==y&&(r+=(m!=null?m:"")+a[d+1]),this._$AH[d]=m}s&&!o&&this.j(r)}j(r){r===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r!=null?r:"")}},Jr=class extends dt{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===y?void 0:r}},eo=class extends dt{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==y)}},to=class extends dt{constructor(r,e,t,o,a){super(r,e,t,o,a),this.type=5}_$AI(r,e=this){var s;if((r=(s=ct(this,r,e,0))!=null?s:y)===Oe)return;let t=this._$AH,o=r===y&&t!==y||r.capture!==t.capture||r.once!==t.once||r.passive!==t.passive,a=r!==y&&(t===y||o);o&&this.element.removeEventListener(this.name,this,t),a&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var e,t;typeof this._$AH=="function"?this._$AH.call((t=(e=this.options)==null?void 0:e.host)!=null?t:this.element,r):this._$AH.handleEvent(r)}},ro=class{constructor(r,e,t){this.element=r,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(r){ct(this,r)}},Ha={M:ai,P:Ne,A:si,C:1,L:Ba,R:Qr,D:Va,V:ct,I:$t,H:dt,N:eo,U:to,B:Jr,F:ro},ii=fr.litHtmlPolyfillSupport,Pa;ii==null||ii(vr,$t),((Pa=fr.litHtmlVersions)!=null?Pa:fr.litHtmlVersions=[]).push("3.2.0");var Ga=(i,r,e)=>{var a,s;let t=(a=e==null?void 0:e.renderBefore)!=null?a:r,o=t._$litPart$;if(o===void 0){let n=(s=e==null?void 0:e.renderBefore)!=null?s:null;t._$litPart$=o=new $t(r.insertBefore(br(),n),n,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,t;let r=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=r.firstChild),r}update(r){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this.o=Ga(e,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this.o)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.o)==null||r.setConnected(!1)}render(){return Oe}},Wa;je._$litElement$=!0,je.finalized=!0,(Wa=globalThis.litElementHydrateSupport)==null||Wa.call(globalThis,{LitElement:je});var ci=globalThis.litElementPolyfillSupport;ci==null||ci({LitElement:je});var Ya;((Ya=globalThis.litElementVersions)!=null?Ya:globalThis.litElementVersions=[]).push("4.1.0");var ql={attribute:!0,type:String,converter:hr,reflect:!1,hasChanged:jr},Xl=(i=ql,r,e)=>{let{kind:t,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),t==="accessor"){let{name:s}=e;return{set(n){let d=r.get.call(this);r.set.call(this,n),this.requestUpdate(s,d,i)},init(n){return n!==void 0&&this.P(s,void 0,i),n}}}if(t==="setter"){let{name:s}=e;return function(n){let d=this[s];r.call(this,n),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+t)};function c(i){return(r,e)=>typeof e=="object"?Xl(i,r,e):((t,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,r,e)}function M(i){return c({...i,state:!0,attribute:!1})}var Me=(i,r,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,e),e);function De(i,r){return(e,t,o)=>{let a=s=>{var n,d;return(d=(n=s.renderRoot)==null?void 0:n.querySelector(i))!=null?d:null};if(r){let{get:s,set:n}=typeof t=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return Me(e,t,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return Me(e,t,{get(){return a(this)}})}}function te(i){return(r,e)=>{let{slot:t,selector:o}=i!=null?i:{},a="slot"+(t?`[name=${t}]`:":not([name])");return Me(r,e,{get(){var d,m;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),n=(m=s==null?void 0:s.assignedElements(i))!=null?m:[];return o===void 0?n:n.filter(h=>h.matches(o))}})}}function qa(i){return(r,e)=>{let{slot:t}=i!=null?i:{},o="slot"+(t?`[name=${t}]`:":not([name])");return Me(r,e,{get(){var s,n;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(n=a==null?void 0:a.assignedNodes(i))!=null?n:[]}})}}var k=f`
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
- `,R=(i=!1)=>{let t=f`
11
+ `,oo=f`
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);
@@ -21,10 +21,10 @@
21
21
  --mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
22
22
  --mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
23
23
  }
24
- `,e=f`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
24
+ `,N=(i=!1)=>{let r=f`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?[t,f`
27
+ `;return i?[oo,f`
28
28
  .mdc-focus-ring:focus-visible {
29
29
  outline: none;
30
30
  }
@@ -34,7 +34,7 @@
34
34
  /* Add focus ring to parent when child is focused. The parent element must have class name mdc-focus-ring */
35
35
  .mdc-focus-ring:focus-within {
36
36
  position: relative;
37
- box-shadow: ${e};
37
+ box-shadow: ${r};
38
38
  }
39
39
  /* Remove focus ring from parent when children has its own focus ring.
40
40
  The child element must have class name own-focus-ring */
@@ -48,14 +48,14 @@
48
48
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
49
49
  }
50
50
  }
51
- `]:[t,f`
51
+ `]:[oo,f`
52
52
  :host([disabled]:focus) {
53
53
  box-shadow: none;
54
54
  }
55
55
  :host(:focus-visible) {
56
56
  outline: none;
57
57
  position: relative;
58
- box-shadow: ${e};
58
+ box-shadow: ${r};
59
59
  }
60
60
  /* High Contrast Mode */
61
61
  @media (forced-colors: active) {
@@ -63,7 +63,7 @@
63
63
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
64
64
  }
65
65
  }
66
- `]};var $l=f`
66
+ `]};var Zl=f`
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
- `,Us=[C,$l,...R()];var Fs=f`
169
+ `,Xa=[k,Zl,...N()];var Za=f`
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 Qr=class extends qe{static register(t){customElements.get(t)||customElements.define(t,this)}};Qr.styles=[Fs];var Hs=Qr;var y=Hs;var Xe=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 Mt=class{constructor(t,e,r,o){var s;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,n)),this.unsubscribe=n},this.host=t,e.context!==void 0){let a=e;this.context=a.context,this.callback=a.callback,this.subscribe=(s=a.subscribe)!=null?s:!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 Xe(this.context,this.t,this.subscribe))}};var Jr=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 oi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Dt=class extends Jr{constructor(t,e,r){var o,s;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=a=>{let n=a.composedPath()[0];a.context===this.context&&n!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,n,a.subscribe))},this.onProviderRequest=a=>{let n=a.composedPath()[0];if(a.context!==this.context||n===this.host)return;let d=new Set;for(let[m,{consumerHost:h}]of this.subscriptions)d.has(m)||(d.add(m),h.dispatchEvent(new Xe(this.context,m,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(s=(o=this.host).addController)==null||s.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new oi(this.context))}};var zl=f`
179
+ `;var io=class extends je{static register(r){customElements.get(r)||customElements.define(r,this)}};io.styles=[Za];var ja=io;var v=ja;var Ke=class extends Event{constructor(r,e,t){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.callback=e,this.subscribe=t!=null?t:!1}};var zt=class{constructor(r,e,t,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(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,n)),this.unsubscribe=n},this.host=r,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=t,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 Ke(this.context,this.t,this.subscribe))}};var ao=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,e=!1){let t=e||!Object.is(r,this.o);this.o=r,t&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},r!==void 0&&(this.value=r)}addCallback(r,e,t){if(!t)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:e});let{disposer:o}=this.subscriptions.get(r);r(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var di=class extends Event{constructor(r){super("context-provider",{bubbles:!0,composed:!0}),this.context=r}},Pt=class extends ao{constructor(r,e,t){var o,a;super(e.context!==void 0?e.initialValue:t),this.onContextRequest=s=>{let n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{let n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;let d=new Set;for(let[m,{consumerHost:h}]of this.subscriptions)d.has(m)||(d.add(m),h.dispatchEvent(new Ke(this.context,m,!0)));s.stopPropagation()},this.host=r,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 di(this.context))}};var jl=f`
180
180
  :host {
181
181
  display: contents;
182
182
  }
183
- `,Gs=zl;var eo=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Dt(this,{context:t,initialValue:e})}render(){return this.updateContext(),p`<slot></slot>`}};eo.styles=[...y.styles,Gs];var Ys=eo;var $t=Ys;var Pl={PREFIX:"mdc",SEPARATOR:"-"},Vl={NAMESPACE:Pl},ii=Vl;var Ul=i=>[ii.NAMESPACE.PREFIX,i].join(ii.NAMESPACE.SEPARATOR),b={constructTagName:Ul};var Hp=b.constructTagName("buttonsimple"),br={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},zt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},to={SIZE:br[32],TYPE:zt.BUTTON,ROLE:"button"};var gr=b.constructTagName("text"),_={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},w={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},te={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ws=b.constructTagName("alertchip"),lt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Pt={VARIANT:lt.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:br[24],ROLE:"button"};var qs=i=>({[lt.ERROR]:"error-legacy-badge-filled",[lt.WARNING]:"warning-badge-filled",[lt.SUCCESS]:"check-circle-badge-filled",[lt.INFORMATIONAL]:"info-badge-filled",[lt.NEUTRAL]:"dnd-presence-badge-filled"})[i];var se=i=>{class t extends i{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var ro=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Fl=[C,f`
183
+ `,Qa=jl;var so=class extends v{constructor({context:r,initialValue:e}){super(),this.context=new Pt(this,{context:r,initialValue:e})}render(){return this.updateContext(),p`<slot></slot>`}};so.styles=[...v.styles,Qa];var Ja=so;var Vt=Ja;var Kl={PREFIX:"mdc",SEPARATOR:"-"},Ql={NAMESPACE:Kl},mi=Ql;var Jl=i=>[mi.NAMESPACE.PREFIX,i].join(mi.NAMESPACE.SEPARATOR),b={constructTagName:Jl};var oh=b.constructTagName("buttonsimple"),yr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ut={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},no={SIZE:yr[32],TYPE:Ut.BUTTON,ROLE:"button"};var xr=b.constructTagName("text"),w={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"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},re={TYPE:w.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var es=b.constructTagName("alertchip"),mt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ft={VARIANT:mt.NEUTRAL,TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:yr[24],ROLE:"button"};var ts=i=>({[mt.ERROR]:"error-legacy-badge-filled",[mt.WARNING]:"warning-badge-filled",[mt.SUCCESS]:"check-circle-badge-filled",[mt.INFORMATIONAL]:"info-badge-filled",[mt.NEUTRAL]:"dnd-presence-badge-filled"})[i];var ne=i=>{class r extends i{}return l([c({reflect:!0,type:Boolean})],r.prototype,"disabled",2),r};var lo=i=>{class r extends i{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],r.prototype,"tabIndex",2),r};var ec=[k,f`
184
184
  :host {
185
185
  border: 0.0625rem solid transparent;
186
186
  cursor: pointer;
@@ -236,12 +236,12 @@
236
236
  :host([size="20"]){
237
237
  height: var(--mdc-button-height-size-20);
238
238
  }
239
- `,...R()],Xs=Fl;var Ee=class extends ro(se(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=to.SIZE;this.role=to.ROLE;this.type=to.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===zt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===zt.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.key===" "&&e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return p`
239
+ `,...N()],rs=ec;var Ae=class extends lo(ne(v)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=no.SIZE;this.role=no.ROLE;this.type=no.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===Ut.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ut.RESET&&this.form&&this.form.reset()}setActive(e,t){t?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,t){t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,t){t?(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.key===" "&&e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return p`
240
240
  <slot></slot>
241
- `}};Ee.formAssociated=!0,Ee.styles=[...y.styles,...Xs],l([c({type:Boolean,reflect:!0})],Ee.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],Ee.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],Ee.prototype,"size",2),l([c({type:String,reflect:!0})],Ee.prototype,"role",2),l([c({reflect:!0})],Ee.prototype,"type",2);var ae=Ee;var Vt=class extends ae{constructor(){super(...arguments);this.variant=Pt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Pt.SIZE,this.role=Pt.ROLE}render(){return p`
242
- <mdc-icon part="icon" name="${qs(this.variant)}" length-unit="rem" size="1"></mdc-icon>
243
- <mdc-text part="label" type="${Pt.TEXT_TYPE}" tagname="${Pt.TAG_NAME}">${this.label}</mdc-text>
244
- `}};Vt.styles=[...y.styles,...Us],l([c({type:String})],Vt.prototype,"variant",2),l([c({type:String})],Vt.prototype,"label",2);var si=Vt;var Zs=f`
241
+ `}};Ae.formAssociated=!0,Ae.styles=[...v.styles,...rs],l([c({type:Boolean,reflect:!0})],Ae.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],Ae.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],Ae.prototype,"size",2),l([c({type:String,reflect:!0})],Ae.prototype,"role",2),l([c({reflect:!0})],Ae.prototype,"type",2);var le=Ae;var Bt=class extends le{constructor(){super(...arguments);this.variant=Ft.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ft.SIZE,this.role=Ft.ROLE}render(){return p`
242
+ <mdc-icon part="icon" name="${ts(this.variant)}" length-unit="rem" size="1"></mdc-icon>
243
+ <mdc-text part="label" type="${Ft.TEXT_TYPE}" tagname="${Ft.TAG_NAME}">${this.label}</mdc-text>
244
+ `}};Bt.styles=[...v.styles,...Xa],l([c({type:String})],Bt.prototype,"variant",2),l([c({type:String})],Bt.prototype,"label",2);var pi=Bt;var os=f`
245
245
  :host::part(text) {
246
246
  font-size: unset;
247
247
  font-weight: unset;
@@ -484,14 +484,14 @@
484
484
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
485
485
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
486
486
  }
487
- `;var Hl=[f`
487
+ `;var tc=[f`
488
488
  :host {
489
489
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
490
490
 
491
491
  display: block;
492
492
  font-family: var(--mdc-text-font-family);
493
493
  }
494
- `,Zs],js=Hl;var Ut=class extends y{constructor(){super(...arguments);this.type=te.TYPE;this.tagname=te.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return p`<h1 part=${te.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return p`<h2 part=${te.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return p`<h3 part=${te.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return p`<h4 part=${te.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return p`<h5 part=${te.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return p`<h6 part=${te.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return p`<div part=${te.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return p`<span part=${te.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return p`<small part=${te.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return p`<p part=${te.CSS_PART_TEXT}><slot></slot></p>`}}};Ut.styles=[...y.styles,...js],l([c({attribute:"type",reflect:!0,type:String})],Ut.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Ut.prototype,"tagname",2);var ai=Ut;ai.register(gr);var Bl=ai;var Gl=[C,f`
494
+ `,os],is=tc;var Ht=class extends v{constructor(){super(...arguments);this.type=re.TYPE;this.tagname=re.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return p`<h1 part=${re.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return p`<h2 part=${re.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return p`<h3 part=${re.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return p`<h4 part=${re.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return p`<h5 part=${re.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return p`<h6 part=${re.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return p`<div part=${re.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return p`<span part=${re.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return p`<small part=${re.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return p`<p part=${re.CSS_PART_TEXT}><slot></slot></p>`}}};Ht.styles=[...v.styles,...is],l([c({attribute:"type",reflect:!0,type:String})],Ht.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Ht.prototype,"tagname",2);var hi=Ht;hi.register(xr);var rc=hi;var oc=[k,f`
495
495
  :host {
496
496
  --mdc-icon-fill-color: currentColor;
497
497
  --mdc-icon-size: var(--computed-icon-size);
@@ -506,7 +506,7 @@
506
506
  width: 100%;
507
507
  fill: var(--mdc-icon-fill-color);
508
508
  }
509
- `,...R()],Ks=Gl;var Yl=i=>{let{host:t,context:e,subscribe:r}=i;return new Mt(t,{context:e,subscribe:r!=null?r:!0})},Wl={consume:Yl},Qs=Wl;var oo=b.constructTagName("iconprovider"),Js=["svg"],ea=["em","rem","px","%"],ql={px:16,em:1,rem:1,"%":100},Oe={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ql.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var io=class{};io.context=oo;var so=io;var Te=class extends $t{constructor(){super({context:so.context,initialValue:new so});this.iconSet=Oe.ICON_SET;this.fileExtension=Oe.FILE_EXTENSION;this.lengthUnit=Oe.LENGTH_UNIT;this.size=Oe.SIZE}static get Context(){return so.context}updateValuesInContext(){this.fileExtension&&Js.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Oe.FILE_EXTENSION,this.context.value.fileExtension=Oe.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&&ea.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Oe.LENGTH_UNIT,this.context.value.lengthUnit=Oe.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())}};l([c({type:String,attribute:"icon-set",reflect:!0})],Te.prototype,"iconSet",2),l([c({type:String})],Te.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],Te.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],Te.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],Te.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],Te.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],Te.prototype,"cacheName",2);var vr=Te;var yr={},ta=async i=>(yr[i]===void 0&&(yr[i]=new Map),{async set(t,e){yr[i].set(t.url,await e.text())},async get(t){return yr[i].get(t.url)},async delete(t){yr[i].delete(t.url)}}),ra=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)}}},oa=async(i,t)=>t==="in-memory-cache"?ta(i):ra(i);var ia=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),sa=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:s})=>{let a=s(),n=new Request(`${i}/${t}.${e}`,{signal:a});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?ia(n).then(d=>d.text()):oa(o,r).then(d=>d.get(n).then(m=>m||ia(n.clone()).then(h=>{var u;return h.status<400&&h.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var aa=b.constructTagName("icon"),ni={NAME:void 0,SIZE:1};var re=class extends y{constructor(){super();this.name=ni.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Qs.consume({host:this,context:vr.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:s,iconSet:a,cacheStrategy:n}=this.iconProviderContext.value;if(a==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return sa({url:o,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:n,renewSignal:d}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(a==="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:ni.SIZE}updated(e){var r,o,s,a;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(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!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(a=this.iconProviderContext.value)==null?void 0:a.size,this.updateSize())}render(){return p` ${this.iconData} `}};re.styles=[...y.styles,...Ks],l([$()],re.prototype,"iconData",2),l([$()],re.prototype,"lengthUnitFromContext",2),l([$()],re.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],re.prototype,"name",2),l([c({type:Number})],re.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],re.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],re.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],re.prototype,"ariaLabelledBy",2),l([$()],re.prototype,"abortController",2);var li=re;li.register(aa);var Xl=li;si.register(Ws);var Zl=si;var jl=f`
509
+ `,...N()],as=oc;var ic=i=>{let{host:r,context:e,subscribe:t}=i;return new zt(r,{context:e,subscribe:t!=null?t:!0})},ac={consume:ic},ss=ac;var co=b.constructTagName("iconprovider"),ns=["svg"],ls=["em","rem","px","%"],sc={px:16,em:1,rem:1,"%":100},$e={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:sc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var mo=class{};mo.context=co;var po=mo;var Se=class extends Vt{constructor(){super({context:po.context,initialValue:new po});this.iconSet=$e.ICON_SET;this.fileExtension=$e.FILE_EXTENSION;this.lengthUnit=$e.LENGTH_UNIT;this.size=$e.SIZE}static get Context(){return po.context}updateValuesInContext(){this.fileExtension&&ns.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=$e.FILE_EXTENSION,this.context.value.fileExtension=$e.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=$e.LENGTH_UNIT,this.context.value.lengthUnit=$e.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())}};l([c({type:String,attribute:"icon-set",reflect:!0})],Se.prototype,"iconSet",2),l([c({type:String})],Se.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],Se.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],Se.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],Se.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],Se.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],Se.prototype,"cacheName",2);var Er=Se;var Tr={},cs=async i=>(Tr[i]===void 0&&(Tr[i]=new Map),{async set(r,e){Tr[i].set(r.url,await e.text())},async get(r){return Tr[i].get(r.url)},async delete(r){Tr[i].delete(r.url)}}),ds=async i=>{let r=await caches.open(i);return{set:async(e,t)=>{await r.put(e,t)},get:async e=>{let t=await r.match(e);return t==null?void 0:t.text()},delete:async e=>{await r.delete(e)}}},ms=async(i,r)=>r==="in-memory-cache"?cs(i):ds(i);var ps=async i=>fetch(i).then(r=>{if(!r.ok)throw new Error("There was a problem while fetching the icon!");return r}),hs=async({url:i,name:r,fileExtension:e,cacheStrategy:t,cacheName:o,renewSignal:a})=>{let s=a(),n=new Request(`${i}/${r}.${e}`,{signal:s});return!o||!t||!["in-memory-cache","web-cache-api"].includes(t)?ps(n).then(d=>d.text()):ms(o,t).then(d=>d.get(n).then(m=>m||ps(n.clone()).then(h=>{var u;return h.status<400&&h.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${r}, ${m}`)}))};var us=b.constructTagName("icon"),ui={NAME:void 0,SIZE:1};var oe=class extends v{constructor(){super();this.name=ui.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ss.consume({host:this,context:Er.Context});this.abortController=new AbortController}prepareIconElement(e){let t=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&t.setAttribute("data-name",this.name),t.setAttribute("part","icon"),t.setAttribute("aria-hidden","true"),t}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:t,url:o,cacheName:a,iconSet:s,cacheStrategy:n}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&t&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return hs({url:o,name:this.name,fileExtension:t,cacheName:a,cacheStrategy:n,renewSignal:d}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(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 t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleIconLoadedFailure(e){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(t)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let t=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",t)}}get computedIconSize(){var e,t;return(t=(e=this.size)!=null?e:this.sizeFromContext)!=null?t:ui.SIZE}updated(e){var t,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((t=this.iconProviderContext.value)==null?void 0:t.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 p` ${this.iconData} `}};oe.styles=[...v.styles,...as],l([M()],oe.prototype,"iconData",2),l([M()],oe.prototype,"lengthUnitFromContext",2),l([M()],oe.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],oe.prototype,"name",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],oe.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],oe.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],oe.prototype,"ariaLabelledBy",2),l([M()],oe.prototype,"abortController",2);var fi=oe;fi.register(us);var nc=fi;pi.register(es);var lc=pi;var cc=f`
510
510
  :host {
511
511
  --mdc-appheader-height: 4rem;
512
512
  }
@@ -540,7 +540,7 @@
540
540
  :host::part(trailing-section) {
541
541
  justify-content: flex-end;
542
542
  }
543
- `,na=[jl];var ao=class extends y{render(){return p`
543
+ `,fs=[cc];var ho=class extends v{render(){return p`
544
544
  <header part="container">
545
545
  <div part="leading-section">
546
546
  <slot name="leading"></slot>
@@ -551,7 +551,7 @@
551
551
  <div part="trailing-section">
552
552
  <slot name="trailing"></slot>
553
553
  </div>
554
- </header>`}};ao.styles=[...y.styles,...na];var ci=ao;var la=b.constructTagName("appheader");ci.register(la);var Kl=ci;var A=i=>i!=null?i:v;var ca=b.constructTagName("avatar"),X={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},di=99,Ql="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ft={TYPE:X.PHOTO,SIZE:M[32],ICON_NAME:Ql};var no=i=>{class t extends i{constructor(){super(...arguments);this.size=Ft.SIZE;this.isTyping=!1}}return l([c({type:String})],t.prototype,"src",2),l([c({type:String})],t.prototype,"initials",2),l([c({type:String})],t.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([c({type:Number})],t.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var K=i=>{class t extends i{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Jl=[C,f`
554
+ </header>`}};ho.styles=[...v.styles,...fs];var bi=ho;var bs=b.constructTagName("appheader");bi.register(bs);var dc=bi;var A=i=>i!=null?i:y;var gs=b.constructTagName("avatar"),X={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},gi=99,mc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Gt={TYPE:X.PHOTO,SIZE:D[32],ICON_NAME:mc};var uo=i=>{class r extends i{constructor(){super(...arguments);this.size=Gt.SIZE;this.isTyping=!1}}return l([c({type:String})],r.prototype,"src",2),l([c({type:String})],r.prototype,"initials",2),l([c({type:String})],r.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],r.prototype,"size",2),l([c({type:Number})],r.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],r.prototype,"isTyping",2),r};var K=i=>{class r extends i{}return l([c({type:String,attribute:"icon-name"})],r.prototype,"iconName",2),r};var pc=[k,f`
555
555
  :host {
556
556
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
557
557
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -674,9 +674,9 @@
674
674
  outline: 0.125rem solid;
675
675
  }
676
676
  }
677
- `],da=Jl;var ma=b.constructTagName("presence"),W={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"},H={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Ht={TYPE:W.ACTIVE,SIZE:H.SMALL};var pa=i=>({[M[124]]:H.XX_LARGE,[M[88]]:H.X_LARGE,[M[72]]:H.LARGE,[M[64]]:H.MIDSIZE,[M[48]]:H.SMALL,[M[32]]:H.X_SMALL,[M[24]]:H.XX_SMALL})[i]||H.X_SMALL,ha=i=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[i]||1.25,ua=i=>({[M[124]]:_.HEADING_XLARGE_MEDIUM,[M[88]]:_.HEADING_LARGE_MEDIUM,[M[72]]:_.HEADING_MIDSIZE_MEDIUM,[M[64]]:_.HEADING_SMALL_MEDIUM,[M[48]]:_.HEADING_SMALL_MEDIUM,[M[32]]:_.BODY_MIDSIZE_MEDIUM,[M[24]]:_.BODY_SMALL_MEDIUM})[i]||_.BODY_MIDSIZE_MEDIUM;var xr=class extends no(K(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===X.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?p`
678
- <mdc-presence part="presence" type="${this.presence}" size="${pa(this.size)}"></mdc-presence>
679
- `:v}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 p`
677
+ `],vs=pc;var ys=b.constructTagName("presence"),Y={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"},B={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Wt={TYPE:Y.ACTIVE,SIZE:B.SMALL};var xs=i=>({[D[124]]:B.XX_LARGE,[D[88]]:B.X_LARGE,[D[72]]:B.LARGE,[D[64]]:B.MIDSIZE,[D[48]]:B.SMALL,[D[32]]:B.X_SMALL,[D[24]]:B.XX_SMALL})[i]||B.X_SMALL,Es=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,Ts=i=>({[D[124]]:w.HEADING_XLARGE_MEDIUM,[D[88]]:w.HEADING_LARGE_MEDIUM,[D[72]]:w.HEADING_MIDSIZE_MEDIUM,[D[64]]:w.HEADING_SMALL_MEDIUM,[D[48]]:w.HEADING_SMALL_MEDIUM,[D[32]]:w.BODY_MIDSIZE_MEDIUM,[D[24]]:w.BODY_SMALL_MEDIUM})[i]||w.BODY_MIDSIZE_MEDIUM;var Ar=class extends uo(K(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===X.COUNTER&&(this.counter||this.counter===0)||this.isTyping?y:this.presence?p`
678
+ <mdc-presence part="presence" type="${this.presence}" size="${xs(this.size)}"></mdc-presence>
679
+ `:y}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 p`
680
680
  <img
681
681
  part="photo"
682
682
  src="${A(this.src)}"
@@ -685,27 +685,27 @@
685
685
  @load="${this.handleOnLoad}"
686
686
  @error="${this.handleOnError}"
687
687
  />
688
- `}iconTemplate(){let e=this.iconName||Ft.ICON_NAME;return p`
688
+ `}iconTemplate(){let e=this.iconName||Gt.ICON_NAME;return p`
689
689
  <mdc-icon
690
690
  name="${A(e)}"
691
691
  length-unit="rem"
692
- size="${ha(this.size)}"
692
+ size="${Es(this.size)}"
693
693
  ></mdc-icon>
694
694
  `}textTemplate(e){return p`
695
695
  <mdc-text
696
- type="${ua(this.size)}"
696
+ type="${Ts(this.size)}"
697
697
  tagname="span"
698
698
  >
699
699
  ${e}
700
700
  </mdc-text>
701
- `}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===X.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===X.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?X.PHOTO:this.iconName?X.ICON:this.initials?X.TEXT:this.counter||this.counter===0?X.COUNTER:X.ICON}getTemplateBasedOnType(e){switch(e){case X.PHOTO:return this.photoTemplate();case X.TEXT:case X.COUNTER:return this.generateTextContent(e);case X.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?p`<div part="loading-wrapper"><div part="loader"></div></div>`:v}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?v:e===X.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():v}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return p`
701
+ `}generateCounterText(e){return e<0?"0":e>gi?`${gi}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let t="";return e===X.TEXT&&this.initials&&(t=this.generateInitialsText(this.initials)),e===X.COUNTER&&(this.counter||this.counter===0)&&(t=this.generateCounterText(this.counter)),this.textTemplate(t)}getTypeBasedOnInputs(){return this.src?X.PHOTO:this.iconName?X.ICON:this.initials?X.TEXT:this.counter||this.counter===0?X.COUNTER:X.ICON}getTemplateBasedOnType(e){switch(e){case X.PHOTO:return this.photoTemplate();case X.TEXT:case X.COUNTER:return this.generateTextContent(e);case X.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?p`<div part="loading-wrapper"><div part="loader"></div></div>`:y}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?y:e===X.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():y}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return p`
702
702
  <div part="content" aria-hidden="true">
703
703
  ${this.getPhotoPlaceHolderContent(e)}
704
704
  ${this.getTemplateBasedOnType(e)}
705
705
  ${this.getLoadingContent()}
706
706
  ${this.getPresenceTemplateBasedOnType(e)}
707
707
  </div>
708
- `}};xr.styles=[...y.styles,...da],l([$()],xr.prototype,"isPhotoLoaded",2);var mi=xr;var ec=[C,f`
708
+ `}};Ar.styles=[...v.styles,...vs],l([M()],Ar.prototype,"isPhotoLoaded",2);var vi=Ar;var hc=[k,f`
709
709
  :host {
710
710
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
711
711
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -799,7 +799,7 @@
799
799
  .mdc-presence-icon__scheduled {
800
800
  color: var(--mdc-presence-scheduled-background-color);
801
801
  }
802
- `],fa=ec;var ba=i=>{switch(i){case W.AWAY:return"recents-presence-badge-filled";case W.AWAY_CALLING:return"away-calling-presence-filled";case W.BUSY:return"busy-presence-bold";case W.DND:return"dnd-presence-badge-filled";case W.MEETING:return"camera-filled";case W.ON_CALL:return"handset-filled";case W.ON_DEVICE:return"generic-device-video-badge-filled";case W.ON_MOBILE:return"phone-badge-filled";case W.PAUSE:return"pause-badge-filled";case W.PTO:return"pto-presence-filled";case W.PRESENTING:return"share-screen-badge-filled";case W.QUIET:return"quiet-hours-presence-filled";case W.SCHEDULED:return"meetings-presence-badge-filled";case W.ACTIVE:default:return"active-presence-small-filled"}};var ct=class extends y{constructor(){super(...arguments);this.type=Ht.TYPE;this.size=Ht.SIZE;this.currentIconType=Ht.TYPE}get iconSize(){switch(this.size){case H.MIDSIZE:return 1.16125;case H.LARGE:return 1.30625;case H.X_LARGE:return 1.596875;case H.XX_LARGE:return 2.25;case H.XX_SMALL:case H.X_SMALL:case H.SMALL:default:return this.size=Ht.SIZE,.875}}get icon(){let e=ba(this.type);return e==="active-presence-small-filled"&&(this.type=Ht.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 p`
802
+ `],As=hc;var Ss=i=>{switch(i){case Y.AWAY:return"recents-presence-badge-filled";case Y.AWAY_CALLING:return"away-calling-presence-filled";case Y.BUSY:return"busy-presence-bold";case Y.DND:return"dnd-presence-badge-filled";case Y.MEETING:return"camera-filled";case Y.ON_CALL:return"handset-filled";case Y.ON_DEVICE:return"generic-device-video-badge-filled";case Y.ON_MOBILE:return"phone-badge-filled";case Y.PAUSE:return"pause-badge-filled";case Y.PTO:return"pto-presence-filled";case Y.PRESENTING:return"share-screen-badge-filled";case Y.QUIET:return"quiet-hours-presence-filled";case Y.SCHEDULED:return"meetings-presence-badge-filled";case Y.ACTIVE:default:return"active-presence-small-filled"}};var pt=class extends v{constructor(){super(...arguments);this.type=Wt.TYPE;this.size=Wt.SIZE;this.currentIconType=Wt.TYPE}get iconSize(){switch(this.size){case B.MIDSIZE:return 1.16125;case B.LARGE:return 1.30625;case B.X_LARGE:return 1.596875;case B.XX_LARGE:return 2.25;case B.XX_SMALL:case B.X_SMALL:case B.SMALL:default:return this.size=Wt.SIZE,.875}}get icon(){let e=Ss(this.type);return e==="active-presence-small-filled"&&(this.type=Wt.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 p`
803
803
  <div class="mdc-presence mdc-presence__${this.size}">
804
804
  <mdc-icon
805
805
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -809,14 +809,14 @@
809
809
  @error="${this.handleOnError}"
810
810
  ></mdc-icon>
811
811
  </div>
812
- `}};ct.styles=[...y.styles,...fa],l([c({type:String,reflect:!0})],ct.prototype,"type",2),l([c({type:String,reflect:!0})],ct.prototype,"size",2),l([$()],ct.prototype,"currentIconType",2);var pi=ct;pi.register(ma);var tc=pi;mi.register(ca);var rc=mi;var Er=b.constructTagName("button"),Ze={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Tr={40:40,32:32,28:28,24:24},Ae={64:64,52:52,20:20,...Tr},lo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Bt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Se={VARIANT:Ze.PRIMARY,SIZE:Tr[32],COLOR:lo.DEFAULT,TYPE_INTERNAL:Bt.ICON,TYPE:zt.BUTTON};var oc=[C,f`
812
+ `}};pt.styles=[...v.styles,...As],l([c({type:String,reflect:!0})],pt.prototype,"type",2),l([c({type:String,reflect:!0})],pt.prototype,"size",2),l([M()],pt.prototype,"currentIconType",2);var yi=pt;yi.register(ys);var uc=yi;vi.register(gs);var fc=vi;var Sr=b.constructTagName("button"),Qe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},wr={40:40,32:32,28:28,24:24},we={64:64,52:52,20:20,...wr},fo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Yt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},_e={VARIANT:Qe.PRIMARY,SIZE:wr[32],COLOR:fo.DEFAULT,TYPE_INTERNAL:Yt.ICON,TYPE:Ut.BUTTON};var bc=[k,f`
813
813
  :host {
814
814
  padding: unset;
815
815
  margin: unset;
816
816
  outline: none;
817
817
  border-radius: 0.25rem;
818
818
  }
819
- `,...R()],ga=oc;var Ar=class extends no(K(ae)){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=Se.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:Ft.SIZE.toString())}render(){return p`
819
+ `,...N()],ws=bc;var _r=class extends uo(K(le)){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=_e.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:Gt.SIZE.toString())}render(){return p`
820
820
  <mdc-avatar
821
821
  slot="prefixIcon"
822
822
  ?is-typing="${this.isTyping}"
@@ -827,7 +827,7 @@
827
827
  size="${A(this.size)}"
828
828
  src="${A(this.src)}"
829
829
  ></mdc-avatar>
830
- `}};Ar.styles=[...ga],l([c({type:String,attribute:"aria-label"})],Ar.prototype,"ariaLabel",2);var hi=Ar;var va=b.constructTagName("avatarbutton");hi.register(va);var ic=hi;var co={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Sr=i=>(...t)=>({_$litDirective$:i,values:t}),Gt=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 Yt=Sr(class extends Gt{constructor(i){var t;if(super(i),i.type!==co.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(s=>s!=="")));for(let s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}let e=i.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let a=!!t[s];a===this.st.has(s)||(o=this.nt)!=null&&o.has(s)||(a?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ne}});var ya=b.constructTagName("badge"),Me={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},mo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},po={PRIMARY:"primary",SECONDARY:"secondary"},_r={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ab={...po,..._r},je={TYPE:Me.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:po.PRIMARY,ICON_SIZE:1};var sc=[C,f`
830
+ `}};_r.styles=[...ws],l([c({type:String,attribute:"aria-label"})],_r.prototype,"ariaLabel",2);var xi=_r;var _s=b.constructTagName("avatarbutton");xi.register(_s);var gc=xi;var bo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ir=i=>(...r)=>({_$litDirective$:i,values:r}),qt=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,e,t){this.t=r,this._$AM=e,this.i=t}_$AS(r,e){return this.update(r,e)}update(r,e){return this.render(...e)}};var Xt=Ir(class extends qt{constructor(i){var r;if(super(i),i.type!==bo.ATTRIBUTE||i.name!=="class"||((r=i.strings)==null?void 0:r.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(r=>i[r]).join(" ")+" "}update(i,[r]){var t,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 r)r[a]&&!((t=this.nt)!=null&&t.has(a))&&this.st.add(a);return this.render(r)}let e=i.element.classList;for(let a of this.st)a in r||(e.remove(a),this.st.delete(a));for(let a in r){let s=!!r[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 Oe}});var Is=b.constructTagName("badge"),ze={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},go={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},vo={PRIMARY:"primary",SECONDARY:"secondary"},Cr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Pb={...vo,...Cr},Je={TYPE:ze.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:vo.PRIMARY,ICON_SIZE:1};var vc=[k,f`
831
831
  :host {
832
832
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
833
833
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -896,21 +896,21 @@
896
896
  outline: 0.125rem solid;
897
897
  }
898
898
  }
899
- `],xa=sc;var _e=class extends K(y){constructor(){super(...arguments);this.variant=je.VARIANT;this.maxCounter=je.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>je.MAX_COUNTER_LIMIT||r>je.MAX_COUNTER_LIMIT?`${je.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return p`
899
+ `],Cs=vc;var Ie=class extends K(v){constructor(){super(...arguments);this.variant=Je.VARIANT;this.maxCounter=Je.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,t){return t===void 0||typeof t!="number"||e===0?"":t>e?`${e}+`:e>Je.MAX_COUNTER_LIMIT||t>Je.MAX_COUNTER_LIMIT?`${Je.MAX_COUNTER_LIMIT}+`:t.toString()}getBadgeIcon(e,t){return p`
900
900
  <mdc-icon
901
- class="mdc-badge-icon ${Yt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
901
+ class="mdc-badge-icon ${Xt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${t}`]:!0})}"
902
902
  name="${A(e)}"
903
- size="${je.ICON_SIZE}"
903
+ size="${Je.ICON_SIZE}"
904
904
  ></mdc-icon>
905
- `}getBadgeDot(){return p`<div class="mdc-badge-dot ${Yt({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return p`
905
+ `}getBadgeDot(){return p`<div class="mdc-badge-dot ${Xt({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return p`
906
906
  <mdc-text
907
- type="${_.BODY_SMALL_MEDIUM}"
908
- tagname="${w.DIV}"
909
- class="mdc-badge-text ${Yt({"mdc-badge-overlay":this.overlay})}"
907
+ type="${w.BODY_SMALL_MEDIUM}"
908
+ tagname="${C.DIV}"
909
+ class="mdc-badge-text ${Xt({"mdc-badge-overlay":this.overlay})}"
910
910
  >
911
911
  ${this.getCounterText(this.maxCounter,this.counter)}
912
912
  </mdc-text>
913
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(po).includes(this.variant)&&(this.variant=je.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Me.ICON:return this.getBadgeIcon(e||"",o);case Me.COUNTER:return this.getBadgeCounterText();case Me.SUCCESS:return this.getBadgeIcon(mo.SUCCESS_ICON_NAME,_r.SUCCESS);case Me.WARNING:return this.getBadgeIcon(mo.WARNING_ICON_NAME,_r.WARNING);case Me.ERROR:return this.getBadgeIcon(mo.ERROR_ICON_NAME,_r.ERROR);case Me.DOT:default:return this.type=Me.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};_e.styles=[...y.styles,...xa],l([c({type:String,reflect:!0})],_e.prototype,"type",2),l([c({type:String,reflect:!0})],_e.prototype,"variant",2),l([c({type:Number})],_e.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],_e.prototype,"maxCounter",2),l([c({type:Boolean})],_e.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],_e.prototype,"ariaLabel",2);var ui=_e;ui.register(ya);var ac=ui;var nc=f`
913
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(vo).includes(this.variant)&&(this.variant=Je.VARIANT);let{iconName:e,type:t,variant:o}=this;switch(t){case ze.ICON:return this.getBadgeIcon(e||"",o);case ze.COUNTER:return this.getBadgeCounterText();case ze.SUCCESS:return this.getBadgeIcon(go.SUCCESS_ICON_NAME,Cr.SUCCESS);case ze.WARNING:return this.getBadgeIcon(go.WARNING_ICON_NAME,Cr.WARNING);case ze.ERROR:return this.getBadgeIcon(go.ERROR_ICON_NAME,Cr.ERROR);case ze.DOT:default:return this.type=ze.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Ie.styles=[...v.styles,...Cs],l([c({type:String,reflect:!0})],Ie.prototype,"type",2),l([c({type:String,reflect:!0})],Ie.prototype,"variant",2),l([c({type:Number})],Ie.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Ie.prototype,"maxCounter",2),l([c({type:Boolean})],Ie.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Ie.prototype,"ariaLabel",2);var Ei=Ie;Ei.register(Is);var yc=Ei;var xc=f`
914
914
  :host {
915
915
  display: block;
916
916
  height: 100%;
@@ -919,7 +919,7 @@
919
919
  height: 100%;
920
920
  width: 100%;
921
921
  }
922
- `,Ea=[nc];var Ta=b.constructTagName("brandvisual"),Aa={NAME:void 0};var Wt=class extends y{constructor(){super(...arguments);this.name=Aa.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 p` ${this.brandVisualData} `}};Wt.styles=[...y.styles,...Ea],l([$()],Wt.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],Wt.prototype,"name",2);var fi=Wt;fi.register(Ta);var lc=fi;var cc=f`
922
+ `,ks=[xc];var Ls=b.constructTagName("brandvisual"),Rs={NAME:void 0};var Zt=class extends v{constructor(){super(...arguments);this.name=Rs.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(t=>{this.onerror&&this.onerror(t)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(e){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(t)}render(){return p` ${this.brandVisualData} `}};Zt.styles=[...v.styles,...ks],l([M()],Zt.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],Zt.prototype,"name",2);var Ti=Zt;Ti.register(Ls);var Ec=Ti;var Tc=f`
923
923
  :host {
924
924
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
925
925
  --mdc-bullet-size-small: 0.25rem;
@@ -940,7 +940,7 @@
940
940
  :host([size="large"]) {
941
941
  height: var(--mdc-bullet-size-large);
942
942
  }
943
- `,Sa=[cc];var _a=b.constructTagName("bullet"),Ia={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Ir=class extends y{constructor(){super(...arguments);this.size=Ia.SMALL}};Ir.styles=[...y.styles,...Sa],l([c({type:String,reflect:!0})],Ir.prototype,"size",2);var bi=Ir;bi.register(_a);var dc=bi;var mc=f`
943
+ `,Ns=[Tc];var Os=b.constructTagName("bullet"),Ms={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var kr=class extends v{constructor(){super(...arguments);this.size=Ms.SMALL}};kr.styles=[...v.styles,...Ns],l([c({type:String,reflect:!0})],kr.prototype,"size",2);var Ai=kr;Ai.register(Os);var Ac=Ai;var Sc=f`
944
944
  :host {
945
945
  background-color: transparent;
946
946
  border-radius: 1.25rem;
@@ -1112,7 +1112,7 @@
1112
1112
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
1113
1113
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
1114
1114
  }
1115
- `,ka=[mc];var wa=i=>{switch(i){case Ae[64]:return 2;case Ae[52]:return 1.75;case Ae[40]:return 1.25;default:return 1}},kr=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var ne=class extends ae{constructor(){super(...arguments);this.variant=Se.VARIANT;this.size=Se.SIZE;this.color=Se.COLOR;this.role="button";this.typeInternal=Se.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${kr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${kr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Ze).includes(e)?e:Se.VARIANT)}setSize(e){let o=this.typeInternal===Bt.ICON?Object.values(Ae).includes(e)&&!(e===Ae[20]&&this.variant!==Ze.TERTIARY):Object.values(Tr).includes(e);this.setAttribute("size",o?`${e}`:`${Se.SIZE}`),this.iconSize=wa(e)}setColor(e){!Object.values(lo).includes(e)||this.variant===Ze.TERTIARY?this.setAttribute("color",`${Se.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,o;let e=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().filter(s=>{var a;return s.nodeType!==Node.TEXT_NODE||((a=s.textContent)==null?void 0:a.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Bt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Bt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Bt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return p`
1115
+ `,Ds=[Sc];var $s=i=>{switch(i){case we[64]:return 2;case we[52]:return 1.75;case we[40]:return 1.25;default:return 1}},Lr=i=>{let r=i.split("-"),e=["bold","filled","regular","light"];return r.filter(t=>!e.includes(t)).join("-")};var ce=class extends le{constructor(){super(...arguments);this.variant=_e.VARIANT;this.size=_e.SIZE;this.color=_e.COLOR;this.role="button";this.typeInternal=_e.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Lr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Lr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Qe).includes(e)?e:_e.VARIANT)}setSize(e){let o=this.typeInternal===Yt.ICON?Object.values(we).includes(e)&&!(e===we[20]&&this.variant!==Qe.TERTIARY):Object.values(wr).includes(e);this.setAttribute("size",o?`${e}`:`${_e.SIZE}`),this.iconSize=$s(e)}setColor(e){!Object.values(fo).includes(e)||this.variant===Qe.TERTIARY?this.setAttribute("color",`${_e.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var t,o;let e=(o=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"))==null?void 0:o.assignedNodes().filter(a=>{var s;return a.nodeType!==Node.TEXT_NODE||((s=a.textContent)==null?void 0:s.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Yt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Yt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Yt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return p`
1116
1116
  ${this.prefixIcon?p` <mdc-icon
1117
1117
  name="${this.prefixIcon}"
1118
1118
  part="prefix-icon"
@@ -1128,7 +1128,7 @@
1128
1128
  length-unit="rem"
1129
1129
  >
1130
1130
  </mdc-icon>`:""}
1131
- `}};ne.styles=[...ae.styles,...ka],l([c({type:String,attribute:"prefix-icon",reflect:!0})],ne.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],ne.prototype,"postfixIcon",2),l([c({type:String})],ne.prototype,"variant",2),l([c({type:Number})],ne.prototype,"size",2),l([c({type:String})],ne.prototype,"color",2),l([c({type:String,reflect:!0})],ne.prototype,"role",2),l([$()],ne.prototype,"typeInternal",2),l([$()],ne.prototype,"iconSize",2);var gi=ne;gi.register(Er);var pc=gi;var P=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var G=[];for(let i=0;i<256;++i)G.push((i+256).toString(16).slice(1));function Ca(i,t=0){return(G[i[t+0]]+G[i[t+1]]+G[i[t+2]]+G[i[t+3]]+"-"+G[i[t+4]]+G[i[t+5]]+"-"+G[i[t+6]]+G[i[t+7]]+"-"+G[i[t+8]]+G[i[t+9]]+"-"+G[i[t+10]]+G[i[t+11]]+G[i[t+12]]+G[i[t+13]]+G[i[t+14]]+G[i[t+15]]).toLowerCase()}var vi,hc=new Uint8Array(16);function yi(){if(!vi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vi=crypto.getRandomValues.bind(crypto)}return vi(hc)}var uc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xi={randomUUID:uc};function fc(i,t,e){var o,s,a;if(xi.randomUUID&&!t&&!i)return xi.randomUUID();i=i||{};let r=(a=(s=i.random)!=null?s:(o=i.rng)==null?void 0:o.call(i))!=null?a:yi();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 n=0;n<16;++n)t[e+n]=r[n];return t}return Ca(r)}var De=fc;var Q=i=>{class t extends i{constructor(...o){super(o);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${De()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,l([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Ot("input")],t.prototype,"inputElement",2),t};var La=b.constructTagName("formfieldwrapper"),B={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:B.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},dt={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var bc=[C,f`
1131
+ `}};ce.styles=[...le.styles,...Ds],l([c({type:String,attribute:"prefix-icon",reflect:!0})],ce.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],ce.prototype,"postfixIcon",2),l([c({type:String})],ce.prototype,"variant",2),l([c({type:Number})],ce.prototype,"size",2),l([c({type:String})],ce.prototype,"color",2),l([c({type:String,reflect:!0})],ce.prototype,"role",2),l([M()],ce.prototype,"typeInternal",2),l([M()],ce.prototype,"iconSize",2);var Rr=ce;Rr.register(Sr);var wc=Rr;var P=i=>{class r extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],r.prototype,"dataAriaLabel",2),r};var G=[];for(let i=0;i<256;++i)G.push((i+256).toString(16).slice(1));function zs(i,r=0){return(G[i[r+0]]+G[i[r+1]]+G[i[r+2]]+G[i[r+3]]+"-"+G[i[r+4]]+G[i[r+5]]+"-"+G[i[r+6]]+G[i[r+7]]+"-"+G[i[r+8]]+G[i[r+9]]+"-"+G[i[r+10]]+G[i[r+11]]+G[i[r+12]]+G[i[r+13]]+G[i[r+14]]+G[i[r+15]]).toLowerCase()}var Si,_c=new Uint8Array(16);function wi(){if(!Si){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Si=crypto.getRandomValues.bind(crypto)}return Si(_c)}var Ic=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_i={randomUUID:Ic};function Cc(i,r,e){var o,a,s;if(_i.randomUUID&&!r&&!i)return _i.randomUUID();i=i||{};let t=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:wi();if(t.length<16)throw new Error("Random bytes length must be >= 16");if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,r){if(e=e||0,e<0||e+16>r.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let n=0;n<16;++n)r[e+n]=t[n];return r}return zs(t)}var Pe=Cc;var Q=i=>{class r extends i{constructor(...o){super(o);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${Pe()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return r.formAssociated=!0,l([c({reflect:!0,type:String})],r.prototype,"name",2),l([c({reflect:!0,type:String})],r.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],r.prototype,"validationMessage",2),l([De("input")],r.prototype,"inputElement",2),r};var Ps=b.constructTagName("formfieldwrapper"),H={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:H.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},ht={TAGNAME:C.SPAN,TYPE:w.BODY_MIDSIZE_REGULAR,HEADER_TYPE:w.BODY_MIDSIZE_BOLD};var kc=[k,f`
1132
1132
  :host {
1133
1133
  flex-direction: column;
1134
1134
  align-items: flex-start;
@@ -1177,33 +1177,33 @@
1177
1177
  :host([help-text-type='priority']) .mdc-help-text {
1178
1178
  color: var(--mds-color-theme-text-accent-normal);
1179
1179
  }
1180
- `],Na=bc;var Ra=i=>({[B.ERROR]:"error-legacy-badge-filled",[B.WARNING]:"warning-badge-filled",[B.SUCCESS]:"check-circle-badge-filled",[B.PRIORITY]:"priority-badge-filled",[B.DEFAULT]:""})[i]||"";var $e=class extends se(y){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?p`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:p` <mdc-text
1180
+ `],Vs=kc;var Us=i=>({[H.ERROR]:"error-legacy-badge-filled",[H.WARNING]:"warning-badge-filled",[H.SUCCESS]:"check-circle-badge-filled",[H.PRIORITY]:"priority-badge-filled",[H.DEFAULT]:""})[i]||"";var Ve=class extends ne(v){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?p`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:p` <mdc-text
1181
1181
  id="${V.HEADING_ID}"
1182
- tagname="${dt.TAGNAME}"
1183
- type="${dt.HEADER_TYPE}"
1182
+ tagname="${ht.TAGNAME}"
1183
+ type="${ht.HEADER_TYPE}"
1184
1184
  part="label"
1185
1185
  >${this.label}</mdc-text
1186
- >`:v}renderRequiredLabel(){return this.requiredLabel?p`
1187
- <mdc-text part="required-label" tagname=${dt.TAGNAME} type=${dt.TYPE}>
1186
+ >`:y}renderRequiredLabel(){return this.requiredLabel?p`
1187
+ <mdc-text part="required-label" tagname=${ht.TAGNAME} type=${ht.TYPE}>
1188
1188
  (${this.requiredLabel})
1189
1189
  </mdc-text>
1190
- `:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=Ra(this.helpTextType||V.VALIDATION);return e&&!this.disabled?p`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:v}renderHelpText(){return this.helpText?p`
1190
+ `:y}renderHelpTextIcon(){if(!this.helpText)return y;let e=Us(this.helpTextType||V.VALIDATION);return e&&!this.disabled?p`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:y}renderHelpText(){return this.helpText?p`
1191
1191
  <mdc-text
1192
1192
  id="${V.HELPER_TEXT_ID}"
1193
1193
  part="help-text"
1194
- tagname=${dt.TAGNAME}
1195
- type=${dt.TYPE}
1194
+ tagname=${ht.TAGNAME}
1195
+ type=${ht.TYPE}
1196
1196
  >
1197
1197
  ${this.helpText}
1198
1198
  </mdc-text>
1199
- `:v}renderLabel(){return this.label?p`<div class="mdc-label-text" part="label-text">
1199
+ `:y}renderLabel(){return this.label?p`<div class="mdc-label-text" part="label-text">
1200
1200
  <slot name="label">${this.renderLabelElement()}</slot>
1201
1201
  <slot name="required-label">${this.renderRequiredLabel()}</slot>
1202
1202
  <slot name="label-info"></slot>
1203
- </div>`:v}renderHelperText(){return this.helpText?p`<div class="mdc-help-text" part="mdc-help-text">
1203
+ </div>`:y}renderHelperText(){return this.helpText?p`<div class="mdc-help-text" part="mdc-help-text">
1204
1204
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1205
1205
  <slot name="help-text">${this.renderHelpText()}</slot>
1206
- </div>`:v}};$e.styles=[...y.styles,...Na],l([c({reflect:!0,type:String})],$e.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],$e.prototype,"requiredLabel",2),l([c({type:String})],$e.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],$e.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],$e.prototype,"helpText",2);var Z=$e;var Oa=b.constructTagName("checkbox"),Ei={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var gc=[f`
1206
+ </div>`:y}};Ve.styles=[...v.styles,...Vs],l([c({reflect:!0,type:String})],Ve.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Ve.prototype,"requiredLabel",2),l([c({type:String})],Ve.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Ve.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Ve.prototype,"helpText",2);var Z=Ve;var Fs=b.constructTagName("checkbox"),Ii={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Lc=[f`
1207
1207
  :host {
1208
1208
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1209
1209
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1307,17 +1307,17 @@
1307
1307
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
1308
1308
  }
1309
1309
  }
1310
- `,...R(!0)],Ma=gc;var mt=class extends Q(P(Z)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?p`<div class="text-container">
1310
+ `,...N(!0)],Bs=Lc;var ut=class extends Q(P(Z)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?p`<div class="text-container">
1311
1311
  ${this.renderLabel()}
1312
1312
  ${this.renderHelperText()}
1313
- </div>`:v}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 r;let e=this.checked||this.indeterminate?p`
1313
+ </div>`:y}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 t;e.key==="Enter"&&((t=this.form)==null||t.requestSubmit())}handleChange(e){this.toggleState();let t=e.constructor;this.dispatchEvent(new t(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var t;let e=this.checked||this.indeterminate?p`
1314
1314
  <mdc-icon
1315
1315
  class="icon"
1316
- name="${this.indeterminate?Ei.INDETERMINATE:Ei.CHECKED}"
1316
+ name="${this.indeterminate?Ii.INDETERMINATE:Ii.CHECKED}"
1317
1317
  size="1"
1318
1318
  length-unit="rem"
1319
1319
  ></mdc-icon>
1320
- `:v;return p`
1320
+ `:y;return p`
1321
1321
  <div class="container mdc-focus-ring">
1322
1322
  <input
1323
1323
  id="${this.id}"
@@ -1331,7 +1331,7 @@
1331
1331
  aria-checked="${this.indeterminate?"mixed":this.checked}"
1332
1332
  .indeterminate="${this.indeterminate}"
1333
1333
  .disabled="${this.disabled}"
1334
- aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
1334
+ aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
1335
1335
  tabindex="${this.disabled?-1:0}"
1336
1336
  aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
1337
1337
  @change=${this.handleChange}
@@ -1340,7 +1340,7 @@
1340
1340
  <div class="icon-container">${e}</div>
1341
1341
  </div>
1342
1342
  ${this.renderLabelAndHelperText()}
1343
- `}};mt.styles=[...Z.styles,...Ma],l([c({type:Boolean,reflect:!0})],mt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],mt.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],mt.prototype,"autofocus",2);var Ti=mt;Ti.register(Oa);var vc=Ti;var yc=f`
1343
+ `}};ut.styles=[...Z.styles,...Bs],l([c({type:Boolean,reflect:!0})],ut.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],ut.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],ut.prototype,"autofocus",2);var Ci=ut;Ci.register(Fs);var Rc=Ci;var Nc=f`
1344
1344
  :host {
1345
1345
  height: 1.5rem;
1346
1346
  gap: 0.25rem;
@@ -1477,15 +1477,15 @@
1477
1477
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1478
1478
  cursor: auto;
1479
1479
  }
1480
- `,Da=[C,yc,...R()];var $a=b.constructTagName("chip"),xc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},qt={COLOR:xc.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:br[24],ROLE:"button"};var Xt=class extends K(ae){constructor(){super(...arguments);this.color=qt.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=qt.ROLE,this.size=qt.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?p`
1480
+ `,Hs=[k,Nc,...N()];var Gs=b.constructTagName("chip"),Oc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},jt={COLOR:Oc.DEFAULT,TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:yr[24],ROLE:"button"};var Kt=class extends K(le){constructor(){super(...arguments);this.color=jt.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=jt.ROLE,this.size=jt.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?p`
1481
1481
  <mdc-icon
1482
1482
  name="${this.iconName}"
1483
1483
  length-unit="rem"
1484
1484
  size="1"></mdc-icon>
1485
- `:v}render(){return p`
1485
+ `:y}render(){return p`
1486
1486
  ${this.renderIcon()}
1487
- <mdc-text type="${qt.TEXT_TYPE}" tagname="${qt.TAG_NAME}">${this.label}</mdc-text>
1488
- `}};Xt.styles=[...y.styles,...Da],l([c({type:String,reflect:!0})],Xt.prototype,"color",2),l([c({type:String})],Xt.prototype,"label",2);var Zt=Xt;Zt.register($a);var Ec=Zt;var Ie=Math.min,j=Math.max,Cr=Math.round,Lr=Math.floor,fe=i=>({x:i,y:i}),Tc={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function uo(i,t,e){return j(i,Ie(t,e))}function pt(i,t){return typeof i=="function"?i(t):i}function ze(i){return i.split("-")[0]}function ht(i){return i.split("-")[1]}function Ai(i){return i==="x"?"y":"x"}function fo(i){return i==="y"?"height":"width"}function Ke(i){return["top","bottom"].includes(ze(i))?"y":"x"}function bo(i){return Ai(Ke(i))}function za(i,t,e){e===void 0&&(e=!1);let r=ht(i),o=bo(i),s=fo(o),a=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=wr(a)),[a,wr(a)]}function Pa(i){let t=wr(i);return[ho(i),t,ho(t)]}function ho(i){return i.replace(/start|end/g,t=>Ac[t])}function Sc(i,t,e){let r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Va(i,t,e,r){let o=ht(i),s=Sc(ze(i),e==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(ho)))),s}function wr(i){return i.replace(/left|right|bottom|top/g,t=>Tc[t])}function _c(i){return{top:0,right:0,bottom:0,left:0,...i}}function Si(i){return typeof i!="number"?_c(i):{top:i,right:i,bottom:i,left:i}}function ut(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 Ua(i,t,e){let{reference:r,floating:o}=i,s=Ke(t),a=bo(t),n=fo(a),d=ze(t),m=s==="y",h=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,x=r[n]/2-o[n]/2,g;switch(d){case"top":g={x:h,y:r.y-o.height};break;case"bottom":g={x:h,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(ht(t)){case"start":g[a]-=x*(e&&m?-1:1);break;case"end":g[a]+=x*(e&&m?-1:1);break}return g}var Fa=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=e,n=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t)),m=await a.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:u}=Ua(m,r,d),x=r,g={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:F,reset:z}=await S({x:h,y:u,initialPlacement:r,placement:x,strategy:o,middlewareData:g,rects:m,platform:a,elements:{reference:i,floating:t}});h=k!=null?k:h,u=N!=null?N:u,g={...g,[I]:{...g[I],...F}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:u}=Ua(m,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:g}};async function go(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:s,rects:a,elements:n,strategy:d}=i,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:g=0}=pt(t,i),E=Si(g),I=n[x?u==="floating"?"reference":"floating":u],S=ut(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:h,strategy:d})),k=u==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),F=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},z=ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/F.y,bottom:(z.bottom-S.bottom+E.bottom)/F.y,left:(S.left-z.left+E.left)/F.x,right:(z.right-S.right+E.right)/F.x}}var Ha=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:h=0}=pt(i,t)||{};if(m==null)return{};let u=Si(h),x={x:e,y:r},g=bo(o),E=fo(g),T=await a.getDimensions(m),I=g==="y",S=I?"top":"left",k=I?"bottom":"right",N=I?"clientHeight":"clientWidth",F=s.reference[E]+s.reference[g]-x[g]-s.floating[E],z=x[g]-s.reference[g],ie=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),pe=ie?ie[N]:0;(!pe||!await(a.isElement==null?void 0:a.isElement(ie)))&&(pe=n.floating[N]||s.floating[E]);let ke=F/2-z/2,ve=pe/2-T[E]/2-1,he=Ie(u[S],ve),He=Ie(u[k],ve),ye=he,Be=pe-T[E]-He,q=pe/2-T[E]/2+ke,Nt=uo(ye,q,Be),we=!d.arrow&&ht(o)!=null&&q!==Nt&&s.reference[E]/2-(q<ye?he:He)-T[E]/2<0,xe=we?q<ye?q-ye:q-Be:0;return{[g]:x[g]+xe,data:{[g]:Nt,centerOffset:q-Nt-xe,...we&&{alignmentOffset:xe}},reset:we}}});var Ba=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=pt(i,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=ze(o),k=Ke(n),N=ze(n)===n,F=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[wr(n)]:Pa(n)),ie=E!=="none";!x&&ie&&z.push(...Va(n,T,E,F));let pe=[n,...z],ke=await go(t,I),ve=[],he=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&ve.push(ke[S]),u){let q=za(o,a,F);ve.push(ke[q[0]],ke[q[1]])}if(he=[...he,{placement:o,overflows:ve}],!ve.every(q=>q<=0)){var He,ye;let q=(((He=s.flip)==null?void 0:He.index)||0)+1,Nt=pe[q];if(Nt)return{data:{index:q,overflows:he},reset:{placement:Nt}};let we=(ye=he.filter(xe=>xe.overflows[0]<=0).sort((xe,Ge)=>xe.overflows[1]-Ge.overflows[1])[0])==null?void 0:ye.placement;if(!we)switch(g){case"bestFit":{var Be;let xe=(Be=he.filter(Ge=>{if(ie){let Ye=Ke(Ge.placement);return Ye===k||Ye==="y"}return!0}).map(Ge=>[Ge.placement,Ge.overflows.filter(Ye=>Ye>0).reduce((Ye,Al)=>Ye+Al,0)]).sort((Ge,Ye)=>Ge[1]-Ye[1])[0])==null?void 0:Be[0];xe&&(we=xe);break}case"initialPlacement":we=n;break}if(o!==we)return{reset:{placement:we}}}return{}}}};async function Ic(i,t){let{placement:e,platform:r,elements:o}=i,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ze(e),n=ht(e),d=Ke(e)==="y",m=["left","top"].includes(a)?-1:1,h=s&&d?-1:1,u=pt(t,i),{mainAxis:x,crossAxis:g,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(g=n==="end"?E*-1:E),d?{x:g*h,y:x*m}:{x:x*m,y:g*h}}var Ga=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:s,placement:a,middlewareData:n}=t,d=await Ic(t,i);return a===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},Ya=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=pt(i,t),m={x:e,y:r},h=await go(t,d),u=Ke(ze(o)),x=Ai(u),g=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=g+h[I],N=g-h[S];g=uo(k,g,N)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+h[I],N=E-h[S];E=uo(k,E,N)}let T=n.fn({...t,[x]:g,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var Wa=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=pt(i,t),h=await go(t,m),u=ze(o),x=ht(o),g=Ke(o)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-h.top-h.bottom,N=E-h.left-h.right,F=Ie(T-h[I],k),z=Ie(E-h[S],N),ie=!t.middlewareData.shift,pe=F,ke=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(ke=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(pe=k),ie&&!x){let he=j(h.left,0),He=j(h.right,0),ye=j(h.top,0),Be=j(h.bottom,0);g?ke=E-2*(he!==0||He!==0?he+He:j(h.left,h.right)):pe=T-2*(ye!==0||Be!==0?ye+Be:j(h.top,h.bottom))}await d({...t,availableWidth:ke,availableHeight:pe});let ve=await a.getDimensions(n.floating);return E!==ve.width||T!==ve.height?{reset:{rects:!0}}:{}}}};function vo(){return typeof window<"u"}function ft(i){return Xa(i)?(i.nodeName||"").toLowerCase():"#document"}function J(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function be(i){var t;return(t=(Xa(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function Xa(i){return vo()?i instanceof Node||i instanceof J(i).Node:!1}function le(i){return vo()?i instanceof Element||i instanceof J(i).Element:!1}function ge(i){return vo()?i instanceof HTMLElement||i instanceof J(i).HTMLElement:!1}function qa(i){return!vo()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof J(i).ShadowRoot}function Kt(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ce(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function Za(i){return["table","td","th"].includes(ft(i))}function Nr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function yo(i){let t=xo(),e=le(i)?ce(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 ja(i){let t=Pe(i);for(;ge(t)&&!bt(t);){if(yo(t))return t;if(Nr(t))return null;t=Pe(t)}return null}function xo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bt(i){return["html","body","#document"].includes(ft(i))}function ce(i){return J(i).getComputedStyle(i)}function Rr(i){return le(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Pe(i){if(ft(i)==="html")return i;let t=i.assignedSlot||i.parentNode||qa(i)&&i.host||be(i);return qa(t)?t.host:t}function Ka(i){let t=Pe(i);return bt(t)?i.ownerDocument?i.ownerDocument.body:i.body:ge(t)&&Kt(t)?t:Ka(t)}function jt(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=Ka(i),s=o===((r=i.ownerDocument)==null?void 0:r.body),a=J(o);if(s){let n=Eo(a);return t.concat(a,a.visualViewport||[],Kt(o)?o:[],n&&e?jt(n):[])}return t.concat(o,jt(o,[],e))}function Eo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function en(i){let t=ce(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ge(i),s=o?i.offsetWidth:e,a=o?i.offsetHeight:r,n=Cr(e)!==s||Cr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function Ii(i){return le(i)?i:i.contextElement}function Qt(i){let t=Ii(i);if(!ge(t))return fe(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:s}=en(t),a=(s?Cr(e.width):e.width)/r,n=(s?Cr(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var kc=fe(0);function tn(i){let t=J(i);return!xo()||!t.visualViewport?kc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wc(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==J(i)?!1:t}function gt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),s=Ii(i),a=fe(1);t&&(r?le(r)&&(a=Qt(r)):a=Qt(i));let n=wc(s,e,r)?tn(s):fe(0),d=(o.left+n.x)/a.x,m=(o.top+n.y)/a.y,h=o.width/a.x,u=o.height/a.y;if(s){let x=J(s),g=r&&le(r)?J(r):r,E=x,T=Eo(E);for(;T&&r&&g!==E;){let I=Qt(T),S=T.getBoundingClientRect(),k=ce(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,F=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,h*=I.x,u*=I.y,d+=N,m+=F,E=J(T),T=Eo(E)}}return ut({width:h,height:u,x:d,y:m})}function ki(i,t){let e=Rr(i).scrollLeft;return t?t.left+e:gt(be(i)).left+e}function rn(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:ki(i,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Cc(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,s=o==="fixed",a=be(r),n=t?Nr(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=fe(1),h=fe(0),u=ge(r);if((u||!u&&!s)&&((ft(r)!=="body"||Kt(a))&&(d=Rr(r)),ge(r))){let g=gt(r);m=Qt(r),h.x=g.x+r.clientLeft,h.y=g.y+r.clientTop}let x=a&&!u&&!s?rn(a,d,!0):fe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+h.x+x.x,y:e.y*m.y-d.scrollTop*m.y+h.y+x.y}}function Lc(i){return Array.from(i.getClientRects())}function Nc(i){let t=be(i),e=Rr(i),r=i.ownerDocument.body,o=j(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=j(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+ki(i),n=-e.scrollTop;return ce(r).direction==="rtl"&&(a+=j(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:n}}function Rc(i,t){let e=J(i),r=be(i),o=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(o){s=o.width,a=o.height;let m=xo();(!m||m&&t==="fixed")&&(n=o.offsetLeft,d=o.offsetTop)}return{width:s,height:a,x:n,y:d}}function Oc(i,t){let e=gt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,s=ge(i)?Qt(i):fe(1),a=i.clientWidth*s.x,n=i.clientHeight*s.y,d=o*s.x,m=r*s.y;return{width:a,height:n,x:d,y:m}}function Qa(i,t,e){let r;if(t==="viewport")r=Rc(i,e);else if(t==="document")r=Nc(be(i));else if(le(t))r=Oc(t,e);else{let o=tn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ut(r)}function on(i,t){let e=Pe(i);return e===t||!le(e)||bt(e)?!1:ce(e).position==="fixed"||on(e,t)}function Mc(i,t){let e=t.get(i);if(e)return e;let r=jt(i,[],!1).filter(n=>le(n)&&ft(n)!=="body"),o=null,s=ce(i).position==="fixed",a=s?Pe(i):i;for(;le(a)&&!bt(a);){let n=ce(a),d=yo(a);!d&&n.position==="fixed"&&(o=null),(s?!d&&!o:!d&&n.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Kt(a)&&!d&&on(i,a))?r=r.filter(h=>h!==a):o=n,a=Pe(a)}return t.set(i,r),r}function Dc(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,a=[...e==="clippingAncestors"?Nr(t)?[]:Mc(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,h)=>{let u=Qa(t,h,o);return m.top=j(u.top,m.top),m.right=Ie(u.right,m.right),m.bottom=Ie(u.bottom,m.bottom),m.left=j(u.left,m.left),m},Qa(t,n,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function $c(i){let{width:t,height:e}=en(i);return{width:t,height:e}}function zc(i,t,e){let r=ge(t),o=be(t),s=e==="fixed",a=gt(i,!0,s,t),n={scrollLeft:0,scrollTop:0},d=fe(0);if(r||!r&&!s)if((ft(t)!=="body"||Kt(o))&&(n=Rr(t)),r){let x=gt(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=ki(o));let m=o&&!r&&!s?rn(o,n):fe(0),h=a.left+n.scrollLeft-d.x-m.x,u=a.top+n.scrollTop-d.y-m.y;return{x:h,y:u,width:a.width,height:a.height}}function _i(i){return ce(i).position==="static"}function Ja(i,t){if(!ge(i)||ce(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return be(i)===e&&(e=e.ownerDocument.body),e}function sn(i,t){let e=J(i);if(Nr(i))return e;if(!ge(i)){let o=Pe(i);for(;o&&!bt(o);){if(le(o)&&!_i(o))return o;o=Pe(o)}return e}let r=Ja(i,t);for(;r&&Za(r)&&_i(r);)r=Ja(r,t);return r&&bt(r)&&_i(r)&&!yo(r)?e:r||ja(i)||e}var Pc=async function(i){let t=this.getOffsetParent||sn,e=this.getDimensions,r=await e(i.floating);return{reference:zc(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vc(i){return ce(i).direction==="rtl"}var Uc={convertOffsetParentRelativeRectToViewportRelativeRect:Cc,getDocumentElement:be,getClippingRect:Dc,getOffsetParent:sn,getElementRects:Pc,getClientRects:Lc,getDimensions:$c,getScale:Qt,isElement:le,isRTL:Vc};function Fc(i,t){let e=null,r,o=be(i);function s(){var n;clearTimeout(r),(n=e)==null||n.disconnect(),e=null}function a(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),s();let{left:m,top:h,width:u,height:x}=i.getBoundingClientRect();if(n||t(),!u||!x)return;let g=Lr(h),E=Lr(o.clientWidth-(m+u)),T=Lr(o.clientHeight-(h+x)),I=Lr(m),k={rootMargin:-g+"px "+-E+"px "+-T+"px "+-I+"px",threshold:j(0,Ie(1,d))||1},N=!0;function F(z){let ie=z[0].intersectionRatio;if(ie!==d){if(!N)return a();ie?a(!1,ie):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(F,{...k,root:o.ownerDocument})}catch{e=new IntersectionObserver(F,k)}e.observe(i)}return a(!0),s}function an(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=Ii(i),h=o||s?[...m?jt(m):[],...jt(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?Fc(m,e):null,x=-1,g=null;a&&(g=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&g&&(g.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=g)==null||N.observe(t)})),e()}),m&&!d&&g.observe(m),g.observe(t));let E,T=d?gt(i):null;d&&I();function I(){let S=gt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;h.forEach(k=>{o&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=g)==null||S.disconnect(),g=null,d&&cancelAnimationFrame(E)}}var nn=Ga;var ln=Ya,cn=Ba,dn=Wa;var mn=Ha;var pn=(i,t,e)=>{let r=new Map,o={platform:Uc,...e},s={...o.platform,_c:r};return Fa(i,t,{...o,platform:s})};var Hc=f`
1487
+ <mdc-text type="${jt.TEXT_TYPE}" tagname="${jt.TAG_NAME}">${this.label}</mdc-text>
1488
+ `}};Kt.styles=[...v.styles,...Hs],l([c({type:String,reflect:!0})],Kt.prototype,"color",2),l([c({type:String})],Kt.prototype,"label",2);var Qt=Kt;Qt.register(Gs);var Mc=Qt;var Ce=Math.min,j=Math.max,Or=Math.round,Mr=Math.floor,ge=i=>({x:i,y:i}),Dc={left:"right",right:"left",bottom:"top",top:"bottom"},$c={start:"end",end:"start"};function xo(i,r,e){return j(i,Ce(r,e))}function ft(i,r){return typeof i=="function"?i(r):i}function Ue(i){return i.split("-")[0]}function bt(i){return i.split("-")[1]}function ki(i){return i==="x"?"y":"x"}function Eo(i){return i==="y"?"height":"width"}function et(i){return["top","bottom"].includes(Ue(i))?"y":"x"}function To(i){return ki(et(i))}function Ws(i,r,e){e===void 0&&(e=!1);let t=bt(i),o=To(i),a=Eo(o),s=o==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(s=Nr(s)),[s,Nr(s)]}function Ys(i){let r=Nr(i);return[yo(i),r,yo(r)]}function yo(i){return i.replace(/start|end/g,r=>$c[r])}function zc(i,r,e){let t=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?r?o:t:r?t:o;case"left":case"right":return r?a:s;default:return[]}}function qs(i,r,e,t){let o=bt(i),a=zc(Ue(i),e==="start",t);return o&&(a=a.map(s=>s+"-"+o),r&&(a=a.concat(a.map(yo)))),a}function Nr(i){return i.replace(/left|right|bottom|top/g,r=>Dc[r])}function Pc(i){return{top:0,right:0,bottom:0,left:0,...i}}function Li(i){return typeof i!="number"?Pc(i):{top:i,right:i,bottom:i,left:i}}function gt(i){let{x:r,y:e,width:t,height:o}=i;return{width:t,height:o,top:e,left:r,right:r+t,bottom:e+o,x:r,y:e}}function Xs(i,r,e){let{reference:t,floating:o}=i,a=et(r),s=To(r),n=Eo(s),d=Ue(r),m=a==="y",h=t.x+t.width/2-o.width/2,u=t.y+t.height/2-o.height/2,x=t[n]/2-o[n]/2,g;switch(d){case"top":g={x:h,y:t.y-o.height};break;case"bottom":g={x:h,y:t.y+t.height};break;case"right":g={x:t.x+t.width,y:u};break;case"left":g={x:t.x-o.width,y:u};break;default:g={x:t.x,y:t.y}}switch(bt(r)){case"start":g[s]-=x*(e&&m?-1:1);break;case"end":g[s]+=x*(e&&m?-1:1);break}return g}var Zs=async(i,r,e)=>{let{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,n=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(r)),m=await s.getElementRects({reference:i,floating:r,strategy:o}),{x:h,y:u}=Xs(m,t,d),x=t,g={},E=0;for(let T=0;T<n.length;T++){let{name:_,fn:S}=n[T],{x:I,y:R,data:F,reset:z}=await S({x:h,y:u,initialPlacement:t,placement:x,strategy:o,middlewareData:g,rects:m,platform:s,elements:{reference:i,floating:r}});h=I!=null?I:h,u=R!=null?R:u,g={...g,[_]:{...g[_],...F}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await s.getElementRects({reference:i,floating:r,strategy:o}):z.rects),{x:h,y:u}=Xs(m,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:g}};async function Ao(i,r){var e;r===void 0&&(r={});let{x:t,y:o,platform:a,rects:s,elements:n,strategy:d}=i,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:g=0}=ft(r,i),E=Li(g),_=n[x?u==="floating"?"reference":"floating":u],S=gt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(_)))==null||e?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(n.floating)),boundary:m,rootBoundary:h,strategy:d})),I=u==="floating"?{x:t,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),F=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=gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:I,offsetParent:R,strategy:d}):I);return{top:(S.top-z.top+E.top)/F.y,bottom:(z.bottom-S.bottom+E.bottom)/F.y,left:(S.left-z.left+E.left)/F.x,right:(z.right-S.right+E.right)/F.x}}var js=i=>({name:"arrow",options:i,async fn(r){let{x:e,y:t,placement:o,rects:a,platform:s,elements:n,middlewareData:d}=r,{element:m,padding:h=0}=ft(i,r)||{};if(m==null)return{};let u=Li(h),x={x:e,y:t},g=To(o),E=Eo(g),T=await s.getDimensions(m),_=g==="y",S=_?"top":"left",I=_?"bottom":"right",R=_?"clientHeight":"clientWidth",F=a.reference[E]+a.reference[g]-x[g]-a.floating[E],z=x[g]-a.reference[g],se=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),fe=se?se[R]:0;(!fe||!await(s.isElement==null?void 0:s.isElement(se)))&&(fe=n.floating[R]||a.floating[E]);let ke=F/2-z/2,xe=fe/2-T[E]/2-1,be=Ce(u[S],xe),We=Ce(u[I],xe),Ee=be,Ye=fe-T[E]-We,q=fe/2-T[E]/2+ke,Dt=xo(Ee,q,Ye),Le=!d.arrow&&bt(o)!=null&&q!==Dt&&a.reference[E]/2-(q<Ee?be:We)-T[E]/2<0,Te=Le?q<Ee?q-Ee:q-Ye:0;return{[g]:x[g]+Te,data:{[g]:Dt,centerOffset:q-Dt-Te,...Le&&{alignmentOffset:Te}},reset:Le}}});var Ks=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var e,t;let{placement:o,middlewareData:a,rects:s,initialPlacement:n,platform:d,elements:m}=r,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,..._}=ft(i,r);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Ue(o),I=et(n),R=Ue(n)===n,F=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[Nr(n)]:Ys(n)),se=E!=="none";!x&&se&&z.push(...qs(n,T,E,F));let fe=[n,...z],ke=await Ao(r,_),xe=[],be=((t=a.flip)==null?void 0:t.overflows)||[];if(h&&xe.push(ke[S]),u){let q=Ws(o,s,F);xe.push(ke[q[0]],ke[q[1]])}if(be=[...be,{placement:o,overflows:xe}],!xe.every(q=>q<=0)){var We,Ee;let q=(((We=a.flip)==null?void 0:We.index)||0)+1,Dt=fe[q];if(Dt)return{data:{index:q,overflows:be},reset:{placement:Dt}};let Le=(Ee=be.filter(Te=>Te.overflows[0]<=0).sort((Te,qe)=>Te.overflows[1]-qe.overflows[1])[0])==null?void 0:Ee.placement;if(!Le)switch(g){case"bestFit":{var Ye;let Te=(Ye=be.filter(qe=>{if(se){let Xe=et(qe.placement);return Xe===I||Xe==="y"}return!0}).map(qe=>[qe.placement,qe.overflows.filter(Xe=>Xe>0).reduce((Xe,$l)=>Xe+$l,0)]).sort((qe,Xe)=>qe[1]-Xe[1])[0])==null?void 0:Ye[0];Te&&(Le=Te);break}case"initialPlacement":Le=n;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Vc(i,r){let{placement:e,platform:t,elements:o}=i,a=await(t.isRTL==null?void 0:t.isRTL(o.floating)),s=Ue(e),n=bt(e),d=et(e)==="y",m=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=ft(r,i),{mainAxis:x,crossAxis:g,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(g=n==="end"?E*-1:E),d?{x:g*h,y:x*m}:{x:x*m,y:g*h}}var Qs=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var e,t;let{x:o,y:a,placement:s,middlewareData:n}=r,d=await Vc(r,i);return s===((e=n.offset)==null?void 0:e.placement)&&(t=n.arrow)!=null&&t.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Js=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:e,y:t,placement:o}=r,{mainAxis:a=!0,crossAxis:s=!1,limiter:n={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...d}=ft(i,r),m={x:e,y:t},h=await Ao(r,d),u=et(Ue(o)),x=ki(u),g=m[x],E=m[u];if(a){let _=x==="y"?"top":"left",S=x==="y"?"bottom":"right",I=g+h[_],R=g-h[S];g=xo(I,g,R)}if(s){let _=u==="y"?"top":"left",S=u==="y"?"bottom":"right",I=E+h[_],R=E-h[S];E=xo(I,E,R)}let T=n.fn({...r,[x]:g,[u]:E});return{...T,data:{x:T.x-e,y:T.y-t,enabled:{[x]:a,[u]:s}}}}}};var en=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var e,t;let{placement:o,rects:a,platform:s,elements:n}=r,{apply:d=()=>{},...m}=ft(i,r),h=await Ao(r,m),u=Ue(o),x=bt(o),g=et(o)==="y",{width:E,height:T}=a.floating,_,S;u==="top"||u==="bottom"?(_=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,_=x==="end"?"top":"bottom");let I=T-h.top-h.bottom,R=E-h.left-h.right,F=Ce(T-h[_],I),z=Ce(E-h[S],R),se=!r.middlewareData.shift,fe=F,ke=z;if((e=r.middlewareData.shift)!=null&&e.enabled.x&&(ke=R),(t=r.middlewareData.shift)!=null&&t.enabled.y&&(fe=I),se&&!x){let be=j(h.left,0),We=j(h.right,0),Ee=j(h.top,0),Ye=j(h.bottom,0);g?ke=E-2*(be!==0||We!==0?be+We:j(h.left,h.right)):fe=T-2*(Ee!==0||Ye!==0?Ee+Ye:j(h.top,h.bottom))}await d({...r,availableWidth:ke,availableHeight:fe});let xe=await s.getDimensions(n.floating);return E!==xe.width||T!==xe.height?{reset:{rects:!0}}:{}}}};function So(){return typeof window<"u"}function vt(i){return rn(i)?(i.nodeName||"").toLowerCase():"#document"}function J(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function ve(i){var r;return(r=(rn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function rn(i){return So()?i instanceof Node||i instanceof J(i).Node:!1}function de(i){return So()?i instanceof Element||i instanceof J(i).Element:!1}function ye(i){return So()?i instanceof HTMLElement||i instanceof J(i).HTMLElement:!1}function tn(i){return!So()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof J(i).ShadowRoot}function er(i){let{overflow:r,overflowX:e,overflowY:t,display:o}=me(i);return/auto|scroll|overlay|hidden|clip/.test(r+t+e)&&!["inline","contents"].includes(o)}function on(i){return["table","td","th"].includes(vt(i))}function Dr(i){return[":popover-open",":modal"].some(r=>{try{return i.matches(r)}catch{return!1}})}function wo(i){let r=_o(),e=de(i)?me(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function an(i){let r=Fe(i);for(;ye(r)&&!yt(r);){if(wo(r))return r;if(Dr(r))return null;r=Fe(r)}return null}function _o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yt(i){return["html","body","#document"].includes(vt(i))}function me(i){return J(i).getComputedStyle(i)}function $r(i){return de(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Fe(i){if(vt(i)==="html")return i;let r=i.assignedSlot||i.parentNode||tn(i)&&i.host||ve(i);return tn(r)?r.host:r}function sn(i){let r=Fe(i);return yt(r)?i.ownerDocument?i.ownerDocument.body:i.body:ye(r)&&er(r)?r:sn(r)}function Jt(i,r,e){var t;r===void 0&&(r=[]),e===void 0&&(e=!0);let o=sn(i),a=o===((t=i.ownerDocument)==null?void 0:t.body),s=J(o);if(a){let n=Io(s);return r.concat(s,s.visualViewport||[],er(o)?o:[],n&&e?Jt(n):[])}return r.concat(o,Jt(o,[],e))}function Io(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function cn(i){let r=me(i),e=parseFloat(r.width)||0,t=parseFloat(r.height)||0,o=ye(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:t,n=Or(e)!==a||Or(t)!==s;return n&&(e=a,t=s),{width:e,height:t,$:n}}function Ni(i){return de(i)?i:i.contextElement}function tr(i){let r=Ni(i);if(!ye(r))return ge(1);let e=r.getBoundingClientRect(),{width:t,height:o,$:a}=cn(r),s=(a?Or(e.width):e.width)/t,n=(a?Or(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var Uc=ge(0);function dn(i){let r=J(i);return!_o()||!r.visualViewport?Uc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Fc(i,r,e){return r===void 0&&(r=!1),!e||r&&e!==J(i)?!1:r}function xt(i,r,e,t){r===void 0&&(r=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Ni(i),s=ge(1);r&&(t?de(t)&&(s=tr(t)):s=tr(i));let n=Fc(a,e,t)?dn(a):ge(0),d=(o.left+n.x)/s.x,m=(o.top+n.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=J(a),g=t&&de(t)?J(t):t,E=x,T=Io(E);for(;T&&t&&g!==E;){let _=tr(T),S=T.getBoundingClientRect(),I=me(T),R=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,F=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;d*=_.x,m*=_.y,h*=_.x,u*=_.y,d+=R,m+=F,E=J(T),T=Io(E)}}return gt({width:h,height:u,x:d,y:m})}function Oi(i,r){let e=$r(i).scrollLeft;return r?r.left+e:xt(ve(i)).left+e}function mn(i,r,e){e===void 0&&(e=!1);let t=i.getBoundingClientRect(),o=t.left+r.scrollLeft-(e?0:Oi(i,t)),a=t.top+r.scrollTop;return{x:o,y:a}}function Bc(i){let{elements:r,rect:e,offsetParent:t,strategy:o}=i,a=o==="fixed",s=ve(t),n=r?Dr(r.floating):!1;if(t===s||n&&a)return e;let d={scrollLeft:0,scrollTop:0},m=ge(1),h=ge(0),u=ye(t);if((u||!u&&!a)&&((vt(t)!=="body"||er(s))&&(d=$r(t)),ye(t))){let g=xt(t);m=tr(t),h.x=g.x+t.clientLeft,h.y=g.y+t.clientTop}let x=s&&!u&&!a?mn(s,d,!0):ge(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+h.x+x.x,y:e.y*m.y-d.scrollTop*m.y+h.y+x.y}}function Hc(i){return Array.from(i.getClientRects())}function Gc(i){let r=ve(i),e=$r(i),t=i.ownerDocument.body,o=j(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),a=j(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),s=-e.scrollLeft+Oi(i),n=-e.scrollTop;return me(t).direction==="rtl"&&(s+=j(r.clientWidth,t.clientWidth)-o),{width:o,height:a,x:s,y:n}}function Wc(i,r){let e=J(i),t=ve(i),o=e.visualViewport,a=t.clientWidth,s=t.clientHeight,n=0,d=0;if(o){a=o.width,s=o.height;let m=_o();(!m||m&&r==="fixed")&&(n=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:n,y:d}}function Yc(i,r){let e=xt(i,!0,r==="fixed"),t=e.top+i.clientTop,o=e.left+i.clientLeft,a=ye(i)?tr(i):ge(1),s=i.clientWidth*a.x,n=i.clientHeight*a.y,d=o*a.x,m=t*a.y;return{width:s,height:n,x:d,y:m}}function nn(i,r,e){let t;if(r==="viewport")t=Wc(i,e);else if(r==="document")t=Gc(ve(i));else if(de(r))t=Yc(r,e);else{let o=dn(i);t={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return gt(t)}function pn(i,r){let e=Fe(i);return e===r||!de(e)||yt(e)?!1:me(e).position==="fixed"||pn(e,r)}function qc(i,r){let e=r.get(i);if(e)return e;let t=Jt(i,[],!1).filter(n=>de(n)&&vt(n)!=="body"),o=null,a=me(i).position==="fixed",s=a?Fe(i):i;for(;de(s)&&!yt(s);){let n=me(s),d=wo(s);!d&&n.position==="fixed"&&(o=null),(a?!d&&!o:!d&&n.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||er(s)&&!d&&pn(i,s))?t=t.filter(h=>h!==s):o=n,s=Fe(s)}return r.set(i,t),t}function Xc(i){let{element:r,boundary:e,rootBoundary:t,strategy:o}=i,s=[...e==="clippingAncestors"?Dr(r)?[]:qc(r,this._c):[].concat(e),t],n=s[0],d=s.reduce((m,h)=>{let u=nn(r,h,o);return m.top=j(u.top,m.top),m.right=Ce(u.right,m.right),m.bottom=Ce(u.bottom,m.bottom),m.left=j(u.left,m.left),m},nn(r,n,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Zc(i){let{width:r,height:e}=cn(i);return{width:r,height:e}}function jc(i,r,e){let t=ye(r),o=ve(r),a=e==="fixed",s=xt(i,!0,a,r),n={scrollLeft:0,scrollTop:0},d=ge(0);if(t||!t&&!a)if((vt(r)!=="body"||er(o))&&(n=$r(r)),t){let x=xt(r,!0,a,r);d.x=x.x+r.clientLeft,d.y=x.y+r.clientTop}else o&&(d.x=Oi(o));let m=o&&!t&&!a?mn(o,n):ge(0),h=s.left+n.scrollLeft-d.x-m.x,u=s.top+n.scrollTop-d.y-m.y;return{x:h,y:u,width:s.width,height:s.height}}function Ri(i){return me(i).position==="static"}function ln(i,r){if(!ye(i)||me(i).position==="fixed")return null;if(r)return r(i);let e=i.offsetParent;return ve(i)===e&&(e=e.ownerDocument.body),e}function hn(i,r){let e=J(i);if(Dr(i))return e;if(!ye(i)){let o=Fe(i);for(;o&&!yt(o);){if(de(o)&&!Ri(o))return o;o=Fe(o)}return e}let t=ln(i,r);for(;t&&on(t)&&Ri(t);)t=ln(t,r);return t&&yt(t)&&Ri(t)&&!wo(t)?e:t||an(i)||e}var Kc=async function(i){let r=this.getOffsetParent||hn,e=this.getDimensions,t=await e(i.floating);return{reference:jc(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function Qc(i){return me(i).direction==="rtl"}var Jc={convertOffsetParentRelativeRectToViewportRelativeRect:Bc,getDocumentElement:ve,getClippingRect:Xc,getOffsetParent:hn,getElementRects:Kc,getClientRects:Hc,getDimensions:Zc,getScale:tr,isElement:de,isRTL:Qc};function ed(i,r){let e=null,t,o=ve(i);function a(){var n;clearTimeout(t),(n=e)==null||n.disconnect(),e=null}function s(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),a();let{left:m,top:h,width:u,height:x}=i.getBoundingClientRect();if(n||r(),!u||!x)return;let g=Mr(h),E=Mr(o.clientWidth-(m+u)),T=Mr(o.clientHeight-(h+x)),_=Mr(m),I={rootMargin:-g+"px "+-E+"px "+-T+"px "+-_+"px",threshold:j(0,Ce(1,d))||1},R=!0;function F(z){let se=z[0].intersectionRatio;if(se!==d){if(!R)return s();se?s(!1,se):t=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(F,{...I,root:o.ownerDocument})}catch{e=new IntersectionObserver(F,I)}e.observe(i)}return s(!0),a}function un(i,r,e,t){t===void 0&&(t={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=t,m=Ni(i),h=o||a?[...m?Jt(m):[],...Jt(r)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=m&&n?ed(m,e):null,x=-1,g=null;s&&(g=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&g&&(g.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(r)})),e()}),m&&!d&&g.observe(m),g.observe(r));let E,T=d?xt(i):null;d&&_();function _(){let S=xt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{o&&I.removeEventListener("scroll",e),a&&I.removeEventListener("resize",e)}),u==null||u(),(S=g)==null||S.disconnect(),g=null,d&&cancelAnimationFrame(E)}}var fn=Qs;var bn=Js,gn=Ks,vn=en;var yn=js;var xn=(i,r,e)=>{let t=new Map,o={platform:Jc,...e},a={...o.platform,_c:t};return Zs(i,r,{...o,platform:a})};var td=f`
1489
1489
  :host {
1490
1490
  --mdc-popover-arrow-border-radius: 0.1875rem;
1491
1491
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1592,7 +1592,7 @@
1592
1592
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1593
1593
  border-bottom-left-radius: 100%;
1594
1594
  }
1595
- `,hn=[Hc];var un=b.constructTagName("popover"),Ve={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"},Or={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Mr={TONAL:"tonal",CONTRAST:"contrast"},O={PLACEMENT:Ve.BOTTOM,TRIGGER:Or.CLICK,COLOR:Mr.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 fn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=O.FOCUS_TRAP;this.enabledPreventScroll=O.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:s,height:a}=o.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=o;return n+d+a+s===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:s,opacity:a,visibility:n}=o.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(o){let s=getComputedStyle(o);return s.visibility==="hidden"||s.height==="0"||s.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,s=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&s.add(o),Array.from(o.children).forEach(n=>{let d=n;this.isFocusable(d)&&s.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,s):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,s)}):this.findFocusable(d,s)}),[...s]}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,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(o===-1)return s>0?0:a-1;let d=o+s;return n?(d<0&&(d=a-1),d>=a&&(d=0)):(d<0&&(d=0),d>=a&&(d=a-1)),d}getDeepActiveElement(){var s;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((s=o.shadowRoot)!=null&&s.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(o,s))}isEqualFocusNode(o,s){return o.nodeType>=0?s.isEqualNode(o)&&s===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);o?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var wi=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=[]}},vt=new wi;var yt=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 To=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,s=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=`${s}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=`${s}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(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)||""))}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:s,y:a}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[o]?12-Math.abs(n[o]-d[o]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:s!=null?`${s}px`:"",top:a!=null?`${a}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-m}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=`
1595
+ `,En=[td];var Tn=b.constructTagName("popover"),Be={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"},zr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Pr={TONAL:"tonal",CONTRAST:"contrast"},O={PLACEMENT:Be.BOTTOM,TRIGGER:zr.CLICK,COLOR:Pr.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 An=i=>{class r extends i{constructor(...o){super(...o);this.enabledFocusTrap=O.FOCUS_TRAP;this.enabledPreventScroll=O.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:n,offsetHeight:d}=o;return n+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:n}=o.style;return a==="none"||s==="0"||n==="hidden"||n==="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(n=>{let d=n;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,n=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return n?(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 n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return l([c({type:Boolean})],r.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],r.prototype,"enabledPreventScroll",2),r};var Mi=class{constructor(){this.stack=[]}push(r){this.stack.push(r)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(r){this.stack=this.stack.filter(e=>e!==r)}clear(){this.stack=[]}},Et=new Mi;var Tt=class{static dispatchPopoverEvent(r,e){e.dispatchEvent(new CustomEvent(r,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(r){this.dispatchPopoverEvent("shown",r)}static onHidePopover(r){this.dispatchPopoverEvent("hidden",r)}static onCreatedPopover(r){this.dispatchPopoverEvent("created",r)}static onDestroyedPopover(r){this.dispatchPopoverEvent("destroyed",r)}};var Co=class{constructor(r){this.arrowPixelChange=!1;this.popover=r}setupDelay(){try{let[r,e]=this.popover.delay.split(",").map(t=>{let o=parseInt(t,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${t}`);return o});return[r,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(r){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let t=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(r.split("-")[0]){case"top":e.style.height=t,e.style.bottom=`calc(-1 * (${t}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=t,e.style.right=`calc(-1.5 * (${t}))`;break;case"right":e.style.height=`${o}px`,e.style.width=t,e.style.left=`calc(-0.5 * (${t}))`;break;case"bottom":default:e.style.height=t,e.style.top=`calc(-1 * (${t}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&r.appendChild(this.popover)}}setupAccessibility(){var r,e,t;this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((r=this.popover.triggerElement)==null?void 0:r.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((t=this.popover.triggerElement)==null?void 0:t.id)||""))}updateArrowStyle(r,e){var h;if(!this.popover.arrowElement)return;let t=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[t],{x:a,y:s}=r,n=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[o]?12-Math.abs(n[o]-d[o]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",t),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(r,e){Object.assign(this.popover.style,{left:`${r}px`,top:`${e}px`})}createBackdrop(){var r;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(r=this.popover.parentElement)==null||r.appendChild(e);let t=document.createElement("style");t.textContent=`
1596
1596
  .popover-backdrop {
1597
1597
  position: fixed;
1598
1598
  top: 0;
@@ -1602,7 +1602,7 @@
1602
1602
  background: transparent;
1603
1603
  z-index: ${this.popover.zIndex-1};
1604
1604
  }
1605
- `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends fn(y){constructor(){super();this.id="";this.triggerID="";this.trigger=O.TRIGGER;this.placement=O.PLACEMENT;this.color=O.COLOR;this.visible=O.VISIBLE;this.offset=O.OFFSET;this.focusTrap=O.FOCUS_TRAP;this.preventScroll=O.PREVENT_SCROLL;this.showArrow=O.ARROW;this.closeButton=O.CLOSE_BUTTON;this.interactive=O.INTERACTIVE;this.delay=O.DELAY;this.hideOnEscape=O.HIDE_ON_ESCAPE;this.hideOnBlur=O.HIDE_ON_BLUR;this.hideOnOutsideClick=O.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=O.FOCUS_BACK;this.backdrop=O.BACKDROP;this.flip=O.FLIP;this.size=O.SIZE;this.zIndex=O.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=O.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=O.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(vt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let s=this.backdropElement?o.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{vt.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 To(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}`,yt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),yt.onDestroyedPopover(this),vt.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)}if(e.has("placement")&&this.setAttribute("placement",Object.values(Ve).includes(this.placement)?this.placement:O.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(s=>Object.values(Or).includes(s));this.setAttribute("trigger",o.length>0?this.trigger:O.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Mr).includes(this.color)?this.color:O.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()}async isOpenUpdated(e,r){var o,s,a;e===r||!this.triggerElement||(r?(vt.peek()!==this&&vt.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),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),yt.onShowPopover(this)):(vt.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),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus()),yt.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=[ln()],r=this.offset;if(this.flip&&e.push(cn()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(dn({apply({availableHeight:s}){o&&Object.assign(o.style,{maxHeight:`${s}px`})},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(mn({element:this.arrowElement,padding:12}))}e.push(nn(r)),an(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:s,middlewareData:a,placement:n}=await pn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,s),a.arrow&&this.arrowElement&&this.utils.updateArrowStyle(a.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return p`
1605
+ `,e.appendChild(t),this.popover.backdropElement=e}}};var L=class extends An(v){constructor(){super();this.id="";this.triggerID="";this.trigger=O.TRIGGER;this.placement=O.PLACEMENT;this.color=O.COLOR;this.visible=O.VISIBLE;this.offset=O.OFFSET;this.focusTrap=O.FOCUS_TRAP;this.preventScroll=O.PREVENT_SCROLL;this.showArrow=O.ARROW;this.closeButton=O.CLOSE_BUTTON;this.interactive=O.INTERACTIVE;this.delay=O.DELAY;this.hideOnEscape=O.HIDE_ON_ESCAPE;this.hideOnBlur=O.HIDE_ON_BLUR;this.hideOnOutsideClick=O.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=O.FOCUS_BACK;this.backdrop=O.BACKDROP;this.flip=O.FLIP;this.size=O.SIZE;this.zIndex=O.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=O.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=O.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(Et.peek()!==this)return;let t=!1,o=e.composedPath();t=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!t||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=()=>{Et.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 Co(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}`,Tt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Tt.onDestroyedPopover(this),Et.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 t=e.get("visible")||!1;await this.isOpenUpdated(t,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(Be).includes(this.placement)?this.placement:O.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(zr).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:O.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Pr).includes(this.color)?this.color:O.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()}async isOpenUpdated(e,t){var o,a,s;e===t||!this.triggerElement||(t?(Et.peek()!==this&&Et.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),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Tt.onShowPopover(this)):(Et.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&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),Tt.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,t;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(t=this.setInitialFocus)==null||t.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[bn()],t=this.offset;if(this.flip&&e.push(gn()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(vn({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;t=Math.sqrt(2*o**2)/2+this.offset,e.push(yn({element:this.arrowElement,padding:12}))}e.push(fn(t)),un(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:n}=await xn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return p`
1606
1606
  <div class="popover-hover-bridge"></div>
1607
1607
  ${this.closeButton?p` <mdc-button
1608
1608
  class="popover-close"
@@ -1611,12 +1611,12 @@
1611
1611
  size="20"
1612
1612
  aria-label=${A(this.closeButtonAriaLabel)||""}
1613
1613
  @click="${this.hidePopover}"
1614
- ></mdc-button>`:v}
1615
- ${this.showArrow?p`<div class="popover-arrow"></div>`:v}
1614
+ ></mdc-button>`:y}
1615
+ ${this.showArrow?p`<div class="popover-arrow"></div>`:y}
1616
1616
  <div part="popover-content">
1617
1617
  <slot></slot>
1618
1618
  </div>
1619
- `}};L.styles=[...y.styles,...hn],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Qe=L;var bn=b.constructTagName("coachmark"),xt={COLOR:Mr.CONTRAST,TRIGGER:Or.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Et=class extends Qe{constructor(){super(...arguments);this.trigger=xt.TRIGGER;this.showArrow=xt.ARROW;this.closeButton=xt.CLOSE_BUTTON;this.disableAriaExpanded=xt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=xt.COLOR,this.showArrow=xt.ARROW}};l([c({type:String,reflect:!0})],Et.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],Et.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],Et.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Et.prototype,"disableAriaExpanded",2);var Ci=Et;Ci.register(bn);var Bc=Ci;var gn=b.constructTagName("divider"),Dr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Li={SOLID:"solid",GRADIENT:"gradient"},Je={POSITIVE:"positive",NEGATIVE:"negative"},$r={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Tt={ORIENTATION:Dr.HORIZONTAL,VARIANT:Li.SOLID,ARROW_DIRECTION:Je.NEGATIVE,BUTTON_DIRECTION:Je.NEGATIVE};var Gc=[C,f`
1619
+ `}};L.styles=[...v.styles,...En],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var tt=L;var Sn=b.constructTagName("coachmark"),At={COLOR:Pr.CONTRAST,TRIGGER:zr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var St=class extends tt{constructor(){super(...arguments);this.trigger=At.TRIGGER;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=At.COLOR,this.showArrow=At.ARROW}};l([c({type:String,reflect:!0})],St.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],St.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],St.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],St.prototype,"disableAriaExpanded",2);var Di=St;Di.register(Sn);var rd=Di;var wn=b.constructTagName("divider"),Vr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},$i={SOLID:"solid",GRADIENT:"gradient"},rt={POSITIVE:"positive",NEGATIVE:"negative"},Ur={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},wt={ORIENTATION:Vr.HORIZONTAL,VARIANT:$i.SOLID,ARROW_DIRECTION:rt.NEGATIVE,BUTTON_DIRECTION:rt.NEGATIVE};var od=[k,f`
1620
1620
  :host {
1621
1621
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1622
1622
  --mdc-divider-width: 0.0625rem;
@@ -1827,11 +1827,11 @@
1827
1827
  font-size: var(--mdc-divider-text-size);
1828
1828
  line-height: var(--mdc-divider-text-line-height);
1829
1829
  }
1830
- `],vn=Gc;var et=class extends y{constructor(){super(...arguments);this.orientation=Tt.ORIENTATION;this.variant=Tt.VARIANT;this.arrowDirection=Tt.ARROW_DIRECTION;this.buttonPosition=Tt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Li).includes(e)?e:Tt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Dr).includes(e)?e:Tt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Dr.HORIZONTAL?Je.NEGATIVE:Je.POSITIVE;Object.values(Je).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Je).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===Dr.HORIZONTAL,r=this.arrowDirection===Je.POSITIVE;return e?r?$r.UP:$r.DOWN:r?$r.RIGHT:$r.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 a;let e=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(n=>n.tagName===gr.toUpperCase()),s=r.some(n=>n.tagName===Er.toUpperCase());o&&!s?this.setAttribute("data-type","mdc-text-divider"):!o&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return p`
1830
+ `],_n=od;var ot=class extends v{constructor(){super(...arguments);this.orientation=wt.ORIENTATION;this.variant=wt.VARIANT;this.arrowDirection=wt.ARROW_DIRECTION;this.buttonPosition=wt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values($i).includes(e)?e:wt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Vr).includes(e)?e:wt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Vr.HORIZONTAL?rt.NEGATIVE:rt.POSITIVE;Object.values(rt).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(rt).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let t=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",t)}}getArrowIcon(){let e=this.orientation===Vr.HORIZONTAL,t=this.arrowDirection===rt.POSITIVE;return e?t?Ur.UP:Ur.DOWN:t?Ur.RIGHT:Ur.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"),t=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(t.length>1)return;let o=t.some(n=>n.tagName===xr.toUpperCase()),a=t.some(n=>n.tagName===Sr.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 p`
1831
1831
  <div></div>
1832
1832
  <slot @slotchange=${this.inferDividerType}></slot>
1833
1833
  <div></div>
1834
- `}};et.styles=[...y.styles,...vn],l([c({type:String,reflect:!0})],et.prototype,"orientation",2),l([c({type:String,reflect:!0})],et.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],et.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],et.prototype,"buttonPosition",2);var Ni=et;Ni.register(gn);var Yc=Ni;var Wc=f`
1834
+ `}};ot.styles=[...v.styles,..._n],l([c({type:String,reflect:!0})],ot.prototype,"orientation",2),l([c({type:String,reflect:!0})],ot.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],ot.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],ot.prototype,"buttonPosition",2);var zi=ot;zi.register(wn);var id=zi;var ad=f`
1835
1835
  :host([selected]){
1836
1836
  border: 2px solid;
1837
1837
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -1851,7 +1851,7 @@
1851
1851
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1852
1852
  cursor: auto;
1853
1853
  }
1854
- `,yn=[Wc];var xn=b.constructTagName("filterchip"),Ri={ICON_NAME:"check-bold",COLOR:"default"};var zr=class extends Zt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ri.COLOR}setSelected(e){e?(this.iconName=Ri.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)}};zr.styles=[...Zt.styles,...yn],l([c({type:Boolean,reflect:!0})],zr.prototype,"selected",2);var Oi=zr;Oi.register(xn);var qc=Oi;var En=b.constructTagName("formfieldgroup"),Mi={RADIOGROUP:"radiogroup",GROUP:"group"};var Xc=f`
1854
+ `,In=[ad];var Cn=b.constructTagName("filterchip"),Pi={ICON_NAME:"check-bold",COLOR:"default"};var Fr=class extends Qt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Pi.COLOR}setSelected(e){e?(this.iconName=Pi.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)}};Fr.styles=[...Qt.styles,...In],l([c({type:Boolean,reflect:!0})],Fr.prototype,"selected",2);var Vi=Fr;Vi.register(Cn);var sd=Vi;var kn=b.constructTagName("formfieldgroup"),Ui={RADIOGROUP:"radiogroup",GROUP:"group"};var nd=f`
1855
1855
 
1856
1856
  :host::part(container) {
1857
1857
  display: flex;
@@ -1868,10 +1868,10 @@
1868
1868
  :host::part(label-text){
1869
1869
  font-weight: bold;
1870
1870
  }
1871
- `,Tn=[Xc];var Ao=class extends P(Z){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 p`
1871
+ `,Ln=[nd];var ko=class extends P(Z){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 p`
1872
1872
  <div
1873
1873
  part="container"
1874
- role="${this.isRadio?Mi.RADIOGROUP:Mi.GROUP}"
1874
+ role="${this.isRadio?Ui.RADIOGROUP:Ui.GROUP}"
1875
1875
  aria-labelledby="${V.HEADING_ID}"
1876
1876
  aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
1877
1877
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
@@ -1882,7 +1882,7 @@
1882
1882
  </div>
1883
1883
  <slot></slot>
1884
1884
  </div>
1885
- `}};Ao.styles=[...Z.styles,...Tn];var Di=Ao;Di.register(En);var So=Di;vr.register(oo);var Zc=vr;var jc=[f`
1885
+ `}};ko.styles=[...Z.styles,...Ln];var Fi=ko;Fi.register(kn);var Lo=Fi;Er.register(co);var ld=Er;var cd=[f`
1886
1886
  :host{
1887
1887
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1888
1888
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1998,36 +1998,36 @@
1998
1998
  opacity: 0;
1999
1999
  pointer-events: none;
2000
2000
  }
2001
- `,...R(!0)],An=jc;Z.register(La);var de=Z;var Sn=b.constructTagName("input"),_o={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},$i={OFF:"off",ON:"on"},zi={TEXT:"text",SEARCH:"search"},_n={MAX_LENGTH:10,VALIDATION:B.ERROR},Ue={VALIDATION:B.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ze.TERTIARY,CLEAR_BUTTON_SIZE:Ae[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN,AUTO_COMPLETE:$i.OFF,INPUT_TYPE:zi.TEXT};var U=class extends Q(P(de)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=_o.OFF;this.autocomplete=$i.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(a=>{this.onerror&&this.onerror(a)})}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?p`
2001
+ `,...N(!0)],Rn=cd;Z.register(Ps);var pe=Z;var Nn=b.constructTagName("input"),Ro={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Bi={OFF:"off",ON:"on"},Hi={TEXT:"text",SEARCH:"search"},On={MAX_LENGTH:10,VALIDATION:H.ERROR},He={VALIDATION:H.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Qe.TERTIARY,CLEAR_BUTTON_SIZE:we[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN,AUTO_COMPLETE:Bi.OFF,INPUT_TYPE:Hi.TEXT};var U=class extends Q(P(pe)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Ro.OFF;this.autocomplete=Bi.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,t,o){super.attributeChangedCallback(e,t,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 t=e.constructor;this.dispatchEvent(new t(e.type,e))}handleKeyDown(e){var t;e.key==="Enter"&&((t=this.form)==null||t.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?p`
2002
2002
  <mdc-icon
2003
2003
  class="leading-icon"
2004
2004
  part="leading-icon"
2005
2005
  name=${this.leadingIcon}
2006
- size="${Ue.ICON_SIZE_VALUE}"
2007
- length-unit="${Ue.ICON_SIZE_UNIT}">
2006
+ size="${He.ICON_SIZE_VALUE}"
2007
+ length-unit="${He.ICON_SIZE_UNIT}">
2008
2008
  </mdc-icon>
2009
- `:v}renderPrefixText(){return this.prefixText?p`
2009
+ `:y}renderPrefixText(){return this.prefixText?p`
2010
2010
  <mdc-text
2011
2011
  class="prefix-text"
2012
- tagname="${Ue.PREFIX_TEXT_TAG}"
2013
- type="${Ue.PREFIX_TEXT_TYPE}"
2012
+ tagname="${He.PREFIX_TEXT_TAG}"
2013
+ type="${He.PREFIX_TEXT_TYPE}"
2014
2014
  aria-hidden="true"
2015
2015
  >
2016
- ${this.prefixText.slice(0,_n.MAX_LENGTH)}
2016
+ ${this.prefixText.slice(0,On.MAX_LENGTH)}
2017
2017
  </mdc-text>
2018
- `:v}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return!this.trailingButton||!this.value?v:p`
2018
+ `:y}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return!this.trailingButton||!this.value?y:p`
2019
2019
  <mdc-button
2020
2020
  part='trailing-button'
2021
2021
  class='own-focus-ring ${this.value?"":"hidden"}'
2022
- prefix-icon='${Ue.CLEAR_BUTTON_ICON}'
2023
- variant='${Ue.CLEAR_BUTTON_VARIANT}'
2024
- size="${Ue.CLEAR_BUTTON_SIZE}"
2022
+ prefix-icon='${He.CLEAR_BUTTON_ICON}'
2023
+ variant='${He.CLEAR_BUTTON_VARIANT}'
2024
+ size="${He.CLEAR_BUTTON_SIZE}"
2025
2025
  aria-label="${this.clearAriaLabel}"
2026
2026
  @click=${this.clearInputText}
2027
2027
  ?disabled=${this.disabled||this.readonly||!this.value}
2028
2028
  ></mdc-button>
2029
- `}renderInputElement(e){var r;return p`<input
2030
- aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
2029
+ `}renderInputElement(e){var t;return p`<input
2030
+ aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
2031
2031
  class='input'
2032
2032
  part='input'
2033
2033
  id="${this.id}"
@@ -2058,12 +2058,12 @@
2058
2058
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
2059
2059
  <div class="input-section" part="input-section">
2060
2060
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
2061
- <slot name="input">${this.renderInputElement(Ue.INPUT_TYPE)}</slot>
2061
+ <slot name="input">${this.renderInputElement(He.INPUT_TYPE)}</slot>
2062
2062
  </div>
2063
2063
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
2064
2064
  </div>
2065
- ${this.helpText?this.renderHelperText():v}
2066
- `}};U.styles=[...de.styles,...An],l([c({type:String})],U.prototype,"placeholder",2),l([c({type:Boolean})],U.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],U.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],U.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],U.prototype,"trailingButton",2),l([c({type:Number})],U.prototype,"maxlength",2),l([c({type:Number})],U.prototype,"minlength",2),l([c({type:String})],U.prototype,"autocapitalize",2),l([c({type:String})],U.prototype,"autocomplete",2),l([c({type:Boolean})],U.prototype,"autofocus",2),l([c({type:String})],U.prototype,"dirname",2),l([c({type:String})],U.prototype,"pattern",2),l([c({type:String})],U.prototype,"list",2),l([c({type:Number})],U.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],U.prototype,"clearAriaLabel",2);var Jt=U;Jt.register(Sn);var Kc=Jt;var Qc=f`
2065
+ ${this.helpText?this.renderHelperText():y}
2066
+ `}};U.styles=[...pe.styles,...Rn],l([c({type:String})],U.prototype,"placeholder",2),l([c({type:Boolean})],U.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],U.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],U.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],U.prototype,"trailingButton",2),l([c({type:Number})],U.prototype,"maxlength",2),l([c({type:Number})],U.prototype,"minlength",2),l([c({type:String})],U.prototype,"autocapitalize",2),l([c({type:String})],U.prototype,"autocomplete",2),l([c({type:Boolean})],U.prototype,"autofocus",2),l([c({type:String})],U.prototype,"dirname",2),l([c({type:String})],U.prototype,"pattern",2),l([c({type:String})],U.prototype,"list",2),l([c({type:Number})],U.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],U.prototype,"clearAriaLabel",2);var rr=U;rr.register(Nn);var dd=rr;var md=f`
2067
2067
  :host {
2068
2068
  height: 1.5rem;
2069
2069
  gap: 0.25rem;
@@ -2092,24 +2092,24 @@
2092
2092
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2093
2093
  cursor: auto;
2094
2094
  }
2095
- `,In=[C,Qc];var kn=b.constructTagName("inputchip"),Io={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var At=class extends K(se(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?p`
2095
+ `,Mn=[k,md];var Dn=b.constructTagName("inputchip"),No={TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var _t=class extends K(ne(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?p`
2096
2096
  <mdc-icon
2097
2097
  name="${this.iconName}"
2098
2098
  length-unit="rem"
2099
2099
  size="1"></mdc-icon>
2100
- `:v}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return p`
2100
+ `:y}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return p`
2101
2101
  ${this.renderIcon()}
2102
- <mdc-text part="label" type="${Io.TEXT_TYPE}" tagname="${Io.TAG_NAME}">${this.label}</mdc-text>
2102
+ <mdc-text part="label" type="${No.TEXT_TYPE}" tagname="${No.TAG_NAME}">${this.label}</mdc-text>
2103
2103
  <mdc-button
2104
2104
  ?disabled="${this.disabled}"
2105
2105
  variant="tertiary"
2106
2106
  part="close-icon"
2107
2107
  aria-label="${this.clearAriaLabel}"
2108
- prefix-icon="${Io.CLOSE_ICON}"
2108
+ prefix-icon="${No.CLOSE_ICON}"
2109
2109
  size="20"
2110
2110
  @click="${this.handleClose}"
2111
2111
  ></mdc-button>
2112
- `}};At.styles=[...y.styles,...In],l([c({type:String})],At.prototype,"label",2),l([c({type:Boolean})],At.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],At.prototype,"clearAriaLabel",2);var Pi=At;Pi.register(kn);var Jc=Pi;var wn=b.constructTagName("link"),ko={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},wo={LARGE:1,MIDSIZE:.875,SMALL:.75},Co={INLINE:!1,INVERTED:!1,LINK_SIZE:ko.LARGE};var ed=[C,f`
2112
+ `}};_t.styles=[...v.styles,...Mn],l([c({type:String})],_t.prototype,"label",2),l([c({type:Boolean})],_t.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],_t.prototype,"clearAriaLabel",2);var Gi=_t;Gi.register(Dn);var pd=Gi;var $n=b.constructTagName("link"),Oo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Mo={LARGE:1,MIDSIZE:.875,SMALL:.75},Do={INLINE:!1,INVERTED:!1,LINK_SIZE:Oo.LARGE};var hd=[k,f`
2113
2113
 
2114
2114
  :host {
2115
2115
 
@@ -2228,35 +2228,35 @@
2228
2228
  :host([inverted][disabled])::part(link-container) {
2229
2229
  color: var(--mdc-link-inverted-color-disabled);
2230
2230
  }
2231
- `,...R(!0),f`
2231
+ `,...N(!0),f`
2232
2232
  :host(:active)::part(link-container) {
2233
2233
  box-shadow: none;
2234
2234
  }
2235
- `],Cn=ed;var St=class extends se(K(y)){constructor(){super(...arguments);this.inline=Co.INLINE;this.inverted=Co.INVERTED;this.size=Co.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case ko.SMALL:return wo.SMALL;case ko.MIDSIZE:return wo.MIDSIZE;default:return wo.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var o,s;let e=(s=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}).find(a=>a.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let a=document.createElement("mdc-icon");a.setAttribute("name",this.iconName),a.setAttribute("size",`${r}`),a.setAttribute("length-unit","rem"),e.appendChild(a)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return p`
2235
+ `],zn=hd;var It=class extends ne(K(v)){constructor(){super(...arguments);this.inline=Do.INLINE;this.inverted=Do.INVERTED;this.size=Do.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Oo.SMALL:return Mo.SMALL;case Oo.MIDSIZE:return Mo.MIDSIZE;default:return Mo.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var o,a;let e=(a=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"))==null?void 0:a.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),t=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${t}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return p`
2236
2236
  <div part='link-container' class='mdc-focus-ring'>
2237
2237
  <slot @slotchange=${this.updateTrailingIcon}></slot>
2238
2238
  </div>
2239
- `}};St.styles=[...y.styles,...Cn],l([c({type:Boolean,reflect:!0})],St.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],St.prototype,"inverted",2),l([c({type:String,reflect:!0})],St.prototype,"size",2);var Vi=St;Vi.register(wn);var td=Vi;var Lo=b.constructTagName("listitem"),Ui={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ln={VARIANT:Ui.FULL_WIDTH};var Nn=b.constructTagName("list"),Fi="header-id";var rd=f`
2239
+ `}};It.styles=[...v.styles,...zn],l([c({type:Boolean,reflect:!0})],It.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],It.prototype,"inverted",2),l([c({type:String,reflect:!0})],It.prototype,"size",2);var Wi=It;Wi.register($n);var ud=Wi;var $o=b.constructTagName("listitem"),Yi={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Pn={VARIANT:Yi.FULL_WIDTH};var Vn=b.constructTagName("list"),qi="header-id";var fd=f`
2240
2240
  :host::part(header-text) {
2241
2241
  padding: 0.5rem 0.75rem;
2242
2242
  }
2243
- `,Rn=[rd];var D={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var er=class extends P(y){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 D.ARROW_DOWN:return(e+1)%r;case D.ARROW_UP:return(e-1+r)%r;case D.HOME:return 0;case D.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?p`
2243
+ `,Un=[fd];var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var or=class extends P(v){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(r){var o;let e=this.getCurrentIndex(r.target),t=this.getNewIndexBasedOnKey(r.key,e,this.listItems.length);t!==void 0&&((o=this.listItems[t])==null||o.focus(),this.resetTabIndexAndSetActiveTabIndex(t))}getCurrentIndex(r){return this.listItems.findIndex(e=>e===r||e===r.parentElement)}getNewIndexBasedOnKey(r,e,t){switch(r){case $.ARROW_DOWN:return(e+1)%t;case $.ARROW_UP:return(e-1+t)%t;case $.HOME:return 0;case $.END:return t-1;default:return}}handleMouseClick(r){let e=this.getCurrentIndex(r.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(r){this.listItems.forEach((e,t)=>{let o=r===t?"0":"-1";e==null||e.setAttribute("tabindex",o)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let r=this.headerText?p`
2244
2244
  <mdc-text
2245
- id="${Fi}"
2245
+ id="${qi}"
2246
2246
  part="header-text"
2247
- type="${_.BODY_MIDSIZE_BOLD}"
2248
- tagname="${w.SPAN}"
2247
+ type="${w.BODY_MIDSIZE_BOLD}"
2248
+ tagname="${C.SPAN}"
2249
2249
  >${this.headerText}</mdc-text>
2250
- `:v;return p`
2250
+ `:y;return p`
2251
2251
  <div
2252
2252
  role="list"
2253
- aria-labelledby="${this.headerText?Fi:""}"
2253
+ aria-labelledby="${this.headerText?qi:""}"
2254
2254
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2255
2255
  >
2256
- ${t}
2256
+ ${r}
2257
2257
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2258
2258
  </div>
2259
- `}};er.styles=[...y.styles,...Rn],l([ue({selector:Lo})],er.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],er.prototype,"headerText",2);var Hi=er;Hi.register(Nn);var od=Hi;var id=f`
2259
+ `}};or.styles=[...v.styles,...Un],l([te({selector:$o})],or.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],or.prototype,"headerText",2);var Xi=or;Xi.register(Vn);var bd=Xi;var gd=f`
2260
2260
  :host {
2261
2261
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2262
2262
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2326,27 +2326,27 @@
2326
2326
  display: flex;
2327
2327
  flex-direction: row;
2328
2328
  }
2329
- `,On=[id,...R()];var me=class extends P(se(ro(y))){constructor(){super(...arguments);this.variant=Ln.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,o){return o?p`
2329
+ `,Fn=[gd,...N()];var he=class extends P(ne(lo(v))){constructor(){super(...arguments);this.variant=Pn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,t,o){return o?p`
2330
2330
  <slot name="${e}">
2331
- <mdc-text part="${e}" type="${r}" tagname="${w.SPAN}">${o}</mdc-text>
2331
+ <mdc-text part="${e}" type="${t}" tagname="${C.SPAN}">${o}</mdc-text>
2332
2332
  </slot>
2333
- `:v}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 p`
2333
+ `:y}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{e?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return p`
2334
2334
  <div part="leading">
2335
2335
  <slot name="leading-controls"></slot>
2336
2336
  <div part="leading-text">
2337
- ${this.getText("leading-text-primary-label",_.BODY_MIDSIZE_REGULAR,this.label)}
2338
- ${this.getText("leading-text-secondary-label",_.BODY_SMALL_REGULAR,this.secondaryLabel)}
2339
- ${this.getText("leading-text-tertiary-label",_.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2337
+ ${this.getText("leading-text-primary-label",w.BODY_MIDSIZE_REGULAR,this.label)}
2338
+ ${this.getText("leading-text-secondary-label",w.BODY_SMALL_REGULAR,this.secondaryLabel)}
2339
+ ${this.getText("leading-text-tertiary-label",w.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2340
2340
  </div>
2341
2341
  </div>
2342
2342
  <div part="trailing">
2343
2343
  <div part="trailing-text">
2344
- ${this.getText("trailing-text-side-header",_.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
2345
- ${this.getText("trailing-text-subline",_.BODY_SMALL_REGULAR,this.sublineText)}
2344
+ ${this.getText("trailing-text-side-header",w.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
2345
+ ${this.getText("trailing-text-subline",w.BODY_SMALL_REGULAR,this.sublineText)}
2346
2346
  </div>
2347
2347
  <slot name="trailing-controls"></slot>
2348
2348
  </div>
2349
- `}};me.styles=[...y.styles,...On],l([ue({slot:"leading-controls"})],me.prototype,"leadingControlsSlot",2),l([ue({slot:"trailing-controls"})],me.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],me.prototype,"variant",2),l([c({type:String,reflect:!0})],me.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],me.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],me.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],me.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],me.prototype,"sublineText",2);var tr=me;tr.register(Lo);var sd=tr;var ad=f`
2349
+ `}};he.styles=[...v.styles,...Fn],l([te({slot:"leading-controls"})],he.prototype,"leadingControlsSlot",2),l([te({slot:"trailing-controls"})],he.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],he.prototype,"variant",2),l([c({type:String,reflect:!0})],he.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],he.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],he.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],he.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],he.prototype,"sublineText",2);var ir=he;ir.register($o);var vd=ir;var yd=f`
2350
2350
  :host {
2351
2351
  --mdc-marker-width: 0.25rem;
2352
2352
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2371,7 +2371,7 @@
2371
2371
  var(--mdc-marker-striped-background-color) 0.375rem
2372
2372
  );
2373
2373
  }
2374
- `,Mn=[ad];var Dn=b.constructTagName("marker"),$n={SOLID:"solid",STRIPED:"striped"};var Pr=class extends y{constructor(){super(...arguments);this.variant=$n.SOLID}};Pr.styles=[...y.styles,...Mn],l([c({type:String,reflect:!0})],Pr.prototype,"variant",2);var Bi=Pr;Bi.register(Dn);var nd=Bi;var No=b.constructTagName("optgroup"),Gi="header-id";var ld=f`
2374
+ `,Bn=[yd];var Hn=b.constructTagName("marker"),Gn={SOLID:"solid",STRIPED:"striped"};var Br=class extends v{constructor(){super(...arguments);this.variant=Gn.SOLID}};Br.styles=[...v.styles,...Bn],l([c({type:String,reflect:!0})],Br.prototype,"variant",2);var Zi=Br;Zi.register(Hn);var xd=Zi;var zo=b.constructTagName("optgroup"),ji="header-id";var Ed=f`
2375
2375
  :host {
2376
2376
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
2377
2377
  }
@@ -2384,23 +2384,23 @@
2384
2384
  color: var(--mdc-optgroup-disabled-color);
2385
2385
  cursor: default;
2386
2386
  }
2387
- `,zn=[ld];var rr=class extends P(se(y)){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?p`
2387
+ `,Wn=[Ed];var ar=class extends P(ne(v)){setDisabledForAllOptions(){this.options.forEach(r=>{this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}updated(r){super.updated(r),r.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let r=this.label?p`
2388
2388
  <mdc-text
2389
- id="${Gi}"
2389
+ id="${ji}"
2390
2390
  part="header-text"
2391
- type="${_.BODY_MIDSIZE_BOLD}"
2392
- tagname="${w.SPAN}"
2391
+ type="${w.BODY_MIDSIZE_BOLD}"
2392
+ tagname="${C.SPAN}"
2393
2393
  >${this.label}</mdc-text>
2394
- `:v;return p`
2394
+ `:y;return p`
2395
2395
  <div
2396
2396
  role="group"
2397
- aria-labelledby="${this.label?Gi:""}"
2397
+ aria-labelledby="${this.label?ji:""}"
2398
2398
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2399
2399
  >
2400
- ${t}
2400
+ ${r}
2401
2401
  <slot role="presentation"></slot>
2402
2402
  </div>
2403
- `}};rr.styles=[...y.styles,...zn],l([c({type:String,reflect:!0})],rr.prototype,"label",2),l([ue({selector:"mdc-option"})],rr.prototype,"options",2);var Yi=rr;Yi.register(No);var cd=Yi;var Ro=b.constructTagName("tooltip"),oe={DESCRIPTION:"description",LABEL:"label",NONE:"none"},tt={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ve.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:oe.DESCRIPTION};var dd=f`
2403
+ `}};ar.styles=[...v.styles,...Wn],l([c({type:String,reflect:!0})],ar.prototype,"label",2),l([te({selector:"mdc-option"})],ar.prototype,"options",2);var Ki=ar;Ki.register(zo);var Td=Ki;var Po=b.constructTagName("tooltip"),ie={DESCRIPTION:"description",LABEL:"label",NONE:"none"},it={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Be.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ie.DESCRIPTION};var Ad=f`
2404
2404
 
2405
2405
  :host {
2406
2406
  --mdc-tooltip-max-width: 400px;
@@ -2425,7 +2425,7 @@
2425
2425
  :host([color='contrast'])::part(popover-content) {
2426
2426
  color: var(--mdc-tooltip-text-color-contrast);
2427
2427
  }
2428
- `,Pn=[dd];var or=class extends Qe{constructor(){super(...arguments);this.tooltipType=tt.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=tt.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=tt.OFFSET,this.placement=tt.PLACEMENT,this.role="tooltip",this.showArrow=!0,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(oe).includes(e)?e:tt.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${De()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case oe.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case oe.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ve).includes(this.placement)||(this.placement=tt.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(oe).includes(this.tooltipType)||this.setTooltipType(tt.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let s=this.getTooltipText();switch(this.tooltipType){case oe.DESCRIPTION:r===oe.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case oe.LABEL:r===oe.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===oe.DESCRIPTION?o.removeAttribute("aria-describedby"):r===oe.LABEL&&o.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==oe.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};or.styles=[...Qe.styles,...Pn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],or.prototype,"tooltipType",2),l([Vs()],or.prototype,"defaultSlotNodes",2);var Wi=or;Wi.register(Ro);var md=Wi;var Vn="check-bold",qi="dynamic-option-tooltip-popover",Vr=b.constructTagName("option");var pd=f`
2428
+ `,Yn=[Ad];var sr=class extends tt{constructor(){super(...arguments);this.tooltipType=it.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=it.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=it.OFFSET,this.placement=it.PLACEMENT,this.role="tooltip",this.showArrow=!0,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,t;return((t=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:t.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(ie).includes(e)?e:it.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Pe()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case ie.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case ie.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Be).includes(this.placement)||(this.placement=it.PLACEMENT)}onTooltipTypeUpdated(e){let t=e.get("tooltipType");Object.values(ie).includes(this.tooltipType)||this.setTooltipType(it.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case ie.DESCRIPTION:t===ie.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case ie.LABEL:t===ie.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:t===ie.DESCRIPTION?o.removeAttribute("aria-describedby"):t===ie.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ie.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)}};sr.styles=[...tt.styles,...Yn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],sr.prototype,"tooltipType",2),l([qa()],sr.prototype,"defaultSlotNodes",2);var Qi=sr;Qi.register(Po);var Sd=Qi;var qn="check-bold",Ji="dynamic-option-tooltip-popover",Hr=b.constructTagName("option");var wd=f`
2429
2429
  :host {
2430
2430
  --mdc-option-icon-width: 1rem;
2431
2431
 
@@ -2454,22 +2454,22 @@
2454
2454
  text-overflow: ellipsis;
2455
2455
  white-space: nowrap;
2456
2456
  }
2457
- `,Un=[pd];var _t=class extends Q(tr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Ui.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 a,n;let r=(a=e.target.shadowRoot)==null?void 0:a.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(Ro);o.id=qi,o.textContent=(n=this.label)!=null?n:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible","");let s=this.closest("mdc-select")||this.parentElement;s==null||s.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${qi}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,s;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(s=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:s.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?p`
2457
+ `,Xn=[wd];var Ct=class extends Q(ir){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Yi.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,n;let t=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(t&&t.scrollWidth&&t.clientWidth&&t.scrollWidth<=(t==null?void 0:t.clientWidth))return;let o=document.createElement(Po);o.id=Ji,o.textContent=(n=this.label)!=null?n:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible","");let a=this.closest("mdc-select")||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${Ji}`);e==null||e.remove()}handleDefaultSlotChange(){var t,o,a;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,t){this.setAttribute(e,t)}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?p`
2458
2458
  <div part="leading-icon">
2459
2459
  <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
2460
2460
  </div>
2461
- `:v,r=this.selected?p`
2462
- <mdc-icon slot="trailing-controls" name="${Vn}"></mdc-icon>
2463
- `:v;return p`
2461
+ `:y,t=this.selected?p`
2462
+ <mdc-icon slot="trailing-controls" name="${qn}"></mdc-icon>
2463
+ `:y;return p`
2464
2464
  ${e}
2465
2465
  <div part="leading-text">
2466
- ${this.getText("leading-text-primary-label",_.BODY_MIDSIZE_REGULAR,this.label)}
2466
+ ${this.getText("leading-text-primary-label",w.BODY_MIDSIZE_REGULAR,this.label)}
2467
2467
  </div>
2468
2468
  <div part="trailing">
2469
- ${r}
2469
+ ${t}
2470
2470
  </div>
2471
2471
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2472
- `}};_t.styles=[...tr.styles,...Un],l([c({type:Boolean,reflect:!0})],_t.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],_t.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],_t.prototype,"ariaLabel",2);var Xi=_t;Xi.register(Vr);var hd=Xi;Qe.register(un);var ud=Qe;var fd=[f`
2472
+ `}};Ct.styles=[...ir.styles,...Xn],l([c({type:Boolean,reflect:!0})],Ct.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],Ct.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],Ct.prototype,"ariaLabel",2);var ea=Ct;ea.register(Hr);var _d=ea;tt.register(Tn);var Id=tt;var Cd=[f`
2473
2473
  :host {
2474
2474
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
2475
2475
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -2552,28 +2552,28 @@
2552
2552
  :host::part(progress-container), :host::part(progress-bar) {
2553
2553
  border: var(--mdc-progressbar-border);
2554
2554
  }
2555
- `],Fn=fd;var Hn=b.constructTagName("progressbar"),Oo={DEFAULT:"default",INLINE:"inline"},Bn={VARIANT:Oo.DEFAULT,VALIDATION:B.DEFAULT};var It=class extends P(de){constructor(){super(...arguments);this.variant=Bn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var s;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return p`
2555
+ `],Zn=Cd;var jn=b.constructTagName("progressbar"),Vo={DEFAULT:"default",INLINE:"inline"},Kn={VARIANT:Vo.DEFAULT,VALIDATION:H.DEFAULT};var kt=class extends P(pe){constructor(){super(...arguments);this.variant=Kn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),t=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return p`
2556
2556
  <div
2557
- part="progress-container ${r?"gap":""}"
2557
+ part="progress-container ${t?"gap":""}"
2558
2558
  role="progressbar"
2559
2559
  aria-valuenow="${this.clampedValue}"
2560
2560
  aria-valuemin="0"
2561
2561
  aria-valuemax="100"
2562
- aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
2562
+ aria-label="${(a=this.dataAriaLabel)!=null?a:""}"
2563
2563
  >
2564
2564
  <div part="progress-bar ${e}" style="width: ${o}%"></div>
2565
2565
  <div part="remaining"></div>
2566
2566
  </div>
2567
- `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${De()}`,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=B.ERROR:this.clampedValue===100?this.helpTextType=B.SUCCESS:this.helpTextType=B.DEFAULT,this.helpTextType}render(){let e=this.variant===Oo.INLINE;return p`
2567
+ `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Pe()}`,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=H.ERROR:this.clampedValue===100?this.helpTextType=H.SUCCESS:this.helpTextType=H.DEFAULT,this.helpTextType}render(){let e=this.variant===Vo.INLINE;return p`
2568
2568
  ${e?p`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:p`
2569
2569
  <div part="label-container">
2570
2570
  ${this.renderLabelElement()}
2571
- ${this.variant===Oo.DEFAULT&&this.label?p`<span part="percentage">${this.clampedValue}%</span>`:""}
2571
+ ${this.variant===Vo.DEFAULT&&this.label?p`<span part="percentage">${this.clampedValue}%</span>`:""}
2572
2572
  </div>
2573
2573
  ${this.renderProgressbar()}
2574
2574
  ${this.renderHelperText()}
2575
2575
  `}
2576
- `}};It.styles=[...de.styles,...Fn],l([c({type:String,reflect:!0})],It.prototype,"variant",2),l([c({type:String,reflect:!0})],It.prototype,"value",2),l([c({type:Boolean,attribute:"error"})],It.prototype,"error",2);var Zi=It;Zi.register(Hn);var bd=Zi;var gd=[C,f`
2576
+ `}};kt.styles=[...pe.styles,...Zn],l([c({type:String,reflect:!0})],kt.prototype,"variant",2),l([c({type:String,reflect:!0})],kt.prototype,"value",2),l([c({type:Boolean,attribute:"error"})],kt.prototype,"error",2);var ta=kt;ta.register(jn);var kd=ta;var Ld=[k,f`
2577
2577
  :host{
2578
2578
  --mdc-radio-inner-circle-size: 0.375rem;
2579
2579
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2735,10 +2735,10 @@
2735
2735
  display: none;
2736
2736
  }
2737
2737
 
2738
- `,...R(!0)],Gn=gd;var kt=class extends Q(P(Z)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?p`<div class="mdc-radio__label-container">
2738
+ `,...N(!0)],Qn=Ld;var Lt=class extends Q(P(Z)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?p`<div class="mdc-radio__label-container">
2739
2739
  ${this.renderLabel()}
2740
2740
  ${this.renderHelperText()}
2741
- </div>`:v}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(n=>n.requiredLabel),s=!!r.find(n=>n.checked),a=o&&!s;this.setGroupValidity(r,!a)}this.internals.setFormValue(e)}handleChange(e){var s;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(a=>{var d;let n=(d=a.shadowRoot)==null?void 0:d.querySelector("input");n&&(a.checked=!1,n.checked=!1)}),this.checked=!0;let o=(s=this.shadowRoot)==null?void 0:s.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var s,a;(a=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||a.focus(),e[r].handleChange(o)}handleKeyDown(e){var a;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),s=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(s+1)%o.length;this.updateRadio(o,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(s-1+o.length)%o.length;this.updateRadio(o,n,e)}else e.key===" "&&this.updateRadio(o,s,e);this.updateTabIndex(),e.key==="Enter"&&((a=this.form)==null||a.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),o=e.find(s=>!s.disabled);e.forEach(s=>{var n;let a=(n=s.shadowRoot)==null?void 0:n.querySelector("input");a&&(a.tabIndex=-1,(s===r||!r&&s===o)&&(a.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return p`
2741
+ </div>`:y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let t=e.constructor;this.dispatchEvent(new t(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(t=>{t.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}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,t){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(t)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0);else{let o=t.some(n=>n.requiredLabel),a=!!t.find(n=>n.checked),s=o&&!a;this.setGroupValidity(t,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let n=(d=s.shadowRoot)==null?void 0:d.querySelector("input");n&&(s.checked=!1,n.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,t,o){var a,s;(s=(a=e[t].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[t].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(a+1)%o.length;this.updateRadio(o,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(a-1+o.length)%o.length;this.updateRadio(o,n,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(),t=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var n;let s=(n=a.shadowRoot)==null?void 0:n.querySelector("input");s&&(s.tabIndex=-1,(a===t||!t&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return p`
2742
2742
  <div class="mdc-radio__container">
2743
2743
  <div class="mdc-radio__icon-container mdc-focus-ring">
2744
2744
  <input
@@ -2763,12 +2763,12 @@
2763
2763
  </div>
2764
2764
  ${this.renderLabelAndHelperText()}
2765
2765
  </div>
2766
- `}};kt.styles=[...Z.styles,...Gn],l([c({type:Boolean,reflect:!0})],kt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],kt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],kt.prototype,"autofocus",2);var ji=kt;var Mo=b.constructTagName("radio");ji.register(Mo);var vd=ji;var Ur=class extends So{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,s,a;(a=(s=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(n=>n.assignedElements({flatten:!0})))==null?void 0:o.filter(n=>n.tagName.toLowerCase()===Mo))==null?void 0:s.filter(n=>!n.hasAttribute("name")))==null||a.forEach(n=>{n.setAttribute("name",this.name),this.requiredLabel&&n.setAttribute("required-label",this.requiredLabel)})}};Ur.styles=[...So.styles],l([c({type:String})],Ur.prototype,"name",2);var Ki=Ur;var Yn=b.constructTagName("radiogroup");Ki.register(Yn);var yd=Ki;var Wn=b.constructTagName("screenreaderannouncer"),xd={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ir={ARIA_LIVE:xd.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Ed=[f`
2766
+ `}};Lt.styles=[...Z.styles,...Qn],l([c({type:Boolean,reflect:!0})],Lt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Lt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Lt.prototype,"autofocus",2);var ra=Lt;var Uo=b.constructTagName("radio");ra.register(Uo);var Rd=ra;var Gr=class extends Lo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,t,o,a,s;(s=(a=(o=(t=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:t.flatMap(n=>n.assignedElements({flatten:!0})))==null?void 0:o.filter(n=>n.tagName.toLowerCase()===Uo))==null?void 0:a.filter(n=>!n.hasAttribute("name")))==null||s.forEach(n=>{n.setAttribute("name",this.name),this.requiredLabel&&n.setAttribute("required-label",this.requiredLabel)})}};Gr.styles=[...Lo.styles],l([c({type:String})],Gr.prototype,"name",2);var oa=Gr;var Jn=b.constructTagName("radiogroup");oa.register(Jn);var Nd=oa;var el=b.constructTagName("screenreaderannouncer"),Od={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},nr={ARIA_LIVE:Od.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Md=[f`
2767
2767
  :host {
2768
2768
  display: none;
2769
2769
  visibility: hidden;
2770
2770
  }
2771
- `],qn=Ed;var Fe=class extends y{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ir.ARIA_LIVE;this.delay=ir.DELAY;this.timeout=ir.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,s){var a;if(e.length>0){let n=`mdc-screenreaderannouncer-announcement-${De()}`,d=document.createElement("div");d.id=n,d.ariaLive=s,(a=document.getElementById(this.identity))==null||a.appendChild(d);let m=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(n);let u=window.setTimeout(()=>{var x;(x=document.getElementById(n))==null||x.remove()},o);this.timeOutIds.push(u)},r);this.timeOutIds.push(m)}}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=`
2771
+ `],tl=Md;var Ge=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=nr.ARIA_LIVE;this.delay=nr.DELAY;this.timeout=nr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,t,o,a){var s;if(e.length>0){let n=`mdc-screenreaderannouncer-announcement-${Pe()}`,d=document.createElement("div");d.id=n,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let m=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(n);let u=window.setTimeout(()=>{var x;(x=document.getElementById(n))==null||x.remove()},o);this.timeOutIds.push(u)},t);this.timeOutIds.push(m)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var t;(t=document.getElementById(e))==null||t.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let t=document.createElement("style");t.textContent=`
2772
2772
  .mdc-screenreaderannouncer__visually-hidden {
2773
2773
  clip: rect(0 0 0 0);
2774
2774
  clip-path: inset(50%);
@@ -2778,7 +2778,7 @@
2778
2778
  white-space: nowrap;
2779
2779
  width: 1px;
2780
2780
  }
2781
- `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ir.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=ir.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Fe.styles=[...y.styles,...qn],l([c({type:String,reflect:!0})],Fe.prototype,"announcement",2),l([c({type:String,reflect:!0})],Fe.prototype,"identity",2),l([c({type:String,reflect:!0,attribute:"data-aria-live"})],Fe.prototype,"dataAriaLive",2),l([c({type:Number,reflect:!0})],Fe.prototype,"delay",2),l([c({type:Number,reflect:!0})],Fe.prototype,"timeout",2);var Qi=Fe;Qi.register(Wn);var Td=Qi;var Ad=f`
2781
+ `,e.appendChild(t),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=nr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=nr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Ge.styles=[...v.styles,...tl],l([c({type:String,reflect:!0})],Ge.prototype,"announcement",2),l([c({type:String,reflect:!0})],Ge.prototype,"identity",2),l([c({type:String,reflect:!0,attribute:"data-aria-live"})],Ge.prototype,"dataAriaLive",2),l([c({type:Number,reflect:!0})],Ge.prototype,"delay",2),l([c({type:Number,reflect:!0})],Ge.prototype,"timeout",2);var ia=Ge;ia.register(el);var Dd=ia;var $d=f`
2782
2782
 
2783
2783
  :host::part(filters-container){
2784
2784
  display: flex;
@@ -2805,9 +2805,9 @@
2805
2805
  scrollbar-width: none;
2806
2806
  }
2807
2807
 
2808
- `,Xn=[Ad];var Zn=b.constructTagName("searchfield"),Do={TYPE:zi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var sr=class extends Jt{constructor(){super(...arguments);this.isInputFocused=!1}connectedCallback(){super.connectedCallback(),this.leadingIcon=Do.ICON,this.trailingButton=Do.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){this.inputChips&&this.inputChips.forEach(e=>{e.matches("mdc-inputchip")||e.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}render(){return p`
2808
+ `,rl=[$d];var ol=b.constructTagName("searchfield"),Fo={TYPE:Hi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var lr=class extends rr{constructor(){super(...arguments);this.isInputFocused=!1}connectedCallback(){super.connectedCallback(),this.leadingIcon=Fo.ICON,this.trailingButton=Fo.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){this.inputChips&&this.inputChips.forEach(e=>{e.matches("mdc-inputchip")||e.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}render(){return p`
2809
2809
  ${this.renderLabelElement()}
2810
- <div class="${Yt({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
2810
+ <div class="${Xt({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
2811
2811
  ${this.renderLeadingIcon()}
2812
2812
  <div part='scrollable-container'>
2813
2813
  <div part="filters-container"
@@ -2815,11 +2815,11 @@
2815
2815
  @keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
2816
2816
  @keyup=${e=>e.key===" "?this.inputElement.focus():null}>
2817
2817
  <slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
2818
- ${this.renderInputElement(Do.TYPE)}
2818
+ ${this.renderInputElement(Fo.TYPE)}
2819
2819
  </div>
2820
2820
  ${this.renderTrailingButton()}
2821
2821
  </div>
2822
- `}};sr.styles=[...Jt.styles,...Xn],l([ue({slot:"filters"})],sr.prototype,"inputChips",2),l([$()],sr.prototype,"isInputFocused",2);var Ji=sr;Ji.register(Zn);var Sd=Ji;var jn=b.constructTagName("select"),$o={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var _d=f`
2822
+ `}};lr.styles=[...rr.styles,...rl],l([te({slot:"filters"})],lr.prototype,"inputChips",2),l([M()],lr.prototype,"isInputFocused",2);var aa=lr;aa.register(ol);var zd=aa;var il=b.constructTagName("select"),Bo={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Pd=f`
2823
2823
  :host {
2824
2824
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
2825
2825
  --mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
@@ -2918,7 +2918,7 @@
2918
2918
  :host([help-text-type="warning"])::part(base-container) {
2919
2919
  border-color: var(--mdc-select-warning-border-color);
2920
2920
  }
2921
- `,Kn=[_d,...R(!0)];var ee=class extends Q(P(Z)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=$o.ARROW_DOWN;this.selectedValue="";this.showPopover=!1;this.activeDescendant=""}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()===Vr?r:r.tagName.toLowerCase()===No?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===Vr):[]).flat())||[]}handlePopoverOpen(){this.baseIconName=$o.ARROW_UP}handlePopoverClose(){this.baseIconName=$o.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(s=>{s===e?(this.setSelectedValue(s),r=!0,s.setAttribute("selected",""),s.setAttribute("tabindex","0")):(s==null||s.setAttribute("tabindex","-1"),s==null||s.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,s,a;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(a=(s=e==null?void 0:e.getAttribute("value"))!=null?s:e==null?void 0:e.textContent)!=null?a:"",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.showPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case D.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover();break;case D.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),(r=this.form)==null||r.requestSubmit();break;case D.ESCAPE:this.closePopover();break;case D.HOME:this.setFocusAndTabIndex(0);break;case D.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1);break;case D.ARROW_DOWN:case D.ARROW_UP:case D.PAGE_DOWN:case D.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case D.ARROW_DOWN:case D.ARROW_UP:case D.ENTER:case D.SPACE:this.openPopover(),e.preventDefault();break;case D.HOME:this.openPopover(),this.setFocusAndTabIndex(0);break;case D.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1);break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(a=>a===e.target),s=this.getNewIndexBasedOnKey(e.key,o,r.length);s!==-1&&(this.setFocusAndTabIndex(s),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===D.ARROW_DOWN&&r!==o-1?r+1:e===D.ARROW_UP&&r>0?r-1:e===D.PAGE_DOWN?r+10>o?o-1:r+10:e===D.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,s;let r=this.getAllValidOptions().findIndex(a=>a===e);this.activeDescendant=(s=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?s:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,s)=>{let a=e===s?"0":"-1";o==null||o.setAttribute("tabindex",a)})}openPopover(){this.showPopover=!0,this.resetActivedescendant()}closePopover(){this.showPopover=!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(){var e;return p`
2921
+ `,al=[Pd,...N(!0)];var ee=class extends Q(P(Z)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Bo.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant=""}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(t=>t.tagName.toLowerCase()===Hr?t:t.tagName.toLowerCase()===zo?Array.from(t.children).filter(o=>o.tagName.toLowerCase()===Hr):[]).flat())||[]}handlePopoverOpen(){this.baseIconName=Bo.ARROW_UP}handlePopoverClose(){this.baseIconName=Bo.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let t=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),t=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!t&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var t,o,a,s;this.selectedValueText=(o=(t=e==null?void 0:e.getAttribute("label"))!=null?t: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 t;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),(t=this.form)==null||t.requestSubmit();break;case $.ESCAPE:this.closePopover();break;case $.HOME:this.setFocusAndTabIndex(0);break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1);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);break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1);break;default:break}}handleOptionsNavigation(e){let t=this.getAllValidOptions(),o=t.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,t.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,t,o){return e===$.ARROW_DOWN&&t!==o-1?t+1:e===$.ARROW_UP&&t>0?t-1:e===$.PAGE_DOWN?t+10>o?o-1:t+10:e===$.PAGE_UP?t-10<0?0:t-10:-1}updateActivedescendant(e){var o,a;let t=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[t])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var t;(t=this.getAllValidOptions()[e])==null||t.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(),t=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));t!==-1?(this.setSelectedValue(e[t]),this.updateTabIndexForAllOptions(e[t])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){var e;return p`
2922
2922
  <select
2923
2923
  part="native-select"
2924
2924
  id="${this.id}"
@@ -2930,36 +2930,36 @@
2930
2930
  ?disabled="${this.disabled}"
2931
2931
  ?required="${!!this.requiredLabel}"
2932
2932
  aria-activedescendant="${this.activeDescendant}"
2933
- aria-expanded="${this.showPopover}"
2933
+ aria-expanded="${this.displayPopover}"
2934
2934
  aria-haspopup="listbox"
2935
2935
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2936
2936
  aria-labelledby="${this.label?V.HEADING_ID:""}"
2937
- @mousedown="${r=>r.preventDefault()}"
2937
+ @mousedown="${t=>t.preventDefault()}"
2938
2938
  >
2939
2939
  ${this.getOptionsContentFromSlot()}
2940
2940
  </select>
2941
- `}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var r,o;return p`
2941
+ `}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var t,o;return p`
2942
2942
  <option
2943
2943
  part="native-select"
2944
- value="${(r=e.getAttribute("value"))!=null?r:""}"
2944
+ value="${(t=e.getAttribute("value"))!=null?t:""}"
2945
2945
  label="${(o=e.getAttribute("label"))!=null?o:""}"
2946
2946
  ?disabled="${!!e.hasAttribute("disabled")}"
2947
2947
  ?selected="${!!e.hasAttribute("selected")}"
2948
2948
  >
2949
2949
  ${e.textContent}
2950
2950
  </option>
2951
- `})}getPopoverContent(){return this.disabled||this.readonly?v:p`
2951
+ `})}getPopoverContent(){return this.disabled||this.readonly?y:p`
2952
2952
  <mdc-popover
2953
2953
  id="options-popover"
2954
2954
  triggerid="select-base-triggerid"
2955
2955
  interactive
2956
- ?visible="${this.showPopover}"
2956
+ ?visible="${this.displayPopover}"
2957
2957
  hide-on-outside-click
2958
2958
  focus-back-to-trigger
2959
2959
  focus-trap
2960
2960
  prevent-scroll
2961
2961
  role="listbox"
2962
- placement="${Ve.BOTTOM_START}"
2962
+ placement="${Be.BOTTOM_START}"
2963
2963
  @shown="${this.handlePopoverOpen}"
2964
2964
  @hidden="${this.handlePopoverClose}"
2965
2965
  style="--mdc-popover-max-width: 100%; --mdc-popover-max-height: ${this.height};"
@@ -2977,8 +2977,8 @@
2977
2977
  >
2978
2978
  <mdc-text
2979
2979
  part="base-text ${this.selectedValueText?"selected":""}"
2980
- type="${_.BODY_MIDSIZE_REGULAR}"
2981
- tagname="${w.SPAN}"
2980
+ type="${w.BODY_MIDSIZE_REGULAR}"
2981
+ tagname="${C.SPAN}"
2982
2982
  >
2983
2983
  ${(e=this.selectedValueText)!=null?e:this.placeholder}
2984
2984
  </mdc-text>
@@ -2990,7 +2990,7 @@
2990
2990
  ${this.getPopoverContent()}
2991
2991
  </div>
2992
2992
  ${this.renderHelperText()}
2993
- `}};ee.styles=[...Z.styles,...Kn],l([c({type:String})],ee.prototype,"placeholder",2),l([c({type:Boolean})],ee.prototype,"readonly",2),l([c({type:String,attribute:"height"})],ee.prototype,"height",2),l([ue()],ee.prototype,"optionsList",2),l([$()],ee.prototype,"baseIconName",2),l([$()],ee.prototype,"selectedValueText",2),l([$()],ee.prototype,"selectedValue",2),l([$()],ee.prototype,"showPopover",2),l([$()],ee.prototype,"activeDescendant",2),l([Ot("select")],ee.prototype,"inputElement",2);var es=ee;es.register(jn);var Id=es;var kd=[C,f`
2993
+ `}};ee.styles=[...Z.styles,...al],l([c({type:String})],ee.prototype,"placeholder",2),l([c({type:Boolean})],ee.prototype,"readonly",2),l([c({type:String,attribute:"height"})],ee.prototype,"height",2),l([te()],ee.prototype,"optionsList",2),l([M()],ee.prototype,"baseIconName",2),l([M()],ee.prototype,"selectedValueText",2),l([M()],ee.prototype,"selectedValue",2),l([M()],ee.prototype,"displayPopover",2),l([M()],ee.prototype,"activeDescendant",2),l([De("select")],ee.prototype,"inputElement",2);var sa=ee;sa.register(il);var Vd=sa;var Ud=[k,f`
2994
2994
  :host {
2995
2995
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2996
2996
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -3052,11 +3052,11 @@
3052
3052
  stroke-dashoffset: -292;
3053
3053
  }
3054
3054
  }
3055
- `],Qn=kd;var Jn=b.constructTagName("spinner"),wd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Cd={STANDALONE:"standalone",BUTTON:"button"},zo={VARIANT:Cd.STANDALONE,SIZE:wd.MIDSIZE,INVERTED:!1};var rt=class extends y{constructor(){super(...arguments);this.inverted=zo.INVERTED;this.size=zo.SIZE;this.ariaLabel=null;this.variant=zo.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return p`
3055
+ `],sl=Ud;var nl=b.constructTagName("spinner"),Fd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Bd={STANDALONE:"standalone",BUTTON:"button"},Ho={VARIANT:Bd.STANDALONE,SIZE:Fd.MIDSIZE,INVERTED:!1};var at=class extends v{constructor(){super(...arguments);this.inverted=Ho.INVERTED;this.size=Ho.SIZE;this.ariaLabel=null;this.variant=Ho.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return p`
3056
3056
  <svg part="container" viewBox="0 0 100 100">
3057
3057
  <circle part="circle" cx="50" cy="50" r="46"></circle>
3058
3058
  </svg>
3059
- `}};rt.styles=[...y.styles,...Qn],l([c({type:Boolean,reflect:!0})],rt.prototype,"inverted",2),l([c({type:String,reflect:!0})],rt.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],rt.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],rt.prototype,"variant",2);var ts=rt;ts.register(Jn);var Ld=ts;var Nd=[C,f`
3059
+ `}};at.styles=[...v.styles,...sl],l([c({type:Boolean,reflect:!0})],at.prototype,"inverted",2),l([c({type:String,reflect:!0})],at.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],at.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],at.prototype,"variant",2);var na=at;na.register(nl);var Hd=na;var Gd=[k,f`
3060
3060
 
3061
3061
  :host {
3062
3062
  --mdc-tab-content-gap: 0.5rem;
@@ -3128,6 +3128,7 @@
3128
3128
  --mdc-tab-pill-inactive-color-disabled: var(--mds-color-theme-text-primary-disabled);
3129
3129
 
3130
3130
  flex-direction: column;
3131
+ flex-shrink: 0;
3131
3132
  height: var(--mdc-tab-height);
3132
3133
  padding-left: var(--mdc-tab-padding-left);
3133
3134
  padding-right: var(--mdc-tab-padding-right);
@@ -3299,21 +3300,21 @@
3299
3300
  color: var(--mdc-tab-pill-active-color-disabled);
3300
3301
  }
3301
3302
 
3302
- `,...R()],el=Nd;var tl=b.constructTagName("tab"),rs={GLASS:"glass",LINE:"line",PILL:"pill"},os={VARIANT:rs.PILL};var ar=class extends K(ae){constructor(){super(...arguments);this.variant=os.VARIANT}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${kr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(rs).includes(e)?e:os.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return p`
3303
+ `,...N()],ll=Gd;var cl=b.constructTagName("tab"),la={GLASS:"glass",LINE:"line",PILL:"pill"},ca={VARIANT:la.PILL};var Rt=class extends K(le){constructor(){super(...arguments);this.variant=ca.VARIANT;this.handleTabActiveChange=e=>{let t=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Lr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(la).includes(e)?e:ca.VARIANT)}setActive(e,t){e.setAttribute("aria-selected",t?"true":"false"),this.modifyIconName(t)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return p`
3303
3304
  <div part="container">
3304
- ${this.iconName?p` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
3305
+ ${this.iconName?p` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:y}
3305
3306
  ${this.text?p` <mdc-text
3306
- type=${this.active?_.BODY_MIDSIZE_BOLD:_.BODY_MIDSIZE_MEDIUM}
3307
- tagname=${w.SPAN}
3307
+ type=${this.active?w.BODY_MIDSIZE_BOLD:w.BODY_MIDSIZE_MEDIUM}
3308
+ tagname=${C.SPAN}
3308
3309
  data-text=${this.text}
3309
3310
  part="text"
3310
3311
  >${this.text}</mdc-text
3311
- >`:v}
3312
+ >`:y}
3312
3313
  <slot name="badge"></slot>
3313
3314
  <slot name="chip"></slot>
3314
3315
  </div>
3315
3316
  <div part="indicator"></div>
3316
- `}};ar.styles=[...ae.styles,...el],l([c({type:String,reflect:!0})],ar.prototype,"text",2),l([c({type:String,reflect:!0})],ar.prototype,"variant",2);var is=ar;is.register(tl);var Rd=is;var Od=[f`
3317
+ `}};Rt.styles=[...le.styles,...ll],l([c({type:String,reflect:!0})],Rt.prototype,"text",2),l([c({type:String,reflect:!0})],Rt.prototype,"variant",2),l([c({type:String,reflect:!0,attribute:"tab-id"})],Rt.prototype,"tabId",2);var ae=Rt;ae.register(cl);var Wd=ae;var Yd=[f`
3317
3318
  :host {
3318
3319
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3319
3320
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -3434,15 +3435,15 @@
3434
3435
  pointer-events: none;
3435
3436
  }
3436
3437
 
3437
- `,...R(!0)],rl=Od;var ol=b.constructTagName("textarea"),ss={HARD:"hard",SOFT:"soft"},il={OFF:"off",ON:"on"},Po={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ss.SOFT};var Y=class extends Q(P(de)){constructor(){super(...arguments);this.readonly=!1;this.rows=Po.ROWS;this.cols=Po.COLS;this.wrap=ss.SOFT;this.autocapitalize=_o.OFF;this.autocomplete=il.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===B.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(a=>{this.onerror&&this.onerror(a)})}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?p`
3438
+ `,...N(!0)],dl=Yd;var ml=b.constructTagName("textarea"),da={HARD:"hard",SOFT:"soft"},pl={OFF:"off",ON:"on"},Go={CHARACTER_COUNTER_TYPE:w.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:da.SOFT};var W=class extends Q(P(pe)){constructor(){super(...arguments);this.readonly=!1;this.rows=Go.ROWS;this.cols=Go.COLS;this.wrap=da.SOFT;this.autocapitalize=Ro.OFF;this.autocomplete=pl.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(t=>{this.onerror&&this.onerror(t)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===H.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,t,o){super.attributeChangedCallback(e,t,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 t=e.constructor;this.dispatchEvent(new t(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?p`
3438
3439
  <mdc-text
3439
3440
  part="character-counter"
3440
3441
  tagname="span"
3441
- type=${Po.CHARACTER_COUNTER_TYPE}
3442
+ type=${Go.CHARACTER_COUNTER_TYPE}
3442
3443
  >
3443
3444
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
3444
3445
  </mdc-text>
3445
- `:v}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?v:p`
3446
+ `:y}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?y:p`
3446
3447
  <div part="textarea-footer">
3447
3448
  ${this.renderHelperText()}
3448
3449
  ${this.renderCharacterCounter()}
@@ -3476,7 +3477,7 @@
3476
3477
  ></textarea>
3477
3478
  </div>
3478
3479
  ${this.renderTextareaFooter()}
3479
- `}};Y.styles=[...de.styles,...rl],l([c({type:String})],Y.prototype,"placeholder",2),l([c({type:Boolean})],Y.prototype,"readonly",2),l([c({type:Number})],Y.prototype,"rows",2),l([c({type:Number})],Y.prototype,"cols",2),l([c({type:String})],Y.prototype,"wrap",2),l([c({type:String})],Y.prototype,"autocapitalize",2),l([c({type:String})],Y.prototype,"autocomplete",2),l([c({type:Boolean})],Y.prototype,"autofocus",2),l([c({type:String})],Y.prototype,"dirname",2),l([c({type:Number})],Y.prototype,"maxlength",2),l([c({type:Number})],Y.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],Y.prototype,"maxCharacterLimit",2),l([Ot("textarea")],Y.prototype,"inputElement",2);var as=Y;as.register(ol);var Md=as;var Vo=b.constructTagName("themeprovider"),ns={THEMECLASS:"mds-theme-stable-darkWebex"};var Uo=class{constructor(t){this.themeclass=t}};Uo.context=Vo;var Fo=Uo;var Dd=f`
3480
+ `}};W.styles=[...pe.styles,...dl],l([c({type:String})],W.prototype,"placeholder",2),l([c({type:Boolean})],W.prototype,"readonly",2),l([c({type:Number})],W.prototype,"rows",2),l([c({type:Number})],W.prototype,"cols",2),l([c({type:String})],W.prototype,"wrap",2),l([c({type:String})],W.prototype,"autocapitalize",2),l([c({type:String})],W.prototype,"autocomplete",2),l([c({type:Boolean})],W.prototype,"autofocus",2),l([c({type:String})],W.prototype,"dirname",2),l([c({type:Number})],W.prototype,"maxlength",2),l([c({type:Number})],W.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],W.prototype,"maxCharacterLimit",2),l([De("textarea")],W.prototype,"inputElement",2);var ma=W;ma.register(ml);var qd=ma;var Wo=b.constructTagName("themeprovider"),pa={THEMECLASS:"mds-theme-stable-darkWebex"};var Yo=class{constructor(r){this.themeclass=r}};Yo.context=Wo;var qo=Yo;var Xd=f`
3480
3481
  :host {
3481
3482
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
3482
3483
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -3505,7 +3506,7 @@
3505
3506
  * {
3506
3507
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
3507
3508
  }
3508
- `,sl=[Dd];var nr=class extends $t{constructor(){super({context:Fo.context,initialValue:new Fo(ns.THEMECLASS)});this.themeclass=ns.THEMECLASS}static get Context(){return Fo.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(" "))}};nr.styles=[...$t.styles,...sl],l([$()],nr.prototype,"currentThemeClass",2),l([c({type:String})],nr.prototype,"themeclass",2);var ls=nr;ls.register(Vo);var $d=ls;var zd=[C,f`
3509
+ `,hl=[Xd];var cr=class extends Vt{constructor(){super({context:qo.context,initialValue:new qo(pa.THEMECLASS)});this.themeclass=pa.THEMECLASS}static get Context(){return qo.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(" "))}};cr.styles=[...Vt.styles,...hl],l([M()],cr.prototype,"currentThemeClass",2),l([c({type:String})],cr.prototype,"themeclass",2);var ha=cr;ha.register(Wo);var Zd=ha;var jd=[k,f`
3509
3510
  :host {
3510
3511
  --mdc-toggle-width: 3rem;
3511
3512
  --mdc-toggle-height: 1.5rem;
@@ -3657,7 +3658,7 @@
3657
3658
  border: var(--mdc-toggle-border);
3658
3659
  }
3659
3660
  }
3660
- `,...R(!0)],al=zd;var nl=b.constructTagName("toggle"),cs={DEFAULT:"default",COMPACT:"compact"},ds={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},ll={compact:.75,default:1.25},ms={SIZE:cs.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var wt=class extends Q(P(de)){constructor(){super(...arguments);this.checked=!1;this.size=ms.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(cs).includes(e)?e:ms.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return p`
3661
+ `,...N(!0)],ul=jd;var fl=b.constructTagName("toggle"),ua={DEFAULT:"default",COMPACT:"compact"},fa={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},bl={compact:.75,default:1.25},ba={SIZE:ua.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Nt=class extends Q(P(pe)){constructor(){super(...arguments);this.checked=!1;this.size=ba.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 t;e.key==="Enter"&&((t=this.form)==null||t.requestSubmit())}handleChange(e){this.toggleState();let t=e.constructor;this.dispatchEvent(new t(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(ua).includes(e)?e:ba.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return p`
3661
3662
  <div class="mdc-toggle__container mdc-focus-ring">
3662
3663
  <input
3663
3664
  id="${this.id}"
@@ -3679,19 +3680,19 @@
3679
3680
  />
3680
3681
  <div class="mdc-toggle__slider">
3681
3682
  <mdc-icon
3682
- name="${this.checked?ds.CHECKED:ds.UNCHECKED}"
3683
+ name="${this.checked?fa.CHECKED:fa.UNCHECKED}"
3683
3684
  class="mdc-toggle__icon"
3684
3685
  length-unit="rem"
3685
- size="${ll[this.size]}"
3686
+ size="${bl[this.size]}"
3686
3687
  ></mdc-icon>
3687
3688
  </div>
3688
3689
  </div>
3689
3690
  ${this.renderLabel()}
3690
3691
  ${this.renderHelperText()}
3691
- `}};wt.styles=[...de.styles,...al],l([c({type:Boolean,reflect:!0})],wt.prototype,"checked",2),l([c({type:String,reflect:!0})],wt.prototype,"size",2),l([c({type:Boolean,reflect:!0})],wt.prototype,"autofocus",2);var ps=wt;ps.register(nl);var Pd=ps;function Ct(i,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],o;return()=>{var a,n,d,m;let h;e.key&&((a=e.debug)!=null&&a.call(e))&&(h=Date.now());let u=i();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return o;r=u;let g;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(g=Date.now()),o=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-g)*100)/100,I=T/16,S=(k,N)=>{for(k=String(k);k.length<N;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3692
+ `}};Nt.styles=[...pe.styles,...ul],l([c({type:Boolean,reflect:!0})],Nt.prototype,"checked",2),l([c({type:String,reflect:!0})],Nt.prototype,"size",2),l([c({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",2);var ga=Nt;ga.register(fl);var Kd=ga;function Ot(i,r,e){var a;let t=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,n,d,m;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let u=i();if(!(u.length!==t.length||u.some((E,T)=>t[T]!==E)))return o;t=u;let g;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(g=Date.now()),o=r(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-g)*100)/100,_=T/16,S=(I,R)=>{for(I=String(I);I.length<R;)I=" "+I;return I};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3692
3693
  font-size: .6rem;
3693
3694
  font-weight: bold;
3694
- color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,o),o}}function Ho(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var cl=(i,t)=>Math.abs(i-t)<1,dl=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Vd=i=>i,Ud=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},pl=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=a=>{let{width:n,height:d}=a;t({width:Math.round(n),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(a=>{let n=a[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},ml={passive:!0};var Fd=typeof window>"u"?!0:"onscrollend"in window,hl=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,s=i.options.useScrollendEvent&&Fd?()=>{}:dl(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),a=m=>()=>{let{horizontal:h,isRtl:u}=i.options;o=h?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(o,m)},n=a(!0),d=a(!1);return d(),e.addEventListener("scroll",n,ml),e.addEventListener("scrollend",d,ml),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var Hd=(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 ul=(i,{adjustments:t=0,behavior:e},r)=>{var o,s;let a=i+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:e})},Bo=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(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.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:Vd,rangeExtractor:Ud,onChange:()=>{},measureElement:Hd,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=Ct(()=>(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(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,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,s=new Map;for(let a=r-1;a>=0;a--){let n=e[a];if(o.has(n.lane))continue;let d=s.get(n.lane);if(d==null||n.end>d.end?s.set(n.lane,n):n.end<d.end&&o.set(n.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,n)=>a.end===n.end?a.index-n.index:a.end-n.end)[0]:void 0},this.getMeasurementOptions=Ct(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=Ct(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:s,enabled:a},n)=>{if(!a)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 m=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let u=s(h),x=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),g=x?x.end+this.options.gap:r+o,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(h),I=g+T,S=x?x.lane:h%this.options.lanes;m[h]={index:h,start:g,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ct(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Bd({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ct(()=>{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,s,a)=>s===null||a===null?[]:e({startIndex:s,endIndex:a,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),s=this.measurementsCache[o];if(!s)return;let a=s.key,n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let o=this.measurementsCache[e];if(!o)return;let s=(n=this.itemSizeCache.get(o.key))!=null?n:o.size,a=r-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,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=Ct(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let s=0,a=e.length;s<a;s++){let n=e[s],d=r[n];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Ho(r[fl(0,r.length-1,o=>Ho(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+o&&(r="end"),r==="end"&&(e-=o);let a=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]: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 s=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(o.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(o.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];let n=o.start-this.options.scrollPaddingStart+(o.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,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 s=this.getOffsetForIndex(e,r);if(!s)return;let[a,n]=s;this._scrollToOffset(a,{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[m]=Ho(this.getOffsetForIndex(e,n));cl(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:o})}else this.scrollToIndex(e,{align:n,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 s;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(a=>a.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)}},fl=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,s=e(o);if(s<r)i=o+1;else if(s>r)t=o-1;else return o}return i>0?i-1:0};function Bd({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,s=fl(0,r,n=>i[n].start,e),a=s;for(;a<r&&i[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var hs=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,s)=>{var a;this.host.updateComplete.then(()=>this.host.requestUpdate()),(a=e.onChange)==null||a.call(e,o,s)}};this.virtualizer=new Bo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Go=class extends hs{constructor(t,e){super(t,{observeElementRect:pl,observeElementOffset:hl,scrollToFn:ul,...e})}};var{I:Hw}=Ds;var bl=i=>i.strings===void 0;var Fr=(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),Fr(o,t);return!0},Yo=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)},gl=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),Wd(t)}};function Gd(i){this._$AN!==void 0?(Yo(this),this._$AM=i,gl(this)):this._$AM=i}function Yd(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 s=e;s<r.length;s++)Fr(r[s],!1),Yo(r[s]);else r!=null&&(Fr(r,!1),Yo(r));else Fr(this,i)}var Wd=i=>{var t,e;i.type==co.CHILD&&((t=i._$AP)!=null||(i._$AP=Yd),(e=i._$AQ)!=null||(i._$AQ=Gd))},Wo=class extends Gt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),gl(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&&(Fr(this,t),Yo(this))}setValue(t){if(bl(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 vl=()=>new fs,fs=class{},us=new WeakMap,yl=Sr(class extends Wo{render(i){return v}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)),v}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=us.get(e);r===void 0&&(r=new WeakMap,us.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=us.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 qd=[f`
3695
+ color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,o),o}}function Xo(i,r){if(i===void 0)throw new Error(`Unexpected undefined${r?`: ${r}`:""}`);return i}var gl=(i,r)=>Math.abs(i-r)<1,vl=(i,r,e)=>{let t;return function(...o){i.clearTimeout(t),t=i.setTimeout(()=>r.apply(this,o),e)}};var Qd=i=>i,Jd=i=>{let r=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),t=[];for(let o=r;o<=e;o++)t.push(o);return t},xl=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=s=>{let{width:n,height:d}=s;r({width:Math.round(n),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!t.ResizeObserver)return()=>{};let a=new t.ResizeObserver(s=>{let n=s[0];if(n!=null&&n.borderBoxSize){let d=n.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)}},yl={passive:!0};var em=typeof window>"u"?!0:"onscrollend"in window,El=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=0,a=i.options.useScrollendEvent&&em?()=>{}:vl(t,()=>{r(o,!1)},i.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:u}=i.options;o=h?e.scrollLeft*(u&&-1||1):e.scrollTop,a(),r(o,m)},n=s(!0),d=s(!1);return d(),e.addEventListener("scroll",n,yl),e.addEventListener("scrollend",d,yl),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var tm=(i,r,e)=>{if(r!=null&&r.borderBoxSize){let t=r.borderBoxSize[0];if(t)return Math.round(t[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Tl=(i,{adjustments:r=0,behavior:e},t)=>{var o,a;let s=i+r;(a=(o=t.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[t.options.horizontal?"left":"top"]:s,behavior:e})},Zo=class{constructor(r){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,t=()=>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=t())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=t())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=t())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,o])=>{typeof o>"u"&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qd,rangeExtractor:Jd,onChange:()=>{},measureElement:tm,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 t,o;(o=(t=this.options).onChange)==null||o.call(t,this,e)},this.maybeNotify=Ot(()=>(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 t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,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,t)=>{let o=new Map,a=new Map;for(let s=t-1;s>=0;s--){let n=e[s];if(o.has(n.lane))continue;let d=a.get(n.lane);if(d==null||n.end>d.end?a.set(n.lane,n):n.end<d.end&&o.set(n.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,n)=>s.end===n.end?s.index-n.index:s.end-n.end)[0]:void 0},this.getMeasurementOptions=Ot(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Ot(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s},n)=>{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 m=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let u=a(h),x=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),g=x?x.end+this.options.gap:t+o,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(h),_=g+T,S=x?x.lane:h%this.options.lanes;m[h]={index:h,start:g,size:T,end:_,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ot(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,o)=>this.range=e.length>0&&t>0?rm({measurements:e,outerSize:t,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ot(()=>{let e=null,t=null,o=this.calculateRange();return o&&(e=o.startIndex,t=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:t,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,o=e.getAttribute(t);return o?parseInt(o,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{var n;let o=this.measurementsCache[e];if(!o)return;let a=(n=this.itemSizeCache.get(o.key))!=null?n:o.size,s=t-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,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((t,o)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Ot(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let n=e[a],d=t[n];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return Xo(t[Al(0,t.length-1,o=>Xo(t[o]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let o=this.getSize(),a=this.getScrollOffset();t==="auto"&&e>=a+o&&(t="end"),t==="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,t="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(t==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)t="end";else if(o.start<=s+this.options.scrollPaddingStart)t="start";else return[s,t];let n=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(t){case"center":return[this.getOffsetForAlignment(n,t),t];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,t),t]}},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:t="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,t),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:t="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,t);if(!a)return;let[s,n]=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[m]=Xo(this.getOffsetForIndex(e,n));gl(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:o})}else this.scrollToIndex(e,{align:n,behavior:o})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="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:t})},this.getTotalSize=()=>{var a;var e;let t=this.getMeasurements(),o;return t.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=t[t.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...t.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}},Al=(i,r,e,t)=>{for(;i<=r;){let o=(i+r)/2|0,a=e(o);if(a<t)i=o+1;else if(a>t)r=o-1;else return o}return i>0?i-1:0};function rm({measurements:i,outerSize:r,scrollOffset:e}){let t=i.length-1,a=Al(0,t,n=>i[n].start,e),s=a;for(;s<t&&i[s].end<e+r;)s++;return{startIndex:a,endIndex:s}}var va=class{constructor(r,e){this.cleanup=()=>{},(this.host=r).addController(this);let t={...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 Zo(t)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},jo=class extends va{constructor(r,e){super(r,{observeElementRect:xl,observeElementOffset:El,scrollToFn:Tl,...e})}};var{I:ok}=Ha;var Sl=i=>i.strings===void 0;var Wr=(i,r)=>{var t;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(t=o._$AO)==null||t.call(o,r,!1),Wr(o,r);return!0},Ko=i=>{let r,e;do{if((r=i._$AM)===void 0)break;e=r._$AN,e.delete(i),i=r}while((e==null?void 0:e.size)===0)},wl=i=>{for(let r;r=i._$AM;i=r){let e=r._$AN;if(e===void 0)r._$AN=e=new Set;else if(e.has(i))break;e.add(i),am(r)}};function om(i){this._$AN!==void 0?(Ko(this),this._$AM=i,wl(this)):this._$AM=i}function im(i,r=!1,e=0){let t=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(r)if(Array.isArray(t))for(let a=e;a<t.length;a++)Wr(t[a],!1),Ko(t[a]);else t!=null&&(Wr(t,!1),Ko(t));else Wr(this,i)}var am=i=>{var r,e;i.type==bo.CHILD&&((r=i._$AP)!=null||(i._$AP=im),(e=i._$AQ)!=null||(i._$AQ=om))},Qo=class extends qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,e,t){super._$AT(r,e,t),wl(this),this.isConnected=r._$AU}_$AO(r,e=!0){var t,o;r!==this.isConnected&&(this.isConnected=r,r?(t=this.reconnected)==null||t.call(this):(o=this.disconnected)==null||o.call(this)),e&&(Wr(this,r),Ko(this))}setValue(r){if(Sl(this.t))this.t._$AI(r,this);else{let e=[...this.t._$AH];e[this.i]=r,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var _l=()=>new xa,xa=class{},ya=new WeakMap,Il=Ir(class extends Qo{render(i){return y}update(i,[r]){var t;let e=r!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=r,this.ht=(t=i.options)==null?void 0:t.host,this.rt(this.ct=i.element)),y}rt(i){var r;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(r=this.ht)!=null?r:globalThis,t=ya.get(e);t===void 0&&(t=new WeakMap,ya.set(e,t)),t.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),t.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,r,e;return typeof this.Y=="function"?(r=ya.get((i=this.ht)!=null?i:globalThis))==null?void 0:r.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 sm=[f`
3695
3696
  :host::part(scroll) {
3696
3697
  height: 100%;
3697
3698
  width: 100%;
@@ -3701,19 +3702,58 @@
3701
3702
  position: relative;
3702
3703
  width: 100%;
3703
3704
  }
3704
- `],xl=qd;var El=b.constructTagName("virtualizedlist"),iC=b.constructTagName("virtualizedwrapper"),Tl={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Lt=class extends y{constructor(){super();this.virtualizerProps=Tl.VIRTUALIZER_PROPS;this.scrollElementRef=vl();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 Go(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 n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:s}=this.virtualizer,a=o();if(a!==this.virtualItems){this.virtualItems=a;let m=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:h})}return p`<div
3705
+ `],Cl=sm;var kl=b.constructTagName("virtualizedlist"),yk=b.constructTagName("virtualizedwrapper"),Ll={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Mt=class extends v{constructor(){super();this.virtualizerProps=Ll.VIRTUALIZER_PROPS;this.scrollElementRef=_l();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 jo(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 n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:t,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let m=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:a,listStyle:h})}return p`<div
3705
3706
  part="container"
3706
- style="height: ${r()}px;"
3707
+ style="height: ${t()}px;"
3707
3708
  >
3708
3709
  <slot></slot>
3709
3710
  </div>`}render(){return p`<div
3710
- ${yl(this.scrollElementRef)}
3711
+ ${Il(this.scrollElementRef)}
3711
3712
  part="scroll"
3712
3713
  @scroll=${this.onscroll&&this.onscroll}
3713
3714
  >
3714
3715
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):p``}
3715
3716
  </div>
3716
- `}};Lt.styles=[...y.styles,...xl],l([c({type:Function,attribute:"onscroll"})],Lt.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],Lt.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],Lt.prototype,"setlistdata",2);var bs=Lt;bs.register(El);var Xd=bs;})();
3717
+ `}};Mt.styles=[...v.styles,...Cl],l([c({type:Function,attribute:"onscroll"})],Mt.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],Mt.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],Mt.prototype,"setlistdata",2);var Ea=Mt;Ea.register(kl);var nm=Ea;var lm=[oo,f`
3718
+ :host {
3719
+ --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
3720
+ --mdc-tablist-gap: 0.5rem;
3721
+ --mdc-tablist-width: 100%;
3722
+ --mdc-tablist-arrow-button-margin: 0.75rem;
3723
+
3724
+ width: var(--mdc-tablist-width);
3725
+ display: flex;
3726
+ align-items: center;
3727
+
3728
+ ::slotted(mdc-tab) {
3729
+ width: initial;
3730
+ }
3731
+ }
3732
+
3733
+ :host .container {
3734
+ display: flex;
3735
+ overflow-x: hidden;
3736
+ gap: var(--mdc-tablist-gap);
3737
+ padding: var(--mdc-tablist-focus-ring-outer-width);
3738
+ }
3739
+
3740
+ :host mdc-button[prefix-icon="arrow-left-regular"] {
3741
+ margin-right: var(--mdc-tablist-arrow-button-margin);
3742
+ }
3743
+
3744
+ :host mdc-button[prefix-icon="arrow-right-regular"] {
3745
+ margin-left: var(--mdc-tablist-arrow-button-margin);
3746
+ }
3747
+ `],Rl=[...lm];var Nl=b.constructTagName("tablist"),Yr={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},dr={FORWARD:"forward",BACKWARD:"backward"};var Jo=i=>i[0],Ta=i=>i[i.length-1],Ol=(i,r)=>{let e=i.findIndex(t=>r===t)-1;return i[(e+i.length)%i.length]},Ml=(i,r)=>{let e=i.findIndex(t=>r===t)+1;return i[e%i.length]},Dl=(i,r)=>i.find(e=>e.tabId===r),Aa=i=>i.find(r=>r.active);var ue=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.setAriaLabelledByOrAriaLabel=()=>{var e,t,o,a;this.dataAriaLabelledby?((e=this.tabsContainer)==null||e.setAttribute("aria-labelledby",this.dataAriaLabelledby),(t=this.tabsContainer)==null||t.removeAttribute("aria-label")):((o=this.tabsContainer)==null||o.setAttribute("aria-label",this.dataAriaLabel||"Tab List"),(a=this.tabsContainer)==null||a.removeAttribute("aria-labelledby"))};this.fireTabChangeEvent=e=>{let t=new CustomEvent("change",{detail:e.tabId});this.dispatchEvent(t)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ae||!(e.target instanceof ae))return;let t=Aa(this.tabs||[]);t instanceof ae&&await this.focusTab(t)};this.handleMousedown=e=>{e.target instanceof ae&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{let t=e.target;t instanceof ae&&(this.setActiveTab(t),await this.focusTab(t),this.activeTabId=t.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var t;(t=this.tabs)==null||t.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var t;(t=this.tabs)==null||t.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{var t;e instanceof ae&&(e!==((t=this.shadowRoot)==null?void 0:t.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let t=e.target;if(!(t instanceof ae)||!this.tabs)return;let o=Ol(this.tabs,t),a=Ml(this.tabs,t),s=Jo(this.tabs),n=Ta(this.tabs);switch(e.code){case Yr.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case Yr.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case Yr.HOME:await this.focusTab(s);break;case Yr.END:await this.focusTab(n);break;default:}};this.shouldShowArrowButton=e=>e===dr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,t;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Aa(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((t=this.notFocusedArrowButton)==null||t.focus())};this.handleArrowButtonVisibility=async()=>{var u,x,g;if(!this.tabs||!this.tabsContainer)return;let e=!1;((u=this.shadowRoot)==null?void 0:u.activeElement)instanceof Rr&&(e=!0);let t=Jo(this.tabs),o=Ta(this.tabs),a=t.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,n=o.getBoundingClientRect().right,d=(g=this.tabsContainer)==null?void 0:g.getBoundingClientRect().right,m=t.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,n>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}m>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 t=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===dr.FORWARD?t: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(n=>n.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),this.setAriaLabelledByOrAriaLabel(),new ResizeObserver(async()=>{var d,m;let n=(m=(d=this.tabsContainer)==null?void 0:d.shadowRoot)==null?void 0:m.activeElement;n instanceof ae&&n.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=Jo(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("dataAriaLabelledby")||e.has("dataAriaLabel"))&&this.setAriaLabelledByOrAriaLabel(),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let t=Dl(this.tabs,this.activeTabId);if(!(t instanceof ae))return;this.setActiveTab(t),e.get("activeTabId")?(this.fireTabChangeEvent(t),await this.focusTab(t)):this.resetTabIndexAndSetNewTabIndex(t)}}render(){let e=this.isRtl()?"left":"right",t=this.isRtl()?"right":"left",o=a=>p` ${this.shouldShowArrowButton(a)?p`<mdc-button
3748
+ variant="tertiary"
3749
+ prefix-icon="arrow-${a===dr.FORWARD?e:t}-regular"
3750
+ aria-label="Scroll tabs ${a===dr.FORWARD?e:t}"
3751
+ @click="${()=>this.scrollTabs(a)}"
3752
+ ></mdc-button>`:y}`;return p` ${o("backward")}
3753
+ <div class="container" role="tablist" tabindex="-1">
3754
+ <slot></slot>
3755
+ </div>
3756
+ ${o(dr.FORWARD)}`}};ue.styles=[...v.styles,...Rl],l([c({type:String,attribute:"active-tab-id",reflect:!0})],ue.prototype,"activeTabId",2),l([c({type:String,attribute:"data-aria-labelledby"})],ue.prototype,"dataAriaLabelledby",2),l([c({type:String,attribute:"data-aria-label"})],ue.prototype,"dataAriaLabel",2),l([De(".container")],ue.prototype,"tabsContainer",2),l([De("mdc-button:not(:focus-visible)")],ue.prototype,"notFocusedArrowButton",2),l([te({selector:"mdc-tab"})],ue.prototype,"tabs",2),l([M()],ue.prototype,"showForwardArrowButton",2),l([M()],ue.prototype,"showBackwardArrowButton",2);var Sa=ue;Sa.register(Nl);var cm=Sa;})();
3717
3757
  /*! Bundled license information:
3718
3758
 
3719
3759
  @lit/reactive-element/css-tag.js: