@caipira/tamandua 0.0.57 → 0.0.59
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/Avatar.js +2 -2
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js → Avatar.vue_vue_type_script_setup_true_lang-BbcM5CB3.js} +1 -1
- package/dist/{Button-A0bEGvjL.js → Button-uTiKL1_J.js} +2 -2
- package/dist/Button.js +2 -2
- package/dist/ChartTreemap.js +2 -2
- package/dist/ChartTreemap.vue_vue_type_script_setup_true_lang-C5rtKK6M.js +309 -0
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js → GraphyPrice.vue_vue_type_script_setup_true_lang-DI2x-MAS.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js → Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js} +1 -1
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-Hhni6iWH.js → InputSelect.vue_vue_type_script_setup_true_lang-DgMRjecc.js} +1 -1
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js → Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js} +1 -1
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-D67BalwA.js → Popconfirm.vue_vue_type_script_setup_true_lang-CQJc0gL_.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/Popover.vue_vue_type_script_setup_true_lang-MaJDdAe0.js +71 -0
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-ChaIzjzP.js → Tag.vue_vue_type_script_setup_true_lang-D7gxjn91.js} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang--bDaVOod.js → Toast.vue_vue_type_script_setup_true_lang-xJF3jtka.js} +1 -1
- package/dist/components.js +11 -11
- package/dist/date.js +74 -66
- package/dist/enums.js +1 -1
- package/dist/floating-ui.vue-B5QcGNjh.js +1018 -0
- package/dist/{plugin-BShPzL82.js → plugin-6ziw5jJj.js} +1 -1
- package/dist/{plugin-BE_a-6l3.js → plugin-B6qqYLZU.js} +1 -1
- package/dist/{plugin-D4x3uASg.js → plugin-BHLqWB9f.js} +1 -1
- package/dist/{plugin-CEByTREY.js → plugin-Bw-AW29_.js} +1 -1
- package/dist/{plugin-CdotHNi-.js → plugin-CGCl2Tuy.js} +1 -1
- package/dist/{plugin-BcpHjv9l.js → plugin-D3ADZgWc.js} +1 -1
- package/dist/{plugin-DNwjBl_u.js → plugin-DqD4mnko.js} +1 -1
- package/dist/{plugin-BfJHkHAS.js → plugin-TONwKALZ.js} +1 -1
- package/dist/{plugin-CGE6W117.js → plugin-aR9suX-A.js} +1 -1
- package/dist/{plugin-DyFQY_0q.js → plugin-fGlPPiqA.js} +1 -1
- package/dist/{plugin-DKFvNBEz.js → plugin-hcORPz_I.js} +1 -1
- package/dist/{plugins-UNYdIrpm.js → plugins-Bq2A0z18.js} +20 -20
- package/dist/plugins.js +20 -20
- package/dist/tamandua.js +1 -1
- package/dist/types/components/ChartTreemap/ChartTreemap.story.d.ts +8 -3
- package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +6 -1
- package/dist/types/components/ChartTreemap/types.d.ts +4 -3
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +9 -9
- package/dist/types/components/Popover/Popover.vue.d.ts +9 -9
- package/dist/types/services/date.d.ts +3 -3
- package/dist/{ui-J-lhC9qd.js → ui-BSiRZzeZ.js} +2 -2
- package/package.json +1 -1
- package/dist/ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js +0 -280
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DP4SOSib.js +0 -987
|
@@ -0,0 +1,1018 @@
|
|
|
1
|
+
import { computed as F, unref as X, ref as Y, shallowRef as Pt, watch as et, getCurrentScope as Mt, onScopeDispose as Ft, shallowReadonly as k } from "vue";
|
|
2
|
+
const Bt = ["top", "right", "bottom", "left"], at = ["start", "end"], ft = /* @__PURE__ */ Bt.reduce((t, e) => t.concat(e, e + "-" + at[0], e + "-" + at[1]), []), z = Math.min, A = Math.max, Q = Math.round, J = Math.floor, B = (t) => ({
|
|
3
|
+
x: t,
|
|
4
|
+
y: t
|
|
5
|
+
}), Vt = {
|
|
6
|
+
left: "right",
|
|
7
|
+
right: "left",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
top: "bottom"
|
|
10
|
+
}, Wt = {
|
|
11
|
+
start: "end",
|
|
12
|
+
end: "start"
|
|
13
|
+
};
|
|
14
|
+
function ut(t, e, n) {
|
|
15
|
+
return A(t, z(e, n));
|
|
16
|
+
}
|
|
17
|
+
function U(t, e) {
|
|
18
|
+
return typeof t == "function" ? t(e) : t;
|
|
19
|
+
}
|
|
20
|
+
function N(t) {
|
|
21
|
+
return t.split("-")[0];
|
|
22
|
+
}
|
|
23
|
+
function D(t) {
|
|
24
|
+
return t.split("-")[1];
|
|
25
|
+
}
|
|
26
|
+
function yt(t) {
|
|
27
|
+
return t === "x" ? "y" : "x";
|
|
28
|
+
}
|
|
29
|
+
function xt(t) {
|
|
30
|
+
return t === "y" ? "height" : "width";
|
|
31
|
+
}
|
|
32
|
+
function K(t) {
|
|
33
|
+
return ["top", "bottom"].includes(N(t)) ? "y" : "x";
|
|
34
|
+
}
|
|
35
|
+
function bt(t) {
|
|
36
|
+
return yt(K(t));
|
|
37
|
+
}
|
|
38
|
+
function Nt(t, e, n) {
|
|
39
|
+
n === void 0 && (n = !1);
|
|
40
|
+
const o = D(t), i = bt(t), s = xt(i);
|
|
41
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
42
|
+
return e.reference[s] > e.floating[s] && (r = dt(r)), [r, dt(r)];
|
|
43
|
+
}
|
|
44
|
+
function $t(t) {
|
|
45
|
+
return t.replace(/start|end/g, (e) => Wt[e]);
|
|
46
|
+
}
|
|
47
|
+
function dt(t) {
|
|
48
|
+
return t.replace(/left|right|bottom|top/g, (e) => Vt[e]);
|
|
49
|
+
}
|
|
50
|
+
function _t(t) {
|
|
51
|
+
return {
|
|
52
|
+
top: 0,
|
|
53
|
+
right: 0,
|
|
54
|
+
bottom: 0,
|
|
55
|
+
left: 0,
|
|
56
|
+
...t
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function kt(t) {
|
|
60
|
+
return typeof t != "number" ? _t(t) : {
|
|
61
|
+
top: t,
|
|
62
|
+
right: t,
|
|
63
|
+
bottom: t,
|
|
64
|
+
left: t
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function Z(t) {
|
|
68
|
+
const {
|
|
69
|
+
x: e,
|
|
70
|
+
y: n,
|
|
71
|
+
width: o,
|
|
72
|
+
height: i
|
|
73
|
+
} = t;
|
|
74
|
+
return {
|
|
75
|
+
width: o,
|
|
76
|
+
height: i,
|
|
77
|
+
top: n,
|
|
78
|
+
left: e,
|
|
79
|
+
right: e + o,
|
|
80
|
+
bottom: n + i,
|
|
81
|
+
x: e,
|
|
82
|
+
y: n
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function mt(t, e, n) {
|
|
86
|
+
let {
|
|
87
|
+
reference: o,
|
|
88
|
+
floating: i
|
|
89
|
+
} = t;
|
|
90
|
+
const s = K(e), r = bt(e), c = xt(r), l = N(e), a = s === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
|
|
91
|
+
let d;
|
|
92
|
+
switch (l) {
|
|
93
|
+
case "top":
|
|
94
|
+
d = {
|
|
95
|
+
x: f,
|
|
96
|
+
y: o.y - i.height
|
|
97
|
+
};
|
|
98
|
+
break;
|
|
99
|
+
case "bottom":
|
|
100
|
+
d = {
|
|
101
|
+
x: f,
|
|
102
|
+
y: o.y + o.height
|
|
103
|
+
};
|
|
104
|
+
break;
|
|
105
|
+
case "right":
|
|
106
|
+
d = {
|
|
107
|
+
x: o.x + o.width,
|
|
108
|
+
y: u
|
|
109
|
+
};
|
|
110
|
+
break;
|
|
111
|
+
case "left":
|
|
112
|
+
d = {
|
|
113
|
+
x: o.x - i.width,
|
|
114
|
+
y: u
|
|
115
|
+
};
|
|
116
|
+
break;
|
|
117
|
+
default:
|
|
118
|
+
d = {
|
|
119
|
+
x: o.x,
|
|
120
|
+
y: o.y
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
switch (D(e)) {
|
|
124
|
+
case "start":
|
|
125
|
+
d[r] -= m * (n && a ? -1 : 1);
|
|
126
|
+
break;
|
|
127
|
+
case "end":
|
|
128
|
+
d[r] += m * (n && a ? -1 : 1);
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
return d;
|
|
132
|
+
}
|
|
133
|
+
const Ht = async (t, e, n) => {
|
|
134
|
+
const {
|
|
135
|
+
placement: o = "bottom",
|
|
136
|
+
strategy: i = "absolute",
|
|
137
|
+
middleware: s = [],
|
|
138
|
+
platform: r
|
|
139
|
+
} = n, c = s.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
140
|
+
let a = await r.getElementRects({
|
|
141
|
+
reference: t,
|
|
142
|
+
floating: e,
|
|
143
|
+
strategy: i
|
|
144
|
+
}), {
|
|
145
|
+
x: f,
|
|
146
|
+
y: u
|
|
147
|
+
} = mt(a, o, l), m = o, d = {}, w = 0;
|
|
148
|
+
for (let g = 0; g < c.length; g++) {
|
|
149
|
+
const {
|
|
150
|
+
name: v,
|
|
151
|
+
fn: h
|
|
152
|
+
} = c[g], {
|
|
153
|
+
x: p,
|
|
154
|
+
y,
|
|
155
|
+
data: R,
|
|
156
|
+
reset: b
|
|
157
|
+
} = await h({
|
|
158
|
+
x: f,
|
|
159
|
+
y: u,
|
|
160
|
+
initialPlacement: o,
|
|
161
|
+
placement: m,
|
|
162
|
+
strategy: i,
|
|
163
|
+
middlewareData: d,
|
|
164
|
+
rects: a,
|
|
165
|
+
platform: r,
|
|
166
|
+
elements: {
|
|
167
|
+
reference: t,
|
|
168
|
+
floating: e
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
f = p ?? f, u = y ?? u, d = {
|
|
172
|
+
...d,
|
|
173
|
+
[v]: {
|
|
174
|
+
...d[v],
|
|
175
|
+
...R
|
|
176
|
+
}
|
|
177
|
+
}, b && w <= 50 && (w++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (a = b.rects === !0 ? await r.getElementRects({
|
|
178
|
+
reference: t,
|
|
179
|
+
floating: e,
|
|
180
|
+
strategy: i
|
|
181
|
+
}) : b.rects), {
|
|
182
|
+
x: f,
|
|
183
|
+
y: u
|
|
184
|
+
} = mt(a, m, l)), g = -1);
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
x: f,
|
|
188
|
+
y: u,
|
|
189
|
+
placement: m,
|
|
190
|
+
strategy: i,
|
|
191
|
+
middlewareData: d
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
async function ot(t, e) {
|
|
195
|
+
var n;
|
|
196
|
+
e === void 0 && (e = {});
|
|
197
|
+
const {
|
|
198
|
+
x: o,
|
|
199
|
+
y: i,
|
|
200
|
+
platform: s,
|
|
201
|
+
rects: r,
|
|
202
|
+
elements: c,
|
|
203
|
+
strategy: l
|
|
204
|
+
} = t, {
|
|
205
|
+
boundary: a = "clippingAncestors",
|
|
206
|
+
rootBoundary: f = "viewport",
|
|
207
|
+
elementContext: u = "floating",
|
|
208
|
+
altBoundary: m = !1,
|
|
209
|
+
padding: d = 0
|
|
210
|
+
} = U(e, t), w = kt(d), v = c[m ? u === "floating" ? "reference" : "floating" : u], h = Z(await s.getClippingRect({
|
|
211
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
212
|
+
boundary: a,
|
|
213
|
+
rootBoundary: f,
|
|
214
|
+
strategy: l
|
|
215
|
+
})), p = u === "floating" ? {
|
|
216
|
+
x: o,
|
|
217
|
+
y: i,
|
|
218
|
+
width: r.floating.width,
|
|
219
|
+
height: r.floating.height
|
|
220
|
+
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), R = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
221
|
+
x: 1,
|
|
222
|
+
y: 1
|
|
223
|
+
} : {
|
|
224
|
+
x: 1,
|
|
225
|
+
y: 1
|
|
226
|
+
}, b = Z(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
227
|
+
elements: c,
|
|
228
|
+
rect: p,
|
|
229
|
+
offsetParent: y,
|
|
230
|
+
strategy: l
|
|
231
|
+
}) : p);
|
|
232
|
+
return {
|
|
233
|
+
top: (h.top - b.top + w.top) / R.y,
|
|
234
|
+
bottom: (b.bottom - h.bottom + w.bottom) / R.y,
|
|
235
|
+
left: (h.left - b.left + w.left) / R.x,
|
|
236
|
+
right: (b.right - h.right + w.right) / R.x
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function zt(t, e, n) {
|
|
240
|
+
return (t ? [...n.filter((i) => D(i) === t), ...n.filter((i) => D(i) !== t)] : n.filter((i) => N(i) === i)).filter((i) => t ? D(i) === t || (e ? $t(i) !== i : !1) : !0);
|
|
241
|
+
}
|
|
242
|
+
const It = function(t) {
|
|
243
|
+
return t === void 0 && (t = {}), {
|
|
244
|
+
name: "autoPlacement",
|
|
245
|
+
options: t,
|
|
246
|
+
async fn(e) {
|
|
247
|
+
var n, o, i;
|
|
248
|
+
const {
|
|
249
|
+
rects: s,
|
|
250
|
+
middlewareData: r,
|
|
251
|
+
placement: c,
|
|
252
|
+
platform: l,
|
|
253
|
+
elements: a
|
|
254
|
+
} = e, {
|
|
255
|
+
crossAxis: f = !1,
|
|
256
|
+
alignment: u,
|
|
257
|
+
allowedPlacements: m = ft,
|
|
258
|
+
autoAlignment: d = !0,
|
|
259
|
+
...w
|
|
260
|
+
} = U(t, e), g = u !== void 0 || m === ft ? zt(u || null, d, m) : m, v = await ot(e, w), h = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, p = g[h];
|
|
261
|
+
if (p == null)
|
|
262
|
+
return {};
|
|
263
|
+
const y = Nt(p, s, await (l.isRTL == null ? void 0 : l.isRTL(a.floating)));
|
|
264
|
+
if (c !== p)
|
|
265
|
+
return {
|
|
266
|
+
reset: {
|
|
267
|
+
placement: g[0]
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const R = [v[N(p)], v[y[0]], v[y[1]]], b = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
271
|
+
placement: p,
|
|
272
|
+
overflows: R
|
|
273
|
+
}], O = g[h + 1];
|
|
274
|
+
if (O)
|
|
275
|
+
return {
|
|
276
|
+
data: {
|
|
277
|
+
index: h + 1,
|
|
278
|
+
overflows: b
|
|
279
|
+
},
|
|
280
|
+
reset: {
|
|
281
|
+
placement: O
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const x = b.map((S) => {
|
|
285
|
+
const j = D(S.placement);
|
|
286
|
+
return [S.placement, j && f ? (
|
|
287
|
+
// Check along the mainAxis and main crossAxis side.
|
|
288
|
+
S.overflows.slice(0, 2).reduce((Lt, Dt) => Lt + Dt, 0)
|
|
289
|
+
) : (
|
|
290
|
+
// Check only the mainAxis.
|
|
291
|
+
S.overflows[0]
|
|
292
|
+
), S.overflows];
|
|
293
|
+
}).sort((S, j) => S[1] - j[1]), M = ((i = x.filter((S) => S[2].slice(
|
|
294
|
+
0,
|
|
295
|
+
// Aligned placements should not check their opposite crossAxis
|
|
296
|
+
// side.
|
|
297
|
+
D(S[0]) ? 2 : 3
|
|
298
|
+
).every((j) => j <= 0))[0]) == null ? void 0 : i[0]) || x[0][0];
|
|
299
|
+
return M !== c ? {
|
|
300
|
+
data: {
|
|
301
|
+
index: h + 1,
|
|
302
|
+
overflows: b
|
|
303
|
+
},
|
|
304
|
+
reset: {
|
|
305
|
+
placement: M
|
|
306
|
+
}
|
|
307
|
+
} : {};
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
async function jt(t, e) {
|
|
312
|
+
const {
|
|
313
|
+
placement: n,
|
|
314
|
+
platform: o,
|
|
315
|
+
elements: i
|
|
316
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = N(n), c = D(n), l = K(n) === "y", a = ["left", "top"].includes(r) ? -1 : 1, f = s && l ? -1 : 1, u = U(e, t);
|
|
317
|
+
let {
|
|
318
|
+
mainAxis: m,
|
|
319
|
+
crossAxis: d,
|
|
320
|
+
alignmentAxis: w
|
|
321
|
+
} = typeof u == "number" ? {
|
|
322
|
+
mainAxis: u,
|
|
323
|
+
crossAxis: 0,
|
|
324
|
+
alignmentAxis: null
|
|
325
|
+
} : {
|
|
326
|
+
mainAxis: 0,
|
|
327
|
+
crossAxis: 0,
|
|
328
|
+
alignmentAxis: null,
|
|
329
|
+
...u
|
|
330
|
+
};
|
|
331
|
+
return c && typeof w == "number" && (d = c === "end" ? w * -1 : w), l ? {
|
|
332
|
+
x: d * f,
|
|
333
|
+
y: m * a
|
|
334
|
+
} : {
|
|
335
|
+
x: m * a,
|
|
336
|
+
y: d * f
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
const Xt = function(t) {
|
|
340
|
+
return t === void 0 && (t = 0), {
|
|
341
|
+
name: "offset",
|
|
342
|
+
options: t,
|
|
343
|
+
async fn(e) {
|
|
344
|
+
var n, o;
|
|
345
|
+
const {
|
|
346
|
+
x: i,
|
|
347
|
+
y: s,
|
|
348
|
+
placement: r,
|
|
349
|
+
middlewareData: c
|
|
350
|
+
} = e, l = await jt(e, t);
|
|
351
|
+
return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
352
|
+
x: i + l.x,
|
|
353
|
+
y: s + l.y,
|
|
354
|
+
data: {
|
|
355
|
+
...l,
|
|
356
|
+
placement: r
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
}, Yt = function(t) {
|
|
362
|
+
return t === void 0 && (t = {}), {
|
|
363
|
+
name: "shift",
|
|
364
|
+
options: t,
|
|
365
|
+
async fn(e) {
|
|
366
|
+
const {
|
|
367
|
+
x: n,
|
|
368
|
+
y: o,
|
|
369
|
+
placement: i
|
|
370
|
+
} = e, {
|
|
371
|
+
mainAxis: s = !0,
|
|
372
|
+
crossAxis: r = !1,
|
|
373
|
+
limiter: c = {
|
|
374
|
+
fn: (v) => {
|
|
375
|
+
let {
|
|
376
|
+
x: h,
|
|
377
|
+
y: p
|
|
378
|
+
} = v;
|
|
379
|
+
return {
|
|
380
|
+
x: h,
|
|
381
|
+
y: p
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
...l
|
|
386
|
+
} = U(t, e), a = {
|
|
387
|
+
x: n,
|
|
388
|
+
y: o
|
|
389
|
+
}, f = await ot(e, l), u = K(N(i)), m = yt(u);
|
|
390
|
+
let d = a[m], w = a[u];
|
|
391
|
+
if (s) {
|
|
392
|
+
const v = m === "y" ? "top" : "left", h = m === "y" ? "bottom" : "right", p = d + f[v], y = d - f[h];
|
|
393
|
+
d = ut(p, d, y);
|
|
394
|
+
}
|
|
395
|
+
if (r) {
|
|
396
|
+
const v = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", p = w + f[v], y = w - f[h];
|
|
397
|
+
w = ut(p, w, y);
|
|
398
|
+
}
|
|
399
|
+
const g = c.fn({
|
|
400
|
+
...e,
|
|
401
|
+
[m]: d,
|
|
402
|
+
[u]: w
|
|
403
|
+
});
|
|
404
|
+
return {
|
|
405
|
+
...g,
|
|
406
|
+
data: {
|
|
407
|
+
x: g.x - n,
|
|
408
|
+
y: g.y - o
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
}, qt = function(t) {
|
|
414
|
+
return t === void 0 && (t = {}), {
|
|
415
|
+
name: "size",
|
|
416
|
+
options: t,
|
|
417
|
+
async fn(e) {
|
|
418
|
+
const {
|
|
419
|
+
placement: n,
|
|
420
|
+
rects: o,
|
|
421
|
+
platform: i,
|
|
422
|
+
elements: s
|
|
423
|
+
} = e, {
|
|
424
|
+
apply: r = () => {
|
|
425
|
+
},
|
|
426
|
+
...c
|
|
427
|
+
} = U(t, e), l = await ot(e, c), a = N(n), f = D(n), u = K(n) === "y", {
|
|
428
|
+
width: m,
|
|
429
|
+
height: d
|
|
430
|
+
} = o.floating;
|
|
431
|
+
let w, g;
|
|
432
|
+
a === "top" || a === "bottom" ? (w = a, g = f === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (g = a, w = f === "end" ? "top" : "bottom");
|
|
433
|
+
const v = d - l[w], h = m - l[g], p = !e.middlewareData.shift;
|
|
434
|
+
let y = v, R = h;
|
|
435
|
+
if (u) {
|
|
436
|
+
const O = m - l.left - l.right;
|
|
437
|
+
R = f || p ? z(h, O) : O;
|
|
438
|
+
} else {
|
|
439
|
+
const O = d - l.top - l.bottom;
|
|
440
|
+
y = f || p ? z(v, O) : O;
|
|
441
|
+
}
|
|
442
|
+
if (p && !f) {
|
|
443
|
+
const O = A(l.left, 0), x = A(l.right, 0), _ = A(l.top, 0), M = A(l.bottom, 0);
|
|
444
|
+
u ? R = m - 2 * (O !== 0 || x !== 0 ? O + x : A(l.left, l.right)) : y = d - 2 * (_ !== 0 || M !== 0 ? _ + M : A(l.top, l.bottom));
|
|
445
|
+
}
|
|
446
|
+
await r({
|
|
447
|
+
...e,
|
|
448
|
+
availableWidth: R,
|
|
449
|
+
availableHeight: y
|
|
450
|
+
});
|
|
451
|
+
const b = await i.getDimensions(s.floating);
|
|
452
|
+
return m !== b.width || d !== b.height ? {
|
|
453
|
+
reset: {
|
|
454
|
+
rects: !0
|
|
455
|
+
}
|
|
456
|
+
} : {};
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
function $(t) {
|
|
461
|
+
return it(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
462
|
+
}
|
|
463
|
+
function C(t) {
|
|
464
|
+
var e;
|
|
465
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
466
|
+
}
|
|
467
|
+
function P(t) {
|
|
468
|
+
var e;
|
|
469
|
+
return (e = (it(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
470
|
+
}
|
|
471
|
+
function it(t) {
|
|
472
|
+
return t instanceof Node || t instanceof C(t).Node;
|
|
473
|
+
}
|
|
474
|
+
function T(t) {
|
|
475
|
+
return t instanceof Element || t instanceof C(t).Element;
|
|
476
|
+
}
|
|
477
|
+
function L(t) {
|
|
478
|
+
return t instanceof HTMLElement || t instanceof C(t).HTMLElement;
|
|
479
|
+
}
|
|
480
|
+
function ht(t) {
|
|
481
|
+
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
|
|
482
|
+
}
|
|
483
|
+
function G(t) {
|
|
484
|
+
const {
|
|
485
|
+
overflow: e,
|
|
486
|
+
overflowX: n,
|
|
487
|
+
overflowY: o,
|
|
488
|
+
display: i
|
|
489
|
+
} = E(t);
|
|
490
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
491
|
+
}
|
|
492
|
+
function Ut(t) {
|
|
493
|
+
return ["table", "td", "th"].includes($(t));
|
|
494
|
+
}
|
|
495
|
+
function rt(t) {
|
|
496
|
+
const e = st(), n = E(t);
|
|
497
|
+
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
498
|
+
}
|
|
499
|
+
function Kt(t) {
|
|
500
|
+
let e = V(t);
|
|
501
|
+
for (; L(e) && !I(e); ) {
|
|
502
|
+
if (rt(e))
|
|
503
|
+
return e;
|
|
504
|
+
e = V(e);
|
|
505
|
+
}
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
function st() {
|
|
509
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
510
|
+
}
|
|
511
|
+
function I(t) {
|
|
512
|
+
return ["html", "body", "#document"].includes($(t));
|
|
513
|
+
}
|
|
514
|
+
function E(t) {
|
|
515
|
+
return C(t).getComputedStyle(t);
|
|
516
|
+
}
|
|
517
|
+
function tt(t) {
|
|
518
|
+
return T(t) ? {
|
|
519
|
+
scrollLeft: t.scrollLeft,
|
|
520
|
+
scrollTop: t.scrollTop
|
|
521
|
+
} : {
|
|
522
|
+
scrollLeft: t.pageXOffset,
|
|
523
|
+
scrollTop: t.pageYOffset
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
function V(t) {
|
|
527
|
+
if ($(t) === "html")
|
|
528
|
+
return t;
|
|
529
|
+
const e = (
|
|
530
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
531
|
+
t.assignedSlot || // DOM Element detected.
|
|
532
|
+
t.parentNode || // ShadowRoot detected.
|
|
533
|
+
ht(t) && t.host || // Fallback.
|
|
534
|
+
P(t)
|
|
535
|
+
);
|
|
536
|
+
return ht(e) ? e.host : e;
|
|
537
|
+
}
|
|
538
|
+
function Rt(t) {
|
|
539
|
+
const e = V(t);
|
|
540
|
+
return I(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : L(e) && G(e) ? e : Rt(e);
|
|
541
|
+
}
|
|
542
|
+
function q(t, e, n) {
|
|
543
|
+
var o;
|
|
544
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
545
|
+
const i = Rt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = C(i);
|
|
546
|
+
return s ? e.concat(r, r.visualViewport || [], G(i) ? i : [], r.frameElement && n ? q(r.frameElement) : []) : e.concat(i, q(i, [], n));
|
|
547
|
+
}
|
|
548
|
+
function Ot(t) {
|
|
549
|
+
const e = E(t);
|
|
550
|
+
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
551
|
+
const i = L(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = Q(n) !== s || Q(o) !== r;
|
|
552
|
+
return c && (n = s, o = r), {
|
|
553
|
+
width: n,
|
|
554
|
+
height: o,
|
|
555
|
+
$: c
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
function lt(t) {
|
|
559
|
+
return T(t) ? t : t.contextElement;
|
|
560
|
+
}
|
|
561
|
+
function H(t) {
|
|
562
|
+
const e = lt(t);
|
|
563
|
+
if (!L(e))
|
|
564
|
+
return B(1);
|
|
565
|
+
const n = e.getBoundingClientRect(), {
|
|
566
|
+
width: o,
|
|
567
|
+
height: i,
|
|
568
|
+
$: s
|
|
569
|
+
} = Ot(e);
|
|
570
|
+
let r = (s ? Q(n.width) : n.width) / o, c = (s ? Q(n.height) : n.height) / i;
|
|
571
|
+
return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
572
|
+
x: r,
|
|
573
|
+
y: c
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
const Gt = /* @__PURE__ */ B(0);
|
|
577
|
+
function At(t) {
|
|
578
|
+
const e = C(t);
|
|
579
|
+
return !st() || !e.visualViewport ? Gt : {
|
|
580
|
+
x: e.visualViewport.offsetLeft,
|
|
581
|
+
y: e.visualViewport.offsetTop
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
function Jt(t, e, n) {
|
|
585
|
+
return e === void 0 && (e = !1), !n || e && n !== C(t) ? !1 : e;
|
|
586
|
+
}
|
|
587
|
+
function W(t, e, n, o) {
|
|
588
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
589
|
+
const i = t.getBoundingClientRect(), s = lt(t);
|
|
590
|
+
let r = B(1);
|
|
591
|
+
e && (o ? T(o) && (r = H(o)) : r = H(t));
|
|
592
|
+
const c = Jt(s, n, o) ? At(s) : B(0);
|
|
593
|
+
let l = (i.left + c.x) / r.x, a = (i.top + c.y) / r.y, f = i.width / r.x, u = i.height / r.y;
|
|
594
|
+
if (s) {
|
|
595
|
+
const m = C(s), d = o && T(o) ? C(o) : o;
|
|
596
|
+
let w = m, g = w.frameElement;
|
|
597
|
+
for (; g && o && d !== w; ) {
|
|
598
|
+
const v = H(g), h = g.getBoundingClientRect(), p = E(g), y = h.left + (g.clientLeft + parseFloat(p.paddingLeft)) * v.x, R = h.top + (g.clientTop + parseFloat(p.paddingTop)) * v.y;
|
|
599
|
+
l *= v.x, a *= v.y, f *= v.x, u *= v.y, l += y, a += R, w = C(g), g = w.frameElement;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return Z({
|
|
603
|
+
width: f,
|
|
604
|
+
height: u,
|
|
605
|
+
x: l,
|
|
606
|
+
y: a
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
const Qt = [":popover-open", ":modal"];
|
|
610
|
+
function ct(t) {
|
|
611
|
+
return Qt.some((e) => {
|
|
612
|
+
try {
|
|
613
|
+
return t.matches(e);
|
|
614
|
+
} catch {
|
|
615
|
+
return !1;
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
function Zt(t) {
|
|
620
|
+
let {
|
|
621
|
+
elements: e,
|
|
622
|
+
rect: n,
|
|
623
|
+
offsetParent: o,
|
|
624
|
+
strategy: i
|
|
625
|
+
} = t;
|
|
626
|
+
const s = i === "fixed", r = P(o), c = e ? ct(e.floating) : !1;
|
|
627
|
+
if (o === r || c && s)
|
|
628
|
+
return n;
|
|
629
|
+
let l = {
|
|
630
|
+
scrollLeft: 0,
|
|
631
|
+
scrollTop: 0
|
|
632
|
+
}, a = B(1);
|
|
633
|
+
const f = B(0), u = L(o);
|
|
634
|
+
if ((u || !u && !s) && (($(o) !== "body" || G(r)) && (l = tt(o)), L(o))) {
|
|
635
|
+
const m = W(o);
|
|
636
|
+
a = H(o), f.x = m.x + o.clientLeft, f.y = m.y + o.clientTop;
|
|
637
|
+
}
|
|
638
|
+
return {
|
|
639
|
+
width: n.width * a.x,
|
|
640
|
+
height: n.height * a.y,
|
|
641
|
+
x: n.x * a.x - l.scrollLeft * a.x + f.x,
|
|
642
|
+
y: n.y * a.y - l.scrollTop * a.y + f.y
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
function te(t) {
|
|
646
|
+
return Array.from(t.getClientRects());
|
|
647
|
+
}
|
|
648
|
+
function Ct(t) {
|
|
649
|
+
return W(P(t)).left + tt(t).scrollLeft;
|
|
650
|
+
}
|
|
651
|
+
function ee(t) {
|
|
652
|
+
const e = P(t), n = tt(t), o = t.ownerDocument.body, i = A(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = A(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
653
|
+
let r = -n.scrollLeft + Ct(t);
|
|
654
|
+
const c = -n.scrollTop;
|
|
655
|
+
return E(o).direction === "rtl" && (r += A(e.clientWidth, o.clientWidth) - i), {
|
|
656
|
+
width: i,
|
|
657
|
+
height: s,
|
|
658
|
+
x: r,
|
|
659
|
+
y: c
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
function ne(t, e) {
|
|
663
|
+
const n = C(t), o = P(t), i = n.visualViewport;
|
|
664
|
+
let s = o.clientWidth, r = o.clientHeight, c = 0, l = 0;
|
|
665
|
+
if (i) {
|
|
666
|
+
s = i.width, r = i.height;
|
|
667
|
+
const a = st();
|
|
668
|
+
(!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
669
|
+
}
|
|
670
|
+
return {
|
|
671
|
+
width: s,
|
|
672
|
+
height: r,
|
|
673
|
+
x: c,
|
|
674
|
+
y: l
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
function oe(t, e) {
|
|
678
|
+
const n = W(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = L(t) ? H(t) : B(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, l = i * s.x, a = o * s.y;
|
|
679
|
+
return {
|
|
680
|
+
width: r,
|
|
681
|
+
height: c,
|
|
682
|
+
x: l,
|
|
683
|
+
y: a
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
function gt(t, e, n) {
|
|
687
|
+
let o;
|
|
688
|
+
if (e === "viewport")
|
|
689
|
+
o = ne(t, n);
|
|
690
|
+
else if (e === "document")
|
|
691
|
+
o = ee(P(t));
|
|
692
|
+
else if (T(e))
|
|
693
|
+
o = oe(e, n);
|
|
694
|
+
else {
|
|
695
|
+
const i = At(t);
|
|
696
|
+
o = {
|
|
697
|
+
...e,
|
|
698
|
+
x: e.x - i.x,
|
|
699
|
+
y: e.y - i.y
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
return Z(o);
|
|
703
|
+
}
|
|
704
|
+
function Et(t, e) {
|
|
705
|
+
const n = V(t);
|
|
706
|
+
return n === e || !T(n) || I(n) ? !1 : E(n).position === "fixed" || Et(n, e);
|
|
707
|
+
}
|
|
708
|
+
function ie(t, e) {
|
|
709
|
+
const n = e.get(t);
|
|
710
|
+
if (n)
|
|
711
|
+
return n;
|
|
712
|
+
let o = q(t, [], !1).filter((c) => T(c) && $(c) !== "body"), i = null;
|
|
713
|
+
const s = E(t).position === "fixed";
|
|
714
|
+
let r = s ? V(t) : t;
|
|
715
|
+
for (; T(r) && !I(r); ) {
|
|
716
|
+
const c = E(r), l = rt(r);
|
|
717
|
+
!l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || G(r) && !l && Et(t, r)) ? o = o.filter((f) => f !== r) : i = c, r = V(r);
|
|
718
|
+
}
|
|
719
|
+
return e.set(t, o), o;
|
|
720
|
+
}
|
|
721
|
+
function re(t) {
|
|
722
|
+
let {
|
|
723
|
+
element: e,
|
|
724
|
+
boundary: n,
|
|
725
|
+
rootBoundary: o,
|
|
726
|
+
strategy: i
|
|
727
|
+
} = t;
|
|
728
|
+
const r = [...n === "clippingAncestors" ? ct(e) ? [] : ie(e, this._c) : [].concat(n), o], c = r[0], l = r.reduce((a, f) => {
|
|
729
|
+
const u = gt(e, f, i);
|
|
730
|
+
return a.top = A(u.top, a.top), a.right = z(u.right, a.right), a.bottom = z(u.bottom, a.bottom), a.left = A(u.left, a.left), a;
|
|
731
|
+
}, gt(e, c, i));
|
|
732
|
+
return {
|
|
733
|
+
width: l.right - l.left,
|
|
734
|
+
height: l.bottom - l.top,
|
|
735
|
+
x: l.left,
|
|
736
|
+
y: l.top
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
function se(t) {
|
|
740
|
+
const {
|
|
741
|
+
width: e,
|
|
742
|
+
height: n
|
|
743
|
+
} = Ot(t);
|
|
744
|
+
return {
|
|
745
|
+
width: e,
|
|
746
|
+
height: n
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
function le(t, e, n) {
|
|
750
|
+
const o = L(e), i = P(e), s = n === "fixed", r = W(t, !0, s, e);
|
|
751
|
+
let c = {
|
|
752
|
+
scrollLeft: 0,
|
|
753
|
+
scrollTop: 0
|
|
754
|
+
};
|
|
755
|
+
const l = B(0);
|
|
756
|
+
if (o || !o && !s)
|
|
757
|
+
if (($(e) !== "body" || G(i)) && (c = tt(e)), o) {
|
|
758
|
+
const u = W(e, !0, s, e);
|
|
759
|
+
l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
|
|
760
|
+
} else
|
|
761
|
+
i && (l.x = Ct(i));
|
|
762
|
+
const a = r.left + c.scrollLeft - l.x, f = r.top + c.scrollTop - l.y;
|
|
763
|
+
return {
|
|
764
|
+
x: a,
|
|
765
|
+
y: f,
|
|
766
|
+
width: r.width,
|
|
767
|
+
height: r.height
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
function nt(t) {
|
|
771
|
+
return E(t).position === "static";
|
|
772
|
+
}
|
|
773
|
+
function pt(t, e) {
|
|
774
|
+
return !L(t) || E(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
775
|
+
}
|
|
776
|
+
function St(t, e) {
|
|
777
|
+
const n = C(t);
|
|
778
|
+
if (ct(t))
|
|
779
|
+
return n;
|
|
780
|
+
if (!L(t)) {
|
|
781
|
+
let i = V(t);
|
|
782
|
+
for (; i && !I(i); ) {
|
|
783
|
+
if (T(i) && !nt(i))
|
|
784
|
+
return i;
|
|
785
|
+
i = V(i);
|
|
786
|
+
}
|
|
787
|
+
return n;
|
|
788
|
+
}
|
|
789
|
+
let o = pt(t, e);
|
|
790
|
+
for (; o && Ut(o) && nt(o); )
|
|
791
|
+
o = pt(o, e);
|
|
792
|
+
return o && I(o) && nt(o) && !rt(o) ? n : o || Kt(t) || n;
|
|
793
|
+
}
|
|
794
|
+
const ce = async function(t) {
|
|
795
|
+
const e = this.getOffsetParent || St, n = this.getDimensions, o = await n(t.floating);
|
|
796
|
+
return {
|
|
797
|
+
reference: le(t.reference, await e(t.floating), t.strategy),
|
|
798
|
+
floating: {
|
|
799
|
+
x: 0,
|
|
800
|
+
y: 0,
|
|
801
|
+
width: o.width,
|
|
802
|
+
height: o.height
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
function ae(t) {
|
|
807
|
+
return E(t).direction === "rtl";
|
|
808
|
+
}
|
|
809
|
+
const fe = {
|
|
810
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Zt,
|
|
811
|
+
getDocumentElement: P,
|
|
812
|
+
getClippingRect: re,
|
|
813
|
+
getOffsetParent: St,
|
|
814
|
+
getElementRects: ce,
|
|
815
|
+
getClientRects: te,
|
|
816
|
+
getDimensions: se,
|
|
817
|
+
getScale: H,
|
|
818
|
+
isElement: T,
|
|
819
|
+
isRTL: ae
|
|
820
|
+
};
|
|
821
|
+
function ue(t, e) {
|
|
822
|
+
let n = null, o;
|
|
823
|
+
const i = P(t);
|
|
824
|
+
function s() {
|
|
825
|
+
var c;
|
|
826
|
+
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
827
|
+
}
|
|
828
|
+
function r(c, l) {
|
|
829
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), s();
|
|
830
|
+
const {
|
|
831
|
+
left: a,
|
|
832
|
+
top: f,
|
|
833
|
+
width: u,
|
|
834
|
+
height: m
|
|
835
|
+
} = t.getBoundingClientRect();
|
|
836
|
+
if (c || e(), !u || !m)
|
|
837
|
+
return;
|
|
838
|
+
const d = J(f), w = J(i.clientWidth - (a + u)), g = J(i.clientHeight - (f + m)), v = J(a), p = {
|
|
839
|
+
rootMargin: -d + "px " + -w + "px " + -g + "px " + -v + "px",
|
|
840
|
+
threshold: A(0, z(1, l)) || 1
|
|
841
|
+
};
|
|
842
|
+
let y = !0;
|
|
843
|
+
function R(b) {
|
|
844
|
+
const O = b[0].intersectionRatio;
|
|
845
|
+
if (O !== l) {
|
|
846
|
+
if (!y)
|
|
847
|
+
return r();
|
|
848
|
+
O ? r(!1, O) : o = setTimeout(() => {
|
|
849
|
+
r(!1, 1e-7);
|
|
850
|
+
}, 1e3);
|
|
851
|
+
}
|
|
852
|
+
y = !1;
|
|
853
|
+
}
|
|
854
|
+
try {
|
|
855
|
+
n = new IntersectionObserver(R, {
|
|
856
|
+
...p,
|
|
857
|
+
// Handle <iframe>s
|
|
858
|
+
root: i.ownerDocument
|
|
859
|
+
});
|
|
860
|
+
} catch {
|
|
861
|
+
n = new IntersectionObserver(R, p);
|
|
862
|
+
}
|
|
863
|
+
n.observe(t);
|
|
864
|
+
}
|
|
865
|
+
return r(!0), s;
|
|
866
|
+
}
|
|
867
|
+
function ge(t, e, n, o) {
|
|
868
|
+
o === void 0 && (o = {});
|
|
869
|
+
const {
|
|
870
|
+
ancestorScroll: i = !0,
|
|
871
|
+
ancestorResize: s = !0,
|
|
872
|
+
elementResize: r = typeof ResizeObserver == "function",
|
|
873
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
874
|
+
animationFrame: l = !1
|
|
875
|
+
} = o, a = lt(t), f = i || s ? [...a ? q(a) : [], ...q(e)] : [];
|
|
876
|
+
f.forEach((h) => {
|
|
877
|
+
i && h.addEventListener("scroll", n, {
|
|
878
|
+
passive: !0
|
|
879
|
+
}), s && h.addEventListener("resize", n);
|
|
880
|
+
});
|
|
881
|
+
const u = a && c ? ue(a, n) : null;
|
|
882
|
+
let m = -1, d = null;
|
|
883
|
+
r && (d = new ResizeObserver((h) => {
|
|
884
|
+
let [p] = h;
|
|
885
|
+
p && p.target === a && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
886
|
+
var y;
|
|
887
|
+
(y = d) == null || y.observe(e);
|
|
888
|
+
})), n();
|
|
889
|
+
}), a && !l && d.observe(a), d.observe(e));
|
|
890
|
+
let w, g = l ? W(t) : null;
|
|
891
|
+
l && v();
|
|
892
|
+
function v() {
|
|
893
|
+
const h = W(t);
|
|
894
|
+
g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, w = requestAnimationFrame(v);
|
|
895
|
+
}
|
|
896
|
+
return n(), () => {
|
|
897
|
+
var h;
|
|
898
|
+
f.forEach((p) => {
|
|
899
|
+
i && p.removeEventListener("scroll", n), s && p.removeEventListener("resize", n);
|
|
900
|
+
}), u?.(), (h = d) == null || h.disconnect(), d = null, l && cancelAnimationFrame(w);
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
const pe = Xt, we = It, ve = Yt, ye = qt, de = (t, e, n) => {
|
|
904
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
|
905
|
+
platform: fe,
|
|
906
|
+
...n
|
|
907
|
+
}, s = {
|
|
908
|
+
...i.platform,
|
|
909
|
+
_c: o
|
|
910
|
+
};
|
|
911
|
+
return Ht(t, e, {
|
|
912
|
+
...i,
|
|
913
|
+
platform: s
|
|
914
|
+
});
|
|
915
|
+
};
|
|
916
|
+
function me(t) {
|
|
917
|
+
return t != null && typeof t == "object" && "$el" in t;
|
|
918
|
+
}
|
|
919
|
+
function wt(t) {
|
|
920
|
+
if (me(t)) {
|
|
921
|
+
const e = t.$el;
|
|
922
|
+
return it(e) && $(e) === "#comment" ? null : e;
|
|
923
|
+
}
|
|
924
|
+
return t;
|
|
925
|
+
}
|
|
926
|
+
function Tt(t) {
|
|
927
|
+
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
928
|
+
}
|
|
929
|
+
function vt(t, e) {
|
|
930
|
+
const n = Tt(t);
|
|
931
|
+
return Math.round(e * n) / n;
|
|
932
|
+
}
|
|
933
|
+
function xe(t, e, n) {
|
|
934
|
+
n === void 0 && (n = {});
|
|
935
|
+
const o = n.whileElementsMounted, i = F(() => {
|
|
936
|
+
var x;
|
|
937
|
+
return (x = X(n.open)) != null ? x : !0;
|
|
938
|
+
}), s = F(() => X(n.middleware)), r = F(() => {
|
|
939
|
+
var x;
|
|
940
|
+
return (x = X(n.placement)) != null ? x : "bottom";
|
|
941
|
+
}), c = F(() => {
|
|
942
|
+
var x;
|
|
943
|
+
return (x = X(n.strategy)) != null ? x : "absolute";
|
|
944
|
+
}), l = F(() => {
|
|
945
|
+
var x;
|
|
946
|
+
return (x = X(n.transform)) != null ? x : !0;
|
|
947
|
+
}), a = F(() => wt(t.value)), f = F(() => wt(e.value)), u = Y(0), m = Y(0), d = Y(c.value), w = Y(r.value), g = Pt({}), v = Y(!1), h = F(() => {
|
|
948
|
+
const x = {
|
|
949
|
+
position: d.value,
|
|
950
|
+
left: "0",
|
|
951
|
+
top: "0"
|
|
952
|
+
};
|
|
953
|
+
if (!f.value)
|
|
954
|
+
return x;
|
|
955
|
+
const _ = vt(f.value, u.value), M = vt(f.value, m.value);
|
|
956
|
+
return l.value ? {
|
|
957
|
+
...x,
|
|
958
|
+
transform: "translate(" + _ + "px, " + M + "px)",
|
|
959
|
+
...Tt(f.value) >= 1.5 && {
|
|
960
|
+
willChange: "transform"
|
|
961
|
+
}
|
|
962
|
+
} : {
|
|
963
|
+
position: d.value,
|
|
964
|
+
left: _ + "px",
|
|
965
|
+
top: M + "px"
|
|
966
|
+
};
|
|
967
|
+
});
|
|
968
|
+
let p;
|
|
969
|
+
function y() {
|
|
970
|
+
a.value == null || f.value == null || de(a.value, f.value, {
|
|
971
|
+
middleware: s.value,
|
|
972
|
+
placement: r.value,
|
|
973
|
+
strategy: c.value
|
|
974
|
+
}).then((x) => {
|
|
975
|
+
u.value = x.x, m.value = x.y, d.value = x.strategy, w.value = x.placement, g.value = x.middlewareData, v.value = !0;
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
function R() {
|
|
979
|
+
typeof p == "function" && (p(), p = void 0);
|
|
980
|
+
}
|
|
981
|
+
function b() {
|
|
982
|
+
if (R(), o === void 0) {
|
|
983
|
+
y();
|
|
984
|
+
return;
|
|
985
|
+
}
|
|
986
|
+
if (a.value != null && f.value != null) {
|
|
987
|
+
p = o(a.value, f.value, y);
|
|
988
|
+
return;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
function O() {
|
|
992
|
+
i.value || (v.value = !1);
|
|
993
|
+
}
|
|
994
|
+
return et([s, r, c], y, {
|
|
995
|
+
flush: "sync"
|
|
996
|
+
}), et([a, f], b, {
|
|
997
|
+
flush: "sync"
|
|
998
|
+
}), et(i, O, {
|
|
999
|
+
flush: "sync"
|
|
1000
|
+
}), Mt() && Ft(R), {
|
|
1001
|
+
x: k(u),
|
|
1002
|
+
y: k(m),
|
|
1003
|
+
strategy: k(d),
|
|
1004
|
+
placement: k(w),
|
|
1005
|
+
middlewareData: k(g),
|
|
1006
|
+
isPositioned: k(v),
|
|
1007
|
+
floatingStyles: h,
|
|
1008
|
+
update: y
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
export {
|
|
1012
|
+
ve as a,
|
|
1013
|
+
ge as b,
|
|
1014
|
+
we as c,
|
|
1015
|
+
pe as o,
|
|
1016
|
+
ye as s,
|
|
1017
|
+
xe as u
|
|
1018
|
+
};
|