const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function dn(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function hn(...o){return o.every(e=>e instanceof HTMLElement)}function Xr(o,e="-accordion-item"){return dn(e)(o)}const Na=`${u.prefix}-accordion-item`;class Kr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}var ae;(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"})(ae||(ae={}));const lo=o=>typeof o=="function",st=o=>typeof o=="string",Fa=()=>{},Ma=Object.create(null),ye={warn(o,e){},error(o,e){return new Error(`Error ${o}`)},addMessages(o){Object.assign(Ma,o)}},La=Object.freeze([]);function Yr(){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 un(){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 vt(o){o.prototype.toJSON=Fa}class pn extends Kr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}vt(pn);function gn(o,e){return new pn(o,e)}class Jr{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 fn{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 Jr(this.subject):n=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Jr(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 Re=[],Zr=[],Da=globalThis.requestAnimationFrame;let Qr=!0;function Ha(){if(Zr.length)throw Zr.shift()}function Va(o){try{o.call()}catch(e){if(Qr)Zr.push(e),setTimeout(Ha,0);else throw Re.length=0,e}}function ei(){let e=0;for(;e<Re.length;)if(Va(Re[e]),e++,e>1024){for(let t=0,r=Re.length-e;t<r;t++)Re[t]=Re[t+e];Re.length-=e,e=0}Re.length=0}function bn(o){Re.push(o),Re.length<2&&(Qr?Da(ei):ei())}const T=Object.freeze({enqueue:bn,next:()=>new Promise(bn),process:ei,setMode:o=>Qr=o}),Ro=Object.freeze({unknown:void 0,coupled:1}),m=(()=>{const o=T.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw ye.error(ae.needsArrayObservation)};function n(d){var c;let f=(c=d.$fastController)!==null&&c!==void 0?c:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new fn(d))),f}const s=un();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,f){const w=this.field,E=c[w];if(E!==f){c[w]=f;const q=c[this.callback];lo(q)&&q.call(c,E,f),n(c).notify(this.name)}}}class h extends Jr{constructor(c,f,w=!1){super(c,f),this.expression=c,this.isVolatileBinding=w,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 f=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),f}requiresUnbind(c){return c.sourceLifetime!==Ro.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let E;try{E=this.expression(c,f)}finally{r=w}return E}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,f){const w=this.last,E=n(c),q=w===null?this.first:{};if(q.propertySource=c,q.propertyName=f,q.notifier=E,E.subscribe(this,f),w!==null){if(!this.needsRefresh){let se;r=void 0,se=w.propertySource[w.propertyName],r=this,c===se&&(this.needsRefresh=!0)}w.next=q}this.last=q}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 vt(h),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){st(c)&&(c=new l(c)),s(d).push(c),Reflect.defineProperty(d,c.name,{enumerable:!0,get(){return c.getValue(this)},set(f){c.setValue(this,f)}})},getAccessors:s,binding(d,c,f=this.isVolatileBinding(d)){return new h(d,c,f)},isVolatileBinding(d){return e.test(d.toString())}})})();function g(o,e){m.defineProperty(o,e)}const mn=(()=>{let o=null;return{get(){return o},set(e){o=e}}})(),co=Object.freeze({default:{index:0,length:0,get event(){return co.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return mn.get()},setEvent(o){mn.set(o)}});class Ra extends Kr{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function vn(o,e,t=m.isVolatileBinding(o)){return new Ra(o,e,t)}const Z=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),$n=o=>o,ja=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:$n}):{createHTML:$n};let jo=Object.freeze({createHTML(o){return ja.createHTML(o)},protect(o,e,t,r){return r}});const qa=jo,Mt=Object.freeze({get policy(){return jo},setPolicy(o){if(jo!==qa)throw ye.error(ae.onlySetDOMPolicyOnce);jo=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)}}),ti="boolean",yn="reflect",qo=Object.freeze({locate:un()}),Wa={toView(o){return o?"":null},fromView(o){return!!o}};function xn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const oe={toView(o){const e=xn(o);return e&&e.toString()},fromView:xn};class qr{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===ti&&n===void 0&&(this.converter=Wa)}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===ti?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"||T.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case yn:{const n=this.converter;Mt.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break}case ti:Mt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(qo.locate(e));for(let i=0,n=t.length;i<n;++i){const s=t[i];if(s!==void 0)for(let l=0,h=s.length;l<h;++l){const d=s[l];st(d)?r.push(new qr(e,d)):r.push(new qr(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),qo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}let oi;function kn(o){return o.reduce((e,t)=>(t instanceof de?e.push(...kn(t.styles)):e.push(t),e),[])}class de{get strategy(){return this._strategy===null&&(oi||de.setDefaultStrategy(de.supportsAdoptedStyleSheets?Ua():Xa()),this.withStrategy(oi)),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(kn(this.styles)),this}static setDefaultStrategy(e){oi=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new de(e):e instanceof de?e:new de([e])}}de.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;function Ua(){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 Ga=0;function Xa(){return class{constructor(e){this.styles=e,this.styleClass=`fast-${++Ga}`}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 Ka={},wn=new WeakMap,ri=Yr(),ho=Object.freeze({register(o){if(!ri.register(o))return!1;const e=Cn(o.registry);return Object.prototype.hasOwnProperty.call(e,o.name)||m.defineProperty(e,o.name),e[o.name]=o.type,!0},getByType:ri.getByType,getForInstance:ri.getForInstance,whenRegistered:Ya});function Cn(o=customElements){if(o===customElements)return Ka;let e=wn.get(o);return e||(e={},wn.set(o,e)),e}function Sn(o){return o===void 0?void 0:ho.getByType(o)}function Ya(o,e=customElements){const t=Cn(e);Object.prototype.hasOwnProperty.call(t,o)||m.defineProperty(t,o);const r=Sn(t[o]);return r!==void 0?Promise.resolve(r):new Promise(i=>{const n=m.getNotifier(t),s={handleChange:()=>{const l=Sn(t[o]);l!==void 0&&(n.unsubscribe(s,o),i(l))}};n.subscribe(s,o)})}const In={mode:"open"},Pn={},_n=new Set,Wo=new WeakMap,Uo=new WeakMap,$t=new WeakMap,zn=new WeakMap,Ja=new WeakMap;function Za(o){return lo(o)}function Qa(o){return typeof o?.then=="function"}function On(o,e){if(Uo.delete(o),o.template===void 0&&e!==void 0&&(o.template=e),o.template!==void 0)return $t.delete(o),Wo.delete(o),o.template}function Tn(o,e=o.registry,t){if(!t?.length)return;const r=o;let i=zn.get(r);if(!i?.has(e)){i===void 0&&(i=new WeakSet,zn.set(r,i)),i.add(e);for(const n of t)n(o)}}function ii(o){var e;return(e=Ja.get(o))!==null&&e!==void 0?e:null}function An(o){if(o.template!==void 0)return $t.delete(o),o.template;const e=Uo.get(o);if(e)return e;const t=Wo.get(o);if(!t)return;$t.delete(o);let r;try{r=t(o)}catch(i){throw $t.set(o,i),i}if(Qa(r)){const i=Promise.resolve(r).then(n=>On(o,n)).catch(n=>{throw Uo.delete(o),$t.set(o,n),n});return Uo.set(o,i),i}return On(o,r)}function el(o,e){const t=o;if(e===void 0){$t.delete(t);return}$t.set(t,e)}class Qe{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,st(t)&&(t={name:t}),this.type=e,this.name=t.name,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements,Za(t.template)?Wo.set(this,t.template):this.template=t.template;const i=e.prototype,n=qr.collect(e,t.attributes),s=new Array(n.length),l={},h={};for(let d=0,c=n.length;d<c;++d){const f=n[d];s[d]=f.attribute,l[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=l,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?In:t.shadowOptions===null?void 0:Object.assign(Object.assign({},In),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Pn:Object.assign(Object.assign({},Pn),t.elementOptions),this.styles=de.normalize(t.styles),this.schema=t.schema,ho.register(this)}define(e=this.registry,t){const r=this.type;if(!e.get(this.name)){if(Tn(this,e,t),this.template===void 0&&Wo.has(this))return Promise.resolve().then(()=>An(this)).then(i=>{i!==void 0&&!e.get(this.name)&&(this.platformDefined=!0,e.define(this.name,r,this.elementOptions))}).catch(i=>{el(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=_n.has(e)||ho.getByType(e)?new Qe(class extends e{},t):new Qe(e,t);return Promise.resolve(r)}static registerBaseType(e){_n.add(e)}}Qe.getByType=ho.getByType,Qe.getForInstance=ho.getForInstance,m.defineProperty(Qe.prototype,"template");const tl={bubbles:!0,composed:!0,cancelable:!0},ni="isConnected",En=new WeakMap,si=Symbol("fast-late-attribute-observer");function Go(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:En.get(o))!==null&&t!==void 0?t:null}let Bn;var he;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(he||(he={}));class Ve{get isConnected(){return m.track(this,ni),this.stage===he.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:co.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"&&En.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=he.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new fn(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 h=i[s].name,d=e[h];d!==void 0&&(delete e[h],n[h]=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===he.connected||this.stage===he.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!==he.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=Go(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=Go(r))!==null&&t!==void 0?t:r).removeChild(e):e.isAttachedTo(r)&&e.removeStylesFrom(r)}connect(){this.stage===he.disconnected&&(this.stage=he.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=he.connected,m.notify(this,ni))}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],h=l[0]==="_"?l.slice(1):l;if(!r(h))continue;const d=e[h],c=l!==h,f=d!==null&&typeof d=="object"&&!d?.$isProxy&&!(Array.isArray(d)&&d?.$fastController);if(d===void 0){c||delete e[l];continue}c&&!f||(delete e[l],(i??(i=this.boundObservables=Object.create(null)))[h]=d)}}syncLateAttributes(){const e=ii(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=ii(this.definition);if(e===null)return;const t=this.source;t[si]===void 0&&(t[si]=new MutationObserver(r=>{const i=t.$fastController,n=ii(i.definition);if(n!==null)for(let s=0,l=r.length;s<l;++s){const h=r[s].attributeName;h===null||n[h]===void 0||i.onAttributeChangedCallback(h,null,t.getAttribute(h))}}),t[si].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===he.connected&&(this.stage=he.disconnecting,m.notify(this,ni),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=he.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===he.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},tl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=Go(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&&Ve.hydrationHook&&(s=Ve.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=Ro.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 ye.error(ae.missingElementDefinition);return m.getNotifier(i).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(i).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Bn(e,i)}static setStrategy(e){Bn=e}static installHydrationHook(e){Ve.hydrationHook=e}}Ve.hydrationHook=null,vt(Ve),Ve.setStrategy(Ve);function Xo(o){var e;return"adoptedStyleSheets"in o?o:(e=Go(o))!==null&&e!==void 0?e:o.getRootNode()}class Wr{constructor(e){const t=Wr.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){Fn(Xo(e),this.sheets)}removeStylesFrom(e){Mn(Xo(e),this.sheets)}}Wr.styleSheetCache=new Map;let ol=0;const rl=()=>`fast-${++ol}`;function Nn(o){return o===document?document.body:o}class il{constructor(e){this.styles=e,this.styleClass=rl()}addStylesTo(e){e=Nn(Xo(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=Nn(Xo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Fn=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Mn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(de.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Fn=(o,e)=>{o.adoptedStyleSheets.push(...e)},Mn=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}de.setDefaultStrategy(Wr)}else de.setDefaultStrategy(il);function Ln(o){const e=class extends o{constructor(){super(),Ve.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 nl(o){return typeof o?.then=="function"}function sl(o,e,t){return Array.isArray(e)&&(t=e,e=void 0),(lo(o)?Qe.compose(o,e):Qe.compose(this,o)).then(i=>{Tn(i,i.registry,t);const n=An(i);return nl(n)?n.then(()=>i.define().type):i.define().type})}function al(o){return Ln(o)}const k=Object.assign(Ln(HTMLElement),{from:al,define:sl});function xe(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ai=Yr(),Dn=Object.freeze({getForInstance:ai.getForInstance,getByType:ai.getByType,define(o){return ai.register({type:o}),o}});function Hn(o,e){const t=[];let r="";for(let i=0,n=o.length-1;i<n;++i){r+=o[i];let s=e[i];Dn.getForInstance(s)!==void 0&&(s=s.createCSS()),s instanceof de||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 de(Hn(o,e));class Vn{constructor(e){this.value=e.length===0?"":e.length===1?e[0]:new de(e)}createCSS(){return this.value}}Dn.define(Vn),p.partial=(o,...e)=>new Vn(Hn(o,e));const li=`fast-${Math.random().toString(36).substring(2,8)}`,Ko=`${li}{`,uo=`}${li}`,ll=uo.length;let cl=0;const ci=()=>`${li}-${++cl}`,Rn=Object.freeze({interpolation:o=>`${Ko}${o}${uo}`,attribute:o=>`${ci()}="${Ko}${o}${uo}"`,comment:o=>`<!--${Ko}${o}${uo}-->`}),Yo=Object.freeze({parse(o,e){const t=o.split(Ko);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(uo);let h;if(l===-1)h=s;else{const d=s.substring(0,l);r.push(e[d]),h=s.substring(l+ll)}h!==""&&r.push(h)}return r}}),di=Yr(),je=Object.freeze({getForInstance:di.getForInstance,getByType:di.getByType,define(o,e){return e=e||{},e.type=o,di.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Z.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Z.tokenList:Z.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Z.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Z.event;break;default:o.targetAspect=e,o.aspectType=Z.attribute;break}}});class hi{constructor(e){this.options=e}createHTML(e){return Rn.attribute(e(this))}createBehavior(){return this}}vt(hi);const dl=o=>o.nodeType===1,po=o=>o?e=>e.nodeType===1&&e.matches(o):dl;class hl extends hi{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,La),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 jn=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ul=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,pl=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,gl=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,fl=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,bl=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function qn(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ee=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"||jn.test(o)},isContentBindingEndMarker(o){return o==="fe:/b"||ul.test(o)},isRepeatViewStartMarker(o){return o==="fe:r"||pl.test(o)},isRepeatViewEndMarker(o){return o==="fe:/r"||gl.test(o)},isElementBoundaryStartMarker(o){return qn(o)&&(o.data==="fe:e"||fl.test(o.data))},isElementBoundaryEndMarker(o){return qn(o)&&(o.data==="fe:/e"||bl.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 ye.error(ae.invalidHydrationAttributeMarker,{value:e});const r=parseInt(t,10);if(r<1)throw ye.error(ae.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 ye.error(ae.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 ye.error(ae.invalidHydrationAttributeMarker,{value:n});e.push(s)}else if(n.startsWith(i)){const[s,l]=n.slice(i.length).split("-").map(h=>Number(h));if(!Number.isInteger(s)||!Number.isInteger(l)||s<0||l<1)throw ye.error(ae.invalidHydrationAttributeMarker,{value:n});for(let h=0;h<l;h++)e.push(s+h)}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 ml(jn,o)}});function ml(o,e){const t=o.exec(e);return t===null?null:Number(t[1])}const Jo=Symbol.for("fe-hydration");function Wn(o){return o[Jo]===Jo}const vl="unknown";function $l(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 yl="content following `<!--fe:b-->` content binding marker",xl="matching `<!--fe:/b-->` content binding close marker",kl="matching `<!--fe:/e-->` element boundary close marker";function Un(o){return`no more attribute bindings (template defines ${o})`}function wl(o){return`no more content bindings (template defines ${o})`}function Gn(o,e){const t=(o??vl).toLowerCase();return $l(t,e)}const Cl={formatBindingMismatch(o,e,t,r){return{message:Gn(r,void 0)}},formatStructuralError(o,e,t){return{message:Gn(e,t)}}};let Sl=Cl;function yt(){return Sl}function xt(o){var e;return o?(e=o.getRootNode().host)===null||e===void 0?void 0:e.nodeName:void 0}class kt extends Error{constructor(e,t,r,i,n){super(e),this.factories=t,this.node=r,this.expected=i,this.received=n}}function ui(o){return o.nodeType===Node.COMMENT_NODE}function Xn(o){return o.nodeType===Node.TEXT_NODE}function Kn(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ui(e)||Xn(e)?e.data.length:e.childNodes.length),t}function Il(o,e,t){const r=Kn(o,e),i=r.commonAncestorContainer,n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(f){return r.comparePoint(f,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),s={},l={},h=zl(t);let d=h,c=n.currentNode=o;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{const f=c,w=Ee.parseLegacyAttributeBindingIndices(f);if(w!==null){for(const q of w){const se=q+h,nt=t[se];if(!nt){const ao=Un(t.length),Gr=yt().formatStructuralError(c,xt(c),ao);throw new kt(Gr.message,t,f,Gr.expected,Gr.received)}go(nt,c,s),d=Math.max(d,se+1)}Ee.removeLegacyAttributeBindingMarkers(f);break}const E=Ee.parseAttributeBindingCount(f);if(E!==null){for(let q=0;q<E;q++){const se=t[d++];if(!se){const nt=Un(t.length),ao=yt().formatStructuralError(c,xt(c),nt);throw new kt(ao.message,t,c,ao.expected,ao.received)}go(se,c,s)}f.removeAttribute(Ee.attributeMarkerName)}break}case Node.COMMENT_NODE:{const f=c.data;if(Ee.isElementBoundaryStartMarker(c))c.data="",_l(n,t,c);else if(Ee.isContentBindingStartMarker(f)){const w=Ee.parseLegacyContentBindingStartIndex(f),E=w===null?d++:w+h,q=t[E];if(d=Math.max(d,E+1),!q){const se=wl(t.length),nt=yt().formatStructuralError(c,xt(c),se);throw new kt(nt.message,t,c,nt.expected,nt.received)}Pl(c,n,q,t,s,l)}break}}c=n.nextNode()}return r.detach(),{targets:s,boundaries:l}}function Pl(o,e,t,r,i,n){const s=[];let l=e.nextSibling();if(o.data="",l===null){const c=yl,f=yt().formatStructuralError(o,xt(o),c);throw new kt(f.message,r,o,f.expected,f.received)}const h=l;let d=0;for(;l!==null;){if(ui(l)){if(Ee.isContentBindingStartMarker(l.data))d++;else if(Ee.isContentBindingEndMarker(l.data)){if(d===0)break;d--}}s.push(l),l=e.nextSibling()}if(l===null){const c=xl,f=yt().formatStructuralError(o,xt(o),c);throw new kt(f.message,r,o,f.expected,f.received)}if(l.data="",s.length===1&&Xn(s[0]))go(t,s[0],i);else{l!==h&&l.previousSibling!==null&&(n[t.targetNodeId]={first:h,last:l.previousSibling});const c=l.parentNode.insertBefore(document.createTextNode(""),l);go(t,c,i)}}function _l(o,e,t){let r=0,i=o.nextSibling();for(;i!==null;){if(ui(i)){if(Ee.isElementBoundaryStartMarker(i))i.data="",r++;else if(Ee.isElementBoundaryEndMarker(i)){if(r===0){i.data="";return}i.data="",r--}}i=o.nextSibling()}const n=kl,s=yt().formatStructuralError(t,xt(t),n);throw new kt(s.message,e,t,s.expected,s.received)}function zl(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function go(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}function pi(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 Yn{constructor(){this.index=0,this.length=0}get event(){return co.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 Zo extends Yn{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=Ro.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(){pi(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){pi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}vt(Zo),m.defineProperty(Zo.prototype,"index"),m.defineProperty(Zo.prototype,"length");var Jn;const fo={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ol 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 Tl extends Yn{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[Jn]=Jo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ro.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=fo.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!==fo.hydrated&&(this._hydrationStage=fo.hydrating);let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:n,boundaries:s}=Il(this.firstChild,this.lastChild,this.factories);this._targets=n,this._bindingViewBoundaries=s}catch(n){if(n instanceof kt){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&&go(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const h=l.createBehavior();h.bind(this),r[n]=h}else{let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML);const d=Kn(this.firstChild,this.lastChild).cloneContents(),c=yt().formatBindingMismatch(l,this.firstChild,this.lastChild,xt(this.firstChild));throw new Ol(c.message,l,d,h,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=fo.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){pi(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}}Jn=Jo,vt(Tl);function Al(o){return o.create!==void 0}function El(o,e,t,r){if(t==null&&(t=""),Al(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Wn(r)&&Wn(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==fo.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 Bl(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 h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let c=0,f=d.length;c<f;++c){const w=d[c];w!==""&&(s[w]=l,h.add(w))}}if(n.v=l+1,l!==0){l-=1;for(const d in s)s[d]===l&&h.remove(d)}}const Nl={[Z.attribute]:Mt.setAttribute,[Z.booleanAttribute]:Mt.setBooleanAttribute,[Z.property]:(o,e,t)=>o[e]=t,[Z.content]:El,[Z.tokenList]:Bl,[Z.event]:()=>{}};class Lt{constructor(e){this.updateTarget=null,this.aspectType=Z.content,this.dataBinding=e}createHTML(e){return Rn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Nl[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ye.error(ae.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 Z.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Z.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e;const n=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===Z.attribute||this.aspectType===Z.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){co.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);co.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)}}je.define(Lt,{aspected:!0});const Zn=(o,e)=>`${o}.${e}`,Qn={},qe={index:0,node:null};function es(o){o.startsWith("fast-")||ye.warn(ae.hostBindingWithoutHost,{name:o})}const Fl=new Proxy(document.createElement("div"),{get(o,e){es(e);const t=Reflect.get(o,e);return lo(t)?t.bind(o):t},set(o,e,t){return es(e),Reflect.set(o,e,t)}});class Ml{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:ci(),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),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(l,e,h)}let n=Qn[t];if(!n){const s=`_${t}`;Qn[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??Fl;for(const i of this.nodeIds)Reflect.get(r,i);return new Zo(t,this.factories,r)}}function ts(o,e,t,r,i,n=!1){const s=t.attributes,l=o.directives;for(let h=0,d=s.length;h<d;++h){const c=s[h],f=c.value,w=Yo.parse(f,l);let E=null;w===null?n&&(E=new Lt(gn(()=>f,o.policy)),je.assignAspect(E,c.name)):E=gi.aggregate(w,o.policy),E!==null&&(t.removeAttributeNode(c),h--,d--,o.addFactory(E,e,r,i,t.tagName))}}function Ll(o,e,t,r,i){const n=Yo.parse(e.textContent,o.directives);if(n===null)return qe.node=e.nextSibling,qe.index=i+1,qe;let s,l=s=e;for(let h=0,d=n.length;h<d;++h){const c=n[h];h!==0&&(i++,r=Zn(t,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),st(c)?s.textContent=c:(s.textContent=" ",je.assignAspect(c),o.addFactory(c,t,r,i,null)),l=s}return qe.index=i+1,qe.node=l.nextSibling,qe}function os(o,e,t){let r=0,i=e.firstChild;for(;i;){const n=Dl(o,t,i,r);i=n.node,r=n.index}}function Dl(o,e,t,r){const i=Zn(e,r);switch(t.nodeType){case 1:ts(o,e,t,i,r),os(o,t,i);break;case 3:return Ll(o,t,e,i,r);case 8:{const n=Yo.parse(t.data,o.directives);n!==null&&o.addFactory(gi.aggregate(n),e,i,r,null);break}}return qe.index=r+1,qe.node=t.nextSibling,qe}function Hl(o,e){return o&&o.nodeType===8&&Yo.parse(o.data,e)!==null}const rs="TEMPLATE",gi={compile(o,e,t=Mt.policy){let r;if(st(o)){r=document.createElement(rs),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===rs&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new Ml(i,e,t);return ts(n,"",r,"h",0,!0),(Hl(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),os(n,i,"r"),qe.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Mt.policy){if(o.length===1)return o[0];let t,r=!1,i;const n=o.length,s=o.map(d=>st(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),l=(d,c)=>{let f="";for(let w=0;w<n;++w)f+=s[w](d,c);return f},h=new Lt(vn(l,i??e,r));return je.assignAspect(h,t),h}};class is extends hi{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}je.define(is);const z=o=>new is(o),Vl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Rl=Object.create(null);class wt{constructor(e,t=Rl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}wt.empty=new wt(""),je.define(wt);function jl(o,e,t,r=je.getForInstance(o)){if(r.aspected){const i=Vl.exec(e);i!==null&&je.assignAspect(o,i[2])}return o.createHTML(t)}class Ur{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=gi.compile(this.html,this.factories,this.policy)),this.result}inline(){return new wt(st(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ye.error(ae.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw ye.error(ae.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 h;const d=(h=l.id)!==null&&h!==void 0?h:l.id=ci();return n[d]=l,d};for(let l=0,h=e.length-1;l<h;++l){const d=e[l];let c=t[l],f;if(i+=d,lo(c))c=new Lt(vn(c));else if(c instanceof Kr)c=new Lt(c);else if(!(f=je.getForInstance(c))){const w=c;c=new Lt(gn(()=>w))}i+=jl(c,d,s,f)}return new Ur(i+e[e.length-1],n,r)}}vt(Ur);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Ur.create(o,e);throw ye.error(ae.directCallToHTMLTagNotAllowed)};b.partial=o=>new wt(o);const ns="slotchange";class ss extends hl{observe(e){e.addEventListener(ns,this)}disconnect(e){e.removeEventListener(ns,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}je.define(ss);function X(o){return st(o)&&(o={property:o}),new ss(o)}const ql=":host([hidden]){display:none}";function C(o){return`${ql}:host{display:${o}}`}const O="var(--colorNeutralForeground1)",as="var(--colorNeutralForeground1Hover)",Wl="var(--colorNeutralForeground1Pressed)",Be="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",Qo="var(--colorNeutralForeground2Selected)",er="var(--colorNeutralForeground2BrandHover)",tr="var(--colorNeutralForeground2BrandPressed)",Ul="var(--colorNeutralForeground2BrandSelected)",K="var(--colorNeutralForeground3)",Gl="var(--colorNeutralForeground3Hover)",Xl="var(--colorNeutralForeground3Pressed)",Kl="var(--colorNeutralForeground3Selected)",fi="var(--colorNeutralForeground4)",A="var(--colorNeutralForegroundDisabled)",Yl="var(--colorBrandForegroundLink)",Jl="var(--colorBrandForegroundLinkHover)",Zl="var(--colorBrandForegroundLinkPressed)",Ql="var(--colorNeutralForeground2Link)",ec="var(--colorNeutralForeground2LinkHover)",tc="var(--colorNeutralForeground2LinkPressed)",oc="var(--colorCompoundBrandForeground1Hover)",rc="var(--colorCompoundBrandForeground1Pressed)",et="var(--colorNeutralForegroundOnBrand)",Ct="var(--colorNeutralForegroundInverted)",ic="var(--colorNeutralForegroundInvertedHover)",nc="var(--colorNeutralForegroundInvertedPressed)",ls="var(--colorNeutralForegroundStaticInverted)",or="var(--colorBrandForeground1)",sc="var(--colorBrandForeground2)",ac="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",rr="var(--colorNeutralBackground1Hover)",bi="var(--colorNeutralBackground1Pressed)",cs="var(--colorNeutralBackground1Selected)",bo="var(--colorNeutralBackground3)",lc="var(--colorNeutralBackground4)",cc="var(--colorNeutralBackground5)",mo="var(--colorNeutralBackground6)",ds="var(--colorNeutralBackgroundInverted)",hs="var(--colorSubtleBackground)",ir="var(--colorSubtleBackgroundHover)",vo="var(--colorSubtleBackgroundPressed)",us="var(--colorSubtleBackgroundSelected)",dc="var(--colorSubtleBackgroundLightAlphaHover)",hc="var(--colorSubtleBackgroundLightAlphaPressed)",uc="var(--colorSubtleBackgroundLightAlphaSelected)",ue="var(--colorTransparentBackground)",nr="var(--colorTransparentBackgroundHover)",sr="var(--colorTransparentBackgroundPressed)",ps="var(--colorTransparentBackgroundSelected)",at="var(--colorNeutralBackgroundDisabled)",mi="var(--colorBackgroundOverlay)",gs="var(--colorBrandBackground)",fs="var(--colorBrandBackgroundHover)",bs="var(--colorBrandBackgroundPressed)",pc="var(--colorBrandBackgroundSelected)",St="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Rt="var(--colorCompoundBrandBackgroundPressed)",ms="var(--colorBrandBackgroundStatic)",vs="var(--colorBrandBackground2)",We="var(--colorNeutralStrokeAccessible)",It="var(--colorNeutralStrokeAccessibleHover)",Pt="var(--colorNeutralStrokeAccessiblePressed)",Ue="var(--colorNeutralStroke1)",_t="var(--colorNeutralStroke1Hover)",$o="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",gc="var(--colorNeutralStroke3)",fc="var(--colorNeutralStrokeOnBrand2)",$s="var(--colorBrandStroke1)",ys="var(--colorBrandStroke2)",lt="var(--colorCompoundBrandStroke)",bc="var(--colorCompoundBrandStrokeHover)",xs="var(--colorCompoundBrandStrokePressed)",ke="var(--colorNeutralStrokeDisabled)",Y="var(--colorTransparentStroke)",vi="var(--colorTransparentStrokeInteractive)",ar="var(--colorStrokeFocus1)",le="var(--colorStrokeFocus2)",mc="var(--colorNeutralShadowAmbient)",vc="var(--colorNeutralShadowKey)",ks="var(--colorPaletteRedBackground1)",$c="var(--colorPaletteRedBackground2)",ws="var(--colorPaletteRedBackground3)",Cs="var(--colorPaletteRedBorder1)",$i="var(--colorPaletteRedBorder2)",yi="var(--colorPaletteRedForeground1)",yc="var(--colorPaletteRedForeground2)",Ss="var(--colorPaletteRedForeground3)",Is="var(--colorPaletteGreenBackground1)",Ps="var(--colorPaletteGreenBackground3)",xc="var(--colorPaletteGreenBorder1)",kc="var(--colorPaletteGreenBorder2)",wc="var(--colorPaletteGreenForeground1)",Cc="var(--colorPaletteGreenForeground2)",Sc="var(--colorPaletteGreenForeground3)",_s="var(--colorPaletteDarkOrangeBackground1)",zs="var(--colorPaletteDarkOrangeBackground3)",Os="var(--colorPaletteDarkOrangeBorder1)",Ic="var(--colorPaletteDarkOrangeForeground1)",Ts="var(--colorPaletteDarkOrangeForeground3)",Pc="var(--colorPaletteYellowBackground1)",_c="var(--colorPaletteYellowBackground3)",zc="var(--colorPaletteYellowBorder1)",xi="var(--colorPaletteYellowForeground2)",As="var(--colorPaletteMarigoldBackground2)",Oc="var(--colorPaletteMarigoldBorderActive)",Tc="var(--colorPaletteMarigoldForeground2)",Ac="var(--colorPaletteAnchorBackground2)",Ec="var(--colorPaletteAnchorForeground2)",Bc="var(--colorPaletteBeigeBackground2)",Nc="var(--colorPaletteBeigeForeground2)",Fc="var(--colorPaletteBlueBackground2)",Mc="var(--colorPaletteBlueForeground2)",Lc="var(--colorPaletteBrassBackground2)",Dc="var(--colorPaletteBrassForeground2)",Hc="var(--colorPaletteBrownBackground2)",Vc="var(--colorPaletteBrownForeground2)",Rc="var(--colorPaletteCornflowerBackground2)",jc="var(--colorPaletteCornflowerForeground2)",qc="var(--colorPaletteCranberryBackground2)",Wc="var(--colorPaletteCranberryForeground2)",Uc="var(--colorPaletteDarkGreenBackground2)",Gc="var(--colorPaletteDarkGreenForeground2)",Xc="var(--colorPaletteDarkRedBackground2)",Kc="var(--colorPaletteDarkRedForeground2)",Yc="var(--colorPaletteForestBackground2)",Jc="var(--colorPaletteForestForeground2)",Zc="var(--colorPaletteGoldBackground2)",Qc="var(--colorPaletteGoldForeground2)",ed="var(--colorPaletteGrapeBackground2)",td="var(--colorPaletteGrapeForeground2)",od="var(--colorPaletteLavenderBackground2)",rd="var(--colorPaletteLavenderForeground2)",id="var(--colorPaletteLightTealBackground2)",nd="var(--colorPaletteLightTealForeground2)",sd="var(--colorPaletteLilacBackground2)",ad="var(--colorPaletteLilacForeground2)",ld="var(--colorPaletteMagentaBackground2)",cd="var(--colorPaletteMagentaForeground2)",dd="var(--colorPaletteMinkBackground2)",hd="var(--colorPaletteMinkForeground2)",ud="var(--colorPaletteNavyBackground2)",pd="var(--colorPaletteNavyForeground2)",gd="var(--colorPalettePeachBackground2)",fd="var(--colorPalettePeachForeground2)",bd="var(--colorPalettePinkBackground2)",md="var(--colorPalettePinkForeground2)",vd="var(--colorPalettePlatinumBackground2)",$d="var(--colorPalettePlatinumForeground2)",yd="var(--colorPalettePlumBackground2)",xd="var(--colorPalettePlumForeground2)",kd="var(--colorPalettePumpkinBackground2)",wd="var(--colorPalettePumpkinForeground2)",Cd="var(--colorPalettePurpleBackground2)",Sd="var(--colorPalettePurpleForeground2)",Id="var(--colorPaletteRoyalBlueBackground2)",Pd="var(--colorPaletteRoyalBlueForeground2)",_d="var(--colorPaletteSeafoamBackground2)",zd="var(--colorPaletteSeafoamForeground2)",Od="var(--colorPaletteSteelBackground2)",Td="var(--colorPaletteSteelForeground2)",Ad="var(--colorPaletteTealBackground2)",Ed="var(--colorPaletteTealForeground2)",lr="var(--borderRadiusNone)",Ne="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",Es="var(--borderRadiusLarge)",Bs="var(--borderRadiusXLarge)",pe="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Bd="var(--fontFamilyMonospace)",Nd="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",L="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ge="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",cr="var(--fontSizeBase600)",Ns="var(--fontSizeHero700)",Fs="var(--fontSizeHero800)",Ms="var(--fontSizeHero900)",Ls="var(--fontSizeHero1000)",N="var(--fontWeightRegular)",Fd="var(--fontWeightMedium)",V="var(--fontWeightSemibold)",dr="var(--fontWeightBold)",hr="var(--lineHeightBase100)",W="var(--lineHeightBase200)",D="var(--lineHeightBase300)",we="var(--lineHeightBase400)",ur="var(--lineHeightBase500)",Ds="var(--lineHeightBase600)",Hs="var(--lineHeightHero700)",Vs="var(--lineHeightHero800)",Rs="var(--lineHeightHero900)",js="var(--lineHeightHero1000)",ki="var(--shadow2)",pr="var(--shadow4)",Md="var(--shadow8)",wi="var(--shadow16)",Ld="var(--shadow28)",qs="var(--shadow64)",P="var(--strokeWidthThin)",fe="var(--strokeWidthThick)",Pe="var(--strokeWidthThicker)",Ci="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",re="var(--spacingHorizontalXS)",Ce="var(--spacingHorizontalSNudge)",Fe="var(--spacingHorizontalS)",Me="var(--spacingHorizontalMNudge)",Q="var(--spacingHorizontalM)",Dd="var(--spacingHorizontalL)",Hd="var(--spacingHorizontalXL)",gr="var(--spacingHorizontalXXL)",Si="var(--spacingVerticalNone)",fr="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",ko="var(--spacingVerticalSNudge)",ce="var(--spacingVerticalS)",br="var(--spacingVerticalMNudge)",Vd="var(--spacingVerticalM)",Ii="var(--spacingVerticalL)",zt="var(--spacingVerticalXXL)",Rd="var(--spacingVerticalXXXL)",Pi="var(--durationUltraFast)",mr="var(--durationFaster)",vr="var(--durationNormal)",_i="var(--durationGentle)",jd="var(--durationSlow)",Ws="var(--durationSlower)",$r="var(--durationUltraSlow)",qd="var(--curveAccelerateMax)",Ot="var(--curveAccelerateMid)",Wd="var(--curveAccelerateMin)",Us="var(--curveDecelerateMax)",Tt="var(--curveDecelerateMid)",Ud="var(--curveDecelerateMin)",Gs="var(--curveEasyEaseMax)",yr="var(--curveEasyEase)",zi="var(--curveLinear)",Gd=p`${C("block")} :host{max-width:fit-content;contain:content;color:${O}}.heading{height:44px;display:grid;position:relative;padding-inline:${Q} ${Me};border-radius:${S};font-family:${$};font-size:${B};font-weight:${N};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ue};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:${Ne}}: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:${Fe};grid-column:1/span 1;grid-row:1}.content{margin:0 ${Q}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Fe};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ne};outline:none;border:2px solid ${ar};box-shadow:inset 0 0 0 1px ${le}}:host([disabled]) .button{color:${A}}: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:${B};line-height:${D}}:host([size='small']) .heading{font-size:${L};line-height:${W}}:host([size='large']) .heading{font-size:${ge};line-height:${we}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${ur}}: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:4/span 1;padding-inline-start:${Fe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${Q}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Me} ${Q}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`;function be(o){return o?typeof o=="string"?new wt(o):"inline"in o?o.inline():o:wt.empty}class ct{}function dt(o){return b`<slot name=end ${z("end")}>${be(o.end)}</slot>`.inline()}function Ge(o){return b`<slot name=start ${z("start")}>${be(o.start)}</slot>`.inline()}const Xd=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>'),Kd=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 Yd(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} ${z("expandbutton")}><slot name=heading></slot></button> ${Ge(o)}<slot name=marker-expanded>${be(o.expandedIcon)}</slot><slot name=marker-collapsed>${be(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Jd=Yd({collapsedIcon:Xd,expandedIcon:Kd}),Zd={name:Na,registry:u.registry,styles:Gd,template:Jd};function ht(o,...e){const t=qo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),qo.locate(r).forEach(n=>t.push(n))})}var Qd=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,xr=(o,e,t,r)=>{for(var i=r>1?void 0:r?eh(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&&Qd(e,t,i),i};class wo extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}xr([a({attribute:"heading-level",mode:"fromView",converter:oe})],wo.prototype,"headinglevel",2),xr([a({mode:"boolean"})],wo.prototype,"expanded",2),xr([a({mode:"boolean"})],wo.prototype,"disabled",2),xr([g],wo.prototype,"expandbutton",2);var th=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,Oi=(o,e,t,r)=>{for(var i=r>1?void 0:r?oh(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&&th(e,t,i),i};class Co extends wo{constructor(){super(...arguments),this.block=!1}}Oi([a],Co.prototype,"size",2),Oi([a({attribute:"marker-position"})],Co.prototype,"markerPosition",2),Oi([a({mode:"boolean"})],Co.prototype,"block",2),ht(Co,ct),Co.define(Zd);const Ti={single:"single",multi:"multi"},rh=`${u.prefix}-accordion`,ih=p`${C("flex")} :host{flex-direction:column;width:100%;contain:content}`;function nh(){return b`<template><slot ${X({property:"slottedAccordionItems",filter:po()})}></slot></template>`}const sh=nh(),ah={name:rh,registry:u.registry,styles:ih,template:sh};function Xs(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 So(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,n=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,l=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){n?Xs(e,{timeout:i}):e();return}Xs(l,{timeout:i})};l()}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Ks=(o,e,t,r)=>{for(var i=r>1?void 0:r?ch(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&&lh(e,t,i),i};class Ai extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{So(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;Xr(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===Ti.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=>Xr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ti.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Xr(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||Ti.multi,this.setItems()}}Ks([a({attribute:"expand-mode"})],Ai.prototype,"expandmode",2),Ks([g],Ai.prototype,"slottedAccordionItems",2),Ai.define(ah);const dh={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},hh={circular:"circular",rounded:"rounded",square:"square"},uh={small:"small",medium:"medium",large:"large"},kr={submit:"submit",reset:"reset",button:"button"},ph=`${u.prefix}-button`,gh=dh,fh=hh,bh=uh,mh={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},vh=`${u.prefix}-anchor-button`,Ys=p`${C("inline-flex")} :host{--icon-spacing:${Ce};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:${I};color:${O};border:${P} solid ${Ue};padding:0 ${Q};min-width:96px;border-radius:${S};font-size:${B};font-family:${$};font-weight:${V};line-height:${D};transition-duration:${mr};transition-property:background,border,color;transition-timing-function:${yr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${rr};color:${as};border-color:${_t}}:host(:hover:active){background-color:${bi};border-color:${$o};color:${Wl};outline-style:none}:host(:focus-visible){border-color:${Y};outline:${fe} solid ${Y};box-shadow:${pr},0 0 0 2px ${le}}@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:${re};min-height:24px;min-width:64px;padding:0 ${Fe};border-radius:${Ne};font-size:${L};line-height:${W};font-weight:${N}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Es};padding:0 ${Dd};font-size:${ge};line-height:${we}}: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:${pe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${lr}}:host([appearance='primary']){background-color:${gs};color:${et};border-color:transparent}:host([appearance='primary']:hover){background-color:${fs}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${et}}:host([appearance='primary']:hover:active){background-color:${bs}}:host([appearance='primary']:focus-visible){border-color:${et};box-shadow:${ki},0 0 0 2px ${le}}:host([appearance='outline']){background-color:${ue}}:host([appearance='outline']:hover){background-color:${nr}}:host([appearance='outline']:hover:active){background-color:${sr}}:host([appearance='subtle']){background-color:${hs};color:${Be};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ir};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${vo};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${er}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${tr}}:host([appearance='transparent']){background-color:${ue};color:${Be}}:host([appearance='transparent']:hover){background-color:${nr};color:${er}}:host([appearance='transparent']:hover:active){background-color:${sr};color:${tr}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wr=p`${Ys} :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:${at};border-color:${ke};color:${A};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:${ue}}:host([appearance='subtle']:is(:disabled,[disabled],[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled],[disabled-focusable]):is(:hover,:hover:active)){background-color:${ue};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:${ue}}@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}}`,$h=p`${Ys} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function yh(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${Ge(o)} <span class=content part=content><slot></slot></span>${dt(o)}</template>`}const xh=yh(),kh={name:vh,registry:u.registry,styles:$h,template:xh},Cr=CSS.supports("anchor-name: --a"),wh="anchor"in HTMLElement.prototype,Js=CSS.supports("selector(:state(g))"),Zs=new Map;function _(o){return Zs.get(o)??Zs.set(o,Js?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!Js){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Ei=new WeakMap;function Qs(o,e){if(!o||!e)return!1;if(Ei.has(o))return Ei.get(o).has(e);const t=new Set(Object.values(o));return Ei.set(o,t),t.has(e)}function At(o,e="",t="",r,i=""){y(o,`${i}${e}`,!1),(!r||Qs(r,t))&&y(o,`${i}${t}`,!0)}var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,ut=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sh(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&&Ch(e,t,i),i};class Xe 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 mh){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}}ut([a],Xe.prototype,"download",2),ut([a],Xe.prototype,"href",2),ut([a],Xe.prototype,"hreflang",2),ut([a],Xe.prototype,"ping",2),ut([a],Xe.prototype,"referrerpolicy",2),ut([a],Xe.prototype,"rel",2),ut([a],Xe.prototype,"target",2),ut([a],Xe.prototype,"type",2);var Ih=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Sr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ph(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&&Ih(e,t,i),i};class Wt extends Xe{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){At(this.elementInternals,e,t,gh)}shapeChanged(e,t){At(this.elementInternals,e,t,fh)}sizeChanged(e,t){At(this.elementInternals,e,t,bh)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}Sr([a],Wt.prototype,"appearance",2),Sr([a],Wt.prototype,"shape",2),Sr([a],Wt.prototype,"size",2),Sr([a({attribute:"icon-only",mode:"boolean"})],Wt.prototype,"iconOnly",2),ht(Wt,ct),Wt.define(kh);const ea={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"},ta={neutral:"neutral",brand:"brand",colorful:"colorful",...ea},_h=`${u.prefix}-avatar`,pt={fastOutSlowInMax:Us,fastOutSlowInMid:Tt,fastOutSlowInMin:Ud,slowOutFastInMax:qd,slowOutFastInMid:Ot,slowOutFastInMin:Wd,fastEase:Gs,normalEase:yr,nullEasing:zi},zh=p`${C("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:${B};border-radius:${pe};color:${K};background-color:${mo};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:${pe}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${P} ${I}}: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 ${fe} ${I}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${xo};font-weight:${N}}: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:${ge}}: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:${jt}}: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:${cr}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ne}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Es}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Bs}}:host([data-color='brand']){color:${ls};background-color:${ms}}:host([data-color='dark-red']){color:${Kc};background-color:${Xc}}:host([data-color='cranberry']){color:${Wc};background-color:${qc}}:host([data-color='red']){color:${yc};background-color:${$c}}:host([data-color='pumpkin']){color:${wd};background-color:${kd}}:host([data-color='peach']){color:${fd};background-color:${gd}}:host([data-color='marigold']){color:${Tc};background-color:${As}}:host([data-color='gold']){color:${Qc};background-color:${Zc}}:host([data-color='brass']){color:${Dc};background-color:${Lc}}:host([data-color='brown']){color:${Vc};background-color:${Hc}}:host([data-color='forest']){color:${Jc};background-color:${Yc}}:host([data-color='seafoam']){color:${zd};background-color:${_d}}:host([data-color='dark-green']){color:${Gc};background-color:${Uc}}:host([data-color='light-teal']){color:${nd};background-color:${id}}:host([data-color='teal']){color:${Ed};background-color:${Ad}}:host([data-color='steel']){color:${Td};background-color:${Od}}:host([data-color='blue']){color:${Mc};background-color:${Fc}}:host([data-color='royal-blue']){color:${Pd};background-color:${Id}}:host([data-color='cornflower']){color:${jc};background-color:${Rc}}:host([data-color='navy']){color:${pd};background-color:${ud}}:host([data-color='lavender']){color:${rd};background-color:${od}}:host([data-color='purple']){color:${Sd};background-color:${Cd}}:host([data-color='grape']){color:${td};background-color:${ed}}:host([data-color='lilac']){color:${ad};background-color:${sd}}:host([data-color='pink']){color:${md};background-color:${bd}}:host([data-color='magenta']){color:${cd};background-color:${ld}}:host([data-color='plum']){color:${xd};background-color:${yd}}:host([data-color='beige']){color:${Nc};background-color:${Bc}}:host([data-color='mink']){color:${hd};background-color:${dd}}:host([data-color='platinum']){color:${$d};background-color:${vd}}:host([data-color='anchor']){color:${Ec};background-color:${Ac}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${$r},${mr};transition-delay:${pt.fastEase},${pt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${$r},${Ws};transition-delay:${pt.fastEase},${pt.nullEasing}}:host([active])::before{box-shadow:${Md};border-style:solid;border-color:${ms}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${fe});border-width:${fe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Pe});border-width:${Pe}}: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 * ${Ci});border-width:${Ci}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${pr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${wi}}: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:${Ld}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${$r},${mr};transition-delay:${pt.fastOutSlowInMin},${pt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${$r},${Ws};transition-delay:${pt.fastOutSlowInMin},${pt.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}}`,Oh=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 Th(){return b`<slot class=default-slot ${X("slottedDefaults")} ${z("defaultSlot")}></slot><span class=monogram ${z("monogram")}>${o=>o.initials}</span> ${Oh}<slot name=badge></slot>`}const Ah=Th(),Eh={name:_h,registry:u.registry,styles:zh,template:Ah},Bh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Nh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Fh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Mh=/\s+/g,Lh=/[\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 Dh(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 Hh(o){return o=o.replace(Bh,""),o=o.replace(Nh,""),o=o.replace(Mh," "),o=o.trim(),o}function oa(o,e,t){return!o||(o=Hh(o),Lh.test(o)||!t?.allowPhoneInitials&&Fh.test(o))?"":Dh(o,e,t?.firstInitialOnly)}var Vh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rh(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&&Vh(e,t,i),i};class Ut 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)}T.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||oa(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()})}}Io([g],Ut.prototype,"defaultSlot",2),Io([g],Ut.prototype,"monogram",2),Io([g],Ut.prototype,"slottedDefaults",2),Io([a],Ut.prototype,"name",2),Io([a],Ut.prototype,"initials",2);var jh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,Gt=(o,e,t,r)=>{for(var i=r>1?void 0:r?qh(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&&jh(e,t,i),i};const gt=class cn extends Ut{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||oa(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ta.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?cn.colors[Uh(this.name??"")%cn.colors.length]:this.color??ta.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)}};gt.colors=Object.values(ea),Gt([a],gt.prototype,"active",2),Gt([a],gt.prototype,"shape",2),Gt([a],gt.prototype,"appearance",2),Gt([a({converter:oe})],gt.prototype,"size",2),Gt([a],gt.prototype,"color",2),Gt([a({attribute:"color-id"})],gt.prototype,"colorId",2);let Wh=gt;const Uh=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};Wh.define(Eh);const Gh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Xh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Kh=`${u.prefix}-badge`,ra=p.partial`${C("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:${W};min-width:20px;height:20px;padding-inline:calc(${re} + ${R});border-radius:${pe};border-color:${Y};background-color:${gs};color:${et};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}`,ia=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:${xo};line-height:${hr};padding-inline:calc(${R} + ${R})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${L};line-height:${W};padding-inline:calc(${re} + ${R})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${L};line-height:${W};padding-inline:calc(${Ce} + ${R})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,na=p.partial`:host([color='danger']){background-color:${ws};color:${et}}:host([color='important']){background-color:${O};color:${I}}:host([color='informative']){background-color:${cc};color:${K}}:host([color='severe']){background-color:${zs};color:${et}}:host([color='subtle']){background-color:${I};color:${O}}:host([color='success']){background-color:${Ps};color:${et}}:host([color='warning']){background-color:${_c};color:${ac}}`,sa=p.partial`:host([appearance='ghost']){color:${or};background-color:initial}:host([appearance='ghost'][color='danger']){color:${Ss}}:host([appearance='ghost'][color='important']){color:${O}}:host([appearance='ghost'][color='informative']){color:${K}}:host([appearance='ghost'][color='severe']){color:${Ts}}:host([appearance='ghost'][color='subtle']){color:${Ct}}:host([appearance='ghost'][color='success']){color:${Sc}}:host([appearance='ghost'][color='warning']){color:${xi}}`,Yh=p.partial`:host([appearance='outline']){border-color:currentColor;color:${or};background-color:initial}:host([appearance='outline'][color='danger']){color:${Ss}}:host([appearance='outline'][color='important']){color:${K};border-color:${We}}:host([appearance='outline'][color='informative']){color:${K};border-color:${yo}}:host([appearance='outline'][color='severe']){color:${Ts}}:host([appearance='outline'][color='subtle']){color:${ls}}:host([appearance='outline'][color='success']){color:${Cc}}:host([appearance='outline'][color='warning']){color:${xi}}`,Jh=p.partial`:host([appearance='tint']){background-color:${vs};color:${sc};border-color:${ys}}:host([appearance='tint'][color='danger']){background-color:${ks};color:${yi};border-color:${Cs}}:host([appearance='tint'][color='important']){background-color:${K};color:${I};border-color:${Y}}:host([appearance='tint'][color='informative']){background-color:${lc};color:${K};border-color:${yo}}:host([appearance='tint'][color='severe']){background-color:${_s};color:${Ic};border-color:${Os}}:host([appearance='tint'][color='subtle']){background-color:${I};color:${K};border-color:${yo}}:host([appearance='tint'][color='success']){background-color:${Is};color:${wc};border-color:${kc}}:host([appearance='tint'][color='warning']){background-color:${Pc};color:${xi};border-color:${zc}}`,Zh=p`:host([shape='square']){border-radius:${lr}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ne}}${Jh} ${Yh} ${sa} ${na} ${ia} ${ra} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Qh(o={}){return b`${Ge(o)}<slot>${be(o.defaultContent)}</slot>${dt(o)}`}const eu=Qh(),tu={name:Kh,registry:u.registry,styles:Zh,template:eu};var ou=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,Ir=(o,e,t,r)=>{for(var i=r>1?void 0:r?ru(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&&ou(e,t,i),i};class Xt extends k{constructor(){super(...arguments),this.appearance=Gh.filled,this.color=Xh.brand}}Ir([a],Xt.prototype,"appearance",2),Ir([a],Xt.prototype,"color",2),Ir([a],Xt.prototype,"shape",2),Ir([a],Xt.prototype,"size",2),ht(Xt,ct),Xt.define(tu);function Bi(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ge(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot></span>${dt(o)}</template>`}const iu=Bi(),nu={name:ph,registry:u.registry,styles:wr,template:iu};function tt(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)&&T.enqueue(()=>{o.focus()})}var su=Object.defineProperty,au=Object.getOwnPropertyDescriptor,_e=(o,e,t,r)=>{for(var i=r>1?void 0:r?au(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&&su(e,t,i),i};class me 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!==kr.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(),tt(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 kr.reset:{this.resetForm();break}case kr.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!==kr.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)}}}}me.formAssociated=!0,_e([g],me.prototype,"defaultSlottedContent",2),_e([a({mode:"boolean"})],me.prototype,"disabled",2),_e([a({attribute:"disabled-focusable",mode:"boolean"})],me.prototype,"disabledFocusable",2),_e([a({attribute:"formaction"})],me.prototype,"formAction",2),_e([a({attribute:"form"})],me.prototype,"formAttribute",2),_e([a({attribute:"formenctype"})],me.prototype,"formEnctype",2),_e([a({attribute:"formmethod"})],me.prototype,"formMethod",2),_e([a({attribute:"formnovalidate",mode:"boolean"})],me.prototype,"formNoValidate",2),_e([a({attribute:"formtarget"})],me.prototype,"formTarget",2),_e([a],me.prototype,"name",2),_e([a],me.prototype,"type",2),_e([a],me.prototype,"value",2);var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?cu(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&&lu(e,t,i),i};class ot extends me{constructor(){super(...arguments),this.iconOnly=!1}}Pr([a],ot.prototype,"appearance",2),Pr([a],ot.prototype,"shape",2),Pr([a],ot.prototype,"size",2),Pr([a({attribute:"icon-only",mode:"boolean"})],ot.prototype,"iconOnly",2),ht(ot,ct),ot.define(nu);const du=`${u.prefix}-checkbox`,hu=_("active"),uu=_("bad-input"),x=_("checked"),pu=_("custom-error"),gu=_("description"),ve=_("disabled"),v=":is([disabled], :disabled)";_("error");const fu=_("flip-block"),bu=_("focus-visible");_("has-message");const Et=_("indeterminate"),Kt=_("multiple"),mu=_("open"),vu=_("pattern-mismatch"),$u=_("placeholder-shown"),M=_("pressed"),yu=_("range-overflow"),xu=_("range-underflow"),ku=_("required"),Ni=_("selected"),wu=_("step-mismatch"),aa=_("submenu"),Cu=_("too-long"),Su=_("too-short"),Iu=_("type-mismatch"),Pu=_("user-invalid"),_u=_("valid"),zu=_("value-missing"),Ou=p`${C("inline-flex")} :host{--size:16px;background-color:${I};border-radius:${Ne};border:${P} solid ${We};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${It}}:host(:active){border-color:${Pt}}:host(${x}:hover){background-color:${Vt};border-color:${bc}}:host(${x}:active){background-color:${Rt};border-color:${xs}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${fe} solid ${Y};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}.indeterminate-indicator,.checked-indicator{color:${Ct};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(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Et}){border-color:${lt}}:host(${x}),:host(${Et}) .indeterminate-indicator{background-color:${St}}:host(${Et}) .indeterminate-indicator{border-radius:${Ne};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:${pe}}:host(${v}),:host(${v}${x}){background-color:${at};border-color:${ke}}:host(${v}){cursor:unset}:host(${v}${Et}) .indeterminate-indicator{background-color:${ke}}:host(${v}${x}) .checked-indicator{color:${ke}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${v}):hover),:host(${x}:not(${v}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Et}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not(${v}):hover),:host(${Et}:not(${v}):hover) .indeterminate-indicator{background-color:Highlight}:host(${v}){border-color:GrayText}:host(${v}${Et}) .indeterminate-indicator{background-color:GrayText}:host(${v}),:host(${v}${x}) .checked-indicator{color:GrayText}}`,Tu=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>'),Au=b.partial("<span class=indeterminate-indicator></span>");function Eu(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>${be(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${be(o.indeterminateIndicator)}</slot></template>`}const Bu=Eu({checkedIndicator:Tu,indeterminateIndicator:Au}),Nu={name:du,registry:u.registry,styles:Ou,template:Bu};var Fu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mu(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&&Fu(e,t,i),i};class Le 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(),y(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",y(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(),tt(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}}Le.formAssociated=!0,Bt([g],Le.prototype,"disabled",2),Bt([a({attribute:"disabled",mode:"boolean"})],Le.prototype,"disabledAttribute",2),Bt([a({attribute:"form"})],Le.prototype,"formAttribute",2),Bt([a({attribute:"checked",mode:"boolean"})],Le.prototype,"initialChecked",2),Bt([a({attribute:"value",mode:"fromView"})],Le.prototype,"initialValue",2),Bt([a],Le.prototype,"name",2),Bt([a({mode:"boolean"})],Le.prototype,"required",2);var Lu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,Fi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Du(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&&Lu(e,t,i),i};class _r extends Le{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Fi([g],_r.prototype,"indeterminate",2),Fi([a],_r.prototype,"shape",2),Fi([a],_r.prototype,"size",2),_r.define(Nu);const Hu=`${u.prefix}-compound-button`,Vu=p`${wr} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Be};line-height:100%;font-size:${L};font-weight:${N}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Ht}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${et}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Be}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${er}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${tr}}:host( :is( :disabled,:disabled[appearance],[disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance] ) ) ::slotted([slot='description']){color:${A}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${Ce}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${re}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Fe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ge};line-height:${we}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled],[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function Ru(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ge(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot><slot name=description></slot></span>${dt(o)}</template>`}const ju=Ru(),qu={name:Hu,registry:u.registry,styles:Vu,template:ju};class Wu extends ot{}Wu.define(qu);const Uu=`${u.prefix}-counter-badge`,Gu=p`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ne}}${ia} ${na} ${sa} ${ra} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Xu(o={}){return b`${Ge(o)} <span>${e=>e.displayValue}</span> ${dt(o)}`}const Ku=Xu(),Yu={name:Uu,registry:u.registry,styles:Gu,template:Ku};var Ju=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zu(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&&Ju(e,t,i),i};class Yt 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}`}}Po([a({converter:oe})],Yt.prototype,"count",2),Po([a({attribute:"overflow-count",converter:oe})],Yt.prototype,"overflowCount",2),Po([a({attribute:"show-zero",mode:"boolean"})],Yt.prototype,"showZero",2),Po([a({mode:"boolean"})],Yt.prototype,"dot",2),Po([xe],Yt.prototype,"displayValue",1);var Qu=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var i=r>1?void 0:r?ep(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&&Qu(e,t,i),i};class Jt extends Yt{}zr([a],Jt.prototype,"appearance",2),zr([a],Jt.prototype,"color",2),zr([a],Jt.prototype,"shape",2),zr([a],Jt.prototype,"size",2),ht(Jt,ct),Jt.define(Yu);const Nt={modal:"modal",nonModal:"non-modal",alert:"alert"};function la(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const tp=`${u.prefix}-dialog`,op=p`@layer base{:host{--dialog-backdrop:${mi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${I};border-radius:${Bs};border:none;box-shadow:${qs};color:${O};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:${_i};transition-timing-function:${Tt};opacity:0}::backdrop{transition-timing-function:${zi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Ot}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${P} solid ${Y}}}}`,rp=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()} ${z("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,ip={name:tp,registry:u.registry,styles:op,template:rp};var np=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,Ke=(o,e,t,r)=>{for(var i=r>1?void 0:r?sp(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&&np(e,t,i),i};class De 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!==Nt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Nt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),T.enqueue(()=>{this.type=this.type??Nt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){T.enqueue(()=>{this.emitBeforeToggle(),this.type===Nt.alert||this.type===Nt.modal?this.dialog.showModal():this.type===Nt.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!==Nt.alert&&e.target===this.dialog&&this.hide(),!0}}Ke([g],De.prototype,"dialog",2),Ke([a({attribute:"aria-describedby"})],De.prototype,"ariaDescribedby",2),Ke([a({attribute:"aria-labelledby"})],De.prototype,"ariaLabelledby",2),Ke([a({attribute:"aria-label"})],De.prototype,"ariaLabel",2),Ke([a],De.prototype,"type",2),Ke([xe],De.prototype,"dialogDescribedby",1),Ke([xe],De.prototype,"dialogLabel",1),Ke([xe],De.prototype,"dialogLabelledby",1),Ke([xe],De.prototype,"dialogModal",1),Ke([xe],De.prototype,"dialogRole",1),De.define(ip);const ap=`${u.prefix}-dialog-body`,lp=p`${C("grid")} :host{background:${I};box-sizing:border-box;gap:${ce};padding:${zt} ${gr};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${I};color:${O};column-gap:8px;display:flex;font-family:${$};font-size:${jt};font-weight:${V};inset-block-start:0;justify-content:space-between;line-height:${ur};margin-block-end:calc(${ce} * -1);margin-block-start:calc(${zt} * -1);padding-block-end:${ce};padding-block-start:${zt}}.content{box-sizing:border-box;color:${O};font-family:${$};font-size:${B};font-weight:${N};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${I};display:flex;flex-direction:column;gap:${ce};inset-block-end:0;margin-block-end:calc(${zt} * -1);padding-block-end:${zt};padding-block-start:${Ii}}::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(${ce} * -1);padding-block-start:${ce}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,cp=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>`,dp={name:ap,registry:u.registry,styles:lp,template:cp};class hp extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;la(t)&&t.hide()}return!0}}hp.define(dp);const Se={horizontal:"horizontal",vertical:"vertical"},_o={separator:"separator",presentation:"presentation"},ca=Se,up=`${u.prefix}-divider`,pp=p`${C("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${P}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Be};font-family:${$};font-size:${L};font-weight:${N};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${P};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ue}}:host([appearance='strong']) ::slotted(*){color:${O}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${$s}}:host([appearance='brand']) ::slotted(*){color:${or}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${gc}}:host([appearance='subtle']) ::slotted(*){color:${K}}@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 gp(){return b`<slot></slot>`}const fp=gp(),bp={name:up,registry:u.registry,styles:pp,template:fp};var mp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,da=(o,e,t,r)=>{for(var i=r>1?void 0:r?vp(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&&mp(e,t,i),i};class Mi extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??_o.separator,this.role!==_o.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ca.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??_o.separator}`),t===_o.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==_o.presentation?t??null:null,At(this.elementInternals,e,t,ca)}}da([a],Mi.prototype,"role",2),da([a],Mi.prototype,"orientation",2);var $p=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,Li=(o,e,t,r)=>{for(var i=r>1?void 0:r?yp(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&&$p(e,t,i),i};class Or extends Mi{}Li([a({attribute:"align-content"})],Or.prototype,"alignContent",2),Li([a],Or.prototype,"appearance",2),Li([a({mode:"boolean"})],Or.prototype,"inset",2),Or.define(bp);const xp={start:"start",end:"end"},kp={small:"small",medium:"medium",large:"large",full:"full"},zo={nonModal:"non-modal",modal:"modal",inline:"inline"},wp=`${u.prefix}-drawer`,Cp=p`${C("block")} :host{--dialog-backdrop:${mi}}: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:${I};border-radius:0;border:${P} solid ${Y};border-inline-end-color:${Y};border-inline-start-color:var(--drawer-separator,${Y});box-shadow:${qs};box-sizing:border-box;color:${O};font-family:${$};font-size:${B};font-weight:${N};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${gr});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:${_i};transition-timing-function:${Tt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${Ot}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${Ot}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${_i};transition-timing-function:${Tt};background:var(--dialog-backdrop,${mi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${zi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Sp(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${z("dialog")}><slot></slot></dialog>`}const Ip=Sp(),Pp={name:wp,registry:u.registry,styles:Cp,template:Ip};var _p=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var i=r>1?void 0:r?zp(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&&_p(e,t,i),i};class Ie extends k{constructor(){super(...arguments),this.position=xp.start,this.size=kp.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===zo.modal)return!0}get dialogRole(){return this.dialog&&this.type===zo.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),T.enqueue(()=>{this.type=this.type??zo.modal})}show(){T.enqueue(()=>{this.emitBeforeToggle(),this.type===zo.inline||this.type===zo.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()}}ze([a],Ie.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ie.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ie.prototype,"ariaDescribedby",2),ze([a],Ie.prototype,"position",2),ze([g],Ie.prototype,"role",2),ze([a({attribute:"size"})],Ie.prototype,"size",2),ze([g],Ie.prototype,"dialog",2),ze([xe],Ie.prototype,"dialogDescribedby",1),ze([xe],Ie.prototype,"dialogLabel",1),ze([xe],Ie.prototype,"dialogLabelledby",1),ze([xe],Ie.prototype,"dialogModal",1),ze([xe],Ie.prototype,"dialogRole",1),Ie.define(Pp);const Op=`${u.prefix}-drawer-body`,ha=p.partial`font-family:${$};font-size:${B};line-height:${D};font-weight:${N};`;p.partial`font-family:${$};font-size:${B};line-height:${D};font-weight:${V};`,p.partial`font-family:${$};font-size:${B};line-height:${D};font-weight:${dr};`;const Tp=p.partial`font-family:${$};font-size:${ge};line-height:${we};font-weight:${N};`,ua=p.partial`font-family:${$};font-size:${L};line-height:${W};font-weight:${N};`;p.partial`font-family:${$};font-size:${L};line-height:${W};font-weight:${V};`,p.partial`font-family:${$};font-size:${L};line-height:${W};font-weight:${dr};`,p.partial`font-family:${$};font-size:${xo};line-height:${hr};font-weight:${N};`,p.partial`font-family:${$};font-size:${xo};line-height:${hr};font-weight:${V};`;const Ap=p.partial`font-family:${$};font-size:${jt};line-height:${ur};font-weight:${V};`;p.partial`font-family:${$};font-size:${ge};line-height:${we};font-weight:${V};`,p.partial`font-family:${$};font-size:${ge};line-height:${we};font-weight:${dr};`,p.partial`font-family:${$};font-size:${Fs};line-height:${Vs};font-weight:${V};`,p.partial`font-family:${$};font-size:${Ns};line-height:${Hs};font-weight:${V};`,p.partial`font-family:${$};font-size:${cr};line-height:${Ds};font-weight:${V};`,p.partial`font-family:${$};font-size:${Ms};line-height:${Rs};font-weight:${V};`,p.partial`font-family:${$};font-size:${Ls};line-height:${js};font-weight:${V};`;const Ep=p`${C("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Hd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Ap}}.footer{display:flex;justify-content:flex-start;gap:${Q}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Bp(){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 Np=Bp(),Fp={name:Op,registry:u.registry,styles:Ep,template:Np};class Mp extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;la(t,"-drawer")&&t.hide()}return!0}}Mp.define(Fp);const Lp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Di={combobox:"combobox",dropdown:"dropdown",select:"select"},Dp=`${u.prefix}-dropdown`,Hp=p`${C("inline-flex")} :host{box-sizing:border-box;color:${O};cursor:pointer}:host(${$u}){color:${fi}}.control{appearance:none;background-color:${I};border-radius:${S};border:${P} solid ${Y};box-shadow:inset 0 0 0 ${P} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${ko} ${Me};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${ha}}:host([size='small']) .control{column-gap:${R};padding:${qt} ${Ce};${ua}}:host([size='large']) .control{column-gap:${Fe};padding:${ce} ${Q};${Tp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${K};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${P}}.control::after{background-color:${lt};height:${fe};scale:0 1;transition:scale ${Pi} ${Tt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${ar};outline:${fe} solid ${le}}:host(:where(${mu},:focus-within)) .control::after{scale:1 1;transition-duration:${vr};transition-timing-function:${Ot}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${We}}:host([appearance='transparent']) .control{--control-border-color:${vi};background-color:${ue};border-radius:${lr}}:host([appearance='outline']) .control{--control-border-color:${Ue}}:host([appearance='outline']) .control:hover{--control-border-color:${_t}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${It}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${$o}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${Pt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Rt}}:host([appearance='filled-darker']) .control{background-color:${bo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${Y}}: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:${ke};background-color:${at};color:${A}}::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} + (${ko} * 2) + ${P})}:host([size='small']){--margin-offset:calc(${W} + (${qt} * 2) + ${P})}:host([size='large']){--margin-offset:calc(${we} + (${ce} * 2) + ${P})}}@media (forced-colors:active){:host(${v}) .control{border-color:GrayText}:host(${v}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Vp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${z("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>`,Rp=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${z("control")}>`,jp=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 ${z("control")}>${o=>o.displayValue}</button>`;function qp(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 ${z("controlSlot")}></slot><slot name=indicator ${z("indicatorSlot")}>${be(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const Wp=qp({indicator:Vp}),Up={name:Dp,registry:u.registry,styles:Hp,template:Wp};function pa(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gp=`${u.prefix}-listbox`;function Ft(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Xp=`${u.prefix}-option`,ft={ltr:"ltr",rtl:"rtl"},ga=o=>o.closest("[dir]")?.dir==="rtl"?ft.rtl:ft.ltr;function fa(o){return o.closest("[lang]")?.lang??"en"}let Kp=0;function Ye(o="id-"){const e=`${o}${Kp++}`;return document.getElementById(e)?Ye(o):e}var Yp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jp(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&&Yp(e,t,i),i};const j=class so extends k{constructor(){super(),this.activeIndex=0,this.id=Ye("dropdown-"),this.required=!1,this.type=Di.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||ga(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.active=n===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ye("input-"))}disabledChanged(e,t){this.listbox&&T.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(fa(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(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"),T.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()}),Cr){const i=Ye("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&T.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Cr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Ft(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Di.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Ft(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(Ft(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(fa(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===Di.combobox){Rp.render(this,this);return}jp.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!Ft(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;So(this,()=>{const r=t.assignedElements().find(i=>pa(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(),T.enqueue(()=>{this.insertControl()}),tt(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:n})=>{if(pa(n)){if(r.bottom>window.innerHeight){y(n.elementInternals,"flip-block",!0);return}r.top<0&&y(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.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}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,J([xe],j.prototype,"activeDescendant",1),J([g],j.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),J([g],j.prototype,"control",2),J([a({mode:"boolean"})],j.prototype,"disabled",2),J([xe],j.prototype,"displayValue",1),J([a({attribute:"id"})],j.prototype,"id",2),J([g],j.prototype,"indicator",2),J([g],j.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),J([g],j.prototype,"listbox",2),J([a({mode:"boolean"})],j.prototype,"multiple",2),J([a],j.prototype,"name",2),J([g],j.prototype,"open",2),J([a],j.prototype,"placeholder",2),J([a({mode:"boolean"})],j.prototype,"required",2),J([a],j.prototype,"type",2),J([a({attribute:"value"})],j.prototype,"valueAttribute",2);let Zp=j;var Qp=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?eg(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&&Qp(e,t,i),i};class Hi extends Zp{constructor(){super(...arguments),this.appearance=Lp.outline}}ba([a],Hi.prototype,"appearance",2),ba([a],Hi.prototype,"size",2),Hi.define(Up);const tg={above:"above",after:"after",before:"before"},Oe={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"},og=`${u.prefix}-field`,rg=p`${C("inline-grid")} :host{color:${O};align-items:center;gap:0 ${Q};justify-items:start}:has([slot='message']){color:${O};row-gap:${ce}}: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:${Q}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${fr}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Vd}}:host(${ku}) ::slotted([slot='label'])::after{content:'*'/'';color:${yi};margin-inline-start:${re}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${K};font-family:${$};font-size:${L};font-weight:${N};grid-area:message;line-height:${W};margin-block-start:${fr}}:host(${bu}:focus-within){border-radius:${S};outline:${fe} solid ${le}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${B};font-weight:${N};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${L};line-height:${W}}:host([size='large']) ::slotted(label){font-size:${ge};line-height:${we}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${V}}:host(${ve}){cursor:default}::slotted([flag]){display:none}:host(${uu}) ::slotted([flag='${Oe.badInput}']),:host(${pu}) ::slotted([flag='${Oe.customError}']),:host(${vu}) ::slotted([flag='${Oe.patternMismatch}']),:host(${yu}) ::slotted([flag='${Oe.rangeOverflow}']),:host(${xu}) ::slotted([flag='${Oe.rangeUnderflow}']),:host(${wu}) ::slotted([flag='${Oe.stepMismatch}']),:host(${Cu}) ::slotted([flag='${Oe.tooLong}']),:host(${Su}) ::slotted([flag='${Oe.tooShort}']),:host(${Iu}) ::slotted([flag='${Oe.typeMismatch}']),:host(${zu}) ::slotted([flag='${Oe.valueMissing}']),:host(${_u}) ::slotted([flag='${Oe.valid}']){display:block}`,ig=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 ${X("labelSlot")}></slot><slot name=input part=input ${X("slottedInputs")}></slot><slot name=message part=message ${X({property:"messageSlot",filter:po("[flag]")})}></slot></template>`,ng={name:og,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:rg,template:ig};var sg=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,Tr=(o,e,t,r)=>{for(var i=r>1?void 0:r?ag(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&&sg(e,t,i),i};class Oo 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){y(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)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ye("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Oe))y(this.elementInternals,t,this.input.validity[e])}}Tr([g],Oo.prototype,"labelSlot",2),Tr([g],Oo.prototype,"messageSlot",2),Tr([g],Oo.prototype,"slottedInputs",2),Tr([g],Oo.prototype,"input",2);var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,dg=(o,e,t,r)=>{for(var i=r>1?void 0:r?cg(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&&lg(e,t,i),i};class ma extends Oo{constructor(){super(...arguments),this.labelPosition=tg.above}}dg([a({attribute:"label-position"})],ma.prototype,"labelPosition",2),ma.define(ng);const hg=`${u.prefix}-image`,ug=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 ${yo}}: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:${pr}}:host([shape='circular']) ::slotted(img){border-radius:${pe}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,pg=b`<slot></slot>`,gg={name:hg,registry:u.registry,styles:ug,template:pg};var fg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?bg(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&&fg(e,t,i),i};class Zt extends k{}To([a({mode:"boolean"})],Zt.prototype,"block",2),To([a({mode:"boolean"})],Zt.prototype,"bordered",2),To([a({mode:"boolean"})],Zt.prototype,"shadow",2),To([a],Zt.prototype,"fit",2),To([a],Zt.prototype,"shape",2),Zt.define(gg);const mg=`${u.prefix}-label`,vg=p`${C("inline-flex")} :host{color:${O};cursor:pointer;font-family:${$};font-size:${B};font-weight:${N};line-height:${D};user-select:none}.asterisk{color:${yi};margin-inline-start:${re}}:host([size='small']){font-size:${L};line-height:${W}}:host([size='large']){font-size:${ge};line-height:${we}}:host(:is([size='large'],[weight='semibold'])){font-weight:${V}}:host([disabled]),:host([disabled]) .asterisk{color:${A}}`;function $g(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const yg=$g(),xg={name:mg,registry:u.registry,styles:vg,template:yg};var kg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Ar=(o,e,t,r)=>{for(var i=r>1?void 0:r?wg(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&&kg(e,t,i),i};class Ao extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Ar([a],Ao.prototype,"size",2),Ar([a],Ao.prototype,"weight",2),Ar([a({mode:"boolean"})],Ao.prototype,"disabled",2),Ar([a({mode:"boolean"})],Ao.prototype,"required",2),Ao.define(xg);const Cg=`${u.prefix}-link`,Sg=p`${C("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Yl};cursor:pointer;font-family:${$};font-size:${B};font-weight:${N};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:${Jl}}:host(:active){color:${Zl}}:host([appearance='subtle']:hover){color:${ec}}:host([appearance='subtle']:active){color:${tc}}}:host([appearance='subtle']){color:${Ql}}: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:${le}}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Ig(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Pg=Ig(),_g={name:Cg,registry:u.registry,styles:Sg,template:Pg};var zg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,va=(o,e,t,r)=>{for(var i=r>1?void 0:r?Og(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&&zg(e,t,i),i};class Vi extends Xe{constructor(){super(...arguments),this.inline=!1}}va([a],Vi.prototype,"appearance",2),va([a({mode:"boolean"})],Vi.prototype,"inline",2),Vi.define(_g);const Tg=p`${C("inline-flex")} :host{background-color:${I};border-radius:${S};border:${P} solid ${Y};box-shadow:${wi};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${re};row-gap:${R};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]${fu}){margin-block-start:revert;translate:0 -100%}}`;function Ag(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${z("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Eg=Ag(),Bg={name:Gp,registry:u.registry,styles:Tg,template:Eg};var Ng=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fg(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&&Ng(e,t,i),i};class Qt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),T.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=>Ft(e)&&!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Ft(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),So(this,()=>{this.id=this.id||Ye("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){So(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Ft(r));this.options=t}})}}Eo([g],Qt.prototype,"defaultSlot",2),Eo([g],Qt.prototype,"multiple",2),Eo([g],Qt.prototype,"options",2),Eo([g],Qt.prototype,"selectedIndex",2),Eo([g],Qt.prototype,"dropdown",2),Qt.define(Bg);const Mg=`${u.prefix}-menu-button`,Lg=wr,Dg=Bi({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>')}),Hg={name:Mg,registry:u.registry,styles:Lg,template:Dg};class Vg extends ot{}Vg.define(Hg);const ie={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ie.menuitem+"",ie.menuitemcheckbox+"",ie.menuitemradio+"";function Rg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const jg=`${u.prefix}-menu-item`,qg=p`${C("flex")} :host{align-items:center;background:${I};border-radius:${S};box-sizing:border-box;color:${Be};cursor:pointer;font:${N} ${B}/${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:${rr};color:${Dt}}:host(:active){background-color:${cs};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${rc}}:host(${ve}){background-color:${at};color:${A}}:host(${ve}) ::slotted([slot='start']),:host(${ve}) ::slotted([slot='end']){color:${A}}:host(:focus-visible){border-radius:${S};outline:2px solid ${le}}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${aa})) .submenu-glyph,:host(:not(${aa})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${K};font:${N} ${L}/${W} ${$};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(${ve}),:host(${ve}) ::slotted([slot='start']),:host(${ve}) ::slotted([slot='end']){color:GrayText}}`,Wg=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>'),Ug=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 Gg(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>${be(o.indicator)}</slot>${Ge(o)}<div part=content class=content><slot></slot></div>${dt(o)}<slot name=submenu-glyph>${be(o.submenuGlyph)}</slot><slot name=submenu ${X({property:"slottedSubmenu"})}></slot></template>`}const Xg=Gg({indicator:Wg,submenuGlyph:Ug}),Kg={name:jg,registry:u.registry,styles:qg,template:Xg};var Yg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jg(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&&Yg(e,t,i),i};class rt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ie.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 ie.menuitemcheckbox:this.checked=!this.checked;break;case ie.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ie.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,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ie.menuitem}checkedChanged(e,t){const r=this.role!==ie.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,y(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",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ie.menuitem,this.elementInternals.ariaChecked=this.role!==ie.menuitem?`${!!this.checked}`:null,tt(this)}}eo([a({mode:"boolean"})],rt.prototype,"disabled",2),eo([a],rt.prototype,"role",2),eo([a({mode:"boolean"})],rt.prototype,"checked",2),eo([a({mode:"boolean"})],rt.prototype,"hidden",2),eo([g],rt.prototype,"slottedSubmenu",2),eo([g],rt.prototype,"submenu",2),ht(rt,ct),rt.define(Kg);const Zg=`${u.prefix}-menu-list`,Qg=p`${C("grid")} :host{--_col-indicator-width:0px;--_col-start-width:0px;--_col-content-width:1fr;--_col-end-width:0px;--_col-submenu-width:0px;contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${I};border:1px solid ${Y};border-radius:${S};box-shadow:${wi};grid-template-columns:10px var(--_col-indicator-width) var(--_col-start-width) var(--_col-content-width) var(--_col-end-width) var(--_col-submenu-width) 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}:host(:has(>[role='menuitemradio'],>[role='menuitemcheckbox'])){--_col-indicator-width:24px}:host(:has(>*>[slot='start'])){--_col-start-width:24px}:host(:has(>*>[slot='end'])){--_col-end-width:24px}:host(:has(>*>[slot='submenu'])){--_col-submenu-width:24px}@scope{:scope:has(>[role='menuitemradio'],>[role='menuitemcheckbox']){--_col-indicator-width:24px}:scope:has(>*>[slot='start']){--_col-start-width:24px}:scope:has(>*>[slot='end']){--_col-end-width:24px}:scope:has(>*>[slot='submenu']){--_col-submenu-width:24px}}`;function ef(){return b`<template focusgroup=menu><slot ${X("items")}></slot></template>`}const tf=ef(),of={name:Zg,registry:u.registry,styles:Qg,template:tf};var Bo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Ri={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function ji(o,e){return o.contains(e)}function rf(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function nf(o,e,t){const r="forward",i="backward",n="block",s="inline";if(sf(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:h}=window.getComputedStyle(e),d=!l.startsWith("horizontal-"),c=h==="rtl",f=d?n:s,w=d?s:n,E=d?l.endsWith("-rl")!==c:c,q=d&&c,se={ArrowUp:{axis:w,dir:q?r:i},ArrowDown:{axis:w,dir:q?i:r},ArrowLeft:{axis:f,dir:E?r:i},ArrowRight:{axis:f,dir:E?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!se||t&&se.axis&&se.axis!==t?null:se.dir}function sf(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 af=globalThis.__FOCUSGROUP_POLYFILL__,lf=af.o;function qi(){for(const o of lf)o.takeRecords()}var Er=class{#t;#e;#s=Ri.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(rf()||!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.#x.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(Bo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Ri.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Ri.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Bo.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(Bo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Bo.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(nf(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||!ji(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)}}#x(o){if(!o.relatedTarget||!ji(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&ji(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(Bo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,qi())}#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?.(),qi())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),qi()}};class Br{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 cf=Object.defineProperty,df=Object.getOwnPropertyDescriptor,hf=(o,e,t,r)=>{for(var i=r>1?void 0:r?df(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&&cf(e,t,i),i};const Wi=class Ba extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&hn(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===ie.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===ie.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"),T.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}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 Rg(e)||hn(e)&&!!e.role&&e.role in Ba.focusableElementRoles}};Wi.focusableElementRoles=ie,hf([g],Wi.prototype,"items",2);let uf=Wi;class pf extends uf{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Br(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}pf.define(of);const gf=`${u.prefix}-menu`,ff=p`${C("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 ${Ue};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 bf(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${z("primaryAction")}></slot><slot name=trigger ${X({property:"slottedTriggers",filter:po()})}></slot><slot ${X({property:"slottedMenuList",filter:po()})}></slot></template>`}const mf=bf(),vf={name:gf,registry:u.registry,styles:ff,template:mf};var $f=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?yf(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&&$f(e,t,i),i};class it extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof rt&&(e.target.getAttribute("role")===ie.menuitemcheckbox||e.target.getAttribute("role")===ie.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(){T.enqueue(()=>{this._menuList.focus()})}focusTrigger(){T.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}}}bt([a({attribute:"open-on-hover",mode:"boolean"})],it.prototype,"openOnHover",2),bt([a({attribute:"open-on-context",mode:"boolean"})],it.prototype,"openOnContext",2),bt([a({attribute:"close-on-scroll",mode:"boolean"})],it.prototype,"closeOnScroll",2),bt([a({attribute:"persist-on-item-click",mode:"boolean"})],it.prototype,"persistOnItemClick",2),bt([a({mode:"boolean"})],it.prototype,"split",2),bt([g],it.prototype,"slottedMenuList",2),bt([g],it.prototype,"slottedTriggers",2),bt([g],it.prototype,"primaryAction",2),it.define(vf);const xf=`${u.prefix}-message-bar`,kf=p`:host{display:grid;box-sizing:border-box;font-family:${$};font-size:${L};line-height:${W};width:100%;background:${bo};color:${K};border:1px solid ${Ue};padding-inline:${Q};border-radius:${S};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:${Is};border-color:${xc}}:host([intent='warning']){background-color:${_s};border-color:${Os}}:host([intent='error']){background-color:${ks};border-color:${Cs}}: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:${br};padding-inline:${Q}}.content{grid-area:body;padding-block:${br};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${K};margin-inline-end:${Fe}}: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:${Fe};gap:${Fe}}:host([layout='multiline']) .actions{margin-block-start:${br};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%}::slotted(*){font-size:inherit}`;function wf(){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 Cf=wf(),Sf={name:xf,registry:u.registry,styles:kf,template:Cf};var If=Object.defineProperty,Pf=Object.getOwnPropertyDescriptor,Ui=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pf(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&&If(e,t,i),i};class Nr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ui([a],Nr.prototype,"shape",2),Ui([a],Nr.prototype,"layout",2),Ui([a],Nr.prototype,"intent",2),Nr.define(Sf);const _f=p`${C("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${ha} align-items:center;background-color:${I};border-radius:${S};box-sizing:border-box;color:${Be};column-gap:${re};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${Ce};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${rr};color:${Dt}}:host(:active){background-color:${bi};color:${Ht}}:host(${v}){background-color:${I};color:${A};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(${Ni}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${I};border-radius:${Ne};border:${P} solid ${We};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Ni}) .checkmark-12-regular{background-color:${St};border-color:${lt};fill:${Ct}}:host(${v}${Kt}) .checkmark-12-regular{border-color:${ke}}:host(${v}${Kt}${Ni}) .checkmark-12-regular{background-color:${at}}:host(${hu}){border:${fe} solid ${le}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${Ce}}}:host(${gu}){column-gap:${Ce};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${K};grid-area:description;${ua}}@media (forced-colors:active){:host(${v}){color:GrayText}}`,zf=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 Of(o={}){return b`<slot name=checked-indicator>${be(o.checkedIndicator)}</slot>${Ge(o)}<div class=content part=content><slot ${X({property:"freeformOutputs",filter:po("output")})}></slot></div><div class=description part=description><slot name=description ${X("descriptionSlot")}></slot></div>`}const Tf=Of({checkedIndicator:zf}),Af={name:Xp,registry:u.registry,styles:_f,template:Tf};var Ef=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,$e=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bf(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&&Ef(e,t,i),i};class ne extends k{constructor(){super(),this.active=!1,this.id=Ye("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(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){y(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,T.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(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,$e([g],ne.prototype,"active",2),$e([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),$e([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),$e([g],ne.prototype,"descriptionSlot",2),$e([g],ne.prototype,"disabled",2),$e([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),$e([a({attribute:"form"})],ne.prototype,"formAttribute",2),$e([a({mode:"boolean"})],ne.prototype,"freeform",2),$e([a({attribute:"id"})],ne.prototype,"id",2),$e([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),$e([g],ne.prototype,"multiple",2),$e([a],ne.prototype,"name",2),$e([g],ne.prototype,"start",2),$e([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2),ne.define(Af);const Nf={success:"success",warning:"warning",error:"error"},Ff=`${u.prefix}-progress-bar`,Mf=p`${C("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${mo};border-radius:${S};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:${lr}}.indicator{background-color:${St};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,${mo} 0%,${ue} 50%,${mo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${ws}}:host([validation-state='warning']) .indicator{background-color:${zs}}:host([validation-state='success']) .indicator{background-color:${Ps}}@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 Lf(){return b`<div class=indicator part=indicator ${z("indicator")}></div>`}const Df=Lf(),Hf={name:Ff,registry:u.registry,styles:Mf,template:Df};var Vf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,No=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rf(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&&Vf(e,t,i),i};class to extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){At(this.elementInternals,e,t,Nf)}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>))")||T.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}%`)})}}No([g],to.prototype,"indicator",2),No([a({attribute:"validation-state"})],to.prototype,"validationState",2),No([a({converter:oe})],to.prototype,"value",2),No([a({converter:oe})],to.prototype,"min",2),No([a({converter:oe})],to.prototype,"max",2);var jf=Object.defineProperty,qf=Object.getOwnPropertyDescriptor,$a=(o,e,t,r)=>{for(var i=r>1?void 0:r?qf(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&&jf(e,t,i),i};class Gi extends to{}$a([a],Gi.prototype,"thickness",2),$a([a],Gi.prototype,"shape",2),Gi.define(Hf);const ya=Se,Wf=`${u.prefix}-radio-group`,Uf=p`${C("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ii}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${K}}::slotted(:hover){color:${Be}}::slotted(:active){color:${O}}::slotted(${ve}){color:${A}}::slotted(${x}){color:${O}}:host([slot='input']){margin:${ce} ${Fe}}`;function Gf(){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 ${X("slottedRadios")}></slot></template>`}const Xf=Gf(),Kf={name:Wf,registry:u.registry,styles:Uf,template:Xf};function Yf(o,e="-radio"){return dn(e)(o)}const Jf=`${u.prefix}-radio`;var Zf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,mt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qf(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&&Zf(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??ya.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??ya.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){T.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(r=>Yf(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,h)=>{h===0?l.elementInternals.setValidity(n,s,l):l.elementInternals.setValidity({})})}}}Je.formAssociated=!0,mt([g],Je.prototype,"checkedIndex",2),mt([a({attribute:"disabled",mode:"boolean"})],Je.prototype,"disabled",2),mt([a({attribute:"value",mode:"fromView"})],Je.prototype,"initialValue",2),mt([a],Je.prototype,"name",2),mt([a],Je.prototype,"orientation",2),mt([g],Je.prototype,"radios",2),mt([a({mode:"boolean"})],Je.prototype,"required",2),mt([g],Je.prototype,"slottedRadios",2);class eb extends Je{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Br(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}eb.define(Kf);const tb=p`${C("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${I};border:${P} solid ${We};border-radius:${pe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${pe};color:${Ct};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:${fe} solid ${Y};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}:host(:hover){border-color:${It}}:host(${x}){border-color:${lt}}:host(${x}) .checked-indicator{background-color:${St}}:host(${x}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${Pt}}:host(${x}:active) .checked-indicator{background-color:${Rt}}:host(:focus-visible){outline:none}:host(${ve}){background-color:${at};border-color:${ke}}:host(${x}${ve}) .checked-indicator{background-color:${ke}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${ve}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${ve}):hover) .checked-indicator{background-color:Highlight}:host(${ve}){border-color:GrayText;color:GrayText}:host(${ve}${x}) .checked-indicator{background-color:GrayText}}`,ob=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function rb(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>${be(o.checkedIndicator)}</slot></template>`}const ib=rb({checkedIndicator:ob}),nb={name:Jf,registry:u.registry,styles:tb,template:ib};class sb extends Le{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)}}sb.define(nb);const ab=`${u.prefix}-rating-display`;var lb=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,Fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?cb(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&&lb(e,t,i),i};const db=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Fr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class ro 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(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
            <svg
                viewBox="${r}"
                xmlns="http://www.w3.org/2000/svg"
            >${t}</svg>`,n=`
            <svg
                viewBox="${r}"
                xmlns="http://www.w3.org/2000/svg"
                fill="none"
                stroke="black"
                stroke-width="2"
            >${t}</svg>`;this.display.style.setProperty(oo.maskImageFilled,`url(${Fr(i)})`),this.display.style.setProperty(oo.maskImageOutlined,`url(${Fr(n)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||db)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(oo[e]):this.display.style.setProperty(oo[e],`${t}`)})}}Fo([g],ro.prototype,"iconSlot",2),Fo([a({converter:oe})],ro.prototype,"count",2),Fo([a({attribute:"icon-view-box"})],ro.prototype,"iconViewBox",2),Fo([a({converter:oe})],ro.prototype,"max",2),Fo([a({converter:oe})],ro.prototype,"value",2);const xa='<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" />',hb=`
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${xa}</svg>
`,ub=`
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
    fill="none" stroke="black" stroke-width="2"
>${xa}</svg>
`;function pb(){return b`<div ${z("display")} class=display aria-hidden=true></div><slot name=icon ${z("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 gb=pb(),fb=p`${C("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${Oc};--_icon-color-empty:${As};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Fr(hb)});--_mask-image-outlined:url(${Fr(ub)});--_mask-position-x:left;align-items:center;color:${O};font-family:${$};font-size:${L};line-height:${W};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:${B};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${O};--_icon-color-empty:${mo}}:host([color='brand']){--_icon-color-value:${or};--_icon-color-empty:${vs}}@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) + ${R});--_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) - ${R}/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:${re};font-weight:${V}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${R}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${Ce}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${re}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${R}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${Ce}}@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)}}`,bb={name:ab,registry:u.registry,styles:fb,template:gb};var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,Xi=(o,e,t,r)=>{for(var i=r>1?void 0:r?vb(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&&mb(e,t,i),i};class Mr extends ro{constructor(){super(...arguments),this.compact=!1}}Xi([a],Mr.prototype,"color",2),Xi([a],Mr.prototype,"size",2),Xi([a({mode:"boolean"})],Mr.prototype,"compact",2),Mr.define(bb);const $b=Se,yb={singleValue:"single-value"},xb=`${u.prefix}-slider`,kb=p`${C("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:${St};--track-color:${We};--slider-direction:90deg;--border-radius:${S};--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:${Vt}}:host(:active){--rail-color:${Rt}}:host(${v}){--rail-color:${A};--track-color:${at}}: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:${Ne}}: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 ${le};outline:1px solid ${ar}}: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),${I} calc(var(--step-rate) - 1px),${I} 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:${pe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${I} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ue};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 wb(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${z("track")} part=track-container class=track style=${e=>e.position}></div><div ${z("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${be(o.thumb)}</slot></div></template>`}const Cb=wb({thumb:'<div class="thumb"></div>'}),Sb={name:xb,registry:u.registry,styles:kb,template:Cb};function ka(o,e,t){return Math.min(Math.max(t,o),e)}const Ki={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 wa(o,e,t,r){let i=ka(0,1,(o-e)/(t-e));return r===ft.rtl&&(i=1-i),i}var Ib=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pb(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&&Ib(e,t,i),i};class U extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=ft.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=yb.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===Se.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===Se.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??$b.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=ka(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??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=ga(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")}),tt(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!==ft.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!==ft.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!==ft.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==ft.rtl&&this.orientation!==Se.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=wa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===Se.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=wa(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.orientation===Se.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){T.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}U.formAssociated=!0,ee([a],U.prototype,"size",2),ee([a({attribute:"value",mode:"fromView"})],U.prototype,"initialValue",2),ee([g],U.prototype,"direction",2),ee([g],U.prototype,"isDragging",2),ee([g],U.prototype,"position",2),ee([g],U.prototype,"trackWidth",2),ee([g],U.prototype,"trackMinWidth",2),ee([g],U.prototype,"trackHeight",2),ee([g],U.prototype,"trackLeft",2),ee([g],U.prototype,"trackMinHeight",2),ee([g],U.prototype,"valueTextFormatter",2),ee([a({mode:"boolean"})],U.prototype,"disabled",2),ee([a({converter:Ki})],U.prototype,"min",2),ee([a({converter:Ki})],U.prototype,"max",2),ee([a({converter:Ki})],U.prototype,"step",2),ee([a],U.prototype,"orientation",2),ee([a],U.prototype,"mode",2),U.define(Sb);const _b=`${u.prefix}-spinner`,zb=p`${C("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Pe};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${fe};--size:20px}:host([size='extra-small']){--indicatorSize:${fe};--size:24px}:host([size='small']){--indicatorSize:${fe};--size:28px}:host([size='large']){--indicatorSize:${Pe};--size:36px}:host([size='extra-large']){--indicatorSize:${Pe};--size:40px}:host([size='huge']){--indicatorSize:${Ci};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${yr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ys};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:${$s};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:${fc}}.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}}`,Ob=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>`,Tb={name:_b,registry:u.registry,styles:zb,template:Ob};class Ab extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Eb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bb(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&&Eb(e,t,i),i};class Yi extends Ab{}Ca([a],Yi.prototype,"size",2),Ca([a],Yi.prototype,"appearance",2),Yi.define(Tb);const Nb=`${u.prefix}-switch`,Fb=p`${C("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${ue};border:1px solid ${We};border-radius:${pe}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${It}}:host(:active){border-color:${Pt}}:host(${v}),:host([readonly]){border:1px solid ${ke};background-color:none;pointer:default}:host(${x}){background:${St};border-color:${St}}:host(${x}:hover){background:${Vt};border-color:${Vt}}:host(${x}:active){background:${Rt};border-color:${Rt}}:host(${x}${v}){background:${at};border-color:${ke}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${K};transition-duration:${vr};transition-timing-function:${yr};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${Ct};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${ic}}:host(${x}:active) .checked-indicator{background:${nc}}:host(:hover) .checked-indicator{background-color:${Gl}}:host(:active) .checked-indicator{background-color:${Xl}}:host(${v}) .checked-indicator,:host([readonly]) .checked-indicator{background:${A}}:host(${x}${v}) .checked-indicator{background:${A}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Y};outline:${fe} solid ${Y};outline-offset:1px;box-shadow:${pr},0 0 0 2px ${le}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(${v}) .checked-indicator,:host(${x}${v}) .checked-indicator{background-color:GrayText}}`;function Mb(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>${be(o.switch)}</slot></template>`}const Lb=Mb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Db={name:Nb,registry:u.registry,styles:Fb,template:Lb};class Hb extends Le{constructor(){super(),this.elementInternals.role="switch"}}Hb.define(Db);function Sa(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Vb=`${u.prefix}-tab`,Rb=p`${C("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:${B};color:${Be};fill:currentcolor;grid-row:1;padding:${Q} ${Me};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px;grid-column:3}:host([aria-selected='true']){color:${O};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:${lt};border-radius:${pe};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${_t};border-radius:${pe};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:${_t}}}:host([aria-selected='true'][disabled])::after{background-color:${A}}::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:${A};color:${A};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ne};box-shadow:0 0 0 3px ${le};outline:1px solid ${ar}}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function jb(o={}){return b`<template slot=tab role=tab>${Ge(o)} <span class=tab-content><slot></slot></span>${dt(o)}</template>`}const qb=jb({}),Wb={name:Vb,registry:u.registry,styles:Rb,template:qb};var Ub=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,Xb=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gb(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&&Ub(e,t,i),i};class Ji 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),tt(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Xb([a({mode:"boolean"})],Ji.prototype,"disabled",2),ht(Ji,ct),Ji.define(Wb);const Kb={subtle:"subtle",transparent:"transparent"},Lr=Se,Yb=`${u.prefix}-tablist`,Jb=p`${C("flex")} :host{--tabPaddingInline:${Me};--tabPaddingBlock:${Q};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Be};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ko};--tabPaddingInline:${Ce}}:host([size='large']){--tabPaddingBlock:${Ii};--tabPaddingInline:${Me}}:host([orientation='vertical']){--tabPaddingBlock:${ce};--tabIndicatorInsetBlock:${ce};--_col-start-width:0px;display:grid;grid-template-columns:${Me} var(--_col-start-width) 1fr auto ${Me}}:host(:has([slot='start'])){--_col-start-width:24px}@scope{:scope:has([slot='start']){--_col-start-width:24px}}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${fr};--tabIndicatorInsetBlock:${ko}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ce};--tabIndicatorInsetBlock:${br}}::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:${Pe};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Pe};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Pe};border-radius:${pe};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:${A}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Pe};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:${Pe};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${ge};line-height:${we}}: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:${A}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${A}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${A}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${A}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ir};color:${as};fill:${oc}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${vo};fill:${vo};color:${O}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${lt};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:${jd};transition-timing-function:${Us};z-index:3;border-radius:${pe};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Pe}}: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:${Pe};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${A}}}`,Zb=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 ${X("slottedTabs")}></slot></template>`,Qb={name:Yb,registry:u.registry,styles:Jb,template:Zb};var em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,Mo=(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&&em(e,t,i),i};class io extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Lr.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Lr.horizontal}disabledChanged(e,t){this.elementInternals&&y(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Lr.horizontal,At(this.elementInternals,e,t,Lr)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Sa(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=Ye("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")??"",h=r.getElementById(l);l&&h&&(h.role??(h.role="tabpanel"),h.hidden=this.activeid!==n.id,this.tabPanelMap.set(n,h))}}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(!Sa(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(),So(this,()=>{this.setTabs()},{shallow:!0})}}Mo([a({mode:"boolean"})],io.prototype,"disabled",2),Mo([a],io.prototype,"orientation",2),Mo([a],io.prototype,"activeid",2),Mo([g],io.prototype,"slottedTabs",2),Mo([g],io.prototype,"tabs",2);var om=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,Ia=(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&&om(e,t,i),i};class Zi extends io{constructor(){super(...arguments),this.appearance=Kb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Br(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ia([a],Zi.prototype,"appearance",2),Ia([a],Zi.prototype,"size",2),Zi.define(Qb);const im={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Dr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},nm=`${u.prefix}-textarea`,sm=p`${C("inline-block")} :host{--font-size:${B};--line-height:${D};--padding-inline:${Me};--padding-block:${ko};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${P};--control-padding-inline:${R};--color:${O};--background-color:${I};--border-color:${Ue};--border-block-end-color:${We};--placeholder-color:${fi};--focus-indicator-color:${lt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${$};font-size:var(--font-size);font-weight:${N};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${_t};--border-block-end-color:${It}}:host(:active){--border-color:${$o};--border-block-end-color:${Pt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${L};--line-height:${W};--min-block-size:40px;--padding-block:${qt};--padding-inline:${Ce};--control-padding-inline:${R}}:host([size='large']){--font-size:${ge};--line-height:${we};--min-block-size:64px;--padding-block:${ce};--padding-inline:${Q};--control-padding-inline:${Ce}}: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:${bo};--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:${ki}}:host(${Pu}){--border-color:${$i};--border-block-end-color:${$i}}:host(${v}){--color:${A};--background-color:${ue};--border-color:${ke};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${A};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:${S};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 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${Ot};transition-duration:${Pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Tt}}:host([readonly]) .root::after,:host(${v}) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${re}}: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:${Ct};background-color:${ds}}@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 am(){return b`<template><label ${z("labelEl")} for=control part=label><slot name=label ${X("labelSlottedNodes")}></slot></label><div class=root part=root ${z("rootEl")}><textarea ${z("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 ${X("defaultSlottedNodes")}></slot></div></template>`}const lm=am(),cm={name:nm,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:sm,template:lm},dm=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var hm=Object.defineProperty,um=Object.getOwnPropertyDescriptor,te=(o,e,t,r)=>{for(var i=r>1?void 0:r?um(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&&hm(e,t,i),i};class G 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.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Dr.none,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(){T.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(dm),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(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)}resizeChanged(e,t){At(this.elementInternals,e,t,Dr,"resize-"),y(this.elementInternals,"resize",Qs(Dr,t)&&t!==Dr.none)}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(),tt(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.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(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")}}G.formAssociated=!0,te([g],G.prototype,"controlEl",2),te([g],G.prototype,"defaultSlottedNodes",2),te([g],G.prototype,"labelSlottedNodes",2),te([a],G.prototype,"autocomplete",2),te([a({attribute:"auto-resize",mode:"boolean"})],G.prototype,"autoResize",2),te([a({attribute:"dirname"})],G.prototype,"dirName",2),te([a({mode:"boolean"})],G.prototype,"disabled",2),te([a({attribute:"display-shadow",mode:"boolean"})],G.prototype,"displayShadow",2),te([a({attribute:"form"})],G.prototype,"initialForm",2),te([a({attribute:"maxlength",converter:oe})],G.prototype,"maxLength",2),te([a({attribute:"minlength",converter:oe})],G.prototype,"minLength",2),te([a],G.prototype,"name",2),te([a],G.prototype,"placeholder",2),te([a({attribute:"readonly",mode:"boolean"})],G.prototype,"readOnly",2),te([a({mode:"boolean"})],G.prototype,"required",2),te([a({mode:"fromView"})],G.prototype,"resize",2),te([a({mode:"boolean"})],G.prototype,"spellcheck",2);var pm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,Qi=(o,e,t,r)=>{for(var i=r>1?void 0:r?gm(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&&pm(e,t,i),i};class Hr extends G{constructor(){super(...arguments),this.appearance=im.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Qi([a({mode:"fromView"})],Hr.prototype,"appearance",2),Qi([a({mode:"boolean"})],Hr.prototype,"block",2),Qi([a],Hr.prototype,"size",2),Hr.define(cm);const fm={email:"email",password:"password",tel:"tel",text:"text",url:"url"},bm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],mm=`${u.prefix}-text-input`,vm=p`${C("block")} :host{font-family:${$};font-size:${B};font-weight:${N};line-height:${D};max-width:400px}.label{display:flex;color:${O};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${re}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${P} solid ${Ue};border-bottom-color:${We};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${Me};position:relative;width:100%}:has(.control:user-invalid){border-color:${$i}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${lt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Pi};transition-delay:${Ot}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${S};background:${ue};font-family:${$};font-weight:${N};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${fi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${K};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${re}}:host(:hover) .root{border-color:${_t};border-bottom-color:${It}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Tt}}:host(:focus-within:active) .root:after{border-bottom-color:${xs}}:host([appearance='outline']:focus-within) .root{border:${P} solid ${Ue}}:host(:focus-within) .control{color:${O}}:host(${v}) .root{background:${ue};border:${P} solid ${ke}}:host(${v}) .control::placeholder,:host(${v}) ::slotted([slot='start']),:host(${v}) ::slotted([slot='end']){color:${A}}::selection{color:${Ct};background-color:${ds}}:host([control-size='small']) .control{font-size:${L};font-weight:${N};line-height:${W}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${Ce}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ge}}:host([control-size='large']) .control{font-size:${ge};font-weight:${N};line-height:${we}}:host([control-size='large']) .root{height:40px;gap:${Fe};padding:0 ${Q}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${cr}}:host([appearance='underline']) .root{background:${ue};border:0;border-radius:0;border-bottom:${P} solid ${We}}:host([appearance='underline']:hover) .root{border-bottom-color:${It}}:host([appearance='underline']:active) .root{border-bottom-color:${Pt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${Pt}}:host([appearance='underline']${v}) .root{border-bottom-color:${ke}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${P} solid ${Y};box-shadow:${ki}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${bo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${vi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${vi};background:${bo}}`;function $m(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${z("controlLabel")}><slot ${X("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ge(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} ${z("control")}> ${dt(o)}</div></template>`}const ym=$m(),xm={name:mm,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:vm,template:ym};var km=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,H=(o,e,t,r)=>{for(var i=r>1?void 0:r?wm(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&&km(e,t,i),i};class F extends k{constructor(){super(...arguments),this.type=fm.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){T.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){T.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.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.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!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(),tt(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=>bm.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&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,H([a],F.prototype,"autocomplete",2),H([a({attribute:"current-value"})],F.prototype,"currentValue",2),H([g],F.prototype,"defaultSlottedNodes",2),H([a],F.prototype,"dirname",2),H([a({mode:"boolean"})],F.prototype,"disabled",2),H([a({attribute:"form"})],F.prototype,"formAttribute",2),H([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),H([a],F.prototype,"list",2),H([a({converter:oe})],F.prototype,"maxlength",2),H([a({converter:oe})],F.prototype,"minlength",2),H([a({mode:"boolean"})],F.prototype,"multiple",2),H([a],F.prototype,"name",2),H([a],F.prototype,"pattern",2),H([a],F.prototype,"placeholder",2),H([a({attribute:"readonly",mode:"boolean"})],F.prototype,"readOnly",2),H([a({mode:"boolean"})],F.prototype,"required",2),H([a({converter:oe})],F.prototype,"size",2),H([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],F.prototype,"spellcheck",2),H([a],F.prototype,"type",2),H([g],F.prototype,"control",2),H([g],F.prototype,"controlLabel",2);var Cm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sm(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 Vr extends F{}Pa([a],Vr.prototype,"appearance",2),Pa([a({attribute:"control-size"})],Vr.prototype,"controlSize",2),ht(Vr,ct),Vr.define(xm);const Im=`${u.prefix}-text`,Pm=p`${C("inline")} :host{font-family:${$};font-size:${B};line-height:${D};font-weight:${N};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:${xo};line-height:${hr}}:host([size='200']){font-size:${L};line-height:${W}}:host([size='400']){font-size:${ge};line-height:${we}}:host([size='500']){font-size:${jt};line-height:${ur}}:host([size='600']){font-size:${cr};line-height:${Ds}}:host([size='700']){font-size:${Ns};line-height:${Hs}}:host([size='800']){font-size:${Fs};line-height:${Vs}}:host([size='900']){font-size:${Ms};line-height:${Rs}}:host([size='1000']){font-size:${Ls};line-height:${js}}:host([font='monospace']){font-family:${Bd}}:host([font='numeric']){font-family:${Nd}}:host([weight='medium']){font-weight:${Fd}}:host([weight='semibold']){font-weight:${V}}:host([weight='bold']){font-weight:${dr}}: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}`,_m=b`<slot></slot>`,zm={name:Im,registry:u.registry,styles:Pm,template:_m};var Om=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Ze=(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&&Om(e,t,i),i};class He extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Ze([a({mode:"boolean"})],He.prototype,"nowrap",2),Ze([a({mode:"boolean"})],He.prototype,"truncate",2),Ze([a({mode:"boolean"})],He.prototype,"italic",2),Ze([a({mode:"boolean"})],He.prototype,"underline",2),Ze([a({mode:"boolean"})],He.prototype,"strikethrough",2),Ze([a({mode:"boolean"})],He.prototype,"block",2),Ze([a],He.prototype,"size",2),Ze([a],He.prototype,"font",2),Ze([a],He.prototype,"weight",2),Ze([a],He.prototype,"align",2),He.define(zm);const Am=`${u.prefix}-toggle-button`,Em=p`${wr} :host(${M}){border-color:${Ue};background-color:${cs};color:${O};border-width:${P}}:host(${M}:hover){border-color:${_t};background-color:${rr}}:host(${M}:active){border-color:${$o};background-color:${bi}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${pc};color:${et}}:host(${M}[appearance='primary']:hover){background-color:${fs}}:host(${M}[appearance='primary']:active){background-color:${bs}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${us};color:${Qo}}:host(${M}[appearance='subtle']:hover){background-color:${ir};color:${Dt}}:host(${M}[appearance='subtle']:active){background-color:${vo};color:${Ht}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${ps}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${nr}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${sr}}:host(${M}[appearance='transparent']){border-color:transparent;color:${Ul}}:host(${M}[appearance='transparent']:hover){color:${er}}:host(${M}[appearance='transparent']:active){color:${tr}}@media (forced-colors:active){:host(${M}),:host( ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${M}[appearance='primary']){color:SelectedItemText}}`,Bm=Bi(),Nm={name:Am,registry:u.registry,styles:Em,template:Bm};var Fm=Object.defineProperty,Mm=Object.getOwnPropertyDescriptor,_a=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mm(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&&Fm(e,t,i),i};class en extends ot{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}`,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}_a([a({mode:"boolean"})],en.prototype,"pressed",2),_a([a({mode:"boolean"})],en.prototype,"mixed",2),en.define(Nm);const Te={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Lm=`${u.prefix}-tooltip`,Dm=p`${C("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${re};background:${I};border-radius:${S};border:1px solid ${Y};box-sizing:border-box;color:${O};display:inline-flex;filter:drop-shadow(0 0 2px ${mc}) drop-shadow(0 4px 8px ${vc});font-family:${$};font-size:${L};inset:unset;line-height:${W};margin:unset;max-width:240px;overflow:visible;padding:4px ${Me} 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:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Hm=b`<template popover aria-hidden=true><slot></slot></template>`,Vm={name:Lm,registry:u.registry,styles:Dm,template:Hm};var Rm=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?jm(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&&Rm(e,t,i),i};class Lo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ye("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),Cr){wh||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}T.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(Cr){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=`
      #${this.anchor} {
        anchor-name: ${e};
      }
      #${this.id} {
        inset: unset;
        position-anchor: ${e};
        position: fixed;
        ${n}
        ${l}
      }
    `,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Rr([a],Lo.prototype,"id",2),Rr([a({converter:oe})],Lo.prototype,"delay",2),Rr([a],Lo.prototype,"positioning",2),Rr([a],Lo.prototype,"anchor",2),Lo.define(Vm);const qm=`${u.prefix}-tree`,Wm=p`${C("block")} :host{outline:none}`,Um=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 ${z("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Gm={name:qm,registry:u.registry,styles:Wm,template:Um},za={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Oa={small:"small",medium:"medium"};function Ae(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Xm=`${u.prefix}-tree-item`;var Km=Object.defineProperty,Ym=Object.getOwnPropertyDescriptor,tn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ym(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&&Km(e,t,i),i};class jr 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(!Ae(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Ae(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(!Ae(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Ae(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Ae(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=>Ae(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}}tn([g],jr.prototype,"currentSelected",2),tn([g],jr.prototype,"defaultSlot",2),tn([g],jr.prototype,"childTreeItems",2);var Jm=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,Ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zm(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&&Jm(e,t,i),i};class on extends jr{constructor(){super(...arguments),this.size=Oa.small,this.appearance=za.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Br(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Er(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()}}Ta([a],on.prototype,"size",2),Ta([a],on.prototype,"appearance",2),on.define(Gm);const Qm=p`${C("block")} :host{--_subitem-padding-inline-start:${gr};outline:none;font-size:${B};line-height:${D}}:host([size='small']){--_subitem-padding-inline-start:${Q}}:host(:focus-visible) .positioning-region{box-shadow:${Si} ${Si} ${Si} ${fr} ${le} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Rd};padding-inline-end:${ce};border-radius:${S};background-color:${hs};color:${Be};gap:${re}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${le}}}.content{display:flex;align-items:center;gap:${re}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${gr};height:${zt};transition:transform ${mr} ${Gs};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:${ir};color:${Dt}}.positioning-region:active{background-color:${vo};color:${Ht}}::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:${R}}.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:${us};color:${Qo}}:host([selected]) .content,:host([selected]) .chevron{color:${Kl}}:host([size='small']) .positioning-region{height:${zt};padding-inline-start:${Q}}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${dc}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${hc}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${uc};color:${Qo}}:host([appearance='transparent']) .positioning-region{background-color:${ue}}:host([appearance='transparent']) .positioning-region:hover{background-color:${nr}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${ps};color:${Qo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,ev=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>`,tv=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>${ev}</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 ${z("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,ov={name:Xm,registry:u.registry,styles:Qm,template:tv};var rv=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,Do=(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 no 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"),Ae(this.parentElement)&&(this.slot||(this.slot="item")),tt(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Ae(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&&(y(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=>Ae(e))))}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Ae(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Ae(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Ae(e))}}Do([g],no.prototype,"itemSlot",2),Do([a({mode:"boolean"})],no.prototype,"expanded",2),Do([a({mode:"boolean"})],no.prototype,"selected",2),Do([a({mode:"boolean"})],no.prototype,"empty",2),Do([g],no.prototype,"childTreeItems",2);var nv=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,Aa=(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};class rn extends no{constructor(){super(...arguments),this.size=Oa.small,this.appearance=za.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})}}Aa([a],rn.prototype,"size",2),Aa([a],rn.prototype,"appearance",2),rn.define(ov);const av="adoptedStyleSheets"in document,lv="CSSScopeRule"in window,nn=new Map,sn=new Map,Ho=new Map,an=new Map,Vo=new CSSStyleSheet;function cv(o,e=document){if(!(!e||!gv(e))){if(!av||e instanceof HTMLElement&&!e.shadowRoot&&!lv){const t=e===document?document.documentElement:e;$v(o,t);return}[document,document.documentElement,document.body].includes(e)?fv(o):bv(o,e)}}const dv=/^[a-zA-Z_-][a-zA-Z0-9_-]*$/;function hv(o){return dv.test(o)?o:""}const uv=/(;|{|}|\/\*|\*\/|@import|url\s*\(|expression\s*\(|javascript:)/i;function pv(o){return uv.test(o)?"":o}function ln(o){return nn.has(o)||nn.set(o,Object.keys(o).reduce((e,t)=>{const r=hv(t),i=pv(o[t].toString());return r&&i?`${e}--${r}:${i};`:e},"")),nn.get(o)}function gv(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function fv(o){if(o===null){document.adoptedStyleSheets.includes(Vo)&&Vo.replaceSync("");return}Vo.replaceSync(`
    html {
      ${ln(o)}
    }
  `),document.adoptedStyleSheets.includes(Vo)||document.adoptedStyleSheets.push(Vo)}function bv(o,e){if(o===null){e.shadowRoot&&Ho.has(e)?Ho.get(e).replaceSync(""):(delete e.dataset.fluentTheme,Ea(e));return}e.shadowRoot?mv(e).replaceSync(`
      :host {
        ${ln(o)}
      }
    `):(e.dataset.fluentTheme=vv(o),Ea(e))}function mv(o){if(!Ho.has(o)){const e=new CSSStyleSheet;Ho.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return Ho.get(o)}function vv(o){if(!sn.has(o)){const e=Ye("fluent-theme-"),t=new CSSStyleSheet;sn.set(o,e),t.replaceSync(`
      @scope ([data-fluent-theme="${e}"]) {
        :scope {
          ${ln(o)}
        }
      }
    `),document.adoptedStyleSheets.push(t)}return sn.get(o)}function $v(o,e){let t;if(o===null){if(!an.has(e))return;t=an.get(e)}else an.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:yv}=navigator,xv=/\bAppleWebKit\/[\d+\.]+\b/.test(yv);function Ea(o){if(!xv)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),T.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:cv};
