@zenuml/core 3.9.0 → 3.10.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.
- package/dist/{StylePanel.1cb79e61.js → StylePanel.bd502340.js} +314 -345
- package/dist/{core.0ce2e684.js → core.5f00fb17.js} +2055 -2027
- package/dist/zenuml.esm.mjs +2 -2
- package/dist/zenuml.js +51 -51
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as P, u as
|
|
2
|
-
const ze = ["top", "right", "bottom", "left"],
|
|
1
|
+
import { c as P, u as H, r as L, s as je, w as M, g as nt, o as ot, a as Q, F as Ie, m as ge, t as Ae, b as _e, n as it, p as rt, d as st, e as lt, h as te, U as at, f as Te, i as ct, T as ut, j as ft, k as dt, l as mt, q as pt, P as gt, v as Se, x as ht, y as vt, z as he, A as yt, B as wt, C as xt, D as bt, E as Ct, G as Ot, H as Et } from "./core.5f00fb17.js";
|
|
2
|
+
const ze = ["top", "right", "bottom", "left"], Re = ["start", "end"], Pe = /* @__PURE__ */ ze.reduce((e, t) => e.concat(t, t + "-" + Re[0], t + "-" + Re[1]), []), J = Math.min, Y = Math.max, le = Math.round, se = Math.floor, X = (e) => ({
|
|
3
3
|
x: e,
|
|
4
4
|
y: e
|
|
5
|
-
}),
|
|
5
|
+
}), At = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, Tt = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
@@ -23,7 +23,7 @@ function V(e) {
|
|
|
23
23
|
function j(e) {
|
|
24
24
|
return e.split("-")[1];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function He(e) {
|
|
27
27
|
return e === "x" ? "y" : "x";
|
|
28
28
|
}
|
|
29
29
|
function xe(e) {
|
|
@@ -33,22 +33,22 @@ function fe(e) {
|
|
|
33
33
|
return ["top", "bottom"].includes(V(e)) ? "y" : "x";
|
|
34
34
|
}
|
|
35
35
|
function be(e) {
|
|
36
|
-
return
|
|
36
|
+
return He(fe(e));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ve(e, t, n) {
|
|
39
39
|
n === void 0 && (n = !1);
|
|
40
40
|
const i = j(e), o = be(e), r = xe(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 = ce(s)), [s, ce(s)];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function St(e) {
|
|
45
45
|
const t = ce(e);
|
|
46
46
|
return [ae(e), t, ae(t)];
|
|
47
47
|
}
|
|
48
48
|
function ae(e) {
|
|
49
|
-
return e.replace(/start|end/g, (t) =>
|
|
49
|
+
return e.replace(/start|end/g, (t) => Tt[t]);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Rt(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 Tt(e, t, n) {
|
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Pt(e, t, n, i) {
|
|
65
65
|
const o = j(e);
|
|
66
|
-
let r =
|
|
66
|
+
let r = Rt(V(e), n === "start", i);
|
|
67
67
|
return o && (r = r.map((s) => s + "-" + o), t && (r = r.concat(r.map(ae)))), r;
|
|
68
68
|
}
|
|
69
69
|
function ce(e) {
|
|
70
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
70
|
+
return e.replace(/left|right|bottom|top/g, (t) => At[t]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Lt(e) {
|
|
73
73
|
return {
|
|
74
74
|
top: 0,
|
|
75
75
|
right: 0,
|
|
@@ -78,8 +78,8 @@ function Rt(e) {
|
|
|
78
78
|
...e
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof e != "number" ?
|
|
81
|
+
function We(e) {
|
|
82
|
+
return typeof e != "number" ? Lt(e) : {
|
|
83
83
|
top: e,
|
|
84
84
|
right: e,
|
|
85
85
|
bottom: e,
|
|
@@ -95,36 +95,36 @@ function ue(e) {
|
|
|
95
95
|
bottom: e.y + e.height
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Le(e, t, n) {
|
|
99
99
|
let {
|
|
100
100
|
reference: i,
|
|
101
101
|
floating: o
|
|
102
102
|
} = e;
|
|
103
|
-
const r = fe(t), s = be(t), l = xe(s), u = V(t), c = r === "y",
|
|
103
|
+
const r = fe(t), s = be(t), l = xe(s), u = V(t), c = r === "y", d = i.x + i.width / 2 - o.width / 2, m = i.y + i.height / 2 - o.height / 2, p = i[l] / 2 - o[l] / 2;
|
|
104
104
|
let f;
|
|
105
105
|
switch (u) {
|
|
106
106
|
case "top":
|
|
107
107
|
f = {
|
|
108
|
-
x:
|
|
108
|
+
x: d,
|
|
109
109
|
y: i.y - o.height
|
|
110
110
|
};
|
|
111
111
|
break;
|
|
112
112
|
case "bottom":
|
|
113
113
|
f = {
|
|
114
|
-
x:
|
|
114
|
+
x: d,
|
|
115
115
|
y: i.y + i.height
|
|
116
116
|
};
|
|
117
117
|
break;
|
|
118
118
|
case "right":
|
|
119
119
|
f = {
|
|
120
120
|
x: i.x + i.width,
|
|
121
|
-
y:
|
|
121
|
+
y: m
|
|
122
122
|
};
|
|
123
123
|
break;
|
|
124
124
|
case "left":
|
|
125
125
|
f = {
|
|
126
126
|
x: i.x - o.width,
|
|
127
|
-
y:
|
|
127
|
+
y: m
|
|
128
128
|
};
|
|
129
129
|
break;
|
|
130
130
|
default:
|
|
@@ -143,7 +143,7 @@ function Fe(e, t, n) {
|
|
|
143
143
|
}
|
|
144
144
|
return f;
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const Ft = async (e, t, n) => {
|
|
147
147
|
const {
|
|
148
148
|
placement: i = "bottom",
|
|
149
149
|
strategy: o = "absolute",
|
|
@@ -155,9 +155,9 @@ const Pt = async (e, t, n) => {
|
|
|
155
155
|
floating: t,
|
|
156
156
|
strategy: o
|
|
157
157
|
}), {
|
|
158
|
-
x:
|
|
159
|
-
y:
|
|
160
|
-
} =
|
|
158
|
+
x: d,
|
|
159
|
+
y: m
|
|
160
|
+
} = Le(c, i, u), p = i, f = {}, a = 0;
|
|
161
161
|
for (let h = 0; h < l.length; h++) {
|
|
162
162
|
const {
|
|
163
163
|
name: w,
|
|
@@ -168,8 +168,8 @@ const Pt = async (e, t, n) => {
|
|
|
168
168
|
data: C,
|
|
169
169
|
reset: y
|
|
170
170
|
} = await g({
|
|
171
|
-
x:
|
|
172
|
-
y:
|
|
171
|
+
x: d,
|
|
172
|
+
y: m,
|
|
173
173
|
initialPlacement: i,
|
|
174
174
|
placement: p,
|
|
175
175
|
strategy: o,
|
|
@@ -181,7 +181,7 @@ const Pt = async (e, t, n) => {
|
|
|
181
181
|
floating: t
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
if (
|
|
184
|
+
if (d = x != null ? x : d, m = b != null ? b : m, f = {
|
|
185
185
|
...f,
|
|
186
186
|
[w]: {
|
|
187
187
|
...f[w],
|
|
@@ -193,15 +193,15 @@ const Pt = async (e, t, n) => {
|
|
|
193
193
|
floating: t,
|
|
194
194
|
strategy: o
|
|
195
195
|
}) : y.rects), {
|
|
196
|
-
x:
|
|
197
|
-
y:
|
|
198
|
-
} =
|
|
196
|
+
x: d,
|
|
197
|
+
y: m
|
|
198
|
+
} = Le(c, p, u)), h = -1;
|
|
199
199
|
continue;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
return {
|
|
203
|
-
x:
|
|
204
|
-
y:
|
|
203
|
+
x: d,
|
|
204
|
+
y: m,
|
|
205
205
|
placement: p,
|
|
206
206
|
strategy: o,
|
|
207
207
|
middlewareData: f
|
|
@@ -219,16 +219,16 @@ async function ne(e, t) {
|
|
|
219
219
|
strategy: u
|
|
220
220
|
} = e, {
|
|
221
221
|
boundary: c = "clippingAncestors",
|
|
222
|
-
rootBoundary:
|
|
223
|
-
elementContext:
|
|
222
|
+
rootBoundary: d = "viewport",
|
|
223
|
+
elementContext: m = "floating",
|
|
224
224
|
altBoundary: p = !1,
|
|
225
225
|
padding: f = 0
|
|
226
|
-
} = K(t, e), a =
|
|
226
|
+
} = K(t, e), a = We(f), w = l[p ? m === "floating" ? "reference" : "floating" : m], g = ue(await r.getClippingRect({
|
|
227
227
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
|
|
228
228
|
boundary: c,
|
|
229
|
-
rootBoundary:
|
|
229
|
+
rootBoundary: d,
|
|
230
230
|
strategy: u
|
|
231
|
-
})), x =
|
|
231
|
+
})), x = m === "floating" ? {
|
|
232
232
|
...s.floating,
|
|
233
233
|
x: i,
|
|
234
234
|
y: o
|
|
@@ -250,7 +250,7 @@ async function ne(e, t) {
|
|
|
250
250
|
right: (y.right - g.right + a.right) / C.x
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const Bt = (e) => ({
|
|
254
254
|
name: "arrow",
|
|
255
255
|
options: e,
|
|
256
256
|
async fn(t) {
|
|
@@ -264,34 +264,34 @@ const Lt = (e) => ({
|
|
|
264
264
|
middlewareData: u
|
|
265
265
|
} = t, {
|
|
266
266
|
element: c,
|
|
267
|
-
padding:
|
|
267
|
+
padding: d = 0
|
|
268
268
|
} = K(e, t) || {};
|
|
269
269
|
if (c == null)
|
|
270
270
|
return {};
|
|
271
|
-
const
|
|
271
|
+
const m = We(d), p = {
|
|
272
272
|
x: n,
|
|
273
273
|
y: i
|
|
274
274
|
}, f = be(o), a = xe(f), h = await s.getDimensions(c), w = f === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", C = r.reference[a] + r.reference[f] - p[f] - r.floating[a], y = p[f] - r.reference[f], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
275
|
-
let
|
|
276
|
-
(!
|
|
277
|
-
const
|
|
275
|
+
let T = O ? O[b] : 0;
|
|
276
|
+
(!T || !await (s.isElement == null ? void 0 : s.isElement(O))) && (T = l.floating[b] || r.floating[a]);
|
|
277
|
+
const A = C / 2 - y / 2, F = T / 2 - h[a] / 2 - 1, S = J(m[g], F), E = J(m[x], F), R = S, _ = T - h[a] - E, B = T / 2 - h[a] / 2 + A, N = ye(R, B, _), $ = !u.arrow && j(o) != null && B != N && r.reference[a] / 2 - (B < R ? S : E) - h[a] / 2 < 0, z = $ ? B < R ? B - R : B - _ : 0;
|
|
278
278
|
return {
|
|
279
|
-
[f]: p[f] +
|
|
279
|
+
[f]: p[f] + z,
|
|
280
280
|
data: {
|
|
281
281
|
[f]: N,
|
|
282
|
-
centerOffset: B - N -
|
|
282
|
+
centerOffset: B - N - z,
|
|
283
283
|
...$ && {
|
|
284
|
-
alignmentOffset:
|
|
284
|
+
alignmentOffset: z
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
reset: $
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
|
-
function
|
|
291
|
+
function kt(e, t, n) {
|
|
292
292
|
return (e ? [...n.filter((o) => j(o) === e), ...n.filter((o) => j(o) !== e)] : n.filter((o) => V(o) === o)).filter((o) => e ? j(o) === e || (t ? ae(o) !== o : !1) : !0);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Dt = function(e) {
|
|
295
295
|
return e === void 0 && (e = {}), {
|
|
296
296
|
name: "autoPlacement",
|
|
297
297
|
options: e,
|
|
@@ -304,15 +304,15 @@ const Bt = function(e) {
|
|
|
304
304
|
platform: u,
|
|
305
305
|
elements: c
|
|
306
306
|
} = t, {
|
|
307
|
-
crossAxis:
|
|
308
|
-
alignment:
|
|
309
|
-
allowedPlacements: p =
|
|
307
|
+
crossAxis: d = !1,
|
|
308
|
+
alignment: m,
|
|
309
|
+
allowedPlacements: p = Pe,
|
|
310
310
|
autoAlignment: f = !0,
|
|
311
311
|
...a
|
|
312
|
-
} = K(e, t), h =
|
|
312
|
+
} = K(e, t), h = m !== void 0 || p === Pe ? kt(m || null, f, p) : p, w = await ne(t, a), g = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, x = h[g];
|
|
313
313
|
if (x == null)
|
|
314
314
|
return {};
|
|
315
|
-
const b =
|
|
315
|
+
const b = Ve(x, r, await (u.isRTL == null ? void 0 : u.isRTL(c.floating)));
|
|
316
316
|
if (l !== x)
|
|
317
317
|
return {
|
|
318
318
|
reset: {
|
|
@@ -333,13 +333,13 @@ const Bt = function(e) {
|
|
|
333
333
|
placement: O
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
|
-
const
|
|
336
|
+
const T = y.map((S) => {
|
|
337
337
|
const E = j(S.placement);
|
|
338
|
-
return [S.placement, E &&
|
|
339
|
-
}).sort((S, E) => S[1] - E[1]), F = ((o =
|
|
338
|
+
return [S.placement, E && d ? S.overflows.slice(0, 2).reduce((R, _) => R + _, 0) : S.overflows[0], S.overflows];
|
|
339
|
+
}).sort((S, E) => S[1] - E[1]), F = ((o = T.filter((S) => S[2].slice(
|
|
340
340
|
0,
|
|
341
341
|
j(S[0]) ? 2 : 3
|
|
342
|
-
).every((E) => E <= 0))[0]) == null ? void 0 : o[0]) ||
|
|
342
|
+
).every((E) => E <= 0))[0]) == null ? void 0 : o[0]) || T[0][0];
|
|
343
343
|
return F !== l ? {
|
|
344
344
|
data: {
|
|
345
345
|
index: g + 1,
|
|
@@ -351,7 +351,7 @@ const Bt = function(e) {
|
|
|
351
351
|
} : {};
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
|
-
},
|
|
354
|
+
}, Nt = function(e) {
|
|
355
355
|
return e === void 0 && (e = {}), {
|
|
356
356
|
name: "flip",
|
|
357
357
|
options: e,
|
|
@@ -365,8 +365,8 @@ const Bt = function(e) {
|
|
|
365
365
|
platform: u,
|
|
366
366
|
elements: c
|
|
367
367
|
} = t, {
|
|
368
|
-
mainAxis:
|
|
369
|
-
crossAxis:
|
|
368
|
+
mainAxis: d = !0,
|
|
369
|
+
crossAxis: m = !0,
|
|
370
370
|
fallbackPlacements: p,
|
|
371
371
|
fallbackStrategy: f = "bestFit",
|
|
372
372
|
fallbackAxisSideDirection: a = "none",
|
|
@@ -375,36 +375,36 @@ const Bt = function(e) {
|
|
|
375
375
|
} = K(e, t);
|
|
376
376
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
377
377
|
return {};
|
|
378
|
-
const g = V(o), x = V(l) === l, b = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), C = p || (x || !h ? [ce(l)] :
|
|
379
|
-
!p && a !== "none" && C.push(...
|
|
380
|
-
const y = [l, ...C], O = await ne(t, w),
|
|
381
|
-
let
|
|
382
|
-
if (
|
|
383
|
-
const R =
|
|
384
|
-
|
|
378
|
+
const g = V(o), x = V(l) === l, b = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), C = p || (x || !h ? [ce(l)] : St(l));
|
|
379
|
+
!p && a !== "none" && C.push(...Pt(l, h, a, b));
|
|
380
|
+
const y = [l, ...C], O = await ne(t, w), T = [];
|
|
381
|
+
let A = ((i = r.flip) == null ? void 0 : i.overflows) || [];
|
|
382
|
+
if (d && T.push(O[g]), m) {
|
|
383
|
+
const R = Ve(o, s, b);
|
|
384
|
+
T.push(O[R[0]], O[R[1]]);
|
|
385
385
|
}
|
|
386
|
-
if (
|
|
386
|
+
if (A = [...A, {
|
|
387
387
|
placement: o,
|
|
388
|
-
overflows:
|
|
389
|
-
}], !
|
|
388
|
+
overflows: T
|
|
389
|
+
}], !T.every((R) => R <= 0)) {
|
|
390
390
|
var F, S;
|
|
391
391
|
const R = (((F = r.flip) == null ? void 0 : F.index) || 0) + 1, _ = y[R];
|
|
392
392
|
if (_)
|
|
393
393
|
return {
|
|
394
394
|
data: {
|
|
395
395
|
index: R,
|
|
396
|
-
overflows:
|
|
396
|
+
overflows: A
|
|
397
397
|
},
|
|
398
398
|
reset: {
|
|
399
399
|
placement: _
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
|
-
let B = (S =
|
|
402
|
+
let B = (S = A.filter((N) => N.overflows[0] <= 0).sort((N, $) => N.overflows[1] - $.overflows[1])[0]) == null ? void 0 : S.placement;
|
|
403
403
|
if (!B)
|
|
404
404
|
switch (f) {
|
|
405
405
|
case "bestFit": {
|
|
406
406
|
var E;
|
|
407
|
-
const N = (E =
|
|
407
|
+
const N = (E = A.map(($) => [$.placement, $.overflows.filter((z) => z > 0).reduce((z, tt) => z + tt, 0)]).sort(($, z) => $[1] - z[1])[0]) == null ? void 0 : E[0];
|
|
408
408
|
N && (B = N);
|
|
409
409
|
break;
|
|
410
410
|
}
|
|
@@ -423,7 +423,7 @@ const Bt = function(e) {
|
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Fe(e, t) {
|
|
427
427
|
return {
|
|
428
428
|
top: e.top - t.height,
|
|
429
429
|
right: e.right - t.width,
|
|
@@ -431,10 +431,10 @@ function Be(e, t) {
|
|
|
431
431
|
left: e.left - t.width
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Be(e) {
|
|
435
435
|
return ze.some((t) => e[t] >= 0);
|
|
436
436
|
}
|
|
437
|
-
const
|
|
437
|
+
const $t = function(e) {
|
|
438
438
|
return e === void 0 && (e = {}), {
|
|
439
439
|
name: "hide",
|
|
440
440
|
options: e,
|
|
@@ -450,11 +450,11 @@ const Dt = function(e) {
|
|
|
450
450
|
const r = await ne(t, {
|
|
451
451
|
...o,
|
|
452
452
|
elementContext: "reference"
|
|
453
|
-
}), s =
|
|
453
|
+
}), s = Fe(r, n.reference);
|
|
454
454
|
return {
|
|
455
455
|
data: {
|
|
456
456
|
referenceHiddenOffsets: s,
|
|
457
|
-
referenceHidden:
|
|
457
|
+
referenceHidden: Be(s)
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
460
|
}
|
|
@@ -462,11 +462,11 @@ const Dt = function(e) {
|
|
|
462
462
|
const r = await ne(t, {
|
|
463
463
|
...o,
|
|
464
464
|
altBoundary: !0
|
|
465
|
-
}), s =
|
|
465
|
+
}), s = Fe(r, n.floating);
|
|
466
466
|
return {
|
|
467
467
|
data: {
|
|
468
468
|
escapedOffsets: s,
|
|
469
|
-
escaped:
|
|
469
|
+
escaped: Be(s)
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
}
|
|
@@ -476,35 +476,35 @@ const Dt = function(e) {
|
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
478
|
};
|
|
479
|
-
async function
|
|
479
|
+
async function Mt(e, t) {
|
|
480
480
|
const {
|
|
481
481
|
placement: n,
|
|
482
482
|
platform: i,
|
|
483
483
|
elements: o
|
|
484
|
-
} = e, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = V(n), l = j(n), u = fe(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1,
|
|
484
|
+
} = e, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = V(n), l = j(n), u = fe(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = r && u ? -1 : 1, m = K(t, e);
|
|
485
485
|
let {
|
|
486
486
|
mainAxis: p,
|
|
487
487
|
crossAxis: f,
|
|
488
488
|
alignmentAxis: a
|
|
489
|
-
} = typeof
|
|
490
|
-
mainAxis:
|
|
489
|
+
} = typeof m == "number" ? {
|
|
490
|
+
mainAxis: m,
|
|
491
491
|
crossAxis: 0,
|
|
492
492
|
alignmentAxis: null
|
|
493
493
|
} : {
|
|
494
494
|
mainAxis: 0,
|
|
495
495
|
crossAxis: 0,
|
|
496
496
|
alignmentAxis: null,
|
|
497
|
-
...
|
|
497
|
+
...m
|
|
498
498
|
};
|
|
499
499
|
return l && typeof a == "number" && (f = l === "end" ? a * -1 : a), u ? {
|
|
500
|
-
x: f *
|
|
500
|
+
x: f * d,
|
|
501
501
|
y: p * c
|
|
502
502
|
} : {
|
|
503
503
|
x: p * c,
|
|
504
|
-
y: f *
|
|
504
|
+
y: f * d
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
const
|
|
507
|
+
const jt = function(e) {
|
|
508
508
|
return e === void 0 && (e = 0), {
|
|
509
509
|
name: "offset",
|
|
510
510
|
options: e,
|
|
@@ -512,7 +512,7 @@ const $t = function(e) {
|
|
|
512
512
|
const {
|
|
513
513
|
x: n,
|
|
514
514
|
y: i
|
|
515
|
-
} = t, o = await
|
|
515
|
+
} = t, o = await Mt(t, e);
|
|
516
516
|
return {
|
|
517
517
|
x: n + o.x,
|
|
518
518
|
y: i + o.y,
|
|
@@ -520,7 +520,7 @@ const $t = function(e) {
|
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
|
-
},
|
|
523
|
+
}, It = function(e) {
|
|
524
524
|
return e === void 0 && (e = {}), {
|
|
525
525
|
name: "shift",
|
|
526
526
|
options: e,
|
|
@@ -548,20 +548,20 @@ const $t = function(e) {
|
|
|
548
548
|
} = K(e, t), c = {
|
|
549
549
|
x: n,
|
|
550
550
|
y: i
|
|
551
|
-
},
|
|
552
|
-
let f = c[p], a = c[
|
|
551
|
+
}, d = await ne(t, u), m = fe(V(o)), p = He(m);
|
|
552
|
+
let f = c[p], a = c[m];
|
|
553
553
|
if (r) {
|
|
554
|
-
const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = f +
|
|
554
|
+
const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = f + d[w], b = f - d[g];
|
|
555
555
|
f = ye(x, f, b);
|
|
556
556
|
}
|
|
557
557
|
if (s) {
|
|
558
|
-
const w =
|
|
558
|
+
const w = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", x = a + d[w], b = a - d[g];
|
|
559
559
|
a = ye(x, a, b);
|
|
560
560
|
}
|
|
561
561
|
const h = l.fn({
|
|
562
562
|
...t,
|
|
563
563
|
[p]: f,
|
|
564
|
-
[
|
|
564
|
+
[m]: a
|
|
565
565
|
});
|
|
566
566
|
return {
|
|
567
567
|
...h,
|
|
@@ -574,7 +574,7 @@ const $t = function(e) {
|
|
|
574
574
|
};
|
|
575
575
|
};
|
|
576
576
|
function q(e) {
|
|
577
|
-
return
|
|
577
|
+
return Ue(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
578
578
|
}
|
|
579
579
|
function k(e) {
|
|
580
580
|
var t;
|
|
@@ -582,9 +582,9 @@ function k(e) {
|
|
|
582
582
|
}
|
|
583
583
|
function U(e) {
|
|
584
584
|
var t;
|
|
585
|
-
return (t = (
|
|
585
|
+
return (t = (Ue(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Ue(e) {
|
|
588
588
|
return e instanceof Node || e instanceof k(e).Node;
|
|
589
589
|
}
|
|
590
590
|
function W(e) {
|
|
@@ -593,7 +593,7 @@ function W(e) {
|
|
|
593
593
|
function I(e) {
|
|
594
594
|
return e instanceof HTMLElement || e instanceof k(e).HTMLElement;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function ke(e) {
|
|
597
597
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof k(e).ShadowRoot;
|
|
598
598
|
}
|
|
599
599
|
function re(e) {
|
|
@@ -605,14 +605,14 @@ function re(e) {
|
|
|
605
605
|
} = D(e);
|
|
606
606
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !["inline", "contents"].includes(o);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function _t(e) {
|
|
609
609
|
return ["table", "td", "th"].includes(q(e));
|
|
610
610
|
}
|
|
611
611
|
function Ce(e) {
|
|
612
612
|
const t = Oe(), n = D(e);
|
|
613
613
|
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));
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function zt(e) {
|
|
616
616
|
let t = ee(e);
|
|
617
617
|
for (; I(t) && !de(t); ) {
|
|
618
618
|
if (Ce(t))
|
|
@@ -642,20 +642,20 @@ function me(e) {
|
|
|
642
642
|
function ee(e) {
|
|
643
643
|
if (q(e) === "html")
|
|
644
644
|
return e;
|
|
645
|
-
const t = e.assignedSlot || e.parentNode ||
|
|
646
|
-
return
|
|
645
|
+
const t = e.assignedSlot || e.parentNode || ke(e) && e.host || U(e);
|
|
646
|
+
return ke(t) ? t.host : t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Xe(e) {
|
|
649
649
|
const t = ee(e);
|
|
650
|
-
return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : I(t) && re(t) ? t :
|
|
650
|
+
return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : I(t) && re(t) ? t : Xe(t);
|
|
651
651
|
}
|
|
652
652
|
function oe(e, t, n) {
|
|
653
653
|
var i;
|
|
654
654
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
655
|
-
const o =
|
|
655
|
+
const o = Xe(e), r = o === ((i = e.ownerDocument) == null ? void 0 : i.body), s = k(o);
|
|
656
656
|
return r ? t.concat(s, s.visualViewport || [], re(o) ? o : [], s.frameElement && n ? oe(s.frameElement) : []) : t.concat(o, oe(o, [], n));
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function qe(e) {
|
|
659
659
|
const t = D(e);
|
|
660
660
|
let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
|
661
661
|
const o = I(e), r = o ? e.offsetWidth : n, s = o ? e.offsetHeight : i, l = le(n) !== r || le(i) !== s;
|
|
@@ -676,22 +676,22 @@ function Z(e) {
|
|
|
676
676
|
width: i,
|
|
677
677
|
height: o,
|
|
678
678
|
$: r
|
|
679
|
-
} =
|
|
679
|
+
} = qe(t);
|
|
680
680
|
let s = (r ? le(n.width) : n.width) / i, l = (r ? le(n.height) : n.height) / o;
|
|
681
681
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
682
682
|
x: s,
|
|
683
683
|
y: l
|
|
684
684
|
};
|
|
685
685
|
}
|
|
686
|
-
const
|
|
687
|
-
function
|
|
686
|
+
const Ht = /* @__PURE__ */ X(0);
|
|
687
|
+
function Ye(e) {
|
|
688
688
|
const t = k(e);
|
|
689
|
-
return !Oe() || !t.visualViewport ?
|
|
689
|
+
return !Oe() || !t.visualViewport ? Ht : {
|
|
690
690
|
x: t.visualViewport.offsetLeft,
|
|
691
691
|
y: t.visualViewport.offsetTop
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Vt(e, t, n) {
|
|
695
695
|
return t === void 0 && (t = !1), !n || t && n !== k(e) ? !1 : t;
|
|
696
696
|
}
|
|
697
697
|
function G(e, t, n, i) {
|
|
@@ -699,24 +699,24 @@ function G(e, t, n, i) {
|
|
|
699
699
|
const o = e.getBoundingClientRect(), r = Ee(e);
|
|
700
700
|
let s = X(1);
|
|
701
701
|
t && (i ? W(i) && (s = Z(i)) : s = Z(e));
|
|
702
|
-
const l =
|
|
703
|
-
let u = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y,
|
|
702
|
+
const l = Vt(r, n, i) ? Ye(r) : X(0);
|
|
703
|
+
let u = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, d = o.width / s.x, m = o.height / s.y;
|
|
704
704
|
if (r) {
|
|
705
705
|
const p = k(r), f = i && W(i) ? k(i) : i;
|
|
706
706
|
let a = p.frameElement;
|
|
707
707
|
for (; a && i && f !== p; ) {
|
|
708
708
|
const h = Z(a), w = a.getBoundingClientRect(), g = D(a), x = w.left + (a.clientLeft + parseFloat(g.paddingLeft)) * h.x, b = w.top + (a.clientTop + parseFloat(g.paddingTop)) * h.y;
|
|
709
|
-
u *= h.x, c *= h.y,
|
|
709
|
+
u *= h.x, c *= h.y, d *= h.x, m *= h.y, u += x, c += b, a = k(a).frameElement;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
return ue({
|
|
713
|
-
width:
|
|
714
|
-
height:
|
|
713
|
+
width: d,
|
|
714
|
+
height: m,
|
|
715
715
|
x: u,
|
|
716
716
|
y: c
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Wt(e) {
|
|
720
720
|
let {
|
|
721
721
|
rect: t,
|
|
722
722
|
offsetParent: n,
|
|
@@ -741,15 +741,15 @@ function zt(e) {
|
|
|
741
741
|
y: t.y * l.y - s.scrollTop * l.y + u.y
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ut(e) {
|
|
745
745
|
return Array.from(e.getClientRects());
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Ge(e) {
|
|
748
748
|
return G(U(e)).left + me(e).scrollLeft;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Xt(e) {
|
|
751
751
|
const t = U(e), n = me(e), i = e.ownerDocument.body, o = Y(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = Y(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
|
|
752
|
-
let s = -n.scrollLeft +
|
|
752
|
+
let s = -n.scrollLeft + Ge(e);
|
|
753
753
|
const l = -n.scrollTop;
|
|
754
754
|
return D(i).direction === "rtl" && (s += Y(t.clientWidth, i.clientWidth) - o), {
|
|
755
755
|
width: o,
|
|
@@ -758,7 +758,7 @@ function Wt(e) {
|
|
|
758
758
|
y: l
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function qt(e, t) {
|
|
762
762
|
const n = k(e), i = U(e), o = n.visualViewport;
|
|
763
763
|
let r = i.clientWidth, s = i.clientHeight, l = 0, u = 0;
|
|
764
764
|
if (o) {
|
|
@@ -773,7 +773,7 @@ function Ut(e, t) {
|
|
|
773
773
|
y: u
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Yt(e, t) {
|
|
777
777
|
const n = G(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, r = I(e) ? Z(e) : X(1), s = e.clientWidth * r.x, l = e.clientHeight * r.y, u = o * r.x, c = i * r.y;
|
|
778
778
|
return {
|
|
779
779
|
width: s,
|
|
@@ -782,16 +782,16 @@ function Xt(e, t) {
|
|
|
782
782
|
y: c
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function De(e, t, n) {
|
|
786
786
|
let i;
|
|
787
787
|
if (t === "viewport")
|
|
788
|
-
i =
|
|
788
|
+
i = qt(e, n);
|
|
789
789
|
else if (t === "document")
|
|
790
|
-
i =
|
|
790
|
+
i = Xt(U(e));
|
|
791
791
|
else if (W(t))
|
|
792
|
-
i =
|
|
792
|
+
i = Yt(t, n);
|
|
793
793
|
else {
|
|
794
|
-
const o =
|
|
794
|
+
const o = Ye(e);
|
|
795
795
|
i = {
|
|
796
796
|
...t,
|
|
797
797
|
x: t.x - o.x,
|
|
@@ -800,11 +800,11 @@ function Ne(e, t, n) {
|
|
|
800
800
|
}
|
|
801
801
|
return ue(i);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Ke(e, t) {
|
|
804
804
|
const n = ee(e);
|
|
805
|
-
return n === t || !W(n) || de(n) ? !1 : D(n).position === "fixed" ||
|
|
805
|
+
return n === t || !W(n) || de(n) ? !1 : D(n).position === "fixed" || Ke(n, t);
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function Gt(e, t) {
|
|
808
808
|
const n = t.get(e);
|
|
809
809
|
if (n)
|
|
810
810
|
return n;
|
|
@@ -813,21 +813,21 @@ function qt(e, t) {
|
|
|
813
813
|
let s = r ? ee(e) : e;
|
|
814
814
|
for (; W(s) && !de(s); ) {
|
|
815
815
|
const l = D(s), u = Ce(s);
|
|
816
|
-
!u && l.position === "fixed" && (o = null), (r ? !u && !o : !u && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || re(s) && !u &&
|
|
816
|
+
!u && l.position === "fixed" && (o = null), (r ? !u && !o : !u && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || re(s) && !u && Ke(e, s)) ? i = i.filter((d) => d !== s) : o = l, s = ee(s);
|
|
817
817
|
}
|
|
818
818
|
return t.set(e, i), i;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Kt(e) {
|
|
821
821
|
let {
|
|
822
822
|
element: t,
|
|
823
823
|
boundary: n,
|
|
824
824
|
rootBoundary: i,
|
|
825
825
|
strategy: o
|
|
826
826
|
} = e;
|
|
827
|
-
const s = [...n === "clippingAncestors" ?
|
|
828
|
-
const
|
|
829
|
-
return c.top = Y(
|
|
830
|
-
},
|
|
827
|
+
const s = [...n === "clippingAncestors" ? Gt(t, this._c) : [].concat(n), i], l = s[0], u = s.reduce((c, d) => {
|
|
828
|
+
const m = De(t, d, o);
|
|
829
|
+
return c.top = Y(m.top, c.top), c.right = J(m.right, c.right), c.bottom = J(m.bottom, c.bottom), c.left = Y(m.left, c.left), c;
|
|
830
|
+
}, De(t, l, o));
|
|
831
831
|
return {
|
|
832
832
|
width: u.right - u.left,
|
|
833
833
|
height: u.bottom - u.top,
|
|
@@ -835,10 +835,10 @@ function Yt(e) {
|
|
|
835
835
|
y: u.top
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
function
|
|
839
|
-
return
|
|
838
|
+
function Qt(e) {
|
|
839
|
+
return qe(e);
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Zt(e, t, n) {
|
|
842
842
|
const i = I(t), o = U(t), r = n === "fixed", s = G(e, !0, r, t);
|
|
843
843
|
let l = {
|
|
844
844
|
scrollLeft: 0,
|
|
@@ -850,7 +850,7 @@ function Kt(e, t, n) {
|
|
|
850
850
|
const c = G(t, !0, r, t);
|
|
851
851
|
u.x = c.x + t.clientLeft, u.y = c.y + t.clientTop;
|
|
852
852
|
} else
|
|
853
|
-
o && (u.x =
|
|
853
|
+
o && (u.x = Ge(o));
|
|
854
854
|
return {
|
|
855
855
|
x: s.left + l.scrollLeft - u.x,
|
|
856
856
|
y: s.top + l.scrollTop - u.y,
|
|
@@ -858,27 +858,27 @@ function Kt(e, t, n) {
|
|
|
858
858
|
height: s.height
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function Ne(e, t) {
|
|
862
862
|
return !I(e) || D(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Qe(e, t) {
|
|
865
865
|
const n = k(e);
|
|
866
866
|
if (!I(e))
|
|
867
867
|
return n;
|
|
868
|
-
let i =
|
|
869
|
-
for (; i &&
|
|
870
|
-
i =
|
|
871
|
-
return i && (q(i) === "html" || q(i) === "body" && D(i).position === "static" && !Ce(i)) ? n : i ||
|
|
868
|
+
let i = Ne(e, t);
|
|
869
|
+
for (; i && _t(i) && D(i).position === "static"; )
|
|
870
|
+
i = Ne(i, t);
|
|
871
|
+
return i && (q(i) === "html" || q(i) === "body" && D(i).position === "static" && !Ce(i)) ? n : i || zt(e) || n;
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const Jt = async function(e) {
|
|
874
874
|
let {
|
|
875
875
|
reference: t,
|
|
876
876
|
floating: n,
|
|
877
877
|
strategy: i
|
|
878
878
|
} = e;
|
|
879
|
-
const o = this.getOffsetParent ||
|
|
879
|
+
const o = this.getOffsetParent || Qe, r = this.getDimensions;
|
|
880
880
|
return {
|
|
881
|
-
reference:
|
|
881
|
+
reference: Zt(t, await o(n), i),
|
|
882
882
|
floating: {
|
|
883
883
|
x: 0,
|
|
884
884
|
y: 0,
|
|
@@ -886,22 +886,22 @@ const Qt = async function(e) {
|
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
888
|
};
|
|
889
|
-
function
|
|
889
|
+
function en(e) {
|
|
890
890
|
return D(e).direction === "rtl";
|
|
891
891
|
}
|
|
892
|
-
const
|
|
893
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
892
|
+
const tn = {
|
|
893
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Wt,
|
|
894
894
|
getDocumentElement: U,
|
|
895
|
-
getClippingRect:
|
|
896
|
-
getOffsetParent:
|
|
897
|
-
getElementRects:
|
|
898
|
-
getClientRects:
|
|
899
|
-
getDimensions:
|
|
895
|
+
getClippingRect: Kt,
|
|
896
|
+
getOffsetParent: Qe,
|
|
897
|
+
getElementRects: Jt,
|
|
898
|
+
getClientRects: Ut,
|
|
899
|
+
getDimensions: Qt,
|
|
900
900
|
getScale: Z,
|
|
901
901
|
isElement: W,
|
|
902
|
-
isRTL:
|
|
902
|
+
isRTL: en
|
|
903
903
|
};
|
|
904
|
-
function
|
|
904
|
+
function nn(e, t) {
|
|
905
905
|
let n = null, i;
|
|
906
906
|
const o = U(e);
|
|
907
907
|
function r() {
|
|
@@ -911,13 +911,13 @@ function en(e, t) {
|
|
|
911
911
|
l === void 0 && (l = !1), u === void 0 && (u = 1), r();
|
|
912
912
|
const {
|
|
913
913
|
left: c,
|
|
914
|
-
top:
|
|
915
|
-
width:
|
|
914
|
+
top: d,
|
|
915
|
+
width: m,
|
|
916
916
|
height: p
|
|
917
917
|
} = e.getBoundingClientRect();
|
|
918
|
-
if (l || t(), !
|
|
918
|
+
if (l || t(), !m || !p)
|
|
919
919
|
return;
|
|
920
|
-
const f = se(
|
|
920
|
+
const f = se(d), a = se(o.clientWidth - (c + m)), h = se(o.clientHeight - (d + p)), w = se(c), x = {
|
|
921
921
|
rootMargin: -f + "px " + -a + "px " + -h + "px " + -w + "px",
|
|
922
922
|
threshold: Y(0, J(1, u)) || 1
|
|
923
923
|
};
|
|
@@ -945,7 +945,7 @@ function en(e, t) {
|
|
|
945
945
|
}
|
|
946
946
|
return s(!0), r;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function on(e, t, n, i) {
|
|
949
949
|
i === void 0 && (i = {});
|
|
950
950
|
const {
|
|
951
951
|
ancestorScroll: o = !0,
|
|
@@ -953,13 +953,13 @@ function tn(e, t, n, i) {
|
|
|
953
953
|
elementResize: s = typeof ResizeObserver == "function",
|
|
954
954
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
955
955
|
animationFrame: u = !1
|
|
956
|
-
} = i, c = Ee(e),
|
|
957
|
-
|
|
956
|
+
} = i, c = Ee(e), d = o || r ? [...c ? oe(c) : [], ...oe(t)] : [];
|
|
957
|
+
d.forEach((g) => {
|
|
958
958
|
o && g.addEventListener("scroll", n, {
|
|
959
959
|
passive: !0
|
|
960
960
|
}), r && g.addEventListener("resize", n);
|
|
961
961
|
});
|
|
962
|
-
const
|
|
962
|
+
const m = c && l ? nn(c, n) : null;
|
|
963
963
|
let p = -1, f = null;
|
|
964
964
|
s && (f = new ResizeObserver((g) => {
|
|
965
965
|
let [x] = g;
|
|
@@ -974,20 +974,20 @@ function tn(e, t, n, i) {
|
|
|
974
974
|
h && (g.x !== h.x || g.y !== h.y || g.width !== h.width || g.height !== h.height) && n(), h = g, a = requestAnimationFrame(w);
|
|
975
975
|
}
|
|
976
976
|
return n(), () => {
|
|
977
|
-
|
|
977
|
+
d.forEach((g) => {
|
|
978
978
|
o && g.removeEventListener("scroll", n), r && g.removeEventListener("resize", n);
|
|
979
|
-
}),
|
|
979
|
+
}), m && m(), f && f.disconnect(), f = null, u && cancelAnimationFrame(a);
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
|
-
const
|
|
982
|
+
const rn = (e, t, n) => {
|
|
983
983
|
const i = /* @__PURE__ */ new Map(), o = {
|
|
984
|
-
platform:
|
|
984
|
+
platform: tn,
|
|
985
985
|
...n
|
|
986
986
|
}, r = {
|
|
987
987
|
...o.platform,
|
|
988
988
|
_c: i
|
|
989
989
|
};
|
|
990
|
-
return
|
|
990
|
+
return Ft(e, t, {
|
|
991
991
|
...o,
|
|
992
992
|
platform: r
|
|
993
993
|
});
|
|
@@ -996,39 +996,39 @@ function we(e) {
|
|
|
996
996
|
var t;
|
|
997
997
|
return (t = e == null ? void 0 : e.$el) != null ? t : e;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function sn(e) {
|
|
1000
1000
|
return {
|
|
1001
1001
|
name: "arrow",
|
|
1002
1002
|
options: e,
|
|
1003
1003
|
fn(t) {
|
|
1004
|
-
const n = we(
|
|
1005
|
-
return n == null ? {} :
|
|
1004
|
+
const n = we(H(e.element));
|
|
1005
|
+
return n == null ? {} : Bt({
|
|
1006
1006
|
element: n,
|
|
1007
1007
|
padding: e.padding
|
|
1008
1008
|
}).fn(t);
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function ln(e, t, n) {
|
|
1013
1013
|
n === void 0 && (n = {});
|
|
1014
1014
|
const i = n.whileElementsMounted, o = P(() => {
|
|
1015
1015
|
var y;
|
|
1016
|
-
return (y =
|
|
1017
|
-
}), r = P(() =>
|
|
1016
|
+
return (y = H(n.open)) != null ? y : !0;
|
|
1017
|
+
}), r = P(() => H(n.middleware)), s = P(() => {
|
|
1018
1018
|
var y;
|
|
1019
|
-
return (y =
|
|
1019
|
+
return (y = H(n.placement)) != null ? y : "bottom";
|
|
1020
1020
|
}), l = P(() => {
|
|
1021
1021
|
var y;
|
|
1022
|
-
return (y =
|
|
1023
|
-
}), u = P(() => we(e.value)), c = P(() => we(t.value)),
|
|
1022
|
+
return (y = H(n.strategy)) != null ? y : "absolute";
|
|
1023
|
+
}), u = P(() => we(e.value)), c = P(() => we(t.value)), d = L(null), m = L(null), p = L(l.value), f = L(s.value), a = je({}), h = L(!1);
|
|
1024
1024
|
let w;
|
|
1025
1025
|
function g() {
|
|
1026
|
-
u.value == null || c.value == null ||
|
|
1026
|
+
u.value == null || c.value == null || rn(u.value, c.value, {
|
|
1027
1027
|
middleware: r.value,
|
|
1028
1028
|
placement: s.value,
|
|
1029
1029
|
strategy: l.value
|
|
1030
1030
|
}).then((y) => {
|
|
1031
|
-
|
|
1031
|
+
d.value = y.x, m.value = y.y, p.value = y.strategy, f.value = y.placement, a.value = y.middlewareData, h.value = !0;
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
1034
|
function x() {
|
|
@@ -1053,9 +1053,9 @@ function rn(e, t, n) {
|
|
|
1053
1053
|
flush: "sync"
|
|
1054
1054
|
}), M(o, C, {
|
|
1055
1055
|
flush: "sync"
|
|
1056
|
-
}),
|
|
1057
|
-
x: Q(
|
|
1058
|
-
y: Q(
|
|
1056
|
+
}), nt() && ot(x), {
|
|
1057
|
+
x: Q(d),
|
|
1058
|
+
y: Q(m),
|
|
1059
1059
|
strategy: Q(p),
|
|
1060
1060
|
placement: Q(f),
|
|
1061
1061
|
middlewareData: Q(a),
|
|
@@ -1063,7 +1063,7 @@ function rn(e, t, n) {
|
|
|
1063
1063
|
update: g
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var an = Object.defineProperty, cn = (e, t, n) => t in e ? an(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, un = (e, t, n) => (cn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1067
1067
|
function ie(e) {
|
|
1068
1068
|
var n;
|
|
1069
1069
|
if (e == null || e.value == null)
|
|
@@ -1071,9 +1071,9 @@ function ie(e) {
|
|
|
1071
1071
|
const t = (n = e.value.$el) != null ? n : e.value;
|
|
1072
1072
|
return t.$el ? ie(L(t)) : t;
|
|
1073
1073
|
}
|
|
1074
|
-
class
|
|
1074
|
+
class fn {
|
|
1075
1075
|
constructor() {
|
|
1076
|
-
|
|
1076
|
+
un(this, "current", this.detect());
|
|
1077
1077
|
}
|
|
1078
1078
|
set(t) {
|
|
1079
1079
|
this.current !== t && (this.current = t);
|
|
@@ -1091,17 +1091,17 @@ class cn {
|
|
|
1091
1091
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
const pe = new
|
|
1095
|
-
function
|
|
1096
|
-
return e.reduce((t, n) => n.type ===
|
|
1094
|
+
const pe = new fn();
|
|
1095
|
+
function Ze(e) {
|
|
1096
|
+
return e.reduce((t, n) => n.type === Ie ? t.concat(Ze(n.children)) : t.concat(n), []);
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function dn(e) {
|
|
1099
1099
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return e =
|
|
1101
|
+
function $e(e) {
|
|
1102
|
+
return e = H(e), e && (e == null ? void 0 : e.nodeType) !== Node.COMMENT_NODE;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function mn(e) {
|
|
1105
1105
|
if (pe.isServer)
|
|
1106
1106
|
return null;
|
|
1107
1107
|
if (e instanceof Node)
|
|
@@ -1113,7 +1113,7 @@ function fn(e) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return document;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function pn(e, t, n, i, o) {
|
|
1117
1117
|
M([
|
|
1118
1118
|
() => o.offset,
|
|
1119
1119
|
() => o.flip,
|
|
@@ -1124,29 +1124,29 @@ function dn(e, t, n, i, o) {
|
|
|
1124
1124
|
() => o.middleware
|
|
1125
1125
|
], () => {
|
|
1126
1126
|
const r = [];
|
|
1127
|
-
(typeof o.offset == "number" || typeof o.offset == "object" || typeof o.offset == "function") && r.push(
|
|
1127
|
+
(typeof o.offset == "number" || typeof o.offset == "object" || typeof o.offset == "function") && r.push(jt(o.offset)), (o.flip === !0 || typeof o.flip == "number" || typeof o.flip == "object") && r.push(Nt({
|
|
1128
1128
|
padding: typeof o.flip == "number" ? o.flip : void 0,
|
|
1129
1129
|
...typeof o.flip == "object" ? o.flip : {}
|
|
1130
|
-
})), (o.shift === !0 || typeof o.shift == "number" || typeof o.shift == "object") && r.push(
|
|
1130
|
+
})), (o.shift === !0 || typeof o.shift == "number" || typeof o.shift == "object") && r.push(It({
|
|
1131
1131
|
padding: typeof o.shift == "number" ? o.shift : void 0,
|
|
1132
1132
|
...typeof o.shift == "object" ? o.shift : {}
|
|
1133
|
-
})), (o.autoPlacement === !0 || typeof o.autoPlacement == "object") && r.push(
|
|
1133
|
+
})), (o.autoPlacement === !0 || typeof o.autoPlacement == "object") && r.push(Dt(
|
|
1134
1134
|
typeof o.autoPlacement == "object" ? o.autoPlacement : void 0
|
|
1135
|
-
)), (o.arrow === !0 || typeof o.arrow == "number") && r.push(
|
|
1135
|
+
)), (o.arrow === !0 || typeof o.arrow == "number") && r.push(sn({
|
|
1136
1136
|
element: i,
|
|
1137
1137
|
padding: o.arrow === !0 ? 0 : o.arrow
|
|
1138
1138
|
})), r.push(...typeof o.middleware == "function" ? o.middleware({
|
|
1139
1139
|
referenceEl: t,
|
|
1140
1140
|
floatingEl: n
|
|
1141
|
-
}) : o.middleware || []), (o.hide === !0 || typeof o.hide == "object") && r.push(
|
|
1141
|
+
}) : o.middleware || []), (o.hide === !0 || typeof o.hide == "object") && r.push($t(
|
|
1142
1142
|
typeof o.hide == "object" ? o.hide : void 0
|
|
1143
1143
|
)), e.value = r;
|
|
1144
1144
|
}, { immediate: !0 });
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function gn(e, t, n) {
|
|
1147
1147
|
let i = () => {
|
|
1148
1148
|
};
|
|
1149
|
-
|
|
1149
|
+
_e(() => {
|
|
1150
1150
|
if (e && pe.isClient && typeof ResizeObserver < "u" && t.value && t.value instanceof Element) {
|
|
1151
1151
|
const o = new ResizeObserver(([r]) => {
|
|
1152
1152
|
n.value = r.borderBoxSize.reduce((s, { inlineSize: l }) => s + l, 0);
|
|
@@ -1155,11 +1155,11 @@ function mn(e, t, n) {
|
|
|
1155
1155
|
o.disconnect(), n.value = null;
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
|
-
}),
|
|
1158
|
+
}), st(() => {
|
|
1159
1159
|
i();
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
|
-
const
|
|
1162
|
+
const hn = (e) => {
|
|
1163
1163
|
switch (e) {
|
|
1164
1164
|
case "top":
|
|
1165
1165
|
return "origin-bottom";
|
|
@@ -1185,14 +1185,14 @@ const pn = (e) => {
|
|
|
1185
1185
|
return "";
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
|
-
function
|
|
1188
|
+
function vn(e, t) {
|
|
1189
1189
|
const n = P(() => {
|
|
1190
1190
|
if (typeof e.originClass == "function")
|
|
1191
1191
|
return e.originClass(t.value);
|
|
1192
1192
|
if (typeof e.originClass == "string")
|
|
1193
1193
|
return e.originClass;
|
|
1194
1194
|
if (e.tailwindcssOriginClass)
|
|
1195
|
-
return
|
|
1195
|
+
return hn(t.value);
|
|
1196
1196
|
}), i = P(
|
|
1197
1197
|
() => e.enter || n.value ? `${e.enter || ""} ${n.value || ""}` : void 0
|
|
1198
1198
|
), o = P(
|
|
@@ -1200,7 +1200,7 @@ function gn(e, t) {
|
|
|
1200
1200
|
);
|
|
1201
1201
|
return { originClassRef: n, enterActiveClassRef: i, leaveActiveClassRef: o };
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function Je(e, t, ...n) {
|
|
1204
1204
|
if (e in t) {
|
|
1205
1205
|
const o = t[e];
|
|
1206
1206
|
return typeof o == "function" ? o(...n) : o;
|
|
@@ -1210,9 +1210,9 @@ function et(e, t, ...n) {
|
|
|
1210
1210
|
t
|
|
1211
1211
|
).map((o) => `"${o}"`).join(", ")}.`
|
|
1212
1212
|
);
|
|
1213
|
-
throw Error.captureStackTrace && Error.captureStackTrace(i,
|
|
1213
|
+
throw Error.captureStackTrace && Error.captureStackTrace(i, Je), i;
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1215
|
+
const Me = [
|
|
1216
1216
|
"[contentEditable=true]",
|
|
1217
1217
|
"[tabindex]",
|
|
1218
1218
|
"a[href]",
|
|
@@ -1225,17 +1225,17 @@ const je = [
|
|
|
1225
1225
|
].map(
|
|
1226
1226
|
(e) => `${e}:not([tabindex='-1'])`
|
|
1227
1227
|
).join(",");
|
|
1228
|
-
var
|
|
1229
|
-
function
|
|
1228
|
+
var et = /* @__PURE__ */ ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(et || {});
|
|
1229
|
+
function yn(e, t = 0) {
|
|
1230
1230
|
var n;
|
|
1231
|
-
return e === ((n =
|
|
1231
|
+
return e === ((n = mn(e)) == null ? void 0 : n.body) ? !1 : Je(t, {
|
|
1232
1232
|
0() {
|
|
1233
|
-
return e.matches(
|
|
1233
|
+
return e.matches(Me);
|
|
1234
1234
|
},
|
|
1235
1235
|
1() {
|
|
1236
1236
|
let i = e;
|
|
1237
1237
|
for (; i !== null; ) {
|
|
1238
|
-
if (i.matches(
|
|
1238
|
+
if (i.matches(Me))
|
|
1239
1239
|
return !0;
|
|
1240
1240
|
i = i.parentElement;
|
|
1241
1241
|
}
|
|
@@ -1244,28 +1244,28 @@ function hn(e, t = 0) {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
1246
|
function ve(e, t, n) {
|
|
1247
|
-
pe.isServer ||
|
|
1247
|
+
pe.isServer || lt((i) => {
|
|
1248
1248
|
document.addEventListener(e, t, n), i(() => document.removeEventListener(e, t, n));
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function wn(e, t, n = P(() => !0)) {
|
|
1252
1252
|
function i(r, s) {
|
|
1253
1253
|
if (!n.value || r.defaultPrevented)
|
|
1254
1254
|
return;
|
|
1255
1255
|
const l = s(r);
|
|
1256
1256
|
if (l === null || !l.getRootNode().contains(l))
|
|
1257
1257
|
return;
|
|
1258
|
-
const u = function c(
|
|
1259
|
-
return typeof
|
|
1258
|
+
const u = function c(d) {
|
|
1259
|
+
return typeof d == "function" ? c(d()) : Array.isArray(d) || d instanceof Set ? d : [d];
|
|
1260
1260
|
}(e);
|
|
1261
1261
|
for (const c of u) {
|
|
1262
1262
|
if (c === null)
|
|
1263
1263
|
continue;
|
|
1264
|
-
const
|
|
1265
|
-
if (
|
|
1264
|
+
const d = c instanceof HTMLElement ? c : ie(c);
|
|
1265
|
+
if (d != null && d.contains(l) || r.composed && r.composedPath().includes(d))
|
|
1266
1266
|
return;
|
|
1267
1267
|
}
|
|
1268
|
-
return !
|
|
1268
|
+
return !yn(l, et.Loose) && l.tabIndex !== -1 && r.preventDefault(), t(r, l);
|
|
1269
1269
|
}
|
|
1270
1270
|
const o = L(null);
|
|
1271
1271
|
ve("mousedown", (r) => {
|
|
@@ -1282,7 +1282,7 @@ function vn(e, t, n = P(() => !0)) {
|
|
|
1282
1282
|
() => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null
|
|
1283
1283
|
), !0);
|
|
1284
1284
|
}
|
|
1285
|
-
const
|
|
1285
|
+
const xn = Symbol("ArrowContext"), v = {
|
|
1286
1286
|
as: {
|
|
1287
1287
|
type: [String, Function],
|
|
1288
1288
|
default: "template"
|
|
@@ -1370,11 +1370,11 @@ const yn = Symbol("ArrowContext"), v = {
|
|
|
1370
1370
|
default: () => []
|
|
1371
1371
|
}
|
|
1372
1372
|
};
|
|
1373
|
-
function
|
|
1374
|
-
const { floatingRef: o, props: r, mounted: s, show: l, x: u, y: c, placement:
|
|
1373
|
+
function bn(e, t, n, i) {
|
|
1374
|
+
const { floatingRef: o, props: r, mounted: s, show: l, x: u, y: c, placement: d, strategy: m, referenceElWidth: p, updateFloating: f } = i, a = ge(
|
|
1375
1375
|
{ ...r, as: r.floatingAs },
|
|
1376
1376
|
t
|
|
1377
|
-
), { enterActiveClassRef: h, leaveActiveClassRef: w } =
|
|
1377
|
+
), { enterActiveClassRef: h, leaveActiveClassRef: w } = vn(a, d), g = {
|
|
1378
1378
|
enterActiveClass: h.value,
|
|
1379
1379
|
enterFromClass: a.enterFrom,
|
|
1380
1380
|
enterToClass: a.enterTo,
|
|
@@ -1404,7 +1404,7 @@ function wn(e, t, n, i) {
|
|
|
1404
1404
|
}, C = {
|
|
1405
1405
|
style: {
|
|
1406
1406
|
...!a.dialog && a.transform ? {
|
|
1407
|
-
position:
|
|
1407
|
+
position: m.value,
|
|
1408
1408
|
zIndex: a.zIndex,
|
|
1409
1409
|
top: "0px",
|
|
1410
1410
|
left: "0px",
|
|
@@ -1412,7 +1412,7 @@ function wn(e, t, n, i) {
|
|
|
1412
1412
|
bottom: "auto",
|
|
1413
1413
|
transform: `translate(${Math.round(u.value || 0)}px,${Math.round(c.value || 0)}px)`
|
|
1414
1414
|
} : {
|
|
1415
|
-
position:
|
|
1415
|
+
position: m.value,
|
|
1416
1416
|
zIndex: a.zIndex,
|
|
1417
1417
|
top: `${c.value || 0}px`,
|
|
1418
1418
|
left: `${u.value || 0}px`
|
|
@@ -1420,54 +1420,54 @@ function wn(e, t, n, i) {
|
|
|
1420
1420
|
width: a.adaptiveWidth && typeof p.value == "number" ? `${p.value}px` : void 0
|
|
1421
1421
|
}
|
|
1422
1422
|
};
|
|
1423
|
-
function y(
|
|
1424
|
-
return a.portal ? te(
|
|
1423
|
+
function y(A) {
|
|
1424
|
+
return a.portal ? te(at, () => A) : A;
|
|
1425
1425
|
}
|
|
1426
|
-
function O(
|
|
1426
|
+
function O(A) {
|
|
1427
1427
|
const F = ge(
|
|
1428
1428
|
C,
|
|
1429
1429
|
n,
|
|
1430
1430
|
a.dialog ? {} : { ref: o }
|
|
1431
1431
|
);
|
|
1432
|
-
return a.as === "template" ?
|
|
1432
|
+
return a.as === "template" ? A : typeof a.as == "string" ? te(a.as, F, A) : te(a.as, F, () => A);
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
function
|
|
1434
|
+
function T() {
|
|
1435
|
+
function A() {
|
|
1436
1436
|
var F;
|
|
1437
1437
|
const S = a.as === "template" ? ge(
|
|
1438
1438
|
C,
|
|
1439
1439
|
n,
|
|
1440
1440
|
a.dialog ? {} : { ref: o }
|
|
1441
|
-
) : null, E =
|
|
1442
|
-
return ((F = E.props) == null ? void 0 : F.unmount) === !1 ? (f(), E) : typeof a.show != "boolean" || a.show ? E :
|
|
1441
|
+
) : null, E = ft(e, S);
|
|
1442
|
+
return ((F = E.props) == null ? void 0 : F.unmount) === !1 ? (f(), E) : typeof a.show != "boolean" || a.show ? E : Te();
|
|
1443
1443
|
}
|
|
1444
|
-
return pe.isServer ? s.value && a.show ?
|
|
1445
|
-
key: `placement-${
|
|
1444
|
+
return pe.isServer ? s.value && a.show ? A() : Te() : a.transitionChild ? te(ct, {
|
|
1445
|
+
key: `placement-${d.value}`,
|
|
1446
1446
|
...a.dialog ? { ref: o } : {},
|
|
1447
1447
|
as: "template",
|
|
1448
1448
|
...b
|
|
1449
|
-
},
|
|
1449
|
+
}, A) : te(ut, {
|
|
1450
1450
|
...a.dialog ? { ref: o } : {},
|
|
1451
1451
|
...x
|
|
1452
|
-
},
|
|
1452
|
+
}, A);
|
|
1453
1453
|
}
|
|
1454
1454
|
return y(
|
|
1455
1455
|
O(
|
|
1456
|
-
|
|
1456
|
+
T()
|
|
1457
1457
|
)
|
|
1458
1458
|
);
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1461
|
-
const r = L(!1), s =
|
|
1462
|
-
() =>
|
|
1463
|
-
), { x: h, y: w, placement: g, strategy: x, middlewareData: b, update: C } =
|
|
1460
|
+
function Cn(e, t, n, i, o) {
|
|
1461
|
+
const r = L(!1), s = Ae(i, "placement"), l = Ae(i, "strategy"), u = je({}), c = L(null), d = L(void 0), m = L(void 0), p = P(() => ie(t)), f = P(() => ie(n)), a = P(
|
|
1462
|
+
() => $e(p) && $e(f)
|
|
1463
|
+
), { x: h, y: w, placement: g, strategy: x, middlewareData: b, update: C } = ln(p, f, {
|
|
1464
1464
|
placement: s,
|
|
1465
1465
|
strategy: l,
|
|
1466
1466
|
middleware: u,
|
|
1467
1467
|
whileElementsMounted: () => {
|
|
1468
1468
|
}
|
|
1469
1469
|
}), y = L(null);
|
|
1470
|
-
|
|
1470
|
+
_e(() => {
|
|
1471
1471
|
r.value = !0;
|
|
1472
1472
|
}), M(e, (E, R) => {
|
|
1473
1473
|
E && !R ? o("show") : !E && R && o("hide");
|
|
@@ -1475,7 +1475,7 @@ function xn(e, t, n, i, o) {
|
|
|
1475
1475
|
function O() {
|
|
1476
1476
|
a.value && (C(), o("update"));
|
|
1477
1477
|
}
|
|
1478
|
-
M([s, l, u], O, { flush: "sync" }),
|
|
1478
|
+
M([s, l, u], O, { flush: "sync" }), pn(
|
|
1479
1479
|
u,
|
|
1480
1480
|
p,
|
|
1481
1481
|
f,
|
|
@@ -1483,10 +1483,10 @@ function xn(e, t, n, i, o) {
|
|
|
1483
1483
|
i
|
|
1484
1484
|
), M(b, () => {
|
|
1485
1485
|
const E = b.value.arrow;
|
|
1486
|
-
|
|
1487
|
-
}),
|
|
1488
|
-
if (await
|
|
1489
|
-
const B =
|
|
1486
|
+
d.value = E == null ? void 0 : E.x, m.value = E == null ? void 0 : E.y;
|
|
1487
|
+
}), gn(i.adaptiveWidth, p, y), M(e, async (E, R, _) => {
|
|
1488
|
+
if (await it(), e.value && a.value && i.autoUpdate) {
|
|
1489
|
+
const B = on(
|
|
1490
1490
|
p.value,
|
|
1491
1491
|
f.value,
|
|
1492
1492
|
O,
|
|
@@ -1495,13 +1495,13 @@ function xn(e, t, n, i, o) {
|
|
|
1495
1495
|
_(B);
|
|
1496
1496
|
}
|
|
1497
1497
|
}, { flush: "post", immediate: !0 });
|
|
1498
|
-
const
|
|
1498
|
+
const T = L(!0);
|
|
1499
1499
|
M(p, () => {
|
|
1500
|
-
!(p.value instanceof Element) && a.value &&
|
|
1501
|
-
|
|
1500
|
+
!(p.value instanceof Element) && a.value && T.value && (T.value = !1, window.requestAnimationFrame(() => {
|
|
1501
|
+
T.value = !0, O();
|
|
1502
1502
|
}));
|
|
1503
1503
|
}, { flush: "sync" });
|
|
1504
|
-
const
|
|
1504
|
+
const A = {
|
|
1505
1505
|
referenceRef: t,
|
|
1506
1506
|
placement: g
|
|
1507
1507
|
}, F = {
|
|
@@ -1518,15 +1518,15 @@ function xn(e, t, n, i, o) {
|
|
|
1518
1518
|
}, S = {
|
|
1519
1519
|
ref: c,
|
|
1520
1520
|
placement: g,
|
|
1521
|
-
x:
|
|
1522
|
-
y:
|
|
1521
|
+
x: d,
|
|
1522
|
+
y: m
|
|
1523
1523
|
};
|
|
1524
|
-
return
|
|
1524
|
+
return rt(xn, S), { referenceApi: A, floatingApi: F, arrowApi: S, x: h, y: w, placement: g, strategy: x, referenceEl: p, floatingEl: f, middlewareData: b, update: O };
|
|
1525
1525
|
}
|
|
1526
1526
|
({
|
|
1527
1527
|
...v.as
|
|
1528
1528
|
});
|
|
1529
|
-
const
|
|
1529
|
+
const On = {
|
|
1530
1530
|
as: v.as,
|
|
1531
1531
|
show: v.show,
|
|
1532
1532
|
placement: v.placement,
|
|
@@ -1552,14 +1552,14 @@ const bn = {
|
|
|
1552
1552
|
portal: v.portal,
|
|
1553
1553
|
transform: v.transform,
|
|
1554
1554
|
middleware: v.middleware
|
|
1555
|
-
},
|
|
1555
|
+
}, En = {
|
|
1556
1556
|
name: "FloatVirtual",
|
|
1557
1557
|
inheritAttrs: !1,
|
|
1558
|
-
props:
|
|
1558
|
+
props: On,
|
|
1559
1559
|
emits: ["initial", "show", "hide", "update"],
|
|
1560
1560
|
setup(e, { emit: t, slots: n, attrs: i }) {
|
|
1561
|
-
var
|
|
1562
|
-
const o = L((
|
|
1561
|
+
var d;
|
|
1562
|
+
const o = L((d = e.show) != null ? d : !1), r = L({
|
|
1563
1563
|
getBoundingClientRect() {
|
|
1564
1564
|
return {
|
|
1565
1565
|
x: 0,
|
|
@@ -1575,10 +1575,10 @@ const bn = {
|
|
|
1575
1575
|
}), s = L(null), {
|
|
1576
1576
|
floatingApi: l,
|
|
1577
1577
|
placement: u
|
|
1578
|
-
} =
|
|
1578
|
+
} = Cn(o, r, s, e, t);
|
|
1579
1579
|
M(() => e.show, () => {
|
|
1580
|
-
var
|
|
1581
|
-
o.value = (
|
|
1580
|
+
var m;
|
|
1581
|
+
o.value = (m = e.show) != null ? m : !1;
|
|
1582
1582
|
});
|
|
1583
1583
|
function c() {
|
|
1584
1584
|
o.value = !1;
|
|
@@ -1591,11 +1591,11 @@ const bn = {
|
|
|
1591
1591
|
}), () => {
|
|
1592
1592
|
if (!n.default)
|
|
1593
1593
|
return;
|
|
1594
|
-
const
|
|
1594
|
+
const m = {
|
|
1595
1595
|
placement: u.value,
|
|
1596
1596
|
close: c
|
|
1597
|
-
}, [p] =
|
|
1598
|
-
return
|
|
1597
|
+
}, [p] = Ze(n.default(m)).filter(dn);
|
|
1598
|
+
return bn(
|
|
1599
1599
|
p,
|
|
1600
1600
|
{
|
|
1601
1601
|
as: e.as,
|
|
@@ -1610,81 +1610,50 @@ const bn = {
|
|
|
1610
1610
|
v.as, v.placement, v.strategy, v.offset, v.shift, {
|
|
1611
1611
|
...v.flip
|
|
1612
1612
|
}, v.arrow, v.autoPlacement, v.hide, v.autoUpdate, v.zIndex, v.transitionName, v.transitionType, v.enter, v.enterFrom, v.enterTo, v.leave, v.leaveFrom, v.leaveTo, v.originClass, v.tailwindcssOriginClass, v.transform, v.middleware;
|
|
1613
|
-
const
|
|
1614
|
-
let n = t;
|
|
1615
|
-
for (; n >= 0; ) {
|
|
1616
|
-
if (e[n] === `
|
|
1617
|
-
`)
|
|
1618
|
-
return n + 1;
|
|
1619
|
-
n--;
|
|
1620
|
-
}
|
|
1621
|
-
return 0;
|
|
1622
|
-
}, On = (e, t) => {
|
|
1623
|
-
const n = Ae(e, t);
|
|
1624
|
-
if (n === 0)
|
|
1625
|
-
return "";
|
|
1626
|
-
let i = n - 2;
|
|
1627
|
-
for (; i >= 0; ) {
|
|
1628
|
-
if (e[i] === `
|
|
1629
|
-
`)
|
|
1630
|
-
return e.slice(i + 1, n);
|
|
1631
|
-
i--;
|
|
1632
|
-
}
|
|
1633
|
-
return e.slice(0, n);
|
|
1634
|
-
}, En = (e, t) => {
|
|
1635
|
-
const n = Ae(e, t);
|
|
1636
|
-
if (n === 0)
|
|
1637
|
-
return 0;
|
|
1638
|
-
let i = n - 2;
|
|
1639
|
-
for (; i >= 0; ) {
|
|
1640
|
-
if (e[i] === `
|
|
1641
|
-
`)
|
|
1642
|
-
return i + 1;
|
|
1643
|
-
i--;
|
|
1644
|
-
}
|
|
1645
|
-
return 0;
|
|
1646
|
-
}, An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onClick"], Rn = /* @__PURE__ */ mt({
|
|
1613
|
+
const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onClick"], Rn = /* @__PURE__ */ dt({
|
|
1647
1614
|
__name: "StylePanel",
|
|
1648
1615
|
setup(e) {
|
|
1649
|
-
const t = L({ value: null }), n =
|
|
1616
|
+
const t = L({ value: null }), n = mt(), i = P(
|
|
1650
1617
|
() => n.getters.onContentChange || (() => {
|
|
1651
1618
|
})
|
|
1652
1619
|
), o = P(
|
|
1653
|
-
() =>
|
|
1654
|
-
), r = P(() => n.getters.code)
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1620
|
+
() => pt(n.getters.diagramElement) + gt
|
|
1621
|
+
), r = P(() => n.getters.code), s = (d) => {
|
|
1622
|
+
n.commit("updateCode", d), i.value(d);
|
|
1623
|
+
};
|
|
1624
|
+
let l;
|
|
1625
|
+
const u = ({ show: d, reference: m, floating: p }) => {
|
|
1626
|
+
n.commit("onMessageClick", (f, a) => {
|
|
1658
1627
|
m.value = {
|
|
1659
|
-
getBoundingClientRect: () =>
|
|
1660
|
-
}, t.value =
|
|
1661
|
-
}),
|
|
1662
|
-
|
|
1628
|
+
getBoundingClientRect: () => a.getBoundingClientRect()
|
|
1629
|
+
}, t.value = f, d.value = !0;
|
|
1630
|
+
}), wn(
|
|
1631
|
+
p,
|
|
1663
1632
|
() => {
|
|
1664
|
-
|
|
1633
|
+
d.value = !1;
|
|
1665
1634
|
},
|
|
1666
|
-
P(() =>
|
|
1667
|
-
),
|
|
1668
|
-
var
|
|
1669
|
-
if (
|
|
1635
|
+
P(() => d.value)
|
|
1636
|
+
), l = (f) => {
|
|
1637
|
+
var b;
|
|
1638
|
+
if (d.value = !1, !t.value.value)
|
|
1670
1639
|
return;
|
|
1671
|
-
const
|
|
1672
|
-
if (
|
|
1673
|
-
const
|
|
1674
|
-
if (
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1677
|
-
r.value.slice(0,
|
|
1678
|
-
` + r.value.slice(
|
|
1640
|
+
const a = t.value.value.start.start, h = Ct(r.value, a), w = Ot(r.value, a), g = ((b = r.value.slice(h).match(/^\s*/)) == null ? void 0 : b[0]) || "";
|
|
1641
|
+
if (w.trim().startsWith("//")) {
|
|
1642
|
+
const C = w.trimStart().slice(2).trimStart(), y = C.indexOf("["), O = C.indexOf("]");
|
|
1643
|
+
if (y === 0 && O) {
|
|
1644
|
+
const T = C.slice(y + 1, O);
|
|
1645
|
+
T.split(",").map((A) => A.trim()).includes(f) || s(
|
|
1646
|
+
r.value.slice(0, Et(r.value, a)) + `${g}// [${T}, ${f}]
|
|
1647
|
+
` + r.value.slice(h)
|
|
1679
1648
|
);
|
|
1680
1649
|
}
|
|
1681
1650
|
} else
|
|
1682
|
-
|
|
1683
|
-
r.value.slice(0,
|
|
1684
|
-
` + r.value.slice(
|
|
1651
|
+
s(
|
|
1652
|
+
r.value.slice(0, h) + `${g}// [${f}]
|
|
1653
|
+
` + r.value.slice(h)
|
|
1685
1654
|
);
|
|
1686
1655
|
};
|
|
1687
|
-
},
|
|
1656
|
+
}, c = [
|
|
1688
1657
|
{
|
|
1689
1658
|
name: "bold",
|
|
1690
1659
|
content: "B",
|
|
@@ -1706,24 +1675,24 @@ const Ae = (e, t) => {
|
|
|
1706
1675
|
class: "line-through"
|
|
1707
1676
|
}
|
|
1708
1677
|
];
|
|
1709
|
-
return (
|
|
1678
|
+
return (d, m) => (Se(), ht(H(En), {
|
|
1710
1679
|
key: "tool",
|
|
1711
|
-
onInitial:
|
|
1680
|
+
onInitial: u,
|
|
1712
1681
|
placement: "top",
|
|
1713
1682
|
offset: 5,
|
|
1714
1683
|
shift: "",
|
|
1715
|
-
flip: { padding:
|
|
1684
|
+
flip: { padding: H(o) },
|
|
1716
1685
|
zIndex: "30"
|
|
1717
1686
|
}, {
|
|
1718
|
-
default:
|
|
1687
|
+
default: vt(() => [
|
|
1719
1688
|
he("div", An, [
|
|
1720
|
-
(
|
|
1721
|
-
onClick: () =>
|
|
1722
|
-
key:
|
|
1689
|
+
(Se(), yt(Ie, null, wt(c, (p) => he("div", {
|
|
1690
|
+
onClick: () => H(l)(p.class),
|
|
1691
|
+
key: p.name
|
|
1723
1692
|
}, [
|
|
1724
1693
|
he("div", {
|
|
1725
|
-
class:
|
|
1726
|
-
},
|
|
1694
|
+
class: xt([p.class, "w-6 mx-1 py-1 rounded-md text-black text-center cursor-pointer hover:bg-gray-200"])
|
|
1695
|
+
}, bt(p.content), 3)
|
|
1727
1696
|
], 8, Tn)), 64))
|
|
1728
1697
|
])
|
|
1729
1698
|
], void 0, !0),
|
|
@@ -1734,4 +1703,4 @@ const Ae = (e, t) => {
|
|
|
1734
1703
|
export {
|
|
1735
1704
|
Rn as default
|
|
1736
1705
|
};
|
|
1737
|
-
//# sourceMappingURL=StylePanel.
|
|
1706
|
+
//# sourceMappingURL=StylePanel.bd502340.js.map
|