@vonage/vivid 5.25.0 → 5.27.0

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 (737) hide show
  1. package/accordion/index.cjs +1 -1
  2. package/accordion/index.js +8 -8
  3. package/accordion-item/index.cjs +1 -1
  4. package/action-group/index.cjs +3 -3
  5. package/action-group/index.js +10 -5
  6. package/alert/index.cjs +7 -7
  7. package/alert/index.js +47 -35
  8. package/audio-player/index.cjs +18 -18
  9. package/audio-player/index.js +15 -11
  10. package/avatar/index.cjs +9 -9
  11. package/avatar/index.js +27 -18
  12. package/badge/index.cjs +1 -1
  13. package/banner/index.cjs +5 -5
  14. package/banner/index.js +33 -27
  15. package/breadcrumb/index.cjs +1 -1
  16. package/breadcrumb/index.js +5 -1
  17. package/breadcrumb-item/index.cjs +1 -1
  18. package/breadcrumb-item/index.js +6 -6
  19. package/bundled/affix.cjs +3 -3
  20. package/bundled/affix.js +1 -1
  21. package/bundled/anchored.cjs +2 -2
  22. package/bundled/anchored.js +13 -1
  23. package/bundled/aria-binding-directive.cjs +1 -1
  24. package/bundled/aria-binding-directive.js +2 -2
  25. package/bundled/aria.cjs +1 -1
  26. package/bundled/base-color-picker.cjs +2 -2
  27. package/bundled/base-color-picker.js +1 -1
  28. package/bundled/base-progress.cjs +1 -1
  29. package/bundled/breadcrumb-item.cjs +1 -1
  30. package/bundled/button.cjs +1 -1
  31. package/bundled/calendar-event.cjs +1 -1
  32. package/bundled/calendar-event.js +17 -4
  33. package/bundled/calendar-picker.template.cjs +5 -5
  34. package/bundled/calendar-picker.template.js +53 -55
  35. package/bundled/char-count.cjs +2 -2
  36. package/bundled/children.cjs +1 -1
  37. package/bundled/children.js +1 -1
  38. package/bundled/class-names.cjs +1 -1
  39. package/bundled/component-enum.cjs +1 -0
  40. package/bundled/component-enum.js +9 -0
  41. package/bundled/data-grid.options.cjs +1 -1
  42. package/bundled/data-grid.options.js +7 -6
  43. package/bundled/decorate.cjs +1 -1
  44. package/bundled/decorate.js +1 -1
  45. package/bundled/definition.cjs +1 -1
  46. package/bundled/definition10.cjs +10 -20
  47. package/bundled/definition10.js +23 -72
  48. package/bundled/definition11.cjs +74 -10
  49. package/bundled/definition11.js +194 -24
  50. package/bundled/definition12.cjs +18 -70
  51. package/bundled/definition12.js +48 -186
  52. package/bundled/definition13.cjs +5 -22
  53. package/bundled/definition13.js +9 -58
  54. package/bundled/definition14.cjs +1 -5
  55. package/bundled/definition14.js +9 -9
  56. package/bundled/definition15.cjs +3 -3
  57. package/bundled/definition15.js +18 -18
  58. package/bundled/definition16.cjs +3 -3
  59. package/bundled/definition16.js +23 -17
  60. package/bundled/definition17.cjs +6 -6
  61. package/bundled/definition17.js +8 -8
  62. package/bundled/definition18.cjs +2 -2
  63. package/bundled/definition19.cjs +21 -21
  64. package/bundled/definition19.js +66 -61
  65. package/bundled/definition2.cjs +13 -1
  66. package/bundled/definition2.js +22 -185
  67. package/bundled/definition20.cjs +3 -3
  68. package/bundled/definition20.js +6 -7
  69. package/bundled/definition21.cjs +7 -7
  70. package/bundled/definition21.js +22 -23
  71. package/bundled/definition22.cjs +3 -3
  72. package/bundled/definition22.js +25 -25
  73. package/bundled/definition23.cjs +3 -3
  74. package/bundled/definition23.js +26 -8
  75. package/bundled/definition24.cjs +2 -2
  76. package/bundled/definition24.js +1 -1
  77. package/bundled/definition25.cjs +5 -5
  78. package/bundled/definition25.js +16 -11
  79. package/bundled/definition3.cjs +25 -12
  80. package/bundled/definition3.js +90 -21
  81. package/bundled/definition4.cjs +29 -25
  82. package/bundled/definition4.js +50 -89
  83. package/bundled/definition5.cjs +28 -29
  84. package/bundled/definition5.js +143 -45
  85. package/bundled/definition6.cjs +6 -29
  86. package/bundled/definition6.js +20 -130
  87. package/bundled/definition7.cjs +14 -6
  88. package/bundled/definition7.js +159 -20
  89. package/bundled/definition8.cjs +22 -14
  90. package/bundled/definition8.js +88 -144
  91. package/bundled/definition9.cjs +20 -22
  92. package/bundled/definition9.js +54 -80
  93. package/bundled/delegates-aria.cjs +1 -1
  94. package/bundled/delegates-aria.js +3 -2
  95. package/bundled/dialog.cjs +1 -1
  96. package/bundled/dialog.js +1 -1
  97. package/bundled/divider.cjs +1 -1
  98. package/bundled/divider.js +9 -9
  99. package/bundled/dom.cjs +1 -1
  100. package/bundled/enums.cjs +1 -1
  101. package/bundled/extractOptions.cjs +1 -1
  102. package/bundled/feedback-message.cjs +8 -0
  103. package/bundled/feedback-message.js +41 -0
  104. package/bundled/floating-ui.dom.cjs +1 -1
  105. package/bundled/floating-ui.dom.js +163 -197
  106. package/bundled/form-associated.cjs +1 -1
  107. package/bundled/form-associated.js +3 -4
  108. package/bundled/form-element.cjs +1 -1
  109. package/bundled/host-semantics.cjs +1 -1
  110. package/bundled/icon.cjs +1 -1
  111. package/bundled/kbd-shortcut.cjs +1 -1
  112. package/bundled/key-codes.cjs +1 -1
  113. package/bundled/linkable.cjs +2 -2
  114. package/bundled/listbox.cjs +1 -1
  115. package/bundled/listbox.js +3 -5
  116. package/bundled/localized.cjs +1 -1
  117. package/bundled/localized.js +33 -32
  118. package/bundled/mixins.cjs +9 -16
  119. package/bundled/mixins.js +23 -57
  120. package/bundled/numberConverter.cjs +2 -2
  121. package/bundled/numberConverter.js +1 -1
  122. package/bundled/numbers.cjs +1 -1
  123. package/bundled/optgroup.cjs +1 -1
  124. package/bundled/option.cjs +1 -1
  125. package/bundled/option.js +9 -7
  126. package/bundled/picker-field.template.cjs +2 -2
  127. package/bundled/picker-field.template.js +8 -8
  128. package/bundled/platform.cjs +1 -1
  129. package/bundled/playbackRates.cjs +1 -1
  130. package/bundled/ref.cjs +1 -1
  131. package/bundled/ref.js +1 -1
  132. package/bundled/render-in-light-dom.cjs +1 -1
  133. package/bundled/render-in-light-dom.js +1 -1
  134. package/bundled/repeat.cjs +1 -1
  135. package/bundled/repeat.js +16 -15
  136. package/bundled/scrollIntoView.cjs +1 -1
  137. package/bundled/scrollIntoView.js +1 -3
  138. package/bundled/single-date-picker.cjs +1 -1
  139. package/bundled/single-value-picker.cjs +1 -1
  140. package/bundled/single-value-picker.js +1 -1
  141. package/bundled/slider.template.cjs +12 -12
  142. package/bundled/slider.template.js +209 -32
  143. package/bundled/slottable-request.cjs +3 -3
  144. package/bundled/slottable-request.js +26 -17
  145. package/bundled/slotted.cjs +1 -1
  146. package/bundled/slotted.js +1 -1
  147. package/bundled/text-field.cjs +1 -1
  148. package/bundled/text-field.js +1 -1
  149. package/bundled/time-selection-picker.template.cjs +4 -4
  150. package/bundled/time-selection-picker.template.js +10 -7
  151. package/bundled/trapped-focus.cjs +1 -1
  152. package/bundled/utils.cjs +1 -1
  153. package/bundled/vivid-element.cjs +3 -3
  154. package/bundled/vivid-element.js +397 -358
  155. package/bundled/when.cjs +1 -1
  156. package/bundled/when.js +1 -1
  157. package/bundled/with-contextual-help.cjs +1 -1
  158. package/bundled/with-contextual-help.js +1 -1
  159. package/bundled/with-error-text.cjs +1 -1
  160. package/bundled/with-success-text.cjs +1 -1
  161. package/button/index.cjs +1 -1
  162. package/button/index.js +1 -1
  163. package/calendar/index.cjs +1 -1
  164. package/calendar/index.js +7 -7
  165. package/calendar-event/index.cjs +2 -2
  166. package/calendar-event/index.js +10 -8
  167. package/card/index.cjs +4 -2
  168. package/card/index.js +12 -7
  169. package/checkbox/index.cjs +1 -1
  170. package/color-picker/index.cjs +17 -17
  171. package/color-picker/index.js +19 -17
  172. package/combobox/index.cjs +9 -9
  173. package/combobox/index.js +46 -44
  174. package/contextual-help/index.cjs +1 -1
  175. package/contextual-help/index.js +1 -1
  176. package/country/index.cjs +1 -1
  177. package/country-group/index.cjs +1 -1
  178. package/country-group/index.js +8 -4
  179. package/custom-elements.json +7322 -7254
  180. package/data-grid/index.cjs +6 -6
  181. package/data-grid/index.js +92 -99
  182. package/date-picker/index.cjs +1 -1
  183. package/date-picker/index.js +10 -6
  184. package/date-range-picker/index.cjs +1 -1
  185. package/date-range-picker/index.js +13 -9
  186. package/date-time-picker/index.cjs +1 -1
  187. package/date-time-picker/index.js +11 -7
  188. package/dial-pad/index.cjs +4 -3
  189. package/dial-pad/index.js +14 -9
  190. package/dialog/index.cjs +1 -1
  191. package/dialog/index.js +9 -6
  192. package/divider/index.cjs +1 -1
  193. package/elevation/definition.cjs +1 -0
  194. package/elevation/definition.js +2 -2
  195. package/elevation/index.cjs +1 -1
  196. package/elevation/index.js +1 -1
  197. package/empty-state/index.cjs +3 -3
  198. package/empty-state/index.js +18 -6
  199. package/fab/index.cjs +3 -3
  200. package/fab/index.js +14 -6
  201. package/file-picker/index.cjs +8 -10
  202. package/file-picker/index.js +25 -22
  203. package/flag/index.cjs +1 -1
  204. package/flag/index.js +7 -3
  205. package/form-field/definition.cjs +5 -0
  206. package/form-field/definition.js +2 -0
  207. package/form-field/index.cjs +29 -0
  208. package/form-field/index.js +57 -0
  209. package/header/definition.cjs +1 -1
  210. package/header/definition.js +1 -1
  211. package/header/index.cjs +1 -1
  212. package/header/index.js +9 -5
  213. package/icon/index.cjs +1 -1
  214. package/icon/index.js +1 -1
  215. package/index.cjs +159 -154
  216. package/index.js +42 -40
  217. package/kbd-key/definition.cjs +1 -1
  218. package/kbd-key/definition.js +1 -1
  219. package/kbd-key/index.cjs +3 -3
  220. package/kbd-key/index.js +22 -13
  221. package/kbd-shortcut/definition.cjs +1 -1
  222. package/kbd-shortcut/definition.js +1 -1
  223. package/kbd-shortcut/index.cjs +1 -1
  224. package/kbd-shortcut/index.js +6 -6
  225. package/layout/definition.cjs +1 -1
  226. package/layout/definition.js +1 -1
  227. package/layout/index.cjs +1 -1
  228. package/layout/index.js +7 -3
  229. package/lib/accordion-item/accordion-item.d.ts +11 -6
  230. package/lib/action-group/action-group.d.ts +10 -5
  231. package/lib/alert/alert.d.ts +15 -18
  232. package/lib/avatar/avatar.d.ts +16 -7
  233. package/lib/badge/badge.d.ts +17 -7
  234. package/lib/banner/banner.d.ts +18 -20
  235. package/lib/button/button.d.ts +25 -16
  236. package/lib/calendar-event/calendar-event.d.ts +14 -7
  237. package/lib/checkbox/checkbox.d.ts +31 -28
  238. package/lib/combobox/combobox.d.ts +37 -32
  239. package/lib/components.d.ts +1 -0
  240. package/lib/data-grid/data-grid.options.d.ts +6 -1
  241. package/lib/dial-pad/locale.d.ts +1 -0
  242. package/lib/divider/divider.d.ts +9 -6
  243. package/lib/elevation/definition.d.ts +2 -0
  244. package/lib/empty-state/empty-state.d.ts +7 -2
  245. package/lib/fab/fab.d.ts +3 -2
  246. package/lib/form-field/definition.d.ts +4 -0
  247. package/lib/form-field/form-field.d.ts +6 -0
  248. package/lib/form-field/form-field.template.d.ts +3 -0
  249. package/lib/kbd-key/kbd-key.d.ts +7 -2
  250. package/lib/listbox/listbox.d.ts +1 -0
  251. package/lib/menu-item/menu-item.d.ts +17 -14
  252. package/lib/nav-disclosure/nav-disclosure.d.ts +18 -11
  253. package/lib/nav-item/nav-item.d.ts +19 -12
  254. package/lib/note/note.d.ts +10 -6
  255. package/lib/number-field/number-field.d.ts +45 -40
  256. package/lib/option/option.d.ts +13 -10
  257. package/lib/popup/definition.d.ts +2 -0
  258. package/lib/progress/progress.d.ts +10 -5
  259. package/lib/progress-ring/progress-ring.d.ts +9 -5
  260. package/lib/radio/radio.d.ts +18 -15
  261. package/lib/range-slider/range-slider.d.ts +19 -15
  262. package/lib/rich-text-editor/rich-text-editor.d.ts +9 -5
  263. package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
  264. package/lib/searchable-select/option-tag.d.ts +12 -7
  265. package/lib/searchable-select/searchable-select.d.ts +7 -2
  266. package/lib/select/select.d.ts +45 -40
  267. package/lib/selectable-box/selectable-box.d.ts +9 -5
  268. package/lib/slider/slider.d.ts +18 -14
  269. package/lib/split-button/split-button.d.ts +24 -15
  270. package/lib/status/status.d.ts +10 -7
  271. package/lib/switch/switch.d.ts +13 -9
  272. package/lib/tab/tab.d.ts +19 -14
  273. package/lib/tabs/tabs.d.ts +6 -3
  274. package/lib/tag/tag.d.ts +24 -15
  275. package/lib/tag-name-map.d.ts +2 -1
  276. package/lib/text-field/text-field.d.ts +46 -41
  277. package/lib/video-player/__tests__/video-fixtures.d.ts +3 -0
  278. package/listbox/definition.cjs +1 -1
  279. package/listbox/definition.js +1 -1
  280. package/listbox/index.cjs +7 -5
  281. package/listbox/index.js +24 -10
  282. package/locales/de-DE.cjs +34 -33
  283. package/locales/de-DE.js +34 -33
  284. package/locales/en-GB.cjs +34 -33
  285. package/locales/en-GB.js +34 -33
  286. package/locales/ja-JP.cjs +35 -33
  287. package/locales/ja-JP.js +35 -33
  288. package/locales/zh-CN.cjs +34 -33
  289. package/locales/zh-CN.js +34 -33
  290. package/menu/index.cjs +1 -1
  291. package/menu-item/index.cjs +1 -1
  292. package/nav/definition.cjs +1 -1
  293. package/nav/definition.js +1 -1
  294. package/nav/index.cjs +1 -1
  295. package/nav/index.js +6 -4
  296. package/nav-disclosure/definition.cjs +1 -1
  297. package/nav-disclosure/definition.js +1 -1
  298. package/nav-disclosure/index.cjs +3 -3
  299. package/nav-disclosure/index.js +13 -8
  300. package/nav-item/definition.cjs +1 -1
  301. package/nav-item/definition.js +1 -1
  302. package/nav-item/index.cjs +2 -2
  303. package/nav-item/index.js +15 -10
  304. package/note/definition.cjs +1 -1
  305. package/note/definition.js +1 -1
  306. package/note/index.cjs +6 -4
  307. package/note/index.js +22 -9
  308. package/number-field/definition.cjs +1 -1
  309. package/number-field/definition.js +1 -1
  310. package/number-field/index.cjs +11 -11
  311. package/number-field/index.js +41 -36
  312. package/optgroup/index.cjs +1 -1
  313. package/option/index.cjs +1 -1
  314. package/package.json +29 -36
  315. package/pagination/definition.cjs +1 -1
  316. package/pagination/definition.js +1 -1
  317. package/pagination/index.cjs +1 -1
  318. package/pagination/index.js +9 -9
  319. package/platform-switch/definition.cjs +1 -1
  320. package/platform-switch/definition.js +1 -1
  321. package/platform-switch/index.cjs +1 -1
  322. package/platform-switch/index.js +6 -2
  323. package/popover/definition.cjs +1 -1
  324. package/popover/definition.js +1 -1
  325. package/popover/index.cjs +2 -2
  326. package/popover/index.js +43 -35
  327. package/popup/definition.cjs +1 -0
  328. package/popup/definition.js +2 -2
  329. package/popup/index.cjs +1 -1
  330. package/popup/index.js +1 -1
  331. package/progress/definition.cjs +1 -1
  332. package/progress/definition.js +1 -1
  333. package/progress/index.cjs +7 -7
  334. package/progress/index.js +21 -11
  335. package/progress-ring/index.cjs +1 -1
  336. package/progress-ring/index.js +1 -1
  337. package/radio/definition.cjs +1 -1
  338. package/radio/definition.js +1 -1
  339. package/radio/index.cjs +1 -1
  340. package/radio-group/definition.cjs +1 -1
  341. package/radio-group/definition.js +1 -1
  342. package/radio-group/index.cjs +2 -2
  343. package/radio-group/index.js +14 -9
  344. package/range-slider/definition.cjs +1 -1
  345. package/range-slider/definition.js +1 -1
  346. package/range-slider/index.cjs +8 -8
  347. package/range-slider/index.js +31 -32
  348. package/rich-text-editor/definition.cjs +1 -1
  349. package/rich-text-editor/definition.js +1 -1
  350. package/rich-text-editor/index.cjs +13 -10
  351. package/rich-text-editor/index.js +1942 -1711
  352. package/rich-text-view/definition.cjs +1 -1
  353. package/rich-text-view/definition.js +1 -1
  354. package/rich-text-view/index.cjs +1 -1
  355. package/rich-text-view/index.js +6 -4
  356. package/searchable-select/definition.cjs +1 -1
  357. package/searchable-select/definition.js +1 -1
  358. package/searchable-select/index.cjs +22 -22
  359. package/searchable-select/index.js +97 -93
  360. package/select/definition.cjs +1 -1
  361. package/select/definition.js +1 -1
  362. package/select/index.cjs +1 -1
  363. package/selectable-box/definition.cjs +1 -1
  364. package/selectable-box/definition.js +1 -1
  365. package/selectable-box/index.cjs +8 -8
  366. package/selectable-box/index.js +24 -20
  367. package/shared/patterns/anchored.d.ts +2 -0
  368. package/shared/styles/appearance.d.ts +2 -0
  369. package/shared/styles/connotation.d.ts +2 -0
  370. package/shared/styles/connotationOverrides.d.ts +1 -0
  371. package/shared/utils/component-enum.d.ts +7 -0
  372. package/side-drawer/definition.cjs +1 -1
  373. package/side-drawer/definition.js +1 -1
  374. package/side-drawer/index.cjs +1 -1
  375. package/side-drawer/index.js +10 -7
  376. package/simple-color-picker/definition.cjs +1 -1
  377. package/simple-color-picker/definition.js +1 -1
  378. package/simple-color-picker/index.cjs +2 -2
  379. package/simple-color-picker/index.js +20 -20
  380. package/slider/definition.cjs +2 -1
  381. package/slider/definition.js +2 -1
  382. package/slider/index.cjs +1 -1
  383. package/slider/index.js +1 -1
  384. package/split-button/definition.cjs +1 -1
  385. package/split-button/definition.js +1 -1
  386. package/split-button/index.cjs +9 -7
  387. package/split-button/index.js +58 -37
  388. package/status/definition.cjs +1 -1
  389. package/status/definition.js +1 -1
  390. package/status/index.cjs +5 -5
  391. package/status/index.js +22 -13
  392. package/switch/definition.cjs +1 -1
  393. package/switch/definition.js +1 -1
  394. package/switch/index.cjs +3 -3
  395. package/switch/index.js +22 -11
  396. package/tab/definition.cjs +1 -1
  397. package/tab/definition.js +1 -1
  398. package/tab/index.cjs +1 -1
  399. package/tab/index.js +1 -1
  400. package/tab-panel/definition.cjs +1 -1
  401. package/tab-panel/definition.js +1 -1
  402. package/tab-panel/index.cjs +1 -1
  403. package/tab-panel/index.js +1 -1
  404. package/table/definition.cjs +1 -1
  405. package/table/definition.js +1 -1
  406. package/table/index.cjs +4 -2
  407. package/table/index.js +12 -10
  408. package/tabs/definition.cjs +1 -1
  409. package/tabs/definition.js +1 -1
  410. package/tabs/index.cjs +4 -4
  411. package/tabs/index.js +32 -30
  412. package/tag/definition.cjs +1 -1
  413. package/tag/definition.js +1 -1
  414. package/tag/index.cjs +6 -6
  415. package/tag/index.js +28 -12
  416. package/tag-group/definition.cjs +1 -1
  417. package/tag-group/definition.js +1 -1
  418. package/tag-group/index.cjs +1 -1
  419. package/tag-group/index.js +6 -4
  420. package/text-area/definition.cjs +1 -1
  421. package/text-area/definition.js +1 -1
  422. package/text-area/index.cjs +5 -5
  423. package/text-area/index.js +18 -15
  424. package/text-field/index.cjs +1 -1
  425. package/text-field/index.js +1 -1
  426. package/time-picker/definition.cjs +1 -1
  427. package/time-picker/definition.js +1 -1
  428. package/time-picker/index.cjs +1 -1
  429. package/time-picker/index.js +9 -6
  430. package/toggletip/index.cjs +1 -1
  431. package/toggletip/index.js +1 -1
  432. package/tooltip/index.cjs +1 -1
  433. package/tooltip/index.js +1 -1
  434. package/tree-item/definition.cjs +1 -1
  435. package/tree-item/definition.js +1 -1
  436. package/tree-item/index.cjs +1 -1
  437. package/tree-item/index.js +1 -1
  438. package/tree-view/definition.cjs +1 -1
  439. package/tree-view/definition.js +1 -1
  440. package/tree-view/index.cjs +1 -1
  441. package/tree-view/index.js +7 -5
  442. package/unbundled/affix.cjs +0 -1
  443. package/unbundled/anchored.cjs +39 -1
  444. package/unbundled/anchored.js +28 -1
  445. package/unbundled/aria-binding-directive.cjs +2 -2
  446. package/unbundled/aria-binding-directive.js +2 -1
  447. package/unbundled/base-color-picker.cjs +0 -1
  448. package/unbundled/base-progress.cjs +0 -1
  449. package/unbundled/breadcrumb-item.cjs +0 -1
  450. package/unbundled/button.cjs +0 -1
  451. package/unbundled/calendar-event.cjs +29 -1
  452. package/unbundled/calendar-event.js +18 -1
  453. package/unbundled/calendar-picker.template.cjs +109 -91
  454. package/unbundled/calendar-picker.template.js +109 -90
  455. package/unbundled/char-count.cjs +0 -1
  456. package/unbundled/component-enum.cjs +18 -0
  457. package/unbundled/component-enum.js +13 -0
  458. package/unbundled/data-grid.options.cjs +8 -0
  459. package/unbundled/data-grid.options.js +3 -1
  460. package/unbundled/decorate.cjs +1 -1
  461. package/unbundled/decorate.js +1 -1
  462. package/unbundled/definition.cjs +1 -2
  463. package/unbundled/definition.js +1 -1
  464. package/unbundled/definition10.cjs +2 -343
  465. package/unbundled/definition10.js +4 -338
  466. package/unbundled/definition11.cjs +6 -7
  467. package/unbundled/definition11.js +6 -6
  468. package/unbundled/definition12.cjs +4 -4
  469. package/unbundled/definition12.js +5 -4
  470. package/unbundled/definition13.cjs +2 -2
  471. package/unbundled/definition13.js +2 -1
  472. package/unbundled/definition14.cjs +11 -3
  473. package/unbundled/definition14.js +11 -2
  474. package/unbundled/definition15.cjs +26 -5
  475. package/unbundled/definition15.js +26 -4
  476. package/unbundled/definition16.cjs +20 -14
  477. package/unbundled/definition16.js +20 -13
  478. package/unbundled/definition17.cjs +0 -1
  479. package/unbundled/definition18.cjs +4 -3
  480. package/unbundled/definition18.js +4 -2
  481. package/unbundled/definition19.cjs +2 -3
  482. package/unbundled/definition19.js +9 -8
  483. package/unbundled/definition2.cjs +8 -3
  484. package/unbundled/definition2.js +8 -2
  485. package/unbundled/definition20.cjs +1 -2
  486. package/unbundled/definition20.js +7 -6
  487. package/unbundled/definition21.cjs +4 -3
  488. package/unbundled/definition21.js +4 -2
  489. package/unbundled/definition22.cjs +0 -1
  490. package/unbundled/definition23.cjs +12 -6
  491. package/unbundled/definition23.js +11 -4
  492. package/unbundled/definition24.cjs +4 -4
  493. package/unbundled/definition24.js +5 -4
  494. package/unbundled/definition25.cjs +2 -3
  495. package/unbundled/definition25.js +2 -2
  496. package/unbundled/definition26.cjs +6 -4
  497. package/unbundled/definition26.js +5 -2
  498. package/unbundled/definition27.cjs +2 -2
  499. package/unbundled/definition27.js +2 -1
  500. package/unbundled/definition28.cjs +3 -3
  501. package/unbundled/definition28.js +2 -1
  502. package/unbundled/definition29.cjs +2 -3
  503. package/unbundled/definition29.js +3 -3
  504. package/unbundled/definition3.cjs +5 -6
  505. package/unbundled/definition3.js +5 -5
  506. package/unbundled/definition30.cjs +0 -1
  507. package/unbundled/definition31.cjs +15 -13
  508. package/unbundled/definition31.js +14 -11
  509. package/unbundled/definition32.cjs +0 -1
  510. package/unbundled/definition33.cjs +0 -1
  511. package/unbundled/definition34.cjs +0 -1
  512. package/unbundled/definition35.cjs +39 -51
  513. package/unbundled/definition35.js +40 -51
  514. package/unbundled/definition36.cjs +2 -3
  515. package/unbundled/definition36.js +9 -8
  516. package/unbundled/definition37.cjs +0 -1
  517. package/unbundled/definition38.cjs +0 -1
  518. package/unbundled/definition39.cjs +0 -1
  519. package/unbundled/definition4.cjs +4 -3
  520. package/unbundled/definition4.js +11 -6
  521. package/unbundled/definition40.cjs +5 -4
  522. package/unbundled/definition40.js +5 -3
  523. package/unbundled/definition41.cjs +0 -1
  524. package/unbundled/definition42.cjs +11 -3
  525. package/unbundled/definition42.js +11 -2
  526. package/unbundled/definition43.cjs +7 -3
  527. package/unbundled/definition43.js +7 -2
  528. package/unbundled/definition44.cjs +12 -11
  529. package/unbundled/definition44.js +11 -9
  530. package/unbundled/definition45.cjs +73 -52
  531. package/unbundled/definition45.js +69 -47
  532. package/unbundled/definition46.cjs +53 -46
  533. package/unbundled/definition46.js +49 -41
  534. package/unbundled/definition47.cjs +40 -165
  535. package/unbundled/definition47.js +36 -160
  536. package/unbundled/definition48.cjs +177 -32
  537. package/unbundled/definition48.js +174 -22
  538. package/unbundled/definition49.cjs +32 -596
  539. package/unbundled/definition49.js +29 -591
  540. package/unbundled/definition5.cjs +9 -3
  541. package/unbundled/definition5.js +15 -7
  542. package/unbundled/definition50.cjs +609 -78
  543. package/unbundled/definition50.js +605 -75
  544. package/unbundled/definition51.cjs +74 -34
  545. package/unbundled/definition51.js +70 -29
  546. package/unbundled/definition52.cjs +59 -24
  547. package/unbundled/definition52.js +57 -18
  548. package/unbundled/definition53.cjs +23 -40
  549. package/unbundled/definition53.js +19 -35
  550. package/unbundled/definition54.cjs +40 -316
  551. package/unbundled/definition54.js +38 -313
  552. package/unbundled/definition55.cjs +305 -196
  553. package/unbundled/definition55.js +301 -191
  554. package/unbundled/definition56.cjs +210 -41
  555. package/unbundled/definition56.js +206 -36
  556. package/unbundled/definition57.cjs +42 -271
  557. package/unbundled/definition57.js +38 -266
  558. package/unbundled/definition58.cjs +286 -51
  559. package/unbundled/definition58.js +283 -46
  560. package/unbundled/definition59.cjs +58 -147
  561. package/unbundled/definition59.js +59 -144
  562. package/unbundled/definition6.cjs +20 -6
  563. package/unbundled/definition6.js +20 -5
  564. package/unbundled/definition60.cjs +129 -226
  565. package/unbundled/definition60.js +126 -222
  566. package/unbundled/definition61.cjs +200 -420
  567. package/unbundled/definition61.js +197 -416
  568. package/unbundled/definition62.cjs +442 -3743
  569. package/unbundled/definition62.js +433 -3570
  570. package/unbundled/definition63.cjs +3729 -729
  571. package/unbundled/definition63.js +3558 -721
  572. package/unbundled/definition64.cjs +784 -98
  573. package/unbundled/definition64.js +781 -94
  574. package/unbundled/definition65.cjs +100 -1003
  575. package/unbundled/definition65.js +98 -997
  576. package/unbundled/definition66.cjs +996 -94
  577. package/unbundled/definition66.js +992 -89
  578. package/unbundled/definition67.cjs +111 -74
  579. package/unbundled/definition67.js +107 -63
  580. package/unbundled/definition68.cjs +69 -157
  581. package/unbundled/definition68.js +65 -152
  582. package/unbundled/definition69.cjs +156 -120
  583. package/unbundled/definition69.js +152 -115
  584. package/unbundled/definition7.cjs +0 -1
  585. package/unbundled/definition7.js +10 -4
  586. package/unbundled/definition70.cjs +154 -50
  587. package/unbundled/definition70.js +150 -45
  588. package/unbundled/definition71.cjs +58 -86
  589. package/unbundled/definition71.js +57 -81
  590. package/unbundled/definition72.cjs +99 -20
  591. package/unbundled/definition72.js +98 -15
  592. package/unbundled/definition73.cjs +20 -89
  593. package/unbundled/definition73.js +16 -84
  594. package/unbundled/definition74.cjs +79 -296
  595. package/unbundled/definition74.js +73 -217
  596. package/unbundled/definition75.cjs +291 -312
  597. package/unbundled/definition75.js +221 -306
  598. package/unbundled/definition76.cjs +328 -27
  599. package/unbundled/definition76.js +320 -23
  600. package/unbundled/definition77.cjs +27 -125
  601. package/unbundled/definition77.js +23 -120
  602. package/unbundled/definition78.cjs +120 -233
  603. package/unbundled/definition78.js +116 -228
  604. package/unbundled/definition79.cjs +258 -26
  605. package/unbundled/definition79.js +249 -23
  606. package/unbundled/definition8.cjs +17 -10
  607. package/unbundled/definition8.js +17 -9
  608. package/unbundled/definition80.cjs +29 -149
  609. package/unbundled/definition80.js +27 -134
  610. package/unbundled/definition81.cjs +118 -174
  611. package/unbundled/definition81.js +109 -169
  612. package/unbundled/definition82.cjs +180 -477
  613. package/unbundled/definition82.js +178 -472
  614. package/unbundled/definition83.cjs +517 -0
  615. package/unbundled/definition83.js +498 -0
  616. package/unbundled/definition9.cjs +4 -3
  617. package/unbundled/definition9.js +4 -2
  618. package/unbundled/delegates-aria.cjs +4 -2
  619. package/unbundled/delegates-aria.js +4 -2
  620. package/unbundled/divider.cjs +8 -3
  621. package/unbundled/divider.js +3 -3
  622. package/unbundled/en-US.cjs +34 -33
  623. package/unbundled/en-US.js +34 -33
  624. package/unbundled/feedback-message.cjs +59 -0
  625. package/unbundled/feedback-message.js +48 -0
  626. package/unbundled/form-associated.cjs +1 -4
  627. package/unbundled/form-associated.js +1 -3
  628. package/unbundled/form-element.cjs +0 -1
  629. package/unbundled/icon.cjs +0 -1
  630. package/unbundled/kbd-shortcut.cjs +0 -1
  631. package/unbundled/linkable.cjs +0 -1
  632. package/unbundled/listbox.cjs +0 -2
  633. package/unbundled/listbox.js +0 -1
  634. package/unbundled/localized.cjs +0 -1
  635. package/unbundled/mixins.cjs +3 -54
  636. package/unbundled/mixins.js +3 -47
  637. package/unbundled/numberConverter.cjs +8 -3
  638. package/unbundled/numberConverter.js +8 -3
  639. package/unbundled/optgroup.cjs +0 -1
  640. package/unbundled/option.cjs +8 -1
  641. package/unbundled/option.js +3 -1
  642. package/unbundled/picker-field.template.cjs +1 -2
  643. package/unbundled/picker-field.template.js +1 -1
  644. package/unbundled/randomId.cjs +0 -1
  645. package/unbundled/{chunk.cjs → rolldown-runtime.cjs} +1 -1
  646. package/unbundled/scrollIntoView.cjs +0 -1
  647. package/unbundled/scrollIntoView.js +0 -1
  648. package/unbundled/slider.template.cjs +340 -2
  649. package/unbundled/slider.template.js +338 -5
  650. package/unbundled/text-field.cjs +1 -1
  651. package/unbundled/text-field.js +1 -1
  652. package/unbundled/time-selection-picker.template.cjs +2 -3
  653. package/unbundled/time-selection-picker.template.js +2 -2
  654. package/unbundled/vivid-element.cjs +63 -4
  655. package/unbundled/vivid-element.js +63 -3
  656. package/unbundled/with-contextual-help.cjs +0 -1
  657. package/unbundled/with-error-text.cjs +0 -1
  658. package/unbundled/with-success-text.cjs +0 -1
  659. package/video-player/definition.cjs +1 -1
  660. package/video-player/definition.js +1 -1
  661. package/video-player/index.cjs +31 -31
  662. package/video-player/index.js +2094 -2085
  663. package/visually-hidden/index.cjs +1 -1
  664. package/vivid.api.json +488 -1165
  665. package/lib/accordion/variations.browser-spec.d.ts +0 -1
  666. package/lib/action-group/variations.browser-spec.d.ts +0 -1
  667. package/lib/alert/variations.browser-spec.d.ts +0 -1
  668. package/lib/audio-player/variations.browser-spec.d.ts +0 -1
  669. package/lib/avatar/variations.browser-spec.d.ts +0 -1
  670. package/lib/badge/variations.browser-spec.d.ts +0 -1
  671. package/lib/banner/variations.browser-spec.d.ts +0 -1
  672. package/lib/breadcrumb-item/variations.browser-spec.d.ts +0 -1
  673. package/lib/button/variations.browser-spec.d.ts +0 -1
  674. package/lib/calendar/variations.browser-spec.d.ts +0 -1
  675. package/lib/calendar-event/variations.browser-spec.d.ts +0 -1
  676. package/lib/card/variations.browser-spec.d.ts +0 -1
  677. package/lib/checkbox/variations.browser-spec.d.ts +0 -1
  678. package/lib/color-picker/variations.browser-spec.d.ts +0 -1
  679. package/lib/combobox/variations.browser-spec.d.ts +0 -1
  680. package/lib/contextual-help/variations.browser-spec.d.ts +0 -1
  681. package/lib/country/variations.browser-spec.d.ts +0 -1
  682. package/lib/data-grid/variations.browser-spec.d.ts +0 -1
  683. package/lib/date-picker/variations.browser-spec.d.ts +0 -1
  684. package/lib/date-range-picker/variations.browser-spec.d.ts +0 -1
  685. package/lib/date-time-picker/variations.browser-spec.d.ts +0 -1
  686. package/lib/dial-pad/variations.browser-spec.d.ts +0 -1
  687. package/lib/dialog/variations.browser-spec.d.ts +0 -1
  688. package/lib/divider/variations.browser-spec.d.ts +0 -1
  689. package/lib/empty-state/variations.browser-spec.d.ts +0 -1
  690. package/lib/fab/variations.browser-spec.d.ts +0 -1
  691. package/lib/file-picker/variations.browser-spec.d.ts +0 -1
  692. package/lib/flag/variations.browser-spec.d.ts +0 -1
  693. package/lib/header/variations.browser-spec.d.ts +0 -1
  694. package/lib/icon/variations.browser-spec.d.ts +0 -1
  695. package/lib/kbd-key/variations.browser-spec.d.ts +0 -1
  696. package/lib/kbd-shortcut/variations.browser-spec.d.ts +0 -1
  697. package/lib/layout/variations.browser-spec.d.ts +0 -1
  698. package/lib/listbox/variations.browser-spec.d.ts +0 -1
  699. package/lib/menu/variations.browser-spec.d.ts +0 -1
  700. package/lib/menu-item/variations.browser-spec.d.ts +0 -1
  701. package/lib/nav/variations.browser-spec.d.ts +0 -1
  702. package/lib/nav-disclosure/variations.browser-spec.d.ts +0 -1
  703. package/lib/nav-item/variations.browser-spec.d.ts +0 -1
  704. package/lib/note/variations.browser-spec.d.ts +0 -1
  705. package/lib/number-field/variations.browser-spec.d.ts +0 -1
  706. package/lib/optgroup/variations.browser-spec.d.ts +0 -1
  707. package/lib/option/variations.browser-spec.d.ts +0 -1
  708. package/lib/pagination/variations.browser-spec.d.ts +0 -1
  709. package/lib/popover/variations.browser-spec.d.ts +0 -1
  710. package/lib/progress/variations.browser-spec.d.ts +0 -1
  711. package/lib/progress-ring/variations.browser-spec.d.ts +0 -1
  712. package/lib/radio/variations.browser-spec.d.ts +0 -1
  713. package/lib/radio-group/variations.browser-spec.d.ts +0 -1
  714. package/lib/range-slider/variations.browser-spec.d.ts +0 -1
  715. package/lib/rich-text-editor/variations.browser-spec.d.ts +0 -1
  716. package/lib/rich-text-view/variations.browser-spec.d.ts +0 -1
  717. package/lib/searchable-select/variations.browser-spec.d.ts +0 -1
  718. package/lib/select/variations.browser-spec.d.ts +0 -1
  719. package/lib/selectable-box/variations.browser-spec.d.ts +0 -1
  720. package/lib/side-drawer/variations.browser-spec.d.ts +0 -1
  721. package/lib/simple-color-picker/variations.browser-spec.d.ts +0 -1
  722. package/lib/slider/variations.browser-spec.d.ts +0 -1
  723. package/lib/split-button/variations.browser-spec.d.ts +0 -1
  724. package/lib/status/variations.browser-spec.d.ts +0 -1
  725. package/lib/switch/variations.browser-spec.d.ts +0 -1
  726. package/lib/table/variations.browser-spec.d.ts +0 -1
  727. package/lib/tabs/variations.browser-spec.d.ts +0 -1
  728. package/lib/tag/variations.browser-spec.d.ts +0 -1
  729. package/lib/text-area/variations.browser-spec.d.ts +0 -1
  730. package/lib/text-field/variations.browser-spec.d.ts +0 -1
  731. package/lib/time-picker/variations.browser-spec.d.ts +0 -1
  732. package/lib/toggletip/variations.browser-spec.d.ts +0 -1
  733. package/lib/tooltip/variations.browser-spec.d.ts +0 -1
  734. package/lib/tree-item/variations.browser-spec.d.ts +0 -1
  735. package/lib/video-player/variations.browser-spec.d.ts +0 -1
  736. /package/lib/{accordion-item/variations.browser-spec.d.ts → form-field/index.d.ts} +0 -0
  737. /package/unbundled/{chunk.js → rolldown-runtime.js} +0 -0
@@ -1,105 +1,79 @@
1
- import { A as e, P as t, d as n, m as r, p as i, t as a, u as o } from "./vivid-element.js";
2
- import { r as s, t as c } from "./slotted.js";
3
- import { t as l } from "./when.js";
4
- import { t as u } from "./decorate.js";
5
- import { t as d } from "./class-names.js";
6
- import { i as f, t as p } from "./definition8.js";
7
- import { n as m, t as h } from "./anchored.js";
8
- import { t as g } from "./kbd-shortcut.js";
9
- import { n as _, t as v } from "./render-in-light-dom.js";
10
- import { t as y } from "./dialog.js";
11
- //#region src/lib/tooltip/tooltip.scss?inline
12
- var b = ":host :host{display:var(--_popup-display,inline)}:host :host([slotted-anchor]){--_popup-display:contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size,auto);box-sizing:border-box;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);max-inline-size:var(--tooltip-max-inline-size,30ch);flex-direction:column;align-items:flex-start;gap:4px;padding:8px 12px;display:flex}.text-secondary{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base)}", x = class extends g(h(a)) {
1
+ import { t as e } from "./localized.js";
2
+ import { M as t, d as n, m as r, p as i, t as a, u as o } from "./vivid-element.js";
3
+ import { t as s } from "./when.js";
4
+ import { t as c } from "./decorate.js";
5
+ import { t as l } from "./class-names.js";
6
+ import { i as u, t as d } from "./definition7.js";
7
+ import { i as f, n as p, r as m, t as h } from "./anchored.js";
8
+ import { t as g } from "./dialog.js";
9
+ //#region src/lib/toggletip/toggletip.scss?inline
10
+ var _ = ":host :host{display:var(--_popup-display,inline)}:host :host([slotted-anchor]){--_popup-display:contents}.content-wrapper{width:var(--toggletip-inline-size,auto);max-inline-size:var(--toggletip-max-inline-size,30ch);padding:16px}.headline{font:var(--vvd-typography-base-bold);margin:0}.text-secondary{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base);margin:4px 0 0}.text-secondary:first-child{margin-block-start:0}.action-items{justify-content:flex-end;gap:10px;display:flex}::slotted([slot=action-items]){margin-block-start:16px}", v = class extends e(h(a)) {
13
11
  constructor(...e) {
14
- super(...e), this.open = !1, this._descriptionId = `vwc-tooltip-desc-${_()}`, this._descriptionSecondaryId = `vwc-tooltip-desc-secondary-${_()}`, this._defaultSlotContent = [], this.#i = () => {
15
- this.open = !0;
16
- }, this.#a = () => {
17
- this.open = !1;
12
+ super(...e), this.#e = null, this.alternate = !1, this.placement = "right", this.open = !1, this.#i = () => {
13
+ this.open || t.enqueue(() => this.open = !0);
14
+ }, this.#o = (e) => {
15
+ let t = !this.contains(e.target), n = this._anchorEl?.contains(e.target);
16
+ (t || n) && (this.open = !1);
18
17
  }, this.#s = (e) => {
19
18
  /* v8 ignore else -- @preserve */
20
- e.key === "Escape" && this.#a();
19
+ e.key === "Escape" && (this.open = !1);
21
20
  };
22
21
  }
23
- _defaultSlotContentChanged() {
24
- for (let e of this._defaultSlotContent) e.id ||= `vwc-tooltip-content-${_()}`;
25
- this._anchorEl && this.#t(this._anchorEl);
26
- }
27
- _kbdAriaShortcutsValueChanged() {
28
- this._anchorEl && t.setAttribute(this._anchorEl, "aria-keyshortcuts", this._kbdAriaShortcutsValue);
22
+ #e;
23
+ openChanged(e, t) {
24
+ e !== void 0 && (t ? this.setAttribute("role", "status") : this.removeAttribute("role"), this.#a(), this._anchorEl && this.#n(this._anchorEl));
29
25
  }
30
26
  connectedCallback() {
31
- super.connectedCallback(), this.#o();
27
+ super.connectedCallback(), this.#a();
32
28
  }
33
29
  disconnectedCallback() {
34
- super.disconnectedCallback(), this.#o();
30
+ super.disconnectedCallback(), this.#a();
35
31
  }
36
32
  _anchorElChanged(e, t) {
37
- e && this.#r(e), t && this.#n(t);
38
- }
39
- #e() {
40
- return [
41
- this._descriptionId,
42
- this._descriptionSecondaryId,
43
- ...this._defaultSlotContent.map((e) => e.id).filter(Boolean)
44
- ];
33
+ e && this.#r(e), t && this.#t(t);
45
34
  }
46
35
  #t(e) {
47
- let t = e.getAttribute("aria-describedby") ?? e.ariaDescribedBy ?? "", n = new Set(this.#e()), r = t.split(" ").filter((e) => e && !n.has(e));
48
- e.setAttribute("aria-describedby", [...r, ...this.#e()].join(" "));
36
+ e.addEventListener("click", this.#i, !0), this.#e = e.ariaLabel, e.ariaLabel = this.locale.toggletip.anchorLabel(e.ariaLabel || ""), this.#n(e);
49
37
  }
50
38
  #n(e) {
51
- e.addEventListener("mouseover", this.#i), e.addEventListener("mouseout", this.#a), e.addEventListener("focusin", this.#i), e.addEventListener("focusout", this.#a), this.#t(e), t.setAttribute(e, "aria-keyshortcuts", this._kbdAriaShortcutsValue);
39
+ e.setAttribute("aria-expanded", this.open.toString()), f(e, this.open);
52
40
  }
53
41
  #r(e) {
54
- e.removeEventListener("mouseover", this.#i), e.removeEventListener("mouseout", this.#a), e.removeEventListener("focusin", this.#i), e.removeEventListener("focusout", this.#a);
55
- let n = e.getAttribute("aria-describedby") ?? e.ariaDescribedBy ?? "", r = new Set(this.#e()), i = n.split(" ").filter((e) => e && !r.has(e)), a = i.length ? i.join(" ") : null;
56
- e.hasAttribute("aria-describedby") ? t.setAttribute(e, "aria-describedby", a) : e.ariaDescribedBy = a, e.removeAttribute("aria-keyshortcuts");
42
+ /* v8 ignore else -- @preserve */
43
+ e.removeEventListener("click", this.#i, !0), e.removeAttribute("aria-expanded"), m(e), e.ariaLabel &&= this.#e;
57
44
  }
58
45
  #i;
59
- #a;
60
- #o() {
61
- document.removeEventListener("keydown", this.#s), this.open && this.isConnected && document.addEventListener("keydown", this.#s);
46
+ #a() {
47
+ document.removeEventListener("click", this.#o), document.removeEventListener("keydown", this.#s), this.open && this.isConnected && (document.addEventListener("click", this.#o), document.addEventListener("keydown", this.#s));
62
48
  }
49
+ #o;
63
50
  #s;
64
- openChanged(e) {
65
- e !== void 0 && this.#o();
66
- }
67
51
  };
68
- u([r], x.prototype, "text", void 0), u([r({ attribute: "text-secondary" })], x.prototype, "textSecondary", void 0), u([r({ mode: "fromView" })], x.prototype, "placement", void 0), u([r({ mode: "boolean" })], x.prototype, "open", void 0), u([e], x.prototype, "_defaultSlotContent", void 0);
52
+ c([r], v.prototype, "headline", void 0), c([r({ attribute: "text-secondary" })], v.prototype, "textSecondary", void 0), c([r({ mode: "boolean" })], v.prototype, "alternate", void 0), c([r({ mode: "fromView" })], v.prototype, "placement", void 0), c([r({ mode: "boolean" })], v.prototype, "open", void 0);
69
53
  //#endregion
70
- //#region src/lib/tooltip/definition.ts
71
- var S = o("tooltip", x, (e) => {
72
- let t = e.tagFor(f);
54
+ //#region src/lib/toggletip/toggletip.template.ts
55
+ var y = (e) => l("control"), b = o("toggletip", v, (e) => {
56
+ let t = e.tagFor(u), n = p();
73
57
  return i`
74
- ${m()}
75
- ${v(i`<span slot="_description" id="${(e) => e._descriptionId}">${(e) => e.text}</span><span slot="_description-secondary" id="${(e) => e._descriptionSecondaryId}">${(e) => e.textSecondary}</span>`)}
76
- <${t} class="${(e) => d("control", ["open", e.open])}" arrow alternate
77
- :placement=${(e) => e.placement}
78
- :anchor="${(e) => e._anchorEl}"
79
- :open="${(e) => e.open}"
80
- @keydown="${(e, t) => {
81
- e.open && y(t.event) && (e.open = !1);
82
- }}"
83
- exportparts="vvd-theme-alternate">
84
- <div part="vvd-theme-alternate" class="tooltip" role="tooltip">
85
- <span class="text"><slot name="_description"></slot></span>
86
- ${l((e) => e.textSecondary, i`<span class="text-secondary"
87
- ><slot name="_description-secondary"></slot
88
- ></span>`)}
89
- <slot
90
- ${c({
91
- property: "_defaultSlotContent",
92
- filter: s()
93
- })}
94
- ></slot>
95
- <slot name="kbd-shortcut"
96
- ${c({
97
- property: "_kbdShortcutSlotted",
98
- filter: s()
99
- })}
100
- ></slot>
101
- </div>
102
- </${t}>`;
103
- }, [p], { styles: b }), C = n(S);
58
+ ${n}
59
+ <${t}
60
+ @keydown="${(e, { event: t }) => !(e.open && g(t))}"
61
+ class="${y}"
62
+ arrow
63
+ :anchor="${(e) => e._anchorEl}"
64
+ :open="${(e) => e.open}"
65
+ ?alternate="${(e) => !e.alternate}"
66
+ placement="${(e) => e.placement}"
67
+ exportparts="vvd-theme-alternate"
68
+ >
69
+ <div class="content-wrapper">
70
+ ${s((e) => e.headline, i`<h2 class="headline">${(e) => e.headline}</h2>`)}
71
+ ${s((e) => e.textSecondary, i`<p class="text-secondary">${(e) => e.textSecondary}</p>`)}
72
+ <slot></slot>
73
+ <div class="action-items"><slot name="action-items"></slot></div>
74
+ </div>
75
+ </${t}>
76
+ `;
77
+ }, [d], { styles: _ }), x = n(b);
104
78
  //#endregion
105
- export { S as n, x as r, C as t };
79
+ export { b as n, v as r, x as t };
@@ -1 +1 @@
1
- const e=require(`./vivid-element.cjs`),t=require(`./aria-binding-directive.cjs`);function n(n={},r={}){return new t.t({boundProperties:n,forwardedValueProperties:new Set((r.onlySpecified?[]:e.a).filter(e=>!(e in n))),forwardedIdrefsProperties:new Set((r.onlySpecified?[]:e.i).filter(e=>!(e in n)))})}var r=n=>{class r extends n{constructor(...e){super(...e),this._vividAriaBehaviour=`delegate`}}for(let n of e.i)r.prototype[`${n}Changed`]=function(){t.n.for(this,n).setAttribute(this[n])},Object.defineProperty(r.prototype,`${n}Elements`,{get(){return t.n.resolvedElements(this,n)},set(e){t.n.for(this,n).setElements(e)}});return r};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
1
+ const e=require("./vivid-element.cjs"),t=require("./aria-binding-directive.cjs");function n(n={},r={}){let i=new Set((r.onlySpecified?[]:e.a).filter(e=>!(e in n))),a=new Set((r.onlySpecified?[]:e.i).filter(e=>!(e in n)));return new t.t({boundProperties:n,forwardedValueProperties:i,forwardedIdrefsProperties:a})}var r=n=>{class r extends n{constructor(...e){super(...e),this._vividAriaBehaviour=`delegate`}}for(let n of e.i)r.prototype[`${n}Changed`]=function(){t.n.for(this,n).setAttribute(this[n])},Object.defineProperty(r.prototype,`${n}Elements`,{get(){return t.n.resolvedElements(this,n)},set(e){t.n.for(this,n).setElements(e)}});return r};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
@@ -2,10 +2,11 @@ import { a as e, i as t } from "./vivid-element.js";
2
2
  import { n, t as r } from "./aria-binding-directive.js";
3
3
  //#region src/shared/aria/delegates-aria.ts
4
4
  function i(n = {}, i = {}) {
5
+ let a = new Set((i.onlySpecified ? [] : e).filter((e) => !(e in n))), o = new Set((i.onlySpecified ? [] : t).filter((e) => !(e in n)));
5
6
  return new r({
6
7
  boundProperties: n,
7
- forwardedValueProperties: new Set((i.onlySpecified ? [] : e).filter((e) => !(e in n))),
8
- forwardedIdrefsProperties: new Set((i.onlySpecified ? [] : t).filter((e) => !(e in n)))
8
+ forwardedValueProperties: a,
9
+ forwardedIdrefsProperties: o
9
10
  });
10
11
  }
11
12
  var a = (e) => {
@@ -1 +1 @@
1
- function e(e){return e.key===`Escape`?(e.stopPropagation(),!0):!1}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
1
+ function e(e){return e.key===`Escape`&&(e.stopPropagation(),!0)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e}});
package/bundled/dialog.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region src/shared/dialog/index.ts
2
2
  function e(e) {
3
- return e.key === "Escape" ? (e.stopPropagation(), !0) : !1;
3
+ return e.key === "Escape" && (e.stopPropagation(), !0);
4
4
  }
5
5
  //#endregion
6
6
  export { e as t };
@@ -1 +1 @@
1
- const e=require(`./vivid-element.cjs`),t=require(`./enums.cjs`),n=require(`./decorate.cjs`),r=require(`./aria.cjs`),i=require(`./host-semantics.cjs`);var a={separator:`separator`,presentation:`presentation`},o=class extends i.t(e.t){constructor(...e){super(...e),this.role=a.separator,this.orientation=r.t.horizontal,this.appearance=t.t.Ghost}};n.t([e.m],o.prototype,`orientation`,void 0),n.t([e.m],o.prototype,`appearance`,void 0),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
1
+ const e=require("./vivid-element.cjs"),t=require("./decorate.cjs"),n=require("./aria.cjs"),r=require("./host-semantics.cjs");var i=require("./component-enum.cjs").t([`ghost`,`subtle`],`ghost`),a={separator:`separator`,presentation:`presentation`},o=class extends r.t(e.t){constructor(...e){super(...e),this.role=a.separator,this.orientation=n.t.horizontal}};t.t([e.m],o.prototype,`orientation`,void 0),t.t([e.m],o.prototype,`appearance`,void 0),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
@@ -1,17 +1,17 @@
1
1
  import { m as e, t } from "./vivid-element.js";
2
- import { t as n } from "./enums.js";
3
- import { t as r } from "./decorate.js";
4
- import { t as i } from "./aria.js";
5
- import { t as a } from "./host-semantics.js";
2
+ import { t as n } from "./decorate.js";
3
+ import { t as r } from "./aria.js";
4
+ import { t as i } from "./host-semantics.js";
5
+ import { t as a } from "./component-enum.js";
6
6
  //#region src/lib/divider/divider.ts
7
- var o = {
7
+ var o = a(["ghost", "subtle"], "ghost"), s = {
8
8
  separator: "separator",
9
9
  presentation: "presentation"
10
- }, s = class extends a(t) {
10
+ }, c = class extends i(t) {
11
11
  constructor(...e) {
12
- super(...e), this.role = o.separator, this.orientation = i.horizontal, this.appearance = n.Ghost;
12
+ super(...e), this.role = s.separator, this.orientation = r.horizontal;
13
13
  }
14
14
  };
15
- r([e], s.prototype, "orientation", void 0), r([e], s.prototype, "appearance", void 0);
15
+ n([e], c.prototype, "orientation", void 0), n([e], c.prototype, "appearance", void 0);
16
16
  //#endregion
17
- export { o as n, s as t };
17
+ export { s as n, o as r, c as t };
package/bundled/dom.cjs CHANGED
@@ -1 +1 @@
1
- function e(...e){return e.every(e=>e instanceof HTMLElement)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
1
+ function e(...e){return e.every(e=>e instanceof HTMLElement)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e}});
package/bundled/enums.cjs CHANGED
@@ -1 +1 @@
1
- var e=function(e){return e.Accent=`accent`,e.CTA=`cta`,e.Success=`success`,e.Alert=`alert`,e.Warning=`warning`,e.Information=`information`,e.Announcement=`announcement`,e}({}),t=function(e){return e.Rounded=`rounded`,e.Pill=`pill`,e.Circled=`circled`,e.Sharp=`sharp`,e}({}),n=function(e){return e.Filled=`filled`,e.Outlined=`outlined`,e.Duotone=`duotone`,e.Fieldset=`fieldset`,e.Subtle=`subtle`,e.SubtleLight=`subtle-light`,e.Ghost=`ghost`,e.GhostLight=`ghost-light`,e.OutlinedLight=`outlined-light`,e.Listitem=`listitem`,e.Elevated=`elevated`,e}({}),r=function(e){return e.UltraCondensed=`ultra-condensed`,e.SuperCondensed=`super-condensed`,e.ExtraCondensed=`extra-condensed`,e.SemiCondensed=`semi-condensed`,e.Condensed=`condensed`,e.Normal=`normal`,e.SemiExpanded=`semi-expanded`,e.Expanded=`expanded`,e.ExtraExpanded=`extra-expanded`,e.SuperExpanded=`super-expanded`,e.UltraExpanded=`ultra-expanded`,e}({}),i=function(e){return e.Zero=`0`,e.Five=`5`,e.Ten=`10`,e.Thirty=`30`,e}({}),a=function(e){return e.None=`none`,e.Header=`header`,e.Column=`column`,e.All=`all`,e}({});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
1
+ var e=function(e){return e.Accent=`accent`,e.CTA=`cta`,e.Success=`success`,e.Alert=`alert`,e.Warning=`warning`,e.Information=`information`,e.Announcement=`announcement`,e}({}),t=function(e){return e.Rounded=`rounded`,e.Pill=`pill`,e.Circled=`circled`,e.Sharp=`sharp`,e}({}),n=function(e){return e.Filled=`filled`,e.Outlined=`outlined`,e.Duotone=`duotone`,e.Fieldset=`fieldset`,e.Subtle=`subtle`,e.SubtleLight=`subtle-light`,e.Ghost=`ghost`,e.GhostLight=`ghost-light`,e.OutlinedLight=`outlined-light`,e.Listitem=`listitem`,e.Elevated=`elevated`,e}({}),r=function(e){return e.UltraCondensed=`ultra-condensed`,e.SuperCondensed=`super-condensed`,e.ExtraCondensed=`extra-condensed`,e.SemiCondensed=`semi-condensed`,e.Condensed=`condensed`,e.Normal=`normal`,e.SemiExpanded=`semi-expanded`,e.Expanded=`expanded`,e.ExtraExpanded=`extra-expanded`,e.SuperExpanded=`super-expanded`,e.UltraExpanded=`ultra-expanded`,e}({}),i=function(e){return e.Zero=`0`,e.Five=`5`,e.Ten=`10`,e.Thirty=`30`,e}({}),a=function(e){return e.None=`none`,e.Header=`header`,e.Column=`column`,e.All=`all`,e}({});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
@@ -1 +1 @@
1
- const e=require(`./option.cjs`),t=require(`./optgroup.cjs`);function n(n){let r=[];for(let i of n)if(e.n(i))r.push(i);else if(t.n(i))for(let t of Array.from(i.children))e.n(t)&&r.push(t);return r}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
1
+ const e=require("./option.cjs"),t=require("./optgroup.cjs");function n(n){let r=[];for(let i of n)if(e.n(i))r.push(i);else if(t.n(i))for(let t of Array.from(i.children))e.n(t)&&r.push(t);return r}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,8 @@
1
+ const e=require("./localized.cjs"),t=require("./vivid-element.cjs"),n=require("./when.cjs"),r=require("./definition.cjs"),i=require("./decorate.cjs"),a=require("./class-names.cjs"),o=require("./definition2.cjs"),s=require("./icon.cjs");var c=`:host{display:contents}.message{contain:inline-size;font:var(--vvd-typography-base-condensed);grid-column:1/-1;gap:4px;display:flex}.message.none-message{display:none}.message.helper-message{color:var(--_low-ink-color)}.message.error-message,.message.success-message{color:var(--vvd-color-canvas-text)}slot{display:inline}.icon{font-size:16px}.error-message .icon{color:var(--vvd-color-alert-500)}.success-message .icon{color:var(--vvd-color-success-500)}.announcement{display:contents}`,l=class extends e.t(t.t){constructor(...e){super(...e),this.type=`none`}};i.t([t.m],l.prototype,`type`,void 0);function u(e,n,r){let i=e.tagFor(s.t);return t.p`<${i} class="icon" name="${n}" label="${e=>e.locale.feedbackMessage[r]}"></${i}>`}function d(e){let n={none:``,helper:``,error:u(e,`info-line`,`errorIconText`),success:u(e,`check-circle-line`,`successIconText`)};return t.p`${e=>n[e.type]}`}var f=e=>e===`error`,p=t.u(`feedback-message`,l,e=>{let r=t.p`<div
2
+ class="${e=>a.t(`message`,`${e.type}-message`)}"
3
+ >
4
+ ${d(e)}<slot></slot>
5
+ </div>`;return t.p`${n.t(e=>!f(e.type),r)}
6
+ <span class="announcement" role="status" aria-live="polite">
7
+ ${n.t(e=>f(e.type),r)}
8
+ </span>`},[o.t,r.n],{styles:c});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -0,0 +1,41 @@
1
+ import { t as e } from "./localized.js";
2
+ import { m as t, p as n, t as r, u as i } from "./vivid-element.js";
3
+ import { t as a } from "./when.js";
4
+ import { n as o } from "./definition.js";
5
+ import { t as s } from "./decorate.js";
6
+ import { t as c } from "./class-names.js";
7
+ import { t as l } from "./definition2.js";
8
+ import { t as u } from "./icon.js";
9
+ //#region src/shared/feedback/feedback-message.scss?inline
10
+ var d = ":host{display:contents}.message{contain:inline-size;font:var(--vvd-typography-base-condensed);grid-column:1/-1;gap:4px;display:flex}.message.none-message{display:none}.message.helper-message{color:var(--_low-ink-color)}.message.error-message,.message.success-message{color:var(--vvd-color-canvas-text)}slot{display:inline}.icon{font-size:16px}.error-message .icon{color:var(--vvd-color-alert-500)}.success-message .icon{color:var(--vvd-color-success-500)}.announcement{display:contents}", f = class extends e(r) {
11
+ constructor(...e) {
12
+ super(...e), this.type = "none";
13
+ }
14
+ };
15
+ s([t], f.prototype, "type", void 0);
16
+ function p(e, t, r) {
17
+ let i = e.tagFor(u);
18
+ return n`<${i} class="icon" name="${t}" label="${(e) => e.locale.feedbackMessage[r]}"></${i}>`;
19
+ }
20
+ function m(e) {
21
+ let t = {
22
+ none: "",
23
+ helper: "",
24
+ error: p(e, "info-line", "errorIconText"),
25
+ success: p(e, "check-circle-line", "successIconText")
26
+ };
27
+ return n`${(e) => t[e.type]}`;
28
+ }
29
+ var h = (e) => e === "error", g = i("feedback-message", f, (e) => {
30
+ let t = n`<div
31
+ class="${(e) => c("message", `${e.type}-message`)}"
32
+ >
33
+ ${m(e)}<slot></slot>
34
+ </div>`;
35
+ return n`${a((e) => !h(e.type), t)}
36
+ <span class="announcement" role="status" aria-live="polite">
37
+ ${a((e) => h(e.type), t)}
38
+ </span>`;
39
+ }, [l, o], { styles: d });
40
+ //#endregion
41
+ export { g as n, f as t };
@@ -1 +1 @@
1
- var e=[`top`,`right`,`bottom`,`left`],t=[`start`,`end`],n=e.reduce((e,n)=>e.concat(n,n+`-`+t[0],n+`-`+t[1]),[]),r=Math.min,i=Math.max,a=Math.round,o=Math.floor,s=e=>({x:e,y:e}),c={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function l(e,t,n){return i(e,r(t,n))}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return e.split(`-`)[0]}function f(e){return e.split(`-`)[1]}function p(e){return e===`x`?`y`:`x`}function m(e){return e===`y`?`height`:`width`}function h(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function g(e){return p(h(e))}function _(e,t,n){n===void 0&&(n=!1);let r=f(e),i=g(e),a=m(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=E(o)),[o,E(o)]}function v(e){let t=E(e);return[y(e),t,y(t)]}function y(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var b=[`left`,`right`],x=[`right`,`left`],S=[`top`,`bottom`],C=[`bottom`,`top`];function w(e,t,n){switch(e){case`top`:case`bottom`:return n?t?x:b:t?b:x;case`left`:case`right`:return t?S:C;default:return[]}}function T(e,t,n,r){let i=f(e),a=w(d(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(y)))),a}function E(e){let t=d(e);return c[t]+e.slice(t.length)}function D(e){return{top:0,right:0,bottom:0,left:0,...e}}function O(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:D(e)}function k(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let{reference:r,floating:i}=e,a=h(t),o=g(t),s=m(o),c=d(t),l=a===`y`,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:u,y:r.y-i.height};break;case`bottom`:v={x:u,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:p};break;case`left`:v={x:r.x-i.width,y:p};break;default:v={x:r.x,y:r.y}}switch(f(t)){case`start`:v[o]-=_*(n&&l?-1:1);break;case`end`:v[o]+=_*(n&&l?-1:1);break}return v}async function j(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=u(t,e),m=O(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=k(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var M=50,ee=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:j},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=A(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<M&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=A(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},te=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=u(e,t)||{};if(p==null)return{};let _=O(h),v={x:n,y:i},y=g(a),b=m(y),x=await s.getDimensions(p),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,E=o.reference[b]+o.reference[y]-v[y]-o.floating[b],D=v[y]-o.reference[y],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),A=k?k[T]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=c.floating[T]||o.floating[b]);let j=E/2-D/2,M=A/2-x[b]/2-1,ee=r(_[C],M),te=r(_[w],M),N=ee,ne=A-x[b]-te,P=A/2-x[b]/2+j,F=l(N,P,ne),I=!d.arrow&&f(a)!=null&&P!==F&&o.reference[b]/2-(P<N?ee:te)-x[b]/2<0,L=I?P<N?P-N:P-ne:0;return{[y]:v[y]+L,data:{[y]:F,centerOffset:P-F-L,...I&&{alignmentOffset:L}},reset:I}}});function N(e,t,n){return(e?[...n.filter(t=>f(t)===e),...n.filter(t=>f(t)!==e)]:n.filter(e=>d(e)===e)).filter(n=>e?f(n)===e||(t?y(n)!==n:!1):!0)}var ne=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:r,middlewareData:i,placement:a,platform:o,elements:s}=t,{crossAxis:c=!1,alignment:l,allowedPlacements:p=n,autoAlignment:m=!0,...h}=u(e,t),g=l!==void 0||p===n?N(l||null,m,p):p,v=await o.detectOverflow(t,h),y=i.autoPlacement?.index||0,b=g[y];if(b==null)return{};let x=_(b,r,await(o.isRTL==null?void 0:o.isRTL(s.floating)));if(a!==b)return{reset:{placement:g[0]}};let S=[v[d(b)],v[x[0]],v[x[1]]],C=[...i.autoPlacement?.overflows||[],{placement:b,overflows:S}],w=g[y+1];if(w)return{data:{index:y+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=f(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=T.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0]?.[0]||T[0][0];return E===a?{}:{data:{index:y+1,overflows:C},reset:{placement:E}}}}},P=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:g=`none`,flipAlignment:y=!0,...b}=u(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=d(r),S=h(o),C=d(o)===o,w=await(s.isRTL==null?void 0:s.isRTL(c.floating)),D=p||(C||!y?[E(o)]:v(o)),O=g!==`none`;!p&&O&&D.push(...T(o,y,g,w));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(l&&j.push(A[x]),f){let e=_(r,a,w);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(!(f===`alignment`&&S!==h(t))||M.every(e=>h(e.placement)===S?e.overflows[0]>0:!0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(m){case`bestFit`:{let e=M.filter(e=>{if(O){let t=h(e.placement);return t===S||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(t){return e.some(e=>t[e]>=0)}var L=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=u(e,t);switch(i){case`referenceHidden`:{let e=F(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case`escaped`:{let e=F(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}};function re(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top)),a=i(...e.map(e=>e.right)),o=i(...e.map(e=>e.bottom));return{x:t,y:n,width:a-t,height:o-n}}function ie(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>k(re(e)))}var ae=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:a,rects:o,platform:s,strategy:c}=t,{padding:l=2,x:f,y:p}=u(e,t),m=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(a.reference))||[]),g=ie(m),_=k(re(m)),v=O(l);function y(){if(g.length===2&&g[0].left>g[1].right&&f!=null&&p!=null)return g.find(e=>f>e.left-v.left&&f<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom)||_;if(g.length>=2){if(h(n)===`y`){let e=g[0],t=g[g.length-1],r=d(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=d(n)===`left`,t=i(...g.map(e=>e.right)),a=r(...g.map(e=>e.left)),o=g.filter(n=>e?n.left===a:n.right===t),s=o[0].top,c=o[o.length-1].bottom,l=a,u=t;return{top:s,bottom:c,left:l,right:u,width:u-l,height:c-s,x:l,y:s}}return _}let b=await s.getElementRects({reference:{getBoundingClientRect:y},floating:a.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},oe=new Set([`left`,`top`]);async function se(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=d(n),s=f(n),c=h(n)===`y`,l=oe.has(o)?-1:1,p=a&&c?-1:1,m=u(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof m==`number`?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),c?{x:_*p,y:g*l}:{x:g*l,y:_*p}}var ce=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await se(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},le=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=u(e,t),m={x:n,y:r},g=await a.detectOverflow(t,f),_=h(d(i)),v=p(_),y=m[v],b=m[_];if(o){let e=v===`y`?`top`:`left`,t=v===`y`?`bottom`:`right`,n=y+g[e],r=y-g[t];y=l(n,y,r)}if(s){let e=_===`y`?`top`:`left`,t=_===`y`?`bottom`:`right`,n=b+g[e],r=b-g[t];b=l(n,b,r)}let x=c.fn({...t,[v]:y,[_]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:o,[_]:s}}}}}},ue=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,a;let{placement:o,rects:s,platform:c,elements:l}=t,{apply:p=()=>{},...m}=u(e,t),g=await c.detectOverflow(t,m),_=d(o),v=f(o),y=h(o)===`y`,{width:b,height:x}=s.floating,S,C;_===`top`||_===`bottom`?(S=_,C=v===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?`start`:`end`)?`left`:`right`):(C=_,S=v===`end`?`top`:`bottom`);let w=x-g.top-g.bottom,T=b-g.left-g.right,E=r(x-g[S],w),D=r(b-g[C],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(k=w),O&&!v){let e=i(g.left,0),t=i(g.right,0),n=i(g.top,0),r=i(g.bottom,0);y?A=b-2*(e!==0||t!==0?e+t:i(g.left,g.right)):k=x-2*(n!==0||r!==0?n+r:i(g.top,g.bottom))}await p({...t,availableWidth:A,availableHeight:k});let j=await c.getDimensions(l.floating);return b!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};function R(){return typeof window<`u`}function z(e){return de(e)?(e.nodeName||``).toLowerCase():`#document`}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function V(e){return((de(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function de(e){return R()?e instanceof Node||e instanceof B(e).Node:!1}function H(e){return R()?e instanceof Element||e instanceof B(e).Element:!1}function U(e){return R()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function fe(e){return!R()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function pe(e){return/^(table|td|th)$/.test(z(e))}function G(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var me=/transform|translate|scale|rotate|perspective|filter/,he=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,ge;function _e(e){let t=H(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!ye()&&(K(t.backdropFilter)||K(t.filter))||me.test(t.willChange||``)||he.test(t.contain||``)}function ve(e){let t=X(e);for(;U(t)&&!q(t);){if(_e(t))return t;if(G(t))return null;t=X(t)}return null}function ye(){return ge??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ge}function q(e){return/^(html|body|#document)$/.test(z(e))}function J(e){return B(e).getComputedStyle(e)}function Y(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(z(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fe(e)&&e.host||V(e);return fe(t)?t.host:t}function be(e){let t=X(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&W(t)?t:be(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=be(e),i=r===e.ownerDocument?.body,a=B(r);if(i){let e=xe(a);return t.concat(a,a.visualViewport||[],W(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Se(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=U(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function Ce(e){return H(e)?e:e.contextElement}function Q(e){let t=Ce(e);if(!U(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Se(t),c=(o?a(n.width):n.width)/r,l=(o?a(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var we=s(0);function Te(e){let t=B(e);return!ye()||!t.visualViewport?we:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ce(e),o=s(1);t&&(r?H(r)&&(o=Q(r)):o=Q(e));let c=Ee(a,n,r)?Te(a):s(0),l=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=B(a),t=r&&H(r)?B(r):r,n=e,i=xe(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=B(i),i=xe(n)}}return k({width:d,height:f,x:l,y:u})}function De(e,t){let n=Y(e).scrollLeft;return t?t.left+n:$(V(e)).left+n}function Oe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-De(e,n),y:n.top+t.scrollTop}}function ke(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),c=t?G(t.floating):!1;if(r===o||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=U(r);if((f||!f&&!a)&&((z(r)!==`body`||W(o))&&(l=Y(r)),f)){let e=$(r);u=Q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=o&&!f&&!a?Oe(o,l):s(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function Ae(e){return Array.from(e.getClientRects())}function je(e){let t=V(e),n=Y(e),r=e.ownerDocument.body,a=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+De(e),c=-n.scrollTop;return J(r).direction===`rtl`&&(s+=i(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:s,y:c}}var Me=25;function Ne(e,t){let n=B(e),r=V(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ye();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=De(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Me&&(a-=o)}else l<=Me&&(a+=l);return{width:a,height:o,x:s,y:c}}function Pe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=U(e)?Q(e):s(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fe(e,t,n){let r;if(t===`viewport`)r=Ne(e,n);else if(t===`document`)r=je(V(e));else if(H(t))r=Pe(t,n);else{let n=Te(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function Ie(e,t){let n=X(e);return n===t||!H(n)||q(n)?!1:J(n).position===`fixed`||Ie(n,t)}function Le(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>H(e)&&z(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?X(e):e;for(;H(o)&&!q(o);){let t=J(o),n=_e(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||W(o)&&!n&&Ie(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function Re(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e,s=[...n===`clippingAncestors`?G(t)?[]:Le(t,this._c):[].concat(n),a],c=Fe(t,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let e=1;e<s.length;e++){let n=Fe(t,s[e],o);l=i(n.top,l),u=r(n.right,u),d=r(n.bottom,d),f=i(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function ze(e){let{width:t,height:n}=Se(e);return{width:t,height:n}}function Be(e,t,n){let r=U(t),i=V(t),a=n===`fixed`,o=$(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=s(0);function u(){l.x=De(i)}if(r||!r&&!a)if((z(t)!==`body`||W(i))&&(c=Y(t)),r){let e=$(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();a&&!r&&i&&u();let d=i&&!r&&!a?Oe(i,c):s(0);return{x:o.left+c.scrollLeft-l.x-d.x,y:o.top+c.scrollTop-l.y-d.y,width:o.width,height:o.height}}function Ve(e){return J(e).position===`static`}function He(e,t){if(!U(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function Ue(e,t){let n=B(e);if(G(e))return n;if(!U(e)){let t=X(e);for(;t&&!q(t);){if(H(t)&&!Ve(t))return t;t=X(t)}return n}let r=He(e,t);for(;r&&pe(r)&&Ve(r);)r=He(r,t);return r&&q(r)&&Ve(r)&&!_e(r)?n:r||ve(e)||n}var We=async function(e){let t=this.getOffsetParent||Ue,n=this.getDimensions,r=await n(e.floating);return{reference:Be(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ge(e){return J(e).direction===`rtl`}var Ke={convertOffsetParentRelativeRectToViewportRelativeRect:ke,getDocumentElement:V,getClippingRect:Re,getOffsetParent:Ue,getElementRects:We,getClientRects:Ae,getDimensions:ze,getScale:Q,isElement:H,isRTL:Ge};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Je(e,t){let n=null,a,s=V(e);function c(){var e;clearTimeout(a),(e=n)==null||e.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),c();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(u||t(),!h||!g)return;let _=o(m),v=o(s.clientWidth-(p+h)),y=o(s.clientHeight-(m+g)),b=o(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:i(0,r(1,d))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==d){if(!S)return l();n?l(!1,n):a=setTimeout(()=>{l(!1,1e-7)},1e3)}n===1&&!qe(f,e.getBoundingClientRect())&&l(),S=!1}try{n=new IntersectionObserver(C,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return l(!0),c}function Ye(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ce(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Je(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!qe(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Xe=ce,Ze=ne,Qe=le,$e=P,et=ue,tt=L,nt=te,rt=ae,it=(e,t,n)=>{let r=new Map,i={platform:Ke,...n},a={...i.platform,_c:r};return ee(e,t,{...i,platform:a})};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return et}});
1
+ var e=[`top`,`right`,`bottom`,`left`],t=[`start`,`end`],n=e.reduce((e,n)=>e.concat(n,n+`-`+t[0],n+`-`+t[1]),[]),r=Math.min,i=Math.max,a=Math.round,o=Math.floor,s=e=>({x:e,y:e}),c={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function l(e,t,n){return i(e,r(t,n))}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return e.split(`-`)[0]}function f(e){return e.split(`-`)[1]}function p(e){return e===`x`?`y`:`x`}function m(e){return e===`y`?`height`:`width`}function h(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function g(e){return p(h(e))}function _(e,t,n){n===void 0&&(n=!1);let r=f(e),i=g(e),a=m(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=E(o)),[o,E(o)]}function v(e){let t=E(e);return[y(e),t,y(t)]}function y(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var b=[`left`,`right`],x=[`right`,`left`],S=[`top`,`bottom`],C=[`bottom`,`top`];function w(e,t,n){switch(e){case`top`:case`bottom`:return n?t?x:b:t?b:x;case`left`:case`right`:return t?S:C;default:return[]}}function T(e,t,n,r){let i=f(e),a=w(d(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(y)))),a}function E(e){let t=d(e);return c[t]+e.slice(t.length)}function D(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function O(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:D(e)}function k(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let{reference:r,floating:i}=e,a=h(t),o=g(t),s=m(o),c=d(t),l=a===`y`,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:u,y:r.y-i.height};break;case`bottom`:v={x:u,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:p};break;case`left`:v={x:r.x-i.width,y:p};break;default:v={x:r.x,y:r.y}}let y=f(t);return y&&(v[o]+=_*(y===`end`?1:-1)*(n&&l?-1:1)),v}async function j(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=u(t,e),m=O(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=k(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var M=50,N=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:j},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=A(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<M&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=A(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=u(e,t)||{};if(p==null)return{};let _=O(h),v={x:n,y:i},y=g(a),b=m(y),x=await s.getDimensions(p),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,E=o.reference[b]+o.reference[y]-v[y]-o.floating[b],D=v[y]-o.reference[y],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),A=k?k[T]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=c.floating[T]||o.floating[b]);let j=E/2-D/2,M=A/2-x[b]/2-1,N=r(_[C],M),ee=r(_[w],M),te=A-x[b]-ee,P=A/2-x[b]/2+j,F=l(N,P,te),I=!d.arrow&&f(a)!=null&&P!==F&&o.reference[b]/2-(P<N?N:ee)-x[b]/2<0,L=I?P<N?P-N:P-te:0;return{[y]:v[y]+L,data:{[y]:F,centerOffset:P-F-L,...I&&{alignmentOffset:L}},reset:I}}});function te(e,t,n){return(e?[...n.filter(t=>f(t)===e),...n.filter(t=>f(t)!==e)]:n.filter(e=>d(e)===e)).filter(n=>!e||f(n)===e||(t?y(n)!==n:!1))}var P=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:r,middlewareData:i,placement:a,platform:o,elements:s}=t,{crossAxis:c=!1,alignment:l,allowedPlacements:p=n,autoAlignment:m=!0,...h}=u(e,t),g=l!==void 0||p===n?te(l||null,m,p):p,v=i.autoPlacement?.index||0,y=g[v];if(y==null)return{};if(a!==y)return{reset:{placement:g[0]}};let b=await o.detectOverflow(t,h),x=_(y,r,await(o.isRTL==null?void 0:o.isRTL(s.floating))),S=[b[d(y)],b[x[0]],b[x[1]]],C=[...i.autoPlacement?.overflows||[],{placement:y,overflows:S}],w=g[v+1];if(w)return{data:{index:v+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=f(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=T.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0]?.[0]||T[0][0];return E===a?{}:{data:{index:v+1,overflows:C},reset:{placement:E}}}}},F=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:g=`none`,flipAlignment:y=!0,...b}=u(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=d(r),S=h(o),C=d(o)===o,w=await(s.isRTL==null?void 0:s.isRTL(c.floating)),D=p||(C||!y?[E(o)]:v(o)),O=g!==`none`;!p&&O&&D.push(...T(o,y,g,w));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(l&&j.push(A[x]),f){let e=_(r,a,w);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(f!==`alignment`||S===h(t)||M.every(e=>h(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(m){case`bestFit`:{let e=M.filter(e=>{if(O){let t=h(e.placement);return t===S||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(t){return e.some(e=>t[e]>=0)}var ne=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=u(e,t);switch(i){case`referenceHidden`:{let e=I(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:L(e)}}}case`escaped`:{let e=I(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:L(e)}}}default:return{}}}}};function re(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top)),a=i(...e.map(e=>e.right)),o=i(...e.map(e=>e.bottom));return{x:t,y:n,width:a-t,height:o-n}}function ie(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>k(re(e)))}var ae=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:a,rects:o,platform:s,strategy:c}=t,{padding:l=2,x:f,y:p}=u(e,t),m=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(a.reference))||[]);if(!m.length)return{};let g=ie(m),_=k(re(m)),v=O(l);function y(){if(g.length===2&&(g[0].left>g[1].right||g[1].left>g[0].right)&&f!=null&&p!=null)return g.find(e=>f>e.left-v.left&&f<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom)||_;if(g.length>=2){if(h(n)===`y`){let e=g[0],t=g[g.length-1],r=d(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return k({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=d(n)===`left`,t=i(...g.map(e=>e.right)),a=r(...g.map(e=>e.left)),o=g.filter(n=>e?n.left===a:n.right===t),s=o[0].top,c=o[o.length-1].bottom;return k({x:a,y:s,width:t-a,height:c-s})}return _}let b=await s.getElementRects({reference:{getBoundingClientRect:y},floating:a.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},oe=new Set([`left`,`top`]);async function se(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=d(n),s=f(n),c=h(n)===`y`,l=oe.has(o)?-1:1,p=a&&c?-1:1,m=u(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof m==`number`?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),c?{x:_*p,y:g*l}:{x:g*l,y:_*p}}var ce=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await se(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},le=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=u(e,t),f={x:n,y:r},m=await a.detectOverflow(t,d),g=h(i),_=p(g),v=f[_],y=f[g],b=(e,t)=>l(t+m[e===`y`?`top`:`left`],t,t-m[e===`y`?`bottom`:`right`]);o&&(v=b(_,v)),s&&(y=b(g,y));let x=c.fn({...t,[_]:v,[g]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[_]:o,[g]:s}}}}}},ue=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=u(e,t),p=await o.detectOverflow(t,l),m=d(n),g=f(n),_=h(n)===`y`,{width:v,height:y}=a.floating,b,x;m===`top`||m===`bottom`?(b=m,x=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(x=m,b=g===`end`?`top`:`bottom`);let S=y-p.top-p.bottom,C=v-p.left-p.right,w=r(y-p[b],S),T=r(v-p[x],C),E=t.middlewareData.shift,D=!E,O=w,k=T;E!=null&&E.enabled.x&&(k=C),E!=null&&E.enabled.y&&(O=S),D&&!g&&(_?k=v-2*i(p.left,p.right):O=y-2*i(p.top,p.bottom)),await c({...t,availableWidth:k,availableHeight:O});let A=await o.getDimensions(s.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function R(){return typeof window<`u`}function z(e){return de(e)?(e.nodeName||``).toLowerCase():`#document`}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function V(e){return((de(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function de(e){return R()?e instanceof Node||e instanceof B(e).Node:!1}function H(e){return R()?e instanceof Element||e instanceof B(e).Element:!1}function U(e){return R()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function fe(e){return!R()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function pe(e){return/^(table|td|th)$/.test(z(e))}function G(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var me=/transform|translate|scale|rotate|perspective|filter/,he=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,ge;function _e(e){let t=H(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!ye()&&(K(t.backdropFilter)||K(t.filter))||me.test(t.willChange||``)||he.test(t.contain||``)}function ve(e){let t=X(e);for(;U(t)&&!q(t);){if(_e(t))return t;if(G(t))return null;t=X(t)}return null}function ye(){return ge??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ge}function q(e){return/^(html|body|#document)$/.test(z(e))}function J(e){return B(e).getComputedStyle(e)}function Y(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(z(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fe(e)&&e.host||V(e);return fe(t)?t.host:t}function be(e){let t=X(e);return q(t)?(e.ownerDocument||e).body:U(t)&&W(t)?t:be(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=be(e),i=r===e.ownerDocument?.body,a=B(r);if(i){let e=xe(a);return t.concat(a,a.visualViewport||[],W(r)?r:[],e&&n?Z(e):[])}return t.concat(r,Z(r,[],n))}function xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Se(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=U(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function Ce(e){return H(e)?e:e.contextElement}function Q(e){let t=Ce(e);if(!U(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Se(t),c=(o?a(n.width):n.width)/r,l=(o?a(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var we=s(0);function Te(e){let t=B(e);return!ye()||!t.visualViewport?we:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ee(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===B(e)}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ce(e),o=s(1);t&&(r?H(r)&&(o=Q(r)):o=Q(e));let c=Ee(a,n,r)?Te(a):s(0),l=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a&&r){let e=B(a),t=H(r)?B(r):r,n=e,i=xe(n);for(;i&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=B(i),i=xe(n)}}return k({width:d,height:f,x:l,y:u})}function De(e,t){let n=Y(e).scrollLeft;return t?t.left+n:$(V(e)).left+n}function Oe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-De(e,n),y:n.top+t.scrollTop}}function ke(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),c=t?G(t.floating):!1;if(r===o||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=U(r);if((f||!a)&&((z(r)!==`body`||W(o))&&(l=Y(r)),f)){let e=$(r);u=Q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=o&&!f&&!a?Oe(o,l):s(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function Ae(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function je(e){let t=Y(e),n=e.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=i(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+De(e),s=-t.scrollTop;return J(n).direction===`rtl`&&(o+=i(e.clientWidth,n.clientWidth)-r),{width:r,height:a,x:o,y:s}}var Me=25;function Ne(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=B(e),a=V(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ye()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(De(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Me&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Pe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Q(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fe(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ne(e,n,t);else if(t===`document`)r=je(V(e));else if(H(t))r=Pe(t,n);else{let n=Te(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function Ie(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>H(e)&&z(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?X(e):e;for(;H(o)&&!q(o);){let e=J(o),t=_e(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=X(o)}return t.set(e,r),r}function Le(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e,s=[...n===`clippingAncestors`?G(t)?[]:Ie(t,this._c):[].concat(n),a],c=Fe(t,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let e=1;e<s.length;e++){let n=Fe(t,s[e],o);l=i(n.top,l),u=r(n.right,u),d=r(n.bottom,d),f=i(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function Re(e){let{width:t,height:n}=Se(e);return{width:t,height:n}}function ze(e,t,n){let r=U(t),i=V(t),a=n===`fixed`,o=$(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=s(0);if((r||!a)&&((z(t)!==`body`||W(i))&&(c=Y(t)),r)){let e=$(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=De(i));let u=i&&!r&&!a?Oe(i,c):s(0);return{x:o.left+c.scrollLeft-l.x-u.x,y:o.top+c.scrollTop-l.y-u.y,width:o.width,height:o.height}}function Be(e){return J(e).position===`static`}function Ve(e,t){if(!U(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function He(e,t){let n=B(e);if(G(e))return n;if(!U(e)){let t=X(e);for(;t&&!q(t);){if(H(t)&&!Be(t))return t;t=X(t)}return n}let r=Ve(e,t);for(;r&&pe(r)&&Be(r);)r=Ve(r,t);return r&&q(r)&&Be(r)&&!_e(r)?n:r||ve(e)||n}var Ue=async function(e){let t=this.getOffsetParent||He,n=this.getDimensions,r=await n(e.floating);return{reference:ze(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function We(e){return J(e).direction===`rtl`}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:ke,getDocumentElement:V,getClippingRect:Le,getOffsetParent:He,getElementRects:Ue,getClientRects:Ae,getDimensions:Re,getScale:Q,isElement:H,isRTL:We};function Ke(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qe(e,t,n){let a=null,s,c=V(e);function l(){var e;clearTimeout(s),(e=a)==null||e.disconnect(),a=null}function u(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),l();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(n||t(),!h||!g)return;let _=o(m),v=o(c.clientWidth-(p+h)),y=o(c.clientHeight-(m+g)),b=o(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:i(0,r(1,d))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(!Ke(f,e.getBoundingClientRect()))return u();if(n!==d){if(!S)return u();n?u(!1,n):s=setTimeout(()=>{u(!1,1e-7)},1e3)}S=!1}try{a=new IntersectionObserver(C,{...x,root:c.ownerDocument})}catch{a=new IntersectionObserver(C,x)}a.observe(e)}let d=B(e),f=()=>u(n);return d.addEventListener(`resize`,f),u(!0),()=>{d.removeEventListener(`resize`,f),l()}}function Je(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ce(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?qe(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!Ke(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ye=ce,Xe=P,Ze=le,Qe=F,$e=ue,et=ne,tt=ee,nt=ae,rt=(e,t,n)=>{let r=new Map,i=n??{},a={...Ge,...i.platform,_c:r};return N(e,t,{...i,platform:a})};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return $e}});