@fluentui/web-components 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function Hn(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function Vn(...o){return o.every(e=>e instanceof HTMLElement)}const iu={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},nu={start:"start",end:"end"};function Jr(o,e="-accordion-item"){return Hn(e)(o)}const su=`${h.prefix}-accordion-item`;class Qr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}var le;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.invalidHydrationAttributeMarker=1210]="invalidHydrationAttributeMarker",o[o.duplicateRenderInstruction=1211]="duplicateRenderInstruction",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(le||(le={}));const po=o=>typeof o=="function",at=o=>typeof o=="string",au=()=>{},lu=Object.create(null),we={warn(o,e){},error(o,e){return new Error(`Error ${o}`)},addMessages(o){Object.assign(lu,o)}},cu=Object.freeze([]);function ei(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function Rn(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function xt(o){o.prototype.toJSON=au}class jn extends Qr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}xt(jn);function qn(o,e){return new jn(o,e)}class ti{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,n=this.sub2;i!==void 0&&i.handleChange(r,e),n!==void 0&&n.handleChange(r,e)}else for(let i=0,n=t.length;i<n;++i)t[i].handleChange(r,e)}}class Wn{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let n;t?n=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new ti(this.subject):n=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new ti(this.subject),n.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const We=[],oi=[],du=globalThis.requestAnimationFrame;let ri=!0;function hu(){if(oi.length)throw oi.shift()}function uu(o){try{o.call()}catch(e){if(ri)oi.push(e),setTimeout(hu,0);else throw We.length=0,e}}function ii(){let e=0;for(;e<We.length;)if(uu(We[e]),e++,e>1024){for(let t=0,r=We.length-e;t<r;t++)We[t]=We[t+e];We.length-=e,e=0}We.length=0}function Gn(o){We.push(o),We.length<2&&(ri?du(ii):ii())}const N=Object.freeze({enqueue:Gn,next:()=>new Promise(Gn),process:ii,setMode:o=>ri=o}),sr=Object.freeze({unknown:void 0,coupled:1}),m=(()=>{const o=N.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw we.error(le.needsArrayObservation)};function n(d){var c;let g=(c=d.$fastController)!==null&&c!==void 0?c:t.get(d);return g===void 0&&(Array.isArray(d)?g=i(d):t.set(d,g=new Wn(d))),g}const s=Rn();class l{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return r!==void 0&&r.watch(c,this.name),c[this.field]}setValue(c,g){const S=this.field,O=c[S];if(O!==g){c[S]=g;const G=c[this.callback];po(G)&&G.call(c,O,g),n(c).notify(this.name)}}}class u extends ti{constructor(c,g,S=!1){super(c,g),this.expression=c,this.isVolatileBinding=S,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){const g=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),g}requiresUnbind(c){return c.sourceLifetime!==sr.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,g){this.needsRefresh&&this.last!==null&&this.dispose();const S=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let O;try{O=this.expression(c,g)}finally{r=S}return O}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,g){const S=this.last,O=n(c),G=S===null?this.first:{};if(G.propertySource=c,G.propertyName=g,G.notifier=O,O.subscribe(this,g),S!==null){if(!this.needsRefresh){let ae;r=void 0,ae=S.propertySource[S.propertyName],r=this,c===ae&&(this.needsRefresh=!0)}S.next=G}this.last=G}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return xt(u),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:n,track(d,c){r&&r.watch(d,c)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,c){n(d).notify(c)},defineProperty(d,c){at(c)&&(c=new l(c)),s(d).push(c),Reflect.defineProperty(d,c.name,{enumerable:!0,get(){return c.getValue(this)},set(g){c.setValue(this,g)}})},getAccessors:s,binding(d,c,g=this.isVolatileBinding(d)){return new u(d,c,g)},isVolatileBinding(d){return e.test(d.toString())}})})();function f(o,e){m.defineProperty(o,e)}const Xn=(()=>{let o=null;return{get(){return o},set(e){o=e}}})(),go=Object.freeze({default:{index:0,length:0,get event(){return go.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Xn.get()},setEvent(o){Xn.set(o)}});class pu extends Qr{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Un(o,e,t=m.isVolatileBinding(o)){return new pu(o,e,t)}const J=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Kn=o=>o,gu=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:Kn}):{createHTML:Kn};let ar=Object.freeze({createHTML(o){return gu.createHTML(o)},protect(o,e,t,r){return r}});const fu=ar,jt=Object.freeze({get policy(){return ar},setPolicy(o){if(ar!==fu)throw we.error(le.onlySetDOMPolicyOnce);ar=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),ni="boolean",Yn="reflect",lr=Object.freeze({locate:Rn()}),bu={toView(o){return o?"":null},fromView(o){return!!o}};function Zn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const oe={toView(o){const e=Zn(o);return e&&e.toString()},fromView:Zn};class Ur{constructor(e,t,r=t.toLowerCase(),i=Yn,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===ni&&n===void 0&&(this.converter=bu)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.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.mode===ni?this.setValue(e,t!==null):this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||N.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Yn:{const n=this.converter;jt.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break}case ni:jt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(lr.locate(e));for(let i=0,n=t.length;i<n;++i){const s=t[i];if(s!==void 0)for(let l=0,u=s.length;l<u;++l){const d=s[l];at(d)?r.push(new Ur(e,d)):r.push(new Ur(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,n){arguments.length>1&&(t.property=n),lr.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}let si;function Jn(o){return o.reduce((e,t)=>(t instanceof fe?e.push(...Jn(t.styles)):e.push(t),e),[])}class fe{get strategy(){return this._strategy===null&&(si||fe.setDefaultStrategy(fe.supportsAdoptedStyleSheets?mu():$u()),this.withStrategy(si)),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withStrategy(e){return this._strategy=new e(Jn(this.styles)),this}static setDefaultStrategy(e){si=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new fe(e):e instanceof fe?e:new fe([e])}}fe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;function mu(){const o=new Map;return class{constructor(t){this.sheets=t.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=o.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),o.set(r,i)),i})}addStylesTo(t){const r=t;r.adoptedStyleSheets=[...r.adoptedStyleSheets,...this.sheets]}removeStylesFrom(t){const r=t;r.adoptedStyleSheets=r.adoptedStyleSheets.filter(i=>this.sheets.indexOf(i)===-1)}}}let vu=0;function $u(){return class{constructor(e){this.styles=e,this.styleClass=`fast-${++vu}`}addStylesTo(e){const t=e===document?document.body:e;for(let r=0;r<this.styles.length;r++){const i=document.createElement("style");i.innerHTML=this.styles[r],i.className=this.styleClass,t.append(i)}}removeStylesFrom(e){const t=e===document?document.body:e,r=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,n=r.length;i<n;++i)t.removeChild(r[i])}}}const yu={},Qn=new WeakMap,ai=ei(),fo=Object.freeze({register(o){if(!ai.register(o))return!1;const e=es(o.registry);return Object.prototype.hasOwnProperty.call(e,o.name)||m.defineProperty(e,o.name),e[o.name]=o.type,!0},getByType:ai.getByType,getForInstance:ai.getForInstance,whenRegistered:ku});function es(o=customElements){if(o===customElements)return yu;let e=Qn.get(o);return e||(e={},Qn.set(o,e)),e}function ts(o){return o===void 0?void 0:fo.getByType(o)}function ku(o,e=customElements){const t=es(e);Object.prototype.hasOwnProperty.call(t,o)||m.defineProperty(t,o);const r=ts(t[o]);return r!==void 0?Promise.resolve(r):new Promise(i=>{const n=m.getNotifier(t),s={handleChange:()=>{const l=ts(t[o]);l!==void 0&&(n.unsubscribe(s,o),i(l))}};n.subscribe(s,o)})}const os={mode:"open"},rs={},is=new Set,cr=new WeakMap,dr=new WeakMap,wt=new WeakMap,ns=new WeakMap,xu=new WeakMap;function wu(o){return po(o)}function Su(o){return typeof o?.then=="function"}function ss(o,e){if(dr.delete(o),o.template===void 0&&e!==void 0&&(o.template=e),o.template!==void 0)return wt.delete(o),cr.delete(o),o.template}function as(o,e=o.registry,t){if(!t?.length)return;const r=o;let i=ns.get(r);if(!i?.has(e)){i===void 0&&(i=new WeakSet,ns.set(r,i)),i.add(e);for(const n of t)n(o)}}function li(o){var e;return(e=xu.get(o))!==null&&e!==void 0?e:null}function ls(o){if(o.template!==void 0)return wt.delete(o),o.template;const e=dr.get(o);if(e)return e;const t=cr.get(o);if(!t)return;wt.delete(o);let r;try{r=t(o)}catch(i){throw wt.set(o,i),i}if(Su(r)){const i=Promise.resolve(r).then(n=>ss(o,n)).catch(n=>{throw dr.delete(o),wt.set(o,n),n});return dr.set(o,i),i}return ss(o,r)}function Bu(o,e){const t=o;if(e===void 0){wt.delete(t);return}wt.set(t,e)}class Qe{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,at(t)&&(t={name:t}),this.type=e,this.name=t.name,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements,wu(t.template)?cr.set(this,t.template):this.template=t.template;const i=e.prototype,n=Ur.collect(e,t.attributes),s=new Array(n.length),l={},u={};for(let d=0,c=n.length;d<c;++d){const g=n[d];s[d]=g.attribute,l[g.name]=g,u[g.attribute]=g,m.defineProperty(i,g)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=l,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?os:t.shadowOptions===null?void 0:Object.assign(Object.assign({},os),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?rs:Object.assign(Object.assign({},rs),t.elementOptions),this.styles=fe.normalize(t.styles),this.schema=t.schema,fo.register(this)}define(e=this.registry,t){const r=this.type;if(!e.get(this.name)){if(as(this,e,t),this.template===void 0&&cr.has(this))return Promise.resolve().then(()=>ls(this)).then(i=>{i!==void 0&&!e.get(this.name)&&(this.platformDefined=!0,e.define(this.name,r,this.elementOptions))}).catch(i=>{Bu(this,i),m.notify(this,"template")}),this;this.platformDefined=!0,e.define(this.name,r,this.elementOptions)}return this}static compose(e,t){const r=is.has(e)||fo.getByType(e)?new Qe(class extends e{},t):new Qe(e,t);return Promise.resolve(r)}static registerBaseType(e){is.add(e)}}Qe.getByType=fo.getByType,Qe.getForInstance=fo.getForInstance,m.defineProperty(Qe.prototype,"template");const Cu={bubbles:!0,composed:!0,cancelable:!0},ci="isConnected",cs=new WeakMap,di=Symbol("fast-late-attribute-observer");function hr(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:cs.get(o))!==null&&t!==void 0?t:null}let ds;var be;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(be||(be={}));class qe{get isConnected(){return m.track(this,ci),this.stage===be.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:go.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"&&cs.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){this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this.isPrerendered=new Promise(n=>{this._resolvePrerendered=n}),this.isHydrated=new Promise(n=>{this._resolveHydrated=n}),this._template=null,this.stage=be.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new Wn(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=Reflect.getPrototypeOf(e),i=r===null?[]:m.getAccessors(r);if(i.length>0){const n=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s<l;++s){const u=i[s].name,d=e[u];d!==void 0&&(delete e[u],n[u]=d)}Object.keys(n).length===0&&(this.boundObservables=null)}this.captureBoundObservables()}get subject(){return this._notifier.subject}notify(e){this._notifier.notify(e)}subscribe(e,t){this._notifier.subscribe(e,t)}unsubscribe(e,t){this._notifier.unsubscribe(e,t)}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(r=i.get(e))!==null&&r!==void 0?r:0;n===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===be.connected||this.stage===be.connecting)&&e.connectedCallback(this)):i.set(e,n+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==be.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=hr(r))!==null&&t!==void 0?t:this.source).append(e):e.isAttachedTo(r)||e.addStylesTo(r)}removeStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=hr(r))!==null&&t!==void 0?t:r).removeChild(e):e.isAttachedTo(r)&&e.removeStylesFrom(r)}connect(){this.stage===be.disconnected&&(this.stage=be.connecting,this.captureBoundObservables(),this.syncLateAttributes(),this.observeLateAttributes(),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=be.connected,m.notify(this,ci))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,n=r.length;i<n;++i){const s=r[i];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),r=n=>{let s=Reflect.getPrototypeOf(e);for(;s!==null;){const l=Reflect.getOwnPropertyDescriptor(s,n);if(l?.get||l?.set)return!0;s=Reflect.getPrototypeOf(s)}return!1};let i=this.boundObservables;for(let n=0,s=t.length;n<s;++n){const l=t[n],u=l[0]==="_"?l.slice(1):l;if(!r(u))continue;const d=e[u],c=l!==u,g=d!==null&&typeof d=="object"&&!d?.$isProxy&&!(Array.isArray(d)&&d?.$fastController);if(d===void 0){c||delete e[l];continue}c&&!g||(delete e[l],(i??(i=this.boundObservables=Object.create(null)))[u]=d)}}syncLateAttributes(){const e=li(this.definition);if(e!==null)for(const t of Object.keys(e))this.source.hasAttribute(t)&&this.onAttributeChangedCallback(t,null,this.source.getAttribute(t))}observeLateAttributes(){const e=li(this.definition);if(e===null)return;const t=this.source;t[di]===void 0&&(t[di]=new MutationObserver(r=>{const i=t.$fastController,n=li(i.definition);if(n!==null)for(let s=0,l=r.length;s<l;++s){const u=r[s].attributeName;u===null||n[u]===void 0||i.onAttributeChangedCallback(u,null,t.getAttribute(u))}}),t[di].observe(t,{attributes:!0,attributeFilter:Object.keys(e)}))}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===be.connected&&(this.stage=be.disconnecting,m.notify(this,ci),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=be.disconnected)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===be.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Cu),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=hr(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||!this.needsInitialization))for(let n=i.firstChild;n!==null;n=i.firstChild)i.removeChild(n);if(e){const n=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;n&&qe.hydrationHook&&(s=qe.hydrationHook(this,e,r,i)),s||this.renderClientSide(e,r,i),this._resolvePrerendered(n),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,r){if(this.hasExistingShadowRoot){for(let i=r.firstChild;i!==null;i=r.firstChild)r.removeChild(i);this.hasExistingShadowRoot=!1}this.view=e.render(t,r,t),this.view.sourceLifetime=sr.coupled}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const i=Qe.getForInstance(e);if(i===void 0)throw we.error(le.missingElementDefinition);return m.getNotifier(i).subscribe({handleChange:()=>{qe.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(i).subscribe({handleChange:()=>{qe.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new ds(e,i)}static setStrategy(e){ds=e}static installHydrationHook(e){qe.hydrationHook=e}}qe.hydrationHook=null,xt(qe),qe.setStrategy(qe);function ur(o){var e;return"adoptedStyleSheets"in o?o:(e=hr(o))!==null&&e!==void 0?e:o.getRootNode()}class Kr{constructor(e){const t=Kr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){us(ur(e),this.sheets)}removeStylesFrom(e){ps(ur(e),this.sheets)}}Kr.styleSheetCache=new Map;let Pu=0;const Iu=()=>`fast-${++Pu}`;function hs(o){return o===document?document.body:o}class Au{constructor(e){this.styles=e,this.styleClass=Iu()}addStylesTo(e){e=hs(ur(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const n=document.createElement("style");n.innerHTML=t[i],n.className=r,e.append(n)}}removeStylesFrom(e){e=hs(ur(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let us=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},ps=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(fe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),us=(o,e)=>{o.adoptedStyleSheets.push(...e)},ps=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}fe.setDefaultStrategy(Kr)}else fe.setDefaultStrategy(Au);function gs(o){const e=class extends o{constructor(){super(),qe.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Qe.registerBaseType(e),e}function Nu(o){return typeof o?.then=="function"}function Tu(o,e,t){return Array.isArray(e)&&(t=e,e=void 0),(po(o)?Qe.compose(o,e):Qe.compose(this,o)).then(i=>{as(i,i.registry,t);const n=ls(i);return Nu(n)?n.then(()=>i.define().type):i.define().type})}function zu(o){return gs(o)}const k=Object.assign(gs(HTMLElement),{from:zu,define:Tu});function Se(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const hi=ei(),fs=Object.freeze({getForInstance:hi.getForInstance,getByType:hi.getByType,define(o){return hi.register({type:o}),o}});function bs(o,e){const t=[];let r="";for(let i=0,n=o.length-1;i<n;++i){r+=o[i];let s=e[i];fs.getForInstance(s)!==void 0&&(s=s.createCSS()),s instanceof fe||s instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(s)):r+=s}return r+=o[o.length-1],r.trim()!==""&&t.push(r),t}const p=(o,...e)=>new fe(bs(o,e));class ms{constructor(e){this.value=e.length===0?"":e.length===1?e[0]:new fe(e)}createCSS(){return this.value}}fs.define(ms),p.partial=(o,...e)=>new ms(bs(o,e));const ui=`fast-${Math.random().toString(36).substring(2,8)}`,pr=`${ui}{`,bo=`}${ui}`,_u=bo.length;let Eu=0;const pi=()=>`${ui}-${++Eu}`,vs=Object.freeze({interpolation:o=>`${pr}${o}${bo}`,attribute:o=>`${pi()}="${pr}${o}${bo}"`,comment:o=>`<!--${pr}${o}${bo}-->`}),gr=Object.freeze({parse(o,e){const t=o.split(pr);if(t.length===1)return null;const r=[];for(let i=0,n=t.length;i<n;++i){const s=t[i],l=s.indexOf(bo);let u;if(l===-1)u=s;else{const d=s.substring(0,l);r.push(e[d]),u=s.substring(l+_u)}u!==""&&r.push(u)}return r}}),gi=ei(),Ge=Object.freeze({getForInstance:gi.getForInstance,getByType:gi.getByType,define(o,e){return e=e||{},e.type=o,gi.register(e),o},assignAspect(o,e){if(!e){o.aspectType=J.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?J.tokenList:J.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=J.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=J.event;break;default:o.targetAspect=e,o.aspectType=J.attribute;break}}});class fi{constructor(e){this.options=e}createHTML(e){return vs.attribute(e(this))}createBehavior(){return this}}xt(fi);const Fu=o=>o.nodeType===1,mo=o=>o?e=>e.nodeType===1&&e.matches(o):Fu;class Ou extends fi{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,cu),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const $s=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Lu=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Du=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Mu=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Hu=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Vu=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ys(o){return o&&o.nodeType===Node.COMMENT_NODE}const Le=Object.freeze({attributeMarkerName:"data-fe",legacyAttributeMarkerName:"data-fe-b",legacyCompactAttributeMarkerName:"data-fe-c",contentBindingStartMarker(){return"fe:b"},contentBindingEndMarker(){return"fe:/b"},repeatStartMarker(){return"fe:r"},repeatEndMarker(){return"fe:/r"},elementBoundaryStartMarker(){return"fe:e"},elementBoundaryEndMarker(){return"fe:/e"},isContentBindingStartMarker(o){return o==="fe:b"||$s.test(o)},isContentBindingEndMarker(o){return o==="fe:/b"||Lu.test(o)},isRepeatViewStartMarker(o){return o==="fe:r"||Du.test(o)},isRepeatViewEndMarker(o){return o==="fe:/r"||Mu.test(o)},isElementBoundaryStartMarker(o){return ys(o)&&(o.data==="fe:e"||Hu.test(o.data))},isElementBoundaryEndMarker(o){return ys(o)&&(o.data==="fe:/e"||Vu.test(o.data))},parseAttributeBindingCount(o){const e=o.getAttribute(this.attributeMarkerName);if(e===null)return null;const t=e.trim();if(!/^\d+$/.test(t))throw we.error(le.invalidHydrationAttributeMarker,{value:e});const r=parseInt(t,10);if(r<1)throw we.error(le.invalidHydrationAttributeMarker,{value:e});return r},parseLegacyAttributeBindingIndices(o){const e=[],t=o.getAttribute(this.legacyAttributeMarkerName);if(t!==null)for(const n of t.trim().split(/\s+/)){if(n==="")continue;const s=Number(n);if(!Number.isInteger(s)||s<0)throw we.error(le.invalidHydrationAttributeMarker,{value:t});e.push(s)}const r=`${this.legacyAttributeMarkerName}-`,i=`${this.legacyCompactAttributeMarkerName}-`;for(const n of o.getAttributeNames())if(n.startsWith(r)){const s=Number(n.slice(r.length));if(!Number.isInteger(s)||s<0)throw we.error(le.invalidHydrationAttributeMarker,{value:n});e.push(s)}else if(n.startsWith(i)){const[s,l]=n.slice(i.length).split("-").map(u=>Number(u));if(!Number.isInteger(s)||!Number.isInteger(l)||s<0||l<1)throw we.error(le.invalidHydrationAttributeMarker,{value:n});for(let u=0;u<l;u++)e.push(s+u)}return e.length===0?null:e},removeLegacyAttributeBindingMarkers(o){o.removeAttribute(this.legacyAttributeMarkerName);for(const e of o.getAttributeNames())(e.startsWith(`${this.legacyAttributeMarkerName}-`)||e.startsWith(`${this.legacyCompactAttributeMarkerName}-`))&&o.removeAttribute(e)},parseLegacyContentBindingStartIndex(o){return Ru($s,o)}});function Ru(o,e){const t=o.exec(e);return t===null?null:Number(t[1])}const fr=Symbol.for("fe-hydration");function ks(o){return o[fr]===fr}const ju="unknown";function qu(o,e){const t=e?`: ${e}`:"";return`Hydration mismatch in <${o}>${t}. Install hydrationDebugger() from "@microsoft/fast-element/hydration.js" and pass it as enableHydration({ debugger: hydrationDebugger() }) for an "Expected / Received" report including the SSR HTML snippet.`}const Wu="content following `<!--fe:b-->` content binding marker",Gu="matching `<!--fe:/b-->` content binding close marker",Xu="matching `<!--fe:/e-->` element boundary close marker";function xs(o){return`no more attribute bindings (template defines ${o})`}function Uu(o){return`no more content bindings (template defines ${o})`}function ws(o,e){const t=(o??ju).toLowerCase();return qu(t,e)}const Ku={formatBindingMismatch(o,e,t,r){return{message:ws(r,void 0)}},formatStructuralError(o,e,t){return{message:ws(e,t)}}};let Yu=Ku;function St(){return Yu}function Bt(o){var e;return o?(e=o.getRootNode().host)===null||e===void 0?void 0:e.nodeName:void 0}class Ct extends Error{constructor(e,t,r,i,n){super(e),this.factories=t,this.node=r,this.expected=i,this.received=n}}function bi(o){return o.nodeType===Node.COMMENT_NODE}function Ss(o){return o.nodeType===Node.TEXT_NODE}function Bs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,bi(e)||Ss(e)?e.data.length:e.childNodes.length),t}function Zu(o,e,t){const r=Bs(o,e),i=r.commonAncestorContainer,n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(g){return r.comparePoint(g,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),s={},l={},u=ep(t);let d=u,c=n.currentNode=o;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{const g=c,S=Le.parseLegacyAttributeBindingIndices(g);if(S!==null){for(const G of S){const ae=G+u,st=t[ae];if(!st){const uo=xs(t.length),Zr=St().formatStructuralError(c,Bt(c),uo);throw new Ct(Zr.message,t,g,Zr.expected,Zr.received)}vo(st,c,s),d=Math.max(d,ae+1)}Le.removeLegacyAttributeBindingMarkers(g);break}const O=Le.parseAttributeBindingCount(g);if(O!==null){for(let G=0;G<O;G++){const ae=t[d++];if(!ae){const st=xs(t.length),uo=St().formatStructuralError(c,Bt(c),st);throw new Ct(uo.message,t,c,uo.expected,uo.received)}vo(ae,c,s)}g.removeAttribute(Le.attributeMarkerName)}break}case Node.COMMENT_NODE:{const g=c.data;if(Le.isElementBoundaryStartMarker(c))c.data="",Qu(n,t,c);else if(Le.isContentBindingStartMarker(g)){const S=Le.parseLegacyContentBindingStartIndex(g),O=S===null?d++:S+u,G=t[O];if(d=Math.max(d,O+1),!G){const ae=Uu(t.length),st=St().formatStructuralError(c,Bt(c),ae);throw new Ct(st.message,t,c,st.expected,st.received)}Ju(c,n,G,t,s,l)}break}}c=n.nextNode()}return r.detach(),{targets:s,boundaries:l}}function Ju(o,e,t,r,i,n){const s=[];let l=e.nextSibling();if(o.data="",l===null){const c=Wu,g=St().formatStructuralError(o,Bt(o),c);throw new Ct(g.message,r,o,g.expected,g.received)}const u=l;let d=0;for(;l!==null;){if(bi(l)){if(Le.isContentBindingStartMarker(l.data))d++;else if(Le.isContentBindingEndMarker(l.data)){if(d===0)break;d--}}s.push(l),l=e.nextSibling()}if(l===null){const c=Gu,g=St().formatStructuralError(o,Bt(o),c);throw new Ct(g.message,r,o,g.expected,g.received)}if(l.data="",s.length===1&&Ss(s[0]))vo(t,s[0],i);else{l!==u&&l.previousSibling!==null&&(n[t.targetNodeId]={first:u,last:l.previousSibling});const c=l.parentNode.insertBefore(document.createTextNode(""),l);vo(t,c,i)}}function Qu(o,e,t){let r=0,i=o.nextSibling();for(;i!==null;){if(bi(i)){if(Le.isElementBoundaryStartMarker(i))i.data="",r++;else if(Le.isElementBoundaryEndMarker(i)){if(r===0){i.data="";return}i.data="",r--}}i=o.nextSibling()}const n=Xu,s=St().formatStructuralError(t,Bt(t),n);throw new Ct(s.message,e,t,s.expected,s.received)}function ep(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function vo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}function mi(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Cs{constructor(){this.index=0,this.length=0}get event(){return go.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class br extends Cs{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=sr.unknown,this._skipAttrUpdates=!1,this.isPrerendered=Promise.resolve(!1),this.isHydrated=Promise.resolve(!1),this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){mi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e&&this.context===t)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n].createBehavior();l.bind(this),r[n]=l}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){mi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}xt(br),m.defineProperty(br.prototype,"index"),m.defineProperty(br.prototype,"length");var Ps;const $o={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class tp extends Error{constructor(e,t,r,i,n,s){super(e),this.factory=t,this.fragment=r,this.templateString=i,this.expected=n,this.received=s}}class op extends Cs{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Ps]=fr,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=sr.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=$o.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){if(this.source===e&&this.context===t)return;this.hydrationStage!==$o.hydrated&&(this._hydrationStage=$o.hydrating);let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:n,boundaries:s}=Zu(this.firstChild,this.lastChild,this.factories);this._targets=n,this._bindingViewBoundaries=s}catch(n){if(n instanceof Ct){let s=this.sourceTemplate.html;typeof s!="string"&&(s=s.innerHTML),n.templateString=s}throw n}this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n];if(l.targetNodeId==="h"&&this.hostBindingTarget&&vo(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const u=l.createBehavior();u.bind(this),r[n]=u}else{let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML);const d=Bs(this.firstChild,this.lastChild).cloneContents(),c=St().formatBindingMismatch(l,this.firstChild,this.lastChild,Bt(this.firstChild));throw new tp(c.message,l,d,u,c.expected,c.received)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0,this._hydrationStage=$o.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){mi(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}}Ps=fr,xt(op);function rp(o){return o.create!==void 0}function ip(o,e,t,r){if(t==null&&(t=""),rp(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(ks(r)&&ks(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==$o.hydrated){const n=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(n.first,n.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function np(o,e,t){var r;const i=`${this.id}-t`,n=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},s=n.cv;let l=n.v;const u=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let c=0,g=d.length;c<g;++c){const S=d[c];S!==""&&(s[S]=l,u.add(S))}}if(n.v=l+1,l!==0){l-=1;for(const d in s)s[d]===l&&u.remove(d)}}const sp={[J.attribute]:jt.setAttribute,[J.booleanAttribute]:jt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:ip,[J.tokenList]:np,[J.event]:()=>{}};class qt{constructor(e){this.updateTarget=null,this.aspectType=J.content,this.dataBinding=e}createHTML(e){return vs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=sp[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw we.error(le.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];switch(this.aspectType){case J.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e;const n=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute))break;this.updateTarget(r,this.targetAspect,n,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){go.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);go.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const i=t.target;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Ge.define(qt,{aspected:!0});const Is=(o,e)=>`${o}.${e}`,As={},Xe={index:0,node:null};function Ns(o){o.startsWith("fast-")||we.warn(le.hostBindingWithoutHost,{name:o})}const ap=new Proxy(document.createElement("div"),{get(o,e){Ns(e);const t=Reflect.get(o,e);return po(t)?t.bind(o):t},set(o,e,t){return Ns(e),Reflect.set(o,e,t)}});class lp{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,i,n){var s,l;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(s=e.id)!==null&&s!==void 0?s:pi(),e.targetNodeId=r,e.targetTagName=n,e.policy=(l=e.policy)!==null&&l!==void 0?l:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const s=e.lastIndexOf("."),l=e.substring(0,s),u=parseInt(e.substring(s+1),10);this.addTargetDescriptor(l,e,u)}let n=As[t];if(!n){const s=`_${t}`;As[t]=n={get(){var l;return(l=this[s])!==null&&l!==void 0?l:this[s]=this[e].childNodes[r]}}}i[t]=n}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??ap;for(const i of this.nodeIds)Reflect.get(r,i);return new br(t,this.factories,r)}}function Ts(o,e,t,r,i,n=!1){const s=t.attributes,l=o.directives;for(let u=0,d=s.length;u<d;++u){const c=s[u],g=c.value,S=gr.parse(g,l);let O=null;S===null?n&&(O=new qt(qn(()=>g,o.policy)),Ge.assignAspect(O,c.name)):O=vi.aggregate(S,o.policy),O!==null&&(t.removeAttributeNode(c),u--,d--,o.addFactory(O,e,r,i,t.tagName))}}function cp(o,e,t,r,i){const n=gr.parse(e.textContent,o.directives);if(n===null)return Xe.node=e.nextSibling,Xe.index=i+1,Xe;let s,l=s=e;for(let u=0,d=n.length;u<d;++u){const c=n[u];u!==0&&(i++,r=Is(t,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),at(c)?s.textContent=c:(s.textContent=" ",Ge.assignAspect(c),o.addFactory(c,t,r,i,null)),l=s}return Xe.index=i+1,Xe.node=l.nextSibling,Xe}function zs(o,e,t){let r=0,i=e.firstChild;for(;i;){const n=dp(o,t,i,r);i=n.node,r=n.index}}function dp(o,e,t,r){const i=Is(e,r);switch(t.nodeType){case 1:Ts(o,e,t,i,r),zs(o,t,i);break;case 3:return cp(o,t,e,i,r);case 8:{const n=gr.parse(t.data,o.directives);n!==null&&o.addFactory(vi.aggregate(n),e,i,r,null);break}}return Xe.index=r+1,Xe.node=t.nextSibling,Xe}function hp(o,e){return o&&o.nodeType===8&&gr.parse(o.data,e)!==null}const _s="TEMPLATE",vi={compile(o,e,t=jt.policy){let r;if(at(o)){r=document.createElement(_s),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===_s&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new lp(i,e,t);return Ts(n,"",r,"h",0,!0),(hp(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),zs(n,i,"r"),Xe.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=jt.policy){if(o.length===1)return o[0];let t,r=!1,i;const n=o.length,s=o.map(d=>at(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),l=(d,c)=>{let g="";for(let S=0;S<n;++S)g+=s[S](d,c);return g},u=new qt(Un(l,i??e,r));return Ge.assignAspect(u,t),u}};class Es extends fi{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ge.define(Es);const T=o=>new Es(o),up=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,pp=Object.create(null);class Pt{constructor(e,t=pp){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}Pt.empty=new Pt(""),Ge.define(Pt);function gp(o,e,t,r=Ge.getForInstance(o)){if(r.aspected){const i=up.exec(e);i!==null&&Ge.assignAspect(o,i[2])}return o.createHTML(t)}class Yr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=vi.compile(this.html,this.factories,this.policy)),this.result}inline(){return new Pt(at(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw we.error(le.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw we.error(le.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}create(e){return this.compile().createView(e)}static create(e,t,r){let i="";const n=Object.create(null),s=l=>{var u;const d=(u=l.id)!==null&&u!==void 0?u:l.id=pi();return n[d]=l,d};for(let l=0,u=e.length-1;l<u;++l){const d=e[l];let c=t[l],g;if(i+=d,po(c))c=new qt(Un(c));else if(c instanceof Qr)c=new qt(c);else if(!(g=Ge.getForInstance(c))){const S=c;c=new qt(qn(()=>S))}i+=gp(c,d,s,g)}return new Yr(i+e[e.length-1],n,r)}}xt(Yr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Yr.create(o,e);throw we.error(le.directCallToHTMLTagNotAllowed)};b.partial=o=>new Pt(o);const Fs="slotchange";class Os extends Ou{observe(e){e.addEventListener(Fs,this)}disconnect(e){e.removeEventListener(Fs,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ge.define(Os);function K(o){return at(o)&&(o={property:o}),new Os(o)}const fp=":host([hidden]){display:none}";function x(o){return`${fp}:host{display:${o}}`}const A="var(--colorNeutralForeground1)",$i="var(--colorNeutralForeground1Hover)",Ls="var(--colorNeutralForeground1Pressed)",bp="var(--colorNeutralForeground1Selected)",Ie="var(--colorNeutralForeground2)",It="var(--colorNeutralForeground2Hover)",At="var(--colorNeutralForeground2Pressed)",yo="var(--colorNeutralForeground2Selected)",ko="var(--colorNeutralForeground2BrandHover)",xo="var(--colorNeutralForeground2BrandPressed)",Ds="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",Ms="var(--colorNeutralForeground3Hover)",Hs="var(--colorNeutralForeground3Pressed)",Vs="var(--colorNeutralForeground3Selected)",mp="var(--colorNeutralForeground3BrandHover)",vp="var(--colorNeutralForeground3BrandPressed)",$p="var(--colorNeutralForeground3BrandSelected)",mr="var(--colorNeutralForeground4)",yp="var(--colorNeutralForeground5)",kp="var(--colorNeutralForeground5Hover)",xp="var(--colorNeutralForeground5Pressed)",wp="var(--colorNeutralForeground5Selected)",z="var(--colorNeutralForegroundDisabled)",Rs="var(--colorBrandForegroundLink)",js="var(--colorBrandForegroundLinkHover)",qs="var(--colorBrandForegroundLinkPressed)",Sp="var(--colorBrandForegroundLinkSelected)",Ws="var(--colorNeutralForeground2Link)",Gs="var(--colorNeutralForeground2LinkHover)",Xs="var(--colorNeutralForeground2LinkPressed)",Bp="var(--colorNeutralForeground2LinkSelected)",Cp="var(--colorCompoundBrandForeground1)",Us="var(--colorCompoundBrandForeground1Hover)",Ks="var(--colorCompoundBrandForeground1Pressed)",Ue="var(--colorNeutralForegroundOnBrand)",lt="var(--colorNeutralForegroundInverted)",Ys="var(--colorNeutralForegroundInvertedHover)",Zs="var(--colorNeutralForegroundInvertedPressed)",Pp="var(--colorNeutralForegroundInvertedSelected)",Ip="var(--colorNeutralForegroundInverted2)",yi="var(--colorNeutralForegroundStaticInverted)",Ap="var(--colorNeutralForegroundInvertedLink)",Np="var(--colorNeutralForegroundInvertedLinkHover)",Tp="var(--colorNeutralForegroundInvertedLinkPressed)",zp="var(--colorNeutralForegroundInvertedLinkSelected)",_p="var(--colorNeutralForegroundInvertedDisabled)",wo="var(--colorBrandForeground1)",Js="var(--colorBrandForeground2)",Ep="var(--colorBrandForeground2Hover)",Fp="var(--colorBrandForeground2Pressed)",Qs="var(--colorNeutralForeground1Static)",Op="var(--colorBrandForegroundInverted)",Lp="var(--colorBrandForegroundInvertedHover)",Dp="var(--colorBrandForegroundInvertedPressed)",Mp="var(--colorBrandForegroundOnLight)",Hp="var(--colorBrandForegroundOnLightHover)",Vp="var(--colorBrandForegroundOnLightPressed)",Rp="var(--colorBrandForegroundOnLightSelected)",C="var(--colorNeutralBackground1)",So="var(--colorNeutralBackground1Hover)",vr="var(--colorNeutralBackground1Pressed)",ki="var(--colorNeutralBackground1Selected)",jp="var(--colorNeutralBackground2)",qp="var(--colorNeutralBackground2Hover)",Wp="var(--colorNeutralBackground2Pressed)",Gp="var(--colorNeutralBackground2Selected)",Wt="var(--colorNeutralBackground3)",Xp="var(--colorNeutralBackground3Hover)",Up="var(--colorNeutralBackground3Pressed)",Kp="var(--colorNeutralBackground3Selected)",ea="var(--colorNeutralBackground4)",Yp="var(--colorNeutralBackground4Hover)",Zp="var(--colorNeutralBackground4Pressed)",Jp="var(--colorNeutralBackground4Selected)",ta="var(--colorNeutralBackground5)",Qp="var(--colorNeutralBackground5Hover)",eg="var(--colorNeutralBackground5Pressed)",tg="var(--colorNeutralBackground5Selected)",Gt="var(--colorNeutralBackground6)",og="var(--colorNeutralBackground7)",rg="var(--colorNeutralBackground7Hover)",ig="var(--colorNeutralBackground7Pressed)",ng="var(--colorNeutralBackground7Selected)",sg="var(--colorNeutralBackground8)",xi="var(--colorNeutralBackgroundInverted)",ag="var(--colorNeutralBackgroundInvertedHover)",lg="var(--colorNeutralBackgroundInvertedPressed)",cg="var(--colorNeutralBackgroundInvertedSelected)",dg="var(--colorNeutralBackgroundStatic)",hg="var(--colorNeutralBackgroundAlpha)",ug="var(--colorNeutralBackgroundAlpha2)",wi="var(--colorSubtleBackground)",Bo="var(--colorSubtleBackgroundHover)",Xt="var(--colorSubtleBackgroundPressed)",Si="var(--colorSubtleBackgroundSelected)",oa="var(--colorSubtleBackgroundLightAlphaHover)",ra="var(--colorSubtleBackgroundLightAlphaPressed)",ia="var(--colorSubtleBackgroundLightAlphaSelected)",pg="var(--colorSubtleBackgroundInverted)",gg="var(--colorSubtleBackgroundInvertedHover)",fg="var(--colorSubtleBackgroundInvertedPressed)",bg="var(--colorSubtleBackgroundInvertedSelected)",ce="var(--colorTransparentBackground)",Co="var(--colorTransparentBackgroundHover)",Po="var(--colorTransparentBackgroundPressed)",Bi="var(--colorTransparentBackgroundSelected)",et="var(--colorNeutralBackgroundDisabled)",mg="var(--colorNeutralBackgroundDisabled2)",vg="var(--colorNeutralBackgroundInvertedDisabled)",$g="var(--colorNeutralStencil1)",yg="var(--colorNeutralStencil2)",kg="var(--colorNeutralStencil1Alpha)",xg="var(--colorNeutralStencil2Alpha)",$r="var(--colorBackgroundOverlay)",wg="var(--colorScrollbarOverlay)",Ci="var(--colorBrandBackground)",Pi="var(--colorBrandBackgroundHover)",Ii="var(--colorBrandBackgroundPressed)",na="var(--colorBrandBackgroundSelected)",ct="var(--colorCompoundBrandBackground)",Nt="var(--colorCompoundBrandBackgroundHover)",Tt="var(--colorCompoundBrandBackgroundPressed)",Ai="var(--colorBrandBackgroundStatic)",Ni="var(--colorBrandBackground2)",Sg="var(--colorBrandBackground2Hover)",Bg="var(--colorBrandBackground2Pressed)",Cg="var(--colorBrandBackground3Static)",Pg="var(--colorBrandBackground4Static)",Ig="var(--colorBrandBackgroundInverted)",Ag="var(--colorBrandBackgroundInvertedHover)",Ng="var(--colorBrandBackgroundInvertedPressed)",Tg="var(--colorBrandBackgroundInvertedSelected)",zg="var(--colorNeutralCardBackground)",_g="var(--colorNeutralCardBackgroundHover)",Eg="var(--colorNeutralCardBackgroundPressed)",Fg="var(--colorNeutralCardBackgroundSelected)",Og="var(--colorNeutralCardBackgroundDisabled)",De="var(--colorNeutralStrokeAccessible)",dt="var(--colorNeutralStrokeAccessibleHover)",ht="var(--colorNeutralStrokeAccessiblePressed)",Lg="var(--colorNeutralStrokeAccessibleSelected)",Me="var(--colorNeutralStroke1)",ut="var(--colorNeutralStroke1Hover)",Ut="var(--colorNeutralStroke1Pressed)",Dg="var(--colorNeutralStroke1Selected)",Kt="var(--colorNeutralStroke2)",sa="var(--colorNeutralStroke3)",Mg="var(--colorNeutralStroke4)",Hg="var(--colorNeutralStroke4Hover)",Vg="var(--colorNeutralStroke4Pressed)",Rg="var(--colorNeutralStroke4Selected)",jg="var(--colorNeutralStrokeSubtle)",qg="var(--colorNeutralStrokeOnBrand)",aa="var(--colorNeutralStrokeOnBrand2)",Wg="var(--colorNeutralStrokeOnBrand2Hover)",Gg="var(--colorNeutralStrokeOnBrand2Pressed)",Xg="var(--colorNeutralStrokeOnBrand2Selected)",Ti="var(--colorBrandStroke1)",zi="var(--colorBrandStroke2)",Ug="var(--colorBrandStroke2Hover)",Kg="var(--colorBrandStroke2Pressed)",Yg="var(--colorBrandStroke2Contrast)",He="var(--colorCompoundBrandStroke)",la="var(--colorCompoundBrandStrokeHover)",_i="var(--colorCompoundBrandStrokePressed)",me="var(--colorNeutralStrokeDisabled)",Zg="var(--colorNeutralStrokeDisabled2)",Jg="var(--colorNeutralStrokeInvertedDisabled)",j="var(--colorTransparentStroke)",Io="var(--colorTransparentStrokeInteractive)",Qg="var(--colorTransparentStrokeDisabled)",ef="var(--colorNeutralStrokeAlpha)",tf="var(--colorNeutralStrokeAlpha2)",Ao="var(--colorStrokeFocus1)",re="var(--colorStrokeFocus2)",ca="var(--colorNeutralShadowAmbient)",da="var(--colorNeutralShadowKey)",of="var(--colorNeutralShadowAmbientLighter)",rf="var(--colorNeutralShadowKeyLighter)",nf="var(--colorNeutralShadowAmbientDarker)",sf="var(--colorNeutralShadowKeyDarker)",af="var(--colorBrandShadowAmbient)",lf="var(--colorBrandShadowKey)",Ei="var(--colorPaletteRedBackground1)",ha="var(--colorPaletteRedBackground2)",Fi="var(--colorPaletteRedBackground3)",cf="var(--colorPaletteRedBorderActive)",Oi="var(--colorPaletteRedBorder1)",yr="var(--colorPaletteRedBorder2)",kr="var(--colorPaletteRedForeground1)",ua="var(--colorPaletteRedForeground2)",Li="var(--colorPaletteRedForeground3)",df="var(--colorPaletteRedForegroundInverted)",Di="var(--colorPaletteGreenBackground1)",hf="var(--colorPaletteGreenBackground2)",Mi="var(--colorPaletteGreenBackground3)",uf="var(--colorPaletteGreenBorderActive)",pa="var(--colorPaletteGreenBorder1)",ga="var(--colorPaletteGreenBorder2)",fa="var(--colorPaletteGreenForeground1)",ba="var(--colorPaletteGreenForeground2)",ma="var(--colorPaletteGreenForeground3)",pf="var(--colorPaletteGreenForegroundInverted)",Hi="var(--colorPaletteDarkOrangeBackground1)",gf="var(--colorPaletteDarkOrangeBackground2)",Vi="var(--colorPaletteDarkOrangeBackground3)",ff="var(--colorPaletteDarkOrangeBorderActive)",Ri="var(--colorPaletteDarkOrangeBorder1)",bf="var(--colorPaletteDarkOrangeBorder2)",va="var(--colorPaletteDarkOrangeForeground1)",mf="var(--colorPaletteDarkOrangeForeground2)",ji="var(--colorPaletteDarkOrangeForeground3)",$a="var(--colorPaletteYellowBackground1)",vf="var(--colorPaletteYellowBackground2)",ya="var(--colorPaletteYellowBackground3)",$f="var(--colorPaletteYellowBorderActive)",ka="var(--colorPaletteYellowBorder1)",yf="var(--colorPaletteYellowBorder2)",kf="var(--colorPaletteYellowForeground1)",xr="var(--colorPaletteYellowForeground2)",xf="var(--colorPaletteYellowForeground3)",wf="var(--colorPaletteYellowForegroundInverted)",Sf="var(--colorPaletteBerryBackground1)",Bf="var(--colorPaletteBerryBackground2)",Cf="var(--colorPaletteBerryBackground3)",Pf="var(--colorPaletteBerryBorderActive)",If="var(--colorPaletteBerryBorder1)",Af="var(--colorPaletteBerryBorder2)",Nf="var(--colorPaletteBerryForeground1)",Tf="var(--colorPaletteBerryForeground2)",zf="var(--colorPaletteBerryForeground3)",_f="var(--colorPaletteMarigoldBackground1)",qi="var(--colorPaletteMarigoldBackground2)",Ef="var(--colorPaletteMarigoldBackground3)",xa="var(--colorPaletteMarigoldBorderActive)",Ff="var(--colorPaletteMarigoldBorder1)",Of="var(--colorPaletteMarigoldBorder2)",Lf="var(--colorPaletteMarigoldForeground1)",wa="var(--colorPaletteMarigoldForeground2)",Df="var(--colorPaletteMarigoldForeground3)",Mf="var(--colorPaletteLightGreenBackground1)",Hf="var(--colorPaletteLightGreenBackground2)",Vf="var(--colorPaletteLightGreenBackground3)",Rf="var(--colorPaletteLightGreenBorderActive)",jf="var(--colorPaletteLightGreenBorder1)",qf="var(--colorPaletteLightGreenBorder2)",Wf="var(--colorPaletteLightGreenForeground1)",Gf="var(--colorPaletteLightGreenForeground2)",Xf="var(--colorPaletteLightGreenForeground3)",Sa="var(--colorPaletteAnchorBackground2)",Uf="var(--colorPaletteAnchorBorderActive)",Ba="var(--colorPaletteAnchorForeground2)",Ca="var(--colorPaletteBeigeBackground2)",Kf="var(--colorPaletteBeigeBorderActive)",Pa="var(--colorPaletteBeigeForeground2)",Ia="var(--colorPaletteBlueBackground2)",Yf="var(--colorPaletteBlueBorderActive)",Aa="var(--colorPaletteBlueForeground2)",Na="var(--colorPaletteBrassBackground2)",Zf="var(--colorPaletteBrassBorderActive)",Ta="var(--colorPaletteBrassForeground2)",za="var(--colorPaletteBrownBackground2)",Jf="var(--colorPaletteBrownBorderActive)",_a="var(--colorPaletteBrownForeground2)",Ea="var(--colorPaletteCornflowerBackground2)",Qf="var(--colorPaletteCornflowerBorderActive)",Fa="var(--colorPaletteCornflowerForeground2)",Oa="var(--colorPaletteCranberryBackground2)",eb="var(--colorPaletteCranberryBorderActive)",La="var(--colorPaletteCranberryForeground2)",Da="var(--colorPaletteDarkGreenBackground2)",tb="var(--colorPaletteDarkGreenBorderActive)",Ma="var(--colorPaletteDarkGreenForeground2)",Ha="var(--colorPaletteDarkRedBackground2)",ob="var(--colorPaletteDarkRedBorderActive)",Va="var(--colorPaletteDarkRedForeground2)",Ra="var(--colorPaletteForestBackground2)",rb="var(--colorPaletteForestBorderActive)",ja="var(--colorPaletteForestForeground2)",qa="var(--colorPaletteGoldBackground2)",ib="var(--colorPaletteGoldBorderActive)",Wa="var(--colorPaletteGoldForeground2)",Ga="var(--colorPaletteGrapeBackground2)",nb="var(--colorPaletteGrapeBorderActive)",Xa="var(--colorPaletteGrapeForeground2)",Ua="var(--colorPaletteLavenderBackground2)",sb="var(--colorPaletteLavenderBorderActive)",Ka="var(--colorPaletteLavenderForeground2)",Ya="var(--colorPaletteLightTealBackground2)",ab="var(--colorPaletteLightTealBorderActive)",Za="var(--colorPaletteLightTealForeground2)",Ja="var(--colorPaletteLilacBackground2)",lb="var(--colorPaletteLilacBorderActive)",Qa="var(--colorPaletteLilacForeground2)",el="var(--colorPaletteMagentaBackground2)",cb="var(--colorPaletteMagentaBorderActive)",tl="var(--colorPaletteMagentaForeground2)",ol="var(--colorPaletteMinkBackground2)",db="var(--colorPaletteMinkBorderActive)",rl="var(--colorPaletteMinkForeground2)",il="var(--colorPaletteNavyBackground2)",hb="var(--colorPaletteNavyBorderActive)",nl="var(--colorPaletteNavyForeground2)",sl="var(--colorPalettePeachBackground2)",ub="var(--colorPalettePeachBorderActive)",al="var(--colorPalettePeachForeground2)",ll="var(--colorPalettePinkBackground2)",pb="var(--colorPalettePinkBorderActive)",cl="var(--colorPalettePinkForeground2)",dl="var(--colorPalettePlatinumBackground2)",gb="var(--colorPalettePlatinumBorderActive)",hl="var(--colorPalettePlatinumForeground2)",ul="var(--colorPalettePlumBackground2)",fb="var(--colorPalettePlumBorderActive)",pl="var(--colorPalettePlumForeground2)",gl="var(--colorPalettePumpkinBackground2)",bb="var(--colorPalettePumpkinBorderActive)",fl="var(--colorPalettePumpkinForeground2)",bl="var(--colorPalettePurpleBackground2)",mb="var(--colorPalettePurpleBorderActive)",ml="var(--colorPalettePurpleForeground2)",vl="var(--colorPaletteRoyalBlueBackground2)",vb="var(--colorPaletteRoyalBlueBorderActive)",$l="var(--colorPaletteRoyalBlueForeground2)",yl="var(--colorPaletteSeafoamBackground2)",$b="var(--colorPaletteSeafoamBorderActive)",kl="var(--colorPaletteSeafoamForeground2)",xl="var(--colorPaletteSteelBackground2)",yb="var(--colorPaletteSteelBorderActive)",wl="var(--colorPaletteSteelForeground2)",Sl="var(--colorPaletteTealBackground2)",kb="var(--colorPaletteTealBorderActive)",Bl="var(--colorPaletteTealForeground2)",xb="var(--colorStatusSuccessBackground1)",wb="var(--colorStatusSuccessBackground2)",Sb="var(--colorStatusSuccessBackground3)",Bb="var(--colorStatusSuccessForeground1)",Cb="var(--colorStatusSuccessForeground2)",Pb="var(--colorStatusSuccessForeground3)",Ib="var(--colorStatusSuccessForegroundInverted)",Ab="var(--colorStatusSuccessBorderActive)",Nb="var(--colorStatusSuccessBorder1)",Tb="var(--colorStatusSuccessBorder2)",zb="var(--colorStatusWarningBackground1)",_b="var(--colorStatusWarningBackground2)",Eb="var(--colorStatusWarningBackground3)",Fb="var(--colorStatusWarningForeground1)",Ob="var(--colorStatusWarningForeground2)",Lb="var(--colorStatusWarningForeground3)",Db="var(--colorStatusWarningForegroundInverted)",Mb="var(--colorStatusWarningBorderActive)",Hb="var(--colorStatusWarningBorder1)",Vb="var(--colorStatusWarningBorder2)",Rb="var(--colorStatusDangerBackground1)",jb="var(--colorStatusDangerBackground2)",qb="var(--colorStatusDangerBackground3)",Wb="var(--colorStatusDangerBackground3Hover)",Gb="var(--colorStatusDangerBackground3Pressed)",Xb="var(--colorStatusDangerForeground1)",Ub="var(--colorStatusDangerForeground2)",Kb="var(--colorStatusDangerForeground3)",Yb="var(--colorStatusDangerForegroundInverted)",Zb="var(--colorStatusDangerBorderActive)",Jb="var(--colorStatusDangerBorder1)",Qb="var(--colorStatusDangerBorder2)",No="var(--borderRadiusNone)",Ae="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",Wi="var(--borderRadiusLarge)",Gi="var(--borderRadiusXLarge)",em="var(--borderRadius2XLarge)",tm="var(--borderRadius3XLarge)",om="var(--borderRadius4XLarge)",rm="var(--borderRadius5XLarge)",im="var(--borderRadius6XLarge)",de="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Cl="var(--fontFamilyMonospace)",Pl="var(--fontFamilyNumeric)",Yt="var(--fontSizeBase100)",L="var(--fontSizeBase200)",_="var(--fontSizeBase300)",he="var(--fontSizeBase400)",zt="var(--fontSizeBase500)",To="var(--fontSizeBase600)",Xi="var(--fontSizeHero700)",Ui="var(--fontSizeHero800)",Ki="var(--fontSizeHero900)",Yi="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",Il="var(--fontWeightMedium)",V="var(--fontWeightSemibold)",zo="var(--fontWeightBold)",_o="var(--lineHeightBase100)",q="var(--lineHeightBase200)",D="var(--lineHeightBase300)",ve="var(--lineHeightBase400)",Eo="var(--lineHeightBase500)",Zi="var(--lineHeightBase600)",Ji="var(--lineHeightHero700)",Qi="var(--lineHeightHero800)",en="var(--lineHeightHero900)",tn="var(--lineHeightHero1000)",wr="var(--shadow2)",Fo="var(--shadow4)",Al="var(--shadow8)",Sr="var(--shadow16)",Nl="var(--shadow28)",on="var(--shadow64)",nm="var(--shadow2Brand)",sm="var(--shadow4Brand)",am="var(--shadow8Brand)",lm="var(--shadow16Brand)",cm="var(--shadow28Brand)",dm="var(--shadow64Brand)",P="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",Be="var(--strokeWidthThicker)",Br="var(--strokeWidthThickest)",hm="var(--spacingHorizontalNone)",M="var(--spacingHorizontalXXS)",Q="var(--spacingHorizontalXS)",$e="var(--spacingHorizontalSNudge)",Ne="var(--spacingHorizontalS)",Te="var(--spacingHorizontalMNudge)",Y="var(--spacingHorizontalM)",Tl="var(--spacingHorizontalL)",zl="var(--spacingHorizontalXL)",Oo="var(--spacingHorizontalXXL)",um="var(--spacingHorizontalXXXL)",Cr="var(--spacingVerticalNone)",Lo="var(--spacingVerticalXXS)",_t="var(--spacingVerticalXS)",Zt="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",Do="var(--spacingVerticalMNudge)",_l="var(--spacingVerticalM)",Pr="var(--spacingVerticalL)",pm="var(--spacingVerticalXL)",pt="var(--spacingVerticalXXL)",El="var(--spacingVerticalXXXL)",Ir="var(--durationUltraFast)",Mo="var(--durationFaster)",gm="var(--durationFast)",Ho="var(--durationNormal)",Ar="var(--durationGentle)",Fl="var(--durationSlow)",rn="var(--durationSlower)",Vo="var(--durationUltraSlow)",Ol="var(--curveAccelerateMax)",gt="var(--curveAccelerateMid)",Ll="var(--curveAccelerateMin)",nn="var(--curveDecelerateMax)",ft="var(--curveDecelerateMid)",Dl="var(--curveDecelerateMin)",sn="var(--curveEasyEaseMax)",Ro="var(--curveEasyEase)",Nr="var(--curveLinear)",fm="var(--zIndexBackground)",bm="var(--zIndexContent)",mm="var(--zIndexOverlay)",vm="var(--zIndexPopup)",$m="var(--zIndexMessages)",ym="var(--zIndexFloating)",km="var(--zIndexPriority)",xm="var(--zIndexDebug)",Ml=p`${x("block")} :host{max-width:fit-content;contain:content;color:${A}}.heading{height:44px;display:grid;position:relative;padding-inline:${Y} ${Te};border-radius:${B};font-family:${$};font-size:${_};font-weight:${E};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ce};border:none;box-sizing:border-box;color:inherit;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:${Ae}}: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:${Ne};grid-column:1/span 1;grid-row:1}.content{margin:0 ${Y}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ne};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ae};outline:none;border:2px solid ${Ao};box-shadow:inset 0 0 0 1px ${re}}: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:${_};line-height:${D}}:host([size='small']) .heading{font-size:${L};line-height:${q}}:host([size='large']) .heading{font-size:${he};line-height:${ve}}:host([size='extra-large']) .heading{font-size:${zt};line-height:${Eo}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:3;padding-inline-start:${Ne};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto 1fr auto;padding-inline:${Y}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Te} ${Y}}`;function ye(o){return o?typeof o=="string"?new Pt(o):"inline"in o?o.inline():o:Pt.empty}class tt{}function ot(o){return b`<slot name=end ${T("end")}>${ye(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name=start ${T("start")}>${ye(o.start)}</slot>`.inline()}const wm=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>'),Sm=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 Bm(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} ${T("expandbutton")}><slot name=heading></slot></button> ${Ve(o)}<slot name=marker-expanded>${ye(o.expandedIcon)}</slot><slot name=marker-collapsed>${ye(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Hl=Bm({collapsedIcon:wm,expandedIcon:Sm}),Vl={name:su,registry:h.registry,styles:Ml,template:Hl};function bt(o,...e){const t=lr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),lr.locate(r).forEach(n=>t.push(n))})}var Cm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,Tr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cm(e,t,i),i};class Jt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Tr([a({attribute:"heading-level",mode:"fromView",converter:oe})],Jt.prototype,"headinglevel",2),Tr([a({mode:"boolean"})],Jt.prototype,"expanded",2),Tr([a({mode:"boolean"})],Jt.prototype,"disabled",2),Tr([f],Jt.prototype,"expandbutton",2);class an extends Jt{}bt(an,tt),an.define(Vl);const zr={single:"single",multi:"multi"},Im=`${h.prefix}-accordion`,Rl=p`${x("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Am(){return b`<template><slot ${K({property:"slottedAccordionItems",filter:mo()})}></slot></template>`}const jl=Am(),ql={name:Im,registry:h.registry,styles:Rl,template:jl};function Wl(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 jo(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,n=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,l=u=>{if(o.querySelector(s)===null||u&&u.timeRemaining()<=0){n?Wl(e,{timeout:i}):e();return}Wl(l,{timeout:i})};l()}var Nm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Gl=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nm(e,t,i),i};class _r extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{jo(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;Jr(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===zr.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=>Jr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===zr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Jr(r)&&(this.activeItemIndex===i?(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||zr.multi,this.setItems()}}Gl([a({attribute:"expand-mode"})],_r.prototype,"expandmode",2),Gl([f],_r.prototype,"slottedAccordionItems",2),_r.define(ql);const qo={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Wo={circular:"circular",rounded:"rounded",square:"square"},Go={small:"small",medium:"medium",large:"large"},Xo={submit:"submit",reset:"reset",button:"button"},zm={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},_m=`${h.prefix}-button`,Em=qo,Fm=Wo,Om=Go,Xl={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},Lm={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Dm=`${h.prefix}-anchor-button`,Ul=p`${x("inline-flex")} :host{--icon-spacing:${$e};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:${C};color:${A};border:${P} solid ${Me};padding:0 ${Y};min-width:96px;border-radius:${B};font-size:${_};font-family:${$};font-weight:${V};line-height:${D};transition-duration:${Mo};transition-property:background,border,color;transition-timing-function:${Ro};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${So};color:${$i};border-color:${ut}}:host(:hover:active){background-color:${vr};border-color:${Ut};color:${Ls};outline-style:none}:host(:focus-visible){border-color:${j};outline:${ue} solid ${j};box-shadow:${Fo},0 0 0 2px ${re}}@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:${Q};min-height:24px;min-width:64px;padding:0 ${Ne};border-radius:${Ae};font-size:${L};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Wi};padding:0 ${Tl};font-size:${he};line-height:${ve}}: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:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${No}}:host([appearance='primary']){background-color:${Ci};color:${Ue};border-color:transparent}:host([appearance='primary']:hover){background-color:${Pi}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ue}}:host([appearance='primary']:hover:active){background-color:${Ii}}:host([appearance='primary']:focus-visible){border-color:${Ue};box-shadow:${wr},0 0 0 2px ${re}}:host([appearance='outline']){background-color:${ce}}:host([appearance='outline']:hover){background-color:${Co}}:host([appearance='outline']:hover:active){background-color:${Po}}:host([appearance='subtle']){background-color:${wi};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Bo};color:${It};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Xt};color:${At};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ko}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${xo}}:host([appearance='transparent']){background-color:${ce};color:${Ie}}:host([appearance='transparent']:hover){background-color:${Co};color:${ko}}:host([appearance='transparent']:hover:active){background-color:${Po};color:${xo}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Qt=p`${Ul} :host(:is(:disabled,[disabled],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable])),:host(:is(:disabled,[disabled],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable]):hover:active){background-color:${et};border-color:${me};color:${z};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce}}:host([appearance='subtle']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[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],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable] ) ){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Mm=p`${Ul} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Hm(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${Ve(o)} <span class=content part=content><slot></slot></span>${ot(o)}</template>`}const Kl=Hm(),Yl={name:Dm,registry:h.registry,styles:Mm,template:Kl};var Vm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,mt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Vm(e,t,i),i};class Re extends k{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 Lm){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}}mt([a],Re.prototype,"download",2),mt([a],Re.prototype,"href",2),mt([a],Re.prototype,"hreflang",2),mt([a],Re.prototype,"ping",2),mt([a],Re.prototype,"referrerpolicy",2),mt([a],Re.prototype,"rel",2),mt([a],Re.prototype,"target",2),mt([a],Re.prototype,"type",2);class ln extends Re{}bt(ln,tt),ln.define(Yl);const jm={active:"active",inactive:"inactive"},qm={circular:"circular",square:"square"},Wm={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},cn={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"},dn={neutral:"neutral",brand:"brand",colorful:"colorful",...cn},Gm={_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},Xm=`${h.prefix}-avatar`,vt={fastOutSlowInMax:nn,fastOutSlowInMid:ft,fastOutSlowInMin:Dl,slowOutFastInMax:Ol,slowOutFastInMid:gt,slowOutFastInMin:Ll,fastEase:sn,normalEase:Ro,nullEasing:Nr},Zl=p`${x("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${V};font-size:${_};border-radius:${de};color:${X};background-color:${Gt};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:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${P} ${C}}: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 ${ue} ${C}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Yt};font-weight:${E}}: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:${L}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}: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:${zt}}: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:${To}}: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:${Ae}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Wi}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Gi}}:host([data-color='brand']){color:${yi};background-color:${Ai}}:host([data-color='dark-red']){color:${Va};background-color:${Ha}}:host([data-color='cranberry']){color:${La};background-color:${Oa}}:host([data-color='red']){color:${ua};background-color:${ha}}:host([data-color='pumpkin']){color:${fl};background-color:${gl}}:host([data-color='peach']){color:${al};background-color:${sl}}:host([data-color='marigold']){color:${wa};background-color:${qi}}:host([data-color='gold']){color:${Wa};background-color:${qa}}:host([data-color='brass']){color:${Ta};background-color:${Na}}:host([data-color='brown']){color:${_a};background-color:${za}}:host([data-color='forest']){color:${ja};background-color:${Ra}}:host([data-color='seafoam']){color:${kl};background-color:${yl}}:host([data-color='dark-green']){color:${Ma};background-color:${Da}}:host([data-color='light-teal']){color:${Za};background-color:${Ya}}:host([data-color='teal']){color:${Bl};background-color:${Sl}}:host([data-color='steel']){color:${wl};background-color:${xl}}:host([data-color='blue']){color:${Aa};background-color:${Ia}}:host([data-color='royal-blue']){color:${$l};background-color:${vl}}:host([data-color='cornflower']){color:${Fa};background-color:${Ea}}:host([data-color='navy']){color:${nl};background-color:${il}}:host([data-color='lavender']){color:${Ka};background-color:${Ua}}:host([data-color='purple']){color:${ml};background-color:${bl}}:host([data-color='grape']){color:${Xa};background-color:${Ga}}:host([data-color='lilac']){color:${Qa};background-color:${Ja}}:host([data-color='pink']){color:${cl};background-color:${ll}}:host([data-color='magenta']){color:${tl};background-color:${el}}:host([data-color='plum']){color:${pl};background-color:${ul}}:host([data-color='beige']){color:${Pa};background-color:${Ca}}:host([data-color='mink']){color:${rl};background-color:${ol}}:host([data-color='platinum']){color:${hl};background-color:${dl}}:host([data-color='anchor']){color:${Ba};background-color:${Sa}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Vo},${Mo};transition-delay:${vt.fastEase},${vt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Vo},${rn};transition-delay:${vt.fastEase},${vt.nullEasing}}:host([active])::before{box-shadow:${Al};border-style:solid;border-color:${Ai}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}: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 * ${Br});border-width:${Br}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Fo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Sr}}: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:${Nl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Vo},${Mo};transition-delay:${vt.fastOutSlowInMin},${vt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Vo},${rn};transition-delay:${vt.fastOutSlowInMin},${vt.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}}`,Um=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 Km(){return b`<slot class=default-slot ${K("slottedDefaults")} ${T("defaultSlot")}></slot><span class=monogram ${T("monogram")}>${o=>o.initials}</span> ${Um}<slot name=badge></slot>`}const Jl=Km(),Ql={name:Xm,registry:h.registry,styles:Zl,template:Jl},Ym=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Zm=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Jm=/^(?:\d[\d\s]*\d|\d[\d\s]*(?:ext|x)\s*\d+)$/i,Qm=/\s+/g,ev=/[\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 tv(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function ov(o){return o=o.replace(Ym,""),o=o.replace(Zm,""),o=o.replace(Qm," "),o=o.trim(),o}function ec(o,e,t){return!o||(o=ov(o),ev.test(o)||!t?.allowPhoneInitials&&Jm.test(o))?"":tv(o,e,t?.firstInitialOnly)}var rv=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,Uo=(o,e,t,r)=>{for(var i=r>1?void 0:r?iv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&rv(e,t,i),i};class Et extends k{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)}N.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||ec(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()})}}Uo([f],Et.prototype,"defaultSlot",2),Uo([f],Et.prototype,"monogram",2),Uo([f],Et.prototype,"slottedDefaults",2),Uo([a],Et.prototype,"name",2),Uo([a],Et.prototype,"initials",2);var nv=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,hn=(o,e,t,r)=>{for(var i=r>1?void 0:r?sv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&nv(e,t,i),i};const Ko=class Mn extends Et{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||ec(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===dn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Mn.colors[av(this.name??"")%Mn.colors.length]:this.color??dn.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)}};Ko.colors=Object.values(cn),hn([a({converter:oe})],Ko.prototype,"size",2),hn([a],Ko.prototype,"color",2),hn([a({attribute:"color-id"})],Ko.prototype,"colorId",2);let tc=Ko;const av=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e};tc.define(Ql);const lv={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},cv={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},dv={circular:"circular",rounded:"rounded",square:"square"},hv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},uv=`${h.prefix}-badge`,oc=p.partial`${x("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${$};font-weight:${V};font-size:${L};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${Q} + ${M});border-radius:${de};border-color:${j};background-color:${Ci};color:${Ue};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:${P};border-color:inherit;border-radius:inherit}`,rc=p.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:${Yt};line-height:${_o};padding-inline:calc(${M} + ${M})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${L};line-height:${q};padding-inline:calc(${Q} + ${M})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${L};line-height:${q};padding-inline:calc(${$e} + ${M})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,ic=p.partial`:host([color='danger']){background-color:${Fi};color:${Ue}}:host([color='important']){background-color:${A};color:${C}}:host([color='informative']){background-color:${ta};color:${X}}:host([color='severe']){background-color:${Vi};color:${Ue}}:host([color='subtle']){background-color:${C};color:${A}}:host([color='success']){background-color:${Mi};color:${Ue}}:host([color='warning']){background-color:${ya};color:${Qs}}`,nc=p.partial`:host([appearance='ghost']){color:${wo};background-color:initial}:host([appearance='ghost'][color='danger']){color:${Li}}:host([appearance='ghost'][color='important']){color:${A}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${ji}}:host([appearance='ghost'][color='subtle']){color:${lt}}:host([appearance='ghost'][color='success']){color:${ma}}:host([appearance='ghost'][color='warning']){color:${xr}}`,pv=p.partial`:host([appearance='outline']){border-color:currentColor;color:${wo};background-color:initial}:host([appearance='outline'][color='danger']){color:${Li}}:host([appearance='outline'][color='important']){color:${X};border-color:${De}}:host([appearance='outline'][color='informative']){color:${X};border-color:${Kt}}:host([appearance='outline'][color='severe']){color:${ji}}:host([appearance='outline'][color='subtle']){color:${yi}}:host([appearance='outline'][color='success']){color:${ba}}:host([appearance='outline'][color='warning']){color:${xr}}`,gv=p.partial`:host([appearance='tint']){background-color:${Ni};color:${Js};border-color:${zi}}:host([appearance='tint'][color='danger']){background-color:${Ei};color:${kr};border-color:${Oi}}:host([appearance='tint'][color='important']){background-color:${X};color:${C};border-color:${j}}:host([appearance='tint'][color='informative']){background-color:${ea};color:${X};border-color:${Kt}}:host([appearance='tint'][color='severe']){background-color:${Hi};color:${va};border-color:${Ri}}:host([appearance='tint'][color='subtle']){background-color:${C};color:${X};border-color:${Kt}}:host([appearance='tint'][color='success']){background-color:${Di};color:${fa};border-color:${ga}}:host([appearance='tint'][color='warning']){background-color:${$a};color:${xr};border-color:${ka}}`,sc=p`:host([shape='square']){border-radius:${No}}:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ae}}${gv} ${pv} ${nc} ${ic} ${rc} ${oc} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function fv(o={}){return b`${Ve(o)}<slot>${ye(o.defaultContent)}</slot>${ot(o)}`}const ac=fv(),lc={name:uv,registry:h.registry,styles:sc,template:ac};class un extends k{}bt(un,tt),un.define(lc);function pn(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ve(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot></span>${ot(o)}</template>`}const cc=pn(),dc={name:_m,registry:h.registry,styles:Qt,template:cc};function rt(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&N.enqueue(()=>{o.focus()})}var bv=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var i=r>1?void 0:r?mv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bv(e,t,i),i};class pe extends k{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!==Xo.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(),rt(this)}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 Xo.reset:{this.resetForm();break}case Xo.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!==Xo.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)}}}}pe.formAssociated=!0,ze([f],pe.prototype,"defaultSlottedContent",2),ze([a({mode:"boolean"})],pe.prototype,"disabled",2),ze([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),ze([a({attribute:"formaction"})],pe.prototype,"formAction",2),ze([a({attribute:"form"})],pe.prototype,"formAttribute",2),ze([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),ze([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),ze([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),ze([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),ze([a],pe.prototype,"name",2),ze([a],pe.prototype,"type",2),ze([a],pe.prototype,"value",2);class eo extends pe{}bt(eo,tt),eo.define(dc);const vv={circular:"circular",square:"square"},$v={medium:"medium",large:"large"},yv=`${h.prefix}-checkbox`,Er=CSS.supports("anchor-name: --a"),kv="anchor"in HTMLElement.prototype,hc=CSS.supports("selector(:state(g))"),uc=new Map;function I(o){return uc.get(o)??uc.set(o,hc?`:state(${o})`:`[state--${o}]`).get(o)}function w(o,e,t){if(!(!e||!o)){if(!hc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const gn=new WeakMap;function xv(o,e){if(!o||!e)return!1;if(gn.has(o))return gn.get(o).has(e);const t=new Set(Object.values(o));return gn.set(o,t),t.has(e)}function pc(o,e="",t="",r,i=""){w(o,`${i}${e}`,!1),(!r||xv(r,t))&&w(o,`${i}${t}`,!0)}I("active");const wv=I("bad-input"),y=I("checked"),Sv=I("custom-error"),Bv=I("description"),ke=I("disabled"),v=":is([disabled], :disabled)";I("error");const Cv=I("flip-block"),Pv=I("focus-visible");I("has-message");const Ft=I("indeterminate"),to=I("multiple"),Iv=I("open"),Av=I("pattern-mismatch"),Nv=I("placeholder-shown"),H=I("pressed"),Tv=I("range-overflow"),zv=I("range-underflow"),_v=I("required"),fn=I("selected"),Ev=I("step-mismatch"),gc=I("submenu"),Fv=I("too-long"),Ov=I("too-short"),Lv=I("type-mismatch"),Dv=I("user-invalid"),Mv=I("valid"),Hv=I("value-missing"),fc=p`${x("inline-flex")} :host{--size:16px;background-color:${C};border-radius:${Ae};border:${P} solid ${De};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${dt}}:host(:active){border-color:${ht}}:host(${y}:hover){background-color:${Nt};border-color:${la}}:host(${y}:active){background-color:${Tt};border-color:${_i}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${j};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${re}}.indeterminate-indicator,.checked-indicator{color:${lt};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(${Ft}){border-color:${He}}:host(${y}),:host(${Ft}) .indeterminate-indicator{background-color:${ct}}:host(${Ft}) .indeterminate-indicator{border-radius:${Ae};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:${de}}:host(${v}),:host(${v}${y}){background-color:${et};border-color:${me}}:host(${v}){cursor:unset}:host(${v}${Ft}) .indeterminate-indicator{background-color:${me}}:host(${v}${y}) .checked-indicator{color:${me}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${v}):hover),:host(${y}:not(${v}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Ft}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not(${v}):hover),:host(${Ft}:not(${v}):hover) .indeterminate-indicator{background-color:Highlight}:host(${v}){border-color:GrayText}:host(${v}${Ft}) .indeterminate-indicator{background-color:GrayText}:host(${v}),:host(${v}${y}) .checked-indicator{color:GrayText}}`,Vv=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>'),Rv=b.partial("<span class=indeterminate-indicator></span>");function jv(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>${ye(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ye(o.indeterminateIndicator)}</slot></template>`}const bc=jv({checkedIndicator:Vv,indeterminateIndicator:Rv}),mc={name:yv,registry:h.registry,styles:fc,template:bc};var qv=Object.defineProperty,Wv=Object.getOwnPropertyDescriptor,Ot=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&qv(e,t,i),i};class _e extends k{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(),w(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",w(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(),rt(this)}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}}_e.formAssociated=!0,Ot([f],_e.prototype,"disabled",2),Ot([a({attribute:"disabled",mode:"boolean"})],_e.prototype,"disabledAttribute",2),Ot([a({attribute:"form"})],_e.prototype,"formAttribute",2),Ot([a({attribute:"checked",mode:"boolean"})],_e.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],_e.prototype,"initialValue",2),Ot([a],_e.prototype,"name",2),Ot([a({mode:"boolean"})],_e.prototype,"required",2);var Gv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Uv=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Gv(e,t,i),i};class bn extends _e{indeterminateChanged(e,t){this.setAriaChecked(),w(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)}}Uv([f],bn.prototype,"indeterminate",2),bn.define(mc);const Kv=qo,Yv=Wo,Zv=Go,Jv=`${h.prefix}-compound-button`,vc=p`${Qt} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${_};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${L};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${It}}:host(:active) ::slotted([slot='description']){color:${At}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ue}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ko}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${xo}}:host( :is( :disabled,:disabled[appearance],[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:${$e}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Q}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ne}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${ve}}:host([size='large']) ::slotted([slot='description']){font-size:${_}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled],[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function Qv(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ve(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot><slot name=description></slot></span>${ot(o)}</template>`}const $c=Qv(),yc={name:Jv,registry:h.registry,styles:vc,template:$c};class kc extends eo{}kc.define(yc);const e$={filled:"filled",ghost:"ghost"},t$={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},o$={circular:"circular",rounded:"rounded"},r$={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},xc=`${h.prefix}-counter-badge`,wc=p`:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ae}}${rc} ${ic} ${nc} ${oc} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function i$(o={}){return b`${Ve(o)} <span>${e=>e.displayValue}</span> ${ot(o)}`}const Sc=i$(),Bc={name:xc,registry:h.registry,styles:wc,template:Sc};var n$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,Yo=(o,e,t,r)=>{for(var i=r>1?void 0:r?s$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&n$(e,t,i),i};class Lt extends k{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}`}}Yo([a({converter:oe})],Lt.prototype,"count",2),Yo([a({attribute:"overflow-count",converter:oe})],Lt.prototype,"overflowCount",2),Yo([a({attribute:"show-zero",mode:"boolean"})],Lt.prototype,"showZero",2),Yo([a({mode:"boolean"})],Lt.prototype,"dot",2),Yo([Se],Lt.prototype,"displayValue",1);var a$=Object.defineProperty,l$=Object.getOwnPropertyDescriptor,Fr=(o,e,t,r)=>{for(var i=r>1?void 0:r?l$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&a$(e,t,i),i};class Dt extends Lt{}Fr([a],Dt.prototype,"appearance",2),Fr([a],Dt.prototype,"color",2),Fr([a],Dt.prototype,"shape",2),Fr([a],Dt.prototype,"size",2),bt(Dt,tt),Dt.define(Bc);const $t={modal:"modal",nonModal:"non-modal",alert:"alert"};function mn(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const c$=`${h.prefix}-dialog`,Cc=p`@layer base{:host{--dialog-backdrop:${$r};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${C};border-radius:${Gi};border:none;box-shadow:${on};color:${A};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;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:${Ar};transition-timing-function:${ft};opacity:0}::backdrop{transition-timing-function:${Nr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${gt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${P} solid ${j}}}}`,Pc=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()} ${T("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Ic={name:c$,registry:h.registry,styles:Cc,template:Pc};var d$=Object.defineProperty,h$=Object.getOwnPropertyDescriptor,Ke=(o,e,t,r)=>{for(var i=r>1?void 0:r?h$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&d$(e,t,i),i};class Ee extends k{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!==$t.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===$t.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.type=this.type??$t.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===$t.alert||this.type===$t.modal?this.dialog.showModal():this.type===$t.nonModal&&this.dialog.show(),this.querySelector("[autofocus]")?.focus?.(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==$t.alert&&e.target===this.dialog&&this.hide(),!0}}Ke([f],Ee.prototype,"dialog",2),Ke([a({attribute:"aria-describedby"})],Ee.prototype,"ariaDescribedby",2),Ke([a({attribute:"aria-labelledby"})],Ee.prototype,"ariaLabelledby",2),Ke([a({attribute:"aria-label"})],Ee.prototype,"ariaLabel",2),Ke([a],Ee.prototype,"type",2),Ke([Se],Ee.prototype,"dialogDescribedby",1),Ke([Se],Ee.prototype,"dialogLabel",1),Ke([Se],Ee.prototype,"dialogLabelledby",1),Ke([Se],Ee.prototype,"dialogModal",1),Ke([Se],Ee.prototype,"dialogRole",1),Ee.define(Ic);const u$=`${h.prefix}-dialog-body`,Ac=p`${x("grid")} :host{background:${C};box-sizing:border-box;gap:${ie};padding:${pt} ${Oo};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${C};color:${A};column-gap:8px;display:flex;font-family:${$};font-size:${zt};font-weight:${V};inset-block-start:0;justify-content:space-between;line-height:${Eo};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${pt} * -1);padding-block-end:${ie};padding-block-start:${pt}}.content{box-sizing:border-box;color:${A};font-family:${$};font-size:${_};font-weight:${E};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${C};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${pt} * -1);padding-block-end:${pt};padding-block-start:${Pr}}::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(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,Nc=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>`,Tc={name:u$,registry:h.registry,styles:Ac,template:Nc};class zc extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;mn(t)&&t.hide()}return!0}}zc.define(Tc);const xe={horizontal:"horizontal",vertical:"vertical"},oo={separator:"separator",presentation:"presentation"},vn=xe,p$={center:"center",start:"start",end:"end"},g$={strong:"strong",brand:"brand",subtle:"subtle"},f$=`${h.prefix}-divider`,_c=p`${x("flex")} :host{--_vertical-min-height:10px;contain:content}:host::after,:host::before{align-self:center;background:${Kt};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${P}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${$};font-size:${L};font-weight:${E};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%}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${P};min-height:var(--_vertical-min-height);height:100%}@supports not selector(:host(:has(*))){@scope{:scope:has(*){--_vertical-min-height:20px}}}:host(:has(*)){--_vertical-min-height:20px}: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:${Me}}:host([appearance='strong']) ::slotted(*){color:${A}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${Ti}}:host([appearance='brand']) ::slotted(*){color:${wo}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${sa}}:host([appearance='subtle']) ::slotted(*){color:${X}}@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}}`;function b$(){return b`<slot></slot>`}const Ec=b$(),Fc={name:f$,registry:h.registry,styles:_c,template:Ec};var m$=Object.defineProperty,v$=Object.getOwnPropertyDescriptor,Oc=(o,e,t,r)=>{for(var i=r>1?void 0:r?v$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&m$(e,t,i),i};class Or extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??oo.separator,this.role!==oo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??vn.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??oo.separator}`),t===oo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==oo.presentation?t??null:null,pc(this.elementInternals,e,t,vn)}}Oc([a],Or.prototype,"role",2),Oc([a],Or.prototype,"orientation",2);class Lc extends Or{}Lc.define(Fc);const $$={start:"start",end:"end"},y$={small:"small",medium:"medium",large:"large",full:"full"},ro={nonModal:"non-modal",modal:"modal",inline:"inline"},k$=`${h.prefix}-drawer`,Dc=p`${x("block")} :host{--dialog-backdrop:${$r}}: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{background:${C};border-radius:0;border:${P} solid ${j};border-inline-end-color:${j};border-inline-start-color:var(--drawer-separator,${j});box-shadow:${on};box-sizing:border-box;color:${A};font-family:${$};font-size:${_};font-weight:${E};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${Oo});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}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:${Ar};transition-timing-function:${ft}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${gt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${gt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ar};transition-timing-function:${ft};background:var(--dialog-backdrop,${$r});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Nr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function x$(){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} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${T("dialog")}><slot></slot></dialog>`}const Mc=x$(),Hc={name:k$,registry:h.registry,styles:Dc,template:Mc};var w$=Object.defineProperty,S$=Object.getOwnPropertyDescriptor,Ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?S$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&w$(e,t,i),i};class Fe extends k{constructor(){super(...arguments),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===ro.modal)return!0}get dialogRole(){return this.dialog&&this.type===ro.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.type=this.type??ro.modal})}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===ro.inline||this.type===ro.nonModal?this.dialog.show():this.dialog.showModal(),this.querySelector("[autofocus]")?.focus?.(),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()}}Ye([a],Fe.prototype,"type",2),Ye([a({attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledby",2),Ye([a({attribute:"aria-describedby"})],Fe.prototype,"ariaDescribedby",2),Ye([f],Fe.prototype,"role",2),Ye([f],Fe.prototype,"dialog",2),Ye([Se],Fe.prototype,"dialogDescribedby",1),Ye([Se],Fe.prototype,"dialogLabel",1),Ye([Se],Fe.prototype,"dialogLabelledby",1),Ye([Se],Fe.prototype,"dialogModal",1),Ye([Se],Fe.prototype,"dialogRole",1),Fe.define(Hc);const B$=`${h.prefix}-drawer-body`,$n=p.partial`font-family:${$};font-size:${_};line-height:${D};font-weight:${E};`,C$=p.partial`font-family:${$};font-size:${_};line-height:${D};font-weight:${V};`,P$=p.partial`font-family:${$};font-size:${_};line-height:${D};font-weight:${zo};`,Vc=p.partial`font-family:${$};font-size:${he};line-height:${ve};font-weight:${E};`,yn=p.partial`font-family:${$};font-size:${L};line-height:${q};font-weight:${E};`,I$=p.partial`font-family:${$};font-size:${L};line-height:${q};font-weight:${V};`,A$=p.partial`font-family:${$};font-size:${L};line-height:${q};font-weight:${zo};`,N$=p.partial`font-family:${$};font-size:${Yt};line-height:${_o};font-weight:${E};`,T$=p.partial`font-family:${$};font-size:${Yt};line-height:${_o};font-weight:${V};`,Rc=p.partial`font-family:${$};font-size:${zt};line-height:${Eo};font-weight:${V};`,z$=p.partial`font-family:${$};font-size:${he};line-height:${ve};font-weight:${V};`,_$=p.partial`font-family:${$};font-size:${he};line-height:${ve};font-weight:${zo};`,E$=p.partial`font-family:${$};font-size:${Ui};line-height:${Qi};font-weight:${V};`,F$=p.partial`font-family:${$};font-size:${Xi};line-height:${Ji};font-weight:${V};`,O$=p.partial`font-family:${$};font-size:${To};line-height:${Zi};font-weight:${V};`,L$=p.partial`font-family:${$};font-size:${Ki};line-height:${en};font-weight:${V};`,D$=p.partial`font-family:${$};font-size:${Yi};line-height:${tn};font-weight:${V};`,jc=p`${x("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;${Rc}}.footer{display:flex;justify-content:flex-start;gap:${Y}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function M$(){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 qc=M$(),Wc={name:B$,registry:h.registry,styles:jc,template:qc};class Gc extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;mn(t,"-drawer")&&t.hide()}return!0}}Gc.define(Wc);function H$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const V$={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},R$={small:"small",medium:"medium",large:"large"},Lr={combobox:"combobox",dropdown:"dropdown",select:"select"},j$=`${h.prefix}-dropdown`,Xc=p`${x("inline-flex")} :host{--_indicator-size:20px;--_placeholder-color:${mr};--_initial-display:attr(initial-display raw-string,attr(placeholder raw-string,none));box-sizing:border-box;color:${A};cursor:pointer}:host(${Nv}){color:var(--_placeholder-color)}.control{--control-border-color:${Me};appearance:none;background-color:${C};border-radius:${B};border:${P} solid ${j};box-shadow:inset 0 0 0 ${P} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${M};display:inline-grid;grid-template-columns:1fr var(--_indicator-size);justify-content:space-between;min-width:160px;overflow:hidden;padding:${Zt} ${Te};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${$n}}:host([size='small']) .control{column-gap:${M};padding:${_t} ${$e};${yn}}:host([size='large']) .control{column-gap:${Ne};padding:${ie} ${Y};${Vc}}:host(:not(:has([slot='control']))) slot[name='control']::before{content:var(--_initial-display)}@scope{:scope:not(:has([slot='control'])) slot[name='control']::before{content:var(--_initial-display)}}:host(:is(:not([value]),[value=''])) slot[name='control']::before{color:var(--_placeholder-color)}::slotted(:is(input,button)){all:unset}slot[name='control']::before,::slotted(:is(input,button)){grid-area:1/1}::slotted(button){cursor:pointer}::slotted(input){cursor:text;min-width:0;width:100%}::slotted(input)::placeholder{color:var(--_placeholder-color)}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${X};display:inline-flex;grid-area:1/2;justify-content:center;width:var(--_indicator-size)}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{background-color:${De};height:${P}}.control::after{background-color:${He};height:${ue};scale:0 1;transition:scale ${Ir} ${ft}}:host(:where(:focus-within)) .control{border-radius:${B};box-shadow:inset 0 0 0 1px ${Ao};outline:${ue} solid ${re}}:host(:where(${Iv},:focus-within)) .control::after{scale:1 1;transition-duration:${Ho};transition-timing-function:${gt}}:host([appearance='transparent']) .control{--control-border-color:${Io};background-color:${ce};border-radius:${No}}.control:hover{--control-border-color:${ut}}.control:hover::before{background-color:${dt}}.control:hover::after{background-color:${Nt}}.control:active{--control-border-color:${Ut}}.control:active::before{background-color:${ht}}.control:active::after{background-color:${Tt}}:host([appearance='transparent']) .control:is(:hover,:active){--control-border-color:${Io}}:host([appearance='transparent']) .control:hover::after{background-color:${He}}:host([appearance='filled-darker']) .control{background-color:${Wt}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${j}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active){--control-border-color:${j}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control::before{background-color:initial}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active)::after{background-color:${He}}:host(${v}),:host(${v}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${v}) .control::before,:host(${v}) .control::after{content:none}:host(${v}) .control:is(*,:active,:hover),:host(${v}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${me};background-color:${et};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(${D} + (${Zt} * 2) + ${P})}:host([size='small']){--margin-offset:calc(${q} + (${_t} * 2) + ${P})}:host([size='large']){--margin-offset:calc(${ve} + (${ie} * 2) + ${P})}}@media (forced-colors:active){:host(${v}) .control{border-color:GrayText}:host(${v}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,q$=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${T("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>`,Uc=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 size=1 placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} value=${o=>o.initialValue} slot=control ${T("control")}>`,Kc=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 ${T("control")}>${o=>o.displayValue}</button>`;function W$(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 ${T("controlSlot")}></slot><slot name=indicator ${T("indicatorSlot")}>${ye(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const Yc=W$({indicator:q$}),Zc={name:j$,registry:h.registry,styles:Xc,template:Yc};function kn(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const G$=`${h.prefix}-listbox`;function yt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const X$=`${h.prefix}-option`,it={ltr:"ltr",rtl:"rtl"},xn=o=>o.closest("[dir]")?.dir==="rtl"?it.rtl:it.ltr;function Jc(o){return o.closest("[lang]")?.lang??"en"}let U$=0;function Ze(o="id-"){const e=`${o}${U$++}`;return document.getElementById(e)?Ze(o):e}var K$=Object.defineProperty,Y$=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?Y$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&K$(e,t,i),i};const W=class ho extends k{constructor(){super(),this.activeIndex=0,this.id=Ze("dropdown-"),this.required=!1,this.type=Lr.dropdown,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||xn(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((i,n)=>{i.toggleAttribute("active",n===r)}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ze("input-"))}disabledChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return w(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Jc(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return w(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"),N.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,n)=>{i.selected=this.multiple||n===0}),this.setValidity()}),Er){const i=this.style.getPropertyValue("anchor-name")||Ze("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",w(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){w(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Er||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>yt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Lr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>yt(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(yt(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(Jc(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===Lr.combobox){Uc.render(this,this);return}Kc.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):[],i=!1;if(!r.length&&t&&(r=this.filterOptions(e),i=!0),r.length){const n=this.enabledOptions[this.activeIndex],s=r.indexOf(n),l=i?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?n:r[0];this.activeIndex=this.enabledOptions.indexOf(l)}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 i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!yt(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 i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;jo(this,()=>{const r=t.assignedElements().find(i=>kn(i));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(),N.enqueue(()=>{this.insertControl()}),rt(this)}disconnectedCallback(){ho.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(ho.AnchorPositionFallbackObserver||(ho.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:n})=>{if(kn(n)){if(r.bottom>window.innerHeight){w(n.elementInternals,"flip-block",!0);return}r.top<0&&w(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,ho.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}ho.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};W.elementIdentity="dropdown",W.formAssociated=!0,ee([Se],W.prototype,"activeDescendant",1),ee([f],W.prototype,"activeIndex",2),ee([a({attribute:"aria-labelledby",mode:"fromView"})],W.prototype,"ariaLabelledBy",2),ee([f],W.prototype,"control",2),ee([a({mode:"boolean"})],W.prototype,"disabled",2),ee([Se],W.prototype,"displayValue",1),ee([a({attribute:"id"})],W.prototype,"id",2),ee([f],W.prototype,"indicator",2),ee([f],W.prototype,"indicatorSlot",2),ee([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),ee([f],W.prototype,"listbox",2),ee([a({mode:"boolean"})],W.prototype,"multiple",2),ee([a],W.prototype,"name",2),ee([f],W.prototype,"open",2),ee([a],W.prototype,"placeholder",2),ee([a({mode:"boolean"})],W.prototype,"required",2),ee([a],W.prototype,"type",2);let Qc=W;class ed extends Qc{}ed.define(Zc);const Z$={above:"above",after:"after",before:"before"},Ce={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"},J$=`${h.prefix}-field`,td=p`${x("inline-grid")} :host{color:${A};align-items:center;gap:0 ${Y};justify-items:start;grid-template-areas:'label' 'input' 'message';row-gap:${Lo}}:has([slot='message']){color:${A};row-gap:${ie}}: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:${Y}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${_l}}:host(${_v}) ::slotted([slot='label'])::after{content:'*'/'';color:${kr};margin-inline-start:${Q}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${$};font-size:${L};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${Lo}}:host(${Pv}:focus-within){border-radius:${B};outline:${ue} solid ${re}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${_};font-weight:${E};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${L};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${ve}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${V}}:host(${ke}){cursor:default}::slotted([flag]){display:none}:host(${wv}) ::slotted([flag='${Ce.badInput}']),:host(${Sv}) ::slotted([flag='${Ce.customError}']),:host(${Av}) ::slotted([flag='${Ce.patternMismatch}']),:host(${Tv}) ::slotted([flag='${Ce.rangeOverflow}']),:host(${zv}) ::slotted([flag='${Ce.rangeUnderflow}']),:host(${Ev}) ::slotted([flag='${Ce.stepMismatch}']),:host(${Fv}) ::slotted([flag='${Ce.tooLong}']),:host(${Ov}) ::slotted([flag='${Ce.tooShort}']),:host(${Lv}) ::slotted([flag='${Ce.typeMismatch}']),:host(${Hv}) ::slotted([flag='${Ce.valueMissing}']),:host(${Mv}) ::slotted([flag='${Ce.valid}']){display:block}`,od=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:mo("[flag]")})}></slot></template>`,rd={name:J$,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:td,template:od};var Q$=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,Dr=(o,e,t,r)=>{for(var i=r>1?void 0:r?ey(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Q$(e,t,i),i};class io extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}get slottedInputObserver(){return this._slottedInputObserver??(this._slottedInputObserver=new MutationObserver(()=>{this.setStates()})),this._slottedInputObserver}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){w(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(t,{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})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&w(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return w(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}async setLabelProperties(){const e=await this.getLabelableInput();e&&(e.id||(e.id=Ze("input")),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor||(t.htmlFor=e.id),t.id||(t.id=`${e.id}--label`),e.setAttribute("aria-labelledby",t.id))}))}getLabelableInput(){return new Promise(e=>{if(!this.input)return e(null);if(this.input.constructor.elementIdentity!=="dropdown")return e(this.input);if(this.input.control)return e(this.input.control);new MutationObserver((t,r)=>{this.input.control&&(e(this.input.control),r.disconnect())}).observe(this.input,{childList:!0})})}setStates(){this.elementInternals&&this.input&&(w(this.elementInternals,"disabled",!!this.input.disabled),w(this.elementInternals,"readonly",!!this.input.readOnly),w(this.elementInternals,"required",!!this.input.required),w(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Ce))w(this.elementInternals,t,this.input.validity[e])}}Dr([f],io.prototype,"labelSlot",2),Dr([f],io.prototype,"messageSlot",2),Dr([f],io.prototype,"slottedInputs",2),Dr([f],io.prototype,"input",2);class id extends io{}id.define(rd);const ty={none:"none",center:"center",contain:"contain",cover:"cover"},oy={circular:"circular",rounded:"rounded",square:"square"},ry=`${h.prefix}-image`,nd=p`: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:${P} solid ${Kt}}: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:${Fo}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${B}}`,sd=b`<slot></slot>`,ad={name:ry,registry:h.registry,styles:nd,template:sd};class ld extends k{}ld.define(ad);const iy={small:"small",medium:"medium",large:"large"},ny={regular:"regular",semibold:"semibold"},sy=`${h.prefix}-label`,cd=p`${x("inline-flex")} :host{color:${A};cursor:pointer;font-family:${$};font-size:${_};font-weight:${E};line-height:${D};user-select:none}.asterisk{color:${kr};margin-inline-start:${Q}}:host([size='small']){font-size:${L};line-height:${q}}:host([size='large']){font-size:${he};line-height:${ve}}:host(:is([size='large'],[weight='semibold'])){font-weight:${V}}:host([disabled]),:host([disabled]) .asterisk{color:${z}}`;function ay(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const dd=ay(),hd={name:sy,registry:h.registry,styles:cd,template:dd};var ly=Object.defineProperty,cy=Object.getOwnPropertyDescriptor,dy=(o,e,t,r)=>{for(var i=r>1?void 0:r?cy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ly(e,t,i),i};class wn extends k{constructor(){super(...arguments),this.required=!1}}dy([a({mode:"boolean"})],wn.prototype,"required",2),wn.define(hd);const hy={subtle:"subtle"},uy=Xl,py=`${h.prefix}-link`,ud=p`${x("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Rs};cursor:pointer;font-family:${$};font-size:${_};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${P};text-overflow:inherit;user-select:text}:host(:hover){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${js}}:host(:active){color:${qs}}:host([appearance='subtle']:hover){color:${Gs}}:host([appearance='subtle']:active){color:${Xs}}}:host([appearance='subtle']){color:${Ws}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:focus-visible),:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)):focus-visible,:host([inline]:focus-visible){outline-style:none;text-decoration-line:underline;text-decoration-style:double;text-decoration-color:${re}}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function gy(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const pd=gy(),gd={name:py,registry:h.registry,styles:ud,template:pd};class fd extends Re{}fd.define(gd);const bd=p`${x("inline-flex")} :host{background-color:${C};border-radius:${B};border:${P} solid ${j};box-shadow:${Sr};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${Q};row-gap:${M};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${Cv}){margin-block-start:revert;translate:0 -100%}}`;function md(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${T("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const vd=md(),$d={name:G$,registry:h.registry,styles:bd,template:vd};var fy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,Zo=(o,e,t,r)=>{for(var i=r>1?void 0:r?by(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&fy(e,t,i),i};class Mt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",w(this.elementInternals,"multiple",t),N.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+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)??Array.from(this.querySelectorAll("*")).filter(e=>yt(e)&&!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return yt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),jo(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,i)=>{const n=i===e;r.selected=n,n&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){jo(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>yt(r));this.options=t}})}}Zo([f],Mt.prototype,"defaultSlot",2),Zo([f],Mt.prototype,"multiple",2),Zo([f],Mt.prototype,"options",2),Zo([f],Mt.prototype,"selectedIndex",2),Zo([f],Mt.prototype,"dropdown",2),Mt.define($d);const my=qo,vy=Wo,$y=Go,yy=`${h.prefix}-menu-button`,ky=Qt,yd=pn({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>')}),kd={name:yy,registry:h.registry,styles:ky,template:yd};class xd extends eo{}xd.define(kd);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},xy={[te.menuitem]:"menuitem",[te.menuitemcheckbox]:"menuitemcheckbox",[te.menuitemradio]:"menuitemradio"};function wy(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Sy=`${h.prefix}-menu-item`,wd=p`${x("flex")} :host{align-items:center;background:${C};border-radius:${B};box-sizing:border-box;color:${Ie};cursor:pointer;font:${E} ${_}/${D} ${$};gap:4px;min-block-size:32px;overflow:visible;padding-inline:10px}@supports (grid-template-columns:subgrid){:host{display:grid;gap:0;grid-template-columns:subgrid;padding-inline:unset}}:host(:hover){background:${So};color:${It}}:host(:active){background-color:${ki};color:${At}}:host(:active) ::slotted([slot='start']){color:${Ks}}:host(${ke}){background-color:${et};color:${z}}:host(${ke}) ::slotted([slot='start']),:host(${ke}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${B};outline:2px solid ${re}}:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) .indicator,:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) ::slotted([slot='indicator']),:host(:not(${gc})) .submenu-glyph,:host(:not(${gc})) ::slotted([slot='submenu-glyph']){display:none}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']){visibility:hidden}.indicator,::slotted([slot='indicator']),::slotted([slot='start']),::slotted([slot='end']),.submenu-glyph,::slotted([slot='submenu-glyph']){margin-inline:${M}}::slotted([slot='end']){color:${X};font:${E} ${L}/${q} ${$};white-space:nowrap}.indicator,::slotted([slot='indicator']){grid-column:2/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:3/span 1}.content{flex-grow:1;grid-column:4/span 1;padding:0 2px;white-space:nowrap}::slotted([slot='end']){grid-column:5/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:6/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-block-size:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${ke}),:host(${ke}) ::slotted([slot='start']),:host(${ke}) ::slotted([slot='end']){color:GrayText}}`,By=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>'),Cy=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 Py(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>${ye(o.indicator)}</slot>${Ve(o)}<div part=content class=content><slot></slot></div>${ot(o)}<slot name=submenu-glyph>${ye(o.submenuGlyph)}</slot><slot name=submenu ${K({property:"slottedSubmenu"})}></slot></template>`}const Sd=Py({indicator:By,submenuGlyph:Cy}),Bd={name:Sy,registry:h.registry,styles:wd,template:Sd};var Iy=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ay(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Iy(e,t,i),i};class Je extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.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 te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.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,w(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const r=this.role!==te.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,w(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",w(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,w(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null,rt(this)}}no([a({mode:"boolean"})],Je.prototype,"disabled",2),no([a],Je.prototype,"role",2),no([a({mode:"boolean"})],Je.prototype,"checked",2),no([a({mode:"boolean"})],Je.prototype,"hidden",2),no([f],Je.prototype,"slottedSubmenu",2),no([f],Je.prototype,"submenu",2),bt(Je,tt),Je.define(Bd);const Ny=`${h.prefix}-menu-list`,Cd=p`${x("grid")} :host{contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${C};border:1px solid ${j};border-radius:${B};box-shadow:${Sr};grid-template-columns:10px max-content max-content minmax(0,1fr) max-content max-content 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}`;function Ty(){return b`<template focusgroup=menu><slot ${K("items")}></slot></template>`}const Pd=Ty(),Id={name:Ny,registry:h.registry,styles:Cd,template:Pd};var Jo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Sn={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Bn(o,e){return o.contains(e)}function zy(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function _y(o,e,t){const r="forward",i="backward",n="block",s="inline";if(Ey(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:l,direction:u}=window.getComputedStyle(e),d=!l.startsWith("horizontal-"),c=u==="rtl",g=d?n:s,S=d?s:n,O=d?l.endsWith("-rl")!==c:c,G=d&&c,ae={ArrowUp:{axis:S,dir:G?r:i},ArrowDown:{axis:S,dir:G?i:r},ArrowLeft:{axis:g,dir:O?r:i},ArrowRight:{axis:g,dir:O?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!ae||t&&ae.axis&&ae.axis!==t?null:ae.dir}function Ey(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 Fy=globalThis.__FOCUSGROUP_POLYFILL__,Oy=Fy.o;function Cn(){for(const o of Oy)o.takeRecords()}var Mr=class{#t;#e;#s=Sn.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#i=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(zy()||!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.#n(),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(Jo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Sn.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Sn.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Jo.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.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Jo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Jo.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(_y(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.#i&&(!o.relatedTarget||!Bn(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#n(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#i&&this.#n();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||!Bn(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Bn(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:i}of this.#e.items())r.tabIndex=i?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(Jo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,Cn())}#n(){this.#i&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#i=!1,this.#l=null,this.#e.flush?.(),Cn())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Cn()}};class Hr{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 Ly=Object.defineProperty,Dy=Object.getOwnPropertyDescriptor,My=(o,e,t,r)=>{for(var i=r>1?void 0:r?Dy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ly(e,t,i),i};const Pn=class ru extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&Vn(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 n=r-1;n>=0;--n){const s=this.menuChildren[n],l=s.role;if(l===te.menuitemradio&&(s.checked=!1),l==="separator")break}const i=this.menuChildren.length-1;for(let n=r+1;n<=i;++n){const s=this.menuChildren[n],l=s.role;if(l===te.menuitemradio&&(s.checked=!1),l==="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"),N.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(){N.enqueue(()=>{this.menuItems?.find(e=>!e.disabled)?.focus()})}setItems(){const e=Array.from(this.children);e.forEach(t=>{m.getNotifier(t).subscribe(this,"hidden")}),this.menuChildren=e.filter(t=>!t.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement)}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return wy(e)||Vn(e)&&!!e.role&&e.role in ru.focusableElementRoles}};Pn.focusableElementRoles=te,My([f],Pn.prototype,"items",2);let Ad=Pn;class Nd extends Ad{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Hr(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Mr(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}Nd.define(Id);const Hy=`${h.prefix}-menu`,Td=p`${x("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${P} solid ${Me};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:${P} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Vy(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${T("primaryAction")}></slot><slot name=trigger ${K({property:"slottedTriggers",filter:mo()})}></slot><slot ${K({property:"slottedMenuList",filter:mo()})}></slot></template>`}const zd=Vy(),_d={name:Hy,registry:h.registry,styles:Td,template:zd};var Ry=Object.defineProperty,jy=Object.getOwnPropertyDescriptor,Ht=(o,e,t,r)=>{for(var i=r>1?void 0:r?jy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ry(e,t,i),i};class nt extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Je&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.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(){N.enqueue(()=>{this._menuList.focus()})}focusTrigger(){N.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}}}Ht([a({attribute:"open-on-hover",mode:"boolean"})],nt.prototype,"openOnHover",2),Ht([a({attribute:"open-on-context",mode:"boolean"})],nt.prototype,"openOnContext",2),Ht([a({attribute:"close-on-scroll",mode:"boolean"})],nt.prototype,"closeOnScroll",2),Ht([a({attribute:"persist-on-item-click",mode:"boolean"})],nt.prototype,"persistOnItemClick",2),Ht([f],nt.prototype,"slottedMenuList",2),Ht([f],nt.prototype,"slottedTriggers",2),Ht([f],nt.prototype,"primaryAction",2),nt.define(_d);const qy={multiline:"multiline",singleline:"singleline"},Wy={rounded:"rounded",square:"square"},Gy={success:"success",warning:"warning",error:"error",info:"info"},Xy=`${h.prefix}-message-bar`,Ed=p`:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${L};line-height:${q};width:100%;background:${Wt};color:${X};border:1px solid ${Me};padding-inline:${Y};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:${Di};border-color:${pa}}:host([intent='warning']){background-color:${Hi};border-color:${Ri}}:host([intent='error']){background-color:${Ei};border-color:${Oi}}: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:${Do};padding-inline:${Y}}.content{grid-area:body;padding-block:${Do};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${X};margin-inline-end:${Ne}}: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:${Ne};gap:${Ne}}:host([layout='multiline']) .actions{margin-block-start:${Do};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%}::slotted(*){font-size:inherit}`;function Uy(){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 Fd=Uy(),Od={name:Xy,registry:h.registry,styles:Ed,template:Fd};class Ld extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ld.define(Od);const Dd=p`${x("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${$n} align-items:center;background-color:${C};border-radius:${B};box-sizing:border-box;color:${Ie};column-gap:${Q};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${$e};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${So};color:${It}}:host(:active){background-color:${vr};color:${At}}:host(${v}){background-color:${C};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(${fn}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${to}) .checkmark-16-filled,:host(:not(${to})) .checkmark-12-regular{display:none}:host(${to}) .checkmark-12-regular{background-color:${C};border-radius:${Ae};border:${P} solid ${De};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${to}${fn}) .checkmark-12-regular{background-color:${ct};border-color:${He};fill:${lt}}:host(${v}${to}) .checkmark-12-regular{border-color:${me}}:host(${v}${to}${fn}) .checkmark-12-regular{background-color:${et}}:host([active]){border:${ue} solid ${re}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${$e}}}:host(${Bv}){column-gap:${$e};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${yn}}@media (forced-colors:active){:host(${v}){color:GrayText}}`,Ky=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 Yy(o={}){return b`<slot name=checked-indicator>${ye(o.checkedIndicator)}</slot>${Ve(o)}<div class=content part=content><slot ${K({property:"freeformOutputs",filter:mo("output")})}></slot></div><div class=description part=description><slot name=description ${K("descriptionSlot")}></slot></div>`}const Md=Yy({checkedIndicator:Ky}),Hd={name:X$,registry:h.registry,styles:Dd,template:Md};var Zy=Object.defineProperty,Jy=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zy(e,t,i),i};class ne extends k{constructor(){super(),this.id=Ze("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){w(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",w(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){w(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,N.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",w(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,Pe([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),Pe([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),Pe([f],ne.prototype,"descriptionSlot",2),Pe([f],ne.prototype,"disabled",2),Pe([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),Pe([a({attribute:"form"})],ne.prototype,"formAttribute",2),Pe([a({mode:"boolean"})],ne.prototype,"freeform",2),Pe([a({attribute:"id"})],ne.prototype,"id",2),Pe([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),Pe([f],ne.prototype,"multiple",2),Pe([a],ne.prototype,"name",2),Pe([f],ne.prototype,"start",2),Pe([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2),ne.define(Hd);const Qy={medium:"medium",large:"large"},ek={rounded:"rounded",square:"square"},tk={success:"success",warning:"warning",error:"error"},ok=`${h.prefix}-progress-bar`,Vd=p`${x("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${Gt};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:${No}}.indicator{background-color:${ct};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,${Gt} 0%,${ce} 50%,${Gt} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Fi}}:host([validation-state='warning']) .indicator{background-color:${Vi}}:host([validation-state='success']) .indicator{background-color:${Mi}}@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 rk(){return b`<div class=indicator part=indicator ${T("indicator")}></div>`}const Rd=rk(),jd={name:ok,registry:h.registry,styles:Vd,template:Rd};var ik=Object.defineProperty,nk=Object.getOwnPropertyDescriptor,Vr=(o,e,t,r)=>{for(var i=r>1?void 0:r?nk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ik(e,t,i),i};class so extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}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>))")||N.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,i=t-e,n=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Vr([f],so.prototype,"indicator",2),Vr([a({converter:oe})],so.prototype,"value",2),Vr([a({converter:oe})],so.prototype,"min",2),Vr([a({converter:oe})],so.prototype,"max",2);class qd extends so{}qd.define(jd);const In=xe,sk=`${h.prefix}-radio-group`,Wd=p`${x("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Pr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${A}}::slotted(${ke}){color:${z}}::slotted(${y}){color:${A}}:host([slot='input']){margin:${ie} ${Ne}}`;function ak(){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 Gd=ak(),Xd={name:sk,registry:h.registry,styles:Wd,template:Gd};function lk(o,e="-radio"){return Hn(e)(o)}const ck=`${h.prefix}-radio`;var dk=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,kt=(o,e,t,r)=>{for(var i=r>1?void 0:r?hk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&dk(e,t,i),i};class je extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??In.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??In.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 i=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,l)=>{s.ariaPosInSet=`${l+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=l===i,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"&&i>=0)&&(this.checkedIndex=i);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){N.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(r=>lk(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((i,n)=>{const s=n===e;i.checked=s,s&&(r=n,t&&i.$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(l=>{l.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((l,u)=>{u===0?l.elementInternals.setValidity(n,s,l):l.elementInternals.setValidity({})})}}}je.formAssociated=!0,kt([f],je.prototype,"checkedIndex",2),kt([a({attribute:"disabled",mode:"boolean"})],je.prototype,"disabled",2),kt([a({attribute:"value",mode:"fromView"})],je.prototype,"initialValue",2),kt([a],je.prototype,"name",2),kt([a],je.prototype,"orientation",2),kt([f],je.prototype,"radios",2),kt([a({mode:"boolean"})],je.prototype,"required",2),kt([f],je.prototype,"slottedRadios",2);class Ud extends je{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Hr(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Mr(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}Ud.define(Xd);const Kd=p`${x("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${C};border:${P} solid ${De};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${lt};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:${ue} solid ${j};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${re}}:host(:hover){border-color:${dt}}:host(${y}){border-color:${He}}:host(${y}) .checked-indicator{background-color:${ct}}:host(${y}:hover) .checked-indicator{background-color:${Nt}}:host(:active){border-color:${ht}}:host(${y}:active) .checked-indicator{background-color:${Tt}}:host(:focus-visible){outline:none}:host(${ke}){background-color:${et};border-color:${me}}:host(${y}${ke}) .checked-indicator{background-color:${me}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${ke}):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(${ke}):hover) .checked-indicator{background-color:Highlight}:host(${ke}){border-color:GrayText;color:GrayText}:host(${ke}${y}) .checked-indicator{background-color:GrayText}}`,uk=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function pk(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>${ye(o.checkedIndicator)}</slot></template>`}const Yd=pk({checkedIndicator:uk}),Zd={name:ck,registry:h.registry,styles:Kd,template:Yd};class Jd extends _e{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)}}Jd.define(Zd);const gk={neutral:"neutral",brand:"brand",marigold:"marigold"},fk={small:"small",medium:"medium",large:"large"},bk=`${h.prefix}-rating-display`;var mk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,Qo=(o,e,t,r)=>{for(var i=r>1?void 0:r?vk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&mk(e,t,i),i};const $k=CSS.supports("width: attr(value type(<number>))"),ao={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Rr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Vt extends k{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(ao.maskImageFilled),this.display.style.removeProperty(ao.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
1
+ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function Hn(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function Vn(...o){return o.every(e=>e instanceof HTMLElement)}const iu={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},nu={start:"start",end:"end"};function Qr(o,e="-accordion-item"){return Hn(e)(o)}const su=`${h.prefix}-accordion-item`;class ei{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}var le;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.invalidHydrationAttributeMarker=1210]="invalidHydrationAttributeMarker",o[o.duplicateRenderInstruction=1211]="duplicateRenderInstruction",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(le||(le={}));const po=o=>typeof o=="function",at=o=>typeof o=="string",au=()=>{},lu=Object.create(null),we={warn(o,e){},error(o,e){return new Error(`Error ${o}`)},addMessages(o){Object.assign(lu,o)}},cu=Object.freeze([]);function ti(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function Rn(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function xt(o){o.prototype.toJSON=au}class jn extends ei{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}xt(jn);function qn(o,e){return new jn(o,e)}class oi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,n=this.sub2;i!==void 0&&i.handleChange(r,e),n!==void 0&&n.handleChange(r,e)}else for(let i=0,n=t.length;i<n;++i)t[i].handleChange(r,e)}}class Wn{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let n;t?n=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new oi(this.subject):n=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new oi(this.subject),n.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const We=[],ri=[],du=globalThis.requestAnimationFrame;let ii=!0;function hu(){if(ri.length)throw ri.shift()}function uu(o){try{o.call()}catch(e){if(ii)ri.push(e),setTimeout(hu,0);else throw We.length=0,e}}function ni(){let e=0;for(;e<We.length;)if(uu(We[e]),e++,e>1024){for(let t=0,r=We.length-e;t<r;t++)We[t]=We[t+e];We.length-=e,e=0}We.length=0}function Gn(o){We.push(o),We.length<2&&(ii?du(ni):ni())}const N=Object.freeze({enqueue:Gn,next:()=>new Promise(Gn),process:ni,setMode:o=>ii=o}),ar=Object.freeze({unknown:void 0,coupled:1}),m=(()=>{const o=N.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw we.error(le.needsArrayObservation)};function n(d){var c;let g=(c=d.$fastController)!==null&&c!==void 0?c:t.get(d);return g===void 0&&(Array.isArray(d)?g=i(d):t.set(d,g=new Wn(d))),g}const s=Rn();class l{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return r!==void 0&&r.watch(c,this.name),c[this.field]}setValue(c,g){const S=this.field,O=c[S];if(O!==g){c[S]=g;const G=c[this.callback];po(G)&&G.call(c,O,g),n(c).notify(this.name)}}}class u extends oi{constructor(c,g,S=!1){super(c,g),this.expression=c,this.isVolatileBinding=S,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){const g=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),g}requiresUnbind(c){return c.sourceLifetime!==ar.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,g){this.needsRefresh&&this.last!==null&&this.dispose();const S=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let O;try{O=this.expression(c,g)}finally{r=S}return O}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,g){const S=this.last,O=n(c),G=S===null?this.first:{};if(G.propertySource=c,G.propertyName=g,G.notifier=O,O.subscribe(this,g),S!==null){if(!this.needsRefresh){let ae;r=void 0,ae=S.propertySource[S.propertyName],r=this,c===ae&&(this.needsRefresh=!0)}S.next=G}this.last=G}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return xt(u),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:n,track(d,c){r&&r.watch(d,c)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,c){n(d).notify(c)},defineProperty(d,c){at(c)&&(c=new l(c)),s(d).push(c),Reflect.defineProperty(d,c.name,{enumerable:!0,get(){return c.getValue(this)},set(g){c.setValue(this,g)}})},getAccessors:s,binding(d,c,g=this.isVolatileBinding(d)){return new u(d,c,g)},isVolatileBinding(d){return e.test(d.toString())}})})();function f(o,e){m.defineProperty(o,e)}const Xn=(()=>{let o=null;return{get(){return o},set(e){o=e}}})(),go=Object.freeze({default:{index:0,length:0,get event(){return go.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Xn.get()},setEvent(o){Xn.set(o)}});class pu extends ei{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Un(o,e,t=m.isVolatileBinding(o)){return new pu(o,e,t)}const J=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Kn=o=>o,gu=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:Kn}):{createHTML:Kn};let lr=Object.freeze({createHTML(o){return gu.createHTML(o)},protect(o,e,t,r){return r}});const fu=lr,jt=Object.freeze({get policy(){return lr},setPolicy(o){if(lr!==fu)throw we.error(le.onlySetDOMPolicyOnce);lr=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),si="boolean",Yn="reflect",cr=Object.freeze({locate:Rn()}),bu={toView(o){return o?"":null},fromView(o){return!!o}};function Zn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const oe={toView(o){const e=Zn(o);return e&&e.toString()},fromView:Zn};class Kr{constructor(e,t,r=t.toLowerCase(),i=Yn,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===si&&n===void 0&&(this.converter=bu)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.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.mode===si?this.setValue(e,t!==null):this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||N.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Yn:{const n=this.converter;jt.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break}case si:jt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(cr.locate(e));for(let i=0,n=t.length;i<n;++i){const s=t[i];if(s!==void 0)for(let l=0,u=s.length;l<u;++l){const d=s[l];at(d)?r.push(new Kr(e,d)):r.push(new Kr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,n){arguments.length>1&&(t.property=n),cr.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}let ai;function Jn(o){return o.reduce((e,t)=>(t instanceof fe?e.push(...Jn(t.styles)):e.push(t),e),[])}class fe{get strategy(){return this._strategy===null&&(ai||fe.setDefaultStrategy(fe.supportsAdoptedStyleSheets?mu():$u()),this.withStrategy(ai)),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withStrategy(e){return this._strategy=new e(Jn(this.styles)),this}static setDefaultStrategy(e){ai=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new fe(e):e instanceof fe?e:new fe([e])}}fe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;function mu(){const o=new Map;return class{constructor(t){this.sheets=t.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=o.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),o.set(r,i)),i})}addStylesTo(t){const r=t;r.adoptedStyleSheets=[...r.adoptedStyleSheets,...this.sheets]}removeStylesFrom(t){const r=t;r.adoptedStyleSheets=r.adoptedStyleSheets.filter(i=>this.sheets.indexOf(i)===-1)}}}let vu=0;function $u(){return class{constructor(e){this.styles=e,this.styleClass=`fast-${++vu}`}addStylesTo(e){const t=e===document?document.body:e;for(let r=0;r<this.styles.length;r++){const i=document.createElement("style");i.innerHTML=this.styles[r],i.className=this.styleClass,t.append(i)}}removeStylesFrom(e){const t=e===document?document.body:e,r=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,n=r.length;i<n;++i)t.removeChild(r[i])}}}const yu={},Qn=new WeakMap,li=ti(),fo=Object.freeze({register(o){if(!li.register(o))return!1;const e=es(o.registry);return Object.prototype.hasOwnProperty.call(e,o.name)||m.defineProperty(e,o.name),e[o.name]=o.type,!0},getByType:li.getByType,getForInstance:li.getForInstance,whenRegistered:ku});function es(o=customElements){if(o===customElements)return yu;let e=Qn.get(o);return e||(e={},Qn.set(o,e)),e}function ts(o){return o===void 0?void 0:fo.getByType(o)}function ku(o,e=customElements){const t=es(e);Object.prototype.hasOwnProperty.call(t,o)||m.defineProperty(t,o);const r=ts(t[o]);return r!==void 0?Promise.resolve(r):new Promise(i=>{const n=m.getNotifier(t),s={handleChange:()=>{const l=ts(t[o]);l!==void 0&&(n.unsubscribe(s,o),i(l))}};n.subscribe(s,o)})}const os={mode:"open"},rs={},is=new Set,dr=new WeakMap,hr=new WeakMap,wt=new WeakMap,ns=new WeakMap,xu=new WeakMap;function wu(o){return po(o)}function Su(o){return typeof o?.then=="function"}function ss(o,e){if(hr.delete(o),o.template===void 0&&e!==void 0&&(o.template=e),o.template!==void 0)return wt.delete(o),dr.delete(o),o.template}function as(o,e=o.registry,t){if(!t?.length)return;const r=o;let i=ns.get(r);if(!i?.has(e)){i===void 0&&(i=new WeakSet,ns.set(r,i)),i.add(e);for(const n of t)n(o)}}function ci(o){var e;return(e=xu.get(o))!==null&&e!==void 0?e:null}function ls(o){if(o.template!==void 0)return wt.delete(o),o.template;const e=hr.get(o);if(e)return e;const t=dr.get(o);if(!t)return;wt.delete(o);let r;try{r=t(o)}catch(i){throw wt.set(o,i),i}if(Su(r)){const i=Promise.resolve(r).then(n=>ss(o,n)).catch(n=>{throw hr.delete(o),wt.set(o,n),n});return hr.set(o,i),i}return ss(o,r)}function Bu(o,e){const t=o;if(e===void 0){wt.delete(t);return}wt.set(t,e)}class Qe{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,at(t)&&(t={name:t}),this.type=e,this.name=t.name,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements,wu(t.template)?dr.set(this,t.template):this.template=t.template;const i=e.prototype,n=Kr.collect(e,t.attributes),s=new Array(n.length),l={},u={};for(let d=0,c=n.length;d<c;++d){const g=n[d];s[d]=g.attribute,l[g.name]=g,u[g.attribute]=g,m.defineProperty(i,g)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=l,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?os:t.shadowOptions===null?void 0:Object.assign(Object.assign({},os),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?rs:Object.assign(Object.assign({},rs),t.elementOptions),this.styles=fe.normalize(t.styles),this.schema=t.schema,fo.register(this)}define(e=this.registry,t){const r=this.type;if(!e.get(this.name)){if(as(this,e,t),this.template===void 0&&dr.has(this))return Promise.resolve().then(()=>ls(this)).then(i=>{i!==void 0&&!e.get(this.name)&&(this.platformDefined=!0,e.define(this.name,r,this.elementOptions))}).catch(i=>{Bu(this,i),m.notify(this,"template")}),this;this.platformDefined=!0,e.define(this.name,r,this.elementOptions)}return this}static compose(e,t){const r=is.has(e)||fo.getByType(e)?new Qe(class extends e{},t):new Qe(e,t);return Promise.resolve(r)}static registerBaseType(e){is.add(e)}}Qe.getByType=fo.getByType,Qe.getForInstance=fo.getForInstance,m.defineProperty(Qe.prototype,"template");const Cu={bubbles:!0,composed:!0,cancelable:!0},di="isConnected",cs=new WeakMap,hi=Symbol("fast-late-attribute-observer");function ur(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:cs.get(o))!==null&&t!==void 0?t:null}let ds;var be;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(be||(be={}));class qe{get isConnected(){return m.track(this,di),this.stage===be.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:go.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"&&cs.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){this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this.isPrerendered=new Promise(n=>{this._resolvePrerendered=n}),this.isHydrated=new Promise(n=>{this._resolveHydrated=n}),this._template=null,this.stage=be.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new Wn(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=Reflect.getPrototypeOf(e),i=r===null?[]:m.getAccessors(r);if(i.length>0){const n=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s<l;++s){const u=i[s].name,d=e[u];d!==void 0&&(delete e[u],n[u]=d)}Object.keys(n).length===0&&(this.boundObservables=null)}this.captureBoundObservables()}get subject(){return this._notifier.subject}notify(e){this._notifier.notify(e)}subscribe(e,t){this._notifier.subscribe(e,t)}unsubscribe(e,t){this._notifier.unsubscribe(e,t)}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(r=i.get(e))!==null&&r!==void 0?r:0;n===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===be.connected||this.stage===be.connecting)&&e.connectedCallback(this)):i.set(e,n+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==be.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=ur(r))!==null&&t!==void 0?t:this.source).append(e):e.isAttachedTo(r)||e.addStylesTo(r)}removeStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=ur(r))!==null&&t!==void 0?t:r).removeChild(e):e.isAttachedTo(r)&&e.removeStylesFrom(r)}connect(){this.stage===be.disconnected&&(this.stage=be.connecting,this.captureBoundObservables(),this.syncLateAttributes(),this.observeLateAttributes(),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=be.connected,m.notify(this,di))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,n=r.length;i<n;++i){const s=r[i];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),r=n=>{let s=Reflect.getPrototypeOf(e);for(;s!==null;){const l=Reflect.getOwnPropertyDescriptor(s,n);if(l?.get||l?.set)return!0;s=Reflect.getPrototypeOf(s)}return!1};let i=this.boundObservables;for(let n=0,s=t.length;n<s;++n){const l=t[n],u=l[0]==="_"?l.slice(1):l;if(!r(u))continue;const d=e[u],c=l!==u,g=d!==null&&typeof d=="object"&&!d?.$isProxy&&!(Array.isArray(d)&&d?.$fastController);if(d===void 0){c||delete e[l];continue}c&&!g||(delete e[l],(i??(i=this.boundObservables=Object.create(null)))[u]=d)}}syncLateAttributes(){const e=ci(this.definition);if(e!==null)for(const t of Object.keys(e))this.source.hasAttribute(t)&&this.onAttributeChangedCallback(t,null,this.source.getAttribute(t))}observeLateAttributes(){const e=ci(this.definition);if(e===null)return;const t=this.source;t[hi]===void 0&&(t[hi]=new MutationObserver(r=>{const i=t.$fastController,n=ci(i.definition);if(n!==null)for(let s=0,l=r.length;s<l;++s){const u=r[s].attributeName;u===null||n[u]===void 0||i.onAttributeChangedCallback(u,null,t.getAttribute(u))}}),t[hi].observe(t,{attributes:!0,attributeFilter:Object.keys(e)}))}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===be.connected&&(this.stage=be.disconnecting,m.notify(this,di),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=be.disconnected)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===be.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Cu),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=ur(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||!this.needsInitialization))for(let n=i.firstChild;n!==null;n=i.firstChild)i.removeChild(n);if(e){const n=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;n&&qe.hydrationHook&&(s=qe.hydrationHook(this,e,r,i)),s||this.renderClientSide(e,r,i),this._resolvePrerendered(n),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,r){if(this.hasExistingShadowRoot){for(let i=r.firstChild;i!==null;i=r.firstChild)r.removeChild(i);this.hasExistingShadowRoot=!1}this.view=e.render(t,r,t),this.view.sourceLifetime=ar.coupled}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const i=Qe.getForInstance(e);if(i===void 0)throw we.error(le.missingElementDefinition);return m.getNotifier(i).subscribe({handleChange:()=>{qe.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(i).subscribe({handleChange:()=>{qe.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new ds(e,i)}static setStrategy(e){ds=e}static installHydrationHook(e){qe.hydrationHook=e}}qe.hydrationHook=null,xt(qe),qe.setStrategy(qe);function pr(o){var e;return"adoptedStyleSheets"in o?o:(e=ur(o))!==null&&e!==void 0?e:o.getRootNode()}class Yr{constructor(e){const t=Yr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){us(pr(e),this.sheets)}removeStylesFrom(e){ps(pr(e),this.sheets)}}Yr.styleSheetCache=new Map;let Pu=0;const Iu=()=>`fast-${++Pu}`;function hs(o){return o===document?document.body:o}class Au{constructor(e){this.styles=e,this.styleClass=Iu()}addStylesTo(e){e=hs(pr(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const n=document.createElement("style");n.innerHTML=t[i],n.className=r,e.append(n)}}removeStylesFrom(e){e=hs(pr(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let us=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},ps=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(fe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),us=(o,e)=>{o.adoptedStyleSheets.push(...e)},ps=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}fe.setDefaultStrategy(Yr)}else fe.setDefaultStrategy(Au);function gs(o){const e=class extends o{constructor(){super(),qe.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Qe.registerBaseType(e),e}function Nu(o){return typeof o?.then=="function"}function Tu(o,e,t){return Array.isArray(e)&&(t=e,e=void 0),(po(o)?Qe.compose(o,e):Qe.compose(this,o)).then(i=>{as(i,i.registry,t);const n=ls(i);return Nu(n)?n.then(()=>i.define().type):i.define().type})}function zu(o){return gs(o)}const k=Object.assign(gs(HTMLElement),{from:zu,define:Tu});function Se(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ui=ti(),fs=Object.freeze({getForInstance:ui.getForInstance,getByType:ui.getByType,define(o){return ui.register({type:o}),o}});function bs(o,e){const t=[];let r="";for(let i=0,n=o.length-1;i<n;++i){r+=o[i];let s=e[i];fs.getForInstance(s)!==void 0&&(s=s.createCSS()),s instanceof fe||s instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(s)):r+=s}return r+=o[o.length-1],r.trim()!==""&&t.push(r),t}const p=(o,...e)=>new fe(bs(o,e));class ms{constructor(e){this.value=e.length===0?"":e.length===1?e[0]:new fe(e)}createCSS(){return this.value}}fs.define(ms),p.partial=(o,...e)=>new ms(bs(o,e));const pi=`fast-${Math.random().toString(36).substring(2,8)}`,gr=`${pi}{`,bo=`}${pi}`,_u=bo.length;let Eu=0;const gi=()=>`${pi}-${++Eu}`,vs=Object.freeze({interpolation:o=>`${gr}${o}${bo}`,attribute:o=>`${gi()}="${gr}${o}${bo}"`,comment:o=>`<!--${gr}${o}${bo}-->`}),fr=Object.freeze({parse(o,e){const t=o.split(gr);if(t.length===1)return null;const r=[];for(let i=0,n=t.length;i<n;++i){const s=t[i],l=s.indexOf(bo);let u;if(l===-1)u=s;else{const d=s.substring(0,l);r.push(e[d]),u=s.substring(l+_u)}u!==""&&r.push(u)}return r}}),fi=ti(),Ge=Object.freeze({getForInstance:fi.getForInstance,getByType:fi.getByType,define(o,e){return e=e||{},e.type=o,fi.register(e),o},assignAspect(o,e){if(!e){o.aspectType=J.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?J.tokenList:J.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=J.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=J.event;break;default:o.targetAspect=e,o.aspectType=J.attribute;break}}});class bi{constructor(e){this.options=e}createHTML(e){return vs.attribute(e(this))}createBehavior(){return this}}xt(bi);const Fu=o=>o.nodeType===1,mo=o=>o?e=>e.nodeType===1&&e.matches(o):Fu;class Ou extends bi{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,cu),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const $s=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Lu=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Du=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Mu=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Hu=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Vu=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ys(o){return o&&o.nodeType===Node.COMMENT_NODE}const Le=Object.freeze({attributeMarkerName:"data-fe",legacyAttributeMarkerName:"data-fe-b",legacyCompactAttributeMarkerName:"data-fe-c",contentBindingStartMarker(){return"fe:b"},contentBindingEndMarker(){return"fe:/b"},repeatStartMarker(){return"fe:r"},repeatEndMarker(){return"fe:/r"},elementBoundaryStartMarker(){return"fe:e"},elementBoundaryEndMarker(){return"fe:/e"},isContentBindingStartMarker(o){return o==="fe:b"||$s.test(o)},isContentBindingEndMarker(o){return o==="fe:/b"||Lu.test(o)},isRepeatViewStartMarker(o){return o==="fe:r"||Du.test(o)},isRepeatViewEndMarker(o){return o==="fe:/r"||Mu.test(o)},isElementBoundaryStartMarker(o){return ys(o)&&(o.data==="fe:e"||Hu.test(o.data))},isElementBoundaryEndMarker(o){return ys(o)&&(o.data==="fe:/e"||Vu.test(o.data))},parseAttributeBindingCount(o){const e=o.getAttribute(this.attributeMarkerName);if(e===null)return null;const t=e.trim();if(!/^\d+$/.test(t))throw we.error(le.invalidHydrationAttributeMarker,{value:e});const r=parseInt(t,10);if(r<1)throw we.error(le.invalidHydrationAttributeMarker,{value:e});return r},parseLegacyAttributeBindingIndices(o){const e=[],t=o.getAttribute(this.legacyAttributeMarkerName);if(t!==null)for(const n of t.trim().split(/\s+/)){if(n==="")continue;const s=Number(n);if(!Number.isInteger(s)||s<0)throw we.error(le.invalidHydrationAttributeMarker,{value:t});e.push(s)}const r=`${this.legacyAttributeMarkerName}-`,i=`${this.legacyCompactAttributeMarkerName}-`;for(const n of o.getAttributeNames())if(n.startsWith(r)){const s=Number(n.slice(r.length));if(!Number.isInteger(s)||s<0)throw we.error(le.invalidHydrationAttributeMarker,{value:n});e.push(s)}else if(n.startsWith(i)){const[s,l]=n.slice(i.length).split("-").map(u=>Number(u));if(!Number.isInteger(s)||!Number.isInteger(l)||s<0||l<1)throw we.error(le.invalidHydrationAttributeMarker,{value:n});for(let u=0;u<l;u++)e.push(s+u)}return e.length===0?null:e},removeLegacyAttributeBindingMarkers(o){o.removeAttribute(this.legacyAttributeMarkerName);for(const e of o.getAttributeNames())(e.startsWith(`${this.legacyAttributeMarkerName}-`)||e.startsWith(`${this.legacyCompactAttributeMarkerName}-`))&&o.removeAttribute(e)},parseLegacyContentBindingStartIndex(o){return Ru($s,o)}});function Ru(o,e){const t=o.exec(e);return t===null?null:Number(t[1])}const br=Symbol.for("fe-hydration");function ks(o){return o[br]===br}const ju="unknown";function qu(o,e){const t=e?`: ${e}`:"";return`Hydration mismatch in <${o}>${t}. Install hydrationDebugger() from "@microsoft/fast-element/hydration.js" and pass it as enableHydration({ debugger: hydrationDebugger() }) for an "Expected / Received" report including the SSR HTML snippet.`}const Wu="content following `<!--fe:b-->` content binding marker",Gu="matching `<!--fe:/b-->` content binding close marker",Xu="matching `<!--fe:/e-->` element boundary close marker";function xs(o){return`no more attribute bindings (template defines ${o})`}function Uu(o){return`no more content bindings (template defines ${o})`}function ws(o,e){const t=(o??ju).toLowerCase();return qu(t,e)}const Ku={formatBindingMismatch(o,e,t,r){return{message:ws(r,void 0)}},formatStructuralError(o,e,t){return{message:ws(e,t)}}};let Yu=Ku;function St(){return Yu}function Bt(o){var e;return o?(e=o.getRootNode().host)===null||e===void 0?void 0:e.nodeName:void 0}class Ct extends Error{constructor(e,t,r,i,n){super(e),this.factories=t,this.node=r,this.expected=i,this.received=n}}function mi(o){return o.nodeType===Node.COMMENT_NODE}function Ss(o){return o.nodeType===Node.TEXT_NODE}function Bs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,mi(e)||Ss(e)?e.data.length:e.childNodes.length),t}function Zu(o,e,t){const r=Bs(o,e),i=r.commonAncestorContainer,n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(g){return r.comparePoint(g,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),s={},l={},u=ep(t);let d=u,c=n.currentNode=o;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{const g=c,S=Le.parseLegacyAttributeBindingIndices(g);if(S!==null){for(const G of S){const ae=G+u,st=t[ae];if(!st){const uo=xs(t.length),Jr=St().formatStructuralError(c,Bt(c),uo);throw new Ct(Jr.message,t,g,Jr.expected,Jr.received)}vo(st,c,s),d=Math.max(d,ae+1)}Le.removeLegacyAttributeBindingMarkers(g);break}const O=Le.parseAttributeBindingCount(g);if(O!==null){for(let G=0;G<O;G++){const ae=t[d++];if(!ae){const st=xs(t.length),uo=St().formatStructuralError(c,Bt(c),st);throw new Ct(uo.message,t,c,uo.expected,uo.received)}vo(ae,c,s)}g.removeAttribute(Le.attributeMarkerName)}break}case Node.COMMENT_NODE:{const g=c.data;if(Le.isElementBoundaryStartMarker(c))c.data="",Qu(n,t,c);else if(Le.isContentBindingStartMarker(g)){const S=Le.parseLegacyContentBindingStartIndex(g),O=S===null?d++:S+u,G=t[O];if(d=Math.max(d,O+1),!G){const ae=Uu(t.length),st=St().formatStructuralError(c,Bt(c),ae);throw new Ct(st.message,t,c,st.expected,st.received)}Ju(c,n,G,t,s,l)}break}}c=n.nextNode()}return r.detach(),{targets:s,boundaries:l}}function Ju(o,e,t,r,i,n){const s=[];let l=e.nextSibling();if(o.data="",l===null){const c=Wu,g=St().formatStructuralError(o,Bt(o),c);throw new Ct(g.message,r,o,g.expected,g.received)}const u=l;let d=0;for(;l!==null;){if(mi(l)){if(Le.isContentBindingStartMarker(l.data))d++;else if(Le.isContentBindingEndMarker(l.data)){if(d===0)break;d--}}s.push(l),l=e.nextSibling()}if(l===null){const c=Gu,g=St().formatStructuralError(o,Bt(o),c);throw new Ct(g.message,r,o,g.expected,g.received)}if(l.data="",s.length===1&&Ss(s[0]))vo(t,s[0],i);else{l!==u&&l.previousSibling!==null&&(n[t.targetNodeId]={first:u,last:l.previousSibling});const c=l.parentNode.insertBefore(document.createTextNode(""),l);vo(t,c,i)}}function Qu(o,e,t){let r=0,i=o.nextSibling();for(;i!==null;){if(mi(i)){if(Le.isElementBoundaryStartMarker(i))i.data="",r++;else if(Le.isElementBoundaryEndMarker(i)){if(r===0){i.data="";return}i.data="",r--}}i=o.nextSibling()}const n=Xu,s=St().formatStructuralError(t,Bt(t),n);throw new Ct(s.message,e,t,s.expected,s.received)}function ep(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function vo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}function vi(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Cs{constructor(){this.index=0,this.length=0}get event(){return go.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class mr extends Cs{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=ar.unknown,this._skipAttrUpdates=!1,this.isPrerendered=Promise.resolve(!1),this.isHydrated=Promise.resolve(!1),this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){vi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e&&this.context===t)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n].createBehavior();l.bind(this),r[n]=l}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){vi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}xt(mr),m.defineProperty(mr.prototype,"index"),m.defineProperty(mr.prototype,"length");var Ps;const $o={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class tp extends Error{constructor(e,t,r,i,n,s){super(e),this.factory=t,this.fragment=r,this.templateString=i,this.expected=n,this.received=s}}class op extends Cs{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Ps]=br,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=ar.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=$o.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){if(this.source===e&&this.context===t)return;this.hydrationStage!==$o.hydrated&&(this._hydrationStage=$o.hydrating);let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:n,boundaries:s}=Zu(this.firstChild,this.lastChild,this.factories);this._targets=n,this._bindingViewBoundaries=s}catch(n){if(n instanceof Ct){let s=this.sourceTemplate.html;typeof s!="string"&&(s=s.innerHTML),n.templateString=s}throw n}this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n];if(l.targetNodeId==="h"&&this.hostBindingTarget&&vo(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const u=l.createBehavior();u.bind(this),r[n]=u}else{let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML);const d=Bs(this.firstChild,this.lastChild).cloneContents(),c=St().formatBindingMismatch(l,this.firstChild,this.lastChild,Bt(this.firstChild));throw new tp(c.message,l,d,u,c.expected,c.received)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0,this._hydrationStage=$o.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){vi(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}}Ps=br,xt(op);function rp(o){return o.create!==void 0}function ip(o,e,t,r){if(t==null&&(t=""),rp(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(ks(r)&&ks(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==$o.hydrated){const n=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(n.first,n.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function np(o,e,t){var r;const i=`${this.id}-t`,n=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},s=n.cv;let l=n.v;const u=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let c=0,g=d.length;c<g;++c){const S=d[c];S!==""&&(s[S]=l,u.add(S))}}if(n.v=l+1,l!==0){l-=1;for(const d in s)s[d]===l&&u.remove(d)}}const sp={[J.attribute]:jt.setAttribute,[J.booleanAttribute]:jt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:ip,[J.tokenList]:np,[J.event]:()=>{}};class qt{constructor(e){this.updateTarget=null,this.aspectType=J.content,this.dataBinding=e}createHTML(e){return vs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=sp[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw we.error(le.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];switch(this.aspectType){case J.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e;const n=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute))break;this.updateTarget(r,this.targetAspect,n,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){go.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);go.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const i=t.target;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Ge.define(qt,{aspected:!0});const Is=(o,e)=>`${o}.${e}`,As={},Xe={index:0,node:null};function Ns(o){o.startsWith("fast-")||we.warn(le.hostBindingWithoutHost,{name:o})}const ap=new Proxy(document.createElement("div"),{get(o,e){Ns(e);const t=Reflect.get(o,e);return po(t)?t.bind(o):t},set(o,e,t){return Ns(e),Reflect.set(o,e,t)}});class lp{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,i,n){var s,l;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(s=e.id)!==null&&s!==void 0?s:gi(),e.targetNodeId=r,e.targetTagName=n,e.policy=(l=e.policy)!==null&&l!==void 0?l:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const s=e.lastIndexOf("."),l=e.substring(0,s),u=parseInt(e.substring(s+1),10);this.addTargetDescriptor(l,e,u)}let n=As[t];if(!n){const s=`_${t}`;As[t]=n={get(){var l;return(l=this[s])!==null&&l!==void 0?l:this[s]=this[e].childNodes[r]}}}i[t]=n}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??ap;for(const i of this.nodeIds)Reflect.get(r,i);return new mr(t,this.factories,r)}}function Ts(o,e,t,r,i,n=!1){const s=t.attributes,l=o.directives;for(let u=0,d=s.length;u<d;++u){const c=s[u],g=c.value,S=fr.parse(g,l);let O=null;S===null?n&&(O=new qt(qn(()=>g,o.policy)),Ge.assignAspect(O,c.name)):O=$i.aggregate(S,o.policy),O!==null&&(t.removeAttributeNode(c),u--,d--,o.addFactory(O,e,r,i,t.tagName))}}function cp(o,e,t,r,i){const n=fr.parse(e.textContent,o.directives);if(n===null)return Xe.node=e.nextSibling,Xe.index=i+1,Xe;let s,l=s=e;for(let u=0,d=n.length;u<d;++u){const c=n[u];u!==0&&(i++,r=Is(t,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),at(c)?s.textContent=c:(s.textContent=" ",Ge.assignAspect(c),o.addFactory(c,t,r,i,null)),l=s}return Xe.index=i+1,Xe.node=l.nextSibling,Xe}function zs(o,e,t){let r=0,i=e.firstChild;for(;i;){const n=dp(o,t,i,r);i=n.node,r=n.index}}function dp(o,e,t,r){const i=Is(e,r);switch(t.nodeType){case 1:Ts(o,e,t,i,r),zs(o,t,i);break;case 3:return cp(o,t,e,i,r);case 8:{const n=fr.parse(t.data,o.directives);n!==null&&o.addFactory($i.aggregate(n),e,i,r,null);break}}return Xe.index=r+1,Xe.node=t.nextSibling,Xe}function hp(o,e){return o&&o.nodeType===8&&fr.parse(o.data,e)!==null}const _s="TEMPLATE",$i={compile(o,e,t=jt.policy){let r;if(at(o)){r=document.createElement(_s),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===_s&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new lp(i,e,t);return Ts(n,"",r,"h",0,!0),(hp(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),zs(n,i,"r"),Xe.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=jt.policy){if(o.length===1)return o[0];let t,r=!1,i;const n=o.length,s=o.map(d=>at(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),l=(d,c)=>{let g="";for(let S=0;S<n;++S)g+=s[S](d,c);return g},u=new qt(Un(l,i??e,r));return Ge.assignAspect(u,t),u}};class Es extends bi{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ge.define(Es);const T=o=>new Es(o),up=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,pp=Object.create(null);class Pt{constructor(e,t=pp){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}Pt.empty=new Pt(""),Ge.define(Pt);function gp(o,e,t,r=Ge.getForInstance(o)){if(r.aspected){const i=up.exec(e);i!==null&&Ge.assignAspect(o,i[2])}return o.createHTML(t)}class Zr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=$i.compile(this.html,this.factories,this.policy)),this.result}inline(){return new Pt(at(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw we.error(le.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw we.error(le.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}create(e){return this.compile().createView(e)}static create(e,t,r){let i="";const n=Object.create(null),s=l=>{var u;const d=(u=l.id)!==null&&u!==void 0?u:l.id=gi();return n[d]=l,d};for(let l=0,u=e.length-1;l<u;++l){const d=e[l];let c=t[l],g;if(i+=d,po(c))c=new qt(Un(c));else if(c instanceof ei)c=new qt(c);else if(!(g=Ge.getForInstance(c))){const S=c;c=new qt(qn(()=>S))}i+=gp(c,d,s,g)}return new Zr(i+e[e.length-1],n,r)}}xt(Zr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Zr.create(o,e);throw we.error(le.directCallToHTMLTagNotAllowed)};b.partial=o=>new Pt(o);const Fs="slotchange";class Os extends Ou{observe(e){e.addEventListener(Fs,this)}disconnect(e){e.removeEventListener(Fs,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ge.define(Os);function K(o){return at(o)&&(o={property:o}),new Os(o)}const fp=":host([hidden]){display:none}";function x(o){return`${fp}:host{display:${o}}`}const A="var(--colorNeutralForeground1)",yi="var(--colorNeutralForeground1Hover)",Ls="var(--colorNeutralForeground1Pressed)",bp="var(--colorNeutralForeground1Selected)",Ie="var(--colorNeutralForeground2)",It="var(--colorNeutralForeground2Hover)",At="var(--colorNeutralForeground2Pressed)",yo="var(--colorNeutralForeground2Selected)",ko="var(--colorNeutralForeground2BrandHover)",xo="var(--colorNeutralForeground2BrandPressed)",Ds="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",Ms="var(--colorNeutralForeground3Hover)",Hs="var(--colorNeutralForeground3Pressed)",Vs="var(--colorNeutralForeground3Selected)",mp="var(--colorNeutralForeground3BrandHover)",vp="var(--colorNeutralForeground3BrandPressed)",$p="var(--colorNeutralForeground3BrandSelected)",vr="var(--colorNeutralForeground4)",yp="var(--colorNeutralForeground5)",kp="var(--colorNeutralForeground5Hover)",xp="var(--colorNeutralForeground5Pressed)",wp="var(--colorNeutralForeground5Selected)",z="var(--colorNeutralForegroundDisabled)",Rs="var(--colorBrandForegroundLink)",js="var(--colorBrandForegroundLinkHover)",qs="var(--colorBrandForegroundLinkPressed)",Sp="var(--colorBrandForegroundLinkSelected)",Ws="var(--colorNeutralForeground2Link)",Gs="var(--colorNeutralForeground2LinkHover)",Xs="var(--colorNeutralForeground2LinkPressed)",Bp="var(--colorNeutralForeground2LinkSelected)",Cp="var(--colorCompoundBrandForeground1)",Us="var(--colorCompoundBrandForeground1Hover)",Ks="var(--colorCompoundBrandForeground1Pressed)",Ue="var(--colorNeutralForegroundOnBrand)",lt="var(--colorNeutralForegroundInverted)",Ys="var(--colorNeutralForegroundInvertedHover)",Zs="var(--colorNeutralForegroundInvertedPressed)",Pp="var(--colorNeutralForegroundInvertedSelected)",Ip="var(--colorNeutralForegroundInverted2)",ki="var(--colorNeutralForegroundStaticInverted)",Ap="var(--colorNeutralForegroundInvertedLink)",Np="var(--colorNeutralForegroundInvertedLinkHover)",Tp="var(--colorNeutralForegroundInvertedLinkPressed)",zp="var(--colorNeutralForegroundInvertedLinkSelected)",_p="var(--colorNeutralForegroundInvertedDisabled)",wo="var(--colorBrandForeground1)",Js="var(--colorBrandForeground2)",Ep="var(--colorBrandForeground2Hover)",Fp="var(--colorBrandForeground2Pressed)",Qs="var(--colorNeutralForeground1Static)",Op="var(--colorBrandForegroundInverted)",Lp="var(--colorBrandForegroundInvertedHover)",Dp="var(--colorBrandForegroundInvertedPressed)",Mp="var(--colorBrandForegroundOnLight)",Hp="var(--colorBrandForegroundOnLightHover)",Vp="var(--colorBrandForegroundOnLightPressed)",Rp="var(--colorBrandForegroundOnLightSelected)",C="var(--colorNeutralBackground1)",So="var(--colorNeutralBackground1Hover)",$r="var(--colorNeutralBackground1Pressed)",xi="var(--colorNeutralBackground1Selected)",jp="var(--colorNeutralBackground2)",qp="var(--colorNeutralBackground2Hover)",Wp="var(--colorNeutralBackground2Pressed)",Gp="var(--colorNeutralBackground2Selected)",Wt="var(--colorNeutralBackground3)",Xp="var(--colorNeutralBackground3Hover)",Up="var(--colorNeutralBackground3Pressed)",Kp="var(--colorNeutralBackground3Selected)",ea="var(--colorNeutralBackground4)",Yp="var(--colorNeutralBackground4Hover)",Zp="var(--colorNeutralBackground4Pressed)",Jp="var(--colorNeutralBackground4Selected)",ta="var(--colorNeutralBackground5)",Qp="var(--colorNeutralBackground5Hover)",eg="var(--colorNeutralBackground5Pressed)",tg="var(--colorNeutralBackground5Selected)",Gt="var(--colorNeutralBackground6)",og="var(--colorNeutralBackground7)",rg="var(--colorNeutralBackground7Hover)",ig="var(--colorNeutralBackground7Pressed)",ng="var(--colorNeutralBackground7Selected)",sg="var(--colorNeutralBackground8)",wi="var(--colorNeutralBackgroundInverted)",ag="var(--colorNeutralBackgroundInvertedHover)",lg="var(--colorNeutralBackgroundInvertedPressed)",cg="var(--colorNeutralBackgroundInvertedSelected)",dg="var(--colorNeutralBackgroundStatic)",hg="var(--colorNeutralBackgroundAlpha)",ug="var(--colorNeutralBackgroundAlpha2)",Si="var(--colorSubtleBackground)",Bo="var(--colorSubtleBackgroundHover)",Xt="var(--colorSubtleBackgroundPressed)",Bi="var(--colorSubtleBackgroundSelected)",oa="var(--colorSubtleBackgroundLightAlphaHover)",ra="var(--colorSubtleBackgroundLightAlphaPressed)",ia="var(--colorSubtleBackgroundLightAlphaSelected)",pg="var(--colorSubtleBackgroundInverted)",gg="var(--colorSubtleBackgroundInvertedHover)",fg="var(--colorSubtleBackgroundInvertedPressed)",bg="var(--colorSubtleBackgroundInvertedSelected)",ce="var(--colorTransparentBackground)",Co="var(--colorTransparentBackgroundHover)",Po="var(--colorTransparentBackgroundPressed)",Ci="var(--colorTransparentBackgroundSelected)",et="var(--colorNeutralBackgroundDisabled)",mg="var(--colorNeutralBackgroundDisabled2)",vg="var(--colorNeutralBackgroundInvertedDisabled)",$g="var(--colorNeutralStencil1)",yg="var(--colorNeutralStencil2)",kg="var(--colorNeutralStencil1Alpha)",xg="var(--colorNeutralStencil2Alpha)",yr="var(--colorBackgroundOverlay)",wg="var(--colorScrollbarOverlay)",Pi="var(--colorBrandBackground)",Ii="var(--colorBrandBackgroundHover)",Ai="var(--colorBrandBackgroundPressed)",na="var(--colorBrandBackgroundSelected)",ct="var(--colorCompoundBrandBackground)",Nt="var(--colorCompoundBrandBackgroundHover)",Tt="var(--colorCompoundBrandBackgroundPressed)",Ni="var(--colorBrandBackgroundStatic)",Ti="var(--colorBrandBackground2)",Sg="var(--colorBrandBackground2Hover)",Bg="var(--colorBrandBackground2Pressed)",Cg="var(--colorBrandBackground3Static)",Pg="var(--colorBrandBackground4Static)",Ig="var(--colorBrandBackgroundInverted)",Ag="var(--colorBrandBackgroundInvertedHover)",Ng="var(--colorBrandBackgroundInvertedPressed)",Tg="var(--colorBrandBackgroundInvertedSelected)",zg="var(--colorNeutralCardBackground)",_g="var(--colorNeutralCardBackgroundHover)",Eg="var(--colorNeutralCardBackgroundPressed)",Fg="var(--colorNeutralCardBackgroundSelected)",Og="var(--colorNeutralCardBackgroundDisabled)",De="var(--colorNeutralStrokeAccessible)",dt="var(--colorNeutralStrokeAccessibleHover)",ht="var(--colorNeutralStrokeAccessiblePressed)",Lg="var(--colorNeutralStrokeAccessibleSelected)",Me="var(--colorNeutralStroke1)",ut="var(--colorNeutralStroke1Hover)",Ut="var(--colorNeutralStroke1Pressed)",Dg="var(--colorNeutralStroke1Selected)",Kt="var(--colorNeutralStroke2)",sa="var(--colorNeutralStroke3)",Mg="var(--colorNeutralStroke4)",Hg="var(--colorNeutralStroke4Hover)",Vg="var(--colorNeutralStroke4Pressed)",Rg="var(--colorNeutralStroke4Selected)",jg="var(--colorNeutralStrokeSubtle)",qg="var(--colorNeutralStrokeOnBrand)",aa="var(--colorNeutralStrokeOnBrand2)",Wg="var(--colorNeutralStrokeOnBrand2Hover)",Gg="var(--colorNeutralStrokeOnBrand2Pressed)",Xg="var(--colorNeutralStrokeOnBrand2Selected)",zi="var(--colorBrandStroke1)",_i="var(--colorBrandStroke2)",Ug="var(--colorBrandStroke2Hover)",Kg="var(--colorBrandStroke2Pressed)",Yg="var(--colorBrandStroke2Contrast)",He="var(--colorCompoundBrandStroke)",la="var(--colorCompoundBrandStrokeHover)",Ei="var(--colorCompoundBrandStrokePressed)",me="var(--colorNeutralStrokeDisabled)",Zg="var(--colorNeutralStrokeDisabled2)",Jg="var(--colorNeutralStrokeInvertedDisabled)",j="var(--colorTransparentStroke)",Io="var(--colorTransparentStrokeInteractive)",Qg="var(--colorTransparentStrokeDisabled)",ef="var(--colorNeutralStrokeAlpha)",tf="var(--colorNeutralStrokeAlpha2)",Ao="var(--colorStrokeFocus1)",re="var(--colorStrokeFocus2)",ca="var(--colorNeutralShadowAmbient)",da="var(--colorNeutralShadowKey)",of="var(--colorNeutralShadowAmbientLighter)",rf="var(--colorNeutralShadowKeyLighter)",nf="var(--colorNeutralShadowAmbientDarker)",sf="var(--colorNeutralShadowKeyDarker)",af="var(--colorBrandShadowAmbient)",lf="var(--colorBrandShadowKey)",Fi="var(--colorPaletteRedBackground1)",ha="var(--colorPaletteRedBackground2)",Oi="var(--colorPaletteRedBackground3)",cf="var(--colorPaletteRedBorderActive)",Li="var(--colorPaletteRedBorder1)",kr="var(--colorPaletteRedBorder2)",xr="var(--colorPaletteRedForeground1)",ua="var(--colorPaletteRedForeground2)",Di="var(--colorPaletteRedForeground3)",df="var(--colorPaletteRedForegroundInverted)",Mi="var(--colorPaletteGreenBackground1)",hf="var(--colorPaletteGreenBackground2)",Hi="var(--colorPaletteGreenBackground3)",uf="var(--colorPaletteGreenBorderActive)",pa="var(--colorPaletteGreenBorder1)",ga="var(--colorPaletteGreenBorder2)",fa="var(--colorPaletteGreenForeground1)",ba="var(--colorPaletteGreenForeground2)",ma="var(--colorPaletteGreenForeground3)",pf="var(--colorPaletteGreenForegroundInverted)",Vi="var(--colorPaletteDarkOrangeBackground1)",gf="var(--colorPaletteDarkOrangeBackground2)",Ri="var(--colorPaletteDarkOrangeBackground3)",ff="var(--colorPaletteDarkOrangeBorderActive)",ji="var(--colorPaletteDarkOrangeBorder1)",bf="var(--colorPaletteDarkOrangeBorder2)",va="var(--colorPaletteDarkOrangeForeground1)",mf="var(--colorPaletteDarkOrangeForeground2)",qi="var(--colorPaletteDarkOrangeForeground3)",$a="var(--colorPaletteYellowBackground1)",vf="var(--colorPaletteYellowBackground2)",ya="var(--colorPaletteYellowBackground3)",$f="var(--colorPaletteYellowBorderActive)",ka="var(--colorPaletteYellowBorder1)",yf="var(--colorPaletteYellowBorder2)",kf="var(--colorPaletteYellowForeground1)",wr="var(--colorPaletteYellowForeground2)",xf="var(--colorPaletteYellowForeground3)",wf="var(--colorPaletteYellowForegroundInverted)",Sf="var(--colorPaletteBerryBackground1)",Bf="var(--colorPaletteBerryBackground2)",Cf="var(--colorPaletteBerryBackground3)",Pf="var(--colorPaletteBerryBorderActive)",If="var(--colorPaletteBerryBorder1)",Af="var(--colorPaletteBerryBorder2)",Nf="var(--colorPaletteBerryForeground1)",Tf="var(--colorPaletteBerryForeground2)",zf="var(--colorPaletteBerryForeground3)",_f="var(--colorPaletteMarigoldBackground1)",Wi="var(--colorPaletteMarigoldBackground2)",Ef="var(--colorPaletteMarigoldBackground3)",xa="var(--colorPaletteMarigoldBorderActive)",Ff="var(--colorPaletteMarigoldBorder1)",Of="var(--colorPaletteMarigoldBorder2)",Lf="var(--colorPaletteMarigoldForeground1)",wa="var(--colorPaletteMarigoldForeground2)",Df="var(--colorPaletteMarigoldForeground3)",Mf="var(--colorPaletteLightGreenBackground1)",Hf="var(--colorPaletteLightGreenBackground2)",Vf="var(--colorPaletteLightGreenBackground3)",Rf="var(--colorPaletteLightGreenBorderActive)",jf="var(--colorPaletteLightGreenBorder1)",qf="var(--colorPaletteLightGreenBorder2)",Wf="var(--colorPaletteLightGreenForeground1)",Gf="var(--colorPaletteLightGreenForeground2)",Xf="var(--colorPaletteLightGreenForeground3)",Sa="var(--colorPaletteAnchorBackground2)",Uf="var(--colorPaletteAnchorBorderActive)",Ba="var(--colorPaletteAnchorForeground2)",Ca="var(--colorPaletteBeigeBackground2)",Kf="var(--colorPaletteBeigeBorderActive)",Pa="var(--colorPaletteBeigeForeground2)",Ia="var(--colorPaletteBlueBackground2)",Yf="var(--colorPaletteBlueBorderActive)",Aa="var(--colorPaletteBlueForeground2)",Na="var(--colorPaletteBrassBackground2)",Zf="var(--colorPaletteBrassBorderActive)",Ta="var(--colorPaletteBrassForeground2)",za="var(--colorPaletteBrownBackground2)",Jf="var(--colorPaletteBrownBorderActive)",_a="var(--colorPaletteBrownForeground2)",Ea="var(--colorPaletteCornflowerBackground2)",Qf="var(--colorPaletteCornflowerBorderActive)",Fa="var(--colorPaletteCornflowerForeground2)",Oa="var(--colorPaletteCranberryBackground2)",eb="var(--colorPaletteCranberryBorderActive)",La="var(--colorPaletteCranberryForeground2)",Da="var(--colorPaletteDarkGreenBackground2)",tb="var(--colorPaletteDarkGreenBorderActive)",Ma="var(--colorPaletteDarkGreenForeground2)",Ha="var(--colorPaletteDarkRedBackground2)",ob="var(--colorPaletteDarkRedBorderActive)",Va="var(--colorPaletteDarkRedForeground2)",Ra="var(--colorPaletteForestBackground2)",rb="var(--colorPaletteForestBorderActive)",ja="var(--colorPaletteForestForeground2)",qa="var(--colorPaletteGoldBackground2)",ib="var(--colorPaletteGoldBorderActive)",Wa="var(--colorPaletteGoldForeground2)",Ga="var(--colorPaletteGrapeBackground2)",nb="var(--colorPaletteGrapeBorderActive)",Xa="var(--colorPaletteGrapeForeground2)",Ua="var(--colorPaletteLavenderBackground2)",sb="var(--colorPaletteLavenderBorderActive)",Ka="var(--colorPaletteLavenderForeground2)",Ya="var(--colorPaletteLightTealBackground2)",ab="var(--colorPaletteLightTealBorderActive)",Za="var(--colorPaletteLightTealForeground2)",Ja="var(--colorPaletteLilacBackground2)",lb="var(--colorPaletteLilacBorderActive)",Qa="var(--colorPaletteLilacForeground2)",el="var(--colorPaletteMagentaBackground2)",cb="var(--colorPaletteMagentaBorderActive)",tl="var(--colorPaletteMagentaForeground2)",ol="var(--colorPaletteMinkBackground2)",db="var(--colorPaletteMinkBorderActive)",rl="var(--colorPaletteMinkForeground2)",il="var(--colorPaletteNavyBackground2)",hb="var(--colorPaletteNavyBorderActive)",nl="var(--colorPaletteNavyForeground2)",sl="var(--colorPalettePeachBackground2)",ub="var(--colorPalettePeachBorderActive)",al="var(--colorPalettePeachForeground2)",ll="var(--colorPalettePinkBackground2)",pb="var(--colorPalettePinkBorderActive)",cl="var(--colorPalettePinkForeground2)",dl="var(--colorPalettePlatinumBackground2)",gb="var(--colorPalettePlatinumBorderActive)",hl="var(--colorPalettePlatinumForeground2)",ul="var(--colorPalettePlumBackground2)",fb="var(--colorPalettePlumBorderActive)",pl="var(--colorPalettePlumForeground2)",gl="var(--colorPalettePumpkinBackground2)",bb="var(--colorPalettePumpkinBorderActive)",fl="var(--colorPalettePumpkinForeground2)",bl="var(--colorPalettePurpleBackground2)",mb="var(--colorPalettePurpleBorderActive)",ml="var(--colorPalettePurpleForeground2)",vl="var(--colorPaletteRoyalBlueBackground2)",vb="var(--colorPaletteRoyalBlueBorderActive)",$l="var(--colorPaletteRoyalBlueForeground2)",yl="var(--colorPaletteSeafoamBackground2)",$b="var(--colorPaletteSeafoamBorderActive)",kl="var(--colorPaletteSeafoamForeground2)",xl="var(--colorPaletteSteelBackground2)",yb="var(--colorPaletteSteelBorderActive)",wl="var(--colorPaletteSteelForeground2)",Sl="var(--colorPaletteTealBackground2)",kb="var(--colorPaletteTealBorderActive)",Bl="var(--colorPaletteTealForeground2)",xb="var(--colorStatusSuccessBackground1)",wb="var(--colorStatusSuccessBackground2)",Sb="var(--colorStatusSuccessBackground3)",Bb="var(--colorStatusSuccessForeground1)",Cb="var(--colorStatusSuccessForeground2)",Pb="var(--colorStatusSuccessForeground3)",Ib="var(--colorStatusSuccessForegroundInverted)",Ab="var(--colorStatusSuccessBorderActive)",Nb="var(--colorStatusSuccessBorder1)",Tb="var(--colorStatusSuccessBorder2)",zb="var(--colorStatusWarningBackground1)",_b="var(--colorStatusWarningBackground2)",Eb="var(--colorStatusWarningBackground3)",Fb="var(--colorStatusWarningForeground1)",Ob="var(--colorStatusWarningForeground2)",Lb="var(--colorStatusWarningForeground3)",Db="var(--colorStatusWarningForegroundInverted)",Mb="var(--colorStatusWarningBorderActive)",Hb="var(--colorStatusWarningBorder1)",Vb="var(--colorStatusWarningBorder2)",Rb="var(--colorStatusDangerBackground1)",jb="var(--colorStatusDangerBackground2)",qb="var(--colorStatusDangerBackground3)",Wb="var(--colorStatusDangerBackground3Hover)",Gb="var(--colorStatusDangerBackground3Pressed)",Xb="var(--colorStatusDangerForeground1)",Ub="var(--colorStatusDangerForeground2)",Kb="var(--colorStatusDangerForeground3)",Yb="var(--colorStatusDangerForegroundInverted)",Zb="var(--colorStatusDangerBorderActive)",Jb="var(--colorStatusDangerBorder1)",Qb="var(--colorStatusDangerBorder2)",No="var(--borderRadiusNone)",Ae="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",Gi="var(--borderRadiusLarge)",Xi="var(--borderRadiusXLarge)",em="var(--borderRadius2XLarge)",tm="var(--borderRadius3XLarge)",om="var(--borderRadius4XLarge)",rm="var(--borderRadius5XLarge)",im="var(--borderRadius6XLarge)",de="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Cl="var(--fontFamilyMonospace)",Pl="var(--fontFamilyNumeric)",Yt="var(--fontSizeBase100)",L="var(--fontSizeBase200)",_="var(--fontSizeBase300)",he="var(--fontSizeBase400)",zt="var(--fontSizeBase500)",To="var(--fontSizeBase600)",Ui="var(--fontSizeHero700)",Ki="var(--fontSizeHero800)",Yi="var(--fontSizeHero900)",Zi="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",Il="var(--fontWeightMedium)",V="var(--fontWeightSemibold)",zo="var(--fontWeightBold)",_o="var(--lineHeightBase100)",q="var(--lineHeightBase200)",D="var(--lineHeightBase300)",ve="var(--lineHeightBase400)",Eo="var(--lineHeightBase500)",Ji="var(--lineHeightBase600)",Qi="var(--lineHeightHero700)",en="var(--lineHeightHero800)",tn="var(--lineHeightHero900)",on="var(--lineHeightHero1000)",Sr="var(--shadow2)",Fo="var(--shadow4)",Al="var(--shadow8)",Br="var(--shadow16)",Nl="var(--shadow28)",rn="var(--shadow64)",nm="var(--shadow2Brand)",sm="var(--shadow4Brand)",am="var(--shadow8Brand)",lm="var(--shadow16Brand)",cm="var(--shadow28Brand)",dm="var(--shadow64Brand)",P="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",Be="var(--strokeWidthThicker)",Cr="var(--strokeWidthThickest)",hm="var(--spacingHorizontalNone)",M="var(--spacingHorizontalXXS)",Q="var(--spacingHorizontalXS)",$e="var(--spacingHorizontalSNudge)",Ne="var(--spacingHorizontalS)",Te="var(--spacingHorizontalMNudge)",Y="var(--spacingHorizontalM)",Tl="var(--spacingHorizontalL)",zl="var(--spacingHorizontalXL)",Oo="var(--spacingHorizontalXXL)",um="var(--spacingHorizontalXXXL)",Pr="var(--spacingVerticalNone)",Lo="var(--spacingVerticalXXS)",_t="var(--spacingVerticalXS)",Zt="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",Do="var(--spacingVerticalMNudge)",_l="var(--spacingVerticalM)",Ir="var(--spacingVerticalL)",pm="var(--spacingVerticalXL)",pt="var(--spacingVerticalXXL)",El="var(--spacingVerticalXXXL)",Ar="var(--durationUltraFast)",Mo="var(--durationFaster)",gm="var(--durationFast)",Ho="var(--durationNormal)",Nr="var(--durationGentle)",Fl="var(--durationSlow)",nn="var(--durationSlower)",Vo="var(--durationUltraSlow)",Ol="var(--curveAccelerateMax)",gt="var(--curveAccelerateMid)",Ll="var(--curveAccelerateMin)",sn="var(--curveDecelerateMax)",ft="var(--curveDecelerateMid)",Dl="var(--curveDecelerateMin)",an="var(--curveEasyEaseMax)",Ro="var(--curveEasyEase)",Tr="var(--curveLinear)",fm="var(--zIndexBackground)",bm="var(--zIndexContent)",mm="var(--zIndexOverlay)",vm="var(--zIndexPopup)",$m="var(--zIndexMessages)",ym="var(--zIndexFloating)",km="var(--zIndexPriority)",xm="var(--zIndexDebug)",Ml=p`${x("block")} :host{max-width:fit-content;contain:content;color:${A}}.heading{height:44px;display:grid;position:relative;padding-inline:${Y} ${Te};border-radius:${B};font-family:${$};font-size:${_};font-weight:${E};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ce};border:none;box-sizing:border-box;color:inherit;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:${Ae}}: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:${Ne};grid-column:1/span 1;grid-row:1}.content{margin:0 ${Y}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ne};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ae};outline:none;border:2px solid ${Ao};box-shadow:inset 0 0 0 1px ${re}}: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:${_};line-height:${D}}:host([size='small']) .heading{font-size:${L};line-height:${q}}:host([size='large']) .heading{font-size:${he};line-height:${ve}}:host([size='extra-large']) .heading{font-size:${zt};line-height:${Eo}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:3;padding-inline-start:${Ne};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto 1fr auto;padding-inline:${Y}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Te} ${Y}}`;function ye(o){return o?typeof o=="string"?new Pt(o):"inline"in o?o.inline():o:Pt.empty}class tt{}function ot(o){return b`<slot name=end ${T("end")}>${ye(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name=start ${T("start")}>${ye(o.start)}</slot>`.inline()}const wm=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>'),Sm=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 Bm(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} ${T("expandbutton")}><slot name=heading></slot></button> ${Ve(o)}<slot name=marker-expanded>${ye(o.expandedIcon)}</slot><slot name=marker-collapsed>${ye(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Hl=Bm({collapsedIcon:wm,expandedIcon:Sm}),Vl={name:su,registry:h.registry,styles:Ml,template:Hl};function bt(o,...e){const t=cr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),cr.locate(r).forEach(n=>t.push(n))})}var Cm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cm(e,t,i),i};class Jt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}zr([a({attribute:"heading-level",mode:"fromView",converter:oe})],Jt.prototype,"headinglevel",2),zr([a({mode:"boolean"})],Jt.prototype,"expanded",2),zr([a({mode:"boolean"})],Jt.prototype,"disabled",2),zr([f],Jt.prototype,"expandbutton",2);class ln extends Jt{}bt(ln,tt),ln.define(Vl);const _r={single:"single",multi:"multi"},Im=`${h.prefix}-accordion`,Rl=p`${x("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Am(){return b`<template><slot ${K({property:"slottedAccordionItems",filter:mo()})}></slot></template>`}const jl=Am(),ql={name:Im,registry:h.registry,styles:Rl,template:jl};function Wl(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 jo(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,n=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,l=u=>{if(o.querySelector(s)===null||u&&u.timeRemaining()<=0){n?Wl(e,{timeout:i}):e();return}Wl(l,{timeout:i})};l()}var Nm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Gl=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nm(e,t,i),i};class Er extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{jo(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;Qr(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===_r.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=>Qr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===_r.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Qr(r)&&(this.activeItemIndex===i?(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||_r.multi,this.setItems()}}Gl([a({attribute:"expand-mode"})],Er.prototype,"expandmode",2),Gl([f],Er.prototype,"slottedAccordionItems",2),Er.define(ql);const qo={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Wo={circular:"circular",rounded:"rounded",square:"square"},Go={small:"small",medium:"medium",large:"large"},Xo={submit:"submit",reset:"reset",button:"button"},zm={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},_m=`${h.prefix}-button`,Em=qo,Fm=Wo,Om=Go,Xl={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},Lm={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Dm=`${h.prefix}-anchor-button`,Ul=p`${x("inline-flex")} :host{--icon-spacing:${$e};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:${C};color:${A};border:${P} solid ${Me};padding:0 ${Y};min-width:96px;border-radius:${B};font-size:${_};font-family:${$};font-weight:${V};line-height:${D};transition-duration:${Mo};transition-property:background,border,color;transition-timing-function:${Ro};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${So};color:${yi};border-color:${ut}}:host(:hover:active){background-color:${$r};border-color:${Ut};color:${Ls};outline-style:none}:host(:focus-visible){border-color:${j};outline:${ue} solid ${j};box-shadow:${Fo},0 0 0 2px ${re}}@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:${Q};min-height:24px;min-width:64px;padding:0 ${Ne};border-radius:${Ae};font-size:${L};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Gi};padding:0 ${Tl};font-size:${he};line-height:${ve}}: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:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${No}}:host([appearance='primary']){background-color:${Pi};color:${Ue};border-color:transparent}:host([appearance='primary']:hover){background-color:${Ii}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ue}}:host([appearance='primary']:hover:active){background-color:${Ai}}:host([appearance='primary']:focus-visible){border-color:${Ue};box-shadow:${Sr},0 0 0 2px ${re}}:host([appearance='outline']){background-color:${ce}}:host([appearance='outline']:hover){background-color:${Co}}:host([appearance='outline']:hover:active){background-color:${Po}}:host([appearance='subtle']){background-color:${Si};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Bo};color:${It};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Xt};color:${At};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ko}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${xo}}:host([appearance='transparent']){background-color:${ce};color:${Ie}}:host([appearance='transparent']:hover){background-color:${Co};color:${ko}}:host([appearance='transparent']:hover:active){background-color:${Po};color:${xo}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Qt=p`${Ul} :host(:is(:disabled,[disabled],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable])),:host(:is(:disabled,[disabled],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable]):hover:active){background-color:${et};border-color:${me};color:${z};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce}}:host([appearance='subtle']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[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],[disabled-focusable],[appearance]:disabled,[appearance][disabled],[appearance][disabled-focusable] ) ){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Mm=p`${Ul} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Hm(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${Ve(o)} <span class=content part=content><slot></slot></span>${ot(o)}</template>`}const Kl=Hm(),Yl={name:Dm,registry:h.registry,styles:Mm,template:Kl};var Vm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,mt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Vm(e,t,i),i};class Re extends k{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 Lm){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}}mt([a],Re.prototype,"download",2),mt([a],Re.prototype,"href",2),mt([a],Re.prototype,"hreflang",2),mt([a],Re.prototype,"ping",2),mt([a],Re.prototype,"referrerpolicy",2),mt([a],Re.prototype,"rel",2),mt([a],Re.prototype,"target",2),mt([a],Re.prototype,"type",2);class cn extends Re{}bt(cn,tt),cn.define(Yl);const jm={active:"active",inactive:"inactive"},qm={circular:"circular",square:"square"},Wm={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},dn={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"},hn={neutral:"neutral",brand:"brand",colorful:"colorful",...dn},Gm={_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},Xm=`${h.prefix}-avatar`,vt={fastOutSlowInMax:sn,fastOutSlowInMid:ft,fastOutSlowInMin:Dl,slowOutFastInMax:Ol,slowOutFastInMid:gt,slowOutFastInMin:Ll,fastEase:an,normalEase:Ro,nullEasing:Tr},Zl=p`${x("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${V};font-size:${_};border-radius:${de};color:${X};background-color:${Gt};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:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${P} ${C}}: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 ${ue} ${C}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Yt};font-weight:${E}}: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:${L}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}: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:${zt}}: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:${To}}: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:${Ae}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Gi}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Xi}}:host([data-color='brand']){color:${ki};background-color:${Ni}}:host([data-color='dark-red']){color:${Va};background-color:${Ha}}:host([data-color='cranberry']){color:${La};background-color:${Oa}}:host([data-color='red']){color:${ua};background-color:${ha}}:host([data-color='pumpkin']){color:${fl};background-color:${gl}}:host([data-color='peach']){color:${al};background-color:${sl}}:host([data-color='marigold']){color:${wa};background-color:${Wi}}:host([data-color='gold']){color:${Wa};background-color:${qa}}:host([data-color='brass']){color:${Ta};background-color:${Na}}:host([data-color='brown']){color:${_a};background-color:${za}}:host([data-color='forest']){color:${ja};background-color:${Ra}}:host([data-color='seafoam']){color:${kl};background-color:${yl}}:host([data-color='dark-green']){color:${Ma};background-color:${Da}}:host([data-color='light-teal']){color:${Za};background-color:${Ya}}:host([data-color='teal']){color:${Bl};background-color:${Sl}}:host([data-color='steel']){color:${wl};background-color:${xl}}:host([data-color='blue']){color:${Aa};background-color:${Ia}}:host([data-color='royal-blue']){color:${$l};background-color:${vl}}:host([data-color='cornflower']){color:${Fa};background-color:${Ea}}:host([data-color='navy']){color:${nl};background-color:${il}}:host([data-color='lavender']){color:${Ka};background-color:${Ua}}:host([data-color='purple']){color:${ml};background-color:${bl}}:host([data-color='grape']){color:${Xa};background-color:${Ga}}:host([data-color='lilac']){color:${Qa};background-color:${Ja}}:host([data-color='pink']){color:${cl};background-color:${ll}}:host([data-color='magenta']){color:${tl};background-color:${el}}:host([data-color='plum']){color:${pl};background-color:${ul}}:host([data-color='beige']){color:${Pa};background-color:${Ca}}:host([data-color='mink']){color:${rl};background-color:${ol}}:host([data-color='platinum']){color:${hl};background-color:${dl}}:host([data-color='anchor']){color:${Ba};background-color:${Sa}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Vo},${Mo};transition-delay:${vt.fastEase},${vt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Vo},${nn};transition-delay:${vt.fastEase},${vt.nullEasing}}:host([active])::before{box-shadow:${Al};border-style:solid;border-color:${Ni}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}: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 * ${Cr});border-width:${Cr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Fo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Br}}: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:${Nl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Vo},${Mo};transition-delay:${vt.fastOutSlowInMin},${vt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Vo},${nn};transition-delay:${vt.fastOutSlowInMin},${vt.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}}`,Um=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 Km(){return b`<slot class=default-slot ${K("slottedDefaults")} ${T("defaultSlot")}></slot><span class=monogram ${T("monogram")}>${o=>o.initials}</span> ${Um}<slot name=badge></slot>`}const Jl=Km(),Ql={name:Xm,registry:h.registry,styles:Zl,template:Jl},Ym=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Zm=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Jm=/^(?:\d[\d\s]*\d|\d[\d\s]*(?:ext|x)\s*\d+)$/i,Qm=/\s+/g,ev=/[\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 tv(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function ov(o){return o=o.replace(Ym,""),o=o.replace(Zm,""),o=o.replace(Qm," "),o=o.trim(),o}function ec(o,e,t){return!o||(o=ov(o),ev.test(o)||!t?.allowPhoneInitials&&Jm.test(o))?"":tv(o,e,t?.firstInitialOnly)}var rv=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,Uo=(o,e,t,r)=>{for(var i=r>1?void 0:r?iv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&rv(e,t,i),i};class Et extends k{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)}N.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||ec(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()})}}Uo([f],Et.prototype,"defaultSlot",2),Uo([f],Et.prototype,"monogram",2),Uo([f],Et.prototype,"slottedDefaults",2),Uo([a],Et.prototype,"name",2),Uo([a],Et.prototype,"initials",2);var nv=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,un=(o,e,t,r)=>{for(var i=r>1?void 0:r?sv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&nv(e,t,i),i};const Ko=class Mn extends Et{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||ec(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===hn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Mn.colors[av(this.name??"")%Mn.colors.length]:this.color??hn.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)}};Ko.colors=Object.values(dn),un([a({converter:oe})],Ko.prototype,"size",2),un([a],Ko.prototype,"color",2),un([a({attribute:"color-id"})],Ko.prototype,"colorId",2);let tc=Ko;const av=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e};tc.define(Ql);const lv={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},cv={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},dv={circular:"circular",rounded:"rounded",square:"square"},hv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},uv=`${h.prefix}-badge`,oc=p.partial`${x("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${$};font-weight:${V};font-size:${L};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${Q} + ${M});border-radius:${de};border-color:${j};background-color:${Pi};color:${Ue};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:${P};border-color:inherit;border-radius:inherit}`,rc=p.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:${Yt};line-height:${_o};padding-inline:calc(${M} + ${M})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${L};line-height:${q};padding-inline:calc(${Q} + ${M})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${L};line-height:${q};padding-inline:calc(${$e} + ${M})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,ic=p.partial`:host([color='danger']){background-color:${Oi};color:${Ue}}:host([color='important']){background-color:${A};color:${C}}:host([color='informative']){background-color:${ta};color:${X}}:host([color='severe']){background-color:${Ri};color:${Ue}}:host([color='subtle']){background-color:${C};color:${A}}:host([color='success']){background-color:${Hi};color:${Ue}}:host([color='warning']){background-color:${ya};color:${Qs}}`,nc=p.partial`:host([appearance='ghost']){color:${wo};background-color:initial}:host([appearance='ghost'][color='danger']){color:${Di}}:host([appearance='ghost'][color='important']){color:${A}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${qi}}:host([appearance='ghost'][color='subtle']){color:${lt}}:host([appearance='ghost'][color='success']){color:${ma}}:host([appearance='ghost'][color='warning']){color:${wr}}`,pv=p.partial`:host([appearance='outline']){border-color:currentColor;color:${wo};background-color:initial}:host([appearance='outline'][color='danger']){color:${Di}}:host([appearance='outline'][color='important']){color:${X};border-color:${De}}:host([appearance='outline'][color='informative']){color:${X};border-color:${Kt}}:host([appearance='outline'][color='severe']){color:${qi}}:host([appearance='outline'][color='subtle']){color:${ki}}:host([appearance='outline'][color='success']){color:${ba}}:host([appearance='outline'][color='warning']){color:${wr}}`,gv=p.partial`:host([appearance='tint']){background-color:${Ti};color:${Js};border-color:${_i}}:host([appearance='tint'][color='danger']){background-color:${Fi};color:${xr};border-color:${Li}}:host([appearance='tint'][color='important']){background-color:${X};color:${C};border-color:${j}}:host([appearance='tint'][color='informative']){background-color:${ea};color:${X};border-color:${Kt}}:host([appearance='tint'][color='severe']){background-color:${Vi};color:${va};border-color:${ji}}:host([appearance='tint'][color='subtle']){background-color:${C};color:${X};border-color:${Kt}}:host([appearance='tint'][color='success']){background-color:${Mi};color:${fa};border-color:${ga}}:host([appearance='tint'][color='warning']){background-color:${$a};color:${wr};border-color:${ka}}`,sc=p`:host([shape='square']){border-radius:${No}}:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ae}}${gv} ${pv} ${nc} ${ic} ${rc} ${oc} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function fv(o={}){return b`${Ve(o)}<slot>${ye(o.defaultContent)}</slot>${ot(o)}`}const ac=fv(),lc={name:uv,registry:h.registry,styles:sc,template:ac};class pn extends k{}bt(pn,tt),pn.define(lc);function gn(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ve(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot></span>${ot(o)}</template>`}const cc=gn(),dc={name:_m,registry:h.registry,styles:Qt,template:cc};function rt(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&N.enqueue(()=>{o.focus()})}var bv=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var i=r>1?void 0:r?mv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bv(e,t,i),i};class pe extends k{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!==Xo.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(),rt(this)}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 Xo.reset:{this.resetForm();break}case Xo.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!==Xo.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)}}}}pe.formAssociated=!0,ze([f],pe.prototype,"defaultSlottedContent",2),ze([a({mode:"boolean"})],pe.prototype,"disabled",2),ze([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),ze([a({attribute:"formaction"})],pe.prototype,"formAction",2),ze([a({attribute:"form"})],pe.prototype,"formAttribute",2),ze([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),ze([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),ze([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),ze([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),ze([a],pe.prototype,"name",2),ze([a],pe.prototype,"type",2),ze([a],pe.prototype,"value",2);class eo extends pe{}bt(eo,tt),eo.define(dc);const vv={circular:"circular",square:"square"},$v={medium:"medium",large:"large"},yv=`${h.prefix}-checkbox`,Fr=CSS.supports("anchor-name: --a"),kv="anchor"in HTMLElement.prototype,hc=CSS.supports("selector(:state(g))"),uc=new Map;function I(o){return uc.get(o)??uc.set(o,hc?`:state(${o})`:`[state--${o}]`).get(o)}function w(o,e,t){if(!(!e||!o)){if(!hc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const fn=new WeakMap;function xv(o,e){if(!o||!e)return!1;if(fn.has(o))return fn.get(o).has(e);const t=new Set(Object.values(o));return fn.set(o,t),t.has(e)}function pc(o,e="",t="",r,i=""){w(o,`${i}${e}`,!1),(!r||xv(r,t))&&w(o,`${i}${t}`,!0)}I("active");const wv=I("bad-input"),y=I("checked"),Sv=I("custom-error"),Bv=I("description"),ke=I("disabled"),v=":is([disabled], :disabled)";I("error");const Cv=I("flip-block"),Pv=I("focus-visible");I("has-message");const Ft=I("indeterminate"),to=I("multiple"),Iv=I("open"),Av=I("pattern-mismatch"),Nv=I("placeholder-shown"),H=I("pressed"),Tv=I("range-overflow"),zv=I("range-underflow"),_v=I("required"),bn=I("selected"),Ev=I("step-mismatch"),gc=I("submenu"),Fv=I("too-long"),Ov=I("too-short"),Lv=I("type-mismatch"),Dv=I("user-invalid"),Mv=I("valid"),Hv=I("value-missing"),fc=p`${x("inline-flex")} :host{--size:16px;background-color:${C};border-radius:${Ae};border:${P} solid ${De};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${dt}}:host(:active){border-color:${ht}}:host(${y}:hover){background-color:${Nt};border-color:${la}}:host(${y}:active){background-color:${Tt};border-color:${Ei}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${j};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${re}}.indeterminate-indicator,.checked-indicator{color:${lt};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(${Ft}){border-color:${He}}:host(${y}),:host(${Ft}) .indeterminate-indicator{background-color:${ct}}:host(${Ft}) .indeterminate-indicator{border-radius:${Ae};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:${de}}:host(${v}),:host(${v}${y}){background-color:${et};border-color:${me}}:host(${v}){cursor:unset}:host(${v}${Ft}) .indeterminate-indicator{background-color:${me}}:host(${v}${y}) .checked-indicator{color:${me}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${v}):hover),:host(${y}:not(${v}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Ft}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not(${v}):hover),:host(${Ft}:not(${v}):hover) .indeterminate-indicator{background-color:Highlight}:host(${v}){border-color:GrayText}:host(${v}${Ft}) .indeterminate-indicator{background-color:GrayText}:host(${v}),:host(${v}${y}) .checked-indicator{color:GrayText}}`,Vv=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>'),Rv=b.partial("<span class=indeterminate-indicator></span>");function jv(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>${ye(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ye(o.indeterminateIndicator)}</slot></template>`}const bc=jv({checkedIndicator:Vv,indeterminateIndicator:Rv}),mc={name:yv,registry:h.registry,styles:fc,template:bc};var qv=Object.defineProperty,Wv=Object.getOwnPropertyDescriptor,Ot=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&qv(e,t,i),i};class _e extends k{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(),w(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",w(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(),rt(this)}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}}_e.formAssociated=!0,Ot([f],_e.prototype,"disabled",2),Ot([a({attribute:"disabled",mode:"boolean"})],_e.prototype,"disabledAttribute",2),Ot([a({attribute:"form"})],_e.prototype,"formAttribute",2),Ot([a({attribute:"checked",mode:"boolean"})],_e.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],_e.prototype,"initialValue",2),Ot([a],_e.prototype,"name",2),Ot([a({mode:"boolean"})],_e.prototype,"required",2);var Gv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Uv=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Gv(e,t,i),i};class mn extends _e{indeterminateChanged(e,t){this.setAriaChecked(),w(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)}}Uv([f],mn.prototype,"indeterminate",2),mn.define(mc);const Kv=qo,Yv=Wo,Zv=Go,Jv=`${h.prefix}-compound-button`,vc=p`${Qt} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${_};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${L};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${It}}:host(:active) ::slotted([slot='description']){color:${At}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ue}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ko}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${xo}}:host( :is( :disabled,:disabled[appearance],[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:${$e}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Q}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ne}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${ve}}:host([size='large']) ::slotted([slot='description']){font-size:${_}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled],[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function Qv(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ve(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot><slot name=description></slot></span>${ot(o)}</template>`}const $c=Qv(),yc={name:Jv,registry:h.registry,styles:vc,template:$c};class kc extends eo{}kc.define(yc);const e$={filled:"filled",ghost:"ghost"},t$={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},o$={circular:"circular",rounded:"rounded"},r$={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},xc=`${h.prefix}-counter-badge`,wc=p`:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ae}}${rc} ${ic} ${nc} ${oc} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function i$(o={}){return b`${Ve(o)} <span>${e=>e.displayValue}</span> ${ot(o)}`}const Sc=i$(),Bc={name:xc,registry:h.registry,styles:wc,template:Sc};var n$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,Yo=(o,e,t,r)=>{for(var i=r>1?void 0:r?s$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&n$(e,t,i),i};class Lt extends k{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}`}}Yo([a({converter:oe})],Lt.prototype,"count",2),Yo([a({attribute:"overflow-count",converter:oe})],Lt.prototype,"overflowCount",2),Yo([a({attribute:"show-zero",mode:"boolean"})],Lt.prototype,"showZero",2),Yo([a({mode:"boolean"})],Lt.prototype,"dot",2),Yo([Se],Lt.prototype,"displayValue",1);var a$=Object.defineProperty,l$=Object.getOwnPropertyDescriptor,Or=(o,e,t,r)=>{for(var i=r>1?void 0:r?l$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&a$(e,t,i),i};class Dt extends Lt{}Or([a],Dt.prototype,"appearance",2),Or([a],Dt.prototype,"color",2),Or([a],Dt.prototype,"shape",2),Or([a],Dt.prototype,"size",2),bt(Dt,tt),Dt.define(Bc);const $t={modal:"modal",nonModal:"non-modal",alert:"alert"};function vn(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const c$=`${h.prefix}-dialog`,Cc=p`@layer base{:host{--dialog-backdrop:${yr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${C};border-radius:${Xi};border:none;box-shadow:${rn};color:${A};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;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:${Nr};transition-timing-function:${ft};opacity:0}::backdrop{transition-timing-function:${Tr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${gt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${P} solid ${j}}}}`,Pc=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()} ${T("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Ic={name:c$,registry:h.registry,styles:Cc,template:Pc};var d$=Object.defineProperty,h$=Object.getOwnPropertyDescriptor,Ke=(o,e,t,r)=>{for(var i=r>1?void 0:r?h$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&d$(e,t,i),i};class Ee extends k{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!==$t.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===$t.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.type=this.type??$t.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===$t.alert||this.type===$t.modal?this.dialog.showModal():this.type===$t.nonModal&&this.dialog.show(),this.querySelector("[autofocus]")?.focus?.(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==$t.alert&&e.target===this.dialog&&this.hide(),!0}}Ke([f],Ee.prototype,"dialog",2),Ke([a({attribute:"aria-describedby"})],Ee.prototype,"ariaDescribedby",2),Ke([a({attribute:"aria-labelledby"})],Ee.prototype,"ariaLabelledby",2),Ke([a({attribute:"aria-label"})],Ee.prototype,"ariaLabel",2),Ke([a],Ee.prototype,"type",2),Ke([Se],Ee.prototype,"dialogDescribedby",1),Ke([Se],Ee.prototype,"dialogLabel",1),Ke([Se],Ee.prototype,"dialogLabelledby",1),Ke([Se],Ee.prototype,"dialogModal",1),Ke([Se],Ee.prototype,"dialogRole",1),Ee.define(Ic);const u$=`${h.prefix}-dialog-body`,Ac=p`${x("grid")} :host{background:${C};box-sizing:border-box;gap:${ie};padding:${pt} ${Oo};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${C};color:${A};column-gap:8px;display:flex;font-family:${$};font-size:${zt};font-weight:${V};inset-block-start:0;justify-content:space-between;line-height:${Eo};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${pt} * -1);padding-block-end:${ie};padding-block-start:${pt}}.content{box-sizing:border-box;color:${A};font-family:${$};font-size:${_};font-weight:${E};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${C};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${pt} * -1);padding-block-end:${pt};padding-block-start:${Ir}}::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(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,Nc=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>`,Tc={name:u$,registry:h.registry,styles:Ac,template:Nc};class zc extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;vn(t)&&t.hide()}return!0}}zc.define(Tc);const xe={horizontal:"horizontal",vertical:"vertical"},oo={separator:"separator",presentation:"presentation"},$n=xe,p$={center:"center",start:"start",end:"end"},g$={strong:"strong",brand:"brand",subtle:"subtle"},f$=`${h.prefix}-divider`,_c=p`${x("flex")} :host{--_vertical-min-height:10px;contain:content}:host::after,:host::before{align-self:center;background:${Kt};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${P}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${$};font-size:${L};font-weight:${E};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%}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${P};min-height:var(--_vertical-min-height);height:100%}@supports not selector(:host(:has(*))){@scope{:scope:has(*){--_vertical-min-height:20px}}}:host(:has(*)){--_vertical-min-height:20px}: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:${Me}}:host([appearance='strong']) ::slotted(*){color:${A}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${zi}}:host([appearance='brand']) ::slotted(*){color:${wo}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${sa}}:host([appearance='subtle']) ::slotted(*){color:${X}}@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}}`;function b$(){return b`<slot></slot>`}const Ec=b$(),Fc={name:f$,registry:h.registry,styles:_c,template:Ec};var m$=Object.defineProperty,v$=Object.getOwnPropertyDescriptor,Oc=(o,e,t,r)=>{for(var i=r>1?void 0:r?v$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&m$(e,t,i),i};class Lr extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??oo.separator,this.role!==oo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??$n.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??oo.separator}`),t===oo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==oo.presentation?t??null:null,pc(this.elementInternals,e,t,$n)}}Oc([a],Lr.prototype,"role",2),Oc([a],Lr.prototype,"orientation",2);class Lc extends Lr{}Lc.define(Fc);const $$={start:"start",end:"end"},y$={small:"small",medium:"medium",large:"large",full:"full"},ro={nonModal:"non-modal",modal:"modal",inline:"inline"},k$=`${h.prefix}-drawer`,Dc=p`${x("block")} :host{--dialog-backdrop:${yr}}: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{background:${C};border-radius:0;border:${P} solid ${j};border-inline-end-color:${j};border-inline-start-color:var(--drawer-separator,${j});box-shadow:${rn};box-sizing:border-box;color:${A};font-family:${$};font-size:${_};font-weight:${E};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${Oo});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}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:${Nr};transition-timing-function:${ft}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${gt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${gt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Nr};transition-timing-function:${ft};background:var(--dialog-backdrop,${yr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Tr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function x$(){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} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${T("dialog")}><slot></slot></dialog>`}const Mc=x$(),Hc={name:k$,registry:h.registry,styles:Dc,template:Mc};var w$=Object.defineProperty,S$=Object.getOwnPropertyDescriptor,Ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?S$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&w$(e,t,i),i};class Fe extends k{constructor(){super(...arguments),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===ro.modal)return!0}get dialogRole(){return this.dialog&&this.type===ro.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.type=this.type??ro.modal})}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===ro.inline||this.type===ro.nonModal?this.dialog.show():this.dialog.showModal(),this.querySelector("[autofocus]")?.focus?.(),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()}}Ye([a],Fe.prototype,"type",2),Ye([a({attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledby",2),Ye([a({attribute:"aria-describedby"})],Fe.prototype,"ariaDescribedby",2),Ye([f],Fe.prototype,"role",2),Ye([f],Fe.prototype,"dialog",2),Ye([Se],Fe.prototype,"dialogDescribedby",1),Ye([Se],Fe.prototype,"dialogLabel",1),Ye([Se],Fe.prototype,"dialogLabelledby",1),Ye([Se],Fe.prototype,"dialogModal",1),Ye([Se],Fe.prototype,"dialogRole",1),Fe.define(Hc);const B$=`${h.prefix}-drawer-body`,yn=p.partial`font-family:${$};font-size:${_};line-height:${D};font-weight:${E};`,C$=p.partial`font-family:${$};font-size:${_};line-height:${D};font-weight:${V};`,P$=p.partial`font-family:${$};font-size:${_};line-height:${D};font-weight:${zo};`,Vc=p.partial`font-family:${$};font-size:${he};line-height:${ve};font-weight:${E};`,kn=p.partial`font-family:${$};font-size:${L};line-height:${q};font-weight:${E};`,I$=p.partial`font-family:${$};font-size:${L};line-height:${q};font-weight:${V};`,A$=p.partial`font-family:${$};font-size:${L};line-height:${q};font-weight:${zo};`,N$=p.partial`font-family:${$};font-size:${Yt};line-height:${_o};font-weight:${E};`,T$=p.partial`font-family:${$};font-size:${Yt};line-height:${_o};font-weight:${V};`,Rc=p.partial`font-family:${$};font-size:${zt};line-height:${Eo};font-weight:${V};`,z$=p.partial`font-family:${$};font-size:${he};line-height:${ve};font-weight:${V};`,_$=p.partial`font-family:${$};font-size:${he};line-height:${ve};font-weight:${zo};`,E$=p.partial`font-family:${$};font-size:${Ki};line-height:${en};font-weight:${V};`,F$=p.partial`font-family:${$};font-size:${Ui};line-height:${Qi};font-weight:${V};`,O$=p.partial`font-family:${$};font-size:${To};line-height:${Ji};font-weight:${V};`,L$=p.partial`font-family:${$};font-size:${Yi};line-height:${tn};font-weight:${V};`,D$=p.partial`font-family:${$};font-size:${Zi};line-height:${on};font-weight:${V};`,jc=p`${x("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;${Rc}}.footer{display:flex;justify-content:flex-start;gap:${Y}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function M$(){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 qc=M$(),Wc={name:B$,registry:h.registry,styles:jc,template:qc};class Gc extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;vn(t,"-drawer")&&t.hide()}return!0}}Gc.define(Wc);function H$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const V$={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},R$={small:"small",medium:"medium",large:"large"},Dr={combobox:"combobox",dropdown:"dropdown",select:"select"},j$=`${h.prefix}-dropdown`,Xc=p`${x("inline-flex")} :host{--_indicator-size:20px;--_placeholder-color:${vr};--_initial-display:attr(initial-display raw-string,attr(placeholder raw-string,none));box-sizing:border-box;color:${A};cursor:pointer}:host(${Nv}){color:var(--_placeholder-color)}.control{--control-border-color:${Me};appearance:none;background-color:${C};border-radius:${B};border:${P} solid ${j};box-shadow:inset 0 0 0 ${P} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${M};display:inline-grid;grid-template-columns:1fr var(--_indicator-size);justify-content:space-between;min-width:160px;overflow:hidden;padding:${Zt} ${Te};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${yn}}:host([size='small']) .control{column-gap:${M};padding:${_t} ${$e};${kn}}:host([size='large']) .control{column-gap:${Ne};padding:${ie} ${Y};${Vc}}:host(:not(:has([slot='control']))) slot[name='control']::before{content:var(--_initial-display)}@scope{:scope:not(:has([slot='control'])) slot[name='control']::before{content:var(--_initial-display)}}:host(:is(:not([value]),[value=''])) slot[name='control']::before{color:var(--_placeholder-color)}::slotted(:is(input,button)){all:unset}slot[name='control']::before,::slotted(:is(input,button)){grid-area:1/1}::slotted(button){cursor:pointer}::slotted(input){cursor:text;min-width:0;width:100%}::slotted(input)::placeholder{color:var(--_placeholder-color)}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${X};display:inline-flex;grid-area:1/2;justify-content:center;width:var(--_indicator-size)}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{background-color:${De};height:${P}}.control::after{background-color:${He};height:${ue};scale:0 1;transition:scale ${Ar} ${ft}}:host(:where(:focus-within)) .control{border-radius:${B};box-shadow:inset 0 0 0 1px ${Ao};outline:${ue} solid ${re}}:host(:where(${Iv},:focus-within)) .control::after{scale:1 1;transition-duration:${Ho};transition-timing-function:${gt}}:host([appearance='transparent']) .control{--control-border-color:${Io};background-color:${ce};border-radius:${No}}.control:hover{--control-border-color:${ut}}.control:hover::before{background-color:${dt}}.control:hover::after{background-color:${Nt}}.control:active{--control-border-color:${Ut}}.control:active::before{background-color:${ht}}.control:active::after{background-color:${Tt}}:host([appearance='transparent']) .control:is(:hover,:active){--control-border-color:${Io}}:host([appearance='transparent']) .control:hover::after{background-color:${He}}:host([appearance='filled-darker']) .control{background-color:${Wt}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${j}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active){--control-border-color:${j}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control::before{background-color:initial}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active)::after{background-color:${He}}:host(${v}),:host(${v}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${v}) .control::before,:host(${v}) .control::after{content:none}:host(${v}) .control:is(*,:active,:hover),:host(${v}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${me};background-color:${et};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(${D} + (${Zt} * 2) + ${P})}:host([size='small']){--margin-offset:calc(${q} + (${_t} * 2) + ${P})}:host([size='large']){--margin-offset:calc(${ve} + (${ie} * 2) + ${P})}}@media (forced-colors:active){:host(${v}) .control{border-color:GrayText}:host(${v}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,q$=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${T("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>`,Uc=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 size=1 placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} value=${o=>o.initialValue} slot=control ${T("control")}>`,Kc=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 ${T("control")}>${o=>o.displayValue}</button>`;function W$(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 ${T("controlSlot")}></slot><slot name=indicator ${T("indicatorSlot")}>${ye(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const Yc=W$({indicator:q$}),Zc={name:j$,registry:h.registry,styles:Xc,template:Yc};function xn(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const G$=`${h.prefix}-listbox`;function yt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const X$=`${h.prefix}-option`,it={ltr:"ltr",rtl:"rtl"},wn=o=>o.closest("[dir]")?.dir==="rtl"?it.rtl:it.ltr;function Jc(o){return o.closest("[lang]")?.lang??"en"}let U$=0;function Ze(o="id-"){const e=`${o}${U$++}`;return document.getElementById(e)?Ze(o):e}var K$=Object.defineProperty,Y$=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?Y$(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&K$(e,t,i),i};const W=class ho extends k{constructor(){super(),this.activeIndex=0,this.id=Ze("dropdown-"),this.required=!1,this.type=Dr.dropdown,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||wn(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((i,n)=>{i.toggleAttribute("active",n===r)}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ze("input-"))}disabledChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return w(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Jc(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return w(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"),N.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,n)=>{i.selected=this.multiple||n===0}),this.setValidity()}),Fr){const i=this.style.getPropertyValue("anchor-name")||Ze("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",w(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){w(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Fr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>yt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Dr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>yt(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(yt(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(Jc(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===Dr.combobox){Uc.render(this,this);return}Kc.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):[],i=!1;if(!r.length&&t&&(r=this.filterOptions(e),i=!0),r.length){const n=this.enabledOptions[this.activeIndex],s=r.indexOf(n),l=i?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?n:r[0];this.activeIndex=this.enabledOptions.indexOf(l)}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 i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!yt(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 i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;jo(this,()=>{const r=t.assignedElements().find(i=>xn(i));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(),N.enqueue(()=>{this.insertControl()}),rt(this)}disconnectedCallback(){ho.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(ho.AnchorPositionFallbackObserver||(ho.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:n})=>{if(xn(n)){if(r.bottom>window.innerHeight){w(n.elementInternals,"flip-block",!0);return}r.top<0&&w(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,ho.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}ho.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};W.elementIdentity="dropdown",W.formAssociated=!0,ee([Se],W.prototype,"activeDescendant",1),ee([f],W.prototype,"activeIndex",2),ee([a({attribute:"aria-labelledby",mode:"fromView"})],W.prototype,"ariaLabelledBy",2),ee([f],W.prototype,"control",2),ee([a({mode:"boolean"})],W.prototype,"disabled",2),ee([Se],W.prototype,"displayValue",1),ee([a({attribute:"id"})],W.prototype,"id",2),ee([f],W.prototype,"indicator",2),ee([f],W.prototype,"indicatorSlot",2),ee([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),ee([f],W.prototype,"listbox",2),ee([a({mode:"boolean"})],W.prototype,"multiple",2),ee([a],W.prototype,"name",2),ee([f],W.prototype,"open",2),ee([a],W.prototype,"placeholder",2),ee([a({mode:"boolean"})],W.prototype,"required",2),ee([a],W.prototype,"type",2);let Qc=W;class ed extends Qc{}ed.define(Zc);const Z$={above:"above",after:"after",before:"before"},Ce={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"},J$=`${h.prefix}-field`,td=p`${x("inline-grid")} :host{color:${A};align-items:center;gap:0 ${Y};justify-items:start;grid-template-areas:'label' 'input' 'message';row-gap:${Lo}}:has([slot='message']){color:${A};row-gap:${ie}}: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:${Y}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${_l}}:host(${_v}) ::slotted([slot='label'])::after{content:'*'/'';color:${xr};margin-inline-start:${Q}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${$};font-size:${L};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${Lo}}:host(${Pv}:focus-within){border-radius:${B};outline:${ue} solid ${re}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${_};font-weight:${E};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${L};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${ve}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${V}}:host(${ke}){cursor:default}::slotted([flag]){display:none}:host(${wv}) ::slotted([flag='${Ce.badInput}']),:host(${Sv}) ::slotted([flag='${Ce.customError}']),:host(${Av}) ::slotted([flag='${Ce.patternMismatch}']),:host(${Tv}) ::slotted([flag='${Ce.rangeOverflow}']),:host(${zv}) ::slotted([flag='${Ce.rangeUnderflow}']),:host(${Ev}) ::slotted([flag='${Ce.stepMismatch}']),:host(${Fv}) ::slotted([flag='${Ce.tooLong}']),:host(${Ov}) ::slotted([flag='${Ce.tooShort}']),:host(${Lv}) ::slotted([flag='${Ce.typeMismatch}']),:host(${Hv}) ::slotted([flag='${Ce.valueMissing}']),:host(${Mv}) ::slotted([flag='${Ce.valid}']){display:block}`,od=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:mo("[flag]")})}></slot></template>`,rd={name:J$,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:td,template:od};var Q$=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,Mr=(o,e,t,r)=>{for(var i=r>1?void 0:r?ey(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Q$(e,t,i),i};class io extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}get slottedInputObserver(){return this._slottedInputObserver??(this._slottedInputObserver=new MutationObserver(()=>{this.setStates()})),this._slottedInputObserver}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){w(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(t,{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})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&w(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return w(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}async setLabelProperties(){const e=await this.getLabelableInput();e&&(e.id||(e.id=Ze("input")),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor||(t.htmlFor=e.id),t.id||(t.id=`${e.id}--label`),e.setAttribute("aria-labelledby",t.id))}))}getLabelableInput(){return new Promise(e=>{if(!this.input)return e(null);if(this.input.constructor.elementIdentity!=="dropdown")return e(this.input);if(this.input.control)return e(this.input.control);new MutationObserver((t,r)=>{this.input.control&&(e(this.input.control),r.disconnect())}).observe(this.input,{childList:!0})})}setStates(){this.elementInternals&&this.input&&(w(this.elementInternals,"disabled",!!this.input.disabled),w(this.elementInternals,"readonly",!!this.input.readOnly),w(this.elementInternals,"required",!!this.input.required),w(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Ce))w(this.elementInternals,t,this.input.validity[e])}}Mr([f],io.prototype,"labelSlot",2),Mr([f],io.prototype,"messageSlot",2),Mr([f],io.prototype,"slottedInputs",2),Mr([f],io.prototype,"input",2);class id extends io{}id.define(rd);const ty={none:"none",center:"center",contain:"contain",cover:"cover"},oy={circular:"circular",rounded:"rounded",square:"square"},ry=`${h.prefix}-image`,nd=p`: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:${P} solid ${Kt}}: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:${Fo}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${B}}`,sd=b`<slot></slot>`,ad={name:ry,registry:h.registry,styles:nd,template:sd};class ld extends k{}ld.define(ad);const iy={small:"small",medium:"medium",large:"large"},ny={regular:"regular",semibold:"semibold"},sy=`${h.prefix}-label`,cd=p`${x("inline-flex")} :host{color:${A};cursor:pointer;font-family:${$};font-size:${_};font-weight:${E};line-height:${D};user-select:none}.asterisk{color:${xr};margin-inline-start:${Q}}:host([size='small']){font-size:${L};line-height:${q}}:host([size='large']){font-size:${he};line-height:${ve}}:host(:is([size='large'],[weight='semibold'])){font-weight:${V}}:host([disabled]),:host([disabled]) .asterisk{color:${z}}`;function ay(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const dd=ay(),hd={name:sy,registry:h.registry,styles:cd,template:dd};var ly=Object.defineProperty,cy=Object.getOwnPropertyDescriptor,dy=(o,e,t,r)=>{for(var i=r>1?void 0:r?cy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ly(e,t,i),i};class Sn extends k{constructor(){super(...arguments),this.required=!1}}dy([a({mode:"boolean"})],Sn.prototype,"required",2),Sn.define(hd);const hy={subtle:"subtle"},uy=Xl,py=`${h.prefix}-link`,ud=p`${x("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Rs};cursor:pointer;font-family:${$};font-size:${_};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${P};text-overflow:inherit;user-select:text}:host(:hover){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${js}}:host(:active){color:${qs}}:host([appearance='subtle']:hover){color:${Gs}}:host([appearance='subtle']:active){color:${Xs}}}:host([appearance='subtle']){color:${Ws}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:focus-visible),:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)):focus-visible,:host([inline]:focus-visible){outline-style:none;text-decoration-line:underline;text-decoration-style:double;text-decoration-color:${re}}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function gy(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const pd=gy(),gd={name:py,registry:h.registry,styles:ud,template:pd};class fd extends Re{}fd.define(gd);const bd=p`${x("inline-flex")} :host{background-color:${C};border-radius:${B};border:${P} solid ${j};box-shadow:${Br};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${Q};row-gap:${M};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${Cv}){margin-block-start:revert;translate:0 -100%}}`;function md(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${T("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const vd=md(),$d={name:G$,registry:h.registry,styles:bd,template:vd};var fy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,Zo=(o,e,t,r)=>{for(var i=r>1?void 0:r?by(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&fy(e,t,i),i};class Mt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",w(this.elementInternals,"multiple",t),N.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+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)??Array.from(this.querySelectorAll("*")).filter(e=>yt(e)&&!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return yt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),jo(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,i)=>{const n=i===e;r.selected=n,n&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){jo(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>yt(r));this.options=t}})}}Zo([f],Mt.prototype,"defaultSlot",2),Zo([f],Mt.prototype,"multiple",2),Zo([f],Mt.prototype,"options",2),Zo([f],Mt.prototype,"selectedIndex",2),Zo([f],Mt.prototype,"dropdown",2),Mt.define($d);const my=qo,vy=Wo,$y=Go,yy=`${h.prefix}-menu-button`,ky=Qt,yd=gn({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>')}),kd={name:yy,registry:h.registry,styles:ky,template:yd};class xd extends eo{}xd.define(kd);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},xy={[te.menuitem]:"menuitem",[te.menuitemcheckbox]:"menuitemcheckbox",[te.menuitemradio]:"menuitemradio"};function wy(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Sy=`${h.prefix}-menu-item`,wd=p`${x("flex")} :host{align-items:center;background:${C};border-radius:${B};box-sizing:border-box;color:${Ie};cursor:pointer;font:${E} ${_}/${D} ${$};gap:4px;min-block-size:32px;overflow:visible;padding-inline:10px}@supports (grid-template-columns:subgrid){:host{display:grid;gap:0;grid-template-columns:subgrid;padding-inline:unset}}:host(:hover){background:${So};color:${It}}:host(:active){background-color:${xi};color:${At}}:host(:active) ::slotted([slot='start']){color:${Ks}}:host(${ke}){background-color:${et};color:${z}}:host(${ke}) ::slotted([slot='start']),:host(${ke}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${B};outline:2px solid ${re}}:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) .indicator,:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) ::slotted([slot='indicator']),:host(:not(${gc})) .submenu-glyph,:host(:not(${gc})) ::slotted([slot='submenu-glyph']){display:none}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']){visibility:hidden}.indicator,::slotted([slot='indicator']),::slotted([slot='start']),::slotted([slot='end']),.submenu-glyph,::slotted([slot='submenu-glyph']){margin-inline:${M}}::slotted([slot='end']){color:${X};font:${E} ${L}/${q} ${$};white-space:nowrap}.indicator,::slotted([slot='indicator']){grid-column:2/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:3/span 1}.content{flex-grow:1;grid-column:4/span 1;padding:0 2px;white-space:nowrap}::slotted([slot='end']){grid-column:5/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:6/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-block-size:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${ke}),:host(${ke}) ::slotted([slot='start']),:host(${ke}) ::slotted([slot='end']){color:GrayText}}`,By=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>'),Cy=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 Py(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>${ye(o.indicator)}</slot>${Ve(o)}<div part=content class=content><slot></slot></div>${ot(o)}<slot name=submenu-glyph>${ye(o.submenuGlyph)}</slot><slot name=submenu ${K({property:"slottedSubmenu"})}></slot></template>`}const Sd=Py({indicator:By,submenuGlyph:Cy}),Bd={name:Sy,registry:h.registry,styles:wd,template:Sd};var Iy=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ay(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Iy(e,t,i),i};class Je extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.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 te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.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,w(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const r=this.role!==te.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,w(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",w(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,w(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null,rt(this)}}no([a({mode:"boolean"})],Je.prototype,"disabled",2),no([a],Je.prototype,"role",2),no([a({mode:"boolean"})],Je.prototype,"checked",2),no([a({mode:"boolean"})],Je.prototype,"hidden",2),no([f],Je.prototype,"slottedSubmenu",2),no([f],Je.prototype,"submenu",2),bt(Je,tt),Je.define(Bd);const Ny=`${h.prefix}-menu-list`,Cd=p`${x("grid")} :host{contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${C};border:1px solid ${j};border-radius:${B};box-shadow:${Br};grid-template-columns:10px max-content max-content minmax(0,1fr) max-content max-content 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}`;function Ty(){return b`<template focusgroup=menu><slot ${K("items")}></slot></template>`}const Pd=Ty(),Id={name:Ny,registry:h.registry,styles:Cd,template:Pd};var Jo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Bn={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Cn(o,e){return o.contains(e)}function zy(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function _y(o,e,t){const r="forward",i="backward",n="block",s="inline";if(Ey(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:l,direction:u}=window.getComputedStyle(e),d=!l.startsWith("horizontal-"),c=u==="rtl",g=d?n:s,S=d?s:n,O=d?l.endsWith("-rl")!==c:c,G=d&&c,ae={ArrowUp:{axis:S,dir:G?r:i},ArrowDown:{axis:S,dir:G?i:r},ArrowLeft:{axis:g,dir:O?r:i},ArrowRight:{axis:g,dir:O?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!ae||t&&ae.axis&&ae.axis!==t?null:ae.dir}function Ey(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 Fy=globalThis.__FOCUSGROUP_POLYFILL__,Oy=Fy.o;function Pn(){for(const o of Oy)o.takeRecords()}var Hr=class{#t;#e;#s=Bn.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#i=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(zy()||!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.#n(),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(Jo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Bn.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Bn.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Jo.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.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Jo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Jo.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(_y(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.#i&&(!o.relatedTarget||!Cn(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#n(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#i&&this.#n();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||!Cn(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Cn(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:i}of this.#e.items())r.tabIndex=i?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(Jo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,Pn())}#n(){this.#i&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#i=!1,this.#l=null,this.#e.flush?.(),Pn())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Pn()}};class Vr{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 Ly=Object.defineProperty,Dy=Object.getOwnPropertyDescriptor,My=(o,e,t,r)=>{for(var i=r>1?void 0:r?Dy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ly(e,t,i),i};const In=class ru extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&Vn(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 n=r-1;n>=0;--n){const s=this.menuChildren[n],l=s.role;if(l===te.menuitemradio&&(s.checked=!1),l==="separator")break}const i=this.menuChildren.length-1;for(let n=r+1;n<=i;++n){const s=this.menuChildren[n],l=s.role;if(l===te.menuitemradio&&(s.checked=!1),l==="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"),N.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(){N.enqueue(()=>{this.menuItems?.find(e=>!e.disabled)?.focus()})}setItems(){const e=Array.from(this.children);e.forEach(t=>{m.getNotifier(t).subscribe(this,"hidden")}),this.menuChildren=e.filter(t=>!t.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement)}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return wy(e)||Vn(e)&&!!e.role&&e.role in ru.focusableElementRoles}};In.focusableElementRoles=te,My([f],In.prototype,"items",2);let Ad=In;class Nd extends Ad{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Vr(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Hr(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}Nd.define(Id);const Hy=`${h.prefix}-menu`,Td=p`${x("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${P} solid ${Me};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:${P} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Vy(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${T("primaryAction")}></slot><slot name=trigger ${K({property:"slottedTriggers",filter:mo()})}></slot><slot ${K({property:"slottedMenuList",filter:mo()})}></slot></template>`}const zd=Vy(),_d={name:Hy,registry:h.registry,styles:Td,template:zd};var Ry=Object.defineProperty,jy=Object.getOwnPropertyDescriptor,Ht=(o,e,t,r)=>{for(var i=r>1?void 0:r?jy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ry(e,t,i),i};class nt extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Je&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.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(){N.enqueue(()=>{this._menuList.focus()})}focusTrigger(){N.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}}}Ht([a({attribute:"open-on-hover",mode:"boolean"})],nt.prototype,"openOnHover",2),Ht([a({attribute:"open-on-context",mode:"boolean"})],nt.prototype,"openOnContext",2),Ht([a({attribute:"close-on-scroll",mode:"boolean"})],nt.prototype,"closeOnScroll",2),Ht([a({attribute:"persist-on-item-click",mode:"boolean"})],nt.prototype,"persistOnItemClick",2),Ht([f],nt.prototype,"slottedMenuList",2),Ht([f],nt.prototype,"slottedTriggers",2),Ht([f],nt.prototype,"primaryAction",2),nt.define(_d);const qy={multiline:"multiline",singleline:"singleline"},Wy={rounded:"rounded",square:"square"},Gy={success:"success",warning:"warning",error:"error",info:"info"},Xy=`${h.prefix}-message-bar`,Ed=p`:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${L};line-height:${q};width:100%;background:${Wt};color:${X};border:1px solid ${Me};padding-inline:${Y};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:${Mi};border-color:${pa}}:host([intent='warning']){background-color:${Vi};border-color:${ji}}:host([intent='error']){background-color:${Fi};border-color:${Li}}: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:${Do};padding-inline:${Y}}.content{grid-area:body;padding-block:${Do};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${X};margin-inline-end:${Ne}}: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:${Ne};gap:${Ne}}:host([layout='multiline']) .actions{margin-block-start:${Do};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%}::slotted(*){font-size:inherit}`;function Uy(){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 Fd=Uy(),Od={name:Xy,registry:h.registry,styles:Ed,template:Fd};class Ld extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ld.define(Od);const Dd=p`${x("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${yn} align-items:center;background-color:${C};border-radius:${B};box-sizing:border-box;color:${Ie};column-gap:${Q};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${$e};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${So};color:${It}}:host(:active){background-color:${$r};color:${At}}:host(${v}){background-color:${C};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(${bn}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${to}) .checkmark-16-filled,:host(:not(${to})) .checkmark-12-regular{display:none}:host(${to}) .checkmark-12-regular{background-color:${C};border-radius:${Ae};border:${P} solid ${De};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${to}${bn}) .checkmark-12-regular{background-color:${ct};border-color:${He};fill:${lt}}:host(${v}${to}) .checkmark-12-regular{border-color:${me}}:host(${v}${to}${bn}) .checkmark-12-regular{background-color:${et}}:host([active]){border:${ue} solid ${re}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${$e}}}:host(${Bv}){column-gap:${$e};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${kn}}@media (forced-colors:active){:host(${v}){color:GrayText}}`,Ky=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 Yy(o={}){return b`<slot name=checked-indicator>${ye(o.checkedIndicator)}</slot>${Ve(o)}<div class=content part=content><slot ${K({property:"freeformOutputs",filter:mo("output")})}></slot></div><div class=description part=description><slot name=description ${K("descriptionSlot")}></slot></div>`}const Md=Yy({checkedIndicator:Ky}),Hd={name:X$,registry:h.registry,styles:Dd,template:Md};var Zy=Object.defineProperty,Jy=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jy(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zy(e,t,i),i};class ne extends k{constructor(){super(),this.id=Ze("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){w(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",w(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){w(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,N.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",w(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,Pe([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),Pe([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),Pe([f],ne.prototype,"descriptionSlot",2),Pe([f],ne.prototype,"disabled",2),Pe([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),Pe([a({attribute:"form"})],ne.prototype,"formAttribute",2),Pe([a({mode:"boolean"})],ne.prototype,"freeform",2),Pe([a({attribute:"id"})],ne.prototype,"id",2),Pe([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),Pe([f],ne.prototype,"multiple",2),Pe([a],ne.prototype,"name",2),Pe([f],ne.prototype,"start",2),Pe([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2),ne.define(Hd);const Qy={medium:"medium",large:"large"},ek={rounded:"rounded",square:"square"},tk={success:"success",warning:"warning",error:"error"},ok=`${h.prefix}-progress-bar`,Vd=p`${x("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${Gt};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:${No}}.indicator{background-color:${ct};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,${Gt} 0%,${ce} 50%,${Gt} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Oi}}:host([validation-state='warning']) .indicator{background-color:${Ri}}:host([validation-state='success']) .indicator{background-color:${Hi}}@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 rk(){return b`<div class=indicator part=indicator ${T("indicator")}></div>`}const Rd=rk(),jd={name:ok,registry:h.registry,styles:Vd,template:Rd};var ik=Object.defineProperty,nk=Object.getOwnPropertyDescriptor,Rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?nk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ik(e,t,i),i};class so extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}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>))")||N.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,i=t-e,n=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Rr([f],so.prototype,"indicator",2),Rr([a({converter:oe})],so.prototype,"value",2),Rr([a({converter:oe})],so.prototype,"min",2),Rr([a({converter:oe})],so.prototype,"max",2);class qd extends so{}qd.define(jd);const An=xe,sk=`${h.prefix}-radio-group`,Wd=p`${x("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ir}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${A}}::slotted(${ke}){color:${z}}::slotted(${y}){color:${A}}:host([slot='input']){margin:${ie} ${Ne}}`;function ak(){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 Gd=ak(),Xd={name:sk,registry:h.registry,styles:Wd,template:Gd};function lk(o,e="-radio"){return Hn(e)(o)}const ck=`${h.prefix}-radio`;var dk=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,kt=(o,e,t,r)=>{for(var i=r>1?void 0:r?hk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&dk(e,t,i),i};class je extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??An.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??An.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 i=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,l)=>{s.ariaPosInSet=`${l+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=l===i,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"&&i>=0)&&(this.checkedIndex=i);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){N.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(r=>lk(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((i,n)=>{const s=n===e;i.checked=s,s&&(r=n,t&&i.$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(l=>{l.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((l,u)=>{u===0?l.elementInternals.setValidity(n,s,l):l.elementInternals.setValidity({})})}}}je.formAssociated=!0,kt([f],je.prototype,"checkedIndex",2),kt([a({attribute:"disabled",mode:"boolean"})],je.prototype,"disabled",2),kt([a({attribute:"value",mode:"fromView"})],je.prototype,"initialValue",2),kt([a],je.prototype,"name",2),kt([a],je.prototype,"orientation",2),kt([f],je.prototype,"radios",2),kt([a({mode:"boolean"})],je.prototype,"required",2),kt([f],je.prototype,"slottedRadios",2);class Ud extends je{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Vr(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Hr(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}Ud.define(Xd);const Kd=p`${x("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${C};border:${P} solid ${De};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${lt};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:${ue} solid ${j};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${re}}:host(:hover){border-color:${dt}}:host(${y}){border-color:${He}}:host(${y}) .checked-indicator{background-color:${ct}}:host(${y}:hover) .checked-indicator{background-color:${Nt}}:host(:active){border-color:${ht}}:host(${y}:active) .checked-indicator{background-color:${Tt}}:host(:focus-visible){outline:none}:host(${ke}){background-color:${et};border-color:${me}}:host(${y}${ke}) .checked-indicator{background-color:${me}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${ke}):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(${ke}):hover) .checked-indicator{background-color:Highlight}:host(${ke}){border-color:GrayText;color:GrayText}:host(${ke}${y}) .checked-indicator{background-color:GrayText}}`,uk=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function pk(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>${ye(o.checkedIndicator)}</slot></template>`}const Yd=pk({checkedIndicator:uk}),Zd={name:ck,registry:h.registry,styles:Kd,template:Yd};class Jd extends _e{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)}}Jd.define(Zd);const gk={neutral:"neutral",brand:"brand",marigold:"marigold"},fk={small:"small",medium:"medium",large:"large"},bk=`${h.prefix}-rating-display`;var mk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,Qo=(o,e,t,r)=>{for(var i=r>1?void 0:r?vk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&mk(e,t,i),i};const $k=CSS.supports("width: attr(value type(<number>))"),ao={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function jr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Vt extends k{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(ao.maskImageFilled),this.display.style.removeProperty(ao.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
2
2
  <svg
3
3
  viewBox="${r}"
4
4
  xmlns="http://www.w3.org/2000/svg"
@@ -9,13 +9,13 @@ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
9
9
  fill="none"
10
10
  stroke="black"
11
11
  stroke-width="2"
12
- >${t}</svg>`;this.display.style.setProperty(ao.maskImageFilled,`url(${Rr(i)})`),this.display.style.setProperty(ao.maskImageOutlined,`url(${Rr(n)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||$k)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(ao[e]):this.display.style.setProperty(ao[e],`${t}`)})}}Qo([f],Vt.prototype,"iconSlot",2),Qo([a({converter:oe})],Vt.prototype,"count",2),Qo([a({attribute:"icon-view-box"})],Vt.prototype,"iconViewBox",2),Qo([a({converter:oe})],Vt.prototype,"max",2),Qo([a({converter:oe})],Vt.prototype,"value",2);const Qd='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',yk=`
12
+ >${t}</svg>`;this.display.style.setProperty(ao.maskImageFilled,`url(${jr(i)})`),this.display.style.setProperty(ao.maskImageOutlined,`url(${jr(n)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||$k)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(ao[e]):this.display.style.setProperty(ao[e],`${t}`)})}}Qo([f],Vt.prototype,"iconSlot",2),Qo([a({converter:oe})],Vt.prototype,"count",2),Qo([a({attribute:"icon-view-box"})],Vt.prototype,"iconViewBox",2),Qo([a({converter:oe})],Vt.prototype,"max",2),Qo([a({converter:oe})],Vt.prototype,"value",2);const Qd='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',yk=`
13
13
  <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${Qd}</svg>
14
14
  `,kk=`
15
15
  <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
16
16
  fill="none" stroke="black" stroke-width="2"
17
17
  >${Qd}</svg>
18
- `;function xk(){return b`<div ${T("display")} class=display aria-hidden=true></div><slot name=icon ${T("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const eh=xk(),th=p`${x("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${xa};--_icon-color-empty:${qi};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Rr(yk)});--_mask-image-outlined:url(${Rr(kk)});--_mask-position-x:left;align-items:center;color:${A};font-family:${$};font-size:${L};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${_};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${A};--_icon-color-empty:${Gt}}:host([color='brand']){--_icon-color-value:${wo};--_icon-color-empty:${Ni}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${M});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${M}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Q};font-weight:${V}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${M}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${$e}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Q}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${M}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${$e}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,oh={name:bk,registry:h.registry,styles:th,template:eh};class rh extends Vt{}rh.define(oh);const wk={small:"small",medium:"medium"},ih=xe,nh={singleValue:"single-value"},Sk=`${h.prefix}-slider`,sh=p`${x("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${ct};--track-color:${De};--slider-direction:90deg;--border-radius:${B};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Nt}}:host(:active){--rail-color:${Tt}}:host(${v}){--rail-color:${z};--track-color:${et}}:host(:not(${v})){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ae}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${re};outline:1px solid ${Ao}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${Me};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function Bk(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${T("track")} part=track-container class=track style=${e=>e.position}></div><div ${T("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ye(o.thumb)}</slot></div></template>`}const ah=Bk({thumb:'<div class="thumb"></div>'}),lh={name:Sk,registry:h.registry,styles:sh,template:ah};function ch(o,e,t){return Math.min(Math.max(t,o),e)}const An={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function dh(o,e,t,r){let i=ch(0,1,(o-e)/(t-e));return r===it.rtl&&(i=1-i),i}var Ck=Object.defineProperty,Pk=Object.getOwnPropertyDescriptor,se=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ck(e,t,i),i};class U extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=it.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=nh.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===xe.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===xe.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ih.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=ch(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??xe.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=xn(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),rt(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==it.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==it.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==xe.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==xe.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=dh(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===xe.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=dh(e,this.orientation===xe.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===xe.vertical?this.trackHeight:this.trackWidth,this.orientation===xe.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){N.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}U.formAssociated=!0,se([a({attribute:"value",mode:"fromView"})],U.prototype,"initialValue",2),se([f],U.prototype,"direction",2),se([f],U.prototype,"isDragging",2),se([f],U.prototype,"position",2),se([f],U.prototype,"trackWidth",2),se([f],U.prototype,"trackMinWidth",2),se([f],U.prototype,"trackHeight",2),se([f],U.prototype,"trackLeft",2),se([f],U.prototype,"trackMinHeight",2),se([f],U.prototype,"valueTextFormatter",2),se([a({mode:"boolean"})],U.prototype,"disabled",2),se([a({converter:An})],U.prototype,"min",2),se([a({converter:An})],U.prototype,"max",2),se([a({converter:An})],U.prototype,"step",2),se([a],U.prototype,"orientation",2),se([a],U.prototype,"mode",2),U.define(lh);const Ik={primary:"primary",inverted:"inverted"},Ak={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},Nk=`${h.prefix}-spinner`,hh=p`${x("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Be};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${Be};--size:36px}:host([size='extra-large']){--indicatorSize:${Be};--size:40px}:host([size='huge']){--indicatorSize:${Br};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Ro}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${zi};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${Ti};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${aa}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,uh=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,ph={name:Nk,registry:h.registry,styles:hh,template:uh};class gh extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class fh extends gh{}fh.define(ph);const Tk={above:"above",after:"after",before:"before"},zk=`${h.prefix}-switch`,bh=p`${x("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${M};width:40px;height:20px;background-color:${ce};border:1px solid ${De};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${dt}}:host(:active){border-color:${ht}}:host(${v}),:host([readonly]){border:1px solid ${me};background-color:none;pointer:default}:host(${y}){background:${ct};border-color:${ct}}:host(${y}:hover){background:${Nt};border-color:${Nt}}:host(${y}:active){background:${Tt};border-color:${Tt}}:host(${y}${v}){background:${et};border-color:${me}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Ho};transition-timing-function:${Ro};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${lt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Ys}}:host(${y}:active) .checked-indicator{background:${Zs}}:host(:hover) .checked-indicator{background-color:${Ms}}:host(:active) .checked-indicator{background-color:${Hs}}:host(${v}) .checked-indicator,:host([readonly]) .checked-indicator{background:${z}}:host(${y}${v}) .checked-indicator{background:${z}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${j};outline:${ue} solid ${j};outline-offset:1px;box-shadow:${Fo},0 0 0 2px ${re}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:CanvasText}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:HighlightText}:host(${v}) .checked-indicator,:host(${y}${v}) .checked-indicator{background-color:GrayText}}`;function _k(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=switch>${ye(o.switch)}</slot></template>`}const mh=_k({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),vh={name:zk,registry:h.registry,styles:bh,template:mh};class $h extends _e{constructor(){super(),this.elementInternals.role="switch"}}$h.define(vh);function Nn(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ek=`${h.prefix}-tab`,yh=p`${x("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${$};font-size:${_};color:${Ie};fill:currentcolor;grid-row:1;padding:${Y} ${Te};border-radius:${B};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px;grid-column:3}:host([aria-selected='true']){color:${A};font-weight:${V}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${V}}:host([aria-selected='true'])::after{background-color:${He};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${ut};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${ut}}}:host([aria-selected='true'][disabled])::after{background-color:${z}}::slotted([slot='start']){grid-column:2}::slotted([slot='end']){grid-column:-1}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${z};color:${z};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ae};box-shadow:0 0 0 3px ${re};outline:1px solid ${Ao}}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Fk(o={}){return b`<template slot=tab role=tab>${Ve(o)} <span class=tab-content><slot></slot></span>${ot(o)}</template>`}const kh=Fk({}),xh={name:Ek,registry:h.registry,styles:yh,template:kh};var Ok=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Dk=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ok(e,t,i),i};class jr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),rt(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Dk([a({mode:"boolean"})],jr.prototype,"disabled",2),bt(jr,tt),jr.define(xh);const Mk={subtle:"subtle",transparent:"transparent"},Hk={small:"small",medium:"medium",large:"large"},er=xe,Vk=`${h.prefix}-tablist`,wh=p`${x("flex")} :host{--tabPaddingInline:${Te};--tabPaddingBlock:${Y};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${Zt};--tabPaddingInline:${$e}}:host([size='large']){--tabPaddingBlock:${Pr};--tabPaddingInline:${Te}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};--_col-start-width:0px;display:grid;grid-template-columns:${Te} var(--_col-start-width) 1fr auto ${Te}}:host(:has([slot='start'])){--_col-start-width:24px}@scope{:scope:has([slot='start']){--_col-start-width:24px}}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Lo};--tabIndicatorInsetBlock:${Zt}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${Do}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start;display:grid;gap:0;grid-column:1/-1;grid-template-columns:subgrid;grid-row:unset;padding-inline:0}:host ::slotted([slot='tab'])::after{height:${Be};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Be};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Be};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${z}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Be};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Be};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${_};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${ve}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${z}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${z}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Bo};color:${$i};fill:${Us}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${Xt};fill:${Xt};color:${A}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${He};content:'';inline-size:100%;inset-block:auto anchor(end);inset-inline:anchor(center) auto;position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${Fl};transition-timing-function:${nn};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Be}}:host(:dir(rtl))::after{transform:translateX(50%)}:host([orientation='vertical'])::after{inset-block:anchor(center) auto;inset-inline:anchor(start) auto;transform:translateY(-50%);transition-property:inset-block,height;width:${Be};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${z}}}`,Sh=b`<template role=tablist focusgroup="tablist inline block" @click=${(o,e)=>o.handleClick(e.event)} @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${K("slottedTabs")}></slot></template>`,Bh={name:Vk,registry:h.registry,styles:wh,template:Sh};var Rk=Object.defineProperty,jk=Object.getOwnPropertyDescriptor,tr=(o,e,t,r)=>{for(var i=r>1?void 0:r?jk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Rk(e,t,i),i};class Rt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=er.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??er.horizontal}disabledChanged(e,t){this.elementInternals&&w(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??er.horizontal,pc(this.elementInternals,e,t,er)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Nn(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.getRootNode();let i="";for(const n of this.tabs){if(n.slot!=="tab")continue;n.id||(n.id=Ze("tab-")),t?n.disabled=this.disabled:n.disabled=n.disabled||this.disabled,!i&&!n.disabled&&(i=n.id);const s=this.activeid===n.id;if(n.toggleAttribute("focusgroupstart",s),n.setAttribute("aria-selected",s.toString()),e){const l=n.getAttribute("aria-controls")??"",u=r.getElementById(l);l&&u&&(u.role??(u.role="tabpanel"),u.hidden=this.activeid!==n.id,this.tabPanelMap.set(n,u))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):i&&(this.activeid=i))}handleFocusIn(e){this.activeid=e.target.id}handleClick(e){e.isTrusted||(this.activeid=e.target.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,n=r.getElementById(t);if(!Nn(n)||n.disabled||!this.contains(n))return;if(i){i.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(i);l&&(l.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),jo(this,()=>{this.setTabs()},{shallow:!0})}}tr([a({mode:"boolean"})],Rt.prototype,"disabled",2),tr([a],Rt.prototype,"orientation",2),tr([a],Rt.prototype,"activeid",2),tr([f],Rt.prototype,"slottedTabs",2),tr([f],Rt.prototype,"tabs",2);class Ch extends Rt{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Hr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Mr(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ch.define(Bh);const qk={small:"small",medium:"medium",large:"large"},Tn={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Wk=[Tn.filledLighter,Tn.filledDarker],Gk={on:"on",off:"off"},Xk={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Uk=`${h.prefix}-textarea`,Ph=p`${x("inline-block")} :host{--font-size:${_};--line-height:${D};--padding-inline:${Te};--padding-block:${Zt};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${P};--control-padding-inline:${M};--color:${A};--background-color:${C};--border-color:${Me};--border-block-end-color:${De};--placeholder-color:${mr};--focus-indicator-color:${He};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${$};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${ut};--border-block-end-color:${dt}}:host(:active){--border-color:${Ut};--border-block-end-color:${ht}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${L};--line-height:${q};--min-block-size:40px;--padding-block:${_t};--padding-inline:${$e};--control-padding-inline:${M}}:host([size='large']){--font-size:${he};--line-height:${ve};--min-block-size:64px;--padding-block:${ie};--padding-inline:${Y};--control-padding-inline:${$e}}:host([resize='both']:not(${v})){--resize:both}:host([resize='horizontal']:not(${v})){--resize:horizontal}:host([resize='vertical']:not(${v})){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${Wt};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${wr}}:host(${Dv}){--border-color:${yr};--border-block-end-color:${yr}}:host(${v}){--color:${z};--background-color:${ce};--border-color:${me};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${z};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${B};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${B} ${B};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${B});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${gt};transition-duration:${Ir};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ho};transition-delay:${ft}}:host([readonly]) .root::after,:host(${v}) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${_t};padding-inline-end:${Q}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;overflow:auto;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${lt};background-color:${xi}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(${v}){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function Kk(){return b`<template><label ${T("labelEl")} for=control part=label><slot name=label ${K("labelSlottedNodes")}></slot></label><div class=root part=root ${T("rootEl")}><textarea ${T("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${K("defaultSlottedNodes")}></slot></div></template>`}const Ih=Kk(),Ah={name:Uk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:Ph,template:Ih},Yk=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var Zk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zk(e,t,i),i};class Z extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.readOnly=!1,this.required=!1,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){N.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Yk),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.toggleAttribute("disabled",this.disabled),e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),w(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),rt(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.toggleAttribute("disabled",this.disabled))}toggleUserValidityState(){w(this.elementInternals,"user-invalid",!this.validity.valid),w(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Z.formAssociated=!0,ge([f],Z.prototype,"controlEl",2),ge([f],Z.prototype,"defaultSlottedNodes",2),ge([f],Z.prototype,"labelSlottedNodes",2),ge([a],Z.prototype,"autocomplete",2),ge([a({attribute:"auto-resize",mode:"boolean"})],Z.prototype,"autoResize",2),ge([a({attribute:"dirname"})],Z.prototype,"dirName",2),ge([a({mode:"boolean"})],Z.prototype,"disabled",2),ge([a({attribute:"form"})],Z.prototype,"initialForm",2),ge([a({attribute:"maxlength",converter:oe})],Z.prototype,"maxLength",2),ge([a({attribute:"minlength",converter:oe})],Z.prototype,"minLength",2),ge([a],Z.prototype,"name",2),ge([a],Z.prototype,"placeholder",2),ge([a({attribute:"readonly",mode:"boolean"})],Z.prototype,"readOnly",2),ge([a({mode:"boolean"})],Z.prototype,"required",2),ge([a({mode:"boolean"})],Z.prototype,"spellcheck",2);var Qk=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,t0=(o,e,t,r)=>{for(var i=r>1?void 0:r?e0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Qk(e,t,i),i};class zn extends Z{labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{this.size?e.setAttribute("size",this.size):e.removeAttribute("size")})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{this.size?r.setAttribute("size",this.size):r.removeAttribute("size")});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}t0([a],zn.prototype,"size",2),zn.define(Ah);const o0={small:"small",medium:"medium",large:"large"},r0={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Nh={email:"email",password:"password",tel:"tel",text:"text",url:"url"},i0=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],n0=`${h.prefix}-text-input`,Th=p`${x("block")} :host{font-family:${$};font-size:${_};font-weight:${E};line-height:${D};max-width:400px}.label{display:flex;color:${A};padding-bottom:${_t};flex-shrink:0;padding-inline-end:${Q}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${P} solid ${Me};border-bottom-color:${De};border-radius:${B};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${M};padding:0 ${Te};position:relative;width:100%}:has(.control:user-invalid){border-color:${yr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${B});border-radius:0 0 ${B} ${B};border-bottom:2px solid ${He};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Ir};transition-delay:${gt}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${B};background:${ce};font-family:${$};font-weight:${E};font-size:${_};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${mr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${zt}}:host ::slotted([slot='start']){padding-right:${M}}:host ::slotted([slot='end']){padding-left:${M};gap:${Q}}:host(:hover) .root{border-color:${ut};border-bottom-color:${dt}}:host(:active) .root{border-color:${Ut}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ho};transition-delay:${ft}}:host(:focus-within:active) .root:after{border-bottom-color:${_i}}:host([appearance='outline']:focus-within) .root{border:${P} solid ${Me}}:host(:focus-within) .control{color:${A}}:host(${v}) .root{background:${ce};border:${P} solid ${me}}:host(${v}) .control::placeholder,:host(${v}) ::slotted([slot='start']),:host(${v}) ::slotted([slot='end']){color:${z}}::selection{color:${lt};background-color:${xi}}:host([control-size='small']) .control{font-size:${L};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${M};padding:0 ${$e}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${E};line-height:${ve}}:host([control-size='large']) .root{height:40px;gap:${Ne};padding:0 ${Y}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${To}}:host([appearance='underline']) .root{background:${ce};border:0;border-radius:0;border-bottom:${P} solid ${De}}:host([appearance='underline']:hover) .root{border-bottom-color:${dt}}:host([appearance='underline']:active) .root{border-bottom-color:${ht}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${ht}}:host([appearance='underline']${v}) .root{border-bottom-color:${me}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${P} solid ${j};box-shadow:${wr}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${Wt}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Io}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Io};background:${Wt}}`;function s0(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${T("controlLabel")}><slot ${K("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ve(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${T("control")}> ${ot(o)}</div></template>`}const zh=s0(),_h={name:n0,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:Th,template:zh};var a0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,R=(o,e,t,r)=>{for(var i=r>1?void 0:r?l0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&a0(e,t,i),i};class F extends k{constructor(){super(...arguments),this.type=Nh.text,this.dirtyValue=!1,this.committedValue="",this.isUserInput=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){N.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){N.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.isUserInput||(this.committedValue=e??""),this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.control.value!==this.committedValue&&this.emitChange(e),!0}emitChange(e){this.committedValue=this.control.value,this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0})}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),rt(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>i0.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){this.dirtyValue=!0,this.isUserInput=!0;try{this.value=this.control.value}finally{this.isUserInput=!1}return!0}keydownHandler(e){return e.key!=="Enter"||e.isComposing||e.keyCode===229||e.composedPath()[0]!==this.control||(this.control.value!==this.committedValue&&this.emitChange(),this.implicitSubmit()),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}F.formAssociated=!0,R([a],F.prototype,"autocomplete",2),R([a({attribute:"current-value"})],F.prototype,"currentValue",2),R([f],F.prototype,"defaultSlottedNodes",2),R([a],F.prototype,"dirname",2),R([a({mode:"boolean"})],F.prototype,"disabled",2),R([a({attribute:"form"})],F.prototype,"formAttribute",2),R([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),R([a],F.prototype,"list",2),R([a({converter:oe})],F.prototype,"maxlength",2),R([a({converter:oe})],F.prototype,"minlength",2),R([a({mode:"boolean"})],F.prototype,"multiple",2),R([a],F.prototype,"name",2),R([a],F.prototype,"pattern",2),R([a],F.prototype,"placeholder",2),R([a({attribute:"readonly",mode:"boolean"})],F.prototype,"readOnly",2),R([a({mode:"boolean"})],F.prototype,"required",2),R([a({converter:oe})],F.prototype,"size",2),R([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],F.prototype,"spellcheck",2),R([a],F.prototype,"type",2),R([f],F.prototype,"control",2),R([f],F.prototype,"controlLabel",2);class _n extends F{}bt(_n,tt),_n.define(_h);const c0={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},d0={base:"base",numeric:"numeric",monospace:"monospace"},h0={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},u0={start:"start",end:"end",center:"center",justify:"justify"},p0=`${h.prefix}-text`,Eh=p`${x("inline")} :host{font-family:${$};font-size:${_};line-height:${D};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Yt};line-height:${_o}}:host([size='200']){font-size:${L};line-height:${q}}:host([size='400']){font-size:${he};line-height:${ve}}:host([size='500']){font-size:${zt};line-height:${Eo}}:host([size='600']){font-size:${To};line-height:${Zi}}:host([size='700']){font-size:${Xi};line-height:${Ji}}:host([size='800']){font-size:${Ui};line-height:${Qi}}:host([size='900']){font-size:${Ki};line-height:${en}}:host([size='1000']){font-size:${Yi};line-height:${tn}}:host([font='monospace']){font-family:${Cl}}:host([font='numeric']){font-family:${Pl}}:host([weight='medium']){font-weight:${Il}}:host([weight='semibold']){font-weight:${V}}:host([weight='bold']){font-weight:${zo}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Fh=b`<slot></slot>`,Oh={name:p0,registry:h.registry,styles:Eh,template:Fh};class Lh extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}}Lh.define(Oh);const g0=qo,f0=Wo,b0=Go,m0=`${h.prefix}-toggle-button`,Dh=p`${Qt} :host(${H}){border-color:${Me};background-color:${ki};color:${A};border-width:${P}}:host(${H}:hover){border-color:${ut};background-color:${So}}:host(${H}:active){border-color:${Ut};background-color:${vr}}:host(${H}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${H}[appearance='primary']){background-color:${na};color:${Ue}}:host(${H}[appearance='primary']:hover){background-color:${Pi}}:host(${H}[appearance='primary']:active){background-color:${Ii}}:host(${H}[appearance='subtle']){border-color:transparent;background-color:${Si};color:${yo}}:host(${H}[appearance='subtle']:hover){background-color:${Bo};color:${It}}:host(${H}[appearance='subtle']:active){background-color:${Xt};color:${At}}:host(${H}[appearance='outline']),:host(${H}[appearance='transparent']){background-color:${Bi}}:host(${H}[appearance='outline']:hover),:host(${H}[appearance='transparent']:hover){background-color:${Co}}:host(${H}[appearance='outline']:active),:host(${H}[appearance='transparent']:active){background-color:${Po}}:host(${H}[appearance='transparent']){border-color:transparent;color:${Ds}}:host(${H}[appearance='transparent']:hover){color:${ko}}:host(${H}[appearance='transparent']:active){color:${xo}}@media (forced-colors:active){:host(${H}),:host( ${H}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${H}[appearance='primary']){color:SelectedItemText}}`,Mh=pn(),Hh={name:m0,registry:h.registry,styles:Dh,template:Mh};var v0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,Vh=(o,e,t,r)=>{for(var i=r>1?void 0:r?$0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&v0(e,t,i),i};class qr extends eo{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,w(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}Vh([a({mode:"boolean"})],qr.prototype,"pressed",2),Vh([a({mode:"boolean"})],qr.prototype,"mixed",2),qr.define(Hh);const y0={"above-start":"above-start",above:"above","above-end":"above-end","below-start":"below-start",below:"below","below-end":"below-end","before-top":"before-top",before:"before","before-bottom":"before-bottom","after-top":"after-top",after:"after","after-bottom":"after-bottom"},k0=`${h.prefix}-tooltip`,Rh=p`${x("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${_t};--inline-offset:${Q};background:${C};border-radius:${B};border:1px solid ${j};box-sizing:border-box;color:${A};display:inline-flex;filter:drop-shadow(0 0 2px ${ca}) drop-shadow(0 4px 8px ${da});font-family:${$};font-size:${L};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Te} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:block-start span-inline-end}:host([positioning='above']){--position-area:block-start}:host([positioning='above-end']){--position-area:block-start span-inline-start}:host([positioning='below-start']){--position-area:block-end span-inline-end}:host([positioning='below']){--position-area:block-end}:host([positioning='below-end']){--position-area:block-end span-inline-start}:host([positioning='before-top']){--position-area:inline-start span-block-end}:host([positioning='before']){--position-area:inline-start}:host([positioning='before-bottom']){--position-area:inline-start span-block-start}:host([positioning='after-top']){--position-area:inline-end span-block-end}:host([positioning='after']){--position-area:inline-end}:host([positioning='after-bottom']){--position-area:inline-end span-block-start}`,jh=b`<template popover aria-hidden=true><slot></slot></template>`,qh={name:k0,registry:h.registry,styles:Rh,template:jh};var x0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,Wr=(o,e,t,r)=>{for(var i=r>1?void 0:r?w0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&x0(e,t,i),i};class lo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ze("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Er){kv||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}N.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Er){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=i[t]??i.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
18
+ `;function xk(){return b`<div ${T("display")} class=display aria-hidden=true></div><slot name=icon ${T("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const eh=xk(),th=p`${x("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${xa};--_icon-color-empty:${Wi};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${jr(yk)});--_mask-image-outlined:url(${jr(kk)});--_mask-position-x:left;align-items:center;color:${A};font-family:${$};font-size:${L};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${_};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${A};--_icon-color-empty:${Gt}}:host([color='brand']){--_icon-color-value:${wo};--_icon-color-empty:${Ti}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${M});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${M}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Q};font-weight:${V}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${M}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${$e}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Q}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${M}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${$e}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,oh={name:bk,registry:h.registry,styles:th,template:eh};class rh extends Vt{}rh.define(oh);const wk={small:"small",medium:"medium"},ih=xe,nh={singleValue:"single-value"},Sk=`${h.prefix}-slider`,sh=p`${x("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${ct};--track-color:${De};--slider-direction:90deg;--border-radius:${B};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Nt}}:host(:active){--rail-color:${Tt}}:host(${v}){--rail-color:${z};--track-color:${et}}:host(:not(${v})){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ae}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${re};outline:1px solid ${Ao}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${Me};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function Bk(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${T("track")} part=track-container class=track style=${e=>e.position}></div><div ${T("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ye(o.thumb)}</slot></div></template>`}const ah=Bk({thumb:'<div class="thumb"></div>'}),lh={name:Sk,registry:h.registry,styles:sh,template:ah};function ch(o,e,t){return Math.min(Math.max(t,o),e)}const Nn={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function dh(o,e,t,r){let i=ch(0,1,(o-e)/(t-e));return r===it.rtl&&(i=1-i),i}var Ck=Object.defineProperty,Pk=Object.getOwnPropertyDescriptor,se=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ck(e,t,i),i};class U extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=it.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=nh.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===xe.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===xe.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ih.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=ch(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??xe.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=wn(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),rt(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==it.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==it.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==xe.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==xe.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=dh(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===xe.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=dh(e,this.orientation===xe.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===xe.vertical?this.trackHeight:this.trackWidth,this.orientation===xe.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){N.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}U.formAssociated=!0,se([a({attribute:"value",mode:"fromView"})],U.prototype,"initialValue",2),se([f],U.prototype,"direction",2),se([f],U.prototype,"isDragging",2),se([f],U.prototype,"position",2),se([f],U.prototype,"trackWidth",2),se([f],U.prototype,"trackMinWidth",2),se([f],U.prototype,"trackHeight",2),se([f],U.prototype,"trackLeft",2),se([f],U.prototype,"trackMinHeight",2),se([f],U.prototype,"valueTextFormatter",2),se([a({mode:"boolean"})],U.prototype,"disabled",2),se([a({converter:Nn})],U.prototype,"min",2),se([a({converter:Nn})],U.prototype,"max",2),se([a({converter:Nn})],U.prototype,"step",2),se([a],U.prototype,"orientation",2),se([a],U.prototype,"mode",2),U.define(lh);const Ik={primary:"primary",inverted:"inverted"},Ak={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},Nk=`${h.prefix}-spinner`,hh=p`${x("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Be};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${Be};--size:36px}:host([size='extra-large']){--indicatorSize:${Be};--size:40px}:host([size='huge']){--indicatorSize:${Cr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Ro}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${_i};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${zi};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${aa}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,uh=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,ph={name:Nk,registry:h.registry,styles:hh,template:uh};class gh extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class fh extends gh{}fh.define(ph);const Tk={above:"above",after:"after",before:"before"},zk=`${h.prefix}-switch`,bh=p`${x("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${M};width:40px;height:20px;background-color:${ce};border:1px solid ${De};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${dt}}:host(:active){border-color:${ht}}:host(${v}),:host([readonly]){border:1px solid ${me};background-color:none;pointer:default}:host(${y}){background:${ct};border-color:${ct}}:host(${y}:hover){background:${Nt};border-color:${Nt}}:host(${y}:active){background:${Tt};border-color:${Tt}}:host(${y}${v}){background:${et};border-color:${me}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Ho};transition-timing-function:${Ro};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${lt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Ys}}:host(${y}:active) .checked-indicator{background:${Zs}}:host(:hover) .checked-indicator{background-color:${Ms}}:host(:active) .checked-indicator{background-color:${Hs}}:host(${v}) .checked-indicator,:host([readonly]) .checked-indicator{background:${z}}:host(${y}${v}) .checked-indicator{background:${z}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${j};outline:${ue} solid ${j};outline-offset:1px;box-shadow:${Fo},0 0 0 2px ${re}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:CanvasText}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:HighlightText}:host(${v}) .checked-indicator,:host(${y}${v}) .checked-indicator{background-color:GrayText}}`;function _k(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=switch>${ye(o.switch)}</slot></template>`}const mh=_k({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),vh={name:zk,registry:h.registry,styles:bh,template:mh};class $h extends _e{constructor(){super(),this.elementInternals.role="switch"}}$h.define(vh);function er(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ek=`${h.prefix}-tab`,yh=p`${x("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${$};font-size:${_};color:${Ie};fill:currentcolor;grid-row:1;padding:${Y} ${Te};border-radius:${B};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px;grid-column:3}:host([aria-selected='true']){color:${A};font-weight:${V}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${V}}:host([aria-selected='true'])::after{background-color:${He};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${ut};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${ut}}}:host([aria-selected='true'][disabled])::after{background-color:${z}}::slotted([slot='start']){grid-column:2}::slotted([slot='end']){grid-column:-1}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${z};color:${z};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ae};box-shadow:0 0 0 3px ${re};outline:1px solid ${Ao}}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Fk(o={}){return b`<template slot=tab role=tab>${Ve(o)} <span class=tab-content><slot></slot></span>${ot(o)}</template>`}const kh=Fk({}),xh={name:Ek,registry:h.registry,styles:yh,template:kh};var Ok=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Dk=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ok(e,t,i),i};class qr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),rt(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Dk([a({mode:"boolean"})],qr.prototype,"disabled",2),bt(qr,tt),qr.define(xh);const Mk={subtle:"subtle",transparent:"transparent"},Hk={small:"small",medium:"medium",large:"large"},tr=xe,Vk=`${h.prefix}-tablist`,wh=p`${x("flex")} :host{--tabPaddingInline:${Te};--tabPaddingBlock:${Y};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${Zt};--tabPaddingInline:${$e}}:host([size='large']){--tabPaddingBlock:${Ir};--tabPaddingInline:${Te}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};--_col-start-width:0px;display:grid;grid-template-columns:${Te} var(--_col-start-width) 1fr auto ${Te}}:host(:has([slot='start'])){--_col-start-width:24px}@scope{:scope:has([slot='start']){--_col-start-width:24px}}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Lo};--tabIndicatorInsetBlock:${Zt}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${Do}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start;display:grid;gap:0;grid-column:1/-1;grid-template-columns:subgrid;grid-row:unset;padding-inline:0}:host ::slotted([slot='tab'])::after{height:${Be};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Be};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Be};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${z}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Be};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Be};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${_};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${ve}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${z}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${z}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Bo};color:${yi};fill:${Us}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${Xt};fill:${Xt};color:${A}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${He};content:'';inline-size:100%;inset-block:auto anchor(end);inset-inline:anchor(center) auto;position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${Fl};transition-timing-function:${sn};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Be}}:host(:dir(rtl))::after{transform:translateX(50%)}:host([orientation='vertical'])::after{inset-block:anchor(center) auto;inset-inline:anchor(start) auto;transform:translateY(-50%);transition-property:inset-block,height;width:${Be};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${z}}}`,Sh=b`<template role=tablist focusgroup="tablist inline block" @click=${(o,e)=>o.handleClick(e.event)} @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${K("slottedTabs")}></slot></template>`,Bh={name:Vk,registry:h.registry,styles:wh,template:Sh};var Rk=Object.defineProperty,jk=Object.getOwnPropertyDescriptor,or=(o,e,t,r)=>{for(var i=r>1?void 0:r?jk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Rk(e,t,i),i};class Rt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=tr.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??tr.horizontal}disabledChanged(e,t){this.elementInternals&&w(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??tr.horizontal,pc(this.elementInternals,e,t,tr)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>er(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.getRootNode();let i="";for(const n of this.tabs){if(n.slot!=="tab")continue;n.id||(n.id=Ze("tab-")),t?n.disabled=this.disabled:n.disabled=n.disabled||this.disabled,!i&&!n.disabled&&(i=n.id);const s=this.activeid===n.id;if(n.toggleAttribute("focusgroupstart",s),n.setAttribute("aria-selected",s.toString()),e){const l=n.getAttribute("aria-controls")??"",u=r.getElementById(l);l&&u&&(u.role??(u.role="tabpanel"),u.hidden=this.activeid!==n.id,this.tabPanelMap.set(n,u))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):i&&(this.activeid=i))}handleFocusIn(e){const t=e.target;!er(t)||t.disabled||(this.activeid=t.id)}handleClick(e){if(e.isTrusted)return;const t=e.target;!er(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,n=r.getElementById(t);if(!er(n)||n.disabled||!this.contains(n))return;if(i){i.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(i);l&&(l.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),jo(this,()=>{this.setTabs()},{shallow:!0})}}or([a({mode:"boolean"})],Rt.prototype,"disabled",2),or([a],Rt.prototype,"orientation",2),or([a],Rt.prototype,"activeid",2),or([f],Rt.prototype,"slottedTabs",2),or([f],Rt.prototype,"tabs",2);class Ch extends Rt{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Vr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Hr(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ch.define(Bh);const qk={small:"small",medium:"medium",large:"large"},Tn={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Wk=[Tn.filledLighter,Tn.filledDarker],Gk={on:"on",off:"off"},Xk={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Uk=`${h.prefix}-textarea`,Ph=p`${x("inline-block")} :host{--font-size:${_};--line-height:${D};--padding-inline:${Te};--padding-block:${Zt};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${P};--control-padding-inline:${M};--color:${A};--background-color:${C};--border-color:${Me};--border-block-end-color:${De};--placeholder-color:${vr};--focus-indicator-color:${He};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${$};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${ut};--border-block-end-color:${dt}}:host(:active){--border-color:${Ut};--border-block-end-color:${ht}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${L};--line-height:${q};--min-block-size:40px;--padding-block:${_t};--padding-inline:${$e};--control-padding-inline:${M}}:host([size='large']){--font-size:${he};--line-height:${ve};--min-block-size:64px;--padding-block:${ie};--padding-inline:${Y};--control-padding-inline:${$e}}:host([resize='both']:not(${v})){--resize:both}:host([resize='horizontal']:not(${v})){--resize:horizontal}:host([resize='vertical']:not(${v})){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${Wt};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${Sr}}:host(${Dv}){--border-color:${kr};--border-block-end-color:${kr}}:host(${v}){--color:${z};--background-color:${ce};--border-color:${me};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${z};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${B};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${B} ${B};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${B});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${gt};transition-duration:${Ar};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ho};transition-delay:${ft}}:host([readonly]) .root::after,:host(${v}) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${_t};padding-inline-end:${Q}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;overflow:auto;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${lt};background-color:${wi}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(${v}){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function Kk(){return b`<template><label ${T("labelEl")} for=control part=label><slot name=label ${K("labelSlottedNodes")}></slot></label><div class=root part=root ${T("rootEl")}><textarea ${T("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${K("defaultSlottedNodes")}></slot></div></template>`}const Ih=Kk(),Ah={name:Uk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:Ph,template:Ih},Yk=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var Zk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jk(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zk(e,t,i),i};class Z extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.readOnly=!1,this.required=!1,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){N.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Yk),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.toggleAttribute("disabled",this.disabled),e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),w(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),rt(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.toggleAttribute("disabled",this.disabled))}toggleUserValidityState(){w(this.elementInternals,"user-invalid",!this.validity.valid),w(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Z.formAssociated=!0,ge([f],Z.prototype,"controlEl",2),ge([f],Z.prototype,"defaultSlottedNodes",2),ge([f],Z.prototype,"labelSlottedNodes",2),ge([a],Z.prototype,"autocomplete",2),ge([a({attribute:"auto-resize",mode:"boolean"})],Z.prototype,"autoResize",2),ge([a({attribute:"dirname"})],Z.prototype,"dirName",2),ge([a({mode:"boolean"})],Z.prototype,"disabled",2),ge([a({attribute:"form"})],Z.prototype,"initialForm",2),ge([a({attribute:"maxlength",converter:oe})],Z.prototype,"maxLength",2),ge([a({attribute:"minlength",converter:oe})],Z.prototype,"minLength",2),ge([a],Z.prototype,"name",2),ge([a],Z.prototype,"placeholder",2),ge([a({attribute:"readonly",mode:"boolean"})],Z.prototype,"readOnly",2),ge([a({mode:"boolean"})],Z.prototype,"required",2),ge([a({mode:"boolean"})],Z.prototype,"spellcheck",2);var Qk=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,t0=(o,e,t,r)=>{for(var i=r>1?void 0:r?e0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Qk(e,t,i),i};class zn extends Z{labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{this.size?e.setAttribute("size",this.size):e.removeAttribute("size")})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{this.size?r.setAttribute("size",this.size):r.removeAttribute("size")});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}t0([a],zn.prototype,"size",2),zn.define(Ah);const o0={small:"small",medium:"medium",large:"large"},r0={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Nh={email:"email",password:"password",tel:"tel",text:"text",url:"url"},i0=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],n0=`${h.prefix}-text-input`,Th=p`${x("block")} :host{font-family:${$};font-size:${_};font-weight:${E};line-height:${D};max-width:400px}.label{display:flex;color:${A};padding-bottom:${_t};flex-shrink:0;padding-inline-end:${Q}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${P} solid ${Me};border-bottom-color:${De};border-radius:${B};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${M};padding:0 ${Te};position:relative;width:100%}:has(.control:user-invalid){border-color:${kr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${B});border-radius:0 0 ${B} ${B};border-bottom:2px solid ${He};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Ar};transition-delay:${gt}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${B};background:${ce};font-family:${$};font-weight:${E};font-size:${_};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${vr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${zt}}:host ::slotted([slot='start']){padding-right:${M}}:host ::slotted([slot='end']){padding-left:${M};gap:${Q}}:host(:hover) .root{border-color:${ut};border-bottom-color:${dt}}:host(:active) .root{border-color:${Ut}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ho};transition-delay:${ft}}:host(:focus-within:active) .root:after{border-bottom-color:${Ei}}:host([appearance='outline']:focus-within) .root{border:${P} solid ${Me}}:host(:focus-within) .control{color:${A}}:host(${v}) .root{background:${ce};border:${P} solid ${me}}:host(${v}) .control::placeholder,:host(${v}) ::slotted([slot='start']),:host(${v}) ::slotted([slot='end']){color:${z}}::selection{color:${lt};background-color:${wi}}:host([control-size='small']) .control{font-size:${L};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${M};padding:0 ${$e}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${E};line-height:${ve}}:host([control-size='large']) .root{height:40px;gap:${Ne};padding:0 ${Y}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${To}}:host([appearance='underline']) .root{background:${ce};border:0;border-radius:0;border-bottom:${P} solid ${De}}:host([appearance='underline']:hover) .root{border-bottom-color:${dt}}:host([appearance='underline']:active) .root{border-bottom-color:${ht}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${ht}}:host([appearance='underline']${v}) .root{border-bottom-color:${me}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${P} solid ${j};box-shadow:${Sr}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${Wt}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Io}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Io};background:${Wt}}`;function s0(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${T("controlLabel")}><slot ${K("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ve(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${T("control")}> ${ot(o)}</div></template>`}const zh=s0(),_h={name:n0,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:Th,template:zh};var a0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,R=(o,e,t,r)=>{for(var i=r>1?void 0:r?l0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&a0(e,t,i),i};class F extends k{constructor(){super(...arguments),this.type=Nh.text,this.dirtyValue=!1,this.committedValue="",this.isUserInput=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){N.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){N.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.isUserInput||(this.committedValue=e??""),this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.control.value!==this.committedValue&&this.emitChange(e),!0}emitChange(e){this.committedValue=this.control.value,this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0})}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),rt(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>i0.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){this.dirtyValue=!0,this.isUserInput=!0;try{this.value=this.control.value}finally{this.isUserInput=!1}return!0}keydownHandler(e){return e.key!=="Enter"||e.isComposing||e.keyCode===229||e.composedPath()[0]!==this.control||(this.control.value!==this.committedValue&&this.emitChange(),this.implicitSubmit()),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}F.formAssociated=!0,R([a],F.prototype,"autocomplete",2),R([a({attribute:"current-value"})],F.prototype,"currentValue",2),R([f],F.prototype,"defaultSlottedNodes",2),R([a],F.prototype,"dirname",2),R([a({mode:"boolean"})],F.prototype,"disabled",2),R([a({attribute:"form"})],F.prototype,"formAttribute",2),R([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),R([a],F.prototype,"list",2),R([a({converter:oe})],F.prototype,"maxlength",2),R([a({converter:oe})],F.prototype,"minlength",2),R([a({mode:"boolean"})],F.prototype,"multiple",2),R([a],F.prototype,"name",2),R([a],F.prototype,"pattern",2),R([a],F.prototype,"placeholder",2),R([a({attribute:"readonly",mode:"boolean"})],F.prototype,"readOnly",2),R([a({mode:"boolean"})],F.prototype,"required",2),R([a({converter:oe})],F.prototype,"size",2),R([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],F.prototype,"spellcheck",2),R([a],F.prototype,"type",2),R([f],F.prototype,"control",2),R([f],F.prototype,"controlLabel",2);class _n extends F{}bt(_n,tt),_n.define(_h);const c0={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},d0={base:"base",numeric:"numeric",monospace:"monospace"},h0={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},u0={start:"start",end:"end",center:"center",justify:"justify"},p0=`${h.prefix}-text`,Eh=p`${x("inline")} :host{font-family:${$};font-size:${_};line-height:${D};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Yt};line-height:${_o}}:host([size='200']){font-size:${L};line-height:${q}}:host([size='400']){font-size:${he};line-height:${ve}}:host([size='500']){font-size:${zt};line-height:${Eo}}:host([size='600']){font-size:${To};line-height:${Ji}}:host([size='700']){font-size:${Ui};line-height:${Qi}}:host([size='800']){font-size:${Ki};line-height:${en}}:host([size='900']){font-size:${Yi};line-height:${tn}}:host([size='1000']){font-size:${Zi};line-height:${on}}:host([font='monospace']){font-family:${Cl}}:host([font='numeric']){font-family:${Pl}}:host([weight='medium']){font-weight:${Il}}:host([weight='semibold']){font-weight:${V}}:host([weight='bold']){font-weight:${zo}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Fh=b`<slot></slot>`,Oh={name:p0,registry:h.registry,styles:Eh,template:Fh};class Lh extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}}Lh.define(Oh);const g0=qo,f0=Wo,b0=Go,m0=`${h.prefix}-toggle-button`,Dh=p`${Qt} :host(${H}){border-color:${Me};background-color:${xi};color:${A};border-width:${P}}:host(${H}:hover){border-color:${ut};background-color:${So}}:host(${H}:active){border-color:${Ut};background-color:${$r}}:host(${H}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${H}[appearance='primary']){background-color:${na};color:${Ue}}:host(${H}[appearance='primary']:hover){background-color:${Ii}}:host(${H}[appearance='primary']:active){background-color:${Ai}}:host(${H}[appearance='subtle']){border-color:transparent;background-color:${Bi};color:${yo}}:host(${H}[appearance='subtle']:hover){background-color:${Bo};color:${It}}:host(${H}[appearance='subtle']:active){background-color:${Xt};color:${At}}:host(${H}[appearance='outline']),:host(${H}[appearance='transparent']){background-color:${Ci}}:host(${H}[appearance='outline']:hover),:host(${H}[appearance='transparent']:hover){background-color:${Co}}:host(${H}[appearance='outline']:active),:host(${H}[appearance='transparent']:active){background-color:${Po}}:host(${H}[appearance='transparent']){border-color:transparent;color:${Ds}}:host(${H}[appearance='transparent']:hover){color:${ko}}:host(${H}[appearance='transparent']:active){color:${xo}}@media (forced-colors:active){:host(${H}),:host( ${H}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${H}[appearance='primary']){color:SelectedItemText}}`,Mh=gn(),Hh={name:m0,registry:h.registry,styles:Dh,template:Mh};var v0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,Vh=(o,e,t,r)=>{for(var i=r>1?void 0:r?$0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&v0(e,t,i),i};class Wr extends eo{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,w(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}Vh([a({mode:"boolean"})],Wr.prototype,"pressed",2),Vh([a({mode:"boolean"})],Wr.prototype,"mixed",2),Wr.define(Hh);const y0={"above-start":"above-start",above:"above","above-end":"above-end","below-start":"below-start",below:"below","below-end":"below-end","before-top":"before-top",before:"before","before-bottom":"before-bottom","after-top":"after-top",after:"after","after-bottom":"after-bottom"},k0=`${h.prefix}-tooltip`,Rh=p`${x("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${_t};--inline-offset:${Q};background:${C};border-radius:${B};border:1px solid ${j};box-sizing:border-box;color:${A};display:inline-flex;filter:drop-shadow(0 0 2px ${ca}) drop-shadow(0 4px 8px ${da});font-family:${$};font-size:${L};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Te} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:block-start span-inline-end}:host([positioning='above']){--position-area:block-start}:host([positioning='above-end']){--position-area:block-start span-inline-start}:host([positioning='below-start']){--position-area:block-end span-inline-end}:host([positioning='below']){--position-area:block-end}:host([positioning='below-end']){--position-area:block-end span-inline-start}:host([positioning='before-top']){--position-area:inline-start span-block-end}:host([positioning='before']){--position-area:inline-start}:host([positioning='before-bottom']){--position-area:inline-start span-block-start}:host([positioning='after-top']){--position-area:inline-end span-block-end}:host([positioning='after']){--position-area:inline-end}:host([positioning='after-bottom']){--position-area:inline-end span-block-start}`,jh=b`<template popover aria-hidden=true><slot></slot></template>`,qh={name:k0,registry:h.registry,styles:Rh,template:jh};var x0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,Gr=(o,e,t,r)=>{for(var i=r>1?void 0:r?w0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&x0(e,t,i),i};class lo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ze("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Fr){kv||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}N.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Fr){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=i[t]??i.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
19
19
  #${this.anchor} {
20
20
  anchor-name: ${e};
21
21
  }
@@ -26,18 +26,18 @@ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
26
26
  ${n}
27
27
  ${l}
28
28
  }
29
- `,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Wr([a],lo.prototype,"id",2),Wr([a({converter:oe})],lo.prototype,"delay",2),Wr([a],lo.prototype,"positioning",2),Wr([a],lo.prototype,"anchor",2),lo.define(qh);const S0=`${h.prefix}-tree`,Wh=p`${x("block")} :host{outline:none}`,Gh=b`<template focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${o=>o.itemToggleHandler()}><slot ${T("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Xh={name:S0,registry:h.registry,styles:Wh,template:Gh},Uh={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Kh={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const B0=`${h.prefix}-tree-item`;var C0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,En=(o,e,t,r)=>{for(var i=r>1?void 0:r?P0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&C0(e,t,i),i};class or extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}En([f],or.prototype,"currentSelected",2),En([f],or.prototype,"defaultSlot",2),En([f],or.prototype,"childTreeItems",2);var I0=Object.defineProperty,A0=Object.getOwnPropertyDescriptor,Yh=(o,e,t,r)=>{for(var i=r>1?void 0:r?A0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&I0(e,t,i),i};class Gr extends or{constructor(){super(...arguments),this.size=Kh.small,this.appearance=Uh.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Hr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Mr(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Yh([a],Gr.prototype,"size",2),Yh([a],Gr.prototype,"appearance",2),Gr.define(Xh);const Zh=p`${x("block")} :host{--_subitem-padding-inline-start:${Oo};outline:none;font-size:${_};line-height:${D}}:host([size='small']){--_subitem-padding-inline-start:${Y}}:host(:focus-visible) .positioning-region{box-shadow:${Cr} ${Cr} ${Cr} ${Lo} ${re} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${El};padding-inline-end:${ie};border-radius:${B};background-color:${wi};color:${Ie};gap:${Q}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${re}}}.content{display:flex;align-items:center;gap:${Q}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${Oo};height:${pt};transition:transform ${Mo} ${sn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Bo};color:${It}}.positioning-region:active{background-color:${Xt};color:${At}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${M}}.items{display:none;padding-inline-start:var(--_subitem-padding-inline-start)}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${Si};color:${yo}}:host([selected]) .content,:host([selected]) .chevron{color:${Vs}}:host([size='small']) .positioning-region{height:${pt};padding-inline-start:${Y}}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${oa}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${ra}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${ia};color:${yo}}:host([appearance='transparent']) .positioning-region{background-color:${ce}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Co}}:host([appearance='transparent']) .positioning-region:active{background-color:${Po}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${Bi};color:${yo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,N0=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Jh=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${N0}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${T("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Qh={name:B0,registry:h.registry,styles:Zh,template:Jh};var T0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?z0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&T0(e,t,i),i};class co extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Oe(this.parentElement)&&(this.slot||(this.slot="item")),rt(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),w(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Oe(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&(w(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(e))))}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}rr([f],co.prototype,"itemSlot",2),rr([a({mode:"boolean"})],co.prototype,"expanded",2),rr([a({mode:"boolean"})],co.prototype,"selected",2),rr([a({mode:"boolean"})],co.prototype,"empty",2),rr([f],co.prototype,"childTreeItems",2);var _0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,eu=(o,e,t,r)=>{for(var i=r>1?void 0:r?E0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&_0(e,t,i),i};class Xr extends co{constructor(){super(...arguments),this.size=Kh.small,this.appearance=Uh.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}eu([a],Xr.prototype,"size",2),eu([a],Xr.prototype,"appearance",2),Xr.define(Qh);const F0="adoptedStyleSheets"in document,O0="CSSScopeRule"in window,Fn=new Map,On=new Map,ir=new Map,Ln=new Map,nr=new CSSStyleSheet;function tu(o,e=document){if(!(!e||!V0(e))){if(!F0||e instanceof HTMLElement&&!e.shadowRoot&&!O0){const t=e===document?document.documentElement:e;G0(o,t);return}[document,document.documentElement,document.body].includes(e)?R0(o):j0(o,e)}}const L0=/^[a-zA-Z_-][a-zA-Z0-9_-]*$/;function D0(o){return L0.test(o)?o:""}const M0=/(;|{|}|\/\*|\*\/|@import|url\s*\(|expression\s*\(|javascript:)/i;function H0(o){return M0.test(o)?"":o}function Dn(o){return Fn.has(o)||Fn.set(o,Object.keys(o).reduce((e,t)=>{const r=D0(t),i=H0(o[t].toString());return r&&i?`${e}--${r}:${i};`:e},"")),Fn.get(o)}function V0(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function R0(o){if(o===null){document.adoptedStyleSheets.includes(nr)&&nr.replaceSync("");return}nr.replaceSync(`
29
+ `,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Gr([a],lo.prototype,"id",2),Gr([a({converter:oe})],lo.prototype,"delay",2),Gr([a],lo.prototype,"positioning",2),Gr([a],lo.prototype,"anchor",2),lo.define(qh);const S0=`${h.prefix}-tree`,Wh=p`${x("block")} :host{outline:none}`,Gh=b`<template focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${o=>o.itemToggleHandler()}><slot ${T("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Xh={name:S0,registry:h.registry,styles:Wh,template:Gh},Uh={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Kh={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const B0=`${h.prefix}-tree-item`;var C0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,En=(o,e,t,r)=>{for(var i=r>1?void 0:r?P0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&C0(e,t,i),i};class rr extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}En([f],rr.prototype,"currentSelected",2),En([f],rr.prototype,"defaultSlot",2),En([f],rr.prototype,"childTreeItems",2);var I0=Object.defineProperty,A0=Object.getOwnPropertyDescriptor,Yh=(o,e,t,r)=>{for(var i=r>1?void 0:r?A0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&I0(e,t,i),i};class Xr extends rr{constructor(){super(...arguments),this.size=Kh.small,this.appearance=Uh.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Vr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Hr(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Yh([a],Xr.prototype,"size",2),Yh([a],Xr.prototype,"appearance",2),Xr.define(Xh);const Zh=p`${x("block")} :host{--_subitem-padding-inline-start:${Oo};outline:none;font-size:${_};line-height:${D}}:host([size='small']){--_subitem-padding-inline-start:${Y}}:host(:focus-visible) .positioning-region{box-shadow:${Pr} ${Pr} ${Pr} ${Lo} ${re} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${El};padding-inline-end:${ie};border-radius:${B};background-color:${Si};color:${Ie};gap:${Q}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${re}}}.content{display:flex;align-items:center;gap:${Q}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${Oo};height:${pt};transition:transform ${Mo} ${an};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Bo};color:${It}}.positioning-region:active{background-color:${Xt};color:${At}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${M}}.items{display:none;padding-inline-start:var(--_subitem-padding-inline-start)}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${Bi};color:${yo}}:host([selected]) .content,:host([selected]) .chevron{color:${Vs}}:host([size='small']) .positioning-region{height:${pt};padding-inline-start:${Y}}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${oa}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${ra}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${ia};color:${yo}}:host([appearance='transparent']) .positioning-region{background-color:${ce}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Co}}:host([appearance='transparent']) .positioning-region:active{background-color:${Po}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${Ci};color:${yo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,N0=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Jh=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${N0}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${T("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Qh={name:B0,registry:h.registry,styles:Zh,template:Jh};var T0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var i=r>1?void 0:r?z0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&T0(e,t,i),i};class co extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Oe(this.parentElement)&&(this.slot||(this.slot="item")),rt(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),w(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Oe(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&(w(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(e))))}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}ir([f],co.prototype,"itemSlot",2),ir([a({mode:"boolean"})],co.prototype,"expanded",2),ir([a({mode:"boolean"})],co.prototype,"selected",2),ir([a({mode:"boolean"})],co.prototype,"empty",2),ir([f],co.prototype,"childTreeItems",2);var _0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,eu=(o,e,t,r)=>{for(var i=r>1?void 0:r?E0(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&_0(e,t,i),i};class Ur extends co{constructor(){super(...arguments),this.size=Kh.small,this.appearance=Uh.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}eu([a],Ur.prototype,"size",2),eu([a],Ur.prototype,"appearance",2),Ur.define(Qh);const F0="adoptedStyleSheets"in document,O0="CSSScopeRule"in window,Fn=new Map,On=new Map,nr=new Map,Ln=new Map,sr=new CSSStyleSheet;function tu(o,e=document){if(!(!e||!V0(e))){if(!F0||e instanceof HTMLElement&&!e.shadowRoot&&!O0){const t=e===document?document.documentElement:e;G0(o,t);return}[document,document.documentElement,document.body].includes(e)?R0(o):j0(o,e)}}const L0=/^[a-zA-Z_-][a-zA-Z0-9_-]*$/;function D0(o){return L0.test(o)?o:""}const M0=/(;|{|}|\/\*|\*\/|@import|url\s*\(|expression\s*\(|javascript:)/i;function H0(o){return M0.test(o)?"":o}function Dn(o){return Fn.has(o)||Fn.set(o,Object.keys(o).reduce((e,t)=>{const r=D0(t),i=H0(o[t].toString());return r&&i?`${e}--${r}:${i};`:e},"")),Fn.get(o)}function V0(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function R0(o){if(o===null){document.adoptedStyleSheets.includes(sr)&&sr.replaceSync("");return}sr.replaceSync(`
30
30
  html {
31
31
  ${Dn(o)}
32
32
  }
33
- `),document.adoptedStyleSheets.includes(nr)||document.adoptedStyleSheets.push(nr)}function j0(o,e){if(o===null){e.shadowRoot&&ir.has(e)?ir.get(e).replaceSync(""):(delete e.dataset.fluentTheme,ou(e));return}e.shadowRoot?q0(e).replaceSync(`
33
+ `),document.adoptedStyleSheets.includes(sr)||document.adoptedStyleSheets.push(sr)}function j0(o,e){if(o===null){e.shadowRoot&&nr.has(e)?nr.get(e).replaceSync(""):(delete e.dataset.fluentTheme,ou(e));return}e.shadowRoot?q0(e).replaceSync(`
34
34
  :host {
35
35
  ${Dn(o)}
36
36
  }
37
- `):(e.dataset.fluentTheme=W0(o),ou(e))}function q0(o){if(!ir.has(o)){const e=new CSSStyleSheet;ir.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return ir.get(o)}function W0(o){if(!On.has(o)){const e=Ze("fluent-theme-"),t=new CSSStyleSheet;On.set(o,e),t.replaceSync(`
37
+ `):(e.dataset.fluentTheme=W0(o),ou(e))}function q0(o){if(!nr.has(o)){const e=new CSSStyleSheet;nr.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return nr.get(o)}function W0(o){if(!On.has(o)){const e=Ze("fluent-theme-"),t=new CSSStyleSheet;On.set(o,e),t.replaceSync(`
38
38
  @scope ([data-fluent-theme="${e}"]) {
39
39
  :scope {
40
40
  ${Dn(o)}
41
41
  }
42
42
  }
43
- `),document.adoptedStyleSheets.push(t)}return On.get(o)}function G0(o,e){let t;if(o===null){if(!Ln.has(e))return;t=Ln.get(e)}else Ln.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:X0}=navigator,U0=/\bAppleWebKit\/[\d+\.]+\b/.test(X0);function ou(o){if(!U0)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),N.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:tu};export{_r as Accordion,ql as AccordionDefinition,zr as AccordionExpandMode,an as AccordionItem,Vl as AccordionItemDefinition,nu as AccordionItemMarkerPosition,iu as AccordionItemSize,Ml as AccordionItemStyles,Hl as AccordionItemTemplate,Rl as AccordionStyles,jl as AccordionTemplate,ln as AnchorButton,Em as AnchorButtonAppearance,Yl as AnchorButtonDefinition,Fm as AnchorButtonShape,Om as AnchorButtonSize,Kl as AnchorButtonTemplate,Xl as AnchorTarget,tc as Avatar,jm as AvatarActive,Wm as AvatarAppearance,dn as AvatarColor,Ql as AvatarDefinition,cn as AvatarNamedColor,qm as AvatarShape,Gm as AvatarSize,Zl as AvatarStyles,Jl as AvatarTemplate,un as Badge,lv as BadgeAppearance,cv as BadgeColor,lc as BadgeDefinition,dv as BadgeShape,hv as BadgeSize,sc as BadgeStyles,ac as BadgeTemplate,Jt as BaseAccordionItem,Re as BaseAnchor,Et as BaseAvatar,pe as BaseButton,_e as BaseCheckbox,Lt as BaseCounterBadge,Or as BaseDivider,Qc as BaseDropdown,io as BaseField,Ad as BaseMenuList,so as BaseProgressBar,je as BaseRadioGroup,Vt as BaseRatingDisplay,gh as BaseSpinner,Rt as BaseTablist,Z as BaseTextArea,F as BaseTextInput,or as BaseTree,eo as Button,qo as ButtonAppearance,dc as ButtonDefinition,zm as ButtonFormTarget,Wo as ButtonShape,Go as ButtonSize,Qt as ButtonStyles,cc as ButtonTemplate,Xo as ButtonType,bn as Checkbox,mc as CheckboxDefinition,vv as CheckboxShape,$v as CheckboxSize,fc as CheckboxStyles,bc as CheckboxTemplate,kc as CompoundButton,Kv as CompoundButtonAppearance,yc as CompoundButtonDefinition,Yv as CompoundButtonShape,Zv as CompoundButtonSize,vc as CompoundButtonStyles,$c as CompoundButtonTemplate,Dt as CounterBadge,e$ as CounterBadgeAppearance,t$ as CounterBadgeColor,Bc as CounterBadgeDefinition,o$ as CounterBadgeShape,r$ as CounterBadgeSize,wc as CounterBadgeStyles,xc as CounterBadgeTagName,Sc as CounterBadgeTemplate,Ee as Dialog,zc as DialogBody,Tc as DialogBodyDefinition,Ac as DialogBodyStyles,Nc as DialogBodyTemplate,Ic as DialogDefinition,Cc as DialogStyles,Pc as DialogTemplate,$t as DialogType,it as Direction,Lc as Divider,p$ as DividerAlignContent,g$ as DividerAppearance,Fc as DividerDefinition,vn as DividerOrientation,oo as DividerRole,_c as DividerStyles,Ec as DividerTemplate,Fe as Drawer,Gc as DrawerBody,Wc as DrawerBodyDefinition,jc as DrawerBodyStyles,qc as DrawerBodyTemplate,Hc as DrawerDefinition,$$ as DrawerPosition,y$ as DrawerSize,Dc as DrawerStyles,Mc as DrawerTemplate,ro as DrawerType,ed as Dropdown,V$ as DropdownAppearance,Zc as DropdownDefinition,ne as DropdownOption,Hd as DropdownOptionDefinition,Dd as DropdownOptionStyles,Md as DropdownOptionTemplate,R$ as DropdownSize,Xc as DropdownStyles,Yc as DropdownTemplate,Lr as DropdownType,id as Field,rd as FieldDefinition,Z$ as FieldLabelPosition,td as FieldStyles,od as FieldTemplate,h as FluentDesignSystem,ld as Image,ad as ImageDefinition,ty as ImageFit,oy as ImageShape,nd as ImageStyles,sd as ImageTemplate,wn as Label,hd as LabelDefinition,iy as LabelSize,cd as LabelStyles,dd as LabelTemplate,ny as LabelWeight,fd as Link,hy as LinkAppearance,gd as LinkDefinition,ud as LinkStyles,uy as LinkTarget,pd as LinkTemplate,Mt as Listbox,$d as ListboxDefinition,bd as ListboxStyles,vd as ListboxTemplate,nt as Menu,xd as MenuButton,my as MenuButtonAppearance,kd as MenuButtonDefinition,vy as MenuButtonShape,$y as MenuButtonSize,Qt as MenuButtonStyles,yd as MenuButtonTemplate,_d as MenuDefinition,Je as MenuItem,Bd as MenuItemDefinition,te as MenuItemRole,wd as MenuItemStyles,Sd as MenuItemTemplate,Nd as MenuList,Id as MenuListDefinition,Cd as MenuListStyles,Pd as MenuListTemplate,Td as MenuStyles,zd as MenuTemplate,Ld as MessageBar,Od as MessageBarDefinition,Gy as MessageBarIntent,qy as MessageBarLayout,Wy as MessageBarShape,Ed as MessageBarStyles,Fd as MessageBarTemplate,xe as Orientation,qd as ProgressBar,jd as ProgressBarDefinition,ek as ProgressBarShape,Vd as ProgressBarStyles,Rd as ProgressBarTemplate,Qy as ProgressBarThickness,tk as ProgressBarValidationState,Jd as Radio,Zd as RadioDefinition,Ud as RadioGroup,Xd as RadioGroupDefinition,In as RadioGroupOrientation,Wd as RadioGroupStyles,Gd as RadioGroupTemplate,Kd as RadioStyles,Yd as RadioTemplate,rh as RatingDisplay,gk as RatingDisplayColor,oh as RatingDisplayDefinition,fk as RatingDisplaySize,th as RatingDisplayStyles,eh as RatingDisplayTemplate,U as Slider,lh as SliderDefinition,nh as SliderMode,ih as SliderOrientation,wk as SliderSize,sh as SliderStyles,ah as SliderTemplate,fh as Spinner,Ik as SpinnerAppearance,ph as SpinnerDefinition,Ak as SpinnerSize,hh as SpinnerStyles,uh as SpinnerTemplate,tt as StartEnd,$h as Switch,vh as SwitchDefinition,Tk as SwitchLabelPosition,bh as SwitchStyles,mh as SwitchTemplate,jr as Tab,xh as TabDefinition,yh as TabStyles,kh as TabTemplate,Ch as Tablist,Mk as TablistAppearance,Bh as TablistDefinition,er as TablistOrientation,Hk as TablistSize,wh as TablistStyles,Sh as TablistTemplate,Lh as Text,u0 as TextAlign,zn as TextArea,Tn as TextAreaAppearance,Wk as TextAreaAppearancesForDisplayShadow,Gk as TextAreaAutocomplete,Ah as TextAreaDefinition,Xk as TextAreaResize,qk as TextAreaSize,Ph as TextAreaStyles,Ih as TextAreaTemplate,Oh as TextDefinition,d0 as TextFont,_n as TextInput,r0 as TextInputAppearance,o0 as TextInputControlSize,_h as TextInputDefinition,Th as TextInputStyles,zh as TextInputTemplate,Nh as TextInputType,c0 as TextSize,Eh as TextStyles,Fh as TextTemplate,h0 as TextWeight,qr as ToggleButton,g0 as ToggleButtonAppearance,Hh as ToggleButtonDefinition,f0 as ToggleButtonShape,b0 as ToggleButtonSize,Dh as ToggleButtonStyles,Mh as ToggleButtonTemplate,lo as Tooltip,qh as TooltipDefinition,y0 as TooltipPositioningOption,Rh as TooltipStyles,jh as TooltipTemplate,Gr as Tree,Xh as TreeDefinition,Xr as TreeItem,Qh as TreeItemDefinition,Zh as TreeItemStyles,Jh as TreeItemTemplate,Wh as TreeStyles,Gh as TreeTemplate,Ce as ValidationFlags,em as borderRadius2XLarge,tm as borderRadius3XLarge,om as borderRadius4XLarge,rm as borderRadius5XLarge,im as borderRadius6XLarge,de as borderRadiusCircular,Wi as borderRadiusLarge,B as borderRadiusMedium,No as borderRadiusNone,Ae as borderRadiusSmall,Gi as borderRadiusXLarge,$r as colorBackgroundOverlay,Ci as colorBrandBackground,Ni as colorBrandBackground2,Sg as colorBrandBackground2Hover,Bg as colorBrandBackground2Pressed,Cg as colorBrandBackground3Static,Pg as colorBrandBackground4Static,Pi as colorBrandBackgroundHover,Ig as colorBrandBackgroundInverted,Ag as colorBrandBackgroundInvertedHover,Ng as colorBrandBackgroundInvertedPressed,Tg as colorBrandBackgroundInvertedSelected,Ii as colorBrandBackgroundPressed,na as colorBrandBackgroundSelected,Ai as colorBrandBackgroundStatic,wo as colorBrandForeground1,Js as colorBrandForeground2,Ep as colorBrandForeground2Hover,Fp as colorBrandForeground2Pressed,Op as colorBrandForegroundInverted,Lp as colorBrandForegroundInvertedHover,Dp as colorBrandForegroundInvertedPressed,Rs as colorBrandForegroundLink,js as colorBrandForegroundLinkHover,qs as colorBrandForegroundLinkPressed,Sp as colorBrandForegroundLinkSelected,Mp as colorBrandForegroundOnLight,Hp as colorBrandForegroundOnLightHover,Vp as colorBrandForegroundOnLightPressed,Rp as colorBrandForegroundOnLightSelected,af as colorBrandShadowAmbient,lf as colorBrandShadowKey,Ti as colorBrandStroke1,zi as colorBrandStroke2,Yg as colorBrandStroke2Contrast,Ug as colorBrandStroke2Hover,Kg as colorBrandStroke2Pressed,ct as colorCompoundBrandBackground,Nt as colorCompoundBrandBackgroundHover,Tt as colorCompoundBrandBackgroundPressed,Cp as colorCompoundBrandForeground1,Us as colorCompoundBrandForeground1Hover,Ks as colorCompoundBrandForeground1Pressed,He as colorCompoundBrandStroke,la as colorCompoundBrandStrokeHover,_i as colorCompoundBrandStrokePressed,C as colorNeutralBackground1,So as colorNeutralBackground1Hover,vr as colorNeutralBackground1Pressed,ki as colorNeutralBackground1Selected,jp as colorNeutralBackground2,qp as colorNeutralBackground2Hover,Wp as colorNeutralBackground2Pressed,Gp as colorNeutralBackground2Selected,Wt as colorNeutralBackground3,Xp as colorNeutralBackground3Hover,Up as colorNeutralBackground3Pressed,Kp as colorNeutralBackground3Selected,ea as colorNeutralBackground4,Yp as colorNeutralBackground4Hover,Zp as colorNeutralBackground4Pressed,Jp as colorNeutralBackground4Selected,ta as colorNeutralBackground5,Qp as colorNeutralBackground5Hover,eg as colorNeutralBackground5Pressed,tg as colorNeutralBackground5Selected,Gt as colorNeutralBackground6,og as colorNeutralBackground7,rg as colorNeutralBackground7Hover,ig as colorNeutralBackground7Pressed,ng as colorNeutralBackground7Selected,sg as colorNeutralBackground8,hg as colorNeutralBackgroundAlpha,ug as colorNeutralBackgroundAlpha2,et as colorNeutralBackgroundDisabled,mg as colorNeutralBackgroundDisabled2,xi as colorNeutralBackgroundInverted,vg as colorNeutralBackgroundInvertedDisabled,ag as colorNeutralBackgroundInvertedHover,lg as colorNeutralBackgroundInvertedPressed,cg as colorNeutralBackgroundInvertedSelected,dg as colorNeutralBackgroundStatic,zg as colorNeutralCardBackground,Og as colorNeutralCardBackgroundDisabled,_g as colorNeutralCardBackgroundHover,Eg as colorNeutralCardBackgroundPressed,Fg as colorNeutralCardBackgroundSelected,A as colorNeutralForeground1,$i as colorNeutralForeground1Hover,Ls as colorNeutralForeground1Pressed,bp as colorNeutralForeground1Selected,Qs as colorNeutralForeground1Static,Ie as colorNeutralForeground2,ko as colorNeutralForeground2BrandHover,xo as colorNeutralForeground2BrandPressed,Ds as colorNeutralForeground2BrandSelected,It as colorNeutralForeground2Hover,Ws as colorNeutralForeground2Link,Gs as colorNeutralForeground2LinkHover,Xs as colorNeutralForeground2LinkPressed,Bp as colorNeutralForeground2LinkSelected,At as colorNeutralForeground2Pressed,yo as colorNeutralForeground2Selected,X as colorNeutralForeground3,mp as colorNeutralForeground3BrandHover,vp as colorNeutralForeground3BrandPressed,$p as colorNeutralForeground3BrandSelected,Ms as colorNeutralForeground3Hover,Hs as colorNeutralForeground3Pressed,Vs as colorNeutralForeground3Selected,mr as colorNeutralForeground4,yp as colorNeutralForeground5,kp as colorNeutralForeground5Hover,xp as colorNeutralForeground5Pressed,wp as colorNeutralForeground5Selected,z as colorNeutralForegroundDisabled,lt as colorNeutralForegroundInverted,Ip as colorNeutralForegroundInverted2,_p as colorNeutralForegroundInvertedDisabled,Ys as colorNeutralForegroundInvertedHover,Ap as colorNeutralForegroundInvertedLink,Np as colorNeutralForegroundInvertedLinkHover,Tp as colorNeutralForegroundInvertedLinkPressed,zp as colorNeutralForegroundInvertedLinkSelected,Zs as colorNeutralForegroundInvertedPressed,Pp as colorNeutralForegroundInvertedSelected,Ue as colorNeutralForegroundOnBrand,yi as colorNeutralForegroundStaticInverted,ca as colorNeutralShadowAmbient,nf as colorNeutralShadowAmbientDarker,of as colorNeutralShadowAmbientLighter,da as colorNeutralShadowKey,sf as colorNeutralShadowKeyDarker,rf as colorNeutralShadowKeyLighter,$g as colorNeutralStencil1,kg as colorNeutralStencil1Alpha,yg as colorNeutralStencil2,xg as colorNeutralStencil2Alpha,Me as colorNeutralStroke1,ut as colorNeutralStroke1Hover,Ut as colorNeutralStroke1Pressed,Dg as colorNeutralStroke1Selected,Kt as colorNeutralStroke2,sa as colorNeutralStroke3,Mg as colorNeutralStroke4,Hg as colorNeutralStroke4Hover,Vg as colorNeutralStroke4Pressed,Rg as colorNeutralStroke4Selected,De as colorNeutralStrokeAccessible,dt as colorNeutralStrokeAccessibleHover,ht as colorNeutralStrokeAccessiblePressed,Lg as colorNeutralStrokeAccessibleSelected,ef as colorNeutralStrokeAlpha,tf as colorNeutralStrokeAlpha2,me as colorNeutralStrokeDisabled,Zg as colorNeutralStrokeDisabled2,Jg as colorNeutralStrokeInvertedDisabled,qg as colorNeutralStrokeOnBrand,aa as colorNeutralStrokeOnBrand2,Wg as colorNeutralStrokeOnBrand2Hover,Gg as colorNeutralStrokeOnBrand2Pressed,Xg as colorNeutralStrokeOnBrand2Selected,jg as colorNeutralStrokeSubtle,Sa as colorPaletteAnchorBackground2,Uf as colorPaletteAnchorBorderActive,Ba as colorPaletteAnchorForeground2,Ca as colorPaletteBeigeBackground2,Kf as colorPaletteBeigeBorderActive,Pa as colorPaletteBeigeForeground2,Sf as colorPaletteBerryBackground1,Bf as colorPaletteBerryBackground2,Cf as colorPaletteBerryBackground3,If as colorPaletteBerryBorder1,Af as colorPaletteBerryBorder2,Pf as colorPaletteBerryBorderActive,Nf as colorPaletteBerryForeground1,Tf as colorPaletteBerryForeground2,zf as colorPaletteBerryForeground3,Ia as colorPaletteBlueBackground2,Yf as colorPaletteBlueBorderActive,Aa as colorPaletteBlueForeground2,Na as colorPaletteBrassBackground2,Zf as colorPaletteBrassBorderActive,Ta as colorPaletteBrassForeground2,za as colorPaletteBrownBackground2,Jf as colorPaletteBrownBorderActive,_a as colorPaletteBrownForeground2,Ea as colorPaletteCornflowerBackground2,Qf as colorPaletteCornflowerBorderActive,Fa as colorPaletteCornflowerForeground2,Oa as colorPaletteCranberryBackground2,eb as colorPaletteCranberryBorderActive,La as colorPaletteCranberryForeground2,Da as colorPaletteDarkGreenBackground2,tb as colorPaletteDarkGreenBorderActive,Ma as colorPaletteDarkGreenForeground2,Hi as colorPaletteDarkOrangeBackground1,gf as colorPaletteDarkOrangeBackground2,Vi as colorPaletteDarkOrangeBackground3,Ri as colorPaletteDarkOrangeBorder1,bf as colorPaletteDarkOrangeBorder2,ff as colorPaletteDarkOrangeBorderActive,va as colorPaletteDarkOrangeForeground1,mf as colorPaletteDarkOrangeForeground2,ji as colorPaletteDarkOrangeForeground3,Ha as colorPaletteDarkRedBackground2,ob as colorPaletteDarkRedBorderActive,Va as colorPaletteDarkRedForeground2,Ra as colorPaletteForestBackground2,rb as colorPaletteForestBorderActive,ja as colorPaletteForestForeground2,qa as colorPaletteGoldBackground2,ib as colorPaletteGoldBorderActive,Wa as colorPaletteGoldForeground2,Ga as colorPaletteGrapeBackground2,nb as colorPaletteGrapeBorderActive,Xa as colorPaletteGrapeForeground2,Di as colorPaletteGreenBackground1,hf as colorPaletteGreenBackground2,Mi as colorPaletteGreenBackground3,pa as colorPaletteGreenBorder1,ga as colorPaletteGreenBorder2,uf as colorPaletteGreenBorderActive,fa as colorPaletteGreenForeground1,ba as colorPaletteGreenForeground2,ma as colorPaletteGreenForeground3,pf as colorPaletteGreenForegroundInverted,Ua as colorPaletteLavenderBackground2,sb as colorPaletteLavenderBorderActive,Ka as colorPaletteLavenderForeground2,Mf as colorPaletteLightGreenBackground1,Hf as colorPaletteLightGreenBackground2,Vf as colorPaletteLightGreenBackground3,jf as colorPaletteLightGreenBorder1,qf as colorPaletteLightGreenBorder2,Rf as colorPaletteLightGreenBorderActive,Wf as colorPaletteLightGreenForeground1,Gf as colorPaletteLightGreenForeground2,Xf as colorPaletteLightGreenForeground3,Ya as colorPaletteLightTealBackground2,ab as colorPaletteLightTealBorderActive,Za as colorPaletteLightTealForeground2,Ja as colorPaletteLilacBackground2,lb as colorPaletteLilacBorderActive,Qa as colorPaletteLilacForeground2,el as colorPaletteMagentaBackground2,cb as colorPaletteMagentaBorderActive,tl as colorPaletteMagentaForeground2,_f as colorPaletteMarigoldBackground1,qi as colorPaletteMarigoldBackground2,Ef as colorPaletteMarigoldBackground3,Ff as colorPaletteMarigoldBorder1,Of as colorPaletteMarigoldBorder2,xa as colorPaletteMarigoldBorderActive,Lf as colorPaletteMarigoldForeground1,wa as colorPaletteMarigoldForeground2,Df as colorPaletteMarigoldForeground3,ol as colorPaletteMinkBackground2,db as colorPaletteMinkBorderActive,rl as colorPaletteMinkForeground2,il as colorPaletteNavyBackground2,hb as colorPaletteNavyBorderActive,nl as colorPaletteNavyForeground2,sl as colorPalettePeachBackground2,ub as colorPalettePeachBorderActive,al as colorPalettePeachForeground2,ll as colorPalettePinkBackground2,pb as colorPalettePinkBorderActive,cl as colorPalettePinkForeground2,dl as colorPalettePlatinumBackground2,gb as colorPalettePlatinumBorderActive,hl as colorPalettePlatinumForeground2,ul as colorPalettePlumBackground2,fb as colorPalettePlumBorderActive,pl as colorPalettePlumForeground2,gl as colorPalettePumpkinBackground2,bb as colorPalettePumpkinBorderActive,fl as colorPalettePumpkinForeground2,bl as colorPalettePurpleBackground2,mb as colorPalettePurpleBorderActive,ml as colorPalettePurpleForeground2,Ei as colorPaletteRedBackground1,ha as colorPaletteRedBackground2,Fi as colorPaletteRedBackground3,Oi as colorPaletteRedBorder1,yr as colorPaletteRedBorder2,cf as colorPaletteRedBorderActive,kr as colorPaletteRedForeground1,ua as colorPaletteRedForeground2,Li as colorPaletteRedForeground3,df as colorPaletteRedForegroundInverted,vl as colorPaletteRoyalBlueBackground2,vb as colorPaletteRoyalBlueBorderActive,$l as colorPaletteRoyalBlueForeground2,yl as colorPaletteSeafoamBackground2,$b as colorPaletteSeafoamBorderActive,kl as colorPaletteSeafoamForeground2,xl as colorPaletteSteelBackground2,yb as colorPaletteSteelBorderActive,wl as colorPaletteSteelForeground2,Sl as colorPaletteTealBackground2,kb as colorPaletteTealBorderActive,Bl as colorPaletteTealForeground2,$a as colorPaletteYellowBackground1,vf as colorPaletteYellowBackground2,ya as colorPaletteYellowBackground3,ka as colorPaletteYellowBorder1,yf as colorPaletteYellowBorder2,$f as colorPaletteYellowBorderActive,kf as colorPaletteYellowForeground1,xr as colorPaletteYellowForeground2,xf as colorPaletteYellowForeground3,wf as colorPaletteYellowForegroundInverted,wg as colorScrollbarOverlay,Rb as colorStatusDangerBackground1,jb as colorStatusDangerBackground2,qb as colorStatusDangerBackground3,Wb as colorStatusDangerBackground3Hover,Gb as colorStatusDangerBackground3Pressed,Jb as colorStatusDangerBorder1,Qb as colorStatusDangerBorder2,Zb as colorStatusDangerBorderActive,Xb as colorStatusDangerForeground1,Ub as colorStatusDangerForeground2,Kb as colorStatusDangerForeground3,Yb as colorStatusDangerForegroundInverted,xb as colorStatusSuccessBackground1,wb as colorStatusSuccessBackground2,Sb as colorStatusSuccessBackground3,Nb as colorStatusSuccessBorder1,Tb as colorStatusSuccessBorder2,Ab as colorStatusSuccessBorderActive,Bb as colorStatusSuccessForeground1,Cb as colorStatusSuccessForeground2,Pb as colorStatusSuccessForeground3,Ib as colorStatusSuccessForegroundInverted,zb as colorStatusWarningBackground1,_b as colorStatusWarningBackground2,Eb as colorStatusWarningBackground3,Hb as colorStatusWarningBorder1,Vb as colorStatusWarningBorder2,Mb as colorStatusWarningBorderActive,Fb as colorStatusWarningForeground1,Ob as colorStatusWarningForeground2,Lb as colorStatusWarningForeground3,Db as colorStatusWarningForegroundInverted,Ao as colorStrokeFocus1,re as colorStrokeFocus2,wi as colorSubtleBackground,Bo as colorSubtleBackgroundHover,pg as colorSubtleBackgroundInverted,gg as colorSubtleBackgroundInvertedHover,fg as colorSubtleBackgroundInvertedPressed,bg as colorSubtleBackgroundInvertedSelected,oa as colorSubtleBackgroundLightAlphaHover,ra as colorSubtleBackgroundLightAlphaPressed,ia as colorSubtleBackgroundLightAlphaSelected,Xt as colorSubtleBackgroundPressed,Si as colorSubtleBackgroundSelected,ce as colorTransparentBackground,Co as colorTransparentBackgroundHover,Po as colorTransparentBackgroundPressed,Bi as colorTransparentBackgroundSelected,j as colorTransparentStroke,Qg as colorTransparentStrokeDisabled,Io as colorTransparentStrokeInteractive,Ol as curveAccelerateMax,gt as curveAccelerateMid,Ll as curveAccelerateMin,nn as curveDecelerateMax,ft as curveDecelerateMid,Dl as curveDecelerateMin,Ro as curveEasyEase,sn as curveEasyEaseMax,Nr as curveLinear,x as display,Kc as dropdownButtonTemplate,Uc as dropdownInputTemplate,gm as durationFast,Mo as durationFaster,Ar as durationGentle,Ho as durationNormal,Fl as durationSlow,rn as durationSlower,Ir as durationUltraFast,Vo as durationUltraSlow,ot as endSlotTemplate,$ as fontFamilyBase,Cl as fontFamilyMonospace,Pl as fontFamilyNumeric,Yt as fontSizeBase100,L as fontSizeBase200,_ as fontSizeBase300,he as fontSizeBase400,zt as fontSizeBase500,To as fontSizeBase600,Yi as fontSizeHero1000,Xi as fontSizeHero700,Ui as fontSizeHero800,Ki as fontSizeHero900,zo as fontWeightBold,Il as fontWeightMedium,E as fontWeightRegular,V as fontWeightSemibold,xn as getDirection,mn as isDialog,H$ as isDropdown,yt as isDropdownOption,kn as isListbox,Nn as isTab,_o as lineHeightBase100,q as lineHeightBase200,D as lineHeightBase300,ve as lineHeightBase400,Eo as lineHeightBase500,Zi as lineHeightBase600,tn as lineHeightHero1000,Ji as lineHeightHero700,Qi as lineHeightHero800,en as lineHeightHero900,md as listboxTemplate,xy as roleForMenuItem,tu as setTheme,Sr as shadow16,lm as shadow16Brand,wr as shadow2,Nl as shadow28,cm as shadow28Brand,nm as shadow2Brand,Fo as shadow4,sm as shadow4Brand,on as shadow64,dm as shadow64Brand,Al as shadow8,am as shadow8Brand,Tl as spacingHorizontalL,Y as spacingHorizontalM,Te as spacingHorizontalMNudge,hm as spacingHorizontalNone,Ne as spacingHorizontalS,$e as spacingHorizontalSNudge,zl as spacingHorizontalXL,Q as spacingHorizontalXS,Oo as spacingHorizontalXXL,M as spacingHorizontalXXS,um as spacingHorizontalXXXL,Pr as spacingVerticalL,_l as spacingVerticalM,Do as spacingVerticalMNudge,Cr as spacingVerticalNone,ie as spacingVerticalS,Zt as spacingVerticalSNudge,pm as spacingVerticalXL,_t as spacingVerticalXS,pt as spacingVerticalXXL,Lo as spacingVerticalXXS,El as spacingVerticalXXXL,Ve as startSlotTemplate,ue as strokeWidthThick,Be as strokeWidthThicker,Br as strokeWidthThickest,P as strokeWidthThin,C$ as typographyBody1StrongStyles,P$ as typographyBody1StrongerStyles,$n as typographyBody1Styles,Vc as typographyBody2Styles,I$ as typographyCaption1StrongStyles,A$ as typographyCaption1StrongerStyles,yn as typographyCaption1Styles,T$ as typographyCaption2StrongStyles,N$ as typographyCaption2Styles,D$ as typographyDisplayStyles,L$ as typographyLargeTitleStyles,Rc as typographySubtitle1Styles,_$ as typographySubtitle2StrongerStyles,z$ as typographySubtitle2Styles,E$ as typographyTitle1Styles,F$ as typographyTitle2Styles,O$ as typographyTitle3Styles,fm as zIndexBackground,bm as zIndexContent,xm as zIndexDebug,ym as zIndexFloating,$m as zIndexMessages,mm as zIndexOverlay,vm as zIndexPopup,km as zIndexPriority};
43
+ `),document.adoptedStyleSheets.push(t)}return On.get(o)}function G0(o,e){let t;if(o===null){if(!Ln.has(e))return;t=Ln.get(e)}else Ln.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:X0}=navigator,U0=/\bAppleWebKit\/[\d+\.]+\b/.test(X0);function ou(o){if(!U0)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),N.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:tu};export{Er as Accordion,ql as AccordionDefinition,_r as AccordionExpandMode,ln as AccordionItem,Vl as AccordionItemDefinition,nu as AccordionItemMarkerPosition,iu as AccordionItemSize,Ml as AccordionItemStyles,Hl as AccordionItemTemplate,Rl as AccordionStyles,jl as AccordionTemplate,cn as AnchorButton,Em as AnchorButtonAppearance,Yl as AnchorButtonDefinition,Fm as AnchorButtonShape,Om as AnchorButtonSize,Kl as AnchorButtonTemplate,Xl as AnchorTarget,tc as Avatar,jm as AvatarActive,Wm as AvatarAppearance,hn as AvatarColor,Ql as AvatarDefinition,dn as AvatarNamedColor,qm as AvatarShape,Gm as AvatarSize,Zl as AvatarStyles,Jl as AvatarTemplate,pn as Badge,lv as BadgeAppearance,cv as BadgeColor,lc as BadgeDefinition,dv as BadgeShape,hv as BadgeSize,sc as BadgeStyles,ac as BadgeTemplate,Jt as BaseAccordionItem,Re as BaseAnchor,Et as BaseAvatar,pe as BaseButton,_e as BaseCheckbox,Lt as BaseCounterBadge,Lr as BaseDivider,Qc as BaseDropdown,io as BaseField,Ad as BaseMenuList,so as BaseProgressBar,je as BaseRadioGroup,Vt as BaseRatingDisplay,gh as BaseSpinner,Rt as BaseTablist,Z as BaseTextArea,F as BaseTextInput,rr as BaseTree,eo as Button,qo as ButtonAppearance,dc as ButtonDefinition,zm as ButtonFormTarget,Wo as ButtonShape,Go as ButtonSize,Qt as ButtonStyles,cc as ButtonTemplate,Xo as ButtonType,mn as Checkbox,mc as CheckboxDefinition,vv as CheckboxShape,$v as CheckboxSize,fc as CheckboxStyles,bc as CheckboxTemplate,kc as CompoundButton,Kv as CompoundButtonAppearance,yc as CompoundButtonDefinition,Yv as CompoundButtonShape,Zv as CompoundButtonSize,vc as CompoundButtonStyles,$c as CompoundButtonTemplate,Dt as CounterBadge,e$ as CounterBadgeAppearance,t$ as CounterBadgeColor,Bc as CounterBadgeDefinition,o$ as CounterBadgeShape,r$ as CounterBadgeSize,wc as CounterBadgeStyles,xc as CounterBadgeTagName,Sc as CounterBadgeTemplate,Ee as Dialog,zc as DialogBody,Tc as DialogBodyDefinition,Ac as DialogBodyStyles,Nc as DialogBodyTemplate,Ic as DialogDefinition,Cc as DialogStyles,Pc as DialogTemplate,$t as DialogType,it as Direction,Lc as Divider,p$ as DividerAlignContent,g$ as DividerAppearance,Fc as DividerDefinition,$n as DividerOrientation,oo as DividerRole,_c as DividerStyles,Ec as DividerTemplate,Fe as Drawer,Gc as DrawerBody,Wc as DrawerBodyDefinition,jc as DrawerBodyStyles,qc as DrawerBodyTemplate,Hc as DrawerDefinition,$$ as DrawerPosition,y$ as DrawerSize,Dc as DrawerStyles,Mc as DrawerTemplate,ro as DrawerType,ed as Dropdown,V$ as DropdownAppearance,Zc as DropdownDefinition,ne as DropdownOption,Hd as DropdownOptionDefinition,Dd as DropdownOptionStyles,Md as DropdownOptionTemplate,R$ as DropdownSize,Xc as DropdownStyles,Yc as DropdownTemplate,Dr as DropdownType,id as Field,rd as FieldDefinition,Z$ as FieldLabelPosition,td as FieldStyles,od as FieldTemplate,h as FluentDesignSystem,ld as Image,ad as ImageDefinition,ty as ImageFit,oy as ImageShape,nd as ImageStyles,sd as ImageTemplate,Sn as Label,hd as LabelDefinition,iy as LabelSize,cd as LabelStyles,dd as LabelTemplate,ny as LabelWeight,fd as Link,hy as LinkAppearance,gd as LinkDefinition,ud as LinkStyles,uy as LinkTarget,pd as LinkTemplate,Mt as Listbox,$d as ListboxDefinition,bd as ListboxStyles,vd as ListboxTemplate,nt as Menu,xd as MenuButton,my as MenuButtonAppearance,kd as MenuButtonDefinition,vy as MenuButtonShape,$y as MenuButtonSize,Qt as MenuButtonStyles,yd as MenuButtonTemplate,_d as MenuDefinition,Je as MenuItem,Bd as MenuItemDefinition,te as MenuItemRole,wd as MenuItemStyles,Sd as MenuItemTemplate,Nd as MenuList,Id as MenuListDefinition,Cd as MenuListStyles,Pd as MenuListTemplate,Td as MenuStyles,zd as MenuTemplate,Ld as MessageBar,Od as MessageBarDefinition,Gy as MessageBarIntent,qy as MessageBarLayout,Wy as MessageBarShape,Ed as MessageBarStyles,Fd as MessageBarTemplate,xe as Orientation,qd as ProgressBar,jd as ProgressBarDefinition,ek as ProgressBarShape,Vd as ProgressBarStyles,Rd as ProgressBarTemplate,Qy as ProgressBarThickness,tk as ProgressBarValidationState,Jd as Radio,Zd as RadioDefinition,Ud as RadioGroup,Xd as RadioGroupDefinition,An as RadioGroupOrientation,Wd as RadioGroupStyles,Gd as RadioGroupTemplate,Kd as RadioStyles,Yd as RadioTemplate,rh as RatingDisplay,gk as RatingDisplayColor,oh as RatingDisplayDefinition,fk as RatingDisplaySize,th as RatingDisplayStyles,eh as RatingDisplayTemplate,U as Slider,lh as SliderDefinition,nh as SliderMode,ih as SliderOrientation,wk as SliderSize,sh as SliderStyles,ah as SliderTemplate,fh as Spinner,Ik as SpinnerAppearance,ph as SpinnerDefinition,Ak as SpinnerSize,hh as SpinnerStyles,uh as SpinnerTemplate,tt as StartEnd,$h as Switch,vh as SwitchDefinition,Tk as SwitchLabelPosition,bh as SwitchStyles,mh as SwitchTemplate,qr as Tab,xh as TabDefinition,yh as TabStyles,kh as TabTemplate,Ch as Tablist,Mk as TablistAppearance,Bh as TablistDefinition,tr as TablistOrientation,Hk as TablistSize,wh as TablistStyles,Sh as TablistTemplate,Lh as Text,u0 as TextAlign,zn as TextArea,Tn as TextAreaAppearance,Wk as TextAreaAppearancesForDisplayShadow,Gk as TextAreaAutocomplete,Ah as TextAreaDefinition,Xk as TextAreaResize,qk as TextAreaSize,Ph as TextAreaStyles,Ih as TextAreaTemplate,Oh as TextDefinition,d0 as TextFont,_n as TextInput,r0 as TextInputAppearance,o0 as TextInputControlSize,_h as TextInputDefinition,Th as TextInputStyles,zh as TextInputTemplate,Nh as TextInputType,c0 as TextSize,Eh as TextStyles,Fh as TextTemplate,h0 as TextWeight,Wr as ToggleButton,g0 as ToggleButtonAppearance,Hh as ToggleButtonDefinition,f0 as ToggleButtonShape,b0 as ToggleButtonSize,Dh as ToggleButtonStyles,Mh as ToggleButtonTemplate,lo as Tooltip,qh as TooltipDefinition,y0 as TooltipPositioningOption,Rh as TooltipStyles,jh as TooltipTemplate,Xr as Tree,Xh as TreeDefinition,Ur as TreeItem,Qh as TreeItemDefinition,Zh as TreeItemStyles,Jh as TreeItemTemplate,Wh as TreeStyles,Gh as TreeTemplate,Ce as ValidationFlags,em as borderRadius2XLarge,tm as borderRadius3XLarge,om as borderRadius4XLarge,rm as borderRadius5XLarge,im as borderRadius6XLarge,de as borderRadiusCircular,Gi as borderRadiusLarge,B as borderRadiusMedium,No as borderRadiusNone,Ae as borderRadiusSmall,Xi as borderRadiusXLarge,yr as colorBackgroundOverlay,Pi as colorBrandBackground,Ti as colorBrandBackground2,Sg as colorBrandBackground2Hover,Bg as colorBrandBackground2Pressed,Cg as colorBrandBackground3Static,Pg as colorBrandBackground4Static,Ii as colorBrandBackgroundHover,Ig as colorBrandBackgroundInverted,Ag as colorBrandBackgroundInvertedHover,Ng as colorBrandBackgroundInvertedPressed,Tg as colorBrandBackgroundInvertedSelected,Ai as colorBrandBackgroundPressed,na as colorBrandBackgroundSelected,Ni as colorBrandBackgroundStatic,wo as colorBrandForeground1,Js as colorBrandForeground2,Ep as colorBrandForeground2Hover,Fp as colorBrandForeground2Pressed,Op as colorBrandForegroundInverted,Lp as colorBrandForegroundInvertedHover,Dp as colorBrandForegroundInvertedPressed,Rs as colorBrandForegroundLink,js as colorBrandForegroundLinkHover,qs as colorBrandForegroundLinkPressed,Sp as colorBrandForegroundLinkSelected,Mp as colorBrandForegroundOnLight,Hp as colorBrandForegroundOnLightHover,Vp as colorBrandForegroundOnLightPressed,Rp as colorBrandForegroundOnLightSelected,af as colorBrandShadowAmbient,lf as colorBrandShadowKey,zi as colorBrandStroke1,_i as colorBrandStroke2,Yg as colorBrandStroke2Contrast,Ug as colorBrandStroke2Hover,Kg as colorBrandStroke2Pressed,ct as colorCompoundBrandBackground,Nt as colorCompoundBrandBackgroundHover,Tt as colorCompoundBrandBackgroundPressed,Cp as colorCompoundBrandForeground1,Us as colorCompoundBrandForeground1Hover,Ks as colorCompoundBrandForeground1Pressed,He as colorCompoundBrandStroke,la as colorCompoundBrandStrokeHover,Ei as colorCompoundBrandStrokePressed,C as colorNeutralBackground1,So as colorNeutralBackground1Hover,$r as colorNeutralBackground1Pressed,xi as colorNeutralBackground1Selected,jp as colorNeutralBackground2,qp as colorNeutralBackground2Hover,Wp as colorNeutralBackground2Pressed,Gp as colorNeutralBackground2Selected,Wt as colorNeutralBackground3,Xp as colorNeutralBackground3Hover,Up as colorNeutralBackground3Pressed,Kp as colorNeutralBackground3Selected,ea as colorNeutralBackground4,Yp as colorNeutralBackground4Hover,Zp as colorNeutralBackground4Pressed,Jp as colorNeutralBackground4Selected,ta as colorNeutralBackground5,Qp as colorNeutralBackground5Hover,eg as colorNeutralBackground5Pressed,tg as colorNeutralBackground5Selected,Gt as colorNeutralBackground6,og as colorNeutralBackground7,rg as colorNeutralBackground7Hover,ig as colorNeutralBackground7Pressed,ng as colorNeutralBackground7Selected,sg as colorNeutralBackground8,hg as colorNeutralBackgroundAlpha,ug as colorNeutralBackgroundAlpha2,et as colorNeutralBackgroundDisabled,mg as colorNeutralBackgroundDisabled2,wi as colorNeutralBackgroundInverted,vg as colorNeutralBackgroundInvertedDisabled,ag as colorNeutralBackgroundInvertedHover,lg as colorNeutralBackgroundInvertedPressed,cg as colorNeutralBackgroundInvertedSelected,dg as colorNeutralBackgroundStatic,zg as colorNeutralCardBackground,Og as colorNeutralCardBackgroundDisabled,_g as colorNeutralCardBackgroundHover,Eg as colorNeutralCardBackgroundPressed,Fg as colorNeutralCardBackgroundSelected,A as colorNeutralForeground1,yi as colorNeutralForeground1Hover,Ls as colorNeutralForeground1Pressed,bp as colorNeutralForeground1Selected,Qs as colorNeutralForeground1Static,Ie as colorNeutralForeground2,ko as colorNeutralForeground2BrandHover,xo as colorNeutralForeground2BrandPressed,Ds as colorNeutralForeground2BrandSelected,It as colorNeutralForeground2Hover,Ws as colorNeutralForeground2Link,Gs as colorNeutralForeground2LinkHover,Xs as colorNeutralForeground2LinkPressed,Bp as colorNeutralForeground2LinkSelected,At as colorNeutralForeground2Pressed,yo as colorNeutralForeground2Selected,X as colorNeutralForeground3,mp as colorNeutralForeground3BrandHover,vp as colorNeutralForeground3BrandPressed,$p as colorNeutralForeground3BrandSelected,Ms as colorNeutralForeground3Hover,Hs as colorNeutralForeground3Pressed,Vs as colorNeutralForeground3Selected,vr as colorNeutralForeground4,yp as colorNeutralForeground5,kp as colorNeutralForeground5Hover,xp as colorNeutralForeground5Pressed,wp as colorNeutralForeground5Selected,z as colorNeutralForegroundDisabled,lt as colorNeutralForegroundInverted,Ip as colorNeutralForegroundInverted2,_p as colorNeutralForegroundInvertedDisabled,Ys as colorNeutralForegroundInvertedHover,Ap as colorNeutralForegroundInvertedLink,Np as colorNeutralForegroundInvertedLinkHover,Tp as colorNeutralForegroundInvertedLinkPressed,zp as colorNeutralForegroundInvertedLinkSelected,Zs as colorNeutralForegroundInvertedPressed,Pp as colorNeutralForegroundInvertedSelected,Ue as colorNeutralForegroundOnBrand,ki as colorNeutralForegroundStaticInverted,ca as colorNeutralShadowAmbient,nf as colorNeutralShadowAmbientDarker,of as colorNeutralShadowAmbientLighter,da as colorNeutralShadowKey,sf as colorNeutralShadowKeyDarker,rf as colorNeutralShadowKeyLighter,$g as colorNeutralStencil1,kg as colorNeutralStencil1Alpha,yg as colorNeutralStencil2,xg as colorNeutralStencil2Alpha,Me as colorNeutralStroke1,ut as colorNeutralStroke1Hover,Ut as colorNeutralStroke1Pressed,Dg as colorNeutralStroke1Selected,Kt as colorNeutralStroke2,sa as colorNeutralStroke3,Mg as colorNeutralStroke4,Hg as colorNeutralStroke4Hover,Vg as colorNeutralStroke4Pressed,Rg as colorNeutralStroke4Selected,De as colorNeutralStrokeAccessible,dt as colorNeutralStrokeAccessibleHover,ht as colorNeutralStrokeAccessiblePressed,Lg as colorNeutralStrokeAccessibleSelected,ef as colorNeutralStrokeAlpha,tf as colorNeutralStrokeAlpha2,me as colorNeutralStrokeDisabled,Zg as colorNeutralStrokeDisabled2,Jg as colorNeutralStrokeInvertedDisabled,qg as colorNeutralStrokeOnBrand,aa as colorNeutralStrokeOnBrand2,Wg as colorNeutralStrokeOnBrand2Hover,Gg as colorNeutralStrokeOnBrand2Pressed,Xg as colorNeutralStrokeOnBrand2Selected,jg as colorNeutralStrokeSubtle,Sa as colorPaletteAnchorBackground2,Uf as colorPaletteAnchorBorderActive,Ba as colorPaletteAnchorForeground2,Ca as colorPaletteBeigeBackground2,Kf as colorPaletteBeigeBorderActive,Pa as colorPaletteBeigeForeground2,Sf as colorPaletteBerryBackground1,Bf as colorPaletteBerryBackground2,Cf as colorPaletteBerryBackground3,If as colorPaletteBerryBorder1,Af as colorPaletteBerryBorder2,Pf as colorPaletteBerryBorderActive,Nf as colorPaletteBerryForeground1,Tf as colorPaletteBerryForeground2,zf as colorPaletteBerryForeground3,Ia as colorPaletteBlueBackground2,Yf as colorPaletteBlueBorderActive,Aa as colorPaletteBlueForeground2,Na as colorPaletteBrassBackground2,Zf as colorPaletteBrassBorderActive,Ta as colorPaletteBrassForeground2,za as colorPaletteBrownBackground2,Jf as colorPaletteBrownBorderActive,_a as colorPaletteBrownForeground2,Ea as colorPaletteCornflowerBackground2,Qf as colorPaletteCornflowerBorderActive,Fa as colorPaletteCornflowerForeground2,Oa as colorPaletteCranberryBackground2,eb as colorPaletteCranberryBorderActive,La as colorPaletteCranberryForeground2,Da as colorPaletteDarkGreenBackground2,tb as colorPaletteDarkGreenBorderActive,Ma as colorPaletteDarkGreenForeground2,Vi as colorPaletteDarkOrangeBackground1,gf as colorPaletteDarkOrangeBackground2,Ri as colorPaletteDarkOrangeBackground3,ji as colorPaletteDarkOrangeBorder1,bf as colorPaletteDarkOrangeBorder2,ff as colorPaletteDarkOrangeBorderActive,va as colorPaletteDarkOrangeForeground1,mf as colorPaletteDarkOrangeForeground2,qi as colorPaletteDarkOrangeForeground3,Ha as colorPaletteDarkRedBackground2,ob as colorPaletteDarkRedBorderActive,Va as colorPaletteDarkRedForeground2,Ra as colorPaletteForestBackground2,rb as colorPaletteForestBorderActive,ja as colorPaletteForestForeground2,qa as colorPaletteGoldBackground2,ib as colorPaletteGoldBorderActive,Wa as colorPaletteGoldForeground2,Ga as colorPaletteGrapeBackground2,nb as colorPaletteGrapeBorderActive,Xa as colorPaletteGrapeForeground2,Mi as colorPaletteGreenBackground1,hf as colorPaletteGreenBackground2,Hi as colorPaletteGreenBackground3,pa as colorPaletteGreenBorder1,ga as colorPaletteGreenBorder2,uf as colorPaletteGreenBorderActive,fa as colorPaletteGreenForeground1,ba as colorPaletteGreenForeground2,ma as colorPaletteGreenForeground3,pf as colorPaletteGreenForegroundInverted,Ua as colorPaletteLavenderBackground2,sb as colorPaletteLavenderBorderActive,Ka as colorPaletteLavenderForeground2,Mf as colorPaletteLightGreenBackground1,Hf as colorPaletteLightGreenBackground2,Vf as colorPaletteLightGreenBackground3,jf as colorPaletteLightGreenBorder1,qf as colorPaletteLightGreenBorder2,Rf as colorPaletteLightGreenBorderActive,Wf as colorPaletteLightGreenForeground1,Gf as colorPaletteLightGreenForeground2,Xf as colorPaletteLightGreenForeground3,Ya as colorPaletteLightTealBackground2,ab as colorPaletteLightTealBorderActive,Za as colorPaletteLightTealForeground2,Ja as colorPaletteLilacBackground2,lb as colorPaletteLilacBorderActive,Qa as colorPaletteLilacForeground2,el as colorPaletteMagentaBackground2,cb as colorPaletteMagentaBorderActive,tl as colorPaletteMagentaForeground2,_f as colorPaletteMarigoldBackground1,Wi as colorPaletteMarigoldBackground2,Ef as colorPaletteMarigoldBackground3,Ff as colorPaletteMarigoldBorder1,Of as colorPaletteMarigoldBorder2,xa as colorPaletteMarigoldBorderActive,Lf as colorPaletteMarigoldForeground1,wa as colorPaletteMarigoldForeground2,Df as colorPaletteMarigoldForeground3,ol as colorPaletteMinkBackground2,db as colorPaletteMinkBorderActive,rl as colorPaletteMinkForeground2,il as colorPaletteNavyBackground2,hb as colorPaletteNavyBorderActive,nl as colorPaletteNavyForeground2,sl as colorPalettePeachBackground2,ub as colorPalettePeachBorderActive,al as colorPalettePeachForeground2,ll as colorPalettePinkBackground2,pb as colorPalettePinkBorderActive,cl as colorPalettePinkForeground2,dl as colorPalettePlatinumBackground2,gb as colorPalettePlatinumBorderActive,hl as colorPalettePlatinumForeground2,ul as colorPalettePlumBackground2,fb as colorPalettePlumBorderActive,pl as colorPalettePlumForeground2,gl as colorPalettePumpkinBackground2,bb as colorPalettePumpkinBorderActive,fl as colorPalettePumpkinForeground2,bl as colorPalettePurpleBackground2,mb as colorPalettePurpleBorderActive,ml as colorPalettePurpleForeground2,Fi as colorPaletteRedBackground1,ha as colorPaletteRedBackground2,Oi as colorPaletteRedBackground3,Li as colorPaletteRedBorder1,kr as colorPaletteRedBorder2,cf as colorPaletteRedBorderActive,xr as colorPaletteRedForeground1,ua as colorPaletteRedForeground2,Di as colorPaletteRedForeground3,df as colorPaletteRedForegroundInverted,vl as colorPaletteRoyalBlueBackground2,vb as colorPaletteRoyalBlueBorderActive,$l as colorPaletteRoyalBlueForeground2,yl as colorPaletteSeafoamBackground2,$b as colorPaletteSeafoamBorderActive,kl as colorPaletteSeafoamForeground2,xl as colorPaletteSteelBackground2,yb as colorPaletteSteelBorderActive,wl as colorPaletteSteelForeground2,Sl as colorPaletteTealBackground2,kb as colorPaletteTealBorderActive,Bl as colorPaletteTealForeground2,$a as colorPaletteYellowBackground1,vf as colorPaletteYellowBackground2,ya as colorPaletteYellowBackground3,ka as colorPaletteYellowBorder1,yf as colorPaletteYellowBorder2,$f as colorPaletteYellowBorderActive,kf as colorPaletteYellowForeground1,wr as colorPaletteYellowForeground2,xf as colorPaletteYellowForeground3,wf as colorPaletteYellowForegroundInverted,wg as colorScrollbarOverlay,Rb as colorStatusDangerBackground1,jb as colorStatusDangerBackground2,qb as colorStatusDangerBackground3,Wb as colorStatusDangerBackground3Hover,Gb as colorStatusDangerBackground3Pressed,Jb as colorStatusDangerBorder1,Qb as colorStatusDangerBorder2,Zb as colorStatusDangerBorderActive,Xb as colorStatusDangerForeground1,Ub as colorStatusDangerForeground2,Kb as colorStatusDangerForeground3,Yb as colorStatusDangerForegroundInverted,xb as colorStatusSuccessBackground1,wb as colorStatusSuccessBackground2,Sb as colorStatusSuccessBackground3,Nb as colorStatusSuccessBorder1,Tb as colorStatusSuccessBorder2,Ab as colorStatusSuccessBorderActive,Bb as colorStatusSuccessForeground1,Cb as colorStatusSuccessForeground2,Pb as colorStatusSuccessForeground3,Ib as colorStatusSuccessForegroundInverted,zb as colorStatusWarningBackground1,_b as colorStatusWarningBackground2,Eb as colorStatusWarningBackground3,Hb as colorStatusWarningBorder1,Vb as colorStatusWarningBorder2,Mb as colorStatusWarningBorderActive,Fb as colorStatusWarningForeground1,Ob as colorStatusWarningForeground2,Lb as colorStatusWarningForeground3,Db as colorStatusWarningForegroundInverted,Ao as colorStrokeFocus1,re as colorStrokeFocus2,Si as colorSubtleBackground,Bo as colorSubtleBackgroundHover,pg as colorSubtleBackgroundInverted,gg as colorSubtleBackgroundInvertedHover,fg as colorSubtleBackgroundInvertedPressed,bg as colorSubtleBackgroundInvertedSelected,oa as colorSubtleBackgroundLightAlphaHover,ra as colorSubtleBackgroundLightAlphaPressed,ia as colorSubtleBackgroundLightAlphaSelected,Xt as colorSubtleBackgroundPressed,Bi as colorSubtleBackgroundSelected,ce as colorTransparentBackground,Co as colorTransparentBackgroundHover,Po as colorTransparentBackgroundPressed,Ci as colorTransparentBackgroundSelected,j as colorTransparentStroke,Qg as colorTransparentStrokeDisabled,Io as colorTransparentStrokeInteractive,Ol as curveAccelerateMax,gt as curveAccelerateMid,Ll as curveAccelerateMin,sn as curveDecelerateMax,ft as curveDecelerateMid,Dl as curveDecelerateMin,Ro as curveEasyEase,an as curveEasyEaseMax,Tr as curveLinear,x as display,Kc as dropdownButtonTemplate,Uc as dropdownInputTemplate,gm as durationFast,Mo as durationFaster,Nr as durationGentle,Ho as durationNormal,Fl as durationSlow,nn as durationSlower,Ar as durationUltraFast,Vo as durationUltraSlow,ot as endSlotTemplate,$ as fontFamilyBase,Cl as fontFamilyMonospace,Pl as fontFamilyNumeric,Yt as fontSizeBase100,L as fontSizeBase200,_ as fontSizeBase300,he as fontSizeBase400,zt as fontSizeBase500,To as fontSizeBase600,Zi as fontSizeHero1000,Ui as fontSizeHero700,Ki as fontSizeHero800,Yi as fontSizeHero900,zo as fontWeightBold,Il as fontWeightMedium,E as fontWeightRegular,V as fontWeightSemibold,wn as getDirection,vn as isDialog,H$ as isDropdown,yt as isDropdownOption,xn as isListbox,er as isTab,_o as lineHeightBase100,q as lineHeightBase200,D as lineHeightBase300,ve as lineHeightBase400,Eo as lineHeightBase500,Ji as lineHeightBase600,on as lineHeightHero1000,Qi as lineHeightHero700,en as lineHeightHero800,tn as lineHeightHero900,md as listboxTemplate,xy as roleForMenuItem,tu as setTheme,Br as shadow16,lm as shadow16Brand,Sr as shadow2,Nl as shadow28,cm as shadow28Brand,nm as shadow2Brand,Fo as shadow4,sm as shadow4Brand,rn as shadow64,dm as shadow64Brand,Al as shadow8,am as shadow8Brand,Tl as spacingHorizontalL,Y as spacingHorizontalM,Te as spacingHorizontalMNudge,hm as spacingHorizontalNone,Ne as spacingHorizontalS,$e as spacingHorizontalSNudge,zl as spacingHorizontalXL,Q as spacingHorizontalXS,Oo as spacingHorizontalXXL,M as spacingHorizontalXXS,um as spacingHorizontalXXXL,Ir as spacingVerticalL,_l as spacingVerticalM,Do as spacingVerticalMNudge,Pr as spacingVerticalNone,ie as spacingVerticalS,Zt as spacingVerticalSNudge,pm as spacingVerticalXL,_t as spacingVerticalXS,pt as spacingVerticalXXL,Lo as spacingVerticalXXS,El as spacingVerticalXXXL,Ve as startSlotTemplate,ue as strokeWidthThick,Be as strokeWidthThicker,Cr as strokeWidthThickest,P as strokeWidthThin,C$ as typographyBody1StrongStyles,P$ as typographyBody1StrongerStyles,yn as typographyBody1Styles,Vc as typographyBody2Styles,I$ as typographyCaption1StrongStyles,A$ as typographyCaption1StrongerStyles,kn as typographyCaption1Styles,T$ as typographyCaption2StrongStyles,N$ as typographyCaption2Styles,D$ as typographyDisplayStyles,L$ as typographyLargeTitleStyles,Rc as typographySubtitle1Styles,_$ as typographySubtitle2StrongerStyles,z$ as typographySubtitle2Styles,E$ as typographyTitle1Styles,F$ as typographyTitle2Styles,O$ as typographyTitle3Styles,fm as zIndexBackground,bm as zIndexContent,xm as zIndexDebug,ym as zIndexFloating,$m as zIndexMessages,mm as zIndexOverlay,vm as zIndexPopup,km as zIndexPriority};