@fluentui/web-components 3.0.0-beta.22 → 3.0.0-beta.23

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 (185) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/dist/dts/accordion/accordion.bench.d.ts +3 -0
  3. package/dist/dts/accordion/accordion.options.d.ts +1 -1
  4. package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
  5. package/dist/dts/accordion-item/accordion-item.d.ts +1 -1
  6. package/dist/dts/accordion-item/accordion-item.options.d.ts +2 -2
  7. package/dist/dts/anchor-button/anchor-button.bench.d.ts +3 -0
  8. package/dist/dts/anchor-button/anchor-button.d.ts +1 -1
  9. package/dist/dts/anchor-button/anchor-button.options.d.ts +4 -4
  10. package/dist/dts/avatar/avatar.bench.d.ts +3 -0
  11. package/dist/dts/avatar/avatar.options.d.ts +6 -6
  12. package/dist/dts/badge/badge.bench.d.ts +3 -0
  13. package/dist/dts/badge/badge.options.d.ts +5 -5
  14. package/dist/dts/button/button.bench.d.ts +3 -0
  15. package/dist/dts/button/button.options.d.ts +6 -6
  16. package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
  17. package/dist/dts/checkbox/checkbox.d.ts +1 -1
  18. package/dist/dts/checkbox/checkbox.options.d.ts +3 -3
  19. package/dist/dts/compound-button/compound-button.bench.d.ts +3 -0
  20. package/dist/dts/compound-button/compound-button.options.d.ts +3 -3
  21. package/dist/dts/counter-badge/counter-badge.bench.d.ts +3 -0
  22. package/dist/dts/counter-badge/counter-badge.options.d.ts +5 -5
  23. package/dist/dts/dialog/dialog.bench.d.ts +3 -0
  24. package/dist/dts/dialog/dialog.d.ts +11 -144
  25. package/dist/dts/dialog/dialog.options.d.ts +2 -2
  26. package/dist/dts/dialog/index.d.ts +1 -1
  27. package/dist/dts/dialog-body/define.d.ts +1 -0
  28. package/dist/dts/dialog-body/dialog-body.bench.d.ts +3 -0
  29. package/dist/dts/dialog-body/dialog-body.d.ts +14 -0
  30. package/dist/dts/dialog-body/dialog-body.definition.d.ts +9 -0
  31. package/dist/dts/dialog-body/dialog-body.styles.d.ts +4 -0
  32. package/dist/dts/dialog-body/dialog-body.template.d.ts +6 -0
  33. package/dist/dts/dialog-body/index.d.ts +4 -0
  34. package/dist/dts/divider/divider.bench.d.ts +3 -0
  35. package/dist/dts/divider/divider.options.d.ts +4 -4
  36. package/dist/dts/form-associated/form-associated.d.ts +4 -4
  37. package/dist/dts/image/image.bench.d.ts +3 -0
  38. package/dist/dts/image/image.options.d.ts +2 -2
  39. package/dist/dts/index-rollup.d.ts +1 -0
  40. package/dist/dts/index.d.ts +2 -1
  41. package/dist/dts/label/label.bench.d.ts +3 -0
  42. package/dist/dts/label/label.options.d.ts +2 -2
  43. package/dist/dts/menu/menu.bench.d.ts +3 -0
  44. package/dist/dts/menu-button/menu-button.bench.d.ts +3 -0
  45. package/dist/dts/menu-button/menu-button.options.d.ts +3 -3
  46. package/dist/dts/menu-item/menu-item.bench.d.ts +3 -0
  47. package/dist/dts/menu-item/menu-item.d.ts +2 -2
  48. package/dist/dts/menu-item/menu-item.options.d.ts +1 -1
  49. package/dist/dts/menu-list/menu-list.bench.d.ts +3 -0
  50. package/dist/dts/patterns/start-end.d.ts +3 -3
  51. package/dist/dts/progress-bar/progress-bar.bench.d.ts +3 -0
  52. package/dist/dts/progress-bar/progress-bar.options.d.ts +4 -4
  53. package/dist/dts/radio/radio.bench.d.ts +3 -0
  54. package/dist/dts/radio/radio.d.ts +2 -2
  55. package/dist/dts/radio-group/radio-group.bench.d.ts +3 -0
  56. package/dist/dts/radio-group/radio-group.options.d.ts +1 -1
  57. package/dist/dts/slider/slider.bench.d.ts +3 -0
  58. package/dist/dts/slider/slider.options.d.ts +4 -4
  59. package/dist/dts/spinner/spinner.bench.d.ts +3 -0
  60. package/dist/dts/spinner/spinner.options.d.ts +2 -2
  61. package/dist/dts/switch/switch.bench.d.ts +3 -0
  62. package/dist/dts/switch/switch.d.ts +1 -1
  63. package/dist/dts/switch/switch.options.d.ts +1 -1
  64. package/dist/dts/tab/tab.bench.d.ts +3 -0
  65. package/dist/dts/tab/tab.d.ts +1 -1
  66. package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
  67. package/dist/dts/tabs/tabs.bench.d.ts +3 -0
  68. package/dist/dts/tabs/tabs.options.d.ts +4 -4
  69. package/dist/dts/text/text.bench.d.ts +3 -0
  70. package/dist/dts/text/text.options.d.ts +4 -4
  71. package/dist/dts/text-input/text-input.bench.d.ts +3 -0
  72. package/dist/dts/text-input/text-input.d.ts +0 -1
  73. package/dist/dts/text-input/text-input.options.d.ts +4 -4
  74. package/dist/dts/toggle-button/toggle-button.bench.d.ts +3 -0
  75. package/dist/dts/toggle-button/toggle-button.options.d.ts +3 -3
  76. package/dist/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +1 -1
  77. package/dist/dts/utils/display.d.ts +1 -1
  78. package/dist/dts/utils/template-helpers.d.ts +1 -1
  79. package/dist/dts/utils/typings.d.ts +1 -1
  80. package/dist/esm/accordion/accordion.bench.js +30 -0
  81. package/dist/esm/accordion/accordion.bench.js.map +1 -0
  82. package/dist/esm/accordion-item/accordion-item.bench.js +14 -0
  83. package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -0
  84. package/dist/esm/anchor-button/anchor-button.bench.js +11 -0
  85. package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
  86. package/dist/esm/avatar/avatar.bench.js +10 -0
  87. package/dist/esm/avatar/avatar.bench.js.map +1 -0
  88. package/dist/esm/badge/badge.bench.js +11 -0
  89. package/dist/esm/badge/badge.bench.js.map +1 -0
  90. package/dist/esm/button/button.bench.js +11 -0
  91. package/dist/esm/button/button.bench.js.map +1 -0
  92. package/dist/esm/button/button.js +26 -26
  93. package/dist/esm/button/button.js.map +1 -1
  94. package/dist/esm/checkbox/checkbox.bench.js +11 -0
  95. package/dist/esm/checkbox/checkbox.bench.js.map +1 -0
  96. package/dist/esm/compound-button/compound-button.bench.js +15 -0
  97. package/dist/esm/compound-button/compound-button.bench.js.map +1 -0
  98. package/dist/esm/counter-badge/counter-badge.bench.js +11 -0
  99. package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -0
  100. package/dist/esm/dialog/dialog.bench.js +11 -0
  101. package/dist/esm/dialog/dialog.bench.js.map +1 -0
  102. package/dist/esm/dialog/dialog.js +31 -304
  103. package/dist/esm/dialog/dialog.js.map +1 -1
  104. package/dist/esm/dialog/dialog.options.js +1 -1
  105. package/dist/esm/dialog/dialog.options.js.map +1 -1
  106. package/dist/esm/dialog/dialog.styles.js +61 -84
  107. package/dist/esm/dialog/dialog.styles.js.map +1 -1
  108. package/dist/esm/dialog/dialog.template.js +17 -54
  109. package/dist/esm/dialog/dialog.template.js.map +1 -1
  110. package/dist/esm/dialog/index.js +1 -1
  111. package/dist/esm/dialog/index.js.map +1 -1
  112. package/dist/esm/dialog-body/define.js +4 -0
  113. package/dist/esm/dialog-body/define.js.map +1 -0
  114. package/dist/esm/dialog-body/dialog-body.bench.js +11 -0
  115. package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -0
  116. package/dist/esm/dialog-body/dialog-body.definition.js +17 -0
  117. package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -0
  118. package/dist/esm/dialog-body/dialog-body.js +22 -0
  119. package/dist/esm/dialog-body/dialog-body.js.map +1 -0
  120. package/dist/esm/dialog-body/dialog-body.styles.js +79 -0
  121. package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -0
  122. package/dist/esm/dialog-body/dialog-body.template.js +42 -0
  123. package/dist/esm/dialog-body/dialog-body.template.js.map +1 -0
  124. package/dist/esm/dialog-body/index.js +5 -0
  125. package/dist/esm/dialog-body/index.js.map +1 -0
  126. package/dist/esm/divider/divider.bench.js +10 -0
  127. package/dist/esm/divider/divider.bench.js.map +1 -0
  128. package/dist/esm/form-associated/form-associated.js +66 -66
  129. package/dist/esm/form-associated/form-associated.js.map +1 -1
  130. package/dist/esm/image/image.bench.js +14 -0
  131. package/dist/esm/image/image.bench.js.map +1 -0
  132. package/dist/esm/index-rollup.js +1 -0
  133. package/dist/esm/index-rollup.js.map +1 -1
  134. package/dist/esm/index.js +2 -1
  135. package/dist/esm/index.js.map +1 -1
  136. package/dist/esm/label/label.bench.js +11 -0
  137. package/dist/esm/label/label.bench.js.map +1 -0
  138. package/dist/esm/menu/menu.bench.js +31 -0
  139. package/dist/esm/menu/menu.bench.js.map +1 -0
  140. package/dist/esm/menu-button/menu-button.bench.js +11 -0
  141. package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
  142. package/dist/esm/menu-item/menu-item.bench.js +11 -0
  143. package/dist/esm/menu-item/menu-item.bench.js.map +1 -0
  144. package/dist/esm/menu-list/menu-list.bench.js +21 -0
  145. package/dist/esm/menu-list/menu-list.bench.js.map +1 -0
  146. package/dist/esm/progress-bar/progress-bar.bench.js +10 -0
  147. package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
  148. package/dist/esm/radio/radio.bench.js +11 -0
  149. package/dist/esm/radio/radio.bench.js.map +1 -0
  150. package/dist/esm/radio/radio.js +11 -11
  151. package/dist/esm/radio/radio.js.map +1 -1
  152. package/dist/esm/radio-group/radio-group.bench.js +21 -0
  153. package/dist/esm/radio-group/radio-group.bench.js.map +1 -0
  154. package/dist/esm/slider/slider.bench.js +10 -0
  155. package/dist/esm/slider/slider.bench.js.map +1 -0
  156. package/dist/esm/slider/slider.template.js +1 -1
  157. package/dist/esm/slider/slider.template.js.map +1 -1
  158. package/dist/esm/spinner/spinner.bench.js +10 -0
  159. package/dist/esm/spinner/spinner.bench.js.map +1 -0
  160. package/dist/esm/switch/switch.bench.js +11 -0
  161. package/dist/esm/switch/switch.bench.js.map +1 -0
  162. package/dist/esm/switch/switch.js +5 -5
  163. package/dist/esm/switch/switch.js.map +1 -1
  164. package/dist/esm/tab/tab.bench.js +11 -0
  165. package/dist/esm/tab/tab.bench.js.map +1 -0
  166. package/dist/esm/tab-panel/tab-panel.bench.js +13 -0
  167. package/dist/esm/tab-panel/tab-panel.bench.js.map +1 -0
  168. package/dist/esm/tabs/tabs.bench.js +32 -0
  169. package/dist/esm/tabs/tabs.bench.js.map +1 -0
  170. package/dist/esm/text/text.bench.js +13 -0
  171. package/dist/esm/text/text.bench.js.map +1 -0
  172. package/dist/esm/text-input/text-input.bench.js +10 -0
  173. package/dist/esm/text-input/text-input.bench.js.map +1 -0
  174. package/dist/esm/toggle-button/toggle-button.bench.js +11 -0
  175. package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -0
  176. package/dist/web-components.d.ts +51 -151
  177. package/dist/web-components.js +263 -837
  178. package/dist/web-components.min.js +235 -237
  179. package/package.json +14 -1
  180. package/dist/fluent-web-components.api.json +0 -29528
  181. package/docs/api-report.md +0 -3366
  182. package/playwright.config.ts +0 -24
  183. package/project.json +0 -6
  184. package/tensile.config.js +0 -22
  185. package/tsdoc.json +0 -44
@@ -1,7 +1,7 @@
1
- const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Po;const Si="fast-kernel";try{if(document.currentScript)Po=document.currentScript.getAttribute(Si);else{const o=document.getElementsByTagName("script");Po=o[o.length-1].getAttribute(Si)}}catch{Po="isolate"}let pt;switch(Po){case"share":pt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":pt=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)}`;pt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Je=o=>typeof o=="function",Ve=o=>typeof o=="string",Xn=()=>{};var xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof xr<"u")xr.globalThis=xr;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 Ti={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Ti));const W=globalThis.FAST;if(W.getById===void 0){const o=Object.create(null);Reflect.defineProperty(W,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},Ti))}W.error===void 0&&Object.assign(W,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Pi=Object.freeze([]);function kr(){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 Ii(){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 Pt(o){o.prototype.toJSON=Xn}const Z=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Bi=o=>o,Un=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Bi}):{createHTML:Bi};let Io=Object.freeze({createHTML(o){return Un.createHTML(o)},protect(o,e,t,r){return r}});const Kn=Io,It=Object.freeze({get policy(){return Io},setPolicy(o){if(Io!==Kn)throw W.error(1201);Io=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)}}),he=W.getById(pt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,u=o.length-d;l<u;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class wr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class zi{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new wr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new wr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const Cr=Object.freeze({unknown:void 0,coupled:1}),S=W.getById(pt.observable,()=>{const o=he.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw W.error(1101)};function s(d){var l;let u=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return u===void 0&&(Array.isArray(d)?u=i(d):t.set(d,u=new zi(d))),u}const n=Ii();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,u){const p=this.field,g=l[p];if(g!==u){l[p]=u;const m=l[this.callback];Je(m)&&m.call(l,g,u),s(l).notify(this.name)}}}class h extends wr{constructor(l,u,p=!1){super(l,u),this.expression=l,this.isVolatileBinding=p,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const u=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),u}requiresUnbind(l){return l.sourceLifetime!==Cr.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,u){this.needsRefresh&&this.last!==null&&this.dispose();const p=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(l,u)}finally{r=p}return g}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,u){const p=this.last,g=s(l),m=p===null?this.first:{};if(m.propertySource=l,m.propertyName=u,m.notifier=g,g.subscribe(this,u),p!==null){if(!this.needsRefresh){let x;r=void 0,x=p.propertySource[p.propertyName],r=this,l===x&&(this.needsRefresh=!0)}p.next=m}this.last=m}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 Pt(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Ve(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(u){l.setValue(this,u)}})},getAccessors:n,binding(d,l,u=this.isVolatileBinding(d)){return new h(d,l,u)},isVolatileBinding(d){return e.test(d.toString())}})});function $(o,e){S.defineProperty(o,e)}const Fi=W.getById(pt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Ut=Object.freeze({default:{index:0,length:0,get event(){return Ut.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Fi.get()},setEvent(o){Fi.set(o)}});class Bo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Yn extends Bo{createObserver(e){return S.binding(this.evaluate,e,this.isVolatile)}}function Ai(o,e,t=S.isVolatileBinding(o)){return new Yn(o,e,t)}class Oi extends Bo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}Pt(Oi);function Ei(o,e){return new Oi(o,e)}let Li;function _i(o){return o.map(e=>e instanceof de?_i(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class de{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof de?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(Li),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(_i(this.styles)),this}static setDefaultStrategy(e){Li=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new de(e):e instanceof de?e:new de([e])}}de.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Sr=kr(),Tr=Object.freeze({getForInstance:Sr.getForInstance,getByType:Sr.getByType,define(o){return Sr.register({type:o}),o}});function Pr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Ir{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const s=r.setAttribute;r.setAttribute=(n,c)=>{s.call(r,n,c),n==="style"&&r.$cssBindings.forEach((h,d)=>Pr(d,h.controller,h.observer))}}const i=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:i})}connectedCallback(e){Pr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Pr(this,t.controller,t)}}Tr.define(Ir);const Qn=`${Math.random().toString(36).substring(2,8)}`;let Zn=0;const Mi=()=>`--v${Qn}${++Zn}`;function Di(o,e){const t=[];let r="";const i=[],s=n=>{i.push(n)};for(let n=0,c=o.length-1;n<c;++n){r+=o[n];let h=e[n];Je(h)?h=new Ir(Ai(h),Mi()).createCSS(s):h instanceof Bo?h=new Ir(h,Mi()).createCSS(s):Tr.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof de||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const f=(o,...e)=>{const{styles:t,behaviors:r}=Di(o,e),i=new de(t);return r.length?i.withBehaviors(...r):i};class Ri{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Ve(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new de(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)}}Tr.define(Ri),f.partial=(o,...e)=>{const{styles:t,behaviors:r}=Di(o,e);return new Ri(t,r)};const Br=`fast-${Math.random().toString(36).substring(2,8)}`,zo=`${Br}{`,Kt=`}${Br}`,Jn=Kt.length;let ea=0;const zr=()=>`${Br}-${++ea}`,Ni=Object.freeze({interpolation:o=>`${zo}${o}${Kt}`,attribute:o=>`${zr()}="${zo}${o}${Kt}"`,comment:o=>`<!--${zo}${o}${Kt}-->`}),Fo=Object.freeze({parse(o,e){const t=o.split(zo);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(Kt);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Jn)}h!==""&&r.push(h)}return r}}),Fr=kr(),ze=Object.freeze({getForInstance:Fr.getForInstance,getByType:Fr.getByType,define(o,e){return e=e||{},e.type=o,Fr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Z.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Z.tokenList:Z.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Z.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Z.event;break;default:o.targetAspect=e,o.aspectType=Z.attribute;break}}});class Ar{constructor(e){this.options=e}createHTML(e){return Ni.attribute(e(this))}createBehavior(){return this}}Pt(Ar);function ta(o,e,t,r){if(t==null&&(t=""),t.create){o.textContent="";let i=o.$fastView;i===void 0?i=t.create():o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function oa(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,u=d.length;l<u;++l){const p=d[l];p!==""&&(n[p]=c,h.add(p))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const ra={[Z.attribute]:It.setAttribute,[Z.booleanAttribute]:It.setBooleanAttribute,[Z.property]:(o,e,t)=>o[e]=t,[Z.content]:ta,[Z.tokenList]:oa,[Z.event]:()=>{}};class Bt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Z.content}createHTML(e){return Ni.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ra[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw W.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];switch(this.aspectType){case Z.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Z.content:e.onUnbind(this);default:const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e,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){Ut.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Ut.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}ze.define(Bt,{aspected:!0});function Hi(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;)i=r.nextSibling,t.removeChild(r),r=i;t.removeChild(e)}class Ao{constructor(e,t,r){this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Cr.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=e.firstChild,this.lastChild=e.lastChild}get event(){return Ut.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){Hi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let s=0,n=i.length;s<n;++s){const c=i[s].createBehavior();c.bind(this),r[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=r.length;i<s;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){Hi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}Pt(Ao),S.defineProperty(Ao.prototype,"index"),S.defineProperty(Ao.prototype,"length");const Vi=(o,e)=>`${o}.${e}`,ji={},Fe={index:0,node:null};function qi(o){o.startsWith("fast-")||W.warn(1204,{name:o})}const ia=new Proxy(document.createElement("div"),{get(o,e){qi(e);const t=Reflect.get(o,e);return Je(t)?t.bind(o):t},set(o,e,t){return qi(e),Reflect.set(o,e,t)}});class sa{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:zr(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=ji[t];if(!s){const n=`_${t}`;ji[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[r]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??ia;for(const i of this.nodeIds)r[i];return new Ao(t,this.factories,r)}}function Wi(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],u=l.value,p=Fo.parse(u,c);let g=null;p===null?s&&(g=new Bt(Ei(()=>u,o.policy)),ze.assignAspect(g,l.name)):g=Or.aggregate(p,o.policy),g!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(g,e,r,i,t.tagName))}}function na(o,e,t,r,i){const s=Fo.parse(e.textContent,o.directives);if(s===null)return Fe.node=e.nextSibling,Fe.index=i+1,Fe;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Vi(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ve(l)?n.textContent=l:(n.textContent=" ",ze.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Fe.index=i+1,Fe.node=c.nextSibling,Fe}function Gi(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=aa(o,t,i,r);i=s.node,r=s.index}}function aa(o,e,t,r){const i=Vi(e,r);switch(t.nodeType){case 1:Wi(o,e,t,i,r),Gi(o,t,i);break;case 3:return na(o,t,e,i,r);case 8:const s=Fo.parse(t.data,o.directives);s!==null&&o.addFactory(Or.aggregate(s),e,i,r,null);break}return Fe.index=r+1,Fe.node=t.nextSibling,Fe}function la(o,e){return o&&o.nodeType==8&&Fo.parse(o.data,e)!==null}const Xi="TEMPLATE",Or={compile(o,e,t=It.policy){let r;if(Ve(o)){r=document.createElement(Xi),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Xi&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new sa(i,e,t);return Wi(s,"",r,"h",0,!0),(la(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Gi(s,i,"r"),Fe.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=It.policy){if(o.length===1)return o[0];let t,r,i=!1,s;const n=o.length,c=o.map(l=>Ve(l)?()=>l:(t=l.sourceAspect||t,r=l.dataBinding||r,i=i||l.dataBinding.isVolatile,s=s||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,u)=>{let p="";for(let g=0;g<n;++g)p+=c[g](l,u);return p};r.evaluate=h,r.isVolatile=i,r.policy=s??e;const d=new Bt(r);return ze.assignAspect(d,t),d}},ca=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,da=Object.create(null);class ft{constructor(e,t=da){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}ft.empty=new ft(""),ze.define(ft);function ha(o,e,t,r=ze.getForInstance(o)){if(r.aspected){const i=ca.exec(e);i!==null&&ze.assignAspect(o,i[2])}return o.createHTML(t)}class mr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}create(e){return this.result===null&&(this.result=Or.compile(this.html,this.factories,this.policy)),this.result.createView(e)}inline(){return new ft(Ve(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw W.error(1208);if(this.policy)throw W.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=zr();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],u;if(i+=d,Je(l))l=new Bt(Ai(l));else if(l instanceof Bo)l=new Bt(l);else if(!(u=ze.getForInstance(l))){const p=l;l=new Bt(Ei(()=>p))}i+=ha(l,d,n,u)}return new mr(i+e[e.length-1],s,r)}}Pt(mr);const v=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return mr.create(o,e);throw W.error(1206)};v.partial=o=>new ft(o);class Ui extends Ar{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}ze.define(Ui);const $e=o=>new Ui(o),ua=()=>null;function Ki(o){return o===void 0?ua:Je(o)?o:()=>o}function Yt(o,e,t){const r=Je(o)?o:()=>o,i=Ki(e),s=Ki(t);return(n,c)=>r(n,c)?i(n,c):s(n,c)}const pa=o=>o.nodeType===1,zt=o=>o?e=>e.nodeType===1&&e.matches(o):pa;class fa extends Ar{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,Pi),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 Yi="slotchange";class Qi extends fa{observe(e){e.addEventListener(Yi,this)}disconnect(e){e.removeEventListener(Yi,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}ze.define(Qi);function G(o){return Ve(o)&&(o={property:o}),new Qi(o)}const Zi="boolean",Ji="reflect",Oo=Object.freeze({locate:Ii()}),es={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function ts(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ue={toView(o){const e=ts(o);return e&&e.toString()},fromView:ts};class vr{constructor(e,t,r=t.toLowerCase(),i=Ji,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===Zi&&s===void 0&&(this.converter=es)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return S.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"||he.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ji:const s=this.converter;It.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Zi:It.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Oo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Ve(d)?r.push(new vr(e,d)):r.push(new vr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),Oo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const os={mode:"open"},rs={},is=new Set,Eo=W.getById(pt.elementRegistry,()=>kr());class Be{constructor(e,t=e.definition){var r;this.platformDefined=!1,Ve(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=vr.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const u=s[d];n[d]=u.attribute,c[u.name]=u,h[u.attribute]=u,S.defineProperty(i,u)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?os:t.shadowOptions===null?void 0:Object.assign(Object.assign({},os),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?rs:Object.assign(Object.assign({},rs),t.elementOptions),this.styles=de.normalize(t.styles),Eo.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 is.has(e)||Eo.getByType(e)?new Be(class extends e{},t):new Be(e,t)}static registerBaseType(e){is.add(e)}}Be.getByType=Eo.getByType,Be.getForInstance=Eo.getForInstance;const ga={bubbles:!0,composed:!0,cancelable:!0},Er="isConnected",ss=new WeakMap;function Lo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:ss.get(o))!==null&&t!==void 0?t:null}let ns;class _o extends zi{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._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&ss.set(e,s))}const i=S.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return S.track(this,Er),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:Ut.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Lo(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Lo(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const t=this.source,r=this.boundObservables,i=Object.keys(r);for(let s=0,n=i.length;s<n;++s){const c=i[s];t[c]=r[c]}this.boundObservables=null}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.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,S.notify(this,Er)}disconnect(){if(this.stage!==1)return;this.stage=2,S.notify(this,Er),this.view!==null&&this.view.unbind();const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},ga),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=Lo(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Cr.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Be.getForInstance(e);if(r===void 0)throw W.error(1401);return e.$fastController=new ns(e,r)}static setStrategy(e){ns=e}}Pt(_o),_o.setStrategy(_o);function Mo(o){var e;return"adoptedStyleSheets"in o?o:(e=Lo(o))!==null&&e!==void 0?e:o.getRootNode()}class $r{constructor(e){const t=$r.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){ls(Mo(e),this.sheets)}removeStylesFrom(e){cs(Mo(e),this.sheets)}}$r.styleSheetCache=new Map;let ba=0;const ma=()=>`fast-${++ba}`;function as(o){return o===document?document.body:o}class va{constructor(e){this.styles=e,this.styleClass=ma()}addStylesTo(e){e=as(Mo(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=r,e.append(s)}}removeStylesFrom(e){e=as(Mo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let ls=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},cs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(de.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ls=(o,e)=>{o.adoptedStyleSheets.push(...e)},cs=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}de.setDefaultStrategy($r)}else de.setDefaultStrategy(va);function ds(o){const e=class extends o{constructor(){super(),_o.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Be.registerBaseType(e),e}function $a(o,e){return Je(o)?Be.compose(o,e):Be.compose(this,o)}function ya(o,e){return Je(o)?Be.compose(o,e).define().type:Be.compose(this,o).define().type}function xa(o){return ds(o)}const C=Object.assign(ds(HTMLElement),{from:xa,define:ya,compose:$a}),ne={horizontal:"horizontal",vertical:"vertical"};function hs(...o){return o.every(e=>e instanceof HTMLElement)}const Ft="ArrowDown",At="ArrowLeft",Ot="ArrowRight",Et="ArrowUp",Do="End",gt="Enter",Lr="Escape",Ro="Home",Lt=" ",us="Tab",ka={ArrowDown:Ft,ArrowLeft:At,ArrowRight:Ot,ArrowUp:Et};var ye;(function(o){o.ltr="ltr",o.rtl="rtl"})(ye||(ye={}));function wa(o,e,t){return t<o?e:t>e?o:t}function _r(o,e,t){return Math.min(Math.max(t,o),e)}let Ca=0;function Mr(o=""){return`${o}${Ca++}`}var Sa=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,R=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ta(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Sa(e,t,i),i};class _{}R([a({attribute:"aria-atomic"})],_.prototype,"ariaAtomic",2),R([a({attribute:"aria-busy"})],_.prototype,"ariaBusy",2),R([a({attribute:"aria-controls"})],_.prototype,"ariaControls",2),R([a({attribute:"aria-current"})],_.prototype,"ariaCurrent",2),R([a({attribute:"aria-describedby"})],_.prototype,"ariaDescribedby",2),R([a({attribute:"aria-details"})],_.prototype,"ariaDetails",2),R([a({attribute:"aria-disabled"})],_.prototype,"ariaDisabled",2),R([a({attribute:"aria-errormessage"})],_.prototype,"ariaErrormessage",2),R([a({attribute:"aria-flowto"})],_.prototype,"ariaFlowto",2),R([a({attribute:"aria-haspopup"})],_.prototype,"ariaHaspopup",2),R([a({attribute:"aria-hidden"})],_.prototype,"ariaHidden",2),R([a({attribute:"aria-invalid"})],_.prototype,"ariaInvalid",2),R([a({attribute:"aria-keyshortcuts"})],_.prototype,"ariaKeyshortcuts",2),R([a({attribute:"aria-label"})],_.prototype,"ariaLabel",2),R([a({attribute:"aria-labelledby"})],_.prototype,"ariaLabelledby",2),R([a({attribute:"aria-live"})],_.prototype,"ariaLive",2),R([a({attribute:"aria-owns"})],_.prototype,"ariaOwns",2),R([a({attribute:"aria-relevant"})],_.prototype,"ariaRelevant",2),R([a({attribute:"aria-roledescription"})],_.prototype,"ariaRoledescription",2);const ps=o=>o.closest("[dir]")?.dir==="rtl"?ye.rtl:ye.ltr;function J(o){return o?typeof o=="string"?new ft(o):"inline"in o?o.inline():o:ft.empty}const fs=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Pa=":host([hidden]){display:none}";function z(o){return`${Pa}:host{display:${o}}`}class Ia{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class To extends Ia{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new To(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(r),t=s):!s&&t&&(e.removeStyles(r),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const Ae=To.with(window.matchMedia("(forced-colors)"));To.with(window.matchMedia("(prefers-color-scheme: dark)")),To.with(window.matchMedia("(prefers-color-scheme: light)"));class je{}function qe(o){return v`<slot name="end" ${$e("end")}>${J(o.end)}</slot>`.inline()}function We(o){return v`<slot name="start" ${$e("start")}>${J(o.start)}</slot>`.inline()}function Oe(o,...e){const t=Oo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Oo.locate(r).forEach(s=>t.push(s))})}var Ba=Object.defineProperty,za=Object.getOwnPropertyDescriptor,bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?za(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ba(e,t,i),i};class ae extends C{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Mr("accordion-"),this.block=!1,this.clickHandler=e=>{this.disabled||this.$emit("click",e)}}}bt([a({attribute:"heading-level",mode:"fromView",converter:ue})],ae.prototype,"headinglevel",2),bt([a({mode:"boolean"})],ae.prototype,"expanded",2),bt([a({mode:"boolean"})],ae.prototype,"disabled",2),bt([a],ae.prototype,"id",2),bt([a],ae.prototype,"size",2),bt([a({mode:"boolean"})],ae.prototype,"block",2),bt([a({attribute:"expand-icon-position"})],ae.prototype,"expandIconPosition",2),Oe(ae,je);const N="var(--colorNeutralForeground1)",Dr="var(--colorNeutralForeground1Hover)",gs="var(--colorNeutralForeground1Pressed)",pe="var(--colorNeutralForeground2)",Qt="var(--colorNeutralForeground2Hover)",Zt="var(--colorNeutralForeground2Pressed)",Fa="var(--colorNeutralForeground2Selected)",_t="var(--colorNeutralForeground2BrandHover)",Mt="var(--colorNeutralForeground2BrandPressed)",Aa="var(--colorNeutralForeground2BrandSelected)",ee="var(--colorNeutralForeground3)",Oa="var(--colorNeutralForeground3Hover)",Ea="var(--colorNeutralForeground3Pressed)",La="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",Rr="var(--colorCompoundBrandForeground1)",Nr="var(--colorCompoundBrandForeground1Hover)",Hr="var(--colorCompoundBrandForeground1Pressed)",xe="var(--colorNeutralForegroundOnBrand)",No="var(--colorNeutralForegroundInverted)",_a="var(--colorNeutralForegroundInvertedHover)",Ma="var(--colorNeutralForegroundInvertedPressed)",bs="var(--colorNeutralForegroundStaticInverted)",Vr="var(--colorBrandForeground1)",Da="var(--colorBrandForeground2)",Ra="var(--colorNeutralForeground1Static)",X="var(--colorNeutralBackground1)",Ho="var(--colorNeutralBackground1Hover)",jr="var(--colorNeutralBackground1Pressed)",ms="var(--colorNeutralBackground1Selected)",vs="var(--colorNeutralBackground3)",Na="var(--colorNeutralBackground4)",Ha="var(--colorNeutralBackground5)",$s="var(--colorNeutralBackground6)",Va="var(--colorNeutralBackgroundInverted)",ys="var(--colorSubtleBackground)",Vo="var(--colorSubtleBackgroundHover)",Jt="var(--colorSubtleBackgroundPressed)",ja="var(--colorSubtleBackgroundSelected)",te="var(--colorTransparentBackground)",Dt="var(--colorTransparentBackgroundHover)",eo="var(--colorTransparentBackgroundPressed)",qa="var(--colorTransparentBackgroundSelected)",to="var(--colorNeutralBackgroundDisabled)",Wa="var(--colorBackgroundOverlay)",jo="var(--colorBrandBackground)",qr="var(--colorBrandBackgroundHover)",Wr="var(--colorBrandBackgroundPressed)",Ga="var(--colorBrandBackgroundSelected)",Rt="var(--colorCompoundBrandBackground)",oo="var(--colorCompoundBrandBackgroundHover)",ro="var(--colorCompoundBrandBackgroundPressed)",xs="var(--colorBrandBackgroundStatic)",io="var(--colorBrandBackground2)",Ge="var(--colorNeutralStrokeAccessible)",so="var(--colorNeutralStrokeAccessibleHover)",no="var(--colorNeutralStrokeAccessiblePressed)",mt="var(--colorNeutralStroke1)",ao="var(--colorNeutralStroke1Hover)",qo="var(--colorNeutralStroke1Pressed)",lo="var(--colorNeutralStroke2)",Xa="var(--colorNeutralStroke3)",Ua="var(--colorNeutralStrokeOnBrand2)",ks="var(--colorBrandStroke1)",ws="var(--colorBrandStroke2)",Gr="var(--colorCompoundBrandStroke)",Wo="var(--colorCompoundBrandStrokeHover)",Xr="var(--colorCompoundBrandStrokePressed)",et="var(--colorNeutralStrokeDisabled)",Ce="var(--colorTransparentStroke)",Cs="var(--colorTransparentStrokeInteractive)",co="var(--colorStrokeFocus1)",Ee="var(--colorStrokeFocus2)",Ka="var(--colorPaletteRedBackground1)",Ur="var(--colorPaletteRedBackground2)",Kr="var(--colorPaletteRedBackground3)",Ya="var(--colorPaletteRedBorder1)",Ss="var(--colorPaletteRedForeground1)",Qa="var(--colorPaletteRedForeground2)",Ts="var(--colorPaletteRedForeground3)",Za="var(--colorPaletteGreenBackground1)",Ps="var(--colorPaletteGreenBackground2)",Yr="var(--colorPaletteGreenBackground3)",Ja="var(--colorPaletteGreenBorder2)",el="var(--colorPaletteGreenForeground1)",tl="var(--colorPaletteGreenForeground2)",ol="var(--colorPaletteGreenForeground3)",rl="var(--colorPaletteDarkOrangeBackground1)",Is="var(--colorPaletteDarkOrangeBackground2)",Qr="var(--colorPaletteDarkOrangeBackground3)",il="var(--colorPaletteDarkOrangeBorder1)",sl="var(--colorPaletteDarkOrangeForeground1)",Bs="var(--colorPaletteDarkOrangeForeground3)",nl="var(--colorPaletteYellowBackground1)",al="var(--colorPaletteYellowBackground3)",ll="var(--colorPaletteYellowBorder1)",Zr="var(--colorPaletteYellowForeground2)",cl="var(--colorPaletteMarigoldBackground2)",dl="var(--colorPaletteMarigoldForeground2)",hl="var(--colorPaletteAnchorBackground2)",ul="var(--colorPaletteAnchorForeground2)",pl="var(--colorPaletteBeigeBackground2)",fl="var(--colorPaletteBeigeForeground2)",gl="var(--colorPaletteBlueBackground2)",bl="var(--colorPaletteBlueForeground2)",ml="var(--colorPaletteBrassBackground2)",vl="var(--colorPaletteBrassForeground2)",$l="var(--colorPaletteBrownBackground2)",yl="var(--colorPaletteBrownForeground2)",xl="var(--colorPaletteCornflowerBackground2)",kl="var(--colorPaletteCornflowerForeground2)",wl="var(--colorPaletteCranberryBackground2)",Cl="var(--colorPaletteCranberryForeground2)",Sl="var(--colorPaletteDarkGreenBackground2)",Tl="var(--colorPaletteDarkGreenForeground2)",Pl="var(--colorPaletteDarkRedBackground2)",Il="var(--colorPaletteDarkRedForeground2)",Bl="var(--colorPaletteForestBackground2)",zl="var(--colorPaletteForestForeground2)",Fl="var(--colorPaletteGoldBackground2)",Al="var(--colorPaletteGoldForeground2)",Ol="var(--colorPaletteGrapeBackground2)",El="var(--colorPaletteGrapeForeground2)",Ll="var(--colorPaletteLavenderBackground2)",_l="var(--colorPaletteLavenderForeground2)",Ml="var(--colorPaletteLightTealBackground2)",Dl="var(--colorPaletteLightTealForeground2)",Rl="var(--colorPaletteLilacBackground2)",Nl="var(--colorPaletteLilacForeground2)",Hl="var(--colorPaletteMagentaBackground2)",Vl="var(--colorPaletteMagentaForeground2)",jl="var(--colorPaletteMinkBackground2)",ql="var(--colorPaletteMinkForeground2)",Wl="var(--colorPaletteNavyBackground2)",Gl="var(--colorPaletteNavyForeground2)",Xl="var(--colorPalettePeachBackground2)",Ul="var(--colorPalettePeachForeground2)",Kl="var(--colorPalettePinkBackground2)",Yl="var(--colorPalettePinkForeground2)",Ql="var(--colorPalettePlatinumBackground2)",Zl="var(--colorPalettePlatinumForeground2)",Jl="var(--colorPalettePlumBackground2)",ec="var(--colorPalettePlumForeground2)",tc="var(--colorPalettePumpkinBackground2)",oc="var(--colorPalettePumpkinForeground2)",rc="var(--colorPalettePurpleBackground2)",ic="var(--colorPalettePurpleForeground2)",sc="var(--colorPaletteRoyalBlueBackground2)",nc="var(--colorPaletteRoyalBlueForeground2)",ac="var(--colorPaletteSeafoamBackground2)",lc="var(--colorPaletteSeafoamForeground2)",cc="var(--colorPaletteSteelBackground2)",dc="var(--colorPaletteSteelForeground2)",hc="var(--colorPaletteTealBackground2)",uc="var(--colorPaletteTealForeground2)",Jr="var(--borderRadiusNone)",ke="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",ei="var(--borderRadiusLarge)",zs="var(--borderRadiusXLarge)",le="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",pc="var(--fontFamilyMonospace)",fc="var(--fontFamilyNumeric)",ho="var(--fontSizeBase100)",U="var(--fontSizeBase200)",F="var(--fontSizeBase300)",fe="var(--fontSizeBase400)",vt="var(--fontSizeBase500)",Go="var(--fontSizeBase600)",Fs="var(--fontSizeHero700)",As="var(--fontSizeHero800)",Os="var(--fontSizeHero900)",Es="var(--fontSizeHero1000)",O="var(--fontWeightRegular)",gc="var(--fontWeightMedium)",M="var(--fontWeightSemibold)",Xo="var(--fontWeightBold)",Uo="var(--lineHeightBase100)",ge="var(--lineHeightBase200)",E="var(--lineHeightBase300)",Se="var(--lineHeightBase400)",Ko="var(--lineHeightBase500)",Ls="var(--lineHeightBase600)",_s="var(--lineHeightHero700)",Ms="var(--lineHeightHero800)",Ds="var(--lineHeightHero900)",Rs="var(--lineHeightHero1000)",ti="var(--shadow2)",uo="var(--shadow4)",bc="var(--shadow8)",Ns="var(--shadow16)",mc="var(--shadow28)",vc="var(--shadow64)",oe="var(--strokeWidthThin)",Nt="var(--strokeWidthThick)",tt="var(--strokeWidthThicker)",Hs="var(--strokeWidthThickest)",$t="var(--spacingHorizontalXXS)",we="var(--spacingHorizontalXS)",ot="var(--spacingHorizontalSNudge)",K="var(--spacingHorizontalS)",Xe="var(--spacingHorizontalMNudge)",yt="var(--spacingHorizontalM)",Vs="var(--spacingHorizontalL)",$c="var(--spacingHorizontalXXL)",js="var(--spacingVerticalXXS)",qs="var(--spacingVerticalXS)",po="var(--spacingVerticalSNudge)",H="var(--spacingVerticalS)",Ws="var(--spacingVerticalMNudge)",yc="var(--spacingVerticalL)",Gs="var(--spacingVerticalXXL)",xc="var(--durationUltraFast)",Yo="var(--durationFaster)",Xs="var(--durationNormal)",kc="var(--durationSlow)",Us="var(--durationSlower)",Qo="var(--durationUltraSlow)",wc="var(--curveAccelerateMax)",Ks="var(--curveAccelerateMid)",Cc="var(--curveAccelerateMin)",Ys="var(--curveDecelerateMax)",Qs="var(--curveDecelerateMid)",Sc="var(--curveDecelerateMin)",Tc="var(--curveEasyEaseMax)",Zo="var(--curveEasyEase)",Pc="var(--curveLinear)",Ic=f`
2
- ${z("block")}
1
+ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let So;const Ci="fast-kernel";try{if(document.currentScript)So=document.currentScript.getAttribute(Ci);else{const o=document.getElementsByTagName("script");So=o[o.length-1].getAttribute(Ci)}}catch{So="isolate"}let ht;switch(So){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ze=o=>typeof o=="function",Ve=o=>typeof o=="string",Vn=()=>{};var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof $r<"u")$r.globalThis=$r;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 Si={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Si));const G=globalThis.FAST;if(G.getById===void 0){const o=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},Si))}G.error===void 0&&Object.assign(G,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Pi=Object.freeze([]);function yr(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function Bi(){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 St(o){o.prototype.toJSON=Vn}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),zi=o=>o,jn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:zi}):{createHTML:zi};let Po=Object.freeze({createHTML(o){return jn.createHTML(o)},protect(o,e,t,r){return r}});const qn=Po,Pt=Object.freeze({get policy(){return Po},setPolicy(o){if(Po!==qn)throw G.error(1201);Po=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)}}),ke=G.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,u=o.length-d;l<u;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class xr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class Ii{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new xr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new xr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const kr=Object.freeze({unknown:void 0,coupled:1}),S=G.getById(ht.observable,()=>{const o=ke.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw G.error(1101)};function s(d){var l;let u=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return u===void 0&&(Array.isArray(d)?u=i(d):t.set(d,u=new Ii(d))),u}const n=Bi();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,u){const p=this.field,g=l[p];if(g!==u){l[p]=u;const m=l[this.callback];Ze(m)&&m.call(l,g,u),s(l).notify(this.name)}}}class h extends xr{constructor(l,u,p=!1){super(l,u),this.expression=l,this.isVolatileBinding=p,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const u=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),u}requiresUnbind(l){return l.sourceLifetime!==kr.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,u){this.needsRefresh&&this.last!==null&&this.dispose();const p=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(l,u)}finally{r=p}return g}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,u){const p=this.last,g=s(l),m=p===null?this.first:{};if(m.propertySource=l,m.propertyName=u,m.notifier=g,g.subscribe(this,u),p!==null){if(!this.needsRefresh){let x;r=void 0,x=p.propertySource[p.propertyName],r=this,l===x&&(this.needsRefresh=!0)}p.next=m}this.last=m}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 St(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Ve(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(u){l.setValue(this,u)}})},getAccessors:n,binding(d,l,u=this.isVolatileBinding(d)){return new h(d,l,u)},isVolatileBinding(d){return e.test(d.toString())}})});function $(o,e){S.defineProperty(o,e)}const Ti=G.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Wt=Object.freeze({default:{index:0,length:0,get event(){return Wt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Ti.get()},setEvent(o){Ti.set(o)}});class Bo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Wn extends Bo{createObserver(e){return S.binding(this.evaluate,e,this.isVolatile)}}function Oi(o,e,t=S.isVolatileBinding(o)){return new Wn(o,e,t)}class Fi extends Bo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}St(Fi);function Ai(o,e){return new Fi(o,e)}let Ei;function _i(o){return o.map(e=>e instanceof ce?_i(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ce{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ce?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ei),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(_i(this.styles)),this}static setDefaultStrategy(e){Ei=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ce(e):e instanceof ce?e:new ce([e])}}ce.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const wr=yr(),Cr=Object.freeze({getForInstance:wr.getForInstance,getByType:wr.getByType,define(o){return wr.register({type:o}),o}});function Sr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Pr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const s=r.setAttribute;r.setAttribute=(n,c)=>{s.call(r,n,c),n==="style"&&r.$cssBindings.forEach((h,d)=>Sr(d,h.controller,h.observer))}}const i=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:i})}connectedCallback(e){Sr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Sr(this,t.controller,t)}}Cr.define(Pr);const Gn=`${Math.random().toString(36).substring(2,8)}`;let Xn=0;const Li=()=>`--v${Gn}${++Xn}`;function Mi(o,e){const t=[];let r="";const i=[],s=n=>{i.push(n)};for(let n=0,c=o.length-1;n<c;++n){r+=o[n];let h=e[n];Ze(h)?h=new Pr(Oi(h),Li()).createCSS(s):h instanceof Bo?h=new Pr(h,Li()).createCSS(s):Cr.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ce||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const f=(o,...e)=>{const{styles:t,behaviors:r}=Mi(o,e),i=new ce(t);return r.length?i.withBehaviors(...r):i};class Ri{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Ve(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new ce(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)}}Cr.define(Ri),f.partial=(o,...e)=>{const{styles:t,behaviors:r}=Mi(o,e);return new Ri(t,r)};const Br=`fast-${Math.random().toString(36).substring(2,8)}`,zo=`${Br}{`,Gt=`}${Br}`,Un=Gt.length;let Kn=0;const zr=()=>`${Br}-${++Kn}`,Di=Object.freeze({interpolation:o=>`${zo}${o}${Gt}`,attribute:o=>`${zr()}="${zo}${o}${Gt}"`,comment:o=>`<!--${zo}${o}${Gt}-->`}),Io=Object.freeze({parse(o,e){const t=o.split(zo);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(Gt);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Un)}h!==""&&r.push(h)}return r}}),Ir=yr(),Ie=Object.freeze({getForInstance:Ir.getForInstance,getByType:Ir.getByType,define(o,e){return e=e||{},e.type=o,Ir.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class Tr{constructor(e){this.options=e}createHTML(e){return Di.attribute(e(this))}createBehavior(){return this}}St(Tr);function Yn(o,e,t,r){if(t==null&&(t=""),t.create){o.textContent="";let i=o.$fastView;i===void 0?i=t.create():o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Qn(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,u=d.length;l<u;++l){const p=d[l];p!==""&&(n[p]=c,h.add(p))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Zn={[Y.attribute]:Pt.setAttribute,[Y.booleanAttribute]:Pt.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:Yn,[Y.tokenList]:Qn,[Y.event]:()=>{}};class Bt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return Di.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Zn[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw G.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];switch(this.aspectType){case Y.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e,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){Wt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Wt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Ie.define(Bt,{aspected:!0});function Ni(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;)i=r.nextSibling,t.removeChild(r),r=i;t.removeChild(e)}class To{constructor(e,t,r){this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=kr.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=e.firstChild,this.lastChild=e.lastChild}get event(){return Wt.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){Ni(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let s=0,n=i.length;s<n;++s){const c=i[s].createBehavior();c.bind(this),r[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=r.length;i<s;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){Ni(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}St(To),S.defineProperty(To.prototype,"index"),S.defineProperty(To.prototype,"length");const Hi=(o,e)=>`${o}.${e}`,Vi={},Te={index:0,node:null};function ji(o){o.startsWith("fast-")||G.warn(1204,{name:o})}const Jn=new Proxy(document.createElement("div"),{get(o,e){ji(e);const t=Reflect.get(o,e);return Ze(t)?t.bind(o):t},set(o,e,t){return ji(e),Reflect.set(o,e,t)}});class ea{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:zr(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Vi[t];if(!s){const n=`_${t}`;Vi[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[r]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Jn;for(const i of this.nodeIds)r[i];return new To(t,this.factories,r)}}function qi(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],u=l.value,p=Io.parse(u,c);let g=null;p===null?s&&(g=new Bt(Ai(()=>u,o.policy)),Ie.assignAspect(g,l.name)):g=Or.aggregate(p,o.policy),g!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(g,e,r,i,t.tagName))}}function ta(o,e,t,r,i){const s=Io.parse(e.textContent,o.directives);if(s===null)return Te.node=e.nextSibling,Te.index=i+1,Te;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Hi(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ve(l)?n.textContent=l:(n.textContent=" ",Ie.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Te.index=i+1,Te.node=c.nextSibling,Te}function Wi(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=oa(o,t,i,r);i=s.node,r=s.index}}function oa(o,e,t,r){const i=Hi(e,r);switch(t.nodeType){case 1:qi(o,e,t,i,r),Wi(o,t,i);break;case 3:return ta(o,t,e,i,r);case 8:const s=Io.parse(t.data,o.directives);s!==null&&o.addFactory(Or.aggregate(s),e,i,r,null);break}return Te.index=r+1,Te.node=t.nextSibling,Te}function ra(o,e){return o&&o.nodeType==8&&Io.parse(o.data,e)!==null}const Gi="TEMPLATE",Or={compile(o,e,t=Pt.policy){let r;if(Ve(o)){r=document.createElement(Gi),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Gi&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new ea(i,e,t);return qi(s,"",r,"h",0,!0),(ra(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Wi(s,i,"r"),Te.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Pt.policy){if(o.length===1)return o[0];let t,r,i=!1,s;const n=o.length,c=o.map(l=>Ve(l)?()=>l:(t=l.sourceAspect||t,r=l.dataBinding||r,i=i||l.dataBinding.isVolatile,s=s||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,u)=>{let p="";for(let g=0;g<n;++g)p+=c[g](l,u);return p};r.evaluate=h,r.isVolatile=i,r.policy=s??e;const d=new Bt(r);return Ie.assignAspect(d,t),d}},ia=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,sa=Object.create(null);class ut{constructor(e,t=sa){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}ut.empty=new ut(""),Ie.define(ut);function na(o,e,t,r=Ie.getForInstance(o)){if(r.aspected){const i=ia.exec(e);i!==null&&Ie.assignAspect(o,i[2])}return o.createHTML(t)}class gr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}create(e){return this.result===null&&(this.result=Or.compile(this.html,this.factories,this.policy)),this.result.createView(e)}inline(){return new ut(Ve(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw G.error(1208);if(this.policy)throw G.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=zr();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],u;if(i+=d,Ze(l))l=new Bt(Oi(l));else if(l instanceof Bo)l=new Bt(l);else if(!(u=Ie.getForInstance(l))){const p=l;l=new Bt(Ai(()=>p))}i+=na(l,d,n,u)}return new gr(i+e[e.length-1],s,r)}}St(gr);const v=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return gr.create(o,e);throw G.error(1206)};v.partial=o=>new ut(o);class Xi extends Tr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ie.define(Xi);const me=o=>new Xi(o),aa=()=>null;function Ui(o){return o===void 0?aa:Ze(o)?o:()=>o}function Oo(o,e,t){const r=Ze(o)?o:()=>o,i=Ui(e),s=Ui(t);return(n,c)=>r(n,c)?i(n,c):s(n,c)}const la=o=>o.nodeType===1,Xt=o=>o?e=>e.nodeType===1&&e.matches(o):la;class ca extends Tr{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,Pi),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 Ki="slotchange";class Yi extends ca{observe(e){e.addEventListener(Ki,this)}disconnect(e){e.removeEventListener(Ki,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ie.define(Yi);function Q(o){return Ve(o)&&(o={property:o}),new Yi(o)}const Qi="boolean",Zi="reflect",Fo=Object.freeze({locate:Bi()}),Ji={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function es(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const de={toView(o){const e=es(o);return e&&e.toString()},fromView:es};class br{constructor(e,t,r=t.toLowerCase(),i=Zi,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===Qi&&s===void 0&&(this.converter=Ji)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return S.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"||ke.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Zi:const s=this.converter;Pt.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Qi:Pt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Fo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Ve(d)?r.push(new br(e,d)):r.push(new br(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),Fo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const ts={mode:"open"},os={},rs=new Set,Ao=G.getById(ht.elementRegistry,()=>yr());class ze{constructor(e,t=e.definition){var r;this.platformDefined=!1,Ve(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=br.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const u=s[d];n[d]=u.attribute,c[u.name]=u,h[u.attribute]=u,S.defineProperty(i,u)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?ts:t.shadowOptions===null?void 0:Object.assign(Object.assign({},ts),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?os:Object.assign(Object.assign({},os),t.elementOptions),this.styles=ce.normalize(t.styles),Ao.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return rs.has(e)||Ao.getByType(e)?new ze(class extends e{},t):new ze(e,t)}static registerBaseType(e){rs.add(e)}}ze.getByType=Ao.getByType,ze.getForInstance=Ao.getForInstance;const da={bubbles:!0,composed:!0,cancelable:!0},Fr="isConnected",is=new WeakMap;function Eo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:is.get(o))!==null&&t!==void 0?t:null}let ss;class _o extends Ii{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._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&is.set(e,s))}const i=S.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return S.track(this,Fr),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:Wt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Eo(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Eo(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const t=this.source,r=this.boundObservables,i=Object.keys(r);for(let s=0,n=i.length;s<n;++s){const c=i[s];t[c]=r[c]}this.boundObservables=null}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.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,S.notify(this,Fr)}disconnect(){if(this.stage!==1)return;this.stage=2,S.notify(this,Fr),this.view!==null&&this.view.unbind();const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},da),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=Eo(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=kr.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=ze.getForInstance(e);if(r===void 0)throw G.error(1401);return e.$fastController=new ss(e,r)}static setStrategy(e){ss=e}}St(_o),_o.setStrategy(_o);function Lo(o){var e;return"adoptedStyleSheets"in o?o:(e=Eo(o))!==null&&e!==void 0?e:o.getRootNode()}class mr{constructor(e){const t=mr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){as(Lo(e),this.sheets)}removeStylesFrom(e){ls(Lo(e),this.sheets)}}mr.styleSheetCache=new Map;let ha=0;const ua=()=>`fast-${++ha}`;function ns(o){return o===document?document.body:o}class pa{constructor(e){this.styles=e,this.styleClass=ua()}addStylesTo(e){e=ns(Lo(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=r,e.append(s)}}removeStylesFrom(e){e=ns(Lo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let as=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},ls=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ce.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),as=(o,e)=>{o.adoptedStyleSheets.push(...e)},ls=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ce.setDefaultStrategy(mr)}else ce.setDefaultStrategy(pa);function cs(o){const e=class extends o{constructor(){super(),_o.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return ze.registerBaseType(e),e}function fa(o,e){return Ze(o)?ze.compose(o,e):ze.compose(this,o)}function ga(o,e){return Ze(o)?ze.compose(o,e).define().type:ze.compose(this,o).define().type}function ba(o){return cs(o)}const w=Object.assign(cs(HTMLElement),{from:ba,define:ga,compose:fa}),se={horizontal:"horizontal",vertical:"vertical"};function ds(...o){return o.every(e=>e instanceof HTMLElement)}const zt="ArrowDown",It="ArrowLeft",Tt="ArrowRight",Ot="ArrowUp",Mo="End",pt="Enter",hs="Escape",Ro="Home",Ft=" ",ma="Tab",va={ArrowDown:zt,ArrowLeft:It,ArrowRight:Tt,ArrowUp:Ot};var ve;(function(o){o.ltr="ltr",o.rtl="rtl"})(ve||(ve={}));function $a(o,e,t){return t<o?e:t>e?o:t}function Ar(o,e,t){return Math.min(Math.max(t,o),e)}let ya=0;function Er(o=""){return`${o}${ya++}`}var xa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,H=(o,e,t,r)=>{for(var i=r>1?void 0:r?ka(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xa(e,t,i),i};class L{}H([a({attribute:"aria-atomic"})],L.prototype,"ariaAtomic",2),H([a({attribute:"aria-busy"})],L.prototype,"ariaBusy",2),H([a({attribute:"aria-controls"})],L.prototype,"ariaControls",2),H([a({attribute:"aria-current"})],L.prototype,"ariaCurrent",2),H([a({attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),H([a({attribute:"aria-details"})],L.prototype,"ariaDetails",2),H([a({attribute:"aria-disabled"})],L.prototype,"ariaDisabled",2),H([a({attribute:"aria-errormessage"})],L.prototype,"ariaErrormessage",2),H([a({attribute:"aria-flowto"})],L.prototype,"ariaFlowto",2),H([a({attribute:"aria-haspopup"})],L.prototype,"ariaHaspopup",2),H([a({attribute:"aria-hidden"})],L.prototype,"ariaHidden",2),H([a({attribute:"aria-invalid"})],L.prototype,"ariaInvalid",2),H([a({attribute:"aria-keyshortcuts"})],L.prototype,"ariaKeyshortcuts",2),H([a({attribute:"aria-label"})],L.prototype,"ariaLabel",2),H([a({attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),H([a({attribute:"aria-live"})],L.prototype,"ariaLive",2),H([a({attribute:"aria-owns"})],L.prototype,"ariaOwns",2),H([a({attribute:"aria-relevant"})],L.prototype,"ariaRelevant",2),H([a({attribute:"aria-roledescription"})],L.prototype,"ariaRoledescription",2);const us=o=>o.closest("[dir]")?.dir==="rtl"?ve.rtl:ve.ltr;function Z(o){return o?typeof o=="string"?new ut(o):"inline"in o?o.inline():o:ut.empty}const ps=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,wa=":host([hidden]){display:none}";function T(o){return`${wa}:host{display:${o}}`}class Ca{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Co extends Ca{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Co(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(r),t=s):!s&&t&&(e.removeStyles(r),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const Oe=Co.with(window.matchMedia("(forced-colors)"));Co.with(window.matchMedia("(prefers-color-scheme: dark)")),Co.with(window.matchMedia("(prefers-color-scheme: light)"));class je{}function qe(o){return v`<slot name="end" ${me("end")}>${Z(o.end)}</slot>`.inline()}function We(o){return v`<slot name="start" ${me("start")}>${Z(o.start)}</slot>`.inline()}function Fe(o,...e){const t=Fo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Fo.locate(r).forEach(s=>t.push(s))})}var Sa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,ft=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pa(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Sa(e,t,i),i};class ne extends w{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Er("accordion-"),this.block=!1,this.clickHandler=e=>{this.disabled||this.$emit("click",e)}}}ft([a({attribute:"heading-level",mode:"fromView",converter:de})],ne.prototype,"headinglevel",2),ft([a({mode:"boolean"})],ne.prototype,"expanded",2),ft([a({mode:"boolean"})],ne.prototype,"disabled",2),ft([a],ne.prototype,"id",2),ft([a],ne.prototype,"size",2),ft([a({mode:"boolean"})],ne.prototype,"block",2),ft([a({attribute:"expand-icon-position"})],ne.prototype,"expandIconPosition",2),Fe(ne,je);const M="var(--colorNeutralForeground1)",_r="var(--colorNeutralForeground1Hover)",fs="var(--colorNeutralForeground1Pressed)",he="var(--colorNeutralForeground2)",Ut="var(--colorNeutralForeground2Hover)",Kt="var(--colorNeutralForeground2Pressed)",Ba="var(--colorNeutralForeground2Selected)",At="var(--colorNeutralForeground2BrandHover)",Et="var(--colorNeutralForeground2BrandPressed)",za="var(--colorNeutralForeground2BrandSelected)",J="var(--colorNeutralForeground3)",Ia="var(--colorNeutralForeground3Hover)",Ta="var(--colorNeutralForeground3Pressed)",Oa="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",Lr="var(--colorCompoundBrandForeground1)",Mr="var(--colorCompoundBrandForeground1Hover)",Rr="var(--colorCompoundBrandForeground1Pressed)",$e="var(--colorNeutralForegroundOnBrand)",Do="var(--colorNeutralForegroundInverted)",Fa="var(--colorNeutralForegroundInvertedHover)",Aa="var(--colorNeutralForegroundInvertedPressed)",gs="var(--colorNeutralForegroundStaticInverted)",Dr="var(--colorBrandForeground1)",Ea="var(--colorBrandForeground2)",_a="var(--colorNeutralForeground1Static)",V="var(--colorNeutralBackground1)",No="var(--colorNeutralBackground1Hover)",Nr="var(--colorNeutralBackground1Pressed)",bs="var(--colorNeutralBackground1Selected)",ms="var(--colorNeutralBackground3)",La="var(--colorNeutralBackground4)",Ma="var(--colorNeutralBackground5)",vs="var(--colorNeutralBackground6)",Ra="var(--colorNeutralBackgroundInverted)",$s="var(--colorSubtleBackground)",Ho="var(--colorSubtleBackgroundHover)",Yt="var(--colorSubtleBackgroundPressed)",Da="var(--colorSubtleBackgroundSelected)",ee="var(--colorTransparentBackground)",_t="var(--colorTransparentBackgroundHover)",Qt="var(--colorTransparentBackgroundPressed)",Na="var(--colorTransparentBackgroundSelected)",Zt="var(--colorNeutralBackgroundDisabled)",Ha="var(--colorBackgroundOverlay)",Vo="var(--colorBrandBackground)",Hr="var(--colorBrandBackgroundHover)",Vr="var(--colorBrandBackgroundPressed)",Va="var(--colorBrandBackgroundSelected)",Lt="var(--colorCompoundBrandBackground)",Jt="var(--colorCompoundBrandBackgroundHover)",eo="var(--colorCompoundBrandBackgroundPressed)",ys="var(--colorBrandBackgroundStatic)",to="var(--colorBrandBackground2)",Ge="var(--colorNeutralStrokeAccessible)",oo="var(--colorNeutralStrokeAccessibleHover)",ro="var(--colorNeutralStrokeAccessiblePressed)",gt="var(--colorNeutralStroke1)",io="var(--colorNeutralStroke1Hover)",jo="var(--colorNeutralStroke1Pressed)",so="var(--colorNeutralStroke2)",ja="var(--colorNeutralStroke3)",qa="var(--colorNeutralStrokeOnBrand2)",xs="var(--colorBrandStroke1)",ks="var(--colorBrandStroke2)",jr="var(--colorCompoundBrandStroke)",qo="var(--colorCompoundBrandStrokeHover)",qr="var(--colorCompoundBrandStrokePressed)",Je="var(--colorNeutralStrokeDisabled)",we="var(--colorTransparentStroke)",ws="var(--colorTransparentStrokeInteractive)",no="var(--colorStrokeFocus1)",Ae="var(--colorStrokeFocus2)",Wa="var(--colorPaletteRedBackground1)",Wr="var(--colorPaletteRedBackground2)",Gr="var(--colorPaletteRedBackground3)",Ga="var(--colorPaletteRedBorder1)",Cs="var(--colorPaletteRedForeground1)",Xa="var(--colorPaletteRedForeground2)",Ss="var(--colorPaletteRedForeground3)",Ua="var(--colorPaletteGreenBackground1)",Ps="var(--colorPaletteGreenBackground2)",Xr="var(--colorPaletteGreenBackground3)",Ka="var(--colorPaletteGreenBorder2)",Ya="var(--colorPaletteGreenForeground1)",Qa="var(--colorPaletteGreenForeground2)",Za="var(--colorPaletteGreenForeground3)",Ja="var(--colorPaletteDarkOrangeBackground1)",Bs="var(--colorPaletteDarkOrangeBackground2)",Ur="var(--colorPaletteDarkOrangeBackground3)",el="var(--colorPaletteDarkOrangeBorder1)",tl="var(--colorPaletteDarkOrangeForeground1)",zs="var(--colorPaletteDarkOrangeForeground3)",ol="var(--colorPaletteYellowBackground1)",rl="var(--colorPaletteYellowBackground3)",il="var(--colorPaletteYellowBorder1)",Kr="var(--colorPaletteYellowForeground2)",sl="var(--colorPaletteMarigoldBackground2)",nl="var(--colorPaletteMarigoldForeground2)",al="var(--colorPaletteAnchorBackground2)",ll="var(--colorPaletteAnchorForeground2)",cl="var(--colorPaletteBeigeBackground2)",dl="var(--colorPaletteBeigeForeground2)",hl="var(--colorPaletteBlueBackground2)",ul="var(--colorPaletteBlueForeground2)",pl="var(--colorPaletteBrassBackground2)",fl="var(--colorPaletteBrassForeground2)",gl="var(--colorPaletteBrownBackground2)",bl="var(--colorPaletteBrownForeground2)",ml="var(--colorPaletteCornflowerBackground2)",vl="var(--colorPaletteCornflowerForeground2)",$l="var(--colorPaletteCranberryBackground2)",yl="var(--colorPaletteCranberryForeground2)",xl="var(--colorPaletteDarkGreenBackground2)",kl="var(--colorPaletteDarkGreenForeground2)",wl="var(--colorPaletteDarkRedBackground2)",Cl="var(--colorPaletteDarkRedForeground2)",Sl="var(--colorPaletteForestBackground2)",Pl="var(--colorPaletteForestForeground2)",Bl="var(--colorPaletteGoldBackground2)",zl="var(--colorPaletteGoldForeground2)",Il="var(--colorPaletteGrapeBackground2)",Tl="var(--colorPaletteGrapeForeground2)",Ol="var(--colorPaletteLavenderBackground2)",Fl="var(--colorPaletteLavenderForeground2)",Al="var(--colorPaletteLightTealBackground2)",El="var(--colorPaletteLightTealForeground2)",_l="var(--colorPaletteLilacBackground2)",Ll="var(--colorPaletteLilacForeground2)",Ml="var(--colorPaletteMagentaBackground2)",Rl="var(--colorPaletteMagentaForeground2)",Dl="var(--colorPaletteMinkBackground2)",Nl="var(--colorPaletteMinkForeground2)",Hl="var(--colorPaletteNavyBackground2)",Vl="var(--colorPaletteNavyForeground2)",jl="var(--colorPalettePeachBackground2)",ql="var(--colorPalettePeachForeground2)",Wl="var(--colorPalettePinkBackground2)",Gl="var(--colorPalettePinkForeground2)",Xl="var(--colorPalettePlatinumBackground2)",Ul="var(--colorPalettePlatinumForeground2)",Kl="var(--colorPalettePlumBackground2)",Yl="var(--colorPalettePlumForeground2)",Ql="var(--colorPalettePumpkinBackground2)",Zl="var(--colorPalettePumpkinForeground2)",Jl="var(--colorPalettePurpleBackground2)",ec="var(--colorPalettePurpleForeground2)",tc="var(--colorPaletteRoyalBlueBackground2)",oc="var(--colorPaletteRoyalBlueForeground2)",rc="var(--colorPaletteSeafoamBackground2)",ic="var(--colorPaletteSeafoamForeground2)",sc="var(--colorPaletteSteelBackground2)",nc="var(--colorPaletteSteelForeground2)",ac="var(--colorPaletteTealBackground2)",lc="var(--colorPaletteTealForeground2)",Yr="var(--borderRadiusNone)",ye="var(--borderRadiusSmall)",P="var(--borderRadiusMedium)",Qr="var(--borderRadiusLarge)",Is="var(--borderRadiusXLarge)",ae="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",cc="var(--fontFamilyMonospace)",dc="var(--fontFamilyNumeric)",ao="var(--fontSizeBase100)",X="var(--fontSizeBase200)",O="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",bt="var(--fontSizeBase500)",Wo="var(--fontSizeBase600)",Ts="var(--fontSizeHero700)",Os="var(--fontSizeHero800)",Fs="var(--fontSizeHero900)",As="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",hc="var(--fontWeightMedium)",R="var(--fontWeightSemibold)",Go="var(--fontWeightBold)",Xo="var(--lineHeightBase100)",pe="var(--lineHeightBase200)",E="var(--lineHeightBase300)",Ce="var(--lineHeightBase400)",Uo="var(--lineHeightBase500)",Es="var(--lineHeightBase600)",_s="var(--lineHeightHero700)",Ls="var(--lineHeightHero800)",Ms="var(--lineHeightHero900)",Rs="var(--lineHeightHero1000)",Zr="var(--shadow2)",lo="var(--shadow4)",uc="var(--shadow8)",Ds="var(--shadow16)",pc="var(--shadow28)",fc="var(--shadow64)",te="var(--strokeWidthThin)",Mt="var(--strokeWidthThick)",et="var(--strokeWidthThicker)",Ns="var(--strokeWidthThickest)",mt="var(--spacingHorizontalXXS)",xe="var(--spacingHorizontalXS)",tt="var(--spacingHorizontalSNudge)",oe="var(--spacingHorizontalS)",Xe="var(--spacingHorizontalMNudge)",vt="var(--spacingHorizontalM)",Hs="var(--spacingHorizontalL)",gc="var(--spacingHorizontalXXL)",Vs="var(--spacingVerticalXXS)",js="var(--spacingVerticalXS)",co="var(--spacingVerticalSNudge)",D="var(--spacingVerticalS)",qs="var(--spacingVerticalMNudge)",Ws="var(--spacingVerticalL)",ho="var(--spacingVerticalXXL)",bc="var(--durationUltraFast)",Ko="var(--durationFaster)",Gs="var(--durationNormal)",mc="var(--durationGentle)",vc="var(--durationSlow)",Xs="var(--durationSlower)",Yo="var(--durationUltraSlow)",$c="var(--curveAccelerateMax)",Jr="var(--curveAccelerateMid)",yc="var(--curveAccelerateMin)",Us="var(--curveDecelerateMax)",ei="var(--curveDecelerateMid)",xc="var(--curveDecelerateMin)",kc="var(--curveEasyEaseMax)",Qo="var(--curveEasyEase)",Ks="var(--curveLinear)",wc=f`
2
+ ${T("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${yt} ${Xe};border-radius:${T};font-family:${y};font-size:${F};font-weight:${O};line-height:${E};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${N};background:${te};line-height:${E};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ke}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${K};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${yt}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${K};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ke};outline:none;border:2px solid ${co};box-shadow:inset 0 0 0 1px ${Ee}}:host([disabled]) .button{color:${k}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${F};line-height:${E}}:host([size='small']) .heading{font-size:${U};line-height:${ge}}:host([size='large']) .heading{font-size:${fe};line-height:${Se}}:host([size='extra-large']) .heading{font-size:${vt};line-height:${Ko}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,Bc=v.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${vt} ${Xe};border-radius:${P};font-family:${y};font-size:${O};font-weight:${A};line-height:${E};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${M};background:${ee};line-height:${E};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ye}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${oe};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${vt}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${oe};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ye};outline:none;border:2px solid ${no};box-shadow:inset 0 0 0 1px ${Ae}}:host([disabled]) .button{color:${k}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${O};line-height:${E}}:host([size='small']) .heading{font-size:${X};line-height:${pe}}:host([size='large']) .heading{font-size:${ue};line-height:${Ce}}:host([size='extra-large']) .heading{font-size:${bt};line-height:${Uo}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,Cc=v.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -13,7 +13,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
13
13
  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"
14
14
  fill="currentColor"
15
15
  />
16
- </svg>`),zc=v.partial(`<svg
16
+ </svg>`),Sc=v.partial(`<svg
17
17
  width="20"
18
18
  height="20"
19
19
  viewBox="0 0 20 20"
@@ -25,33 +25,33 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
25
25
  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"
26
26
  fill="currentColor"
27
27
  />
28
- </svg>`);function Fc(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${$e("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}" @click="${(e,t)=>e.clickHandler(t.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${We(o)} ${qe(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${J(o.expandedIcon)}</slot><slot name="collapsed-icon">${J(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Ac=Fc({collapsedIcon:Bc,expandedIcon:zc}),Oc=ae.compose({name:`${b.prefix}-accordion-item`,template:Ac,styles:Ic});Oc.define(b.registry);const oi={single:"single",multi:"multi"};var Ec=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Zs=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ec(e,t,i),i};class ri extends C{constructor(){super(...arguments),this.expandmode=oi.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>S.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,r)=>{t instanceof ae&&(t.addEventListener("click",this.activeItemChange),t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus),S.getNotifier(t).subscribe(this,"expanded"));const i=this.accordionIds[r];t.setAttribute("id",typeof i!="string"?`accordion-${r+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{S.getNotifier(t).unsubscribe(this,"disabled"),S.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{e.defaultPrevented||e.target!==e.currentTarget||(e.preventDefault(),this.handleExpandedChange(e.target))},this.handleExpandedChange=e=>{e instanceof ae&&(this.activeid=e.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.change())},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case Et:e.preventDefault(),this.adjust(-1);break;case Ft:e.preventDefault(),this.adjust(1);break;case Ro:this.activeItemIndex=0,this.focusItem();break;case Do:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,r=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==r&&r!==-1&&(this.activeItemIndex=r,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();r&&(t!==oi.single?r?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(r))}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof ae&&e.expanded)??this.accordionItems[0]}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{r instanceof ae&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(e=>e.id)}isSingleExpandMode(){return this.expandmode===oi.single}adjust(e){this.activeItemIndex=wa(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof ae&&e.expandbutton.focus()}}Zs([a({attribute:"expand-mode"})],ri.prototype,"expandmode",2),Zs([$],ri.prototype,"slottedAccordionItems",2);const _c=f`
29
- ${z("flex")}
30
-
31
- :host{flex-direction:column;width:100%;contain:content}`;function Mc(){return v`<template><slot ${G({property:"slottedAccordionItems",filter:zt()})}></slot></template>`}const Dc=Mc(),Rc=ri.compose({name:`${b.prefix}-accordion`,template:Dc,styles:_c});Rc.define(b.registry);var Nc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nc(e,t,i),i};class V extends C{constructor(){super(...arguments),this.iconOnly=!1,this.disabled=!1,this.disabledFocusable=!1,this.handleDisabledFocusableClick=e=>{if(e&&this.disabled||this.disabledFocusable){e.stopImmediatePropagation();return}}}disabledChanged(e,t){this.disabled?(this.setAttribute("aria-disabled","true"),this.setAttribute("tabindex","-1")):(this.removeAttribute("aria-disabled"),this.removeAttribute("tabindex"))}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.disabledFocusable?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleDisabledFocusableClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleDisabledFocusableClick)}}Y([a],V.prototype,"download",2),Y([a],V.prototype,"href",2),Y([a],V.prototype,"hreflang",2),Y([a],V.prototype,"ping",2),Y([a],V.prototype,"referrerpolicy",2),Y([a],V.prototype,"rel",2),Y([a],V.prototype,"target",2),Y([a],V.prototype,"type",2),Y([$],V.prototype,"defaultSlottedContent",2),Y([a],V.prototype,"appearance",2),Y([a],V.prototype,"shape",2),Y([a],V.prototype,"size",2),Y([a({attribute:"icon-only",mode:"boolean"})],V.prototype,"iconOnly",2),Y([a({mode:"boolean"})],V.prototype,"disabled",2),Y([a({attribute:"disabled-focusable",mode:"boolean"})],V.prototype,"disabledFocusable",2);class ii{}Y([a({attribute:"aria-expanded"})],ii.prototype,"ariaExpanded",2),Oe(ii,_),Oe(V,je,ii);const Vc=f`
32
- ${z("inline-flex")}
33
-
34
- :host{--icon-spacing:${ot};contain:layout style;vertical-align:middle}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${X};color:${N};border:${oe} solid ${mt};padding:0 ${yt};min-width:96px;border-radius:${T};font-size:${F};font-family:${y};font-weight:${M};line-height:${E};transition-duration:${Yo};transition-property:background,border,color;transition-timing-function:${Zo};cursor:pointer}.content{display:inherit;text-align:center}:host(:hover) .control{background-color:${Ho};color:${Dr};border-color:${ao}}:host(:hover:active) .control{background-color:${jr};border-color:${qo};color:${gs};outline-style:none}:host .control:focus-visible{border-color:${Ce};outline:${Nt}) solid ${Ce};box-shadow:${uo},0 0 0 2px ${Ee}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]) .control{min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${we}}:host([size='small']) .control{min-height:24px;min-width:64px;padding:0 ${K};border-radius:${ke};font-size:${U};line-height:${ge};font-weight:${O}}:host([size='small'][icon-only]) .control{min-width:24px;max-width:24px}:host([size='large']) .control{min-height:40px;border-radius:${ei};padding:0 ${Vs};font-size:${fe};line-height:${Se}}:host([size='large'][icon-only]) .control{min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']) .control,:host([shape='circular']) .control:focus-visible{border-radius:${le}}:host([shape='square']) .control,:host([shape='square']) .control:focus-visible{border-radius:${Jr}}:host([appearance='primary']) .control{background-color:${jo};color:${xe};border-color:transparent}:host([appearance='primary']:hover) .control{background-color:${qr}}:host([appearance='primary']:hover) .control,:host([appearance='primary']:hover:active) .control{border-color:transparent;color:${xe}}:host([appearance='primary']:hover:active) .control{background-color:${Wr}}:host([appearance='primary']) .control:focus-visible{border-color:${xe};box-shadow:${ti},0 0 0 2px ${Ee}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active) .control{border-color:transparent}:host([appearance='outline']) .control{background-color:${te}}:host([appearance='outline']:hover) .control{background-color:${Dt}}:host([appearance='outline']:hover:active) .control{background-color:${eo}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active) .control{background-color:${te}}:host([appearance='subtle']) .control{background-color:${ys};color:${pe};border-color:transparent}:host([appearance='subtle']:hover) .control{background-color:${Vo};color:${Qt};border-color:transparent}:host([appearance='subtle']:hover:active) .control{background-color:${Jt};color:${Zt};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active) .control{background-color:${te};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${_t}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Mt}}:host([appearance='transparent']) .control{background-color:${te};color:${pe}}:host([appearance='transparent']:hover) .control{background-color:${Dt};color:${_t}}:host([appearance='transparent']:hover:active) .control{background-color:${eo};color:${Mt}}:host([appearance='transparent']) .control,:host([appearance='transparent']:hover) .control,:host([appearance='transparent']:hover:active) .control{border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active)
35
- .control{border-color:transparent;background-color:${te}}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active)
36
- .control{background-color:${to};border-color:${et};color:${k};cursor:not-allowed}`.withBehaviors(Ae(f`
37
- :host([appearance='transparent']:hover) .control{border-color:Highlight}`));function jc(o={}){return v`<a class="control" part="control" download="${e=>e.download}" href="${e=>e.href}" hreflang="${e=>e.hreflang}" ping="${e=>e.ping}" referrerpolicy="${e=>e.referrerpolicy}" rel="${e=>e.rel}" target="${e=>e.target}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-expanded="${e=>e.ariaExpanded}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${$e("control")}>${We(o)}<span class="content" part="content"><slot ${G("defaultSlottedContent")}></slot></span>${qe(o)}</a>`}const qc=jc(),Wc=V.compose({name:`${b.prefix}-anchor-button`,template:qc,styles:Vc,shadowOptions:{delegatesFocus:!0}});Wc.define(b.registry);const Gc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Xc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Uc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Kc=/\s+/g,Yc=/[\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 Qc(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function Zc(o){return o=o.replace(Gc,""),o=o.replace(Xc,""),o=o.replace(Kc," "),o=o.trim(),o}function Jc(o,e,t){return!o||(o=Zc(o),Yc.test(o)||!t?.allowPhoneInitials&&Uc.test(o))?"":Qc(o,e,t?.firstInitialOnly)}const Js={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"},ed={neutral:"neutral",brand:"brand",colorful:"colorful",...Js};var td=Object.defineProperty,od=Object.getOwnPropertyDescriptor,rt=(o,e,t,r)=>{for(var i=r>1?void 0:r?od(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&td(e,t,i),i};const Le=class $i extends C{constructor(){super(...arguments),this.color="neutral"}generateColor(){if(this.color)return this.color===ed.colorful?$i.colors[id(this.colorId??this.name??"")%$i.colors.length]:this.color}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??Jc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}};Le.colors=Object.values(Js),rt([a],Le.prototype,"name",2),rt([a],Le.prototype,"initials",2),rt([a({converter:ue})],Le.prototype,"size",2),rt([a],Le.prototype,"shape",2),rt([a],Le.prototype,"active",2),rt([a],Le.prototype,"appearance",2),rt([a],Le.prototype,"color",2),rt([a({attribute:"color-id"})],Le.prototype,"colorId",2);let rd=Le;const id=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},it={fastOutSlowInMax:Ys,fastOutSlowInMid:Qs,fastOutSlowInMin:Sc,slowOutFastInMax:wc,slowOutFastInMid:Ks,slowOutFastInMin:Cc,fastEase:Tc,normalEase:Zo,nullEasing:Pc},sd=f`
38
- ${z("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${M};font-size:${F};border-radius:${le};color:${ee};background-color:${$s};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${le}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${oe}) ${X}}: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 ${Nt}) ${X}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${ho};font-weight:${O}}: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:${U}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fe}}: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:${vt}}: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:${Go}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ke}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${ei}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${zs}}:host([data-color='brand']){color:${bs};background-color:${xs}}:host([data-color='dark-red']){color:${Il};background-color:${Pl}}:host([data-color='cranberry']){color:${Cl};background-color:${wl}}:host([data-color='red']){color:${Qa};background-color:${Ur}}:host([data-color='pumpkin']){color:${oc};background-color:${tc}}:host([data-color='peach']){color:${Ul};background-color:${Xl}}:host([data-color='marigold']){color:${dl};background-color:${cl}}:host([data-color='gold']){color:${Al};background-color:${Fl}}:host([data-color='brass']){color:${vl};background-color:${ml}}:host([data-color='brown']){color:${yl};background-color:${$l}}:host([data-color='forest']){color:${zl};background-color:${Bl}}:host([data-color='seafoam']){color:${lc};background-color:${ac}}:host([data-color='dark-green']){color:${Tl};background-color:${Sl}}:host([data-color='light-teal']){color:${Dl};background-color:${Ml}}:host([data-color='teal']){color:${uc};background-color:${hc}}:host([data-color='steel']){color:${dc};background-color:${cc}}:host([data-color='blue']){color:${bl};background-color:${gl}}:host([data-color='royal-blue']){color:${nc};background-color:${sc}}:host([data-color='cornflower']){color:${kl};background-color:${xl}}:host([data-color='navy']){color:${Gl};background-color:${Wl}}:host([data-color='lavender']){color:${_l};background-color:${Ll}}:host([data-color='purple']){color:${ic};background-color:${rc}}:host([data-color='grape']){color:${El};background-color:${Ol}}:host([data-color='lilac']){color:${Nl};background-color:${Rl}}:host([data-color='pink']){color:${Yl};background-color:${Kl}}:host([data-color='magenta']){color:${Vl};background-color:${Hl}}:host([data-color='plum']){color:${ec};background-color:${Jl}}:host([data-color='beige']){color:${fl};background-color:${pl}}:host([data-color='mink']){color:${ql};background-color:${jl}}:host([data-color='platinum']){color:${Zl};background-color:${Ql}}:host([data-color='anchor']){color:${ul};background-color:${hl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Qo},${Yo};transition-delay:${it.fastEase},${it.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Qo}),${Us};transition-delay:${it.fastEase}),${it.nullEasing})}:host([active])::before{box-shadow:${bc};border-style:solid;border-color:${xs}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Nt});border-width:${Nt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${tt});border-width:${tt}}: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 * ${Hs});border-width:${Hs}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${uo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Ns}}: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:${mc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Qo},${Yo};transition-delay:${it.fastOutSlowInMin},${it.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Qo},${Us};transition-delay:${it.fastOutSlowInMin},${it.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}}`,nd=v`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function ad(){return v`<template role="img" data-color=${o=>o.generateColor()}><slot>${o=>o.name||o.initials?o.generateInitials():nd}</slot><slot name="badge"></slot></template>`}const ld=ad(),cd=rd.compose({name:`${b.prefix}-avatar`,template:ld,styles:sd});cd.define(b.registry);const dd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},hd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var ud=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,Jo=(o,e,t,r)=>{for(var i=r>1?void 0:r?pd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ud(e,t,i),i};class Ht extends C{constructor(){super(...arguments),this.appearance=dd.filled,this.color=hd.brand}}Jo([a],Ht.prototype,"appearance",2),Jo([a],Ht.prototype,"color",2),Jo([a],Ht.prototype,"shape",2),Jo([a],Ht.prototype,"size",2),Oe(Ht,je);const er=$t,en=f.partial`
39
- ${z("inline-flex")} :host {
28
+ </svg>`);function Pc(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${me("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}" @click="${(e,t)=>e.clickHandler(t.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${We(o)} ${qe(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${Z(o.expandedIcon)}</slot><slot name="collapsed-icon">${Z(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Bc=Pc({collapsedIcon:Cc,expandedIcon:Sc}),zc=ne.compose({name:`${b.prefix}-accordion-item`,template:Bc,styles:wc});zc.define(b.registry);const ti={single:"single",multi:"multi"};var Ic=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Ys=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ic(e,t,i),i};class oi extends w{constructor(){super(...arguments),this.expandmode=ti.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>S.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,r)=>{t instanceof ne&&(t.addEventListener("click",this.activeItemChange),t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus),S.getNotifier(t).subscribe(this,"expanded"));const i=this.accordionIds[r];t.setAttribute("id",typeof i!="string"?`accordion-${r+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{S.getNotifier(t).unsubscribe(this,"disabled"),S.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{e.defaultPrevented||e.target!==e.currentTarget||(e.preventDefault(),this.handleExpandedChange(e.target))},this.handleExpandedChange=e=>{e instanceof ne&&(this.activeid=e.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.change())},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case Ot:e.preventDefault(),this.adjust(-1);break;case zt:e.preventDefault(),this.adjust(1);break;case Ro:this.activeItemIndex=0,this.focusItem();break;case Mo:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,r=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==r&&r!==-1&&(this.activeItemIndex=r,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();r&&(t!==ti.single?r?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(r))}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof ne&&e.expanded)??this.accordionItems[0]}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{r instanceof ne&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(e=>e.id)}isSingleExpandMode(){return this.expandmode===ti.single}adjust(e){this.activeItemIndex=$a(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof ne&&e.expandbutton.focus()}}Ys([a({attribute:"expand-mode"})],oi.prototype,"expandmode",2),Ys([$],oi.prototype,"slottedAccordionItems",2);const Oc=f`
29
+ ${T("flex")}
30
+
31
+ :host{flex-direction:column;width:100%;contain:content}`;function Fc(){return v`<template><slot ${Q({property:"slottedAccordionItems",filter:Xt()})}></slot></template>`}const Ac=Fc(),Ec=oi.compose({name:`${b.prefix}-accordion`,template:Ac,styles:Oc});Ec.define(b.registry);var _c=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,U=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_c(e,t,i),i};class j extends w{constructor(){super(...arguments),this.iconOnly=!1,this.disabled=!1,this.disabledFocusable=!1,this.handleDisabledFocusableClick=e=>{if(e&&this.disabled||this.disabledFocusable){e.stopImmediatePropagation();return}}}disabledChanged(e,t){this.disabled?(this.setAttribute("aria-disabled","true"),this.setAttribute("tabindex","-1")):(this.removeAttribute("aria-disabled"),this.removeAttribute("tabindex"))}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.disabledFocusable?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleDisabledFocusableClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleDisabledFocusableClick)}}U([a],j.prototype,"download",2),U([a],j.prototype,"href",2),U([a],j.prototype,"hreflang",2),U([a],j.prototype,"ping",2),U([a],j.prototype,"referrerpolicy",2),U([a],j.prototype,"rel",2),U([a],j.prototype,"target",2),U([a],j.prototype,"type",2),U([$],j.prototype,"defaultSlottedContent",2),U([a],j.prototype,"appearance",2),U([a],j.prototype,"shape",2),U([a],j.prototype,"size",2),U([a({attribute:"icon-only",mode:"boolean"})],j.prototype,"iconOnly",2),U([a({mode:"boolean"})],j.prototype,"disabled",2),U([a({attribute:"disabled-focusable",mode:"boolean"})],j.prototype,"disabledFocusable",2);class ri{}U([a({attribute:"aria-expanded"})],ri.prototype,"ariaExpanded",2),Fe(ri,L),Fe(j,je,ri);const Mc=f`
32
+ ${T("inline-flex")}
33
+
34
+ :host{--icon-spacing:${tt};contain:layout style;vertical-align:middle}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${V};color:${M};border:${te} solid ${gt};padding:0 ${vt};min-width:96px;border-radius:${P};font-size:${O};font-family:${y};font-weight:${R};line-height:${E};transition-duration:${Ko};transition-property:background,border,color;transition-timing-function:${Qo};cursor:pointer}.content{display:inherit;text-align:center}:host(:hover) .control{background-color:${No};color:${_r};border-color:${io}}:host(:hover:active) .control{background-color:${Nr};border-color:${jo};color:${fs};outline-style:none}:host .control:focus-visible{border-color:${we};outline:${Mt}) solid ${we};box-shadow:${lo},0 0 0 2px ${Ae}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]) .control{min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${xe}}:host([size='small']) .control{min-height:24px;min-width:64px;padding:0 ${oe};border-radius:${ye};font-size:${X};line-height:${pe};font-weight:${A}}:host([size='small'][icon-only]) .control{min-width:24px;max-width:24px}:host([size='large']) .control{min-height:40px;border-radius:${Qr};padding:0 ${Hs};font-size:${ue};line-height:${Ce}}:host([size='large'][icon-only]) .control{min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']) .control,:host([shape='circular']) .control:focus-visible{border-radius:${ae}}:host([shape='square']) .control,:host([shape='square']) .control:focus-visible{border-radius:${Yr}}:host([appearance='primary']) .control{background-color:${Vo};color:${$e};border-color:transparent}:host([appearance='primary']:hover) .control{background-color:${Hr}}:host([appearance='primary']:hover) .control,:host([appearance='primary']:hover:active) .control{border-color:transparent;color:${$e}}:host([appearance='primary']:hover:active) .control{background-color:${Vr}}:host([appearance='primary']) .control:focus-visible{border-color:${$e};box-shadow:${Zr},0 0 0 2px ${Ae}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active) .control{border-color:transparent}:host([appearance='outline']) .control{background-color:${ee}}:host([appearance='outline']:hover) .control{background-color:${_t}}:host([appearance='outline']:hover:active) .control{background-color:${Qt}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active) .control{background-color:${ee}}:host([appearance='subtle']) .control{background-color:${$s};color:${he};border-color:transparent}:host([appearance='subtle']:hover) .control{background-color:${Ho};color:${Ut};border-color:transparent}:host([appearance='subtle']:hover:active) .control{background-color:${Yt};color:${Kt};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active) .control{background-color:${ee};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${At}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Et}}:host([appearance='transparent']) .control{background-color:${ee};color:${he}}:host([appearance='transparent']:hover) .control{background-color:${_t};color:${At}}:host([appearance='transparent']:hover:active) .control{background-color:${Qt};color:${Et}}:host([appearance='transparent']) .control,:host([appearance='transparent']:hover) .control,:host([appearance='transparent']:hover:active) .control{border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active)
35
+ .control{border-color:transparent;background-color:${ee}}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active)
36
+ .control{background-color:${Zt};border-color:${Je};color:${k};cursor:not-allowed}`.withBehaviors(Oe(f`
37
+ :host([appearance='transparent']:hover) .control{border-color:Highlight}`));function Rc(o={}){return v`<a class="control" part="control" download="${e=>e.download}" href="${e=>e.href}" hreflang="${e=>e.hreflang}" ping="${e=>e.ping}" referrerpolicy="${e=>e.referrerpolicy}" rel="${e=>e.rel}" target="${e=>e.target}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-expanded="${e=>e.ariaExpanded}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${me("control")}>${We(o)}<span class="content" part="content"><slot ${Q("defaultSlottedContent")}></slot></span>${qe(o)}</a>`}const Dc=Rc(),Nc=j.compose({name:`${b.prefix}-anchor-button`,template:Dc,styles:Mc,shadowOptions:{delegatesFocus:!0}});Nc.define(b.registry);const Hc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Vc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,jc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,qc=/\s+/g,Wc=/[\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 Gc(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function Xc(o){return o=o.replace(Hc,""),o=o.replace(Vc,""),o=o.replace(qc," "),o=o.trim(),o}function Uc(o,e,t){return!o||(o=Xc(o),Wc.test(o)||!t?.allowPhoneInitials&&jc.test(o))?"":Gc(o,e,t?.firstInitialOnly)}const Qs={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"},Kc={neutral:"neutral",brand:"brand",colorful:"colorful",...Qs};var Yc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,ot=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Yc(e,t,i),i};const Ee=class vi extends w{constructor(){super(...arguments),this.color="neutral"}generateColor(){if(this.color)return this.color===Kc.colorful?vi.colors[Jc(this.colorId??this.name??"")%vi.colors.length]:this.color}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??Uc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}};Ee.colors=Object.values(Qs),ot([a],Ee.prototype,"name",2),ot([a],Ee.prototype,"initials",2),ot([a({converter:de})],Ee.prototype,"size",2),ot([a],Ee.prototype,"shape",2),ot([a],Ee.prototype,"active",2),ot([a],Ee.prototype,"appearance",2),ot([a],Ee.prototype,"color",2),ot([a({attribute:"color-id"})],Ee.prototype,"colorId",2);let Zc=Ee;const Jc=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},rt={fastOutSlowInMax:Us,fastOutSlowInMid:ei,fastOutSlowInMin:xc,slowOutFastInMax:$c,slowOutFastInMid:Jr,slowOutFastInMin:yc,fastEase:kc,normalEase:Qo,nullEasing:Ks},ed=f`
38
+ ${T("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${R};font-size:${O};border-radius:${ae};color:${J};background-color:${vs};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ae}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${te}) ${V}}: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 ${Mt}) ${V}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${ao};font-weight:${A}}: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:${X}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${bt}}: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:${Wo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${P}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ye}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Qr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Is}}:host([data-color='brand']){color:${gs};background-color:${ys}}:host([data-color='dark-red']){color:${Cl};background-color:${wl}}:host([data-color='cranberry']){color:${yl};background-color:${$l}}:host([data-color='red']){color:${Xa};background-color:${Wr}}:host([data-color='pumpkin']){color:${Zl};background-color:${Ql}}:host([data-color='peach']){color:${ql};background-color:${jl}}:host([data-color='marigold']){color:${nl};background-color:${sl}}:host([data-color='gold']){color:${zl};background-color:${Bl}}:host([data-color='brass']){color:${fl};background-color:${pl}}:host([data-color='brown']){color:${bl};background-color:${gl}}:host([data-color='forest']){color:${Pl};background-color:${Sl}}:host([data-color='seafoam']){color:${ic};background-color:${rc}}:host([data-color='dark-green']){color:${kl};background-color:${xl}}:host([data-color='light-teal']){color:${El};background-color:${Al}}:host([data-color='teal']){color:${lc};background-color:${ac}}:host([data-color='steel']){color:${nc};background-color:${sc}}:host([data-color='blue']){color:${ul};background-color:${hl}}:host([data-color='royal-blue']){color:${oc};background-color:${tc}}:host([data-color='cornflower']){color:${vl};background-color:${ml}}:host([data-color='navy']){color:${Vl};background-color:${Hl}}:host([data-color='lavender']){color:${Fl};background-color:${Ol}}:host([data-color='purple']){color:${ec};background-color:${Jl}}:host([data-color='grape']){color:${Tl};background-color:${Il}}:host([data-color='lilac']){color:${Ll};background-color:${_l}}:host([data-color='pink']){color:${Gl};background-color:${Wl}}:host([data-color='magenta']){color:${Rl};background-color:${Ml}}:host([data-color='plum']){color:${Yl};background-color:${Kl}}:host([data-color='beige']){color:${dl};background-color:${cl}}:host([data-color='mink']){color:${Nl};background-color:${Dl}}:host([data-color='platinum']){color:${Ul};background-color:${Xl}}:host([data-color='anchor']){color:${ll};background-color:${al}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Yo},${Ko};transition-delay:${rt.fastEase},${rt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Yo}),${Xs};transition-delay:${rt.fastEase}),${rt.nullEasing})}:host([active])::before{box-shadow:${uc};border-style:solid;border-color:${ys}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Mt});border-width:${Mt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${et});border-width:${et}}: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 * ${Ns});border-width:${Ns}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${lo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Ds}}: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:${pc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Yo},${Ko};transition-delay:${rt.fastOutSlowInMin},${rt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Yo},${Xs};transition-delay:${rt.fastOutSlowInMin},${rt.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}}`,td=v`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function od(){return v`<template role="img" data-color=${o=>o.generateColor()}><slot>${o=>o.name||o.initials?o.generateInitials():td}</slot><slot name="badge"></slot></template>`}const rd=od(),id=Zc.compose({name:`${b.prefix}-avatar`,template:rd,styles:ed});id.define(b.registry);const sd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},nd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,Zo=(o,e,t,r)=>{for(var i=r>1?void 0:r?ld(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ad(e,t,i),i};class Rt extends w{constructor(){super(...arguments),this.appearance=sd.filled,this.color=nd.brand}}Zo([a],Rt.prototype,"appearance",2),Zo([a],Rt.prototype,"color",2),Zo([a],Rt.prototype,"shape",2),Zo([a],Rt.prototype,"size",2),Fe(Rt,je);const Jo=mt,Zs=f.partial`
39
+ ${T("inline-flex")} :host {
40
40
  position: relative;
41
41
  box-sizing: border-box;
42
42
  align-items: center;
43
43
  justify-content: center;
44
44
  font-family: ${y};
45
- font-weight: ${M};
46
- font-size: ${U};
47
- line-height: ${ge};
45
+ font-weight: ${R};
46
+ font-size: ${X};
47
+ line-height: ${pe};
48
48
  min-width: 20px;
49
49
  height: 20px;
50
- padding-inline: calc(${we} + ${er});
51
- border-radius: ${le};
52
- border-color: ${Ce};
53
- background-color: ${jo};
54
- color: ${xe};
50
+ padding-inline: calc(${xe} + ${Jo});
51
+ border-radius: ${ae};
52
+ border-color: ${we};
53
+ background-color: ${Vo};
54
+ color: ${$e};
55
55
  contain: content;
56
56
  }
57
57
 
@@ -67,11 +67,11 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
67
67
  bottom: 0;
68
68
  right: 0;
69
69
  border-style: solid;
70
- border-width: ${oe};
70
+ border-width: ${te};
71
71
  border-color: inherit;
72
72
  border-radius: inherit;
73
73
  }
74
- `,tn=f.partial`
74
+ `,Js=f.partial`
75
75
  :host([size='tiny']) {
76
76
  width: 6px;
77
77
  height: 6px;
@@ -97,9 +97,9 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
97
97
  :host([size='small']) {
98
98
  min-width: 16px;
99
99
  height: 16px;
100
- font-size: ${ho};
101
- line-height: ${Uo};
102
- padding-inline: calc(${$t} + ${er});
100
+ font-size: ${ao};
101
+ line-height: ${Xo};
102
+ padding-inline: calc(${mt} + ${Jo});
103
103
  }
104
104
  :host([size='small']) ::slotted(svg) {
105
105
  font-size: 12px;
@@ -107,9 +107,9 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
107
107
  :host([size='large']) {
108
108
  min-width: 24px;
109
109
  height: 24px;
110
- font-size: ${U};
111
- line-height: ${ge};
112
- padding-inline: calc(${we} + ${er});
110
+ font-size: ${X};
111
+ line-height: ${pe};
112
+ padding-inline: calc(${xe} + ${Jo});
113
113
  }
114
114
  :host([size='large']) ::slotted(svg) {
115
115
  font-size: 16px;
@@ -117,263 +117,263 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
117
117
  :host([size='extra-large']) {
118
118
  min-width: 32px;
119
119
  height: 32px;
120
- font-size: ${U};
121
- line-height: ${ge};
122
- padding-inline: calc(${ot} + ${er});
120
+ font-size: ${X};
121
+ line-height: ${pe};
122
+ padding-inline: calc(${tt} + ${Jo});
123
123
  }
124
124
  :host([size='extra-large']) ::slotted(svg) {
125
125
  font-size: 20px;
126
126
  }
127
- `,on=f.partial`
127
+ `,en=f.partial`
128
128
  :host([color='danger']) {
129
- background-color: ${Kr};
130
- color: ${xe};
129
+ background-color: ${Gr};
130
+ color: ${$e};
131
131
  }
132
132
 
133
133
  :host([color='important']) {
134
- background-color: ${N};
135
- color: ${X};
134
+ background-color: ${M};
135
+ color: ${V};
136
136
  }
137
137
 
138
138
  :host([color='informative']) {
139
- background-color: ${Ha};
140
- color: ${ee};
139
+ background-color: ${Ma};
140
+ color: ${J};
141
141
  }
142
142
 
143
143
  :host([color='severe']) {
144
- background-color: ${Qr};
145
- color: ${xe};
144
+ background-color: ${Ur};
145
+ color: ${$e};
146
146
  }
147
147
 
148
148
  :host([color='subtle']) {
149
- background-color: ${X};
150
- color: ${N};
149
+ background-color: ${V};
150
+ color: ${M};
151
151
  }
152
152
 
153
153
  :host([color='success']) {
154
- background-color: ${Yr};
155
- color: ${xe};
154
+ background-color: ${Xr};
155
+ color: ${$e};
156
156
  }
157
157
 
158
158
  :host([color='warning']) {
159
- background-color: ${al};
160
- color: ${Ra};
159
+ background-color: ${rl};
160
+ color: ${_a};
161
161
  }
162
- `,rn=f.partial`
162
+ `,tn=f.partial`
163
163
  :host([appearance='ghost']) {
164
- color: ${Vr};
164
+ color: ${Dr};
165
165
  background-color: initial;
166
166
  }
167
167
 
168
168
  :host([appearance='ghost'][color='danger']) {
169
- color: ${Ts};
169
+ color: ${Ss};
170
170
  }
171
171
 
172
172
  :host([appearance='ghost'][color='important']) {
173
- color: ${N};
173
+ color: ${M};
174
174
  }
175
175
 
176
176
  :host([appearance='ghost'][color='informative']) {
177
- color: ${ee};
177
+ color: ${J};
178
178
  }
179
179
 
180
180
  :host([appearance='ghost'][color='severe']) {
181
- color: ${Bs};
181
+ color: ${zs};
182
182
  }
183
183
 
184
184
  :host([appearance='ghost'][color='subtle']) {
185
- color: ${No};
185
+ color: ${Do};
186
186
  }
187
187
 
188
188
  :host([appearance='ghost'][color='success']) {
189
- color: ${ol};
189
+ color: ${Za};
190
190
  }
191
191
 
192
192
  :host([appearance='ghost'][color='warning']) {
193
- color: ${Zr};
193
+ color: ${Kr};
194
194
  }
195
- `,fd=f.partial`
195
+ `,cd=f.partial`
196
196
  :host([appearance='outline']) {
197
197
  border-color: currentColor;
198
- color: ${Vr};
198
+ color: ${Dr};
199
199
  background-color: initial;
200
200
  }
201
201
 
202
202
  :host([appearance='outline'][color='danger']) {
203
- color: ${Ts};
203
+ color: ${Ss};
204
204
  }
205
205
 
206
206
  :host([appearance='outline'][color='important']) {
207
- color: ${ee};
207
+ color: ${J};
208
208
  border-color: ${Ge};
209
209
  }
210
210
 
211
211
  :host([appearance='outline'][color='informative']) {
212
- color: ${ee};
213
- border-color: ${lo};
212
+ color: ${J};
213
+ border-color: ${so};
214
214
  }
215
215
 
216
216
  :host([appearance='outline'][color='severe']) {
217
- color: ${Bs};
217
+ color: ${zs};
218
218
  }
219
219
 
220
220
  :host([appearance='outline'][color='subtle']) {
221
- color: ${bs};
221
+ color: ${gs};
222
222
  }
223
223
 
224
224
  :host([appearance='outline'][color='success']) {
225
- color: ${tl};
225
+ color: ${Qa};
226
226
  }
227
227
 
228
228
  :host([appearance='outline'][color='warning']) {
229
- color: ${Zr};
229
+ color: ${Kr};
230
230
  }
231
- `,gd=f.partial`
231
+ `,dd=f.partial`
232
232
  :host([appearance='tint']) {
233
- background-color: ${io};
234
- color: ${Da};
235
- border-color: ${ws};
233
+ background-color: ${to};
234
+ color: ${Ea};
235
+ border-color: ${ks};
236
236
  }
237
237
 
238
238
  :host([appearance='tint'][color='danger']) {
239
- background-color: ${Ka};
240
- color: ${Ss};
241
- border-color: ${Ya};
239
+ background-color: ${Wa};
240
+ color: ${Cs};
241
+ border-color: ${Ga};
242
242
  }
243
243
 
244
244
  :host([appearance='tint'][color='important']) {
245
- background-color: ${ee};
246
- color: ${X};
247
- border-color: ${Ce};
245
+ background-color: ${J};
246
+ color: ${V};
247
+ border-color: ${we};
248
248
  }
249
249
 
250
250
  :host([appearance='tint'][color='informative']) {
251
- background-color: ${Na};
252
- color: ${ee};
253
- border-color: ${lo};
251
+ background-color: ${La};
252
+ color: ${J};
253
+ border-color: ${so};
254
254
  }
255
255
 
256
256
  :host([appearance='tint'][color='severe']) {
257
- background-color: ${rl};
258
- color: ${sl};
259
- border-color: ${il};
257
+ background-color: ${Ja};
258
+ color: ${tl};
259
+ border-color: ${el};
260
260
  }
261
261
 
262
262
  :host([appearance='tint'][color='subtle']) {
263
- background-color: ${X};
264
- color: ${ee};
265
- border-color: ${lo};
263
+ background-color: ${V};
264
+ color: ${J};
265
+ border-color: ${so};
266
266
  }
267
267
 
268
268
  :host([appearance='tint'][color='success']) {
269
- background-color: ${Za};
270
- color: ${el};
271
- border-color: ${Ja};
269
+ background-color: ${Ua};
270
+ color: ${Ya};
271
+ border-color: ${Ka};
272
272
  }
273
273
 
274
274
  :host([appearance='tint'][color='warning']) {
275
- background-color: ${nl};
276
- color: ${Zr};
277
- border-color: ${ll};
275
+ background-color: ${ol};
276
+ color: ${Kr};
277
+ border-color: ${il};
278
278
  }
279
279
  `;f.partial`
280
280
  font-family: ${y};
281
- font-size: ${F};
281
+ font-size: ${O};
282
282
  line-height: ${E};
283
- font-weight: ${O};
283
+ font-weight: ${A};
284
284
  `,f.partial`
285
285
  font-family: ${y};
286
- font-size: ${F};
286
+ font-size: ${O};
287
287
  line-height: ${E};
288
- font-weight: ${M};
288
+ font-weight: ${R};
289
289
  `,f.partial`
290
290
  font-family: ${y};
291
- font-size: ${F};
291
+ font-size: ${O};
292
292
  line-height: ${E};
293
- font-weight: ${Xo};
293
+ font-weight: ${Go};
294
294
  `,f.partial`
295
295
  font-family: ${y};
296
- font-size: ${fe};
297
- line-height: ${Se};
298
- font-weight: ${O};
296
+ font-size: ${ue};
297
+ line-height: ${Ce};
298
+ font-weight: ${A};
299
299
  `,f.partial`
300
300
  font-family: ${y};
301
- font-size: ${U};
302
- line-height: ${ge};
303
- font-weight: ${O};
301
+ font-size: ${X};
302
+ line-height: ${pe};
303
+ font-weight: ${A};
304
304
  `,f.partial`
305
305
  font-family: ${y};
306
- font-size: ${U};
307
- line-height: ${ge};
308
- font-weight: ${M};
306
+ font-size: ${X};
307
+ line-height: ${pe};
308
+ font-weight: ${R};
309
309
  `,f.partial`
310
310
  font-family: ${y};
311
- font-size: ${U};
312
- line-height: ${ge};
313
- font-weight: ${Xo};
311
+ font-size: ${X};
312
+ line-height: ${pe};
313
+ font-weight: ${Go};
314
314
  `,f.partial`
315
315
  font-family: ${y};
316
- font-size: ${ho};
317
- line-height: ${Uo};
318
- font-weight: ${O};
316
+ font-size: ${ao};
317
+ line-height: ${Xo};
318
+ font-weight: ${A};
319
319
  `,f.partial`
320
320
  font-family: ${y};
321
- font-size: ${ho};
322
- line-height: ${Uo};
323
- font-weight: ${M};
321
+ font-size: ${ao};
322
+ line-height: ${Xo};
323
+ font-weight: ${R};
324
324
  `,f.partial`
325
325
  font-family: ${y};
326
- font-size: ${vt};
327
- line-height: ${Ko};
328
- font-weight: ${M};
326
+ font-size: ${bt};
327
+ line-height: ${Uo};
328
+ font-weight: ${R};
329
329
  `,f.partial`
330
330
  font-family: ${y};
331
- font-size: ${fe};
332
- line-height: ${Se};
333
- font-weight: ${M};
331
+ font-size: ${ue};
332
+ line-height: ${Ce};
333
+ font-weight: ${R};
334
334
  `,f.partial`
335
335
  font-family: ${y};
336
- font-size: ${fe};
337
- line-height: ${Se};
338
- font-weight: ${Xo};
336
+ font-size: ${ue};
337
+ line-height: ${Ce};
338
+ font-weight: ${Go};
339
339
  `,f.partial`
340
340
  font-family: ${y};
341
- font-size: ${As};
342
- line-height: ${Ms};
343
- font-weight: ${M};
341
+ font-size: ${Os};
342
+ line-height: ${Ls};
343
+ font-weight: ${R};
344
344
  `,f.partial`
345
345
  font-family: ${y};
346
- font-size: ${Fs};
346
+ font-size: ${Ts};
347
347
  line-height: ${_s};
348
- font-weight: ${M};
348
+ font-weight: ${R};
349
349
  `,f.partial`
350
350
  font-family: ${y};
351
- font-size: ${Go};
352
- line-height: ${Ls};
353
- font-weight: ${M};
351
+ font-size: ${Wo};
352
+ line-height: ${Es};
353
+ font-weight: ${R};
354
354
  `,f.partial`
355
355
  font-family: ${y};
356
- font-size: ${Os};
357
- line-height: ${Ds};
358
- font-weight: ${M};
356
+ font-size: ${Fs};
357
+ line-height: ${Ms};
358
+ font-weight: ${R};
359
359
  `,f.partial`
360
360
  font-family: ${y};
361
- font-size: ${Es};
361
+ font-size: ${As};
362
362
  line-height: ${Rs};
363
- font-weight: ${M};
364
- `;const bd=f`
365
- :host([shape='square']){border-radius:${Jr}}:host([shape='rounded']){border-radius:${T}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${ke}}${tn}
366
- ${on}
367
- ${rn}
368
- ${fd}
369
- ${gd}
363
+ font-weight: ${R};
364
+ `;const hd=f`
365
+ :host([shape='square']){border-radius:${Yr}}:host([shape='rounded']){border-radius:${P}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${ye}}${Js}
370
366
  ${en}
371
- `.withBehaviors(Ae(f`
372
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function sn(o={}){return v` ${We(o)}<slot>${J(o.defaultContent)}</slot>${qe(o)} `}const md=sn(),vd=Ht.compose({name:`${b.prefix}-badge`,template:md,styles:bd});vd.define(b.registry);const tr={submit:"submit",reset:"reset",button:"button"};var $d=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,j=(o,e,t,r)=>{for(var i=r>1?void 0:r?yd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&$d(e,t,i),i};class A extends C{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==tr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===gt||e.key===Lt){this.click();return}return!0}press(){switch(this.type){case tr.reset:{this.resetForm();break}case tr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==tr.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}A.formAssociated=!0,j([a],A.prototype,"appearance",2),j([a({mode:"boolean"})],A.prototype,"autofocus",2),j([$],A.prototype,"defaultSlottedContent",2),j([a({mode:"boolean"})],A.prototype,"disabled",2),j([a({attribute:"disabled-focusable",mode:"boolean"})],A.prototype,"disabledFocusable",2),j([a({attribute:"formaction"})],A.prototype,"formAction",2),j([a({attribute:"form"})],A.prototype,"formAttribute",2),j([a({attribute:"formenctype"})],A.prototype,"formEnctype",2),j([a({attribute:"formmethod"})],A.prototype,"formMethod",2),j([a({attribute:"formnovalidate",mode:"boolean"})],A.prototype,"formNoValidate",2),j([a({attribute:"formtarget"})],A.prototype,"formTarget",2),j([a({attribute:"icon-only",mode:"boolean"})],A.prototype,"iconOnly",2),j([a],A.prototype,"name",2),j([a],A.prototype,"shape",2),j([a],A.prototype,"size",2),j([a],A.prototype,"type",2),j([a],A.prototype,"value",2),Oe(A,je);const or=f`
373
- ${z("inline-flex")}
374
-
375
- :host{--icon-spacing:${ot};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:${X};color:${N};border:${oe} solid ${mt};padding:0 ${yt};min-width:96px;border-radius:${T};font-size:${F};font-family:${y};font-weight:${M};line-height:${E};transition-duration:${Yo};transition-property:background,border,color;transition-timing-function:${Zo};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ho};color:${Dr};border-color:${ao}}:host(:hover:active){background-color:${jr};border-color:${qo};color:${gs};outline-style:none}:host(:focus-visible){border-color:${Ce};outline:${Nt}) solid ${Ce};box-shadow:${uo},0 0 0 2px ${Ee}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${we};min-height:24px;min-width:64px;padding:0 ${K};border-radius:${ke};font-size:${U};line-height:${ge};font-weight:${O}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${ei};padding:0 ${Vs};font-size:${fe};line-height:${Se}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${le}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${Jr}}:host([appearance='primary']){background-color:${jo};color:${xe};border-color:transparent}:host([appearance='primary']:hover){background-color:${qr}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${xe}}:host([appearance='primary']:hover:active){background-color:${Wr}}:host([appearance='primary']:focus-visible){border-color:${xe};box-shadow:${ti},0 0 0 2px ${Ee}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active){border-color:transparent}:host([appearance='outline']){background-color:${te}}:host([appearance='outline']:hover){background-color:${Dt}}:host([appearance='outline']:hover:active){background-color:${eo}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active){background-color:${te}}:host([appearance='subtle']){background-color:${ys};color:${pe};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Vo};color:${Qt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Jt};color:${Zt};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active){background-color:${te};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${_t}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Mt}}:host([appearance='transparent']){background-color:${te};color:${pe}}:host([appearance='transparent']:hover){background-color:${Dt};color:${_t}}:host([appearance='transparent']:hover:active){background-color:${eo};color:${Mt}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active){border-color:transparent;background-color:${te}}: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:${to};border-color:${et};color:${k};cursor:not-allowed}`.withBehaviors(Ae(f`
376
- :host([appearance='transparent']:hover){border-color:Highlight}`));function si(o={}){return v`<template tabindex="${e=>e.disabled?-1:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${We(o)}<span class="content" part="content"><slot ${G("defaultSlottedContent")}></slot></span>${qe(o)}</template>`}const xd=si(),kd=A.compose({name:`${b.prefix}-button`,template:xd,styles:or});kd.define(b.registry);const nn="form-associated-proxy",an="ElementInternals",ln=an in window&&"setFormValue"in window[an].prototype,cn=new WeakMap;function dn(o){const e=class extends o{constructor(...t){super(...t),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return ln}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?r.concat(Array.from(t)):r;return Object.freeze(i)}else return Pi}valueChanged(t,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),he.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),he.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!ln)return null;let t=cn.get(this);return t||(t=this.attachInternals(),cn.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,r,i){this.elementInternals?this.elementInternals.setValidity(t,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",nn),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",nn)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,r){this.elementInternals&&this.elementInternals.setFormValue(t,r||t)}_keypressHandler(t){switch(t.key){case gt:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(t){t.stopPropagation()}};return a({mode:"boolean"})(e.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),a({attribute:"current-value"})(e.prototype,"currentValue"),a(e.prototype,"name"),a({mode:"boolean"})(e.prototype,"required"),$(e.prototype,"value"),e}function ni(o){class e extends dn(o){}class t extends e{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,s){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,s){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:es})(t.prototype,"currentChecked"),$(t.prototype,"defaultChecked"),$(t.prototype,"checked"),t}class wd extends C{}class Cd extends ni(wd){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Sd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Td(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Sd(e,t,i),i};class Vt extends Cd{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case Lt:this.toggleChecked();break}},this.clickHandler=e=>{this.disabled||this.toggleChecked()},this.proxy.setAttribute("type","checkbox")}toggleChecked(){this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}}fo([a],Vt.prototype,"shape",2),fo([a],Vt.prototype,"size",2),fo([a({attribute:"label-position"})],Vt.prototype,"labelPosition",2),fo([$],Vt.prototype,"defaultSlottedNodes",2),fo([$],Vt.prototype,"indeterminate",2);const Pd=v.partial(`
367
+ ${tn}
368
+ ${cd}
369
+ ${dd}
370
+ ${Zs}
371
+ `.withBehaviors(Oe(f`
372
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function on(o={}){return v` ${We(o)}<slot>${Z(o.defaultContent)}</slot>${qe(o)} `}const ud=on(),pd=Rt.compose({name:`${b.prefix}-badge`,template:ud,styles:hd});pd.define(b.registry);const er={submit:"submit",reset:"reset",button:"button"};var fd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,q=(o,e,t,r)=>{for(var i=r>1?void 0:r?gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fd(e,t,i),i};class F extends w{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==er.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===pt||e.key===Ft){this.click();return}return!0}press(){switch(this.type){case er.reset:{this.resetForm();break}case er.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==er.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}F.formAssociated=!0,q([a],F.prototype,"appearance",2),q([a({mode:"boolean"})],F.prototype,"autofocus",2),q([$],F.prototype,"defaultSlottedContent",2),q([a({mode:"boolean"})],F.prototype,"disabled",2),q([a({attribute:"disabled-focusable",mode:"boolean"})],F.prototype,"disabledFocusable",2),q([a({attribute:"formaction"})],F.prototype,"formAction",2),q([a({attribute:"form"})],F.prototype,"formAttribute",2),q([a({attribute:"formenctype"})],F.prototype,"formEnctype",2),q([a({attribute:"formmethod"})],F.prototype,"formMethod",2),q([a({attribute:"formnovalidate",mode:"boolean"})],F.prototype,"formNoValidate",2),q([a({attribute:"formtarget"})],F.prototype,"formTarget",2),q([a({attribute:"icon-only",mode:"boolean"})],F.prototype,"iconOnly",2),q([a],F.prototype,"name",2),q([a],F.prototype,"shape",2),q([a],F.prototype,"size",2),q([a],F.prototype,"type",2),q([a],F.prototype,"value",2),Fe(F,je);const tr=f`
373
+ ${T("inline-flex")}
374
+
375
+ :host{--icon-spacing:${tt};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:${V};color:${M};border:${te} solid ${gt};padding:0 ${vt};min-width:96px;border-radius:${P};font-size:${O};font-family:${y};font-weight:${R};line-height:${E};transition-duration:${Ko};transition-property:background,border,color;transition-timing-function:${Qo};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${No};color:${_r};border-color:${io}}:host(:hover:active){background-color:${Nr};border-color:${jo};color:${fs};outline-style:none}:host(:focus-visible){border-color:${we};outline:${Mt}) solid ${we};box-shadow:${lo},0 0 0 2px ${Ae}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${xe};min-height:24px;min-width:64px;padding:0 ${oe};border-radius:${ye};font-size:${X};line-height:${pe};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Qr};padding:0 ${Hs};font-size:${ue};line-height:${Ce}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${ae}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${Yr}}:host([appearance='primary']){background-color:${Vo};color:${$e};border-color:transparent}:host([appearance='primary']:hover){background-color:${Hr}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${$e}}:host([appearance='primary']:hover:active){background-color:${Vr}}:host([appearance='primary']:focus-visible){border-color:${$e};box-shadow:${Zr},0 0 0 2px ${Ae}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active){border-color:transparent}:host([appearance='outline']){background-color:${ee}}:host([appearance='outline']:hover){background-color:${_t}}:host([appearance='outline']:hover:active){background-color:${Qt}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active){background-color:${ee}}:host([appearance='subtle']){background-color:${$s};color:${he};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Ho};color:${Ut};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Yt};color:${Kt};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active){background-color:${ee};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${At}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Et}}:host([appearance='transparent']){background-color:${ee};color:${he}}:host([appearance='transparent']:hover){background-color:${_t};color:${At}}:host([appearance='transparent']:hover:active){background-color:${Qt};color:${Et}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active){border-color:transparent;background-color:${ee}}: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:${Zt};border-color:${Je};color:${k};cursor:not-allowed}`.withBehaviors(Oe(f`
376
+ :host([appearance='transparent']:hover){border-color:Highlight}`));function ii(o={}){return v`<template tabindex="${e=>e.disabled?-1:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${We(o)}<span class="content" part="content"><slot ${Q("defaultSlottedContent")}></slot></span>${qe(o)}</template>`}const bd=ii(),md=F.compose({name:`${b.prefix}-button`,template:bd,styles:tr});md.define(b.registry);const rn="form-associated-proxy",sn="ElementInternals",nn=sn in window&&"setFormValue"in window[sn].prototype,an=new WeakMap;function ln(o){const e=class extends o{constructor(...t){super(...t),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return nn}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?r.concat(Array.from(t)):r;return Object.freeze(i)}else return Pi}valueChanged(t,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),ke.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),ke.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!nn)return null;let t=an.get(this);return t||(t=this.attachInternals(),an.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,r,i){this.elementInternals?this.elementInternals.setValidity(t,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",rn),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",rn)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,r){this.elementInternals&&this.elementInternals.setFormValue(t,r||t)}_keypressHandler(t){switch(t.key){case pt:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(t){t.stopPropagation()}};return a({mode:"boolean"})(e.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),a({attribute:"current-value"})(e.prototype,"currentValue"),a(e.prototype,"name"),a({mode:"boolean"})(e.prototype,"required"),$(e.prototype,"value"),e}function si(o){class e extends ln(o){}class t extends e{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,s){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,s){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:Ji})(t.prototype,"currentChecked"),$(t.prototype,"defaultChecked"),$(t.prototype,"checked"),t}class vd extends w{}class $d extends si(vd){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var yd=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,uo=(o,e,t,r)=>{for(var i=r>1?void 0:r?xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&yd(e,t,i),i};class Dt extends $d{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case Ft:this.toggleChecked();break}},this.clickHandler=e=>{this.disabled||this.toggleChecked()},this.proxy.setAttribute("type","checkbox")}toggleChecked(){this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}}uo([a],Dt.prototype,"shape",2),uo([a],Dt.prototype,"size",2),uo([a({attribute:"label-position"})],Dt.prototype,"labelPosition",2),uo([$],Dt.prototype,"defaultSlottedNodes",2),uo([$],Dt.prototype,"indeterminate",2);const kd=v.partial(`
377
377
  <div class="checked-indicator">
378
378
  <svg fill="currentColor"
379
379
  aria-hidden="true"
@@ -385,26 +385,24 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
385
385
  </path>
386
386
  </svg>
387
387
  </div>
388
- `),Id=v.partial(`
388
+ `),wd=v.partial(`
389
389
  <div class="indeterminate-indicator"></div>
390
- `);function Bd(o={}){return v`<template role="checkbox" aria-checked="${e=>e.indeterminate?"mixed":e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${J(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${J(o.indeterminateIndicator)}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${G("defaultSlottedNodes")}></slot></label></template>`}const zd=Bd({checkedIndicator:Pd,indeterminateIndicator:Id}),Fd=f`
391
- ${z("inline-flex")}
392
- :host{align-items:center;outline:none;user-select:none;vertical-align:middle;cursor:pointer;font-family:${y};font-size:${F};line-height:${E};color:${ee};position:relative}:host(:focus-visible)::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${T};outline:none;border:2px solid ${co};box-shadow:inset 0 0 0 1px ${Ee}}.control{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;margin:${H} ${K};fill:currentcolor;height:16px;width:16px;border:${oe} solid ${Ge};border-radius:${ke};outline:none}.label{align-self:center;cursor:inherit;padding-inline:${K};padding-bottom:${H};padding-top:${H}}.label__hidden{display:none;visibility:hidden}.checked-indicator{display:flex;align-items:center;justify-content:center;color:${No};font-size:12px;margin:auto;opacity:0}.indeterminate-indicator{position:absolute;width:8px;height:8px;border-radius:${ke};background-color:${Rr};opacity:0}:host(:hover){color:${pe}}:host(:hover) .control{border-color:${so}}:host(:hover) .indeterminate-indicator{background-color:${Nr}}:host(:active) .control{border-color:${no}}:host(:active) .indeterminate-indicator{background-color:${Hr}}:host([aria-checked='true']),:host([aria-checked='mixed']),:host(:active){color:${N}}:host([aria-checked='true']) .control{background-color:${Rt}}:host([aria-checked='true']:hover) .control{border-color:${Wo};background-color:${oo}}:host([aria-checked='true']:active) .control{background-color:${ro}}:host([aria-checked='mixed']:hover) .control{border-color:${Wo}}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='mixed']) .indeterminate-indicator{opacity:1}:host([aria-checked='true']) .control,:host([aria-checked='mixed']) .control{border-color:${Gr}}:host([aria-checked='mixed']:active) .control,:host([aria-checked='true']:active) .control{border-color:${Xr}}:host([label-position='before']){flex-direction:row-reverse}:host([label-position='before']) .label{padding-inline:${K} ${we};padding-top:${H};padding-bottom:${H}}:host([size='large']) .control{width:20px;height:20px}:host([size='large']) .checked-indicator{font-size:16px;height:20px}:host([aria-checked='mixed'][size='large']) .indeterminate-indicator{height:10px;width:10px}:host([shape='circular']) .control,:host([shape='circular']) .indeterminate-indicator{border-radius:${le}}:host([disabled]) .control,:host([aria-checked='mixed'][disabled]) .control,:host([aria-checked='true'][disabled]) .control{background-color:${Dt};border-color:${et}}:host([aria-checked='true'][disabled]) .checked-indicator,:host([disabled]) ::slotted([slot='start']),:host([disabled]) .label,:host([aria-checked='mixed'][disabled]) .label,:host([aria-checked='true'][disabled]) .label{color:${k}}:host([disabled]) .indeterminate-indicator{background-color:${k}}`,Ad=Vt.compose({name:`${b.prefix}-checkbox`,template:zd,styles:Fd});Ad.define(b.registry);class Od extends A{}const Ed=f`
393
- ${or}
394
-
395
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${F};line-height:${E}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${pe};line-height:100%;font-size:${U};font-weight:${O}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Qt}}:host(:active) ::slotted([slot='description']){color:${Zt}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
396
- ::slotted([slot='description']){color:${xe}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
397
- ::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${pe}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${_t}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Mt}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
398
- ::slotted([slot='description']){color:${k}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ot}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${we}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${K}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fe};line-height:${Se}}:host([size='large']) ::slotted([slot='description']){font-size:${F}}`;function Ld(o={}){return v`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?-1:0}">${We(o)}<span class="content" part="content"><slot ${G("defaultSlottedContent")}></slot><slot name="description"></slot></span>${qe(o)}</template>`}const _d=Ld(),Md=Od.compose({name:`${b.prefix}-compound-button`,template:_d,styles:Ed});Md.define(b.registry);var Dd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dd(e,t,i),i};class _e extends C{constructor(){super(...arguments),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}`}}st([a],_e.prototype,"appearance",2),st([a],_e.prototype,"color",2),st([a],_e.prototype,"shape",2),st([a],_e.prototype,"size",2),st([a({converter:ue})],_e.prototype,"count",2),st([a({attribute:"overflow-count",converter:ue})],_e.prototype,"overflowCount",2),st([a({attribute:"show-zero",mode:"boolean"})],_e.prototype,"showZero",2),st([a({mode:"boolean"})],_e.prototype,"dot",2),Oe(_e,je);const Nd=f`
399
- :host([shape='rounded']){border-radius:${T}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${ke}}${tn}
400
- ${on}
401
- ${rn}
390
+ `);function Cd(o={}){return v`<template role="checkbox" aria-checked="${e=>e.indeterminate?"mixed":e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${Z(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${Z(o.indeterminateIndicator)}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Q("defaultSlottedNodes")}></slot></label></template>`}const Sd=Cd({checkedIndicator:kd,indeterminateIndicator:wd}),Pd=f`
391
+ ${T("inline-flex")}
392
+ :host{align-items:center;outline:none;user-select:none;vertical-align:middle;cursor:pointer;font-family:${y};font-size:${O};line-height:${E};color:${J};position:relative}:host(:focus-visible)::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${P};outline:none;border:2px solid ${no};box-shadow:inset 0 0 0 1px ${Ae}}.control{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;margin:${D} ${oe};fill:currentcolor;height:16px;width:16px;border:${te} solid ${Ge};border-radius:${ye};outline:none}.label{align-self:center;cursor:inherit;padding-inline:${oe};padding-bottom:${D};padding-top:${D}}.label__hidden{display:none;visibility:hidden}.checked-indicator{display:flex;align-items:center;justify-content:center;color:${Do};font-size:12px;margin:auto;opacity:0}.indeterminate-indicator{position:absolute;width:8px;height:8px;border-radius:${ye};background-color:${Lr};opacity:0}:host(:hover){color:${he}}:host(:hover) .control{border-color:${oo}}:host(:hover) .indeterminate-indicator{background-color:${Mr}}:host(:active) .control{border-color:${ro}}:host(:active) .indeterminate-indicator{background-color:${Rr}}:host([aria-checked='true']),:host([aria-checked='mixed']),:host(:active){color:${M}}:host([aria-checked='true']) .control{background-color:${Lt}}:host([aria-checked='true']:hover) .control{border-color:${qo};background-color:${Jt}}:host([aria-checked='true']:active) .control{background-color:${eo}}:host([aria-checked='mixed']:hover) .control{border-color:${qo}}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='mixed']) .indeterminate-indicator{opacity:1}:host([aria-checked='true']) .control,:host([aria-checked='mixed']) .control{border-color:${jr}}:host([aria-checked='mixed']:active) .control,:host([aria-checked='true']:active) .control{border-color:${qr}}:host([label-position='before']){flex-direction:row-reverse}:host([label-position='before']) .label{padding-inline:${oe} ${xe};padding-top:${D};padding-bottom:${D}}:host([size='large']) .control{width:20px;height:20px}:host([size='large']) .checked-indicator{font-size:16px;height:20px}:host([aria-checked='mixed'][size='large']) .indeterminate-indicator{height:10px;width:10px}:host([shape='circular']) .control,:host([shape='circular']) .indeterminate-indicator{border-radius:${ae}}:host([disabled]) .control,:host([aria-checked='mixed'][disabled]) .control,:host([aria-checked='true'][disabled]) .control{background-color:${_t};border-color:${Je}}:host([aria-checked='true'][disabled]) .checked-indicator,:host([disabled]) ::slotted([slot='start']),:host([disabled]) .label,:host([aria-checked='mixed'][disabled]) .label,:host([aria-checked='true'][disabled]) .label{color:${k}}:host([disabled]) .indeterminate-indicator{background-color:${k}}`,Bd=Dt.compose({name:`${b.prefix}-checkbox`,template:Sd,styles:Pd});Bd.define(b.registry);class zd extends F{}const Id=f`
393
+ ${tr}
394
+
395
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${E}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${he};line-height:100%;font-size:${X};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Ut}}:host(:active) ::slotted([slot='description']){color:${Kt}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
396
+ ::slotted([slot='description']){color:${$e}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
397
+ ::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${he}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${At}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Et}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
398
+ ::slotted([slot='description']){color:${k}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${tt}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${xe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${oe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${Ce}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}`;function Td(o={}){return v`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?-1:0}">${We(o)}<span class="content" part="content"><slot ${Q("defaultSlottedContent")}></slot><slot name="description"></slot></span>${qe(o)}</template>`}const Od=Td(),Fd=zd.compose({name:`${b.prefix}-compound-button`,template:Od,styles:Id});Fd.define(b.registry);var Ad=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,it=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ad(e,t,i),i};class _e extends w{constructor(){super(...arguments),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}`}}it([a],_e.prototype,"appearance",2),it([a],_e.prototype,"color",2),it([a],_e.prototype,"shape",2),it([a],_e.prototype,"size",2),it([a({converter:de})],_e.prototype,"count",2),it([a({attribute:"overflow-count",converter:de})],_e.prototype,"overflowCount",2),it([a({attribute:"show-zero",mode:"boolean"})],_e.prototype,"showZero",2),it([a({mode:"boolean"})],_e.prototype,"dot",2),Fe(_e,je);const _d=f`
399
+ :host([shape='rounded']){border-radius:${P}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${ye}}${Js}
402
400
  ${en}
401
+ ${tn}
402
+ ${Zs}
403
403
 
404
- :host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Hd(o={}){return sn({defaultContent:v`${e=>e.setCount()}`})}const Vd=Hd(),jd=_e.compose({name:`${b.prefix}-counter-badge`,template:Vd,styles:Nd});jd.define(b.registry);/*!
405
- * tabbable 6.2.0
406
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
407
- */var qd=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Wd=qd.join(","),hn=typeof Element>"u",rr=hn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ir=!hn&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o?.ownerDocument},Gd=function o(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=i===""||i==="true",n=s||t&&e&&o(e.parentNode);return n},Xd=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},Ud=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Kd=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Xd(e))&&!Ud(e)?0:e.tabIndex},un=function(e){return e.tagName==="INPUT"},Yd=function(e){return un(e)&&e.type==="hidden"},Qd=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},Zd=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Jd=function(e){if(!e.name)return!0;var t=e.form||ir(e),r=function(c){return t.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var s=Zd(i,e.form);return!s||s===e},eh=function(e){return un(e)&&e.type==="radio"},th=function(e){return eh(e)&&!Jd(e)},oh=function(e){var t,r=e&&ir(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var n,c,h;for(s=!!((n=i)!==null&&n!==void 0&&(c=n.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(h=e.ownerDocument)!==null&&h!==void 0&&h.contains(e));!s&&i;){var d,l,u;r=ir(i),i=(d=r)===null||d===void 0?void 0:d.host,s=!!((l=i)!==null&&l!==void 0&&(u=l.ownerDocument)!==null&&u!==void 0&&u.contains(i))}}return s},pn=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},rh=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=rr.call(e,"details>summary:first-of-type"),n=s?e.parentElement:e;if(rr.call(n,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var h=e.parentElement,d=ir(e);if(h&&!h.shadowRoot&&i(h)===!0)return pn(e);e.assignedSlot?e=e.assignedSlot:!h&&d!==e.ownerDocument?e=d.host:e=h}e=c}if(oh(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return pn(e);return!1},ih=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return rr.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},sh=function(e,t){return!(t.disabled||Gd(t)||Yd(t)||rh(t,e)||Qd(t)||ih(t))},nh=function(e,t){return!(th(t)||Kd(t)<0||!sh(e,t))},fn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return rr.call(e,Wd)===!1?!1:nh(t,e)};const re={modal:"modal",nonModal:"non-modal",alert:"alert"};var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,nt=(o,e,t,r)=>{for(var i=r>1?void 0:r?lh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ah(e,t,i),i};const Ue=class So extends C{constructor(){super(...arguments),this.isTrappingFocus=!1,this.titleAction=[],this.modalType=re.modal,this.open=!1,this.noTitleAction=!1,this.trapFocus=!1,this.onOpenChangeEvent=(e=!1)=>{this.$emit("onOpenChange",{open:this.dialog.open,dismissed:e})},this.handleKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Lr:this.modalType!==re.alert&&(this.hide(!0),this.$emit("dismiss"));break;default:return!0}},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.dialog.open)switch(e.key){case us:this.handleTabKeyDown(e);break}},this.handleTabKeyDown=e=>{if(!this.trapFocus||!this.dialog.open)return;const t=this.getTabQueueBounds();if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())},this.getTabQueueBounds=()=>{const e=[];return So.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{const e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&this.dialog.open,this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.updateTrapFocus=e=>{const t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),he.enqueue(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),he.enqueue(()=>{this.updateTrapFocus(),this.setComponent()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1)}openChanged(e,t){t!==e&&(t&&!e?this.show():!t&&e&&this.hide())}modalTypeChanged(e,t){t!==e&&(t==re.alert||t==re.modal?this.trapFocus=!0:this.trapFocus=!1)}setComponent(){this.modalType==re.modal||this.modalType==re.alert?this.trapFocus=!0:this.trapFocus=!1}show(){he.enqueue(()=>{this.modalType===re.alert||this.modalType===re.modal?(this.dialog.showModal(),this.open=!0,this.updateTrapFocus(!0)):this.modalType===re.nonModal&&(this.dialog.show(),this.open=!0),this.onOpenChangeEvent()})}hide(e=!1){this.dialog.close(),this.open=!1,this.onOpenChangeEvent(e)}dismiss(){this.modalType!==re.alert&&this.hide(!0)}handleClick(e){return e.preventDefault(),this.dialog.open&&this.modalType!==re.alert&&e.target===this.dialog&&this.dismiss(),!0}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:fn(t)||So.isFocusableFastElement(t)&&So.hasTabbableShadow(t)?(e.push(t),e):Array.from(t.children).reduce((r,i)=>So.reduceTabbableItems(r,i),e)}static isFocusableFastElement(e){return!!e.$fastController?.definition.shadowOptions?.delegatesFocus}static hasTabbableShadow(e){return Array.from(e.shadowRoot?.querySelectorAll("*")??[]).some(t=>fn(t))}};nt([$],Ue.prototype,"dialog",2),nt([$],Ue.prototype,"titleAction",2),nt([$],Ue.prototype,"defaultTitleAction",2),nt([a({attribute:"aria-describedby"})],Ue.prototype,"ariaDescribedby",2),nt([a({attribute:"aria-labelledby"})],Ue.prototype,"ariaLabelledby",2),nt([a({attribute:"modal-type"})],Ue.prototype,"modalType",2),nt([a({mode:"boolean"})],Ue.prototype,"open",2),nt([a({mode:"boolean",attribute:"no-title-action"})],Ue.prototype,"noTitleAction",2);let ch=Ue;const dh=v.partial(`
404
+ :host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Ld(o={}){return on({defaultContent:v`${e=>e.setCount()}`})}const Md=Ld(),Rd=_e.compose({name:`${b.prefix}-counter-badge`,template:Md,styles:_d});Rd.define(b.registry);const Le={modal:"modal",nonModal:"non-modal",alert:"alert"};var Dd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,or=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dd(e,t,i),i};class po extends w{constructor(){super(...arguments),this.type=Le.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){ke.enqueue(()=>{this.emitBeforeToggle(),this.type===Le.alert||this.type===Le.modal?this.dialog.showModal():this.type===Le.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==Le.alert&&e.target===this.dialog&&this.hide(),!0}}or([$],po.prototype,"dialog",2),or([a({attribute:"aria-describedby"})],po.prototype,"ariaDescribedby",2),or([a({attribute:"aria-labelledby"})],po.prototype,"ariaLabelledby",2),or([a],po.prototype,"type",2);const Hd=v`<dialog role="${o=>o.type===Le.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Le.modal||o.type===Le.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.type===Le.alert?e.event.preventDefault():o.hide()}" ${me("dialog")}><slot></slot></dialog>`,Vd=f`
405
+ @layer base{:host{--dialog-backdrop:${Ha};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${V};border-radius:${Is};border:${te} solid ${we};box-shadow:${fc};color:${M};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${mc};transition-timing-function:${ei};opacity:0}::backdrop{transition-timing-function:${Ks}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Jr}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`,jd=po.compose({name:`${b.prefix}-dialog`,template:Hd,styles:Vd});jd.define(b.registry);var qd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,Gd=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qd(e,t,i),i};class cn extends w{constructor(){super(...arguments),this.noTitleAction=!1}}Gd([a({mode:"boolean",attribute:"no-title-action"})],cn.prototype,"noTitleAction",2);const Xd=v.partial(`
408
406
  <svg
409
407
  fill="currentColor"
410
408
  aria-hidden="true"
@@ -417,82 +415,82 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
417
415
  d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
418
416
  fill="currentColor"
419
417
  ></path>
420
- </svg>`),hh=v`<template ?open="${o=>o.open}"><dialog role="${o=>o.modalType===re.alert?"alertdialog":"dialog"}" modal-type="${o=>o.modalType}" class="dialog" part="dialog" aria-modal="${o=>o.modalType===re.modal||o.modalType===re.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @keydown="${(o,e)=>o.handleKeydown(e.event)}" @click="${(o,e)=>o.handleClick(e.event)}" ${$e("dialog")}><div class="root" part="root"><div class="title" part="title"><slot name="title"></slot><slot ${G({property:"titleAction",filter:zt()})} name="title-action"></slot>${Yt(o=>o.modalType===re.nonModal&&o.titleAction.length===0&&!o.noTitleAction,v`<fluent-button tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.dismiss()} ${$e("defaultTitleAction")}>${dh}</fluent-button>`)}</div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></div></dialog></template>`,uh=f`
421
- ${z("flex")}
418
+ </svg>`),Ud=v`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type!==Le.nonModal} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${me("defaultTitleAction")}>${Xd}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Kd=f`
419
+ ${T("grid")}
422
420
 
423
- :host{--dialog-backdrop:${Wa}}dialog{background:${X};border:${oe} solid ${Ce};z-index:2;margin:auto auto;max-width:100%;width:100vw;border-radius:${zs};box-shadow:${vc};max-height:100vh;height:fit-content;overflow:unset;position:fixed;inset:0;padding:0}dialog::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}.root{box-sizing:border-box;display:flex;flex-direction:column;overflow:unset;max-height:calc(100vh - 48px);padding:${Gs} ${$c}}.title{font-size:${vt};line-height:${Ko};font-weight:${M};font-family:${y};color:${N};margin-bottom:${H};display:flex;justify-content:space-between;align-items:flex-start;column-gap:8px}.content{vertical-align:top;min-height:32px;color:${N};font-size:${F};line-height:${E};font-weight:${O};font-family:${y};overflow-y:auto;box-sizing:border-box}.actions{display:flex;grid-column-start:1;flex-direction:column;max-width:100vw;row-gap:${H};padding-top:${Gs};justify-self:stretch;width:100%}::slotted([slot='action']){width:100%}@media screen and (min-width:480px){::slotted([slot='action']){width:fit-content}dialog{max-width:600px;width:100%}.actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;column-gap:${K};padding-top:${H};box-sizing:border-box}}`,ph=ch.compose({name:`${b.prefix}-dialog`,template:hh,styles:uh});ph.define(b.registry);const gn={separator:"separator",presentation:"presentation"},fh=ne;var gh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,go=(o,e,t,r)=>{for(var i=r>1?void 0:r?bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gh(e,t,i),i};class jt extends C{constructor(){super(...arguments),this.role=gn.separator,this.orientation=fh.horizontal}}go([a],jt.prototype,"role",2),go([a],jt.prototype,"orientation",2),go([a({attribute:"align-content"})],jt.prototype,"alignContent",2),go([a],jt.prototype,"appearance",2),go([a({mode:"boolean"})],jt.prototype,"inset",2);function mh(){return v`<template role="${o=>o.role}" aria-orientation="${o=>o.role!==gn.presentation?o.orientation:void 0}"><slot></slot></template>`}const vh=mh(),$h=f`
424
- ${z("flex")}
421
+ :host{background:${V};box-sizing:border-box;gap:${D};padding:${ho} ${gc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${V};color:${M};column-gap:8px;display:flex;font-family:${y};font-size:${bt};font-weight:${R};inset-block-start:0;justify-content:space-between;line-height:${Uo};margin-block-end:calc(${D} * -1);margin-block-start:calc(${ho} * -1);padding-block-end:${D};padding-block-start:${ho};position:sticky;z-index:1}.content{box-sizing:border-box;color:${M};font-family:${y};font-size:${O};font-weight:${A};line-height:${E};min-height:32px}.actions{box-sizing:border-box;background:${V};display:flex;flex-direction:column;gap:${D};inset-block-end:0;margin-block-end:calc(${ho} * -1);padding-block-end:${ho};padding-block-start:${Ws};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${D} * -1);padding-block-start:${D}}}`,Yd=cn.compose({name:`${b.prefix}-dialog-body`,template:Ud,styles:Kd});Yd.define(b.registry);const dn={separator:"separator",presentation:"presentation"},Qd=se;var Zd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Zd(e,t,i),i};class Nt extends w{constructor(){super(...arguments),this.role=dn.separator,this.orientation=Qd.horizontal}}fo([a],Nt.prototype,"role",2),fo([a],Nt.prototype,"orientation",2),fo([a({attribute:"align-content"})],Nt.prototype,"alignContent",2),fo([a],Nt.prototype,"appearance",2),fo([a({mode:"boolean"})],Nt.prototype,"inset",2);function eh(){return v`<template role="${o=>o.role}" aria-orientation="${o=>o.role!==dn.presentation?o.orientation:void 0}"><slot></slot></template>`}const th=eh(),oh=f`
422
+ ${T("flex")}
425
423
 
426
- :host{contain:content}:host::after,:host::before{align-self:center;background:${lo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${oe}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${pe};font-family:${y};font-size:${U};font-weight:${O};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']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}: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:${oe};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:${mt}}:host([appearance='strong']) ::slotted(*){color:${N}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${ks}}:host([appearance='brand']) ::slotted(*){color:${Vr}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Xa}}:host([appearance='subtle']) ::slotted(*){color:${ee}}`.withBehaviors(Ae(f`
427
- :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}`)),yh=jt.compose({name:`${b.prefix}-divider`,template:vh,styles:$h});yh.define(b.registry);var xh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,bo=(o,e,t,r)=>{for(var i=r>1?void 0:r?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xh(e,t,i),i};class qt extends C{}bo([a({mode:"boolean"})],qt.prototype,"block",2),bo([a({mode:"boolean"})],qt.prototype,"bordered",2),bo([a({mode:"boolean"})],qt.prototype,"shadow",2),bo([a],qt.prototype,"fit",2),bo([a],qt.prototype,"shape",2);const wh=v`<slot></slot>`,Ch=f`
428
- :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:${oe} solid ${lo}}: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:${uo}}:host([shape='circular']) ::slotted(img){border-radius:${le}}:host([shape='rounded']) ::slotted(img){border-radius:${T}}`,Sh=qt.compose({name:`${b.prefix}-image`,template:wh,styles:Ch});Sh.define(b.registry);var Th=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,sr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ph(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Th(e,t,i),i};class mo extends C{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}sr([a],mo.prototype,"size",2),sr([a],mo.prototype,"weight",2),sr([a({mode:"boolean"})],mo.prototype,"disabled",2),sr([a({mode:"boolean"})],mo.prototype,"required",2);const Ih=f`
429
- ${z("flex")}
424
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${so};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${te}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${he};font-family:${y};font-size:${X};font-weight:${A};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']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}: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:${te};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:${gt}}:host([appearance='strong']) ::slotted(*){color:${M}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${xs}}:host([appearance='brand']) ::slotted(*){color:${Dr}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${ja}}:host([appearance='subtle']) ::slotted(*){color:${J}}`.withBehaviors(Oe(f`
425
+ :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}`)),rh=Nt.compose({name:`${b.prefix}-divider`,template:th,styles:oh});rh.define(b.registry);var ih=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,go=(o,e,t,r)=>{for(var i=r>1?void 0:r?sh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ih(e,t,i),i};class Ht extends w{}go([a({mode:"boolean"})],Ht.prototype,"block",2),go([a({mode:"boolean"})],Ht.prototype,"bordered",2),go([a({mode:"boolean"})],Ht.prototype,"shadow",2),go([a],Ht.prototype,"fit",2),go([a],Ht.prototype,"shape",2);const nh=v`<slot></slot>`,ah=f`
426
+ :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:${te} solid ${so}}: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:${lo}}:host([shape='circular']) ::slotted(img){border-radius:${ae}}:host([shape='rounded']) ::slotted(img){border-radius:${P}}`,lh=Ht.compose({name:`${b.prefix}-image`,template:nh,styles:ah});lh.define(b.registry);var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ch(e,t,i),i};class bo extends w{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}rr([a],bo.prototype,"size",2),rr([a],bo.prototype,"weight",2),rr([a({mode:"boolean"})],bo.prototype,"disabled",2),rr([a({mode:"boolean"})],bo.prototype,"required",2);const hh=f`
427
+ ${T("flex")}
430
428
 
431
- :host{font-family:${y};font-size:${F};line-height:${E};font-weight:${O};color:${N}}.asterisk{color:${Ss};margin-left:${we}}:host([size='small']){font-size:${U};line-height:${ge}}:host([size='large']){font-size:${fe};line-height:${Se};font-weight:${M}}:host([weight='semibold']){font-weight:${M}}:host([disabled]),:host([disabled]) .asterisk{color:${k}}`;function Bh(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const zh=Bh(),Fh=mo.compose({name:`${b.prefix}-label`,template:zh,styles:Ih});Fh.define(b.registry);class Ah extends A{}const Oh=si({end:v.partial(`
429
+ :host{font-family:${y};font-size:${O};line-height:${E};font-weight:${A};color:${M}}.asterisk{color:${Cs};margin-left:${xe}}:host([size='small']){font-size:${X};line-height:${pe}}:host([size='large']){font-size:${ue};line-height:${Ce};font-weight:${R}}:host([weight='semibold']){font-weight:${R}}:host([disabled]),:host([disabled]) .asterisk{color:${k}}`;function uh(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const ph=uh(),fh=bo.compose({name:`${b.prefix}-label`,template:ph,styles:hh});fh.define(b.registry);class gh extends F{}const bh=ii({end:v.partial(`
432
430
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
433
431
  <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>
434
432
  </svg>
435
- `)}),Eh=Ah.compose({name:`${b.prefix}-menu-button`,template:Oh,styles:or});Eh.define(b.registry);function nr(o){return o.split("-")[1]}function bn(o){return o==="y"?"height":"width"}function xt(o){return o.split("-")[0]}function ar(o){return["top","bottom"].includes(xt(o))?"x":"y"}function mn(o,e,t){let{reference:r,floating:i}=o;const s=r.x+r.width/2-i.width/2,n=r.y+r.height/2-i.height/2,c=ar(e),h=bn(c),d=r[h]/2-i[h]/2,l=c==="x";let u;switch(xt(e)){case"top":u={x:s,y:r.y-i.height};break;case"bottom":u={x:s,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:n};break;case"left":u={x:r.x-i.width,y:n};break;default:u={x:r.x,y:r.y}}switch(nr(e)){case"start":u[c]-=d*(t&&l?-1:1);break;case"end":u[c]+=d*(t&&l?-1:1)}return u}const Lh=async(o,e,t)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=t,c=s.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(e));let d=await n.getElementRects({reference:o,floating:e,strategy:i}),{x:l,y:u}=mn(d,r,h),p=r,g={},m=0;for(let x=0;x<c.length;x++){const{name:w,fn:B}=c[x],{x:I,y:D,data:ie,reset:se}=await B({x:l,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:e}});l=I??l,u=D??u,g={...g,[w]:{...g[w],...ie}},se&&m<=50&&(m++,typeof se=="object"&&(se.placement&&(p=se.placement),se.rects&&(d=se.rects===!0?await n.getElementRects({reference:o,floating:e,strategy:i}):se.rects),{x:l,y:u}=mn(d,p,h)),x=-1)}return{x:l,y:u,placement:p,strategy:i,middlewareData:g}};function _h(o){return typeof o!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(o):{top:o,right:o,bottom:o,left:o}}function ai(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function vo(o,e){var t;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:n,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:p=!1,padding:g=0}=e,m=_h(g),x=c[p?u==="floating"?"reference":"floating":u],w=ai(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(x)))==null||t?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),B=u==="floating"?{...n.floating,x:r,y:i}:n.reference,I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),D=await(s.isElement==null?void 0:s.isElement(I))&&await(s.getScale==null?void 0:s.getScale(I))||{x:1,y:1},ie=ai(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:B,offsetParent:I,strategy:h}):B);return{top:(w.top-ie.top+m.top)/D.y,bottom:(ie.bottom-w.bottom+m.bottom)/D.y,left:(w.left-ie.left+m.left)/D.x,right:(ie.right-w.right+m.right)/D.x}}const li=Math.min,kt=Math.max;function vn(o,e,t){return kt(o,li(e,t))}const $n=["top","right","bottom","left"];$n.reduce((o,e)=>o.concat(e,e+"-start",e+"-end"),[]);const Mh={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(o){return o.replace(/left|right|bottom|top/g,e=>Mh[e])}function Dh(o,e,t){t===void 0&&(t=!1);const r=nr(o),i=ar(o),s=bn(i);let n=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=lr(n)),{main:n,cross:lr(n)}}const Rh={start:"end",end:"start"};function ci(o){return o.replace(/start|end/g,e=>Rh[e])}const yn=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(e){var t;const{placement:r,middlewareData:i,rects:s,initialPlacement:n,platform:c,elements:h}=e,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=o,w=xt(r),B=xt(n)===n,I=await(c.isRTL==null?void 0:c.isRTL(h.floating)),D=u||(B||!m?[lr(n)]:function(me){const Ne=lr(me);return[ci(me),Ne,ci(Ne)]}(n));u||g==="none"||D.push(...function(me,Ne,ut,Ze){const He=nr(me);let ve=function(Xt,yr,qn){const wi=["left","right"],Ci=["right","left"],Wn=["top","bottom"],Gn=["bottom","top"];switch(Xt){case"top":case"bottom":return qn?yr?Ci:wi:yr?wi:Ci;case"left":case"right":return yr?Wn:Gn;default:return[]}}(xt(me),ut==="start",Ze);return He&&(ve=ve.map(Xt=>Xt+"-"+He),Ne&&(ve=ve.concat(ve.map(ci)))),ve}(n,m,g,I));const ie=[n,...D],se=await vo(e,x),ht=[];let Qe=((t=i.flip)==null?void 0:t.overflows)||[];if(d&&ht.push(se[w]),l){const{main:me,cross:Ne}=Dh(r,s,I);ht.push(se[me],se[Ne])}if(Qe=[...Qe,{placement:r,overflows:ht}],!ht.every(me=>me<=0)){var Gt,xi;const me=(((Gt=i.flip)==null?void 0:Gt.index)||0)+1,Ne=ie[me];if(Ne)return{data:{index:me,overflows:Qe},reset:{placement:Ne}};let ut=(xi=Qe.filter(Ze=>Ze.overflows[0]<=0).sort((Ze,He)=>Ze.overflows[1]-He.overflows[1])[0])==null?void 0:xi.placement;if(!ut)switch(p){case"bestFit":{var ki;const Ze=(ki=Qe.map(He=>[He.placement,He.overflows.filter(ve=>ve>0).reduce((ve,Xt)=>ve+Xt,0)]).sort((He,ve)=>He[1]-ve[1])[0])==null?void 0:ki[0];Ze&&(ut=Ze);break}case"initialPlacement":ut=n}if(r!==ut)return{reset:{placement:ut}}}return{}}}};function xn(o,e){return{top:o.top-e.height,right:o.right-e.width,bottom:o.bottom-e.height,left:o.left-e.width}}function kn(o){return $n.some(e=>o[e]>=0)}const Nh=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(e){const{strategy:t="referenceHidden",...r}=o,{rects:i}=e;switch(t){case"referenceHidden":{const s=xn(await vo(e,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:kn(s)}}}case"escaped":{const s=xn(await vo(e,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:kn(s)}}}default:return{}}}}};function Hh(o){return o==="x"?"y":"x"}const Vh=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:r,placement:i}=e,{mainAxis:s=!0,crossAxis:n=!1,limiter:c={fn:w=>{let{x:B,y:I}=w;return{x:B,y:I}}},...h}=o,d={x:t,y:r},l=await vo(e,h),u=ar(xt(i)),p=Hh(u);let g=d[u],m=d[p];if(s){const w=u==="y"?"bottom":"right";g=vn(g+l[u==="y"?"top":"left"],g,g-l[w])}if(n){const w=p==="y"?"bottom":"right";m=vn(m+l[p==="y"?"top":"left"],m,m-l[w])}const x=c.fn({...e,[u]:g,[p]:m});return{...x,data:{x:x.x-t,y:x.y-r}}}}},wn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){const{placement:t,rects:r,platform:i,elements:s}=e,{apply:n=()=>{},...c}=o,h=await vo(e,c),d=xt(t),l=nr(t),u=ar(t)==="x",{width:p,height:g}=r.floating;let m,x;d==="top"||d==="bottom"?(m=d,x=l===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=d,m=l==="end"?"top":"bottom");const w=g-h[m],B=p-h[x];let I=w,D=B;if(u?D=li(p-h.right-h.left,B):I=li(g-h.bottom-h.top,w),!e.middlewareData.shift&&!l){const se=kt(h.left,0),ht=kt(h.right,0),Qe=kt(h.top,0),Gt=kt(h.bottom,0);u?D=p-2*(se!==0||ht!==0?se+ht:kt(h.left,h.right)):I=g-2*(Qe!==0||Gt!==0?Qe+Gt:kt(h.top,h.bottom))}await n({...e,availableWidth:D,availableHeight:I});const ie=await i.getDimensions(s.floating);return p!==ie.width||g!==ie.height?{reset:{rects:!0}}:{}}}};function be(o){var e;return((e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Me(o){return be(o).getComputedStyle(o)}const Cn=Math.min,$o=Math.max,cr=Math.round;function Sn(o){const e=Me(o);let t=parseFloat(e.width),r=parseFloat(e.height);const i=o.offsetWidth,s=o.offsetHeight,n=cr(t)!==i||cr(r)!==s;return n&&(t=i,r=s),{width:t,height:r,fallback:n}}function at(o){return Pn(o)?(o.nodeName||"").toLowerCase():""}let dr;function Tn(){if(dr)return dr;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(dr=o.brands.map(e=>e.brand+"/"+e.version).join(" "),dr):navigator.userAgent}function De(o){return o instanceof be(o).HTMLElement}function Te(o){return o instanceof be(o).Element}function Pn(o){return o instanceof be(o).Node}function In(o){return typeof ShadowRoot>"u"?!1:o instanceof be(o).ShadowRoot||o instanceof ShadowRoot}function hr(o){const{overflow:e,overflowX:t,overflowY:r,display:i}=Me(o);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(i)}function jh(o){return["table","td","th"].includes(at(o))}function di(o){const e=/firefox/i.test(Tn()),t=Me(o),r=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!r&&r!=="none"||e&&t.willChange==="filter"||e&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(i=>t.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const s=t.contain;return s!=null&&s.includes(i)})}function hi(){return/^((?!chrome|android).)*safari/i.test(Tn())}function ui(o){return["html","body","#document"].includes(at(o))}function Bn(o){return Te(o)?o:o.contextElement}const zn={x:1,y:1};function Wt(o){const e=Bn(o);if(!De(e))return zn;const t=e.getBoundingClientRect(),{width:r,height:i,fallback:s}=Sn(e);let n=(s?cr(t.width):t.width)/r,c=(s?cr(t.height):t.height)/i;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function wt(o,e,t,r){var i,s;e===void 0&&(e=!1),t===void 0&&(t=!1);const n=o.getBoundingClientRect(),c=Bn(o);let h=zn;e&&(r?Te(r)&&(h=Wt(r)):h=Wt(o));const d=c?be(c):window,l=hi()&&t;let u=(n.left+(l&&((i=d.visualViewport)==null?void 0:i.offsetLeft)||0))/h.x,p=(n.top+(l&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/h.y,g=n.width/h.x,m=n.height/h.y;if(c){const x=be(c),w=r&&Te(r)?be(r):r;let B=x.frameElement;for(;B&&r&&w!==x;){const I=Wt(B),D=B.getBoundingClientRect(),ie=getComputedStyle(B);D.x+=(B.clientLeft+parseFloat(ie.paddingLeft))*I.x,D.y+=(B.clientTop+parseFloat(ie.paddingTop))*I.y,u*=I.x,p*=I.y,g*=I.x,m*=I.y,u+=D.x,p+=D.y,B=be(B).frameElement}}return{width:g,height:m,top:p,right:u+g,bottom:p+m,left:u,x:u,y:p}}function lt(o){return((Pn(o)?o.ownerDocument:o.document)||window.document).documentElement}function ur(o){return Te(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Fn(o){return wt(lt(o)).left+ur(o).scrollLeft}function yo(o){if(at(o)==="html")return o;const e=o.assignedSlot||o.parentNode||In(o)&&o.host||lt(o);return In(e)?e.host:e}function An(o){const e=yo(o);return ui(e)?e.ownerDocument.body:De(e)&&hr(e)?e:An(e)}function xo(o,e){var t;e===void 0&&(e=[]);const r=An(o),i=r===((t=o.ownerDocument)==null?void 0:t.body),s=be(r);return i?e.concat(s,s.visualViewport||[],hr(r)?r:[]):e.concat(r,xo(r))}function On(o,e,t){let r;if(e==="viewport")r=function(n,c){const h=be(n),d=lt(n),l=h.visualViewport;let u=d.clientWidth,p=d.clientHeight,g=0,m=0;if(l){u=l.width,p=l.height;const x=hi();(!x||x&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:u,height:p,x:g,y:m}}(o,t);else if(e==="document")r=function(n){const c=lt(n),h=ur(n),d=n.ownerDocument.body,l=$o(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),u=$o(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let p=-h.scrollLeft+Fn(n);const g=-h.scrollTop;return Me(d).direction==="rtl"&&(p+=$o(c.clientWidth,d.clientWidth)-l),{width:l,height:u,x:p,y:g}}(lt(o));else if(Te(e))r=function(n,c){const h=wt(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,u=De(n)?Wt(n):{x:1,y:1};return{width:n.clientWidth*u.x,height:n.clientHeight*u.y,x:l*u.x,y:d*u.y}}(e,t);else{const n={...e};if(hi()){var i,s;const c=be(o);n.x-=((i=c.visualViewport)==null?void 0:i.offsetLeft)||0,n.y-=((s=c.visualViewport)==null?void 0:s.offsetTop)||0}r=n}return ai(r)}function En(o,e){return De(o)&&Me(o).position!=="fixed"?e?e(o):o.offsetParent:null}function Ln(o,e){const t=be(o);let r=En(o,e);for(;r&&jh(r)&&Me(r).position==="static";)r=En(r,e);return r&&(at(r)==="html"||at(r)==="body"&&Me(r).position==="static"&&!di(r))?t:r||function(i){let s=yo(i);for(;De(s)&&!ui(s);){if(di(s))return s;s=yo(s)}return null}(o)||t}function qh(o,e,t){const r=De(e),i=lt(e),s=wt(o,!0,t==="fixed",e);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&t!=="fixed")if((at(e)!=="body"||hr(i))&&(n=ur(e)),De(e)){const h=wt(e,!0);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else i&&(c.x=Fn(i));return{x:s.left+n.scrollLeft-c.x,y:s.top+n.scrollTop-c.y,width:s.width,height:s.height}}const Wh={getClippingRect:function(o){let{element:e,boundary:t,rootBoundary:r,strategy:i}=o;const s=t==="clippingAncestors"?function(d,l){const u=l.get(d);if(u)return u;let p=xo(d).filter(w=>Te(w)&&at(w)!=="body"),g=null;const m=Me(d).position==="fixed";let x=m?yo(d):d;for(;Te(x)&&!ui(x);){const w=Me(x),B=di(x);(m?B||g:B||w.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=w:p=p.filter(I=>I!==x),x=yo(x)}return l.set(d,p),p}(e,this._c):[].concat(t),n=[...s,r],c=n[0],h=n.reduce((d,l)=>{const u=On(e,l,i);return d.top=$o(u.top,d.top),d.right=Cn(u.right,d.right),d.bottom=Cn(u.bottom,d.bottom),d.left=$o(u.left,d.left),d},On(e,c,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{rect:e,offsetParent:t,strategy:r}=o;const i=De(t),s=lt(t);if(t===s)return e;let n={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((i||!i&&r!=="fixed")&&((at(t)!=="body"||hr(s))&&(n=ur(t)),De(t))){const d=wt(t);c=Wt(t),h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-n.scrollLeft*c.x+h.x,y:e.y*c.y-n.scrollTop*c.y+h.y}},isElement:Te,getDimensions:function(o){return De(o)?Sn(o):o.getBoundingClientRect()},getOffsetParent:Ln,getDocumentElement:lt,getScale:Wt,async getElementRects(o){let{reference:e,floating:t,strategy:r}=o;const i=this.getOffsetParent||Ln,s=this.getDimensions;return{reference:qh(e,await i(t),r),floating:{x:0,y:0,...await s(t)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Me(o).direction==="rtl"};function _n(o,e,t,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=!0,animationFrame:c=!1}=r,h=i&&!c,d=h||s?[...Te(o)?xo(o):o.contextElement?xo(o.contextElement):[],...xo(e)]:[];d.forEach(g=>{h&&g.addEventListener("scroll",t,{passive:!0}),s&&g.addEventListener("resize",t)});let l,u=null;if(n){let g=!0;u=new ResizeObserver(()=>{g||t(),g=!1}),Te(o)&&!c&&u.observe(o),Te(o)||!o.contextElement||c||u.observe(o.contextElement),u.observe(e)}let p=c?wt(o):null;return c&&function g(){const m=wt(o);!p||m.x===p.x&&m.y===p.y&&m.width===p.width&&m.height===p.height||t(),p=m,l=requestAnimationFrame(g)}(),t(),()=>{var g;d.forEach(m=>{h&&m.removeEventListener("scroll",t),s&&m.removeEventListener("resize",t)}),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(l)}}const Mn=(o,e,t)=>{const r=new Map,i={platform:Wh,...t},s={...i.platform,_c:r};return Lh(o,e,{...i,platform:s})},ce={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ce.menuitem+"",ce.menuitemcheckbox+"",ce.menuitemradio+"";var Gh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,Ct=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Gh(e,t,i),i};class Pe extends C{constructor(){super(...arguments),this.role=ce.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case gt:case Lt:return this.invoke(),!1;case Ot:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case Lr:if(this.expanded)return this.closeSubMenu(),!1;break;case At:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ce.menuitemcheckbox:this.checked=!this.checked;break;case ce.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case ce.menuitemradio:this.checked||(this.checked=!0);break}}}expandedChanged(e,t){this.$fastController.isConnected&&(t&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(e,t){t.length&&(this.submenu=t[0],this.updateSubmenu())}disconnectedCallback(){this.cleanup?.(),super.disconnectedCallback()}updateSubmenu(){this.cleanup?.(),!(!this.submenu||!this.expanded)&&he.enqueue(()=>{this.cleanup=_n(this,this.submenuContainer,async()=>{const e=["left-start","right-start"],{x:t,y:r}=await Mn(this,this.submenuContainer,{middleware:[Vh(),wn({apply:({availableWidth:i,rects:s})=>{i<s.floating.width&&e.push("bottom-end","top-end")}}),yn({fallbackPlacements:e})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${t}px`,position:"fixed",top:`${r}px`}),this.submenuLoaded()})})}}Ct([a({mode:"boolean"})],Pe.prototype,"disabled",2),Ct([a({mode:"boolean"})],Pe.prototype,"expanded",2),Ct([a],Pe.prototype,"role",2),Ct([a({mode:"boolean"})],Pe.prototype,"checked",2),Ct([a({mode:"boolean"})],Pe.prototype,"hidden",2),Ct([$],Pe.prototype,"slottedSubmenu",2),Ct([$],Pe.prototype,"submenu",2),Oe(Pe,je);const Uh=f`
436
- ${z("grid")}
437
-
438
- :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${X};font:${O} ${F} / ${E} ${y};border-radius:${T};color:${pe};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${Ho}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}.checkbox,.radio{display:none}.input-container,.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']),:host([checked]) .checkbox,:host([checked]) .radio{display:inline-flex;justify-content:center;align-items:center;color:${pe}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${vt};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${ee};font:${O} ${U} / ${ge} ${y};white-space:nowrap;grid-column:4 / span 1;justify-self:flex-end}.expand-collapse-glyph-container{grid-column:4 / span 1;justify-self:flex-end}:host(:hover) .input-container,:host(:hover) .expand-collapse-glyph-container,:host(:hover) .content{color:${Qt}}:host([icon]:hover) ::slotted([slot='start']){color:${Nr}}:host(:active){background-color:${ms}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Zt}}:host(:active) ::slotted([slot='start']){color:${Hr}}:host([disabled]){background-color:${to}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${k}}:host([data-indent]){display:grid}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']){display:grid}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1}:host([data-indent='2'][aria-haspopup='menu']) .expand-collapse-glyph-container{grid-column:5 / span 1}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']) .content,:host([data-indent='1'][role='menuitemradio']) .content{grid-column:auto / span 1}:host([icon]) ::slotted([slot='end']),:host([data-indent='1']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}:host([data-indent='2']){display:grid;grid-template-columns:20px 20px auto auto}:host([data-indent='2']) .content{grid-column:3 / span 1}:host([data-indent='2']) .input-container{grid-column:1 / span 1}:host([data-indent='2']) ::slotted([slot='start']){grid-column:2 / span 1}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}:host([aria-haspopup='menu']) ::slotted([slot='end']){grid-column:3 / span 1;justify-self:flex-end}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}`,Dn=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Kh=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Yh(o={}){return v`<template aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}" aria-checked="${e=>e.role!==ce.menuitem?e.checked:void 0}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @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)}">${Yt(e=>e.role===ce.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${J(o.checkboxIndicator)}</slot></span></div>`)} ${Yt(e=>e.role===ce.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${J(o.radioIndicator)}</slot></span></div>`)}</div>${We(o)}<span class="content" part="content"><slot></slot></span>${qe(o)} ${Yt(e=>e.hasSubmenu,v`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${J(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${e=>!e.expanded}" class="submenu-container" part="submenu-container" ${$e("submenuContainer")}><slot name="submenu" ${G({property:"slottedSubmenu",filter:zt("[role='menu']")})}></slot></span></template>`}const Qh=Yh({checkboxIndicator:Dn,expandCollapseGlyph:Kh,radioIndicator:Dn}),Zh=Pe.compose({name:`${b.prefix}-menu-item`,template:Qh,styles:Uh});Zh.define(b.registry);var Jh=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,tu=(o,e,t,r)=>{for(var i=r>1?void 0:r?eu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jh(e,t,i),i};const pi=class yi extends C{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&hs(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changeHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===ce.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuItems.length-1;for(let s=r+1;s<=i;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===ce.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Pe||hs(e)&&e.getAttribute("role")in yi.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),he.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case Ft:this.setFocus(this.focusIndex+1,1);return;case Et:this.setFocus(this.focusIndex-1,-1);return;case Do:this.setFocus(this.menuItems.length-1,-1);return;case Ro:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),t.removeEventListener("expanded-changed",this.handleExpandedChanged),S.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),r=e.querySelector("[slot=start]");return t&&t!==ce.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(s=>S.getNotifier(s).subscribe(this,"hidden"));const t=e.filter(s=>!s.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((s,n)=>{s.setAttribute("tabindex",n===0?"0":"-1"),s.addEventListener("expanded-change",this.handleExpandedChanged),s.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement);i?.forEach((s,n)=>{const c=i?.reduce((h,d)=>{const l=yi.elementIndent(d);return Math.max(h,l)},0);s instanceof Pe&&s.setAttribute("data-indent",`${c}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};pi.focusableElementRoles=ce,tu([$],pi.prototype,"items",2);let ou=pi;const ru=f`
439
- ${z("flex")}
440
-
441
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${X};border:1px solid ${Ce};border-radius:${T};box-shadow:${Ns};padding:4px;row-gap:2px}`;function iu(){return v`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${G("items")}></slot></template>`}const su=iu(),nu=ou.compose({name:`${b.prefix}-menu-list`,template:su,styles:ru});nu.define(b.registry);var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,St=(o,e,t,r)=>{for(var i=r>1?void 0:r?lu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&au(e,t,i),i};class ct extends C{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=e=>{this.open=!0,e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=e=>{if(e.defaultPrevented)return;switch(e.key){case Lt:case gt:e.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=e=>{e&&!e.composedPath().includes(this._menuList)&&!e.composedPath().includes(this._trigger)&&this.closeMenu()}}connectedCallback(){super.connectedCallback(),he.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.cleanup?.(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this.open}`),this.addListeners())}focusMenuList(){this.open&&this._menuList&&he.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&he.enqueue(()=>{this._trigger.focus()})}openChanged(e,t){this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",`${this.open}`),this._menuList&&this.open&&he.enqueue(this.setPositioningTask)),this.cleanup?.(),this.$emit("onOpenChange",{open:t})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}setPositioning(){this.$fastController.isConnected&&this._menuList&&this.open&&this._trigger&&(this.cleanup=_n(this,this.positioningContainer,async()=>{const{middlewareData:e,x:t,y:r}=await Mn(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[yn(),wn({apply:({availableHeight:i,rects:s})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${i}px`,width:`${s.reference.width}px`})}}),Nh()]});if(e.hide?.referenceHidden){this.open=!1;return}this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${t}px, ${r}px)`})}))}addListeners(){document.addEventListener("click",this.handleDocumentClick),this._trigger?.addEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.addEventListener("click",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){document.removeEventListener("click",this.handleDocumentClick),this._trigger?.removeEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.removeEventListener("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?this._trigger?.removeEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("click",this.toggleMenu)}handleMenuKeydown(e){if(e.defaultPrevented)return;switch(e.key){case Lr:e.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case us:this.open&&this.closeMenu(),e.shiftKey&&this.focusTrigger();default:return!0}}}St([$,a({attribute:"open-on-hover",mode:"boolean"})],ct.prototype,"openOnHover",2),St([$,a({attribute:"open-on-context",mode:"boolean"})],ct.prototype,"openOnContext",2),St([$,a({attribute:"close-on-scroll",mode:"boolean"})],ct.prototype,"closeOnScroll",2),St([$,a({attribute:"persist-on-item-click",mode:"boolean"})],ct.prototype,"persistOnItemClick",2),St([$,a({mode:"boolean"})],ct.prototype,"open",2),St([$],ct.prototype,"slottedMenuList",2),St([$],ct.prototype,"slottedTriggers",2);const cu=f`
442
- :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function du(){return v`<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.handleMenuKeydown(e.event)}"><slot name="trigger" ${G({property:"slottedTriggers",filter:zt()})}></slot><span ${$e("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${G({property:"slottedMenuList",filter:zt()})}></slot></span></template>`}const hu=du(),uu=ct.compose({name:`${b.prefix}-menu`,template:hu,styles:cu});uu.define(b.registry);var pu=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?fu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&pu(e,t,i),i};class ko extends C{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=t-e;this.percentComplete=i===0?0:Math.fround((r-e)/i*100)}}pr([a({converter:ue})],ko.prototype,"value",2),pr([a({converter:ue})],ko.prototype,"min",2),pr([a({converter:ue})],ko.prototype,"max",2),pr([$],ko.prototype,"percentComplete",2);var gu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,fi=(o,e,t,r)=>{for(var i=r>1?void 0:r?bu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gu(e,t,i),i};class fr extends ko{constructor(){super(...arguments),this.validationState=null}}fi([a],fr.prototype,"thickness",2),fi([a],fr.prototype,"shape",2),fi([a({attribute:"validation-state"})],fr.prototype,"validationState",2);const mu=f`
443
- ${z("flex")}
444
-
445
- :host{align-items:center;height:2px;overflow-x:hidden;border-radius:${T};contain:content}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${Kr}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
446
- to right,${Ur} 0%,${Kr} 50%,${Ur}
447
- )}:host([validation-state='warning']) .determinate{background-color:${Qr}}:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2{background:linear-gradient(
448
- to right,${Is} 0%,${Qr} 50%,${Is}
449
- )}:host([validation-state='success']) .determinate{background-color:${Yr}}:host([validation-state='success']) .indeterminate-indicator-1,:host([validation-state='success']) .indeterminate-indicator-2{background:linear-gradient(
450
- to right,${Ps} 0%,${Yr} 50%,${Ps}
451
- )}.progress{background-color:${$s};border-radius:${T};width:100%;height:2px;display:flex;align-items:center;position:relative}.determinate{background-color:${Rt};border-radius:${T};height:2px;transition:all 0.2s ease-in-out;display:flex}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background:linear-gradient(
452
- to right,${io} 0%,${Rt} 50%,${io}
453
- );border-radius:${T};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 3s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background:linear-gradient(
454
- to right,${io} 0%,${Rt} 50%,${io}
455
- );border-radius:${T};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Ae(f`
456
- .progress{background-color:HighlightText}.determinate,:host([validation-state='success']) .determinate,:host([validation-state='warning']) .determinate,:host([validation-state='error']) .determinate,:host([validation-state='success']) ..indeterminate-indicator-1,:host([validation-state='success']) ..indeterminate-indicator-2,:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2,:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background-color:Highlight}`));function vu(o={}){return v`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}">${Yt(e=>typeof e.value=="number",v`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${e=>e.percentComplete}%"></div></div>`,v`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${J(o.indeterminateIndicator1)} ${J(o.indeterminateIndicator2)}</slot></div>`)}</template>`}const $u=vu({indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>'}),yu=fr.compose({name:`${b.prefix}-progress-bar`,template:$u,styles:mu});yu.define(b.registry);class xu extends C{}class ku extends ni(xu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,Rn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Cu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&wu(e,t,i),i};class Ke extends ku{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(e){switch(e.key){case Lt:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Rn([$],Ke.prototype,"name",2),Rn([$],Ke.prototype,"defaultSlottedNodes",2);const Nn=ne;var Su=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,dt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Su(e,t,i),i};class Ye extends C{constructor(){super(...arguments),this.stacked=!1,this.orientation=Nn.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach(r=>{r instanceof Ke&&r!==t&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const r=e[t];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.checked=!0,this.selectedRadio=r),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,r=e.target,i=r!==null?t.indexOf(r):0,s=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(s===0&&i===s||s===t.length-1&&s===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(n=>{r instanceof Ke&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=e=>{if(this.disabled){e.preventDefault();return}return!0},this.clickHandler=e=>{if(this.disabled)return;e.preventDefault();const t=e.target;t&&t instanceof Ke&&(t.checked=!0,t.setAttribute("tabindex","0"),this.selectedRadio=t,this.focusedRadio=t)},this.shouldMoveOffGroupToTheRight=(e,t,r)=>e===t.length&&this.isInsideToolbar&&r===Ot,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===At,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,t,e.key)){this.moveRightOffGroup();return}else r===t.length&&(r=0);for(;r<t.length&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;if(r+1>=t.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(t,r);break}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,r=r<0?t.length-1:r,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;r>=0&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;r-1<0?r=t.length-1:r-=1}else{this.moveToRadioByIndex(t,r);break}},this.keydownHandler=e=>{const t=e.key;if(t in ka&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(t){case gt:{this.checkFocusedRadio();break}case Ot:case Ft:{this.direction===ye.ltr?this.moveRight(e):this.moveLeft(e);break}case At:case Et:{this.direction===ye.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e instanceof Ke&&e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=ps(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e instanceof Ke&&e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const e=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),t=e?e.length:0;if(t>1){const i=e[t-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{i instanceof Ke&&(this.name!==void 0&&i.setAttribute("name",this.name),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),s=i!==null?i.length:0;if(s>0&&!r){const n=i[s-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}dt([a({mode:"boolean"})],Ye.prototype,"stacked",2),dt([a({attribute:"readonly",mode:"boolean"})],Ye.prototype,"readOnly",2),dt([a({attribute:"disabled",mode:"boolean"})],Ye.prototype,"disabled",2),dt([a],Ye.prototype,"name",2),dt([a],Ye.prototype,"value",2),dt([a],Ye.prototype,"orientation",2),dt([$],Ye.prototype,"childItems",2),dt([$],Ye.prototype,"slottedRadioButtons",2);const Pu=f`
457
- ${z("flex")}
458
-
459
- :host{align-items:flex-start;flex-direction:column;row-gap:${H}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${N};padding:${H} ${K} ${H} ${we};font:${O} ${F} / ${E} ${y};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${K}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${K};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function Iu(){return v`<template role="radiogroup" tabindex="${o=>o.disabled?-1:void 0}" aria-disabled="${o=>o.disabled}" aria-readonly="${o=>o.readOnly}" aria-orientation="${o=>o.orientation}" @click="${(o,e)=>o.clickHandler(e.event)}" @mousedown="${(o,e)=>o.handleDisabledClick(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @focusout="${(o,e)=>o.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===Nn.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${G({property:"slottedRadioButtons",filter:zt("[role=radio]")})}></slot></div></template>`}const Bu=Iu(),zu=Ye.compose({name:`${b.prefix}-radio-group`,template:Bu,styles:Pu});zu.define(b.registry);const Fu=f`
460
- ${z("inline-grid")}
461
-
462
- :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${we};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${ee});padding-inline-end:${K};--control-border-color:${Ge};--checked-indicator-background-color:${Rr};--state-color:${ee}}:host([disabled]){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}.label{cursor:pointer;font-family:${y};font-size:${F};font-weight:${O};line-height:${E}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Ge});border-radius:${le};display:flex;height:16px;justify-content:center;margin:${H} ${K};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${le};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${pe}}:host(:focus-visible){border-radius:${ke};box-shadow:0 0 0 3px ${Ee};outline:1px solid ${co}}:host(:hover) .control{border-color:${so}}:host(:active) .control{border-color:${no}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Ge})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${Rr})}:host([aria-checked='true']:hover) .control{border-color:${Wo}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${Wo}}:host([aria-checked='true']:active) .control{border-color:${Xr}}:host([aria-checked='true']:active) .checked-indicator{background:${Hr}}:host([disabled]){color:${k};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${k}}:host([disabled]) .checked-indicator{background:${k}}`.withBehaviors(Ae(f`
463
- :host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function Au(o={}){return v`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" @keypress="${(e,t)=>e.keypressHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${J(o.checkedIndicator)}</slot></div><label part="label" class="${e=>["label",!e.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${G({property:"defaultSlottedNodes",filter:fs})}></slot></label></template>`}const Ou=Au({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),Eu=Ke.compose({name:`${b.prefix}-radio`,template:Ou,styles:Fu});Eu.define(b.registry);const Lu={singleValue:"single-value"};class _u extends C{}class Mu extends dn(_u){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function Hn(o,e,t,r){let i=_r(0,1,(o-e)/(t-e));return r===ye.rtl&&(i=1-i),i}var Du=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,Q=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ru(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Du(e,t,i),i};class q extends Mu{constructor(){super(...arguments),this.direction=ye.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=ne.horizontal,this.mode=Lu.singleValue,this.keypressHandler=e=>{if(!(this.readOnly||this.disabled)){if(e.key===Ro)e.preventDefault(),this.direction!==ye.rtl&&this.orientation!==ne.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(e.key===Do)e.preventDefault(),this.direction!==ye.rtl&&this.orientation!==ne.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!e.shiftKey)switch(e.key){case Ot:case Et:e.preventDefault(),this.increment();break;case At:case Ft:e.preventDefault(),this.decrement();break}}},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.setupListeners=(e=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),e&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;t("mouseup",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove,{passive:!0}),t("touchmove",this.handleMouseMove,{passive:!0}),t("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.orientation===ne.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{if(e===null||!this.disabled&&!this.readOnly){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;if(t("mouseup",this.handleWindowMouseUp),r("mouseleave",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove),e){this.setupTrackConstraints();const i=this.orientation===ne.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`}}}}handleChange(e,t){switch(t){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=f`
464
- :host{--step-rate:${e}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){if(this.$fastController.isConnected){const r=parseFloat(t),i=_r(this.min,this.max,this.convertToConstrainedValue(r)).toString();if(i!==t){this.value=i;return}super.valueChanged(e,t),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=ps(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),S.getNotifier(this).subscribe(this,"max"),S.getNotifier(this).subscribe(this,"min"),S.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),S.getNotifier(this).unsubscribe(this,"max"),S.getNotifier(this).unsubscribe(this,"min"),S.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==ye.rtl&&this.orientation!==ne.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),t=this.convertToConstrainedValue(e),r=t<Number(this.max)?`${t}`:`${this.max}`;this.value=r}decrement(){const e=this.direction!==ye.rtl&&this.orientation!==ne.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),t=this.convertToConstrainedValue(e),r=t>Number(this.min)?`${t}`:`${this.min}`;this.value=r}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(e){const r=(1-Hn(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===ne.horizontal?this.position=this.isDragging?`right: ${r}%; transition: none;`:`right: ${r}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${r}%; transition: none;`:`top: ${r}%; transition: all 0.2s ease;`}updateStepMultiplier(){const e=this.stepValue+"",t=this.stepValue%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}calculateNewValue(e){this.setupTrackConstraints();const t=Hn(e,this.orientation===ne.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===ne.horizontal?this.trackWidth:this.trackHeight,this.direction),r=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.min);let t=e-this.min;const r=Math.round(t/this.stepValue),i=t-r*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return t=i>=Number(this.stepValue)/2?t-i+Number(this.stepValue):t-i,t+this.min}}Q([a],q.prototype,"size",2),Q([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),Q([$],q.prototype,"direction",2),Q([$],q.prototype,"isDragging",2),Q([$],q.prototype,"position",2),Q([$],q.prototype,"trackWidth",2),Q([$],q.prototype,"trackMinWidth",2),Q([$],q.prototype,"trackHeight",2),Q([$],q.prototype,"trackLeft",2),Q([$],q.prototype,"trackMinHeight",2),Q([$],q.prototype,"valueTextFormatter",2),Q([a({converter:ue})],q.prototype,"min",2),Q([a({converter:ue})],q.prototype,"max",2),Q([a({converter:ue})],q.prototype,"step",2),Q([a],q.prototype,"orientation",2),Q([a],q.prototype,"mode",2);const Nu=f`
465
- ${z("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${ke};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${Ee};outline:1px solid ${co}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${jo};border-radius:${le};box-shadow:inset 0 0 0 var(--thumb-padding) ${X},0 0 0 1px ${mt}}.thumb-cursor:hover{background-color:${oo}}.thumb-cursor:active{background-color:${ro}}:host([disabled]) .thumb-cursor{background-color:${k};box-shadow:inset 0 0 0 var(--thumb-padding) ${X},0 0 0 1px ${et}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${Ge};border-radius:${T};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${T};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
466
- var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${X} calc(var(--step-rate) - 1px),${X} var(--step-rate)
467
- )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${to}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${Rt};position:absolute;height:100%;left:0;border-radius:${T}}:host([disabled]) .track-start{background-color:${k}}:host(:hover) .track-start{background-color:${oo}}:host([disabled]:hover) .track-start{background-color:${k}}.track-start:active{background-color:${ro}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(Ae(f`
468
- .track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function Hu(o={}){return v`<template role="slider" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${$e("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${e=>e.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${$e("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @mousedown="${(e,t)=>e.handleThumbMouseDown(t.event)}" @touchstart="${(e,t)=>e.handleThumbMouseDown(t.event)}"><slot name="thumb">${J(o.thumb)}</slot></div></div></template>`}const Vu=Hu({thumb:'<div class="thumb-cursor" tabindex="0"></div>'}),ju=q.compose({name:`${b.prefix}-slider`,template:Vu,styles:Nu});ju.define(b.registry);var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Vn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qu(e,t,i),i};class gi extends C{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}Vn([a],gi.prototype,"size",2),Vn([a],gi.prototype,"appearance",2);const Gu=f`
469
- ${z("flex")}
470
-
471
- :host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${ws};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${ks};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indicator{stroke:${Ua}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,Xu=v`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,Uu=gi.compose({name:`${b.prefix}-spinner`,template:Xu,styles:Gu});Uu.define(b.registry);class Ku extends C{}class Yu extends ni(Ku){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Qu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,bi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qu(e,t,i),i};class gr extends Yu{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case gt:case Lt:this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}bi([a({attribute:"label-position"})],gr.prototype,"labelPosition",2),bi([a({attribute:"readonly",mode:"boolean"})],gr.prototype,"readOnly",2),bi([$],gr.prototype,"defaultSlottedNodes",2);function Ju(o={}){return v`<template role="switch" aria-checked="${e=>e.checked}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${G("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${J(o.switch)}</slot></div></template>`}const ep=Ju({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),tp=f`
472
- ${z("inline-flex")}
473
-
474
- :host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none;contain:content}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${N};line-height:${E};font-size:${F};font-weight:${O};font-family:${y};padding:${qs} ${we};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${$t};box-sizing:border-box;width:40px;height:20px;background-color:${te};border:1px solid ${Ge};border-radius:${le};outline:none;cursor:pointer;margin:${H} ${K}}:host(:hover) .switch{background:none;border-color:${so}}:host(:active) .switch{border-color:${no}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${et};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${Rt}}:host([aria-checked='true']:hover) .switch{background:${oo};border-color:${oo}}:host([aria-checked='true']:active) .switch{background:${ro};border-color:${ro}}:host([aria-checked='true'][disabled]) .switch{background:${to};border-color:${et}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ee};transition-duration:${Xs};transition-timing-function:${Zo};transition-property:margin-inline-start}:host([aria-checked='true']) .checked-indicator{background-color:${No};margin-inline-start:calc(100% - 14px)}:host([aria-checked='true']:hover) .checked-indicator{background:${_a}}:host([aria-checked='true']:active) .checked-indicator{background:${Ma}}:host(:hover) .checked-indicator{background-color:${Oa}}:host(:active) .checked-indicator{background-color:${Ea}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${k}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${k}}:host(:focus-visible){border-color:${Ce};outline:${Nt} solid ${Ce};box-shadow:${uo},0 0 0 2px ${Ee}}`.withBehaviors(Ae(f`
475
- .switch{border-color:InactiveBorder}:host([aria-checked='true']) .switch,:host([aria-checked='true']:active) .switch,:host([aria-checked='true']:hover) .switch{background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator{background-color:ButtonFace}`)),op=gr.compose({name:`${b.prefix}-switch`,template:ep,styles:tp});op.define(b.registry);class rp extends C{}function ip(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const sp=ip(),np=f`
476
- ${z("block")}
477
-
478
- :host{box-sizing:border-box;padding:${yt} ${Xe}}`,ap=rp.compose({name:`${b.prefix}-tab-panel`,template:sp,styles:np});ap.define(b.registry);var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,dp=(o,e,t,r)=>{for(var i=r>1?void 0:r?cp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lp(e,t,i),i};class mi extends C{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=f`
479
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}dp([a({mode:"boolean"})],mi.prototype,"disabled",2),Oe(mi,je);function hp(o={}){return v`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${We(o)}<span class="tab-content"><slot></slot></span>${qe(o)}</template>`}const up=hp({}),pp=f`
480
- ${z("inline-flex")}
481
-
482
- :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${E};font-family:${y};font-size:${F};color:${pe};fill:currentcolor;grid-row:1;padding:${yt} ${Xe};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${N};font-weight:${M}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${E};font-weight:${M}}:host([aria-selected='true'])::after{background-color:${Gr};border-radius:${le};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${ao};border-radius:${le};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${k}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${k};color:${k}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${ke};box-shadow:0 0 0 3px ${Ee};outline:1px solid ${co}}`.withBehaviors(Ae(f`
483
- :host([aria-selected='true'])::after{background-color:Highlight}`)),fp=mi.compose({name:`${b.prefix}-tab`,template:up,styles:pp});fp.define(b.registry);const gp={subtle:"subtle",transparent:"transparent"},br=ne;var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Tt=(o,e,t,r)=>{for(var i=r>1?void 0:r?mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&bp(e,t,i),i};class wo extends C{constructor(){super(...arguments),this.orientation=br.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case At:e.preventDefault(),this.adjustBackward(e);break;case Ot:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case Et:e.preventDefault(),this.adjustBackward(e);break;case Ft:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case Ro:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Do:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",r=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,s)=>{if(i.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(i),c=this.tabIds[s],h=this.tabpanelIds[s];i.setAttribute("id",c),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",h),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=c)}i.style[e]="",i.style[t]="",i.style[r]=`${s+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const r=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",r),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mr()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Mr()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===br.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),r=t.indexOf(this.activetab),i=_r(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)+1:1,r===t.length&&(r=0);r<t.length&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else{if(this.activetab&&r===t.indexOf(this.activetab))break;r+1>=t.length?r=0:r+=1}}adjustBackward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)-1:0,r=r<0?t.length-1:r;r>=0&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else r-1<0?r=t.length-1:r-=1}moveToTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Tt([a],wo.prototype,"orientation",2),Tt([a],wo.prototype,"activeid",2),Tt([$],wo.prototype,"tabs",2),Tt([$],wo.prototype,"tabpanels",2);class Co extends wo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=gp.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===br.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===br.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=f`
433
+ `)}),mh=gh.compose({name:`${b.prefix}-menu-button`,template:bh,styles:tr});mh.define(b.registry);function ir(o){return o.split("-")[1]}function hn(o){return o==="y"?"height":"width"}function $t(o){return o.split("-")[0]}function sr(o){return["top","bottom"].includes($t(o))?"x":"y"}function un(o,e,t){let{reference:r,floating:i}=o;const s=r.x+r.width/2-i.width/2,n=r.y+r.height/2-i.height/2,c=sr(e),h=hn(c),d=r[h]/2-i[h]/2,l=c==="x";let u;switch($t(e)){case"top":u={x:s,y:r.y-i.height};break;case"bottom":u={x:s,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:n};break;case"left":u={x:r.x-i.width,y:n};break;default:u={x:r.x,y:r.y}}switch(ir(e)){case"start":u[c]-=d*(t&&l?-1:1);break;case"end":u[c]+=d*(t&&l?-1:1)}return u}const vh=async(o,e,t)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=t,c=s.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(e));let d=await n.getElementRects({reference:o,floating:e,strategy:i}),{x:l,y:u}=un(d,r,h),p=r,g={},m=0;for(let x=0;x<c.length;x++){const{name:C,fn:I}=c[x],{x:z,y:N,data:re,reset:ie}=await I({x:l,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:e}});l=z??l,u=N??u,g={...g,[C]:{...g[C],...re}},ie&&m<=50&&(m++,typeof ie=="object"&&(ie.placement&&(p=ie.placement),ie.rects&&(d=ie.rects===!0?await n.getElementRects({reference:o,floating:e,strategy:i}):ie.rects),{x:l,y:u}=un(d,p,h)),x=-1)}return{x:l,y:u,placement:p,strategy:i,middlewareData:g}};function $h(o){return typeof o!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(o):{top:o,right:o,bottom:o,left:o}}function ni(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function mo(o,e){var t;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:n,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:p=!1,padding:g=0}=e,m=$h(g),x=c[p?u==="floating"?"reference":"floating":u],C=ni(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(x)))==null||t?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),I=u==="floating"?{...n.floating,x:r,y:i}:n.reference,z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),N=await(s.isElement==null?void 0:s.isElement(z))&&await(s.getScale==null?void 0:s.getScale(z))||{x:1,y:1},re=ni(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:z,strategy:h}):I);return{top:(C.top-re.top+m.top)/N.y,bottom:(re.bottom-C.bottom+m.bottom)/N.y,left:(C.left-re.left+m.left)/N.x,right:(re.right-C.right+m.right)/N.x}}const ai=Math.min,yt=Math.max;function pn(o,e,t){return yt(o,ai(e,t))}const fn=["top","right","bottom","left"];fn.reduce((o,e)=>o.concat(e,e+"-start",e+"-end"),[]);const yh={left:"right",right:"left",bottom:"top",top:"bottom"};function nr(o){return o.replace(/left|right|bottom|top/g,e=>yh[e])}function xh(o,e,t){t===void 0&&(t=!1);const r=ir(o),i=sr(o),s=hn(i);let n=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=nr(n)),{main:n,cross:nr(n)}}const kh={start:"end",end:"start"};function li(o){return o.replace(/start|end/g,e=>kh[e])}const gn=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(e){var t;const{placement:r,middlewareData:i,rects:s,initialPlacement:n,platform:c,elements:h}=e,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=o,C=$t(r),I=$t(n)===n,z=await(c.isRTL==null?void 0:c.isRTL(h.floating)),N=u||(I||!m?[nr(n)]:function(ge){const Ne=nr(ge);return[li(ge),Ne,li(Ne)]}(n));u||g==="none"||N.push(...function(ge,Ne,dt,Qe){const He=ir(ge);let be=function(qt,vr,Dn){const ki=["left","right"],wi=["right","left"],Nn=["top","bottom"],Hn=["bottom","top"];switch(qt){case"top":case"bottom":return Dn?vr?wi:ki:vr?ki:wi;case"left":case"right":return vr?Nn:Hn;default:return[]}}($t(ge),dt==="start",Qe);return He&&(be=be.map(qt=>qt+"-"+He),Ne&&(be=be.concat(be.map(li)))),be}(n,m,g,z));const re=[n,...N],ie=await mo(e,x),ct=[];let Ye=((t=i.flip)==null?void 0:t.overflows)||[];if(d&&ct.push(ie[C]),l){const{main:ge,cross:Ne}=xh(r,s,z);ct.push(ie[ge],ie[Ne])}if(Ye=[...Ye,{placement:r,overflows:ct}],!ct.every(ge=>ge<=0)){var jt,yi;const ge=(((jt=i.flip)==null?void 0:jt.index)||0)+1,Ne=re[ge];if(Ne)return{data:{index:ge,overflows:Ye},reset:{placement:Ne}};let dt=(yi=Ye.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,He)=>Qe.overflows[1]-He.overflows[1])[0])==null?void 0:yi.placement;if(!dt)switch(p){case"bestFit":{var xi;const Qe=(xi=Ye.map(He=>[He.placement,He.overflows.filter(be=>be>0).reduce((be,qt)=>be+qt,0)]).sort((He,be)=>He[1]-be[1])[0])==null?void 0:xi[0];Qe&&(dt=Qe);break}case"initialPlacement":dt=n}if(r!==dt)return{reset:{placement:dt}}}return{}}}};function bn(o,e){return{top:o.top-e.height,right:o.right-e.width,bottom:o.bottom-e.height,left:o.left-e.width}}function mn(o){return fn.some(e=>o[e]>=0)}const wh=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(e){const{strategy:t="referenceHidden",...r}=o,{rects:i}=e;switch(t){case"referenceHidden":{const s=bn(await mo(e,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:mn(s)}}}case"escaped":{const s=bn(await mo(e,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:mn(s)}}}default:return{}}}}};function Ch(o){return o==="x"?"y":"x"}const Sh=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:r,placement:i}=e,{mainAxis:s=!0,crossAxis:n=!1,limiter:c={fn:C=>{let{x:I,y:z}=C;return{x:I,y:z}}},...h}=o,d={x:t,y:r},l=await mo(e,h),u=sr($t(i)),p=Ch(u);let g=d[u],m=d[p];if(s){const C=u==="y"?"bottom":"right";g=pn(g+l[u==="y"?"top":"left"],g,g-l[C])}if(n){const C=p==="y"?"bottom":"right";m=pn(m+l[p==="y"?"top":"left"],m,m-l[C])}const x=c.fn({...e,[u]:g,[p]:m});return{...x,data:{x:x.x-t,y:x.y-r}}}}},vn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){const{placement:t,rects:r,platform:i,elements:s}=e,{apply:n=()=>{},...c}=o,h=await mo(e,c),d=$t(t),l=ir(t),u=sr(t)==="x",{width:p,height:g}=r.floating;let m,x;d==="top"||d==="bottom"?(m=d,x=l===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=d,m=l==="end"?"top":"bottom");const C=g-h[m],I=p-h[x];let z=C,N=I;if(u?N=ai(p-h.right-h.left,I):z=ai(g-h.bottom-h.top,C),!e.middlewareData.shift&&!l){const ie=yt(h.left,0),ct=yt(h.right,0),Ye=yt(h.top,0),jt=yt(h.bottom,0);u?N=p-2*(ie!==0||ct!==0?ie+ct:yt(h.left,h.right)):z=g-2*(Ye!==0||jt!==0?Ye+jt:yt(h.top,h.bottom))}await n({...e,availableWidth:N,availableHeight:z});const re=await i.getDimensions(s.floating);return p!==re.width||g!==re.height?{reset:{rects:!0}}:{}}}};function fe(o){var e;return((e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Me(o){return fe(o).getComputedStyle(o)}const $n=Math.min,vo=Math.max,ar=Math.round;function yn(o){const e=Me(o);let t=parseFloat(e.width),r=parseFloat(e.height);const i=o.offsetWidth,s=o.offsetHeight,n=ar(t)!==i||ar(r)!==s;return n&&(t=i,r=s),{width:t,height:r,fallback:n}}function st(o){return kn(o)?(o.nodeName||"").toLowerCase():""}let lr;function xn(){if(lr)return lr;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(lr=o.brands.map(e=>e.brand+"/"+e.version).join(" "),lr):navigator.userAgent}function Re(o){return o instanceof fe(o).HTMLElement}function Se(o){return o instanceof fe(o).Element}function kn(o){return o instanceof fe(o).Node}function wn(o){return typeof ShadowRoot>"u"?!1:o instanceof fe(o).ShadowRoot||o instanceof ShadowRoot}function cr(o){const{overflow:e,overflowX:t,overflowY:r,display:i}=Me(o);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(i)}function Ph(o){return["table","td","th"].includes(st(o))}function ci(o){const e=/firefox/i.test(xn()),t=Me(o),r=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!r&&r!=="none"||e&&t.willChange==="filter"||e&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(i=>t.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const s=t.contain;return s!=null&&s.includes(i)})}function di(){return/^((?!chrome|android).)*safari/i.test(xn())}function hi(o){return["html","body","#document"].includes(st(o))}function Cn(o){return Se(o)?o:o.contextElement}const Sn={x:1,y:1};function Vt(o){const e=Cn(o);if(!Re(e))return Sn;const t=e.getBoundingClientRect(),{width:r,height:i,fallback:s}=yn(e);let n=(s?ar(t.width):t.width)/r,c=(s?ar(t.height):t.height)/i;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function xt(o,e,t,r){var i,s;e===void 0&&(e=!1),t===void 0&&(t=!1);const n=o.getBoundingClientRect(),c=Cn(o);let h=Sn;e&&(r?Se(r)&&(h=Vt(r)):h=Vt(o));const d=c?fe(c):window,l=di()&&t;let u=(n.left+(l&&((i=d.visualViewport)==null?void 0:i.offsetLeft)||0))/h.x,p=(n.top+(l&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/h.y,g=n.width/h.x,m=n.height/h.y;if(c){const x=fe(c),C=r&&Se(r)?fe(r):r;let I=x.frameElement;for(;I&&r&&C!==x;){const z=Vt(I),N=I.getBoundingClientRect(),re=getComputedStyle(I);N.x+=(I.clientLeft+parseFloat(re.paddingLeft))*z.x,N.y+=(I.clientTop+parseFloat(re.paddingTop))*z.y,u*=z.x,p*=z.y,g*=z.x,m*=z.y,u+=N.x,p+=N.y,I=fe(I).frameElement}}return{width:g,height:m,top:p,right:u+g,bottom:p+m,left:u,x:u,y:p}}function nt(o){return((kn(o)?o.ownerDocument:o.document)||window.document).documentElement}function dr(o){return Se(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Pn(o){return xt(nt(o)).left+dr(o).scrollLeft}function $o(o){if(st(o)==="html")return o;const e=o.assignedSlot||o.parentNode||wn(o)&&o.host||nt(o);return wn(e)?e.host:e}function Bn(o){const e=$o(o);return hi(e)?e.ownerDocument.body:Re(e)&&cr(e)?e:Bn(e)}function yo(o,e){var t;e===void 0&&(e=[]);const r=Bn(o),i=r===((t=o.ownerDocument)==null?void 0:t.body),s=fe(r);return i?e.concat(s,s.visualViewport||[],cr(r)?r:[]):e.concat(r,yo(r))}function zn(o,e,t){let r;if(e==="viewport")r=function(n,c){const h=fe(n),d=nt(n),l=h.visualViewport;let u=d.clientWidth,p=d.clientHeight,g=0,m=0;if(l){u=l.width,p=l.height;const x=di();(!x||x&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:u,height:p,x:g,y:m}}(o,t);else if(e==="document")r=function(n){const c=nt(n),h=dr(n),d=n.ownerDocument.body,l=vo(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),u=vo(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let p=-h.scrollLeft+Pn(n);const g=-h.scrollTop;return Me(d).direction==="rtl"&&(p+=vo(c.clientWidth,d.clientWidth)-l),{width:l,height:u,x:p,y:g}}(nt(o));else if(Se(e))r=function(n,c){const h=xt(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,u=Re(n)?Vt(n):{x:1,y:1};return{width:n.clientWidth*u.x,height:n.clientHeight*u.y,x:l*u.x,y:d*u.y}}(e,t);else{const n={...e};if(di()){var i,s;const c=fe(o);n.x-=((i=c.visualViewport)==null?void 0:i.offsetLeft)||0,n.y-=((s=c.visualViewport)==null?void 0:s.offsetTop)||0}r=n}return ni(r)}function In(o,e){return Re(o)&&Me(o).position!=="fixed"?e?e(o):o.offsetParent:null}function Tn(o,e){const t=fe(o);let r=In(o,e);for(;r&&Ph(r)&&Me(r).position==="static";)r=In(r,e);return r&&(st(r)==="html"||st(r)==="body"&&Me(r).position==="static"&&!ci(r))?t:r||function(i){let s=$o(i);for(;Re(s)&&!hi(s);){if(ci(s))return s;s=$o(s)}return null}(o)||t}function Bh(o,e,t){const r=Re(e),i=nt(e),s=xt(o,!0,t==="fixed",e);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&t!=="fixed")if((st(e)!=="body"||cr(i))&&(n=dr(e)),Re(e)){const h=xt(e,!0);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else i&&(c.x=Pn(i));return{x:s.left+n.scrollLeft-c.x,y:s.top+n.scrollTop-c.y,width:s.width,height:s.height}}const zh={getClippingRect:function(o){let{element:e,boundary:t,rootBoundary:r,strategy:i}=o;const s=t==="clippingAncestors"?function(d,l){const u=l.get(d);if(u)return u;let p=yo(d).filter(C=>Se(C)&&st(C)!=="body"),g=null;const m=Me(d).position==="fixed";let x=m?$o(d):d;for(;Se(x)&&!hi(x);){const C=Me(x),I=ci(x);(m?I||g:I||C.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=C:p=p.filter(z=>z!==x),x=$o(x)}return l.set(d,p),p}(e,this._c):[].concat(t),n=[...s,r],c=n[0],h=n.reduce((d,l)=>{const u=zn(e,l,i);return d.top=vo(u.top,d.top),d.right=$n(u.right,d.right),d.bottom=$n(u.bottom,d.bottom),d.left=vo(u.left,d.left),d},zn(e,c,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{rect:e,offsetParent:t,strategy:r}=o;const i=Re(t),s=nt(t);if(t===s)return e;let n={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((i||!i&&r!=="fixed")&&((st(t)!=="body"||cr(s))&&(n=dr(t)),Re(t))){const d=xt(t);c=Vt(t),h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-n.scrollLeft*c.x+h.x,y:e.y*c.y-n.scrollTop*c.y+h.y}},isElement:Se,getDimensions:function(o){return Re(o)?yn(o):o.getBoundingClientRect()},getOffsetParent:Tn,getDocumentElement:nt,getScale:Vt,async getElementRects(o){let{reference:e,floating:t,strategy:r}=o;const i=this.getOffsetParent||Tn,s=this.getDimensions;return{reference:Bh(e,await i(t),r),floating:{x:0,y:0,...await s(t)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Me(o).direction==="rtl"};function On(o,e,t,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=!0,animationFrame:c=!1}=r,h=i&&!c,d=h||s?[...Se(o)?yo(o):o.contextElement?yo(o.contextElement):[],...yo(e)]:[];d.forEach(g=>{h&&g.addEventListener("scroll",t,{passive:!0}),s&&g.addEventListener("resize",t)});let l,u=null;if(n){let g=!0;u=new ResizeObserver(()=>{g||t(),g=!1}),Se(o)&&!c&&u.observe(o),Se(o)||!o.contextElement||c||u.observe(o.contextElement),u.observe(e)}let p=c?xt(o):null;return c&&function g(){const m=xt(o);!p||m.x===p.x&&m.y===p.y&&m.width===p.width&&m.height===p.height||t(),p=m,l=requestAnimationFrame(g)}(),t(),()=>{var g;d.forEach(m=>{h&&m.removeEventListener("scroll",t),s&&m.removeEventListener("resize",t)}),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(l)}}const Fn=(o,e,t)=>{const r=new Map,i={platform:zh,...t},s={...i.platform,_c:r};return vh(o,e,{...i,platform:s})},le={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};le.menuitem+"",le.menuitemcheckbox+"",le.menuitemradio+"";var Ih=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,kt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Th(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ih(e,t,i),i};class Pe extends w{constructor(){super(...arguments),this.role=le.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case pt:case Ft:return this.invoke(),!1;case Tt:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case hs:if(this.expanded)return this.closeSubMenu(),!1;break;case It:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case le.menuitemcheckbox:this.checked=!this.checked;break;case le.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case le.menuitemradio:this.checked||(this.checked=!0);break}}}expandedChanged(e,t){this.$fastController.isConnected&&(t&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(e,t){t.length&&(this.submenu=t[0],this.updateSubmenu())}disconnectedCallback(){this.cleanup?.(),super.disconnectedCallback()}updateSubmenu(){this.cleanup?.(),!(!this.submenu||!this.expanded)&&ke.enqueue(()=>{this.cleanup=On(this,this.submenuContainer,async()=>{const e=["left-start","right-start"],{x:t,y:r}=await Fn(this,this.submenuContainer,{middleware:[Sh(),vn({apply:({availableWidth:i,rects:s})=>{i<s.floating.width&&e.push("bottom-end","top-end")}}),gn({fallbackPlacements:e})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${t}px`,position:"fixed",top:`${r}px`}),this.submenuLoaded()})})}}kt([a({mode:"boolean"})],Pe.prototype,"disabled",2),kt([a({mode:"boolean"})],Pe.prototype,"expanded",2),kt([a],Pe.prototype,"role",2),kt([a({mode:"boolean"})],Pe.prototype,"checked",2),kt([a({mode:"boolean"})],Pe.prototype,"hidden",2),kt([$],Pe.prototype,"slottedSubmenu",2),kt([$],Pe.prototype,"submenu",2),Fe(Pe,je);const Oh=f`
434
+ ${T("grid")}
435
+
436
+ :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${V};font:${A} ${O} / ${E} ${y};border-radius:${P};color:${he};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${No}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}.checkbox,.radio{display:none}.input-container,.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']),:host([checked]) .checkbox,:host([checked]) .radio{display:inline-flex;justify-content:center;align-items:center;color:${he}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${bt};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${J};font:${A} ${X} / ${pe} ${y};white-space:nowrap;grid-column:4 / span 1;justify-self:flex-end}.expand-collapse-glyph-container{grid-column:4 / span 1;justify-self:flex-end}:host(:hover) .input-container,:host(:hover) .expand-collapse-glyph-container,:host(:hover) .content{color:${Ut}}:host([icon]:hover) ::slotted([slot='start']){color:${Mr}}:host(:active){background-color:${bs}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Kt}}:host(:active) ::slotted([slot='start']){color:${Rr}}:host([disabled]){background-color:${Zt}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${k}}:host([data-indent]){display:grid}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']){display:grid}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1}:host([data-indent='2'][aria-haspopup='menu']) .expand-collapse-glyph-container{grid-column:5 / span 1}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']) .content,:host([data-indent='1'][role='menuitemradio']) .content{grid-column:auto / span 1}:host([icon]) ::slotted([slot='end']),:host([data-indent='1']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}:host([data-indent='2']){display:grid;grid-template-columns:20px 20px auto auto}:host([data-indent='2']) .content{grid-column:3 / span 1}:host([data-indent='2']) .input-container{grid-column:1 / span 1}:host([data-indent='2']) ::slotted([slot='start']){grid-column:2 / span 1}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}:host([aria-haspopup='menu']) ::slotted([slot='end']){grid-column:3 / span 1;justify-self:flex-end}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}`,An=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" 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>'),Fh=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" 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 Ah(o={}){return v`<template aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}" aria-checked="${e=>e.role!==le.menuitem?e.checked:void 0}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @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)}">${Oo(e=>e.role===le.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${Z(o.checkboxIndicator)}</slot></span></div>`)} ${Oo(e=>e.role===le.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${Z(o.radioIndicator)}</slot></span></div>`)}</div>${We(o)}<span class="content" part="content"><slot></slot></span>${qe(o)} ${Oo(e=>e.hasSubmenu,v`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${Z(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${e=>!e.expanded}" class="submenu-container" part="submenu-container" ${me("submenuContainer")}><slot name="submenu" ${Q({property:"slottedSubmenu",filter:Xt("[role='menu']")})}></slot></span></template>`}const Eh=Ah({checkboxIndicator:An,expandCollapseGlyph:Fh,radioIndicator:An}),_h=Pe.compose({name:`${b.prefix}-menu-item`,template:Eh,styles:Oh});_h.define(b.registry);var Lh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Rh=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Lh(e,t,i),i};const ui=class $i extends w{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&ds(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changeHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===le.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuItems.length-1;for(let s=r+1;s<=i;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===le.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Pe||ds(e)&&e.getAttribute("role")in $i.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),ke.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case zt:this.setFocus(this.focusIndex+1,1);return;case Ot:this.setFocus(this.focusIndex-1,-1);return;case Mo:this.setFocus(this.menuItems.length-1,-1);return;case Ro:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),t.removeEventListener("expanded-changed",this.handleExpandedChanged),S.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),r=e.querySelector("[slot=start]");return t&&t!==le.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(s=>S.getNotifier(s).subscribe(this,"hidden"));const t=e.filter(s=>!s.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((s,n)=>{s.setAttribute("tabindex",n===0?"0":"-1"),s.addEventListener("expanded-change",this.handleExpandedChanged),s.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement);i?.forEach((s,n)=>{const c=i?.reduce((h,d)=>{const l=$i.elementIndent(d);return Math.max(h,l)},0);s instanceof Pe&&s.setAttribute("data-indent",`${c}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};ui.focusableElementRoles=le,Rh([$],ui.prototype,"items",2);let Dh=ui;const Nh=f`
437
+ ${T("flex")}
438
+
439
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${V};border:1px solid ${we};border-radius:${P};box-shadow:${Ds};padding:4px;row-gap:2px}`;function Hh(){return v`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${Q("items")}></slot></template>`}const Vh=Hh(),jh=Dh.compose({name:`${b.prefix}-menu-list`,template:Vh,styles:Nh});jh.define(b.registry);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,wt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qh(e,t,i),i};class at extends w{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=e=>{this.open=!0,e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=e=>{if(e.defaultPrevented)return;switch(e.key){case Ft:case pt:e.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=e=>{e&&!e.composedPath().includes(this._menuList)&&!e.composedPath().includes(this._trigger)&&this.closeMenu()}}connectedCallback(){super.connectedCallback(),ke.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.cleanup?.(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this.open}`),this.addListeners())}focusMenuList(){this.open&&this._menuList&&ke.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&ke.enqueue(()=>{this._trigger.focus()})}openChanged(e,t){this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",`${this.open}`),this._menuList&&this.open&&ke.enqueue(this.setPositioningTask)),this.cleanup?.(),this.$emit("onOpenChange",{open:t})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}setPositioning(){this.$fastController.isConnected&&this._menuList&&this.open&&this._trigger&&(this.cleanup=On(this,this.positioningContainer,async()=>{const{middlewareData:e,x:t,y:r}=await Fn(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[gn(),vn({apply:({availableHeight:i,rects:s})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${i}px`,width:`${s.reference.width}px`})}}),wh()]});if(e.hide?.referenceHidden){this.open=!1;return}this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${t}px, ${r}px)`})}))}addListeners(){document.addEventListener("click",this.handleDocumentClick),this._trigger?.addEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.addEventListener("click",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){document.removeEventListener("click",this.handleDocumentClick),this._trigger?.removeEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.removeEventListener("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?this._trigger?.removeEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("click",this.toggleMenu)}handleMenuKeydown(e){if(e.defaultPrevented)return;switch(e.key){case hs:e.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case ma:this.open&&this.closeMenu(),e.shiftKey&&this.focusTrigger();default:return!0}}}wt([$,a({attribute:"open-on-hover",mode:"boolean"})],at.prototype,"openOnHover",2),wt([$,a({attribute:"open-on-context",mode:"boolean"})],at.prototype,"openOnContext",2),wt([$,a({attribute:"close-on-scroll",mode:"boolean"})],at.prototype,"closeOnScroll",2),wt([$,a({attribute:"persist-on-item-click",mode:"boolean"})],at.prototype,"persistOnItemClick",2),wt([$,a({mode:"boolean"})],at.prototype,"open",2),wt([$],at.prototype,"slottedMenuList",2),wt([$],at.prototype,"slottedTriggers",2);const Gh=f`
440
+ :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function Xh(){return v`<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.handleMenuKeydown(e.event)}"><slot name="trigger" ${Q({property:"slottedTriggers",filter:Xt()})}></slot><span ${me("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${Q({property:"slottedMenuList",filter:Xt()})}></slot></span></template>`}const Uh=Xh(),Kh=at.compose({name:`${b.prefix}-menu`,template:Uh,styles:Gh});Kh.define(b.registry);var Yh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,hr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Yh(e,t,i),i};class xo extends w{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=t-e;this.percentComplete=i===0?0:Math.fround((r-e)/i*100)}}hr([a({converter:de})],xo.prototype,"value",2),hr([a({converter:de})],xo.prototype,"min",2),hr([a({converter:de})],xo.prototype,"max",2),hr([$],xo.prototype,"percentComplete",2);var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,pi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Zh(e,t,i),i};class ur extends xo{constructor(){super(...arguments),this.validationState=null}}pi([a],ur.prototype,"thickness",2),pi([a],ur.prototype,"shape",2),pi([a({attribute:"validation-state"})],ur.prototype,"validationState",2);const eu=f`
441
+ ${T("flex")}
442
+
443
+ :host{align-items:center;height:2px;overflow-x:hidden;border-radius:${P};contain:content}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${Gr}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
444
+ to right,${Wr} 0%,${Gr} 50%,${Wr}
445
+ )}:host([validation-state='warning']) .determinate{background-color:${Ur}}:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2{background:linear-gradient(
446
+ to right,${Bs} 0%,${Ur} 50%,${Bs}
447
+ )}:host([validation-state='success']) .determinate{background-color:${Xr}}:host([validation-state='success']) .indeterminate-indicator-1,:host([validation-state='success']) .indeterminate-indicator-2{background:linear-gradient(
448
+ to right,${Ps} 0%,${Xr} 50%,${Ps}
449
+ )}.progress{background-color:${vs};border-radius:${P};width:100%;height:2px;display:flex;align-items:center;position:relative}.determinate{background-color:${Lt};border-radius:${P};height:2px;transition:all 0.2s ease-in-out;display:flex}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background:linear-gradient(
450
+ to right,${to} 0%,${Lt} 50%,${to}
451
+ );border-radius:${P};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 3s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background:linear-gradient(
452
+ to right,${to} 0%,${Lt} 50%,${to}
453
+ );border-radius:${P};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Oe(f`
454
+ .progress{background-color:HighlightText}.determinate,:host([validation-state='success']) .determinate,:host([validation-state='warning']) .determinate,:host([validation-state='error']) .determinate,:host([validation-state='success']) ..indeterminate-indicator-1,:host([validation-state='success']) ..indeterminate-indicator-2,:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2,:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background-color:Highlight}`));function tu(o={}){return v`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}">${Oo(e=>typeof e.value=="number",v`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${e=>e.percentComplete}%"></div></div>`,v`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${Z(o.indeterminateIndicator1)} ${Z(o.indeterminateIndicator2)}</slot></div>`)}</template>`}const ou=tu({indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>'}),ru=ur.compose({name:`${b.prefix}-progress-bar`,template:ou,styles:eu});ru.define(b.registry);class iu extends w{}class su extends si(iu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var nu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,En=(o,e,t,r)=>{for(var i=r>1?void 0:r?au(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&nu(e,t,i),i};class Ue extends su{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(e){switch(e.key){case Ft:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}En([$],Ue.prototype,"name",2),En([$],Ue.prototype,"defaultSlottedNodes",2);const _n=se;var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,lt=(o,e,t,r)=>{for(var i=r>1?void 0:r?cu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lu(e,t,i),i};class Ke extends w{constructor(){super(...arguments),this.stacked=!1,this.orientation=_n.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach(r=>{r instanceof Ue&&r!==t&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const r=e[t];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.checked=!0,this.selectedRadio=r),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,r=e.target,i=r!==null?t.indexOf(r):0,s=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(s===0&&i===s||s===t.length-1&&s===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(n=>{r instanceof Ue&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=e=>{if(this.disabled){e.preventDefault();return}return!0},this.clickHandler=e=>{if(this.disabled)return;e.preventDefault();const t=e.target;t&&t instanceof Ue&&(t.checked=!0,t.setAttribute("tabindex","0"),this.selectedRadio=t,this.focusedRadio=t)},this.shouldMoveOffGroupToTheRight=(e,t,r)=>e===t.length&&this.isInsideToolbar&&r===Tt,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===It,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,t,e.key)){this.moveRightOffGroup();return}else r===t.length&&(r=0);for(;r<t.length&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;if(r+1>=t.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(t,r);break}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,r=r<0?t.length-1:r,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;r>=0&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;r-1<0?r=t.length-1:r-=1}else{this.moveToRadioByIndex(t,r);break}},this.keydownHandler=e=>{const t=e.key;if(t in va&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(t){case pt:{this.checkFocusedRadio();break}case Tt:case zt:{this.direction===ve.ltr?this.moveRight(e):this.moveLeft(e);break}case It:case Ot:{this.direction===ve.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e instanceof Ue&&e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=us(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e instanceof Ue&&e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const e=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),t=e?e.length:0;if(t>1){const i=e[t-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{i instanceof Ue&&(this.name!==void 0&&i.setAttribute("name",this.name),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),s=i!==null?i.length:0;if(s>0&&!r){const n=i[s-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}lt([a({mode:"boolean"})],Ke.prototype,"stacked",2),lt([a({attribute:"readonly",mode:"boolean"})],Ke.prototype,"readOnly",2),lt([a({attribute:"disabled",mode:"boolean"})],Ke.prototype,"disabled",2),lt([a],Ke.prototype,"name",2),lt([a],Ke.prototype,"value",2),lt([a],Ke.prototype,"orientation",2),lt([$],Ke.prototype,"childItems",2),lt([$],Ke.prototype,"slottedRadioButtons",2);const du=f`
455
+ ${T("flex")}
456
+
457
+ :host{align-items:flex-start;flex-direction:column;row-gap:${D}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${M};padding:${D} ${oe} ${D} ${xe};font:${A} ${O} / ${E} ${y};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${oe}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${oe};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function hu(){return v`<template role="radiogroup" tabindex="${o=>o.disabled?-1:void 0}" aria-disabled="${o=>o.disabled}" aria-readonly="${o=>o.readOnly}" aria-orientation="${o=>o.orientation}" @click="${(o,e)=>o.clickHandler(e.event)}" @mousedown="${(o,e)=>o.handleDisabledClick(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @focusout="${(o,e)=>o.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===_n.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${Q({property:"slottedRadioButtons",filter:Xt("[role=radio]")})}></slot></div></template>`}const uu=hu(),pu=Ke.compose({name:`${b.prefix}-radio-group`,template:uu,styles:du});pu.define(b.registry);const fu=f`
458
+ ${T("inline-grid")}
459
+
460
+ :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${xe};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${J});padding-inline-end:${oe};--control-border-color:${Ge};--checked-indicator-background-color:${Lr};--state-color:${J}}:host([disabled]){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}.label{cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${E}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Ge});border-radius:${ae};display:flex;height:16px;justify-content:center;margin:${D} ${oe};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${ae};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${he}}:host(:focus-visible){border-radius:${ye};box-shadow:0 0 0 3px ${Ae};outline:1px solid ${no}}:host(:hover) .control{border-color:${oo}}:host(:active) .control{border-color:${ro}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Ge})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${Lr})}:host([aria-checked='true']:hover) .control{border-color:${qo}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${qo}}:host([aria-checked='true']:active) .control{border-color:${qr}}:host([aria-checked='true']:active) .checked-indicator{background:${Rr}}:host([disabled]){color:${k};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${k}}:host([disabled]) .checked-indicator{background:${k}}`.withBehaviors(Oe(f`
461
+ :host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function gu(o={}){return v`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" @keypress="${(e,t)=>e.keypressHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${Z(o.checkedIndicator)}</slot></div><label part="label" class="${e=>["label",!e.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${Q({property:"defaultSlottedNodes",filter:ps})}></slot></label></template>`}const bu=gu({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),mu=Ue.compose({name:`${b.prefix}-radio`,template:bu,styles:fu});mu.define(b.registry);const vu={singleValue:"single-value"};class $u extends w{}class yu extends ln($u){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function Ln(o,e,t,r){let i=Ar(0,1,(o-e)/(t-e));return r===ve.rtl&&(i=1-i),i}var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,K=(o,e,t,r)=>{for(var i=r>1?void 0:r?ku(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xu(e,t,i),i};class W extends yu{constructor(){super(...arguments),this.direction=ve.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=se.horizontal,this.mode=vu.singleValue,this.keypressHandler=e=>{if(!(this.readOnly||this.disabled)){if(e.key===Ro)e.preventDefault(),this.direction!==ve.rtl&&this.orientation!==se.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(e.key===Mo)e.preventDefault(),this.direction!==ve.rtl&&this.orientation!==se.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!e.shiftKey)switch(e.key){case Tt:case Ot:e.preventDefault(),this.increment();break;case It:case zt:e.preventDefault(),this.decrement();break}}},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.setupListeners=(e=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),e&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;t("mouseup",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove,{passive:!0}),t("touchmove",this.handleMouseMove,{passive:!0}),t("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.orientation===se.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{if(e===null||!this.disabled&&!this.readOnly){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;if(t("mouseup",this.handleWindowMouseUp),r("mouseleave",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove),e){this.setupTrackConstraints();const i=this.orientation===se.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`}}}}handleChange(e,t){switch(t){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=f`
462
+ :host{--step-rate:${e}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){if(this.$fastController.isConnected){const r=parseFloat(t),i=Ar(this.min,this.max,this.convertToConstrainedValue(r)).toString();if(i!==t){this.value=i;return}super.valueChanged(e,t),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=us(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),S.getNotifier(this).subscribe(this,"max"),S.getNotifier(this).subscribe(this,"min"),S.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),S.getNotifier(this).unsubscribe(this,"max"),S.getNotifier(this).unsubscribe(this,"min"),S.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==ve.rtl&&this.orientation!==se.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),t=this.convertToConstrainedValue(e),r=t<Number(this.max)?`${t}`:`${this.max}`;this.value=r}decrement(){const e=this.direction!==ve.rtl&&this.orientation!==se.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),t=this.convertToConstrainedValue(e),r=t>Number(this.min)?`${t}`:`${this.min}`;this.value=r}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(e){const r=(1-Ln(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===se.horizontal?this.position=this.isDragging?`right: ${r}%; transition: none;`:`right: ${r}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${r}%; transition: none;`:`top: ${r}%; transition: all 0.2s ease;`}updateStepMultiplier(){const e=this.stepValue+"",t=this.stepValue%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}calculateNewValue(e){this.setupTrackConstraints();const t=Ln(e,this.orientation===se.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===se.horizontal?this.trackWidth:this.trackHeight,this.direction),r=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.min);let t=e-this.min;const r=Math.round(t/this.stepValue),i=t-r*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return t=i>=Number(this.stepValue)/2?t-i+Number(this.stepValue):t-i,t+this.min}}K([a],W.prototype,"size",2),K([a({attribute:"readonly",mode:"boolean"})],W.prototype,"readOnly",2),K([$],W.prototype,"direction",2),K([$],W.prototype,"isDragging",2),K([$],W.prototype,"position",2),K([$],W.prototype,"trackWidth",2),K([$],W.prototype,"trackMinWidth",2),K([$],W.prototype,"trackHeight",2),K([$],W.prototype,"trackLeft",2),K([$],W.prototype,"trackMinHeight",2),K([$],W.prototype,"valueTextFormatter",2),K([a({converter:de})],W.prototype,"min",2),K([a({converter:de})],W.prototype,"max",2),K([a({converter:de})],W.prototype,"step",2),K([a],W.prototype,"orientation",2),K([a],W.prototype,"mode",2);const wu=f`
463
+ ${T("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${ye};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${Ae};outline:1px solid ${no}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${Vo};border-radius:${ae};box-shadow:inset 0 0 0 var(--thumb-padding) ${V},0 0 0 1px ${gt}}.thumb-cursor:hover{background-color:${Jt}}.thumb-cursor:active{background-color:${eo}}:host([disabled]) .thumb-cursor{background-color:${k};box-shadow:inset 0 0 0 var(--thumb-padding) ${V},0 0 0 1px ${Je}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${Ge};border-radius:${P};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${P};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
464
+ var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${V} calc(var(--step-rate) - 1px),${V} var(--step-rate)
465
+ )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${Zt}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${Lt};position:absolute;height:100%;left:0;border-radius:${P}}:host([disabled]) .track-start{background-color:${k}}:host(:hover) .track-start{background-color:${Jt}}:host([disabled]:hover) .track-start{background-color:${k}}.track-start:active{background-color:${eo}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(Oe(f`
466
+ .track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function Cu(o={}){return v`<template role="slider" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${me("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${e=>e.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${me("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @mousedown="${(e,t)=>e.handleThumbMouseDown(t.event)}" @touchstart="${(e,t)=>e.handleThumbMouseDown(t.event)}"><slot name="thumb">${Z(o.thumb)}</slot></div></div></template>`}const Su=Cu({thumb:'<div class="thumb-cursor"></div>'}),Pu=W.compose({name:`${b.prefix}-slider`,template:Su,styles:wu});Pu.define(b.registry);var Bu=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Mn=(o,e,t,r)=>{for(var i=r>1?void 0:r?zu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bu(e,t,i),i};class fi extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}Mn([a],fi.prototype,"size",2),Mn([a],fi.prototype,"appearance",2);const Iu=f`
467
+ ${T("flex")}
468
+
469
+ :host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${ks};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${xs};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indicator{stroke:${qa}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,Tu=v`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,Ou=fi.compose({name:`${b.prefix}-spinner`,template:Tu,styles:Iu});Ou.define(b.registry);class Fu extends w{}class Au extends si(Fu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Eu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,gi=(o,e,t,r)=>{for(var i=r>1?void 0:r?_u(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Eu(e,t,i),i};class pr extends Au{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case pt:case Ft:this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}gi([a({attribute:"label-position"})],pr.prototype,"labelPosition",2),gi([a({attribute:"readonly",mode:"boolean"})],pr.prototype,"readOnly",2),gi([$],pr.prototype,"defaultSlottedNodes",2);function Lu(o={}){return v`<template role="switch" aria-checked="${e=>e.checked}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Q("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${Z(o.switch)}</slot></div></template>`}const Mu=Lu({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Ru=f`
470
+ ${T("inline-flex")}
471
+
472
+ :host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none;contain:content}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${M};line-height:${E};font-size:${O};font-weight:${A};font-family:${y};padding:${js} ${xe};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${mt};box-sizing:border-box;width:40px;height:20px;background-color:${ee};border:1px solid ${Ge};border-radius:${ae};outline:none;cursor:pointer;margin:${D} ${oe}}:host(:hover) .switch{background:none;border-color:${oo}}:host(:active) .switch{border-color:${ro}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${Je};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${Lt}}:host([aria-checked='true']:hover) .switch{background:${Jt};border-color:${Jt}}:host([aria-checked='true']:active) .switch{background:${eo};border-color:${eo}}:host([aria-checked='true'][disabled]) .switch{background:${Zt};border-color:${Je}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${J};transition-duration:${Gs};transition-timing-function:${Qo};transition-property:margin-inline-start}:host([aria-checked='true']) .checked-indicator{background-color:${Do};margin-inline-start:calc(100% - 14px)}:host([aria-checked='true']:hover) .checked-indicator{background:${Fa}}:host([aria-checked='true']:active) .checked-indicator{background:${Aa}}:host(:hover) .checked-indicator{background-color:${Ia}}:host(:active) .checked-indicator{background-color:${Ta}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${k}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${k}}:host(:focus-visible){border-color:${we};outline:${Mt} solid ${we};box-shadow:${lo},0 0 0 2px ${Ae}}`.withBehaviors(Oe(f`
473
+ .switch{border-color:InactiveBorder}:host([aria-checked='true']) .switch,:host([aria-checked='true']:active) .switch,:host([aria-checked='true']:hover) .switch{background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator{background-color:ButtonFace}`)),Du=pr.compose({name:`${b.prefix}-switch`,template:Mu,styles:Ru});Du.define(b.registry);class Nu extends w{}function Hu(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Vu=Hu(),ju=f`
474
+ ${T("block")}
475
+
476
+ :host{box-sizing:border-box;padding:${vt} ${Xe}}`,qu=Nu.compose({name:`${b.prefix}-tab-panel`,template:Vu,styles:ju});qu.define(b.registry);var Wu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Xu=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wu(e,t,i),i};class bi extends w{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=f`
477
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Xu([a({mode:"boolean"})],bi.prototype,"disabled",2),Fe(bi,je);function Uu(o={}){return v`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${We(o)}<span class="tab-content"><slot></slot></span>${qe(o)}</template>`}const Ku=Uu({}),Yu=f`
478
+ ${T("inline-flex")}
479
+
480
+ :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${E};font-family:${y};font-size:${O};color:${he};fill:currentcolor;grid-row:1;padding:${vt} ${Xe};border-radius:${P}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${M};font-weight:${R}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${E};font-weight:${R}}:host([aria-selected='true'])::after{background-color:${jr};border-radius:${ae};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${io};border-radius:${ae};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${k}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${k};color:${k}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${ye};box-shadow:0 0 0 3px ${Ae};outline:1px solid ${no}}`.withBehaviors(Oe(f`
481
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),Qu=bi.compose({name:`${b.prefix}-tab`,template:Ku,styles:Yu});Qu.define(b.registry);const Zu={subtle:"subtle",transparent:"transparent"},fr=se;var Ju=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Ct=(o,e,t,r)=>{for(var i=r>1?void 0:r?ep(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ju(e,t,i),i};class ko extends w{constructor(){super(...arguments),this.orientation=fr.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case It:e.preventDefault(),this.adjustBackward(e);break;case Tt:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case Ot:e.preventDefault(),this.adjustBackward(e);break;case zt:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case Ro:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Mo:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",r=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,s)=>{if(i.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(i),c=this.tabIds[s],h=this.tabpanelIds[s];i.setAttribute("id",c),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",h),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=c)}i.style[e]="",i.style[t]="",i.style[r]=`${s+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const r=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",r),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Er()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Er()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===fr.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),r=t.indexOf(this.activetab),i=Ar(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)+1:1,r===t.length&&(r=0);r<t.length&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else{if(this.activetab&&r===t.indexOf(this.activetab))break;r+1>=t.length?r=0:r+=1}}adjustBackward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)-1:0,r=r<0?t.length-1:r;r>=0&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else r-1<0?r=t.length-1:r-=1}moveToTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Ct([a],ko.prototype,"orientation",2),Ct([a],ko.prototype,"activeid",2),Ct([$],ko.prototype,"tabs",2),Ct([$],ko.prototype,"tabpanels",2);class wo extends ko{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Zu.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===fr.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===fr.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=f`
484
482
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=f`
485
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Tt([a],Co.prototype,"appearance",2),Tt([a({mode:"boolean"})],Co.prototype,"disabled",2),Tt([a],Co.prototype,"size",2),Oe(Co,je);function vp(o={}){return v` ${We(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${G("tabs")}></slot></div>${qe(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${G("tabpanels")}></slot></div>`}const $p=vp({}),yp=f`
486
- ${z("grid")}
483
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Ct([a],wo.prototype,"appearance",2),Ct([a({mode:"boolean"})],wo.prototype,"disabled",2),Ct([a],wo.prototype,"size",2),Fe(wo,je);function tp(o={}){return v` ${We(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${Q("tabs")}></slot></div>${qe(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${Q("tabpanels")}></slot></div>`}const op=tp({}),rp=f`
484
+ ${T("grid")}
487
485
 
488
- :host{box-sizing:border-box;font-family:${y};font-size:${F};line-height:${E};color:${pe};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${k}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${k}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${k}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Vo};color:${Dr};fill:${Nr}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Jt};fill:${Jt};color:${N}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${E};padding:${po} ${ot}}:host([size='large']) ::slotted(fluent-tab){font-size:${fe};line-height:${Se};padding:${yc} ${Xe}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${kc};transition-timing-function:${Ys}}:host ::slotted(fluent-tab)::after{height:${tt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${tt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${tt};border-radius:${le};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${tt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${tt};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${tt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${po};padding-bottom:${po}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${js};padding-bottom:${js}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${H};padding-bottom:${H}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ot};left:${ot}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Xe};left:${Xe}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Xe};left:${Xe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${po};bottom:${po}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${H};bottom:${H}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Ws};bottom:${Ws}}`,xp=Co.compose({name:`${b.prefix}-tabs`,template:$p,styles:yp});xp.define(b.registry);const kp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},wp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Cp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,L=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cp(e,t,i),i};class P extends C{constructor(){super(...arguments),this.type=kp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readonlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readonly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get value(){return S.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.control.value=e,this.setFormValue(e),this.setValidity(),S.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){e.preventDefault(),this.setValidity(),this.$emit("change",e,{bubbles:!0,cancelable:!1,composed:!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this.keypressHandler),this.setFormValue(this.value),this.setValidity()}disconnectedCallback(){this.removeEventListener("keypress",this.keypressHandler),super.disconnectedCallback()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>wp.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keypressHandler(e){return e.key===gt&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.control.validationMessage,r=this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t??"",r)}}P.formAssociated=!0,L([a],P.prototype,"appearance",2),L([a],P.prototype,"autocomplete",2),L([a({mode:"boolean"})],P.prototype,"autofocus",2),L([a({attribute:"control-size"})],P.prototype,"controlSize",2),L([$],P.prototype,"defaultSlottedNodes",2),L([a],P.prototype,"dirname",2),L([a({mode:"boolean"})],P.prototype,"disabled",2),L([a({attribute:"form"})],P.prototype,"formAttribute",2),L([a({attribute:"value",mode:"fromView"})],P.prototype,"initialValue",2),L([a],P.prototype,"list",2),L([a({converter:ue})],P.prototype,"maxlength",2),L([a({converter:ue})],P.prototype,"minlength",2),L([a({mode:"boolean"})],P.prototype,"multiple",2),L([a],P.prototype,"name",2),L([a],P.prototype,"pattern",2),L([a],P.prototype,"placeholder",2),L([a({attribute:"readonly",mode:"boolean"})],P.prototype,"readonly",2),L([a({mode:"boolean"})],P.prototype,"required",2),L([a({converter:ue})],P.prototype,"size",2),L([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],P.prototype,"spellcheck",2),L([a],P.prototype,"type",2),L([$],P.prototype,"controlLabel",2),Oe(P,je);const Tp=f`
489
- ${z("block")}
486
+ :host{box-sizing:border-box;font-family:${y};font-size:${O};line-height:${E};color:${he};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${k}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${k}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${P}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${k}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Ho};color:${_r};fill:${Mr}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Yt};fill:${Yt};color:${M}}:host([size='small']) ::slotted(fluent-tab){font-size:${O};line-height:${E};padding:${co} ${tt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${Ce};padding:${Ws} ${Xe}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${vc};transition-timing-function:${Us}}:host ::slotted(fluent-tab)::after{height:${et};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${et};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${et};border-radius:${ae};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${et};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${et};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${et}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${co};padding-bottom:${co}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Vs};padding-bottom:${Vs}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${D};padding-bottom:${D}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${tt};left:${tt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Xe};left:${Xe}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Xe};left:${Xe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${co};bottom:${co}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${D};bottom:${D}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${qs};bottom:${qs}}`,ip=wo.compose({name:`${b.prefix}-tabs`,template:op,styles:rp});ip.define(b.registry);const sp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},np=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var ap=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,_=(o,e,t,r)=>{for(var i=r>1?void 0:r?lp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ap(e,t,i),i};class B extends w{constructor(){super(...arguments),this.type=sp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readonlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readonly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get value(){return S.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.control.value=e,this.setFormValue(e),this.setValidity(),S.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){e.preventDefault(),this.setValidity(),this.$emit("change",e,{bubbles:!0,cancelable:!1,composed:!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this.keypressHandler),this.setFormValue(this.value),this.setValidity()}disconnectedCallback(){this.removeEventListener("keypress",this.keypressHandler),super.disconnectedCallback()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>np.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keypressHandler(e){return e.key===pt&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.control.validationMessage,r=this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t??"",r)}}B.formAssociated=!0,_([a],B.prototype,"appearance",2),_([a],B.prototype,"autocomplete",2),_([a({mode:"boolean"})],B.prototype,"autofocus",2),_([a({attribute:"control-size"})],B.prototype,"controlSize",2),_([$],B.prototype,"defaultSlottedNodes",2),_([a],B.prototype,"dirname",2),_([a({mode:"boolean"})],B.prototype,"disabled",2),_([a({attribute:"form"})],B.prototype,"formAttribute",2),_([a({attribute:"value",mode:"fromView"})],B.prototype,"initialValue",2),_([a],B.prototype,"list",2),_([a({converter:de})],B.prototype,"maxlength",2),_([a({converter:de})],B.prototype,"minlength",2),_([a({mode:"boolean"})],B.prototype,"multiple",2),_([a],B.prototype,"name",2),_([a],B.prototype,"pattern",2),_([a],B.prototype,"placeholder",2),_([a({attribute:"readonly",mode:"boolean"})],B.prototype,"readonly",2),_([a({mode:"boolean"})],B.prototype,"required",2),_([a({converter:de})],B.prototype,"size",2),_([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],B.prototype,"spellcheck",2),_([a],B.prototype,"type",2),_([$],B.prototype,"controlLabel",2),Fe(B,je);const cp=f`
487
+ ${T("block")}
490
488
 
491
- :host{font-family:${y};font-size:${F};font-weight:${O};line-height:${E};max-width:400px}.label{display:flex;color:${N};padding-bottom:${qs};flex-shrink:0;padding-inline-end:${we}}.label[hidden],:host(:empty) .label{display:none}.root{position:relative;box-sizing:border-box;height:32px;display:inline-flex;align-items:center;flex-direction:row;width:100%;padding:0 ${Xe};border:${oe} solid ${mt};border-bottom-color:${Ge};border-radius:${T};gap:${$t}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Gr};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${xc};transition-delay:${Ks}}.control{width:100%;height:100%;box-sizing:border-box;color:${N};border-radius:${T};background:${te};font-family:${y};font-weight:${O};font-size:${F};border:none;background:transparent;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${La}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ee};font-size:${vt}}:host ::slotted([slot='start']){padding-right:${$t}}:host ::slotted([slot='end']){padding-left:${$t};gap:${we}}:host(:hover) .root{border-color:${ao};border-bottom-color:${so}}:host(:active) .root{border-color:${qo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Xs};transition-delay:${Qs}}:host(:focus-within:active) .root:after{border-bottom-color:${Xr}}:host([appearance='outline']:focus-within) .root{border:${oe} solid ${mt}}:host(:focus-within) .control{color:${N}}:host([disabled]) .root{background:${te};border:${oe} solid ${et}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}::selection{color:${No};background-color:${Va}}:host([control-size='small']) .control{font-size:${U};font-weight:${O};line-height:${ge}}:host([control-size='small']) .root{height:24px;gap:${$t};padding:0 ${ot}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fe}}:host([control-size='large']) .control{font-size:${fe};font-weight:${O};line-height:${Se}}:host([control-size='large']) .root{height:40px;gap:${K};padding:0 ${yt}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Go}}:host([appearance='underline']) .root{background:${te};border:0;border-radius:0;border-bottom:${oe} solid ${Ge}}:host([appearance='underline']:hover) .root{border-bottom-color:${so}}:host([appearance='underline']:active) .root{border-bottom-color:${no}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${no}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${et}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${oe} solid ${Ce};box-shadow:${ti}}:host([appearance='filled-lighter']) .root{background:${X}}:host([appearance='filled-darker']) .root{background:${vs}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Cs}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Cs};background:${vs}}`;function Pp(o={}){return v`<label part="label" for="control" class="label" ${$e("controlLabel")}><slot ${G({property:"defaultSlottedNodes",filter:fs})}></slot></label><div class="root" part="root">${We(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}" ${$e("control")} />${qe(o)}</div>`}const Ip=Pp(),Bp=P.compose({name:`${b.prefix}-text-input`,template:Ip,styles:Tp});Bp.define(b.registry);var zp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Re=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&zp(e,t,i),i};class Ie extends C{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Re([a({mode:"boolean"})],Ie.prototype,"nowrap",2),Re([a({mode:"boolean"})],Ie.prototype,"truncate",2),Re([a({mode:"boolean"})],Ie.prototype,"italic",2),Re([a({mode:"boolean"})],Ie.prototype,"underline",2),Re([a({mode:"boolean"})],Ie.prototype,"strikethrough",2),Re([a({mode:"boolean"})],Ie.prototype,"block",2),Re([a],Ie.prototype,"size",2),Re([a],Ie.prototype,"font",2),Re([a],Ie.prototype,"weight",2),Re([a],Ie.prototype,"align",2);const Ap=f`
492
- ${z("inline")}
489
+ :host{font-family:${y};font-size:${O};font-weight:${A};line-height:${E};max-width:400px}.label{display:flex;color:${M};padding-bottom:${js};flex-shrink:0;padding-inline-end:${xe}}.label[hidden],:host(:empty) .label{display:none}.root{position:relative;box-sizing:border-box;height:32px;display:inline-flex;align-items:center;flex-direction:row;width:100%;padding:0 ${Xe};border:${te} solid ${gt};border-bottom-color:${Ge};border-radius:${P};gap:${mt}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${P});border-radius:0 0 ${P} ${P};border-bottom:2px solid ${jr};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${bc};transition-delay:${Jr}}.control{width:100%;height:100%;box-sizing:border-box;color:${M};border-radius:${P};background:${ee};font-family:${y};font-weight:${A};font-size:${O};border:none;background:transparent;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Oa}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${J};font-size:${bt}}:host ::slotted([slot='start']){padding-right:${mt}}:host ::slotted([slot='end']){padding-left:${mt};gap:${xe}}:host(:hover) .root{border-color:${io};border-bottom-color:${oo}}:host(:active) .root{border-color:${jo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Gs};transition-delay:${ei}}:host(:focus-within:active) .root:after{border-bottom-color:${qr}}:host([appearance='outline']:focus-within) .root{border:${te} solid ${gt}}:host(:focus-within) .control{color:${M}}:host([disabled]) .root{background:${ee};border:${te} solid ${Je}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}::selection{color:${Do};background-color:${Ra}}:host([control-size='small']) .control{font-size:${X};font-weight:${A};line-height:${pe}}:host([control-size='small']) .root{height:24px;gap:${mt};padding:0 ${tt}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${A};line-height:${Ce}}:host([control-size='large']) .root{height:40px;gap:${oe};padding:0 ${vt}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Wo}}:host([appearance='underline']) .root{background:${ee};border:0;border-radius:0;border-bottom:${te} solid ${Ge}}:host([appearance='underline']:hover) .root{border-bottom-color:${oo}}:host([appearance='underline']:active) .root{border-bottom-color:${ro}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${ro}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Je}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${te} solid ${we};box-shadow:${Zr}}:host([appearance='filled-lighter']) .root{background:${V}}:host([appearance='filled-darker']) .root{background:${ms}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${ws}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${ws};background:${ms}}`;function dp(o={}){return v`<label part="label" for="control" class="label" ${me("controlLabel")}><slot ${Q({property:"defaultSlottedNodes",filter:ps})}></slot></label><div class="root" part="root">${We(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}" ${me("control")} />${qe(o)}</div>`}const hp=dp(),up=B.compose({name:`${b.prefix}-text-input`,template:hp,styles:cp});up.define(b.registry);var pp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,De=(o,e,t,r)=>{for(var i=r>1?void 0:r?fp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&pp(e,t,i),i};class Be extends w{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}De([a({mode:"boolean"})],Be.prototype,"nowrap",2),De([a({mode:"boolean"})],Be.prototype,"truncate",2),De([a({mode:"boolean"})],Be.prototype,"italic",2),De([a({mode:"boolean"})],Be.prototype,"underline",2),De([a({mode:"boolean"})],Be.prototype,"strikethrough",2),De([a({mode:"boolean"})],Be.prototype,"block",2),De([a],Be.prototype,"size",2),De([a],Be.prototype,"font",2),De([a],Be.prototype,"weight",2),De([a],Be.prototype,"align",2);const gp=f`
490
+ ${T("inline")}
493
491
 
494
- :host{contain:content}::slotted(*){font-family:${y};font-size:${F};line-height:${E};font-weight:${O};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*){display:block}:host([italic]) ::slotted(*){font-style:italic}:host([underline]) ::slotted(*){text-decoration-line:underline}:host([strikethrough]) ::slotted(*){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*){font-size:${ho};line-height:${Uo}}:host([size='200']) ::slotted(*){font-size:${U};line-height:${ge}}:host([size='400']) ::slotted(*){font-size:${fe};line-height:${Se}}:host([size='500']) ::slotted(*){font-size:${vt};line-height:${Ko}}:host([size='600']) ::slotted(*){font-size:${Go};line-height:${Ls}}:host([size='700']) ::slotted(*){font-size:${Fs};line-height:${_s}}:host([size='800']) ::slotted(*){font-size:${As};line-height:${Ms}}:host([size='900']) ::slotted(*){font-size:${Os};line-height:${Ds}}:host([size='1000']) ::slotted(*){font-size:${Es};line-height:${Rs}}:host([font='monospace']) ::slotted(*){font-family:${pc}}:host([font='numeric']) ::slotted(*){font-family:${fc}}:host([weight='medium']) ::slotted(*){font-weight:${gc}}:host([weight='semibold']) ::slotted(*){font-weight:${M}}:host([weight='bold']) ::slotted(*){font-weight:${Xo}}:host([align='center']) ::slotted(*){text-align:center}:host([align='end']) ::slotted(*){text-align:end}:host([align='justify']) ::slotted(*){text-align:justify}`,Op=v`<slot></slot>`,Ep=Ie.compose({name:`${b.prefix}-text`,template:Op,styles:Ap});Ep.define(b.registry);var Lp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,jn=(o,e,t,r)=>{for(var i=r>1?void 0:r?_p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Lp(e,t,i),i};class vi extends A{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.setAttribute("aria-pressed",e)}}}jn([a({mode:"boolean"})],vi.prototype,"pressed",2),jn([a({mode:"boolean"})],vi.prototype,"mixed",2);const Mp=f`
495
- ${or}
492
+ :host{contain:content}::slotted(*){font-family:${y};font-size:${O};line-height:${E};font-weight:${A};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*){display:block}:host([italic]) ::slotted(*){font-style:italic}:host([underline]) ::slotted(*){text-decoration-line:underline}:host([strikethrough]) ::slotted(*){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*){font-size:${ao};line-height:${Xo}}:host([size='200']) ::slotted(*){font-size:${X};line-height:${pe}}:host([size='400']) ::slotted(*){font-size:${ue};line-height:${Ce}}:host([size='500']) ::slotted(*){font-size:${bt};line-height:${Uo}}:host([size='600']) ::slotted(*){font-size:${Wo};line-height:${Es}}:host([size='700']) ::slotted(*){font-size:${Ts};line-height:${_s}}:host([size='800']) ::slotted(*){font-size:${Os};line-height:${Ls}}:host([size='900']) ::slotted(*){font-size:${Fs};line-height:${Ms}}:host([size='1000']) ::slotted(*){font-size:${As};line-height:${Rs}}:host([font='monospace']) ::slotted(*){font-family:${cc}}:host([font='numeric']) ::slotted(*){font-family:${dc}}:host([weight='medium']) ::slotted(*){font-weight:${hc}}:host([weight='semibold']) ::slotted(*){font-weight:${R}}:host([weight='bold']) ::slotted(*){font-weight:${Go}}:host([align='center']) ::slotted(*){text-align:center}:host([align='end']) ::slotted(*){text-align:end}:host([align='justify']) ::slotted(*){text-align:justify}`,bp=v`<slot></slot>`,mp=Be.compose({name:`${b.prefix}-text`,template:bp,styles:gp});mp.define(b.registry);var vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Rn=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vp(e,t,i),i};class mi extends F{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.setAttribute("aria-pressed",e)}}}Rn([a({mode:"boolean"})],mi.prototype,"pressed",2),Rn([a({mode:"boolean"})],mi.prototype,"mixed",2);const yp=f`
493
+ ${tr}
496
494
 
497
- :host([aria-pressed='true']){border-color:${mt};background-color:${ms};color:${N};border-width:${oe}}:host([aria-pressed='true']:hover){border-color:${ao};background-color:${Ho}}:host([aria-pressed='true']:active){border-color:${qo};background-color:${jr}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${Ga};color:${xe}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${qr}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${Wr}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${ja};color:${Fa}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${Vo};color:${Qt}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${Jt};color:${Zt}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${qa}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${Dt}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${eo}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${Aa}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${_t}}:host([aria-pressed='true'][appearance='transparent']:active){color:${Mt}}`.withBehaviors(Ae(f`
498
- :host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`)),Dp=si(),Rp=vi.compose({name:`${b.prefix}-toggle-button`,template:Dp,styles:Mp});Rp.define(b.registry);
495
+ :host([aria-pressed='true']){border-color:${gt};background-color:${bs};color:${M};border-width:${te}}:host([aria-pressed='true']:hover){border-color:${io};background-color:${No}}:host([aria-pressed='true']:active){border-color:${jo};background-color:${Nr}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${Va};color:${$e}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${Hr}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${Vr}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${Da};color:${Ba}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${Ho};color:${Ut}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${Yt};color:${Kt}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${Na}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${_t}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${Qt}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${za}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${At}}:host([aria-pressed='true'][appearance='transparent']:active){color:${Et}}`.withBehaviors(Oe(f`
496
+ :host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`)),xp=ii(),kp=mi.compose({name:`${b.prefix}-toggle-button`,template:xp,styles:yp});kp.define(b.registry);