@momentum-design/components 0.43.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/browser/index.js +191 -153
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/alertchip/alertchip.styles.js +1 -0
  4. package/dist/components/chip/chip.styles.js +1 -0
  5. package/dist/components/input/input.component.d.ts +3 -2
  6. package/dist/components/input/input.component.js +35 -34
  7. package/dist/components/input/input.constants.d.ts +11 -1
  8. package/dist/components/input/input.constants.js +11 -1
  9. package/dist/components/input/input.styles.js +1 -0
  10. package/dist/components/input/input.types.d.ts +4 -2
  11. package/dist/components/inputchip/inputchip.component.d.ts +1 -4
  12. package/dist/components/inputchip/inputchip.component.js +3 -8
  13. package/dist/components/inputchip/inputchip.styles.js +1 -1
  14. package/dist/components/searchfield/index.d.ts +10 -0
  15. package/dist/components/searchfield/index.js +7 -0
  16. package/dist/components/searchfield/searchfield.component.d.ts +36 -0
  17. package/dist/components/searchfield/searchfield.component.js +98 -0
  18. package/dist/components/searchfield/searchfield.constants.d.ts +7 -0
  19. package/dist/components/searchfield/searchfield.constants.js +9 -0
  20. package/dist/components/searchfield/searchfield.styles.d.ts +2 -0
  21. package/dist/components/searchfield/searchfield.styles.js +30 -0
  22. package/dist/custom-elements.json +1226 -38
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.js +2 -1
  25. package/dist/react/index.d.ts +1 -0
  26. package/dist/react/index.js +1 -0
  27. package/dist/react/inputchip/index.d.ts +2 -9
  28. package/dist/react/inputchip/index.js +2 -9
  29. package/dist/react/searchfield/index.d.ts +21 -0
  30. package/dist/react/searchfield/index.js +30 -0
  31. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var rl=Object.defineProperty;var ol=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?ol(t,e):t,a=o.length-1,s;a>=0;a--)(s=o[a])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&rl(t,e,i),i};var Mr=globalThis,zr=Mr.ShadowRoot&&(Mr.ShadyCSS===void 0||Mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Do=Symbol(),ea=new WeakMap,er=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Do)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(zr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ea.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ea.set(e,t))}return t}toString(){return this.cssText}},ta=o=>new er(typeof o=="string"?o:o+"",void 0,Do),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[a+1],o[0]);return new er(e,o,Do)},$o=(o,t)=>{if(zr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Mr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Dr=zr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ta(e)})(o):o;var{is:il,defineProperty:al,getOwnPropertyDescriptor:sl,getOwnPropertyNames:nl,getOwnPropertySymbols:ll,getPrototypeOf:cl}=Object,Ue=globalThis,ra=Ue.trustedTypes,dl=ra?ra.emptyScript:"",Po=Ue.reactiveElementPolyfillSupport,tr=(o,t)=>o,rr={toAttribute(o,t){switch(t){case Boolean:o=o?dl:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},$r=(o,t)=>!il(o,t),oa={attribute:!0,type:String,converter:rr,reflect:!1,hasChanged:$r},ia,aa;(ia=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(aa=Ue.litPropertyMetadata)!=null||(Ue.litPropertyMetadata=new WeakMap);var Ie=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=oa){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&al(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var s;let{get:i,set:a}=(s=sl(this.prototype,t))!=null?s:{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){let d=i==null?void 0:i.call(this);a.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:oa}static _$Ei(){if(this.hasOwnProperty(tr("elementProperties")))return;let t=cl(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tr("properties"))){let e=this.properties,r=[...nl(e),...ll(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(Dr(i))}else t!==void 0&&e.push(Dr(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 $o(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var a;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:rr).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let s=r.getPropertyOptions(i),n=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:rr;this._$Em=i,this[i]=n.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:$r)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,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 t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},sa;Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[tr("elementProperties")]=new Map,Ie[tr("finalized")]=new Map,Po==null||Po({ReactiveElement:Ie}),((sa=Ue.reactiveElementVersions)!=null?sa:Ue.reactiveElementVersions=[]).push("2.0.4");var ir=globalThis,Pr=ir.trustedTypes,na=Pr?Pr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Fo="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Ho="?"+ke,ml=`<${Ho}>`,Je=document,ar=()=>Je.createComment(""),sr=o=>o===null||typeof o!="object"&&typeof o!="function",Bo=Array.isArray,ua=o=>Bo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Uo=`[
2
- \f\r]`,or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,la=/-->/g,ca=/>/g,Ke=RegExp(`>|${Uo}(?:([^\\s"'>=/]+)(${Uo}*=${Uo}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),da=/'/g,ma=/"/g,fa=/^(?:script|style|textarea|title)$/i,Go=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Go(1),Ad=Go(2),Sd=Go(3),Ce=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),pa=new WeakMap,Qe=Je.createTreeWalker(Je,129);function ga(o,t){if(!Bo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return na!==void 0?na.createHTML(t):t}var ba=(o,t)=>{let e=o.length-1,r=[],i,a=t===2?"<svg>":t===3?"<math>":"",s=or;for(let n=0;n<e;n++){let d=o[n],m,p,u=-1,x=0;for(;x<d.length&&(s.lastIndex=x,p=s.exec(d),p!==null);)x=s.lastIndex,s===or?p[1]==="!--"?s=la:p[1]!==void 0?s=ca:p[2]!==void 0?(fa.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=Ke):p[3]!==void 0&&(s=Ke):s===Ke?p[0]===">"?(s=i!=null?i:or,u=-1):p[1]===void 0?u=-2:(u=s.lastIndex-p[2].length,m=p[1],s=p[3]===void 0?Ke:p[3]==='"'?ma:da):s===ma||s===da?s=Ke:s===la||s===ca?s=or:(s=Ke,i=void 0);let b=s===Ke&&o[n+1].startsWith("/>")?" ":"";a+=s===or?d+ml:u>=0?(r.push(m),d.slice(0,u)+Fo+d.slice(u)+ke+b):d+ke+(u===-2?n:b)}return[ga(o,a+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},nr=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let a=0,s=0,n=t.length-1,d=this.parts,[m,p]=ba(t,e);if(this.el=o.createElement(m,r),Qe.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Qe.nextNode())!==null&&d.length<n;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(Fo)){let x=p[s++],b=i.getAttribute(u).split(ke),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:b,ctor:E[1]==="."?Vr:E[1]==="?"?Fr:E[1]==="@"?Hr:tt}),i.removeAttribute(u)}else u.startsWith(ke)&&(d.push({type:6,index:a}),i.removeAttribute(u));if(fa.test(i.tagName)){let u=i.textContent.split(ke),x=u.length-1;if(x>0){i.textContent=Pr?Pr.emptyScript:"";for(let b=0;b<x;b++)i.append(u[b],ar()),Qe.nextNode(),d.push({type:2,index:++a});i.append(u[x],ar())}}}else if(i.nodeType===8)if(i.data===Ho)d.push({type:2,index:a});else{let u=-1;for(;(u=i.data.indexOf(ke,u+1))!==-1;)d.push({type:7,index:a}),u+=ke.length-1}a++}}static createElement(t,e){let r=Je.createElement("template");return r.innerHTML=t,r}};function et(o,t,e=o,r){var s,n,d;if(t===Ce)return t;let i=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=sr(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((n=i==null?void 0:i._$AO)==null||n.call(i,!1),a===void 0?i=void 0:(i=new a(o),i._$AT(o,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=et(o,i._$AS(o,t.values),i,r)),t}var Ur=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Je).importNode(e,!0);Qe.currentNode=i;let a=Qe.nextNode(),s=0,n=0,d=r[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new wt(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new Br(a,this,t)),this._$AV.push(p),d=r[++n]}s!==(d==null?void 0:d.index)&&(a=Qe.nextNode(),s++)}return Qe.currentNode=Je,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var a;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),sr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ce&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ua(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&&sr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Je.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=nr.createElement(ga(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(e);else{let s=new Ur(i,this),n=s.u(this.options);s.p(e),this.T(n),this._$AH=s}}_$AC(t){let e=pa.get(t.strings);return e===void 0&&pa.set(t.strings,e=new nr(t)),e}k(t){Bo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let a of t)i===e.length?e.push(r=new o(this.O(ar()),this.O(ar()),this,this.options)):r=e[i],r._$AI(a),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,a){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=a,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,i){let a=this.strings,s=!1;if(a===void 0)t=et(this,t,e,0),s=!sr(t)||t!==this._$AH&&t!==Ce,s&&(this._$AH=t);else{let n=t,d,m;for(t=a[0],d=0;d<a.length-1;d++)m=et(this,n[r+d],e,d),m===Ce&&(m=this._$AH[d]),s||(s=!sr(m)||m!==this._$AH[d]),m===v?t=v:t!==v&&(t+=(m!=null?m:"")+a[d+1]),this._$AH[d]=m}s&&!i&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Vr=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Fr=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Hr=class extends tt{constructor(t,e,r,i,a){super(t,e,r,i,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=et(this,t,e,0))!=null?s:v)===Ce)return;let r=this._$AH,i=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==v&&(r===v||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Br=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){et(this,t)}},va={M:Fo,P:ke,A:Ho,C:1,L:ba,R:Ur,D:ua,V:et,I:wt,H:tt,N:Fr,U:Hr,B:Vr,F:Br},Vo=ir.litHtmlPolyfillSupport,ha;Vo==null||Vo(nr,wt),((ha=ir.litHtmlVersions)!=null?ha:ir.litHtmlVersions=[]).push("3.2.0");var ya=(o,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,i=r._$litPart$;if(i===void 0){let n=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=i=new wt(t.insertBefore(ar(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var Ve=class extends Ie{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=ya(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 Ce}},xa;Ve._$litElement$=!0,Ve.finalized=!0,(xa=globalThis.litElementHydrateSupport)==null||xa.call(globalThis,{LitElement:Ve});var Yo=globalThis.litElementPolyfillSupport;Yo==null||Yo({LitElement:Ve});var Ea;((Ea=globalThis.litElementVersions)!=null?Ea:globalThis.litElementVersions=[]).push("4.1.0");var pl={attribute:!0,type:String,converter:rr,reflect:!1,hasChanged:$r},hl=(o=pl,t,e)=>{let{kind:r,metadata:i}=e,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(s,d,o)},init(n){return n!==void 0&&this.P(s,void 0,o),n}}}if(r==="setter"){let{name:s}=e;return function(n){let d=this[s];t.call(this,n),this.requestUpdate(s,d,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?hl(o,t,e):((r,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(i,a):void 0})(o,t,e)}function G(o){return c({...o,state:!0,attribute:!1})}var we=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Gr(o,t){return(e,r,i)=>{let a=s=>{var n,d;return(d=(n=s.renderRoot)==null?void 0:n.querySelector(o))!=null?d:null};if(t){let{get:s,set:n}=typeof r=="object"?e:i!=null?i:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return we(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return we(e,r,{get(){return a(this)}})}}function rt(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},a="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var d,m;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),n=(m=s==null?void 0:s.assignedElements(o))!=null?m:[];return i===void 0?n:n.filter(p=>p.matches(i))}})}}function Ta(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var s,n;let a=(s=this.renderRoot)==null?void 0:s.querySelector(i);return(n=a==null?void 0:a.assignedNodes(o))!=null?n:[]}})}}var C=f`
1
+ "use strict";(()=>{var cl=Object.defineProperty;var dl=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?dl(t,e):t,s=o.length-1,a;s>=0;s--)(a=o[s])&&(i=(r?a(t,e,i):a(i))||i);return r&&i&&cl(t,e,i),i};var $r=globalThis,Pr=$r.ShadowRoot&&($r.ShadyCSS===void 0||$r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Uo=Symbol(),ss=new WeakMap,or=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Uo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Pr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ss.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ss.set(e,t))}return t}toString(){return this.cssText}},as=o=>new or(typeof o=="string"?o:o+"",void 0,Uo),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,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.")})(i)+o[s+1],o[0]);return new or(e,o,Uo)},Vo=(o,t)=>{if(Pr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=$r.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Ur=Pr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return as(e)})(o):o;var{is:ml,defineProperty:pl,getOwnPropertyDescriptor:hl,getOwnPropertyNames:ul,getOwnPropertySymbols:fl,getPrototypeOf:gl}=Object,Fe=globalThis,ns=Fe.trustedTypes,bl=ns?ns.emptyScript:"",Fo=Fe.reactiveElementPolyfillSupport,ir=(o,t)=>o,sr={toAttribute(o,t){switch(t){case Boolean:o=o?bl:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Vr=(o,t)=>!ml(o,t),ls={attribute:!0,type:String,converter:sr,reflect:!1,hasChanged:Vr},cs,ds;(cs=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ds=Fe.litPropertyMetadata)!=null||(Fe.litPropertyMetadata=new WeakMap);var Ie=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=ls){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&pl(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=hl(this.prototype,t))!=null?a:{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){let d=i==null?void 0:i.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:ls}static _$Ei(){if(this.hasOwnProperty(ir("elementProperties")))return;let t=gl(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ir("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ir("properties"))){let e=this.properties,r=[...ul(e),...fl(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(Ur(i))}else t!==void 0&&e.push(Ur(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Vo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let a=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:sr).toAttribute(e,r.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,e){var s;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=r.getPropertyOptions(i),n=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:sr;this._$Em=i,this[i]=n.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:Vr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[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),(i=this._$EO)==null||i.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 i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},ms;Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[ir("elementProperties")]=new Map,Ie[ir("finalized")]=new Map,Fo==null||Fo({ReactiveElement:Ie}),((ms=Fe.reactiveElementVersions)!=null?ms:Fe.reactiveElementVersions=[]).push("2.0.4");var nr=globalThis,Fr=nr.trustedTypes,ps=Fr?Fr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Go="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Yo="?"+ke,vl=`<${Yo}>`,et=document,lr=()=>et.createComment(""),cr=o=>o===null||typeof o!="object"&&typeof o!="function",qo=Array.isArray,ys=o=>qo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ho=`[
2
+ \f\r]`,ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hs=/-->/g,us=/>/g,Qe=RegExp(`>|${Ho}(?:([^\\s"'>=/]+)(${Ho}*=${Ho}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),fs=/'/g,gs=/"/g,xs=/^(?:script|style|textarea|title)$/i,Wo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Wo(1),Rd=Wo(2),Od=Wo(3),Ce=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),bs=new WeakMap,Je=et.createTreeWalker(et,129);function Es(o,t){if(!qo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(t):t}var Ts=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",a=ar;for(let n=0;n<e;n++){let d=o[n],m,p,u=-1,x=0;for(;x<d.length&&(a.lastIndex=x,p=a.exec(d),p!==null);)x=a.lastIndex,a===ar?p[1]==="!--"?a=hs:p[1]!==void 0?a=us:p[2]!==void 0?(xs.test(p[2])&&(i=RegExp("</"+p[2],"g")),a=Qe):p[3]!==void 0&&(a=Qe):a===Qe?p[0]===">"?(a=i!=null?i:ar,u=-1):p[1]===void 0?u=-2:(u=a.lastIndex-p[2].length,m=p[1],a=p[3]===void 0?Qe:p[3]==='"'?gs:fs):a===gs||a===fs?a=Qe:a===hs||a===us?a=ar:(a=Qe,i=void 0);let b=a===Qe&&o[n+1].startsWith("/>")?" ":"";s+=a===ar?d+vl:u>=0?(r.push(m),d.slice(0,u)+Go+d.slice(u)+ke+b):d+ke+(u===-2?n:b)}return[Es(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},dr=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,a=0,n=t.length-1,d=this.parts,[m,p]=Ts(t,e);if(this.el=o.createElement(m,r),Je.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Je.nextNode())!==null&&d.length<n;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(Go)){let x=p[a++],b=i.getAttribute(u).split(ke),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?Br:E[1]==="?"?Gr:E[1]==="@"?Yr:rt}),i.removeAttribute(u)}else u.startsWith(ke)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(xs.test(i.tagName)){let u=i.textContent.split(ke),x=u.length-1;if(x>0){i.textContent=Fr?Fr.emptyScript:"";for(let b=0;b<x;b++)i.append(u[b],lr()),Je.nextNode(),d.push({type:2,index:++s});i.append(u[x],lr())}}}else if(i.nodeType===8)if(i.data===Yo)d.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(ke,u+1))!==-1;)d.push({type:7,index:s}),u+=ke.length-1}s++}}static createElement(t,e){let r=et.createElement("template");return r.innerHTML=t,r}};function tt(o,t,e=o,r){var a,n,d;if(t===Ce)return t;let i=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=cr(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((n=i==null?void 0:i._$AO)==null||n.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=tt(o,i._$AS(o,t.values),i,r)),t}var Hr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:et).importNode(e,!0);Je.currentNode=i;let s=Je.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new wt(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new qr(s,this,t)),this._$AV.push(p),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=Je.nextNode(),a++)}return Je.currentNode=et,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.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=tt(this,t,e),cr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ce&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ys(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&&cr(this._$AH)?this._$AA.nextSibling.data=t:this.T(et.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=dr.createElement(Es(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{let a=new Hr(i,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=bs.get(t.strings);return e===void 0&&bs.set(t.strings,e=new dr(t)),e}k(t){qo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let s of t)i===e.length?e.push(r=new o(this.O(lr()),this.O(lr()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,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,i){let s=this.strings,a=!1;if(s===void 0)t=tt(this,t,e,0),a=!cr(t)||t!==this._$AH&&t!==Ce,a&&(this._$AH=t);else{let n=t,d,m;for(t=s[0],d=0;d<s.length-1;d++)m=tt(this,n[r+d],e,d),m===Ce&&(m=this._$AH[d]),a||(a=!cr(m)||m!==this._$AH[d]),m===v?t=v:t!==v&&(t+=(m!=null?m:"")+s[d+1]),this._$AH[d]=m}a&&!i&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Br=class extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Gr=class extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Yr=class extends rt{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=tt(this,t,e,0))!=null?a:v)===Ce)return;let r=this._$AH,i=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==v&&(r===v||i);i&&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)}},qr=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){tt(this,t)}},As={M:Go,P:ke,A:Yo,C:1,L:Ts,R:Hr,D:ys,V:tt,I:wt,H:rt,N:Gr,U:Yr,B:Br,F:qr},Bo=nr.litHtmlPolyfillSupport,vs;Bo==null||Bo(dr,wt),((vs=nr.litHtmlVersions)!=null?vs:nr.litHtmlVersions=[]).push("3.2.0");var Ss=(o,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=i=new wt(t.insertBefore(lr(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var He=class extends Ie{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=Ss(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 Ce}},_s;He._$litElement$=!0,He.finalized=!0,(_s=globalThis.litElementHydrateSupport)==null||_s.call(globalThis,{LitElement:He});var Xo=globalThis.litElementPolyfillSupport;Xo==null||Xo({LitElement:He});var Is;((Is=globalThis.litElementVersions)!=null?Is:globalThis.litElementVersions=[]).push("4.1.0");var yl={attribute:!0,type:String,converter:sr,reflect:!1,hasChanged:Vr},xl=(o=yl,t,e)=>{let{kind:r,metadata:i}=e,s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(e.name,o),r==="accessor"){let{name:a}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,d,o)},init(n){return n!==void 0&&this.P(a,void 0,o),n}}}if(r==="setter"){let{name:a}=e;return function(n){let d=this[a];t.call(this,n),this.requestUpdate(a,d,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?xl(o,t,e):((r,i,s)=>{let a=i.hasOwnProperty(s);return i.constructor.createProperty(s,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}function U(o){return c({...o,state:!0,attribute:!1})}var we=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Wr(o,t){return(e,r,i)=>{let s=a=>{var n,d;return(d=(n=a.renderRoot)==null?void 0:n.querySelector(o))!=null?d:null};if(t){let{get:a,set:n}=typeof r=="object"?e:i!=null?i:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return we(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 we(e,r,{get(){return s(this)}})}}function Le(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return we(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(o))!=null?m:[];return i===void 0?n:n.filter(p=>p.matches(i))}})}}function ks(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(i);return(n=s==null?void 0:s.assignedNodes(o))!=null?n:[]}})}}var C=f`
4
4
  :host {
5
5
  align-items: center;
6
6
  display: flex;
@@ -65,7 +65,7 @@
65
65
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
66
66
  }
67
67
  }
68
- `]};var ul=f`
68
+ `]};var El=f`
69
69
  :host {
70
70
  height: 1.5rem;
71
71
  gap: 0.25rem;
@@ -73,6 +73,7 @@
73
73
  border-radius: 0.25rem;
74
74
  border: 1px solid;
75
75
  cursor: pointer;
76
+ white-space: nowrap;
76
77
 
77
78
  --mdc-chip-color: var(--mds-color-theme-text-primary-normal);
78
79
  --mdc-chip-border-color: var(--mds-color-theme-outline-button-normal);
@@ -167,7 +168,7 @@
167
168
  :host([variant="informational"]:active){
168
169
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
169
170
  }
170
- `,Aa=[C,ul,...O()];var Sa=f`
171
+ `,Cs=[C,El,...O()];var ws=f`
171
172
  :host {
172
173
  box-sizing: border-box;
173
174
  }
@@ -177,11 +178,11 @@
177
178
  :host *::after {
178
179
  box-sizing: inherit;
179
180
  }
180
- `;var Yr=class extends Ve{static register(t){customElements.get(t)||customElements.define(t,this)}};Yr.styles=[Sa];var _a=Yr;var y=_a;var Fe=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 Lt=class{constructor(t,e,r,i){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=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Fe(this.context,this.t,this.subscribe))}};var qr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var qo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Nt=class extends qr{constructor(t,e,r){var i,a;super(e.context!==void 0?e.initialValue:r),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:p}]of this.subscriptions)d.has(m)||(d.add(m),p.dispatchEvent(new Fe(this.context,m,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(i=this.host).addController)==null||a.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new qo(this.context))}};var fl=f`
181
+ `;var Xr=class extends He{static register(t){customElements.get(t)||customElements.define(t,this)}};Xr.styles=[ws];var Ls=Xr;var y=Ls;var Be=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 Lt=class{constructor(t,e,r,i){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=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Be(this.context,this.t,this.subscribe))}};var Zr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var Zo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Nt=class extends Zr{constructor(t,e,r){var i,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:p}]of this.subscriptions)d.has(m)||(d.add(m),p.dispatchEvent(new Be(this.context,m,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(s=(i=this.host).addController)==null||s.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Zo(this.context))}};var Tl=f`
181
182
  :host {
182
183
  display: contents;
183
184
  }
184
- `,ka=fl;var Wr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Nt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};Wr.styles=[...y.styles,ka];var Ca=Wr;var Rt=Ca;var gl={PREFIX:"mdc",SEPARATOR:"-"},bl={NAMESPACE:gl},Wo=bl;var vl=o=>[Wo.NAMESPACE.PREFIX,o].join(Wo.NAMESPACE.SEPARATOR),g={constructTagName:vl};var mp=g.constructTagName("buttonsimple"),lr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ot={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Xr={SIZE:lr[32],TYPE:Ot.BUTTON,ROLE:"button"};var cr=g.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"},K={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var wa=g.constructTagName("alertchip"),ot={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Mt={VARIANT:ot.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:lr[24],ROLE:"button"};var La=o=>({[ot.ERROR]:"error-legacy-badge-filled",[ot.WARNING]:"warning-badge-filled",[ot.SUCCESS]:"check-circle-badge-filled",[ot.INFORMATIONAL]:"info-badge-filled",[ot.NEUTRAL]:"dnd-presence-badge-filled"})[o];var te=o=>{class t extends o{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Zr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var yl=[C,f`
185
+ `,Rs=Tl;var jr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Nt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};jr.styles=[...y.styles,Rs];var Os=jr;var Rt=Os;var Al={PREFIX:"mdc",SEPARATOR:"-"},Sl={NAMESPACE:Al},jo=Sl;var _l=o=>[jo.NAMESPACE.PREFIX,o].join(jo.NAMESPACE.SEPARATOR),g={constructTagName:_l};var xp=g.constructTagName("buttonsimple"),mr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ot={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Kr={SIZE:mr[32],TYPE:Ot.BUTTON,ROLE:"button"};var pr=g.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"},K={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ms=g.constructTagName("alertchip"),ot={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Mt={VARIANT:ot.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:mr[24],ROLE:"button"};var zs=o=>({[ot.ERROR]:"error-legacy-badge-filled",[ot.WARNING]:"warning-badge-filled",[ot.SUCCESS]:"check-circle-badge-filled",[ot.INFORMATIONAL]:"info-badge-filled",[ot.NEUTRAL]:"dnd-presence-badge-filled"})[o];var te=o=>{class t extends o{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Qr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Il=[C,f`
185
186
  :host {
186
187
  border: 0.0625rem solid transparent;
187
188
  cursor: pointer;
@@ -237,12 +238,12 @@
237
238
  :host([size="20"]){
238
239
  height: var(--mdc-button-height-size-20);
239
240
  }
240
- `,...O()],Na=yl;var ve=class extends Zr(te(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Xr.SIZE;this.role=Xr.ROLE;this.type=Xr.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===Ot.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ot.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return h`
241
+ `,...O()],Ds=Il;var ve=class extends Qr(te(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Kr.SIZE;this.role=Kr.ROLE;this.type=Kr.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===Ot.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ot.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return h`
241
242
  <slot></slot>
242
- `}};ve.formAssociated=!0,ve.styles=[...y.styles,...Na],l([c({type:Boolean,reflect:!0})],ve.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],ve.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],ve.prototype,"size",2),l([c({type:String,reflect:!0})],ve.prototype,"role",2),l([c({reflect:!0})],ve.prototype,"type",2);var re=ve;var zt=class extends re{constructor(){super(...arguments);this.variant=Mt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Mt.SIZE,this.role=Mt.ROLE}render(){return h`
243
- <mdc-icon part="icon" name="${La(this.variant)}" length-unit="rem" size="1"></mdc-icon>
243
+ `}};ve.formAssociated=!0,ve.styles=[...y.styles,...Ds],l([c({type:Boolean,reflect:!0})],ve.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],ve.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],ve.prototype,"size",2),l([c({type:String,reflect:!0})],ve.prototype,"role",2),l([c({reflect:!0})],ve.prototype,"type",2);var re=ve;var zt=class extends re{constructor(){super(...arguments);this.variant=Mt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Mt.SIZE,this.role=Mt.ROLE}render(){return h`
244
+ <mdc-icon part="icon" name="${zs(this.variant)}" length-unit="rem" size="1"></mdc-icon>
244
245
  <mdc-text part="label" type="${Mt.TEXT_TYPE}" tagname="${Mt.TAG_NAME}">${this.label}</mdc-text>
245
- `}};zt.styles=[...y.styles,...Aa],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var Xo=zt;var Ra=f`
246
+ `}};zt.styles=[...y.styles,...Cs],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var Ko=zt;var $s=f`
246
247
  :host::part(text) {
247
248
  font-size: unset;
248
249
  font-weight: unset;
@@ -485,14 +486,14 @@
485
486
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
486
487
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
487
488
  }
488
- `;var xl=[f`
489
+ `;var kl=[f`
489
490
  :host {
490
491
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
491
492
 
492
493
  display: block;
493
494
  font-family: var(--mdc-text-font-family);
494
495
  }
495
- `,Ra],Oa=xl;var Dt=class extends y{constructor(){super(...arguments);this.type=K.TYPE;this.tagname=K.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return h`<h1 part=${K.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return h`<h2 part=${K.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return h`<h3 part=${K.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return h`<h4 part=${K.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return h`<h5 part=${K.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return h`<h6 part=${K.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return h`<div part=${K.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return h`<span part=${K.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return h`<small part=${K.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return h`<p part=${K.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...Oa],l([c({attribute:"type",reflect:!0,type:String})],Dt.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Dt.prototype,"tagname",2);var Zo=Dt;Zo.register(cr);var El=Zo;var Tl=[C,f`
496
+ `,$s],Ps=kl;var Dt=class extends y{constructor(){super(...arguments);this.type=K.TYPE;this.tagname=K.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return h`<h1 part=${K.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return h`<h2 part=${K.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return h`<h3 part=${K.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return h`<h4 part=${K.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return h`<h5 part=${K.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return h`<h6 part=${K.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return h`<div part=${K.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return h`<span part=${K.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return h`<small part=${K.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return h`<p part=${K.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...Ps],l([c({attribute:"type",reflect:!0,type:String})],Dt.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Dt.prototype,"tagname",2);var Qo=Dt;Qo.register(pr);var Cl=Qo;var wl=[C,f`
496
497
  :host {
497
498
  --mdc-icon-fill-color: currentColor;
498
499
  --mdc-icon-size: var(--computed-icon-size);
@@ -507,7 +508,7 @@
507
508
  width: 100%;
508
509
  fill: var(--mdc-icon-fill-color);
509
510
  }
510
- `,...O()],Ma=Tl;var Al=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},Sl={consume:Al},za=Sl;var jr=g.constructTagName("iconprovider"),Da=["svg"],$a=["em","rem","px","%"],_l={px:16,em:1,rem:1,"%":100},Le={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:_l.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Kr=class{};Kr.context=jr;var Qr=Kr;var ye=class extends Rt{constructor(){super({context:Qr.context,initialValue:new Qr});this.iconSet=Le.ICON_SET;this.fileExtension=Le.FILE_EXTENSION;this.lengthUnit=Le.LENGTH_UNIT;this.size=Le.SIZE}static get Context(){return Qr.context}updateValuesInContext(){this.fileExtension&&Da.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Le.FILE_EXTENSION,this.context.value.fileExtension=Le.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&&$a.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Le.LENGTH_UNIT,this.context.value.lengthUnit=Le.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})],ye.prototype,"iconSet",2),l([c({type:String})],ye.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],ye.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],ye.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],ye.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],ye.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],ye.prototype,"cacheName",2);var dr=ye;var mr={},Pa=async o=>(mr[o]===void 0&&(mr[o]=new Map),{async set(t,e){mr[o].set(t.url,await e.text())},async get(t){return mr[o].get(t.url)},async delete(t){mr[o].delete(t.url)}}),Ua=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Va=async(o,t)=>t==="in-memory-cache"?Pa(o):Ua(o);var Fa=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Ha=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:a})=>{let s=a(),n=new Request(`${o}/${t}.${e}`,{signal:s});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Fa(n).then(d=>d.text()):Va(i,r).then(d=>d.get(n).then(m=>m||Fa(n.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Ba=g.constructTagName("icon"),jo={NAME:void 0,SIZE:1};var Q=class extends y{constructor(){super();this.name=jo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=za.consume({host:this,context:dr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:a,iconSet:s,cacheStrategy:n}=this.iconProviderContext.value;if(s==="custom-icons"&&i&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Ha({url:i,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:n,renewSignal:d}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).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 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:jo.SIZE}updated(e){var r,i,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!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.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 h` ${this.iconData} `}};Q.styles=[...y.styles,...Ma],l([G()],Q.prototype,"iconData",2),l([G()],Q.prototype,"lengthUnitFromContext",2),l([G()],Q.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],Q.prototype,"name",2),l([c({type:Number})],Q.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],Q.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],Q.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledBy",2),l([G()],Q.prototype,"abortController",2);var Ko=Q;Ko.register(Ba);var Il=Ko;Xo.register(wa);var kl=Xo;var A=o=>o!=null?o:v;var Ga=g.constructTagName("avatar"),W={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Qo=99,Cl="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:W.PHOTO,SIZE:M[32],ICON_NAME:Cl};var Jr=o=>{class t extends o{constructor(){super(...arguments);this.size=$t.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 Z=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var wl=[C,f`
511
+ `,...O()],Us=wl;var Ll=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},Nl={consume:Ll},Vs=Nl;var Jr=g.constructTagName("iconprovider"),Fs=["svg"],Hs=["em","rem","px","%"],Rl={px:16,em:1,rem:1,"%":100},Ne={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Rl.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var eo=class{};eo.context=Jr;var to=eo;var ye=class extends Rt{constructor(){super({context:to.context,initialValue:new to});this.iconSet=Ne.ICON_SET;this.fileExtension=Ne.FILE_EXTENSION;this.lengthUnit=Ne.LENGTH_UNIT;this.size=Ne.SIZE}static get Context(){return to.context}updateValuesInContext(){this.fileExtension&&Fs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ne.FILE_EXTENSION,this.context.value.fileExtension=Ne.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&&Hs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ne.LENGTH_UNIT,this.context.value.lengthUnit=Ne.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})],ye.prototype,"iconSet",2),l([c({type:String})],ye.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],ye.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],ye.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],ye.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],ye.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],ye.prototype,"cacheName",2);var hr=ye;var ur={},Bs=async o=>(ur[o]===void 0&&(ur[o]=new Map),{async set(t,e){ur[o].set(t.url,await e.text())},async get(t){return ur[o].get(t.url)},async delete(t){ur[o].delete(t.url)}}),Gs=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Ys=async(o,t)=>t==="in-memory-cache"?Bs(o):Gs(o);var qs=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Ws=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let a=s(),n=new Request(`${o}/${t}.${e}`,{signal:a});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?qs(n).then(d=>d.text()):Ys(i,r).then(d=>d.get(n).then(m=>m||qs(n.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Xs=g.constructTagName("icon"),Jo={NAME:void 0,SIZE:1};var Q=class extends y{constructor(){super();this.name=Jo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Vs.consume({host:this,context:hr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:s,iconSet:a,cacheStrategy:n}=this.iconProviderContext.value;if(a==="custom-icons"&&i&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Ws({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:n,renewSignal:d}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).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:Jo.SIZE}updated(e){var r,i,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=(i=this.iconProviderContext.value)==null?void 0:i.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 h` ${this.iconData} `}};Q.styles=[...y.styles,...Us],l([U()],Q.prototype,"iconData",2),l([U()],Q.prototype,"lengthUnitFromContext",2),l([U()],Q.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],Q.prototype,"name",2),l([c({type:Number})],Q.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],Q.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],Q.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledBy",2),l([U()],Q.prototype,"abortController",2);var ei=Q;ei.register(Xs);var Ol=ei;Ko.register(Ms);var Ml=Ko;var A=o=>o!=null?o:v;var Zs=g.constructTagName("avatar"),W={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ti=99,zl="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:W.PHOTO,SIZE:M[32],ICON_NAME:zl};var ro=o=>{class t extends o{constructor(){super(...arguments);this.size=$t.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 Z=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Dl=[C,f`
511
512
  :host {
512
513
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
513
514
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -630,8 +631,8 @@
630
631
  outline: 0.125rem solid;
631
632
  }
632
633
  }
633
- `],Ya=wl;var qa=g.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"},U={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Pt={TYPE:Y.ACTIVE,SIZE:U.SMALL};var Wa=o=>({[M[124]]:U.XX_LARGE,[M[88]]:U.X_LARGE,[M[72]]:U.LARGE,[M[64]]:U.MIDSIZE,[M[48]]:U.SMALL,[M[32]]:U.X_SMALL,[M[24]]:U.XX_SMALL})[o]||U.X_SMALL,Xa=o=>({[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})[o]||1.25,Za=o=>({[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})[o]||_.BODY_MIDSIZE_MEDIUM;var pr=class extends Jr(Z(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===W.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
634
- <mdc-presence part="presence" type="${this.presence}" size="${Wa(this.size)}"></mdc-presence>
634
+ `],js=Dl;var Ks=g.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"},V={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Pt={TYPE:Y.ACTIVE,SIZE:V.SMALL};var Qs=o=>({[M[124]]:V.XX_LARGE,[M[88]]:V.X_LARGE,[M[72]]:V.LARGE,[M[64]]:V.MIDSIZE,[M[48]]:V.SMALL,[M[32]]:V.X_SMALL,[M[24]]:V.XX_SMALL})[o]||V.X_SMALL,Js=o=>({[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})[o]||1.25,ea=o=>({[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})[o]||_.BODY_MIDSIZE_MEDIUM;var fr=class extends ro(Z(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===W.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
635
+ <mdc-presence part="presence" type="${this.presence}" size="${Qs(this.size)}"></mdc-presence>
635
636
  `: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 h`
636
637
  <img
637
638
  part="photo"
@@ -645,23 +646,23 @@
645
646
  <mdc-icon
646
647
  name="${A(e)}"
647
648
  length-unit="rem"
648
- size="${Xa(this.size)}"
649
+ size="${Js(this.size)}"
649
650
  ></mdc-icon>
650
651
  `}textTemplate(e){return h`
651
652
  <mdc-text
652
- type="${Za(this.size)}"
653
+ type="${ea(this.size)}"
653
654
  tagname="span"
654
655
  >
655
656
  ${e}
656
657
  </mdc-text>
657
- `}generateCounterText(e){return e<0?"0":e>Qo?`${Qo}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===W.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===W.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?W.PHOTO:this.iconName?W.ICON:this.initials?W.TEXT:this.counter||this.counter===0?W.COUNTER:W.ICON}getTemplateBasedOnType(e){switch(e){case W.PHOTO:return this.photoTemplate();case W.TEXT:case W.COUNTER:return this.generateTextContent(e);case W.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?h`<div part="loading-wrapper"><div part="loader"></div></div>`:v}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?v:e===W.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 h`
658
+ `}generateCounterText(e){return e<0?"0":e>ti?`${ti}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===W.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===W.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?W.PHOTO:this.iconName?W.ICON:this.initials?W.TEXT:this.counter||this.counter===0?W.COUNTER:W.ICON}getTemplateBasedOnType(e){switch(e){case W.PHOTO:return this.photoTemplate();case W.TEXT:case W.COUNTER:return this.generateTextContent(e);case W.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?h`<div part="loading-wrapper"><div part="loader"></div></div>`:v}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?v:e===W.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 h`
658
659
  <div part="content" aria-hidden="true">
659
660
  ${this.getPhotoPlaceHolderContent(e)}
660
661
  ${this.getTemplateBasedOnType(e)}
661
662
  ${this.getLoadingContent()}
662
663
  ${this.getPresenceTemplateBasedOnType(e)}
663
664
  </div>
664
- `}};pr.styles=[...y.styles,...Ya],l([G()],pr.prototype,"isPhotoLoaded",2);var Jo=pr;var Ll=[C,f`
665
+ `}};fr.styles=[...y.styles,...js],l([U()],fr.prototype,"isPhotoLoaded",2);var ri=fr;var $l=[C,f`
665
666
  :host {
666
667
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
667
668
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -755,7 +756,7 @@
755
756
  .mdc-presence-icon__scheduled {
756
757
  color: var(--mdc-presence-scheduled-background-color);
757
758
  }
758
- `],ja=Ll;var Ka=o=>{switch(o){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 it=class extends y{constructor(){super(...arguments);this.type=Pt.TYPE;this.size=Pt.SIZE;this.currentIconType=Pt.TYPE}get iconSize(){switch(this.size){case U.MIDSIZE:return 1.16125;case U.LARGE:return 1.30625;case U.X_LARGE:return 1.596875;case U.XX_LARGE:return 2.25;case U.XX_SMALL:case U.X_SMALL:case U.SMALL:default:return this.size=Pt.SIZE,.875}}get icon(){let e=Ka(this.type);return e==="active-presence-small-filled"&&(this.type=Pt.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 h`
759
+ `],ta=$l;var ra=o=>{switch(o){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 it=class extends y{constructor(){super(...arguments);this.type=Pt.TYPE;this.size=Pt.SIZE;this.currentIconType=Pt.TYPE}get iconSize(){switch(this.size){case V.MIDSIZE:return 1.16125;case V.LARGE:return 1.30625;case V.X_LARGE:return 1.596875;case V.XX_LARGE:return 2.25;case V.XX_SMALL:case V.X_SMALL:case V.SMALL:default:return this.size=Pt.SIZE,.875}}get icon(){let e=ra(this.type);return e==="active-presence-small-filled"&&(this.type=Pt.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 h`
759
760
  <div class="mdc-presence mdc-presence__${this.size}">
760
761
  <mdc-icon
761
762
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -765,14 +766,14 @@
765
766
  @error="${this.handleOnError}"
766
767
  ></mdc-icon>
767
768
  </div>
768
- `}};it.styles=[...y.styles,...ja],l([c({type:String,reflect:!0})],it.prototype,"type",2),l([c({type:String,reflect:!0})],it.prototype,"size",2),l([G()],it.prototype,"currentIconType",2);var ei=it;ei.register(qa);var Nl=ei;Jo.register(Ga);var Rl=Jo;var hr=g.constructTagName("button"),He={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},ur={40:40,32:32,28:28,24:24},xe={64:64,52:52,20:20,...ur},eo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ee={VARIANT:He.PRIMARY,SIZE:ur[32],COLOR:eo.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Ol=[C,f`
769
+ `}};it.styles=[...y.styles,...ta],l([c({type:String,reflect:!0})],it.prototype,"type",2),l([c({type:String,reflect:!0})],it.prototype,"size",2),l([U()],it.prototype,"currentIconType",2);var oi=it;oi.register(Ks);var Pl=oi;ri.register(Zs);var Ul=ri;var gr=g.constructTagName("button"),Ge={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},br={40:40,32:32,28:28,24:24},xe={64:64,52:52,20:20,...br},oo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ee={VARIANT:Ge.PRIMARY,SIZE:br[32],COLOR:oo.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Vl=[C,f`
769
770
  :host {
770
771
  padding: unset;
771
772
  margin: unset;
772
773
  outline: none;
773
774
  border-radius: 0.25rem;
774
775
  }
775
- `,...O()],Qa=Ol;var fr=class extends Jr(Z(re)){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=Ee.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:$t.SIZE.toString())}render(){return h`
776
+ `,...O()],oa=Vl;var vr=class extends ro(Z(re)){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=Ee.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:$t.SIZE.toString())}render(){return h`
776
777
  <mdc-avatar
777
778
  slot="prefixIcon"
778
779
  ?is-typing="${this.isTyping}"
@@ -783,7 +784,7 @@
783
784
  size="${A(this.size)}"
784
785
  src="${A(this.src)}"
785
786
  ></mdc-avatar>
786
- `}};fr.styles=[...Qa],l([c({type:String,attribute:"aria-label"})],fr.prototype,"ariaLabel",2);var ti=fr;var Ja=g.constructTagName("avatarbutton");ti.register(Ja);var Ml=ti;var to={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gr=o=>(...t)=>({_$litDirective$:o,values:t}),Vt=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 ro=gr(class extends Vt{constructor(o){var t;if(super(o),o.type!==to.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=o.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Ce}});var es=g.constructTagName("badge"),Ne={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},oo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},io={PRIMARY:"primary",SECONDARY:"secondary"},br={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Mf={...io,...br},Be={TYPE:Ne.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:io.PRIMARY,ICON_SIZE:1};var zl=[C,f`
787
+ `}};vr.styles=[...oa],l([c({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2);var ii=vr;var ia=g.constructTagName("avatarbutton");ii.register(ia);var Fl=ii;var io={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yr=o=>(...t)=>({_$litDirective$:o,values:t}),Vt=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 Ft=yr(class extends Vt{constructor(o){var t;if(super(o),o.type!==io.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(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=o.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)||(i=this.nt)!=null&&i.has(s)||(a?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ce}});var sa=g.constructTagName("badge"),Re={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},so={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},ao={PRIMARY:"primary",SECONDARY:"secondary"},xr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Bf={...ao,...xr},Ye={TYPE:Re.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:ao.PRIMARY,ICON_SIZE:1};var Hl=[C,f`
787
788
  :host {
788
789
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
789
790
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -852,21 +853,21 @@
852
853
  outline: 0.125rem solid;
853
854
  }
854
855
  }
855
- `],ts=zl;var Te=class extends Z(y){constructor(){super(...arguments);this.variant=Be.VARIANT;this.maxCounter=Be.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Be.MAX_COUNTER_LIMIT||r>Be.MAX_COUNTER_LIMIT?`${Be.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
856
+ `],aa=Hl;var Te=class extends Z(y){constructor(){super(...arguments);this.variant=Ye.VARIANT;this.maxCounter=Ye.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ye.MAX_COUNTER_LIMIT||r>Ye.MAX_COUNTER_LIMIT?`${Ye.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
856
857
  <mdc-icon
857
- class="mdc-badge-icon ${ro({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
858
+ class="mdc-badge-icon ${Ft({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
858
859
  name="${A(e)}"
859
- size="${Be.ICON_SIZE}"
860
+ size="${Ye.ICON_SIZE}"
860
861
  ></mdc-icon>
861
- `}getBadgeDot(){return h`<div class="mdc-badge-dot ${ro({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
862
+ `}getBadgeDot(){return h`<div class="mdc-badge-dot ${Ft({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
862
863
  <mdc-text
863
864
  type="${_.BODY_SMALL_MEDIUM}"
864
865
  tagname="${w.DIV}"
865
- class="mdc-badge-text ${ro({"mdc-badge-overlay":this.overlay})}"
866
+ class="mdc-badge-text ${Ft({"mdc-badge-overlay":this.overlay})}"
866
867
  >
867
868
  ${this.getCounterText(this.maxCounter,this.counter)}
868
869
  </mdc-text>
869
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(io).includes(this.variant)&&(this.variant=Be.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Ne.ICON:return this.getBadgeIcon(e||"",i);case Ne.COUNTER:return this.getBadgeCounterText();case Ne.SUCCESS:return this.getBadgeIcon(oo.SUCCESS_ICON_NAME,br.SUCCESS);case Ne.WARNING:return this.getBadgeIcon(oo.WARNING_ICON_NAME,br.WARNING);case Ne.ERROR:return this.getBadgeIcon(oo.ERROR_ICON_NAME,br.ERROR);case Ne.DOT:default:return this.type=Ne.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Te.styles=[...y.styles,...ts],l([c({type:String,reflect:!0})],Te.prototype,"type",2),l([c({type:String,reflect:!0})],Te.prototype,"variant",2),l([c({type:Number})],Te.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Te.prototype,"maxCounter",2),l([c({type:Boolean})],Te.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Te.prototype,"ariaLabel",2);var ri=Te;ri.register(es);var Dl=ri;var $l=f`
870
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(ao).includes(this.variant)&&(this.variant=Ye.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Re.ICON:return this.getBadgeIcon(e||"",i);case Re.COUNTER:return this.getBadgeCounterText();case Re.SUCCESS:return this.getBadgeIcon(so.SUCCESS_ICON_NAME,xr.SUCCESS);case Re.WARNING:return this.getBadgeIcon(so.WARNING_ICON_NAME,xr.WARNING);case Re.ERROR:return this.getBadgeIcon(so.ERROR_ICON_NAME,xr.ERROR);case Re.DOT:default:return this.type=Re.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Te.styles=[...y.styles,...aa],l([c({type:String,reflect:!0})],Te.prototype,"type",2),l([c({type:String,reflect:!0})],Te.prototype,"variant",2),l([c({type:Number})],Te.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Te.prototype,"maxCounter",2),l([c({type:Boolean})],Te.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Te.prototype,"ariaLabel",2);var si=Te;si.register(sa);var Bl=si;var Gl=f`
870
871
  :host {
871
872
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
872
873
  --mdc-bullet-size-small: 0.25rem;
@@ -887,7 +888,7 @@
887
888
  :host([size="large"]) {
888
889
  height: var(--mdc-bullet-size-large);
889
890
  }
890
- `,rs=[$l];var os=g.constructTagName("bullet"),is={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var vr=class extends y{constructor(){super(...arguments);this.size=is.SMALL}};vr.styles=[...y.styles,...rs],l([c({type:String,reflect:!0})],vr.prototype,"size",2);var oi=vr;oi.register(os);var Pl=oi;var Ul=f`
891
+ `,na=[Gl];var la=g.constructTagName("bullet"),ca={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Er=class extends y{constructor(){super(...arguments);this.size=ca.SMALL}};Er.styles=[...y.styles,...na],l([c({type:String,reflect:!0})],Er.prototype,"size",2);var ai=Er;ai.register(la);var Yl=ai;var ql=f`
891
892
  :host {
892
893
  background-color: transparent;
893
894
  border-radius: 1.25rem;
@@ -1059,7 +1060,7 @@
1059
1060
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
1060
1061
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
1061
1062
  }
1062
- `,as=[Ul];var ss=o=>{switch(o){case xe[64]:return 2;case xe[52]:return 1.75;case xe[40]:return 1.25;default:return 1}},yr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var oe=class extends re{constructor(){super(...arguments);this.variant=Ee.VARIANT;this.size=Ee.SIZE;this.color=Ee.COLOR;this.role="button";this.typeInternal=Ee.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=`${yr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${yr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(He).includes(e)?e:Ee.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(xe).includes(e)&&!(e===xe[20]&&this.variant!==He.TERTIARY):Object.values(ur).includes(e);this.setAttribute("size",i?`${e}`:`${Ee.SIZE}`),this.iconSize=ss(e)}setColor(e){!Object.values(eo).includes(e)||this.variant===He.TERTIARY?this.setAttribute("color",`${Ee.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(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=Ut.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ut.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
1063
+ `,da=[ql];var ma=o=>{switch(o){case xe[64]:return 2;case xe[52]:return 1.75;case xe[40]:return 1.25;default:return 1}},Tr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var oe=class extends re{constructor(){super(...arguments);this.variant=Ee.VARIANT;this.size=Ee.SIZE;this.color=Ee.COLOR;this.role="button";this.typeInternal=Ee.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=`${Tr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Tr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Ge).includes(e)?e:Ee.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(xe).includes(e)&&!(e===xe[20]&&this.variant!==Ge.TERTIARY):Object.values(br).includes(e);this.setAttribute("size",i?`${e}`:`${Ee.SIZE}`),this.iconSize=ma(e)}setColor(e){!Object.values(oo).includes(e)||this.variant===Ge.TERTIARY?this.setAttribute("color",`${Ee.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(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=Ut.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ut.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
1063
1064
  ${this.prefixIcon?h` <mdc-icon
1064
1065
  name="${this.prefixIcon}"
1065
1066
  part="prefix-icon"
@@ -1075,7 +1076,7 @@
1075
1076
  length-unit="rem"
1076
1077
  >
1077
1078
  </mdc-icon>`:""}
1078
- `}};oe.styles=[...re.styles,...as],l([c({type:String,attribute:"prefix-icon",reflect:!0})],oe.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],oe.prototype,"postfixIcon",2),l([c({type:String})],oe.prototype,"variant",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String})],oe.prototype,"color",2),l([c({type:String,reflect:!0})],oe.prototype,"role",2),l([G()],oe.prototype,"typeInternal",2),l([G()],oe.prototype,"iconSize",2);var ii=oe;ii.register(hr);var Vl=ii;var D=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var H=[];for(let o=0;o<256;++o)H.push((o+256).toString(16).slice(1));function ns(o,t=0){return(H[o[t+0]]+H[o[t+1]]+H[o[t+2]]+H[o[t+3]]+"-"+H[o[t+4]]+H[o[t+5]]+"-"+H[o[t+6]]+H[o[t+7]]+"-"+H[o[t+8]]+H[o[t+9]]+"-"+H[o[t+10]]+H[o[t+11]]+H[o[t+12]]+H[o[t+13]]+H[o[t+14]]+H[o[t+15]]).toLowerCase()}var ai,Fl=new Uint8Array(16);function si(){if(!ai){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ai=crypto.getRandomValues.bind(crypto)}return ai(Fl)}var Hl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:Hl};function Bl(o,t,e){var i,a,s;if(ni.randomUUID&&!t&&!o)return ni.randomUUID();o=o||{};let r=(s=(a=o.random)!=null?a:(i=o.rng)==null?void 0:i.call(o))!=null?s:si();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 ns(r)}var at=Bl;var ie=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${at()}`}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([Gr("input")],t.prototype,"inputElement",2),t};var ls=g.constructTagName("formfieldwrapper"),V={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:V.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},st={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Gl=[C,f`
1079
+ `}};oe.styles=[...re.styles,...da],l([c({type:String,attribute:"prefix-icon",reflect:!0})],oe.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],oe.prototype,"postfixIcon",2),l([c({type:String})],oe.prototype,"variant",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String})],oe.prototype,"color",2),l([c({type:String,reflect:!0})],oe.prototype,"role",2),l([U()],oe.prototype,"typeInternal",2),l([U()],oe.prototype,"iconSize",2);var ni=oe;ni.register(gr);var Wl=ni;var D=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var B=[];for(let o=0;o<256;++o)B.push((o+256).toString(16).slice(1));function pa(o,t=0){return(B[o[t+0]]+B[o[t+1]]+B[o[t+2]]+B[o[t+3]]+"-"+B[o[t+4]]+B[o[t+5]]+"-"+B[o[t+6]]+B[o[t+7]]+"-"+B[o[t+8]]+B[o[t+9]]+"-"+B[o[t+10]]+B[o[t+11]]+B[o[t+12]]+B[o[t+13]]+B[o[t+14]]+B[o[t+15]]).toLowerCase()}var li,Xl=new Uint8Array(16);function ci(){if(!li){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");li=crypto.getRandomValues.bind(crypto)}return li(Xl)}var Zl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),di={randomUUID:Zl};function jl(o,t,e){var i,s,a;if(di.randomUUID&&!t&&!o)return di.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:ci();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 pa(r)}var st=jl;var ie=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${st()}`}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([Wr("input")],t.prototype,"inputElement",2),t};var ha=g.constructTagName("formfieldwrapper"),F={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},H={VALIDATION:F.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},at={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Kl=[C,f`
1079
1080
  :host {
1080
1081
  flex-direction: column;
1081
1082
  align-items: flex-start;
@@ -1124,22 +1125,22 @@
1124
1125
  :host([help-text-type='priority']) .mdc-help-text {
1125
1126
  color: var(--mds-color-theme-text-accent-normal);
1126
1127
  }
1127
- `],cs=Gl;var ds=o=>({[V.ERROR]:"error-legacy-badge-filled",[V.WARNING]:"warning-badge-filled",[V.SUCCESS]:"check-circle-badge-filled",[V.PRIORITY]:"priority-badge-filled",[V.DEFAULT]:""})[o]||"";var Re=class extends te(y){constructor(){super(...arguments);this.id="";this.helpTextType=F.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?h`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:h` <mdc-text
1128
- id="${F.HEADING_ID}"
1129
- tagname="${st.TAGNAME}"
1130
- type="${st.HEADER_TYPE}"
1128
+ `],ua=Kl;var fa=o=>({[F.ERROR]:"error-legacy-badge-filled",[F.WARNING]:"warning-badge-filled",[F.SUCCESS]:"check-circle-badge-filled",[F.PRIORITY]:"priority-badge-filled",[F.DEFAULT]:""})[o]||"";var Oe=class extends te(y){constructor(){super(...arguments);this.id="";this.helpTextType=H.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?h`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:h` <mdc-text
1129
+ id="${H.HEADING_ID}"
1130
+ tagname="${at.TAGNAME}"
1131
+ type="${at.HEADER_TYPE}"
1131
1132
  part="label"
1132
1133
  >${this.label}</mdc-text
1133
1134
  >`:v}renderRequiredLabel(){return this.requiredLabel?h`
1134
- <mdc-text part="required-label" tagname=${st.TAGNAME} type=${st.TYPE}>
1135
+ <mdc-text part="required-label" tagname=${at.TAGNAME} type=${at.TYPE}>
1135
1136
  (${this.requiredLabel})
1136
1137
  </mdc-text>
1137
- `:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=ds(this.helpTextType||F.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:v}renderHelpText(){return this.helpText?h`
1138
+ `:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=fa(this.helpTextType||H.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:v}renderHelpText(){return this.helpText?h`
1138
1139
  <mdc-text
1139
- id="${F.HELPER_TEXT_ID}"
1140
+ id="${H.HELPER_TEXT_ID}"
1140
1141
  part="help-text"
1141
- tagname=${st.TAGNAME}
1142
- type=${st.TYPE}
1142
+ tagname=${at.TAGNAME}
1143
+ type=${at.TYPE}
1143
1144
  >
1144
1145
  ${this.helpText}
1145
1146
  </mdc-text>
@@ -1150,7 +1151,7 @@
1150
1151
  </div>`:v}renderHelperText(){return this.helpText?h`<div class="mdc-help-text" part="mdc-help-text">
1151
1152
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1152
1153
  <slot name="help-text">${this.renderHelpText()}</slot>
1153
- </div>`:v}};Re.styles=[...y.styles,...cs],l([c({reflect:!0,type:String})],Re.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Re.prototype,"requiredLabel",2),l([c({type:String})],Re.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Re.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Re.prototype,"helpText",2);var ae=Re;var ms=g.constructTagName("checkbox"),li={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Yl=[f`
1154
+ </div>`:v}};Oe.styles=[...y.styles,...ua],l([c({reflect:!0,type:String})],Oe.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Oe.prototype,"requiredLabel",2),l([c({type:String})],Oe.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Oe.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Oe.prototype,"helpText",2);var se=Oe;var ga=g.constructTagName("checkbox"),mi={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Ql=[f`
1154
1155
  :host {
1155
1156
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1156
1157
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1254,13 +1255,13 @@
1254
1255
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
1255
1256
  }
1256
1257
  }
1257
- `,...O(!0)],ps=Yl;var nt=class extends ie(D(ae)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
1258
+ `,...O(!0)],ba=Ql;var nt=class extends ie(D(se)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
1258
1259
  ${this.renderLabel()}
1259
1260
  ${this.renderHelperText()}
1260
1261
  </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?h`
1261
1262
  <mdc-icon
1262
1263
  class="icon"
1263
- name="${this.indeterminate?li.INDETERMINATE:li.CHECKED}"
1264
+ name="${this.indeterminate?mi.INDETERMINATE:mi.CHECKED}"
1264
1265
  size="1"
1265
1266
  length-unit="rem"
1266
1267
  ></mdc-icon>
@@ -1280,14 +1281,14 @@
1280
1281
  .disabled="${this.disabled}"
1281
1282
  aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
1282
1283
  tabindex="${this.disabled?-1:0}"
1283
- aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
1284
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
1284
1285
  @change=${this.handleChange}
1285
1286
  @keydown=${this.handleKeyDown}
1286
1287
  />
1287
1288
  <div class="icon-container">${e}</div>
1288
1289
  </div>
1289
1290
  ${this.renderLabelAndHelperText()}
1290
- `}};nt.styles=[...ae.styles,...ps],l([c({type:Boolean,reflect:!0})],nt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"autofocus",2);var ci=nt;ci.register(ms);var ql=ci;var Wl=f`
1291
+ `}};nt.styles=[...se.styles,...ba],l([c({type:Boolean,reflect:!0})],nt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"autofocus",2);var pi=nt;pi.register(ga);var Jl=pi;var ec=f`
1291
1292
  :host {
1292
1293
  height: 1.5rem;
1293
1294
  gap: 0.25rem;
@@ -1295,6 +1296,7 @@
1295
1296
  border-radius: 0.25rem;
1296
1297
  border: 1px solid;
1297
1298
  cursor: pointer;
1299
+ white-space: nowrap;
1298
1300
 
1299
1301
  --mdc-chip-color: var(--mds-color-theme-text-primary-normal);
1300
1302
  --mdc-chip-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1423,15 +1425,15 @@
1423
1425
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1424
1426
  cursor: auto;
1425
1427
  }
1426
- `,hs=[C,Wl,...O()];var us=g.constructTagName("chip"),Xl={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ft={COLOR:Xl.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:lr[24],ROLE:"button"};var Ht=class extends Z(re){constructor(){super(...arguments);this.color=Ft.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Ft.ROLE,this.size=Ft.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?h`
1428
+ `,va=[C,ec,...O()];var ya=g.constructTagName("chip"),tc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ht={COLOR:tc.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:mr[24],ROLE:"button"};var Bt=class extends Z(re){constructor(){super(...arguments);this.color=Ht.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Ht.ROLE,this.size=Ht.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?h`
1427
1429
  <mdc-icon
1428
1430
  name="${this.iconName}"
1429
1431
  length-unit="rem"
1430
1432
  size="1"></mdc-icon>
1431
1433
  `:v}render(){return h`
1432
1434
  ${this.renderIcon()}
1433
- <mdc-text type="${Ft.TEXT_TYPE}" tagname="${Ft.TAG_NAME}">${this.label}</mdc-text>
1434
- `}};Ht.styles=[...y.styles,...hs],l([c({type:String,reflect:!0})],Ht.prototype,"color",2),l([c({type:String})],Ht.prototype,"label",2);var Bt=Ht;Bt.register(us);var Zl=Bt;var Ae=Math.min,X=Math.max,Er=Math.round,Tr=Math.floor,pe=o=>({x:o,y:o}),jl={left:"right",right:"left",bottom:"top",top:"bottom"},Kl={start:"end",end:"start"};function so(o,t,e){return X(o,Ae(t,e))}function lt(o,t){return typeof o=="function"?o(t):o}function Oe(o){return o.split("-")[0]}function ct(o){return o.split("-")[1]}function di(o){return o==="x"?"y":"x"}function no(o){return o==="y"?"height":"width"}function Ge(o){return["top","bottom"].includes(Oe(o))?"y":"x"}function lo(o){return di(Ge(o))}function fs(o,t,e){e===void 0&&(e=!1);let r=ct(o),i=lo(o),a=no(i),s=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=xr(s)),[s,xr(s)]}function gs(o){let t=xr(o);return[ao(o),t,ao(t)]}function ao(o){return o.replace(/start|end/g,t=>Kl[t])}function Ql(o,t,e){let r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?a:s;default:return[]}}function bs(o,t,e,r){let i=ct(o),a=Ql(Oe(o),e==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(ao)))),a}function xr(o){return o.replace(/left|right|bottom|top/g,t=>jl[t])}function Jl(o){return{top:0,right:0,bottom:0,left:0,...o}}function mi(o){return typeof o!="number"?Jl(o):{top:o,right:o,bottom:o,left:o}}function dt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function vs(o,t,e){let{reference:r,floating:i}=o,a=Ge(t),s=lo(t),n=no(s),d=Oe(t),m=a==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,x=r[n]/2-i[n]/2,b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(ct(t)){case"start":b[s]-=x*(e&&m?-1:1);break;case"end":b[s]+=x*(e&&m?-1:1);break}return b}var ys=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=e,n=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),m=await s.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=vs(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:s,elements:{reference:o,floating:t}});p=k!=null?k:p,u=N!=null?N:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=vs(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function co(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:s,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=lt(t,o),E=mi(b),I=n[x?u==="floating"?"reference":"floating":u],S=dt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(I)))==null||e?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),P=await(a.isElement==null?void 0:a.isElement(N))?await(a.getScale==null?void 0:a.getScale(N))||{x:1,y:1}:{x:1,y:1},z=dt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var xs=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:a,platform:s,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=lt(o,t)||{};if(m==null)return{};let u=mi(p),x={x:e,y:r},b=lo(i),E=no(b),T=await s.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",N=I?"clientHeight":"clientWidth",P=a.reference[E]+a.reference[b]-x[b]-a.floating[E],z=x[b]-a.reference[b],ee=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),de=ee?ee[N]:0;(!de||!await(s.isElement==null?void 0:s.isElement(ee)))&&(de=n.floating[N]||a.floating[E]);let Se=P/2-z/2,fe=de/2-T[E]/2-1,me=Ae(u[S],fe),ze=Ae(u[k],fe),ge=me,De=de-T[E]-ze,q=de/2-T[E]/2+Se,Ct=so(ge,q,De),_e=!d.arrow&&ct(i)!=null&&q!==Ct&&a.reference[E]/2-(q<ge?me:ze)-T[E]/2<0,be=_e?q<ge?q-ge:q-De:0;return{[b]:x[b]+be,data:{[b]:Ct,centerOffset:q-Ct-be,..._e&&{alignmentOffset:be}},reset:_e}}});var Es=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:a,rects:s,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=lt(o,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Oe(i),k=Ge(n),N=Oe(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[xr(n)]:gs(n)),ee=E!=="none";!x&&ee&&z.push(...bs(n,T,E,P));let de=[n,...z],Se=await co(t,I),fe=[],me=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Se[S]),u){let q=fs(i,s,P);fe.push(Se[q[0]],Se[q[1]])}if(me=[...me,{placement:i,overflows:fe}],!fe.every(q=>q<=0)){var ze,ge;let q=(((ze=a.flip)==null?void 0:ze.index)||0)+1,Ct=de[q];if(Ct)return{data:{index:q,overflows:me},reset:{placement:Ct}};let _e=(ge=me.filter(be=>be.overflows[0]<=0).sort((be,$e)=>be.overflows[1]-$e.overflows[1])[0])==null?void 0:ge.placement;if(!_e)switch(b){case"bestFit":{var De;let be=(De=me.filter($e=>{if(ee){let Pe=Ge($e.placement);return Pe===k||Pe==="y"}return!0}).map($e=>[$e.placement,$e.overflows.filter(Pe=>Pe>0).reduce((Pe,tl)=>Pe+tl,0)]).sort(($e,Pe)=>$e[1]-Pe[1])[0])==null?void 0:De[0];be&&(_e=be);break}case"initialPlacement":_e=n;break}if(i!==_e)return{reset:{placement:_e}}}return{}}}};async function ec(o,t){let{placement:e,platform:r,elements:i}=o,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Oe(e),n=ct(e),d=Ge(e)==="y",m=["left","top"].includes(s)?-1:1,p=a&&d?-1:1,u=lt(t,o),{mainAxis:x,crossAxis:b,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"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var Ts=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:a,placement:s,middlewareData:n}=t,d=await ec(t,o);return s===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},As=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=lt(o,t),m={x:e,y:r},p=await co(t,d),u=Ge(Oe(i)),x=di(u),b=m[x],E=m[u];if(a){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],N=b-p[S];b=so(k,b,N)}if(s){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],N=E-p[S];E=so(k,E,N)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[u]:s}}}}}};var Ss=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:a,platform:s,elements:n}=t,{apply:d=()=>{},...m}=lt(o,t),p=await co(t,m),u=Oe(i),x=ct(i),b=Ge(i)==="y",{width:E,height:T}=a.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,N=E-p.left-p.right,P=Ae(T-p[I],k),z=Ae(E-p[S],N),ee=!t.middlewareData.shift,de=P,Se=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Se=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=k),ee&&!x){let me=X(p.left,0),ze=X(p.right,0),ge=X(p.top,0),De=X(p.bottom,0);b?Se=E-2*(me!==0||ze!==0?me+ze:X(p.left,p.right)):de=T-2*(ge!==0||De!==0?ge+De:X(p.top,p.bottom))}await d({...t,availableWidth:Se,availableHeight:de});let fe=await s.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function mo(){return typeof window<"u"}function mt(o){return Is(o)?(o.nodeName||"").toLowerCase():"#document"}function j(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Is(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Is(o){return mo()?o instanceof Node||o instanceof j(o).Node:!1}function se(o){return mo()?o instanceof Element||o instanceof j(o).Element:!1}function ue(o){return mo()?o instanceof HTMLElement||o instanceof j(o).HTMLElement:!1}function _s(o){return!mo()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof j(o).ShadowRoot}function Yt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function ks(o){return["table","td","th"].includes(mt(o))}function Ar(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function po(o){let t=ho(),e=se(o)?ne(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Cs(o){let t=Me(o);for(;ue(t)&&!pt(t);){if(po(t))return t;if(Ar(t))return null;t=Me(t)}return null}function ho(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(o){return["html","body","#document"].includes(mt(o))}function ne(o){return j(o).getComputedStyle(o)}function Sr(o){return se(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Me(o){if(mt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||_s(o)&&o.host||he(o);return _s(t)?t.host:t}function ws(o){let t=Me(o);return pt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&Yt(t)?t:ws(t)}function Gt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ws(o),a=i===((r=o.ownerDocument)==null?void 0:r.body),s=j(i);if(a){let n=uo(s);return t.concat(s,s.visualViewport||[],Yt(i)?i:[],n&&e?Gt(n):[])}return t.concat(i,Gt(i,[],e))}function uo(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Rs(o){let t=ne(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ue(o),a=i?o.offsetWidth:e,s=i?o.offsetHeight:r,n=Er(e)!==a||Er(r)!==s;return n&&(e=a,r=s),{width:e,height:r,$:n}}function hi(o){return se(o)?o:o.contextElement}function qt(o){let t=hi(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:a}=Rs(t),s=(a?Er(e.width):e.width)/r,n=(a?Er(e.height):e.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var tc=pe(0);function Os(o){let t=j(o);return!ho()||!t.visualViewport?tc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rc(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==j(o)?!1:t}function ht(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),a=hi(o),s=pe(1);t&&(r?se(r)&&(s=qt(r)):s=qt(o));let n=rc(a,e,r)?Os(a):pe(0),d=(i.left+n.x)/s.x,m=(i.top+n.y)/s.y,p=i.width/s.x,u=i.height/s.y;if(a){let x=j(a),b=r&&se(r)?j(r):r,E=x,T=uo(E);for(;T&&r&&b!==E;){let I=qt(T),S=T.getBoundingClientRect(),k=ne(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=N,m+=P,E=j(T),T=uo(E)}}return dt({width:p,height:u,x:d,y:m})}function ui(o,t){let e=Sr(o).scrollLeft;return t?t.left+e:ht(he(o)).left+e}function Ms(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:ui(o,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function oc(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,a=i==="fixed",s=he(r),n=t?Ar(t.floating):!1;if(r===s||n&&a)return e;let d={scrollLeft:0,scrollTop:0},m=pe(1),p=pe(0),u=ue(r);if((u||!u&&!a)&&((mt(r)!=="body"||Yt(s))&&(d=Sr(r)),ue(r))){let b=ht(r);m=qt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=s&&!u&&!a?Ms(s,d,!0):pe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+p.x+x.x,y:e.y*m.y-d.scrollTop*m.y+p.y+x.y}}function ic(o){return Array.from(o.getClientRects())}function ac(o){let t=he(o),e=Sr(o),r=o.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+ui(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(s+=X(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:n}}function sc(o,t){let e=j(o),r=he(o),i=e.visualViewport,a=r.clientWidth,s=r.clientHeight,n=0,d=0;if(i){a=i.width,s=i.height;let m=ho();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:n,y:d}}function nc(o,t){let e=ht(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,a=ue(o)?qt(o):pe(1),s=o.clientWidth*a.x,n=o.clientHeight*a.y,d=i*a.x,m=r*a.y;return{width:s,height:n,x:d,y:m}}function Ls(o,t,e){let r;if(t==="viewport")r=sc(o,e);else if(t==="document")r=ac(he(o));else if(se(t))r=nc(t,e);else{let i=Os(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dt(r)}function zs(o,t){let e=Me(o);return e===t||!se(e)||pt(e)?!1:ne(e).position==="fixed"||zs(e,t)}function lc(o,t){let e=t.get(o);if(e)return e;let r=Gt(o,[],!1).filter(n=>se(n)&&mt(n)!=="body"),i=null,a=ne(o).position==="fixed",s=a?Me(o):o;for(;se(s)&&!pt(s);){let n=ne(s),d=po(s);!d&&n.position==="fixed"&&(i=null),(a?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yt(s)&&!d&&zs(o,s))?r=r.filter(p=>p!==s):i=n,s=Me(s)}return t.set(o,r),r}function cc(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,s=[...e==="clippingAncestors"?Ar(t)?[]:lc(t,this._c):[].concat(e),r],n=s[0],d=s.reduce((m,p)=>{let u=Ls(t,p,i);return m.top=X(u.top,m.top),m.right=Ae(u.right,m.right),m.bottom=Ae(u.bottom,m.bottom),m.left=X(u.left,m.left),m},Ls(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function dc(o){let{width:t,height:e}=Rs(o);return{width:t,height:e}}function mc(o,t,e){let r=ue(t),i=he(t),a=e==="fixed",s=ht(o,!0,a,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!a)if((mt(t)!=="body"||Yt(i))&&(n=Sr(t)),r){let x=ht(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=ui(i));let m=i&&!r&&!a?Ms(i,n):pe(0),p=s.left+n.scrollLeft-d.x-m.x,u=s.top+n.scrollTop-d.y-m.y;return{x:p,y:u,width:s.width,height:s.height}}function pi(o){return ne(o).position==="static"}function Ns(o,t){if(!ue(o)||ne(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return he(o)===e&&(e=e.ownerDocument.body),e}function Ds(o,t){let e=j(o);if(Ar(o))return e;if(!ue(o)){let i=Me(o);for(;i&&!pt(i);){if(se(i)&&!pi(i))return i;i=Me(i)}return e}let r=Ns(o,t);for(;r&&ks(r)&&pi(r);)r=Ns(r,t);return r&&pt(r)&&pi(r)&&!po(r)?e:r||Cs(o)||e}var pc=async function(o){let t=this.getOffsetParent||Ds,e=this.getDimensions,r=await e(o.floating);return{reference:mc(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hc(o){return ne(o).direction==="rtl"}var uc={convertOffsetParentRelativeRectToViewportRelativeRect:oc,getDocumentElement:he,getClippingRect:cc,getOffsetParent:Ds,getElementRects:pc,getClientRects:ic,getDimensions:dc,getScale:qt,isElement:se,isRTL:hc};function fc(o,t){let e=null,r,i=he(o);function a(){var n;clearTimeout(r),(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:p,width:u,height:x}=o.getBoundingClientRect();if(n||t(),!u||!x)return;let b=Tr(p),E=Tr(i.clientWidth-(m+u)),T=Tr(i.clientHeight-(p+x)),I=Tr(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:X(0,Ae(1,d))||1},N=!0;function P(z){let ee=z[0].intersectionRatio;if(ee!==d){if(!N)return s();ee?s(!1,ee):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return s(!0),a}function $s(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=hi(o),p=i||a?[...m?Gt(m):[],...Gt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=m&&n?fc(m,e):null,x=-1,b=null;s&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?ht(o):null;d&&I();function I(){let S=ht(o);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;p.forEach(k=>{i&&k.removeEventListener("scroll",e),a&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Ps=Ts;var Us=As,Vs=Es,Fs=Ss;var Hs=xs;var Bs=(o,t,e)=>{let r=new Map,i={platform:uc,...e},a={...i.platform,_c:r};return ys(o,t,{...i,platform:a})};var gc=f`
1435
+ <mdc-text type="${Ht.TEXT_TYPE}" tagname="${Ht.TAG_NAME}">${this.label}</mdc-text>
1436
+ `}};Bt.styles=[...y.styles,...va],l([c({type:String,reflect:!0})],Bt.prototype,"color",2),l([c({type:String})],Bt.prototype,"label",2);var Gt=Bt;Gt.register(ya);var rc=Gt;var Ae=Math.min,X=Math.max,Sr=Math.round,_r=Math.floor,pe=o=>({x:o,y:o}),oc={left:"right",right:"left",bottom:"top",top:"bottom"},ic={start:"end",end:"start"};function lo(o,t,e){return X(o,Ae(t,e))}function lt(o,t){return typeof o=="function"?o(t):o}function Me(o){return o.split("-")[0]}function ct(o){return o.split("-")[1]}function hi(o){return o==="x"?"y":"x"}function co(o){return o==="y"?"height":"width"}function qe(o){return["top","bottom"].includes(Me(o))?"y":"x"}function mo(o){return hi(qe(o))}function xa(o,t,e){e===void 0&&(e=!1);let r=ct(o),i=mo(o),s=co(i),a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ar(a)),[a,Ar(a)]}function Ea(o){let t=Ar(o);return[no(o),t,no(t)]}function no(o){return o.replace(/start|end/g,t=>ic[t])}function sc(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:a;default:return[]}}function Ta(o,t,e,r){let i=ct(o),s=sc(Me(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(no)))),s}function Ar(o){return o.replace(/left|right|bottom|top/g,t=>oc[t])}function ac(o){return{top:0,right:0,bottom:0,left:0,...o}}function ui(o){return typeof o!="number"?ac(o):{top:o,right:o,bottom:o,left:o}}function dt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Aa(o,t,e){let{reference:r,floating:i}=o,s=qe(t),a=mo(t),n=co(a),d=Me(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,x=r[n]/2-i[n]/2,b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(ct(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var Sa=async(o,t,e)=>{let{placement:r="bottom",strategy:i="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:o,floating:t,strategy:i}),{x:p,y:u}=Aa(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=N!=null?N:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=Aa(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function po(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:a,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=lt(t,o),E=ui(b),I=n[x?u==="floating"?"reference":"floating":u],S=dt(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:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=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=dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var _a=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=lt(o,t)||{};if(m==null)return{};let u=ui(p),x={x:e,y:r},b=mo(i),E=co(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",N=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],ee=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),de=ee?ee[N]:0;(!de||!await(a.isElement==null?void 0:a.isElement(ee)))&&(de=n.floating[N]||s.floating[E]);let Se=P/2-z/2,fe=de/2-T[E]/2-1,me=Ae(u[S],fe),$e=Ae(u[k],fe),ge=me,Pe=de-T[E]-$e,q=de/2-T[E]/2+Se,Ct=lo(ge,q,Pe),_e=!d.arrow&&ct(i)!=null&&q!==Ct&&s.reference[E]/2-(q<ge?me:$e)-T[E]/2<0,be=_e?q<ge?q-ge:q-Pe:0;return{[b]:x[b]+be,data:{[b]:Ct,centerOffset:q-Ct-be,..._e&&{alignmentOffset:be}},reset:_e}}});var Ia=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=lt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Me(i),k=qe(n),N=Me(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[Ar(n)]:Ea(n)),ee=E!=="none";!x&&ee&&z.push(...Ta(n,T,E,P));let de=[n,...z],Se=await po(t,I),fe=[],me=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Se[S]),u){let q=xa(i,a,P);fe.push(Se[q[0]],Se[q[1]])}if(me=[...me,{placement:i,overflows:fe}],!fe.every(q=>q<=0)){var $e,ge;let q=((($e=s.flip)==null?void 0:$e.index)||0)+1,Ct=de[q];if(Ct)return{data:{index:q,overflows:me},reset:{placement:Ct}};let _e=(ge=me.filter(be=>be.overflows[0]<=0).sort((be,Ue)=>be.overflows[1]-Ue.overflows[1])[0])==null?void 0:ge.placement;if(!_e)switch(b){case"bestFit":{var Pe;let be=(Pe=me.filter(Ue=>{if(ee){let Ve=qe(Ue.placement);return Ve===k||Ve==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(Ve=>Ve>0).reduce((Ve,ll)=>Ve+ll,0)]).sort((Ue,Ve)=>Ue[1]-Ve[1])[0])==null?void 0:Pe[0];be&&(_e=be);break}case"initialPlacement":_e=n;break}if(i!==_e)return{reset:{placement:_e}}}return{}}}};async function nc(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Me(e),n=ct(e),d=qe(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=lt(t,o),{mainAxis:x,crossAxis:b,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"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var ka=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:a,middlewareData:n}=t,d=await nc(t,o);return a===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:a}}}}},Ca=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=lt(o,t),m={x:e,y:r},p=await po(t,d),u=qe(Me(i)),x=hi(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],N=b-p[S];b=lo(k,b,N)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],N=E-p[S];E=lo(k,E,N)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var wa=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=lt(o,t),p=await po(t,m),u=Me(i),x=ct(i),b=qe(i)==="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-p.top-p.bottom,N=E-p.left-p.right,P=Ae(T-p[I],k),z=Ae(E-p[S],N),ee=!t.middlewareData.shift,de=P,Se=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Se=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=k),ee&&!x){let me=X(p.left,0),$e=X(p.right,0),ge=X(p.top,0),Pe=X(p.bottom,0);b?Se=E-2*(me!==0||$e!==0?me+$e:X(p.left,p.right)):de=T-2*(ge!==0||Pe!==0?ge+Pe:X(p.top,p.bottom))}await d({...t,availableWidth:Se,availableHeight:de});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function ho(){return typeof window<"u"}function mt(o){return Na(o)?(o.nodeName||"").toLowerCase():"#document"}function j(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Na(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Na(o){return ho()?o instanceof Node||o instanceof j(o).Node:!1}function ae(o){return ho()?o instanceof Element||o instanceof j(o).Element:!1}function ue(o){return ho()?o instanceof HTMLElement||o instanceof j(o).HTMLElement:!1}function La(o){return!ho()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof j(o).ShadowRoot}function qt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function Ra(o){return["table","td","th"].includes(mt(o))}function Ir(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function uo(o){let t=fo(),e=ae(o)?ne(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Oa(o){let t=ze(o);for(;ue(t)&&!pt(t);){if(uo(t))return t;if(Ir(t))return null;t=ze(t)}return null}function fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(o){return["html","body","#document"].includes(mt(o))}function ne(o){return j(o).getComputedStyle(o)}function kr(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function ze(o){if(mt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||La(o)&&o.host||he(o);return La(t)?t.host:t}function Ma(o){let t=ze(o);return pt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&qt(t)?t:Ma(t)}function Yt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Ma(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=j(i);if(s){let n=go(a);return t.concat(a,a.visualViewport||[],qt(i)?i:[],n&&e?Yt(n):[])}return t.concat(i,Yt(i,[],e))}function go(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function $a(o){let t=ne(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ue(o),s=i?o.offsetWidth:e,a=i?o.offsetHeight:r,n=Sr(e)!==s||Sr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function gi(o){return ae(o)?o:o.contextElement}function Wt(o){let t=gi(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=$a(t),a=(s?Sr(e.width):e.width)/r,n=(s?Sr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var lc=pe(0);function Pa(o){let t=j(o);return!fo()||!t.visualViewport?lc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cc(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==j(o)?!1:t}function ht(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=gi(o),a=pe(1);t&&(r?ae(r)&&(a=Wt(r)):a=Wt(o));let n=cc(s,e,r)?Pa(s):pe(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=j(s),b=r&&ae(r)?j(r):r,E=x,T=go(E);for(;T&&r&&b!==E;){let I=Wt(T),S=T.getBoundingClientRect(),k=ne(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=N,m+=P,E=j(T),T=go(E)}}return dt({width:p,height:u,x:d,y:m})}function bi(o,t){let e=kr(o).scrollLeft;return t?t.left+e:ht(he(o)).left+e}function Ua(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:bi(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function dc(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",a=he(r),n=t?Ir(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=pe(1),p=pe(0),u=ue(r);if((u||!u&&!s)&&((mt(r)!=="body"||qt(a))&&(d=kr(r)),ue(r))){let b=ht(r);m=Wt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ua(a,d,!0):pe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+p.x+x.x,y:e.y*m.y-d.scrollTop*m.y+p.y+x.y}}function mc(o){return Array.from(o.getClientRects())}function pc(o){let t=he(o),e=kr(o),r=o.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+bi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=X(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function hc(o,t){let e=j(o),r=he(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=fo();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function uc(o,t){let e=ht(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ue(o)?Wt(o):pe(1),a=o.clientWidth*s.x,n=o.clientHeight*s.y,d=i*s.x,m=r*s.y;return{width:a,height:n,x:d,y:m}}function za(o,t,e){let r;if(t==="viewport")r=hc(o,e);else if(t==="document")r=pc(he(o));else if(ae(t))r=uc(t,e);else{let i=Pa(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dt(r)}function Va(o,t){let e=ze(o);return e===t||!ae(e)||pt(e)?!1:ne(e).position==="fixed"||Va(e,t)}function fc(o,t){let e=t.get(o);if(e)return e;let r=Yt(o,[],!1).filter(n=>ae(n)&&mt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?ze(o):o;for(;ae(a)&&!pt(a);){let n=ne(a),d=uo(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qt(a)&&!d&&Va(o,a))?r=r.filter(p=>p!==a):i=n,a=ze(a)}return t.set(o,r),r}function gc(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Ir(t)?[]:fc(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=za(t,p,i);return m.top=X(u.top,m.top),m.right=Ae(u.right,m.right),m.bottom=Ae(u.bottom,m.bottom),m.left=X(u.left,m.left),m},za(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function bc(o){let{width:t,height:e}=$a(o);return{width:t,height:e}}function vc(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=ht(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((mt(t)!=="body"||qt(i))&&(n=kr(t)),r){let x=ht(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=bi(i));let m=i&&!r&&!s?Ua(i,n):pe(0),p=a.left+n.scrollLeft-d.x-m.x,u=a.top+n.scrollTop-d.y-m.y;return{x:p,y:u,width:a.width,height:a.height}}function fi(o){return ne(o).position==="static"}function Da(o,t){if(!ue(o)||ne(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return he(o)===e&&(e=e.ownerDocument.body),e}function Fa(o,t){let e=j(o);if(Ir(o))return e;if(!ue(o)){let i=ze(o);for(;i&&!pt(i);){if(ae(i)&&!fi(i))return i;i=ze(i)}return e}let r=Da(o,t);for(;r&&Ra(r)&&fi(r);)r=Da(r,t);return r&&pt(r)&&fi(r)&&!uo(r)?e:r||Oa(o)||e}var yc=async function(o){let t=this.getOffsetParent||Fa,e=this.getDimensions,r=await e(o.floating);return{reference:vc(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xc(o){return ne(o).direction==="rtl"}var Ec={convertOffsetParentRelativeRectToViewportRelativeRect:dc,getDocumentElement:he,getClippingRect:gc,getOffsetParent:Fa,getElementRects:yc,getClientRects:mc,getDimensions:bc,getScale:Wt,isElement:ae,isRTL:xc};function Tc(o,t){let e=null,r,i=he(o);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:p,width:u,height:x}=o.getBoundingClientRect();if(n||t(),!u||!x)return;let b=_r(p),E=_r(i.clientWidth-(m+u)),T=_r(i.clientHeight-(p+x)),I=_r(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:X(0,Ae(1,d))||1},N=!0;function P(z){let ee=z[0].intersectionRatio;if(ee!==d){if(!N)return a();ee?a(!1,ee):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function Ha(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=gi(o),p=i||s?[...m?Yt(m):[],...Yt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?Tc(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?ht(o):null;d&&I();function I(){let S=ht(o);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;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Ba=ka;var Ga=Ca,Ya=Ia,qa=wa;var Wa=_a;var Xa=(o,t,e)=>{let r=new Map,i={platform:Ec,...e},s={...i.platform,_c:r};return Sa(o,t,{...i,platform:s})};var Ac=f`
1435
1437
  :host {
1436
1438
  --mdc-popover-arrow-border-radius: 0.1875rem;
1437
1439
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1534,7 +1536,7 @@
1534
1536
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1535
1537
  border-bottom-left-radius: 100%;
1536
1538
  }
1537
- `,Gs=[gc];var Ys=g.constructTagName("popover"),ut={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"},_r={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Ir={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:ut.BOTTOM,TRIGGER:_r.CLICK,COLOR:Ir.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 qs=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:a,height:s}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+s+a===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:a,opacity:s,visibility:n}=i.style;return a==="none"||s==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let a=getComputedStyle(i);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,a=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&a.add(i),Array.from(i.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(p=>{p instanceof HTMLElement&&this.findFocusable(p,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,a){let{length:s}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return a>0?0:s-1;let d=i+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 i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((a=i.shadowRoot)!=null&&a.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(i,a))}isEqualFocusNode(i,a){return i.nodeType>=0?a.isEqualNode(i)&&a===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);i?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var fi=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=[]}},ft=new fi;var gt=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 fo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.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 p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[i]?12-Math.abs(n[i]-d[i]):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:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[i]:`${-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=`
1539
+ `,Za=[Ac];var ja=g.constructTagName("popover"),ut={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"},Cr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},wr={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:ut.BOTTOM,TRIGGER:Cr.CLICK,COLOR:wr.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 Ka=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:a}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+a+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:a,visibility:n}=i.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.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(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(d,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return s>0?0:a-1;let d=i+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 i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var vi=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=[]}},ft=new vi;var gt=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 bo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=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=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}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 p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:s,y:a}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[i]?12-Math.abs(n[i]-d[i]):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`:"",[i]:`${-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=`
1538
1540
  .popover-backdrop {
1539
1541
  position: fixed;
1540
1542
  top: 0;
@@ -1544,7 +1546,7 @@
1544
1546
  background: transparent;
1545
1547
  z-index: ${this.popover.zIndex-1};
1546
1548
  }
1547
- `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends qs(y){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.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(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let a=this.backdropElement?i.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{ft.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 fo(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}`,gt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),gt.onDestroyedPopover(this),ft.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(ut).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(a=>Object.values(_r).includes(a));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Ir).includes(this.color)?this.color:R.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 i,a,s;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.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"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.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()),gt.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=[Us()],r=this.offset;if(this.flip&&e.push(Vs()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(Fs({apply({availableHeight:a}){i&&Object.assign(i.style,{maxHeight:`${a}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Hs({element:this.arrowElement,padding:12}))}e.push(Ps(r)),$s(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:a,middlewareData:s,placement:n}=await Bs(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return h`
1549
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Ka(y){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.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(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.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=()=>{ft.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new bo(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,gt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),gt.onDestroyedPopover(this),ft.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(ut).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Cr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(wr).includes(this.color)?this.color:R.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 i,s,a;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.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"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.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()),gt.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=[Ga()],r=this.offset;if(this.flip&&e.push(Ya()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(qa({apply({availableHeight:s}){i&&Object.assign(i.style,{maxHeight:`${s}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Wa({element:this.arrowElement,padding:12}))}e.push(Ba(r)),Ha(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await Xa(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),a.arrow&&this.arrowElement&&this.utils.updateArrowStyle(a.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return h`
1548
1550
  <div class="popover-hover-bridge"></div>
1549
1551
  ${this.closeButton?h` <mdc-button
1550
1552
  class="popover-close"
@@ -1558,7 +1560,7 @@
1558
1560
  <div part="popover-content">
1559
1561
  <slot></slot>
1560
1562
  </div>
1561
- `}};L.styles=[...y.styles,...Gs],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 Ye=L;var Ws=g.constructTagName("coachmark"),bt={COLOR:Ir.CONTRAST,TRIGGER:_r.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends Ye{constructor(){super(...arguments);this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var gi=vt;gi.register(Ws);var bc=gi;var Xs=g.constructTagName("divider"),kr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},bi={SOLID:"solid",GRADIENT:"gradient"},qe={POSITIVE:"positive",NEGATIVE:"negative"},Cr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:kr.HORIZONTAL,VARIANT:bi.SOLID,ARROW_DIRECTION:qe.NEGATIVE,BUTTON_DIRECTION:qe.NEGATIVE};var vc=[C,f`
1563
+ `}};L.styles=[...y.styles,...Za],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 We=L;var Qa=g.constructTagName("coachmark"),bt={COLOR:wr.CONTRAST,TRIGGER:Cr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends We{constructor(){super(...arguments);this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var yi=vt;yi.register(Qa);var Sc=yi;var Ja=g.constructTagName("divider"),Lr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},xi={SOLID:"solid",GRADIENT:"gradient"},Xe={POSITIVE:"positive",NEGATIVE:"negative"},Nr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:Lr.HORIZONTAL,VARIANT:xi.SOLID,ARROW_DIRECTION:Xe.NEGATIVE,BUTTON_DIRECTION:Xe.NEGATIVE};var _c=[C,f`
1562
1564
  :host {
1563
1565
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1564
1566
  --mdc-divider-width: 0.0625rem;
@@ -1769,11 +1771,11 @@
1769
1771
  font-size: var(--mdc-divider-text-size);
1770
1772
  line-height: var(--mdc-divider-text-line-height);
1771
1773
  }
1772
- `],Zs=vc;var We=class extends y{constructor(){super(...arguments);this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(bi).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(kr).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===kr.HORIZONTAL?qe.NEGATIVE:qe.POSITIVE;Object.values(qe).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(qe).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===kr.HORIZONTAL,r=this.arrowDirection===qe.POSITIVE;return e?r?Cr.UP:Cr.DOWN:r?Cr.RIGHT:Cr.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(n=>n.tagName===cr.toUpperCase()),a=r.some(n=>n.tagName===hr.toUpperCase());i&&!a?this.setAttribute("data-type","mdc-text-divider"):!i&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return h`
1774
+ `],en=_c;var Ze=class extends y{constructor(){super(...arguments);this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(xi).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Lr).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Lr.HORIZONTAL?Xe.NEGATIVE:Xe.POSITIVE;Object.values(Xe).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Xe).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===Lr.HORIZONTAL,r=this.arrowDirection===Xe.POSITIVE;return e?r?Nr.UP:Nr.DOWN:r?Nr.RIGHT:Nr.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 i=r.some(n=>n.tagName===pr.toUpperCase()),s=r.some(n=>n.tagName===gr.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return h`
1773
1775
  <div></div>
1774
1776
  <slot @slotchange=${this.inferDividerType}></slot>
1775
1777
  <div></div>
1776
- `}};We.styles=[...y.styles,...Zs],l([c({type:String,reflect:!0})],We.prototype,"orientation",2),l([c({type:String,reflect:!0})],We.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],We.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],We.prototype,"buttonPosition",2);var vi=We;vi.register(Xs);var yc=vi;var xc=f`
1778
+ `}};Ze.styles=[...y.styles,...en],l([c({type:String,reflect:!0})],Ze.prototype,"orientation",2),l([c({type:String,reflect:!0})],Ze.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],Ze.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],Ze.prototype,"buttonPosition",2);var Ei=Ze;Ei.register(Ja);var Ic=Ei;var kc=f`
1777
1779
  :host([selected]){
1778
1780
  border: 2px solid;
1779
1781
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -1793,7 +1795,7 @@
1793
1795
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1794
1796
  cursor: auto;
1795
1797
  }
1796
- `,js=[xc];var Ks=g.constructTagName("filterchip"),yi={ICON_NAME:"check-bold",COLOR:"default"};var wr=class extends Bt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=yi.COLOR}setSelected(e){e?(this.iconName=yi.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)}};wr.styles=[...Bt.styles,...js],l([c({type:Boolean,reflect:!0})],wr.prototype,"selected",2);var xi=wr;xi.register(Ks);var Ec=xi;var Qs=g.constructTagName("formfieldgroup"),Ei={RADIOGROUP:"radiogroup",GROUP:"group"};var Tc=f`
1798
+ `,tn=[kc];var rn=g.constructTagName("filterchip"),Ti={ICON_NAME:"check-bold",COLOR:"default"};var Rr=class extends Gt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ti.COLOR}setSelected(e){e?(this.iconName=Ti.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)}};Rr.styles=[...Gt.styles,...tn],l([c({type:Boolean,reflect:!0})],Rr.prototype,"selected",2);var Ai=Rr;Ai.register(rn);var Cc=Ai;var on=g.constructTagName("formfieldgroup"),Si={RADIOGROUP:"radiogroup",GROUP:"group"};var wc=f`
1797
1799
 
1798
1800
  :host::part(container) {
1799
1801
  display: flex;
@@ -1810,12 +1812,12 @@
1810
1812
  :host::part(label-text){
1811
1813
  font-weight: bold;
1812
1814
  }
1813
- `,Js=[Tc];var go=class extends D(ae){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 h`
1815
+ `,sn=[wc];var vo=class extends D(se){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 h`
1814
1816
  <div
1815
1817
  part="container"
1816
- role="${this.isRadio?Ei.RADIOGROUP:Ei.GROUP}"
1817
- aria-labelledby="${F.HEADING_ID}"
1818
- aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
1818
+ role="${this.isRadio?Si.RADIOGROUP:Si.GROUP}"
1819
+ aria-labelledby="${H.HEADING_ID}"
1820
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
1819
1821
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1820
1822
  >
1821
1823
  <div part="group-header">
@@ -1824,7 +1826,7 @@
1824
1826
  </div>
1825
1827
  <slot></slot>
1826
1828
  </div>
1827
- `}};go.styles=[...ae.styles,...Js];var Ti=go;Ti.register(Qs);var bo=Ti;dr.register(jr);var Ac=dr;var Sc=[f`
1829
+ `}};vo.styles=[...se.styles,...sn];var _i=vo;_i.register(on);var yo=_i;hr.register(Jr);var Lc=hr;var Nc=[f`
1828
1830
  :host{
1829
1831
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1830
1832
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1864,6 +1866,7 @@
1864
1866
  background: var(--mdc-input-disabled-background-color);
1865
1867
  }
1866
1868
 
1869
+ :host([disabled]) .input-container,
1867
1870
  :host([disabled][help-text-type="default"]) .input-container,
1868
1871
  :host([disabled][help-text-type="success"]) .input-container,
1869
1872
  :host([disabled][help-text-type="warning"]) .input-container,
@@ -1939,81 +1942,79 @@
1939
1942
  opacity: 0;
1940
1943
  pointer-events: none;
1941
1944
  }
1942
- `,...O(!0)],en=Sc;ae.register(ls);var le=ae;var tn=g.constructTagName("input"),vo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},rn={MAX_LENGTH:10,VALIDATION:V.ERROR},Xe={VALIDATION:V.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:He.TERTIARY,CLEAR_BUTTON_SIZE:xe[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN};var $=class extends ie(D(le)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=vo.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?h`
1945
+ `,...O(!0)],an=Nc;se.register(ha);var le=se;var nn=g.constructTagName("input"),xo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ii={OFF:"off",ON:"on"},ki={TEXT:"text",SEARCH:"search"},ln={MAX_LENGTH:10,VALIDATION:F.ERROR},De={VALIDATION:F.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ge.TERTIARY,CLEAR_BUTTON_SIZE:xe[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN,AUTO_COMPLETE:Ii.OFF,INPUT_TYPE:ki.TEXT};var $=class extends ie(D(le)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=xo.OFF;this.autocomplete=Ii.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,i){super.attributeChangedCallback(e,r,i),["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?h`
1943
1946
  <mdc-icon
1944
1947
  class="leading-icon"
1945
1948
  part="leading-icon"
1946
1949
  name=${this.leadingIcon}
1947
- size="${Xe.ICON_SIZE_VALUE}"
1948
- length-unit="${Xe.ICON_SIZE_UNIT}">
1950
+ size="${De.ICON_SIZE_VALUE}"
1951
+ length-unit="${De.ICON_SIZE_UNIT}">
1949
1952
  </mdc-icon>
1950
1953
  `:v}renderPrefixText(){return this.prefixText?h`
1951
1954
  <mdc-text
1952
1955
  class="prefix-text"
1953
- tagname="${Xe.PREFIX_TEXT_TAG}"
1954
- type="${Xe.PREFIX_TEXT_TYPE}"
1956
+ tagname="${De.PREFIX_TEXT_TAG}"
1957
+ type="${De.PREFIX_TEXT_TYPE}"
1955
1958
  aria-hidden="true"
1956
1959
  >
1957
- ${this.prefixText.slice(0,rn.MAX_LENGTH)}
1960
+ ${this.prefixText.slice(0,ln.MAX_LENGTH)}
1958
1961
  </mdc-text>
1959
- `:v}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?h`
1962
+ `:v}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return!this.trailingButton||!this.value?v:h`
1960
1963
  <mdc-button
1961
1964
  part='trailing-button'
1962
1965
  class='own-focus-ring ${this.value?"":"hidden"}'
1963
- prefix-icon='${Xe.CLEAR_BUTTON_ICON}'
1964
- variant='${Xe.CLEAR_BUTTON_VARIANT}'
1965
- size="${Xe.CLEAR_BUTTON_SIZE}"
1966
+ prefix-icon='${De.CLEAR_BUTTON_ICON}'
1967
+ variant='${De.CLEAR_BUTTON_VARIANT}'
1968
+ size="${De.CLEAR_BUTTON_SIZE}"
1966
1969
  aria-label="${this.clearAriaLabel}"
1967
1970
  @click=${this.clearInputText}
1968
1971
  ?disabled=${this.disabled||this.readonly||!this.value}
1969
1972
  ></mdc-button>
1970
- `:v}render(){var e;return h`
1973
+ `}renderInputElement(e){var r;return h`<input
1974
+ aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
1975
+ class='input'
1976
+ part='input'
1977
+ id="${this.id}"
1978
+ name="${this.name}"
1979
+ .value="${this.value}"
1980
+ ?disabled="${this.disabled}"
1981
+ ?readonly="${this.readonly}"
1982
+ ?required="${!!this.requiredLabel}"
1983
+ type="${e}"
1984
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
1985
+ aria-invalid="${this.helpTextType==="error"?"true":"false"}"
1986
+ placeholder=${A(this.placeholder)}
1987
+ minlength=${A(this.minlength)}
1988
+ maxlength=${A(this.maxlength)}
1989
+ autocapitalize=${this.autocapitalize}
1990
+ autocomplete=${this.autocomplete}
1991
+ ?autofocus="${this.autofocus}"
1992
+ dirname=${A(this.dirname)}
1993
+ pattern=${A(this.pattern)}
1994
+ list=${A(this.list)}
1995
+ size=${A(this.size)}
1996
+ @input=${this.onInput}
1997
+ @change=${this.onChange}
1998
+ @keydown=${this.handleKeyDown}
1999
+ />`}render(){return h`
1971
2000
  ${this.renderLabel()}
1972
2001
  <div class="input-container mdc-focus-ring" part="input-container">
1973
2002
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
1974
2003
  <div class="input-section" part="input-section">
1975
2004
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
1976
- <slot name="input">
1977
- <input
1978
- aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1979
- class='input'
1980
- part='input'
1981
- id="${this.id}"
1982
- name="${this.name}"
1983
- .value="${this.value}"
1984
- ?disabled="${this.disabled}"
1985
- ?readonly="${this.readonly}"
1986
- ?required="${!!this.requiredLabel}"
1987
- type="text"
1988
- aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
1989
- aria-invalid="${this.helpTextType==="error"?"true":"false"}"
1990
- placeholder=${A(this.placeholder)}
1991
- minlength=${A(this.minlength)}
1992
- maxlength=${A(this.maxlength)}
1993
- autocapitalize=${this.autocapitalize}
1994
- autocomplete=${this.autocomplete}
1995
- ?autofocus="${this.autofocus}"
1996
- dirname=${A(this.dirname)}
1997
- pattern=${A(this.pattern)}
1998
- list=${A(this.list)}
1999
- size=${A(this.size)}
2000
- @input=${this.onInput}
2001
- @change=${this.onChange}
2002
- @keydown=${this.handleKeyDown}
2003
- />
2004
- </slot>
2005
+ <slot name="input">${this.renderInputElement(De.INPUT_TYPE)}</slot>
2005
2006
  </div>
2006
2007
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
2007
2008
  </div>
2008
2009
  ${this.helpText?this.renderHelperText():v}
2009
- `}};$.styles=[...le.styles,...en],l([c({type:String})],$.prototype,"placeholder",2),l([c({type:Boolean})],$.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],$.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],$.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],$.prototype,"trailingButton",2),l([c({type:Number})],$.prototype,"maxlength",2),l([c({type:Number})],$.prototype,"minlength",2),l([c({type:String})],$.prototype,"autocapitalize",2),l([c({type:String})],$.prototype,"autocomplete",2),l([c({type:Boolean})],$.prototype,"autofocus",2),l([c({type:String})],$.prototype,"dirname",2),l([c({type:String})],$.prototype,"pattern",2),l([c({type:String})],$.prototype,"list",2),l([c({type:Number})],$.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2);var Ai=$;Ai.register(tn);var _c=Ai;var Ic=f`
2010
+ `}};$.styles=[...le.styles,...an],l([c({type:String})],$.prototype,"placeholder",2),l([c({type:Boolean})],$.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],$.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],$.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],$.prototype,"trailingButton",2),l([c({type:Number})],$.prototype,"maxlength",2),l([c({type:Number})],$.prototype,"minlength",2),l([c({type:String})],$.prototype,"autocapitalize",2),l([c({type:String})],$.prototype,"autocomplete",2),l([c({type:Boolean})],$.prototype,"autofocus",2),l([c({type:String})],$.prototype,"dirname",2),l([c({type:String})],$.prototype,"pattern",2),l([c({type:String})],$.prototype,"list",2),l([c({type:Number})],$.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2);var Xt=$;Xt.register(nn);var Rc=Xt;var Oc=f`
2010
2011
  :host {
2011
2012
  height: 1.5rem;
2012
2013
  gap: 0.25rem;
2013
2014
  padding: 0 0.25rem 0 0.5rem;
2014
2015
  border-radius: 0.25rem;
2015
2016
  border: 1px solid;
2016
- cursor: pointer;
2017
+ white-space: nowrap;
2017
2018
 
2018
2019
  --mdc-chip-color: var(--mds-color-theme-text-primary-normal);
2019
2020
  --mdc-chip-border-color: var(--mds-color-theme-outline-button-normal);
@@ -2035,24 +2036,24 @@
2035
2036
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2036
2037
  cursor: auto;
2037
2038
  }
2038
- `,on=[C,Ic];var an=g.constructTagName("inputchip"),yo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends Z(te(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2039
+ `,cn=[C,Oc];var dn=g.constructTagName("inputchip"),Eo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends Z(te(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2039
2040
  <mdc-icon
2040
2041
  name="${this.iconName}"
2041
2042
  length-unit="rem"
2042
2043
  size="1"></mdc-icon>
2043
- `:v}handleClose(e){e.stopPropagation();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}render(){return h`
2044
+ `:v}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return h`
2044
2045
  ${this.renderIcon()}
2045
- <mdc-text part="label" type="${yo.TEXT_TYPE}" tagname="${yo.TAG_NAME}">${this.label}</mdc-text>
2046
+ <mdc-text part="label" type="${Eo.TEXT_TYPE}" tagname="${Eo.TAG_NAME}">${this.label}</mdc-text>
2046
2047
  <mdc-button
2047
2048
  ?disabled="${this.disabled}"
2048
2049
  variant="tertiary"
2049
2050
  part="close-icon"
2050
2051
  aria-label="${this.clearAriaLabel}"
2051
- prefix-icon="${yo.CLOSE_ICON}"
2052
+ prefix-icon="${Eo.CLOSE_ICON}"
2052
2053
  size="20"
2053
2054
  @click="${this.handleClose}"
2054
2055
  ></mdc-button>
2055
- `}};xt.styles=[...y.styles,...on],l([c({type:String})],xt.prototype,"label",2),l([c({type:Boolean})],xt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],xt.prototype,"clearAriaLabel",2);var Si=xt;Si.register(an);var kc=Si;var sn=g.constructTagName("link"),xo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Eo={LARGE:1,MIDSIZE:.875,SMALL:.75},To={INLINE:!1,INVERTED:!1,LINK_SIZE:xo.LARGE};var Cc=[C,f`
2056
+ `}};xt.styles=[...y.styles,...cn],l([c({type:String})],xt.prototype,"label",2),l([c({type:Boolean})],xt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],xt.prototype,"clearAriaLabel",2);var Ci=xt;Ci.register(dn);var Mc=Ci;var mn=g.constructTagName("link"),To={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ao={LARGE:1,MIDSIZE:.875,SMALL:.75},So={INLINE:!1,INVERTED:!1,LINK_SIZE:To.LARGE};var zc=[C,f`
2056
2057
 
2057
2058
  :host {
2058
2059
 
@@ -2175,17 +2176,17 @@
2175
2176
  :host(:active)::part(link-container) {
2176
2177
  box-shadow: none;
2177
2178
  }
2178
- `],nn=Cc;var Et=class extends te(Z(y)){constructor(){super(...arguments);this.inline=To.INLINE;this.inverted=To.INVERTED;this.size=To.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case xo.SMALL:return Eo.SMALL;case xo.MIDSIZE:return Eo.MIDSIZE;default:return Eo.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,a;let e=(a=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:a.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${r}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
2179
+ `],pn=zc;var Et=class extends te(Z(y)){constructor(){super(...arguments);this.inline=So.INLINE;this.inverted=So.INVERTED;this.size=So.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case To.SMALL:return Ao.SMALL;case To.MIDSIZE:return Ao.MIDSIZE;default:return Ao.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,s;let e=(s=(i=this.shadowRoot)==null?void 0:i.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 h`
2179
2180
  <div part='link-container' class='mdc-focus-ring'>
2180
2181
  <slot @slotchange=${this.updateTrailingIcon}></slot>
2181
2182
  </div>
2182
- `}};Et.styles=[...y.styles,...nn],l([c({type:Boolean,reflect:!0})],Et.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Et.prototype,"inverted",2),l([c({type:String,reflect:!0})],Et.prototype,"size",2);var _i=Et;_i.register(sn);var wc=_i;var Ao=g.constructTagName("listitem"),Ii={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ln={VARIANT:Ii.FULL_WIDTH};var cn=g.constructTagName("list"),Lr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},ki="header-id";var Lc=f`
2183
+ `}};Et.styles=[...y.styles,...pn],l([c({type:Boolean,reflect:!0})],Et.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Et.prototype,"inverted",2),l([c({type:String,reflect:!0})],Et.prototype,"size",2);var wi=Et;wi.register(mn);var Dc=wi;var _o=g.constructTagName("listitem"),Li={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},hn={VARIANT:Li.FULL_WIDTH};var un=g.constructTagName("list"),Or={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Ni="header-id";var $c=f`
2183
2184
  :host::part(header-text) {
2184
2185
  padding: 0.5rem 0.75rem;
2185
2186
  }
2186
- `,dn=[Lc];var Wt=class extends D(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case Lr.ARROW_DOWN:return(e+1)%r;case Lr.ARROW_UP:return(e-1+r)%r;case Lr.HOME:return 0;case Lr.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?h`
2187
+ `,fn=[$c];var Zt=class extends D(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case Or.ARROW_DOWN:return(e+1)%r;case Or.ARROW_UP:return(e-1+r)%r;case Or.HOME:return 0;case Or.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?h`
2187
2188
  <mdc-text
2188
- id="${ki}"
2189
+ id="${Ni}"
2189
2190
  part="header-text"
2190
2191
  type="${_.BODY_MIDSIZE_BOLD}"
2191
2192
  tagname="${w.SPAN}"
@@ -2193,13 +2194,13 @@
2193
2194
  `:v;return h`
2194
2195
  <div
2195
2196
  role="list"
2196
- aria-labelledby="${this.headerText?ki:""}"
2197
+ aria-labelledby="${this.headerText?Ni:""}"
2197
2198
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2198
2199
  >
2199
2200
  ${t}
2200
2201
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2201
2202
  </div>
2202
- `}};Wt.styles=[...y.styles,...dn],l([rt({selector:Ao})],Wt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Wt.prototype,"headerText",2);var Ci=Wt;Ci.register(cn);var Nc=Ci;var Rc=f`
2203
+ `}};Zt.styles=[...y.styles,...fn],l([Le({selector:_o})],Zt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Zt.prototype,"headerText",2);var Ri=Zt;Ri.register(un);var Pc=Ri;var Uc=f`
2203
2204
  :host {
2204
2205
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2205
2206
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2268,7 +2269,7 @@
2268
2269
  display: flex;
2269
2270
  flex-direction: row;
2270
2271
  }
2271
- `,mn=[Rc,...O()];var ce=class extends D(te(Zr(y))){constructor(){super(...arguments);this.variant=ln.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2272
+ `,gn=[Uc,...O()];var ce=class extends D(te(Qr(y))){constructor(){super(...arguments);this.variant=hn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2272
2273
  <slot name="${e}">
2273
2274
  <mdc-text part="${e}" type="${r}" tagname="${w.SPAN}">${i}</mdc-text>
2274
2275
  </slot>
@@ -2288,7 +2289,7 @@
2288
2289
  </div>
2289
2290
  <slot name="trailing-controls"></slot>
2290
2291
  </div>
2291
- `}};ce.styles=[...y.styles,...mn],l([rt({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),l([rt({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ce.prototype,"variant",2),l([c({type:String,reflect:!0})],ce.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2);var Xt=ce;Xt.register(Ao);var Oc=Xt;var Mc=f`
2292
+ `}};ce.styles=[...y.styles,...gn],l([Le({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),l([Le({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ce.prototype,"variant",2),l([c({type:String,reflect:!0})],ce.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2);var jt=ce;jt.register(_o);var Vc=jt;var Fc=f`
2292
2293
  :host {
2293
2294
  --mdc-marker-width: 0.25rem;
2294
2295
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2313,7 +2314,7 @@
2313
2314
  var(--mdc-marker-striped-background-color) 0.375rem
2314
2315
  );
2315
2316
  }
2316
- `,pn=[Mc];var hn=g.constructTagName("marker"),un={SOLID:"solid",STRIPED:"striped"};var Nr=class extends y{constructor(){super(...arguments);this.variant=un.SOLID}};Nr.styles=[...y.styles,...pn],l([c({type:String,reflect:!0})],Nr.prototype,"variant",2);var wi=Nr;wi.register(hn);var zc=wi;Ye.register(Ys);var Dc=Ye;var $c=[C,f`
2317
+ `,bn=[Fc];var vn=g.constructTagName("marker"),yn={SOLID:"solid",STRIPED:"striped"};var Mr=class extends y{constructor(){super(...arguments);this.variant=yn.SOLID}};Mr.styles=[...y.styles,...bn],l([c({type:String,reflect:!0})],Mr.prototype,"variant",2);var Oi=Mr;Oi.register(vn);var Hc=Oi;We.register(ja);var Bc=We;var Gc=[C,f`
2317
2318
  :host{
2318
2319
  --mdc-radio-inner-circle-size: 0.375rem;
2319
2320
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2475,10 +2476,10 @@
2475
2476
  display: none;
2476
2477
  }
2477
2478
 
2478
- `,...O(!0)],fn=$c;var Tt=class extends ie(D(ae)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
2479
+ `,...O(!0)],xn=Gc;var Tt=class extends ie(D(se)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
2479
2480
  ${this.renderLabel()}
2480
2481
  ${this.renderHelperText()}
2481
- </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(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(n=>n.requiredLabel),a=!!r.find(n=>n.checked),s=i&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let n=(d=s.shadowRoot)==null?void 0:d.querySelector("input");n&&(s.checked=!1,n.checked=!1)}),this.checked=!0;let i=(a=this.shadowRoot)==null?void 0:a.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(i)}handleKeyDown(e){var s;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),a=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(a+1)%i.length;this.updateRadio(i,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(a-1+i.length)%i.length;this.updateRadio(i,n,e)}else e.key===" "&&this.updateRadio(i,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),i=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===r||!r&&a===i)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return h`
2482
+ </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(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(n=>n.requiredLabel),s=!!r.find(n=>n.checked),a=i&&!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 i=(s=this.shadowRoot)==null?void 0:s.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var s,a;(a=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||a.focus(),e[r].handleChange(i)}handleKeyDown(e){var a;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),s=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(s+1)%i.length;this.updateRadio(i,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(s-1+i.length)%i.length;this.updateRadio(i,n,e)}else e.key===" "&&this.updateRadio(i,s,e);this.updateTabIndex(),e.key==="Enter"&&((a=this.form)==null||a.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),i=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===i)&&(a.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return h`
2482
2483
  <div class="mdc-radio__container">
2483
2484
  <div class="mdc-radio__icon-container mdc-focus-ring">
2484
2485
  <input
@@ -2496,14 +2497,14 @@
2496
2497
  ?disabled=${this.disabled}
2497
2498
  class="mdc-radio__input"
2498
2499
  aria-checked="${this.checked}"
2499
- aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
2500
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
2500
2501
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2501
2502
  />
2502
2503
  <span class="mdc-radio__icon"></span>
2503
2504
  </div>
2504
2505
  ${this.renderLabelAndHelperText()}
2505
2506
  </div>
2506
- `}};Tt.styles=[...ae.styles,...fn],l([c({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"autofocus",2);var Li=Tt;var So=g.constructTagName("radio");Li.register(So);var Pc=Li;var Rr=class extends bo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,a,s;(s=(a=(i=(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:i.filter(n=>n.tagName.toLowerCase()===So))==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)})}};Rr.styles=[...bo.styles],l([c({type:String})],Rr.prototype,"name",2);var Ni=Rr;var gn=g.constructTagName("radiogroup");Ni.register(gn);var Uc=Ni;var Vc=[C,f`
2507
+ `}};Tt.styles=[...se.styles,...xn],l([c({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"autofocus",2);var Mi=Tt;var Io=g.constructTagName("radio");Mi.register(Io);var Yc=Mi;var zr=class extends yo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,s,a;(a=(s=(i=(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:i.filter(n=>n.tagName.toLowerCase()===Io))==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)})}};zr.styles=[...yo.styles],l([c({type:String})],zr.prototype,"name",2);var zi=zr;var En=g.constructTagName("radiogroup");zi.register(En);var qc=zi;var Wc=[C,f`
2507
2508
  :host {
2508
2509
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2509
2510
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -2565,11 +2566,11 @@
2565
2566
  stroke-dashoffset: -292;
2566
2567
  }
2567
2568
  }
2568
- `],bn=Vc;var vn=g.constructTagName("spinner"),Fc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Hc={STANDALONE:"standalone",BUTTON:"button"},_o={VARIANT:Hc.STANDALONE,SIZE:Fc.MIDSIZE,INVERTED:!1};var Ze=class extends y{constructor(){super(...arguments);this.inverted=_o.INVERTED;this.size=_o.SIZE;this.ariaLabel=null;this.variant=_o.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2569
+ `],Tn=Wc;var An=g.constructTagName("spinner"),Xc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Zc={STANDALONE:"standalone",BUTTON:"button"},ko={VARIANT:Zc.STANDALONE,SIZE:Xc.MIDSIZE,INVERTED:!1};var je=class extends y{constructor(){super(...arguments);this.inverted=ko.INVERTED;this.size=ko.SIZE;this.ariaLabel=null;this.variant=ko.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2569
2570
  <svg part="container" viewBox="0 0 100 100">
2570
2571
  <circle part="circle" cx="50" cy="50" r="46"></circle>
2571
2572
  </svg>
2572
- `}};Ze.styles=[...y.styles,...bn],l([c({type:Boolean,reflect:!0})],Ze.prototype,"inverted",2),l([c({type:String,reflect:!0})],Ze.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],Ze.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],Ze.prototype,"variant",2);var Ri=Ze;Ri.register(vn);var Bc=Ri;var Gc=[C,f`
2573
+ `}};je.styles=[...y.styles,...Tn],l([c({type:Boolean,reflect:!0})],je.prototype,"inverted",2),l([c({type:String,reflect:!0})],je.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],je.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],je.prototype,"variant",2);var Di=je;Di.register(An);var jc=Di;var Kc=[C,f`
2573
2574
 
2574
2575
  :host {
2575
2576
  --mdc-tab-content-gap: 0.5rem;
@@ -2812,7 +2813,7 @@
2812
2813
  color: var(--mdc-tab-pill-active-color-disabled);
2813
2814
  }
2814
2815
 
2815
- `,...O()],yn=Gc;var xn=g.constructTagName("tab"),Oi={GLASS:"glass",LINE:"line",PILL:"pill"},Mi={VARIANT:Oi.PILL};var Zt=class extends Z(re){constructor(){super(...arguments);this.variant=Mi.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=`${yr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Oi).includes(e)?e:Mi.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 h`
2816
+ `,...O()],Sn=Kc;var _n=g.constructTagName("tab"),$i={GLASS:"glass",LINE:"line",PILL:"pill"},Pi={VARIANT:$i.PILL};var Kt=class extends Z(re){constructor(){super(...arguments);this.variant=Pi.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=`${Tr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values($i).includes(e)?e:Pi.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 h`
2816
2817
  <div part="container">
2817
2818
  ${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
2818
2819
  ${this.text?h` <mdc-text
@@ -2826,7 +2827,7 @@
2826
2827
  <slot name="chip"></slot>
2827
2828
  </div>
2828
2829
  <div part="indicator"></div>
2829
- `}};Zt.styles=[...re.styles,...yn],l([c({type:String,reflect:!0})],Zt.prototype,"text",2),l([c({type:String,reflect:!0})],Zt.prototype,"variant",2);var zi=Zt;zi.register(xn);var Yc=zi;var Io=g.constructTagName("themeprovider"),Di={THEMECLASS:"mds-theme-stable-darkWebex"};var ko=class{constructor(t){this.themeclass=t}};ko.context=Io;var Co=ko;var qc=f`
2830
+ `}};Kt.styles=[...re.styles,...Sn],l([c({type:String,reflect:!0})],Kt.prototype,"text",2),l([c({type:String,reflect:!0})],Kt.prototype,"variant",2);var Ui=Kt;Ui.register(_n);var Qc=Ui;var Co=g.constructTagName("themeprovider"),Vi={THEMECLASS:"mds-theme-stable-darkWebex"};var wo=class{constructor(t){this.themeclass=t}};wo.context=Co;var Lo=wo;var Jc=f`
2830
2831
  :host {
2831
2832
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
2832
2833
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -2855,7 +2856,7 @@
2855
2856
  * {
2856
2857
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
2857
2858
  }
2858
- `,En=[qc];var jt=class extends Rt{constructor(){super({context:Co.context,initialValue:new Co(Di.THEMECLASS)});this.themeclass=Di.THEMECLASS}static get Context(){return Co.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(" "))}};jt.styles=[...Rt.styles,...En],l([G()],jt.prototype,"currentThemeClass",2),l([c({type:String})],jt.prototype,"themeclass",2);var $i=jt;$i.register(Io);var Wc=$i;var Xc=[C,f`
2859
+ `,In=[Jc];var Qt=class extends Rt{constructor(){super({context:Lo.context,initialValue:new Lo(Vi.THEMECLASS)});this.themeclass=Vi.THEMECLASS}static get Context(){return Lo.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(" "))}};Qt.styles=[...Rt.styles,...In],l([U()],Qt.prototype,"currentThemeClass",2),l([c({type:String})],Qt.prototype,"themeclass",2);var Fi=Qt;Fi.register(Co);var ed=Fi;var td=[C,f`
2859
2860
  :host {
2860
2861
  --mdc-toggle-width: 3rem;
2861
2862
  --mdc-toggle-height: 1.5rem;
@@ -3007,7 +3008,7 @@
3007
3008
  border: var(--mdc-toggle-border);
3008
3009
  }
3009
3010
  }
3010
- `,...O(!0)],Tn=Xc;var An=g.constructTagName("toggle"),Pi={DEFAULT:"default",COMPACT:"compact"},Ui={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Sn={compact:.75,default:1.25},Vi={SIZE:Pi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends ie(D(le)){constructor(){super(...arguments);this.checked=!1;this.size=Vi.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(Pi).includes(e)?e:Vi.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
3011
+ `,...O(!0)],kn=td;var Cn=g.constructTagName("toggle"),Hi={DEFAULT:"default",COMPACT:"compact"},Bi={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},wn={compact:.75,default:1.25},Gi={SIZE:Hi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends ie(D(le)){constructor(){super(...arguments);this.checked=!1;this.size=Gi.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(Hi).includes(e)?e:Gi.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
3011
3012
  <div class="mdc-toggle__container mdc-focus-ring">
3012
3013
  <input
3013
3014
  id="${this.id}"
@@ -3021,7 +3022,7 @@
3021
3022
  .checked="${this.checked}"
3022
3023
  aria-checked="${this.checked}"
3023
3024
  .disabled="${this.disabled}"
3024
- aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
3025
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
3025
3026
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3026
3027
  tabindex="${this.disabled?-1:0}"
3027
3028
  @change="${this.handleChange}"
@@ -3029,16 +3030,16 @@
3029
3030
  />
3030
3031
  <div class="mdc-toggle__slider">
3031
3032
  <mdc-icon
3032
- name="${this.checked?Ui.CHECKED:Ui.UNCHECKED}"
3033
+ name="${this.checked?Bi.CHECKED:Bi.UNCHECKED}"
3033
3034
  class="mdc-toggle__icon"
3034
3035
  length-unit="rem"
3035
- size="${Sn[this.size]}"
3036
+ size="${wn[this.size]}"
3036
3037
  ></mdc-icon>
3037
3038
  </div>
3038
3039
  </div>
3039
3040
  ${this.renderLabel()}
3040
3041
  ${this.renderHelperText()}
3041
- `}};At.styles=[...le.styles,...Tn],l([c({type:Boolean,reflect:!0})],At.prototype,"checked",2),l([c({type:String,reflect:!0})],At.prototype,"size",2),l([c({type:Boolean,reflect:!0})],At.prototype,"autofocus",2);var Fi=At;Fi.register(An);var Zc=Fi;var _n=g.constructTagName("tooltip"),J={DESCRIPTION:"description",LABEL:"label",NONE:"none"},je={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:J.DESCRIPTION};var jc=f`
3042
+ `}};At.styles=[...le.styles,...kn],l([c({type:Boolean,reflect:!0})],At.prototype,"checked",2),l([c({type:String,reflect:!0})],At.prototype,"size",2),l([c({type:Boolean,reflect:!0})],At.prototype,"autofocus",2);var Yi=At;Yi.register(Cn);var rd=Yi;var Ln=g.constructTagName("tooltip"),J={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ke={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:J.DESCRIPTION};var od=f`
3042
3043
 
3043
3044
  :host {
3044
3045
  --mdc-tooltip-max-width: 400px;
@@ -3063,10 +3064,10 @@
3063
3064
  :host([color='contrast'])::part(popover-content) {
3064
3065
  color: var(--mdc-tooltip-text-color-contrast);
3065
3066
  }
3066
- `,In=[jc];var Kt=class extends Ye{constructor(){super(...arguments);this.tooltipType=je.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=je.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=je.OFFSET,this.placement=je.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(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(J).includes(e)?e:je.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${at()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case J.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case J.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ut).includes(this.placement)||(this.placement=je.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(J).includes(this.tooltipType)||this.setTooltipType(je.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let a=this.getTooltipText();switch(this.tooltipType){case J.DESCRIPTION:r===J.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case J.LABEL:r===J.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===J.DESCRIPTION?i.removeAttribute("aria-describedby"):r===J.LABEL&&i.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==J.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)}};Kt.styles=[...Ye.styles,...In],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Kt.prototype,"tooltipType",2),l([Ta()],Kt.prototype,"defaultSlotNodes",2);var Hi=Kt;Hi.register(_n);var Kc=Hi;function St(o,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],i;return()=>{var s,n,d,m;let p;e.key&&((s=e.debug)!=null&&s.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*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`,`
3067
+ `,Nn=[od];var Jt=class extends We{constructor(){super(...arguments);this.tooltipType=Ke.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=Ke.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=Ke.OFFSET,this.placement=Ke.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(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(J).includes(e)?e:Ke.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${st()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case J.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case J.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ut).includes(this.placement)||(this.placement=Ke.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(J).includes(this.tooltipType)||this.setTooltipType(Ke.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case J.DESCRIPTION:r===J.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case J.LABEL:r===J.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===J.DESCRIPTION?i.removeAttribute("aria-describedby"):r===J.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==J.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)}};Jt.styles=[...We.styles,...Nn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Jt.prototype,"tooltipType",2),l([ks()],Jt.prototype,"defaultSlotNodes",2);var qi=Jt;qi.register(Ln);var id=qi;function St(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var a,n,d,m;let p;e.key&&((a=e.debug)!=null&&a.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*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`,`
3067
3068
  font-size: .6rem;
3068
3069
  font-weight: bold;
3069
- 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,i),i}}function wo(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var kn=(o,t)=>Math.abs(o-t)<1,Cn=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Qc=o=>o,Jc=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},Ln=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=s=>{let{width:n,height:d}=s;t({width:Math.round(n),height:Math.round(d)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let n=s[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},wn={passive:!0};var ed=typeof window>"u"?!0:"onscrollend"in window,Nn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,a=o.options.useScrollendEvent&&ed?()=>{}:Cn(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,a(),t(i,m)},n=s(!0),d=s(!1);return d(),e.addEventListener("scroll",n,wn),e.addEventListener("scrollend",d,wn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var td=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Rn=(o,{adjustments:t=0,behavior:e},r)=>{var i,a;let s=o+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:e})},Lo=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qc,rangeExtractor:Jc,onChange:()=>{},measureElement:td,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,a=new Map;for(let s=r-1;s>=0;s--){let n=e[s];if(i.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&&i.set(n.lane,!0),i.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=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,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(p=>{this.itemSizeCache.set(p.key,p.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let p=d;p<e;p++){let u=a(p),x=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),b=x?x.end+this.options.gap:r+i,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(p),I=b+T,S=x?x.lane:p%this.options.lanes;m[p]={index:p,start:b,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?rd({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),a=this.measurementsCache[i];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(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let i=this.measurementsCache[e];if(!i)return;let a=(n=this.itemSizeCache.get(i.key))!=null?n:i.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let a=0,s=e.length;a<s;a++){let n=e[a],d=r[n];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return wo(r[On(0,r.length-1,i=>wo(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+i&&(r="end"),r==="end"&&(e-=i);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;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 i=this.measurementsCache[e];if(!i)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(i.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(i.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let n=i.start-this.options.scrollPaddingStart+(i.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,n]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=wo(this.getOffsetForIndex(e,n));kn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:i})}else this.scrollToIndex(e,{align:n,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var a;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},On=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,a=e(i);if(a<r)o=i+1;else if(a>r)t=i-1;else return i}return o>0?o-1:0};function rd({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,a=On(0,r,n=>o[n].start,e),s=a;for(;s<r&&o[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var Bi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,i,a)}};this.virtualizer=new Lo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},No=class extends Bi{constructor(t,e){super(t,{observeElementRect:Ln,observeElementOffset:Nn,scrollToFn:Rn,...e})}};var{I:qS}=va;var Mn=o=>o.strings===void 0;var Or=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Or(i,t);return!0},Ro=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},zn=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),ad(t)}};function od(o){this._$AN!==void 0?(Ro(this),this._$AM=o,zn(this)):this._$AM=o}function id(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)Or(r[a],!1),Ro(r[a]);else r!=null&&(Or(r,!1),Ro(r));else Or(this,o)}var ad=o=>{var t,e;o.type==to.CHILD&&((t=o._$AP)!=null||(o._$AP=id),(e=o._$AQ)!=null||(o._$AQ=od))},Oo=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),zn(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Or(this,t),Ro(this))}setValue(t){if(Mn(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 Dn=()=>new Yi,Yi=class{},Gi=new WeakMap,$n=gr(class extends Oo{render(o){return v}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),v}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Gi.get(e);r===void 0&&(r=new WeakMap,Gi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Gi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var sd=[f`
3070
+ 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,i),i}}function No(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Rn=(o,t)=>Math.abs(o-t)<1,On=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var sd=o=>o,ad=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},zn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=a=>{let{width:n,height:d}=a;t({width:Math.round(n),height:Math.round(d)})};if(i(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){i({width:d.inlineSize,height:d.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Mn={passive:!0};var nd=typeof window>"u"?!0:"onscrollend"in window,Dn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&nd?()=>{}:On(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),a=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},n=a(!0),d=a(!1);return d(),e.addEventListener("scroll",n,Mn),e.addEventListener("scrollend",d,Mn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var ld=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var $n=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let a=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:e})},Ro=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sd,rangeExtractor:ad,onChange:()=>{},measureElement:ld,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(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 i=new Map,s=new Map;for(let a=r-1;a>=0;a--){let n=e[a];if(i.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&&i.set(n.lane,!0),i.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=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,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(p=>{this.itemSizeCache.set(p.key,p.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let p=d;p<e;p++){let u=s(p),x=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),b=x?x.end+this.options.gap:r+i,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(p),I=b+T,S=x?x.lane:p%this.options.lanes;m[p]={index:p,start:b,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?cd({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,a)=>s===null||a===null?[]:e({startIndex:s,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];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(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let i=this.measurementsCache[e];if(!i)return;let s=(n=this.itemSizeCache.get(i.key))!=null?n:i.size,a=r-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,a=e.length;s<a;s++){let n=e[s],d=r[n];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return No(r[Pn(0,r.length-1,i=>No(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let a=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;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 i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];let n=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[a,n]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=No(this.getOffsetForIndex(e,n));Rn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:i})}else this.scrollToIndex(e,{align:n,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=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(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Pn=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function cd({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Pn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Wi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var a;this.host.updateComplete.then(()=>this.host.requestUpdate()),(a=e.onChange)==null||a.call(e,i,s)}};this.virtualizer=new Ro(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Oo=class extends Wi{constructor(t,e){super(t,{observeElementRect:zn,observeElementOffset:Dn,scrollToFn:$n,...e})}};var{I:t_}=As;var Un=o=>o.strings===void 0;var Dr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Dr(i,t);return!0},Mo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Vn=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),pd(t)}};function dd(o){this._$AN!==void 0?(Mo(this),this._$AM=o,Vn(this)):this._$AM=o}function md(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)Dr(r[s],!1),Mo(r[s]);else r!=null&&(Dr(r,!1),Mo(r));else Dr(this,o)}var pd=o=>{var t,e;o.type==io.CHILD&&((t=o._$AP)!=null||(o._$AP=md),(e=o._$AQ)!=null||(o._$AQ=dd))},zo=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Vn(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Dr(this,t),Mo(this))}setValue(t){if(Un(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 Fn=()=>new Zi,Zi=class{},Xi=new WeakMap,Hn=yr(class extends zo{render(o){return v}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),v}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Xi.get(e);r===void 0&&(r=new WeakMap,Xi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Xi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var hd=[f`
3070
3071
  :host::part(scroll) {
3071
3072
  height: 100%;
3072
3073
  width: 100%;
@@ -3076,19 +3077,19 @@
3076
3077
  position: relative;
3077
3078
  width: 100%;
3078
3079
  }
3079
- `],Pn=sd;var Un=g.constructTagName("virtualizedlist"),l_=g.constructTagName("virtualizedwrapper"),Vn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=Vn.VIRTUALIZER_PROPS;this.scrollElementRef=Dn();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 No(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:i,measureElement:a}=this.virtualizer,s=i();if(s!==this.virtualItems){this.virtualItems=s;let m=i(),p={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:p})}return h`<div
3080
+ `],Bn=hd;var Gn=g.constructTagName("virtualizedlist"),b_=g.constructTagName("virtualizedwrapper"),Yn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=Yn.VIRTUALIZER_PROPS;this.scrollElementRef=Fn();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 Oo(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:i,measureElement:s}=this.virtualizer,a=i();if(a!==this.virtualItems){this.virtualItems=a;let m=i(),p={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:p})}return h`<div
3080
3081
  part="container"
3081
3082
  style="height: ${r()}px;"
3082
3083
  >
3083
3084
  <slot></slot>
3084
3085
  </div>`}render(){return h`<div
3085
- ${$n(this.scrollElementRef)}
3086
+ ${Hn(this.scrollElementRef)}
3086
3087
  part="scroll"
3087
3088
  @scroll=${this.onscroll&&this.onscroll}
3088
3089
  >
3089
3090
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):h``}
3090
3091
  </div>
3091
- `}};_t.styles=[...y.styles,...Pn],l([c({type:Function,attribute:"onscroll"})],_t.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],_t.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],_t.prototype,"setlistdata",2);var qi=_t;qi.register(Un);var nd=qi;var ld=[f`
3092
+ `}};_t.styles=[...y.styles,...Bn],l([c({type:Function,attribute:"onscroll"})],_t.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],_t.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],_t.prototype,"setlistdata",2);var ji=_t;ji.register(Gn);var ud=ji;var fd=[f`
3092
3093
  :host {
3093
3094
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
3094
3095
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -3171,36 +3172,36 @@
3171
3172
  :host::part(progress-container), :host::part(progress-bar) {
3172
3173
  border: var(--mdc-progressbar-border);
3173
3174
  }
3174
- `],Fn=ld;var Hn=g.constructTagName("progressbar"),Mo={DEFAULT:"default",INLINE:"inline"},Bn={VARIANT:Mo.DEFAULT,VALIDATION:V.DEFAULT};var It=class extends D(le){constructor(){super(...arguments);this.variant=Bn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return h`
3175
+ `],qn=fd;var Wn=g.constructTagName("progressbar"),Do={DEFAULT:"default",INLINE:"inline"},Xn={VARIANT:Do.DEFAULT,VALIDATION:F.DEFAULT};var It=class extends D(le){constructor(){super(...arguments);this.variant=Xn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var s;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return h`
3175
3176
  <div
3176
3177
  part="progress-container ${r?"gap":""}"
3177
3178
  role="progressbar"
3178
3179
  aria-valuenow="${this.clampedValue}"
3179
3180
  aria-valuemin="0"
3180
3181
  aria-valuemax="100"
3181
- aria-label="${(a=this.dataAriaLabel)!=null?a:""}"
3182
+ aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
3182
3183
  >
3183
3184
  <div part="progress-bar ${e}" style="width: ${i}%"></div>
3184
3185
  <div part="remaining"></div>
3185
3186
  </div>
3186
- `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${at()}`,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=V.ERROR:this.clampedValue===100?this.helpTextType=V.SUCCESS:this.helpTextType=V.DEFAULT,this.helpTextType}render(){let e=this.variant===Mo.INLINE;return h`
3187
+ `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${st()}`,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=F.ERROR:this.clampedValue===100?this.helpTextType=F.SUCCESS:this.helpTextType=F.DEFAULT,this.helpTextType}render(){let e=this.variant===Do.INLINE;return h`
3187
3188
  ${e?h`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:h`
3188
3189
  <div part="label-container">
3189
3190
  ${this.renderLabelElement()}
3190
- ${this.variant===Mo.DEFAULT&&this.label?h`<span part="percentage">${this.clampedValue}%</span>`:""}
3191
+ ${this.variant===Do.DEFAULT&&this.label?h`<span part="percentage">${this.clampedValue}%</span>`:""}
3191
3192
  </div>
3192
3193
  ${this.renderProgressbar()}
3193
3194
  ${this.renderHelperText()}
3194
3195
  `}
3195
- `}};It.styles=[...le.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 Wi=It;Wi.register(Hn);var cd=Wi;var Gn="check-bold",Yn=g.constructTagName("option");var dd=f`
3196
+ `}};It.styles=[...le.styles,...qn],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 Ki=It;Ki.register(Wn);var gd=Ki;var Zn="check-bold",jn=g.constructTagName("option");var bd=f`
3196
3197
  :host::part(list-item) {
3197
3198
  height: 2.25rem;
3198
3199
  }
3199
3200
  :host::part(default-slot) {
3200
3201
  display: none;
3201
3202
  }
3202
- `,qn=[dd];var kt=class extends ie(Xt){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Ii.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}handleDefaultSlotChange(){var r,i,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(i=e.assignedNodes()[0])==null?void 0:i.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.selected?h`
3203
- <mdc-icon slot="trailing-controls" name="${Gn}"></mdc-icon>
3203
+ `,Kn=[bd];var kt=class extends ie(jt){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Li.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}handleDefaultSlotChange(){var r,i,s;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(s=(i=e.assignedNodes()[0])==null?void 0:i.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.selected?h`
3204
+ <mdc-icon slot="trailing-controls" name="${Zn}"></mdc-icon>
3204
3205
  `:v,r=this.prefixIcon?h`
3205
3206
  <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
3206
3207
  `:v;return h`
@@ -3214,7 +3215,7 @@
3214
3215
  ${e}
3215
3216
  </div>
3216
3217
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
3217
- `}};kt.styles=[...Xt.styles,...qn],l([c({type:Boolean,reflect:!0})],kt.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],kt.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],kt.prototype,"ariaLabel",2);var Xi=kt;Xi.register(Yn);var md=Xi;var Wn=g.constructTagName("optgroup"),Zi="header-id";var pd=f`
3218
+ `}};kt.styles=[...jt.styles,...Kn],l([c({type:Boolean,reflect:!0})],kt.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],kt.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],kt.prototype,"ariaLabel",2);var Qi=kt;Qi.register(jn);var vd=Qi;var Qn=g.constructTagName("optgroup"),Ji="header-id";var yd=f`
3218
3219
  :host {
3219
3220
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
3220
3221
  }
@@ -3227,9 +3228,9 @@
3227
3228
  color: var(--mdc-optgroup-disabled-color);
3228
3229
  cursor: default;
3229
3230
  }
3230
- `,Xn=[pd];var Qt=class extends D(te(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?h`
3231
+ `,Jn=[yd];var er=class extends D(te(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?h`
3231
3232
  <mdc-text
3232
- id="${Zi}"
3233
+ id="${Ji}"
3233
3234
  part="header-text"
3234
3235
  type="${_.BODY_MIDSIZE_BOLD}"
3235
3236
  tagname="${w.SPAN}"
@@ -3237,13 +3238,13 @@
3237
3238
  `:v;return h`
3238
3239
  <div
3239
3240
  role="group"
3240
- aria-labelledby="${this.label?Zi:""}"
3241
+ aria-labelledby="${this.label?Ji:""}"
3241
3242
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3242
3243
  >
3243
3244
  ${t}
3244
3245
  <slot role="presentation"></slot>
3245
3246
  </div>
3246
- `}};Qt.styles=[...y.styles,...Xn],l([c({type:String,reflect:!0})],Qt.prototype,"label",2),l([rt({selector:"mdc-option"})],Qt.prototype,"options",2);var ji=Qt;ji.register(Wn);var hd=ji;var ud=[f`
3247
+ `}};er.styles=[...y.styles,...Jn],l([c({type:String,reflect:!0})],er.prototype,"label",2),l([Le({selector:"mdc-option"})],er.prototype,"options",2);var es=er;es.register(Qn);var xd=es;var Ed=[f`
3247
3248
  :host {
3248
3249
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3249
3250
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -3364,11 +3365,11 @@
3364
3365
  pointer-events: none;
3365
3366
  }
3366
3367
 
3367
- `,...O(!0)],Zn=ud;var jn=g.constructTagName("textarea"),Ki={HARD:"hard",SOFT:"soft"},Kn={OFF:"off",ON:"on"},zo={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Ki.SOFT};var B=class extends ie(D(le)){constructor(){super(...arguments);this.readonly=!1;this.rows=zo.ROWS;this.cols=zo.COLS;this.wrap=Ki.SOFT;this.autocapitalize=vo.OFF;this.autocomplete=Kn.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===V.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,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?h`
3368
+ `,...O(!0)],el=Ed;var tl=g.constructTagName("textarea"),ts={HARD:"hard",SOFT:"soft"},rl={OFF:"off",ON:"on"},$o={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ts.SOFT};var G=class extends ie(D(le)){constructor(){super(...arguments);this.readonly=!1;this.rows=$o.ROWS;this.cols=$o.COLS;this.wrap=ts.SOFT;this.autocapitalize=xo.OFF;this.autocomplete=rl.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===F.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,i){super.attributeChangedCallback(e,r,i),["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?h`
3368
3369
  <mdc-text
3369
3370
  part="character-counter"
3370
3371
  tagname="span"
3371
- type=${zo.CHARACTER_COUNTER_TYPE}
3372
+ type=${$o.CHARACTER_COUNTER_TYPE}
3372
3373
  >
3373
3374
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
3374
3375
  </mdc-text>
@@ -3401,12 +3402,49 @@
3401
3402
  dirname=${A(this.dirname)}
3402
3403
  @input=${this.updateValue}
3403
3404
  @change=${this.onChange}
3404
- aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
3405
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
3405
3406
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
3406
3407
  ></textarea>
3407
3408
  </div>
3408
3409
  ${this.renderTextareaFooter()}
3409
- `}};B.styles=[...le.styles,...Zn],l([c({type:String})],B.prototype,"placeholder",2),l([c({type:Boolean})],B.prototype,"readonly",2),l([c({type:Number})],B.prototype,"rows",2),l([c({type:Number})],B.prototype,"cols",2),l([c({type:String})],B.prototype,"wrap",2),l([c({type:String})],B.prototype,"autocapitalize",2),l([c({type:String})],B.prototype,"autocomplete",2),l([c({type:Boolean})],B.prototype,"autofocus",2),l([c({type:String})],B.prototype,"dirname",2),l([c({type:Number})],B.prototype,"maxlength",2),l([c({type:Number})],B.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],B.prototype,"maxCharacterLimit",2),l([Gr("textarea")],B.prototype,"inputElement",2);var Qi=B;Qi.register(jn);var fd=Qi;var gd=f`
3410
+ `}};G.styles=[...le.styles,...el],l([c({type:String})],G.prototype,"placeholder",2),l([c({type:Boolean})],G.prototype,"readonly",2),l([c({type:Number})],G.prototype,"rows",2),l([c({type:Number})],G.prototype,"cols",2),l([c({type:String})],G.prototype,"wrap",2),l([c({type:String})],G.prototype,"autocapitalize",2),l([c({type:String})],G.prototype,"autocomplete",2),l([c({type:Boolean})],G.prototype,"autofocus",2),l([c({type:String})],G.prototype,"dirname",2),l([c({type:Number})],G.prototype,"maxlength",2),l([c({type:Number})],G.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],G.prototype,"maxCharacterLimit",2),l([Wr("textarea")],G.prototype,"inputElement",2);var rs=G;rs.register(tl);var Td=rs;var Ad=f`
3411
+
3412
+ :host::part(filters-container){
3413
+ display: flex;
3414
+ gap: 0.25rem;
3415
+ margin: 0.25rem;
3416
+ }
3417
+
3418
+ .input {
3419
+ white-space: nowrap;
3420
+ min-width: 50%;
3421
+ }
3422
+
3423
+ .input::-webkit-search-cancel-button {
3424
+ -webkit-appearance: none;
3425
+ pointer-events: none;
3426
+ }
3427
+
3428
+ :host::part(scrollable-container){
3429
+ display: flex;
3430
+ flex-grow: 1;
3431
+ overflow-x: scroll;
3432
+ overflow-y: hidden;
3433
+ position: relative;
3434
+ scrollbar-width: none;
3435
+ }
3436
+
3437
+ `,ol=[Ad];var il=g.constructTagName("searchfield"),Po={TYPE:ki.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var tr=class extends Xt{constructor(){super(...arguments);this.isInputFocused=!1}connectedCallback(){super.connectedCallback(),this.leadingIcon=Po.ICON,this.trailingButton=Po.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 h`
3438
+ ${this.renderLabelElement()}
3439
+ <div class="${Ft({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3440
+ ${this.renderLeadingIcon()}
3441
+ <div part='scrollable-container'>
3442
+ <div part="filters-container"><slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
3443
+ ${this.renderInputElement(Po.TYPE)}
3444
+ </div>
3445
+ ${this.renderTrailingButton()}
3446
+ </div>
3447
+ `}};tr.styles=[...Xt.styles,...ol],l([Le({slot:"filters"})],tr.prototype,"inputChips",2),l([U()],tr.prototype,"isInputFocused",2);var os=tr;os.register(il);var Sd=os;var _d=f`
3410
3448
  :host {
3411
3449
  display: block;
3412
3450
  }
@@ -3414,7 +3452,7 @@
3414
3452
  height: 100%;
3415
3453
  width: 100%;
3416
3454
  }
3417
- `,Qn=[gd];var Jn=g.constructTagName("brandvisual"),el={NAME:void 0};var Jt=class extends y{constructor(){super(...arguments);this.name=el.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 h` ${this.brandVisualData} `}};Jt.styles=[...y.styles,...Qn],l([G()],Jt.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],Jt.prototype,"name",2);var Ji=Jt;Ji.register(Jn);var bd=Ji;})();
3455
+ `,sl=[_d];var al=g.constructTagName("brandvisual"),nl={NAME:void 0};var rr=class extends y{constructor(){super(...arguments);this.name=nl.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 h` ${this.brandVisualData} `}};rr.styles=[...y.styles,...sl],l([U()],rr.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],rr.prototype,"name",2);var is=rr;is.register(al);var Id=is;})();
3418
3456
  /*! Bundled license information:
3419
3457
 
3420
3458
  @lit/reactive-element/css-tag.js: