@leaflink/stash 48.16.0 → 48.16.2

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 (274) hide show
  1. package/assets/illustrations/FileUpload/csv.svg +1 -1
  2. package/assets/illustrations/FileUpload/document.svg +1 -17
  3. package/assets/illustrations/FileUpload/image.svg +1 -1
  4. package/assets/illustrations/FileUpload/pdf.svg +1 -1
  5. package/dist/Accordion.js +1 -1
  6. package/dist/Accordion.js.map +1 -1
  7. package/dist/Accordion.vue.d.ts +8 -9
  8. package/dist/ActionsDropdown.js.map +1 -1
  9. package/dist/ActionsDropdown.vue.d.ts +7 -8
  10. package/dist/AddressSelect.js +42 -38
  11. package/dist/AddressSelect.js.map +1 -1
  12. package/dist/AddressSelect.vue.d.ts +10 -11
  13. package/dist/Alert.js.map +1 -1
  14. package/dist/Alert.vue.d.ts +6 -7
  15. package/dist/AppNavigationItem.js +2 -2
  16. package/dist/AppNavigationItem.js.map +1 -1
  17. package/dist/AppNavigationItem.vue.d.ts +7 -8
  18. package/dist/AppSidebar.js +42 -42
  19. package/dist/AppSidebar.js.map +1 -1
  20. package/dist/AppSidebar.vue.d.ts +8 -9
  21. package/dist/AppTopbar.js +16 -16
  22. package/dist/AppTopbar.js.map +1 -1
  23. package/dist/AppTopbar.vue.d.ts +8 -9
  24. package/dist/Avatar.js.map +1 -1
  25. package/dist/Avatar.vue.d.ts +7 -8
  26. package/dist/Backdrop.vue.d.ts +3 -5
  27. package/dist/Badge.js +1 -1
  28. package/dist/Badge.js.map +1 -1
  29. package/dist/Badge.vue.d.ts +7 -8
  30. package/dist/Box.vue.d.ts +6 -7
  31. package/dist/Box.vue_vue_type_script_setup_true_lang-69e5176b.js.map +1 -1
  32. package/dist/Button.js.map +1 -1
  33. package/dist/Button.vue.d.ts +7 -8
  34. package/dist/ButtonGroup.js +29 -29
  35. package/dist/ButtonGroup.js.map +1 -1
  36. package/dist/ButtonGroup.vue.d.ts +8 -9
  37. package/dist/Card.js.map +1 -1
  38. package/dist/Card.vue.d.ts +6 -7
  39. package/dist/CardContent.vue.d.ts +3 -5
  40. package/dist/CardFooter.vue.d.ts +3 -5
  41. package/dist/CardHeader.js.map +1 -1
  42. package/dist/CardHeader.vue.d.ts +3 -4
  43. package/dist/CardMedia.js +6 -6
  44. package/dist/CardMedia.js.map +1 -1
  45. package/dist/CardMedia.vue.d.ts +3 -4
  46. package/dist/Carousel.js +249 -249
  47. package/dist/Carousel.js.map +1 -1
  48. package/dist/Carousel.vue.d.ts +9 -9
  49. package/dist/Checkbox.js +27 -27
  50. package/dist/Checkbox.js.map +1 -1
  51. package/dist/Checkbox.vue.d.ts +11 -12
  52. package/dist/ChevronToggle.js +1 -1
  53. package/dist/ChevronToggle.vue.d.ts +8 -9
  54. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js → ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js} +11 -11
  55. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js.map} +1 -1
  56. package/dist/Chip.js +30 -30
  57. package/dist/Chip.js.map +1 -1
  58. package/dist/Chip.vue.d.ts +9 -10
  59. package/dist/ConfirmationCodeInput.js +25 -25
  60. package/dist/ConfirmationCodeInput.js.map +1 -1
  61. package/dist/ConfirmationCodeInput.vue.d.ts +8 -9
  62. package/dist/ContextSwitcher.js +18 -18
  63. package/dist/ContextSwitcher.js.map +1 -1
  64. package/dist/ContextSwitcher.vue.d.ts +9 -10
  65. package/dist/Copy.js.map +1 -1
  66. package/dist/Copy.vue.d.ts +6 -7
  67. package/dist/CurrencyInput.js +93 -93
  68. package/dist/CurrencyInput.js.map +1 -1
  69. package/dist/CurrencyInput.vue.d.ts +10 -11
  70. package/dist/CustomRender.vue.d.ts +3 -15
  71. package/dist/DataView.js +97 -97
  72. package/dist/DataView.js.map +1 -1
  73. package/dist/DataView.vue.d.ts +9 -10
  74. package/dist/DataViewFilters.js +153 -150
  75. package/dist/DataViewFilters.js.map +1 -1
  76. package/dist/DataViewFilters.vue.d.ts +9 -10
  77. package/dist/DataViewSortButton.js.map +1 -1
  78. package/dist/DataViewSortButton.vue.d.ts +6 -7
  79. package/dist/DataViewToolbar.js +27 -27
  80. package/dist/DataViewToolbar.js.map +1 -1
  81. package/dist/DataViewToolbar.vue.d.ts +8 -9
  82. package/dist/DatePicker.js +738 -738
  83. package/dist/DatePicker.js.map +1 -1
  84. package/dist/DatePicker.vue.d.ts +11 -12
  85. package/dist/DescriptionList.js.map +1 -1
  86. package/dist/DescriptionList.vue.d.ts +6 -7
  87. package/dist/DescriptionListDetail.vue.d.ts +3 -5
  88. package/dist/DescriptionListGroup.vue.d.ts +3 -5
  89. package/dist/DescriptionListTerm.vue.d.ts +3 -5
  90. package/dist/Dialog.js +44 -44
  91. package/dist/Dialog.js.map +1 -1
  92. package/dist/Dialog.vue.d.ts +10 -11
  93. package/dist/Divider.vue.d.ts +3 -5
  94. package/dist/Dropdown.js +38 -38
  95. package/dist/Dropdown.js.map +1 -1
  96. package/dist/Dropdown.vue.d.ts +9 -10
  97. package/dist/EmptyState.js +20 -20
  98. package/dist/EmptyState.js.map +1 -1
  99. package/dist/EmptyState.vue.d.ts +6 -7
  100. package/dist/Expand.js +1 -1
  101. package/dist/Expand.vue.d.ts +8 -9
  102. package/dist/{Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js → Expand.vue_vue_type_script_setup_true_lang-0f236267.js} +19 -19
  103. package/dist/Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map +1 -0
  104. package/dist/Field.vue.d.ts +6 -7
  105. package/dist/Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js.map +1 -1
  106. package/dist/FileUpload.js +65 -65
  107. package/dist/FileUpload.js.map +1 -1
  108. package/dist/FileUpload.vue.d.ts +10 -11
  109. package/dist/FilterChip.js +27 -27
  110. package/dist/FilterChip.js.map +1 -1
  111. package/dist/FilterChip.vue.d.ts +8 -9
  112. package/dist/FilterDrawerItem.js +26 -26
  113. package/dist/FilterDrawerItem.js.map +1 -1
  114. package/dist/FilterDrawerItem.vue.d.ts +5 -6
  115. package/dist/FilterDropdown.js +49 -49
  116. package/dist/FilterDropdown.js.map +1 -1
  117. package/dist/FilterDropdown.vue.d.ts +8 -9
  118. package/dist/FilterSelect.js +23 -23
  119. package/dist/FilterSelect.js.map +1 -1
  120. package/dist/FilterSelect.vue.d.ts +8 -9
  121. package/dist/Filters.js +112 -104
  122. package/dist/Filters.js.map +1 -1
  123. package/dist/Filters.vue.d.ts +2204 -65
  124. package/dist/HttpError.js +42 -42
  125. package/dist/HttpError.js.map +1 -1
  126. package/dist/HttpError.vue.d.ts +6 -7
  127. package/dist/Icon.js.map +1 -1
  128. package/dist/Icon.vue.d.ts +7 -8
  129. package/dist/IconLabel.js.map +1 -1
  130. package/dist/IconLabel.vue.d.ts +8 -9
  131. package/dist/Illustration.vue.d.ts +6 -7
  132. package/dist/Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map +1 -1
  133. package/dist/Image.js +47 -47
  134. package/dist/Image.js.map +1 -1
  135. package/dist/Image.vue.d.ts +6 -7
  136. package/dist/InlineEdit.js +34 -34
  137. package/dist/InlineEdit.js.map +1 -1
  138. package/dist/InlineEdit.vue.d.ts +9 -10
  139. package/dist/Input.js +35 -35
  140. package/dist/Input.js.map +1 -1
  141. package/dist/Input.vue.d.ts +13 -14
  142. package/dist/InputOptions.js +33 -33
  143. package/dist/InputOptions.js.map +1 -1
  144. package/dist/InputOptions.vue.d.ts +8 -9
  145. package/dist/IntegrationIcon.js.map +1 -1
  146. package/dist/IntegrationIcon.vue.d.ts +7 -8
  147. package/dist/Label.vue.d.ts +6 -7
  148. package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js.map +1 -1
  149. package/dist/LicenseChip.js.map +1 -1
  150. package/dist/LicenseChip.vue.d.ts +6 -7
  151. package/dist/ListItem.vue.d.ts +225 -95
  152. package/dist/ListItemCell.vue.d.ts +4 -16
  153. package/dist/ListView.js +1 -1
  154. package/dist/ListView.vue.d.ts +5072 -470
  155. package/dist/Loading.js +16 -16
  156. package/dist/Loading.js.map +1 -1
  157. package/dist/Loading.vue.d.ts +3 -5
  158. package/dist/Logo.js +1 -1
  159. package/dist/Logo.vue.d.ts +9 -10
  160. package/dist/Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js +196 -0
  161. package/dist/Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js.map +1 -0
  162. package/dist/Menu.vue.d.ts +3 -5
  163. package/dist/MenuItem.vue.d.ts +3 -5
  164. package/dist/Metric.js.map +1 -1
  165. package/dist/Metric.vue.d.ts +6 -7
  166. package/dist/Modal.js +29 -29
  167. package/dist/Modal.js.map +1 -1
  168. package/dist/Modal.vue.d.ts +8 -9
  169. package/dist/Modals.js +8 -7
  170. package/dist/Modals.js.map +1 -1
  171. package/dist/Modals.vue.d.ts +3 -5
  172. package/dist/Module.js.map +1 -1
  173. package/dist/Module.vue.d.ts +7 -8
  174. package/dist/ModuleContent.vue.d.ts +3 -5
  175. package/dist/ModuleFooter.vue.d.ts +3 -5
  176. package/dist/ModuleHeader.js.map +1 -1
  177. package/dist/ModuleHeader.vue.d.ts +6 -7
  178. package/dist/ObfuscateText.js +1 -1
  179. package/dist/ObfuscateText.js.map +1 -1
  180. package/dist/ObfuscateText.vue.d.ts +6 -7
  181. package/dist/PageContent.vue.d.ts +3 -5
  182. package/dist/PageHeader.js.map +1 -1
  183. package/dist/PageHeader.vue.d.ts +6 -7
  184. package/dist/PageNavigation.js +30 -27
  185. package/dist/PageNavigation.js.map +1 -1
  186. package/dist/PageNavigation.vue.d.ts +8 -9
  187. package/dist/Paginate.js +32 -32
  188. package/dist/Paginate.js.map +1 -1
  189. package/dist/Paginate.vue.d.ts +8 -9
  190. package/dist/PlaidLink.js +29 -29
  191. package/dist/PlaidLink.js.map +1 -1
  192. package/dist/PlaidLink.vue.d.ts +11 -12
  193. package/dist/QuickAction.js.map +1 -1
  194. package/dist/QuickAction.vue.d.ts +4 -5
  195. package/dist/Radio.vue.d.ts +20 -1
  196. package/dist/RadioGroup.js +123 -123
  197. package/dist/RadioGroup.js.map +1 -1
  198. package/dist/RadioGroup.vue.d.ts +10 -11
  199. package/dist/RadioNew.js +102 -102
  200. package/dist/RadioNew.js.map +1 -1
  201. package/dist/RadioNew.vue.d.ts +10 -11
  202. package/dist/RangeInput.vue.d.ts +3 -5
  203. package/dist/SearchBar.js +36 -36
  204. package/dist/SearchBar.js.map +1 -1
  205. package/dist/SearchBar.vue.d.ts +9 -10
  206. package/dist/Select.js +792 -774
  207. package/dist/Select.js.map +1 -1
  208. package/dist/Select.vue.d.ts +14 -15
  209. package/dist/SelectStatus.js +27 -27
  210. package/dist/SelectStatus.js.map +1 -1
  211. package/dist/SelectStatus.vue.d.ts +12 -13
  212. package/dist/Skeleton.js.map +1 -1
  213. package/dist/Skeleton.vue.d.ts +7 -8
  214. package/dist/Step.js.map +1 -1
  215. package/dist/Step.vue.d.ts +7 -8
  216. package/dist/Stepper.js +19 -19
  217. package/dist/Stepper.js.map +1 -1
  218. package/dist/Stepper.vue.d.ts +9 -10
  219. package/dist/Switch.js +25 -25
  220. package/dist/Switch.js.map +1 -1
  221. package/dist/Switch.vue.d.ts +11 -12
  222. package/dist/Tab.js +2 -2
  223. package/dist/Tab.vue.d.ts +3 -4
  224. package/dist/{Tab.vue_vue_type_script_setup_true_lang-69d1b046.js → Tab.vue_vue_type_script_setup_true_lang-9aa53203.js} +5 -3
  225. package/dist/Tab.vue_vue_type_script_setup_true_lang-9aa53203.js.map +1 -0
  226. package/dist/Table.js +3 -3
  227. package/dist/Table.js.map +1 -1
  228. package/dist/{Table.keys-cf93df19.js → Table.keys-83e4f09b.js} +11 -11
  229. package/dist/{Table.keys-cf93df19.js.map → Table.keys-83e4f09b.js.map} +1 -1
  230. package/dist/Table.vue.d.ts +6 -7
  231. package/dist/TableCell.js +1 -1
  232. package/dist/TableCell.js.map +1 -1
  233. package/dist/TableCell.vue.d.ts +6 -7
  234. package/dist/TableHeaderCell.js +12 -12
  235. package/dist/TableHeaderCell.js.map +1 -1
  236. package/dist/TableHeaderCell.vue.d.ts +6 -7
  237. package/dist/TableHeaderRow.js +21 -21
  238. package/dist/TableHeaderRow.js.map +1 -1
  239. package/dist/TableHeaderRow.vue.d.ts +8 -9
  240. package/dist/TableRow.js +42 -42
  241. package/dist/TableRow.js.map +1 -1
  242. package/dist/TableRow.vue.d.ts +8 -9
  243. package/dist/Tabs.js +2 -2
  244. package/dist/Tabs.vue.d.ts +8 -9
  245. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js → Tabs.vue_used_vue_type_style_index_0_lang.module-3aa36673.js} +37 -37
  246. package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-3aa36673.js.map +1 -0
  247. package/dist/TextEditor.js +565 -565
  248. package/dist/TextEditor.js.map +1 -1
  249. package/dist/TextEditor.vue.d.ts +12 -13
  250. package/dist/Textarea.js +28 -28
  251. package/dist/Textarea.js.map +1 -1
  252. package/dist/Textarea.vue.d.ts +10 -11
  253. package/dist/Timeline.js.map +1 -1
  254. package/dist/Timeline.vue.d.ts +6 -7
  255. package/dist/TimelineItem.js +21 -21
  256. package/dist/TimelineItem.js.map +1 -1
  257. package/dist/TimelineItem.vue.d.ts +13 -6
  258. package/dist/Toast.js +134 -134
  259. package/dist/Toast.js.map +1 -1
  260. package/dist/Toast.vue.d.ts +6 -7
  261. package/dist/Toasts.vue.d.ts +3 -5
  262. package/dist/components.css +1 -1
  263. package/dist/index.js.map +1 -1
  264. package/dist/tailwind-base.js.map +1 -1
  265. package/dist/usePlaidLink.d.ts +1 -6
  266. package/dist/useScriptTag.d.ts +3 -8
  267. package/dist/useStepper.d.ts +7 -2
  268. package/package.json +1 -1
  269. package/tailwind-base.ts +13 -6
  270. package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +0 -1
  271. package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js +0 -196
  272. package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js.map +0 -1
  273. package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +0 -1
  274. package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js.map +0 -1
package/dist/Select.js CHANGED
@@ -1,18 +1,18 @@
1
- import { computed as k, ref as O, shallowRef as St, watch as te, getCurrentScope as Ct, onScopeDispose as Rt, shallowReadonly as re, unref as q, defineComponent as Ot, useAttrs as kt, useSlots as Tt, nextTick as ze, onMounted as Bt, onUnmounted as At, openBlock as A, createBlock as Te, normalizeClass as me, createSlots as Lt, withCtx as ve, createElementVNode as j, createElementBlock as V, Fragment as Be, renderList as Ae, toDisplayString as ae, withDirectives as ge, withKeys as Qe, createCommentVNode as ye, renderSlot as Le, createTextVNode as we, withModifiers as be, createVNode as ce, Teleport as Dt, Transition as Ft, normalizeStyle as Mt, vModelText as Pt, vShow as He, pushScopeId as It, popScopeId as Vt } from "vue";
1
+ import { computed as k, ref as O, shallowRef as Ct, watch as oe, getCurrentScope as Tt, onScopeDispose as Ot, shallowReadonly as ae, unref as G, defineComponent as kt, useAttrs as Bt, useSlots as At, nextTick as ze, onMounted as Lt, onUnmounted as Dt, openBlock as B, createBlock as Be, normalizeClass as ve, createSlots as Mt, withCtx as ge, createElementVNode as j, createElementBlock as V, Fragment as Ae, renderList as Le, toDisplayString as ce, withDirectives as ye, withKeys as et, createCommentVNode as we, renderSlot as De, createTextVNode as be, withModifiers as xe, createVNode as ue, Teleport as Ft, Transition as Pt, normalizeStyle as It, vModelText as Vt, vShow as We } from "vue";
2
2
  import Nt from "@leaflink/snitch";
3
3
  import $t from "lodash-es/debounce";
4
- import zt from "lodash-es/isEmpty";
5
- import Ze from "lodash-es/isEqual";
6
- import Ht from "lodash-es/isPlainObject";
4
+ import Ht from "lodash-es/isEmpty";
5
+ import tt from "lodash-es/isEqual";
6
+ import zt from "lodash-es/isPlainObject";
7
7
  import Wt from "lodash-es/uniqueId";
8
8
  import jt from "./useSearch.js";
9
- import { DEBOUNCE as Kt, KEY_CODES as ue } from "./constants.js";
10
- import Ut from "./clickoutside.js";
11
- import { D as qt } from "./MenusPlugin-9288029a.js";
12
- import et from "./Chip.js";
13
- import { _ as Xt } from "./Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js";
14
- import xe from "./Icon.js";
15
- import { _ as Yt } from "./_plugin-vue_export-helper-dad06003.js";
9
+ import { DEBOUNCE as Ut, KEY_CODES as fe } from "./constants.js";
10
+ import Kt from "./clickoutside.js";
11
+ import { D as Xt } from "./MenusPlugin-9288029a.js";
12
+ import nt from "./Chip.js";
13
+ import { _ as Gt } from "./Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js";
14
+ import _e from "./Icon.js";
15
+ import { _ as qt } from "./_plugin-vue_export-helper-dad06003.js";
16
16
  import "lodash-es/get";
17
17
  import "./searchFuzzy-74a7de1c.js";
18
18
  import "./_commonjsHelpers-10dfc225.js";
@@ -24,10 +24,10 @@ import "./index-9e1095ef.js";
24
24
  import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
25
25
  import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
26
26
  import "./locale.js";
27
- const ne = Math.min, N = Math.max, Fe = Math.round, De = Math.floor, Y = (e) => ({
27
+ const Se = Math.min, N = Math.max, Fe = Math.round, Me = Math.floor, J = (e) => ({
28
28
  x: e,
29
29
  y: e
30
- }), Gt = {
30
+ }), Yt = {
31
31
  left: "right",
32
32
  right: "left",
33
33
  bottom: "top",
@@ -36,46 +36,46 @@ const ne = Math.min, N = Math.max, Fe = Math.round, De = Math.floor, Y = (e) =>
36
36
  start: "end",
37
37
  end: "start"
38
38
  };
39
- function Ie(e, n) {
39
+ function Ve(e, n) {
40
40
  return typeof e == "function" ? e(n) : e;
41
41
  }
42
- function oe(e) {
42
+ function le(e) {
43
43
  return e.split("-")[0];
44
44
  }
45
- function Se(e) {
45
+ function Ce(e) {
46
46
  return e.split("-")[1];
47
47
  }
48
48
  function Qt(e) {
49
49
  return e === "x" ? "y" : "x";
50
50
  }
51
- function rt(e) {
51
+ function ct(e) {
52
52
  return e === "y" ? "height" : "width";
53
53
  }
54
- function de(e) {
55
- return ["top", "bottom"].includes(oe(e)) ? "y" : "x";
54
+ function me(e) {
55
+ return ["top", "bottom"].includes(le(e)) ? "y" : "x";
56
56
  }
57
- function at(e) {
58
- return Qt(de(e));
57
+ function ut(e) {
58
+ return Qt(me(e));
59
59
  }
60
- function Zt(e, n, t) {
61
- t === void 0 && (t = !1);
62
- const o = Se(e), l = at(e), s = rt(l);
63
- let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
64
- return n.reference[s] > n.floating[s] && (i = Me(i)), [i, Me(i)];
60
+ function Zt(e, n, o) {
61
+ o === void 0 && (o = !1);
62
+ const l = Ce(e), t = ut(e), s = ct(t);
63
+ let i = t === "x" ? l === (o ? "end" : "start") ? "right" : "left" : l === "start" ? "bottom" : "top";
64
+ return n.reference[s] > n.floating[s] && (i = Pe(i)), [i, Pe(i)];
65
65
  }
66
66
  function en(e) {
67
- const n = Me(e);
68
- return [je(e), n, je(n)];
67
+ const n = Pe(e);
68
+ return [Ue(e), n, Ue(n)];
69
69
  }
70
- function je(e) {
70
+ function Ue(e) {
71
71
  return e.replace(/start|end/g, (n) => Jt[n]);
72
72
  }
73
- function tn(e, n, t) {
74
- const o = ["left", "right"], l = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
73
+ function tn(e, n, o) {
74
+ const l = ["left", "right"], t = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
75
75
  switch (e) {
76
76
  case "top":
77
77
  case "bottom":
78
- return t ? n ? l : o : n ? o : l;
78
+ return o ? n ? t : l : n ? l : t;
79
79
  case "left":
80
80
  case "right":
81
81
  return n ? s : i;
@@ -83,13 +83,13 @@ function tn(e, n, t) {
83
83
  return [];
84
84
  }
85
85
  }
86
- function nn(e, n, t, o) {
87
- const l = Se(e);
88
- let s = tn(oe(e), t === "start", o);
89
- return l && (s = s.map((i) => i + "-" + l), n && (s = s.concat(s.map(je)))), s;
86
+ function nn(e, n, o, l) {
87
+ const t = Ce(e);
88
+ let s = tn(le(e), o === "start", l);
89
+ return t && (s = s.map((i) => i + "-" + t), n && (s = s.concat(s.map(Ue)))), s;
90
90
  }
91
- function Me(e) {
92
- return e.replace(/left|right|bottom|top/g, (n) => Gt[n]);
91
+ function Pe(e) {
92
+ return e.replace(/left|right|bottom|top/g, (n) => Yt[n]);
93
93
  }
94
94
  function on(e) {
95
95
  return {
@@ -108,176 +108,176 @@ function ln(e) {
108
108
  left: e
109
109
  };
110
110
  }
111
- function Pe(e) {
111
+ function Ie(e) {
112
112
  const {
113
113
  x: n,
114
- y: t,
115
- width: o,
116
- height: l
114
+ y: o,
115
+ width: l,
116
+ height: t
117
117
  } = e;
118
118
  return {
119
- width: o,
120
- height: l,
121
- top: t,
119
+ width: l,
120
+ height: t,
121
+ top: o,
122
122
  left: n,
123
- right: n + o,
124
- bottom: t + l,
123
+ right: n + l,
124
+ bottom: o + t,
125
125
  x: n,
126
- y: t
126
+ y: o
127
127
  };
128
128
  }
129
- function tt(e, n, t) {
129
+ function ot(e, n, o) {
130
130
  let {
131
- reference: o,
132
- floating: l
131
+ reference: l,
132
+ floating: t
133
133
  } = e;
134
- const s = de(n), i = at(n), c = rt(i), r = oe(n), u = s === "y", d = o.x + o.width / 2 - l.width / 2, p = o.y + o.height / 2 - l.height / 2, y = o[c] / 2 - l[c] / 2;
135
- let h;
136
- switch (r) {
134
+ const s = me(n), i = ut(n), a = ct(i), f = le(n), c = s === "y", u = l.x + l.width / 2 - t.width / 2, h = l.y + l.height / 2 - t.height / 2, g = l[a] / 2 - t[a] / 2;
135
+ let m;
136
+ switch (f) {
137
137
  case "top":
138
- h = {
139
- x: d,
140
- y: o.y - l.height
138
+ m = {
139
+ x: u,
140
+ y: l.y - t.height
141
141
  };
142
142
  break;
143
143
  case "bottom":
144
- h = {
145
- x: d,
146
- y: o.y + o.height
144
+ m = {
145
+ x: u,
146
+ y: l.y + l.height
147
147
  };
148
148
  break;
149
149
  case "right":
150
- h = {
151
- x: o.x + o.width,
152
- y: p
150
+ m = {
151
+ x: l.x + l.width,
152
+ y: h
153
153
  };
154
154
  break;
155
155
  case "left":
156
- h = {
157
- x: o.x - l.width,
158
- y: p
156
+ m = {
157
+ x: l.x - t.width,
158
+ y: h
159
159
  };
160
160
  break;
161
161
  default:
162
- h = {
163
- x: o.x,
164
- y: o.y
162
+ m = {
163
+ x: l.x,
164
+ y: l.y
165
165
  };
166
166
  }
167
- switch (Se(n)) {
167
+ switch (Ce(n)) {
168
168
  case "start":
169
- h[i] -= y * (t && u ? -1 : 1);
169
+ m[i] -= g * (o && c ? -1 : 1);
170
170
  break;
171
171
  case "end":
172
- h[i] += y * (t && u ? -1 : 1);
172
+ m[i] += g * (o && c ? -1 : 1);
173
173
  break;
174
174
  }
175
- return h;
175
+ return m;
176
176
  }
177
- const sn = async (e, n, t) => {
177
+ const sn = async (e, n, o) => {
178
178
  const {
179
- placement: o = "bottom",
180
- strategy: l = "absolute",
179
+ placement: l = "bottom",
180
+ strategy: t = "absolute",
181
181
  middleware: s = [],
182
182
  platform: i
183
- } = t, c = s.filter(Boolean), r = await (i.isRTL == null ? void 0 : i.isRTL(n));
184
- let u = await i.getElementRects({
183
+ } = o, a = s.filter(Boolean), f = await (i.isRTL == null ? void 0 : i.isRTL(n));
184
+ let c = await i.getElementRects({
185
185
  reference: e,
186
186
  floating: n,
187
- strategy: l
187
+ strategy: t
188
188
  }), {
189
- x: d,
190
- y: p
191
- } = tt(u, o, r), y = o, h = {}, f = 0;
192
- for (let w = 0; w < c.length; w++) {
189
+ x: u,
190
+ y: h
191
+ } = ot(c, l, f), g = l, m = {}, y = 0;
192
+ for (let d = 0; d < a.length; d++) {
193
193
  const {
194
- name: b,
195
- fn: m
196
- } = c[w], {
197
- x: g,
198
- y: E,
199
- data: R,
200
- reset: C
201
- } = await m({
202
- x: d,
203
- y: p,
204
- initialPlacement: o,
205
- placement: y,
206
- strategy: l,
207
- middlewareData: h,
208
- rects: u,
194
+ name: _,
195
+ fn: v
196
+ } = a[d], {
197
+ x: w,
198
+ y: b,
199
+ data: C,
200
+ reset: R
201
+ } = await v({
202
+ x: u,
203
+ y: h,
204
+ initialPlacement: l,
205
+ placement: g,
206
+ strategy: t,
207
+ middlewareData: m,
208
+ rects: c,
209
209
  platform: i,
210
210
  elements: {
211
211
  reference: e,
212
212
  floating: n
213
213
  }
214
214
  });
215
- d = g ?? d, p = E ?? p, h = {
216
- ...h,
217
- [b]: {
218
- ...h[b],
219
- ...R
215
+ u = w ?? u, h = b ?? h, m = {
216
+ ...m,
217
+ [_]: {
218
+ ...m[_],
219
+ ...C
220
220
  }
221
- }, C && f <= 50 && (f++, typeof C == "object" && (C.placement && (y = C.placement), C.rects && (u = C.rects === !0 ? await i.getElementRects({
221
+ }, R && y <= 50 && (y++, typeof R == "object" && (R.placement && (g = R.placement), R.rects && (c = R.rects === !0 ? await i.getElementRects({
222
222
  reference: e,
223
223
  floating: n,
224
- strategy: l
225
- }) : C.rects), {
226
- x: d,
227
- y: p
228
- } = tt(u, y, r)), w = -1);
224
+ strategy: t
225
+ }) : R.rects), {
226
+ x: u,
227
+ y: h
228
+ } = ot(c, g, f)), d = -1);
229
229
  }
230
230
  return {
231
- x: d,
232
- y: p,
233
- placement: y,
234
- strategy: l,
235
- middlewareData: h
231
+ x: u,
232
+ y: h,
233
+ placement: g,
234
+ strategy: t,
235
+ middlewareData: m
236
236
  };
237
237
  };
238
- async function ct(e, n) {
239
- var t;
238
+ async function ft(e, n) {
239
+ var o;
240
240
  n === void 0 && (n = {});
241
241
  const {
242
- x: o,
243
- y: l,
242
+ x: l,
243
+ y: t,
244
244
  platform: s,
245
245
  rects: i,
246
- elements: c,
247
- strategy: r
246
+ elements: a,
247
+ strategy: f
248
248
  } = e, {
249
- boundary: u = "clippingAncestors",
250
- rootBoundary: d = "viewport",
251
- elementContext: p = "floating",
252
- altBoundary: y = !1,
253
- padding: h = 0
254
- } = Ie(n, e), f = ln(h), b = c[y ? p === "floating" ? "reference" : "floating" : p], m = Pe(await s.getClippingRect({
255
- element: (t = await (s.isElement == null ? void 0 : s.isElement(b))) == null || t ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
256
- boundary: u,
257
- rootBoundary: d,
258
- strategy: r
259
- })), g = p === "floating" ? {
260
- x: o,
261
- y: l,
249
+ boundary: c = "clippingAncestors",
250
+ rootBoundary: u = "viewport",
251
+ elementContext: h = "floating",
252
+ altBoundary: g = !1,
253
+ padding: m = 0
254
+ } = Ve(n, e), y = ln(m), _ = a[g ? h === "floating" ? "reference" : "floating" : h], v = Ie(await s.getClippingRect({
255
+ element: (o = await (s.isElement == null ? void 0 : s.isElement(_))) == null || o ? _ : _.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
256
+ boundary: c,
257
+ rootBoundary: u,
258
+ strategy: f
259
+ })), w = h === "floating" ? {
260
+ x: l,
261
+ y: t,
262
262
  width: i.floating.width,
263
263
  height: i.floating.height
264
- } : i.reference, E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), R = await (s.isElement == null ? void 0 : s.isElement(E)) ? await (s.getScale == null ? void 0 : s.getScale(E)) || {
264
+ } : i.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), C = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
265
265
  x: 1,
266
266
  y: 1
267
267
  } : {
268
268
  x: 1,
269
269
  y: 1
270
- }, C = Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
271
- elements: c,
272
- rect: g,
273
- offsetParent: E,
274
- strategy: r
275
- }) : g);
270
+ }, R = Ie(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
271
+ elements: a,
272
+ rect: w,
273
+ offsetParent: b,
274
+ strategy: f
275
+ }) : w);
276
276
  return {
277
- top: (m.top - C.top + f.top) / R.y,
278
- bottom: (C.bottom - m.bottom + f.bottom) / R.y,
279
- left: (m.left - C.left + f.left) / R.x,
280
- right: (C.right - m.right + f.right) / R.x
277
+ top: (v.top - R.top + y.top) / C.y,
278
+ bottom: (R.bottom - v.bottom + y.bottom) / C.y,
279
+ left: (v.left - R.left + y.left) / C.x,
280
+ right: (R.right - v.right + y.right) / C.x
281
281
  };
282
282
  }
283
283
  const rn = function(e) {
@@ -285,74 +285,74 @@ const rn = function(e) {
285
285
  name: "flip",
286
286
  options: e,
287
287
  async fn(n) {
288
- var t, o;
288
+ var o, l;
289
289
  const {
290
- placement: l,
290
+ placement: t,
291
291
  middlewareData: s,
292
292
  rects: i,
293
- initialPlacement: c,
294
- platform: r,
295
- elements: u
293
+ initialPlacement: a,
294
+ platform: f,
295
+ elements: c
296
296
  } = n, {
297
- mainAxis: d = !0,
298
- crossAxis: p = !0,
299
- fallbackPlacements: y,
300
- fallbackStrategy: h = "bestFit",
301
- fallbackAxisSideDirection: f = "none",
302
- flipAlignment: w = !0,
303
- ...b
304
- } = Ie(e, n);
305
- if ((t = s.arrow) != null && t.alignmentOffset)
297
+ mainAxis: u = !0,
298
+ crossAxis: h = !0,
299
+ fallbackPlacements: g,
300
+ fallbackStrategy: m = "bestFit",
301
+ fallbackAxisSideDirection: y = "none",
302
+ flipAlignment: d = !0,
303
+ ..._
304
+ } = Ve(e, n);
305
+ if ((o = s.arrow) != null && o.alignmentOffset)
306
306
  return {};
307
- const m = oe(l), g = de(c), E = oe(c) === c, R = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), C = y || (E || !w ? [Me(c)] : en(c)), T = f !== "none";
308
- !y && T && C.push(...nn(c, w, f, R));
309
- const _ = [c, ...C], P = await ct(n, b), B = [];
310
- let W = ((o = s.flip) == null ? void 0 : o.overflows) || [];
311
- if (d && B.push(P[m]), p) {
312
- const U = Zt(l, i, R);
313
- B.push(P[U[0]], P[U[1]]);
307
+ const v = le(t), w = me(a), b = le(a) === a, C = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), R = g || (b || !d ? [Pe(a)] : en(a)), I = y !== "none";
308
+ !g && I && R.push(...nn(a, d, y, C));
309
+ const S = [a, ...R], T = await ft(n, _), F = [];
310
+ let D = ((l = s.flip) == null ? void 0 : l.overflows) || [];
311
+ if (u && F.push(T[v]), h) {
312
+ const X = Zt(t, i, C);
313
+ F.push(T[X[0]], T[X[1]]);
314
314
  }
315
- if (W = [...W, {
316
- placement: l,
317
- overflows: B
318
- }], !B.every((U) => U <= 0)) {
319
- var J, Re;
320
- const U = (((J = s.flip) == null ? void 0 : J.index) || 0) + 1, Q = _[U];
321
- if (Q)
315
+ if (D = [...D, {
316
+ placement: t,
317
+ overflows: F
318
+ }], !F.every((X) => X <= 0)) {
319
+ var Z, ee;
320
+ const X = (((Z = s.flip) == null ? void 0 : Z.index) || 0) + 1, Oe = S[X];
321
+ if (Oe)
322
322
  return {
323
323
  data: {
324
- index: U,
325
- overflows: W
324
+ index: X,
325
+ overflows: D
326
326
  },
327
327
  reset: {
328
- placement: Q
328
+ placement: Oe
329
329
  }
330
330
  };
331
- let Z = (Re = W.filter((I) => I.overflows[0] <= 0).sort((I, $) => I.overflows[1] - $.overflows[1])[0]) == null ? void 0 : Re.placement;
332
- if (!Z)
333
- switch (h) {
331
+ let W = (ee = D.filter((q) => q.overflows[0] <= 0).sort((q, M) => q.overflows[1] - M.overflows[1])[0]) == null ? void 0 : ee.placement;
332
+ if (!W)
333
+ switch (m) {
334
334
  case "bestFit": {
335
- var Oe;
336
- const I = (Oe = W.filter(($) => {
337
- if (T) {
338
- const L = de($.placement);
339
- return L === g || // Create a bias to the `y` side axis due to horizontal
335
+ var te;
336
+ const q = (te = D.filter((M) => {
337
+ if (I) {
338
+ const $ = me(M.placement);
339
+ return $ === w || // Create a bias to the `y` side axis due to horizontal
340
340
  // reading directions favoring greater width.
341
- L === "y";
341
+ $ === "y";
342
342
  }
343
343
  return !0;
344
- }).map(($) => [$.placement, $.overflows.filter((L) => L > 0).reduce((L, $e) => L + $e, 0)]).sort(($, L) => $[1] - L[1])[0]) == null ? void 0 : Oe[0];
345
- I && (Z = I);
344
+ }).map((M) => [M.placement, M.overflows.filter(($) => $ > 0).reduce(($, Y) => $ + Y, 0)]).sort((M, $) => M[1] - $[1])[0]) == null ? void 0 : te[0];
345
+ q && (W = q);
346
346
  break;
347
347
  }
348
348
  case "initialPlacement":
349
- Z = c;
349
+ W = a;
350
350
  break;
351
351
  }
352
- if (l !== Z)
352
+ if (t !== W)
353
353
  return {
354
354
  reset: {
355
- placement: Z
355
+ placement: W
356
356
  }
357
357
  };
358
358
  }
@@ -362,30 +362,29 @@ const rn = function(e) {
362
362
  };
363
363
  async function an(e, n) {
364
364
  const {
365
- placement: t,
366
- platform: o,
367
- elements: l
368
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = oe(t), c = Se(t), r = de(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, d = s && r ? -1 : 1, p = Ie(n, e);
365
+ placement: o,
366
+ platform: l,
367
+ elements: t
368
+ } = e, s = await (l.isRTL == null ? void 0 : l.isRTL(t.floating)), i = le(o), a = Ce(o), f = me(o) === "y", c = ["left", "top"].includes(i) ? -1 : 1, u = s && f ? -1 : 1, h = Ve(n, e);
369
369
  let {
370
- mainAxis: y,
371
- crossAxis: h,
372
- alignmentAxis: f
373
- } = typeof p == "number" ? {
374
- mainAxis: p,
370
+ mainAxis: g,
371
+ crossAxis: m,
372
+ alignmentAxis: y
373
+ } = typeof h == "number" ? {
374
+ mainAxis: h,
375
375
  crossAxis: 0,
376
376
  alignmentAxis: null
377
377
  } : {
378
- mainAxis: 0,
379
- crossAxis: 0,
380
- alignmentAxis: null,
381
- ...p
378
+ mainAxis: h.mainAxis || 0,
379
+ crossAxis: h.crossAxis || 0,
380
+ alignmentAxis: h.alignmentAxis
382
381
  };
383
- return c && typeof f == "number" && (h = c === "end" ? f * -1 : f), r ? {
384
- x: h * d,
385
- y: y * u
382
+ return a && typeof y == "number" && (m = a === "end" ? y * -1 : y), f ? {
383
+ x: m * u,
384
+ y: g * c
386
385
  } : {
387
- x: y * u,
388
- y: h * d
386
+ x: g * c,
387
+ y: m * u
389
388
  };
390
389
  }
391
390
  const cn = function(e) {
@@ -393,18 +392,18 @@ const cn = function(e) {
393
392
  name: "offset",
394
393
  options: e,
395
394
  async fn(n) {
396
- var t, o;
395
+ var o, l;
397
396
  const {
398
- x: l,
397
+ x: t,
399
398
  y: s,
400
399
  placement: i,
401
- middlewareData: c
402
- } = n, r = await an(n, e);
403
- return i === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
404
- x: l + r.x,
405
- y: s + r.y,
400
+ middlewareData: a
401
+ } = n, f = await an(n, e);
402
+ return i === ((o = a.offset) == null ? void 0 : o.placement) && (l = a.arrow) != null && l.alignmentOffset ? {} : {
403
+ x: t + f.x,
404
+ y: s + f.y,
406
405
  data: {
407
- ...r,
406
+ ...f,
408
407
  placement: i
409
408
  }
410
409
  };
@@ -415,34 +414,35 @@ const cn = function(e) {
415
414
  name: "size",
416
415
  options: e,
417
416
  async fn(n) {
417
+ var o, l;
418
418
  const {
419
419
  placement: t,
420
- rects: o,
421
- platform: l,
422
- elements: s
420
+ rects: s,
421
+ platform: i,
422
+ elements: a
423
423
  } = n, {
424
- apply: i = () => {
424
+ apply: f = () => {
425
425
  },
426
426
  ...c
427
- } = Ie(e, n), r = await ct(n, c), u = oe(t), d = Se(t), p = de(t) === "y", {
427
+ } = Ve(e, n), u = await ft(n, c), h = le(t), g = Ce(t), m = me(t) === "y", {
428
428
  width: y,
429
- height: h
430
- } = o.floating;
431
- let f, w;
432
- u === "top" || u === "bottom" ? (f = u, w = d === (await (l.isRTL == null ? void 0 : l.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = u, f = d === "end" ? "top" : "bottom");
433
- const b = h - r.top - r.bottom, m = y - r.left - r.right, g = ne(h - r[f], b), E = ne(y - r[w], m), R = !n.middlewareData.shift;
434
- let C = g, T = E;
435
- if (p ? T = d || R ? ne(E, m) : m : C = d || R ? ne(g, b) : b, R && !d) {
436
- const P = N(r.left, 0), B = N(r.right, 0), W = N(r.top, 0), J = N(r.bottom, 0);
437
- p ? T = y - 2 * (P !== 0 || B !== 0 ? P + B : N(r.left, r.right)) : C = h - 2 * (W !== 0 || J !== 0 ? W + J : N(r.top, r.bottom));
429
+ height: d
430
+ } = s.floating;
431
+ let _, v;
432
+ h === "top" || h === "bottom" ? (_ = h, v = g === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = h, _ = g === "end" ? "top" : "bottom");
433
+ const w = d - u.top - u.bottom, b = y - u.left - u.right, C = Se(d - u[_], w), R = Se(y - u[v], b), I = !n.middlewareData.shift;
434
+ let S = C, T = R;
435
+ if ((o = n.middlewareData.shift) != null && o.enabled.x && (T = b), (l = n.middlewareData.shift) != null && l.enabled.y && (S = w), I && !g) {
436
+ const D = N(u.left, 0), Z = N(u.right, 0), ee = N(u.top, 0), te = N(u.bottom, 0);
437
+ m ? T = y - 2 * (D !== 0 || Z !== 0 ? D + Z : N(u.left, u.right)) : S = d - 2 * (ee !== 0 || te !== 0 ? ee + te : N(u.top, u.bottom));
438
438
  }
439
- await i({
439
+ await f({
440
440
  ...n,
441
441
  availableWidth: T,
442
- availableHeight: C
442
+ availableHeight: S
443
443
  });
444
- const _ = await l.getDimensions(s.floating);
445
- return y !== _.width || h !== _.height ? {
444
+ const F = await i.getDimensions(a.floating);
445
+ return y !== F.width || d !== F.height ? {
446
446
  reset: {
447
447
  rects: !0
448
448
  }
@@ -450,42 +450,45 @@ const cn = function(e) {
450
450
  }
451
451
  };
452
452
  };
453
- function ie(e) {
454
- return Ue(e) ? (e.nodeName || "").toLowerCase() : "#document";
453
+ function Ne() {
454
+ return typeof window < "u";
455
455
  }
456
- function M(e) {
456
+ function se(e) {
457
+ return Ge(e) ? (e.nodeName || "").toLowerCase() : "#document";
458
+ }
459
+ function P(e) {
457
460
  var n;
458
461
  return (e == null || (n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
459
462
  }
460
- function X(e) {
463
+ function K(e) {
461
464
  var n;
462
- return (n = (Ue(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
465
+ return (n = (Ge(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
463
466
  }
464
- function Ue(e) {
465
- return e instanceof Node || e instanceof M(e).Node;
467
+ function Ge(e) {
468
+ return Ne() ? e instanceof Node || e instanceof P(e).Node : !1;
466
469
  }
467
- function z(e) {
468
- return e instanceof Element || e instanceof M(e).Element;
470
+ function H(e) {
471
+ return Ne() ? e instanceof Element || e instanceof P(e).Element : !1;
469
472
  }
470
- function K(e) {
471
- return e instanceof HTMLElement || e instanceof M(e).HTMLElement;
473
+ function U(e) {
474
+ return Ne() ? e instanceof HTMLElement || e instanceof P(e).HTMLElement : !1;
472
475
  }
473
- function nt(e) {
474
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M(e).ShadowRoot;
476
+ function lt(e) {
477
+ return !Ne() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
475
478
  }
476
- function Ce(e) {
479
+ function Te(e) {
477
480
  const {
478
481
  overflow: n,
479
- overflowX: t,
480
- overflowY: o,
481
- display: l
482
- } = H(e);
483
- return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !["inline", "contents"].includes(l);
482
+ overflowX: o,
483
+ overflowY: l,
484
+ display: t
485
+ } = z(e);
486
+ return /auto|scroll|overlay|hidden|clip/.test(n + l + o) && !["inline", "contents"].includes(t);
484
487
  }
485
488
  function fn(e) {
486
- return ["table", "td", "th"].includes(ie(e));
489
+ return ["table", "td", "th"].includes(se(e));
487
490
  }
488
- function Ve(e) {
491
+ function $e(e) {
489
492
  return [":popover-open", ":modal"].some((n) => {
490
493
  try {
491
494
  return e.matches(n);
@@ -495,31 +498,31 @@ function Ve(e) {
495
498
  });
496
499
  }
497
500
  function qe(e) {
498
- const n = Xe(), t = z(e) ? H(e) : e;
499
- return t.transform !== "none" || t.perspective !== "none" || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (t.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (t.contain || "").includes(o));
501
+ const n = Ye(), o = H(e) ? z(e) : e;
502
+ return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !n && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !n && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((l) => (o.willChange || "").includes(l)) || ["paint", "layout", "strict", "content"].some((l) => (o.contain || "").includes(l));
500
503
  }
501
504
  function dn(e) {
502
- let n = G(e);
503
- for (; K(n) && !he(n); ) {
505
+ let n = Q(e);
506
+ for (; U(n) && !he(n); ) {
504
507
  if (qe(n))
505
508
  return n;
506
- if (Ve(n))
509
+ if ($e(n))
507
510
  return null;
508
- n = G(n);
511
+ n = Q(n);
509
512
  }
510
513
  return null;
511
514
  }
512
- function Xe() {
515
+ function Ye() {
513
516
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
514
517
  }
515
518
  function he(e) {
516
- return ["html", "body", "#document"].includes(ie(e));
519
+ return ["html", "body", "#document"].includes(se(e));
517
520
  }
518
- function H(e) {
519
- return M(e).getComputedStyle(e);
521
+ function z(e) {
522
+ return P(e).getComputedStyle(e);
520
523
  }
521
- function Ne(e) {
522
- return z(e) ? {
524
+ function He(e) {
525
+ return H(e) ? {
523
526
  scrollLeft: e.scrollLeft,
524
527
  scrollTop: e.scrollTop
525
528
  } : {
@@ -527,501 +530,516 @@ function Ne(e) {
527
530
  scrollTop: e.scrollY
528
531
  };
529
532
  }
530
- function G(e) {
531
- if (ie(e) === "html")
533
+ function Q(e) {
534
+ if (se(e) === "html")
532
535
  return e;
533
536
  const n = (
534
537
  // Step into the shadow DOM of the parent of a slotted node.
535
538
  e.assignedSlot || // DOM Element detected.
536
539
  e.parentNode || // ShadowRoot detected.
537
- nt(e) && e.host || // Fallback.
538
- X(e)
540
+ lt(e) && e.host || // Fallback.
541
+ K(e)
539
542
  );
540
- return nt(n) ? n.host : n;
543
+ return lt(n) ? n.host : n;
541
544
  }
542
- function ut(e) {
543
- const n = G(e);
544
- return he(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(n) && Ce(n) ? n : ut(n);
545
+ function dt(e) {
546
+ const n = Q(e);
547
+ return he(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(n) && Te(n) ? n : dt(n);
545
548
  }
546
- function Ee(e, n, t) {
547
- var o;
548
- n === void 0 && (n = []), t === void 0 && (t = !0);
549
- const l = ut(e), s = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = M(l);
549
+ function Re(e, n, o) {
550
+ var l;
551
+ n === void 0 && (n = []), o === void 0 && (o = !0);
552
+ const t = dt(e), s = t === ((l = e.ownerDocument) == null ? void 0 : l.body), i = P(t);
550
553
  if (s) {
551
- const c = Ke(i);
552
- return n.concat(i, i.visualViewport || [], Ce(l) ? l : [], c && t ? Ee(c) : []);
554
+ const a = Ke(i);
555
+ return n.concat(i, i.visualViewport || [], Te(t) ? t : [], a && o ? Re(a) : []);
553
556
  }
554
- return n.concat(l, Ee(l, [], t));
557
+ return n.concat(t, Re(t, [], o));
555
558
  }
556
559
  function Ke(e) {
557
560
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
558
561
  }
559
- function ft(e) {
560
- const n = H(e);
561
- let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
562
- const l = K(e), s = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, c = Fe(t) !== s || Fe(o) !== i;
563
- return c && (t = s, o = i), {
564
- width: t,
565
- height: o,
566
- $: c
562
+ function mt(e) {
563
+ const n = z(e);
564
+ let o = parseFloat(n.width) || 0, l = parseFloat(n.height) || 0;
565
+ const t = U(e), s = t ? e.offsetWidth : o, i = t ? e.offsetHeight : l, a = Fe(o) !== s || Fe(l) !== i;
566
+ return a && (o = s, l = i), {
567
+ width: o,
568
+ height: l,
569
+ $: a
567
570
  };
568
571
  }
569
- function Ye(e) {
570
- return z(e) ? e : e.contextElement;
572
+ function Je(e) {
573
+ return H(e) ? e : e.contextElement;
571
574
  }
572
- function fe(e) {
573
- const n = Ye(e);
574
- if (!K(n))
575
- return Y(1);
576
- const t = n.getBoundingClientRect(), {
577
- width: o,
578
- height: l,
575
+ function de(e) {
576
+ const n = Je(e);
577
+ if (!U(n))
578
+ return J(1);
579
+ const o = n.getBoundingClientRect(), {
580
+ width: l,
581
+ height: t,
579
582
  $: s
580
- } = ft(n);
581
- let i = (s ? Fe(t.width) : t.width) / o, c = (s ? Fe(t.height) : t.height) / l;
582
- return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
583
+ } = mt(n);
584
+ let i = (s ? Fe(o.width) : o.width) / l, a = (s ? Fe(o.height) : o.height) / t;
585
+ return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
583
586
  x: i,
584
- y: c
587
+ y: a
585
588
  };
586
589
  }
587
- const hn = /* @__PURE__ */ Y(0);
588
- function dt(e) {
589
- const n = M(e);
590
- return !Xe() || !n.visualViewport ? hn : {
590
+ const mn = /* @__PURE__ */ J(0);
591
+ function ht(e) {
592
+ const n = P(e);
593
+ return !Ye() || !n.visualViewport ? mn : {
591
594
  x: n.visualViewport.offsetLeft,
592
595
  y: n.visualViewport.offsetTop
593
596
  };
594
597
  }
595
- function pn(e, n, t) {
596
- return n === void 0 && (n = !1), !t || n && t !== M(e) ? !1 : n;
598
+ function hn(e, n, o) {
599
+ return n === void 0 && (n = !1), !o || n && o !== P(e) ? !1 : n;
597
600
  }
598
- function le(e, n, t, o) {
599
- n === void 0 && (n = !1), t === void 0 && (t = !1);
600
- const l = e.getBoundingClientRect(), s = Ye(e);
601
- let i = Y(1);
602
- n && (o ? z(o) && (i = fe(o)) : i = fe(e));
603
- const c = pn(s, t, o) ? dt(s) : Y(0);
604
- let r = (l.left + c.x) / i.x, u = (l.top + c.y) / i.y, d = l.width / i.x, p = l.height / i.y;
601
+ function ie(e, n, o, l) {
602
+ n === void 0 && (n = !1), o === void 0 && (o = !1);
603
+ const t = e.getBoundingClientRect(), s = Je(e);
604
+ let i = J(1);
605
+ n && (l ? H(l) && (i = de(l)) : i = de(e));
606
+ const a = hn(s, o, l) ? ht(s) : J(0);
607
+ let f = (t.left + a.x) / i.x, c = (t.top + a.y) / i.y, u = t.width / i.x, h = t.height / i.y;
605
608
  if (s) {
606
- const y = M(s), h = o && z(o) ? M(o) : o;
607
- let f = y, w = Ke(f);
608
- for (; w && o && h !== f; ) {
609
- const b = fe(w), m = w.getBoundingClientRect(), g = H(w), E = m.left + (w.clientLeft + parseFloat(g.paddingLeft)) * b.x, R = m.top + (w.clientTop + parseFloat(g.paddingTop)) * b.y;
610
- r *= b.x, u *= b.y, d *= b.x, p *= b.y, r += E, u += R, f = M(w), w = Ke(f);
609
+ const g = P(s), m = l && H(l) ? P(l) : l;
610
+ let y = g, d = Ke(y);
611
+ for (; d && l && m !== y; ) {
612
+ const _ = de(d), v = d.getBoundingClientRect(), w = z(d), b = v.left + (d.clientLeft + parseFloat(w.paddingLeft)) * _.x, C = v.top + (d.clientTop + parseFloat(w.paddingTop)) * _.y;
613
+ f *= _.x, c *= _.y, u *= _.x, h *= _.y, f += b, c += C, y = P(d), d = Ke(y);
611
614
  }
612
615
  }
613
- return Pe({
614
- width: d,
615
- height: p,
616
- x: r,
617
- y: u
616
+ return Ie({
617
+ width: u,
618
+ height: h,
619
+ x: f,
620
+ y: c
618
621
  });
619
622
  }
620
- function mn(e) {
623
+ function pn(e) {
621
624
  let {
622
625
  elements: n,
623
- rect: t,
624
- offsetParent: o,
625
- strategy: l
626
+ rect: o,
627
+ offsetParent: l,
628
+ strategy: t
626
629
  } = e;
627
- const s = l === "fixed", i = X(o), c = n ? Ve(n.floating) : !1;
628
- if (o === i || c && s)
629
- return t;
630
- let r = {
630
+ const s = t === "fixed", i = K(l), a = n ? $e(n.floating) : !1;
631
+ if (l === i || a && s)
632
+ return o;
633
+ let f = {
631
634
  scrollLeft: 0,
632
635
  scrollTop: 0
633
- }, u = Y(1);
634
- const d = Y(0), p = K(o);
635
- if ((p || !p && !s) && ((ie(o) !== "body" || Ce(i)) && (r = Ne(o)), K(o))) {
636
- const y = le(o);
637
- u = fe(o), d.x = y.x + o.clientLeft, d.y = y.y + o.clientTop;
636
+ }, c = J(1);
637
+ const u = J(0), h = U(l);
638
+ if ((h || !h && !s) && ((se(l) !== "body" || Te(i)) && (f = He(l)), U(l))) {
639
+ const g = ie(l);
640
+ c = de(l), u.x = g.x + l.clientLeft, u.y = g.y + l.clientTop;
638
641
  }
639
642
  return {
640
- width: t.width * u.x,
641
- height: t.height * u.y,
642
- x: t.x * u.x - r.scrollLeft * u.x + d.x,
643
- y: t.y * u.y - r.scrollTop * u.y + d.y
643
+ width: o.width * c.x,
644
+ height: o.height * c.y,
645
+ x: o.x * c.x - f.scrollLeft * c.x + u.x,
646
+ y: o.y * c.y - f.scrollTop * c.y + u.y
644
647
  };
645
648
  }
646
649
  function vn(e) {
647
650
  return Array.from(e.getClientRects());
648
651
  }
649
- function ht(e) {
650
- return le(X(e)).left + Ne(e).scrollLeft;
652
+ function Xe(e, n) {
653
+ const o = He(e).scrollLeft;
654
+ return n ? n.left + o : ie(K(e)).left + o;
651
655
  }
652
656
  function gn(e) {
653
- const n = X(e), t = Ne(e), o = e.ownerDocument.body, l = N(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), s = N(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
654
- let i = -t.scrollLeft + ht(e);
655
- const c = -t.scrollTop;
656
- return H(o).direction === "rtl" && (i += N(n.clientWidth, o.clientWidth) - l), {
657
- width: l,
657
+ const n = K(e), o = He(e), l = e.ownerDocument.body, t = N(n.scrollWidth, n.clientWidth, l.scrollWidth, l.clientWidth), s = N(n.scrollHeight, n.clientHeight, l.scrollHeight, l.clientHeight);
658
+ let i = -o.scrollLeft + Xe(e);
659
+ const a = -o.scrollTop;
660
+ return z(l).direction === "rtl" && (i += N(n.clientWidth, l.clientWidth) - t), {
661
+ width: t,
658
662
  height: s,
659
663
  x: i,
660
- y: c
664
+ y: a
661
665
  };
662
666
  }
663
667
  function yn(e, n) {
664
- const t = M(e), o = X(e), l = t.visualViewport;
665
- let s = o.clientWidth, i = o.clientHeight, c = 0, r = 0;
666
- if (l) {
667
- s = l.width, i = l.height;
668
- const u = Xe();
669
- (!u || u && n === "fixed") && (c = l.offsetLeft, r = l.offsetTop);
668
+ const o = P(e), l = K(e), t = o.visualViewport;
669
+ let s = l.clientWidth, i = l.clientHeight, a = 0, f = 0;
670
+ if (t) {
671
+ s = t.width, i = t.height;
672
+ const c = Ye();
673
+ (!c || c && n === "fixed") && (a = t.offsetLeft, f = t.offsetTop);
670
674
  }
671
675
  return {
672
676
  width: s,
673
677
  height: i,
674
- x: c,
675
- y: r
678
+ x: a,
679
+ y: f
676
680
  };
677
681
  }
678
682
  function wn(e, n) {
679
- const t = le(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = K(e) ? fe(e) : Y(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, r = l * s.x, u = o * s.y;
683
+ const o = ie(e, !0, n === "fixed"), l = o.top + e.clientTop, t = o.left + e.clientLeft, s = U(e) ? de(e) : J(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, f = t * s.x, c = l * s.y;
680
684
  return {
681
685
  width: i,
682
- height: c,
683
- x: r,
684
- y: u
686
+ height: a,
687
+ x: f,
688
+ y: c
685
689
  };
686
690
  }
687
- function ot(e, n, t) {
688
- let o;
691
+ function it(e, n, o) {
692
+ let l;
689
693
  if (n === "viewport")
690
- o = yn(e, t);
694
+ l = yn(e, o);
691
695
  else if (n === "document")
692
- o = gn(X(e));
693
- else if (z(n))
694
- o = wn(n, t);
696
+ l = gn(K(e));
697
+ else if (H(n))
698
+ l = wn(n, o);
695
699
  else {
696
- const l = dt(e);
697
- o = {
700
+ const t = ht(e);
701
+ l = {
698
702
  ...n,
699
- x: n.x - l.x,
700
- y: n.y - l.y
703
+ x: n.x - t.x,
704
+ y: n.y - t.y
701
705
  };
702
706
  }
703
- return Pe(o);
707
+ return Ie(l);
704
708
  }
705
709
  function pt(e, n) {
706
- const t = G(e);
707
- return t === n || !z(t) || he(t) ? !1 : H(t).position === "fixed" || pt(t, n);
710
+ const o = Q(e);
711
+ return o === n || !H(o) || he(o) ? !1 : z(o).position === "fixed" || pt(o, n);
708
712
  }
709
713
  function bn(e, n) {
710
- const t = n.get(e);
711
- if (t)
712
- return t;
713
- let o = Ee(e, [], !1).filter((c) => z(c) && ie(c) !== "body"), l = null;
714
- const s = H(e).position === "fixed";
715
- let i = s ? G(e) : e;
716
- for (; z(i) && !he(i); ) {
717
- const c = H(i), r = qe(i);
718
- !r && c.position === "fixed" && (l = null), (s ? !r && !l : !r && c.position === "static" && !!l && ["absolute", "fixed"].includes(l.position) || Ce(i) && !r && pt(e, i)) ? o = o.filter((d) => d !== i) : l = c, i = G(i);
714
+ const o = n.get(e);
715
+ if (o)
716
+ return o;
717
+ let l = Re(e, [], !1).filter((a) => H(a) && se(a) !== "body"), t = null;
718
+ const s = z(e).position === "fixed";
719
+ let i = s ? Q(e) : e;
720
+ for (; H(i) && !he(i); ) {
721
+ const a = z(i), f = qe(i);
722
+ !f && a.position === "fixed" && (t = null), (s ? !f && !t : !f && a.position === "static" && !!t && ["absolute", "fixed"].includes(t.position) || Te(i) && !f && pt(e, i)) ? l = l.filter((u) => u !== i) : t = a, i = Q(i);
719
723
  }
720
- return n.set(e, o), o;
724
+ return n.set(e, l), l;
721
725
  }
722
726
  function xn(e) {
723
727
  let {
724
728
  element: n,
725
- boundary: t,
726
- rootBoundary: o,
727
- strategy: l
729
+ boundary: o,
730
+ rootBoundary: l,
731
+ strategy: t
728
732
  } = e;
729
- const i = [...t === "clippingAncestors" ? Ve(n) ? [] : bn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, d) => {
730
- const p = ot(n, d, l);
731
- return u.top = N(p.top, u.top), u.right = ne(p.right, u.right), u.bottom = ne(p.bottom, u.bottom), u.left = N(p.left, u.left), u;
732
- }, ot(n, c, l));
733
+ const i = [...o === "clippingAncestors" ? $e(n) ? [] : bn(n, this._c) : [].concat(o), l], a = i[0], f = i.reduce((c, u) => {
734
+ const h = it(n, u, t);
735
+ return c.top = N(h.top, c.top), c.right = Se(h.right, c.right), c.bottom = Se(h.bottom, c.bottom), c.left = N(h.left, c.left), c;
736
+ }, it(n, a, t));
733
737
  return {
734
- width: r.right - r.left,
735
- height: r.bottom - r.top,
736
- x: r.left,
737
- y: r.top
738
+ width: f.right - f.left,
739
+ height: f.bottom - f.top,
740
+ x: f.left,
741
+ y: f.top
738
742
  };
739
743
  }
740
744
  function _n(e) {
741
745
  const {
742
746
  width: n,
743
- height: t
744
- } = ft(e);
747
+ height: o
748
+ } = mt(e);
745
749
  return {
746
750
  width: n,
747
- height: t
751
+ height: o
748
752
  };
749
753
  }
750
- function En(e, n, t) {
751
- const o = K(n), l = X(n), s = t === "fixed", i = le(e, !0, s, n);
752
- let c = {
754
+ function En(e, n, o) {
755
+ const l = U(n), t = K(n), s = o === "fixed", i = ie(e, !0, s, n);
756
+ let a = {
753
757
  scrollLeft: 0,
754
758
  scrollTop: 0
755
759
  };
756
- const r = Y(0);
757
- if (o || !o && !s)
758
- if ((ie(n) !== "body" || Ce(l)) && (c = Ne(n)), o) {
759
- const p = le(n, !0, s, n);
760
- r.x = p.x + n.clientLeft, r.y = p.y + n.clientTop;
760
+ const f = J(0);
761
+ if (l || !l && !s)
762
+ if ((se(n) !== "body" || Te(t)) && (a = He(n)), l) {
763
+ const m = ie(n, !0, s, n);
764
+ f.x = m.x + n.clientLeft, f.y = m.y + n.clientTop;
761
765
  } else
762
- l && (r.x = ht(l));
763
- const u = i.left + c.scrollLeft - r.x, d = i.top + c.scrollTop - r.y;
766
+ t && (f.x = Xe(t));
767
+ let c = 0, u = 0;
768
+ if (t && !l && !s) {
769
+ const m = t.getBoundingClientRect();
770
+ u = m.top + a.scrollTop, c = m.left + a.scrollLeft - // RTL <body> scrollbar.
771
+ Xe(t, m);
772
+ }
773
+ const h = i.left + a.scrollLeft - f.x - c, g = i.top + a.scrollTop - f.y - u;
764
774
  return {
765
- x: u,
766
- y: d,
775
+ x: h,
776
+ y: g,
767
777
  width: i.width,
768
778
  height: i.height
769
779
  };
770
780
  }
771
- function We(e) {
772
- return H(e).position === "static";
773
- }
774
- function lt(e, n) {
775
- return !K(e) || H(e).position === "fixed" ? null : n ? n(e) : e.offsetParent;
776
- }
777
- function mt(e, n) {
778
- const t = M(e);
779
- if (Ve(e))
780
- return t;
781
- if (!K(e)) {
782
- let l = G(e);
783
- for (; l && !he(l); ) {
784
- if (z(l) && !We(l))
785
- return l;
786
- l = G(l);
781
+ function je(e) {
782
+ return z(e).position === "static";
783
+ }
784
+ function st(e, n) {
785
+ if (!U(e) || z(e).position === "fixed")
786
+ return null;
787
+ if (n)
788
+ return n(e);
789
+ let o = e.offsetParent;
790
+ return K(e) === o && (o = o.ownerDocument.body), o;
791
+ }
792
+ function vt(e, n) {
793
+ const o = P(e);
794
+ if ($e(e))
795
+ return o;
796
+ if (!U(e)) {
797
+ let t = Q(e);
798
+ for (; t && !he(t); ) {
799
+ if (H(t) && !je(t))
800
+ return t;
801
+ t = Q(t);
787
802
  }
788
- return t;
803
+ return o;
789
804
  }
790
- let o = lt(e, n);
791
- for (; o && fn(o) && We(o); )
792
- o = lt(o, n);
793
- return o && he(o) && We(o) && !qe(o) ? t : o || dn(e) || t;
805
+ let l = st(e, n);
806
+ for (; l && fn(l) && je(l); )
807
+ l = st(l, n);
808
+ return l && he(l) && je(l) && !qe(l) ? o : l || dn(e) || o;
794
809
  }
795
810
  const Sn = async function(e) {
796
- const n = this.getOffsetParent || mt, t = this.getDimensions, o = await t(e.floating);
811
+ const n = this.getOffsetParent || vt, o = this.getDimensions, l = await o(e.floating);
797
812
  return {
798
813
  reference: En(e.reference, await n(e.floating), e.strategy),
799
814
  floating: {
800
815
  x: 0,
801
816
  y: 0,
802
- width: o.width,
803
- height: o.height
817
+ width: l.width,
818
+ height: l.height
804
819
  }
805
820
  };
806
821
  };
807
- function Cn(e) {
808
- return H(e).direction === "rtl";
822
+ function Rn(e) {
823
+ return z(e).direction === "rtl";
809
824
  }
810
- const Rn = {
811
- convertOffsetParentRelativeRectToViewportRelativeRect: mn,
812
- getDocumentElement: X,
825
+ const Cn = {
826
+ convertOffsetParentRelativeRectToViewportRelativeRect: pn,
827
+ getDocumentElement: K,
813
828
  getClippingRect: xn,
814
- getOffsetParent: mt,
829
+ getOffsetParent: vt,
815
830
  getElementRects: Sn,
816
831
  getClientRects: vn,
817
832
  getDimensions: _n,
818
- getScale: fe,
819
- isElement: z,
820
- isRTL: Cn
833
+ getScale: de,
834
+ isElement: H,
835
+ isRTL: Rn
821
836
  };
822
- function On(e, n) {
823
- let t = null, o;
824
- const l = X(e);
837
+ function Tn(e, n) {
838
+ let o = null, l;
839
+ const t = K(e);
825
840
  function s() {
826
- var c;
827
- clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
841
+ var a;
842
+ clearTimeout(l), (a = o) == null || a.disconnect(), o = null;
828
843
  }
829
- function i(c, r) {
830
- c === void 0 && (c = !1), r === void 0 && (r = 1), s();
844
+ function i(a, f) {
845
+ a === void 0 && (a = !1), f === void 0 && (f = 1), s();
831
846
  const {
832
- left: u,
833
- top: d,
834
- width: p,
835
- height: y
847
+ left: c,
848
+ top: u,
849
+ width: h,
850
+ height: g
836
851
  } = e.getBoundingClientRect();
837
- if (c || n(), !p || !y)
852
+ if (a || n(), !h || !g)
838
853
  return;
839
- const h = De(d), f = De(l.clientWidth - (u + p)), w = De(l.clientHeight - (d + y)), b = De(u), g = {
840
- rootMargin: -h + "px " + -f + "px " + -w + "px " + -b + "px",
841
- threshold: N(0, ne(1, r)) || 1
854
+ const m = Me(u), y = Me(t.clientWidth - (c + h)), d = Me(t.clientHeight - (u + g)), _ = Me(c), w = {
855
+ rootMargin: -m + "px " + -y + "px " + -d + "px " + -_ + "px",
856
+ threshold: N(0, Se(1, f)) || 1
842
857
  };
843
- let E = !0;
844
- function R(C) {
845
- const T = C[0].intersectionRatio;
846
- if (T !== r) {
847
- if (!E)
858
+ let b = !0;
859
+ function C(R) {
860
+ const I = R[0].intersectionRatio;
861
+ if (I !== f) {
862
+ if (!b)
848
863
  return i();
849
- T ? i(!1, T) : o = setTimeout(() => {
864
+ I ? i(!1, I) : l = setTimeout(() => {
850
865
  i(!1, 1e-7);
851
866
  }, 1e3);
852
867
  }
853
- E = !1;
868
+ b = !1;
854
869
  }
855
870
  try {
856
- t = new IntersectionObserver(R, {
857
- ...g,
871
+ o = new IntersectionObserver(C, {
872
+ ...w,
858
873
  // Handle <iframe>s
859
- root: l.ownerDocument
874
+ root: t.ownerDocument
860
875
  });
861
876
  } catch {
862
- t = new IntersectionObserver(R, g);
877
+ o = new IntersectionObserver(C, w);
863
878
  }
864
- t.observe(e);
879
+ o.observe(e);
865
880
  }
866
881
  return i(!0), s;
867
882
  }
868
- function kn(e, n, t, o) {
869
- o === void 0 && (o = {});
883
+ function On(e, n, o, l) {
884
+ l === void 0 && (l = {});
870
885
  const {
871
- ancestorScroll: l = !0,
886
+ ancestorScroll: t = !0,
872
887
  ancestorResize: s = !0,
873
888
  elementResize: i = typeof ResizeObserver == "function",
874
- layoutShift: c = typeof IntersectionObserver == "function",
875
- animationFrame: r = !1
876
- } = o, u = Ye(e), d = l || s ? [...u ? Ee(u) : [], ...Ee(n)] : [];
877
- d.forEach((m) => {
878
- l && m.addEventListener("scroll", t, {
889
+ layoutShift: a = typeof IntersectionObserver == "function",
890
+ animationFrame: f = !1
891
+ } = l, c = Je(e), u = t || s ? [...c ? Re(c) : [], ...Re(n)] : [];
892
+ u.forEach((v) => {
893
+ t && v.addEventListener("scroll", o, {
879
894
  passive: !0
880
- }), s && m.addEventListener("resize", t);
895
+ }), s && v.addEventListener("resize", o);
881
896
  });
882
- const p = u && c ? On(u, t) : null;
883
- let y = -1, h = null;
884
- i && (h = new ResizeObserver((m) => {
885
- let [g] = m;
886
- g && g.target === u && h && (h.unobserve(n), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
887
- var E;
888
- (E = h) == null || E.observe(n);
889
- })), t();
890
- }), u && !r && h.observe(u), h.observe(n));
891
- let f, w = r ? le(e) : null;
892
- r && b();
893
- function b() {
894
- const m = le(e);
895
- w && (m.x !== w.x || m.y !== w.y || m.width !== w.width || m.height !== w.height) && t(), w = m, f = requestAnimationFrame(b);
897
+ const h = c && a ? Tn(c, o) : null;
898
+ let g = -1, m = null;
899
+ i && (m = new ResizeObserver((v) => {
900
+ let [w] = v;
901
+ w && w.target === c && m && (m.unobserve(n), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
902
+ var b;
903
+ (b = m) == null || b.observe(n);
904
+ })), o();
905
+ }), c && !f && m.observe(c), m.observe(n));
906
+ let y, d = f ? ie(e) : null;
907
+ f && _();
908
+ function _() {
909
+ const v = ie(e);
910
+ d && (v.x !== d.x || v.y !== d.y || v.width !== d.width || v.height !== d.height) && o(), d = v, y = requestAnimationFrame(_);
896
911
  }
897
- return t(), () => {
898
- var m;
899
- d.forEach((g) => {
900
- l && g.removeEventListener("scroll", t), s && g.removeEventListener("resize", t);
901
- }), p == null || p(), (m = h) == null || m.disconnect(), h = null, r && cancelAnimationFrame(f);
912
+ return o(), () => {
913
+ var v;
914
+ u.forEach((w) => {
915
+ t && w.removeEventListener("scroll", o), s && w.removeEventListener("resize", o);
916
+ }), h == null || h(), (v = m) == null || v.disconnect(), m = null, f && cancelAnimationFrame(y);
902
917
  };
903
918
  }
904
- const Tn = cn, Bn = rn, An = un, Ln = (e, n, t) => {
905
- const o = /* @__PURE__ */ new Map(), l = {
906
- platform: Rn,
907
- ...t
919
+ const kn = cn, Bn = rn, An = un, Ln = (e, n, o) => {
920
+ const l = /* @__PURE__ */ new Map(), t = {
921
+ platform: Cn,
922
+ ...o
908
923
  }, s = {
909
- ...l.platform,
910
- _c: o
924
+ ...t.platform,
925
+ _c: l
911
926
  };
912
927
  return sn(e, n, {
913
- ...l,
928
+ ...t,
914
929
  platform: s
915
930
  });
916
931
  };
917
932
  function Dn(e) {
918
933
  return e != null && typeof e == "object" && "$el" in e;
919
934
  }
920
- function it(e) {
935
+ function rt(e) {
921
936
  if (Dn(e)) {
922
937
  const n = e.$el;
923
- return Ue(n) && ie(n) === "#comment" ? null : n;
938
+ return Ge(n) && se(n) === "#comment" ? null : n;
924
939
  }
925
940
  return e;
926
941
  }
927
- function _e(e) {
928
- return typeof e == "function" ? e() : q(e);
942
+ function Ee(e) {
943
+ return typeof e == "function" ? e() : G(e);
929
944
  }
930
- function vt(e) {
945
+ function gt(e) {
931
946
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
932
947
  }
933
- function st(e, n) {
934
- const t = vt(e);
935
- return Math.round(n * t) / t;
936
- }
937
- function Fn(e, n, t) {
938
- t === void 0 && (t = {});
939
- const o = t.whileElementsMounted, l = k(() => {
940
- var _;
941
- return (_ = _e(t.open)) != null ? _ : !0;
942
- }), s = k(() => _e(t.middleware)), i = k(() => {
943
- var _;
944
- return (_ = _e(t.placement)) != null ? _ : "bottom";
945
- }), c = k(() => {
946
- var _;
947
- return (_ = _e(t.strategy)) != null ? _ : "absolute";
948
- }), r = k(() => {
949
- var _;
950
- return (_ = _e(t.transform)) != null ? _ : !0;
951
- }), u = k(() => it(e.value)), d = k(() => it(n.value)), p = O(0), y = O(0), h = O(c.value), f = O(i.value), w = St({}), b = O(!1), m = k(() => {
952
- const _ = {
953
- position: h.value,
948
+ function at(e, n) {
949
+ const o = gt(e);
950
+ return Math.round(n * o) / o;
951
+ }
952
+ function Mn(e, n, o) {
953
+ o === void 0 && (o = {});
954
+ const l = o.whileElementsMounted, t = k(() => {
955
+ var S;
956
+ return (S = Ee(o.open)) != null ? S : !0;
957
+ }), s = k(() => Ee(o.middleware)), i = k(() => {
958
+ var S;
959
+ return (S = Ee(o.placement)) != null ? S : "bottom";
960
+ }), a = k(() => {
961
+ var S;
962
+ return (S = Ee(o.strategy)) != null ? S : "absolute";
963
+ }), f = k(() => {
964
+ var S;
965
+ return (S = Ee(o.transform)) != null ? S : !0;
966
+ }), c = k(() => rt(e.value)), u = k(() => rt(n.value)), h = O(0), g = O(0), m = O(a.value), y = O(i.value), d = Ct({}), _ = O(!1), v = k(() => {
967
+ const S = {
968
+ position: m.value,
954
969
  left: "0",
955
970
  top: "0"
956
971
  };
957
- if (!d.value)
958
- return _;
959
- const P = st(d.value, p.value), B = st(d.value, y.value);
960
- return r.value ? {
961
- ..._,
962
- transform: "translate(" + P + "px, " + B + "px)",
963
- ...vt(d.value) >= 1.5 && {
972
+ if (!u.value)
973
+ return S;
974
+ const T = at(u.value, h.value), F = at(u.value, g.value);
975
+ return f.value ? {
976
+ ...S,
977
+ transform: "translate(" + T + "px, " + F + "px)",
978
+ ...gt(u.value) >= 1.5 && {
964
979
  willChange: "transform"
965
980
  }
966
981
  } : {
967
- position: h.value,
968
- left: P + "px",
969
- top: B + "px"
982
+ position: m.value,
983
+ left: T + "px",
984
+ top: F + "px"
970
985
  };
971
986
  });
972
- let g;
973
- function E() {
974
- u.value == null || d.value == null || Ln(u.value, d.value, {
987
+ let w;
988
+ function b() {
989
+ if (c.value == null || u.value == null)
990
+ return;
991
+ const S = t.value;
992
+ Ln(c.value, u.value, {
975
993
  middleware: s.value,
976
994
  placement: i.value,
977
- strategy: c.value
978
- }).then((_) => {
979
- p.value = _.x, y.value = _.y, h.value = _.strategy, f.value = _.placement, w.value = _.middlewareData, b.value = !0;
995
+ strategy: a.value
996
+ }).then((T) => {
997
+ h.value = T.x, g.value = T.y, m.value = T.strategy, y.value = T.placement, d.value = T.middlewareData, _.value = S !== !1;
980
998
  });
981
999
  }
982
- function R() {
983
- typeof g == "function" && (g(), g = void 0);
984
- }
985
1000
  function C() {
986
- if (R(), o === void 0) {
987
- E();
1001
+ typeof w == "function" && (w(), w = void 0);
1002
+ }
1003
+ function R() {
1004
+ if (C(), l === void 0) {
1005
+ b();
988
1006
  return;
989
1007
  }
990
- if (u.value != null && d.value != null) {
991
- g = o(u.value, d.value, E);
1008
+ if (c.value != null && u.value != null) {
1009
+ w = l(c.value, u.value, b);
992
1010
  return;
993
1011
  }
994
1012
  }
995
- function T() {
996
- l.value || (b.value = !1);
1013
+ function I() {
1014
+ t.value || (_.value = !1);
997
1015
  }
998
- return te([s, i, c], E, {
1016
+ return oe([s, i, a, t], b, {
999
1017
  flush: "sync"
1000
- }), te([u, d], C, {
1018
+ }), oe([c, u], R, {
1001
1019
  flush: "sync"
1002
- }), te(l, T, {
1020
+ }), oe(t, I, {
1003
1021
  flush: "sync"
1004
- }), Ct() && Rt(R), {
1005
- x: re(p),
1006
- y: re(y),
1007
- strategy: re(h),
1008
- placement: re(f),
1009
- middlewareData: re(w),
1010
- isPositioned: re(b),
1011
- floatingStyles: m,
1012
- update: E
1022
+ }), Tt() && Ot(C), {
1023
+ x: ae(h),
1024
+ y: ae(g),
1025
+ strategy: ae(m),
1026
+ placement: ae(y),
1027
+ middlewareData: ae(d),
1028
+ isPositioned: ae(_),
1029
+ floatingStyles: v,
1030
+ update: b
1013
1031
  };
1014
1032
  }
1015
- const Mn = (e) => (It("data-v-9d4a4fe5"), e = e(), Vt(), e), Pn = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], In = ["selected", "value"], Vn = /* @__PURE__ */ Mn(() => /* @__PURE__ */ j("option", { value: "" }, null, -1)), Nn = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled", "onKeyup"], $n = ["id"], zn = ["onKeypress", "onMousedown"], Hn = {
1033
+ const Fn = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], Pn = ["selected", "value"], In = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled"], Vn = ["id"], Nn = ["onKeypress", "onMousedown"], $n = {
1016
1034
  key: 0,
1017
1035
  class: "stash-select__total"
1018
- }, Wn = {
1036
+ }, Hn = {
1019
1037
  key: 0,
1020
1038
  class: "tw-flex tw-items-center tw-border-b tw-border-blue-500 tw-pr-1.5"
1021
- }, jn = ["data-test", "placeholder"], Kn = { class: "stash-select__options options tw-my-1.5 tw-w-full tw-border-white tw-bg-white" }, Un = ["data-test", "onClick", "onMouseenter"], qn = { class: "tw-m-1.5 tw-cursor-default tw-p-1.5" }, Xn = {
1039
+ }, zn = ["data-test", "placeholder"], Wn = { class: "stash-select__options options tw-my-1.5 tw-w-full tw-border-white tw-bg-white" }, jn = ["data-test", "onClick", "onMouseenter"], Un = { class: "tw-m-1.5 tw-cursor-default tw-p-1.5" }, Kn = {
1022
1040
  class: "tw-m-1.5 tw-cursor-default tw-p-1.5",
1023
1041
  "data-test": "stash-select|no-options"
1024
- }, Yn = /* @__PURE__ */ Ot({
1042
+ }, Xn = /* @__PURE__ */ kt({
1025
1043
  name: "ll-select",
1026
1044
  __name: "Select",
1027
1045
  props: {
@@ -1061,404 +1079,404 @@ const Mn = (e) => (It("data-v-9d4a4fe5"), e = e(), Vt(), e), Pn = ["id", "aria-e
1061
1079
  useFuzzySearch: { type: Boolean, default: !1 },
1062
1080
  menuPlacement: { default: "bottom-start" },
1063
1081
  enableTeleport: { type: Boolean, default: !1 },
1064
- teleportTo: { default: `#${qt}` }
1082
+ teleportTo: { default: `#${Xt}` }
1065
1083
  },
1066
1084
  emits: ["update:model-value", "clear", "add", "remove", "opened", "closed"],
1067
1085
  setup(e, { emit: n }) {
1068
- const t = e, o = 6, l = 300, s = kt(), i = Tt(), c = O(null), r = O(null), u = O(null), d = O(null), p = O(null), y = O(0), h = O(0), f = O([]), w = O(() => []), b = O(""), m = O(-1), g = O(!1), E = O({}), R = O(!1), { floatingStyles: C } = Fn(c, u, {
1069
- whileElementsMounted: kn,
1086
+ const t = e, s = n, i = Bt(), a = At(), f = O(null), c = O(null), u = O(null), h = O(null), g = O(null), m = O(0), y = O(0), d = O([]), _ = O(() => []), v = O(""), w = O(-1), b = O(!1), C = O({}), R = O(!1), { floatingStyles: I } = Mn(f, u, {
1087
+ whileElementsMounted: On,
1070
1088
  placement: t.menuPlacement,
1071
1089
  middleware: [
1072
1090
  Bn(),
1073
- Tn(({ rects: a }) => t.menuPlacement.includes("bottom") && y.value > h.value ? y.value - a.reference.height + o : o),
1091
+ kn(({ rects: r }) => t.menuPlacement.includes("bottom") && m.value > y.value ? m.value - r.reference.height + 6 : 6),
1074
1092
  An({
1075
- apply({ availableHeight: a, elements: v, rects: S }) {
1076
- t.enableTeleport && Object.assign(v.floating.style, {
1077
- maxWidth: `${S.reference.width}px`,
1078
- maxHeight: `${Math.min(a, l)}px`
1093
+ apply({ availableHeight: r, elements: p, rects: E }) {
1094
+ t.enableTeleport && Object.assign(p.floating.style, {
1095
+ maxWidth: `${E.reference.width}px`,
1096
+ maxHeight: `${Math.min(r, 300)}px`
1079
1097
  });
1080
1098
  }
1081
1099
  })
1082
1100
  ]
1083
- }), T = k(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), _ = k(() => {
1084
- let a = (R.value && t.lazy ? t.lazy() : t.options).filter(Boolean);
1085
- return Ht(a[0]) || (a = a.map((v, S) => ({ name: v, id: S }))), a;
1086
- }), P = k(() => t.searchLoading || Object.keys(E.value).length > 0), B = k(() => t.disableFiltering || !(b.value || "").trim() ? _.value : w.value(b.value)), W = k(() => y.value <= h.value), J = k(
1087
- () => !g.value && !t.single && !W.value && f.value.length
1088
- ), Re = k(() => [f.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), Oe = k(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
1089
- te(b, (a, v) => v !== a && ke(-1)), te(f, () => pe(), { deep: !0 }), te(
1101
+ }), S = k(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), T = k(() => {
1102
+ let r = (R.value && t.lazy ? t.lazy() : t.options).filter(Boolean);
1103
+ return zt(r[0]) || (r = r.map((p, E) => ({ name: p, id: E }))), r;
1104
+ }), F = k(() => t.searchLoading || Object.keys(C.value).length > 0), D = k(() => t.disableFiltering || !(v.value || "").trim() ? T.value : _.value(v.value)), Z = k(() => m.value <= y.value), ee = k(
1105
+ () => !b.value && !t.single && !Z.value && d.value.length
1106
+ ), te = k(() => [d.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), X = k(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
1107
+ oe(v, (r, p) => p !== r && ke(-1)), oe(d, () => pe(), { deep: !0 }), oe(
1090
1108
  () => t.modelValue,
1091
- (a) => {
1092
- if (Array.isArray(a)) {
1093
- const v = a.filter(Boolean);
1094
- Ze(v, f.value) || (f.value = v);
1109
+ (r) => {
1110
+ if (Array.isArray(r)) {
1111
+ const p = r.filter(Boolean);
1112
+ tt(p, d.value) || (d.value = p);
1095
1113
  return;
1096
1114
  }
1097
- if (!zt(a)) {
1098
- Ze(a, f.value[0]) || (f.value[0] = a);
1115
+ if (!Ht(r)) {
1116
+ tt(r, d.value[0]) || (d.value[0] = r);
1099
1117
  return;
1100
1118
  }
1101
- f.value = [];
1119
+ d.value = [];
1102
1120
  },
1103
1121
  { immediate: !0 }
1104
- ), te(
1122
+ ), oe(
1105
1123
  () => t.options,
1106
1124
  () => {
1107
- const { searchFor: a } = jt({
1108
- items: k(() => _.value),
1125
+ const { searchFor: r } = jt({
1126
+ items: k(() => T.value),
1109
1127
  fieldNames: t.searchBy.length ? t.searchBy : [t.displayBy],
1110
1128
  trackBy: t.trackBy
1111
1129
  });
1112
- w.value = (v) => a(v, { fuzzy: t.useFuzzySearch });
1130
+ _.value = (p) => r(p, { fuzzy: t.useFuzzySearch });
1113
1131
  },
1114
1132
  { immediate: !0 }
1115
1133
  );
1116
- const U = () => {
1117
- f.value = [], n("update:model-value", t.single ? void 0 : f.value), n("clear");
1118
- }, Q = (a) => {
1119
- t.disabled || !a || typeof a == "object" && "disabled" in a && (a != null && a.disabled) || (se(a) ? I(a) : (t.single && (f.value = []), f.value.push(a), n("update:model-value", t.single ? f.value[0] : f.value), n("add", a)), t.single && L());
1120
- }, Z = (a) => {
1134
+ const Oe = () => {
1135
+ d.value = [], s("update:model-value", t.single ? void 0 : d.value), s("clear");
1136
+ }, W = (r) => {
1137
+ t.disabled || !r || typeof r == "object" && "disabled" in r && (r != null && r.disabled) || (re(r) ? M(r) : (t.single && (d.value = []), d.value.push(r), s("update:model-value", t.single ? d.value[0] : d.value), s("add", r)), t.single && Y());
1138
+ }, q = (r) => {
1121
1139
  if (t.single) {
1122
- const S = _.value.find((D) => {
1123
- var F;
1124
- return ((F = D[t.trackBy]) == null ? void 0 : F.toString()) === a.target.value;
1140
+ const E = T.value.find((A) => {
1141
+ var L;
1142
+ return ((L = A[t.trackBy]) == null ? void 0 : L.toString()) === r.target.value;
1125
1143
  });
1126
- Q(S);
1144
+ W(E);
1127
1145
  return;
1128
1146
  }
1129
- const v = [...a.target.selectedOptions];
1130
- for (const S of [...f.value])
1131
- v.find((F) => {
1147
+ const p = [...r.target.selectedOptions];
1148
+ for (const E of [...d.value])
1149
+ p.find((L) => {
1132
1150
  var x;
1133
- return F.value === ((x = S[t.trackBy]) == null ? void 0 : x.toString());
1134
- }) || I(S);
1135
- for (const S of v) {
1136
- const D = _.value.find(
1137
- (F) => {
1151
+ return L.value === ((x = E[t.trackBy]) == null ? void 0 : x.toString());
1152
+ }) || M(E);
1153
+ for (const E of p) {
1154
+ const A = T.value.find(
1155
+ (L) => {
1138
1156
  var x;
1139
- return ((x = F[t.trackBy]) == null ? void 0 : x.toString()) === S.value;
1157
+ return ((x = L[t.trackBy]) == null ? void 0 : x.toString()) === E.value;
1140
1158
  }
1141
1159
  );
1142
- se(D) || Q(D);
1160
+ re(A) || W(A);
1143
1161
  }
1144
- }, I = (a) => {
1145
- if (t.disabled || Oe.value && f.value.length === 1)
1162
+ }, M = (r) => {
1163
+ if (t.disabled || X.value && d.value.length === 1)
1146
1164
  return;
1147
- const v = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1148
- if (v === -1) {
1149
- Nt.warn("ll-select: could not find option to remove", a);
1165
+ const p = d.value.findIndex((E) => E[t.trackBy] === r[t.trackBy]);
1166
+ if (p === -1) {
1167
+ Nt.warn("ll-select: could not find option to remove", r);
1150
1168
  return;
1151
1169
  }
1152
- f.value.splice(v, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, v);
1170
+ d.value.splice(p, 1), s("update:model-value", t.single ? d.value[0] : d.value), s("remove", r, p);
1153
1171
  }, $ = () => {
1154
- g.value || (pe(), g.value = !0, n("opened"), T.value && ze(() => {
1155
- var a;
1156
- (a = p.value) == null || a.focus({ preventScroll: !0 });
1172
+ b.value || (pe(), b.value = !0, s("opened"), S.value && ze(() => {
1173
+ var r;
1174
+ (r = g.value) == null || r.focus({ preventScroll: !0 });
1157
1175
  }));
1158
- }, L = () => {
1159
- var a;
1160
- g.value && n("closed", f.value), ke(-1), g.value = !1, t.preserveSearchTerm || (b.value = ""), (a = r.value) == null || a.blur();
1161
- }, $e = async (a) => {
1162
- if (await ze(), !r.value)
1176
+ }, Y = () => {
1177
+ var r;
1178
+ b.value && s("closed", d.value), ke(-1), b.value = !1, t.preserveSearchTerm || (v.value = ""), (r = c.value) == null || r.blur();
1179
+ }, yt = async (r) => {
1180
+ if (await ze(), !c.value)
1163
1181
  return;
1164
- if (![ue.ENTER, ue.ESCAPE].includes(a.keyCode)) {
1165
- const S = r.value.querySelector(".stash-select__option--highlighted"), D = S == null ? void 0 : S.getBoundingClientRect(), F = r.value.getBoundingClientRect();
1166
- if (!D || !F)
1182
+ if (![fe.ENTER, fe.ESCAPE].includes(r.keyCode)) {
1183
+ const E = c.value.querySelector(".stash-select__option--highlighted"), A = E == null ? void 0 : E.getBoundingClientRect(), L = c.value.getBoundingClientRect();
1184
+ if (!A || !L)
1167
1185
  return;
1168
- (D.bottom >= F.bottom || D.top <= F.top + D.height) && (S == null || S.scrollIntoView({ block: "nearest", inline: "nearest" }));
1186
+ (A.bottom >= L.bottom || A.top <= L.top + A.height) && (E == null || E.scrollIntoView({ block: "nearest", inline: "nearest" }));
1169
1187
  }
1170
- }, ke = (a) => {
1171
- m.value = a;
1172
- }, gt = (a) => {
1173
- if (a.keyCode === ue.ESCAPE)
1174
- L();
1175
- else if (a.keyCode === ue.DOWN && m.value < B.value.length - 1)
1176
- g.value && m.value++;
1177
- else if (a.keyCode === ue.UP && m.value > 0)
1178
- g.value && m.value--, u.value && T.value && m.value === 0 && (u.value.scrollTop -= 100);
1179
- else if (a.keyCode === ue.ENTER && m.value !== -1)
1180
- g.value && Q(B.value[m.value]);
1188
+ }, ke = (r) => {
1189
+ w.value = r;
1190
+ }, wt = (r) => {
1191
+ if (r.keyCode === fe.ESCAPE)
1192
+ Y();
1193
+ else if (r.keyCode === fe.DOWN && w.value < D.value.length - 1)
1194
+ b.value && w.value++;
1195
+ else if (r.keyCode === fe.UP && w.value > 0)
1196
+ b.value && w.value--, u.value && S.value && w.value === 0 && (u.value.scrollTop -= 100);
1197
+ else if (r.keyCode === fe.ENTER && w.value !== -1)
1198
+ b.value && W(D.value[w.value]);
1181
1199
  else
1182
1200
  return;
1183
- a.preventDefault(), $e(a);
1184
- }, Ge = $t(function() {
1185
- yt();
1186
- }, Kt.FAST), yt = async function() {
1201
+ r.preventDefault(), yt(r);
1202
+ }, Qe = $t(function() {
1203
+ bt();
1204
+ }, Ut.FAST), bt = async function() {
1187
1205
  if (!t.onSearch)
1188
1206
  return;
1189
- const a = Wt("search-request-");
1207
+ const r = Wt("search-request-");
1190
1208
  try {
1191
- E.value[a] = !0, await t.onSearch(b.value);
1209
+ C.value[r] = !0, await t.onSearch(v.value);
1192
1210
  } finally {
1193
- delete E.value[a];
1211
+ delete C.value[r];
1194
1212
  }
1195
- }, wt = (a, v) => [
1213
+ }, xt = (r, p) => [
1196
1214
  {
1197
1215
  "stash-select__option": !0,
1198
- "stash-select__option--disabled": a && typeof a == "object" && "disabled" in a && (a == null ? void 0 : a.disabled),
1199
- "stash-select__option--highlighted": m.value === v,
1200
- "stash-select__option--selected": se(a)
1216
+ "stash-select__option--disabled": r && typeof r == "object" && "disabled" in r && (r == null ? void 0 : r.disabled),
1217
+ "stash-select__option--highlighted": w.value === p,
1218
+ "stash-select__option--selected": re(r)
1201
1219
  },
1202
1220
  // @deprecated
1203
1221
  {
1204
- "tw-bg-ice-200": m.value === v,
1205
- "tw-bg-blue-100 tw-text-ice-700": se(a)
1222
+ "tw-bg-ice-200": w.value === p,
1223
+ "tw-bg-blue-100 tw-text-ice-700": re(r)
1206
1224
  }
1207
- ], se = (a) => a == null ? !1 : f.value.some((v) => (v == null ? void 0 : v[t.trackBy]) === a[t.trackBy]);
1208
- function Je(a) {
1209
- var D, F;
1210
- if (!a)
1225
+ ], re = (r) => r == null ? !1 : d.value.some((p) => (p == null ? void 0 : p[t.trackBy]) === r[t.trackBy]);
1226
+ function Ze(r) {
1227
+ var A, L;
1228
+ if (!r)
1211
1229
  return !1;
1212
- const v = (D = r.value) == null ? void 0 : D.contains(a), S = (F = u.value) == null ? void 0 : F.contains(a);
1213
- return v || S;
1230
+ const p = (A = c.value) == null ? void 0 : A.contains(r), E = (L = u.value) == null ? void 0 : L.contains(r);
1231
+ return p || E;
1214
1232
  }
1215
- function bt(a) {
1216
- const v = a.relatedTarget;
1217
- !Je(v) && v && L();
1233
+ function _t(r) {
1234
+ const p = r.relatedTarget;
1235
+ !Ze(p) && p && Y();
1218
1236
  }
1219
- function xt(a) {
1220
- const v = a.target;
1221
- Je(v) || L();
1237
+ function Et(r) {
1238
+ const p = r.target;
1239
+ Ze(p) || Y();
1222
1240
  }
1223
- const _t = () => {
1241
+ const St = () => {
1224
1242
  ke(-1);
1225
1243
  }, pe = async () => {
1226
- await ze(), d.value && r.value && (h.value = h.value === 0 ? r.value.clientHeight : h.value, y.value = d.value.clientHeight);
1244
+ await ze(), h.value && c.value && (y.value = y.value === 0 ? c.value.clientHeight : y.value, m.value = h.value.clientHeight);
1227
1245
  };
1228
- return Bt(() => {
1229
- if (s.onInput)
1246
+ return Lt(() => {
1247
+ if (i.onInput)
1230
1248
  throw new Error("ll-select: use the @update:model-value event instead of @input.");
1231
1249
  window.addEventListener("resize", pe), pe();
1232
- }), At(() => {
1250
+ }), Dt(() => {
1233
1251
  window.removeEventListener("resize", pe);
1234
- }), (a, v) => (A(), Te(Xt, {
1252
+ }), (r, p) => (B(), Be(Gt, {
1235
1253
  id: t.id,
1236
- class: me(["input ll-select stash-select", q(s).class]),
1254
+ class: ve(["input ll-select stash-select", G(i).class]),
1237
1255
  "data-test": "stash-select",
1238
1256
  "add-bottom-space": t.addBottomSpace,
1239
1257
  "error-text": t.errorText || t.error,
1240
1258
  "hint-text": t.hintText || t.hint,
1241
1259
  label: t.label,
1242
1260
  "show-optional-in-label": t.showOptionalInLabel
1243
- }, Lt({
1244
- default: ve(({ fieldId: S, fieldErrorId: D, hasError: F }) => [
1261
+ }, Mt({
1262
+ default: ge(({ fieldId: E, fieldErrorId: A, hasError: L }) => [
1245
1263
  j("select", {
1246
- id: S,
1247
- "aria-errormessage": D,
1248
- "aria-invalid": F,
1264
+ id: E,
1265
+ "aria-errormessage": A,
1266
+ "aria-invalid": L,
1249
1267
  class: "tw-sr-only",
1250
1268
  disabled: t.disabled,
1251
1269
  multiple: !t.single,
1252
1270
  name: t.name,
1253
- onChange: Z
1271
+ onChange: q
1254
1272
  }, [
1255
- (A(!0), V(Be, null, Ae(B.value, (x, ee) => (A(), V("option", {
1256
- key: `srOnlyOption-${ee}`,
1257
- selected: se(x),
1273
+ (B(!0), V(Ae, null, Le(D.value, (x, ne) => (B(), V("option", {
1274
+ key: `srOnlyOption-${ne}`,
1275
+ selected: re(x),
1258
1276
  value: x[t.trackBy]
1259
- }, ae(x[t.displayBy] || ""), 9, In))), 128)),
1260
- Vn
1261
- ], 40, Pn),
1262
- ge((A(), V("div", {
1277
+ }, ce(x[t.displayBy] || ""), 9, Pn))), 128)),
1278
+ p[5] || (p[5] = j("option", { value: "" }, null, -1))
1279
+ ], 40, Fn),
1280
+ ye((B(), V("div", {
1263
1281
  ref_key: "selectRef",
1264
- ref: c,
1282
+ ref: f,
1265
1283
  role: "listbox",
1266
1284
  "aria-hidden": "true",
1267
- class: me(["stash-select__content-wrapper", [
1285
+ class: ve(["stash-select__content-wrapper", [
1268
1286
  {
1269
1287
  "stash-select--disabled": !!t.disabled,
1270
1288
  "stash-select--error": !!(t.errorText || t.error),
1271
- "stash-select--active": g.value,
1289
+ "stash-select--active": b.value,
1272
1290
  "stash-select--single": t.single
1273
1291
  },
1274
1292
  // @deprecated
1275
1293
  {
1276
- "is-active": g.value,
1294
+ "is-active": b.value,
1277
1295
  "is-single": t.single,
1278
1296
  "is-disabled": t.disabled
1279
1297
  }
1280
1298
  ]]),
1281
- "aria-controls": "listbox-" + S,
1282
- "aria-expanded": g.value,
1299
+ "aria-controls": "listbox-" + E,
1300
+ "aria-expanded": b.value,
1283
1301
  "aria-label": t.placeholder,
1284
1302
  "aria-disabled": t.disabled || void 0,
1285
- onKeydown: gt,
1286
- onKeyup: Qe(L, ["esc"])
1303
+ onKeydown: wt,
1304
+ onKeyup: et(Y, ["esc"])
1287
1305
  }, [
1288
1306
  j("div", {
1289
- id: "listbox-" + S,
1307
+ id: "listbox-" + E,
1290
1308
  ref_key: "contentRef",
1291
- ref: r,
1309
+ ref: c,
1292
1310
  class: "input-field stash-select__content",
1293
1311
  tabindex: "0",
1294
1312
  onFocusin: $,
1295
- onFocusinOnce: v[4] || (v[4] = (x) => R.value = !0),
1296
- onFocusout: bt,
1313
+ onFocusinOnce: p[4] || (p[4] = (x) => R.value = !0),
1314
+ onFocusout: _t,
1297
1315
  onKeydown: $,
1298
- onMouseleave: _t
1316
+ onMouseleave: St
1299
1317
  }, [
1300
1318
  j("ul", {
1301
1319
  ref_key: "chipsRef",
1302
- ref: d,
1320
+ ref: h,
1303
1321
  class: "stash-select__chips"
1304
1322
  }, [
1305
- f.value.length ? ye("", !0) : (A(), V("li", {
1323
+ d.value.length ? we("", !0) : (B(), V("li", {
1306
1324
  key: 0,
1307
- class: me(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1308
- }, ae(t.placeholder), 3)),
1309
- t.single ? (A(!0), V(Be, { key: 1 }, Ae(f.value, (x) => (A(), V("li", {
1325
+ class: ve(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1326
+ }, ce(t.placeholder), 3)),
1327
+ t.single ? (B(!0), V(Ae, { key: 1 }, Le(d.value, (x) => (B(), V("li", {
1310
1328
  key: `chip-${x[t.trackBy]}`,
1311
- class: me(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1329
+ class: ve(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1312
1330
  }, [
1313
- Le(a.$slots, "selected", { option: x }, () => [
1314
- we(ae(x[t.displayBy] || x) + " ", 1),
1331
+ De(r.$slots, "selected", { option: x }, () => [
1332
+ be(ce(x[t.displayBy] || x) + " ", 1),
1315
1333
  j("button", {
1316
1334
  tabindex: "-1",
1317
1335
  class: "stash-select__remove",
1318
- onKeypress: Qe(be((ee) => I(x), ["prevent"]), ["enter"]),
1319
- onMousedown: be((ee) => I(x), ["prevent", "stop"])
1336
+ onKeypress: et(xe((ne) => M(x), ["prevent"]), ["enter"]),
1337
+ onMousedown: xe((ne) => M(x), ["prevent", "stop"])
1320
1338
  }, [
1321
- ce(xe, {
1339
+ ue(_e, {
1322
1340
  icon: "close",
1323
1341
  name: "close",
1324
1342
  size: "small"
1325
1343
  })
1326
- ], 40, zn)
1344
+ ], 40, Nn)
1327
1345
  ], !0)
1328
- ], 2))), 128)) : (A(!0), V(Be, { key: 2 }, Ae(f.value, (x) => (A(), V("li", {
1346
+ ], 2))), 128)) : (B(!0), V(Ae, { key: 2 }, Le(d.value, (x) => (B(), V("li", {
1329
1347
  key: `chip-${x[t.trackBy]}`,
1330
1348
  class: "tw-inline-block"
1331
1349
  }, [
1332
- ce(et, {
1350
+ ue(nt, {
1333
1351
  "bg-color": "blue-500",
1334
1352
  "is-removable": "",
1335
1353
  "text-color": "white",
1336
1354
  class: "stash-select__chip",
1337
- onRemove: (ee) => I(x)
1355
+ onRemove: (ne) => M(x)
1338
1356
  }, {
1339
- default: ve(() => [
1340
- we(ae(x[t.displayBy] || x), 1)
1357
+ default: ge(() => [
1358
+ be(ce(x[t.displayBy] || x), 1)
1341
1359
  ]),
1342
1360
  _: 2
1343
1361
  }, 1032, ["onRemove"])
1344
1362
  ]))), 128))
1345
1363
  ], 512),
1346
- J.value ? (A(), V("div", Hn, [
1347
- ce(et, {
1364
+ ee.value ? (B(), V("div", $n, [
1365
+ ue(nt, {
1348
1366
  "bg-color": "blue-500",
1349
1367
  "is-removable": "",
1350
1368
  "text-color": "white",
1351
1369
  class: "stash-select__chip",
1352
- onRemove: U
1370
+ onRemove: Oe
1353
1371
  }, {
1354
- default: ve(() => [
1355
- we(ae(Re.value), 1)
1372
+ default: ge(() => [
1373
+ be(ce(te.value), 1)
1356
1374
  ]),
1357
1375
  _: 1
1358
1376
  })
1359
- ])) : ye("", !0),
1360
- t.icon ? (A(), Te(xe, {
1377
+ ])) : we("", !0),
1378
+ t.icon ? (B(), Be(_e, {
1361
1379
  key: 1,
1362
1380
  class: "stash-select__icon",
1363
1381
  "data-test": "stash-select|toggle-icon",
1364
1382
  name: t.icon,
1365
- onMousedown: v[0] || (v[0] = be((x) => g.value && L(), ["prevent"]))
1366
- }, null, 8, ["name"])) : ye("", !0),
1367
- (A(), Te(Dt, {
1383
+ onMousedown: p[0] || (p[0] = xe((x) => b.value && Y(), ["prevent"]))
1384
+ }, null, 8, ["name"])) : we("", !0),
1385
+ (B(), Be(Ft, {
1368
1386
  to: t.teleportTo,
1369
1387
  disabled: !t.enableTeleport
1370
1388
  }, [
1371
- ce(Ft, { name: "fade" }, {
1372
- default: ve(() => [
1373
- ge(j("div", {
1389
+ ue(Pt, { name: "fade" }, {
1390
+ default: ge(() => [
1391
+ ye(j("div", {
1374
1392
  ref_key: "optionsWrapperRef",
1375
1393
  ref: u,
1376
1394
  class: "stash-select__border-selector tw-w-full tw-shadow-2xl",
1377
- style: Mt(q(C)),
1378
- onClick: v[3] || (v[3] = be(() => {
1395
+ style: It(G(I)),
1396
+ onClick: p[3] || (p[3] = xe(() => {
1379
1397
  }, ["stop"]))
1380
1398
  }, [
1381
- T.value ? (A(), V("div", Wn, [
1382
- ge(j("input", {
1399
+ S.value ? (B(), V("div", Hn, [
1400
+ ye(j("input", {
1383
1401
  ref_key: "searchRef",
1384
- ref: p,
1385
- "onUpdate:modelValue": v[1] || (v[1] = (x) => b.value = x),
1402
+ ref: g,
1403
+ "onUpdate:modelValue": p[1] || (p[1] = (x) => v.value = x),
1386
1404
  type: "text",
1387
1405
  autocomplete: "off",
1388
1406
  class: "stash-select__search",
1389
- "data-test": q(s)["data-test"] ? q(s)["data-test"] + "-search" : "stash-select|search",
1407
+ "data-test": G(i)["data-test"] ? G(i)["data-test"] + "-search" : "stash-select|search",
1390
1408
  placeholder: t.searchPlaceholder,
1391
1409
  spellcheck: !1,
1392
- onInput: v[2] || (v[2] = //@ts-ignore
1393
- (...x) => q(Ge) && q(Ge)(...x))
1394
- }, null, 40, jn), [
1395
- [Pt, b.value]
1410
+ onInput: p[2] || (p[2] = //@ts-ignore
1411
+ (...x) => G(Qe) && G(Qe)(...x))
1412
+ }, null, 40, zn), [
1413
+ [Vt, v.value]
1396
1414
  ]),
1397
- ce(xe, {
1415
+ ue(_e, {
1398
1416
  name: "search",
1399
1417
  class: "tw-text-ice-500"
1400
1418
  })
1401
- ])) : ye("", !0),
1402
- j("ul", Kn, [
1403
- (A(!0), V(Be, null, Ae(B.value, (x, ee) => (A(), V("li", {
1419
+ ])) : we("", !0),
1420
+ j("ul", Wn, [
1421
+ (B(!0), V(Ae, null, Le(D.value, (x, ne) => (B(), V("li", {
1404
1422
  key: `option-${x[t.trackBy]}`,
1405
1423
  "data-test": x[t.trackBy],
1406
- class: me(wt(x, ee)),
1407
- onClick: (Et) => Q(x),
1408
- onMouseenter: be((Et) => ke(ee), ["self"])
1424
+ class: ve(xt(x, ne)),
1425
+ onClick: (Rt) => W(x),
1426
+ onMouseenter: xe((Rt) => ke(ne), ["self"])
1409
1427
  }, [
1410
- Le(a.$slots, "option", { option: x }, () => [
1411
- we(ae(x[t.displayBy] || x), 1)
1428
+ De(r.$slots, "option", { option: x }, () => [
1429
+ be(ce(x[t.displayBy] || x), 1)
1412
1430
  ], !0),
1413
- se(x) && !t.hideCheck ? (A(), Te(xe, {
1431
+ re(x) && !t.hideCheck ? (B(), Be(_e, {
1414
1432
  key: 0,
1415
1433
  class: "tw-ml-auto tw-text-blue-500",
1416
1434
  name: "check"
1417
- })) : ye("", !0)
1418
- ], 42, Un))), 128)),
1419
- ge(j("li", qn, [
1420
- ce(xe, {
1435
+ })) : we("", !0)
1436
+ ], 42, jn))), 128)),
1437
+ ye(j("li", Un, [
1438
+ ue(_e, {
1421
1439
  "data-test": "stash-select|options-loading",
1422
1440
  name: "working",
1423
1441
  class: "tw-animate-spin tw-text-ice-500"
1424
1442
  })
1425
1443
  ], 512), [
1426
- [He, t.loading || P.value]
1444
+ [We, t.loading || F.value]
1427
1445
  ]),
1428
- ge(j("li", Xn, [
1429
- Le(a.$slots, "no-options", {}, () => [
1430
- we(" No options ")
1446
+ ye(j("li", Kn, [
1447
+ De(r.$slots, "no-options", {}, () => [
1448
+ p[6] || (p[6] = be(" No options "))
1431
1449
  ], !0)
1432
1450
  ], 512), [
1433
- [He, !t.loading && !P.value && !B.value.length]
1451
+ [We, !t.loading && !F.value && !D.value.length]
1434
1452
  ])
1435
1453
  ])
1436
1454
  ], 4), [
1437
- [He, g.value && !t.disabled]
1455
+ [We, b.value && !t.disabled]
1438
1456
  ])
1439
1457
  ]),
1440
1458
  _: 3
1441
1459
  })
1442
1460
  ], 8, ["to", "disabled"]))
1443
- ], 40, $n)
1444
- ], 42, Nn)), [
1445
- [q(Ut), xt]
1461
+ ], 40, Vn)
1462
+ ], 42, In)), [
1463
+ [G(Kt), Et]
1446
1464
  ])
1447
1465
  ]),
1448
1466
  _: 2
1449
1467
  }, [
1450
- q(i).hint ? {
1468
+ G(a).hint ? {
1451
1469
  name: "hint",
1452
- fn: ve(() => [
1453
- Le(a.$slots, "hint", {}, void 0, !0)
1470
+ fn: ge(() => [
1471
+ De(r.$slots, "hint", {}, void 0, !0)
1454
1472
  ]),
1455
1473
  key: "0"
1456
1474
  } : void 0
1457
1475
  ]), 1032, ["id", "add-bottom-space", "class", "error-text", "hint-text", "label", "show-optional-in-label"]));
1458
1476
  }
1459
1477
  });
1460
- const Eo = /* @__PURE__ */ Yt(Yn, [["__scopeId", "data-v-9d4a4fe5"]]);
1478
+ const xo = /* @__PURE__ */ qt(Xn, [["__scopeId", "data-v-ab74bb37"]]);
1461
1479
  export {
1462
- Eo as default
1480
+ xo as default
1463
1481
  };
1464
1482
  //# sourceMappingURL=Select.js.map