welcome-ui 8.1.3 → 8.2.0-alpha.1

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 (244) hide show
  1. package/dist/{AXB53BZF-BOEe01VW.mjs → AXB53BZF-XKOjjeWO.mjs} +3 -3
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +72 -66
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +45 -41
  6. package/dist/{BYC7LY2E-B1IDizRs.mjs → BYC7LY2E-CWSI38FM.mjs} +128 -127
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +118 -112
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +12 -11
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomInput-IA_gVoXd.mjs → CustomPopper-DezjKb9n.mjs} +1458 -1442
  17. package/dist/DatePicker.mjs +63 -62
  18. package/dist/DateTimePicker.mjs +69 -63
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +180 -168
  21. package/dist/DropdownMenu.mjs +354 -351
  22. package/dist/Field.mjs +103 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +316 -295
  25. package/dist/FileUpload.mjs +83 -69
  26. package/dist/Files.mjs +41 -41
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/{ITI7HKP4-EL9KXYBU.mjs → ITI7HKP4-C89kOQb8.mjs} +68 -67
  31. package/dist/Icon.mjs +25 -25
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +22 -22
  34. package/dist/InputText.mjs +64 -56
  35. package/dist/{JC64G2H7-BzklVBKM.mjs → JC64G2H7-afsomHuH.mjs} +47 -46
  36. package/dist/{KUU7WJ55-CS4NemC6.mjs → KUU7WJ55-CzsjuIMv.mjs} +1 -1
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +32 -28
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/{MTZPJQMC-CMjAwC0N.mjs → MTZPJQMC-TybFZCho.mjs} +2 -2
  43. package/dist/Modal.mjs +263 -244
  44. package/dist/{NLEBE274-QOMV1l7e.mjs → NLEBE274-oSxMftGy.mjs} +9 -9
  45. package/dist/{P2CTZE2T-Cl2w7OLV.mjs → P2CTZE2T-DOT1mNnX.mjs} +49 -48
  46. package/dist/{P4IRICAX-DezbJY4s.mjs → P4IRICAX-CWSZLTGz.mjs} +3 -3
  47. package/dist/Pagination.mjs +105 -103
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +36 -34
  50. package/dist/Popover.mjs +106 -99
  51. package/dist/{QYJ6MIDR-Bb0O5xUM.mjs → QYJ6MIDR-DJ-vUdAM.mjs} +31 -30
  52. package/dist/Radio.mjs +52 -46
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-jn06-eLy.mjs → SYRFVSLH-B6m278Vb.mjs} +11 -10
  56. package/dist/Search.mjs +147 -135
  57. package/dist/Select.mjs +348 -330
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +353 -326
  60. package/dist/Stack.mjs +24 -23
  61. package/dist/Swiper.mjs +192 -186
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +205 -200
  64. package/dist/Tag.mjs +49 -47
  65. package/dist/Text.mjs +20 -20
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +59 -58
  68. package/dist/Toast.mjs +135 -128
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +103 -99
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-CuegL0m0.mjs → VEVQD5MH-0w9Y7Ytc.mjs} +3 -3
  73. package/dist/{VGCJ63VH-BMzoZtCu.mjs → VGCJ63VH-C0UPBY-5.mjs} +39 -38
  74. package/dist/VariantIcon.mjs +23 -22
  75. package/dist/WelcomeLoader.mjs +122 -121
  76. package/dist/WuiProvider.mjs +52 -44
  77. package/dist/{X5NMLKT6-CvSCix-_.mjs → X5NMLKT6-BJw3xE-K.mjs} +2 -2
  78. package/dist/{YV4JVR4I-Bh7B7TET.mjs → YV4JVR4I-DPC8mMuG.mjs} +57 -57
  79. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  80. package/dist/{index-5PUh49rV.mjs → index-62h-enZF.mjs} +62 -61
  81. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  82. package/dist/index-CYmF7qCH.mjs +11 -0
  83. package/dist/index-C_k-m0Rl.mjs +36 -0
  84. package/dist/index-D8v_VJ9z.mjs +26 -0
  85. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  86. package/dist/index-DpkNUfAS.mjs +11 -0
  87. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  88. package/dist/{index-Bkl89twW.mjs → index-QaLwIvZS.mjs} +8 -8
  89. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  90. package/dist/index-i_anpNhw.mjs +66 -0
  91. package/dist/index-wl3X6EM1.mjs +16 -0
  92. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  93. package/dist/radio-group-C0fUHvam.mjs +52 -0
  94. package/dist/theme.mjs +805 -805
  95. package/dist/types/components/Accordion/index.d.ts +1 -1
  96. package/dist/types/components/Alert/index.d.ts +2 -2
  97. package/dist/types/components/Alert/styles.d.ts +4 -4
  98. package/dist/types/components/Alert/theme.d.ts +4 -4
  99. package/dist/types/components/Avatar/index.d.ts +1 -1
  100. package/dist/types/components/Avatar/styles.d.ts +4 -4
  101. package/dist/types/components/Avatar/theme.d.ts +1 -1
  102. package/dist/types/components/Badge/index.d.ts +2 -2
  103. package/dist/types/components/Badge/styles.d.ts +2 -2
  104. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  105. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  106. package/dist/types/components/Button/index.d.ts +4 -5
  107. package/dist/types/components/Button/theme.d.ts +7 -7
  108. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  109. package/dist/types/components/Card/Cover.styles.d.ts +2 -2
  110. package/dist/types/components/Card/index.d.ts +2 -3
  111. package/dist/types/components/Checkbox/index.d.ts +2 -2
  112. package/dist/types/components/ClearButton/index.d.ts +4 -5
  113. package/dist/types/components/ClearButton/styles.d.ts +2 -2
  114. package/dist/types/components/CloseButton/styles.d.ts +2 -2
  115. package/dist/types/components/DatePicker/index.d.ts +3 -3
  116. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  117. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  118. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  119. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  120. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  121. package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
  122. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  123. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  124. package/dist/types/components/Drawer/index.d.ts +8 -8
  125. package/dist/types/components/Drawer/styles.d.ts +3 -3
  126. package/dist/types/components/Drawer/theme.d.ts +1 -1
  127. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  128. package/dist/types/components/Field/index.d.ts +8 -8
  129. package/dist/types/components/Field/styles.d.ts +1 -1
  130. package/dist/types/components/Field/utils.d.ts +1 -1
  131. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  132. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  133. package/dist/types/components/FileDrop/index.d.ts +16 -16
  134. package/dist/types/components/FileUpload/index.d.ts +13 -13
  135. package/dist/types/components/Files/index.d.ts +4 -4
  136. package/dist/types/components/Files/types.d.ts +1 -1
  137. package/dist/types/components/Hint/index.d.ts +1 -2
  138. package/dist/types/components/Icon/index.d.ts +3 -3
  139. package/dist/types/components/Icon/styles.d.ts +3 -3
  140. package/dist/types/components/Icon/theme.d.ts +1 -1
  141. package/dist/types/components/Icons/index.d.ts +2 -2
  142. package/dist/types/components/IconsFont/index.d.ts +2 -3
  143. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  144. package/dist/types/components/InputText/index.d.ts +1 -1
  145. package/dist/types/components/InputText/styles.d.ts +1 -1
  146. package/dist/types/components/Label/index.d.ts +2 -3
  147. package/dist/types/components/Link/index.d.ts +3 -3
  148. package/dist/types/components/Link/styles.d.ts +2 -2
  149. package/dist/types/components/Loader/index.d.ts +1 -1
  150. package/dist/types/components/Loader/styles.d.ts +2 -2
  151. package/dist/types/components/Loader/theme.d.ts +2 -2
  152. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  153. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  154. package/dist/types/components/Logo/Wui.d.ts +1 -2
  155. package/dist/types/components/Logo/index.d.ts +5 -5
  156. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -5
  157. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  158. package/dist/types/components/Modal/Assets/index.d.ts +5 -5
  159. package/dist/types/components/Modal/Assets/styles.d.ts +4 -4
  160. package/dist/types/components/Modal/Close.d.ts +1 -2
  161. package/dist/types/components/Modal/Footer.d.ts +1 -1
  162. package/dist/types/components/Modal/Header.d.ts +2 -2
  163. package/dist/types/components/Modal/index.d.ts +11 -11
  164. package/dist/types/components/Modal/styles.d.ts +4 -4
  165. package/dist/types/components/Modal/theme.d.ts +1 -1
  166. package/dist/types/components/Pagination/index.d.ts +2 -2
  167. package/dist/types/components/Pagination/utils.d.ts +1 -1
  168. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  169. package/dist/types/components/Popover/Content.d.ts +2 -3
  170. package/dist/types/components/Popover/Popover.d.ts +4 -5
  171. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  172. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  173. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  174. package/dist/types/components/Radio/index.d.ts +5 -5
  175. package/dist/types/components/Radio/styles.d.ts +2 -2
  176. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  177. package/dist/types/components/RadioTab/index.d.ts +2 -2
  178. package/dist/types/components/RadioTab/styles.d.ts +9 -9
  179. package/dist/types/components/Search/index.d.ts +4 -4
  180. package/dist/types/components/Select/index.d.ts +9 -9
  181. package/dist/types/components/Select/styles.d.ts +4 -4
  182. package/dist/types/components/Select/utils.d.ts +4 -4
  183. package/dist/types/components/Shape/index.d.ts +1 -1
  184. package/dist/types/components/Shape/styles.d.ts +2 -2
  185. package/dist/types/components/Slider/Range.d.ts +3 -3
  186. package/dist/types/components/Slider/index.d.ts +2 -2
  187. package/dist/types/components/Slider/styles.d.ts +10 -10
  188. package/dist/types/components/Stack/index.d.ts +1 -1
  189. package/dist/types/components/Swiper/index.d.ts +16 -17
  190. package/dist/types/components/Swiper/styles.d.ts +55 -55
  191. package/dist/types/components/System/index.d.ts +10 -10
  192. package/dist/types/components/Table/index.d.ts +6 -7
  193. package/dist/types/components/Table/styles.d.ts +1 -1
  194. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  195. package/dist/types/components/Tabs/TabList.d.ts +2 -2
  196. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  197. package/dist/types/components/Tabs/theme.d.ts +1 -1
  198. package/dist/types/components/Tag/index.d.ts +2 -3
  199. package/dist/types/components/Tag/styles.d.ts +1 -1
  200. package/dist/types/components/Tag/theme.d.ts +2 -2
  201. package/dist/types/components/Text/index.d.ts +2 -2
  202. package/dist/types/components/Textarea/index.d.ts +1 -1
  203. package/dist/types/components/TimePicker/index.d.ts +2 -2
  204. package/dist/types/components/Toast/Growl.d.ts +1 -1
  205. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  206. package/dist/types/components/Toast/ToastWrapper.d.ts +4 -4
  207. package/dist/types/components/Toast/index.d.ts +5 -5
  208. package/dist/types/components/Toast/styles.d.ts +10 -10
  209. package/dist/types/components/Toast/theme.d.ts +1 -1
  210. package/dist/types/components/Toast/utils.d.ts +13 -13
  211. package/dist/types/components/Toggle/index.d.ts +2 -2
  212. package/dist/types/components/Toggle/theme.d.ts +4 -4
  213. package/dist/types/components/Tooltip/index.d.ts +3 -3
  214. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  215. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  216. package/dist/types/components/VariantIcon/theme.d.ts +1 -1
  217. package/dist/types/theme/colors.d.ts +3 -3
  218. package/dist/types/theme/dark.d.ts +1 -1
  219. package/dist/types/theme/defaultFields.d.ts +5 -5
  220. package/dist/types/theme/fonts.d.ts +5 -5
  221. package/dist/types/theme/index.d.ts +31 -31
  222. package/dist/types/theme/screens.d.ts +7 -7
  223. package/dist/types/theme/space.d.ts +9 -9
  224. package/dist/types/utils/field-styles.d.ts +2 -2
  225. package/dist/types/utils/index.d.ts +2 -2
  226. package/dist/types/utils/ts-utils.d.ts +1 -1
  227. package/dist/types/utils/use-copy-text.d.ts +1 -1
  228. package/dist/types/utils/use-create-portal.d.ts +1 -1
  229. package/dist/types/utils/wrap-children.d.ts +1 -1
  230. package/dist/{use-viewport-CfklieD-.mjs → use-viewport-CWpjoHXy.mjs} +2 -2
  231. package/dist/utils.mjs +13 -13
  232. package/dist/wrap-children-CzmhoRzd.mjs +13 -0
  233. package/package.json +3 -27
  234. package/dist/LVA2YJMS-DDEmK0pp.mjs +0 -1482
  235. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  236. package/dist/index-B0gDDiFm.mjs +0 -66
  237. package/dist/index-B22SHR8h.mjs +0 -26
  238. package/dist/index-CQD9fgf_.mjs +0 -11
  239. package/dist/index-CmsWSKKs.mjs +0 -11
  240. package/dist/index-u1oHKa7X.mjs +0 -16
  241. package/dist/index-wr_b5GSV.mjs +0 -36
  242. package/dist/radio-group-RFyDp0KD.mjs +0 -51
  243. package/dist/wrap-children-aq69jtFP.mjs +0 -12
  244. package/dist/{downshift.esm-D0ns_SQs.mjs → downshift.esm-B7Jil1wW.mjs} +9 -9
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { a as kt, b as Nt, d as Vt, c as dt } from "./JC64G2H7-BzklVBKM.mjs";
3
- import { m as Wt, o as Bt, t as jt, c as pt, b as Ee, a as mt, d as zt } from "./YV4JVR4I-Bh7B7TET.mjs";
4
- import { A as Yt, B as le, D as q, C as j, H as It, c as je, _ as Ce, i as He, a6 as ht, b as me, F as Le, E as _e, t as Se, d as G, g as _, f as ze, h as Ye, v as Xt, a7 as vt, u as ke, Q as et, a8 as se, a5 as qt, e as gt, Y as Ut, Z as Ne, a9 as Gt, l as Zt, m as Jt } from "./LVA2YJMS-DDEmK0pp.mjs";
5
- import { u as wt, P as xt, a as Qt } from "./MTZPJQMC-CMjAwC0N.mjs";
6
- import { useRef as ce, useState as Ie, useEffect as U, useContext as Kt, createContext as en, useCallback as yt } from "react";
2
+ import { a as kt, b as Nt, d as Vt, c as dt } from "./JC64G2H7-afsomHuH.mjs";
3
+ import { m as Wt, o as Bt, t as jt, c as pt, b as Ee, a as mt, d as zt } from "./YV4JVR4I-DPC8mMuG.mjs";
4
+ import { z as Xt, A as le, C as q, B as j, G as Yt, c as je, _ as Ce, i as He, a5 as ht, b as me, E as Le, D as _e, d as G, g as _, f as ze, h as Xe, t as It, a6 as vt, u as ke, P as et, a7 as se, a4 as qt, e as gt, X as Ut, Y as Ne, a8 as Gt, l as Jt, m as Zt } from "./LVA2YJMS-C-kJ1lkr.mjs";
5
+ import { u as wt, P as xt, a as Kt } from "./MTZPJQMC-TybFZCho.mjs";
6
+ import { useRef as ce, useState as Ye, useEffect as U, useContext as Qt, createContext as en, useCallback as yt } from "react";
7
+ import { j as Se } from "./jsx-runtime-B7I4PJ0H.mjs";
7
8
  function bt(e = {}) {
8
9
  var n = e, {
9
10
  popover: o
10
- } = n, t = Yt(n, [
11
+ } = n, t = Xt(n, [
11
12
  "popover"
12
13
  ]);
13
14
  const i = Wt(
@@ -41,16 +42,16 @@ function bt(e = {}) {
41
42
  });
42
43
  }
43
44
  function Pt(e, n, o) {
44
- return It(n, [o.popover]), Ee(e, o, "placement"), Nt(e, n, o);
45
+ return Yt(n, [o.popover]), Ee(e, o, "placement"), Nt(e, n, o);
45
46
  }
46
- function jn(e = {}) {
47
+ function zn(e = {}) {
47
48
  const [n, o] = mt(bt, e);
48
49
  return Pt(n, o, e);
49
50
  }
50
51
  function de(e) {
51
52
  return e.split("-")[1];
52
53
  }
53
- function Xe(e) {
54
+ function Ie(e) {
54
55
  return e === "y" ? "height" : "width";
55
56
  }
56
57
  function z(e) {
@@ -61,7 +62,7 @@ function ne(e) {
61
62
  }
62
63
  function tt(e, n, o) {
63
64
  let { reference: t, floating: i } = e;
64
- const r = t.x + t.width / 2 - i.width / 2, l = t.y + t.height / 2 - i.height / 2, a = ne(n), c = Xe(a), s = t[c] / 2 - i[c] / 2, f = a === "x";
65
+ const r = t.x + t.width / 2 - i.width / 2, l = t.y + t.height / 2 - i.height / 2, a = ne(n), c = Ie(a), s = t[c] / 2 - i[c] / 2, f = a === "x";
65
66
  let u;
66
67
  switch (z(n)) {
67
68
  case "top":
@@ -97,7 +98,7 @@ const tn = async (e, n, o) => {
97
98
  }
98
99
  return { x: f, y: u, placement: m, strategy: i, middlewareData: p };
99
100
  };
100
- function Z(e, n) {
101
+ function J(e, n) {
101
102
  return typeof e == "function" ? e(n) : e;
102
103
  }
103
104
  function Et(e) {
@@ -111,20 +112,20 @@ function Re(e) {
111
112
  async function qe(e, n) {
112
113
  var o;
113
114
  n === void 0 && (n = {});
114
- const { x: t, y: i, platform: r, rects: l, elements: a, strategy: c } = e, { boundary: s = "clippingAncestors", rootBoundary: f = "viewport", elementContext: u = "floating", altBoundary: m = !1, padding: p = 0 } = Z(n, e), d = Et(p), h = a[m ? u === "floating" ? "reference" : "floating" : u], v = Re(await r.getClippingRect({ element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)), boundary: s, rootBoundary: f, strategy: c })), g = u === "floating" ? { ...l.floating, x: t, y: i } : l.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), b = await (r.isElement == null ? void 0 : r.isElement(w)) && await (r.getScale == null ? void 0 : r.getScale(w)) || { x: 1, y: 1 }, P = Re(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: g, offsetParent: w, strategy: c }) : g);
115
+ const { x: t, y: i, platform: r, rects: l, elements: a, strategy: c } = e, { boundary: s = "clippingAncestors", rootBoundary: f = "viewport", elementContext: u = "floating", altBoundary: m = !1, padding: p = 0 } = J(n, e), d = Et(p), h = a[m ? u === "floating" ? "reference" : "floating" : u], v = Re(await r.getClippingRect({ element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)), boundary: s, rootBoundary: f, strategy: c })), g = u === "floating" ? { ...l.floating, x: t, y: i } : l.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), b = await (r.isElement == null ? void 0 : r.isElement(w)) && await (r.getScale == null ? void 0 : r.getScale(w)) || { x: 1, y: 1 }, P = Re(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: g, offsetParent: w, strategy: c }) : g);
115
116
  return { top: (v.top - P.top + d.top) / b.y, bottom: (P.bottom - v.bottom + d.bottom) / b.y, left: (v.left - P.left + d.left) / b.x, right: (P.right - v.right + d.right) / b.x };
116
117
  }
117
- const he = Math.min, K = Math.max;
118
+ const he = Math.min, Q = Math.max;
118
119
  function Ve(e, n, o) {
119
- return K(e, he(n, o));
120
+ return Q(e, he(n, o));
120
121
  }
121
122
  const nn = (e) => ({ name: "arrow", options: e, async fn(n) {
122
- const { x: o, y: t, placement: i, rects: r, platform: l, elements: a } = n, { element: c, padding: s = 0 } = Z(e, n) || {};
123
+ const { x: o, y: t, placement: i, rects: r, platform: l, elements: a } = n, { element: c, padding: s = 0 } = J(e, n) || {};
123
124
  if (c == null) return {};
124
- const f = Et(s), u = { x: o, y: t }, m = ne(i), p = Xe(m), d = await l.getDimensions(c), h = m === "y", v = h ? "top" : "left", g = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", b = r.reference[p] + r.reference[m] - u[m] - r.floating[p], P = u[m] - r.reference[m], x = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
125
+ const f = Et(s), u = { x: o, y: t }, m = ne(i), p = Ie(m), d = await l.getDimensions(c), h = m === "y", v = h ? "top" : "left", g = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", b = r.reference[p] + r.reference[m] - u[m] - r.floating[p], P = u[m] - r.reference[m], x = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
125
126
  let E = x ? x[w] : 0;
126
127
  E && await (l.isElement == null ? void 0 : l.isElement(x)) || (E = a.floating[w] || r.floating[p]);
127
- const C = b / 2 - P / 2, H = E / 2 - d[p] / 2 - 1, F = he(f[v], H), R = he(f[g], H), A = F, $ = E - d[p] - R, y = E / 2 - d[p] / 2 + C, O = Ve(A, y, $), S = de(i) != null && y != O && r.reference[p] / 2 - (y < A ? F : R) - d[p] / 2 < 0 ? y < A ? A - y : $ - y : 0;
128
+ const C = b / 2 - P / 2, H = E / 2 - d[p] / 2 - 1, D = he(f[v], H), R = he(f[g], H), A = D, $ = E - d[p] - R, y = E / 2 - d[p] / 2 + C, O = Ve(A, y, $), S = de(i) != null && y != O && r.reference[p] / 2 - (y < A ? D : R) - d[p] / 2 < 0 ? y < A ? A - y : $ - y : 0;
128
129
  return { [m]: u[m] - S, data: { [m]: O, centerOffset: y - O + S } };
129
130
  } }), on = ["top", "right", "bottom", "left"];
130
131
  on.reduce((e, n) => e.concat(n, n + "-start", n + "-end"), []);
@@ -134,37 +135,37 @@ function Ae(e) {
134
135
  }
135
136
  function sn(e, n, o) {
136
137
  o === void 0 && (o = !1);
137
- const t = de(e), i = ne(e), r = Xe(i);
138
+ const t = de(e), i = ne(e), r = Ie(i);
138
139
  let l = i === "x" ? t === (o ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
139
140
  return n.reference[r] > n.floating[r] && (l = Ae(l)), { main: l, cross: Ae(l) };
140
141
  }
141
142
  const ln = { start: "end", end: "start" };
142
- function Fe(e) {
143
+ function De(e) {
143
144
  return e.replace(/start|end/g, (n) => ln[n]);
144
145
  }
145
146
  const cn = function(e) {
146
147
  return e === void 0 && (e = {}), { name: "flip", options: e, async fn(n) {
147
148
  var o;
148
- const { placement: t, middlewareData: i, rects: r, initialPlacement: l, platform: a, elements: c } = n, { mainAxis: s = !0, crossAxis: f = !0, fallbackPlacements: u, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: d = !0, ...h } = Z(e, n), v = z(t), g = z(l) === l, w = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = u || (g || !d ? [Ae(l)] : function(A) {
149
+ const { placement: t, middlewareData: i, rects: r, initialPlacement: l, platform: a, elements: c } = n, { mainAxis: s = !0, crossAxis: f = !0, fallbackPlacements: u, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: d = !0, ...h } = J(e, n), v = z(t), g = z(l) === l, w = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = u || (g || !d ? [Ae(l)] : function(A) {
149
150
  const $ = Ae(A);
150
- return [Fe(A), $, Fe($)];
151
+ return [De(A), $, De($)];
151
152
  }(l));
152
153
  u || p === "none" || b.push(...function(A, $, y, O) {
153
154
  const S = de(A);
154
- let T = function(M, L, X) {
155
- const V = ["left", "right"], W = ["right", "left"], Q = ["top", "bottom"], oe = ["bottom", "top"];
155
+ let T = function(M, L, I) {
156
+ const V = ["left", "right"], W = ["right", "left"], K = ["top", "bottom"], oe = ["bottom", "top"];
156
157
  switch (M) {
157
158
  case "top":
158
159
  case "bottom":
159
- return X ? L ? W : V : L ? V : W;
160
+ return I ? L ? W : V : L ? V : W;
160
161
  case "left":
161
162
  case "right":
162
- return L ? Q : oe;
163
+ return L ? K : oe;
163
164
  default:
164
165
  return [];
165
166
  }
166
167
  }(z(A), y === "start", O);
167
- return S && (T = T.map((M) => M + "-" + S), $ && (T = T.concat(T.map(Fe)))), T;
168
+ return S && (T = T.map((M) => M + "-" + S), $ && (T = T.concat(T.map(De)))), T;
168
169
  }(l, d, p, w));
169
170
  const P = [l, ...b], x = await qe(n, h), E = [];
170
171
  let C = ((o = i.flip) == null ? void 0 : o.overflows) || [];
@@ -173,10 +174,10 @@ const cn = function(e) {
173
174
  E.push(x[A], x[$]);
174
175
  }
175
176
  if (C = [...C, { placement: t, overflows: E }], !E.every((A) => A <= 0)) {
176
- var H, F;
177
+ var H, D;
177
178
  const A = (((H = i.flip) == null ? void 0 : H.index) || 0) + 1, $ = P[A];
178
179
  if ($) return { data: { index: A, overflows: C }, reset: { placement: $ } };
179
- let y = (F = C.filter((O) => O.overflows[0] <= 0).sort((O, S) => O.overflows[1] - S.overflows[1])[0]) == null ? void 0 : F.placement;
180
+ let y = (D = C.filter((O) => O.overflows[0] <= 0).sort((O, S) => O.overflows[1] - S.overflows[1])[0]) == null ? void 0 : D.placement;
180
181
  if (!y) switch (m) {
181
182
  case "bestFit": {
182
183
  var R;
@@ -194,7 +195,7 @@ const cn = function(e) {
194
195
  }, an = function(e) {
195
196
  return e === void 0 && (e = 0), { name: "offset", options: e, async fn(n) {
196
197
  const { x: o, y: t } = n, i = await async function(r, l) {
197
- const { placement: a, platform: c, elements: s } = r, f = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), u = z(a), m = de(a), p = ne(a) === "x", d = ["left", "top"].includes(u) ? -1 : 1, h = f && p ? -1 : 1, v = Z(l, r);
198
+ const { placement: a, platform: c, elements: s } = r, f = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), u = z(a), m = de(a), p = ne(a) === "x", d = ["left", "top"].includes(u) ? -1 : 1, h = f && p ? -1 : 1, v = J(l, r);
198
199
  let { mainAxis: g, crossAxis: w, alignmentAxis: b } = typeof v == "number" ? { mainAxis: v, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...v };
199
200
  return m && typeof b == "number" && (w = m === "end" ? -1 * b : b), p ? { x: w * h, y: g * d } : { x: g * d, y: w * h };
200
201
  }(n, e);
@@ -209,7 +210,7 @@ const un = function(e) {
209
210
  const { x: o, y: t, placement: i } = n, { mainAxis: r = !0, crossAxis: l = !1, limiter: a = { fn: (v) => {
210
211
  let { x: g, y: w } = v;
211
212
  return { x: g, y: w };
212
- } }, ...c } = Z(e, n), s = { x: o, y: t }, f = await qe(n, c), u = ne(z(i)), m = St(u);
213
+ } }, ...c } = J(e, n), s = { x: o, y: t }, f = await qe(n, c), u = ne(z(i)), m = St(u);
213
214
  let p = s[u], d = s[m];
214
215
  if (r) {
215
216
  const v = u === "y" ? "bottom" : "right";
@@ -224,9 +225,9 @@ const un = function(e) {
224
225
  } };
225
226
  }, fn = function(e) {
226
227
  return e === void 0 && (e = {}), { options: e, fn(n) {
227
- const { x: o, y: t, placement: i, rects: r, middlewareData: l } = n, { offset: a = 0, mainAxis: c = !0, crossAxis: s = !0 } = Z(e, n), f = { x: o, y: t }, u = ne(i), m = St(u);
228
+ const { x: o, y: t, placement: i, rects: r, middlewareData: l } = n, { offset: a = 0, mainAxis: c = !0, crossAxis: s = !0 } = J(e, n), f = { x: o, y: t }, u = ne(i), m = St(u);
228
229
  let p = f[u], d = f[m];
229
- const h = Z(a, n), v = typeof h == "number" ? { mainAxis: h, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...h };
230
+ const h = J(a, n), v = typeof h == "number" ? { mainAxis: h, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...h };
230
231
  if (c) {
231
232
  const b = u === "y" ? "height" : "width", P = r.reference[u] - r.floating[b] + v.mainAxis, x = r.reference[u] + r.reference[b] - v.mainAxis;
232
233
  p < P ? p = P : p > x && (p = x);
@@ -241,7 +242,7 @@ const un = function(e) {
241
242
  }, dn = function(e) {
242
243
  return e === void 0 && (e = {}), { name: "size", options: e, async fn(n) {
243
244
  const { placement: o, rects: t, platform: i, elements: r } = n, { apply: l = () => {
244
- }, ...a } = Z(e, n), c = await qe(n, a), s = z(o), f = de(o), u = ne(o) === "x", { width: m, height: p } = t.floating;
245
+ }, ...a } = J(e, n), c = await qe(n, a), s = z(o), f = de(o), u = ne(o) === "x", { width: m, height: p } = t.floating;
245
246
  let d, h;
246
247
  s === "top" || s === "bottom" ? (d = s, h = f === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (h = s, d = f === "end" ? "top" : "bottom");
247
248
  const v = p - c[d], g = m - c[h], w = !n.middlewareData.shift;
@@ -254,42 +255,42 @@ const un = function(e) {
254
255
  b = f || w ? he(v, E) : E;
255
256
  }
256
257
  if (w && !f) {
257
- const E = K(c.left, 0), C = K(c.right, 0), H = K(c.top, 0), F = K(c.bottom, 0);
258
- u ? P = m - 2 * (E !== 0 || C !== 0 ? E + C : K(c.left, c.right)) : b = p - 2 * (H !== 0 || F !== 0 ? H + F : K(c.top, c.bottom));
258
+ const E = Q(c.left, 0), C = Q(c.right, 0), H = Q(c.top, 0), D = Q(c.bottom, 0);
259
+ u ? P = m - 2 * (E !== 0 || C !== 0 ? E + C : Q(c.left, c.right)) : b = p - 2 * (H !== 0 || D !== 0 ? H + D : Q(c.top, c.bottom));
259
260
  }
260
261
  await l({ ...n, availableWidth: P, availableHeight: b });
261
262
  const x = await i.getDimensions(r.floating);
262
263
  return m !== x.width || p !== x.height ? { reset: { rects: !0 } } : {};
263
264
  } };
264
265
  };
265
- function D(e) {
266
+ function F(e) {
266
267
  var n;
267
268
  return ((n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
268
269
  }
269
270
  function k(e) {
270
- return D(e).getComputedStyle(e);
271
+ return F(e).getComputedStyle(e);
271
272
  }
272
273
  function Rt(e) {
273
- return e instanceof D(e).Node;
274
+ return e instanceof F(e).Node;
274
275
  }
275
- function J(e) {
276
+ function Z(e) {
276
277
  return Rt(e) ? (e.nodeName || "").toLowerCase() : "#document";
277
278
  }
278
279
  function N(e) {
279
- return e instanceof D(e).HTMLElement;
280
+ return e instanceof F(e).HTMLElement;
280
281
  }
281
- function Y(e) {
282
- return e instanceof D(e).Element;
282
+ function X(e) {
283
+ return e instanceof F(e).Element;
283
284
  }
284
285
  function nt(e) {
285
- return typeof ShadowRoot < "u" && (e instanceof D(e).ShadowRoot || e instanceof ShadowRoot);
286
+ return typeof ShadowRoot < "u" && (e instanceof F(e).ShadowRoot || e instanceof ShadowRoot);
286
287
  }
287
288
  function ve(e) {
288
289
  const { overflow: n, overflowX: o, overflowY: t, display: i } = k(e);
289
290
  return /auto|scroll|overlay|hidden|clip/.test(n + t + o) && !["inline", "contents"].includes(i);
290
291
  }
291
292
  function pn(e) {
292
- return ["table", "td", "th"].includes(J(e));
293
+ return ["table", "td", "th"].includes(Z(e));
293
294
  }
294
295
  function We(e) {
295
296
  const n = Ue(), o = k(e);
@@ -299,7 +300,7 @@ function Ue() {
299
300
  return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
300
301
  }
301
302
  function $e(e) {
302
- return ["html", "body", "#document"].includes(J(e));
303
+ return ["html", "body", "#document"].includes(Z(e));
303
304
  }
304
305
  const Be = Math.min, ae = Math.max, Oe = Math.round, Pe = Math.floor, ee = (e) => ({ x: e, y: e });
305
306
  function At(e) {
@@ -309,7 +310,7 @@ function At(e) {
309
310
  return a && (o = r, t = l), { width: o, height: t, $: a };
310
311
  }
311
312
  function Ge(e) {
312
- return Y(e) ? e : e.contextElement;
313
+ return X(e) ? e : e.contextElement;
313
314
  }
314
315
  function ue(e) {
315
316
  const n = Ge(e);
@@ -322,38 +323,38 @@ const ot = ee(0);
322
323
  function Ot(e, n, o) {
323
324
  var t, i;
324
325
  if (n === void 0 && (n = !0), !Ue()) return ot;
325
- const r = e ? D(e) : window;
326
+ const r = e ? F(e) : window;
326
327
  return !o || n && o !== r ? ot : { x: ((t = r.visualViewport) == null ? void 0 : t.offsetLeft) || 0, y: ((i = r.visualViewport) == null ? void 0 : i.offsetTop) || 0 };
327
328
  }
328
329
  function te(e, n, o, t) {
329
330
  n === void 0 && (n = !1), o === void 0 && (o = !1);
330
331
  const i = e.getBoundingClientRect(), r = Ge(e);
331
332
  let l = ee(1);
332
- n && (t ? Y(t) && (l = ue(t)) : l = ue(e));
333
+ n && (t ? X(t) && (l = ue(t)) : l = ue(e));
333
334
  const a = Ot(r, o, t);
334
335
  let c = (i.left + a.x) / l.x, s = (i.top + a.y) / l.y, f = i.width / l.x, u = i.height / l.y;
335
336
  if (r) {
336
- const m = D(r), p = t && Y(t) ? D(t) : t;
337
+ const m = F(r), p = t && X(t) ? F(t) : t;
337
338
  let d = m.frameElement;
338
339
  for (; d && t && p !== m; ) {
339
340
  const h = ue(d), v = d.getBoundingClientRect(), g = getComputedStyle(d), w = v.left + (d.clientLeft + parseFloat(g.paddingLeft)) * h.x, b = v.top + (d.clientTop + parseFloat(g.paddingTop)) * h.y;
340
- c *= h.x, s *= h.y, f *= h.x, u *= h.y, c += w, s += b, d = D(d).frameElement;
341
+ c *= h.x, s *= h.y, f *= h.x, u *= h.y, c += w, s += b, d = F(d).frameElement;
341
342
  }
342
343
  }
343
344
  return Re({ width: f, height: u, x: c, y: s });
344
345
  }
345
- function I(e) {
346
+ function Y(e) {
346
347
  return ((Rt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
347
348
  }
348
349
  function Me(e) {
349
- return Y(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
350
+ return X(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
350
351
  }
351
352
  function Tt(e) {
352
- return te(I(e)).left + Me(e).scrollLeft;
353
+ return te(Y(e)).left + Me(e).scrollLeft;
353
354
  }
354
355
  function fe(e) {
355
- if (J(e) === "html") return e;
356
- const n = e.assignedSlot || e.parentNode || nt(e) && e.host || I(e);
356
+ if (Z(e) === "html") return e;
357
+ const n = e.assignedSlot || e.parentNode || nt(e) && e.host || Y(e);
357
358
  return nt(n) ? n.host : n;
358
359
  }
359
360
  function Ct(e) {
@@ -363,13 +364,13 @@ function Ct(e) {
363
364
  function Te(e, n) {
364
365
  var o;
365
366
  n === void 0 && (n = []);
366
- const t = Ct(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = D(t);
367
+ const t = Ct(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = F(t);
367
368
  return i ? n.concat(r, r.visualViewport || [], ve(t) ? t : []) : n.concat(t, Te(t));
368
369
  }
369
370
  function rt(e, n, o) {
370
371
  let t;
371
372
  if (n === "viewport") t = function(i, r) {
372
- const l = D(i), a = I(i), c = l.visualViewport;
373
+ const l = F(i), a = Y(i), c = l.visualViewport;
373
374
  let s = a.clientWidth, f = a.clientHeight, u = 0, m = 0;
374
375
  if (c) {
375
376
  s = c.width, f = c.height;
@@ -379,12 +380,12 @@ function rt(e, n, o) {
379
380
  return { width: s, height: f, x: u, y: m };
380
381
  }(e, o);
381
382
  else if (n === "document") t = function(i) {
382
- const r = I(i), l = Me(i), a = i.ownerDocument.body, c = ae(r.scrollWidth, r.clientWidth, a.scrollWidth, a.clientWidth), s = ae(r.scrollHeight, r.clientHeight, a.scrollHeight, a.clientHeight);
383
+ const r = Y(i), l = Me(i), a = i.ownerDocument.body, c = ae(r.scrollWidth, r.clientWidth, a.scrollWidth, a.clientWidth), s = ae(r.scrollHeight, r.clientHeight, a.scrollHeight, a.clientHeight);
383
384
  let f = -l.scrollLeft + Tt(i);
384
385
  const u = -l.scrollTop;
385
386
  return k(a).direction === "rtl" && (f += ae(r.clientWidth, a.clientWidth) - c), { width: c, height: s, x: f, y: u };
386
- }(I(e));
387
- else if (Y(n)) t = function(i, r) {
387
+ }(Y(e));
388
+ else if (X(n)) t = function(i, r) {
388
389
  const l = te(i, !0, r === "fixed"), a = l.top + i.clientTop, c = l.left + i.clientLeft, s = N(i) ? ue(i) : ee(1);
389
390
  return { width: i.clientWidth * s.x, height: i.clientHeight * s.y, x: c * s.x, y: a * s.y };
390
391
  }(n, o);
@@ -396,17 +397,17 @@ function rt(e, n, o) {
396
397
  }
397
398
  function Ht(e, n) {
398
399
  const o = fe(e);
399
- return !(o === n || !Y(o) || $e(o)) && (k(o).position === "fixed" || Ht(o, n));
400
+ return !(o === n || !X(o) || $e(o)) && (k(o).position === "fixed" || Ht(o, n));
400
401
  }
401
402
  function it(e, n) {
402
403
  return N(e) && k(e).position !== "fixed" ? n ? n(e) : e.offsetParent : null;
403
404
  }
404
405
  function st(e, n) {
405
- const o = D(e);
406
+ const o = F(e);
406
407
  if (!N(e)) return o;
407
408
  let t = it(e, n);
408
409
  for (; t && pn(t) && k(t).position === "static"; ) t = it(t, n);
409
- return t && (J(t) === "html" || J(t) === "body" && k(t).position === "static" && !We(t)) ? o : t || function(i) {
410
+ return t && (Z(t) === "html" || Z(t) === "body" && k(t).position === "static" && !We(t)) ? o : t || function(i) {
410
411
  let r = fe(i);
411
412
  for (; N(r) && !$e(r); ) {
412
413
  if (We(r)) return r;
@@ -416,10 +417,10 @@ function st(e, n) {
416
417
  }(e) || o;
417
418
  }
418
419
  function mn(e, n, o) {
419
- const t = N(n), i = I(n), r = o === "fixed", l = te(e, !0, r, n);
420
+ const t = N(n), i = Y(n), r = o === "fixed", l = te(e, !0, r, n);
420
421
  let a = { scrollLeft: 0, scrollTop: 0 };
421
422
  const c = ee(0);
422
- if (t || !t && !r) if ((J(n) !== "body" || ve(i)) && (a = Me(n)), N(n)) {
423
+ if (t || !t && !r) if ((Z(n) !== "body" || ve(i)) && (a = Me(n)), N(n)) {
423
424
  const s = te(n, !0, r, n);
424
425
  c.x = s.x + n.clientLeft, c.y = s.y + n.clientTop;
425
426
  } else i && (c.x = Tt(i));
@@ -430,10 +431,10 @@ const hn = { getClippingRect: function(e) {
430
431
  const r = o === "clippingAncestors" ? function(s, f) {
431
432
  const u = f.get(s);
432
433
  if (u) return u;
433
- let m = Te(s).filter((v) => Y(v) && J(v) !== "body"), p = null;
434
+ let m = Te(s).filter((v) => X(v) && Z(v) !== "body"), p = null;
434
435
  const d = k(s).position === "fixed";
435
436
  let h = d ? fe(s) : s;
436
- for (; Y(h) && !$e(h); ) {
437
+ for (; X(h) && !$e(h); ) {
437
438
  const v = k(h), g = We(h);
438
439
  g || v.position !== "fixed" || (p = null), (d ? !g && !p : !g && v.position === "static" && p && ["absolute", "fixed"].includes(p.position) || ve(h) && !g && Ht(s, h)) ? m = m.filter((w) => w !== h) : p = v, h = fe(h);
439
440
  }
@@ -445,18 +446,18 @@ const hn = { getClippingRect: function(e) {
445
446
  return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
446
447
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
447
448
  let { rect: n, offsetParent: o, strategy: t } = e;
448
- const i = N(o), r = I(o);
449
+ const i = N(o), r = Y(o);
449
450
  if (o === r) return n;
450
451
  let l = { scrollLeft: 0, scrollTop: 0 }, a = ee(1);
451
452
  const c = ee(0);
452
- if ((i || !i && t !== "fixed") && ((J(o) !== "body" || ve(r)) && (l = Me(o)), N(o))) {
453
+ if ((i || !i && t !== "fixed") && ((Z(o) !== "body" || ve(r)) && (l = Me(o)), N(o))) {
453
454
  const s = te(o);
454
455
  a = ue(o), c.x = s.x + o.clientLeft, c.y = s.y + o.clientTop;
455
456
  }
456
457
  return { width: n.width * a.x, height: n.height * a.y, x: n.x * a.x - l.scrollLeft * a.x + c.x, y: n.y * a.y - l.scrollTop * a.y + c.y };
457
- }, isElement: Y, getDimensions: function(e) {
458
+ }, isElement: X, getDimensions: function(e) {
458
459
  return At(e);
459
- }, getOffsetParent: st, getDocumentElement: I, getScale: ue, async getElementRects(e) {
460
+ }, getOffsetParent: st, getDocumentElement: Y, getScale: ue, async getElementRects(e) {
460
461
  let { reference: n, floating: o, strategy: t } = e;
461
462
  const i = this.getOffsetParent || st, r = this.getDimensions;
462
463
  return { reference: mn(n, await i(o), t), floating: { x: 0, y: 0, ...await r(o) } };
@@ -469,15 +470,15 @@ function vn(e, n, o, t) {
469
470
  });
470
471
  const u = s && a ? function(h, v) {
471
472
  let g, w = null;
472
- const b = I(h);
473
+ const b = Y(h);
473
474
  function P() {
474
475
  clearTimeout(g), w && w.disconnect(), w = null;
475
476
  }
476
477
  return function x(E, C) {
477
478
  E === void 0 && (E = !1), C === void 0 && (C = 1), P();
478
- const { left: H, top: F, width: R, height: A } = h.getBoundingClientRect();
479
+ const { left: H, top: D, width: R, height: A } = h.getBoundingClientRect();
479
480
  if (E || v(), !R || !A) return;
480
- const $ = Pe(F), y = Pe(b.clientWidth - (H + R)), O = Pe(b.clientHeight - (F + A)), S = Pe(H);
481
+ const $ = Pe(D), y = Pe(b.clientWidth - (H + R)), O = Pe(b.clientHeight - (D + A)), S = Pe(H);
481
482
  let T = !0;
482
483
  w = new IntersectionObserver((M) => {
483
484
  const L = M[0].intersectionRatio;
@@ -646,7 +647,7 @@ var $t = je(
646
647
  t,
647
648
  process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
648
649
  );
649
- const C = t.useState("arrowElement"), H = t.useState("anchorElement"), F = t.useState("disclosureElement"), R = t.useState("popoverElement"), A = t.useState("contentElement"), $ = t.useState("placement"), y = t.useState("mounted"), O = t.useState("rendered"), S = ce(null), [T, M] = Ie(!1), { portalRef: L, domReady: X } = ht(r, x.portalRef), V = me(b), W = me(P), Q = !!P;
650
+ const C = t.useState("arrowElement"), H = t.useState("anchorElement"), D = t.useState("disclosureElement"), R = t.useState("popoverElement"), A = t.useState("contentElement"), $ = t.useState("placement"), y = t.useState("mounted"), O = t.useState("rendered"), S = ce(null), [T, M] = Ye(!1), { portalRef: L, domReady: I } = ht(r, x.portalRef), V = me(b), W = me(P), K = !!P;
650
651
  Le(() => {
651
652
  if (!(R != null && R.isConnected)) return;
652
653
  R.style.setProperty(
@@ -656,7 +657,7 @@ var $t = je(
656
657
  const B = yn(H, V), pe = async () => {
657
658
  if (!y) return;
658
659
  C || (S.current = S.current || document.createElement("div"));
659
- const re = C || S.current, Dt = [
660
+ const re = C || S.current, Ft = [
660
661
  Pn(re, { gutter: v, shift: u }),
661
662
  En({ flip: f, overflowPadding: w }),
662
663
  Sn({ slide: m, overlap: p, overflowPadding: w }),
@@ -669,7 +670,7 @@ var $t = je(
669
670
  ], ie = await gn(B, R, {
670
671
  placement: $,
671
672
  strategy: s ? "fixed" : "absolute",
672
- middleware: Dt
673
+ middleware: Ft
673
674
  });
674
675
  t == null || t.setState("currentPlacement", ie.placement), M(!0);
675
676
  const Lt = ct(ie.x), _t = ct(ie.y);
@@ -678,29 +679,29 @@ var $t = je(
678
679
  left: "0",
679
680
  transform: `translate3d(${Lt}px,${_t}px,0)`
680
681
  }), re && ie.middlewareData.arrow) {
681
- const { x: we, y: xe } = ie.middlewareData.arrow, Je = ie.placement.split("-")[0], ye = re.clientWidth / 2, be = re.clientHeight / 2, Qe = we != null ? we + ye : -ye, Ke = xe != null ? xe + be : -be;
682
+ const { x: we, y: xe } = ie.middlewareData.arrow, Ze = ie.placement.split("-")[0], ye = re.clientWidth / 2, be = re.clientHeight / 2, Ke = we != null ? we + ye : -ye, Qe = xe != null ? xe + be : -be;
682
683
  R.style.setProperty(
683
684
  "--popover-transform-origin",
684
685
  {
685
- top: `${Qe}px calc(100% + ${be}px)`,
686
- bottom: `${Qe}px ${-be}px`,
687
- left: `calc(100% + ${ye}px) ${Ke}px`,
688
- right: `${-ye}px ${Ke}px`
689
- }[Je]
686
+ top: `${Ke}px calc(100% + ${be}px)`,
687
+ bottom: `${Ke}px ${-be}px`,
688
+ left: `calc(100% + ${ye}px) ${Qe}px`,
689
+ right: `${-ye}px ${Qe}px`
690
+ }[Ze]
690
691
  ), Object.assign(re.style, {
691
692
  left: we != null ? `${we}px` : "",
692
693
  top: xe != null ? `${xe}px` : "",
693
- [Je]: "100%"
694
+ [Ze]: "100%"
694
695
  });
695
696
  }
696
- }, Ft = vn(B, R, async () => {
697
- Q ? (await W({ updatePosition: pe }), M(!0)) : await pe();
697
+ }, Dt = vn(B, R, async () => {
698
+ K ? (await W({ updatePosition: pe }), M(!0)) : await pe();
698
699
  }, {
699
700
  // JSDOM doesn't support ResizeObserver
700
701
  elementResize: typeof ResizeObserver == "function"
701
702
  });
702
703
  return () => {
703
- M(!1), Ft();
704
+ M(!1), Dt();
704
705
  };
705
706
  }, [
706
707
  t,
@@ -711,7 +712,7 @@ var $t = je(
711
712
  R,
712
713
  $,
713
714
  y,
714
- X,
715
+ I,
715
716
  s,
716
717
  f,
717
718
  u,
@@ -723,10 +724,10 @@ var $t = je(
723
724
  g,
724
725
  w,
725
726
  V,
726
- Q,
727
+ K,
727
728
  W
728
729
  ]), Le(() => {
729
- if (!y || !X || !(R != null && R.isConnected) || !(A != null && A.isConnected)) return;
730
+ if (!y || !I || !(R != null && R.isConnected) || !(A != null && A.isConnected)) return;
730
731
  const B = () => {
731
732
  R.style.zIndex = getComputedStyle(A).zIndex;
732
733
  };
@@ -735,7 +736,7 @@ var $t = je(
735
736
  pe = requestAnimationFrame(B);
736
737
  });
737
738
  return () => cancelAnimationFrame(pe);
738
- }, [y, X, R, A]);
739
+ }, [y, I, R, A]);
739
740
  const oe = s ? "fixed" : "absolute";
740
741
  return x = _e(
741
742
  x,
@@ -773,25 +774,25 @@ var $t = je(
773
774
  modal: i,
774
775
  portal: r,
775
776
  preserveTabOrder: l,
776
- preserveTabOrderAnchor: F || H,
777
+ preserveTabOrderAnchor: D || H,
777
778
  autoFocusOnShow: T && a
778
779
  }, x), {
779
780
  portalRef: L
780
781
  })), x;
781
782
  }
782
- ), zn = dt(
783
+ ), Xn = dt(
783
784
  ze(function(n) {
784
785
  const o = $t(n);
785
- return Ye(wn, o);
786
+ return Xe(wn, o);
786
787
  }),
787
788
  wt
788
- ), ge = Xt(
789
- [Qt],
789
+ ), ge = It(
790
+ [Kt],
790
791
  [xt]
791
792
  );
792
793
  ge.useContext;
793
794
  ge.useScopedContext;
794
- var Ze = ge.useProviderContext, Yn = ge.ContextProvider, On = ge.ScopedContextProvider;
795
+ var Je = ge.useProviderContext, Yn = ge.ContextProvider, On = ge.ScopedContextProvider;
795
796
  function Tn(e = {}) {
796
797
  var n;
797
798
  const o = (n = e.store) == null ? void 0 : n.getState(), t = bt(le(q({}, e), {
@@ -817,7 +818,7 @@ function In(e = {}) {
817
818
  const [n, o] = mt(Tn, e);
818
819
  return Cn(n, o, e);
819
820
  }
820
- function De(e) {
821
+ function Fe(e) {
821
822
  return [e.clientX, e.clientY];
822
823
  }
823
824
  function at(e, n) {
@@ -859,7 +860,7 @@ function Mn(e) {
859
860
  } = n, t = Ce(n, [
860
861
  "store"
861
862
  ]);
862
- const [i, r] = Ie(!1), l = o.useState("mounted");
863
+ const [i, r] = Ye(!1), l = o.useState("mounted");
863
864
  U(() => {
864
865
  l || r(!1);
865
866
  }, [l]);
@@ -875,7 +876,7 @@ function Mn(e) {
875
876
  onFocus: c
876
877
  }), t;
877
878
  }
878
- var ft = en(null), Fn = je(
879
+ var ft = en(null), Dn = je(
879
880
  function(n) {
880
881
  var o = n, {
881
882
  store: t,
@@ -892,12 +893,12 @@ var ft = en(null), Fn = je(
892
893
  "hideOnHoverOutside",
893
894
  "disablePointerEventsOnApproach"
894
895
  ]);
895
- const f = Ze();
896
+ const f = Je();
896
897
  t = t || f, He(
897
898
  t,
898
899
  process.env.NODE_ENV !== "production" && "Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component."
899
900
  );
900
- const u = ce(null), [m, p] = Ie([]), d = ce(0), h = ce(null), { portalRef: v, domReady: g } = ht(r, s.portalRef), w = vt(), b = !!a, P = ke(a), x = !!c, E = ke(
901
+ const u = ce(null), [m, p] = Ye([]), d = ce(0), h = ce(null), { portalRef: v, domReady: g } = ht(r, s.portalRef), w = vt(), b = !!a, P = ke(a), x = !!c, E = ke(
901
902
  c
902
903
  ), C = t.useState("open"), H = t.useState("mounted");
903
904
  U(() => {
@@ -906,16 +907,16 @@ var ft = en(null), Fn = je(
906
907
  return y ? et(
907
908
  se("mousemove", (S) => {
908
909
  if (!t || !w()) return;
909
- const { anchorElement: T, hideTimeout: M, timeout: L } = t.getState(), X = h.current, [V] = S.composedPath(), W = T;
910
+ const { anchorElement: T, hideTimeout: M, timeout: L } = t.getState(), I = h.current, [V] = S.composedPath(), W = T;
910
911
  if (Mt(V, y, W, m)) {
911
- h.current = V && W && Ne(W, V) ? De(S) : null, window.clearTimeout(d.current), d.current = 0;
912
+ h.current = V && W && Ne(W, V) ? Fe(S) : null, window.clearTimeout(d.current), d.current = 0;
912
913
  return;
913
914
  }
914
915
  if (!d.current) {
915
- if (X) {
916
- const Q = De(S), oe = ut(y, X);
917
- if (at(Q, oe)) {
918
- if (h.current = Q, !E(S)) return;
916
+ if (I) {
917
+ const K = Fe(S), oe = ut(y, I);
918
+ if (at(K, oe)) {
919
+ if (h.current = K, !E(S)) return;
919
920
  S.preventDefault(), S.stopPropagation();
920
921
  return;
921
922
  }
@@ -945,7 +946,7 @@ var ft = en(null), Fn = je(
945
946
  const T = h.current;
946
947
  if (!T) return;
947
948
  const M = ut(S, T);
948
- if (at(De(O), M)) {
949
+ if (at(Fe(O), M)) {
949
950
  if (!E(O)) return;
950
951
  O.preventDefault(), O.stopPropagation();
951
952
  }
@@ -960,14 +961,14 @@ var ft = en(null), Fn = je(
960
961
  }, [g, H, x, E]), U(() => {
961
962
  g && (C || t == null || t.setAutoFocusOnShow(!1));
962
963
  }, [t, g, C]);
963
- const F = qt(C);
964
+ const D = qt(C);
964
965
  U(() => {
965
966
  if (g)
966
967
  return () => {
967
- F.current || t == null || t.setAutoFocusOnShow(!1);
968
+ D.current || t == null || t.setAutoFocusOnShow(!1);
968
969
  };
969
970
  }, [t, g]);
970
- const R = Kt(ft);
971
+ const R = Qt(ft);
971
972
  Le(() => {
972
973
  if (i || !r || !H || !g) return;
973
974
  const y = u.current;
@@ -1012,21 +1013,21 @@ var ft = en(null), Fn = je(
1012
1013
  }
1013
1014
  })), s;
1014
1015
  }
1015
- ), Xn = dt(
1016
+ ), qn = dt(
1016
1017
  ze(function(n) {
1017
- const o = Fn(n);
1018
- return Ye($n, o);
1018
+ const o = Dn(n);
1019
+ return Xe($n, o);
1019
1020
  }),
1020
- Ze
1021
- ), Dn = "a", Ln = je(
1021
+ Je
1022
+ ), Fn = "a", Ln = je(
1022
1023
  function(n) {
1023
1024
  var o = n, { store: t, showOnHover: i = !0 } = o, r = Ce(o, ["store", "showOnHover"]);
1024
- const l = Ze();
1025
+ const l = Je();
1025
1026
  t = t || l, He(
1026
1027
  t,
1027
1028
  process.env.NODE_ENV !== "production" && "HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component."
1028
1029
  );
1029
- const a = Zt(r), c = ce(0);
1030
+ const a = Jt(r), c = ce(0);
1030
1031
  U(() => () => window.clearTimeout(c.current), []), U(() => se("mouseleave", (g) => {
1031
1032
  if (!t) return;
1032
1033
  const { anchorElement: w } = t.getState();
@@ -1056,22 +1057,22 @@ var ft = en(null), Fn = je(
1056
1057
  ref: gt(h, r.ref),
1057
1058
  onMouseMove: m,
1058
1059
  onClick: d
1059
- }), r = Jt(r), r;
1060
+ }), r = Zt(r), r;
1060
1061
  }
1061
- ), qn = ze(function(n) {
1062
+ ), Un = ze(function(n) {
1062
1063
  const o = Ln(n);
1063
- return Ye(Dn, o);
1064
+ return Xe(Fn, o);
1064
1065
  });
1065
1066
  export {
1066
- qn as H,
1067
- zn as P,
1068
- Xn as a,
1067
+ Un as H,
1068
+ Xn as P,
1069
+ qn as a,
1069
1070
  In as b,
1070
1071
  Tn as c,
1071
1072
  Cn as d,
1072
1073
  On as e,
1073
1074
  Yn as f,
1074
- Fn as g,
1075
+ Dn as g,
1075
1076
  Ln as h,
1076
- jn as u
1077
+ zn as u
1077
1078
  };