@fluentui/web-components 3.0.0-rc.17 → 3.0.0-rc.18

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,480 +1,4 @@
1
- const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function Yi(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function Qi(...o){return o.every(e=>e instanceof HTMLElement)}function Lr(o,e="-accordion-item"){return Yi(e)(o)}const Ca=`${u.prefix}-accordion-item`;let To;const Zi="fast-kernel";try{if(document.currentScript)To=document.currentScript.getAttribute(Zi);else{const o=document.getElementsByTagName("script");To=o[o.length-1].getAttribute(Zi)}}catch{To="isolate"}let lt;switch(To){case"share":lt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":lt=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)}`;lt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Pt=o=>typeof o=="function",Re=o=>typeof o=="string",Sa=()=>{};var Dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Dr<"u")Dr.globalThis=Dr;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 Ji={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Ji));const ee=globalThis.FAST;if(ee.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ee,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},Ji))}ee.error===void 0&&Object.assign(ee,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ia=Object.freeze([]);function Vr(){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 es(){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 ct(o){o.prototype.toJSON=Sa}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ts=o=>o,Pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ts}):{createHTML:ts};let Bo=Object.freeze({createHTML(o){return Pa.createHTML(o)},protect(o,e,t,r){return r}});const za=Bo,dt=Object.freeze({get policy(){return Bo},setPolicy(o){if(Bo!==za)throw ee.error(1201);Bo=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)}}),H=ee.getById(lt.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 Hr{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 os{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 Hr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Hr(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 Eo=Object.freeze({unknown:void 0,coupled:1}),m=ee.getById(lt.observable,()=>{const o=H.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw ee.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 os(d))),f}const n=es();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 y=this.field,X=l[y];if(X!==f){l[y]=f;const Se=l[this.callback];Pt(Se)&&Se.call(l,X,f),s(l).notify(this.name)}}}class h extends Hr{constructor(l,f,y=!1){super(l,f),this.expression=l,this.isVolatileBinding=y,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!==Eo.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 y=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let X;try{X=this.expression(l,f)}finally{r=y}return X}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 y=this.last,X=s(l),Se=y===null?this.first:{};if(Se.propertySource=l,Se.propertyName=f,Se.notifier=X,X.subscribe(this,f),y!==null){if(!this.needsRefresh){let at;r=void 0,at=y.propertySource[y.propertyName],r=this,l===at&&(this.needsRefresh=!0)}y.next=Se}this.last=Se}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 ct(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){Re(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 rs(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const is=ee.getById(lt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),zt=Object.freeze({default:{index:0,length:0,get event(){return zt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return is.get()},setEvent(o){is.set(o)}});class Ao{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class _a extends Ao{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Rr(o,e,t=m.isVolatileBinding(o)){return new _a(o,e,t)}class ss extends Ao{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ct(ss);function ns(o,e){return new ss(o,e)}let as;function ls(o){return o.map(e=>e instanceof fe?ls(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class fe{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof fe?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(as),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(ls(this.styles)),this}static setDefaultStrategy(e){as=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new fe(e):e instanceof fe?e:new fe([e])}}fe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const jr=Vr(),qr=Object.freeze({getForInstance:jr.getForInstance,getByType:jr.getByType,define(o){return jr.register({type:o}),o}});function Wr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Ur{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)=>Wr(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){Wr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Wr(this,t.controller,t)}}qr.define(Ur);const Oa=`${Math.random().toString(36).substring(2,8)}`;let Ta=0;const cs=()=>`--v${Oa}${++Ta}`;function ds(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];Pt(h)?h=new Ur(Rr(h),cs()).createCSS(s):h instanceof Ao?h=new Ur(h,cs()).createCSS(s):qr.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof fe||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 p=(o,...e)=>{const{styles:t,behaviors:r}=ds(o,e),i=new fe(t);return r.length?i.withBehaviors(...r):i};class hs{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Re(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new fe(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)}}qr.define(hs),p.partial=(o,...e)=>{const{styles:t,behaviors:r}=ds(o,e);return new hs(t,r)};const us=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ps=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,gs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,fs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,bs=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ms=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function vs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Be=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 us.test(o)},isContentBindingEndMarker(o){return ps.test(o)},isRepeatViewStartMarker(o){return gs.test(o)},isRepeatViewEndMarker(o){return fs.test(o)},isElementBoundaryStartMarker(o){return vs(o)&&bs.test(o.data.trim())},isElementBoundaryEndMarker(o){return vs(o)&&ms.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 xs(us,o)},parseContentBindingEndMarker(o){return xs(ps,o)},parseRepeatStartMarker(o){return $s(gs,o)},parseRepeatEndMarker(o){return $s(fs,o)},parseElementBoundaryStartMarker(o){return ys(bs,o.trim())},parseElementBoundaryEndMarker(o){return ys(ms,o)}});function $s(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function ys(o,e){const t=o.exec(e);return t===null?t:t[1]}function xs(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const No=Symbol.for("fe-hydration");function Fo(o){return o[No]===No}const Gr=`fast-${Math.random().toString(36).substring(2,8)}`,Mo=`${Gr}{`,to=`}${Gr}`,Ba=to.length;let Ea=0;const oo=()=>`${Gr}-${++Ea}`,ks=Object.freeze({interpolation:o=>`${Mo}${o}${to}`,attribute:o=>`${oo()}="${Mo}${o}${to}"`,comment:o=>`<!--${Mo}${o}${to}-->`}),Lo=Object.freeze({parse(o,e){const t=o.split(Mo);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(to);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Ba)}h!==""&&r.push(h)}return r}}),Xr=Vr(),Ee=Object.freeze({getForInstance:Xr.getForInstance,getByType:Xr.getByType,define(o,e){return e=e||{},e.type=o,Xr.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 Kr{constructor(e){this.options=e}createHTML(e){return ks.attribute(e(this))}createBehavior(){return this}}ct(Kr);class ws extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function Yr(o){return o.nodeType===Node.COMMENT_NODE}function Cs(o){return o.nodeType===Node.TEXT_NODE}function Ss(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Yr(e)||Cs(e)?e.data.length:e.childNodes.length),t}function Aa(o){return o instanceof DocumentFragment&&"mode"in o}function Na(o,e,t){const r=Ss(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:{Fa(h,t,n);break}case Node.COMMENT_NODE:{Ma(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Fa(o,e,t){const r=Be.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new ws(`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);Do(e[i],o,t)}o.removeAttribute(Be.attributeMarkerName)}}function Ma(o,e,t,r,i){if(Be.isElementBoundaryStartMarker(o)){La(o,e);return}if(Be.isContentBindingStartMarker(o.data)){const s=Be.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(Yr(l)){const y=Be.parseContentBindingEndMarker(l.data);if(y&&y[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const y=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Aa(y)?y.host.nodeName:y.nodeName}".`)}if(l.data="",d.length===1&&Cs(d[0]))Do(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const y=l.parentNode.insertBefore(document.createTextNode(""),l);Do(h,y,r)}}}function La(o,e){const t=Be.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(Yr(r)){const i=Be.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function Do(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Is;function Qr(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 Ps{constructor(){this.index=0,this.length=0}get event(){return zt.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 Vo extends Ps{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=Eo.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(){Qr(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){Qr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}ct(Vo),m.defineProperty(Vo.prototype,"index"),m.defineProperty(Vo.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Da extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Va extends Ps{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Is]=No,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Eo.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}=Na(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof ws){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&&Do(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 Da(`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,Ss(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(){Qr(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}}Is=No,ct(Va);function Ha(o){return o.create!==void 0}function Ra(o,e,t,r){if(t==null&&(t=""),Ha(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Fo(r)&&Fo(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 ja(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 y=d[l];y!==""&&(n[y]=c,h.add(y))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const qa={[K.attribute]:dt.setAttribute,[K.booleanAttribute]:dt.setBooleanAttribute,[K.property]:(o,e,t)=>o[e]=t,[K.content]:Ra,[K.tokenList]:ja,[K.event]:()=>{}};class Ot{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=K.content}createHTML(e){return ks.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=qa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ee.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=Fo(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){zt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);zt.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)}}Ee.define(Ot,{aspected:!0});const zs=(o,e)=>`${o}.${e}`,_s={},Ae={index:0,node:null};function Os(o){o.startsWith("fast-")||ee.warn(1204,{name:o})}const Wa=new Proxy(document.createElement("div"),{get(o,e){Os(e);const t=Reflect.get(o,e);return Pt(t)?t.bind(o):t},set(o,e,t){return Os(e),Reflect.set(o,e,t)}});class Ua{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:oo(),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=_s[t];if(!s){const n=`_${t}`;_s[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??Wa;for(const i of this.nodeIds)r[i];return new Vo(t,this.factories,r)}}function Ts(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,y=Lo.parse(f,c);let X=null;y===null?s&&(X=new Ot(ns(()=>f,o.policy)),Ee.assignAspect(X,l.name)):X=Zr.aggregate(y,o.policy),X!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(X,e,r,i,t.tagName))}}function Ga(o,e,t,r,i){const s=Lo.parse(e.textContent,o.directives);if(s===null)return Ae.node=e.nextSibling,Ae.index=i+1,Ae;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=zs(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Re(l)?n.textContent=l:(n.textContent=" ",Ee.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Ae.index=i+1,Ae.node=c.nextSibling,Ae}function Bs(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=Xa(o,t,i,r);i=s.node,r=s.index}}function Xa(o,e,t,r){const i=zs(e,r);switch(t.nodeType){case 1:Ts(o,e,t,i,r),Bs(o,t,i);break;case 3:return Ga(o,t,e,i,r);case 8:const s=Lo.parse(t.data,o.directives);s!==null&&o.addFactory(Zr.aggregate(s),e,i,r,null);break}return Ae.index=r+1,Ae.node=t.nextSibling,Ae}function Ka(o,e){return o&&o.nodeType==8&&Lo.parse(o.data,e)!==null}const Es="TEMPLATE",Zr={compile(o,e,t=dt.policy){let r;if(Re(o)){r=document.createElement(Es),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Es&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ua(i,e,t);return Ts(s,"",r,"h",0,!0),(Ka(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Bs(s,i,"r"),Ae.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=dt.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>Re(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 y=0;y<s;++y)f+=n[y](d,l);return f},h=new Ot(Rr(c,i??e,r));return Ee.assignAspect(h,t),h}},Ya=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Qa=Object.create(null);class ht{constructor(e,t=Qa){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}ht.empty=new ht(""),Ee.define(ht);function Za(o,e,t,r=Ee.getForInstance(o)){if(r.aspected){const i=Ya.exec(e);i!==null&&Ee.assignAspect(o,i[2])}return o.createHTML(t)}class Nr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=Zr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new ht(Re(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ee.error(1208);if(this.policy)throw ee.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=oo();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,Pt(l))l=new Ot(Rr(l));else if(l instanceof Ao)l=new Ot(l);else if(!(f=Ee.getForInstance(l))){const y=l;l=new Ot(ns(()=>y))}i+=Za(l,d,n,f)}return new Nr(i+e[e.length-1],s,r)}}ct(Nr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Nr.create(o,e);throw ee.error(1206)};b.partial=o=>new ht(o);class As extends Kr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ee.define(As);const z=o=>new As(o),Ja=o=>o.nodeType===1,ro=o=>o?e=>e.nodeType===1&&e.matches(o):Ja;class el extends Kr{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,Ia),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 Ns="slotchange";class Fs extends el{observe(e){e.addEventListener(Ns,this)}disconnect(e){e.removeEventListener(Ns,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ee.define(Fs);function W(o){return Re(o)&&(o={property:o}),new Fs(o)}const Ms="boolean",Ls="reflect",Ho=Object.freeze({locate:es()}),tl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Ds(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const te={toView(o){const e=Ds(o);return e&&e.toString()},fromView:Ds};class Fr{constructor(e,t,r=t.toLowerCase(),i=Ls,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===Ms&&s===void 0&&(this.converter=tl)}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"||H.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ls:const s=this.converter;dt.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Ms:dt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Ho.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];Re(d)?r.push(new Fr(e,d)):r.push(new Fr(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),Ho.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Vs={mode:"open"},Hs={},Rs=new Set,Ro=ee.getById(lt.elementRegistry,()=>Vr());class Te{constructor(e,t=e.definition){var r;this.platformDefined=!1,Re(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=Fr.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?Vs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Vs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Hs:Object.assign(Object.assign({},Hs),t.elementOptions),this.styles=fe.normalize(t.styles),Ro.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 Rs.has(e)||Ro.getByType(e)?new Te(class extends e{},t):new Te(e,t)}static registerBaseType(e){Rs.add(e)}}Te.getByType=Ro.getByType,Te.getForInstance=Ro.getForInstance;class ol 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:zt.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:oo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:oo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:dt.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 rl={bubbles:!0,composed:!0,cancelable:!0},jo="isConnected",js=new WeakMap;function io(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:js.get(o))!==null&&t!==void 0?t:null}let qs;class Tt extends os{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"&&js.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,jo),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:zt.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=io(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=io(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,jo))}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,jo),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},rl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=io(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=Eo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Te.getForInstance(e);if(r===void 0)throw ee.error(1401);return e.$fastController=new qs(e,r)}static setStrategy(e){qs=e}}ct(Tt),Tt.setStrategy(Tt);function qo(o){var e;return"adoptedStyleSheets"in o?o:(e=io(o))!==null&&e!==void 0?e:o.getRootNode()}class Mr{constructor(e){const t=Mr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){Us(qo(e),this.sheets)}removeStylesFrom(e){Gs(qo(e),this.sheets)}}Mr.styleSheetCache=new Map;let il=0;const sl=()=>`fast-${++il}`;function Ws(o){return o===document?document.body:o}class nl{constructor(e){this.styles=e,this.styleClass=sl()}addStylesTo(e){e=Ws(qo(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=Ws(qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Us=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Gs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(fe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Us=(o,e)=>{o.adoptedStyleSheets.push(...e)},Gs=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}fe.setDefaultStrategy(Mr)}else fe.setDefaultStrategy(nl);const Xs="defer-hydration",Ks="needs-hydration";class It extends Tt{static hydrationObserverHandler(e){for(const t of e)It.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Ks)!==null),this.source.hasAttribute(Xs)){It.hydrationObserver.observe(this.source,{attributeFilter:[Xs]});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=io(r))!==null&&e!==void 0?e:r;if(this.template)if(Fo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Be.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Be.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(Ks),this.needsInitialization=this.needsHydration=!1,m.notify(this,jo)}disconnect(){super.disconnect(),It.hydrationObserver.unobserve(this.source)}static install(){Tt.setStrategy(It)}}It.hydrationObserver=new ol(It.hydrationObserverHandler);function Ys(o){const e=class extends o{constructor(){super(),Tt.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 Te.registerBaseType(e),e}function al(o,e){return Pt(o)?Te.compose(o,e):Te.compose(this,o)}function ll(o,e){return Pt(o)?Te.compose(o,e).define().type:Te.compose(this,o).define().type}function cl(o){return Ys(o)}const k=Object.assign(Ys(HTMLElement),{from:cl,define:ll,compose:al});function ae(o){return o?typeof o=="string"?new ht(o):"inline"in o?o.inline():o:ht.empty}class Ke{}function ut(o){return b`<slot name="end" ${z("end")}>${ae(o.end)}</slot>`.inline()}function je(o){return b`<slot name="start" ${z("start")}>${ae(o.start)}</slot>`.inline()}function Ye(o,...e){const t=Ho.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Ho.locate(r).forEach(s=>t.push(s))})}var dl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,Wo=(o,e,t,r)=>{for(var i=r>1?void 0:r?hl(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&&dl(e,t,i),i};class so extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Wo([a({attribute:"heading-level",mode:"fromView",converter:te})],so.prototype,"headinglevel",2),Wo([a({mode:"boolean"})],so.prototype,"expanded",2),Wo([a({mode:"boolean"})],so.prototype,"disabled",2),Wo([g],so.prototype,"expandbutton",2);var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,Jr=(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 no extends so{constructor(){super(...arguments),this.block=!1}}Jr([a],no.prototype,"size",2),Jr([a({attribute:"marker-position"})],no.prototype,"markerPosition",2),Jr([a({mode:"boolean"})],no.prototype,"block",2),Ye(no,Ke);const gl=":host([hidden]){display:none}";function w(o){return`${gl}:host{display:${o}}`}const _="var(--colorNeutralForeground1)",Qs="var(--colorNeutralForeground1Hover)",fl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Bt="var(--colorNeutralForeground2Hover)",Et="var(--colorNeutralForeground2Pressed)",Uo="var(--colorNeutralForeground2Selected)",Go="var(--colorNeutralForeground2BrandHover)",Xo="var(--colorNeutralForeground2BrandPressed)",bl="var(--colorNeutralForeground2BrandSelected)",Y="var(--colorNeutralForeground3)",ml="var(--colorNeutralForeground3Hover)",vl="var(--colorNeutralForeground3Pressed)",$l="var(--colorNeutralForeground3Selected)",ei="var(--colorNeutralForeground4)",O="var(--colorNeutralForegroundDisabled)",yl="var(--colorBrandForegroundLink)",xl="var(--colorBrandForegroundLinkHover)",kl="var(--colorBrandForegroundLinkPressed)",wl="var(--colorNeutralForeground2Link)",Cl="var(--colorNeutralForeground2LinkHover)",Sl="var(--colorNeutralForeground2LinkPressed)",Il="var(--colorCompoundBrandForeground1Hover)",Pl="var(--colorCompoundBrandForeground1Pressed)",qe="var(--colorNeutralForegroundOnBrand)",pt="var(--colorNeutralForegroundInverted)",zl="var(--colorNeutralForegroundInvertedHover)",_l="var(--colorNeutralForegroundInvertedPressed)",Zs="var(--colorNeutralForegroundStaticInverted)",Ko="var(--colorBrandForeground1)",Ol="var(--colorBrandForeground2)",Tl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",Yo="var(--colorNeutralBackground1Hover)",ti="var(--colorNeutralBackground1Pressed)",Js="var(--colorNeutralBackground1Selected)",ao="var(--colorNeutralBackground3)",Bl="var(--colorNeutralBackground4)",El="var(--colorNeutralBackground5)",lo="var(--colorNeutralBackground6)",en="var(--colorNeutralBackgroundInverted)",tn="var(--colorSubtleBackground)",Qo="var(--colorSubtleBackgroundHover)",co="var(--colorSubtleBackgroundPressed)",on="var(--colorSubtleBackgroundSelected)",Al="var(--colorSubtleBackgroundLightAlphaHover)",Nl="var(--colorSubtleBackgroundLightAlphaPressed)",Fl="var(--colorSubtleBackgroundLightAlphaSelected)",le="var(--colorTransparentBackground)",Zo="var(--colorTransparentBackgroundHover)",Jo="var(--colorTransparentBackgroundPressed)",rn="var(--colorTransparentBackgroundSelected)",Qe="var(--colorNeutralBackgroundDisabled)",oi="var(--colorBackgroundOverlay)",sn="var(--colorBrandBackground)",nn="var(--colorBrandBackgroundHover)",an="var(--colorBrandBackgroundPressed)",Ml="var(--colorBrandBackgroundSelected)",gt="var(--colorCompoundBrandBackground)",At="var(--colorCompoundBrandBackgroundHover)",Nt="var(--colorCompoundBrandBackgroundPressed)",ln="var(--colorBrandBackgroundStatic)",cn="var(--colorBrandBackground2)",Ne="var(--colorNeutralStrokeAccessible)",ft="var(--colorNeutralStrokeAccessibleHover)",bt="var(--colorNeutralStrokeAccessiblePressed)",Fe="var(--colorNeutralStroke1)",mt="var(--colorNeutralStroke1Hover)",ho="var(--colorNeutralStroke1Pressed)",uo="var(--colorNeutralStroke2)",Ll="var(--colorNeutralStroke3)",Dl="var(--colorNeutralStrokeOnBrand2)",dn="var(--colorBrandStroke1)",hn="var(--colorBrandStroke2)",Ze="var(--colorCompoundBrandStroke)",Vl="var(--colorCompoundBrandStrokeHover)",un="var(--colorCompoundBrandStrokePressed)",be="var(--colorNeutralStrokeDisabled)",U="var(--colorTransparentStroke)",ri="var(--colorTransparentStrokeInteractive)",er="var(--colorStrokeFocus1)",ce="var(--colorStrokeFocus2)",Hl="var(--colorNeutralShadowAmbient)",Rl="var(--colorNeutralShadowKey)",pn="var(--colorPaletteRedBackground1)",jl="var(--colorPaletteRedBackground2)",gn="var(--colorPaletteRedBackground3)",fn="var(--colorPaletteRedBorder1)",ii="var(--colorPaletteRedBorder2)",si="var(--colorPaletteRedForeground1)",ql="var(--colorPaletteRedForeground2)",bn="var(--colorPaletteRedForeground3)",mn="var(--colorPaletteGreenBackground1)",vn="var(--colorPaletteGreenBackground3)",Wl="var(--colorPaletteGreenBorder1)",Ul="var(--colorPaletteGreenBorder2)",Gl="var(--colorPaletteGreenForeground1)",Xl="var(--colorPaletteGreenForeground2)",Kl="var(--colorPaletteGreenForeground3)",$n="var(--colorPaletteDarkOrangeBackground1)",yn="var(--colorPaletteDarkOrangeBackground3)",xn="var(--colorPaletteDarkOrangeBorder1)",Yl="var(--colorPaletteDarkOrangeForeground1)",kn="var(--colorPaletteDarkOrangeForeground3)",Ql="var(--colorPaletteYellowBackground1)",Zl="var(--colorPaletteYellowBackground3)",Jl="var(--colorPaletteYellowBorder1)",ni="var(--colorPaletteYellowForeground2)",wn="var(--colorPaletteMarigoldBackground2)",ec="var(--colorPaletteMarigoldBorderActive)",tc="var(--colorPaletteMarigoldForeground2)",oc="var(--colorPaletteAnchorBackground2)",rc="var(--colorPaletteAnchorForeground2)",ic="var(--colorPaletteBeigeBackground2)",sc="var(--colorPaletteBeigeForeground2)",nc="var(--colorPaletteBlueBackground2)",ac="var(--colorPaletteBlueForeground2)",lc="var(--colorPaletteBrassBackground2)",cc="var(--colorPaletteBrassForeground2)",dc="var(--colorPaletteBrownBackground2)",hc="var(--colorPaletteBrownForeground2)",uc="var(--colorPaletteCornflowerBackground2)",pc="var(--colorPaletteCornflowerForeground2)",gc="var(--colorPaletteCranberryBackground2)",fc="var(--colorPaletteCranberryForeground2)",bc="var(--colorPaletteDarkGreenBackground2)",mc="var(--colorPaletteDarkGreenForeground2)",vc="var(--colorPaletteDarkRedBackground2)",$c="var(--colorPaletteDarkRedForeground2)",yc="var(--colorPaletteForestBackground2)",xc="var(--colorPaletteForestForeground2)",kc="var(--colorPaletteGoldBackground2)",wc="var(--colorPaletteGoldForeground2)",Cc="var(--colorPaletteGrapeBackground2)",Sc="var(--colorPaletteGrapeForeground2)",Ic="var(--colorPaletteLavenderBackground2)",Pc="var(--colorPaletteLavenderForeground2)",zc="var(--colorPaletteLightTealBackground2)",_c="var(--colorPaletteLightTealForeground2)",Oc="var(--colorPaletteLilacBackground2)",Tc="var(--colorPaletteLilacForeground2)",Bc="var(--colorPaletteMagentaBackground2)",Ec="var(--colorPaletteMagentaForeground2)",Ac="var(--colorPaletteMinkBackground2)",Nc="var(--colorPaletteMinkForeground2)",Fc="var(--colorPaletteNavyBackground2)",Mc="var(--colorPaletteNavyForeground2)",Lc="var(--colorPalettePeachBackground2)",Dc="var(--colorPalettePeachForeground2)",Vc="var(--colorPalettePinkBackground2)",Hc="var(--colorPalettePinkForeground2)",Rc="var(--colorPalettePlatinumBackground2)",jc="var(--colorPalettePlatinumForeground2)",qc="var(--colorPalettePlumBackground2)",Wc="var(--colorPalettePlumForeground2)",Uc="var(--colorPalettePumpkinBackground2)",Gc="var(--colorPalettePumpkinForeground2)",Xc="var(--colorPalettePurpleBackground2)",Kc="var(--colorPalettePurpleForeground2)",Yc="var(--colorPaletteRoyalBlueBackground2)",Qc="var(--colorPaletteRoyalBlueForeground2)",Zc="var(--colorPaletteSeafoamBackground2)",Jc="var(--colorPaletteSeafoamForeground2)",ed="var(--colorPaletteSteelBackground2)",td="var(--colorPaletteSteelForeground2)",od="var(--colorPaletteTealBackground2)",rd="var(--colorPaletteTealForeground2)",tr="var(--borderRadiusNone)",Pe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",Cn="var(--borderRadiusLarge)",Sn="var(--borderRadiusXLarge)",de="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",id="var(--fontFamilyMonospace)",sd="var(--fontFamilyNumeric)",po="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",he="var(--fontSizeBase400)",Ft="var(--fontSizeBase500)",or="var(--fontSizeBase600)",In="var(--fontSizeHero700)",Pn="var(--fontSizeHero800)",zn="var(--fontSizeHero900)",_n="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",nd="var(--fontWeightMedium)",L="var(--fontWeightSemibold)",rr="var(--fontWeightBold)",ir="var(--lineHeightBase100)",R="var(--lineHeightBase200)",F="var(--lineHeightBase300)",me="var(--lineHeightBase400)",sr="var(--lineHeightBase500)",On="var(--lineHeightBase600)",Tn="var(--lineHeightHero700)",Bn="var(--lineHeightHero800)",En="var(--lineHeightHero900)",An="var(--lineHeightHero1000)",ai="var(--shadow2)",nr="var(--shadow4)",ad="var(--shadow8)",li="var(--shadow16)",ld="var(--shadow28)",Nn="var(--shadow64)",I="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",xe="var(--strokeWidthThicker)",ci="var(--strokeWidthThickest)",D="var(--spacingHorizontalXXS)",oe="var(--spacingHorizontalXS)",ve="var(--spacingHorizontalSNudge)",ze="var(--spacingHorizontalS)",We="var(--spacingHorizontalMNudge)",re="var(--spacingHorizontalM)",cd="var(--spacingHorizontalL)",dd="var(--spacingHorizontalXL)",di="var(--spacingHorizontalXXL)",hi="var(--spacingVerticalNone)",ar="var(--spacingVerticalXXS)",Mt="var(--spacingVerticalXS)",go="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",lr="var(--spacingVerticalMNudge)",hd="var(--spacingVerticalM)",ui="var(--spacingVerticalL)",vt="var(--spacingVerticalXXL)",ud="var(--spacingVerticalXXXL)",pi="var(--durationUltraFast)",cr="var(--durationFaster)",dr="var(--durationNormal)",gi="var(--durationGentle)",pd="var(--durationSlow)",Fn="var(--durationSlower)",hr="var(--durationUltraSlow)",gd="var(--curveAccelerateMax)",$t="var(--curveAccelerateMid)",fd="var(--curveAccelerateMin)",Mn="var(--curveDecelerateMax)",yt="var(--curveDecelerateMid)",bd="var(--curveDecelerateMin)",Ln="var(--curveEasyEaseMax)",ur="var(--curveEasyEase)",fi="var(--curveLinear)",md=p`
2
- ${w("block")}
3
-
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${re} ${We};border-radius:${C};font-family:${v};font-size:${B};font-weight:${E};line-height:${F};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${le};border:none;box-sizing:border-box;color:${_};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:${Pe}}: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:${ze};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${re}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${ze};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Pe};outline:none;border:2px solid ${er};box-shadow:inset 0 0 0 1px ${ce}}:host([disabled]) .button{color:${O}}: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:${F}}:host([size='small']) .heading{font-size:${N};line-height:${R}}:host([size='large']) .heading{font-size:${he};line-height:${me}}:host([size='extra-large']) .heading{font-size:${Ft};line-height:${sr}}: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:${ze};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:${re}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${We} ${re}}: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}`,vd=b.partial(`<svg
5
- width="20"
6
- height="20"
7
- viewBox="0 0 20 20"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- class="default-marker-collapsed"
11
- aria-hidden="true"
12
- >
13
- <path
14
- d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
15
- fill="currentColor"
16
- />
17
- </svg>`),$d=b.partial(`<svg
18
- width="20"
19
- height="20"
20
- viewBox="0 0 20 20"
21
- fill="none"
22
- xmlns="http://www.w3.org/2000/svg"
23
- class="default-marker-expanded"
24
- aria-hidden="true"
25
- >
26
- <path
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
- fill="currentColor"
29
- />
30
- </svg>`);function yd(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" id="control" aria-controls="panel" aria-expanded="${e=>e.expanded}" ?disabled="${e=>e.disabled}" ${z("expandbutton")}><slot name="heading"></slot></button>${je(o)}<slot name="marker-expanded">${ae(o.expandedIcon)}</slot><slot name="marker-collapsed">${ae(o.collapsedIcon)}</slot></div><div class="content" part="content" id="panel" role="region" aria-labelledby="control"><slot></slot></div>`}const xd=yd({collapsedIcon:vd,expandedIcon:$d}),kd=no.compose({name:Ca,template:xd,styles:md});kd.define(u.registry);const bi={single:"single",multi:"multi"},wd=`${u.prefix}-accordion`;function Dn(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Lt(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,s=t?.idleCallback??!1,n=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(n)===null||h&&h.timeRemaining()<=0){s?Dn(e,{timeout:i}):e();return}Dn(c,{timeout:i})};c()}var Cd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,Vn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sd(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&&Cd(e,t,i),i};class mi extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Lt(this,()=>{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.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;Lr(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===bi.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Lr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===bi.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Lr(r)&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||bi.multi,this.setItems()}}Vn([a({attribute:"expand-mode"})],mi.prototype,"expandmode",2),Vn([g],mi.prototype,"slottedAccordionItems",2);const Id=p`
31
- ${w("flex")}
32
-
33
- :host{flex-direction:column;width:100%;contain:content}`;function Pd(){return b`<template><slot ${W({property:"slottedAccordionItems",filter:ro()})}></slot></template>`}const zd=Pd(),_d=mi.compose({name:wd,template:zd,styles:Id});_d.define(u.registry);const Od={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Td={circular:"circular",rounded:"rounded",square:"square"},Bd={small:"small",medium:"medium",large:"large"},pr={submit:"submit",reset:"reset",button:"button"},Ed=`${u.prefix}-button`,Ad=Od,Nd=Td,Fd=Bd,Md={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Ld=`${u.prefix}-anchor-button`,gr=CSS.supports("anchor-name: --a"),Dd="anchor"in HTMLElement.prototype,Hn=CSS.supports("selector(:state(g))"),Rn=new Map;function P(o){return Rn.get(o)??Rn.set(o,Hn?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Hn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const vi=new WeakMap;function jn(o,e){if(!o||!e)return!1;if(vi.has(o))return vi.get(o).has(e);const t=new Set(Object.values(o));return vi.set(o,t),t.has(e)}function xt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||jn(r,t))&&$(o,`${i}${t}`,!0)}var Vd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,Je=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hd(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&&Vd(e,t,i),i};class Me extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Md){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}Je([a],Me.prototype,"download",2),Je([a],Me.prototype,"href",2),Je([a],Me.prototype,"hreflang",2),Je([a],Me.prototype,"ping",2),Je([a],Me.prototype,"referrerpolicy",2),Je([a],Me.prototype,"rel",2),Je([a],Me.prototype,"target",2),Je([a],Me.prototype,"type",2);var Rd=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,fr=(o,e,t,r)=>{for(var i=r>1?void 0:r?jd(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&&Rd(e,t,i),i};class Dt extends Me{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){xt(this.elementInternals,e,t,Ad)}shapeChanged(e,t){xt(this.elementInternals,e,t,Nd)}sizeChanged(e,t){xt(this.elementInternals,e,t,Fd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}fr([a],Dt.prototype,"appearance",2),fr([a],Dt.prototype,"shape",2),fr([a],Dt.prototype,"size",2),fr([a({attribute:"icon-only",mode:"boolean"})],Dt.prototype,"iconOnly",2),Ye(Dt,Ke);const qn=p`
34
- ${w("inline-flex")}
35
-
36
- :host{--icon-spacing:${ve};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${S};color:${_};border:${I} solid ${Fe};padding:0 ${re};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${L};line-height:${F};transition-duration:${cr};transition-property:background,border,color;transition-timing-function:${ur};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Yo};color:${Qs};border-color:${mt}}:host(:hover:active){background-color:${ti};border-color:${ho};color:${fl};outline-style:none}:host(:focus-visible){border-color:${U};outline:${ue} solid ${U};box-shadow:${nr},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:${oe};min-height:24px;min-width:64px;padding:0 ${ze};border-radius:${Pe};font-size:${N};line-height:${R};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Cn};padding:0 ${cd};font-size:${he};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:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${tr}}:host([appearance='primary']){background-color:${sn};color:${qe};border-color:transparent}:host([appearance='primary']:hover){background-color:${nn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${qe}}:host([appearance='primary']:hover:active){background-color:${an}}:host([appearance='primary']:focus-visible){border-color:${qe};box-shadow:${ai},0 0 0 2px ${ce}}:host([appearance='outline']){background-color:${le}}:host([appearance='outline']:hover){background-color:${Zo}}:host([appearance='outline']:hover:active){background-color:${Jo}}:host([appearance='subtle']){background-color:${tn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Qo};color:${Bt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${co};color:${Et};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Go}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Xo}}:host([appearance='transparent']){background-color:${le};color:${Ie}}:host([appearance='transparent']:hover){background-color:${Zo};color:${Go}}:host([appearance='transparent']:hover:active){background-color:${Jo};color:${Xo}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,br=p`
37
- ${qn}
38
-
39
- :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${Qe};border-color:${be};color:${O};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:${le}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${le};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:${le}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,qd=p`
40
- ${qn}
41
-
42
- ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Wd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${je(o)}<span class="content" part="content"><slot></slot></span>${ut(o)}</template>`}const Ud=Wd(),Gd=Dt.compose({name:Ld,template:Ud,styles:qd});Gd.define(u.registry);const Wn={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"},Un={neutral:"neutral",brand:"brand",colorful:"colorful",...Wn},Xd=`${u.prefix}-avatar`,Kd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Yd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Qd=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Zd=/\s+/g,Jd=/[\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 eh(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 th(o){return o=o.replace(Kd,""),o=o.replace(Yd,""),o=o.replace(Zd," "),o=o.trim(),o}function Gn(o,e,t){return!o||(o=th(o),Jd.test(o)||!t?.allowPhoneInitials&&Qd.test(o))?"":eh(o,e,t?.firstInitialOnly)}var oh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?rh(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&&oh(e,t,i),i};class Vt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}H.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Gn(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}fo([g],Vt.prototype,"defaultSlot",2),fo([g],Vt.prototype,"monogram",2),fo([g],Vt.prototype,"slottedDefaults",2),fo([a],Vt.prototype,"name",2),fo([a],Vt.prototype,"initials",2);var ih=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,Ht=(o,e,t,r)=>{for(var i=r>1?void 0:r?sh(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&&ih(e,t,i),i};const et=class Xi extends Vt{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||Gn(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Un.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Xi.colors[ah(this.name??"")%Xi.colors.length]:this.color??Un.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)}};et.colors=Object.values(Wn),Ht([a],et.prototype,"active",2),Ht([a],et.prototype,"shape",2),Ht([a],et.prototype,"appearance",2),Ht([a({converter:te})],et.prototype,"size",2),Ht([a],et.prototype,"color",2),Ht([a({attribute:"color-id"})],et.prototype,"colorId",2);let nh=et;const ah=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},tt={fastOutSlowInMax:Mn,fastOutSlowInMid:yt,fastOutSlowInMin:bd,slowOutFastInMax:gd,slowOutFastInMid:$t,slowOutFastInMin:fd,fastEase:Ln,normalEase:ur,nullEasing:fi},lh=p`
43
- ${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr / 1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${L};font-size:${B};border-radius:${de};color:${Y};background-color:${lo};contain:layout style}.monogram,.default-icon{grid-area:1 / 1 / -1 / -1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted) ~ .default-icon,.default-slot:is(.has-slotted,:has-slotted) ~ .monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${S}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ue} ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${po};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${N}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Ft}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${or}}: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:${Pe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Cn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Sn}}:host([data-color='brand']){color:${Zs};background-color:${ln}}:host([data-color='dark-red']){color:${$c};background-color:${vc}}:host([data-color='cranberry']){color:${fc};background-color:${gc}}:host([data-color='red']){color:${ql};background-color:${jl}}:host([data-color='pumpkin']){color:${Gc};background-color:${Uc}}:host([data-color='peach']){color:${Dc};background-color:${Lc}}:host([data-color='marigold']){color:${tc};background-color:${wn}}:host([data-color='gold']){color:${wc};background-color:${kc}}:host([data-color='brass']){color:${cc};background-color:${lc}}:host([data-color='brown']){color:${hc};background-color:${dc}}:host([data-color='forest']){color:${xc};background-color:${yc}}:host([data-color='seafoam']){color:${Jc};background-color:${Zc}}:host([data-color='dark-green']){color:${mc};background-color:${bc}}:host([data-color='light-teal']){color:${_c};background-color:${zc}}:host([data-color='teal']){color:${rd};background-color:${od}}:host([data-color='steel']){color:${td};background-color:${ed}}:host([data-color='blue']){color:${ac};background-color:${nc}}:host([data-color='royal-blue']){color:${Qc};background-color:${Yc}}:host([data-color='cornflower']){color:${pc};background-color:${uc}}:host([data-color='navy']){color:${Mc};background-color:${Fc}}:host([data-color='lavender']){color:${Pc};background-color:${Ic}}:host([data-color='purple']){color:${Kc};background-color:${Xc}}:host([data-color='grape']){color:${Sc};background-color:${Cc}}:host([data-color='lilac']){color:${Tc};background-color:${Oc}}:host([data-color='pink']){color:${Hc};background-color:${Vc}}:host([data-color='magenta']){color:${Ec};background-color:${Bc}}:host([data-color='plum']){color:${Wc};background-color:${qc}}:host([data-color='beige']){color:${sc};background-color:${ic}}:host([data-color='mink']){color:${Nc};background-color:${Ac}}:host([data-color='platinum']){color:${jc};background-color:${Rc}}:host([data-color='anchor']){color:${rc};background-color:${oc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${hr},${cr};transition-delay:${tt.fastEase},${tt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${hr},${Fn};transition-delay:${tt.fastEase},${tt.nullEasing}}:host([active])::before{box-shadow:${ad};border-style:solid;border-color:${ln}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${xe});border-width:${xe}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ci});border-width:${ci}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${nr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${li}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${ld}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${hr},${cr};transition-delay:${tt.fastOutSlowInMin},${tt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${hr},${Fn};transition-delay:${tt.fastOutSlowInMin},${tt.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}}`,ch=b`<svg width="1em" height="1em" viewBox="0 0 20 20" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function dh(){return b`<slot class="default-slot" ${W("slottedDefaults")} ${z("defaultSlot")}></slot><span class="monogram" ${z("monogram")}>${o=>o.initials}</span>${ch}<slot name="badge"></slot>`}const hh=dh(),uh=nh.compose({name:Xd,template:hh,styles:lh});uh.define(u.registry);const ph={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},gh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},fh=`${u.prefix}-badge`;var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,mr=(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&&bh(e,t,i),i};class Rt extends k{constructor(){super(...arguments),this.appearance=ph.filled,this.color=gh.brand}}mr([a],Rt.prototype,"appearance",2),mr([a],Rt.prototype,"color",2),mr([a],Rt.prototype,"shape",2),mr([a],Rt.prototype,"size",2),Ye(Rt,Ke);const Xn=p.partial`
44
- ${w("inline-flex")} :host {
45
- position: relative;
46
- box-sizing: border-box;
47
- align-items: center;
48
- justify-content: center;
49
- font-family: ${v};
50
- font-weight: ${L};
51
- font-size: ${N};
52
- line-height: ${R};
53
- min-width: 20px;
54
- height: 20px;
55
- padding-inline: calc(${oe} + ${D});
56
- border-radius: ${de};
57
- border-color: ${U};
58
- background-color: ${sn};
59
- color: ${qe};
60
- contain: content;
61
- }
62
-
63
- ::slotted(svg) {
64
- font-size: 12px;
65
- }
66
-
67
- :host(:not([appearance='ghost']))::after {
68
- position: absolute;
69
- content: '';
70
- top: 0;
71
- left: 0;
72
- bottom: 0;
73
- right: 0;
74
- border-style: solid;
75
- border-width: ${I};
76
- border-color: inherit;
77
- border-radius: inherit;
78
- }
79
- `,Kn=p.partial`
80
- :host([size='tiny']) {
81
- width: 6px;
82
- height: 6px;
83
- font-size: 4px;
84
- line-height: 4px;
85
- padding-inline: 0;
86
- min-width: unset;
87
- }
88
- :host([size='tiny']) ::slotted(svg) {
89
- font-size: 6px;
90
- }
91
- :host([size='extra-small']) {
92
- width: 10px;
93
- height: 10px;
94
- font-size: 6px;
95
- line-height: 6px;
96
- padding-inline: 0;
97
- min-width: unset;
98
- }
99
- :host([size='extra-small']) ::slotted(svg) {
100
- font-size: 10px;
101
- }
102
- :host([size='small']) {
103
- min-width: 16px;
104
- height: 16px;
105
- font-size: ${po};
106
- line-height: ${ir};
107
- padding-inline: calc(${D} + ${D});
108
- }
109
- :host([size='small']) ::slotted(svg) {
110
- font-size: 12px;
111
- }
112
- :host([size='large']) {
113
- min-width: 24px;
114
- height: 24px;
115
- font-size: ${N};
116
- line-height: ${R};
117
- padding-inline: calc(${oe} + ${D});
118
- }
119
- :host([size='large']) ::slotted(svg) {
120
- font-size: 16px;
121
- }
122
- :host([size='extra-large']) {
123
- min-width: 32px;
124
- height: 32px;
125
- font-size: ${N};
126
- line-height: ${R};
127
- padding-inline: calc(${ve} + ${D});
128
- }
129
- :host([size='extra-large']) ::slotted(svg) {
130
- font-size: 20px;
131
- }
132
- `,Yn=p.partial`
133
- :host([color='danger']) {
134
- background-color: ${gn};
135
- color: ${qe};
136
- }
137
-
138
- :host([color='important']) {
139
- background-color: ${_};
140
- color: ${S};
141
- }
142
-
143
- :host([color='informative']) {
144
- background-color: ${El};
145
- color: ${Y};
146
- }
147
-
148
- :host([color='severe']) {
149
- background-color: ${yn};
150
- color: ${qe};
151
- }
152
-
153
- :host([color='subtle']) {
154
- background-color: ${S};
155
- color: ${_};
156
- }
157
-
158
- :host([color='success']) {
159
- background-color: ${vn};
160
- color: ${qe};
161
- }
162
-
163
- :host([color='warning']) {
164
- background-color: ${Zl};
165
- color: ${Tl};
166
- }
167
- `,Qn=p.partial`
168
- :host([appearance='ghost']) {
169
- color: ${Ko};
170
- background-color: initial;
171
- }
172
-
173
- :host([appearance='ghost'][color='danger']) {
174
- color: ${bn};
175
- }
176
-
177
- :host([appearance='ghost'][color='important']) {
178
- color: ${_};
179
- }
180
-
181
- :host([appearance='ghost'][color='informative']) {
182
- color: ${Y};
183
- }
184
-
185
- :host([appearance='ghost'][color='severe']) {
186
- color: ${kn};
187
- }
188
-
189
- :host([appearance='ghost'][color='subtle']) {
190
- color: ${pt};
191
- }
192
-
193
- :host([appearance='ghost'][color='success']) {
194
- color: ${Kl};
195
- }
196
-
197
- :host([appearance='ghost'][color='warning']) {
198
- color: ${ni};
199
- }
200
- `,vh=p.partial`
201
- :host([appearance='outline']) {
202
- border-color: currentColor;
203
- color: ${Ko};
204
- background-color: initial;
205
- }
206
-
207
- :host([appearance='outline'][color='danger']) {
208
- color: ${bn};
209
- }
210
-
211
- :host([appearance='outline'][color='important']) {
212
- color: ${Y};
213
- border-color: ${Ne};
214
- }
215
-
216
- :host([appearance='outline'][color='informative']) {
217
- color: ${Y};
218
- border-color: ${uo};
219
- }
220
-
221
- :host([appearance='outline'][color='severe']) {
222
- color: ${kn};
223
- }
224
-
225
- :host([appearance='outline'][color='subtle']) {
226
- color: ${Zs};
227
- }
228
-
229
- :host([appearance='outline'][color='success']) {
230
- color: ${Xl};
231
- }
232
-
233
- :host([appearance='outline'][color='warning']) {
234
- color: ${ni};
235
- }
236
- `,$h=p.partial`
237
- :host([appearance='tint']) {
238
- background-color: ${cn};
239
- color: ${Ol};
240
- border-color: ${hn};
241
- }
242
-
243
- :host([appearance='tint'][color='danger']) {
244
- background-color: ${pn};
245
- color: ${si};
246
- border-color: ${fn};
247
- }
248
-
249
- :host([appearance='tint'][color='important']) {
250
- background-color: ${Y};
251
- color: ${S};
252
- border-color: ${U};
253
- }
254
-
255
- :host([appearance='tint'][color='informative']) {
256
- background-color: ${Bl};
257
- color: ${Y};
258
- border-color: ${uo};
259
- }
260
-
261
- :host([appearance='tint'][color='severe']) {
262
- background-color: ${$n};
263
- color: ${Yl};
264
- border-color: ${xn};
265
- }
266
-
267
- :host([appearance='tint'][color='subtle']) {
268
- background-color: ${S};
269
- color: ${Y};
270
- border-color: ${uo};
271
- }
272
-
273
- :host([appearance='tint'][color='success']) {
274
- background-color: ${mn};
275
- color: ${Gl};
276
- border-color: ${Ul};
277
- }
278
-
279
- :host([appearance='tint'][color='warning']) {
280
- background-color: ${Ql};
281
- color: ${ni};
282
- border-color: ${Jl};
283
- }
284
- `,yh=p`
285
- :host([shape='square']){border-radius:${tr}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Pe}}${$h}
286
- ${vh}
287
- ${Qn}
288
- ${Yn}
289
- ${Kn}
290
- ${Xn}
291
-
292
- @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Zn(o={}){return b` ${je(o)}<slot>${ae(o.defaultContent)}</slot>${ut(o)} `}const xh=Zn(),kh=Rt.compose({name:fh,template:xh,styles:yh});kh.define(u.registry);var wh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,$e=(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&&wh(e,t,i),i};class ne extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==pr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case pr.reset:{this.resetForm();break}case pr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==pr.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}ne.formAssociated=!0,$e([a({mode:"boolean"})],ne.prototype,"autofocus",2),$e([g],ne.prototype,"defaultSlottedContent",2),$e([a({mode:"boolean"})],ne.prototype,"disabled",2),$e([a({attribute:"disabled-focusable",mode:"boolean"})],ne.prototype,"disabledFocusable",2),$e([a({attribute:"formaction"})],ne.prototype,"formAction",2),$e([a({attribute:"form"})],ne.prototype,"formAttribute",2),$e([a({attribute:"formenctype"})],ne.prototype,"formEnctype",2),$e([a({attribute:"formmethod"})],ne.prototype,"formMethod",2),$e([a({attribute:"formnovalidate",mode:"boolean"})],ne.prototype,"formNoValidate",2),$e([a({attribute:"formtarget"})],ne.prototype,"formTarget",2),$e([a],ne.prototype,"name",2),$e([a],ne.prototype,"type",2),$e([a],ne.prototype,"value",2);var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,vr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ih(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&&Sh(e,t,i),i};class Ue extends ne{constructor(){super(...arguments),this.iconOnly=!1}}vr([a],Ue.prototype,"appearance",2),vr([a],Ue.prototype,"shape",2),vr([a],Ue.prototype,"size",2),vr([a({attribute:"icon-only",mode:"boolean"})],Ue.prototype,"iconOnly",2),Ye(Ue,Ke);function $i(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${je(o)}<span class="content" part="content"><slot ${W("defaultSlottedContent")}></slot></span>${ut(o)}</template>`}const Ph=$i(),zh=Ue.compose({name:Ed,template:Ph,styles:br});zh.define(u.registry);const _h=`${u.prefix}-checkbox`;var Oh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,ot=(o,e,t,r)=>{for(var i=r>1?void 0:r?Th(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&&Oh(e,t,i),i};class ke extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$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.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.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}}ke.formAssociated=!0,ot([a({mode:"boolean"})],ke.prototype,"autofocus",2),ot([g],ke.prototype,"disabled",2),ot([a({attribute:"disabled",mode:"boolean"})],ke.prototype,"disabledAttribute",2),ot([a({attribute:"form"})],ke.prototype,"formAttribute",2),ot([a({attribute:"checked",mode:"boolean"})],ke.prototype,"initialChecked",2),ot([a({attribute:"value",mode:"fromView"})],ke.prototype,"initialValue",2),ot([a],ke.prototype,"name",2),ot([a({mode:"boolean"})],ke.prototype,"required",2);var Bh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,yi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Eh(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 $r extends ke{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}yi([g],$r.prototype,"indeterminate",2),yi([a],$r.prototype,"shape",2),yi([a],$r.prototype,"size",2);const Ah=P("active"),Nh=P("bad-input"),x=P("checked"),Fh=P("custom-error"),Mh=P("description"),pe=P("disabled");P("error");const Lh=P("flip-block"),Dh=P("focus-visible");P("has-message");const kt=P("indeterminate"),jt=P("multiple"),Vh=P("open"),Hh=P("pattern-mismatch"),Rh=P("placeholder-shown"),M=P("pressed"),jh=P("range-overflow"),qh=P("range-underflow"),Wh=P("required"),xi=P("selected"),Uh=P("step-mismatch"),yr=P("submenu"),Gh=P("too-long"),Xh=P("too-short"),Kh=P("type-mismatch"),Yh=P("user-invalid"),Qh=P("valid"),Zh=P("value-missing"),Jh=p`
293
- ${w("inline-flex")}
294
-
295
- :host{--size:16px;background-color:${S};border-radius:${Pe};border:${I} solid ${Ne};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ft}}:host(:active){border-color:${bt}}:host(${x}:hover){background-color:${At};border-color:${Vl}}:host(${x}:active){background-color:${Nt};border-color:${un}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}.indeterminate-indicator,.checked-indicator{color:${pt};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(${kt}){border-color:${Ze}}:host(${x}),:host(${kt}) .indeterminate-indicator{background-color:${gt}}:host(${kt}) .indeterminate-indicator{border-radius:${Pe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${de}}:host([disabled]),:host([disabled]${x}){background-color:${Qe};border-color:${be}}:host([disabled]){cursor:unset}:host([disabled]${kt}) .indeterminate-indicator{background-color:${be}}:host([disabled]${x}) .checked-indicator{color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${kt}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${kt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${kt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}}`,eu=b.partial(`
296
- <svg
297
- fill="currentColor"
298
- aria-hidden="true"
299
- class="checked-indicator"
300
- width="1em"
301
- height="1em"
302
- viewBox="0 0 12 12"
303
- xmlns="http://www.w3.org/2000/svg">
304
- <path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
305
- </svg>
306
- `),tu=b.partial(`
307
- <span class="indeterminate-indicator"></span>
308
- `);function ou(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ae(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ae(o.indeterminateIndicator)}</slot></template>`}const ru=ou({checkedIndicator:eu,indeterminateIndicator:tu}),iu=$r.compose({name:_h,template:ru,styles:Jh});iu.define(u.registry);const su=`${u.prefix}-compound-button`;class nu extends Ue{}const au=p`
309
- ${br}
310
-
311
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${F}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${N};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Bt}}:host(:active) ::slotted([slot='description']){color:${Et}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${qe}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
312
- ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${Go}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Xo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
313
- ::slotted([slot='description']){color:${O}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ve}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${oe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${ze}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
314
- ::slotted([slot='description']){color:HighlightText}}`;function lu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${je(o)}<span class="content" part="content"><slot ${W("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ut(o)}</template>`}const cu=lu(),du=nu.compose({name:su,template:cu,styles:au});du.define(u.registry);const hu=`${u.prefix}-counter-badge`;var uu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,rt=(o,e,t,r)=>{for(var i=r>1?void 0:r?pu(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&&uu(e,t,i),i};class Le extends k{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}`}}rt([a],Le.prototype,"appearance",2),rt([a],Le.prototype,"color",2),rt([a],Le.prototype,"shape",2),rt([a],Le.prototype,"size",2),rt([a({converter:te})],Le.prototype,"count",2),rt([a({attribute:"overflow-count",converter:te})],Le.prototype,"overflowCount",2),rt([a({attribute:"show-zero",mode:"boolean"})],Le.prototype,"showZero",2),rt([a({mode:"boolean"})],Le.prototype,"dot",2),Ye(Le,Ke);const gu=p`
315
- :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Pe}}${Kn}
316
- ${Yn}
317
- ${Qn}
318
- ${Xn}
319
-
320
- :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function fu(o={}){return Zn({defaultContent:b`${e=>e.setCount()}`})}const bu=fu(),mu=Le.compose({name:hu,template:bu,styles:gu});mu.define(u.registry);const wt={modal:"modal",nonModal:"non-modal",alert:"alert"};function Jn(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vu=`${u.prefix}-dialog`;var $u=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,bo=(o,e,t,r)=>{for(var i=r>1?void 0:r?yu(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&&$u(e,t,i),i};class qt extends k{constructor(){super(...arguments),this.type=wt.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"})}}dialogChanged(){this.updateDialogAttributes()}typeChanged(e,t){this.updateDialogAttributes()}show(){H.enqueue(()=>{this.emitBeforeToggle(),this.type===wt.alert||this.type===wt.modal?this.dialog.showModal():this.type===wt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==wt.alert&&e.target===this.dialog&&this.hide(),!0}updateDialogAttributes(){this.dialog&&(this.type===wt.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this.type!==wt.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}}bo([g],qt.prototype,"dialog",2),bo([a({attribute:"aria-describedby"})],qt.prototype,"ariaDescribedby",2),bo([a({attribute:"aria-labelledby"})],qt.prototype,"ariaLabelledby",2),bo([a({attribute:"aria-label"})],qt.prototype,"ariaLabel",2),bo([a],qt.prototype,"type",2);const xu=b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${z("dialog")}><slot></slot></dialog>`,ku=p`
321
- @layer base{:host{--dialog-backdrop:${oi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${Sn};border:none;box-shadow:${Nn};color:${_};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${gi};transition-timing-function:${yt};opacity:0}::backdrop{transition-timing-function:${fi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${$t}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${U}}}}`,wu=qt.compose({name:vu,template:xu,styles:ku});wu.define(u.registry);const Cu=`${u.prefix}-dialog-body`;class Su extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Jn(t)&&t.hide()}return!0}}const Iu=b`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,Pu=p`
322
- ${w("grid")}
323
-
324
- :host{background:${S};box-sizing:border-box;gap:${ie};padding:${vt} ${di};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${_};column-gap:8px;display:flex;font-family:${v};font-size:${Ft};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${sr};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${vt} * -1);padding-block-end:${ie};padding-block-start:${vt}}.content{box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};line-height:${F};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${vt} * -1);padding-block-end:${vt};padding-block-start:${ui}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,zu=Su.compose({name:Cu,template:Iu,styles:Pu});zu.define(u.registry);const ye={horizontal:"horizontal",vertical:"vertical"},mo={separator:"separator",presentation:"presentation"},ea=ye,_u=`${u.prefix}-divider`;var Ou=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tu(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&&Ou(e,t,i),i};class ki extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??mo.separator,this.role!==mo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ea.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??mo.separator}`),t===mo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==mo.presentation?t??null:null,xt(this.elementInternals,e,t,ea)}}ta([a],ki.prototype,"role",2),ta([a],ki.prototype,"orientation",2);var Bu=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,wi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Eu(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&&Bu(e,t,i),i};class xr extends ki{}wi([a({attribute:"align-content"})],xr.prototype,"alignContent",2),wi([a],xr.prototype,"appearance",2),wi([a({mode:"boolean"})],xr.prototype,"inset",2);function Au(){return b`<slot></slot>`}const Nu=Au(),Fu=p`
325
- ${w("flex")}
326
-
327
- :host{contain:content}:host::after,:host::before{align-self:center;background:${uo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${N};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Fe}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${dn}}:host([appearance='brand']) ::slotted(*){color:${Ko}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ll}}:host([appearance='subtle']) ::slotted(*){color:${Y}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Mu=xr.compose({name:_u,template:Nu,styles:Fu});Mu.define(u.registry);const Lu={start:"start",end:"end"},Du={small:"small",medium:"medium",large:"large",full:"full"},vo={nonModal:"non-modal",modal:"modal",inline:"inline"},Vu=`${u.prefix}-drawer`;var Hu=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,Wt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ru(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&&Hu(e,t,i),i};class Ct extends k{constructor(){super(...arguments),this.type=vo.modal,this.position=Lu.start,this.size=Du.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"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===vo.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){H.enqueue(()=>{this.emitBeforeToggle(),this.type===vo.inline||this.type===vo.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){this.dialog&&(this.dialog.role=this.type===vo.modal?"dialog":this.role)}}Wt([a],Ct.prototype,"type",2),Wt([a({attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),Wt([a({attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),Wt([a],Ct.prototype,"position",2),Wt([a({attribute:"size"})],Ct.prototype,"size",2),Wt([g],Ct.prototype,"dialog",2);const ju=p`
328
- ${w("block")}
329
-
330
- :host{--dialog-backdrop:${oi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${B};line-height:${F};font-family:${v};font-weight:${E};color:${_};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${U};border-inline-start-color:var(--drawer-separator,${U});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Nn};border:${I} solid ${U};background:${S}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${gi};transition-timing-function:${yt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${$t}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${$t}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${gi};transition-timing-function:${yt};background:var(--dialog-backdrop,${oi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${fi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function qu(){return b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${z("dialog")}><slot></slot></dialog>`}const Wu=qu(),Uu=Ct.compose({name:Vu,template:Wu,styles:ju});Uu.define(u.registry);const Gu=`${u.prefix}-drawer-body`;class Xu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Jn(t,"-drawer")&&t.hide()}return!0}}const oa=p.partial`
331
- font-family: ${v};
332
- font-size: ${B};
333
- line-height: ${F};
334
- font-weight: ${E};
335
- `;p.partial`
336
- font-family: ${v};
337
- font-size: ${B};
338
- line-height: ${F};
339
- font-weight: ${L};
340
- `,p.partial`
341
- font-family: ${v};
342
- font-size: ${B};
343
- line-height: ${F};
344
- font-weight: ${rr};
345
- `;const Ku=p.partial`
346
- font-family: ${v};
347
- font-size: ${he};
348
- line-height: ${me};
349
- font-weight: ${E};
350
- `,ra=p.partial`
351
- font-family: ${v};
352
- font-size: ${N};
353
- line-height: ${R};
354
- font-weight: ${E};
355
- `;p.partial`
356
- font-family: ${v};
357
- font-size: ${N};
358
- line-height: ${R};
359
- font-weight: ${L};
360
- `,p.partial`
361
- font-family: ${v};
362
- font-size: ${N};
363
- line-height: ${R};
364
- font-weight: ${rr};
365
- `,p.partial`
366
- font-family: ${v};
367
- font-size: ${po};
368
- line-height: ${ir};
369
- font-weight: ${E};
370
- `,p.partial`
371
- font-family: ${v};
372
- font-size: ${po};
373
- line-height: ${ir};
374
- font-weight: ${L};
375
- `;const Yu=p.partial`
376
- font-family: ${v};
377
- font-size: ${Ft};
378
- line-height: ${sr};
379
- font-weight: ${L};
380
- `;p.partial`
381
- font-family: ${v};
382
- font-size: ${he};
383
- line-height: ${me};
384
- font-weight: ${L};
385
- `,p.partial`
386
- font-family: ${v};
387
- font-size: ${he};
388
- line-height: ${me};
389
- font-weight: ${rr};
390
- `,p.partial`
391
- font-family: ${v};
392
- font-size: ${Pn};
393
- line-height: ${Bn};
394
- font-weight: ${L};
395
- `,p.partial`
396
- font-family: ${v};
397
- font-size: ${In};
398
- line-height: ${Tn};
399
- font-weight: ${L};
400
- `,p.partial`
401
- font-family: ${v};
402
- font-size: ${or};
403
- line-height: ${On};
404
- font-weight: ${L};
405
- `,p.partial`
406
- font-family: ${v};
407
- font-size: ${zn};
408
- line-height: ${En};
409
- font-weight: ${L};
410
- `,p.partial`
411
- font-family: ${v};
412
- font-size: ${_n};
413
- line-height: ${An};
414
- font-weight: ${L};
415
- `;const Qu=p`
416
- ${w("grid")}
417
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${dd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Yu}}.footer{display:flex;justify-content:flex-start;gap:${re}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Zu(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Ju=Zu(),ep=Xu.compose({name:Gu,template:Ju,styles:Qu});ep.define(u.registry);const tp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ci={combobox:"combobox",dropdown:"dropdown",select:"select"},op=`${u.prefix}-dropdown`;function ia(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const rp=`${u.prefix}-listbox`;function kr(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ip=`${u.prefix}-option`,it={ltr:"ltr",rtl:"rtl"},sa=o=>o.closest("[dir]")?.dir==="rtl"?it.rtl:it.ltr;function na(o){return o.closest("[lang]")?.lang??"en"}let sp=0;function De(o="id-"){const e=`${o}${sp++}`;return document.getElementById(e)?De(o):e}const np=b`<svg class="chevron-down-20-regular" aria-hidden="true" slot="indicator" viewBox="0 0 20 20" ${z("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,ap=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${z("control")} />`,lp=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${z("control")}>${o=>o.displayValue}</button>`;function cp(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${z("controlSlot")}></slot><slot name="indicator" ${z("indicatorSlot")}>${ae(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const dp=cp({indicator:np});var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,G=(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};const V=class eo extends k{constructor(){super(),this.activeIndex=0,this.id=De("dropdown-"),this.required=!1,this.type=Ci.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||sa(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||De("input-"))}disabledChanged(e,t){this.listbox&&H.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(na(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),Lt(t,()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()},{idleCallback:!0}),gr){const i=De("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&H.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,gr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Ci.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||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(kr(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(na(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Ci.combobox){ap.render(this,this);return}lp.render(this,this),this._insertingControl=!1}}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let 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!kr(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Lt(this,()=>{const r=t.assignedElements().find(i=>ia(i));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),H.enqueue(()=>{this.insertControl()})}disconnectedCallback(){eo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(eo.AnchorPositionFallbackObserver||(eo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:s})=>{if(ia(s)){if(r.bottom>window.innerHeight){$(s.elementInternals,"flip-block",!0);return}r.top<0&&$(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,eo.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}eo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};V.formAssociated=!0,G([rs],V.prototype,"activeDescendant",1),G([g],V.prototype,"activeIndex",2),G([a({attribute:"aria-labelledby",mode:"fromView"})],V.prototype,"ariaLabelledBy",2),G([g],V.prototype,"control",2),G([a({mode:"boolean"})],V.prototype,"disabled",2),G([rs],V.prototype,"displayValue",1),G([a({attribute:"id"})],V.prototype,"id",2),G([g],V.prototype,"indicator",2),G([g],V.prototype,"indicatorSlot",2),G([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),G([g],V.prototype,"listbox",2),G([a({mode:"boolean"})],V.prototype,"multiple",2),G([a],V.prototype,"name",2),G([g],V.prototype,"open",2),G([a],V.prototype,"placeholder",2),G([a({mode:"boolean"})],V.prototype,"required",2),G([a],V.prototype,"type",2),G([a({attribute:"value"})],V.prototype,"valueAttribute",2);let pp=V;var gp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,aa=(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&&gp(e,t,i),i};class Si extends pp{constructor(){super(...arguments),this.appearance=tp.outline}}aa([a],Si.prototype,"appearance",2),aa([a],Si.prototype,"size",2);const bp=p`
418
- ${w("inline-flex")}
419
-
420
- :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${Rh}){color:${ei}}.control{appearance:none;background-color:${S};border-radius:${C};border:${I} solid ${U};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${D};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${go} ${We};position:relative;text-align:start;width:100%;z-index:1;${oa}}:host([size='small']) .control{column-gap:${D};padding:${Mt} ${ve};${ra}}:host([size='large']) .control{column-gap:${ze};padding:${ie} ${re};${Ku}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Y};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${Ze};height:${ue};scale:0 1;transition:scale ${pi} ${yt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${er};outline:${ue} solid ${ce}}:host(:where(${Vh},:focus-within)) .control::after{scale:1 1;transition-duration:${dr};transition-timing-function:${$t}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Ne}}:host([appearance='transparent']) .control{--control-border-color:${ri};background-color:${le};border-radius:${tr}}:host([appearance='outline']) .control{--control-border-color:${Fe}}:host([appearance='outline']) .control:hover{--control-border-color:${mt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${ft}}:host([appearance='outline']) .control:hover::after{background-color:${At}}:host([appearance='outline']) .control:active{--control-border-color:${ho}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${bt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Nt}}:host([appearance='filled-darker']) .control{background-color:${ao}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${U}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${be};background-color:${Qe};color:${O}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${F} + (${go} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${R} + (${Mt} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${me} + (${ie} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){color:GrayText}`,mp=Si.compose({name:op,template:dp,styles:bp});mp.define(u.registry);const vp={above:"above",after:"after",before:"before"},we={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"},$p=`${u.prefix}-field`;var yp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,wr=(o,e,t,r)=>{for(var i=r>1?void 0:r?xp(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&&yp(e,t,i),i};class $o extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||De("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(we))$(this.elementInternals,t,this.input.validity[e])}}wr([g],$o.prototype,"labelSlot",2),wr([g],$o.prototype,"messageSlot",2),wr([g],$o.prototype,"slottedInputs",2),wr([g],$o.prototype,"input",2);var kp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Cp=(o,e,t,r)=>{for(var i=r>1?void 0:r?wp(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&&kp(e,t,i),i};class la extends $o{constructor(){super(...arguments),this.labelPosition=vp.above}}Cp([a({attribute:"label-position"})],la.prototype,"labelPosition",2);const Sp=p`
421
- ${w("inline-grid")}
422
-
423
- :host{color:${_};align-items:center;gap:0 ${re};justify-items:start}:has([slot='message']){color:${_};row-gap:${ie}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${re}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${ar}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${hd}}:host(${Wh}) ::slotted([slot='label'])::after{content:'*' / '';color:${si};margin-inline-start:${oe}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Y};font-family:${v};font-size:${N};font-weight:${E};grid-area:message;line-height:${R};margin-block-start:${ar}}:host(${Dh}:focus-within){border-radius:${C};outline:${ue} solid ${ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${E};grid-area:label;line-height:${F};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${N};line-height:${R}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${pe}){cursor:default}::slotted([flag]){display:none}:host(${Nh}) ::slotted([flag='${we.badInput}']),:host(${Fh}) ::slotted([flag='${we.customError}']),:host(${Hh}) ::slotted([flag='${we.patternMismatch}']),:host(${jh}) ::slotted([flag='${we.rangeOverflow}']),:host(${qh}) ::slotted([flag='${we.rangeUnderflow}']),:host(${Uh}) ::slotted([flag='${we.stepMismatch}']),:host(${Gh}) ::slotted([flag='${we.tooLong}']),:host(${Xh}) ::slotted([flag='${we.tooShort}']),:host(${Kh}) ::slotted([flag='${we.typeMismatch}']),:host(${Zh}) ::slotted([flag='${we.valueMissing}']),:host(${Qh}) ::slotted([flag='${we.valid}']){display:block}`,Ip=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}"><slot name="label" part="label" ${W("labelSlot")}></slot><slot name="input" part="input" ${W("slottedInputs")}></slot><slot name="message" part="message" ${W({property:"messageSlot",filter:ro("[flag]")})}></slot></template>`,Pp=la.compose({name:$p,template:Ip,styles:Sp,shadowOptions:{delegatesFocus:!0}});Pp.define(u.registry);const zp=`${u.prefix}-image`;var _p=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,yo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Op(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&&_p(e,t,i),i};class Ut extends k{}yo([a({mode:"boolean"})],Ut.prototype,"block",2),yo([a({mode:"boolean"})],Ut.prototype,"bordered",2),yo([a({mode:"boolean"})],Ut.prototype,"shadow",2),yo([a],Ut.prototype,"fit",2),yo([a],Ut.prototype,"shape",2);const Tp=b`<slot></slot>`,Bp=p`
424
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${uo}}: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:${nr}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Ep=Ut.compose({name:zp,template:Tp,styles:Bp});Ep.define(u.registry);const Ap=`${u.prefix}-label`;var Np=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Cr=(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 xo extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Cr([a],xo.prototype,"size",2),Cr([a],xo.prototype,"weight",2),Cr([a({mode:"boolean"})],xo.prototype,"disabled",2),Cr([a({mode:"boolean"})],xo.prototype,"required",2);const Mp=p`
425
- ${w("inline-flex")}
426
-
427
- :host{color:${_};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};line-height:${F};user-select:none}.asterisk{color:${si};margin-inline-start:${oe}}:host([size='small']){font-size:${N};line-height:${R}}:host([size='large']){font-size:${he};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${L}}:host([disabled]),:host([disabled]) .asterisk{color:${O}}`;function Lp(){return b`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Dp=Lp(),Vp=xo.compose({name:Ap,template:Dp,styles:Mp});Vp.define(u.registry);const Hp=`${u.prefix}-link`;var Rp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?jp(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&&Rp(e,t,i),i};class Ii extends Me{constructor(){super(...arguments),this.inline=!1}}ca([a],Ii.prototype,"appearance",2),ca([a({mode:"boolean"})],Ii.prototype,"inline",2);const qp=p`
428
- ${w("inline")}
429
-
430
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${yl};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${xl}}:host(:active){color:${kl}}:host([appearance='subtle']:hover){color:${Cl}}:host([appearance='subtle']:active){color:${Sl}}}:host([appearance='subtle']){color:${wl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Wp(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Up=Wp(),Gp=Ii.compose({name:Hp,template:Up,styles:qp});Gp.define(u.registry);var Xp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,ko=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kp(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&&Xp(e,t,i),i};class Gt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),H.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return kr(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Lt(this,()=>{this.id=this.id||De("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const s=i===e;r.selected=s,s&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Lt(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>kr(r));this.options=t}})}}ko([g],Gt.prototype,"defaultSlot",2),ko([g],Gt.prototype,"multiple",2),ko([g],Gt.prototype,"options",2),ko([g],Gt.prototype,"selectedIndex",2),ko([g],Gt.prototype,"dropdown",2);const Yp=p`
431
- ${w("inline-flex")}
432
-
433
- :host{background-color:${S};border-radius:${C};border:${I} solid ${U};box-shadow:${li};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${oe};row-gap:${D};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Lh}){margin-block-start:revert;translate:0 -100%}}`;function Qp(){return b`<template @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${z("defaultSlot")} @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Zp=Qp(),Jp=Gt.compose({name:rp,template:Zp,styles:Yp});Jp.define(u.registry);const eg=`${u.prefix}-menu-button`;class tg extends Ue{}const og=$i({end:b.partial(`
434
- <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
435
- <path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
436
- </svg>
437
- `)}),rg=tg.compose({name:eg,template:og,styles:br});rg.define(u.registry);const Q={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Q.menuitem+"",Q.menuitemcheckbox+"",Q.menuitemradio+"";function ig(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const sg=`${u.prefix}-menu-item`;var ng=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,Xt=(o,e,t,r)=>{for(var i=r>1?void 0:r?ag(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&&ng(e,t,i),i};class Ge extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Q.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Q.menuitemcheckbox:this.checked=!this.checked;break;case Q.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Q.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Q.menuitem}checkedChanged(e,t){const r=this.role!==Q.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Q.menuitem,this.elementInternals.ariaChecked=this.role!==Q.menuitem?`${!!this.checked}`:null}}Xt([a({mode:"boolean"})],Ge.prototype,"disabled",2),Xt([a],Ge.prototype,"role",2),Xt([a({mode:"boolean"})],Ge.prototype,"checked",2),Xt([a({mode:"boolean"})],Ge.prototype,"hidden",2),Xt([g],Ge.prototype,"slottedSubmenu",2),Xt([g],Ge.prototype,"submenu",2),Ye(Ge,Ke);const lg=p`
438
- ${w("grid")}
439
-
440
- :host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${B} / ${F} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Yo};color:${Bt}}:host(:active){background-color:${Js};color:${Et}}:host(:active) ::slotted([slot='start']){color:${Pl}}:host(${pe}){background-color:${Qe};color:${O}}:host(${pe}) ::slotted([slot='start']),:host(${pe}) ::slotted([slot='end']){color:${O}}: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(${yr})) .submenu-glyph,:host(:not(${yr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Y};font:${E} ${N} / ${R} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${yr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${yr}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${pe}),:host(${pe}) ::slotted([slot='start']),:host(${pe}) ::slotted([slot='end']){color:GrayText}}`,cg=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>'),dg=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 hg(o={}){return b`<template tabindex="0" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.handleToggle(t.event)}"><slot name="indicator">${ae(o.indicator)}</slot>${je(o)}<div part="content" class="content"><slot></slot></div>${ut(o)}<slot name="submenu-glyph">${ae(o.submenuGlyph)}</slot><slot name="submenu" ${W({property:"slottedSubmenu"})}></slot></template>`}const ug=hg({indicator:cg,submenuGlyph:dg}),pg=Ge.compose({name:sg,template:ug,styles:lg});pg.define(u.registry);const gg=`${u.prefix}-menu-list`;var wo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Pi={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function zi(o,e){return o.contains(e)}function fg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})}function bg(o,e,t){const r="forward",i="backward",s="block",n="inline";if(mg(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",f=d?s:n,y=d?n:s,X=d?c.endsWith("-rl")!==l:l,Se=d&&l,at={ArrowUp:{axis:y,dir:Se?r:i},ArrowDown:{axis:y,dir:Se?i:r},ArrowLeft:{axis:f,dir:X?r:i},ArrowRight:{axis:f,dir:X?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!at||t&&at.axis&&at.axis!==t?null:at.dir}function mg(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var vg=globalThis.__FOCUSGROUP_POLYFILL__,$g=vg.o;function _i(){for(const o of $g)o.takeRecords()}var Sr=class{#t;#e;#n=Pi.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#i=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(fg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#n),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#x.bind(this),r)}disconnect(){this.#s(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#n)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(wo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#n=o?.behavior??Pi.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#n===Pi.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#n),e.setAttribute(wo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#s(),this.#m(o)),this.#e.flush?.()}#b(){this.#s();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(wo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(wo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(bg(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#i&&(!o.relatedTarget||!zi(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#s(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#i&&this.#s();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#x(o){if(!o.relatedTarget||!zi(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&zi(this.#t,o.relatedTarget)||this.#a||!this.#r)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#r||t!==this.#r){for(const{element:r,segmentBoundary:i}of this.#e.items())r.tabIndex=i?0:-1;t&&(t.tabIndex=0,this.#r=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(wo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,_i())}#s(){this.#i&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#i=!1,this.#l=null,this.#e.flush?.(),_i())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#s(),_i()}};class Ir{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var yg=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,kg=(o,e,t,r)=>{for(var i=r>1?void 0:r?xg(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&&yg(e,t,i),i};const Oi=class Ki extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&Qi(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuChildren[s],c=n.role;if(c===Q.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuChildren.length-1;for(let s=r+1;s<=i;++s){const n=this.menuChildren[s],c=n.role;if(c===Q.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),H.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Q.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,i)=>{const s=Ki.elementIndent(i);return Math.max(r,s)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return ig(e)||Qi(e)&&!!e.role&&e.role in Ki.focusableElementRoles}};Oi.focusableElementRoles=Q,kg([g],Oi.prototype,"items",2);let wg=Oi;class Cg extends wg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ir(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Sg=p`
441
- ${w("flex")}
442
-
443
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${U};border-radius:${C};box-shadow:${li};padding:4px;row-gap:2px}`;function Ig(){return b`<template focusgroup="menu" slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}"><slot ${W("items")}></slot></template>`}const Pg=Ig(),zg=Cg.compose({name:gg,template:Pg,styles:Sg});zg.define(u.registry);const _g=`${u.prefix}-menu`;var Og=Object.defineProperty,Tg=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tg(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&&Og(e,t,i),i};class Xe extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ge&&(e.target.getAttribute("role")===Q.menuitemcheckbox||e.target.getAttribute("role")===Q.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){H.enqueue(()=>{this._menuList.focus()})}focusTrigger(){H.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}st([a({attribute:"open-on-hover",mode:"boolean"})],Xe.prototype,"openOnHover",2),st([a({attribute:"open-on-context",mode:"boolean"})],Xe.prototype,"openOnContext",2),st([a({attribute:"close-on-scroll",mode:"boolean"})],Xe.prototype,"closeOnScroll",2),st([a({attribute:"persist-on-item-click",mode:"boolean"})],Xe.prototype,"persistOnItemClick",2),st([a({mode:"boolean"})],Xe.prototype,"split",2),st([g],Xe.prototype,"slottedMenuList",2),st([g],Xe.prototype,"slottedTriggers",2),st([g],Xe.prototype,"primaryAction",2);const Bg=p`
444
- ${w("inline-block")}
445
-
446
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${Fe};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Eg(){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" ${z("primaryAction")}></slot><slot name="trigger" ${W({property:"slottedTriggers",filter:ro()})}></slot><slot ${W({property:"slottedMenuList",filter:ro()})}></slot></template>`}const Ag=Eg(),Ng=Xe.compose({name:_g,template:Ag,styles:Bg});Ng.define(u.registry);const Fg=`${u.prefix}-message-bar`;var Mg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Ti=(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&&Mg(e,t,i),i};class Pr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ti([a],Pr.prototype,"shape",2),Ti([a],Pr.prototype,"layout",2),Ti([a],Pr.prototype,"intent",2);const Dg=p`
447
- :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${N};line-height:${R};width:100%;background:${ao};border:1px solid ${Fe};padding-inline:${re};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:${mn};border-color:${Wl}}:host([intent='warning']){background-color:${$n};border-color:${xn}}:host([intent='error']){background-color:${pn};border-color:${fn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
448
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${lr};padding-inline:${re}}.content{grid-area:body;max-width:520px;padding-block:${lr};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Y};margin-inline-end:${ze}}: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:${ze};gap:${ze}}:host([layout='multiline']) .actions{margin-block-start:${lr};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${ie}}::slotted(*){font-size:inherit}`;function Vg(){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 Hg=Vg(),Rg=Pr.compose({name:Fg,template:Hg,styles:Dg,shadowOptions:{mode:u.shadowRootMode}});Rg.define(u.registry);var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?qg(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&&jg(e,t,i),i};class se extends k{constructor(){super(),this.active=!1,this.id=De("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,H.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}se.formAssociated=!0,ge([g],se.prototype,"active",2),ge([a({attribute:"current-selected",mode:"boolean"})],se.prototype,"currentSelected",2),ge([a({attribute:"selected",mode:"boolean"})],se.prototype,"defaultSelected",2),ge([g],se.prototype,"descriptionSlot",2),ge([g],se.prototype,"disabled",2),ge([a({attribute:"disabled",mode:"boolean"})],se.prototype,"disabledAttribute",2),ge([a({attribute:"form"})],se.prototype,"formAttribute",2),ge([a({mode:"boolean"})],se.prototype,"freeform",2),ge([a({attribute:"id"})],se.prototype,"id",2),ge([a({attribute:"value",mode:"fromView"})],se.prototype,"initialValue",2),ge([g],se.prototype,"multiple",2),ge([a],se.prototype,"name",2),ge([g],se.prototype,"start",2),ge([a({attribute:"text",mode:"fromView"})],se.prototype,"textAttribute",2);const Wg=p`
449
- ${w("inline-grid")}
450
-
451
- :host{-webkit-tap-highlight-color:transparent;${oa}
452
- align-items:center;background-color:${S};border-radius:${C};box-sizing:border-box;color:${Ie};column-gap:${oe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ve};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Yo};color:${Bt}}:host(:active){background-color:${ti};color:${Et}}:host(:disabled){background-color:${S};color:${O};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(${xi}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${jt}) .checkmark-16-filled,:host(:not(${jt})) .checkmark-12-regular{display:none}:host(${jt}) .checkmark-12-regular{background-color:${S};border-radius:${Pe};border:${I} solid ${Ne};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${jt}${xi}) .checkmark-12-regular{background-color:${gt};border-color:${Ze};fill:${pt}}:host(:disabled${jt}) .checkmark-12-regular{border-color:${be}}:host(:disabled${jt}${xi}) .checkmark-12-regular{background-color:${Qe}}:host(${Ah}){border:${ue} solid ${ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ve}}}:host(${Mh}){column-gap:${ve};grid-template-areas:'indicator start content'
453
- 'indicator start description'}::slotted([slot='description']){color:${Y};grid-area:description;${ra}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,Ug=b.partial(`
454
- <svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
455
- <path
456
- d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"
457
- />
458
- </svg>
459
- <svg aria-hidden="true" class="checkmark-12-regular" viewBox="0 0 12 12">
460
- <path
461
- 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"
462
- />
463
- </svg>
464
- `);function Gg(o={}){return b`<slot name="checked-indicator">${ae(o.checkedIndicator)}</slot>${je(o)}<div class="content" part="content"><slot ${W({property:"freeformOutputs",filter:ro("output")})}></slot></div><div class="description" part="description"><slot name="description" ${W("descriptionSlot")}></slot></div>`}const Xg=Gg({checkedIndicator:Ug}),Kg=se.compose({name:ip,template:Xg,styles:Wg});Kg.define(u.registry);const Yg={success:"success",warning:"warning",error:"error"},Qg=`${u.prefix}-progress-bar`;var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Co=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jg(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&&Zg(e,t,i),i};class Kt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){xt(this.elementInternals,e,t,Yg)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||H.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,s=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${s}%`)})}}Co([g],Kt.prototype,"indicator",2),Co([a({attribute:"validation-state"})],Kt.prototype,"validationState",2),Co([a({converter:te})],Kt.prototype,"value",2),Co([a({converter:te})],Kt.prototype,"min",2),Co([a({converter:te})],Kt.prototype,"max",2);var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,da=(o,e,t,r)=>{for(var i=r>1?void 0:r?tf(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&&ef(e,t,i),i};class Bi extends Kt{}da([a],Bi.prototype,"thickness",2),da([a],Bi.prototype,"shape",2);const of=p`
465
- ${w("block")}
466
-
467
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${lo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${tr}}.indicator{background-color:${gt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
468
- to right,${lo} 0%,${le} 50%,${lo} 100%
469
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${gn}}:host([validation-state='warning']) .indicator{background-color:${yn}}:host([validation-state='success']) .indicator{background-color:${vn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function rf(){return b`<div class="indicator" part="indicator" ${z("indicator")}></div>`}const sf=rf(),nf=Bi.compose({name:Qg,template:sf,styles:of});nf.define(u.registry);const ha=ye,af=`${u.prefix}-radio-group`;function lf(o,e="-radio"){return Yi(e)(o)}const cf=`${u.prefix}-radio`;var df=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,nt=(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&&df(e,t,i),i};class Ve extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ha.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ha.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const i=this.enabledRadios.findLastIndex(n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===i,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute,n.toggleAttribute("focusgroupstart",n.checked&&!n.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>lf(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const n=s===e;i.checked=n,n&&(r=s,t&&i.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const s={valueMissing:!0,...e},n=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(s,n,c):c.elementInternals.setValidity({})})}}}Ve.formAssociated=!0,nt([g],Ve.prototype,"checkedIndex",2),nt([a({attribute:"disabled",mode:"boolean"})],Ve.prototype,"disabled",2),nt([a({attribute:"value",mode:"fromView"})],Ve.prototype,"initialValue",2),nt([a],Ve.prototype,"name",2),nt([a],Ve.prototype,"orientation",2),nt([g],Ve.prototype,"radios",2),nt([a({mode:"boolean"})],Ve.prototype,"required",2),nt([g],Ve.prototype,"slottedRadios",2);class uf extends Ve{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ir(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const pf=p`
470
- ${w("flex")}
471
-
472
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ui}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Y}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${_}}::slotted(${pe}){color:${O}}::slotted(${x}){color:${_}}:host([slot='input']){margin:${ie} ${ze}}`;function gf(){return b`<template focusgroup="radiogroup wrap" @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot ${W("slottedRadios")}></slot></template>`}const ff=gf(),bf=uf.compose({name:af,template:ff,styles:pf});bf.define(u.registry);class mf extends ke{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const vf=p`
473
- ${w("inline-flex")}
474
-
475
- :host{--size:16px;aspect-ratio:1;background-color:${S};border:${I} solid ${Ne};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${pt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}:host(:hover){border-color:${ft}}:host(${x}){border-color:${Ze}}:host(${x}) .checked-indicator{background-color:${gt}}:host(${x}:hover) .checked-indicator{background-color:${At}}:host(:active){border-color:${bt}}:host(${x}:active) .checked-indicator{background-color:${Nt}}:host(:focus-visible){outline:none}:host(${pe}){background-color:${Qe};border-color:${be}}:host(${x}${pe}) .checked-indicator{background-color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${pe}):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(${pe}):hover) .checked-indicator{background-color:Highlight}:host(${pe}){border-color:GrayText;color:GrayText}:host(${pe}${x}) .checked-indicator{background-color:GrayText}}`,$f=b.partial(`
476
- <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
477
- `);function yf(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">${ae(o.checkedIndicator)}</slot></template>`}const xf=yf({checkedIndicator:$f}),kf=mf.compose({name:cf,template:xf,styles:vf});kf.define(u.registry);const wf=`${u.prefix}-rating-display`;var Cf=Object.defineProperty,Sf=Object.getOwnPropertyDescriptor,So=(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&&Cf(e,t,i),i};const If=CSS.supports("width: attr(value type(<number>))"),Yt={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function zr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Qt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(Yt.maskImageFilled),this.display.style.removeProperty(Yt.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
1
+ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function Yi(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function Qi(...o){return o.every(e=>e instanceof HTMLElement)}function Lr(o,e="-accordion-item"){return Yi(e)(o)}const Ca=`${u.prefix}-accordion-item`;let To;const Zi="fast-kernel";try{if(document.currentScript)To=document.currentScript.getAttribute(Zi);else{const o=document.getElementsByTagName("script");To=o[o.length-1].getAttribute(Zi)}}catch{To="isolate"}let lt;switch(To){case"share":lt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":lt=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)}`;lt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Pt=o=>typeof o=="function",Re=o=>typeof o=="string",Sa=()=>{};var Dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Dr<"u")Dr.globalThis=Dr;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 Ji={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Ji));const ee=globalThis.FAST;if(ee.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ee,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},Ji))}ee.error===void 0&&Object.assign(ee,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ia=Object.freeze([]);function Vr(){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 es(){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 ct(o){o.prototype.toJSON=Sa}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ts=o=>o,Pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ts}):{createHTML:ts};let Bo=Object.freeze({createHTML(o){return Pa.createHTML(o)},protect(o,e,t,r){return r}});const za=Bo,dt=Object.freeze({get policy(){return Bo},setPolicy(o){if(Bo!==za)throw ee.error(1201);Bo=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)}}),H=ee.getById(lt.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 Hr{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 os{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 Hr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Hr(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 Eo=Object.freeze({unknown:void 0,coupled:1}),m=ee.getById(lt.observable,()=>{const o=H.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw ee.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 os(d))),f}const n=es();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 y=this.field,X=l[y];if(X!==f){l[y]=f;const Se=l[this.callback];Pt(Se)&&Se.call(l,X,f),s(l).notify(this.name)}}}class h extends Hr{constructor(l,f,y=!1){super(l,f),this.expression=l,this.isVolatileBinding=y,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!==Eo.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 y=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let X;try{X=this.expression(l,f)}finally{r=y}return X}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 y=this.last,X=s(l),Se=y===null?this.first:{};if(Se.propertySource=l,Se.propertyName=f,Se.notifier=X,X.subscribe(this,f),y!==null){if(!this.needsRefresh){let at;r=void 0,at=y.propertySource[y.propertyName],r=this,l===at&&(this.needsRefresh=!0)}y.next=Se}this.last=Se}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 ct(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){Re(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 rs(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const is=ee.getById(lt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),zt=Object.freeze({default:{index:0,length:0,get event(){return zt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return is.get()},setEvent(o){is.set(o)}});class Ao{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class _a extends Ao{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Rr(o,e,t=m.isVolatileBinding(o)){return new _a(o,e,t)}class ss extends Ao{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ct(ss);function ns(o,e){return new ss(o,e)}let as;function ls(o){return o.map(e=>e instanceof fe?ls(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class fe{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof fe?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(as),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(ls(this.styles)),this}static setDefaultStrategy(e){as=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new fe(e):e instanceof fe?e:new fe([e])}}fe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const jr=Vr(),qr=Object.freeze({getForInstance:jr.getForInstance,getByType:jr.getByType,define(o){return jr.register({type:o}),o}});function Wr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Ur{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)=>Wr(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){Wr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Wr(this,t.controller,t)}}qr.define(Ur);const Oa=`${Math.random().toString(36).substring(2,8)}`;let Ta=0;const cs=()=>`--v${Oa}${++Ta}`;function ds(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];Pt(h)?h=new Ur(Rr(h),cs()).createCSS(s):h instanceof Ao?h=new Ur(h,cs()).createCSS(s):qr.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof fe||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 p=(o,...e)=>{const{styles:t,behaviors:r}=ds(o,e),i=new fe(t);return r.length?i.withBehaviors(...r):i};class hs{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Re(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new fe(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)}}qr.define(hs),p.partial=(o,...e)=>{const{styles:t,behaviors:r}=ds(o,e);return new hs(t,r)};const us=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ps=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,gs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,fs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,bs=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ms=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function vs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Be=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 us.test(o)},isContentBindingEndMarker(o){return ps.test(o)},isRepeatViewStartMarker(o){return gs.test(o)},isRepeatViewEndMarker(o){return fs.test(o)},isElementBoundaryStartMarker(o){return vs(o)&&bs.test(o.data.trim())},isElementBoundaryEndMarker(o){return vs(o)&&ms.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 xs(us,o)},parseContentBindingEndMarker(o){return xs(ps,o)},parseRepeatStartMarker(o){return $s(gs,o)},parseRepeatEndMarker(o){return $s(fs,o)},parseElementBoundaryStartMarker(o){return ys(bs,o.trim())},parseElementBoundaryEndMarker(o){return ys(ms,o)}});function $s(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function ys(o,e){const t=o.exec(e);return t===null?t:t[1]}function xs(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const No=Symbol.for("fe-hydration");function Fo(o){return o[No]===No}const Gr=`fast-${Math.random().toString(36).substring(2,8)}`,Mo=`${Gr}{`,to=`}${Gr}`,Ba=to.length;let Ea=0;const oo=()=>`${Gr}-${++Ea}`,ks=Object.freeze({interpolation:o=>`${Mo}${o}${to}`,attribute:o=>`${oo()}="${Mo}${o}${to}"`,comment:o=>`<!--${Mo}${o}${to}-->`}),Lo=Object.freeze({parse(o,e){const t=o.split(Mo);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(to);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Ba)}h!==""&&r.push(h)}return r}}),Xr=Vr(),Ee=Object.freeze({getForInstance:Xr.getForInstance,getByType:Xr.getByType,define(o,e){return e=e||{},e.type=o,Xr.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 Kr{constructor(e){this.options=e}createHTML(e){return ks.attribute(e(this))}createBehavior(){return this}}ct(Kr);class ws extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function Yr(o){return o.nodeType===Node.COMMENT_NODE}function Cs(o){return o.nodeType===Node.TEXT_NODE}function Ss(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Yr(e)||Cs(e)?e.data.length:e.childNodes.length),t}function Aa(o){return o instanceof DocumentFragment&&"mode"in o}function Na(o,e,t){const r=Ss(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:{Fa(h,t,n);break}case Node.COMMENT_NODE:{Ma(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Fa(o,e,t){const r=Be.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new ws(`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);Do(e[i],o,t)}o.removeAttribute(Be.attributeMarkerName)}}function Ma(o,e,t,r,i){if(Be.isElementBoundaryStartMarker(o)){La(o,e);return}if(Be.isContentBindingStartMarker(o.data)){const s=Be.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(Yr(l)){const y=Be.parseContentBindingEndMarker(l.data);if(y&&y[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const y=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Aa(y)?y.host.nodeName:y.nodeName}".`)}if(l.data="",d.length===1&&Cs(d[0]))Do(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const y=l.parentNode.insertBefore(document.createTextNode(""),l);Do(h,y,r)}}}function La(o,e){const t=Be.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(Yr(r)){const i=Be.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function Do(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Is;function Qr(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 Ps{constructor(){this.index=0,this.length=0}get event(){return zt.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 Vo extends Ps{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=Eo.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(){Qr(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){Qr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}ct(Vo),m.defineProperty(Vo.prototype,"index"),m.defineProperty(Vo.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Da extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Va extends Ps{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Is]=No,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Eo.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}=Na(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof ws){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&&Do(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 Da(`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,Ss(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(){Qr(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}}Is=No,ct(Va);function Ha(o){return o.create!==void 0}function Ra(o,e,t,r){if(t==null&&(t=""),Ha(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Fo(r)&&Fo(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 ja(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 y=d[l];y!==""&&(n[y]=c,h.add(y))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const qa={[K.attribute]:dt.setAttribute,[K.booleanAttribute]:dt.setBooleanAttribute,[K.property]:(o,e,t)=>o[e]=t,[K.content]:Ra,[K.tokenList]:ja,[K.event]:()=>{}};class Ot{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=K.content}createHTML(e){return ks.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=qa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ee.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=Fo(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){zt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);zt.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)}}Ee.define(Ot,{aspected:!0});const zs=(o,e)=>`${o}.${e}`,_s={},Ae={index:0,node:null};function Os(o){o.startsWith("fast-")||ee.warn(1204,{name:o})}const Wa=new Proxy(document.createElement("div"),{get(o,e){Os(e);const t=Reflect.get(o,e);return Pt(t)?t.bind(o):t},set(o,e,t){return Os(e),Reflect.set(o,e,t)}});class Ua{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:oo(),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=_s[t];if(!s){const n=`_${t}`;_s[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??Wa;for(const i of this.nodeIds)r[i];return new Vo(t,this.factories,r)}}function Ts(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,y=Lo.parse(f,c);let X=null;y===null?s&&(X=new Ot(ns(()=>f,o.policy)),Ee.assignAspect(X,l.name)):X=Zr.aggregate(y,o.policy),X!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(X,e,r,i,t.tagName))}}function Ga(o,e,t,r,i){const s=Lo.parse(e.textContent,o.directives);if(s===null)return Ae.node=e.nextSibling,Ae.index=i+1,Ae;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=zs(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Re(l)?n.textContent=l:(n.textContent=" ",Ee.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Ae.index=i+1,Ae.node=c.nextSibling,Ae}function Bs(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=Xa(o,t,i,r);i=s.node,r=s.index}}function Xa(o,e,t,r){const i=zs(e,r);switch(t.nodeType){case 1:Ts(o,e,t,i,r),Bs(o,t,i);break;case 3:return Ga(o,t,e,i,r);case 8:const s=Lo.parse(t.data,o.directives);s!==null&&o.addFactory(Zr.aggregate(s),e,i,r,null);break}return Ae.index=r+1,Ae.node=t.nextSibling,Ae}function Ka(o,e){return o&&o.nodeType==8&&Lo.parse(o.data,e)!==null}const Es="TEMPLATE",Zr={compile(o,e,t=dt.policy){let r;if(Re(o)){r=document.createElement(Es),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Es&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ua(i,e,t);return Ts(s,"",r,"h",0,!0),(Ka(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Bs(s,i,"r"),Ae.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=dt.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>Re(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 y=0;y<s;++y)f+=n[y](d,l);return f},h=new Ot(Rr(c,i??e,r));return Ee.assignAspect(h,t),h}},Ya=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Qa=Object.create(null);class ht{constructor(e,t=Qa){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}ht.empty=new ht(""),Ee.define(ht);function Za(o,e,t,r=Ee.getForInstance(o)){if(r.aspected){const i=Ya.exec(e);i!==null&&Ee.assignAspect(o,i[2])}return o.createHTML(t)}class Nr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=Zr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new ht(Re(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ee.error(1208);if(this.policy)throw ee.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=oo();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,Pt(l))l=new Ot(Rr(l));else if(l instanceof Ao)l=new Ot(l);else if(!(f=Ee.getForInstance(l))){const y=l;l=new Ot(ns(()=>y))}i+=Za(l,d,n,f)}return new Nr(i+e[e.length-1],s,r)}}ct(Nr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Nr.create(o,e);throw ee.error(1206)};b.partial=o=>new ht(o);class As extends Kr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ee.define(As);const z=o=>new As(o),Ja=o=>o.nodeType===1,ro=o=>o?e=>e.nodeType===1&&e.matches(o):Ja;class el extends Kr{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,Ia),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 Ns="slotchange";class Fs extends el{observe(e){e.addEventListener(Ns,this)}disconnect(e){e.removeEventListener(Ns,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ee.define(Fs);function W(o){return Re(o)&&(o={property:o}),new Fs(o)}const Ms="boolean",Ls="reflect",Ho=Object.freeze({locate:es()}),tl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Ds(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const te={toView(o){const e=Ds(o);return e&&e.toString()},fromView:Ds};class Fr{constructor(e,t,r=t.toLowerCase(),i=Ls,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===Ms&&s===void 0&&(this.converter=tl)}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"||H.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ls:const s=this.converter;dt.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Ms:dt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Ho.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];Re(d)?r.push(new Fr(e,d)):r.push(new Fr(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),Ho.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Vs={mode:"open"},Hs={},Rs=new Set,Ro=ee.getById(lt.elementRegistry,()=>Vr());class Te{constructor(e,t=e.definition){var r;this.platformDefined=!1,Re(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=Fr.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?Vs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Vs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Hs:Object.assign(Object.assign({},Hs),t.elementOptions),this.styles=fe.normalize(t.styles),Ro.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 Rs.has(e)||Ro.getByType(e)?new Te(class extends e{},t):new Te(e,t)}static registerBaseType(e){Rs.add(e)}}Te.getByType=Ro.getByType,Te.getForInstance=Ro.getForInstance;class ol 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:zt.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:oo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:oo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:dt.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 rl={bubbles:!0,composed:!0,cancelable:!0},jo="isConnected",js=new WeakMap;function io(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:js.get(o))!==null&&t!==void 0?t:null}let qs;class Tt extends os{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"&&js.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,jo),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:zt.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=io(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=io(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,jo))}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,jo),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},rl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=io(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=Eo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Te.getForInstance(e);if(r===void 0)throw ee.error(1401);return e.$fastController=new qs(e,r)}static setStrategy(e){qs=e}}ct(Tt),Tt.setStrategy(Tt);function qo(o){var e;return"adoptedStyleSheets"in o?o:(e=io(o))!==null&&e!==void 0?e:o.getRootNode()}class Mr{constructor(e){const t=Mr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){Us(qo(e),this.sheets)}removeStylesFrom(e){Gs(qo(e),this.sheets)}}Mr.styleSheetCache=new Map;let il=0;const sl=()=>`fast-${++il}`;function Ws(o){return o===document?document.body:o}class nl{constructor(e){this.styles=e,this.styleClass=sl()}addStylesTo(e){e=Ws(qo(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=Ws(qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Us=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Gs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(fe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Us=(o,e)=>{o.adoptedStyleSheets.push(...e)},Gs=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}fe.setDefaultStrategy(Mr)}else fe.setDefaultStrategy(nl);const Xs="defer-hydration",Ks="needs-hydration";class It extends Tt{static hydrationObserverHandler(e){for(const t of e)It.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Ks)!==null),this.source.hasAttribute(Xs)){It.hydrationObserver.observe(this.source,{attributeFilter:[Xs]});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=io(r))!==null&&e!==void 0?e:r;if(this.template)if(Fo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Be.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Be.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(Ks),this.needsInitialization=this.needsHydration=!1,m.notify(this,jo)}disconnect(){super.disconnect(),It.hydrationObserver.unobserve(this.source)}static install(){Tt.setStrategy(It)}}It.hydrationObserver=new ol(It.hydrationObserverHandler);function Ys(o){const e=class extends o{constructor(){super(),Tt.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 Te.registerBaseType(e),e}function al(o,e){return Pt(o)?Te.compose(o,e):Te.compose(this,o)}function ll(o,e){return Pt(o)?Te.compose(o,e).define().type:Te.compose(this,o).define().type}function cl(o){return Ys(o)}const k=Object.assign(Ys(HTMLElement),{from:cl,define:ll,compose:al});function ae(o){return o?typeof o=="string"?new ht(o):"inline"in o?o.inline():o:ht.empty}class Ke{}function ut(o){return b`<slot name=end ${z("end")}>${ae(o.end)}</slot>`.inline()}function je(o){return b`<slot name=start ${z("start")}>${ae(o.start)}</slot>`.inline()}function Ye(o,...e){const t=Ho.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Ho.locate(r).forEach(s=>t.push(s))})}var dl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,Wo=(o,e,t,r)=>{for(var i=r>1?void 0:r?hl(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&&dl(e,t,i),i};class so extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Wo([a({attribute:"heading-level",mode:"fromView",converter:te})],so.prototype,"headinglevel",2),Wo([a({mode:"boolean"})],so.prototype,"expanded",2),Wo([a({mode:"boolean"})],so.prototype,"disabled",2),Wo([g],so.prototype,"expandbutton",2);var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,Jr=(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 no extends so{constructor(){super(...arguments),this.block=!1}}Jr([a],no.prototype,"size",2),Jr([a({attribute:"marker-position"})],no.prototype,"markerPosition",2),Jr([a({mode:"boolean"})],no.prototype,"block",2),Ye(no,Ke);const gl=":host([hidden]){display:none}";function w(o){return`${gl}:host{display:${o}}`}const _="var(--colorNeutralForeground1)",Qs="var(--colorNeutralForeground1Hover)",fl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Bt="var(--colorNeutralForeground2Hover)",Et="var(--colorNeutralForeground2Pressed)",Uo="var(--colorNeutralForeground2Selected)",Go="var(--colorNeutralForeground2BrandHover)",Xo="var(--colorNeutralForeground2BrandPressed)",bl="var(--colorNeutralForeground2BrandSelected)",Y="var(--colorNeutralForeground3)",ml="var(--colorNeutralForeground3Hover)",vl="var(--colorNeutralForeground3Pressed)",$l="var(--colorNeutralForeground3Selected)",ei="var(--colorNeutralForeground4)",O="var(--colorNeutralForegroundDisabled)",yl="var(--colorBrandForegroundLink)",xl="var(--colorBrandForegroundLinkHover)",kl="var(--colorBrandForegroundLinkPressed)",wl="var(--colorNeutralForeground2Link)",Cl="var(--colorNeutralForeground2LinkHover)",Sl="var(--colorNeutralForeground2LinkPressed)",Il="var(--colorCompoundBrandForeground1Hover)",Pl="var(--colorCompoundBrandForeground1Pressed)",qe="var(--colorNeutralForegroundOnBrand)",pt="var(--colorNeutralForegroundInverted)",zl="var(--colorNeutralForegroundInvertedHover)",_l="var(--colorNeutralForegroundInvertedPressed)",Zs="var(--colorNeutralForegroundStaticInverted)",Ko="var(--colorBrandForeground1)",Ol="var(--colorBrandForeground2)",Tl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",Yo="var(--colorNeutralBackground1Hover)",ti="var(--colorNeutralBackground1Pressed)",Js="var(--colorNeutralBackground1Selected)",ao="var(--colorNeutralBackground3)",Bl="var(--colorNeutralBackground4)",El="var(--colorNeutralBackground5)",lo="var(--colorNeutralBackground6)",en="var(--colorNeutralBackgroundInverted)",tn="var(--colorSubtleBackground)",Qo="var(--colorSubtleBackgroundHover)",co="var(--colorSubtleBackgroundPressed)",on="var(--colorSubtleBackgroundSelected)",Al="var(--colorSubtleBackgroundLightAlphaHover)",Nl="var(--colorSubtleBackgroundLightAlphaPressed)",Fl="var(--colorSubtleBackgroundLightAlphaSelected)",le="var(--colorTransparentBackground)",Zo="var(--colorTransparentBackgroundHover)",Jo="var(--colorTransparentBackgroundPressed)",rn="var(--colorTransparentBackgroundSelected)",Qe="var(--colorNeutralBackgroundDisabled)",oi="var(--colorBackgroundOverlay)",sn="var(--colorBrandBackground)",nn="var(--colorBrandBackgroundHover)",an="var(--colorBrandBackgroundPressed)",Ml="var(--colorBrandBackgroundSelected)",gt="var(--colorCompoundBrandBackground)",At="var(--colorCompoundBrandBackgroundHover)",Nt="var(--colorCompoundBrandBackgroundPressed)",ln="var(--colorBrandBackgroundStatic)",cn="var(--colorBrandBackground2)",Ne="var(--colorNeutralStrokeAccessible)",ft="var(--colorNeutralStrokeAccessibleHover)",bt="var(--colorNeutralStrokeAccessiblePressed)",Fe="var(--colorNeutralStroke1)",mt="var(--colorNeutralStroke1Hover)",ho="var(--colorNeutralStroke1Pressed)",uo="var(--colorNeutralStroke2)",Ll="var(--colorNeutralStroke3)",Dl="var(--colorNeutralStrokeOnBrand2)",dn="var(--colorBrandStroke1)",hn="var(--colorBrandStroke2)",Ze="var(--colorCompoundBrandStroke)",Vl="var(--colorCompoundBrandStrokeHover)",un="var(--colorCompoundBrandStrokePressed)",be="var(--colorNeutralStrokeDisabled)",U="var(--colorTransparentStroke)",ri="var(--colorTransparentStrokeInteractive)",er="var(--colorStrokeFocus1)",ce="var(--colorStrokeFocus2)",Hl="var(--colorNeutralShadowAmbient)",Rl="var(--colorNeutralShadowKey)",pn="var(--colorPaletteRedBackground1)",jl="var(--colorPaletteRedBackground2)",gn="var(--colorPaletteRedBackground3)",fn="var(--colorPaletteRedBorder1)",ii="var(--colorPaletteRedBorder2)",si="var(--colorPaletteRedForeground1)",ql="var(--colorPaletteRedForeground2)",bn="var(--colorPaletteRedForeground3)",mn="var(--colorPaletteGreenBackground1)",vn="var(--colorPaletteGreenBackground3)",Wl="var(--colorPaletteGreenBorder1)",Ul="var(--colorPaletteGreenBorder2)",Gl="var(--colorPaletteGreenForeground1)",Xl="var(--colorPaletteGreenForeground2)",Kl="var(--colorPaletteGreenForeground3)",$n="var(--colorPaletteDarkOrangeBackground1)",yn="var(--colorPaletteDarkOrangeBackground3)",xn="var(--colorPaletteDarkOrangeBorder1)",Yl="var(--colorPaletteDarkOrangeForeground1)",kn="var(--colorPaletteDarkOrangeForeground3)",Ql="var(--colorPaletteYellowBackground1)",Zl="var(--colorPaletteYellowBackground3)",Jl="var(--colorPaletteYellowBorder1)",ni="var(--colorPaletteYellowForeground2)",wn="var(--colorPaletteMarigoldBackground2)",ec="var(--colorPaletteMarigoldBorderActive)",tc="var(--colorPaletteMarigoldForeground2)",oc="var(--colorPaletteAnchorBackground2)",rc="var(--colorPaletteAnchorForeground2)",ic="var(--colorPaletteBeigeBackground2)",sc="var(--colorPaletteBeigeForeground2)",nc="var(--colorPaletteBlueBackground2)",ac="var(--colorPaletteBlueForeground2)",lc="var(--colorPaletteBrassBackground2)",cc="var(--colorPaletteBrassForeground2)",dc="var(--colorPaletteBrownBackground2)",hc="var(--colorPaletteBrownForeground2)",uc="var(--colorPaletteCornflowerBackground2)",pc="var(--colorPaletteCornflowerForeground2)",gc="var(--colorPaletteCranberryBackground2)",fc="var(--colorPaletteCranberryForeground2)",bc="var(--colorPaletteDarkGreenBackground2)",mc="var(--colorPaletteDarkGreenForeground2)",vc="var(--colorPaletteDarkRedBackground2)",$c="var(--colorPaletteDarkRedForeground2)",yc="var(--colorPaletteForestBackground2)",xc="var(--colorPaletteForestForeground2)",kc="var(--colorPaletteGoldBackground2)",wc="var(--colorPaletteGoldForeground2)",Cc="var(--colorPaletteGrapeBackground2)",Sc="var(--colorPaletteGrapeForeground2)",Ic="var(--colorPaletteLavenderBackground2)",Pc="var(--colorPaletteLavenderForeground2)",zc="var(--colorPaletteLightTealBackground2)",_c="var(--colorPaletteLightTealForeground2)",Oc="var(--colorPaletteLilacBackground2)",Tc="var(--colorPaletteLilacForeground2)",Bc="var(--colorPaletteMagentaBackground2)",Ec="var(--colorPaletteMagentaForeground2)",Ac="var(--colorPaletteMinkBackground2)",Nc="var(--colorPaletteMinkForeground2)",Fc="var(--colorPaletteNavyBackground2)",Mc="var(--colorPaletteNavyForeground2)",Lc="var(--colorPalettePeachBackground2)",Dc="var(--colorPalettePeachForeground2)",Vc="var(--colorPalettePinkBackground2)",Hc="var(--colorPalettePinkForeground2)",Rc="var(--colorPalettePlatinumBackground2)",jc="var(--colorPalettePlatinumForeground2)",qc="var(--colorPalettePlumBackground2)",Wc="var(--colorPalettePlumForeground2)",Uc="var(--colorPalettePumpkinBackground2)",Gc="var(--colorPalettePumpkinForeground2)",Xc="var(--colorPalettePurpleBackground2)",Kc="var(--colorPalettePurpleForeground2)",Yc="var(--colorPaletteRoyalBlueBackground2)",Qc="var(--colorPaletteRoyalBlueForeground2)",Zc="var(--colorPaletteSeafoamBackground2)",Jc="var(--colorPaletteSeafoamForeground2)",ed="var(--colorPaletteSteelBackground2)",td="var(--colorPaletteSteelForeground2)",od="var(--colorPaletteTealBackground2)",rd="var(--colorPaletteTealForeground2)",tr="var(--borderRadiusNone)",Pe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",Cn="var(--borderRadiusLarge)",Sn="var(--borderRadiusXLarge)",de="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",id="var(--fontFamilyMonospace)",sd="var(--fontFamilyNumeric)",po="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",he="var(--fontSizeBase400)",Ft="var(--fontSizeBase500)",or="var(--fontSizeBase600)",In="var(--fontSizeHero700)",Pn="var(--fontSizeHero800)",zn="var(--fontSizeHero900)",_n="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",nd="var(--fontWeightMedium)",L="var(--fontWeightSemibold)",rr="var(--fontWeightBold)",ir="var(--lineHeightBase100)",R="var(--lineHeightBase200)",F="var(--lineHeightBase300)",me="var(--lineHeightBase400)",sr="var(--lineHeightBase500)",On="var(--lineHeightBase600)",Tn="var(--lineHeightHero700)",Bn="var(--lineHeightHero800)",En="var(--lineHeightHero900)",An="var(--lineHeightHero1000)",ai="var(--shadow2)",nr="var(--shadow4)",ad="var(--shadow8)",li="var(--shadow16)",ld="var(--shadow28)",Nn="var(--shadow64)",I="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",xe="var(--strokeWidthThicker)",ci="var(--strokeWidthThickest)",D="var(--spacingHorizontalXXS)",oe="var(--spacingHorizontalXS)",ve="var(--spacingHorizontalSNudge)",ze="var(--spacingHorizontalS)",We="var(--spacingHorizontalMNudge)",re="var(--spacingHorizontalM)",cd="var(--spacingHorizontalL)",dd="var(--spacingHorizontalXL)",di="var(--spacingHorizontalXXL)",hi="var(--spacingVerticalNone)",ar="var(--spacingVerticalXXS)",Mt="var(--spacingVerticalXS)",go="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",lr="var(--spacingVerticalMNudge)",hd="var(--spacingVerticalM)",ui="var(--spacingVerticalL)",vt="var(--spacingVerticalXXL)",ud="var(--spacingVerticalXXXL)",pi="var(--durationUltraFast)",cr="var(--durationFaster)",dr="var(--durationNormal)",gi="var(--durationGentle)",pd="var(--durationSlow)",Fn="var(--durationSlower)",hr="var(--durationUltraSlow)",gd="var(--curveAccelerateMax)",$t="var(--curveAccelerateMid)",fd="var(--curveAccelerateMin)",Mn="var(--curveDecelerateMax)",yt="var(--curveDecelerateMid)",bd="var(--curveDecelerateMin)",Ln="var(--curveEasyEaseMax)",ur="var(--curveEasyEase)",fi="var(--curveLinear)",md=p`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${re} ${We};border-radius:${C};font-family:${v};font-size:${B};font-weight:${E};line-height:${F};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${le};border:none;box-sizing:border-box;color:${_};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:${Pe}}: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:${ze};grid-column:1/span 1;grid-row:1}.content{margin:0 ${re}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${ze};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Pe};outline:none;border:2px solid ${er};box-shadow:inset 0 0 0 1px ${ce}}:host([disabled]) .button{color:${O}}: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:${F}}:host([size='small']) .heading{font-size:${N};line-height:${R}}:host([size='large']) .heading{font-size:${he};line-height:${me}}:host([size='extra-large']) .heading{font-size:${Ft};line-height:${sr}}: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:${ze};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:${re}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${We} ${re}}: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}`,vd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),$d=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function yd(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${z("expandbutton")}><slot name=heading></slot></button> ${je(o)}<slot name=marker-expanded>${ae(o.expandedIcon)}</slot><slot name=marker-collapsed>${ae(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const xd=yd({collapsedIcon:vd,expandedIcon:$d}),kd=no.compose({name:Ca,template:xd,styles:md});kd.define(u.registry);const bi={single:"single",multi:"multi"},wd=`${u.prefix}-accordion`;function Dn(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Lt(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,s=t?.idleCallback??!1,n=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(n)===null||h&&h.timeRemaining()<=0){s?Dn(e,{timeout:i}):e();return}Dn(c,{timeout:i})};c()}var Cd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,Vn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sd(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&&Cd(e,t,i),i};class mi extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Lt(this,()=>{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.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;Lr(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===bi.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Lr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===bi.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Lr(r)&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||bi.multi,this.setItems()}}Vn([a({attribute:"expand-mode"})],mi.prototype,"expandmode",2),Vn([g],mi.prototype,"slottedAccordionItems",2);const Id=p`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Pd(){return b`<template><slot ${W({property:"slottedAccordionItems",filter:ro()})}></slot></template>`}const zd=Pd(),_d=mi.compose({name:wd,template:zd,styles:Id});_d.define(u.registry);const Od={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Td={circular:"circular",rounded:"rounded",square:"square"},Bd={small:"small",medium:"medium",large:"large"},pr={submit:"submit",reset:"reset",button:"button"},Ed=`${u.prefix}-button`,Ad=Od,Nd=Td,Fd=Bd,Md={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Ld=`${u.prefix}-anchor-button`,gr=CSS.supports("anchor-name: --a"),Dd="anchor"in HTMLElement.prototype,Hn=CSS.supports("selector(:state(g))"),Rn=new Map;function P(o){return Rn.get(o)??Rn.set(o,Hn?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Hn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const vi=new WeakMap;function jn(o,e){if(!o||!e)return!1;if(vi.has(o))return vi.get(o).has(e);const t=new Set(Object.values(o));return vi.set(o,t),t.has(e)}function xt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||jn(r,t))&&$(o,`${i}${t}`,!0)}var Vd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,Je=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hd(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&&Vd(e,t,i),i};class Me extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Md){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}Je([a],Me.prototype,"download",2),Je([a],Me.prototype,"href",2),Je([a],Me.prototype,"hreflang",2),Je([a],Me.prototype,"ping",2),Je([a],Me.prototype,"referrerpolicy",2),Je([a],Me.prototype,"rel",2),Je([a],Me.prototype,"target",2),Je([a],Me.prototype,"type",2);var Rd=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,fr=(o,e,t,r)=>{for(var i=r>1?void 0:r?jd(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&&Rd(e,t,i),i};class Dt extends Me{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){xt(this.elementInternals,e,t,Ad)}shapeChanged(e,t){xt(this.elementInternals,e,t,Nd)}sizeChanged(e,t){xt(this.elementInternals,e,t,Fd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}fr([a],Dt.prototype,"appearance",2),fr([a],Dt.prototype,"shape",2),fr([a],Dt.prototype,"size",2),fr([a({attribute:"icon-only",mode:"boolean"})],Dt.prototype,"iconOnly",2),Ye(Dt,Ke);const qn=p`${w("inline-flex")} :host{--icon-spacing:${ve};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${S};color:${_};border:${I} solid ${Fe};padding:0 ${re};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${L};line-height:${F};transition-duration:${cr};transition-property:background,border,color;transition-timing-function:${ur};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Yo};color:${Qs};border-color:${mt}}:host(:hover:active){background-color:${ti};border-color:${ho};color:${fl};outline-style:none}:host(:focus-visible){border-color:${U};outline:${ue} solid ${U};box-shadow:${nr},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:${oe};min-height:24px;min-width:64px;padding:0 ${ze};border-radius:${Pe};font-size:${N};line-height:${R};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Cn};padding:0 ${cd};font-size:${he};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:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${tr}}:host([appearance='primary']){background-color:${sn};color:${qe};border-color:transparent}:host([appearance='primary']:hover){background-color:${nn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${qe}}:host([appearance='primary']:hover:active){background-color:${an}}:host([appearance='primary']:focus-visible){border-color:${qe};box-shadow:${ai},0 0 0 2px ${ce}}:host([appearance='outline']){background-color:${le}}:host([appearance='outline']:hover){background-color:${Zo}}:host([appearance='outline']:hover:active){background-color:${Jo}}:host([appearance='subtle']){background-color:${tn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Qo};color:${Bt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${co};color:${Et};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Go}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Xo}}:host([appearance='transparent']){background-color:${le};color:${Ie}}:host([appearance='transparent']:hover){background-color:${Zo};color:${Go}}:host([appearance='transparent']:hover:active){background-color:${Jo};color:${Xo}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,br=p`${qn} :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:${Qe};border-color:${be};color:${O};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:${le}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${le};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:${le}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,qd=p`${qn} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Wd(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${je(o)} <span class=content part=content><slot></slot></span>${ut(o)}</template>`}const Ud=Wd(),Gd=Dt.compose({name:Ld,template:Ud,styles:qd});Gd.define(u.registry);const Wn={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"},Un={neutral:"neutral",brand:"brand",colorful:"colorful",...Wn},Xd=`${u.prefix}-avatar`,Kd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Yd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Qd=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Zd=/\s+/g,Jd=/[\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 eh(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 th(o){return o=o.replace(Kd,""),o=o.replace(Yd,""),o=o.replace(Zd," "),o=o.trim(),o}function Gn(o,e,t){return!o||(o=th(o),Jd.test(o)||!t?.allowPhoneInitials&&Qd.test(o))?"":eh(o,e,t?.firstInitialOnly)}var oh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?rh(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&&oh(e,t,i),i};class Vt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}H.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Gn(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}fo([g],Vt.prototype,"defaultSlot",2),fo([g],Vt.prototype,"monogram",2),fo([g],Vt.prototype,"slottedDefaults",2),fo([a],Vt.prototype,"name",2),fo([a],Vt.prototype,"initials",2);var ih=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,Ht=(o,e,t,r)=>{for(var i=r>1?void 0:r?sh(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&&ih(e,t,i),i};const et=class Xi extends Vt{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||Gn(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Un.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Xi.colors[ah(this.name??"")%Xi.colors.length]:this.color??Un.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)}};et.colors=Object.values(Wn),Ht([a],et.prototype,"active",2),Ht([a],et.prototype,"shape",2),Ht([a],et.prototype,"appearance",2),Ht([a({converter:te})],et.prototype,"size",2),Ht([a],et.prototype,"color",2),Ht([a({attribute:"color-id"})],et.prototype,"colorId",2);let nh=et;const ah=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},tt={fastOutSlowInMax:Mn,fastOutSlowInMid:yt,fastOutSlowInMin:bd,slowOutFastInMax:gd,slowOutFastInMid:$t,slowOutFastInMin:fd,fastEase:Ln,normalEase:ur,nullEasing:fi},lh=p`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${L};font-size:${B};border-radius:${de};color:${Y};background-color:${lo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${S}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ue} ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${po};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${N}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Ft}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${or}}: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:${Pe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Cn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Sn}}:host([data-color='brand']){color:${Zs};background-color:${ln}}:host([data-color='dark-red']){color:${$c};background-color:${vc}}:host([data-color='cranberry']){color:${fc};background-color:${gc}}:host([data-color='red']){color:${ql};background-color:${jl}}:host([data-color='pumpkin']){color:${Gc};background-color:${Uc}}:host([data-color='peach']){color:${Dc};background-color:${Lc}}:host([data-color='marigold']){color:${tc};background-color:${wn}}:host([data-color='gold']){color:${wc};background-color:${kc}}:host([data-color='brass']){color:${cc};background-color:${lc}}:host([data-color='brown']){color:${hc};background-color:${dc}}:host([data-color='forest']){color:${xc};background-color:${yc}}:host([data-color='seafoam']){color:${Jc};background-color:${Zc}}:host([data-color='dark-green']){color:${mc};background-color:${bc}}:host([data-color='light-teal']){color:${_c};background-color:${zc}}:host([data-color='teal']){color:${rd};background-color:${od}}:host([data-color='steel']){color:${td};background-color:${ed}}:host([data-color='blue']){color:${ac};background-color:${nc}}:host([data-color='royal-blue']){color:${Qc};background-color:${Yc}}:host([data-color='cornflower']){color:${pc};background-color:${uc}}:host([data-color='navy']){color:${Mc};background-color:${Fc}}:host([data-color='lavender']){color:${Pc};background-color:${Ic}}:host([data-color='purple']){color:${Kc};background-color:${Xc}}:host([data-color='grape']){color:${Sc};background-color:${Cc}}:host([data-color='lilac']){color:${Tc};background-color:${Oc}}:host([data-color='pink']){color:${Hc};background-color:${Vc}}:host([data-color='magenta']){color:${Ec};background-color:${Bc}}:host([data-color='plum']){color:${Wc};background-color:${qc}}:host([data-color='beige']){color:${sc};background-color:${ic}}:host([data-color='mink']){color:${Nc};background-color:${Ac}}:host([data-color='platinum']){color:${jc};background-color:${Rc}}:host([data-color='anchor']){color:${rc};background-color:${oc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${hr},${cr};transition-delay:${tt.fastEase},${tt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${hr},${Fn};transition-delay:${tt.fastEase},${tt.nullEasing}}:host([active])::before{box-shadow:${ad};border-style:solid;border-color:${ln}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${xe});border-width:${xe}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ci});border-width:${ci}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${nr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${li}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${ld}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${hr},${cr};transition-delay:${tt.fastOutSlowInMin},${tt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${hr},${Fn};transition-delay:${tt.fastOutSlowInMin},${tt.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}}`,ch=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function dh(){return b`<slot class=default-slot ${W("slottedDefaults")} ${z("defaultSlot")}></slot><span class=monogram ${z("monogram")}>${o=>o.initials}</span> ${ch}<slot name=badge></slot>`}const hh=dh(),uh=nh.compose({name:Xd,template:hh,styles:lh});uh.define(u.registry);const ph={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},gh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},fh=`${u.prefix}-badge`;var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,mr=(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&&bh(e,t,i),i};class Rt extends k{constructor(){super(...arguments),this.appearance=ph.filled,this.color=gh.brand}}mr([a],Rt.prototype,"appearance",2),mr([a],Rt.prototype,"color",2),mr([a],Rt.prototype,"shape",2),mr([a],Rt.prototype,"size",2),Ye(Rt,Ke);const Xn=p.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${L};font-size:${N};line-height:${R};min-width:20px;height:20px;padding-inline:calc(${oe} + ${D});border-radius:${de};border-color:${U};background-color:${sn};color:${qe};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${I};border-color:inherit;border-radius:inherit}`,Kn=p.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${po};line-height:${ir};padding-inline:calc(${D} + ${D})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${N};line-height:${R};padding-inline:calc(${oe} + ${D})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${N};line-height:${R};padding-inline:calc(${ve} + ${D})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,Yn=p.partial`:host([color='danger']){background-color:${gn};color:${qe}}:host([color='important']){background-color:${_};color:${S}}:host([color='informative']){background-color:${El};color:${Y}}:host([color='severe']){background-color:${yn};color:${qe}}:host([color='subtle']){background-color:${S};color:${_}}:host([color='success']){background-color:${vn};color:${qe}}:host([color='warning']){background-color:${Zl};color:${Tl}}`,Qn=p.partial`:host([appearance='ghost']){color:${Ko};background-color:initial}:host([appearance='ghost'][color='danger']){color:${bn}}:host([appearance='ghost'][color='important']){color:${_}}:host([appearance='ghost'][color='informative']){color:${Y}}:host([appearance='ghost'][color='severe']){color:${kn}}:host([appearance='ghost'][color='subtle']){color:${pt}}:host([appearance='ghost'][color='success']){color:${Kl}}:host([appearance='ghost'][color='warning']){color:${ni}}`,vh=p.partial`:host([appearance='outline']){border-color:currentColor;color:${Ko};background-color:initial}:host([appearance='outline'][color='danger']){color:${bn}}:host([appearance='outline'][color='important']){color:${Y};border-color:${Ne}}:host([appearance='outline'][color='informative']){color:${Y};border-color:${uo}}:host([appearance='outline'][color='severe']){color:${kn}}:host([appearance='outline'][color='subtle']){color:${Zs}}:host([appearance='outline'][color='success']){color:${Xl}}:host([appearance='outline'][color='warning']){color:${ni}}`,$h=p.partial`:host([appearance='tint']){background-color:${cn};color:${Ol};border-color:${hn}}:host([appearance='tint'][color='danger']){background-color:${pn};color:${si};border-color:${fn}}:host([appearance='tint'][color='important']){background-color:${Y};color:${S};border-color:${U}}:host([appearance='tint'][color='informative']){background-color:${Bl};color:${Y};border-color:${uo}}:host([appearance='tint'][color='severe']){background-color:${$n};color:${Yl};border-color:${xn}}:host([appearance='tint'][color='subtle']){background-color:${S};color:${Y};border-color:${uo}}:host([appearance='tint'][color='success']){background-color:${mn};color:${Gl};border-color:${Ul}}:host([appearance='tint'][color='warning']){background-color:${Ql};color:${ni};border-color:${Jl}}`,yh=p`:host([shape='square']){border-radius:${tr}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Pe}}${$h} ${vh} ${Qn} ${Yn} ${Kn} ${Xn} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Zn(o={}){return b`${je(o)}<slot>${ae(o.defaultContent)}</slot>${ut(o)}`}const xh=Zn(),kh=Rt.compose({name:fh,template:xh,styles:yh});kh.define(u.registry);var wh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,$e=(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&&wh(e,t,i),i};class ne extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==pr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case pr.reset:{this.resetForm();break}case pr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==pr.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}ne.formAssociated=!0,$e([a({mode:"boolean"})],ne.prototype,"autofocus",2),$e([g],ne.prototype,"defaultSlottedContent",2),$e([a({mode:"boolean"})],ne.prototype,"disabled",2),$e([a({attribute:"disabled-focusable",mode:"boolean"})],ne.prototype,"disabledFocusable",2),$e([a({attribute:"formaction"})],ne.prototype,"formAction",2),$e([a({attribute:"form"})],ne.prototype,"formAttribute",2),$e([a({attribute:"formenctype"})],ne.prototype,"formEnctype",2),$e([a({attribute:"formmethod"})],ne.prototype,"formMethod",2),$e([a({attribute:"formnovalidate",mode:"boolean"})],ne.prototype,"formNoValidate",2),$e([a({attribute:"formtarget"})],ne.prototype,"formTarget",2),$e([a],ne.prototype,"name",2),$e([a],ne.prototype,"type",2),$e([a],ne.prototype,"value",2);var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,vr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ih(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&&Sh(e,t,i),i};class Ue extends ne{constructor(){super(...arguments),this.iconOnly=!1}}vr([a],Ue.prototype,"appearance",2),vr([a],Ue.prototype,"shape",2),vr([a],Ue.prototype,"size",2),vr([a({attribute:"icon-only",mode:"boolean"})],Ue.prototype,"iconOnly",2),Ye(Ue,Ke);function $i(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${je(o)} <span class=content part=content><slot ${W("defaultSlottedContent")}></slot></span>${ut(o)}</template>`}const Ph=$i(),zh=Ue.compose({name:Ed,template:Ph,styles:br});zh.define(u.registry);const _h=`${u.prefix}-checkbox`;var Oh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,ot=(o,e,t,r)=>{for(var i=r>1?void 0:r?Th(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&&Oh(e,t,i),i};class ke extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$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.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.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}}ke.formAssociated=!0,ot([a({mode:"boolean"})],ke.prototype,"autofocus",2),ot([g],ke.prototype,"disabled",2),ot([a({attribute:"disabled",mode:"boolean"})],ke.prototype,"disabledAttribute",2),ot([a({attribute:"form"})],ke.prototype,"formAttribute",2),ot([a({attribute:"checked",mode:"boolean"})],ke.prototype,"initialChecked",2),ot([a({attribute:"value",mode:"fromView"})],ke.prototype,"initialValue",2),ot([a],ke.prototype,"name",2),ot([a({mode:"boolean"})],ke.prototype,"required",2);var Bh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,yi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Eh(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 $r extends ke{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}yi([g],$r.prototype,"indeterminate",2),yi([a],$r.prototype,"shape",2),yi([a],$r.prototype,"size",2);const Ah=P("active"),Nh=P("bad-input"),x=P("checked"),Fh=P("custom-error"),Mh=P("description"),pe=P("disabled");P("error");const Lh=P("flip-block"),Dh=P("focus-visible");P("has-message");const kt=P("indeterminate"),jt=P("multiple"),Vh=P("open"),Hh=P("pattern-mismatch"),Rh=P("placeholder-shown"),M=P("pressed"),jh=P("range-overflow"),qh=P("range-underflow"),Wh=P("required"),xi=P("selected"),Uh=P("step-mismatch"),yr=P("submenu"),Gh=P("too-long"),Xh=P("too-short"),Kh=P("type-mismatch"),Yh=P("user-invalid"),Qh=P("valid"),Zh=P("value-missing"),Jh=p`${w("inline-flex")} :host{--size:16px;background-color:${S};border-radius:${Pe};border:${I} solid ${Ne};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ft}}:host(:active){border-color:${bt}}:host(${x}:hover){background-color:${At};border-color:${Vl}}:host(${x}:active){background-color:${Nt};border-color:${un}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}.indeterminate-indicator,.checked-indicator{color:${pt};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(${kt}){border-color:${Ze}}:host(${x}),:host(${kt}) .indeterminate-indicator{background-color:${gt}}:host(${kt}) .indeterminate-indicator{border-radius:${Pe};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${de}}:host([disabled]),:host([disabled]${x}){background-color:${Qe};border-color:${be}}:host([disabled]){cursor:unset}:host([disabled]${kt}) .indeterminate-indicator{background-color:${be}}:host([disabled]${x}) .checked-indicator{color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${kt}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${kt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${kt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}}`,eu=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),tu=b.partial("<span class=indeterminate-indicator></span>");function ou(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ae(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ae(o.indeterminateIndicator)}</slot></template>`}const ru=ou({checkedIndicator:eu,indeterminateIndicator:tu}),iu=$r.compose({name:_h,template:ru,styles:Jh});iu.define(u.registry);const su=`${u.prefix}-compound-button`;class nu extends Ue{}const au=p`${br} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${F}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${N};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Bt}}:host(:active) ::slotted([slot='description']){color:${Et}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${qe}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${Go}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Xo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${O}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ve}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${oe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${ze}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function lu(o={}){return b`<template ?disabled=${e=>e.disabled} tabindex=${e=>e.disabled?null:e.tabIndex??0}>${je(o)} <span class=content part=content><slot ${W("defaultSlottedContent")}></slot><slot name=description></slot></span>${ut(o)}</template>`}const cu=lu(),du=nu.compose({name:su,template:cu,styles:au});du.define(u.registry);const hu=`${u.prefix}-counter-badge`;var uu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,rt=(o,e,t,r)=>{for(var i=r>1?void 0:r?pu(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&&uu(e,t,i),i};class Le extends k{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}`}}rt([a],Le.prototype,"appearance",2),rt([a],Le.prototype,"color",2),rt([a],Le.prototype,"shape",2),rt([a],Le.prototype,"size",2),rt([a({converter:te})],Le.prototype,"count",2),rt([a({attribute:"overflow-count",converter:te})],Le.prototype,"overflowCount",2),rt([a({attribute:"show-zero",mode:"boolean"})],Le.prototype,"showZero",2),rt([a({mode:"boolean"})],Le.prototype,"dot",2),Ye(Le,Ke);const gu=p`:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Pe}}${Kn} ${Yn} ${Qn} ${Xn} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function fu(o={}){return Zn({defaultContent:b`${e=>e.setCount()}`})}const bu=fu(),mu=Le.compose({name:hu,template:bu,styles:gu});mu.define(u.registry);const wt={modal:"modal",nonModal:"non-modal",alert:"alert"};function Jn(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vu=`${u.prefix}-dialog`;var $u=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,bo=(o,e,t,r)=>{for(var i=r>1?void 0:r?yu(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&&$u(e,t,i),i};class qt extends k{constructor(){super(...arguments),this.type=wt.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"})}}dialogChanged(){this.updateDialogAttributes()}typeChanged(e,t){this.updateDialogAttributes()}show(){H.enqueue(()=>{this.emitBeforeToggle(),this.type===wt.alert||this.type===wt.modal?this.dialog.showModal():this.type===wt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==wt.alert&&e.target===this.dialog&&this.hide(),!0}updateDialogAttributes(){this.dialog&&(this.type===wt.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this.type!==wt.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}}bo([g],qt.prototype,"dialog",2),bo([a({attribute:"aria-describedby"})],qt.prototype,"ariaDescribedby",2),bo([a({attribute:"aria-labelledby"})],qt.prototype,"ariaLabelledby",2),bo([a({attribute:"aria-label"})],qt.prototype,"ariaLabel",2),bo([a],qt.prototype,"type",2);const xu=b`<dialog class=dialog part=dialog aria-describedby=${o=>o.ariaDescribedby} aria-labelledby=${o=>o.ariaLabelledby} aria-label=${o=>o.ariaLabel} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${z("dialog")}><slot></slot></dialog>`,ku=p`@layer base{:host{--dialog-backdrop:${oi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${Sn};border:none;box-shadow:${Nn};color:${_};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${gi};transition-timing-function:${yt};opacity:0}::backdrop{transition-timing-function:${fi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${$t}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${U}}}}`,wu=qt.compose({name:vu,template:xu,styles:ku});wu.define(u.registry);const Cu=`${u.prefix}-dialog-body`;class Su extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Jn(t)&&t.hide()}return!0}}const Iu=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,Pu=p`${w("grid")} :host{background:${S};box-sizing:border-box;gap:${ie};padding:${vt} ${di};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${_};column-gap:8px;display:flex;font-family:${v};font-size:${Ft};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${sr};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${vt} * -1);padding-block-end:${ie};padding-block-start:${vt}}.content{box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};line-height:${F};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${vt} * -1);padding-block-end:${vt};padding-block-start:${ui}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,zu=Su.compose({name:Cu,template:Iu,styles:Pu});zu.define(u.registry);const ye={horizontal:"horizontal",vertical:"vertical"},mo={separator:"separator",presentation:"presentation"},ea=ye,_u=`${u.prefix}-divider`;var Ou=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tu(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&&Ou(e,t,i),i};class ki extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??mo.separator,this.role!==mo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ea.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??mo.separator}`),t===mo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==mo.presentation?t??null:null,xt(this.elementInternals,e,t,ea)}}ta([a],ki.prototype,"role",2),ta([a],ki.prototype,"orientation",2);var Bu=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,wi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Eu(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&&Bu(e,t,i),i};class xr extends ki{}wi([a({attribute:"align-content"})],xr.prototype,"alignContent",2),wi([a],xr.prototype,"appearance",2),wi([a({mode:"boolean"})],xr.prototype,"inset",2);function Au(){return b`<slot></slot>`}const Nu=Au(),Fu=p`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${uo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${N};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Fe}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${dn}}:host([appearance='brand']) ::slotted(*){color:${Ko}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ll}}:host([appearance='subtle']) ::slotted(*){color:${Y}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Mu=xr.compose({name:_u,template:Nu,styles:Fu});Mu.define(u.registry);const Lu={start:"start",end:"end"},Du={small:"small",medium:"medium",large:"large",full:"full"},vo={nonModal:"non-modal",modal:"modal",inline:"inline"},Vu=`${u.prefix}-drawer`;var Hu=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,Wt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ru(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&&Hu(e,t,i),i};class Ct extends k{constructor(){super(...arguments),this.type=vo.modal,this.position=Lu.start,this.size=Du.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"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===vo.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){H.enqueue(()=>{this.emitBeforeToggle(),this.type===vo.inline||this.type===vo.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){this.dialog&&(this.dialog.role=this.type===vo.modal?"dialog":this.role)}}Wt([a],Ct.prototype,"type",2),Wt([a({attribute:"aria-labelledby"})],Ct.prototype,"ariaLabelledby",2),Wt([a({attribute:"aria-describedby"})],Ct.prototype,"ariaDescribedby",2),Wt([a],Ct.prototype,"position",2),Wt([a({attribute:"size"})],Ct.prototype,"size",2),Wt([g],Ct.prototype,"dialog",2);const ju=p`${w("block")} :host{--dialog-backdrop:${oi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${B};line-height:${F};font-family:${v};font-weight:${E};color:${_};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${U};border-inline-start-color:var(--drawer-separator,${U});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Nn};border:${I} solid ${U};background:${S}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${gi};transition-timing-function:${yt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${$t}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${$t}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${gi};transition-timing-function:${yt};background:var(--dialog-backdrop,${oi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${fi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function qu(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.ariaDescribedby} aria-labelledby=${o=>o.ariaLabelledby} aria-label=${o=>o.ariaLabel} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${z("dialog")}><slot></slot></dialog>`}const Wu=qu(),Uu=Ct.compose({name:Vu,template:Wu,styles:ju});Uu.define(u.registry);const Gu=`${u.prefix}-drawer-body`;class Xu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Jn(t,"-drawer")&&t.hide()}return!0}}const oa=p.partial`font-family:${v};font-size:${B};line-height:${F};font-weight:${E};`;p.partial`font-family:${v};font-size:${B};line-height:${F};font-weight:${L};`,p.partial`font-family:${v};font-size:${B};line-height:${F};font-weight:${rr};`;const Ku=p.partial`font-family:${v};font-size:${he};line-height:${me};font-weight:${E};`,ra=p.partial`font-family:${v};font-size:${N};line-height:${R};font-weight:${E};`;p.partial`font-family:${v};font-size:${N};line-height:${R};font-weight:${L};`,p.partial`font-family:${v};font-size:${N};line-height:${R};font-weight:${rr};`,p.partial`font-family:${v};font-size:${po};line-height:${ir};font-weight:${E};`,p.partial`font-family:${v};font-size:${po};line-height:${ir};font-weight:${L};`;const Yu=p.partial`font-family:${v};font-size:${Ft};line-height:${sr};font-weight:${L};`;p.partial`font-family:${v};font-size:${he};line-height:${me};font-weight:${L};`,p.partial`font-family:${v};font-size:${he};line-height:${me};font-weight:${rr};`,p.partial`font-family:${v};font-size:${Pn};line-height:${Bn};font-weight:${L};`,p.partial`font-family:${v};font-size:${In};line-height:${Tn};font-weight:${L};`,p.partial`font-family:${v};font-size:${or};line-height:${On};font-weight:${L};`,p.partial`font-family:${v};font-size:${zn};line-height:${En};font-weight:${L};`,p.partial`font-family:${v};font-size:${_n};line-height:${An};font-weight:${L};`;const Qu=p`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${dd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Yu}}.footer{display:flex;justify-content:flex-start;gap:${re}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Zu(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const Ju=Zu(),ep=Xu.compose({name:Gu,template:Ju,styles:Qu});ep.define(u.registry);const tp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ci={combobox:"combobox",dropdown:"dropdown",select:"select"},op=`${u.prefix}-dropdown`;function ia(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const rp=`${u.prefix}-listbox`;function kr(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ip=`${u.prefix}-option`,it={ltr:"ltr",rtl:"rtl"},sa=o=>o.closest("[dir]")?.dir==="rtl"?it.rtl:it.ltr;function na(o){return o.closest("[lang]")?.lang??"en"}let sp=0;function De(o="id-"){const e=`${o}${sp++}`;return document.getElementById(e)?De(o):e}const np=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${z("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,ap=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${z("control")}>`,lp=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${z("control")}>${o=>o.displayValue}</button>`;function cp(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${z("controlSlot")}></slot><slot name=indicator ${z("indicatorSlot")}>${ae(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const dp=cp({indicator:np});var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,G=(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};const V=class eo extends k{constructor(){super(),this.activeIndex=0,this.id=De("dropdown-"),this.required=!1,this.type=Ci.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||sa(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||De("input-"))}disabledChanged(e,t){this.listbox&&H.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(na(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),Lt(t,()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()},{idleCallback:!0}),gr){const i=De("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&H.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,gr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Ci.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||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(kr(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(na(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Ci.combobox){ap.render(this,this);return}lp.render(this,this),this._insertingControl=!1}}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let 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!kr(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Lt(this,()=>{const r=t.assignedElements().find(i=>ia(i));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),H.enqueue(()=>{this.insertControl()})}disconnectedCallback(){eo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(eo.AnchorPositionFallbackObserver||(eo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:s})=>{if(ia(s)){if(r.bottom>window.innerHeight){$(s.elementInternals,"flip-block",!0);return}r.top<0&&$(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,eo.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}eo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};V.formAssociated=!0,G([rs],V.prototype,"activeDescendant",1),G([g],V.prototype,"activeIndex",2),G([a({attribute:"aria-labelledby",mode:"fromView"})],V.prototype,"ariaLabelledBy",2),G([g],V.prototype,"control",2),G([a({mode:"boolean"})],V.prototype,"disabled",2),G([rs],V.prototype,"displayValue",1),G([a({attribute:"id"})],V.prototype,"id",2),G([g],V.prototype,"indicator",2),G([g],V.prototype,"indicatorSlot",2),G([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),G([g],V.prototype,"listbox",2),G([a({mode:"boolean"})],V.prototype,"multiple",2),G([a],V.prototype,"name",2),G([g],V.prototype,"open",2),G([a],V.prototype,"placeholder",2),G([a({mode:"boolean"})],V.prototype,"required",2),G([a],V.prototype,"type",2),G([a({attribute:"value"})],V.prototype,"valueAttribute",2);let pp=V;var gp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,aa=(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&&gp(e,t,i),i};class Si extends pp{constructor(){super(...arguments),this.appearance=tp.outline}}aa([a],Si.prototype,"appearance",2),aa([a],Si.prototype,"size",2);const bp=p`${w("inline-flex")} :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${Rh}){color:${ei}}.control{appearance:none;background-color:${S};border-radius:${C};border:${I} solid ${U};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${D};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${go} ${We};position:relative;text-align:start;width:100%;z-index:1;${oa}}:host([size='small']) .control{column-gap:${D};padding:${Mt} ${ve};${ra}}:host([size='large']) .control{column-gap:${ze};padding:${ie} ${re};${Ku}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Y};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${Ze};height:${ue};scale:0 1;transition:scale ${pi} ${yt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${er};outline:${ue} solid ${ce}}:host(:where(${Vh},:focus-within)) .control::after{scale:1 1;transition-duration:${dr};transition-timing-function:${$t}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Ne}}:host([appearance='transparent']) .control{--control-border-color:${ri};background-color:${le};border-radius:${tr}}:host([appearance='outline']) .control{--control-border-color:${Fe}}:host([appearance='outline']) .control:hover{--control-border-color:${mt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${ft}}:host([appearance='outline']) .control:hover::after{background-color:${At}}:host([appearance='outline']) .control:active{--control-border-color:${ho}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${bt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Nt}}:host([appearance='filled-darker']) .control{background-color:${ao}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${U}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${be};background-color:${Qe};color:${O}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${F} + (${go} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${R} + (${Mt} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${me} + (${ie} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`,mp=Si.compose({name:op,template:dp,styles:bp});mp.define(u.registry);const vp={above:"above",after:"after",before:"before"},we={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"},$p=`${u.prefix}-field`;var yp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,wr=(o,e,t,r)=>{for(var i=r>1?void 0:r?xp(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&&yp(e,t,i),i};class $o extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||De("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(we))$(this.elementInternals,t,this.input.validity[e])}}wr([g],$o.prototype,"labelSlot",2),wr([g],$o.prototype,"messageSlot",2),wr([g],$o.prototype,"slottedInputs",2),wr([g],$o.prototype,"input",2);var kp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Cp=(o,e,t,r)=>{for(var i=r>1?void 0:r?wp(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&&kp(e,t,i),i};class la extends $o{constructor(){super(...arguments),this.labelPosition=vp.above}}Cp([a({attribute:"label-position"})],la.prototype,"labelPosition",2);const Sp=p`${w("inline-grid")} :host{color:${_};align-items:center;gap:0 ${re};justify-items:start}:has([slot='message']){color:${_};row-gap:${ie}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${re}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${ar}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${hd}}:host(${Wh}) ::slotted([slot='label'])::after{content:'*'/'';color:${si};margin-inline-start:${oe}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Y};font-family:${v};font-size:${N};font-weight:${E};grid-area:message;line-height:${R};margin-block-start:${ar}}:host(${Dh}:focus-within){border-radius:${C};outline:${ue} solid ${ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${E};grid-area:label;line-height:${F};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${N};line-height:${R}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${pe}){cursor:default}::slotted([flag]){display:none}:host(${Nh}) ::slotted([flag='${we.badInput}']),:host(${Fh}) ::slotted([flag='${we.customError}']),:host(${Hh}) ::slotted([flag='${we.patternMismatch}']),:host(${jh}) ::slotted([flag='${we.rangeOverflow}']),:host(${qh}) ::slotted([flag='${we.rangeUnderflow}']),:host(${Uh}) ::slotted([flag='${we.stepMismatch}']),:host(${Gh}) ::slotted([flag='${we.tooLong}']),:host(${Xh}) ::slotted([flag='${we.tooShort}']),:host(${Kh}) ::slotted([flag='${we.typeMismatch}']),:host(${Zh}) ::slotted([flag='${we.valueMissing}']),:host(${Qh}) ::slotted([flag='${we.valid}']){display:block}`,Ip=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${W("labelSlot")}></slot><slot name=input part=input ${W("slottedInputs")}></slot><slot name=message part=message ${W({property:"messageSlot",filter:ro("[flag]")})}></slot></template>`,Pp=la.compose({name:$p,template:Ip,styles:Sp,shadowOptions:{delegatesFocus:!0}});Pp.define(u.registry);const zp=`${u.prefix}-image`;var _p=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,yo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Op(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&&_p(e,t,i),i};class Ut extends k{}yo([a({mode:"boolean"})],Ut.prototype,"block",2),yo([a({mode:"boolean"})],Ut.prototype,"bordered",2),yo([a({mode:"boolean"})],Ut.prototype,"shadow",2),yo([a],Ut.prototype,"fit",2),yo([a],Ut.prototype,"shape",2);const Tp=b`<slot></slot>`,Bp=p`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${uo}}: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:${nr}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Ep=Ut.compose({name:zp,template:Tp,styles:Bp});Ep.define(u.registry);const Ap=`${u.prefix}-label`;var Np=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Cr=(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 xo extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Cr([a],xo.prototype,"size",2),Cr([a],xo.prototype,"weight",2),Cr([a({mode:"boolean"})],xo.prototype,"disabled",2),Cr([a({mode:"boolean"})],xo.prototype,"required",2);const Mp=p`${w("inline-flex")} :host{color:${_};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};line-height:${F};user-select:none}.asterisk{color:${si};margin-inline-start:${oe}}:host([size='small']){font-size:${N};line-height:${R}}:host([size='large']){font-size:${he};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${L}}:host([disabled]),:host([disabled]) .asterisk{color:${O}}`;function Lp(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Dp=Lp(),Vp=xo.compose({name:Ap,template:Dp,styles:Mp});Vp.define(u.registry);const Hp=`${u.prefix}-link`;var Rp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?jp(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&&Rp(e,t,i),i};class Ii extends Me{constructor(){super(...arguments),this.inline=!1}}ca([a],Ii.prototype,"appearance",2),ca([a({mode:"boolean"})],Ii.prototype,"inline",2);const qp=p`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${yl};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${xl}}:host(:active){color:${kl}}:host([appearance='subtle']:hover){color:${Cl}}:host([appearance='subtle']:active){color:${Sl}}}:host([appearance='subtle']){color:${wl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Wp(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Up=Wp(),Gp=Ii.compose({name:Hp,template:Up,styles:qp});Gp.define(u.registry);var Xp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,ko=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kp(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&&Xp(e,t,i),i};class Gt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),H.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return kr(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Lt(this,()=>{this.id=this.id||De("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const s=i===e;r.selected=s,s&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Lt(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>kr(r));this.options=t}})}}ko([g],Gt.prototype,"defaultSlot",2),ko([g],Gt.prototype,"multiple",2),ko([g],Gt.prototype,"options",2),ko([g],Gt.prototype,"selectedIndex",2),ko([g],Gt.prototype,"dropdown",2);const Yp=p`${w("inline-flex")} :host{background-color:${S};border-radius:${C};border:${I} solid ${U};box-shadow:${li};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${oe};row-gap:${D};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Lh}){margin-block-start:revert;translate:0 -100%}}`;function Qp(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${z("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Zp=Qp(),Jp=Gt.compose({name:rp,template:Zp,styles:Yp});Jp.define(u.registry);const eg=`${u.prefix}-menu-button`;class tg extends Ue{}const og=$i({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),rg=tg.compose({name:eg,template:og,styles:br});rg.define(u.registry);const Q={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Q.menuitem+"",Q.menuitemcheckbox+"",Q.menuitemradio+"";function ig(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const sg=`${u.prefix}-menu-item`;var ng=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,Xt=(o,e,t,r)=>{for(var i=r>1?void 0:r?ag(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&&ng(e,t,i),i};class Ge extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Q.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Q.menuitemcheckbox:this.checked=!this.checked;break;case Q.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Q.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Q.menuitem}checkedChanged(e,t){const r=this.role!==Q.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Q.menuitem,this.elementInternals.ariaChecked=this.role!==Q.menuitem?`${!!this.checked}`:null}}Xt([a({mode:"boolean"})],Ge.prototype,"disabled",2),Xt([a],Ge.prototype,"role",2),Xt([a({mode:"boolean"})],Ge.prototype,"checked",2),Xt([a({mode:"boolean"})],Ge.prototype,"hidden",2),Xt([g],Ge.prototype,"slottedSubmenu",2),Xt([g],Ge.prototype,"submenu",2),Ye(Ge,Ke);const lg=p`${w("grid")} :host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${B}/${F} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Yo};color:${Bt}}:host(:active){background-color:${Js};color:${Et}}:host(:active) ::slotted([slot='start']){color:${Pl}}:host(${pe}){background-color:${Qe};color:${O}}:host(${pe}) ::slotted([slot='start']),:host(${pe}) ::slotted([slot='end']){color:${O}}: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(${yr})) .submenu-glyph,:host(:not(${yr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Y};font:${E} ${N}/${R} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${yr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${yr}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${pe}),:host(${pe}) ::slotted([slot='start']),:host(${pe}) ::slotted([slot='end']){color:GrayText}}`,cg=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>'),dg=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 hg(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${ae(o.indicator)}</slot>${je(o)}<div part=content class=content><slot></slot></div>${ut(o)}<slot name=submenu-glyph>${ae(o.submenuGlyph)}</slot><slot name=submenu ${W({property:"slottedSubmenu"})}></slot></template>`}const ug=hg({indicator:cg,submenuGlyph:dg}),pg=Ge.compose({name:sg,template:ug,styles:lg});pg.define(u.registry);const gg=`${u.prefix}-menu-list`;var wo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Pi={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function zi(o,e){return o.contains(e)}function fg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})}function bg(o,e,t){const r="forward",i="backward",s="block",n="inline";if(mg(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",f=d?s:n,y=d?n:s,X=d?c.endsWith("-rl")!==l:l,Se=d&&l,at={ArrowUp:{axis:y,dir:Se?r:i},ArrowDown:{axis:y,dir:Se?i:r},ArrowLeft:{axis:f,dir:X?r:i},ArrowRight:{axis:f,dir:X?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!at||t&&at.axis&&at.axis!==t?null:at.dir}function mg(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var vg=globalThis.__FOCUSGROUP_POLYFILL__,$g=vg.o;function _i(){for(const o of $g)o.takeRecords()}var Sr=class{#t;#e;#n=Pi.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#i=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(fg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#n),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#x.bind(this),r)}disconnect(){this.#s(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#n)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(wo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#n=o?.behavior??Pi.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#n===Pi.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#n),e.setAttribute(wo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#s(),this.#m(o)),this.#e.flush?.()}#b(){this.#s();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(wo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(wo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(bg(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#i&&(!o.relatedTarget||!zi(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#s(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#i&&this.#s();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#x(o){if(!o.relatedTarget||!zi(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&zi(this.#t,o.relatedTarget)||this.#a||!this.#r)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#r||t!==this.#r){for(const{element:r,segmentBoundary:i}of this.#e.items())r.tabIndex=i?0:-1;t&&(t.tabIndex=0,this.#r=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(wo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,_i())}#s(){this.#i&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#i=!1,this.#l=null,this.#e.flush?.(),_i())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#s(),_i()}};class Ir{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var yg=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,kg=(o,e,t,r)=>{for(var i=r>1?void 0:r?xg(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&&yg(e,t,i),i};const Oi=class Ki extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&Qi(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuChildren[s],c=n.role;if(c===Q.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuChildren.length-1;for(let s=r+1;s<=i;++s){const n=this.menuChildren[s],c=n.role;if(c===Q.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),H.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Q.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,i)=>{const s=Ki.elementIndent(i);return Math.max(r,s)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return ig(e)||Qi(e)&&!!e.role&&e.role in Ki.focusableElementRoles}};Oi.focusableElementRoles=Q,kg([g],Oi.prototype,"items",2);let wg=Oi;class Cg extends wg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ir(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Sg=p`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${U};border-radius:${C};box-shadow:${li};padding:4px;row-gap:2px}`;function Ig(){return b`<template focusgroup=menu slot=${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}><slot ${W("items")}></slot></template>`}const Pg=Ig(),zg=Cg.compose({name:gg,template:Pg,styles:Sg});zg.define(u.registry);const _g=`${u.prefix}-menu`;var Og=Object.defineProperty,Tg=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tg(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&&Og(e,t,i),i};class Xe extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ge&&(e.target.getAttribute("role")===Q.menuitemcheckbox||e.target.getAttribute("role")===Q.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){H.enqueue(()=>{this._menuList.focus()})}focusTrigger(){H.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}st([a({attribute:"open-on-hover",mode:"boolean"})],Xe.prototype,"openOnHover",2),st([a({attribute:"open-on-context",mode:"boolean"})],Xe.prototype,"openOnContext",2),st([a({attribute:"close-on-scroll",mode:"boolean"})],Xe.prototype,"closeOnScroll",2),st([a({attribute:"persist-on-item-click",mode:"boolean"})],Xe.prototype,"persistOnItemClick",2),st([a({mode:"boolean"})],Xe.prototype,"split",2),st([g],Xe.prototype,"slottedMenuList",2),st([g],Xe.prototype,"slottedTriggers",2),st([g],Xe.prototype,"primaryAction",2);const Bg=p`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${Fe};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Eg(){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 ${z("primaryAction")}></slot><slot name=trigger ${W({property:"slottedTriggers",filter:ro()})}></slot><slot ${W({property:"slottedMenuList",filter:ro()})}></slot></template>`}const Ag=Eg(),Ng=Xe.compose({name:_g,template:Ag,styles:Bg});Ng.define(u.registry);const Fg=`${u.prefix}-message-bar`;var Mg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Ti=(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&&Mg(e,t,i),i};class Pr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ti([a],Pr.prototype,"shape",2),Ti([a],Pr.prototype,"layout",2),Ti([a],Pr.prototype,"intent",2);const Dg=p`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${N};line-height:${R};width:100%;background:${ao};border:1px solid ${Fe};padding-inline:${re};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:${mn};border-color:${Wl}}:host([intent='warning']){background-color:${$n};border-color:${xn}}:host([intent='error']){background-color:${pn};border-color:${fn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${lr};padding-inline:${re}}.content{grid-area:body;max-width:520px;padding-block:${lr};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Y};margin-inline-end:${ze}}: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:${ze};gap:${ze}}:host([layout='multiline']) .actions{margin-block-start:${lr};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${ie}}::slotted(*){font-size:inherit}`;function Vg(){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 Hg=Vg(),Rg=Pr.compose({name:Fg,template:Hg,styles:Dg,shadowOptions:{mode:u.shadowRootMode}});Rg.define(u.registry);var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?qg(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&&jg(e,t,i),i};class se extends k{constructor(){super(),this.active=!1,this.id=De("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,H.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}se.formAssociated=!0,ge([g],se.prototype,"active",2),ge([a({attribute:"current-selected",mode:"boolean"})],se.prototype,"currentSelected",2),ge([a({attribute:"selected",mode:"boolean"})],se.prototype,"defaultSelected",2),ge([g],se.prototype,"descriptionSlot",2),ge([g],se.prototype,"disabled",2),ge([a({attribute:"disabled",mode:"boolean"})],se.prototype,"disabledAttribute",2),ge([a({attribute:"form"})],se.prototype,"formAttribute",2),ge([a({mode:"boolean"})],se.prototype,"freeform",2),ge([a({attribute:"id"})],se.prototype,"id",2),ge([a({attribute:"value",mode:"fromView"})],se.prototype,"initialValue",2),ge([g],se.prototype,"multiple",2),ge([a],se.prototype,"name",2),ge([g],se.prototype,"start",2),ge([a({attribute:"text",mode:"fromView"})],se.prototype,"textAttribute",2);const Wg=p`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${oa} align-items:center;background-color:${S};border-radius:${C};box-sizing:border-box;color:${Ie};column-gap:${oe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ve};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Yo};color:${Bt}}:host(:active){background-color:${ti};color:${Et}}:host(:disabled){background-color:${S};color:${O};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(${xi}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${jt}) .checkmark-16-filled,:host(:not(${jt})) .checkmark-12-regular{display:none}:host(${jt}) .checkmark-12-regular{background-color:${S};border-radius:${Pe};border:${I} solid ${Ne};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${jt}${xi}) .checkmark-12-regular{background-color:${gt};border-color:${Ze};fill:${pt}}:host(:disabled${jt}) .checkmark-12-regular{border-color:${be}}:host(:disabled${jt}${xi}) .checkmark-12-regular{background-color:${Qe}}:host(${Ah}){border:${ue} solid ${ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ve}}}:host(${Mh}){column-gap:${ve};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Y};grid-area:description;${ra}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,Ug=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function Gg(o={}){return b`<slot name=checked-indicator>${ae(o.checkedIndicator)}</slot>${je(o)}<div class=content part=content><slot ${W({property:"freeformOutputs",filter:ro("output")})}></slot></div><div class=description part=description><slot name=description ${W("descriptionSlot")}></slot></div>`}const Xg=Gg({checkedIndicator:Ug}),Kg=se.compose({name:ip,template:Xg,styles:Wg});Kg.define(u.registry);const Yg={success:"success",warning:"warning",error:"error"},Qg=`${u.prefix}-progress-bar`;var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Co=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jg(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&&Zg(e,t,i),i};class Kt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){xt(this.elementInternals,e,t,Yg)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||H.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,s=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${s}%`)})}}Co([g],Kt.prototype,"indicator",2),Co([a({attribute:"validation-state"})],Kt.prototype,"validationState",2),Co([a({converter:te})],Kt.prototype,"value",2),Co([a({converter:te})],Kt.prototype,"min",2),Co([a({converter:te})],Kt.prototype,"max",2);var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,da=(o,e,t,r)=>{for(var i=r>1?void 0:r?tf(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&&ef(e,t,i),i};class Bi extends Kt{}da([a],Bi.prototype,"thickness",2),da([a],Bi.prototype,"shape",2);const of=p`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${lo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${tr}}.indicator{background-color:${gt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${lo} 0%,${le} 50%,${lo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${gn}}:host([validation-state='warning']) .indicator{background-color:${yn}}:host([validation-state='success']) .indicator{background-color:${vn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function rf(){return b`<div class=indicator part=indicator ${z("indicator")}></div>`}const sf=rf(),nf=Bi.compose({name:Qg,template:sf,styles:of});nf.define(u.registry);const ha=ye,af=`${u.prefix}-radio-group`;function lf(o,e="-radio"){return Yi(e)(o)}const cf=`${u.prefix}-radio`;var df=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,nt=(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&&df(e,t,i),i};class Ve extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ha.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ha.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const i=this.enabledRadios.findLastIndex(n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===i,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute,n.toggleAttribute("focusgroupstart",n.checked&&!n.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>lf(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const n=s===e;i.checked=n,n&&(r=s,t&&i.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const s={valueMissing:!0,...e},n=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(s,n,c):c.elementInternals.setValidity({})})}}}Ve.formAssociated=!0,nt([g],Ve.prototype,"checkedIndex",2),nt([a({attribute:"disabled",mode:"boolean"})],Ve.prototype,"disabled",2),nt([a({attribute:"value",mode:"fromView"})],Ve.prototype,"initialValue",2),nt([a],Ve.prototype,"name",2),nt([a],Ve.prototype,"orientation",2),nt([g],Ve.prototype,"radios",2),nt([a({mode:"boolean"})],Ve.prototype,"required",2),nt([g],Ve.prototype,"slottedRadios",2);class uf extends Ve{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ir(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const pf=p`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ui}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Y}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${_}}::slotted(${pe}){color:${O}}::slotted(${x}){color:${_}}:host([slot='input']){margin:${ie} ${ze}}`;function gf(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${W("slottedRadios")}></slot></template>`}const ff=gf(),bf=uf.compose({name:af,template:ff,styles:pf});bf.define(u.registry);class mf extends ke{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const vf=p`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${S};border:${I} solid ${Ne};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${pt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}:host(:hover){border-color:${ft}}:host(${x}){border-color:${Ze}}:host(${x}) .checked-indicator{background-color:${gt}}:host(${x}:hover) .checked-indicator{background-color:${At}}:host(:active){border-color:${bt}}:host(${x}:active) .checked-indicator{background-color:${Nt}}:host(:focus-visible){outline:none}:host(${pe}){background-color:${Qe};border-color:${be}}:host(${x}${pe}) .checked-indicator{background-color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${pe}):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(${pe}):hover) .checked-indicator{background-color:Highlight}:host(${pe}){border-color:GrayText;color:GrayText}:host(${pe}${x}) .checked-indicator{background-color:GrayText}}`,$f=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function yf(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>${ae(o.checkedIndicator)}</slot></template>`}const xf=yf({checkedIndicator:$f}),kf=mf.compose({name:cf,template:xf,styles:vf});kf.define(u.registry);const wf=`${u.prefix}-rating-display`;var Cf=Object.defineProperty,Sf=Object.getOwnPropertyDescriptor,So=(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&&Cf(e,t,i),i};const If=CSS.supports("width: attr(value type(<number>))"),Yt={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function zr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Qt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(Yt.maskImageFilled),this.display.style.removeProperty(Yt.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
478
2
  <svg
479
3
  viewBox="${r}"
480
4
  xmlns="http://www.w3.org/2000/svg"
@@ -491,49 +15,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
491
15
  <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
492
16
  fill="none" stroke="black" stroke-width="2"
493
17
  >${ua}</svg>
494
- `;function Tf(){return b`<div ${z("display")} class="display" aria-hidden="true"></div><slot name="icon" ${z("iconSlot")} @slotchange="${o=>o.handleSlotChange()}"></slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const Bf=Tf(),Ef=p`
495
- ${w("inline-flex")}
496
-
497
- :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${ec};--_icon-color-empty:${wn};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${zr(_f)});--_mask-image-outlined:url(${zr(Of)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${N};line-height:${R};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${F}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${lo}}:host([color='brand']){--_icon-color-value:${Ko};--_icon-color-empty:${cn}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2) / 2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${D});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc(
498
- var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment)
499
- );background-image:linear-gradient(
500
- var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px)
501
- );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${D} / 2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${L}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${D}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ve}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${D}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ve}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1 / 1 / -1 / -1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Af=_r.compose({name:wf,template:Bf,styles:Ef});Af.define(u.registry);const Nf=ye,Ff={singleValue:"single-value"},Mf=`${u.prefix}-slider`;function pa(o,e,t){return Math.min(Math.max(t,o),e)}const Ai={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function ga(o,e,t,r){let i=pa(0,1,(o-e)/(t-e));return r===it.rtl&&(i=1-i),i}var Lf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Z=(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&&Lf(e,t,i),i};class j extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=it.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Ff.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===ye.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===ye.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??Nf.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
502
- :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=pa(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??ye.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=sa(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")})}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==it.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==it.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==ye.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==ye.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ga(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ye.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=ga(e,this.orientation===ye.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ye.vertical?this.trackHeight:this.trackWidth,this.orientation===ye.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){H.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}j.formAssociated=!0,Z([a],j.prototype,"size",2),Z([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Z([g],j.prototype,"direction",2),Z([g],j.prototype,"isDragging",2),Z([g],j.prototype,"position",2),Z([g],j.prototype,"trackWidth",2),Z([g],j.prototype,"trackMinWidth",2),Z([g],j.prototype,"trackHeight",2),Z([g],j.prototype,"trackLeft",2),Z([g],j.prototype,"trackMinHeight",2),Z([g],j.prototype,"valueTextFormatter",2),Z([a({mode:"boolean"})],j.prototype,"disabled",2),Z([a({converter:Ai})],j.prototype,"min",2),Z([a({converter:Ai})],j.prototype,"max",2),Z([a({converter:Ai})],j.prototype,"step",2),Z([a],j.prototype,"orientation",2),Z([a],j.prototype,"mode",2);const Vf=p`
503
- ${w("inline-grid")}
504
-
505
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${gt};--track-color:${Ne};--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:${At}}:host(:active){--rail-color:${Nt}}:host(:disabled){--rail-color:${O};--track-color:${Qe}}: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:${Pe}}: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 ${er}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
506
- var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
507
- );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(
508
- var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${S} calc(var(--step-rate) - 1px),${S} var(--step-rate)
509
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${Fe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function Hf(o={}){return b`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${z("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${z("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${ae(o.thumb)}</slot></div></template>`}const Rf=Hf({thumb:'<div class="thumb"></div>'}),jf=j.compose({name:Mf,template:Rf,styles:Vf});jf.define(u.registry);const qf=`${u.prefix}-spinner`;class Wf extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Uf=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,fa=(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&&Uf(e,t,i),i};class Ni extends Wf{}fa([a],Ni.prototype,"size",2),fa([a],Ni.prototype,"appearance",2);const Xf=p`
510
- ${w("inline-flex")}
511
-
512
- :host{--duration:1.5s;--indicatorSize:${xe};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${xe};--size:36px}:host([size='extra-large']){--indicatorSize:${xe};--size:40px}:host([size='huge']){--indicatorSize:${ci};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${ur}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${hn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${dn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Dl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,Kf=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>`,Yf=Ni.compose({name:qf,template:Kf,styles:Xf});Yf.define(u.registry);const Qf=`${u.prefix}-switch`;class Zf extends ke{constructor(){super(),this.elementInternals.role="switch"}}function Jf(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${ae(o.switch)}</slot></template>`}const eb=Jf({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),tb=p`
513
- ${w("inline-flex")}
514
-
515
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${D};width:40px;height:20px;background-color:${le};border:1px solid ${Ne};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${ft}}:host(:active){border-color:${bt}}:host(:disabled),:host([readonly]){border:1px solid ${be};background-color:none;pointer:default}:host(${x}){background:${gt};border-color:${gt}}:host(${x}:hover){background:${At};border-color:${At}}:host(${x}:active){background:${Nt};border-color:${Nt}}:host(${x}:disabled){background:${Qe};border-color:${be}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Y};transition-duration:${dr};transition-timing-function:${ur};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${pt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${zl}}:host(${x}:active) .checked-indicator{background:${_l}}:host(:hover) .checked-indicator{background-color:${ml}}:host(:active) .checked-indicator{background-color:${vl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${O}}:host(${x}:disabled) .checked-indicator{background:${O}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${nr},0 0 0 2px ${ce}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}}`,ob=Zf.compose({name:Qf,template:eb,styles:tb});ob.define(u.registry);function Fi(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const rb=`${u.prefix}-tab`;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};class Mi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`
516
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}nb([a({mode:"boolean"})],Mi.prototype,"disabled",2),Ye(Mi,Ke);function ab(o={}){return b`<template slot="tab" role="tab">${je(o)}<span class="tab-content"><slot></slot></span>${ut(o)}</template>`}const lb=ab({}),cb=p`
517
- ${w("inline-flex")}
518
-
519
- :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${F};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${re} ${We};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${L}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${F};font-weight:${L}}:host([aria-selected='true'])::after{background-color:${Ze};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${mt};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${mt}}}:host([aria-selected='true'][disabled])::after{background-color:${O}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${O};color:${O};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Pe};box-shadow:0 0 0 3px ${ce};outline:1px solid ${er}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`,db=Mi.compose({name:rb,template:lb,styles:cb});db.define(u.registry);const hb={subtle:"subtle",transparent:"transparent"},Io=ye,ub=`${u.prefix}-tablist`;var pb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?gb(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&&pb(e,t,i),i};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Io.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Io.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Io.horizontal,xt(this.elementInternals,e,t,Io)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Fi(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(n=>!!n.querySelector("[slot='start']")),i=this.getRootNode();let s="";for(const n of this.tabs){if(n.slot!=="tab")continue;n.id||(n.id=De("tab-")),t?n.disabled=this.disabled:n.disabled=n.disabled||this.disabled,!s&&!n.disabled&&(s=n.id);const c=this.activeid===n.id;if(n.toggleAttribute("focusgroupstart",c),n.setAttribute("aria-selected",c.toString()),n.toggleAttribute("data-hasIndent",r&&this.orientation===Io.vertical),e){const h=n.getAttribute("aria-controls")??"",d=i.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==n.id,this.tabPanelMap.set(n,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):s&&(this.activeid=s))}handleFocusIn(e){const t=e.target;!Fi(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,s=r.getElementById(t);if(!Fi(s)||!this.contains(s))return;if(i){i.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(i);c&&(c.hidden=!0)}s.setAttribute("aria-selected","true");const n=this.tabPanelMap.get(s);n&&(n.hidden=!1),this.activetab=s,this.change()}connectedCallback(){super.connectedCallback(),Lt(this,()=>{this.setTabs()},{shallow:!0})}}Po([a({mode:"boolean"})],Zt.prototype,"disabled",2),Po([a],Zt.prototype,"orientation",2),Po([a],Zt.prototype,"activeid",2),Po([g],Zt.prototype,"slottedTabs",2),Po([g],Zt.prototype,"tabs",2);var fb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?bb(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&&fb(e,t,i),i};class Li extends Zt{constructor(){super(...arguments),this.appearance=hb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Ir(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}ba([a],Li.prototype,"appearance",2),ba([a],Li.prototype,"size",2);const mb=b`<template role="tablist" focusgroup="tablist inline block" @focusin="${(o,e)=>o.handleFocusIn(e.event)}"><slot name="tab" ${W("slottedTabs")}></slot></template>`,vb=p`
520
- ${w("flex")}
521
-
522
- :host{--tabPaddingInline:${We};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${go};--tabPaddingInline:${ve}}:host([size='large']){--tabPaddingBlock:${ui};--tabPaddingInline:${We}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${ar};--tabIndicatorInsetBlock:${go}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${lr}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${xe};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${xe};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${xe};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${O}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${xe};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:${xe};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${F}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${O}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${O}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${O}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${O}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Qo};color:${Qs};fill:${Il}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${co};fill:${co};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${Ze};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:absolute;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${pd};transition-timing-function:${Mn};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${xe}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${xe};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${O}}}`,$b=Li.compose({name:ub,template:mb,styles:vb});$b.define(u.registry);const yb={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Or={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},xb=`${u.prefix}-textarea`,kb=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var wb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var i=r>1?void 0:r?Cb(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&&wb(e,t,i),i};class q extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Or.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(kb),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(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}`,this.$fastController.isConnected&&this.setValidity()}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){xt(this.elementInternals,e,t,Or,"resize-"),$(this.elementInternals,"resize",jn(Or,t)&&t!==Or.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl()})}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()}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}q.formAssociated=!0,J([g],q.prototype,"controlEl",2),J([g],q.prototype,"defaultSlottedNodes",2),J([g],q.prototype,"labelSlottedNodes",2),J([a],q.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],q.prototype,"autoResize",2),J([a({attribute:"dirname"})],q.prototype,"dirName",2),J([a({mode:"boolean"})],q.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],q.prototype,"displayShadow",2),J([a({attribute:"form"})],q.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:te})],q.prototype,"maxLength",2),J([a({attribute:"minlength",converter:te})],q.prototype,"minLength",2),J([a],q.prototype,"name",2),J([a],q.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),J([a({mode:"boolean"})],q.prototype,"required",2),J([a({mode:"fromView"})],q.prototype,"resize",2),J([a({mode:"boolean"})],q.prototype,"spellcheck",2);var Sb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Di=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ib(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&&Sb(e,t,i),i};class Tr extends q{constructor(){super(...arguments),this.appearance=yb.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")}}Di([a({mode:"fromView"})],Tr.prototype,"appearance",2),Di([a({mode:"boolean"})],Tr.prototype,"block",2),Di([a],Tr.prototype,"size",2);const Pb=p`
523
- ${w("inline-block")}
524
-
525
- :host{--font-size:${B};--line-height:${F};--padding-inline:${We};--padding-block:${go};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${D};--color:${_};--background-color:${S};--border-color:${Fe};--border-block-end-color:${Ne};--placeholder-color:${ei};--focus-indicator-color:${Ze};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${mt};--border-block-end-color:${ft}}:host(:active){--border-color:${ho};--border-block-end-color:${bt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${N};--line-height:${R};--min-block-size:40px;--padding-block:${Mt};--padding-inline:${ve};--control-padding-inline:${D}}:host([size='large']){--font-size:${he};--line-height:${me};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${ve}}: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:${ao};--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:${ai}}:host(${Yh}){--border-color:${ii};--border-block-end-color:${ii}}:host(:disabled){--color:${O};--background-color:${le};--border-color:${be};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${O};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:${$t};transition-duration:${pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${dr};transition-delay:${yt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Mt};padding-inline-end:${oe}}: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:${pt};background-color:${en}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function zb(){return b`<template><label ${z("labelEl")} for="control" part="label"><slot name="label" ${W("labelSlottedNodes")}></slot></label><div class="root" part="root" ${z("rootEl")}><textarea ${z("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${W("defaultSlottedNodes")}></slot></div></template>`}const _b=zb(),Ob=Tr.compose({name:xb,template:_b,styles:Pb,shadowOptions:{delegatesFocus:!0}});Ob.define(u.registry);const Tb={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Bb=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Eb=`${u.prefix}-text-input`;var Ab=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,A=(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&&Ab(e,t,i),i};class T extends k{constructor(){super(...arguments),this.type=Tb.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){H.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){H.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$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.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,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=>Bb.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}T.formAssociated=!0,A([a],T.prototype,"autocomplete",2),A([a({mode:"boolean"})],T.prototype,"autofocus",2),A([a({attribute:"current-value"})],T.prototype,"currentValue",2),A([g],T.prototype,"defaultSlottedNodes",2),A([a],T.prototype,"dirname",2),A([a({mode:"boolean"})],T.prototype,"disabled",2),A([a({attribute:"form"})],T.prototype,"formAttribute",2),A([a({attribute:"value",mode:"fromView"})],T.prototype,"initialValue",2),A([a],T.prototype,"list",2),A([a({converter:te})],T.prototype,"maxlength",2),A([a({converter:te})],T.prototype,"minlength",2),A([a({mode:"boolean"})],T.prototype,"multiple",2),A([a],T.prototype,"name",2),A([a],T.prototype,"pattern",2),A([a],T.prototype,"placeholder",2),A([a({attribute:"readonly",mode:"boolean"})],T.prototype,"readOnly",2),A([a({mode:"boolean"})],T.prototype,"required",2),A([a({converter:te})],T.prototype,"size",2),A([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],T.prototype,"spellcheck",2),A([a],T.prototype,"type",2),A([g],T.prototype,"control",2),A([g],T.prototype,"controlLabel",2);var Fb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,ma=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mb(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&&Fb(e,t,i),i};class Br extends T{}ma([a],Br.prototype,"appearance",2),ma([a({attribute:"control-size"})],Br.prototype,"controlSize",2),Ye(Br,Ke);const Lb=p`
526
- ${w("block")}
527
-
528
- :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${F};max-width:400px}.label{display:flex;color:${_};padding-bottom:${Mt};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${I} solid ${Fe};border-bottom-color:${Ne};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${D};padding:0 ${We};position:relative;width:100%}:has(.control:user-invalid){border-color:${ii}}.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 ${Ze};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${pi};transition-delay:${$t}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${C};background:${le};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ei}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Y};font-size:${Ft}}:host ::slotted([slot='start']){padding-right:${D}}:host ::slotted([slot='end']){padding-left:${D};gap:${oe}}:host(:hover) .root{border-color:${mt};border-bottom-color:${ft}}:host(:active) .root{border-color:${ho}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${dr};transition-delay:${yt}}:host(:focus-within:active) .root:after{border-bottom-color:${un}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${Fe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${le};border:${I} solid ${be}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${O}}::selection{color:${pt};background-color:${en}}:host([control-size='small']) .control{font-size:${N};font-weight:${E};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${D};padding:0 ${ve}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${E};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${ze};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${or}}:host([appearance='underline']) .root{background:${le};border:0;border-radius:0;border-bottom:${I} solid ${Ne}}:host([appearance='underline']:hover) .root{border-bottom-color:${ft}}:host([appearance='underline']:active) .root{border-bottom-color:${bt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${bt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${be}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${U};box-shadow:${ai}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${ao}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${ri}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${ri};background:${ao}}`;function Db(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" ${z("controlLabel")}><slot ${W("defaultSlottedNodes")}></slot></label><div class="root" part="root">${je(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}" ${z("control")} />${ut(o)}</div></template>`}const Vb=Db(),Hb=Br.compose({name:Eb,template:Vb,styles:Lb,shadowOptions:{delegatesFocus:!0}});Hb.define(u.registry);const Rb=`${u.prefix}-text`;var jb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,He=(o,e,t,r)=>{for(var i=r>1?void 0:r?qb(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 _e extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}He([a({mode:"boolean"})],_e.prototype,"nowrap",2),He([a({mode:"boolean"})],_e.prototype,"truncate",2),He([a({mode:"boolean"})],_e.prototype,"italic",2),He([a({mode:"boolean"})],_e.prototype,"underline",2),He([a({mode:"boolean"})],_e.prototype,"strikethrough",2),He([a({mode:"boolean"})],_e.prototype,"block",2),He([a],_e.prototype,"size",2),He([a],_e.prototype,"font",2),He([a],_e.prototype,"weight",2),He([a],_e.prototype,"align",2);const Wb=p`
529
- ${w("inline")}
530
-
531
- :host{font-family:${v};font-size:${B};line-height:${F};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${po};line-height:${ir}}:host([size='200']){font-size:${N};line-height:${R}}:host([size='400']){font-size:${he};line-height:${me}}:host([size='500']){font-size:${Ft};line-height:${sr}}:host([size='600']){font-size:${or};line-height:${On}}:host([size='700']){font-size:${In};line-height:${Tn}}:host([size='800']){font-size:${Pn};line-height:${Bn}}:host([size='900']){font-size:${zn};line-height:${En}}:host([size='1000']){font-size:${_n};line-height:${An}}:host([font='monospace']){font-family:${id}}:host([font='numeric']){font-family:${sd}}:host([weight='medium']){font-weight:${nd}}:host([weight='semibold']){font-weight:${L}}:host([weight='bold']){font-weight:${rr}}: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}`,Ub=b`<slot></slot>`,Gb=_e.compose({name:Rb,template:Ub,styles:Wb});Gb.define(u.registry);const Xb=`${u.prefix}-toggle-button`;var Kb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,va=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yb(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&&Kb(e,t,i),i};class Vi extends Ue{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,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}va([a({mode:"boolean"})],Vi.prototype,"pressed",2),va([a({mode:"boolean"})],Vi.prototype,"mixed",2);const Qb=p`
532
- ${br}
533
-
534
- :host(${M}){border-color:${Fe};background-color:${Js};color:${_};border-width:${I}}:host(${M}:hover){border-color:${mt};background-color:${Yo}}:host(${M}:active){border-color:${ho};background-color:${ti}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Ml};color:${qe}}:host(${M}[appearance='primary']:hover){background-color:${nn}}:host(${M}[appearance='primary']:active){background-color:${an}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${on};color:${Uo}}:host(${M}[appearance='subtle']:hover){background-color:${Qo};color:${Bt}}:host(${M}[appearance='subtle']:active){background-color:${co};color:${Et}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${rn}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${Zo}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${Jo}}:host(${M}[appearance='transparent']){border-color:transparent;color:${bl}}:host(${M}[appearance='transparent']:hover){color:${Go}}:host(${M}[appearance='transparent']:active){color:${Xo}}@media (forced-colors:active){:host(${M}),:host(
535
- ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
536
- ){background:SelectedItem;color:SelectedItemText}}`,Zb=$i(),Jb=Vi.compose({name:Xb,template:Zb,styles:Qb});Jb.define(u.registry);const Ce={"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"},em=`${u.prefix}-tooltip`;var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Er=(o,e,t,r)=>{for(var i=r>1?void 0:r?om(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&&tm(e,t,i),i};class zo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=De("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(){gr||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),gr){Dd||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}H.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=`
18
+ `;function Tf(){return b`<div ${z("display")} class=display aria-hidden=true></div><slot name=icon ${z("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const Bf=Tf(),Ef=p`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${ec};--_icon-color-empty:${wn};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${zr(_f)});--_mask-image-outlined:url(${zr(Of)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${N};line-height:${R};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${F}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${lo}}:host([color='brand']){--_icon-color-value:${Ko};--_icon-color-empty:${cn}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${D});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${D}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${L}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${D}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ve}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${D}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ve}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Af=_r.compose({name:wf,template:Bf,styles:Ef});Af.define(u.registry);const Nf=ye,Ff={singleValue:"single-value"},Mf=`${u.prefix}-slider`;function pa(o,e,t){return Math.min(Math.max(t,o),e)}const Ai={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function ga(o,e,t,r){let i=pa(0,1,(o-e)/(t-e));return r===it.rtl&&(i=1-i),i}var Lf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Z=(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&&Lf(e,t,i),i};class j extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=it.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Ff.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===ye.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===ye.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??Nf.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=pa(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??ye.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=sa(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")})}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==it.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==it.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==ye.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==it.rtl&&this.orientation!==ye.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ga(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ye.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=ga(e,this.orientation===ye.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ye.vertical?this.trackHeight:this.trackWidth,this.orientation===ye.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){H.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}j.formAssociated=!0,Z([a],j.prototype,"size",2),Z([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Z([g],j.prototype,"direction",2),Z([g],j.prototype,"isDragging",2),Z([g],j.prototype,"position",2),Z([g],j.prototype,"trackWidth",2),Z([g],j.prototype,"trackMinWidth",2),Z([g],j.prototype,"trackHeight",2),Z([g],j.prototype,"trackLeft",2),Z([g],j.prototype,"trackMinHeight",2),Z([g],j.prototype,"valueTextFormatter",2),Z([a({mode:"boolean"})],j.prototype,"disabled",2),Z([a({converter:Ai})],j.prototype,"min",2),Z([a({converter:Ai})],j.prototype,"max",2),Z([a({converter:Ai})],j.prototype,"step",2),Z([a],j.prototype,"orientation",2),Z([a],j.prototype,"mode",2);const Vf=p`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${gt};--track-color:${Ne};--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:${At}}:host(:active){--rail-color:${Nt}}:host(:disabled){--rail-color:${O};--track-color:${Qe}}: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:${Pe}}: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 ${er}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${S} calc(var(--step-rate) - 1px),${S} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${Fe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function Hf(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${z("track")} part=track-container class=track style=${e=>e.position}></div><div ${z("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ae(o.thumb)}</slot></div></template>`}const Rf=Hf({thumb:'<div class="thumb"></div>'}),jf=j.compose({name:Mf,template:Rf,styles:Vf});jf.define(u.registry);const qf=`${u.prefix}-spinner`;class Wf extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Uf=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,fa=(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&&Uf(e,t,i),i};class Ni extends Wf{}fa([a],Ni.prototype,"size",2),fa([a],Ni.prototype,"appearance",2);const Xf=p`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${xe};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${xe};--size:36px}:host([size='extra-large']){--indicatorSize:${xe};--size:40px}:host([size='huge']){--indicatorSize:${ci};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${ur}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${hn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${dn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Dl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,Kf=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>`,Yf=Ni.compose({name:qf,template:Kf,styles:Xf});Yf.define(u.registry);const Qf=`${u.prefix}-switch`;class Zf extends ke{constructor(){super(),this.elementInternals.role="switch"}}function Jf(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${ae(o.switch)}</slot></template>`}const eb=Jf({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),tb=p`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${D};width:40px;height:20px;background-color:${le};border:1px solid ${Ne};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${ft}}:host(:active){border-color:${bt}}:host(:disabled),:host([readonly]){border:1px solid ${be};background-color:none;pointer:default}:host(${x}){background:${gt};border-color:${gt}}:host(${x}:hover){background:${At};border-color:${At}}:host(${x}:active){background:${Nt};border-color:${Nt}}:host(${x}:disabled){background:${Qe};border-color:${be}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Y};transition-duration:${dr};transition-timing-function:${ur};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${pt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${zl}}:host(${x}:active) .checked-indicator{background:${_l}}:host(:hover) .checked-indicator{background-color:${ml}}:host(:active) .checked-indicator{background-color:${vl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${O}}:host(${x}:disabled) .checked-indicator{background:${O}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${nr},0 0 0 2px ${ce}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}}`,ob=Zf.compose({name:Qf,template:eb,styles:tb});ob.define(u.registry);function Fi(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const rb=`${u.prefix}-tab`;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};class Mi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}nb([a({mode:"boolean"})],Mi.prototype,"disabled",2),Ye(Mi,Ke);function ab(o={}){return b`<template slot=tab role=tab>${je(o)} <span class=tab-content><slot></slot></span>${ut(o)}</template>`}const lb=ab({}),cb=p`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${F};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${re} ${We};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${L}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${F};font-weight:${L}}:host([aria-selected='true'])::after{background-color:${Ze};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${mt};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${mt}}}:host([aria-selected='true'][disabled])::after{background-color:${O}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${O};color:${O};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Pe};box-shadow:0 0 0 3px ${ce};outline:1px solid ${er}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`,db=Mi.compose({name:rb,template:lb,styles:cb});db.define(u.registry);const hb={subtle:"subtle",transparent:"transparent"},Io=ye,ub=`${u.prefix}-tablist`;var pb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?gb(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&&pb(e,t,i),i};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Io.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Io.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Io.horizontal,xt(this.elementInternals,e,t,Io)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Fi(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(n=>!!n.querySelector("[slot='start']")),i=this.getRootNode();let s="";for(const n of this.tabs){if(n.slot!=="tab")continue;n.id||(n.id=De("tab-")),t?n.disabled=this.disabled:n.disabled=n.disabled||this.disabled,!s&&!n.disabled&&(s=n.id);const c=this.activeid===n.id;if(n.toggleAttribute("focusgroupstart",c),n.setAttribute("aria-selected",c.toString()),n.toggleAttribute("data-hasIndent",r&&this.orientation===Io.vertical),e){const h=n.getAttribute("aria-controls")??"",d=i.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==n.id,this.tabPanelMap.set(n,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):s&&(this.activeid=s))}handleFocusIn(e){const t=e.target;!Fi(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,s=r.getElementById(t);if(!Fi(s)||!this.contains(s))return;if(i){i.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(i);c&&(c.hidden=!0)}s.setAttribute("aria-selected","true");const n=this.tabPanelMap.get(s);n&&(n.hidden=!1),this.activetab=s,this.change()}connectedCallback(){super.connectedCallback(),Lt(this,()=>{this.setTabs()},{shallow:!0})}}Po([a({mode:"boolean"})],Zt.prototype,"disabled",2),Po([a],Zt.prototype,"orientation",2),Po([a],Zt.prototype,"activeid",2),Po([g],Zt.prototype,"slottedTabs",2),Po([g],Zt.prototype,"tabs",2);var fb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?bb(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&&fb(e,t,i),i};class Li extends Zt{constructor(){super(...arguments),this.appearance=hb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Ir(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}ba([a],Li.prototype,"appearance",2),ba([a],Li.prototype,"size",2);const mb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${W("slottedTabs")}></slot></template>`,vb=p`${w("flex")} :host{--tabPaddingInline:${We};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${go};--tabPaddingInline:${ve}}:host([size='large']){--tabPaddingBlock:${ui};--tabPaddingInline:${We}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${ar};--tabIndicatorInsetBlock:${go}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${lr}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${xe};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${xe};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${xe};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${O}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${xe};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:${xe};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${F}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${O}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${O}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${O}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${O}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Qo};color:${Qs};fill:${Il}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${co};fill:${co};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${Ze};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:absolute;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${pd};transition-timing-function:${Mn};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${xe}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${xe};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${O}}}`,$b=Li.compose({name:ub,template:mb,styles:vb});$b.define(u.registry);const yb={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Or={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},xb=`${u.prefix}-textarea`,kb=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var wb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var i=r>1?void 0:r?Cb(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&&wb(e,t,i),i};class q extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Or.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(kb),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(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}`,this.$fastController.isConnected&&this.setValidity()}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){xt(this.elementInternals,e,t,Or,"resize-"),$(this.elementInternals,"resize",jn(Or,t)&&t!==Or.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl()})}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()}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}q.formAssociated=!0,J([g],q.prototype,"controlEl",2),J([g],q.prototype,"defaultSlottedNodes",2),J([g],q.prototype,"labelSlottedNodes",2),J([a],q.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],q.prototype,"autoResize",2),J([a({attribute:"dirname"})],q.prototype,"dirName",2),J([a({mode:"boolean"})],q.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],q.prototype,"displayShadow",2),J([a({attribute:"form"})],q.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:te})],q.prototype,"maxLength",2),J([a({attribute:"minlength",converter:te})],q.prototype,"minLength",2),J([a],q.prototype,"name",2),J([a],q.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),J([a({mode:"boolean"})],q.prototype,"required",2),J([a({mode:"fromView"})],q.prototype,"resize",2),J([a({mode:"boolean"})],q.prototype,"spellcheck",2);var Sb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Di=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ib(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&&Sb(e,t,i),i};class Tr extends q{constructor(){super(...arguments),this.appearance=yb.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")}}Di([a({mode:"fromView"})],Tr.prototype,"appearance",2),Di([a({mode:"boolean"})],Tr.prototype,"block",2),Di([a],Tr.prototype,"size",2);const Pb=p`${w("inline-block")} :host{--font-size:${B};--line-height:${F};--padding-inline:${We};--padding-block:${go};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${D};--color:${_};--background-color:${S};--border-color:${Fe};--border-block-end-color:${Ne};--placeholder-color:${ei};--focus-indicator-color:${Ze};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${mt};--border-block-end-color:${ft}}:host(:active){--border-color:${ho};--border-block-end-color:${bt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${N};--line-height:${R};--min-block-size:40px;--padding-block:${Mt};--padding-inline:${ve};--control-padding-inline:${D}}:host([size='large']){--font-size:${he};--line-height:${me};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${ve}}: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:${ao};--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:${ai}}:host(${Yh}){--border-color:${ii};--border-block-end-color:${ii}}:host(:disabled){--color:${O};--background-color:${le};--border-color:${be};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${O};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:${$t};transition-duration:${pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${dr};transition-delay:${yt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Mt};padding-inline-end:${oe}}: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:${pt};background-color:${en}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function zb(){return b`<template><label ${z("labelEl")} for=control part=label><slot name=label ${W("labelSlottedNodes")}></slot></label><div class=root part=root ${z("rootEl")}><textarea ${z("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${W("defaultSlottedNodes")}></slot></div></template>`}const _b=zb(),Ob=Tr.compose({name:xb,template:_b,styles:Pb,shadowOptions:{delegatesFocus:!0}});Ob.define(u.registry);const Tb={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Bb=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Eb=`${u.prefix}-text-input`;var Ab=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,A=(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&&Ab(e,t,i),i};class T extends k{constructor(){super(...arguments),this.type=Tb.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){H.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){H.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$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.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,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=>Bb.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}T.formAssociated=!0,A([a],T.prototype,"autocomplete",2),A([a({mode:"boolean"})],T.prototype,"autofocus",2),A([a({attribute:"current-value"})],T.prototype,"currentValue",2),A([g],T.prototype,"defaultSlottedNodes",2),A([a],T.prototype,"dirname",2),A([a({mode:"boolean"})],T.prototype,"disabled",2),A([a({attribute:"form"})],T.prototype,"formAttribute",2),A([a({attribute:"value",mode:"fromView"})],T.prototype,"initialValue",2),A([a],T.prototype,"list",2),A([a({converter:te})],T.prototype,"maxlength",2),A([a({converter:te})],T.prototype,"minlength",2),A([a({mode:"boolean"})],T.prototype,"multiple",2),A([a],T.prototype,"name",2),A([a],T.prototype,"pattern",2),A([a],T.prototype,"placeholder",2),A([a({attribute:"readonly",mode:"boolean"})],T.prototype,"readOnly",2),A([a({mode:"boolean"})],T.prototype,"required",2),A([a({converter:te})],T.prototype,"size",2),A([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],T.prototype,"spellcheck",2),A([a],T.prototype,"type",2),A([g],T.prototype,"control",2),A([g],T.prototype,"controlLabel",2);var Fb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,ma=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mb(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&&Fb(e,t,i),i};class Br extends T{}ma([a],Br.prototype,"appearance",2),ma([a({attribute:"control-size"})],Br.prototype,"controlSize",2),Ye(Br,Ke);const Lb=p`${w("block")} :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${F};max-width:400px}.label{display:flex;color:${_};padding-bottom:${Mt};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${I} solid ${Fe};border-bottom-color:${Ne};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${D};padding:0 ${We};position:relative;width:100%}:has(.control:user-invalid){border-color:${ii}}.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 ${Ze};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${pi};transition-delay:${$t}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${C};background:${le};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ei}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Y};font-size:${Ft}}:host ::slotted([slot='start']){padding-right:${D}}:host ::slotted([slot='end']){padding-left:${D};gap:${oe}}:host(:hover) .root{border-color:${mt};border-bottom-color:${ft}}:host(:active) .root{border-color:${ho}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${dr};transition-delay:${yt}}:host(:focus-within:active) .root:after{border-bottom-color:${un}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${Fe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${le};border:${I} solid ${be}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${O}}::selection{color:${pt};background-color:${en}}:host([control-size='small']) .control{font-size:${N};font-weight:${E};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${D};padding:0 ${ve}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${E};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${ze};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${or}}:host([appearance='underline']) .root{background:${le};border:0;border-radius:0;border-bottom:${I} solid ${Ne}}:host([appearance='underline']:hover) .root{border-bottom-color:${ft}}:host([appearance='underline']:active) .root{border-bottom-color:${bt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${bt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${be}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${U};box-shadow:${ai}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${ao}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${ri}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${ri};background:${ao}}`;function Db(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 ${z("controlLabel")}><slot ${W("defaultSlottedNodes")}></slot></label><div class=root part=root>${je(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} ${z("control")}> ${ut(o)}</div></template>`}const Vb=Db(),Hb=Br.compose({name:Eb,template:Vb,styles:Lb,shadowOptions:{delegatesFocus:!0}});Hb.define(u.registry);const Rb=`${u.prefix}-text`;var jb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,He=(o,e,t,r)=>{for(var i=r>1?void 0:r?qb(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 _e extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}He([a({mode:"boolean"})],_e.prototype,"nowrap",2),He([a({mode:"boolean"})],_e.prototype,"truncate",2),He([a({mode:"boolean"})],_e.prototype,"italic",2),He([a({mode:"boolean"})],_e.prototype,"underline",2),He([a({mode:"boolean"})],_e.prototype,"strikethrough",2),He([a({mode:"boolean"})],_e.prototype,"block",2),He([a],_e.prototype,"size",2),He([a],_e.prototype,"font",2),He([a],_e.prototype,"weight",2),He([a],_e.prototype,"align",2);const Wb=p`${w("inline")} :host{font-family:${v};font-size:${B};line-height:${F};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${po};line-height:${ir}}:host([size='200']){font-size:${N};line-height:${R}}:host([size='400']){font-size:${he};line-height:${me}}:host([size='500']){font-size:${Ft};line-height:${sr}}:host([size='600']){font-size:${or};line-height:${On}}:host([size='700']){font-size:${In};line-height:${Tn}}:host([size='800']){font-size:${Pn};line-height:${Bn}}:host([size='900']){font-size:${zn};line-height:${En}}:host([size='1000']){font-size:${_n};line-height:${An}}:host([font='monospace']){font-family:${id}}:host([font='numeric']){font-family:${sd}}:host([weight='medium']){font-weight:${nd}}:host([weight='semibold']){font-weight:${L}}:host([weight='bold']){font-weight:${rr}}: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}`,Ub=b`<slot></slot>`,Gb=_e.compose({name:Rb,template:Ub,styles:Wb});Gb.define(u.registry);const Xb=`${u.prefix}-toggle-button`;var Kb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,va=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yb(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&&Kb(e,t,i),i};class Vi extends Ue{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,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}va([a({mode:"boolean"})],Vi.prototype,"pressed",2),va([a({mode:"boolean"})],Vi.prototype,"mixed",2);const Qb=p`${br} :host(${M}){border-color:${Fe};background-color:${Js};color:${_};border-width:${I}}:host(${M}:hover){border-color:${mt};background-color:${Yo}}:host(${M}:active){border-color:${ho};background-color:${ti}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Ml};color:${qe}}:host(${M}[appearance='primary']:hover){background-color:${nn}}:host(${M}[appearance='primary']:active){background-color:${an}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${on};color:${Uo}}:host(${M}[appearance='subtle']:hover){background-color:${Qo};color:${Bt}}:host(${M}[appearance='subtle']:active){background-color:${co};color:${Et}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${rn}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${Zo}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${Jo}}:host(${M}[appearance='transparent']){border-color:transparent;color:${bl}}:host(${M}[appearance='transparent']:hover){color:${Go}}:host(${M}[appearance='transparent']:active){color:${Xo}}@media (forced-colors:active){:host(${M}),:host( ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem;color:SelectedItemText}}`,Zb=$i(),Jb=Vi.compose({name:Xb,template:Zb,styles:Qb});Jb.define(u.registry);const Ce={"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"},em=`${u.prefix}-tooltip`;var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Er=(o,e,t,r)=>{for(var i=r>1?void 0:r?om(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&&tm(e,t,i),i};class zo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=De("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(){gr||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),gr){Dd||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}H.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=`
537
19
  #${this.anchor} {
538
20
  anchor-name: ${e};
539
21
  }
@@ -544,18 +26,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
544
26
  ${s}
545
27
  ${c}
546
28
  }
547
- `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}Er([a],zo.prototype,"id",2),Er([a({converter:te})],zo.prototype,"delay",2),Er([a],zo.prototype,"positioning",2),Er([a],zo.prototype,"anchor",2);const rm=p`
548
- ${w("inline-flex")}
549
-
550
- :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Mt};--inline-offset:${oe};background:${S};border-radius:${C};border:1px solid ${U};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${Hl}) drop-shadow(0 4px 8px ${Rl});font-family:${v};font-size:${N};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${We} 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:${Ce["above-start"]}}:host([positioning='above']){--position-area:${Ce.above}}:host([positioning='above-end']){--position-area:${Ce["above-end"]}}:host([positioning='below-start']){--position-area:${Ce["below-start"]}}:host([positioning='below']){--position-area:${Ce.below}}:host([positioning='below-end']){--position-area:${Ce["below-end"]}}:host([positioning='before-top']){--position-area:${Ce["before-top"]}}:host([positioning='before']){--position-area:${Ce.before}}:host([positioning='before-bottom']){--position-area:${Ce["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ce["after-top"]}}:host([positioning='after']){--position-area:${Ce.after}}:host([positioning='after-bottom']){--position-area:${Ce["after-bottom"]}}`,im=b`<template popover aria-hidden="true"><slot></slot></template>`,sm=zo.compose({name:em,template:im,styles:rm});sm.define(u.registry);const nm=`${u.prefix}-tree`,$a={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},ya={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const am=`${u.prefix}-tree-item`;var lm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,Hi=(o,e,t,r)=>{for(var i=r>1?void 0:r?cm(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&&lm(e,t,i),i};class Ar extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{t?.childTreeItems?.length&&(t.expanded||(t.expanded=!0));return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}Hi([g],Ar.prototype,"currentSelected",2),Hi([g],Ar.prototype,"defaultSlot",2),Hi([g],Ar.prototype,"childTreeItems",2);var dm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var i=r>1?void 0:r?hm(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&&dm(e,t,i),i};class Ri extends Ar{constructor(){super(...arguments),this.size=ya.small,this.appearance=$a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Ir(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"menu",axis:"block",memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}xa([a],Ri.prototype,"size",2),xa([a],Ri.prototype,"appearance",2);const um=p`
551
- ${w("block")}
552
-
553
- :host{outline:none}`,pm=b`<template focusgroup="menu nowrap nomemory" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @toggle="${(o,e)=>o.itemToggleHandler()}"><slot ${z("defaultSlot")} @slotchange="${o=>o.handleDefaultSlotChange()}"></slot></template>`,gm=Ri.compose({name:nm,template:pm,styles:um});gm.define(u.registry);var fm=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,Jt=(o,e,t,r)=>{for(var i=r>1?void 0:r?bm(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&&fm(e,t,i),i};class St extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Oe(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),$(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
554
- :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(e))),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 Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}Jt([g],St.prototype,"itemSlot",2),Jt([a({mode:"boolean"})],St.prototype,"expanded",2),Jt([a({mode:"boolean"})],St.prototype,"selected",2),Jt([a({mode:"boolean"})],St.prototype,"empty",2),Jt([a({attribute:"data-indent"})],St.prototype,"dataIndent",2),Jt([g],St.prototype,"childTreeItems",2);var mm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,ka=(o,e,t,r)=>{for(var i=r>1?void 0:r?vm(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&&mm(e,t,i),i};class ji extends St{constructor(){super(...arguments),this.size=ya.small,this.appearance=$a.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})}}ka([a],ji.prototype,"size",2),ka([a],ji.prototype,"appearance",2);const $m=p`
555
- ${w("block")}
556
-
557
- :host{outline:none;font-size:${B};line-height:${F}}:host(:focus-visible) .positioning-region{box-shadow:${hi} ${hi} ${hi} ${ar}
558
- ${ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${ud};padding-inline-start:calc(var(--indent) * ${di});padding-inline-end:${ie};border-radius:${C};background-color:${tn};color:${Ie};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ce}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${di};height:${vt};transition:transform ${cr} ${Ln};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Qo};color:${Bt}}.positioning-region:active{background-color:${co};color:${Et}}::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:${D}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${on};color:${Uo}}:host([selected]) .content,:host([selected]) .chevron{color:${$l}}:host([size='small']) .positioning-region{height:${vt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Al}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Nl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Fl};color:${Uo}}:host([appearance='transparent']) .positioning-region{background-color:${le}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Zo}}:host([appearance='transparent']) .positioning-region:active{background-color:${Jo}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${rn};color:${Uo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,ym=b`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,xm=b`<template slot="${o=>o.isNestedItem?"item":void 0}" tabindex="0" ?focusgroupstart="${o=>o.selected}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${ym}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${z("itemSlot")} @slotchange="${o=>o.handleItemSlotChange()}"></slot></div></template>`,km=ji.compose({name:am,template:xm,styles:$m});km.define(u.registry);const wm="adoptedStyleSheets"in document,Cm="CSSScopeRule"in window,qi=new Map,Wi=new Map,_o=new Map,Ui=new Map,Oo=new CSSStyleSheet;function Sm(o,e=document){if(!(!e||!Im(e))){if(!wm||e instanceof HTMLElement&&!e.shadowRoot&&!Cm){const t=e===document?document.documentElement:e;Tm(o,t);return}[document,document.documentElement,document.body].includes(e)?Pm(o):zm(o,e)}}function Gi(o){if(!qi.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);qi.set(o,e.join(""))}return qi.get(o)}function Im(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Pm(o){if(o===null){document.adoptedStyleSheets.includes(Oo)&&Oo.replaceSync("");return}Oo.replaceSync(`
29
+ `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}Er([a],zo.prototype,"id",2),Er([a({converter:te})],zo.prototype,"delay",2),Er([a],zo.prototype,"positioning",2),Er([a],zo.prototype,"anchor",2);const rm=p`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Mt};--inline-offset:${oe};background:${S};border-radius:${C};border:1px solid ${U};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${Hl}) drop-shadow(0 4px 8px ${Rl});font-family:${v};font-size:${N};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${We} 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:${Ce["above-start"]}}:host([positioning='above']){--position-area:${Ce.above}}:host([positioning='above-end']){--position-area:${Ce["above-end"]}}:host([positioning='below-start']){--position-area:${Ce["below-start"]}}:host([positioning='below']){--position-area:${Ce.below}}:host([positioning='below-end']){--position-area:${Ce["below-end"]}}:host([positioning='before-top']){--position-area:${Ce["before-top"]}}:host([positioning='before']){--position-area:${Ce.before}}:host([positioning='before-bottom']){--position-area:${Ce["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ce["after-top"]}}:host([positioning='after']){--position-area:${Ce.after}}:host([positioning='after-bottom']){--position-area:${Ce["after-bottom"]}}`,im=b`<template popover aria-hidden=true><slot></slot></template>`,sm=zo.compose({name:em,template:im,styles:rm});sm.define(u.registry);const nm=`${u.prefix}-tree`,$a={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},ya={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const am=`${u.prefix}-tree-item`;var lm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,Hi=(o,e,t,r)=>{for(var i=r>1?void 0:r?cm(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&&lm(e,t,i),i};class Ar extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{t?.childTreeItems?.length&&(t.expanded||(t.expanded=!0));return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}Hi([g],Ar.prototype,"currentSelected",2),Hi([g],Ar.prototype,"defaultSlot",2),Hi([g],Ar.prototype,"childTreeItems",2);var dm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var i=r>1?void 0:r?hm(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&&dm(e,t,i),i};class Ri extends Ar{constructor(){super(...arguments),this.size=ya.small,this.appearance=$a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Ir(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Sr(this,this.fgItems,{definition:{behavior:"menu",axis:"block",memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}xa([a],Ri.prototype,"size",2),xa([a],Ri.prototype,"appearance",2);const um=p`${w("block")} :host{outline:none}`,pm=b`<template focusgroup="menu nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${z("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,gm=Ri.compose({name:nm,template:pm,styles:um});gm.define(u.registry);var fm=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,Jt=(o,e,t,r)=>{for(var i=r>1?void 0:r?bm(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&&fm(e,t,i),i};class St extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Oe(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),$(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(e))),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 Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}Jt([g],St.prototype,"itemSlot",2),Jt([a({mode:"boolean"})],St.prototype,"expanded",2),Jt([a({mode:"boolean"})],St.prototype,"selected",2),Jt([a({mode:"boolean"})],St.prototype,"empty",2),Jt([a({attribute:"data-indent"})],St.prototype,"dataIndent",2),Jt([g],St.prototype,"childTreeItems",2);var mm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,ka=(o,e,t,r)=>{for(var i=r>1?void 0:r?vm(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&&mm(e,t,i),i};class ji extends St{constructor(){super(...arguments),this.size=ya.small,this.appearance=$a.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})}}ka([a],ji.prototype,"size",2),ka([a],ji.prototype,"appearance",2);const $m=p`${w("block")} :host{outline:none;font-size:${B};line-height:${F}}:host(:focus-visible) .positioning-region{box-shadow:${hi} ${hi} ${hi} ${ar} ${ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${ud};padding-inline-start:calc(var(--indent) * ${di});padding-inline-end:${ie};border-radius:${C};background-color:${tn};color:${Ie};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ce}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${di};height:${vt};transition:transform ${cr} ${Ln};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Qo};color:${Bt}}.positioning-region:active{background-color:${co};color:${Et}}::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:${D}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${on};color:${Uo}}:host([selected]) .content,:host([selected]) .chevron{color:${$l}}:host([size='small']) .positioning-region{height:${vt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Al}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Nl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Fl};color:${Uo}}:host([appearance='transparent']) .positioning-region{background-color:${le}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Zo}}:host([appearance='transparent']) .positioning-region:active{background-color:${Jo}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${rn};color:${Uo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,ym=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,xm=b`<template slot=${o=>o.isNestedItem?"item":void 0} tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${ym}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${z("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,km=ji.compose({name:am,template:xm,styles:$m});km.define(u.registry);const wm="adoptedStyleSheets"in document,Cm="CSSScopeRule"in window,qi=new Map,Wi=new Map,_o=new Map,Ui=new Map,Oo=new CSSStyleSheet;function Sm(o,e=document){if(!(!e||!Im(e))){if(!wm||e instanceof HTMLElement&&!e.shadowRoot&&!Cm){const t=e===document?document.documentElement:e;Tm(o,t);return}[document,document.documentElement,document.body].includes(e)?Pm(o):zm(o,e)}}function Gi(o){if(!qi.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);qi.set(o,e.join(""))}return qi.get(o)}function Im(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Pm(o){if(o===null){document.adoptedStyleSheets.includes(Oo)&&Oo.replaceSync("");return}Oo.replaceSync(`
559
30
  html {
560
31
  ${Gi(o)}
561
32
  }
@@ -569,4 +40,4 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
569
40
  ${Gi(o)}
570
41
  }
571
42
  }
572
- `),document.adoptedStyleSheets.push(t)}return Wi.get(o)}function Tm(o,e){let t;if(o===null){if(!Ui.has(e))return;t=Ui.get(e)}else Ui.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:Bm}=navigator,Em=/\bAppleWebKit\/[\d+\.]+\b/.test(Bm);function wa(o){if(!Em)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),H.process(),o.style.setProperty(e,r)}export{Sm as setTheme};
43
+ `),document.adoptedStyleSheets.push(t)}return Wi.get(o)}function Tm(o,e){let t;if(o===null){if(!Ui.has(e))return;t=Ui.get(e)}else Ui.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:Bm}=navigator,Em=/\bAppleWebKit\/[\d+\.]+\b/.test(Bm);function wa(o){if(!Em)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),H.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:Sm};