@zenuml/core 3.23.26 → 3.23.28
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.
- package/Integration/vanilla-js/index.html +6 -6
- package/README.md +1 -1
- package/dist/{StylePanel.b28a5986.js → StylePanel.405afa50.js} +353 -343
- package/dist/{close.16d48e4c.js → close.9139b823.js} +3 -3
- package/dist/{collapse-expanded.3d86dea1.js → collapse-expanded.e8b6a391.js} +3 -3
- package/dist/{collapse-unexpanded.50b3e837.js → collapse-unexpanded.cea3fc8e.js} +3 -3
- package/dist/{core.efdaff94.js → core.fd2607b2.js} +10525 -15654
- package/dist/{debug.93ce36ce.js → debug.3cdb52ce.js} +3 -3
- package/dist/{message-arrow.cdc73f2a.js → message-arrow.6b864af0.js} +3 -3
- package/dist/{non-selected-cycle.64f807d8.js → non-selected-cycle.ab408e04.js} +3 -3
- package/dist/{numbering.0d539e38.js → numbering.2c89edd7.js} +3 -3
- package/dist/{privacy.bdf66b73.js → privacy.1f2ba779.js} +3 -3
- package/dist/{selected-cycle.292fed44.js → selected-cycle.bd01d425.js} +3 -3
- package/dist/{theme.81695999.js → theme.f155c91b.js} +3 -3
- package/dist/{tip.7d60eb1d.js → tip.09567e05.js} +3 -3
- package/dist/zenuml.esm.mjs +2 -2
- package/dist/zenuml.js +458 -483
- package/dist/{zoom-in.ea503b4f.js → zoom-in.3b8883e9.js} +3 -3
- package/dist/{zoom-out.73562e08.js → zoom-out.0df76b14.js} +3 -3
- package/package.json +5 -5
- package/pnpm-lock.yaml +254 -170
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { b as P, u as
|
|
2
|
-
const
|
|
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.fd2607b2.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) => ({
|
|
3
3
|
x: e,
|
|
4
4
|
y: e
|
|
5
|
-
}),
|
|
5
|
+
}), Ft = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, Bt = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return q(e,
|
|
14
|
+
function ye(e, t, n) {
|
|
15
|
+
return q(e, Z(t, n));
|
|
16
16
|
}
|
|
17
17
|
function K(e, t) {
|
|
18
18
|
return typeof e == "function" ? e(t) : e;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function I(e) {
|
|
21
21
|
return e.split("-")[0];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function W(e) {
|
|
24
24
|
return e.split("-")[1];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ue(e) {
|
|
27
27
|
return e === "x" ? "y" : "x";
|
|
28
28
|
}
|
|
29
29
|
function be(e) {
|
|
30
30
|
return e === "y" ? "height" : "width";
|
|
31
31
|
}
|
|
32
32
|
function de(e) {
|
|
33
|
-
return ["top", "bottom"].includes(
|
|
33
|
+
return ["top", "bottom"].includes(I(e)) ? "y" : "x";
|
|
34
34
|
}
|
|
35
35
|
function Ce(e) {
|
|
36
|
-
return
|
|
36
|
+
return Ue(de(e));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Xe(e, t, n) {
|
|
39
39
|
n === void 0 && (n = !1);
|
|
40
|
-
const i =
|
|
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
|
|
44
|
+
function Dt(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) =>
|
|
49
|
+
return e.replace(/start|end/g, (t) => Bt[t]);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Nt(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 Dt(e, t, n) {
|
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const o =
|
|
66
|
-
let r =
|
|
64
|
+
function $t(e, t, n, i) {
|
|
65
|
+
const o = W(e);
|
|
66
|
+
let r = Nt(I(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) =>
|
|
70
|
+
return e.replace(/left|right|bottom|top/g, (t) => Ft[t]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function kt(e) {
|
|
73
73
|
return {
|
|
74
74
|
top: 0,
|
|
75
75
|
right: 0,
|
|
@@ -78,8 +78,8 @@ function Nt(e) {
|
|
|
78
78
|
...e
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof e != "number" ?
|
|
81
|
+
function Ye(e) {
|
|
82
|
+
return typeof e != "number" ? kt(e) : {
|
|
83
83
|
top: e,
|
|
84
84
|
right: e,
|
|
85
85
|
bottom: e,
|
|
@@ -104,12 +104,12 @@ function ue(e) {
|
|
|
104
104
|
y: n
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Be(e, t, n) {
|
|
108
108
|
let {
|
|
109
109
|
reference: i,
|
|
110
110
|
floating: o
|
|
111
111
|
} = e;
|
|
112
|
-
const r = de(t), s = Ce(t), l = be(s), f =
|
|
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;
|
|
113
113
|
let m;
|
|
114
114
|
switch (f) {
|
|
115
115
|
case "top":
|
|
@@ -142,7 +142,7 @@ function De(e, t, n) {
|
|
|
142
142
|
y: i.y
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
switch (
|
|
145
|
+
switch (W(t)) {
|
|
146
146
|
case "start":
|
|
147
147
|
m[s] -= g * (n && c ? -1 : 1);
|
|
148
148
|
break;
|
|
@@ -152,7 +152,7 @@ function De(e, t, n) {
|
|
|
152
152
|
}
|
|
153
153
|
return m;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Mt = async (e, t, n) => {
|
|
156
156
|
const {
|
|
157
157
|
placement: i = "bottom",
|
|
158
158
|
strategy: o = "absolute",
|
|
@@ -166,17 +166,17 @@ const $t = async (e, t, n) => {
|
|
|
166
166
|
}), {
|
|
167
167
|
x: u,
|
|
168
168
|
y: d
|
|
169
|
-
} =
|
|
169
|
+
} = Be(c, i, f), g = i, m = {}, a = 0;
|
|
170
170
|
for (let h = 0; h < l.length; h++) {
|
|
171
171
|
const {
|
|
172
172
|
name: v,
|
|
173
|
-
fn:
|
|
173
|
+
fn: w
|
|
174
174
|
} = l[h], {
|
|
175
|
-
x:
|
|
175
|
+
x: y,
|
|
176
176
|
y: b,
|
|
177
177
|
data: C,
|
|
178
178
|
reset: A
|
|
179
|
-
} = await
|
|
179
|
+
} = await w({
|
|
180
180
|
x: u,
|
|
181
181
|
y: d,
|
|
182
182
|
initialPlacement: i,
|
|
@@ -190,7 +190,7 @@ const $t = async (e, t, n) => {
|
|
|
190
190
|
floating: t
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
u =
|
|
193
|
+
u = y != null ? y : u, d = b != null ? b : d, m = {
|
|
194
194
|
...m,
|
|
195
195
|
[v]: {
|
|
196
196
|
...m[v],
|
|
@@ -203,7 +203,7 @@ const $t = async (e, t, n) => {
|
|
|
203
203
|
}) : A.rects), {
|
|
204
204
|
x: u,
|
|
205
205
|
y: d
|
|
206
|
-
} =
|
|
206
|
+
} = Be(c, g, f)), h = -1);
|
|
207
207
|
}
|
|
208
208
|
return {
|
|
209
209
|
x: u,
|
|
@@ -229,12 +229,12 @@ 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 =
|
|
232
|
+
} = K(t, e), a = Ye(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,
|
|
236
236
|
strategy: f
|
|
237
|
-
})),
|
|
237
|
+
})), y = d === "floating" ? {
|
|
238
238
|
x: i,
|
|
239
239
|
y: o,
|
|
240
240
|
width: s.floating.width,
|
|
@@ -247,18 +247,18 @@ async function oe(e, t) {
|
|
|
247
247
|
y: 1
|
|
248
248
|
}, A = ue(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
249
249
|
elements: l,
|
|
250
|
-
rect:
|
|
250
|
+
rect: y,
|
|
251
251
|
offsetParent: b,
|
|
252
252
|
strategy: f
|
|
253
|
-
}) :
|
|
253
|
+
}) : y);
|
|
254
254
|
return {
|
|
255
|
-
top: (
|
|
256
|
-
bottom: (A.bottom -
|
|
257
|
-
left: (
|
|
258
|
-
right: (A.right -
|
|
255
|
+
top: (w.top - A.top + a.top) / C.y,
|
|
256
|
+
bottom: (A.bottom - w.bottom + a.bottom) / C.y,
|
|
257
|
+
left: (w.left - A.left + a.left) / C.x,
|
|
258
|
+
right: (A.right - w.right + a.right) / C.x
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const jt = (e) => ({
|
|
262
262
|
name: "arrow",
|
|
263
263
|
options: e,
|
|
264
264
|
async fn(t) {
|
|
@@ -276,30 +276,30 @@ const Mt = (e) => ({
|
|
|
276
276
|
} = K(e, t) || {};
|
|
277
277
|
if (c == null)
|
|
278
278
|
return {};
|
|
279
|
-
const d =
|
|
279
|
+
const d = Ye(u), g = {
|
|
280
280
|
x: n,
|
|
281
281
|
y: i
|
|
282
|
-
}, m = Ce(o), a = be(m), h = await s.getDimensions(c), v = m === "y",
|
|
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 =
|
|
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;
|
|
286
286
|
return {
|
|
287
|
-
[m]: g[m] +
|
|
287
|
+
[m]: g[m] + V,
|
|
288
288
|
data: {
|
|
289
|
-
[m]:
|
|
290
|
-
centerOffset: F -
|
|
289
|
+
[m]: $,
|
|
290
|
+
centerOffset: F - $ - V,
|
|
291
291
|
...j && {
|
|
292
|
-
alignmentOffset:
|
|
292
|
+
alignmentOffset: V
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
295
|
reset: j
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
|
-
function
|
|
300
|
-
return (e ? [...n.filter((o) =>
|
|
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);
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const Wt = function(e) {
|
|
303
303
|
return e === void 0 && (e = {}), {
|
|
304
304
|
name: "autoPlacement",
|
|
305
305
|
options: e,
|
|
@@ -314,27 +314,27 @@ const Ht = function(e) {
|
|
|
314
314
|
} = t, {
|
|
315
315
|
crossAxis: u = !1,
|
|
316
316
|
alignment: d,
|
|
317
|
-
allowedPlacements: g =
|
|
317
|
+
allowedPlacements: g = Fe,
|
|
318
318
|
autoAlignment: m = !0,
|
|
319
319
|
...a
|
|
320
|
-
} = K(e, t), h = d !== void 0 || g ===
|
|
321
|
-
if (
|
|
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];
|
|
321
|
+
if (y == null)
|
|
322
322
|
return {};
|
|
323
|
-
const b =
|
|
324
|
-
if (l !==
|
|
323
|
+
const b = Xe(y, r, await (f.isRTL == null ? void 0 : f.isRTL(c.floating)));
|
|
324
|
+
if (l !== y)
|
|
325
325
|
return {
|
|
326
326
|
reset: {
|
|
327
327
|
placement: h[0]
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
const C = [v[
|
|
331
|
-
placement:
|
|
330
|
+
const C = [v[I(y)], v[b[0]], v[b[1]]], A = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
331
|
+
placement: y,
|
|
332
332
|
overflows: C
|
|
333
|
-
}], O = h[
|
|
333
|
+
}], O = h[w + 1];
|
|
334
334
|
if (O)
|
|
335
335
|
return {
|
|
336
336
|
data: {
|
|
337
|
-
index:
|
|
337
|
+
index: w + 1,
|
|
338
338
|
overflows: A
|
|
339
339
|
},
|
|
340
340
|
reset: {
|
|
@@ -342,15 +342,15 @@ const Ht = function(e) {
|
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
const p = A.map((R) => {
|
|
345
|
-
const B =
|
|
345
|
+
const B = W(R.placement);
|
|
346
346
|
return [R.placement, B && u ? R.overflows.slice(0, 2).reduce((S, D) => S + D, 0) : R.overflows[0], R.overflows];
|
|
347
347
|
}).sort((R, B) => R[1] - B[1]), L = ((o = p.filter((R) => R[2].slice(
|
|
348
348
|
0,
|
|
349
|
-
|
|
349
|
+
W(R[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: {
|
|
353
|
-
index:
|
|
353
|
+
index: w + 1,
|
|
354
354
|
overflows: A
|
|
355
355
|
},
|
|
356
356
|
reset: {
|
|
@@ -359,7 +359,7 @@ const Ht = function(e) {
|
|
|
359
359
|
} : {};
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
-
},
|
|
362
|
+
}, _t = function(e) {
|
|
363
363
|
return e === void 0 && (e = {}), {
|
|
364
364
|
name: "flip",
|
|
365
365
|
options: e,
|
|
@@ -383,12 +383,12 @@ const Ht = function(e) {
|
|
|
383
383
|
} = K(e, t);
|
|
384
384
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
385
385
|
return {};
|
|
386
|
-
const
|
|
387
|
-
!g && a !== "none" && C.push(
|
|
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));
|
|
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
|
-
if (u && p.push(O[
|
|
391
|
-
const S =
|
|
390
|
+
if (u && p.push(O[w]), d) {
|
|
391
|
+
const S = Xe(o, s, b);
|
|
392
392
|
p.push(O[S[0]], O[S[1]]);
|
|
393
393
|
}
|
|
394
394
|
if (T = [...T, {
|
|
@@ -407,13 +407,13 @@ const Ht = function(e) {
|
|
|
407
407
|
placement: D
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
let F = (R = T.filter((
|
|
410
|
+
let F = (R = T.filter(($) => $.overflows[0] <= 0).sort(($, j) => $.overflows[1] - j.overflows[1])[0]) == null ? void 0 : R.placement;
|
|
411
411
|
if (!F)
|
|
412
412
|
switch (m) {
|
|
413
413
|
case "bestFit": {
|
|
414
414
|
var B;
|
|
415
|
-
const
|
|
416
|
-
|
|
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];
|
|
416
|
+
$ && (F = $);
|
|
417
417
|
break;
|
|
418
418
|
}
|
|
419
419
|
case "initialPlacement":
|
|
@@ -431,7 +431,7 @@ const Ht = function(e) {
|
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
433
|
};
|
|
434
|
-
function
|
|
434
|
+
function De(e, t) {
|
|
435
435
|
return {
|
|
436
436
|
top: e.top - t.height,
|
|
437
437
|
right: e.right - t.width,
|
|
@@ -440,9 +440,9 @@ function ke(e, t) {
|
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
function Ne(e) {
|
|
443
|
-
return
|
|
443
|
+
return Ie.some((t) => e[t] >= 0);
|
|
444
444
|
}
|
|
445
|
-
const
|
|
445
|
+
const zt = function(e) {
|
|
446
446
|
return e === void 0 && (e = {}), {
|
|
447
447
|
name: "hide",
|
|
448
448
|
options: e,
|
|
@@ -458,7 +458,7 @@ const _t = function(e) {
|
|
|
458
458
|
const r = await oe(t, {
|
|
459
459
|
...o,
|
|
460
460
|
elementContext: "reference"
|
|
461
|
-
}), s =
|
|
461
|
+
}), s = De(r, n.reference);
|
|
462
462
|
return {
|
|
463
463
|
data: {
|
|
464
464
|
referenceHiddenOffsets: s,
|
|
@@ -470,7 +470,7 @@ const _t = function(e) {
|
|
|
470
470
|
const r = await oe(t, {
|
|
471
471
|
...o,
|
|
472
472
|
altBoundary: !0
|
|
473
|
-
}), s =
|
|
473
|
+
}), s = De(r, n.floating);
|
|
474
474
|
return {
|
|
475
475
|
data: {
|
|
476
476
|
escapedOffsets: s,
|
|
@@ -484,12 +484,12 @@ const _t = function(e) {
|
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
};
|
|
487
|
-
async function
|
|
487
|
+
async function Vt(e, t) {
|
|
488
488
|
const {
|
|
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 =
|
|
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);
|
|
493
493
|
let {
|
|
494
494
|
mainAxis: g,
|
|
495
495
|
crossAxis: m,
|
|
@@ -523,7 +523,7 @@ const It = function(e) {
|
|
|
523
523
|
y: r,
|
|
524
524
|
placement: s,
|
|
525
525
|
middlewareData: l
|
|
526
|
-
} = t, f = await
|
|
526
|
+
} = t, f = await Vt(t, e);
|
|
527
527
|
return s === ((n = l.offset) == null ? void 0 : n.placement) && (i = l.arrow) != null && i.alignmentOffset ? {} : {
|
|
528
528
|
x: o + f.x,
|
|
529
529
|
y: r + f.y,
|
|
@@ -534,7 +534,7 @@ const It = function(e) {
|
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
|
-
},
|
|
537
|
+
}, Ut = function(e) {
|
|
538
538
|
return e === void 0 && (e = {}), {
|
|
539
539
|
name: "shift",
|
|
540
540
|
options: e,
|
|
@@ -549,12 +549,12 @@ const It = function(e) {
|
|
|
549
549
|
limiter: l = {
|
|
550
550
|
fn: (v) => {
|
|
551
551
|
let {
|
|
552
|
-
x:
|
|
553
|
-
y
|
|
552
|
+
x: w,
|
|
553
|
+
y
|
|
554
554
|
} = v;
|
|
555
555
|
return {
|
|
556
|
-
x:
|
|
557
|
-
y
|
|
556
|
+
x: w,
|
|
557
|
+
y
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
560
|
},
|
|
@@ -562,15 +562,15 @@ 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(
|
|
565
|
+
}, u = await oe(t, f), d = de(I(o)), g = Ue(d);
|
|
566
566
|
let m = c[g], a = c[d];
|
|
567
567
|
if (r) {
|
|
568
|
-
const v = g === "y" ? "top" : "left",
|
|
569
|
-
m =
|
|
568
|
+
const v = g === "y" ? "top" : "left", w = g === "y" ? "bottom" : "right", y = m + u[v], b = m - u[w];
|
|
569
|
+
m = ye(y, m, b);
|
|
570
570
|
}
|
|
571
571
|
if (s) {
|
|
572
|
-
const v = d === "y" ? "top" : "left",
|
|
573
|
-
a =
|
|
572
|
+
const v = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", y = a + u[v], b = a - u[w];
|
|
573
|
+
a = ye(y, a, b);
|
|
574
574
|
}
|
|
575
575
|
const h = l.fn({
|
|
576
576
|
...t,
|
|
@@ -587,28 +587,28 @@ const It = function(e) {
|
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
589
|
};
|
|
590
|
-
function
|
|
591
|
-
return
|
|
590
|
+
function te(e) {
|
|
591
|
+
return qe(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function N(e) {
|
|
594
594
|
var t;
|
|
595
595
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
596
596
|
}
|
|
597
597
|
function U(e) {
|
|
598
598
|
var t;
|
|
599
|
-
return (t = (
|
|
599
|
+
return (t = (qe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return e instanceof Node || e instanceof
|
|
603
|
-
}
|
|
604
|
-
function W(e) {
|
|
605
|
-
return e instanceof Element || e instanceof k(e).Element;
|
|
601
|
+
function qe(e) {
|
|
602
|
+
return e instanceof Node || e instanceof N(e).Node;
|
|
606
603
|
}
|
|
607
604
|
function _(e) {
|
|
608
|
-
return e instanceof
|
|
605
|
+
return e instanceof Element || e instanceof N(e).Element;
|
|
606
|
+
}
|
|
607
|
+
function z(e) {
|
|
608
|
+
return e instanceof HTMLElement || e instanceof N(e).HTMLElement;
|
|
609
609
|
}
|
|
610
610
|
function $e(e) {
|
|
611
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
611
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof N(e).ShadowRoot;
|
|
612
612
|
}
|
|
613
613
|
function se(e) {
|
|
614
614
|
const {
|
|
@@ -619,33 +619,33 @@ function se(e) {
|
|
|
619
619
|
} = M(e);
|
|
620
620
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !["inline", "contents"].includes(o);
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return ["table", "td", "th"].includes(
|
|
622
|
+
function Xt(e) {
|
|
623
|
+
return ["table", "td", "th"].includes(te(e));
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
const t =
|
|
625
|
+
function Ae(e) {
|
|
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
|
|
629
|
+
function Yt(e) {
|
|
630
630
|
let t = Y(e);
|
|
631
|
-
for (;
|
|
632
|
-
if (
|
|
631
|
+
for (; z(t) && !ee(t); ) {
|
|
632
|
+
if (Ae(t))
|
|
633
633
|
return t;
|
|
634
634
|
t = Y(t);
|
|
635
635
|
}
|
|
636
636
|
return null;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Oe() {
|
|
639
639
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return ["html", "body", "#document"].includes(
|
|
641
|
+
function ee(e) {
|
|
642
|
+
return ["html", "body", "#document"].includes(te(e));
|
|
643
643
|
}
|
|
644
644
|
function M(e) {
|
|
645
|
-
return
|
|
645
|
+
return N(e).getComputedStyle(e);
|
|
646
646
|
}
|
|
647
647
|
function me(e) {
|
|
648
|
-
return
|
|
648
|
+
return _(e) ? {
|
|
649
649
|
scrollLeft: e.scrollLeft,
|
|
650
650
|
scrollTop: e.scrollTop
|
|
651
651
|
} : {
|
|
@@ -654,37 +654,37 @@ function me(e) {
|
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
656
|
function Y(e) {
|
|
657
|
-
if (
|
|
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
663
|
const t = Y(e);
|
|
664
|
-
return
|
|
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) {
|
|
667
667
|
var i;
|
|
668
668
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
669
|
-
const o = Ge(e), r = o === ((i = e.ownerDocument) == null ? void 0 : i.body), s =
|
|
669
|
+
const o = Ge(e), r = o === ((i = e.ownerDocument) == null ? void 0 : i.body), s = N(o);
|
|
670
670
|
return r ? t.concat(s, s.visualViewport || [], se(o) ? o : [], s.frameElement && n ? ie(s.frameElement) : []) : t.concat(o, ie(o, [], n));
|
|
671
671
|
}
|
|
672
672
|
function Ke(e) {
|
|
673
673
|
const t = M(e);
|
|
674
674
|
let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
|
675
|
-
const o =
|
|
675
|
+
const o = z(e), r = o ? e.offsetWidth : n, s = o ? e.offsetHeight : i, l = ae(n) !== r || ae(i) !== s;
|
|
676
676
|
return l && (n = r, i = s), {
|
|
677
677
|
width: n,
|
|
678
678
|
height: i,
|
|
679
679
|
$: l
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
682
|
+
function Te(e) {
|
|
683
|
+
return _(e) ? e : e.contextElement;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
const t =
|
|
687
|
-
if (!
|
|
685
|
+
function J(e) {
|
|
686
|
+
const t = Te(e);
|
|
687
|
+
if (!z(t))
|
|
688
688
|
return X(1);
|
|
689
689
|
const n = t.getBoundingClientRect(), {
|
|
690
690
|
width: i,
|
|
@@ -697,30 +697,30 @@ function Z(e) {
|
|
|
697
697
|
y: l
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const qt = /* @__PURE__ */ X(0);
|
|
701
701
|
function Qe(e) {
|
|
702
|
-
const t =
|
|
703
|
-
return !
|
|
702
|
+
const t = N(e);
|
|
703
|
+
return !Oe() || !t.visualViewport ? qt : {
|
|
704
704
|
x: t.visualViewport.offsetLeft,
|
|
705
705
|
y: t.visualViewport.offsetTop
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
708
|
+
function Gt(e, t, n) {
|
|
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
|
-
const o = e.getBoundingClientRect(), r =
|
|
713
|
+
const o = e.getBoundingClientRect(), r = Te(e);
|
|
714
714
|
let s = X(1);
|
|
715
|
-
t && (i ?
|
|
716
|
-
const l =
|
|
715
|
+
t && (i ? _(i) && (s = J(i)) : s = J(e));
|
|
716
|
+
const l = Gt(r, n, i) ? Qe(r) : X(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
|
-
const g =
|
|
719
|
+
const g = N(r), m = i && _(i) ? N(i) : i;
|
|
720
720
|
let a = g, h = a.frameElement;
|
|
721
721
|
for (; h && i && m !== a; ) {
|
|
722
|
-
const v =
|
|
723
|
-
f *= v.x, c *= v.y, u *= v.x, d *= v.y, f += b, c += C, a =
|
|
722
|
+
const v = J(h), w = h.getBoundingClientRect(), y = M(h), b = w.left + (h.clientLeft + parseFloat(y.paddingLeft)) * v.x, C = w.top + (h.clientTop + parseFloat(y.paddingTop)) * v.y;
|
|
723
|
+
f *= v.x, c *= v.y, u *= v.x, d *= v.y, f += b, c += C, a = N(h), h = a.frameElement;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
return ue({
|
|
@@ -730,9 +730,9 @@ function G(e, t, n, i) {
|
|
|
730
730
|
y: c
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
const
|
|
734
|
-
function
|
|
735
|
-
return
|
|
733
|
+
const Kt = [":popover-open", ":modal"];
|
|
734
|
+
function Se(e) {
|
|
735
|
+
return Kt.some((t) => {
|
|
736
736
|
try {
|
|
737
737
|
return e.matches(t);
|
|
738
738
|
} catch {
|
|
@@ -740,24 +740,24 @@ function Re(e) {
|
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Qt(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 ?
|
|
750
|
+
const r = o === "fixed", s = U(i), l = t ? Se(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
756
|
}, c = X(1);
|
|
757
|
-
const u = X(0), d =
|
|
758
|
-
if ((d || !d && !r) && ((
|
|
757
|
+
const u = X(0), d = z(i);
|
|
758
|
+
if ((d || !d && !r) && ((te(i) !== "body" || se(s)) && (f = me(i)), z(i))) {
|
|
759
759
|
const g = G(i);
|
|
760
|
-
c =
|
|
760
|
+
c = J(i), u.x = g.x + i.clientLeft, u.y = g.y + i.clientTop;
|
|
761
761
|
}
|
|
762
762
|
return {
|
|
763
763
|
width: n.width * c.x,
|
|
@@ -766,13 +766,13 @@ function Kt(e) {
|
|
|
766
766
|
y: n.y * c.y - f.scrollTop * c.y + u.y
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Jt(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
|
|
775
|
+
function Zt(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,12 +783,12 @@ function Jt(e) {
|
|
|
783
783
|
y: l
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
const n =
|
|
786
|
+
function en(e, t) {
|
|
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) {
|
|
790
790
|
r = o.width, s = o.height;
|
|
791
|
-
const c =
|
|
791
|
+
const c = Oe();
|
|
792
792
|
(!c || c && t === "fixed") && (l = o.offsetLeft, f = o.offsetTop);
|
|
793
793
|
}
|
|
794
794
|
return {
|
|
@@ -798,8 +798,8 @@ function Zt(e, t) {
|
|
|
798
798
|
y: f
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
function
|
|
802
|
-
const n = G(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, r =
|
|
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;
|
|
803
803
|
return {
|
|
804
804
|
width: s,
|
|
805
805
|
height: l,
|
|
@@ -807,14 +807,14 @@ function en(e, t) {
|
|
|
807
807
|
y: c
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function ke(e, t, n) {
|
|
811
811
|
let i;
|
|
812
812
|
if (t === "viewport")
|
|
813
|
-
i =
|
|
813
|
+
i = en(e, n);
|
|
814
814
|
else if (t === "document")
|
|
815
|
-
i =
|
|
816
|
-
else if (
|
|
817
|
-
i =
|
|
815
|
+
i = Zt(U(e));
|
|
816
|
+
else if (_(t))
|
|
817
|
+
i = tn(t, n);
|
|
818
818
|
else {
|
|
819
819
|
const o = Qe(e);
|
|
820
820
|
i = {
|
|
@@ -827,32 +827,32 @@ function Me(e, t, n) {
|
|
|
827
827
|
}
|
|
828
828
|
function Ze(e, t) {
|
|
829
829
|
const n = Y(e);
|
|
830
|
-
return n === t || !
|
|
830
|
+
return n === t || !_(n) || ee(n) ? !1 : M(n).position === "fixed" || Ze(n, t);
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function nn(e, t) {
|
|
833
833
|
const n = t.get(e);
|
|
834
834
|
if (n)
|
|
835
835
|
return n;
|
|
836
|
-
let i = ie(e, [], !1).filter((l) =>
|
|
836
|
+
let i = ie(e, [], !1).filter((l) => _(l) && te(l) !== "body"), o = null;
|
|
837
837
|
const r = M(e).position === "fixed";
|
|
838
838
|
let s = r ? Y(e) : e;
|
|
839
|
-
for (;
|
|
840
|
-
const l = M(s), f =
|
|
839
|
+
for (; _(s) && !ee(s); ) {
|
|
840
|
+
const l = M(s), f = Ae(s);
|
|
841
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);
|
|
842
842
|
}
|
|
843
843
|
return t.set(e, i), i;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function on(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" ?
|
|
853
|
-
const d =
|
|
854
|
-
return c.top = q(d.top, c.top), c.right =
|
|
855
|
-
},
|
|
852
|
+
const s = [...n === "clippingAncestors" ? Se(t) ? [] : nn(t, this._c) : [].concat(n), i], l = s[0], f = s.reduce((c, u) => {
|
|
853
|
+
const d = ke(t, u, o);
|
|
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
|
+
}, ke(t, l, o));
|
|
856
856
|
return {
|
|
857
857
|
width: f.right - f.left,
|
|
858
858
|
height: f.bottom - f.top,
|
|
@@ -860,7 +860,7 @@ function nn(e) {
|
|
|
860
860
|
y: f.top
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function rn(e) {
|
|
864
864
|
const {
|
|
865
865
|
width: t,
|
|
866
866
|
height: n
|
|
@@ -870,15 +870,15 @@ function on(e) {
|
|
|
870
870
|
height: n
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
const i =
|
|
873
|
+
function sn(e, t, n) {
|
|
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
879
|
const f = X(0);
|
|
880
880
|
if (i || !i && !r)
|
|
881
|
-
if ((
|
|
881
|
+
if ((te(t) !== "body" || se(o)) && (l = me(t)), i) {
|
|
882
882
|
const d = G(t, !0, r, t);
|
|
883
883
|
f.x = d.x + t.clientLeft, f.y = d.y + t.clientTop;
|
|
884
884
|
} else
|
|
@@ -894,31 +894,31 @@ function rn(e, t, n) {
|
|
|
894
894
|
function ve(e) {
|
|
895
895
|
return M(e).position === "static";
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
return !
|
|
897
|
+
function Me(e, t) {
|
|
898
|
+
return !z(e) || M(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
899
899
|
}
|
|
900
900
|
function et(e, t) {
|
|
901
|
-
const n =
|
|
902
|
-
if (
|
|
901
|
+
const n = N(e);
|
|
902
|
+
if (Se(e))
|
|
903
903
|
return n;
|
|
904
|
-
if (!
|
|
904
|
+
if (!z(e)) {
|
|
905
905
|
let o = Y(e);
|
|
906
|
-
for (; o && !
|
|
907
|
-
if (
|
|
906
|
+
for (; o && !ee(o); ) {
|
|
907
|
+
if (_(o) && !ve(o))
|
|
908
908
|
return o;
|
|
909
909
|
o = Y(o);
|
|
910
910
|
}
|
|
911
911
|
return n;
|
|
912
912
|
}
|
|
913
|
-
let i =
|
|
914
|
-
for (; i &&
|
|
915
|
-
i =
|
|
916
|
-
return i &&
|
|
913
|
+
let i = Me(e, t);
|
|
914
|
+
for (; i && Xt(i) && ve(i); )
|
|
915
|
+
i = Me(i, t);
|
|
916
|
+
return i && ee(i) && ve(i) && !Ae(i) ? n : i || Yt(e) || n;
|
|
917
917
|
}
|
|
918
|
-
const
|
|
918
|
+
const ln = async function(e) {
|
|
919
919
|
const t = this.getOffsetParent || et, n = this.getDimensions, i = await n(e.floating);
|
|
920
920
|
return {
|
|
921
|
-
reference:
|
|
921
|
+
reference: sn(e.reference, await t(e.floating), e.strategy),
|
|
922
922
|
floating: {
|
|
923
923
|
x: 0,
|
|
924
924
|
y: 0,
|
|
@@ -927,22 +927,22 @@ const sn = async function(e) {
|
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
};
|
|
930
|
-
function
|
|
930
|
+
function an(e) {
|
|
931
931
|
return M(e).direction === "rtl";
|
|
932
932
|
}
|
|
933
|
-
const
|
|
934
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
933
|
+
const cn = {
|
|
934
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qt,
|
|
935
935
|
getDocumentElement: U,
|
|
936
|
-
getClippingRect:
|
|
936
|
+
getClippingRect: on,
|
|
937
937
|
getOffsetParent: et,
|
|
938
|
-
getElementRects:
|
|
939
|
-
getClientRects:
|
|
940
|
-
getDimensions:
|
|
941
|
-
getScale:
|
|
942
|
-
isElement:
|
|
943
|
-
isRTL:
|
|
938
|
+
getElementRects: ln,
|
|
939
|
+
getClientRects: Jt,
|
|
940
|
+
getDimensions: rn,
|
|
941
|
+
getScale: J,
|
|
942
|
+
isElement: _,
|
|
943
|
+
isRTL: an
|
|
944
944
|
};
|
|
945
|
-
function
|
|
945
|
+
function fn(e, t) {
|
|
946
946
|
let n = null, i;
|
|
947
947
|
const o = U(e);
|
|
948
948
|
function r() {
|
|
@@ -959,9 +959,9 @@ function cn(e, t) {
|
|
|
959
959
|
} = e.getBoundingClientRect();
|
|
960
960
|
if (l || t(), !d || !g)
|
|
961
961
|
return;
|
|
962
|
-
const m = le(u), a = le(o.clientWidth - (c + d)), h = le(o.clientHeight - (u + g)), v = le(c),
|
|
962
|
+
const m = le(u), a = le(o.clientWidth - (c + d)), h = le(o.clientHeight - (u + g)), v = le(c), y = {
|
|
963
963
|
rootMargin: -m + "px " + -a + "px " + -h + "px " + -v + "px",
|
|
964
|
-
threshold: q(0,
|
|
964
|
+
threshold: q(0, Z(1, f)) || 1
|
|
965
965
|
};
|
|
966
966
|
let b = !0;
|
|
967
967
|
function C(A) {
|
|
@@ -977,17 +977,17 @@ function cn(e, t) {
|
|
|
977
977
|
}
|
|
978
978
|
try {
|
|
979
979
|
n = new IntersectionObserver(C, {
|
|
980
|
-
...
|
|
980
|
+
...y,
|
|
981
981
|
root: o.ownerDocument
|
|
982
982
|
});
|
|
983
983
|
} catch {
|
|
984
|
-
n = new IntersectionObserver(C,
|
|
984
|
+
n = new IntersectionObserver(C, y);
|
|
985
985
|
}
|
|
986
986
|
n.observe(e);
|
|
987
987
|
}
|
|
988
988
|
return s(!0), r;
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function un(e, t, n, i) {
|
|
991
991
|
i === void 0 && (i = {});
|
|
992
992
|
const {
|
|
993
993
|
ancestorScroll: o = !0,
|
|
@@ -995,17 +995,17 @@ function fn(e, t, n, i) {
|
|
|
995
995
|
elementResize: s = typeof ResizeObserver == "function",
|
|
996
996
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
997
997
|
animationFrame: f = !1
|
|
998
|
-
} = i, c =
|
|
999
|
-
u.forEach((
|
|
1000
|
-
o &&
|
|
998
|
+
} = i, c = Te(e), u = o || r ? [...c ? ie(c) : [], ...ie(t)] : [];
|
|
999
|
+
u.forEach((w) => {
|
|
1000
|
+
o && w.addEventListener("scroll", n, {
|
|
1001
1001
|
passive: !0
|
|
1002
|
-
}), r &&
|
|
1002
|
+
}), r && w.addEventListener("resize", n);
|
|
1003
1003
|
});
|
|
1004
|
-
const d = c && l ?
|
|
1004
|
+
const d = c && l ? fn(c, n) : null;
|
|
1005
1005
|
let g = -1, m = null;
|
|
1006
|
-
s && (m = new ResizeObserver((
|
|
1007
|
-
let [
|
|
1008
|
-
|
|
1006
|
+
s && (m = new ResizeObserver((w) => {
|
|
1007
|
+
let [y] = w;
|
|
1008
|
+
y && y.target === c && m && (m.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
1009
1009
|
var b;
|
|
1010
1010
|
(b = m) == null || b.observe(t);
|
|
1011
1011
|
})), n();
|
|
@@ -1013,74 +1013,84 @@ function fn(e, t, n, i) {
|
|
|
1013
1013
|
let a, h = f ? G(e) : null;
|
|
1014
1014
|
f && v();
|
|
1015
1015
|
function v() {
|
|
1016
|
-
const
|
|
1017
|
-
h && (
|
|
1016
|
+
const w = G(e);
|
|
1017
|
+
h && (w.x !== h.x || w.y !== h.y || w.width !== h.width || w.height !== h.height) && n(), h = w, a = requestAnimationFrame(v);
|
|
1018
1018
|
}
|
|
1019
1019
|
return n(), () => {
|
|
1020
|
-
var
|
|
1021
|
-
u.forEach((
|
|
1022
|
-
o &&
|
|
1023
|
-
}), d == null || d(), (
|
|
1020
|
+
var w;
|
|
1021
|
+
u.forEach((y) => {
|
|
1022
|
+
o && y.removeEventListener("scroll", n), r && y.removeEventListener("resize", n);
|
|
1023
|
+
}), d == null || d(), (w = m) == null || w.disconnect(), m = null, f && cancelAnimationFrame(a);
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
|
-
const
|
|
1026
|
+
const dn = It, mn = Wt, pn = Ut, hn = _t, gn = zt, vn = jt, wn = (e, t, n) => {
|
|
1027
1027
|
const i = /* @__PURE__ */ new Map(), o = {
|
|
1028
|
-
platform:
|
|
1028
|
+
platform: cn,
|
|
1029
1029
|
...n
|
|
1030
1030
|
}, r = {
|
|
1031
1031
|
...o.platform,
|
|
1032
1032
|
_c: i
|
|
1033
1033
|
};
|
|
1034
|
-
return
|
|
1034
|
+
return Mt(e, t, {
|
|
1035
1035
|
...o,
|
|
1036
1036
|
platform: r
|
|
1037
1037
|
});
|
|
1038
1038
|
};
|
|
1039
1039
|
function yn(e) {
|
|
1040
|
+
return tt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1041
|
+
}
|
|
1042
|
+
function xn(e) {
|
|
1043
|
+
var t;
|
|
1044
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1045
|
+
}
|
|
1046
|
+
function tt(e) {
|
|
1047
|
+
return e instanceof Node || e instanceof xn(e).Node;
|
|
1048
|
+
}
|
|
1049
|
+
function bn(e) {
|
|
1040
1050
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1041
1051
|
}
|
|
1042
1052
|
function xe(e) {
|
|
1043
|
-
if (
|
|
1053
|
+
if (bn(e)) {
|
|
1044
1054
|
const t = e.$el;
|
|
1045
|
-
return
|
|
1055
|
+
return tt(t) && yn(t) === "#comment" ? null : t;
|
|
1046
1056
|
}
|
|
1047
1057
|
return e;
|
|
1048
1058
|
}
|
|
1049
|
-
function
|
|
1059
|
+
function Cn(e) {
|
|
1050
1060
|
return {
|
|
1051
1061
|
name: "arrow",
|
|
1052
1062
|
options: e,
|
|
1053
1063
|
fn(t) {
|
|
1054
|
-
const n = xe(
|
|
1055
|
-
return n == null ? {} :
|
|
1064
|
+
const n = xe(H(e.element));
|
|
1065
|
+
return n == null ? {} : vn({
|
|
1056
1066
|
element: n,
|
|
1057
1067
|
padding: e.padding
|
|
1058
1068
|
}).fn(t);
|
|
1059
1069
|
}
|
|
1060
1070
|
};
|
|
1061
1071
|
}
|
|
1062
|
-
function
|
|
1072
|
+
function nt(e) {
|
|
1063
1073
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1064
1074
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const n =
|
|
1075
|
+
function je(e, t) {
|
|
1076
|
+
const n = nt(e);
|
|
1067
1077
|
return Math.round(t * n) / n;
|
|
1068
1078
|
}
|
|
1069
|
-
function
|
|
1079
|
+
function An(e, t, n) {
|
|
1070
1080
|
n === void 0 && (n = {});
|
|
1071
1081
|
const i = n.whileElementsMounted, o = P(() => {
|
|
1072
1082
|
var p;
|
|
1073
|
-
return (p =
|
|
1074
|
-
}), r = P(() =>
|
|
1083
|
+
return (p = H(n.open)) != null ? p : !0;
|
|
1084
|
+
}), r = P(() => H(n.middleware)), s = P(() => {
|
|
1075
1085
|
var p;
|
|
1076
|
-
return (p =
|
|
1086
|
+
return (p = H(n.placement)) != null ? p : "bottom";
|
|
1077
1087
|
}), l = P(() => {
|
|
1078
1088
|
var p;
|
|
1079
|
-
return (p =
|
|
1089
|
+
return (p = H(n.strategy)) != null ? p : "absolute";
|
|
1080
1090
|
}), f = P(() => {
|
|
1081
1091
|
var p;
|
|
1082
|
-
return (p =
|
|
1083
|
-
}), c = P(() => xe(e.value)), u = P(() => xe(t.value)), d = E(0), g = E(0), m = E(l.value), a = E(s.value), h =
|
|
1092
|
+
return (p = H(n.transform)) != null ? p : !0;
|
|
1093
|
+
}), c = P(() => xe(e.value)), u = P(() => xe(t.value)), d = E(0), g = E(0), m = E(l.value), a = E(s.value), h = _e({}), v = E(!1), w = P(() => {
|
|
1084
1094
|
const p = {
|
|
1085
1095
|
position: m.value,
|
|
1086
1096
|
left: "0",
|
|
@@ -1088,11 +1098,11 @@ function xn(e, t, n) {
|
|
|
1088
1098
|
};
|
|
1089
1099
|
if (!u.value)
|
|
1090
1100
|
return p;
|
|
1091
|
-
const T =
|
|
1101
|
+
const T = je(u.value, d.value), L = je(u.value, g.value);
|
|
1092
1102
|
return f.value ? {
|
|
1093
1103
|
...p,
|
|
1094
1104
|
transform: "translate(" + T + "px, " + L + "px)",
|
|
1095
|
-
...
|
|
1105
|
+
...nt(u.value) >= 1.5 && {
|
|
1096
1106
|
willChange: "transform"
|
|
1097
1107
|
}
|
|
1098
1108
|
} : {
|
|
@@ -1101,9 +1111,9 @@ function xn(e, t, n) {
|
|
|
1101
1111
|
top: L + "px"
|
|
1102
1112
|
};
|
|
1103
1113
|
});
|
|
1104
|
-
let
|
|
1114
|
+
let y;
|
|
1105
1115
|
function b() {
|
|
1106
|
-
c.value == null || u.value == null ||
|
|
1116
|
+
c.value == null || u.value == null || wn(c.value, u.value, {
|
|
1107
1117
|
middleware: r.value,
|
|
1108
1118
|
placement: s.value,
|
|
1109
1119
|
strategy: l.value
|
|
@@ -1112,7 +1122,7 @@ function xn(e, t, n) {
|
|
|
1112
1122
|
});
|
|
1113
1123
|
}
|
|
1114
1124
|
function C() {
|
|
1115
|
-
typeof
|
|
1125
|
+
typeof y == "function" && (y(), y = void 0);
|
|
1116
1126
|
}
|
|
1117
1127
|
function A() {
|
|
1118
1128
|
if (C(), i === void 0) {
|
|
@@ -1120,46 +1130,46 @@ function xn(e, t, n) {
|
|
|
1120
1130
|
return;
|
|
1121
1131
|
}
|
|
1122
1132
|
if (c.value != null && u.value != null) {
|
|
1123
|
-
|
|
1133
|
+
y = i(c.value, u.value, b);
|
|
1124
1134
|
return;
|
|
1125
1135
|
}
|
|
1126
1136
|
}
|
|
1127
1137
|
function O() {
|
|
1128
1138
|
o.value || (v.value = !1);
|
|
1129
1139
|
}
|
|
1130
|
-
return
|
|
1140
|
+
return k([r, s, l], b, {
|
|
1131
1141
|
flush: "sync"
|
|
1132
|
-
}),
|
|
1142
|
+
}), k([c, u], A, {
|
|
1133
1143
|
flush: "sync"
|
|
1134
|
-
}),
|
|
1144
|
+
}), k(o, O, {
|
|
1135
1145
|
flush: "sync"
|
|
1136
|
-
}),
|
|
1137
|
-
x:
|
|
1138
|
-
y:
|
|
1139
|
-
strategy:
|
|
1140
|
-
placement:
|
|
1141
|
-
middlewareData:
|
|
1142
|
-
isPositioned:
|
|
1143
|
-
floatingStyles:
|
|
1146
|
+
}), lt() && at(C), {
|
|
1147
|
+
x: Q(d),
|
|
1148
|
+
y: Q(g),
|
|
1149
|
+
strategy: Q(m),
|
|
1150
|
+
placement: Q(a),
|
|
1151
|
+
middlewareData: Q(h),
|
|
1152
|
+
isPositioned: Q(v),
|
|
1153
|
+
floatingStyles: w,
|
|
1144
1154
|
update: b
|
|
1145
1155
|
};
|
|
1146
1156
|
}
|
|
1147
|
-
var
|
|
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);
|
|
1148
1158
|
function re(e) {
|
|
1149
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;
|
|
1150
1160
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return e.reduce((t, n) => n.type ===
|
|
1161
|
+
function ot(e) {
|
|
1162
|
+
return e.reduce((t, n) => n.type === ze ? t.concat(ot(n.children)) : t.concat(n), []);
|
|
1153
1163
|
}
|
|
1154
|
-
function
|
|
1164
|
+
function Rn(e) {
|
|
1155
1165
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
1156
1166
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return e =
|
|
1167
|
+
function He(e) {
|
|
1168
|
+
return e = H(e), e && (e == null ? void 0 : e.nodeType) !== Node.COMMENT_NODE;
|
|
1159
1169
|
}
|
|
1160
|
-
class
|
|
1170
|
+
class En {
|
|
1161
1171
|
constructor() {
|
|
1162
|
-
|
|
1172
|
+
Sn(this, "current", this.detect());
|
|
1163
1173
|
}
|
|
1164
1174
|
set(t) {
|
|
1165
1175
|
this.current !== t && (this.current = t);
|
|
@@ -1177,9 +1187,9 @@ class Tn {
|
|
|
1177
1187
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
1178
1188
|
}
|
|
1179
1189
|
}
|
|
1180
|
-
const
|
|
1181
|
-
function
|
|
1182
|
-
if (
|
|
1190
|
+
const Re = new En();
|
|
1191
|
+
function Pn(e) {
|
|
1192
|
+
if (Re.isServer)
|
|
1183
1193
|
return null;
|
|
1184
1194
|
if (e instanceof Node)
|
|
1185
1195
|
return e.ownerDocument;
|
|
@@ -1190,11 +1200,11 @@ function Sn(e) {
|
|
|
1190
1200
|
}
|
|
1191
1201
|
return document;
|
|
1192
1202
|
}
|
|
1193
|
-
function
|
|
1203
|
+
function Ln(e, t) {
|
|
1194
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.`);
|
|
1195
1205
|
}
|
|
1196
|
-
function
|
|
1197
|
-
|
|
1206
|
+
function Fn(e, t, n, i, o) {
|
|
1207
|
+
k([
|
|
1198
1208
|
() => o.offset,
|
|
1199
1209
|
() => o.flip,
|
|
1200
1210
|
() => o.shift,
|
|
@@ -1204,32 +1214,32 @@ function En(e, t, n, i, o) {
|
|
|
1204
1214
|
() => o.middleware
|
|
1205
1215
|
], () => {
|
|
1206
1216
|
const r = [];
|
|
1207
|
-
(typeof o.offset == "number" || typeof o.offset == "object" || typeof o.offset == "function") && r.push(
|
|
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({
|
|
1208
1218
|
padding: typeof o.flip == "number" ? o.flip : void 0,
|
|
1209
1219
|
...typeof o.flip == "object" ? o.flip : {}
|
|
1210
|
-
})), (o.shift === !0 || typeof o.shift == "number" || typeof o.shift == "object") && r.push(
|
|
1220
|
+
})), (o.shift === !0 || typeof o.shift == "number" || typeof o.shift == "object") && r.push(pn({
|
|
1211
1221
|
padding: typeof o.shift == "number" ? o.shift : void 0,
|
|
1212
1222
|
...typeof o.shift == "object" ? o.shift : {}
|
|
1213
|
-
})), (o.autoPlacement === !0 || typeof o.autoPlacement == "object") && r.push(
|
|
1223
|
+
})), (o.autoPlacement === !0 || typeof o.autoPlacement == "object") && r.push(mn(
|
|
1214
1224
|
typeof o.autoPlacement == "object" ? o.autoPlacement : void 0
|
|
1215
1225
|
)), r.push(...typeof o.middleware == "function" ? o.middleware({
|
|
1216
1226
|
referenceEl: t,
|
|
1217
1227
|
floatingEl: n
|
|
1218
|
-
}) : o.middleware || []), (o.arrow === !0 || typeof o.arrow == "number") && r.push(
|
|
1228
|
+
}) : o.middleware || []), (o.arrow === !0 || typeof o.arrow == "number") && r.push(Cn({
|
|
1219
1229
|
element: i,
|
|
1220
1230
|
padding: o.arrow === !0 ? 0 : o.arrow
|
|
1221
1231
|
})), (o.hide === !0 || typeof o.hide == "object" || Array.isArray(o.hide)) && (Array.isArray(o.hide) ? o.hide : [o.hide]).forEach((s) => {
|
|
1222
|
-
r.push(
|
|
1232
|
+
r.push(gn(
|
|
1223
1233
|
typeof s == "object" ? s : void 0
|
|
1224
1234
|
));
|
|
1225
1235
|
}), e.value = r;
|
|
1226
1236
|
}, { immediate: !0 });
|
|
1227
1237
|
}
|
|
1228
|
-
function
|
|
1238
|
+
function Bn(e, t, n) {
|
|
1229
1239
|
let i = () => {
|
|
1230
1240
|
};
|
|
1231
1241
|
Ve(() => {
|
|
1232
|
-
if (e &&
|
|
1242
|
+
if (e && Re.isClient && typeof ResizeObserver < "u" && t.value && t.value instanceof Element) {
|
|
1233
1243
|
const o = new ResizeObserver(([r]) => {
|
|
1234
1244
|
n.value = r.borderBoxSize.reduce((s, { inlineSize: l }) => s + l, 0);
|
|
1235
1245
|
});
|
|
@@ -1237,11 +1247,11 @@ function Pn(e, t, n) {
|
|
|
1237
1247
|
o.disconnect(), n.value = null;
|
|
1238
1248
|
};
|
|
1239
1249
|
}
|
|
1240
|
-
}),
|
|
1250
|
+
}), ut(() => {
|
|
1241
1251
|
i();
|
|
1242
1252
|
});
|
|
1243
1253
|
}
|
|
1244
|
-
const
|
|
1254
|
+
const Dn = (e) => {
|
|
1245
1255
|
switch (e) {
|
|
1246
1256
|
case "top":
|
|
1247
1257
|
return "origin-bottom";
|
|
@@ -1267,14 +1277,14 @@ const Ln = (e) => {
|
|
|
1267
1277
|
return "origin-center";
|
|
1268
1278
|
}
|
|
1269
1279
|
};
|
|
1270
|
-
function
|
|
1280
|
+
function Nn(e, t) {
|
|
1271
1281
|
const n = P(() => {
|
|
1272
1282
|
if (typeof e.originClass == "function")
|
|
1273
1283
|
return e.originClass(t.value);
|
|
1274
1284
|
if (typeof e.originClass == "string")
|
|
1275
1285
|
return e.originClass;
|
|
1276
1286
|
if (e.tailwindcssOriginClass)
|
|
1277
|
-
return
|
|
1287
|
+
return Dn(t.value);
|
|
1278
1288
|
}), i = P(
|
|
1279
1289
|
() => e.enter || n.value ? `${e.enter || ""} ${n.value || ""}` : void 0
|
|
1280
1290
|
), o = P(
|
|
@@ -1282,7 +1292,7 @@ function Fn(e, t) {
|
|
|
1282
1292
|
);
|
|
1283
1293
|
return { originClassRef: n, enterActiveClassRef: i, leaveActiveClassRef: o };
|
|
1284
1294
|
}
|
|
1285
|
-
function
|
|
1295
|
+
function it(e, t, ...n) {
|
|
1286
1296
|
if (e in t) {
|
|
1287
1297
|
const o = t[e];
|
|
1288
1298
|
return typeof o == "function" ? o(...n) : o;
|
|
@@ -1292,9 +1302,9 @@ function ot(e, t, ...n) {
|
|
|
1292
1302
|
t
|
|
1293
1303
|
).map((o) => `"${o}"`).join(", ")}.`
|
|
1294
1304
|
);
|
|
1295
|
-
throw Error.captureStackTrace && Error.captureStackTrace(i,
|
|
1305
|
+
throw Error.captureStackTrace && Error.captureStackTrace(i, it), i;
|
|
1296
1306
|
}
|
|
1297
|
-
const
|
|
1307
|
+
const We = [
|
|
1298
1308
|
"[contentEditable=true]",
|
|
1299
1309
|
"[tabindex]",
|
|
1300
1310
|
"a[href]",
|
|
@@ -1307,17 +1317,17 @@ const _e = [
|
|
|
1307
1317
|
].map(
|
|
1308
1318
|
(e) => `${e}:not([tabindex='-1'])`
|
|
1309
1319
|
).join(",");
|
|
1310
|
-
var
|
|
1311
|
-
function
|
|
1320
|
+
var rt = /* @__PURE__ */ ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(rt || {});
|
|
1321
|
+
function $n(e, t = 0) {
|
|
1312
1322
|
var n;
|
|
1313
|
-
return e === ((n =
|
|
1323
|
+
return e === ((n = Pn(e)) == null ? void 0 : n.body) ? !1 : it(t, {
|
|
1314
1324
|
0() {
|
|
1315
|
-
return e.matches(
|
|
1325
|
+
return e.matches(We);
|
|
1316
1326
|
},
|
|
1317
1327
|
1() {
|
|
1318
1328
|
let i = e;
|
|
1319
1329
|
for (; i !== null; ) {
|
|
1320
|
-
if (i.matches(
|
|
1330
|
+
if (i.matches(We))
|
|
1321
1331
|
return !0;
|
|
1322
1332
|
i = i.parentElement;
|
|
1323
1333
|
}
|
|
@@ -1325,12 +1335,12 @@ function Bn(e, t = 0) {
|
|
|
1325
1335
|
}
|
|
1326
1336
|
});
|
|
1327
1337
|
}
|
|
1328
|
-
function
|
|
1329
|
-
|
|
1338
|
+
function we(e, t, n) {
|
|
1339
|
+
Re.isServer || dt((i) => {
|
|
1330
1340
|
document.addEventListener(e, t, n), i(() => document.removeEventListener(e, t, n));
|
|
1331
1341
|
});
|
|
1332
1342
|
}
|
|
1333
|
-
function
|
|
1343
|
+
function kn(e, t, n = P(() => !0)) {
|
|
1334
1344
|
function i(r, s) {
|
|
1335
1345
|
if (!n.value || r.defaultPrevented)
|
|
1336
1346
|
return;
|
|
@@ -1347,24 +1357,24 @@ function Dn(e, t, n = P(() => !0)) {
|
|
|
1347
1357
|
if (u != null && u.contains(l) || r.composed && r.composedPath().includes(u))
|
|
1348
1358
|
return;
|
|
1349
1359
|
}
|
|
1350
|
-
return
|
|
1360
|
+
return !$n(l, rt.Loose) && l.tabIndex !== -1 && r.preventDefault(), t(r, l);
|
|
1351
1361
|
}
|
|
1352
1362
|
const o = E(null);
|
|
1353
|
-
|
|
1363
|
+
we("mousedown", (r) => {
|
|
1354
1364
|
var s, l;
|
|
1355
1365
|
n.value && (o.value = ((l = (s = r.composedPath) == null ? void 0 : s.call(r)) == null ? void 0 : l[0]) || r.target);
|
|
1356
|
-
}, !0),
|
|
1366
|
+
}, !0), we(
|
|
1357
1367
|
"click",
|
|
1358
1368
|
(r) => {
|
|
1359
1369
|
o.value && (i(r, () => o.value), o.value = null);
|
|
1360
1370
|
},
|
|
1361
1371
|
!0
|
|
1362
|
-
),
|
|
1372
|
+
), we("blur", (r) => i(
|
|
1363
1373
|
r,
|
|
1364
1374
|
() => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null
|
|
1365
1375
|
), !0);
|
|
1366
1376
|
}
|
|
1367
|
-
const
|
|
1377
|
+
const Mn = Symbol("ArrowContext"), x = {
|
|
1368
1378
|
as: {
|
|
1369
1379
|
type: [String, Function],
|
|
1370
1380
|
default: "template"
|
|
@@ -1458,11 +1468,11 @@ const kn = Symbol("ArrowContext"), x = {
|
|
|
1458
1468
|
default: () => []
|
|
1459
1469
|
}
|
|
1460
1470
|
};
|
|
1461
|
-
function
|
|
1471
|
+
function jn(e, t, n, i) {
|
|
1462
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(
|
|
1463
1473
|
{ ...r, as: r.floatingAs },
|
|
1464
1474
|
t
|
|
1465
|
-
), { enterActiveClassRef: h, leaveActiveClassRef: v } =
|
|
1475
|
+
), { enterActiveClassRef: h, leaveActiveClassRef: v } = Nn(a, u), w = {
|
|
1466
1476
|
show: s.value ? a.show : !1,
|
|
1467
1477
|
enter: h.value,
|
|
1468
1478
|
enterFrom: a.enterFrom,
|
|
@@ -1476,7 +1486,7 @@ function Nn(e, t, n, i) {
|
|
|
1476
1486
|
onAfterLeave() {
|
|
1477
1487
|
l.value = !1;
|
|
1478
1488
|
}
|
|
1479
|
-
},
|
|
1489
|
+
}, y = {
|
|
1480
1490
|
name: a.transitionName,
|
|
1481
1491
|
type: a.transitionType,
|
|
1482
1492
|
appear: !0,
|
|
@@ -1512,7 +1522,7 @@ function Nn(e, t, n, i) {
|
|
|
1512
1522
|
b.style[p.attribute] = `${g.value}px`;
|
|
1513
1523
|
}
|
|
1514
1524
|
function C(p) {
|
|
1515
|
-
return a.portal ? s.value ? ne(
|
|
1525
|
+
return a.portal ? s.value ? ne(mt, () => p) : he() : p;
|
|
1516
1526
|
}
|
|
1517
1527
|
function A(p) {
|
|
1518
1528
|
const T = pe(
|
|
@@ -1529,17 +1539,17 @@ function Nn(e, t, n, i) {
|
|
|
1529
1539
|
b,
|
|
1530
1540
|
n,
|
|
1531
1541
|
a.dialog ? {} : { ref: o }
|
|
1532
|
-
) : null, R =
|
|
1542
|
+
) : null, R = vt(e, L);
|
|
1533
1543
|
return ((T = e.props) == null ? void 0 : T.unmount) === !1 ? (m(), R) : a.vueTransition && a.show === !1 ? he() : R;
|
|
1534
1544
|
}
|
|
1535
|
-
return s.value ? a.vueTransition ? ne(
|
|
1545
|
+
return s.value ? a.vueTransition ? ne(pt, {
|
|
1536
1546
|
...a.dialog ? { ref: o } : {},
|
|
1537
|
-
...
|
|
1538
|
-
}, p) : ne(a.transitionChild ?
|
|
1547
|
+
...y
|
|
1548
|
+
}, p) : ne(a.transitionChild ? ht : gt, {
|
|
1539
1549
|
key: `placement-${u.value}`,
|
|
1540
1550
|
...a.dialog ? { ref: o } : {},
|
|
1541
1551
|
as: "template",
|
|
1542
|
-
...
|
|
1552
|
+
...w
|
|
1543
1553
|
}, p) : he();
|
|
1544
1554
|
}
|
|
1545
1555
|
return C(
|
|
@@ -1548,10 +1558,10 @@ function Nn(e, t, n, i) {
|
|
|
1548
1558
|
)
|
|
1549
1559
|
);
|
|
1550
1560
|
}
|
|
1551
|
-
function
|
|
1552
|
-
const r = E(!1), s =
|
|
1553
|
-
() =>
|
|
1554
|
-
), { placement:
|
|
1561
|
+
function Hn(e, t, n, i, o) {
|
|
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
|
+
() => He(a) && He(h)
|
|
1564
|
+
), { placement: w, middlewareData: y, isPositioned: b, floatingStyles: C, update: A } = An(a, h, {
|
|
1555
1565
|
placement: s,
|
|
1556
1566
|
strategy: l,
|
|
1557
1567
|
middleware: f,
|
|
@@ -1561,44 +1571,44 @@ function $n(e, t, n, i, o) {
|
|
|
1561
1571
|
}), O = E(null);
|
|
1562
1572
|
Ve(() => {
|
|
1563
1573
|
r.value = !0;
|
|
1564
|
-
}),
|
|
1574
|
+
}), k(e, (S, D) => {
|
|
1565
1575
|
S && !D ? o("show") : !S && D && o("hide");
|
|
1566
1576
|
}, { immediate: !0 });
|
|
1567
1577
|
function p() {
|
|
1568
1578
|
v.value && (A(), o("update"));
|
|
1569
1579
|
}
|
|
1570
|
-
|
|
1580
|
+
k([s, l, f], p, { flush: "sync" }), Fn(
|
|
1571
1581
|
f,
|
|
1572
1582
|
a,
|
|
1573
1583
|
h,
|
|
1574
1584
|
d,
|
|
1575
1585
|
i
|
|
1576
|
-
),
|
|
1586
|
+
), k([y, () => i.hide, b], () => {
|
|
1577
1587
|
var S, D;
|
|
1578
|
-
(i.hide === !0 || typeof i.hide == "object" || Array.isArray(i.hide)) && (c.value = ((S =
|
|
1579
|
-
}),
|
|
1580
|
-
const S =
|
|
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);
|
|
1589
|
+
}), k(y, () => {
|
|
1590
|
+
const S = y.value.arrow;
|
|
1581
1591
|
g.value = S == null ? void 0 : S.x, m.value = S == null ? void 0 : S.y;
|
|
1582
|
-
}),
|
|
1583
|
-
if (await
|
|
1584
|
-
const
|
|
1592
|
+
}), Bn(!!i.adaptiveWidth, a, O), k([e, v], async (S, D, F) => {
|
|
1593
|
+
if (await ct(), e.value && v.value && i.autoUpdate) {
|
|
1594
|
+
const $ = un(
|
|
1585
1595
|
a.value,
|
|
1586
1596
|
h.value,
|
|
1587
1597
|
p,
|
|
1588
1598
|
typeof i.autoUpdate == "object" ? i.autoUpdate : void 0
|
|
1589
1599
|
);
|
|
1590
|
-
F(
|
|
1600
|
+
F($);
|
|
1591
1601
|
}
|
|
1592
1602
|
}, { flush: "post", immediate: !0 });
|
|
1593
1603
|
const T = E(!0);
|
|
1594
|
-
|
|
1604
|
+
k(a, () => {
|
|
1595
1605
|
!(a.value instanceof Element) && v.value && T.value && (T.value = !1, window.requestAnimationFrame(() => {
|
|
1596
1606
|
T.value = !0, p();
|
|
1597
1607
|
}));
|
|
1598
1608
|
}, { flush: "sync" });
|
|
1599
1609
|
const L = {
|
|
1600
1610
|
referenceRef: t,
|
|
1601
|
-
placement:
|
|
1611
|
+
placement: w
|
|
1602
1612
|
}, R = {
|
|
1603
1613
|
floatingRef: n,
|
|
1604
1614
|
props: i,
|
|
@@ -1606,22 +1616,22 @@ function $n(e, t, n, i, o) {
|
|
|
1606
1616
|
show: e,
|
|
1607
1617
|
referenceHidden: c,
|
|
1608
1618
|
escaped: u,
|
|
1609
|
-
placement:
|
|
1619
|
+
placement: w,
|
|
1610
1620
|
floatingStyles: C,
|
|
1611
1621
|
referenceElWidth: O,
|
|
1612
1622
|
updateFloating: p
|
|
1613
1623
|
}, B = {
|
|
1614
1624
|
ref: d,
|
|
1615
|
-
placement:
|
|
1625
|
+
placement: w,
|
|
1616
1626
|
x: g,
|
|
1617
1627
|
y: m
|
|
1618
1628
|
};
|
|
1619
|
-
return
|
|
1629
|
+
return ft(Mn, B), { referenceApi: L, floatingApi: R, arrowApi: B, placement: w, referenceEl: a, floatingEl: h, middlewareData: y, update: p };
|
|
1620
1630
|
}
|
|
1621
1631
|
({
|
|
1622
1632
|
...x.as
|
|
1623
1633
|
});
|
|
1624
|
-
const
|
|
1634
|
+
const Wn = {
|
|
1625
1635
|
as: x.as,
|
|
1626
1636
|
show: x.show,
|
|
1627
1637
|
placement: x.placement,
|
|
@@ -1647,14 +1657,14 @@ const Mn = {
|
|
|
1647
1657
|
portal: x.portal,
|
|
1648
1658
|
transform: x.transform,
|
|
1649
1659
|
middleware: x.middleware
|
|
1650
|
-
},
|
|
1660
|
+
}, _n = {
|
|
1651
1661
|
name: "FloatVirtual",
|
|
1652
1662
|
inheritAttrs: !1,
|
|
1653
|
-
props:
|
|
1663
|
+
props: Wn,
|
|
1654
1664
|
emits: ["initial", "show", "hide", "update"],
|
|
1655
1665
|
setup(e, { emit: t, slots: n, attrs: i }) {
|
|
1656
1666
|
var u;
|
|
1657
|
-
|
|
1667
|
+
Ln("FloatVirtual", e);
|
|
1658
1668
|
const o = E((u = e.show) != null ? u : !1), r = E({
|
|
1659
1669
|
getBoundingClientRect() {
|
|
1660
1670
|
return {
|
|
@@ -1671,8 +1681,8 @@ const Mn = {
|
|
|
1671
1681
|
}), s = E(null), {
|
|
1672
1682
|
floatingApi: l,
|
|
1673
1683
|
placement: f
|
|
1674
|
-
} =
|
|
1675
|
-
|
|
1684
|
+
} = Hn(o, r, s, e, t);
|
|
1685
|
+
k(() => e.show, () => {
|
|
1676
1686
|
var d;
|
|
1677
1687
|
o.value = (d = e.show) != null ? d : !1;
|
|
1678
1688
|
});
|
|
@@ -1690,8 +1700,8 @@ const Mn = {
|
|
|
1690
1700
|
const d = {
|
|
1691
1701
|
placement: f.value,
|
|
1692
1702
|
close: c
|
|
1693
|
-
}, [g] =
|
|
1694
|
-
return
|
|
1703
|
+
}, [g] = ot(n.default(d)).filter(Rn);
|
|
1704
|
+
return jn(
|
|
1695
1705
|
g,
|
|
1696
1706
|
{
|
|
1697
1707
|
as: e.as,
|
|
@@ -1706,30 +1716,30 @@ const Mn = {
|
|
|
1706
1716
|
x.as, x.placement, x.strategy, x.offset, x.shift, {
|
|
1707
1717
|
...x.flip
|
|
1708
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;
|
|
1709
|
-
const
|
|
1719
|
+
const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onClick"], Un = /* @__PURE__ */ wt({
|
|
1710
1720
|
__name: "StylePanel",
|
|
1711
1721
|
setup(e) {
|
|
1712
1722
|
const t = E({ value: null }), n = yt(), i = P(
|
|
1713
1723
|
() => n.getters.onContentChange || (() => {
|
|
1714
1724
|
})
|
|
1715
1725
|
), o = P(
|
|
1716
|
-
() =>
|
|
1726
|
+
() => xt(n.getters.diagramElement) + bt
|
|
1717
1727
|
), r = P(() => n.getters.code), s = (d) => {
|
|
1718
1728
|
n.dispatch("updateCode", { code: d }), i.value(d);
|
|
1719
1729
|
}, l = E([]);
|
|
1720
1730
|
let f;
|
|
1721
1731
|
const c = ({ show: d, reference: g, floating: m }) => {
|
|
1722
|
-
let a, h, v,
|
|
1732
|
+
let a, h, v, w, y, b;
|
|
1723
1733
|
n.commit("onMessageClick", (C, A) => {
|
|
1724
1734
|
var O;
|
|
1725
|
-
if (a = C.value.start.start, h =
|
|
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) {
|
|
1726
1736
|
const p = v.trimStart().slice(2).trimStart(), T = p.indexOf("["), L = p.indexOf("]");
|
|
1727
1737
|
b = Boolean(T === 0 && L), b ? l.value = p.slice(T + 1, L).split(",").map((R) => R.trim()) : l.value = [];
|
|
1728
1738
|
}
|
|
1729
1739
|
g.value = {
|
|
1730
1740
|
getBoundingClientRect: () => A.getBoundingClientRect()
|
|
1731
1741
|
}, t.value = C, d.value = !0;
|
|
1732
|
-
}),
|
|
1742
|
+
}), kn(
|
|
1733
1743
|
m,
|
|
1734
1744
|
() => {
|
|
1735
1745
|
d.value = !1, l.value = [];
|
|
@@ -1738,21 +1748,21 @@ const Hn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Wn = ["onCl
|
|
|
1738
1748
|
), f = (C) => {
|
|
1739
1749
|
var A;
|
|
1740
1750
|
if (d.value = !1, !!t.value.value)
|
|
1741
|
-
if (
|
|
1751
|
+
if (y) {
|
|
1742
1752
|
let O = "";
|
|
1743
1753
|
if (b) {
|
|
1744
1754
|
let p;
|
|
1745
|
-
l.value.includes(C) ? p = l.value.filter((T) => T !== C) : p = [...l.value, C], O = `${
|
|
1755
|
+
l.value.includes(C) ? p = l.value.filter((T) => T !== C) : p = [...l.value, C], O = `${w}// [${p.filter(Boolean).join(", ")}] ${v.slice(v.indexOf("]") + 1).trimStart()}`;
|
|
1746
1756
|
} else
|
|
1747
|
-
O = `${
|
|
1757
|
+
O = `${w}// [${C}] ${v.slice((((A = v.match(/\/\/*/)) == null ? void 0 : A.index) || -2) + 2).trimStart()}`;
|
|
1748
1758
|
O.endsWith(`
|
|
1749
1759
|
`) || (O += `
|
|
1750
1760
|
`), s(
|
|
1751
|
-
r.value.slice(0,
|
|
1761
|
+
r.value.slice(0, Lt(r.value, a)) + O + r.value.slice(h)
|
|
1752
1762
|
);
|
|
1753
1763
|
} else
|
|
1754
1764
|
s(
|
|
1755
|
-
r.value.slice(0, h) + `${
|
|
1765
|
+
r.value.slice(0, h) + `${w}// [${C}]
|
|
1756
1766
|
` + r.value.slice(h)
|
|
1757
1767
|
);
|
|
1758
1768
|
};
|
|
@@ -1778,28 +1788,28 @@ const Hn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Wn = ["onCl
|
|
|
1778
1788
|
class: "line-through"
|
|
1779
1789
|
}
|
|
1780
1790
|
];
|
|
1781
|
-
return (d, g) => (
|
|
1791
|
+
return (d, g) => (Pe(), Ct(H(_n), {
|
|
1782
1792
|
key: "tool",
|
|
1783
1793
|
onInitial: c,
|
|
1784
1794
|
placement: "top",
|
|
1785
1795
|
offset: 5,
|
|
1786
|
-
flip: { padding: o
|
|
1796
|
+
flip: { padding: H(o) },
|
|
1787
1797
|
shift: "",
|
|
1788
1798
|
zIndex: "30"
|
|
1789
1799
|
}, {
|
|
1790
|
-
default:
|
|
1791
|
-
ge("div",
|
|
1792
|
-
(
|
|
1793
|
-
onClick: () =>
|
|
1800
|
+
default: At(() => [
|
|
1801
|
+
ge("div", zn, [
|
|
1802
|
+
(Pe(), Ot(ze, null, Tt(u, (m) => ge("div", {
|
|
1803
|
+
onClick: () => H(f)(m.class),
|
|
1794
1804
|
key: m.name
|
|
1795
1805
|
}, [
|
|
1796
1806
|
ge("div", {
|
|
1797
|
-
class:
|
|
1807
|
+
class: St(["w-6 mx-1 py-1 rounded-md text-black text-center cursor-pointer hover:bg-gray-200", [
|
|
1798
1808
|
m.class,
|
|
1799
1809
|
{ "bg-gray-100": l.value.includes(m.class) }
|
|
1800
1810
|
]])
|
|
1801
|
-
},
|
|
1802
|
-
], 8,
|
|
1811
|
+
}, Rt(m.content), 3)
|
|
1812
|
+
], 8, Vn)), 64))
|
|
1803
1813
|
])
|
|
1804
1814
|
], void 0, !0),
|
|
1805
1815
|
_: 1
|
|
@@ -1807,6 +1817,6 @@ const Hn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Wn = ["onCl
|
|
|
1807
1817
|
}
|
|
1808
1818
|
});
|
|
1809
1819
|
export {
|
|
1810
|
-
|
|
1820
|
+
Un as default
|
|
1811
1821
|
};
|
|
1812
|
-
//# sourceMappingURL=StylePanel.
|
|
1822
|
+
//# sourceMappingURL=StylePanel.405afa50.js.map
|