@fluentui/web-components 3.0.0-rc.15 → 3.0.0-rc.16

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 (522) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/custom-elements.json +10963 -11517
  3. package/dist/esm/accordion/accordion.d.ts +4 -7
  4. package/dist/esm/accordion/accordion.definition.js +2 -2
  5. package/dist/esm/accordion/accordion.definition.js.map +1 -1
  6. package/dist/esm/accordion/accordion.js +4 -7
  7. package/dist/esm/accordion/accordion.js.map +1 -1
  8. package/dist/esm/accordion/accordion.options.d.ts +7 -1
  9. package/dist/esm/accordion/accordion.options.js +7 -0
  10. package/dist/esm/accordion/accordion.options.js.map +1 -1
  11. package/dist/esm/accordion/accordion.styles.js +1 -1
  12. package/dist/esm/accordion/accordion.styles.js.map +1 -1
  13. package/dist/esm/accordion/index.d.ts +1 -0
  14. package/dist/esm/accordion/index.js +1 -0
  15. package/dist/esm/accordion/index.js.map +1 -1
  16. package/dist/esm/accordion-item/accordion-item.d.ts +2 -4
  17. package/dist/esm/accordion-item/accordion-item.definition.js +2 -2
  18. package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
  19. package/dist/esm/accordion-item/accordion-item.js +1 -1
  20. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  21. package/dist/esm/accordion-item/accordion-item.options.d.ts +6 -0
  22. package/dist/esm/accordion-item/accordion-item.options.js +7 -0
  23. package/dist/esm/accordion-item/accordion-item.options.js.map +1 -1
  24. package/dist/esm/accordion-item/accordion-item.styles.js +1 -1
  25. package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
  26. package/dist/esm/accordion-item/accordion-item.template.js +2 -2
  27. package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
  28. package/dist/esm/accordion-item/index.d.ts +1 -0
  29. package/dist/esm/accordion-item/index.js +1 -0
  30. package/dist/esm/accordion-item/index.js.map +1 -1
  31. package/dist/esm/anchor-button/anchor-button.base.d.ts +1 -1
  32. package/dist/esm/anchor-button/anchor-button.base.js +7 -7
  33. package/dist/esm/anchor-button/anchor-button.base.js.map +1 -1
  34. package/dist/esm/anchor-button/anchor-button.d.ts +1 -2
  35. package/dist/esm/anchor-button/anchor-button.definition.js +2 -2
  36. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
  37. package/dist/esm/anchor-button/anchor-button.js +1 -1
  38. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  39. package/dist/esm/anchor-button/anchor-button.options.d.ts +7 -1
  40. package/dist/esm/anchor-button/anchor-button.options.js +7 -0
  41. package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
  42. package/dist/esm/anchor-button/anchor-button.styles.js +4 -3
  43. package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
  44. package/dist/esm/anchor-button/anchor-button.template.js +1 -1
  45. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  46. package/dist/esm/anchor-button/index.d.ts +1 -0
  47. package/dist/esm/anchor-button/index.js +1 -0
  48. package/dist/esm/anchor-button/index.js.map +1 -1
  49. package/dist/esm/avatar/avatar.definition.js +2 -2
  50. package/dist/esm/avatar/avatar.definition.js.map +1 -1
  51. package/dist/esm/avatar/avatar.options.d.ts +7 -1
  52. package/dist/esm/avatar/avatar.options.js +7 -0
  53. package/dist/esm/avatar/avatar.options.js.map +1 -1
  54. package/dist/esm/avatar/avatar.styles.js +1 -1
  55. package/dist/esm/avatar/avatar.styles.js.map +1 -1
  56. package/dist/esm/avatar/index.d.ts +1 -0
  57. package/dist/esm/avatar/index.js +1 -0
  58. package/dist/esm/avatar/index.js.map +1 -1
  59. package/dist/esm/badge/badge.d.ts +1 -1
  60. package/dist/esm/badge/badge.definition.js +2 -2
  61. package/dist/esm/badge/badge.definition.js.map +1 -1
  62. package/dist/esm/badge/badge.js +1 -1
  63. package/dist/esm/badge/badge.js.map +1 -1
  64. package/dist/esm/badge/badge.options.d.ts +9 -2
  65. package/dist/esm/badge/badge.options.js +7 -0
  66. package/dist/esm/badge/badge.options.js.map +1 -1
  67. package/dist/esm/badge/badge.styles.js +5 -4
  68. package/dist/esm/badge/badge.styles.js.map +1 -1
  69. package/dist/esm/badge/badge.template.js +1 -1
  70. package/dist/esm/badge/badge.template.js.map +1 -1
  71. package/dist/esm/badge/index.d.ts +1 -0
  72. package/dist/esm/badge/index.js +1 -0
  73. package/dist/esm/badge/index.js.map +1 -1
  74. package/dist/esm/button/button.d.ts +1 -1
  75. package/dist/esm/button/button.definition.js +2 -2
  76. package/dist/esm/button/button.definition.js.map +1 -1
  77. package/dist/esm/button/button.js +1 -1
  78. package/dist/esm/button/button.js.map +1 -1
  79. package/dist/esm/button/button.options.d.ts +8 -2
  80. package/dist/esm/button/button.options.js +7 -0
  81. package/dist/esm/button/button.options.js.map +1 -1
  82. package/dist/esm/button/button.styles.js +5 -3
  83. package/dist/esm/button/button.styles.js.map +1 -1
  84. package/dist/esm/button/button.template.js +1 -1
  85. package/dist/esm/button/button.template.js.map +1 -1
  86. package/dist/esm/button/index.d.ts +1 -0
  87. package/dist/esm/button/index.js +1 -0
  88. package/dist/esm/button/index.js.map +1 -1
  89. package/dist/esm/checkbox/checkbox.definition.js +2 -2
  90. package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
  91. package/dist/esm/checkbox/checkbox.options.d.ts +6 -0
  92. package/dist/esm/checkbox/checkbox.options.js +7 -0
  93. package/dist/esm/checkbox/checkbox.options.js.map +1 -1
  94. package/dist/esm/checkbox/checkbox.styles.js +4 -3
  95. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  96. package/dist/esm/checkbox/index.d.ts +1 -0
  97. package/dist/esm/checkbox/index.js +1 -0
  98. package/dist/esm/checkbox/index.js.map +1 -1
  99. package/dist/esm/compound-button/compound-button.definition.js +2 -2
  100. package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
  101. package/dist/esm/compound-button/compound-button.options.d.ts +7 -1
  102. package/dist/esm/compound-button/compound-button.options.js +7 -0
  103. package/dist/esm/compound-button/compound-button.options.js.map +1 -1
  104. package/dist/esm/compound-button/compound-button.styles.js +4 -3
  105. package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
  106. package/dist/esm/compound-button/compound-button.template.js +1 -1
  107. package/dist/esm/compound-button/compound-button.template.js.map +1 -1
  108. package/dist/esm/compound-button/index.d.ts +1 -0
  109. package/dist/esm/compound-button/index.js +1 -0
  110. package/dist/esm/compound-button/index.js.map +1 -1
  111. package/dist/esm/counter-badge/counter-badge.d.ts +1 -1
  112. package/dist/esm/counter-badge/counter-badge.definition.js +2 -2
  113. package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
  114. package/dist/esm/counter-badge/counter-badge.js +1 -1
  115. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  116. package/dist/esm/counter-badge/counter-badge.options.d.ts +7 -1
  117. package/dist/esm/counter-badge/counter-badge.options.js +7 -0
  118. package/dist/esm/counter-badge/counter-badge.options.js.map +1 -1
  119. package/dist/esm/counter-badge/counter-badge.styles.js +1 -1
  120. package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
  121. package/dist/esm/counter-badge/index.d.ts +1 -0
  122. package/dist/esm/counter-badge/index.js +1 -0
  123. package/dist/esm/counter-badge/index.js.map +1 -1
  124. package/dist/esm/dialog/dialog.definition.js +2 -2
  125. package/dist/esm/dialog/dialog.definition.js.map +1 -1
  126. package/dist/esm/dialog/dialog.options.d.ts +7 -1
  127. package/dist/esm/dialog/dialog.options.js +7 -0
  128. package/dist/esm/dialog/dialog.options.js.map +1 -1
  129. package/dist/esm/dialog/dialog.styles.js +4 -3
  130. package/dist/esm/dialog/dialog.styles.js.map +1 -1
  131. package/dist/esm/dialog/index.d.ts +1 -0
  132. package/dist/esm/dialog/index.js +1 -0
  133. package/dist/esm/dialog/index.js.map +1 -1
  134. package/dist/esm/dialog-body/dialog-body.definition.js +2 -2
  135. package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -1
  136. package/dist/esm/dialog-body/dialog-body.options.d.ts +6 -0
  137. package/dist/esm/dialog-body/dialog-body.options.js +8 -0
  138. package/dist/esm/dialog-body/dialog-body.options.js.map +1 -0
  139. package/dist/esm/dialog-body/dialog-body.styles.js +1 -1
  140. package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -1
  141. package/dist/esm/dialog-body/index.d.ts +1 -0
  142. package/dist/esm/dialog-body/index.js +1 -0
  143. package/dist/esm/dialog-body/index.js.map +1 -1
  144. package/dist/esm/divider/divider.definition.js +2 -2
  145. package/dist/esm/divider/divider.definition.js.map +1 -1
  146. package/dist/esm/divider/divider.options.d.ts +7 -1
  147. package/dist/esm/divider/divider.options.js +7 -0
  148. package/dist/esm/divider/divider.options.js.map +1 -1
  149. package/dist/esm/divider/divider.styles.js +5 -3
  150. package/dist/esm/divider/divider.styles.js.map +1 -1
  151. package/dist/esm/divider/index.d.ts +1 -0
  152. package/dist/esm/divider/index.js +1 -0
  153. package/dist/esm/divider/index.js.map +1 -1
  154. package/dist/esm/drawer/drawer.d.ts +8 -7
  155. package/dist/esm/drawer/drawer.definition.js +2 -2
  156. package/dist/esm/drawer/drawer.definition.js.map +1 -1
  157. package/dist/esm/drawer/drawer.js +8 -7
  158. package/dist/esm/drawer/drawer.js.map +1 -1
  159. package/dist/esm/drawer/drawer.options.d.ts +7 -1
  160. package/dist/esm/drawer/drawer.options.js +7 -0
  161. package/dist/esm/drawer/drawer.options.js.map +1 -1
  162. package/dist/esm/drawer/drawer.styles.js +1 -1
  163. package/dist/esm/drawer/drawer.styles.js.map +1 -1
  164. package/dist/esm/drawer/index.d.ts +1 -0
  165. package/dist/esm/drawer/index.js +1 -0
  166. package/dist/esm/drawer/index.js.map +1 -1
  167. package/dist/esm/drawer-body/drawer-body.definition.js +2 -2
  168. package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -1
  169. package/dist/esm/drawer-body/drawer-body.options.d.ts +6 -0
  170. package/dist/esm/drawer-body/drawer-body.options.js +8 -0
  171. package/dist/esm/drawer-body/drawer-body.options.js.map +1 -0
  172. package/dist/esm/drawer-body/drawer-body.styles.js +1 -1
  173. package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -1
  174. package/dist/esm/drawer-body/index.d.ts +1 -0
  175. package/dist/esm/drawer-body/index.js +1 -0
  176. package/dist/esm/drawer-body/index.js.map +1 -1
  177. package/dist/esm/dropdown/dropdown.definition.js +2 -2
  178. package/dist/esm/dropdown/dropdown.definition.js.map +1 -1
  179. package/dist/esm/dropdown/dropdown.options.d.ts +6 -0
  180. package/dist/esm/dropdown/dropdown.options.js +7 -0
  181. package/dist/esm/dropdown/dropdown.options.js.map +1 -1
  182. package/dist/esm/dropdown/index.d.ts +1 -0
  183. package/dist/esm/dropdown/index.js +1 -0
  184. package/dist/esm/dropdown/index.js.map +1 -1
  185. package/dist/esm/field/field.definition.js +2 -2
  186. package/dist/esm/field/field.definition.js.map +1 -1
  187. package/dist/esm/field/field.options.d.ts +6 -0
  188. package/dist/esm/field/field.options.js +7 -0
  189. package/dist/esm/field/field.options.js.map +1 -1
  190. package/dist/esm/field/index.d.ts +1 -0
  191. package/dist/esm/field/index.js +1 -0
  192. package/dist/esm/field/index.js.map +1 -1
  193. package/dist/esm/fluent-design-system.js +1 -1
  194. package/dist/esm/fluent-design-system.js.map +1 -1
  195. package/dist/esm/image/image.definition.js +2 -2
  196. package/dist/esm/image/image.definition.js.map +1 -1
  197. package/dist/esm/image/image.options.d.ts +7 -1
  198. package/dist/esm/image/image.options.js +7 -0
  199. package/dist/esm/image/image.options.js.map +1 -1
  200. package/dist/esm/image/index.d.ts +1 -0
  201. package/dist/esm/image/index.js +1 -0
  202. package/dist/esm/image/index.js.map +1 -1
  203. package/dist/esm/index.d.ts +0 -2
  204. package/dist/esm/index.js +0 -1
  205. package/dist/esm/index.js.map +1 -1
  206. package/dist/esm/label/index.d.ts +1 -0
  207. package/dist/esm/label/index.js +1 -0
  208. package/dist/esm/label/index.js.map +1 -1
  209. package/dist/esm/label/label.definition.js +2 -2
  210. package/dist/esm/label/label.definition.js.map +1 -1
  211. package/dist/esm/label/label.options.d.ts +7 -1
  212. package/dist/esm/label/label.options.js +7 -0
  213. package/dist/esm/label/label.options.js.map +1 -1
  214. package/dist/esm/label/label.styles.js +1 -1
  215. package/dist/esm/label/label.styles.js.map +1 -1
  216. package/dist/esm/link/index.d.ts +1 -0
  217. package/dist/esm/link/index.js +1 -0
  218. package/dist/esm/link/index.js.map +1 -1
  219. package/dist/esm/link/link.definition.js +2 -2
  220. package/dist/esm/link/link.definition.js.map +1 -1
  221. package/dist/esm/link/link.options.d.ts +7 -1
  222. package/dist/esm/link/link.options.js +7 -0
  223. package/dist/esm/link/link.options.js.map +1 -1
  224. package/dist/esm/link/link.styles.js +5 -3
  225. package/dist/esm/link/link.styles.js.map +1 -1
  226. package/dist/esm/listbox/index.d.ts +1 -0
  227. package/dist/esm/listbox/index.js +1 -0
  228. package/dist/esm/listbox/index.js.map +1 -1
  229. package/dist/esm/listbox/listbox.definition.js +2 -2
  230. package/dist/esm/listbox/listbox.definition.js.map +1 -1
  231. package/dist/esm/listbox/listbox.options.d.ts +6 -0
  232. package/dist/esm/listbox/listbox.options.js +7 -0
  233. package/dist/esm/listbox/listbox.options.js.map +1 -1
  234. package/dist/esm/menu/index.d.ts +1 -0
  235. package/dist/esm/menu/index.js +1 -0
  236. package/dist/esm/menu/index.js.map +1 -1
  237. package/dist/esm/menu/menu.definition.js +2 -2
  238. package/dist/esm/menu/menu.definition.js.map +1 -1
  239. package/dist/esm/menu/menu.js +4 -3
  240. package/dist/esm/menu/menu.js.map +1 -1
  241. package/dist/esm/menu/menu.options.d.ts +6 -0
  242. package/dist/esm/menu/menu.options.js +8 -0
  243. package/dist/esm/menu/menu.options.js.map +1 -0
  244. package/dist/esm/menu/menu.styles.js +1 -1
  245. package/dist/esm/menu/menu.styles.js.map +1 -1
  246. package/dist/esm/menu-button/index.d.ts +1 -0
  247. package/dist/esm/menu-button/index.js +1 -0
  248. package/dist/esm/menu-button/index.js.map +1 -1
  249. package/dist/esm/menu-button/menu-button.definition.js +2 -2
  250. package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
  251. package/dist/esm/menu-button/menu-button.options.d.ts +7 -1
  252. package/dist/esm/menu-button/menu-button.options.js +7 -0
  253. package/dist/esm/menu-button/menu-button.options.js.map +1 -1
  254. package/dist/esm/menu-item/index.d.ts +1 -0
  255. package/dist/esm/menu-item/index.js +1 -0
  256. package/dist/esm/menu-item/index.js.map +1 -1
  257. package/dist/esm/menu-item/menu-item.d.ts +3 -1
  258. package/dist/esm/menu-item/menu-item.definition.js +2 -2
  259. package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
  260. package/dist/esm/menu-item/menu-item.js +19 -7
  261. package/dist/esm/menu-item/menu-item.js.map +1 -1
  262. package/dist/esm/menu-item/menu-item.options.d.ts +7 -1
  263. package/dist/esm/menu-item/menu-item.options.js +7 -0
  264. package/dist/esm/menu-item/menu-item.options.js.map +1 -1
  265. package/dist/esm/menu-item/menu-item.styles.js +5 -3
  266. package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
  267. package/dist/esm/menu-item/menu-item.template.js +3 -2
  268. package/dist/esm/menu-item/menu-item.template.js.map +1 -1
  269. package/dist/esm/menu-list/index.d.ts +1 -0
  270. package/dist/esm/menu-list/index.js +1 -0
  271. package/dist/esm/menu-list/index.js.map +1 -1
  272. package/dist/esm/menu-list/menu-list.base.d.ts +5 -24
  273. package/dist/esm/menu-list/menu-list.base.js +20 -125
  274. package/dist/esm/menu-list/menu-list.base.js.map +1 -1
  275. package/dist/esm/menu-list/menu-list.d.ts +5 -1
  276. package/dist/esm/menu-list/menu-list.definition.js +2 -2
  277. package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
  278. package/dist/esm/menu-list/menu-list.js +23 -1
  279. package/dist/esm/menu-list/menu-list.js.map +1 -1
  280. package/dist/esm/menu-list/menu-list.options.d.ts +6 -0
  281. package/dist/esm/menu-list/menu-list.options.js +8 -0
  282. package/dist/esm/menu-list/menu-list.options.js.map +1 -0
  283. package/dist/esm/menu-list/menu-list.styles.js +1 -1
  284. package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
  285. package/dist/esm/menu-list/menu-list.template.js +1 -5
  286. package/dist/esm/menu-list/menu-list.template.js.map +1 -1
  287. package/dist/esm/message-bar/index.d.ts +1 -0
  288. package/dist/esm/message-bar/index.js +1 -0
  289. package/dist/esm/message-bar/index.js.map +1 -1
  290. package/dist/esm/message-bar/message-bar.definition.js +2 -1
  291. package/dist/esm/message-bar/message-bar.definition.js.map +1 -1
  292. package/dist/esm/message-bar/message-bar.options.d.ts +6 -0
  293. package/dist/esm/message-bar/message-bar.options.js +7 -0
  294. package/dist/esm/message-bar/message-bar.options.js.map +1 -1
  295. package/dist/esm/message-bar/message-bar.template.d.ts +3 -3
  296. package/dist/esm/message-bar/message-bar.template.js +3 -3
  297. package/dist/esm/option/index.d.ts +1 -0
  298. package/dist/esm/option/index.js +1 -0
  299. package/dist/esm/option/index.js.map +1 -1
  300. package/dist/esm/option/option.definition.js +2 -2
  301. package/dist/esm/option/option.definition.js.map +1 -1
  302. package/dist/esm/option/option.options.d.ts +6 -0
  303. package/dist/esm/option/option.options.js +7 -0
  304. package/dist/esm/option/option.options.js.map +1 -1
  305. package/dist/esm/patterns/start-end.d.ts +1 -1
  306. package/dist/esm/patterns/start-end.js +1 -1
  307. package/dist/esm/patterns/start-end.js.map +1 -1
  308. package/dist/esm/progress-bar/index.d.ts +1 -0
  309. package/dist/esm/progress-bar/index.js +1 -0
  310. package/dist/esm/progress-bar/index.js.map +1 -1
  311. package/dist/esm/progress-bar/progress-bar.definition.js +2 -2
  312. package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -1
  313. package/dist/esm/progress-bar/progress-bar.options.d.ts +7 -1
  314. package/dist/esm/progress-bar/progress-bar.options.js +7 -0
  315. package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
  316. package/dist/esm/progress-bar/progress-bar.styles.js +5 -3
  317. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  318. package/dist/esm/radio/index.d.ts +1 -0
  319. package/dist/esm/radio/index.js +1 -0
  320. package/dist/esm/radio/index.js.map +1 -1
  321. package/dist/esm/radio/radio.d.ts +1 -1
  322. package/dist/esm/radio/radio.definition.js +2 -2
  323. package/dist/esm/radio/radio.definition.js.map +1 -1
  324. package/dist/esm/radio/radio.js +1 -1
  325. package/dist/esm/radio/radio.options.d.ts +6 -0
  326. package/dist/esm/radio/radio.options.js +7 -0
  327. package/dist/esm/radio/radio.options.js.map +1 -1
  328. package/dist/esm/radio/radio.styles.js +4 -3
  329. package/dist/esm/radio/radio.styles.js.map +1 -1
  330. package/dist/esm/radio/radio.template.js +1 -1
  331. package/dist/esm/radio/radio.template.js.map +1 -1
  332. package/dist/esm/radio-group/index.d.ts +1 -0
  333. package/dist/esm/radio-group/index.js +1 -0
  334. package/dist/esm/radio-group/index.js.map +1 -1
  335. package/dist/esm/radio-group/radio-group.base.d.ts +3 -16
  336. package/dist/esm/radio-group/radio-group.base.js +30 -88
  337. package/dist/esm/radio-group/radio-group.base.js.map +1 -1
  338. package/dist/esm/radio-group/radio-group.d.ts +5 -0
  339. package/dist/esm/radio-group/radio-group.definition.js +2 -2
  340. package/dist/esm/radio-group/radio-group.definition.js.map +1 -1
  341. package/dist/esm/radio-group/radio-group.js +22 -0
  342. package/dist/esm/radio-group/radio-group.js.map +1 -1
  343. package/dist/esm/radio-group/radio-group.options.d.ts +7 -1
  344. package/dist/esm/radio-group/radio-group.options.js +7 -0
  345. package/dist/esm/radio-group/radio-group.options.js.map +1 -1
  346. package/dist/esm/radio-group/radio-group.styles.js +1 -1
  347. package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
  348. package/dist/esm/radio-group/radio-group.template.js +1 -1
  349. package/dist/esm/radio-group/radio-group.template.js.map +1 -1
  350. package/dist/esm/rating-display/index.d.ts +1 -0
  351. package/dist/esm/rating-display/index.js +1 -0
  352. package/dist/esm/rating-display/index.js.map +1 -1
  353. package/dist/esm/rating-display/rating-display.definition.js +2 -2
  354. package/dist/esm/rating-display/rating-display.definition.js.map +1 -1
  355. package/dist/esm/rating-display/rating-display.options.d.ts +7 -1
  356. package/dist/esm/rating-display/rating-display.options.js +7 -0
  357. package/dist/esm/rating-display/rating-display.options.js.map +1 -1
  358. package/dist/esm/rating-display/rating-display.styles.js +5 -3
  359. package/dist/esm/rating-display/rating-display.styles.js.map +1 -1
  360. package/dist/esm/slider/index.d.ts +1 -0
  361. package/dist/esm/slider/index.js +1 -0
  362. package/dist/esm/slider/index.js.map +1 -1
  363. package/dist/esm/slider/slider.definition.js +2 -2
  364. package/dist/esm/slider/slider.definition.js.map +1 -1
  365. package/dist/esm/slider/slider.options.d.ts +8 -1
  366. package/dist/esm/slider/slider.options.js +7 -0
  367. package/dist/esm/slider/slider.options.js.map +1 -1
  368. package/dist/esm/slider/slider.styles.js +5 -3
  369. package/dist/esm/slider/slider.styles.js.map +1 -1
  370. package/dist/esm/spinner/index.d.ts +1 -0
  371. package/dist/esm/spinner/index.js +1 -0
  372. package/dist/esm/spinner/index.js.map +1 -1
  373. package/dist/esm/spinner/spinner.definition.js +2 -2
  374. package/dist/esm/spinner/spinner.definition.js.map +1 -1
  375. package/dist/esm/spinner/spinner.options.d.ts +7 -1
  376. package/dist/esm/spinner/spinner.options.js +7 -0
  377. package/dist/esm/spinner/spinner.options.js.map +1 -1
  378. package/dist/esm/spinner/spinner.styles.js +5 -3
  379. package/dist/esm/spinner/spinner.styles.js.map +1 -1
  380. package/dist/esm/styles/index.d.ts +2 -1
  381. package/dist/esm/styles/index.js +2 -1
  382. package/dist/esm/styles/index.js.map +1 -1
  383. package/dist/esm/styles/partials/badge.partials.js +1 -1
  384. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  385. package/dist/esm/switch/index.d.ts +1 -0
  386. package/dist/esm/switch/index.js +1 -0
  387. package/dist/esm/switch/index.js.map +1 -1
  388. package/dist/esm/switch/switch.d.ts +1 -1
  389. package/dist/esm/switch/switch.definition.js +2 -2
  390. package/dist/esm/switch/switch.definition.js.map +1 -1
  391. package/dist/esm/switch/switch.options.d.ts +7 -1
  392. package/dist/esm/switch/switch.options.js +7 -0
  393. package/dist/esm/switch/switch.options.js.map +1 -1
  394. package/dist/esm/switch/switch.styles.js +4 -3
  395. package/dist/esm/switch/switch.styles.js.map +1 -1
  396. package/dist/esm/switch/switch.template.js +1 -1
  397. package/dist/esm/switch/switch.template.js.map +1 -1
  398. package/dist/esm/tab/index.d.ts +1 -0
  399. package/dist/esm/tab/index.js +1 -0
  400. package/dist/esm/tab/index.js.map +1 -1
  401. package/dist/esm/tab/tab.d.ts +2 -0
  402. package/dist/esm/tab/tab.definition.js +2 -2
  403. package/dist/esm/tab/tab.definition.js.map +1 -1
  404. package/dist/esm/tab/tab.js +13 -3
  405. package/dist/esm/tab/tab.js.map +1 -1
  406. package/dist/esm/tab/tab.options.d.ts +6 -0
  407. package/dist/esm/tab/tab.options.js +7 -0
  408. package/dist/esm/tab/tab.options.js.map +1 -1
  409. package/dist/esm/tab/tab.styles.js +23 -3
  410. package/dist/esm/tab/tab.styles.js.map +1 -1
  411. package/dist/esm/tab/tab.template.js +2 -2
  412. package/dist/esm/tab/tab.template.js.map +1 -1
  413. package/dist/esm/tablist/index.d.ts +1 -0
  414. package/dist/esm/tablist/index.js +1 -0
  415. package/dist/esm/tablist/index.js.map +1 -1
  416. package/dist/esm/tablist/tablist.base.d.ts +13 -45
  417. package/dist/esm/tablist/tablist.base.js +76 -185
  418. package/dist/esm/tablist/tablist.base.js.map +1 -1
  419. package/dist/esm/tablist/tablist.d.ts +5 -73
  420. package/dist/esm/tablist/tablist.definition.js +2 -2
  421. package/dist/esm/tablist/tablist.definition.js.map +1 -1
  422. package/dist/esm/tablist/tablist.js +20 -130
  423. package/dist/esm/tablist/tablist.js.map +1 -1
  424. package/dist/esm/tablist/tablist.options.d.ts +7 -1
  425. package/dist/esm/tablist/tablist.options.js +7 -0
  426. package/dist/esm/tablist/tablist.options.js.map +1 -1
  427. package/dist/esm/tablist/tablist.styles.js +83 -65
  428. package/dist/esm/tablist/tablist.styles.js.map +1 -1
  429. package/dist/esm/tablist/tablist.template.js +5 -1
  430. package/dist/esm/tablist/tablist.template.js.map +1 -1
  431. package/dist/esm/text/index.d.ts +1 -0
  432. package/dist/esm/text/index.js +1 -0
  433. package/dist/esm/text/index.js.map +1 -1
  434. package/dist/esm/text/text.definition.js +2 -2
  435. package/dist/esm/text/text.definition.js.map +1 -1
  436. package/dist/esm/text/text.options.d.ts +7 -1
  437. package/dist/esm/text/text.options.js +7 -0
  438. package/dist/esm/text/text.options.js.map +1 -1
  439. package/dist/esm/text/text.styles.js +1 -1
  440. package/dist/esm/text/text.styles.js.map +1 -1
  441. package/dist/esm/text-input/index.d.ts +1 -0
  442. package/dist/esm/text-input/index.js +1 -0
  443. package/dist/esm/text-input/index.js.map +1 -1
  444. package/dist/esm/text-input/text-input.definition.js +2 -2
  445. package/dist/esm/text-input/text-input.definition.js.map +1 -1
  446. package/dist/esm/text-input/text-input.options.d.ts +6 -0
  447. package/dist/esm/text-input/text-input.options.js +7 -0
  448. package/dist/esm/text-input/text-input.options.js.map +1 -1
  449. package/dist/esm/textarea/index.d.ts +1 -0
  450. package/dist/esm/textarea/index.js +1 -0
  451. package/dist/esm/textarea/index.js.map +1 -1
  452. package/dist/esm/textarea/textarea.base.js +1 -1
  453. package/dist/esm/textarea/textarea.base.js.map +1 -1
  454. package/dist/esm/textarea/textarea.definition.js +2 -2
  455. package/dist/esm/textarea/textarea.definition.js.map +1 -1
  456. package/dist/esm/textarea/textarea.options.d.ts +6 -0
  457. package/dist/esm/textarea/textarea.options.js +7 -0
  458. package/dist/esm/textarea/textarea.options.js.map +1 -1
  459. package/dist/esm/textarea/textarea.styles.js +4 -3
  460. package/dist/esm/textarea/textarea.styles.js.map +1 -1
  461. package/dist/esm/toggle-button/index.d.ts +1 -0
  462. package/dist/esm/toggle-button/index.js +1 -0
  463. package/dist/esm/toggle-button/index.js.map +1 -1
  464. package/dist/esm/toggle-button/toggle-button.definition.js +2 -2
  465. package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
  466. package/dist/esm/toggle-button/toggle-button.options.d.ts +8 -2
  467. package/dist/esm/toggle-button/toggle-button.options.js +7 -0
  468. package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
  469. package/dist/esm/toggle-button/toggle-button.styles.js +4 -3
  470. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
  471. package/dist/esm/tooltip/index.d.ts +1 -0
  472. package/dist/esm/tooltip/index.js +1 -0
  473. package/dist/esm/tooltip/index.js.map +1 -1
  474. package/dist/esm/tooltip/tooltip.d.ts +2 -2
  475. package/dist/esm/tooltip/tooltip.definition.js +2 -2
  476. package/dist/esm/tooltip/tooltip.definition.js.map +1 -1
  477. package/dist/esm/tooltip/tooltip.js +2 -2
  478. package/dist/esm/tooltip/tooltip.options.d.ts +6 -0
  479. package/dist/esm/tooltip/tooltip.options.js +7 -0
  480. package/dist/esm/tooltip/tooltip.options.js.map +1 -1
  481. package/dist/esm/tree/index.d.ts +1 -0
  482. package/dist/esm/tree/index.js +1 -0
  483. package/dist/esm/tree/index.js.map +1 -1
  484. package/dist/esm/tree/tree.base.d.ts +5 -28
  485. package/dist/esm/tree/tree.base.js +20 -105
  486. package/dist/esm/tree/tree.base.js.map +1 -1
  487. package/dist/esm/tree/tree.d.ts +5 -0
  488. package/dist/esm/tree/tree.definition.js +2 -2
  489. package/dist/esm/tree/tree.definition.js.map +1 -1
  490. package/dist/esm/tree/tree.js +23 -0
  491. package/dist/esm/tree/tree.js.map +1 -1
  492. package/dist/esm/tree/tree.options.d.ts +6 -0
  493. package/dist/esm/tree/tree.options.js +8 -0
  494. package/dist/esm/tree/tree.options.js.map +1 -0
  495. package/dist/esm/tree/tree.template.js +2 -3
  496. package/dist/esm/tree/tree.template.js.map +1 -1
  497. package/dist/esm/tree-item/index.d.ts +1 -0
  498. package/dist/esm/tree-item/index.js +1 -0
  499. package/dist/esm/tree-item/index.js.map +1 -1
  500. package/dist/esm/tree-item/tree-item.base.d.ts +6 -3
  501. package/dist/esm/tree-item/tree-item.base.js +31 -11
  502. package/dist/esm/tree-item/tree-item.base.js.map +1 -1
  503. package/dist/esm/tree-item/tree-item.definition.js +2 -2
  504. package/dist/esm/tree-item/tree-item.definition.js.map +1 -1
  505. package/dist/esm/tree-item/tree-item.options.d.ts +6 -0
  506. package/dist/esm/tree-item/tree-item.options.js +7 -0
  507. package/dist/esm/tree-item/tree-item.options.js.map +1 -1
  508. package/dist/esm/tree-item/tree-item.template.js +1 -1
  509. package/dist/esm/tree-item/tree-item.template.js.map +1 -1
  510. package/dist/esm/utils/focusgroup.d.ts +22 -0
  511. package/dist/esm/utils/focusgroup.js +42 -0
  512. package/dist/esm/utils/focusgroup.js.map +1 -0
  513. package/dist/esm/utils/index.d.ts +0 -1
  514. package/dist/esm/utils/index.js +0 -1
  515. package/dist/esm/utils/index.js.map +1 -1
  516. package/dist/web-components.d.ts +70 -339
  517. package/dist/web-components.js +1277 -1317
  518. package/dist/web-components.min.js +242 -259
  519. package/package.json +4 -2
  520. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.d.ts +0 -124
  521. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js +0 -142
  522. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +0 -1
@@ -1,7 +1,7 @@
1
- const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Eo;const ss="fast-kernel";try{if(document.currentScript)Eo=document.currentScript.getAttribute(ss);else{const o=document.getElementsByTagName("script");Eo=o[o.length-1].getAttribute(ss)}}catch{Eo="isolate"}let ct;switch(Eo){case"share":ct=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ct=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)}`;ct=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const zt=o=>typeof o=="function",We=o=>typeof o=="string",Oa=()=>{};var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Kr<"u")Kr.globalThis=Kr;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const ns={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ns));const oe=globalThis.FAST;if(oe.getById===void 0){const o=Object.create(null);Reflect.defineProperty(oe,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},ns))}oe.error===void 0&&Object.assign(oe,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Aa=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 as(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function dt(o){o.prototype.toJSON=Oa}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ls=o=>o,Ea=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ls}):{createHTML:ls};let No=Object.freeze({createHTML(o){return Ea.createHTML(o)},protect(o,e,t,r){return r}});const Na=No,ht=Object.freeze({get policy(){return No},setPolicy(o){if(No!==Na)throw oe.error(1201);No=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)}}),N=oe.getById(ct.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class Qr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class cs{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new Qr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Qr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const Fo=Object.freeze({unknown:void 0,coupled:1}),m=oe.getById(ct.observable,()=>{const o=N.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw oe.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new cs(d))),f}const n=as();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,f){const k=this.field,ce=l[k];if(ce!==f){l[k]=f;const Qe=l[this.callback];zt(Qe)&&Qe.call(l,ce,f),s(l).notify(this.name)}}}class h extends Qr{constructor(l,f,k=!1){super(l,f),this.expression=l,this.isVolatileBinding=k,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Fo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const k=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ce;try{ce=this.expression(l,f)}finally{r=k}return ce}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const k=this.last,ce=s(l),Qe=k===null?this.first:{};if(Qe.propertySource=l,Qe.propertyName=f,Qe.notifier=ce,ce.subscribe(this,f),k!==null){if(!this.needsRefresh){let is;r=void 0,is=k.propertySource[k.propertyName],r=this,l===is&&(this.needsRefresh=!0)}k.next=Qe}this.last=Qe}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 dt(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){We(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function b(o,e){m.defineProperty(o,e)}function ds(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const hs=oe.getById(ct.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return hs.get()},setEvent(o){hs.set(o)}});class Mo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Fa extends Mo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Zr(o,e,t=m.isVolatileBinding(o)){return new Fa(o,e,t)}class us extends Mo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}dt(us);function ps(o,e){return new us(o,e)}let bs;function gs(o){return o.map(e=>e instanceof ve?gs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ve{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ve?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(bs),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(gs(this.styles)),this}static setDefaultStrategy(e){bs=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ve(e):e instanceof ve?e:new ve([e])}}ve.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Jr=Yr(),ei=Object.freeze({getForInstance:Jr.getForInstance,getByType:Jr.getByType,define(o){return Jr.register({type:o}),o}});function ti(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class oi{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)=>ti(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){ti(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){ti(this,t.controller,t)}}ei.define(oi);const Ma=`${Math.random().toString(36).substring(2,8)}`;let Da=0;const fs=()=>`--v${Ma}${++Da}`;function ms(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];zt(h)?h=new oi(Zr(h),fs()).createCSS(s):h instanceof Mo?h=new oi(h,fs()).createCSS(s):ei.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ve||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const u=(o,...e)=>{const{styles:t,behaviors:r}=ms(o,e),i=new ve(t);return r.length?i.withBehaviors(...r):i};class vs{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(We(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new ve(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)}}ei.define(vs),u.partial=(o,...e)=>{const{styles:t,behaviors:r}=ms(o,e);return new vs(t,r)};const $s=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,xs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,ks=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ws=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Cs=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Ss(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ae=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return $s.test(o)},isContentBindingEndMarker(o){return ys.test(o)},isRepeatViewStartMarker(o){return xs.test(o)},isRepeatViewEndMarker(o){return ks.test(o)},isElementBoundaryStartMarker(o){return Ss(o)&&ws.test(o.data.trim())},isElementBoundaryEndMarker(o){return Ss(o)&&Cs.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return zs($s,o)},parseContentBindingEndMarker(o){return zs(ys,o)},parseRepeatStartMarker(o){return Is(xs,o)},parseRepeatEndMarker(o){return Is(ks,o)},parseElementBoundaryStartMarker(o){return Ps(ws,o.trim())},parseElementBoundaryEndMarker(o){return Ps(Cs,o)}});function Is(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Ps(o,e){const t=o.exec(e);return t===null?t:t[1]}function zs(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Do=Symbol.for("fe-hydration");function Lo(o){return o[Do]===Do}const ri=`fast-${Math.random().toString(36).substring(2,8)}`,Vo=`${ri}{`,io=`}${ri}`,La=io.length;let Va=0;const so=()=>`${ri}-${++Va}`,_s=Object.freeze({interpolation:o=>`${Vo}${o}${io}`,attribute:o=>`${so()}="${Vo}${o}${io}"`,comment:o=>`<!--${Vo}${o}${io}-->`}),Ho=Object.freeze({parse(o,e){const t=o.split(Vo);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(io);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+La)}h!==""&&r.push(h)}return r}}),ii=Yr(),Ee=Object.freeze({getForInstance:ii.getForInstance,getByType:ii.getByType,define(o,e){return e=e||{},e.type=o,ii.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class si{constructor(e){this.options=e}createHTML(e){return _s.attribute(e(this))}createBehavior(){return this}}dt(si);class Bs extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function ni(o){return o.nodeType===Node.COMMENT_NODE}function Ts(o){return o.nodeType===Node.TEXT_NODE}function Os(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ni(e)||Ts(e)?e.data.length:e.childNodes.length),t}function Ha(o){return o instanceof DocumentFragment&&"mode"in o}function ja(o,e,t){const r=Os(o,e),i=r.commonAncestorContainer,s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Ra(h,t,n);break}case Node.COMMENT_NODE:{qa(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Ra(o,e,t){const r=Ae.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new Bs(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);jo(e[i],o,t)}o.removeAttribute(Ae.attributeMarkerName)}}function qa(o,e,t,r,i){if(Ae.isElementBoundaryStartMarker(o)){Wa(o,e);return}if(Ae.isContentBindingStartMarker(o.data)){const s=Ae.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ni(l)){const k=Ae.parseContentBindingEndMarker(l.data);if(k&&k[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const k=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ha(k)?k.host.nodeName:k.nodeName}".`)}if(l.data="",d.length===1&&Ts(d[0]))jo(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const k=l.parentNode.insertBefore(document.createTextNode(""),l);jo(h,k,r)}}}function Wa(o,e){const t=Ae.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(ni(r)){const i=Ae.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function jo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var As;function ai(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Es{constructor(){this.index=0,this.length=0}get event(){return _t.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Ro extends Es{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Fo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){ai(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){ai(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}dt(Ro),m.defineProperty(Ro.prototype,"index"),m.defineProperty(Ro.prototype,"length");const Bt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ga extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Ua extends Es{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[As]=Do,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Fo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Bt.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){var r,i;if(this.hydrationStage!==Bt.hydrated&&(this._hydrationStage=Bt.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=ja(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Bs){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&jo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ga(`HydrationView was unable to successfully target bindings inside "${(i=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,d,Os(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=Bt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ai(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}As=Do,dt(Ua);function Xa(o){return o.create!==void 0}function Ka(o,e,t,r){if(t==null&&(t=""),Xa(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Lo(r)&&Lo(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==Bt.hydrated){const s=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(s.first,s.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Ya(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const k=d[l];k!==""&&(n[k]=c,h.add(k))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Qa={[Q.attribute]:ht.setAttribute,[Q.booleanAttribute]:ht.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:Ka,[Q.tokenList]:Ya,[Q.event]:()=>{}};class Tt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return _s.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Qa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw oe.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],i=Lo(e)&&e.hydrationStage&&e.hydrationStage!==Bt.hydrated;switch(this.aspectType){case Q.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:const s=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(s.target=r,s.controller=e,i&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){s.bind(e);break}this.updateTarget(r,this.targetAspect,s.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){_t.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Ee.define(Tt,{aspected:!0});const Ns=(o,e)=>`${o}.${e}`,Fs={},Ne={index:0,node:null};function Ms(o){o.startsWith("fast-")||oe.warn(1204,{name:o})}const Za=new Proxy(document.createElement("div"),{get(o,e){Ms(e);const t=Reflect.get(o,e);return zt(t)?t.bind(o):t},set(o,e,t){return Ms(e),Reflect.set(o,e,t)}});class Ja{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:so(),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=Fs[t];if(!s){const n=`_${t}`;Fs[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??Za;for(const i of this.nodeIds)r[i];return new Ro(t,this.factories,r)}}function Ds(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,k=Ho.parse(f,c);let ce=null;k===null?s&&(ce=new Tt(ps(()=>f,o.policy)),Ee.assignAspect(ce,l.name)):ce=li.aggregate(k,o.policy),ce!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(ce,e,r,i,t.tagName))}}function el(o,e,t,r,i){const s=Ho.parse(e.textContent,o.directives);if(s===null)return Ne.node=e.nextSibling,Ne.index=i+1,Ne;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Ns(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),We(l)?n.textContent=l:(n.textContent=" ",Ee.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Ne.index=i+1,Ne.node=c.nextSibling,Ne}function Ls(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=tl(o,t,i,r);i=s.node,r=s.index}}function tl(o,e,t,r){const i=Ns(e,r);switch(t.nodeType){case 1:Ds(o,e,t,i,r),Ls(o,t,i);break;case 3:return el(o,t,e,i,r);case 8:const s=Ho.parse(t.data,o.directives);s!==null&&o.addFactory(li.aggregate(s),e,i,r,null);break}return Ne.index=r+1,Ne.node=t.nextSibling,Ne}function ol(o,e){return o&&o.nodeType==8&&Ho.parse(o.data,e)!==null}const Vs="TEMPLATE",li={compile(o,e,t=ht.policy){let r;if(We(o)){r=document.createElement(Vs),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Vs&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ja(i,e,t);return Ds(s,"",r,"h",0,!0),(ol(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ls(s,i,"r"),Ne.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ht.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>We(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let k=0;k<s;++k)f+=n[k](d,l);return f},h=new Tt(Zr(c,i??e,r));return Ee.assignAspect(h,t),h}},rl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,il=Object.create(null);class ut{constructor(e,t=il){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(""),Ee.define(ut);function sl(o,e,t,r=Ee.getForInstance(o)){if(r.aspected){const i=rl.exec(e);i!==null&&Ee.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}compile(){return this.result===null&&(this.result=li.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new ut(We(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw oe.error(1208);if(this.policy)throw oe.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=so();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(i+=d,zt(l))l=new Tt(Zr(l));else if(l instanceof Mo)l=new Tt(l);else if(!(f=Ee.getForInstance(l))){const k=l;l=new Tt(ps(()=>k))}i+=sl(l,d,n,f)}return new Gr(i+e[e.length-1],s,r)}}dt(Gr);const g=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Gr.create(o,e);throw oe.error(1206)};g.partial=o=>new ut(o);class Hs extends si{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ee.define(Hs);const z=o=>new Hs(o),nl=o=>o.nodeType===1,no=o=>o?e=>e.nodeType===1&&e.matches(o):nl;class al extends si{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,Aa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const js="slotchange";class Rs extends al{observe(e){e.addEventListener(js,this)}disconnect(e){e.removeEventListener(js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ee.define(Rs);function U(o){return We(o)&&(o={property:o}),new Rs(o)}const qs="boolean",Ws="reflect",qo=Object.freeze({locate:as()}),ll={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=Gs(o);return e&&e.toString()},fromView:Gs};class Ur{constructor(e,t,r=t.toLowerCase(),i=Ws,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===qs&&s===void 0&&(this.converter=ll)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||N.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ws:const s=this.converter;ht.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case qs:ht.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(qo.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];We(d)?r.push(new Ur(e,d)):r.push(new Ur(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),qo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Us={mode:"open"},Xs={},Ks=new Set,Wo=oe.getById(ct.elementRegistry,()=>Yr());class Oe{constructor(e,t=e.definition){var r;this.platformDefined=!1,We(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=Ur.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Xs:Object.assign(Object.assign({},Xs),t.elementOptions),this.styles=ve.normalize(t.styles),Wo.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 Ks.has(e)||Wo.getByType(e)?new Oe(class extends e{},t):new Oe(e,t)}static registerBaseType(e){Ks.add(e)}}Oe.getByType=Wo.getByType,Oe.getForInstance=Wo.getForInstance;class cl extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(i=>this.observedNodes.has(i.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,i=!1;return{source:o,context:_t.default,targets:t,get isBound(){return i},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:so(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:so(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ht.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),i&&s.bind(this)},onUnbind(s){r===null&&(r=[]),r.push(s)},connectedCallback(s){i||(i=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){i&&(i=!1,r!==null&&r.forEach(n=>n.unbind(this)))}}}});const dl={bubbles:!0,composed:!0,cancelable:!0},Go="isConnected",Ys=new WeakMap;function ao(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Ys.get(o))!==null&&t!==void 0?t:null}let Qs;class Ot extends cs{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&Ys.set(e,s))}const i=m.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Go),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:_t.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Go))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,s=r.length;i<s;++i){const n=r[i];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Go),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},dl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=ao(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Fo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Oe.getForInstance(e);if(r===void 0)throw oe.error(1401);return e.$fastController=new Qs(e,r)}static setStrategy(e){Qs=e}}dt(Ot),Ot.setStrategy(Ot);function Uo(o){var e;return"adoptedStyleSheets"in o?o:(e=ao(o))!==null&&e!==void 0?e:o.getRootNode()}class Xr{constructor(e){const t=Xr.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){Js(Uo(e),this.sheets)}removeStylesFrom(e){en(Uo(e),this.sheets)}}Xr.styleSheetCache=new Map;let hl=0;const ul=()=>`fast-${++hl}`;function Zs(o){return o===document?document.body:o}class pl{constructor(e){this.styles=e,this.styleClass=ul()}addStylesTo(e){e=Zs(Uo(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=Zs(Uo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Js=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},en=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Js=(o,e)=>{o.adoptedStyleSheets.push(...e)},en=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ve.setDefaultStrategy(Xr)}else ve.setDefaultStrategy(pl);const tn="defer-hydration",on="needs-hydration";class Pt extends Ot{static hydrationObserverHandler(e){for(const t of e)Pt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(on)!==null),this.source.hasAttribute(tn)){Pt.hydrationObserver.observe(this.source,{attributeFilter:[tn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,i=(e=ao(r))!==null&&e!==void 0?e:r;if(this.template)if(Lo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Ae.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Ae.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,r),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(on),this.needsInitialization=this.needsHydration=!1,m.notify(this,Go)}disconnect(){super.disconnect(),Pt.hydrationObserver.unobserve(this.source)}static install(){Ot.setStrategy(Pt)}}Pt.hydrationObserver=new cl(Pt.hydrationObserverHandler);function rn(o){const e=class extends o{constructor(){super(),Ot.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 Oe.registerBaseType(e),e}function bl(o,e){return zt(o)?Oe.compose(o,e):Oe.compose(this,o)}function gl(o,e){return zt(o)?Oe.compose(o,e).define().type:Oe.compose(this,o).define().type}function fl(o){return rn(o)}const x=Object.assign(rn(HTMLElement),{from:fl,define:gl,compose:bl});var ml=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,j=(o,e,t,r)=>{for(var i=r>1?void 0:r?vl(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&&ml(e,t,i),i};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const ci={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},$e={horizontal:"horizontal",vertical:"vertical"};function $l(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function di(...o){return o.every(e=>e instanceof HTMLElement)}const Xo="ArrowDown",Ko="ArrowLeft",Yo="ArrowRight",Qo="ArrowUp",Zo="End",lo="Enter",yl="Escape",Jo="Home",er=" ",xl="Tab";var Fe;(function(o){o.ltr="ltr",o.rtl="rtl"})(Fe||(Fe={}));function kl(o,e,t){return t<o?e:t>e?o:t}function sn(o,e,t){return Math.min(Math.max(t,o),e)}let wl=0;function tr(o=""){return`${o}${wl++}`}const or=o=>o.closest("[dir]")?.dir==="rtl"?Fe.rtl:Fe.ltr;function nn(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function de(o){return o?typeof o=="string"?new ut(o):"inline"in o?o.inline():o:ut.empty}const Cl=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Sl=":host([hidden]){display:none}";function w(o){return`${Sl}:host{display:${o}}`}class Il{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 Ao extends Il{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Ao(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 X=Ao.with(window.matchMedia("(forced-colors)"));Ao.with(window.matchMedia("(prefers-color-scheme: dark)")),Ao.with(window.matchMedia("(prefers-color-scheme: light)"));const rr=CSS.supports("anchor-name: --a"),Pl="anchor"in HTMLElement.prototype,an=CSS.supports("selector(:state(g))");class Ze{}function pt(o){return g`<slot name="end" ${z("end")}>${de(o.end)}</slot>`.inline()}function Ge(o){return g`<slot name="start" ${z("start")}>${de(o.start)}</slot>`.inline()}function Je(o,...e){const t=qo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),qo.locate(r).forEach(s=>t.push(s))})}var zl=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var i=r>1?void 0:r?_l(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&&zl(e,t,i),i};class co extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}ir([a({attribute:"heading-level",mode:"fromView",converter:re})],co.prototype,"headinglevel",2),ir([a({mode:"boolean"})],co.prototype,"expanded",2),ir([a({mode:"boolean"})],co.prototype,"disabled",2),ir([b],co.prototype,"expandbutton",2);var Bl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,hi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tl(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&&Bl(e,t,i),i};class ho extends co{constructor(){super(...arguments),this.block=!1}}hi([a],ho.prototype,"size",2),hi([a({attribute:"marker-position"})],ho.prototype,"markerPosition",2),hi([a({mode:"boolean"})],ho.prototype,"block",2),Je(ho,Ze);const _="var(--colorNeutralForeground1)",ln="var(--colorNeutralForeground1Hover)",Ol="var(--colorNeutralForeground1Pressed)",Pe="var(--colorNeutralForeground2)",At="var(--colorNeutralForeground2Hover)",Et="var(--colorNeutralForeground2Pressed)",sr="var(--colorNeutralForeground2Selected)",nr="var(--colorNeutralForeground2BrandHover)",ar="var(--colorNeutralForeground2BrandPressed)",Al="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",El="var(--colorNeutralForeground3Hover)",Nl="var(--colorNeutralForeground3Pressed)",Fl="var(--colorNeutralForeground3Selected)",ui="var(--colorNeutralForeground4)",T="var(--colorNeutralForegroundDisabled)",Ml="var(--colorBrandForegroundLink)",Dl="var(--colorBrandForegroundLinkHover)",Ll="var(--colorBrandForegroundLinkPressed)",Vl="var(--colorNeutralForeground2Link)",Hl="var(--colorNeutralForeground2LinkHover)",jl="var(--colorNeutralForeground2LinkPressed)",Rl="var(--colorCompoundBrandForeground1Hover)",ql="var(--colorCompoundBrandForeground1Pressed)",Ue="var(--colorNeutralForegroundOnBrand)",bt="var(--colorNeutralForegroundInverted)",Wl="var(--colorNeutralForegroundInvertedHover)",Gl="var(--colorNeutralForegroundInvertedPressed)",cn="var(--colorNeutralForegroundStaticInverted)",lr="var(--colorBrandForeground1)",Ul="var(--colorBrandForeground2)",Xl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",cr="var(--colorNeutralBackground1Hover)",pi="var(--colorNeutralBackground1Pressed)",dn="var(--colorNeutralBackground1Selected)",uo="var(--colorNeutralBackground3)",Kl="var(--colorNeutralBackground4)",Yl="var(--colorNeutralBackground5)",po="var(--colorNeutralBackground6)",hn="var(--colorNeutralBackgroundInverted)",un="var(--colorSubtleBackground)",dr="var(--colorSubtleBackgroundHover)",bo="var(--colorSubtleBackgroundPressed)",pn="var(--colorSubtleBackgroundSelected)",Ql="var(--colorSubtleBackgroundLightAlphaHover)",Zl="var(--colorSubtleBackgroundLightAlphaPressed)",Jl="var(--colorSubtleBackgroundLightAlphaSelected)",he="var(--colorTransparentBackground)",hr="var(--colorTransparentBackgroundHover)",ur="var(--colorTransparentBackgroundPressed)",bn="var(--colorTransparentBackgroundSelected)",et="var(--colorNeutralBackgroundDisabled)",bi="var(--colorBackgroundOverlay)",gn="var(--colorBrandBackground)",fn="var(--colorBrandBackgroundHover)",mn="var(--colorBrandBackgroundPressed)",ec="var(--colorBrandBackgroundSelected)",gt="var(--colorCompoundBrandBackground)",Nt="var(--colorCompoundBrandBackgroundHover)",Ft="var(--colorCompoundBrandBackgroundPressed)",vn="var(--colorBrandBackgroundStatic)",$n="var(--colorBrandBackground2)",Me="var(--colorNeutralStrokeAccessible)",ft="var(--colorNeutralStrokeAccessibleHover)",mt="var(--colorNeutralStrokeAccessiblePressed)",De="var(--colorNeutralStroke1)",Mt="var(--colorNeutralStroke1Hover)",go="var(--colorNeutralStroke1Pressed)",fo="var(--colorNeutralStroke2)",tc="var(--colorNeutralStroke3)",oc="var(--colorNeutralStrokeOnBrand2)",yn="var(--colorBrandStroke1)",xn="var(--colorBrandStroke2)",vt="var(--colorCompoundBrandStroke)",rc="var(--colorCompoundBrandStrokeHover)",kn="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",gi="var(--colorTransparentStrokeInteractive)",pr="var(--colorStrokeFocus1)",ue="var(--colorStrokeFocus2)",ic="var(--colorNeutralShadowAmbient)",sc="var(--colorNeutralShadowKey)",wn="var(--colorPaletteRedBackground1)",nc="var(--colorPaletteRedBackground2)",Cn="var(--colorPaletteRedBackground3)",Sn="var(--colorPaletteRedBorder1)",fi="var(--colorPaletteRedBorder2)",mi="var(--colorPaletteRedForeground1)",ac="var(--colorPaletteRedForeground2)",In="var(--colorPaletteRedForeground3)",Pn="var(--colorPaletteGreenBackground1)",zn="var(--colorPaletteGreenBackground3)",lc="var(--colorPaletteGreenBorder1)",cc="var(--colorPaletteGreenBorder2)",dc="var(--colorPaletteGreenForeground1)",hc="var(--colorPaletteGreenForeground2)",uc="var(--colorPaletteGreenForeground3)",_n="var(--colorPaletteDarkOrangeBackground1)",Bn="var(--colorPaletteDarkOrangeBackground3)",Tn="var(--colorPaletteDarkOrangeBorder1)",pc="var(--colorPaletteDarkOrangeForeground1)",On="var(--colorPaletteDarkOrangeForeground3)",bc="var(--colorPaletteYellowBackground1)",gc="var(--colorPaletteYellowBackground3)",fc="var(--colorPaletteYellowBorder1)",vi="var(--colorPaletteYellowForeground2)",An="var(--colorPaletteMarigoldBackground2)",mc="var(--colorPaletteMarigoldBorderActive)",vc="var(--colorPaletteMarigoldForeground2)",$c="var(--colorPaletteAnchorBackground2)",yc="var(--colorPaletteAnchorForeground2)",xc="var(--colorPaletteBeigeBackground2)",kc="var(--colorPaletteBeigeForeground2)",wc="var(--colorPaletteBlueBackground2)",Cc="var(--colorPaletteBlueForeground2)",Sc="var(--colorPaletteBrassBackground2)",Ic="var(--colorPaletteBrassForeground2)",Pc="var(--colorPaletteBrownBackground2)",zc="var(--colorPaletteBrownForeground2)",_c="var(--colorPaletteCornflowerBackground2)",Bc="var(--colorPaletteCornflowerForeground2)",Tc="var(--colorPaletteCranberryBackground2)",Oc="var(--colorPaletteCranberryForeground2)",Ac="var(--colorPaletteDarkGreenBackground2)",Ec="var(--colorPaletteDarkGreenForeground2)",Nc="var(--colorPaletteDarkRedBackground2)",Fc="var(--colorPaletteDarkRedForeground2)",Mc="var(--colorPaletteForestBackground2)",Dc="var(--colorPaletteForestForeground2)",Lc="var(--colorPaletteGoldBackground2)",Vc="var(--colorPaletteGoldForeground2)",Hc="var(--colorPaletteGrapeBackground2)",jc="var(--colorPaletteGrapeForeground2)",Rc="var(--colorPaletteLavenderBackground2)",qc="var(--colorPaletteLavenderForeground2)",Wc="var(--colorPaletteLightTealBackground2)",Gc="var(--colorPaletteLightTealForeground2)",Uc="var(--colorPaletteLilacBackground2)",Xc="var(--colorPaletteLilacForeground2)",Kc="var(--colorPaletteMagentaBackground2)",Yc="var(--colorPaletteMagentaForeground2)",Qc="var(--colorPaletteMinkBackground2)",Zc="var(--colorPaletteMinkForeground2)",Jc="var(--colorPaletteNavyBackground2)",ed="var(--colorPaletteNavyForeground2)",td="var(--colorPalettePeachBackground2)",od="var(--colorPalettePeachForeground2)",rd="var(--colorPalettePinkBackground2)",id="var(--colorPalettePinkForeground2)",sd="var(--colorPalettePlatinumBackground2)",nd="var(--colorPalettePlatinumForeground2)",ad="var(--colorPalettePlumBackground2)",ld="var(--colorPalettePlumForeground2)",cd="var(--colorPalettePumpkinBackground2)",dd="var(--colorPalettePumpkinForeground2)",hd="var(--colorPalettePurpleBackground2)",ud="var(--colorPalettePurpleForeground2)",pd="var(--colorPaletteRoyalBlueBackground2)",bd="var(--colorPaletteRoyalBlueForeground2)",gd="var(--colorPaletteSeafoamBackground2)",fd="var(--colorPaletteSeafoamForeground2)",md="var(--colorPaletteSteelBackground2)",vd="var(--colorPaletteSteelForeground2)",$d="var(--colorPaletteTealBackground2)",yd="var(--colorPaletteTealForeground2)",br="var(--borderRadiusNone)",ze="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",En="var(--borderRadiusLarge)",Nn="var(--borderRadiusXLarge)",xe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",xd="var(--fontFamilyMonospace)",kd="var(--fontFamilyNumeric)",mo="var(--fontSizeBase100)",F="var(--fontSizeBase200)",O="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",Dt="var(--fontSizeBase500)",gr="var(--fontSizeBase600)",Fn="var(--fontSizeHero700)",Mn="var(--fontSizeHero800)",Dn="var(--fontSizeHero900)",Ln="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",wd="var(--fontWeightMedium)",L="var(--fontWeightSemibold)",fr="var(--fontWeightBold)",mr="var(--lineHeightBase100)",q="var(--lineHeightBase200)",M="var(--lineHeightBase300)",ke="var(--lineHeightBase400)",vr="var(--lineHeightBase500)",Vn="var(--lineHeightBase600)",Hn="var(--lineHeightHero700)",jn="var(--lineHeightHero800)",Rn="var(--lineHeightHero900)",qn="var(--lineHeightHero1000)",$i="var(--shadow2)",$r="var(--shadow4)",Cd="var(--shadow8)",yi="var(--shadow16)",Sd="var(--shadow28)",Wn="var(--shadow64)",I="var(--strokeWidthThin)",be="var(--strokeWidthThick)",Le="var(--strokeWidthThicker)",xi="var(--strokeWidthThickest)",V="var(--spacingHorizontalXXS)",ie="var(--spacingHorizontalXS)",ge="var(--spacingHorizontalSNudge)",_e="var(--spacingHorizontalS)",Ve="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",Id="var(--spacingHorizontalL)",Pd="var(--spacingHorizontalXL)",ki="var(--spacingHorizontalXXL)",wi="var(--spacingVerticalNone)",yr="var(--spacingVerticalXXS)",Lt="var(--spacingVerticalXS)",vo="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",xr="var(--spacingVerticalMNudge)",zd="var(--spacingVerticalM)",Ci="var(--spacingVerticalL)",$t="var(--spacingVerticalXXL)",_d="var(--spacingVerticalXXXL)",Si="var(--durationUltraFast)",kr="var(--durationFaster)",wr="var(--durationNormal)",Ii="var(--durationGentle)",Bd="var(--durationSlow)",Gn="var(--durationSlower)",Cr="var(--durationUltraSlow)",Td="var(--curveAccelerateMax)",yt="var(--curveAccelerateMid)",Od="var(--curveAccelerateMin)",Un="var(--curveDecelerateMax)",xt="var(--curveDecelerateMid)",Ad="var(--curveDecelerateMin)",Xn="var(--curveEasyEaseMax)",Sr="var(--curveEasyEase)",Pi="var(--curveLinear)",Ed=u`
1
+ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function es(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function jr(o,e="-accordion-item"){return es(e)(o)}const Ea=`${u.prefix}-accordion-item`;let Eo;const ts="fast-kernel";try{if(document.currentScript)Eo=document.currentScript.getAttribute(ts);else{const o=document.getElementsByTagName("script");Eo=o[o.length-1].getAttribute(ts)}}catch{Eo="isolate"}let at;switch(Eo){case"share":at=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":at=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)}`;at=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const It=o=>typeof o=="function",Re=o=>typeof o=="string",Na=()=>{};var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof qr<"u")qr.globalThis=qr;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 os={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},os));const ee=globalThis.FAST;if(ee.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ee,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},os))}ee.error===void 0&&Object.assign(ee,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Aa=Object.freeze([]);function Wr(){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 rs(){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 lt(o){o.prototype.toJSON=Na}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),is=o=>o,Fa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:is}):{createHTML:is};let No=Object.freeze({createHTML(o){return Fa.createHTML(o)},protect(o,e,t,r){return r}});const Ma=No,ct=Object.freeze({get policy(){return No},setPolicy(o){if(No!==Ma)throw ee.error(1201);No=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),H=ee.getById(at.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class Ur{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 ss{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 Ur(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Ur(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 Ao=Object.freeze({unknown:void 0,coupled:1}),m=ee.getById(at.observable,()=>{const o=H.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw ee.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new ss(d))),f}const n=rs();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,f){const y=this.field,X=l[y];if(X!==f){l[y]=f;const Se=l[this.callback];It(Se)&&Se.call(l,X,f),s(l).notify(this.name)}}}class h extends Ur{constructor(l,f,y=!1){super(l,f),this.expression=l,this.isVolatileBinding=y,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Ao.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const y=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let X;try{X=this.expression(l,f)}finally{r=y}return X}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const y=this.last,X=s(l),Se=y===null?this.first:{};if(Se.propertySource=l,Se.propertyName=f,Se.notifier=X,X.subscribe(this,f),y!==null){if(!this.needsRefresh){let nt;r=void 0,nt=y.propertySource[y.propertyName],r=this,l===nt&&(this.needsRefresh=!0)}y.next=Se}this.last=Se}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return lt(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Re(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function ns(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const as=ee.getById(at.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Pt=Object.freeze({default:{index:0,length:0,get event(){return Pt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return as.get()},setEvent(o){as.set(o)}});class Fo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Da extends Fo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Gr(o,e,t=m.isVolatileBinding(o)){return new Da(o,e,t)}class ls extends Fo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}lt(ls);function cs(o,e){return new ls(o,e)}let ds;function hs(o){return o.map(e=>e instanceof fe?hs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class fe{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof fe?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(ds),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(hs(this.styles)),this}static setDefaultStrategy(e){ds=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new fe(e):e instanceof fe?e:new fe([e])}}fe.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Xr=Wr(),Kr=Object.freeze({getForInstance:Xr.getForInstance,getByType:Xr.getByType,define(o){return Xr.register({type:o}),o}});function Yr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Qr{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)=>Yr(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){Yr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Yr(this,t.controller,t)}}Kr.define(Qr);const La=`${Math.random().toString(36).substring(2,8)}`;let Va=0;const us=()=>`--v${La}${++Va}`;function ps(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];It(h)?h=new Qr(Gr(h),us()).createCSS(s):h instanceof Fo?h=new Qr(h,us()).createCSS(s):Kr.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof fe||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const p=(o,...e)=>{const{styles:t,behaviors:r}=ps(o,e),i=new fe(t);return r.length?i.withBehaviors(...r):i};class gs{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Re(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new fe(r))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Kr.define(gs),p.partial=(o,...e)=>{const{styles:t,behaviors:r}=ps(o,e);return new gs(t,r)};const fs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,bs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ms=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,vs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,$s=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ys=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function xs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Be=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return fs.test(o)},isContentBindingEndMarker(o){return bs.test(o)},isRepeatViewStartMarker(o){return ms.test(o)},isRepeatViewEndMarker(o){return vs.test(o)},isElementBoundaryStartMarker(o){return xs(o)&&$s.test(o.data.trim())},isElementBoundaryEndMarker(o){return xs(o)&&ys.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Cs(fs,o)},parseContentBindingEndMarker(o){return Cs(bs,o)},parseRepeatStartMarker(o){return ks(ms,o)},parseRepeatEndMarker(o){return ks(vs,o)},parseElementBoundaryStartMarker(o){return ws($s,o.trim())},parseElementBoundaryEndMarker(o){return ws(ys,o)}});function ks(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function ws(o,e){const t=o.exec(e);return t===null?t:t[1]}function Cs(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Mo=Symbol.for("fe-hydration");function Do(o){return o[Mo]===Mo}const Zr=`fast-${Math.random().toString(36).substring(2,8)}`,Lo=`${Zr}{`,to=`}${Zr}`,Ha=to.length;let Ra=0;const oo=()=>`${Zr}-${++Ra}`,Ss=Object.freeze({interpolation:o=>`${Lo}${o}${to}`,attribute:o=>`${oo()}="${Lo}${o}${to}"`,comment:o=>`<!--${Lo}${o}${to}-->`}),Vo=Object.freeze({parse(o,e){const t=o.split(Lo);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(to);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Ha)}h!==""&&r.push(h)}return r}}),Jr=Wr(),Ee=Object.freeze({getForInstance:Jr.getForInstance,getByType:Jr.getByType,define(o,e){return e=e||{},e.type=o,Jr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=K.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=K.event;break;default:o.targetAspect=e,o.aspectType=K.attribute;break}}});class ei{constructor(e){this.options=e}createHTML(e){return Ss.attribute(e(this))}createBehavior(){return this}}lt(ei);class Is extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function ti(o){return o.nodeType===Node.COMMENT_NODE}function Ps(o){return o.nodeType===Node.TEXT_NODE}function zs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ti(e)||Ps(e)?e.data.length:e.childNodes.length),t}function ja(o){return o instanceof DocumentFragment&&"mode"in o}function qa(o,e,t){const r=zs(o,e),i=r.commonAncestorContainer,s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Wa(h,t,n);break}case Node.COMMENT_NODE:{Ua(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Wa(o,e,t){const r=Be.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new Is(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);Ho(e[i],o,t)}o.removeAttribute(Be.attributeMarkerName)}}function Ua(o,e,t,r,i){if(Be.isElementBoundaryStartMarker(o)){Ga(o,e);return}if(Be.isContentBindingStartMarker(o.data)){const s=Be.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ti(l)){const y=Be.parseContentBindingEndMarker(l.data);if(y&&y[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const y=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ja(y)?y.host.nodeName:y.nodeName}".`)}if(l.data="",d.length===1&&Ps(d[0]))Ho(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const y=l.parentNode.insertBefore(document.createTextNode(""),l);Ho(h,y,r)}}}function Ga(o,e){const t=Be.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(ti(r)){const i=Be.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function Ho(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var _s;function oi(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Os{constructor(){this.index=0,this.length=0}get event(){return Pt.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Ro extends Os{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ao.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){oi(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){oi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}lt(Ro),m.defineProperty(Ro.prototype,"index"),m.defineProperty(Ro.prototype,"length");const zt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Xa extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Ka extends Os{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[_s]=Mo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ao.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=zt.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){var r,i;if(this.hydrationStage!==zt.hydrated&&(this._hydrationStage=zt.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=qa(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Is){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Ho(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Xa(`HydrationView was unable to successfully target bindings inside "${(i=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,d,zs(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=zt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){oi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}_s=Mo,lt(Ka);function Ya(o){return o.create!==void 0}function Qa(o,e,t,r){if(t==null&&(t=""),Ya(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Do(r)&&Do(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==zt.hydrated){const s=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(s.first,s.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Za(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const y=d[l];y!==""&&(n[y]=c,h.add(y))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ja={[K.attribute]:ct.setAttribute,[K.booleanAttribute]:ct.setBooleanAttribute,[K.property]:(o,e,t)=>o[e]=t,[K.content]:Qa,[K.tokenList]:Za,[K.event]:()=>{}};class _t{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=K.content}createHTML(e){return Ss.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ja[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ee.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],i=Do(e)&&e.hydrationStage&&e.hydrationStage!==zt.hydrated;switch(this.aspectType){case K.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:e.onUnbind(this);default:const s=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(s.target=r,s.controller=e,i&&(this.aspectType===K.attribute||this.aspectType===K.booleanAttribute)){s.bind(e);break}this.updateTarget(r,this.targetAspect,s.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Pt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Pt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Ee.define(_t,{aspected:!0});const Ts=(o,e)=>`${o}.${e}`,Bs={},Ne={index:0,node:null};function Es(o){o.startsWith("fast-")||ee.warn(1204,{name:o})}const el=new Proxy(document.createElement("div"),{get(o,e){Es(e);const t=Reflect.get(o,e);return It(t)?t.bind(o):t},set(o,e,t){return Es(e),Reflect.set(o,e,t)}});class tl{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:oo(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Bs[t];if(!s){const n=`_${t}`;Bs[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??el;for(const i of this.nodeIds)r[i];return new Ro(t,this.factories,r)}}function Ns(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,y=Vo.parse(f,c);let X=null;y===null?s&&(X=new _t(cs(()=>f,o.policy)),Ee.assignAspect(X,l.name)):X=ri.aggregate(y,o.policy),X!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(X,e,r,i,t.tagName))}}function ol(o,e,t,r,i){const s=Vo.parse(e.textContent,o.directives);if(s===null)return Ne.node=e.nextSibling,Ne.index=i+1,Ne;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Ts(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Re(l)?n.textContent=l:(n.textContent=" ",Ee.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Ne.index=i+1,Ne.node=c.nextSibling,Ne}function As(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=rl(o,t,i,r);i=s.node,r=s.index}}function rl(o,e,t,r){const i=Ts(e,r);switch(t.nodeType){case 1:Ns(o,e,t,i,r),As(o,t,i);break;case 3:return ol(o,t,e,i,r);case 8:const s=Vo.parse(t.data,o.directives);s!==null&&o.addFactory(ri.aggregate(s),e,i,r,null);break}return Ne.index=r+1,Ne.node=t.nextSibling,Ne}function il(o,e){return o&&o.nodeType==8&&Vo.parse(o.data,e)!==null}const Fs="TEMPLATE",ri={compile(o,e,t=ct.policy){let r;if(Re(o)){r=document.createElement(Fs),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Fs&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new tl(i,e,t);return Ns(s,"",r,"h",0,!0),(il(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),As(s,i,"r"),Ne.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ct.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>Re(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let y=0;y<s;++y)f+=n[y](d,l);return f},h=new _t(Gr(c,i??e,r));return Ee.assignAspect(h,t),h}},sl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,nl=Object.create(null);class dt{constructor(e,t=nl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}dt.empty=new dt(""),Ee.define(dt);function al(o,e,t,r=Ee.getForInstance(o)){if(r.aspected){const i=sl.exec(e);i!==null&&Ee.assignAspect(o,i[2])}return o.createHTML(t)}class Vr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ri.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new dt(Re(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ee.error(1208);if(this.policy)throw ee.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=oo();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(i+=d,It(l))l=new _t(Gr(l));else if(l instanceof Fo)l=new _t(l);else if(!(f=Ee.getForInstance(l))){const y=l;l=new _t(cs(()=>y))}i+=al(l,d,n,f)}return new Vr(i+e[e.length-1],s,r)}}lt(Vr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Vr.create(o,e);throw ee.error(1206)};b.partial=o=>new dt(o);class Ms extends ei{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ee.define(Ms);const z=o=>new Ms(o),ll=o=>o.nodeType===1,ro=o=>o?e=>e.nodeType===1&&e.matches(o):ll;class cl extends ei{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,Aa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Ds="slotchange";class Ls extends cl{observe(e){e.addEventListener(Ds,this)}disconnect(e){e.removeEventListener(Ds,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ee.define(Ls);function W(o){return Re(o)&&(o={property:o}),new Ls(o)}const Vs="boolean",Hs="reflect",jo=Object.freeze({locate:rs()}),dl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Rs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const te={toView(o){const e=Rs(o);return e&&e.toString()},fromView:Rs};class Hr{constructor(e,t,r=t.toLowerCase(),i=Hs,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===Vs&&s===void 0&&(this.converter=dl)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||H.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Hs:const s=this.converter;ct.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Vs:ct.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(jo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Re(d)?r.push(new Hr(e,d)):r.push(new Hr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),jo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const js={mode:"open"},qs={},Ws=new Set,qo=ee.getById(at.elementRegistry,()=>Wr());class Te{constructor(e,t=e.definition){var r;this.platformDefined=!1,Re(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=Hr.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?js:t.shadowOptions===null?void 0:Object.assign(Object.assign({},js),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?qs:Object.assign(Object.assign({},qs),t.elementOptions),this.styles=fe.normalize(t.styles),qo.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 Ws.has(e)||qo.getByType(e)?new Te(class extends e{},t):new Te(e,t)}static registerBaseType(e){Ws.add(e)}}Te.getByType=qo.getByType,Te.getForInstance=qo.getForInstance;class hl extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(i=>this.observedNodes.has(i.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,i=!1;return{source:o,context:Pt.default,targets:t,get isBound(){return i},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:oo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:oo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ct.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),i&&s.bind(this)},onUnbind(s){r===null&&(r=[]),r.push(s)},connectedCallback(s){i||(i=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){i&&(i=!1,r!==null&&r.forEach(n=>n.unbind(this)))}}}});const ul={bubbles:!0,composed:!0,cancelable:!0},Wo="isConnected",Us=new WeakMap;function io(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Us.get(o))!==null&&t!==void 0?t:null}let Gs;class Ot extends ss{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&Us.set(e,s))}const i=m.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Wo),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:Pt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=io(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=io(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Wo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,s=r.length;i<s;++i){const n=r[i];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Wo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},ul),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=io(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Ao.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Te.getForInstance(e);if(r===void 0)throw ee.error(1401);return e.$fastController=new Gs(e,r)}static setStrategy(e){Gs=e}}lt(Ot),Ot.setStrategy(Ot);function Uo(o){var e;return"adoptedStyleSheets"in o?o:(e=io(o))!==null&&e!==void 0?e:o.getRootNode()}class Rr{constructor(e){const t=Rr.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){Ks(Uo(e),this.sheets)}removeStylesFrom(e){Ys(Uo(e),this.sheets)}}Rr.styleSheetCache=new Map;let pl=0;const gl=()=>`fast-${++pl}`;function Xs(o){return o===document?document.body:o}class fl{constructor(e){this.styles=e,this.styleClass=gl()}addStylesTo(e){e=Xs(Uo(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=Xs(Uo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Ks=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Ys=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(fe.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ks=(o,e)=>{o.adoptedStyleSheets.push(...e)},Ys=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}fe.setDefaultStrategy(Rr)}else fe.setDefaultStrategy(fl);const Qs="defer-hydration",Zs="needs-hydration";class St extends Ot{static hydrationObserverHandler(e){for(const t of e)St.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Zs)!==null),this.source.hasAttribute(Qs)){St.hydrationObserver.observe(this.source,{attributeFilter:[Qs]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,i=(e=io(r))!==null&&e!==void 0?e:r;if(this.template)if(Do(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Be.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Be.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,r),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(Zs),this.needsInitialization=this.needsHydration=!1,m.notify(this,Wo)}disconnect(){super.disconnect(),St.hydrationObserver.unobserve(this.source)}static install(){Ot.setStrategy(St)}}St.hydrationObserver=new hl(St.hydrationObserverHandler);function Js(o){const e=class extends o{constructor(){super(),Ot.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Te.registerBaseType(e),e}function bl(o,e){return It(o)?Te.compose(o,e):Te.compose(this,o)}function ml(o,e){return It(o)?Te.compose(o,e).define().type:Te.compose(this,o).define().type}function vl(o){return Js(o)}const k=Object.assign(Js(HTMLElement),{from:vl,define:ml,compose:bl});function ae(o){return o?typeof o=="string"?new dt(o):"inline"in o?o.inline():o:dt.empty}class Ke{}function ht(o){return b`<slot name="end" ${z("end")}>${ae(o.end)}</slot>`.inline()}function je(o){return b`<slot name="start" ${z("start")}>${ae(o.start)}</slot>`.inline()}function Ye(o,...e){const t=jo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),jo.locate(r).forEach(s=>t.push(s))})}var $l=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,Go=(o,e,t,r)=>{for(var i=r>1?void 0:r?yl(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&&$l(e,t,i),i};class so extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Go([a({attribute:"heading-level",mode:"fromView",converter:te})],so.prototype,"headinglevel",2),Go([a({mode:"boolean"})],so.prototype,"expanded",2),Go([a({mode:"boolean"})],so.prototype,"disabled",2),Go([g],so.prototype,"expandbutton",2);var xl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,ii=(o,e,t,r)=>{for(var i=r>1?void 0:r?kl(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&&xl(e,t,i),i};class no extends so{constructor(){super(...arguments),this.block=!1}}ii([a],no.prototype,"size",2),ii([a({attribute:"marker-position"})],no.prototype,"markerPosition",2),ii([a({mode:"boolean"})],no.prototype,"block",2),Ye(no,Ke);const wl=":host([hidden]){display:none}";function w(o){return`${wl}:host{display:${o}}`}const _="var(--colorNeutralForeground1)",en="var(--colorNeutralForeground1Hover)",Cl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Tt="var(--colorNeutralForeground2Hover)",Bt="var(--colorNeutralForeground2Pressed)",Xo="var(--colorNeutralForeground2Selected)",Ko="var(--colorNeutralForeground2BrandHover)",Yo="var(--colorNeutralForeground2BrandPressed)",Sl="var(--colorNeutralForeground2BrandSelected)",Y="var(--colorNeutralForeground3)",Il="var(--colorNeutralForeground3Hover)",Pl="var(--colorNeutralForeground3Pressed)",zl="var(--colorNeutralForeground3Selected)",si="var(--colorNeutralForeground4)",O="var(--colorNeutralForegroundDisabled)",_l="var(--colorBrandForegroundLink)",Ol="var(--colorBrandForegroundLinkHover)",Tl="var(--colorBrandForegroundLinkPressed)",Bl="var(--colorNeutralForeground2Link)",El="var(--colorNeutralForeground2LinkHover)",Nl="var(--colorNeutralForeground2LinkPressed)",Al="var(--colorCompoundBrandForeground1Hover)",Fl="var(--colorCompoundBrandForeground1Pressed)",qe="var(--colorNeutralForegroundOnBrand)",ut="var(--colorNeutralForegroundInverted)",Ml="var(--colorNeutralForegroundInvertedHover)",Dl="var(--colorNeutralForegroundInvertedPressed)",tn="var(--colorNeutralForegroundStaticInverted)",Qo="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",Zo="var(--colorNeutralBackground1Hover)",ni="var(--colorNeutralBackground1Pressed)",on="var(--colorNeutralBackground1Selected)",ao="var(--colorNeutralBackground3)",Hl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",lo="var(--colorNeutralBackground6)",rn="var(--colorNeutralBackgroundInverted)",sn="var(--colorSubtleBackground)",Jo="var(--colorSubtleBackgroundHover)",co="var(--colorSubtleBackgroundPressed)",nn="var(--colorSubtleBackgroundSelected)",jl="var(--colorSubtleBackgroundLightAlphaHover)",ql="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",le="var(--colorTransparentBackground)",er="var(--colorTransparentBackgroundHover)",tr="var(--colorTransparentBackgroundPressed)",an="var(--colorTransparentBackgroundSelected)",Qe="var(--colorNeutralBackgroundDisabled)",ai="var(--colorBackgroundOverlay)",ln="var(--colorBrandBackground)",cn="var(--colorBrandBackgroundHover)",dn="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",pt="var(--colorCompoundBrandBackground)",Et="var(--colorCompoundBrandBackgroundHover)",Nt="var(--colorCompoundBrandBackgroundPressed)",hn="var(--colorBrandBackgroundStatic)",un="var(--colorBrandBackground2)",Ae="var(--colorNeutralStrokeAccessible)",gt="var(--colorNeutralStrokeAccessibleHover)",ft="var(--colorNeutralStrokeAccessiblePressed)",Fe="var(--colorNeutralStroke1)",bt="var(--colorNeutralStroke1Hover)",ho="var(--colorNeutralStroke1Pressed)",uo="var(--colorNeutralStroke2)",Gl="var(--colorNeutralStroke3)",Xl="var(--colorNeutralStrokeOnBrand2)",pn="var(--colorBrandStroke1)",gn="var(--colorBrandStroke2)",Ze="var(--colorCompoundBrandStroke)",Kl="var(--colorCompoundBrandStrokeHover)",fn="var(--colorCompoundBrandStrokePressed)",be="var(--colorNeutralStrokeDisabled)",U="var(--colorTransparentStroke)",li="var(--colorTransparentStrokeInteractive)",or="var(--colorStrokeFocus1)",ce="var(--colorStrokeFocus2)",Yl="var(--colorNeutralShadowAmbient)",Ql="var(--colorNeutralShadowKey)",bn="var(--colorPaletteRedBackground1)",Zl="var(--colorPaletteRedBackground2)",mn="var(--colorPaletteRedBackground3)",vn="var(--colorPaletteRedBorder1)",ci="var(--colorPaletteRedBorder2)",di="var(--colorPaletteRedForeground1)",Jl="var(--colorPaletteRedForeground2)",$n="var(--colorPaletteRedForeground3)",yn="var(--colorPaletteGreenBackground1)",xn="var(--colorPaletteGreenBackground3)",ec="var(--colorPaletteGreenBorder1)",tc="var(--colorPaletteGreenBorder2)",oc="var(--colorPaletteGreenForeground1)",rc="var(--colorPaletteGreenForeground2)",ic="var(--colorPaletteGreenForeground3)",kn="var(--colorPaletteDarkOrangeBackground1)",wn="var(--colorPaletteDarkOrangeBackground3)",Cn="var(--colorPaletteDarkOrangeBorder1)",sc="var(--colorPaletteDarkOrangeForeground1)",Sn="var(--colorPaletteDarkOrangeForeground3)",nc="var(--colorPaletteYellowBackground1)",ac="var(--colorPaletteYellowBackground3)",lc="var(--colorPaletteYellowBorder1)",hi="var(--colorPaletteYellowForeground2)",In="var(--colorPaletteMarigoldBackground2)",cc="var(--colorPaletteMarigoldBorderActive)",dc="var(--colorPaletteMarigoldForeground2)",hc="var(--colorPaletteAnchorBackground2)",uc="var(--colorPaletteAnchorForeground2)",pc="var(--colorPaletteBeigeBackground2)",gc="var(--colorPaletteBeigeForeground2)",fc="var(--colorPaletteBlueBackground2)",bc="var(--colorPaletteBlueForeground2)",mc="var(--colorPaletteBrassBackground2)",vc="var(--colorPaletteBrassForeground2)",$c="var(--colorPaletteBrownBackground2)",yc="var(--colorPaletteBrownForeground2)",xc="var(--colorPaletteCornflowerBackground2)",kc="var(--colorPaletteCornflowerForeground2)",wc="var(--colorPaletteCranberryBackground2)",Cc="var(--colorPaletteCranberryForeground2)",Sc="var(--colorPaletteDarkGreenBackground2)",Ic="var(--colorPaletteDarkGreenForeground2)",Pc="var(--colorPaletteDarkRedBackground2)",zc="var(--colorPaletteDarkRedForeground2)",_c="var(--colorPaletteForestBackground2)",Oc="var(--colorPaletteForestForeground2)",Tc="var(--colorPaletteGoldBackground2)",Bc="var(--colorPaletteGoldForeground2)",Ec="var(--colorPaletteGrapeBackground2)",Nc="var(--colorPaletteGrapeForeground2)",Ac="var(--colorPaletteLavenderBackground2)",Fc="var(--colorPaletteLavenderForeground2)",Mc="var(--colorPaletteLightTealBackground2)",Dc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",Vc="var(--colorPaletteLilacForeground2)",Hc="var(--colorPaletteMagentaBackground2)",Rc="var(--colorPaletteMagentaForeground2)",jc="var(--colorPaletteMinkBackground2)",qc="var(--colorPaletteMinkForeground2)",Wc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Gc="var(--colorPalettePeachBackground2)",Xc="var(--colorPalettePeachForeground2)",Kc="var(--colorPalettePinkBackground2)",Yc="var(--colorPalettePinkForeground2)",Qc="var(--colorPalettePlatinumBackground2)",Zc="var(--colorPalettePlatinumForeground2)",Jc="var(--colorPalettePlumBackground2)",ed="var(--colorPalettePlumForeground2)",td="var(--colorPalettePumpkinBackground2)",od="var(--colorPalettePumpkinForeground2)",rd="var(--colorPalettePurpleBackground2)",id="var(--colorPalettePurpleForeground2)",sd="var(--colorPaletteRoyalBlueBackground2)",nd="var(--colorPaletteRoyalBlueForeground2)",ad="var(--colorPaletteSeafoamBackground2)",ld="var(--colorPaletteSeafoamForeground2)",cd="var(--colorPaletteSteelBackground2)",dd="var(--colorPaletteSteelForeground2)",hd="var(--colorPaletteTealBackground2)",ud="var(--colorPaletteTealForeground2)",rr="var(--borderRadiusNone)",Pe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",Pn="var(--borderRadiusLarge)",zn="var(--borderRadiusXLarge)",de="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",pd="var(--fontFamilyMonospace)",gd="var(--fontFamilyNumeric)",po="var(--fontSizeBase100)",A="var(--fontSizeBase200)",B="var(--fontSizeBase300)",he="var(--fontSizeBase400)",At="var(--fontSizeBase500)",ir="var(--fontSizeBase600)",_n="var(--fontSizeHero700)",On="var(--fontSizeHero800)",Tn="var(--fontSizeHero900)",Bn="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",fd="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",sr="var(--fontWeightBold)",nr="var(--lineHeightBase100)",R="var(--lineHeightBase200)",F="var(--lineHeightBase300)",me="var(--lineHeightBase400)",ar="var(--lineHeightBase500)",En="var(--lineHeightBase600)",Nn="var(--lineHeightHero700)",An="var(--lineHeightHero800)",Fn="var(--lineHeightHero900)",Mn="var(--lineHeightHero1000)",ui="var(--shadow2)",lr="var(--shadow4)",bd="var(--shadow8)",pi="var(--shadow16)",md="var(--shadow28)",Dn="var(--shadow64)",I="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",xe="var(--strokeWidthThicker)",gi="var(--strokeWidthThickest)",L="var(--spacingHorizontalXXS)",oe="var(--spacingHorizontalXS)",ve="var(--spacingHorizontalSNudge)",ze="var(--spacingHorizontalS)",We="var(--spacingHorizontalMNudge)",re="var(--spacingHorizontalM)",vd="var(--spacingHorizontalL)",$d="var(--spacingHorizontalXL)",fi="var(--spacingHorizontalXXL)",bi="var(--spacingVerticalNone)",cr="var(--spacingVerticalXXS)",Ft="var(--spacingVerticalXS)",go="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",dr="var(--spacingVerticalMNudge)",yd="var(--spacingVerticalM)",mi="var(--spacingVerticalL)",mt="var(--spacingVerticalXXL)",xd="var(--spacingVerticalXXXL)",vi="var(--durationUltraFast)",hr="var(--durationFaster)",ur="var(--durationNormal)",$i="var(--durationGentle)",kd="var(--durationSlow)",Ln="var(--durationSlower)",pr="var(--durationUltraSlow)",wd="var(--curveAccelerateMax)",vt="var(--curveAccelerateMid)",Cd="var(--curveAccelerateMin)",Vn="var(--curveDecelerateMax)",$t="var(--curveDecelerateMid)",Sd="var(--curveDecelerateMin)",Hn="var(--curveEasyEaseMax)",gr="var(--curveEasyEase)",yi="var(--curveLinear)",Id=p`
2
2
  ${w("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ae} ${Ve};border-radius:${C};font-family:${v};font-size:${O};font-weight:${A};line-height:${M};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${he};border:none;box-sizing:border-box;color:${_};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${_e};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ae}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${_e};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze};outline:none;border:2px solid ${pr};box-shadow:inset 0 0 0 1px ${ue}}:host([disabled]) .button{color:${T}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${O};line-height:${M}}:host([size='small']) .heading{font-size:${F};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${ke}}:host([size='extra-large']) .heading{font-size:${Dt};line-height:${vr}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${_e};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ae}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Ve} ${ae}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Nd=g.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${re} ${We};border-radius:${C};font-family:${v};font-size:${B};font-weight:${E};line-height:${F};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${le};border:none;box-sizing:border-box;color:${_};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Pe}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${ze};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${re}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${ze};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Pe};outline:none;border:2px solid ${or};box-shadow:inset 0 0 0 1px ${ce}}:host([disabled]) .button{color:${O}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${F}}:host([size='small']) .heading{font-size:${A};line-height:${R}}:host([size='large']) .heading{font-size:${he};line-height:${me}}:host([size='extra-large']) .heading{font-size:${At};line-height:${ar}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${ze};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${re}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${We} ${re}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Pd=b.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -14,7 +14,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
14
14
  d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
15
15
  fill="currentColor"
16
16
  />
17
- </svg>`),Fd=g.partial(`<svg
17
+ </svg>`),zd=b.partial(`<svg
18
18
  width="20"
19
19
  height="20"
20
20
  viewBox="0 0 20 20"
@@ -27,38 +27,36 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
27
27
  d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
28
28
  fill="currentColor"
29
29
  />
30
- </svg>`);function Md(o={}){return g`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" id="control" aria-controls="panel" aria-expanded="${e=>e.expanded}" ?disabled="${e=>e.disabled}" ${z("expandbutton")}><slot name="heading"></slot></button>${Ge(o)}<slot name="marker-expanded">${de(o.expandedIcon)}</slot><slot name="marker-collapsed">${de(o.collapsedIcon)}</slot></div><div class="content" part="content" id="panel" role="region" aria-labelledby="control"><slot></slot></div>`}const Dd=Md({collapsedIcon:Nd,expandedIcon:Fd}),Ld=ho.compose({name:`${p.prefix}-accordion-item`,template:Dd,styles:Ed});Ld.define(p.registry);function Kn(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Vt(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,s=t?.idleCallback??!1,n=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(n)===null||h&&h.timeRemaining()<=0){s?Kn(e,{timeout:i}):e();return}Kn(c,{timeout:i})};c()}function zi(o,e="-accordion-item"){return nn(e)(o)}const _i={single:"single",multi:"multi"};var Vd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,Yn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vd(e,t,i),i};class Bi extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Vt(this,()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;zi(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===_i.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>zi(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===_i.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{zi(r)&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||_i.multi,this.setItems()}}Yn([a({attribute:"expand-mode"})],Bi.prototype,"expandmode",2),Yn([b],Bi.prototype,"slottedAccordionItems",2);const jd=u`
30
+ </svg>`);function _d(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" id="control" aria-controls="panel" aria-expanded="${e=>e.expanded}" ?disabled="${e=>e.disabled}" ${z("expandbutton")}><slot name="heading"></slot></button>${je(o)}<slot name="marker-expanded">${ae(o.expandedIcon)}</slot><slot name="marker-collapsed">${ae(o.collapsedIcon)}</slot></div><div class="content" part="content" id="panel" role="region" aria-labelledby="control"><slot></slot></div>`}const Od=_d({collapsedIcon:Pd,expandedIcon:zd}),Td=no.compose({name:Ea,template:Od,styles:Id});Td.define(u.registry);const xi={single:"single",multi:"multi"},Bd=`${u.prefix}-accordion`;function Rn(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Mt(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,s=t?.idleCallback??!1,n=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(n)===null||h&&h.timeRemaining()<=0){s?Rn(e,{timeout:i}):e();return}Rn(c,{timeout:i})};c()}var Ed=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,jn=(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&&Ed(e,t,i),i};class ki extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Mt(this,()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;jr(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===xi.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>jr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===xi.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{jr(r)&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||xi.multi,this.setItems()}}jn([a({attribute:"expand-mode"})],ki.prototype,"expandmode",2),jn([g],ki.prototype,"slottedAccordionItems",2);const Ad=p`
31
31
  ${w("flex")}
32
32
 
33
- :host{flex-direction:column;width:100%;contain:content}`;function Rd(){return g`<template><slot ${U({property:"slottedAccordionItems",filter:no()})}></slot></template>`}const qd=Rd(),Wd=Bi.compose({name:`${p.prefix}-accordion`,template:qd,styles:jd});Wd.define(p.registry);const Qn=new Map;function P(o){return Qn.get(o)??Qn.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!an){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Ti=new WeakMap;function Zn(o,e){if(!o||!e)return!1;if(Ti.has(o))return Ti.get(o).has(e);const t=new Set(Object.values(o));return Ti.set(o,t),t.has(e)}function kt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||Zn(r,t))&&$(o,`${i}${t}`,!0)}const Gd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Ud={circular:"circular",rounded:"rounded",square:"square"},Xd={small:"small",medium:"medium",large:"large"},Ir={submit:"submit",reset:"reset",button:"button"},Kd=Gd,Yd=Ud,Qd=Xd,Zd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Jd=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,tt=(o,e,t,r)=>{for(var i=r>1?void 0:r?eh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jd(e,t,i),i};class He extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Zd){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;t&&e.preventDefault(),this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===lo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}tt([a],He.prototype,"download",2),tt([a],He.prototype,"href",2),tt([a],He.prototype,"hreflang",2),tt([a],He.prototype,"ping",2),tt([a],He.prototype,"referrerpolicy",2),tt([a],He.prototype,"rel",2),tt([a],He.prototype,"target",2),tt([a],He.prototype,"type",2);var th=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&th(e,t,i),i};class Ht extends He{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){kt(this.elementInternals,e,t,Kd)}shapeChanged(e,t){kt(this.elementInternals,e,t,Yd)}sizeChanged(e,t){kt(this.elementInternals,e,t,Qd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Pr([a],Ht.prototype,"appearance",2),Pr([a],Ht.prototype,"shape",2),Pr([a],Ht.prototype,"size",2),Pr([a({attribute:"icon-only",mode:"boolean"})],Ht.prototype,"iconOnly",2),Je(Ht,Ze);const Jn=u`
33
+ :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${W({property:"slottedAccordionItems",filter:ro()})}></slot></template>`}const Md=Fd(),Dd=ki.compose({name:Bd,template:Md,styles:Ad});Dd.define(u.registry);const Ld={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Vd={circular:"circular",rounded:"rounded",square:"square"},Hd={small:"small",medium:"medium",large:"large"},fr={submit:"submit",reset:"reset",button:"button"},Rd=`${u.prefix}-button`,jd=Ld,qd=Vd,Wd=Hd,Ud={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Gd=`${u.prefix}-anchor-button`,br=CSS.supports("anchor-name: --a"),Xd="anchor"in HTMLElement.prototype,qn=CSS.supports("selector(:state(g))"),Wn=new Map;function P(o){return Wn.get(o)??Wn.set(o,qn?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!qn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const wi=new WeakMap;function Un(o,e){if(!o||!e)return!1;if(wi.has(o))return wi.get(o).has(e);const t=new Set(Object.values(o));return wi.set(o,t),t.has(e)}function yt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||Un(r,t))&&$(o,`${i}${t}`,!0)}const $e={horizontal:"horizontal",vertical:"vertical"};function Kd(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function Gn(...o){return o.every(e=>e instanceof HTMLElement)}const Xn="ArrowDown",mr="ArrowLeft",vr="ArrowRight",Kn="ArrowUp",Yn="End",fo="Enter",Yd="Escape",Qn="Home",bo=" ",Qd="Tab";var Me;(function(o){o.ltr="ltr",o.rtl="rtl"})(Me||(Me={}));function Zn(o,e,t){return Math.min(Math.max(t,o),e)}let Zd=0;function $r(o=""){return`${o}${Zd++}`}var Jd=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,Je=(o,e,t,r)=>{for(var i=r>1?void 0:r?eh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jd(e,t,i),i};class De extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Ud){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===fo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}Je([a],De.prototype,"download",2),Je([a],De.prototype,"href",2),Je([a],De.prototype,"hreflang",2),Je([a],De.prototype,"ping",2),Je([a],De.prototype,"referrerpolicy",2),Je([a],De.prototype,"rel",2),Je([a],De.prototype,"target",2),Je([a],De.prototype,"type",2);var th=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,yr=(o,e,t,r)=>{for(var i=r>1?void 0:r?oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&th(e,t,i),i};class Dt extends De{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){yt(this.elementInternals,e,t,jd)}shapeChanged(e,t){yt(this.elementInternals,e,t,qd)}sizeChanged(e,t){yt(this.elementInternals,e,t,Wd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}yr([a],Dt.prototype,"appearance",2),yr([a],Dt.prototype,"shape",2),yr([a],Dt.prototype,"size",2),yr([a({attribute:"icon-only",mode:"boolean"})],Dt.prototype,"iconOnly",2),Ye(Dt,Ke);const Jn=p`
34
34
  ${w("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${ge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${S};color:${_};border:${I} solid ${De};padding:0 ${ae};min-width:96px;border-radius:${C};font-size:${O};font-family:${v};font-weight:${L};line-height:${M};transition-duration:${kr};transition-property:background,border,color;transition-timing-function:${Sr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${cr};color:${ln};border-color:${Mt}}:host(:hover:active){background-color:${pi};border-color:${go};color:${Ol};outline-style:none}:host(:focus-visible){border-color:${K};outline:${be} solid ${K};box-shadow:${$r},0 0 0 2px ${ue}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ie};min-height:24px;min-width:64px;padding:0 ${_e};border-radius:${ze};font-size:${F};line-height:${q};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${En};padding:0 ${Id};font-size:${pe};line-height:${ke}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${xe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${br}}:host([appearance='primary']){background-color:${gn};color:${Ue};border-color:transparent}:host([appearance='primary']:hover){background-color:${fn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ue}}:host([appearance='primary']:hover:active){background-color:${mn}}:host([appearance='primary']:focus-visible){border-color:${Ue};box-shadow:${$i},0 0 0 2px ${ue}}:host([appearance='outline']){background-color:${he}}:host([appearance='outline']:hover){background-color:${hr}}:host([appearance='outline']:hover:active){background-color:${ur}}:host([appearance='subtle']){background-color:${un};color:${Pe};border-color:transparent}:host([appearance='subtle']:hover){background-color:${dr};color:${At};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${bo};color:${Et};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${nr}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ar}}:host([appearance='transparent']){background-color:${he};color:${Pe}}:host([appearance='transparent']:hover){background-color:${hr};color:${nr}}:host([appearance='transparent']:hover:active){background-color:${ur};color:${ar}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,zr=u`
36
+ :host{--icon-spacing:${ve};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${S};color:${_};border:${I} solid ${Fe};padding:0 ${re};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${F};transition-duration:${hr};transition-property:background,border,color;transition-timing-function:${gr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Zo};color:${en};border-color:${bt}}:host(:hover:active){background-color:${ni};border-color:${ho};color:${Cl};outline-style:none}:host(:focus-visible){border-color:${U};outline:${ue} solid ${U};box-shadow:${lr},0 0 0 2px ${ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${oe};min-height:24px;min-width:64px;padding:0 ${ze};border-radius:${Pe};font-size:${A};line-height:${R};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Pn};padding:0 ${vd};font-size:${he};line-height:${me}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${rr}}:host([appearance='primary']){background-color:${ln};color:${qe};border-color:transparent}:host([appearance='primary']:hover){background-color:${cn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${qe}}:host([appearance='primary']:hover:active){background-color:${dn}}:host([appearance='primary']:focus-visible){border-color:${qe};box-shadow:${ui},0 0 0 2px ${ce}}:host([appearance='outline']){background-color:${le}}:host([appearance='outline']:hover){background-color:${er}}:host([appearance='outline']:hover:active){background-color:${tr}}:host([appearance='subtle']){background-color:${sn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Jo};color:${Tt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${co};color:${Bt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Ko}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Yo}}:host([appearance='transparent']){background-color:${le};color:${Ie}}:host([appearance='transparent']:hover){background-color:${er};color:${Ko}}:host([appearance='transparent']:hover:active){background-color:${tr};color:${Yo}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,xr=p`
37
37
  ${Jn}
38
38
 
39
- :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${et};border-color:${ye};color:${T};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${he}}`.withBehaviors(X(u`
40
- :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),rh=u`
39
+ :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${Qe};border-color:${be};color:${O};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${le}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${le};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${le}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,rh=p`
41
40
  ${Jn}
42
41
 
43
- ::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
44
- :host{border-color:LinkText;color:LinkText}`));function ih(o={}){return g`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ge(o)}<span class="content" part="content"><slot></slot></span>${pt(o)}</template>`}const sh=ih(),nh=Ht.compose({name:`${p.prefix}-anchor-button`,template:sh,styles:rh});nh.define(p.registry);const ah=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,lh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,ch=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,dh=/\s+/g,hh=/[\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 uh(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 ph(o){return o=o.replace(ah,""),o=o.replace(lh,""),o=o.replace(dh," "),o=o.trim(),o}function ea(o,e,t){return!o||(o=ph(o),hh.test(o)||!t?.allowPhoneInitials&&ch.test(o))?"":uh(o,e,t?.firstInitialOnly)}var bh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,$o=(o,e,t,r)=>{for(var i=r>1?void 0:r?gh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&bh(e,t,i),i};class jt extends x{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}N.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||ea(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}$o([b],jt.prototype,"defaultSlot",2),$o([b],jt.prototype,"monogram",2),$o([b],jt.prototype,"slottedDefaults",2),$o([a],jt.prototype,"name",2),$o([a],jt.prototype,"initials",2);const ta={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"},oa={neutral:"neutral",brand:"brand",colorful:"colorful",...ta};var fh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,Rt=(o,e,t,r)=>{for(var i=r>1?void 0:r?mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fh(e,t,i),i};const ot=class os extends jt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||ea(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===oa.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?os.colors[$h(this.name??"")%os.colors.length]:this.color??oa.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};ot.colors=Object.values(ta),Rt([a],ot.prototype,"active",2),Rt([a],ot.prototype,"shape",2),Rt([a],ot.prototype,"appearance",2),Rt([a({converter:re})],ot.prototype,"size",2),Rt([a],ot.prototype,"color",2),Rt([a({attribute:"color-id"})],ot.prototype,"colorId",2);let vh=ot;const $h=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:Un,fastOutSlowInMid:xt,fastOutSlowInMin:Ad,slowOutFastInMax:Td,slowOutFastInMid:yt,slowOutFastInMin:Od,fastEase:Xn,normalEase:Sr,nullEasing:Pi},yh=u`
45
- ${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr / 1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${L};font-size:${O};border-radius:${xe};color:${Z};background-color:${po};contain:layout style}.monogram,.default-icon{grid-area:1 / 1 / -1 / -1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted) ~ .default-icon,.default-slot:is(.has-slotted,:has-slotted) ~ .monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${xe}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${S}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${be} ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${mo};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:${F}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}: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:${Dt}}: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:${gr}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ze}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${En}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Nn}}:host([data-color='brand']){color:${cn};background-color:${vn}}:host([data-color='dark-red']){color:${Fc};background-color:${Nc}}:host([data-color='cranberry']){color:${Oc};background-color:${Tc}}:host([data-color='red']){color:${ac};background-color:${nc}}:host([data-color='pumpkin']){color:${dd};background-color:${cd}}:host([data-color='peach']){color:${od};background-color:${td}}:host([data-color='marigold']){color:${vc};background-color:${An}}:host([data-color='gold']){color:${Vc};background-color:${Lc}}:host([data-color='brass']){color:${Ic};background-color:${Sc}}:host([data-color='brown']){color:${zc};background-color:${Pc}}:host([data-color='forest']){color:${Dc};background-color:${Mc}}:host([data-color='seafoam']){color:${fd};background-color:${gd}}:host([data-color='dark-green']){color:${Ec};background-color:${Ac}}:host([data-color='light-teal']){color:${Gc};background-color:${Wc}}:host([data-color='teal']){color:${yd};background-color:${$d}}:host([data-color='steel']){color:${vd};background-color:${md}}:host([data-color='blue']){color:${Cc};background-color:${wc}}:host([data-color='royal-blue']){color:${bd};background-color:${pd}}:host([data-color='cornflower']){color:${Bc};background-color:${_c}}:host([data-color='navy']){color:${ed};background-color:${Jc}}:host([data-color='lavender']){color:${qc};background-color:${Rc}}:host([data-color='purple']){color:${ud};background-color:${hd}}:host([data-color='grape']){color:${jc};background-color:${Hc}}:host([data-color='lilac']){color:${Xc};background-color:${Uc}}:host([data-color='pink']){color:${id};background-color:${rd}}:host([data-color='magenta']){color:${Yc};background-color:${Kc}}:host([data-color='plum']){color:${ld};background-color:${ad}}:host([data-color='beige']){color:${kc};background-color:${xc}}:host([data-color='mink']){color:${Zc};background-color:${Qc}}:host([data-color='platinum']){color:${nd};background-color:${sd}}:host([data-color='anchor']){color:${yc};background-color:${$c}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Cr},${kr};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:${Cr},${Gn};transition-delay:${rt.fastEase},${rt.nullEasing}}:host([active])::before{box-shadow:${Cd};border-style:solid;border-color:${vn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${be});border-width:${be}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Le});border-width:${Le}}: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 * ${xi});border-width:${xi}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${$r}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${yi}}: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:${Sd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Cr},${kr};transition-delay:${rt.fastOutSlowInMin},${rt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Cr},${Gn};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}}`,xh=g`<svg width="1em" height="1em" viewBox="0 0 20 20" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function kh(){return g`<slot class="default-slot" ${U("slottedDefaults")} ${z("defaultSlot")}></slot><span class="monogram" ${z("monogram")}>${o=>o.initials}</span>${xh}<slot name="badge"></slot>`}const wh=kh(),Ch=vh.compose({name:`${p.prefix}-avatar`,template:wh,styles:yh});Ch.define(p.registry);const Sh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ih={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Ph=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,_r=(o,e,t,r)=>{for(var i=r>1?void 0:r?zh(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&&Ph(e,t,i),i};class qt extends x{constructor(){super(...arguments),this.appearance=Sh.filled,this.color=Ih.brand}}_r([a],qt.prototype,"appearance",2),_r([a],qt.prototype,"color",2),_r([a],qt.prototype,"shape",2),_r([a],qt.prototype,"size",2),Je(qt,Ze);const ra=u.partial`
42
+ ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function ih(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${je(o)}<span class="content" part="content"><slot></slot></span>${ht(o)}</template>`}const sh=ih(),nh=Dt.compose({name:Gd,template:sh,styles:rh});nh.define(u.registry);const ea={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"},ta={neutral:"neutral",brand:"brand",colorful:"colorful",...ea},ah=`${u.prefix}-avatar`,lh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,ch=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,dh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,hh=/\s+/g,uh=/[\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 ph(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 gh(o){return o=o.replace(lh,""),o=o.replace(ch,""),o=o.replace(hh," "),o=o.trim(),o}function oa(o,e,t){return!o||(o=gh(o),uh.test(o)||!t?.allowPhoneInitials&&dh.test(o))?"":ph(o,e,t?.firstInitialOnly)}var fh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,mo=(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&&fh(e,t,i),i};class Lt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}H.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||oa(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}mo([g],Lt.prototype,"defaultSlot",2),mo([g],Lt.prototype,"monogram",2),mo([g],Lt.prototype,"slottedDefaults",2),mo([a],Lt.prototype,"name",2),mo([a],Lt.prototype,"initials",2);var mh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Vt=(o,e,t,r)=>{for(var i=r>1?void 0:r?vh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&mh(e,t,i),i};const et=class Zi extends Lt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||oa(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ta.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Zi.colors[yh(this.name??"")%Zi.colors.length]:this.color??ta.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};et.colors=Object.values(ea),Vt([a],et.prototype,"active",2),Vt([a],et.prototype,"shape",2),Vt([a],et.prototype,"appearance",2),Vt([a({converter:te})],et.prototype,"size",2),Vt([a],et.prototype,"color",2),Vt([a({attribute:"color-id"})],et.prototype,"colorId",2);let $h=et;const yh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},tt={fastOutSlowInMax:Vn,fastOutSlowInMid:$t,fastOutSlowInMin:Sd,slowOutFastInMax:wd,slowOutFastInMid:vt,slowOutFastInMin:Cd,fastEase:Hn,normalEase:gr,nullEasing:yi},xh=p`
43
+ ${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr / 1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${de};color:${Y};background-color:${lo};contain:layout style}.monogram,.default-icon{grid-area:1 / 1 / -1 / -1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted) ~ .default-icon,.default-slot:is(.has-slotted,:has-slotted) ~ .monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${S}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ue} ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${po};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${A}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${At}}: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:${ir}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Pe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Pn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${zn}}:host([data-color='brand']){color:${tn};background-color:${hn}}:host([data-color='dark-red']){color:${zc};background-color:${Pc}}:host([data-color='cranberry']){color:${Cc};background-color:${wc}}:host([data-color='red']){color:${Jl};background-color:${Zl}}:host([data-color='pumpkin']){color:${od};background-color:${td}}:host([data-color='peach']){color:${Xc};background-color:${Gc}}:host([data-color='marigold']){color:${dc};background-color:${In}}:host([data-color='gold']){color:${Bc};background-color:${Tc}}:host([data-color='brass']){color:${vc};background-color:${mc}}:host([data-color='brown']){color:${yc};background-color:${$c}}:host([data-color='forest']){color:${Oc};background-color:${_c}}:host([data-color='seafoam']){color:${ld};background-color:${ad}}:host([data-color='dark-green']){color:${Ic};background-color:${Sc}}:host([data-color='light-teal']){color:${Dc};background-color:${Mc}}:host([data-color='teal']){color:${ud};background-color:${hd}}:host([data-color='steel']){color:${dd};background-color:${cd}}:host([data-color='blue']){color:${bc};background-color:${fc}}:host([data-color='royal-blue']){color:${nd};background-color:${sd}}:host([data-color='cornflower']){color:${kc};background-color:${xc}}:host([data-color='navy']){color:${Uc};background-color:${Wc}}:host([data-color='lavender']){color:${Fc};background-color:${Ac}}:host([data-color='purple']){color:${id};background-color:${rd}}:host([data-color='grape']){color:${Nc};background-color:${Ec}}:host([data-color='lilac']){color:${Vc};background-color:${Lc}}:host([data-color='pink']){color:${Yc};background-color:${Kc}}:host([data-color='magenta']){color:${Rc};background-color:${Hc}}:host([data-color='plum']){color:${ed};background-color:${Jc}}:host([data-color='beige']){color:${gc};background-color:${pc}}:host([data-color='mink']){color:${qc};background-color:${jc}}:host([data-color='platinum']){color:${Zc};background-color:${Qc}}:host([data-color='anchor']){color:${uc};background-color:${hc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${pr},${hr};transition-delay:${tt.fastEase},${tt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${pr},${Ln};transition-delay:${tt.fastEase},${tt.nullEasing}}:host([active])::before{box-shadow:${bd};border-style:solid;border-color:${hn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${xe});border-width:${xe}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${gi});border-width:${gi}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${lr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${pi}}: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:${md}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${pr},${hr};transition-delay:${tt.fastOutSlowInMin},${tt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${pr},${Ln};transition-delay:${tt.fastOutSlowInMin},${tt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,kh=b`<svg width="1em" height="1em" viewBox="0 0 20 20" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function wh(){return b`<slot class="default-slot" ${W("slottedDefaults")} ${z("defaultSlot")}></slot><span class="monogram" ${z("monogram")}>${o=>o.initials}</span>${kh}<slot name="badge"></slot>`}const Ch=wh(),Sh=$h.compose({name:ah,template:Ch,styles:xh});Sh.define(u.registry);const Ih={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ph={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},zh=`${u.prefix}-badge`;var _h=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,kr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_h(e,t,i),i};class Ht extends k{constructor(){super(...arguments),this.appearance=Ih.filled,this.color=Ph.brand}}kr([a],Ht.prototype,"appearance",2),kr([a],Ht.prototype,"color",2),kr([a],Ht.prototype,"shape",2),kr([a],Ht.prototype,"size",2),Ye(Ht,Ke);const ra=p.partial`
46
44
  ${w("inline-flex")} :host {
47
45
  position: relative;
48
46
  box-sizing: border-box;
49
47
  align-items: center;
50
48
  justify-content: center;
51
49
  font-family: ${v};
52
- font-weight: ${L};
53
- font-size: ${F};
54
- line-height: ${q};
50
+ font-weight: ${D};
51
+ font-size: ${A};
52
+ line-height: ${R};
55
53
  min-width: 20px;
56
54
  height: 20px;
57
- padding-inline: calc(${ie} + ${V});
58
- border-radius: ${xe};
59
- border-color: ${K};
60
- background-color: ${gn};
61
- color: ${Ue};
55
+ padding-inline: calc(${oe} + ${L});
56
+ border-radius: ${de};
57
+ border-color: ${U};
58
+ background-color: ${ln};
59
+ color: ${qe};
62
60
  contain: content;
63
61
  }
64
62
 
@@ -78,7 +76,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
78
76
  border-color: inherit;
79
77
  border-radius: inherit;
80
78
  }
81
- `,ia=u.partial`
79
+ `,ia=p.partial`
82
80
  :host([size='tiny']) {
83
81
  width: 6px;
84
82
  height: 6px;
@@ -104,9 +102,9 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
104
102
  :host([size='small']) {
105
103
  min-width: 16px;
106
104
  height: 16px;
107
- font-size: ${mo};
108
- line-height: ${mr};
109
- padding-inline: calc(${V} + ${V});
105
+ font-size: ${po};
106
+ line-height: ${nr};
107
+ padding-inline: calc(${L} + ${L});
110
108
  }
111
109
  :host([size='small']) ::slotted(svg) {
112
110
  font-size: 12px;
@@ -114,9 +112,9 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
114
112
  :host([size='large']) {
115
113
  min-width: 24px;
116
114
  height: 24px;
117
- font-size: ${F};
118
- line-height: ${q};
119
- padding-inline: calc(${ie} + ${V});
115
+ font-size: ${A};
116
+ line-height: ${R};
117
+ padding-inline: calc(${oe} + ${L});
120
118
  }
121
119
  :host([size='large']) ::slotted(svg) {
122
120
  font-size: 16px;
@@ -124,17 +122,17 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
124
122
  :host([size='extra-large']) {
125
123
  min-width: 32px;
126
124
  height: 32px;
127
- font-size: ${F};
128
- line-height: ${q};
129
- padding-inline: calc(${ge} + ${V});
125
+ font-size: ${A};
126
+ line-height: ${R};
127
+ padding-inline: calc(${ve} + ${L});
130
128
  }
131
129
  :host([size='extra-large']) ::slotted(svg) {
132
130
  font-size: 20px;
133
131
  }
134
- `,sa=u.partial`
132
+ `,sa=p.partial`
135
133
  :host([color='danger']) {
136
- background-color: ${Cn};
137
- color: ${Ue};
134
+ background-color: ${mn};
135
+ color: ${qe};
138
136
  }
139
137
 
140
138
  :host([color='important']) {
@@ -143,13 +141,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
143
141
  }
144
142
 
145
143
  :host([color='informative']) {
146
- background-color: ${Yl};
147
- color: ${Z};
144
+ background-color: ${Rl};
145
+ color: ${Y};
148
146
  }
149
147
 
150
148
  :host([color='severe']) {
151
- background-color: ${Bn};
152
- color: ${Ue};
149
+ background-color: ${wn};
150
+ color: ${qe};
153
151
  }
154
152
 
155
153
  :host([color='subtle']) {
@@ -158,22 +156,22 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
158
156
  }
159
157
 
160
158
  :host([color='success']) {
161
- background-color: ${zn};
162
- color: ${Ue};
159
+ background-color: ${xn};
160
+ color: ${qe};
163
161
  }
164
162
 
165
163
  :host([color='warning']) {
166
- background-color: ${gc};
167
- color: ${Xl};
164
+ background-color: ${ac};
165
+ color: ${Vl};
168
166
  }
169
- `,na=u.partial`
167
+ `,na=p.partial`
170
168
  :host([appearance='ghost']) {
171
- color: ${lr};
169
+ color: ${Qo};
172
170
  background-color: initial;
173
171
  }
174
172
 
175
173
  :host([appearance='ghost'][color='danger']) {
176
- color: ${In};
174
+ color: ${$n};
177
175
  }
178
176
 
179
177
  :host([appearance='ghost'][color='important']) {
@@ -181,206 +179,120 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
181
179
  }
182
180
 
183
181
  :host([appearance='ghost'][color='informative']) {
184
- color: ${Z};
182
+ color: ${Y};
185
183
  }
186
184
 
187
185
  :host([appearance='ghost'][color='severe']) {
188
- color: ${On};
186
+ color: ${Sn};
189
187
  }
190
188
 
191
189
  :host([appearance='ghost'][color='subtle']) {
192
- color: ${bt};
190
+ color: ${ut};
193
191
  }
194
192
 
195
193
  :host([appearance='ghost'][color='success']) {
196
- color: ${uc};
194
+ color: ${ic};
197
195
  }
198
196
 
199
197
  :host([appearance='ghost'][color='warning']) {
200
- color: ${vi};
198
+ color: ${hi};
201
199
  }
202
- `,_h=u.partial`
200
+ `,Th=p.partial`
203
201
  :host([appearance='outline']) {
204
202
  border-color: currentColor;
205
- color: ${lr};
203
+ color: ${Qo};
206
204
  background-color: initial;
207
205
  }
208
206
 
209
207
  :host([appearance='outline'][color='danger']) {
210
- color: ${In};
208
+ color: ${$n};
211
209
  }
212
210
 
213
211
  :host([appearance='outline'][color='important']) {
214
- color: ${Z};
215
- border-color: ${Me};
212
+ color: ${Y};
213
+ border-color: ${Ae};
216
214
  }
217
215
 
218
216
  :host([appearance='outline'][color='informative']) {
219
- color: ${Z};
220
- border-color: ${fo};
217
+ color: ${Y};
218
+ border-color: ${uo};
221
219
  }
222
220
 
223
221
  :host([appearance='outline'][color='severe']) {
224
- color: ${On};
222
+ color: ${Sn};
225
223
  }
226
224
 
227
225
  :host([appearance='outline'][color='subtle']) {
228
- color: ${cn};
226
+ color: ${tn};
229
227
  }
230
228
 
231
229
  :host([appearance='outline'][color='success']) {
232
- color: ${hc};
230
+ color: ${rc};
233
231
  }
234
232
 
235
233
  :host([appearance='outline'][color='warning']) {
236
- color: ${vi};
234
+ color: ${hi};
237
235
  }
238
- `,Bh=u.partial`
236
+ `,Bh=p.partial`
239
237
  :host([appearance='tint']) {
240
- background-color: ${$n};
241
- color: ${Ul};
242
- border-color: ${xn};
238
+ background-color: ${un};
239
+ color: ${Ll};
240
+ border-color: ${gn};
243
241
  }
244
242
 
245
243
  :host([appearance='tint'][color='danger']) {
246
- background-color: ${wn};
247
- color: ${mi};
248
- border-color: ${Sn};
244
+ background-color: ${bn};
245
+ color: ${di};
246
+ border-color: ${vn};
249
247
  }
250
248
 
251
249
  :host([appearance='tint'][color='important']) {
252
- background-color: ${Z};
250
+ background-color: ${Y};
253
251
  color: ${S};
254
- border-color: ${K};
252
+ border-color: ${U};
255
253
  }
256
254
 
257
255
  :host([appearance='tint'][color='informative']) {
258
- background-color: ${Kl};
259
- color: ${Z};
260
- border-color: ${fo};
256
+ background-color: ${Hl};
257
+ color: ${Y};
258
+ border-color: ${uo};
261
259
  }
262
260
 
263
261
  :host([appearance='tint'][color='severe']) {
264
- background-color: ${_n};
265
- color: ${pc};
266
- border-color: ${Tn};
262
+ background-color: ${kn};
263
+ color: ${sc};
264
+ border-color: ${Cn};
267
265
  }
268
266
 
269
267
  :host([appearance='tint'][color='subtle']) {
270
268
  background-color: ${S};
271
- color: ${Z};
272
- border-color: ${fo};
269
+ color: ${Y};
270
+ border-color: ${uo};
273
271
  }
274
272
 
275
273
  :host([appearance='tint'][color='success']) {
276
- background-color: ${Pn};
277
- color: ${dc};
278
- border-color: ${cc};
274
+ background-color: ${yn};
275
+ color: ${oc};
276
+ border-color: ${tc};
279
277
  }
280
278
 
281
279
  :host([appearance='tint'][color='warning']) {
282
- background-color: ${bc};
283
- color: ${vi};
284
- border-color: ${fc};
280
+ background-color: ${nc};
281
+ color: ${hi};
282
+ border-color: ${lc};
285
283
  }
286
- `,aa=u.partial`
287
- font-family: ${v};
288
- font-size: ${O};
289
- line-height: ${M};
290
- font-weight: ${A};
291
- `;u.partial`
292
- font-family: ${v};
293
- font-size: ${O};
294
- line-height: ${M};
295
- font-weight: ${L};
296
- `,u.partial`
297
- font-family: ${v};
298
- font-size: ${O};
299
- line-height: ${M};
300
- font-weight: ${fr};
301
- `;const Th=u.partial`
302
- font-family: ${v};
303
- font-size: ${pe};
304
- line-height: ${ke};
305
- font-weight: ${A};
306
- `,la=u.partial`
307
- font-family: ${v};
308
- font-size: ${F};
309
- line-height: ${q};
310
- font-weight: ${A};
311
- `;u.partial`
312
- font-family: ${v};
313
- font-size: ${F};
314
- line-height: ${q};
315
- font-weight: ${L};
316
- `,u.partial`
317
- font-family: ${v};
318
- font-size: ${F};
319
- line-height: ${q};
320
- font-weight: ${fr};
321
- `,u.partial`
322
- font-family: ${v};
323
- font-size: ${mo};
324
- line-height: ${mr};
325
- font-weight: ${A};
326
- `,u.partial`
327
- font-family: ${v};
328
- font-size: ${mo};
329
- line-height: ${mr};
330
- font-weight: ${L};
331
- `;const Oh=u.partial`
332
- font-family: ${v};
333
- font-size: ${Dt};
334
- line-height: ${vr};
335
- font-weight: ${L};
336
- `;u.partial`
337
- font-family: ${v};
338
- font-size: ${pe};
339
- line-height: ${ke};
340
- font-weight: ${L};
341
- `,u.partial`
342
- font-family: ${v};
343
- font-size: ${pe};
344
- line-height: ${ke};
345
- font-weight: ${fr};
346
- `,u.partial`
347
- font-family: ${v};
348
- font-size: ${Mn};
349
- line-height: ${jn};
350
- font-weight: ${L};
351
- `,u.partial`
352
- font-family: ${v};
353
- font-size: ${Fn};
354
- line-height: ${Hn};
355
- font-weight: ${L};
356
- `,u.partial`
357
- font-family: ${v};
358
- font-size: ${gr};
359
- line-height: ${Vn};
360
- font-weight: ${L};
361
- `,u.partial`
362
- font-family: ${v};
363
- font-size: ${Dn};
364
- line-height: ${Rn};
365
- font-weight: ${L};
366
- `,u.partial`
367
- font-family: ${v};
368
- font-size: ${Ln};
369
- line-height: ${qn};
370
- font-weight: ${L};
371
- `;const Ah=u`
372
- :host([shape='square']){border-radius:${br}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${Bh}
373
- ${_h}
284
+ `,Eh=p`
285
+ :host([shape='square']){border-radius:${rr}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Pe}}${Bh}
286
+ ${Th}
374
287
  ${na}
375
288
  ${sa}
376
289
  ${ia}
377
290
  ${ra}
378
- `.withBehaviors(X(u`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function ca(o={}){return g` ${Ge(o)}<slot>${de(o.defaultContent)}</slot>${pt(o)} `}const Eh=ca(),Nh=qt.compose({name:`${p.prefix}-badge`,template:Eh,styles:Ah});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,we=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fh(e,t,i),i};class le extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Ir.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===lo||e.key===er){this.click();return}return!0}press(){switch(this.type){case Ir.reset:{this.resetForm();break}case Ir.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Ir.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}le.formAssociated=!0,we([a({mode:"boolean"})],le.prototype,"autofocus",2),we([b],le.prototype,"defaultSlottedContent",2),we([a({mode:"boolean"})],le.prototype,"disabled",2),we([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),we([a({attribute:"formaction"})],le.prototype,"formAction",2),we([a({attribute:"form"})],le.prototype,"formAttribute",2),we([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),we([a({attribute:"formmethod"})],le.prototype,"formMethod",2),we([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),we([a({attribute:"formtarget"})],le.prototype,"formTarget",2),we([a],le.prototype,"name",2),we([a],le.prototype,"type",2),we([a],le.prototype,"value",2);var Dh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Br=(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&&Dh(e,t,i),i};class Xe extends le{constructor(){super(...arguments),this.iconOnly=!1}}Br([a],Xe.prototype,"appearance",2),Br([a],Xe.prototype,"shape",2),Br([a],Xe.prototype,"size",2),Br([a({attribute:"icon-only",mode:"boolean"})],Xe.prototype,"iconOnly",2),Je(Xe,Ze);function Oi(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ge(o)}<span class="content" part="content"><slot ${U("defaultSlottedContent")}></slot></span>${pt(o)}</template>`}const Vh=Oi(),Hh=Xe.compose({name:`${p.prefix}-button`,template:Vh,styles:zr});Hh.define(p.registry);var jh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,it=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jh(e,t,i),i};class Ce extends x{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Ce.formAssociated=!0,it([a({mode:"boolean"})],Ce.prototype,"autofocus",2),it([b],Ce.prototype,"disabled",2),it([a({attribute:"disabled",mode:"boolean"})],Ce.prototype,"disabledAttribute",2),it([a({attribute:"form"})],Ce.prototype,"formAttribute",2),it([a({attribute:"checked",mode:"boolean"})],Ce.prototype,"initialChecked",2),it([a({attribute:"value",mode:"fromView"})],Ce.prototype,"initialValue",2),it([a],Ce.prototype,"name",2),it([a({mode:"boolean"})],Ce.prototype,"required",2);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,Ai=(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 Tr extends Ce{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ai([b],Tr.prototype,"indeterminate",2),Ai([a],Tr.prototype,"shape",2),Ai([a],Tr.prototype,"size",2);const Gh=P("active"),Uh=P("bad-input"),y=P("checked"),Xh=P("custom-error"),Kh=P("description"),fe=P("disabled");P("error");const Yh=P("flip-block"),Qh=P("focus-visible");P("has-message");const wt=P("indeterminate"),Wt=P("multiple"),Zh=P("open"),Jh=P("pattern-mismatch"),eu=P("placeholder-shown"),D=P("pressed"),tu=P("range-overflow"),ou=P("range-underflow"),ru=P("required"),Ei=P("selected"),iu=P("step-mismatch"),Or=P("submenu"),su=P("too-long"),nu=P("too-short"),au=P("type-mismatch"),lu=P("user-invalid"),cu=P("valid"),du=P("value-missing"),hu=u`
291
+
292
+ @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function aa(o={}){return b` ${je(o)}<slot>${ae(o.defaultContent)}</slot>${ht(o)} `}const Nh=aa(),Ah=Ht.compose({name:zh,template:Nh,styles:Eh});Ah.define(u.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fh(e,t,i),i};class ne extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==fr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===fo||e.key===bo){this.click();return}return!0}press(){switch(this.type){case fr.reset:{this.resetForm();break}case fr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==fr.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}ne.formAssociated=!0,ye([a({mode:"boolean"})],ne.prototype,"autofocus",2),ye([g],ne.prototype,"defaultSlottedContent",2),ye([a({mode:"boolean"})],ne.prototype,"disabled",2),ye([a({attribute:"disabled-focusable",mode:"boolean"})],ne.prototype,"disabledFocusable",2),ye([a({attribute:"formaction"})],ne.prototype,"formAction",2),ye([a({attribute:"form"})],ne.prototype,"formAttribute",2),ye([a({attribute:"formenctype"})],ne.prototype,"formEnctype",2),ye([a({attribute:"formmethod"})],ne.prototype,"formMethod",2),ye([a({attribute:"formnovalidate",mode:"boolean"})],ne.prototype,"formNoValidate",2),ye([a({attribute:"formtarget"})],ne.prototype,"formTarget",2),ye([a],ne.prototype,"name",2),ye([a],ne.prototype,"type",2),ye([a],ne.prototype,"value",2);var Dh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,wr=(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&&Dh(e,t,i),i};class Ue extends ne{constructor(){super(...arguments),this.iconOnly=!1}}wr([a],Ue.prototype,"appearance",2),wr([a],Ue.prototype,"shape",2),wr([a],Ue.prototype,"size",2),wr([a({attribute:"icon-only",mode:"boolean"})],Ue.prototype,"iconOnly",2),Ye(Ue,Ke);function Ci(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${je(o)}<span class="content" part="content"><slot ${W("defaultSlottedContent")}></slot></span>${ht(o)}</template>`}const Vh=Ci(),Hh=Ue.compose({name:Rd,template:Vh,styles:xr});Hh.define(u.registry);const Rh=`${u.prefix}-checkbox`;var jh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,ot=(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&&jh(e,t,i),i};class ke extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}ke.formAssociated=!0,ot([a({mode:"boolean"})],ke.prototype,"autofocus",2),ot([g],ke.prototype,"disabled",2),ot([a({attribute:"disabled",mode:"boolean"})],ke.prototype,"disabledAttribute",2),ot([a({attribute:"form"})],ke.prototype,"formAttribute",2),ot([a({attribute:"checked",mode:"boolean"})],ke.prototype,"initialChecked",2),ot([a({attribute:"value",mode:"fromView"})],ke.prototype,"initialValue",2),ot([a],ke.prototype,"name",2),ot([a({mode:"boolean"})],ke.prototype,"required",2);var Wh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,Si=(o,e,t,r)=>{for(var i=r>1?void 0:r?Uh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wh(e,t,i),i};class Cr extends ke{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Si([g],Cr.prototype,"indeterminate",2),Si([a],Cr.prototype,"shape",2),Si([a],Cr.prototype,"size",2);const Gh=P("active"),Xh=P("bad-input"),x=P("checked"),Kh=P("custom-error"),Yh=P("description"),pe=P("disabled");P("error");const Qh=P("flip-block"),Zh=P("focus-visible");P("has-message");const xt=P("indeterminate"),Rt=P("multiple"),Jh=P("open"),eu=P("pattern-mismatch"),tu=P("placeholder-shown"),M=P("pressed"),ou=P("range-overflow"),ru=P("range-underflow"),iu=P("required"),Ii=P("selected"),su=P("step-mismatch"),Sr=P("submenu"),nu=P("too-long"),au=P("too-short"),lu=P("type-mismatch"),cu=P("user-invalid"),du=P("valid"),hu=P("value-missing"),uu=p`
380
293
  ${w("inline-flex")}
381
294
 
382
- :host{--size:16px;background-color:${S};border-radius:${ze};border:${I} solid ${Me};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ft}}:host(:active){border-color:${mt}}:host(${y}:hover){background-color:${Nt};border-color:${rc}}:host(${y}:active){background-color:${Ft};border-color:${kn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${be} solid ${K};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ue}}.indeterminate-indicator,.checked-indicator{color:${bt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${wt}){border-color:${vt}}:host(${y}),:host(${wt}) .indeterminate-indicator{background-color:${gt}}:host(${wt}) .indeterminate-indicator{border-radius:${ze};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${xe}}:host([disabled]),:host([disabled]${y}){background-color:${et};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${wt}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}`.withBehaviors(X(u`
383
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${wt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${wt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${wt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}`)),uu=g.partial(`
295
+ :host{--size:16px;background-color:${S};border-radius:${Pe};border:${I} solid ${Ae};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${gt}}:host(:active){border-color:${ft}}:host(${x}:hover){background-color:${Et};border-color:${Kl}}:host(${x}:active){background-color:${Nt};border-color:${fn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}.indeterminate-indicator,.checked-indicator{color:${ut};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${xt}){border-color:${Ze}}:host(${x}),:host(${xt}) .indeterminate-indicator{background-color:${pt}}:host(${xt}) .indeterminate-indicator{border-radius:${Pe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${de}}:host([disabled]),:host([disabled]${x}){background-color:${Qe};border-color:${be}}:host([disabled]){cursor:unset}:host([disabled]${xt}) .indeterminate-indicator{background-color:${be}}:host([disabled]${x}) .checked-indicator{color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${xt}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${xt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${xt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}}`,pu=b.partial(`
384
296
  <svg
385
297
  fill="currentColor"
386
298
  aria-hidden="true"
@@ -391,74 +303,154 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
391
303
  xmlns="http://www.w3.org/2000/svg">
392
304
  <path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
393
305
  </svg>
394
- `),pu=g.partial(`
306
+ `),gu=b.partial(`
395
307
  <span class="indeterminate-indicator"></span>
396
- `);function bu(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${de(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${de(o.indeterminateIndicator)}</slot></template>`}const gu=bu({checkedIndicator:uu,indeterminateIndicator:pu}),fu=Tr.compose({name:`${p.prefix}-checkbox`,template:gu,styles:hu});fu.define(p.registry);class mu extends Xe{}const vu=u`
397
- ${zr}
398
-
399
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${M}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Pe};line-height:100%;font-size:${F};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${At}}:host(:active) ::slotted([slot='description']){color:${Et}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ue}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
400
- ::slotted([slot='description']){color:${Pe}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${nr}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${ar}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
401
- ::slotted([slot='description']){color:${T}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ge}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ie}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${_e}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}`.withBehaviors(X(u`
402
- :host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
403
- ::slotted([slot='description']){color:HighlightText}`));function $u(o={}){return g`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ge(o)}<span class="content" part="content"><slot ${U("defaultSlottedContent")}></slot><slot name="description"></slot></span>${pt(o)}</template>`}const yu=$u(),xu=mu.compose({name:`${p.prefix}-compound-button`,template:yu,styles:vu});xu.define(p.registry);var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?wu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ku(e,t,i),i};class je extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}st([a],je.prototype,"appearance",2),st([a],je.prototype,"color",2),st([a],je.prototype,"shape",2),st([a],je.prototype,"size",2),st([a({converter:re})],je.prototype,"count",2),st([a({attribute:"overflow-count",converter:re})],je.prototype,"overflowCount",2),st([a({attribute:"show-zero",mode:"boolean"})],je.prototype,"showZero",2),st([a({mode:"boolean"})],je.prototype,"dot",2),Je(je,Ze);const Cu=u`
404
- :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${ia}
308
+ `);function fu(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ae(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ae(o.indeterminateIndicator)}</slot></template>`}const bu=fu({checkedIndicator:pu,indeterminateIndicator:gu}),mu=Cr.compose({name:Rh,template:bu,styles:uu});mu.define(u.registry);const vu=`${u.prefix}-compound-button`;class $u extends Ue{}const yu=p`
309
+ ${xr}
310
+
311
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${F}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${A};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Tt}}:host(:active) ::slotted([slot='description']){color:${Bt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${qe}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
312
+ ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${Ko}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Yo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
313
+ ::slotted([slot='description']){color:${O}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ve}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${oe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${ze}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
314
+ ::slotted([slot='description']){color:HighlightText}}`;function xu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${je(o)}<span class="content" part="content"><slot ${W("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ht(o)}</template>`}const ku=xu(),wu=$u.compose({name:vu,template:ku,styles:yu});wu.define(u.registry);const Cu=`${u.prefix}-counter-badge`;var Su=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,rt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Iu(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 Le extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}rt([a],Le.prototype,"appearance",2),rt([a],Le.prototype,"color",2),rt([a],Le.prototype,"shape",2),rt([a],Le.prototype,"size",2),rt([a({converter:te})],Le.prototype,"count",2),rt([a({attribute:"overflow-count",converter:te})],Le.prototype,"overflowCount",2),rt([a({attribute:"show-zero",mode:"boolean"})],Le.prototype,"showZero",2),rt([a({mode:"boolean"})],Le.prototype,"dot",2),Ye(Le,Ke);const Pu=p`
315
+ :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Pe}}${ia}
405
316
  ${sa}
406
317
  ${na}
407
318
  ${ra}
408
319
 
409
- :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Su(o={}){return ca({defaultContent:g`${e=>e.setCount()}`})}const Iu=Su(),Pu=je.compose({name:`${p.prefix}-counter-badge`,template:Iu,styles:Cu});Pu.define(p.registry);const Ct={modal:"modal",nonModal:"non-modal",alert:"alert"};function da(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var zu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,yo=(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&&zu(e,t,i),i};class Gt extends x{constructor(){super(...arguments),this.type=Ct.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}dialogChanged(){this.updateDialogAttributes()}typeChanged(e,t){this.updateDialogAttributes()}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===Ct.alert||this.type===Ct.modal?this.dialog.showModal():this.type===Ct.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Ct.alert&&e.target===this.dialog&&this.hide(),!0}updateDialogAttributes(){this.dialog&&(this.type===Ct.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this.type!==Ct.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}}yo([b],Gt.prototype,"dialog",2),yo([a({attribute:"aria-describedby"})],Gt.prototype,"ariaDescribedby",2),yo([a({attribute:"aria-labelledby"})],Gt.prototype,"ariaLabelledby",2),yo([a({attribute:"aria-label"})],Gt.prototype,"ariaLabel",2),yo([a],Gt.prototype,"type",2);const Bu=g`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${z("dialog")}><slot></slot></dialog>`,Tu=u`
410
- @layer base{:host{--dialog-backdrop:${bi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${Nn};border:none;box-shadow:${Wn};color:${_};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ii};transition-timing-function:${xt};opacity:0}::backdrop{transition-timing-function:${Pi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${yt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(X(u`
411
- @layer base{dialog{border:${I} solid ${K}}}`)),Ou=Gt.compose({name:`${p.prefix}-dialog`,template:Bu,styles:Tu});Ou.define(p.registry);class Au extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;da(t)&&t.hide()}return!0}}const Eu=g`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,Nu=u`
320
+ :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function zu(o={}){return aa({defaultContent:b`${e=>e.setCount()}`})}const _u=zu(),Ou=Le.compose({name:Cu,template:_u,styles:Pu});Ou.define(u.registry);const kt={modal:"modal",nonModal:"non-modal",alert:"alert"};function la(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Tu=`${u.prefix}-dialog`;var Bu=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,vo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Eu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bu(e,t,i),i};class jt extends k{constructor(){super(...arguments),this.type=kt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}dialogChanged(){this.updateDialogAttributes()}typeChanged(e,t){this.updateDialogAttributes()}show(){H.enqueue(()=>{this.emitBeforeToggle(),this.type===kt.alert||this.type===kt.modal?this.dialog.showModal():this.type===kt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==kt.alert&&e.target===this.dialog&&this.hide(),!0}updateDialogAttributes(){this.dialog&&(this.type===kt.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this.type!==kt.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}}vo([g],jt.prototype,"dialog",2),vo([a({attribute:"aria-describedby"})],jt.prototype,"ariaDescribedby",2),vo([a({attribute:"aria-labelledby"})],jt.prototype,"ariaLabelledby",2),vo([a({attribute:"aria-label"})],jt.prototype,"ariaLabel",2),vo([a],jt.prototype,"type",2);const Nu=b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${z("dialog")}><slot></slot></dialog>`,Au=p`
321
+ @layer base{:host{--dialog-backdrop:${ai};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${zn};border:none;box-shadow:${Dn};color:${_};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${$i};transition-timing-function:${$t};opacity:0}::backdrop{transition-timing-function:${yi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${vt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${U}}}}`,Fu=jt.compose({name:Tu,template:Nu,styles:Au});Fu.define(u.registry);const Mu=`${u.prefix}-dialog-body`;class Du extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;la(t)&&t.hide()}return!0}}const Lu=b`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,Vu=p`
412
322
  ${w("grid")}
413
323
 
414
- :host{background:${S};box-sizing:border-box;gap:${se};padding:${$t} ${ki};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${_};column-gap:8px;display:flex;font-family:${v};font-size:${Dt};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${vr};margin-block-end:calc(${se} * -1);margin-block-start:calc(${$t} * -1);padding-block-end:${se};padding-block-start:${$t}}.content{box-sizing:border-box;color:${_};font-family:${v};font-size:${O};font-weight:${A};line-height:${M};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${$t} * -1);padding-block-end:${$t};padding-block-start:${Ci}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Fu=Au.compose({name:`${p.prefix}-dialog-body`,template:Eu,styles:Nu});Fu.define(p.registry);const xo={separator:"separator",presentation:"presentation"},ha=$e;var Mu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,ua=(o,e,t,r)=>{for(var i=r>1?void 0:r?Du(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&&Mu(e,t,i),i};class Ni extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??xo.separator,this.role!==xo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ha.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??xo.separator}`),t===xo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==xo.presentation?t??null:null,kt(this.elementInternals,e,t,ha)}}ua([a],Ni.prototype,"role",2),ua([a],Ni.prototype,"orientation",2);var Lu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Fi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vu(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 Ar extends Ni{}Fi([a({attribute:"align-content"})],Ar.prototype,"alignContent",2),Fi([a],Ar.prototype,"appearance",2),Fi([a({mode:"boolean"})],Ar.prototype,"inset",2);function Hu(){return g`<slot></slot>`}const ju=Hu(),Ru=u`
324
+ :host{background:${S};box-sizing:border-box;gap:${ie};padding:${mt} ${fi};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${_};column-gap:8px;display:flex;font-family:${v};font-size:${At};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${ar};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${mt} * -1);padding-block-end:${ie};padding-block-start:${mt}}.content{box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};line-height:${F};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${mt} * -1);padding-block-end:${mt};padding-block-start:${mi}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Hu=Du.compose({name:Mu,template:Lu,styles:Vu});Hu.define(u.registry);const $o={separator:"separator",presentation:"presentation"},ca=$e,Ru=`${u.prefix}-divider`;var ju=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,da=(o,e,t,r)=>{for(var i=r>1?void 0:r?qu(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 Pi extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??$o.separator,this.role!==$o.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ca.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??$o.separator}`),t===$o.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==$o.presentation?t??null:null,yt(this.elementInternals,e,t,ca)}}da([a],Pi.prototype,"role",2),da([a],Pi.prototype,"orientation",2);var Wu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,zi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Uu(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 Ir extends Pi{}zi([a({attribute:"align-content"})],Ir.prototype,"alignContent",2),zi([a],Ir.prototype,"appearance",2),zi([a({mode:"boolean"})],Ir.prototype,"inset",2);function Gu(){return b`<slot></slot>`}const Xu=Gu(),Ku=p`
415
325
  ${w("flex")}
416
326
 
417
- :host{contain:content}:host::after,:host::before{align-self:center;background:${fo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Pe};font-family:${v};font-size:${F};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']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${De}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${yn}}:host([appearance='brand']) ::slotted(*){color:${lr}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${tc}}:host([appearance='subtle']) ::slotted(*){color:${Z}}`.withBehaviors(X(u`
418
- :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}`)),qu=Ar.compose({name:`${p.prefix}-divider`,template:ju,styles:Ru});qu.define(p.registry);const Wu={start:"start",end:"end"},Gu={small:"small",medium:"medium",large:"large",full:"full"},ko={nonModal:"non-modal",modal:"modal",inline:"inline"};var Uu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Ut=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Uu(e,t,i),i};class St extends x{constructor(){super(...arguments),this.type=ko.modal,this.position=Wu.start,this.size=Gu.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===ko.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===ko.inline||this.type===ko.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){this.dialog&&(this.dialog.role=this.type===ko.modal?"dialog":this.role)}}Ut([a],St.prototype,"type",2),Ut([a({attribute:"aria-labelledby"})],St.prototype,"ariaLabelledby",2),Ut([a({attribute:"aria-describedby"})],St.prototype,"ariaDescribedby",2),Ut([a],St.prototype,"position",2),Ut([a({attribute:"size"})],St.prototype,"size",2),Ut([b],St.prototype,"dialog",2);const Ku=u`
327
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${uo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${A};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Fe}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${pn}}:host([appearance='brand']) ::slotted(*){color:${Qo}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Gl}}:host([appearance='subtle']) ::slotted(*){color:${Y}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Yu=Ir.compose({name:Ru,template:Xu,styles:Ku});Yu.define(u.registry);const Qu={start:"start",end:"end"},Zu={small:"small",medium:"medium",large:"large",full:"full"},yo={nonModal:"non-modal",modal:"modal",inline:"inline"},Ju=`${u.prefix}-drawer`;var ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,qt=(o,e,t,r)=>{for(var i=r>1?void 0:r?tp(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&&ep(e,t,i),i};class wt extends k{constructor(){super(...arguments),this.type=yo.modal,this.position=Qu.start,this.size=Zu.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===yo.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){H.enqueue(()=>{this.emitBeforeToggle(),this.type===yo.inline||this.type===yo.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){this.dialog&&(this.dialog.role=this.type===yo.modal?"dialog":this.role)}}qt([a],wt.prototype,"type",2),qt([a({attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),qt([a({attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),qt([a],wt.prototype,"position",2),qt([a({attribute:"size"})],wt.prototype,"size",2),qt([g],wt.prototype,"dialog",2);const op=p`
419
328
  ${w("block")}
420
329
 
421
- :host{--dialog-backdrop:${bi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${O};line-height:${M};font-family:${v};font-weight:${A};color:${_};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Wn};border:${I} solid ${K};background:${S}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Ii};transition-timing-function:${xt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${yt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${yt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ii};transition-timing-function:${xt};background:var(--dialog-backdrop,${bi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Pi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Yu(){return g`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${z("dialog")}><slot></slot></dialog>`}const Qu=Yu(),Zu=St.compose({name:`${p.prefix}-drawer`,template:Qu,styles:Ku});Zu.define(p.registry);class Ju extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;da(t,"-drawer")&&t.hide()}return!0}}const ep=u`
330
+ :host{--dialog-backdrop:${ai}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${B};line-height:${F};font-family:${v};font-weight:${E};color:${_};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${U};border-inline-start-color:var(--drawer-separator,${U});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Dn};border:${I} solid ${U};background:${S}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${$i};transition-timing-function:${$t}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${vt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${vt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${$i};transition-timing-function:${$t};background:var(--dialog-backdrop,${ai});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${yi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function rp(){return b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${z("dialog")}><slot></slot></dialog>`}const ip=rp(),sp=wt.compose({name:Ju,template:ip,styles:op});sp.define(u.registry);const np=`${u.prefix}-drawer-body`;class ap extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;la(t,"-drawer")&&t.hide()}return!0}}const ha=p.partial`
331
+ font-family: ${v};
332
+ font-size: ${B};
333
+ line-height: ${F};
334
+ font-weight: ${E};
335
+ `;p.partial`
336
+ font-family: ${v};
337
+ font-size: ${B};
338
+ line-height: ${F};
339
+ font-weight: ${D};
340
+ `,p.partial`
341
+ font-family: ${v};
342
+ font-size: ${B};
343
+ line-height: ${F};
344
+ font-weight: ${sr};
345
+ `;const lp=p.partial`
346
+ font-family: ${v};
347
+ font-size: ${he};
348
+ line-height: ${me};
349
+ font-weight: ${E};
350
+ `,ua=p.partial`
351
+ font-family: ${v};
352
+ font-size: ${A};
353
+ line-height: ${R};
354
+ font-weight: ${E};
355
+ `;p.partial`
356
+ font-family: ${v};
357
+ font-size: ${A};
358
+ line-height: ${R};
359
+ font-weight: ${D};
360
+ `,p.partial`
361
+ font-family: ${v};
362
+ font-size: ${A};
363
+ line-height: ${R};
364
+ font-weight: ${sr};
365
+ `,p.partial`
366
+ font-family: ${v};
367
+ font-size: ${po};
368
+ line-height: ${nr};
369
+ font-weight: ${E};
370
+ `,p.partial`
371
+ font-family: ${v};
372
+ font-size: ${po};
373
+ line-height: ${nr};
374
+ font-weight: ${D};
375
+ `;const cp=p.partial`
376
+ font-family: ${v};
377
+ font-size: ${At};
378
+ line-height: ${ar};
379
+ font-weight: ${D};
380
+ `;p.partial`
381
+ font-family: ${v};
382
+ font-size: ${he};
383
+ line-height: ${me};
384
+ font-weight: ${D};
385
+ `,p.partial`
386
+ font-family: ${v};
387
+ font-size: ${he};
388
+ line-height: ${me};
389
+ font-weight: ${sr};
390
+ `,p.partial`
391
+ font-family: ${v};
392
+ font-size: ${On};
393
+ line-height: ${An};
394
+ font-weight: ${D};
395
+ `,p.partial`
396
+ font-family: ${v};
397
+ font-size: ${_n};
398
+ line-height: ${Nn};
399
+ font-weight: ${D};
400
+ `,p.partial`
401
+ font-family: ${v};
402
+ font-size: ${ir};
403
+ line-height: ${En};
404
+ font-weight: ${D};
405
+ `,p.partial`
406
+ font-family: ${v};
407
+ font-size: ${Tn};
408
+ line-height: ${Fn};
409
+ font-weight: ${D};
410
+ `,p.partial`
411
+ font-family: ${v};
412
+ font-size: ${Bn};
413
+ line-height: ${Mn};
414
+ font-weight: ${D};
415
+ `;const dp=p`
422
416
  ${w("grid")}
423
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Pd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Oh}}.footer{display:flex;justify-content:flex-start;gap:${ae}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function tp(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const op=tp(),rp=Ju.compose({name:`${p.prefix}-drawer-body`,template:op,styles:ep});rp.define(p.registry);function pa(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Er(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function ba(o){return o.closest("[lang]")?.lang??"en"}let ip=0;function Xt(o="id-"){const e=`${o}${ip++}`;return document.getElementById(e)?Xt(o):e}const sp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Mi={combobox:"combobox",dropdown:"dropdown",select:"select"},np=g`<svg class="chevron-down-20-regular" aria-hidden="true" slot="indicator" viewBox="0 0 20 20" ${z("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,ap=g`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${z("control")} />`,lp=g`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${z("control")}>${o=>o.displayValue}</button>`;function cp(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${z("controlSlot")}></slot><slot name="indicator" ${z("indicatorSlot")}>${de(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const dp=cp({indicator:np});var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var i=r>1?void 0:r?up(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&hp(e,t,i),i};const H=class ro extends x{constructor(){super(),this.activeIndex=0,this.id=Xt("dropdown-"),this.required=!1,this.type=Mi.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||or(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Xt("input-"))}disabledChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ba(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),Vt(t,()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()},{idleCallback:!0}),rr){const i=Xt("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,rr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Mi.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Er(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ba(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Mi.combobox){ap.render(this,this);return}lp.render(this,this),this._insertingControl=!1}}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Er(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Vt(this,()=>{const r=t.assignedElements().find(i=>pa(i));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.insertControl()})}disconnectedCallback(){ro.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(ro.AnchorPositionFallbackObserver||(ro.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:s})=>{if(pa(s)){if(r.bottom>window.innerHeight){$(s.elementInternals,"flip-block",!0);return}r.top<0&&$(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,ro.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}ro.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};H.formAssociated=!0,Y([ds],H.prototype,"activeDescendant",1),Y([b],H.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],H.prototype,"ariaLabelledBy",2),Y([b],H.prototype,"control",2),Y([a({mode:"boolean"})],H.prototype,"disabled",2),Y([ds],H.prototype,"displayValue",1),Y([a({attribute:"id"})],H.prototype,"id",2),Y([b],H.prototype,"indicator",2),Y([b],H.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],H.prototype,"initialValue",2),Y([b],H.prototype,"listbox",2),Y([a({mode:"boolean"})],H.prototype,"multiple",2),Y([a],H.prototype,"name",2),Y([b],H.prototype,"open",2),Y([a],H.prototype,"placeholder",2),Y([a({mode:"boolean"})],H.prototype,"required",2),Y([a],H.prototype,"type",2),Y([a({attribute:"value"})],H.prototype,"valueAttribute",2);let pp=H;var bp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?gp(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 Di extends pp{constructor(){super(...arguments),this.appearance=sp.outline}}ga([a],Di.prototype,"appearance",2),ga([a],Di.prototype,"size",2);const fp=u`
417
+ :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${$d};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${cp}}.footer{display:flex;justify-content:flex-start;gap:${re}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function hp(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const up=hp(),pp=ap.compose({name:np,template:up,styles:dp});pp.define(u.registry);const gp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},_i={combobox:"combobox",dropdown:"dropdown",select:"select"},fp=`${u.prefix}-dropdown`;function pa(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bp=`${u.prefix}-listbox`;function Pr(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const mp=`${u.prefix}-option`,ga=o=>o.closest("[dir]")?.dir==="rtl"?Me.rtl:Me.ltr;function fa(o){return o.closest("[lang]")?.lang??"en"}let vp=0;function Wt(o="id-"){const e=`${o}${vp++}`;return document.getElementById(e)?Wt(o):e}const $p=b`<svg class="chevron-down-20-regular" aria-hidden="true" slot="indicator" viewBox="0 0 20 20" ${z("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,yp=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${z("control")} />`,xp=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${z("control")}>${o=>o.displayValue}</button>`;function kp(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${z("controlSlot")}></slot><slot name="indicator" ${z("indicatorSlot")}>${ae(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const wp=kp({indicator:$p});var Cp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,G=(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};const V=class eo extends k{constructor(){super(),this.activeIndex=0,this.id=Wt("dropdown-"),this.required=!1,this.type=_i.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||ga(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Wt("input-"))}disabledChanged(e,t){this.listbox&&H.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(fa(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),Mt(t,()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()},{idleCallback:!0}),br){const i=Wt("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&H.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,br||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===_i.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Pr(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(fa(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===_i.combobox){yp.render(this,this);return}xp.render(this,this),this._insertingControl=!1}}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Pr(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Mt(this,()=>{const r=t.assignedElements().find(i=>pa(i));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),H.enqueue(()=>{this.insertControl()})}disconnectedCallback(){eo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(eo.AnchorPositionFallbackObserver||(eo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:s})=>{if(pa(s)){if(r.bottom>window.innerHeight){$(s.elementInternals,"flip-block",!0);return}r.top<0&&$(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,eo.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}eo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};V.formAssociated=!0,G([ns],V.prototype,"activeDescendant",1),G([g],V.prototype,"activeIndex",2),G([a({attribute:"aria-labelledby",mode:"fromView"})],V.prototype,"ariaLabelledBy",2),G([g],V.prototype,"control",2),G([a({mode:"boolean"})],V.prototype,"disabled",2),G([ns],V.prototype,"displayValue",1),G([a({attribute:"id"})],V.prototype,"id",2),G([g],V.prototype,"indicator",2),G([g],V.prototype,"indicatorSlot",2),G([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),G([g],V.prototype,"listbox",2),G([a({mode:"boolean"})],V.prototype,"multiple",2),G([a],V.prototype,"name",2),G([g],V.prototype,"open",2),G([a],V.prototype,"placeholder",2),G([a({mode:"boolean"})],V.prototype,"required",2),G([a],V.prototype,"type",2),G([a({attribute:"value"})],V.prototype,"valueAttribute",2);let Ip=V;var Pp=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?zp(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 Oi extends Ip{constructor(){super(...arguments),this.appearance=gp.outline}}ba([a],Oi.prototype,"appearance",2),ba([a],Oi.prototype,"size",2);const _p=p`
424
418
  ${w("inline-flex")}
425
419
 
426
- :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${eu}){color:${ui}}.control{appearance:none;background-color:${S};border-radius:${C};border:${I} solid ${K};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${V};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${vo} ${Ve};position:relative;text-align:start;width:100%;z-index:1;${aa}}:host([size='small']) .control{column-gap:${V};padding:${Lt} ${ge};${la}}:host([size='large']) .control{column-gap:${_e};padding:${se} ${ae};${Th}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${vt};height:${be};scale:0 1;transition:scale ${Si} ${xt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${pr};outline:${be} solid ${ue}}:host(:where(${Zh},:focus-within)) .control::after{scale:1 1;transition-duration:${wr};transition-timing-function:${yt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Me}}:host([appearance='transparent']) .control{--control-border-color:${gi};background-color:${he};border-radius:${br}}:host([appearance='outline']) .control{--control-border-color:${De}}:host([appearance='outline']) .control:hover{--control-border-color:${Mt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${ft}}:host([appearance='outline']) .control:hover::after{background-color:${Nt}}:host([appearance='outline']) .control:active{--control-border-color:${go}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${mt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ft}}:host([appearance='filled-darker']) .control{background-color:${uo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${ye};background-color:${et};color:${T}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${M} + (${vo} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${q} + (${Lt} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${ke} + (${se} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){color:GrayText}`,mp=Di.compose({name:`${p.prefix}-dropdown`,template:dp,styles:fp});mp.define(p.registry);const vp={above:"above",after:"after",before:"before"},Se={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var $p=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,Nr=(o,e,t,r)=>{for(var i=r>1?void 0:r?yp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&$p(e,t,i),i};class wo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||tr("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Se))$(this.elementInternals,t,this.input.validity[e])}}Nr([b],wo.prototype,"labelSlot",2),Nr([b],wo.prototype,"messageSlot",2),Nr([b],wo.prototype,"slottedInputs",2),Nr([b],wo.prototype,"input",2);var xp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,wp=(o,e,t,r)=>{for(var i=r>1?void 0:r?kp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xp(e,t,i),i};class fa extends wo{constructor(){super(...arguments),this.labelPosition=vp.above}}wp([a({attribute:"label-position"})],fa.prototype,"labelPosition",2);const Cp=u`
420
+ :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${tu}){color:${si}}.control{appearance:none;background-color:${S};border-radius:${C};border:${I} solid ${U};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${L};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${go} ${We};position:relative;text-align:start;width:100%;z-index:1;${ha}}:host([size='small']) .control{column-gap:${L};padding:${Ft} ${ve};${ua}}:host([size='large']) .control{column-gap:${ze};padding:${ie} ${re};${lp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Y};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${Ze};height:${ue};scale:0 1;transition:scale ${vi} ${$t}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${or};outline:${ue} solid ${ce}}:host(:where(${Jh},:focus-within)) .control::after{scale:1 1;transition-duration:${ur};transition-timing-function:${vt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Ae}}:host([appearance='transparent']) .control{--control-border-color:${li};background-color:${le};border-radius:${rr}}:host([appearance='outline']) .control{--control-border-color:${Fe}}:host([appearance='outline']) .control:hover{--control-border-color:${bt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${gt}}:host([appearance='outline']) .control:hover::after{background-color:${Et}}:host([appearance='outline']) .control:active{--control-border-color:${ho}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${ft}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Nt}}:host([appearance='filled-darker']) .control{background-color:${ao}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${U}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${be};background-color:${Qe};color:${O}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${F} + (${go} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${R} + (${Ft} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${me} + (${ie} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){color:GrayText}`,Op=Oi.compose({name:fp,template:wp,styles:_p});Op.define(u.registry);const Tp={above:"above",after:"after",before:"before"},we={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},Bp=`${u.prefix}-field`;var Ep=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Np(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&&Ep(e,t,i),i};class xo extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||$r("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(we))$(this.elementInternals,t,this.input.validity[e])}}zr([g],xo.prototype,"labelSlot",2),zr([g],xo.prototype,"messageSlot",2),zr([g],xo.prototype,"slottedInputs",2),zr([g],xo.prototype,"input",2);var Ap=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Mp=(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&&Ap(e,t,i),i};class ma extends xo{constructor(){super(...arguments),this.labelPosition=Tp.above}}Mp([a({attribute:"label-position"})],ma.prototype,"labelPosition",2);const Dp=p`
427
421
  ${w("inline-grid")}
428
422
 
429
- :host{color:${_};align-items:center;gap:0 ${ae};justify-items:start}:has([slot='message']){color:${_};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ae}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${yr}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${zd}}:host(${ru}) ::slotted([slot='label'])::after{content:'*' / '';color:${mi};margin-inline-start:${ie}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${F};font-weight:${A};grid-area:message;line-height:${q};margin-block-start:${yr}}:host(${Qh}:focus-within){border-radius:${C};outline:${be} solid ${ue}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${O};font-weight:${A};grid-area:label;line-height:${M};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${F};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${fe}){cursor:default}::slotted([flag]){display:none}:host(${Uh}) ::slotted([flag='${Se.badInput}']),:host(${Xh}) ::slotted([flag='${Se.customError}']),:host(${Jh}) ::slotted([flag='${Se.patternMismatch}']),:host(${tu}) ::slotted([flag='${Se.rangeOverflow}']),:host(${ou}) ::slotted([flag='${Se.rangeUnderflow}']),:host(${iu}) ::slotted([flag='${Se.stepMismatch}']),:host(${su}) ::slotted([flag='${Se.tooLong}']),:host(${nu}) ::slotted([flag='${Se.tooShort}']),:host(${au}) ::slotted([flag='${Se.typeMismatch}']),:host(${du}) ::slotted([flag='${Se.valueMissing}']),:host(${cu}) ::slotted([flag='${Se.valid}']){display:block}`,Sp=g`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}"><slot name="label" part="label" ${U("labelSlot")}></slot><slot name="input" part="input" ${U("slottedInputs")}></slot><slot name="message" part="message" ${U({property:"messageSlot",filter:no("[flag]")})}></slot></template>`,Ip=fa.compose({name:`${p.prefix}-field`,template:Sp,styles:Cp,shadowOptions:{delegatesFocus:!0}});Ip.define(p.registry);var Pp=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,Co=(o,e,t,r)=>{for(var i=r>1?void 0:r?zp(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 Kt extends x{}Co([a({mode:"boolean"})],Kt.prototype,"block",2),Co([a({mode:"boolean"})],Kt.prototype,"bordered",2),Co([a({mode:"boolean"})],Kt.prototype,"shadow",2),Co([a],Kt.prototype,"fit",2),Co([a],Kt.prototype,"shape",2);const _p=g`<slot></slot>`,Bp=u`
430
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${fo}}: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:${$r}}:host([shape='circular']) ::slotted(img){border-radius:${xe}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Tp=Kt.compose({name:`${p.prefix}-image`,template:_p,styles:Bp});Tp.define(p.registry);var Op=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,Fr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ap(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&&Op(e,t,i),i};class So extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Fr([a],So.prototype,"size",2),Fr([a],So.prototype,"weight",2),Fr([a({mode:"boolean"})],So.prototype,"disabled",2),Fr([a({mode:"boolean"})],So.prototype,"required",2);const Ep=u`
423
+ :host{color:${_};align-items:center;gap:0 ${re};justify-items:start}:has([slot='message']){color:${_};row-gap:${ie}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${re}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${cr}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${yd}}:host(${iu}) ::slotted([slot='label'])::after{content:'*' / '';color:${di};margin-inline-start:${oe}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Y};font-family:${v};font-size:${A};font-weight:${E};grid-area:message;line-height:${R};margin-block-start:${cr}}:host(${Zh}:focus-within){border-radius:${C};outline:${ue} solid ${ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${E};grid-area:label;line-height:${F};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${A};line-height:${R}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${pe}){cursor:default}::slotted([flag]){display:none}:host(${Xh}) ::slotted([flag='${we.badInput}']),:host(${Kh}) ::slotted([flag='${we.customError}']),:host(${eu}) ::slotted([flag='${we.patternMismatch}']),:host(${ou}) ::slotted([flag='${we.rangeOverflow}']),:host(${ru}) ::slotted([flag='${we.rangeUnderflow}']),:host(${su}) ::slotted([flag='${we.stepMismatch}']),:host(${nu}) ::slotted([flag='${we.tooLong}']),:host(${au}) ::slotted([flag='${we.tooShort}']),:host(${lu}) ::slotted([flag='${we.typeMismatch}']),:host(${hu}) ::slotted([flag='${we.valueMissing}']),:host(${du}) ::slotted([flag='${we.valid}']){display:block}`,Lp=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}"><slot name="label" part="label" ${W("labelSlot")}></slot><slot name="input" part="input" ${W("slottedInputs")}></slot><slot name="message" part="message" ${W({property:"messageSlot",filter:ro("[flag]")})}></slot></template>`,Vp=ma.compose({name:Bp,template:Lp,styles:Dp,shadowOptions:{delegatesFocus:!0}});Vp.define(u.registry);const Hp=`${u.prefix}-image`;var Rp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,ko=(o,e,t,r)=>{for(var i=r>1?void 0:r?jp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Rp(e,t,i),i};class Ut extends k{}ko([a({mode:"boolean"})],Ut.prototype,"block",2),ko([a({mode:"boolean"})],Ut.prototype,"bordered",2),ko([a({mode:"boolean"})],Ut.prototype,"shadow",2),ko([a],Ut.prototype,"fit",2),ko([a],Ut.prototype,"shape",2);const qp=b`<slot></slot>`,Wp=p`
424
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${uo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${lr}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Up=Ut.compose({name:Hp,template:qp,styles:Wp});Up.define(u.registry);const Gp=`${u.prefix}-label`;var Xp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,_r=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Xp(e,t,i),i};class wo extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}_r([a],wo.prototype,"size",2),_r([a],wo.prototype,"weight",2),_r([a({mode:"boolean"})],wo.prototype,"disabled",2),_r([a({mode:"boolean"})],wo.prototype,"required",2);const Yp=p`
431
425
  ${w("inline-flex")}
432
426
 
433
- :host{color:${_};cursor:pointer;font-family:${v};font-size:${O};font-weight:${A};line-height:${M};user-select:none}.asterisk{color:${mi};margin-inline-start:${ie}}:host([size='small']){font-size:${F};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${ke}}:host(:is([size='large'],[weight='semibold'])){font-weight:${L}}:host([disabled]),:host([disabled]) .asterisk{color:${T}}`;function Np(){return g`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Fp=Np(),Mp=So.compose({name:`${p.prefix}-label`,template:Fp,styles:Ep});Mp.define(p.registry);var Dp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,ma=(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&&Dp(e,t,i),i};class Li extends He{constructor(){super(...arguments),this.inline=!1}}ma([a],Li.prototype,"appearance",2),ma([a({mode:"boolean"})],Li.prototype,"inline",2);const Vp=u`
427
+ :host{color:${_};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};line-height:${F};user-select:none}.asterisk{color:${di};margin-inline-start:${oe}}:host([size='small']){font-size:${A};line-height:${R}}:host([size='large']){font-size:${he};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${O}}`;function Qp(){return b`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Zp=Qp(),Jp=wo.compose({name:Gp,template:Zp,styles:Yp});Jp.define(u.registry);const eg=`${u.prefix}-link`;var tg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,va=(o,e,t,r)=>{for(var i=r>1?void 0:r?og(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&tg(e,t,i),i};class Ti extends De{constructor(){super(...arguments),this.inline=!1}}va([a],Ti.prototype,"appearance",2),va([a({mode:"boolean"})],Ti.prototype,"inline",2);const rg=p`
434
428
  ${w("inline")}
435
429
 
436
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Ml};cursor:pointer;font-family:${v};font-size:${O};font-weight:${A};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Dl}}:host(:active){color:${Ll}}:host([appearance='subtle']:hover){color:${Hl}}:host([appearance='subtle']:active){color:${jl}}}:host([appearance='subtle']){color:${Vl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
437
- :host{color:LinkText}`));function Hp(){return g`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const jp=Hp(),Rp=Li.compose({name:`${p.prefix}-link`,template:jp,styles:Vp});Rp.define(p.registry);var qp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qp(e,t,i),i};class Yt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),N.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Er(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Vt(this,()=>{this.id=this.id||Xt("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const s=i===e;r.selected=s,s&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Vt(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Er(r));this.options=t}})}}Io([b],Yt.prototype,"defaultSlot",2),Io([b],Yt.prototype,"multiple",2),Io([b],Yt.prototype,"options",2),Io([b],Yt.prototype,"selectedIndex",2),Io([b],Yt.prototype,"dropdown",2);const Gp=u`
430
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${_l};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Ol}}:host(:active){color:${Tl}}:host([appearance='subtle']:hover){color:${El}}:host([appearance='subtle']:active){color:${Nl}}}:host([appearance='subtle']){color:${Bl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function ig(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const sg=ig(),ng=Ti.compose({name:eg,template:sg,styles:rg});ng.define(u.registry);var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Co=(o,e,t,r)=>{for(var i=r>1?void 0:r?lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ag(e,t,i),i};class Gt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),H.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Pr(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Mt(this,()=>{this.id=this.id||Wt("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const s=i===e;r.selected=s,s&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Mt(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Pr(r));this.options=t}})}}Co([g],Gt.prototype,"defaultSlot",2),Co([g],Gt.prototype,"multiple",2),Co([g],Gt.prototype,"options",2),Co([g],Gt.prototype,"selectedIndex",2),Co([g],Gt.prototype,"dropdown",2);const cg=p`
438
431
  ${w("inline-flex")}
439
432
 
440
- :host{background-color:${S};border-radius:${C};border:${I} solid ${K};box-shadow:${yi};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ie};row-gap:${V};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Yh}){margin-block-start:revert;translate:0 -100%}}`;function Up(){return g`<template @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${z("defaultSlot")} @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Xp=Up(),Kp=Yt.compose({name:`${p.prefix}-listbox`,template:Xp,styles:Gp});Kp.define(p.registry);class Yp extends Xe{}const Qp=Oi({end:g.partial(`
433
+ :host{background-color:${S};border-radius:${C};border:${I} solid ${U};box-shadow:${pi};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${oe};row-gap:${L};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Qh}){margin-block-start:revert;translate:0 -100%}}`;function dg(){return b`<template @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${z("defaultSlot")} @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const hg=dg(),ug=Gt.compose({name:bp,template:hg,styles:cg});ug.define(u.registry);const pg=`${u.prefix}-menu-button`;class gg extends Ue{}const fg=Ci({end:b.partial(`
441
434
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
442
435
  <path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
443
436
  </svg>
444
- `)}),Zp=Yp.compose({name:`${p.prefix}-menu-button`,template:Qp,styles:zr});Zp.define(p.registry);const J={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};J.menuitem+"",J.menuitemcheckbox+"",J.menuitemradio+"";function Jp(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var eb=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,Qt=(o,e,t,r)=>{for(var i=r>1?void 0:r?tb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&eb(e,t,i),i};class Ke extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=J.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case lo:case er:return this.invoke(),!1;case Yo:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Ko:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case J.menuitemcheckbox:this.checked=!this.checked;break;case J.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case J.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??J.menuitem}checkedChanged(e,t){const r=this.role!==J.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??J.menuitem,this.elementInternals.ariaChecked=this.role!==J.menuitem?`${!!this.checked}`:null}}Qt([a({mode:"boolean"})],Ke.prototype,"disabled",2),Qt([a],Ke.prototype,"role",2),Qt([a({mode:"boolean"})],Ke.prototype,"checked",2),Qt([a({mode:"boolean"})],Ke.prototype,"hidden",2),Qt([b],Ke.prototype,"slottedSubmenu",2),Qt([b],Ke.prototype,"submenu",2),Je(Ke,Ze);const ob=u`
437
+ `)}),bg=gg.compose({name:pg,template:fg,styles:xr});bg.define(u.registry);const Q={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Q.menuitem+"",Q.menuitemcheckbox+"",Q.menuitemradio+"";function mg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vg=`${u.prefix}-menu-item`;var $g=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,Xt=(o,e,t,r)=>{for(var i=r>1?void 0:r?yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&$g(e,t,i),i};class Ge extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Q.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case fo:case bo:return this.invoke(),!1;case vr:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case mr:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Q.menuitemcheckbox:this.checked=!this.checked;break;case Q.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Q.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Q.menuitem}checkedChanged(e,t){const r=this.role!==Q.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Q.menuitem,this.elementInternals.ariaChecked=this.role!==Q.menuitem?`${!!this.checked}`:null}}Xt([a({mode:"boolean"})],Ge.prototype,"disabled",2),Xt([a],Ge.prototype,"role",2),Xt([a({mode:"boolean"})],Ge.prototype,"checked",2),Xt([a({mode:"boolean"})],Ge.prototype,"hidden",2),Xt([g],Ge.prototype,"slottedSubmenu",2),Xt([g],Ge.prototype,"submenu",2),Ye(Ge,Ke);const xg=p`
445
438
  ${w("grid")}
446
439
 
447
- :host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Pe};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${O} / ${M} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${cr};color:${At}}:host(:active){background-color:${dn};color:${Et}}:host(:active) ::slotted([slot='start']){color:${ql}}:host(${fe}){background-color:${et};color:${T}}:host(${fe}) ::slotted([slot='start']),:host(${fe}) ::slotted([slot='end']){color:${T}}:host(:focus-visible){border-radius:${C};outline:2px solid ${ue}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Or})) .submenu-glyph,:host(:not(${Or})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${A} ${F} / ${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Or}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Or}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(X(u`
448
- :host(${fe}),:host(${fe}) ::slotted([slot='start']),:host(${fe}) ::slotted([slot='end']){color:GrayText}`)),rb=g.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),ib=g.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function sb(o={}){return g`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${de(o.indicator)}</slot>${Ge(o)}<div part="content" class="content"><slot></slot></div>${pt(o)}<slot name="submenu-glyph">${de(o.submenuGlyph)}</slot><slot name="submenu" ${U({property:"slottedSubmenu"})}></slot></template>`}const nb=sb({indicator:rb,submenuGlyph:ib}),ab=Ke.compose({name:`${p.prefix}-menu-item`,template:nb,styles:ob});ab.define(p.registry);var lb=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,db=(o,e,t,r)=>{for(var i=r>1?void 0:r?cb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lb(e,t,i),i};const Vi=class rs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&di(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.role;if(c===J.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.role;if(c===J.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>Jp(e)||di(e)&&!!e.role&&e.role in rs.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case Xo:this.setFocus(this.focusIndex+1,1);return;case Qo:this.setFocus(this.focusIndex-1,-1);return;case Zo:this.setFocus(this.menuItems.length-1,-1);return;case Jo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==J.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),s=i?.reduce((n,c)=>{const h=rs.elementIndent(c);return Math.max(n,h)},0);i?.forEach(n=>{n.dataset.indent=`${s}`})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};Vi.focusableElementRoles=J,db([b],Vi.prototype,"items",2);let hb=Vi;class ub extends hb{}const pb=u`
440
+ :host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${B} / ${F} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Zo};color:${Tt}}:host(:active){background-color:${on};color:${Bt}}:host(:active) ::slotted([slot='start']){color:${Fl}}:host(${pe}){background-color:${Qe};color:${O}}:host(${pe}) ::slotted([slot='start']),:host(${pe}) ::slotted([slot='end']){color:${O}}:host(:focus-visible){border-radius:${C};outline:2px solid ${ce}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${Sr})) .submenu-glyph,:host(:not(${Sr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Y};font:${E} ${A} / ${R} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Sr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Sr}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${pe}),:host(${pe}) ::slotted([slot='start']),:host(${pe}) ::slotted([slot='end']){color:GrayText}}`,kg=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),wg=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Cg(o={}){return b`<template tabindex="0" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.handleToggle(t.event)}"><slot name="indicator">${ae(o.indicator)}</slot>${je(o)}<div part="content" class="content"><slot></slot></div>${ht(o)}<slot name="submenu-glyph">${ae(o.submenuGlyph)}</slot><slot name="submenu" ${W({property:"slottedSubmenu"})}></slot></template>`}const Sg=Cg({indicator:kg,submenuGlyph:wg}),Ig=Ge.compose({name:vg,template:Sg,styles:xg});Ig.define(u.registry);const Pg=`${u.prefix}-menu-list`;var So={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Bi={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function $a(o,e){return o.contains(e)}function zg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})}function _g(o,e,t){const r="forward",i="backward",s="block",n="inline";if(Og(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",f=d?s:n,y=d?n:s,X=d?c.endsWith("-rl")!==l:l,Se=d&&l,nt={ArrowUp:{axis:y,dir:Se?r:i},ArrowDown:{axis:y,dir:Se?i:r},ArrowLeft:{axis:f,dir:X?r:i},ArrowRight:{axis:f,dir:X?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!nt||t&&nt.axis&&nt.axis!==t?null:nt.dir}function Og(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Tg=globalThis.__FOCUSGROUP_POLYFILL__,Bg=Tg.o;function Ei(){for(const o of Bg)o.takeRecords()}var Or=class{#t;#e;#a=Bi.NONE;#p=void 0;#c=!1;#i=!0;#r;#o=null;#s=!1;#l=null;#g=new AbortController;#d;#h;constructor(o,e,t={}){if(zg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#f(t.definition),this.#d?.(this.#t,this.#a),this.#b();const r={signal:this.#g.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#x.bind(this),r)}disconnect(){this.#n(),this.#g.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#f(o.definition),this.#d?.(this.#t,this.#a)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(So.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#m(),this.#b()}}#f(o){this.#a=o?.behavior??Bi.NONE,this.#c=o?.wrap??!1,this.#p=o?.axis,this.#i=o?.memory??!0,this.#i||(this.#o=null)}#b(){if(this.#a===Bi.NONE){this.#m();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#a),e.setAttribute(So.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#n(),this.#u(o)),this.#e.flush?.()}#m(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(So.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(So.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;o.stopPropagation();let t;switch(_g(o,e,this.#p)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#s&&(!o.relatedTarget||!$a(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#n(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#s&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#x(o){if(!o.relatedTarget||!$a(this.#t,o.relatedTarget)){const t=this.#i?this.#o||this.#r:this.#r;t&&this.#u(t)}if(o.relatedTarget&&this.#t.contains(o.relatedTarget)||this.#i||!this.#r)return;if(!this.#i&&this.#r){const t=this.#o;this.#o=null;const r=this.#e.start??this.#e.first?.()??null;if(t!==this.#r||r!==this.#r){for(const{element:i,segmentBoundary:s}of this.#e.items())i.tabIndex=s?0:-1;r&&(r.tabIndex=0,this.#r=r),this.#e.flush?.()}}const e=this.#i?this.#o||this.#r:this.#r;e&&this.#u(e)}#u(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(So.AUTHOR_TABINDEX);this.#s||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#s=!0,Ei())}#n(){this.#s&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#s=!1,this.#l=null,this.#e.flush?.(),Ei())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Ei()}};class Tr{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Ag=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ng(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&&Eg(e,t,i),i};const Ni=class Ji extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&Gn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuChildren[s],c=n.role;if(c===Q.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuChildren.length-1;for(let s=r+1;s<=i;++s){const n=this.menuChildren[s],c=n.role;if(c===Q.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),H.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Q.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,i)=>{const s=Ji.elementIndent(i);return Math.max(r,s)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return mg(e)||Gn(e)&&!!e.role&&e.role in Ji.focusableElementRoles}};Ni.focusableElementRoles=Q,Ag([g],Ni.prototype,"items",2);let Fg=Ni;class Mg extends Fg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Tr(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Or(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Dg=p`
449
441
  ${w("flex")}
450
442
 
451
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${K};border-radius:${C};box-shadow:${yi};padding:4px;row-gap:2px}`;function bb(){return g`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${U("items")}></slot></template>`}const gb=bb(),fb=ub.compose({name:`${p.prefix}-menu-list`,template:gb,styles:pb});fb.define(p.registry);var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,nt=(o,e,t,r)=>{for(var i=r>1?void 0:r?vb(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&&mb(e,t,i),i};class Ye extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ke&&(e.target.getAttribute("role")===J.menuitemcheckbox||e.target.getAttribute("role")===J.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case er:case lo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){N.enqueue(()=>{this._menuList.focus()})}focusTrigger(){N.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case yl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case xl:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}nt([a({attribute:"open-on-hover",mode:"boolean"})],Ye.prototype,"openOnHover",2),nt([a({attribute:"open-on-context",mode:"boolean"})],Ye.prototype,"openOnContext",2),nt([a({attribute:"close-on-scroll",mode:"boolean"})],Ye.prototype,"closeOnScroll",2),nt([a({attribute:"persist-on-item-click",mode:"boolean"})],Ye.prototype,"persistOnItemClick",2),nt([a({mode:"boolean"})],Ye.prototype,"split",2),nt([b],Ye.prototype,"slottedMenuList",2),nt([b],Ye.prototype,"slottedTriggers",2),nt([b],Ye.prototype,"primaryAction",2);const $b=u`
443
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${U};border-radius:${C};box-shadow:${pi};padding:4px;row-gap:2px}`;function Lg(){return b`<template focusgroup="menu" slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}"><slot ${W("items")}></slot></template>`}const Vg=Lg(),Hg=Mg.compose({name:Pg,template:Vg,styles:Dg});Hg.define(u.registry);const Rg=`${u.prefix}-menu`;var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,it=(o,e,t,r)=>{for(var i=r>1?void 0:r?qg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jg(e,t,i),i};class Xe extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ge&&(e.target.getAttribute("role")===Q.menuitemcheckbox||e.target.getAttribute("role")===Q.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case bo:case fo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){H.enqueue(()=>{this._menuList.focus()})}focusTrigger(){H.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case Yd:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Qd:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}it([a({attribute:"open-on-hover",mode:"boolean"})],Xe.prototype,"openOnHover",2),it([a({attribute:"open-on-context",mode:"boolean"})],Xe.prototype,"openOnContext",2),it([a({attribute:"close-on-scroll",mode:"boolean"})],Xe.prototype,"closeOnScroll",2),it([a({attribute:"persist-on-item-click",mode:"boolean"})],Xe.prototype,"persistOnItemClick",2),it([a({mode:"boolean"})],Xe.prototype,"split",2),it([g],Xe.prototype,"slottedMenuList",2),it([g],Xe.prototype,"slottedTriggers",2),it([g],Xe.prototype,"primaryAction",2);const Wg=p`
452
444
  ${w("inline-block")}
453
445
 
454
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${De};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function yb(){return g`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${z("primaryAction")}></slot><slot name="trigger" ${U({property:"slottedTriggers",filter:no()})}></slot><slot ${U({property:"slottedMenuList",filter:no()})}></slot></template>`}const xb=yb(),kb=Ye.compose({name:`${p.prefix}-menu`,template:xb,styles:$b});kb.define(p.registry);var wb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,Hi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Cb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&wb(e,t,i),i};class Mr extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Hi([a],Mr.prototype,"shape",2),Hi([a],Mr.prototype,"layout",2),Hi([a],Mr.prototype,"intent",2);const Sb=u`
455
- :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${q};width:100%;background:${uo};border:1px solid ${De};padding-inline:${ae};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${Pn};border-color:${lc}}:host([intent='warning']){background-color:${_n};border-color:${Tn}}:host([intent='error']){background-color:${wn};border-color:${Sn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
456
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${xr};padding-inline:${ae}}.content{grid-area:body;max-width:520px;padding-block:${xr};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${_e}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${_e};gap:${_e}}:host([layout='multiline']) .actions{margin-block-start:${xr};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Ib(){return g`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Pb=Ib(),zb=Mr.compose({name:`${p.prefix}-message-bar`,template:Pb,styles:Sb,shadowOptions:{mode:p.shadowRootMode}});zb.define(p.registry);var _b=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,me=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_b(e,t,i),i};class ne extends x{constructor(){super(),this.active=!1,this.id=Xt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,N.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ne.formAssociated=!0,me([b],ne.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),me([b],ne.prototype,"descriptionSlot",2),me([b],ne.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ne.prototype,"formAttribute",2),me([a({mode:"boolean"})],ne.prototype,"freeform",2),me([a({attribute:"id"})],ne.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),me([b],ne.prototype,"multiple",2),me([a],ne.prototype,"name",2),me([b],ne.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2);const Tb=u`
446
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${Fe};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Ug(){return b`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${z("primaryAction")}></slot><slot name="trigger" ${W({property:"slottedTriggers",filter:ro()})}></slot><slot ${W({property:"slottedMenuList",filter:ro()})}></slot></template>`}const Gg=Ug(),Xg=Xe.compose({name:Rg,template:Gg,styles:Wg});Xg.define(u.registry);const Kg=`${u.prefix}-message-bar`;var Yg=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,Ai=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Yg(e,t,i),i};class Br extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ai([a],Br.prototype,"shape",2),Ai([a],Br.prototype,"layout",2),Ai([a],Br.prototype,"intent",2);const Zg=p`
447
+ :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${A};line-height:${R};width:100%;background:${ao};border:1px solid ${Fe};padding-inline:${re};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${yn};border-color:${ec}}:host([intent='warning']){background-color:${kn};border-color:${Cn}}:host([intent='error']){background-color:${bn};border-color:${vn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
448
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${dr};padding-inline:${re}}.content{grid-area:body;max-width:520px;padding-block:${dr};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Y};margin-inline-end:${ze}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${ze};gap:${ze}}:host([layout='multiline']) .actions{margin-block-start:${dr};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${ie}}::slotted(*){font-size:inherit}`;function Jg(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const ef=Jg(),tf=Br.compose({name:Kg,template:ef,styles:Zg,shadowOptions:{mode:u.shadowRootMode}});tf.define(u.registry);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?rf(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&&of(e,t,i),i};class se extends k{constructor(){super(),this.active=!1,this.id=Wt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,H.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}se.formAssociated=!0,ge([g],se.prototype,"active",2),ge([a({attribute:"current-selected",mode:"boolean"})],se.prototype,"currentSelected",2),ge([a({attribute:"selected",mode:"boolean"})],se.prototype,"defaultSelected",2),ge([g],se.prototype,"descriptionSlot",2),ge([g],se.prototype,"disabled",2),ge([a({attribute:"disabled",mode:"boolean"})],se.prototype,"disabledAttribute",2),ge([a({attribute:"form"})],se.prototype,"formAttribute",2),ge([a({mode:"boolean"})],se.prototype,"freeform",2),ge([a({attribute:"id"})],se.prototype,"id",2),ge([a({attribute:"value",mode:"fromView"})],se.prototype,"initialValue",2),ge([g],se.prototype,"multiple",2),ge([a],se.prototype,"name",2),ge([g],se.prototype,"start",2),ge([a({attribute:"text",mode:"fromView"})],se.prototype,"textAttribute",2);const sf=p`
457
449
  ${w("inline-grid")}
458
450
 
459
- :host{-webkit-tap-highlight-color:transparent;${aa}
460
- align-items:center;background-color:${S};border-radius:${C};box-sizing:border-box;color:${Pe};column-gap:${ie};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${cr};color:${At}}:host(:active){background-color:${pi};color:${Et}}:host(:disabled){background-color:${S};color:${T};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ei}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Wt}) .checkmark-16-filled,:host(:not(${Wt})) .checkmark-12-regular{display:none}:host(${Wt}) .checkmark-12-regular{background-color:${S};border-radius:${ze};border:${I} solid ${Me};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Wt}${Ei}) .checkmark-12-regular{background-color:${gt};border-color:${vt};fill:${bt}}:host(:disabled${Wt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Wt}${Ei}) .checkmark-12-regular{background-color:${et}}:host(${Gh}){border:${be} solid ${ue}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ge}}}:host(${Kh}){column-gap:${ge};grid-template-areas:'indicator start content'
461
- 'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${la}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,Ob=g.partial(`
451
+ :host{-webkit-tap-highlight-color:transparent;${ha}
452
+ align-items:center;background-color:${S};border-radius:${C};box-sizing:border-box;color:${Ie};column-gap:${oe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ve};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Zo};color:${Tt}}:host(:active){background-color:${ni};color:${Bt}}:host(:disabled){background-color:${S};color:${O};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ii}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Rt}) .checkmark-16-filled,:host(:not(${Rt})) .checkmark-12-regular{display:none}:host(${Rt}) .checkmark-12-regular{background-color:${S};border-radius:${Pe};border:${I} solid ${Ae};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Rt}${Ii}) .checkmark-12-regular{background-color:${pt};border-color:${Ze};fill:${ut}}:host(:disabled${Rt}) .checkmark-12-regular{border-color:${be}}:host(:disabled${Rt}${Ii}) .checkmark-12-regular{background-color:${Qe}}:host(${Gh}){border:${ue} solid ${ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ve}}}:host(${Yh}){column-gap:${ve};grid-template-areas:'indicator start content'
453
+ 'indicator start description'}::slotted([slot='description']){color:${Y};grid-area:description;${ua}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,nf=b.partial(`
462
454
  <svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
463
455
  <path
464
456
  d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"
@@ -469,22 +461,20 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
469
461
  d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"
470
462
  />
471
463
  </svg>
472
- `);function Ab(o={}){return g`<slot name="checked-indicator">${de(o.checkedIndicator)}</slot>${Ge(o)}<div class="content" part="content"><slot ${U({property:"freeformOutputs",filter:no("output")})}></slot></div><div class="description" part="description"><slot name="description" ${U("descriptionSlot")}></slot></div>`}const Eb=Ab({checkedIndicator:Ob}),Nb=ne.compose({name:`${p.prefix}-option`,template:Eb,styles:Tb});Nb.define(p.registry);const Fb={success:"success",warning:"warning",error:"error"};var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?Db(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&&Mb(e,t,i),i};class Zt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){kt(this.elementInternals,e,t,Fb)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||N.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,s=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${s}%`)})}}Po([b],Zt.prototype,"indicator",2),Po([a({attribute:"validation-state"})],Zt.prototype,"validationState",2),Po([a({converter:re})],Zt.prototype,"value",2),Po([a({converter:re})],Zt.prototype,"min",2),Po([a({converter:re})],Zt.prototype,"max",2);var Lb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,va=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vb(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&&Lb(e,t,i),i};class ji extends Zt{}va([a],ji.prototype,"thickness",2),va([a],ji.prototype,"shape",2);const Hb=u`
464
+ `);function af(o={}){return b`<slot name="checked-indicator">${ae(o.checkedIndicator)}</slot>${je(o)}<div class="content" part="content"><slot ${W({property:"freeformOutputs",filter:ro("output")})}></slot></div><div class="description" part="description"><slot name="description" ${W("descriptionSlot")}></slot></div>`}const lf=af({checkedIndicator:nf}),cf=se.compose({name:mp,template:lf,styles:sf});cf.define(u.registry);const df={success:"success",warning:"warning",error:"error"},hf=`${u.prefix}-progress-bar`;var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?pf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&uf(e,t,i),i};class Kt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){yt(this.elementInternals,e,t,df)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||H.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,s=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${s}%`)})}}Io([g],Kt.prototype,"indicator",2),Io([a({attribute:"validation-state"})],Kt.prototype,"validationState",2),Io([a({converter:te})],Kt.prototype,"value",2),Io([a({converter:te})],Kt.prototype,"min",2),Io([a({converter:te})],Kt.prototype,"max",2);var gf=Object.defineProperty,ff=Object.getOwnPropertyDescriptor,ya=(o,e,t,r)=>{for(var i=r>1?void 0:r?ff(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&&gf(e,t,i),i};class Fi extends Kt{}ya([a],Fi.prototype,"thickness",2),ya([a],Fi.prototype,"shape",2);const bf=p`
473
465
  ${w("block")}
474
466
 
475
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${po};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${br}}.indicator{background-color:${gt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
476
- to right,${po} 0%,${he} 50%,${po} 100%
477
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Cn}}:host([validation-state='warning']) .indicator{background-color:${Bn}}:host([validation-state='success']) .indicator{background-color:${zn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(X(u`
478
- :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function jb(){return g`<div class="indicator" part="indicator" ${z("indicator")}></div>`}const Rb=jb(),qb=ji.compose({name:`${p.prefix}-progress-bar`,template:Rb,styles:Hb});qb.define(p.registry);function Wb(o,e="-radio"){return nn(e)(o)}function $a(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const ya=$e;var Gb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,at=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ub(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&&Gb(e,t,i),i};class Re extends x{constructor(){super(),this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ya.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ya.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const i=$l(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===i,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),N.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>Wb(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const n=s===e;i.checked=n,n&&(r=s,t&&i.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=or(this)==="rtl",r=this.enabledRadios.findIndex(n=>n===$a(this))??this.checkedIndex;let i=0;switch(e.key){case"ArrowLeft":{i=t?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=t?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const s=r+i;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf($a(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((r,i)=>{r.tabIndex=i===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const s={valueMissing:!0,...e},n=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(s,n,c):c.elementInternals.setValidity({})})}}}Re.formAssociated=!0,at([b],Re.prototype,"checkedIndex",2),at([a({attribute:"disabled",mode:"boolean"})],Re.prototype,"disabled",2),at([a({attribute:"value",mode:"fromView"})],Re.prototype,"initialValue",2),at([a],Re.prototype,"name",2),at([a],Re.prototype,"orientation",2),at([b],Re.prototype,"radios",2),at([a({mode:"boolean"})],Re.prototype,"required",2),at([b],Re.prototype,"slottedRadios",2);class Xb extends Re{}const Kb=u`
467
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${lo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${rr}}.indicator{background-color:${pt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
468
+ to right,${lo} 0%,${le} 50%,${lo} 100%
469
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${mn}}:host([validation-state='warning']) .indicator{background-color:${wn}}:host([validation-state='success']) .indicator{background-color:${xn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function mf(){return b`<div class="indicator" part="indicator" ${z("indicator")}></div>`}const vf=mf(),$f=Fi.compose({name:hf,template:vf,styles:bf});$f.define(u.registry);const xa=$e,yf=`${u.prefix}-radio-group`;function xf(o,e="-radio"){return es(e)(o)}const kf=`${u.prefix}-radio`;var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Cf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&wf(e,t,i),i};class Ve extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??xa.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??xa.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const i=Kd(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===i,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute,n.toggleAttribute("focusgroupstart",n.checked&&!n.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>xf(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const n=s===e;i.checked=n,n&&(r=s,t&&i.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case Kn:case Xn:case mr:case vr:case Qn:case Yn:this.isNavigating=!0;break;case bo:this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const s={valueMissing:!0,...e},n=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(s,n,c):c.elementInternals.setValidity({})})}}}Ve.formAssociated=!0,st([g],Ve.prototype,"checkedIndex",2),st([a({attribute:"disabled",mode:"boolean"})],Ve.prototype,"disabled",2),st([a({attribute:"value",mode:"fromView"})],Ve.prototype,"initialValue",2),st([a],Ve.prototype,"name",2),st([a],Ve.prototype,"orientation",2),st([g],Ve.prototype,"radios",2),st([a({mode:"boolean"})],Ve.prototype,"required",2),st([g],Ve.prototype,"slottedRadios",2);class Sf extends Ve{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Tr(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Or(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const If=p`
479
470
  ${w("flex")}
480
471
 
481
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ci}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Pe}}::slotted(:active){color:${_}}::slotted(${fe}){color:${T}}::slotted(${y}){color:${_}}:host([slot='input']){margin:${se} ${_e}}`;function Yb(){return g`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot ${U("slottedRadios")}></slot></template>`}const Qb=Yb(),Zb=Xb.compose({name:`${p.prefix}-radio-group`,template:Qb,styles:Kb});Zb.define(p.registry);class Jb extends Ce{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const eg=u`
472
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${mi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Y}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${_}}::slotted(${pe}){color:${O}}::slotted(${x}){color:${_}}:host([slot='input']){margin:${ie} ${ze}}`;function Pf(){return b`<template focusgroup="radiogroup wrap" @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot ${W("slottedRadios")}></slot></template>`}const zf=Pf(),_f=Sf.compose({name:yf,template:zf,styles:If});_f.define(u.registry);class Of extends ke{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const Tf=p`
482
473
  ${w("inline-flex")}
483
474
 
484
- :host{--size:16px;aspect-ratio:1;background-color:${S};border:${I} solid ${Me};border-radius:${xe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${xe};color:${bt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${be} solid ${K};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ue}}:host(:hover){border-color:${ft}}:host(${y}){border-color:${vt}}:host(${y}) .checked-indicator{background-color:${gt}}:host(${y}:hover) .checked-indicator{background-color:${Nt}}:host(:active){border-color:${mt}}:host(${y}:active) .checked-indicator{background-color:${Ft}}:host(:focus-visible){outline:none}:host(${fe}){background-color:${et};border-color:${ye}}:host(${y}${fe}) .checked-indicator{background-color:${ye}}`.withBehaviors(X(u`
485
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${fe}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${fe}):hover) .checked-indicator{background-color:Highlight}:host(${fe}){border-color:GrayText;color:GrayText}:host(${fe}${y}) .checked-indicator{background-color:GrayText}`)),tg=g.partial(`
475
+ :host{--size:16px;aspect-ratio:1;background-color:${S};border:${I} solid ${Ae};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${ut};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}:host(:hover){border-color:${gt}}:host(${x}){border-color:${Ze}}:host(${x}) .checked-indicator{background-color:${pt}}:host(${x}:hover) .checked-indicator{background-color:${Et}}:host(:active){border-color:${ft}}:host(${x}:active) .checked-indicator{background-color:${Nt}}:host(:focus-visible){outline:none}:host(${pe}){background-color:${Qe};border-color:${be}}:host(${x}${pe}) .checked-indicator{background-color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${pe}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${pe}):hover) .checked-indicator{background-color:Highlight}:host(${pe}){border-color:GrayText;color:GrayText}:host(${pe}${x}) .checked-indicator{background-color:GrayText}}`,Bf=b.partial(`
486
476
  <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
487
- `);function og(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${de(o.checkedIndicator)}</slot></template>`}const rg=og({checkedIndicator:tg}),ig=Jb.compose({name:`${p.prefix}-radio`,template:rg,styles:eg});ig.define(p.registry);var sg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,zo=(o,e,t,r)=>{for(var i=r>1?void 0:r?ng(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&&sg(e,t,i),i};const ag=CSS.supports("width: attr(value type(<number>))"),Jt={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Dr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class eo extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(Jt.maskImageFilled),this.display.style.removeProperty(Jt.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
477
+ `);function Ef(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ae(o.checkedIndicator)}</slot></template>`}const Nf=Ef({checkedIndicator:Bf}),Af=Of.compose({name:kf,template:Nf,styles:Tf});Af.define(u.registry);const Ff=`${u.prefix}-rating-display`;var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mf(e,t,i),i};const Lf=CSS.supports("width: attr(value type(<number>))"),Yt={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Er(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Qt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(Yt.maskImageFilled),this.display.style.removeProperty(Yt.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
488
478
  <svg
489
479
  viewBox="${r}"
490
480
  xmlns="http://www.w3.org/2000/svg"
@@ -495,62 +485,55 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
495
485
  fill="none"
496
486
  stroke="black"
497
487
  stroke-width="2"
498
- >${t}</svg>`;this.display.style.setProperty(Jt.maskImageFilled,`url(${Dr(i)})`),this.display.style.setProperty(Jt.maskImageOutlined,`url(${Dr(s)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||ag)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(Jt[e]):this.display.style.setProperty(Jt[e],`${t}`)})}}zo([b],eo.prototype,"iconSlot",2),zo([a({converter:re})],eo.prototype,"count",2),zo([a({attribute:"icon-view-box"})],eo.prototype,"iconViewBox",2),zo([a({converter:re})],eo.prototype,"max",2),zo([a({converter:re})],eo.prototype,"value",2);var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,Ri=(o,e,t,r)=>{for(var i=r>1?void 0:r?cg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lg(e,t,i),i};class Lr extends eo{constructor(){super(...arguments),this.compact=!1}}Ri([a],Lr.prototype,"color",2),Ri([a],Lr.prototype,"size",2),Ri([a({mode:"boolean"})],Lr.prototype,"compact",2);const xa='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',dg=`
499
- <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${xa}</svg>
500
- `,hg=`
488
+ >${t}</svg>`;this.display.style.setProperty(Yt.maskImageFilled,`url(${Er(i)})`),this.display.style.setProperty(Yt.maskImageOutlined,`url(${Er(s)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||Lf)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(Yt[e]):this.display.style.setProperty(Yt[e],`${t}`)})}}Po([g],Qt.prototype,"iconSlot",2),Po([a({converter:te})],Qt.prototype,"count",2),Po([a({attribute:"icon-view-box"})],Qt.prototype,"iconViewBox",2),Po([a({converter:te})],Qt.prototype,"max",2),Po([a({converter:te})],Qt.prototype,"value",2);var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Mi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vf(e,t,i),i};class Nr extends Qt{constructor(){super(...arguments),this.compact=!1}}Mi([a],Nr.prototype,"color",2),Mi([a],Nr.prototype,"size",2),Mi([a({mode:"boolean"})],Nr.prototype,"compact",2);const ka='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',Rf=`
489
+ <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${ka}</svg>
490
+ `,jf=`
501
491
  <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
502
492
  fill="none" stroke="black" stroke-width="2"
503
- >${xa}</svg>
504
- `;function ug(){return g`<div ${z("display")} class="display" aria-hidden="true"></div><slot name="icon" ${z("iconSlot")} @slotchange="${o=>o.handleSlotChange()}"></slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const pg=ug(),bg=u`
493
+ >${ka}</svg>
494
+ `;function qf(){return b`<div ${z("display")} class="display" aria-hidden="true"></div><slot name="icon" ${z("iconSlot")} @slotchange="${o=>o.handleSlotChange()}"></slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const Wf=qf(),Uf=p`
505
495
  ${w("inline-flex")}
506
496
 
507
- :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${mc};--_icon-color-empty:${An};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Dr(dg)});--_mask-image-outlined:url(${Dr(hg)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${F};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${O};line-height:${M}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${po}}:host([color='brand']){--_icon-color-value:${lr};--_icon-color-empty:${$n}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2) / 2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${V});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc(
497
+ :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${cc};--_icon-color-empty:${In};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Er(Rf)});--_mask-image-outlined:url(${Er(jf)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${A};line-height:${R};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${F}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${lo}}:host([color='brand']){--_icon-color-value:${Qo};--_icon-color-empty:${un}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2) / 2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${L});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc(
508
498
  var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment)
509
499
  );background-image:linear-gradient(
510
500
  var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px)
511
- );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V} / 2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${ie};font-weight:${L}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${V}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${ie}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${V}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ge}}`.withBehaviors(X(u`
512
- .display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1 / 1 / -1 / -1;mask:inherit;mask-image:var(--_mask-image-outlined)}`)),gg=Lr.compose({name:`${p.prefix}-rating-display`,template:pg,styles:bg});gg.define(p.registry);function ka(o,e,t,r){let i=sn(0,1,(o-e)/(t-e));return r===Fe.rtl&&(i=1-i),i}const fg=$e,mg={singleValue:"single-value"};var vg=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?$g(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&&vg(e,t,i),i};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Fe.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=mg.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===$e.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===$e.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??fg.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
513
- :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=sn(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??$e.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=or(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")})}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==Fe.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==Fe.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case Jo:e.preventDefault(),this.value=this.direction!==Fe.rtl&&this.orientation!==$e.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Zo:e.preventDefault(),this.value=this.direction!==Fe.rtl&&this.orientation!==$e.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case Yo:case Qo:e.shiftKey||(e.preventDefault(),this.increment());break;case Ko:case Xo:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ka(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===$e.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=ka(e,this.orientation===$e.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===$e.vertical?this.trackHeight:this.trackWidth,this.orientation===$e.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){N.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,ee([a],W.prototype,"size",2),ee([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),ee([b],W.prototype,"direction",2),ee([b],W.prototype,"isDragging",2),ee([b],W.prototype,"position",2),ee([b],W.prototype,"trackWidth",2),ee([b],W.prototype,"trackMinWidth",2),ee([b],W.prototype,"trackHeight",2),ee([b],W.prototype,"trackLeft",2),ee([b],W.prototype,"trackMinHeight",2),ee([b],W.prototype,"valueTextFormatter",2),ee([a({mode:"boolean"})],W.prototype,"disabled",2),ee([a({converter:ci})],W.prototype,"min",2),ee([a({converter:ci})],W.prototype,"max",2),ee([a({converter:ci})],W.prototype,"step",2),ee([a],W.prototype,"orientation",2),ee([a],W.prototype,"mode",2);const yg=u`
501
+ );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${L} / 2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${L}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ve}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${L}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ve}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1 / 1 / -1 / -1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Gf=Nr.compose({name:Ff,template:Wf,styles:Uf});Gf.define(u.registry);const Xf=$e,Kf={singleValue:"single-value"},Yf=`${u.prefix}-slider`,Di={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function wa(o,e,t,r){let i=Zn(0,1,(o-e)/(t-e));return r===Me.rtl&&(i=1-i),i}var Qf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,Z=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qf(e,t,i),i};class j extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Me.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Kf.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===$e.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===$e.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Xf.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
502
+ :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=Zn(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??$e.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=ga(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")})}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==Me.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==Me.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case Qn:e.preventDefault(),this.value=this.direction!==Me.rtl&&this.orientation!==$e.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Yn:e.preventDefault(),this.value=this.direction!==Me.rtl&&this.orientation!==$e.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case vr:case Kn:e.shiftKey||(e.preventDefault(),this.increment());break;case mr:case Xn:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=wa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===$e.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=wa(e,this.orientation===$e.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===$e.vertical?this.trackHeight:this.trackWidth,this.orientation===$e.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){H.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}j.formAssociated=!0,Z([a],j.prototype,"size",2),Z([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Z([g],j.prototype,"direction",2),Z([g],j.prototype,"isDragging",2),Z([g],j.prototype,"position",2),Z([g],j.prototype,"trackWidth",2),Z([g],j.prototype,"trackMinWidth",2),Z([g],j.prototype,"trackHeight",2),Z([g],j.prototype,"trackLeft",2),Z([g],j.prototype,"trackMinHeight",2),Z([g],j.prototype,"valueTextFormatter",2),Z([a({mode:"boolean"})],j.prototype,"disabled",2),Z([a({converter:Di})],j.prototype,"min",2),Z([a({converter:Di})],j.prototype,"max",2),Z([a({converter:Di})],j.prototype,"step",2),Z([a],j.prototype,"orientation",2),Z([a],j.prototype,"mode",2);const Jf=p`
514
503
  ${w("inline-grid")}
515
504
 
516
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${gt};--track-color:${Me};--slider-direction:90deg;--border-radius:${C};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Nt}}:host(:active){--rail-color:${Ft}}:host(:disabled){--rail-color:${T};--track-color:${et}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${ze}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${ue};outline:1px solid ${pr}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
505
+ :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${pt};--track-color:${Ae};--slider-direction:90deg;--border-radius:${C};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Et}}:host(:active){--rail-color:${Nt}}:host(:disabled){--rail-color:${O};--track-color:${Qe}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Pe}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${ce};outline:1px solid ${or}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
517
506
  var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
518
507
  );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
519
508
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${S} calc(var(--step-rate) - 1px),${S} var(--step-rate)
520
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${xe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${De};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(X(u`
521
- .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function xg(o={}){return g`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${z("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${z("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${de(o.thumb)}</slot></div></template>`}const kg=xg({thumb:'<div class="thumb"></div>'}),wg=W.compose({name:`${p.prefix}-slider`,template:kg,styles:yg});wg.define(p.registry);class Cg extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Sg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,wa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ig(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&&Sg(e,t,i),i};class qi extends Cg{}wa([a],qi.prototype,"size",2),wa([a],qi.prototype,"appearance",2);const Pg=u`
509
+ )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${Fe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function eb(o={}){return b`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${z("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${z("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${ae(o.thumb)}</slot></div></template>`}const tb=eb({thumb:'<div class="thumb"></div>'}),ob=j.compose({name:Yf,template:tb,styles:Jf});ob.define(u.registry);const rb=`${u.prefix}-spinner`;class ib extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var sb=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?nb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&sb(e,t,i),i};class Li extends ib{}Ca([a],Li.prototype,"size",2),Ca([a],Li.prototype,"appearance",2);const ab=p`
522
510
  ${w("inline-flex")}
523
511
 
524
- :host{--duration:1.5s;--indicatorSize:${Le};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${be};--size:20px}:host([size='extra-small']){--indicatorSize:${be};--size:24px}:host([size='small']){--indicatorSize:${be};--size:28px}:host([size='large']){--indicatorSize:${Le};--size:36px}:host([size='extra-large']){--indicatorSize:${Le};--size:40px}:host([size='huge']){--indicatorSize:${xi};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Sr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${xn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${yn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${oc}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(X(u`
525
- .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),zg=g`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,_g=qi.compose({name:`${p.prefix}-spinner`,template:zg,styles:Pg});_g.define(p.registry);class Bg extends Ce{constructor(){super(),this.elementInternals.role="switch"}}function Tg(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${de(o.switch)}</slot></template>`}const Og=Tg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Ag=u`
512
+ :host{--duration:1.5s;--indicatorSize:${xe};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${xe};--size:36px}:host([size='extra-large']){--indicatorSize:${xe};--size:40px}:host([size='huge']){--indicatorSize:${gi};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${gr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${gn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${pn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Xl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,lb=b`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,cb=Li.compose({name:rb,template:lb,styles:ab});cb.define(u.registry);const db=`${u.prefix}-switch`;class hb extends ke{constructor(){super(),this.elementInternals.role="switch"}}function ub(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${ae(o.switch)}</slot></template>`}const pb=ub({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),gb=p`
526
513
  ${w("inline-flex")}
527
514
 
528
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${V};width:40px;height:20px;background-color:${he};border:1px solid ${Me};border-radius:${xe}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${ft}}:host(:active){border-color:${mt}}:host(:disabled),:host([readonly]){border:1px solid ${ye};background-color:none;pointer:default}:host(${y}){background:${gt};border-color:${gt}}:host(${y}:hover){background:${Nt};border-color:${Nt}}:host(${y}:active){background:${Ft};border-color:${Ft}}:host(${y}:disabled){background:${et};border-color:${ye}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${wr};transition-timing-function:${Sr};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${bt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Wl}}:host(${y}:active) .checked-indicator{background:${Gl}}:host(:hover) .checked-indicator{background-color:${El}}:host(:active) .checked-indicator{background-color:${Nl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${y}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${be} solid ${K};outline-offset:1px;box-shadow:${$r},0 0 0 2px ${ue}}`.withBehaviors(X(u`
529
- :host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}`)),Eg=Bg.compose({name:`${p.prefix}-switch`,template:Og,styles:Ag});Eg.define(p.registry);var Ng=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Mg=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ng(e,t,i),i};class Wi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.disabled&&this.setAttribute("aria-disabled","true"),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=u`
530
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Mg([a({mode:"boolean"})],Wi.prototype,"disabled",2),Je(Wi,Ze);function Dg(o={}){return g`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ge(o)}<span class="tab-content"><slot></slot></span>${pt(o)}</template>`}const Lg=Dg({}),Vg=u`
515
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${L};width:40px;height:20px;background-color:${le};border:1px solid ${Ae};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${gt}}:host(:active){border-color:${ft}}:host(:disabled),:host([readonly]){border:1px solid ${be};background-color:none;pointer:default}:host(${x}){background:${pt};border-color:${pt}}:host(${x}:hover){background:${Et};border-color:${Et}}:host(${x}:active){background:${Nt};border-color:${Nt}}:host(${x}:disabled){background:${Qe};border-color:${be}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Y};transition-duration:${ur};transition-timing-function:${gr};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${ut};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Ml}}:host(${x}:active) .checked-indicator{background:${Dl}}:host(:hover) .checked-indicator{background-color:${Il}}:host(:active) .checked-indicator{background-color:${Pl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${O}}:host(${x}:disabled) .checked-indicator{background:${O}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${lr},0 0 0 2px ${ce}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}}`,fb=hb.compose({name:db,template:pb,styles:gb});fb.define(u.registry);function Vi(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bb=`${u.prefix}-tab`;var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,$b=(o,e,t,r)=>{for(var i=r>1?void 0:r?vb(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&&mb(e,t,i),i};class Hi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`
516
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}$b([a({mode:"boolean"})],Hi.prototype,"disabled",2),Ye(Hi,Ke);function yb(o={}){return b`<template slot="tab" role="tab">${je(o)}<span class="tab-content"><slot></slot></span>${ht(o)}</template>`}const xb=yb({}),kb=p`
531
517
  ${w("inline-flex")}
532
518
 
533
- :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${M};font-family:${v};font-size:${O};color:${Pe};fill:currentcolor;grid-row:1;padding:${ae} ${Ve};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${L}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${M};font-weight:${L}}:host([aria-selected='true'])::after{background-color:${vt};border-radius:${xe};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Mt};border-radius:${xe};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${ze};box-shadow:0 0 0 3px ${ue};outline:1px solid ${pr}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(X(u`
534
- :host([aria-selected='true'])::after{background-color:Highlight}`)),Hg=Wi.compose({name:`${p.prefix}-tab`,template:Lg,styles:Vg});Hg.define(p.registry);function jg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Rg=o=>o.getAttribute("aria-disabled")==="true"||o.elementInternals?.ariaDisabled==="true",qg=o=>o.hasAttribute("hidden"),Vr=o=>!Rg(o)&&!qg(o),Wg={subtle:"subtle",transparent:"transparent"},lt=$e;var Gg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,_o=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ug(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Gg(e,t,i),i};class to extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=lt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.disabled||this.disabled||t.nodeType===Node.ELEMENT_NODE&&Vr(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.disabled)return;const t=or(this);switch(e.key){case Ko:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case Yo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case Qo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case Xo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case Jo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Zo:e.preventDefault(),this.adjust(this.tabs.filter(r=>Vr(r)).length-this.activeTabIndex-1);break}},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??lt.horizontal}disabledChanged(e,t){$(this.elementInternals,"disabled",t),this.setTabs()}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??lt.horizontal,kt(this.elementInternals,e,t,lt)),this.setTabs()}activeidChanged(e,t){if(this.tabs?.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs(),e){const r=this.tabs[this.prevActiveTabIndex],i=this.tabPanelMap.get(r);i&&(i.hidden=!0)}if(t&&this.activetab){const r=this.tabPanelMap.get(this.activetab);r&&(r.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>jg(r))??[]}tabsChanged(e,t){if(e?.length&&e.forEach(r=>{r.removeEventListener("click",this.handleTabClick),r.removeEventListener("keydown",this.handleTabKeyDown)}),this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const r of this.tabs){const i=r.getAttribute("aria-controls")??"",n=this.getRootNode().getElementById(i);i&&n&&(n.role??(n.role="tabpanel"),n.hidden=this.activeid!==r.id,this.tabPanelMap.set(r,n))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs?.some(t=>!!t.querySelector("[slot='start']"));this.tabs?.forEach((t,r)=>{if(t.slot==="tab"){const i=this.activeTabIndex===r&&Vr(t),s=this.tabIds[r];t.disabled||(this.disabled?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")),t.setAttribute("id",s),t.setAttribute("aria-selected",i?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=t,this.activeid=s),e&&this.orientation===lt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs?.map(e=>e.getAttribute("id")??`tab-${tr()}`)??[]}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===lt.horizontal}adjust(e){const t=this.tabs.filter(n=>Vr(n)),r=t.indexOf(this.activetab),i=kl(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),Vt(this,()=>{this.tabIds=this.getTabIds(),this.setTabs()},{shallow:!0})}}_o([a({mode:"boolean"})],to.prototype,"disabled",2),_o([a],to.prototype,"orientation",2),_o([a],to.prototype,"activeid",2),_o([b],to.prototype,"slottedTabs",2),_o([b],to.prototype,"tabs",2);var Xg=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kg(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&&Xg(e,t,i),i};class Gi extends to{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=Wg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===lt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===lt.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(e,t){super.tabsChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Ca([a],Gi.prototype,"appearance",2),Ca([a],Gi.prototype,"size",2);const Yg=g`<template role="tablist"><slot name="tab" ${U("slottedTabs")}></slot></template>`,Qg=u`
519
+ :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${F};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${re} ${We};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${F};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${Ze};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${bt};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${bt}}}:host([aria-selected='true'][disabled])::after{background-color:${O}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${O};color:${O};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Pe};box-shadow:0 0 0 3px ${ce};outline:1px solid ${or}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`,wb=Hi.compose({name:bb,template:xb,styles:kb});wb.define(u.registry);const Cb={subtle:"subtle",transparent:"transparent"},zo=$e,Sb=`${u.prefix}-tablist`;var Ib=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,_o=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ib(e,t,i),i};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=zo.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??zo.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??zo.horizontal,yt(this.elementInternals,e,t,zo)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Vi(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(n=>!!n.querySelector("[slot='start']")),i=this.getRootNode();let s="";for(const n of this.tabs){if(n.slot!=="tab")continue;n.id||(n.id=$r("tab-")),t?n.disabled=this.disabled:n.disabled=n.disabled||this.disabled,!s&&!n.disabled&&(s=n.id);const c=this.activeid===n.id;if(n.toggleAttribute("focusgroupstart",c),n.setAttribute("aria-selected",c.toString()),n.toggleAttribute("data-hasIndent",r&&this.orientation===zo.vertical),e){const h=n.getAttribute("aria-controls")??"",d=i.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==n.id,this.tabPanelMap.set(n,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):s&&(this.activeid=s))}handleFocusIn(e){const t=e.target;!Vi(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,s=r.getElementById(t);if(!Vi(s)||!this.contains(s))return;if(i){i.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(i);c&&(c.hidden=!0)}s.setAttribute("aria-selected","true");const n=this.tabPanelMap.get(s);n&&(n.hidden=!1),this.activetab=s,this.change()}connectedCallback(){super.connectedCallback(),Mt(this,()=>{this.setTabs()},{shallow:!0})}}_o([a({mode:"boolean"})],Zt.prototype,"disabled",2),_o([a],Zt.prototype,"orientation",2),_o([a],Zt.prototype,"activeid",2),_o([g],Zt.prototype,"slottedTabs",2),_o([g],Zt.prototype,"tabs",2);var zb=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,Sa=(o,e,t,r)=>{for(var i=r>1?void 0:r?_b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&zb(e,t,i),i};class Ri extends Zt{constructor(){super(...arguments),this.appearance=Cb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Tr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Or(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Sa([a],Ri.prototype,"appearance",2),Sa([a],Ri.prototype,"size",2);const Ob=b`<template role="tablist" focusgroup="tablist inline block" @focusin="${(o,e)=>o.handleFocusIn(e.event)}"><slot name="tab" ${W("slottedTabs")}></slot></template>`,Tb=p`
535
520
  ${w("flex")}
536
521
 
537
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Pe};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Bd};transition-timing-function:${Un}}:host ::slotted([slot='tab'])::after{height:${Le};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Le};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${Le};border-radius:${xe};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Le};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Le};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${vo};--tabPaddingInline:${ge};font-size:${O};line-height:${M}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${Ci};--tabPaddingInline:${Ve};font-size:${pe};line-height:${ke}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${Ve}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ge}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${Ve}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${se}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${yr}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${se}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${se}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${vo}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${xr}}:host([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${dr};color:${ln};fill:${Rl}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${bo};fill:${bo};color:${_}}`,Zg=Gi.compose({name:`${p.prefix}-tablist`,template:Yg,styles:Qg});Zg.define(p.registry);const Jg={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Hr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,te=(o,e,t,r)=>{for(var i=r>1?void 0:r?tf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ef(e,t,i),i};class G extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Hr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Cl),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.$fastController.isConnected&&this.setValidity()}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){kt(this.elementInternals,e,t,Hr,"resize-"),$(this.elementInternals,"resize",Zn(Hr,t)&&t!==Hr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl()})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}G.formAssociated=!0,te([b],G.prototype,"controlEl",2),te([b],G.prototype,"defaultSlottedNodes",2),te([b],G.prototype,"labelSlottedNodes",2),te([a],G.prototype,"autocomplete",2),te([a({attribute:"auto-resize",mode:"boolean"})],G.prototype,"autoResize",2),te([a({attribute:"dirname"})],G.prototype,"dirName",2),te([a({mode:"boolean"})],G.prototype,"disabled",2),te([a({attribute:"display-shadow",mode:"boolean"})],G.prototype,"displayShadow",2),te([a({attribute:"form"})],G.prototype,"initialForm",2),te([a({attribute:"maxlength",converter:re})],G.prototype,"maxLength",2),te([a({attribute:"minlength",converter:re})],G.prototype,"minLength",2),te([a],G.prototype,"name",2),te([a],G.prototype,"placeholder",2),te([a({attribute:"readonly",mode:"boolean"})],G.prototype,"readOnly",2),te([a({mode:"boolean"})],G.prototype,"required",2),te([a({mode:"fromView"})],G.prototype,"resize",2),te([a({mode:"boolean"})],G.prototype,"spellcheck",2);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,Ui=(o,e,t,r)=>{for(var i=r>1?void 0:r?rf(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&&of(e,t,i),i};class jr extends G{constructor(){super(...arguments),this.appearance=Jg.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Ui([a({mode:"fromView"})],jr.prototype,"appearance",2),Ui([a({mode:"boolean"})],jr.prototype,"block",2),Ui([a],jr.prototype,"size",2);const sf=u`
522
+ :host{--tabPaddingInline:${We};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${go};--tabPaddingInline:${ve}}:host([size='large']){--tabPaddingBlock:${mi};--tabPaddingInline:${We}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${cr};--tabIndicatorInsetBlock:${go}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${dr}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${xe};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${xe};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${xe};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${O}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${xe};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${xe};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${F}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${O}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${O}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${O}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${O}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Jo};color:${en};fill:${Al}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${co};fill:${co};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${Ze};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:absolute;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${kd};transition-timing-function:${Vn};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${xe}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${xe};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${O}}}`,Bb=Ri.compose({name:Sb,template:Ob,styles:Tb});Bb.define(u.registry);const Eb={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Ar={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Nb=`${u.prefix}-textarea`,Ab=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var Fb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fb(e,t,i),i};class q extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Ar.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Ab),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.$fastController.isConnected&&this.setValidity()}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){yt(this.elementInternals,e,t,Ar,"resize-"),$(this.elementInternals,"resize",Un(Ar,t)&&t!==Ar.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl()})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}q.formAssociated=!0,J([g],q.prototype,"controlEl",2),J([g],q.prototype,"defaultSlottedNodes",2),J([g],q.prototype,"labelSlottedNodes",2),J([a],q.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],q.prototype,"autoResize",2),J([a({attribute:"dirname"})],q.prototype,"dirName",2),J([a({mode:"boolean"})],q.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],q.prototype,"displayShadow",2),J([a({attribute:"form"})],q.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:te})],q.prototype,"maxLength",2),J([a({attribute:"minlength",converter:te})],q.prototype,"minLength",2),J([a],q.prototype,"name",2),J([a],q.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),J([a({mode:"boolean"})],q.prototype,"required",2),J([a({mode:"fromView"})],q.prototype,"resize",2),J([a({mode:"boolean"})],q.prototype,"spellcheck",2);var Db=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,ji=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lb(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&&Db(e,t,i),i};class Fr extends q{constructor(){super(...arguments),this.appearance=Eb.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}ji([a({mode:"fromView"})],Fr.prototype,"appearance",2),ji([a({mode:"boolean"})],Fr.prototype,"block",2),ji([a],Fr.prototype,"size",2);const Vb=p`
538
523
  ${w("inline-block")}
539
524
 
540
- :host{--font-size:${O};--line-height:${M};--padding-inline:${Ve};--padding-block:${vo};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${_};--background-color:${S};--border-color:${De};--border-block-end-color:${Me};--placeholder-color:${ui};--focus-indicator-color:${vt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${A};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Mt};--border-block-end-color:${ft}}:host(:active){--border-color:${go};--border-block-end-color:${mt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${F};--line-height:${q};--min-block-size:40px;--padding-block:${Lt};--padding-inline:${ge};--control-padding-inline:${V}}:host([size='large']){--font-size:${pe};--line-height:${ke};--min-block-size:64px;--padding-block:${se};--padding-inline:${ae};--control-padding-inline:${ge}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${uo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${$i}}:host(${lu}){--border-color:${fi};--border-block-end-color:${fi}}:host(:disabled){--color:${T};--background-color:${he};--border-color:${ye};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${yt};transition-duration:${Si};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${wr};transition-delay:${xt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Lt};padding-inline-end:${ie}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${bt};background-color:${hn}}`.withBehaviors(X(u`
541
- :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function nf(){return g`<template><label ${z("labelEl")} for="control" part="label"><slot name="label" ${U("labelSlottedNodes")}></slot></label><div class="root" part="root" ${z("rootEl")}><textarea ${z("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${U("defaultSlottedNodes")}></slot></div></template>`}const af=nf(),lf=jr.compose({name:`${p.prefix}-textarea`,template:af,styles:sf,shadowOptions:{delegatesFocus:!0}});lf.define(p.registry);const cf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},df=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,E=(o,e,t,r)=>{for(var i=r>1?void 0:r?uf(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&&hf(e,t,i),i};class B extends x{constructor(){super(...arguments),this.type=cf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){N.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){N.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>df.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}B.formAssociated=!0,E([a],B.prototype,"autocomplete",2),E([a({mode:"boolean"})],B.prototype,"autofocus",2),E([a({attribute:"current-value"})],B.prototype,"currentValue",2),E([b],B.prototype,"defaultSlottedNodes",2),E([a],B.prototype,"dirname",2),E([a({mode:"boolean"})],B.prototype,"disabled",2),E([a({attribute:"form"})],B.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],B.prototype,"initialValue",2),E([a],B.prototype,"list",2),E([a({converter:re})],B.prototype,"maxlength",2),E([a({converter:re})],B.prototype,"minlength",2),E([a({mode:"boolean"})],B.prototype,"multiple",2),E([a],B.prototype,"name",2),E([a],B.prototype,"pattern",2),E([a],B.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],B.prototype,"readOnly",2),E([a({mode:"boolean"})],B.prototype,"required",2),E([a({converter:re})],B.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],B.prototype,"spellcheck",2),E([a],B.prototype,"type",2),E([b],B.prototype,"control",2),E([b],B.prototype,"controlLabel",2);var pf=Object.defineProperty,bf=Object.getOwnPropertyDescriptor,Sa=(o,e,t,r)=>{for(var i=r>1?void 0:r?bf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&pf(e,t,i),i};class Rr extends B{}Sa([a],Rr.prototype,"appearance",2),Sa([a({attribute:"control-size"})],Rr.prototype,"controlSize",2),Je(Rr,Ze);const gf=u`
525
+ :host{--font-size:${B};--line-height:${F};--padding-inline:${We};--padding-block:${go};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${L};--color:${_};--background-color:${S};--border-color:${Fe};--border-block-end-color:${Ae};--placeholder-color:${si};--focus-indicator-color:${Ze};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${bt};--border-block-end-color:${gt}}:host(:active){--border-color:${ho};--border-block-end-color:${ft}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${A};--line-height:${R};--min-block-size:40px;--padding-block:${Ft};--padding-inline:${ve};--control-padding-inline:${L}}:host([size='large']){--font-size:${he};--line-height:${me};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${ve}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${ao};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${ui}}:host(${cu}){--border-color:${ci};--border-block-end-color:${ci}}:host(:disabled){--color:${O};--background-color:${le};--border-color:${be};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${O};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${vt};transition-duration:${vi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${ur};transition-delay:${$t}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Ft};padding-inline-end:${oe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${ut};background-color:${rn}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function Hb(){return b`<template><label ${z("labelEl")} for="control" part="label"><slot name="label" ${W("labelSlottedNodes")}></slot></label><div class="root" part="root" ${z("rootEl")}><textarea ${z("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${W("defaultSlottedNodes")}></slot></div></template>`}const Rb=Hb(),jb=Fr.compose({name:Nb,template:Rb,styles:Vb,shadowOptions:{delegatesFocus:!0}});jb.define(u.registry);const qb={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Wb=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Ub=`${u.prefix}-text-input`;var Gb=Object.defineProperty,Xb=Object.getOwnPropertyDescriptor,N=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xb(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&&Gb(e,t,i),i};class T extends k{constructor(){super(...arguments),this.type=qb.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){H.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){H.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>Wb.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}T.formAssociated=!0,N([a],T.prototype,"autocomplete",2),N([a({mode:"boolean"})],T.prototype,"autofocus",2),N([a({attribute:"current-value"})],T.prototype,"currentValue",2),N([g],T.prototype,"defaultSlottedNodes",2),N([a],T.prototype,"dirname",2),N([a({mode:"boolean"})],T.prototype,"disabled",2),N([a({attribute:"form"})],T.prototype,"formAttribute",2),N([a({attribute:"value",mode:"fromView"})],T.prototype,"initialValue",2),N([a],T.prototype,"list",2),N([a({converter:te})],T.prototype,"maxlength",2),N([a({converter:te})],T.prototype,"minlength",2),N([a({mode:"boolean"})],T.prototype,"multiple",2),N([a],T.prototype,"name",2),N([a],T.prototype,"pattern",2),N([a],T.prototype,"placeholder",2),N([a({attribute:"readonly",mode:"boolean"})],T.prototype,"readOnly",2),N([a({mode:"boolean"})],T.prototype,"required",2),N([a({converter:te})],T.prototype,"size",2),N([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],T.prototype,"spellcheck",2),N([a],T.prototype,"type",2),N([g],T.prototype,"control",2),N([g],T.prototype,"controlLabel",2);var Kb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Kb(e,t,i),i};class Mr extends T{}Ia([a],Mr.prototype,"appearance",2),Ia([a({attribute:"control-size"})],Mr.prototype,"controlSize",2),Ye(Mr,Ke);const Qb=p`
542
526
  ${w("block")}
543
527
 
544
- :host{font-family:${v};font-size:${O};font-weight:${A};line-height:${M};max-width:400px}.label{display:flex;color:${_};padding-bottom:${Lt};flex-shrink:0;padding-inline-end:${ie}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${I} solid ${De};border-bottom-color:${Me};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Ve};position:relative;width:100%}:has(.control:user-invalid){border-color:${fi}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${vt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Si};transition-delay:${yt}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${C};background:${he};font-family:${v};font-weight:${A};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ui}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Dt}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${ie}}:host(:hover) .root{border-color:${Mt};border-bottom-color:${ft}}:host(:active) .root{border-color:${go}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${wr};transition-delay:${xt}}:host(:focus-within:active) .root:after{border-bottom-color:${kn}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${De}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${he};border:${I} solid ${ye}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${bt};background-color:${hn}}:host([control-size='small']) .control{font-size:${F};font-weight:${A};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${ge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${A};line-height:${ke}}:host([control-size='large']) .root{height:40px;gap:${_e};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${gr}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${I} solid ${Me}}:host([appearance='underline']:hover) .root{border-bottom-color:${ft}}:host([appearance='underline']:active) .root{border-bottom-color:${mt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${mt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${ye}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${K};box-shadow:${$i}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${uo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${gi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${gi};background:${uo}}`;function ff(o={}){return g`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${z("controlLabel")}><slot ${U("defaultSlottedNodes")}></slot></label><div class="root" part="root">${Ge(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${z("control")} />${pt(o)}</div></template>`}const mf=ff(),vf=Rr.compose({name:`${p.prefix}-text-input`,template:mf,styles:gf,shadowOptions:{delegatesFocus:!0}});vf.define(p.registry);var $f=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,qe=(o,e,t,r)=>{for(var i=r>1?void 0:r?yf(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&&$f(e,t,i),i};class Be extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}qe([a({mode:"boolean"})],Be.prototype,"nowrap",2),qe([a({mode:"boolean"})],Be.prototype,"truncate",2),qe([a({mode:"boolean"})],Be.prototype,"italic",2),qe([a({mode:"boolean"})],Be.prototype,"underline",2),qe([a({mode:"boolean"})],Be.prototype,"strikethrough",2),qe([a({mode:"boolean"})],Be.prototype,"block",2),qe([a],Be.prototype,"size",2),qe([a],Be.prototype,"font",2),qe([a],Be.prototype,"weight",2),qe([a],Be.prototype,"align",2);const xf=u`
528
+ :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${F};max-width:400px}.label{display:flex;color:${_};padding-bottom:${Ft};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${I} solid ${Fe};border-bottom-color:${Ae};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${L};padding:0 ${We};position:relative;width:100%}:has(.control:user-invalid){border-color:${ci}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${Ze};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${vi};transition-delay:${vt}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${C};background:${le};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${si}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Y};font-size:${At}}:host ::slotted([slot='start']){padding-right:${L}}:host ::slotted([slot='end']){padding-left:${L};gap:${oe}}:host(:hover) .root{border-color:${bt};border-bottom-color:${gt}}:host(:active) .root{border-color:${ho}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${ur};transition-delay:${$t}}:host(:focus-within:active) .root:after{border-bottom-color:${fn}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${Fe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${le};border:${I} solid ${be}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${O}}::selection{color:${ut};background-color:${rn}}:host([control-size='small']) .control{font-size:${A};font-weight:${E};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${L};padding:0 ${ve}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${E};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${ze};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ir}}:host([appearance='underline']) .root{background:${le};border:0;border-radius:0;border-bottom:${I} solid ${Ae}}:host([appearance='underline']:hover) .root{border-bottom-color:${gt}}:host([appearance='underline']:active) .root{border-bottom-color:${ft}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${ft}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${be}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${U};box-shadow:${ui}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${ao}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${li}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${li};background:${ao}}`;function Zb(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${z("controlLabel")}><slot ${W("defaultSlottedNodes")}></slot></label><div class="root" part="root">${je(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${z("control")} />${ht(o)}</div></template>`}const Jb=Zb(),em=Mr.compose({name:Ub,template:Jb,styles:Qb,shadowOptions:{delegatesFocus:!0}});em.define(u.registry);const tm=`${u.prefix}-text`;var om=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,He=(o,e,t,r)=>{for(var i=r>1?void 0:r?rm(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&&om(e,t,i),i};class _e extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}He([a({mode:"boolean"})],_e.prototype,"nowrap",2),He([a({mode:"boolean"})],_e.prototype,"truncate",2),He([a({mode:"boolean"})],_e.prototype,"italic",2),He([a({mode:"boolean"})],_e.prototype,"underline",2),He([a({mode:"boolean"})],_e.prototype,"strikethrough",2),He([a({mode:"boolean"})],_e.prototype,"block",2),He([a],_e.prototype,"size",2),He([a],_e.prototype,"font",2),He([a],_e.prototype,"weight",2),He([a],_e.prototype,"align",2);const im=p`
545
529
  ${w("inline")}
546
530
 
547
- :host{font-family:${v};font-size:${O};line-height:${M};font-weight:${A};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${mo};line-height:${mr}}:host([size='200']){font-size:${F};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${ke}}:host([size='500']){font-size:${Dt};line-height:${vr}}:host([size='600']){font-size:${gr};line-height:${Vn}}:host([size='700']){font-size:${Fn};line-height:${Hn}}:host([size='800']){font-size:${Mn};line-height:${jn}}:host([size='900']){font-size:${Dn};line-height:${Rn}}:host([size='1000']){font-size:${Ln};line-height:${qn}}:host([font='monospace']){font-family:${xd}}:host([font='numeric']){font-family:${kd}}:host([weight='medium']){font-weight:${wd}}:host([weight='semibold']){font-weight:${L}}:host([weight='bold']){font-weight:${fr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,kf=g`<slot></slot>`,wf=Be.compose({name:`${p.prefix}-text`,template:kf,styles:xf});wf.define(p.registry);var Cf=Object.defineProperty,Sf=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cf(e,t,i),i};class Xi extends Xe{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ia([a({mode:"boolean"})],Xi.prototype,"pressed",2),Ia([a({mode:"boolean"})],Xi.prototype,"mixed",2);const If=u`
548
- ${zr}
531
+ :host{font-family:${v};font-size:${B};line-height:${F};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${po};line-height:${nr}}:host([size='200']){font-size:${A};line-height:${R}}:host([size='400']){font-size:${he};line-height:${me}}:host([size='500']){font-size:${At};line-height:${ar}}:host([size='600']){font-size:${ir};line-height:${En}}:host([size='700']){font-size:${_n};line-height:${Nn}}:host([size='800']){font-size:${On};line-height:${An}}:host([size='900']){font-size:${Tn};line-height:${Fn}}:host([size='1000']){font-size:${Bn};line-height:${Mn}}:host([font='monospace']){font-family:${pd}}:host([font='numeric']){font-family:${gd}}:host([weight='medium']){font-weight:${fd}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${sr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,sm=b`<slot></slot>`,nm=_e.compose({name:tm,template:sm,styles:im});nm.define(u.registry);const am=`${u.prefix}-toggle-button`;var lm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?cm(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lm(e,t,i),i};class qi extends Ue{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Pa([a({mode:"boolean"})],qi.prototype,"pressed",2),Pa([a({mode:"boolean"})],qi.prototype,"mixed",2);const dm=p`
532
+ ${xr}
549
533
 
550
- :host(${D}){border-color:${De};background-color:${dn};color:${_};border-width:${I}}:host(${D}:hover){border-color:${Mt};background-color:${cr}}:host(${D}:active){border-color:${go};background-color:${pi}}:host(${D}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${D}[appearance='primary']){background-color:${ec};color:${Ue}}:host(${D}[appearance='primary']:hover){background-color:${fn}}:host(${D}[appearance='primary']:active){background-color:${mn}}:host(${D}[appearance='subtle']){border-color:transparent;background-color:${pn};color:${sr}}:host(${D}[appearance='subtle']:hover){background-color:${dr};color:${At}}:host(${D}[appearance='subtle']:active){background-color:${bo};color:${Et}}:host(${D}[appearance='outline']),:host(${D}[appearance='transparent']){background-color:${bn}}:host(${D}[appearance='outline']:hover),:host(${D}[appearance='transparent']:hover){background-color:${hr}}:host(${D}[appearance='outline']:active),:host(${D}[appearance='transparent']:active){background-color:${ur}}:host(${D}[appearance='transparent']){border-color:transparent;color:${Al}}:host(${D}[appearance='transparent']:hover){color:${nr}}:host(${D}[appearance='transparent']:active){color:${ar}}`.withBehaviors(X(u`
551
- :host(${D}),:host(
552
- ${D}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
553
- ){background:SelectedItem;color:SelectedItemText}`)),Pf=Oi(),zf=Xi.compose({name:`${p.prefix}-toggle-button`,template:Pf,styles:If});zf.define(p.registry);var _f=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,qr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bf(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&&_f(e,t,i),i};class Bo extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=tr("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){rr||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),rr){Pl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}N.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=i[t]??i.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[r]??n.centerX;this.anchorPositioningStyleElement.textContent=`
534
+ :host(${M}){border-color:${Fe};background-color:${on};color:${_};border-width:${I}}:host(${M}:hover){border-color:${bt};background-color:${Zo}}:host(${M}:active){border-color:${ho};background-color:${ni}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Ul};color:${qe}}:host(${M}[appearance='primary']:hover){background-color:${cn}}:host(${M}[appearance='primary']:active){background-color:${dn}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${nn};color:${Xo}}:host(${M}[appearance='subtle']:hover){background-color:${Jo};color:${Tt}}:host(${M}[appearance='subtle']:active){background-color:${co};color:${Bt}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${an}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${er}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${tr}}:host(${M}[appearance='transparent']){border-color:transparent;color:${Sl}}:host(${M}[appearance='transparent']:hover){color:${Ko}}:host(${M}[appearance='transparent']:active){color:${Yo}}@media (forced-colors:active){:host(${M}),:host(
535
+ ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
536
+ ){background:SelectedItem;color:SelectedItemText}}`,hm=Ci(),um=qi.compose({name:am,template:hm,styles:dm});um.define(u.registry);const Ce={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},pm=`${u.prefix}-tooltip`;var gm=Object.defineProperty,fm=Object.getOwnPropertyDescriptor,Dr=(o,e,t,r)=>{for(var i=r>1?void 0:r?fm(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&&gm(e,t,i),i};class Oo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=$r("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){br||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),br){Xd||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}H.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=i[t]??i.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[r]??n.centerX;this.anchorPositioningStyleElement.textContent=`
554
537
  #${this.anchor} {
555
538
  anchor-name: ${e};
556
539
  }
@@ -561,29 +544,29 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
561
544
  ${s}
562
545
  ${c}
563
546
  }
564
- `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}qr([a],Bo.prototype,"id",2),qr([a({converter:re})],Bo.prototype,"delay",2),qr([a],Bo.prototype,"positioning",2),qr([a],Bo.prototype,"anchor",2);const Ie={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Tf=u`
547
+ `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}Dr([a],Oo.prototype,"id",2),Dr([a({converter:te})],Oo.prototype,"delay",2),Dr([a],Oo.prototype,"positioning",2),Dr([a],Oo.prototype,"anchor",2);const bm=p`
565
548
  ${w("inline-flex")}
566
549
 
567
- :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Lt};--inline-offset:${ie};background:${S};border-radius:${C};border:1px solid ${K};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${ic}) drop-shadow(0 4px 8px ${sc});font-family:${v};font-size:${F};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Ve} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Ie["above-start"]}}:host([positioning='above']){--position-area:${Ie.above}}:host([positioning='above-end']){--position-area:${Ie["above-end"]}}:host([positioning='below-start']){--position-area:${Ie["below-start"]}}:host([positioning='below']){--position-area:${Ie.below}}:host([positioning='below-end']){--position-area:${Ie["below-end"]}}:host([positioning='before-top']){--position-area:${Ie["before-top"]}}:host([positioning='before']){--position-area:${Ie.before}}:host([positioning='before-bottom']){--position-area:${Ie["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ie["after-top"]}}:host([positioning='after']){--position-area:${Ie.after}}:host([positioning='after-bottom']){--position-area:${Ie["after-bottom"]}}`,Of=g`<template popover aria-hidden="true"><slot></slot></template>`,Af=Bo.compose({name:`${p.prefix}-tooltip`,template:Of,styles:Tf});Af.define(p.registry);const Pa={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},za={small:"small",medium:"medium"};function Te(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Ef=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,Ki=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ef(e,t,i),i};class Wr extends x{constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Te(t)||this.childTreeItems.length<1)return!0;const r=this.getVisibleNodes();switch(e.key){case Jo:{r.length&&r[0].focus();return}case Zo:{r.length&&r[r.length-1].focus();return}case Ko:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Te(t.parentElement)&&t.parentElement.focus();return}case Yo:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case Xo:{this.focusNextNode(1,t);return}case Qo:{this.focusNextNode(-1,t);return}case lo:{this.clickHandler(e);return}case er:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused&&this.currentFocused.tabIndex<0&&(this.currentFocused.tabIndex=0),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Te(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(r=>r.selected);return t===-1&&(t=e.findIndex(r=>Te(r))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>Te(e)&&e.offsetParent!==null)}focusNextNode(e,t){const r=this.getVisibleNodes();if(!r.length)return;const i=r[r.indexOf(t)+e];di(i)&&i.focus()}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Te(e))}}Ki([b],Wr.prototype,"currentSelected",2),Ki([b],Wr.prototype,"defaultSlot",2),Ki([b],Wr.prototype,"childTreeItems",2);var Ff=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,_a=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ff(e,t,i),i};class Yi extends Wr{constructor(){super(...arguments),this.size=za.small,this.appearance=Pa.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}_a([a],Yi.prototype,"size",2),_a([a],Yi.prototype,"appearance",2);const Df=u`
550
+ :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Ft};--inline-offset:${oe};background:${S};border-radius:${C};border:1px solid ${U};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${Yl}) drop-shadow(0 4px 8px ${Ql});font-family:${v};font-size:${A};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${We} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Ce["above-start"]}}:host([positioning='above']){--position-area:${Ce.above}}:host([positioning='above-end']){--position-area:${Ce["above-end"]}}:host([positioning='below-start']){--position-area:${Ce["below-start"]}}:host([positioning='below']){--position-area:${Ce.below}}:host([positioning='below-end']){--position-area:${Ce["below-end"]}}:host([positioning='before-top']){--position-area:${Ce["before-top"]}}:host([positioning='before']){--position-area:${Ce.before}}:host([positioning='before-bottom']){--position-area:${Ce["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ce["after-top"]}}:host([positioning='after']){--position-area:${Ce.after}}:host([positioning='after-bottom']){--position-area:${Ce["after-bottom"]}}`,mm=b`<template popover aria-hidden="true"><slot></slot></template>`,vm=Oo.compose({name:pm,template:mm,styles:bm});vm.define(u.registry);const $m=`${u.prefix}-tree`,za={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},_a={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ym=`${u.prefix}-tree-item`;var xm=Object.defineProperty,km=Object.getOwnPropertyDescriptor,Wi=(o,e,t,r)=>{for(var i=r>1?void 0:r?km(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&&xm(e,t,i),i};class Lr extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case mr:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case vr:{t?.childTreeItems?.length&&(t.expanded||(t.expanded=!0));return}case fo:{this.clickHandler(e);return}case bo:{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}Wi([g],Lr.prototype,"currentSelected",2),Wi([g],Lr.prototype,"defaultSlot",2),Wi([g],Lr.prototype,"childTreeItems",2);var wm=Object.defineProperty,Cm=Object.getOwnPropertyDescriptor,Oa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Cm(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&wm(e,t,i),i};class Ui extends Lr{constructor(){super(...arguments),this.size=_a.small,this.appearance=za.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Tr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Or(this,this.fgItems,{definition:{behavior:"menu",axis:"block",memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Oa([a],Ui.prototype,"size",2),Oa([a],Ui.prototype,"appearance",2);const Sm=p`
568
551
  ${w("block")}
569
552
 
570
- :host{outline:none}`,Lf=g`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}"><slot ${z("defaultSlot")} @slotchange="${o=>o.handleDefaultSlotChange()}"></slot></template>`,Vf=Yi.compose({name:`${p.prefix}-tree`,template:Lf,styles:Df});Vf.define(p.registry);var Hf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,oo=(o,e,t,r)=>{for(var i=r>1?void 0:r?jf(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&&Hf(e,t,i),i};class It extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.updateTabindexBySelected(),this.$emit("change"),$(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
571
- :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.updateTabindexBySelected()})}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Te(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Te(this.parentElement)}updateTabindexBySelected(){this.tabIndex=this.selected?0:-1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Te(e))}}oo([b],It.prototype,"itemSlot",2),oo([a({mode:"boolean"})],It.prototype,"expanded",2),oo([a({mode:"boolean"})],It.prototype,"selected",2),oo([a({mode:"boolean"})],It.prototype,"empty",2),oo([a({attribute:"data-indent"})],It.prototype,"dataIndent",2),oo([b],It.prototype,"childTreeItems",2);var Rf=Object.defineProperty,qf=Object.getOwnPropertyDescriptor,Ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?qf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Rf(e,t,i),i};class Qi extends It{constructor(){super(...arguments),this.size=za.small,this.appearance=Pa.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ba([a],Qi.prototype,"size",2),Ba([a],Qi.prototype,"appearance",2);const Wf=u`
553
+ :host{outline:none}`,Im=b`<template focusgroup="menu nowrap nomemory" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @toggle="${(o,e)=>o.itemToggleHandler()}"><slot ${z("defaultSlot")} @slotchange="${o=>o.handleDefaultSlotChange()}"></slot></template>`,Pm=Ui.compose({name:$m,template:Im,styles:Sm});Pm.define(u.registry);var zm=Object.defineProperty,_m=Object.getOwnPropertyDescriptor,Jt=(o,e,t,r)=>{for(var i=r>1?void 0:r?_m(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&&zm(e,t,i),i};class Ct extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Oe(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),$(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
554
+ :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}Jt([g],Ct.prototype,"itemSlot",2),Jt([a({mode:"boolean"})],Ct.prototype,"expanded",2),Jt([a({mode:"boolean"})],Ct.prototype,"selected",2),Jt([a({mode:"boolean"})],Ct.prototype,"empty",2),Jt([a({attribute:"data-indent"})],Ct.prototype,"dataIndent",2),Jt([g],Ct.prototype,"childTreeItems",2);var Om=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Tm(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&&Om(e,t,i),i};class Gi extends Ct{constructor(){super(...arguments),this.size=_a.small,this.appearance=za.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ta([a],Gi.prototype,"size",2),Ta([a],Gi.prototype,"appearance",2);const Bm=p`
572
555
  ${w("block")}
573
556
 
574
- :host{outline:none;font-size:${O};line-height:${M}}:host(:focus-visible) .positioning-region{box-shadow:${wi} ${wi} ${wi} ${yr}
575
- ${ue} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${_d};padding-inline-start:calc(var(--indent) * ${ki});padding-inline-end:${se};border-radius:${C};background-color:${un};color:${Pe};gap:${ie}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ue}}}.content{display:flex;align-items:center;gap:${ie}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${ki};height:${$t};transition:transform ${kr} ${Xn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${dr};color:${At}}.positioning-region:active{background-color:${bo};color:${Et}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${V}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${pn};color:${sr}}:host([selected]) .content,:host([selected]) .chevron{color:${Fl}}:host([size='small']) .positioning-region{height:${$t};padding-inline-start:calc(var(--indent) * ${ae})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Ql}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Zl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Jl};color:${sr}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${hr}}:host([appearance='transparent']) .positioning-region:active{background-color:${ur}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${bn};color:${sr}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Gf=g`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Uf=g`<template slot="${o=>o.isNestedItem?"item":void 0}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${Gf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${z("itemSlot")} @slotchange="${o=>o.handleItemSlotChange()}"></slot></div></template>`,Xf=Qi.compose({name:`${p.prefix}-tree-item`,template:Uf,styles:Wf});Xf.define(p.registry);const Kf="adoptedStyleSheets"in document,Yf="CSSScopeRule"in window,Zi=new Map,Ji=new Map,To=new Map,es=new Map,Oo=new CSSStyleSheet;function Qf(o,e=document){if(!(!e||!Zf(e))){if(!Kf||e instanceof HTMLElement&&!e.shadowRoot&&!Yf){const t=e===document?document.documentElement:e;rm(o,t);return}[document,document.documentElement,document.body].includes(e)?Jf(o):em(o,e)}}function ts(o){if(!Zi.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);Zi.set(o,e.join(""))}return Zi.get(o)}function Zf(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Jf(o){if(o===null){document.adoptedStyleSheets.includes(Oo)&&Oo.replaceSync("");return}Oo.replaceSync(`
557
+ :host{outline:none;font-size:${B};line-height:${F}}:host(:focus-visible) .positioning-region{box-shadow:${bi} ${bi} ${bi} ${cr}
558
+ ${ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${xd};padding-inline-start:calc(var(--indent) * ${fi});padding-inline-end:${ie};border-radius:${C};background-color:${sn};color:${Ie};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ce}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${fi};height:${mt};transition:transform ${hr} ${Hn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Jo};color:${Tt}}.positioning-region:active{background-color:${co};color:${Bt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${L}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${nn};color:${Xo}}:host([selected]) .content,:host([selected]) .chevron{color:${zl}}:host([size='small']) .positioning-region{height:${mt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${jl}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${ql}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Wl};color:${Xo}}:host([appearance='transparent']) .positioning-region{background-color:${le}}:host([appearance='transparent']) .positioning-region:hover{background-color:${er}}:host([appearance='transparent']) .positioning-region:active{background-color:${tr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${an};color:${Xo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Em=b`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Nm=b`<template slot="${o=>o.isNestedItem?"item":void 0}" tabindex="0" ?focusgroupstart="${o=>o.selected}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${Em}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${z("itemSlot")} @slotchange="${o=>o.handleItemSlotChange()}"></slot></div></template>`,Am=Gi.compose({name:ym,template:Nm,styles:Bm});Am.define(u.registry);const Fm="adoptedStyleSheets"in document,Mm="CSSScopeRule"in window,Xi=new Map,Ki=new Map,To=new Map,Yi=new Map,Bo=new CSSStyleSheet;function Dm(o,e=document){if(!(!e||!Lm(e))){if(!Fm||e instanceof HTMLElement&&!e.shadowRoot&&!Mm){const t=e===document?document.documentElement:e;qm(o,t);return}[document,document.documentElement,document.body].includes(e)?Vm(o):Hm(o,e)}}function Qi(o){if(!Xi.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);Xi.set(o,e.join(""))}return Xi.get(o)}function Lm(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Vm(o){if(o===null){document.adoptedStyleSheets.includes(Bo)&&Bo.replaceSync("");return}Bo.replaceSync(`
576
559
  html {
577
- ${ts(o)}
560
+ ${Qi(o)}
578
561
  }
579
- `),document.adoptedStyleSheets.includes(Oo)||document.adoptedStyleSheets.push(Oo)}function em(o,e){if(o===null){e.shadowRoot&&To.has(e)?To.get(e).replaceSync(""):(delete e.dataset.fluentTheme,Ta(e));return}e.shadowRoot?tm(e).replaceSync(`
562
+ `),document.adoptedStyleSheets.includes(Bo)||document.adoptedStyleSheets.push(Bo)}function Hm(o,e){if(o===null){e.shadowRoot&&To.has(e)?To.get(e).replaceSync(""):(delete e.dataset.fluentTheme,Ba(e));return}e.shadowRoot?Rm(e).replaceSync(`
580
563
  :host {
581
- ${ts(o)}
564
+ ${Qi(o)}
582
565
  }
583
- `):(e.dataset.fluentTheme=om(o),Ta(e))}function tm(o){if(!To.has(o)){const e=new CSSStyleSheet;To.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return To.get(o)}function om(o){if(!Ji.has(o)){const e=tr("fluent-theme-"),t=new CSSStyleSheet;Ji.set(o,e),t.replaceSync(`
566
+ `):(e.dataset.fluentTheme=jm(o),Ba(e))}function Rm(o){if(!To.has(o)){const e=new CSSStyleSheet;To.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return To.get(o)}function jm(o){if(!Ki.has(o)){const e=$r("fluent-theme-"),t=new CSSStyleSheet;Ki.set(o,e),t.replaceSync(`
584
567
  @scope ([data-fluent-theme="${e}"]) {
585
568
  :scope {
586
- ${ts(o)}
569
+ ${Qi(o)}
587
570
  }
588
571
  }
589
- `),document.adoptedStyleSheets.push(t)}return Ji.get(o)}function rm(o,e){let t;if(o===null){if(!es.has(e))return;t=es.get(e)}else es.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:im}=navigator,sm=/\bAppleWebKit\/[\d+\.]+\b/.test(im);function Ta(o){if(!sm)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),N.process(),o.style.setProperty(e,r)}export{Qf as setTheme};
572
+ `),document.adoptedStyleSheets.push(t)}return Ki.get(o)}function qm(o,e){let t;if(o===null){if(!Yi.has(e))return;t=Yi.get(e)}else Yi.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:Wm}=navigator,Um=/\bAppleWebKit\/[\d+\.]+\b/.test(Wm);function Ba(o){if(!Um)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),H.process(),o.style.setProperty(e,r)}export{Dm as setTheme};