@momentum-design/components 0.41.4 → 0.41.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Kn=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&&Kn(t,e,i),i};var Rr=globalThis,Or=Rr.ShadowRoot&&(Rr.ShadyCSS===void 0||Rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mo=Symbol(),Qi=new WeakMap,Jt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Mo)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=Qi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Qi.set(e,t))}return t}toString(){return this.cssText}},Ji=o=>new Jt(typeof o=="string"?o:o+"",void 0,Mo),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,Mo)},zo=(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=Rr.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:Jn,defineProperty:el,getOwnPropertyDescriptor:tl,getOwnPropertyNames:rl,getOwnPropertySymbols:ol,getPrototypeOf:il}=Object,Ue=globalThis,es=Ue.trustedTypes,sl=es?es.emptyScript:"",Do=Ue.reactiveElementPolyfillSupport,er=(o,t)=>o,tr={toAttribute(o,t){switch(t){case Boolean:o=o?sl: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)=>!Jn(o,t),ts={attribute:!0,type:String,converter:tr,reflect:!1,hasChanged:zr},rs,os;(rs=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(os=Ue.litPropertyMetadata)!=null||(Ue.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=ts){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&&el(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=tl(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:ts}static _$Ei(){if(this.hasOwnProperty(er("elementProperties")))return;let t=il(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=[...rl(e),...ol(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 zo(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){}},is;_e.elementStyles=[],_e.shadowRootOptions={mode:"open"},_e[er("elementProperties")]=new Map,_e[er("finalized")]=new Map,Do==null||Do({ReactiveElement:_e}),((is=Ue.reactiveElementVersions)!=null?is:Ue.reactiveElementVersions=[]).push("2.0.4");var or=globalThis,Dr=or.trustedTypes,ss=Dr?Dr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Uo="$lit$",Ie=`lit$${Math.random().toFixed(9).slice(2)}$`,Vo="?"+Ie,al=`<${Vo}>`,Qe=document,ir=()=>Qe.createComment(""),sr=o=>o===null||typeof o!="object"&&typeof o!="function",Fo=Array.isArray,ps=o=>Fo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",$o=`[
2
- \f\r]`,rr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,as=/-->/g,ns=/>/g,je=RegExp(`>|${$o}(?:([^\\s"'>=/]+)(${$o}*=${$o}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ls=/'/g,cs=/"/g,hs=/^(?:script|style|textarea|title)$/i,Ho=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Ho(1),gd=Ho(2),bd=Ho(3),ke=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ds=new WeakMap,Ke=Qe.createTreeWalker(Qe,129);function us(o,t){if(!Fo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ss!==void 0?ss.createHTML(t):t}var fs=(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=as:p[1]!==void 0?a=ns:p[2]!==void 0?(hs.test(p[2])&&(i=RegExp("</"+p[2],"g")),a=je):p[3]!==void 0&&(a=je):a===je?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?je:p[3]==='"'?cs:ls):a===cs||a===ls?a=je:a===as||a===ns?a=rr:(a=je,i=void 0);let b=a===je&&o[n+1].startsWith("/>")?" ":"";s+=a===rr?d+al:u>=0?(r.push(m),d.slice(0,u)+Uo+d.slice(u)+Ie+b):d+Ie+(u===-2?n:b)}return[us(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]=fs(t,e);if(this.el=o.createElement(m,r),Ke.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Ke.nextNode())!==null&&d.length<n;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(Uo)){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:et}),i.removeAttribute(u)}else u.startsWith(Ie)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(hs.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()),Ke.nextNode(),d.push({type:2,index:++s});i.append(u[x],ir())}}}else if(i.nodeType===8)if(i.data===Vo)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=Qe.createElement("template");return r.innerHTML=t,r}};function Je(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=Je(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:Qe).importNode(e,!0);Ke.currentNode=i;let s=Ke.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new wt(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new Fr(s,this,t)),this._$AV.push(p),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=Ke.nextNode(),a++)}return Ke.currentNode=Qe,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Je(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):ps(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(Qe.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(us(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=ds.get(t.strings);return e===void 0&&ds.set(t.strings,e=new ar(t)),e}k(t){Fo(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))}},et=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=Je(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=Je(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 et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Ur=class extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Vr=class extends et{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=Je(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){Je(this,t)}},gs={M:Uo,P:Ie,A:Vo,C:1,L:fs,R:$r,D:ps,V:Je,I:wt,H:et,N:Ur,U:Vr,B:Pr,F:Fr},Po=or.litHtmlPolyfillSupport,ms;Po==null||Po(ar,wt),((ms=or.litHtmlVersions)!=null?ms:or.litHtmlVersions=[]).push("3.2.0");var bs=(o,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=i=new wt(t.insertBefore(ir(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var Ve=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=bs(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}},vs;Ve._$litElement$=!0,Ve.finalized=!0,(vs=globalThis.litElementHydrateSupport)==null||vs.call(globalThis,{LitElement:Ve});var Bo=globalThis.litElementPolyfillSupport;Bo==null||Bo({LitElement:Ve});var ys;((ys=globalThis.litElementVersions)!=null?ys:globalThis.litElementVersions=[]).push("4.1.0");var nl={attribute:!0,type:String,converter:tr,reflect:!1,hasChanged:zr},ll=(o=nl,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"?ll(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 X(o){return c({...o,state:!0,attribute:!1})}var Ce=(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 Ce(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 Ce(e,r,{get(){return s(this)}})}}function tt(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Ce(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 xs(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return Ce(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(i);return(n=s==null?void 0:s.assignedNodes(o))!=null?n:[]}})}}var C=f`
1
+ "use strict";(()=>{var Kn=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&&Kn(t,e,i),i};var Or=globalThis,Mr=Or.ShadowRoot&&(Or.ShadyCSS===void 0||Or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zo=Symbol(),Qi=new WeakMap,Jt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==zo)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(Mr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Qi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Qi.set(e,t))}return t}toString(){return this.cssText}},Ji=o=>new Jt(typeof o=="string"?o:o+"",void 0,zo),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,zo)},Do=(o,t)=>{if(Mr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Or.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},zr=Mr?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:Jn,defineProperty:el,getOwnPropertyDescriptor:tl,getOwnPropertyNames:rl,getOwnPropertySymbols:ol,getPrototypeOf:il}=Object,Ue=globalThis,es=Ue.trustedTypes,sl=es?es.emptyScript:"",$o=Ue.reactiveElementPolyfillSupport,er=(o,t)=>o,tr={toAttribute(o,t){switch(t){case Boolean:o=o?sl: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}},Dr=(o,t)=>!Jn(o,t),ts={attribute:!0,type:String,converter:tr,reflect:!1,hasChanged:Dr},rs,os;(rs=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(os=Ue.litPropertyMetadata)!=null||(Ue.litPropertyMetadata=new WeakMap);var Ie=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ts){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&&el(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=tl(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:ts}static _$Ei(){if(this.hasOwnProperty(er("elementProperties")))return;let t=il(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=[...rl(e),...ol(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(zr(i))}else t!==void 0&&e.push(zr(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 Do(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:Dr)(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){}},is;Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[er("elementProperties")]=new Map,Ie[er("finalized")]=new Map,$o==null||$o({ReactiveElement:Ie}),((is=Ue.reactiveElementVersions)!=null?is:Ue.reactiveElementVersions=[]).push("2.0.4");var or=globalThis,$r=or.trustedTypes,ss=$r?$r.createPolicy("lit-html",{createHTML:o=>o}):void 0,Vo="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Fo="?"+ke,al=`<${Fo}>`,Je=document,ir=()=>Je.createComment(""),sr=o=>o===null||typeof o!="object"&&typeof o!="function",Ho=Array.isArray,ps=o=>Ho(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Po=`[
2
+ \f\r]`,rr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,as=/-->/g,ns=/>/g,Ke=RegExp(`>|${Po}(?:([^\\s"'>=/]+)(${Po}*=${Po}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ls=/'/g,cs=/"/g,hs=/^(?:script|style|textarea|title)$/i,Bo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Bo(1),gd=Bo(2),bd=Bo(3),Ce=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ds=new WeakMap,Qe=Je.createTreeWalker(Je,129);function us(o,t){if(!Ho(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ss!==void 0?ss.createHTML(t):t}var fs=(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=as:p[1]!==void 0?a=ns:p[2]!==void 0?(hs.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]==='"'?cs:ls):a===cs||a===ls?a=Ke:a===as||a===ns?a=rr:(a=Ke,i=void 0);let b=a===Ke&&o[n+1].startsWith("/>")?" ":"";s+=a===rr?d+al:u>=0?(r.push(m),d.slice(0,u)+Vo+d.slice(u)+ke+b):d+ke+(u===-2?n:b)}return[us(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]=fs(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(Vo)){let x=p[a++],b=i.getAttribute(u).split(ke),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?Ur:E[1]==="?"?Vr:E[1]==="@"?Fr:tt}),i.removeAttribute(u)}else u.startsWith(ke)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(hs.test(i.tagName)){let u=i.textContent.split(ke),x=u.length-1;if(x>0){i.textContent=$r?$r.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===Fo)d.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(ke,u+1))!==-1;)d.push({type:7,index:s}),u+=ke.length-1}s++}}static createElement(t,e){let r=Je.createElement("template");return r.innerHTML=t,r}};function et(o,t,e=o,r){var a,n,d;if(t===Ce)return t;let i=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=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 Pr=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 wt(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new Hr(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++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),sr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ce&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ps(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(us(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 Pr(i,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=ds.get(t.strings);return e===void 0&&ds.set(t.strings,e=new ar(t)),e}k(t){Ho(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!==Ce,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===Ce&&(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:"")}},Ur=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Vr=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Fr=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)===Ce)return;let r=this._$AH,i=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==v&&(r===v||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Hr=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)}},gs={M:Vo,P:ke,A:Fo,C:1,L:fs,R:Pr,D:ps,V:et,I:wt,H:tt,N:Vr,U:Fr,B:Ur,F:Hr},Uo=or.litHtmlPolyfillSupport,ms;Uo==null||Uo(ar,wt),((ms=or.litHtmlVersions)!=null?ms:or.litHtmlVersions=[]).push("3.2.0");var bs=(o,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=i=new wt(t.insertBefore(ir(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var Ve=class extends Ie{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=bs(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ce}},vs;Ve._$litElement$=!0,Ve.finalized=!0,(vs=globalThis.litElementHydrateSupport)==null||vs.call(globalThis,{LitElement:Ve});var Go=globalThis.litElementPolyfillSupport;Go==null||Go({LitElement:Ve});var ys;((ys=globalThis.litElementVersions)!=null?ys:globalThis.litElementVersions=[]).push("4.1.0");var nl={attribute:!0,type:String,converter:tr,reflect:!1,hasChanged:Dr},ll=(o=nl,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"?ll(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 X(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 Br(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 xs(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(i);return(n=s==null?void 0:s.assignedNodes(o))!=null?n:[]}})}}var C=f`
4
4
  :host {
5
5
  align-items: center;
6
6
  display: flex;
@@ -177,11 +177,11 @@
177
177
  :host *::after {
178
178
  box-sizing: inherit;
179
179
  }
180
- `;var Br=class extends Ve{static register(t){customElements.get(t)||customElements.define(t,this)}};Br.styles=[Ts];var As=Br;var y=As;var Fe=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Lt=class{constructor(t,e,r,i){var 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 Fe(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 Go=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Nt=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 Fe(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 Go(this.context))}};var dl=f`
180
+ `;var Gr=class extends Ve{static register(t){customElements.get(t)||customElements.define(t,this)}};Gr.styles=[Ts];var As=Gr;var y=As;var Fe=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Lt=class{constructor(t,e,r,i){var 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 Fe(this.context,this.t,this.subscribe))}};var Yr=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 Yo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Nt=class extends Yr{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 Fe(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 Yo(this.context))}};var dl=f`
181
181
  :host {
182
182
  display: contents;
183
183
  }
184
- `,_s=dl;var Yr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Nt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};Yr.styles=[...y.styles,_s];var Is=Yr;var Rt=Is;var ml={PREFIX:"mdc",SEPARATOR:"-"},pl={NAMESPACE:ml},Yo=pl;var hl=o=>[Yo.NAMESPACE.PREFIX,o].join(Yo.NAMESPACE.SEPARATOR),g={constructTagName:hl};var ip=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"},w={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},K={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var ks=g.constructTagName("alertchip"),rt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Mt={VARIANT:rt.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:nr[24],ROLE:"button"};var Cs=o=>({[rt.ERROR]:"error-legacy-badge-filled",[rt.WARNING]:"warning-badge-filled",[rt.SUCCESS]:"check-circle-badge-filled",[rt.INFORMATIONAL]:"info-badge-filled",[rt.NEUTRAL]:"dnd-presence-badge-filled"})[o];var te=o=>{class t extends o{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var 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 ul=[C,f`
184
+ `,_s=dl;var qr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Nt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};qr.styles=[...y.styles,_s];var Is=qr;var Rt=Is;var ml={PREFIX:"mdc",SEPARATOR:"-"},pl={NAMESPACE:ml},qo=pl;var hl=o=>[qo.NAMESPACE.PREFIX,o].join(qo.NAMESPACE.SEPARATOR),g={constructTagName:hl};var ip=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"},Wr={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"},w={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},K={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var ks=g.constructTagName("alertchip"),ot={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Mt={VARIANT:ot.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:nr[24],ROLE:"button"};var Cs=o=>({[ot.ERROR]:"error-legacy-badge-filled",[ot.WARNING]:"warning-badge-filled",[ot.SUCCESS]:"check-circle-badge-filled",[ot.INFORMATIONAL]:"info-badge-filled",[ot.NEUTRAL]:"dnd-presence-badge-filled"})[o];var te=o=>{class t extends o{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Xr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var ul=[C,f`
185
185
  :host {
186
186
  border: 0.0625rem solid transparent;
187
187
  cursor: pointer;
@@ -237,12 +237,12 @@
237
237
  :host([size="20"]){
238
238
  height: var(--mdc-button-height-size-20);
239
239
  }
240
- `,...O()],ws=ul;var ve=class extends Wr(te(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`
240
+ `,...O()],ws=ul;var ve=class extends Xr(te(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Wr.SIZE;this.role=Wr.ROLE;this.type=Wr.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
241
  <slot></slot>
242
242
  `}};ve.formAssociated=!0,ve.styles=[...y.styles,...ws],l([c({type:Boolean,reflect:!0})],ve.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],ve.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],ve.prototype,"size",2),l([c({type:String,reflect:!0})],ve.prototype,"role",2),l([c({reflect:!0})],ve.prototype,"type",2);var re=ve;var zt=class extends re{constructor(){super(...arguments);this.variant=Mt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Mt.SIZE,this.role=Mt.ROLE}render(){return h`
243
243
  <mdc-icon part="icon" name="${Cs(this.variant)}" length-unit="rem" size="1"></mdc-icon>
244
244
  <mdc-text part="label" type="${Mt.TEXT_TYPE}" tagname="${Mt.TAG_NAME}">${this.label}</mdc-text>
245
- `}};zt.styles=[...y.styles,...Es],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var qo=zt;var Ls=f`
245
+ `}};zt.styles=[...y.styles,...Es],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var Wo=zt;var Ls=f`
246
246
  :host::part(text) {
247
247
  font-size: unset;
248
248
  font-weight: unset;
@@ -492,7 +492,7 @@
492
492
  display: block;
493
493
  font-family: var(--mdc-text-font-family);
494
494
  }
495
- `,Ls],Ns=fl;var Dt=class extends y{constructor(){super(...arguments);this.type=K.TYPE;this.tagname=K.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return h`<h1 part=${K.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return h`<h2 part=${K.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return h`<h3 part=${K.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return h`<h4 part=${K.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return h`<h5 part=${K.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return h`<h6 part=${K.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return h`<div part=${K.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return h`<span part=${K.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return h`<small part=${K.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return h`<p part=${K.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...Ns],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 Wo=Dt;Wo.register(lr);var gl=Wo;var bl=[C,f`
495
+ `,Ls],Ns=fl;var Dt=class extends y{constructor(){super(...arguments);this.type=K.TYPE;this.tagname=K.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return h`<h1 part=${K.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return h`<h2 part=${K.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return h`<h3 part=${K.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return h`<h4 part=${K.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return h`<h5 part=${K.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return h`<h6 part=${K.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return h`<div part=${K.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return h`<span part=${K.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return h`<small part=${K.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return h`<p part=${K.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...Ns],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 Xo=Dt;Xo.register(lr);var gl=Xo;var bl=[C,f`
496
496
  :host {
497
497
  --mdc-icon-fill-color: currentColor;
498
498
  --mdc-icon-size: var(--computed-icon-size);
@@ -507,7 +507,7 @@
507
507
  width: 100%;
508
508
  fill: var(--mdc-icon-fill-color);
509
509
  }
510
- `,...O()],Rs=bl;var vl=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},yl={consume:vl},Os=yl;var Xr=g.constructTagName("iconprovider"),Ms=["svg"],zs=["em","rem","px","%"],xl={px:16,em:1,rem:1,"%":100},we={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:xl.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Zr=class{};Zr.context=Xr;var jr=Zr;var ye=class extends Rt{constructor(){super({context:jr.context,initialValue:new jr});this.iconSet=we.ICON_SET;this.fileExtension=we.FILE_EXTENSION;this.lengthUnit=we.LENGTH_UNIT;this.size=we.SIZE}static get Context(){return jr.context}updateValuesInContext(){this.fileExtension&&Ms.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=we.FILE_EXTENSION,this.context.value.fileExtension=we.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&&zs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=we.LENGTH_UNIT,this.context.value.lengthUnit=we.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={},Ds=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)}}),$s=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)}}},Ps=async(o,t)=>t==="in-memory-cache"?Ds(o):$s(o);var Us=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Vs=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)?Us(n).then(d=>d.text()):Ps(i,r).then(d=>d.get(n).then(m=>m||Us(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 Fs=g.constructTagName("icon"),Xo={NAME:void 0,SIZE:1};var Q=class extends y{constructor(){super();this.name=Xo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Os.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 Vs({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:Xo.SIZE}updated(e){var r,i,s,a;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(a=this.iconProviderContext.value)==null?void 0:a.size,this.updateSize())}render(){return h` ${this.iconData} `}};Q.styles=[...y.styles,...Rs],l([X()],Q.prototype,"iconData",2),l([X()],Q.prototype,"lengthUnitFromContext",2),l([X()],Q.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],Q.prototype,"name",2),l([c({type:Number})],Q.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],Q.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],Q.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledBy",2),l([X()],Q.prototype,"abortController",2);var Zo=Q;Zo.register(Fs);var El=Zo;qo.register(ks);var Tl=qo;var A=o=>o!=null?o:v;var Hs=g.constructTagName("avatar"),q={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},jo=99,Al="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:q.PHOTO,SIZE:M[32],ICON_NAME:Al};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 Z=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Sl=[C,f`
510
+ `,...O()],Rs=bl;var vl=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},yl={consume:vl},Os=yl;var Zr=g.constructTagName("iconprovider"),Ms=["svg"],zs=["em","rem","px","%"],xl={px:16,em:1,rem:1,"%":100},Le={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:xl.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var jr=class{};jr.context=Zr;var Kr=jr;var ye=class extends Rt{constructor(){super({context:Kr.context,initialValue:new Kr});this.iconSet=Le.ICON_SET;this.fileExtension=Le.FILE_EXTENSION;this.lengthUnit=Le.LENGTH_UNIT;this.size=Le.SIZE}static get Context(){return Kr.context}updateValuesInContext(){this.fileExtension&&Ms.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Le.FILE_EXTENSION,this.context.value.fileExtension=Le.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&zs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Le.LENGTH_UNIT,this.context.value.lengthUnit=Le.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],ye.prototype,"iconSet",2),l([c({type:String})],ye.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],ye.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],ye.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],ye.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],ye.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],ye.prototype,"cacheName",2);var cr=ye;var dr={},Ds=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)}}),$s=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)}}},Ps=async(o,t)=>t==="in-memory-cache"?Ds(o):$s(o);var Us=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Vs=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)?Us(n).then(d=>d.text()):Ps(i,r).then(d=>d.get(n).then(m=>m||Us(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 Fs=g.constructTagName("icon"),Zo={NAME:void 0,SIZE:1};var Q=class extends y{constructor(){super();this.name=Zo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Os.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 Vs({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:Zo.SIZE}updated(e){var r,i,s,a;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(a=this.iconProviderContext.value)==null?void 0:a.size,this.updateSize())}render(){return h` ${this.iconData} `}};Q.styles=[...y.styles,...Rs],l([X()],Q.prototype,"iconData",2),l([X()],Q.prototype,"lengthUnitFromContext",2),l([X()],Q.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],Q.prototype,"name",2),l([c({type:Number})],Q.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],Q.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],Q.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledBy",2),l([X()],Q.prototype,"abortController",2);var jo=Q;jo.register(Fs);var El=jo;Wo.register(ks);var Tl=Wo;var A=o=>o!=null?o:v;var Hs=g.constructTagName("avatar"),q={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ko=99,Al="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:q.PHOTO,SIZE:M[32],ICON_NAME:Al};var Qr=o=>{class t extends o{constructor(){super(...arguments);this.size=$t.SIZE;this.isTyping=!1}}return l([c({type:String})],t.prototype,"src",2),l([c({type:String})],t.prototype,"initials",2),l([c({type:String})],t.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([c({type:Number})],t.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var Z=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Sl=[C,f`
511
511
  :host {
512
512
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
513
513
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -630,7 +630,7 @@
630
630
  outline: 0.125rem solid;
631
631
  }
632
632
  }
633
- `],Bs=Sl;var Gs=g.constructTagName("presence"),G={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:G.ACTIVE,SIZE:U.SMALL};var Ys=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,qs=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,Ws=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(Z(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===q.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
633
+ `],Bs=Sl;var Gs=g.constructTagName("presence"),G={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:G.ACTIVE,SIZE:U.SMALL};var Ys=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,qs=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,Ws=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 Qr(Z(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===q.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
634
634
  <mdc-presence part="presence" type="${this.presence}" size="${Ys(this.size)}"></mdc-presence>
635
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
636
  <img
@@ -654,14 +654,14 @@
654
654
  >
655
655
  ${e}
656
656
  </mdc-text>
657
- `}generateCounterText(e){return e<0?"0":e>jo?`${jo}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===q.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===q.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?q.PHOTO:this.iconName?q.ICON:this.initials?q.TEXT:this.counter||this.counter===0?q.COUNTER:q.ICON}getTemplateBasedOnType(e){switch(e){case q.PHOTO:return this.photoTemplate();case q.TEXT:case q.COUNTER:return this.generateTextContent(e);case q.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===q.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`
657
+ `}generateCounterText(e){return e<0?"0":e>Ko?`${Ko}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===q.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===q.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?q.PHOTO:this.iconName?q.ICON:this.initials?q.TEXT:this.counter||this.counter===0?q.COUNTER:q.ICON}getTemplateBasedOnType(e){switch(e){case q.PHOTO:return this.photoTemplate();case q.TEXT:case q.COUNTER:return this.generateTextContent(e);case q.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===q.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
658
  <div part="content" aria-hidden="true">
659
659
  ${this.getPhotoPlaceHolderContent(e)}
660
660
  ${this.getTemplateBasedOnType(e)}
661
661
  ${this.getLoadingContent()}
662
662
  ${this.getPresenceTemplateBasedOnType(e)}
663
663
  </div>
664
- `}};mr.styles=[...y.styles,...Bs],l([X()],mr.prototype,"isPhotoLoaded",2);var Ko=mr;var _l=[C,f`
664
+ `}};mr.styles=[...y.styles,...Bs],l([X()],mr.prototype,"isPhotoLoaded",2);var Qo=mr;var _l=[C,f`
665
665
  :host {
666
666
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
667
667
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -755,7 +755,7 @@
755
755
  .mdc-presence-icon__scheduled {
756
756
  color: var(--mdc-presence-scheduled-background-color);
757
757
  }
758
- `],Xs=_l;var Zs=o=>{switch(o){case G.AWAY:return"recents-presence-badge-filled";case G.AWAY_CALLING:return"away-calling-presence-filled";case G.BUSY:return"busy-presence-bold";case G.DND:return"dnd-presence-badge-filled";case G.MEETING:return"camera-filled";case G.ON_CALL:return"handset-filled";case G.ON_DEVICE:return"generic-device-video-badge-filled";case G.ON_MOBILE:return"phone-badge-filled";case G.PAUSE:return"pause-badge-filled";case G.PTO:return"pto-presence-filled";case G.PRESENTING:return"share-screen-badge-filled";case G.QUIET:return"quiet-hours-presence-filled";case G.SCHEDULED:return"meetings-presence-badge-filled";case G.ACTIVE:default:return"active-presence-small-filled"}};var ot=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=Zs(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`
758
+ `],Xs=_l;var Zs=o=>{switch(o){case G.AWAY:return"recents-presence-badge-filled";case G.AWAY_CALLING:return"away-calling-presence-filled";case G.BUSY:return"busy-presence-bold";case G.DND:return"dnd-presence-badge-filled";case G.MEETING:return"camera-filled";case G.ON_CALL:return"handset-filled";case G.ON_DEVICE:return"generic-device-video-badge-filled";case G.ON_MOBILE:return"phone-badge-filled";case G.PAUSE:return"pause-badge-filled";case G.PTO:return"pto-presence-filled";case G.PRESENTING:return"share-screen-badge-filled";case G.QUIET:return"quiet-hours-presence-filled";case G.SCHEDULED:return"meetings-presence-badge-filled";case G.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=Zs(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
759
  <div class="mdc-presence mdc-presence__${this.size}">
760
760
  <mdc-icon
761
761
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -765,14 +765,14 @@
765
765
  @error="${this.handleOnError}"
766
766
  ></mdc-icon>
767
767
  </div>
768
- `}};ot.styles=[...y.styles,...Xs],l([c({type:String,reflect:!0})],ot.prototype,"type",2),l([c({type:String,reflect:!0})],ot.prototype,"size",2),l([X()],ot.prototype,"currentIconType",2);var Qo=ot;Qo.register(Gs);var Il=Qo;Ko.register(Hs);var kl=Ko;var pr=g.constructTagName("button"),it={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Qr={40:40,32:32,28:28,24:24},Le={64:64,52:52,20:20,...Qr},Jo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},xe={VARIANT:it.PRIMARY,SIZE:Qr[32],COLOR:Jo.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Cl=[C,f`
768
+ `}};it.styles=[...y.styles,...Xs],l([c({type:String,reflect:!0})],it.prototype,"type",2),l([c({type:String,reflect:!0})],it.prototype,"size",2),l([X()],it.prototype,"currentIconType",2);var Jo=it;Jo.register(Gs);var Il=Jo;Qo.register(Hs);var kl=Qo;var pr=g.constructTagName("button"),He={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hr={40:40,32:32,28:28,24:24},xe={64:64,52:52,20:20,...hr},Jr={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ee={VARIANT:He.PRIMARY,SIZE:hr[32],COLOR:Jr.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Cl=[C,f`
769
769
  :host {
770
770
  padding: unset;
771
771
  margin: unset;
772
772
  outline: none;
773
773
  border-radius: 0.25rem;
774
774
  }
775
- `,...O()],js=Cl;var hr=class extends Kr(Z(re)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=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`
775
+ `,...O()],js=Cl;var ur=class extends Qr(Z(re)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=Ee.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:$t.SIZE.toString())}render(){return h`
776
776
  <mdc-avatar
777
777
  slot="prefixIcon"
778
778
  ?is-typing="${this.isTyping}"
@@ -783,7 +783,7 @@
783
783
  size="${A(this.size)}"
784
784
  src="${A(this.src)}"
785
785
  ></mdc-avatar>
786
- `}};hr.styles=[...js],l([c({type:String,attribute:"aria-label"})],hr.prototype,"ariaLabel",2);var ei=hr;var Ks=g.constructTagName("avatarbutton");ei.register(Ks);var wl=ei;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 Qs=g.constructTagName("badge"),Ne={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"},kf={...ro,...fr},He={TYPE:Ne.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:ro.PRIMARY,ICON_SIZE:1};var Ll=[C,f`
786
+ `}};ur.styles=[...js],l([c({type:String,attribute:"aria-label"})],ur.prototype,"ariaLabel",2);var ei=ur;var Ks=g.constructTagName("avatarbutton");ei.register(Ks);var wl=ei;var eo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fr=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 to=fr(class extends Vt{constructor(o){var t;if(super(o),o.type!==eo.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let a=!!t[s];a===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(a?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ce}});var Qs=g.constructTagName("badge"),Ne={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},ro={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},oo={PRIMARY:"primary",SECONDARY:"secondary"},gr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},kf={...oo,...gr},Be={TYPE:Ne.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:oo.PRIMARY,ICON_SIZE:1};var Ll=[C,f`
787
787
  :host {
788
788
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
789
789
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -852,21 +852,21 @@
852
852
  outline: 0.125rem solid;
853
853
  }
854
854
  }
855
- `],Js=Ll;var Ee=class extends Z(y){constructor(){super(...arguments);this.variant=He.VARIANT;this.maxCounter=He.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>He.MAX_COUNTER_LIMIT||r>He.MAX_COUNTER_LIMIT?`${He.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
855
+ `],Js=Ll;var Te=class extends Z(y){constructor(){super(...arguments);this.variant=Be.VARIANT;this.maxCounter=Be.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Be.MAX_COUNTER_LIMIT||r>Be.MAX_COUNTER_LIMIT?`${Be.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
856
856
  <mdc-icon
857
- class="mdc-badge-icon ${eo({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
857
+ class="mdc-badge-icon ${to({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
858
858
  name="${A(e)}"
859
- size="${He.ICON_SIZE}"
859
+ size="${Be.ICON_SIZE}"
860
860
  ></mdc-icon>
861
- `}getBadgeDot(){return h`<div class="mdc-badge-dot ${eo({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
861
+ `}getBadgeDot(){return h`<div class="mdc-badge-dot ${to({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
862
862
  <mdc-text
863
863
  type="${_.BODY_SMALL_MEDIUM}"
864
864
  tagname="${w.DIV}"
865
- class="mdc-badge-text ${eo({"mdc-badge-overlay":this.overlay})}"
865
+ class="mdc-badge-text ${to({"mdc-badge-overlay":this.overlay})}"
866
866
  >
867
867
  ${this.getCounterText(this.maxCounter,this.counter)}
868
868
  </mdc-text>
869
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(ro).includes(this.variant)&&(this.variant=He.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Ne.ICON:return this.getBadgeIcon(e||"",i);case Ne.COUNTER:return this.getBadgeCounterText();case Ne.SUCCESS:return this.getBadgeIcon(to.SUCCESS_ICON_NAME,fr.SUCCESS);case Ne.WARNING:return this.getBadgeIcon(to.WARNING_ICON_NAME,fr.WARNING);case Ne.ERROR:return this.getBadgeIcon(to.ERROR_ICON_NAME,fr.ERROR);case Ne.DOT:default:return this.type=Ne.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};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 ti=Ee;ti.register(Qs);var Nl=ti;var Rl=f`
869
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(oo).includes(this.variant)&&(this.variant=Be.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Ne.ICON:return this.getBadgeIcon(e||"",i);case Ne.COUNTER:return this.getBadgeCounterText();case Ne.SUCCESS:return this.getBadgeIcon(ro.SUCCESS_ICON_NAME,gr.SUCCESS);case Ne.WARNING:return this.getBadgeIcon(ro.WARNING_ICON_NAME,gr.WARNING);case Ne.ERROR:return this.getBadgeIcon(ro.ERROR_ICON_NAME,gr.ERROR);case Ne.DOT:default:return this.type=Ne.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Te.styles=[...y.styles,...Js],l([c({type:String,reflect:!0})],Te.prototype,"type",2),l([c({type:String,reflect:!0})],Te.prototype,"variant",2),l([c({type:Number})],Te.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Te.prototype,"maxCounter",2),l([c({type:Boolean})],Te.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Te.prototype,"ariaLabel",2);var ti=Te;ti.register(Qs);var Nl=ti;var Rl=f`
870
870
  :host {
871
871
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
872
872
  --mdc-bullet-size-small: 0.25rem;
@@ -887,7 +887,7 @@
887
887
  :host([size="large"]) {
888
888
  height: var(--mdc-bullet-size-large);
889
889
  }
890
- `,ea=[Rl];var ta=g.constructTagName("bullet"),ra={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var gr=class extends y{constructor(){super(...arguments);this.size=ra.SMALL}};gr.styles=[...y.styles,...ea],l([c({type:String,reflect:!0})],gr.prototype,"size",2);var ri=gr;ri.register(ta);var Ol=ri;var Ml=f`
890
+ `,ea=[Rl];var ta=g.constructTagName("bullet"),ra={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var br=class extends y{constructor(){super(...arguments);this.size=ra.SMALL}};br.styles=[...y.styles,...ea],l([c({type:String,reflect:!0})],br.prototype,"size",2);var ri=br;ri.register(ta);var Ol=ri;var Ml=f`
891
891
  :host {
892
892
  background-color: transparent;
893
893
  border-radius: 1.25rem;
@@ -1059,7 +1059,7 @@
1059
1059
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
1060
1060
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
1061
1061
  }
1062
- `,oa=[Ml];var ia=o=>{switch(o){case Le[64]:return 2;case Le[52]:return 1.75;case Le[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 oe=class extends re{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(it).includes(e)?e:xe.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(Le).includes(e)&&!(e===Le[20]&&this.variant!==it.TERTIARY):Object.values(Qr).includes(e);this.setAttribute("size",i?`${e}`:`${xe.SIZE}`),this.iconSize=ia(e)}setColor(e){!Object.values(Jo).includes(e)||this.variant===it.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`
1062
+ `,oa=[Ml];var ia=o=>{switch(o){case xe[64]:return 2;case xe[52]:return 1.75;case xe[40]:return 1.25;default:return 1}},vr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var oe=class extends re{constructor(){super(...arguments);this.variant=Ee.VARIANT;this.size=Ee.SIZE;this.color=Ee.COLOR;this.role="button";this.typeInternal=Ee.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${vr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${vr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(He).includes(e)?e:Ee.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(xe).includes(e)&&!(e===xe[20]&&this.variant!==He.TERTIARY):Object.values(hr).includes(e);this.setAttribute("size",i?`${e}`:`${Ee.SIZE}`),this.iconSize=ia(e)}setColor(e){!Object.values(Jr).includes(e)||this.variant===He.TERTIARY?this.setAttribute("color",`${Ee.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(s=>{var a;return s.nodeType!==Node.TEXT_NODE||((a=s.textContent)==null?void 0:a.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ut.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
1063
1063
  ${this.prefixIcon?h` <mdc-icon
1064
1064
  name="${this.prefixIcon}"
1065
1065
  part="prefix-icon"
@@ -1075,7 +1075,7 @@
1075
1075
  length-unit="rem"
1076
1076
  >
1077
1077
  </mdc-icon>`:""}
1078
- `}};oe.styles=[...re.styles,...oa],l([c({type:String,attribute:"prefix-icon",reflect:!0})],oe.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],oe.prototype,"postfixIcon",2),l([c({type:String})],oe.prototype,"variant",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String})],oe.prototype,"color",2),l([c({type:String,reflect:!0})],oe.prototype,"role",2),l([X()],oe.prototype,"typeInternal",2),l([X()],oe.prototype,"iconSize",2);var oi=oe;oi.register(pr);var zl=oi;var D=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var H=[];for(let o=0;o<256;++o)H.push((o+256).toString(16).slice(1));function sa(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 ii,Dl=new Uint8Array(16);function si(){if(!ii){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ii=crypto.getRandomValues.bind(crypto)}return ii(Dl)}var $l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ai={randomUUID:$l};function Pl(o,t,e){var i,s,a;if(ai.randomUUID&&!t&&!o)return ai.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:si();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[e+n]=r[n];return t}return sa(r)}var st=Pl;var ie=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${st()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,l([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Hr("input")],t.prototype,"inputElement",2),t};var aa=g.constructTagName("formfieldwrapper"),V={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:V.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},at={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Ul=[C,f`
1078
+ `}};oe.styles=[...re.styles,...oa],l([c({type:String,attribute:"prefix-icon",reflect:!0})],oe.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],oe.prototype,"postfixIcon",2),l([c({type:String})],oe.prototype,"variant",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String})],oe.prototype,"color",2),l([c({type:String,reflect:!0})],oe.prototype,"role",2),l([X()],oe.prototype,"typeInternal",2),l([X()],oe.prototype,"iconSize",2);var oi=oe;oi.register(pr);var zl=oi;var D=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var H=[];for(let o=0;o<256;++o)H.push((o+256).toString(16).slice(1));function sa(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 ii,Dl=new Uint8Array(16);function si(){if(!ii){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ii=crypto.getRandomValues.bind(crypto)}return ii(Dl)}var $l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ai={randomUUID:$l};function Pl(o,t,e){var i,s,a;if(ai.randomUUID&&!t&&!o)return ai.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:si();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[e+n]=r[n];return t}return sa(r)}var st=Pl;var ie=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${st()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,l([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Br("input")],t.prototype,"inputElement",2),t};var aa=g.constructTagName("formfieldwrapper"),V={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:V.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},at={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Ul=[C,f`
1079
1079
  :host {
1080
1080
  flex-direction: column;
1081
1081
  align-items: flex-start;
@@ -1431,7 +1431,7 @@
1431
1431
  `:v}render(){return h`
1432
1432
  ${this.renderIcon()}
1433
1433
  <mdc-text type="${Ft.TEXT_TYPE}" tagname="${Ft.TAG_NAME}">${this.label}</mdc-text>
1434
- `}};Ht.styles=[...y.styles,...ma],l([c({type:String,reflect:!0})],Ht.prototype,"color",2),l([c({type:String})],Ht.prototype,"label",2);var Bt=Ht;Bt.register(pa);var Gl=Bt;var Te=Math.min,W=Math.max,yr=Math.round,xr=Math.floor,pe=o=>({x:o,y:o}),Yl={left:"right",right:"left",bottom:"top",top:"bottom"},ql={start:"end",end:"start"};function io(o,t,e){return W(o,Te(t,e))}function lt(o,t){return typeof o=="function"?o(t):o}function Oe(o){return o.split("-")[0]}function ct(o){return o.split("-")[1]}function ci(o){return o==="x"?"y":"x"}function so(o){return o==="y"?"height":"width"}function Be(o){return["top","bottom"].includes(Oe(o))?"y":"x"}function ao(o){return ci(Be(o))}function ha(o,t,e){e===void 0&&(e=!1);let r=ct(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=vr(a)),[a,vr(a)]}function ua(o){let t=vr(o);return[oo(o),t,oo(t)]}function oo(o){return o.replace(/start|end/g,t=>ql[t])}function Wl(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 fa(o,t,e,r){let i=ct(o),s=Wl(Oe(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(oo)))),s}function vr(o){return o.replace(/left|right|bottom|top/g,t=>Yl[t])}function Xl(o){return{top:0,right:0,bottom:0,left:0,...o}}function di(o){return typeof o!="number"?Xl(o):{top:o,right:o,bottom:o,left:o}}function dt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function ga(o,t,e){let{reference:r,floating:i}=o,s=Be(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(ct(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var ba=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}=ga(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=N!=null?N:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=ga(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}=lt(t,o),E=di(b),I=n[x?u==="floating"?"reference":"floating":u],S=dt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},z=dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var va=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=lt(o,t)||{};if(m==null)return{};let u=di(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",N=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],ee=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),de=ee?ee[N]:0;(!de||!await(a.isElement==null?void 0:a.isElement(ee)))&&(de=n.floating[N]||s.floating[E]);let Ae=P/2-z/2,fe=de/2-T[E]/2-1,me=Te(u[S],fe),ze=Te(u[k],fe),ge=me,De=de-T[E]-ze,Y=de/2-T[E]/2+Ae,Ct=io(ge,Y,De),Se=!d.arrow&&ct(i)!=null&&Y!==Ct&&s.reference[E]/2-(Y<ge?me:ze)-T[E]/2<0,be=Se?Y<ge?Y-ge:Y-De:0;return{[b]:x[b]+be,data:{[b]:Ct,centerOffset:Y-Ct-be,...Se&&{alignmentOffset:be}},reset:Se}}});var ya=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=lt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Oe(i),k=Be(n),N=Oe(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[vr(n)]:ua(n)),ee=E!=="none";!x&&ee&&z.push(...fa(n,T,E,P));let de=[n,...z],Ae=await no(t,I),fe=[],me=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Ae[S]),u){let Y=ha(i,a,P);fe.push(Ae[Y[0]],Ae[Y[1]])}if(me=[...me,{placement:i,overflows:fe}],!fe.every(Y=>Y<=0)){var ze,ge;let Y=(((ze=s.flip)==null?void 0:ze.index)||0)+1,Ct=de[Y];if(Ct)return{data:{index:Y,overflows:me},reset:{placement:Ct}};let Se=(ge=me.filter(be=>be.overflows[0]<=0).sort((be,$e)=>be.overflows[1]-$e.overflows[1])[0])==null?void 0:ge.placement;if(!Se)switch(b){case"bestFit":{var De;let be=(De=me.filter($e=>{if(ee){let Pe=Be($e.placement);return Pe===k||Pe==="y"}return!0}).map($e=>[$e.placement,$e.overflows.filter(Pe=>Pe>0).reduce((Pe,jn)=>Pe+jn,0)]).sort(($e,Pe)=>$e[1]-Pe[1])[0])==null?void 0:De[0];be&&(Se=be);break}case"initialPlacement":Se=n;break}if(i!==Se)return{reset:{placement:Se}}}return{}}}};async function Zl(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=ct(e),d=Be(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=lt(t,o),{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var xa=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 Zl(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}}}}},Ea=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=lt(o,t),m={x:e,y:r},p=await no(t,d),u=Be(Oe(i)),x=ci(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],N=b-p[S];b=io(k,b,N)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],N=E-p[S];E=io(k,E,N)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var Ta=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=lt(o,t),p=await no(t,m),u=Oe(i),x=ct(i),b=Be(i)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,N=E-p.left-p.right,P=Te(T-p[I],k),z=Te(E-p[S],N),ee=!t.middlewareData.shift,de=P,Ae=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ae=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=k),ee&&!x){let me=W(p.left,0),ze=W(p.right,0),ge=W(p.top,0),De=W(p.bottom,0);b?Ae=E-2*(me!==0||ze!==0?me+ze:W(p.left,p.right)):de=T-2*(ge!==0||De!==0?ge+De:W(p.top,p.bottom))}await d({...t,availableWidth:Ae,availableHeight:de});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function lo(){return typeof window<"u"}function mt(o){return Sa(o)?(o.nodeName||"").toLowerCase():"#document"}function j(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Sa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Sa(o){return lo()?o instanceof Node||o instanceof j(o).Node:!1}function ae(o){return lo()?o instanceof Element||o instanceof j(o).Element:!1}function ue(o){return lo()?o instanceof HTMLElement||o instanceof j(o).HTMLElement:!1}function Aa(o){return!lo()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof j(o).ShadowRoot}function Yt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function _a(o){return["table","td","th"].includes(mt(o))}function Er(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 Ia(o){let t=Me(o);for(;ue(t)&&!pt(t);){if(co(t))return t;if(Er(t))return null;t=Me(t)}return null}function mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(o){return["html","body","#document"].includes(mt(o))}function ne(o){return j(o).getComputedStyle(o)}function Tr(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Me(o){if(mt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Aa(o)&&o.host||he(o);return Aa(t)?t.host:t}function ka(o){let t=Me(o);return pt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&Yt(t)?t:ka(t)}function Gt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ka(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=j(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 La(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=yr(e)!==s||yr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function pi(o){return ae(o)?o:o.contextElement}function qt(o){let t=pi(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=La(t),a=(s?yr(e.width):e.width)/r,n=(s?yr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var jl=pe(0);function Na(o){let t=j(o);return!mo()||!t.visualViewport?jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==j(o)?!1:t}function ht(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=pi(o),a=pe(1);t&&(r?ae(r)&&(a=qt(r)):a=qt(o));let n=Kl(s,e,r)?Na(s):pe(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=j(s),b=r&&ae(r)?j(r):r,E=x,T=po(E);for(;T&&r&&b!==E;){let I=qt(T),S=T.getBoundingClientRect(),k=ne(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=N,m+=P,E=j(T),T=po(E)}}return dt({width:p,height:u,x:d,y:m})}function hi(o,t){let e=Tr(o).scrollLeft;return t?t.left+e:ht(he(o)).left+e}function Ra(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:hi(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?Er(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=pe(1),p=pe(0),u=ue(r);if((u||!u&&!s)&&((mt(r)!=="body"||Yt(a))&&(d=Tr(r)),ue(r))){let b=ht(r);m=qt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ra(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 Jl(o){return Array.from(o.getClientRects())}function ec(o){let t=he(o),e=Tr(o),r=o.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+hi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=W(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function tc(o,t){let e=j(o),r=he(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=mo();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function rc(o,t){let e=ht(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 Ca(o,t,e){let r;if(t==="viewport")r=tc(o,e);else if(t==="document")r=ec(he(o));else if(ae(t))r=rc(t,e);else{let i=Na(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dt(r)}function Oa(o,t){let e=Me(o);return e===t||!ae(e)||pt(e)?!1:ne(e).position==="fixed"||Oa(e,t)}function oc(o,t){let e=t.get(o);if(e)return e;let r=Gt(o,[],!1).filter(n=>ae(n)&&mt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?Me(o):o;for(;ae(a)&&!pt(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&&Oa(o,a))?r=r.filter(p=>p!==a):i=n,a=Me(a)}return t.set(o,r),r}function ic(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Er(t)?[]:oc(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=Ca(t,p,i);return m.top=W(u.top,m.top),m.right=Te(u.right,m.right),m.bottom=Te(u.bottom,m.bottom),m.left=W(u.left,m.left),m},Ca(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function sc(o){let{width:t,height:e}=La(o);return{width:t,height:e}}function ac(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=ht(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((mt(t)!=="body"||Yt(i))&&(n=Tr(t)),r){let x=ht(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=hi(i));let m=i&&!r&&!s?Ra(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 mi(o){return ne(o).position==="static"}function wa(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 Ma(o,t){let e=j(o);if(Er(o))return e;if(!ue(o)){let i=Me(o);for(;i&&!pt(i);){if(ae(i)&&!mi(i))return i;i=Me(i)}return e}let r=wa(o,t);for(;r&&_a(r)&&mi(r);)r=wa(r,t);return r&&pt(r)&&mi(r)&&!co(r)?e:r||Ia(o)||e}var nc=async function(o){let t=this.getOffsetParent||Ma,e=this.getDimensions,r=await e(o.floating);return{reference:ac(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lc(o){return ne(o).direction==="rtl"}var cc={convertOffsetParentRelativeRectToViewportRelativeRect:Ql,getDocumentElement:he,getClippingRect:ic,getOffsetParent:Ma,getElementRects:nc,getClientRects:Jl,getDimensions:sc,getScale:qt,isElement:ae,isRTL:lc};function dc(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=xr(p),E=xr(i.clientWidth-(m+u)),T=xr(i.clientHeight-(p+x)),I=xr(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:W(0,Te(1,d))||1},N=!0;function P(z){let ee=z[0].intersectionRatio;if(ee!==d){if(!N)return a();ee?a(!1,ee):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function za(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=pi(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?dc(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?ht(o):null;d&&I();function I(){let S=ht(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Da=xa;var $a=Ea,Pa=ya,Ua=Ta;var Va=va;var Fa=(o,t,e)=>{let r=new Map,i={platform:cc,...e},s={...i.platform,_c:r};return ba(o,t,{...i,platform:s})};var mc=f`
1434
+ `}};Ht.styles=[...y.styles,...ma],l([c({type:String,reflect:!0})],Ht.prototype,"color",2),l([c({type:String})],Ht.prototype,"label",2);var Bt=Ht;Bt.register(pa);var Gl=Bt;var Ae=Math.min,W=Math.max,xr=Math.round,Er=Math.floor,pe=o=>({x:o,y:o}),Yl={left:"right",right:"left",bottom:"top",top:"bottom"},ql={start:"end",end:"start"};function so(o,t,e){return W(o,Ae(t,e))}function lt(o,t){return typeof o=="function"?o(t):o}function Oe(o){return o.split("-")[0]}function ct(o){return o.split("-")[1]}function ci(o){return o==="x"?"y":"x"}function ao(o){return o==="y"?"height":"width"}function Ge(o){return["top","bottom"].includes(Oe(o))?"y":"x"}function no(o){return ci(Ge(o))}function ha(o,t,e){e===void 0&&(e=!1);let r=ct(o),i=no(o),s=ao(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 ua(o){let t=yr(o);return[io(o),t,io(t)]}function io(o){return o.replace(/start|end/g,t=>ql[t])}function Wl(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 fa(o,t,e,r){let i=ct(o),s=Wl(Oe(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(io)))),s}function yr(o){return o.replace(/left|right|bottom|top/g,t=>Yl[t])}function Xl(o){return{top:0,right:0,bottom:0,left:0,...o}}function di(o){return typeof o!="number"?Xl(o):{top:o,right:o,bottom:o,left:o}}function dt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function ga(o,t,e){let{reference:r,floating:i}=o,s=Ge(t),a=no(t),n=ao(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(ct(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var ba=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}=ga(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=N!=null?N:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=ga(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function lo(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:a,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=lt(t,o),E=di(b),I=n[x?u==="floating"?"reference":"floating":u],S=dt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},z=dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var va=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=lt(o,t)||{};if(m==null)return{};let u=di(p),x={x:e,y:r},b=no(i),E=ao(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",N=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],ee=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),de=ee?ee[N]:0;(!de||!await(a.isElement==null?void 0:a.isElement(ee)))&&(de=n.floating[N]||s.floating[E]);let Se=P/2-z/2,fe=de/2-T[E]/2-1,me=Ae(u[S],fe),ze=Ae(u[k],fe),ge=me,De=de-T[E]-ze,Y=de/2-T[E]/2+Se,Ct=so(ge,Y,De),_e=!d.arrow&&ct(i)!=null&&Y!==Ct&&s.reference[E]/2-(Y<ge?me:ze)-T[E]/2<0,be=_e?Y<ge?Y-ge:Y-De:0;return{[b]:x[b]+be,data:{[b]:Ct,centerOffset:Y-Ct-be,..._e&&{alignmentOffset:be}},reset:_e}}});var ya=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=lt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Oe(i),k=Ge(n),N=Oe(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[yr(n)]:ua(n)),ee=E!=="none";!x&&ee&&z.push(...fa(n,T,E,P));let de=[n,...z],Se=await lo(t,I),fe=[],me=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Se[S]),u){let Y=ha(i,a,P);fe.push(Se[Y[0]],Se[Y[1]])}if(me=[...me,{placement:i,overflows:fe}],!fe.every(Y=>Y<=0)){var ze,ge;let Y=(((ze=s.flip)==null?void 0:ze.index)||0)+1,Ct=de[Y];if(Ct)return{data:{index:Y,overflows:me},reset:{placement:Ct}};let _e=(ge=me.filter(be=>be.overflows[0]<=0).sort((be,$e)=>be.overflows[1]-$e.overflows[1])[0])==null?void 0:ge.placement;if(!_e)switch(b){case"bestFit":{var De;let be=(De=me.filter($e=>{if(ee){let Pe=Ge($e.placement);return Pe===k||Pe==="y"}return!0}).map($e=>[$e.placement,$e.overflows.filter(Pe=>Pe>0).reduce((Pe,jn)=>Pe+jn,0)]).sort(($e,Pe)=>$e[1]-Pe[1])[0])==null?void 0:De[0];be&&(_e=be);break}case"initialPlacement":_e=n;break}if(i!==_e)return{reset:{placement:_e}}}return{}}}};async function Zl(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=ct(e),d=Ge(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=lt(t,o),{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var xa=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 Zl(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}}}}},Ea=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=lt(o,t),m={x:e,y:r},p=await lo(t,d),u=Ge(Oe(i)),x=ci(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],N=b-p[S];b=so(k,b,N)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],N=E-p[S];E=so(k,E,N)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var Ta=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=lt(o,t),p=await lo(t,m),u=Oe(i),x=ct(i),b=Ge(i)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,N=E-p.left-p.right,P=Ae(T-p[I],k),z=Ae(E-p[S],N),ee=!t.middlewareData.shift,de=P,Se=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Se=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=k),ee&&!x){let me=W(p.left,0),ze=W(p.right,0),ge=W(p.top,0),De=W(p.bottom,0);b?Se=E-2*(me!==0||ze!==0?me+ze:W(p.left,p.right)):de=T-2*(ge!==0||De!==0?ge+De:W(p.top,p.bottom))}await d({...t,availableWidth:Se,availableHeight:de});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function co(){return typeof window<"u"}function mt(o){return Sa(o)?(o.nodeName||"").toLowerCase():"#document"}function j(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Sa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Sa(o){return co()?o instanceof Node||o instanceof j(o).Node:!1}function ae(o){return co()?o instanceof Element||o instanceof j(o).Element:!1}function ue(o){return co()?o instanceof HTMLElement||o instanceof j(o).HTMLElement:!1}function Aa(o){return!co()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof j(o).ShadowRoot}function Yt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function _a(o){return["table","td","th"].includes(mt(o))}function Tr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function mo(o){let t=po(),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 Ia(o){let t=Me(o);for(;ue(t)&&!pt(t);){if(mo(t))return t;if(Tr(t))return null;t=Me(t)}return null}function po(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(o){return["html","body","#document"].includes(mt(o))}function ne(o){return j(o).getComputedStyle(o)}function Ar(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Me(o){if(mt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Aa(o)&&o.host||he(o);return Aa(t)?t.host:t}function ka(o){let t=Me(o);return pt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&Yt(t)?t:ka(t)}function Gt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ka(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=j(i);if(s){let n=ho(a);return t.concat(a,a.visualViewport||[],Yt(i)?i:[],n&&e?Gt(n):[])}return t.concat(i,Gt(i,[],e))}function ho(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function La(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 pi(o){return ae(o)?o:o.contextElement}function qt(o){let t=pi(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=La(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 jl=pe(0);function Na(o){let t=j(o);return!po()||!t.visualViewport?jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==j(o)?!1:t}function ht(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=pi(o),a=pe(1);t&&(r?ae(r)&&(a=qt(r)):a=qt(o));let n=Kl(s,e,r)?Na(s):pe(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=j(s),b=r&&ae(r)?j(r):r,E=x,T=ho(E);for(;T&&r&&b!==E;){let I=qt(T),S=T.getBoundingClientRect(),k=ne(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=N,m+=P,E=j(T),T=ho(E)}}return dt({width:p,height:u,x:d,y:m})}function hi(o,t){let e=Ar(o).scrollLeft;return t?t.left+e:ht(he(o)).left+e}function Ra(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:hi(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)&&((mt(r)!=="body"||Yt(a))&&(d=Ar(r)),ue(r))){let b=ht(r);m=qt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ra(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 Jl(o){return Array.from(o.getClientRects())}function ec(o){let t=he(o),e=Ar(o),r=o.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+hi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=W(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function tc(o,t){let e=j(o),r=he(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=po();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function rc(o,t){let e=ht(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 Ca(o,t,e){let r;if(t==="viewport")r=tc(o,e);else if(t==="document")r=ec(he(o));else if(ae(t))r=rc(t,e);else{let i=Na(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dt(r)}function Oa(o,t){let e=Me(o);return e===t||!ae(e)||pt(e)?!1:ne(e).position==="fixed"||Oa(e,t)}function oc(o,t){let e=t.get(o);if(e)return e;let r=Gt(o,[],!1).filter(n=>ae(n)&&mt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?Me(o):o;for(;ae(a)&&!pt(a);){let n=ne(a),d=mo(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yt(a)&&!d&&Oa(o,a))?r=r.filter(p=>p!==a):i=n,a=Me(a)}return t.set(o,r),r}function ic(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Tr(t)?[]:oc(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=Ca(t,p,i);return m.top=W(u.top,m.top),m.right=Ae(u.right,m.right),m.bottom=Ae(u.bottom,m.bottom),m.left=W(u.left,m.left),m},Ca(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function sc(o){let{width:t,height:e}=La(o);return{width:t,height:e}}function ac(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=ht(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((mt(t)!=="body"||Yt(i))&&(n=Ar(t)),r){let x=ht(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=hi(i));let m=i&&!r&&!s?Ra(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 mi(o){return ne(o).position==="static"}function wa(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 Ma(o,t){let e=j(o);if(Tr(o))return e;if(!ue(o)){let i=Me(o);for(;i&&!pt(i);){if(ae(i)&&!mi(i))return i;i=Me(i)}return e}let r=wa(o,t);for(;r&&_a(r)&&mi(r);)r=wa(r,t);return r&&pt(r)&&mi(r)&&!mo(r)?e:r||Ia(o)||e}var nc=async function(o){let t=this.getOffsetParent||Ma,e=this.getDimensions,r=await e(o.floating);return{reference:ac(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lc(o){return ne(o).direction==="rtl"}var cc={convertOffsetParentRelativeRectToViewportRelativeRect:Ql,getDocumentElement:he,getClippingRect:ic,getOffsetParent:Ma,getElementRects:nc,getClientRects:Jl,getDimensions:sc,getScale:qt,isElement:ae,isRTL:lc};function dc(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:W(0,Ae(1,d))||1},N=!0;function P(z){let ee=z[0].intersectionRatio;if(ee!==d){if(!N)return a();ee?a(!1,ee):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function za(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=pi(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?dc(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?ht(o):null;d&&I();function I(){let S=ht(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Da=xa;var $a=Ea,Pa=ya,Ua=Ta;var Va=va;var Fa=(o,t,e)=>{let r=new Map,i={platform:cc,...e},s={...i.platform,_c:r};return ba(o,t,{...i,platform:s})};var mc=f`
1435
1435
  :host {
1436
1436
  --mdc-popover-arrow-border-radius: 0.1875rem;
1437
1437
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1534,7 +1534,7 @@
1534
1534
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1535
1535
  border-bottom-left-radius: 100%;
1536
1536
  }
1537
- `,Ha=[mc];var Ba=g.constructTagName("popover"),ut={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Ar={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Sr={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:ut.BOTTOM,TRIGGER:Ar.CLICK,COLOR:Sr.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 Ga=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:a}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+a+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:a,visibility:n}=i.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.children).forEach(n=>{let d=n;this.isFocusable(d)&&s.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,s):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(d,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return s>0?0:a-1;let d=i+s;return n?(d<0&&(d=a-1),d>=a&&(d=0)):(d<0&&(d=0),d>=a&&(d=a-1)),d}getDeepActiveElement(){var s;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ui=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 ui;var gt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var 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=`
1537
+ `,Ha=[mc];var Ba=g.constructTagName("popover"),ut={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Sr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},_r={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:ut.BOTTOM,TRIGGER:Sr.CLICK,COLOR:_r.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 Ga=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:a}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+a+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:a,visibility:n}=i.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.children).forEach(n=>{let d=n;this.isFocusable(d)&&s.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,s):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(d,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return s>0?0:a-1;let d=i+s;return n?(d<0&&(d=a-1),d>=a&&(d=0)):(d<0&&(d=0),d>=a&&(d=a-1)),d}getDeepActiveElement(){var s;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ui=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 ui;var gt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var uo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=this.popover.offsetHeight||0,s=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break;case"left":e.style.height=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:s,y:a}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[i]?12-Math.abs(n[i]-d[i]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:s!=null?`${s}px`:"",top:a!=null?`${a}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
1538
1538
  .popover-backdrop {
1539
1539
  position: fixed;
1540
1540
  top: 0;
@@ -1544,7 +1544,7 @@
1544
1544
  background: transparent;
1545
1545
  z-index: ${this.popover.zIndex-1};
1546
1546
  }
1547
- `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Ga(y){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{ft.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new 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(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(ut).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Ar).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Sr).includes(this.color)?this.color:R.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,s,a;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus()),gt.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[$a()],r=this.offset;if(this.flip&&e.push(Pa()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(Ua({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(Va({element:this.arrowElement,padding:12}))}e.push(Da(r)),za(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await Fa(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`
1547
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Ga(y){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{ft.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new uo(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,gt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),gt.onDestroyedPopover(this),ft.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(ut).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Sr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(_r).includes(this.color)?this.color:R.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,s,a;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus()),gt.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[$a()],r=this.offset;if(this.flip&&e.push(Pa()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(Ua({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(Va({element:this.arrowElement,padding:12}))}e.push(Da(r)),za(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await Fa(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),a.arrow&&this.arrowElement&&this.utils.updateArrowStyle(a.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return h`
1548
1548
  <div class="popover-hover-bridge"></div>
1549
1549
  ${this.closeButton?h` <mdc-button
1550
1550
  class="popover-close"
@@ -1558,7 +1558,7 @@
1558
1558
  <div part="popover-content">
1559
1559
  <slot></slot>
1560
1560
  </div>
1561
- `}};L.styles=[...y.styles,...Ha],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 Ge=L;var Ya=g.constructTagName("coachmark"),bt={COLOR:Sr.CONTRAST,TRIGGER:Ar.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends Ge{constructor(){super(...arguments);this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var fi=vt;fi.register(Ya);var pc=fi;var qa=g.constructTagName("divider"),_r={HORIZONTAL:"horizontal",VERTICAL:"vertical"},gi={SOLID:"solid",GRADIENT:"gradient"},Ye={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:gi.SOLID,ARROW_DIRECTION:Ye.NEGATIVE,BUTTON_DIRECTION:Ye.NEGATIVE};var hc=[C,f`
1561
+ `}};L.styles=[...y.styles,...Ha],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Ye=L;var Ya=g.constructTagName("coachmark"),bt={COLOR:_r.CONTRAST,TRIGGER:Sr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends Ye{constructor(){super(...arguments);this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var fi=vt;fi.register(Ya);var pc=fi;var qa=g.constructTagName("divider"),Ir={HORIZONTAL:"horizontal",VERTICAL:"vertical"},gi={SOLID:"solid",GRADIENT:"gradient"},qe={POSITIVE:"positive",NEGATIVE:"negative"},kr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:Ir.HORIZONTAL,VARIANT:gi.SOLID,ARROW_DIRECTION:qe.NEGATIVE,BUTTON_DIRECTION:qe.NEGATIVE};var hc=[C,f`
1562
1562
  :host {
1563
1563
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1564
1564
  --mdc-divider-width: 0.0625rem;
@@ -1769,11 +1769,11 @@
1769
1769
  font-size: var(--mdc-divider-text-size);
1770
1770
  line-height: var(--mdc-divider-text-line-height);
1771
1771
  }
1772
- `],Wa=hc;var qe=class extends y{constructor(){super(...arguments);this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(gi).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?Ye.NEGATIVE:Ye.POSITIVE;Object.values(Ye).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Ye).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===Ye.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())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return h`
1772
+ `],Wa=hc;var We=class extends y{constructor(){super(...arguments);this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(gi).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Ir).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Ir.HORIZONTAL?qe.NEGATIVE:qe.POSITIVE;Object.values(qe).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(qe).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===Ir.HORIZONTAL,r=this.arrowDirection===qe.POSITIVE;return e?r?kr.UP:kr.DOWN:r?kr.RIGHT:kr.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var 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())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return h`
1773
1773
  <div></div>
1774
1774
  <slot @slotchange=${this.inferDividerType}></slot>
1775
1775
  <div></div>
1776
- `}};qe.styles=[...y.styles,...Wa],l([c({type:String,reflect:!0})],qe.prototype,"orientation",2),l([c({type:String,reflect:!0})],qe.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],qe.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],qe.prototype,"buttonPosition",2);var bi=qe;bi.register(qa);var uc=bi;var fc=f`
1776
+ `}};We.styles=[...y.styles,...Wa],l([c({type:String,reflect:!0})],We.prototype,"orientation",2),l([c({type:String,reflect:!0})],We.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],We.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],We.prototype,"buttonPosition",2);var bi=We;bi.register(qa);var uc=bi;var fc=f`
1777
1777
  :host([selected]){
1778
1778
  border: 2px solid;
1779
1779
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -1793,7 +1793,7 @@
1793
1793
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1794
1794
  cursor: auto;
1795
1795
  }
1796
- `,Xa=[fc];var Za=g.constructTagName("filterchip"),vi={ICON_NAME:"check-bold",COLOR:"default"};var kr=class extends Bt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=vi.COLOR}setSelected(e){e?(this.iconName=vi.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,...Xa],l([c({type:Boolean,reflect:!0})],kr.prototype,"selected",2);var yi=kr;yi.register(Za);var gc=yi;var ja=g.constructTagName("formfieldgroup"),xi={RADIOGROUP:"radiogroup",GROUP:"group"};var bc=f`
1796
+ `,Xa=[fc];var Za=g.constructTagName("filterchip"),vi={ICON_NAME:"check-bold",COLOR:"default"};var Cr=class extends Bt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=vi.COLOR}setSelected(e){e?(this.iconName=vi.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)}};Cr.styles=[...Bt.styles,...Xa],l([c({type:Boolean,reflect:!0})],Cr.prototype,"selected",2);var yi=Cr;yi.register(Za);var gc=yi;var ja=g.constructTagName("formfieldgroup"),xi={RADIOGROUP:"radiogroup",GROUP:"group"};var bc=f`
1797
1797
 
1798
1798
  :host::part(container) {
1799
1799
  display: flex;
@@ -1810,7 +1810,7 @@
1810
1810
  :host::part(label-text){
1811
1811
  font-weight: bold;
1812
1812
  }
1813
- `,Ka=[bc];var uo=class extends D(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
1813
+ `,Ka=[bc];var fo=class extends D(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
1814
1814
  <div
1815
1815
  part="container"
1816
1816
  role="${this.isRadio?xi.RADIOGROUP:xi.GROUP}"
@@ -1824,7 +1824,7 @@
1824
1824
  </div>
1825
1825
  <slot></slot>
1826
1826
  </div>
1827
- `}};uo.styles=[...se.styles,...Ka];var Ei=uo;Ei.register(ja);var fo=Ei;cr.register(Xr);var vc=cr;var yc=[f`
1827
+ `}};fo.styles=[...se.styles,...Ka];var Ei=fo;Ei.register(ja);var go=Ei;cr.register(Zr);var vc=cr;var yc=[f`
1828
1828
  :host{
1829
1829
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1830
1830
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1939,19 +1939,19 @@
1939
1939
  opacity: 0;
1940
1940
  pointer-events: none;
1941
1941
  }
1942
- `,...O(!0)],Qa=yc;se.register(aa);var le=se;var Ja=g.constructTagName("input"),go={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},en={MAX_LENGTH:10,VALIDATION:V.ERROR},We={VALIDATION:V.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:it.TERTIARY,CLEAR_BUTTON_SIZE:Le[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN};var $=class extends ie(D(le)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=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`
1942
+ `,...O(!0)],Qa=yc;se.register(aa);var le=se;var Ja=g.constructTagName("input"),bo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},en={MAX_LENGTH:10,VALIDATION:V.ERROR},Xe={VALIDATION:V.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:He.TERTIARY,CLEAR_BUTTON_SIZE:xe[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN};var $=class extends ie(D(le)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=bo.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`
1943
1943
  <mdc-icon
1944
1944
  class="leading-icon"
1945
1945
  part="leading-icon"
1946
1946
  name=${this.leadingIcon}
1947
- size="${We.ICON_SIZE_VALUE}"
1948
- length-unit="${We.ICON_SIZE_UNIT}">
1947
+ size="${Xe.ICON_SIZE_VALUE}"
1948
+ length-unit="${Xe.ICON_SIZE_UNIT}">
1949
1949
  </mdc-icon>
1950
1950
  `:v}renderPrefixText(){return this.prefixText?h`
1951
1951
  <mdc-text
1952
1952
  class="prefix-text"
1953
- tagname="${We.PREFIX_TEXT_TAG}"
1954
- type="${We.PREFIX_TEXT_TYPE}"
1953
+ tagname="${Xe.PREFIX_TEXT_TAG}"
1954
+ type="${Xe.PREFIX_TEXT_TYPE}"
1955
1955
  aria-hidden="true"
1956
1956
  >
1957
1957
  ${this.prefixText.slice(0,en.MAX_LENGTH)}
@@ -1960,9 +1960,9 @@
1960
1960
  <mdc-button
1961
1961
  part='trailing-button'
1962
1962
  class='own-focus-ring ${this.value?"":"hidden"}'
1963
- prefix-icon='${We.CLEAR_BUTTON_ICON}'
1964
- variant='${We.CLEAR_BUTTON_VARIANT}'
1965
- size="${We.CLEAR_BUTTON_SIZE}"
1963
+ prefix-icon='${Xe.CLEAR_BUTTON_ICON}'
1964
+ variant='${Xe.CLEAR_BUTTON_VARIANT}'
1965
+ size="${Xe.CLEAR_BUTTON_SIZE}"
1966
1966
  aria-label="${this.clearAriaLabel}"
1967
1967
  @click=${this.clearInputText}
1968
1968
  ?disabled=${this.disabled||this.readonly||!this.value}
@@ -2035,24 +2035,24 @@
2035
2035
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2036
2036
  cursor: auto;
2037
2037
  }
2038
- `,tn=[C,Ec];var rn=g.constructTagName("inputchip"),bo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends Z(te(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2038
+ `,tn=[C,Ec];var rn=g.constructTagName("inputchip"),vo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends Z(te(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2039
2039
  <mdc-icon
2040
2040
  name="${this.iconName}"
2041
2041
  length-unit="rem"
2042
2042
  size="1"></mdc-icon>
2043
2043
  `:v}handleClose(e){e.stopPropagation();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}render(){return h`
2044
2044
  ${this.renderIcon()}
2045
- <mdc-text part="label" type="${bo.TEXT_TYPE}" tagname="${bo.TAG_NAME}">${this.label}</mdc-text>
2045
+ <mdc-text part="label" type="${vo.TEXT_TYPE}" tagname="${vo.TAG_NAME}">${this.label}</mdc-text>
2046
2046
  <mdc-button
2047
2047
  ?disabled="${this.disabled}"
2048
2048
  variant="tertiary"
2049
2049
  part="close-icon"
2050
2050
  aria-label="${this.clearAriaLabel}"
2051
- prefix-icon="${bo.CLOSE_ICON}"
2051
+ prefix-icon="${vo.CLOSE_ICON}"
2052
2052
  size="20"
2053
2053
  @click="${this.handleClose}"
2054
2054
  ></mdc-button>
2055
- `}};xt.styles=[...y.styles,...tn],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 Ai=xt;Ai.register(rn);var Tc=Ai;var on=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 Ac=[C,f`
2055
+ `}};xt.styles=[...y.styles,...tn],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 Ai=xt;Ai.register(rn);var Tc=Ai;var on=g.constructTagName("link"),yo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},xo={LARGE:1,MIDSIZE:.875,SMALL:.75},Eo={INLINE:!1,INVERTED:!1,LINK_SIZE:yo.LARGE};var Ac=[C,f`
2056
2056
 
2057
2057
  :host {
2058
2058
 
@@ -2175,15 +2175,15 @@
2175
2175
  :host(:active)::part(link-container) {
2176
2176
  box-shadow: none;
2177
2177
  }
2178
- `],sn=Ac;var Et=class extends te(Z(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`
2178
+ `],sn=Ac;var Et=class extends te(Z(y)){constructor(){super(...arguments);this.inline=Eo.INLINE;this.inverted=Eo.INVERTED;this.size=Eo.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case yo.SMALL:return xo.SMALL;case yo.MIDSIZE:return xo.MIDSIZE;default:return xo.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,s;let e=(s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}).find(a=>a.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let a=document.createElement("mdc-icon");a.setAttribute("name",this.iconName),a.setAttribute("size",`${r}`),a.setAttribute("length-unit","rem"),e.appendChild(a)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
2179
2179
  <div part='link-container' class='mdc-focus-ring'>
2180
2180
  <slot @slotchange=${this.updateTrailingIcon}></slot>
2181
2181
  </div>
2182
- `}};Et.styles=[...y.styles,...sn],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 Si=Et;Si.register(on);var Sc=Si;var Eo=g.constructTagName("listitem"),_i={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},an={VARIANT:_i.FULL_WIDTH};var nn=g.constructTagName("list"),Cr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Ii="header-id";var _c=f`
2182
+ `}};Et.styles=[...y.styles,...sn],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 Si=Et;Si.register(on);var Sc=Si;var To=g.constructTagName("listitem"),_i={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},an={VARIANT:_i.FULL_WIDTH};var nn=g.constructTagName("list"),wr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Ii="header-id";var _c=f`
2183
2183
  :host::part(header-text) {
2184
2184
  padding: 0.5rem 0.75rem;
2185
2185
  }
2186
- `,ln=[_c];var Wt=class extends D(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case Cr.ARROW_DOWN:return(e+1)%r;case Cr.ARROW_UP:return(e-1+r)%r;case Cr.HOME:return 0;case Cr.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`
2186
+ `,ln=[_c];var Wt=class extends D(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case 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`
2187
2187
  <mdc-text
2188
2188
  id="${Ii}"
2189
2189
  part="header-text"
@@ -2199,7 +2199,7 @@
2199
2199
  ${t}
2200
2200
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2201
2201
  </div>
2202
- `}};Wt.styles=[...y.styles,...ln],l([tt({selector:Eo})],Wt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Wt.prototype,"headerText",2);var ki=Wt;ki.register(nn);var Ic=ki;var kc=f`
2202
+ `}};Wt.styles=[...y.styles,...ln],l([rt({selector:To})],Wt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Wt.prototype,"headerText",2);var ki=Wt;ki.register(nn);var Ic=ki;var kc=f`
2203
2203
  :host {
2204
2204
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2205
2205
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2268,7 +2268,7 @@
2268
2268
  display: flex;
2269
2269
  flex-direction: row;
2270
2270
  }
2271
- `,cn=[kc,...O()];var ce=class extends D(te(Wr(y))){constructor(){super(...arguments);this.variant=an.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2271
+ `,cn=[kc,...O()];var ce=class extends D(te(Xr(y))){constructor(){super(...arguments);this.variant=an.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2272
2272
  <slot name="${e}">
2273
2273
  <mdc-text part="${e}" type="${r}" tagname="${w.SPAN}">${i}</mdc-text>
2274
2274
  </slot>
@@ -2288,7 +2288,7 @@
2288
2288
  </div>
2289
2289
  <slot name="trailing-controls"></slot>
2290
2290
  </div>
2291
- `}};ce.styles=[...y.styles,...cn],l([tt({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),l([tt({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ce.prototype,"variant",2),l([c({type:String,reflect:!0})],ce.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2);var Xt=ce;Xt.register(Eo);var Cc=Xt;var wc=f`
2291
+ `}};ce.styles=[...y.styles,...cn],l([rt({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),l([rt({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ce.prototype,"variant",2),l([c({type:String,reflect:!0})],ce.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2);var Xt=ce;Xt.register(To);var Cc=Xt;var wc=f`
2292
2292
  :host {
2293
2293
  --mdc-marker-width: 0.25rem;
2294
2294
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2313,7 +2313,7 @@
2313
2313
  var(--mdc-marker-striped-background-color) 0.375rem
2314
2314
  );
2315
2315
  }
2316
- `,dn=[wc];var mn=g.constructTagName("marker"),pn={SOLID:"solid",STRIPED:"striped"};var wr=class extends y{constructor(){super(...arguments);this.variant=pn.SOLID}};wr.styles=[...y.styles,...dn],l([c({type:String,reflect:!0})],wr.prototype,"variant",2);var Ci=wr;Ci.register(mn);var Lc=Ci;Ge.register(Ba);var Nc=Ge;var Rc=[C,f`
2316
+ `,dn=[wc];var mn=g.constructTagName("marker"),pn={SOLID:"solid",STRIPED:"striped"};var Lr=class extends y{constructor(){super(...arguments);this.variant=pn.SOLID}};Lr.styles=[...y.styles,...dn],l([c({type:String,reflect:!0})],Lr.prototype,"variant",2);var Ci=Lr;Ci.register(mn);var Lc=Ci;Ye.register(Ba);var Nc=Ye;var Rc=[C,f`
2317
2317
  :host{
2318
2318
  --mdc-radio-inner-circle-size: 0.375rem;
2319
2319
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2503,7 +2503,7 @@
2503
2503
  </div>
2504
2504
  ${this.renderLabelAndHelperText()}
2505
2505
  </div>
2506
- `}};Tt.styles=[...se.styles,...hn],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 wi=Tt;var To=g.constructTagName("radio");wi.register(To);var Oc=wi;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 Li=Lr;var un=g.constructTagName("radiogroup");Li.register(un);var Mc=Li;var zc=[C,f`
2506
+ `}};Tt.styles=[...se.styles,...hn],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 wi=Tt;var Ao=g.constructTagName("radio");wi.register(Ao);var Oc=wi;var Nr=class extends go{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()===Ao))==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)})}};Nr.styles=[...go.styles],l([c({type:String})],Nr.prototype,"name",2);var Li=Nr;var un=g.constructTagName("radiogroup");Li.register(un);var Mc=Li;var zc=[C,f`
2507
2507
  :host {
2508
2508
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2509
2509
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -2565,11 +2565,11 @@
2565
2565
  stroke-dashoffset: -292;
2566
2566
  }
2567
2567
  }
2568
- `],fn=zc;var gn=g.constructTagName("spinner"),Dc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},$c={STANDALONE:"standalone",BUTTON:"button"},Ao={VARIANT:$c.STANDALONE,SIZE:Dc.MIDSIZE,INVERTED:!1};var Xe=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`
2568
+ `],fn=zc;var gn=g.constructTagName("spinner"),Dc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},$c={STANDALONE:"standalone",BUTTON:"button"},So={VARIANT:$c.STANDALONE,SIZE:Dc.MIDSIZE,INVERTED:!1};var Ze=class extends y{constructor(){super(...arguments);this.inverted=So.INVERTED;this.size=So.SIZE;this.ariaLabel=null;this.variant=So.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2569
2569
  <svg part="container" viewBox="0 0 100 100">
2570
2570
  <circle part="circle" cx="50" cy="50" r="46"></circle>
2571
2571
  </svg>
2572
- `}};Xe.styles=[...y.styles,...fn],l([c({type:Boolean,reflect:!0})],Xe.prototype,"inverted",2),l([c({type:String,reflect:!0})],Xe.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],Xe.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],Xe.prototype,"variant",2);var Ni=Xe;Ni.register(gn);var Pc=Ni;var Uc=[C,f`
2572
+ `}};Ze.styles=[...y.styles,...fn],l([c({type:Boolean,reflect:!0})],Ze.prototype,"inverted",2),l([c({type:String,reflect:!0})],Ze.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],Ze.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],Ze.prototype,"variant",2);var Ni=Ze;Ni.register(gn);var Pc=Ni;var Uc=[C,f`
2573
2573
 
2574
2574
  :host {
2575
2575
  --mdc-tab-content-gap: 0.5rem;
@@ -2812,7 +2812,7 @@
2812
2812
  color: var(--mdc-tab-pill-active-color-disabled);
2813
2813
  }
2814
2814
 
2815
- `,...O()],bn=Uc;var vn=g.constructTagName("tab"),Ri={GLASS:"glass",LINE:"line",PILL:"pill"},Oi={VARIANT:Ri.PILL};var Zt=class extends Z(re){constructor(){super(...arguments);this.variant=Oi.VARIANT}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${br(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Ri).includes(e)?e:Oi.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`
2815
+ `,...O()],bn=Uc;var vn=g.constructTagName("tab"),Ri={GLASS:"glass",LINE:"line",PILL:"pill"},Oi={VARIANT:Ri.PILL};var Zt=class extends Z(re){constructor(){super(...arguments);this.variant=Oi.VARIANT}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${vr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Ri).includes(e)?e:Oi.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return h`
2816
2816
  <div part="container">
2817
2817
  ${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
2818
2818
  ${this.text?h` <mdc-text
@@ -2826,7 +2826,7 @@
2826
2826
  <slot name="chip"></slot>
2827
2827
  </div>
2828
2828
  <div part="indicator"></div>
2829
- `}};Zt.styles=[...re.styles,...bn],l([c({type:String,reflect:!0})],Zt.prototype,"text",2),l([c({type:String,reflect:!0})],Zt.prototype,"variant",2);var Mi=Zt;Mi.register(vn);var Vc=Mi;var So=g.constructTagName("themeprovider"),zi={THEMECLASS:"mds-theme-stable-darkWebex"};var _o=class{constructor(t){this.themeclass=t}};_o.context=So;var Io=_o;var Fc=f`
2829
+ `}};Zt.styles=[...re.styles,...bn],l([c({type:String,reflect:!0})],Zt.prototype,"text",2),l([c({type:String,reflect:!0})],Zt.prototype,"variant",2);var Mi=Zt;Mi.register(vn);var Vc=Mi;var _o=g.constructTagName("themeprovider"),zi={THEMECLASS:"mds-theme-stable-darkWebex"};var Io=class{constructor(t){this.themeclass=t}};Io.context=_o;var ko=Io;var Fc=f`
2830
2830
  :host {
2831
2831
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
2832
2832
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -2855,7 +2855,7 @@
2855
2855
  * {
2856
2856
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
2857
2857
  }
2858
- `,yn=[Fc];var jt=class extends Rt{constructor(){super({context:Io.context,initialValue:new Io(zi.THEMECLASS)});this.themeclass=zi.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=[...Rt.styles,...yn],l([X()],jt.prototype,"currentThemeClass",2),l([c({type:String})],jt.prototype,"themeclass",2);var Di=jt;Di.register(So);var Hc=Di;var Bc=[C,f`
2858
+ `,yn=[Fc];var jt=class extends Rt{constructor(){super({context:ko.context,initialValue:new ko(zi.THEMECLASS)});this.themeclass=zi.THEMECLASS}static get Context(){return ko.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};jt.styles=[...Rt.styles,...yn],l([X()],jt.prototype,"currentThemeClass",2),l([c({type:String})],jt.prototype,"themeclass",2);var Di=jt;Di.register(_o);var Hc=Di;var Bc=[C,f`
2859
2859
  :host {
2860
2860
  --mdc-toggle-width: 3rem;
2861
2861
  --mdc-toggle-height: 1.5rem;
@@ -3038,7 +3038,7 @@
3038
3038
  </div>
3039
3039
  ${this.renderLabel()}
3040
3040
  ${this.renderHelperText()}
3041
- `}};At.styles=[...le.styles,...xn],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 Vi=At;Vi.register(En);var Gc=Vi;var An=g.constructTagName("tooltip"),J={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ze={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:J.DESCRIPTION};var Yc=f`
3041
+ `}};At.styles=[...le.styles,...xn],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 Vi=At;Vi.register(En);var Gc=Vi;var An=g.constructTagName("tooltip"),J={DESCRIPTION:"description",LABEL:"label",NONE:"none"},je={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:J.DESCRIPTION};var Yc=f`
3042
3042
 
3043
3043
  :host {
3044
3044
  --mdc-tooltip-max-width: 400px;
@@ -3063,10 +3063,10 @@
3063
3063
  :host([color='contrast'])::part(popover-content) {
3064
3064
  color: var(--mdc-tooltip-text-color-contrast);
3065
3065
  }
3066
- `,Sn=[Yc];var Kt=class extends Ge{constructor(){super(...arguments);this.tooltipType=Ze.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,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.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(J).includes(e)?e:Ze.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${st()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case J.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case J.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ut).includes(this.placement)||(this.placement=Ze.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(J).includes(this.tooltipType)||this.setTooltipType(Ze.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case J.DESCRIPTION:r===J.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case J.LABEL:r===J.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===J.DESCRIPTION?i.removeAttribute("aria-describedby"):r===J.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==J.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Kt.styles=[...Ge.styles,...Sn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Kt.prototype,"tooltipType",2),l([xs()],Kt.prototype,"defaultSlotNodes",2);var Fi=Kt;Fi.register(An);var qc=Fi;function St(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var a,n,d,m;let p;e.key&&((a=e.debug)!=null&&a.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*100)/100,I=T/16,S=(k,N)=>{for(k=String(k);k.length<N;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3066
+ `,Sn=[Yc];var Kt=class extends Ye{constructor(){super(...arguments);this.tooltipType=je.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=je.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=je.OFFSET,this.placement=je.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(J).includes(e)?e:je.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${st()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case J.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case J.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ut).includes(this.placement)||(this.placement=je.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(J).includes(this.tooltipType)||this.setTooltipType(je.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case J.DESCRIPTION:r===J.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case J.LABEL:r===J.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===J.DESCRIPTION?i.removeAttribute("aria-describedby"):r===J.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==J.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Kt.styles=[...Ye.styles,...Sn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Kt.prototype,"tooltipType",2),l([xs()],Kt.prototype,"defaultSlotNodes",2);var Fi=Kt;Fi.register(An);var qc=Fi;function St(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var a,n,d,m;let p;e.key&&((a=e.debug)!=null&&a.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*100)/100,I=T/16,S=(k,N)=>{for(k=String(k);k.length<N;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3067
3067
  font-size: .6rem;
3068
3068
  font-weight: bold;
3069
- color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function ko(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var _n=(o,t)=>Math.abs(o-t)<1,In=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Wc=o=>o,Xc=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},Cn=(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)}},kn={passive:!0};var Zc=typeof window>"u"?!0:"onscrollend"in window,wn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&Zc?()=>{}:In(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,kn),e.addEventListener("scrollend",d,kn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var jc=(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 Ln=(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})},Co=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:Wc,rangeExtractor:Xc,onChange:()=>{},measureElement:jc,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?Kc({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[Nn(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));_n(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)}},Nn=(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 Kc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Nn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Hi=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 Co(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},wo=class extends Hi{constructor(t,e){super(t,{observeElementRect:Cn,observeElementOffset:wn,scrollToFn:Ln,...e})}};var{I:US}=gs;var Rn=o=>o.strings===void 0;var Nr=(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),Nr(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)},On=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),ed(t)}};function Qc(o){this._$AN!==void 0?(Lo(this),this._$AM=o,On(this)):this._$AM=o}function Jc(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++)Nr(r[s],!1),Lo(r[s]);else r!=null&&(Nr(r,!1),Lo(r));else Nr(this,o)}var ed=o=>{var t,e;o.type==Jr.CHILD&&((t=o._$AP)!=null||(o._$AP=Jc),(e=o._$AQ)!=null||(o._$AQ=Qc))},No=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),On(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&&(Nr(this,t),Lo(this))}setValue(t){if(Rn(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 Mn=()=>new Gi,Gi=class{},Bi=new WeakMap,zn=ur(class extends No{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=Bi.get(e);r===void 0&&(r=new WeakMap,Bi.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=Bi.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 td=[f`
3069
+ color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function Co(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var _n=(o,t)=>Math.abs(o-t)<1,In=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Wc=o=>o,Xc=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},Cn=(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)}},kn={passive:!0};var Zc=typeof window>"u"?!0:"onscrollend"in window,wn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&Zc?()=>{}:In(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,kn),e.addEventListener("scrollend",d,kn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var jc=(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 Ln=(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:Wc,rangeExtractor:Xc,onChange:()=>{},measureElement:jc,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?Kc({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 Co(r[Nn(0,r.length-1,i=>Co(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]=Co(this.getOffsetForIndex(e,n));_n(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)}},Nn=(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 Kc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Nn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Hi=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()}},Lo=class extends Hi{constructor(t,e){super(t,{observeElementRect:Cn,observeElementOffset:wn,scrollToFn:Ln,...e})}};var{I:US}=gs;var Rn=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},No=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)},On=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),ed(t)}};function Qc(o){this._$AN!==void 0?(No(this),this._$AM=o,On(this)):this._$AM=o}function Jc(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),No(r[s]);else r!=null&&(Rr(r,!1),No(r));else Rr(this,o)}var ed=o=>{var t,e;o.type==eo.CHILD&&((t=o._$AP)!=null||(o._$AP=Jc),(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),On(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),No(this))}setValue(t){if(Rn(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 Mn=()=>new Gi,Gi=class{},Bi=new WeakMap,zn=fr(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=Bi.get(e);r===void 0&&(r=new WeakMap,Bi.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=Bi.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 td=[f`
3070
3070
  :host::part(scroll) {
3071
3071
  height: 100%;
3072
3072
  width: 100%;
@@ -3076,7 +3076,7 @@
3076
3076
  position: relative;
3077
3077
  width: 100%;
3078
3078
  }
3079
- `],Dn=td;var $n=g.constructTagName("virtualizedlist"),t_=g.constructTagName("virtualizedwrapper"),Pn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=Pn.VIRTUALIZER_PROPS;this.scrollElementRef=Mn();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 wo(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
3079
+ `],Dn=td;var $n=g.constructTagName("virtualizedlist"),t_=g.constructTagName("virtualizedwrapper"),Pn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=Pn.VIRTUALIZER_PROPS;this.scrollElementRef=Mn();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 Lo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:s}=this.virtualizer,a=i();if(a!==this.virtualItems){this.virtualItems=a;let m=i(),p={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:p})}return h`<div
3080
3080
  part="container"
3081
3081
  style="height: ${r()}px;"
3082
3082
  >
@@ -3171,7 +3171,7 @@
3171
3171
  :host::part(progress-container), :host::part(progress-bar) {
3172
3172
  border: var(--mdc-progressbar-border);
3173
3173
  }
3174
- `],Un=od;var Vn=g.constructTagName("progressbar"),Ro={DEFAULT:"default",INLINE:"inline"},Fn={VARIANT:Ro.DEFAULT,VALIDATION:V.DEFAULT};var It=class extends D(le){constructor(){super(...arguments);this.variant=Fn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var s;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return h`
3174
+ `],Un=od;var Vn=g.constructTagName("progressbar"),Oo={DEFAULT:"default",INLINE:"inline"},Fn={VARIANT:Oo.DEFAULT,VALIDATION:V.DEFAULT};var It=class extends D(le){constructor(){super(...arguments);this.variant=Fn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var s;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return h`
3175
3175
  <div
3176
3176
  part="progress-container ${r?"gap":""}"
3177
3177
  role="progressbar"
@@ -3183,11 +3183,11 @@
3183
3183
  <div part="progress-bar ${e}" style="width: ${i}%"></div>
3184
3184
  <div part="remaining"></div>
3185
3185
  </div>
3186
- `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${st()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=V.ERROR:this.clampedValue===100?this.helpTextType=V.SUCCESS:this.helpTextType=V.DEFAULT,this.helpTextType}render(){let e=this.variant===Ro.INLINE;return h`
3186
+ `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${st()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=V.ERROR:this.clampedValue===100?this.helpTextType=V.SUCCESS:this.helpTextType=V.DEFAULT,this.helpTextType}render(){let e=this.variant===Oo.INLINE;return h`
3187
3187
  ${e?h`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:h`
3188
3188
  <div part="label-container">
3189
3189
  ${this.renderLabelElement()}
3190
- ${this.variant===Ro.DEFAULT&&this.label?h`<span part="percentage">${this.clampedValue}%</span>`:""}
3190
+ ${this.variant===Oo.DEFAULT&&this.label?h`<span part="percentage">${this.clampedValue}%</span>`:""}
3191
3191
  </div>
3192
3192
  ${this.renderProgressbar()}
3193
3193
  ${this.renderHelperText()}
@@ -3243,7 +3243,7 @@
3243
3243
  ${t}
3244
3244
  <slot role="presentation"></slot>
3245
3245
  </div>
3246
- `}};Qt.styles=[...y.styles,...qn],l([c({type:String,reflect:!0})],Qt.prototype,"label",2),l([tt({selector:"mdc-option"})],Qt.prototype,"options",2);var Zi=Qt;Zi.register(Yn);var ld=Zi;var cd=[f`
3246
+ `}};Qt.styles=[...y.styles,...qn],l([c({type:String,reflect:!0})],Qt.prototype,"label",2),l([rt({selector:"mdc-option"})],Qt.prototype,"options",2);var Zi=Qt;Zi.register(Yn);var ld=Zi;var cd=[f`
3247
3247
  :host {
3248
3248
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3249
3249
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -3364,11 +3364,11 @@
3364
3364
  pointer-events: none;
3365
3365
  }
3366
3366
 
3367
- `,...O(!0)],Wn=cd;var Xn=g.constructTagName("textarea"),ji={HARD:"hard",SOFT:"soft"},Zn={OFF:"off",ON:"on"},Oo={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ji.SOFT};var B=class extends ie(D(le)){constructor(){super(...arguments);this.readonly=!1;this.rows=Oo.ROWS;this.cols=Oo.COLS;this.wrap=ji.SOFT;this.autocapitalize=go.OFF;this.autocomplete=Zn.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===V.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?h`
3367
+ `,...O(!0)],Wn=cd;var Xn=g.constructTagName("textarea"),ji={HARD:"hard",SOFT:"soft"},Zn={OFF:"off",ON:"on"},Mo={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ji.SOFT};var B=class extends ie(D(le)){constructor(){super(...arguments);this.readonly=!1;this.rows=Mo.ROWS;this.cols=Mo.COLS;this.wrap=ji.SOFT;this.autocapitalize=bo.OFF;this.autocomplete=Zn.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===V.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?h`
3368
3368
  <mdc-text
3369
3369
  part="character-counter"
3370
3370
  tagname="span"
3371
- type=${Oo.CHARACTER_COUNTER_TYPE}
3371
+ type=${Mo.CHARACTER_COUNTER_TYPE}
3372
3372
  >
3373
3373
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
3374
3374
  </mdc-text>
@@ -3406,7 +3406,7 @@
3406
3406
  ></textarea>
3407
3407
  </div>
3408
3408
  ${this.renderTextareaFooter()}
3409
- `}};B.styles=[...le.styles,...Wn],l([c({type:String})],B.prototype,"placeholder",2),l([c({type:Boolean})],B.prototype,"readonly",2),l([c({type:Number})],B.prototype,"rows",2),l([c({type:Number})],B.prototype,"cols",2),l([c({type:String})],B.prototype,"wrap",2),l([c({type:String})],B.prototype,"autocapitalize",2),l([c({type:String})],B.prototype,"autocomplete",2),l([c({type:Boolean})],B.prototype,"autofocus",2),l([c({type:String})],B.prototype,"dirname",2),l([c({type:Number})],B.prototype,"maxlength",2),l([c({type:Number})],B.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],B.prototype,"maxCharacterLimit",2),l([Hr("textarea")],B.prototype,"inputElement",2);var Ki=B;Ki.register(Xn);var dd=Ki;})();
3409
+ `}};B.styles=[...le.styles,...Wn],l([c({type:String})],B.prototype,"placeholder",2),l([c({type:Boolean})],B.prototype,"readonly",2),l([c({type:Number})],B.prototype,"rows",2),l([c({type:Number})],B.prototype,"cols",2),l([c({type:String})],B.prototype,"wrap",2),l([c({type:String})],B.prototype,"autocapitalize",2),l([c({type:String})],B.prototype,"autocomplete",2),l([c({type:Boolean})],B.prototype,"autofocus",2),l([c({type:String})],B.prototype,"dirname",2),l([c({type:Number})],B.prototype,"maxlength",2),l([c({type:Number})],B.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],B.prototype,"maxCharacterLimit",2),l([Br("textarea")],B.prototype,"inputElement",2);var Ki=B;Ki.register(Xn);var dd=Ki;})();
3410
3410
  /*! Bundled license information:
3411
3411
 
3412
3412
  @lit/reactive-element/css-tag.js:
package/dist/index.d.ts CHANGED
@@ -29,7 +29,6 @@ import ThemeProvider from './components/themeprovider';
29
29
  import Toggle from './components/toggle';
30
30
  import Tooltip from './components/tooltip';
31
31
  import VirtualizedList from './components/virtualizedlist';
32
- import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
33
32
  import Progressbar from './components/progressbar';
34
33
  import Option from './components/option';
35
34
  import OptGroup from './components/optgroup';
@@ -38,6 +37,9 @@ import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.t
38
37
  import type { TextType } from './components/text/text.types';
39
38
  import type { PopoverPlacement } from './components/popover/popover.types';
40
39
  import type { BadgeType } from './components/badge/badge.types';
40
+ import type { IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor } from './components/button/button.types';
41
+ import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
42
+ import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
41
43
  export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, Textarea, Tooltip, };
42
- export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, };
43
- export { inMemoryCache, webAPIIconsCache };
44
+ export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
45
+ export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ // Components Imports
1
2
  import AlertChip from './components/alertchip';
2
3
  import Avatar from './components/avatar';
3
4
  import AvatarButton from './components/avatarbutton';
@@ -29,10 +30,14 @@ import ThemeProvider from './components/themeprovider';
29
30
  import Toggle from './components/toggle';
30
31
  import Tooltip from './components/tooltip';
31
32
  import VirtualizedList from './components/virtualizedlist';
32
- import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
33
33
  import Progressbar from './components/progressbar';
34
34
  import Option from './components/option';
35
35
  import OptGroup from './components/optgroup';
36
36
  import Textarea from './components/textarea';
37
+ // Constants / Utils Imports
38
+ import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
39
+ import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
40
+ // Components Exports
37
41
  export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, Textarea, Tooltip, };
38
- export { inMemoryCache, webAPIIconsCache };
42
+ // Constants / Utils Exports
43
+ export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "lit": "^3.2.0",
39
39
  "uuid": "^11.0.5"
40
40
  },
41
- "version": "0.41.4"
41
+ "version": "0.41.6"
42
42
  }