@fluentui/web-components 3.0.0-beta.91 → 3.0.0-beta.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Fo;const is="fast-kernel";try{if(document.currentScript)Fo=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Fo=o[o.length-1].getAttribute(is)}}catch{Fo="isolate"}let ht;switch(Fo){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=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)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Ne=o=>typeof o=="string",ss=()=>{};var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof jr<"u")jr.globalThis=jr;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const ns={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ns));const re=globalThis.FAST;if(re.getById===void 0){const o=Object.create(null);Reflect.defineProperty(re,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},ns))}re.error===void 0&&Object.assign(re,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ta=Object.freeze([]);function Rr(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function as(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ut(o){o.prototype.toJSON=ss}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ls=o=>o,Ba=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ls}):{createHTML:ls};let Mo=Object.freeze({createHTML(o){return Ba.createHTML(o)},protect(o,e,t,r){return r}});const Oa=Mo,pt=Object.freeze({get policy(){return Mo},setPolicy(o){if(Mo!==Oa)throw re.error(1201);Mo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Y=re.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class qr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class cs{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new qr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new qr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const Do=Object.freeze({unknown:void 0,coupled:1}),m=re.getById(ht.observable,()=>{const o=Y.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw re.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new cs(d))),f}const n=as();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const ot=l[this.callback];Ot(ot)&&ot.call(l,be,f),s(l).notify(this.name)}}}class h extends qr{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Do.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{r=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),ot=w===null?this.first:{};if(ot.propertySource=l,ot.propertyName=f,ot.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let rs;r=void 0,rs=w.propertySource[w.propertyName],r=this,l===rs&&(this.needsRefresh=!0)}w.next=ot}this.last=ot}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 l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Ne(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function Gr(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ds=re.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),At=Object.freeze({default:{index:0,length:0,get event(){return At.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ds.get()},setEvent(o){ds.set(o)}});class Vo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Aa extends Vo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Wr(o,e,t=m.isVolatileBinding(o)){return new Aa(o,e,t)}class hs extends Vo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ut(hs);function us(o,e){return new hs(o,e)}let ps;function bs(o){return o.map(e=>e instanceof ke?bs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ke{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ke?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(ps),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(bs(this.styles)),this}static setDefaultStrategy(e){ps=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ke(e):e instanceof ke?e:new ke([e])}}ke.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Xr=Rr(),Ur=Object.freeze({getForInstance:Xr.getForInstance,getByType:Xr.getByType,define(o){return Xr.register({type:o}),o}});function Kr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Yr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const s=r.setAttribute;r.setAttribute=(n,c)=>{s.call(r,n,c),n==="style"&&r.$cssBindings.forEach((h,d)=>Kr(d,h.controller,h.observer))}}const i=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:i})}connectedCallback(e){Kr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Kr(this,t.controller,t)}}Ur.define(Yr);const _a=`${Math.random().toString(36).substring(2,8)}`;let Ea=0;const gs=()=>`--v${_a}${++Ea}`;function fs(o,e){const t=[];let r="";const i=[],s=n=>{i.push(n)};for(let n=0,c=o.length-1;n<c;++n){r+=o[n];let h=e[n];Ot(h)?h=new Yr(Wr(h),gs()).createCSS(s):h instanceof Vo?h=new Yr(h,gs()).createCSS(s):Ur.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ke||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const u=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e),i=new ke(t);return r.length?i.withBehaviors(...r):i};class ms{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Ne(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new ke(r))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Ur.define(ms),u.partial=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e);return new ms(t,r)};const vs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ks=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ws=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Cs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Fe=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return vs.test(o)},isContentBindingEndMarker(o){return $s.test(o)},isRepeatViewStartMarker(o){return ys.test(o)},isRepeatViewEndMarker(o){return xs.test(o)},isElementBoundaryStartMarker(o){return Cs(o)&&ks.test(o.data.trim())},isElementBoundaryEndMarker(o){return Cs(o)&&ws.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Ps(vs,o)},parseContentBindingEndMarker(o){return Ps($s,o)},parseRepeatStartMarker(o){return Ss(ys,o)},parseRepeatEndMarker(o){return Ss(xs,o)},parseElementBoundaryStartMarker(o){return Is(ks,o.trim())},parseElementBoundaryEndMarker(o){return Is(ws,o)}});function Ss(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ps(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ho=Symbol.for("fe-hydration");function Lo(o){return o[Ho]===Ho}const Qr=`fast-${Math.random().toString(36).substring(2,8)}`,jo=`${Qr}{`,so=`}${Qr}`,Na=so.length;let Fa=0;const no=()=>`${Qr}-${++Fa}`,zs=Object.freeze({interpolation:o=>`${jo}${o}${so}`,attribute:o=>`${no()}="${jo}${o}${so}"`,comment:o=>`<!--${jo}${o}${so}-->`}),Ro=Object.freeze({parse(o,e){const t=o.split(jo);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(so);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Na)}h!==""&&r.push(h)}return r}}),Zr=Rr(),Be=Object.freeze({getForInstance:Zr.getForInstance,getByType:Zr.getByType,define(o,e){return e=e||{},e.type=o,Zr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=K.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=K.event;break;default:o.targetAspect=e,o.aspectType=K.attribute;break}}});class Jr{constructor(e){this.options=e}createHTML(e){return zs.attribute(e(this))}createBehavior(){return this}}ut(Jr);class Ts extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function ei(o){return o.nodeType===Node.COMMENT_NODE}function Bs(o){return o.nodeType===Node.TEXT_NODE}function Os(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ei(e)||Bs(e)?e.data.length:e.childNodes.length),t}function Ma(o){return o instanceof DocumentFragment&&"mode"in o}function Da(o,e,t){const r=Os(o,e),i=r.commonAncestorContainer,s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Va(h,t,n);break}case Node.COMMENT_NODE:{Ha(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Va(o,e,t){const r=Fe.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new Ts(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);qo(e[i],o,t)}o.removeAttribute(Fe.attributeMarkerName)}}function Ha(o,e,t,r,i){if(Fe.isElementBoundaryStartMarker(o)){La(o,e);return}if(Fe.isContentBindingStartMarker(o.data)){const s=Fe.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ei(l)){const w=Fe.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ma(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Bs(d[0]))qo(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);qo(h,w,r)}}}function La(o,e){const t=Fe.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(ei(r)){const i=Fe.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function qo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var As;function ti(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return At.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Go extends _s{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Do.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let s=0,n=i.length;s<n;++s){const c=i[s].createBehavior();c.bind(this),r[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=r.length;i<s;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){ti(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}ut(Go),m.defineProperty(Go.prototype,"index"),m.defineProperty(Go.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ja extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Ra extends _s{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[As]=Ho,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Do.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=_t.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){var r,i;if(this.hydrationStage!==_t.hydrated&&(this._hydrationStage=_t.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Da(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ts){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&qo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ja(`HydrationView was unable to successfully target bindings inside "${(i=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,d,Os(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=_t.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}As=Ho,ut(Ra);function qa(o){return o.create!==void 0}function Ga(o,e,t,r){if(t==null&&(t=""),qa(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Lo(r)&&Lo(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==_t.hydrated){const s=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(s.first,s.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Wa(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Xa={[K.attribute]:pt.setAttribute,[K.booleanAttribute]:pt.setBooleanAttribute,[K.property]:(o,e,t)=>o[e]=t,[K.content]:Ga,[K.tokenList]:Wa,[K.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=K.content}createHTML(e){return zs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Xa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw re.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],i=Lo(e)&&e.hydrationStage&&e.hydrationStage!==_t.hydrated;switch(this.aspectType){case K.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:e.onUnbind(this);default:const s=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(s.target=r,s.controller=e,i&&(this.aspectType===K.attribute||this.aspectType===K.booleanAttribute)){s.bind(e);break}this.updateTarget(r,this.targetAspect,s.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){At.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);At.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Be.define(Et,{aspected:!0});const Es=(o,e)=>`${o}.${e}`,Ns={},Me={index:0,node:null};function Fs(o){o.startsWith("fast-")||re.warn(1204,{name:o})}const Ua=new Proxy(document.createElement("div"),{get(o,e){Fs(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Fs(e),Reflect.set(o,e,t)}});class Ka{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:no(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Ns[t];if(!s){const n=`_${t}`;Ns[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[r]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Ua;for(const i of this.nodeIds)r[i];return new Go(t,this.factories,r)}}function Ms(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Ro.parse(f,c);let be=null;w===null?s&&(be=new Et(us(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=oi.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,r,i,t.tagName))}}function Ya(o,e,t,r,i){const s=Ro.parse(e.textContent,o.directives);if(s===null)return Me.node=e.nextSibling,Me.index=i+1,Me;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Es(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ne(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Me.index=i+1,Me.node=c.nextSibling,Me}function Ds(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=Qa(o,t,i,r);i=s.node,r=s.index}}function Qa(o,e,t,r){const i=Es(e,r);switch(t.nodeType){case 1:Ms(o,e,t,i,r),Ds(o,t,i);break;case 3:return Ya(o,t,e,i,r);case 8:const s=Ro.parse(t.data,o.directives);s!==null&&o.addFactory(oi.aggregate(s),e,i,r,null);break}return Me.index=r+1,Me.node=t.nextSibling,Me}function Za(o,e){return o&&o.nodeType==8&&Ro.parse(o.data,e)!==null}const Vs="TEMPLATE",oi={compile(o,e,t=pt.policy){let r;if(Ne(o)){r=document.createElement(Vs),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Vs&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ka(i,e,t);return Ms(s,"",r,"h",0,!0),(Za(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ds(s,i,"r"),Me.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=pt.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>Ne(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Wr(c,i??e,r));return Be.assignAspect(h,t),h}},Ja=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,el=Object.create(null);class bt{constructor(e,t=el){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}bt.empty=new bt(""),Be.define(bt);function tl(o,e,t,r=Be.getForInstance(o)){if(r.aspected){const i=Ja.exec(e);i!==null&&Be.assignAspect(o,i[2])}return o.createHTML(t)}class Vr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=oi.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new bt(Ne(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw re.error(1208);if(this.policy)throw re.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=no();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(i+=d,Ot(l))l=new Et(Wr(l));else if(l instanceof Vo)l=new Et(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Et(us(()=>w))}i+=tl(l,d,n,f)}return new Vr(i+e[e.length-1],s,r)}}ut(Vr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Vr.create(o,e);throw re.error(1206)};b.partial=o=>new bt(o);class Hs extends Jr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Hs);const V=o=>new Hs(o),ol=o=>o.nodeType===1,gt=o=>o?e=>e.nodeType===1&&e.matches(o):ol;class Ls extends Jr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Ta),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const js="slotchange";class Rs extends Ls{observe(e){e.addEventListener(js,this)}disconnect(e){e.removeEventListener(js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Rs);function H(o){return Ne(o)&&(o={property:o}),new Rs(o)}class qs extends Ls{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,r)=>{const i=r.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=ss,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Be.define(qs);function ri(o){return Ne(o)&&(o={property:o}),new qs(o)}const Gs="boolean",Ws="reflect",Wo=Object.freeze({locate:as()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const Q={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class Hr{constructor(e,t,r=t.toLowerCase(),i=Ws,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===Gs&&s===void 0&&(this.converter=rl)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||Y.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ws:const s=this.converter;pt.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Gs:pt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Wo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Ne(d)?r.push(new Hr(e,d)):r.push(new Hr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),Wo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Us={mode:"open"},Ks={},Ys=new Set,Xo=re.getById(ht.elementRegistry,()=>Rr());class Ee{constructor(e,t=e.definition){var r;this.platformDefined=!1,Ne(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=Hr.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=ke.normalize(t.styles),Xo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ys.has(e)||Xo.getByType(e)?new Ee(class extends e{},t):new Ee(e,t)}static registerBaseType(e){Ys.add(e)}}Ee.getByType=Xo.getByType,Ee.getForInstance=Xo.getForInstance;class il extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(i=>this.observedNodes.has(i.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,i=!1;return{source:o,context:At.default,targets:t,get isBound(){return i},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:no(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:no(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:pt.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),i&&s.bind(this)},onUnbind(s){r===null&&(r=[]),r.push(s)},connectedCallback(s){i||(i=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){i&&(i=!1,r!==null&&r.forEach(n=>n.unbind(this)))}}}});const sl={bubbles:!0,composed:!0,cancelable:!0},Uo="isConnected",Qs=new WeakMap;function ao(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;class Nt extends cs{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&Qs.set(e,s))}const i=m.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Uo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:At.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Uo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,s=r.length;i<s;++i){const n=r[i];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Uo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},sl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=ao(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Do.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Ee.getForInstance(e);if(r===void 0)throw re.error(1401);return e.$fastController=new Zs(e,r)}static setStrategy(e){Zs=e}}ut(Nt),Nt.setStrategy(Nt);function Ko(o){var e;return"adoptedStyleSheets"in o?o:(e=ao(o))!==null&&e!==void 0?e:o.getRootNode()}class Lr{constructor(e){const t=Lr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){en(Ko(e),this.sheets)}removeStylesFrom(e){tn(Ko(e),this.sheets)}}Lr.styleSheetCache=new Map;let nl=0;const al=()=>`fast-${++nl}`;function Js(o){return o===document?document.body:o}class ll{constructor(e){this.styles=e,this.styleClass=al()}addStylesTo(e){e=Js(Ko(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=r,e.append(s)}}removeStylesFrom(e){e=Js(Ko(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let en=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},tn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ke.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),en=(o,e)=>{o.adoptedStyleSheets.push(...e)},tn=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ke.setDefaultStrategy(Lr)}else ke.setDefaultStrategy(ll);const on="defer-hydration",rn="needs-hydration";class Bt extends Nt{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(rn)!==null),this.source.hasAttribute(on)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,i=(e=ao(r))!==null&&e!==void 0?e:r;if(this.template)if(Lo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Fe.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Fe.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,r),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(rn),this.needsInitialization=this.needsHydration=!1,m.notify(this,Uo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Nt.setStrategy(Bt)}}Bt.hydrationObserver=new il(Bt.hydrationObserverHandler);function sn(o){const e=class extends o{constructor(){super(),Nt.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Ee.registerBaseType(e),e}function cl(o,e){return Ot(o)?Ee.compose(o,e):Ee.compose(this,o)}function dl(o,e){return Ot(o)?Ee.compose(o,e).define().type:Ee.compose(this,o).define().type}function hl(o){return sn(o)}const $=Object.assign(sn(HTMLElement),{from:hl,define:dl,compose:cl});var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,L=(o,e,t,r)=>{for(var i=r>1?void 0:r?pl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ul(e,t,i),i};class j{}L([a({attribute:"aria-atomic"})],j.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],j.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],j.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],j.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],j.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],j.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],j.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],j.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],j.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],j.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],j.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],j.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],j.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],j.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],j.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],j.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],j.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],j.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],j.prototype,"ariaRoledescription",2);const ii={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},Se={horizontal:"horizontal",vertical:"vertical"};function bl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function si(...o){return o.every(e=>e instanceof HTMLElement)}const lo="ArrowDown",co="ArrowLeft",ho="ArrowRight",uo="ArrowUp",po="End",bo="Enter",gl="Escape",go="Home",Yo=" ",fl="Tab";var De;(function(o){o.ltr="ltr",o.rtl="rtl"})(De||(De={}));function ml(o,e,t){return t<o?e:t>e?o:t}function ni(o,e,t){return Math.min(Math.max(t,o),e)}let vl=0;function Ft(o=""){return`${o}${vl++}`}const ai=o=>o.closest("[dir]")?.dir==="rtl"?De.rtl:De.ltr;function he(o){return o?typeof o=="string"?new bt(o):"inline"in o?o.inline():o:bt.empty}const li=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,$l=":host([hidden]){display:none}";function k(o){return`${$l}:host{display:${o}}`}class yl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class No extends yl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new No(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(r),t=s):!s&&t&&(e.removeStyles(r),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const Z=No.with(window.matchMedia("(forced-colors)"));No.with(window.matchMedia("(prefers-color-scheme: dark)")),No.with(window.matchMedia("(prefers-color-scheme: light)"));const nn=CSS.supports("anchor-name: --a"),xl="anchor"in HTMLElement.prototype,an=CSS.supports("selector(:state(g))");class Ke{}function rt(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ye(o,...e){const t=Wo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Wo.locate(r).forEach(s=>t.push(s))})}var kl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Qo=(o,e,t,r)=>{for(var i=r>1?void 0:r?wl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kl(e,t,i),i};class Qe extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ft("accordion-")}}Qo([a({attribute:"heading-level",mode:"fromView",converter:Q})],Qe.prototype,"headinglevel",2),Qo([a({mode:"boolean"})],Qe.prototype,"expanded",2),Qo([a({mode:"boolean"})],Qe.prototype,"disabled",2),Qo([a],Qe.prototype,"id",2);var Cl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,ci=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cl(e,t,i),i};class fo extends Qe{constructor(){super(...arguments),this.block=!1}}ci([a],fo.prototype,"size",2),ci([a({attribute:"marker-position"})],fo.prototype,"markerPosition",2),ci([a({mode:"boolean"})],fo.prototype,"block",2),Ye(fo,Ke);const P="var(--colorNeutralForeground1)",di="var(--colorNeutralForeground1Hover)",Il="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Mt="var(--colorNeutralForeground2Hover)",Dt="var(--colorNeutralForeground2Pressed)",Zo="var(--colorNeutralForeground2Selected)",Jo="var(--colorNeutralForeground2BrandHover)",er="var(--colorNeutralForeground2BrandPressed)",Pl="var(--colorNeutralForeground2BrandSelected)",ie="var(--colorNeutralForeground3)",zl="var(--colorNeutralForeground3Hover)",Tl="var(--colorNeutralForeground3Pressed)",Bl="var(--colorNeutralForeground3Selected)",hi="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Ol="var(--colorBrandForegroundLink)",Al="var(--colorBrandForegroundLinkHover)",_l="var(--colorBrandForegroundLinkPressed)",El="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Fl="var(--colorNeutralForeground2LinkPressed)",ln="var(--colorCompoundBrandForeground1Hover)",Ml="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",ft="var(--colorNeutralForegroundInverted)",Dl="var(--colorNeutralForegroundInvertedHover)",Vl="var(--colorNeutralForegroundInvertedPressed)",cn="var(--colorNeutralForegroundStaticInverted)",ui="var(--colorBrandForeground1)",Hl="var(--colorBrandForeground2)",Ll="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",tr="var(--colorNeutralBackground1Hover)",or="var(--colorNeutralBackground1Pressed)",dn="var(--colorNeutralBackground1Selected)",mo="var(--colorNeutralBackground3)",jl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",rr="var(--colorNeutralBackground6)",hn="var(--colorNeutralBackgroundInverted)",un="var(--colorSubtleBackground)",vo="var(--colorSubtleBackgroundHover)",mt="var(--colorSubtleBackgroundPressed)",pn="var(--colorSubtleBackgroundSelected)",ql="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",ge="var(--colorTransparentBackground)",ir="var(--colorTransparentBackgroundHover)",sr="var(--colorTransparentBackgroundPressed)",bn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",pi="var(--colorBackgroundOverlay)",bi="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Xl="var(--colorBrandBackgroundSelected)",vt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",Ul="var(--colorBrandBackground2)",He="var(--colorNeutralStrokeAccessible)",$t="var(--colorNeutralStrokeAccessibleHover)",yt="var(--colorNeutralStrokeAccessiblePressed)",Le="var(--colorNeutralStroke1)",Lt="var(--colorNeutralStroke1Hover)",$o="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",vn="var(--colorBrandStroke1)",gi="var(--colorBrandStroke2)",xt="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",$n="var(--colorCompoundBrandStrokePressed)",we="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",fi="var(--colorTransparentStrokeInteractive)",mi="var(--colorStrokeFocus1)",Ce="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",yn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",xn="var(--colorPaletteRedBackground3)",kn="var(--colorPaletteRedBorder1)",vi="var(--colorPaletteRedBorder2)",wn="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Cn="var(--colorPaletteRedForeground3)",Sn="var(--colorPaletteGreenBackground1)",In="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",rc="var(--colorPaletteGreenBorder2)",ic="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",Pn="var(--colorPaletteDarkOrangeBackground1)",zn="var(--colorPaletteDarkOrangeBackground3)",Tn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",Bn="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",$i="var(--colorPaletteYellowForeground2)",On="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBackground3)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Vc="var(--colorPaletteLightTealBackground2)",Hc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Gc="var(--colorPaletteMinkBackground2)",Wc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",rd="var(--colorPalettePumpkinBackground2)",id="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",nr="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",An="var(--borderRadiusLarge)",_n="var(--borderRadiusXLarge)",fe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",F="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",ar="var(--fontSizeBase600)",En="var(--fontSizeHero700)",Nn="var(--fontSizeHero800)",Fn="var(--fontSizeHero900)",Mn="var(--fontSizeHero1000)",_="var(--fontWeightRegular)",md="var(--fontWeightMedium)",M="var(--fontWeightSemibold)",lr="var(--fontWeightBold)",cr="var(--lineHeightBase100)",X="var(--lineHeightBase200)",O="var(--lineHeightBase300)",me="var(--lineHeightBase400)",dr="var(--lineHeightBase500)",Dn="var(--lineHeightBase600)",Vn="var(--lineHeightHero700)",Hn="var(--lineHeightHero800)",Ln="var(--lineHeightHero900)",jn="var(--lineHeightHero1000)",yi="var(--shadow2)",hr="var(--shadow4)",vd="var(--shadow8)",xi="var(--shadow16)",$d="var(--shadow28)",Rn="var(--shadow64)",T="var(--strokeWidthThin)",ve="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",ki="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",pe="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",je="var(--spacingHorizontalS)",ne="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",wi="var(--spacingHorizontalXXL)",Ci="var(--spacingVerticalNone)",Rt="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",Re="var(--spacingVerticalSNudge)",q="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",ur="var(--spacingVerticalL)",kt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",Si="var(--durationUltraFast)",pr="var(--durationFaster)",br="var(--durationNormal)",Ii="var(--durationGentle)",qn="var(--durationSlow)",Gn="var(--durationSlower)",gr="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",wt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Pi="var(--curveDecelerateMax)",Ct="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Wn="var(--curveEasyEaseMax)",fr="var(--curveEasyEase)",zi="var(--curveLinear)",Pd=u`
1
+ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Fo;const is="fast-kernel";try{if(document.currentScript)Fo=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Fo=o[o.length-1].getAttribute(is)}}catch{Fo="isolate"}let ht;switch(Fo){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=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)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Fe=o=>typeof o=="string",ss=()=>{};var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof jr<"u")jr.globalThis=jr;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const ns={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ns));const re=globalThis.FAST;if(re.getById===void 0){const o=Object.create(null);Reflect.defineProperty(re,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},ns))}re.error===void 0&&Object.assign(re,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ta=Object.freeze([]);function Rr(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function as(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ut(o){o.prototype.toJSON=ss}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ls=o=>o,Ba=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ls}):{createHTML:ls};let Mo=Object.freeze({createHTML(o){return Ba.createHTML(o)},protect(o,e,t,r){return r}});const Oa=Mo,pt=Object.freeze({get policy(){return Mo},setPolicy(o){if(Mo!==Oa)throw re.error(1201);Mo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Y=re.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class qr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class cs{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new qr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new qr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const Do=Object.freeze({unknown:void 0,coupled:1}),m=re.getById(ht.observable,()=>{const o=Y.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw re.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new cs(d))),f}const n=as();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const ot=l[this.callback];Ot(ot)&&ot.call(l,be,f),s(l).notify(this.name)}}}class h extends qr{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Do.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{r=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),ot=w===null?this.first:{};if(ot.propertySource=l,ot.propertyName=f,ot.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let rs;r=void 0,rs=w.propertySource[w.propertyName],r=this,l===rs&&(this.needsRefresh=!0)}w.next=ot}this.last=ot}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 l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Fe(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function Gr(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ds=re.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),At=Object.freeze({default:{index:0,length:0,get event(){return At.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ds.get()},setEvent(o){ds.set(o)}});class Vo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Aa extends Vo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Wr(o,e,t=m.isVolatileBinding(o)){return new Aa(o,e,t)}class hs extends Vo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ut(hs);function us(o,e){return new hs(o,e)}let ps;function bs(o){return o.map(e=>e instanceof ke?bs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ke{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ke?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(ps),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(bs(this.styles)),this}static setDefaultStrategy(e){ps=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ke(e):e instanceof ke?e:new ke([e])}}ke.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Xr=Rr(),Ur=Object.freeze({getForInstance:Xr.getForInstance,getByType:Xr.getByType,define(o){return Xr.register({type:o}),o}});function Kr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Yr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const s=r.setAttribute;r.setAttribute=(n,c)=>{s.call(r,n,c),n==="style"&&r.$cssBindings.forEach((h,d)=>Kr(d,h.controller,h.observer))}}const i=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:i})}connectedCallback(e){Kr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Kr(this,t.controller,t)}}Ur.define(Yr);const _a=`${Math.random().toString(36).substring(2,8)}`;let Ea=0;const gs=()=>`--v${_a}${++Ea}`;function fs(o,e){const t=[];let r="";const i=[],s=n=>{i.push(n)};for(let n=0,c=o.length-1;n<c;++n){r+=o[n];let h=e[n];Ot(h)?h=new Yr(Wr(h),gs()).createCSS(s):h instanceof Vo?h=new Yr(h,gs()).createCSS(s):Ur.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ke||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const u=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e),i=new ke(t);return r.length?i.withBehaviors(...r):i};class ms{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Fe(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new ke(r))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Ur.define(ms),u.partial=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e);return new ms(t,r)};const vs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ks=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ws=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Cs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Me=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return vs.test(o)},isContentBindingEndMarker(o){return $s.test(o)},isRepeatViewStartMarker(o){return ys.test(o)},isRepeatViewEndMarker(o){return xs.test(o)},isElementBoundaryStartMarker(o){return Cs(o)&&ks.test(o.data.trim())},isElementBoundaryEndMarker(o){return Cs(o)&&ws.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Ps(vs,o)},parseContentBindingEndMarker(o){return Ps($s,o)},parseRepeatStartMarker(o){return Ss(ys,o)},parseRepeatEndMarker(o){return Ss(xs,o)},parseElementBoundaryStartMarker(o){return Is(ks,o.trim())},parseElementBoundaryEndMarker(o){return Is(ws,o)}});function Ss(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ps(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ho=Symbol.for("fe-hydration");function Lo(o){return o[Ho]===Ho}const Qr=`fast-${Math.random().toString(36).substring(2,8)}`,jo=`${Qr}{`,so=`}${Qr}`,Na=so.length;let Fa=0;const no=()=>`${Qr}-${++Fa}`,zs=Object.freeze({interpolation:o=>`${jo}${o}${so}`,attribute:o=>`${no()}="${jo}${o}${so}"`,comment:o=>`<!--${jo}${o}${so}-->`}),Ro=Object.freeze({parse(o,e){const t=o.split(jo);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(so);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Na)}h!==""&&r.push(h)}return r}}),Zr=Rr(),Be=Object.freeze({getForInstance:Zr.getForInstance,getByType:Zr.getByType,define(o,e){return e=e||{},e.type=o,Zr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=K.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=K.event;break;default:o.targetAspect=e,o.aspectType=K.attribute;break}}});class Jr{constructor(e){this.options=e}createHTML(e){return zs.attribute(e(this))}createBehavior(){return this}}ut(Jr);class Ts extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function ei(o){return o.nodeType===Node.COMMENT_NODE}function Bs(o){return o.nodeType===Node.TEXT_NODE}function Os(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ei(e)||Bs(e)?e.data.length:e.childNodes.length),t}function Ma(o){return o instanceof DocumentFragment&&"mode"in o}function Da(o,e,t){const r=Os(o,e),i=r.commonAncestorContainer,s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Va(h,t,n);break}case Node.COMMENT_NODE:{Ha(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Va(o,e,t){const r=Me.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new Ts(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);qo(e[i],o,t)}o.removeAttribute(Me.attributeMarkerName)}}function Ha(o,e,t,r,i){if(Me.isElementBoundaryStartMarker(o)){La(o,e);return}if(Me.isContentBindingStartMarker(o.data)){const s=Me.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ei(l)){const w=Me.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ma(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Bs(d[0]))qo(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);qo(h,w,r)}}}function La(o,e){const t=Me.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(ei(r)){const i=Me.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function qo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var As;function ti(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return At.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Go extends _s{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Do.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let s=0,n=i.length;s<n;++s){const c=i[s].createBehavior();c.bind(this),r[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=r.length;i<s;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){ti(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}ut(Go),m.defineProperty(Go.prototype,"index"),m.defineProperty(Go.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ja extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Ra extends _s{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[As]=Ho,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Do.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=_t.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){var r,i;if(this.hydrationStage!==_t.hydrated&&(this._hydrationStage=_t.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Da(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ts){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&qo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ja(`HydrationView was unable to successfully target bindings inside "${(i=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,d,Os(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=_t.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}As=Ho,ut(Ra);function qa(o){return o.create!==void 0}function Ga(o,e,t,r){if(t==null&&(t=""),qa(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Lo(r)&&Lo(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==_t.hydrated){const s=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(s.first,s.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Wa(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Xa={[K.attribute]:pt.setAttribute,[K.booleanAttribute]:pt.setBooleanAttribute,[K.property]:(o,e,t)=>o[e]=t,[K.content]:Ga,[K.tokenList]:Wa,[K.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=K.content}createHTML(e){return zs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Xa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw re.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],i=Lo(e)&&e.hydrationStage&&e.hydrationStage!==_t.hydrated;switch(this.aspectType){case K.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:e.onUnbind(this);default:const s=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(s.target=r,s.controller=e,i&&(this.aspectType===K.attribute||this.aspectType===K.booleanAttribute)){s.bind(e);break}this.updateTarget(r,this.targetAspect,s.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){At.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);At.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Be.define(Et,{aspected:!0});const Es=(o,e)=>`${o}.${e}`,Ns={},De={index:0,node:null};function Fs(o){o.startsWith("fast-")||re.warn(1204,{name:o})}const Ua=new Proxy(document.createElement("div"),{get(o,e){Fs(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Fs(e),Reflect.set(o,e,t)}});class Ka{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:no(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Ns[t];if(!s){const n=`_${t}`;Ns[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[r]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Ua;for(const i of this.nodeIds)r[i];return new Go(t,this.factories,r)}}function Ms(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Ro.parse(f,c);let be=null;w===null?s&&(be=new Et(us(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=oi.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,r,i,t.tagName))}}function Ya(o,e,t,r,i){const s=Ro.parse(e.textContent,o.directives);if(s===null)return De.node=e.nextSibling,De.index=i+1,De;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Es(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Fe(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return De.index=i+1,De.node=c.nextSibling,De}function Ds(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=Qa(o,t,i,r);i=s.node,r=s.index}}function Qa(o,e,t,r){const i=Es(e,r);switch(t.nodeType){case 1:Ms(o,e,t,i,r),Ds(o,t,i);break;case 3:return Ya(o,t,e,i,r);case 8:const s=Ro.parse(t.data,o.directives);s!==null&&o.addFactory(oi.aggregate(s),e,i,r,null);break}return De.index=r+1,De.node=t.nextSibling,De}function Za(o,e){return o&&o.nodeType==8&&Ro.parse(o.data,e)!==null}const Vs="TEMPLATE",oi={compile(o,e,t=pt.policy){let r;if(Fe(o)){r=document.createElement(Vs),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Vs&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ka(i,e,t);return Ms(s,"",r,"h",0,!0),(Za(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ds(s,i,"r"),De.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=pt.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>Fe(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Wr(c,i??e,r));return Be.assignAspect(h,t),h}},Ja=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,el=Object.create(null);class bt{constructor(e,t=el){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}bt.empty=new bt(""),Be.define(bt);function tl(o,e,t,r=Be.getForInstance(o)){if(r.aspected){const i=Ja.exec(e);i!==null&&Be.assignAspect(o,i[2])}return o.createHTML(t)}class Vr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=oi.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new bt(Fe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw re.error(1208);if(this.policy)throw re.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=no();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(i+=d,Ot(l))l=new Et(Wr(l));else if(l instanceof Vo)l=new Et(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Et(us(()=>w))}i+=tl(l,d,n,f)}return new Vr(i+e[e.length-1],s,r)}}ut(Vr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Vr.create(o,e);throw re.error(1206)};b.partial=o=>new bt(o);class Hs extends Jr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Hs);const V=o=>new Hs(o),ol=o=>o.nodeType===1,gt=o=>o?e=>e.nodeType===1&&e.matches(o):ol;class Ls extends Jr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Ta),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const js="slotchange";class Rs extends Ls{observe(e){e.addEventListener(js,this)}disconnect(e){e.removeEventListener(js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Rs);function H(o){return Fe(o)&&(o={property:o}),new Rs(o)}class qs extends Ls{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,r)=>{const i=r.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=ss,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Be.define(qs);function ri(o){return Fe(o)&&(o={property:o}),new qs(o)}const Gs="boolean",Ws="reflect",Wo=Object.freeze({locate:as()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const Q={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class Hr{constructor(e,t,r=t.toLowerCase(),i=Ws,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===Gs&&s===void 0&&(this.converter=rl)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||Y.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ws:const s=this.converter;pt.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Gs:pt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Wo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Fe(d)?r.push(new Hr(e,d)):r.push(new Hr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),Wo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Us={mode:"open"},Ks={},Ys=new Set,Xo=re.getById(ht.elementRegistry,()=>Rr());class Ne{constructor(e,t=e.definition){var r;this.platformDefined=!1,Fe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=Hr.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=ke.normalize(t.styles),Xo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ys.has(e)||Xo.getByType(e)?new Ne(class extends e{},t):new Ne(e,t)}static registerBaseType(e){Ys.add(e)}}Ne.getByType=Xo.getByType,Ne.getForInstance=Xo.getForInstance;class il extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(i=>this.observedNodes.has(i.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,i=!1;return{source:o,context:At.default,targets:t,get isBound(){return i},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:no(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:no(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:pt.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),i&&s.bind(this)},onUnbind(s){r===null&&(r=[]),r.push(s)},connectedCallback(s){i||(i=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){i&&(i=!1,r!==null&&r.forEach(n=>n.unbind(this)))}}}});const sl={bubbles:!0,composed:!0,cancelable:!0},Uo="isConnected",Qs=new WeakMap;function ao(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;class Nt extends cs{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&Qs.set(e,s))}const i=m.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Uo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:At.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Uo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,s=r.length;i<s;++i){const n=r[i];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Uo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},sl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=ao(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Do.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Ne.getForInstance(e);if(r===void 0)throw re.error(1401);return e.$fastController=new Zs(e,r)}static setStrategy(e){Zs=e}}ut(Nt),Nt.setStrategy(Nt);function Ko(o){var e;return"adoptedStyleSheets"in o?o:(e=ao(o))!==null&&e!==void 0?e:o.getRootNode()}class Lr{constructor(e){const t=Lr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){en(Ko(e),this.sheets)}removeStylesFrom(e){tn(Ko(e),this.sheets)}}Lr.styleSheetCache=new Map;let nl=0;const al=()=>`fast-${++nl}`;function Js(o){return o===document?document.body:o}class ll{constructor(e){this.styles=e,this.styleClass=al()}addStylesTo(e){e=Js(Ko(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=r,e.append(s)}}removeStylesFrom(e){e=Js(Ko(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let en=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},tn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ke.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),en=(o,e)=>{o.adoptedStyleSheets.push(...e)},tn=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ke.setDefaultStrategy(Lr)}else ke.setDefaultStrategy(ll);const on="defer-hydration",rn="needs-hydration";class Bt extends Nt{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(rn)!==null),this.source.hasAttribute(on)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,i=(e=ao(r))!==null&&e!==void 0?e:r;if(this.template)if(Lo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Me.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Me.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,r),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(rn),this.needsInitialization=this.needsHydration=!1,m.notify(this,Uo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Nt.setStrategy(Bt)}}Bt.hydrationObserver=new il(Bt.hydrationObserverHandler);function sn(o){const e=class extends o{constructor(){super(),Nt.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Ne.registerBaseType(e),e}function cl(o,e){return Ot(o)?Ne.compose(o,e):Ne.compose(this,o)}function dl(o,e){return Ot(o)?Ne.compose(o,e).define().type:Ne.compose(this,o).define().type}function hl(o){return sn(o)}const $=Object.assign(sn(HTMLElement),{from:hl,define:dl,compose:cl});var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,L=(o,e,t,r)=>{for(var i=r>1?void 0:r?pl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ul(e,t,i),i};class j{}L([a({attribute:"aria-atomic"})],j.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],j.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],j.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],j.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],j.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],j.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],j.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],j.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],j.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],j.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],j.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],j.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],j.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],j.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],j.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],j.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],j.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],j.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],j.prototype,"ariaRoledescription",2);const ii={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},Se={horizontal:"horizontal",vertical:"vertical"};function bl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function si(...o){return o.every(e=>e instanceof HTMLElement)}const lo="ArrowDown",co="ArrowLeft",ho="ArrowRight",uo="ArrowUp",po="End",bo="Enter",gl="Escape",go="Home",Yo=" ",fl="Tab";var Ve;(function(o){o.ltr="ltr",o.rtl="rtl"})(Ve||(Ve={}));function ml(o,e,t){return t<o?e:t>e?o:t}function ni(o,e,t){return Math.min(Math.max(t,o),e)}let vl=0;function Ft(o=""){return`${o}${vl++}`}const ai=o=>o.closest("[dir]")?.dir==="rtl"?Ve.rtl:Ve.ltr;function he(o){return o?typeof o=="string"?new bt(o):"inline"in o?o.inline():o:bt.empty}const li=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,$l=":host([hidden]){display:none}";function k(o){return`${$l}:host{display:${o}}`}class yl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class No extends yl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new No(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(r),t=s):!s&&t&&(e.removeStyles(r),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const Z=No.with(window.matchMedia("(forced-colors)"));No.with(window.matchMedia("(prefers-color-scheme: dark)")),No.with(window.matchMedia("(prefers-color-scheme: light)"));const nn=CSS.supports("anchor-name: --a"),xl="anchor"in HTMLElement.prototype,an=CSS.supports("selector(:state(g))");class Ke{}function rt(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function He(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ye(o,...e){const t=Wo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Wo.locate(r).forEach(s=>t.push(s))})}var kl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Qo=(o,e,t,r)=>{for(var i=r>1?void 0:r?wl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kl(e,t,i),i};class Qe extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ft("accordion-")}}Qo([a({attribute:"heading-level",mode:"fromView",converter:Q})],Qe.prototype,"headinglevel",2),Qo([a({mode:"boolean"})],Qe.prototype,"expanded",2),Qo([a({mode:"boolean"})],Qe.prototype,"disabled",2),Qo([a],Qe.prototype,"id",2);var Cl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,ci=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cl(e,t,i),i};class fo extends Qe{constructor(){super(...arguments),this.block=!1}}ci([a],fo.prototype,"size",2),ci([a({attribute:"marker-position"})],fo.prototype,"markerPosition",2),ci([a({mode:"boolean"})],fo.prototype,"block",2),Ye(fo,Ke);const P="var(--colorNeutralForeground1)",di="var(--colorNeutralForeground1Hover)",Il="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Mt="var(--colorNeutralForeground2Hover)",Dt="var(--colorNeutralForeground2Pressed)",Zo="var(--colorNeutralForeground2Selected)",Jo="var(--colorNeutralForeground2BrandHover)",er="var(--colorNeutralForeground2BrandPressed)",Pl="var(--colorNeutralForeground2BrandSelected)",ie="var(--colorNeutralForeground3)",zl="var(--colorNeutralForeground3Hover)",Tl="var(--colorNeutralForeground3Pressed)",Bl="var(--colorNeutralForeground3Selected)",hi="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Ol="var(--colorBrandForegroundLink)",Al="var(--colorBrandForegroundLinkHover)",_l="var(--colorBrandForegroundLinkPressed)",El="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Fl="var(--colorNeutralForeground2LinkPressed)",ln="var(--colorCompoundBrandForeground1Hover)",Ml="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",ft="var(--colorNeutralForegroundInverted)",Dl="var(--colorNeutralForegroundInvertedHover)",Vl="var(--colorNeutralForegroundInvertedPressed)",cn="var(--colorNeutralForegroundStaticInverted)",ui="var(--colorBrandForeground1)",Hl="var(--colorBrandForeground2)",Ll="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",tr="var(--colorNeutralBackground1Hover)",or="var(--colorNeutralBackground1Pressed)",dn="var(--colorNeutralBackground1Selected)",mo="var(--colorNeutralBackground3)",jl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",rr="var(--colorNeutralBackground6)",hn="var(--colorNeutralBackgroundInverted)",un="var(--colorSubtleBackground)",vo="var(--colorSubtleBackgroundHover)",mt="var(--colorSubtleBackgroundPressed)",pn="var(--colorSubtleBackgroundSelected)",ql="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",ge="var(--colorTransparentBackground)",ir="var(--colorTransparentBackgroundHover)",sr="var(--colorTransparentBackgroundPressed)",bn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",pi="var(--colorBackgroundOverlay)",bi="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Xl="var(--colorBrandBackgroundSelected)",vt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",Ul="var(--colorBrandBackground2)",Le="var(--colorNeutralStrokeAccessible)",$t="var(--colorNeutralStrokeAccessibleHover)",yt="var(--colorNeutralStrokeAccessiblePressed)",je="var(--colorNeutralStroke1)",Lt="var(--colorNeutralStroke1Hover)",$o="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",vn="var(--colorBrandStroke1)",gi="var(--colorBrandStroke2)",xt="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",$n="var(--colorCompoundBrandStrokePressed)",we="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",fi="var(--colorTransparentStrokeInteractive)",mi="var(--colorStrokeFocus1)",Ce="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",yn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",xn="var(--colorPaletteRedBackground3)",kn="var(--colorPaletteRedBorder1)",vi="var(--colorPaletteRedBorder2)",wn="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Cn="var(--colorPaletteRedForeground3)",Sn="var(--colorPaletteGreenBackground1)",In="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",rc="var(--colorPaletteGreenBorder2)",ic="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",Pn="var(--colorPaletteDarkOrangeBackground1)",zn="var(--colorPaletteDarkOrangeBackground3)",Tn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",Bn="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",$i="var(--colorPaletteYellowForeground2)",On="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBackground3)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Vc="var(--colorPaletteLightTealBackground2)",Hc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Gc="var(--colorPaletteMinkBackground2)",Wc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",rd="var(--colorPalettePumpkinBackground2)",id="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",nr="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",An="var(--borderRadiusLarge)",_n="var(--borderRadiusXLarge)",fe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",F="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",ar="var(--fontSizeBase600)",En="var(--fontSizeHero700)",Nn="var(--fontSizeHero800)",Fn="var(--fontSizeHero900)",Mn="var(--fontSizeHero1000)",_="var(--fontWeightRegular)",md="var(--fontWeightMedium)",M="var(--fontWeightSemibold)",lr="var(--fontWeightBold)",cr="var(--lineHeightBase100)",X="var(--lineHeightBase200)",O="var(--lineHeightBase300)",me="var(--lineHeightBase400)",dr="var(--lineHeightBase500)",Dn="var(--lineHeightBase600)",Vn="var(--lineHeightHero700)",Hn="var(--lineHeightHero800)",Ln="var(--lineHeightHero900)",jn="var(--lineHeightHero1000)",yi="var(--shadow2)",hr="var(--shadow4)",vd="var(--shadow8)",xi="var(--shadow16)",$d="var(--shadow28)",Rn="var(--shadow64)",T="var(--strokeWidthThin)",ve="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",ki="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",pe="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Re="var(--spacingHorizontalS)",ne="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",wi="var(--spacingHorizontalXXL)",Ci="var(--spacingVerticalNone)",Rt="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",qe="var(--spacingVerticalSNudge)",q="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",ur="var(--spacingVerticalL)",kt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",Si="var(--durationUltraFast)",pr="var(--durationFaster)",br="var(--durationNormal)",Ii="var(--durationGentle)",qn="var(--durationSlow)",Gn="var(--durationSlower)",gr="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",wt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Pi="var(--curveDecelerateMax)",Ct="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Wn="var(--curveEasyEaseMax)",fr="var(--curveEasyEase)",zi="var(--curveLinear)",Pd=u`
2
2
  ${k("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ae} ${ne};border-radius:${C};font-family:${v};font-size:${B};font-weight:${_};line-height:${O};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ge};border:none;box-sizing:border-box;color:${P};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:${Oe}}: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:${je};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ae}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${je};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe};outline:none;border:2px solid ${mi};box-shadow:inset 0 0 0 1px ${Ce}}:host([disabled]) .button{color:${S}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${O}}:host([size='small']) .heading{font-size:${F};line-height:${X}}:host([size='large']) .heading{font-size:${ue};line-height:${me}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${dr}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${je};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ae}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ne} ${ae}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,zd=b.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ae} ${ne};border-radius:${C};font-family:${v};font-size:${B};font-weight:${_};line-height:${O};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ge};border:none;box-sizing:border-box;color:${P};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:${Oe}}: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:${Re};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ae}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Re};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe};outline:none;border:2px solid ${mi};box-shadow:inset 0 0 0 1px ${Ce}}:host([disabled]) .button{color:${S}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${O}}:host([size='small']) .heading{font-size:${F};line-height:${X}}:host([size='large']) .heading{font-size:${ue};line-height:${me}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${dr}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Re};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ae}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ne} ${ae}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,zd=b.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -27,13 +27,13 @@ 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 Bd(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${V("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${Ve(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Od=Bd({collapsedIcon:zd,expandedIcon:Td}),Ad=fo.compose({name:`${p.prefix}-accordion-item`,template:Od,styles:Pd});Ad.define(p.registry);const Ti={single:"single",multi:"multi"};var _d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Xn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_d(e,t,i),i};class Bi extends ${constructor(){super(...arguments),this.expandmode=Ti.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t instanceof Qe&&(t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof Qe&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===Ti.single){this.setSingleExpandMode(r);return}r?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof Qe&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ti.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{r instanceof Qe&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}}Xn([a({attribute:"expand-mode"})],Bi.prototype,"expandmode",2),Xn([g],Bi.prototype,"slottedAccordionItems",2);const Nd=u`
30
+ </svg>`);function Bd(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${V("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${He(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Od=Bd({collapsedIcon:zd,expandedIcon:Td}),Ad=fo.compose({name:`${p.prefix}-accordion-item`,template:Od,styles:Pd});Ad.define(p.registry);const Ti={single:"single",multi:"multi"};var _d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Xn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_d(e,t,i),i};class Bi extends ${constructor(){super(...arguments),this.expandmode=Ti.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t instanceof Qe&&(t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof Qe&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===Ti.single){this.setSingleExpandMode(r);return}r?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof Qe&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ti.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{r instanceof Qe&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}}Xn([a({attribute:"expand-mode"})],Bi.prototype,"expandmode",2),Xn([g],Bi.prototype,"slottedAccordionItems",2);const Nd=u`
31
31
  ${k("flex")}
32
32
 
33
- :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${H({property:"slottedAccordionItems",filter:gt()})}></slot></template>`}const Md=Fd(),Dd=Bi.compose({name:`${p.prefix}-accordion`,template:Md,styles:Nd});Dd.define(p.registry);const Un=new Map;function z(o){return Un.get(o)??Un.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!an){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Oi=new WeakMap;function Kn(o,e){if(!o||!e)return!1;if(Oi.has(o))return Oi.get(o).has(e);const t=new Set(Object.values(o));return Oi.set(o,t),t.has(e)}function St(o,e="",t="",r,i=""){y(o,`${i}${e}`,!1),(!r||Kn(r,t))&&y(o,`${i}${t}`,!0)}const Vd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Hd={circular:"circular",rounded:"rounded",square:"square"},Ld={small:"small",medium:"medium",large:"large"},mr={submit:"submit",reset:"reset",button:"button"},jd=Vd,Rd=Hd,qd=Ld,Gd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wd(e,t,i),i};class qe extends ${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(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Gd){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===bo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}st([a],qe.prototype,"download",2),st([a],qe.prototype,"href",2),st([a],qe.prototype,"hreflang",2),st([a],qe.prototype,"ping",2),st([a],qe.prototype,"referrerpolicy",2),st([a],qe.prototype,"rel",2),st([a],qe.prototype,"target",2),st([a],qe.prototype,"type",2);var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,vr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ud(e,t,i),i};class Wt extends qe{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){St(this.elementInternals,e,t,jd)}shapeChanged(e,t){St(this.elementInternals,e,t,Rd)}sizeChanged(e,t){St(this.elementInternals,e,t,qd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}vr([a],Wt.prototype,"appearance",2),vr([a],Wt.prototype,"shape",2),vr([a],Wt.prototype,"size",2),vr([a({attribute:"icon-only",mode:"boolean"})],Wt.prototype,"iconOnly",2),Ye(Wt,Ke);const Yn=u`
33
+ :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${H({property:"slottedAccordionItems",filter:gt()})}></slot></template>`}const Md=Fd(),Dd=Bi.compose({name:`${p.prefix}-accordion`,template:Md,styles:Nd});Dd.define(p.registry);const Un=new Map;function z(o){return Un.get(o)??Un.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!an){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Oi=new WeakMap;function Kn(o,e){if(!o||!e)return!1;if(Oi.has(o))return Oi.get(o).has(e);const t=new Set(Object.values(o));return Oi.set(o,t),t.has(e)}function St(o,e="",t="",r,i=""){y(o,`${i}${e}`,!1),(!r||Kn(r,t))&&y(o,`${i}${t}`,!0)}const Vd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Hd={circular:"circular",rounded:"rounded",square:"square"},Ld={small:"small",medium:"medium",large:"large"},mr={submit:"submit",reset:"reset",button:"button"},jd=Vd,Rd=Hd,qd=Ld,Gd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wd(e,t,i),i};class Ge extends ${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(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Gd){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===bo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}st([a],Ge.prototype,"download",2),st([a],Ge.prototype,"href",2),st([a],Ge.prototype,"hreflang",2),st([a],Ge.prototype,"ping",2),st([a],Ge.prototype,"referrerpolicy",2),st([a],Ge.prototype,"rel",2),st([a],Ge.prototype,"target",2),st([a],Ge.prototype,"type",2);var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,vr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ud(e,t,i),i};class Wt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){St(this.elementInternals,e,t,jd)}shapeChanged(e,t){St(this.elementInternals,e,t,Rd)}sizeChanged(e,t){St(this.elementInternals,e,t,qd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}vr([a],Wt.prototype,"appearance",2),vr([a],Wt.prototype,"shape",2),vr([a],Wt.prototype,"size",2),vr([a({attribute:"icon-only",mode:"boolean"})],Wt.prototype,"iconOnly",2),Ye(Wt,Ke);const Yn=u`
34
34
  ${k("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${ee};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${I};color:${P};border:${T} solid ${Le};padding:0 ${ae};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${M};line-height:${O};transition-duration:${pr};transition-property:background,border,color;transition-timing-function:${fr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${tr};color:${di};border-color:${Lt}}:host(:hover:active){background-color:${or};border-color:${$o};color:${Il};outline-style:none}:host(:focus-visible){border-color:${J};outline:${ve} solid ${J};box-shadow:${hr},0 0 0 2px ${Ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${pe};min-height:24px;min-width:64px;padding:0 ${je};border-radius:${Oe};font-size:${F};line-height:${X};font-weight:${_}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${An};padding:0 ${yd};font-size:${ue};line-height:${me}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${fe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${nr}}:host([appearance='primary']){background-color:${bi};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${gn}}:host([appearance='primary']:is(:hover,:hover:active)){border-color:transparent;color:${Ze}}:host([appearance='primary']:hover:active){background-color:${fn}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${yi},0 0 0 2px ${Ce}}:host([appearance='outline']){background-color:${ge}}:host([appearance='outline']:hover){background-color:${ir}}:host([appearance='outline']:hover:active){background-color:${sr}}:host([appearance='subtle']){background-color:${un};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${vo};color:${Mt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mt};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Jo}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${er}}:host([appearance='transparent']){background-color:${ge};color:${Ie}}:host([appearance='transparent']:hover){background-color:${ir};color:${Jo}}:host([appearance='transparent']:hover:active){background-color:${sr};color:${er}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,$r=u`
36
+ :host{--icon-spacing:${ee};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${I};color:${P};border:${T} solid ${je};padding:0 ${ae};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${M};line-height:${O};transition-duration:${pr};transition-property:background,border,color;transition-timing-function:${fr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${tr};color:${di};border-color:${Lt}}:host(:hover:active){background-color:${or};border-color:${$o};color:${Il};outline-style:none}:host(:focus-visible){border-color:${J};outline:${ve} solid ${J};box-shadow:${hr},0 0 0 2px ${Ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${pe};min-height:24px;min-width:64px;padding:0 ${Re};border-radius:${Oe};font-size:${F};line-height:${X};font-weight:${_}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${An};padding:0 ${yd};font-size:${ue};line-height:${me}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${fe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${nr}}:host([appearance='primary']){background-color:${bi};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${gn}}:host([appearance='primary']:is(:hover,:hover:active)){border-color:transparent;color:${Ze}}:host([appearance='primary']:hover:active){background-color:${fn}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${yi},0 0 0 2px ${Ce}}:host([appearance='outline']){background-color:${ge}}:host([appearance='outline']:hover){background-color:${ir}}:host([appearance='outline']:hover:active){background-color:${sr}}:host([appearance='subtle']){background-color:${un};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${vo};color:${Mt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mt};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Jo}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${er}}:host([appearance='transparent']){background-color:${ge};color:${Ie}}:host([appearance='transparent']:hover){background-color:${ir};color:${Jo}}:host([appearance='transparent']:hover:active){background-color:${sr};color:${er}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,$r=u`
37
37
  ${Yn}
38
38
 
39
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:${it};border-color:${we};color:${S};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ge}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ge};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${ge}}`.withBehaviors(Z(u`
@@ -41,7 +41,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
41
41
  ${Yn}
42
42
 
43
43
  ::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(u`
44
- :host{border-color:LinkText;color:LinkText}`));function Qd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ve(o)}<span class="content" part="content"><slot></slot></span>${rt(o)}</template>`}const Zd=Qd(),Jd=Wt.compose({name:`${p.prefix}-anchor-button`,template:Zd,styles:Yd});Jd.define(p.registry);const eh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,th=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,oh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,rh=/\s+/g,ih=/[\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 sh(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function nh(o){return o=o.replace(eh,""),o=o.replace(th,""),o=o.replace(rh," "),o=o.trim(),o}function ah(o,e,t){return!o||(o=nh(o),ih.test(o)||!t?.allowPhoneInitials&&oh.test(o))?"":sh(o,e,t?.firstInitialOnly)}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Qn=(o,e,t,r)=>{for(var i=r>1?void 0:r?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lh(e,t,i),i};class Ai extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Qn([a],Ai.prototype,"name",2),Qn([a],Ai.prototype,"initials",2);const Zn={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"},Jn={neutral:"neutral",brand:"brand",colorful:"colorful",...Zn};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Xt=(o,e,t,r)=>{for(var i=r>1?void 0:r?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&dh(e,t,i),i};const nt=class ts extends Ai{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??ah(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Jn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?ts.colors[ph(this.name??"")%ts.colors.length]:this.color??Jn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};nt.colors=Object.values(Zn),Xt([a],nt.prototype,"active",2),Xt([a],nt.prototype,"shape",2),Xt([a],nt.prototype,"appearance",2),Xt([a({converter:Q})],nt.prototype,"size",2),Xt([a],nt.prototype,"color",2),Xt([a({attribute:"color-id"})],nt.prototype,"colorId",2);let uh=nt;const ph=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},at={fastOutSlowInMax:Pi,fastOutSlowInMid:Ct,fastOutSlowInMin:Id,slowOutFastInMax:Cd,slowOutFastInMid:wt,slowOutFastInMin:Sd,fastEase:Wn,normalEase:fr,nullEasing:zi},bh=u`
44
+ :host{border-color:LinkText;color:LinkText}`));function Qd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${He(o)}<span class="content" part="content"><slot></slot></span>${rt(o)}</template>`}const Zd=Qd(),Jd=Wt.compose({name:`${p.prefix}-anchor-button`,template:Zd,styles:Yd});Jd.define(p.registry);const eh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,th=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,oh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,rh=/\s+/g,ih=/[\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 sh(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function nh(o){return o=o.replace(eh,""),o=o.replace(th,""),o=o.replace(rh," "),o=o.trim(),o}function ah(o,e,t){return!o||(o=nh(o),ih.test(o)||!t?.allowPhoneInitials&&oh.test(o))?"":sh(o,e,t?.firstInitialOnly)}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Qn=(o,e,t,r)=>{for(var i=r>1?void 0:r?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lh(e,t,i),i};class Ai extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Qn([a],Ai.prototype,"name",2),Qn([a],Ai.prototype,"initials",2);const Zn={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"},Jn={neutral:"neutral",brand:"brand",colorful:"colorful",...Zn};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Xt=(o,e,t,r)=>{for(var i=r>1?void 0:r?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&dh(e,t,i),i};const nt=class ts extends Ai{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??ah(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Jn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?ts.colors[ph(this.name??"")%ts.colors.length]:this.color??Jn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};nt.colors=Object.values(Zn),Xt([a],nt.prototype,"active",2),Xt([a],nt.prototype,"shape",2),Xt([a],nt.prototype,"appearance",2),Xt([a({converter:Q})],nt.prototype,"size",2),Xt([a],nt.prototype,"color",2),Xt([a({attribute:"color-id"})],nt.prototype,"colorId",2);let uh=nt;const ph=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},at={fastOutSlowInMax:Pi,fastOutSlowInMid:Ct,fastOutSlowInMin:Id,slowOutFastInMax:Cd,slowOutFastInMid:wt,slowOutFastInMin:Sd,fastEase:Wn,normalEase:fr,nullEasing:zi},bh=u`
45
45
  ${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${M};font-size:${B};border-radius:${fe};color:${ie};background-color:${rr};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:${fe}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${T}) ${I}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ve}) ${I}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${xo};font-weight:${_}}: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:${F}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${jt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${ar}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Oe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${An}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${_n}}:host([data-color='brand']){color:${cn};background-color:${mn}}:host([data-color='dark-red']){color:${Bc};background-color:${Tc}}:host([data-color='cranberry']){color:${Ic};background-color:${Sc}}:host([data-color='red']){color:${tc};background-color:${ec}}:host([data-color='pumpkin']){color:${id};background-color:${rd}}:host([data-color='peach']){color:${Yc};background-color:${Kc}}:host([data-color='marigold']){color:${uc};background-color:${On}}:host([data-color='gold']){color:${Ec};background-color:${_c}}:host([data-color='brass']){color:${yc};background-color:${$c}}:host([data-color='brown']){color:${kc};background-color:${xc}}:host([data-color='forest']){color:${Ac};background-color:${Oc}}:host([data-color='seafoam']){color:${dd};background-color:${cd}}:host([data-color='dark-green']){color:${zc};background-color:${Pc}}:host([data-color='light-teal']){color:${Hc};background-color:${Vc}}:host([data-color='teal']){color:${bd};background-color:${pd}}:host([data-color='steel']){color:${ud};background-color:${hd}}:host([data-color='blue']){color:${vc};background-color:${mc}}:host([data-color='royal-blue']){color:${ld};background-color:${ad}}:host([data-color='cornflower']){color:${Cc};background-color:${wc}}:host([data-color='navy']){color:${Uc};background-color:${Xc}}:host([data-color='lavender']){color:${Dc};background-color:${Mc}}:host([data-color='purple']){color:${nd};background-color:${sd}}:host([data-color='grape']){color:${Fc};background-color:${Nc}}:host([data-color='lilac']){color:${jc};background-color:${Lc}}:host([data-color='pink']){color:${Zc};background-color:${Qc}}:host([data-color='magenta']){color:${qc};background-color:${Rc}}:host([data-color='plum']){color:${od};background-color:${td}}:host([data-color='beige']){color:${fc};background-color:${gc}}:host([data-color='mink']){color:${Wc};background-color:${Gc}}:host([data-color='platinum']){color:${ed};background-color:${Jc}}:host([data-color='anchor']){color:${bc};background-color:${pc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${gr},${pr};transition-delay:${at.fastEase},${at.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${gr}),${Gn};transition-delay:${at.fastEase}),${at.nullEasing})}:host([active])::before{box-shadow:${vd};border-style:solid;border-color:${mn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ve});border-width:${ve}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}: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 * ${ki});border-width:${ki}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${hr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${xi}}: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:${$d}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${gr},${pr};transition-delay:${at.fastOutSlowInMin},${at.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${gr},${Gn};transition-delay:${at.fastOutSlowInMin},${at.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}}`,gh=b`<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 fh(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():gh}</slot><slot name="badge"></slot>`}const mh=fh(),vh=uh.compose({name:`${p.prefix}-avatar`,template:mh,styles:bh});vh.define(p.registry);const $h={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},yh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var xh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,yr=(o,e,t,r)=>{for(var i=r>1?void 0:r?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xh(e,t,i),i};class Ut extends ${constructor(){super(...arguments),this.appearance=$h.filled,this.color=yh.brand}}yr([a],Ut.prototype,"appearance",2),yr([a],Ut.prototype,"color",2),yr([a],Ut.prototype,"shape",2),yr([a],Ut.prototype,"size",2),Ye(Ut,Ke);const ea=u.partial`
46
46
  ${k("inline-flex")} :host {
47
47
  position: relative;
@@ -212,7 +212,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
212
212
 
213
213
  :host([appearance='outline'][color='important']) {
214
214
  color: ${ie};
215
- border-color: ${He};
215
+ border-color: ${Le};
216
216
  }
217
217
 
218
218
  :host([appearance='outline'][color='informative']) {
@@ -376,10 +376,10 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
376
376
  ${ta}
377
377
  ${ea}
378
378
  `.withBehaviors(Z(u`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function na(o={}){return b` ${Ve(o)}<slot>${he(o.defaultContent)}</slot>${rt(o)} `}const zh=na(),Th=Ut.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,$e=(o,e,t,r)=>{for(var i=r>1?void 0:r?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bh(e,t,i),i};class le extends ${constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==mr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===bo||e.key===Yo){this.click();return}return!0}press(){switch(this.type){case mr.reset:{this.resetForm();break}case mr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==mr.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)}}}}le.formAssociated=!0,$e([a({mode:"boolean"})],le.prototype,"autofocus",2),$e([g],le.prototype,"defaultSlottedContent",2),$e([a({mode:"boolean"})],le.prototype,"disabled",2),$e([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),$e([a({attribute:"tabindex",mode:"fromView",converter:Q})],le.prototype,"tabIndex",2),$e([a({attribute:"formaction"})],le.prototype,"formAction",2),$e([a({attribute:"form"})],le.prototype,"formAttribute",2),$e([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),$e([a({attribute:"formmethod"})],le.prototype,"formMethod",2),$e([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),$e([a({attribute:"formtarget"})],le.prototype,"formTarget",2),$e([a],le.prototype,"name",2),$e([a],le.prototype,"type",2),$e([a],le.prototype,"value",2);var Ah=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,xr=(o,e,t,r)=>{for(var i=r>1?void 0:r?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ah(e,t,i),i};class Je extends le{constructor(){super(...arguments),this.iconOnly=!1}}xr([a],Je.prototype,"appearance",2),xr([a],Je.prototype,"shape",2),xr([a],Je.prototype,"size",2),xr([a({attribute:"icon-only",mode:"boolean"})],Je.prototype,"iconOnly",2),Ye(Je,Ke);function _i(o={}){return b`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ve(o)}<span class="content" part="content"><slot ${H("defaultSlottedContent")}></slot></span>${rt(o)}</template>`}const Eh=_i(),Nh=Je.compose({name:`${p.prefix}-button`,template:Eh,styles:$r});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,lt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fh(e,t,i),i};class Pe extends ${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(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$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 e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,lt([a({mode:"boolean"})],Pe.prototype,"autofocus",2),lt([g],Pe.prototype,"disabled",2),lt([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),lt([a({attribute:"form"})],Pe.prototype,"formAttribute",2),lt([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),lt([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),lt([a],Pe.prototype,"name",2),lt([a({mode:"boolean"})],Pe.prototype,"required",2);var Dh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Ei=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dh(e,t,i),i};class kr extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ei([g],kr.prototype,"indeterminate",2),Ei([a],kr.prototype,"shape",2),Ei([a],kr.prototype,"size",2);const Hh=z("active"),Lh=z("bad-input"),x=z("checked"),jh=z("custom-error"),Rh=z("description"),ye=z("disabled");z("error");const qh=z("flip-block"),Gh=z("focus-visible"),Wh=z("has-message"),It=z("indeterminate"),Kt=z("multiple"),Xh=z("open"),Uh=z("pattern-mismatch"),Kh=z("placeholder-shown"),D=z("pressed"),Yh=z("range-overflow"),Qh=z("range-underflow"),Ni=z("selected"),Zh=z("step-mismatch"),wr=z("submenu"),Jh=z("too-long"),eu=z("too-short"),tu=z("type-mismatch"),ou=z("user-invalid"),ru=z("valid"),iu=z("value-missing"),su=u`
379
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function na(o={}){return b` ${He(o)}<slot>${he(o.defaultContent)}</slot>${rt(o)} `}const zh=na(),Th=Ut.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,$e=(o,e,t,r)=>{for(var i=r>1?void 0:r?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bh(e,t,i),i};class le extends ${constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==mr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===bo||e.key===Yo){this.click();return}return!0}press(){switch(this.type){case mr.reset:{this.resetForm();break}case mr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==mr.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)}}}}le.formAssociated=!0,$e([a({mode:"boolean"})],le.prototype,"autofocus",2),$e([g],le.prototype,"defaultSlottedContent",2),$e([a({mode:"boolean"})],le.prototype,"disabled",2),$e([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),$e([a({attribute:"tabindex",mode:"fromView",converter:Q})],le.prototype,"tabIndex",2),$e([a({attribute:"formaction"})],le.prototype,"formAction",2),$e([a({attribute:"form"})],le.prototype,"formAttribute",2),$e([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),$e([a({attribute:"formmethod"})],le.prototype,"formMethod",2),$e([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),$e([a({attribute:"formtarget"})],le.prototype,"formTarget",2),$e([a],le.prototype,"name",2),$e([a],le.prototype,"type",2),$e([a],le.prototype,"value",2);var Ah=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,xr=(o,e,t,r)=>{for(var i=r>1?void 0:r?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ah(e,t,i),i};class Je extends le{constructor(){super(...arguments),this.iconOnly=!1}}xr([a],Je.prototype,"appearance",2),xr([a],Je.prototype,"shape",2),xr([a],Je.prototype,"size",2),xr([a({attribute:"icon-only",mode:"boolean"})],Je.prototype,"iconOnly",2),Ye(Je,Ke);function _i(o={}){return b`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${He(o)}<span class="content" part="content"><slot ${H("defaultSlottedContent")}></slot></span>${rt(o)}</template>`}const Eh=_i(),Nh=Je.compose({name:`${p.prefix}-button`,template:Eh,styles:$r});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,lt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fh(e,t,i),i};class Pe extends ${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(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$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 e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,lt([a({mode:"boolean"})],Pe.prototype,"autofocus",2),lt([g],Pe.prototype,"disabled",2),lt([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),lt([a({attribute:"form"})],Pe.prototype,"formAttribute",2),lt([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),lt([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),lt([a],Pe.prototype,"name",2),lt([a({mode:"boolean"})],Pe.prototype,"required",2);var Dh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Ei=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dh(e,t,i),i};class kr extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ei([g],kr.prototype,"indeterminate",2),Ei([a],kr.prototype,"shape",2),Ei([a],kr.prototype,"size",2);const Hh=z("active"),Lh=z("bad-input"),x=z("checked"),jh=z("custom-error"),Rh=z("description"),ye=z("disabled");z("error");const qh=z("flip-block"),Gh=z("focus-visible"),Wh=z("has-message"),It=z("indeterminate"),Kt=z("multiple"),Xh=z("open"),Uh=z("pattern-mismatch"),Kh=z("placeholder-shown"),D=z("pressed"),Yh=z("range-overflow"),Qh=z("range-underflow"),Ni=z("selected"),Zh=z("step-mismatch"),wr=z("submenu"),Jh=z("too-long"),eu=z("too-short"),tu=z("type-mismatch"),ou=z("user-invalid"),ru=z("valid"),iu=z("value-missing"),su=u`
380
380
  ${k("inline-flex")}
381
381
 
382
- :host{--size:16px;background-color:${I};border-radius:${Oe};border:${T} solid ${He};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${$t}}:host(:active){border-color:${yt}}:host(${x}:hover){background-color:${Vt};border-color:${Ql}}:host(${x}:active){background-color:${Ht};border-color:${$n}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ve} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}.indeterminate-indicator,.checked-indicator{color:${ft};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${It}){border-color:${xt}}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:${vt}}:host(${It}) .indeterminate-indicator{border-radius:${Oe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${fe}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${we}}:host([disabled]){cursor:unset}:host([disabled]${It}) .indeterminate-indicator{background-color:${we}}:host([disabled]${x}) .checked-indicator{color:${we}}`.withBehaviors(Z(u`
382
+ :host{--size:16px;background-color:${I};border-radius:${Oe};border:${T} solid ${Le};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${$t}}:host(:active){border-color:${yt}}:host(${x}:hover){background-color:${Vt};border-color:${Ql}}:host(${x}:active){background-color:${Ht};border-color:${$n}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ve} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}.indeterminate-indicator,.checked-indicator{color:${ft};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${It}){border-color:${xt}}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:${vt}}:host(${It}) .indeterminate-indicator{border-radius:${Oe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${fe}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${we}}:host([disabled]){cursor:unset}:host([disabled]${It}) .indeterminate-indicator{background-color:${we}}:host([disabled]${x}) .checked-indicator{color:${we}}`.withBehaviors(Z(u`
383
383
  :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${It}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${It}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),nu=b.partial(`
384
384
  <svg
385
385
  fill="currentColor"
@@ -398,13 +398,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
398
398
 
399
399
  :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${O}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${F};font-weight:${_}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Mt}}:host(:active) ::slotted([slot='description']){color:${Dt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
400
400
  ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${Jo}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${er}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
401
- ::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${pe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${je}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`;function pu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ve(o)}<span class="content" part="content"><slot ${H("defaultSlottedContent")}></slot><slot name="description"></slot></span>${rt(o)}</template>`}const bu=pu(),gu=hu.compose({name:`${p.prefix}-compound-button`,template:bu,styles:uu});gu.define(p.registry);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,ct=(o,e,t,r)=>{for(var i=r>1?void 0:r?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fu(e,t,i),i};class Ge extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}ct([a],Ge.prototype,"appearance",2),ct([a],Ge.prototype,"color",2),ct([a],Ge.prototype,"shape",2),ct([a],Ge.prototype,"size",2),ct([a({converter:Q})],Ge.prototype,"count",2),ct([a({attribute:"overflow-count",converter:Q})],Ge.prototype,"overflowCount",2),ct([a({attribute:"show-zero",mode:"boolean"})],Ge.prototype,"showZero",2),ct([a({mode:"boolean"})],Ge.prototype,"dot",2),Ye(Ge,Ke);const vu=u`
401
+ ::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${pe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Re}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`;function pu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${He(o)}<span class="content" part="content"><slot ${H("defaultSlottedContent")}></slot><slot name="description"></slot></span>${rt(o)}</template>`}const bu=pu(),gu=hu.compose({name:`${p.prefix}-compound-button`,template:bu,styles:uu});gu.define(p.registry);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,ct=(o,e,t,r)=>{for(var i=r>1?void 0:r?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fu(e,t,i),i};class We extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}ct([a],We.prototype,"appearance",2),ct([a],We.prototype,"color",2),ct([a],We.prototype,"shape",2),ct([a],We.prototype,"size",2),ct([a({converter:Q})],We.prototype,"count",2),ct([a({attribute:"overflow-count",converter:Q})],We.prototype,"overflowCount",2),ct([a({attribute:"show-zero",mode:"boolean"})],We.prototype,"showZero",2),ct([a({mode:"boolean"})],We.prototype,"dot",2),Ye(We,Ke);const vu=u`
402
402
  :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Oe}}${ta}
403
403
  ${oa}
404
404
  ${ra}
405
405
  ${ea}
406
406
 
407
- :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function $u(o={}){return na({defaultContent:b`${e=>e.setCount()}`})}const yu=$u(),xu=Ge.compose({name:`${p.prefix}-counter-badge`,template:yu,styles:vu});xu.define(p.registry);const We={modal:"modal",nonModal:"non-modal",alert:"alert"};var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Cr=(o,e,t,r)=>{for(var i=r>1?void 0:r?wu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ku(e,t,i),i};class ko extends ${constructor(){super(...arguments),this.type=We.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(){Y.enqueue(()=>{this.emitBeforeToggle(),this.type===We.alert||this.type===We.modal?this.dialog.showModal():this.type===We.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==We.alert&&e.target===this.dialog&&this.hide(),!0}}Cr([g],ko.prototype,"dialog",2),Cr([a({attribute:"aria-describedby"})],ko.prototype,"ariaDescribedby",2),Cr([a({attribute:"aria-labelledby"})],ko.prototype,"ariaLabelledby",2),Cr([a],ko.prototype,"type",2);const Cu=b`<dialog role="${o=>o.type===We.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===We.modal||o.type===We.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.type===We.alert?e.event.preventDefault():o.hide()}" ${V("dialog")}><slot></slot></dialog>`,Su=u`
407
+ :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function $u(o={}){return na({defaultContent:b`${e=>e.setCount()}`})}const yu=$u(),xu=We.compose({name:`${p.prefix}-counter-badge`,template:yu,styles:vu});xu.define(p.registry);const Xe={modal:"modal",nonModal:"non-modal",alert:"alert"};var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Cr=(o,e,t,r)=>{for(var i=r>1?void 0:r?wu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ku(e,t,i),i};class ko extends ${constructor(){super(...arguments),this.type=Xe.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(){Y.enqueue(()=>{this.emitBeforeToggle(),this.type===Xe.alert||this.type===Xe.modal?this.dialog.showModal():this.type===Xe.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==Xe.alert&&e.target===this.dialog&&this.hide(),!0}}Cr([g],ko.prototype,"dialog",2),Cr([a({attribute:"aria-describedby"})],ko.prototype,"ariaDescribedby",2),Cr([a({attribute:"aria-labelledby"})],ko.prototype,"ariaLabelledby",2),Cr([a],ko.prototype,"type",2);const Cu=b`<dialog role="${o=>o.type===Xe.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Xe.modal||o.type===Xe.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.type===Xe.alert?e.event.preventDefault():o.hide()}" ${V("dialog")}><slot></slot></dialog>`,Su=u`
408
408
  @layer base{:host{--dialog-backdrop:${pi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${I};border-radius:${_n};border:none;box-shadow:${Rn};color:${P};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:${Ct};opacity:0}::backdrop{transition-timing-function:${zi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${wt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Z(u`
409
409
  @layer base{dialog{border:${T} solid ${J}}}`)),Iu=ko.compose({name:`${p.prefix}-dialog`,template:Cu,styles:Su});Iu.define(p.registry);var Pu=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Tu=(o,e,t,r)=>{for(var i=r>1?void 0:r?zu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Pu(e,t,i),i};class aa extends ${constructor(){super(...arguments),this.noTitleAction=!1}}Tu([a({mode:"boolean",attribute:"no-title-action"})],aa.prototype,"noTitleAction",2);const Bu=b.partial(`
410
410
  <svg
@@ -419,13 +419,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
419
419
  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"
420
420
  fill="currentColor"
421
421
  ></path>
422
- </svg>`),Ou=b`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===We.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${V("defaultTitleAction")}>${Bu}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Au=u`
422
+ </svg>`),Ou=b`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Xe.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${V("defaultTitleAction")}>${Bu}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Au=u`
423
423
  ${k("grid")}
424
424
 
425
425
  :host{background:${I};box-sizing:border-box;gap:${q};padding:${kt} ${wi};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${I};color:${P};column-gap:8px;display:flex;font-family:${v};font-size:${jt};font-weight:${M};inset-block-start:0;justify-content:space-between;line-height:${dr};margin-block-end:calc(${q} * -1);margin-block-start:calc(${kt} * -1);padding-block-end:${q};padding-block-start:${kt};position:sticky;z-index:1}.content{box-sizing:border-box;color:${P};font-family:${v};font-size:${B};font-weight:${_};line-height:${O};min-height:32px}.actions{box-sizing:border-box;background:${I};display:flex;flex-direction:column;gap:${q};inset-block-end:0;margin-block-end:calc(${kt} * -1);padding-block-end:${kt};padding-block-start:${ur};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(${q} * -1);padding-block-start:${q}}}`,_u=aa.compose({name:`${p.prefix}-dialog-body`,template:Ou,styles:Au});_u.define(p.registry);const wo={separator:"separator",presentation:"presentation"},la=Se;var Eu=Object.defineProperty,Nu=Object.getOwnPropertyDescriptor,ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Eu(e,t,i),i};class Fi extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??wo.separator,this.role!==wo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??la.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??wo.separator}`),t===wo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==wo.presentation?t??null:null,St(this.elementInternals,e,t,la)}}ca([a],Fi.prototype,"role",2),ca([a],Fi.prototype,"orientation",2);var Fu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Mi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fu(e,t,i),i};class Sr extends Fi{}Mi([a({attribute:"align-content"})],Sr.prototype,"alignContent",2),Mi([a],Sr.prototype,"appearance",2),Mi([a({mode:"boolean"})],Sr.prototype,"inset",2);function Du(){return b`<slot></slot>`}const Vu=Du(),Hu=u`
426
426
  ${k("flex")}
427
427
 
428
- :host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${T}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${F};font-weight:${_};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${T};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Le}}:host([appearance='strong']) ::slotted(*){color:${P}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${vn}}:host([appearance='brand']) ::slotted(*){color:${ui}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Kl}}:host([appearance='subtle']) ::slotted(*){color:${ie}}`.withBehaviors(Z(u`
428
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${T}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${F};font-weight:${_};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${T};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${je}}:host([appearance='strong']) ::slotted(*){color:${P}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${vn}}:host([appearance='brand']) ::slotted(*){color:${ui}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Kl}}:host([appearance='subtle']) ::slotted(*){color:${ie}}`.withBehaviors(Z(u`
429
429
  :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Lu=Sr.compose({name:`${p.prefix}-divider`,template:Vu,styles:Hu});Lu.define(p.registry);const ju={start:"start",end:"end"},Ru={small:"small",medium:"medium",large:"large",full:"full"},Di={nonModal:"non-modal",modal:"modal",inline:"inline"};var qu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Yt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qu(e,t,i),i};class Pt extends ${constructor(){super(...arguments),this.type=Di.modal,this.position=ju.start,this.size=Ru.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(){Y.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(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}}Yt([a],Pt.prototype,"type",2),Yt([a({attribute:"aria-labelledby"})],Pt.prototype,"ariaLabelledby",2),Yt([a({attribute:"aria-describedby"})],Pt.prototype,"ariaDescribedby",2),Yt([a],Pt.prototype,"position",2),Yt([a({attribute:"size"})],Pt.prototype,"size",2),Yt([g],Pt.prototype,"dialog",2);const Wu=u`
430
430
  ${k("block")}
431
431
 
@@ -434,14 +434,14 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
434
434
  :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${xd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Ih}}.footer{display:flex;justify-content:flex-start;gap:${ae}}`;function Zu(){return b`<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 Ju=Zu(),ep=Yu.compose({name:`${p.prefix}-drawer-body`,template:Ju,styles:Qu});ep.define(p.registry);function da(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ir(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function ha(o){return o.closest("[lang]")?.lang??"en"}let tp=0;function Co(o="id-"){const e=`${o}${tp++}`;return document.getElementById(e)?Co(o):e}const op={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Vi={combobox:"combobox",dropdown:"dropdown",select:"select"},rp=b`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${V("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,ip=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" ${V("control")} />`,sp=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" ${V("control")}>${o=>o.displayValue}</button>`;function np(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${V("controlSlot")}></slot><slot name="indicator" ${V("indicatorSlot")}>${he(o.indicator)}</slot></div><slot ${V("listboxSlot")}></slot></template>`}const ap=np({indicator:rp});var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,G=(o,e,t,r)=>{for(var i=r>1?void 0:r?cp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lp(e,t,i),i};const E=class io extends ${constructor(){super(),this.activeIndex=0,this.id=Co("dropdown-"),this.required=!1,this.type=Vi.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",this.addEventListener("connected",this.listboxConnectedHandler),Y.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Co("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){Y.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const r=m.getNotifier(this);r.subscribe(t);for(const i of["disabled","multiple"])r.notify(i);Y.enqueue(()=>{this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){Y.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){if(y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,t){io.AnchorPositionFallbackObserver?.observe(this.listbox);return}io.AnchorPositionFallbackObserver?.unobserve(this.listbox)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Vi.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Ir(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ha(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Vi.combobox){ip.render(this,this);return}sp.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Ir(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){io.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;da(t)&&(this.listbox=t)}anchorPositionFallback(){io.AnchorPositionFallbackObserver=io.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:r,target:i})=>{if(da(i)&&!r){if(t.bottom>window.innerHeight){y(i.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&y(i.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};E.formAssociated=!0,G([Gr],E.prototype,"activeDescendant",1),G([g],E.prototype,"activeIndex",2),G([a({attribute:"aria-labelledby",mode:"fromView"})],E.prototype,"ariaLabelledBy",2),G([g],E.prototype,"control",2),G([a({mode:"boolean"})],E.prototype,"disabled",2),G([Gr],E.prototype,"displayValue",1),G([a({attribute:"id"})],E.prototype,"id",2),G([g],E.prototype,"indicator",2),G([g],E.prototype,"indicatorSlot",2),G([a({attribute:"value",mode:"fromView"})],E.prototype,"initialValue",2),G([g],E.prototype,"listbox",2),G([g],E.prototype,"listboxSlot",2),G([a({mode:"boolean"})],E.prototype,"multiple",2),G([a],E.prototype,"name",2),G([g],E.prototype,"open",2),G([a],E.prototype,"placeholder",2),G([a({mode:"boolean"})],E.prototype,"required",2),G([a],E.prototype,"type",2),G([a({attribute:"value"})],E.prototype,"valueAttribute",2);let dp=E;var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,ua=(o,e,t,r)=>{for(var i=r>1?void 0:r?up(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&hp(e,t,i),i};class Hi extends dp{constructor(){super(...arguments),this.appearance=op.outline}}ua([a],Hi.prototype,"appearance",2),ua([a],Hi.prototype,"size",2);const pp=u`
435
435
  ${k("inline-flex")}
436
436
 
437
- :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${P};cursor:pointer}:host(${Kh}){color:${hi}}.control{appearance:none;background-color:${I};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${Re} ${ne};position:relative;text-align:start;width:100%;z-index:1;${ia}}:host([size='small']) .control{column-gap:${R};padding:${qt} ${ee};${sa}}:host([size='large']) .control{column-gap:${je};padding:${q} ${ae};${Sh}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${ie};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${T}}.control::after{background-color:${xt};height:${ve};scale:0 1;transition:scale ${Si} ${Ct}}:host(:where(${Xh},:focus-within)) .control::after{scale:1 1;transition-duration:${br};transition-timing-function:${wt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${He}}:host([appearance='transparent']) .control{--control-border-color:${fi};background-color:${ge};border-radius:${nr}}:host([appearance='outline']) .control{--control-border-color:${Le}}:host([appearance='outline']) .control:hover{--control-border-color:${Lt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${$t}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${$o}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${yt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${mo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${J}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${we};background-color:${it};color:${S}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${O} + (${Re} * 2) + ${T});max-height:50vh}:host([size='small']) ::slotted([popover]){margin-block-start:calc(${X} + (${qt} * 2) + ${T})}:host([size='large']) ::slotted([popover]){margin-block-start:calc(${me} + (${q} * 2) + ${T})}:host(${qh}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,bp=Hi.compose({name:`${p.prefix}-dropdown`,template:ap,styles:pp,shadowOptions:{slotAssignment:"manual"}});bp.define(p.registry);const gp={above:"above",after:"after",before:"before"},ze={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 fp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fp(e,t,i),i};class So extends ${constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if(y(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ft("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}Pr([g],So.prototype,"labelSlot",2),Pr([g],So.prototype,"messageSlot",2),Pr([g],So.prototype,"slottedInputs",2),Pr([g],So.prototype,"input",2);var vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,yp=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vp(e,t,i),i};class pa extends So{constructor(){super(...arguments),this.labelPosition=gp.above}}yp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const xp=u`
437
+ :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${P};cursor:pointer}:host(${Kh}){color:${hi}}.control{appearance:none;background-color:${I};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${qe} ${ne};position:relative;text-align:start;width:100%;z-index:1;${ia}}:host([size='small']) .control{column-gap:${R};padding:${qt} ${ee};${sa}}:host([size='large']) .control{column-gap:${Re};padding:${q} ${ae};${Sh}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${ie};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${T}}.control::after{background-color:${xt};height:${ve};scale:0 1;transition:scale ${Si} ${Ct}}:host(:where(${Xh},:focus-within)) .control::after{scale:1 1;transition-duration:${br};transition-timing-function:${wt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Le}}:host([appearance='transparent']) .control{--control-border-color:${fi};background-color:${ge};border-radius:${nr}}:host([appearance='outline']) .control{--control-border-color:${je}}:host([appearance='outline']) .control:hover{--control-border-color:${Lt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${$t}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${$o}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${yt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${mo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${J}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${we};background-color:${it};color:${S}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${O} + (${qe} * 2) + ${T});max-height:50vh}:host([size='small']) ::slotted([popover]){margin-block-start:calc(${X} + (${qt} * 2) + ${T})}:host([size='large']) ::slotted([popover]){margin-block-start:calc(${me} + (${q} * 2) + ${T})}:host(${qh}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,bp=Hi.compose({name:`${p.prefix}-dropdown`,template:ap,styles:pp,shadowOptions:{slotAssignment:"manual"}});bp.define(p.registry);const gp={above:"above",after:"after",before:"before"},ze={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 fp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fp(e,t,i),i};class So extends ${constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if(y(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ft("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}Pr([g],So.prototype,"labelSlot",2),Pr([g],So.prototype,"messageSlot",2),Pr([g],So.prototype,"slottedInputs",2),Pr([g],So.prototype,"input",2);var vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,yp=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vp(e,t,i),i};class pa extends So{constructor(){super(...arguments),this.labelPosition=gp.above}}yp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const xp=u`
438
438
  ${k("inline-grid")}
439
439
 
440
440
  :host{color:${P};align-items:center;gap:0 ${ae};justify-items:start;position:relative}:has([slot='message']){color:${P};row-gap:${q}}: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:${ae}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Rt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${kd}}:host([label-position='below']:not(${Wh})){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:${Rt};grid-area:message}:host(${Gh}:focus-within){border-radius:${C};outline:${ve} solid ${Ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${_};grid-area:label;line-height:${O};user-select:none}:host([size='small']) ::slotted(label){font-size:${F};line-height:${X}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${M}}:host(${ye}){cursor:default}::slotted([flag]){display:none}:host(${Lh}) ::slotted([flag='${ze.badInput}']),:host(${jh}) ::slotted([flag='${ze.customError}']),:host(${Uh}) ::slotted([flag='${ze.patternMismatch}']),:host(${Yh}) ::slotted([flag='${ze.rangeOverflow}']),:host(${Qh}) ::slotted([flag='${ze.rangeUnderflow}']),:host(${Zh}) ::slotted([flag='${ze.stepMismatch}']),:host(${Jh}) ::slotted([flag='${ze.tooLong}']),:host(${eu}) ::slotted([flag='${ze.tooShort}']),:host(${tu}) ::slotted([flag='${ze.typeMismatch}']),:host(${iu}) ::slotted([flag='${ze.valueMissing}']),:host(${ru}) ::slotted([flag='${ze.valid}']){display:block}`,kp=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" ${ri({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:gt()})}><slot name="label" part="label" ${H("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${H({property:"messageSlot",filter:gt("[flag]")})}></slot></template>`,wp=pa.compose({name:`${p.prefix}-field`,template:kp,styles:xp,shadowOptions:{delegatesFocus:!0}});wp.define(p.registry);var Cp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cp(e,t,i),i};class Qt extends ${}Io([a({mode:"boolean"})],Qt.prototype,"block",2),Io([a({mode:"boolean"})],Qt.prototype,"bordered",2),Io([a({mode:"boolean"})],Qt.prototype,"shadow",2),Io([a],Qt.prototype,"fit",2),Io([a],Qt.prototype,"shape",2);const Ip=b`<slot></slot>`,Pp=u`
441
441
  :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${T} solid ${yo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${hr}}:host([shape='circular']) ::slotted(img){border-radius:${fe}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,zp=Qt.compose({name:`${p.prefix}-image`,template:Ip,styles:Pp});zp.define(p.registry);var Tp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Tp(e,t,i),i};class Po extends ${constructor(){super(...arguments),this.disabled=!1,this.required=!1}}zr([a],Po.prototype,"size",2),zr([a],Po.prototype,"weight",2),zr([a({mode:"boolean"})],Po.prototype,"disabled",2),zr([a({mode:"boolean"})],Po.prototype,"required",2);const Op=u`
442
442
  ${k("inline-flex")}
443
443
 
444
- :host{color:${P};cursor:pointer;font-family:${v};font-size:${B};font-weight:${_};line-height:${O};user-select:none}.asterisk{color:${wn};margin-inline-start:${pe}}:host([size='small']){font-size:${F};line-height:${X}}:host([size='large']){font-size:${ue};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${M}}:host([disabled]),:host([disabled]) .asterisk{color:${S}}`;function Ap(){return b`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const _p=Ap(),Ep=Po.compose({name:`${p.prefix}-label`,template:_p,styles:Op});Ep.define(p.registry);var Np=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Np(e,t,i),i};class Li extends qe{constructor(){super(...arguments),this.inline=!1}}ba([a],Li.prototype,"appearance",2),ba([a({mode:"boolean"})],Li.prototype,"inline",2);const Mp=u`
444
+ :host{color:${P};cursor:pointer;font-family:${v};font-size:${B};font-weight:${_};line-height:${O};user-select:none}.asterisk{color:${wn};margin-inline-start:${pe}}:host([size='small']){font-size:${F};line-height:${X}}:host([size='large']){font-size:${ue};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${M}}:host([disabled]),:host([disabled]) .asterisk{color:${S}}`;function Ap(){return b`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const _p=Ap(),Ep=Po.compose({name:`${p.prefix}-label`,template:_p,styles:Op});Ep.define(p.registry);var Np=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Np(e,t,i),i};class Li extends Ge{constructor(){super(...arguments),this.inline=!1}}ba([a],Li.prototype,"appearance",2),ba([a({mode:"boolean"})],Li.prototype,"inline",2);const Mp=u`
445
445
  ${k("inline")}
446
446
 
447
447
  :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Ol};cursor:pointer;font-family:${v};font-size:${B};font-weight:${_};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${T};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Al}}:host(:active){color:${_l}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Fl}}}:host([appearance='subtle']){color:${El}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(u`
@@ -456,19 +456,19 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
456
456
  ${k("grid")}
457
457
 
458
458
  :host{--indent:0;align-items:center;background:${I};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${_} ${B} / ${O} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${tr};color:${Mt}}:host(:active){background-color:${dn};color:${Dt}}:host(:active) ::slotted([slot='start']){color:${Ml}}:host(${ye}){background-color:${it};color:${S}}:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:${S}}:host(:focus-visible){border-radius:${C};outline:2px solid ${Ce}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${wr})) .submenu-glyph,:host(:not(${wr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ie};font:${_} ${F} / ${X} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${wr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${wr}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;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(u`
459
- :host(${ye}),:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:GrayText}`)),Jp=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),eb=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function tb(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${Ve(o)}<div part="content" class="content"><slot></slot></div>${rt(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${H({property:"slottedSubmenu"})}></slot></template>`}const ob=tb({indicator:Jp,submenuGlyph:eb}),rb=Ae.compose({name:`${p.prefix}-menu-item`,template:ob,styles:Zp});rb.define(p.registry);var ib=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,nb=(o,e,t,r)=>{for(var i=r>1?void 0:r?sb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ib(e,t,i),i};const ji=class os extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&si(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuItems.length-1;for(let s=r+1;s<=i;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Ae||si(e)&&e.getAttribute("role")in os.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Y.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(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case lo:this.setFocus(this.focusIndex+1,1);return;case uo:this.setFocus(this.focusIndex-1,-1);return;case po:this.setFocus(this.menuItems.length-1,-1);return;case go:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),r=e.querySelector("[slot=start]");return t&&t!==te.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),s=i?.reduce((n,c)=>{const h=os.elementIndent(c);return Math.max(n,h)},0);i?.forEach(n=>{n instanceof Ae&&n.setAttribute("data-indent",`${s}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};ji.focusableElementRoles=te,nb([g],ji.prototype,"items",2);let ab=ji;const lb=u`
459
+ :host(${ye}),:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:GrayText}`)),Jp=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),eb=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function tb(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${He(o)}<div part="content" class="content"><slot></slot></div>${rt(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${H({property:"slottedSubmenu"})}></slot></template>`}const ob=tb({indicator:Jp,submenuGlyph:eb}),rb=Ae.compose({name:`${p.prefix}-menu-item`,template:ob,styles:Zp});rb.define(p.registry);var ib=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,nb=(o,e,t,r)=>{for(var i=r>1?void 0:r?sb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ib(e,t,i),i};const ji=class os extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&si(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuItems.length-1;for(let s=r+1;s<=i;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Ae||si(e)&&e.getAttribute("role")in os.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Y.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(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case lo:this.setFocus(this.focusIndex+1,1);return;case uo:this.setFocus(this.focusIndex-1,-1);return;case po:this.setFocus(this.menuItems.length-1,-1);return;case go:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),r=e.querySelector("[slot=start]");return t&&t!==te.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),s=i?.reduce((n,c)=>{const h=os.elementIndent(c);return Math.max(n,h)},0);i?.forEach(n=>{n instanceof Ae&&n.setAttribute("data-indent",`${s}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};ji.focusableElementRoles=te,nb([g],ji.prototype,"items",2);let ab=ji;const lb=u`
460
460
  ${k("flex")}
461
461
 
462
462
  :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${I};border:1px solid ${J};border-radius:${C};box-shadow:${xi};padding:4px;row-gap:2px}`;function cb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${H("items")}></slot></template>`}const db=cb(),hb=ab.compose({name:`${p.prefix}-menu-list`,template:db,styles:lb});hb.define(p.registry);var ub=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,dt=(o,e,t,r)=>{for(var i=r>1?void 0:r?pb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ub(e,t,i),i};class et extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ae&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Yo:case bo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Y.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(){Y.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Y.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?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(e){if(e.defaultPrevented)return;switch(e.key){case gl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case fl:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}dt([a({attribute:"open-on-hover",mode:"boolean"})],et.prototype,"openOnHover",2),dt([a({attribute:"open-on-context",mode:"boolean"})],et.prototype,"openOnContext",2),dt([a({attribute:"close-on-scroll",mode:"boolean"})],et.prototype,"closeOnScroll",2),dt([a({attribute:"persist-on-item-click",mode:"boolean"})],et.prototype,"persistOnItemClick",2),dt([a({mode:"boolean"})],et.prototype,"split",2),dt([g],et.prototype,"slottedMenuList",2),dt([g],et.prototype,"slottedTriggers",2),dt([g],et.prototype,"primaryAction",2);const bb=u`
463
463
  ${k("inline-block")}
464
464
 
465
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${Le};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function gb(){return b`<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,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${V("primaryAction")}></slot><slot name="trigger" ${H({property:"slottedTriggers",filter:gt()})}></slot><slot ${H({property:"slottedMenuList",filter:gt()})}></slot></template>`}const fb=gb(),mb=et.compose({name:`${p.prefix}-menu`,template:fb,styles:bb});mb.define(p.registry);var vb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,Ri=(o,e,t,r)=>{for(var i=r>1?void 0:r?$b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vb(e,t,i),i};class Tr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ri([a],Tr.prototype,"shape",2),Ri([a],Tr.prototype,"layout",2),Ri([a],Tr.prototype,"intent",2);const yb=u`
466
- :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${X};width:100%;background:${mo};border:1px solid ${Le};padding-inline:${ae};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${Sn};border-color:${oc}}:host([intent='warning']){background-color:${Pn};border-color:${Tn}}:host([intent='error']){background-color:${yn};border-color:${kn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
467
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${ae}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ie};margin-inline-end:${je}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${je};gap:${je}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${q}}::slotted(*){font-size:inherit}`;function xb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const kb=xb(),wb=Tr.compose({name:`${p.prefix}-message-bar`,template:kb,styles:yb,shadowOptions:{mode:p.shadowRootMode}});wb.define(p.registry);var Cb=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cb(e,t,i),i};class ce extends ${constructor(){super(),this.active=!1,this.id=Co("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Y.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,xe([g],ce.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),xe([g],ce.prototype,"descriptionSlot",2),xe([g],ce.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ce.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ce.prototype,"freeform",2),xe([a({attribute:"id"})],ce.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),xe([g],ce.prototype,"multiple",2),xe([a],ce.prototype,"name",2),xe([g],ce.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const Ib=u`
465
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${je};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function gb(){return b`<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,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${V("primaryAction")}></slot><slot name="trigger" ${H({property:"slottedTriggers",filter:gt()})}></slot><slot ${H({property:"slottedMenuList",filter:gt()})}></slot></template>`}const fb=gb(),mb=et.compose({name:`${p.prefix}-menu`,template:fb,styles:bb});mb.define(p.registry);var vb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,Ri=(o,e,t,r)=>{for(var i=r>1?void 0:r?$b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vb(e,t,i),i};class Tr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ri([a],Tr.prototype,"shape",2),Ri([a],Tr.prototype,"layout",2),Ri([a],Tr.prototype,"intent",2);const yb=u`
466
+ :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${X};width:100%;background:${mo};border:1px solid ${je};padding-inline:${ae};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${Sn};border-color:${oc}}:host([intent='warning']){background-color:${Pn};border-color:${Tn}}:host([intent='error']){background-color:${yn};border-color:${kn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
467
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${ae}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ie};margin-inline-end:${Re}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Re};gap:${Re}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${q}}::slotted(*){font-size:inherit}`;function xb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const kb=xb(),wb=Tr.compose({name:`${p.prefix}-message-bar`,template:kb,styles:yb,shadowOptions:{mode:p.shadowRootMode}});wb.define(p.registry);var Cb=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cb(e,t,i),i};class ce extends ${constructor(){super(),this.active=!1,this.id=Co("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Y.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,xe([g],ce.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),xe([g],ce.prototype,"descriptionSlot",2),xe([g],ce.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ce.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ce.prototype,"freeform",2),xe([a({attribute:"id"})],ce.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),xe([g],ce.prototype,"multiple",2),xe([a],ce.prototype,"name",2),xe([g],ce.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const Ib=u`
468
468
  ${k("inline-grid")}
469
469
 
470
470
  :host{-webkit-tap-highlight-color:transparent;${ia}
471
- align-items:center;background-color:${I};border-radius:${C};border:${ve} solid ${J};box-sizing:border-box;color:${Ie};column-gap:${pe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee}}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${tr};color:${Mt}}:host(:active){background-color:${or};color:${Dt}}:host(:disabled){background-color:${I};color:${S};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ni}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${I};border-radius:${Oe};border:${T} solid ${He};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Ni}) .checkmark-12-regular{background-color:${vt};border-color:${xt};fill:${ft}}:host(:disabled${Kt}) .checkmark-12-regular{border-color:${we}}:host(:disabled${Kt}${Ni}) .checkmark-12-regular{background-color:${it}}:host(${Hh}){border:${ve} solid ${Ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${Rh}){column-gap:${ee};grid-template-areas:'indicator start content'
471
+ align-items:center;background-color:${I};border-radius:${C};border:${ve} solid ${J};box-sizing:border-box;color:${Ie};column-gap:${pe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee}}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${tr};color:${Mt}}:host(:active){background-color:${or};color:${Dt}}:host(:disabled){background-color:${I};color:${S};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ni}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${I};border-radius:${Oe};border:${T} solid ${Le};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Ni}) .checkmark-12-regular{background-color:${vt};border-color:${xt};fill:${ft}}:host(:disabled${Kt}) .checkmark-12-regular{border-color:${we}}:host(:disabled${Kt}${Ni}) .checkmark-12-regular{background-color:${it}}:host(${Hh}){border:${ve} solid ${Ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${Rh}){column-gap:${ee};grid-template-areas:'indicator start content'
472
472
  'indicator start description'}::slotted([slot='description']){color:${ie};grid-area:description;${sa}}`,Pb=b.partial(`
473
473
  <svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
474
474
  <path
@@ -480,7 +480,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
480
480
  d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"
481
481
  />
482
482
  </svg>
483
- `);function zb(o={}){return b`<slot name="checked-indicator">${he(o.checkedIndicator)}</slot>${Ve(o)}<div class="content" part="content"><slot ${H({property:"freeformOutputs",filter:gt("output")})}></slot></div><div class="description" part="description"><slot name="description" ${H("descriptionSlot")}></slot></div>`}const Tb=zb({checkedIndicator:Pb}),Bb=ce.compose({name:`${p.prefix}-option`,template:Tb,styles:Ib});Bb.define(p.registry);const Ob={success:"success",warning:"warning",error:"error"};var Ab=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?_b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ab(e,t,i),i};class eo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){St(this.elementInternals,e,t,Ob)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null}get percentComplete(){const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e;return i===0?0:Math.fround((r-e)/i*100)}}To([a({attribute:"validation-state"})],eo.prototype,"validationState",2),To([a({converter:Q})],eo.prototype,"value",2),To([a({converter:Q})],eo.prototype,"min",2),To([a({converter:Q})],eo.prototype,"max",2),To([Gr],eo.prototype,"percentComplete",1);var Eb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Eb(e,t,i),i};class qi extends eo{}ga([a],qi.prototype,"thickness",2),ga([a],qi.prototype,"shape",2);const Fb=u`
483
+ `);function zb(o={}){return b`<slot name="checked-indicator">${he(o.checkedIndicator)}</slot>${He(o)}<div class="content" part="content"><slot ${H({property:"freeformOutputs",filter:gt("output")})}></slot></div><div class="description" part="description"><slot name="description" ${H("descriptionSlot")}></slot></div>`}const Tb=zb({checkedIndicator:Pb}),Bb=ce.compose({name:`${p.prefix}-option`,template:Tb,styles:Ib});Bb.define(p.registry);const Ob={success:"success",warning:"warning",error:"error"};var Ab=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?_b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ab(e,t,i),i};class eo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){St(this.elementInternals,e,t,Ob)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null}get percentComplete(){const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e;return i===0?0:Math.fround((r-e)/i*100)}}To([a({attribute:"validation-state"})],eo.prototype,"validationState",2),To([a({converter:Q})],eo.prototype,"value",2),To([a({converter:Q})],eo.prototype,"min",2),To([a({converter:Q})],eo.prototype,"max",2),To([Gr],eo.prototype,"percentComplete",1);var Eb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Eb(e,t,i),i};class qi extends eo{}ga([a],qi.prototype,"thickness",2),ga([a],qi.prototype,"shape",2);const Fb=u`
484
484
  ${k("block")}
485
485
 
486
486
  :host{width:100%;height:2px;overflow-x:hidden;background-color:${rr};border-radius:${C};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${nr}}.indicator{background-color:${vt};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(
@@ -492,22 +492,22 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
492
492
  :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ur}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ie}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${P}}::slotted(${ye}){color:${S}}::slotted(${x}){color:${P}}`;function Rb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const qb=Rb(),Gb=tt.compose({name:`${p.prefix}-radio-group`,template:qb,styles:jb});Gb.define(p.registry);const Wb=u`
493
493
  ${k("inline-flex")}
494
494
 
495
- :host{--size:16px;aspect-ratio:1;background-color:${I};border:${T} solid ${He};border-radius:${fe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${fe};color:${ft};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:${ve} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}:host(:hover){border-color:${$t}}:host(${x}){border-color:${xt}}:host(${x}) .checked-indicator{background-color:${vt}}:host(${x}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${yt}}:host(${x}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${ye}){background-color:${it};border-color:${we}}:host(${x}${ye}) .checked-indicator{background-color:${we}}`.withBehaviors(Z(u`
495
+ :host{--size:16px;aspect-ratio:1;background-color:${I};border:${T} solid ${Le};border-radius:${fe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${fe};color:${ft};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:${ve} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}:host(:hover){border-color:${$t}}:host(${x}){border-color:${xt}}:host(${x}) .checked-indicator{background-color:${vt}}:host(${x}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${yt}}:host(${x}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${ye}){background-color:${it};border-color:${we}}:host(${x}${ye}) .checked-indicator{background-color:${we}}`.withBehaviors(Z(u`
496
496
  :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${ye}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${ye}):hover) .checked-indicator{background-color:Highlight}:host(${ye}){border-color:GrayText;color:GrayText}:host(${ye}${x}) .checked-indicator{background-color:GrayText}`)),Xb=b.partial(`
497
497
  <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
498
498
  `);function Ub(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot></template>`}const Kb=Ub({checkedIndicator:Xb}),Yb=fa.compose({name:`${p.prefix}-radio`,template:Kb,styles:Wb});Yb.define(p.registry);var Qb=Object.defineProperty,Zb=Object.getOwnPropertyDescriptor,to=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qb(e,t,i),i};class Tt extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const r=this.getSelectedValue();for(let i=0;i<this.getMaxIcons();i++){const s=(i+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${s===r?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}to([a({converter:Q})],Tt.prototype,"count",2),to([a({attribute:"icon-view-box"})],Tt.prototype,"iconViewBox",2),to([a({converter:Q})],Tt.prototype,"max",2),to([a({converter:Q})],Tt.prototype,"value",2),to([g],Tt.prototype,"slottedIcon",2),to([g],Tt.prototype,"customIcon",2);var Jb=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,Gi=(o,e,t,r)=>{for(var i=r>1?void 0:r?eg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jb(e,t,i),i};class Br extends Tt{constructor(){super(...arguments),this.compact=!1}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}Gi([a],Br.prototype,"color",2),Gi([a],Br.prototype,"size",2),Gi([a({mode:"boolean"})],Br.prototype,"compact",2);const tg=u`
499
499
  ${k("inline-flex")}
500
500
 
501
501
  :host{--icon-size:16px;--icon-color-filled:${hc};--icon-color-empty:${On};align-items:center;color:${P};font-family:${v};font-size:${F};line-height:${X};contain:layout style;user-select:none}:host([size='small']){--icon-size:12px}:host([size='large']){--icon-size:20px;font-size:${B};line-height:${O}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${R}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host([color='neutral']) svg{--icon-color-filled:${P}}:host([color='brand']) svg{--icon-color-filled:${bi}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host([color='neutral']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='neutral']) svg[selected] ~ svg{--icon-color-empty:${or}}:host([color='brand']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='brand']) svg[selected] ~ svg{--icon-color-empty:${gi}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${pe};font-weight:${M}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${R}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ee}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${pe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${R}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ee}}`.withBehaviors(Z(u`
502
- :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}`)),og=b`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function rg(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${H({property:"slottedIcon",filter:gt("svg")})}>${og}</slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const ig=rg(),sg=Br.compose({name:`${p.prefix}-rating-display`,template:ig,styles:tg});sg.define(p.registry);const ng=Se,ag={singleValue:"single-value"};function $a(o,e,t,r){let i=ni(0,1,(o-e)/(t-e));return r===De.rtl&&(i=1-i),i}var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,oe=(o,e,t,r)=>{for(var i=r>1?void 0:r?cg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lg(e,t,i),i};class W extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=De.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=ag.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ng.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
503
- :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=ni(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=ai(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==De.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==De.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case go:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case po:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case ho:case uo:e.shiftKey||(e.preventDefault(),this.increment());break;case co:case lo:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=$a(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=$a(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}W.formAssociated=!0,oe([a],W.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),oe([g],W.prototype,"direction",2),oe([g],W.prototype,"isDragging",2),oe([g],W.prototype,"position",2),oe([g],W.prototype,"trackWidth",2),oe([g],W.prototype,"trackMinWidth",2),oe([g],W.prototype,"trackHeight",2),oe([g],W.prototype,"trackLeft",2),oe([g],W.prototype,"trackMinHeight",2),oe([g],W.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],W.prototype,"disabled",2),oe([a({converter:ii})],W.prototype,"min",2),oe([a({converter:ii})],W.prototype,"max",2),oe([a({converter:ii})],W.prototype,"step",2),oe([a],W.prototype,"orientation",2),oe([a],W.prototype,"mode",2);const dg=u`
502
+ :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}`)),og=b`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function rg(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${H({property:"slottedIcon",filter:gt("svg")})}>${og}</slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const ig=rg(),sg=Br.compose({name:`${p.prefix}-rating-display`,template:ig,styles:tg});sg.define(p.registry);const ng=Se,ag={singleValue:"single-value"};function $a(o,e,t,r){let i=ni(0,1,(o-e)/(t-e));return r===Ve.rtl&&(i=1-i),i}var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,oe=(o,e,t,r)=>{for(var i=r>1?void 0:r?cg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lg(e,t,i),i};class W extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Ve.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=ag.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ng.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
503
+ :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=ni(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=ai(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Ve.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==Ve.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case go:e.preventDefault(),this.value=this.direction!==Ve.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case po:e.preventDefault(),this.value=this.direction!==Ve.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case ho:case uo:e.shiftKey||(e.preventDefault(),this.increment());break;case co:case lo:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=$a(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=$a(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}W.formAssociated=!0,oe([a],W.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),oe([g],W.prototype,"direction",2),oe([g],W.prototype,"isDragging",2),oe([g],W.prototype,"position",2),oe([g],W.prototype,"trackWidth",2),oe([g],W.prototype,"trackMinWidth",2),oe([g],W.prototype,"trackHeight",2),oe([g],W.prototype,"trackLeft",2),oe([g],W.prototype,"trackMinHeight",2),oe([g],W.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],W.prototype,"disabled",2),oe([a({converter:ii})],W.prototype,"min",2),oe([a({converter:ii})],W.prototype,"max",2),oe([a({converter:ii})],W.prototype,"step",2),oe([a],W.prototype,"orientation",2),oe([a],W.prototype,"mode",2);const dg=u`
504
504
  ${k("inline-grid")}
505
505
 
506
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${vt};--track-color:${He};--slider-direction:90deg;--border-radius:${C};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${Ht}}:host(:disabled){--rail-color:${S};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Oe}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Ce};outline:1px solid ${mi}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
506
+ :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${vt};--track-color:${Le};--slider-direction:90deg;--border-radius:${C};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${Ht}}:host(:disabled){--rail-color:${S};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Oe}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Ce};outline:1px solid ${mi}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
507
507
  var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
508
508
  );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
509
509
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${I} calc(var(--step-rate) - 1px),${I} var(--step-rate)
510
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${fe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${I} inset;border:calc(var(--thumb-size) * 0.05) solid ${Le};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(Z(u`
510
+ )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${fe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${I} inset;border:calc(var(--thumb-size) * 0.05) solid ${je};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(Z(u`
511
511
  .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 hg(o={}){return b`<template tabindex="${e=>e.disabled?null:0}" @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${V("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${V("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${he(o.thumb)}</slot></div></template>`}const ug=hg({thumb:'<div class="thumb"></div>'}),pg=W.compose({name:`${p.prefix}-slider`,template:ug,styles:dg});pg.define(p.registry);class bg extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var gg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,ya=(o,e,t,r)=>{for(var i=r>1?void 0:r?fg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gg(e,t,i),i};class Wi extends bg{}ya([a],Wi.prototype,"size",2),ya([a],Wi.prototype,"appearance",2);const mg=u`
512
512
  ${k("inline-flex")}
513
513
 
@@ -515,37 +515,37 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
515
515
  .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),vg=b`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,$g=Wi.compose({name:`${p.prefix}-spinner`,template:vg,styles:mg});$g.define(p.registry);class yg extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function xg(o={}){return b`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${he(o.switch)}</slot></template>`}const kg=xg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),wg=u`
516
516
  ${k("inline-flex")}
517
517
 
518
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${ge};border:1px solid ${He};border-radius:${fe};cursor:pointer}:host(:hover){background:none;border-color:${$t}}:host(:active){border-color:${yt}}:host(:disabled),:host([readonly]){border:1px solid ${we};background-color:none;pointer:default}:host(${x}){background:${vt};border-color:${vt}}:host(${x}:hover){background:${Vt};border-color:${Vt}}:host(${x}:active){background:${Ht};border-color:${Ht}}:host(${x}:disabled){background:${it};border-color:${we}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ie};transition-duration:${br};transition-timing-function:${fr};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${ft};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Dl}}:host(${x}:active) .checked-indicator{background:${Vl}}:host(:hover) .checked-indicator{background-color:${zl}}:host(:active) .checked-indicator{background-color:${Tl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${x}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${J};outline:${ve} solid ${J};box-shadow:${hr},0 0 0 2px ${Ce}}`.withBehaviors(Z(u`
518
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${ge};border:1px solid ${Le};border-radius:${fe};cursor:pointer}:host(:hover){background:none;border-color:${$t}}:host(:active){border-color:${yt}}:host(:disabled),:host([readonly]){border:1px solid ${we};background-color:none;pointer:default}:host(${x}){background:${vt};border-color:${vt}}:host(${x}:hover){background:${Vt};border-color:${Vt}}:host(${x}:active){background:${Ht};border-color:${Ht}}:host(${x}:disabled){background:${it};border-color:${we}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ie};transition-duration:${br};transition-timing-function:${fr};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${ft};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Dl}}:host(${x}:active) .checked-indicator{background:${Vl}}:host(:hover) .checked-indicator{background-color:${zl}}:host(:active) .checked-indicator{background-color:${Tl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${x}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${J};outline:${ve} solid ${J};box-shadow:${hr},0 0 0 2px ${Ce}}`.withBehaviors(Z(u`
519
519
  :host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),Cg=yg.compose({name:`${p.prefix}-switch`,template:kg,styles:wg});Cg.define(p.registry);class Sg extends ${}function Ig(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Pg=Ig(),zg=u`
520
520
  ${k("block")}
521
521
 
522
522
  :host{box-sizing:border-box;padding:${ae} ${ne}}`,Tg=Sg.compose({name:`${p.prefix}-tab-panel`,template:Pg,styles:zg});Tg.define(p.registry);var Bg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,Ag=(o,e,t,r)=>{for(var i=r>1?void 0:r?Og(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bg(e,t,i),i};class Xi extends ${connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
523
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Ag([a({mode:"boolean"})],Xi.prototype,"disabled",2),Ye(Xi,Ke);function _g(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ve(o)}<span class="tab-content"><slot></slot></span>${rt(o)}</template>`}const Eg=_g({}),Ng=u`
523
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Ag([a({mode:"boolean"})],Xi.prototype,"disabled",2),Ye(Xi,Ke);function _g(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${He(o)}<span class="tab-content"><slot></slot></span>${rt(o)}</template>`}const Eg=_g({}),Ng=u`
524
524
  ${k("inline-flex")}
525
525
 
526
526
  :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${O};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${ae} ${ne};border-radius:${C}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${P};font-weight:${M}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${O};font-weight:${M}}:host([aria-selected='true'])::after{background-color:${xt};border-radius:${fe};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Lt};border-radius:${fe};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::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:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Oe};box-shadow:0 0 0 3px ${Ce};outline:1px solid ${mi}}`.withBehaviors(Z(u`
527
527
  :host([aria-selected='true'])::after{background-color:Highlight}`)),Fg=Xi.compose({name:`${p.prefix}-tab`,template:Eg,styles:Ng});Fg.define(p.registry);const Mg={subtle:"subtle",transparent:"transparent"},Or=Se;var Dg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,Ar=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dg(e,t,i),i};class Bo extends ${constructor(){super(...arguments),this.orientation=Or.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case co:e.preventDefault(),this.adjustBackward(e);break;case ho:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case uo:e.preventDefault(),this.adjustBackward(e);break;case lo:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case go:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case po:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),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 e="gridColumn",t="gridRow",r=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,s)=>{if(i.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(i),c=this.tabIds[s],h=this.tabpanelIds[s];i.setAttribute("id",c),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",h),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=c)}i.style[e]="",i.style[t]="",i.style[r]=`${s+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const r=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",r),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Or.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),r=t.indexOf(this.activetab),i=ni(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)+1:1,r===t.length&&(r=0);r<t.length&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else{if(this.activetab&&r===t.indexOf(this.activetab))break;r+1>=t.length?r=0:r+=1}}adjustBackward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)-1:0,r=r<0?t.length-1:r;r>=0&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else r-1<0?r=t.length-1:r-=1}moveToTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Ar([a],Bo.prototype,"orientation",2),Ar([a],Bo.prototype,"activeid",2),Ar([g],Bo.prototype,"tabs",2),Ar([g],Bo.prototype,"tabpanels",2);var Hg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Ui=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Hg(e,t,i),i};class Oo 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=Mg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Or.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Or.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=u`
528
528
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
529
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Ui([a],Oo.prototype,"appearance",2),Ui([a({mode:"boolean"})],Oo.prototype,"disabled",2),Ui([a],Oo.prototype,"size",2),Ye(Oo,Ke);function jg(o={}){return b` ${Ve(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${H("tabs")}></slot></div>${rt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${H("tabpanels")}></slot></div>`}const Rg=jg({}),qg=u`
529
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Ui([a],Oo.prototype,"appearance",2),Ui([a({mode:"boolean"})],Oo.prototype,"disabled",2),Ui([a],Oo.prototype,"size",2),Ye(Oo,Ke);function jg(o={}){return b` ${He(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${H("tabs")}></slot></div>${rt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${H("tabpanels")}></slot></div>`}const Rg=jg({}),qg=u`
530
530
  ${k("grid")}
531
531
 
532
- :host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${O};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.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:${vo};color:${di};fill:${ln}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${mt};fill:${mt};color:${P}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${O};padding:${Re} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${me};padding:${ur} ${ne}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${qn};transition-timing-function:${Pi}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${fe};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};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:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Re};padding-bottom:${Re}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Rt};padding-bottom:${Rt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${q};padding-bottom:${q}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ne};left:${ne}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ne};left:${ne}}: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:${Re};bottom:${Re}}: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:${q};bottom:${q}}: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:${Gt};bottom:${Gt}}`,Gg=Oo.compose({name:`${p.prefix}-tabs`,template:Rg,styles:qg});Gg.define(p.registry);const Wg=o=>o.getAttribute("aria-disabled")==="true",Xg=o=>o.hasAttribute("hidden"),_r=o=>!Wg(o)&&!Xg(o),Ug={subtle:"subtle",transparent:"transparent"},oo=Se;var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,Er=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Kg(e,t,i),i};class Ao extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=oo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&_r(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ai(this);switch(e.key){case co:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case ho:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case uo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case lo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case go:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case po:e.preventDefault(),this.adjust(this.tabs.filter(r=>_r(r)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??oo.horizontal,St(this.elementInternals,e,t,oo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs(),e){const r=this.tabs[this.prevActiveTabIndex],i=this.tabPanelMap.get(r);i&&(i.hidden=!0)}if(t&&this.activetab){const r=this.tabPanelMap.get(this.activetab);r&&(r.hidden=!1)}e!==t&&this.change()}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",i=this.getRootNode().getElementById(t);t&&i&&(i.role??(i.role="tabpanel"),i.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,i))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const r=this.activeTabIndex===t&&_r(e),i=this.tabIds[t];e.setAttribute("id",i),e.setAttribute("aria-selected",r?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=e,this.activeid=i)}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===oo.horizontal}adjust(e){const t=this.tabs.filter(n=>_r(n)),r=t.indexOf(this.activetab),i=ml(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Er([a({mode:"boolean"})],Ao.prototype,"disabled",2),Er([a],Ao.prototype,"orientation",2),Er([a],Ao.prototype,"activeid",2),Er([g],Ao.prototype,"tabs",2);var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qg(e,t,i),i};class Ki extends Ao{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=Ug.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===oo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===oo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}xa([a],Ki.prototype,"appearance",2),xa([a],Ki.prototype,"size",2);const Jg=b`<template role="tablist"><slot name="tab" ${H("tabs")}></slot></template>`,ef=u`
532
+ :host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${O};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.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:${vo};color:${di};fill:${ln}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${mt};fill:${mt};color:${P}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${O};padding:${qe} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${me};padding:${ur} ${ne}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${qn};transition-timing-function:${Pi}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${fe};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};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:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${qe};padding-bottom:${qe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Rt};padding-bottom:${Rt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${q};padding-bottom:${q}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ne};left:${ne}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ne};left:${ne}}: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:${qe};bottom:${qe}}: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:${q};bottom:${q}}: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:${Gt};bottom:${Gt}}`,Gg=Oo.compose({name:`${p.prefix}-tabs`,template:Rg,styles:qg});Gg.define(p.registry);const Wg=o=>o.getAttribute("aria-disabled")==="true",Xg=o=>o.hasAttribute("hidden"),_r=o=>!Wg(o)&&!Xg(o),Ug={subtle:"subtle",transparent:"transparent"},oo=Se;var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,Er=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Kg(e,t,i),i};class Ao extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=oo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&_r(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ai(this);switch(e.key){case co:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case ho:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case uo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case lo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case go:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case po:e.preventDefault(),this.adjust(this.tabs.filter(r=>_r(r)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??oo.horizontal,St(this.elementInternals,e,t,oo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs(),e){const r=this.tabs[this.prevActiveTabIndex],i=this.tabPanelMap.get(r);i&&(i.hidden=!0)}if(t&&this.activetab){const r=this.tabPanelMap.get(this.activetab);r&&(r.hidden=!1)}e!==t&&this.change()}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",i=this.getRootNode().getElementById(t);t&&i&&(i.role??(i.role="tabpanel"),i.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,i))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const r=this.activeTabIndex===t&&_r(e),i=this.tabIds[t];e.setAttribute("id",i),e.setAttribute("aria-selected",r?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=e,this.activeid=i)}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===oo.horizontal}adjust(e){const t=this.tabs.filter(n=>_r(n)),r=t.indexOf(this.activetab),i=ml(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Er([a({mode:"boolean"})],Ao.prototype,"disabled",2),Er([a],Ao.prototype,"orientation",2),Er([a],Ao.prototype,"activeid",2),Er([g],Ao.prototype,"tabs",2);var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qg(e,t,i),i};class Ki extends Ao{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=Ug.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===oo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===oo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}xa([a],Ki.prototype,"appearance",2),xa([a],Ki.prototype,"size",2);const Jg=b`<template role="tablist"><slot name="tab" ${H("tabs")}></slot></template>`,ef=u`
533
533
  ${k("flex")}
534
534
 
535
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${qn};transition-timing-function:${Pi}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${fe};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${S}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Re};--tabPaddingInline:${ee};font-size:${B};line-height:${O}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${ur};--tabPaddingInline:${ne};font-size:${ue};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${ne}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ne}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${q}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Rt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${q}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${q}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${Re}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Gt}}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${S}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${vo};color:${di};fill:${ln}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${mt};fill:${mt};color:${P}}`,tf=Ki.compose({name:`${p.prefix}-tablist`,template:Jg,styles:ef});tf.define(p.registry);const of={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Nr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,de=(o,e,t,r)=>{for(var i=r>1?void 0:r?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&rf(e,t,i),i};class U extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Nr.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){St(this.elementInternals,e,t,Nr,"resize-"),y(this.elementInternals,"resize",Kn(Nr,t)&&t!==Nr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}U.formAssociated=!0,de([g],U.prototype,"defaultSlottedNodes",2),de([g],U.prototype,"labelSlottedNodes",2),de([a],U.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),de([a({attribute:"dirname"})],U.prototype,"dirName",2),de([a({mode:"boolean"})],U.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),de([a({attribute:"form"})],U.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:Q})],U.prototype,"maxLength",2),de([a({attribute:"minlength",converter:Q})],U.prototype,"minLength",2),de([a],U.prototype,"name",2),de([a],U.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),de([a({mode:"boolean"})],U.prototype,"required",2),de([a({mode:"fromView"})],U.prototype,"resize",2),de([a({mode:"boolean"})],U.prototype,"spellcheck",2);var nf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Yi=(o,e,t,r)=>{for(var i=r>1?void 0:r?af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&nf(e,t,i),i};class Fr extends U{constructor(){super(...arguments),this.appearance=of.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Yi([a({mode:"fromView"})],Fr.prototype,"appearance",2),Yi([a({mode:"boolean"})],Fr.prototype,"block",2),Yi([a],Fr.prototype,"size",2);const lf=u`
535
+ :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${qn};transition-timing-function:${Pi}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${fe};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${S}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qe};--tabPaddingInline:${ee};font-size:${B};line-height:${O}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${ur};--tabPaddingInline:${ne};font-size:${ue};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${ne}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ne}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${q}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Rt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${q}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${q}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${qe}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Gt}}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${S}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${vo};color:${di};fill:${ln}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${mt};fill:${mt};color:${P}}`,tf=Ki.compose({name:`${p.prefix}-tablist`,template:Jg,styles:ef});tf.define(p.registry);const of={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Nr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,de=(o,e,t,r)=>{for(var i=r>1?void 0:r?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&rf(e,t,i),i};class U extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Nr.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){St(this.elementInternals,e,t,Nr,"resize-"),y(this.elementInternals,"resize",Kn(Nr,t)&&t!==Nr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}U.formAssociated=!0,de([g],U.prototype,"defaultSlottedNodes",2),de([g],U.prototype,"labelSlottedNodes",2),de([a],U.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),de([a({attribute:"dirname"})],U.prototype,"dirName",2),de([a({mode:"boolean"})],U.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),de([a({attribute:"form"})],U.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:Q})],U.prototype,"maxLength",2),de([a({attribute:"minlength",converter:Q})],U.prototype,"minLength",2),de([a],U.prototype,"name",2),de([a],U.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),de([a({mode:"boolean"})],U.prototype,"required",2),de([a({mode:"fromView"})],U.prototype,"resize",2),de([a({mode:"boolean"})],U.prototype,"spellcheck",2);var nf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Yi=(o,e,t,r)=>{for(var i=r>1?void 0:r?af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&nf(e,t,i),i};class Fr extends U{constructor(){super(...arguments),this.appearance=of.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Yi([a({mode:"fromView"})],Fr.prototype,"appearance",2),Yi([a({mode:"boolean"})],Fr.prototype,"block",2),Yi([a],Fr.prototype,"size",2);const lf=u`
536
536
  ${k("inline-block")}
537
537
 
538
- :host{--font-size:${B};--line-height:${O};--padding-inline:${ne};--padding-block:${Re};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${R};--color:${P};--background-color:${I};--border-color:${Le};--border-block-end-color:${He};--placeholder-color:${hi};--focus-indicator-color:${xt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Lt};--border-block-end-color:${$t}}:host(:active){--border-color:${$o};--border-block-end-color:${yt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${F};--line-height:${X};--min-block-size:40px;--padding-block:${qt};--padding-inline:${ee};--control-padding-inline:${R}}:host([size='large']){--font-size:${ue};--line-height:${me};--min-block-size:64px;--padding-block:${q};--padding-inline:${ae};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${mo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${yi}}:host(${ou}){--border-color:${vi};--border-block-end-color:${vi}}:host(:disabled){--color:${S};--background-color:${ge};--border-color:${we};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${S};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${wt};transition-duration:${Si};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${br};transition-delay:${Ct}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${pe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${ft};background-color:${hn}}`.withBehaviors(Z(u`
538
+ :host{--font-size:${B};--line-height:${O};--padding-inline:${ne};--padding-block:${qe};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${R};--color:${P};--background-color:${I};--border-color:${je};--border-block-end-color:${Le};--placeholder-color:${hi};--focus-indicator-color:${xt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Lt};--border-block-end-color:${$t}}:host(:active){--border-color:${$o};--border-block-end-color:${yt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${F};--line-height:${X};--min-block-size:40px;--padding-block:${qt};--padding-inline:${ee};--control-padding-inline:${R}}:host([size='large']){--font-size:${ue};--line-height:${me};--min-block-size:64px;--padding-block:${q};--padding-inline:${ae};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${mo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${yi}}:host(${ou}){--border-color:${vi};--border-block-end-color:${vi}}:host(:disabled){--color:${S};--background-color:${ge};--border-color:${we};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${S};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${wt};transition-duration:${Si};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${br};transition-delay:${Ct}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${pe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${ft};background-color:${hn}}`.withBehaviors(Z(u`
539
539
  :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function cf(){return b`<template><label ${V("labelEl")} for="control" part="label"><slot name="label" ${H({property:"labelSlottedNodes",filter:li})}></slot></label><div class="root" part="root"><textarea ${V("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${H({property:"defaultSlottedNodes",filter:li})}></slot></div></template>`}const df=cf(),hf=Fr.compose({name:`${p.prefix}-textarea`,template:df,styles:lf,shadowOptions:{delegatesFocus:!0}});hf.define(p.registry);const uf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},pf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var bf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,N=(o,e,t,r)=>{for(var i=r>1?void 0:r?gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&bf(e,t,i),i};class A extends ${constructor(){super(...arguments),this.type=uf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.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 e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>pf.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.validationMessage,r=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t,r)}}}A.formAssociated=!0,N([a],A.prototype,"autocomplete",2),N([a({mode:"boolean"})],A.prototype,"autofocus",2),N([a({attribute:"current-value"})],A.prototype,"currentValue",2),N([g],A.prototype,"defaultSlottedNodes",2),N([a],A.prototype,"dirname",2),N([a({mode:"boolean"})],A.prototype,"disabled",2),N([a({attribute:"form"})],A.prototype,"formAttribute",2),N([a({attribute:"value",mode:"fromView"})],A.prototype,"initialValue",2),N([a],A.prototype,"list",2),N([a({converter:Q})],A.prototype,"maxlength",2),N([a({converter:Q})],A.prototype,"minlength",2),N([a({mode:"boolean"})],A.prototype,"multiple",2),N([a],A.prototype,"name",2),N([a],A.prototype,"pattern",2),N([a],A.prototype,"placeholder",2),N([a({attribute:"readonly",mode:"boolean"})],A.prototype,"readOnly",2),N([a({mode:"boolean"})],A.prototype,"required",2),N([a({converter:Q})],A.prototype,"size",2),N([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],A.prototype,"spellcheck",2),N([a],A.prototype,"type",2),N([g],A.prototype,"controlLabel",2);var ff=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,ka=(o,e,t,r)=>{for(var i=r>1?void 0:r?mf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ff(e,t,i),i};class Mr extends A{}ka([a],Mr.prototype,"appearance",2),ka([a({attribute:"control-size"})],Mr.prototype,"controlSize",2),Ye(Mr,Ke);const vf=u`
540
540
  ${k("block")}
541
541
 
542
- :host{font-family:${v};font-size:${B};font-weight:${_};line-height:${O};max-width:400px}.label{display:flex;color:${P};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${pe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${Le};border-bottom-color:${He};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${ne};position:relative;width:100%}:has(.control:user-invalid){border-color:${vi}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${xt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Si};transition-delay:${wt}}.control{width:100%;height:100%;box-sizing:border-box;color:${P};border-radius:${C};background:${ge};font-family:${v};font-weight:${_};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ie};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${pe}}:host(:hover) .root{border-color:${Lt};border-bottom-color:${$t}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${br};transition-delay:${Ct}}:host(:focus-within:active) .root:after{border-bottom-color:${$n}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${Le}}:host(:focus-within) .control{color:${P}}:host([disabled]) .root{background:${ge};border:${T} solid ${we}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${ft};background-color:${hn}}:host([control-size='small']) .control{font-size:${F};font-weight:${_};line-height:${X}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${_};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${je};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ar}}:host([appearance='underline']) .root{background:${ge};border:0;border-radius:0;border-bottom:${T} solid ${He}}:host([appearance='underline']:hover) .root{border-bottom-color:${$t}}:host([appearance='underline']:active) .root{border-bottom-color:${yt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${yt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${we}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${yi}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${mo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${fi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${fi};background:${mo}}`;function $f(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${V("controlLabel")}><slot ${H({property:"defaultSlottedNodes",filter:li})}></slot></label><div class="root" part="root">${Ve(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${V("control")} />${rt(o)}</div></template>`}const yf=$f(),xf=Mr.compose({name:`${p.prefix}-text-input`,template:yf,styles:vf,shadowOptions:{delegatesFocus:!0}});xf.define(p.registry);var kf=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,Xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kf(e,t,i),i};class _e extends ${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}}Xe([a({mode:"boolean"})],_e.prototype,"nowrap",2),Xe([a({mode:"boolean"})],_e.prototype,"truncate",2),Xe([a({mode:"boolean"})],_e.prototype,"italic",2),Xe([a({mode:"boolean"})],_e.prototype,"underline",2),Xe([a({mode:"boolean"})],_e.prototype,"strikethrough",2),Xe([a({mode:"boolean"})],_e.prototype,"block",2),Xe([a],_e.prototype,"size",2),Xe([a],_e.prototype,"font",2),Xe([a],_e.prototype,"weight",2),Xe([a],_e.prototype,"align",2);const Cf=u`
542
+ :host{font-family:${v};font-size:${B};font-weight:${_};line-height:${O};max-width:400px}.label{display:flex;color:${P};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${pe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${je};border-bottom-color:${Le};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${ne};position:relative;width:100%}:has(.control:user-invalid){border-color:${vi}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${xt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Si};transition-delay:${wt}}.control{width:100%;height:100%;box-sizing:border-box;color:${P};border-radius:${C};background:${ge};font-family:${v};font-weight:${_};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ie};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${pe}}:host(:hover) .root{border-color:${Lt};border-bottom-color:${$t}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${br};transition-delay:${Ct}}:host(:focus-within:active) .root:after{border-bottom-color:${$n}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${je}}:host(:focus-within) .control{color:${P}}:host([disabled]) .root{background:${ge};border:${T} solid ${we}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${ft};background-color:${hn}}:host([control-size='small']) .control{font-size:${F};font-weight:${_};line-height:${X}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${_};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${Re};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ar}}:host([appearance='underline']) .root{background:${ge};border:0;border-radius:0;border-bottom:${T} solid ${Le}}:host([appearance='underline']:hover) .root{border-bottom-color:${$t}}:host([appearance='underline']:active) .root{border-bottom-color:${yt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${yt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${we}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${yi}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${mo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${fi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${fi};background:${mo}}`;function $f(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${V("controlLabel")}><slot ${H({property:"defaultSlottedNodes",filter:li})}></slot></label><div class="root" part="root">${He(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${V("control")} />${rt(o)}</div></template>`}const yf=$f(),xf=Mr.compose({name:`${p.prefix}-text-input`,template:yf,styles:vf,shadowOptions:{delegatesFocus:!0}});xf.define(p.registry);var kf=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,Ue=(o,e,t,r)=>{for(var i=r>1?void 0:r?wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kf(e,t,i),i};class _e extends ${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}}Ue([a({mode:"boolean"})],_e.prototype,"nowrap",2),Ue([a({mode:"boolean"})],_e.prototype,"truncate",2),Ue([a({mode:"boolean"})],_e.prototype,"italic",2),Ue([a({mode:"boolean"})],_e.prototype,"underline",2),Ue([a({mode:"boolean"})],_e.prototype,"strikethrough",2),Ue([a({mode:"boolean"})],_e.prototype,"block",2),Ue([a],_e.prototype,"size",2),Ue([a],_e.prototype,"font",2),Ue([a],_e.prototype,"weight",2),Ue([a],_e.prototype,"align",2);const Cf=u`
543
543
  ${k("inline")}
544
544
 
545
545
  :host{contain:content;font-family:${v};font-size:${B};line-height:${O};font-weight:${_};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${xo};line-height:${cr}}:host([size='200']){font-size:${F};line-height:${X}}:host([size='400']){font-size:${ue};line-height:${me}}:host([size='500']){font-size:${jt};line-height:${dr}}:host([size='600']){font-size:${ar};line-height:${Dn}}:host([size='700']){font-size:${En};line-height:${Vn}}:host([size='800']){font-size:${Nn};line-height:${Hn}}:host([size='900']){font-size:${Fn};line-height:${Ln}}:host([size='1000']){font-size:${Mn};line-height:${jn}}:host([font='monospace']){font-family:${gd}}:host([font='numeric']){font-family:${fd}}:host([weight='medium']){font-weight:${md}}:host([weight='semibold']){font-weight:${M}}:host([weight='bold']){font-weight:${lr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Sf=b`<slot></slot>`,If=_e.compose({name:`${p.prefix}-text`,template:Sf,styles:Cf});If.define(p.registry);var Pf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,wa=(o,e,t,r)=>{for(var i=r>1?void 0:r?zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Pf(e,t,i),i};class Qi extends Je{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}wa([a({mode:"boolean"})],Qi.prototype,"pressed",2),wa([a({mode:"boolean"})],Qi.prototype,"mixed",2);const Tf=u`
546
546
  ${$r}
547
547
 
548
- :host(${D}){border-color:${Le};background-color:${dn};color:${P};border-width:${T}}:host(${D}:hover){border-color:${Lt};background-color:${tr}}:host(${D}:active){border-color:${$o};background-color:${or}}:host(${D}[appearance='primary']){border-color:transparent;background-color:${Xl};color:${Ze}}:host(${D}[appearance='primary']:hover){background-color:${gn}}:host(${D}[appearance='primary']:active){background-color:${fn}}:host(${D}[appearance='subtle']){border-color:transparent;background-color:${pn};color:${Zo}}:host(${D}[appearance='subtle']:hover){background-color:${vo};color:${Mt}}:host(${D}[appearance='subtle']:active){background-color:${mt};color:${Dt}}:host(${D}[appearance='outline']),:host(${D}[appearance='transparent']){background-color:${bn}}:host(${D}[appearance='outline']:hover),:host(${D}[appearance='transparent']:hover){background-color:${ir}}:host(${D}[appearance='outline']:active),:host(${D}[appearance='transparent']:active){background-color:${sr}}:host(${D}[appearance='transparent']){border-color:transparent;color:${Pl}}:host(${D}[appearance='transparent']:hover){color:${Jo}}:host(${D}[appearance='transparent']:active){color:${er}}`.withBehaviors(Z(u`
548
+ :host(${D}){border-color:${je};background-color:${dn};color:${P};border-width:${T}}:host(${D}:hover){border-color:${Lt};background-color:${tr}}:host(${D}:active){border-color:${$o};background-color:${or}}:host(${D}[appearance='primary']){border-color:transparent;background-color:${Xl};color:${Ze}}:host(${D}[appearance='primary']:hover){background-color:${gn}}:host(${D}[appearance='primary']:active){background-color:${fn}}:host(${D}[appearance='subtle']){border-color:transparent;background-color:${pn};color:${Zo}}:host(${D}[appearance='subtle']:hover){background-color:${vo};color:${Mt}}:host(${D}[appearance='subtle']:active){background-color:${mt};color:${Dt}}:host(${D}[appearance='outline']),:host(${D}[appearance='transparent']){background-color:${bn}}:host(${D}[appearance='outline']:hover),:host(${D}[appearance='transparent']:hover){background-color:${ir}}:host(${D}[appearance='outline']:active),:host(${D}[appearance='transparent']:active){background-color:${sr}}:host(${D}[appearance='transparent']){border-color:transparent;color:${Pl}}:host(${D}[appearance='transparent']:hover){color:${Jo}}:host(${D}[appearance='transparent']:active){color:${er}}`.withBehaviors(Z(u`
549
549
  :host(${D}),:host(
550
550
  ${D}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
551
551
  ){background:SelectedItem;color:SelectedItemText}`)),Bf=_i(),Of=Qi.compose({name:`${p.prefix}-toggle-button`,template:Bf,styles:Tf});Of.define(p.registry);var Af=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,Dr=(o,e,t,r)=>{for(var i=r>1?void 0:r?_f(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Af(e,t,i),i};class _o extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ft("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){nn||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),nn){xl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}Y.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=i[t]??i.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[r]??n.centerX;this.anchorPositioningStyleElement.textContent=`
@@ -562,11 +562,11 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
562
562
  `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}Dr([a],_o.prototype,"id",2),Dr([a({converter:Q})],_o.prototype,"delay",2),Dr([a],_o.prototype,"positioning",2),Dr([a],_o.prototype,"anchor",2);const Te={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Ef=u`
563
563
  ${k("inline-flex")}
564
564
 
565
- :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${pe};background:${I};border-radius:${C};border:1px solid ${J};box-sizing:border-box;color:${P};display:inline-flex;filter:drop-shadow(0 0 2px ${Zl}) drop-shadow(0 4px 8px ${Jl});font-family:${v};font-size:${F};inset:unset;line-height:${X};margin:unset;max-width:240px;overflow:visible;padding:4px ${ne} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Nf=b`<template popover aria-hidden="true"><slot></slot></template>`,Ff=_o.compose({name:`${p.prefix}-tooltip`,template:Nf,styles:Ef});Ff.define(p.registry);const Ca={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Sa={small:"small",medium:"medium"};function Ue(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mf(e,t,i),i};class Zi extends ${constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.childTreeItems=[],this.elementInternals.role="tree"}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[aria-selected='true']");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Ue(t)||this.childTreeItems.length<1)return!0;const r=this.getVisibleNodes();switch(e.key){case go:{r.length&&r[0].focus();return}case po:{r.length&&r[r.length-1].focus();return}case co:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Ue(t.parentElement)&&t.parentElement.focus();return}case ho:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case lo:{this.focusNextNode(1,t);return}case uo:{this.focusNextNode(-1,t);return}case bo:{this.clickHandler(e);return}case Yo:{t.toggleSelection();return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused===null&&(this.currentFocused=this.getValidFocusableItem()),this.currentFocused!==null&&this.currentFocused.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!Ue(e.target))return!0;const t=e.target;t.toggleExpansion(),t.toggleSelection()}changeHandler(e){if(e.defaultPrevented)return;if(!Ue(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Ue(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(r=>r.selected);return t===-1&&(t=e.findIndex(r=>Ue(r))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>Ue(e)&&e.offsetParent!==null)}focusNextNode(e,t){const r=this.getVisibleNodes();if(!r.length)return;const i=r[r.indexOf(t)+e];si(i)&&i.focus()}}Ia([g],Zi.prototype,"currentSelected",2),Ia([g],Zi.prototype,"childTreeItems",2);var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vf(e,t,i),i};class Ji extends Zi{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Pa([a],Ji.prototype,"size",2),Pa([a],Ji.prototype,"appearance",2);const Lf=u`
565
+ :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${pe};background:${I};border-radius:${C};border:1px solid ${J};box-sizing:border-box;color:${P};display:inline-flex;filter:drop-shadow(0 0 2px ${Zl}) drop-shadow(0 4px 8px ${Jl});font-family:${v};font-size:${F};inset:unset;line-height:${X};margin:unset;max-width:240px;overflow:visible;padding:4px ${ne} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Nf=b`<template popover aria-hidden="true"><slot></slot></template>`,Ff=_o.compose({name:`${p.prefix}-tooltip`,template:Nf,styles:Ef});Ff.define(p.registry);const Ca={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Sa={small:"small",medium:"medium"};function Ee(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mf(e,t,i),i};class Zi extends ${constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.childTreeItems=[],this.elementInternals.role="tree"}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Ee(t)||this.childTreeItems.length<1)return!0;const r=this.getVisibleNodes();switch(e.key){case go:{r.length&&r[0].focus();return}case po:{r.length&&r[r.length-1].focus();return}case co:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Ee(t.parentElement)&&t.parentElement.focus();return}case ho:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case lo:{this.focusNextNode(1,t);return}case uo:{this.focusNextNode(-1,t);return}case bo:{this.clickHandler(e);return}case Yo:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!Ee(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Ee(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Ee(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(r=>r.selected);return t===-1&&(t=e.findIndex(r=>Ee(r))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>Ee(e)&&e.offsetParent!==null)}focusNextNode(e,t){const r=this.getVisibleNodes();if(!r.length)return;const i=r[r.indexOf(t)+e];si(i)&&i.focus()}}Ia([g],Zi.prototype,"currentSelected",2),Ia([g],Zi.prototype,"childTreeItems",2);var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vf(e,t,i),i};class Ji extends Zi{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Pa([a],Ji.prototype,"size",2),Pa([a],Ji.prototype,"appearance",2);const Lf=u`
566
566
  ${k("block")}
567
- :host{outline:none}`,jf=b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" ${ri({property:"childTreeItems",filter:o=>Ue(o)})}><slot></slot></template>`,Rf=Ji.compose({name:`${p.prefix}-tree`,template:jf,styles:Lf});Rf.define(p.registry);var qf=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,Eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qf(e,t,i),i};class ro extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.selected=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}expandedChanged(e,t){y(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.$emit("change"),y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
568
- :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{this.setIndent(e)})}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}focusHandler(e){(e.target===this||this.contains(e.target))&&this.setAttribute("tabindex","0")}blurHandler(e){e.target===this&&this.setAttribute("tabindex","-1")}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}toggleSelection(){this.selected=!this.selected}get isNestedItem(){return Ue(this.parentElement)}}Eo([a({mode:"boolean"})],ro.prototype,"expanded",2),Eo([a({mode:"boolean"})],ro.prototype,"selected",2),Eo([a({mode:"boolean"})],ro.prototype,"empty",2),Eo([a({attribute:"data-indent"})],ro.prototype,"dataIndent",2),Eo([g],ro.prototype,"childTreeItems",2);var Wf=Object.defineProperty,Xf=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wf(e,t,i),i};class es extends ro{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}za([a],es.prototype,"size",2),za([a],es.prototype,"appearance",2);const Uf=u`
567
+ :host{outline:none}`,jf=b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" ${ri({property:"childTreeItems",filter:o=>Ee(o)})}><slot></slot></template>`,Rf=Ji.compose({name:`${p.prefix}-tree`,template:jf,styles:Lf});Rf.define(p.registry);var qf=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,Eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qf(e,t,i),i};class ro extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.selected=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}expandedChanged(e,t){y(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.$emit("change"),y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
568
+ :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded=Array.from(this.querySelectorAll("*")).some(e=>Ee(e)&&e.selected),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Ee(this.parentElement)}}Eo([a({mode:"boolean"})],ro.prototype,"expanded",2),Eo([a({mode:"boolean"})],ro.prototype,"selected",2),Eo([a({mode:"boolean"})],ro.prototype,"empty",2),Eo([a({attribute:"data-indent"})],ro.prototype,"dataIndent",2),Eo([g],ro.prototype,"childTreeItems",2);var Wf=Object.defineProperty,Xf=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wf(e,t,i),i};class es extends ro{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}za([a],es.prototype,"size",2),za([a],es.prototype,"appearance",2);const Uf=u`
569
569
  ${k("block")}
570
570
 
571
571
  :host{outline:none;font-size:${B};line-height:${O}}:host(:focus-visible) .positioning-region{box-shadow:${Ci} ${Ci} ${Ci} ${Rt}
572
- ${Ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${wd};padding-inline-start:calc(var(--indent) * ${wi});padding-inline-end:${q};border-radius:${C};background-color:${un};color:${Ie};gap:${pe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${Ce}}}.content{display:flex;align-items:center;gap:${pe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${wi};height:${kt};transition:transform ${pr} ${Wn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${vo};color:${Mt}}.positioning-region:active{background-color:${mt};color:${Dt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${R}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${pn};color:${Zo}}:host([selected]) .content,:host([selected]) .chevron{color:${Bl}}:host([size='small']) .positioning-region{height:${kt};padding-inline-start:calc(var(--indent) * ${ae})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${ql}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Gl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Wl};color:${Zo}}:host([appearance='transparent']) .positioning-region{background-color:${ge}}:host([appearance='transparent']) .positioning-region:hover{background-color:${ir}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${bn};color:${Zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Kf=b`<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Yf=b`<template tabindex="-1" slot="${o=>o.isNestedItem?"item":void 0}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" ${ri({property:"childTreeItems",filter:o=>Ue(o)})}><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron"><slot name="chevron">${Kf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item"></slot></div></template>`,Qf=es.compose({name:`${p.prefix}-tree-item`,template:Yf,styles:Uf});Qf.define(p.registry);
572
+ ${Ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${wd};padding-inline-start:calc(var(--indent) * ${wi});padding-inline-end:${q};border-radius:${C};background-color:${un};color:${Ie};gap:${pe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${Ce}}}.content{display:flex;align-items:center;gap:${pe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${wi};height:${kt};transition:transform ${pr} ${Wn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${vo};color:${Mt}}.positioning-region:active{background-color:${mt};color:${Dt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${R}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${pn};color:${Zo}}:host([selected]) .content,:host([selected]) .chevron{color:${Bl}}:host([size='small']) .positioning-region{height:${kt};padding-inline-start:calc(var(--indent) * ${ae})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${ql}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Gl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Wl};color:${Zo}}:host([appearance='transparent']) .positioning-region{background-color:${ge}}:host([appearance='transparent']) .positioning-region:hover{background-color:${ir}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${bn};color:${Zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Kf=b`<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Yf=b`<template tabindex="${o=>o.selected?0:-1}" slot="${o=>o.isNestedItem?"item":void 0}" ${ri({property:"childTreeItems",filter:o=>Ee(o)})}><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron"><slot name="chevron">${Kf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item"></slot></div></template>`,Qf=es.compose({name:`${p.prefix}-tree-item`,template:Yf,styles:Uf});Qf.define(p.registry);