@zenuml/core 3.24.29 → 3.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.e23f021e.js";
2
- const Ie = ["top", "right", "bottom", "left"], Le = ["start", "end"], Fe = /* @__PURE__ */ Ie.reduce((e, t) => e.concat(t, t + "-" + Le[0], t + "-" + Le[1]), []), Z = Math.min, q = Math.max, ae = Math.round, le = Math.floor, X = (e) => ({
1
+ import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ie, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, z as bt, P as Ct, o as Pe, A as At, B as Ot, a as ge, c as Tt, C as Rt, D as St, E as Et, G as Pt, H as Lt, I as Ft } from "./core.cbcf63dd.js";
2
+ const Ve = ["top", "right", "bottom", "left"], Le = ["start", "end"], Fe = /* @__PURE__ */ Ve.reduce((e, t) => e.concat(t, t + "-" + Le[0], t + "-" + Le[1]), []), Z = Math.min, q = Math.max, ae = Math.round, le = Math.floor, Y = (e) => ({
3
3
  x: e,
4
4
  y: e
5
- }), Ft = {
5
+ }), Bt = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, Bt = {
10
+ }, Dt = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
@@ -17,7 +17,7 @@ function ye(e, t, n) {
17
17
  function K(e, t) {
18
18
  return typeof e == "function" ? e(t) : e;
19
19
  }
20
- function I(e) {
20
+ function V(e) {
21
21
  return e.split("-")[0];
22
22
  }
23
23
  function W(e) {
@@ -30,25 +30,25 @@ function be(e) {
30
30
  return e === "y" ? "height" : "width";
31
31
  }
32
32
  function de(e) {
33
- return ["top", "bottom"].includes(I(e)) ? "y" : "x";
33
+ return ["top", "bottom"].includes(V(e)) ? "y" : "x";
34
34
  }
35
35
  function Ce(e) {
36
36
  return Ue(de(e));
37
37
  }
38
- function Xe(e, t, n) {
38
+ function Ye(e, t, n) {
39
39
  n === void 0 && (n = !1);
40
40
  const i = W(e), o = Ce(e), r = be(o);
41
41
  let s = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
42
42
  return t.reference[r] > t.floating[r] && (s = fe(s)), [s, fe(s)];
43
43
  }
44
- function Dt(e) {
44
+ function Nt(e) {
45
45
  const t = fe(e);
46
46
  return [ce(e), t, ce(t)];
47
47
  }
48
48
  function ce(e) {
49
- return e.replace(/start|end/g, (t) => Bt[t]);
49
+ return e.replace(/start|end/g, (t) => Dt[t]);
50
50
  }
51
- function Nt(e, t, n) {
51
+ function $t(e, t, n) {
52
52
  const i = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
53
53
  switch (e) {
54
54
  case "top":
@@ -61,15 +61,15 @@ function Nt(e, t, n) {
61
61
  return [];
62
62
  }
63
63
  }
64
- function $t(e, t, n, i) {
64
+ function kt(e, t, n, i) {
65
65
  const o = W(e);
66
- let r = Nt(I(e), n === "start", i);
66
+ let r = $t(V(e), n === "start", i);
67
67
  return o && (r = r.map((s) => s + "-" + o), t && (r = r.concat(r.map(ce)))), r;
68
68
  }
69
69
  function fe(e) {
70
- return e.replace(/left|right|bottom|top/g, (t) => Ft[t]);
70
+ return e.replace(/left|right|bottom|top/g, (t) => Bt[t]);
71
71
  }
72
- function kt(e) {
72
+ function Mt(e) {
73
73
  return {
74
74
  top: 0,
75
75
  right: 0,
@@ -78,8 +78,8 @@ function kt(e) {
78
78
  ...e
79
79
  };
80
80
  }
81
- function Ye(e) {
82
- return typeof e != "number" ? kt(e) : {
81
+ function Xe(e) {
82
+ return typeof e != "number" ? Mt(e) : {
83
83
  top: e,
84
84
  right: e,
85
85
  bottom: e,
@@ -109,7 +109,7 @@ function Be(e, t, n) {
109
109
  reference: i,
110
110
  floating: o
111
111
  } = e;
112
- const r = de(t), s = Ce(t), l = be(s), f = I(t), c = r === "y", u = i.x + i.width / 2 - o.width / 2, d = i.y + i.height / 2 - o.height / 2, g = i[l] / 2 - o[l] / 2;
112
+ const r = de(t), s = Ce(t), l = be(s), f = V(t), c = r === "y", u = i.x + i.width / 2 - o.width / 2, d = i.y + i.height / 2 - o.height / 2, g = i[l] / 2 - o[l] / 2;
113
113
  let m;
114
114
  switch (f) {
115
115
  case "top":
@@ -152,7 +152,7 @@ function Be(e, t, n) {
152
152
  }
153
153
  return m;
154
154
  }
155
- const Mt = async (e, t, n) => {
155
+ const jt = async (e, t, n) => {
156
156
  const {
157
157
  placement: i = "bottom",
158
158
  strategy: o = "absolute",
@@ -229,7 +229,7 @@ async function oe(e, t) {
229
229
  elementContext: d = "floating",
230
230
  altBoundary: g = !1,
231
231
  padding: m = 0
232
- } = K(t, e), a = Ye(m), v = l[g ? d === "floating" ? "reference" : "floating" : d], w = ue(await r.getClippingRect({
232
+ } = K(t, e), a = Xe(m), v = l[g ? d === "floating" ? "reference" : "floating" : d], w = ue(await r.getClippingRect({
233
233
  element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
234
234
  boundary: c,
235
235
  rootBoundary: u,
@@ -258,7 +258,7 @@ async function oe(e, t) {
258
258
  right: (A.right - w.right + a.right) / C.x
259
259
  };
260
260
  }
261
- const jt = (e) => ({
261
+ const Ht = (e) => ({
262
262
  name: "arrow",
263
263
  options: e,
264
264
  async fn(t) {
@@ -276,30 +276,30 @@ const jt = (e) => ({
276
276
  } = K(e, t) || {};
277
277
  if (c == null)
278
278
  return {};
279
- const d = Ye(u), g = {
279
+ const d = Xe(u), g = {
280
280
  x: n,
281
281
  y: i
282
282
  }, m = Ce(o), a = be(m), h = await s.getDimensions(c), v = m === "y", w = v ? "top" : "left", y = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = r.reference[a] + r.reference[m] - g[m] - r.floating[a], A = g[m] - r.reference[m], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
283
283
  let p = O ? O[b] : 0;
284
284
  (!p || !await (s.isElement == null ? void 0 : s.isElement(O))) && (p = l.floating[b] || r.floating[a]);
285
- const T = C / 2 - A / 2, L = p / 2 - h[a] / 2 - 1, R = Z(d[w], L), B = Z(d[y], L), S = R, D = p - h[a] - B, F = p / 2 - h[a] / 2 + T, $ = ye(S, F, D), j = !f.arrow && W(o) != null && F !== $ && r.reference[a] / 2 - (F < S ? R : B) - h[a] / 2 < 0, V = j ? F < S ? F - S : F - D : 0;
285
+ const T = C / 2 - A / 2, L = p / 2 - h[a] / 2 - 1, S = Z(d[w], L), B = Z(d[y], L), R = S, D = p - h[a] - B, F = p / 2 - h[a] / 2 + T, $ = ye(R, F, D), j = !f.arrow && W(o) != null && F !== $ && r.reference[a] / 2 - (F < R ? S : B) - h[a] / 2 < 0, I = j ? F < R ? F - R : F - D : 0;
286
286
  return {
287
- [m]: g[m] + V,
287
+ [m]: g[m] + I,
288
288
  data: {
289
289
  [m]: $,
290
- centerOffset: F - $ - V,
290
+ centerOffset: F - $ - I,
291
291
  ...j && {
292
- alignmentOffset: V
292
+ alignmentOffset: I
293
293
  }
294
294
  },
295
295
  reset: j
296
296
  };
297
297
  }
298
298
  });
299
- function Ht(e, t, n) {
300
- return (e ? [...n.filter((o) => W(o) === e), ...n.filter((o) => W(o) !== e)] : n.filter((o) => I(o) === o)).filter((o) => e ? W(o) === e || (t ? ce(o) !== o : !1) : !0);
299
+ function Wt(e, t, n) {
300
+ return (e ? [...n.filter((o) => W(o) === e), ...n.filter((o) => W(o) !== e)] : n.filter((o) => V(o) === o)).filter((o) => e ? W(o) === e || (t ? ce(o) !== o : !1) : !0);
301
301
  }
302
- const Wt = function(e) {
302
+ const _t = function(e) {
303
303
  return e === void 0 && (e = {}), {
304
304
  name: "autoPlacement",
305
305
  options: e,
@@ -317,17 +317,17 @@ const Wt = function(e) {
317
317
  allowedPlacements: g = Fe,
318
318
  autoAlignment: m = !0,
319
319
  ...a
320
- } = K(e, t), h = d !== void 0 || g === Fe ? Ht(d || null, m, g) : g, v = await oe(t, a), w = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, y = h[w];
320
+ } = K(e, t), h = d !== void 0 || g === Fe ? Wt(d || null, m, g) : g, v = await oe(t, a), w = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, y = h[w];
321
321
  if (y == null)
322
322
  return {};
323
- const b = Xe(y, r, await (f.isRTL == null ? void 0 : f.isRTL(c.floating)));
323
+ const b = Ye(y, r, await (f.isRTL == null ? void 0 : f.isRTL(c.floating)));
324
324
  if (l !== y)
325
325
  return {
326
326
  reset: {
327
327
  placement: h[0]
328
328
  }
329
329
  };
330
- const C = [v[I(y)], v[b[0]], v[b[1]]], A = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
330
+ const C = [v[V(y)], v[b[0]], v[b[1]]], A = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
331
331
  placement: y,
332
332
  overflows: C
333
333
  }], O = h[w + 1];
@@ -341,12 +341,12 @@ const Wt = function(e) {
341
341
  placement: O
342
342
  }
343
343
  };
344
- const p = A.map((R) => {
345
- const B = W(R.placement);
346
- return [R.placement, B && u ? R.overflows.slice(0, 2).reduce((S, D) => S + D, 0) : R.overflows[0], R.overflows];
347
- }).sort((R, B) => R[1] - B[1]), L = ((o = p.filter((R) => R[2].slice(
344
+ const p = A.map((S) => {
345
+ const B = W(S.placement);
346
+ return [S.placement, B && u ? S.overflows.slice(0, 2).reduce((R, D) => R + D, 0) : S.overflows[0], S.overflows];
347
+ }).sort((S, B) => S[1] - B[1]), L = ((o = p.filter((S) => S[2].slice(
348
348
  0,
349
- W(R[0]) ? 2 : 3
349
+ W(S[0]) ? 2 : 3
350
350
  ).every((B) => B <= 0))[0]) == null ? void 0 : o[0]) || p[0][0];
351
351
  return L !== l ? {
352
352
  data: {
@@ -359,7 +359,7 @@ const Wt = function(e) {
359
359
  } : {};
360
360
  }
361
361
  };
362
- }, _t = function(e) {
362
+ }, zt = function(e) {
363
363
  return e === void 0 && (e = {}), {
364
364
  name: "flip",
365
365
  options: e,
@@ -383,36 +383,36 @@ const Wt = function(e) {
383
383
  } = K(e, t);
384
384
  if ((n = r.arrow) != null && n.alignmentOffset)
385
385
  return {};
386
- const w = I(o), y = I(l) === l, b = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), C = g || (y || !h ? [fe(l)] : Dt(l));
387
- !g && a !== "none" && C.push(...$t(l, h, a, b));
386
+ const w = V(o), y = V(l) === l, b = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), C = g || (y || !h ? [fe(l)] : Nt(l));
387
+ !g && a !== "none" && C.push(...kt(l, h, a, b));
388
388
  const A = [l, ...C], O = await oe(t, v), p = [];
389
389
  let T = ((i = r.flip) == null ? void 0 : i.overflows) || [];
390
390
  if (u && p.push(O[w]), d) {
391
- const S = Xe(o, s, b);
392
- p.push(O[S[0]], O[S[1]]);
391
+ const R = Ye(o, s, b);
392
+ p.push(O[R[0]], O[R[1]]);
393
393
  }
394
394
  if (T = [...T, {
395
395
  placement: o,
396
396
  overflows: p
397
- }], !p.every((S) => S <= 0)) {
398
- var L, R;
399
- const S = (((L = r.flip) == null ? void 0 : L.index) || 0) + 1, D = A[S];
397
+ }], !p.every((R) => R <= 0)) {
398
+ var L, S;
399
+ const R = (((L = r.flip) == null ? void 0 : L.index) || 0) + 1, D = A[R];
400
400
  if (D)
401
401
  return {
402
402
  data: {
403
- index: S,
403
+ index: R,
404
404
  overflows: T
405
405
  },
406
406
  reset: {
407
407
  placement: D
408
408
  }
409
409
  };
410
- let F = (R = T.filter(($) => $.overflows[0] <= 0).sort(($, j) => $.overflows[1] - j.overflows[1])[0]) == null ? void 0 : R.placement;
410
+ let F = (S = T.filter(($) => $.overflows[0] <= 0).sort(($, j) => $.overflows[1] - j.overflows[1])[0]) == null ? void 0 : S.placement;
411
411
  if (!F)
412
412
  switch (m) {
413
413
  case "bestFit": {
414
414
  var B;
415
- const $ = (B = T.map((j) => [j.placement, j.overflows.filter((V) => V > 0).reduce((V, st) => V + st, 0)]).sort((j, V) => j[1] - V[1])[0]) == null ? void 0 : B[0];
415
+ const $ = (B = T.map((j) => [j.placement, j.overflows.filter((I) => I > 0).reduce((I, st) => I + st, 0)]).sort((j, I) => j[1] - I[1])[0]) == null ? void 0 : B[0];
416
416
  $ && (F = $);
417
417
  break;
418
418
  }
@@ -440,9 +440,9 @@ function De(e, t) {
440
440
  };
441
441
  }
442
442
  function Ne(e) {
443
- return Ie.some((t) => e[t] >= 0);
443
+ return Ve.some((t) => e[t] >= 0);
444
444
  }
445
- const zt = function(e) {
445
+ const It = function(e) {
446
446
  return e === void 0 && (e = {}), {
447
447
  name: "hide",
448
448
  options: e,
@@ -489,7 +489,7 @@ async function Vt(e, t) {
489
489
  placement: n,
490
490
  platform: i,
491
491
  elements: o
492
- } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = I(n), l = W(n), f = de(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = r && f ? -1 : 1, d = K(t, e);
492
+ } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = V(n), l = W(n), f = de(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = r && f ? -1 : 1, d = K(t, e);
493
493
  let {
494
494
  mainAxis: g,
495
495
  crossAxis: m,
@@ -512,7 +512,7 @@ async function Vt(e, t) {
512
512
  y: m * u
513
513
  };
514
514
  }
515
- const It = function(e) {
515
+ const Ut = function(e) {
516
516
  return e === void 0 && (e = 0), {
517
517
  name: "offset",
518
518
  options: e,
@@ -534,7 +534,7 @@ const It = function(e) {
534
534
  };
535
535
  }
536
536
  };
537
- }, Ut = function(e) {
537
+ }, Yt = function(e) {
538
538
  return e === void 0 && (e = {}), {
539
539
  name: "shift",
540
540
  options: e,
@@ -562,7 +562,7 @@ const It = function(e) {
562
562
  } = K(e, t), c = {
563
563
  x: n,
564
564
  y: i
565
- }, u = await oe(t, f), d = de(I(o)), g = Ue(d);
565
+ }, u = await oe(t, f), d = de(V(o)), g = Ue(d);
566
566
  let m = c[g], a = c[d];
567
567
  if (r) {
568
568
  const v = g === "y" ? "top" : "left", w = g === "y" ? "bottom" : "right", y = m + u[v], b = m - u[w];
@@ -626,12 +626,12 @@ function Ae(e) {
626
626
  const t = Oe(), n = M(e);
627
627
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
628
628
  }
629
- function Yt(e) {
630
- let t = Y(e);
629
+ function qt(e) {
630
+ let t = X(e);
631
631
  for (; z(t) && !ee(t); ) {
632
632
  if (Ae(t))
633
633
  return t;
634
- t = Y(t);
634
+ t = X(t);
635
635
  }
636
636
  return null;
637
637
  }
@@ -653,14 +653,14 @@ function me(e) {
653
653
  scrollTop: e.pageYOffset
654
654
  };
655
655
  }
656
- function Y(e) {
656
+ function X(e) {
657
657
  if (te(e) === "html")
658
658
  return e;
659
659
  const t = e.assignedSlot || e.parentNode || $e(e) && e.host || U(e);
660
660
  return $e(t) ? t.host : t;
661
661
  }
662
662
  function Ge(e) {
663
- const t = Y(e);
663
+ const t = X(e);
664
664
  return ee(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && se(t) ? t : Ge(t);
665
665
  }
666
666
  function ie(e, t, n) {
@@ -685,7 +685,7 @@ function Te(e) {
685
685
  function J(e) {
686
686
  const t = Te(e);
687
687
  if (!z(t))
688
- return X(1);
688
+ return Y(1);
689
689
  const n = t.getBoundingClientRect(), {
690
690
  width: i,
691
691
  height: o,
@@ -697,23 +697,23 @@ function J(e) {
697
697
  y: l
698
698
  };
699
699
  }
700
- const qt = /* @__PURE__ */ X(0);
700
+ const Gt = /* @__PURE__ */ Y(0);
701
701
  function Qe(e) {
702
702
  const t = N(e);
703
- return !Oe() || !t.visualViewport ? qt : {
703
+ return !Oe() || !t.visualViewport ? Gt : {
704
704
  x: t.visualViewport.offsetLeft,
705
705
  y: t.visualViewport.offsetTop
706
706
  };
707
707
  }
708
- function Gt(e, t, n) {
708
+ function Kt(e, t, n) {
709
709
  return t === void 0 && (t = !1), !n || t && n !== N(e) ? !1 : t;
710
710
  }
711
711
  function G(e, t, n, i) {
712
712
  t === void 0 && (t = !1), n === void 0 && (n = !1);
713
713
  const o = e.getBoundingClientRect(), r = Te(e);
714
- let s = X(1);
714
+ let s = Y(1);
715
715
  t && (i ? _(i) && (s = J(i)) : s = J(e));
716
- const l = Gt(r, n, i) ? Qe(r) : X(0);
716
+ const l = Kt(r, n, i) ? Qe(r) : Y(0);
717
717
  let f = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, u = o.width / s.x, d = o.height / s.y;
718
718
  if (r) {
719
719
  const g = N(r), m = i && _(i) ? N(i) : i;
@@ -730,9 +730,9 @@ function G(e, t, n, i) {
730
730
  y: c
731
731
  });
732
732
  }
733
- const Kt = [":popover-open", ":modal"];
734
- function Se(e) {
735
- return Kt.some((t) => {
733
+ const Qt = [":popover-open", ":modal"];
734
+ function Re(e) {
735
+ return Qt.some((t) => {
736
736
  try {
737
737
  return e.matches(t);
738
738
  } catch {
@@ -740,21 +740,21 @@ function Se(e) {
740
740
  }
741
741
  });
742
742
  }
743
- function Qt(e) {
743
+ function Jt(e) {
744
744
  let {
745
745
  elements: t,
746
746
  rect: n,
747
747
  offsetParent: i,
748
748
  strategy: o
749
749
  } = e;
750
- const r = o === "fixed", s = U(i), l = t ? Se(t.floating) : !1;
750
+ const r = o === "fixed", s = U(i), l = t ? Re(t.floating) : !1;
751
751
  if (i === s || l && r)
752
752
  return n;
753
753
  let f = {
754
754
  scrollLeft: 0,
755
755
  scrollTop: 0
756
- }, c = X(1);
757
- const u = X(0), d = z(i);
756
+ }, c = Y(1);
757
+ const u = Y(0), d = z(i);
758
758
  if ((d || !d && !r) && ((te(i) !== "body" || se(s)) && (f = me(i)), z(i))) {
759
759
  const g = G(i);
760
760
  c = J(i), u.x = g.x + i.clientLeft, u.y = g.y + i.clientTop;
@@ -766,13 +766,13 @@ function Qt(e) {
766
766
  y: n.y * c.y - f.scrollTop * c.y + u.y
767
767
  };
768
768
  }
769
- function Jt(e) {
769
+ function Zt(e) {
770
770
  return Array.from(e.getClientRects());
771
771
  }
772
772
  function Je(e) {
773
773
  return G(U(e)).left + me(e).scrollLeft;
774
774
  }
775
- function Zt(e) {
775
+ function en(e) {
776
776
  const t = U(e), n = me(e), i = e.ownerDocument.body, o = q(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = q(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
777
777
  let s = -n.scrollLeft + Je(e);
778
778
  const l = -n.scrollTop;
@@ -783,7 +783,7 @@ function Zt(e) {
783
783
  y: l
784
784
  };
785
785
  }
786
- function en(e, t) {
786
+ function tn(e, t) {
787
787
  const n = N(e), i = U(e), o = n.visualViewport;
788
788
  let r = i.clientWidth, s = i.clientHeight, l = 0, f = 0;
789
789
  if (o) {
@@ -798,8 +798,8 @@ function en(e, t) {
798
798
  y: f
799
799
  };
800
800
  }
801
- function tn(e, t) {
802
- const n = G(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, r = z(e) ? J(e) : X(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, f = o * r.x, c = i * r.y;
801
+ function nn(e, t) {
802
+ const n = G(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, r = z(e) ? J(e) : Y(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, f = o * r.x, c = i * r.y;
803
803
  return {
804
804
  width: s,
805
805
  height: l,
@@ -810,11 +810,11 @@ function tn(e, t) {
810
810
  function ke(e, t, n) {
811
811
  let i;
812
812
  if (t === "viewport")
813
- i = en(e, n);
813
+ i = tn(e, n);
814
814
  else if (t === "document")
815
- i = Zt(U(e));
815
+ i = en(U(e));
816
816
  else if (_(t))
817
- i = tn(t, n);
817
+ i = nn(t, n);
818
818
  else {
819
819
  const o = Qe(e);
820
820
  i = {
@@ -826,30 +826,30 @@ function ke(e, t, n) {
826
826
  return ue(i);
827
827
  }
828
828
  function Ze(e, t) {
829
- const n = Y(e);
829
+ const n = X(e);
830
830
  return n === t || !_(n) || ee(n) ? !1 : M(n).position === "fixed" || Ze(n, t);
831
831
  }
832
- function nn(e, t) {
832
+ function on(e, t) {
833
833
  const n = t.get(e);
834
834
  if (n)
835
835
  return n;
836
836
  let i = ie(e, [], !1).filter((l) => _(l) && te(l) !== "body"), o = null;
837
837
  const r = M(e).position === "fixed";
838
- let s = r ? Y(e) : e;
838
+ let s = r ? X(e) : e;
839
839
  for (; _(s) && !ee(s); ) {
840
840
  const l = M(s), f = Ae(s);
841
- !f && l.position === "fixed" && (o = null), (r ? !f && !o : !f && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || se(s) && !f && Ze(e, s)) ? i = i.filter((u) => u !== s) : o = l, s = Y(s);
841
+ !f && l.position === "fixed" && (o = null), (r ? !f && !o : !f && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || se(s) && !f && Ze(e, s)) ? i = i.filter((u) => u !== s) : o = l, s = X(s);
842
842
  }
843
843
  return t.set(e, i), i;
844
844
  }
845
- function on(e) {
845
+ function rn(e) {
846
846
  let {
847
847
  element: t,
848
848
  boundary: n,
849
849
  rootBoundary: i,
850
850
  strategy: o
851
851
  } = e;
852
- const s = [...n === "clippingAncestors" ? Se(t) ? [] : nn(t, this._c) : [].concat(n), i], l = s[0], f = s.reduce((c, u) => {
852
+ const s = [...n === "clippingAncestors" ? Re(t) ? [] : on(t, this._c) : [].concat(n), i], l = s[0], f = s.reduce((c, u) => {
853
853
  const d = ke(t, u, o);
854
854
  return c.top = q(d.top, c.top), c.right = Z(d.right, c.right), c.bottom = Z(d.bottom, c.bottom), c.left = q(d.left, c.left), c;
855
855
  }, ke(t, l, o));
@@ -860,7 +860,7 @@ function on(e) {
860
860
  y: f.top
861
861
  };
862
862
  }
863
- function rn(e) {
863
+ function sn(e) {
864
864
  const {
865
865
  width: t,
866
866
  height: n
@@ -870,13 +870,13 @@ function rn(e) {
870
870
  height: n
871
871
  };
872
872
  }
873
- function sn(e, t, n) {
873
+ function ln(e, t, n) {
874
874
  const i = z(t), o = U(t), r = n === "fixed", s = G(e, !0, r, t);
875
875
  let l = {
876
876
  scrollLeft: 0,
877
877
  scrollTop: 0
878
878
  };
879
- const f = X(0);
879
+ const f = Y(0);
880
880
  if (i || !i && !r)
881
881
  if ((te(t) !== "body" || se(o)) && (l = me(t)), i) {
882
882
  const d = G(t, !0, r, t);
@@ -899,26 +899,26 @@ function Me(e, t) {
899
899
  }
900
900
  function et(e, t) {
901
901
  const n = N(e);
902
- if (Se(e))
902
+ if (Re(e))
903
903
  return n;
904
904
  if (!z(e)) {
905
- let o = Y(e);
905
+ let o = X(e);
906
906
  for (; o && !ee(o); ) {
907
907
  if (_(o) && !ve(o))
908
908
  return o;
909
- o = Y(o);
909
+ o = X(o);
910
910
  }
911
911
  return n;
912
912
  }
913
913
  let i = Me(e, t);
914
914
  for (; i && Xt(i) && ve(i); )
915
915
  i = Me(i, t);
916
- return i && ee(i) && ve(i) && !Ae(i) ? n : i || Yt(e) || n;
916
+ return i && ee(i) && ve(i) && !Ae(i) ? n : i || qt(e) || n;
917
917
  }
918
- const ln = async function(e) {
918
+ const an = async function(e) {
919
919
  const t = this.getOffsetParent || et, n = this.getDimensions, i = await n(e.floating);
920
920
  return {
921
- reference: sn(e.reference, await t(e.floating), e.strategy),
921
+ reference: ln(e.reference, await t(e.floating), e.strategy),
922
922
  floating: {
923
923
  x: 0,
924
924
  y: 0,
@@ -927,22 +927,22 @@ const ln = async function(e) {
927
927
  }
928
928
  };
929
929
  };
930
- function an(e) {
930
+ function cn(e) {
931
931
  return M(e).direction === "rtl";
932
932
  }
933
- const cn = {
934
- convertOffsetParentRelativeRectToViewportRelativeRect: Qt,
933
+ const fn = {
934
+ convertOffsetParentRelativeRectToViewportRelativeRect: Jt,
935
935
  getDocumentElement: U,
936
- getClippingRect: on,
936
+ getClippingRect: rn,
937
937
  getOffsetParent: et,
938
- getElementRects: ln,
939
- getClientRects: Jt,
940
- getDimensions: rn,
938
+ getElementRects: an,
939
+ getClientRects: Zt,
940
+ getDimensions: sn,
941
941
  getScale: J,
942
942
  isElement: _,
943
- isRTL: an
943
+ isRTL: cn
944
944
  };
945
- function fn(e, t) {
945
+ function un(e, t) {
946
946
  let n = null, i;
947
947
  const o = U(e);
948
948
  function r() {
@@ -987,7 +987,7 @@ function fn(e, t) {
987
987
  }
988
988
  return s(!0), r;
989
989
  }
990
- function un(e, t, n, i) {
990
+ function dn(e, t, n, i) {
991
991
  i === void 0 && (i = {});
992
992
  const {
993
993
  ancestorScroll: o = !0,
@@ -1001,7 +1001,7 @@ function un(e, t, n, i) {
1001
1001
  passive: !0
1002
1002
  }), r && w.addEventListener("resize", n);
1003
1003
  });
1004
- const d = c && l ? fn(c, n) : null;
1004
+ const d = c && l ? un(c, n) : null;
1005
1005
  let g = -1, m = null;
1006
1006
  s && (m = new ResizeObserver((w) => {
1007
1007
  let [y] = w;
@@ -1023,46 +1023,46 @@ function un(e, t, n, i) {
1023
1023
  }), d == null || d(), (w = m) == null || w.disconnect(), m = null, f && cancelAnimationFrame(a);
1024
1024
  };
1025
1025
  }
1026
- const dn = It, mn = Wt, pn = Ut, hn = _t, gn = zt, vn = jt, wn = (e, t, n) => {
1026
+ const mn = Ut, pn = _t, hn = Yt, gn = zt, vn = It, wn = Ht, yn = (e, t, n) => {
1027
1027
  const i = /* @__PURE__ */ new Map(), o = {
1028
- platform: cn,
1028
+ platform: fn,
1029
1029
  ...n
1030
1030
  }, r = {
1031
1031
  ...o.platform,
1032
1032
  _c: i
1033
1033
  };
1034
- return Mt(e, t, {
1034
+ return jt(e, t, {
1035
1035
  ...o,
1036
1036
  platform: r
1037
1037
  });
1038
1038
  };
1039
- function yn(e) {
1039
+ function xn(e) {
1040
1040
  return tt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1041
1041
  }
1042
- function xn(e) {
1042
+ function bn(e) {
1043
1043
  var t;
1044
1044
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1045
1045
  }
1046
1046
  function tt(e) {
1047
- return e instanceof Node || e instanceof xn(e).Node;
1047
+ return e instanceof Node || e instanceof bn(e).Node;
1048
1048
  }
1049
- function bn(e) {
1049
+ function Cn(e) {
1050
1050
  return e != null && typeof e == "object" && "$el" in e;
1051
1051
  }
1052
1052
  function xe(e) {
1053
- if (bn(e)) {
1053
+ if (Cn(e)) {
1054
1054
  const t = e.$el;
1055
- return tt(t) && yn(t) === "#comment" ? null : t;
1055
+ return tt(t) && xn(t) === "#comment" ? null : t;
1056
1056
  }
1057
1057
  return e;
1058
1058
  }
1059
- function Cn(e) {
1059
+ function An(e) {
1060
1060
  return {
1061
1061
  name: "arrow",
1062
1062
  options: e,
1063
1063
  fn(t) {
1064
1064
  const n = xe(H(e.element));
1065
- return n == null ? {} : vn({
1065
+ return n == null ? {} : wn({
1066
1066
  element: n,
1067
1067
  padding: e.padding
1068
1068
  }).fn(t);
@@ -1076,7 +1076,7 @@ function je(e, t) {
1076
1076
  const n = nt(e);
1077
1077
  return Math.round(t * n) / n;
1078
1078
  }
1079
- function An(e, t, n) {
1079
+ function On(e, t, n) {
1080
1080
  n === void 0 && (n = {});
1081
1081
  const i = n.whileElementsMounted, o = P(() => {
1082
1082
  var p;
@@ -1113,7 +1113,7 @@ function An(e, t, n) {
1113
1113
  });
1114
1114
  let y;
1115
1115
  function b() {
1116
- c.value == null || u.value == null || wn(c.value, u.value, {
1116
+ c.value == null || u.value == null || yn(c.value, u.value, {
1117
1117
  middleware: r.value,
1118
1118
  placement: s.value,
1119
1119
  strategy: l.value
@@ -1154,20 +1154,20 @@ function An(e, t, n) {
1154
1154
  update: b
1155
1155
  };
1156
1156
  }
1157
- var On = Object.defineProperty, Tn = (e, t, n) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Sn = (e, t, n) => (Tn(e, typeof t != "symbol" ? t + "" : t, n), n);
1157
+ var Tn = Object.defineProperty, Rn = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Sn = (e, t, n) => (Rn(e, typeof t != "symbol" ? t + "" : t, n), n);
1158
1158
  function re(e) {
1159
1159
  return e == null || e.value == null ? null : e.value instanceof Node ? e.value : "$el" in e.value && e.value.$el ? re(E(e.value.$el)) : "getBoundingClientRect" in e.value ? e.value : null;
1160
1160
  }
1161
1161
  function ot(e) {
1162
1162
  return e.reduce((t, n) => n.type === ze ? t.concat(ot(n.children)) : t.concat(n), []);
1163
1163
  }
1164
- function Rn(e) {
1164
+ function En(e) {
1165
1165
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1166
1166
  }
1167
1167
  function He(e) {
1168
1168
  return e = H(e), e && (e == null ? void 0 : e.nodeType) !== Node.COMMENT_NODE;
1169
1169
  }
1170
- class En {
1170
+ class Pn {
1171
1171
  constructor() {
1172
1172
  Sn(this, "current", this.detect());
1173
1173
  }
@@ -1187,9 +1187,9 @@ class En {
1187
1187
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
1188
1188
  }
1189
1189
  }
1190
- const Re = new En();
1191
- function Pn(e) {
1192
- if (Re.isServer)
1190
+ const Se = new Pn();
1191
+ function Ln(e) {
1192
+ if (Se.isServer)
1193
1193
  return null;
1194
1194
  if (e instanceof Node)
1195
1195
  return e.ownerDocument;
@@ -1200,10 +1200,10 @@ function Pn(e) {
1200
1200
  }
1201
1201
  return document;
1202
1202
  }
1203
- function Ln(e, t) {
1203
+ function Fn(e, t) {
1204
1204
  !t.vueTransition && (t.transitionName || t.transitionType) && console.warn(`[headlessui-float]: <${e} /> pass "transition-name" or "transition-type" prop, must be set "vue-transition" prop.`);
1205
1205
  }
1206
- function Fn(e, t, n, i, o) {
1206
+ function Bn(e, t, n, i, o) {
1207
1207
  k([
1208
1208
  () => o.offset,
1209
1209
  () => o.flip,
@@ -1214,32 +1214,32 @@ function Fn(e, t, n, i, o) {
1214
1214
  () => o.middleware
1215
1215
  ], () => {
1216
1216
  const r = [];
1217
- (typeof o.offset == "number" || typeof o.offset == "object" || typeof o.offset == "function") && r.push(dn(o.offset)), (o.flip === !0 || typeof o.flip == "number" || typeof o.flip == "object") && r.push(hn({
1217
+ (typeof o.offset == "number" || typeof o.offset == "object" || typeof o.offset == "function") && r.push(mn(o.offset)), (o.flip === !0 || typeof o.flip == "number" || typeof o.flip == "object") && r.push(gn({
1218
1218
  padding: typeof o.flip == "number" ? o.flip : void 0,
1219
1219
  ...typeof o.flip == "object" ? o.flip : {}
1220
- })), (o.shift === !0 || typeof o.shift == "number" || typeof o.shift == "object") && r.push(pn({
1220
+ })), (o.shift === !0 || typeof o.shift == "number" || typeof o.shift == "object") && r.push(hn({
1221
1221
  padding: typeof o.shift == "number" ? o.shift : void 0,
1222
1222
  ...typeof o.shift == "object" ? o.shift : {}
1223
- })), (o.autoPlacement === !0 || typeof o.autoPlacement == "object") && r.push(mn(
1223
+ })), (o.autoPlacement === !0 || typeof o.autoPlacement == "object") && r.push(pn(
1224
1224
  typeof o.autoPlacement == "object" ? o.autoPlacement : void 0
1225
1225
  )), r.push(...typeof o.middleware == "function" ? o.middleware({
1226
1226
  referenceEl: t,
1227
1227
  floatingEl: n
1228
- }) : o.middleware || []), (o.arrow === !0 || typeof o.arrow == "number") && r.push(Cn({
1228
+ }) : o.middleware || []), (o.arrow === !0 || typeof o.arrow == "number") && r.push(An({
1229
1229
  element: i,
1230
1230
  padding: o.arrow === !0 ? 0 : o.arrow
1231
1231
  })), (o.hide === !0 || typeof o.hide == "object" || Array.isArray(o.hide)) && (Array.isArray(o.hide) ? o.hide : [o.hide]).forEach((s) => {
1232
- r.push(gn(
1232
+ r.push(vn(
1233
1233
  typeof s == "object" ? s : void 0
1234
1234
  ));
1235
1235
  }), e.value = r;
1236
1236
  }, { immediate: !0 });
1237
1237
  }
1238
- function Bn(e, t, n) {
1238
+ function Dn(e, t, n) {
1239
1239
  let i = () => {
1240
1240
  };
1241
- Ve(() => {
1242
- if (e && Re.isClient && typeof ResizeObserver < "u" && t.value && t.value instanceof Element) {
1241
+ Ie(() => {
1242
+ if (e && Se.isClient && typeof ResizeObserver < "u" && t.value && t.value instanceof Element) {
1243
1243
  const o = new ResizeObserver(([r]) => {
1244
1244
  n.value = r.borderBoxSize.reduce((s, { inlineSize: l }) => s + l, 0);
1245
1245
  });
@@ -1251,7 +1251,7 @@ function Bn(e, t, n) {
1251
1251
  i();
1252
1252
  });
1253
1253
  }
1254
- const Dn = (e) => {
1254
+ const Nn = (e) => {
1255
1255
  switch (e) {
1256
1256
  case "top":
1257
1257
  return "origin-bottom";
@@ -1277,14 +1277,14 @@ const Dn = (e) => {
1277
1277
  return "origin-center";
1278
1278
  }
1279
1279
  };
1280
- function Nn(e, t) {
1280
+ function $n(e, t) {
1281
1281
  const n = P(() => {
1282
1282
  if (typeof e.originClass == "function")
1283
1283
  return e.originClass(t.value);
1284
1284
  if (typeof e.originClass == "string")
1285
1285
  return e.originClass;
1286
1286
  if (e.tailwindcssOriginClass)
1287
- return Dn(t.value);
1287
+ return Nn(t.value);
1288
1288
  }), i = P(
1289
1289
  () => e.enter || n.value ? `${e.enter || ""} ${n.value || ""}` : void 0
1290
1290
  ), o = P(
@@ -1318,9 +1318,9 @@ const We = [
1318
1318
  (e) => `${e}:not([tabindex='-1'])`
1319
1319
  ).join(",");
1320
1320
  var rt = /* @__PURE__ */ ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(rt || {});
1321
- function $n(e, t = 0) {
1321
+ function kn(e, t = 0) {
1322
1322
  var n;
1323
- return e === ((n = Pn(e)) == null ? void 0 : n.body) ? !1 : it(t, {
1323
+ return e === ((n = Ln(e)) == null ? void 0 : n.body) ? !1 : it(t, {
1324
1324
  0() {
1325
1325
  return e.matches(We);
1326
1326
  },
@@ -1336,11 +1336,11 @@ function $n(e, t = 0) {
1336
1336
  });
1337
1337
  }
1338
1338
  function we(e, t, n) {
1339
- Re.isServer || dt((i) => {
1339
+ Se.isServer || dt((i) => {
1340
1340
  document.addEventListener(e, t, n), i(() => document.removeEventListener(e, t, n));
1341
1341
  });
1342
1342
  }
1343
- function kn(e, t, n = P(() => !0)) {
1343
+ function Mn(e, t, n = P(() => !0)) {
1344
1344
  function i(r, s) {
1345
1345
  if (!n.value || r.defaultPrevented)
1346
1346
  return;
@@ -1357,7 +1357,7 @@ function kn(e, t, n = P(() => !0)) {
1357
1357
  if (u != null && u.contains(l) || r.composed && r.composedPath().includes(u))
1358
1358
  return;
1359
1359
  }
1360
- return !$n(l, rt.Loose) && l.tabIndex !== -1 && r.preventDefault(), t(r, l);
1360
+ return !kn(l, rt.Loose) && l.tabIndex !== -1 && r.preventDefault(), t(r, l);
1361
1361
  }
1362
1362
  const o = E(null);
1363
1363
  we("mousedown", (r) => {
@@ -1374,7 +1374,7 @@ function kn(e, t, n = P(() => !0)) {
1374
1374
  () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null
1375
1375
  ), !0);
1376
1376
  }
1377
- const Mn = Symbol("ArrowContext"), x = {
1377
+ const jn = Symbol("ArrowContext"), x = {
1378
1378
  as: {
1379
1379
  type: [String, Function],
1380
1380
  default: "template"
@@ -1468,11 +1468,11 @@ const Mn = Symbol("ArrowContext"), x = {
1468
1468
  default: () => []
1469
1469
  }
1470
1470
  };
1471
- function jn(e, t, n, i) {
1471
+ function Hn(e, t, n, i) {
1472
1472
  const { floatingRef: o, props: r, mounted: s, show: l, referenceHidden: f, escaped: c, placement: u, floatingStyles: d, referenceElWidth: g, updateFloating: m } = i, a = pe(
1473
1473
  { ...r, as: r.floatingAs },
1474
1474
  t
1475
- ), { enterActiveClassRef: h, leaveActiveClassRef: v } = Nn(a, u), w = {
1475
+ ), { enterActiveClassRef: h, leaveActiveClassRef: v } = $n(a, u), w = {
1476
1476
  show: s.value ? a.show : !1,
1477
1477
  enter: h.value,
1478
1478
  enterFrom: a.enterFrom,
@@ -1539,8 +1539,8 @@ function jn(e, t, n, i) {
1539
1539
  b,
1540
1540
  n,
1541
1541
  a.dialog ? {} : { ref: o }
1542
- ) : null, R = vt(e, L);
1543
- return ((T = e.props) == null ? void 0 : T.unmount) === !1 ? (m(), R) : a.vueTransition && a.show === !1 ? he() : R;
1542
+ ) : null, S = vt(e, L);
1543
+ return ((T = e.props) == null ? void 0 : T.unmount) === !1 ? (m(), S) : a.vueTransition && a.show === !1 ? he() : S;
1544
1544
  }
1545
1545
  return s.value ? a.vueTransition ? ne(pt, {
1546
1546
  ...a.dialog ? { ref: o } : {},
@@ -1558,10 +1558,10 @@ function jn(e, t, n, i) {
1558
1558
  )
1559
1559
  );
1560
1560
  }
1561
- function Hn(e, t, n, i, o) {
1561
+ function Wn(e, t, n, i, o) {
1562
1562
  const r = E(!1), s = Ee(i, "placement"), l = Ee(i, "strategy"), f = _e({}), c = E(void 0), u = E(void 0), d = E(null), g = E(void 0), m = E(void 0), a = P(() => re(t)), h = P(() => re(n)), v = P(
1563
1563
  () => He(a) && He(h)
1564
- ), { placement: w, middlewareData: y, isPositioned: b, floatingStyles: C, update: A } = An(a, h, {
1564
+ ), { placement: w, middlewareData: y, isPositioned: b, floatingStyles: C, update: A } = On(a, h, {
1565
1565
  placement: s,
1566
1566
  strategy: l,
1567
1567
  middleware: f,
@@ -1569,29 +1569,29 @@ function Hn(e, t, n, i, o) {
1569
1569
  whileElementsMounted: i.dialog ? () => () => {
1570
1570
  } : void 0
1571
1571
  }), O = E(null);
1572
- Ve(() => {
1572
+ Ie(() => {
1573
1573
  r.value = !0;
1574
- }), k(e, (S, D) => {
1575
- S && !D ? o("show") : !S && D && o("hide");
1574
+ }), k(e, (R, D) => {
1575
+ R && !D ? o("show") : !R && D && o("hide");
1576
1576
  }, { immediate: !0 });
1577
1577
  function p() {
1578
1578
  v.value && (A(), o("update"));
1579
1579
  }
1580
- k([s, l, f], p, { flush: "sync" }), Fn(
1580
+ k([s, l, f], p, { flush: "sync" }), Bn(
1581
1581
  f,
1582
1582
  a,
1583
1583
  h,
1584
1584
  d,
1585
1585
  i
1586
1586
  ), k([y, () => i.hide, b], () => {
1587
- var S, D;
1588
- (i.hide === !0 || typeof i.hide == "object" || Array.isArray(i.hide)) && (c.value = ((S = y.value.hide) == null ? void 0 : S.referenceHidden) || !b.value, u.value = (D = y.value.hide) == null ? void 0 : D.escaped);
1587
+ var R, D;
1588
+ (i.hide === !0 || typeof i.hide == "object" || Array.isArray(i.hide)) && (c.value = ((R = y.value.hide) == null ? void 0 : R.referenceHidden) || !b.value, u.value = (D = y.value.hide) == null ? void 0 : D.escaped);
1589
1589
  }), k(y, () => {
1590
- const S = y.value.arrow;
1591
- g.value = S == null ? void 0 : S.x, m.value = S == null ? void 0 : S.y;
1592
- }), Bn(!!i.adaptiveWidth, a, O), k([e, v], async (S, D, F) => {
1590
+ const R = y.value.arrow;
1591
+ g.value = R == null ? void 0 : R.x, m.value = R == null ? void 0 : R.y;
1592
+ }), Dn(!!i.adaptiveWidth, a, O), k([e, v], async (R, D, F) => {
1593
1593
  if (await ct(), e.value && v.value && i.autoUpdate) {
1594
- const $ = un(
1594
+ const $ = dn(
1595
1595
  a.value,
1596
1596
  h.value,
1597
1597
  p,
@@ -1609,7 +1609,7 @@ function Hn(e, t, n, i, o) {
1609
1609
  const L = {
1610
1610
  referenceRef: t,
1611
1611
  placement: w
1612
- }, R = {
1612
+ }, S = {
1613
1613
  floatingRef: n,
1614
1614
  props: i,
1615
1615
  mounted: r,
@@ -1626,12 +1626,12 @@ function Hn(e, t, n, i, o) {
1626
1626
  x: g,
1627
1627
  y: m
1628
1628
  };
1629
- return ft(Mn, B), { referenceApi: L, floatingApi: R, arrowApi: B, placement: w, referenceEl: a, floatingEl: h, middlewareData: y, update: p };
1629
+ return ft(jn, B), { referenceApi: L, floatingApi: S, arrowApi: B, placement: w, referenceEl: a, floatingEl: h, middlewareData: y, update: p };
1630
1630
  }
1631
1631
  ({
1632
1632
  ...x.as
1633
1633
  });
1634
- const Wn = {
1634
+ const _n = {
1635
1635
  as: x.as,
1636
1636
  show: x.show,
1637
1637
  placement: x.placement,
@@ -1657,14 +1657,14 @@ const Wn = {
1657
1657
  portal: x.portal,
1658
1658
  transform: x.transform,
1659
1659
  middleware: x.middleware
1660
- }, _n = {
1660
+ }, zn = {
1661
1661
  name: "FloatVirtual",
1662
1662
  inheritAttrs: !1,
1663
- props: Wn,
1663
+ props: _n,
1664
1664
  emits: ["initial", "show", "hide", "update"],
1665
1665
  setup(e, { emit: t, slots: n, attrs: i }) {
1666
1666
  var u;
1667
- Ln("FloatVirtual", e);
1667
+ Fn("FloatVirtual", e);
1668
1668
  const o = E((u = e.show) != null ? u : !1), r = E({
1669
1669
  getBoundingClientRect() {
1670
1670
  return {
@@ -1681,7 +1681,7 @@ const Wn = {
1681
1681
  }), s = E(null), {
1682
1682
  floatingApi: l,
1683
1683
  placement: f
1684
- } = Hn(o, r, s, e, t);
1684
+ } = Wn(o, r, s, e, t);
1685
1685
  k(() => e.show, () => {
1686
1686
  var d;
1687
1687
  o.value = (d = e.show) != null ? d : !1;
@@ -1700,8 +1700,8 @@ const Wn = {
1700
1700
  const d = {
1701
1701
  placement: f.value,
1702
1702
  close: c
1703
- }, [g] = ot(n.default(d)).filter(Rn);
1704
- return jn(
1703
+ }, [g] = ot(n.default(d)).filter(En);
1704
+ return Hn(
1705
1705
  g,
1706
1706
  {
1707
1707
  as: e.as,
@@ -1716,14 +1716,15 @@ const Wn = {
1716
1716
  x.as, x.placement, x.strategy, x.offset, x.shift, {
1717
1717
  ...x.flip
1718
1718
  }, x.arrow, x.autoPlacement, x.autoUpdate, x.zIndex, x.vueTransition, x.transitionName, x.transitionType, x.enter, x.enterFrom, x.enterTo, x.leave, x.leaveFrom, x.leaveTo, x.originClass, x.tailwindcssOriginClass, x.transform, x.middleware;
1719
- const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onClick"], Un = /* @__PURE__ */ wt({
1719
+ const In = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onClick"], Yn = /* @__PURE__ */ wt({
1720
1720
  __name: "StylePanel",
1721
1721
  setup(e) {
1722
- const t = E({ value: null }), n = yt(), i = P(
1722
+ yt({ WATCH_ARRAY: !1 });
1723
+ const t = E({ value: null }), n = xt(), i = P(
1723
1724
  () => n.getters.onContentChange || (() => {
1724
1725
  })
1725
1726
  ), o = P(
1726
- () => xt(n.getters.diagramElement) + bt
1727
+ () => bt(n.getters.diagramElement) + Ct
1727
1728
  ), r = P(() => n.getters.code), s = (d) => {
1728
1729
  n.dispatch("updateCode", { code: d }), i.value(d);
1729
1730
  }, l = E([]);
@@ -1732,14 +1733,14 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1732
1733
  let a, h, v, w, y, b;
1733
1734
  n.commit("onMessageClick", (C, A) => {
1734
1735
  var O;
1735
- if (a = C.value.start.start, h = Et(r.value, a), v = Pt(r.value, a), w = ((O = r.value.slice(h).match(/^\s*/)) == null ? void 0 : O[0]) || "", y = v.trim().startsWith("//"), y) {
1736
+ if (a = C.value.start.start, h = Pt(r.value, a), v = Lt(r.value, a), w = ((O = r.value.slice(h).match(/^\s*/)) == null ? void 0 : O[0]) || "", y = v.trim().startsWith("//"), y) {
1736
1737
  const p = v.trimStart().slice(2).trimStart(), T = p.indexOf("["), L = p.indexOf("]");
1737
- b = Boolean(T === 0 && L), b ? l.value = p.slice(T + 1, L).split(",").map((R) => R.trim()) : l.value = [];
1738
+ b = Boolean(T === 0 && L), b ? l.value = p.slice(T + 1, L).split(",").map((S) => S.trim()) : l.value = [];
1738
1739
  }
1739
1740
  g.value = {
1740
1741
  getBoundingClientRect: () => A.getBoundingClientRect()
1741
1742
  }, t.value = C, d.value = !0;
1742
- }), kn(
1743
+ }), Mn(
1743
1744
  m,
1744
1745
  () => {
1745
1746
  d.value = !1, l.value = [];
@@ -1758,7 +1759,7 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1758
1759
  O.endsWith(`
1759
1760
  `) || (O += `
1760
1761
  `), s(
1761
- r.value.slice(0, Lt(r.value, a)) + O + r.value.slice(h)
1762
+ r.value.slice(0, Ft(r.value, a)) + O + r.value.slice(h)
1762
1763
  );
1763
1764
  } else
1764
1765
  s(
@@ -1788,7 +1789,7 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1788
1789
  class: "line-through"
1789
1790
  }
1790
1791
  ];
1791
- return (d, g) => (Pe(), Ct(H(_n), {
1792
+ return (d, g) => (Pe(), At(H(zn), {
1792
1793
  "vue-transition": "",
1793
1794
  id: "style-panel",
1794
1795
  key: "tool",
@@ -1799,9 +1800,9 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1799
1800
  shift: "",
1800
1801
  zIndex: "30"
1801
1802
  }, {
1802
- default: At(() => [
1803
- ge("div", zn, [
1804
- (Pe(), Ot(ze, null, Tt(u, (m) => ge("div", {
1803
+ default: Ot(() => [
1804
+ ge("div", In, [
1805
+ (Pe(), Tt(ze, null, Rt(u, (m) => ge("div", {
1805
1806
  onClick: () => H(f)(m.class),
1806
1807
  key: m.name
1807
1808
  }, [
@@ -1810,7 +1811,7 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1810
1811
  m.class,
1811
1812
  { "bg-gray-100": l.value.includes(m.class) }
1812
1813
  ]])
1813
- }, Rt(m.content), 3)
1814
+ }, Et(m.content), 3)
1814
1815
  ], 8, Vn)), 64))
1815
1816
  ])
1816
1817
  ], void 0, !0),
@@ -1819,6 +1820,6 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1819
1820
  }
1820
1821
  });
1821
1822
  export {
1822
- Un as default
1823
+ Yn as default
1823
1824
  };
1824
- //# sourceMappingURL=StylePanel.bd682c91.js.map
1825
+ //# sourceMappingURL=StylePanel.d2a9b51a.js.map