energy-components 1.1.2-beta.1 → 1.1.3

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 (68) hide show
  1. package/dist/components/accordion.es.js +11 -11
  2. package/dist/components/button.es.js +10 -11
  3. package/dist/components/card.es.js +21 -9
  4. package/dist/components/checkbox.es.js +1 -1
  5. package/dist/components/datepicker.es.js +2008 -2008
  6. package/dist/components/dropdown.es.js +97 -97
  7. package/dist/components/{icon-svg-CEZ-L3iv.js → icon-svg-GoL3_ayS.js} +699 -665
  8. package/dist/components/iconList.es.js +1 -1
  9. package/dist/components/iconSvg.es.js +1 -1
  10. package/dist/components/index.es.js +1 -1
  11. package/dist/components/infoBox.es.js +1 -1
  12. package/dist/components/link.es.js +29 -26
  13. package/dist/components/modal.es.js +28 -26
  14. package/dist/components/multiselect.es.js +2 -2
  15. package/dist/components/overlay.es.js +3 -3
  16. package/dist/components/persistentToast.es.js +8 -8
  17. package/dist/components/radioButton.es.js +1 -1
  18. package/dist/components/sidebar.es.js +11 -11
  19. package/dist/components/style/button.css +1 -1
  20. package/dist/components/style/card.css +1 -1
  21. package/dist/components/style/datepicker.css +1 -1
  22. package/dist/components/style/link.css +1 -1
  23. package/dist/components/style/modal.css +1 -1
  24. package/dist/components/style/tag.css +1 -1
  25. package/dist/components/style/textArea.css +1 -1
  26. package/dist/components/style/textField.css +1 -1
  27. package/dist/components/style/tooltip.css +1 -1
  28. package/dist/components/switch.es.js +1 -1
  29. package/dist/components/tabBar.es.js +27 -27
  30. package/dist/components/tag.es.js +1 -1
  31. package/dist/components/textArea.es.js +77 -75
  32. package/dist/components/textField.es.js +62 -59
  33. package/dist/components/tooltip.es.js +262 -259
  34. package/dist/energy-components.es.js +4600 -4542
  35. package/dist/energy-components.umd.js +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +4 -4
  38. package/dist/types/src/components/buttons/button/button.vue.d.ts +11 -20
  39. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +4 -4
  40. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +20 -24
  41. package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +8 -15
  42. package/dist/types/src/components/content/card/card.vue.d.ts +26 -15
  43. package/dist/types/src/components/content/divider/divider.vue.d.ts +4 -4
  44. package/dist/types/src/components/content/tag/tag.vue.d.ts +4 -4
  45. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +7 -4
  46. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +7 -4
  47. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +13 -19
  48. package/dist/types/src/components/icon-svg/icon-list.vue.d.ts +1 -1
  49. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +4 -4
  50. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +13 -20
  51. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +26 -36
  52. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +4 -4
  53. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +13 -20
  54. package/dist/types/src/components/input/switch/switch.vue.d.ts +13 -19
  55. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +16 -25
  56. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +15 -23
  57. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +16 -21
  58. package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +6 -6
  59. package/dist/types/src/components/navigation/link/link.vue.d.ts +11 -19
  60. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +6 -6
  61. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -27
  62. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +92 -58
  63. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +11 -18
  64. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +19 -22
  65. package/dist/types/src/composables/breakpoints.d.ts +1 -1
  66. package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
  67. package/dist/types/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +2 -2
@@ -1,20 +1,20 @@
1
- import { unref as at, defineComponent as Vt, toRefs as Mt, ref as U, computed as Ft, openBlock as bt, createElementBlock as At, createElementVNode as Z, renderSlot as Ht, normalizeClass as Ct, toDisplayString as Rt, createVNode as jt, createCommentVNode as Yt } from "vue";
2
- import { I as Xt } from "./icon-svg-CEZ-L3iv.js";
3
- import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/tooltip.css';const X = Math.min, R = Math.max, nt = Math.round, H = (t) => ({
1
+ import { unref as at, defineComponent as Vt, toRefs as Ft, ref as U, computed as Ht, openBlock as bt, createElementBlock as vt, createElementVNode as Z, renderSlot as jt, normalizeClass as At, toDisplayString as Ct, createVNode as It, createCommentVNode as Yt } from "vue";
2
+ import { I as zt } from "./icon-svg-GoL3_ayS.js";
3
+ import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/tooltip.css';const Y = Math.min, O = Math.max, nt = Math.round, k = (t) => ({
5
5
  x: t,
6
6
  y: t
7
- }), zt = {
7
+ }), Kt = {
8
8
  left: "right",
9
9
  right: "left",
10
10
  bottom: "top",
11
11
  top: "bottom"
12
- }, Kt = {
12
+ }, qt = {
13
13
  start: "end",
14
14
  end: "start"
15
15
  };
16
16
  function ft(t, e, o) {
17
- return R(t, X(e, o));
17
+ return O(t, Y(e, o));
18
18
  }
19
19
  function J(t, e) {
20
20
  return typeof t == "function" ? t(e) : t;
@@ -28,29 +28,29 @@ function Q(t) {
28
28
  function Tt(t) {
29
29
  return t === "x" ? "y" : "x";
30
30
  }
31
- function gt(t) {
31
+ function mt(t) {
32
32
  return t === "y" ? "height" : "width";
33
33
  }
34
- function I(t) {
34
+ function z(t) {
35
35
  return ["top", "bottom"].includes(j(t)) ? "y" : "x";
36
36
  }
37
- function ht(t) {
38
- return Tt(I(t));
37
+ function pt(t) {
38
+ return Tt(z(t));
39
39
  }
40
- function qt(t, e, o) {
40
+ function Gt(t, e, o) {
41
41
  o === void 0 && (o = !1);
42
- const n = Q(t), i = ht(t), r = gt(i);
42
+ const n = Q(t), i = pt(t), r = mt(i);
43
43
  let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
44
44
  return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
45
45
  }
46
- function Gt(t) {
46
+ function Jt(t) {
47
47
  const e = ot(t);
48
48
  return [ut(t), e, ut(e)];
49
49
  }
50
50
  function ut(t) {
51
- return t.replace(/start|end/g, (e) => Kt[e]);
51
+ return t.replace(/start|end/g, (e) => qt[e]);
52
52
  }
53
- function Jt(t, e, o) {
53
+ function Qt(t, e, o) {
54
54
  const n = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
55
55
  switch (t) {
56
56
  case "top":
@@ -63,15 +63,15 @@ function Jt(t, e, o) {
63
63
  return [];
64
64
  }
65
65
  }
66
- function Qt(t, e, o, n) {
66
+ function Ut(t, e, o, n) {
67
67
  const i = Q(t);
68
- let r = Jt(j(t), o === "start", n);
68
+ let r = Qt(j(t), o === "start", n);
69
69
  return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
70
70
  }
71
71
  function ot(t) {
72
- return t.replace(/left|right|bottom|top/g, (e) => zt[e]);
72
+ return t.replace(/left|right|bottom|top/g, (e) => Kt[e]);
73
73
  }
74
- function Ut(t) {
74
+ function Zt(t) {
75
75
  return {
76
76
  top: 0,
77
77
  right: 0,
@@ -80,8 +80,8 @@ function Ut(t) {
80
80
  ...t
81
81
  };
82
82
  }
83
- function Et(t) {
84
- return typeof t != "number" ? Ut(t) : {
83
+ function Dt(t) {
84
+ return typeof t != "number" ? Zt(t) : {
85
85
  top: t,
86
86
  right: t,
87
87
  bottom: t,
@@ -106,12 +106,12 @@ function it(t) {
106
106
  y: o
107
107
  };
108
108
  }
109
- function Ot(t, e, o) {
109
+ function Rt(t, e, o) {
110
110
  let {
111
111
  reference: n,
112
112
  floating: i
113
113
  } = t;
114
- const r = I(e), s = ht(e), l = gt(s), c = j(e), a = r === "y", f = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, p = n[l] / 2 - i[l] / 2;
114
+ const r = z(e), s = pt(e), l = mt(s), c = j(e), a = r === "y", f = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, p = n[l] / 2 - i[l] / 2;
115
115
  let d;
116
116
  switch (c) {
117
117
  case "top":
@@ -154,7 +154,7 @@ function Ot(t, e, o) {
154
154
  }
155
155
  return d;
156
156
  }
157
- const Zt = async (t, e, o) => {
157
+ const te = async (t, e, o) => {
158
158
  const {
159
159
  placement: n = "bottom",
160
160
  strategy: i = "absolute",
@@ -168,7 +168,7 @@ const Zt = async (t, e, o) => {
168
168
  }), {
169
169
  x: f,
170
170
  y: u
171
- } = Ot(a, n, c), p = n, d = {}, m = 0;
171
+ } = Rt(a, n, c), p = n, d = {}, m = 0;
172
172
  for (let g = 0; g < l.length; g++) {
173
173
  const {
174
174
  name: h,
@@ -176,8 +176,8 @@ const Zt = async (t, e, o) => {
176
176
  } = l[g], {
177
177
  x,
178
178
  y,
179
- data: b,
180
- reset: v
179
+ data: v,
180
+ reset: b
181
181
  } = await w({
182
182
  x: f,
183
183
  y: u,
@@ -196,16 +196,16 @@ const Zt = async (t, e, o) => {
196
196
  ...d,
197
197
  [h]: {
198
198
  ...d[h],
199
- ...b
199
+ ...v
200
200
  }
201
- }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (p = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
201
+ }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (p = b.placement), b.rects && (a = b.rects === !0 ? await s.getElementRects({
202
202
  reference: t,
203
203
  floating: e,
204
204
  strategy: i
205
- }) : v.rects), {
205
+ }) : b.rects), {
206
206
  x: f,
207
207
  y: u
208
- } = Ot(a, p, c)), g = -1);
208
+ } = Rt(a, p, c)), g = -1);
209
209
  }
210
210
  return {
211
211
  x: f,
@@ -215,7 +215,7 @@ const Zt = async (t, e, o) => {
215
215
  middlewareData: d
216
216
  };
217
217
  };
218
- async function wt(t, e) {
218
+ async function gt(t, e) {
219
219
  var o;
220
220
  e === void 0 && (e = {});
221
221
  const {
@@ -231,7 +231,7 @@ async function wt(t, e) {
231
231
  elementContext: u = "floating",
232
232
  altBoundary: p = !1,
233
233
  padding: d = 0
234
- } = J(e, t), m = Et(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
234
+ } = J(e, t), m = Dt(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
235
235
  element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
236
236
  boundary: a,
237
237
  rootBoundary: f,
@@ -241,26 +241,26 @@ async function wt(t, e) {
241
241
  y: i,
242
242
  width: s.floating.width,
243
243
  height: s.floating.height
244
- } : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), b = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
244
+ } : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), v = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
245
245
  x: 1,
246
246
  y: 1
247
247
  } : {
248
248
  x: 1,
249
249
  y: 1
250
- }, v = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
250
+ }, b = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
251
251
  elements: l,
252
252
  rect: x,
253
253
  offsetParent: y,
254
254
  strategy: c
255
255
  }) : x);
256
256
  return {
257
- top: (w.top - v.top + m.top) / b.y,
258
- bottom: (v.bottom - w.bottom + m.bottom) / b.y,
259
- left: (w.left - v.left + m.left) / b.x,
260
- right: (v.right - w.right + m.right) / b.x
257
+ top: (w.top - b.top + m.top) / v.y,
258
+ bottom: (b.bottom - w.bottom + m.bottom) / v.y,
259
+ left: (w.left - b.left + m.left) / v.x,
260
+ right: (b.right - w.right + m.right) / v.x
261
261
  };
262
262
  }
263
- const te = (t) => ({
263
+ const ee = (t) => ({
264
264
  name: "arrow",
265
265
  options: t,
266
266
  async fn(e) {
@@ -278,26 +278,26 @@ const te = (t) => ({
278
278
  } = J(t, e) || {};
279
279
  if (a == null)
280
280
  return {};
281
- const u = Et(f), p = {
281
+ const u = Dt(f), p = {
282
282
  x: o,
283
283
  y: n
284
- }, d = ht(i), m = gt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
- let O = T ? T[y] : 0;
286
- (!O || !await (s.isElement == null ? void 0 : s.isElement(T))) && (O = l.floating[y] || r.floating[m]);
287
- const $ = b / 2 - v / 2, E = O / 2 - g[m] / 2 - 1, _ = X(u[w], E), B = X(u[x], E), P = _, V = O - g[m] - B, A = O / 2 - g[m] / 2 + $, K = ft(P, A, V), W = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < P ? _ : B) - g[m] / 2 < 0, L = W ? A < P ? A - P : A - V : 0;
284
+ }, d = pt(i), m = mt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = r.reference[m] + r.reference[d] - p[d] - r.floating[m], b = p[d] - r.reference[d], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
+ let C = D ? D[y] : 0;
286
+ (!C || !await (s.isElement == null ? void 0 : s.isElement(D))) && (C = l.floating[y] || r.floating[m]);
287
+ const W = v / 2 - b / 2, E = C / 2 - g[m] / 2 - 1, _ = Y(u[w], E), B = Y(u[x], E), L = _, V = C - g[m] - B, A = C / 2 - g[m] / 2 + W, K = ft(L, A, V), M = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < L ? _ : B) - g[m] / 2 < 0, P = M ? A < L ? A - L : A - V : 0;
288
288
  return {
289
- [d]: p[d] + L,
289
+ [d]: p[d] + P,
290
290
  data: {
291
291
  [d]: K,
292
- centerOffset: A - K - L,
293
- ...W && {
294
- alignmentOffset: L
292
+ centerOffset: A - K - P,
293
+ ...M && {
294
+ alignmentOffset: P
295
295
  }
296
296
  },
297
- reset: W
297
+ reset: M
298
298
  };
299
299
  }
300
- }), ee = function(t) {
300
+ }), ne = function(t) {
301
301
  return t === void 0 && (t = {}), {
302
302
  name: "flip",
303
303
  options: t,
@@ -321,20 +321,20 @@ const te = (t) => ({
321
321
  } = J(t, e);
322
322
  if ((o = r.arrow) != null && o.alignmentOffset)
323
323
  return {};
324
- const w = j(i), x = I(l), y = j(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), v = p || (y || !g ? [ot(l)] : Gt(l)), T = m !== "none";
325
- !p && T && v.push(...Qt(l, g, m, b));
326
- const O = [l, ...v], $ = await wt(e, h), E = [];
324
+ const w = j(i), x = z(l), y = j(l) === l, v = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = p || (y || !g ? [ot(l)] : Jt(l)), D = m !== "none";
325
+ !p && D && b.push(...Ut(l, g, m, v));
326
+ const C = [l, ...b], W = await gt(e, h), E = [];
327
327
  let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
- if (f && E.push($[w]), u) {
329
- const A = qt(i, s, b);
330
- E.push($[A[0]], $[A[1]]);
328
+ if (f && E.push(W[w]), u) {
329
+ const A = Gt(i, s, v);
330
+ E.push(W[A[0]], W[A[1]]);
331
331
  }
332
332
  if (_ = [..._, {
333
333
  placement: i,
334
334
  overflows: E
335
335
  }], !E.every((A) => A <= 0)) {
336
- var B, P;
337
- const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = O[A];
336
+ var B, L;
337
+ const A = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, K = C[A];
338
338
  if (K)
339
339
  return {
340
340
  data: {
@@ -345,31 +345,31 @@ const te = (t) => ({
345
345
  placement: K
346
346
  }
347
347
  };
348
- let W = (P = _.filter((L) => L.overflows[0] <= 0).sort((L, M) => L.overflows[1] - M.overflows[1])[0]) == null ? void 0 : P.placement;
349
- if (!W)
348
+ let M = (L = _.filter((P) => P.overflows[0] <= 0).sort((P, F) => P.overflows[1] - F.overflows[1])[0]) == null ? void 0 : L.placement;
349
+ if (!M)
350
350
  switch (d) {
351
351
  case "bestFit": {
352
352
  var V;
353
- const L = (V = _.filter((M) => {
354
- if (T) {
355
- const F = I(M.placement);
356
- return F === x || // Create a bias to the `y` side axis due to horizontal
353
+ const P = (V = _.filter((F) => {
354
+ if (D) {
355
+ const H = z(F.placement);
356
+ return H === x || // Create a bias to the `y` side axis due to horizontal
357
357
  // reading directions favoring greater width.
358
- F === "y";
358
+ H === "y";
359
359
  }
360
360
  return !0;
361
- }).map((M) => [M.placement, M.overflows.filter((F) => F > 0).reduce((F, Bt) => F + Bt, 0)]).sort((M, F) => M[1] - F[1])[0]) == null ? void 0 : V[0];
362
- L && (W = L);
361
+ }).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, Bt) => H + Bt, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 : V[0];
362
+ P && (M = P);
363
363
  break;
364
364
  }
365
365
  case "initialPlacement":
366
- W = l;
366
+ M = l;
367
367
  break;
368
368
  }
369
- if (i !== W)
369
+ if (i !== M)
370
370
  return {
371
371
  reset: {
372
- placement: W
372
+ placement: M
373
373
  }
374
374
  };
375
375
  }
@@ -377,12 +377,12 @@ const te = (t) => ({
377
377
  }
378
378
  };
379
379
  };
380
- async function ne(t, e) {
380
+ async function oe(t, e) {
381
381
  const {
382
382
  placement: o,
383
383
  platform: n,
384
384
  elements: i
385
- } = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = j(o), l = Q(o), c = I(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, u = J(e, t);
385
+ } = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = j(o), l = Q(o), c = z(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, u = J(e, t);
386
386
  let {
387
387
  mainAxis: p,
388
388
  crossAxis: d,
@@ -404,7 +404,7 @@ async function ne(t, e) {
404
404
  y: d * f
405
405
  };
406
406
  }
407
- const oe = function(t) {
407
+ const ie = function(t) {
408
408
  return t === void 0 && (t = 0), {
409
409
  name: "offset",
410
410
  options: t,
@@ -415,7 +415,7 @@ const oe = function(t) {
415
415
  y: r,
416
416
  placement: s,
417
417
  middlewareData: l
418
- } = e, c = await ne(e, t);
418
+ } = e, c = await oe(e, t);
419
419
  return s === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
420
420
  x: i + c.x,
421
421
  y: r + c.y,
@@ -426,7 +426,7 @@ const oe = function(t) {
426
426
  };
427
427
  }
428
428
  };
429
- }, ie = function(t) {
429
+ }, se = function(t) {
430
430
  return t === void 0 && (t = {}), {
431
431
  name: "shift",
432
432
  options: t,
@@ -454,7 +454,7 @@ const oe = function(t) {
454
454
  } = J(t, e), a = {
455
455
  x: o,
456
456
  y: n
457
- }, f = await wt(e, c), u = I(j(i)), p = Tt(u);
457
+ }, f = await gt(e, c), u = z(j(i)), p = Tt(u);
458
458
  let d = a[p], m = a[u];
459
459
  if (r) {
460
460
  const h = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", x = d + f[h], y = d - f[w];
@@ -482,7 +482,7 @@ const oe = function(t) {
482
482
  };
483
483
  }
484
484
  };
485
- }, se = function(t) {
485
+ }, re = function(t) {
486
486
  return t === void 0 && (t = {}), {
487
487
  name: "size",
488
488
  options: t,
@@ -497,22 +497,22 @@ const oe = function(t) {
497
497
  apply: c = () => {
498
498
  },
499
499
  ...a
500
- } = J(t, e), f = await wt(e, a), u = j(i), p = Q(i), d = I(i) === "y", {
500
+ } = J(t, e), f = await gt(e, a), u = j(i), p = Q(i), d = z(i) === "y", {
501
501
  width: m,
502
502
  height: g
503
503
  } = r.floating;
504
504
  let h, w;
505
505
  u === "top" || u === "bottom" ? (h = u, w = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (w = u, h = p === "end" ? "top" : "bottom");
506
- const x = g - f.top - f.bottom, y = m - f.left - f.right, b = X(g - f[h], x), v = X(m - f[w], y), T = !e.middlewareData.shift;
507
- let O = b, $ = v;
508
- if ((o = e.middlewareData.shift) != null && o.enabled.x && ($ = y), (n = e.middlewareData.shift) != null && n.enabled.y && (O = x), T && !p) {
509
- const _ = R(f.left, 0), B = R(f.right, 0), P = R(f.top, 0), V = R(f.bottom, 0);
510
- d ? $ = m - 2 * (_ !== 0 || B !== 0 ? _ + B : R(f.left, f.right)) : O = g - 2 * (P !== 0 || V !== 0 ? P + V : R(f.top, f.bottom));
506
+ const x = g - f.top - f.bottom, y = m - f.left - f.right, v = Y(g - f[h], x), b = Y(m - f[w], y), D = !e.middlewareData.shift;
507
+ let C = v, W = b;
508
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && (W = y), (n = e.middlewareData.shift) != null && n.enabled.y && (C = x), D && !p) {
509
+ const _ = O(f.left, 0), B = O(f.right, 0), L = O(f.top, 0), V = O(f.bottom, 0);
510
+ d ? W = m - 2 * (_ !== 0 || B !== 0 ? _ + B : O(f.left, f.right)) : C = g - 2 * (L !== 0 || V !== 0 ? L + V : O(f.top, f.bottom));
511
511
  }
512
512
  await c({
513
513
  ...e,
514
- availableWidth: $,
515
- availableHeight: O
514
+ availableWidth: W,
515
+ availableHeight: C
516
516
  });
517
517
  const E = await s.getDimensions(l.floating);
518
518
  return m !== E.width || g !== E.height ? {
@@ -526,28 +526,28 @@ const oe = function(t) {
526
526
  function st() {
527
527
  return typeof window < "u";
528
528
  }
529
- function z(t) {
530
- return xt(t) ? (t.nodeName || "").toLowerCase() : "#document";
529
+ function X(t) {
530
+ return ht(t) ? (t.nodeName || "").toLowerCase() : "#document";
531
531
  }
532
- function C(t) {
532
+ function R(t) {
533
533
  var e;
534
534
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
535
535
  }
536
536
  function N(t) {
537
537
  var e;
538
- return (e = (xt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
538
+ return (e = (ht(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
539
539
  }
540
- function xt(t) {
541
- return st() ? t instanceof Node || t instanceof C(t).Node : !1;
540
+ function ht(t) {
541
+ return st() ? t instanceof Node || t instanceof R(t).Node : !1;
542
542
  }
543
543
  function S(t) {
544
- return st() ? t instanceof Element || t instanceof C(t).Element : !1;
544
+ return st() ? t instanceof Element || t instanceof R(t).Element : !1;
545
545
  }
546
- function k(t) {
547
- return st() ? t instanceof HTMLElement || t instanceof C(t).HTMLElement : !1;
546
+ function $(t) {
547
+ return st() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
548
548
  }
549
- function _t(t) {
550
- return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
549
+ function Ot(t) {
550
+ return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
551
551
  }
552
552
  function et(t) {
553
553
  const {
@@ -555,11 +555,11 @@ function et(t) {
555
555
  overflowX: o,
556
556
  overflowY: n,
557
557
  display: i
558
- } = D(t);
558
+ } = T(t);
559
559
  return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
560
560
  }
561
- function re(t) {
562
- return ["table", "td", "th"].includes(z(t));
561
+ function le(t) {
562
+ return ["table", "td", "th"].includes(X(t));
563
563
  }
564
564
  function rt(t) {
565
565
  return [":popover-open", ":modal"].some((e) => {
@@ -570,29 +570,29 @@ function rt(t) {
570
570
  }
571
571
  });
572
572
  }
573
- function yt(t) {
574
- const e = vt(), o = S(t) ? D(t) : t;
575
- return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
573
+ function wt(t) {
574
+ const e = xt(), o = S(t) ? T(t) : t;
575
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
576
576
  }
577
- function le(t) {
578
- let e = Y(t);
579
- for (; k(e) && !G(e); ) {
580
- if (yt(e))
577
+ function ce(t) {
578
+ let e = I(t);
579
+ for (; $(e) && !G(e); ) {
580
+ if (wt(e))
581
581
  return e;
582
582
  if (rt(e))
583
583
  return null;
584
- e = Y(e);
584
+ e = I(e);
585
585
  }
586
586
  return null;
587
587
  }
588
- function vt() {
588
+ function xt() {
589
589
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
590
590
  }
591
591
  function G(t) {
592
- return ["html", "body", "#document"].includes(z(t));
592
+ return ["html", "body", "#document"].includes(X(t));
593
593
  }
594
- function D(t) {
595
- return C(t).getComputedStyle(t);
594
+ function T(t) {
595
+ return R(t).getComputedStyle(t);
596
596
  }
597
597
  function lt(t) {
598
598
  return S(t) ? {
@@ -603,39 +603,35 @@ function lt(t) {
603
603
  scrollTop: t.scrollY
604
604
  };
605
605
  }
606
- function Y(t) {
607
- if (z(t) === "html")
606
+ function I(t) {
607
+ if (X(t) === "html")
608
608
  return t;
609
609
  const e = (
610
610
  // Step into the shadow DOM of the parent of a slotted node.
611
611
  t.assignedSlot || // DOM Element detected.
612
612
  t.parentNode || // ShadowRoot detected.
613
- _t(t) && t.host || // Fallback.
613
+ Ot(t) && t.host || // Fallback.
614
614
  N(t)
615
615
  );
616
- return _t(e) ? e.host : e;
616
+ return Ot(e) ? e.host : e;
617
617
  }
618
- function Pt(t) {
619
- const e = Y(t);
620
- return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : k(e) && et(e) ? e : Pt(e);
618
+ function Et(t) {
619
+ const e = I(t);
620
+ return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && et(e) ? e : Et(e);
621
621
  }
622
- function dt(t, e, o) {
622
+ function Lt(t, e, o) {
623
623
  var n;
624
- e === void 0 && (e = []), o === void 0 && (o = !0);
625
- const i = Pt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
626
- if (r) {
627
- const l = mt(s);
628
- return e.concat(s, s.visualViewport || [], et(i) ? i : [], l && o ? dt(l) : []);
629
- }
630
- return e.concat(i, dt(i, [], o));
624
+ e === void 0 && (e = []);
625
+ const i = Et(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = R(i);
626
+ return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Lt(i, []));
631
627
  }
632
- function mt(t) {
628
+ function dt(t) {
633
629
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
634
630
  }
635
- function Lt(t) {
636
- const e = D(t);
631
+ function Pt(t) {
632
+ const e = T(t);
637
633
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
638
- const i = k(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
634
+ const i = $(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
639
635
  return l && (o = r, n = s), {
640
636
  width: o,
641
637
  height: n,
@@ -647,43 +643,43 @@ function kt(t) {
647
643
  }
648
644
  function q(t) {
649
645
  const e = kt(t);
650
- if (!k(e))
651
- return H(1);
646
+ if (!$(e))
647
+ return k(1);
652
648
  const o = e.getBoundingClientRect(), {
653
649
  width: n,
654
650
  height: i,
655
651
  $: r
656
- } = Lt(e);
652
+ } = Pt(e);
657
653
  let s = (r ? nt(o.width) : o.width) / n, l = (r ? nt(o.height) : o.height) / i;
658
654
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
659
655
  x: s,
660
656
  y: l
661
657
  };
662
658
  }
663
- const ce = /* @__PURE__ */ H(0);
659
+ const ae = /* @__PURE__ */ k(0);
664
660
  function $t(t) {
665
- const e = C(t);
666
- return !vt() || !e.visualViewport ? ce : {
661
+ const e = R(t);
662
+ return !xt() || !e.visualViewport ? ae : {
667
663
  x: e.visualViewport.offsetLeft,
668
664
  y: e.visualViewport.offsetTop
669
665
  };
670
666
  }
671
- function ae(t, e, o) {
672
- return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
667
+ function fe(t, e, o) {
668
+ return e === void 0 && (e = !1), !o || e && o !== R(t) ? !1 : e;
673
669
  }
674
670
  function tt(t, e, o, n) {
675
671
  e === void 0 && (e = !1), o === void 0 && (o = !1);
676
672
  const i = t.getBoundingClientRect(), r = kt(t);
677
- let s = H(1);
673
+ let s = k(1);
678
674
  e && (n ? S(n) && (s = q(n)) : s = q(t));
679
- const l = ae(r, o, n) ? $t(r) : H(0);
675
+ const l = fe(r, o, n) ? $t(r) : k(0);
680
676
  let c = (i.left + l.x) / s.x, a = (i.top + l.y) / s.y, f = i.width / s.x, u = i.height / s.y;
681
677
  if (r) {
682
- const p = C(r), d = n && S(n) ? C(n) : n;
683
- let m = p, g = mt(m);
678
+ const p = R(r), d = n && S(n) ? R(n) : n;
679
+ let m = p, g = dt(m);
684
680
  for (; g && n && d !== m; ) {
685
- const h = q(g), w = g.getBoundingClientRect(), x = D(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
686
- c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = C(g), g = mt(m);
681
+ const h = q(g), w = g.getBoundingClientRect(), x = T(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
682
+ c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += v, m = R(g), g = dt(m);
687
683
  }
688
684
  }
689
685
  return it({
@@ -693,7 +689,22 @@ function tt(t, e, o, n) {
693
689
  y: a
694
690
  });
695
691
  }
696
- function fe(t) {
692
+ function yt(t, e) {
693
+ const o = lt(t).scrollLeft;
694
+ return e ? e.left + o : tt(N(t)).left + o;
695
+ }
696
+ function Wt(t, e, o) {
697
+ o === void 0 && (o = !1);
698
+ const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
699
+ // RTL <body> scrollbar.
700
+ yt(t, n)
701
+ )), r = n.top + e.scrollTop;
702
+ return {
703
+ x: i,
704
+ y: r
705
+ };
706
+ }
707
+ function ue(t) {
697
708
  let {
698
709
  elements: e,
699
710
  rect: o,
@@ -706,43 +717,40 @@ function fe(t) {
706
717
  let c = {
707
718
  scrollLeft: 0,
708
719
  scrollTop: 0
709
- }, a = H(1);
710
- const f = H(0), u = k(n);
711
- if ((u || !u && !r) && ((z(n) !== "body" || et(s)) && (c = lt(n)), k(n))) {
712
- const p = tt(n);
713
- a = q(n), f.x = p.x + n.clientLeft, f.y = p.y + n.clientTop;
720
+ }, a = k(1);
721
+ const f = k(0), u = $(n);
722
+ if ((u || !u && !r) && ((X(n) !== "body" || et(s)) && (c = lt(n)), $(n))) {
723
+ const d = tt(n);
724
+ a = q(n), f.x = d.x + n.clientLeft, f.y = d.y + n.clientTop;
714
725
  }
726
+ const p = s && !u && !r ? Wt(s, c, !0) : k(0);
715
727
  return {
716
728
  width: o.width * a.x,
717
729
  height: o.height * a.y,
718
- x: o.x * a.x - c.scrollLeft * a.x + f.x,
719
- y: o.y * a.y - c.scrollTop * a.y + f.y
730
+ x: o.x * a.x - c.scrollLeft * a.x + f.x + p.x,
731
+ y: o.y * a.y - c.scrollTop * a.y + f.y + p.y
720
732
  };
721
733
  }
722
- function ue(t) {
734
+ function de(t) {
723
735
  return Array.from(t.getClientRects());
724
736
  }
725
- function pt(t, e) {
726
- const o = lt(t).scrollLeft;
727
- return e ? e.left + o : tt(N(t)).left + o;
728
- }
729
- function de(t) {
730
- const e = N(t), o = lt(t), n = t.ownerDocument.body, i = R(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = R(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
731
- let s = -o.scrollLeft + pt(t);
737
+ function me(t) {
738
+ const e = N(t), o = lt(t), n = t.ownerDocument.body, i = O(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = O(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
739
+ let s = -o.scrollLeft + yt(t);
732
740
  const l = -o.scrollTop;
733
- return D(n).direction === "rtl" && (s += R(e.clientWidth, n.clientWidth) - i), {
741
+ return T(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
734
742
  width: i,
735
743
  height: r,
736
744
  x: s,
737
745
  y: l
738
746
  };
739
747
  }
740
- function me(t, e) {
741
- const o = C(t), n = N(t), i = o.visualViewport;
748
+ function pe(t, e) {
749
+ const o = R(t), n = N(t), i = o.visualViewport;
742
750
  let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
743
751
  if (i) {
744
752
  r = i.width, s = i.height;
745
- const a = vt();
753
+ const a = xt();
746
754
  (!a || a && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
747
755
  }
748
756
  return {
@@ -752,8 +760,8 @@ function me(t, e) {
752
760
  y: c
753
761
  };
754
762
  }
755
- function pe(t, e) {
756
- const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = k(t) ? q(t) : H(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
763
+ function ge(t, e) {
764
+ const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = $(t) ? q(t) : k(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
757
765
  return {
758
766
  width: s,
759
767
  height: l,
@@ -761,52 +769,53 @@ function pe(t, e) {
761
769
  y: a
762
770
  };
763
771
  }
764
- function St(t, e, o) {
772
+ function _t(t, e, o) {
765
773
  let n;
766
774
  if (e === "viewport")
767
- n = me(t, o);
775
+ n = pe(t, o);
768
776
  else if (e === "document")
769
- n = de(N(t));
777
+ n = me(N(t));
770
778
  else if (S(e))
771
- n = pe(e, o);
779
+ n = ge(e, o);
772
780
  else {
773
781
  const i = $t(t);
774
782
  n = {
775
- ...e,
776
783
  x: e.x - i.x,
777
- y: e.y - i.y
784
+ y: e.y - i.y,
785
+ width: e.width,
786
+ height: e.height
778
787
  };
779
788
  }
780
789
  return it(n);
781
790
  }
782
- function Wt(t, e) {
783
- const o = Y(t);
784
- return o === e || !S(o) || G(o) ? !1 : D(o).position === "fixed" || Wt(o, e);
791
+ function Mt(t, e) {
792
+ const o = I(t);
793
+ return o === e || !S(o) || G(o) ? !1 : T(o).position === "fixed" || Mt(o, e);
785
794
  }
786
- function ge(t, e) {
795
+ function he(t, e) {
787
796
  const o = e.get(t);
788
797
  if (o)
789
798
  return o;
790
- let n = dt(t, [], !1).filter((l) => S(l) && z(l) !== "body"), i = null;
791
- const r = D(t).position === "fixed";
792
- let s = r ? Y(t) : t;
799
+ let n = Lt(t, []).filter((l) => S(l) && X(l) !== "body"), i = null;
800
+ const r = T(t).position === "fixed";
801
+ let s = r ? I(t) : t;
793
802
  for (; S(s) && !G(s); ) {
794
- const l = D(s), c = yt(s);
795
- !c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(s) && !c && Wt(t, s)) ? n = n.filter((f) => f !== s) : i = l, s = Y(s);
803
+ const l = T(s), c = wt(s);
804
+ !c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(s) && !c && Mt(t, s)) ? n = n.filter((f) => f !== s) : i = l, s = I(s);
796
805
  }
797
806
  return e.set(t, n), n;
798
807
  }
799
- function he(t) {
808
+ function we(t) {
800
809
  let {
801
810
  element: e,
802
811
  boundary: o,
803
812
  rootBoundary: n,
804
813
  strategy: i
805
814
  } = t;
806
- const s = [...o === "clippingAncestors" ? rt(e) ? [] : ge(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
807
- const u = St(e, f, i);
808
- return a.top = R(u.top, a.top), a.right = X(u.right, a.right), a.bottom = X(u.bottom, a.bottom), a.left = R(u.left, a.left), a;
809
- }, St(e, l, i));
815
+ const s = [...o === "clippingAncestors" ? rt(e) ? [] : he(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
816
+ const u = _t(e, f, i);
817
+ return a.top = O(u.top, a.top), a.right = Y(u.right, a.right), a.bottom = Y(u.bottom, a.bottom), a.left = O(u.left, a.left), a;
818
+ }, _t(e, l, i));
810
819
  return {
811
820
  width: c.right - c.left,
812
821
  height: c.bottom - c.top,
@@ -814,47 +823,41 @@ function he(t) {
814
823
  y: c.top
815
824
  };
816
825
  }
817
- function we(t) {
826
+ function xe(t) {
818
827
  const {
819
828
  width: e,
820
829
  height: o
821
- } = Lt(t);
830
+ } = Pt(t);
822
831
  return {
823
832
  width: e,
824
833
  height: o
825
834
  };
826
835
  }
827
- function xe(t, e, o) {
828
- const n = k(e), i = N(e), r = o === "fixed", s = tt(t, !0, r, e);
836
+ function ye(t, e, o) {
837
+ const n = $(e), i = N(e), r = o === "fixed", s = tt(t, !0, r, e);
829
838
  let l = {
830
839
  scrollLeft: 0,
831
840
  scrollTop: 0
832
841
  };
833
- const c = H(0);
842
+ const c = k(0);
834
843
  if (n || !n && !r)
835
- if ((z(e) !== "body" || et(i)) && (l = lt(e)), n) {
836
- const d = tt(e, !0, r, e);
837
- c.x = d.x + e.clientLeft, c.y = d.y + e.clientTop;
838
- } else i && (c.x = pt(i));
839
- let a = 0, f = 0;
840
- if (i && !n && !r) {
841
- const d = i.getBoundingClientRect();
842
- f = d.top + l.scrollTop, a = d.left + l.scrollLeft - // RTL <body> scrollbar.
843
- pt(i, d);
844
- }
845
- const u = s.left + l.scrollLeft - c.x - a, p = s.top + l.scrollTop - c.y - f;
844
+ if ((X(e) !== "body" || et(i)) && (l = lt(e)), n) {
845
+ const p = tt(e, !0, r, e);
846
+ c.x = p.x + e.clientLeft, c.y = p.y + e.clientTop;
847
+ } else i && (c.x = yt(i));
848
+ const a = i && !n && !r ? Wt(i, l) : k(0), f = s.left + l.scrollLeft - c.x - a.x, u = s.top + l.scrollTop - c.y - a.y;
846
849
  return {
847
- x: u,
848
- y: p,
850
+ x: f,
851
+ y: u,
849
852
  width: s.width,
850
853
  height: s.height
851
854
  };
852
855
  }
853
856
  function ct(t) {
854
- return D(t).position === "static";
857
+ return T(t).position === "static";
855
858
  }
856
- function Dt(t, e) {
857
- if (!k(t) || D(t).position === "fixed")
859
+ function St(t, e) {
860
+ if (!$(t) || T(t).position === "fixed")
858
861
  return null;
859
862
  if (e)
860
863
  return e(t);
@@ -862,27 +865,27 @@ function Dt(t, e) {
862
865
  return N(t) === o && (o = o.ownerDocument.body), o;
863
866
  }
864
867
  function Nt(t, e) {
865
- const o = C(t);
868
+ const o = R(t);
866
869
  if (rt(t))
867
870
  return o;
868
- if (!k(t)) {
869
- let i = Y(t);
871
+ if (!$(t)) {
872
+ let i = I(t);
870
873
  for (; i && !G(i); ) {
871
874
  if (S(i) && !ct(i))
872
875
  return i;
873
- i = Y(i);
876
+ i = I(i);
874
877
  }
875
878
  return o;
876
879
  }
877
- let n = Dt(t, e);
878
- for (; n && re(n) && ct(n); )
879
- n = Dt(n, e);
880
- return n && G(n) && ct(n) && !yt(n) ? o : n || le(t) || o;
880
+ let n = St(t, e);
881
+ for (; n && le(n) && ct(n); )
882
+ n = St(n, e);
883
+ return n && G(n) && ct(n) && !wt(n) ? o : n || ce(t) || o;
881
884
  }
882
- const ye = async function(t) {
885
+ const be = async function(t) {
883
886
  const e = this.getOffsetParent || Nt, o = this.getDimensions, n = await o(t.floating);
884
887
  return {
885
- reference: xe(t.reference, await e(t.floating), t.strategy),
888
+ reference: ye(t.reference, await e(t.floating), t.strategy),
886
889
  floating: {
887
890
  x: 0,
888
891
  y: 0,
@@ -892,28 +895,28 @@ const ye = async function(t) {
892
895
  };
893
896
  };
894
897
  function ve(t) {
895
- return D(t).direction === "rtl";
898
+ return T(t).direction === "rtl";
896
899
  }
897
- const be = {
898
- convertOffsetParentRelativeRectToViewportRelativeRect: fe,
900
+ const Ae = {
901
+ convertOffsetParentRelativeRectToViewportRelativeRect: ue,
899
902
  getDocumentElement: N,
900
- getClippingRect: he,
903
+ getClippingRect: we,
901
904
  getOffsetParent: Nt,
902
- getElementRects: ye,
903
- getClientRects: ue,
904
- getDimensions: we,
905
+ getElementRects: be,
906
+ getClientRects: de,
907
+ getDimensions: xe,
905
908
  getScale: q,
906
909
  isElement: S,
907
910
  isRTL: ve
908
- }, Ae = oe, Ce = ie, Re = ee, Oe = se, _e = te, Se = (t, e, o) => {
911
+ }, Ce = ie, Re = se, Oe = ne, _e = re, Se = ee, Te = (t, e, o) => {
909
912
  const n = /* @__PURE__ */ new Map(), i = {
910
- platform: be,
913
+ platform: Ae,
911
914
  ...o
912
915
  }, r = {
913
916
  ...i.platform,
914
917
  _c: n
915
918
  };
916
- return Zt(t, e, {
919
+ return te(t, e, {
917
920
  ...i,
918
921
  platform: r
919
922
  });
@@ -921,14 +924,14 @@ const be = {
921
924
  function De(t) {
922
925
  return t != null && typeof t == "object" && "$el" in t;
923
926
  }
924
- function Te(t) {
927
+ function Ee(t) {
925
928
  if (De(t)) {
926
929
  const e = t.$el;
927
- return xt(e) && z(e) === "#comment" ? null : e;
930
+ return ht(e) && X(e) === "#comment" ? null : e;
928
931
  }
929
932
  return t;
930
933
  }
931
- function Ee(t) {
934
+ function Le(t) {
932
935
  return typeof t == "function" ? t() : at(t);
933
936
  }
934
937
  function Pe(t) {
@@ -936,18 +939,18 @@ function Pe(t) {
936
939
  name: "arrow",
937
940
  options: t,
938
941
  fn(e) {
939
- const o = Te(Ee(t.element));
940
- return o == null ? {} : _e({
942
+ const o = Ee(Le(t.element));
943
+ return o == null ? {} : Se({
941
944
  element: o,
942
945
  padding: t.padding
943
946
  }).fn(e);
944
947
  }
945
948
  };
946
949
  }
947
- const Le = { class: "rds-e-tooltip" }, ke = {
950
+ const ke = { class: "rds-e-tooltip" }, $e = {
948
951
  key: 0,
949
952
  class: "rds-e-tooltip__header"
950
- }, $e = { class: "rds-e-tooltip__title" }, We = { class: "rds-e-tooltip__content" }, Ne = /* @__PURE__ */ Vt({
953
+ }, We = { class: "rds-e-tooltip__title" }, Me = { class: "rds-e-tooltip__content" }, Ne = /* @__PURE__ */ Vt({
951
954
  __name: "tooltip",
952
955
  props: {
953
956
  /**
@@ -994,22 +997,22 @@ const Le = { class: "rds-e-tooltip" }, ke = {
994
997
  }
995
998
  },
996
999
  setup(t) {
997
- const e = t, { large: o, fullWidth: n, title: i } = Mt(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
998
- const { x: m, y: g, middlewareData: h, placement: w } = await Se(
1000
+ const e = t, { large: o, fullWidth: n, title: i } = Ft(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
1001
+ const { x: m, y: g, middlewareData: h, placement: w } = await Te(
999
1002
  r.value,
1000
1003
  s.value,
1001
1004
  {
1002
1005
  placement: e.placement,
1003
1006
  middleware: [
1004
- Ae(e.offsetSpace),
1007
+ Ce(e.offsetSpace),
1008
+ Oe(),
1005
1009
  Re(),
1006
- Ce(),
1007
- Oe({
1008
- apply({ availableHeight: v, elements: T }) {
1009
- Object.assign(T.floating.style, {
1010
- // maxWidth: '380px',
1011
- maxWidth: "380px",
1012
- maxHeight: `${Math.max(0, v)}px`
1010
+ _e({
1011
+ apply({ availableHeight: b, availableWidth: D, elements: C }) {
1012
+ Object.assign(C.floating.style, {
1013
+ maxWidth: n.value ? `${Math.max(0, D)}px` : "380px",
1014
+ width: "max-content",
1015
+ maxHeight: `${Math.max(0, b)}px`
1013
1016
  });
1014
1017
  }
1015
1018
  }),
@@ -1024,7 +1027,7 @@ const Le = { class: "rds-e-tooltip" }, ke = {
1024
1027
  left: `${m}px`,
1025
1028
  top: `${g}px`
1026
1029
  });
1027
- const { x, y } = h.arrow, b = {
1030
+ const { x, y } = h.arrow, v = {
1028
1031
  left: "right",
1029
1032
  right: "left",
1030
1033
  bottom: "top",
@@ -1035,14 +1038,14 @@ const Le = { class: "rds-e-tooltip" }, ke = {
1035
1038
  top: y != null ? `${y}px` : "",
1036
1039
  bottom: "",
1037
1040
  right: "",
1038
- [b[w.split("-")[0]]]: "-4px"
1041
+ [v[w.split("-")[0]]]: "-4px"
1039
1042
  });
1040
1043
  }, u = () => {
1041
1044
  i != null && i.value || (c.value = !0);
1042
1045
  }, p = () => {
1043
1046
  c.value = !1, f();
1044
- }, d = Ft(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}${n.value ? "rds-e-tooltip__tooltip--full-width " : ""}`);
1045
- return (m, g) => (bt(), At("div", Le, [
1047
+ }, d = Ht(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
1048
+ return (m, g) => (bt(), vt("div", ke, [
1046
1049
  Z("div", {
1047
1050
  ref_key: "referenceRef",
1048
1051
  ref: r,
@@ -1052,32 +1055,32 @@ const Le = { class: "rds-e-tooltip" }, ke = {
1052
1055
  onMouseenter: p,
1053
1056
  onMouseleave: u
1054
1057
  }, [
1055
- Ht(m.$slots, "default", {}, void 0, !0)
1058
+ jt(m.$slots, "default", {}, void 0, !0)
1056
1059
  ], 544),
1057
1060
  Z("div", {
1058
1061
  ref_key: "floatingRef",
1059
1062
  ref: s,
1060
- class: Ct(d.value)
1063
+ class: At(d.value)
1061
1064
  }, [
1062
- at(i) ? (bt(), At("div", ke, [
1063
- Z("h3", $e, Rt(at(i)), 1),
1064
- jt(Xt, {
1065
+ at(i) ? (bt(), vt("div", $e, [
1066
+ Z("h3", We, Ct(at(i)), 1),
1067
+ It(zt, {
1065
1068
  name: "close",
1066
1069
  "aria-hidden": "true",
1067
1070
  class: "rds-e-tooltip__icon",
1068
1071
  onClick: g[0] || (g[0] = (h) => c.value = !c.value)
1069
1072
  })
1070
1073
  ])) : Yt("", !0),
1071
- Z("div", We, Rt(t.content), 1),
1074
+ Z("div", Me, Ct(t.content), 1),
1072
1075
  Z("div", {
1073
1076
  ref_key: "arrowRef",
1074
1077
  ref: l,
1075
- class: Ct(["rds-e-tooltip__tooltip-arrow", a.value])
1078
+ class: At(["rds-e-tooltip__tooltip-arrow", a.value])
1076
1079
  }, null, 2)
1077
1080
  ], 2)
1078
1081
  ]));
1079
1082
  }
1080
- }), Fe = /* @__PURE__ */ It(Ne, [["__scopeId", "data-v-84af6768"]]);
1083
+ }), He = /* @__PURE__ */ Xt(Ne, [["__scopeId", "data-v-064513ce"]]);
1081
1084
  export {
1082
- Fe as default
1085
+ He as default
1083
1086
  };