hanap-labs 4.1.0 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,54 +37,54 @@ function E(e) {
37
37
  function D(e) {
38
38
  return e.split("-")[1];
39
39
  }
40
- function ee(e) {
40
+ function O(e) {
41
41
  return e === "x" ? "y" : "x";
42
42
  }
43
- function O(e) {
43
+ function k(e) {
44
44
  return e === "y" ? "height" : "width";
45
45
  }
46
- function k(e) {
46
+ function A(e) {
47
47
  let t = e[0];
48
48
  return t === "t" || t === "b" ? "y" : "x";
49
49
  }
50
- function A(e) {
51
- return ee(k(e));
50
+ function ee(e) {
51
+ return O(A(e));
52
52
  }
53
53
  function te(e, t, n) {
54
54
  n === void 0 && (n = !1);
55
- let r = D(e), i = A(e), a = O(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
56
- return t.reference[a] > t.floating[a] && (o = M(o)), [o, M(o)];
55
+ let r = D(e), i = ee(e), a = k(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
56
+ return t.reference[a] > t.floating[a] && (o = j(o)), [o, j(o)];
57
57
  }
58
58
  function ne(e) {
59
- let t = M(e);
59
+ let t = j(e);
60
60
  return [
61
- j(e),
61
+ re(e),
62
62
  t,
63
- j(t)
63
+ re(t)
64
64
  ];
65
65
  }
66
- function j(e) {
66
+ function re(e) {
67
67
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
68
68
  }
69
- var re = ["left", "right"], ie = ["right", "left"], ae = ["top", "bottom"], oe = ["bottom", "top"];
70
- function se(e, t, n) {
69
+ var ie = ["left", "right"], ae = ["right", "left"], oe = ["top", "bottom"], se = ["bottom", "top"];
70
+ function ce(e, t, n) {
71
71
  switch (e) {
72
72
  case "top":
73
- case "bottom": return n ? t ? ie : re : t ? re : ie;
73
+ case "bottom": return n ? t ? ae : ie : t ? ie : ae;
74
74
  case "left":
75
- case "right": return t ? ae : oe;
75
+ case "right": return t ? oe : se;
76
76
  default: return [];
77
77
  }
78
78
  }
79
- function ce(e, t, n, r) {
80
- let i = D(e), a = se(E(e), n === "start", r);
81
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(j)))), a;
79
+ function le(e, t, n, r) {
80
+ let i = D(e), a = ce(E(e), n === "start", r);
81
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(re)))), a;
82
82
  }
83
- function M(e) {
83
+ function j(e) {
84
84
  let t = E(e);
85
85
  return C[t] + e.slice(t.length);
86
86
  }
87
- function le(e) {
87
+ function ue(e) {
88
88
  return {
89
89
  top: 0,
90
90
  right: 0,
@@ -93,15 +93,15 @@ function le(e) {
93
93
  ...e
94
94
  };
95
95
  }
96
- function ue(e) {
96
+ function de(e) {
97
97
  return typeof e == "number" ? {
98
98
  top: e,
99
99
  right: e,
100
100
  bottom: e,
101
101
  left: e
102
- } : le(e);
102
+ } : ue(e);
103
103
  }
104
- function N(e) {
104
+ function M(e) {
105
105
  let { x: t, y: n, width: r, height: i } = e;
106
106
  return {
107
107
  width: r,
@@ -116,8 +116,8 @@ function N(e) {
116
116
  }
117
117
  //#endregion
118
118
  //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
119
- function de(e, t, n) {
120
- let { reference: r, floating: i } = e, a = k(t), o = A(t), s = O(o), c = E(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
119
+ function fe(e, t, n) {
120
+ let { reference: r, floating: i } = e, a = A(t), o = ee(t), s = k(o), c = E(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
121
121
  switch (c) {
122
122
  case "top":
123
123
  p = {
@@ -158,9 +158,9 @@ function de(e, t, n) {
158
158
  }
159
159
  return p;
160
160
  }
161
- async function fe(e, t) {
161
+ async function pe(e, t) {
162
162
  t === void 0 && (t = {});
163
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = T(t, e), p = ue(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = N(await i.getClippingRect({
163
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = T(t, e), p = de(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = M(await i.getClippingRect({
164
164
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
165
165
  boundary: c,
166
166
  rootBoundary: l,
@@ -173,7 +173,7 @@ async function fe(e, t) {
173
173
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
174
174
  x: 1,
175
175
  y: 1
176
- }, y = N(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
176
+ }, y = M(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
177
177
  elements: o,
178
178
  rect: g,
179
179
  offsetParent: _,
@@ -186,15 +186,15 @@ async function fe(e, t) {
186
186
  right: (y.right - h.right + p.right) / v.x
187
187
  };
188
188
  }
189
- var pe = 50, me = async (e, t, n) => {
189
+ var me = 50, he = async (e, t, n) => {
190
190
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
191
191
  ...o,
192
- detectOverflow: fe
192
+ detectOverflow: pe
193
193
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
194
194
  reference: e,
195
195
  floating: t,
196
196
  strategy: i
197
- }), { x: u, y: d } = de(l, r, c), f = r, p = 0, m = {};
197
+ }), { x: u, y: d } = fe(l, r, c), f = r, p = 0, m = {};
198
198
  for (let n = 0; n < a.length; n++) {
199
199
  let h = a[n];
200
200
  if (!h) continue;
@@ -215,11 +215,11 @@ var pe = 50, me = async (e, t, n) => {
215
215
  u = v ?? u, d = y ?? d, m[g] = {
216
216
  ...m[g],
217
217
  ...b
218
- }, x && p < pe && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
218
+ }, x && p < me && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
219
219
  reference: e,
220
220
  floating: t,
221
221
  strategy: i
222
- }) : x.rects), {x: u, y: d} = de(l, f, c)), n = -1);
222
+ }) : x.rects), {x: u, y: d} = fe(l, f, c)), n = -1);
223
223
  }
224
224
  return {
225
225
  x: u,
@@ -228,7 +228,7 @@ var pe = 50, me = async (e, t, n) => {
228
228
  strategy: i,
229
229
  middlewareData: m
230
230
  };
231
- }, he = function(e) {
231
+ }, ge = function(e) {
232
232
  return e === void 0 && (e = {}), {
233
233
  name: "flip",
234
234
  options: e,
@@ -236,8 +236,8 @@ var pe = 50, me = async (e, t, n) => {
236
236
  var n;
237
237
  let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = T(e, t);
238
238
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
239
- let g = E(r), _ = k(o), v = E(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [M(o)] : ne(o)), x = p !== "none";
240
- !d && x && b.push(...ce(o, m, p, y));
239
+ let g = E(r), _ = A(o), v = E(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [j(o)] : ne(o)), x = p !== "none";
240
+ !d && x && b.push(...le(o, m, p, y));
241
241
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], D = i.flip?.overflows || [];
242
242
  if (l && w.push(C[g]), u) {
243
243
  let e = te(r, a, y);
@@ -248,7 +248,7 @@ var pe = 50, me = async (e, t, n) => {
248
248
  overflows: w
249
249
  }], !w.every((e) => e <= 0)) {
250
250
  let e = (i.flip?.index || 0) + 1, t = S[e];
251
- if (t && (!(u === "alignment" && _ !== k(t)) || D.every((e) => k(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
251
+ if (t && (!(u === "alignment" && _ !== A(t)) || D.every((e) => A(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
252
252
  data: {
253
253
  index: e,
254
254
  overflows: D
@@ -260,7 +260,7 @@ var pe = 50, me = async (e, t, n) => {
260
260
  case "bestFit": {
261
261
  let e = D.filter((e) => {
262
262
  if (x) {
263
- let t = k(e.placement);
263
+ let t = A(e.placement);
264
264
  return t === _ || t === "y";
265
265
  }
266
266
  return !0;
@@ -277,9 +277,9 @@ var pe = 50, me = async (e, t, n) => {
277
277
  return {};
278
278
  }
279
279
  };
280
- }, ge = /* @__PURE__ */ new Set(["left", "top"]);
281
- async function _e(e, t) {
282
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = E(n), s = D(n), c = k(n) === "y", l = ge.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = T(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
280
+ }, _e = /* @__PURE__ */ new Set(["left", "top"]);
281
+ async function ve(e, t) {
282
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = E(n), s = D(n), c = A(n) === "y", l = _e.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = T(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
283
283
  mainAxis: d,
284
284
  crossAxis: 0,
285
285
  alignmentAxis: null
@@ -296,13 +296,13 @@ async function _e(e, t) {
296
296
  y: p * u
297
297
  };
298
298
  }
299
- var ve = function(e) {
299
+ var ye = function(e) {
300
300
  return e === void 0 && (e = 0), {
301
301
  name: "offset",
302
302
  options: e,
303
303
  async fn(t) {
304
304
  var n;
305
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await _e(t, e);
305
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ve(t, e);
306
306
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
307
307
  x: r + s.x,
308
308
  y: i + s.y,
@@ -313,7 +313,7 @@ var ve = function(e) {
313
313
  };
314
314
  }
315
315
  };
316
- }, ye = function(e) {
316
+ }, be = function(e) {
317
317
  return e === void 0 && (e = {}), {
318
318
  name: "shift",
319
319
  options: e,
@@ -327,7 +327,7 @@ var ve = function(e) {
327
327
  } }, ...l } = T(e, t), u = {
328
328
  x: n,
329
329
  y: r
330
- }, d = await a.detectOverflow(t, l), f = k(E(i)), p = ee(f), m = u[p], h = u[f];
330
+ }, d = await a.detectOverflow(t, l), f = A(E(i)), p = O(f), m = u[p], h = u[f];
331
331
  if (o) {
332
332
  let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
333
333
  m = w(n, m, r);
@@ -357,39 +357,39 @@ var ve = function(e) {
357
357
  };
358
358
  //#endregion
359
359
  //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
360
- function P() {
360
+ function N() {
361
361
  return typeof window < "u";
362
362
  }
363
- function F(e) {
364
- return be(e) ? (e.nodeName || "").toLowerCase() : "#document";
363
+ function P(e) {
364
+ return xe(e) ? (e.nodeName || "").toLowerCase() : "#document";
365
365
  }
366
- function I(e) {
366
+ function F(e) {
367
367
  var t;
368
368
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
369
369
  }
370
- function L(e) {
371
- return ((be(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
370
+ function I(e) {
371
+ return ((xe(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
372
372
  }
373
- function be(e) {
374
- return P() ? e instanceof Node || e instanceof I(e).Node : !1;
373
+ function xe(e) {
374
+ return N() ? e instanceof Node || e instanceof F(e).Node : !1;
375
375
  }
376
- function R(e) {
377
- return P() ? e instanceof Element || e instanceof I(e).Element : !1;
376
+ function L(e) {
377
+ return N() ? e instanceof Element || e instanceof F(e).Element : !1;
378
378
  }
379
- function z(e) {
380
- return P() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
379
+ function R(e) {
380
+ return N() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
381
381
  }
382
- function xe(e) {
383
- return !P() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
382
+ function Se(e) {
383
+ return !N() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
384
384
  }
385
- function B(e) {
386
- let { overflow: t, overflowX: n, overflowY: r, display: i } = W(e);
385
+ function z(e) {
386
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = U(e);
387
387
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
388
388
  }
389
- function Se(e) {
390
- return /^(table|td|th)$/.test(F(e));
389
+ function Ce(e) {
390
+ return /^(table|td|th)$/.test(P(e));
391
391
  }
392
- function V(e) {
392
+ function B(e) {
393
393
  try {
394
394
  if (e.matches(":popover-open")) return !0;
395
395
  } catch {}
@@ -399,31 +399,31 @@ function V(e) {
399
399
  return !1;
400
400
  }
401
401
  }
402
- var Ce = /transform|translate|scale|rotate|perspective|filter/, we = /paint|layout|strict|content/, H = (e) => !!e && e !== "none", Te;
403
- function Ee(e) {
404
- let t = R(e) ? W(e) : e;
405
- return H(t.transform) || H(t.translate) || H(t.scale) || H(t.rotate) || H(t.perspective) || !Oe() && (H(t.backdropFilter) || H(t.filter)) || Ce.test(t.willChange || "") || we.test(t.contain || "");
406
- }
402
+ var we = /transform|translate|scale|rotate|perspective|filter/, Te = /paint|layout|strict|content/, V = (e) => !!e && e !== "none", Ee;
407
403
  function De(e) {
408
- let t = K(e);
409
- for (; z(t) && !U(t);) {
410
- if (Ee(t)) return t;
411
- if (V(t)) return null;
412
- t = K(t);
404
+ let t = L(e) ? U(e) : e;
405
+ return V(t.transform) || V(t.translate) || V(t.scale) || V(t.rotate) || V(t.perspective) || !ke() && (V(t.backdropFilter) || V(t.filter)) || we.test(t.willChange || "") || Te.test(t.contain || "");
406
+ }
407
+ function Oe(e) {
408
+ let t = G(e);
409
+ for (; R(t) && !H(t);) {
410
+ if (De(t)) return t;
411
+ if (B(t)) return null;
412
+ t = G(t);
413
413
  }
414
414
  return null;
415
415
  }
416
- function Oe() {
417
- return Te ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Te;
416
+ function ke() {
417
+ return Ee ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ee;
418
+ }
419
+ function H(e) {
420
+ return /^(html|body|#document)$/.test(P(e));
418
421
  }
419
422
  function U(e) {
420
- return /^(html|body|#document)$/.test(F(e));
423
+ return F(e).getComputedStyle(e);
421
424
  }
422
425
  function W(e) {
423
- return I(e).getComputedStyle(e);
424
- }
425
- function G(e) {
426
- return R(e) ? {
426
+ return L(e) ? {
427
427
  scrollLeft: e.scrollLeft,
428
428
  scrollTop: e.scrollTop
429
429
  } : {
@@ -431,101 +431,101 @@ function G(e) {
431
431
  scrollTop: e.scrollY
432
432
  };
433
433
  }
434
- function K(e) {
435
- if (F(e) === "html") return e;
436
- let t = e.assignedSlot || e.parentNode || xe(e) && e.host || L(e);
437
- return xe(t) ? t.host : t;
434
+ function G(e) {
435
+ if (P(e) === "html") return e;
436
+ let t = e.assignedSlot || e.parentNode || Se(e) && e.host || I(e);
437
+ return Se(t) ? t.host : t;
438
438
  }
439
- function ke(e) {
440
- let t = K(e);
441
- return U(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && B(t) ? t : ke(t);
439
+ function Ae(e) {
440
+ let t = G(e);
441
+ return H(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : R(t) && z(t) ? t : Ae(t);
442
442
  }
443
- function q(e, t, n) {
443
+ function K(e, t, n) {
444
444
  t === void 0 && (t = []), n === void 0 && (n = !0);
445
- let r = ke(e), i = r === e.ownerDocument?.body, a = I(r);
445
+ let r = Ae(e), i = r === e.ownerDocument?.body, a = F(r);
446
446
  if (i) {
447
- let e = Ae(a);
448
- return t.concat(a, a.visualViewport || [], B(r) ? r : [], e && n ? q(e) : []);
449
- } else return t.concat(r, q(r, [], n));
447
+ let e = je(a);
448
+ return t.concat(a, a.visualViewport || [], z(r) ? r : [], e && n ? K(e) : []);
449
+ } else return t.concat(r, K(r, [], n));
450
450
  }
451
- function Ae(e) {
451
+ function je(e) {
452
452
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
453
453
  }
454
454
  //#endregion
455
455
  //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
456
- function je(e) {
457
- let t = W(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = z(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = b(n) !== a || b(r) !== o;
456
+ function Me(e) {
457
+ let t = U(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = R(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = b(n) !== a || b(r) !== o;
458
458
  return s && (n = a, r = o), {
459
459
  width: n,
460
460
  height: r,
461
461
  $: s
462
462
  };
463
463
  }
464
- function Me(e) {
465
- return R(e) ? e : e.contextElement;
464
+ function Ne(e) {
465
+ return L(e) ? e : e.contextElement;
466
466
  }
467
- function J(e) {
468
- let t = Me(e);
469
- if (!z(t)) return S(1);
470
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = je(t), o = (a ? b(n.width) : n.width) / r, s = (a ? b(n.height) : n.height) / i;
467
+ function q(e) {
468
+ let t = Ne(e);
469
+ if (!R(t)) return S(1);
470
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Me(t), o = (a ? b(n.width) : n.width) / r, s = (a ? b(n.height) : n.height) / i;
471
471
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
472
472
  x: o,
473
473
  y: s
474
474
  };
475
475
  }
476
- var Ne = /* @__PURE__ */ S(0);
477
- function Pe(e) {
478
- let t = I(e);
479
- return !Oe() || !t.visualViewport ? Ne : {
476
+ var Pe = /* @__PURE__ */ S(0);
477
+ function Fe(e) {
478
+ let t = F(e);
479
+ return !ke() || !t.visualViewport ? Pe : {
480
480
  x: t.visualViewport.offsetLeft,
481
481
  y: t.visualViewport.offsetTop
482
482
  };
483
483
  }
484
- function Fe(e, t, n) {
485
- return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
484
+ function Ie(e, t, n) {
485
+ return t === void 0 && (t = !1), !n || t && n !== F(e) ? !1 : t;
486
486
  }
487
- function Y(e, t, n, r) {
487
+ function J(e, t, n, r) {
488
488
  t === void 0 && (t = !1), n === void 0 && (n = !1);
489
- let i = e.getBoundingClientRect(), a = Me(e), o = S(1);
490
- t && (r ? R(r) && (o = J(r)) : o = J(e));
491
- let s = Fe(a, n, r) ? Pe(a) : S(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
489
+ let i = e.getBoundingClientRect(), a = Ne(e), o = S(1);
490
+ t && (r ? L(r) && (o = q(r)) : o = q(e));
491
+ let s = Ie(a, n, r) ? Fe(a) : S(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
492
492
  if (a) {
493
- let e = I(a), t = r && R(r) ? I(r) : r, n = e, i = Ae(n);
493
+ let e = F(a), t = r && L(r) ? F(r) : r, n = e, i = je(n);
494
494
  for (; i && r && t !== n;) {
495
- let e = J(i), t = i.getBoundingClientRect(), r = W(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
496
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = I(i), i = Ae(n);
495
+ let e = q(i), t = i.getBoundingClientRect(), r = U(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
496
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = F(i), i = je(n);
497
497
  }
498
498
  }
499
- return N({
499
+ return M({
500
500
  width: u,
501
501
  height: d,
502
502
  x: c,
503
503
  y: l
504
504
  });
505
505
  }
506
- function X(e, t) {
507
- let n = G(e).scrollLeft;
508
- return t ? t.left + n : Y(L(e)).left + n;
506
+ function Y(e, t) {
507
+ let n = W(e).scrollLeft;
508
+ return t ? t.left + n : J(I(e)).left + n;
509
509
  }
510
- function Ie(e, t) {
510
+ function Le(e, t) {
511
511
  let n = e.getBoundingClientRect();
512
512
  return {
513
- x: n.left + t.scrollLeft - X(e, n),
513
+ x: n.left + t.scrollLeft - Y(e, n),
514
514
  y: n.top + t.scrollTop
515
515
  };
516
516
  }
517
- function Le(e) {
518
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = L(r), s = t ? V(t.floating) : !1;
517
+ function Re(e) {
518
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = I(r), s = t ? B(t.floating) : !1;
519
519
  if (r === o || s && a) return n;
520
520
  let c = {
521
521
  scrollLeft: 0,
522
522
  scrollTop: 0
523
- }, l = S(1), u = S(0), d = z(r);
524
- if ((d || !d && !a) && ((F(r) !== "body" || B(o)) && (c = G(r)), d)) {
525
- let e = Y(r);
526
- l = J(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
523
+ }, l = S(1), u = S(0), d = R(r);
524
+ if ((d || !d && !a) && ((P(r) !== "body" || z(o)) && (c = W(r)), d)) {
525
+ let e = J(r);
526
+ l = q(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
527
527
  }
528
- let f = o && !d && !a ? Ie(o, c) : S(0);
528
+ let f = o && !d && !a ? Le(o, c) : S(0);
529
529
  return {
530
530
  width: n.width * l.x,
531
531
  height: n.height * l.y,
@@ -533,31 +533,31 @@ function Le(e) {
533
533
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
534
534
  };
535
535
  }
536
- function Re(e) {
536
+ function ze(e) {
537
537
  return Array.from(e.getClientRects());
538
538
  }
539
- function ze(e) {
540
- let t = L(e), n = G(e), r = e.ownerDocument.body, i = y(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = y(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + X(e), s = -n.scrollTop;
541
- return W(r).direction === "rtl" && (o += y(t.clientWidth, r.clientWidth) - i), {
539
+ function Be(e) {
540
+ let t = I(e), n = W(e), r = e.ownerDocument.body, i = y(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = y(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Y(e), s = -n.scrollTop;
541
+ return U(r).direction === "rtl" && (o += y(t.clientWidth, r.clientWidth) - i), {
542
542
  width: i,
543
543
  height: a,
544
544
  x: o,
545
545
  y: s
546
546
  };
547
547
  }
548
- var Be = 25;
549
- function Ve(e, t) {
550
- let n = I(e), r = L(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
548
+ var Ve = 25;
549
+ function He(e, t) {
550
+ let n = F(e), r = I(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
551
551
  if (i) {
552
552
  a = i.width, o = i.height;
553
- let e = Oe();
553
+ let e = ke();
554
554
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
555
555
  }
556
- let l = X(r);
556
+ let l = Y(r);
557
557
  if (l <= 0) {
558
558
  let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
559
- o <= Be && (a -= o);
560
- } else l <= Be && (a += l);
559
+ o <= Ve && (a -= o);
560
+ } else l <= Ve && (a += l);
561
561
  return {
562
562
  width: a,
563
563
  height: o,
@@ -565,8 +565,8 @@ function Ve(e, t) {
565
565
  y: c
566
566
  };
567
567
  }
568
- function He(e, t) {
569
- let n = Y(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = z(e) ? J(e) : S(1);
568
+ function Ue(e, t) {
569
+ let n = J(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = R(e) ? q(e) : S(1);
570
570
  return {
571
571
  width: e.clientWidth * a.x,
572
572
  height: e.clientHeight * a.y,
@@ -574,13 +574,13 @@ function He(e, t) {
574
574
  y: r * a.y
575
575
  };
576
576
  }
577
- function Ue(e, t, n) {
577
+ function We(e, t, n) {
578
578
  let r;
579
- if (t === "viewport") r = Ve(e, n);
580
- else if (t === "document") r = ze(L(e));
581
- else if (R(t)) r = He(t, n);
579
+ if (t === "viewport") r = He(e, n);
580
+ else if (t === "document") r = Be(I(e));
581
+ else if (L(t)) r = Ue(t, n);
582
582
  else {
583
- let n = Pe(e);
583
+ let n = Fe(e);
584
584
  r = {
585
585
  x: t.x - n.x,
586
586
  y: t.y - n.y,
@@ -588,26 +588,26 @@ function Ue(e, t, n) {
588
588
  height: t.height
589
589
  };
590
590
  }
591
- return N(r);
592
- }
593
- function We(e, t) {
594
- let n = K(e);
595
- return n === t || !R(n) || U(n) ? !1 : W(n).position === "fixed" || We(n, t);
591
+ return M(r);
596
592
  }
597
593
  function Ge(e, t) {
594
+ let n = G(e);
595
+ return n === t || !L(n) || H(n) ? !1 : U(n).position === "fixed" || Ge(n, t);
596
+ }
597
+ function Ke(e, t) {
598
598
  let n = t.get(e);
599
599
  if (n) return n;
600
- let r = q(e, [], !1).filter((e) => R(e) && F(e) !== "body"), i = null, a = W(e).position === "fixed", o = a ? K(e) : e;
601
- for (; R(o) && !U(o);) {
602
- let t = W(o), n = Ee(o);
603
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || B(o) && !n && We(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = K(o);
600
+ let r = K(e, [], !1).filter((e) => L(e) && P(e) !== "body"), i = null, a = U(e).position === "fixed", o = a ? G(e) : e;
601
+ for (; L(o) && !H(o);) {
602
+ let t = U(o), n = De(o);
603
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || z(o) && !n && Ge(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = G(o);
604
604
  }
605
605
  return t.set(e, r), r;
606
606
  }
607
- function Ke(e) {
608
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? V(t) ? [] : Ge(t, this._c) : [].concat(n), r], o = Ue(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
607
+ function qe(e) {
608
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? B(t) ? [] : Ke(t, this._c) : [].concat(n), r], o = We(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
609
609
  for (let e = 1; e < a.length; e++) {
610
- let n = Ue(t, a[e], i);
610
+ let n = We(t, a[e], i);
611
611
  s = y(n.top, s), c = v(n.right, c), l = v(n.bottom, l), u = y(n.left, u);
612
612
  }
613
613
  return {
@@ -617,27 +617,27 @@ function Ke(e) {
617
617
  y: s
618
618
  };
619
619
  }
620
- function qe(e) {
621
- let { width: t, height: n } = je(e);
620
+ function Je(e) {
621
+ let { width: t, height: n } = Me(e);
622
622
  return {
623
623
  width: t,
624
624
  height: n
625
625
  };
626
626
  }
627
- function Je(e, t, n) {
628
- let r = z(t), i = L(t), a = n === "fixed", o = Y(e, !0, a, t), s = {
627
+ function Ye(e, t, n) {
628
+ let r = R(t), i = I(t), a = n === "fixed", o = J(e, !0, a, t), s = {
629
629
  scrollLeft: 0,
630
630
  scrollTop: 0
631
631
  }, c = S(0);
632
632
  function l() {
633
- c.x = X(i);
633
+ c.x = Y(i);
634
634
  }
635
- if (r || !r && !a) if ((F(t) !== "body" || B(i)) && (s = G(t)), r) {
636
- let e = Y(t, !0, a, t);
635
+ if (r || !r && !a) if ((P(t) !== "body" || z(i)) && (s = W(t)), r) {
636
+ let e = J(t, !0, a, t);
637
637
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
638
638
  } else i && l();
639
639
  a && !r && i && l();
640
- let u = i && !r && !a ? Ie(i, s) : S(0);
640
+ let u = i && !r && !a ? Le(i, s) : S(0);
641
641
  return {
642
642
  x: o.left + s.scrollLeft - c.x - u.x,
643
643
  y: o.top + s.scrollTop - c.y - u.y,
@@ -645,34 +645,34 @@ function Je(e, t, n) {
645
645
  height: o.height
646
646
  };
647
647
  }
648
- function Ye(e) {
649
- return W(e).position === "static";
648
+ function Xe(e) {
649
+ return U(e).position === "static";
650
650
  }
651
- function Xe(e, t) {
652
- if (!z(e) || W(e).position === "fixed") return null;
651
+ function Ze(e, t) {
652
+ if (!R(e) || U(e).position === "fixed") return null;
653
653
  if (t) return t(e);
654
654
  let n = e.offsetParent;
655
- return L(e) === n && (n = n.ownerDocument.body), n;
656
- }
657
- function Ze(e, t) {
658
- let n = I(e);
659
- if (V(e)) return n;
660
- if (!z(e)) {
661
- let t = K(e);
662
- for (; t && !U(t);) {
663
- if (R(t) && !Ye(t)) return t;
664
- t = K(t);
655
+ return I(e) === n && (n = n.ownerDocument.body), n;
656
+ }
657
+ function Qe(e, t) {
658
+ let n = F(e);
659
+ if (B(e)) return n;
660
+ if (!R(e)) {
661
+ let t = G(e);
662
+ for (; t && !H(t);) {
663
+ if (L(t) && !Xe(t)) return t;
664
+ t = G(t);
665
665
  }
666
666
  return n;
667
667
  }
668
- let r = Xe(e, t);
669
- for (; r && Se(r) && Ye(r);) r = Xe(r, t);
670
- return r && U(r) && Ye(r) && !Ee(r) ? n : r || De(e) || n;
668
+ let r = Ze(e, t);
669
+ for (; r && Ce(r) && Xe(r);) r = Ze(r, t);
670
+ return r && H(r) && Xe(r) && !De(r) ? n : r || Oe(e) || n;
671
671
  }
672
- var Qe = async function(e) {
673
- let t = this.getOffsetParent || Ze, n = this.getDimensions, r = await n(e.floating);
672
+ var $e = async function(e) {
673
+ let t = this.getOffsetParent || Qe, n = this.getDimensions, r = await n(e.floating);
674
674
  return {
675
- reference: Je(e.reference, await t(e.floating), e.strategy),
675
+ reference: Ye(e.reference, await t(e.floating), e.strategy),
676
676
  floating: {
677
677
  x: 0,
678
678
  y: 0,
@@ -681,26 +681,26 @@ var Qe = async function(e) {
681
681
  }
682
682
  };
683
683
  };
684
- function $e(e) {
685
- return W(e).direction === "rtl";
686
- }
687
- var et = {
688
- convertOffsetParentRelativeRectToViewportRelativeRect: Le,
689
- getDocumentElement: L,
690
- getClippingRect: Ke,
691
- getOffsetParent: Ze,
692
- getElementRects: Qe,
693
- getClientRects: Re,
694
- getDimensions: qe,
695
- getScale: J,
696
- isElement: R,
697
- isRTL: $e
684
+ function et(e) {
685
+ return U(e).direction === "rtl";
686
+ }
687
+ var tt = {
688
+ convertOffsetParentRelativeRectToViewportRelativeRect: Re,
689
+ getDocumentElement: I,
690
+ getClippingRect: qe,
691
+ getOffsetParent: Qe,
692
+ getElementRects: $e,
693
+ getClientRects: ze,
694
+ getDimensions: Je,
695
+ getScale: q,
696
+ isElement: L,
697
+ isRTL: et
698
698
  };
699
- function tt(e, t) {
699
+ function nt(e, t) {
700
700
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
701
701
  }
702
- function nt(e, t) {
703
- let n = null, r, i = L(e);
702
+ function rt(e, t) {
703
+ let n = null, r, i = I(e);
704
704
  function a() {
705
705
  var e;
706
706
  clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
@@ -721,7 +721,7 @@ function nt(e, t) {
721
721
  o(!1, 1e-7);
722
722
  }, 1e3);
723
723
  }
724
- n === 1 && !tt(l, e.getBoundingClientRect()) && o(), S = !1;
724
+ n === 1 && !nt(l, e.getBoundingClientRect()) && o(), S = !1;
725
725
  }
726
726
  try {
727
727
  n = new IntersectionObserver(C, {
@@ -735,13 +735,13 @@ function nt(e, t) {
735
735
  }
736
736
  return o(!0), a;
737
737
  }
738
- function rt(e, t, n, r) {
738
+ function it(e, t, n, r) {
739
739
  r === void 0 && (r = {});
740
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Me(e), u = i || a ? [...l ? q(l) : [], ...t ? q(t) : []] : [];
740
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ne(e), u = i || a ? [...l ? K(l) : [], ...t ? K(t) : []] : [];
741
741
  u.forEach((e) => {
742
742
  i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
743
743
  });
744
- let d = l && s ? nt(l, n) : null, f = -1, p = null;
744
+ let d = l && s ? rt(l, n) : null, f = -1, p = null;
745
745
  o && (p = new ResizeObserver((e) => {
746
746
  let [r] = e;
747
747
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -749,11 +749,11 @@ function rt(e, t, n, r) {
749
749
  (e = p) == null || e.observe(t);
750
750
  })), n();
751
751
  }), l && !c && p.observe(l), t && p.observe(t));
752
- let m, h = c ? Y(e) : null;
752
+ let m, h = c ? J(e) : null;
753
753
  c && g();
754
754
  function g() {
755
- let t = Y(e);
756
- h && !tt(h, t) && n(), h = t, m = requestAnimationFrame(g);
755
+ let t = J(e);
756
+ h && !nt(h, t) && n(), h = t, m = requestAnimationFrame(g);
757
757
  }
758
758
  return n(), () => {
759
759
  var e;
@@ -762,19 +762,19 @@ function rt(e, t, n, r) {
762
762
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
763
763
  };
764
764
  }
765
- var it = ve, at = ye, ot = he, st = (e, t, n) => {
765
+ var at = ye, ot = be, st = ge, ct = (e, t, n) => {
766
766
  let r = /* @__PURE__ */ new Map(), i = {
767
- platform: et,
767
+ platform: tt,
768
768
  ...n
769
769
  }, a = {
770
770
  ...i.platform,
771
771
  _c: r
772
772
  };
773
- return me(e, t, {
773
+ return he(e, t, {
774
774
  ...i,
775
775
  platform: a
776
776
  });
777
- }, ct = (e) => typeof e == "object" && !!e && "$el" in e, lt = (e) => typeof HTMLElement > "u" || e === null ? null : e instanceof HTMLElement ? e : ct(e) && e.$el instanceof HTMLElement ? e.$el : null, ut = (e, t) => {
777
+ }, lt = (e) => typeof e == "object" && !!e && "$el" in e, ut = (e) => typeof HTMLElement > "u" || e === null ? null : e instanceof HTMLElement ? e : lt(e) && e.$el instanceof HTMLElement ? e.$el : null, dt = (e, t) => {
778
778
  if (e != null) {
779
779
  if (typeof e == "function") {
780
780
  e(t, {});
@@ -782,148 +782,148 @@ var it = ve, at = ye, ot = he, st = (e, t, n) => {
782
782
  }
783
783
  typeof e == "object" && "value" in e && (e.value = t);
784
784
  }
785
- }, dt = (e, t, n) => (r) => {
786
- let i = lt(r);
787
- e.value = i, i && !i.id && (i.id = t), ut(n, r);
785
+ }, ft = (e, t, n) => (r) => {
786
+ let i = ut(r);
787
+ e.value = i, i && !i.id && (i.id = t), dt(n, r);
788
788
  };
789
- function ft(t = {}) {
790
- let { placement: s = "bottom-start", strategy: c = "fixed", gap: l, offset: u = 5, flip: d = !0, shift: f = !0, middleware: p = [], autoUpdate: m = !0 } = t, h = l ?? u, g = i(null), _ = i(null), v = i({
789
+ function pt(t = {}) {
790
+ let { placement: s = "bottom-start", strategy: c = "fixed", offset: l = 5, flip: u = !0, shift: d = !0, middleware: f = [], autoUpdate: p = !0 } = t, m = i(null), h = i(null), g = i({
791
791
  x: 0,
792
792
  y: 0
793
- }), y = i(s), b = i(!1), x = [
794
- it(h),
793
+ }), _ = i(s), v = i(!1), y = [
794
+ at(l),
795
+ ...u ? [st(typeof u == "boolean" ? void 0 : u)] : [],
795
796
  ...d ? [ot(typeof d == "boolean" ? void 0 : d)] : [],
796
- ...f ? [at(typeof f == "boolean" ? void 0 : f)] : [],
797
- ...p
798
- ], S = null, C = () => {
799
- S !== null && (S(), S = null);
800
- }, w = async () => {
801
- let e = g.value, t = _.value;
797
+ ...f
798
+ ], b = null, x = () => {
799
+ b !== null && (b(), b = null);
800
+ }, S = async () => {
801
+ let e = m.value, t = h.value;
802
802
  if (e === null || t === null) return;
803
- let n = await st(e, t, {
803
+ let n = await ct(e, t, {
804
804
  placement: s,
805
805
  strategy: c,
806
- middleware: x
806
+ middleware: y
807
807
  });
808
- v.value = {
808
+ g.value = {
809
809
  x: n.x,
810
810
  y: n.y
811
- }, y.value = n.placement;
811
+ }, _.value = n.placement;
812
+ }, C = () => {
813
+ if (!p) return;
814
+ let e = m.value, t = h.value;
815
+ e === null || t === null || (x(), b = it(e, t, S));
816
+ }, w = () => {
817
+ v.value = !0;
812
818
  }, T = () => {
813
- if (!m) return;
814
- let e = g.value, t = _.value;
815
- e === null || t === null || (C(), S = rt(e, t, w));
819
+ v.value = !1;
816
820
  }, E = () => {
817
- b.value = !0;
818
- }, D = () => {
819
- b.value = !1;
820
- }, ee = () => {
821
- b.value = !b.value;
822
- }, O = e(() => ({
821
+ v.value = !v.value;
822
+ }, D = e(() => ({
823
823
  position: c,
824
- top: `${v.value.y}px`,
825
- left: `${v.value.x}px`,
826
- visibility: b.value ? "visible" : "hidden",
827
- opacity: +!!b.value,
828
- pointerEvents: b.value ? "auto" : "none",
829
- transform: b.value ? "scale(1)" : "scale(0.98)",
824
+ top: `${g.value.y}px`,
825
+ left: `${g.value.x}px`,
826
+ visibility: v.value ? "visible" : "hidden",
827
+ opacity: +!!v.value,
828
+ pointerEvents: v.value ? "auto" : "none",
829
+ transform: v.value ? "scale(1)" : "scale(0.98)",
830
830
  transition: "opacity 150ms ease, transform 150ms ease"
831
- })), k = (e = {}) => {
831
+ })), O = (e = {}) => {
832
832
  let t = e.id ?? a();
833
833
  return {
834
834
  ...e,
835
835
  id: t,
836
- ref: dt(g, t, e.ref),
837
- "aria-controls": e["aria-controls"] ?? _.value?.id ?? "",
838
- "aria-expanded": e["aria-expanded"] ?? b.value
836
+ ref: ft(m, t, e.ref),
837
+ "aria-controls": e["aria-controls"] ?? h.value?.id ?? "",
838
+ "aria-expanded": e["aria-expanded"] ?? v.value
839
839
  };
840
- }, A = (e = {}) => {
841
- let t = e.id ?? _.value?.id;
840
+ }, k = (e = {}) => {
841
+ let t = e.id ?? h.value?.id;
842
842
  return {
843
843
  ...e,
844
844
  id: t ?? a(),
845
- ref: dt(_, t ?? a(), e.ref),
846
- style: e.style === void 0 ? O.value : [O.value, e.style],
847
- "aria-hidden": e["aria-hidden"] ?? !b.value
845
+ ref: ft(h, t ?? a(), e.ref),
846
+ style: e.style === void 0 ? D.value : [D.value, e.style],
847
+ "aria-hidden": e["aria-hidden"] ?? !v.value
848
848
  };
849
- }, te = e(() => k()), ne = e(() => A()), j = async () => {
850
- if (g.value === null || _.value === null) {
851
- C();
849
+ }, A = e(() => O()), ee = e(() => k()), te = async () => {
850
+ if (m.value === null || h.value === null) {
851
+ x();
852
852
  return;
853
853
  }
854
- await n(), await w(), T();
854
+ await n(), await S(), C();
855
855
  };
856
- return o(b, (e) => {
857
- e ? j() : C();
858
- }), o([g, _], () => {
859
- b.value ? j() : C();
860
- }), r(C), {
861
- trigger: te,
862
- floating: ne,
863
- getTriggerBindings: k,
864
- getFloatingBindings: A,
865
- referenceElement: g,
866
- floatingElement: _,
867
- visible: b,
868
- styles: O,
869
- resolvedPlacement: y,
870
- show: E,
871
- hide: D,
872
- toggle: ee,
873
- updatePosition: w
856
+ return o(v, (e) => {
857
+ e ? te() : x();
858
+ }), o([m, h], () => {
859
+ v.value ? te() : x();
860
+ }), r(x), {
861
+ trigger: A,
862
+ floating: ee,
863
+ getTriggerBindings: O,
864
+ getFloatingBindings: k,
865
+ referenceElement: m,
866
+ floatingElement: h,
867
+ visible: v,
868
+ styles: D,
869
+ resolvedPlacement: _,
870
+ show: w,
871
+ hide: T,
872
+ toggle: E,
873
+ updatePosition: S
874
874
  };
875
875
  }
876
876
  //#endregion
877
877
  //#region src/composables/ui/useNotify.ts
878
- var pt = {
878
+ var mt = {
879
879
  success: "hl-bg-success/10 hl-text-success hl-border hl-border-success/20",
880
880
  error: "hl-bg-danger/10 hl-text-danger hl-border hl-border-danger/20",
881
881
  info: "hl-bg-info/10 hl-text-info hl-border hl-border-info/20",
882
882
  warning: "hl-bg-warning/10 hl-text-warning hl-border hl-border-warning/20"
883
- }, mt = 1, Z = i({
883
+ }, ht = 1, X = i({
884
884
  id: 0,
885
885
  visible: !1,
886
886
  type: "success",
887
887
  message: "",
888
888
  title: "",
889
889
  durationMs: 0,
890
- colorClass: pt.success
891
- }), Q = i(void 0), ht = (e) => Array.isArray(e) ? e[0] ?? "Something went wrong" : e, gt = () => {
892
- Q.value !== void 0 && (clearTimeout(Q.value), Q.value = void 0);
893
- }, _t = () => {
894
- Z.value.visible = !1, gt();
895
- }, vt = (e, t, n, r) => {
896
- gt();
897
- let i = ht(t), a = Math.max(r, 0);
898
- Z.value = {
899
- id: mt++,
890
+ colorClass: mt.success
891
+ }), Z = i(void 0), gt = (e) => Array.isArray(e) ? e[0] ?? "Something went wrong" : e, _t = () => {
892
+ Z.value !== void 0 && (clearTimeout(Z.value), Z.value = void 0);
893
+ }, vt = () => {
894
+ X.value.visible = !1, _t();
895
+ }, Q = (e, t, n, r) => {
896
+ _t();
897
+ let i = gt(t), a = Math.max(r, 0);
898
+ X.value = {
899
+ id: ht++,
900
900
  visible: !0,
901
901
  type: e,
902
902
  message: i,
903
903
  title: n,
904
904
  durationMs: a,
905
- colorClass: pt[e]
906
- }, a > 0 && (Q.value = setTimeout(() => {
907
- Z.value.visible = !1, Q.value = void 0;
905
+ colorClass: mt[e]
906
+ }, a > 0 && (Z.value = setTimeout(() => {
907
+ X.value.visible = !1, Z.value = void 0;
908
908
  }, a));
909
909
  }, yt = (e, t, n) => {
910
- vt("success", e, t ?? "", n ?? 3500);
910
+ Q("success", e, t ?? "", n ?? 3500);
911
911
  }, bt = (e, t, n) => {
912
- vt("error", e, t ?? "", n ?? 3500);
912
+ Q("error", e, t ?? "", n ?? 3500);
913
913
  }, xt = (e, t, n) => {
914
- vt("info", e, t ?? "", n ?? 3500);
914
+ Q("info", e, t ?? "", n ?? 3500);
915
915
  }, St = (e, t, n) => {
916
- vt("warning", e, t ?? "", n ?? 3500);
916
+ Q("warning", e, t ?? "", n ?? 3500);
917
917
  };
918
918
  function Ct() {
919
919
  return {
920
- notification: Z,
921
- classes: e(() => Z.value.colorClass),
920
+ notification: X,
921
+ classes: e(() => X.value.colorClass),
922
922
  success: yt,
923
923
  error: bt,
924
924
  info: xt,
925
925
  warning: St,
926
- hide: _t
926
+ hide: vt
927
927
  };
928
928
  }
929
929
  //#endregion
@@ -933,7 +933,7 @@ var wt = 0, Tt = null, Et = null, $ = i({
933
933
  type: "confirm",
934
934
  component: null,
935
935
  props: void 0,
936
- isLoading: !1
936
+ loading: !1
937
937
  }), Dt = () => {
938
938
  Tt = null, Et = null;
939
939
  }, Ot = () => {
@@ -942,7 +942,7 @@ var wt = 0, Tt = null, Et = null, $ = i({
942
942
  type: "confirm",
943
943
  component: null,
944
944
  props: void 0,
945
- isLoading: !1
945
+ loading: !1
946
946
  };
947
947
  }, kt = () => {
948
948
  setTimeout(Ot, 300);
@@ -979,18 +979,18 @@ var wt = 0, Tt = null, Et = null, $ = i({
979
979
  iconSource: e.iconSource,
980
980
  hideIcon: e.hideIcon
981
981
  },
982
- isLoading: !1
982
+ loading: !1
983
983
  }, Pt(n)) : ($.value = {
984
984
  isVisible: !0,
985
985
  type: "custom",
986
986
  component: t(e.component),
987
987
  props: e.props,
988
- isLoading: !1
988
+ loading: !1
989
989
  }, Pt(n));
990
990
  }, It = () => {
991
- $.value.isLoading || (Nt(), Mt());
991
+ $.value.loading || (Nt(), Mt());
992
992
  }, Lt = () => {
993
- if (!$.value.isLoading) {
993
+ if (!$.value.loading) {
994
994
  if (Tt === null) {
995
995
  Nt();
996
996
  return;
@@ -1001,31 +1001,29 @@ var wt = 0, Tt = null, Et = null, $ = i({
1001
1001
  Nt();
1002
1002
  return;
1003
1003
  }
1004
- $.value.isLoading = !0, e.then(() => {
1005
- $.value.isLoading = !1, Nt();
1004
+ $.value.loading = !0, e.then(() => {
1005
+ $.value.loading = !1, Nt();
1006
1006
  }).catch((e) => {
1007
- $.value.isLoading = !1, At(e);
1007
+ $.value.loading = !1, At(e);
1008
1008
  });
1009
1009
  } catch (e) {
1010
1010
  At(e);
1011
1011
  }
1012
1012
  }
1013
- }, Rt = (e) => {
1014
- $.value.isLoading = e;
1015
1013
  };
1016
- function zt() {
1014
+ function Rt() {
1015
+ let t = e(() => $.value.loading);
1017
1016
  return {
1018
1017
  isVisible: e(() => $.value.isVisible),
1018
+ loading: t,
1019
+ isLoading: t,
1019
1020
  type: e(() => $.value.type),
1020
1021
  component: e(() => $.value.component),
1021
1022
  props: e(() => $.value.props),
1022
- isLoading: e(() => $.value.isLoading),
1023
1023
  open: Ft,
1024
1024
  close: It,
1025
- confirm: Lt,
1026
- resetPopupState: Ot,
1027
- setLoading: Rt
1025
+ confirm: Lt
1028
1026
  };
1029
1027
  }
1030
1028
  //#endregion
1031
- export { m as a, p as i, Ct as n, g as o, ft as r, _ as s, zt as t };
1029
+ export { m as a, p as i, Ct as n, g as o, pt as r, _ as s, Rt as t };