@fluentui/web-components 3.0.0-rc.22 → 3.0.0-rc.23
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.
- package/CHANGELOG.md +11 -2
- package/custom-elements.json +40 -16
- package/dist/esm/dropdown/dropdown.base.d.ts +25 -0
- package/dist/esm/dropdown/dropdown.base.js +61 -6
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/web-components-all.js +57 -6
- package/dist/web-components-all.min.js +1 -1
- package/dist/web-components.d.ts +25 -0
- package/dist/web-components.js +57 -6
- package/dist/web-components.min.js +7 -7
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
|
|
|
2
2
|
Mismatch Details:`,` - Expected target node ID: "${h.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(", ")||"none"}]`];throw h.targetTagName&&S.push(` - Expected tag name: "${h.targetTagName}"`),k.sourceAspect&&S.push(` - Source aspect: "${k.sourceAspect}"`),k.aspectType!==void 0&&S.push(` - Aspect type: ${k.aspectType}`),S.push(`
|
|
3
3
|
This usually means:`," 1. The server-rendered HTML doesn't match the client template"," 2. The hydration markers are missing or corrupted"," 3. The DOM structure was modified before hydration",`
|
|
4
4
|
Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ku(S.join(`
|
|
5
|
-
`),h,Fs(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=n.length;i<s;++i)n[i].bind(this)}this.isBound=!0,this._hydrationStage=Qt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Mn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}Es=Sr,It(Yu);function Ju(o){return o.create!==void 0}function Qu(o,e,t,r){if(t==null&&(t=""),Ju(t)){o.textContent="";let n=o.$fastView;if(n===void 0)if(Br(r)&&Br(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==Qt.hydrated){const i=r.bindingViewBoundaries[this.targetNodeId];n=t.hydrate(i.first,i.last)}else n=t.create();else o.$fastTemplate!==t&&(n.isComposed&&(n.remove(),n.unbind()),n=t.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(r.source,r.context)):(n.isComposed=!0,n.bind(r.source,r.context),n.insertBefore(o),o.$fastView=n,o.$fastTemplate=t)}else{const n=o.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),o.textContent=t}}function Zu(o,e,t){var r;const n=`${this.id}-t`,i=(r=o[n])!==null&&r!==void 0?r:o[n]={v:0,cv:Object.create(null)},s=i.cv;let c=i.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const k=d[l];k!==""&&(s[k]=c,h.add(k))}}if(i.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const ep={[Z.attribute]:Nt.setAttribute,[Z.booleanAttribute]:Nt.setBooleanAttribute,[Z.property]:(o,e,t)=>o[e]=t,[Z.content]:Qu,[Z.tokenList]:Zu,[Z.event]:()=>{}};class Zt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Z.content}createHTML(e){return xs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ep[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw U.error(Ge.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],n=Br(e)&&e.hydrationStage&&e.hydrationStage!==Qt.hydrated;switch(this.aspectType){case Z.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Z.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(i.target=r,i.controller=e,n&&(this.aspectType===Z.attribute||this.aspectType===Z.booleanAttribute)){i.bind(e);break}this.updateTarget(r,this.targetAspect,i.bind(e),e);break}}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Jt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Jt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const n=t.target;this.updateTarget(n,this.targetAspect,t.bind(r),r)}}Xe.define(Zt,{aspected:!0});const Ls=(o,e)=>`${o}.${e}`,Ms={},Ue={index:0,node:null};function Hs(o){o.startsWith("fast-")||U.warn(Ge.hostBindingWithoutHost,{name:o})}const tp=new Proxy(document.createElement("div"),{get(o,e){Hs(e);const t=Reflect.get(o,e);return Pt(t)?t.bind(o):t},set(o,e,t){return Hs(e),Reflect.set(o,e,t)}});class op{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,n,i){var s,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,n)),e.id=(s=e.id)!==null&&s!==void 0?s:So(),e.targetNodeId=r,e.targetTagName=i,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const n=this.descriptors;if(t==="r"||t==="h"||n[t])return;if(!n[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let i=Ms[t];if(!i){const s=`_${t}`;Ms[t]=i={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[r]}}}n[t]=i}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??tp;for(const n of this.nodeIds)Reflect.get(r,n);return new Ir(t,this.factories,r)}}function Vs(o,e,t,r,n,i=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,k=wr.parse(p,c);let S=null;k===null?i&&(S=new Zt(bs(()=>p,o.policy)),Xe.assignAspect(S,l.name)):S=Hn.aggregate(k,o.policy),S!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(S,e,r,n,t.tagName))}}function rp(o,e,t,r,n){const i=wr.parse(e.textContent,o.directives);if(i===null)return Ue.node=e.nextSibling,Ue.index=n+1,Ue;let s,c=s=e;for(let h=0,d=i.length;h<d;++h){const l=i[h];h!==0&&(n++,r=Ls(t,n),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),rt(l)?s.textContent=l:(s.textContent=" ",Xe.assignAspect(l),o.addFactory(l,t,r,n,null)),c=s}return Ue.index=n+1,Ue.node=c.nextSibling,Ue}function Rs(o,e,t){let r=0,n=e.firstChild;for(;n;){const i=np(o,t,n,r);n=i.node,r=i.index}}function np(o,e,t,r){const n=Ls(e,r);switch(t.nodeType){case 1:Vs(o,e,t,n,r),Rs(o,t,n);break;case 3:return rp(o,t,e,n,r);case 8:{const i=wr.parse(t.data,o.directives);i!==null&&o.addFactory(Hn.aggregate(i),e,n,r,null);break}}return Ue.index=r+1,Ue.node=t.nextSibling,Ue}function ip(o,e){return o&&o.nodeType===8&&wr.parse(o.data,e)!==null}const js="TEMPLATE",Hn={compile(o,e,t=Nt.policy){let r;if(rt(o)){r=document.createElement(js),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===js&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const n=document.adoptNode(r.content),i=new op(n,e,t);return Vs(i,"",r,"h",0,!0),(ip(n.firstChild,e)||n.childNodes.length===1&&Object.keys(e).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),Rs(i,n,"r"),Ue.node=null,i.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Nt.policy){if(o.length===1)return o[0];let t,r=!1,n;const i=o.length,s=o.map(d=>rt(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,n=n||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let k=0;k<i;++k)p+=s[k](d,l);return p},h=new Zt(Tn(c,n??e,r));return Xe.assignAspect(h,t),h}};class qs extends Dn{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Xe.define(qs);const A=o=>new qs(o),Ws="boolean",Gs="reflect",Nr=Object.freeze({locate:hs()}),sp={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ae={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class wn{constructor(e,t,r=t.toLowerCase(),n=Gs,i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=n,this.converter=i,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n===Ws&&i===void 0&&(this.converter=sp)}setValue(e,t){const r=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||E.enqueue(()=>{r.add(e);const n=e[this.fieldName];switch(t){case Gs:const i=this.converter;Nt.setAttribute(e,this.attribute,i!==void 0?i.toView(n):n);break;case Ws:Nt.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Nr.locate(e));for(let n=0,i=t.length;n<i;++n){const s=t[n];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];rt(d)?r.push(new wn(e,d)):r.push(new wn(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(n,i){arguments.length>1&&(t.property=i),Nr.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}var ap=window&&window.__awaiter||function(o,e,t,r){function n(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(l){try{d(r.next(l))}catch(p){s(p)}}function h(l){try{d(r.throw(l))}catch(p){s(p)}}function d(l){l.done?i(l.value):n(l.value).then(c,h)}d((r=r.apply(o,e||[])).next())})},Me;const Us={mode:"open"},Ks={},Vn=new Set,Co=U.getById(Ct.elementRegistry,()=>In()),lp={deferAndHydrate:"defer-and-hydrate"};class ge{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,rt(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const n=e.prototype,i=wn.collect(e,t.attributes),s=new Array(i.length),c={},h={};for(let d=0,l=i.length;d<l;++d){const p=i[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(n,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=i,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=we.normalize(t.styles),Co.register(this),m.defineProperty(Me.isRegistered,this.name),Me.isRegistered[this.name]=this.type}define(e=this.registry){var t,r;const n=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,n,this.elementOptions),(r=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||r===void 0||r.call(t,this.name)),this}static compose(e,t){return Vn.has(e)||Co.getByType(e)?new Me(class extends e{},t):new Me(e,t)}static registerBaseType(e){Vn.add(e)}static composeAsync(e,t){return new Promise(r=>{(Vn.has(e)||Co.getByType(e))&&r(new Me(class extends e{},t));const n=new Me(e,t);m.getNotifier(n).subscribe({handleChange:()=>{var i,s;(s=(i=n.lifecycleCallbacks)===null||i===void 0?void 0:i.templateDidUpdate)===null||s===void 0||s.call(i,n.name),r(n)}},"template")})}}Me=ge,ge.isRegistered={},ge.getByType=Co.getByType,ge.getForInstance=Co.getForInstance,ge.registerAsync=o=>ap(void 0,void 0,void 0,function*(){return new Promise(e=>{Me.isRegistered[o]&&e(Me.isRegistered[o]),m.getNotifier(Me.isRegistered).subscribe({handleChange:()=>e(Me.isRegistered[o])},o)})}),m.defineProperty(ge.prototype,"template");const cp=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,dp=Object.create(null);class Tt{constructor(e,t=dp){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}Tt.empty=new Tt(""),Xe.define(Tt);function hp(o,e,t,r=Xe.getForInstance(o)){if(r.aspected){const n=cp.exec(e);n!==null&&Xe.assignAspect(o,n[2])}return o.createHTML(t)}class Sn{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=Hn.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new Tt(rt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw U.error(Ge.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw U.error(Ge.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const n=this.create(r);return n.bind(e),n.appendTo(t),n}static create(e,t,r){let n="";const i=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=So();return i[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(n+=d,Pt(l))l=new Zt(Tn(l));else if(l instanceof kr)l=new Zt(l);else if(!(p=Xe.getForInstance(l))){const k=l;l=new Zt(bs(()=>k))}n+=hp(l,d,s,p)}return new Sn(n+e[e.length-1],i,r)}}It(Sn);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Sn.create(o,e);throw U.error(Ge.directCallToHTMLTagNotAllowed)};b.partial=o=>new Tt(o);const Ys="slotchange";class Js extends Ru{observe(e){e.addEventListener(Ys,this)}disconnect(e){e.removeEventListener(Ys,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Xe.define(Js);function K(o){return rt(o)&&(o={property:o}),new Js(o)}class up extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(n=>this.observedNodes.has(n.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,n=!1;return{source:o,context:Jt.default,targets:t,get isBound(){return n},addBehaviorFactory(i,s){var c,h,d,l;const p=i;p.id=(c=p.id)!==null&&c!==void 0?c:So(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:So(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:Nt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(i,s){t[i]=s},addBehavior(i){e.push(i),n&&i.bind(this)},onUnbind(i){r===null&&(r=[]),r.push(i)},connectedCallback(i){n||(n=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(i){n&&(n=!1,r!==null&&r.forEach(s=>s.unbind(this)))}}}});const pp={bubbles:!0,composed:!0,cancelable:!0},Tr="isConnected",Qs=new WeakMap;function Po(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;var ee;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(ee||(ee={}));class We extends ps{get isConnected(){return m.track(this,Tr),this.stage===ee.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Jt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Qs.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=ee.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=m.getAccessors(e);if(r.length>0){const n=this.boundObservables=Object.create(null);for(let i=0,s=r.length;i<s;++i){const c=r[i].name,h=e[c];h!==void 0&&(delete e[c],n[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const n=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,i=(r=n.get(e))!==null&&r!==void 0?r:0;i===0?(n.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===ee.connected||this.stage===ee.connecting)&&e.connectedCallback(this)):n.set(e,i+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const n=r.get(e);n!==void 0&&(n===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==ee.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,n-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Po(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const n=e.behaviors;if(e.addStylesTo(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.addBehavior(n[i])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Po(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const n=e.behaviors;if(e.removeStylesFrom(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.removeBehavior(n[i])}}connect(){this.stage===ee.disconnected&&(this.stage=ee.connecting,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=ee.connected,m.notify(this,Tr))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let n=0,i=r.length;n<i;++n){const s=r[n];e[s]=t[s]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===ee.connected&&(this.stage=ee.disconnecting,m.notify(this,Tr),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=ee.disconnected)}onAttributeChangedCallback(e,t,r){const n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===ee.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},pp),r))):!1}renderTemplate(e){var t;const r=this.source,n=(t=Po(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let i=n.firstChild;i!==null;i=n.firstChild)n.removeChild(i)}e&&(this.view=e.render(r,n,r),this.view.sourceLifetime=yr.coupled)}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const n=ge.getForInstance(e);if(n===void 0)throw U.error(Ge.missingElementDefinition);return m.getNotifier(n).subscribe({handleChange:()=>{We.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(n).subscribe({handleChange:()=>{We.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Zs(e,n)}static setStrategy(e){Zs=e}}It(We),We.setStrategy(We);function Ar(o){var e;return"adoptedStyleSheets"in o?o:(e=Po(o))!==null&&e!==void 0?e:o.getRootNode()}class Bn{constructor(e){const t=Bn.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let n=t.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),t.set(r,n)),n})}addStylesTo(e){ta(Ar(e),this.sheets)}removeStylesFrom(e){oa(Ar(e),this.sheets)}}Bn.styleSheetCache=new Map;let gp=0;const fp=()=>`fast-${++gp}`;function ea(o){return o===document?document.body:o}class bp{constructor(e){this.styles=e,this.styleClass=fp()}addStylesTo(e){e=ea(Ar(e));const t=this.styles,r=this.styleClass;for(let n=0;n<t.length;n++){const i=document.createElement("style");i.innerHTML=t[n],i.className=r,e.append(i)}}removeStylesFrom(e){e=ea(Ar(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,n=t.length;r<n;++r)e.removeChild(t[r])}}let ta=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},oa=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ta=(o,e)=>{o.adoptedStyleSheets.push(...e)},oa=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}we.setDefaultStrategy(Bn)}else we.setDefaultStrategy(bp);const Rn="needs-hydration";class C extends We{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===lp.deferAndHydrate&&(this.source.toggleAttribute(Cr,!0),this.source.toggleAttribute(Rn,!0))}addHydratingInstance(){if(!C.hydratingInstances)return;const e=this.definition.name;let t=C.hydratingInstances.get(e);t||(t=new Set,C.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return C.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Cr)||(C.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,r,n;if(e.didTimeout){C.idleCallbackId=requestIdleCallback(C.checkHydrationComplete,{timeout:50});return}if(((t=C.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(n=(r=C.lifecycleCallbacks).hydrationComplete)===null||n===void 0||n.call(r)}catch{}We.setStrategy(We)}}connect(){var e,t,r,n,i,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(Rn),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Cr)){this.addHydratingInstance(),C.hydrationObserver.observe(this.source,{attributeFilter:[Cr]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===ee.disconnected){if(!C.hydrationStarted){C.hydrationStarted=!0;try{(r=(t=C.lifecycleCallbacks).hydrationStarted)===null||r===void 0||r.call(t)}catch{}}try{(i=(n=C.lifecycleCallbacks).elementWillHydrate)===null||i===void 0||i.call(n,this.source)}catch{}if(this.stage=ee.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Br(this.template)){const h=this.source,d=(s=Po(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Te.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Te.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=ee.connected,this.source.removeAttribute(Rn),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Tr)}}removeHydratingInstance(){var e,t;if(!C.hydratingInstances)return;try{(t=(e=C.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const r=this.definition.name,n=C.hydratingInstances.get(r);n&&(n.delete(this.source),n.size||C.hydratingInstances.delete(r),C.idleCallbackId&&cancelIdleCallback(C.idleCallbackId),C.idleCallbackId=requestIdleCallback(C.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),C.hydrationObserver.unobserve(this.source)}static install(){We.setStrategy(C)}}C.hydrationObserver=new up(C.hydrationObserverHandler),C.lifecycleCallbacks={},C.hydrationStarted=!1,C.idleCallbackId=null,C.hydratingInstances=new Map;function ra(o){const e=class extends o{constructor(){super(),We.forCustomElement(this)}$emit(t,r,n){return this.$fastController.emit(t,r,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,n){this.$fastController.onAttributeChangedCallback(t,r,n)}};return ge.registerBaseType(e),e}function mp(o,e){return Pt(o)?ge.compose(o,e):ge.compose(this,o)}function vp(o,e){return Pt(o)?new Promise(t=>{ge.composeAsync(o,e).then(r=>{t(r)})}).then(t=>t.define().type):new Promise(t=>{ge.composeAsync(this,o).then(r=>{t(r)})}).then(t=>t.define().type)}function $p(o,e){return Pt(o)?ge.compose(o,e).define().type:ge.compose(this,o).define().type}function yp(o){return ra(o)}const x=Object.assign(ra(HTMLElement),{from:yp,define:$p,compose:mp,defineAsync:vp});function fe(o){return o?typeof o=="string"?new Tt(o):"inline"in o?o.inline():o:Tt.empty}class nt{}function it(o){return b`<slot name=end ${A("end")}>${fe(o.end)}</slot>`.inline()}function He(o){return b`<slot name=start ${A("start")}>${fe(o.start)}</slot>`.inline()}function ct(o,...e){const t=Nr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(o.prototype,i,Object.getOwnPropertyDescriptor(r.prototype,i))}),Nr.locate(r).forEach(i=>t.push(i))})}var kp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var n=r>1?void 0:r?xp(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kp(e,t,n),n};class eo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}zr([a({attribute:"heading-level",mode:"fromView",converter:ae})],eo.prototype,"headinglevel",2),zr([a({mode:"boolean"})],eo.prototype,"expanded",2),zr([a({mode:"boolean"})],eo.prototype,"disabled",2),zr([f],eo.prototype,"expandbutton",2);var wp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,jn=(o,e,t,r)=>{for(var n=r>1?void 0:r?Sp(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&wp(e,t,n),n};class to extends eo{constructor(){super(...arguments),this.block=!1}}jn([a],to.prototype,"size",2),jn([a({attribute:"marker-position"})],to.prototype,"markerPosition",2),jn([a({mode:"boolean"})],to.prototype,"block",2),ct(to,nt);const Bp=":host([hidden]){display:none}";function w(o){return`${Bp}:host{display:${o}}`}const T="var(--colorNeutralForeground1)",qn="var(--colorNeutralForeground1Hover)",na="var(--colorNeutralForeground1Pressed)",Cp="var(--colorNeutralForeground1Selected)",Ae="var(--colorNeutralForeground2)",At="var(--colorNeutralForeground2Hover)",zt="var(--colorNeutralForeground2Pressed)",Io="var(--colorNeutralForeground2Selected)",No="var(--colorNeutralForeground2BrandHover)",To="var(--colorNeutralForeground2BrandPressed)",ia="var(--colorNeutralForeground2BrandSelected)",Y="var(--colorNeutralForeground3)",sa="var(--colorNeutralForeground3Hover)",aa="var(--colorNeutralForeground3Pressed)",la="var(--colorNeutralForeground3Selected)",Pp="var(--colorNeutralForeground3BrandHover)",Ip="var(--colorNeutralForeground3BrandPressed)",Np="var(--colorNeutralForeground3BrandSelected)",_r="var(--colorNeutralForeground4)",Tp="var(--colorNeutralForeground5)",Ap="var(--colorNeutralForeground5Hover)",zp="var(--colorNeutralForeground5Pressed)",_p="var(--colorNeutralForeground5Selected)",z="var(--colorNeutralForegroundDisabled)",ca="var(--colorBrandForegroundLink)",da="var(--colorBrandForegroundLinkHover)",ha="var(--colorBrandForegroundLinkPressed)",Op="var(--colorBrandForegroundLinkSelected)",ua="var(--colorNeutralForeground2Link)",pa="var(--colorNeutralForeground2LinkHover)",ga="var(--colorNeutralForeground2LinkPressed)",Fp="var(--colorNeutralForeground2LinkSelected)",Ep="var(--colorCompoundBrandForeground1)",fa="var(--colorCompoundBrandForeground1Hover)",ba="var(--colorCompoundBrandForeground1Pressed)",Ke="var(--colorNeutralForegroundOnBrand)",dt="var(--colorNeutralForegroundInverted)",ma="var(--colorNeutralForegroundInvertedHover)",va="var(--colorNeutralForegroundInvertedPressed)",Dp="var(--colorNeutralForegroundInvertedSelected)",Lp="var(--colorNeutralForegroundInverted2)",Wn="var(--colorNeutralForegroundStaticInverted)",Mp="var(--colorNeutralForegroundInvertedLink)",Hp="var(--colorNeutralForegroundInvertedLinkHover)",Vp="var(--colorNeutralForegroundInvertedLinkPressed)",Rp="var(--colorNeutralForegroundInvertedLinkSelected)",jp="var(--colorNeutralForegroundInvertedDisabled)",Ao="var(--colorBrandForeground1)",$a="var(--colorBrandForeground2)",qp="var(--colorBrandForeground2Hover)",Wp="var(--colorBrandForeground2Pressed)",ya="var(--colorNeutralForeground1Static)",Gp="var(--colorBrandForegroundInverted)",Xp="var(--colorBrandForegroundInvertedHover)",Up="var(--colorBrandForegroundInvertedPressed)",Kp="var(--colorBrandForegroundOnLight)",Yp="var(--colorBrandForegroundOnLightHover)",Jp="var(--colorBrandForegroundOnLightPressed)",Qp="var(--colorBrandForegroundOnLightSelected)",P="var(--colorNeutralBackground1)",zo="var(--colorNeutralBackground1Hover)",Or="var(--colorNeutralBackground1Pressed)",Gn="var(--colorNeutralBackground1Selected)",Zp="var(--colorNeutralBackground2)",eg="var(--colorNeutralBackground2Hover)",tg="var(--colorNeutralBackground2Pressed)",og="var(--colorNeutralBackground2Selected)",oo="var(--colorNeutralBackground3)",rg="var(--colorNeutralBackground3Hover)",ng="var(--colorNeutralBackground3Pressed)",ig="var(--colorNeutralBackground3Selected)",ka="var(--colorNeutralBackground4)",sg="var(--colorNeutralBackground4Hover)",ag="var(--colorNeutralBackground4Pressed)",lg="var(--colorNeutralBackground4Selected)",xa="var(--colorNeutralBackground5)",cg="var(--colorNeutralBackground5Hover)",dg="var(--colorNeutralBackground5Pressed)",hg="var(--colorNeutralBackground5Selected)",ro="var(--colorNeutralBackground6)",ug="var(--colorNeutralBackground7)",pg="var(--colorNeutralBackground7Hover)",gg="var(--colorNeutralBackground7Pressed)",fg="var(--colorNeutralBackground7Selected)",bg="var(--colorNeutralBackground8)",Xn="var(--colorNeutralBackgroundInverted)",mg="var(--colorNeutralBackgroundInvertedHover)",vg="var(--colorNeutralBackgroundInvertedPressed)",$g="var(--colorNeutralBackgroundInvertedSelected)",yg="var(--colorNeutralBackgroundStatic)",kg="var(--colorNeutralBackgroundAlpha)",xg="var(--colorNeutralBackgroundAlpha2)",Un="var(--colorSubtleBackground)",_o="var(--colorSubtleBackgroundHover)",no="var(--colorSubtleBackgroundPressed)",Kn="var(--colorSubtleBackgroundSelected)",wa="var(--colorSubtleBackgroundLightAlphaHover)",Sa="var(--colorSubtleBackgroundLightAlphaPressed)",Ba="var(--colorSubtleBackgroundLightAlphaSelected)",wg="var(--colorSubtleBackgroundInverted)",Sg="var(--colorSubtleBackgroundInvertedHover)",Bg="var(--colorSubtleBackgroundInvertedPressed)",Cg="var(--colorSubtleBackgroundInvertedSelected)",ce="var(--colorTransparentBackground)",Oo="var(--colorTransparentBackgroundHover)",Fo="var(--colorTransparentBackgroundPressed)",Yn="var(--colorTransparentBackgroundSelected)",st="var(--colorNeutralBackgroundDisabled)",Pg="var(--colorNeutralBackgroundDisabled2)",Ig="var(--colorNeutralBackgroundInvertedDisabled)",Ng="var(--colorNeutralStencil1)",Tg="var(--colorNeutralStencil2)",Ag="var(--colorNeutralStencil1Alpha)",zg="var(--colorNeutralStencil2Alpha)",Fr="var(--colorBackgroundOverlay)",_g="var(--colorScrollbarOverlay)",Jn="var(--colorBrandBackground)",Qn="var(--colorBrandBackgroundHover)",Zn="var(--colorBrandBackgroundPressed)",Ca="var(--colorBrandBackgroundSelected)",ht="var(--colorCompoundBrandBackground)",_t="var(--colorCompoundBrandBackgroundHover)",Ot="var(--colorCompoundBrandBackgroundPressed)",ei="var(--colorBrandBackgroundStatic)",ti="var(--colorBrandBackground2)",Og="var(--colorBrandBackground2Hover)",Fg="var(--colorBrandBackground2Pressed)",Eg="var(--colorBrandBackground3Static)",Dg="var(--colorBrandBackground4Static)",Lg="var(--colorBrandBackgroundInverted)",Mg="var(--colorBrandBackgroundInvertedHover)",Hg="var(--colorBrandBackgroundInvertedPressed)",Vg="var(--colorBrandBackgroundInvertedSelected)",Rg="var(--colorNeutralCardBackground)",jg="var(--colorNeutralCardBackgroundHover)",qg="var(--colorNeutralCardBackgroundPressed)",Wg="var(--colorNeutralCardBackgroundSelected)",Gg="var(--colorNeutralCardBackgroundDisabled)",Ve="var(--colorNeutralStrokeAccessible)",ut="var(--colorNeutralStrokeAccessibleHover)",pt="var(--colorNeutralStrokeAccessiblePressed)",Xg="var(--colorNeutralStrokeAccessibleSelected)",Re="var(--colorNeutralStroke1)",gt="var(--colorNeutralStroke1Hover)",io="var(--colorNeutralStroke1Pressed)",Ug="var(--colorNeutralStroke1Selected)",so="var(--colorNeutralStroke2)",Pa="var(--colorNeutralStroke3)",Kg="var(--colorNeutralStroke4)",Yg="var(--colorNeutralStroke4Hover)",Jg="var(--colorNeutralStroke4Pressed)",Qg="var(--colorNeutralStroke4Selected)",Zg="var(--colorNeutralStrokeSubtle)",ef="var(--colorNeutralStrokeOnBrand)",Ia="var(--colorNeutralStrokeOnBrand2)",tf="var(--colorNeutralStrokeOnBrand2Hover)",of="var(--colorNeutralStrokeOnBrand2Pressed)",rf="var(--colorNeutralStrokeOnBrand2Selected)",oi="var(--colorBrandStroke1)",ri="var(--colorBrandStroke2)",nf="var(--colorBrandStroke2Hover)",sf="var(--colorBrandStroke2Pressed)",af="var(--colorBrandStroke2Contrast)",at="var(--colorCompoundBrandStroke)",Na="var(--colorCompoundBrandStrokeHover)",ni="var(--colorCompoundBrandStrokePressed)",be="var(--colorNeutralStrokeDisabled)",lf="var(--colorNeutralStrokeDisabled2)",cf="var(--colorNeutralStrokeInvertedDisabled)",X="var(--colorTransparentStroke)",Er="var(--colorTransparentStrokeInteractive)",df="var(--colorTransparentStrokeDisabled)",hf="var(--colorNeutralStrokeAlpha)",uf="var(--colorNeutralStrokeAlpha2)",Eo="var(--colorStrokeFocus1)",de="var(--colorStrokeFocus2)",Ta="var(--colorNeutralShadowAmbient)",Aa="var(--colorNeutralShadowKey)",pf="var(--colorNeutralShadowAmbientLighter)",gf="var(--colorNeutralShadowKeyLighter)",ff="var(--colorNeutralShadowAmbientDarker)",bf="var(--colorNeutralShadowKeyDarker)",mf="var(--colorBrandShadowAmbient)",vf="var(--colorBrandShadowKey)",ii="var(--colorPaletteRedBackground1)",za="var(--colorPaletteRedBackground2)",si="var(--colorPaletteRedBackground3)",$f="var(--colorPaletteRedBorderActive)",ai="var(--colorPaletteRedBorder1)",Dr="var(--colorPaletteRedBorder2)",Lr="var(--colorPaletteRedForeground1)",_a="var(--colorPaletteRedForeground2)",li="var(--colorPaletteRedForeground3)",yf="var(--colorPaletteRedForegroundInverted)",ci="var(--colorPaletteGreenBackground1)",kf="var(--colorPaletteGreenBackground2)",di="var(--colorPaletteGreenBackground3)",xf="var(--colorPaletteGreenBorderActive)",Oa="var(--colorPaletteGreenBorder1)",Fa="var(--colorPaletteGreenBorder2)",Ea="var(--colorPaletteGreenForeground1)",Da="var(--colorPaletteGreenForeground2)",La="var(--colorPaletteGreenForeground3)",wf="var(--colorPaletteGreenForegroundInverted)",hi="var(--colorPaletteDarkOrangeBackground1)",Sf="var(--colorPaletteDarkOrangeBackground2)",ui="var(--colorPaletteDarkOrangeBackground3)",Bf="var(--colorPaletteDarkOrangeBorderActive)",pi="var(--colorPaletteDarkOrangeBorder1)",Cf="var(--colorPaletteDarkOrangeBorder2)",Ma="var(--colorPaletteDarkOrangeForeground1)",Pf="var(--colorPaletteDarkOrangeForeground2)",gi="var(--colorPaletteDarkOrangeForeground3)",Ha="var(--colorPaletteYellowBackground1)",If="var(--colorPaletteYellowBackground2)",Va="var(--colorPaletteYellowBackground3)",Nf="var(--colorPaletteYellowBorderActive)",Ra="var(--colorPaletteYellowBorder1)",Tf="var(--colorPaletteYellowBorder2)",Af="var(--colorPaletteYellowForeground1)",Mr="var(--colorPaletteYellowForeground2)",zf="var(--colorPaletteYellowForeground3)",_f="var(--colorPaletteYellowForegroundInverted)",Of="var(--colorPaletteBerryBackground1)",Ff="var(--colorPaletteBerryBackground2)",Ef="var(--colorPaletteBerryBackground3)",Df="var(--colorPaletteBerryBorderActive)",Lf="var(--colorPaletteBerryBorder1)",Mf="var(--colorPaletteBerryBorder2)",Hf="var(--colorPaletteBerryForeground1)",Vf="var(--colorPaletteBerryForeground2)",Rf="var(--colorPaletteBerryForeground3)",jf="var(--colorPaletteMarigoldBackground1)",fi="var(--colorPaletteMarigoldBackground2)",qf="var(--colorPaletteMarigoldBackground3)",ja="var(--colorPaletteMarigoldBorderActive)",Wf="var(--colorPaletteMarigoldBorder1)",Gf="var(--colorPaletteMarigoldBorder2)",Xf="var(--colorPaletteMarigoldForeground1)",qa="var(--colorPaletteMarigoldForeground2)",Uf="var(--colorPaletteMarigoldForeground3)",Kf="var(--colorPaletteLightGreenBackground1)",Yf="var(--colorPaletteLightGreenBackground2)",Jf="var(--colorPaletteLightGreenBackground3)",Qf="var(--colorPaletteLightGreenBorderActive)",Zf="var(--colorPaletteLightGreenBorder1)",eb="var(--colorPaletteLightGreenBorder2)",tb="var(--colorPaletteLightGreenForeground1)",ob="var(--colorPaletteLightGreenForeground2)",rb="var(--colorPaletteLightGreenForeground3)",Wa="var(--colorPaletteAnchorBackground2)",nb="var(--colorPaletteAnchorBorderActive)",Ga="var(--colorPaletteAnchorForeground2)",Xa="var(--colorPaletteBeigeBackground2)",ib="var(--colorPaletteBeigeBorderActive)",Ua="var(--colorPaletteBeigeForeground2)",Ka="var(--colorPaletteBlueBackground2)",sb="var(--colorPaletteBlueBorderActive)",Ya="var(--colorPaletteBlueForeground2)",Ja="var(--colorPaletteBrassBackground2)",ab="var(--colorPaletteBrassBorderActive)",Qa="var(--colorPaletteBrassForeground2)",Za="var(--colorPaletteBrownBackground2)",lb="var(--colorPaletteBrownBorderActive)",el="var(--colorPaletteBrownForeground2)",tl="var(--colorPaletteCornflowerBackground2)",cb="var(--colorPaletteCornflowerBorderActive)",ol="var(--colorPaletteCornflowerForeground2)",rl="var(--colorPaletteCranberryBackground2)",db="var(--colorPaletteCranberryBorderActive)",nl="var(--colorPaletteCranberryForeground2)",il="var(--colorPaletteDarkGreenBackground2)",hb="var(--colorPaletteDarkGreenBorderActive)",sl="var(--colorPaletteDarkGreenForeground2)",al="var(--colorPaletteDarkRedBackground2)",ub="var(--colorPaletteDarkRedBorderActive)",ll="var(--colorPaletteDarkRedForeground2)",cl="var(--colorPaletteForestBackground2)",pb="var(--colorPaletteForestBorderActive)",dl="var(--colorPaletteForestForeground2)",hl="var(--colorPaletteGoldBackground2)",gb="var(--colorPaletteGoldBorderActive)",ul="var(--colorPaletteGoldForeground2)",pl="var(--colorPaletteGrapeBackground2)",fb="var(--colorPaletteGrapeBorderActive)",gl="var(--colorPaletteGrapeForeground2)",fl="var(--colorPaletteLavenderBackground2)",bb="var(--colorPaletteLavenderBorderActive)",bl="var(--colorPaletteLavenderForeground2)",ml="var(--colorPaletteLightTealBackground2)",mb="var(--colorPaletteLightTealBorderActive)",vl="var(--colorPaletteLightTealForeground2)",$l="var(--colorPaletteLilacBackground2)",vb="var(--colorPaletteLilacBorderActive)",yl="var(--colorPaletteLilacForeground2)",kl="var(--colorPaletteMagentaBackground2)",$b="var(--colorPaletteMagentaBorderActive)",xl="var(--colorPaletteMagentaForeground2)",wl="var(--colorPaletteMinkBackground2)",yb="var(--colorPaletteMinkBorderActive)",Sl="var(--colorPaletteMinkForeground2)",Bl="var(--colorPaletteNavyBackground2)",kb="var(--colorPaletteNavyBorderActive)",Cl="var(--colorPaletteNavyForeground2)",Pl="var(--colorPalettePeachBackground2)",xb="var(--colorPalettePeachBorderActive)",Il="var(--colorPalettePeachForeground2)",Nl="var(--colorPalettePinkBackground2)",wb="var(--colorPalettePinkBorderActive)",Tl="var(--colorPalettePinkForeground2)",Al="var(--colorPalettePlatinumBackground2)",Sb="var(--colorPalettePlatinumBorderActive)",zl="var(--colorPalettePlatinumForeground2)",_l="var(--colorPalettePlumBackground2)",Bb="var(--colorPalettePlumBorderActive)",Ol="var(--colorPalettePlumForeground2)",Fl="var(--colorPalettePumpkinBackground2)",Cb="var(--colorPalettePumpkinBorderActive)",El="var(--colorPalettePumpkinForeground2)",Dl="var(--colorPalettePurpleBackground2)",Pb="var(--colorPalettePurpleBorderActive)",Ll="var(--colorPalettePurpleForeground2)",Ml="var(--colorPaletteRoyalBlueBackground2)",Ib="var(--colorPaletteRoyalBlueBorderActive)",Hl="var(--colorPaletteRoyalBlueForeground2)",Vl="var(--colorPaletteSeafoamBackground2)",Nb="var(--colorPaletteSeafoamBorderActive)",Rl="var(--colorPaletteSeafoamForeground2)",jl="var(--colorPaletteSteelBackground2)",Tb="var(--colorPaletteSteelBorderActive)",ql="var(--colorPaletteSteelForeground2)",Wl="var(--colorPaletteTealBackground2)",Ab="var(--colorPaletteTealBorderActive)",Gl="var(--colorPaletteTealForeground2)",zb="var(--colorStatusSuccessBackground1)",_b="var(--colorStatusSuccessBackground2)",Ob="var(--colorStatusSuccessBackground3)",Fb="var(--colorStatusSuccessForeground1)",Eb="var(--colorStatusSuccessForeground2)",Db="var(--colorStatusSuccessForeground3)",Lb="var(--colorStatusSuccessForegroundInverted)",Mb="var(--colorStatusSuccessBorderActive)",Hb="var(--colorStatusSuccessBorder1)",Vb="var(--colorStatusSuccessBorder2)",Rb="var(--colorStatusWarningBackground1)",jb="var(--colorStatusWarningBackground2)",qb="var(--colorStatusWarningBackground3)",Wb="var(--colorStatusWarningForeground1)",Gb="var(--colorStatusWarningForeground2)",Xb="var(--colorStatusWarningForeground3)",Ub="var(--colorStatusWarningForegroundInverted)",Kb="var(--colorStatusWarningBorderActive)",Yb="var(--colorStatusWarningBorder1)",Jb="var(--colorStatusWarningBorder2)",Qb="var(--colorStatusDangerBackground1)",Zb="var(--colorStatusDangerBackground2)",em="var(--colorStatusDangerBackground3)",tm="var(--colorStatusDangerBackground3Hover)",om="var(--colorStatusDangerBackground3Pressed)",rm="var(--colorStatusDangerForeground1)",nm="var(--colorStatusDangerForeground2)",im="var(--colorStatusDangerForeground3)",sm="var(--colorStatusDangerForegroundInverted)",am="var(--colorStatusDangerBorderActive)",lm="var(--colorStatusDangerBorder1)",cm="var(--colorStatusDangerBorder2)",Do="var(--borderRadiusNone)",ze="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",bi="var(--borderRadiusLarge)",mi="var(--borderRadiusXLarge)",dm="var(--borderRadius2XLarge)",hm="var(--borderRadius3XLarge)",um="var(--borderRadius4XLarge)",pm="var(--borderRadius5XLarge)",gm="var(--borderRadius6XLarge)",he="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Xl="var(--fontFamilyMonospace)",Ul="var(--fontFamilyNumeric)",ao="var(--fontSizeBase100)",D="var(--fontSizeBase200)",O="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Ft="var(--fontSizeBase500)",Lo="var(--fontSizeBase600)",vi="var(--fontSizeHero700)",$i="var(--fontSizeHero800)",yi="var(--fontSizeHero900)",ki="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",Kl="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",Mo="var(--fontWeightBold)",Ho="var(--lineHeightBase100)",j="var(--lineHeightBase200)",L="var(--lineHeightBase300)",me="var(--lineHeightBase400)",Vo="var(--lineHeightBase500)",xi="var(--lineHeightBase600)",wi="var(--lineHeightHero700)",Si="var(--lineHeightHero800)",Bi="var(--lineHeightHero900)",Ci="var(--lineHeightHero1000)",Hr="var(--shadow2)",Ro="var(--shadow4)",Yl="var(--shadow8)",Vr="var(--shadow16)",Jl="var(--shadow28)",Pi="var(--shadow64)",fm="var(--shadow2Brand)",bm="var(--shadow4Brand)",mm="var(--shadow8Brand)",vm="var(--shadow16Brand)",$m="var(--shadow28Brand)",ym="var(--shadow64Brand)",I="var(--strokeWidthThin)",pe="var(--strokeWidthThick)",Be="var(--strokeWidthThicker)",Rr="var(--strokeWidthThickest)",km="var(--spacingHorizontalNone)",V="var(--spacingHorizontalXXS)",te="var(--spacingHorizontalXS)",ve="var(--spacingHorizontalSNudge)",_e="var(--spacingHorizontalS)",Ye="var(--spacingHorizontalMNudge)",oe="var(--spacingHorizontalM)",Ql="var(--spacingHorizontalL)",Zl="var(--spacingHorizontalXL)",jr="var(--spacingHorizontalXXL)",xm="var(--spacingHorizontalXXXL)",qr="var(--spacingVerticalNone)",jo="var(--spacingVerticalXXS)",Et="var(--spacingVerticalXS)",lo="var(--spacingVerticalSNudge)",re="var(--spacingVerticalS)",qo="var(--spacingVerticalMNudge)",ec="var(--spacingVerticalM)",Wr="var(--spacingVerticalL)",wm="var(--spacingVerticalXL)",ft="var(--spacingVerticalXXL)",tc="var(--spacingVerticalXXXL)",Gr="var(--durationUltraFast)",Wo="var(--durationFaster)",Sm="var(--durationFast)",Go="var(--durationNormal)",Xr="var(--durationGentle)",oc="var(--durationSlow)",Ii="var(--durationSlower)",Xo="var(--durationUltraSlow)",rc="var(--curveAccelerateMax)",bt="var(--curveAccelerateMid)",nc="var(--curveAccelerateMin)",Ni="var(--curveDecelerateMax)",mt="var(--curveDecelerateMid)",ic="var(--curveDecelerateMin)",Ti="var(--curveEasyEaseMax)",Uo="var(--curveEasyEase)",Ur="var(--curveLinear)",Bm="var(--zIndexBackground)",Cm="var(--zIndexContent)",Pm="var(--zIndexOverlay)",Im="var(--zIndexPopup)",Nm="var(--zIndexMessages)",Tm="var(--zIndexFloating)",Am="var(--zIndexPriority)",zm="var(--zIndexDebug)",sc=g`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${oe} ${Ye};border-radius:${B};font-family:${v};font-size:${O};font-weight:${F};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ce};border:none;box-sizing:border-box;color:${T};cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${_e};grid-column:1/span 1;grid-row:1}.content{margin:0 ${oe}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${_e};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze};outline:none;border:2px solid ${Eo};box-shadow:inset 0 0 0 1px ${de}}:host([disabled]) .button{color:${z}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${O};line-height:${L}}:host([size='small']) .heading{font-size:${D};line-height:${j}}:host([size='large']) .heading{font-size:${ue};line-height:${me}}:host([size='extra-large']) .heading{font-size:${Ft};line-height:${Vo}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${_e};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${oe}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Ye} ${oe}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`,_m=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),Om=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Fm(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${A("expandbutton")}><slot name=heading></slot></button> ${He(o)}<slot name=marker-expanded>${fe(o.expandedIcon)}</slot><slot name=marker-collapsed>${fe(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const ac=Fm({collapsedIcon:_m,expandedIcon:Om}),lc=to.compose({name:Au,template:ac,styles:sc});lc.define(u.registry);const Kr={single:"single",multi:"multi"},Em=`${u.prefix}-accordion`;function cc(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Ko(o,e,t){const r=t?.shallow??!1,n=t?.timeout??50,i=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){i?cc(e,{timeout:n}):e();return}cc(c,{timeout:n})};c()}var Dm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,dc=(o,e,t,r)=>{for(var n=r>1?void 0:r?Lm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Dm(e,t,n),n};class Yr extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Ko(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Cn(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===Kr.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Cn(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Kr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,n)=>{Cn(r)&&(this.activeItemIndex===n?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Kr.multi,this.setItems()}}dc([a({attribute:"expand-mode"})],Yr.prototype,"expandmode",2),dc([f],Yr.prototype,"slottedAccordionItems",2);const hc=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Mm(){return b`<template><slot ${K({property:"slottedAccordionItems",filter:Bo()})}></slot></template>`}const uc=Mm(),pc=Yr.compose({name:Em,template:uc,styles:hc});pc.define(u.registry);const Yo={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Jo={circular:"circular",rounded:"rounded",square:"square"},Qo={small:"small",medium:"medium",large:"large"},Zo={submit:"submit",reset:"reset",button:"button"},Hm={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},Vm=`${u.prefix}-button`,gc=Yo,fc=Jo,bc=Qo,mc={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},Rm={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},jm=`${u.prefix}-anchor-button`,Jr=CSS.supports("anchor-name: --a"),qm="anchor"in HTMLElement.prototype,vc=CSS.supports("selector(:state(g))"),$c=new Map;function N(o){return $c.get(o)??$c.set(o,vc?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!vc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Ai=new WeakMap;function yc(o,e){if(!o||!e)return!1;if(Ai.has(o))return Ai.get(o).has(e);const t=new Set(Object.values(o));return Ai.set(o,t),t.has(e)}function Dt(o,e="",t="",r,n=""){$(o,`${n}${e}`,!1),(!r||yc(r,t))&&$(o,`${n}${t}`,!0)}var Wm=Object.defineProperty,Gm=Object.getOwnPropertyDescriptor,vt=(o,e,t,r)=>{for(var n=r>1?void 0:r?Gm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Wm(e,t,n),n};class je extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Rm){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}vt([a],je.prototype,"download",2),vt([a],je.prototype,"href",2),vt([a],je.prototype,"hreflang",2),vt([a],je.prototype,"ping",2),vt([a],je.prototype,"referrerpolicy",2),vt([a],je.prototype,"rel",2),vt([a],je.prototype,"target",2),vt([a],je.prototype,"type",2);var Xm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,Qr=(o,e,t,r)=>{for(var n=r>1?void 0:r?Um(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Xm(e,t,n),n};class Lt extends je{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Dt(this.elementInternals,e,t,gc)}shapeChanged(e,t){Dt(this.elementInternals,e,t,fc)}sizeChanged(e,t){Dt(this.elementInternals,e,t,bc)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Qr([a],Lt.prototype,"appearance",2),Qr([a],Lt.prototype,"shape",2),Qr([a],Lt.prototype,"size",2),Qr([a({attribute:"icon-only",mode:"boolean"})],Lt.prototype,"iconOnly",2),ct(Lt,nt);const kc=g`${w("inline-flex")} :host{--icon-spacing:${ve};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${T};border:${I} solid ${Re};padding:0 ${oe};min-width:96px;border-radius:${B};font-size:${O};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${Wo};transition-property:background,border,color;transition-timing-function:${Uo};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${zo};color:${qn};border-color:${gt}}:host(:hover:active){background-color:${Or};border-color:${io};color:${na};outline-style:none}:host(:focus-visible){border-color:${X};outline:${pe} solid ${X};box-shadow:${Ro},0 0 0 2px ${de}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${te};min-height:24px;min-width:64px;padding:0 ${_e};border-radius:${ze};font-size:${D};line-height:${j};font-weight:${F}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${bi};padding:0 ${Ql};font-size:${ue};line-height:${me}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${he}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${Do}}:host([appearance='primary']){background-color:${Jn};color:${Ke};border-color:transparent}:host([appearance='primary']:hover){background-color:${Qn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ke}}:host([appearance='primary']:hover:active){background-color:${Zn}}:host([appearance='primary']:focus-visible){border-color:${Ke};box-shadow:${Hr},0 0 0 2px ${de}}:host([appearance='outline']){background-color:${ce}}:host([appearance='outline']:hover){background-color:${Oo}}:host([appearance='outline']:hover:active){background-color:${Fo}}:host([appearance='subtle']){background-color:${Un};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${_o};color:${At};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${no};color:${zt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${No}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${To}}:host([appearance='transparent']){background-color:${ce};color:${Ae}}:host([appearance='transparent']:hover){background-color:${Oo};color:${No}}:host([appearance='transparent']:hover:active){background-color:${Fo};color:${To}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,co=g`${kc} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${st};border-color:${be};color:${z};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${ce}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Km=g`${kc} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Ym(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${He(o)} <span class=content part=content><slot></slot></span>${it(o)}</template>`}const xc=Ym(),wc=Lt.compose({name:jm,template:xc,styles:Km});wc.define(u.registry);const Jm={active:"active",inactive:"inactive"},Qm={circular:"circular",square:"square"},Zm={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},zi={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},_i={neutral:"neutral",brand:"brand",colorful:"colorful",...zi},ev={_16:16,_20:20,_24:24,_28:28,_32:32,_36:36,_40:40,_48:48,_56:56,_64:64,_72:72,_96:96,_120:120,_128:128},tv=`${u.prefix}-avatar`,ov=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,rv=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,nv=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,iv=/\s+/g,sv=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function av(o,e,t){let r="";const n=o.split(" ");return n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),t||(n.length===2?r+=n[1].charAt(0).toUpperCase():n.length===3&&(r+=n[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function lv(o){return o=o.replace(ov,""),o=o.replace(rv,""),o=o.replace(iv," "),o=o.trim(),o}function Sc(o,e,t){return!o||(o=lv(o),sv.test(o)||!t?.allowPhoneInitials&&nv.test(o))?"":av(o,e,t?.firstInitialOnly)}var cv=Object.defineProperty,dv=Object.getOwnPropertyDescriptor,er=(o,e,t,r)=>{for(var n=r>1?void 0:r?dv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&cv(e,t,n),n};class Mt extends x{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}E.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Sc(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}er([f],Mt.prototype,"defaultSlot",2),er([f],Mt.prototype,"monogram",2),er([f],Mt.prototype,"slottedDefaults",2),er([a],Mt.prototype,"name",2),er([a],Mt.prototype,"initials",2);var hv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,ho=(o,e,t,r)=>{for(var n=r>1?void 0:r?uv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&hv(e,t,n),n};const $t=class is extends Mt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||Sc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===_i.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?is.colors[pv(this.name??"")%is.colors.length]:this.color??_i.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};$t.colors=Object.values(zi),ho([a],$t.prototype,"active",2),ho([a],$t.prototype,"shape",2),ho([a],$t.prototype,"appearance",2),ho([a({converter:ae})],$t.prototype,"size",2),ho([a],$t.prototype,"color",2),ho([a({attribute:"color-id"})],$t.prototype,"colorId",2);let Bc=$t;const pv=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),n=t%8;e^=(r<<n)+(r>>8-n)}return e},yt={fastOutSlowInMax:Ni,fastOutSlowInMid:mt,fastOutSlowInMin:ic,slowOutFastInMax:rc,slowOutFastInMid:bt,slowOutFastInMin:nc,fastEase:Ti,normalEase:Uo,nullEasing:Ur},Cc=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${O};border-radius:${he};color:${Y};background-color:${ro};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${he}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${P}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${pe} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${ao};font-weight:${F}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${D}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Ft}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${Lo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${B}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ze}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${bi}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${mi}}:host([data-color='brand']){color:${Wn};background-color:${ei}}:host([data-color='dark-red']){color:${ll};background-color:${al}}:host([data-color='cranberry']){color:${nl};background-color:${rl}}:host([data-color='red']){color:${_a};background-color:${za}}:host([data-color='pumpkin']){color:${El};background-color:${Fl}}:host([data-color='peach']){color:${Il};background-color:${Pl}}:host([data-color='marigold']){color:${qa};background-color:${fi}}:host([data-color='gold']){color:${ul};background-color:${hl}}:host([data-color='brass']){color:${Qa};background-color:${Ja}}:host([data-color='brown']){color:${el};background-color:${Za}}:host([data-color='forest']){color:${dl};background-color:${cl}}:host([data-color='seafoam']){color:${Rl};background-color:${Vl}}:host([data-color='dark-green']){color:${sl};background-color:${il}}:host([data-color='light-teal']){color:${vl};background-color:${ml}}:host([data-color='teal']){color:${Gl};background-color:${Wl}}:host([data-color='steel']){color:${ql};background-color:${jl}}:host([data-color='blue']){color:${Ya};background-color:${Ka}}:host([data-color='royal-blue']){color:${Hl};background-color:${Ml}}:host([data-color='cornflower']){color:${ol};background-color:${tl}}:host([data-color='navy']){color:${Cl};background-color:${Bl}}:host([data-color='lavender']){color:${bl};background-color:${fl}}:host([data-color='purple']){color:${Ll};background-color:${Dl}}:host([data-color='grape']){color:${gl};background-color:${pl}}:host([data-color='lilac']){color:${yl};background-color:${$l}}:host([data-color='pink']){color:${Tl};background-color:${Nl}}:host([data-color='magenta']){color:${xl};background-color:${kl}}:host([data-color='plum']){color:${Ol};background-color:${_l}}:host([data-color='beige']){color:${Ua};background-color:${Xa}}:host([data-color='mink']){color:${Sl};background-color:${wl}}:host([data-color='platinum']){color:${zl};background-color:${Al}}:host([data-color='anchor']){color:${Ga};background-color:${Wa}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Xo},${Wo};transition-delay:${yt.fastEase},${yt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Xo},${Ii};transition-delay:${yt.fastEase},${yt.nullEasing}}:host([active])::before{box-shadow:${Yl};border-style:solid;border-color:${ei}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${pe});border-width:${pe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Be});border-width:${Be}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Rr});border-width:${Rr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Ro}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Vr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${Jl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Xo},${Wo};transition-delay:${yt.fastOutSlowInMin},${yt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Xo},${Ii};transition-delay:${yt.fastOutSlowInMin},${yt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,gv=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function fv(){return b`<slot class=default-slot ${K("slottedDefaults")} ${A("defaultSlot")}></slot><span class=monogram ${A("monogram")}>${o=>o.initials}</span> ${gv}<slot name=badge></slot>`}const Pc=fv(),Ic=Bc.compose({name:tv,template:Pc,styles:Cc});Ic.define(u.registry);const Nc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Tc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},bv={circular:"circular",rounded:"rounded",square:"square"},mv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},vv=`${u.prefix}-badge`;var $v=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,Zr=(o,e,t,r)=>{for(var n=r>1?void 0:r?yv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$v(e,t,n),n};class Ht extends x{constructor(){super(...arguments),this.appearance=Nc.filled,this.color=Tc.brand}}Zr([a],Ht.prototype,"appearance",2),Zr([a],Ht.prototype,"color",2),Zr([a],Ht.prototype,"shape",2),Zr([a],Ht.prototype,"size",2),ct(Ht,nt);const Ac=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${D};line-height:${j};min-width:20px;height:20px;padding-inline:calc(${te} + ${V});border-radius:${he};border-color:${X};background-color:${Jn};color:${Ke};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${I};border-color:inherit;border-radius:inherit}`,zc=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${ao};line-height:${Ho};padding-inline:calc(${V} + ${V})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${D};line-height:${j};padding-inline:calc(${te} + ${V})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${D};line-height:${j};padding-inline:calc(${ve} + ${V})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,_c=g.partial`:host([color='danger']){background-color:${si};color:${Ke}}:host([color='important']){background-color:${T};color:${P}}:host([color='informative']){background-color:${xa};color:${Y}}:host([color='severe']){background-color:${ui};color:${Ke}}:host([color='subtle']){background-color:${P};color:${T}}:host([color='success']){background-color:${di};color:${Ke}}:host([color='warning']){background-color:${Va};color:${ya}}`,Oc=g.partial`:host([appearance='ghost']){color:${Ao};background-color:initial}:host([appearance='ghost'][color='danger']){color:${li}}:host([appearance='ghost'][color='important']){color:${T}}:host([appearance='ghost'][color='informative']){color:${Y}}:host([appearance='ghost'][color='severe']){color:${gi}}:host([appearance='ghost'][color='subtle']){color:${dt}}:host([appearance='ghost'][color='success']){color:${La}}:host([appearance='ghost'][color='warning']){color:${Mr}}`,kv=g.partial`:host([appearance='outline']){border-color:currentColor;color:${Ao};background-color:initial}:host([appearance='outline'][color='danger']){color:${li}}:host([appearance='outline'][color='important']){color:${Y};border-color:${Ve}}:host([appearance='outline'][color='informative']){color:${Y};border-color:${so}}:host([appearance='outline'][color='severe']){color:${gi}}:host([appearance='outline'][color='subtle']){color:${Wn}}:host([appearance='outline'][color='success']){color:${Da}}:host([appearance='outline'][color='warning']){color:${Mr}}`,xv=g.partial`:host([appearance='tint']){background-color:${ti};color:${$a};border-color:${ri}}:host([appearance='tint'][color='danger']){background-color:${ii};color:${Lr};border-color:${ai}}:host([appearance='tint'][color='important']){background-color:${Y};color:${P};border-color:${X}}:host([appearance='tint'][color='informative']){background-color:${ka};color:${Y};border-color:${so}}:host([appearance='tint'][color='severe']){background-color:${hi};color:${Ma};border-color:${pi}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${Y};border-color:${so}}:host([appearance='tint'][color='success']){background-color:${ci};color:${Ea};border-color:${Fa}}:host([appearance='tint'][color='warning']){background-color:${Ha};color:${Mr};border-color:${Ra}}`,Fc=g`:host([shape='square']){border-radius:${Do}}:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${xv} ${kv} ${Oc} ${_c} ${zc} ${Ac} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function wv(o={}){return b`${He(o)}<slot>${fe(o.defaultContent)}</slot>${it(o)}`}const Ec=wv(),Dc=Ht.compose({name:vv,template:Ec,styles:Fc});Dc.define(u.registry);var Sv=Object.defineProperty,Bv=Object.getOwnPropertyDescriptor,Ce=(o,e,t,r)=>{for(var n=r>1?void 0:r?Bv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Sv(e,t,n),n};class le extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Zo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case Zo.reset:{this.resetForm();break}case Zo.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Zo.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}le.formAssociated=!0,Ce([a({mode:"boolean"})],le.prototype,"autofocus",2),Ce([f],le.prototype,"defaultSlottedContent",2),Ce([a({mode:"boolean"})],le.prototype,"disabled",2),Ce([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),Ce([a({attribute:"formaction"})],le.prototype,"formAction",2),Ce([a({attribute:"form"})],le.prototype,"formAttribute",2),Ce([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),Ce([a({attribute:"formmethod"})],le.prototype,"formMethod",2),Ce([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),Ce([a({attribute:"formtarget"})],le.prototype,"formTarget",2),Ce([a],le.prototype,"name",2),Ce([a],le.prototype,"type",2),Ce([a],le.prototype,"value",2);var Cv=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var n=r>1?void 0:r?Pv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cv(e,t,n),n};class Je extends le{constructor(){super(...arguments),this.iconOnly=!1}}en([a],Je.prototype,"appearance",2),en([a],Je.prototype,"shape",2),en([a],Je.prototype,"size",2),en([a({attribute:"icon-only",mode:"boolean"})],Je.prototype,"iconOnly",2),ct(Je,nt);function Oi(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${He(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot></span>${it(o)}</template>`}const Lc=Oi(),Mc=Je.compose({name:Vm,template:Lc,styles:co});Mc.define(u.registry);const Iv={circular:"circular",square:"square"},Nv={medium:"medium",large:"large"},Tv=`${u.prefix}-checkbox`;var Av=Object.defineProperty,zv=Object.getOwnPropertyDescriptor,kt=(o,e,t,r)=>{for(var n=r>1?void 0:r?zv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Av(e,t,n),n};class Pe extends x{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,kt([a({mode:"boolean"})],Pe.prototype,"autofocus",2),kt([f],Pe.prototype,"disabled",2),kt([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),kt([a({attribute:"form"})],Pe.prototype,"formAttribute",2),kt([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),kt([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),kt([a],Pe.prototype,"name",2),kt([a({mode:"boolean"})],Pe.prototype,"required",2);var _v=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,Fi=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ov(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_v(e,t,n),n};class tr extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Fi([f],tr.prototype,"indeterminate",2),Fi([a],tr.prototype,"shape",2),Fi([a],tr.prototype,"size",2);const Fv=N("active"),Ev=N("bad-input"),y=N("checked"),Dv=N("custom-error"),Lv=N("description"),$e=N("disabled");N("error");const Mv=N("flip-block"),Hv=N("focus-visible");N("has-message");const Vt=N("indeterminate"),uo=N("multiple"),Vv=N("open"),Rv=N("pattern-mismatch"),jv=N("placeholder-shown"),R=N("pressed"),qv=N("range-overflow"),Wv=N("range-underflow"),Gv=N("required"),Ei=N("selected"),Xv=N("step-mismatch"),tn=N("submenu"),Uv=N("too-long"),Kv=N("too-short"),Yv=N("type-mismatch"),Jv=N("user-invalid"),Qv=N("valid"),Zv=N("value-missing"),Hc=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${ze};border:${I} solid ${Ve};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ut}}:host(:active){border-color:${pt}}:host(${y}:hover){background-color:${_t};border-color:${Na}}:host(${y}:active){background-color:${Ot};border-color:${ni}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${X};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${de}}.indeterminate-indicator,.checked-indicator{color:${dt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Vt}){border-color:${at}}:host(${y}),:host(${Vt}) .indeterminate-indicator{background-color:${ht}}:host(${Vt}) .indeterminate-indicator{border-radius:${ze};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${he}}:host([disabled]),:host([disabled]${y}){background-color:${st};border-color:${be}}:host([disabled]){cursor:unset}:host([disabled]${Vt}) .indeterminate-indicator{background-color:${be}}:host([disabled]${y}) .checked-indicator{color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Vt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Vt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Vt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,e$=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),t$=b.partial("<span class=indeterminate-indicator></span>");function o$(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${fe(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${fe(o.indeterminateIndicator)}</slot></template>`}const Vc=o$({checkedIndicator:e$,indeterminateIndicator:t$}),Rc=tr.compose({name:Tv,template:Vc,styles:Hc});Rc.define(u.registry);const r$=Yo,n$=Jo,i$=Qo,s$=`${u.prefix}-compound-button`;class jc extends Je{}const qc=g`${co} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${D};font-weight:${F}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${At}}:host(:active) ::slotted([slot='description']){color:${zt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ke}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${No}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${To}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${z}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ve}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${te}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${_e}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function a$(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${He(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot><slot name=description></slot></span>${it(o)}</template>`}const Wc=a$(),Gc=jc.compose({name:s$,template:Wc,styles:qc});Gc.define(u.registry);const l$={filled:"filled",ghost:"ghost"},c$={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},d$={circular:"circular",rounded:"rounded"},h$={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Xc=`${u.prefix}-counter-badge`;var u$=Object.defineProperty,p$=Object.getOwnPropertyDescriptor,or=(o,e,t,r)=>{for(var n=r>1?void 0:r?p$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&u$(e,t,n),n};class Rt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}or([a({converter:ae})],Rt.prototype,"count",2),or([a({attribute:"overflow-count",converter:ae})],Rt.prototype,"overflowCount",2),or([a({attribute:"show-zero",mode:"boolean"})],Rt.prototype,"showZero",2),or([a({mode:"boolean"})],Rt.prototype,"dot",2),or([Se],Rt.prototype,"displayValue",1);var g$=Object.defineProperty,f$=Object.getOwnPropertyDescriptor,on=(o,e,t,r)=>{for(var n=r>1?void 0:r?f$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&g$(e,t,n),n};class jt extends Rt{}on([a],jt.prototype,"appearance",2),on([a],jt.prototype,"color",2),on([a],jt.prototype,"shape",2),on([a],jt.prototype,"size",2),ct(jt,nt);const Uc=g`:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${zc} ${_c} ${Oc} ${Ac} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function b$(o={}){return b`${He(o)} <span>${e=>e.displayValue}</span> ${it(o)}`}const Kc=b$(),Yc=jt.compose({name:Xc,template:Kc,styles:Uc});Yc.define(u.registry);const xt={modal:"modal",nonModal:"non-modal",alert:"alert"};function Di(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const m$=`${u.prefix}-dialog`;var v$=Object.defineProperty,$$=Object.getOwnPropertyDescriptor,Qe=(o,e,t,r)=>{for(var n=r>1?void 0:r?$$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&v$(e,t,n),n};class Oe extends x{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==xt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===xt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),E.enqueue(()=>{this.type=this.type??xt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){E.enqueue(()=>{this.emitBeforeToggle(),this.type===xt.alert||this.type===xt.modal?this.dialog.showModal():this.type===xt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==xt.alert&&e.target===this.dialog&&this.hide(),!0}}Qe([f],Oe.prototype,"dialog",2),Qe([a({attribute:"aria-describedby"})],Oe.prototype,"ariaDescribedby",2),Qe([a({attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledby",2),Qe([a({attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),Qe([a],Oe.prototype,"type",2),Qe([Se],Oe.prototype,"dialogDescribedby",1),Qe([Se],Oe.prototype,"dialogLabel",1),Qe([Se],Oe.prototype,"dialogLabelledby",1),Qe([Se],Oe.prototype,"dialogModal",1),Qe([Se],Oe.prototype,"dialogRole",1);const Jc=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${A("dialog")}><slot></slot></dialog>`,Qc=g`@layer base{:host{--dialog-backdrop:${Fr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${mi};border:none;box-shadow:${Pi};color:${T};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Xr};transition-timing-function:${mt};opacity:0}::backdrop{transition-timing-function:${Ur}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${bt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${X}}}}`,Zc=Oe.compose({name:m$,template:Jc,styles:Qc});Zc.define(u.registry);const y$=`${u.prefix}-dialog-body`;class ed extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Di(t)&&t.hide()}return!0}}const td=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,od=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${re};padding:${ft} ${jr};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${T};column-gap:8px;display:flex;font-family:${v};font-size:${Ft};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${Vo};margin-block-end:calc(${re} * -1);margin-block-start:calc(${ft} * -1);padding-block-end:${re};padding-block-start:${ft}}.content{box-sizing:border-box;color:${T};font-family:${v};font-size:${O};font-weight:${F};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${re};inset-block-end:0;margin-block-end:calc(${ft} * -1);padding-block-end:${ft};padding-block-start:${Wr}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${re} * -1);padding-block-start:${re}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,rd=ed.compose({name:y$,template:td,styles:od});rd.define(u.registry);const ye={horizontal:"horizontal",vertical:"vertical"},po={separator:"separator",presentation:"presentation"},Li=ye,k$={center:"center",start:"start",end:"end"},x$={strong:"strong",brand:"brand",subtle:"subtle"},w$=`${u.prefix}-divider`;var S$=Object.defineProperty,B$=Object.getOwnPropertyDescriptor,nd=(o,e,t,r)=>{for(var n=r>1?void 0:r?B$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&S$(e,t,n),n};class rn extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??po.separator,this.role!==po.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Li.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??po.separator}`),t===po.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==po.presentation?t??null:null,Dt(this.elementInternals,e,t,Li)}}nd([a],rn.prototype,"role",2),nd([a],rn.prototype,"orientation",2);var C$=Object.defineProperty,P$=Object.getOwnPropertyDescriptor,Mi=(o,e,t,r)=>{for(var n=r>1?void 0:r?P$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&C$(e,t,n),n};class rr extends rn{}Mi([a({attribute:"align-content"})],rr.prototype,"alignContent",2),Mi([a],rr.prototype,"appearance",2),Mi([a({mode:"boolean"})],rr.prototype,"inset",2);function I$(){return b`<slot></slot>`}const id=I$(),sd=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${so};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${D};font-weight:${F};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Re}}:host([appearance='strong']) ::slotted(*){color:${T}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${oi}}:host([appearance='brand']) ::slotted(*){color:${Ao}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Pa}}:host([appearance='subtle']) ::slotted(*){color:${Y}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,ad=rr.compose({name:w$,template:id,styles:sd});ad.define(u.registry);const ld={start:"start",end:"end"},cd={small:"small",medium:"medium",large:"large",full:"full"},go={nonModal:"non-modal",modal:"modal",inline:"inline"},N$=`${u.prefix}-drawer`;var T$=Object.defineProperty,A$=Object.getOwnPropertyDescriptor,Fe=(o,e,t,r)=>{for(var n=r>1?void 0:r?A$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&T$(e,t,n),n};class ke extends x{constructor(){super(...arguments),this.position=ld.start,this.size=cd.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===go.modal)return!0}get dialogRole(){return this.dialog&&this.type===go.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),E.enqueue(()=>{this.type=this.type??go.modal})}show(){E.enqueue(()=>{this.emitBeforeToggle(),this.type===go.inline||this.type===go.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}Fe([a],ke.prototype,"type",2),Fe([a({attribute:"aria-labelledby"})],ke.prototype,"ariaLabelledby",2),Fe([a({attribute:"aria-describedby"})],ke.prototype,"ariaDescribedby",2),Fe([a],ke.prototype,"position",2),Fe([f],ke.prototype,"role",2),Fe([a({attribute:"size"})],ke.prototype,"size",2),Fe([f],ke.prototype,"dialog",2),Fe([Se],ke.prototype,"dialogDescribedby",1),Fe([Se],ke.prototype,"dialogLabel",1),Fe([Se],ke.prototype,"dialogLabelledby",1),Fe([Se],ke.prototype,"dialogModal",1),Fe([Se],ke.prototype,"dialogRole",1);const dd=g`${w("block")} :host{--dialog-backdrop:${Fr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${O};line-height:${L};font-family:${v};font-weight:${F};color:${T};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${X};border-inline-start-color:var(--drawer-separator,${X});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Pi};border:${I} solid ${X};background:${P}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Xr};transition-timing-function:${mt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${bt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${bt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Xr};transition-timing-function:${mt};background:var(--dialog-backdrop,${Fr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ur}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function z$(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${A("dialog")}><slot></slot></dialog>`}const hd=z$(),ud=ke.compose({name:N$,template:hd,styles:dd});ud.define(u.registry);const _$=`${u.prefix}-drawer-body`;class pd extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Di(t,"-drawer")&&t.hide()}return!0}}const Hi=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${F};`,O$=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${H};`,F$=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${Mo};`,gd=g.partial`font-family:${v};font-size:${ue};line-height:${me};font-weight:${F};`,Vi=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${F};`,E$=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${H};`,D$=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${Mo};`,L$=g.partial`font-family:${v};font-size:${ao};line-height:${Ho};font-weight:${F};`,M$=g.partial`font-family:${v};font-size:${ao};line-height:${Ho};font-weight:${H};`,fd=g.partial`font-family:${v};font-size:${Ft};line-height:${Vo};font-weight:${H};`,H$=g.partial`font-family:${v};font-size:${ue};line-height:${me};font-weight:${H};`,V$=g.partial`font-family:${v};font-size:${ue};line-height:${me};font-weight:${Mo};`,R$=g.partial`font-family:${v};font-size:${$i};line-height:${Si};font-weight:${H};`,j$=g.partial`font-family:${v};font-size:${vi};line-height:${wi};font-weight:${H};`,q$=g.partial`font-family:${v};font-size:${Lo};line-height:${xi};font-weight:${H};`,W$=g.partial`font-family:${v};font-size:${yi};line-height:${Bi};font-weight:${H};`,G$=g.partial`font-family:${v};font-size:${ki};line-height:${Ci};font-weight:${H};`,bd=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Zl};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${fd}}.footer{display:flex;justify-content:flex-start;gap:${oe}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function X$(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const md=X$(),vd=pd.compose({name:_$,template:md,styles:bd});vd.define(u.registry);function U$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const $d={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},K$={small:"small",medium:"medium",large:"large"},nn={combobox:"combobox",dropdown:"dropdown",select:"select"},Y$=`${u.prefix}-dropdown`;function Ri(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const J$=`${u.prefix}-listbox`;function qt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Q$=`${u.prefix}-option`,lt={ltr:"ltr",rtl:"rtl"},ji=o=>o.closest("[dir]")?.dir==="rtl"?lt.rtl:lt.ltr;function yd(o){return o.closest("[lang]")?.lang??"en"}let Z$=0;function Ze(o="id-"){const e=`${o}${Z$++}`;return document.getElementById(e)?Ze(o):e}const ey=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${A("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,kd=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${A("control")}>`,xd=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${A("control")}>${o=>o.displayValue}</button>`;function ty(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${A("controlSlot")}></slot><slot name=indicator ${A("indicatorSlot")}>${fe(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const wd=ty({indicator:ey});var oy=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var n=r>1?void 0:r?ry(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&oy(e,t,n),n};const q=class xo extends x{constructor(){super(),this.activeIndex=0,this.id=Ze("dropdown-"),this.required=!1,this.type=nn.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||ji(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((n,i)=>{n.active=i===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ze("input-"))}disabledChanged(e,t){this.listbox&&E.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(yd(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),E.enqueue(()=>{this.options.forEach(n=>{n.disabled=n.disabledAttribute||this.disabled,n.name=this.name}),this.enabledOptions.filter(n=>n.defaultSelected).forEach((n,i)=>{n.selected=this.multiple||i===0}),this.setValidity()}),Jr){const n=Ze("--dropdown-anchor-");this.style.setProperty("anchor-name",n),this.listbox.style.setProperty("position-anchor",n)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&E.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Jr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>qt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===nn.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>qt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(qt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(yd(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===nn.combobox){kd.render(this,this);return}xd.render(this,this),this._insertingControl=!1}}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let n=this.getEnabledIndexInBounds(r);return n===0&&this.freeformOption?.hidden&&(n=this.getEnabledIndexInBounds(r+t)),this.activeIndex=n,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!qt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const n=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:n,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Ko(this,()=>{const r=t.assignedElements().find(n=>Ri(n));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),E.enqueue(()=>{this.insertControl()})}disconnectedCallback(){xo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(xo.AnchorPositionFallbackObserver||(xo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:n,target:i})=>{if(Ri(i)){if(r.bottom>window.innerHeight){$(i.elementInternals,"flip-block",!0);return}r.top<0&&$(i.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,xo.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}xo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};q.formAssociated=!0,J([Se],q.prototype,"activeDescendant",1),J([f],q.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],q.prototype,"ariaLabelledBy",2),J([f],q.prototype,"control",2),J([a({mode:"boolean"})],q.prototype,"disabled",2),J([Se],q.prototype,"displayValue",1),J([a({attribute:"id"})],q.prototype,"id",2),J([f],q.prototype,"indicator",2),J([f],q.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),J([f],q.prototype,"listbox",2),J([a({mode:"boolean"})],q.prototype,"multiple",2),J([a],q.prototype,"name",2),J([f],q.prototype,"open",2),J([a],q.prototype,"placeholder",2),J([a({mode:"boolean"})],q.prototype,"required",2),J([a],q.prototype,"type",2),J([a({attribute:"value"})],q.prototype,"valueAttribute",2);let Sd=q;var ny=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,Bd=(o,e,t,r)=>{for(var n=r>1?void 0:r?iy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ny(e,t,n),n};class sn extends Sd{constructor(){super(...arguments),this.appearance=$d.outline}}Bd([a],sn.prototype,"appearance",2),Bd([a],sn.prototype,"size",2);const Cd=g`${w("inline-flex")} :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${T};cursor:pointer}:host(${jv}){color:${_r}}.control{appearance:none;background-color:${P};border-radius:${B};border:${I} solid ${X};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${V};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${lo} ${Ye};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${Hi}}:host([size='small']) .control{column-gap:${V};padding:${Et} ${ve};${Vi}}:host([size='large']) .control{column-gap:${_e};padding:${re} ${oe};${gd}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Y};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${at};height:${pe};scale:0 1;transition:scale ${Gr} ${mt}}:host(:where(:focus-within)) .control{border-radius:${B};box-shadow:inset 0 0 0 1px ${Eo};outline:${pe} solid ${de}}:host(:where(${Vv},:focus-within)) .control::after{scale:1 1;transition-duration:${Go};transition-timing-function:${bt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Ve}}:host([appearance='transparent']) .control{--control-border-color:${Er};background-color:${ce};border-radius:${Do}}:host([appearance='outline']) .control{--control-border-color:${Re}}:host([appearance='outline']) .control:hover{--control-border-color:${gt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${ut}}:host([appearance='outline']) .control:hover::after{background-color:${_t}}:host([appearance='outline']) .control:active{--control-border-color:${io}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${pt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ot}}:host([appearance='filled-darker']) .control{background-color:${oo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${X}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${be};background-color:${st};color:${z}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${L} + (${lo} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${j} + (${Et} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${me} + (${re} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`,Pd=sn.compose({name:Y$,template:wd,styles:Cd});Pd.define(u.registry);const Id={above:"above",after:"after",before:"before"},Ie={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},sy=`${u.prefix}-field`;var ay=Object.defineProperty,ly=Object.getOwnPropertyDescriptor,an=(o,e,t,r)=>{for(var n=r>1?void 0:r?ly(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ay(e,t,n),n};class fo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(n=>n.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ze("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Ie))$(this.elementInternals,t,this.input.validity[e])}}an([f],fo.prototype,"labelSlot",2),an([f],fo.prototype,"messageSlot",2),an([f],fo.prototype,"slottedInputs",2),an([f],fo.prototype,"input",2);var cy=Object.defineProperty,dy=Object.getOwnPropertyDescriptor,hy=(o,e,t,r)=>{for(var n=r>1?void 0:r?dy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&cy(e,t,n),n};class qi extends fo{constructor(){super(...arguments),this.labelPosition=Id.above}}hy([a({attribute:"label-position"})],qi.prototype,"labelPosition",2);const Nd=g`${w("inline-grid")} :host{color:${T};align-items:center;gap:0 ${oe};justify-items:start}:has([slot='message']){color:${T};row-gap:${re}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${oe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${jo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${ec}}:host(${Gv}) ::slotted([slot='label'])::after{content:'*'/'';color:${Lr};margin-inline-start:${te}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Y};font-family:${v};font-size:${D};font-weight:${F};grid-area:message;line-height:${j};margin-block-start:${jo}}:host(${Hv}:focus-within){border-radius:${B};outline:${pe} solid ${de}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${O};font-weight:${F};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${j}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${$e}){cursor:default}::slotted([flag]){display:none}:host(${Ev}) ::slotted([flag='${Ie.badInput}']),:host(${Dv}) ::slotted([flag='${Ie.customError}']),:host(${Rv}) ::slotted([flag='${Ie.patternMismatch}']),:host(${qv}) ::slotted([flag='${Ie.rangeOverflow}']),:host(${Wv}) ::slotted([flag='${Ie.rangeUnderflow}']),:host(${Xv}) ::slotted([flag='${Ie.stepMismatch}']),:host(${Uv}) ::slotted([flag='${Ie.tooLong}']),:host(${Kv}) ::slotted([flag='${Ie.tooShort}']),:host(${Yv}) ::slotted([flag='${Ie.typeMismatch}']),:host(${Zv}) ::slotted([flag='${Ie.valueMissing}']),:host(${Qv}) ::slotted([flag='${Ie.valid}']){display:block}`,Td=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${K("labelSlot")}></slot><slot name=input part=input ${K("slottedInputs")}></slot><slot name=message part=message ${K({property:"messageSlot",filter:Bo("[flag]")})}></slot></template>`,Ad=qi.compose({name:sy,template:Td,styles:Nd,shadowOptions:{delegatesFocus:!0}});Ad.define(u.registry);const uy={none:"none",center:"center",contain:"contain",cover:"cover"},py={circular:"circular",rounded:"rounded",square:"square"},gy=`${u.prefix}-image`;var fy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,nr=(o,e,t,r)=>{for(var n=r>1?void 0:r?by(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&fy(e,t,n),n};class Wt extends x{}nr([a({mode:"boolean"})],Wt.prototype,"block",2),nr([a({mode:"boolean"})],Wt.prototype,"bordered",2),nr([a({mode:"boolean"})],Wt.prototype,"shadow",2),nr([a],Wt.prototype,"fit",2),nr([a],Wt.prototype,"shape",2);const zd=b`<slot></slot>`,_d=g`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${so}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${Ro}}:host([shape='circular']) ::slotted(img){border-radius:${he}}:host([shape='rounded']) ::slotted(img){border-radius:${B}}`,Od=Wt.compose({name:gy,template:zd,styles:_d});Od.define(u.registry);const my={small:"small",medium:"medium",large:"large"},vy={regular:"regular",semibold:"semibold"},$y=`${u.prefix}-label`;var yy=Object.defineProperty,ky=Object.getOwnPropertyDescriptor,ln=(o,e,t,r)=>{for(var n=r>1?void 0:r?ky(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&yy(e,t,n),n};class bo extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ln([a],bo.prototype,"size",2),ln([a],bo.prototype,"weight",2),ln([a({mode:"boolean"})],bo.prototype,"disabled",2),ln([a({mode:"boolean"})],bo.prototype,"required",2);const Fd=g`${w("inline-flex")} :host{color:${T};cursor:pointer;font-family:${v};font-size:${O};font-weight:${F};line-height:${L};user-select:none}.asterisk{color:${Lr};margin-inline-start:${te}}:host([size='small']){font-size:${D};line-height:${j}}:host([size='large']){font-size:${ue};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${z}}`;function xy(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Ed=xy(),Dd=bo.compose({name:$y,template:Ed,styles:Fd});Dd.define(u.registry);const wy={subtle:"subtle"},Sy=mc,By=`${u.prefix}-link`;var Cy=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,Ld=(o,e,t,r)=>{for(var n=r>1?void 0:r?Py(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cy(e,t,n),n};class cn extends je{constructor(){super(...arguments),this.inline=!1}}Ld([a],cn.prototype,"appearance",2),Ld([a({mode:"boolean"})],cn.prototype,"inline",2);const Md=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${ca};cursor:pointer;font-family:${v};font-size:${O};font-weight:${F};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${da}}:host(:active){color:${ha}}:host([appearance='subtle']:hover){color:${pa}}:host([appearance='subtle']:active){color:${ga}}}:host([appearance='subtle']){color:${ua}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Iy(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Hd=Iy(),Vd=cn.compose({name:By,template:Hd,styles:Md});Vd.define(u.registry);var Ny=Object.defineProperty,Ty=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ty(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ny(e,t,n),n};class Gt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),E.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,n)=>{r.elementInternals.ariaPosInSet=`${n+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return qt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Ko(this,()=>{this.id=this.id||Ze("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,n)=>{const i=n===e;r.selected=i,i&&(t=n)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Ko(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>qt(r));this.options=t}})}}ir([f],Gt.prototype,"defaultSlot",2),ir([f],Gt.prototype,"multiple",2),ir([f],Gt.prototype,"options",2),ir([f],Gt.prototype,"selectedIndex",2),ir([f],Gt.prototype,"dropdown",2);const Rd=g`${w("inline-flex")} :host{background-color:${P};border-radius:${B};border:${I} solid ${X};box-shadow:${Vr};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${te};row-gap:${V};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Mv}){margin-block-start:revert;translate:0 -100%}}`;function jd(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${A("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const qd=jd(),Wd=Gt.compose({name:J$,template:qd,styles:Rd});Wd.define(u.registry);const Ay=co,zy=Yo,_y=Jo,Oy=Qo,Fy=`${u.prefix}-menu-button`;class Gd extends Je{}const Xd=Oi({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),Ud=Gd.compose({name:Fy,template:Xd,styles:Ay});Ud.define(u.registry);const Q={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},Ey={[Q.menuitem]:"menuitem",[Q.menuitemcheckbox]:"menuitemcheckbox",[Q.menuitemradio]:"menuitemradio"};function Dy(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ly=`${u.prefix}-menu-item`;var My=Object.defineProperty,Hy=Object.getOwnPropertyDescriptor,mo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Hy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&My(e,t,n),n};class et extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Q.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Q.menuitemcheckbox:this.checked=!this.checked;break;case Q.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Q.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Q.menuitem}checkedChanged(e,t){const r=this.role!==Q.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Q.menuitem,this.elementInternals.ariaChecked=this.role!==Q.menuitem?`${!!this.checked}`:null}}mo([a({mode:"boolean"})],et.prototype,"disabled",2),mo([a],et.prototype,"role",2),mo([a({mode:"boolean"})],et.prototype,"checked",2),mo([a({mode:"boolean"})],et.prototype,"hidden",2),mo([f],et.prototype,"slottedSubmenu",2),mo([f],et.prototype,"submenu",2),ct(et,nt);const Kd=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${B};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${F} ${O}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${zo};color:${At}}:host(:active){background-color:${Gn};color:${zt}}:host(:active) ::slotted([slot='start']){color:${ba}}:host(${$e}){background-color:${st};color:${z}}:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${B};outline:2px solid ${de}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${tn})) .submenu-glyph,:host(:not(${tn})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Y};font:${F} ${D}/${j} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${tn}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${tn}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${$e}),:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:GrayText}}`,Vy=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),Ry=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function jy(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${fe(o.indicator)}</slot>${He(o)}<div part=content class=content><slot></slot></div>${it(o)}<slot name=submenu-glyph>${fe(o.submenuGlyph)}</slot><slot name=submenu ${K({property:"slottedSubmenu"})}></slot></template>`}const Yd=jy({indicator:Vy,submenuGlyph:Ry}),Jd=et.compose({name:Ly,template:Yd,styles:Kd});Jd.define(u.registry);const qy=`${u.prefix}-menu-list`;var sr={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Wi={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Gi(o,e){return o.contains(e)}function Wy(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Gy(o,e,t){const r="forward",n="backward",i="block",s="inline";if(Xy(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?n:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?i:s,k=d?s:i,S=d?c.endsWith("-rl")!==l:l,Le=d&&l,Bt={ArrowUp:{axis:k,dir:Le?r:n},ArrowDown:{axis:k,dir:Le?n:r},ArrowLeft:{axis:p,dir:S?r:n},ArrowRight:{axis:p,dir:S?n:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!Bt||t&&Bt.axis&&Bt.axis!==t?null:Bt.dir}function Xy(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Uy=globalThis.__FOCUSGROUP_POLYFILL__,Ky=Uy.o;function Xi(){for(const o of Ky)o.takeRecords()}var dn=class{#t;#e;#s=Wi.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#n=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(Wy()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#k.bind(this),r)}disconnect(){this.#i(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(sr.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Wi.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Wi.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(sr.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#i(),this.#m(o)),this.#e.flush?.()}#b(){this.#i();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(sr.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(sr.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(Gy(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#n&&(!o.relatedTarget||!Gi(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#i(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#n&&this.#i();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#k(o){if(!o.relatedTarget||!Gi(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Gi(this.#t,o.relatedTarget)||this.#a||!this.#r)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#r||t!==this.#r){for(const{element:r,segmentBoundary:n}of this.#e.items())r.tabIndex=n?0:-1;t&&(t.tabIndex=0,this.#r=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(sr.AUTHOR_TABINDEX);this.#n||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#n=!0,Xi())}#i(){this.#n&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#n=!1,this.#l=null,this.#e.flush?.(),Xi())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#i(),Xi()}};class hn{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Yy=Object.defineProperty,Jy=Object.getOwnPropertyDescriptor,Qy=(o,e,t,r)=>{for(var n=r>1?void 0:r?Jy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Yy(e,t,n),n};const Ui=class ss extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&ls(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let i=r-1;i>=0;--i){const s=this.menuChildren[i],c=s.role;if(c===Q.menuitemradio&&(s.checked=!1),c==="separator")break}const n=this.menuChildren.length-1;for(let i=r+1;i<=n;++i){const s=this.menuChildren[i],c=s.role;if(c===Q.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),E.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Q.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);e.forEach(r=>{m.getNotifier(r).subscribe(this,"hidden")}),this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,n)=>{const i=ss.elementIndent(n);return Math.max(r,i)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return Dy(e)||ls(e)&&!!e.role&&e.role in ss.focusableElementRoles}};Ui.focusableElementRoles=Q,Qy([f],Ui.prototype,"items",2);let Qd=Ui;class Zd extends Qd{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new hn(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new dn(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const eh=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${X};border-radius:${B};box-shadow:${Vr};padding:4px;row-gap:2px}`;function Zy(){return b`<template focusgroup=menu><slot ${K("items")}></slot></template>`}const th=Zy(),oh=Zd.compose({name:qy,template:th,styles:eh});oh.define(u.registry);const e0=`${u.prefix}-menu`;var t0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,wt=(o,e,t,r)=>{for(var n=r>1?void 0:r?o0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&t0(e,t,n),n};class tt extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof et&&(e.target.getAttribute("role")===Q.menuitemcheckbox||e.target.getAttribute("role")===Q.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){E.enqueue(()=>{this._menuList.focus()})}focusTrigger(){E.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}wt([a({attribute:"open-on-hover",mode:"boolean"})],tt.prototype,"openOnHover",2),wt([a({attribute:"open-on-context",mode:"boolean"})],tt.prototype,"openOnContext",2),wt([a({attribute:"close-on-scroll",mode:"boolean"})],tt.prototype,"closeOnScroll",2),wt([a({attribute:"persist-on-item-click",mode:"boolean"})],tt.prototype,"persistOnItemClick",2),wt([a({mode:"boolean"})],tt.prototype,"split",2),wt([f],tt.prototype,"slottedMenuList",2),wt([f],tt.prototype,"slottedTriggers",2),wt([f],tt.prototype,"primaryAction",2);const rh=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${Re};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function r0(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${A("primaryAction")}></slot><slot name=trigger ${K({property:"slottedTriggers",filter:Bo()})}></slot><slot ${K({property:"slottedMenuList",filter:Bo()})}></slot></template>`}const nh=r0(),ih=tt.compose({name:e0,template:nh,styles:rh});ih.define(u.registry);const n0={multiline:"multiline",singleline:"singleline"},i0={rounded:"rounded",square:"square"},s0={success:"success",warning:"warning",error:"error",info:"info"},a0=`${u.prefix}-message-bar`;var l0=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,Ki=(o,e,t,r)=>{for(var n=r>1?void 0:r?c0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&l0(e,t,n),n};class ar extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ki([a],ar.prototype,"shape",2),Ki([a],ar.prototype,"layout",2),Ki([a],ar.prototype,"intent",2);const sh=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${D};line-height:${j};width:100%;background:${oo};border:1px solid ${Re};padding-inline:${oe};border-radius:${B};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ci};border-color:${Oa}}:host([intent='warning']){background-color:${hi};border-color:${pi}}:host([intent='error']){background-color:${ii};border-color:${ai}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${qo};padding-inline:${oe}}.content{grid-area:body;max-width:520px;padding-block:${qo};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Y};margin-inline-end:${_e}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${_e};gap:${_e}}:host([layout='multiline']) .actions{margin-block-start:${qo};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${re}}::slotted(*){font-size:inherit}`;function d0(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const ah=d0(),lh=ar.compose({name:a0,template:ah,styles:sh,shadowOptions:{mode:u.shadowRootMode}});lh.define(u.registry);var h0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var n=r>1?void 0:r?u0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&h0(e,t,n),n};class ne extends x{constructor(){super(),this.active=!1,this.id=Ze("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,E.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ne.formAssociated=!0,xe([f],ne.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),xe([f],ne.prototype,"descriptionSlot",2),xe([f],ne.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ne.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ne.prototype,"freeform",2),xe([a({attribute:"id"})],ne.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),xe([f],ne.prototype,"multiple",2),xe([a],ne.prototype,"name",2),xe([f],ne.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2);const ch=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${Hi} align-items:center;background-color:${P};border-radius:${B};box-sizing:border-box;color:${Ae};column-gap:${te};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ve};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${zo};color:${At}}:host(:active){background-color:${Or};color:${zt}}:host(:disabled){background-color:${P};color:${z};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ei}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${uo}) .checkmark-16-filled,:host(:not(${uo})) .checkmark-12-regular{display:none}:host(${uo}) .checkmark-12-regular{background-color:${P};border-radius:${ze};border:${I} solid ${Ve};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${uo}${Ei}) .checkmark-12-regular{background-color:${ht};border-color:${at};fill:${dt}}:host(:disabled${uo}) .checkmark-12-regular{border-color:${be}}:host(:disabled${uo}${Ei}) .checkmark-12-regular{background-color:${st}}:host(${Fv}){border:${pe} solid ${de}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ve}}}:host(${Lv}){column-gap:${ve};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Y};grid-area:description;${Vi}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,p0=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function g0(o={}){return b`<slot name=checked-indicator>${fe(o.checkedIndicator)}</slot>${He(o)}<div class=content part=content><slot ${K({property:"freeformOutputs",filter:Bo("output")})}></slot></div><div class=description part=description><slot name=description ${K("descriptionSlot")}></slot></div>`}const dh=g0({checkedIndicator:p0}),hh=ne.compose({name:Q$,template:dh,styles:ch});hh.define(u.registry);const f0={medium:"medium",large:"large"},b0={rounded:"rounded",square:"square"},uh={success:"success",warning:"warning",error:"error"},m0=`${u.prefix}-progress-bar`;var v0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,lr=(o,e,t,r)=>{for(var n=r>1?void 0:r?$0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&v0(e,t,n),n};class Xt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Dt(this.elementInternals,e,t,uh)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||E.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,n=t-e,i=n===0?0:Math.fround((r-e)/n*100);this.indicator?.style.setProperty("width",`${i}%`)})}}lr([f],Xt.prototype,"indicator",2),lr([a({attribute:"validation-state"})],Xt.prototype,"validationState",2),lr([a({converter:ae})],Xt.prototype,"value",2),lr([a({converter:ae})],Xt.prototype,"min",2),lr([a({converter:ae})],Xt.prototype,"max",2);var y0=Object.defineProperty,k0=Object.getOwnPropertyDescriptor,ph=(o,e,t,r)=>{for(var n=r>1?void 0:r?k0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&y0(e,t,n),n};class un extends Xt{}ph([a],un.prototype,"thickness",2),ph([a],un.prototype,"shape",2);const gh=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${ro};border-radius:${B};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${Do}}.indicator{background-color:${ht};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${ro} 0%,${ce} 50%,${ro} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${si}}:host([validation-state='warning']) .indicator{background-color:${ui}}:host([validation-state='success']) .indicator{background-color:${di}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function x0(){return b`<div class=indicator part=indicator ${A("indicator")}></div>`}const fh=x0(),bh=un.compose({name:m0,template:fh,styles:gh});bh.define(u.registry);const Yi=ye,w0=`${u.prefix}-radio-group`;function S0(o,e="-radio"){return as(e)(o)}const B0=`${u.prefix}-radio`;var C0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,St=(o,e,t,r)=>{for(var n=r>1?void 0:r?P0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&C0(e,t,n),n};class qe extends x{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??Yi.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??Yi.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const n=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===n,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&n>=0)&&(this.checkedIndex=n);const i=t.map(s=>s.id).join(" ").trim();i&&this.setAttribute("aria-owns",i)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>S0(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((n,i)=>{const s=i===e;n.checked=s,s&&(r=i,t&&n.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const i={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(i,s,c):c.elementInternals.setValidity({})})}}}qe.formAssociated=!0,St([f],qe.prototype,"checkedIndex",2),St([a({attribute:"disabled",mode:"boolean"})],qe.prototype,"disabled",2),St([a({attribute:"value",mode:"fromView"})],qe.prototype,"initialValue",2),St([a],qe.prototype,"name",2),St([a],qe.prototype,"orientation",2),St([f],qe.prototype,"radios",2),St([a({mode:"boolean"})],qe.prototype,"required",2),St([f],qe.prototype,"slottedRadios",2);class mh extends qe{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new hn(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new dn(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const vh=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Wr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Y}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${T}}::slotted(${$e}){color:${z}}::slotted(${y}){color:${T}}:host([slot='input']){margin:${re} ${_e}}`;function I0(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${K("slottedRadios")}></slot></template>`}const $h=I0(),yh=mh.compose({name:w0,template:$h,styles:vh});yh.define(u.registry);class kh extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const xh=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${I} solid ${Ve};border-radius:${he};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${he};color:${dt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${X};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${de}}:host(:hover){border-color:${ut}}:host(${y}){border-color:${at}}:host(${y}) .checked-indicator{background-color:${ht}}:host(${y}:hover) .checked-indicator{background-color:${_t}}:host(:active){border-color:${pt}}:host(${y}:active) .checked-indicator{background-color:${Ot}}:host(:focus-visible){outline:none}:host(${$e}){background-color:${st};border-color:${be}}:host(${y}${$e}) .checked-indicator{background-color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${$e}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${$e}):hover) .checked-indicator{background-color:Highlight}:host(${$e}){border-color:GrayText;color:GrayText}:host(${$e}${y}) .checked-indicator{background-color:GrayText}}`,N0=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function T0(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${fe(o.checkedIndicator)}</slot></template>`}const wh=T0({checkedIndicator:N0}),Sh=kh.compose({name:B0,template:wh,styles:xh});Sh.define(u.registry);const A0={neutral:"neutral",brand:"brand",marigold:"marigold"},z0={small:"small",medium:"medium",large:"large"},_0=`${u.prefix}-rating-display`;var O0=Object.defineProperty,F0=Object.getOwnPropertyDescriptor,cr=(o,e,t,r)=>{for(var n=r>1?void 0:r?F0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&O0(e,t,n),n};const E0=CSS.supports("width: attr(value type(<number>))"),vo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function pn(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Ut extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(vo.maskImageFilled),this.display.style.removeProperty(vo.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,n=`
|
|
5
|
+
`),h,Fs(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=n.length;i<s;++i)n[i].bind(this)}this.isBound=!0,this._hydrationStage=Qt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Mn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}Es=Sr,It(Yu);function Ju(o){return o.create!==void 0}function Qu(o,e,t,r){if(t==null&&(t=""),Ju(t)){o.textContent="";let n=o.$fastView;if(n===void 0)if(Br(r)&&Br(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==Qt.hydrated){const i=r.bindingViewBoundaries[this.targetNodeId];n=t.hydrate(i.first,i.last)}else n=t.create();else o.$fastTemplate!==t&&(n.isComposed&&(n.remove(),n.unbind()),n=t.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(r.source,r.context)):(n.isComposed=!0,n.bind(r.source,r.context),n.insertBefore(o),o.$fastView=n,o.$fastTemplate=t)}else{const n=o.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),o.textContent=t}}function Zu(o,e,t){var r;const n=`${this.id}-t`,i=(r=o[n])!==null&&r!==void 0?r:o[n]={v:0,cv:Object.create(null)},s=i.cv;let c=i.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const k=d[l];k!==""&&(s[k]=c,h.add(k))}}if(i.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const ep={[Z.attribute]:Nt.setAttribute,[Z.booleanAttribute]:Nt.setBooleanAttribute,[Z.property]:(o,e,t)=>o[e]=t,[Z.content]:Qu,[Z.tokenList]:Zu,[Z.event]:()=>{}};class Zt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Z.content}createHTML(e){return xs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ep[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw U.error(Ge.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],n=Br(e)&&e.hydrationStage&&e.hydrationStage!==Qt.hydrated;switch(this.aspectType){case Z.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Z.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(i.target=r,i.controller=e,n&&(this.aspectType===Z.attribute||this.aspectType===Z.booleanAttribute)){i.bind(e);break}this.updateTarget(r,this.targetAspect,i.bind(e),e);break}}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Jt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Jt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const n=t.target;this.updateTarget(n,this.targetAspect,t.bind(r),r)}}Xe.define(Zt,{aspected:!0});const Ls=(o,e)=>`${o}.${e}`,Ms={},Ue={index:0,node:null};function Hs(o){o.startsWith("fast-")||U.warn(Ge.hostBindingWithoutHost,{name:o})}const tp=new Proxy(document.createElement("div"),{get(o,e){Hs(e);const t=Reflect.get(o,e);return Pt(t)?t.bind(o):t},set(o,e,t){return Hs(e),Reflect.set(o,e,t)}});class op{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,n,i){var s,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,n)),e.id=(s=e.id)!==null&&s!==void 0?s:So(),e.targetNodeId=r,e.targetTagName=i,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const n=this.descriptors;if(t==="r"||t==="h"||n[t])return;if(!n[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let i=Ms[t];if(!i){const s=`_${t}`;Ms[t]=i={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[r]}}}n[t]=i}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??tp;for(const n of this.nodeIds)Reflect.get(r,n);return new Ir(t,this.factories,r)}}function Vs(o,e,t,r,n,i=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,k=wr.parse(p,c);let S=null;k===null?i&&(S=new Zt(bs(()=>p,o.policy)),Xe.assignAspect(S,l.name)):S=Hn.aggregate(k,o.policy),S!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(S,e,r,n,t.tagName))}}function rp(o,e,t,r,n){const i=wr.parse(e.textContent,o.directives);if(i===null)return Ue.node=e.nextSibling,Ue.index=n+1,Ue;let s,c=s=e;for(let h=0,d=i.length;h<d;++h){const l=i[h];h!==0&&(n++,r=Ls(t,n),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),rt(l)?s.textContent=l:(s.textContent=" ",Xe.assignAspect(l),o.addFactory(l,t,r,n,null)),c=s}return Ue.index=n+1,Ue.node=c.nextSibling,Ue}function Rs(o,e,t){let r=0,n=e.firstChild;for(;n;){const i=np(o,t,n,r);n=i.node,r=i.index}}function np(o,e,t,r){const n=Ls(e,r);switch(t.nodeType){case 1:Vs(o,e,t,n,r),Rs(o,t,n);break;case 3:return rp(o,t,e,n,r);case 8:{const i=wr.parse(t.data,o.directives);i!==null&&o.addFactory(Hn.aggregate(i),e,n,r,null);break}}return Ue.index=r+1,Ue.node=t.nextSibling,Ue}function ip(o,e){return o&&o.nodeType===8&&wr.parse(o.data,e)!==null}const js="TEMPLATE",Hn={compile(o,e,t=Nt.policy){let r;if(rt(o)){r=document.createElement(js),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===js&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const n=document.adoptNode(r.content),i=new op(n,e,t);return Vs(i,"",r,"h",0,!0),(ip(n.firstChild,e)||n.childNodes.length===1&&Object.keys(e).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),Rs(i,n,"r"),Ue.node=null,i.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Nt.policy){if(o.length===1)return o[0];let t,r=!1,n;const i=o.length,s=o.map(d=>rt(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,n=n||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let k=0;k<i;++k)p+=s[k](d,l);return p},h=new Zt(Tn(c,n??e,r));return Xe.assignAspect(h,t),h}};class qs extends Dn{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Xe.define(qs);const A=o=>new qs(o),Ws="boolean",Gs="reflect",Nr=Object.freeze({locate:hs()}),sp={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ae={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class wn{constructor(e,t,r=t.toLowerCase(),n=Gs,i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=n,this.converter=i,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n===Ws&&i===void 0&&(this.converter=sp)}setValue(e,t){const r=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||E.enqueue(()=>{r.add(e);const n=e[this.fieldName];switch(t){case Gs:const i=this.converter;Nt.setAttribute(e,this.attribute,i!==void 0?i.toView(n):n);break;case Ws:Nt.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Nr.locate(e));for(let n=0,i=t.length;n<i;++n){const s=t[n];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];rt(d)?r.push(new wn(e,d)):r.push(new wn(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(n,i){arguments.length>1&&(t.property=i),Nr.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}var ap=window&&window.__awaiter||function(o,e,t,r){function n(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(l){try{d(r.next(l))}catch(p){s(p)}}function h(l){try{d(r.throw(l))}catch(p){s(p)}}function d(l){l.done?i(l.value):n(l.value).then(c,h)}d((r=r.apply(o,e||[])).next())})},Me;const Us={mode:"open"},Ks={},Vn=new Set,Co=U.getById(Ct.elementRegistry,()=>In()),lp={deferAndHydrate:"defer-and-hydrate"};class ge{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,rt(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const n=e.prototype,i=wn.collect(e,t.attributes),s=new Array(i.length),c={},h={};for(let d=0,l=i.length;d<l;++d){const p=i[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(n,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=i,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=we.normalize(t.styles),Co.register(this),m.defineProperty(Me.isRegistered,this.name),Me.isRegistered[this.name]=this.type}define(e=this.registry){var t,r;const n=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,n,this.elementOptions),(r=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||r===void 0||r.call(t,this.name)),this}static compose(e,t){return Vn.has(e)||Co.getByType(e)?new Me(class extends e{},t):new Me(e,t)}static registerBaseType(e){Vn.add(e)}static composeAsync(e,t){return new Promise(r=>{(Vn.has(e)||Co.getByType(e))&&r(new Me(class extends e{},t));const n=new Me(e,t);m.getNotifier(n).subscribe({handleChange:()=>{var i,s;(s=(i=n.lifecycleCallbacks)===null||i===void 0?void 0:i.templateDidUpdate)===null||s===void 0||s.call(i,n.name),r(n)}},"template")})}}Me=ge,ge.isRegistered={},ge.getByType=Co.getByType,ge.getForInstance=Co.getForInstance,ge.registerAsync=o=>ap(void 0,void 0,void 0,function*(){return new Promise(e=>{Me.isRegistered[o]&&e(Me.isRegistered[o]),m.getNotifier(Me.isRegistered).subscribe({handleChange:()=>e(Me.isRegistered[o])},o)})}),m.defineProperty(ge.prototype,"template");const cp=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,dp=Object.create(null);class Tt{constructor(e,t=dp){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}Tt.empty=new Tt(""),Xe.define(Tt);function hp(o,e,t,r=Xe.getForInstance(o)){if(r.aspected){const n=cp.exec(e);n!==null&&Xe.assignAspect(o,n[2])}return o.createHTML(t)}class Sn{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=Hn.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new Tt(rt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw U.error(Ge.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw U.error(Ge.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const n=this.create(r);return n.bind(e),n.appendTo(t),n}static create(e,t,r){let n="";const i=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=So();return i[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(n+=d,Pt(l))l=new Zt(Tn(l));else if(l instanceof kr)l=new Zt(l);else if(!(p=Xe.getForInstance(l))){const k=l;l=new Zt(bs(()=>k))}n+=hp(l,d,s,p)}return new Sn(n+e[e.length-1],i,r)}}It(Sn);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Sn.create(o,e);throw U.error(Ge.directCallToHTMLTagNotAllowed)};b.partial=o=>new Tt(o);const Ys="slotchange";class Js extends Ru{observe(e){e.addEventListener(Ys,this)}disconnect(e){e.removeEventListener(Ys,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Xe.define(Js);function K(o){return rt(o)&&(o={property:o}),new Js(o)}class up extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(n=>this.observedNodes.has(n.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,n=!1;return{source:o,context:Jt.default,targets:t,get isBound(){return n},addBehaviorFactory(i,s){var c,h,d,l;const p=i;p.id=(c=p.id)!==null&&c!==void 0?c:So(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:So(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:Nt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(i,s){t[i]=s},addBehavior(i){e.push(i),n&&i.bind(this)},onUnbind(i){r===null&&(r=[]),r.push(i)},connectedCallback(i){n||(n=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(i){n&&(n=!1,r!==null&&r.forEach(s=>s.unbind(this)))}}}});const pp={bubbles:!0,composed:!0,cancelable:!0},Tr="isConnected",Qs=new WeakMap;function Po(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;var ee;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(ee||(ee={}));class We extends ps{get isConnected(){return m.track(this,Tr),this.stage===ee.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Jt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Qs.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=ee.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=m.getAccessors(e);if(r.length>0){const n=this.boundObservables=Object.create(null);for(let i=0,s=r.length;i<s;++i){const c=r[i].name,h=e[c];h!==void 0&&(delete e[c],n[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const n=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,i=(r=n.get(e))!==null&&r!==void 0?r:0;i===0?(n.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===ee.connected||this.stage===ee.connecting)&&e.connectedCallback(this)):n.set(e,i+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const n=r.get(e);n!==void 0&&(n===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==ee.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,n-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Po(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const n=e.behaviors;if(e.addStylesTo(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.addBehavior(n[i])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Po(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const n=e.behaviors;if(e.removeStylesFrom(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.removeBehavior(n[i])}}connect(){this.stage===ee.disconnected&&(this.stage=ee.connecting,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=ee.connected,m.notify(this,Tr))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let n=0,i=r.length;n<i;++n){const s=r[n];e[s]=t[s]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===ee.connected&&(this.stage=ee.disconnecting,m.notify(this,Tr),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=ee.disconnected)}onAttributeChangedCallback(e,t,r){const n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===ee.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},pp),r))):!1}renderTemplate(e){var t;const r=this.source,n=(t=Po(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let i=n.firstChild;i!==null;i=n.firstChild)n.removeChild(i)}e&&(this.view=e.render(r,n,r),this.view.sourceLifetime=yr.coupled)}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const n=ge.getForInstance(e);if(n===void 0)throw U.error(Ge.missingElementDefinition);return m.getNotifier(n).subscribe({handleChange:()=>{We.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(n).subscribe({handleChange:()=>{We.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Zs(e,n)}static setStrategy(e){Zs=e}}It(We),We.setStrategy(We);function Ar(o){var e;return"adoptedStyleSheets"in o?o:(e=Po(o))!==null&&e!==void 0?e:o.getRootNode()}class Bn{constructor(e){const t=Bn.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let n=t.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),t.set(r,n)),n})}addStylesTo(e){ta(Ar(e),this.sheets)}removeStylesFrom(e){oa(Ar(e),this.sheets)}}Bn.styleSheetCache=new Map;let gp=0;const fp=()=>`fast-${++gp}`;function ea(o){return o===document?document.body:o}class bp{constructor(e){this.styles=e,this.styleClass=fp()}addStylesTo(e){e=ea(Ar(e));const t=this.styles,r=this.styleClass;for(let n=0;n<t.length;n++){const i=document.createElement("style");i.innerHTML=t[n],i.className=r,e.append(i)}}removeStylesFrom(e){e=ea(Ar(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,n=t.length;r<n;++r)e.removeChild(t[r])}}let ta=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},oa=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ta=(o,e)=>{o.adoptedStyleSheets.push(...e)},oa=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}we.setDefaultStrategy(Bn)}else we.setDefaultStrategy(bp);const Rn="needs-hydration";class C extends We{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===lp.deferAndHydrate&&(this.source.toggleAttribute(Cr,!0),this.source.toggleAttribute(Rn,!0))}addHydratingInstance(){if(!C.hydratingInstances)return;const e=this.definition.name;let t=C.hydratingInstances.get(e);t||(t=new Set,C.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return C.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Cr)||(C.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,r,n;if(e.didTimeout){C.idleCallbackId=requestIdleCallback(C.checkHydrationComplete,{timeout:50});return}if(((t=C.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(n=(r=C.lifecycleCallbacks).hydrationComplete)===null||n===void 0||n.call(r)}catch{}We.setStrategy(We)}}connect(){var e,t,r,n,i,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(Rn),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Cr)){this.addHydratingInstance(),C.hydrationObserver.observe(this.source,{attributeFilter:[Cr]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===ee.disconnected){if(!C.hydrationStarted){C.hydrationStarted=!0;try{(r=(t=C.lifecycleCallbacks).hydrationStarted)===null||r===void 0||r.call(t)}catch{}}try{(i=(n=C.lifecycleCallbacks).elementWillHydrate)===null||i===void 0||i.call(n,this.source)}catch{}if(this.stage=ee.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Br(this.template)){const h=this.source,d=(s=Po(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Te.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Te.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=ee.connected,this.source.removeAttribute(Rn),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Tr)}}removeHydratingInstance(){var e,t;if(!C.hydratingInstances)return;try{(t=(e=C.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const r=this.definition.name,n=C.hydratingInstances.get(r);n&&(n.delete(this.source),n.size||C.hydratingInstances.delete(r),C.idleCallbackId&&cancelIdleCallback(C.idleCallbackId),C.idleCallbackId=requestIdleCallback(C.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),C.hydrationObserver.unobserve(this.source)}static install(){We.setStrategy(C)}}C.hydrationObserver=new up(C.hydrationObserverHandler),C.lifecycleCallbacks={},C.hydrationStarted=!1,C.idleCallbackId=null,C.hydratingInstances=new Map;function ra(o){const e=class extends o{constructor(){super(),We.forCustomElement(this)}$emit(t,r,n){return this.$fastController.emit(t,r,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,n){this.$fastController.onAttributeChangedCallback(t,r,n)}};return ge.registerBaseType(e),e}function mp(o,e){return Pt(o)?ge.compose(o,e):ge.compose(this,o)}function vp(o,e){return Pt(o)?new Promise(t=>{ge.composeAsync(o,e).then(r=>{t(r)})}).then(t=>t.define().type):new Promise(t=>{ge.composeAsync(this,o).then(r=>{t(r)})}).then(t=>t.define().type)}function $p(o,e){return Pt(o)?ge.compose(o,e).define().type:ge.compose(this,o).define().type}function yp(o){return ra(o)}const x=Object.assign(ra(HTMLElement),{from:yp,define:$p,compose:mp,defineAsync:vp});function fe(o){return o?typeof o=="string"?new Tt(o):"inline"in o?o.inline():o:Tt.empty}class nt{}function it(o){return b`<slot name=end ${A("end")}>${fe(o.end)}</slot>`.inline()}function He(o){return b`<slot name=start ${A("start")}>${fe(o.start)}</slot>`.inline()}function ct(o,...e){const t=Nr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(o.prototype,i,Object.getOwnPropertyDescriptor(r.prototype,i))}),Nr.locate(r).forEach(i=>t.push(i))})}var kp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var n=r>1?void 0:r?xp(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kp(e,t,n),n};class eo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}zr([a({attribute:"heading-level",mode:"fromView",converter:ae})],eo.prototype,"headinglevel",2),zr([a({mode:"boolean"})],eo.prototype,"expanded",2),zr([a({mode:"boolean"})],eo.prototype,"disabled",2),zr([f],eo.prototype,"expandbutton",2);var wp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,jn=(o,e,t,r)=>{for(var n=r>1?void 0:r?Sp(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&wp(e,t,n),n};class to extends eo{constructor(){super(...arguments),this.block=!1}}jn([a],to.prototype,"size",2),jn([a({attribute:"marker-position"})],to.prototype,"markerPosition",2),jn([a({mode:"boolean"})],to.prototype,"block",2),ct(to,nt);const Bp=":host([hidden]){display:none}";function w(o){return`${Bp}:host{display:${o}}`}const T="var(--colorNeutralForeground1)",qn="var(--colorNeutralForeground1Hover)",na="var(--colorNeutralForeground1Pressed)",Cp="var(--colorNeutralForeground1Selected)",Ae="var(--colorNeutralForeground2)",At="var(--colorNeutralForeground2Hover)",zt="var(--colorNeutralForeground2Pressed)",Io="var(--colorNeutralForeground2Selected)",No="var(--colorNeutralForeground2BrandHover)",To="var(--colorNeutralForeground2BrandPressed)",ia="var(--colorNeutralForeground2BrandSelected)",Y="var(--colorNeutralForeground3)",sa="var(--colorNeutralForeground3Hover)",aa="var(--colorNeutralForeground3Pressed)",la="var(--colorNeutralForeground3Selected)",Pp="var(--colorNeutralForeground3BrandHover)",Ip="var(--colorNeutralForeground3BrandPressed)",Np="var(--colorNeutralForeground3BrandSelected)",_r="var(--colorNeutralForeground4)",Tp="var(--colorNeutralForeground5)",Ap="var(--colorNeutralForeground5Hover)",zp="var(--colorNeutralForeground5Pressed)",_p="var(--colorNeutralForeground5Selected)",z="var(--colorNeutralForegroundDisabled)",ca="var(--colorBrandForegroundLink)",da="var(--colorBrandForegroundLinkHover)",ha="var(--colorBrandForegroundLinkPressed)",Op="var(--colorBrandForegroundLinkSelected)",ua="var(--colorNeutralForeground2Link)",pa="var(--colorNeutralForeground2LinkHover)",ga="var(--colorNeutralForeground2LinkPressed)",Fp="var(--colorNeutralForeground2LinkSelected)",Ep="var(--colorCompoundBrandForeground1)",fa="var(--colorCompoundBrandForeground1Hover)",ba="var(--colorCompoundBrandForeground1Pressed)",Ke="var(--colorNeutralForegroundOnBrand)",dt="var(--colorNeutralForegroundInverted)",ma="var(--colorNeutralForegroundInvertedHover)",va="var(--colorNeutralForegroundInvertedPressed)",Dp="var(--colorNeutralForegroundInvertedSelected)",Lp="var(--colorNeutralForegroundInverted2)",Wn="var(--colorNeutralForegroundStaticInverted)",Mp="var(--colorNeutralForegroundInvertedLink)",Hp="var(--colorNeutralForegroundInvertedLinkHover)",Vp="var(--colorNeutralForegroundInvertedLinkPressed)",Rp="var(--colorNeutralForegroundInvertedLinkSelected)",jp="var(--colorNeutralForegroundInvertedDisabled)",Ao="var(--colorBrandForeground1)",$a="var(--colorBrandForeground2)",qp="var(--colorBrandForeground2Hover)",Wp="var(--colorBrandForeground2Pressed)",ya="var(--colorNeutralForeground1Static)",Gp="var(--colorBrandForegroundInverted)",Xp="var(--colorBrandForegroundInvertedHover)",Up="var(--colorBrandForegroundInvertedPressed)",Kp="var(--colorBrandForegroundOnLight)",Yp="var(--colorBrandForegroundOnLightHover)",Jp="var(--colorBrandForegroundOnLightPressed)",Qp="var(--colorBrandForegroundOnLightSelected)",P="var(--colorNeutralBackground1)",zo="var(--colorNeutralBackground1Hover)",Or="var(--colorNeutralBackground1Pressed)",Gn="var(--colorNeutralBackground1Selected)",Zp="var(--colorNeutralBackground2)",eg="var(--colorNeutralBackground2Hover)",tg="var(--colorNeutralBackground2Pressed)",og="var(--colorNeutralBackground2Selected)",oo="var(--colorNeutralBackground3)",rg="var(--colorNeutralBackground3Hover)",ng="var(--colorNeutralBackground3Pressed)",ig="var(--colorNeutralBackground3Selected)",ka="var(--colorNeutralBackground4)",sg="var(--colorNeutralBackground4Hover)",ag="var(--colorNeutralBackground4Pressed)",lg="var(--colorNeutralBackground4Selected)",xa="var(--colorNeutralBackground5)",cg="var(--colorNeutralBackground5Hover)",dg="var(--colorNeutralBackground5Pressed)",hg="var(--colorNeutralBackground5Selected)",ro="var(--colorNeutralBackground6)",ug="var(--colorNeutralBackground7)",pg="var(--colorNeutralBackground7Hover)",gg="var(--colorNeutralBackground7Pressed)",fg="var(--colorNeutralBackground7Selected)",bg="var(--colorNeutralBackground8)",Xn="var(--colorNeutralBackgroundInverted)",mg="var(--colorNeutralBackgroundInvertedHover)",vg="var(--colorNeutralBackgroundInvertedPressed)",$g="var(--colorNeutralBackgroundInvertedSelected)",yg="var(--colorNeutralBackgroundStatic)",kg="var(--colorNeutralBackgroundAlpha)",xg="var(--colorNeutralBackgroundAlpha2)",Un="var(--colorSubtleBackground)",_o="var(--colorSubtleBackgroundHover)",no="var(--colorSubtleBackgroundPressed)",Kn="var(--colorSubtleBackgroundSelected)",wa="var(--colorSubtleBackgroundLightAlphaHover)",Sa="var(--colorSubtleBackgroundLightAlphaPressed)",Ba="var(--colorSubtleBackgroundLightAlphaSelected)",wg="var(--colorSubtleBackgroundInverted)",Sg="var(--colorSubtleBackgroundInvertedHover)",Bg="var(--colorSubtleBackgroundInvertedPressed)",Cg="var(--colorSubtleBackgroundInvertedSelected)",ce="var(--colorTransparentBackground)",Oo="var(--colorTransparentBackgroundHover)",Fo="var(--colorTransparentBackgroundPressed)",Yn="var(--colorTransparentBackgroundSelected)",st="var(--colorNeutralBackgroundDisabled)",Pg="var(--colorNeutralBackgroundDisabled2)",Ig="var(--colorNeutralBackgroundInvertedDisabled)",Ng="var(--colorNeutralStencil1)",Tg="var(--colorNeutralStencil2)",Ag="var(--colorNeutralStencil1Alpha)",zg="var(--colorNeutralStencil2Alpha)",Fr="var(--colorBackgroundOverlay)",_g="var(--colorScrollbarOverlay)",Jn="var(--colorBrandBackground)",Qn="var(--colorBrandBackgroundHover)",Zn="var(--colorBrandBackgroundPressed)",Ca="var(--colorBrandBackgroundSelected)",ht="var(--colorCompoundBrandBackground)",_t="var(--colorCompoundBrandBackgroundHover)",Ot="var(--colorCompoundBrandBackgroundPressed)",ei="var(--colorBrandBackgroundStatic)",ti="var(--colorBrandBackground2)",Og="var(--colorBrandBackground2Hover)",Fg="var(--colorBrandBackground2Pressed)",Eg="var(--colorBrandBackground3Static)",Dg="var(--colorBrandBackground4Static)",Lg="var(--colorBrandBackgroundInverted)",Mg="var(--colorBrandBackgroundInvertedHover)",Hg="var(--colorBrandBackgroundInvertedPressed)",Vg="var(--colorBrandBackgroundInvertedSelected)",Rg="var(--colorNeutralCardBackground)",jg="var(--colorNeutralCardBackgroundHover)",qg="var(--colorNeutralCardBackgroundPressed)",Wg="var(--colorNeutralCardBackgroundSelected)",Gg="var(--colorNeutralCardBackgroundDisabled)",Ve="var(--colorNeutralStrokeAccessible)",ut="var(--colorNeutralStrokeAccessibleHover)",pt="var(--colorNeutralStrokeAccessiblePressed)",Xg="var(--colorNeutralStrokeAccessibleSelected)",Re="var(--colorNeutralStroke1)",gt="var(--colorNeutralStroke1Hover)",io="var(--colorNeutralStroke1Pressed)",Ug="var(--colorNeutralStroke1Selected)",so="var(--colorNeutralStroke2)",Pa="var(--colorNeutralStroke3)",Kg="var(--colorNeutralStroke4)",Yg="var(--colorNeutralStroke4Hover)",Jg="var(--colorNeutralStroke4Pressed)",Qg="var(--colorNeutralStroke4Selected)",Zg="var(--colorNeutralStrokeSubtle)",ef="var(--colorNeutralStrokeOnBrand)",Ia="var(--colorNeutralStrokeOnBrand2)",tf="var(--colorNeutralStrokeOnBrand2Hover)",of="var(--colorNeutralStrokeOnBrand2Pressed)",rf="var(--colorNeutralStrokeOnBrand2Selected)",oi="var(--colorBrandStroke1)",ri="var(--colorBrandStroke2)",nf="var(--colorBrandStroke2Hover)",sf="var(--colorBrandStroke2Pressed)",af="var(--colorBrandStroke2Contrast)",at="var(--colorCompoundBrandStroke)",Na="var(--colorCompoundBrandStrokeHover)",ni="var(--colorCompoundBrandStrokePressed)",be="var(--colorNeutralStrokeDisabled)",lf="var(--colorNeutralStrokeDisabled2)",cf="var(--colorNeutralStrokeInvertedDisabled)",X="var(--colorTransparentStroke)",Er="var(--colorTransparentStrokeInteractive)",df="var(--colorTransparentStrokeDisabled)",hf="var(--colorNeutralStrokeAlpha)",uf="var(--colorNeutralStrokeAlpha2)",Eo="var(--colorStrokeFocus1)",de="var(--colorStrokeFocus2)",Ta="var(--colorNeutralShadowAmbient)",Aa="var(--colorNeutralShadowKey)",pf="var(--colorNeutralShadowAmbientLighter)",gf="var(--colorNeutralShadowKeyLighter)",ff="var(--colorNeutralShadowAmbientDarker)",bf="var(--colorNeutralShadowKeyDarker)",mf="var(--colorBrandShadowAmbient)",vf="var(--colorBrandShadowKey)",ii="var(--colorPaletteRedBackground1)",za="var(--colorPaletteRedBackground2)",si="var(--colorPaletteRedBackground3)",$f="var(--colorPaletteRedBorderActive)",ai="var(--colorPaletteRedBorder1)",Dr="var(--colorPaletteRedBorder2)",Lr="var(--colorPaletteRedForeground1)",_a="var(--colorPaletteRedForeground2)",li="var(--colorPaletteRedForeground3)",yf="var(--colorPaletteRedForegroundInverted)",ci="var(--colorPaletteGreenBackground1)",kf="var(--colorPaletteGreenBackground2)",di="var(--colorPaletteGreenBackground3)",xf="var(--colorPaletteGreenBorderActive)",Oa="var(--colorPaletteGreenBorder1)",Fa="var(--colorPaletteGreenBorder2)",Ea="var(--colorPaletteGreenForeground1)",Da="var(--colorPaletteGreenForeground2)",La="var(--colorPaletteGreenForeground3)",wf="var(--colorPaletteGreenForegroundInverted)",hi="var(--colorPaletteDarkOrangeBackground1)",Sf="var(--colorPaletteDarkOrangeBackground2)",ui="var(--colorPaletteDarkOrangeBackground3)",Bf="var(--colorPaletteDarkOrangeBorderActive)",pi="var(--colorPaletteDarkOrangeBorder1)",Cf="var(--colorPaletteDarkOrangeBorder2)",Ma="var(--colorPaletteDarkOrangeForeground1)",Pf="var(--colorPaletteDarkOrangeForeground2)",gi="var(--colorPaletteDarkOrangeForeground3)",Ha="var(--colorPaletteYellowBackground1)",If="var(--colorPaletteYellowBackground2)",Va="var(--colorPaletteYellowBackground3)",Nf="var(--colorPaletteYellowBorderActive)",Ra="var(--colorPaletteYellowBorder1)",Tf="var(--colorPaletteYellowBorder2)",Af="var(--colorPaletteYellowForeground1)",Mr="var(--colorPaletteYellowForeground2)",zf="var(--colorPaletteYellowForeground3)",_f="var(--colorPaletteYellowForegroundInverted)",Of="var(--colorPaletteBerryBackground1)",Ff="var(--colorPaletteBerryBackground2)",Ef="var(--colorPaletteBerryBackground3)",Df="var(--colorPaletteBerryBorderActive)",Lf="var(--colorPaletteBerryBorder1)",Mf="var(--colorPaletteBerryBorder2)",Hf="var(--colorPaletteBerryForeground1)",Vf="var(--colorPaletteBerryForeground2)",Rf="var(--colorPaletteBerryForeground3)",jf="var(--colorPaletteMarigoldBackground1)",fi="var(--colorPaletteMarigoldBackground2)",qf="var(--colorPaletteMarigoldBackground3)",ja="var(--colorPaletteMarigoldBorderActive)",Wf="var(--colorPaletteMarigoldBorder1)",Gf="var(--colorPaletteMarigoldBorder2)",Xf="var(--colorPaletteMarigoldForeground1)",qa="var(--colorPaletteMarigoldForeground2)",Uf="var(--colorPaletteMarigoldForeground3)",Kf="var(--colorPaletteLightGreenBackground1)",Yf="var(--colorPaletteLightGreenBackground2)",Jf="var(--colorPaletteLightGreenBackground3)",Qf="var(--colorPaletteLightGreenBorderActive)",Zf="var(--colorPaletteLightGreenBorder1)",eb="var(--colorPaletteLightGreenBorder2)",tb="var(--colorPaletteLightGreenForeground1)",ob="var(--colorPaletteLightGreenForeground2)",rb="var(--colorPaletteLightGreenForeground3)",Wa="var(--colorPaletteAnchorBackground2)",nb="var(--colorPaletteAnchorBorderActive)",Ga="var(--colorPaletteAnchorForeground2)",Xa="var(--colorPaletteBeigeBackground2)",ib="var(--colorPaletteBeigeBorderActive)",Ua="var(--colorPaletteBeigeForeground2)",Ka="var(--colorPaletteBlueBackground2)",sb="var(--colorPaletteBlueBorderActive)",Ya="var(--colorPaletteBlueForeground2)",Ja="var(--colorPaletteBrassBackground2)",ab="var(--colorPaletteBrassBorderActive)",Qa="var(--colorPaletteBrassForeground2)",Za="var(--colorPaletteBrownBackground2)",lb="var(--colorPaletteBrownBorderActive)",el="var(--colorPaletteBrownForeground2)",tl="var(--colorPaletteCornflowerBackground2)",cb="var(--colorPaletteCornflowerBorderActive)",ol="var(--colorPaletteCornflowerForeground2)",rl="var(--colorPaletteCranberryBackground2)",db="var(--colorPaletteCranberryBorderActive)",nl="var(--colorPaletteCranberryForeground2)",il="var(--colorPaletteDarkGreenBackground2)",hb="var(--colorPaletteDarkGreenBorderActive)",sl="var(--colorPaletteDarkGreenForeground2)",al="var(--colorPaletteDarkRedBackground2)",ub="var(--colorPaletteDarkRedBorderActive)",ll="var(--colorPaletteDarkRedForeground2)",cl="var(--colorPaletteForestBackground2)",pb="var(--colorPaletteForestBorderActive)",dl="var(--colorPaletteForestForeground2)",hl="var(--colorPaletteGoldBackground2)",gb="var(--colorPaletteGoldBorderActive)",ul="var(--colorPaletteGoldForeground2)",pl="var(--colorPaletteGrapeBackground2)",fb="var(--colorPaletteGrapeBorderActive)",gl="var(--colorPaletteGrapeForeground2)",fl="var(--colorPaletteLavenderBackground2)",bb="var(--colorPaletteLavenderBorderActive)",bl="var(--colorPaletteLavenderForeground2)",ml="var(--colorPaletteLightTealBackground2)",mb="var(--colorPaletteLightTealBorderActive)",vl="var(--colorPaletteLightTealForeground2)",$l="var(--colorPaletteLilacBackground2)",vb="var(--colorPaletteLilacBorderActive)",yl="var(--colorPaletteLilacForeground2)",kl="var(--colorPaletteMagentaBackground2)",$b="var(--colorPaletteMagentaBorderActive)",xl="var(--colorPaletteMagentaForeground2)",wl="var(--colorPaletteMinkBackground2)",yb="var(--colorPaletteMinkBorderActive)",Sl="var(--colorPaletteMinkForeground2)",Bl="var(--colorPaletteNavyBackground2)",kb="var(--colorPaletteNavyBorderActive)",Cl="var(--colorPaletteNavyForeground2)",Pl="var(--colorPalettePeachBackground2)",xb="var(--colorPalettePeachBorderActive)",Il="var(--colorPalettePeachForeground2)",Nl="var(--colorPalettePinkBackground2)",wb="var(--colorPalettePinkBorderActive)",Tl="var(--colorPalettePinkForeground2)",Al="var(--colorPalettePlatinumBackground2)",Sb="var(--colorPalettePlatinumBorderActive)",zl="var(--colorPalettePlatinumForeground2)",_l="var(--colorPalettePlumBackground2)",Bb="var(--colorPalettePlumBorderActive)",Ol="var(--colorPalettePlumForeground2)",Fl="var(--colorPalettePumpkinBackground2)",Cb="var(--colorPalettePumpkinBorderActive)",El="var(--colorPalettePumpkinForeground2)",Dl="var(--colorPalettePurpleBackground2)",Pb="var(--colorPalettePurpleBorderActive)",Ll="var(--colorPalettePurpleForeground2)",Ml="var(--colorPaletteRoyalBlueBackground2)",Ib="var(--colorPaletteRoyalBlueBorderActive)",Hl="var(--colorPaletteRoyalBlueForeground2)",Vl="var(--colorPaletteSeafoamBackground2)",Nb="var(--colorPaletteSeafoamBorderActive)",Rl="var(--colorPaletteSeafoamForeground2)",jl="var(--colorPaletteSteelBackground2)",Tb="var(--colorPaletteSteelBorderActive)",ql="var(--colorPaletteSteelForeground2)",Wl="var(--colorPaletteTealBackground2)",Ab="var(--colorPaletteTealBorderActive)",Gl="var(--colorPaletteTealForeground2)",zb="var(--colorStatusSuccessBackground1)",_b="var(--colorStatusSuccessBackground2)",Ob="var(--colorStatusSuccessBackground3)",Fb="var(--colorStatusSuccessForeground1)",Eb="var(--colorStatusSuccessForeground2)",Db="var(--colorStatusSuccessForeground3)",Lb="var(--colorStatusSuccessForegroundInverted)",Mb="var(--colorStatusSuccessBorderActive)",Hb="var(--colorStatusSuccessBorder1)",Vb="var(--colorStatusSuccessBorder2)",Rb="var(--colorStatusWarningBackground1)",jb="var(--colorStatusWarningBackground2)",qb="var(--colorStatusWarningBackground3)",Wb="var(--colorStatusWarningForeground1)",Gb="var(--colorStatusWarningForeground2)",Xb="var(--colorStatusWarningForeground3)",Ub="var(--colorStatusWarningForegroundInverted)",Kb="var(--colorStatusWarningBorderActive)",Yb="var(--colorStatusWarningBorder1)",Jb="var(--colorStatusWarningBorder2)",Qb="var(--colorStatusDangerBackground1)",Zb="var(--colorStatusDangerBackground2)",em="var(--colorStatusDangerBackground3)",tm="var(--colorStatusDangerBackground3Hover)",om="var(--colorStatusDangerBackground3Pressed)",rm="var(--colorStatusDangerForeground1)",nm="var(--colorStatusDangerForeground2)",im="var(--colorStatusDangerForeground3)",sm="var(--colorStatusDangerForegroundInverted)",am="var(--colorStatusDangerBorderActive)",lm="var(--colorStatusDangerBorder1)",cm="var(--colorStatusDangerBorder2)",Do="var(--borderRadiusNone)",ze="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",bi="var(--borderRadiusLarge)",mi="var(--borderRadiusXLarge)",dm="var(--borderRadius2XLarge)",hm="var(--borderRadius3XLarge)",um="var(--borderRadius4XLarge)",pm="var(--borderRadius5XLarge)",gm="var(--borderRadius6XLarge)",he="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Xl="var(--fontFamilyMonospace)",Ul="var(--fontFamilyNumeric)",ao="var(--fontSizeBase100)",D="var(--fontSizeBase200)",O="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Ft="var(--fontSizeBase500)",Lo="var(--fontSizeBase600)",vi="var(--fontSizeHero700)",$i="var(--fontSizeHero800)",yi="var(--fontSizeHero900)",ki="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",Kl="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",Mo="var(--fontWeightBold)",Ho="var(--lineHeightBase100)",j="var(--lineHeightBase200)",L="var(--lineHeightBase300)",me="var(--lineHeightBase400)",Vo="var(--lineHeightBase500)",xi="var(--lineHeightBase600)",wi="var(--lineHeightHero700)",Si="var(--lineHeightHero800)",Bi="var(--lineHeightHero900)",Ci="var(--lineHeightHero1000)",Hr="var(--shadow2)",Ro="var(--shadow4)",Yl="var(--shadow8)",Vr="var(--shadow16)",Jl="var(--shadow28)",Pi="var(--shadow64)",fm="var(--shadow2Brand)",bm="var(--shadow4Brand)",mm="var(--shadow8Brand)",vm="var(--shadow16Brand)",$m="var(--shadow28Brand)",ym="var(--shadow64Brand)",I="var(--strokeWidthThin)",pe="var(--strokeWidthThick)",Be="var(--strokeWidthThicker)",Rr="var(--strokeWidthThickest)",km="var(--spacingHorizontalNone)",V="var(--spacingHorizontalXXS)",te="var(--spacingHorizontalXS)",ve="var(--spacingHorizontalSNudge)",_e="var(--spacingHorizontalS)",Ye="var(--spacingHorizontalMNudge)",oe="var(--spacingHorizontalM)",Ql="var(--spacingHorizontalL)",Zl="var(--spacingHorizontalXL)",jr="var(--spacingHorizontalXXL)",xm="var(--spacingHorizontalXXXL)",qr="var(--spacingVerticalNone)",jo="var(--spacingVerticalXXS)",Et="var(--spacingVerticalXS)",lo="var(--spacingVerticalSNudge)",re="var(--spacingVerticalS)",qo="var(--spacingVerticalMNudge)",ec="var(--spacingVerticalM)",Wr="var(--spacingVerticalL)",wm="var(--spacingVerticalXL)",ft="var(--spacingVerticalXXL)",tc="var(--spacingVerticalXXXL)",Gr="var(--durationUltraFast)",Wo="var(--durationFaster)",Sm="var(--durationFast)",Go="var(--durationNormal)",Xr="var(--durationGentle)",oc="var(--durationSlow)",Ii="var(--durationSlower)",Xo="var(--durationUltraSlow)",rc="var(--curveAccelerateMax)",bt="var(--curveAccelerateMid)",nc="var(--curveAccelerateMin)",Ni="var(--curveDecelerateMax)",mt="var(--curveDecelerateMid)",ic="var(--curveDecelerateMin)",Ti="var(--curveEasyEaseMax)",Uo="var(--curveEasyEase)",Ur="var(--curveLinear)",Bm="var(--zIndexBackground)",Cm="var(--zIndexContent)",Pm="var(--zIndexOverlay)",Im="var(--zIndexPopup)",Nm="var(--zIndexMessages)",Tm="var(--zIndexFloating)",Am="var(--zIndexPriority)",zm="var(--zIndexDebug)",sc=g`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${oe} ${Ye};border-radius:${B};font-family:${v};font-size:${O};font-weight:${F};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ce};border:none;box-sizing:border-box;color:${T};cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${_e};grid-column:1/span 1;grid-row:1}.content{margin:0 ${oe}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${_e};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze};outline:none;border:2px solid ${Eo};box-shadow:inset 0 0 0 1px ${de}}:host([disabled]) .button{color:${z}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${O};line-height:${L}}:host([size='small']) .heading{font-size:${D};line-height:${j}}:host([size='large']) .heading{font-size:${ue};line-height:${me}}:host([size='extra-large']) .heading{font-size:${Ft};line-height:${Vo}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${_e};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${oe}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Ye} ${oe}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`,_m=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),Om=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Fm(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${A("expandbutton")}><slot name=heading></slot></button> ${He(o)}<slot name=marker-expanded>${fe(o.expandedIcon)}</slot><slot name=marker-collapsed>${fe(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const ac=Fm({collapsedIcon:_m,expandedIcon:Om}),lc=to.compose({name:Au,template:ac,styles:sc});lc.define(u.registry);const Kr={single:"single",multi:"multi"},Em=`${u.prefix}-accordion`;function cc(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Ko(o,e,t){const r=t?.shallow??!1,n=t?.timeout??50,i=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){i?cc(e,{timeout:n}):e();return}cc(c,{timeout:n})};c()}var Dm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,dc=(o,e,t,r)=>{for(var n=r>1?void 0:r?Lm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Dm(e,t,n),n};class Yr extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Ko(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Cn(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===Kr.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Cn(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Kr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,n)=>{Cn(r)&&(this.activeItemIndex===n?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Kr.multi,this.setItems()}}dc([a({attribute:"expand-mode"})],Yr.prototype,"expandmode",2),dc([f],Yr.prototype,"slottedAccordionItems",2);const hc=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Mm(){return b`<template><slot ${K({property:"slottedAccordionItems",filter:Bo()})}></slot></template>`}const uc=Mm(),pc=Yr.compose({name:Em,template:uc,styles:hc});pc.define(u.registry);const Yo={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Jo={circular:"circular",rounded:"rounded",square:"square"},Qo={small:"small",medium:"medium",large:"large"},Zo={submit:"submit",reset:"reset",button:"button"},Hm={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},Vm=`${u.prefix}-button`,gc=Yo,fc=Jo,bc=Qo,mc={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},Rm={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},jm=`${u.prefix}-anchor-button`,Jr=CSS.supports("anchor-name: --a"),qm="anchor"in HTMLElement.prototype,vc=CSS.supports("selector(:state(g))"),$c=new Map;function N(o){return $c.get(o)??$c.set(o,vc?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!vc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Ai=new WeakMap;function yc(o,e){if(!o||!e)return!1;if(Ai.has(o))return Ai.get(o).has(e);const t=new Set(Object.values(o));return Ai.set(o,t),t.has(e)}function Dt(o,e="",t="",r,n=""){$(o,`${n}${e}`,!1),(!r||yc(r,t))&&$(o,`${n}${t}`,!0)}var Wm=Object.defineProperty,Gm=Object.getOwnPropertyDescriptor,vt=(o,e,t,r)=>{for(var n=r>1?void 0:r?Gm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Wm(e,t,n),n};class je extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Rm){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}vt([a],je.prototype,"download",2),vt([a],je.prototype,"href",2),vt([a],je.prototype,"hreflang",2),vt([a],je.prototype,"ping",2),vt([a],je.prototype,"referrerpolicy",2),vt([a],je.prototype,"rel",2),vt([a],je.prototype,"target",2),vt([a],je.prototype,"type",2);var Xm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,Qr=(o,e,t,r)=>{for(var n=r>1?void 0:r?Um(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Xm(e,t,n),n};class Lt extends je{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Dt(this.elementInternals,e,t,gc)}shapeChanged(e,t){Dt(this.elementInternals,e,t,fc)}sizeChanged(e,t){Dt(this.elementInternals,e,t,bc)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Qr([a],Lt.prototype,"appearance",2),Qr([a],Lt.prototype,"shape",2),Qr([a],Lt.prototype,"size",2),Qr([a({attribute:"icon-only",mode:"boolean"})],Lt.prototype,"iconOnly",2),ct(Lt,nt);const kc=g`${w("inline-flex")} :host{--icon-spacing:${ve};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${T};border:${I} solid ${Re};padding:0 ${oe};min-width:96px;border-radius:${B};font-size:${O};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${Wo};transition-property:background,border,color;transition-timing-function:${Uo};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${zo};color:${qn};border-color:${gt}}:host(:hover:active){background-color:${Or};border-color:${io};color:${na};outline-style:none}:host(:focus-visible){border-color:${X};outline:${pe} solid ${X};box-shadow:${Ro},0 0 0 2px ${de}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${te};min-height:24px;min-width:64px;padding:0 ${_e};border-radius:${ze};font-size:${D};line-height:${j};font-weight:${F}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${bi};padding:0 ${Ql};font-size:${ue};line-height:${me}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${he}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${Do}}:host([appearance='primary']){background-color:${Jn};color:${Ke};border-color:transparent}:host([appearance='primary']:hover){background-color:${Qn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ke}}:host([appearance='primary']:hover:active){background-color:${Zn}}:host([appearance='primary']:focus-visible){border-color:${Ke};box-shadow:${Hr},0 0 0 2px ${de}}:host([appearance='outline']){background-color:${ce}}:host([appearance='outline']:hover){background-color:${Oo}}:host([appearance='outline']:hover:active){background-color:${Fo}}:host([appearance='subtle']){background-color:${Un};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${_o};color:${At};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${no};color:${zt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${No}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${To}}:host([appearance='transparent']){background-color:${ce};color:${Ae}}:host([appearance='transparent']:hover){background-color:${Oo};color:${No}}:host([appearance='transparent']:hover:active){background-color:${Fo};color:${To}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,co=g`${kc} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${st};border-color:${be};color:${z};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${ce}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Km=g`${kc} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Ym(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${He(o)} <span class=content part=content><slot></slot></span>${it(o)}</template>`}const xc=Ym(),wc=Lt.compose({name:jm,template:xc,styles:Km});wc.define(u.registry);const Jm={active:"active",inactive:"inactive"},Qm={circular:"circular",square:"square"},Zm={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},zi={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},_i={neutral:"neutral",brand:"brand",colorful:"colorful",...zi},ev={_16:16,_20:20,_24:24,_28:28,_32:32,_36:36,_40:40,_48:48,_56:56,_64:64,_72:72,_96:96,_120:120,_128:128},tv=`${u.prefix}-avatar`,ov=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,rv=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,nv=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,iv=/\s+/g,sv=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function av(o,e,t){let r="";const n=o.split(" ");return n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),t||(n.length===2?r+=n[1].charAt(0).toUpperCase():n.length===3&&(r+=n[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function lv(o){return o=o.replace(ov,""),o=o.replace(rv,""),o=o.replace(iv," "),o=o.trim(),o}function Sc(o,e,t){return!o||(o=lv(o),sv.test(o)||!t?.allowPhoneInitials&&nv.test(o))?"":av(o,e,t?.firstInitialOnly)}var cv=Object.defineProperty,dv=Object.getOwnPropertyDescriptor,er=(o,e,t,r)=>{for(var n=r>1?void 0:r?dv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&cv(e,t,n),n};class Mt extends x{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}E.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Sc(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}er([f],Mt.prototype,"defaultSlot",2),er([f],Mt.prototype,"monogram",2),er([f],Mt.prototype,"slottedDefaults",2),er([a],Mt.prototype,"name",2),er([a],Mt.prototype,"initials",2);var hv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,ho=(o,e,t,r)=>{for(var n=r>1?void 0:r?uv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&hv(e,t,n),n};const $t=class is extends Mt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||Sc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===_i.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?is.colors[pv(this.name??"")%is.colors.length]:this.color??_i.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};$t.colors=Object.values(zi),ho([a],$t.prototype,"active",2),ho([a],$t.prototype,"shape",2),ho([a],$t.prototype,"appearance",2),ho([a({converter:ae})],$t.prototype,"size",2),ho([a],$t.prototype,"color",2),ho([a({attribute:"color-id"})],$t.prototype,"colorId",2);let Bc=$t;const pv=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),n=t%8;e^=(r<<n)+(r>>8-n)}return e},yt={fastOutSlowInMax:Ni,fastOutSlowInMid:mt,fastOutSlowInMin:ic,slowOutFastInMax:rc,slowOutFastInMid:bt,slowOutFastInMin:nc,fastEase:Ti,normalEase:Uo,nullEasing:Ur},Cc=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${O};border-radius:${he};color:${Y};background-color:${ro};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${he}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${P}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${pe} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${ao};font-weight:${F}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${D}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Ft}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${Lo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${B}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ze}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${bi}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${mi}}:host([data-color='brand']){color:${Wn};background-color:${ei}}:host([data-color='dark-red']){color:${ll};background-color:${al}}:host([data-color='cranberry']){color:${nl};background-color:${rl}}:host([data-color='red']){color:${_a};background-color:${za}}:host([data-color='pumpkin']){color:${El};background-color:${Fl}}:host([data-color='peach']){color:${Il};background-color:${Pl}}:host([data-color='marigold']){color:${qa};background-color:${fi}}:host([data-color='gold']){color:${ul};background-color:${hl}}:host([data-color='brass']){color:${Qa};background-color:${Ja}}:host([data-color='brown']){color:${el};background-color:${Za}}:host([data-color='forest']){color:${dl};background-color:${cl}}:host([data-color='seafoam']){color:${Rl};background-color:${Vl}}:host([data-color='dark-green']){color:${sl};background-color:${il}}:host([data-color='light-teal']){color:${vl};background-color:${ml}}:host([data-color='teal']){color:${Gl};background-color:${Wl}}:host([data-color='steel']){color:${ql};background-color:${jl}}:host([data-color='blue']){color:${Ya};background-color:${Ka}}:host([data-color='royal-blue']){color:${Hl};background-color:${Ml}}:host([data-color='cornflower']){color:${ol};background-color:${tl}}:host([data-color='navy']){color:${Cl};background-color:${Bl}}:host([data-color='lavender']){color:${bl};background-color:${fl}}:host([data-color='purple']){color:${Ll};background-color:${Dl}}:host([data-color='grape']){color:${gl};background-color:${pl}}:host([data-color='lilac']){color:${yl};background-color:${$l}}:host([data-color='pink']){color:${Tl};background-color:${Nl}}:host([data-color='magenta']){color:${xl};background-color:${kl}}:host([data-color='plum']){color:${Ol};background-color:${_l}}:host([data-color='beige']){color:${Ua};background-color:${Xa}}:host([data-color='mink']){color:${Sl};background-color:${wl}}:host([data-color='platinum']){color:${zl};background-color:${Al}}:host([data-color='anchor']){color:${Ga};background-color:${Wa}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Xo},${Wo};transition-delay:${yt.fastEase},${yt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Xo},${Ii};transition-delay:${yt.fastEase},${yt.nullEasing}}:host([active])::before{box-shadow:${Yl};border-style:solid;border-color:${ei}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${pe});border-width:${pe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Be});border-width:${Be}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Rr});border-width:${Rr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Ro}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Vr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${Jl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Xo},${Wo};transition-delay:${yt.fastOutSlowInMin},${yt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Xo},${Ii};transition-delay:${yt.fastOutSlowInMin},${yt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,gv=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function fv(){return b`<slot class=default-slot ${K("slottedDefaults")} ${A("defaultSlot")}></slot><span class=monogram ${A("monogram")}>${o=>o.initials}</span> ${gv}<slot name=badge></slot>`}const Pc=fv(),Ic=Bc.compose({name:tv,template:Pc,styles:Cc});Ic.define(u.registry);const Nc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Tc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},bv={circular:"circular",rounded:"rounded",square:"square"},mv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},vv=`${u.prefix}-badge`;var $v=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,Zr=(o,e,t,r)=>{for(var n=r>1?void 0:r?yv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$v(e,t,n),n};class Ht extends x{constructor(){super(...arguments),this.appearance=Nc.filled,this.color=Tc.brand}}Zr([a],Ht.prototype,"appearance",2),Zr([a],Ht.prototype,"color",2),Zr([a],Ht.prototype,"shape",2),Zr([a],Ht.prototype,"size",2),ct(Ht,nt);const Ac=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${D};line-height:${j};min-width:20px;height:20px;padding-inline:calc(${te} + ${V});border-radius:${he};border-color:${X};background-color:${Jn};color:${Ke};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${I};border-color:inherit;border-radius:inherit}`,zc=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${ao};line-height:${Ho};padding-inline:calc(${V} + ${V})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${D};line-height:${j};padding-inline:calc(${te} + ${V})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${D};line-height:${j};padding-inline:calc(${ve} + ${V})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,_c=g.partial`:host([color='danger']){background-color:${si};color:${Ke}}:host([color='important']){background-color:${T};color:${P}}:host([color='informative']){background-color:${xa};color:${Y}}:host([color='severe']){background-color:${ui};color:${Ke}}:host([color='subtle']){background-color:${P};color:${T}}:host([color='success']){background-color:${di};color:${Ke}}:host([color='warning']){background-color:${Va};color:${ya}}`,Oc=g.partial`:host([appearance='ghost']){color:${Ao};background-color:initial}:host([appearance='ghost'][color='danger']){color:${li}}:host([appearance='ghost'][color='important']){color:${T}}:host([appearance='ghost'][color='informative']){color:${Y}}:host([appearance='ghost'][color='severe']){color:${gi}}:host([appearance='ghost'][color='subtle']){color:${dt}}:host([appearance='ghost'][color='success']){color:${La}}:host([appearance='ghost'][color='warning']){color:${Mr}}`,kv=g.partial`:host([appearance='outline']){border-color:currentColor;color:${Ao};background-color:initial}:host([appearance='outline'][color='danger']){color:${li}}:host([appearance='outline'][color='important']){color:${Y};border-color:${Ve}}:host([appearance='outline'][color='informative']){color:${Y};border-color:${so}}:host([appearance='outline'][color='severe']){color:${gi}}:host([appearance='outline'][color='subtle']){color:${Wn}}:host([appearance='outline'][color='success']){color:${Da}}:host([appearance='outline'][color='warning']){color:${Mr}}`,xv=g.partial`:host([appearance='tint']){background-color:${ti};color:${$a};border-color:${ri}}:host([appearance='tint'][color='danger']){background-color:${ii};color:${Lr};border-color:${ai}}:host([appearance='tint'][color='important']){background-color:${Y};color:${P};border-color:${X}}:host([appearance='tint'][color='informative']){background-color:${ka};color:${Y};border-color:${so}}:host([appearance='tint'][color='severe']){background-color:${hi};color:${Ma};border-color:${pi}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${Y};border-color:${so}}:host([appearance='tint'][color='success']){background-color:${ci};color:${Ea};border-color:${Fa}}:host([appearance='tint'][color='warning']){background-color:${Ha};color:${Mr};border-color:${Ra}}`,Fc=g`:host([shape='square']){border-radius:${Do}}:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${xv} ${kv} ${Oc} ${_c} ${zc} ${Ac} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function wv(o={}){return b`${He(o)}<slot>${fe(o.defaultContent)}</slot>${it(o)}`}const Ec=wv(),Dc=Ht.compose({name:vv,template:Ec,styles:Fc});Dc.define(u.registry);var Sv=Object.defineProperty,Bv=Object.getOwnPropertyDescriptor,Ce=(o,e,t,r)=>{for(var n=r>1?void 0:r?Bv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Sv(e,t,n),n};class le extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Zo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case Zo.reset:{this.resetForm();break}case Zo.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Zo.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}le.formAssociated=!0,Ce([a({mode:"boolean"})],le.prototype,"autofocus",2),Ce([f],le.prototype,"defaultSlottedContent",2),Ce([a({mode:"boolean"})],le.prototype,"disabled",2),Ce([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),Ce([a({attribute:"formaction"})],le.prototype,"formAction",2),Ce([a({attribute:"form"})],le.prototype,"formAttribute",2),Ce([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),Ce([a({attribute:"formmethod"})],le.prototype,"formMethod",2),Ce([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),Ce([a({attribute:"formtarget"})],le.prototype,"formTarget",2),Ce([a],le.prototype,"name",2),Ce([a],le.prototype,"type",2),Ce([a],le.prototype,"value",2);var Cv=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var n=r>1?void 0:r?Pv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cv(e,t,n),n};class Je extends le{constructor(){super(...arguments),this.iconOnly=!1}}en([a],Je.prototype,"appearance",2),en([a],Je.prototype,"shape",2),en([a],Je.prototype,"size",2),en([a({attribute:"icon-only",mode:"boolean"})],Je.prototype,"iconOnly",2),ct(Je,nt);function Oi(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${He(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot></span>${it(o)}</template>`}const Lc=Oi(),Mc=Je.compose({name:Vm,template:Lc,styles:co});Mc.define(u.registry);const Iv={circular:"circular",square:"square"},Nv={medium:"medium",large:"large"},Tv=`${u.prefix}-checkbox`;var Av=Object.defineProperty,zv=Object.getOwnPropertyDescriptor,kt=(o,e,t,r)=>{for(var n=r>1?void 0:r?zv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Av(e,t,n),n};class Pe extends x{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,kt([a({mode:"boolean"})],Pe.prototype,"autofocus",2),kt([f],Pe.prototype,"disabled",2),kt([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),kt([a({attribute:"form"})],Pe.prototype,"formAttribute",2),kt([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),kt([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),kt([a],Pe.prototype,"name",2),kt([a({mode:"boolean"})],Pe.prototype,"required",2);var _v=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,Fi=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ov(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_v(e,t,n),n};class tr extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Fi([f],tr.prototype,"indeterminate",2),Fi([a],tr.prototype,"shape",2),Fi([a],tr.prototype,"size",2);const Fv=N("active"),Ev=N("bad-input"),y=N("checked"),Dv=N("custom-error"),Lv=N("description"),$e=N("disabled");N("error");const Mv=N("flip-block"),Hv=N("focus-visible");N("has-message");const Vt=N("indeterminate"),uo=N("multiple"),Vv=N("open"),Rv=N("pattern-mismatch"),jv=N("placeholder-shown"),R=N("pressed"),qv=N("range-overflow"),Wv=N("range-underflow"),Gv=N("required"),Ei=N("selected"),Xv=N("step-mismatch"),tn=N("submenu"),Uv=N("too-long"),Kv=N("too-short"),Yv=N("type-mismatch"),Jv=N("user-invalid"),Qv=N("valid"),Zv=N("value-missing"),Hc=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${ze};border:${I} solid ${Ve};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ut}}:host(:active){border-color:${pt}}:host(${y}:hover){background-color:${_t};border-color:${Na}}:host(${y}:active){background-color:${Ot};border-color:${ni}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${X};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${de}}.indeterminate-indicator,.checked-indicator{color:${dt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Vt}){border-color:${at}}:host(${y}),:host(${Vt}) .indeterminate-indicator{background-color:${ht}}:host(${Vt}) .indeterminate-indicator{border-radius:${ze};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${he}}:host([disabled]),:host([disabled]${y}){background-color:${st};border-color:${be}}:host([disabled]){cursor:unset}:host([disabled]${Vt}) .indeterminate-indicator{background-color:${be}}:host([disabled]${y}) .checked-indicator{color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Vt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Vt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Vt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,e$=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),t$=b.partial("<span class=indeterminate-indicator></span>");function o$(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${fe(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${fe(o.indeterminateIndicator)}</slot></template>`}const Vc=o$({checkedIndicator:e$,indeterminateIndicator:t$}),Rc=tr.compose({name:Tv,template:Vc,styles:Hc});Rc.define(u.registry);const r$=Yo,n$=Jo,i$=Qo,s$=`${u.prefix}-compound-button`;class jc extends Je{}const qc=g`${co} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${D};font-weight:${F}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${At}}:host(:active) ::slotted([slot='description']){color:${zt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ke}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${No}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${To}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${z}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ve}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${te}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${_e}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function a$(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${He(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot><slot name=description></slot></span>${it(o)}</template>`}const Wc=a$(),Gc=jc.compose({name:s$,template:Wc,styles:qc});Gc.define(u.registry);const l$={filled:"filled",ghost:"ghost"},c$={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},d$={circular:"circular",rounded:"rounded"},h$={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Xc=`${u.prefix}-counter-badge`;var u$=Object.defineProperty,p$=Object.getOwnPropertyDescriptor,or=(o,e,t,r)=>{for(var n=r>1?void 0:r?p$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&u$(e,t,n),n};class Rt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}or([a({converter:ae})],Rt.prototype,"count",2),or([a({attribute:"overflow-count",converter:ae})],Rt.prototype,"overflowCount",2),or([a({attribute:"show-zero",mode:"boolean"})],Rt.prototype,"showZero",2),or([a({mode:"boolean"})],Rt.prototype,"dot",2),or([Se],Rt.prototype,"displayValue",1);var g$=Object.defineProperty,f$=Object.getOwnPropertyDescriptor,on=(o,e,t,r)=>{for(var n=r>1?void 0:r?f$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&g$(e,t,n),n};class jt extends Rt{}on([a],jt.prototype,"appearance",2),on([a],jt.prototype,"color",2),on([a],jt.prototype,"shape",2),on([a],jt.prototype,"size",2),ct(jt,nt);const Uc=g`:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${zc} ${_c} ${Oc} ${Ac} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function b$(o={}){return b`${He(o)} <span>${e=>e.displayValue}</span> ${it(o)}`}const Kc=b$(),Yc=jt.compose({name:Xc,template:Kc,styles:Uc});Yc.define(u.registry);const xt={modal:"modal",nonModal:"non-modal",alert:"alert"};function Di(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const m$=`${u.prefix}-dialog`;var v$=Object.defineProperty,$$=Object.getOwnPropertyDescriptor,Qe=(o,e,t,r)=>{for(var n=r>1?void 0:r?$$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&v$(e,t,n),n};class Oe extends x{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==xt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===xt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),E.enqueue(()=>{this.type=this.type??xt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){E.enqueue(()=>{this.emitBeforeToggle(),this.type===xt.alert||this.type===xt.modal?this.dialog.showModal():this.type===xt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==xt.alert&&e.target===this.dialog&&this.hide(),!0}}Qe([f],Oe.prototype,"dialog",2),Qe([a({attribute:"aria-describedby"})],Oe.prototype,"ariaDescribedby",2),Qe([a({attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledby",2),Qe([a({attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),Qe([a],Oe.prototype,"type",2),Qe([Se],Oe.prototype,"dialogDescribedby",1),Qe([Se],Oe.prototype,"dialogLabel",1),Qe([Se],Oe.prototype,"dialogLabelledby",1),Qe([Se],Oe.prototype,"dialogModal",1),Qe([Se],Oe.prototype,"dialogRole",1);const Jc=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${A("dialog")}><slot></slot></dialog>`,Qc=g`@layer base{:host{--dialog-backdrop:${Fr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${mi};border:none;box-shadow:${Pi};color:${T};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Xr};transition-timing-function:${mt};opacity:0}::backdrop{transition-timing-function:${Ur}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${bt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${X}}}}`,Zc=Oe.compose({name:m$,template:Jc,styles:Qc});Zc.define(u.registry);const y$=`${u.prefix}-dialog-body`;class ed extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Di(t)&&t.hide()}return!0}}const td=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,od=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${re};padding:${ft} ${jr};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${T};column-gap:8px;display:flex;font-family:${v};font-size:${Ft};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${Vo};margin-block-end:calc(${re} * -1);margin-block-start:calc(${ft} * -1);padding-block-end:${re};padding-block-start:${ft}}.content{box-sizing:border-box;color:${T};font-family:${v};font-size:${O};font-weight:${F};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${re};inset-block-end:0;margin-block-end:calc(${ft} * -1);padding-block-end:${ft};padding-block-start:${Wr}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${re} * -1);padding-block-start:${re}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,rd=ed.compose({name:y$,template:td,styles:od});rd.define(u.registry);const ye={horizontal:"horizontal",vertical:"vertical"},po={separator:"separator",presentation:"presentation"},Li=ye,k$={center:"center",start:"start",end:"end"},x$={strong:"strong",brand:"brand",subtle:"subtle"},w$=`${u.prefix}-divider`;var S$=Object.defineProperty,B$=Object.getOwnPropertyDescriptor,nd=(o,e,t,r)=>{for(var n=r>1?void 0:r?B$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&S$(e,t,n),n};class rn extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??po.separator,this.role!==po.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Li.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??po.separator}`),t===po.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==po.presentation?t??null:null,Dt(this.elementInternals,e,t,Li)}}nd([a],rn.prototype,"role",2),nd([a],rn.prototype,"orientation",2);var C$=Object.defineProperty,P$=Object.getOwnPropertyDescriptor,Mi=(o,e,t,r)=>{for(var n=r>1?void 0:r?P$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&C$(e,t,n),n};class rr extends rn{}Mi([a({attribute:"align-content"})],rr.prototype,"alignContent",2),Mi([a],rr.prototype,"appearance",2),Mi([a({mode:"boolean"})],rr.prototype,"inset",2);function I$(){return b`<slot></slot>`}const id=I$(),sd=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${so};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${D};font-weight:${F};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Re}}:host([appearance='strong']) ::slotted(*){color:${T}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${oi}}:host([appearance='brand']) ::slotted(*){color:${Ao}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Pa}}:host([appearance='subtle']) ::slotted(*){color:${Y}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,ad=rr.compose({name:w$,template:id,styles:sd});ad.define(u.registry);const ld={start:"start",end:"end"},cd={small:"small",medium:"medium",large:"large",full:"full"},go={nonModal:"non-modal",modal:"modal",inline:"inline"},N$=`${u.prefix}-drawer`;var T$=Object.defineProperty,A$=Object.getOwnPropertyDescriptor,Fe=(o,e,t,r)=>{for(var n=r>1?void 0:r?A$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&T$(e,t,n),n};class ke extends x{constructor(){super(...arguments),this.position=ld.start,this.size=cd.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===go.modal)return!0}get dialogRole(){return this.dialog&&this.type===go.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),E.enqueue(()=>{this.type=this.type??go.modal})}show(){E.enqueue(()=>{this.emitBeforeToggle(),this.type===go.inline||this.type===go.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}Fe([a],ke.prototype,"type",2),Fe([a({attribute:"aria-labelledby"})],ke.prototype,"ariaLabelledby",2),Fe([a({attribute:"aria-describedby"})],ke.prototype,"ariaDescribedby",2),Fe([a],ke.prototype,"position",2),Fe([f],ke.prototype,"role",2),Fe([a({attribute:"size"})],ke.prototype,"size",2),Fe([f],ke.prototype,"dialog",2),Fe([Se],ke.prototype,"dialogDescribedby",1),Fe([Se],ke.prototype,"dialogLabel",1),Fe([Se],ke.prototype,"dialogLabelledby",1),Fe([Se],ke.prototype,"dialogModal",1),Fe([Se],ke.prototype,"dialogRole",1);const dd=g`${w("block")} :host{--dialog-backdrop:${Fr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${O};line-height:${L};font-family:${v};font-weight:${F};color:${T};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${X};border-inline-start-color:var(--drawer-separator,${X});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Pi};border:${I} solid ${X};background:${P}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Xr};transition-timing-function:${mt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${bt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${bt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Xr};transition-timing-function:${mt};background:var(--dialog-backdrop,${Fr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ur}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function z$(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${A("dialog")}><slot></slot></dialog>`}const hd=z$(),ud=ke.compose({name:N$,template:hd,styles:dd});ud.define(u.registry);const _$=`${u.prefix}-drawer-body`;class pd extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Di(t,"-drawer")&&t.hide()}return!0}}const Hi=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${F};`,O$=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${H};`,F$=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${Mo};`,gd=g.partial`font-family:${v};font-size:${ue};line-height:${me};font-weight:${F};`,Vi=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${F};`,E$=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${H};`,D$=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${Mo};`,L$=g.partial`font-family:${v};font-size:${ao};line-height:${Ho};font-weight:${F};`,M$=g.partial`font-family:${v};font-size:${ao};line-height:${Ho};font-weight:${H};`,fd=g.partial`font-family:${v};font-size:${Ft};line-height:${Vo};font-weight:${H};`,H$=g.partial`font-family:${v};font-size:${ue};line-height:${me};font-weight:${H};`,V$=g.partial`font-family:${v};font-size:${ue};line-height:${me};font-weight:${Mo};`,R$=g.partial`font-family:${v};font-size:${$i};line-height:${Si};font-weight:${H};`,j$=g.partial`font-family:${v};font-size:${vi};line-height:${wi};font-weight:${H};`,q$=g.partial`font-family:${v};font-size:${Lo};line-height:${xi};font-weight:${H};`,W$=g.partial`font-family:${v};font-size:${yi};line-height:${Bi};font-weight:${H};`,G$=g.partial`font-family:${v};font-size:${ki};line-height:${Ci};font-weight:${H};`,bd=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Zl};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${fd}}.footer{display:flex;justify-content:flex-start;gap:${oe}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function X$(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const md=X$(),vd=pd.compose({name:_$,template:md,styles:bd});vd.define(u.registry);function U$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const $d={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},K$={small:"small",medium:"medium",large:"large"},nn={combobox:"combobox",dropdown:"dropdown",select:"select"},Y$=`${u.prefix}-dropdown`;function Ri(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const J$=`${u.prefix}-listbox`;function qt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Q$=`${u.prefix}-option`,lt={ltr:"ltr",rtl:"rtl"},ji=o=>o.closest("[dir]")?.dir==="rtl"?lt.rtl:lt.ltr;function yd(o){return o.closest("[lang]")?.lang??"en"}let Z$=0;function Ze(o="id-"){const e=`${o}${Z$++}`;return document.getElementById(e)?Ze(o):e}const ey=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${A("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,kd=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${A("control")}>`,xd=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${A("control")}>${o=>o.displayValue}</button>`;function ty(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${A("controlSlot")}></slot><slot name=indicator ${A("indicatorSlot")}>${fe(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const wd=ty({indicator:ey});var oy=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var n=r>1?void 0:r?ry(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&oy(e,t,n),n};const q=class xo extends x{constructor(){super(),this.activeIndex=0,this.id=Ze("dropdown-"),this.required=!1,this.type=nn.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||ji(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((n,i)=>{n.active=i===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ze("input-"))}disabledChanged(e,t){this.listbox&&E.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(yd(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),E.enqueue(()=>{this.options.forEach(n=>{n.disabled=n.disabledAttribute||this.disabled,n.name=this.name}),this.enabledOptions.filter(n=>n.defaultSelected).forEach((n,i)=>{n.selected=this.multiple||i===0}),this.setValidity()}),Jr){const n=Ze("--dropdown-anchor-");this.style.setProperty("anchor-name",n),this.listbox.style.setProperty("position-anchor",n)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&E.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Jr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>qt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===nn.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>qt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(qt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(yd(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===nn.combobox){kd.render(this,this);return}xd.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let r=this.searchString.length>1?this.filterOptions(this.searchString):[],n=!1;if(!r.length&&t&&(r=this.filterOptions(e),n=!0),r.length){const i=this.enabledOptions[this.activeIndex],s=r.indexOf(i),c=n?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?i:r[0];this.activeIndex=this.enabledOptions.indexOf(c)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let n=this.getEnabledIndexInBounds(r);return n===0&&this.freeformOption?.hidden&&(n=this.getEnabledIndexInBounds(r+t)),this.activeIndex=n,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!qt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const n=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:n,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Ko(this,()=>{const r=t.assignedElements().find(n=>Ri(n));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),E.enqueue(()=>{this.insertControl()})}disconnectedCallback(){xo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(xo.AnchorPositionFallbackObserver||(xo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:n,target:i})=>{if(Ri(i)){if(r.bottom>window.innerHeight){$(i.elementInternals,"flip-block",!0);return}r.top<0&&$(i.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,xo.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}xo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};q.formAssociated=!0,J([Se],q.prototype,"activeDescendant",1),J([f],q.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],q.prototype,"ariaLabelledBy",2),J([f],q.prototype,"control",2),J([a({mode:"boolean"})],q.prototype,"disabled",2),J([Se],q.prototype,"displayValue",1),J([a({attribute:"id"})],q.prototype,"id",2),J([f],q.prototype,"indicator",2),J([f],q.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),J([f],q.prototype,"listbox",2),J([a({mode:"boolean"})],q.prototype,"multiple",2),J([a],q.prototype,"name",2),J([f],q.prototype,"open",2),J([a],q.prototype,"placeholder",2),J([a({mode:"boolean"})],q.prototype,"required",2),J([a],q.prototype,"type",2),J([a({attribute:"value"})],q.prototype,"valueAttribute",2);let Sd=q;var ny=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,Bd=(o,e,t,r)=>{for(var n=r>1?void 0:r?iy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ny(e,t,n),n};class sn extends Sd{constructor(){super(...arguments),this.appearance=$d.outline}}Bd([a],sn.prototype,"appearance",2),Bd([a],sn.prototype,"size",2);const Cd=g`${w("inline-flex")} :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${T};cursor:pointer}:host(${jv}){color:${_r}}.control{appearance:none;background-color:${P};border-radius:${B};border:${I} solid ${X};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${V};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${lo} ${Ye};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${Hi}}:host([size='small']) .control{column-gap:${V};padding:${Et} ${ve};${Vi}}:host([size='large']) .control{column-gap:${_e};padding:${re} ${oe};${gd}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Y};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${at};height:${pe};scale:0 1;transition:scale ${Gr} ${mt}}:host(:where(:focus-within)) .control{border-radius:${B};box-shadow:inset 0 0 0 1px ${Eo};outline:${pe} solid ${de}}:host(:where(${Vv},:focus-within)) .control::after{scale:1 1;transition-duration:${Go};transition-timing-function:${bt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Ve}}:host([appearance='transparent']) .control{--control-border-color:${Er};background-color:${ce};border-radius:${Do}}:host([appearance='outline']) .control{--control-border-color:${Re}}:host([appearance='outline']) .control:hover{--control-border-color:${gt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${ut}}:host([appearance='outline']) .control:hover::after{background-color:${_t}}:host([appearance='outline']) .control:active{--control-border-color:${io}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${pt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ot}}:host([appearance='filled-darker']) .control{background-color:${oo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${X}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${be};background-color:${st};color:${z}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${L} + (${lo} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${j} + (${Et} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${me} + (${re} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`,Pd=sn.compose({name:Y$,template:wd,styles:Cd});Pd.define(u.registry);const Id={above:"above",after:"after",before:"before"},Ie={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},sy=`${u.prefix}-field`;var ay=Object.defineProperty,ly=Object.getOwnPropertyDescriptor,an=(o,e,t,r)=>{for(var n=r>1?void 0:r?ly(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ay(e,t,n),n};class fo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(n=>n.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ze("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Ie))$(this.elementInternals,t,this.input.validity[e])}}an([f],fo.prototype,"labelSlot",2),an([f],fo.prototype,"messageSlot",2),an([f],fo.prototype,"slottedInputs",2),an([f],fo.prototype,"input",2);var cy=Object.defineProperty,dy=Object.getOwnPropertyDescriptor,hy=(o,e,t,r)=>{for(var n=r>1?void 0:r?dy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&cy(e,t,n),n};class qi extends fo{constructor(){super(...arguments),this.labelPosition=Id.above}}hy([a({attribute:"label-position"})],qi.prototype,"labelPosition",2);const Nd=g`${w("inline-grid")} :host{color:${T};align-items:center;gap:0 ${oe};justify-items:start}:has([slot='message']){color:${T};row-gap:${re}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${oe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${jo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${ec}}:host(${Gv}) ::slotted([slot='label'])::after{content:'*'/'';color:${Lr};margin-inline-start:${te}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Y};font-family:${v};font-size:${D};font-weight:${F};grid-area:message;line-height:${j};margin-block-start:${jo}}:host(${Hv}:focus-within){border-radius:${B};outline:${pe} solid ${de}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${O};font-weight:${F};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${j}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${$e}){cursor:default}::slotted([flag]){display:none}:host(${Ev}) ::slotted([flag='${Ie.badInput}']),:host(${Dv}) ::slotted([flag='${Ie.customError}']),:host(${Rv}) ::slotted([flag='${Ie.patternMismatch}']),:host(${qv}) ::slotted([flag='${Ie.rangeOverflow}']),:host(${Wv}) ::slotted([flag='${Ie.rangeUnderflow}']),:host(${Xv}) ::slotted([flag='${Ie.stepMismatch}']),:host(${Uv}) ::slotted([flag='${Ie.tooLong}']),:host(${Kv}) ::slotted([flag='${Ie.tooShort}']),:host(${Yv}) ::slotted([flag='${Ie.typeMismatch}']),:host(${Zv}) ::slotted([flag='${Ie.valueMissing}']),:host(${Qv}) ::slotted([flag='${Ie.valid}']){display:block}`,Td=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${K("labelSlot")}></slot><slot name=input part=input ${K("slottedInputs")}></slot><slot name=message part=message ${K({property:"messageSlot",filter:Bo("[flag]")})}></slot></template>`,Ad=qi.compose({name:sy,template:Td,styles:Nd,shadowOptions:{delegatesFocus:!0}});Ad.define(u.registry);const uy={none:"none",center:"center",contain:"contain",cover:"cover"},py={circular:"circular",rounded:"rounded",square:"square"},gy=`${u.prefix}-image`;var fy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,nr=(o,e,t,r)=>{for(var n=r>1?void 0:r?by(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&fy(e,t,n),n};class Wt extends x{}nr([a({mode:"boolean"})],Wt.prototype,"block",2),nr([a({mode:"boolean"})],Wt.prototype,"bordered",2),nr([a({mode:"boolean"})],Wt.prototype,"shadow",2),nr([a],Wt.prototype,"fit",2),nr([a],Wt.prototype,"shape",2);const zd=b`<slot></slot>`,_d=g`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${so}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${Ro}}:host([shape='circular']) ::slotted(img){border-radius:${he}}:host([shape='rounded']) ::slotted(img){border-radius:${B}}`,Od=Wt.compose({name:gy,template:zd,styles:_d});Od.define(u.registry);const my={small:"small",medium:"medium",large:"large"},vy={regular:"regular",semibold:"semibold"},$y=`${u.prefix}-label`;var yy=Object.defineProperty,ky=Object.getOwnPropertyDescriptor,ln=(o,e,t,r)=>{for(var n=r>1?void 0:r?ky(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&yy(e,t,n),n};class bo extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ln([a],bo.prototype,"size",2),ln([a],bo.prototype,"weight",2),ln([a({mode:"boolean"})],bo.prototype,"disabled",2),ln([a({mode:"boolean"})],bo.prototype,"required",2);const Fd=g`${w("inline-flex")} :host{color:${T};cursor:pointer;font-family:${v};font-size:${O};font-weight:${F};line-height:${L};user-select:none}.asterisk{color:${Lr};margin-inline-start:${te}}:host([size='small']){font-size:${D};line-height:${j}}:host([size='large']){font-size:${ue};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${z}}`;function xy(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Ed=xy(),Dd=bo.compose({name:$y,template:Ed,styles:Fd});Dd.define(u.registry);const wy={subtle:"subtle"},Sy=mc,By=`${u.prefix}-link`;var Cy=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,Ld=(o,e,t,r)=>{for(var n=r>1?void 0:r?Py(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cy(e,t,n),n};class cn extends je{constructor(){super(...arguments),this.inline=!1}}Ld([a],cn.prototype,"appearance",2),Ld([a({mode:"boolean"})],cn.prototype,"inline",2);const Md=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${ca};cursor:pointer;font-family:${v};font-size:${O};font-weight:${F};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${da}}:host(:active){color:${ha}}:host([appearance='subtle']:hover){color:${pa}}:host([appearance='subtle']:active){color:${ga}}}:host([appearance='subtle']){color:${ua}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Iy(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Hd=Iy(),Vd=cn.compose({name:By,template:Hd,styles:Md});Vd.define(u.registry);var Ny=Object.defineProperty,Ty=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ty(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ny(e,t,n),n};class Gt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),E.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,n)=>{r.elementInternals.ariaPosInSet=`${n+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return qt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Ko(this,()=>{this.id=this.id||Ze("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,n)=>{const i=n===e;r.selected=i,i&&(t=n)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Ko(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>qt(r));this.options=t}})}}ir([f],Gt.prototype,"defaultSlot",2),ir([f],Gt.prototype,"multiple",2),ir([f],Gt.prototype,"options",2),ir([f],Gt.prototype,"selectedIndex",2),ir([f],Gt.prototype,"dropdown",2);const Rd=g`${w("inline-flex")} :host{background-color:${P};border-radius:${B};border:${I} solid ${X};box-shadow:${Vr};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${te};row-gap:${V};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Mv}){margin-block-start:revert;translate:0 -100%}}`;function jd(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${A("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const qd=jd(),Wd=Gt.compose({name:J$,template:qd,styles:Rd});Wd.define(u.registry);const Ay=co,zy=Yo,_y=Jo,Oy=Qo,Fy=`${u.prefix}-menu-button`;class Gd extends Je{}const Xd=Oi({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),Ud=Gd.compose({name:Fy,template:Xd,styles:Ay});Ud.define(u.registry);const Q={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},Ey={[Q.menuitem]:"menuitem",[Q.menuitemcheckbox]:"menuitemcheckbox",[Q.menuitemradio]:"menuitemradio"};function Dy(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ly=`${u.prefix}-menu-item`;var My=Object.defineProperty,Hy=Object.getOwnPropertyDescriptor,mo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Hy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&My(e,t,n),n};class et extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Q.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Q.menuitemcheckbox:this.checked=!this.checked;break;case Q.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Q.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Q.menuitem}checkedChanged(e,t){const r=this.role!==Q.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Q.menuitem,this.elementInternals.ariaChecked=this.role!==Q.menuitem?`${!!this.checked}`:null}}mo([a({mode:"boolean"})],et.prototype,"disabled",2),mo([a],et.prototype,"role",2),mo([a({mode:"boolean"})],et.prototype,"checked",2),mo([a({mode:"boolean"})],et.prototype,"hidden",2),mo([f],et.prototype,"slottedSubmenu",2),mo([f],et.prototype,"submenu",2),ct(et,nt);const Kd=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${B};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${F} ${O}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${zo};color:${At}}:host(:active){background-color:${Gn};color:${zt}}:host(:active) ::slotted([slot='start']){color:${ba}}:host(${$e}){background-color:${st};color:${z}}:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${B};outline:2px solid ${de}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${tn})) .submenu-glyph,:host(:not(${tn})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Y};font:${F} ${D}/${j} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${tn}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${tn}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${$e}),:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:GrayText}}`,Vy=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),Ry=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function jy(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${fe(o.indicator)}</slot>${He(o)}<div part=content class=content><slot></slot></div>${it(o)}<slot name=submenu-glyph>${fe(o.submenuGlyph)}</slot><slot name=submenu ${K({property:"slottedSubmenu"})}></slot></template>`}const Yd=jy({indicator:Vy,submenuGlyph:Ry}),Jd=et.compose({name:Ly,template:Yd,styles:Kd});Jd.define(u.registry);const qy=`${u.prefix}-menu-list`;var sr={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Wi={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Gi(o,e){return o.contains(e)}function Wy(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Gy(o,e,t){const r="forward",n="backward",i="block",s="inline";if(Xy(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?n:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?i:s,k=d?s:i,S=d?c.endsWith("-rl")!==l:l,Le=d&&l,Bt={ArrowUp:{axis:k,dir:Le?r:n},ArrowDown:{axis:k,dir:Le?n:r},ArrowLeft:{axis:p,dir:S?r:n},ArrowRight:{axis:p,dir:S?n:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!Bt||t&&Bt.axis&&Bt.axis!==t?null:Bt.dir}function Xy(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Uy=globalThis.__FOCUSGROUP_POLYFILL__,Ky=Uy.o;function Xi(){for(const o of Ky)o.takeRecords()}var dn=class{#t;#e;#s=Wi.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#n=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(Wy()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#k.bind(this),r)}disconnect(){this.#i(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(sr.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Wi.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Wi.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(sr.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#i(),this.#m(o)),this.#e.flush?.()}#b(){this.#i();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(sr.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(sr.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(Gy(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#n&&(!o.relatedTarget||!Gi(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#i(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#n&&this.#i();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#k(o){if(!o.relatedTarget||!Gi(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Gi(this.#t,o.relatedTarget)||this.#a||!this.#r)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#r||t!==this.#r){for(const{element:r,segmentBoundary:n}of this.#e.items())r.tabIndex=n?0:-1;t&&(t.tabIndex=0,this.#r=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(sr.AUTHOR_TABINDEX);this.#n||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#n=!0,Xi())}#i(){this.#n&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#n=!1,this.#l=null,this.#e.flush?.(),Xi())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#i(),Xi()}};class hn{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Yy=Object.defineProperty,Jy=Object.getOwnPropertyDescriptor,Qy=(o,e,t,r)=>{for(var n=r>1?void 0:r?Jy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Yy(e,t,n),n};const Ui=class ss extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&ls(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let i=r-1;i>=0;--i){const s=this.menuChildren[i],c=s.role;if(c===Q.menuitemradio&&(s.checked=!1),c==="separator")break}const n=this.menuChildren.length-1;for(let i=r+1;i<=n;++i){const s=this.menuChildren[i],c=s.role;if(c===Q.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),E.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Q.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);e.forEach(r=>{m.getNotifier(r).subscribe(this,"hidden")}),this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,n)=>{const i=ss.elementIndent(n);return Math.max(r,i)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return Dy(e)||ls(e)&&!!e.role&&e.role in ss.focusableElementRoles}};Ui.focusableElementRoles=Q,Qy([f],Ui.prototype,"items",2);let Qd=Ui;class Zd extends Qd{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new hn(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new dn(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const eh=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${X};border-radius:${B};box-shadow:${Vr};padding:4px;row-gap:2px}`;function Zy(){return b`<template focusgroup=menu><slot ${K("items")}></slot></template>`}const th=Zy(),oh=Zd.compose({name:qy,template:th,styles:eh});oh.define(u.registry);const e0=`${u.prefix}-menu`;var t0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,wt=(o,e,t,r)=>{for(var n=r>1?void 0:r?o0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&t0(e,t,n),n};class tt extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof et&&(e.target.getAttribute("role")===Q.menuitemcheckbox||e.target.getAttribute("role")===Q.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){E.enqueue(()=>{this._menuList.focus()})}focusTrigger(){E.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}wt([a({attribute:"open-on-hover",mode:"boolean"})],tt.prototype,"openOnHover",2),wt([a({attribute:"open-on-context",mode:"boolean"})],tt.prototype,"openOnContext",2),wt([a({attribute:"close-on-scroll",mode:"boolean"})],tt.prototype,"closeOnScroll",2),wt([a({attribute:"persist-on-item-click",mode:"boolean"})],tt.prototype,"persistOnItemClick",2),wt([a({mode:"boolean"})],tt.prototype,"split",2),wt([f],tt.prototype,"slottedMenuList",2),wt([f],tt.prototype,"slottedTriggers",2),wt([f],tt.prototype,"primaryAction",2);const rh=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${Re};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function r0(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${A("primaryAction")}></slot><slot name=trigger ${K({property:"slottedTriggers",filter:Bo()})}></slot><slot ${K({property:"slottedMenuList",filter:Bo()})}></slot></template>`}const nh=r0(),ih=tt.compose({name:e0,template:nh,styles:rh});ih.define(u.registry);const n0={multiline:"multiline",singleline:"singleline"},i0={rounded:"rounded",square:"square"},s0={success:"success",warning:"warning",error:"error",info:"info"},a0=`${u.prefix}-message-bar`;var l0=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,Ki=(o,e,t,r)=>{for(var n=r>1?void 0:r?c0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&l0(e,t,n),n};class ar extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ki([a],ar.prototype,"shape",2),Ki([a],ar.prototype,"layout",2),Ki([a],ar.prototype,"intent",2);const sh=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${D};line-height:${j};width:100%;background:${oo};border:1px solid ${Re};padding-inline:${oe};border-radius:${B};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ci};border-color:${Oa}}:host([intent='warning']){background-color:${hi};border-color:${pi}}:host([intent='error']){background-color:${ii};border-color:${ai}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${qo};padding-inline:${oe}}.content{grid-area:body;max-width:520px;padding-block:${qo};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Y};margin-inline-end:${_e}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${_e};gap:${_e}}:host([layout='multiline']) .actions{margin-block-start:${qo};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${re}}::slotted(*){font-size:inherit}`;function d0(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const ah=d0(),lh=ar.compose({name:a0,template:ah,styles:sh,shadowOptions:{mode:u.shadowRootMode}});lh.define(u.registry);var h0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var n=r>1?void 0:r?u0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&h0(e,t,n),n};class ne extends x{constructor(){super(),this.active=!1,this.id=Ze("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,E.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ne.formAssociated=!0,xe([f],ne.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),xe([f],ne.prototype,"descriptionSlot",2),xe([f],ne.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ne.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ne.prototype,"freeform",2),xe([a({attribute:"id"})],ne.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),xe([f],ne.prototype,"multiple",2),xe([a],ne.prototype,"name",2),xe([f],ne.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2);const ch=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${Hi} align-items:center;background-color:${P};border-radius:${B};box-sizing:border-box;color:${Ae};column-gap:${te};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ve};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${zo};color:${At}}:host(:active){background-color:${Or};color:${zt}}:host(:disabled){background-color:${P};color:${z};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ei}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${uo}) .checkmark-16-filled,:host(:not(${uo})) .checkmark-12-regular{display:none}:host(${uo}) .checkmark-12-regular{background-color:${P};border-radius:${ze};border:${I} solid ${Ve};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${uo}${Ei}) .checkmark-12-regular{background-color:${ht};border-color:${at};fill:${dt}}:host(:disabled${uo}) .checkmark-12-regular{border-color:${be}}:host(:disabled${uo}${Ei}) .checkmark-12-regular{background-color:${st}}:host(${Fv}){border:${pe} solid ${de}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ve}}}:host(${Lv}){column-gap:${ve};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Y};grid-area:description;${Vi}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,p0=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function g0(o={}){return b`<slot name=checked-indicator>${fe(o.checkedIndicator)}</slot>${He(o)}<div class=content part=content><slot ${K({property:"freeformOutputs",filter:Bo("output")})}></slot></div><div class=description part=description><slot name=description ${K("descriptionSlot")}></slot></div>`}const dh=g0({checkedIndicator:p0}),hh=ne.compose({name:Q$,template:dh,styles:ch});hh.define(u.registry);const f0={medium:"medium",large:"large"},b0={rounded:"rounded",square:"square"},uh={success:"success",warning:"warning",error:"error"},m0=`${u.prefix}-progress-bar`;var v0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,lr=(o,e,t,r)=>{for(var n=r>1?void 0:r?$0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&v0(e,t,n),n};class Xt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Dt(this.elementInternals,e,t,uh)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||E.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,n=t-e,i=n===0?0:Math.fround((r-e)/n*100);this.indicator?.style.setProperty("width",`${i}%`)})}}lr([f],Xt.prototype,"indicator",2),lr([a({attribute:"validation-state"})],Xt.prototype,"validationState",2),lr([a({converter:ae})],Xt.prototype,"value",2),lr([a({converter:ae})],Xt.prototype,"min",2),lr([a({converter:ae})],Xt.prototype,"max",2);var y0=Object.defineProperty,k0=Object.getOwnPropertyDescriptor,ph=(o,e,t,r)=>{for(var n=r>1?void 0:r?k0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&y0(e,t,n),n};class un extends Xt{}ph([a],un.prototype,"thickness",2),ph([a],un.prototype,"shape",2);const gh=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${ro};border-radius:${B};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${Do}}.indicator{background-color:${ht};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${ro} 0%,${ce} 50%,${ro} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${si}}:host([validation-state='warning']) .indicator{background-color:${ui}}:host([validation-state='success']) .indicator{background-color:${di}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function x0(){return b`<div class=indicator part=indicator ${A("indicator")}></div>`}const fh=x0(),bh=un.compose({name:m0,template:fh,styles:gh});bh.define(u.registry);const Yi=ye,w0=`${u.prefix}-radio-group`;function S0(o,e="-radio"){return as(e)(o)}const B0=`${u.prefix}-radio`;var C0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,St=(o,e,t,r)=>{for(var n=r>1?void 0:r?P0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&C0(e,t,n),n};class qe extends x{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??Yi.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??Yi.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const n=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===n,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&n>=0)&&(this.checkedIndex=n);const i=t.map(s=>s.id).join(" ").trim();i&&this.setAttribute("aria-owns",i)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>S0(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((n,i)=>{const s=i===e;n.checked=s,s&&(r=i,t&&n.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const i={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(i,s,c):c.elementInternals.setValidity({})})}}}qe.formAssociated=!0,St([f],qe.prototype,"checkedIndex",2),St([a({attribute:"disabled",mode:"boolean"})],qe.prototype,"disabled",2),St([a({attribute:"value",mode:"fromView"})],qe.prototype,"initialValue",2),St([a],qe.prototype,"name",2),St([a],qe.prototype,"orientation",2),St([f],qe.prototype,"radios",2),St([a({mode:"boolean"})],qe.prototype,"required",2),St([f],qe.prototype,"slottedRadios",2);class mh extends qe{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new hn(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new dn(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const vh=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Wr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Y}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${T}}::slotted(${$e}){color:${z}}::slotted(${y}){color:${T}}:host([slot='input']){margin:${re} ${_e}}`;function I0(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${K("slottedRadios")}></slot></template>`}const $h=I0(),yh=mh.compose({name:w0,template:$h,styles:vh});yh.define(u.registry);class kh extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const xh=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${I} solid ${Ve};border-radius:${he};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${he};color:${dt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${X};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${de}}:host(:hover){border-color:${ut}}:host(${y}){border-color:${at}}:host(${y}) .checked-indicator{background-color:${ht}}:host(${y}:hover) .checked-indicator{background-color:${_t}}:host(:active){border-color:${pt}}:host(${y}:active) .checked-indicator{background-color:${Ot}}:host(:focus-visible){outline:none}:host(${$e}){background-color:${st};border-color:${be}}:host(${y}${$e}) .checked-indicator{background-color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${$e}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${$e}):hover) .checked-indicator{background-color:Highlight}:host(${$e}){border-color:GrayText;color:GrayText}:host(${$e}${y}) .checked-indicator{background-color:GrayText}}`,N0=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function T0(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${fe(o.checkedIndicator)}</slot></template>`}const wh=T0({checkedIndicator:N0}),Sh=kh.compose({name:B0,template:wh,styles:xh});Sh.define(u.registry);const A0={neutral:"neutral",brand:"brand",marigold:"marigold"},z0={small:"small",medium:"medium",large:"large"},_0=`${u.prefix}-rating-display`;var O0=Object.defineProperty,F0=Object.getOwnPropertyDescriptor,cr=(o,e,t,r)=>{for(var n=r>1?void 0:r?F0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&O0(e,t,n),n};const E0=CSS.supports("width: attr(value type(<number>))"),vo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function pn(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Ut extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(vo.maskImageFilled),this.display.style.removeProperty(vo.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,n=`
|
|
6
6
|
<svg
|
|
7
7
|
viewBox="${r}"
|
|
8
8
|
xmlns="http://www.w3.org/2000/svg"
|