@fluentui/web-components 3.0.0-rc.16 → 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.
Files changed (76) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/custom-elements.json +140 -6
  3. package/dist/esm/anchor-button/anchor-button.base.js +1 -2
  4. package/dist/esm/anchor-button/anchor-button.base.js.map +1 -1
  5. package/dist/esm/button/button.base.js +1 -2
  6. package/dist/esm/button/button.base.js.map +1 -1
  7. package/dist/esm/define-all.d.ts +42 -0
  8. package/dist/esm/define-all.js +43 -0
  9. package/dist/esm/define-all.js.map +1 -0
  10. package/dist/esm/divider/divider.options.js +1 -1
  11. package/dist/esm/divider/divider.options.js.map +1 -1
  12. package/dist/esm/field/field.base.js +1 -1
  13. package/dist/esm/field/field.base.js.map +1 -1
  14. package/dist/esm/index-all-rollup.d.ts +2 -0
  15. package/dist/esm/index-all-rollup.js +9 -0
  16. package/dist/esm/index-all-rollup.js.map +1 -0
  17. package/dist/esm/index-rollup.d.ts +1 -43
  18. package/dist/esm/index-rollup.js +6 -43
  19. package/dist/esm/index-rollup.js.map +1 -1
  20. package/dist/esm/index.d.ts +3 -2
  21. package/dist/esm/index.js +3 -2
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/menu/menu.js +4 -5
  24. package/dist/esm/menu/menu.js.map +1 -1
  25. package/dist/esm/menu-item/menu-item.js +4 -5
  26. package/dist/esm/menu-item/menu-item.js.map +1 -1
  27. package/dist/esm/menu-list/menu-list.base.js +1 -1
  28. package/dist/esm/menu-list/menu-list.base.js.map +1 -1
  29. package/dist/esm/radio-group/radio-group.base.js +8 -9
  30. package/dist/esm/radio-group/radio-group.base.js.map +1 -1
  31. package/dist/esm/radio-group/radio-group.options.js +1 -1
  32. package/dist/esm/radio-group/radio-group.options.js.map +1 -1
  33. package/dist/esm/slider/slider-utilities.d.ts +1 -1
  34. package/dist/esm/slider/slider-utilities.js +2 -1
  35. package/dist/esm/slider/slider-utilities.js.map +1 -1
  36. package/dist/esm/slider/slider.d.ts +2 -1
  37. package/dist/esm/slider/slider.js +9 -7
  38. package/dist/esm/slider/slider.js.map +1 -1
  39. package/dist/esm/slider/slider.options.d.ts +1 -1
  40. package/dist/esm/slider/slider.options.js +1 -1
  41. package/dist/esm/slider/slider.options.js.map +1 -1
  42. package/dist/esm/tablist/tablist.base.js +1 -1
  43. package/dist/esm/tablist/tablist.base.js.map +1 -1
  44. package/dist/esm/tablist/tablist.options.js +1 -1
  45. package/dist/esm/tablist/tablist.options.js.map +1 -1
  46. package/dist/esm/theme/index.d.ts +1 -1
  47. package/dist/esm/theme/index.js +1 -1
  48. package/dist/esm/theme/index.js.map +1 -1
  49. package/dist/esm/theme/set-theme.d.ts +0 -5
  50. package/dist/esm/theme/set-theme.js +1 -8
  51. package/dist/esm/theme/set-theme.js.map +1 -1
  52. package/dist/esm/tooltip/tooltip.js +1 -1
  53. package/dist/esm/tooltip/tooltip.js.map +1 -1
  54. package/dist/esm/tree/tree.base.js +4 -5
  55. package/dist/esm/tree/tree.base.js.map +1 -1
  56. package/dist/esm/utils/direction.d.ts +13 -1
  57. package/dist/esm/utils/direction.js +8 -1
  58. package/dist/esm/utils/direction.js.map +1 -1
  59. package/dist/esm/utils/index.d.ts +2 -0
  60. package/dist/esm/utils/index.js +2 -0
  61. package/dist/esm/utils/index.js.map +1 -1
  62. package/dist/esm/utils/numbers.d.ts +5 -0
  63. package/dist/esm/utils/numbers.js +9 -0
  64. package/dist/esm/utils/numbers.js.map +1 -0
  65. package/dist/esm/utils/orientation.d.ts +13 -0
  66. package/dist/esm/utils/orientation.js +10 -0
  67. package/dist/esm/utils/orientation.js.map +1 -0
  68. package/dist/esm/utils/typings.d.ts +4 -0
  69. package/dist/esm/utils/typings.js +6 -0
  70. package/dist/esm/utils/typings.js.map +1 -1
  71. package/dist/web-components-all.js +14278 -0
  72. package/dist/web-components-all.min.js +43 -0
  73. package/dist/web-components.d.ts +30 -8
  74. package/dist/web-components.js +5133 -5282
  75. package/dist/web-components.min.js +13 -542
  76. package/package.json +20 -7
@@ -0,0 +1,43 @@
1
+ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function Zi(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function Ji(...o){return o.every(e=>e instanceof HTMLElement)}const Su={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Cu={start:"start",end:"end"};function $n(o,e="-accordion-item"){return Zi(e)(o)}const Bu=`${u.prefix}-accordion-item`;let ur;const es="fast-kernel";try{if(document.currentScript)ur=document.currentScript.getAttribute(es);else{const o=document.getElementsByTagName("script");ur=o[o.length-1].getAttribute(es)}}catch{ur="isolate"}let $t;switch(ur){case"share":$t=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":$t=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)}`;$t=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Rt=o=>typeof o=="function",Ue=o=>typeof o=="string",Pu=()=>{};var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof yn<"u")yn.globalThis=yn;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 ts={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ts));const ne=globalThis.FAST;if(ne.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ne,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},ts))}ne.error===void 0&&Object.assign(ne,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Iu=Object.freeze([]);function kn(){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 os(){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 yt(o){o.prototype.toJSON=Pu}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),rs=o=>o,Nu=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:rs}):{createHTML:rs};let pr=Object.freeze({createHTML(o){return Nu.createHTML(o)},protect(o,e,t,r){return r}});const zu=pr,kt=Object.freeze({get policy(){return pr},setPolicy(o){if(pr!==zu)throw ne.error(1201);pr=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)}}),q=ne.getById($t.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function n(){if(e.length)throw e.shift()}function i(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(n,0);else throw o.length=0,d}}function s(){let d=0;for(;d<o.length;)if(i(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(s):s())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:s,setMode:h=>r=h})});class xn{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 n=this.sub1,i=this.sub2;n!==void 0&&n.handleChange(r,e),i!==void 0&&i.handleChange(r,e)}else for(let n=0,i=t.length;n<i;++n)t[n].handleChange(r,e)}}class ns{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,n;let i;t?i=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new xn(this.subject):i=(n=this.subjectSubscribers)!==null&&n!==void 0?n:this.subjectSubscribers=new xn(this.subject),i.subscribe(e)}unsubscribe(e,t){var r,n;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(n=this.subjectSubscribers)===null||n===void 0||n.unsubscribe(e)}}const gr=Object.freeze({unknown:void 0,coupled:1}),m=ne.getById($t.observable,()=>{const o=q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,n=d=>{throw ne.error(1101)};function i(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=n(d):t.set(d,f=new ns(d))),f}const s=os();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,Y=l[y];if(Y!==f){l[y]=f;const Ne=l[this.callback];Rt(Ne)&&Ne.call(l,Y,f),i(l).notify(this.name)}}}class h extends xn{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!==gr.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 Y;try{Y=this.expression(l,f)}finally{r=y}return Y}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,Y=i(l),Ne=y===null?this.first:{};if(Ne.propertySource=l,Ne.propertyName=f,Ne.notifier=Y,Y.subscribe(this,f),y!==null){if(!this.needsRefresh){let vt;r=void 0,vt=y.propertySource[y.propertyName],r=this,l===vt&&(this.needsRefresh=!0)}y.next=Ne}this.last=Ne}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 yt(h),Object.freeze({setArrayObserverFactory(d){n=d},getNotifier:i,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){i(d).notify(l)},defineProperty(d,l){Ue(l)&&(l=new c(l)),s(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:s,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 is(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ss=ne.getById($t.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),jt=Object.freeze({default:{index:0,length:0,get event(){return jt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ss.get()},setEvent(o){ss.set(o)}});class fr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Au extends fr{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function wn(o,e,t=m.isVolatileBinding(o)){return new Au(o,e,t)}class as extends fr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}yt(as);function ls(o,e){return new as(o,e)}let cs;function ds(o){return o.map(e=>e instanceof $e?ds(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class $e{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof $e?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(cs),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(ds(this.styles)),this}static setDefaultStrategy(e){cs=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new $e(e):e instanceof $e?e:new $e([e])}}$e.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Sn=kn(),Cn=Object.freeze({getForInstance:Sn.getForInstance,getByType:Sn.getByType,define(o){return Sn.register({type:o}),o}});function Bn(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Pn{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 i=r.setAttribute;r.setAttribute=(s,c)=>{i.call(r,s,c),s==="style"&&r.$cssBindings.forEach((h,d)=>Bn(d,h.controller,h.observer))}}const n=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);n.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:n})}connectedCallback(e){Bn(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Bn(this,t.controller,t)}}Cn.define(Pn);const Tu=`${Math.random().toString(36).substring(2,8)}`;let _u=0;const hs=()=>`--v${Tu}${++_u}`;function us(o,e){const t=[];let r="";const n=[],i=s=>{n.push(s)};for(let s=0,c=o.length-1;s<c;++s){r+=o[s];let h=e[s];Rt(h)?h=new Pn(wn(h),hs()).createCSS(i):h instanceof fr?h=new Pn(h,hs()).createCSS(i):Cn.getForInstance(h)!==void 0&&(h=h.createCSS(i)),h instanceof $e||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:n}}const p=(o,...e)=>{const{styles:t,behaviors:r}=us(o,e),n=new $e(t);return r.length?n.withBehaviors(...r):n};class ps{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((n,i)=>(Ue(i)?this.css+=i:n.push(i),n),[]);r.length&&(this.styles=new $e(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)}}Cn.define(ps),p.partial=(o,...e)=>{const{styles:t,behaviors:r}=us(o,e);return new ps(t,r)};const gs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,fs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,bs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,ms=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,vs=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,$s=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ys(o){return o&&o.nodeType===Node.COMMENT_NODE}const De=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 gs.test(o)},isContentBindingEndMarker(o){return fs.test(o)},isRepeatViewStartMarker(o){return bs.test(o)},isRepeatViewEndMarker(o){return ms.test(o)},isElementBoundaryStartMarker(o){return ys(o)&&vs.test(o.data.trim())},isElementBoundaryEndMarker(o){return ys(o)&&$s.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 ws(gs,o)},parseContentBindingEndMarker(o){return ws(fs,o)},parseRepeatStartMarker(o){return ks(bs,o)},parseRepeatEndMarker(o){return ks(ms,o)},parseElementBoundaryStartMarker(o){return xs(vs,o.trim())},parseElementBoundaryEndMarker(o){return xs($s,o)}});function ks(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function xs(o,e){const t=o.exec(e);return t===null?t:t[1]}function ws(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const br=Symbol.for("fe-hydration");function mr(o){return o[br]===br}const In=`fast-${Math.random().toString(36).substring(2,8)}`,vr=`${In}{`,vo=`}${In}`,Ou=vo.length;let Fu=0;const $o=()=>`${In}-${++Fu}`,Ss=Object.freeze({interpolation:o=>`${vr}${o}${vo}`,attribute:o=>`${$o()}="${vr}${o}${vo}"`,comment:o=>`<!--${vr}${o}${vo}-->`}),$r=Object.freeze({parse(o,e){const t=o.split(vr);if(t.length===1)return null;const r=[];for(let n=0,i=t.length;n<i;++n){const s=t[n],c=s.indexOf(vo);let h;if(c===-1)h=s;else{const d=s.substring(0,c);r.push(e[d]),h=s.substring(c+Ou)}h!==""&&r.push(h)}return r}}),Nn=kn(),Me=Object.freeze({getForInstance:Nn.getForInstance,getByType:Nn.getByType,define(o,e){return e=e||{},e.type=o,Nn.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class zn{constructor(e){this.options=e}createHTML(e){return Ss.attribute(e(this))}createBehavior(){return this}}yt(zn);class Cs extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function An(o){return o.nodeType===Node.COMMENT_NODE}function Bs(o){return o.nodeType===Node.TEXT_NODE}function Ps(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,An(e)||Bs(e)?e.data.length:e.childNodes.length),t}function Eu(o){return o instanceof DocumentFragment&&"mode"in o}function Du(o,e,t){const r=Ps(o,e),n=r.commonAncestorContainer,i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),s={},c={};let h=i.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Mu(h,t,s);break}case Node.COMMENT_NODE:{Lu(h,i,t,s,c);break}}h=i.nextNode()}return r.detach(),{targets:s,boundaries:c}}function Mu(o,e,t){const r=De.parseAttributeBinding(o);if(r!==null){for(const n of r){if(!e[n])throw new Cs(`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);yr(e[n],o,t)}o.removeAttribute(De.attributeMarkerName)}}function Lu(o,e,t,r,n){if(De.isElementBoundaryStartMarker(o)){Hu(o,e);return}if(De.isContentBindingStartMarker(o.data)){const i=De.parseContentBindingStartMarker(o.data);if(i===null)return;const[s,c]=i,h=t[s],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(An(l)){const y=De.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 "${Eu(y)?y.host.nodeName:y.nodeName}".`)}if(l.data="",d.length===1&&Bs(d[0]))yr(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(n[h.targetNodeId]={first:f,last:l.previousSibling});const y=l.parentNode.insertBefore(document.createTextNode(""),l);yr(h,y,r)}}}function Hu(o,e){const t=De.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(An(r)){const n=De.parseElementBoundaryEndMarker(r.data);if(n&&n===t)break}r=e.nextSibling()}}function yr(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 Tn(o,e){const t=o.parentNode;let r=o,n;for(;r!==e;){if(n=r.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=n}t.removeChild(e)}class Ns{constructor(){this.index=0,this.length=0}get event(){return jt.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 kr extends Ns{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=gr.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 n=this.firstChild,i;for(;n!==t;)i=n.nextSibling,r.insertBefore(n,e),n=i;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,e.appendChild(r),r=n;e.appendChild(t)}dispose(){Tn(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 n=this.factories;for(let i=0,s=n.length;i<s;++i){const c=n[i].createBehavior();c.bind(this),r[i]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,i=r.length;n<i;++n)r[n].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){Tn(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}yt(kr),m.defineProperty(kr.prototype,"index"),m.defineProperty(kr.prototype,"length");const qt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Vu extends Error{constructor(e,t,r,n){super(e),this.factory=t,this.fragment=r,this.templateString=n}}class Ru extends Ns{constructor(e,t,r,n){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=n,this[Is]=br,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=gr.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=qt.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 n=this.firstChild,i;for(;n!==t;)i=n.nextSibling,r.insertBefore(n,e),n=i;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,n;for(;r!==t;){if(n=r.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=n}e.appendChild(t)}bind(e,t=this){var r,n;if(this.hydrationStage!==qt.hydrated&&(this._hydrationStage=qt.hydrating),this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Du(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Cs){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let c=0,h=s.length;c<h;++c){const d=s[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&yr(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),i[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Vu(`HydrationView was unable to successfully target bindings inside "${(n=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||n===void 0?void 0:n.nodeName}".`,d,Ps(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let s=0,c=i.length;s<c;++s)i[s].bind(this)}this.isBound=!0,this._hydrationStage=qt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Tn(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=br,yt(Ru);function ju(o){return o.create!==void 0}function qu(o,e,t,r){if(t==null&&(t=""),ju(t)){o.textContent="";let n=o.$fastView;if(n===void 0)if(mr(r)&&mr(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==qt.hydrated){const i=r.bindingViewBoundaries[this.targetNodeId];n=t.hydrate(i.first,i.last)}else n=t.create();else o.$fastTemplate!==t&&(n.isComposed&&(n.remove(),n.unbind()),n=t.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(r.source,r.context)):(n.isComposed=!0,n.bind(r.source,r.context),n.insertBefore(o),o.$fastView=n,o.$fastTemplate=t)}else{const n=o.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),o.textContent=t}}function Gu(o,e,t){var r;const n=`${this.id}-t`,i=(r=o[n])!==null&&r!==void 0?r:o[n]={v:0,cv:Object.create(null)},s=i.cv;let c=i.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!==""&&(s[y]=c,h.add(y))}}if(i.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const Wu={[Q.attribute]:kt.setAttribute,[Q.booleanAttribute]:kt.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:qu,[Q.tokenList]:Gu,[Q.event]:()=>{}};class Gt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return Ss.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Wu[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ne.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],n=mr(e)&&e.hydrationStage&&e.hydrationStage!==qt.hydrated;switch(this.aspectType){case Q.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(i.target=r,i.controller=e,n&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){i.bind(e);break}this.updateTarget(r,this.targetAspect,i.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){jt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);jt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,n=t.controller;this.updateTarget(r,this.targetAspect,t.bind(n),n)}}Me.define(Gt,{aspected:!0});const zs=(o,e)=>`${o}.${e}`,As={},Le={index:0,node:null};function Ts(o){o.startsWith("fast-")||ne.warn(1204,{name:o})}const Xu=new Proxy(document.createElement("div"),{get(o,e){Ts(e);const t=Reflect.get(o,e);return Rt(t)?t.bind(o):t},set(o,e,t){return Ts(e),Reflect.set(o,e,t)}});class Uu{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,n,i){var s,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,n)),e.id=(s=e.id)!==null&&s!==void 0?s:$o(),e.targetNodeId=r,e.targetTagName=i,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 n=this.descriptors;if(t==="r"||t==="h"||n[t])return;if(!n[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1));this.addTargetDescriptor(c,e,h)}let i=As[t];if(!i){const s=`_${t}`;As[t]=i={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[r]}}}n[t]=i}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Xu;for(const n of this.nodeIds)r[n];return new kr(t,this.factories,r)}}function _s(o,e,t,r,n,i=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],f=l.value,y=$r.parse(f,c);let Y=null;y===null?i&&(Y=new Gt(ls(()=>f,o.policy)),Me.assignAspect(Y,l.name)):Y=_n.aggregate(y,o.policy),Y!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(Y,e,r,n,t.tagName))}}function Ku(o,e,t,r,n){const i=$r.parse(e.textContent,o.directives);if(i===null)return Le.node=e.nextSibling,Le.index=n+1,Le;let s,c=s=e;for(let h=0,d=i.length;h<d;++h){const l=i[h];h!==0&&(n++,r=zs(t,n),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ue(l)?s.textContent=l:(s.textContent=" ",Me.assignAspect(l),o.addFactory(l,t,r,n,null)),c=s}return Le.index=n+1,Le.node=c.nextSibling,Le}function Os(o,e,t){let r=0,n=e.firstChild;for(;n;){const i=Yu(o,t,n,r);n=i.node,r=i.index}}function Yu(o,e,t,r){const n=zs(e,r);switch(t.nodeType){case 1:_s(o,e,t,n,r),Os(o,t,n);break;case 3:return Ku(o,t,e,n,r);case 8:const i=$r.parse(t.data,o.directives);i!==null&&o.addFactory(_n.aggregate(i),e,n,r,null);break}return Le.index=r+1,Le.node=t.nextSibling,Le}function Qu(o,e){return o&&o.nodeType==8&&$r.parse(o.data,e)!==null}const Fs="TEMPLATE",_n={compile(o,e,t=kt.policy){let r;if(Ue(o)){r=document.createElement(Fs),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===Fs&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const n=document.adoptNode(r.content),i=new Uu(n,e,t);return _s(i,"",r,"h",0,!0),(Qu(n.firstChild,e)||n.childNodes.length===1&&Object.keys(e).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),Os(i,n,"r"),Le.node=null,i.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=kt.policy){if(o.length===1)return o[0];let t,r=!1,n;const i=o.length,s=o.map(d=>Ue(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,n=n||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let y=0;y<i;++y)f+=s[y](d,l);return f},h=new Gt(wn(c,n??e,r));return Me.assignAspect(h,t),h}},Zu=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Ju=Object.create(null);class xt{constructor(e,t=Ju){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}xt.empty=new xt(""),Me.define(xt);function ep(o,e,t,r=Me.getForInstance(o)){if(r.aspected){const n=Zu.exec(e);n!==null&&Me.assignAspect(o,n[2])}return o.createHTML(t)}class bn{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=_n.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new xt(Ue(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ne.error(1208);if(this.policy)throw ne.error(1207);return this.policy=e,this}render(e,t,r){const n=this.create(r);return n.bind(e),n.appendTo(t),n}static create(e,t,r){let n="";const i=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=$o();return i[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(n+=d,Rt(l))l=new Gt(wn(l));else if(l instanceof fr)l=new Gt(l);else if(!(f=Me.getForInstance(l))){const y=l;l=new Gt(ls(()=>y))}n+=ep(l,d,s,f)}return new bn(n+e[e.length-1],i,r)}}yt(bn);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return bn.create(o,e);throw ne.error(1206)};b.partial=o=>new xt(o);class Es extends zn{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Me.define(Es);const N=o=>new Es(o),tp=o=>o.nodeType===1,yo=o=>o?e=>e.nodeType===1&&e.matches(o):tp;class op extends zn{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,Iu),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 Ds="slotchange";class Ms extends op{observe(e){e.addEventListener(Ds,this)}disconnect(e){e.removeEventListener(Ds,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Me.define(Ms);function W(o){return Ue(o)&&(o={property:o}),new Ms(o)}const Ls="boolean",Hs="reflect",xr=Object.freeze({locate:os()}),rp={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Vs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Vs(o);return e&&e.toString()},fromView:Vs};class mn{constructor(e,t,r=t.toLowerCase(),n=Hs,i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=n,this.converter=i,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n===Ls&&i===void 0&&(this.converter=rp)}setValue(e,t){const r=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.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"||q.enqueue(()=>{r.add(e);const n=e[this.fieldName];switch(t){case Hs:const i=this.converter;kt.setAttribute(e,this.attribute,i!==void 0?i.toView(n):n);break;case Ls:kt.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(xr.locate(e));for(let n=0,i=t.length;n<i;++n){const s=t[n];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];Ue(d)?r.push(new mn(e,d)):r.push(new mn(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(n,i){arguments.length>1&&(t.property=i),xr.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Rs={mode:"open"},js={},qs=new Set,wr=ne.getById($t.elementRegistry,()=>kn());class Ee{constructor(e,t=e.definition){var r;this.platformDefined=!1,Ue(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 n=e.prototype,i=mn.collect(e,t.attributes),s=new Array(i.length),c={},h={};for(let d=0,l=i.length;d<l;++d){const f=i[d];s[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(n,f)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=i,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Rs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Rs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?js:Object.assign(Object.assign({},js),t.elementOptions),this.styles=$e.normalize(t.styles),wr.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 qs.has(e)||wr.getByType(e)?new Ee(class extends e{},t):new Ee(e,t)}static registerBaseType(e){qs.add(e)}}Ee.getByType=wr.getByType,Ee.getForInstance=wr.getForInstance;class np extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(n=>this.observedNodes.has(n.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,n=!1;return{source:o,context:jt.default,targets:t,get isBound(){return n},addBehaviorFactory(i,s){var c,h,d,l;const f=i;f.id=(c=f.id)!==null&&c!==void 0?c:$o(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:$o(),f.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:kt.policy,this.addTarget(f.targetNodeId,s),this.addBehavior(f.createBehavior())},addTarget(i,s){t[i]=s},addBehavior(i){e.push(i),n&&i.bind(this)},onUnbind(i){r===null&&(r=[]),r.push(i)},connectedCallback(i){n||(n=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(i){n&&(n=!1,r!==null&&r.forEach(s=>s.unbind(this)))}}}});const ip={bubbles:!0,composed:!0,cancelable:!0},Sr="isConnected",Gs=new WeakMap;function ko(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Gs.get(o))!==null&&t!==void 0?t:null}let Ws;class Wt extends ns{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 i=e.shadowRoot;i?this.hasExistingShadowRoot=!0:(i=e.attachShadow(r),r.mode==="closed"&&Gs.set(e,i))}const n=m.getAccessors(e);if(n.length>0){const i=this.boundObservables=Object.create(null);for(let s=0,c=n.length;s<c;++s){const h=n[s].name,d=e[h];d!==void 0&&(delete e[h],i[h]=d)}}}get isConnected(){return m.track(this,Sr),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:jt.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 n=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,i=(r=n.get(e))!==null&&r!==void 0?r:0;i===0?(n.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):n.set(e,i+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const n=r.get(e);n!==void 0&&(n===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,n-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ko(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const n=e.behaviors;if(e.addStylesTo(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.addBehavior(n[i])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ko(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const n=e.behaviors;if(e.removeStylesFrom(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.removeBehavior(n[i])}}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,Sr))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let n=0,i=r.length;n<i;++n){const s=r[n];e[s]=t[s]}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,Sr),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},ip),r))):!1}renderTemplate(e){var t;const r=this.source,n=(t=ko(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 i=n.firstChild;i!==null;i=n.firstChild)n.removeChild(i)}e&&(this.view=e.render(r,n,r),this.view.sourceLifetime=gr.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Ee.getForInstance(e);if(r===void 0)throw ne.error(1401);return e.$fastController=new Ws(e,r)}static setStrategy(e){Ws=e}}yt(Wt),Wt.setStrategy(Wt);function Cr(o){var e;return"adoptedStyleSheets"in o?o:(e=ko(o))!==null&&e!==void 0?e:o.getRootNode()}class vn{constructor(e){const t=vn.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let n=t.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),t.set(r,n)),n})}addStylesTo(e){Us(Cr(e),this.sheets)}removeStylesFrom(e){Ks(Cr(e),this.sheets)}}vn.styleSheetCache=new Map;let sp=0;const ap=()=>`fast-${++sp}`;function Xs(o){return o===document?document.body:o}class lp{constructor(e){this.styles=e,this.styleClass=ap()}addStylesTo(e){e=Xs(Cr(e));const t=this.styles,r=this.styleClass;for(let n=0;n<t.length;n++){const i=document.createElement("style");i.innerHTML=t[n],i.className=r,e.append(i)}}removeStylesFrom(e){e=Xs(Cr(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,n=t.length;r<n;++r)e.removeChild(t[r])}}let Us=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Ks=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if($e.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Us=(o,e)=>{o.adoptedStyleSheets.push(...e)},Ks=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}$e.setDefaultStrategy(vn)}else $e.setDefaultStrategy(lp);const Ys="defer-hydration",Qs="needs-hydration";class Vt extends Wt{static hydrationObserverHandler(e){for(const t of e)Vt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Qs)!==null),this.source.hasAttribute(Ys)){Vt.hydrationObserver.observe(this.source,{attributeFilter:[Ys]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,n=(e=ko(r))!==null&&e!==void 0?e:r;if(this.template)if(mr(this.template)){let i=n.firstChild,s=n.lastChild;r.shadowRoot===null&&(De.isElementBoundaryStartMarker(i)&&(i.data="",i=i.nextSibling),De.isElementBoundaryEndMarker(s)&&(s.data="",s=s.previousSibling)),this.view=this.template.hydrate(i,s,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(Qs),this.needsInitialization=this.needsHydration=!1,m.notify(this,Sr)}disconnect(){super.disconnect(),Vt.hydrationObserver.unobserve(this.source)}static install(){Wt.setStrategy(Vt)}}Vt.hydrationObserver=new np(Vt.hydrationObserverHandler);function Zs(o){const e=class extends o{constructor(){super(),Wt.forCustomElement(this)}$emit(t,r,n){return this.$fastController.emit(t,r,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,n){this.$fastController.onAttributeChangedCallback(t,r,n)}};return Ee.registerBaseType(e),e}function cp(o,e){return Rt(o)?Ee.compose(o,e):Ee.compose(this,o)}function dp(o,e){return Rt(o)?Ee.compose(o,e).define().type:Ee.compose(this,o).define().type}function hp(o){return Zs(o)}const x=Object.assign(Zs(HTMLElement),{from:hp,define:dp,compose:cp});function ue(o){return o?typeof o=="string"?new xt(o):"inline"in o?o.inline():o:xt.empty}class Ke{}function Je(o){return b`<slot name=end ${N("end")}>${ue(o.end)}</slot>`.inline()}function He(o){return b`<slot name=start ${N("start")}>${ue(o.start)}</slot>`.inline()}function et(o,...e){const t=xr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(o.prototype,i,Object.getOwnPropertyDescriptor(r.prototype,i))}),xr.locate(r).forEach(i=>t.push(i))})}var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,Br=(o,e,t,r)=>{for(var n=r>1?void 0:r?pp(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&up(e,t,n),n};class Xt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Br([a({attribute:"heading-level",mode:"fromView",converter:ie})],Xt.prototype,"headinglevel",2),Br([a({mode:"boolean"})],Xt.prototype,"expanded",2),Br([a({mode:"boolean"})],Xt.prototype,"disabled",2),Br([g],Xt.prototype,"expandbutton",2);var gp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,On=(o,e,t,r)=>{for(var n=r>1?void 0:r?fp(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&gp(e,t,n),n};class Ut extends Xt{constructor(){super(...arguments),this.block=!1}}On([a],Ut.prototype,"size",2),On([a({attribute:"marker-position"})],Ut.prototype,"markerPosition",2),On([a({mode:"boolean"})],Ut.prototype,"block",2),et(Ut,Ke);const bp=":host([hidden]){display:none}";function w(o){return`${bp}:host{display:${o}}`}const I="var(--colorNeutralForeground1)",Fn="var(--colorNeutralForeground1Hover)",Js="var(--colorNeutralForeground1Pressed)",mp="var(--colorNeutralForeground1Selected)",Ce="var(--colorNeutralForeground2)",wt="var(--colorNeutralForeground2Hover)",St="var(--colorNeutralForeground2Pressed)",xo="var(--colorNeutralForeground2Selected)",wo="var(--colorNeutralForeground2BrandHover)",So="var(--colorNeutralForeground2BrandPressed)",ea="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",ta="var(--colorNeutralForeground3Hover)",oa="var(--colorNeutralForeground3Pressed)",ra="var(--colorNeutralForeground3Selected)",vp="var(--colorNeutralForeground3BrandHover)",$p="var(--colorNeutralForeground3BrandPressed)",yp="var(--colorNeutralForeground3BrandSelected)",Pr="var(--colorNeutralForeground4)",kp="var(--colorNeutralForeground5)",xp="var(--colorNeutralForeground5Hover)",wp="var(--colorNeutralForeground5Pressed)",Sp="var(--colorNeutralForeground5Selected)",z="var(--colorNeutralForegroundDisabled)",na="var(--colorBrandForegroundLink)",ia="var(--colorBrandForegroundLinkHover)",sa="var(--colorBrandForegroundLinkPressed)",Cp="var(--colorBrandForegroundLinkSelected)",aa="var(--colorNeutralForeground2Link)",la="var(--colorNeutralForeground2LinkHover)",ca="var(--colorNeutralForeground2LinkPressed)",Bp="var(--colorNeutralForeground2LinkSelected)",Pp="var(--colorCompoundBrandForeground1)",da="var(--colorCompoundBrandForeground1Hover)",ha="var(--colorCompoundBrandForeground1Pressed)",Ve="var(--colorNeutralForegroundOnBrand)",tt="var(--colorNeutralForegroundInverted)",ua="var(--colorNeutralForegroundInvertedHover)",pa="var(--colorNeutralForegroundInvertedPressed)",Ip="var(--colorNeutralForegroundInvertedSelected)",Np="var(--colorNeutralForegroundInverted2)",En="var(--colorNeutralForegroundStaticInverted)",zp="var(--colorNeutralForegroundInvertedLink)",Ap="var(--colorNeutralForegroundInvertedLinkHover)",Tp="var(--colorNeutralForegroundInvertedLinkPressed)",_p="var(--colorNeutralForegroundInvertedLinkSelected)",Op="var(--colorNeutralForegroundInvertedDisabled)",Co="var(--colorBrandForeground1)",ga="var(--colorBrandForeground2)",Fp="var(--colorBrandForeground2Hover)",Ep="var(--colorBrandForeground2Pressed)",fa="var(--colorNeutralForeground1Static)",Dp="var(--colorBrandForegroundInverted)",Mp="var(--colorBrandForegroundInvertedHover)",Lp="var(--colorBrandForegroundInvertedPressed)",Hp="var(--colorBrandForegroundOnLight)",Vp="var(--colorBrandForegroundOnLightHover)",Rp="var(--colorBrandForegroundOnLightPressed)",jp="var(--colorBrandForegroundOnLightSelected)",C="var(--colorNeutralBackground1)",Bo="var(--colorNeutralBackground1Hover)",Ir="var(--colorNeutralBackground1Pressed)",Dn="var(--colorNeutralBackground1Selected)",qp="var(--colorNeutralBackground2)",Gp="var(--colorNeutralBackground2Hover)",Wp="var(--colorNeutralBackground2Pressed)",Xp="var(--colorNeutralBackground2Selected)",Kt="var(--colorNeutralBackground3)",Up="var(--colorNeutralBackground3Hover)",Kp="var(--colorNeutralBackground3Pressed)",Yp="var(--colorNeutralBackground3Selected)",ba="var(--colorNeutralBackground4)",Qp="var(--colorNeutralBackground4Hover)",Zp="var(--colorNeutralBackground4Pressed)",Jp="var(--colorNeutralBackground4Selected)",ma="var(--colorNeutralBackground5)",eg="var(--colorNeutralBackground5Hover)",tg="var(--colorNeutralBackground5Pressed)",og="var(--colorNeutralBackground5Selected)",Yt="var(--colorNeutralBackground6)",rg="var(--colorNeutralBackground7)",ng="var(--colorNeutralBackground7Hover)",ig="var(--colorNeutralBackground7Pressed)",sg="var(--colorNeutralBackground7Selected)",ag="var(--colorNeutralBackground8)",Mn="var(--colorNeutralBackgroundInverted)",lg="var(--colorNeutralBackgroundInvertedHover)",cg="var(--colorNeutralBackgroundInvertedPressed)",dg="var(--colorNeutralBackgroundInvertedSelected)",hg="var(--colorNeutralBackgroundStatic)",ug="var(--colorNeutralBackgroundAlpha)",pg="var(--colorNeutralBackgroundAlpha2)",Ln="var(--colorSubtleBackground)",Po="var(--colorSubtleBackgroundHover)",Qt="var(--colorSubtleBackgroundPressed)",Hn="var(--colorSubtleBackgroundSelected)",va="var(--colorSubtleBackgroundLightAlphaHover)",$a="var(--colorSubtleBackgroundLightAlphaPressed)",ya="var(--colorSubtleBackgroundLightAlphaSelected)",gg="var(--colorSubtleBackgroundInverted)",fg="var(--colorSubtleBackgroundInvertedHover)",bg="var(--colorSubtleBackgroundInvertedPressed)",mg="var(--colorSubtleBackgroundInvertedSelected)",ae="var(--colorTransparentBackground)",Io="var(--colorTransparentBackgroundHover)",No="var(--colorTransparentBackgroundPressed)",Vn="var(--colorTransparentBackgroundSelected)",Ye="var(--colorNeutralBackgroundDisabled)",vg="var(--colorNeutralBackgroundDisabled2)",$g="var(--colorNeutralBackgroundInvertedDisabled)",yg="var(--colorNeutralStencil1)",kg="var(--colorNeutralStencil2)",xg="var(--colorNeutralStencil1Alpha)",wg="var(--colorNeutralStencil2Alpha)",Nr="var(--colorBackgroundOverlay)",Sg="var(--colorScrollbarOverlay)",Rn="var(--colorBrandBackground)",jn="var(--colorBrandBackgroundHover)",qn="var(--colorBrandBackgroundPressed)",ka="var(--colorBrandBackgroundSelected)",ot="var(--colorCompoundBrandBackground)",Ct="var(--colorCompoundBrandBackgroundHover)",Bt="var(--colorCompoundBrandBackgroundPressed)",Gn="var(--colorBrandBackgroundStatic)",Wn="var(--colorBrandBackground2)",Cg="var(--colorBrandBackground2Hover)",Bg="var(--colorBrandBackground2Pressed)",Pg="var(--colorBrandBackground3Static)",Ig="var(--colorBrandBackground4Static)",Ng="var(--colorBrandBackgroundInverted)",zg="var(--colorBrandBackgroundInvertedHover)",Ag="var(--colorBrandBackgroundInvertedPressed)",Tg="var(--colorBrandBackgroundInvertedSelected)",_g="var(--colorNeutralCardBackground)",Og="var(--colorNeutralCardBackgroundHover)",Fg="var(--colorNeutralCardBackgroundPressed)",Eg="var(--colorNeutralCardBackgroundSelected)",Dg="var(--colorNeutralCardBackgroundDisabled)",ze="var(--colorNeutralStrokeAccessible)",rt="var(--colorNeutralStrokeAccessibleHover)",nt="var(--colorNeutralStrokeAccessiblePressed)",Mg="var(--colorNeutralStrokeAccessibleSelected)",Ae="var(--colorNeutralStroke1)",it="var(--colorNeutralStroke1Hover)",Zt="var(--colorNeutralStroke1Pressed)",Lg="var(--colorNeutralStroke1Selected)",Jt="var(--colorNeutralStroke2)",xa="var(--colorNeutralStroke3)",Hg="var(--colorNeutralStroke4)",Vg="var(--colorNeutralStroke4Hover)",Rg="var(--colorNeutralStroke4Pressed)",jg="var(--colorNeutralStroke4Selected)",qg="var(--colorNeutralStrokeSubtle)",Gg="var(--colorNeutralStrokeOnBrand)",wa="var(--colorNeutralStrokeOnBrand2)",Wg="var(--colorNeutralStrokeOnBrand2Hover)",Xg="var(--colorNeutralStrokeOnBrand2Pressed)",Ug="var(--colorNeutralStrokeOnBrand2Selected)",Xn="var(--colorBrandStroke1)",Un="var(--colorBrandStroke2)",Kg="var(--colorBrandStroke2Hover)",Yg="var(--colorBrandStroke2Pressed)",Qg="var(--colorBrandStroke2Contrast)",Qe="var(--colorCompoundBrandStroke)",Sa="var(--colorCompoundBrandStrokeHover)",Kn="var(--colorCompoundBrandStrokePressed)",pe="var(--colorNeutralStrokeDisabled)",Zg="var(--colorNeutralStrokeDisabled2)",Jg="var(--colorNeutralStrokeInvertedDisabled)",G="var(--colorTransparentStroke)",zr="var(--colorTransparentStrokeInteractive)",ef="var(--colorTransparentStrokeDisabled)",tf="var(--colorNeutralStrokeAlpha)",of="var(--colorNeutralStrokeAlpha2)",zo="var(--colorStrokeFocus1)",le="var(--colorStrokeFocus2)",Ca="var(--colorNeutralShadowAmbient)",Ba="var(--colorNeutralShadowKey)",rf="var(--colorNeutralShadowAmbientLighter)",nf="var(--colorNeutralShadowKeyLighter)",sf="var(--colorNeutralShadowAmbientDarker)",af="var(--colorNeutralShadowKeyDarker)",lf="var(--colorBrandShadowAmbient)",cf="var(--colorBrandShadowKey)",Yn="var(--colorPaletteRedBackground1)",Pa="var(--colorPaletteRedBackground2)",Qn="var(--colorPaletteRedBackground3)",df="var(--colorPaletteRedBorderActive)",Zn="var(--colorPaletteRedBorder1)",Ar="var(--colorPaletteRedBorder2)",Tr="var(--colorPaletteRedForeground1)",Ia="var(--colorPaletteRedForeground2)",Jn="var(--colorPaletteRedForeground3)",hf="var(--colorPaletteRedForegroundInverted)",ei="var(--colorPaletteGreenBackground1)",uf="var(--colorPaletteGreenBackground2)",ti="var(--colorPaletteGreenBackground3)",pf="var(--colorPaletteGreenBorderActive)",Na="var(--colorPaletteGreenBorder1)",za="var(--colorPaletteGreenBorder2)",Aa="var(--colorPaletteGreenForeground1)",Ta="var(--colorPaletteGreenForeground2)",_a="var(--colorPaletteGreenForeground3)",gf="var(--colorPaletteGreenForegroundInverted)",oi="var(--colorPaletteDarkOrangeBackground1)",ff="var(--colorPaletteDarkOrangeBackground2)",ri="var(--colorPaletteDarkOrangeBackground3)",bf="var(--colorPaletteDarkOrangeBorderActive)",ni="var(--colorPaletteDarkOrangeBorder1)",mf="var(--colorPaletteDarkOrangeBorder2)",Oa="var(--colorPaletteDarkOrangeForeground1)",vf="var(--colorPaletteDarkOrangeForeground2)",ii="var(--colorPaletteDarkOrangeForeground3)",Fa="var(--colorPaletteYellowBackground1)",$f="var(--colorPaletteYellowBackground2)",Ea="var(--colorPaletteYellowBackground3)",yf="var(--colorPaletteYellowBorderActive)",Da="var(--colorPaletteYellowBorder1)",kf="var(--colorPaletteYellowBorder2)",xf="var(--colorPaletteYellowForeground1)",_r="var(--colorPaletteYellowForeground2)",wf="var(--colorPaletteYellowForeground3)",Sf="var(--colorPaletteYellowForegroundInverted)",Cf="var(--colorPaletteBerryBackground1)",Bf="var(--colorPaletteBerryBackground2)",Pf="var(--colorPaletteBerryBackground3)",If="var(--colorPaletteBerryBorderActive)",Nf="var(--colorPaletteBerryBorder1)",zf="var(--colorPaletteBerryBorder2)",Af="var(--colorPaletteBerryForeground1)",Tf="var(--colorPaletteBerryForeground2)",_f="var(--colorPaletteBerryForeground3)",Of="var(--colorPaletteMarigoldBackground1)",si="var(--colorPaletteMarigoldBackground2)",Ff="var(--colorPaletteMarigoldBackground3)",Ma="var(--colorPaletteMarigoldBorderActive)",Ef="var(--colorPaletteMarigoldBorder1)",Df="var(--colorPaletteMarigoldBorder2)",Mf="var(--colorPaletteMarigoldForeground1)",La="var(--colorPaletteMarigoldForeground2)",Lf="var(--colorPaletteMarigoldForeground3)",Hf="var(--colorPaletteLightGreenBackground1)",Vf="var(--colorPaletteLightGreenBackground2)",Rf="var(--colorPaletteLightGreenBackground3)",jf="var(--colorPaletteLightGreenBorderActive)",qf="var(--colorPaletteLightGreenBorder1)",Gf="var(--colorPaletteLightGreenBorder2)",Wf="var(--colorPaletteLightGreenForeground1)",Xf="var(--colorPaletteLightGreenForeground2)",Uf="var(--colorPaletteLightGreenForeground3)",Ha="var(--colorPaletteAnchorBackground2)",Kf="var(--colorPaletteAnchorBorderActive)",Va="var(--colorPaletteAnchorForeground2)",Ra="var(--colorPaletteBeigeBackground2)",Yf="var(--colorPaletteBeigeBorderActive)",ja="var(--colorPaletteBeigeForeground2)",qa="var(--colorPaletteBlueBackground2)",Qf="var(--colorPaletteBlueBorderActive)",Ga="var(--colorPaletteBlueForeground2)",Wa="var(--colorPaletteBrassBackground2)",Zf="var(--colorPaletteBrassBorderActive)",Xa="var(--colorPaletteBrassForeground2)",Ua="var(--colorPaletteBrownBackground2)",Jf="var(--colorPaletteBrownBorderActive)",Ka="var(--colorPaletteBrownForeground2)",Ya="var(--colorPaletteCornflowerBackground2)",eb="var(--colorPaletteCornflowerBorderActive)",Qa="var(--colorPaletteCornflowerForeground2)",Za="var(--colorPaletteCranberryBackground2)",tb="var(--colorPaletteCranberryBorderActive)",Ja="var(--colorPaletteCranberryForeground2)",el="var(--colorPaletteDarkGreenBackground2)",ob="var(--colorPaletteDarkGreenBorderActive)",tl="var(--colorPaletteDarkGreenForeground2)",ol="var(--colorPaletteDarkRedBackground2)",rb="var(--colorPaletteDarkRedBorderActive)",rl="var(--colorPaletteDarkRedForeground2)",nl="var(--colorPaletteForestBackground2)",nb="var(--colorPaletteForestBorderActive)",il="var(--colorPaletteForestForeground2)",sl="var(--colorPaletteGoldBackground2)",ib="var(--colorPaletteGoldBorderActive)",al="var(--colorPaletteGoldForeground2)",ll="var(--colorPaletteGrapeBackground2)",sb="var(--colorPaletteGrapeBorderActive)",cl="var(--colorPaletteGrapeForeground2)",dl="var(--colorPaletteLavenderBackground2)",ab="var(--colorPaletteLavenderBorderActive)",hl="var(--colorPaletteLavenderForeground2)",ul="var(--colorPaletteLightTealBackground2)",lb="var(--colorPaletteLightTealBorderActive)",pl="var(--colorPaletteLightTealForeground2)",gl="var(--colorPaletteLilacBackground2)",cb="var(--colorPaletteLilacBorderActive)",fl="var(--colorPaletteLilacForeground2)",bl="var(--colorPaletteMagentaBackground2)",db="var(--colorPaletteMagentaBorderActive)",ml="var(--colorPaletteMagentaForeground2)",vl="var(--colorPaletteMinkBackground2)",hb="var(--colorPaletteMinkBorderActive)",$l="var(--colorPaletteMinkForeground2)",yl="var(--colorPaletteNavyBackground2)",ub="var(--colorPaletteNavyBorderActive)",kl="var(--colorPaletteNavyForeground2)",xl="var(--colorPalettePeachBackground2)",pb="var(--colorPalettePeachBorderActive)",wl="var(--colorPalettePeachForeground2)",Sl="var(--colorPalettePinkBackground2)",gb="var(--colorPalettePinkBorderActive)",Cl="var(--colorPalettePinkForeground2)",Bl="var(--colorPalettePlatinumBackground2)",fb="var(--colorPalettePlatinumBorderActive)",Pl="var(--colorPalettePlatinumForeground2)",Il="var(--colorPalettePlumBackground2)",bb="var(--colorPalettePlumBorderActive)",Nl="var(--colorPalettePlumForeground2)",zl="var(--colorPalettePumpkinBackground2)",mb="var(--colorPalettePumpkinBorderActive)",Al="var(--colorPalettePumpkinForeground2)",Tl="var(--colorPalettePurpleBackground2)",vb="var(--colorPalettePurpleBorderActive)",_l="var(--colorPalettePurpleForeground2)",Ol="var(--colorPaletteRoyalBlueBackground2)",$b="var(--colorPaletteRoyalBlueBorderActive)",Fl="var(--colorPaletteRoyalBlueForeground2)",El="var(--colorPaletteSeafoamBackground2)",yb="var(--colorPaletteSeafoamBorderActive)",Dl="var(--colorPaletteSeafoamForeground2)",Ml="var(--colorPaletteSteelBackground2)",kb="var(--colorPaletteSteelBorderActive)",Ll="var(--colorPaletteSteelForeground2)",Hl="var(--colorPaletteTealBackground2)",xb="var(--colorPaletteTealBorderActive)",Vl="var(--colorPaletteTealForeground2)",wb="var(--colorStatusSuccessBackground1)",Sb="var(--colorStatusSuccessBackground2)",Cb="var(--colorStatusSuccessBackground3)",Bb="var(--colorStatusSuccessForeground1)",Pb="var(--colorStatusSuccessForeground2)",Ib="var(--colorStatusSuccessForeground3)",Nb="var(--colorStatusSuccessForegroundInverted)",zb="var(--colorStatusSuccessBorderActive)",Ab="var(--colorStatusSuccessBorder1)",Tb="var(--colorStatusSuccessBorder2)",_b="var(--colorStatusWarningBackground1)",Ob="var(--colorStatusWarningBackground2)",Fb="var(--colorStatusWarningBackground3)",Eb="var(--colorStatusWarningForeground1)",Db="var(--colorStatusWarningForeground2)",Mb="var(--colorStatusWarningForeground3)",Lb="var(--colorStatusWarningForegroundInverted)",Hb="var(--colorStatusWarningBorderActive)",Vb="var(--colorStatusWarningBorder1)",Rb="var(--colorStatusWarningBorder2)",jb="var(--colorStatusDangerBackground1)",qb="var(--colorStatusDangerBackground2)",Gb="var(--colorStatusDangerBackground3)",Wb="var(--colorStatusDangerBackground3Hover)",Xb="var(--colorStatusDangerBackground3Pressed)",Ub="var(--colorStatusDangerForeground1)",Kb="var(--colorStatusDangerForeground2)",Yb="var(--colorStatusDangerForeground3)",Qb="var(--colorStatusDangerForegroundInverted)",Zb="var(--colorStatusDangerBorderActive)",Jb="var(--colorStatusDangerBorder1)",em="var(--colorStatusDangerBorder2)",Ao="var(--borderRadiusNone)",Be="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",ai="var(--borderRadiusLarge)",li="var(--borderRadiusXLarge)",tm="var(--borderRadius2XLarge)",om="var(--borderRadius3XLarge)",rm="var(--borderRadius4XLarge)",nm="var(--borderRadius5XLarge)",im="var(--borderRadius6XLarge)",ce="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Rl="var(--fontFamilyMonospace)",jl="var(--fontFamilyNumeric)",eo="var(--fontSizeBase100)",O="var(--fontSizeBase200)",T="var(--fontSizeBase300)",de="var(--fontSizeBase400)",Pt="var(--fontSizeBase500)",To="var(--fontSizeBase600)",ci="var(--fontSizeHero700)",di="var(--fontSizeHero800)",hi="var(--fontSizeHero900)",ui="var(--fontSizeHero1000)",_="var(--fontWeightRegular)",ql="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",_o="var(--fontWeightBold)",Oo="var(--lineHeightBase100)",H="var(--lineHeightBase200)",F="var(--lineHeightBase300)",ge="var(--lineHeightBase400)",Fo="var(--lineHeightBase500)",pi="var(--lineHeightBase600)",gi="var(--lineHeightHero700)",fi="var(--lineHeightHero800)",bi="var(--lineHeightHero900)",mi="var(--lineHeightHero1000)",Or="var(--shadow2)",Eo="var(--shadow4)",Gl="var(--shadow8)",Fr="var(--shadow16)",Wl="var(--shadow28)",vi="var(--shadow64)",sm="var(--shadow2Brand)",am="var(--shadow4Brand)",lm="var(--shadow8Brand)",cm="var(--shadow16Brand)",dm="var(--shadow28Brand)",hm="var(--shadow64Brand)",B="var(--strokeWidthThin)",he="var(--strokeWidthThick)",ye="var(--strokeWidthThicker)",Er="var(--strokeWidthThickest)",um="var(--spacingHorizontalNone)",M="var(--spacingHorizontalXXS)",Z="var(--spacingHorizontalXS)",fe="var(--spacingHorizontalSNudge)",Pe="var(--spacingHorizontalS)",Re="var(--spacingHorizontalMNudge)",J="var(--spacingHorizontalM)",Xl="var(--spacingHorizontalL)",Ul="var(--spacingHorizontalXL)",Dr="var(--spacingHorizontalXXL)",pm="var(--spacingHorizontalXXXL)",Mr="var(--spacingVerticalNone)",Do="var(--spacingVerticalXXS)",It="var(--spacingVerticalXS)",to="var(--spacingVerticalSNudge)",ee="var(--spacingVerticalS)",Mo="var(--spacingVerticalMNudge)",Kl="var(--spacingVerticalM)",Lr="var(--spacingVerticalL)",gm="var(--spacingVerticalXL)",st="var(--spacingVerticalXXL)",Yl="var(--spacingVerticalXXXL)",Hr="var(--durationUltraFast)",Lo="var(--durationFaster)",fm="var(--durationFast)",Ho="var(--durationNormal)",Vr="var(--durationGentle)",Ql="var(--durationSlow)",$i="var(--durationSlower)",Vo="var(--durationUltraSlow)",Zl="var(--curveAccelerateMax)",at="var(--curveAccelerateMid)",Jl="var(--curveAccelerateMin)",yi="var(--curveDecelerateMax)",lt="var(--curveDecelerateMid)",ec="var(--curveDecelerateMin)",ki="var(--curveEasyEaseMax)",Ro="var(--curveEasyEase)",Rr="var(--curveLinear)",bm="var(--zIndexBackground)",mm="var(--zIndexContent)",vm="var(--zIndexOverlay)",$m="var(--zIndexPopup)",ym="var(--zIndexMessages)",km="var(--zIndexFloating)",xm="var(--zIndexPriority)",wm="var(--zIndexDebug)",tc=p`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${J} ${Re};border-radius:${S};font-family:${v};font-size:${T};font-weight:${_};line-height:${F};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ae};border:none;box-sizing:border-box;color:${I};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:${Be}}: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:${Pe};grid-column:1/span 1;grid-row:1}.content{margin:0 ${J}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Pe};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Be};outline:none;border:2px solid ${zo};box-shadow:inset 0 0 0 1px ${le}}:host([disabled]) .button{color:${z}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${T};line-height:${F}}:host([size='small']) .heading{font-size:${O};line-height:${H}}:host([size='large']) .heading{font-size:${de};line-height:${ge}}:host([size='extra-large']) .heading{font-size:${Pt};line-height:${Fo}}: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:${Pe};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:${J}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Re} ${J}}: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}`,Sm=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-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>'),Cm=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Bm(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${N("expandbutton")}><slot name=heading></slot></button> ${He(o)}<slot name=marker-expanded>${ue(o.expandedIcon)}</slot><slot name=marker-collapsed>${ue(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const oc=Bm({collapsedIcon:Sm,expandedIcon:Cm}),rc=Ut.compose({name:Bu,template:oc,styles:tc});rc.define(u.registry);const jr={single:"single",multi:"multi"},Pm=`${u.prefix}-accordion`;function nc(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 oo(o,e,t){const r=t?.shallow??!1,n=t?.timeout??50,i=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){i?nc(e,{timeout:n}):e();return}nc(c,{timeout:n})};c()}var Im=Object.defineProperty,Nm=Object.getOwnPropertyDescriptor,ic=(o,e,t,r)=>{for(var n=r>1?void 0:r?Nm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Im(e,t,n),n};class qr extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{oo(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;$n(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===jr.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=>$n(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===jr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,n)=>{$n(r)&&(this.activeItemIndex===n?(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||jr.multi,this.setItems()}}ic([a({attribute:"expand-mode"})],qr.prototype,"expandmode",2),ic([g],qr.prototype,"slottedAccordionItems",2);const sc=p`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function zm(){return b`<template><slot ${W({property:"slottedAccordionItems",filter:yo()})}></slot></template>`}const ac=zm(),lc=qr.compose({name:Pm,template:ac,styles:sc});lc.define(u.registry);const jo={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},qo={circular:"circular",rounded:"rounded",square:"square"},Go={small:"small",medium:"medium",large:"large"},Wo={submit:"submit",reset:"reset",button:"button"},Am={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},Tm=`${u.prefix}-button`,cc=jo,dc=qo,hc=Go,uc={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},_m={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Om=`${u.prefix}-anchor-button`,Gr=CSS.supports("anchor-name: --a"),Fm="anchor"in HTMLElement.prototype,pc=CSS.supports("selector(:state(g))"),gc=new Map;function P(o){return gc.get(o)??gc.set(o,pc?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!pc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const xi=new WeakMap;function fc(o,e){if(!o||!e)return!1;if(xi.has(o))return xi.get(o).has(e);const t=new Set(Object.values(o));return xi.set(o,t),t.has(e)}function Nt(o,e="",t="",r,n=""){$(o,`${n}${e}`,!1),(!r||fc(r,t))&&$(o,`${n}${t}`,!0)}var Em=Object.defineProperty,Dm=Object.getOwnPropertyDescriptor,ct=(o,e,t,r)=>{for(var n=r>1?void 0:r?Dm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Em(e,t,n),n};class Te extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),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 _m){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}}ct([a],Te.prototype,"download",2),ct([a],Te.prototype,"href",2),ct([a],Te.prototype,"hreflang",2),ct([a],Te.prototype,"ping",2),ct([a],Te.prototype,"referrerpolicy",2),ct([a],Te.prototype,"rel",2),ct([a],Te.prototype,"target",2),ct([a],Te.prototype,"type",2);var Mm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,Wr=(o,e,t,r)=>{for(var n=r>1?void 0:r?Lm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Mm(e,t,n),n};class zt extends Te{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Nt(this.elementInternals,e,t,cc)}shapeChanged(e,t){Nt(this.elementInternals,e,t,dc)}sizeChanged(e,t){Nt(this.elementInternals,e,t,hc)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Wr([a],zt.prototype,"appearance",2),Wr([a],zt.prototype,"shape",2),Wr([a],zt.prototype,"size",2),Wr([a({attribute:"icon-only",mode:"boolean"})],zt.prototype,"iconOnly",2),et(zt,Ke);const bc=p`${w("inline-flex")} :host{--icon-spacing:${fe};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${C};color:${I};border:${B} solid ${Ae};padding:0 ${J};min-width:96px;border-radius:${S};font-size:${T};font-family:${v};font-weight:${D};line-height:${F};transition-duration:${Lo};transition-property:background,border,color;transition-timing-function:${Ro};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Bo};color:${Fn};border-color:${it}}:host(:hover:active){background-color:${Ir};border-color:${Zt};color:${Js};outline-style:none}:host(:focus-visible){border-color:${G};outline:${he} solid ${G};box-shadow:${Eo},0 0 0 2px ${le}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${Z};min-height:24px;min-width:64px;padding:0 ${Pe};border-radius:${Be};font-size:${O};line-height:${H};font-weight:${_}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${ai};padding:0 ${Xl};font-size:${de};line-height:${ge}}: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:${ce}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${Ao}}:host([appearance='primary']){background-color:${Rn};color:${Ve};border-color:transparent}:host([appearance='primary']:hover){background-color:${jn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ve}}:host([appearance='primary']:hover:active){background-color:${qn}}:host([appearance='primary']:focus-visible){border-color:${Ve};box-shadow:${Or},0 0 0 2px ${le}}:host([appearance='outline']){background-color:${ae}}:host([appearance='outline']:hover){background-color:${Io}}:host([appearance='outline']:hover:active){background-color:${No}}:host([appearance='subtle']){background-color:${Ln};color:${Ce};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Po};color:${wt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Qt};color:${St};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${wo}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${So}}:host([appearance='transparent']){background-color:${ae};color:${Ce}}:host([appearance='transparent']:hover){background-color:${Io};color:${wo}}:host([appearance='transparent']:hover:active){background-color:${No};color:${So}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,ro=p`${bc} :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:${Ye};border-color:${pe};color:${z};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:${ae}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ae};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:${ae}}@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}}`,Hm=p`${bc} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Vm(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${He(o)} <span class=content part=content><slot></slot></span>${Je(o)}</template>`}const mc=Vm(),vc=zt.compose({name:Om,template:mc,styles:Hm});vc.define(u.registry);const Rm={active:"active",inactive:"inactive"},jm={circular:"circular",square:"square"},qm={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},wi={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"},Si={neutral:"neutral",brand:"brand",colorful:"colorful",...wi},Gm={_16:16,_20:20,_24:24,_28:28,_32:32,_36:36,_40:40,_48:48,_56:56,_64:64,_72:72,_96:96,_120:120,_128:128},Wm=`${u.prefix}-avatar`,Xm=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Um=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Km=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Ym=/\s+/g,Qm=/[\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 Zm(o,e,t){let r="";const n=o.split(" ");return n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),t||(n.length===2?r+=n[1].charAt(0).toUpperCase():n.length===3&&(r+=n[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function Jm(o){return o=o.replace(Xm,""),o=o.replace(Um,""),o=o.replace(Ym," "),o=o.trim(),o}function $c(o,e,t){return!o||(o=Jm(o),Qm.test(o)||!t?.allowPhoneInitials&&Km.test(o))?"":Zm(o,e,t?.firstInitialOnly)}var ev=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Xo=(o,e,t,r)=>{for(var n=r>1?void 0:r?tv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ev(e,t,n),n};class At extends x{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)}q.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||$c(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()})}}Xo([g],At.prototype,"defaultSlot",2),Xo([g],At.prototype,"monogram",2),Xo([g],At.prototype,"slottedDefaults",2),Xo([a],At.prototype,"name",2),Xo([a],At.prototype,"initials",2);var ov=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var n=r>1?void 0:r?rv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ov(e,t,n),n};const dt=class Yi extends At{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||$c(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Si.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Yi.colors[nv(this.name??"")%Yi.colors.length]:this.color??Si.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)}};dt.colors=Object.values(wi),no([a],dt.prototype,"active",2),no([a],dt.prototype,"shape",2),no([a],dt.prototype,"appearance",2),no([a({converter:ie})],dt.prototype,"size",2),no([a],dt.prototype,"color",2),no([a({attribute:"color-id"})],dt.prototype,"colorId",2);let yc=dt;const nv=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),n=t%8;e^=(r<<n)+(r>>8-n)}return e},ht={fastOutSlowInMax:yi,fastOutSlowInMid:lt,fastOutSlowInMin:ec,slowOutFastInMax:Zl,slowOutFastInMid:at,slowOutFastInMin:Jl,fastEase:ki,normalEase:Ro,nullEasing:Rr},kc=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:${D};font-size:${T};border-radius:${ce};color:${X};background-color:${Yt};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:${ce}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${B} ${C}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${he} ${C}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${eo};font-weight:${_}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${O}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${de}}: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:${Pt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${To}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Be}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${ai}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${li}}:host([data-color='brand']){color:${En};background-color:${Gn}}:host([data-color='dark-red']){color:${rl};background-color:${ol}}:host([data-color='cranberry']){color:${Ja};background-color:${Za}}:host([data-color='red']){color:${Ia};background-color:${Pa}}:host([data-color='pumpkin']){color:${Al};background-color:${zl}}:host([data-color='peach']){color:${wl};background-color:${xl}}:host([data-color='marigold']){color:${La};background-color:${si}}:host([data-color='gold']){color:${al};background-color:${sl}}:host([data-color='brass']){color:${Xa};background-color:${Wa}}:host([data-color='brown']){color:${Ka};background-color:${Ua}}:host([data-color='forest']){color:${il};background-color:${nl}}:host([data-color='seafoam']){color:${Dl};background-color:${El}}:host([data-color='dark-green']){color:${tl};background-color:${el}}:host([data-color='light-teal']){color:${pl};background-color:${ul}}:host([data-color='teal']){color:${Vl};background-color:${Hl}}:host([data-color='steel']){color:${Ll};background-color:${Ml}}:host([data-color='blue']){color:${Ga};background-color:${qa}}:host([data-color='royal-blue']){color:${Fl};background-color:${Ol}}:host([data-color='cornflower']){color:${Qa};background-color:${Ya}}:host([data-color='navy']){color:${kl};background-color:${yl}}:host([data-color='lavender']){color:${hl};background-color:${dl}}:host([data-color='purple']){color:${_l};background-color:${Tl}}:host([data-color='grape']){color:${cl};background-color:${ll}}:host([data-color='lilac']){color:${fl};background-color:${gl}}:host([data-color='pink']){color:${Cl};background-color:${Sl}}:host([data-color='magenta']){color:${ml};background-color:${bl}}:host([data-color='plum']){color:${Nl};background-color:${Il}}:host([data-color='beige']){color:${ja};background-color:${Ra}}:host([data-color='mink']){color:${$l};background-color:${vl}}:host([data-color='platinum']){color:${Pl};background-color:${Bl}}:host([data-color='anchor']){color:${Va};background-color:${Ha}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Vo},${Lo};transition-delay:${ht.fastEase},${ht.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Vo},${$i};transition-delay:${ht.fastEase},${ht.nullEasing}}:host([active])::before{box-shadow:${Gl};border-style:solid;border-color:${Gn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${he});border-width:${he}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ye});border-width:${ye}}: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 * ${Er});border-width:${Er}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Eo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Fr}}: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:${Wl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Vo},${Lo};transition-delay:${ht.fastOutSlowInMin},${ht.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Vo},${$i};transition-delay:${ht.fastOutSlowInMin},${ht.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}}`,iv=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 sv(){return b`<slot class=default-slot ${W("slottedDefaults")} ${N("defaultSlot")}></slot><span class=monogram ${N("monogram")}>${o=>o.initials}</span> ${iv}<slot name=badge></slot>`}const xc=sv(),wc=yc.compose({name:Wm,template:xc,styles:kc});wc.define(u.registry);const Sc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Cc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},av={circular:"circular",rounded:"rounded",square:"square"},lv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},cv=`${u.prefix}-badge`;var dv=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,Xr=(o,e,t,r)=>{for(var n=r>1?void 0:r?hv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&dv(e,t,n),n};class Tt extends x{constructor(){super(...arguments),this.appearance=Sc.filled,this.color=Cc.brand}}Xr([a],Tt.prototype,"appearance",2),Xr([a],Tt.prototype,"color",2),Xr([a],Tt.prototype,"shape",2),Xr([a],Tt.prototype,"size",2),et(Tt,Ke);const Bc=p.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${D};font-size:${O};line-height:${H};min-width:20px;height:20px;padding-inline:calc(${Z} + ${M});border-radius:${ce};border-color:${G};background-color:${Rn};color:${Ve};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:${B};border-color:inherit;border-radius:inherit}`,Pc=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:${eo};line-height:${Oo};padding-inline:calc(${M} + ${M})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${O};line-height:${H};padding-inline:calc(${Z} + ${M})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${O};line-height:${H};padding-inline:calc(${fe} + ${M})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,Ic=p.partial`:host([color='danger']){background-color:${Qn};color:${Ve}}:host([color='important']){background-color:${I};color:${C}}:host([color='informative']){background-color:${ma};color:${X}}:host([color='severe']){background-color:${ri};color:${Ve}}:host([color='subtle']){background-color:${C};color:${I}}:host([color='success']){background-color:${ti};color:${Ve}}:host([color='warning']){background-color:${Ea};color:${fa}}`,Nc=p.partial`:host([appearance='ghost']){color:${Co};background-color:initial}:host([appearance='ghost'][color='danger']){color:${Jn}}:host([appearance='ghost'][color='important']){color:${I}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${ii}}:host([appearance='ghost'][color='subtle']){color:${tt}}:host([appearance='ghost'][color='success']){color:${_a}}:host([appearance='ghost'][color='warning']){color:${_r}}`,uv=p.partial`:host([appearance='outline']){border-color:currentColor;color:${Co};background-color:initial}:host([appearance='outline'][color='danger']){color:${Jn}}:host([appearance='outline'][color='important']){color:${X};border-color:${ze}}:host([appearance='outline'][color='informative']){color:${X};border-color:${Jt}}:host([appearance='outline'][color='severe']){color:${ii}}:host([appearance='outline'][color='subtle']){color:${En}}:host([appearance='outline'][color='success']){color:${Ta}}:host([appearance='outline'][color='warning']){color:${_r}}`,pv=p.partial`:host([appearance='tint']){background-color:${Wn};color:${ga};border-color:${Un}}:host([appearance='tint'][color='danger']){background-color:${Yn};color:${Tr};border-color:${Zn}}:host([appearance='tint'][color='important']){background-color:${X};color:${C};border-color:${G}}:host([appearance='tint'][color='informative']){background-color:${ba};color:${X};border-color:${Jt}}:host([appearance='tint'][color='severe']){background-color:${oi};color:${Oa};border-color:${ni}}:host([appearance='tint'][color='subtle']){background-color:${C};color:${X};border-color:${Jt}}:host([appearance='tint'][color='success']){background-color:${ei};color:${Aa};border-color:${za}}:host([appearance='tint'][color='warning']){background-color:${Fa};color:${_r};border-color:${Da}}`,zc=p`:host([shape='square']){border-radius:${Ao}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Be}}${pv} ${uv} ${Nc} ${Ic} ${Pc} ${Bc} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Ac(o={}){return b`${He(o)}<slot>${ue(o.defaultContent)}</slot>${Je(o)}`}const Tc=Ac(),_c=Tt.compose({name:cv,template:Tc,styles:zc});_c.define(u.registry);var gv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,ke=(o,e,t,r)=>{for(var n=r>1?void 0:r?fv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&gv(e,t,n),n};class se extends x{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!==Wo.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 Wo.reset:{this.resetForm();break}case Wo.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!==Wo.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)}}}}se.formAssociated=!0,ke([a({mode:"boolean"})],se.prototype,"autofocus",2),ke([g],se.prototype,"defaultSlottedContent",2),ke([a({mode:"boolean"})],se.prototype,"disabled",2),ke([a({attribute:"disabled-focusable",mode:"boolean"})],se.prototype,"disabledFocusable",2),ke([a({attribute:"formaction"})],se.prototype,"formAction",2),ke([a({attribute:"form"})],se.prototype,"formAttribute",2),ke([a({attribute:"formenctype"})],se.prototype,"formEnctype",2),ke([a({attribute:"formmethod"})],se.prototype,"formMethod",2),ke([a({attribute:"formnovalidate",mode:"boolean"})],se.prototype,"formNoValidate",2),ke([a({attribute:"formtarget"})],se.prototype,"formTarget",2),ke([a],se.prototype,"name",2),ke([a],se.prototype,"type",2),ke([a],se.prototype,"value",2);var bv=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,Ur=(o,e,t,r)=>{for(var n=r>1?void 0:r?mv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bv(e,t,n),n};class je extends se{constructor(){super(...arguments),this.iconOnly=!1}}Ur([a],je.prototype,"appearance",2),Ur([a],je.prototype,"shape",2),Ur([a],je.prototype,"size",2),Ur([a({attribute:"icon-only",mode:"boolean"})],je.prototype,"iconOnly",2),et(je,Ke);function Ci(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${He(o)} <span class=content part=content><slot ${W("defaultSlottedContent")}></slot></span>${Je(o)}</template>`}const Oc=Ci(),Fc=je.compose({name:Tm,template:Oc,styles:ro});Fc.define(u.registry);const vv={circular:"circular",square:"square"},$v={medium:"medium",large:"large"},yv=`${u.prefix}-checkbox`;var kv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,ut=(o,e,t,r)=>{for(var n=r>1?void 0:r?xv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kv(e,t,n),n};class xe extends x{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}}xe.formAssociated=!0,ut([a({mode:"boolean"})],xe.prototype,"autofocus",2),ut([g],xe.prototype,"disabled",2),ut([a({attribute:"disabled",mode:"boolean"})],xe.prototype,"disabledAttribute",2),ut([a({attribute:"form"})],xe.prototype,"formAttribute",2),ut([a({attribute:"checked",mode:"boolean"})],xe.prototype,"initialChecked",2),ut([a({attribute:"value",mode:"fromView"})],xe.prototype,"initialValue",2),ut([a],xe.prototype,"name",2),ut([a({mode:"boolean"})],xe.prototype,"required",2);var wv=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,Bi=(o,e,t,r)=>{for(var n=r>1?void 0:r?Sv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&wv(e,t,n),n};class Uo extends xe{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)}}Bi([g],Uo.prototype,"indeterminate",2),Bi([a],Uo.prototype,"shape",2),Bi([a],Uo.prototype,"size",2);const Cv=P("active"),Bv=P("bad-input"),k=P("checked"),Pv=P("custom-error"),Iv=P("description"),be=P("disabled");P("error");const Nv=P("flip-block"),zv=P("focus-visible");P("has-message");const _t=P("indeterminate"),io=P("multiple"),Av=P("open"),Tv=P("pattern-mismatch"),_v=P("placeholder-shown"),L=P("pressed"),Ov=P("range-overflow"),Fv=P("range-underflow"),Ev=P("required"),Pi=P("selected"),Dv=P("step-mismatch"),Kr=P("submenu"),Mv=P("too-long"),Lv=P("too-short"),Hv=P("type-mismatch"),Vv=P("user-invalid"),Rv=P("valid"),jv=P("value-missing"),Ec=p`${w("inline-flex")} :host{--size:16px;background-color:${C};border-radius:${Be};border:${B} solid ${ze};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${rt}}:host(:active){border-color:${nt}}:host(${k}:hover){background-color:${Ct};border-color:${Sa}}:host(${k}:active){background-color:${Bt};border-color:${Kn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${he} solid ${G};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}.indeterminate-indicator,.checked-indicator{color:${tt};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(${k})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${k}),:host(${_t}){border-color:${Qe}}:host(${k}),:host(${_t}) .indeterminate-indicator{background-color:${ot}}:host(${_t}) .indeterminate-indicator{border-radius:${Be};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:${ce}}:host([disabled]),:host([disabled]${k}){background-color:${Ye};border-color:${pe}}:host([disabled]){cursor:unset}:host([disabled]${_t}) .indeterminate-indicator{background-color:${pe}}:host([disabled]${k}) .checked-indicator{color:${pe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${k}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${k}),:host(${_t}) .indeterminate-indicator{background-color:FieldText}:host(${k}:not([disabled]):hover),:host(${_t}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${_t}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${k}) .checked-indicator{color:GrayText}}`,qv=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>'),Gv=b.partial("<span class=indeterminate-indicator></span>");function Wv(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>${ue(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ue(o.indeterminateIndicator)}</slot></template>`}const Dc=Wv({checkedIndicator:qv,indeterminateIndicator:Gv}),Mc=Uo.compose({name:yv,template:Dc,styles:Ec});Mc.define(u.registry);const Xv=jo,Uv=qo,Kv=Go,Yv=`${u.prefix}-compound-button`;class Lc extends je{}const Hc=p`${ro} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${T};line-height:${F}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ce};line-height:100%;font-size:${O};font-weight:${_}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${wt}}:host(:active) ::slotted([slot='description']){color:${St}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ve}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ce}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${wo}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${So}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${z}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${fe}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Z}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Pe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${de};line-height:${ge}}:host([size='large']) ::slotted([slot='description']){font-size:${T}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function Qv(o={}){return b`<template ?disabled=${e=>e.disabled} tabindex=${e=>e.disabled?null:e.tabIndex??0}>${He(o)} <span class=content part=content><slot ${W("defaultSlottedContent")}></slot><slot name=description></slot></span>${Je(o)}</template>`}const Vc=Qv(),Rc=Lc.compose({name:Yv,template:Vc,styles:Hc});Rc.define(u.registry);const Zv={filled:"filled",ghost:"ghost"},Jv={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},e$={circular:"circular",rounded:"rounded"},t$={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},o$=`${u.prefix}-counter-badge`;var r$=Object.defineProperty,n$=Object.getOwnPropertyDescriptor,pt=(o,e,t,r)=>{for(var n=r>1?void 0:r?n$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&r$(e,t,n),n};class _e extends x{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}`}}pt([a],_e.prototype,"appearance",2),pt([a],_e.prototype,"color",2),pt([a],_e.prototype,"shape",2),pt([a],_e.prototype,"size",2),pt([a({converter:ie})],_e.prototype,"count",2),pt([a({attribute:"overflow-count",converter:ie})],_e.prototype,"overflowCount",2),pt([a({attribute:"show-zero",mode:"boolean"})],_e.prototype,"showZero",2),pt([a({mode:"boolean"})],_e.prototype,"dot",2),et(_e,Ke);const jc=p`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Be}}${Pc} ${Ic} ${Nc} ${Bc} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function i$(o={}){return Ac({defaultContent:b`${e=>e.setCount()}`})}const qc=i$(),Gc=_e.compose({name:o$,template:qc,styles:jc});Gc.define(u.registry);const gt={modal:"modal",nonModal:"non-modal",alert:"alert"};function Ii(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const s$=`${u.prefix}-dialog`;var a$=Object.defineProperty,l$=Object.getOwnPropertyDescriptor,Ko=(o,e,t,r)=>{for(var n=r>1?void 0:r?l$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&a$(e,t,n),n};class Ot extends x{constructor(){super(...arguments),this.type=gt.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(){q.enqueue(()=>{this.emitBeforeToggle(),this.type===gt.alert||this.type===gt.modal?this.dialog.showModal():this.type===gt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==gt.alert&&e.target===this.dialog&&this.hide(),!0}updateDialogAttributes(){this.dialog&&(this.type===gt.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this.type!==gt.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}}Ko([g],Ot.prototype,"dialog",2),Ko([a({attribute:"aria-describedby"})],Ot.prototype,"ariaDescribedby",2),Ko([a({attribute:"aria-labelledby"})],Ot.prototype,"ariaLabelledby",2),Ko([a({attribute:"aria-label"})],Ot.prototype,"ariaLabel",2),Ko([a],Ot.prototype,"type",2);const Wc=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()} ${N("dialog")}><slot></slot></dialog>`,Xc=p`@layer base{:host{--dialog-backdrop:${Nr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${C};border-radius:${li};border:none;box-shadow:${vi};color:${I};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:${Vr};transition-timing-function:${lt};opacity:0}::backdrop{transition-timing-function:${Rr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${at}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${B} solid ${G}}}}`,Uc=Ot.compose({name:s$,template:Wc,styles:Xc});Uc.define(u.registry);const c$=`${u.prefix}-dialog-body`;class Kc extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Ii(t)&&t.hide()}return!0}}const Yc=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>`,Qc=p`${w("grid")} :host{background:${C};box-sizing:border-box;gap:${ee};padding:${st} ${Dr};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${C};color:${I};column-gap:8px;display:flex;font-family:${v};font-size:${Pt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${Fo};margin-block-end:calc(${ee} * -1);margin-block-start:calc(${st} * -1);padding-block-end:${ee};padding-block-start:${st}}.content{box-sizing:border-box;color:${I};font-family:${v};font-size:${T};font-weight:${_};line-height:${F};min-height:32px}.actions{box-sizing:border-box;background:${C};display:flex;flex-direction:column;gap:${ee};inset-block-end:0;margin-block-end:calc(${st} * -1);padding-block-end:${st};padding-block-start:${Lr}}::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(${ee} * -1);padding-block-start:${ee}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Zc=Kc.compose({name:c$,template:Yc,styles:Qc});Zc.define(u.registry);const me={horizontal:"horizontal",vertical:"vertical"},so={separator:"separator",presentation:"presentation"},Ni=me,d$={center:"center",start:"start",end:"end"},h$={strong:"strong",brand:"brand",subtle:"subtle"},u$=`${u.prefix}-divider`;var p$=Object.defineProperty,g$=Object.getOwnPropertyDescriptor,Jc=(o,e,t,r)=>{for(var n=r>1?void 0:r?g$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&p$(e,t,n),n};class Yr extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??so.separator,this.role!==so.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Ni.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??so.separator}`),t===so.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==so.presentation?t??null:null,Nt(this.elementInternals,e,t,Ni)}}Jc([a],Yr.prototype,"role",2),Jc([a],Yr.prototype,"orientation",2);var f$=Object.defineProperty,b$=Object.getOwnPropertyDescriptor,zi=(o,e,t,r)=>{for(var n=r>1?void 0:r?b$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&f$(e,t,n),n};class Yo extends Yr{}zi([a({attribute:"align-content"})],Yo.prototype,"alignContent",2),zi([a],Yo.prototype,"appearance",2),zi([a({mode:"boolean"})],Yo.prototype,"inset",2);function m$(){return b`<slot></slot>`}const ed=m$(),td=p`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${Jt};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${B}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ce};font-family:${v};font-size:${O};font-weight:${_};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${B};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:${Ae}}:host([appearance='strong']) ::slotted(*){color:${I}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${Xn}}:host([appearance='brand']) ::slotted(*){color:${Co}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${xa}}:host([appearance='subtle']) ::slotted(*){color:${X}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,od=Yo.compose({name:u$,template:ed,styles:td});od.define(u.registry);const rd={start:"start",end:"end"},nd={small:"small",medium:"medium",large:"large",full:"full"},ao={nonModal:"non-modal",modal:"modal",inline:"inline"},v$=`${u.prefix}-drawer`;var $$=Object.defineProperty,y$=Object.getOwnPropertyDescriptor,lo=(o,e,t,r)=>{for(var n=r>1?void 0:r?y$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$$(e,t,n),n};class ft extends x{constructor(){super(...arguments),this.type=ao.modal,this.position=rd.start,this.size=nd.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===ao.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(){q.enqueue(()=>{this.emitBeforeToggle(),this.type===ao.inline||this.type===ao.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===ao.modal?"dialog":this.role)}}lo([a],ft.prototype,"type",2),lo([a({attribute:"aria-labelledby"})],ft.prototype,"ariaLabelledby",2),lo([a({attribute:"aria-describedby"})],ft.prototype,"ariaDescribedby",2),lo([a],ft.prototype,"position",2),lo([a({attribute:"size"})],ft.prototype,"size",2),lo([g],ft.prototype,"dialog",2);const id=p`${w("block")} :host{--dialog-backdrop:${Nr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${T};line-height:${F};font-family:${v};font-weight:${_};color:${I};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${G};border-inline-start-color:var(--drawer-separator,${G});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${vi};border:${B} solid ${G};background:${C}}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:${Vr};transition-timing-function:${lt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${at}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${at}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Vr};transition-timing-function:${lt};background:var(--dialog-backdrop,${Nr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Rr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function k$(){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()} ${N("dialog")}><slot></slot></dialog>`}const sd=k$(),ad=ft.compose({name:v$,template:sd,styles:id});ad.define(u.registry);const x$=`${u.prefix}-drawer-body`;class ld extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Ii(t,"-drawer")&&t.hide()}return!0}}const Ai=p.partial`font-family:${v};font-size:${T};line-height:${F};font-weight:${_};`,w$=p.partial`font-family:${v};font-size:${T};line-height:${F};font-weight:${D};`,S$=p.partial`font-family:${v};font-size:${T};line-height:${F};font-weight:${_o};`,cd=p.partial`font-family:${v};font-size:${de};line-height:${ge};font-weight:${_};`,Ti=p.partial`font-family:${v};font-size:${O};line-height:${H};font-weight:${_};`,C$=p.partial`font-family:${v};font-size:${O};line-height:${H};font-weight:${D};`,B$=p.partial`font-family:${v};font-size:${O};line-height:${H};font-weight:${_o};`,P$=p.partial`font-family:${v};font-size:${eo};line-height:${Oo};font-weight:${_};`,I$=p.partial`font-family:${v};font-size:${eo};line-height:${Oo};font-weight:${D};`,dd=p.partial`font-family:${v};font-size:${Pt};line-height:${Fo};font-weight:${D};`,N$=p.partial`font-family:${v};font-size:${de};line-height:${ge};font-weight:${D};`,z$=p.partial`font-family:${v};font-size:${de};line-height:${ge};font-weight:${_o};`,A$=p.partial`font-family:${v};font-size:${di};line-height:${fi};font-weight:${D};`,T$=p.partial`font-family:${v};font-size:${ci};line-height:${gi};font-weight:${D};`,_$=p.partial`font-family:${v};font-size:${To};line-height:${pi};font-weight:${D};`,O$=p.partial`font-family:${v};font-size:${hi};line-height:${bi};font-weight:${D};`,F$=p.partial`font-family:${v};font-size:${ui};line-height:${mi};font-weight:${D};`,hd=p`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Ul};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${dd}}.footer{display:flex;justify-content:flex-start;gap:${J}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function E$(){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 ud=E$(),pd=ld.compose({name:x$,template:ud,styles:hd});pd.define(u.registry);function D$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const gd={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},M$={small:"small",medium:"medium",large:"large"},Qr={combobox:"combobox",dropdown:"dropdown",select:"select"},L$=`${u.prefix}-dropdown`;function _i(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const H$=`${u.prefix}-listbox`;function Qo(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const V$=`${u.prefix}-option`,Ze={ltr:"ltr",rtl:"rtl"},Oi=o=>o.closest("[dir]")?.dir==="rtl"?Ze.rtl:Ze.ltr;function fd(o){return o.closest("[lang]")?.lang??"en"}let R$=0;function qe(o="id-"){const e=`${o}${R$++}`;return document.getElementById(e)?qe(o):e}const j$=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${N("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>`,bd=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 ${N("control")}>`,md=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 ${N("control")}>${o=>o.displayValue}</button>`;function q$(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 ${N("controlSlot")}></slot><slot name=indicator ${N("indicatorSlot")}>${ue(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const vd=q$({indicator:j$});var G$=Object.defineProperty,W$=Object.getOwnPropertyDescriptor,U=(o,e,t,r)=>{for(var n=r>1?void 0:r?W$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&G$(e,t,n),n};const V=class mo extends x{constructor(){super(),this.activeIndex=0,this.id=qe("dropdown-"),this.required=!1,this.type=Qr.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||Oi(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((n,i)=>{n.active=i===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||qe("input-"))}disabledChanged(e,t){this.listbox&&q.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(fd(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"),oo(t,()=>{this.options.forEach(n=>{n.disabled=n.disabledAttribute||this.disabled,n.name=this.name}),this.enabledOptions.filter(n=>n.defaultSelected).forEach((n,i)=>{n.selected=this.multiple||i===0}),this.setValidity()},{idleCallback:!0}),Gr){const n=qe("--dropdown-anchor-");this.style.setProperty("anchor-name",n),this.listbox.style.setProperty("position-anchor",n)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&q.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===Qr.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(Qo(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(fd(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===Qr.combobox){bd.render(this,this);return}md.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 n=this.getEnabledIndexInBounds(r);return n===0&&this.freeformOption?.hidden&&(n=this.getEnabledIndexInBounds(r+t)),this.activeIndex=n,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Qo(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 n=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:n,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;oo(this,()=>{const r=t.assignedElements().find(n=>_i(n));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(),q.enqueue(()=>{this.insertControl()})}disconnectedCallback(){mo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(mo.AnchorPositionFallbackObserver||(mo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:n,target:i})=>{if(_i(i)){if(r.bottom>window.innerHeight){$(i.elementInternals,"flip-block",!0);return}r.top<0&&$(i.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,mo.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}mo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};V.formAssociated=!0,U([is],V.prototype,"activeDescendant",1),U([g],V.prototype,"activeIndex",2),U([a({attribute:"aria-labelledby",mode:"fromView"})],V.prototype,"ariaLabelledBy",2),U([g],V.prototype,"control",2),U([a({mode:"boolean"})],V.prototype,"disabled",2),U([is],V.prototype,"displayValue",1),U([a({attribute:"id"})],V.prototype,"id",2),U([g],V.prototype,"indicator",2),U([g],V.prototype,"indicatorSlot",2),U([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),U([g],V.prototype,"listbox",2),U([a({mode:"boolean"})],V.prototype,"multiple",2),U([a],V.prototype,"name",2),U([g],V.prototype,"open",2),U([a],V.prototype,"placeholder",2),U([a({mode:"boolean"})],V.prototype,"required",2),U([a],V.prototype,"type",2),U([a({attribute:"value"})],V.prototype,"valueAttribute",2);let $d=V;var X$=Object.defineProperty,U$=Object.getOwnPropertyDescriptor,yd=(o,e,t,r)=>{for(var n=r>1?void 0:r?U$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&X$(e,t,n),n};class Zr extends $d{constructor(){super(...arguments),this.appearance=gd.outline}}yd([a],Zr.prototype,"appearance",2),yd([a],Zr.prototype,"size",2);const kd=p`${w("inline-flex")} :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${I};cursor:pointer}:host(${_v}){color:${Pr}}.control{appearance:none;background-color:${C};border-radius:${S};border:${B} solid ${G};box-shadow:inset 0 0 0 ${B} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${M};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${to} ${Re};position:relative;text-align:start;width:100%;z-index:1;${Ai}}:host([size='small']) .control{column-gap:${M};padding:${It} ${fe};${Ti}}:host([size='large']) .control{column-gap:${Pe};padding:${ee} ${J};${cd}}::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:${X};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:${B}}.control::after{background-color:${Qe};height:${he};scale:0 1;transition:scale ${Hr} ${lt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${zo};outline:${he} solid ${le}}:host(:where(${Av},:focus-within)) .control::after{scale:1 1;transition-duration:${Ho};transition-timing-function:${at}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${ze}}:host([appearance='transparent']) .control{--control-border-color:${zr};background-color:${ae};border-radius:${Ao}}:host([appearance='outline']) .control{--control-border-color:${Ae}}:host([appearance='outline']) .control:hover{--control-border-color:${it}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${rt}}:host([appearance='outline']) .control:hover::after{background-color:${Ct}}:host([appearance='outline']) .control:active{--control-border-color:${Zt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${nt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Bt}}:host([appearance='filled-darker']) .control{background-color:${Kt}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${G}}: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:${pe};background-color:${Ye};color:${z}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${F} + (${to} * 2) + ${B})}:host([size='small']){--margin-offset:calc(${H} + (${It} * 2) + ${B})}:host([size='large']){--margin-offset:calc(${ge} + (${ee} * 2) + ${B})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`,xd=Zr.compose({name:L$,template:vd,styles:kd});xd.define(u.registry);const wd={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"},K$=`${u.prefix}-field`;var Y$=Object.defineProperty,Q$=Object.getOwnPropertyDescriptor,Jr=(o,e,t,r)=>{for(var n=r>1?void 0:r?Q$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Y$(e,t,n),n};class co extends x{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(n=>n.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||qe("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])}}Jr([g],co.prototype,"labelSlot",2),Jr([g],co.prototype,"messageSlot",2),Jr([g],co.prototype,"slottedInputs",2),Jr([g],co.prototype,"input",2);var Z$=Object.defineProperty,J$=Object.getOwnPropertyDescriptor,ey=(o,e,t,r)=>{for(var n=r>1?void 0:r?J$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Z$(e,t,n),n};class Fi extends co{constructor(){super(...arguments),this.labelPosition=wd.above}}ey([a({attribute:"label-position"})],Fi.prototype,"labelPosition",2);const Sd=p`${w("inline-grid")} :host{color:${I};align-items:center;gap:0 ${J};justify-items:start}:has([slot='message']){color:${I};row-gap:${ee}}: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:${J}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Do}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Kl}}:host(${Ev}) ::slotted([slot='label'])::after{content:'*'/'';color:${Tr};margin-inline-start:${Z}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${v};font-size:${O};font-weight:${_};grid-area:message;line-height:${H};margin-block-start:${Do}}:host(${zv}:focus-within){border-radius:${S};outline:${he} solid ${le}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${T};font-weight:${_};grid-area:label;line-height:${F};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${O};line-height:${H}}:host([size='large']) ::slotted(label){font-size:${de};line-height:${ge}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${be}){cursor:default}::slotted([flag]){display:none}:host(${Bv}) ::slotted([flag='${we.badInput}']),:host(${Pv}) ::slotted([flag='${we.customError}']),:host(${Tv}) ::slotted([flag='${we.patternMismatch}']),:host(${Ov}) ::slotted([flag='${we.rangeOverflow}']),:host(${Fv}) ::slotted([flag='${we.rangeUnderflow}']),:host(${Dv}) ::slotted([flag='${we.stepMismatch}']),:host(${Mv}) ::slotted([flag='${we.tooLong}']),:host(${Lv}) ::slotted([flag='${we.tooShort}']),:host(${Hv}) ::slotted([flag='${we.typeMismatch}']),:host(${jv}) ::slotted([flag='${we.valueMissing}']),:host(${Rv}) ::slotted([flag='${we.valid}']){display:block}`,Cd=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:yo("[flag]")})}></slot></template>`,Bd=Fi.compose({name:K$,template:Cd,styles:Sd,shadowOptions:{delegatesFocus:!0}});Bd.define(u.registry);const ty={none:"none",center:"center",contain:"contain",cover:"cover"},oy={circular:"circular",rounded:"rounded",square:"square"},ry=`${u.prefix}-image`;var ny=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,Zo=(o,e,t,r)=>{for(var n=r>1?void 0:r?iy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ny(e,t,n),n};class Ft extends x{}Zo([a({mode:"boolean"})],Ft.prototype,"block",2),Zo([a({mode:"boolean"})],Ft.prototype,"bordered",2),Zo([a({mode:"boolean"})],Ft.prototype,"shadow",2),Zo([a],Ft.prototype,"fit",2),Zo([a],Ft.prototype,"shape",2);const Pd=b`<slot></slot>`,Id=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:${B} solid ${Jt}}: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:${Eo}}:host([shape='circular']) ::slotted(img){border-radius:${ce}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,Nd=Ft.compose({name:ry,template:Pd,styles:Id});Nd.define(u.registry);const sy={small:"small",medium:"medium",large:"large"},ay={regular:"regular",semibold:"semibold"},ly=`${u.prefix}-label`;var cy=Object.defineProperty,dy=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var n=r>1?void 0:r?dy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&cy(e,t,n),n};class ho extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}en([a],ho.prototype,"size",2),en([a],ho.prototype,"weight",2),en([a({mode:"boolean"})],ho.prototype,"disabled",2),en([a({mode:"boolean"})],ho.prototype,"required",2);const zd=p`${w("inline-flex")} :host{color:${I};cursor:pointer;font-family:${v};font-size:${T};font-weight:${_};line-height:${F};user-select:none}.asterisk{color:${Tr};margin-inline-start:${Z}}:host([size='small']){font-size:${O};line-height:${H}}:host([size='large']){font-size:${de};line-height:${ge}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${z}}`;function hy(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Ad=hy(),Td=ho.compose({name:ly,template:Ad,styles:zd});Td.define(u.registry);const uy={subtle:"subtle"},py=uc,gy=`${u.prefix}-link`;var fy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,_d=(o,e,t,r)=>{for(var n=r>1?void 0:r?by(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&fy(e,t,n),n};class tn extends Te{constructor(){super(...arguments),this.inline=!1}}_d([a],tn.prototype,"appearance",2),_d([a({mode:"boolean"})],tn.prototype,"inline",2);const Od=p`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${na};cursor:pointer;font-family:${v};font-size:${T};font-weight:${_};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${B};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${ia}}:host(:active){color:${sa}}:host([appearance='subtle']:hover){color:${la}}:host([appearance='subtle']:active){color:${ca}}}:host([appearance='subtle']){color:${aa}}: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 my(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Fd=my(),Ed=tn.compose({name:gy,template:Fd,styles:Od});Ed.define(u.registry);var vy=Object.defineProperty,$y=Object.getOwnPropertyDescriptor,Jo=(o,e,t,r)=>{for(var n=r>1?void 0:r?$y(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&vy(e,t,n),n};class Et extends x{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),q.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,n)=>{r.elementInternals.ariaPosInSet=`${n+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 Qo(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),oo(this,()=>{this.id=this.id||qe("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,n)=>{const i=n===e;r.selected=i,i&&(t=n)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){oo(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Qo(r));this.options=t}})}}Jo([g],Et.prototype,"defaultSlot",2),Jo([g],Et.prototype,"multiple",2),Jo([g],Et.prototype,"options",2),Jo([g],Et.prototype,"selectedIndex",2),Jo([g],Et.prototype,"dropdown",2);const Dd=p`${w("inline-flex")} :host{background-color:${C};border-radius:${S};border:${B} solid ${G};box-shadow:${Fr};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${Z};row-gap:${M};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]${Nv}){margin-block-start:revert;translate:0 -100%}}`;function Md(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${N("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Ld=Md(),Hd=Et.compose({name:H$,template:Ld,styles:Dd});Hd.define(u.registry);const yy=jo,ky=qo,xy=Go,wy=`${u.prefix}-menu-button`;class Vd extends je{}const Rd=Ci({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>')}),jd=Vd.compose({name:wy,template:Rd,styles:ro});jd.define(u.registry);const K={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},Sy={[K.menuitem]:"menuitem",[K.menuitemcheckbox]:"menuitemcheckbox",[K.menuitemradio]:"menuitemradio"};function Cy(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const By=`${u.prefix}-menu-item`;var Py=Object.defineProperty,Iy=Object.getOwnPropertyDescriptor,uo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Iy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Py(e,t,n),n};class Ge extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=K.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 K.menuitemcheckbox:this.checked=!this.checked;break;case K.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case K.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const 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??K.menuitem}checkedChanged(e,t){const r=this.role!==K.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??K.menuitem,this.elementInternals.ariaChecked=this.role!==K.menuitem?`${!!this.checked}`:null}}uo([a({mode:"boolean"})],Ge.prototype,"disabled",2),uo([a],Ge.prototype,"role",2),uo([a({mode:"boolean"})],Ge.prototype,"checked",2),uo([a({mode:"boolean"})],Ge.prototype,"hidden",2),uo([g],Ge.prototype,"slottedSubmenu",2),uo([g],Ge.prototype,"submenu",2),et(Ge,Ke);const qd=p`${w("grid")} :host{--indent:0;align-items:center;background:${C};border-radius:${S};color:${Ce};contain:layout;cursor:pointer;flex-shrink:0;font:${_} ${T}/${F} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Bo};color:${wt}}:host(:active){background-color:${Dn};color:${St}}:host(:active) ::slotted([slot='start']){color:${ha}}:host(${be}){background-color:${Ye};color:${z}}:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${S};outline:2px solid ${le}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${k})) .indicator,:host(:not(${k})) ::slotted([slot='indicator']),:host(:not(${Kr})) .submenu-glyph,:host(:not(${Kr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${X};font:${_} ${O}/${H} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Kr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Kr}){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(${be}),:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:GrayText}}`,Ny=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>'),zy=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 Ay(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>${ue(o.indicator)}</slot>${He(o)}<div part=content class=content><slot></slot></div>${Je(o)}<slot name=submenu-glyph>${ue(o.submenuGlyph)}</slot><slot name=submenu ${W({property:"slottedSubmenu"})}></slot></template>`}const Gd=Ay({indicator:Ny,submenuGlyph:zy}),Wd=Ge.compose({name:By,template:Gd,styles:qd});Wd.define(u.registry);const Ty=`${u.prefix}-menu-list`;var er={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Ei={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Di(o,e){return o.contains(e)}function _y(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})}function Oy(o,e,t){const r="forward",n="backward",i="block",s="inline";if(Fy(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?n: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?i:s,y=d?s:i,Y=d?c.endsWith("-rl")!==l:l,Ne=d&&l,vt={ArrowUp:{axis:y,dir:Ne?r:n},ArrowDown:{axis:y,dir:Ne?n:r},ArrowLeft:{axis:f,dir:Y?r:n},ArrowRight:{axis:f,dir:Y?n:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!vt||t&&vt.axis&&vt.axis!==t?null:vt.dir}function Fy(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 Ey=globalThis.__FOCUSGROUP_POLYFILL__,Dy=Ey.o;function Mi(){for(const o of Dy)o.takeRecords()}var on=class{#t;#e;#s=Ei.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#n=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(_y()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#k.bind(this),r)}disconnect(){this.#i(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(er.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Ei.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Ei.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(er.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.#i(),this.#m(o)),this.#e.flush?.()}#b(){this.#i();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(er.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(er.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(Oy(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.#n&&(!o.relatedTarget||!Di(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#i(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#n&&this.#i();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#k(o){if(!o.relatedTarget||!Di(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Di(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:n}of this.#e.items())r.tabIndex=n?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(er.AUTHOR_TABINDEX);this.#n||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#n=!0,Mi())}#i(){this.#n&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#n=!1,this.#l=null,this.#e.flush?.(),Mi())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#i(),Mi()}};class rn{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 My=Object.defineProperty,Ly=Object.getOwnPropertyDescriptor,Hy=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ly(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&My(e,t,n),n};const Li=class Qi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&Ji(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 i=r-1;i>=0;--i){const s=this.menuChildren[i],c=s.role;if(c===K.menuitemradio&&(s.checked=!1),c==="separator")break}const n=this.menuChildren.length-1;for(let i=r+1;i<=n;++i){const s=this.menuChildren[i],c=s.role;if(c===K.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),q.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!==K.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,n)=>{const i=Qi.elementIndent(n);return Math.max(r,i)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return Cy(e)||Ji(e)&&!!e.role&&e.role in Qi.focusableElementRoles}};Li.focusableElementRoles=K,Hy([g],Li.prototype,"items",2);let Xd=Li;class Ud extends Xd{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new rn(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new on(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Kd=p`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${C};border:1px solid ${G};border-radius:${S};box-shadow:${Fr};padding:4px;row-gap:2px}`;function Vy(){return b`<template focusgroup=menu slot=${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}><slot ${W("items")}></slot></template>`}const Yd=Vy(),Qd=Ud.compose({name:Ty,template:Yd,styles:Kd});Qd.define(u.registry);const Ry=`${u.prefix}-menu`;var jy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,bt=(o,e,t,r)=>{for(var n=r>1?void 0:r?qy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jy(e,t,n),n};class We extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ge&&(e.target.getAttribute("role")===K.menuitemcheckbox||e.target.getAttribute("role")===K.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(){q.enqueue(()=>{this._menuList.focus()})}focusTrigger(){q.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}bt([a({attribute:"open-on-hover",mode:"boolean"})],We.prototype,"openOnHover",2),bt([a({attribute:"open-on-context",mode:"boolean"})],We.prototype,"openOnContext",2),bt([a({attribute:"close-on-scroll",mode:"boolean"})],We.prototype,"closeOnScroll",2),bt([a({attribute:"persist-on-item-click",mode:"boolean"})],We.prototype,"persistOnItemClick",2),bt([a({mode:"boolean"})],We.prototype,"split",2),bt([g],We.prototype,"slottedMenuList",2),bt([g],We.prototype,"slottedTriggers",2),bt([g],We.prototype,"primaryAction",2);const Zd=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:${B} solid ${Ae};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:${B} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Gy(){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 ${N("primaryAction")}></slot><slot name=trigger ${W({property:"slottedTriggers",filter:yo()})}></slot><slot ${W({property:"slottedMenuList",filter:yo()})}></slot></template>`}const Jd=Gy(),eh=We.compose({name:Ry,template:Jd,styles:Zd});eh.define(u.registry);const Wy={multiline:"multiline",singleline:"singleline"},Xy={rounded:"rounded",square:"square"},Uy={success:"success",warning:"warning",error:"error",info:"info"},Ky=`${u.prefix}-message-bar`;var Yy=Object.defineProperty,Qy=Object.getOwnPropertyDescriptor,Hi=(o,e,t,r)=>{for(var n=r>1?void 0:r?Qy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Yy(e,t,n),n};class tr extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Hi([a],tr.prototype,"shape",2),Hi([a],tr.prototype,"layout",2),Hi([a],tr.prototype,"intent",2);const th=p`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${O};line-height:${H};width:100%;background:${Kt};border:1px solid ${Ae};padding-inline:${J};border-radius:${S};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ei};border-color:${Na}}:host([intent='warning']){background-color:${oi};border-color:${ni}}:host([intent='error']){background-color:${Yn};border-color:${Zn}}: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:${Mo};padding-inline:${J}}.content{grid-area:body;max-width:520px;padding-block:${Mo};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${X};margin-inline-end:${Pe}}: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:${Pe};gap:${Pe}}:host([layout='multiline']) .actions{margin-block-start:${Mo};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${ee}}::slotted(*){font-size:inherit}`;function Zy(){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 oh=Zy(),rh=tr.compose({name:Ky,template:oh,styles:th,shadowOptions:{mode:u.shadowRootMode}});rh.define(u.registry);var Jy=Object.defineProperty,ek=Object.getOwnPropertyDescriptor,ve=(o,e,t,r)=>{for(var n=r>1?void 0:r?ek(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Jy(e,t,n),n};class te extends x{constructor(){super(),this.active=!1,this.id=qe("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,q.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}}te.formAssociated=!0,ve([g],te.prototype,"active",2),ve([a({attribute:"current-selected",mode:"boolean"})],te.prototype,"currentSelected",2),ve([a({attribute:"selected",mode:"boolean"})],te.prototype,"defaultSelected",2),ve([g],te.prototype,"descriptionSlot",2),ve([g],te.prototype,"disabled",2),ve([a({attribute:"disabled",mode:"boolean"})],te.prototype,"disabledAttribute",2),ve([a({attribute:"form"})],te.prototype,"formAttribute",2),ve([a({mode:"boolean"})],te.prototype,"freeform",2),ve([a({attribute:"id"})],te.prototype,"id",2),ve([a({attribute:"value",mode:"fromView"})],te.prototype,"initialValue",2),ve([g],te.prototype,"multiple",2),ve([a],te.prototype,"name",2),ve([g],te.prototype,"start",2),ve([a({attribute:"text",mode:"fromView"})],te.prototype,"textAttribute",2);const nh=p`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${Ai} align-items:center;background-color:${C};border-radius:${S};box-sizing:border-box;color:${Ce};column-gap:${Z};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${fe};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Bo};color:${wt}}:host(:active){background-color:${Ir};color:${St}}:host(:disabled){background-color:${C};color:${z};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Pi}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${io}) .checkmark-16-filled,:host(:not(${io})) .checkmark-12-regular{display:none}:host(${io}) .checkmark-12-regular{background-color:${C};border-radius:${Be};border:${B} solid ${ze};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${io}${Pi}) .checkmark-12-regular{background-color:${ot};border-color:${Qe};fill:${tt}}:host(:disabled${io}) .checkmark-12-regular{border-color:${pe}}:host(:disabled${io}${Pi}) .checkmark-12-regular{background-color:${Ye}}:host(${Cv}){border:${he} solid ${le}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${fe}}}:host(${Iv}){column-gap:${fe};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${Ti}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,tk=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 ok(o={}){return b`<slot name=checked-indicator>${ue(o.checkedIndicator)}</slot>${He(o)}<div class=content part=content><slot ${W({property:"freeformOutputs",filter:yo("output")})}></slot></div><div class=description part=description><slot name=description ${W("descriptionSlot")}></slot></div>`}const ih=ok({checkedIndicator:tk}),sh=te.compose({name:V$,template:ih,styles:nh});sh.define(u.registry);const rk={medium:"medium",large:"large"},nk={rounded:"rounded",square:"square"},ah={success:"success",warning:"warning",error:"error"},ik=`${u.prefix}-progress-bar`;var sk=Object.defineProperty,ak=Object.getOwnPropertyDescriptor,or=(o,e,t,r)=>{for(var n=r>1?void 0:r?ak(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&sk(e,t,n),n};class Dt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Nt(this.elementInternals,e,t,ah)}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>))")||q.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,n=t-e,i=n===0?0:Math.fround((r-e)/n*100);this.indicator?.style.setProperty("width",`${i}%`)})}}or([g],Dt.prototype,"indicator",2),or([a({attribute:"validation-state"})],Dt.prototype,"validationState",2),or([a({converter:ie})],Dt.prototype,"value",2),or([a({converter:ie})],Dt.prototype,"min",2),or([a({converter:ie})],Dt.prototype,"max",2);var lk=Object.defineProperty,ck=Object.getOwnPropertyDescriptor,lh=(o,e,t,r)=>{for(var n=r>1?void 0:r?ck(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&lk(e,t,n),n};class nn extends Dt{}lh([a],nn.prototype,"thickness",2),lh([a],nn.prototype,"shape",2);const ch=p`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${Yt};border-radius:${S};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${Ao}}.indicator{background-color:${ot};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,${Yt} 0%,${ae} 50%,${Yt} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Qn}}:host([validation-state='warning']) .indicator{background-color:${ri}}:host([validation-state='success']) .indicator{background-color:${ti}}@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 dk(){return b`<div class=indicator part=indicator ${N("indicator")}></div>`}const dh=dk(),hh=nn.compose({name:ik,template:dh,styles:ch});hh.define(u.registry);const Vi=me,hk=`${u.prefix}-radio-group`;function uk(o,e="-radio"){return Zi(e)(o)}const pk=`${u.prefix}-radio`;var gk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,mt=(o,e,t,r)=>{for(var n=r>1?void 0:r?fk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&gk(e,t,n),n};class Oe extends x{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??Vi.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??Vi.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const n=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===n,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&n>=0)&&(this.checkedIndex=n);const i=t.map(s=>s.id).join(" ").trim();i&&this.setAttribute("aria-owns",i)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>uk(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((n,i)=>{const s=i===e;n.checked=s,s&&(r=i,t&&n.$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 i={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(i,s,c):c.elementInternals.setValidity({})})}}}Oe.formAssociated=!0,mt([g],Oe.prototype,"checkedIndex",2),mt([a({attribute:"disabled",mode:"boolean"})],Oe.prototype,"disabled",2),mt([a({attribute:"value",mode:"fromView"})],Oe.prototype,"initialValue",2),mt([a],Oe.prototype,"name",2),mt([a],Oe.prototype,"orientation",2),mt([g],Oe.prototype,"radios",2),mt([a({mode:"boolean"})],Oe.prototype,"required",2),mt([g],Oe.prototype,"slottedRadios",2);class uh extends Oe{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new rn(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new on(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const ph=p`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Lr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Ce}}::slotted(:active){color:${I}}::slotted(${be}){color:${z}}::slotted(${k}){color:${I}}:host([slot='input']){margin:${ee} ${Pe}}`;function bk(){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 gh=bk(),fh=uh.compose({name:hk,template:gh,styles:ph});fh.define(u.registry);class bh extends xe{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 mh=p`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${C};border:${B} solid ${ze};border-radius:${ce};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ce};color:${tt};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:${he} solid ${G};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}:host(:hover){border-color:${rt}}:host(${k}){border-color:${Qe}}:host(${k}) .checked-indicator{background-color:${ot}}:host(${k}:hover) .checked-indicator{background-color:${Ct}}:host(:active){border-color:${nt}}:host(${k}:active) .checked-indicator{background-color:${Bt}}:host(:focus-visible){outline:none}:host(${be}){background-color:${Ye};border-color:${pe}}:host(${k}${be}) .checked-indicator{background-color:${pe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${be}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${k}) .checked-indicator{background-color:FieldText}:host(${k}:not(${be}):hover) .checked-indicator{background-color:Highlight}:host(${be}){border-color:GrayText;color:GrayText}:host(${be}${k}) .checked-indicator{background-color:GrayText}}`,mk=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function vk(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>${ue(o.checkedIndicator)}</slot></template>`}const vh=vk({checkedIndicator:mk}),$h=bh.compose({name:pk,template:vh,styles:mh});$h.define(u.registry);const $k={neutral:"neutral",brand:"brand",marigold:"marigold"},yk={small:"small",medium:"medium",large:"large"},kk=`${u.prefix}-rating-display`;var xk=Object.defineProperty,wk=Object.getOwnPropertyDescriptor,rr=(o,e,t,r)=>{for(var n=r>1?void 0:r?wk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&xk(e,t,n),n};const Sk=CSS.supports("width: attr(value type(<number>))"),po={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function sn(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Mt extends x{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(po.maskImageFilled),this.display.style.removeProperty(po.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,n=`
2
+ <svg
3
+ viewBox="${r}"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ >${t}</svg>`,i=`
6
+ <svg
7
+ viewBox="${r}"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ fill="none"
10
+ stroke="black"
11
+ stroke-width="2"
12
+ >${t}</svg>`;this.display.style.setProperty(po.maskImageFilled,`url(${sn(n)})`),this.display.style.setProperty(po.maskImageOutlined,`url(${sn(i)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||Sk)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(po[e]):this.display.style.setProperty(po[e],`${t}`)})}}rr([g],Mt.prototype,"iconSlot",2),rr([a({converter:ie})],Mt.prototype,"count",2),rr([a({attribute:"icon-view-box"})],Mt.prototype,"iconViewBox",2),rr([a({converter:ie})],Mt.prototype,"max",2),rr([a({converter:ie})],Mt.prototype,"value",2);var Ck=Object.defineProperty,Bk=Object.getOwnPropertyDescriptor,Ri=(o,e,t,r)=>{for(var n=r>1?void 0:r?Bk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ck(e,t,n),n};class nr extends Mt{constructor(){super(...arguments),this.compact=!1}}Ri([a],nr.prototype,"color",2),Ri([a],nr.prototype,"size",2),Ri([a({mode:"boolean"})],nr.prototype,"compact",2);const yh='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',Pk=`
13
+ <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${yh}</svg>
14
+ `,Ik=`
15
+ <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
16
+ fill="none" stroke="black" stroke-width="2"
17
+ >${yh}</svg>
18
+ `;function Nk(){return b`<div ${N("display")} class=display aria-hidden=true></div><slot name=icon ${N("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 kh=Nk(),xh=p`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${Ma};--_icon-color-empty:${si};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${sn(Pk)});--_mask-image-outlined:url(${sn(Ik)});--_mask-position-x:left;align-items:center;color:${I};font-family:${v};font-size:${O};line-height:${H};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:${T};line-height:${F}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${I};--_icon-color-empty:${Yt}}:host([color='brand']){--_icon-color-value:${Co};--_icon-color-empty:${Wn}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${M});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${M}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Z};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${M}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${fe}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Z}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${M}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${fe}}@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)}}`,wh=nr.compose({name:kk,template:kh,styles:xh});wh.define(u.registry);const zk={small:"small",medium:"medium"},Sh=me,Ch={singleValue:"single-value"},Ak=`${u.prefix}-slider`;function Bh(o,e,t){return Math.min(Math.max(t,o),e)}const ji={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 Ph(o,e,t,r){let n=Bh(0,1,(o-e)/(t-e));return r===Ze.rtl&&(n=1-n),n}var Tk=Object.defineProperty,_k=Object.getOwnPropertyDescriptor,oe=(o,e,t,r)=>{for(var n=r>1?void 0:r?_k(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Tk(e,t,n),n};class R extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Ze.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=Ch.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,n=this.orientation===me.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`},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 n=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const i=this.orientation===me.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-n/2;this.value=`${this.calculateNewValue(i)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Sh.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=Bh(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??me.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=Oi(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!==Ze.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!==Ze.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!==Ze.rtl&&this.orientation!==me.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==Ze.rtl&&this.orientation!==me.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=Ph(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===me.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=Ph(e,this.orientation===me.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===me.vertical?this.trackHeight:this.trackWidth,this.orientation===me.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),n=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=n>=Number(this.stepAsNumber)/2?t-n+Number(this.stepAsNumber):t-n,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){q.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}R.formAssociated=!0,oe([a],R.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),oe([g],R.prototype,"direction",2),oe([g],R.prototype,"isDragging",2),oe([g],R.prototype,"position",2),oe([g],R.prototype,"trackWidth",2),oe([g],R.prototype,"trackMinWidth",2),oe([g],R.prototype,"trackHeight",2),oe([g],R.prototype,"trackLeft",2),oe([g],R.prototype,"trackMinHeight",2),oe([g],R.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],R.prototype,"disabled",2),oe([a({converter:ji})],R.prototype,"min",2),oe([a({converter:ji})],R.prototype,"max",2),oe([a({converter:ji})],R.prototype,"step",2),oe([a],R.prototype,"orientation",2),oe([a],R.prototype,"mode",2);const Ih=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:${ot};--track-color:${ze};--slider-direction:90deg;--border-radius:${S};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Ct}}:host(:active){--rail-color:${Bt}}:host(:disabled){--rail-color:${z};--track-color:${Ye}}: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:${Be}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${le};outline:1px solid ${zo}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ce};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ae};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 Ok(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${N("track")} part=track-container class=track style=${e=>e.position}></div><div ${N("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ue(o.thumb)}</slot></div></template>`}const Nh=Ok({thumb:'<div class="thumb"></div>'}),zh=R.compose({name:Ak,template:Nh,styles:Ih});zh.define(u.registry);const Fk={primary:"primary",inverted:"inverted"},Ek={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},Dk=`${u.prefix}-spinner`;class Ah extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Mk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Th=(o,e,t,r)=>{for(var n=r>1?void 0:r?Lk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Mk(e,t,n),n};class an extends Ah{}Th([a],an.prototype,"size",2),Th([a],an.prototype,"appearance",2);const _h=p`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${ye};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${he};--size:20px}:host([size='extra-small']){--indicatorSize:${he};--size:24px}:host([size='small']){--indicatorSize:${he};--size:28px}:host([size='large']){--indicatorSize:${ye};--size:36px}:host([size='extra-large']){--indicatorSize:${ye};--size:40px}:host([size='huge']){--indicatorSize:${Er};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Ro}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Un};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:${Xn};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:${wa}}.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}}`,Oh=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>`,Fh=an.compose({name:Dk,template:Oh,styles:_h});Fh.define(u.registry);const Hk={above:"above",after:"after",before:"before"},Vk=`${u.prefix}-switch`;class Eh extends xe{constructor(){super(),this.elementInternals.role="switch"}}function Rk(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>${ue(o.switch)}</slot></template>`}const Dh=Rk({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Mh=p`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${M};width:40px;height:20px;background-color:${ae};border:1px solid ${ze};border-radius:${ce}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${rt}}:host(:active){border-color:${nt}}:host(:disabled),:host([readonly]){border:1px solid ${pe};background-color:none;pointer:default}:host(${k}){background:${ot};border-color:${ot}}:host(${k}:hover){background:${Ct};border-color:${Ct}}:host(${k}:active){background:${Bt};border-color:${Bt}}:host(${k}:disabled){background:${Ye};border-color:${pe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Ho};transition-timing-function:${Ro};transition-property:margin-inline-start}:host(${k}) .checked-indicator{background-color:${tt};margin-inline-start:calc(100% - 14px)}:host(${k}:hover) .checked-indicator{background:${ua}}:host(${k}:active) .checked-indicator{background:${pa}}:host(:hover) .checked-indicator{background-color:${ta}}:host(:active) .checked-indicator{background-color:${oa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${z}}:host(${k}:disabled) .checked-indicator{background:${z}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${G};outline:${he} solid ${G};outline-offset:1px;box-shadow:${Eo},0 0 0 2px ${le}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${k}),:host(${k}:active),:host(${k}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${k}) .checked-indicator,:host(${k}:hover) .checked-indicator,:host(${k}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${k}:disabled) .checked-indicator{background-color:GrayText}}`,Lh=Eh.compose({name:Vk,template:Dh,styles:Mh});Lh.define(u.registry);function ln(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const jk=`${u.prefix}-tab`;var qk=Object.defineProperty,Gk=Object.getOwnPropertyDescriptor,Wk=(o,e,t,r)=>{for(var n=r>1?void 0:r?Gk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&qk(e,t,n),n};class cn extends x{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}}Wk([a({mode:"boolean"})],cn.prototype,"disabled",2),et(cn,Ke);function Xk(o={}){return b`<template slot=tab role=tab>${He(o)} <span class=tab-content><slot></slot></span>${Je(o)}</template>`}const Hh=Xk({}),Vh=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:${T};color:${Ce};fill:currentcolor;grid-row:1;padding:${J} ${Re};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${I};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${F};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${Qe};border-radius:${ce};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${it};border-radius:${ce};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:${it}}}:host([aria-selected='true'][disabled])::after{background-color:${z}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${z};color:${z};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Be};box-shadow:0 0 0 3px ${le};outline:1px solid ${zo}}: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}}`,Rh=cn.compose({name:jk,template:Hh,styles:Vh});Rh.define(u.registry);const jh={subtle:"subtle",transparent:"transparent"},Uk={small:"small",medium:"medium",large:"large"},go=me,Kk=`${u.prefix}-tablist`;var Yk=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var n=r>1?void 0:r?Qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Yk(e,t,n),n};class Lt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=go.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??go.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??go.horizontal,Nt(this.elementInternals,e,t,go)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>ln(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(s=>!!s.querySelector("[slot='start']")),n=this.getRootNode();let i="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=qe("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!i&&!s.disabled&&(i=s.id);const c=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",c),s.setAttribute("aria-selected",c.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===go.vertical),e){const h=s.getAttribute("aria-controls")??"",d=n.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):i&&(this.activeid=i))}handleFocusIn(e){const t=e.target;!ln(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),n=e?r.getElementById(e):null,i=r.getElementById(t);if(!ln(i)||!this.contains(i))return;if(n){n.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(n);c&&(c.hidden=!0)}i.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(i);s&&(s.hidden=!1),this.activetab=i,this.change()}connectedCallback(){super.connectedCallback(),oo(this,()=>{this.setTabs()},{shallow:!0})}}ir([a({mode:"boolean"})],Lt.prototype,"disabled",2),ir([a],Lt.prototype,"orientation",2),ir([a],Lt.prototype,"activeid",2),ir([g],Lt.prototype,"slottedTabs",2),ir([g],Lt.prototype,"tabs",2);var Zk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,qh=(o,e,t,r)=>{for(var n=r>1?void 0:r?Jk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Zk(e,t,n),n};class dn extends Lt{constructor(){super(...arguments),this.appearance=jh.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new rn(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new on(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}qh([a],dn.prototype,"appearance",2),qh([a],dn.prototype,"size",2);const Gh=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${W("slottedTabs")}></slot></template>`,Wh=p`${w("flex")} :host{--tabPaddingInline:${Re};--tabPaddingBlock:${J};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ce};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${to};--tabPaddingInline:${fe}}:host([size='large']){--tabPaddingBlock:${Lr};--tabPaddingInline:${Re}}:host([orientation='vertical']){--tabPaddingBlock:${ee};--tabIndicatorInsetBlock:${ee};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Do};--tabIndicatorInsetBlock:${to}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ee};--tabIndicatorInsetBlock:${Mo}}::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:${ye};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${ye};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${ye};border-radius:${ce};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${z}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${ye};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:${ye};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${T};line-height:${F}}:host([size='large']) ::slotted([slot='tab']){font-size:${de};line-height:${ge}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${z}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${z}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Po};color:${Fn};fill:${da}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${Qt};fill:${Qt};color:${I}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${Qe};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:${Ql};transition-timing-function:${yi};z-index:3;border-radius:${ce};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${ye}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${ye};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:${z}}}`,Xh=dn.compose({name:Kk,template:Gh,styles:Wh});Xh.define(u.registry);const e0={small:"small",medium:"medium",large:"large"},hn={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},t0=[hn.filledLighter,hn.filledDarker],o0={on:"on",off:"off"},sr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},r0=`${u.prefix}-textarea`,n0=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var i0=Object.defineProperty,s0=Object.getOwnPropertyDescriptor,re=(o,e,t,r)=>{for(var n=r>1?void 0:r?s0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&i0(e,t,n),n};class j extends x{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=sr.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(n0),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){Nt(this.elementInternals,e,t,sr,"resize-"),$(this.elementInternals,"resize",fc(sr,t)&&t!==sr.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")}}j.formAssociated=!0,re([g],j.prototype,"controlEl",2),re([g],j.prototype,"defaultSlottedNodes",2),re([g],j.prototype,"labelSlottedNodes",2),re([a],j.prototype,"autocomplete",2),re([a({attribute:"auto-resize",mode:"boolean"})],j.prototype,"autoResize",2),re([a({attribute:"dirname"})],j.prototype,"dirName",2),re([a({mode:"boolean"})],j.prototype,"disabled",2),re([a({attribute:"display-shadow",mode:"boolean"})],j.prototype,"displayShadow",2),re([a({attribute:"form"})],j.prototype,"initialForm",2),re([a({attribute:"maxlength",converter:ie})],j.prototype,"maxLength",2),re([a({attribute:"minlength",converter:ie})],j.prototype,"minLength",2),re([a],j.prototype,"name",2),re([a],j.prototype,"placeholder",2),re([a({attribute:"readonly",mode:"boolean"})],j.prototype,"readOnly",2),re([a({mode:"boolean"})],j.prototype,"required",2),re([a({mode:"fromView"})],j.prototype,"resize",2),re([a({mode:"boolean"})],j.prototype,"spellcheck",2);var a0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,qi=(o,e,t,r)=>{for(var n=r>1?void 0:r?l0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&a0(e,t,n),n};class ar extends j{constructor(){super(...arguments),this.appearance=hn.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}qi([a({mode:"fromView"})],ar.prototype,"appearance",2),qi([a({mode:"boolean"})],ar.prototype,"block",2),qi([a],ar.prototype,"size",2);const Uh=p`${w("inline-block")} :host{--font-size:${T};--line-height:${F};--padding-inline:${Re};--padding-block:${to};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${B};--control-padding-inline:${M};--color:${I};--background-color:${C};--border-color:${Ae};--border-block-end-color:${ze};--placeholder-color:${Pr};--focus-indicator-color:${Qe};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${it};--border-block-end-color:${rt}}:host(:active){--border-color:${Zt};--border-block-end-color:${nt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${O};--line-height:${H};--min-block-size:40px;--padding-block:${It};--padding-inline:${fe};--control-padding-inline:${M}}:host([size='large']){--font-size:${de};--line-height:${ge};--min-block-size:64px;--padding-block:${ee};--padding-inline:${J};--control-padding-inline:${fe}}: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:${Kt};--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:${Or}}:host(${Vv}){--border-color:${Ar};--border-block-end-color:${Ar}}:host(:disabled){--color:${z};--background-color:${ae};--border-color:${pe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${z};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${S};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${at};transition-duration:${Hr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ho};transition-delay:${lt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${It};padding-inline-end:${Z}}: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:${tt};background-color:${Mn}}@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 c0(){return b`<template><label ${N("labelEl")} for=control part=label><slot name=label ${W("labelSlottedNodes")}></slot></label><div class=root part=root ${N("rootEl")}><textarea ${N("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 Kh=c0(),Yh=ar.compose({name:r0,template:Kh,styles:Uh,shadowOptions:{delegatesFocus:!0}});Yh.define(u.registry);const d0={small:"small",medium:"medium",large:"large"},h0={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Qh={email:"email",password:"password",tel:"tel",text:"text",url:"url"},u0=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],p0=`${u.prefix}-text-input`;var g0=Object.defineProperty,f0=Object.getOwnPropertyDescriptor,E=(o,e,t,r)=>{for(var n=r>1?void 0:r?f0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&g0(e,t,n),n};class A extends x{constructor(){super(...arguments),this.type=Qh.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){q.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){q.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(n=>n.getAttribute("type")==="submit");if(t){t.click();return}e.filter(n=>u0.includes(n.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)}}}A.formAssociated=!0,E([a],A.prototype,"autocomplete",2),E([a({mode:"boolean"})],A.prototype,"autofocus",2),E([a({attribute:"current-value"})],A.prototype,"currentValue",2),E([g],A.prototype,"defaultSlottedNodes",2),E([a],A.prototype,"dirname",2),E([a({mode:"boolean"})],A.prototype,"disabled",2),E([a({attribute:"form"})],A.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],A.prototype,"initialValue",2),E([a],A.prototype,"list",2),E([a({converter:ie})],A.prototype,"maxlength",2),E([a({converter:ie})],A.prototype,"minlength",2),E([a({mode:"boolean"})],A.prototype,"multiple",2),E([a],A.prototype,"name",2),E([a],A.prototype,"pattern",2),E([a],A.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],A.prototype,"readOnly",2),E([a({mode:"boolean"})],A.prototype,"required",2),E([a({converter:ie})],A.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],A.prototype,"spellcheck",2),E([a],A.prototype,"type",2),E([g],A.prototype,"control",2),E([g],A.prototype,"controlLabel",2);var b0=Object.defineProperty,m0=Object.getOwnPropertyDescriptor,Zh=(o,e,t,r)=>{for(var n=r>1?void 0:r?m0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&b0(e,t,n),n};class lr extends A{}Zh([a],lr.prototype,"appearance",2),Zh([a({attribute:"control-size"})],lr.prototype,"controlSize",2),et(lr,Ke);const Jh=p`${w("block")} :host{font-family:${v};font-size:${T};font-weight:${_};line-height:${F};max-width:400px}.label{display:flex;color:${I};padding-bottom:${It};flex-shrink:0;padding-inline-end:${Z}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${B} solid ${Ae};border-bottom-color:${ze};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${M};padding:0 ${Re};position:relative;width:100%}:has(.control:user-invalid){border-color:${Ar}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${Qe};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Hr};transition-delay:${at}}.control{width:100%;height:100%;box-sizing:border-box;color:${I};border-radius:${S};background:${ae};font-family:${v};font-weight:${_};font-size:${T};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Pr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${Pt}}:host ::slotted([slot='start']){padding-right:${M}}:host ::slotted([slot='end']){padding-left:${M};gap:${Z}}:host(:hover) .root{border-color:${it};border-bottom-color:${rt}}:host(:active) .root{border-color:${Zt}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ho};transition-delay:${lt}}:host(:focus-within:active) .root:after{border-bottom-color:${Kn}}:host([appearance='outline']:focus-within) .root{border:${B} solid ${Ae}}:host(:focus-within) .control{color:${I}}:host([disabled]) .root{background:${ae};border:${B} solid ${pe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${z}}::selection{color:${tt};background-color:${Mn}}:host([control-size='small']) .control{font-size:${O};font-weight:${_};line-height:${H}}:host([control-size='small']) .root{height:24px;gap:${M};padding:0 ${fe}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${de}}:host([control-size='large']) .control{font-size:${de};font-weight:${_};line-height:${ge}}:host([control-size='large']) .root{height:40px;gap:${Pe};padding:0 ${J}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${To}}:host([appearance='underline']) .root{background:${ae};border:0;border-radius:0;border-bottom:${B} solid ${ze}}:host([appearance='underline']:hover) .root{border-bottom-color:${rt}}:host([appearance='underline']:active) .root{border-bottom-color:${nt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${nt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${pe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${B} solid ${G};box-shadow:${Or}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${Kt}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${zr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${zr};background:${Kt}}`;function v0(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 ${N("controlLabel")}><slot ${W("defaultSlottedNodes")}></slot></label><div class=root part=root>${He(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} ?autofocus=${e=>e.autofocus} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.initialValue} ${N("control")}> ${Je(o)}</div></template>`}const eu=v0(),tu=lr.compose({name:p0,template:eu,styles:Jh,shadowOptions:{delegatesFocus:!0}});tu.define(u.registry);const $0={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},y0={base:"base",numeric:"numeric",monospace:"monospace"},k0={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},x0={start:"start",end:"end",center:"center",justify:"justify"},w0=`${u.prefix}-text`;var S0=Object.defineProperty,C0=Object.getOwnPropertyDescriptor,Xe=(o,e,t,r)=>{for(var n=r>1?void 0:r?C0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&S0(e,t,n),n};class Ie extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Xe([a({mode:"boolean"})],Ie.prototype,"nowrap",2),Xe([a({mode:"boolean"})],Ie.prototype,"truncate",2),Xe([a({mode:"boolean"})],Ie.prototype,"italic",2),Xe([a({mode:"boolean"})],Ie.prototype,"underline",2),Xe([a({mode:"boolean"})],Ie.prototype,"strikethrough",2),Xe([a({mode:"boolean"})],Ie.prototype,"block",2),Xe([a],Ie.prototype,"size",2),Xe([a],Ie.prototype,"font",2),Xe([a],Ie.prototype,"weight",2),Xe([a],Ie.prototype,"align",2);const ou=p`${w("inline")} :host{font-family:${v};font-size:${T};line-height:${F};font-weight:${_};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${eo};line-height:${Oo}}:host([size='200']){font-size:${O};line-height:${H}}:host([size='400']){font-size:${de};line-height:${ge}}:host([size='500']){font-size:${Pt};line-height:${Fo}}:host([size='600']){font-size:${To};line-height:${pi}}:host([size='700']){font-size:${ci};line-height:${gi}}:host([size='800']){font-size:${di};line-height:${fi}}:host([size='900']){font-size:${hi};line-height:${bi}}:host([size='1000']){font-size:${ui};line-height:${mi}}:host([font='monospace']){font-family:${Rl}}:host([font='numeric']){font-family:${jl}}:host([weight='medium']){font-weight:${ql}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${_o}}: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}`,ru=b`<slot></slot>`,nu=Ie.compose({name:w0,template:ru,styles:ou});nu.define(u.registry);const B0=jo,P0=qo,I0=Go,N0=`${u.prefix}-toggle-button`;var z0=Object.defineProperty,A0=Object.getOwnPropertyDescriptor,iu=(o,e,t,r)=>{for(var n=r>1?void 0:r?A0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&z0(e,t,n),n};class un extends je{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}iu([a({mode:"boolean"})],un.prototype,"pressed",2),iu([a({mode:"boolean"})],un.prototype,"mixed",2);const su=p`${ro} :host(${L}){border-color:${Ae};background-color:${Dn};color:${I};border-width:${B}}:host(${L}:hover){border-color:${it};background-color:${Bo}}:host(${L}:active){border-color:${Zt};background-color:${Ir}}:host(${L}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${L}[appearance='primary']){background-color:${ka};color:${Ve}}:host(${L}[appearance='primary']:hover){background-color:${jn}}:host(${L}[appearance='primary']:active){background-color:${qn}}:host(${L}[appearance='subtle']){border-color:transparent;background-color:${Hn};color:${xo}}:host(${L}[appearance='subtle']:hover){background-color:${Po};color:${wt}}:host(${L}[appearance='subtle']:active){background-color:${Qt};color:${St}}:host(${L}[appearance='outline']),:host(${L}[appearance='transparent']){background-color:${Vn}}:host(${L}[appearance='outline']:hover),:host(${L}[appearance='transparent']:hover){background-color:${Io}}:host(${L}[appearance='outline']:active),:host(${L}[appearance='transparent']:active){background-color:${No}}:host(${L}[appearance='transparent']){border-color:transparent;color:${ea}}:host(${L}[appearance='transparent']:hover){color:${wo}}:host(${L}[appearance='transparent']:active){color:${So}}@media (forced-colors:active){:host(${L}),:host( ${L}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem;color:SelectedItemText}}`,au=Ci(),lu=un.compose({name:N0,template:au,styles:su});lu.define(u.registry);const Se={"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"},T0=`${u.prefix}-tooltip`;var _0=Object.defineProperty,O0=Object.getOwnPropertyDescriptor,pn=(o,e,t,r)=>{for(var n=r>1?void 0:r?O0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_0(e,t,n),n};class fo extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=qe("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){Fm||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}q.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 n={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},i=n[t]??n.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
19
+ #${this.anchor} {
20
+ anchor-name: ${e};
21
+ }
22
+ #${this.id} {
23
+ inset: unset;
24
+ position-anchor: ${e};
25
+ position: absolute;
26
+ ${i}
27
+ ${c}
28
+ }
29
+ `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}pn([a],fo.prototype,"id",2),pn([a({converter:ie})],fo.prototype,"delay",2),pn([a],fo.prototype,"positioning",2),pn([a],fo.prototype,"anchor",2);const cu=p`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${It};--inline-offset:${Z};background:${C};border-radius:${S};border:1px solid ${G};box-sizing:border-box;color:${I};display:inline-flex;filter:drop-shadow(0 0 2px ${Ca}) drop-shadow(0 4px 8px ${Ba});font-family:${v};font-size:${O};inset:unset;line-height:${H};margin:unset;max-width:240px;overflow:visible;padding:4px ${Re} 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:${Se["above-start"]}}:host([positioning='above']){--position-area:${Se.above}}:host([positioning='above-end']){--position-area:${Se["above-end"]}}:host([positioning='below-start']){--position-area:${Se["below-start"]}}:host([positioning='below']){--position-area:${Se.below}}:host([positioning='below-end']){--position-area:${Se["below-end"]}}:host([positioning='before-top']){--position-area:${Se["before-top"]}}:host([positioning='before']){--position-area:${Se.before}}:host([positioning='before-bottom']){--position-area:${Se["before-bottom"]}}:host([positioning='after-top']){--position-area:${Se["after-top"]}}:host([positioning='after']){--position-area:${Se.after}}:host([positioning='after-bottom']){--position-area:${Se["after-bottom"]}}`,du=b`<template popover aria-hidden=true><slot></slot></template>`,hu=fo.compose({name:T0,template:du,styles:cu});hu.define(u.registry);const F0=`${u.prefix}-tree`,uu={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},pu={small:"small",medium:"medium"};function Fe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const E0=`${u.prefix}-tree-item`;var D0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,Gi=(o,e,t,r)=>{for(var n=r>1?void 0:r?M0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&D0(e,t,n),n};class cr extends x{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(!Fe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Fe(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(!Fe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Fe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Fe(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=>Fe(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const n of r)e.push(n),t(n.childTreeItems)};return t(this.childTreeItems),e}}Gi([g],cr.prototype,"currentSelected",2),Gi([g],cr.prototype,"defaultSlot",2),Gi([g],cr.prototype,"childTreeItems",2);var L0=Object.defineProperty,H0=Object.getOwnPropertyDescriptor,gu=(o,e,t,r)=>{for(var n=r>1?void 0:r?H0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&L0(e,t,n),n};class gn extends cr{constructor(){super(...arguments),this.size=pu.small,this.appearance=uu.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new rn(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new on(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()}}gu([a],gn.prototype,"size",2),gu([a],gn.prototype,"appearance",2);const fu=p`${w("block")} :host{outline:none}`,bu=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 ${N("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,mu=gn.compose({name:F0,template:bu,styles:fu});mu.define(u.registry);var V0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,bo=(o,e,t,r)=>{for(var n=r>1?void 0:r?R0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&V0(e,t,n),n};class Ht extends x{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,n=>Fe(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const n=r.currentNode;t?n.removeAttribute("focusgroup"):(n.selected&&(n.selected=!1),n.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=>Fe(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 Fe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Fe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Fe(e))}}bo([g],Ht.prototype,"itemSlot",2),bo([a({mode:"boolean"})],Ht.prototype,"expanded",2),bo([a({mode:"boolean"})],Ht.prototype,"selected",2),bo([a({mode:"boolean"})],Ht.prototype,"empty",2),bo([a({attribute:"data-indent"})],Ht.prototype,"dataIndent",2),bo([g],Ht.prototype,"childTreeItems",2);var j0=Object.defineProperty,q0=Object.getOwnPropertyDescriptor,vu=(o,e,t,r)=>{for(var n=r>1?void 0:r?q0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&j0(e,t,n),n};class fn extends Ht{constructor(){super(...arguments),this.size=pu.small,this.appearance=uu.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})}}vu([a],fn.prototype,"size",2),vu([a],fn.prototype,"appearance",2);const $u=p`${w("block")} :host{outline:none;font-size:${T};line-height:${F}}:host(:focus-visible) .positioning-region{box-shadow:${Mr} ${Mr} ${Mr} ${Do} ${le} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Yl};padding-inline-start:calc(var(--indent) * ${Dr});padding-inline-end:${ee};border-radius:${S};background-color:${Ln};color:${Ce};gap:${Z}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${le}}}.content{display:flex;align-items:center;gap:${Z}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${Dr};height:${st};transition:transform ${Lo} ${ki};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:${Po};color:${wt}}.positioning-region:active{background-color:${Qt};color:${St}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${M}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${Hn};color:${xo}}:host([selected]) .content,:host([selected]) .chevron{color:${ra}}:host([size='small']) .positioning-region{height:${st};padding-inline-start:calc(var(--indent) * ${J})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${va}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${$a}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${ya};color:${xo}}:host([appearance='transparent']) .positioning-region{background-color:${ae}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Io}}:host([appearance='transparent']) .positioning-region:active{background-color:${No}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${Vn};color:${xo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,G0=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>`,yu=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>${G0}</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 ${N("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,ku=fn.compose({name:E0,template:yu,styles:$u});ku.define(u.registry);const W0="adoptedStyleSheets"in document,X0="CSSScopeRule"in window,Wi=new Map,Xi=new Map,dr=new Map,Ui=new Map,hr=new CSSStyleSheet;function xu(o,e=document){if(!(!e||!U0(e))){if(!W0||e instanceof HTMLElement&&!e.shadowRoot&&!X0){const t=e===document?document.documentElement:e;J0(o,t);return}[document,document.documentElement,document.body].includes(e)?K0(o):Y0(o,e)}}function Ki(o){if(!Wi.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);Wi.set(o,e.join(""))}return Wi.get(o)}function U0(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function K0(o){if(o===null){document.adoptedStyleSheets.includes(hr)&&hr.replaceSync("");return}hr.replaceSync(`
30
+ html {
31
+ ${Ki(o)}
32
+ }
33
+ `),document.adoptedStyleSheets.includes(hr)||document.adoptedStyleSheets.push(hr)}function Y0(o,e){if(o===null){e.shadowRoot&&dr.has(e)?dr.get(e).replaceSync(""):(delete e.dataset.fluentTheme,wu(e));return}e.shadowRoot?Q0(e).replaceSync(`
34
+ :host {
35
+ ${Ki(o)}
36
+ }
37
+ `):(e.dataset.fluentTheme=Z0(o),wu(e))}function Q0(o){if(!dr.has(o)){const e=new CSSStyleSheet;dr.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return dr.get(o)}function Z0(o){if(!Xi.has(o)){const e=qe("fluent-theme-"),t=new CSSStyleSheet;Xi.set(o,e),t.replaceSync(`
38
+ @scope ([data-fluent-theme="${e}"]) {
39
+ :scope {
40
+ ${Ki(o)}
41
+ }
42
+ }
43
+ `),document.adoptedStyleSheets.push(t)}return Xi.get(o)}function J0(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,n]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,n.toString())}const{userAgent:ex}=navigator,tx=/\bAppleWebKit\/[\d+\.]+\b/.test(ex);function wu(o){if(!tx)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),q.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:xu};export{qr as Accordion,jr as AccordionExpandMode,Ut as AccordionItem,Cu as AccordionItemMarkerPosition,Su as AccordionItemSize,zt as AnchorButton,cc as AnchorButtonAppearance,vc as AnchorButtonDefinition,dc as AnchorButtonShape,hc as AnchorButtonSize,mc as AnchorButtonTemplate,uc as AnchorTarget,yc as Avatar,Rm as AvatarActive,qm as AvatarAppearance,Si as AvatarColor,wc as AvatarDefinition,wi as AvatarNamedColor,jm as AvatarShape,Gm as AvatarSize,kc as AvatarStyles,xc as AvatarTemplate,Tt as Badge,Sc as BadgeAppearance,Cc as BadgeColor,_c as BadgeDefinition,av as BadgeShape,lv as BadgeSize,zc as BadgeStyles,Tc as BadgeTemplate,Xt as BaseAccordionItem,Te as BaseAnchor,At as BaseAvatar,se as BaseButton,xe as BaseCheckbox,Yr as BaseDivider,$d as BaseDropdown,co as BaseField,Xd as BaseMenuList,Dt as BaseProgressBar,Oe as BaseRadioGroup,Mt as BaseRatingDisplay,Ah as BaseSpinner,Lt as BaseTablist,j as BaseTextArea,A as BaseTextInput,cr as BaseTree,je as Button,jo as ButtonAppearance,Fc as ButtonDefinition,Am as ButtonFormTarget,qo as ButtonShape,Go as ButtonSize,ro as ButtonStyles,Oc as ButtonTemplate,Wo as ButtonType,Uo as Checkbox,Mc as CheckboxDefinition,vv as CheckboxShape,$v as CheckboxSize,Ec as CheckboxStyles,Dc as CheckboxTemplate,Lc as CompoundButton,Xv as CompoundButtonAppearance,Rc as CompoundButtonDefinition,Uv as CompoundButtonShape,Kv as CompoundButtonSize,Hc as CompoundButtonStyles,Vc as CompoundButtonTemplate,_e as CounterBadge,Zv as CounterBadgeAppearance,Jv as CounterBadgeColor,Gc as CounterBadgeDefinition,e$ as CounterBadgeShape,t$ as CounterBadgeSize,jc as CounterBadgeStyles,qc as CounterBadgeTemplate,Ot as Dialog,Kc as DialogBody,Zc as DialogBodyDefinition,Qc as DialogBodyStyles,Yc as DialogBodyTemplate,Uc as DialogDefinition,Xc as DialogStyles,Wc as DialogTemplate,gt as DialogType,Ze as Direction,Yo as Divider,d$ as DividerAlignContent,h$ as DividerAppearance,od as DividerDefinition,Ni as DividerOrientation,so as DividerRole,td as DividerStyles,ed as DividerTemplate,ft as Drawer,ld as DrawerBody,pd as DrawerBodyDefinition,hd as DrawerBodyStyles,ud as DrawerBodyTemplate,ad as DrawerDefinition,rd as DrawerPosition,nd as DrawerSize,id as DrawerStyles,sd as DrawerTemplate,ao as DrawerType,Zr as Dropdown,gd as DropdownAppearance,xd as DropdownDefinition,te as DropdownOption,sh as DropdownOptionDefinition,nh as DropdownOptionStyles,ih as DropdownOptionTemplate,M$ as DropdownSize,kd as DropdownStyles,vd as DropdownTemplate,Qr as DropdownType,Fi as Field,Bd as FieldDefinition,wd as FieldLabelPosition,Sd as FieldStyles,Cd as FieldTemplate,u as FluentDesignSystem,Ft as Image,Nd as ImageDefinition,ty as ImageFit,oy as ImageShape,Id as ImageStyles,Pd as ImageTemplate,ho as Label,Td as LabelDefinition,sy as LabelSize,zd as LabelStyles,Ad as LabelTemplate,ay as LabelWeight,tn as Link,uy as LinkAppearance,Ed as LinkDefinition,Od as LinkStyles,py as LinkTarget,Fd as LinkTemplate,Et as Listbox,Hd as ListboxDefinition,Dd as ListboxStyles,Ld as ListboxTemplate,We as Menu,Vd as MenuButton,yy as MenuButtonAppearance,jd as MenuButtonDefinition,ky as MenuButtonShape,xy as MenuButtonSize,ro as MenuButtonStyles,Rd as MenuButtonTemplate,eh as MenuDefinition,Ge as MenuItem,Wd as MenuItemDefinition,K as MenuItemRole,qd as MenuItemStyles,Gd as MenuItemTemplate,Ud as MenuList,Qd as MenuListDefinition,Kd as MenuListStyles,Yd as MenuListTemplate,Zd as MenuStyles,Jd as MenuTemplate,tr as MessageBar,rh as MessageBarDefinition,Uy as MessageBarIntent,Wy as MessageBarLayout,Xy as MessageBarShape,th as MessageBarStyles,oh as MessageBarTemplate,me as Orientation,nn as ProgressBar,hh as ProgressBarDefinition,nk as ProgressBarShape,ch as ProgressBarStyles,dh as ProgressBarTemplate,rk as ProgressBarThickness,ah as ProgressBarValidationState,bh as Radio,$h as RadioDefinition,uh as RadioGroup,fh as RadioGroupDefinition,Vi as RadioGroupOrientation,ph as RadioGroupStyles,gh as RadioGroupTemplate,mh as RadioStyles,vh as RadioTemplate,nr as RatingDisplay,$k as RatingDisplayColor,wh as RatingDisplayDefinition,yk as RatingDisplaySize,xh as RatingDisplayStyles,kh as RatingDisplayTemplate,R as Slider,zh as SliderDefinition,Ch as SliderMode,Sh as SliderOrientation,zk as SliderSize,Ih as SliderStyles,Nh as SliderTemplate,an as Spinner,Fk as SpinnerAppearance,Fh as SpinnerDefinition,Ek as SpinnerSize,_h as SpinnerStyles,Oh as SpinnerTemplate,Ke as StartEnd,Eh as Switch,Lh as SwitchDefinition,Hk as SwitchLabelPosition,Mh as SwitchStyles,Dh as SwitchTemplate,cn as Tab,Rh as TabDefinition,Vh as TabStyles,Hh as TabTemplate,dn as Tablist,jh as TablistAppearance,Xh as TablistDefinition,go as TablistOrientation,Uk as TablistSize,Wh as TablistStyles,Gh as TablistTemplate,Ie as Text,x0 as TextAlign,ar as TextArea,hn as TextAreaAppearance,t0 as TextAreaAppearancesForDisplayShadow,o0 as TextAreaAutocomplete,Yh as TextAreaDefinition,sr as TextAreaResize,e0 as TextAreaSize,Uh as TextAreaStyles,Kh as TextAreaTemplate,nu as TextDefinition,y0 as TextFont,lr as TextInput,h0 as TextInputAppearance,d0 as TextInputControlSize,tu as TextInputDefinition,Jh as TextInputStyles,eu as TextInputTemplate,Qh as TextInputType,$0 as TextSize,ou as TextStyles,ru as TextTemplate,k0 as TextWeight,un as ToggleButton,B0 as ToggleButtonAppearance,lu as ToggleButtonDefinition,P0 as ToggleButtonShape,I0 as ToggleButtonSize,su as ToggleButtonStyles,au as ToggleButtonTemplate,fo as Tooltip,hu as TooltipDefinition,Se as TooltipPositioningOption,cu as TooltipStyles,du as TooltipTemplate,gn as Tree,mu as TreeDefinition,fn as TreeItem,ku as TreeItemDefinition,$u as TreeItemStyles,yu as TreeItemTemplate,fu as TreeStyles,bu as TreeTemplate,we as ValidationFlags,lc as accordionDefinition,rc as accordionItemDefinition,tc as accordionItemStyles,oc as accordionItemTemplate,sc as accordionStyles,ac as accordionTemplate,tm as borderRadius2XLarge,om as borderRadius3XLarge,rm as borderRadius4XLarge,nm as borderRadius5XLarge,im as borderRadius6XLarge,ce as borderRadiusCircular,ai as borderRadiusLarge,S as borderRadiusMedium,Ao as borderRadiusNone,Be as borderRadiusSmall,li as borderRadiusXLarge,Nr as colorBackgroundOverlay,Rn as colorBrandBackground,Wn as colorBrandBackground2,Cg as colorBrandBackground2Hover,Bg as colorBrandBackground2Pressed,Pg as colorBrandBackground3Static,Ig as colorBrandBackground4Static,jn as colorBrandBackgroundHover,Ng as colorBrandBackgroundInverted,zg as colorBrandBackgroundInvertedHover,Ag as colorBrandBackgroundInvertedPressed,Tg as colorBrandBackgroundInvertedSelected,qn as colorBrandBackgroundPressed,ka as colorBrandBackgroundSelected,Gn as colorBrandBackgroundStatic,Co as colorBrandForeground1,ga as colorBrandForeground2,Fp as colorBrandForeground2Hover,Ep as colorBrandForeground2Pressed,Dp as colorBrandForegroundInverted,Mp as colorBrandForegroundInvertedHover,Lp as colorBrandForegroundInvertedPressed,na as colorBrandForegroundLink,ia as colorBrandForegroundLinkHover,sa as colorBrandForegroundLinkPressed,Cp as colorBrandForegroundLinkSelected,Hp as colorBrandForegroundOnLight,Vp as colorBrandForegroundOnLightHover,Rp as colorBrandForegroundOnLightPressed,jp as colorBrandForegroundOnLightSelected,lf as colorBrandShadowAmbient,cf as colorBrandShadowKey,Xn as colorBrandStroke1,Un as colorBrandStroke2,Qg as colorBrandStroke2Contrast,Kg as colorBrandStroke2Hover,Yg as colorBrandStroke2Pressed,ot as colorCompoundBrandBackground,Ct as colorCompoundBrandBackgroundHover,Bt as colorCompoundBrandBackgroundPressed,Pp as colorCompoundBrandForeground1,da as colorCompoundBrandForeground1Hover,ha as colorCompoundBrandForeground1Pressed,Qe as colorCompoundBrandStroke,Sa as colorCompoundBrandStrokeHover,Kn as colorCompoundBrandStrokePressed,C as colorNeutralBackground1,Bo as colorNeutralBackground1Hover,Ir as colorNeutralBackground1Pressed,Dn as colorNeutralBackground1Selected,qp as colorNeutralBackground2,Gp as colorNeutralBackground2Hover,Wp as colorNeutralBackground2Pressed,Xp as colorNeutralBackground2Selected,Kt as colorNeutralBackground3,Up as colorNeutralBackground3Hover,Kp as colorNeutralBackground3Pressed,Yp as colorNeutralBackground3Selected,ba as colorNeutralBackground4,Qp as colorNeutralBackground4Hover,Zp as colorNeutralBackground4Pressed,Jp as colorNeutralBackground4Selected,ma as colorNeutralBackground5,eg as colorNeutralBackground5Hover,tg as colorNeutralBackground5Pressed,og as colorNeutralBackground5Selected,Yt as colorNeutralBackground6,rg as colorNeutralBackground7,ng as colorNeutralBackground7Hover,ig as colorNeutralBackground7Pressed,sg as colorNeutralBackground7Selected,ag as colorNeutralBackground8,ug as colorNeutralBackgroundAlpha,pg as colorNeutralBackgroundAlpha2,Ye as colorNeutralBackgroundDisabled,vg as colorNeutralBackgroundDisabled2,Mn as colorNeutralBackgroundInverted,$g as colorNeutralBackgroundInvertedDisabled,lg as colorNeutralBackgroundInvertedHover,cg as colorNeutralBackgroundInvertedPressed,dg as colorNeutralBackgroundInvertedSelected,hg as colorNeutralBackgroundStatic,_g as colorNeutralCardBackground,Dg as colorNeutralCardBackgroundDisabled,Og as colorNeutralCardBackgroundHover,Fg as colorNeutralCardBackgroundPressed,Eg as colorNeutralCardBackgroundSelected,I as colorNeutralForeground1,Fn as colorNeutralForeground1Hover,Js as colorNeutralForeground1Pressed,mp as colorNeutralForeground1Selected,fa as colorNeutralForeground1Static,Ce as colorNeutralForeground2,wo as colorNeutralForeground2BrandHover,So as colorNeutralForeground2BrandPressed,ea as colorNeutralForeground2BrandSelected,wt as colorNeutralForeground2Hover,aa as colorNeutralForeground2Link,la as colorNeutralForeground2LinkHover,ca as colorNeutralForeground2LinkPressed,Bp as colorNeutralForeground2LinkSelected,St as colorNeutralForeground2Pressed,xo as colorNeutralForeground2Selected,X as colorNeutralForeground3,vp as colorNeutralForeground3BrandHover,$p as colorNeutralForeground3BrandPressed,yp as colorNeutralForeground3BrandSelected,ta as colorNeutralForeground3Hover,oa as colorNeutralForeground3Pressed,ra as colorNeutralForeground3Selected,Pr as colorNeutralForeground4,kp as colorNeutralForeground5,xp as colorNeutralForeground5Hover,wp as colorNeutralForeground5Pressed,Sp as colorNeutralForeground5Selected,z as colorNeutralForegroundDisabled,tt as colorNeutralForegroundInverted,Np as colorNeutralForegroundInverted2,Op as colorNeutralForegroundInvertedDisabled,ua as colorNeutralForegroundInvertedHover,zp as colorNeutralForegroundInvertedLink,Ap as colorNeutralForegroundInvertedLinkHover,Tp as colorNeutralForegroundInvertedLinkPressed,_p as colorNeutralForegroundInvertedLinkSelected,pa as colorNeutralForegroundInvertedPressed,Ip as colorNeutralForegroundInvertedSelected,Ve as colorNeutralForegroundOnBrand,En as colorNeutralForegroundStaticInverted,Ca as colorNeutralShadowAmbient,sf as colorNeutralShadowAmbientDarker,rf as colorNeutralShadowAmbientLighter,Ba as colorNeutralShadowKey,af as colorNeutralShadowKeyDarker,nf as colorNeutralShadowKeyLighter,yg as colorNeutralStencil1,xg as colorNeutralStencil1Alpha,kg as colorNeutralStencil2,wg as colorNeutralStencil2Alpha,Ae as colorNeutralStroke1,it as colorNeutralStroke1Hover,Zt as colorNeutralStroke1Pressed,Lg as colorNeutralStroke1Selected,Jt as colorNeutralStroke2,xa as colorNeutralStroke3,Hg as colorNeutralStroke4,Vg as colorNeutralStroke4Hover,Rg as colorNeutralStroke4Pressed,jg as colorNeutralStroke4Selected,ze as colorNeutralStrokeAccessible,rt as colorNeutralStrokeAccessibleHover,nt as colorNeutralStrokeAccessiblePressed,Mg as colorNeutralStrokeAccessibleSelected,tf as colorNeutralStrokeAlpha,of as colorNeutralStrokeAlpha2,pe as colorNeutralStrokeDisabled,Zg as colorNeutralStrokeDisabled2,Jg as colorNeutralStrokeInvertedDisabled,Gg as colorNeutralStrokeOnBrand,wa as colorNeutralStrokeOnBrand2,Wg as colorNeutralStrokeOnBrand2Hover,Xg as colorNeutralStrokeOnBrand2Pressed,Ug as colorNeutralStrokeOnBrand2Selected,qg as colorNeutralStrokeSubtle,Ha as colorPaletteAnchorBackground2,Kf as colorPaletteAnchorBorderActive,Va as colorPaletteAnchorForeground2,Ra as colorPaletteBeigeBackground2,Yf as colorPaletteBeigeBorderActive,ja as colorPaletteBeigeForeground2,Cf as colorPaletteBerryBackground1,Bf as colorPaletteBerryBackground2,Pf as colorPaletteBerryBackground3,Nf as colorPaletteBerryBorder1,zf as colorPaletteBerryBorder2,If as colorPaletteBerryBorderActive,Af as colorPaletteBerryForeground1,Tf as colorPaletteBerryForeground2,_f as colorPaletteBerryForeground3,qa as colorPaletteBlueBackground2,Qf as colorPaletteBlueBorderActive,Ga as colorPaletteBlueForeground2,Wa as colorPaletteBrassBackground2,Zf as colorPaletteBrassBorderActive,Xa as colorPaletteBrassForeground2,Ua as colorPaletteBrownBackground2,Jf as colorPaletteBrownBorderActive,Ka as colorPaletteBrownForeground2,Ya as colorPaletteCornflowerBackground2,eb as colorPaletteCornflowerBorderActive,Qa as colorPaletteCornflowerForeground2,Za as colorPaletteCranberryBackground2,tb as colorPaletteCranberryBorderActive,Ja as colorPaletteCranberryForeground2,el as colorPaletteDarkGreenBackground2,ob as colorPaletteDarkGreenBorderActive,tl as colorPaletteDarkGreenForeground2,oi as colorPaletteDarkOrangeBackground1,ff as colorPaletteDarkOrangeBackground2,ri as colorPaletteDarkOrangeBackground3,ni as colorPaletteDarkOrangeBorder1,mf as colorPaletteDarkOrangeBorder2,bf as colorPaletteDarkOrangeBorderActive,Oa as colorPaletteDarkOrangeForeground1,vf as colorPaletteDarkOrangeForeground2,ii as colorPaletteDarkOrangeForeground3,ol as colorPaletteDarkRedBackground2,rb as colorPaletteDarkRedBorderActive,rl as colorPaletteDarkRedForeground2,nl as colorPaletteForestBackground2,nb as colorPaletteForestBorderActive,il as colorPaletteForestForeground2,sl as colorPaletteGoldBackground2,ib as colorPaletteGoldBorderActive,al as colorPaletteGoldForeground2,ll as colorPaletteGrapeBackground2,sb as colorPaletteGrapeBorderActive,cl as colorPaletteGrapeForeground2,ei as colorPaletteGreenBackground1,uf as colorPaletteGreenBackground2,ti as colorPaletteGreenBackground3,Na as colorPaletteGreenBorder1,za as colorPaletteGreenBorder2,pf as colorPaletteGreenBorderActive,Aa as colorPaletteGreenForeground1,Ta as colorPaletteGreenForeground2,_a as colorPaletteGreenForeground3,gf as colorPaletteGreenForegroundInverted,dl as colorPaletteLavenderBackground2,ab as colorPaletteLavenderBorderActive,hl as colorPaletteLavenderForeground2,Hf as colorPaletteLightGreenBackground1,Vf as colorPaletteLightGreenBackground2,Rf as colorPaletteLightGreenBackground3,qf as colorPaletteLightGreenBorder1,Gf as colorPaletteLightGreenBorder2,jf as colorPaletteLightGreenBorderActive,Wf as colorPaletteLightGreenForeground1,Xf as colorPaletteLightGreenForeground2,Uf as colorPaletteLightGreenForeground3,ul as colorPaletteLightTealBackground2,lb as colorPaletteLightTealBorderActive,pl as colorPaletteLightTealForeground2,gl as colorPaletteLilacBackground2,cb as colorPaletteLilacBorderActive,fl as colorPaletteLilacForeground2,bl as colorPaletteMagentaBackground2,db as colorPaletteMagentaBorderActive,ml as colorPaletteMagentaForeground2,Of as colorPaletteMarigoldBackground1,si as colorPaletteMarigoldBackground2,Ff as colorPaletteMarigoldBackground3,Ef as colorPaletteMarigoldBorder1,Df as colorPaletteMarigoldBorder2,Ma as colorPaletteMarigoldBorderActive,Mf as colorPaletteMarigoldForeground1,La as colorPaletteMarigoldForeground2,Lf as colorPaletteMarigoldForeground3,vl as colorPaletteMinkBackground2,hb as colorPaletteMinkBorderActive,$l as colorPaletteMinkForeground2,yl as colorPaletteNavyBackground2,ub as colorPaletteNavyBorderActive,kl as colorPaletteNavyForeground2,xl as colorPalettePeachBackground2,pb as colorPalettePeachBorderActive,wl as colorPalettePeachForeground2,Sl as colorPalettePinkBackground2,gb as colorPalettePinkBorderActive,Cl as colorPalettePinkForeground2,Bl as colorPalettePlatinumBackground2,fb as colorPalettePlatinumBorderActive,Pl as colorPalettePlatinumForeground2,Il as colorPalettePlumBackground2,bb as colorPalettePlumBorderActive,Nl as colorPalettePlumForeground2,zl as colorPalettePumpkinBackground2,mb as colorPalettePumpkinBorderActive,Al as colorPalettePumpkinForeground2,Tl as colorPalettePurpleBackground2,vb as colorPalettePurpleBorderActive,_l as colorPalettePurpleForeground2,Yn as colorPaletteRedBackground1,Pa as colorPaletteRedBackground2,Qn as colorPaletteRedBackground3,Zn as colorPaletteRedBorder1,Ar as colorPaletteRedBorder2,df as colorPaletteRedBorderActive,Tr as colorPaletteRedForeground1,Ia as colorPaletteRedForeground2,Jn as colorPaletteRedForeground3,hf as colorPaletteRedForegroundInverted,Ol as colorPaletteRoyalBlueBackground2,$b as colorPaletteRoyalBlueBorderActive,Fl as colorPaletteRoyalBlueForeground2,El as colorPaletteSeafoamBackground2,yb as colorPaletteSeafoamBorderActive,Dl as colorPaletteSeafoamForeground2,Ml as colorPaletteSteelBackground2,kb as colorPaletteSteelBorderActive,Ll as colorPaletteSteelForeground2,Hl as colorPaletteTealBackground2,xb as colorPaletteTealBorderActive,Vl as colorPaletteTealForeground2,Fa as colorPaletteYellowBackground1,$f as colorPaletteYellowBackground2,Ea as colorPaletteYellowBackground3,Da as colorPaletteYellowBorder1,kf as colorPaletteYellowBorder2,yf as colorPaletteYellowBorderActive,xf as colorPaletteYellowForeground1,_r as colorPaletteYellowForeground2,wf as colorPaletteYellowForeground3,Sf as colorPaletteYellowForegroundInverted,Sg as colorScrollbarOverlay,jb as colorStatusDangerBackground1,qb as colorStatusDangerBackground2,Gb as colorStatusDangerBackground3,Wb as colorStatusDangerBackground3Hover,Xb as colorStatusDangerBackground3Pressed,Jb as colorStatusDangerBorder1,em as colorStatusDangerBorder2,Zb as colorStatusDangerBorderActive,Ub as colorStatusDangerForeground1,Kb as colorStatusDangerForeground2,Yb as colorStatusDangerForeground3,Qb as colorStatusDangerForegroundInverted,wb as colorStatusSuccessBackground1,Sb as colorStatusSuccessBackground2,Cb as colorStatusSuccessBackground3,Ab as colorStatusSuccessBorder1,Tb as colorStatusSuccessBorder2,zb as colorStatusSuccessBorderActive,Bb as colorStatusSuccessForeground1,Pb as colorStatusSuccessForeground2,Ib as colorStatusSuccessForeground3,Nb as colorStatusSuccessForegroundInverted,_b as colorStatusWarningBackground1,Ob as colorStatusWarningBackground2,Fb as colorStatusWarningBackground3,Vb as colorStatusWarningBorder1,Rb as colorStatusWarningBorder2,Hb as colorStatusWarningBorderActive,Eb as colorStatusWarningForeground1,Db as colorStatusWarningForeground2,Mb as colorStatusWarningForeground3,Lb as colorStatusWarningForegroundInverted,zo as colorStrokeFocus1,le as colorStrokeFocus2,Ln as colorSubtleBackground,Po as colorSubtleBackgroundHover,gg as colorSubtleBackgroundInverted,fg as colorSubtleBackgroundInvertedHover,bg as colorSubtleBackgroundInvertedPressed,mg as colorSubtleBackgroundInvertedSelected,va as colorSubtleBackgroundLightAlphaHover,$a as colorSubtleBackgroundLightAlphaPressed,ya as colorSubtleBackgroundLightAlphaSelected,Qt as colorSubtleBackgroundPressed,Hn as colorSubtleBackgroundSelected,ae as colorTransparentBackground,Io as colorTransparentBackgroundHover,No as colorTransparentBackgroundPressed,Vn as colorTransparentBackgroundSelected,G as colorTransparentStroke,ef as colorTransparentStrokeDisabled,zr as colorTransparentStrokeInteractive,Zl as curveAccelerateMax,at as curveAccelerateMid,Jl as curveAccelerateMin,yi as curveDecelerateMax,lt as curveDecelerateMid,ec as curveDecelerateMin,Ro as curveEasyEase,ki as curveEasyEaseMax,Rr as curveLinear,w as display,md as dropdownButtonTemplate,bd as dropdownInputTemplate,fm as durationFast,Lo as durationFaster,Vr as durationGentle,Ho as durationNormal,Ql as durationSlow,$i as durationSlower,Hr as durationUltraFast,Vo as durationUltraSlow,Je as endSlotTemplate,v as fontFamilyBase,Rl as fontFamilyMonospace,jl as fontFamilyNumeric,eo as fontSizeBase100,O as fontSizeBase200,T as fontSizeBase300,de as fontSizeBase400,Pt as fontSizeBase500,To as fontSizeBase600,ui as fontSizeHero1000,ci as fontSizeHero700,di as fontSizeHero800,hi as fontSizeHero900,_o as fontWeightBold,ql as fontWeightMedium,_ as fontWeightRegular,D as fontWeightSemibold,Oi as getDirection,Ii as isDialog,D$ as isDropdown,Qo as isDropdownOption,_i as isListbox,ln as isTab,Oo as lineHeightBase100,H as lineHeightBase200,F as lineHeightBase300,ge as lineHeightBase400,Fo as lineHeightBase500,pi as lineHeightBase600,mi as lineHeightHero1000,gi as lineHeightHero700,fi as lineHeightHero800,bi as lineHeightHero900,Md as listboxTemplate,Sy as roleForMenuItem,xu as setTheme,Fr as shadow16,cm as shadow16Brand,Or as shadow2,Wl as shadow28,dm as shadow28Brand,sm as shadow2Brand,Eo as shadow4,am as shadow4Brand,vi as shadow64,hm as shadow64Brand,Gl as shadow8,lm as shadow8Brand,Xl as spacingHorizontalL,J as spacingHorizontalM,Re as spacingHorizontalMNudge,um as spacingHorizontalNone,Pe as spacingHorizontalS,fe as spacingHorizontalSNudge,Ul as spacingHorizontalXL,Z as spacingHorizontalXS,Dr as spacingHorizontalXXL,M as spacingHorizontalXXS,pm as spacingHorizontalXXXL,Lr as spacingVerticalL,Kl as spacingVerticalM,Mo as spacingVerticalMNudge,Mr as spacingVerticalNone,ee as spacingVerticalS,to as spacingVerticalSNudge,gm as spacingVerticalXL,It as spacingVerticalXS,st as spacingVerticalXXL,Do as spacingVerticalXXS,Yl as spacingVerticalXXXL,He as startSlotTemplate,he as strokeWidthThick,ye as strokeWidthThicker,Er as strokeWidthThickest,B as strokeWidthThin,w$ as typographyBody1StrongStyles,S$ as typographyBody1StrongerStyles,Ai as typographyBody1Styles,cd as typographyBody2Styles,C$ as typographyCaption1StrongStyles,B$ as typographyCaption1StrongerStyles,Ti as typographyCaption1Styles,I$ as typographyCaption2StrongStyles,P$ as typographyCaption2Styles,F$ as typographyDisplayStyles,O$ as typographyLargeTitleStyles,dd as typographySubtitle1Styles,z$ as typographySubtitle2StrongerStyles,N$ as typographySubtitle2Styles,A$ as typographyTitle1Styles,T$ as typographyTitle2Styles,_$ as typographyTitle3Styles,bm as zIndexBackground,mm as zIndexContent,wm as zIndexDebug,km as zIndexFloating,ym as zIndexMessages,vm as zIndexOverlay,$m as zIndexPopup,xm as zIndexPriority};