@fluentui/web-components 3.0.0-beta.47 → 3.0.0-beta.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/dist/dts/avatar/avatar.d.ts +25 -17
  3. package/dist/dts/avatar/index.d.ts +1 -1
  4. package/dist/dts/index.d.ts +5 -5
  5. package/dist/dts/progress-bar/index.d.ts +1 -1
  6. package/dist/dts/progress-bar/progress-bar.d.ts +35 -27
  7. package/dist/dts/spinner/index.d.ts +1 -1
  8. package/dist/dts/spinner/spinner.d.ts +10 -2
  9. package/dist/dts/text-input/index.d.ts +1 -1
  10. package/dist/dts/text-input/text-input.d.ts +37 -29
  11. package/dist/dts/theme/index.d.ts +1 -1
  12. package/dist/dts/theme/set-theme.d.ts +6 -1
  13. package/dist/esm/avatar/avatar.js +21 -13
  14. package/dist/esm/avatar/avatar.js.map +1 -1
  15. package/dist/esm/avatar/index.js +1 -1
  16. package/dist/esm/avatar/index.js.map +1 -1
  17. package/dist/esm/index.js +4 -4
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/progress-bar/index.js +1 -1
  20. package/dist/esm/progress-bar/index.js.map +1 -1
  21. package/dist/esm/progress-bar/progress-bar.js +47 -39
  22. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  23. package/dist/esm/spinner/index.js +1 -1
  24. package/dist/esm/spinner/index.js.map +1 -1
  25. package/dist/esm/spinner/spinner.js +19 -11
  26. package/dist/esm/spinner/spinner.js.map +1 -1
  27. package/dist/esm/text-input/index.js +1 -1
  28. package/dist/esm/text-input/index.js.map +1 -1
  29. package/dist/esm/text-input/text-input.js +63 -55
  30. package/dist/esm/text-input/text-input.js.map +1 -1
  31. package/dist/esm/theme/index.js.map +1 -1
  32. package/dist/esm/theme/set-theme.js.map +1 -1
  33. package/dist/web-components.d.ts +1179 -1137
  34. package/dist/web-components.js +106 -100
  35. package/dist/web-components.min.js +183 -183
  36. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let $o;const $i="fast-kernel";try{if(document.currentScript)$o=document.currentScript.getAttribute($i);else{const o=document.getElementsByTagName("script");$o=o[o.length-1].getAttribute($i)}}catch{$o="isolate"}let ce;switch($o){case"share":ce=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ce=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ce=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ce=o=>typeof o=="function",Bt=o=>typeof o=="string",vi=()=>{};var gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof gs<"u")gs.globalThis=gs;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const yi={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},yi));const Q=globalThis.FAST;if(Q.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Q,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},yi))}Q.error===void 0&&Object.assign(Q,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const fn=Object.freeze([]);function fs(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function ki(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Se(o){o.prototype.toJSON=vi}const et=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),xi=o=>o,bn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:xi}):{createHTML:xi};let vo=Object.freeze({createHTML(o){return bn.createHTML(o)},protect(o,t,e,s){return s}});const mn=vo,Ie=Object.freeze({get policy(){return vo},setPolicy(o){if(vo!==mn)throw Q.error(1201);vo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Tt=Q.getById(ce.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(g){try{g.call()}catch(u){if(s)t.push(u),setTimeout(i,0);else throw o.length=0,u}}function n(){let u=0;for(;u<o.length;)if(r(o[u]),u++,u>1024){for(let d=0,b=o.length-u;d<b;d++)o[d]=o[d+u];o.length-=u,u=0}o.length=0}function h(g){o.push(g),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:g=>s=g})});class bs{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class wi{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new bs(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new bs(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const ms=Object.freeze({unknown:void 0,coupled:1}),m=Q.getById(ce.observable,()=>{const o=Tt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=u=>{throw Q.error(1101)};function r(u){var d;let b=(d=u.$fastController)!==null&&d!==void 0?d:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new wi(u))),b}const n=ki();class h{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return s!==void 0&&s.watch(d,this.name),d[this.field]}setValue(d,b){const P=this.field,j=d[P];if(j!==b){d[P]=b;const oe=d[this.callback];Ce(oe)&&oe.call(d,j,b),r(d).notify(this.name)}}}class g extends bs{constructor(d,b,P=!1){super(d,b),this.expression=d,this.isVolatileBinding=P,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(d){this.isAsync=this.needsQueue=d}bind(d){this.controller=d;const b=this.observe(d.source,d.context);return!d.isBound&&this.requiresUnbind(d)&&d.onUnbind(this),b}requiresUnbind(d){return d.sourceLifetime!==ms.coupled||this.first!==this.last||this.first.propertySource!==d.source}unbind(d){this.dispose()}observe(d,b){this.needsRefresh&&this.last!==null&&this.dispose();const P=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let j;try{j=this.expression(d,b)}finally{s=P}return j}disconnect(){this.dispose()}dispose(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(d,b){const P=this.last,j=r(d),oe=P===null?this.first:{};if(oe.propertySource=d,oe.propertyName=b,oe.notifier=j,j.subscribe(this,b),P!==null){if(!this.needsRefresh){let mi;s=void 0,mi=P.propertySource[P.propertyName],s=this,d===mi&&(this.needsRefresh=!0)}P.next=oe}this.last=oe}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 d=this.first;for(;d!==void 0;)yield d,d=d.next}}return Se(g),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,d){s&&s.watch(u,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(u,d){r(u).notify(d)},defineProperty(u,d){Bt(d)&&(d=new h(d)),n(u).push(d),Reflect.defineProperty(u,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(u,d,b=this.isVolatileBinding(u)){return new g(u,d,b)},isVolatileBinding(u){return t.test(u.toString())}})});function k(o,t){m.defineProperty(o,t)}function $n(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const Ci=Q.getById(ce.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),De=Object.freeze({default:{index:0,length:0,get event(){return De.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Ci.get()},setEvent(o){Ci.set(o)}});class yo{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class vn extends yo{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function Si(o,t,e=m.isVolatileBinding(o)){return new vn(o,t,e)}class Ii extends yo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Se(Ii);function Pi(o,t){return new Ii(o,t)}let zi;function Bi(o){return o.map(t=>t instanceof at?Bi(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class at{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof at?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(zi),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(Bi(this.styles)),this}static setDefaultStrategy(t){zi=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new at(t):t instanceof at?t:new at([t])}}at.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $s=fs(),vs=Object.freeze({getForInstance:$s.getForInstance,getByType:$s.getByType,define(o){return $s.register({type:o}),o}});function ys(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ks{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((g,u)=>ys(u,g.controller,g.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){ys(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){ys(this,e.controller,e)}}vs.define(ks);const yn=`${Math.random().toString(36).substring(2,8)}`;let kn=0;const Ti=()=>`--v${yn}${++kn}`;function Ai(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let g=t[n];Ce(g)?g=new ks(Si(g),Ti()).createCSS(r):g instanceof yo?g=new ks(g,Ti()).createCSS(r):vs.getForInstance(g)!==void 0&&(g=g.createCSS(r)),g instanceof at||g instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(g)):s+=g}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=Ai(o,t),i=new at(e);return s.length?i.withBehaviors(...s):i};class Fi{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Bt(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new at(s))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}vs.define(Fi),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=Ai(o,t);return new Fi(e,s)};const xs=`fast-${Math.random().toString(36).substring(2,8)}`,ko=`${xs}{`,Ve=`}${xs}`,xn=Ve.length;let wn=0;const ws=()=>`${xs}-${++wn}`,_i=Object.freeze({interpolation:o=>`${ko}${o}${Ve}`,attribute:o=>`${ws()}="${ko}${o}${Ve}"`,comment:o=>`<!--${ko}${o}${Ve}-->`}),xo=Object.freeze({parse(o,t){const e=o.split(ko);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(Ve);let g;if(h===-1)g=n;else{const u=n.substring(0,h);s.push(t[u]),g=n.substring(h+xn)}g!==""&&s.push(g)}return s}}),Cs=fs(),vt=Object.freeze({getForInstance:Cs.getForInstance,getByType:Cs.getByType,define(o,t){return t=t||{},t.type=o,Cs.register(t),o},assignAspect(o,t){if(!t){o.aspectType=et.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?et.tokenList:et.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=et.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=et.event;break;default:o.targetAspect=t,o.aspectType=et.attribute;break}}});class Ss{constructor(t){this.options=t}createHTML(t){return _i.attribute(t(this))}createBehavior(){return this}}Se(Ss);function Cn(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function Sn(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const g=o[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let d=0,b=u.length;d<b;++d){const P=u[d];P!==""&&(n[P]=h,g.add(P))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&g.remove(u)}}const In={[et.attribute]:Ie.setAttribute,[et.booleanAttribute]:Ie.setBooleanAttribute,[et.property]:(o,t,e)=>o[t]=e,[et.content]:Cn,[et.tokenList]:Sn,[et.event]:()=>{}};class Pe{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=et.content}createHTML(t){return _i.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=In[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Q.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case et.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case et.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){De.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);De.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}vt.define(Pe,{aspected:!0});function Oi(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class wo{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=ms.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return De.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}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){Oi(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[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 t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Oi(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}Se(wo),m.defineProperty(wo.prototype,"index"),m.defineProperty(wo.prototype,"length");const Mi=(o,t)=>`${o}.${t}`,Ni={},At={index:0,node:null};function Ei(o){o.startsWith("fast-")||Q.warn(1204,{name:o})}const Pn=new Proxy(document.createElement("div"),{get(o,t){Ei(t);const e=Reflect.get(o,t);return Ce(e)?e.bind(o):e},set(o,t,e){return Ei(t),Reflect.set(o,t,e)}});class zn{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ws(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),g=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,g)}let r=Ni[e];if(!r){const n=`_${e}`;Ni[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??Pn;for(const i of this.nodeIds)s[i];return new wo(e,this.factories,s)}}function Li(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let g=0,u=n.length;g<u;++g){const d=n[g],b=d.value,P=xo.parse(b,h);let j=null;P===null?r&&(j=new Pe(Pi(()=>b,o.policy)),vt.assignAspect(j,d.name)):j=Is.aggregate(P,o.policy),j!==null&&(e.removeAttributeNode(d),g--,u--,o.addFactory(j,t,s,i,e.tagName))}}function Bn(o,t,e,s,i){const r=xo.parse(t.textContent,o.directives);if(r===null)return At.node=t.nextSibling,At.index=i+1,At;let n,h=n=t;for(let g=0,u=r.length;g<u;++g){const d=r[g];g!==0&&(i++,s=Mi(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),Bt(d)?n.textContent=d:(n.textContent=" ",vt.assignAspect(d),o.addFactory(d,e,s,i,null)),h=n}return At.index=i+1,At.node=h.nextSibling,At}function Hi(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Tn(o,e,i,s);i=r.node,s=r.index}}function Tn(o,t,e,s){const i=Mi(t,s);switch(e.nodeType){case 1:Li(o,t,e,i,s),Hi(o,e,i);break;case 3:return Bn(o,e,t,i,s);case 8:const r=xo.parse(e.data,o.directives);r!==null&&o.addFactory(Is.aggregate(r),t,i,s,null);break}return At.index=s+1,At.node=e.nextSibling,At}function An(o,t){return o&&o.nodeType==8&&xo.parse(o.data,t)!==null}const Di="TEMPLATE",Is={compile(o,t,e=Ie.policy){let s;if(Bt(o)){s=document.createElement(Di),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Di&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new zn(i,t,e);return Li(r,"",s,"h",0,!0),(An(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Hi(r,i,"r"),At.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Ie.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(d=>Bt(d)?()=>d:(e=d.sourceAspect||e,s=d.dataBinding||s,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),g=(d,b)=>{let P="";for(let j=0;j<n;++j)P+=h[j](d,b);return P};s.evaluate=g,s.isVolatile=i,s.policy=r??t;const u=new Pe(s);return vt.assignAspect(u,e),u}},Fn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,_n=Object.create(null);class de{constructor(t,e=_n){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}de.empty=new de(""),vt.define(de);function On(o,t,e,s=vt.getForInstance(o)){if(s.aspected){const i=Fn.exec(t);i!==null&&vt.assignAspect(o,i[2])}return o.createHTML(e)}class hs{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Is.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new de(Bt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Q.error(1208);if(this.policy)throw Q.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var g;const u=(g=h.id)!==null&&g!==void 0?g:h.id=ws();return r[u]=h,u};for(let h=0,g=t.length-1;h<g;++h){const u=t[h];let d=e[h],b;if(i+=u,Ce(d))d=new Pe(Si(d));else if(d instanceof yo)d=new Pe(d);else if(!(b=vt.getForInstance(d))){const P=d;d=new Pe(Pi(()=>P))}i+=On(d,u,n,b)}return new hs(i+t[t.length-1],r,s)}}Se(hs);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return hs.create(o,t);throw Q.error(1206)};f.partial=o=>new de(o);class Vi extends Ss{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Vi);const Ft=o=>new Vi(o),Mn=o=>o.nodeType===1,je=o=>o?t=>t.nodeType===1&&t.matches(o):Mn;class ji extends Ss{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,fn),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Ri="slotchange";class qi extends ji{observe(t){t.addEventListener(Ri,this)}disconnect(t){t.removeEventListener(Ri,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(qi);function pt(o){return Bt(o)&&(o={property:o}),new qi(o)}class Gi extends ji{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=vi,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}vt.define(Gi);function Nn(o){return Bt(o)&&(o={property:o}),new Gi(o)}const Wi="boolean",Xi="reflect",Co=Object.freeze({locate:ki()}),En={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Ui(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=Ui(o);return t&&t.toString()},fromView:Ui};class us{constructor(t,e,s=e.toLowerCase(),i=Xi,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===Wi&&r===void 0&&(this.converter=En)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return m.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,s=this.guards;s.has(t)||e==="fromView"||Tt.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Xi:const r=this.converter;Ie.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Wi:Ie.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(Co.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,g=n.length;h<g;++h){const u=n[h];Bt(u)?s.push(new us(t,u)):s.push(new us(t,u.property,u.attribute,u.mode,u.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),Co.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Ki={mode:"open"},Yi={},Qi=new Set,So=Q.getById(ce.elementRegistry,()=>fs());class zt{constructor(t,e=t.definition){var s;this.platformDefined=!1,Bt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=us.collect(t,e.attributes),n=new Array(r.length),h={},g={};for(let u=0,d=r.length;u<d;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,g[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=g,this.shadowOptions=e.shadowOptions===void 0?Ki:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Ki),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Yi:Object.assign(Object.assign({},Yi),e.elementOptions),this.styles=at.normalize(e.styles),So.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Qi.has(t)||So.getByType(t)?new zt(class extends t{},e):new zt(t,e)}static registerBaseType(t){Qi.add(t)}}zt.getByType=So.getByType,zt.getForInstance=So.getForInstance;const Ln={bubbles:!0,composed:!0,cancelable:!0},Ps="isConnected",Zi=new WeakMap;function Io(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Zi.get(o))!==null&&e!==void 0?e:null}let Ji;class Po extends wi{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&Zi.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const g=i[n].name,u=t[g];u!==void 0&&(delete t[g],r[g]=u)}}}get isConnected(){return m.track(this,Ps),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:De.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Io(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Io(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Ps)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,Ps),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Ln),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=Io(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=ms.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=zt.getForInstance(t);if(s===void 0)throw Q.error(1401);return t.$fastController=new Ji(t,s)}static setStrategy(t){Ji=t}}Se(Po),Po.setStrategy(Po);function zo(o){var t;return"adoptedStyleSheets"in o?o:(t=Io(o))!==null&&t!==void 0?t:o.getRootNode()}class ps{constructor(t){const e=ps.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){er(zo(t),this.sheets)}removeStylesFrom(t){or(zo(t),this.sheets)}}ps.styleSheetCache=new Map;let Hn=0;const Dn=()=>`fast-${++Hn}`;function tr(o){return o===document?document.body:o}class Vn{constructor(t){this.styles=t,this.styleClass=Dn()}addStylesTo(t){t=tr(zo(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=tr(zo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let er=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},or=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(at.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),er=(o,t)=>{o.adoptedStyleSheets.push(...t)},or=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}at.setDefaultStrategy(ps)}else at.setDefaultStrategy(Vn);function sr(o){const t=class extends o{constructor(){super(),Po.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return zt.registerBaseType(t),t}function jn(o,t){return Ce(o)?zt.compose(o,t):zt.compose(this,o)}function Rn(o,t){return Ce(o)?zt.compose(o,t).define().type:zt.compose(this,o).define().type}function qn(o){return sr(o)}const x=Object.assign(sr(HTMLElement),{from:qn,define:Rn,compose:jn}),gt={horizontal:"horizontal",vertical:"vertical"};function Gn(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function ir(...o){return o.every(t=>t instanceof HTMLElement)}const zs="ArrowDown",Bs="ArrowLeft",Ts="ArrowRight",As="ArrowUp",Fs="End",Bo="Enter",Wn="Escape",_s="Home",Os=" ",Xn="Tab";var yt;(function(o){o.ltr="ltr",o.rtl="rtl"})(yt||(yt={}));function Ms(o,t,e){return Math.min(Math.max(e,o),t)}let Un=0;function To(o=""){return`${o}${Un++}`}var Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,E=(o,t,e,s)=>{for(var i=s>1?void 0:s?Yn(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Kn(t,e,i),i};class L{}E([a({attribute:"aria-atomic"})],L.prototype,"ariaAtomic",2),E([a({attribute:"aria-busy"})],L.prototype,"ariaBusy",2),E([a({attribute:"aria-controls"})],L.prototype,"ariaControls",2),E([a({attribute:"aria-current"})],L.prototype,"ariaCurrent",2),E([a({attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),E([a({attribute:"aria-details"})],L.prototype,"ariaDetails",2),E([a({attribute:"aria-disabled"})],L.prototype,"ariaDisabled",2),E([a({attribute:"aria-errormessage"})],L.prototype,"ariaErrormessage",2),E([a({attribute:"aria-flowto"})],L.prototype,"ariaFlowto",2),E([a({attribute:"aria-haspopup"})],L.prototype,"ariaHaspopup",2),E([a({attribute:"aria-hidden"})],L.prototype,"ariaHidden",2),E([a({attribute:"aria-invalid"})],L.prototype,"ariaInvalid",2),E([a({attribute:"aria-keyshortcuts"})],L.prototype,"ariaKeyshortcuts",2),E([a({attribute:"aria-label"})],L.prototype,"ariaLabel",2),E([a({attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),E([a({attribute:"aria-live"})],L.prototype,"ariaLive",2),E([a({attribute:"aria-owns"})],L.prototype,"ariaOwns",2),E([a({attribute:"aria-relevant"})],L.prototype,"ariaRelevant",2),E([a({attribute:"aria-roledescription"})],L.prototype,"ariaRoledescription",2);const Ns={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},rr=o=>o.closest("[dir]")?.dir==="rtl"?yt.rtl:yt.ltr;function ft(o){return o?typeof o=="string"?new de(o):"inline"in o?o.inline():o:de.empty}const Qn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Zn=":host([hidden]){display:none}";function w(o){return`${Zn}:host{display:${o}}`}class Jn{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class mo extends Jn{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new mo(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Z=mo.with(window.matchMedia("(forced-colors)"));mo.with(window.matchMedia("(prefers-color-scheme: dark)")),mo.with(window.matchMedia("(prefers-color-scheme: light)"));class jt{}function se(o){return f`<slot name="end" ${Ft("end")}>${ft(o.end)}</slot>`.inline()}function Rt(o){return f`<slot name="start" ${Ft("start")}>${ft(o.start)}</slot>`.inline()}function qt(o,...t){const e=Co.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),Co.locate(s).forEach(r=>e.push(r))})}const ta=CSS.supports("selector(:state(g))");function c(o,t,e){if(!ta){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}var ea=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,he=(o,t,e,s)=>{for(var i=s>1?void 0:s?oa(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ea(t,e,i),i};class lt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=To("accordion-"),this.block=!1}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}}he([a({attribute:"heading-level",mode:"fromView",converter:st})],lt.prototype,"headinglevel",2),he([a({mode:"boolean"})],lt.prototype,"expanded",2),he([a({mode:"boolean"})],lt.prototype,"disabled",2),he([a],lt.prototype,"id",2),he([a],lt.prototype,"size",2),he([a({mode:"boolean"})],lt.prototype,"block",2),he([a({attribute:"marker-position"})],lt.prototype,"markerPosition",2),qt(lt,jt);const v=l.partial`:is([state--checked], :state(checked))`,W=l.partial`:is([state--disabled], :state(disabled))`,Ao=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Fo=l.partial`:is([state--filled-darker], :state(filled-darker))`,Gt=l.partial`:is([state--ghost], :state(ghost))`,nr=l.partial`:is([state--inverted], :state(inverted))`,it=l.partial`:is([state--primary], :state(primary))`,R=l.partial`:is([state--outline], :state(outline))`,Re=l.partial`:is([state--strong], :state(strong))`,C=l.partial`:is([state--subtle], :state(subtle))`,ie=l.partial`:is([state--tint], :state(tint))`,qe=l.partial`:is([state--underline], :state(underline))`,X=l.partial`:is([state--transparent], :state(transparent))`,Ge=l.partial`:is([state--circular], :state(circular))`,Wt=l.partial`:is([state--rounded], :state(rounded))`,We=l.partial`:is([state--square], :state(square))`,Xe=l.partial`:is([state--tiny], :state(tiny))`,Ue=l.partial`:is([state--extra-small], :state(extra-small))`,_=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const S=l.partial`:is([state--large], :state(large))`,_o=l.partial`:is([state--extra-large], :state(extra-large))`,sa=l.partial`:is([state--huge], :state(huge))`,ar=l.partial`:is([state--align-start], :state(align-start))`,Xt=l.partial`:is([state--align-end], :state(align-end))`,Es=l.partial`:is([state--inset], :state(inset))`,ze=l.partial`:is([state--icon], :state(icon))`,z=l.partial`:is([state--pressed], :state(pressed))`,Ut=l.partial`:is([state--brand], :state(brand))`,Ls=l.partial`:is([state--error], :state(error))`,Oo=l.partial`:is([state--danger], :state(danger))`,Mo=l.partial`:is([state--important], :state(important))`,No=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const Eo=l.partial`:is([state--neutral], :state(neutral))`,Lo=l.partial`:is([state--severe], :state(severe))`,ue=l.partial`:is([state--success], :state(success))`,pe=l.partial`:is([state--warning], :state(warning))`,J=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const Ke=l.partial`:is([state--multiline], :state(multiline))`,ge=l.partial`:is([state--expanded], :state(expanded))`,ia=l.partial`:is([state--block], :state(block))`,B="var(--colorNeutralForeground1)",lr="var(--colorNeutralForeground1Hover)",ra="var(--colorNeutralForeground1Pressed)",Kt="var(--colorNeutralForeground2)",Ho="var(--colorNeutralForeground2Hover)",Do="var(--colorNeutralForeground2Pressed)",na="var(--colorNeutralForeground2Selected)",Vo="var(--colorNeutralForeground2BrandHover)",jo="var(--colorNeutralForeground2BrandPressed)",aa="var(--colorNeutralForeground2BrandSelected)",rt="var(--colorNeutralForeground3)",la="var(--colorNeutralForeground3Hover)",ca="var(--colorNeutralForeground3Pressed)",da="var(--colorNeutralForeground4)",H="var(--colorNeutralForegroundDisabled)",ha="var(--colorBrandForegroundLink)",ua="var(--colorBrandForegroundLinkHover)",pa="var(--colorBrandForegroundLinkPressed)",ga="var(--colorNeutralForeground2Link)",fa="var(--colorNeutralForeground2LinkHover)",ba="var(--colorNeutralForeground2LinkPressed)",ma="var(--colorCompoundBrandForeground1Hover)",$a="var(--colorCompoundBrandForeground1Pressed)",Yt="var(--colorNeutralForegroundOnBrand)",Ye="var(--colorNeutralForegroundInverted)",va="var(--colorNeutralForegroundInvertedHover)",ya="var(--colorNeutralForegroundInvertedPressed)",cr="var(--colorNeutralForegroundStaticInverted)",Hs="var(--colorBrandForeground1)",ka="var(--colorBrandForeground2)",xa="var(--colorNeutralForeground1Static)",O="var(--colorNeutralBackground1)",Ds="var(--colorNeutralBackground1Hover)",Vs="var(--colorNeutralBackground1Pressed)",dr="var(--colorNeutralBackground1Selected)",js="var(--colorNeutralBackground3)",wa="var(--colorNeutralBackground4)",Ca="var(--colorNeutralBackground5)",Ro="var(--colorNeutralBackground6)",Sa="var(--colorNeutralBackgroundInverted)",Ia="var(--colorSubtleBackground)",Rs="var(--colorSubtleBackgroundHover)",qo="var(--colorSubtleBackgroundPressed)",Pa="var(--colorSubtleBackgroundSelected)",kt="var(--colorTransparentBackground)",qs="var(--colorTransparentBackgroundHover)",Gs="var(--colorTransparentBackgroundPressed)",za="var(--colorTransparentBackgroundSelected)",Be="var(--colorNeutralBackgroundDisabled)",Ws="var(--colorBackgroundOverlay)",Xs="var(--colorBrandBackground)",hr="var(--colorBrandBackgroundHover)",ur="var(--colorBrandBackgroundPressed)",Ba="var(--colorBrandBackgroundSelected)",Te="var(--colorCompoundBrandBackground)",Qe="var(--colorCompoundBrandBackgroundHover)",Ze="var(--colorCompoundBrandBackgroundPressed)",pr="var(--colorBrandBackgroundStatic)",Ta="var(--colorBrandBackground2)",fe="var(--colorNeutralStrokeAccessible)",Je="var(--colorNeutralStrokeAccessibleHover)",to="var(--colorNeutralStrokeAccessiblePressed)",be="var(--colorNeutralStroke1)",Go="var(--colorNeutralStroke1Hover)",Us="var(--colorNeutralStroke1Pressed)",eo="var(--colorNeutralStroke2)",Aa="var(--colorNeutralStroke3)",Fa="var(--colorNeutralStrokeOnBrand2)",gr="var(--colorBrandStroke1)",Ks="var(--colorBrandStroke2)",Wo="var(--colorCompoundBrandStroke)",_a="var(--colorCompoundBrandStrokeHover)",fr="var(--colorCompoundBrandStrokePressed)",_t="var(--colorNeutralStrokeDisabled)",nt="var(--colorTransparentStroke)",br="var(--colorTransparentStrokeInteractive)",Ys="var(--colorStrokeFocus1)",Ot="var(--colorStrokeFocus2)",mr="var(--colorPaletteRedBackground1)",Oa="var(--colorPaletteRedBackground2)",$r="var(--colorPaletteRedBackground3)",vr="var(--colorPaletteRedBorder1)",Ma="var(--colorPaletteRedBorder2)",yr="var(--colorPaletteRedForeground1)",Na="var(--colorPaletteRedForeground2)",kr="var(--colorPaletteRedForeground3)",xr="var(--colorPaletteGreenBackground1)",wr="var(--colorPaletteGreenBackground3)",Ea="var(--colorPaletteGreenBorder1)",La="var(--colorPaletteGreenBorder2)",Ha="var(--colorPaletteGreenForeground1)",Da="var(--colorPaletteGreenForeground2)",Va="var(--colorPaletteGreenForeground3)",Cr="var(--colorPaletteDarkOrangeBackground1)",Sr="var(--colorPaletteDarkOrangeBackground3)",Ir="var(--colorPaletteDarkOrangeBorder1)",ja="var(--colorPaletteDarkOrangeForeground1)",Pr="var(--colorPaletteDarkOrangeForeground3)",Ra="var(--colorPaletteYellowBackground1)",qa="var(--colorPaletteYellowBackground3)",Ga="var(--colorPaletteYellowBorder1)",Qs="var(--colorPaletteYellowForeground2)",zr="var(--colorPaletteMarigoldBackground2)",Wa="var(--colorPaletteMarigoldBackground3)",Xa="var(--colorPaletteMarigoldForeground2)",Ua="var(--colorPaletteAnchorBackground2)",Ka="var(--colorPaletteAnchorForeground2)",Ya="var(--colorPaletteBeigeBackground2)",Qa="var(--colorPaletteBeigeForeground2)",Za="var(--colorPaletteBlueBackground2)",Ja="var(--colorPaletteBlueForeground2)",tl="var(--colorPaletteBrassBackground2)",el="var(--colorPaletteBrassForeground2)",ol="var(--colorPaletteBrownBackground2)",sl="var(--colorPaletteBrownForeground2)",il="var(--colorPaletteCornflowerBackground2)",rl="var(--colorPaletteCornflowerForeground2)",nl="var(--colorPaletteCranberryBackground2)",al="var(--colorPaletteCranberryForeground2)",ll="var(--colorPaletteDarkGreenBackground2)",cl="var(--colorPaletteDarkGreenForeground2)",dl="var(--colorPaletteDarkRedBackground2)",hl="var(--colorPaletteDarkRedForeground2)",ul="var(--colorPaletteForestBackground2)",pl="var(--colorPaletteForestForeground2)",gl="var(--colorPaletteGoldBackground2)",fl="var(--colorPaletteGoldForeground2)",bl="var(--colorPaletteGrapeBackground2)",ml="var(--colorPaletteGrapeForeground2)",$l="var(--colorPaletteLavenderBackground2)",vl="var(--colorPaletteLavenderForeground2)",yl="var(--colorPaletteLightTealBackground2)",kl="var(--colorPaletteLightTealForeground2)",xl="var(--colorPaletteLilacBackground2)",wl="var(--colorPaletteLilacForeground2)",Cl="var(--colorPaletteMagentaBackground2)",Sl="var(--colorPaletteMagentaForeground2)",Il="var(--colorPaletteMinkBackground2)",Pl="var(--colorPaletteMinkForeground2)",zl="var(--colorPaletteNavyBackground2)",Bl="var(--colorPaletteNavyForeground2)",Tl="var(--colorPalettePeachBackground2)",Al="var(--colorPalettePeachForeground2)",Fl="var(--colorPalettePinkBackground2)",_l="var(--colorPalettePinkForeground2)",Ol="var(--colorPalettePlatinumBackground2)",Ml="var(--colorPalettePlatinumForeground2)",Nl="var(--colorPalettePlumBackground2)",El="var(--colorPalettePlumForeground2)",Ll="var(--colorPalettePumpkinBackground2)",Hl="var(--colorPalettePumpkinForeground2)",Dl="var(--colorPalettePurpleBackground2)",Vl="var(--colorPalettePurpleForeground2)",jl="var(--colorPaletteRoyalBlueBackground2)",Rl="var(--colorPaletteRoyalBlueForeground2)",ql="var(--colorPaletteSeafoamBackground2)",Gl="var(--colorPaletteSeafoamForeground2)",Wl="var(--colorPaletteSteelBackground2)",Xl="var(--colorPaletteSteelForeground2)",Ul="var(--colorPaletteTealBackground2)",Kl="var(--colorPaletteTealForeground2)",Zs="var(--borderRadiusNone)",Mt="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",Br="var(--borderRadiusLarge)",Tr="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Yl="var(--fontFamilyMonospace)",Ql="var(--fontFamilyNumeric)",oo="var(--fontSizeBase100)",q="var(--fontSizeBase200)",A="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",Ae="var(--fontSizeBase500)",Xo="var(--fontSizeBase600)",Ar="var(--fontSizeHero700)",Fr="var(--fontSizeHero800)",_r="var(--fontSizeHero900)",Or="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",Zl="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",Uo="var(--fontWeightBold)",Ko="var(--lineHeightBase100)",ot="var(--lineHeightBase200)",D="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Yo="var(--lineHeightBase500)",Mr="var(--lineHeightBase600)",Nr="var(--lineHeightHero700)",Er="var(--lineHeightHero800)",Lr="var(--lineHeightHero900)",Hr="var(--lineHeightHero1000)",Dr="var(--shadow2)",Qo="var(--shadow4)",Jl="var(--shadow8)",Vr="var(--shadow16)",tc="var(--shadow28)",jr="var(--shadow64)",U="var(--strokeWidthThin)",wt="var(--strokeWidthThick)",Ct="var(--strokeWidthThicker)",Js="var(--strokeWidthThickest)",ht="var(--spacingHorizontalXXS)",Qt="var(--spacingHorizontalXS)",Zt="var(--spacingHorizontalSNudge)",Jt="var(--spacingHorizontalS)",Nt="var(--spacingHorizontalMNudge)",ut="var(--spacingHorizontalM)",ec="var(--spacingHorizontalL)",oc="var(--spacingHorizontalXL)",sc="var(--spacingHorizontalXXL)",Zo="var(--spacingVerticalXXS)",ic="var(--spacingVerticalXS)",so="var(--spacingVerticalSNudge)",bt="var(--spacingVerticalS)",io="var(--spacingVerticalMNudge)",rc="var(--spacingVerticalM)",ti="var(--spacingVerticalL)",ro="var(--spacingVerticalXXL)",nc="var(--durationUltraFast)",ei="var(--durationFaster)",Rr="var(--durationNormal)",oi="var(--durationGentle)",ac="var(--durationSlow)",qr="var(--durationSlower)",Jo="var(--durationUltraSlow)",lc="var(--curveAccelerateMax)",no="var(--curveAccelerateMid)",cc="var(--curveAccelerateMin)",Gr="var(--curveDecelerateMax)",ao="var(--curveDecelerateMid)",dc="var(--curveDecelerateMin)",hc="var(--curveEasyEaseMax)",ts="var(--curveEasyEase)",si="var(--curveLinear)",uc=l`
1
+ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let vo;const yi="fast-kernel";try{if(document.currentScript)vo=document.currentScript.getAttribute(yi);else{const o=document.getElementsByTagName("script");vo=o[o.length-1].getAttribute(yi)}}catch{vo="isolate"}let le;switch(vo){case"share":le=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":le=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;le=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const we=o=>typeof o=="function",Bt=o=>typeof o=="string",ki=()=>{};var bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof bs<"u")bs.globalThis=bs;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const xi={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},xi));const Q=globalThis.FAST;if(Q.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Q,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},xi))}Q.error===void 0&&Object.assign(Q,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const mn=Object.freeze([]);function ms(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function wi(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ce(o){o.prototype.toJSON=ki}const et=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ci=o=>o,$n=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ci}):{createHTML:Ci};let yo=Object.freeze({createHTML(o){return $n.createHTML(o)},protect(o,t,e,s){return s}});const vn=yo,Se=Object.freeze({get policy(){return yo},setPolicy(o){if(yo!==vn)throw Q.error(1201);yo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Tt=Q.getById(le.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(g){try{g.call()}catch(u){if(s)t.push(u),setTimeout(i,0);else throw o.length=0,u}}function n(){let u=0;for(;u<o.length;)if(r(o[u]),u++,u>1024){for(let d=0,b=o.length-u;d<b;d++)o[d]=o[d+u];o.length-=u,u=0}o.length=0}function h(g){o.push(g),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:g=>s=g})});class $s{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class Si{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new $s(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new $s(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const vs=Object.freeze({unknown:void 0,coupled:1}),m=Q.getById(le.observable,()=>{const o=Tt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=u=>{throw Q.error(1101)};function r(u){var d;let b=(d=u.$fastController)!==null&&d!==void 0?d:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new Si(u))),b}const n=wi();class h{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return s!==void 0&&s.watch(d,this.name),d[this.field]}setValue(d,b){const I=this.field,j=d[I];if(j!==b){d[I]=b;const ee=d[this.callback];we(ee)&&ee.call(d,j,b),r(d).notify(this.name)}}}class g extends $s{constructor(d,b,I=!1){super(d,b),this.expression=d,this.isVolatileBinding=I,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(d){this.isAsync=this.needsQueue=d}bind(d){this.controller=d;const b=this.observe(d.source,d.context);return!d.isBound&&this.requiresUnbind(d)&&d.onUnbind(this),b}requiresUnbind(d){return d.sourceLifetime!==vs.coupled||this.first!==this.last||this.first.propertySource!==d.source}unbind(d){this.dispose()}observe(d,b){this.needsRefresh&&this.last!==null&&this.dispose();const I=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let j;try{j=this.expression(d,b)}finally{s=I}return j}disconnect(){this.dispose()}dispose(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(d,b){const I=this.last,j=r(d),ee=I===null?this.first:{};if(ee.propertySource=d,ee.propertyName=b,ee.notifier=j,j.subscribe(this,b),I!==null){if(!this.needsRefresh){let vi;s=void 0,vi=I.propertySource[I.propertyName],s=this,d===vi&&(this.needsRefresh=!0)}I.next=ee}this.last=ee}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 d=this.first;for(;d!==void 0;)yield d,d=d.next}}return Ce(g),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,d){s&&s.watch(u,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(u,d){r(u).notify(d)},defineProperty(u,d){Bt(d)&&(d=new h(d)),n(u).push(d),Reflect.defineProperty(u,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(u,d,b=this.isVolatileBinding(u)){return new g(u,d,b)},isVolatileBinding(u){return t.test(u.toString())}})});function k(o,t){m.defineProperty(o,t)}function yn(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const Ii=Q.getById(le.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),De=Object.freeze({default:{index:0,length:0,get event(){return De.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Ii.get()},setEvent(o){Ii.set(o)}});class ko{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class kn extends ko{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function Pi(o,t,e=m.isVolatileBinding(o)){return new kn(o,t,e)}class zi extends ko{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ce(zi);function Bi(o,t){return new zi(o,t)}let Ti;function Ai(o){return o.map(t=>t instanceof at?Ai(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class at{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof at?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ti),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(Ai(this.styles)),this}static setDefaultStrategy(t){Ti=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new at(t):t instanceof at?t:new at([t])}}at.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const ys=ms(),ks=Object.freeze({getForInstance:ys.getForInstance,getByType:ys.getByType,define(o){return ys.register({type:o}),o}});function xs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ws{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((g,u)=>xs(u,g.controller,g.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){xs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){xs(this,e.controller,e)}}ks.define(ws);const xn=`${Math.random().toString(36).substring(2,8)}`;let wn=0;const Fi=()=>`--v${xn}${++wn}`;function _i(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let g=t[n];we(g)?g=new ws(Pi(g),Fi()).createCSS(r):g instanceof ko?g=new ws(g,Fi()).createCSS(r):ks.getForInstance(g)!==void 0&&(g=g.createCSS(r)),g instanceof at||g instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(g)):s+=g}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=_i(o,t),i=new at(e);return s.length?i.withBehaviors(...s):i};class Oi{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Bt(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new at(s))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}ks.define(Oi),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=_i(o,t);return new Oi(e,s)};const Cs=`fast-${Math.random().toString(36).substring(2,8)}`,xo=`${Cs}{`,Ve=`}${Cs}`,Cn=Ve.length;let Sn=0;const Ss=()=>`${Cs}-${++Sn}`,Mi=Object.freeze({interpolation:o=>`${xo}${o}${Ve}`,attribute:o=>`${Ss()}="${xo}${o}${Ve}"`,comment:o=>`<!--${xo}${o}${Ve}-->`}),wo=Object.freeze({parse(o,t){const e=o.split(xo);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(Ve);let g;if(h===-1)g=n;else{const u=n.substring(0,h);s.push(t[u]),g=n.substring(h+Cn)}g!==""&&s.push(g)}return s}}),Is=ms(),vt=Object.freeze({getForInstance:Is.getForInstance,getByType:Is.getByType,define(o,t){return t=t||{},t.type=o,Is.register(t),o},assignAspect(o,t){if(!t){o.aspectType=et.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?et.tokenList:et.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=et.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=et.event;break;default:o.targetAspect=t,o.aspectType=et.attribute;break}}});class Ps{constructor(t){this.options=t}createHTML(t){return Mi.attribute(t(this))}createBehavior(){return this}}Ce(Ps);function In(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function Pn(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const g=o[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let d=0,b=u.length;d<b;++d){const I=u[d];I!==""&&(n[I]=h,g.add(I))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&g.remove(u)}}const zn={[et.attribute]:Se.setAttribute,[et.booleanAttribute]:Se.setBooleanAttribute,[et.property]:(o,t,e)=>o[t]=e,[et.content]:In,[et.tokenList]:Pn,[et.event]:()=>{}};class Ie{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=et.content}createHTML(t){return Mi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=zn[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Q.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case et.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case et.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){De.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);De.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}vt.define(Ie,{aspected:!0});function Ni(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class Co{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=vs.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return De.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}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){Ni(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[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 t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Ni(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}Ce(Co),m.defineProperty(Co.prototype,"index"),m.defineProperty(Co.prototype,"length");const Ei=(o,t)=>`${o}.${t}`,Li={},At={index:0,node:null};function Hi(o){o.startsWith("fast-")||Q.warn(1204,{name:o})}const Bn=new Proxy(document.createElement("div"),{get(o,t){Hi(t);const e=Reflect.get(o,t);return we(e)?e.bind(o):e},set(o,t,e){return Hi(t),Reflect.set(o,t,e)}});class Tn{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:Ss(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),g=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,g)}let r=Li[e];if(!r){const n=`_${e}`;Li[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??Bn;for(const i of this.nodeIds)s[i];return new Co(e,this.factories,s)}}function Di(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let g=0,u=n.length;g<u;++g){const d=n[g],b=d.value,I=wo.parse(b,h);let j=null;I===null?r&&(j=new Ie(Bi(()=>b,o.policy)),vt.assignAspect(j,d.name)):j=zs.aggregate(I,o.policy),j!==null&&(e.removeAttributeNode(d),g--,u--,o.addFactory(j,t,s,i,e.tagName))}}function An(o,t,e,s,i){const r=wo.parse(t.textContent,o.directives);if(r===null)return At.node=t.nextSibling,At.index=i+1,At;let n,h=n=t;for(let g=0,u=r.length;g<u;++g){const d=r[g];g!==0&&(i++,s=Ei(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),Bt(d)?n.textContent=d:(n.textContent=" ",vt.assignAspect(d),o.addFactory(d,e,s,i,null)),h=n}return At.index=i+1,At.node=h.nextSibling,At}function Vi(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Fn(o,e,i,s);i=r.node,s=r.index}}function Fn(o,t,e,s){const i=Ei(t,s);switch(e.nodeType){case 1:Di(o,t,e,i,s),Vi(o,e,i);break;case 3:return An(o,e,t,i,s);case 8:const r=wo.parse(e.data,o.directives);r!==null&&o.addFactory(zs.aggregate(r),t,i,s,null);break}return At.index=s+1,At.node=e.nextSibling,At}function _n(o,t){return o&&o.nodeType==8&&wo.parse(o.data,t)!==null}const ji="TEMPLATE",zs={compile(o,t,e=Se.policy){let s;if(Bt(o)){s=document.createElement(ji),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===ji&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new Tn(i,t,e);return Di(r,"",s,"h",0,!0),(_n(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Vi(r,i,"r"),At.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Se.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(d=>Bt(d)?()=>d:(e=d.sourceAspect||e,s=d.dataBinding||s,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),g=(d,b)=>{let I="";for(let j=0;j<n;++j)I+=h[j](d,b);return I};s.evaluate=g,s.isVolatile=i,s.policy=r??t;const u=new Ie(s);return vt.assignAspect(u,e),u}},On=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Mn=Object.create(null);class ce{constructor(t,e=Mn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}ce.empty=new ce(""),vt.define(ce);function Nn(o,t,e,s=vt.getForInstance(o)){if(s.aspected){const i=On.exec(t);i!==null&&vt.assignAspect(o,i[2])}return o.createHTML(e)}class ps{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=zs.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ce(Bt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Q.error(1208);if(this.policy)throw Q.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var g;const u=(g=h.id)!==null&&g!==void 0?g:h.id=Ss();return r[u]=h,u};for(let h=0,g=t.length-1;h<g;++h){const u=t[h];let d=e[h],b;if(i+=u,we(d))d=new Ie(Pi(d));else if(d instanceof ko)d=new Ie(d);else if(!(b=vt.getForInstance(d))){const I=d;d=new Ie(Bi(()=>I))}i+=Nn(d,u,n,b)}return new ps(i+t[t.length-1],r,s)}}Ce(ps);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ps.create(o,t);throw Q.error(1206)};f.partial=o=>new ce(o);class Ri extends Ps{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Ri);const Ft=o=>new Ri(o),En=o=>o.nodeType===1,je=o=>o?t=>t.nodeType===1&&t.matches(o):En;class qi extends Ps{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,mn),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Gi="slotchange";class Wi extends qi{observe(t){t.addEventListener(Gi,this)}disconnect(t){t.removeEventListener(Gi,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(Wi);function pt(o){return Bt(o)&&(o={property:o}),new Wi(o)}class Xi extends qi{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=ki,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}vt.define(Xi);function Ln(o){return Bt(o)&&(o={property:o}),new Xi(o)}const Ui="boolean",Ki="reflect",So=Object.freeze({locate:wi()}),Hn={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Yi(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const st={toView(o){const t=Yi(o);return t&&t.toString()},fromView:Yi};class gs{constructor(t,e,s=e.toLowerCase(),i=Ki,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===Ui&&r===void 0&&(this.converter=Hn)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return m.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,s=this.guards;s.has(t)||e==="fromView"||Tt.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Ki:const r=this.converter;Se.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Ui:Se.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(So.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,g=n.length;h<g;++h){const u=n[h];Bt(u)?s.push(new gs(t,u)):s.push(new gs(t,u.property,u.attribute,u.mode,u.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),So.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Qi={mode:"open"},Zi={},Ji=new Set,Io=Q.getById(le.elementRegistry,()=>ms());class zt{constructor(t,e=t.definition){var s;this.platformDefined=!1,Bt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=gs.collect(t,e.attributes),n=new Array(r.length),h={},g={};for(let u=0,d=r.length;u<d;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,g[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=g,this.shadowOptions=e.shadowOptions===void 0?Qi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Qi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Zi:Object.assign(Object.assign({},Zi),e.elementOptions),this.styles=at.normalize(e.styles),Io.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Ji.has(t)||Io.getByType(t)?new zt(class extends t{},e):new zt(t,e)}static registerBaseType(t){Ji.add(t)}}zt.getByType=Io.getByType,zt.getForInstance=Io.getForInstance;const Dn={bubbles:!0,composed:!0,cancelable:!0},Bs="isConnected",tr=new WeakMap;function Po(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:tr.get(o))!==null&&e!==void 0?e:null}let er;class zo extends Si{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&tr.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const g=i[n].name,u=t[g];u!==void 0&&(delete t[g],r[g]=u)}}}get isConnected(){return m.track(this,Bs),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:De.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Po(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Po(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Bs)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,Bs),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Dn),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=Po(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=vs.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=zt.getForInstance(t);if(s===void 0)throw Q.error(1401);return t.$fastController=new er(t,s)}static setStrategy(t){er=t}}Ce(zo),zo.setStrategy(zo);function Bo(o){var t;return"adoptedStyleSheets"in o?o:(t=Po(o))!==null&&t!==void 0?t:o.getRootNode()}class fs{constructor(t){const e=fs.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){sr(Bo(t),this.sheets)}removeStylesFrom(t){ir(Bo(t),this.sheets)}}fs.styleSheetCache=new Map;let Vn=0;const jn=()=>`fast-${++Vn}`;function or(o){return o===document?document.body:o}class Rn{constructor(t){this.styles=t,this.styleClass=jn()}addStylesTo(t){t=or(Bo(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=or(Bo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let sr=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},ir=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(at.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),sr=(o,t)=>{o.adoptedStyleSheets.push(...t)},ir=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}at.setDefaultStrategy(fs)}else at.setDefaultStrategy(Rn);function rr(o){const t=class extends o{constructor(){super(),zo.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return zt.registerBaseType(t),t}function qn(o,t){return we(o)?zt.compose(o,t):zt.compose(this,o)}function Gn(o,t){return we(o)?zt.compose(o,t).define().type:zt.compose(this,o).define().type}function Wn(o){return rr(o)}const x=Object.assign(rr(HTMLElement),{from:Wn,define:Gn,compose:qn}),gt={horizontal:"horizontal",vertical:"vertical"};function Xn(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function nr(...o){return o.every(t=>t instanceof HTMLElement)}const Ts="ArrowDown",As="ArrowLeft",Fs="ArrowRight",_s="ArrowUp",Os="End",To="Enter",Un="Escape",Ms="Home",Ns=" ",Kn="Tab";var yt;(function(o){o.ltr="ltr",o.rtl="rtl"})(yt||(yt={}));function Es(o,t,e){return Math.min(Math.max(e,o),t)}let Yn=0;function Ao(o=""){return`${o}${Yn++}`}var Qn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,E=(o,t,e,s)=>{for(var i=s>1?void 0:s?Zn(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Qn(t,e,i),i};class L{}E([a({attribute:"aria-atomic"})],L.prototype,"ariaAtomic",2),E([a({attribute:"aria-busy"})],L.prototype,"ariaBusy",2),E([a({attribute:"aria-controls"})],L.prototype,"ariaControls",2),E([a({attribute:"aria-current"})],L.prototype,"ariaCurrent",2),E([a({attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),E([a({attribute:"aria-details"})],L.prototype,"ariaDetails",2),E([a({attribute:"aria-disabled"})],L.prototype,"ariaDisabled",2),E([a({attribute:"aria-errormessage"})],L.prototype,"ariaErrormessage",2),E([a({attribute:"aria-flowto"})],L.prototype,"ariaFlowto",2),E([a({attribute:"aria-haspopup"})],L.prototype,"ariaHaspopup",2),E([a({attribute:"aria-hidden"})],L.prototype,"ariaHidden",2),E([a({attribute:"aria-invalid"})],L.prototype,"ariaInvalid",2),E([a({attribute:"aria-keyshortcuts"})],L.prototype,"ariaKeyshortcuts",2),E([a({attribute:"aria-label"})],L.prototype,"ariaLabel",2),E([a({attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),E([a({attribute:"aria-live"})],L.prototype,"ariaLive",2),E([a({attribute:"aria-owns"})],L.prototype,"ariaOwns",2),E([a({attribute:"aria-relevant"})],L.prototype,"ariaRelevant",2),E([a({attribute:"aria-roledescription"})],L.prototype,"ariaRoledescription",2);const Ls={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},ar=o=>o.closest("[dir]")?.dir==="rtl"?yt.rtl:yt.ltr;function ft(o){return o?typeof o=="string"?new ce(o):"inline"in o?o.inline():o:ce.empty}const Jn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,ta=":host([hidden]){display:none}";function w(o){return`${ta}:host{display:${o}}`}class ea{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class $o extends ea{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new $o(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Z=$o.with(window.matchMedia("(forced-colors)"));$o.with(window.matchMedia("(prefers-color-scheme: dark)")),$o.with(window.matchMedia("(prefers-color-scheme: light)"));class Vt{}function oe(o){return f`<slot name="end" ${Ft("end")}>${ft(o.end)}</slot>`.inline()}function jt(o){return f`<slot name="start" ${Ft("start")}>${ft(o.start)}</slot>`.inline()}function Rt(o,...t){const e=So.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),So.locate(s).forEach(r=>e.push(r))})}const oa=CSS.supports("selector(:state(g))");function c(o,t,e){if(!oa){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}var sa=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,de=(o,t,e,s)=>{for(var i=s>1?void 0:s?ia(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&sa(t,e,i),i};class lt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ao("accordion-"),this.block=!1}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}}de([a({attribute:"heading-level",mode:"fromView",converter:st})],lt.prototype,"headinglevel",2),de([a({mode:"boolean"})],lt.prototype,"expanded",2),de([a({mode:"boolean"})],lt.prototype,"disabled",2),de([a],lt.prototype,"id",2),de([a],lt.prototype,"size",2),de([a({mode:"boolean"})],lt.prototype,"block",2),de([a({attribute:"marker-position"})],lt.prototype,"markerPosition",2),Rt(lt,Vt);const v=l.partial`:is([state--checked], :state(checked))`,W=l.partial`:is([state--disabled], :state(disabled))`,Fo=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,_o=l.partial`:is([state--filled-darker], :state(filled-darker))`,qt=l.partial`:is([state--ghost], :state(ghost))`,lr=l.partial`:is([state--inverted], :state(inverted))`,it=l.partial`:is([state--primary], :state(primary))`,R=l.partial`:is([state--outline], :state(outline))`,Re=l.partial`:is([state--strong], :state(strong))`,C=l.partial`:is([state--subtle], :state(subtle))`,se=l.partial`:is([state--tint], :state(tint))`,qe=l.partial`:is([state--underline], :state(underline))`,X=l.partial`:is([state--transparent], :state(transparent))`,Ge=l.partial`:is([state--circular], :state(circular))`,Gt=l.partial`:is([state--rounded], :state(rounded))`,We=l.partial`:is([state--square], :state(square))`,Xe=l.partial`:is([state--tiny], :state(tiny))`,Ue=l.partial`:is([state--extra-small], :state(extra-small))`,_=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const S=l.partial`:is([state--large], :state(large))`,Oo=l.partial`:is([state--extra-large], :state(extra-large))`,ra=l.partial`:is([state--huge], :state(huge))`,cr=l.partial`:is([state--align-start], :state(align-start))`,Wt=l.partial`:is([state--align-end], :state(align-end))`,Hs=l.partial`:is([state--inset], :state(inset))`,Pe=l.partial`:is([state--icon], :state(icon))`,P=l.partial`:is([state--pressed], :state(pressed))`,Xt=l.partial`:is([state--brand], :state(brand))`,Ds=l.partial`:is([state--error], :state(error))`,Mo=l.partial`:is([state--danger], :state(danger))`,No=l.partial`:is([state--important], :state(important))`,Eo=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const Lo=l.partial`:is([state--neutral], :state(neutral))`,Ho=l.partial`:is([state--severe], :state(severe))`,he=l.partial`:is([state--success], :state(success))`,ue=l.partial`:is([state--warning], :state(warning))`,J=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const Ke=l.partial`:is([state--multiline], :state(multiline))`,pe=l.partial`:is([state--expanded], :state(expanded))`,na=l.partial`:is([state--block], :state(block))`,z="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",aa="var(--colorNeutralForeground1Pressed)",Ut="var(--colorNeutralForeground2)",Do="var(--colorNeutralForeground2Hover)",Vo="var(--colorNeutralForeground2Pressed)",la="var(--colorNeutralForeground2Selected)",jo="var(--colorNeutralForeground2BrandHover)",Ro="var(--colorNeutralForeground2BrandPressed)",ca="var(--colorNeutralForeground2BrandSelected)",rt="var(--colorNeutralForeground3)",da="var(--colorNeutralForeground3Hover)",ha="var(--colorNeutralForeground3Pressed)",ua="var(--colorNeutralForeground4)",H="var(--colorNeutralForegroundDisabled)",pa="var(--colorBrandForegroundLink)",ga="var(--colorBrandForegroundLinkHover)",fa="var(--colorBrandForegroundLinkPressed)",ba="var(--colorNeutralForeground2Link)",ma="var(--colorNeutralForeground2LinkHover)",$a="var(--colorNeutralForeground2LinkPressed)",va="var(--colorCompoundBrandForeground1Hover)",ya="var(--colorCompoundBrandForeground1Pressed)",Kt="var(--colorNeutralForegroundOnBrand)",Ye="var(--colorNeutralForegroundInverted)",ka="var(--colorNeutralForegroundInvertedHover)",xa="var(--colorNeutralForegroundInvertedPressed)",hr="var(--colorNeutralForegroundStaticInverted)",Vs="var(--colorBrandForeground1)",wa="var(--colorBrandForeground2)",Ca="var(--colorNeutralForeground1Static)",O="var(--colorNeutralBackground1)",js="var(--colorNeutralBackground1Hover)",Rs="var(--colorNeutralBackground1Pressed)",ur="var(--colorNeutralBackground1Selected)",qs="var(--colorNeutralBackground3)",Sa="var(--colorNeutralBackground4)",Ia="var(--colorNeutralBackground5)",qo="var(--colorNeutralBackground6)",Pa="var(--colorNeutralBackgroundInverted)",za="var(--colorSubtleBackground)",Gs="var(--colorSubtleBackgroundHover)",Go="var(--colorSubtleBackgroundPressed)",Ba="var(--colorSubtleBackgroundSelected)",kt="var(--colorTransparentBackground)",Ws="var(--colorTransparentBackgroundHover)",Xs="var(--colorTransparentBackgroundPressed)",Ta="var(--colorTransparentBackgroundSelected)",ze="var(--colorNeutralBackgroundDisabled)",Us="var(--colorBackgroundOverlay)",Ks="var(--colorBrandBackground)",pr="var(--colorBrandBackgroundHover)",gr="var(--colorBrandBackgroundPressed)",Aa="var(--colorBrandBackgroundSelected)",Be="var(--colorCompoundBrandBackground)",Qe="var(--colorCompoundBrandBackgroundHover)",Ze="var(--colorCompoundBrandBackgroundPressed)",fr="var(--colorBrandBackgroundStatic)",Fa="var(--colorBrandBackground2)",ge="var(--colorNeutralStrokeAccessible)",Je="var(--colorNeutralStrokeAccessibleHover)",to="var(--colorNeutralStrokeAccessiblePressed)",fe="var(--colorNeutralStroke1)",Wo="var(--colorNeutralStroke1Hover)",Ys="var(--colorNeutralStroke1Pressed)",eo="var(--colorNeutralStroke2)",_a="var(--colorNeutralStroke3)",Oa="var(--colorNeutralStrokeOnBrand2)",br="var(--colorBrandStroke1)",Qs="var(--colorBrandStroke2)",Xo="var(--colorCompoundBrandStroke)",Ma="var(--colorCompoundBrandStrokeHover)",mr="var(--colorCompoundBrandStrokePressed)",_t="var(--colorNeutralStrokeDisabled)",nt="var(--colorTransparentStroke)",$r="var(--colorTransparentStrokeInteractive)",Zs="var(--colorStrokeFocus1)",Ot="var(--colorStrokeFocus2)",vr="var(--colorPaletteRedBackground1)",Na="var(--colorPaletteRedBackground2)",yr="var(--colorPaletteRedBackground3)",kr="var(--colorPaletteRedBorder1)",Ea="var(--colorPaletteRedBorder2)",xr="var(--colorPaletteRedForeground1)",La="var(--colorPaletteRedForeground2)",wr="var(--colorPaletteRedForeground3)",Cr="var(--colorPaletteGreenBackground1)",Sr="var(--colorPaletteGreenBackground3)",Ha="var(--colorPaletteGreenBorder1)",Da="var(--colorPaletteGreenBorder2)",Va="var(--colorPaletteGreenForeground1)",ja="var(--colorPaletteGreenForeground2)",Ra="var(--colorPaletteGreenForeground3)",Ir="var(--colorPaletteDarkOrangeBackground1)",Pr="var(--colorPaletteDarkOrangeBackground3)",zr="var(--colorPaletteDarkOrangeBorder1)",qa="var(--colorPaletteDarkOrangeForeground1)",Br="var(--colorPaletteDarkOrangeForeground3)",Ga="var(--colorPaletteYellowBackground1)",Wa="var(--colorPaletteYellowBackground3)",Xa="var(--colorPaletteYellowBorder1)",Js="var(--colorPaletteYellowForeground2)",Tr="var(--colorPaletteMarigoldBackground2)",Ua="var(--colorPaletteMarigoldBackground3)",Ka="var(--colorPaletteMarigoldForeground2)",Ya="var(--colorPaletteAnchorBackground2)",Qa="var(--colorPaletteAnchorForeground2)",Za="var(--colorPaletteBeigeBackground2)",Ja="var(--colorPaletteBeigeForeground2)",tl="var(--colorPaletteBlueBackground2)",el="var(--colorPaletteBlueForeground2)",ol="var(--colorPaletteBrassBackground2)",sl="var(--colorPaletteBrassForeground2)",il="var(--colorPaletteBrownBackground2)",rl="var(--colorPaletteBrownForeground2)",nl="var(--colorPaletteCornflowerBackground2)",al="var(--colorPaletteCornflowerForeground2)",ll="var(--colorPaletteCranberryBackground2)",cl="var(--colorPaletteCranberryForeground2)",dl="var(--colorPaletteDarkGreenBackground2)",hl="var(--colorPaletteDarkGreenForeground2)",ul="var(--colorPaletteDarkRedBackground2)",pl="var(--colorPaletteDarkRedForeground2)",gl="var(--colorPaletteForestBackground2)",fl="var(--colorPaletteForestForeground2)",bl="var(--colorPaletteGoldBackground2)",ml="var(--colorPaletteGoldForeground2)",$l="var(--colorPaletteGrapeBackground2)",vl="var(--colorPaletteGrapeForeground2)",yl="var(--colorPaletteLavenderBackground2)",kl="var(--colorPaletteLavenderForeground2)",xl="var(--colorPaletteLightTealBackground2)",wl="var(--colorPaletteLightTealForeground2)",Cl="var(--colorPaletteLilacBackground2)",Sl="var(--colorPaletteLilacForeground2)",Il="var(--colorPaletteMagentaBackground2)",Pl="var(--colorPaletteMagentaForeground2)",zl="var(--colorPaletteMinkBackground2)",Bl="var(--colorPaletteMinkForeground2)",Tl="var(--colorPaletteNavyBackground2)",Al="var(--colorPaletteNavyForeground2)",Fl="var(--colorPalettePeachBackground2)",_l="var(--colorPalettePeachForeground2)",Ol="var(--colorPalettePinkBackground2)",Ml="var(--colorPalettePinkForeground2)",Nl="var(--colorPalettePlatinumBackground2)",El="var(--colorPalettePlatinumForeground2)",Ll="var(--colorPalettePlumBackground2)",Hl="var(--colorPalettePlumForeground2)",Dl="var(--colorPalettePumpkinBackground2)",Vl="var(--colorPalettePumpkinForeground2)",jl="var(--colorPalettePurpleBackground2)",Rl="var(--colorPalettePurpleForeground2)",ql="var(--colorPaletteRoyalBlueBackground2)",Gl="var(--colorPaletteRoyalBlueForeground2)",Wl="var(--colorPaletteSeafoamBackground2)",Xl="var(--colorPaletteSeafoamForeground2)",Ul="var(--colorPaletteSteelBackground2)",Kl="var(--colorPaletteSteelForeground2)",Yl="var(--colorPaletteTealBackground2)",Ql="var(--colorPaletteTealForeground2)",ti="var(--borderRadiusNone)",Mt="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",Ar="var(--borderRadiusLarge)",Fr="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",Zl="var(--fontFamilyMonospace)",Jl="var(--fontFamilyNumeric)",oo="var(--fontSizeBase100)",q="var(--fontSizeBase200)",T="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",Te="var(--fontSizeBase500)",Uo="var(--fontSizeBase600)",_r="var(--fontSizeHero700)",Or="var(--fontSizeHero800)",Mr="var(--fontSizeHero900)",Nr="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",tc="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",Ko="var(--fontWeightBold)",Yo="var(--lineHeightBase100)",ot="var(--lineHeightBase200)",D="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Qo="var(--lineHeightBase500)",Er="var(--lineHeightBase600)",Lr="var(--lineHeightHero700)",Hr="var(--lineHeightHero800)",Dr="var(--lineHeightHero900)",Vr="var(--lineHeightHero1000)",jr="var(--shadow2)",Zo="var(--shadow4)",ec="var(--shadow8)",Rr="var(--shadow16)",oc="var(--shadow28)",qr="var(--shadow64)",U="var(--strokeWidthThin)",wt="var(--strokeWidthThick)",Ct="var(--strokeWidthThicker)",ei="var(--strokeWidthThickest)",ht="var(--spacingHorizontalXXS)",Yt="var(--spacingHorizontalXS)",Qt="var(--spacingHorizontalSNudge)",Zt="var(--spacingHorizontalS)",Nt="var(--spacingHorizontalMNudge)",ut="var(--spacingHorizontalM)",sc="var(--spacingHorizontalL)",ic="var(--spacingHorizontalXL)",rc="var(--spacingHorizontalXXL)",Jo="var(--spacingVerticalXXS)",nc="var(--spacingVerticalXS)",so="var(--spacingVerticalSNudge)",bt="var(--spacingVerticalS)",io="var(--spacingVerticalMNudge)",ac="var(--spacingVerticalM)",oi="var(--spacingVerticalL)",ro="var(--spacingVerticalXXL)",lc="var(--durationUltraFast)",si="var(--durationFaster)",Gr="var(--durationNormal)",ii="var(--durationGentle)",cc="var(--durationSlow)",Wr="var(--durationSlower)",ts="var(--durationUltraSlow)",dc="var(--curveAccelerateMax)",no="var(--curveAccelerateMid)",hc="var(--curveAccelerateMin)",Xr="var(--curveDecelerateMax)",ao="var(--curveDecelerateMid)",uc="var(--curveDecelerateMin)",pc="var(--curveEasyEaseMax)",es="var(--curveEasyEase)",ri="var(--curveLinear)",gc=l`
2
2
  ${w("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ut} ${Nt};border-radius:${T};font-family:${$};font-size:${A};font-weight:${M};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${kt};border:none;box-sizing:border-box;color:${B};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:${Mt}}: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:${Jt};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ut}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Jt};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Mt};outline:none;border:2px solid ${Ys};box-shadow:inset 0 0 0 1px ${Ot}}:host(${W}) .button{color:${H}}:host(${W}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${ge}) .content{display:block}:host(${ge}) .default-marker-collapsed,:host(${ge}) ::slotted([slot='marker-collapsed']),:host(:not(${ge})) :is(.default-marker-expanded,.content),:host(:not(${ge})) ::slotted([slot='marker-expanded']){display:none}:host(${ge}) ::slotted([slot='marker-expanded']),:host(:not(${ge})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${A};line-height:${D}}:host(${_}) .heading{font-size:${q};line-height:${ot}}:host(${S}) .heading{font-size:${dt};line-height:${xt}}:host(${_o}) .heading{font-size:${Ae};line-height:${Yo}}:host(${Xt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${Xt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Jt};padding-inline-end:0}:host(${Xt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${Xt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${ut}}:host(${Xt}:has([slot='start'])) .heading{padding-inline:${Nt} ${ut}}:host(${ia}${Xt}) .heading{grid-template-columns:auto 1fr}:host(${Xt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,pc=f.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ut} ${Nt};border-radius:${B};font-family:${$};font-size:${T};font-weight:${M};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${kt};border:none;box-sizing:border-box;color:${z};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:${Mt}}: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:${Zt};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ut}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Zt};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Mt};outline:none;border:2px solid ${Zs};box-shadow:inset 0 0 0 1px ${Ot}}:host(${W}) .button{color:${H}}:host(${W}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${pe}) .content{display:block}:host(${pe}) .default-marker-collapsed,:host(${pe}) ::slotted([slot='marker-collapsed']),:host(:not(${pe})) :is(.default-marker-expanded,.content),:host(:not(${pe})) ::slotted([slot='marker-expanded']){display:none}:host(${pe}) ::slotted([slot='marker-expanded']),:host(:not(${pe})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${T};line-height:${D}}:host(${_}) .heading{font-size:${q};line-height:${ot}}:host(${S}) .heading{font-size:${dt};line-height:${xt}}:host(${Oo}) .heading{font-size:${Te};line-height:${Qo}}:host(${Wt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${Wt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Zt};padding-inline-end:0}:host(${Wt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${Wt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${ut}}:host(${Wt}:has([slot='start'])) .heading{padding-inline:${Nt} ${ut}}:host(${na}${Wt}) .heading{grid-template-columns:auto 1fr}:host(${Wt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,fc=f.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -14,7 +14,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
14
14
  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"
15
15
  fill="currentColor"
16
16
  />
17
- </svg>`),gc=f.partial(`<svg
17
+ </svg>`),bc=f.partial(`<svg
18
18
  width="20"
19
19
  height="20"
20
20
  viewBox="0 0 20 20"
@@ -27,22 +27,22 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
27
27
  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"
28
28
  fill="currentColor"
29
29
  />
30
- </svg>`);function fc(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Ft("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${Rt(o)}<slot name="marker-expanded">${ft(o.expandedIcon)}</slot><slot name="marker-collapsed">${ft(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const bc=fc({collapsedIcon:pc,expandedIcon:gc}),mc=lt.compose({name:`${p.prefix}-accordion-item`,template:bc,styles:uc});mc.define(p.registry);const ii={single:"single",multi:"multi"};var $c=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,Wr=(o,t,e,s)=>{for(var i=s>1?void 0:s?vc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&$c(t,e,i),i};class ri extends x{constructor(){super(...arguments),this.expandmode=ii.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>m.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,s)=>{e instanceof lt&&(e.addEventListener("click",this.expandedChangedHandler),m.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,s)=>{m.getNotifier(e).unsubscribe(this,"disabled"),m.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof lt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const s=this.findExpandedItem();if(s){if(e===ii.single){this.setSingleExpandMode(s);return}s?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof lt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===ii.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((s,i)=>{s instanceof lt&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}}Wr([a({attribute:"expand-mode"})],ri.prototype,"expandmode",2),Wr([k],ri.prototype,"slottedAccordionItems",2);const yc=l`
30
+ </svg>`);function mc(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Ft("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${jt(o)}<slot name="marker-expanded">${ft(o.expandedIcon)}</slot><slot name="marker-collapsed">${ft(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const $c=mc({collapsedIcon:fc,expandedIcon:bc}),vc=lt.compose({name:`${p.prefix}-accordion-item`,template:$c,styles:gc});vc.define(p.registry);const ni={single:"single",multi:"multi"};var yc=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,Ur=(o,t,e,s)=>{for(var i=s>1?void 0:s?kc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yc(t,e,i),i};class ai extends x{constructor(){super(...arguments),this.expandmode=ni.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>m.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,s)=>{e instanceof lt&&(e.addEventListener("click",this.expandedChangedHandler),m.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,s)=>{m.getNotifier(e).unsubscribe(this,"disabled"),m.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof lt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const s=this.findExpandedItem();if(s){if(e===ni.single){this.setSingleExpandMode(s);return}s?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof lt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===ni.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((s,i)=>{s instanceof lt&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}}Ur([a({attribute:"expand-mode"})],ai.prototype,"expandmode",2),Ur([k],ai.prototype,"slottedAccordionItems",2);const xc=l`
31
31
  ${w("flex")}
32
32
 
33
- :host{flex-direction:column;width:100%;contain:content}`;function kc(){return f`<template><slot ${pt({property:"slottedAccordionItems",filter:je()})}></slot></template>`}const xc=kc(),wc=ri.compose({name:`${p.prefix}-accordion`,template:xc,styles:yc});wc.define(p.registry);const es={submit:"submit",reset:"reset",button:"button"},Cc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Sc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,mt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ic(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Sc(t,e,i),i};class Et extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Cc){const s=this.$fastController.definition.attributeLookup[e]?.attribute;s&&this.handleProxyAttributeChange(s,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===Bo){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}mt([a],Et.prototype,"download",2),mt([a],Et.prototype,"href",2),mt([a],Et.prototype,"hreflang",2),mt([a],Et.prototype,"ping",2),mt([a],Et.prototype,"referrerpolicy",2),mt([a],Et.prototype,"rel",2),mt([a],Et.prototype,"target",2),mt([a],Et.prototype,"type",2);class Fe extends Et{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",!!e)}}mt([a],Fe.prototype,"appearance",2),mt([a],Fe.prototype,"shape",2),mt([a],Fe.prototype,"size",2),mt([a({attribute:"icon-only",mode:"boolean"})],Fe.prototype,"iconOnly",2),qt(Fe,jt);const Xr=l`
33
+ :host{flex-direction:column;width:100%;contain:content}`;function wc(){return f`<template><slot ${pt({property:"slottedAccordionItems",filter:je()})}></slot></template>`}const Cc=wc(),Sc=ai.compose({name:`${p.prefix}-accordion`,template:Cc,styles:xc});Sc.define(p.registry);const os={submit:"submit",reset:"reset",button:"button"},Ic={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Pc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,mt=(o,t,e,s)=>{for(var i=s>1?void 0:s?zc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Pc(t,e,i),i};class Et extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Ic){const s=this.$fastController.definition.attributeLookup[e]?.attribute;s&&this.handleProxyAttributeChange(s,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===To){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}mt([a],Et.prototype,"download",2),mt([a],Et.prototype,"href",2),mt([a],Et.prototype,"hreflang",2),mt([a],Et.prototype,"ping",2),mt([a],Et.prototype,"referrerpolicy",2),mt([a],Et.prototype,"rel",2),mt([a],Et.prototype,"target",2),mt([a],Et.prototype,"type",2);class Ae extends Et{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",!!e)}}mt([a],Ae.prototype,"appearance",2),mt([a],Ae.prototype,"shape",2),mt([a],Ae.prototype,"size",2),mt([a({attribute:"icon-only",mode:"boolean"})],Ae.prototype,"iconOnly",2),Rt(Ae,Vt);const Kr=l`
34
34
  ${w("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${Zt};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:${O};color:${B};border:${U} solid ${be};padding:0 ${ut};min-width:96px;border-radius:${T};font-size:${A};font-family:${$};font-weight:${N};line-height:${D};transition-duration:${ei};transition-property:background,border,color;transition-timing-function:${ts};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ds};color:${lr};border-color:${Go}}:host(:hover:active){background-color:${Vs};border-color:${Us};color:${ra};outline-style:none}:host(:focus-visible){border-color:${nt};outline:${wt} solid ${nt};box-shadow:${Qo},0 0 0 2px ${Ot}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${ze}){min-width:32px;max-width:32px}:host(${_}){--icon-spacing:${Qt};min-height:24px;min-width:64px;padding:0 ${Jt};border-radius:${Mt};font-size:${q};line-height:${ot};font-weight:${M}}:host(${_}${ze}){min-width:24px;max-width:24px}:host(${S}){min-height:40px;border-radius:${Br};padding:0 ${ec};font-size:${dt};line-height:${xt}}:host(${S}${ze}){min-width:40px;max-width:40px}:host(${S}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Ge},${Ge}:focus-visible)){border-radius:${ct}}:host(:is(${We},${We}:focus-visible)){border-radius:${Zs}}:host(${it}){background-color:${Xs};color:${Yt};border-color:transparent}:host(${it}:hover){background-color:${hr}}:host(${it}:is(:hover,:hover:active)){border-color:transparent;color:${Yt}}:host(${it}:hover:active){background-color:${ur}}:host(${it}:focus-visible){border-color:${Yt};box-shadow:${Dr},0 0 0 2px ${Ot}}:host(${R}){background-color:${kt}}:host(${R}:hover){background-color:${qs}}:host(${R}:hover:active){background-color:${Gs}}:host(${C}){background-color:${Ia};color:${Kt};border-color:transparent}:host(${C}:hover){background-color:${Rs};color:${Ho};border-color:transparent}:host(${C}:hover:active){background-color:${qo};color:${Do};border-color:transparent}:host(${C}:hover) ::slotted(svg){fill:${Vo}}:host(${C}:hover:active) ::slotted(svg){fill:${jo}}:host(${X}){background-color:${kt};color:${Kt}}:host(${X}:hover){background-color:${qs};color:${Vo}}:host(${X}:hover:active){background-color:${Gs};color:${jo}}:host(:is(${X},${X}:is(:hover,:active))){border-color:transparent}`,os=l`
37
- ${Xr}
36
+ :host{--icon-spacing:${Qt};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:${O};color:${z};border:${U} solid ${fe};padding:0 ${ut};min-width:96px;border-radius:${B};font-size:${T};font-family:${$};font-weight:${N};line-height:${D};transition-duration:${si};transition-property:background,border,color;transition-timing-function:${es};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${js};color:${dr};border-color:${Wo}}:host(:hover:active){background-color:${Rs};border-color:${Ys};color:${aa};outline-style:none}:host(:focus-visible){border-color:${nt};outline:${wt} solid ${nt};box-shadow:${Zo},0 0 0 2px ${Ot}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${Pe}){min-width:32px;max-width:32px}:host(${_}){--icon-spacing:${Yt};min-height:24px;min-width:64px;padding:0 ${Zt};border-radius:${Mt};font-size:${q};line-height:${ot};font-weight:${M}}:host(${_}${Pe}){min-width:24px;max-width:24px}:host(${S}){min-height:40px;border-radius:${Ar};padding:0 ${sc};font-size:${dt};line-height:${xt}}:host(${S}${Pe}){min-width:40px;max-width:40px}:host(${S}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Ge},${Ge}:focus-visible)){border-radius:${ct}}:host(:is(${We},${We}:focus-visible)){border-radius:${ti}}:host(${it}){background-color:${Ks};color:${Kt};border-color:transparent}:host(${it}:hover){background-color:${pr}}:host(${it}:is(:hover,:hover:active)){border-color:transparent;color:${Kt}}:host(${it}:hover:active){background-color:${gr}}:host(${it}:focus-visible){border-color:${Kt};box-shadow:${jr},0 0 0 2px ${Ot}}:host(${R}){background-color:${kt}}:host(${R}:hover){background-color:${Ws}}:host(${R}:hover:active){background-color:${Xs}}:host(${C}){background-color:${za};color:${Ut};border-color:transparent}:host(${C}:hover){background-color:${Gs};color:${Do};border-color:transparent}:host(${C}:hover:active){background-color:${Go};color:${Vo};border-color:transparent}:host(${C}:hover) ::slotted(svg){fill:${jo}}:host(${C}:hover:active) ::slotted(svg){fill:${Ro}}:host(${X}){background-color:${kt};color:${Ut}}:host(${X}:hover){background-color:${Ws};color:${jo}}:host(${X}:hover:active){background-color:${Xs};color:${Ro}}:host(:is(${X},${X}:is(:hover,:active))){border-color:transparent}`,ss=l`
37
+ ${Kr}
38
38
 
39
- :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${Be};border-color:${_t};color:${H};cursor:not-allowed}:host(${it}:is(:disabled,[disabled-focusable])),:host(${it}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${R}:is(:disabled,[disabled-focusable])),:host(${R}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${kt}}:host(${C}:is(:disabled,[disabled-focusable])),:host(${C}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${kt};border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${kt}}`.withBehaviors(Z(l`
40
- :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Pc=l`
41
- ${Xr}
39
+ :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${ze};border-color:${_t};color:${H};cursor:not-allowed}:host(${it}:is(:disabled,[disabled-focusable])),:host(${it}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${R}:is(:disabled,[disabled-focusable])),:host(${R}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${kt}}:host(${C}:is(:disabled,[disabled-focusable])),:host(${C}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${kt};border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${kt}}`.withBehaviors(Z(l`
40
+ :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Bc=l`
41
+ ${Kr}
42
42
 
43
43
  ::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
44
- :host{border-color:LinkText;color:LinkText}`));function zc(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Rt(o)}<span class="content" part="content"><slot></slot></span>${se(o)}</template>`}const Bc=zc(),Tc=Fe.compose({name:`${p.prefix}-anchor-button`,template:Bc,styles:Pc});Tc.define(p.registry);const Ac=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Fc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,_c=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Oc=/\s+/g,Mc=/[\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 Nc(o,t,e){let s="";const i=o.split(" ");return i.length!==0&&(s+=i[0].charAt(0).toUpperCase()),e||(i.length===2?s+=i[1].charAt(0).toUpperCase():i.length===3&&(s+=i[2].charAt(0).toUpperCase())),t&&s.length>1?s.charAt(1)+s.charAt(0):s}function Ec(o){return o=o.replace(Ac,""),o=o.replace(Fc,""),o=o.replace(Oc," "),o=o.trim(),o}function Lc(o,t,e){return!o||(o=Ec(o),Mc.test(o)||!e?.allowPhoneInitials&&_c.test(o))?"":Nc(o,t,e?.firstInitialOnly)}const Ur={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"},Kr={neutral:"neutral",brand:"brand",colorful:"colorful",...Ur};var Hc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,re=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Hc(t,e,i),i};const Lt=class fi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Kr.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?fi.colors[jc(this.name??"")%fi.colors.length]:this.color??Kr.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Lc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Lt.colors=Object.values(Ur),re([a],Lt.prototype,"name",2),re([a],Lt.prototype,"initials",2),re([a({converter:st})],Lt.prototype,"size",2),re([a],Lt.prototype,"shape",2),re([a],Lt.prototype,"active",2),re([a],Lt.prototype,"appearance",2),re([a],Lt.prototype,"color",2),re([a({attribute:"color-id"})],Lt.prototype,"colorId",2);let Vc=Lt;const jc=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const s=o.charCodeAt(e),i=e%8;t^=(s<<i)+(s>>8-i)}return t},ne={fastOutSlowInMax:Gr,fastOutSlowInMid:ao,fastOutSlowInMin:dc,slowOutFastInMax:lc,slowOutFastInMid:no,slowOutFastInMin:cc,fastEase:hc,normalEase:ts,nullEasing:si},Rc=l`
45
- ${w("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${N};font-size:${A};border-radius:${ct};color:${rt};background-color:${Ro};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ct}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${U}) ${O}}: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 ${wt}) ${O}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${oo};font-weight:${M}}: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:${q}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${dt}}: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:${Ae}}: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:${Xo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Mt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Br}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Tr}}:host(:is([state--brand],:state(brand))){color:${cr};background-color:${pr}}:host(:is([state--dark-red],:state(dark-red))){color:${hl};background-color:${dl}}:host(:is([state--cranberry],:state(cranberry))){color:${al};background-color:${nl}}:host(:is([state--red],:state(red))){color:${Na};background-color:${Oa}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Hl};background-color:${Ll}}:host(:is([state--peach],:state(peach))){color:${Al};background-color:${Tl}}:host(:is([state--marigold],:state(marigold))){color:${Xa};background-color:${zr}}:host(:is([state--gold],:state(gold))){color:${fl};background-color:${gl}}:host(:is([state--brass],:state(brass))){color:${el};background-color:${tl}}:host(:is([state--brown],:state(brown))){color:${sl};background-color:${ol}}:host(:is([state--forest],:state(forest))){color:${pl};background-color:${ul}}:host(:is([state--seafoam],:state(seafoam))){color:${Gl};background-color:${ql}}:host(:is([state--dark-green],:state(dark-green))){color:${cl};background-color:${ll}}:host(:is([state--light-teal],:state(light-teal))){color:${kl};background-color:${yl}}:host(:is([state--teal],:state(teal))){color:${Kl};background-color:${Ul}}:host(:is([state--steel],:state(steel))){color:${Xl};background-color:${Wl}}:host(:is([state--blue],:state(blue))){color:${Ja};background-color:${Za}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Rl};background-color:${jl}}:host(:is([state--cornflower],:state(cornflower))){color:${rl};background-color:${il}}:host(:is([state--navy],:state(navy))){color:${Bl};background-color:${zl}}:host(:is([state--lavender],:state(lavender))){color:${vl};background-color:${$l}}:host(:is([state--purple],:state(purple))){color:${Vl};background-color:${Dl}}:host(:is([state--grape],:state(grape))){color:${ml};background-color:${bl}}:host(:is([state--lilac],:state(lilac))){color:${wl};background-color:${xl}}:host(:is([state--pink],:state(pink))){color:${_l};background-color:${Fl}}:host(:is([state--magenta],:state(magenta))){color:${Sl};background-color:${Cl}}:host(:is([state--plum],:state(plum))){color:${El};background-color:${Nl}}:host(:is([state--beige],:state(beige))){color:${Qa};background-color:${Ya}}:host(:is([state--mink],:state(mink))){color:${Pl};background-color:${Il}}:host(:is([state--platinum],:state(platinum))){color:${Ml};background-color:${Ol}}:host(:is([state--anchor],:state(anchor))){color:${Ka};background-color:${Ua}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Jo},${ei};transition-delay:${ne.fastEase},${ne.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Jo}),${qr};transition-delay:${ne.fastEase}),${ne.nullEasing})}:host([active])::before{box-shadow:${Jl};border-style:solid;border-color:${pr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${wt});border-width:${wt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ct});border-width:${Ct}}: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 * ${Js});border-width:${Js}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Qo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Vr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${tc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Jo},${ei};transition-delay:${ne.fastOutSlowInMin},${ne.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Jo},${qr};transition-delay:${ne.fastOutSlowInMin},${ne.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}}`,qc=f`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" 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 Gc(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():qc}</slot><slot name="badge"></slot>`}const Wc=Gc(),Xc=Vc.compose({name:`${p.prefix}-avatar`,template:Wc,styles:Rc});Xc.define(p.registry);const Uc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Kc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Yc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,ss=(o,t,e,s)=>{for(var i=s>1?void 0:s?Qc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Yc(t,e,i),i};class _e extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Uc.filled,this.color=Kc.brand}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ss([a],_e.prototype,"appearance",2),ss([a],_e.prototype,"color",2),ss([a],_e.prototype,"shape",2),ss([a],_e.prototype,"size",2),qt(_e,jt);const Yr=l.partial`
44
+ :host{border-color:LinkText;color:LinkText}`));function Tc(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${jt(o)}<span class="content" part="content"><slot></slot></span>${oe(o)}</template>`}const Ac=Tc(),Fc=Ae.compose({name:`${p.prefix}-anchor-button`,template:Ac,styles:Bc});Fc.define(p.registry);const _c=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Oc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Mc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Nc=/\s+/g,Ec=/[\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 Lc(o,t,e){let s="";const i=o.split(" ");return i.length!==0&&(s+=i[0].charAt(0).toUpperCase()),e||(i.length===2?s+=i[1].charAt(0).toUpperCase():i.length===3&&(s+=i[2].charAt(0).toUpperCase())),t&&s.length>1?s.charAt(1)+s.charAt(0):s}function Hc(o){return o=o.replace(_c,""),o=o.replace(Oc,""),o=o.replace(Nc," "),o=o.trim(),o}function Dc(o,t,e){return!o||(o=Hc(o),Ec.test(o)||!e?.allowPhoneInitials&&Mc.test(o))?"":Lc(o,t,e?.firstInitialOnly)}const Yr={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"},Qr={neutral:"neutral",brand:"brand",colorful:"colorful",...Yr};var Vc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,ie=(o,t,e,s)=>{for(var i=s>1?void 0:s?jc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Vc(t,e,i),i};class re extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Qr.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?lo.colors[Rc(this.name??"")%lo.colors.length]:this.color??Qr.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Dc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}}re.colors=Object.values(Yr),ie([a],re.prototype,"name",2),ie([a],re.prototype,"initials",2),ie([a({converter:st})],re.prototype,"size",2),ie([a],re.prototype,"active",2),ie([a],re.prototype,"color",2),ie([a({attribute:"color-id"})],re.prototype,"colorId",2);class lo extends re{}ie([a],lo.prototype,"shape",2),ie([a],lo.prototype,"appearance",2);const Rc=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const s=o.charCodeAt(e),i=e%8;t^=(s<<i)+(s>>8-i)}return t},ne={fastOutSlowInMax:Xr,fastOutSlowInMid:ao,fastOutSlowInMin:uc,slowOutFastInMax:dc,slowOutFastInMid:no,slowOutFastInMin:hc,fastEase:pc,normalEase:es,nullEasing:ri},qc=l`
45
+ ${w("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${N};font-size:${T};border-radius:${ct};color:${rt};background-color:${qo};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ct}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${U}) ${O}}: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 ${wt}) ${O}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${oo};font-weight:${M}}: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:${q}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${dt}}: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:${Te}}: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:${Uo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${B}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Mt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Ar}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Fr}}:host(:is([state--brand],:state(brand))){color:${hr};background-color:${fr}}:host(:is([state--dark-red],:state(dark-red))){color:${pl};background-color:${ul}}:host(:is([state--cranberry],:state(cranberry))){color:${cl};background-color:${ll}}:host(:is([state--red],:state(red))){color:${La};background-color:${Na}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Vl};background-color:${Dl}}:host(:is([state--peach],:state(peach))){color:${_l};background-color:${Fl}}:host(:is([state--marigold],:state(marigold))){color:${Ka};background-color:${Tr}}:host(:is([state--gold],:state(gold))){color:${ml};background-color:${bl}}:host(:is([state--brass],:state(brass))){color:${sl};background-color:${ol}}:host(:is([state--brown],:state(brown))){color:${rl};background-color:${il}}:host(:is([state--forest],:state(forest))){color:${fl};background-color:${gl}}:host(:is([state--seafoam],:state(seafoam))){color:${Xl};background-color:${Wl}}:host(:is([state--dark-green],:state(dark-green))){color:${hl};background-color:${dl}}:host(:is([state--light-teal],:state(light-teal))){color:${wl};background-color:${xl}}:host(:is([state--teal],:state(teal))){color:${Ql};background-color:${Yl}}:host(:is([state--steel],:state(steel))){color:${Kl};background-color:${Ul}}:host(:is([state--blue],:state(blue))){color:${el};background-color:${tl}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Gl};background-color:${ql}}:host(:is([state--cornflower],:state(cornflower))){color:${al};background-color:${nl}}:host(:is([state--navy],:state(navy))){color:${Al};background-color:${Tl}}:host(:is([state--lavender],:state(lavender))){color:${kl};background-color:${yl}}:host(:is([state--purple],:state(purple))){color:${Rl};background-color:${jl}}:host(:is([state--grape],:state(grape))){color:${vl};background-color:${$l}}:host(:is([state--lilac],:state(lilac))){color:${Sl};background-color:${Cl}}:host(:is([state--pink],:state(pink))){color:${Ml};background-color:${Ol}}:host(:is([state--magenta],:state(magenta))){color:${Pl};background-color:${Il}}:host(:is([state--plum],:state(plum))){color:${Hl};background-color:${Ll}}:host(:is([state--beige],:state(beige))){color:${Ja};background-color:${Za}}:host(:is([state--mink],:state(mink))){color:${Bl};background-color:${zl}}:host(:is([state--platinum],:state(platinum))){color:${El};background-color:${Nl}}:host(:is([state--anchor],:state(anchor))){color:${Qa};background-color:${Ya}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${ts},${si};transition-delay:${ne.fastEase},${ne.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${ts}),${Wr};transition-delay:${ne.fastEase}),${ne.nullEasing})}:host([active])::before{box-shadow:${ec};border-style:solid;border-color:${fr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${wt});border-width:${wt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ct});border-width:${Ct}}: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 * ${ei});border-width:${ei}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Zo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Rr}}: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:${oc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${ts},${si};transition-delay:${ne.fastOutSlowInMin},${ne.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${ts},${Wr};transition-delay:${ne.fastOutSlowInMin},${ne.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}}`,Gc=f`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" 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 Wc(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():Gc}</slot><slot name="badge"></slot>`}const Xc=Wc(),Uc=lo.compose({name:`${p.prefix}-avatar`,template:Xc,styles:qc});Uc.define(p.registry);const Kc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Yc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Qc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,is=(o,t,e,s)=>{for(var i=s>1?void 0:s?Zc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Qc(t,e,i),i};class Fe extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Kc.filled,this.color=Yc.brand}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}is([a],Fe.prototype,"appearance",2),is([a],Fe.prototype,"color",2),is([a],Fe.prototype,"shape",2),is([a],Fe.prototype,"size",2),Rt(Fe,Vt);const Zr=l.partial`
46
46
  ${w("inline-flex")} :host {
47
47
  position: relative;
48
48
  box-sizing: border-box;
@@ -54,11 +54,11 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
54
54
  line-height: ${ot};
55
55
  min-width: 20px;
56
56
  height: 20px;
57
- padding-inline: calc(${Qt} + ${ht});
57
+ padding-inline: calc(${Yt} + ${ht});
58
58
  border-radius: ${ct};
59
59
  border-color: ${nt};
60
- background-color: ${Xs};
61
- color: ${Yt};
60
+ background-color: ${Ks};
61
+ color: ${Kt};
62
62
  contain: content;
63
63
  }
64
64
 
@@ -66,7 +66,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
66
66
  font-size: 12px;
67
67
  }
68
68
 
69
- :host(:not(${Gt}))::after {
69
+ :host(:not(${qt}))::after {
70
70
  position: absolute;
71
71
  content: '';
72
72
  top: 0;
@@ -78,7 +78,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
78
78
  border-color: inherit;
79
79
  border-radius: inherit;
80
80
  }
81
- `,Qr=l.partial`
81
+ `,Jr=l.partial`
82
82
  :host(${Xe}) {
83
83
  width: 6px;
84
84
  height: 6px;
@@ -105,7 +105,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
105
105
  min-width: 16px;
106
106
  height: 16px;
107
107
  font-size: ${oo};
108
- line-height: ${Ko};
108
+ line-height: ${Yo};
109
109
  padding-inline: calc(${ht} + ${ht});
110
110
  }
111
111
  :host(${_}) ::slotted(svg) {
@@ -116,188 +116,188 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
116
116
  height: 24px;
117
117
  font-size: ${q};
118
118
  line-height: ${ot};
119
- padding-inline: calc(${Qt} + ${ht});
119
+ padding-inline: calc(${Yt} + ${ht});
120
120
  }
121
121
  :host(${S}) ::slotted(svg) {
122
122
  font-size: 16px;
123
123
  }
124
- :host(${_o}) {
124
+ :host(${Oo}) {
125
125
  min-width: 32px;
126
126
  height: 32px;
127
127
  font-size: ${q};
128
128
  line-height: ${ot};
129
- padding-inline: calc(${Zt} + ${ht});
129
+ padding-inline: calc(${Qt} + ${ht});
130
130
  }
131
- :host(${_o}) ::slotted(svg) {
131
+ :host(${Oo}) ::slotted(svg) {
132
132
  font-size: 20px;
133
133
  }
134
- `,Zr=l.partial`
135
- :host(${Oo}) {
136
- background-color: ${$r};
137
- color: ${Yt};
134
+ `,tn=l.partial`
135
+ :host(${Mo}) {
136
+ background-color: ${yr};
137
+ color: ${Kt};
138
138
  }
139
139
 
140
- :host(${Mo}) {
141
- background-color: ${B};
140
+ :host(${No}) {
141
+ background-color: ${z};
142
142
  color: ${O};
143
143
  }
144
144
 
145
- :host(${No}) {
146
- background-color: ${Ca};
145
+ :host(${Eo}) {
146
+ background-color: ${Ia};
147
147
  color: ${rt};
148
148
  }
149
149
 
150
- :host(${Lo}) {
151
- background-color: ${Sr};
152
- color: ${Yt};
150
+ :host(${Ho}) {
151
+ background-color: ${Pr};
152
+ color: ${Kt};
153
153
  }
154
154
 
155
155
  :host(${C}) {
156
156
  background-color: ${O};
157
- color: ${B};
157
+ color: ${z};
158
158
  }
159
159
 
160
- :host(${ue}) {
161
- background-color: ${wr};
162
- color: ${Yt};
160
+ :host(${he}) {
161
+ background-color: ${Sr};
162
+ color: ${Kt};
163
163
  }
164
164
 
165
- :host(${pe}) {
166
- background-color: ${qa};
167
- color: ${xa};
165
+ :host(${ue}) {
166
+ background-color: ${Wa};
167
+ color: ${Ca};
168
168
  }
169
- `,Jr=l.partial`
170
- :host(${Gt}) {
171
- color: ${Hs};
169
+ `,en=l.partial`
170
+ :host(${qt}) {
171
+ color: ${Vs};
172
172
  background-color: initial;
173
173
  }
174
174
 
175
- :host(${Gt}${Oo}) {
176
- color: ${kr};
175
+ :host(${qt}${Mo}) {
176
+ color: ${wr};
177
177
  }
178
178
 
179
- :host(${Gt}${Mo}) {
180
- color: ${B};
179
+ :host(${qt}${No}) {
180
+ color: ${z};
181
181
  }
182
182
 
183
- :host(${Gt}${No}) {
183
+ :host(${qt}${Eo}) {
184
184
  color: ${rt};
185
185
  }
186
186
 
187
- :host(${Gt}${Lo}) {
188
- color: ${Pr};
187
+ :host(${qt}${Ho}) {
188
+ color: ${Br};
189
189
  }
190
190
 
191
- :host(${Gt}${C}) {
191
+ :host(${qt}${C}) {
192
192
  color: ${Ye};
193
193
  }
194
194
 
195
- :host(${Gt}${ue}) {
196
- color: ${Va};
195
+ :host(${qt}${he}) {
196
+ color: ${Ra};
197
197
  }
198
198
 
199
- :host(${Gt}${pe}) {
200
- color: ${Qs};
199
+ :host(${qt}${ue}) {
200
+ color: ${Js};
201
201
  }
202
- `,Zc=l.partial`
202
+ `,Jc=l.partial`
203
203
  :host(${R}) {
204
204
  border-color: currentColor;
205
- color: ${Hs};
205
+ color: ${Vs};
206
206
  background-color: initial;
207
207
  }
208
208
 
209
- :host(${R}${Oo}) {
210
- color: ${kr};
209
+ :host(${R}${Mo}) {
210
+ color: ${wr};
211
211
  }
212
212
 
213
- :host(${R}${Mo}) {
213
+ :host(${R}${No}) {
214
214
  color: ${rt};
215
- border-color: ${fe};
215
+ border-color: ${ge};
216
216
  }
217
217
 
218
- :host(${R}${No}) {
218
+ :host(${R}${Eo}) {
219
219
  color: ${rt};
220
220
  border-color: ${eo};
221
221
  }
222
222
 
223
- :host(${R}${Lo}) {
224
- color: ${Pr};
223
+ :host(${R}${Ho}) {
224
+ color: ${Br};
225
225
  }
226
226
 
227
227
  :host(${R}${C}) {
228
- color: ${cr};
228
+ color: ${hr};
229
229
  }
230
230
 
231
- :host(${R}${ue}) {
232
- color: ${Da};
231
+ :host(${R}${he}) {
232
+ color: ${ja};
233
233
  }
234
234
 
235
- :host(${R}${pe}) {
236
- color: ${Qs};
235
+ :host(${R}${ue}) {
236
+ color: ${Js};
237
237
  }
238
- `,Jc=l.partial`
239
- :host(${ie}) {
240
- background-color: ${Ta};
241
- color: ${ka};
242
- border-color: ${Ks};
238
+ `,td=l.partial`
239
+ :host(${se}) {
240
+ background-color: ${Fa};
241
+ color: ${wa};
242
+ border-color: ${Qs};
243
243
  }
244
244
 
245
- :host(${ie}${Oo}) {
246
- background-color: ${mr};
247
- color: ${yr};
248
- border-color: ${vr};
245
+ :host(${se}${Mo}) {
246
+ background-color: ${vr};
247
+ color: ${xr};
248
+ border-color: ${kr};
249
249
  }
250
250
 
251
- :host(${ie}${Mo}) {
251
+ :host(${se}${No}) {
252
252
  background-color: ${rt};
253
253
  color: ${O};
254
254
  border-color: ${nt};
255
255
  }
256
256
 
257
- :host(${ie}${No}) {
258
- background-color: ${wa};
257
+ :host(${se}${Eo}) {
258
+ background-color: ${Sa};
259
259
  color: ${rt};
260
260
  border-color: ${eo};
261
261
  }
262
262
 
263
- :host(${ie}${Lo}) {
264
- background-color: ${Cr};
265
- color: ${ja};
266
- border-color: ${Ir};
263
+ :host(${se}${Ho}) {
264
+ background-color: ${Ir};
265
+ color: ${qa};
266
+ border-color: ${zr};
267
267
  }
268
268
 
269
- :host(${ie}${C}) {
269
+ :host(${se}${C}) {
270
270
  background-color: ${O};
271
271
  color: ${rt};
272
272
  border-color: ${eo};
273
273
  }
274
274
 
275
- :host(${ie}${ue}) {
276
- background-color: ${xr};
277
- color: ${Ha};
278
- border-color: ${La};
275
+ :host(${se}${he}) {
276
+ background-color: ${Cr};
277
+ color: ${Va};
278
+ border-color: ${Da};
279
279
  }
280
280
 
281
- :host(${ie}${pe}) {
282
- background-color: ${Ra};
283
- color: ${Qs};
284
- border-color: ${Ga};
281
+ :host(${se}${ue}) {
282
+ background-color: ${Ga};
283
+ color: ${Js};
284
+ border-color: ${Xa};
285
285
  }
286
286
  `;l.partial`
287
287
  font-family: ${$};
288
- font-size: ${A};
288
+ font-size: ${T};
289
289
  line-height: ${D};
290
290
  font-weight: ${M};
291
291
  `,l.partial`
292
292
  font-family: ${$};
293
- font-size: ${A};
293
+ font-size: ${T};
294
294
  line-height: ${D};
295
295
  font-weight: ${N};
296
296
  `,l.partial`
297
297
  font-family: ${$};
298
- font-size: ${A};
298
+ font-size: ${T};
299
299
  line-height: ${D};
300
- font-weight: ${Uo};
300
+ font-weight: ${Ko};
301
301
  `,l.partial`
302
302
  font-family: ${$};
303
303
  font-size: ${dt};
@@ -317,21 +317,21 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
317
317
  font-family: ${$};
318
318
  font-size: ${q};
319
319
  line-height: ${ot};
320
- font-weight: ${Uo};
320
+ font-weight: ${Ko};
321
321
  `,l.partial`
322
322
  font-family: ${$};
323
323
  font-size: ${oo};
324
- line-height: ${Ko};
324
+ line-height: ${Yo};
325
325
  font-weight: ${M};
326
326
  `,l.partial`
327
327
  font-family: ${$};
328
328
  font-size: ${oo};
329
- line-height: ${Ko};
329
+ line-height: ${Yo};
330
330
  font-weight: ${N};
331
- `;const td=l.partial`
331
+ `;const ed=l.partial`
332
332
  font-family: ${$};
333
- font-size: ${Ae};
334
- line-height: ${Yo};
333
+ font-size: ${Te};
334
+ line-height: ${Qo};
335
335
  font-weight: ${N};
336
336
  `;l.partial`
337
337
  font-family: ${$};
@@ -342,45 +342,45 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
342
342
  font-family: ${$};
343
343
  font-size: ${dt};
344
344
  line-height: ${xt};
345
- font-weight: ${Uo};
345
+ font-weight: ${Ko};
346
346
  `,l.partial`
347
347
  font-family: ${$};
348
- font-size: ${Fr};
349
- line-height: ${Er};
348
+ font-size: ${Or};
349
+ line-height: ${Hr};
350
350
  font-weight: ${N};
351
351
  `,l.partial`
352
352
  font-family: ${$};
353
- font-size: ${Ar};
354
- line-height: ${Nr};
353
+ font-size: ${_r};
354
+ line-height: ${Lr};
355
355
  font-weight: ${N};
356
356
  `,l.partial`
357
357
  font-family: ${$};
358
- font-size: ${Xo};
359
- line-height: ${Mr};
358
+ font-size: ${Uo};
359
+ line-height: ${Er};
360
360
  font-weight: ${N};
361
361
  `,l.partial`
362
362
  font-family: ${$};
363
- font-size: ${_r};
364
- line-height: ${Lr};
363
+ font-size: ${Mr};
364
+ line-height: ${Dr};
365
365
  font-weight: ${N};
366
366
  `,l.partial`
367
367
  font-family: ${$};
368
- font-size: ${Or};
369
- line-height: ${Hr};
368
+ font-size: ${Nr};
369
+ line-height: ${Vr};
370
370
  font-weight: ${N};
371
- `;const ed=l`
372
- :host(${We}){border-radius:${Zs}}:host(${Wt}){border-radius:${T}}:host(${Wt}${Xe}),:host(${Wt}${Ue}),:host(${Wt}${_}){border-radius:${Mt}}${Qr}
373
- ${Zr}
374
- ${Jr}
375
- ${Zc}
371
+ `;const od=l`
372
+ :host(${We}){border-radius:${ti}}:host(${Gt}){border-radius:${B}}:host(${Gt}${Xe}),:host(${Gt}${Ue}),:host(${Gt}${_}){border-radius:${Mt}}${Jr}
373
+ ${tn}
374
+ ${en}
376
375
  ${Jc}
377
- ${Yr}
376
+ ${td}
377
+ ${Zr}
378
378
  `.withBehaviors(Z(l`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function tn(o={}){return f` ${Rt(o)}<slot>${ft(o.defaultContent)}</slot>${se(o)} `}const od=tn(),sd=_e.compose({name:`${p.prefix}-badge`,template:od,styles:ed});sd.define(p.registry);var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,G=(o,t,e,s)=>{for(var i=s>1?void 0:s?rd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&id(t,e,i),i};class tt extends x{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==es.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===Bo||t.key===Os){this.click();return}return!0}press(){switch(this.type){case es.reset:{this.resetForm();break}case es.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==es.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!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)}}}}tt.formAssociated=!0,G([a({mode:"boolean"})],tt.prototype,"autofocus",2),G([k],tt.prototype,"defaultSlottedContent",2),G([a({mode:"boolean"})],tt.prototype,"disabled",2),G([a({attribute:"disabled-focusable",mode:"boolean"})],tt.prototype,"disabledFocusable",2),G([a({attribute:"tabindex",mode:"fromView",converter:st})],tt.prototype,"tabIndex",2),G([a({attribute:"formaction"})],tt.prototype,"formAction",2),G([a({attribute:"form"})],tt.prototype,"formAttribute",2),G([a({attribute:"formenctype"})],tt.prototype,"formEnctype",2),G([a({attribute:"formmethod"})],tt.prototype,"formMethod",2),G([a({attribute:"formnovalidate",mode:"boolean"})],tt.prototype,"formNoValidate",2),G([a({attribute:"formtarget"})],tt.prototype,"formTarget",2),G([a],tt.prototype,"name",2),G([a],tt.prototype,"type",2),G([a],tt.prototype,"value",2);class te extends tt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",e)}}G([a],te.prototype,"appearance",2),G([a],te.prototype,"shape",2),G([a],te.prototype,"size",2),G([a({attribute:"icon-only",mode:"boolean"})],te.prototype,"iconOnly",2),qt(te,jt);function ni(o={}){return f`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Rt(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot></span>${se(o)}</template>`}const nd=ni(),ad=te.compose({name:`${p.prefix}-button`,template:nd,styles:os});ad.define(p.registry);var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,St=(o,t,e,s)=>{for(var i=s>1?void 0:s?cd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ld(t,e,i),i};class $t extends x{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),c(this.elementInternals,"checked",t),m.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",c(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!e}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=!!e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(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 t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,s)}}toggleChecked(t=!this.checked){this.checked=t}}$t.formAssociated=!0,St([a({mode:"boolean"})],$t.prototype,"autofocus",2),St([k],$t.prototype,"disabled",2),St([a({attribute:"disabled",mode:"boolean"})],$t.prototype,"disabledAttribute",2),St([a({attribute:"form"})],$t.prototype,"formAttribute",2),St([a({attribute:"checked",mode:"boolean"})],$t.prototype,"initialChecked",2),St([a({attribute:"value",mode:"fromView"})],$t.prototype,"initialValue",2),St([a],$t.prototype,"name",2),St([a({mode:"boolean"})],$t.prototype,"required",2);class is extends $t{indeterminateChanged(t,e){this.setAriaChecked(),c(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}St([k],is.prototype,"indeterminate",2),St([a],is.prototype,"shape",2),St([a],is.prototype,"size",2);const me=l.partial`:is([state--indeterminate], :state(indeterminate))`,dd=l`
379
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function on(o={}){return f` ${jt(o)}<slot>${ft(o.defaultContent)}</slot>${oe(o)} `}const sd=on(),id=Fe.compose({name:`${p.prefix}-badge`,template:sd,styles:od});id.define(p.registry);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,G=(o,t,e,s)=>{for(var i=s>1?void 0:s?nd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&rd(t,e,i),i};class tt extends x{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==os.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===To||t.key===Ns){this.click();return}return!0}press(){switch(this.type){case os.reset:{this.resetForm();break}case os.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==os.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!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)}}}}tt.formAssociated=!0,G([a({mode:"boolean"})],tt.prototype,"autofocus",2),G([k],tt.prototype,"defaultSlottedContent",2),G([a({mode:"boolean"})],tt.prototype,"disabled",2),G([a({attribute:"disabled-focusable",mode:"boolean"})],tt.prototype,"disabledFocusable",2),G([a({attribute:"tabindex",mode:"fromView",converter:st})],tt.prototype,"tabIndex",2),G([a({attribute:"formaction"})],tt.prototype,"formAction",2),G([a({attribute:"form"})],tt.prototype,"formAttribute",2),G([a({attribute:"formenctype"})],tt.prototype,"formEnctype",2),G([a({attribute:"formmethod"})],tt.prototype,"formMethod",2),G([a({attribute:"formnovalidate",mode:"boolean"})],tt.prototype,"formNoValidate",2),G([a({attribute:"formtarget"})],tt.prototype,"formTarget",2),G([a],tt.prototype,"name",2),G([a],tt.prototype,"type",2),G([a],tt.prototype,"value",2);class Jt extends tt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",e)}}G([a],Jt.prototype,"appearance",2),G([a],Jt.prototype,"shape",2),G([a],Jt.prototype,"size",2),G([a({attribute:"icon-only",mode:"boolean"})],Jt.prototype,"iconOnly",2),Rt(Jt,Vt);function li(o={}){return f`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${jt(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot></span>${oe(o)}</template>`}const ad=li(),ld=Jt.compose({name:`${p.prefix}-button`,template:ad,styles:ss});ld.define(p.registry);var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,St=(o,t,e,s)=>{for(var i=s>1?void 0:s?dd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&cd(t,e,i),i};class $t extends x{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),c(this.elementInternals,"checked",t),m.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",c(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!e}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=!!e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(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 t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,s)}}toggleChecked(t=!this.checked){this.checked=t}}$t.formAssociated=!0,St([a({mode:"boolean"})],$t.prototype,"autofocus",2),St([k],$t.prototype,"disabled",2),St([a({attribute:"disabled",mode:"boolean"})],$t.prototype,"disabledAttribute",2),St([a({attribute:"form"})],$t.prototype,"formAttribute",2),St([a({attribute:"checked",mode:"boolean"})],$t.prototype,"initialChecked",2),St([a({attribute:"value",mode:"fromView"})],$t.prototype,"initialValue",2),St([a],$t.prototype,"name",2),St([a({mode:"boolean"})],$t.prototype,"required",2);class rs extends $t{indeterminateChanged(t,e){this.setAriaChecked(),c(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}St([k],rs.prototype,"indeterminate",2),St([a],rs.prototype,"shape",2),St([a],rs.prototype,"size",2);const be=l.partial`:is([state--indeterminate], :state(indeterminate))`,hd=l`
380
380
  ${w("inline-flex")}
381
381
 
382
- :host{--size:16px;background-color:${O};border-radius:${Mt};border:${U} solid ${fe};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Je}}:host(:active){border-color:${to}}:host(${v}:hover){background-color:${Qe};border-color:${_a}}:host(${v}:active){background-color:${Ze};border-color:${fr}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${wt} solid ${nt};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ot}}.indeterminate-indicator,.checked-indicator{color:${Ye};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(${v})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${v}),:host(${me}){border-color:${Wo}}:host(${v}),:host(${me}) .indeterminate-indicator{background-color:${Te}}:host(${me}) .indeterminate-indicator{border-radius:${Mt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${S}){--size:20px}:host(${S}) ::slotted([slot='checked-indicator']),:host(${S}) .checked-indicator{width:16px}:host(${Ge}),:host(${Ge}) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${v}){background-color:${Be};border-color:${_t}}:host([disabled]){cursor:unset}:host([disabled]${me}) .indeterminate-indicator{background-color:${_t}}:host([disabled]${v}) .checked-indicator{color:${_t}}`.withBehaviors(Z(l`
383
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${v}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${v}),:host(${me}) .indeterminate-indicator{background-color:FieldText}:host(${v}:not([disabled]):hover),:host(${me}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${me}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${v}) .checked-indicator{color:GrayText}`)),hd=f.partial(`
382
+ :host{--size:16px;background-color:${O};border-radius:${Mt};border:${U} solid ${ge};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Je}}:host(:active){border-color:${to}}:host(${v}:hover){background-color:${Qe};border-color:${Ma}}:host(${v}:active){background-color:${Ze};border-color:${mr}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${wt} solid ${nt};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ot}}.indeterminate-indicator,.checked-indicator{color:${Ye};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(${v})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${v}),:host(${be}){border-color:${Xo}}:host(${v}),:host(${be}) .indeterminate-indicator{background-color:${Be}}:host(${be}) .indeterminate-indicator{border-radius:${Mt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${S}){--size:20px}:host(${S}) ::slotted([slot='checked-indicator']),:host(${S}) .checked-indicator{width:16px}:host(${Ge}),:host(${Ge}) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${v}){background-color:${ze};border-color:${_t}}:host([disabled]){cursor:unset}:host([disabled]${be}) .indeterminate-indicator{background-color:${_t}}:host([disabled]${v}) .checked-indicator{color:${_t}}`.withBehaviors(Z(l`
383
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${v}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${v}),:host(${be}) .indeterminate-indicator{background-color:FieldText}:host(${v}:not([disabled]):hover),:host(${be}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${be}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${v}) .checked-indicator{color:GrayText}`)),ud=f.partial(`
384
384
  <svg
385
385
  fill="currentColor"
386
386
  aria-hidden="true"
@@ -391,21 +391,21 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
391
391
  xmlns="http://www.w3.org/2000/svg">
392
392
  <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>
393
393
  </svg>
394
- `),ud=f.partial(`
394
+ `),pd=f.partial(`
395
395
  <span class="indeterminate-indicator"></span>
396
- `);function pd(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ft(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ft(o.indeterminateIndicator)}</slot></template>`}const gd=pd({checkedIndicator:hd,indeterminateIndicator:ud}),fd=is.compose({name:`${p.prefix}-checkbox`,template:gd,styles:dd});fd.define(p.registry);class bd extends te{}const md=l`
397
- ${os}
398
-
399
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Kt};line-height:100%;font-size:${q};font-weight:${M}}::slotted(svg),:host(${S}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Ho}}:host(:active) ::slotted([slot='description']){color:${Do}}:host(:is(${it},${it}:hover,${it}:active)) ::slotted([slot='description']){color:${Yt}}:host(:is(${C},${C}:hover,${C}:active)) ::slotted([slot='description']),:host(${X}) ::slotted([slot='description']){color:${Kt}}:host(${X}:hover) ::slotted([slot='description']){color:${Vo}}:host(${X}:active) ::slotted([slot='description']){color:${jo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
400
- ::slotted([slot='description']){color:${H}}:host(${_}){padding:8px;padding-bottom:10px}:host(${ze}){min-width:52px;max-width:52px;padding:${Zt}}:host(${ze}${_}){min-width:48px;max-width:48px;padding:${Qt}}:host(${ze}${S}){min-width:56px;max-width:56px;padding:${Jt}}:host(${S}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${xt}}:host(${S}) ::slotted([slot='description']){font-size:${A}}`;function $d(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Rt(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${se(o)}</template>`}const vd=$d(),yd=bd.compose({name:`${p.prefix}-compound-button`,template:vd,styles:md});yd.define(p.registry);var kd=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,ae=(o,t,e,s)=>{for(var i=s>1?void 0:s?xd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&kd(t,e,i),i};class Ht extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){c(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}ae([a],Ht.prototype,"appearance",2),ae([a],Ht.prototype,"color",2),ae([a],Ht.prototype,"shape",2),ae([a],Ht.prototype,"size",2),ae([a({converter:st})],Ht.prototype,"count",2),ae([a({attribute:"overflow-count",converter:st})],Ht.prototype,"overflowCount",2),ae([a({attribute:"show-zero",mode:"boolean"})],Ht.prototype,"showZero",2),ae([a({mode:"boolean"})],Ht.prototype,"dot",2),qt(Ht,jt);const en=l.partial`:is([state--dot], :state(dot))`,wd=l`
401
- :host(${Wt}){border-radius:${T}}:host(${Wt}${Xe}),:host(${Wt}${Ue}),:host(${Wt}${_}){border-radius:${Mt}}${Qr}
396
+ `);function gd(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ft(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ft(o.indeterminateIndicator)}</slot></template>`}const fd=gd({checkedIndicator:ud,indeterminateIndicator:pd}),bd=rs.compose({name:`${p.prefix}-checkbox`,template:fd,styles:hd});bd.define(p.registry);class md extends Jt{}const $d=l`
397
+ ${ss}
398
+
399
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${T};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ut};line-height:100%;font-size:${q};font-weight:${M}}::slotted(svg),:host(${S}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Do}}:host(:active) ::slotted([slot='description']){color:${Vo}}:host(:is(${it},${it}:hover,${it}:active)) ::slotted([slot='description']){color:${Kt}}:host(:is(${C},${C}:hover,${C}:active)) ::slotted([slot='description']),:host(${X}) ::slotted([slot='description']){color:${Ut}}:host(${X}:hover) ::slotted([slot='description']){color:${jo}}:host(${X}:active) ::slotted([slot='description']){color:${Ro}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
400
+ ::slotted([slot='description']){color:${H}}:host(${_}){padding:8px;padding-bottom:10px}:host(${Pe}){min-width:52px;max-width:52px;padding:${Qt}}:host(${Pe}${_}){min-width:48px;max-width:48px;padding:${Yt}}:host(${Pe}${S}){min-width:56px;max-width:56px;padding:${Zt}}:host(${S}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${xt}}:host(${S}) ::slotted([slot='description']){font-size:${T}}`;function vd(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${jt(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${oe(o)}</template>`}const yd=vd(),kd=md.compose({name:`${p.prefix}-compound-button`,template:yd,styles:$d});kd.define(p.registry);var xd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,ae=(o,t,e,s)=>{for(var i=s>1?void 0:s?wd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&xd(t,e,i),i};class Lt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){c(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}ae([a],Lt.prototype,"appearance",2),ae([a],Lt.prototype,"color",2),ae([a],Lt.prototype,"shape",2),ae([a],Lt.prototype,"size",2),ae([a({converter:st})],Lt.prototype,"count",2),ae([a({attribute:"overflow-count",converter:st})],Lt.prototype,"overflowCount",2),ae([a({attribute:"show-zero",mode:"boolean"})],Lt.prototype,"showZero",2),ae([a({mode:"boolean"})],Lt.prototype,"dot",2),Rt(Lt,Vt);const sn=l.partial`:is([state--dot], :state(dot))`,Cd=l`
401
+ :host(${Gt}){border-radius:${B}}:host(${Gt}${Xe}),:host(${Gt}${Ue}),:host(${Gt}${_}){border-radius:${Mt}}${Jr}
402
+ ${tn}
403
+ ${en}
402
404
  ${Zr}
403
- ${Jr}
404
- ${Yr}
405
405
 
406
- :host(${en}),:host(${en}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Cd(o={}){return tn({defaultContent:f`${t=>t.setCount()}`})}const Sd=Cd(),Id=Ht.compose({name:`${p.prefix}-counter-badge`,template:Sd,styles:wd});Id.define(p.registry);const Dt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Pd=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,rs=(o,t,e,s)=>{for(var i=s>1?void 0:s?zd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Pd(t,e,i),i};class lo extends x{constructor(){super(...arguments),this.type=Dt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Tt.enqueue(()=>{this.emitBeforeToggle(),this.type===Dt.alert||this.type===Dt.modal?this.dialog.showModal():this.type===Dt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Dt.alert&&t.target===this.dialog&&this.hide(),!0}}rs([k],lo.prototype,"dialog",2),rs([a({attribute:"aria-describedby"})],lo.prototype,"ariaDescribedby",2),rs([a({attribute:"aria-labelledby"})],lo.prototype,"ariaLabelledby",2),rs([a],lo.prototype,"type",2);const Bd=f`<dialog role="${o=>o.type===Dt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Dt.modal||o.type===Dt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Dt.alert?t.event.preventDefault():o.hide()}" ${Ft("dialog")}><slot></slot></dialog>`,Td=l`
407
- @layer base{:host{--dialog-backdrop:${Ws};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${O};border-radius:${Tr};border:none;box-shadow:${jr};color:${B};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${oi};transition-timing-function:${ao};opacity:0}::backdrop{transition-timing-function:${si}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${no}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Z(l`
408
- @layer base{dialog{border:${U} solid ${nt}}}`)),Ad=lo.compose({name:`${p.prefix}-dialog`,template:Bd,styles:Td});Ad.define(p.registry);var Fd=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,Od=(o,t,e,s)=>{for(var i=s>1?void 0:s?_d(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Fd(t,e,i),i};class on extends x{constructor(){super(...arguments),this.noTitleAction=!1}}Od([a({mode:"boolean",attribute:"no-title-action"})],on.prototype,"noTitleAction",2);const Md=f.partial(`
406
+ :host(${sn}),:host(${sn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Sd(o={}){return on({defaultContent:f`${t=>t.setCount()}`})}const Id=Sd(),Pd=Lt.compose({name:`${p.prefix}-counter-badge`,template:Id,styles:Cd});Pd.define(p.registry);const Ht={modal:"modal",nonModal:"non-modal",alert:"alert"};var zd=Object.defineProperty,Bd=Object.getOwnPropertyDescriptor,ns=(o,t,e,s)=>{for(var i=s>1?void 0:s?Bd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&zd(t,e,i),i};class co extends x{constructor(){super(...arguments),this.type=Ht.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Tt.enqueue(()=>{this.emitBeforeToggle(),this.type===Ht.alert||this.type===Ht.modal?this.dialog.showModal():this.type===Ht.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Ht.alert&&t.target===this.dialog&&this.hide(),!0}}ns([k],co.prototype,"dialog",2),ns([a({attribute:"aria-describedby"})],co.prototype,"ariaDescribedby",2),ns([a({attribute:"aria-labelledby"})],co.prototype,"ariaLabelledby",2),ns([a],co.prototype,"type",2);const Td=f`<dialog role="${o=>o.type===Ht.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Ht.modal||o.type===Ht.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Ht.alert?t.event.preventDefault():o.hide()}" ${Ft("dialog")}><slot></slot></dialog>`,Ad=l`
407
+ @layer base{:host{--dialog-backdrop:${Us};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${O};border-radius:${Fr};border:none;box-shadow:${qr};color:${z};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${ii};transition-timing-function:${ao};opacity:0}::backdrop{transition-timing-function:${ri}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${no}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Z(l`
408
+ @layer base{dialog{border:${U} solid ${nt}}}`)),Fd=co.compose({name:`${p.prefix}-dialog`,template:Td,styles:Ad});Fd.define(p.registry);var _d=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,Md=(o,t,e,s)=>{for(var i=s>1?void 0:s?Od(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&_d(t,e,i),i};class rn extends x{constructor(){super(...arguments),this.noTitleAction=!1}}Md([a({mode:"boolean",attribute:"no-title-action"})],rn.prototype,"noTitleAction",2);const Nd=f.partial(`
409
409
  <svg
410
410
  fill="currentColor"
411
411
  aria-hidden="true"
@@ -418,100 +418,100 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
418
418
  d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
419
419
  fill="currentColor"
420
420
  ></path>
421
- </svg>`),Nd=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Dt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${Ft("defaultTitleAction")}>${Md}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Ed=l`
421
+ </svg>`),Ed=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Ht.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${Ft("defaultTitleAction")}>${Nd}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Ld=l`
422
422
  ${w("grid")}
423
423
 
424
- :host{background:${O};box-sizing:border-box;gap:${bt};padding:${ro} ${sc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${O};color:${B};column-gap:8px;display:flex;font-family:${$};font-size:${Ae};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Yo};margin-block-end:calc(${bt} * -1);margin-block-start:calc(${ro} * -1);padding-block-end:${bt};padding-block-start:${ro};position:sticky;z-index:1}.content{box-sizing:border-box;color:${B};font-family:${$};font-size:${A};font-weight:${M};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${O};display:flex;flex-direction:column;gap:${bt};inset-block-end:0;margin-block-end:calc(${ro} * -1);padding-block-end:${ro};padding-block-start:${ti};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${bt} * -1);padding-block-start:${bt}}}`,Ld=on.compose({name:`${p.prefix}-dialog-body`,template:Nd,styles:Ed});Ld.define(p.registry);const co={separator:"separator",presentation:"presentation"},Hd=gt;var Dd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,ho=(o,t,e,s)=>{for(var i=s>1?void 0:s?Vd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Dd(t,e,i),i};class ai extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??co.separator,this.role!==co.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Hd.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??co.separator}`),e===co.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==co.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ho([a],ai.prototype,"role",2),ho([a],ai.prototype,"orientation",2);class ns extends ai{constructor(){super(...arguments),this.inset=!1}alignContentChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}insetChanged(t,e){c(this.elementInternals,"inset",e)}}ho([a({attribute:"align-content"})],ns.prototype,"alignContent",2),ho([a],ns.prototype,"appearance",2),ho([a({mode:"boolean"})],ns.prototype,"inset",2);function jd(){return f`<slot></slot>`}const Rd=jd(),qd=l`
424
+ :host{background:${O};box-sizing:border-box;gap:${bt};padding:${ro} ${rc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${O};color:${z};column-gap:8px;display:flex;font-family:${$};font-size:${Te};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Qo};margin-block-end:calc(${bt} * -1);margin-block-start:calc(${ro} * -1);padding-block-end:${bt};padding-block-start:${ro};position:sticky;z-index:1}.content{box-sizing:border-box;color:${z};font-family:${$};font-size:${T};font-weight:${M};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${O};display:flex;flex-direction:column;gap:${bt};inset-block-end:0;margin-block-end:calc(${ro} * -1);padding-block-end:${ro};padding-block-start:${oi};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${bt} * -1);padding-block-start:${bt}}}`,Hd=rn.compose({name:`${p.prefix}-dialog-body`,template:Ed,styles:Ld});Hd.define(p.registry);const ho={separator:"separator",presentation:"presentation"},Dd=gt;var Vd=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,uo=(o,t,e,s)=>{for(var i=s>1?void 0:s?jd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Vd(t,e,i),i};class ci extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ho.separator,this.role!==ho.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Dd.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??ho.separator}`),e===ho.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==ho.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}uo([a],ci.prototype,"role",2),uo([a],ci.prototype,"orientation",2);class as extends ci{constructor(){super(...arguments),this.inset=!1}alignContentChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}insetChanged(t,e){c(this.elementInternals,"inset",e)}}uo([a({attribute:"align-content"})],as.prototype,"alignContent",2),uo([a],as.prototype,"appearance",2),uo([a({mode:"boolean"})],as.prototype,"inset",2);function Rd(){return f`<slot></slot>`}const qd=Rd(),Gd=l`
425
425
  ${w("flex")}
426
426
 
427
- :host{contain:content}:host::after,:host::before{align-self:center;background:${eo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${U}}:host(${Es}){padding:0 12px}:host ::slotted(*){color:${Kt};font-family:${$};font-size:${q};font-weight:${M};margin:0;padding:0 12px}:host(${ar})::before,:host(${Xt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${J}){height:100%;min-height:84px}:host(${J}):empty{min-height:20px}:host(${J}){flex-direction:column;align-items:center}:host(${J}${Es})::before{margin-top:12px}:host(${J}${Es})::after{margin-bottom:12px}:host(${J}):empty::before,:host(${J}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${J})::before,:host(${J})::after{width:${U};min-height:20px;height:100%}:host(${J}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${J}${ar})::before{min-height:8px}:host(${J}${Xt})::after{min-height:8px}:host(${Re})::before,:host(${Re})::after{background:${be}}:host(${Re}) ::slotted(*){color:${B}}:host(${Ut})::before,:host(${Ut})::after{background:${gr}}:host(${Ut}) ::slotted(*){color:${Hs}}:host(${C})::before,:host(${C})::after{background:${Aa}}:host(${C}) ::slotted(*){color:${rt}}`.withBehaviors(Z(l`
428
- :host(${Re})::before,:host(${Re})::after,:host(${Ut})::before,:host(${Ut})::after,:host(${C})::before,:host(${C})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Gd=ns.compose({name:`${p.prefix}-divider`,template:Rd,styles:qd});Gd.define(p.registry);const Wd={start:"start",end:"end"},Xd={small:"small",medium:"medium",large:"large",full:"full"},li={nonModal:"non-modal",modal:"modal",inline:"inline"};var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,Oe=(o,t,e,s)=>{for(var i=s>1?void 0:s?Kd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ud(t,e,i),i};class $e extends x{constructor(){super(...arguments),this.type=li.modal,this.position=Wd.start,this.size=Xd.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"})}}show(){Tt.enqueue(()=>{this.emitBeforeToggle(),this.type===li.inline||this.type===li.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}Oe([a],$e.prototype,"type",2),Oe([a({attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledby",2),Oe([a({attribute:"aria-describedby"})],$e.prototype,"ariaDescribedby",2),Oe([a],$e.prototype,"position",2),Oe([a({attribute:"size"})],$e.prototype,"size",2),Oe([k],$e.prototype,"dialog",2);const Yd=l`
427
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${eo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${U}}:host(${Hs}){padding:0 12px}:host ::slotted(*){color:${Ut};font-family:${$};font-size:${q};font-weight:${M};margin:0;padding:0 12px}:host(${cr})::before,:host(${Wt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${J}){height:100%;min-height:84px}:host(${J}):empty{min-height:20px}:host(${J}){flex-direction:column;align-items:center}:host(${J}${Hs})::before{margin-top:12px}:host(${J}${Hs})::after{margin-bottom:12px}:host(${J}):empty::before,:host(${J}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${J})::before,:host(${J})::after{width:${U};min-height:20px;height:100%}:host(${J}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${J}${cr})::before{min-height:8px}:host(${J}${Wt})::after{min-height:8px}:host(${Re})::before,:host(${Re})::after{background:${fe}}:host(${Re}) ::slotted(*){color:${z}}:host(${Xt})::before,:host(${Xt})::after{background:${br}}:host(${Xt}) ::slotted(*){color:${Vs}}:host(${C})::before,:host(${C})::after{background:${_a}}:host(${C}) ::slotted(*){color:${rt}}`.withBehaviors(Z(l`
428
+ :host(${Re})::before,:host(${Re})::after,:host(${Xt})::before,:host(${Xt})::after,:host(${C})::before,:host(${C})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Wd=as.compose({name:`${p.prefix}-divider`,template:qd,styles:Gd});Wd.define(p.registry);const Xd={start:"start",end:"end"},Ud={small:"small",medium:"medium",large:"large",full:"full"},di={nonModal:"non-modal",modal:"modal",inline:"inline"};var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,_e=(o,t,e,s)=>{for(var i=s>1?void 0:s?Yd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Kd(t,e,i),i};class me extends x{constructor(){super(...arguments),this.type=di.modal,this.position=Xd.start,this.size=Ud.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"})}}show(){Tt.enqueue(()=>{this.emitBeforeToggle(),this.type===di.inline||this.type===di.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}_e([a],me.prototype,"type",2),_e([a({attribute:"aria-labelledby"})],me.prototype,"ariaLabelledby",2),_e([a({attribute:"aria-describedby"})],me.prototype,"ariaDescribedby",2),_e([a],me.prototype,"position",2),_e([a({attribute:"size"})],me.prototype,"size",2),_e([k],me.prototype,"dialog",2);const Qd=l`
429
429
  ${w("block")}
430
430
 
431
- :host{--dialog-backdrop:${Ws}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${A};line-height:${D};font-family:${$};font-weight:${M};color:${B};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${nt};border-inline-start-color:var(--drawer-separator,${nt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${jr};border:${U} solid ${nt};background:${O}}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:${oi};transition-timing-function:${ao}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${no}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${no}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${oi};transition-timing-function:${ao};background:var(--dialog-backdrop,${Ws});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${si}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Qd(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${Ft("dialog")}><slot></slot></dialog>`}const Zd=Qd(),Jd=$e.compose({name:`${p.prefix}-drawer`,template:Zd,styles:Yd});Jd.define(p.registry);class th extends x{}const eh=l`
431
+ :host{--dialog-backdrop:${Us}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${T};line-height:${D};font-family:${$};font-weight:${M};color:${z};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${nt};border-inline-start-color:var(--drawer-separator,${nt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${qr};border:${U} solid ${nt};background:${O}}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:${ii};transition-timing-function:${ao}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${no}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${no}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${ii};transition-timing-function:${ao};background:var(--dialog-backdrop,${Us});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${ri}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Zd(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${Ft("dialog")}><slot></slot></dialog>`}const Jd=Zd(),th=me.compose({name:`${p.prefix}-drawer`,template:Jd,styles:Qd});th.define(p.registry);class eh extends x{}const oh=l`
432
432
  ${w("grid")}
433
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${oc};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${td}}.footer{display:flex;justify-content:flex-start;gap:${ut}}`;function oh(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const sh=oh(),ih=th.compose({name:`${p.prefix}-drawer-body`,template:sh,styles:eh});ih.define(p.registry);const rh={above:"above",after:"after",before:"before"},y={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"};var nh=Object.defineProperty,ah=Object.getOwnPropertyDescriptor,uo=(o,t,e,s)=>{for(var i=s>1?void 0:s?ah(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&nh(t,e,i),i};class Me extends x{constructor(){super(),this.labelPosition=rh.above,this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||To("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(y))c(this.elementInternals,e,this.input.validity[t])}}uo([a({attribute:"label-position"})],Me.prototype,"labelPosition",2),uo([k],Me.prototype,"labelSlot",2),uo([k],Me.prototype,"messageSlot",2),uo([k],Me.prototype,"slottedInputs",2),uo([k],Me.prototype,"input",2);const lh=l.partial`:is([state--focus-visible], :state(focus-visible))`,ch=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,dh=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,hh=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,uh=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,ph=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,gh=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,fh=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,bh=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,mh=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,$h=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,vh=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,yh=l.partial`:is([state--has-message], :state(has-message))`,kh=l`
433
+ :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ic};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${ed}}.footer{display:flex;justify-content:flex-start;gap:${ut}}`;function sh(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const ih=sh(),rh=eh.compose({name:`${p.prefix}-drawer-body`,template:ih,styles:oh});rh.define(p.registry);const nh={above:"above",after:"after",before:"before"},y={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"};var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,po=(o,t,e,s)=>{for(var i=s>1?void 0:s?lh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ah(t,e,i),i};class Oe extends x{constructor(){super(),this.labelPosition=nh.above,this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ao("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(y))c(this.elementInternals,e,this.input.validity[t])}}po([a({attribute:"label-position"})],Oe.prototype,"labelPosition",2),po([k],Oe.prototype,"labelSlot",2),po([k],Oe.prototype,"messageSlot",2),po([k],Oe.prototype,"slottedInputs",2),po([k],Oe.prototype,"input",2);const ch=l.partial`:is([state--focus-visible], :state(focus-visible))`,dh=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,hh=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,uh=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,ph=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,gh=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,fh=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,bh=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,mh=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,$h=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,vh=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,yh=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,kh=l.partial`:is([state--has-message], :state(has-message))`,xh=l`
434
434
  ${w("inline-grid")}
435
435
 
436
- :host{color:${B};align-items:center;gap:0 ${ut};justify-items:start;position:relative}:has([slot='message']){color:${B};row-gap:${bt}}: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:${ut}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Zo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${rc}}:host([label-position='below']:not(${yh})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${Zo};grid-area:message}:host(${lh}:focus-within){border-radius:${T};outline:${wt} solid ${Ot}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${A};font-weight:${M};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${q};line-height:${ot}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${xt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${W}){cursor:default}::slotted([flag]){display:none}:host(${ch}) ::slotted([flag='${y.badInput}']),:host(${dh}) ::slotted([flag='${y.customError}']),:host(${hh}) ::slotted([flag='${y.patternMismatch}']),:host(${uh}) ::slotted([flag='${y.rangeOverflow}']),:host(${ph}) ::slotted([flag='${y.rangeUnderflow}']),:host(${gh}) ::slotted([flag='${y.stepMismatch}']),:host(${fh}) ::slotted([flag='${y.tooLong}']),:host(${bh}) ::slotted([flag='${y.tooShort}']),:host(${mh}) ::slotted([flag='${y.typeMismatch}']),:host(${vh}) ::slotted([flag='${y.valueMissing}']),:host(${$h}) ::slotted([flag='${y.valid}']){display:block}`,xh=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${Nn({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:je()})}><slot name="label" part="label" ${pt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${pt({property:"messageSlot",filter:je("[flag]")})}></slot></template>`,wh=Me.compose({name:`${p.prefix}-field`,template:xh,styles:kh,shadowOptions:{delegatesFocus:!0}});wh.define(p.registry);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,po=(o,t,e,s)=>{for(var i=s>1?void 0:s?Sh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ch(t,e,i),i};class Ne extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){c(this.elementInternals,"block",e)}borderedChanged(t,e){c(this.elementInternals,"bordered",e)}shadowChanged(t,e){c(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&c(this.elementInternals,`fit-${t}`,!1),e&&c(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}po([a({mode:"boolean"})],Ne.prototype,"block",2),po([a({mode:"boolean"})],Ne.prototype,"bordered",2),po([a({mode:"boolean"})],Ne.prototype,"shadow",2),po([a],Ne.prototype,"fit",2),po([a],Ne.prototype,"shape",2);const Ih=f`<slot></slot>`,Ph=l`
437
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${U} solid ${eo}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${Qo}}:host(${Ge}) ::slotted(img){border-radius:${ct}}:host(${Wt}) ::slotted(img){border-radius:${T}}`,zh=Ne.compose({name:`${p.prefix}-image`,template:Ih,styles:Ph});zh.define(p.registry);var Bh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,as=(o,t,e,s)=>{for(var i=s>1?void 0:s?Th(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Bh(t,e,i),i};class go extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}as([a],go.prototype,"size",2),as([a],go.prototype,"weight",2),as([a({mode:"boolean"})],go.prototype,"disabled",2),as([a({mode:"boolean"})],go.prototype,"required",2);const Ah=l`
436
+ :host{color:${z};align-items:center;gap:0 ${ut};justify-items:start;position:relative}:has([slot='message']){color:${z};row-gap:${bt}}: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:${ut}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Jo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${ac}}:host([label-position='below']:not(${kh})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${Jo};grid-area:message}:host(${ch}:focus-within){border-radius:${B};outline:${wt} solid ${Ot}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${T};font-weight:${M};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${q};line-height:${ot}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${xt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${W}){cursor:default}::slotted([flag]){display:none}:host(${dh}) ::slotted([flag='${y.badInput}']),:host(${hh}) ::slotted([flag='${y.customError}']),:host(${uh}) ::slotted([flag='${y.patternMismatch}']),:host(${ph}) ::slotted([flag='${y.rangeOverflow}']),:host(${gh}) ::slotted([flag='${y.rangeUnderflow}']),:host(${fh}) ::slotted([flag='${y.stepMismatch}']),:host(${bh}) ::slotted([flag='${y.tooLong}']),:host(${mh}) ::slotted([flag='${y.tooShort}']),:host(${$h}) ::slotted([flag='${y.typeMismatch}']),:host(${yh}) ::slotted([flag='${y.valueMissing}']),:host(${vh}) ::slotted([flag='${y.valid}']){display:block}`,wh=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${Ln({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:je()})}><slot name="label" part="label" ${pt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${pt({property:"messageSlot",filter:je("[flag]")})}></slot></template>`,Ch=Oe.compose({name:`${p.prefix}-field`,template:wh,styles:xh,shadowOptions:{delegatesFocus:!0}});Ch.define(p.registry);var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,go=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ih(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Sh(t,e,i),i};class Me extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){c(this.elementInternals,"block",e)}borderedChanged(t,e){c(this.elementInternals,"bordered",e)}shadowChanged(t,e){c(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&c(this.elementInternals,`fit-${t}`,!1),e&&c(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}go([a({mode:"boolean"})],Me.prototype,"block",2),go([a({mode:"boolean"})],Me.prototype,"bordered",2),go([a({mode:"boolean"})],Me.prototype,"shadow",2),go([a],Me.prototype,"fit",2),go([a],Me.prototype,"shape",2);const Ph=f`<slot></slot>`,zh=l`
437
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${U} solid ${eo}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${Zo}}:host(${Ge}) ::slotted(img){border-radius:${ct}}:host(${Gt}) ::slotted(img){border-radius:${B}}`,Bh=Me.compose({name:`${p.prefix}-image`,template:Ph,styles:zh});Bh.define(p.registry);var Th=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,ls=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ah(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Th(t,e,i),i};class fo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}ls([a],fo.prototype,"size",2),ls([a],fo.prototype,"weight",2),ls([a({mode:"boolean"})],fo.prototype,"disabled",2),ls([a({mode:"boolean"})],fo.prototype,"required",2);const Fh=l`
438
438
  ${w("inline-flex")}
439
439
 
440
- :host{color:${B};cursor:pointer;font-family:${$};font-size:${A};font-weight:${M};line-height:${D};user-select:none}.asterisk{color:${yr};margin-inline-start:${Qt}}:host(${_}){font-size:${q};line-height:${ot}}:host(${S}){font-size:${dt};line-height:${xt}}:host(${S}),:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${H}}`;function Fh(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const _h=Fh(),Oh=go.compose({name:`${p.prefix}-label`,template:_h,styles:Ah});Oh.define(p.registry);var Mh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,sn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Nh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Mh(t,e,i),i};class ci extends Et{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){c(this.elementInternals,"inline",e)}}sn([a],ci.prototype,"appearance",2),sn([a({mode:"boolean"})],ci.prototype,"inline",2);const Eh=l`
440
+ :host{color:${z};cursor:pointer;font-family:${$};font-size:${T};font-weight:${M};line-height:${D};user-select:none}.asterisk{color:${xr};margin-inline-start:${Yt}}:host(${_}){font-size:${q};line-height:${ot}}:host(${S}){font-size:${dt};line-height:${xt}}:host(${S}),:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${H}}`;function _h(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Oh=_h(),Mh=fo.compose({name:`${p.prefix}-label`,template:Oh,styles:Fh});Mh.define(p.registry);var Nh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,nn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Eh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Nh(t,e,i),i};class hi extends Et{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){c(this.elementInternals,"inline",e)}}nn([a],hi.prototype,"appearance",2),nn([a({mode:"boolean"})],hi.prototype,"inline",2);const Lh=l`
441
441
  ${w("inline")}
442
442
 
443
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${ha};cursor:pointer;font-family:${$};font-size:${A};font-weight:${M};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${U};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${ua}}:host(:active){color:${pa}}:host(${C}:hover){color:${fa}}:host(${C}:active){color:${ba}}}:host(${C}){color:${ga}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
444
- :host{color:LinkText}`));function Lh(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Hh=Lh(),Dh=ci.compose({name:`${p.prefix}-link`,template:Hh,styles:Eh});Dh.define(p.registry);class Vh extends te{}const jh=ni({end:f.partial(`
443
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${pa};cursor:pointer;font-family:${$};font-size:${T};font-weight:${M};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${U};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${ga}}:host(:active){color:${fa}}:host(${C}:hover){color:${ma}}:host(${C}:active){color:${$a}}}:host(${C}){color:${ba}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
444
+ :host{color:LinkText}`));function Hh(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Dh=Hh(),Vh=hi.compose({name:`${p.prefix}-link`,template:Dh,styles:Lh});Vh.define(p.registry);class jh extends Jt{}const Rh=li({end:f.partial(`
445
445
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
446
446
  <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>
447
447
  </svg>
448
- `)}),Rh=Vh.compose({name:`${p.prefix}-menu-button`,template:jh,styles:os});Rh.define(p.registry);const K={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};K.menuitem+"",K.menuitemcheckbox+"",K.menuitemradio+"";var qh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Ee=(o,t,e,s)=>{for(var i=s>1?void 0:s?Gh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&qh(t,e,i),i};const Wh=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class It extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=K.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Bo:case Os:return this.invoke(),!1;case Ts:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Bs:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case K.menuitemcheckbox:this.checked=!this.checked;break;case K.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case K.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),s=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[s]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,c(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??K.menuitem}checkedChanged(t,e){const s=this.role!==K.menuitem;this.elementInternals.ariaChecked=s?`${!!e}`:null,c(this.elementInternals,"checked",s?e:!1),this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",c(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,c(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??K.menuitem,this.elementInternals.ariaChecked=this.role!==K.menuitem?`${!!this.checked}`:null}}Ee([a({mode:"boolean"})],It.prototype,"disabled",2),Ee([a],It.prototype,"role",2),Ee([a({mode:"boolean"})],It.prototype,"checked",2),Ee([a({mode:"boolean"})],It.prototype,"hidden",2),Ee([k],It.prototype,"slottedSubmenu",2),Ee([k],It.prototype,"submenu",2),qt(It,jt);const ls=l.partial`:is([state--submenu], :state(submenu))`,Xh=l`
448
+ `)}),qh=jh.compose({name:`${p.prefix}-menu-button`,template:Rh,styles:ss});qh.define(p.registry);const K={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};K.menuitem+"",K.menuitemcheckbox+"",K.menuitemradio+"";var Gh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,Ne=(o,t,e,s)=>{for(var i=s>1?void 0:s?Wh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Gh(t,e,i),i};const Xh=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class It extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=K.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case To:case Ns:return this.invoke(),!1;case Fs:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case As:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case K.menuitemcheckbox:this.checked=!this.checked;break;case K.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case K.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),s=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[s]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,c(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??K.menuitem}checkedChanged(t,e){const s=this.role!==K.menuitem;this.elementInternals.ariaChecked=s?`${!!e}`:null,c(this.elementInternals,"checked",s?e:!1),this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",c(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,c(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??K.menuitem,this.elementInternals.ariaChecked=this.role!==K.menuitem?`${!!this.checked}`:null}}Ne([a({mode:"boolean"})],It.prototype,"disabled",2),Ne([a],It.prototype,"role",2),Ne([a({mode:"boolean"})],It.prototype,"checked",2),Ne([a({mode:"boolean"})],It.prototype,"hidden",2),Ne([k],It.prototype,"slottedSubmenu",2),Ne([k],It.prototype,"submenu",2),Rt(It,Vt);const cs=l.partial`:is([state--submenu], :state(submenu))`,Uh=l`
449
449
  ${w("grid")}
450
450
 
451
- :host{--indent:0;align-items:center;background:${O};border-radius:${T};color:${Kt};contain:layout;cursor:pointer;flex-shrink:0;font:${M} ${A} / ${D} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Ds};color:${Ho}}:host(:active){background-color:${dr};color:${Do}}:host(:active) ::slotted([slot='start']){color:${$a}}:host(${W}){background-color:${Be};color:${H}}:host(${W}) ::slotted([slot='start']),:host(${W}) ::slotted([slot='end']){color:${H}}:host(:focus-visible){border-radius:${T};outline:2px solid ${Ot}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${v})) .indicator,:host(:not(${v})) ::slotted([slot='indicator']),:host(:not(${ls})) .submenu-glyph,:host(:not(${ls})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${rt};font:${M} ${q} / ${ot} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${ls}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${ls}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(Z(l`
452
- :host(${W}),:host(${W}) ::slotted([slot='start']),:host(${W}) ::slotted([slot='end']){color:GrayText}`)),Uh=f.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>'),Kh=f.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 Yh(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${ft(o.indicator)}</slot>${Rt(o)}<div part="content" class="content"><slot></slot></div>${se(o)}<slot name="submenu-glyph">${ft(o.submenuGlyph)}</slot><slot name="submenu" ${pt({property:"slottedSubmenu",filter:Wh()})}></slot></template>`}const Qh=Yh({indicator:Uh,submenuGlyph:Kh}),Zh=It.compose({name:`${p.prefix}-menu-item`,template:Qh,styles:Xh});Zh.define(p.registry);var Jh=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,eu=(o,t,e,s)=>{for(var i=s>1?void 0:s?tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Jh(t,e,i),i};const di=class bi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&ir(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===K.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===K.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof It||ir(t)&&t.getAttribute("role")in bi.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Tt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case zs:this.setFocus(this.focusIndex+1,1);return;case As:this.setFocus(this.focusIndex-1,-1);return;case Fs:this.setFocus(this.menuItems.length-1,-1);return;case _s:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),m.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==K.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const g=bi.elementIndent(h);return Math.max(n,g)},0);i?.forEach(n=>{n instanceof It&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};di.focusableElementRoles=K,eu([k],di.prototype,"items",2);let ou=di;const su=l`
451
+ :host{--indent:0;align-items:center;background:${O};border-radius:${B};color:${Ut};contain:layout;cursor:pointer;flex-shrink:0;font:${M} ${T} / ${D} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${js};color:${Do}}:host(:active){background-color:${ur};color:${Vo}}:host(:active) ::slotted([slot='start']){color:${ya}}:host(${W}){background-color:${ze};color:${H}}:host(${W}) ::slotted([slot='start']),:host(${W}) ::slotted([slot='end']){color:${H}}:host(:focus-visible){border-radius:${B};outline:2px solid ${Ot}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${v})) .indicator,:host(:not(${v})) ::slotted([slot='indicator']),:host(:not(${cs})) .submenu-glyph,:host(:not(${cs})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${rt};font:${M} ${q} / ${ot} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${cs}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${cs}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(Z(l`
452
+ :host(${W}),:host(${W}) ::slotted([slot='start']),:host(${W}) ::slotted([slot='end']){color:GrayText}`)),Kh=f.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>'),Yh=f.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 Qh(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${ft(o.indicator)}</slot>${jt(o)}<div part="content" class="content"><slot></slot></div>${oe(o)}<slot name="submenu-glyph">${ft(o.submenuGlyph)}</slot><slot name="submenu" ${pt({property:"slottedSubmenu",filter:Xh()})}></slot></template>`}const Zh=Qh({indicator:Kh,submenuGlyph:Yh}),Jh=It.compose({name:`${p.prefix}-menu-item`,template:Zh,styles:Uh});Jh.define(p.registry);var tu=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,ou=(o,t,e,s)=>{for(var i=s>1?void 0:s?eu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&tu(t,e,i),i};const ui=class $i extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===K.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===K.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof It||nr(t)&&t.getAttribute("role")in $i.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Tt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case Ts:this.setFocus(this.focusIndex+1,1);return;case _s:this.setFocus(this.focusIndex-1,-1);return;case Os:this.setFocus(this.menuItems.length-1,-1);return;case Ms:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),m.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==K.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const g=$i.elementIndent(h);return Math.max(n,g)},0);i?.forEach(n=>{n instanceof It&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};ui.focusableElementRoles=K,ou([k],ui.prototype,"items",2);let su=ui;const iu=l`
453
453
  ${w("flex")}
454
454
 
455
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${O};border:1px solid ${nt};border-radius:${T};box-shadow:${Vr};padding:4px;row-gap:2px}`;function iu(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${pt("items")}></slot></template>`}const ru=iu(),nu=ou.compose({name:`${p.prefix}-menu-list`,template:ru,styles:su});nu.define(p.registry);var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,Le=(o,t,e,s)=>{for(var i=s>1?void 0:s?lu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&au(t,e,i),i};class ve extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof It&&(t.target.getAttribute("role")===K.menuitemcheckbox||t.target.getAttribute("role")===K.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t instanceof ToggleEvent){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case Os:case Bo:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Tt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Tt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Tt.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case Wn:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Xn:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}Le([a({attribute:"open-on-hover",mode:"boolean"})],ve.prototype,"openOnHover",2),Le([a({attribute:"open-on-context",mode:"boolean"})],ve.prototype,"openOnContext",2),Le([a({attribute:"close-on-scroll",mode:"boolean"})],ve.prototype,"closeOnScroll",2),Le([a({attribute:"persist-on-item-click",mode:"boolean"})],ve.prototype,"persistOnItemClick",2),Le([k],ve.prototype,"slottedMenuList",2),Le([k],ve.prototype,"slottedTriggers",2);const cu=l`
455
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${O};border:1px solid ${nt};border-radius:${B};box-shadow:${Rr};padding:4px;row-gap:2px}`;function ru(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${pt("items")}></slot></template>`}const nu=ru(),au=su.compose({name:`${p.prefix}-menu-list`,template:nu,styles:iu});au.define(p.registry);var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Ee=(o,t,e,s)=>{for(var i=s>1?void 0:s?cu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&lu(t,e,i),i};class $e extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof It&&(t.target.getAttribute("role")===K.menuitemcheckbox||t.target.getAttribute("role")===K.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t instanceof ToggleEvent){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case Ns:case To:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Tt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Tt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Tt.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case Un:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Kn:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}Ee([a({attribute:"open-on-hover",mode:"boolean"})],$e.prototype,"openOnHover",2),Ee([a({attribute:"open-on-context",mode:"boolean"})],$e.prototype,"openOnContext",2),Ee([a({attribute:"close-on-scroll",mode:"boolean"})],$e.prototype,"closeOnScroll",2),Ee([a({attribute:"persist-on-item-click",mode:"boolean"})],$e.prototype,"persistOnItemClick",2),Ee([k],$e.prototype,"slottedMenuList",2),Ee([k],$e.prototype,"slottedTriggers",2);const du=l`
456
456
  ${w("inline-block")}
457
457
 
458
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function du(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="trigger" ${pt({property:"slottedTriggers",filter:je()})}></slot><slot ${pt({property:"slottedMenuList",filter:je()})}></slot></template>`}const hu=du(),uu=ve.compose({name:`${p.prefix}-menu`,template:hu,styles:cu});uu.define(p.registry);var pu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,hi=(o,t,e,s)=>{for(var i=s>1?void 0:s?gu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&pu(t,e,i),i};class cs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}layoutChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}intentChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}}hi([a],cs.prototype,"shape",2),hi([a],cs.prototype,"layout",2),hi([a],cs.prototype,"intent",2);const fu=l`
459
- :host{display:grid;box-sizing:border-box;font-family:${$};font-size:${q};line-height:${ot};width:100%;background:${js};border:1px solid ${be};padding-inline:${ut};border-radius:${T};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${We}){border-radius:0}:host(${ue}){background-color:${xr};border-color:${Ea}}:host(${pe}){background-color:${Cr};border-color:${Ir}}:host(${Ls}){background-color:${mr};border-color:${vr}}:host(${Ke}){grid-template-areas:'icon body dismiss'
460
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${io};padding-inline:${ut}}.content{grid-area:body;max-width:520px;padding-block:${io};padding-inline:0}:host(${Ke}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${rt};margin-inline-end:${Jt}}:host(${Ke}) ::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:${Jt};gap:${Jt}}:host(${Ke}) .actions{margin-block-start:${io};margin-inline-end:0}:host(${Ke}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${bt}}::slotted(*){font-size:inherit}`;function bu(){return f`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const mu=bu(),$u=cs.compose({name:`${p.prefix}-message-bar`,template:mu,styles:fu,shadowOptions:{mode:p.shadowRootMode}});$u.define(p.registry);var vu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,ye=(o,t,e,s)=>{for(var i=s>1?void 0:s?yu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&vu(t,e,i),i};class le extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}thicknessChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}validationStateChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,s=this.value??0,i=e-t;return i===0?0:Math.fround((s-t)/i*100)}}ye([a],le.prototype,"thickness",2),ye([a],le.prototype,"shape",2),ye([a({attribute:"validation-state"})],le.prototype,"validationState",2),ye([a({converter:st})],le.prototype,"value",2),ye([a({converter:st})],le.prototype,"min",2),ye([a({converter:st})],le.prototype,"max",2),ye([$n],le.prototype,"percentComplete",1);const ku=l`
458
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function hu(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="trigger" ${pt({property:"slottedTriggers",filter:je()})}></slot><slot ${pt({property:"slottedMenuList",filter:je()})}></slot></template>`}const uu=hu(),pu=$e.compose({name:`${p.prefix}-menu`,template:uu,styles:du});pu.define(p.registry);var gu=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,pi=(o,t,e,s)=>{for(var i=s>1?void 0:s?fu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&gu(t,e,i),i};class ds extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}layoutChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}intentChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}}pi([a],ds.prototype,"shape",2),pi([a],ds.prototype,"layout",2),pi([a],ds.prototype,"intent",2);const bu=l`
459
+ :host{display:grid;box-sizing:border-box;font-family:${$};font-size:${q};line-height:${ot};width:100%;background:${qs};border:1px solid ${fe};padding-inline:${ut};border-radius:${B};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${We}){border-radius:0}:host(${he}){background-color:${Cr};border-color:${Ha}}:host(${ue}){background-color:${Ir};border-color:${zr}}:host(${Ds}){background-color:${vr};border-color:${kr}}:host(${Ke}){grid-template-areas:'icon body dismiss'
460
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${io};padding-inline:${ut}}.content{grid-area:body;max-width:520px;padding-block:${io};padding-inline:0}:host(${Ke}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${rt};margin-inline-end:${Zt}}:host(${Ke}) ::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:${Zt};gap:${Zt}}:host(${Ke}) .actions{margin-block-start:${io};margin-inline-end:0}:host(${Ke}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${bt}}::slotted(*){font-size:inherit}`;function mu(){return f`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const $u=mu(),vu=ds.compose({name:`${p.prefix}-message-bar`,template:$u,styles:bu,shadowOptions:{mode:p.shadowRootMode}});vu.define(p.registry);var yu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,ve=(o,t,e,s)=>{for(var i=s>1?void 0:s?ku(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yu(t,e,i),i};class Le extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,s=this.value??0,i=e-t;return i===0?0:Math.fround((s-t)/i*100)}}ve([a({attribute:"validation-state"})],Le.prototype,"validationState",2),ve([a({converter:st})],Le.prototype,"value",2),ve([a({converter:st})],Le.prototype,"min",2),ve([a({converter:st})],Le.prototype,"max",2),ve([yn],Le.prototype,"percentComplete",1);class gi extends Le{thicknessChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ve([a],gi.prototype,"thickness",2),ve([a],gi.prototype,"shape",2);const xu=l`
461
461
  ${w("block")}
462
462
 
463
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${Ro};border-radius:${T};contain:content}:host(${S}){height:4px}:host(${We}){border-radius:${Zs}}.indicator{background-color:${Te};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
464
- to right,${Ro} 0%,${kt} 50%,${Ro} 100%
465
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ls}) .indicator{background-color:${$r}}:host(${pe}) .indicator{background-color:${Sr}}:host(${ue}) .indicator{background-color:${wr}}@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%}}`.withBehaviors(Z(l`
466
- :host{background-color:CanvasText}.indicator,:host(:is(${ue},${pe},${Ls})) .indicator{background-color:Highlight}`));function xu(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const wu=xu(),Cu=le.compose({name:`${p.prefix}-progress-bar`,template:wu,styles:ku});Cu.define(p.registry);class rn extends $t{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.checked=!1,this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function nn(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const an=gt;var Su=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,ke=(o,t,e,s)=>{for(var i=s>1?void 0:s?Iu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Su(t,e,i),i};class ee extends x{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??an.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(s=>{s.disabled=s.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(s=>{s.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??an.horizontal}radiosChanged(t,e){const s=e?.length;if(!s)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const i=Gn(this.enabledRadios,n=>n.initialChecked);e.forEach((n,h)=>{n.ariaPosInSet=`${h+1}`,n.ariaSetSize=`${s}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=h===i,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=i);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),Tt.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.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 t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(s=>s.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),m.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),!0}checkRadio(t=this.checkedIndex){let e=this.checkedIndex;this.enabledRadios.forEach((s,i)=>{const r=i===t;s.checked=r,r&&(e=i)}),this.checkedIndex=e,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=rr(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===nn(this))??this.checkedIndex;let i=0;switch(t.key){case"ArrowLeft":{i=e?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=e?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const r=s+i;this.checkedIndex=this.getEnabledIndexInBounds(r),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(nn(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((s,i)=>{s.tabIndex=i===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,s??this.enabledRadios[0])}}slotchangeHandler(t){Tt.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof rn)})}}ee.formAssociated=!0,ke([k],ee.prototype,"checkedIndex",2),ke([a({attribute:"disabled",mode:"boolean"})],ee.prototype,"disabled",2),ke([a({attribute:"value",mode:"fromView"})],ee.prototype,"initialValue",2),ke([a],ee.prototype,"name",2),ke([a],ee.prototype,"orientation",2),ke([k],ee.prototype,"radios",2),ke([a({mode:"boolean"})],ee.prototype,"required",2);const Pu=l`
463
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${qo};border-radius:${B};contain:content}:host(${S}){height:4px}:host(${We}){border-radius:${ti}}.indicator{background-color:${Be};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
464
+ to right,${qo} 0%,${kt} 50%,${qo} 100%
465
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ds}) .indicator{background-color:${yr}}:host(${ue}) .indicator{background-color:${Pr}}:host(${he}) .indicator{background-color:${Sr}}@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%}}`.withBehaviors(Z(l`
466
+ :host{background-color:CanvasText}.indicator,:host(:is(${he},${ue},${Ds})) .indicator{background-color:Highlight}`));function wu(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Cu=wu(),Su=gi.compose({name:`${p.prefix}-progress-bar`,template:Cu,styles:xu});Su.define(p.registry);class an extends $t{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.checked=!1,this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function ln(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const cn=gt;var Iu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,ye=(o,t,e,s)=>{for(var i=s>1?void 0:s?Pu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Iu(t,e,i),i};class te extends x{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??cn.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(s=>{s.disabled=s.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(s=>{s.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??cn.horizontal}radiosChanged(t,e){const s=e?.length;if(!s)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const i=Xn(this.enabledRadios,n=>n.initialChecked);e.forEach((n,h)=>{n.ariaPosInSet=`${h+1}`,n.ariaSetSize=`${s}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=h===i,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=i);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),Tt.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.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 t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(s=>s.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),m.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),!0}checkRadio(t=this.checkedIndex){let e=this.checkedIndex;this.enabledRadios.forEach((s,i)=>{const r=i===t;s.checked=r,r&&(e=i)}),this.checkedIndex=e,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=ar(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===ln(this))??this.checkedIndex;let i=0;switch(t.key){case"ArrowLeft":{i=e?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=e?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const r=s+i;this.checkedIndex=this.getEnabledIndexInBounds(r),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(ln(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((s,i)=>{s.tabIndex=i===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,s??this.enabledRadios[0])}}slotchangeHandler(t){Tt.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof an)})}}te.formAssociated=!0,ye([k],te.prototype,"checkedIndex",2),ye([a({attribute:"disabled",mode:"boolean"})],te.prototype,"disabled",2),ye([a({attribute:"value",mode:"fromView"})],te.prototype,"initialValue",2),ye([a],te.prototype,"name",2),ye([a],te.prototype,"orientation",2),ye([k],te.prototype,"radios",2),ye([a({mode:"boolean"})],te.prototype,"required",2);const zu=l`
467
467
  ${w("flex")}
468
468
 
469
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ti}}:host(${W}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${rt}}::slotted(:hover){color:${Kt}}::slotted(:active){color:${B}}::slotted(${W}){color:${H}}::slotted(${v}){color:${B}}`;function zu(){return f`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const Bu=zu(),Tu=ee.compose({name:`${p.prefix}-radio-group`,template:Bu,styles:Pu});Tu.define(p.registry);const Au=l`
469
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${oi}}:host(${W}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${rt}}::slotted(:hover){color:${Ut}}::slotted(:active){color:${z}}::slotted(${W}){color:${H}}::slotted(${v}){color:${z}}`;function Bu(){return f`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const Tu=Bu(),Au=te.compose({name:`${p.prefix}-radio-group`,template:Tu,styles:zu});Au.define(p.registry);const Fu=l`
470
470
  ${w("inline-flex")}
471
471
 
472
- :host{--size:16px;aspect-ratio:1;background-color:${O};border:${U} solid ${fe};border-radius:${ct};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ct};color:${Ye};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:${wt} solid ${nt};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ot}}:host(:hover){border-color:${Je}}:host(${v}){border-color:${Wo}}:host(${v}) .checked-indicator{background-color:${Te}}:host(${v}:hover) .checked-indicator{background-color:${Qe}}:host(:active){border-color:${to}}:host(${v}:active) .checked-indicator{background-color:${Ze}}:host(:focus-visible){outline:none}:host(${W}){background-color:${Be};border-color:${_t}}:host(${v}${W}) .checked-indicator{background-color:${_t}}`.withBehaviors(Z(l`
473
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${W}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${v}) .checked-indicator{background-color:FieldText}:host(${v}:not(${W}):hover) .checked-indicator{background-color:Highlight}:host(${W}){border-color:GrayText;color:GrayText}:host(${W}${v}) .checked-indicator{background-color:GrayText}`)),Fu=f.partial(`
472
+ :host{--size:16px;aspect-ratio:1;background-color:${O};border:${U} solid ${ge};border-radius:${ct};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ct};color:${Ye};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:${wt} solid ${nt};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ot}}:host(:hover){border-color:${Je}}:host(${v}){border-color:${Xo}}:host(${v}) .checked-indicator{background-color:${Be}}:host(${v}:hover) .checked-indicator{background-color:${Qe}}:host(:active){border-color:${to}}:host(${v}:active) .checked-indicator{background-color:${Ze}}:host(:focus-visible){outline:none}:host(${W}){background-color:${ze};border-color:${_t}}:host(${v}${W}) .checked-indicator{background-color:${_t}}`.withBehaviors(Z(l`
473
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${W}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${v}) .checked-indicator{background-color:FieldText}:host(${v}:not(${W}):hover) .checked-indicator{background-color:Highlight}:host(${W}){border-color:GrayText;color:GrayText}:host(${W}${v}) .checked-indicator{background-color:GrayText}`)),_u=f.partial(`
474
474
  <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
475
- `);function _u(o={}){return f`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ft(o.checkedIndicator)}</slot></template>`}const Ou=_u({checkedIndicator:Fu}),Mu=rn.compose({name:`${p.prefix}-radio`,template:Ou,styles:Au});Mu.define(p.registry);var Nu=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,He=(o,t,e,s)=>{for(var i=s>1?void 0:s?Eu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Nu(t,e,i),i};class xe extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.compact=!1,this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}colorChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}generateIcons(){let t="";const e=Math.round((this.compact?1:this.value??0)*2)/2;for(let s=0;s<(this.compact?1:this.max??5)*2;s++){const i=(s+1)/2;t+=`<svg aria-hidden="true" ${i===e?"selected":""}><use href="#star"></use></svg>`}return t}}He([a],xe.prototype,"color",2),He([a({mode:"boolean"})],xe.prototype,"compact",2),He([a({converter:st})],xe.prototype,"count",2),He([a({converter:st})],xe.prototype,"max",2),He([a],xe.prototype,"size",2),He([a({converter:st})],xe.prototype,"value",2);const Lu=l`
475
+ `);function Ou(o={}){return f`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ft(o.checkedIndicator)}</slot></template>`}const Mu=Ou({checkedIndicator:_u}),Nu=an.compose({name:`${p.prefix}-radio`,template:Mu,styles:Fu});Nu.define(p.registry);var Eu=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,He=(o,t,e,s)=>{for(var i=s>1?void 0:s?Lu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Eu(t,e,i),i};class ke extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.compact=!1,this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}colorChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}generateIcons(){let t="";const e=Math.round((this.compact?1:this.value??0)*2)/2;for(let s=0;s<(this.compact?1:this.max??5)*2;s++){const i=(s+1)/2;t+=`<svg aria-hidden="true" ${i===e?"selected":""}><use href="#star"></use></svg>`}return t}}He([a],ke.prototype,"color",2),He([a({mode:"boolean"})],ke.prototype,"compact",2),He([a({converter:st})],ke.prototype,"count",2),He([a({converter:st})],ke.prototype,"max",2),He([a],ke.prototype,"size",2),He([a({converter:st})],ke.prototype,"value",2);const Hu=l`
476
476
  ${w("inline-flex")}
477
477
 
478
- :host{--icon-size:16px;align-items:center;color:${B};font-family:${$};font-size:${q};line-height:${ot};contain:layout style;user-select:none}:host(${_}){--icon-size:12px}:host(${S}){--icon-size:20px;font-size:${A};line-height:${D}}svg{width:var(--icon-size);height:var(--icon-size);fill:${Wa};margin-inline-end:${ht}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Eo}) svg{fill:${B}}:host(${Ut}) svg{fill:${Xs}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:${zr}}:host(${Eo}:is([value^='-'],[value='0'])) svg,:host(${Eo}:not([value])) svg,:host(${Eo}) svg[selected] ~ svg{fill:${Vs}}:host(${Ut}:is([value^='-'],[value='0'])) svg,:host(${Ut}:not([value])) svg,:host(${Ut}) svg[selected] ~ svg{fill:${Ks}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Qt};font-weight:${N}}:host(${_}) .value-label,:host(${_}) ::slotted([slot='value']){margin-inline-start:${ht}}:host(${S}) .value-label,:host(${S}) ::slotted([slot='value']){margin-inline-start:${Zt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Qt}}:host(${_}) .count-label::before,:host(${_}) ::slotted([slot='count'])::before{margin-inline:${ht}}:host(${S}) .count-label::before,:host(${S}) ::slotted([slot='count'])::before{margin-inline:${Zt}}`.withBehaviors(Z(l`
479
- :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),Hu=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star" viewBox="0 0 12 12"><path d="M5.28347 1.54556C5.57692 0.95096 6.42479 0.950961 6.71825 1.54556L7.82997 3.79817L10.3159 4.15939C10.9721 4.25474 11.2341 5.06112 10.7592 5.52394L8.96043 7.27736L9.38507 9.75321C9.49716 10.4067 8.81122 10.9051 8.22431 10.5966L6.00086 9.42761L3.7774 10.5966C3.19049 10.9051 2.50455 10.4067 2.61664 9.75321L3.04128 7.27736L1.24246 5.52394C0.767651 5.06111 1.02966 4.25474 1.68584 4.15939L4.17174 3.79817L5.28347 1.54556Z" /></symbol></svg>`;function Du(){return f` ${Hu} ${o=>f`${f.partial(o.generateIcons())}`}<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 Vu=Du(),ju=xe.compose({name:`${p.prefix}-rating-display`,template:Vu,styles:Lu});ju.define(p.registry);const Ru=gt,qu={singleValue:"single-value"};function ln(o,t,e,s){let i=Ms(0,1,(o-t)/(e-t));return s===yt.rtl&&(i=1-i),i}var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var i=s>1?void 0:s?Wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Gu(t,e,i),i};class V extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=yt.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=qu.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case _s:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Fs:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case Ts:case As:t.shiftKey||(t.preventDefault(),this.increment());break;case Bs:case zs:t.shiftKey||(t.preventDefault(),this.decrement());break}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,s=this.orientation===gt.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,s=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),s("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const i=this.orientation===gt.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Ru.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
480
- :host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}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(t){this.setValidity({customError:!!t},t)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,s)}}get value(){return m.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),s=Ms(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(s!==t){this.value=s;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.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 t=parseFloat(this.min);if(!Number.isNaN(t))return t}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 t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??gt.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=rr(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==yt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),s=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=s}decrement(){const t=this.direction!==yt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),s=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=s}setSliderPosition(t){const s=(1-ln(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,i=`calc(100% - ${s}%)`,r=this.orientation!==gt.vertical&&t===yt.rtl?`${s}%`:`calc(100% - ${s}%)`;this.position=`--slider-thumb: ${i}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}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(t){this.setupTrackConstraints();const e=ln(t,this.orientation===gt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===gt.vertical?this.trackHeight:this.trackWidth,this.direction),s=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(s)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const s=Math.round(e/this.stepAsNumber),i=e-s*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=i>=Number(this.stepAsNumber)/2?e-i+Number(this.stepAsNumber):e-i,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}V.formAssociated=!0,Y([a],V.prototype,"size",2),Y([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),Y([k],V.prototype,"direction",2),Y([k],V.prototype,"isDragging",2),Y([k],V.prototype,"position",2),Y([k],V.prototype,"trackWidth",2),Y([k],V.prototype,"trackMinWidth",2),Y([k],V.prototype,"trackHeight",2),Y([k],V.prototype,"trackLeft",2),Y([k],V.prototype,"trackMinHeight",2),Y([k],V.prototype,"valueTextFormatter",2),Y([a({mode:"boolean"})],V.prototype,"disabled",2),Y([a({converter:Ns})],V.prototype,"min",2),Y([a({converter:Ns})],V.prototype,"max",2),Y([a({converter:Ns})],V.prototype,"step",2),Y([a],V.prototype,"orientation",2),Y([a],V.prototype,"mode",2);const Xu=l`
478
+ :host{--icon-size:16px;align-items:center;color:${z};font-family:${$};font-size:${q};line-height:${ot};contain:layout style;user-select:none}:host(${_}){--icon-size:12px}:host(${S}){--icon-size:20px;font-size:${T};line-height:${D}}svg{width:var(--icon-size);height:var(--icon-size);fill:${Ua};margin-inline-end:${ht}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Lo}) svg{fill:${z}}:host(${Xt}) svg{fill:${Ks}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:${Tr}}:host(${Lo}:is([value^='-'],[value='0'])) svg,:host(${Lo}:not([value])) svg,:host(${Lo}) svg[selected] ~ svg{fill:${Rs}}:host(${Xt}:is([value^='-'],[value='0'])) svg,:host(${Xt}:not([value])) svg,:host(${Xt}) svg[selected] ~ svg{fill:${Qs}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Yt};font-weight:${N}}:host(${_}) .value-label,:host(${_}) ::slotted([slot='value']){margin-inline-start:${ht}}:host(${S}) .value-label,:host(${S}) ::slotted([slot='value']){margin-inline-start:${Qt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Yt}}:host(${_}) .count-label::before,:host(${_}) ::slotted([slot='count'])::before{margin-inline:${ht}}:host(${S}) .count-label::before,:host(${S}) ::slotted([slot='count'])::before{margin-inline:${Qt}}`.withBehaviors(Z(l`
479
+ :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),Du=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star" viewBox="0 0 12 12"><path d="M5.28347 1.54556C5.57692 0.95096 6.42479 0.950961 6.71825 1.54556L7.82997 3.79817L10.3159 4.15939C10.9721 4.25474 11.2341 5.06112 10.7592 5.52394L8.96043 7.27736L9.38507 9.75321C9.49716 10.4067 8.81122 10.9051 8.22431 10.5966L6.00086 9.42761L3.7774 10.5966C3.19049 10.9051 2.50455 10.4067 2.61664 9.75321L3.04128 7.27736L1.24246 5.52394C0.767651 5.06111 1.02966 4.25474 1.68584 4.15939L4.17174 3.79817L5.28347 1.54556Z" /></symbol></svg>`;function Vu(){return f` ${Du} ${o=>f`${f.partial(o.generateIcons())}`}<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 ju=Vu(),Ru=ke.compose({name:`${p.prefix}-rating-display`,template:ju,styles:Hu});Ru.define(p.registry);const qu=gt,Gu={singleValue:"single-value"};function dn(o,t,e,s){let i=Es(0,1,(o-t)/(e-t));return s===yt.rtl&&(i=1-i),i}var Wu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Wu(t,e,i),i};class V extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=yt.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=Gu.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case Ms:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Os:t.preventDefault(),this.value=this.direction!==yt.rtl&&this.orientation!==gt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case Fs:case _s:t.shiftKey||(t.preventDefault(),this.increment());break;case As:case Ts:t.shiftKey||(t.preventDefault(),this.decrement());break}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,s=this.orientation===gt.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,s=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),s("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const i=this.orientation===gt.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??qu.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
480
+ :host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}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(t){this.setValidity({customError:!!t},t)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,s)}}get value(){return m.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),s=Es(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(s!==t){this.value=s;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.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 t=parseFloat(this.min);if(!Number.isNaN(t))return t}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 t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??gt.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=ar(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==yt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),s=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=s}decrement(){const t=this.direction!==yt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),s=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=s}setSliderPosition(t){const s=(1-dn(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,i=`calc(100% - ${s}%)`,r=this.orientation!==gt.vertical&&t===yt.rtl?`${s}%`:`calc(100% - ${s}%)`;this.position=`--slider-thumb: ${i}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}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(t){this.setupTrackConstraints();const e=dn(t,this.orientation===gt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===gt.vertical?this.trackHeight:this.trackWidth,this.direction),s=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(s)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const s=Math.round(e/this.stepAsNumber),i=e-s*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=i>=Number(this.stepAsNumber)/2?e-i+Number(this.stepAsNumber):e-i,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}V.formAssociated=!0,Y([a],V.prototype,"size",2),Y([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),Y([k],V.prototype,"direction",2),Y([k],V.prototype,"isDragging",2),Y([k],V.prototype,"position",2),Y([k],V.prototype,"trackWidth",2),Y([k],V.prototype,"trackMinWidth",2),Y([k],V.prototype,"trackHeight",2),Y([k],V.prototype,"trackLeft",2),Y([k],V.prototype,"trackMinHeight",2),Y([k],V.prototype,"valueTextFormatter",2),Y([a({mode:"boolean"})],V.prototype,"disabled",2),Y([a({converter:Ls})],V.prototype,"min",2),Y([a({converter:Ls})],V.prototype,"max",2),Y([a({converter:Ls})],V.prototype,"step",2),Y([a],V.prototype,"orientation",2),Y([a],V.prototype,"mode",2);const Uu=l`
481
481
  ${w("inline-grid")}
482
482
 
483
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--slider-direction:90deg;--border-radius:${T};--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(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${_}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Mt}}:host(${J}){--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 ${Ot};outline:1px solid ${Ys}}.track{position:relative;background-color:${fe};border-radius:var(--border-radius);grid-row:2 / 2;grid-column:2 / 2;width:100%;height:var(--track-size);forced-color-adjust:none}:host(${J}) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-size);height:100%}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${J}) .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(
483
+ :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--slider-direction:90deg;--border-radius:${B};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${_}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Mt}}:host(${J}){--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 ${Ot};outline:1px solid ${Zs}}.track{position:relative;background-color:${ge};border-radius:var(--border-radius);grid-row:2 / 2;grid-column:2 / 2;width:100%;height:var(--track-size);forced-color-adjust:none}:host(${J}) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-size);height:100%}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${J}) .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(
484
484
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${O} calc(var(--step-rate) - 1px),${O} var(--step-rate)
485
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${J}) .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:${ct};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${O} inset;border:calc(var(--thumb-size) * 0.05) solid ${be};box-sizing:border-box}.thumb,.track::before{background-color:${Te}}:host(:hover) .thumb,:host(:hover) .track::before{background-color:${Qe}}:host(:active) .thumb,:host(:active) .track::before{background-color:${Ze}}:host(:disabled) .track{background-color:${Be}}:host(:disabled) .thumb,:host(:disabled) .track::before{background-color:${H}}`.withBehaviors(Z(l`
486
- .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 Uu(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${Ft("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${Ft("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${ft(o.thumb)}</slot></div></template>`}const Ku=Uu({thumb:'<div class="thumb"></div>'}),Yu=V.compose({name:`${p.prefix}-slider`,template:Ku,styles:Xu});Yu.define(p.registry);var Qu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,cn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Zu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Qu(t,e,i),i};class ui extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}cn([a],ui.prototype,"size",2),cn([a],ui.prototype,"appearance",2);const Ju=l`
485
+ )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${J}) .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:${ct};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${O} inset;border:calc(var(--thumb-size) * 0.05) solid ${fe};box-sizing:border-box}.thumb,.track::before{background-color:${Be}}:host(:hover) .thumb,:host(:hover) .track::before{background-color:${Qe}}:host(:active) .thumb,:host(:active) .track::before{background-color:${Ze}}:host(:disabled) .track{background-color:${ze}}:host(:disabled) .thumb,:host(:disabled) .track::before{background-color:${H}}`.withBehaviors(Z(l`
486
+ .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 Ku(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${Ft("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${Ft("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${ft(o.thumb)}</slot></div></template>`}const Yu=Ku({thumb:'<div class="thumb"></div>'}),Qu=V.compose({name:`${p.prefix}-slider`,template:Yu,styles:Uu});Qu.define(p.registry);var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,hn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ju(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Zu(t,e,i),i};class tp extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class fi extends tp{sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}hn([a],fi.prototype,"size",2),hn([a],fi.prototype,"appearance",2);const ep=l`
487
487
  ${w("inline-flex")}
488
488
 
489
- :host{--duration:1.5s;--indicatorSize:${Ct};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${Xe}){--indicatorSize:${wt};--size:20px}:host(${Ue}){--indicatorSize:${wt};--size:24px}:host(${_}){--indicatorSize:${wt};--size:28px}:host(${S}){--indicatorSize:${Ct};--size:36px}:host(${_o}){--indicatorSize:${Ct};--size:40px}:host(${sa}){--indicatorSize:${Js};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${ts}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Ks};border-radius:50%}:host(${nr}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${gr};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${nr}) .indicator{color:${Fa}}.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)}}`.withBehaviors(Z(l`
490
- .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),tp=f`<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>`,ep=ui.compose({name:`${p.prefix}-spinner`,template:tp,styles:Ju});ep.define(p.registry);class op extends $t{constructor(){super(),this.elementInternals.role="switch"}}function sp(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${ft(o.switch)}</slot></template>`}const ip=sp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),rp=l`
489
+ :host{--duration:1.5s;--indicatorSize:${Ct};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${Xe}){--indicatorSize:${wt};--size:20px}:host(${Ue}){--indicatorSize:${wt};--size:24px}:host(${_}){--indicatorSize:${wt};--size:28px}:host(${S}){--indicatorSize:${Ct};--size:36px}:host(${Oo}){--indicatorSize:${Ct};--size:40px}:host(${ra}){--indicatorSize:${ei};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${es}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Qs};border-radius:50%}:host(${lr}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${br};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${lr}) .indicator{color:${Oa}}.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)}}`.withBehaviors(Z(l`
490
+ .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),op=f`<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>`,sp=fi.compose({name:`${p.prefix}-spinner`,template:op,styles:ep});sp.define(p.registry);class ip extends $t{constructor(){super(),this.elementInternals.role="switch"}}function rp(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${ft(o.switch)}</slot></template>`}const np=rp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),ap=l`
491
491
  ${w("inline-flex")}
492
492
 
493
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ht};width:40px;height:20px;background-color:${kt};border:1px solid ${fe};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${Je}}:host(:active){border-color:${to}}:host(:disabled),:host([readonly]){border:1px solid ${_t};background-color:none;pointer:default}:host(${v}){background:${Te};border-color:${Te}}:host(${v}:hover){background:${Qe};border-color:${Qe}}:host(${v}:active){background:${Ze};border-color:${Ze}}:host(${v}:disabled){background:${Be};border-color:${_t}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${rt};transition-duration:${Rr};transition-timing-function:${ts};transition-property:margin-inline-start}:host(${v}) .checked-indicator{background-color:${Ye};margin-inline-start:calc(100% - 14px)}:host(${v}:hover) .checked-indicator{background:${va}}:host(${v}:active) .checked-indicator{background:${ya}}:host(:hover) .checked-indicator{background-color:${la}}:host(:active) .checked-indicator{background-color:${ca}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${H}}:host(${v}:disabled) .checked-indicator{background:${H}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${nt};outline:${wt} solid ${nt};box-shadow:${Qo},0 0 0 2px ${Ot}}`.withBehaviors(Z(l`
494
- :host{border-color:InactiveBorder}:host(${v}),:host(${v}:active),:host(${v}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${v}) .checked-indicator,:host(${v}:hover) .checked-indicator,:host(${v}:active) .checked-indicator{background-color:ButtonFace}`)),np=op.compose({name:`${p.prefix}-switch`,template:ip,styles:rp});np.define(p.registry);class ap extends x{}function lp(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const cp=lp(),dp=l`
493
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ht};width:40px;height:20px;background-color:${kt};border:1px solid ${ge};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${Je}}:host(:active){border-color:${to}}:host(:disabled),:host([readonly]){border:1px solid ${_t};background-color:none;pointer:default}:host(${v}){background:${Be};border-color:${Be}}:host(${v}:hover){background:${Qe};border-color:${Qe}}:host(${v}:active){background:${Ze};border-color:${Ze}}:host(${v}:disabled){background:${ze};border-color:${_t}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${rt};transition-duration:${Gr};transition-timing-function:${es};transition-property:margin-inline-start}:host(${v}) .checked-indicator{background-color:${Ye};margin-inline-start:calc(100% - 14px)}:host(${v}:hover) .checked-indicator{background:${ka}}:host(${v}:active) .checked-indicator{background:${xa}}:host(:hover) .checked-indicator{background-color:${da}}:host(:active) .checked-indicator{background-color:${ha}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${H}}:host(${v}:disabled) .checked-indicator{background:${H}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${nt};outline:${wt} solid ${nt};box-shadow:${Zo},0 0 0 2px ${Ot}}`.withBehaviors(Z(l`
494
+ :host{border-color:InactiveBorder}:host(${v}),:host(${v}:active),:host(${v}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${v}) .checked-indicator,:host(${v}:hover) .checked-indicator,:host(${v}:active) .checked-indicator{background-color:ButtonFace}`)),lp=ip.compose({name:`${p.prefix}-switch`,template:np,styles:ap});lp.define(p.registry);class cp extends x{}function dp(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const hp=dp(),up=l`
495
495
  ${w("block")}
496
496
 
497
- :host{box-sizing:border-box;padding:${ut} ${Nt}}`,hp=ap.compose({name:`${p.prefix}-tab-panel`,template:cp,styles:dp});hp.define(p.registry);var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,gp=(o,t,e,s)=>{for(var i=s>1?void 0:s?pp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&up(t,e,i),i};class pi extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
498
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}gp([a({mode:"boolean"})],pi.prototype,"disabled",2),qt(pi,jt);function fp(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Rt(o)}<span class="tab-content"><slot></slot></span>${se(o)}</template>`}const bp=fp({}),mp=l`
497
+ :host{box-sizing:border-box;padding:${ut} ${Nt}}`,pp=cp.compose({name:`${p.prefix}-tab-panel`,template:hp,styles:up});pp.define(p.registry);var gp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,bp=(o,t,e,s)=>{for(var i=s>1?void 0:s?fp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&gp(t,e,i),i};class bi extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
498
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}bp([a({mode:"boolean"})],bi.prototype,"disabled",2),Rt(bi,Vt);function mp(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${jt(o)}<span class="tab-content"><slot></slot></span>${oe(o)}</template>`}const $p=mp({}),vp=l`
499
499
  ${w("inline-flex")}
500
500
 
501
- :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${$};font-size:${A};color:${Kt};fill:currentcolor;grid-row:1;padding:${ut} ${Nt};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${B};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Wo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Go};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${H}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${H};color:${H}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Mt};box-shadow:0 0 0 3px ${Ot};outline:1px solid ${Ys}}`.withBehaviors(Z(l`
502
- :host([aria-selected='true'])::after{background-color:Highlight}`)),$p=pi.compose({name:`${p.prefix}-tab`,template:bp,styles:mp});$p.define(p.registry);const vp={subtle:"subtle",transparent:"transparent"},ds=gt;var yp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,we=(o,t,e,s)=>{for(var i=s>1?void 0:s?kp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yp(t,e,i),i};class fo extends x{constructor(){super(...arguments),this.orientation=ds.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Bs:t.preventDefault(),this.adjustBackward(t);break;case Ts:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case As:t.preventDefault(),this.adjustBackward(t);break;case zs:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case _s:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Fs:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",s=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],g=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",g),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${To()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${To()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ds.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=Ms(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)+1:1,s===e.length&&(s=0);s<e.length&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else{if(this.activetab&&s===e.indexOf(this.activetab))break;s+1>=e.length?s=0:s+=1}}adjustBackward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)-1:0,s=s<0?e.length-1:s;s>=0&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else s-1<0?s=e.length-1:s-=1}moveToTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}we([a],fo.prototype,"orientation",2),we([a],fo.prototype,"activeid",2),we([k],fo.prototype,"tabs",2),we([k],fo.prototype,"tabpanels",2);class bo extends fo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=vp.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===ds.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===ds.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
501
+ :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${$};font-size:${T};color:${Ut};fill:currentcolor;grid-row:1;padding:${ut} ${Nt};border-radius:${B}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Xo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Wo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${H}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${H};color:${H}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Mt};box-shadow:0 0 0 3px ${Ot};outline:1px solid ${Zs}}`.withBehaviors(Z(l`
502
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),yp=bi.compose({name:`${p.prefix}-tab`,template:$p,styles:vp});yp.define(p.registry);const kp={subtle:"subtle",transparent:"transparent"},hs=gt;var xp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,xe=(o,t,e,s)=>{for(var i=s>1?void 0:s?wp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&xp(t,e,i),i};class bo extends x{constructor(){super(...arguments),this.orientation=hs.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case As:t.preventDefault(),this.adjustBackward(t);break;case Fs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case _s:t.preventDefault(),this.adjustBackward(t);break;case Ts:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Ms:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Os:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",s=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],g=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",g),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${Ao()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Ao()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===hs.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=Es(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)+1:1,s===e.length&&(s=0);s<e.length&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else{if(this.activetab&&s===e.indexOf(this.activetab))break;s+1>=e.length?s=0:s+=1}}adjustBackward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)-1:0,s=s<0?e.length-1:s;s>=0&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else s-1<0?s=e.length-1:s-=1}moveToTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}xe([a],bo.prototype,"orientation",2),xe([a],bo.prototype,"activeid",2),xe([k],bo.prototype,"tabs",2),xe([k],bo.prototype,"tabpanels",2);class mo extends bo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=kp.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===hs.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===hs.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
503
503
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=l`
504
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}we([a],bo.prototype,"appearance",2),we([a({mode:"boolean"})],bo.prototype,"disabled",2),we([a],bo.prototype,"size",2),qt(bo,jt);function xp(o={}){return f` ${Rt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${pt("tabs")}></slot></div>${se(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${pt("tabpanels")}></slot></div>`}const wp=xp({}),Cp=l`
504
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}xe([a],mo.prototype,"appearance",2),xe([a({mode:"boolean"})],mo.prototype,"disabled",2),xe([a],mo.prototype,"size",2),Rt(mo,Vt);function Cp(o={}){return f` ${jt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${pt("tabs")}></slot></div>${oe(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${pt("tabpanels")}></slot></div>`}const Sp=Cp({}),Ip=l`
505
505
  ${w("grid")}
506
506
 
507
- :host{box-sizing:border-box;font-family:${$};font-size:${A};line-height:${D};color:${Kt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${H}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${H}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${H}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${H}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${H}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Rs};color:${lr};fill:${ma}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${qo};fill:${qo};color:${B}}:host([size='small']) ::slotted(fluent-tab){font-size:${A};line-height:${D};padding:${so} ${Zt}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${xt};padding:${ti} ${Nt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${ac};transition-timing-function:${Gr}}:host ::slotted(fluent-tab)::after{height:${Ct};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${Ct};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${Ct};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${Ct};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${Ct};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${Ct}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${so};padding-bottom:${so}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Zo};padding-bottom:${Zo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${bt};padding-bottom:${bt}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Zt};left:${Zt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Nt};left:${Nt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Nt};left:${Nt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${so};bottom:${so}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${bt};bottom:${bt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${io};bottom:${io}}`,Sp=bo.compose({name:`${p.prefix}-tabs`,template:wp,styles:Cp});Sp.define(p.registry);const Ip={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Pp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var zp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,F=(o,t,e,s)=>{for(var i=s>1?void 0:s?Bp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&zp(t,e,i),i};class I extends x{constructor(){super(...arguments),this.type=Ip.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}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 t=[...this.elementInternals.form.elements],e=t.find(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>Pp.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,s=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}}I.formAssociated=!0,F([a],I.prototype,"appearance",2),F([a],I.prototype,"autocomplete",2),F([a({mode:"boolean"})],I.prototype,"autofocus",2),F([a({attribute:"control-size"})],I.prototype,"controlSize",2),F([k],I.prototype,"defaultSlottedNodes",2),F([a],I.prototype,"dirname",2),F([a({mode:"boolean"})],I.prototype,"disabled",2),F([a({attribute:"form"})],I.prototype,"formAttribute",2),F([a({attribute:"value",mode:"fromView"})],I.prototype,"initialValue",2),F([a],I.prototype,"list",2),F([a({converter:st})],I.prototype,"maxlength",2),F([a({converter:st})],I.prototype,"minlength",2),F([a({mode:"boolean"})],I.prototype,"multiple",2),F([a],I.prototype,"name",2),F([a],I.prototype,"pattern",2),F([a],I.prototype,"placeholder",2),F([a({attribute:"readonly",mode:"boolean"})],I.prototype,"readOnly",2),F([a({mode:"boolean"})],I.prototype,"required",2),F([a({converter:st})],I.prototype,"size",2),F([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],I.prototype,"spellcheck",2),F([a],I.prototype,"type",2),F([k],I.prototype,"controlLabel",2),qt(I,jt);const Tp=l`
507
+ :host{box-sizing:border-box;font-family:${$};font-size:${T};line-height:${D};color:${Ut};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${H}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${H}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${H}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${H}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${B}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${H}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Gs};color:${dr};fill:${va}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Go};fill:${Go};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${T};line-height:${D};padding:${so} ${Qt}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${xt};padding:${oi} ${Nt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${cc};transition-timing-function:${Xr}}:host ::slotted(fluent-tab)::after{height:${Ct};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${Ct};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${Ct};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${Ct};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${Ct};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${Ct}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${so};padding-bottom:${so}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Jo};padding-bottom:${Jo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${bt};padding-bottom:${bt}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Qt};left:${Qt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Nt};left:${Nt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Nt};left:${Nt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${so};bottom:${so}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${bt};bottom:${bt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${io};bottom:${io}}`,Pp=mo.compose({name:`${p.prefix}-tabs`,template:Sp,styles:Ip});Pp.define(p.registry);const zp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Bp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Tp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,A=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ap(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Tp(t,e,i),i};class F extends x{constructor(){super(...arguments),this.type=zp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}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 t=[...this.elementInternals.form.elements],e=t.find(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>Bp.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,s=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}}F.formAssociated=!0,A([a],F.prototype,"autocomplete",2),A([a({mode:"boolean"})],F.prototype,"autofocus",2),A([k],F.prototype,"defaultSlottedNodes",2),A([a],F.prototype,"dirname",2),A([a({mode:"boolean"})],F.prototype,"disabled",2),A([a({attribute:"form"})],F.prototype,"formAttribute",2),A([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),A([a],F.prototype,"list",2),A([a({converter:st})],F.prototype,"maxlength",2),A([a({converter:st})],F.prototype,"minlength",2),A([a({mode:"boolean"})],F.prototype,"multiple",2),A([a],F.prototype,"name",2),A([a],F.prototype,"pattern",2),A([a],F.prototype,"placeholder",2),A([a({attribute:"readonly",mode:"boolean"})],F.prototype,"readOnly",2),A([a({mode:"boolean"})],F.prototype,"required",2),A([a({converter:st})],F.prototype,"size",2),A([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],F.prototype,"spellcheck",2),A([a],F.prototype,"type",2),A([k],F.prototype,"controlLabel",2);class us extends F{appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}A([a],us.prototype,"appearance",2),A([a({attribute:"control-size"})],us.prototype,"controlSize",2),Rt(us,Vt);const Fp=l`
508
508
  ${w("block")}
509
509
 
510
- :host{font-family:${$};font-size:${A};font-weight:${M};line-height:${D};max-width:400px}.label{display:flex;color:${B};padding-bottom:${ic};flex-shrink:0;padding-inline-end:${Qt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${O};border:${U} solid ${be};border-bottom-color:${fe};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${ht};padding:0 ${Nt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Ma}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Wo};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${nc};transition-delay:${no}}.control{width:100%;height:100%;box-sizing:border-box;color:${B};border-radius:${T};background:${kt};font-family:${$};font-weight:${M};font-size:${A};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${da}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${rt};font-size:${Ae}}:host ::slotted([slot='start']){padding-right:${ht}}:host ::slotted([slot='end']){padding-left:${ht};gap:${Qt}}:host(:hover) .root{border-color:${Go};border-bottom-color:${Je}}:host(:active) .root{border-color:${Us}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Rr};transition-delay:${ao}}:host(:focus-within:active) .root:after{border-bottom-color:${fr}}:host(${R}:focus-within) .root{border:${U} solid ${be}}:host(:focus-within) .control{color:${B}}:host([disabled]) .root{background:${kt};border:${U} solid ${_t}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${H}}::selection{color:${Ye};background-color:${Sa}}:host(${_}) .control{font-size:${q};font-weight:${M};line-height:${ot}}:host(${_}) .root{height:24px;gap:${ht};padding:0 ${Zt}}:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){font-size:${dt}}:host(${S}) .control{font-size:${dt};font-weight:${M};line-height:${xt}}:host(${S}) .root{height:40px;gap:${Jt};padding:0 ${ut}}:host(${S}) ::slotted([slot='start']),:host(${S}) ::slotted([slot='end']){font-size:${Xo}}:host(${qe}) .root{background:${kt};border:0;border-radius:0;border-bottom:${U} solid ${fe}}:host(${qe}:hover) .root{border-bottom-color:${Je}}:host(${qe}:active) .root{border-bottom-color:${to}}:host(${qe}:focus-within) .root{border:0;border-bottom-color:${to}}:host(${qe}[disabled]) .root{border-bottom-color:${_t}}:host(${Ao}) .root,:host(${Fo}) .root{border:${U} solid ${nt};box-shadow:${Dr}}:host(${Ao}) .root{background:${O}}:host(${Fo}) .root{background:${js}}:host(${Ao}:hover) .root,:host(${Fo}:hover) .root{border-color:${br}}:host(${Ao}:active) .root,:host(${Fo}:active) .root{border-color:${br};background:${js}}`;function Ap(o={}){return f`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${Ft("controlLabel")}><slot ${pt({property:"defaultSlottedNodes",filter:Qn})}></slot></label><div class="root" part="root">${Rt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${Ft("control")} />${se(o)}</div></template>`}const Fp=Ap(),_p=I.compose({name:`${p.prefix}-text-input`,template:Fp,styles:Tp,shadowOptions:{delegatesFocus:!0}});_p.define(p.registry);var Op=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,Vt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Mp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Op(t,e,i),i};class Pt extends x{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}sizeChanged(t,e){t&&c(this.elementInternals,`size-${t}`,!1),e&&c(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}weightChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}alignChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":c(this.elementInternals,e,!!this[e]);break}}}Vt([a({mode:"boolean"})],Pt.prototype,"nowrap",2),Vt([a({mode:"boolean"})],Pt.prototype,"truncate",2),Vt([a({mode:"boolean"})],Pt.prototype,"italic",2),Vt([a({mode:"boolean"})],Pt.prototype,"underline",2),Vt([a({mode:"boolean"})],Pt.prototype,"strikethrough",2),Vt([a({mode:"boolean"})],Pt.prototype,"block",2),Vt([a],Pt.prototype,"size",2),Vt([a],Pt.prototype,"font",2),Vt([a],Pt.prototype,"weight",2),Vt([a],Pt.prototype,"align",2);const dn=l.partial`:is([state--nowrap], :state(nowrap))`,hn=l.partial`:is([state--truncate], :state(truncate))`,un=l.partial`:is([state--underline], :state(underline))`,pn=l.partial`:is([state--strikethrough], :state(strikethrough))`,Np=l`
510
+ :host{font-family:${$};font-size:${T};font-weight:${M};line-height:${D};max-width:400px}.label{display:flex;color:${z};padding-bottom:${nc};flex-shrink:0;padding-inline-end:${Yt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${O};border:${U} solid ${fe};border-bottom-color:${ge};border-radius:${B};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${ht};padding:0 ${Nt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Ea}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${B});border-radius:0 0 ${B} ${B};border-bottom:2px solid ${Xo};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${lc};transition-delay:${no}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${B};background:${kt};font-family:${$};font-weight:${M};font-size:${T};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ua}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${rt};font-size:${Te}}:host ::slotted([slot='start']){padding-right:${ht}}:host ::slotted([slot='end']){padding-left:${ht};gap:${Yt}}:host(:hover) .root{border-color:${Wo};border-bottom-color:${Je}}:host(:active) .root{border-color:${Ys}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Gr};transition-delay:${ao}}:host(:focus-within:active) .root:after{border-bottom-color:${mr}}:host(${R}:focus-within) .root{border:${U} solid ${fe}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${kt};border:${U} solid ${_t}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${H}}::selection{color:${Ye};background-color:${Pa}}:host(${_}) .control{font-size:${q};font-weight:${M};line-height:${ot}}:host(${_}) .root{height:24px;gap:${ht};padding:0 ${Qt}}:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){font-size:${dt}}:host(${S}) .control{font-size:${dt};font-weight:${M};line-height:${xt}}:host(${S}) .root{height:40px;gap:${Zt};padding:0 ${ut}}:host(${S}) ::slotted([slot='start']),:host(${S}) ::slotted([slot='end']){font-size:${Uo}}:host(${qe}) .root{background:${kt};border:0;border-radius:0;border-bottom:${U} solid ${ge}}:host(${qe}:hover) .root{border-bottom-color:${Je}}:host(${qe}:active) .root{border-bottom-color:${to}}:host(${qe}:focus-within) .root{border:0;border-bottom-color:${to}}:host(${qe}[disabled]) .root{border-bottom-color:${_t}}:host(${Fo}) .root,:host(${_o}) .root{border:${U} solid ${nt};box-shadow:${jr}}:host(${Fo}) .root{background:${O}}:host(${_o}) .root{background:${qs}}:host(${Fo}:hover) .root,:host(${_o}:hover) .root{border-color:${$r}}:host(${Fo}:active) .root,:host(${_o}:active) .root{border-color:${$r};background:${qs}}`;function _p(o={}){return f`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${Ft("controlLabel")}><slot ${pt({property:"defaultSlottedNodes",filter:Jn})}></slot></label><div class="root" part="root">${jt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${Ft("control")} />${oe(o)}</div></template>`}const Op=_p(),Mp=us.compose({name:`${p.prefix}-text-input`,template:Op,styles:Fp,shadowOptions:{delegatesFocus:!0}});Mp.define(p.registry);var Np=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Dt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ep(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Np(t,e,i),i};class Pt extends x{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}sizeChanged(t,e){t&&c(this.elementInternals,`size-${t}`,!1),e&&c(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}weightChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}alignChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":c(this.elementInternals,e,!!this[e]);break}}}Dt([a({mode:"boolean"})],Pt.prototype,"nowrap",2),Dt([a({mode:"boolean"})],Pt.prototype,"truncate",2),Dt([a({mode:"boolean"})],Pt.prototype,"italic",2),Dt([a({mode:"boolean"})],Pt.prototype,"underline",2),Dt([a({mode:"boolean"})],Pt.prototype,"strikethrough",2),Dt([a({mode:"boolean"})],Pt.prototype,"block",2),Dt([a],Pt.prototype,"size",2),Dt([a],Pt.prototype,"font",2),Dt([a],Pt.prototype,"weight",2),Dt([a],Pt.prototype,"align",2);const un=l.partial`:is([state--nowrap], :state(nowrap))`,pn=l.partial`:is([state--truncate], :state(truncate))`,gn=l.partial`:is([state--underline], :state(underline))`,fn=l.partial`:is([state--strikethrough], :state(strikethrough))`,Lp=l`
511
511
  ${w("inline")}
512
512
 
513
- :host{contain:content;font-family:${$};font-size:${A};line-height:${D};font-weight:${M};text-align:start}:host(${dn}),:host(${dn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${hn}),:host(${hn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${un}){text-decoration-line:underline}:host(${pn}){text-decoration-line:line-through}:host(${un}${pn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${oo};line-height:${Ko}}:host(:is([state--size-200],:state(size-200))){font-size:${q};line-height:${ot}}:host(:is([state--size-400],:state(size-400))){font-size:${dt};line-height:${xt}}:host(:is([state--size-500],:state(size-500))){font-size:${Ae};line-height:${Yo}}:host(:is([state--size-600],:state(size-600))){font-size:${Xo};line-height:${Mr}}:host(:is([state--size-700],:state(size-700))){font-size:${Ar};line-height:${Nr}}:host(:is([state--size-800],:state(size-800))){font-size:${Fr};line-height:${Er}}:host(:is([state--size-900],:state(size-900))){font-size:${_r};line-height:${Lr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${Or};line-height:${Hr}}:host(:is([state--monospace],:state(monospace))){font-family:${Yl}}:host(:is([state--numeric],:state(numeric))){font-family:${Ql}}:host(:is([state--medium],:state(medium))){font-weight:${Zl}}:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--bold],:state(bold))){font-weight:${Uo}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Ep=f`<slot></slot>`,Lp=Pt.compose({name:`${p.prefix}-text`,template:Ep,styles:Np});Lp.define(p.registry);var Hp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,gn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Hp(t,e,i),i};class gi extends te{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,c(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}gn([a({mode:"boolean"})],gi.prototype,"pressed",2),gn([a({mode:"boolean"})],gi.prototype,"mixed",2);const Vp=l`
514
- ${os}
513
+ :host{contain:content;font-family:${$};font-size:${T};line-height:${D};font-weight:${M};text-align:start}:host(${un}),:host(${un}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${pn}),:host(${pn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${gn}){text-decoration-line:underline}:host(${fn}){text-decoration-line:line-through}:host(${gn}${fn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${oo};line-height:${Yo}}:host(:is([state--size-200],:state(size-200))){font-size:${q};line-height:${ot}}:host(:is([state--size-400],:state(size-400))){font-size:${dt};line-height:${xt}}:host(:is([state--size-500],:state(size-500))){font-size:${Te};line-height:${Qo}}:host(:is([state--size-600],:state(size-600))){font-size:${Uo};line-height:${Er}}:host(:is([state--size-700],:state(size-700))){font-size:${_r};line-height:${Lr}}:host(:is([state--size-800],:state(size-800))){font-size:${Or};line-height:${Hr}}:host(:is([state--size-900],:state(size-900))){font-size:${Mr};line-height:${Dr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${Nr};line-height:${Vr}}:host(:is([state--monospace],:state(monospace))){font-family:${Zl}}:host(:is([state--numeric],:state(numeric))){font-family:${Jl}}:host(:is([state--medium],:state(medium))){font-weight:${tc}}:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--bold],:state(bold))){font-weight:${Ko}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Hp=f`<slot></slot>`,Dp=Pt.compose({name:`${p.prefix}-text`,template:Hp,styles:Lp});Dp.define(p.registry);var Vp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,bn=(o,t,e,s)=>{for(var i=s>1?void 0:s?jp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Vp(t,e,i),i};class mi extends Jt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,c(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}bn([a({mode:"boolean"})],mi.prototype,"pressed",2),bn([a({mode:"boolean"})],mi.prototype,"mixed",2);const Rp=l`
514
+ ${ss}
515
515
 
516
- :host(${z}){border-color:${be};background-color:${dr};color:${B};border-width:${U}}:host(${z}:hover){border-color:${Go};background-color:${Ds}}:host(${z}:active){border-color:${Us};background-color:${Vs}}:host(${z}${it}){border-color:transparent;background-color:${Ba};color:${Yt}}:host(${z}${it}:hover){background-color:${hr}}:host(${z}${it}:active){background-color:${ur}}:host(${z}${C}){border-color:transparent;background-color:${Pa};color:${na}}:host(${z}${C}:hover){background-color:${Rs};color:${Ho}}:host(${z}${C}:active){background-color:${qo};color:${Do}}:host(${z}${R}),:host(${z}${X}){background-color:${za}}:host(${z}${R}:hover),:host(${z}${X}:hover){background-color:${qs}}:host(${z}${R}:active),:host(${z}${X}:active){background-color:${Gs}}:host(${z}${X}){border-color:transparent;color:${aa}}:host(${z}${X}:hover){color:${Vo}}:host(${z}${X}:active){color:${jo}}`.withBehaviors(Z(l`
517
- :host(${z}),:host(${z}${it}),:host(${z}${C}),:host(${z}${R}),:host(${z}${X}){background:SelectedItem;color:SelectedItemText}`)),jp=ni(),Rp=gi.compose({name:`${p.prefix}-toggle-button`,template:jp,styles:Vp});Rp.define(p.registry);
516
+ :host(${P}){border-color:${fe};background-color:${ur};color:${z};border-width:${U}}:host(${P}:hover){border-color:${Wo};background-color:${js}}:host(${P}:active){border-color:${Ys};background-color:${Rs}}:host(${P}${it}){border-color:transparent;background-color:${Aa};color:${Kt}}:host(${P}${it}:hover){background-color:${pr}}:host(${P}${it}:active){background-color:${gr}}:host(${P}${C}){border-color:transparent;background-color:${Ba};color:${la}}:host(${P}${C}:hover){background-color:${Gs};color:${Do}}:host(${P}${C}:active){background-color:${Go};color:${Vo}}:host(${P}${R}),:host(${P}${X}){background-color:${Ta}}:host(${P}${R}:hover),:host(${P}${X}:hover){background-color:${Ws}}:host(${P}${R}:active),:host(${P}${X}:active){background-color:${Xs}}:host(${P}${X}){border-color:transparent;color:${ca}}:host(${P}${X}:hover){color:${jo}}:host(${P}${X}:active){color:${Ro}}`.withBehaviors(Z(l`
517
+ :host(${P}),:host(${P}${it}),:host(${P}${C}),:host(${P}${R}),:host(${P}${X}){background:SelectedItem;color:SelectedItemText}`)),qp=li(),Gp=mi.compose({name:`${p.prefix}-toggle-button`,template:qp,styles:Rp});Gp.define(p.registry);