@momentum-design/components 0.36.2 → 0.36.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/browser/index.js +782 -447
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/alertchip/alertchip.component.d.ts +46 -0
  4. package/dist/components/alertchip/alertchip.component.js +79 -0
  5. package/dist/components/alertchip/alertchip.constants.d.ts +16 -0
  6. package/dist/components/alertchip/alertchip.constants.js +19 -0
  7. package/dist/components/alertchip/alertchip.styles.d.ts +2 -0
  8. package/dist/components/alertchip/alertchip.styles.js +106 -0
  9. package/dist/components/alertchip/alertchip.types.d.ts +6 -0
  10. package/dist/components/alertchip/alertchip.types.js +1 -0
  11. package/dist/components/alertchip/alertchip.utils.d.ts +3 -0
  12. package/dist/components/alertchip/alertchip.utils.js +12 -0
  13. package/dist/components/alertchip/index.d.ts +9 -0
  14. package/dist/components/alertchip/index.js +6 -0
  15. package/dist/components/chip/chip.component.d.ts +57 -0
  16. package/dist/components/chip/chip.component.js +97 -0
  17. package/dist/components/chip/chip.constants.d.ts +20 -0
  18. package/dist/components/chip/chip.constants.js +23 -0
  19. package/dist/components/chip/chip.styles.d.ts +2 -0
  20. package/dist/components/chip/chip.styles.js +140 -0
  21. package/dist/components/chip/chip.types.d.ts +4 -0
  22. package/dist/components/chip/chip.types.js +1 -0
  23. package/dist/components/chip/index.d.ts +9 -0
  24. package/dist/components/chip/index.js +6 -0
  25. package/dist/components/filterchip/filterchip.component.d.ts +30 -0
  26. package/dist/components/filterchip/filterchip.component.js +64 -0
  27. package/dist/components/filterchip/filterchip.constants.d.ts +6 -0
  28. package/dist/components/filterchip/filterchip.constants.js +7 -0
  29. package/dist/components/filterchip/filterchip.styles.d.ts +2 -0
  30. package/dist/components/filterchip/filterchip.styles.js +23 -0
  31. package/dist/components/filterchip/index.d.ts +7 -0
  32. package/dist/components/filterchip/index.js +4 -0
  33. package/dist/components/input/input.constants.d.ts +0 -1
  34. package/dist/components/input/input.constants.js +0 -1
  35. package/dist/components/inputchip/index.d.ts +10 -0
  36. package/dist/components/inputchip/index.js +7 -0
  37. package/dist/components/inputchip/inputchip.component.d.ts +58 -0
  38. package/dist/components/inputchip/inputchip.component.js +113 -0
  39. package/dist/components/inputchip/inputchip.constants.d.ts +7 -0
  40. package/dist/components/inputchip/inputchip.constants.js +9 -0
  41. package/dist/components/inputchip/inputchip.styles.d.ts +2 -0
  42. package/dist/components/inputchip/inputchip.styles.js +53 -0
  43. package/dist/custom-elements.json +2955 -1199
  44. package/dist/index.d.ts +5 -1
  45. package/dist/index.js +5 -1
  46. package/dist/react/alertchip/index.d.ts +27 -0
  47. package/dist/react/alertchip/index.js +36 -0
  48. package/dist/react/chip/index.d.ts +28 -0
  49. package/dist/react/chip/index.js +37 -0
  50. package/dist/react/filterchip/index.d.ts +17 -0
  51. package/dist/react/filterchip/index.js +26 -0
  52. package/dist/react/index.d.ts +5 -1
  53. package/dist/react/index.js +5 -1
  54. package/dist/react/inputchip/index.d.ts +32 -0
  55. package/dist/react/inputchip/index.js +41 -0
  56. package/package.json +1 -1
@@ -1,20 +1,6 @@
1
- "use strict";(()=>{var Ta=Object.defineProperty;var Aa=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?Aa(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Ta(t,e,i),i};var Ar=globalThis,Sr=Ar.ShadowRoot&&(Ar.ShadyCSS===void 0||Ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,To=Symbol(),zi=new WeakMap,qt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==To)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(Sr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&zi.set(e,t))}return t}toString(){return this.cssText}},Di=o=>new qt(typeof o=="string"?o:o+"",void 0,To),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,s)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new qt(e,o,To)},Ao=(o,t)=>{if(Sr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Ar.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},_r=Sr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Di(e)})(o):o;var{is:Sa,defineProperty:_a,getOwnPropertyDescriptor:Ia,getOwnPropertyNames:wa,getOwnPropertySymbols:Ca,getPrototypeOf:La}=Object,Ve=globalThis,$i=Ve.trustedTypes,Ra=$i?$i.emptyScript:"",So=Ve.reactiveElementPolyfillSupport,Wt=(o,t)=>o,Xt={toAttribute(o,t){switch(t){case Boolean:o=o?Ra: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}},Ir=(o,t)=>!Sa(o,t),Pi={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:Ir},Ui,Vi;(Ui=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Vi=Ve.litPropertyMetadata)!=null||(Ve.litPropertyMetadata=new WeakMap);var Se=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=Pi){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&&_a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var n;let{get:i,set:s}=(n=Ia(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let c=i==null?void 0:i.call(this);s.call(this,a),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Pi}static _$Ei(){if(this.hasOwnProperty(Wt("elementProperties")))return;let t=La(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wt("properties"))){let e=this.properties,r=[...wa(e),...Ca(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(_r(i))}else t!==void 0&&e.push(_r(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 Ao(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 n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Xt).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),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 n=r.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:Xt;this._$Em=i,this[i]=a.fromAttribute(e,n.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:Ir)(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[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,a]of s)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.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){}},Fi;Se.elementStyles=[],Se.shadowRootOptions={mode:"open"},Se[Wt("elementProperties")]=new Map,Se[Wt("finalized")]=new Map,So==null||So({ReactiveElement:Se}),((Fi=Ve.reactiveElementVersions)!=null?Fi:Ve.reactiveElementVersions=[]).push("2.0.4");var jt=globalThis,wr=jt.trustedTypes,Hi=wr?wr.createPolicy("lit-html",{createHTML:o=>o}):void 0,wo="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Co="?"+_e,ka=`<${Co}>`,Je=document,Kt=()=>Je.createComment(""),Qt=o=>o===null||typeof o!="object"&&typeof o!="function",Lo=Array.isArray,Zi=o=>Lo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",_o=`[
2
- \f\r]`,Zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bi=/-->/g,Gi=/>/g,Ke=RegExp(`>|${_o}(?:([^\\s"'>=/]+)(${_o}*=${_o}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Yi=/'/g,qi=/"/g,ji=/^(?:script|style|textarea|title)$/i,Ro=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Ro(1),Nc=Ro(2),Oc=Ro(3),Ie=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Wi=new WeakMap,Qe=Je.createTreeWalker(Je,129);function Ki(o,t){if(!Lo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hi!==void 0?Hi.createHTML(t):t}var Qi=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",n=Zt;for(let a=0;a<e;a++){let c=o[a],m,p,u=-1,y=0;for(;y<c.length&&(n.lastIndex=y,p=n.exec(c),p!==null);)y=n.lastIndex,n===Zt?p[1]==="!--"?n=Bi:p[1]!==void 0?n=Gi:p[2]!==void 0?(ji.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=Ke):p[3]!==void 0&&(n=Ke):n===Ke?p[0]===">"?(n=i!=null?i:Zt,u=-1):p[1]===void 0?u=-2:(u=n.lastIndex-p[2].length,m=p[1],n=p[3]===void 0?Ke:p[3]==='"'?qi:Yi):n===qi||n===Yi?n=Ke:n===Bi||n===Gi?n=Zt:(n=Ke,i=void 0);let g=n===Ke&&o[a+1].startsWith("/>")?" ":"";s+=n===Zt?c+ka:u>=0?(r.push(m),c.slice(0,u)+wo+c.slice(u)+_e+g):c+_e+(u===-2?a:g)}return[Ki(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Jt=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,n=0,a=t.length-1,c=this.parts,[m,p]=Qi(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&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(wo)){let y=p[n++],g=i.getAttribute(u).split(_e),x=/([.?@])?(.*)/.exec(y);c.push({type:1,index:s,name:x[2],strings:g,ctor:x[1]==="."?Lr:x[1]==="?"?Rr:x[1]==="@"?kr:tt}),i.removeAttribute(u)}else u.startsWith(_e)&&(c.push({type:6,index:s}),i.removeAttribute(u));if(ji.test(i.tagName)){let u=i.textContent.split(_e),y=u.length-1;if(y>0){i.textContent=wr?wr.emptyScript:"";for(let g=0;g<y;g++)i.append(u[g],Kt()),Qe.nextNode(),c.push({type:2,index:++s});i.append(u[y],Kt())}}}else if(i.nodeType===8)if(i.data===Co)c.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(_e,u+1))!==-1;)c.push({type:7,index:s}),u+=_e.length-1}s++}}static createElement(t,e){let r=Je.createElement("template");return r.innerHTML=t,r}};function et(o,t,e=o,r){var n,a,c;if(t===Ie)return t;let i=r!==void 0?(n=e.o)==null?void 0:n[r]:e.l,s=Qt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?((c=e.o)!=null?c:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=et(o,i._$AS(o,t.values),i,r)),t}var Cr=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 s=Qe.nextNode(),n=0,a=0,c=r[0];for(;c!==void 0;){if(n===c.index){let p;c.type===2?p=new wt(s,s.nextSibling,this,t):c.type===1?p=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(p=new Nr(s,this,t)),this._$AV.push(p),c=r[++a]}n!==(c==null?void 0:c.index)&&(s=Qe.nextNode(),n++)}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 s;this.type=2,this._$AH=b,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=et(this,t,e),Qt(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==Ie&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zi(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&Qt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Je.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=Jt.createElement(Ki(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{let n=new Cr(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Wi.get(t.strings);return e===void 0&&Wi.set(t.strings,e=new Jt(t)),e}k(t){Lo(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(Kt()),this.O(Kt()),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))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=b,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=b}_$AI(t,e=this,r,i){let s=this.strings,n=!1;if(s===void 0)t=et(this,t,e,0),n=!Qt(t)||t!==this._$AH&&t!==Ie,n&&(this._$AH=t);else{let a=t,c,m;for(t=s[0],c=0;c<s.length-1;c++)m=et(this,a[r+c],e,c),m===Ie&&(m=this._$AH[c]),n||(n=!Qt(m)||m!==this._$AH[c]),m===b?t=b:t!==b&&(t+=(m!=null?m:"")+s[c+1]),this._$AH[c]=m}n&&!i&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Lr=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},Rr=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}},kr=class extends tt{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var n;if((t=(n=et(this,t,e,0))!=null?n:b)===Ie)return;let r=this._$AH,i=t===b&&r!==b||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==b&&(r===b||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)}},Nr=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)}},Ji={M:wo,P:_e,A:Co,C:1,L:Qi,R:Cr,D:Zi,V:et,I:wt,H:tt,N:Rr,U:kr,B:Lr,F:Nr},Io=jt.litHtmlPolyfillSupport,Xi;Io==null||Io(Jt,wt),((Xi=jt.litHtmlVersions)!=null?Xi:jt.litHtmlVersions=[]).push("3.2.0");var es=(o,t,e)=>{var s,n;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let a=(n=e==null?void 0:e.renderBefore)!=null?n:null;r._$litPart$=i=new wt(t.insertBefore(Kt(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var Fe=class extends Se{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=es(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 Ie}},ts;Fe._$litElement$=!0,Fe.finalized=!0,(ts=globalThis.litElementHydrateSupport)==null||ts.call(globalThis,{LitElement:Fe});var ko=globalThis.litElementPolyfillSupport;ko==null||ko({LitElement:Fe});var rs;((rs=globalThis.litElementVersions)!=null?rs:globalThis.litElementVersions=[]).push("4.1.0");var Na={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:Ir},Oa=(o=Na,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:n}=e;return{set(a){let c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,o)},init(a){return a!==void 0&&this.P(n,void 0,o),a}}}if(r==="setter"){let{name:n}=e;return function(a){let c=this[n];t.call(this,a),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(t,e)=>typeof e=="object"?Oa(o,t,e):((r,i,s)=>{let n=i.hasOwnProperty(s);return i.constructor.createProperty(s,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}function W(o){return d({...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 Or(o,t){return(e,r,i)=>{let s=n=>{var a,c;return(c=(a=n.renderRoot)==null?void 0:a.querySelector(o))!=null?c:null};if(t){let{get:n,set:a}=typeof r=="object"?e:i!=null?i:(()=>{let c=Symbol();return{get(){return this[c]},set(m){this[c]=m}}})();return we(e,r,{get(){let c=n.call(this);return c===void 0&&(c=s(this),(c!==null||this.hasUpdated)&&a.call(this,c)),c}})}return we(e,r,{get(){return s(this)}})}}function rt(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 c,m;let n=(c=this.renderRoot)==null?void 0:c.querySelector(s),a=(m=n==null?void 0:n.assignedElements(o))!=null?m:[];return i===void 0?a:a.filter(p=>p.matches(i))}})}}function os(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var n,a;let s=(n=this.renderRoot)==null?void 0:n.querySelector(i);return(a=s==null?void 0:s.assignedNodes(o))!=null?a:[]}})}}var A=o=>o!=null?o:b;var is=f`
4
- :host {
5
- box-sizing: border-box;
6
- }
7
-
8
- :host *,
9
- :host *::before,
10
- :host *::after {
11
- box-sizing: inherit;
12
- }
13
- `;var Mr=class extends Fe{static register(t){customElements.get(t)||customElements.define(t,this)}};Mr.styles=[is];var ss=Mr;var E=ss;var He=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 Ct=class{constructor(t,e,r,i){var s;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(n,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=n,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(n,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let n=e;this.context=n.context,this.callback=n.callback,this.subscribe=(s=n.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 He(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 No=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Lt=class extends zr{constructor(t,e,r){var i,s;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=n=>{let a=n.composedPath()[0];n.context===this.context&&a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{let a=n.composedPath()[0];if(n.context!==this.context||a===this.host)return;let c=new Set;for(let[m,{consumerHost:p}]of this.subscriptions)c.has(m)||(c.add(m),p.dispatchEvent(new He(this.context,m,!0)));n.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 No(this.context))}};var Ma=f`
14
- :host {
15
- display: contents;
16
- }
17
- `,as=Ma;var Dr=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new Lt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};Dr.styles=[...E.styles,as];var ls=Dr;var Rt=ls;var za={PREFIX:"mdc",SEPARATOR:"-"},Da={NAMESPACE:za},Oo=Da;var $a=o=>[Oo.NAMESPACE.PREFIX,o].join(Oo.NAMESPACE.SEPARATOR),v={constructTagName:$a};var cs=v.constructTagName("avatar"),Y={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Mo=99,Pa="user-regular",O={24:24,32:32,48:48,64:64,72:72,88:88,124:124},kt={TYPE:Y.PHOTO,SIZE:O[32],ICON_NAME:Pa};var $r=o=>{class t extends o{constructor(){super(...arguments);this.size=kt.SIZE;this.isTyping=!1}}return l([d({type:String})],t.prototype,"src",2),l([d({type:String})],t.prototype,"initials",2),l([d({type:String})],t.prototype,"presence",2),l([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([d({type:Number})],t.prototype,"counter",2),l([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var fe=o=>{class t extends o{}return l([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var k=f`
1
+ "use strict";(()=>{var Yn=Object.defineProperty;var qn=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?qn(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&&Yn(t,e,i),i};var Nr=globalThis,Or=Nr.ShadowRoot&&(Nr.ShadyCSS===void 0||Nr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,No=Symbol(),Zi=new WeakMap,Jt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==No)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(Or&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Zi.set(e,t))}return t}toString(){return this.cssText}},ji=o=>new Jt(typeof o=="string"?o:o+"",void 0,No),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 Jt(e,o,No)},Oo=(o,t)=>{if(Or)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Nr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Mr=Or?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ji(e)})(o):o;var{is:Wn,defineProperty:Xn,getOwnPropertyDescriptor:Zn,getOwnPropertyNames:jn,getOwnPropertySymbols:Kn,getPrototypeOf:Qn}=Object,Fe=globalThis,Ki=Fe.trustedTypes,Jn=Ki?Ki.emptyScript:"",Mo=Fe.reactiveElementPolyfillSupport,er=(o,t)=>o,tr={toAttribute(o,t){switch(t){case Boolean:o=o?Jn: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}},zr=(o,t)=>!Wn(o,t),Qi={attribute:!0,type:String,converter:tr,reflect:!1,hasChanged:zr},Ji,es;(Ji=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(es=Fe.litPropertyMetadata)!=null||(Fe.litPropertyMetadata=new WeakMap);var _e=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=Qi){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&&Xn(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=Zn(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:Qi}static _$Ei(){if(this.hasOwnProperty(er("elementProperties")))return;let t=Qn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(er("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(er("properties"))){let e=this.properties,r=[...jn(e),...Kn(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(Mr(i))}else t!==void 0&&e.push(Mr(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 Oo(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:tr).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:tr;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:zr)(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){}},ts;_e.elementStyles=[],_e.shadowRootOptions={mode:"open"},_e[er("elementProperties")]=new Map,_e[er("finalized")]=new Map,Mo==null||Mo({ReactiveElement:_e}),((ts=Fe.reactiveElementVersions)!=null?ts:Fe.reactiveElementVersions=[]).push("2.0.4");var or=globalThis,Dr=or.trustedTypes,rs=Dr?Dr.createPolicy("lit-html",{createHTML:o=>o}):void 0,$o="$lit$",Ie=`lit$${Math.random().toFixed(9).slice(2)}$`,Po="?"+Ie,el=`<${Po}>`,Je=document,ir=()=>Je.createComment(""),sr=o=>o===null||typeof o!="object"&&typeof o!="function",Uo=Array.isArray,cs=o=>Uo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",zo=`[
2
+ \f\r]`,rr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,os=/-->/g,is=/>/g,Ke=RegExp(`>|${zo}(?:([^\\s"'>=/]+)(${zo}*=${zo}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ss=/'/g,as=/"/g,ds=/^(?:script|style|textarea|title)$/i,Vo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Vo(1),cd=Vo(2),dd=Vo(3),ke=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ns=new WeakMap,Qe=Je.createTreeWalker(Je,129);function ms(o,t){if(!Uo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return rs!==void 0?rs.createHTML(t):t}var ps=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",a=rr;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===rr?p[1]==="!--"?a=os:p[1]!==void 0?a=is:p[2]!==void 0?(ds.test(p[2])&&(i=RegExp("</"+p[2],"g")),a=Ke):p[3]!==void 0&&(a=Ke):a===Ke?p[0]===">"?(a=i!=null?i:rr,u=-1):p[1]===void 0?u=-2:(u=a.lastIndex-p[2].length,m=p[1],a=p[3]===void 0?Ke:p[3]==='"'?as:ss):a===as||a===ss?a=Ke:a===os||a===is?a=rr:(a=Ke,i=void 0);let b=a===Ke&&o[n+1].startsWith("/>")?" ":"";s+=a===rr?d+el:u>=0?(r.push(m),d.slice(0,u)+$o+d.slice(u)+Ie+b):d+Ie+(u===-2?n:b)}return[ms(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},ar=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]=ps(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($o)){let x=p[a++],b=i.getAttribute(u).split(Ie),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?Pr:E[1]==="?"?Ur:E[1]==="@"?Vr:tt}),i.removeAttribute(u)}else u.startsWith(Ie)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(ds.test(i.tagName)){let u=i.textContent.split(Ie),x=u.length-1;if(x>0){i.textContent=Dr?Dr.emptyScript:"";for(let b=0;b<x;b++)i.append(u[b],ir()),Qe.nextNode(),d.push({type:2,index:++s});i.append(u[x],ir())}}}else if(i.nodeType===8)if(i.data===Po)d.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(Ie,u+1))!==-1;)d.push({type:7,index:s}),u+=Ie.length-1}s++}}static createElement(t,e){let r=Je.createElement("template");return r.innerHTML=t,r}};function et(o,t,e=o,r){var a,n,d;if(t===ke)return t;let i=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=sr(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=et(o,i._$AS(o,t.values),i,r)),t}var $r=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 s=Qe.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new Ct(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new Fr(s,this,t)),this._$AV.push(p),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=Qe.nextNode(),a++)}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++}},Ct=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=et(this,t,e),sr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):cs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==v&&sr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Je.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=ar.createElement(ms(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 $r(i,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=ns.get(t.strings);return e===void 0&&ns.set(t.strings,e=new ar(t)),e}k(t){Uo(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(ir()),this.O(ir()),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))}},tt=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=et(this,t,e,0),a=!sr(t)||t!==this._$AH&&t!==ke,a&&(this._$AH=t);else{let n=t,d,m;for(t=s[0],d=0;d<s.length-1;d++)m=et(this,n[r+d],e,d),m===ke&&(m=this._$AH[d]),a||(a=!sr(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:"")}},Pr=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Ur=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Vr=class extends tt{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=et(this,t,e,0))!=null?a:v)===ke)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)}},Fr=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)}},hs={M:$o,P:Ie,A:Po,C:1,L:ps,R:$r,D:cs,V:et,I:Ct,H:tt,N:Ur,U:Vr,B:Pr,F:Fr},Do=or.litHtmlPolyfillSupport,ls;Do==null||Do(ar,Ct),((ls=or.litHtmlVersions)!=null?ls:or.litHtmlVersions=[]).push("3.2.0");var us=(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 Ct(t.insertBefore(ir(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var He=class extends _e{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=us(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return ke}},fs;He._$litElement$=!0,He.finalized=!0,(fs=globalThis.litElementHydrateSupport)==null||fs.call(globalThis,{LitElement:He});var Fo=globalThis.litElementPolyfillSupport;Fo==null||Fo({LitElement:He});var gs;((gs=globalThis.litElementVersions)!=null?gs:globalThis.litElementVersions=[]).push("4.1.0");var tl={attribute:!0,type:String,converter:tr,reflect:!1,hasChanged:zr},rl=(o=tl,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"?rl(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 W(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 Hr(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 rt(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 bs(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 w=f`
18
4
  :host {
19
5
  align-items: center;
20
6
  display: flex;
@@ -22,7 +8,7 @@
22
8
  justify-content: center;
23
9
  width: fit-content;
24
10
  }
25
- `,z=(o=!1)=>{let t=f`
11
+ `,O=(o=!1)=>{let t=f`
26
12
  :host {
27
13
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
28
14
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
@@ -79,280 +65,184 @@
79
65
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
80
66
  }
81
67
  }
82
- `]};var Ua=[k,f`
68
+ `]};var ol=f`
83
69
  :host {
84
- --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
85
- --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
86
- --mdc-avatar-loading-indicator-background-color: var(--mds-color-theme-common-text-primary-disabled);
87
- --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatar-default-foreground-color);
88
- --mdc-avatar-loading-overlay-background-color: var(--mds-color-theme-common-overlays-secondary-normal);
89
- }
90
- :host([size="124"])::part(content) {
91
- width: 7.75rem;
92
- height: 7.75rem;
93
- }
94
- :host([size="88"])::part(content) {
95
- width: 5.5rem;
96
- height: 5.5rem;
97
- }
98
- :host([size="72"])::part(content) {
99
- width: 4.5rem;
100
- height: 4.5rem;
101
- }
102
- :host([size="64"])::part(content) {
103
- width: 4rem;
104
- height: 4rem;
105
- }
106
- :host([size="48"])::part(content) {
107
- width: 3rem;
108
- height: 3rem;
109
- }
110
- :host([size="32"])::part(content) {
111
- width: 2rem;
112
- height: 2rem;
113
- }
114
- :host([size="24"])::part(content) {
115
- width: 1.5rem;
116
70
  height: 1.5rem;
71
+ gap: 0.25rem;
72
+ padding: 0 0.5rem;
73
+ border-radius: 0.25rem;
74
+ border: 1px solid;
75
+ cursor: pointer;
76
+
77
+ --mdc-chip-color: var(--mds-color-theme-text-primary-normal);
78
+ --mdc-chip-border-color: var(--mds-color-theme-outline-button-normal);
79
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-default-normal);
80
+ --mdc-chip-icon-color: var(--mds-color-theme-text-secondary-normal);
81
+
82
+ border-color: var(--mdc-chip-border-color);
83
+ background: var(--mdc-chip-background-color);
117
84
  }
118
- :host([size="124"])::part(loader) {
119
- transform: scale(1.5);
85
+
86
+ :host::part(label){
87
+ color: var(--mdc-chip-color);
120
88
  }
121
- :host([size="88"])::part(loader) {
122
- transform: scale(1.2);
89
+
90
+ :host([variant="neutral"])::part(icon){
91
+ color: var(--mdc-chip-icon-color);
123
92
  }
124
- :host([size="72"])::part(loader),
125
- :host([size="64"])::part(loader) {
126
- transform: scale(0.8);
93
+
94
+
95
+ :host([variant="neutral"]:hover){
96
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-default-hover);
127
97
  }
128
- :host([size="48"])::part(loader) {
129
- transform: scale(0.6);
98
+
99
+ :host([variant="neutral"]:active){
100
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-default-active);
130
101
  }
131
- :host([size="32"])::part(loader) {
132
- transform: scale(0.4);
102
+
103
+ :host([variant="error"])::part(icon){
104
+ --mdc-chip-icon-color: var(--mds-color-theme-text-error-normal);
133
105
  }
134
- :host([size="24"])::part(loader) {
135
- transform: scale(0.3);
106
+
107
+ :host([variant="error"]){
108
+ --mdc-chip-border-color: var(--mds-color-theme-outline-cancel-normal);
109
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-error-normal);
136
110
  }
137
- :host::part(content) {
138
- width: 2rem;
139
- height: 2rem;
140
- background-color: var(--mdc-avatar-default-background-color);
141
- color: var(--mdc-avatar-default-foreground-color);
142
- border-radius: 100vh;
143
- position: relative;
144
- display: grid;
145
- place-items: center;
111
+
112
+ :host([variant="error"]:hover){
113
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-error-hover);
146
114
  }
147
- :host::part(photo) {
148
- border-radius: 100vh;
149
- height: 100%;
150
- width: 100%;
151
- object-fit: cover;
152
- overflow: hidden;
115
+
116
+ :host([variant="error"]:active){
117
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-error-active);
153
118
  }
154
- :host::part(presence) {
155
- position: absolute;
156
- bottom: 0;
157
- right: 0;
119
+
120
+ :host([variant="warning"])::part(icon){
121
+ --mdc-chip-icon-color: var(--mds-color-theme-text-warning-normal);
158
122
  }
159
- :host::part(loading-wrapper) {
160
- position: absolute;
161
- border-radius: 100vh;
162
- width: 100%;
163
- height: 100%;
164
- background-color: var(--mdc-avatar-loading-overlay-background-color);
165
- display: grid;
166
- place-items: center;
123
+
124
+ :host([variant="warning"]){
125
+ --mdc-chip-border-color: var(--mds-color-theme-outline-warning-normal);
126
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-warning-normal);
167
127
  }
168
- :host::part(loader) {
169
- position: absolute;
170
- width: 1rem;
171
- transform: scale(0.4);
172
- aspect-ratio: 1;
173
- border-radius: 100vh;
174
- animation: loading-key 1s infinite linear alternate;
128
+
129
+ :host([variant="warning"]:hover){
130
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-warning-hover);
175
131
  }
176
- @keyframes loading-key {
177
- 0% {
178
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color),
179
- -1.25rem 0 var(--mdc-avatar-loading-indicator-background-color);
180
- background: var(--mdc-avatar-loading-indicator-foreground-color);
181
- }
182
- 33% {
183
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color),
184
- -1.25rem 0 var(--mdc-avatar-loading-indicator-background-color);
185
- background: var(--mdc-avatar-loading-indicator-background-color);
186
- }
187
- 66% {
188
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-background-color),
189
- -1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color);
190
- background: var(--mdc-avatar-loading-indicator-background-color);
191
- }
192
- 100%{
193
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-background-color),
194
- -1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color);
195
- background: var(--mdc-avatar-loading-indicator-foreground-color);
196
- }
132
+
133
+ :host([variant="warning"]:active){
134
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-warning-active);
197
135
  }
198
136
 
199
- /* High Contrast Mode */
200
- @media (forced-colors: active) {
201
- :host::part(content) {
202
- outline: 0.125rem solid;
203
- }
137
+ :host([variant="success"])::part(icon){
138
+ --mdc-chip-icon-color: var(--mds-color-theme-text-success-normal);
204
139
  }
205
- `],ds=Ua;var ms=v.constructTagName("presence"),B={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"},Nt={TYPE:B.ACTIVE,SIZE:U.SMALL};var er=v.constructTagName("text"),w={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},N={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Z={TYPE:w.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:N.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var ps=o=>({[O[124]]:U.XX_LARGE,[O[88]]:U.X_LARGE,[O[72]]:U.LARGE,[O[64]]:U.MIDSIZE,[O[48]]:U.SMALL,[O[32]]:U.X_SMALL,[O[24]]:U.XX_SMALL})[o]||U.X_SMALL,hs=o=>({[O[124]]:4.75,[O[88]]:3,[O[72]]:2.5,[O[64]]:2.25,[O[48]]:1.75,[O[32]]:1.25,[O[24]]:1})[o]||1.25,us=o=>({[O[124]]:w.HEADING_XLARGE_MEDIUM,[O[88]]:w.HEADING_LARGE_MEDIUM,[O[72]]:w.HEADING_MIDSIZE_MEDIUM,[O[64]]:w.HEADING_SMALL_MEDIUM,[O[48]]:w.HEADING_SMALL_MEDIUM,[O[32]]:w.BODY_MIDSIZE_MEDIUM,[O[24]]:w.BODY_SMALL_MEDIUM})[o]||w.BODY_MIDSIZE_MEDIUM;var tr=class extends $r(fe(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)?b:this.presence?h`
206
- <mdc-presence part="presence" type="${this.presence}" size="${ps(this.size)}"></mdc-presence>
207
- `:b}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return h`
208
- <img
209
- part="photo"
210
- src="${A(this.src)}"
211
- aria-hidden="true"
212
- ?hidden="${!this.isPhotoLoaded}"
213
- @load="${this.handleOnLoad}"
214
- @error="${this.handleOnError}"
215
- />
216
- `}iconTemplate(){let e=this.iconName||kt.ICON_NAME;return h`
217
- <mdc-icon
218
- name="${A(e)}"
219
- length-unit="rem"
220
- size="${hs(this.size)}"
221
- ></mdc-icon>
222
- `}textTemplate(e){return h`
223
- <mdc-text
224
- type="${us(this.size)}"
225
- tagname="span"
226
- >
227
- ${e}
228
- </mdc-text>
229
- `}generateCounterText(e){return e<0?"0":e>Mo?`${Mo}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===Y.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===Y.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Y.PHOTO:this.iconName?Y.ICON:this.initials?Y.TEXT:this.counter||this.counter===0?Y.COUNTER:Y.ICON}getTemplateBasedOnType(e){switch(e){case Y.PHOTO:return this.photoTemplate();case Y.TEXT:case Y.COUNTER:return this.generateTextContent(e);case Y.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?h`<div part="loading-wrapper"><div part="loader"></div></div>`:b}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?b:e===Y.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():b}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return h`
230
- <div part="content" aria-hidden="true">
231
- ${this.getPhotoPlaceHolderContent(e)}
232
- ${this.getTemplateBasedOnType(e)}
233
- ${this.getLoadingContent()}
234
- ${this.getPresenceTemplateBasedOnType(e)}
235
- </div>
236
- `}};tr.styles=[...E.styles,...ds],l([W()],tr.prototype,"isPhotoLoaded",2);var zo=tr;var Va=[k,f`
237
- :host {
238
- --mdc-icon-fill-color: currentColor;
239
- --mdc-icon-size: var(--computed-icon-size);
240
- --mdc-icon-border-radius: 0.25rem;
241
140
 
242
- height: var(--mdc-icon-size);
243
- width: var(--mdc-icon-size);
244
- border-radius: var(--mdc-icon-border-radius);
245
- }
246
- :host::part(icon) {
247
- height: 100%;
248
- width: 100%;
249
- fill: var(--mdc-icon-fill-color);
250
- }
251
- `,...z()],fs=Va;var Fa=o=>{let{host:t,context:e,subscribe:r}=o;return new Ct(t,{context:e,subscribe:r!=null?r:!0})},Ha={consume:Fa},gs=Ha;var Pr=v.constructTagName("iconprovider"),bs=["svg"],vs=["em","rem","px","%"],Ba={px:16,em:1,rem:1,"%":100},Ce={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ba.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ur=class{};Ur.context=Pr;var Vr=Ur;var ge=class extends Rt{constructor(){super({context:Vr.context,initialValue:new Vr});this.iconSet=Ce.ICON_SET;this.fileExtension=Ce.FILE_EXTENSION;this.lengthUnit=Ce.LENGTH_UNIT;this.size=Ce.SIZE}static get Context(){return Vr.context}updateValuesInContext(){this.fileExtension&&bs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ce.FILE_EXTENSION,this.context.value.fileExtension=Ce.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&&vs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ce.LENGTH_UNIT,this.context.value.lengthUnit=Ce.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([d({type:String,attribute:"icon-set",reflect:!0})],ge.prototype,"iconSet",2),l([d({type:String})],ge.prototype,"url",2),l([d({type:String,attribute:"file-extension",reflect:!0})],ge.prototype,"fileExtension",2),l([d({type:String,attribute:"length-unit",reflect:!0})],ge.prototype,"lengthUnit",2),l([d({type:Number,reflect:!0})],ge.prototype,"size",2),l([d({type:String,attribute:"cache-strategy"})],ge.prototype,"cacheStrategy",2),l([d({type:String,attribute:"cache-name"})],ge.prototype,"cacheName",2);var rr=ge;var or={},ys=async o=>(or[o]===void 0&&(or[o]=new Map),{async set(t,e){or[o].set(t.url,await e.text())},async get(t){return or[o].get(t.url)},async delete(t){or[o].delete(t.url)}}),xs=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)}}},Es=async(o,t)=>t==="in-memory-cache"?ys(o):xs(o);var Ts=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),As=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let n=s(),a=new Request(`${o}/${t}.${e}`,{signal:n});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ts(a).then(c=>c.text()):Es(i,r).then(c=>c.get(a).then(m=>m||Ts(a.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=c.set)==null?void 0:u.call(c,a,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Ss=v.constructTagName("icon"),Do={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=Do.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=gs.consume({host:this,context:rr.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:n,cacheStrategy:a}=this.iconProviderContext.value;if(n==="custom-icons"&&i&&r&&this.name){let c=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return As({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:a,renewSignal:c}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(n==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(c=>{this.handleIconLoadedSuccess(c.default())}).catch(c=>{this.handleIconLoadedFailure(c)})}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:Do.SIZE}updated(e){var r,i,s,n;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),(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=(n=this.iconProviderContext.value)==null?void 0:n.size,this.updateSize())}render(){return h` ${this.iconData} `}};j.styles=[...E.styles,...fs],l([W()],j.prototype,"iconData",2),l([W()],j.prototype,"lengthUnitFromContext",2),l([W()],j.prototype,"sizeFromContext",2),l([d({type:String,reflect:!0})],j.prototype,"name",2),l([d({type:Number})],j.prototype,"size",2),l([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),l([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),l([d({type:String,attribute:"aria-labelledby"})],j.prototype,"ariaLabelledBy",2),l([W()],j.prototype,"abortController",2);var $o=j;$o.register(Ss);var Ga=$o;var Ya=[k,f`
252
- :host {
253
- --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
254
- --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
255
- --mdc-presence-away-calling-background-color: var(--mds-color-theme-indicator-locked);
256
- --mdc-presence-busy-background-color: var(--mds-color-theme-indicator-unstable);
257
- --mdc-presence-dnd-background-color: var(--mds-color-theme-indicator-attention);
258
- --mdc-presence-meeting-background-color: var(--mds-color-theme-indicator-unstable);
259
- --mdc-presence-on-call-background-color: var(--mds-color-theme-indicator-unstable);
260
- --mdc-presence-on-device-background-color: var(--mds-color-theme-indicator-locked);
261
- --mdc-presence-on-mobile-background-color: var(--mds-color-theme-indicator-locked);
262
- --mdc-presence-pause-background-color: var(--mds-color-theme-indicator-locked);
263
- --mdc-presence-pto-background-color: var(--mds-color-theme-indicator-locked);
264
- --mdc-presence-presenting-background-color: var(--mds-color-theme-indicator-attention);
265
- --mdc-presence-quiet-background-color: var(--mds-color-theme-indicator-locked);
266
- --mdc-presence-scheduled-background-color: var(--mds-color-theme-indicator-unstable);
267
- --mdc-presence-overlay-background-color: var(--mds-color-theme-background-solid-primary-normal);
268
- }
141
+ :host([variant="success"]){
142
+ --mdc-chip-border-color: var(--mds-color-theme-outline-join-normal);
143
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-success-normal);
144
+ }
269
145
 
270
- .mdc-presence {
271
- border-radius: 50%;
272
- background-color: var(--mdc-presence-overlay-background-color);
273
- display: flex;
274
- justify-content: center;
275
- align-items: center;
276
- }
277
- .mdc-presence__xx_small,
278
- .mdc-presence__x_small,
279
- .mdc-presence__small {
280
- width: 1.0625rem;
281
- height: 1.0625rem;
282
- }
283
- .mdc-presence__midsize {
284
- width: 1.419375rem;
285
- height: 1.419375rem;
286
- }
287
- .mdc-presence__large {
288
- width: 1.596875rem;
289
- height: 1.596875rem;
290
- }
291
- .mdc-presence__x_large {
292
- width: 1.951875rem;
293
- height: 1.951875rem;
294
- }
295
- .mdc-presence__xx_large {
296
- width: 2.75rem;
297
- height: 2.75rem;
298
- }
146
+ :host([variant="success"]:hover){
147
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-success-hover);
148
+ }
299
149
 
300
- .mdc-presence-icon {
301
- border-radius: 50%;
302
- }
303
- .mdc-presence-icon__active {
304
- color: var(--mdc-presence-active-background-color);
305
- }
306
- .mdc-presence-icon__away {
307
- color: var(--mdc-presence-away-background-color);
308
- }
309
- .mdc-presence-icon__away-calling {
310
- color: var(--mdc-presence-away-calling-background-color);
311
- }
312
- .mdc-presence-icon__busy {
313
- color: var(--mdc-presence-busy-background-color);
314
- }
315
- .mdc-presence-icon__dnd {
316
- color: var(--mdc-presence-dnd-background-color);
317
- }
318
- .mdc-presence-icon__meeting {
319
- color: var(--mdc-presence-meeting-background-color);
320
- }
321
- .mdc-presence-icon__on-call {
322
- color: var(--mdc-presence-on-call-background-color);
323
- }
324
- .mdc-presence-icon__on-device {
325
- color: var(--mdc-presence-on-device-background-color);
326
- }
327
- .mdc-presence-icon__on-mobile {
328
- color: var(--mdc-presence-on-mobile-background-color);
329
- }
330
- .mdc-presence-icon__pause {
331
- color: var(--mdc-presence-pause-background-color);
332
- }
333
- .mdc-presence-icon__pto {
334
- color: var(--mdc-presence-pto-background-color);
335
- }
336
- .mdc-presence-icon__presenting {
337
- color: var(--mdc-presence-presenting-background-color);
338
- }
339
- .mdc-presence-icon__quiet {
340
- color: var(--mdc-presence-quiet-background-color);
341
- }
342
- .mdc-presence-icon__scheduled {
343
- color: var(--mdc-presence-scheduled-background-color);
344
- }
345
- `],_s=Ya;var Is=o=>{switch(o){case B.AWAY:return"recents-presence-badge-filled";case B.AWAY_CALLING:return"away-calling-presence-filled";case B.BUSY:return"busy-presence-bold";case B.DND:return"dnd-presence-badge-filled";case B.MEETING:return"camera-filled";case B.ON_CALL:return"handset-filled";case B.ON_DEVICE:return"generic-device-video-badge-filled";case B.ON_MOBILE:return"phone-badge-filled";case B.PAUSE:return"pause-badge-filled";case B.PTO:return"pto-presence-filled";case B.PRESENTING:return"share-screen-badge-filled";case B.QUIET:return"quiet-hours-presence-filled";case B.SCHEDULED:return"meetings-presence-badge-filled";case B.ACTIVE:default:return"active-presence-small-filled"}};var ot=class extends E{constructor(){super(...arguments);this.type=Nt.TYPE;this.size=Nt.SIZE;this.currentIconType=Nt.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=Nt.SIZE,.875}}get icon(){let e=Is(this.type);return e==="active-presence-small-filled"&&(this.type=Nt.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`
346
- <div class="mdc-presence mdc-presence__${this.size}">
347
- <mdc-icon
348
- class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
349
- name="${this.icon}"
350
- size="${this.iconSize}"
351
- @load="${this.handleOnLoad}"
352
- @error="${this.handleOnError}"
353
- ></mdc-icon>
354
- </div>
355
- `}};ot.styles=[...E.styles,..._s],l([d({type:String,reflect:!0})],ot.prototype,"type",2),l([d({type:String,reflect:!0})],ot.prototype,"size",2),l([W()],ot.prototype,"currentIconType",2);var Po=ot;Po.register(ms);var qa=Po;var ws=f`
150
+ :host([variant="success"]:active){
151
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-success-active);
152
+ }
153
+
154
+ :host([variant="informational"])::part(icon){
155
+ --mdc-chip-icon-color: var(--mds-color-theme-text-accent-normal);
156
+ }
157
+
158
+ :host([variant="informational"]){
159
+ --mdc-chip-border-color: var(--mds-color-theme-outline-theme-normal);
160
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-normal);
161
+ }
162
+
163
+ :host([variant="informational"]:hover){
164
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-hover);
165
+ }
166
+
167
+ :host([variant="informational"]:active){
168
+ --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
169
+ }
170
+ `,vs=[w,ol,...O()];var ys=f`
171
+ :host {
172
+ box-sizing: border-box;
173
+ }
174
+
175
+ :host *,
176
+ :host *::before,
177
+ :host *::after {
178
+ box-sizing: inherit;
179
+ }
180
+ `;var Br=class extends He{static register(t){customElements.get(t)||customElements.define(t,this)}};Br.styles=[ys];var xs=Br;var y=xs;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 Gr=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 Ho=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Rt=class extends Gr{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 Ho(this.context))}};var il=f`
181
+ :host {
182
+ display: contents;
183
+ }
184
+ `,Ts=il;var Yr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Rt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};Yr.styles=[...y.styles,Ts];var As=Yr;var Nt=As;var sl={PREFIX:"mdc",SEPARATOR:"-"},al={NAMESPACE:sl},Bo=al;var nl=o=>[Bo.NAMESPACE.PREFIX,o].join(Bo.NAMESPACE.SEPARATOR),g={constructTagName:nl};var Km=g.constructTagName("buttonsimple"),nr={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"},qr={SIZE:nr[32],TYPE:Ot.BUTTON,ROLE:"button"};var lr=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"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},j={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ss=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:C.SPAN,SIZE:nr[24],ROLE:"button"};var _s=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 ee=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Wr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var ll=[w,f`
185
+ :host {
186
+ border: 0.0625rem solid transparent;
187
+ cursor: pointer;
188
+
189
+ background-color: var(--mds-color-theme-text-primary-normal);
190
+ color: var(--mds-color-theme-inverted-text-secondary-normal);
191
+ font-size: var(--mds-font-apps-body-midsize-regular-font-size);
192
+ outline: none;
193
+
194
+ --mdc-button-height-size-124: 7.75rem;
195
+ --mdc-button-height-size-88: 5.5rem;
196
+ --mdc-button-height-size-72: 4.5rem;
197
+ --mdc-button-height-size-64: 4rem;
198
+ --mdc-button-height-size-52: 3.25rem;
199
+ --mdc-button-height-size-40: 2.5rem;
200
+ --mdc-button-height-size-32: 2rem;
201
+ --mdc-button-height-size-28: 1.75rem;
202
+ --mdc-button-height-size-24: 1.5rem;
203
+ --mdc-button-height-size-20: 1.25rem;
204
+ }
205
+
206
+ :host([disabled]), :host([soft-disabled]){
207
+ background-color: var(--mds-color-theme-text-primary-disabled);
208
+ }
209
+ :host([size="124"]){
210
+ height: var(--mdc-button-height-size-124);
211
+ }
212
+ :host([size="88"]){
213
+ height: var(--mdc-button-height-size-88);
214
+ }
215
+ :host([size="72"]){
216
+ height: var(--mdc-button-height-size-72);
217
+ }
218
+ :host([size="64"]){
219
+ height: var(--mdc-button-height-size-64);
220
+ }
221
+ :host([size="52"]){
222
+ height: var(--mdc-button-height-size-52);
223
+ }
224
+ :host([size="40"]){
225
+ height: var(--mdc-button-height-size-40);
226
+ }
227
+ :host([size="32"]){
228
+ height: var(--mdc-button-height-size-32);
229
+ }
230
+ :host([size="28"]){
231
+ height: var(--mdc-button-height-size-28);
232
+ font-size: var(--mds-font-size-body-midsize);
233
+ }
234
+ :host([size="24"]){
235
+ height: var(--mdc-button-height-size-24);
236
+ }
237
+ :host([size="20"]){
238
+ height: var(--mdc-button-height-size-20);
239
+ }
240
+ `,...O()],Is=ll;var ve=class extends Wr(ee(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=qr.SIZE;this.role=qr.ROLE;this.type=qr.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
+ <slot></slot>
242
+ `}};ve.formAssociated=!0,ve.styles=[...y.styles,...Is],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 te=ve;var zt=class extends te{constructor(){super();this.variant=Mt.VARIANT;this.label="";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="${_s(this.variant)}" length-unit="rem" size="1"></mdc-icon>
244
+ <mdc-text part="label" type="${Mt.TEXT_TYPE}" tagname="${Mt.TAG_NAME}">${this.label}</mdc-text>
245
+ `}};zt.styles=[...y.styles,...vs],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var Go=zt;var ks=f`
356
246
  :host::part(text) {
357
247
  font-size: unset;
358
248
  font-weight: unset;
@@ -595,79 +485,294 @@
595
485
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
596
486
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
597
487
  }
598
- `;var Wa=[f`
488
+ `;var cl=[f`
599
489
  :host {
600
490
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
601
491
 
602
- display: block;
603
- font-family: var(--mdc-text-font-family);
492
+ display: block;
493
+ font-family: var(--mdc-text-font-family);
494
+ }
495
+ `,ks],ws=cl;var Dt=class extends y{constructor(){super(...arguments);this.type=j.TYPE;this.tagname=j.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return h`<h1 part=${j.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return h`<h2 part=${j.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return h`<h3 part=${j.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return h`<h4 part=${j.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return h`<h5 part=${j.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return h`<h6 part=${j.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return h`<div part=${j.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return h`<span part=${j.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return h`<small part=${j.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return h`<p part=${j.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...ws],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 Yo=Dt;Yo.register(lr);var dl=Yo;var ml=[w,f`
496
+ :host {
497
+ --mdc-icon-fill-color: currentColor;
498
+ --mdc-icon-size: var(--computed-icon-size);
499
+ --mdc-icon-border-radius: 0.25rem;
500
+
501
+ height: var(--mdc-icon-size);
502
+ width: var(--mdc-icon-size);
503
+ border-radius: var(--mdc-icon-border-radius);
504
+ }
505
+ :host::part(icon) {
506
+ height: 100%;
507
+ width: 100%;
508
+ fill: var(--mdc-icon-fill-color);
509
+ }
510
+ `,...O()],Cs=ml;var pl=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},hl={consume:pl},Ls=hl;var Xr=g.constructTagName("iconprovider"),Rs=["svg"],Ns=["em","rem","px","%"],ul={px:16,em:1,rem:1,"%":100},Ce={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ul.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Zr=class{};Zr.context=Xr;var jr=Zr;var ye=class extends Nt{constructor(){super({context:jr.context,initialValue:new jr});this.iconSet=Ce.ICON_SET;this.fileExtension=Ce.FILE_EXTENSION;this.lengthUnit=Ce.LENGTH_UNIT;this.size=Ce.SIZE}static get Context(){return jr.context}updateValuesInContext(){this.fileExtension&&Rs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ce.FILE_EXTENSION,this.context.value.fileExtension=Ce.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ns.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ce.LENGTH_UNIT,this.context.value.lengthUnit=Ce.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 cr=ye;var dr={},Os=async o=>(dr[o]===void 0&&(dr[o]=new Map),{async set(t,e){dr[o].set(t.url,await e.text())},async get(t){return dr[o].get(t.url)},async delete(t){dr[o].delete(t.url)}}),Ms=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)}}},zs=async(o,t)=>t==="in-memory-cache"?Os(o):Ms(o);var Ds=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),$s=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)?Ds(n).then(d=>d.text()):zs(i,r).then(d=>d.get(n).then(m=>m||Ds(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 Ps=g.constructTagName("icon"),qo={NAME:void 0,SIZE:1};var K=class extends y{constructor(){super();this.name=qo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Ls.consume({host:this,context:cr.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 $s({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:qo.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} `}};K.styles=[...y.styles,...Cs],l([W()],K.prototype,"iconData",2),l([W()],K.prototype,"lengthUnitFromContext",2),l([W()],K.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],K.prototype,"name",2),l([c({type:Number})],K.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],K.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],K.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],K.prototype,"ariaLabelledBy",2),l([W()],K.prototype,"abortController",2);var Wo=K;Wo.register(Ps);var fl=Wo;Go.register(Ss);var gl=Go;var A=o=>o!=null?o:v;var Us=g.constructTagName("avatar"),Y={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Xo=99,bl="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:Y.PHOTO,SIZE:M[32],ICON_NAME:bl};var Kr=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 X=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var vl=[w,f`
511
+ :host {
512
+ --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
513
+ --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
514
+ --mdc-avatar-loading-indicator-background-color: var(--mds-color-theme-common-text-primary-disabled);
515
+ --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatar-default-foreground-color);
516
+ --mdc-avatar-loading-overlay-background-color: var(--mds-color-theme-common-overlays-secondary-normal);
517
+ }
518
+ :host([size="124"])::part(content) {
519
+ width: 7.75rem;
520
+ height: 7.75rem;
521
+ }
522
+ :host([size="88"])::part(content) {
523
+ width: 5.5rem;
524
+ height: 5.5rem;
525
+ }
526
+ :host([size="72"])::part(content) {
527
+ width: 4.5rem;
528
+ height: 4.5rem;
529
+ }
530
+ :host([size="64"])::part(content) {
531
+ width: 4rem;
532
+ height: 4rem;
533
+ }
534
+ :host([size="48"])::part(content) {
535
+ width: 3rem;
536
+ height: 3rem;
537
+ }
538
+ :host([size="32"])::part(content) {
539
+ width: 2rem;
540
+ height: 2rem;
541
+ }
542
+ :host([size="24"])::part(content) {
543
+ width: 1.5rem;
544
+ height: 1.5rem;
545
+ }
546
+ :host([size="124"])::part(loader) {
547
+ transform: scale(1.5);
548
+ }
549
+ :host([size="88"])::part(loader) {
550
+ transform: scale(1.2);
551
+ }
552
+ :host([size="72"])::part(loader),
553
+ :host([size="64"])::part(loader) {
554
+ transform: scale(0.8);
555
+ }
556
+ :host([size="48"])::part(loader) {
557
+ transform: scale(0.6);
558
+ }
559
+ :host([size="32"])::part(loader) {
560
+ transform: scale(0.4);
561
+ }
562
+ :host([size="24"])::part(loader) {
563
+ transform: scale(0.3);
564
+ }
565
+ :host::part(content) {
566
+ width: 2rem;
567
+ height: 2rem;
568
+ background-color: var(--mdc-avatar-default-background-color);
569
+ color: var(--mdc-avatar-default-foreground-color);
570
+ border-radius: 100vh;
571
+ position: relative;
572
+ display: grid;
573
+ place-items: center;
574
+ }
575
+ :host::part(photo) {
576
+ border-radius: 100vh;
577
+ height: 100%;
578
+ width: 100%;
579
+ object-fit: cover;
580
+ overflow: hidden;
581
+ }
582
+ :host::part(presence) {
583
+ position: absolute;
584
+ bottom: 0;
585
+ right: 0;
586
+ }
587
+ :host::part(loading-wrapper) {
588
+ position: absolute;
589
+ border-radius: 100vh;
590
+ width: 100%;
591
+ height: 100%;
592
+ background-color: var(--mdc-avatar-loading-overlay-background-color);
593
+ display: grid;
594
+ place-items: center;
595
+ }
596
+ :host::part(loader) {
597
+ position: absolute;
598
+ width: 1rem;
599
+ transform: scale(0.4);
600
+ aspect-ratio: 1;
601
+ border-radius: 100vh;
602
+ animation: loading-key 1s infinite linear alternate;
603
+ }
604
+ @keyframes loading-key {
605
+ 0% {
606
+ box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color),
607
+ -1.25rem 0 var(--mdc-avatar-loading-indicator-background-color);
608
+ background: var(--mdc-avatar-loading-indicator-foreground-color);
609
+ }
610
+ 33% {
611
+ box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color),
612
+ -1.25rem 0 var(--mdc-avatar-loading-indicator-background-color);
613
+ background: var(--mdc-avatar-loading-indicator-background-color);
614
+ }
615
+ 66% {
616
+ box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-background-color),
617
+ -1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color);
618
+ background: var(--mdc-avatar-loading-indicator-background-color);
619
+ }
620
+ 100%{
621
+ box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-background-color),
622
+ -1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color);
623
+ background: var(--mdc-avatar-loading-indicator-foreground-color);
624
+ }
625
+ }
626
+
627
+ /* High Contrast Mode */
628
+ @media (forced-colors: active) {
629
+ :host::part(content) {
630
+ outline: 0.125rem solid;
631
+ }
632
+ }
633
+ `],Vs=vl;var Fs=g.constructTagName("presence"),B={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:B.ACTIVE,SIZE:U.SMALL};var Hs=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,Bs=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,Gs=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 mr=class extends Kr(X(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)?v:this.presence?h`
634
+ <mdc-presence part="presence" type="${this.presence}" size="${Hs(this.size)}"></mdc-presence>
635
+ `: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
+ <img
637
+ part="photo"
638
+ src="${A(this.src)}"
639
+ aria-hidden="true"
640
+ ?hidden="${!this.isPhotoLoaded}"
641
+ @load="${this.handleOnLoad}"
642
+ @error="${this.handleOnError}"
643
+ />
644
+ `}iconTemplate(){let e=this.iconName||$t.ICON_NAME;return h`
645
+ <mdc-icon
646
+ name="${A(e)}"
647
+ length-unit="rem"
648
+ size="${Bs(this.size)}"
649
+ ></mdc-icon>
650
+ `}textTemplate(e){return h`
651
+ <mdc-text
652
+ type="${Gs(this.size)}"
653
+ tagname="span"
654
+ >
655
+ ${e}
656
+ </mdc-text>
657
+ `}generateCounterText(e){return e<0?"0":e>Xo?`${Xo}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===Y.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===Y.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Y.PHOTO:this.iconName?Y.ICON:this.initials?Y.TEXT:this.counter||this.counter===0?Y.COUNTER:Y.ICON}getTemplateBasedOnType(e){switch(e){case Y.PHOTO:return this.photoTemplate();case Y.TEXT:case Y.COUNTER:return this.generateTextContent(e);case Y.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===Y.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
+ <div part="content" aria-hidden="true">
659
+ ${this.getPhotoPlaceHolderContent(e)}
660
+ ${this.getTemplateBasedOnType(e)}
661
+ ${this.getLoadingContent()}
662
+ ${this.getPresenceTemplateBasedOnType(e)}
663
+ </div>
664
+ `}};mr.styles=[...y.styles,...Vs],l([W()],mr.prototype,"isPhotoLoaded",2);var Zo=mr;var yl=[w,f`
665
+ :host {
666
+ --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
667
+ --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
668
+ --mdc-presence-away-calling-background-color: var(--mds-color-theme-indicator-locked);
669
+ --mdc-presence-busy-background-color: var(--mds-color-theme-indicator-unstable);
670
+ --mdc-presence-dnd-background-color: var(--mds-color-theme-indicator-attention);
671
+ --mdc-presence-meeting-background-color: var(--mds-color-theme-indicator-unstable);
672
+ --mdc-presence-on-call-background-color: var(--mds-color-theme-indicator-unstable);
673
+ --mdc-presence-on-device-background-color: var(--mds-color-theme-indicator-locked);
674
+ --mdc-presence-on-mobile-background-color: var(--mds-color-theme-indicator-locked);
675
+ --mdc-presence-pause-background-color: var(--mds-color-theme-indicator-locked);
676
+ --mdc-presence-pto-background-color: var(--mds-color-theme-indicator-locked);
677
+ --mdc-presence-presenting-background-color: var(--mds-color-theme-indicator-attention);
678
+ --mdc-presence-quiet-background-color: var(--mds-color-theme-indicator-locked);
679
+ --mdc-presence-scheduled-background-color: var(--mds-color-theme-indicator-unstable);
680
+ --mdc-presence-overlay-background-color: var(--mds-color-theme-background-solid-primary-normal);
681
+ }
682
+
683
+ .mdc-presence {
684
+ border-radius: 50%;
685
+ background-color: var(--mdc-presence-overlay-background-color);
686
+ display: flex;
687
+ justify-content: center;
688
+ align-items: center;
689
+ }
690
+ .mdc-presence__xx_small,
691
+ .mdc-presence__x_small,
692
+ .mdc-presence__small {
693
+ width: 1.0625rem;
694
+ height: 1.0625rem;
695
+ }
696
+ .mdc-presence__midsize {
697
+ width: 1.419375rem;
698
+ height: 1.419375rem;
699
+ }
700
+ .mdc-presence__large {
701
+ width: 1.596875rem;
702
+ height: 1.596875rem;
703
+ }
704
+ .mdc-presence__x_large {
705
+ width: 1.951875rem;
706
+ height: 1.951875rem;
707
+ }
708
+ .mdc-presence__xx_large {
709
+ width: 2.75rem;
710
+ height: 2.75rem;
604
711
  }
605
- `,ws],Cs=Wa;var Ot=class extends E{constructor(){super(...arguments);this.type=Z.TYPE;this.tagname=Z.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case N.H1:return h`<h1 part=${Z.CSS_PART_TEXT}><slot></slot></h1>`;case N.H2:return h`<h2 part=${Z.CSS_PART_TEXT}><slot></slot></h2>`;case N.H3:return h`<h3 part=${Z.CSS_PART_TEXT}><slot></slot></h3>`;case N.H4:return h`<h4 part=${Z.CSS_PART_TEXT}><slot></slot></h4>`;case N.H5:return h`<h5 part=${Z.CSS_PART_TEXT}><slot></slot></h5>`;case N.H6:return h`<h6 part=${Z.CSS_PART_TEXT}><slot></slot></h6>`;case N.DIV:return h`<div part=${Z.CSS_PART_TEXT}><slot></slot></div>`;case N.SPAN:return h`<span part=${Z.CSS_PART_TEXT}><slot></slot></span>`;case N.SMALL:return h`<small part=${Z.CSS_PART_TEXT}><slot></slot></small>`;case N.P:default:return h`<p part=${Z.CSS_PART_TEXT}><slot></slot></p>`}}};Ot.styles=[...E.styles,...Cs],l([d({attribute:"type",reflect:!0,type:String})],Ot.prototype,"type",2),l([d({attribute:"tagname",reflect:!0,type:String})],Ot.prototype,"tagname",2);var Uo=Ot;Uo.register(er);var Xa=Uo;zo.register(cs);var Za=zo;var Eh=v.constructTagName("buttonsimple"),ja={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Mt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Fr={SIZE:ja[32],TYPE:Mt.BUTTON,ROLE:"button"};var ir=v.constructTagName("button"),Le={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Hr={40:40,32:32,28:28,24:24},le={64:64,52:52,20:20,...Hr},Vo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},zt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},be={VARIANT:Le.PRIMARY,SIZE:Hr[32],COLOR:Vo.DEFAULT,TYPE_INTERNAL:zt.ICON,TYPE:Mt.BUTTON};var ve=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return l([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Br=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Ka=[k,f`
606
- :host {
607
- border: 0.0625rem solid transparent;
608
- cursor: pointer;
609
-
610
- background-color: var(--mds-color-theme-text-primary-normal);
611
- color: var(--mds-color-theme-inverted-text-secondary-normal);
612
- font-size: var(--mds-font-apps-body-midsize-regular-font-size);
613
- outline: none;
614
712
 
615
- --mdc-button-height-size-124: 7.75rem;
616
- --mdc-button-height-size-88: 5.5rem;
617
- --mdc-button-height-size-72: 4.5rem;
618
- --mdc-button-height-size-64: 4rem;
619
- --mdc-button-height-size-52: 3.25rem;
620
- --mdc-button-height-size-40: 2.5rem;
621
- --mdc-button-height-size-32: 2rem;
622
- --mdc-button-height-size-28: 1.75rem;
623
- --mdc-button-height-size-24: 1.5rem;
624
- --mdc-button-height-size-20: 1.25rem;
625
- }
626
-
627
- :host([disabled]), :host([soft-disabled]){
628
- background-color: var(--mds-color-theme-text-primary-disabled);
629
- }
630
- :host([size="124"]){
631
- height: var(--mdc-button-height-size-124);
632
- }
633
- :host([size="88"]){
634
- height: var(--mdc-button-height-size-88);
635
- }
636
- :host([size="72"]){
637
- height: var(--mdc-button-height-size-72);
638
- }
639
- :host([size="64"]){
640
- height: var(--mdc-button-height-size-64);
641
- }
642
- :host([size="52"]){
643
- height: var(--mdc-button-height-size-52);
644
- }
645
- :host([size="40"]){
646
- height: var(--mdc-button-height-size-40);
647
- }
648
- :host([size="32"]){
649
- height: var(--mdc-button-height-size-32);
650
- }
651
- :host([size="28"]){
652
- height: var(--mdc-button-height-size-28);
653
- font-size: var(--mds-font-size-body-midsize);
654
- }
655
- :host([size="24"]){
656
- height: var(--mdc-button-height-size-24);
657
- }
658
- :host([size="20"]){
659
- height: var(--mdc-button-height-size-20);
660
- }
661
- `,...z()],Ls=Ka;var ye=class extends Br(ve(E)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Fr.SIZE;this.role=Fr.ROLE;this.type=Fr.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===Mt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Mt.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`
662
- <slot></slot>
663
- `}};ye.formAssociated=!0,ye.styles=[...E.styles,...Ls],l([d({type:Boolean,reflect:!0})],ye.prototype,"active",2),l([d({type:Boolean,attribute:"soft-disabled"})],ye.prototype,"softDisabled",2),l([d({type:Number,reflect:!0})],ye.prototype,"size",2),l([d({type:String,reflect:!0})],ye.prototype,"role",2),l([d({reflect:!0})],ye.prototype,"type",2);var Be=ye;var Qa=[k,f`
713
+ .mdc-presence-icon {
714
+ border-radius: 50%;
715
+ }
716
+ .mdc-presence-icon__active {
717
+ color: var(--mdc-presence-active-background-color);
718
+ }
719
+ .mdc-presence-icon__away {
720
+ color: var(--mdc-presence-away-background-color);
721
+ }
722
+ .mdc-presence-icon__away-calling {
723
+ color: var(--mdc-presence-away-calling-background-color);
724
+ }
725
+ .mdc-presence-icon__busy {
726
+ color: var(--mdc-presence-busy-background-color);
727
+ }
728
+ .mdc-presence-icon__dnd {
729
+ color: var(--mdc-presence-dnd-background-color);
730
+ }
731
+ .mdc-presence-icon__meeting {
732
+ color: var(--mdc-presence-meeting-background-color);
733
+ }
734
+ .mdc-presence-icon__on-call {
735
+ color: var(--mdc-presence-on-call-background-color);
736
+ }
737
+ .mdc-presence-icon__on-device {
738
+ color: var(--mdc-presence-on-device-background-color);
739
+ }
740
+ .mdc-presence-icon__on-mobile {
741
+ color: var(--mdc-presence-on-mobile-background-color);
742
+ }
743
+ .mdc-presence-icon__pause {
744
+ color: var(--mdc-presence-pause-background-color);
745
+ }
746
+ .mdc-presence-icon__pto {
747
+ color: var(--mdc-presence-pto-background-color);
748
+ }
749
+ .mdc-presence-icon__presenting {
750
+ color: var(--mdc-presence-presenting-background-color);
751
+ }
752
+ .mdc-presence-icon__quiet {
753
+ color: var(--mdc-presence-quiet-background-color);
754
+ }
755
+ .mdc-presence-icon__scheduled {
756
+ color: var(--mdc-presence-scheduled-background-color);
757
+ }
758
+ `],Ys=yl;var qs=o=>{switch(o){case B.AWAY:return"recents-presence-badge-filled";case B.AWAY_CALLING:return"away-calling-presence-filled";case B.BUSY:return"busy-presence-bold";case B.DND:return"dnd-presence-badge-filled";case B.MEETING:return"camera-filled";case B.ON_CALL:return"handset-filled";case B.ON_DEVICE:return"generic-device-video-badge-filled";case B.ON_MOBILE:return"phone-badge-filled";case B.PAUSE:return"pause-badge-filled";case B.PTO:return"pto-presence-filled";case B.PRESENTING:return"share-screen-badge-filled";case B.QUIET:return"quiet-hours-presence-filled";case B.SCHEDULED:return"meetings-presence-badge-filled";case B.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=qs(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
+ <div class="mdc-presence mdc-presence__${this.size}">
760
+ <mdc-icon
761
+ class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
762
+ name="${this.icon}"
763
+ size="${this.iconSize}"
764
+ @load="${this.handleOnLoad}"
765
+ @error="${this.handleOnError}"
766
+ ></mdc-icon>
767
+ </div>
768
+ `}};it.styles=[...y.styles,...Ys],l([c({type:String,reflect:!0})],it.prototype,"type",2),l([c({type:String,reflect:!0})],it.prototype,"size",2),l([W()],it.prototype,"currentIconType",2);var jo=it;jo.register(Fs);var xl=jo;Zo.register(Us);var El=Zo;var pr=g.constructTagName("button"),Le={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Qr={40:40,32:32,28:28,24:24},me={64:64,52:52,20:20,...Qr},Ko={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},xe={VARIANT:Le.PRIMARY,SIZE:Qr[32],COLOR:Ko.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Tl=[w,f`
664
769
  :host {
665
770
  padding: unset;
666
771
  margin: unset;
667
772
  outline: none;
668
773
  border-radius: 0.25rem;
669
774
  }
670
- `,...z()],Rs=Qa;var sr=class extends $r(fe(Be)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=be.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(O).includes(e)?`${e}`:kt.SIZE.toString())}render(){return h`
775
+ `,...O()],Ws=Tl;var hr=class extends Kr(X(te)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=xe.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`
671
776
  <mdc-avatar
672
777
  slot="prefixIcon"
673
778
  ?is-typing="${this.isTyping}"
@@ -678,7 +783,7 @@
678
783
  size="${A(this.size)}"
679
784
  src="${A(this.src)}"
680
785
  ></mdc-avatar>
681
- `}};sr.styles=[...Rs],l([d({type:String,attribute:"aria-label"})],sr.prototype,"ariaLabel",2);var Fo=sr;var ks=v.constructTagName("avatarbutton");Fo.register(ks);var Ja=Fo;var Gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},nr=o=>(...t)=>({_$litDirective$:o,values:t}),Dt=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 Yr=nr(class extends Dt{constructor(o){var t;if(super(o),o.type!==Gr.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 n=!!t[s];n===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ie}});var Ns=v.constructTagName("badge"),Re={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},qr={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wr={PRIMARY:"primary",SECONDARY:"secondary"},ar={SUCCESS:"success",WARNING:"warning",ERROR:"error"},vu={...Wr,...ar},Ge={TYPE:Re.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wr.PRIMARY,ICON_SIZE:1};var el=[k,f`
786
+ `}};hr.styles=[...Ws],l([c({type:String,attribute:"aria-label"})],hr.prototype,"ariaLabel",2);var Qo=hr;var Xs=g.constructTagName("avatarbutton");Qo.register(Xs);var Al=Qo;var Jr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ur=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 eo=ur(class extends Vt{constructor(o){var t;if(super(o),o.type!==Jr.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 ke}});var Zs=g.constructTagName("badge"),Re={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},to={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},ro={PRIMARY:"primary",SECONDARY:"secondary"},fr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},xf={...ro,...fr},Ge={TYPE:Re.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:ro.PRIMARY,ICON_SIZE:1};var Sl=[w,f`
682
787
  :host {
683
788
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
684
789
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -747,21 +852,21 @@
747
852
  outline: 0.125rem solid;
748
853
  }
749
854
  }
750
- `],Os=el;var xe=class extends fe(E){constructor(){super(...arguments);this.variant=Ge.VARIANT;this.maxCounter=Ge.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ge.MAX_COUNTER_LIMIT||r>Ge.MAX_COUNTER_LIMIT?`${Ge.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
855
+ `],js=Sl;var Ee=class extends X(y){constructor(){super(...arguments);this.variant=Ge.VARIANT;this.maxCounter=Ge.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ge.MAX_COUNTER_LIMIT||r>Ge.MAX_COUNTER_LIMIT?`${Ge.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
751
856
  <mdc-icon
752
- class="mdc-badge-icon ${Yr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
857
+ class="mdc-badge-icon ${eo({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
753
858
  name="${A(e)}"
754
859
  size="${Ge.ICON_SIZE}"
755
860
  ></mdc-icon>
756
- `}getBadgeDot(){return h`<div class="mdc-badge-dot ${Yr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
861
+ `}getBadgeDot(){return h`<div class="mdc-badge-dot ${eo({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
757
862
  <mdc-text
758
- type="${w.BODY_SMALL_MEDIUM}"
759
- tagname="${N.DIV}"
760
- class="mdc-badge-text ${Yr({"mdc-badge-overlay":this.overlay})}"
863
+ type="${_.BODY_SMALL_MEDIUM}"
864
+ tagname="${C.DIV}"
865
+ class="mdc-badge-text ${eo({"mdc-badge-overlay":this.overlay})}"
761
866
  >
762
867
  ${this.getCounterText(this.maxCounter,this.counter)}
763
868
  </mdc-text>
764
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Wr).includes(this.variant)&&(this.variant=Ge.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(qr.SUCCESS_ICON_NAME,ar.SUCCESS);case Re.WARNING:return this.getBadgeIcon(qr.WARNING_ICON_NAME,ar.WARNING);case Re.ERROR:return this.getBadgeIcon(qr.ERROR_ICON_NAME,ar.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()}};xe.styles=[...E.styles,...Os],l([d({type:String,reflect:!0})],xe.prototype,"type",2),l([d({type:String,reflect:!0})],xe.prototype,"variant",2),l([d({type:Number})],xe.prototype,"counter",2),l([d({type:Number,attribute:"max-counter",reflect:!0})],xe.prototype,"maxCounter",2),l([d({type:Boolean})],xe.prototype,"overlay",2),l([d({type:String,attribute:"aria-label"})],xe.prototype,"ariaLabel",2);var Ho=xe;Ho.register(Ns);var tl=Ho;var rl=f`
869
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(ro).includes(this.variant)&&(this.variant=Ge.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(to.SUCCESS_ICON_NAME,fr.SUCCESS);case Re.WARNING:return this.getBadgeIcon(to.WARNING_ICON_NAME,fr.WARNING);case Re.ERROR:return this.getBadgeIcon(to.ERROR_ICON_NAME,fr.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()}};Ee.styles=[...y.styles,...js],l([c({type:String,reflect:!0})],Ee.prototype,"type",2),l([c({type:String,reflect:!0})],Ee.prototype,"variant",2),l([c({type:Number})],Ee.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Ee.prototype,"maxCounter",2),l([c({type:Boolean})],Ee.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Ee.prototype,"ariaLabel",2);var Jo=Ee;Jo.register(Zs);var _l=Jo;var Il=f`
765
870
  :host {
766
871
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
767
872
  --mdc-bullet-size-small: 0.25rem;
@@ -782,7 +887,7 @@
782
887
  :host([size="large"]) {
783
888
  height: var(--mdc-bullet-size-large);
784
889
  }
785
- `,Ms=[rl];var zs=v.constructTagName("bullet"),Ds={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var lr=class extends E{constructor(){super(...arguments);this.size=Ds.SMALL}};lr.styles=[...E.styles,...Ms],l([d({type:String,reflect:!0})],lr.prototype,"size",2);var Bo=lr;Bo.register(zs);var ol=Bo;var il=f`
890
+ `,Ks=[Il];var Qs=g.constructTagName("bullet"),Js={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var gr=class extends y{constructor(){super(...arguments);this.size=Js.SMALL}};gr.styles=[...y.styles,...Ks],l([c({type:String,reflect:!0})],gr.prototype,"size",2);var ei=gr;ei.register(Qs);var kl=ei;var wl=f`
786
891
  :host {
787
892
  background-color: transparent;
788
893
  border-radius: 1.25rem;
@@ -954,7 +1059,7 @@
954
1059
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
955
1060
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
956
1061
  }
957
- `,$s=[il];var Ps=o=>{switch(o){case le[64]:return 2;case le[52]:return 1.75;case le[40]:return 1.25;default:return 1}},cr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var J=class extends Be{constructor(){super(...arguments);this.variant=be.VARIANT;this.size=be.SIZE;this.color=be.COLOR;this.role="button";this.typeInternal=be.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=`${cr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${cr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Le).includes(e)?e:be.VARIANT)}setSize(e){let i=this.typeInternal===zt.ICON?Object.values(le).includes(e)&&!(e===le[20]&&this.variant!==Le.TERTIARY):Object.values(Hr).includes(e);this.setAttribute("size",i?`${e}`:`${be.SIZE}`),this.iconSize=Ps(e)}setColor(e){!Object.values(Vo).includes(e)||this.variant===Le.TERTIARY?this.setAttribute("color",`${be.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 n;return s.nodeType!==Node.TEXT_NODE||((n=s.textContent)==null?void 0:n.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=zt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=zt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=zt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
1062
+ `,ea=[wl];var ta=o=>{switch(o){case me[64]:return 2;case me[52]:return 1.75;case me[40]:return 1.25;default:return 1}},br=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var re=class extends te{constructor(){super(...arguments);this.variant=xe.VARIANT;this.size=xe.SIZE;this.color=xe.COLOR;this.role="button";this.typeInternal=xe.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=`${br(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${br(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Le).includes(e)?e:xe.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(me).includes(e)&&!(e===me[20]&&this.variant!==Le.TERTIARY):Object.values(Qr).includes(e);this.setAttribute("size",i?`${e}`:`${xe.SIZE}`),this.iconSize=ta(e)}setColor(e){!Object.values(Ko).includes(e)||this.variant===Le.TERTIARY?this.setAttribute("color",`${xe.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`
958
1063
  ${this.prefixIcon?h` <mdc-icon
959
1064
  name="${this.prefixIcon}"
960
1065
  part="prefix-icon"
@@ -970,7 +1075,7 @@
970
1075
  length-unit="rem"
971
1076
  >
972
1077
  </mdc-icon>`:""}
973
- `}};J.styles=[...Be.styles,...$s],l([d({type:String,attribute:"prefix-icon",reflect:!0})],J.prototype,"prefixIcon",2),l([d({type:String,attribute:"postfix-icon",reflect:!0})],J.prototype,"postfixIcon",2),l([d({type:String})],J.prototype,"variant",2),l([d({type:Number})],J.prototype,"size",2),l([d({type:String})],J.prototype,"color",2),l([d({type:String,reflect:!0})],J.prototype,"role",2),l([W()],J.prototype,"typeInternal",2),l([W()],J.prototype,"iconSize",2);var Go=J;Go.register(ir);var sl=Go;var V=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([d({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 Us(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 Yo,nl=new Uint8Array(16);function qo(){if(!Yo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Yo=crypto.getRandomValues.bind(crypto)}return Yo(nl)}var al=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Wo={randomUUID:al};function ll(o,t,e){var i,s,n;if(Wo.randomUUID&&!t&&!o)return Wo.randomUUID();o=o||{};let r=(n=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?n:qo();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[e+a]=r[a];return t}return Us(r)}var dr=ll;var ee=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${dr()}`}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([d({reflect:!0,type:String})],t.prototype,"name",2),l([d({reflect:!0,type:String})],t.prototype,"value",2),l([d({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Or("input")],t.prototype,"inputElement",2),t};var Vs=v.constructTagName("formfieldwrapper"),te={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:te.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},it={TAGNAME:N.SPAN,TYPE:w.BODY_MIDSIZE_REGULAR,HEADER_TYPE:w.BODY_MIDSIZE_BOLD};var cl=[k,f`
1078
+ `}};re.styles=[...te.styles,...ea],l([c({type:String,attribute:"prefix-icon",reflect:!0})],re.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],re.prototype,"postfixIcon",2),l([c({type:String})],re.prototype,"variant",2),l([c({type:Number})],re.prototype,"size",2),l([c({type:String})],re.prototype,"color",2),l([c({type:String,reflect:!0})],re.prototype,"role",2),l([W()],re.prototype,"typeInternal",2),l([W()],re.prototype,"iconSize",2);var ti=re;ti.register(pr);var Cl=ti;var V=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 ra(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 ri,Ll=new Uint8Array(16);function oi(){if(!ri){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ri=crypto.getRandomValues.bind(crypto)}return ri(Ll)}var Rl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ii={randomUUID:Rl};function Nl(o,t,e){var i,s,a;if(ii.randomUUID&&!t&&!o)return ii.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:oi();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 ra(r)}var vr=Nl;var oe=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${vr()}`}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([Hr("input")],t.prototype,"inputElement",2),t};var oa=g.constructTagName("formfieldwrapper"),ie={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:ie.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},st={TAGNAME:C.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Ol=[w,f`
974
1079
  :host {
975
1080
  flex-direction: column;
976
1081
  align-items: flex-start;
@@ -1019,33 +1124,33 @@
1019
1124
  :host([help-text-type='priority']) .mdc-help-text {
1020
1125
  color: var(--mds-color-theme-text-accent-normal);
1021
1126
  }
1022
- `],Fs=cl;var Hs=o=>({[te.ERROR]:"error-legacy-badge-filled",[te.WARNING]:"warning-badge-filled",[te.SUCCESS]:"check-circle-badge-filled",[te.PRIORITY]:"priority-badge-filled",[te.DEFAULT]:""})[o]||"";var ke=class extends ve(E){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
1127
+ `],ia=Ol;var sa=o=>({[ie.ERROR]:"error-legacy-badge-filled",[ie.WARNING]:"warning-badge-filled",[ie.SUCCESS]:"check-circle-badge-filled",[ie.PRIORITY]:"priority-badge-filled",[ie.DEFAULT]:""})[o]||"";var Ne=class extends ee(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
1023
1128
  id="${F.HEADING_ID}"
1024
- tagname="${it.TAGNAME}"
1025
- type="${it.HEADER_TYPE}"
1129
+ tagname="${st.TAGNAME}"
1130
+ type="${st.HEADER_TYPE}"
1026
1131
  part="label"
1027
1132
  >${this.label}</mdc-text
1028
- >`:b}renderRequiredLabel(){return this.requiredLabel?h`
1029
- <mdc-text part="required-label" tagname=${it.TAGNAME} type=${it.TYPE}>
1133
+ >`:v}renderRequiredLabel(){return this.requiredLabel?h`
1134
+ <mdc-text part="required-label" tagname=${st.TAGNAME} type=${st.TYPE}>
1030
1135
  (${this.requiredLabel})
1031
1136
  </mdc-text>
1032
- `:b}renderHelpTextIcon(){if(!this.helpText)return b;let e=Hs(this.helpTextType||F.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:b}renderHelpText(){return this.helpText?h`
1137
+ `:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=sa(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`
1033
1138
  <mdc-text
1034
1139
  id="${F.HELPER_TEXT_ID}"
1035
1140
  part="help-text"
1036
- tagname=${it.TAGNAME}
1037
- type=${it.TYPE}
1141
+ tagname=${st.TAGNAME}
1142
+ type=${st.TYPE}
1038
1143
  >
1039
1144
  ${this.helpText}
1040
1145
  </mdc-text>
1041
- `:b}renderLabel(){return this.label?h`<div class="mdc-label-text" part="label-text">
1146
+ `:v}renderLabel(){return this.label?h`<div class="mdc-label-text" part="label-text">
1042
1147
  <slot name="label">${this.renderLabelElement()}</slot>
1043
1148
  <slot name="required-label">${this.renderRequiredLabel()}</slot>
1044
1149
  <slot name="label-info"></slot>
1045
- </div>`:b}renderHelperText(){return this.helpText?h`<div class="mdc-help-text" part="mdc-help-text">
1150
+ </div>`:v}renderHelperText(){return this.helpText?h`<div class="mdc-help-text" part="mdc-help-text">
1046
1151
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1047
1152
  <slot name="help-text">${this.renderHelpText()}</slot>
1048
- </div>`:b}};ke.styles=[...E.styles,...Fs],l([d({reflect:!0,type:String})],ke.prototype,"label",2),l([d({type:String,reflect:!0,attribute:"required-label"})],ke.prototype,"requiredLabel",2),l([d({type:String})],ke.prototype,"id",2),l([d({reflect:!0,attribute:"help-text-type"})],ke.prototype,"helpTextType",2),l([d({type:String,reflect:!0,attribute:"help-text"})],ke.prototype,"helpText",2);var re=ke;var Bs=v.constructTagName("checkbox"),Xo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var dl=[f`
1153
+ </div>`:v}};Ne.styles=[...y.styles,...ia],l([c({reflect:!0,type:String})],Ne.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Ne.prototype,"requiredLabel",2),l([c({type:String})],Ne.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Ne.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Ne.prototype,"helpText",2);var se=Ne;var aa=g.constructTagName("checkbox"),si={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Ml=[f`
1049
1154
  :host {
1050
1155
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1051
1156
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1149,17 +1254,17 @@
1149
1254
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
1150
1255
  }
1151
1256
  }
1152
- `,...z(!0)],Gs=dl;var st=class extends ee(V(re)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
1257
+ `,...O(!0)],na=Ml;var at=class extends oe(V(se)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
1153
1258
  ${this.renderLabel()}
1154
1259
  ${this.renderHelperText()}
1155
- </div>`:b;this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?h`
1260
+ </div>`:v;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`
1156
1261
  <mdc-icon
1157
1262
  class="icon"
1158
- name="${this.indeterminate?Xo.INDETERMINATE:Xo.CHECKED}"
1263
+ name="${this.indeterminate?si.INDETERMINATE:si.CHECKED}"
1159
1264
  size="1"
1160
1265
  length-unit="rem"
1161
1266
  ></mdc-icon>
1162
- `:b;return h`
1267
+ `:v;return h`
1163
1268
  <div class="container mdc-focus-ring">
1164
1269
  <input
1165
1270
  id="${this.id}"
@@ -1182,7 +1287,151 @@
1182
1287
  <div class="icon-container">${e}</div>
1183
1288
  </div>
1184
1289
  ${this.renderLabelAndHelperText()}
1185
- `}};st.styles=[...re.styles,...Gs],l([d({type:Boolean,reflect:!0})],st.prototype,"checked",2),l([d({type:Boolean,reflect:!0})],st.prototype,"indeterminate",2),l([d({type:Boolean,reflect:!0})],st.prototype,"autofocus",2);var Zo=st;Zo.register(Bs);var ml=Zo;var Ee=Math.min,q=Math.max,pr=Math.round,hr=Math.floor,ce=o=>({x:o,y:o}),pl={left:"right",right:"left",bottom:"top",top:"bottom"},hl={start:"end",end:"start"};function Zr(o,t,e){return q(o,Ee(t,e))}function nt(o,t){return typeof o=="function"?o(t):o}function Ne(o){return o.split("-")[0]}function at(o){return o.split("-")[1]}function jo(o){return o==="x"?"y":"x"}function jr(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(Ne(o))?"y":"x"}function Kr(o){return jo(Ye(o))}function Ys(o,t,e){e===void 0&&(e=!1);let r=at(o),i=Kr(o),s=jr(i),n=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=mr(n)),[n,mr(n)]}function qs(o){let t=mr(o);return[Xr(o),t,Xr(t)]}function Xr(o){return o.replace(/start|end/g,t=>hl[t])}function ul(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:n;default:return[]}}function Ws(o,t,e,r){let i=at(o),s=ul(Ne(o),e==="start",r);return i&&(s=s.map(n=>n+"-"+i),t&&(s=s.concat(s.map(Xr)))),s}function mr(o){return o.replace(/left|right|bottom|top/g,t=>pl[t])}function fl(o){return{top:0,right:0,bottom:0,left:0,...o}}function Ko(o){return typeof o!="number"?fl(o):{top:o,right:o,bottom:o,left:o}}function lt(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 Xs(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),n=Kr(t),a=jr(n),c=Ne(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,y=r[a]/2-i[a]/2,g;switch(c){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-i.width,y:u};break;default:g={x:r.x,y:r.y}}switch(at(t)){case"start":g[n]-=y*(e&&m?-1:1);break;case"end":g[n]+=y*(e&&m?-1:1);break}return g}var Zs=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=e,a=s.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(t)),m=await n.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=Xs(m,r,c),y=r,g={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:L,data:P,reset:M}=await S({x:p,y:u,initialPlacement:r,placement:y,strategy:i,middlewareData:g,rects:m,platform:n,elements:{reference:o,floating:t}});p=I!=null?I:p,u=L!=null?L:u,g={...g,[_]:{...g[_],...P}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(y=M.placement),M.rects&&(m=M.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:i}):M.rects),{x:p,y:u}=Xs(m,y,c)),T=-1)}return{x:p,y:u,placement:y,strategy:i,middlewareData:g}};async function Qr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:n,elements:a,strategy:c}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:y=!1,padding:g=0}=nt(t,o),x=Ko(g),_=a[y?u==="floating"?"reference":"floating":u],S=lt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(_)))==null||e?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:m,rootBoundary:p,strategy:c})),I=u==="floating"?{x:r,y:i,width:n.floating.width,height:n.floating.height}:n.reference,L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(L))?await(s.getScale==null?void 0:s.getScale(L))||{x:1,y:1}:{x:1,y:1},M=lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:L,strategy:c}):I);return{top:(S.top-M.top+x.top)/P.y,bottom:(M.bottom-S.bottom+x.bottom)/P.y,left:(S.left-M.left+x.left)/P.x,right:(M.right-S.right+x.right)/P.x}}var js=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:n,elements:a,middlewareData:c}=t,{element:m,padding:p=0}=nt(o,t)||{};if(m==null)return{};let u=Ko(p),y={x:e,y:r},g=Kr(i),x=jr(g),T=await n.getDimensions(m),_=g==="y",S=_?"top":"left",I=_?"bottom":"right",L=_?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[g]-y[g]-s.floating[x],M=y[g]-s.reference[g],Q=await(n.getOffsetParent==null?void 0:n.getOffsetParent(m)),ne=Q?Q[L]:0;(!ne||!await(n.isElement==null?void 0:n.isElement(Q)))&&(ne=a.floating[L]||s.floating[x]);let Te=P/2-M/2,pe=ne/2-T[x]/2-1,ae=Ee(u[S],pe),De=Ee(u[I],pe),he=ae,$e=ne-T[x]-De,G=ne/2-T[x]/2+Te,It=Zr(he,G,$e),Ae=!c.arrow&&at(i)!=null&&G!==It&&s.reference[x]/2-(G<he?ae:De)-T[x]/2<0,ue=Ae?G<he?G-he:G-$e:0;return{[g]:y[g]+ue,data:{[g]:It,centerOffset:G-It-ue,...Ae&&{alignmentOffset:ue}},reset:Ae}}});var Ks=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:n,initialPlacement:a,platform:c,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=nt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Ne(i),I=Ye(a),L=Ne(a)===a,P=await(c.isRTL==null?void 0:c.isRTL(m.floating)),M=y||(L||!T?[mr(a)]:qs(a)),Q=x!=="none";!y&&Q&&M.push(...Ws(a,T,x,P));let ne=[a,...M],Te=await Qr(t,_),pe=[],ae=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&pe.push(Te[S]),u){let G=Ys(i,n,P);pe.push(Te[G[0]],Te[G[1]])}if(ae=[...ae,{placement:i,overflows:pe}],!pe.every(G=>G<=0)){var De,he;let G=(((De=s.flip)==null?void 0:De.index)||0)+1,It=ne[G];if(It)return{data:{index:G,overflows:ae},reset:{placement:It}};let Ae=(he=ae.filter(ue=>ue.overflows[0]<=0).sort((ue,Pe)=>ue.overflows[1]-Pe.overflows[1])[0])==null?void 0:he.placement;if(!Ae)switch(g){case"bestFit":{var $e;let ue=($e=ae.filter(Pe=>{if(Q){let Ue=Ye(Pe.placement);return Ue===I||Ue==="y"}return!0}).map(Pe=>[Pe.placement,Pe.overflows.filter(Ue=>Ue>0).reduce((Ue,Ea)=>Ue+Ea,0)]).sort((Pe,Ue)=>Pe[1]-Ue[1])[0])==null?void 0:$e[0];ue&&(Ae=ue);break}case"initialPlacement":Ae=a;break}if(i!==Ae)return{reset:{placement:Ae}}}return{}}}};async function gl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),n=Ne(e),a=at(e),c=Ye(e)==="y",m=["left","top"].includes(n)?-1:1,p=s&&c?-1:1,u=nt(t,o),{mainAxis:y,crossAxis:g,alignmentAxis:x}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof x=="number"&&(g=a==="end"?x*-1:x),c?{x:g*p,y:y*m}:{x:y*m,y:g*p}}var Qs=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:n,middlewareData:a}=t,c=await gl(t,o);return n===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:n}}}}},Js=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:n=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...c}=nt(o,t),m={x:e,y:r},p=await Qr(t,c),u=Ye(Ne(i)),y=jo(u),g=m[y],x=m[u];if(s){let _=y==="y"?"top":"left",S=y==="y"?"bottom":"right",I=g+p[_],L=g-p[S];g=Zr(I,g,L)}if(n){let _=u==="y"?"top":"left",S=u==="y"?"bottom":"right",I=x+p[_],L=x-p[S];x=Zr(I,x,L)}let T=a.fn({...t,[y]:g,[u]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[y]:s,[u]:n}}}}}};var en=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:n,elements:a}=t,{apply:c=()=>{},...m}=nt(o,t),p=await Qr(t,m),u=Ne(i),y=at(i),g=Ye(i)==="y",{width:x,height:T}=s.floating,_,S;u==="top"||u==="bottom"?(_=u,S=y===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(S=u,_=y==="end"?"top":"bottom");let I=T-p.top-p.bottom,L=x-p.left-p.right,P=Ee(T-p[_],I),M=Ee(x-p[S],L),Q=!t.middlewareData.shift,ne=P,Te=M;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Te=L),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ne=I),Q&&!y){let ae=q(p.left,0),De=q(p.right,0),he=q(p.top,0),$e=q(p.bottom,0);g?Te=x-2*(ae!==0||De!==0?ae+De:q(p.left,p.right)):ne=T-2*(he!==0||$e!==0?he+$e:q(p.top,p.bottom))}await c({...t,availableWidth:Te,availableHeight:ne});let pe=await n.getDimensions(a.floating);return x!==pe.width||T!==pe.height?{reset:{rects:!0}}:{}}}};function Jr(){return typeof window<"u"}function ct(o){return rn(o)?(o.nodeName||"").toLowerCase():"#document"}function X(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function de(o){var t;return(t=(rn(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function rn(o){return Jr()?o instanceof Node||o instanceof X(o).Node:!1}function oe(o){return Jr()?o instanceof Element||o instanceof X(o).Element:!1}function me(o){return Jr()?o instanceof HTMLElement||o instanceof X(o).HTMLElement:!1}function tn(o){return!Jr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof X(o).ShadowRoot}function Pt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ie(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function on(o){return["table","td","th"].includes(ct(o))}function ur(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function eo(o){let t=to(),e=oe(o)?ie(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 sn(o){let t=Oe(o);for(;me(t)&&!dt(t);){if(eo(t))return t;if(ur(t))return null;t=Oe(t)}return null}function to(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(o){return["html","body","#document"].includes(ct(o))}function ie(o){return X(o).getComputedStyle(o)}function fr(o){return oe(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Oe(o){if(ct(o)==="html")return o;let t=o.assignedSlot||o.parentNode||tn(o)&&o.host||de(o);return tn(t)?t.host:t}function nn(o){let t=Oe(o);return dt(t)?o.ownerDocument?o.ownerDocument.body:o.body:me(t)&&Pt(t)?t:nn(t)}function $t(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=nn(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),n=X(i);if(s){let a=ro(n);return t.concat(n,n.visualViewport||[],Pt(i)?i:[],a&&e?$t(a):[])}return t.concat(i,$t(i,[],e))}function ro(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function cn(o){let t=ie(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=me(o),s=i?o.offsetWidth:e,n=i?o.offsetHeight:r,a=pr(e)!==s||pr(r)!==n;return a&&(e=s,r=n),{width:e,height:r,$:a}}function Jo(o){return oe(o)?o:o.contextElement}function Ut(o){let t=Jo(o);if(!me(t))return ce(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=cn(t),n=(s?pr(e.width):e.width)/r,a=(s?pr(e.height):e.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var bl=ce(0);function dn(o){let t=X(o);return!to()||!t.visualViewport?bl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==X(o)?!1:t}function mt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=Jo(o),n=ce(1);t&&(r?oe(r)&&(n=Ut(r)):n=Ut(o));let a=vl(s,e,r)?dn(s):ce(0),c=(i.left+a.x)/n.x,m=(i.top+a.y)/n.y,p=i.width/n.x,u=i.height/n.y;if(s){let y=X(s),g=r&&oe(r)?X(r):r,x=y,T=ro(x);for(;T&&r&&g!==x;){let _=Ut(T),S=T.getBoundingClientRect(),I=ie(T),L=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,P=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;c*=_.x,m*=_.y,p*=_.x,u*=_.y,c+=L,m+=P,x=X(T),T=ro(x)}}return lt({width:p,height:u,x:c,y:m})}function ei(o,t){let e=fr(o).scrollLeft;return t?t.left+e:mt(de(o)).left+e}function mn(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:ei(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function yl(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",n=de(r),a=t?ur(t.floating):!1;if(r===n||a&&s)return e;let c={scrollLeft:0,scrollTop:0},m=ce(1),p=ce(0),u=me(r);if((u||!u&&!s)&&((ct(r)!=="body"||Pt(n))&&(c=fr(r)),me(r))){let g=mt(r);m=Ut(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}let y=n&&!u&&!s?mn(n,c,!0):ce(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-c.scrollLeft*m.x+p.x+y.x,y:e.y*m.y-c.scrollTop*m.y+p.y+y.y}}function xl(o){return Array.from(o.getClientRects())}function El(o){let t=de(o),e=fr(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+ei(o),a=-e.scrollTop;return ie(r).direction==="rtl"&&(n+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:a}}function Tl(o,t){let e=X(o),r=de(o),i=e.visualViewport,s=r.clientWidth,n=r.clientHeight,a=0,c=0;if(i){s=i.width,n=i.height;let m=to();(!m||m&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:n,x:a,y:c}}function Al(o,t){let e=mt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=me(o)?Ut(o):ce(1),n=o.clientWidth*s.x,a=o.clientHeight*s.y,c=i*s.x,m=r*s.y;return{width:n,height:a,x:c,y:m}}function an(o,t,e){let r;if(t==="viewport")r=Tl(o,e);else if(t==="document")r=El(de(o));else if(oe(t))r=Al(t,e);else{let i=dn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return lt(r)}function pn(o,t){let e=Oe(o);return e===t||!oe(e)||dt(e)?!1:ie(e).position==="fixed"||pn(e,t)}function Sl(o,t){let e=t.get(o);if(e)return e;let r=$t(o,[],!1).filter(a=>oe(a)&&ct(a)!=="body"),i=null,s=ie(o).position==="fixed",n=s?Oe(o):o;for(;oe(n)&&!dt(n);){let a=ie(n),c=eo(n);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pt(n)&&!c&&pn(o,n))?r=r.filter(p=>p!==n):i=a,n=Oe(n)}return t.set(o,r),r}function _l(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,n=[...e==="clippingAncestors"?ur(t)?[]:Sl(t,this._c):[].concat(e),r],a=n[0],c=n.reduce((m,p)=>{let u=an(t,p,i);return m.top=q(u.top,m.top),m.right=Ee(u.right,m.right),m.bottom=Ee(u.bottom,m.bottom),m.left=q(u.left,m.left),m},an(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Il(o){let{width:t,height:e}=cn(o);return{width:t,height:e}}function wl(o,t,e){let r=me(t),i=de(t),s=e==="fixed",n=mt(o,!0,s,t),a={scrollLeft:0,scrollTop:0},c=ce(0);if(r||!r&&!s)if((ct(t)!=="body"||Pt(i))&&(a=fr(t)),r){let y=mt(t,!0,s,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else i&&(c.x=ei(i));let m=i&&!r&&!s?mn(i,a):ce(0),p=n.left+a.scrollLeft-c.x-m.x,u=n.top+a.scrollTop-c.y-m.y;return{x:p,y:u,width:n.width,height:n.height}}function Qo(o){return ie(o).position==="static"}function ln(o,t){if(!me(o)||ie(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return de(o)===e&&(e=e.ownerDocument.body),e}function hn(o,t){let e=X(o);if(ur(o))return e;if(!me(o)){let i=Oe(o);for(;i&&!dt(i);){if(oe(i)&&!Qo(i))return i;i=Oe(i)}return e}let r=ln(o,t);for(;r&&on(r)&&Qo(r);)r=ln(r,t);return r&&dt(r)&&Qo(r)&&!eo(r)?e:r||sn(o)||e}var Cl=async function(o){let t=this.getOffsetParent||hn,e=this.getDimensions,r=await e(o.floating);return{reference:wl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ll(o){return ie(o).direction==="rtl"}var Rl={convertOffsetParentRelativeRectToViewportRelativeRect:yl,getDocumentElement:de,getClippingRect:_l,getOffsetParent:hn,getElementRects:Cl,getClientRects:xl,getDimensions:Il,getScale:Ut,isElement:oe,isRTL:Ll};function kl(o,t){let e=null,r,i=de(o);function s(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function n(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();let{left:m,top:p,width:u,height:y}=o.getBoundingClientRect();if(a||t(),!u||!y)return;let g=hr(p),x=hr(i.clientWidth-(m+u)),T=hr(i.clientHeight-(p+y)),_=hr(m),I={rootMargin:-g+"px "+-x+"px "+-T+"px "+-_+"px",threshold:q(0,Ee(1,c))||1},L=!0;function P(M){let Q=M[0].intersectionRatio;if(Q!==c){if(!L)return n();Q?n(!1,Q):r=setTimeout(()=>{n(!1,1e-7)},1e3)}L=!1}try{e=new IntersectionObserver(P,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,I)}e.observe(o)}return n(!0),s}function un(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,m=Jo(o),p=i||s?[...m?$t(m):[],...$t(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&a?kl(m,e):null,y=-1,g=null;n&&(g=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var L;(L=g)==null||L.observe(t)})),e()}),m&&!c&&g.observe(m),g.observe(t));let x,T=c?mt(o):null;c&&_();function _(){let S=mt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;p.forEach(I=>{i&&I.removeEventListener("scroll",e),s&&I.removeEventListener("resize",e)}),u==null||u(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(x)}}var fn=Qs;var gn=Js,bn=Ks,vn=en;var yn=js;var xn=(o,t,e)=>{let r=new Map,i={platform:Rl,...e},s={...i.platform,_c:r};return Zs(o,t,{...i,platform:s})};var Nl=f`
1290
+ `}};at.styles=[...se.styles,...na],l([c({type:Boolean,reflect:!0})],at.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],at.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],at.prototype,"autofocus",2);var ai=at;ai.register(aa);var zl=ai;var Dl=f`
1291
+ :host {
1292
+ height: 1.5rem;
1293
+ gap: 0.25rem;
1294
+ padding: 0 0.5rem;
1295
+ border-radius: 0.25rem;
1296
+ border: 1px solid;
1297
+ cursor: pointer;
1298
+
1299
+ --mdc-chip-color: var(--mds-color-theme-text-primary-normal);
1300
+ --mdc-chip-border-color: var(--mds-color-theme-outline-button-normal);
1301
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-normal);
1302
+
1303
+ color: var(--mdc-chip-color);
1304
+ border-color: var(--mdc-chip-border-color);
1305
+ background-color: var(--mdc-chip-background-color);
1306
+ }
1307
+
1308
+ :host([color='default']:hover) {
1309
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-hover);
1310
+ }
1311
+
1312
+ :host([color='default']:active) {
1313
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
1314
+ }
1315
+
1316
+ :host([color='cobalt']) {
1317
+ --mdc-chip-border-color: var(--mds-color-theme-outline-theme-normal);
1318
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-cobalt-normal);
1319
+ }
1320
+
1321
+ :host([color='cobalt']:hover) {
1322
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-cobalt-hover);
1323
+ }
1324
+
1325
+ :host([color='cobalt']:active) {
1326
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-cobalt-active);
1327
+ }
1328
+
1329
+ :host([color='gold']) {
1330
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-gold);
1331
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-gold-normal);
1332
+ }
1333
+
1334
+ :host([color='gold']:hover) {
1335
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-gold-hover);
1336
+ }
1337
+
1338
+ :host([color='gold']:active) {
1339
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-gold-active);
1340
+ }
1341
+
1342
+ :host([color='lime']) {
1343
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-lime);
1344
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-lime-normal);
1345
+ }
1346
+
1347
+ :host([color='lime']:hover) {
1348
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-lime-hover);
1349
+ }
1350
+
1351
+ :host([color='lime']:active) {
1352
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-lime-active);
1353
+ }
1354
+
1355
+ :host([color='mint']) {
1356
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-mint);
1357
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-mint-normal);
1358
+ }
1359
+
1360
+ :host([color='mint']:hover) {
1361
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-mint-hover);
1362
+ }
1363
+
1364
+ :host([color='mint']:active) {
1365
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-mint-active);
1366
+ }
1367
+
1368
+ :host([color='pink']) {
1369
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-pink);
1370
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-pink-normal);
1371
+ }
1372
+
1373
+ :host([color='pink']:hover) {
1374
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-pink-hover);
1375
+ }
1376
+
1377
+ :host([color='pink']:active) {
1378
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-pink-active);
1379
+ }
1380
+
1381
+ :host([color='purple']) {
1382
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-purple);
1383
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-purple-normal);
1384
+ }
1385
+
1386
+ :host([color='purple']:hover) {
1387
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-purple-hover);
1388
+ }
1389
+
1390
+ :host([color='purple']:active) {
1391
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-purple-active);
1392
+ }
1393
+
1394
+ :host([color='slate']) {
1395
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-slate);
1396
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-slate-normal);
1397
+ }
1398
+
1399
+ :host([color='slate']:hover) {
1400
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-slate-hover);
1401
+ }
1402
+
1403
+ :host([color='slate']:active) {
1404
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-slate-active);
1405
+ }
1406
+
1407
+ :host([color='violet']) {
1408
+ --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
1409
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
1410
+ }
1411
+
1412
+ :host([color='violet']:hover) {
1413
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-hover);
1414
+ }
1415
+
1416
+ :host([color='violet']:active) {
1417
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-active);
1418
+ }
1419
+
1420
+ :host([disabled]), :host([disabled]:hover), :host([disabled]:active) {
1421
+ --mdc-chip-border-color: var(--mds-color-theme-outline-primary-disabled);
1422
+ --mdc-chip-background-color: var(--mds-color-theme-background-primary-disabled);
1423
+ --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1424
+ cursor: auto;
1425
+ }
1426
+ `,la=[w,Dl,...O()];var ca=g.constructTagName("chip"),$l={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ft={COLOR:$l.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:nr[24],ROLE:"button"};var Ht=class extends X(te){constructor(){super();this.color=Ft.COLOR;this.label="";this.role=Ft.ROLE,this.size=Ft.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?h`
1427
+ <mdc-icon
1428
+ name="${this.iconName}"
1429
+ length-unit="rem"
1430
+ size="1"></mdc-icon>
1431
+ `:v}render(){return h`
1432
+ ${this.renderIcon()}
1433
+ <mdc-text type="${Ft.TEXT_TYPE}" tagname="${Ft.TAG_NAME}">${this.label}</mdc-text>
1434
+ `}};Ht.styles=[...y.styles,...la],l([c({type:String,reflect:!0})],Ht.prototype,"color",2),l([c({type:String})],Ht.prototype,"label",2);var Bt=Ht;Bt.register(ca);var Pl=Bt;var Te=Math.min,q=Math.max,xr=Math.round,Er=Math.floor,pe=o=>({x:o,y:o}),Ul={left:"right",right:"left",bottom:"top",top:"bottom"},Vl={start:"end",end:"start"};function io(o,t,e){return q(o,Te(t,e))}function nt(o,t){return typeof o=="function"?o(t):o}function Oe(o){return o.split("-")[0]}function lt(o){return o.split("-")[1]}function ni(o){return o==="x"?"y":"x"}function so(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(Oe(o))?"y":"x"}function ao(o){return ni(Ye(o))}function da(o,t,e){e===void 0&&(e=!1);let r=lt(o),i=ao(o),s=so(i),a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=yr(a)),[a,yr(a)]}function ma(o){let t=yr(o);return[oo(o),t,oo(t)]}function oo(o){return o.replace(/start|end/g,t=>Vl[t])}function Fl(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 pa(o,t,e,r){let i=lt(o),s=Fl(Oe(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(oo)))),s}function yr(o){return o.replace(/left|right|bottom|top/g,t=>Ul[t])}function Hl(o){return{top:0,right:0,bottom:0,left:0,...o}}function li(o){return typeof o!="number"?Hl(o):{top:o,right:o,bottom:o,left:o}}function ct(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 ha(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),a=ao(t),n=so(a),d=Oe(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(lt(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var ua=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}=ha(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:R,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=R!=null?R: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}=ha(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function no(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}=nt(t,o),E=li(b),I=n[x?u==="floating"?"reference":"floating":u],S=ct(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,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},z=ct(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:R,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 fa=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}=nt(o,t)||{};if(m==null)return{};let u=li(p),x={x:e,y:r},b=ao(i),E=so(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",R=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],J=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),ce=J?J[R]:0;(!ce||!await(a.isElement==null?void 0:a.isElement(J)))&&(ce=n.floating[R]||s.floating[E]);let Ae=P/2-z/2,fe=ce/2-T[E]/2-1,de=Te(u[S],fe),$e=Te(u[k],fe),ge=de,Pe=ce-T[E]-$e,G=ce/2-T[E]/2+Ae,wt=io(ge,G,Pe),Se=!d.arrow&&lt(i)!=null&&G!==wt&&s.reference[E]/2-(G<ge?de:$e)-T[E]/2<0,be=Se?G<ge?G-ge:G-Pe:0;return{[b]:x[b]+be,data:{[b]:wt,centerOffset:G-wt-be,...Se&&{alignmentOffset:be}},reset:Se}}});var ga=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}=nt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Oe(i),k=Ye(n),R=Oe(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[yr(n)]:ma(n)),J=E!=="none";!x&&J&&z.push(...pa(n,T,E,P));let ce=[n,...z],Ae=await no(t,I),fe=[],de=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Ae[S]),u){let G=da(i,a,P);fe.push(Ae[G[0]],Ae[G[1]])}if(de=[...de,{placement:i,overflows:fe}],!fe.every(G=>G<=0)){var $e,ge;let G=((($e=s.flip)==null?void 0:$e.index)||0)+1,wt=ce[G];if(wt)return{data:{index:G,overflows:de},reset:{placement:wt}};let Se=(ge=de.filter(be=>be.overflows[0]<=0).sort((be,Ue)=>be.overflows[1]-Ue.overflows[1])[0])==null?void 0:ge.placement;if(!Se)switch(b){case"bestFit":{var Pe;let be=(Pe=de.filter(Ue=>{if(J){let Ve=Ye(Ue.placement);return Ve===k||Ve==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(Ve=>Ve>0).reduce((Ve,Gn)=>Ve+Gn,0)]).sort((Ue,Ve)=>Ue[1]-Ve[1])[0])==null?void 0:Pe[0];be&&(Se=be);break}case"initialPlacement":Se=n;break}if(i!==Se)return{reset:{placement:Se}}}return{}}}};async function Bl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Oe(e),n=lt(e),d=Ye(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=nt(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 ba=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 Bl(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}}}}},va=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}=nt(o,t),m={x:e,y:r},p=await no(t,d),u=Ye(Oe(i)),x=ni(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],R=b-p[S];b=io(k,b,R)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],R=E-p[S];E=io(k,E,R)}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 ya=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}=nt(o,t),p=await no(t,m),u=Oe(i),x=lt(i),b=Ye(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,R=E-p.left-p.right,P=Te(T-p[I],k),z=Te(E-p[S],R),J=!t.middlewareData.shift,ce=P,Ae=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ae=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ce=k),J&&!x){let de=q(p.left,0),$e=q(p.right,0),ge=q(p.top,0),Pe=q(p.bottom,0);b?Ae=E-2*(de!==0||$e!==0?de+$e:q(p.left,p.right)):ce=T-2*(ge!==0||Pe!==0?ge+Pe:q(p.top,p.bottom))}await d({...t,availableWidth:Ae,availableHeight:ce});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function lo(){return typeof window<"u"}function dt(o){return Ea(o)?(o.nodeName||"").toLowerCase():"#document"}function Z(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Ea(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Ea(o){return lo()?o instanceof Node||o instanceof Z(o).Node:!1}function ae(o){return lo()?o instanceof Element||o instanceof Z(o).Element:!1}function ue(o){return lo()?o instanceof HTMLElement||o instanceof Z(o).HTMLElement:!1}function xa(o){return!lo()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Z(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 Ta(o){return["table","td","th"].includes(dt(o))}function Tr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function co(o){let t=mo(),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 Aa(o){let t=Me(o);for(;ue(t)&&!mt(t);){if(co(t))return t;if(Tr(t))return null;t=Me(t)}return null}function mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mt(o){return["html","body","#document"].includes(dt(o))}function ne(o){return Z(o).getComputedStyle(o)}function Ar(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Me(o){if(dt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||xa(o)&&o.host||he(o);return xa(t)?t.host:t}function Sa(o){let t=Me(o);return mt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&Yt(t)?t:Sa(t)}function Gt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Sa(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=Z(i);if(s){let n=po(a);return t.concat(a,a.visualViewport||[],Yt(i)?i:[],n&&e?Gt(n):[])}return t.concat(i,Gt(i,[],e))}function po(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ka(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=xr(e)!==s||xr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function di(o){return ae(o)?o:o.contextElement}function qt(o){let t=di(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=ka(t),a=(s?xr(e.width):e.width)/r,n=(s?xr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var Gl=pe(0);function wa(o){let t=Z(o);return!mo()||!t.visualViewport?Gl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==Z(o)?!1:t}function pt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=di(o),a=pe(1);t&&(r?ae(r)&&(a=qt(r)):a=qt(o));let n=Yl(s,e,r)?wa(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=Z(s),b=r&&ae(r)?Z(r):r,E=x,T=po(E);for(;T&&r&&b!==E;){let I=qt(T),S=T.getBoundingClientRect(),k=ne(T),R=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+=R,m+=P,E=Z(T),T=po(E)}}return ct({width:p,height:u,x:d,y:m})}function mi(o,t){let e=Ar(o).scrollLeft;return t?t.left+e:pt(he(o)).left+e}function Ca(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:mi(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function ql(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",a=he(r),n=t?Tr(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)&&((dt(r)!=="body"||Yt(a))&&(d=Ar(r)),ue(r))){let b=pt(r);m=qt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ca(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 Wl(o){return Array.from(o.getClientRects())}function Xl(o){let t=he(o),e=Ar(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+mi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function Zl(o,t){let e=Z(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=mo();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function jl(o,t){let e=pt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ue(o)?qt(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 _a(o,t,e){let r;if(t==="viewport")r=Zl(o,e);else if(t==="document")r=Xl(he(o));else if(ae(t))r=jl(t,e);else{let i=wa(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ct(r)}function La(o,t){let e=Me(o);return e===t||!ae(e)||mt(e)?!1:ne(e).position==="fixed"||La(e,t)}function Kl(o,t){let e=t.get(o);if(e)return e;let r=Gt(o,[],!1).filter(n=>ae(n)&&dt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?Me(o):o;for(;ae(a)&&!mt(a);){let n=ne(a),d=co(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yt(a)&&!d&&La(o,a))?r=r.filter(p=>p!==a):i=n,a=Me(a)}return t.set(o,r),r}function Ql(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Tr(t)?[]:Kl(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=_a(t,p,i);return m.top=q(u.top,m.top),m.right=Te(u.right,m.right),m.bottom=Te(u.bottom,m.bottom),m.left=q(u.left,m.left),m},_a(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Jl(o){let{width:t,height:e}=ka(o);return{width:t,height:e}}function ec(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=pt(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((dt(t)!=="body"||Yt(i))&&(n=Ar(t)),r){let x=pt(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=mi(i));let m=i&&!r&&!s?Ca(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 ci(o){return ne(o).position==="static"}function Ia(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 Ra(o,t){let e=Z(o);if(Tr(o))return e;if(!ue(o)){let i=Me(o);for(;i&&!mt(i);){if(ae(i)&&!ci(i))return i;i=Me(i)}return e}let r=Ia(o,t);for(;r&&Ta(r)&&ci(r);)r=Ia(r,t);return r&&mt(r)&&ci(r)&&!co(r)?e:r||Aa(o)||e}var tc=async function(o){let t=this.getOffsetParent||Ra,e=this.getDimensions,r=await e(o.floating);return{reference:ec(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rc(o){return ne(o).direction==="rtl"}var oc={convertOffsetParentRelativeRectToViewportRelativeRect:ql,getDocumentElement:he,getClippingRect:Ql,getOffsetParent:Ra,getElementRects:tc,getClientRects:Wl,getDimensions:Jl,getScale:qt,isElement:ae,isRTL:rc};function ic(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=Er(p),E=Er(i.clientWidth-(m+u)),T=Er(i.clientHeight-(p+x)),I=Er(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:q(0,Te(1,d))||1},R=!0;function P(z){let J=z[0].intersectionRatio;if(J!==d){if(!R)return a();J?a(!1,J):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function Na(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=di(o),p=i||s?[...m?Gt(m):[],...Gt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?ic(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 R;(R=b)==null||R.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?pt(o):null;d&&I();function I(){let S=pt(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 Oa=ba;var Ma=va,za=ga,Da=ya;var $a=fa;var Pa=(o,t,e)=>{let r=new Map,i={platform:oc,...e},s={...i.platform,_c:r};return ua(o,t,{...i,platform:s})};var sc=f`
1186
1435
  :host {
1187
1436
  --mdc-popover-arrow-border-radius: 0.1875rem;
1188
1437
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1285,7 +1534,7 @@
1285
1534
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1286
1535
  border-bottom-left-radius: 100%;
1287
1536
  }
1288
- `,En=[Nl];var Tn=v.constructTagName("popover"),pt={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"},gr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ht={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:pt.BOTTOM,TRIGGER:gr.CLICK,COLOR:ht.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var An=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:n}=i.getBoundingClientRect(),{offsetWidth:a,offsetHeight:c}=i;return a+c+n+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:n,visibility:a}=i.style;return s==="none"||n==="0"||a==="hidden"||a==="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(a=>{let c=a;this.isFocusable(c)&&s.add(c),c.shadowRoot?this.findFocusable(c.shadowRoot,s):c.tagName==="SLOT"?c.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(c,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:n}=this.focusableElements,a=this.shouldWrapFocus();if(i===-1)return s>0?0:n-1;let c=i+s;return a?(c<0&&(c=n-1),c>=n&&(c=0)):(c<0&&(c=0),c>=n&&(c=n-1)),c}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(),n=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(n,-1):this.focusTrapIndex=this.calculateNextIndex(n,1);let a=this.focusableElements[this.focusTrapIndex];a&&a.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ti=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=[]}},ut=new ti;var ft=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var oo=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:n}=t,a=this.popover.arrowElement.getBoundingClientRect(),c=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=c!=null&&c[i]?12-Math.abs(a[i]-c[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:n!=null?`${n}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=`
1537
+ `,Ua=[sc];var Va=g.constructTagName("popover"),ht={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"},Sr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ut={TONAL:"tonal",CONTRAST:"contrast"},N={PLACEMENT:ht.BOTTOM,TRIGGER:Sr.CLICK,COLOR:ut.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 Fa=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=N.FOCUS_TRAP;this.enabledPreventScroll=N.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 pi=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 pi;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("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var ho=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=`
1289
1538
  .popover-backdrop {
1290
1539
  position: fixed;
1291
1540
  top: 0;
@@ -1295,7 +1544,7 @@
1295
1544
  background: transparent;
1296
1545
  z-index: ${this.popover.zIndex-1};
1297
1546
  }
1298
- `,e.appendChild(r),this.popover.backdropElement=e}}};var C=class extends An(E){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(ut.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=()=>{ut.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 oo(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}`,ft.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),ft.onDestroyedPopover(this),ut.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`#${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");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(pt).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(gr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ht).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,n;e===r||!this.triggerElement||(r?(ut.peek()!==this&&ut.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"),ft.onShowPopover(this)):(ut.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&&((n=this.triggerElement)==null||n.focus()),ft.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=[gn()],r=this.offset;if(this.flip&&e.push(bn()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(vn({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(yn({element:this.arrowElement,padding:12}))}e.push(fn(r)),un(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:n,placement:a}=await xn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),n.arrow&&this.arrowElement&&this.utils.updateArrowStyle(n.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return h`
1547
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Fa(y){constructor(){super();this.id="";this.triggerID="";this.trigger=N.TRIGGER;this.placement=N.PLACEMENT;this.color=N.COLOR;this.visible=N.VISIBLE;this.offset=N.OFFSET;this.focusTrap=N.FOCUS_TRAP;this.preventScroll=N.PREVENT_SCROLL;this.showArrow=N.ARROW;this.closeButton=N.CLOSE_BUTTON;this.interactive=N.INTERACTIVE;this.delay=N.DELAY;this.hideOnEscape=N.HIDE_ON_ESCAPE;this.hideOnBlur=N.HIDE_ON_BLUR;this.hideOnOutsideClick=N.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=N.FOCUS_BACK;this.backdrop=N.BACKDROP;this.flip=N.FLIP;this.size=N.SIZE;this.zIndex=N.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=N.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=N.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 ho(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,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(`#${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");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(ht).includes(this.placement)?this.placement:N.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Sr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:N.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ut).includes(this.color)?this.color:N.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=[Ma()],r=this.offset;if(this.flip&&e.push(za()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(Da({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($a({element:this.arrowElement,padding:12}))}e.push(Oa(r)),Na(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await Pa(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`
1299
1548
  <div class="popover-hover-bridge"></div>
1300
1549
  ${this.closeButton?h` <mdc-button
1301
1550
  class="popover-close"
@@ -1304,12 +1553,12 @@
1304
1553
  size="20"
1305
1554
  aria-label=${A(this.closeButtonAriaLabel)}
1306
1555
  @click="${this.hidePopover}"
1307
- ></mdc-button>`:b}
1308
- ${this.showArrow?h`<div class="popover-arrow"></div>`:b}
1556
+ ></mdc-button>`:v}
1557
+ ${this.showArrow?h`<div class="popover-arrow"></div>`:v}
1309
1558
  <div part="popover-content">
1310
1559
  <slot></slot>
1311
1560
  </div>
1312
- `}};C.styles=[...E.styles,...En],l([d({type:String,reflect:!0})],C.prototype,"id",2),l([d({type:String,reflect:!0})],C.prototype,"triggerID",2),l([d({type:String,reflect:!0})],C.prototype,"trigger",2),l([d({type:String,reflect:!0})],C.prototype,"placement",2),l([d({type:String,reflect:!0})],C.prototype,"color",2),l([d({type:Boolean,reflect:!0})],C.prototype,"visible",2),l([d({type:Number,reflect:!0})],C.prototype,"offset",2),l([d({type:Boolean,reflect:!0,attribute:"focus-trap"})],C.prototype,"focusTrap",2),l([d({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],C.prototype,"preventScroll",2),l([d({type:Boolean,reflect:!0,attribute:"show-arrow"})],C.prototype,"showArrow",2),l([d({type:Boolean,reflect:!0,attribute:"close-button"})],C.prototype,"closeButton",2),l([d({type:Boolean,reflect:!0})],C.prototype,"interactive",2),l([d({type:String,reflect:!0})],C.prototype,"delay",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],C.prototype,"hideOnEscape",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],C.prototype,"hideOnBlur",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],C.prototype,"hideOnOutsideClick",2),l([d({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],C.prototype,"focusBackToTrigger",2),l([d({type:Boolean,reflect:!0})],C.prototype,"backdrop",2),l([d({type:Boolean,reflect:!0})],C.prototype,"flip",2),l([d({type:Boolean,reflect:!0})],C.prototype,"size",2),l([d({type:Number,reflect:!0,attribute:"z-index"})],C.prototype,"zIndex",2),l([d({type:String,reflect:!0,attribute:"append-to"})],C.prototype,"appendTo",2),l([d({type:String,attribute:"close-button-aria-label"})],C.prototype,"closeButtonAriaLabel",2),l([d({type:String,reflect:!0})],C.prototype,"role",2),l([d({type:String,reflect:!0,attribute:"aria-labelledby"})],C.prototype,"ariaLabelledby",2),l([d({type:String,reflect:!0,attribute:"aria-describedby"})],C.prototype,"ariaDescribedby",2),l([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],C.prototype,"disableAriaExpanded",2);var qe=C;var Sn=v.constructTagName("coachmark"),gt={COLOR:ht.CONTRAST,TRIGGER:gr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var bt=class extends qe{constructor(){super();this.trigger=gt.TRIGGER;this.showArrow=gt.ARROW;this.closeButton=gt.CLOSE_BUTTON;this.disableAriaExpanded=gt.DISABLE_ARIA_EXPANDED;this.color=gt.COLOR,this.showArrow=gt.ARROW}};l([d({type:String,reflect:!0})],bt.prototype,"trigger",2),l([d({type:Boolean,attribute:"show-arrow"})],bt.prototype,"showArrow",2),l([d({type:Boolean,reflect:!0,attribute:"close-button"})],bt.prototype,"closeButton",2),l([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],bt.prototype,"disableAriaExpanded",2);var ri=bt;ri.register(Sn);var Ol=ri;var _n=v.constructTagName("divider"),br={HORIZONTAL:"horizontal",VERTICAL:"vertical"},oi={SOLID:"solid",GRADIENT:"gradient"},We={POSITIVE:"positive",NEGATIVE:"negative"},vr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},vt={ORIENTATION:br.HORIZONTAL,VARIANT:oi.SOLID,ARROW_DIRECTION:We.NEGATIVE,BUTTON_DIRECTION:We.NEGATIVE};var Ml=[k,f`
1561
+ `}};L.styles=[...y.styles,...Ua],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var qe=L;var Ha=g.constructTagName("coachmark"),bt={COLOR:ut.CONTRAST,TRIGGER:Sr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends qe{constructor(){super();this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;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 hi=vt;hi.register(Ha);var ac=hi;var Ba=g.constructTagName("divider"),_r={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ui={SOLID:"solid",GRADIENT:"gradient"},We={POSITIVE:"positive",NEGATIVE:"negative"},Ir={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:_r.HORIZONTAL,VARIANT:ui.SOLID,ARROW_DIRECTION:We.NEGATIVE,BUTTON_DIRECTION:We.NEGATIVE};var nc=[w,f`
1313
1562
  :host {
1314
1563
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1315
1564
  --mdc-divider-width: 0.0625rem;
@@ -1520,11 +1769,31 @@
1520
1769
  font-size: var(--mdc-divider-text-size);
1521
1770
  line-height: var(--mdc-divider-text-line-height);
1522
1771
  }
1523
- `],In=Ml;var Xe=class extends E{constructor(){super();this.orientation=vt.ORIENTATION;this.variant=vt.VARIANT;this.arrowDirection=vt.ARROW_DIRECTION;this.buttonPosition=vt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(oi).includes(e)?e:vt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(br).includes(e)?e:vt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===br.HORIZONTAL?We.NEGATIVE:We.POSITIVE;Object.values(We).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(We).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===br.HORIZONTAL,r=this.arrowDirection===We.POSITIVE;return e?r?vr.UP:vr.DOWN:r?vr.RIGHT:vr.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 n;let e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(a=>a.tagName===er.toUpperCase()),s=r.some(a=>a.tagName===ir.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return h`
1772
+ `],Ga=nc;var Xe=class extends y{constructor(){super();this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(ui).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(_r).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===_r.HORIZONTAL?We.NEGATIVE:We.POSITIVE;Object.values(We).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(We).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===_r.HORIZONTAL,r=this.arrowDirection===We.POSITIVE;return e?r?Ir.UP:Ir.DOWN:r?Ir.RIGHT:Ir.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===lr.toUpperCase()),s=r.some(n=>n.tagName===pr.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return h`
1524
1773
  <div></div>
1525
1774
  <slot @slotchange=${this.inferDividerType}></slot>
1526
1775
  <div></div>
1527
- `}};Xe.styles=[...E.styles,...In],l([d({type:String,reflect:!0})],Xe.prototype,"orientation",2),l([d({type:String,reflect:!0})],Xe.prototype,"variant",2),l([d({type:String,attribute:"arrow-direction",reflect:!0})],Xe.prototype,"arrowDirection",2),l([d({type:String,attribute:"button-position",reflect:!0})],Xe.prototype,"buttonPosition",2);var ii=Xe;ii.register(_n);var zl=ii;var wn=v.constructTagName("formfieldgroup"),si={RADIOGROUP:"radiogroup",GROUP:"group"};var Dl=f`
1776
+ `}};Xe.styles=[...y.styles,...Ga],l([c({type:String,reflect:!0})],Xe.prototype,"orientation",2),l([c({type:String,reflect:!0})],Xe.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],Xe.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],Xe.prototype,"buttonPosition",2);var fi=Xe;fi.register(Ba);var lc=fi;var cc=f`
1777
+ :host([selected]){
1778
+ border: 2px solid;
1779
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
1780
+ }
1781
+
1782
+ :host([selected]:active) {
1783
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-normal);
1784
+ }
1785
+
1786
+ :host([selected]:focus) {
1787
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
1788
+ }
1789
+
1790
+ :host([disabled]), :host([disabled]:hover), :host([disabled]:active) {
1791
+ --mdc-chip-border-color: var(--mds-color-theme-outline-primary-disabled);
1792
+ --mdc-chip-background-color: var(--mds-color-theme-background-primary-disabled);
1793
+ --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1794
+ cursor: auto;
1795
+ }
1796
+ `,Ya=[cc];var qa=g.constructTagName("filterchip"),gi={ICON_NAME:"check-bold",COLOR:"default"};var kr=class extends Bt{constructor(){super();this.selected=!1;this.color=gi.COLOR}setSelected(e){e?(this.iconName=gi.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)}};kr.styles=[...Bt.styles,...Ya],l([c({type:Boolean,reflect:!0})],kr.prototype,"selected",2);var bi=kr;bi.register(qa);var dc=bi;var Wa=g.constructTagName("formfieldgroup"),vi={RADIOGROUP:"radiogroup",GROUP:"group"};var mc=f`
1528
1797
 
1529
1798
  :host::part(container) {
1530
1799
  display: flex;
@@ -1541,10 +1810,10 @@
1541
1810
  :host::part(label-text){
1542
1811
  font-weight: bold;
1543
1812
  }
1544
- `,Cn=[Dl];var io=class extends V(re){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
1813
+ `,Xa=[mc];var uo=class extends V(se){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
1545
1814
  <div
1546
1815
  part="container"
1547
- role="${this.isRadio?si.RADIOGROUP:si.GROUP}"
1816
+ role="${this.isRadio?vi.RADIOGROUP:vi.GROUP}"
1548
1817
  aria-labelledby="${F.HEADING_ID}"
1549
1818
  aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
1550
1819
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
@@ -1555,7 +1824,7 @@
1555
1824
  </div>
1556
1825
  <slot></slot>
1557
1826
  </div>
1558
- `}};io.styles=[...re.styles,...Cn];var ni=io;ni.register(wn);var so=ni;rr.register(Pr);var $l=rr;var Pl=[f`
1827
+ `}};uo.styles=[...se.styles,...Xa];var yi=uo;yi.register(Wa);var fo=yi;cr.register(Xr);var pc=cr;var hc=[f`
1559
1828
  :host{
1560
1829
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1561
1830
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1670,7 +1939,7 @@
1670
1939
  opacity: 0;
1671
1940
  pointer-events: none;
1672
1941
  }
1673
- `,...z(!0)],Ln=Pl;re.register(Vs);var Me=re;var Rn=v.constructTagName("input"),no={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},kn={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:te.ERROR},Ze={VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Le.TERTIARY,CLEAR_BUTTON_SIZE:le[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:N.SPAN};var D=class extends ee(V(Me)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=no.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(n=>{this.onerror&&this.onerror(n)})}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`
1942
+ `,...O(!0)],Za=hc;se.register(oa);var ze=se;var ja=g.constructTagName("input"),go={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ka={MAX_LENGTH:10,VALIDATION:ie.ERROR},Ze={VALIDATION:ie.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Le.TERTIARY,CLEAR_BUTTON_SIZE:me[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN};var D=class extends oe(V(ze)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=go.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(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`
1674
1943
  <mdc-icon
1675
1944
  class="leading-icon"
1676
1945
  part="leading-icon"
@@ -1678,16 +1947,16 @@
1678
1947
  size="${Ze.ICON_SIZE_VALUE}"
1679
1948
  length-unit="${Ze.ICON_SIZE_UNIT}">
1680
1949
  </mdc-icon>
1681
- `:b}renderPrefixText(){return this.prefixText?h`
1950
+ `:v}renderPrefixText(){return this.prefixText?h`
1682
1951
  <mdc-text
1683
1952
  class="prefix-text"
1684
1953
  tagname="${Ze.PREFIX_TEXT_TAG}"
1685
1954
  type="${Ze.PREFIX_TEXT_TYPE}"
1686
1955
  aria-hidden="true"
1687
1956
  >
1688
- ${this.prefixText.slice(0,kn.MAX_LENGTH)}
1957
+ ${this.prefixText.slice(0,Ka.MAX_LENGTH)}
1689
1958
  </mdc-text>
1690
- `:b}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?h`
1959
+ `:v}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?h`
1691
1960
  <mdc-button
1692
1961
  part='trailing-button'
1693
1962
  class='own-focus-ring ${this.value?"":"hidden"}'
@@ -1698,7 +1967,7 @@
1698
1967
  @click=${this.clearInputText}
1699
1968
  ?disabled=${this.disabled||this.readonly||!this.value}
1700
1969
  ></mdc-button>
1701
- `:b}render(){var e;return h`
1970
+ `:v}render(){var e;return h`
1702
1971
  ${this.renderLabel()}
1703
1972
  <div class="input-container mdc-focus-ring" part="input-container">
1704
1973
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
@@ -1736,8 +2005,74 @@
1736
2005
  </div>
1737
2006
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
1738
2007
  </div>
1739
- ${this.helpText?this.renderHelperText():b}
1740
- `}};D.styles=[...Me.styles,...Ln],l([d({type:String})],D.prototype,"placeholder",2),l([d({type:Boolean})],D.prototype,"readonly",2),l([d({type:String,attribute:"prefix-text"})],D.prototype,"prefixText",2),l([d({type:String,attribute:"leading-icon"})],D.prototype,"leadingIcon",2),l([d({type:Boolean,attribute:"trailing-button"})],D.prototype,"trailingButton",2),l([d({type:Number})],D.prototype,"maxlength",2),l([d({type:Number})],D.prototype,"minlength",2),l([d({type:String})],D.prototype,"autocapitalize",2),l([d({type:String})],D.prototype,"autocomplete",2),l([d({type:Boolean})],D.prototype,"autofocus",2),l([d({type:String})],D.prototype,"dirname",2),l([d({type:String})],D.prototype,"pattern",2),l([d({type:String})],D.prototype,"list",2),l([d({type:Number})],D.prototype,"size",2),l([d({type:String,attribute:"clear-aria-label"})],D.prototype,"clearAriaLabel",2);var ai=D;ai.register(Rn);var Ul=ai;var Nn=v.constructTagName("link"),ao={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},lo={LARGE:1,MIDSIZE:.875,SMALL:.75},co={INLINE:!1,INVERTED:!1,LINK_SIZE:ao.LARGE};var Vl=[k,f`
2008
+ ${this.helpText?this.renderHelperText():v}
2009
+ `}};D.styles=[...ze.styles,...Za],l([c({type:String})],D.prototype,"placeholder",2),l([c({type:Boolean})],D.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],D.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],D.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],D.prototype,"trailingButton",2),l([c({type:Number})],D.prototype,"maxlength",2),l([c({type:Number})],D.prototype,"minlength",2),l([c({type:String})],D.prototype,"autocapitalize",2),l([c({type:String})],D.prototype,"autocomplete",2),l([c({type:Boolean})],D.prototype,"autofocus",2),l([c({type:String})],D.prototype,"dirname",2),l([c({type:String})],D.prototype,"pattern",2),l([c({type:String})],D.prototype,"list",2),l([c({type:Number})],D.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],D.prototype,"clearAriaLabel",2);var xi=D;xi.register(ja);var uc=xi;var fc=f`
2010
+ :host {
2011
+ height: 1.5rem;
2012
+ gap: 0.25rem;
2013
+ padding: 0 0.25rem 0 0.5rem;
2014
+ border-radius: 0.25rem;
2015
+ border: 1px solid;
2016
+ cursor: pointer;
2017
+
2018
+ --mdc-chip-color: var(--mds-color-theme-text-primary-normal);
2019
+ --mdc-chip-border-color: var(--mds-color-theme-outline-button-normal);
2020
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-normal);
2021
+
2022
+ color: var(--mdc-chip-color);
2023
+ border-color: var(--mdc-chip-border-color);
2024
+ background-color: var(--mdc-chip-background-color);
2025
+ }
2026
+
2027
+ :host(:hover) {
2028
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-hover);
2029
+ }
2030
+
2031
+ :host(:active) {
2032
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
2033
+ }
2034
+
2035
+ :host([error]){
2036
+ --mdc-chip-border-color: var(--mds-color-theme-outline-cancel-normal);
2037
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-error-normal);
2038
+ }
2039
+
2040
+ :host([error]:hover) {
2041
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-error-hover);
2042
+ }
2043
+
2044
+ :host([error]:active) {
2045
+ --mdc-chip-background-color: var(--mds-color-theme-background-label-error-active);
2046
+ }
2047
+
2048
+ :host([disabled]), :host([disabled]:hover), :host([disabled]:active) {
2049
+ --mdc-chip-border-color: var(--mds-color-theme-common-outline-primary-disabled);
2050
+ --mdc-chip-background-color: var(--mds-color-theme-background-primary-disabled);
2051
+ --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2052
+ cursor: auto;
2053
+ }
2054
+
2055
+ :host::part(close-icon){
2056
+ border-radius: 0.25rem;
2057
+ }
2058
+ `,Qa=[w,fc];var Ja=g.constructTagName("inputchip"),bo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends X(ee(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2059
+ <mdc-icon
2060
+ name="${this.iconName}"
2061
+ length-unit="rem"
2062
+ size="1"></mdc-icon>
2063
+ `:v}handleClose(e){e.stopPropagation();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}render(){return h`
2064
+ ${this.renderIcon()}
2065
+ <mdc-text type="${bo.TEXT_TYPE}" tagname="${bo.TAG_NAME}">${this.label}</mdc-text>
2066
+ <mdc-button
2067
+ ?disabled="${this.disabled}"
2068
+ variant="tertiary"
2069
+ part="close-icon"
2070
+ aria-label="${this.clearAriaLabel}"
2071
+ prefix-icon="${bo.CLOSE_ICON}"
2072
+ size="20"
2073
+ @click="${this.handleClose}"
2074
+ ></mdc-button>
2075
+ `}};xt.styles=[...y.styles,...Qa],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 Ei=xt;Ei.register(Ja);var gc=Ei;var en=g.constructTagName("link"),vo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},yo={LARGE:1,MIDSIZE:.875,SMALL:.75},xo={INLINE:!1,INVERTED:!1,LINK_SIZE:vo.LARGE};var bc=[w,f`
1741
2076
 
1742
2077
  :host {
1743
2078
 
@@ -1856,35 +2191,35 @@
1856
2191
  :host([inverted][disabled])::part(link-container) {
1857
2192
  color: var(--mdc-link-inverted-color-disabled);
1858
2193
  }
1859
- `,...z(!0),f`
2194
+ `,...O(!0),f`
1860
2195
  :host(:active)::part(link-container) {
1861
2196
  box-shadow: none;
1862
2197
  }
1863
- `],On=Vl;var yt=class extends ve(fe(E)){constructor(){super(...arguments);this.inline=co.INLINE;this.inverted=co.INVERTED;this.size=co.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case ao.SMALL:return lo.SMALL;case ao.MIDSIZE:return lo.MIDSIZE;default:return lo.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(n=>n.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let n=document.createElement("mdc-icon");n.setAttribute("name",this.iconName),n.setAttribute("size",`${r}`),n.setAttribute("length-unit","rem"),e.appendChild(n)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
2198
+ `],tn=bc;var Et=class extends ee(X(y)){constructor(){super(...arguments);this.inline=xo.INLINE;this.inverted=xo.INVERTED;this.size=xo.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case vo.SMALL:return yo.SMALL;case vo.MIDSIZE:return yo.MIDSIZE;default:return yo.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`
1864
2199
  <div part='link-container' class='mdc-focus-ring'>
1865
2200
  <slot @slotchange=${this.updateTrailingIcon}></slot>
1866
2201
  </div>
1867
- `}};yt.styles=[...E.styles,...On],l([d({type:Boolean,reflect:!0})],yt.prototype,"inline",2),l([d({type:Boolean,reflect:!0})],yt.prototype,"inverted",2),l([d({type:String,reflect:!0})],yt.prototype,"size",2);var li=yt;li.register(Nn);var Fl=li;var mo=v.constructTagName("listitem"),ci={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Mn={VARIANT:ci.FULL_WIDTH};var zn=v.constructTagName("list"),yr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},di="header-id";var Hl=f`
2202
+ `}};Et.styles=[...y.styles,...tn],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 Ti=Et;Ti.register(en);var vc=Ti;var Eo=g.constructTagName("listitem"),Ai={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},rn={VARIANT:Ai.FULL_WIDTH};var on=g.constructTagName("list"),wr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Si="header-id";var yc=f`
1868
2203
  :host::part(header-text) {
1869
2204
  padding: 0.5rem 0.75rem;
1870
2205
  }
1871
- `,Dn=[Hl];var Vt=class extends V(E){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case yr.ARROW_DOWN:return(e+1)%r;case yr.ARROW_UP:return(e-1+r)%r;case yr.HOME:return 0;case yr.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`
2206
+ `,sn=[yc];var Wt=class extends V(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 wr.ARROW_DOWN:return(e+1)%r;case wr.ARROW_UP:return(e-1+r)%r;case wr.HOME:return 0;case wr.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`
1872
2207
  <mdc-text
1873
- id="${di}"
2208
+ id="${Si}"
1874
2209
  part="header-text"
1875
- type="${w.BODY_MIDSIZE_BOLD}"
1876
- tagname="${N.SPAN}"
2210
+ type="${_.BODY_MIDSIZE_BOLD}"
2211
+ tagname="${C.SPAN}"
1877
2212
  >${this.headerText}</mdc-text>
1878
- `:b;return h`
2213
+ `:v;return h`
1879
2214
  <div
1880
2215
  role="list"
1881
- aria-labelledby="${this.headerText?di:""}"
2216
+ aria-labelledby="${this.headerText?Si:""}"
1882
2217
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1883
2218
  >
1884
2219
  ${t}
1885
2220
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
1886
2221
  </div>
1887
- `}};Vt.styles=[...E.styles,...Dn],l([rt({selector:mo})],Vt.prototype,"listItems",2),l([d({type:String,attribute:"header-text",reflect:!0})],Vt.prototype,"headerText",2);var mi=Vt;mi.register(zn);var Bl=mi;var Gl=f`
2222
+ `}};Wt.styles=[...y.styles,...sn],l([rt({selector:Eo})],Wt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Wt.prototype,"headerText",2);var _i=Wt;_i.register(on);var xc=_i;var Ec=f`
1888
2223
  :host {
1889
2224
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
1890
2225
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -1953,27 +2288,27 @@
1953
2288
  display: flex;
1954
2289
  flex-direction: row;
1955
2290
  }
1956
- `,$n=[Gl,...z()];var se=class extends V(ve(Br(E))){constructor(){super();this.variant=Mn.VARIANT;this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2291
+ `,an=[Ec,...O()];var le=class extends V(ee(Wr(y))){constructor(){super();this.variant=rn.VARIANT;this.role=this.role||"listitem"}getText(e,r,i){return i?h`
1957
2292
  <slot name="${e}">
1958
- <mdc-text part="${e}" type="${r}" tagname="${N.SPAN}">${i}</mdc-text>
2293
+ <mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${i}</mdc-text>
1959
2294
  </slot>
1960
- `:b}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return h`
2295
+ `:v}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return h`
1961
2296
  <div part="leading">
1962
2297
  <slot name="leading-controls"></slot>
1963
2298
  <div part="leading-text">
1964
- ${this.getText("leading-text-primary-label",w.BODY_MIDSIZE_REGULAR,this.label)}
1965
- ${this.getText("leading-text-secondary-label",w.BODY_SMALL_REGULAR,this.secondaryLabel)}
1966
- ${this.getText("leading-text-tertiary-label",w.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2299
+ ${this.getText("leading-text-primary-label",_.BODY_MIDSIZE_REGULAR,this.label)}
2300
+ ${this.getText("leading-text-secondary-label",_.BODY_SMALL_REGULAR,this.secondaryLabel)}
2301
+ ${this.getText("leading-text-tertiary-label",_.BODY_SMALL_REGULAR,this.tertiaryLabel)}
1967
2302
  </div>
1968
2303
  </div>
1969
2304
  <div part="trailing">
1970
2305
  <div part="trailing-text">
1971
- ${this.getText("trailing-text-side-header",w.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
1972
- ${this.getText("trailing-text-subline",w.BODY_SMALL_REGULAR,this.sublineText)}
2306
+ ${this.getText("trailing-text-side-header",_.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
2307
+ ${this.getText("trailing-text-subline",_.BODY_SMALL_REGULAR,this.sublineText)}
1973
2308
  </div>
1974
2309
  <slot name="trailing-controls"></slot>
1975
2310
  </div>
1976
- `}};se.styles=[...E.styles,...$n],l([rt({slot:"leading-controls"})],se.prototype,"leadingControlsSlot",2),l([rt({slot:"trailing-controls"})],se.prototype,"trailingControlsSlot",2),l([d({type:String,reflect:!0})],se.prototype,"variant",2),l([d({type:String,reflect:!0})],se.prototype,"label",2),l([d({type:String,reflect:!0,attribute:"secondary-label"})],se.prototype,"secondaryLabel",2),l([d({type:String,reflect:!0,attribute:"tertiary-label"})],se.prototype,"tertiaryLabel",2),l([d({type:String,reflect:!0,attribute:"side-header-text"})],se.prototype,"sideHeaderText",2),l([d({type:String,reflect:!0,attribute:"subline-text"})],se.prototype,"sublineText",2);var Ft=se;Ft.register(mo);var Yl=Ft;var ql=f`
2311
+ `}};le.styles=[...y.styles,...an],l([rt({slot:"leading-controls"})],le.prototype,"leadingControlsSlot",2),l([rt({slot:"trailing-controls"})],le.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],le.prototype,"variant",2),l([c({type:String,reflect:!0})],le.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],le.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],le.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],le.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],le.prototype,"sublineText",2);var Xt=le;Xt.register(Eo);var Tc=Xt;var Ac=f`
1977
2312
  :host {
1978
2313
  --mdc-marker-width: 0.25rem;
1979
2314
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1998,7 +2333,7 @@
1998
2333
  var(--mdc-marker-striped-background-color) 0.375rem
1999
2334
  );
2000
2335
  }
2001
- `,Pn=[ql];var Un=v.constructTagName("marker"),Vn={SOLID:"solid",STRIPED:"striped"};var xr=class extends E{constructor(){super(...arguments);this.variant=Vn.SOLID}};xr.styles=[...E.styles,...Pn],l([d({type:String,reflect:!0})],xr.prototype,"variant",2);var pi=xr;pi.register(Un);var Wl=pi;qe.register(Tn);var Xl=qe;var Zl=[k,f`
2336
+ `,nn=[Ac];var ln=g.constructTagName("marker"),cn={SOLID:"solid",STRIPED:"striped"};var Cr=class extends y{constructor(){super(...arguments);this.variant=cn.SOLID}};Cr.styles=[...y.styles,...nn],l([c({type:String,reflect:!0})],Cr.prototype,"variant",2);var Ii=Cr;Ii.register(ln);var Sc=Ii;qe.register(Va);var _c=qe;var Ic=[w,f`
2002
2337
  :host{
2003
2338
  --mdc-radio-inner-circle-size: 0.375rem;
2004
2339
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2160,10 +2495,10 @@
2160
2495
  display: none;
2161
2496
  }
2162
2497
 
2163
- `,...z(!0)],Fn=Zl;var xt=class extends ee(V(re)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
2498
+ `,...O(!0)],dn=Ic;var Tt=class extends oe(V(se)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
2164
2499
  ${this.renderLabel()}
2165
2500
  ${this.renderHelperText()}
2166
- </div>`:b;this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(a=>a.requiredLabel),s=!!r.find(a=>a.checked),n=i&&!s;this.setGroupValidity(r,!n)}this.internals.setFormValue(e)}handleChange(e){var s;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(n=>{var c;let a=(c=n.shadowRoot)==null?void 0:c.querySelector("input");a&&(n.checked=!1,a.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,n;(n=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||n.focus(),e[r].handleChange(i)}handleKeyDown(e){var n;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(a=>!a.disabled),s=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let a=(s+1)%i.length;this.updateRadio(i,a,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let a=(s-1+i.length)%i.length;this.updateRadio(i,a,e)}else e.key===" "&&this.updateRadio(i,s,e);this.updateTabIndex(),e.key==="Enter"&&((n=this.form)==null||n.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),i=e.find(s=>!s.disabled);e.forEach(s=>{var a;let n=(a=s.shadowRoot)==null?void 0:a.querySelector("input");n&&(n.tabIndex=-1,(s===r||!r&&s===i)&&(n.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return h`
2501
+ </div>`:v;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`
2167
2502
  <div class="mdc-radio__container">
2168
2503
  <div class="mdc-radio__icon-container mdc-focus-ring">
2169
2504
  <input
@@ -2188,7 +2523,7 @@
2188
2523
  </div>
2189
2524
  ${this.renderLabelAndHelperText()}
2190
2525
  </div>
2191
- `}};xt.styles=[...re.styles,...Fn],l([d({type:Boolean,reflect:!0})],xt.prototype,"checked",2),l([d({type:Boolean,reflect:!0})],xt.prototype,"readonly",2),l([d({type:Boolean,reflect:!0})],xt.prototype,"autofocus",2);var hi=xt;var po=v.constructTagName("radio");hi.register(po);var jl=hi;var Er=class extends so{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,s,n;(n=(s=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(a=>a.assignedElements({flatten:!0})))==null?void 0:i.filter(a=>a.tagName.toLowerCase()===po))==null?void 0:s.filter(a=>!a.hasAttribute("name")))==null||n.forEach(a=>{a.setAttribute("name",this.name),this.requiredLabel&&a.setAttribute("required-label",this.requiredLabel)})}};Er.styles=[...so.styles],l([d({type:String})],Er.prototype,"name",2);var ui=Er;var Hn=v.constructTagName("radiogroup");ui.register(Hn);var Kl=ui;var Ql=[k,f`
2526
+ `}};Tt.styles=[...se.styles,...dn],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 ki=Tt;var To=g.constructTagName("radio");ki.register(To);var kc=ki;var Lr=class extends fo{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()===To))==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)})}};Lr.styles=[...fo.styles],l([c({type:String})],Lr.prototype,"name",2);var wi=Lr;var mn=g.constructTagName("radiogroup");wi.register(mn);var wc=wi;var Cc=[w,f`
2192
2527
  :host {
2193
2528
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2194
2529
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -2250,11 +2585,11 @@
2250
2585
  stroke-dashoffset: -292;
2251
2586
  }
2252
2587
  }
2253
- `],Bn=Ql;var Gn=v.constructTagName("spinner"),Jl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ec={STANDALONE:"standalone",BUTTON:"button"},ho={VARIANT:ec.STANDALONE,SIZE:Jl.MIDSIZE,INVERTED:!1};var je=class extends E{constructor(){super(...arguments);this.inverted=ho.INVERTED;this.size=ho.SIZE;this.ariaLabel=null;this.variant=ho.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2588
+ `],pn=Cc;var hn=g.constructTagName("spinner"),Lc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Rc={STANDALONE:"standalone",BUTTON:"button"},Ao={VARIANT:Rc.STANDALONE,SIZE:Lc.MIDSIZE,INVERTED:!1};var je=class extends y{constructor(){super(...arguments);this.inverted=Ao.INVERTED;this.size=Ao.SIZE;this.ariaLabel=null;this.variant=Ao.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2254
2589
  <svg part="container" viewBox="0 0 100 100">
2255
2590
  <circle part="circle" cx="50" cy="50" r="46"></circle>
2256
2591
  </svg>
2257
- `}};je.styles=[...E.styles,...Bn],l([d({type:Boolean,reflect:!0})],je.prototype,"inverted",2),l([d({type:String,reflect:!0})],je.prototype,"size",2),l([d({type:String,attribute:"aria-label"})],je.prototype,"ariaLabel",2),l([d({type:String,reflect:!0})],je.prototype,"variant",2);var fi=je;fi.register(Gn);var tc=fi;var rc=[k,f`
2592
+ `}};je.styles=[...y.styles,...pn],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 Ci=je;Ci.register(hn);var Nc=Ci;var Oc=[w,f`
2258
2593
 
2259
2594
  :host {
2260
2595
  --mdc-tab-content-gap: 0.5rem;
@@ -2497,21 +2832,21 @@
2497
2832
  color: var(--mdc-tab-pill-active-color-disabled);
2498
2833
  }
2499
2834
 
2500
- `,...z()],Yn=rc;var qn=v.constructTagName("tab"),gi={GLASS:"glass",LINE:"line",PILL:"pill"},bi={VARIANT:gi.PILL};var Ht=class extends fe(Be){constructor(){super();this.variant=bi.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${cr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(gi).includes(e)?e:bi.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`
2835
+ `,...O()],un=Oc;var fn=g.constructTagName("tab"),Li={GLASS:"glass",LINE:"line",PILL:"pill"},Ri={VARIANT:Li.PILL};var Zt=class extends X(te){constructor(){super();this.variant=Ri.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${br(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Li).includes(e)?e:Ri.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`
2501
2836
  <div part="container">
2502
- ${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:b}
2837
+ ${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
2503
2838
  ${this.text?h` <mdc-text
2504
- type=${this.active?w.BODY_MIDSIZE_BOLD:w.BODY_MIDSIZE_MEDIUM}
2505
- tagname=${N.SPAN}
2839
+ type=${this.active?_.BODY_MIDSIZE_BOLD:_.BODY_MIDSIZE_MEDIUM}
2840
+ tagname=${C.SPAN}
2506
2841
  data-text=${this.text}
2507
2842
  part="text"
2508
2843
  >${this.text}</mdc-text
2509
- >`:b}
2844
+ >`:v}
2510
2845
  <slot name="badge"></slot>
2511
2846
  <slot name="chip"></slot>
2512
2847
  </div>
2513
2848
  <div part="indicator"></div>
2514
- `}};Ht.styles=[...Be.styles,...Yn],l([d({type:String,reflect:!0})],Ht.prototype,"text",2),l([d({type:String,reflect:!0})],Ht.prototype,"variant",2);var vi=Ht;vi.register(qn);var oc=vi;var uo=v.constructTagName("themeprovider"),yi={THEMECLASS:"mds-theme-stable-darkWebex"};var fo=class{constructor(t){this.themeclass=t}};fo.context=uo;var go=fo;var ic=f`
2849
+ `}};Zt.styles=[...te.styles,...un],l([c({type:String,reflect:!0})],Zt.prototype,"text",2),l([c({type:String,reflect:!0})],Zt.prototype,"variant",2);var Ni=Zt;Ni.register(fn);var Mc=Ni;var So=g.constructTagName("themeprovider"),Oi={THEMECLASS:"mds-theme-stable-darkWebex"};var _o=class{constructor(t){this.themeclass=t}};_o.context=So;var Io=_o;var zc=f`
2515
2850
  :host {
2516
2851
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
2517
2852
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -2540,7 +2875,7 @@
2540
2875
  * {
2541
2876
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
2542
2877
  }
2543
- `,Wn=[ic];var Bt=class extends Rt{constructor(){super({context:go.context,initialValue:new go(yi.THEMECLASS)});this.themeclass=yi.THEMECLASS}static get Context(){return go.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(" "))}};Bt.styles=[...Rt.styles,...Wn],l([W()],Bt.prototype,"currentThemeClass",2),l([d({type:String})],Bt.prototype,"themeclass",2);var xi=Bt;xi.register(uo);var sc=xi;var nc=[k,f`
2878
+ `,gn=[zc];var jt=class extends Nt{constructor(){super({context:Io.context,initialValue:new Io(Oi.THEMECLASS)});this.themeclass=Oi.THEMECLASS}static get Context(){return Io.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};jt.styles=[...Nt.styles,...gn],l([W()],jt.prototype,"currentThemeClass",2),l([c({type:String})],jt.prototype,"themeclass",2);var Mi=jt;Mi.register(So);var Dc=Mi;var $c=[w,f`
2544
2879
  :host {
2545
2880
  --mdc-toggle-width: 3rem;
2546
2881
  --mdc-toggle-height: 1.5rem;
@@ -2692,7 +3027,7 @@
2692
3027
  border: var(--mdc-toggle-border);
2693
3028
  }
2694
3029
  }
2695
- `,...z(!0)],Xn=nc;var Zn=v.constructTagName("toggle"),Ei={DEFAULT:"default",COMPACT:"compact"},Ti={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},jn={compact:.75,default:1.25},Ai={SIZE:Ei.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Et=class extends ee(V(Me)){constructor(){super();this.checked=!1;this.size=Ai.SIZE;this.autofocus=!1;this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Ei).includes(e)?e:Ai.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
3030
+ `,...O(!0)],bn=$c;var vn=g.constructTagName("toggle"),zi={DEFAULT:"default",COMPACT:"compact"},Di={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},yn={compact:.75,default:1.25},$i={SIZE:zi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends oe(V(ze)){constructor(){super();this.checked=!1;this.size=$i.SIZE;this.autofocus=!1;this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(zi).includes(e)?e:$i.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
2696
3031
  <div class="mdc-toggle__container mdc-focus-ring">
2697
3032
  <input
2698
3033
  id="${this.id}"
@@ -2714,16 +3049,16 @@
2714
3049
  />
2715
3050
  <div class="mdc-toggle__slider">
2716
3051
  <mdc-icon
2717
- name="${this.checked?Ti.CHECKED:Ti.UNCHECKED}"
3052
+ name="${this.checked?Di.CHECKED:Di.UNCHECKED}"
2718
3053
  class="mdc-toggle__icon"
2719
3054
  length-unit="rem"
2720
- size="${jn[this.size]}"
3055
+ size="${yn[this.size]}"
2721
3056
  ></mdc-icon>
2722
3057
  </div>
2723
3058
  </div>
2724
3059
  ${this.renderLabel()}
2725
3060
  ${this.renderHelperText()}
2726
- `}};Et.styles=[...Me.styles,...Xn],l([d({type:Boolean,reflect:!0})],Et.prototype,"checked",2),l([d({type:String,reflect:!0})],Et.prototype,"size",2),l([d({type:Boolean,reflect:!0})],Et.prototype,"autofocus",2);var Si=Et;Si.register(Zn);var ac=Si;var Kn=v.constructTagName("tooltip"),K={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ze={BACKDROP:!1,COLOR:ht.TONAL,DELAY:"0,0",OFFSET:4,PLACEMENT:pt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:K.DESCRIPTION};var lc=f`
3061
+ `}};At.styles=[...ze.styles,...bn],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 Pi=At;Pi.register(vn);var Pc=Pi;var xn=g.constructTagName("tooltip"),Q={DESCRIPTION:"description",LABEL:"label",NONE:"none"},De={BACKDROP:!1,COLOR:ut.TONAL,DELAY:"0,0",OFFSET:4,PLACEMENT:ht.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Q.DESCRIPTION};var Uc=f`
2727
3062
 
2728
3063
  :host {
2729
3064
  --mdc-tooltip-max-width: 400px;
@@ -2748,10 +3083,10 @@
2748
3083
  :host([color='contrast'])::part(popover-content) {
2749
3084
  color: var(--mdc-tooltip-text-color-contrast);
2750
3085
  }
2751
- `,Qn=[lc];var Gt=class extends qe{constructor(){super();this.tooltipType=ze.TOOLTIP_TYPE;this.backdrop=!1,this.color=ze.COLOR,this.delay=ze.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=ze.OFFSET,this.placement=ze.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.visible=!1,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(K).includes(e)?e:ze.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${dr()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case K.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case K.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(pt).includes(this.placement)||(this.placement=ze.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(K).includes(this.tooltipType)||this.setTooltipType(ze.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case K.DESCRIPTION:r===K.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case K.LABEL:r===K.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===K.DESCRIPTION?i.removeAttribute("aria-describedby"):r===K.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==K.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)}};Gt.styles=[...qe.styles,...Qn],l([d({type:String,attribute:"tooltip-type",reflect:!0})],Gt.prototype,"tooltipType",2),l([os()],Gt.prototype,"defaultSlotNodes",2);var _i=Gt;_i.register(Kn);var cc=_i;function Tt(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var n,a,c,m;let p;e.key&&((n=e.debug)!=null&&n.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((x,T)=>r[T]!==x)))return i;r=u;let g;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(g=Date.now()),i=t(...u),e.key&&((c=e.debug)!=null&&c.call(e))){let x=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-g)*100)/100,_=T/16,S=(I,L)=>{for(I=String(I);I.length<L;)I=" "+I;return I};console.info(`%c\u23F1 ${S(T,5)} /${S(x,5)} ms`,`
3086
+ `,En=[Uc];var Kt=class extends qe{constructor(){super();this.tooltipType=De.TOOLTIP_TYPE;this.backdrop=!1,this.color=De.COLOR,this.delay=De.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=De.OFFSET,this.placement=De.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.visible=!1,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(Q).includes(e)?e:De.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${vr()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Q.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Q.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ht).includes(this.placement)||(this.placement=De.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(Q).includes(this.tooltipType)||this.setTooltipType(De.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case Q.DESCRIPTION:r===Q.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case Q.LABEL:r===Q.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===Q.DESCRIPTION?i.removeAttribute("aria-describedby"):r===Q.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==Q.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)}};Kt.styles=[...qe.styles,...En],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Kt.prototype,"tooltipType",2),l([bs()],Kt.prototype,"defaultSlotNodes",2);var Ui=Kt;Ui.register(xn);var Vc=Ui;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,R)=>{for(k=String(k);k.length<R;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
2752
3087
  font-size: .6rem;
2753
3088
  font-weight: bold;
2754
- color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function bo(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Jn=(o,t)=>Math.abs(o-t)<1,ea=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var dc=o=>o,mc=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},ra=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=n=>{let{width:a,height:c}=n;t({width:Math.round(a),height:Math.round(c)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(n=>{let a=n[0];if(a!=null&&a.borderBoxSize){let c=a.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},ta={passive:!0};var pc=typeof window>"u"?!0:"onscrollend"in window,oa=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&pc?()=>{}:ea(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),n=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},a=n(!0),c=n(!1);return c(),e.addEventListener("scroll",a,ta),e.addEventListener("scrollend",c,ta),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",c)}};var hc=(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 ia=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let n=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:n,behavior:e})},vo=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:dc,rangeExtractor:mc,onChange:()=>{},measureElement:hc,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=Tt(()=>(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,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=n,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 n=r-1;n>=0;n--){let a=e[n];if(i.has(a.lane))continue;let c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((n,a)=>n.end===a.end?n.index-a.index:n.end-a.end)[0]:void 0},this.getMeasurementOptions=Tt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,n)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:n}),{key:!1}),this.getMeasurements=Tt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:n},a)=>{if(!n)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 c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,c);for(let p=c;p<e;p++){let u=s(p),y=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),g=y?y.end+this.options.gap:r+i,x=a.get(u),T=typeof x=="number"?x:this.options.estimateSize(p),_=g+T,S=y?y.lane:p%this.options.lanes;m[p]={index:p,start:g,size:T,end:_,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Tt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?uc({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Tt(()=>{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,n)=>s===null||n===null?[]:e({startIndex:s,endIndex:n,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 n=s.key,a=this.elementsCache.get(n);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let s=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,n=r-s;n!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,n,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,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=Tt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let a=e[s],c=r[a];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return bo(r[sa(0,r.length-1,i=>bo(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 n=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-i;return Math.max(Math.min(c,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),n=this.getScrollOffset();if(r==="auto")if(i.end>=n+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=n+this.options.scrollPaddingStart)r="start";else return[n,r];let a=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[n,a]=s;this._scrollToOffset(n,{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]=bo(this.getOffsetForIndex(e,a));Jn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var 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(n=>n.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)}},sa=(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 uc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=sa(0,r,a=>o[a].start,e),n=s;for(;n<r&&o[n].end<e+t;)n++;return{startIndex:s,endIndex:n}}var Ii=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var n;this.host.updateComplete.then(()=>this.host.requestUpdate()),(n=e.onChange)==null||n.call(e,i,s)}};this.virtualizer=new vo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},yo=class extends Ii{constructor(t,e){super(t,{observeElementRect:ra,observeElementOffset:oa,scrollToFn:ia,...e})}};var{I:CT}=Ji;var na=o=>o.strings===void 0;var Tr=(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),Tr(i,t);return!0},xo=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)},aa=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),bc(t)}};function fc(o){this._$AN!==void 0?(xo(this),this._$AM=o,aa(this)):this._$AM=o}function gc(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++)Tr(r[s],!1),xo(r[s]);else r!=null&&(Tr(r,!1),xo(r));else Tr(this,o)}var bc=o=>{var t,e;o.type==Gr.CHILD&&((t=o._$AP)!=null||(o._$AP=gc),(e=o._$AQ)!=null||(o._$AQ=fc))},Eo=class extends Dt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),aa(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&&(Tr(this,t),xo(this))}setValue(t){if(na(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 la=()=>new Ci,Ci=class{},wi=new WeakMap,ca=nr(class extends Eo{render(o){return b}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),b}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=wi.get(e);r===void 0&&(r=new WeakMap,wi.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=wi.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 vc=[f`
3089
+ 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 ko(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Tn=(o,t)=>Math.abs(o-t)<1,An=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Fc=o=>o,Hc=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},_n=(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)}},Sn={passive:!0};var Bc=typeof window>"u"?!0:"onscrollend"in window,In=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&Bc?()=>{}:An(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,Sn),e.addEventListener("scrollend",d,Sn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var Gc=(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 kn=(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})},wo=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:Fc,rangeExtractor:Hc,onChange:()=>{},measureElement:Gc,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?Yc({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 ko(r[wn(0,r.length-1,i=>ko(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]=ko(this.getOffsetForIndex(e,n));Tn(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)}},wn=(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 Yc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=wn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Vi=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 wo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Co=class extends Vi{constructor(t,e){super(t,{observeElementRect:_n,observeElementOffset:In,scrollToFn:kn,...e})}};var{I:NS}=hs;var Cn=o=>o.strings===void 0;var Rr=(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),Rr(i,t);return!0},Lo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ln=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),Xc(t)}};function qc(o){this._$AN!==void 0?(Lo(this),this._$AM=o,Ln(this)):this._$AM=o}function Wc(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++)Rr(r[s],!1),Lo(r[s]);else r!=null&&(Rr(r,!1),Lo(r));else Rr(this,o)}var Xc=o=>{var t,e;o.type==Jr.CHILD&&((t=o._$AP)!=null||(o._$AP=Wc),(e=o._$AQ)!=null||(o._$AQ=qc))},Ro=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ln(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&&(Rr(this,t),Lo(this))}setValue(t){if(Cn(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 Rn=()=>new Hi,Hi=class{},Fi=new WeakMap,Nn=ur(class extends Ro{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=Fi.get(e);r===void 0&&(r=new WeakMap,Fi.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=Fi.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 Zc=[f`
2755
3090
  :host::part(scroll) {
2756
3091
  height: 100%;
2757
3092
  width: 100%;
@@ -2761,41 +3096,41 @@
2761
3096
  position: relative;
2762
3097
  width: 100%;
2763
3098
  }
2764
- `],da=vc;var ma=v.constructTagName("virtualizedlist"),GT=v.constructTagName("virtualizedwrapper"),pa={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var At=class extends E{constructor(){super();this.virtualizerProps=pa.VIRTUALIZER_PROPS;this.scrollElementRef=la();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 yo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var a,c;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:s}=this.virtualizer,n=i();if(n!==this.virtualItems){this.virtualItems=n;let m=i(),p={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(c=(a=m[0])==null?void 0:a.start)!=null?c:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:p})}return h`<div
3099
+ `],On=Zc;var Mn=g.constructTagName("virtualizedlist"),XS=g.constructTagName("virtualizedwrapper"),zn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=zn.VIRTUALIZER_PROPS;this.scrollElementRef=Rn();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 Co(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
2765
3100
  part="container"
2766
3101
  style="height: ${r()}px;"
2767
3102
  >
2768
3103
  <slot></slot>
2769
3104
  </div>`}render(){return h`<div
2770
- ${ca(this.scrollElementRef)}
3105
+ ${Nn(this.scrollElementRef)}
2771
3106
  part="scroll"
2772
3107
  @scroll=${this.onscroll&&this.onscroll}
2773
3108
  >
2774
3109
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):h``}
2775
3110
  </div>
2776
- `}};At.styles=[...E.styles,...da],l([d({type:Function,attribute:"onscroll"})],At.prototype,"onscroll",2),l([d({type:Object,attribute:"virtualizerprops"})],At.prototype,"virtualizerProps",2),l([d({type:Function,attribute:"setlistdata"})],At.prototype,"setlistdata",2);var Li=At;Li.register(ma);var yc=Li;var ha="check-bold",ua=v.constructTagName("option");var xc=f`
3111
+ `}};_t.styles=[...y.styles,...On],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 Bi=_t;Bi.register(Mn);var jc=Bi;var Dn="check-bold",$n=g.constructTagName("option");var Kc=f`
2777
3112
  :host::part(list-item) {
2778
3113
  height: 2.25rem;
2779
3114
  }
2780
3115
  :host::part(default-slot) {
2781
3116
  display: none;
2782
3117
  }
2783
- `,fa=[xc];var St=class extends ee(Ft){constructor(){super();this.selected=!1;this.ariaLabel=null;this.role="option",this.variant=ci.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`
2784
- <mdc-icon slot="trailing-controls" name="${ha}"></mdc-icon>
2785
- `:b,r=this.prefixIcon?h`
3118
+ `,Pn=[Kc];var It=class extends oe(Xt){constructor(){super();this.selected=!1;this.ariaLabel=null;this.role="option",this.variant=Ai.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`
3119
+ <mdc-icon slot="trailing-controls" name="${Dn}"></mdc-icon>
3120
+ `:v,r=this.prefixIcon?h`
2786
3121
  <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
2787
- `:b;return h`
3122
+ `:v;return h`
2788
3123
  <div part="leading">
2789
3124
  ${r}
2790
3125
  <div part="leading-text">
2791
- ${this.getText("leading-text-primary-label",w.BODY_MIDSIZE_REGULAR,this.label)}
3126
+ ${this.getText("leading-text-primary-label",_.BODY_MIDSIZE_REGULAR,this.label)}
2792
3127
  </div>
2793
3128
  </div>
2794
3129
  <div part="trailing">
2795
3130
  ${e}
2796
3131
  </div>
2797
3132
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2798
- `}};St.styles=[...Ft.styles,...fa],l([d({type:Boolean,reflect:!0})],St.prototype,"selected",2),l([d({type:String,reflect:!0,attribute:"prefix-icon"})],St.prototype,"prefixIcon",2),l([d({type:String,reflect:!0,attribute:"aria-label"})],St.prototype,"ariaLabel",2);var Ri=St;Ri.register(ua);var Ec=Ri;var ga=v.constructTagName("optgroup"),ki="header-id";var Tc=f`
3133
+ `}};It.styles=[...Xt.styles,...Pn],l([c({type:Boolean,reflect:!0})],It.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],It.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],It.prototype,"ariaLabel",2);var Gi=It;Gi.register($n);var Qc=Gi;var Un=g.constructTagName("optgroup"),Yi="header-id";var Jc=f`
2799
3134
  :host {
2800
3135
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
2801
3136
  }
@@ -2808,23 +3143,23 @@
2808
3143
  color: var(--mdc-optgroup-disabled-color);
2809
3144
  cursor: default;
2810
3145
  }
2811
- `,ba=[Tc];var Yt=class extends V(ve(E)){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`
3146
+ `,Vn=[Jc];var Qt=class extends V(ee(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`
2812
3147
  <mdc-text
2813
- id="${ki}"
3148
+ id="${Yi}"
2814
3149
  part="header-text"
2815
- type="${w.BODY_MIDSIZE_BOLD}"
2816
- tagname="${N.SPAN}"
3150
+ type="${_.BODY_MIDSIZE_BOLD}"
3151
+ tagname="${C.SPAN}"
2817
3152
  >${this.label}</mdc-text>
2818
- `:b;return h`
3153
+ `:v;return h`
2819
3154
  <div
2820
3155
  role="group"
2821
- aria-labelledby="${this.label?ki:""}"
3156
+ aria-labelledby="${this.label?Yi:""}"
2822
3157
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2823
3158
  >
2824
3159
  ${t}
2825
3160
  <slot role="presentation"></slot>
2826
3161
  </div>
2827
- `}};Yt.styles=[...E.styles,...ba],l([d({type:String,reflect:!0})],Yt.prototype,"label",2),l([rt({selector:"mdc-option"})],Yt.prototype,"options",2);var Ni=Yt;Ni.register(ga);var Ac=Ni;var Sc=[f`
3162
+ `}};Qt.styles=[...y.styles,...Vn],l([c({type:String,reflect:!0})],Qt.prototype,"label",2),l([rt({selector:"mdc-option"})],Qt.prototype,"options",2);var qi=Qt;qi.register(Un);var ed=qi;var td=[f`
2828
3163
  :host {
2829
3164
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
2830
3165
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -2942,27 +3277,27 @@
2942
3277
  pointer-events: none;
2943
3278
  }
2944
3279
 
2945
- `,...z(!0)],va=Sc;var ya=v.constructTagName("textarea"),_c="cancel-bold",Oi={HARD:"hard",SOFT:"soft"},xa={OFF:"off",ON:"on"},_t={ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:_c,CLEAR_BUTTON_VARIANT:Le.TERTIARY,CLEAR_BUTTON_SIZE:le[20],CHARACTER_COUNTER_TYPE:w.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Oi.SOFT};var $=class extends ee(V(Me)){constructor(){var e;super();this.readonly=!1;this.rows=_t.ROWS;this.cols=_t.COLS;this.wrap=Oi.SOFT;this.autocapitalize=no.OFF;this.autocomplete=xa.OFF;this.autofocus=!1;this.clearButton=!1;this.clearAriaLabel="";this.characterLimitExceedingFired=!1;this.value=((e=this.textContent)==null?void 0:e.trim())||this.value}get textarea(){return this.inputElement}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===te.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(n=>{this.onerror&&this.onerror(n)})}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))}handleKeyDown(e){["Enter"].includes(e.key)&&(e.preventDefault(),this.clearInputText())}clearInputText(){this.value="",this.textarea.focus()}renderClearButton(){return this.clearButton?h`
3280
+ `,...O(!0)],Fn=td;var Hn=g.constructTagName("textarea"),rd="cancel-bold",Wi={HARD:"hard",SOFT:"soft"},Bn={OFF:"off",ON:"on"},kt={ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:rd,CLEAR_BUTTON_VARIANT:Le.TERTIARY,CLEAR_BUTTON_SIZE:me[20],CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Wi.SOFT};var $=class extends oe(V(ze)){constructor(){var e;super();this.readonly=!1;this.rows=kt.ROWS;this.cols=kt.COLS;this.wrap=Wi.SOFT;this.autocapitalize=go.OFF;this.autocomplete=Bn.OFF;this.autofocus=!1;this.clearButton=!1;this.clearAriaLabel="";this.characterLimitExceedingFired=!1;this.value=((e=this.textContent)==null?void 0:e.trim())||this.value}get textarea(){return this.inputElement}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===ie.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))}handleKeyDown(e){["Enter"].includes(e.key)&&(e.preventDefault(),this.clearInputText())}clearInputText(){this.value="",this.textarea.focus()}renderClearButton(){return this.clearButton?h`
2946
3281
  <mdc-button
2947
3282
  part='clear-button'
2948
3283
  class='own-focus-ring ${this.value?"":"hidden"}'
2949
- prefix-icon='${_t.CLEAR_BUTTON_ICON}'
2950
- variant='${_t.CLEAR_BUTTON_VARIANT}'
2951
- size="${_t.CLEAR_BUTTON_SIZE}"
3284
+ prefix-icon='${kt.CLEAR_BUTTON_ICON}'
3285
+ variant='${kt.CLEAR_BUTTON_VARIANT}'
3286
+ size="${kt.CLEAR_BUTTON_SIZE}"
2952
3287
  aria-label="${this.clearAriaLabel}"
2953
3288
  ?disabled=${this.disabled||this.readonly||!this.value}
2954
3289
  @click=${this.clearInputText}
2955
3290
  @keydown=${this.handleKeyDown}
2956
3291
  ></mdc-button>
2957
- `:b}renderCharacterCounter(){return this.maxCharacterLimit?h`
3292
+ `:v}renderCharacterCounter(){return this.maxCharacterLimit?h`
2958
3293
  <mdc-text
2959
3294
  part="character-counter"
2960
3295
  tagname="span"
2961
- type=${_t.CHARACTER_COUNTER_TYPE}
3296
+ type=${kt.CHARACTER_COUNTER_TYPE}
2962
3297
  >
2963
3298
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
2964
3299
  </mdc-text>
2965
- `:b}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?b:h`
3300
+ `:v}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?v:h`
2966
3301
  <div part="textarea-footer">
2967
3302
  ${this.renderHelperText()}
2968
3303
  ${this.renderCharacterCounter()}
@@ -2997,7 +3332,7 @@
2997
3332
  ${this.renderClearButton()}
2998
3333
  </div>
2999
3334
  ${this.renderTextareaFooter()}
3000
- `}};$.styles=[...Me.styles,...va],l([d({type:String})],$.prototype,"placeholder",2),l([d({type:Boolean})],$.prototype,"readonly",2),l([d({type:Number})],$.prototype,"rows",2),l([d({type:Number})],$.prototype,"cols",2),l([d({type:String})],$.prototype,"wrap",2),l([d({type:String})],$.prototype,"autocapitalize",2),l([d({type:String})],$.prototype,"autocomplete",2),l([d({type:Boolean})],$.prototype,"autofocus",2),l([d({type:String})],$.prototype,"dirname",2),l([d({type:Number})],$.prototype,"maxlength",2),l([d({type:Number})],$.prototype,"minlength",2),l([d({type:Boolean,attribute:"clear-button"})],$.prototype,"clearButton",2),l([d({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2),l([d({type:Number,attribute:"max-character-limit"})],$.prototype,"maxCharacterLimit",2),l([Or("textarea")],$.prototype,"inputElement",2);var Mi=$;Mi.register(ya);var Ic=Mi;})();
3335
+ `}};$.styles=[...ze.styles,...Fn],l([c({type:String})],$.prototype,"placeholder",2),l([c({type:Boolean})],$.prototype,"readonly",2),l([c({type:Number})],$.prototype,"rows",2),l([c({type:Number})],$.prototype,"cols",2),l([c({type:String})],$.prototype,"wrap",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:Number})],$.prototype,"maxlength",2),l([c({type:Number})],$.prototype,"minlength",2),l([c({type:Boolean,attribute:"clear-button"})],$.prototype,"clearButton",2),l([c({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2),l([c({type:Number,attribute:"max-character-limit"})],$.prototype,"maxCharacterLimit",2),l([Hr("textarea")],$.prototype,"inputElement",2);var Xi=$;Xi.register(Hn);var od=Xi;})();
3001
3336
  /*! Bundled license information:
3002
3337
 
3003
3338
  @lit/reactive-element/css-tag.js:
@@ -3105,13 +3440,6 @@ lit-html/is-server.js:
3105
3440
  * SPDX-License-Identifier: BSD-3-Clause
3106
3441
  *)
3107
3442
 
3108
- lit-html/directives/if-defined.js:
3109
- (**
3110
- * @license
3111
- * Copyright 2018 Google LLC
3112
- * SPDX-License-Identifier: BSD-3-Clause
3113
- *)
3114
-
3115
3443
  @lit/context/lib/context-request-event.js:
3116
3444
  (**
3117
3445
  * @license
@@ -3168,6 +3496,13 @@ lit-html/directives/if-defined.js:
3168
3496
  * SPDX-License-Identifier: BSD-3-Clause
3169
3497
  *)
3170
3498
 
3499
+ lit-html/directives/if-defined.js:
3500
+ (**
3501
+ * @license
3502
+ * Copyright 2018 Google LLC
3503
+ * SPDX-License-Identifier: BSD-3-Clause
3504
+ *)
3505
+
3171
3506
  lit-html/directive.js:
3172
3507
  (**
3173
3508
  * @license