@oneclick.dev/cms-core-modules 0.0.81 → 0.0.83
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/{ContentEditor-4e80zFyn.js → ContentEditor-CRFkD4tE.js} +33 -33
- package/dist/{ContentEditor-Dk-iDEjl.mjs → ContentEditor-CxKirDdL.mjs} +2861 -2854
- package/dist/{Create-DtFzwxn_.mjs → Create-CsqVYhPO.mjs} +1 -1
- package/dist/{Create-CRn2sMHp.js → Create-ip0MnS0o.js} +1 -1
- package/dist/{DateFormatter-DfIwyrnF.mjs → DateFormatter-CvOfaUnU.mjs} +137 -134
- package/dist/DateFormatter-ls6HfWpS.js +1 -0
- package/dist/{Detail-BwDnY42G.mjs → Detail-CbLk1v37.mjs} +1 -1
- package/dist/{Detail-Bxi7lG9x.js → Detail-RMXFuSRQ.js} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-Ds7z0qeH.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-CDc8MIq2.mjs} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-C5YczjNb.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-StaNp-3y.js} +1 -1
- package/dist/{Overview-pCO_47Zt.js → Overview-B2bFNGhH.js} +1 -1
- package/dist/{Overview-CuCQgqVp.mjs → Overview-Cczt_dcE.mjs} +1 -1
- package/dist/{SeoHealth-EZzDmPDM.js → SeoHealth-DFZ0LLBH.js} +1 -1
- package/dist/{SeoHealth-CC0rW1AG.mjs → SeoHealth-ZpvB7CS2.mjs} +1 -1
- package/dist/{TableView-Ccp2Vkhr.mjs → TableView-BUPPcHUW.mjs} +28927 -28623
- package/dist/{TableView-DD3y_PZ3.js → TableView-CksiPsTL.js} +152 -152
- package/dist/{agenda-XqvbrU72.mjs → agenda-Cl3s_FIE.mjs} +2 -2
- package/dist/{agenda-wNFDKn0G.js → agenda-rlFma_wn.js} +1 -1
- package/dist/{exceptions-wEQEVzIs.js → exceptions-BA3PsW4n.js} +1 -1
- package/dist/{exceptions-CLgeeUSy.mjs → exceptions-DQPSFSj7.mjs} +1 -1
- package/dist/floating-ui.dom-B9WYoHj2.js +1 -0
- package/dist/{floating-ui.dom-BO2Hr6mz.mjs → floating-ui.dom-fpIfhXTZ.mjs} +400 -401
- package/dist/{index-DTzdHh6g.js → index-CBC9dWZ9.js} +1 -1
- package/dist/{index-DYpruS-A-D38FBcI3.mjs → index-DYpruS-A-Cw57iwdY.mjs} +2 -3
- package/dist/{index-DYpruS-A-CA2jEOA3.js → index-DYpruS-A-DwDXo9Tq.js} +5 -5
- package/dist/{index-N0NoDEsI.mjs → index-YOOlBEZB.mjs} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +38 -24
- package/dist/orders-DZzdsHOW.mjs +397 -0
- package/dist/orders-tP4WdF5q.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +334 -293
- package/dist/src/appointments/server.d.ts +1 -1
- package/dist/src/contentManager/config.d.ts +28 -0
- package/dist/src/contentManager/index.d.ts +28 -0
- package/dist/src/contentManager/server.d.ts +7 -0
- package/dist/src/googleAnalytics/server.d.ts +1 -1
- package/dist/src/products/server.d.ts +1 -1
- package/dist/src/server-handlers.d.ts +1 -0
- package/package.json +3 -2
- package/dist/DateFormatter-C9qfmQnP.js +0 -1
- package/dist/floating-ui.dom-CAr9LGoC.js +0 -1
- package/dist/orders-Bqa3Z3tH.mjs +0 -356
- package/dist/orders-D5GJOZXN.js +0 -1
|
@@ -1,59 +1,56 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Ft = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Ft.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), V = Math.min, L = Math.max, it = Math.round, ot = Math.floor, X = (t) => ({
|
|
2
2
|
x: t,
|
|
3
3
|
y: t
|
|
4
|
-
}),
|
|
4
|
+
}), Yt = {
|
|
5
5
|
left: "right",
|
|
6
6
|
right: "left",
|
|
7
7
|
bottom: "top",
|
|
8
8
|
top: "bottom"
|
|
9
|
-
}, jt = {
|
|
10
|
-
start: "end",
|
|
11
|
-
end: "start"
|
|
12
9
|
};
|
|
13
|
-
function
|
|
14
|
-
return L(t,
|
|
10
|
+
function mt(t, e, n) {
|
|
11
|
+
return L(t, V(e, n));
|
|
15
12
|
}
|
|
16
13
|
function _(t, e) {
|
|
17
14
|
return typeof t == "function" ? t(e) : t;
|
|
18
15
|
}
|
|
19
|
-
function
|
|
16
|
+
function B(t) {
|
|
20
17
|
return t.split("-")[0];
|
|
21
18
|
}
|
|
22
|
-
function
|
|
19
|
+
function H(t) {
|
|
23
20
|
return t.split("-")[1];
|
|
24
21
|
}
|
|
25
|
-
function
|
|
22
|
+
function gt(t) {
|
|
26
23
|
return t === "x" ? "y" : "x";
|
|
27
24
|
}
|
|
28
|
-
function
|
|
25
|
+
function pt(t) {
|
|
29
26
|
return t === "y" ? "height" : "width";
|
|
30
27
|
}
|
|
31
|
-
const Yt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
32
28
|
function N(t) {
|
|
33
|
-
|
|
29
|
+
const e = t[0];
|
|
30
|
+
return e === "t" || e === "b" ? "y" : "x";
|
|
34
31
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
32
|
+
function wt(t) {
|
|
33
|
+
return gt(N(t));
|
|
37
34
|
}
|
|
38
|
-
function
|
|
35
|
+
function Bt(t, e, n) {
|
|
39
36
|
n === void 0 && (n = !1);
|
|
40
|
-
const o =
|
|
37
|
+
const o = H(t), i = wt(t), s = pt(i);
|
|
41
38
|
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
42
|
-
return e.reference[s] > e.floating[s] && (r =
|
|
39
|
+
return e.reference[s] > e.floating[s] && (r = rt(r)), [r, rt(r)];
|
|
43
40
|
}
|
|
44
41
|
function qt(t) {
|
|
45
|
-
const e =
|
|
46
|
-
return [
|
|
42
|
+
const e = rt(t);
|
|
43
|
+
return [st(t), e, st(e)];
|
|
47
44
|
}
|
|
48
|
-
function
|
|
49
|
-
return t.replace(
|
|
45
|
+
function st(t) {
|
|
46
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
50
47
|
}
|
|
51
|
-
const
|
|
48
|
+
const Ot = ["left", "right"], Ct = ["right", "left"], Ut = ["top", "bottom"], Kt = ["bottom", "top"];
|
|
52
49
|
function Gt(t, e, n) {
|
|
53
50
|
switch (t) {
|
|
54
51
|
case "top":
|
|
55
52
|
case "bottom":
|
|
56
|
-
return n ? e ?
|
|
53
|
+
return n ? e ? Ct : Ot : e ? Ot : Ct;
|
|
57
54
|
case "left":
|
|
58
55
|
case "right":
|
|
59
56
|
return e ? Ut : Kt;
|
|
@@ -62,12 +59,13 @@ function Gt(t, e, n) {
|
|
|
62
59
|
}
|
|
63
60
|
}
|
|
64
61
|
function Jt(t, e, n, o) {
|
|
65
|
-
const i =
|
|
66
|
-
let s = Gt(
|
|
67
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(
|
|
62
|
+
const i = H(t);
|
|
63
|
+
let s = Gt(B(t), n === "start", o);
|
|
64
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(st)))), s;
|
|
68
65
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
66
|
+
function rt(t) {
|
|
67
|
+
const e = B(t);
|
|
68
|
+
return Yt[e] + t.slice(e.length);
|
|
71
69
|
}
|
|
72
70
|
function Qt(t) {
|
|
73
71
|
return {
|
|
@@ -78,7 +76,7 @@ function Qt(t) {
|
|
|
78
76
|
...t
|
|
79
77
|
};
|
|
80
78
|
}
|
|
81
|
-
function
|
|
79
|
+
function xt(t) {
|
|
82
80
|
return typeof t != "number" ? Qt(t) : {
|
|
83
81
|
top: t,
|
|
84
82
|
right: t,
|
|
@@ -86,7 +84,7 @@ function pt(t) {
|
|
|
86
84
|
left: t
|
|
87
85
|
};
|
|
88
86
|
}
|
|
89
|
-
function
|
|
87
|
+
function Q(t) {
|
|
90
88
|
const {
|
|
91
89
|
x: e,
|
|
92
90
|
y: n,
|
|
@@ -104,23 +102,23 @@ function J(t) {
|
|
|
104
102
|
y: n
|
|
105
103
|
};
|
|
106
104
|
}
|
|
107
|
-
function
|
|
105
|
+
function St(t, e, n) {
|
|
108
106
|
let {
|
|
109
107
|
reference: o,
|
|
110
108
|
floating: i
|
|
111
109
|
} = t;
|
|
112
|
-
const s = N(e), r =
|
|
110
|
+
const s = N(e), r = wt(e), c = pt(r), a = B(e), d = s === "y", u = o.x + o.width / 2 - i.width / 2, l = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
|
|
113
111
|
let f;
|
|
114
112
|
switch (a) {
|
|
115
113
|
case "top":
|
|
116
114
|
f = {
|
|
117
|
-
x:
|
|
115
|
+
x: u,
|
|
118
116
|
y: o.y - i.height
|
|
119
117
|
};
|
|
120
118
|
break;
|
|
121
119
|
case "bottom":
|
|
122
120
|
f = {
|
|
123
|
-
x:
|
|
121
|
+
x: u,
|
|
124
122
|
y: o.y + o.height
|
|
125
123
|
};
|
|
126
124
|
break;
|
|
@@ -142,12 +140,12 @@ function Rt(t, e, n) {
|
|
|
142
140
|
y: o.y
|
|
143
141
|
};
|
|
144
142
|
}
|
|
145
|
-
switch (
|
|
143
|
+
switch (H(e)) {
|
|
146
144
|
case "start":
|
|
147
|
-
f[r] -= m * (n &&
|
|
145
|
+
f[r] -= m * (n && d ? -1 : 1);
|
|
148
146
|
break;
|
|
149
147
|
case "end":
|
|
150
|
-
f[r] += m * (n &&
|
|
148
|
+
f[r] += m * (n && d ? -1 : 1);
|
|
151
149
|
break;
|
|
152
150
|
}
|
|
153
151
|
return f;
|
|
@@ -163,15 +161,15 @@ async function Zt(t, e) {
|
|
|
163
161
|
elements: c,
|
|
164
162
|
strategy: a
|
|
165
163
|
} = t, {
|
|
166
|
-
boundary:
|
|
167
|
-
rootBoundary:
|
|
164
|
+
boundary: d = "clippingAncestors",
|
|
165
|
+
rootBoundary: u = "viewport",
|
|
168
166
|
elementContext: l = "floating",
|
|
169
167
|
altBoundary: m = !1,
|
|
170
168
|
padding: f = 0
|
|
171
|
-
} = _(e, t), h =
|
|
169
|
+
} = _(e, t), h = xt(f), p = c[m ? l === "floating" ? "reference" : "floating" : l], w = Q(await s.getClippingRect({
|
|
172
170
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(p))) == null || n ? p : p.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
173
|
-
boundary:
|
|
174
|
-
rootBoundary:
|
|
171
|
+
boundary: d,
|
|
172
|
+
rootBoundary: u,
|
|
175
173
|
strategy: a
|
|
176
174
|
})), x = l === "floating" ? {
|
|
177
175
|
x: o,
|
|
@@ -184,84 +182,84 @@ async function Zt(t, e) {
|
|
|
184
182
|
} : {
|
|
185
183
|
x: 1,
|
|
186
184
|
y: 1
|
|
187
|
-
},
|
|
185
|
+
}, R = Q(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
188
186
|
elements: c,
|
|
189
187
|
rect: x,
|
|
190
188
|
offsetParent: y,
|
|
191
189
|
strategy: a
|
|
192
190
|
}) : x);
|
|
193
191
|
return {
|
|
194
|
-
top: (w.top -
|
|
195
|
-
bottom: (
|
|
196
|
-
left: (w.left -
|
|
197
|
-
right: (
|
|
192
|
+
top: (w.top - R.top + h.top) / v.y,
|
|
193
|
+
bottom: (R.bottom - w.bottom + h.bottom) / v.y,
|
|
194
|
+
left: (w.left - R.left + h.left) / v.x,
|
|
195
|
+
right: (R.right - w.right + h.right) / v.x
|
|
198
196
|
};
|
|
199
197
|
}
|
|
200
|
-
const te = async (t, e, n) => {
|
|
198
|
+
const te = 50, ee = async (t, e, n) => {
|
|
201
199
|
const {
|
|
202
200
|
placement: o = "bottom",
|
|
203
201
|
strategy: i = "absolute",
|
|
204
202
|
middleware: s = [],
|
|
205
203
|
platform: r
|
|
206
|
-
} = n, c =
|
|
207
|
-
|
|
204
|
+
} = n, c = r.detectOverflow ? r : {
|
|
205
|
+
...r,
|
|
206
|
+
detectOverflow: Zt
|
|
207
|
+
}, a = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
208
|
+
let d = await r.getElementRects({
|
|
208
209
|
reference: t,
|
|
209
210
|
floating: e,
|
|
210
211
|
strategy: i
|
|
211
212
|
}), {
|
|
212
|
-
x:
|
|
213
|
+
x: u,
|
|
213
214
|
y: l
|
|
214
|
-
} =
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
} = St(d, o, a), m = o, f = 0;
|
|
216
|
+
const h = {};
|
|
217
|
+
for (let g = 0; g < s.length; g++) {
|
|
218
|
+
const p = s[g];
|
|
219
|
+
if (!p)
|
|
220
|
+
continue;
|
|
217
221
|
const {
|
|
218
222
|
name: w,
|
|
219
223
|
fn: x
|
|
220
|
-
} =
|
|
224
|
+
} = p, {
|
|
221
225
|
x: y,
|
|
222
226
|
y: v,
|
|
223
|
-
data:
|
|
224
|
-
reset:
|
|
227
|
+
data: R,
|
|
228
|
+
reset: A
|
|
225
229
|
} = await x({
|
|
226
|
-
x:
|
|
230
|
+
x: u,
|
|
227
231
|
y: l,
|
|
228
232
|
initialPlacement: o,
|
|
229
233
|
placement: m,
|
|
230
234
|
strategy: i,
|
|
231
|
-
middlewareData:
|
|
232
|
-
rects:
|
|
233
|
-
platform:
|
|
234
|
-
...r,
|
|
235
|
-
detectOverflow: (g = r.detectOverflow) != null ? g : Zt
|
|
236
|
-
},
|
|
235
|
+
middlewareData: h,
|
|
236
|
+
rects: d,
|
|
237
|
+
platform: c,
|
|
237
238
|
elements: {
|
|
238
239
|
reference: t,
|
|
239
240
|
floating: e
|
|
240
241
|
}
|
|
241
242
|
});
|
|
242
|
-
|
|
243
|
-
...
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
...A
|
|
247
|
-
}
|
|
248
|
-
}, O && h <= 50 && (h++, typeof O == "object" && (O.placement && (m = O.placement), O.rects && (u = O.rects === !0 ? await r.getElementRects({
|
|
243
|
+
u = y ?? u, l = v ?? l, h[w] = {
|
|
244
|
+
...h[w],
|
|
245
|
+
...R
|
|
246
|
+
}, A && f < te && (f++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (d = A.rects === !0 ? await r.getElementRects({
|
|
249
247
|
reference: t,
|
|
250
248
|
floating: e,
|
|
251
249
|
strategy: i
|
|
252
|
-
}) :
|
|
253
|
-
x:
|
|
250
|
+
}) : A.rects), {
|
|
251
|
+
x: u,
|
|
254
252
|
y: l
|
|
255
|
-
} =
|
|
253
|
+
} = St(d, m, a)), g = -1);
|
|
256
254
|
}
|
|
257
255
|
return {
|
|
258
|
-
x:
|
|
256
|
+
x: u,
|
|
259
257
|
y: l,
|
|
260
258
|
placement: m,
|
|
261
259
|
strategy: i,
|
|
262
|
-
middlewareData:
|
|
260
|
+
middlewareData: h
|
|
263
261
|
};
|
|
264
|
-
},
|
|
262
|
+
}, ne = (t) => ({
|
|
265
263
|
name: "arrow",
|
|
266
264
|
options: t,
|
|
267
265
|
async fn(e) {
|
|
@@ -274,35 +272,35 @@ const te = async (t, e, n) => {
|
|
|
274
272
|
elements: c,
|
|
275
273
|
middlewareData: a
|
|
276
274
|
} = e, {
|
|
277
|
-
element:
|
|
278
|
-
padding:
|
|
275
|
+
element: d,
|
|
276
|
+
padding: u = 0
|
|
279
277
|
} = _(t, e) || {};
|
|
280
|
-
if (
|
|
278
|
+
if (d == null)
|
|
281
279
|
return {};
|
|
282
|
-
const l =
|
|
280
|
+
const l = xt(u), m = {
|
|
283
281
|
x: n,
|
|
284
282
|
y: o
|
|
285
|
-
}, f =
|
|
286
|
-
let
|
|
287
|
-
(!
|
|
288
|
-
const
|
|
283
|
+
}, f = wt(i), h = pt(f), g = await r.getDimensions(d), p = f === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", y = p ? "clientHeight" : "clientWidth", v = s.reference[h] + s.reference[f] - m[f] - s.floating[h], R = m[f] - s.reference[f], A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
|
|
284
|
+
let O = A ? A[y] : 0;
|
|
285
|
+
(!O || !await (r.isElement == null ? void 0 : r.isElement(A))) && (O = c.floating[y] || s.floating[h]);
|
|
286
|
+
const W = v / 2 - R / 2, T = O / 2 - g[h] / 2 - 1, b = V(l[w], T), C = V(l[x], T), P = b, E = O - g[h] - C, S = O / 2 - g[h] / 2 + W, $ = mt(P, S, E), k = !a.arrow && H(i) != null && S !== $ && s.reference[h] / 2 - (S < P ? b : C) - g[h] / 2 < 0, D = k ? S < P ? S - P : S - E : 0;
|
|
289
287
|
return {
|
|
290
288
|
[f]: m[f] + D,
|
|
291
289
|
data: {
|
|
292
|
-
[f]:
|
|
293
|
-
centerOffset:
|
|
294
|
-
...
|
|
290
|
+
[f]: $,
|
|
291
|
+
centerOffset: S - $ - D,
|
|
292
|
+
...k && {
|
|
295
293
|
alignmentOffset: D
|
|
296
294
|
}
|
|
297
295
|
},
|
|
298
|
-
reset:
|
|
296
|
+
reset: k
|
|
299
297
|
};
|
|
300
298
|
}
|
|
301
299
|
});
|
|
302
|
-
function
|
|
303
|
-
return (t ? [...n.filter((i) =>
|
|
300
|
+
function oe(t, e, n) {
|
|
301
|
+
return (t ? [...n.filter((i) => H(i) === t), ...n.filter((i) => H(i) !== t)] : n.filter((i) => B(i) === i)).filter((i) => t ? H(i) === t || (e ? st(i) !== i : !1) : !0);
|
|
304
302
|
}
|
|
305
|
-
const
|
|
303
|
+
const ie = function(t) {
|
|
306
304
|
return t === void 0 && (t = {}), {
|
|
307
305
|
name: "autoPlacement",
|
|
308
306
|
options: t,
|
|
@@ -313,56 +311,56 @@ const oe = function(t) {
|
|
|
313
311
|
middlewareData: r,
|
|
314
312
|
placement: c,
|
|
315
313
|
platform: a,
|
|
316
|
-
elements:
|
|
314
|
+
elements: d
|
|
317
315
|
} = e, {
|
|
318
|
-
crossAxis:
|
|
316
|
+
crossAxis: u = !1,
|
|
319
317
|
alignment: l,
|
|
320
|
-
allowedPlacements: m =
|
|
318
|
+
allowedPlacements: m = At,
|
|
321
319
|
autoAlignment: f = !0,
|
|
322
320
|
...h
|
|
323
|
-
} = _(t, e), g = l !== void 0 || m ===
|
|
321
|
+
} = _(t, e), g = l !== void 0 || m === At ? oe(l || null, f, m) : m, p = await a.detectOverflow(e, h), w = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, x = g[w];
|
|
324
322
|
if (x == null)
|
|
325
323
|
return {};
|
|
326
|
-
const y =
|
|
324
|
+
const y = Bt(x, s, await (a.isRTL == null ? void 0 : a.isRTL(d.floating)));
|
|
327
325
|
if (c !== x)
|
|
328
326
|
return {
|
|
329
327
|
reset: {
|
|
330
328
|
placement: g[0]
|
|
331
329
|
}
|
|
332
330
|
};
|
|
333
|
-
const v = [p[
|
|
331
|
+
const v = [p[B(x)], p[y[0]], p[y[1]]], R = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
334
332
|
placement: x,
|
|
335
333
|
overflows: v
|
|
336
|
-
}],
|
|
337
|
-
if (
|
|
334
|
+
}], A = g[w + 1];
|
|
335
|
+
if (A)
|
|
338
336
|
return {
|
|
339
337
|
data: {
|
|
340
338
|
index: w + 1,
|
|
341
|
-
overflows:
|
|
339
|
+
overflows: R
|
|
342
340
|
},
|
|
343
341
|
reset: {
|
|
344
|
-
placement:
|
|
342
|
+
placement: A
|
|
345
343
|
}
|
|
346
344
|
};
|
|
347
|
-
const
|
|
348
|
-
const
|
|
349
|
-
return [b.placement,
|
|
345
|
+
const O = R.map((b) => {
|
|
346
|
+
const C = H(b.placement);
|
|
347
|
+
return [b.placement, C && u ? (
|
|
350
348
|
// Check along the mainAxis and main crossAxis side.
|
|
351
349
|
b.overflows.slice(0, 2).reduce((P, E) => P + E, 0)
|
|
352
350
|
) : (
|
|
353
351
|
// Check only the mainAxis.
|
|
354
352
|
b.overflows[0]
|
|
355
353
|
), b.overflows];
|
|
356
|
-
}).sort((b,
|
|
354
|
+
}).sort((b, C) => b[1] - C[1]), T = ((i = O.filter((b) => b[2].slice(
|
|
357
355
|
0,
|
|
358
356
|
// Aligned placements should not check their opposite crossAxis
|
|
359
357
|
// side.
|
|
360
|
-
|
|
361
|
-
).every((
|
|
358
|
+
H(b[0]) ? 2 : 3
|
|
359
|
+
).every((C) => C <= 0))[0]) == null ? void 0 : i[0]) || O[0][0];
|
|
362
360
|
return T !== c ? {
|
|
363
361
|
data: {
|
|
364
362
|
index: w + 1,
|
|
365
|
-
overflows:
|
|
363
|
+
overflows: R
|
|
366
364
|
},
|
|
367
365
|
reset: {
|
|
368
366
|
placement: T
|
|
@@ -370,7 +368,7 @@ const oe = function(t) {
|
|
|
370
368
|
} : {};
|
|
371
369
|
}
|
|
372
370
|
};
|
|
373
|
-
},
|
|
371
|
+
}, se = function(t) {
|
|
374
372
|
return t === void 0 && (t = {}), {
|
|
375
373
|
name: "flip",
|
|
376
374
|
options: t,
|
|
@@ -382,9 +380,9 @@ const oe = function(t) {
|
|
|
382
380
|
rects: r,
|
|
383
381
|
initialPlacement: c,
|
|
384
382
|
platform: a,
|
|
385
|
-
elements:
|
|
383
|
+
elements: d
|
|
386
384
|
} = e, {
|
|
387
|
-
mainAxis:
|
|
385
|
+
mainAxis: u = !0,
|
|
388
386
|
crossAxis: l = !0,
|
|
389
387
|
fallbackPlacements: m,
|
|
390
388
|
fallbackStrategy: f = "bestFit",
|
|
@@ -394,57 +392,57 @@ const oe = function(t) {
|
|
|
394
392
|
} = _(t, e);
|
|
395
393
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
396
394
|
return {};
|
|
397
|
-
const w =
|
|
398
|
-
!m &&
|
|
399
|
-
const
|
|
395
|
+
const w = B(i), x = N(c), y = B(c) === c, v = await (a.isRTL == null ? void 0 : a.isRTL(d.floating)), R = m || (y || !g ? [rt(c)] : qt(c)), A = h !== "none";
|
|
396
|
+
!m && A && R.push(...Jt(c, g, h, v));
|
|
397
|
+
const O = [c, ...R], W = await a.detectOverflow(e, p), T = [];
|
|
400
398
|
let b = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
401
|
-
if (
|
|
402
|
-
const
|
|
403
|
-
T.push(
|
|
399
|
+
if (u && T.push(W[w]), l) {
|
|
400
|
+
const S = Bt(i, r, v);
|
|
401
|
+
T.push(W[S[0]], W[S[1]]);
|
|
404
402
|
}
|
|
405
403
|
if (b = [...b, {
|
|
406
404
|
placement: i,
|
|
407
405
|
overflows: T
|
|
408
|
-
}], !T.every((
|
|
409
|
-
var
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
406
|
+
}], !T.every((S) => S <= 0)) {
|
|
407
|
+
var C, P;
|
|
408
|
+
const S = (((C = s.flip) == null ? void 0 : C.index) || 0) + 1, $ = O[S];
|
|
409
|
+
if ($ && (!(l === "alignment" ? x !== N($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
412
410
|
// overflows the main axis.
|
|
413
411
|
b.every((M) => N(M.placement) === x ? M.overflows[0] > 0 : !0)))
|
|
414
412
|
return {
|
|
415
413
|
data: {
|
|
416
|
-
index:
|
|
414
|
+
index: S,
|
|
417
415
|
overflows: b
|
|
418
416
|
},
|
|
419
417
|
reset: {
|
|
420
|
-
placement:
|
|
418
|
+
placement: $
|
|
421
419
|
}
|
|
422
420
|
};
|
|
423
|
-
let
|
|
424
|
-
if (!
|
|
421
|
+
let k = (P = b.filter((D) => D.overflows[0] <= 0).sort((D, M) => D.overflows[1] - M.overflows[1])[0]) == null ? void 0 : P.placement;
|
|
422
|
+
if (!k)
|
|
425
423
|
switch (f) {
|
|
426
424
|
case "bestFit": {
|
|
427
425
|
var E;
|
|
428
426
|
const D = (E = b.filter((M) => {
|
|
429
|
-
if (
|
|
427
|
+
if (A) {
|
|
430
428
|
const q = N(M.placement);
|
|
431
429
|
return q === x || // Create a bias to the `y` side axis due to horizontal
|
|
432
430
|
// reading directions favoring greater width.
|
|
433
431
|
q === "y";
|
|
434
432
|
}
|
|
435
433
|
return !0;
|
|
436
|
-
}).map((M) => [M.placement, M.overflows.filter((q) => q > 0).reduce((q,
|
|
437
|
-
D && (
|
|
434
|
+
}).map((M) => [M.placement, M.overflows.filter((q) => q > 0).reduce((q, jt) => q + jt, 0)]).sort((M, q) => M[1] - q[1])[0]) == null ? void 0 : E[0];
|
|
435
|
+
D && (k = D);
|
|
438
436
|
break;
|
|
439
437
|
}
|
|
440
438
|
case "initialPlacement":
|
|
441
|
-
|
|
439
|
+
k = c;
|
|
442
440
|
break;
|
|
443
441
|
}
|
|
444
|
-
if (i !==
|
|
442
|
+
if (i !== k)
|
|
445
443
|
return {
|
|
446
444
|
reset: {
|
|
447
|
-
placement:
|
|
445
|
+
placement: k
|
|
448
446
|
}
|
|
449
447
|
};
|
|
450
448
|
}
|
|
@@ -452,7 +450,7 @@ const oe = function(t) {
|
|
|
452
450
|
}
|
|
453
451
|
};
|
|
454
452
|
};
|
|
455
|
-
function
|
|
453
|
+
function Lt(t, e) {
|
|
456
454
|
return {
|
|
457
455
|
top: t.top - e.height,
|
|
458
456
|
right: t.right - e.width,
|
|
@@ -460,10 +458,10 @@ function St(t, e) {
|
|
|
460
458
|
left: t.left - e.width
|
|
461
459
|
};
|
|
462
460
|
}
|
|
463
|
-
function
|
|
464
|
-
return
|
|
461
|
+
function Tt(t) {
|
|
462
|
+
return Ft.some((e) => t[e] >= 0);
|
|
465
463
|
}
|
|
466
|
-
const
|
|
464
|
+
const re = function(t) {
|
|
467
465
|
return t === void 0 && (t = {}), {
|
|
468
466
|
name: "hide",
|
|
469
467
|
options: t,
|
|
@@ -480,11 +478,11 @@ const se = function(t) {
|
|
|
480
478
|
const r = await o.detectOverflow(e, {
|
|
481
479
|
...s,
|
|
482
480
|
elementContext: "reference"
|
|
483
|
-
}), c =
|
|
481
|
+
}), c = Lt(r, n.reference);
|
|
484
482
|
return {
|
|
485
483
|
data: {
|
|
486
484
|
referenceHiddenOffsets: c,
|
|
487
|
-
referenceHidden:
|
|
485
|
+
referenceHidden: Tt(c)
|
|
488
486
|
}
|
|
489
487
|
};
|
|
490
488
|
}
|
|
@@ -492,11 +490,11 @@ const se = function(t) {
|
|
|
492
490
|
const r = await o.detectOverflow(e, {
|
|
493
491
|
...s,
|
|
494
492
|
altBoundary: !0
|
|
495
|
-
}), c =
|
|
493
|
+
}), c = Lt(r, n.floating);
|
|
496
494
|
return {
|
|
497
495
|
data: {
|
|
498
496
|
escapedOffsets: c,
|
|
499
|
-
escaped:
|
|
497
|
+
escaped: Tt(c)
|
|
500
498
|
}
|
|
501
499
|
};
|
|
502
500
|
}
|
|
@@ -506,8 +504,8 @@ const se = function(t) {
|
|
|
506
504
|
}
|
|
507
505
|
};
|
|
508
506
|
};
|
|
509
|
-
function
|
|
510
|
-
const e =
|
|
507
|
+
function Wt(t) {
|
|
508
|
+
const e = V(...t.map((s) => s.left)), n = V(...t.map((s) => s.top)), o = L(...t.map((s) => s.right)), i = L(...t.map((s) => s.bottom));
|
|
511
509
|
return {
|
|
512
510
|
x: e,
|
|
513
511
|
y: n,
|
|
@@ -515,16 +513,16 @@ function Ft(t) {
|
|
|
515
513
|
height: i - n
|
|
516
514
|
};
|
|
517
515
|
}
|
|
518
|
-
function
|
|
516
|
+
function ce(t) {
|
|
519
517
|
const e = t.slice().sort((i, s) => i.y - s.y), n = [];
|
|
520
518
|
let o = null;
|
|
521
519
|
for (let i = 0; i < e.length; i++) {
|
|
522
520
|
const s = e[i];
|
|
523
521
|
!o || s.y - o.y > o.height / 2 ? n.push([s]) : n[n.length - 1].push(s), o = s;
|
|
524
522
|
}
|
|
525
|
-
return n.map((i) =>
|
|
523
|
+
return n.map((i) => Q(Wt(i)));
|
|
526
524
|
}
|
|
527
|
-
const
|
|
525
|
+
const le = function(t) {
|
|
528
526
|
return t === void 0 && (t = {}), {
|
|
529
527
|
name: "inline",
|
|
530
528
|
options: t,
|
|
@@ -538,34 +536,34 @@ const ce = function(t) {
|
|
|
538
536
|
} = e, {
|
|
539
537
|
padding: c = 2,
|
|
540
538
|
x: a,
|
|
541
|
-
y:
|
|
542
|
-
} = _(t, e),
|
|
539
|
+
y: d
|
|
540
|
+
} = _(t, e), u = Array.from(await (s.getClientRects == null ? void 0 : s.getClientRects(o.reference)) || []), l = ce(u), m = Q(Wt(u)), f = xt(c);
|
|
543
541
|
function h() {
|
|
544
|
-
if (l.length === 2 && l[0].left > l[1].right && a != null &&
|
|
545
|
-
return l.find((p) => a > p.left - f.left && a < p.right + f.right &&
|
|
542
|
+
if (l.length === 2 && l[0].left > l[1].right && a != null && d != null)
|
|
543
|
+
return l.find((p) => a > p.left - f.left && a < p.right + f.right && d > p.top - f.top && d < p.bottom + f.bottom) || m;
|
|
546
544
|
if (l.length >= 2) {
|
|
547
545
|
if (N(n) === "y") {
|
|
548
|
-
const b = l[0],
|
|
546
|
+
const b = l[0], C = l[l.length - 1], P = B(n) === "top", E = b.top, S = C.bottom, $ = P ? b.left : C.left, k = P ? b.right : C.right, D = k - $, M = S - E;
|
|
549
547
|
return {
|
|
550
548
|
top: E,
|
|
551
|
-
bottom:
|
|
552
|
-
left:
|
|
553
|
-
right:
|
|
549
|
+
bottom: S,
|
|
550
|
+
left: $,
|
|
551
|
+
right: k,
|
|
554
552
|
width: D,
|
|
555
553
|
height: M,
|
|
556
|
-
x:
|
|
554
|
+
x: $,
|
|
557
555
|
y: E
|
|
558
556
|
};
|
|
559
557
|
}
|
|
560
|
-
const p =
|
|
558
|
+
const p = B(n) === "left", w = L(...l.map((b) => b.right)), x = V(...l.map((b) => b.left)), y = l.filter((b) => p ? b.left === x : b.right === w), v = y[0].top, R = y[y.length - 1].bottom, A = x, O = w, W = O - A, T = R - v;
|
|
561
559
|
return {
|
|
562
560
|
top: v,
|
|
563
|
-
bottom:
|
|
564
|
-
left:
|
|
565
|
-
right:
|
|
566
|
-
width:
|
|
561
|
+
bottom: R,
|
|
562
|
+
left: A,
|
|
563
|
+
right: O,
|
|
564
|
+
width: W,
|
|
567
565
|
height: T,
|
|
568
|
-
x:
|
|
566
|
+
x: A,
|
|
569
567
|
y: v
|
|
570
568
|
};
|
|
571
569
|
}
|
|
@@ -586,12 +584,12 @@ const ce = function(t) {
|
|
|
586
584
|
}
|
|
587
585
|
};
|
|
588
586
|
}, kt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
589
|
-
async function
|
|
587
|
+
async function fe(t, e) {
|
|
590
588
|
const {
|
|
591
589
|
placement: n,
|
|
592
590
|
platform: o,
|
|
593
591
|
elements: i
|
|
594
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r =
|
|
592
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = B(n), c = H(n), a = N(n) === "y", d = kt.has(r) ? -1 : 1, u = s && a ? -1 : 1, l = _(e, t);
|
|
595
593
|
let {
|
|
596
594
|
mainAxis: m,
|
|
597
595
|
crossAxis: f,
|
|
@@ -606,11 +604,11 @@ async function le(t, e) {
|
|
|
606
604
|
alignmentAxis: l.alignmentAxis
|
|
607
605
|
};
|
|
608
606
|
return c && typeof h == "number" && (f = c === "end" ? h * -1 : h), a ? {
|
|
609
|
-
x: f *
|
|
610
|
-
y: m *
|
|
607
|
+
x: f * u,
|
|
608
|
+
y: m * d
|
|
611
609
|
} : {
|
|
612
|
-
x: m *
|
|
613
|
-
y: f *
|
|
610
|
+
x: m * d,
|
|
611
|
+
y: f * u
|
|
614
612
|
};
|
|
615
613
|
}
|
|
616
614
|
const ae = function(t) {
|
|
@@ -624,7 +622,7 @@ const ae = function(t) {
|
|
|
624
622
|
y: s,
|
|
625
623
|
placement: r,
|
|
626
624
|
middlewareData: c
|
|
627
|
-
} = e, a = await
|
|
625
|
+
} = e, a = await fe(e, t);
|
|
628
626
|
return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
629
627
|
x: i + a.x,
|
|
630
628
|
y: s + a.y,
|
|
@@ -635,7 +633,7 @@ const ae = function(t) {
|
|
|
635
633
|
};
|
|
636
634
|
}
|
|
637
635
|
};
|
|
638
|
-
},
|
|
636
|
+
}, ue = function(t) {
|
|
639
637
|
return t === void 0 && (t = {}), {
|
|
640
638
|
name: "shift",
|
|
641
639
|
options: t,
|
|
@@ -660,19 +658,19 @@ const ae = function(t) {
|
|
|
660
658
|
};
|
|
661
659
|
}
|
|
662
660
|
},
|
|
663
|
-
...
|
|
664
|
-
} = _(t, e),
|
|
661
|
+
...d
|
|
662
|
+
} = _(t, e), u = {
|
|
665
663
|
x: n,
|
|
666
664
|
y: o
|
|
667
|
-
}, l = await s.detectOverflow(e,
|
|
668
|
-
let h =
|
|
665
|
+
}, l = await s.detectOverflow(e, d), m = N(B(i)), f = gt(m);
|
|
666
|
+
let h = u[f], g = u[m];
|
|
669
667
|
if (r) {
|
|
670
668
|
const w = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = h + l[w], v = h - l[x];
|
|
671
|
-
h =
|
|
669
|
+
h = mt(y, h, v);
|
|
672
670
|
}
|
|
673
671
|
if (c) {
|
|
674
672
|
const w = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + l[w], v = g - l[x];
|
|
675
|
-
g =
|
|
673
|
+
g = mt(y, g, v);
|
|
676
674
|
}
|
|
677
675
|
const p = a.fn({
|
|
678
676
|
...e,
|
|
@@ -692,7 +690,7 @@ const ae = function(t) {
|
|
|
692
690
|
};
|
|
693
691
|
}
|
|
694
692
|
};
|
|
695
|
-
},
|
|
693
|
+
}, de = function(t) {
|
|
696
694
|
return t === void 0 && (t = {}), {
|
|
697
695
|
options: t,
|
|
698
696
|
fn(e) {
|
|
@@ -705,12 +703,12 @@ const ae = function(t) {
|
|
|
705
703
|
} = e, {
|
|
706
704
|
offset: c = 0,
|
|
707
705
|
mainAxis: a = !0,
|
|
708
|
-
crossAxis:
|
|
709
|
-
} = _(t, e),
|
|
706
|
+
crossAxis: d = !0
|
|
707
|
+
} = _(t, e), u = {
|
|
710
708
|
x: n,
|
|
711
709
|
y: o
|
|
712
|
-
}, l = N(i), m =
|
|
713
|
-
let f =
|
|
710
|
+
}, l = N(i), m = gt(l);
|
|
711
|
+
let f = u[m], h = u[l];
|
|
714
712
|
const g = _(c, e), p = typeof g == "number" ? {
|
|
715
713
|
mainAxis: g,
|
|
716
714
|
crossAxis: 0
|
|
@@ -720,13 +718,13 @@ const ae = function(t) {
|
|
|
720
718
|
...g
|
|
721
719
|
};
|
|
722
720
|
if (a) {
|
|
723
|
-
const y = m === "y" ? "height" : "width", v = s.reference[m] - s.floating[y] + p.mainAxis,
|
|
724
|
-
f < v ? f = v : f >
|
|
721
|
+
const y = m === "y" ? "height" : "width", v = s.reference[m] - s.floating[y] + p.mainAxis, R = s.reference[m] + s.reference[y] - p.mainAxis;
|
|
722
|
+
f < v ? f = v : f > R && (f = R);
|
|
725
723
|
}
|
|
726
|
-
if (
|
|
724
|
+
if (d) {
|
|
727
725
|
var w, x;
|
|
728
|
-
const y = m === "y" ? "width" : "height", v = kt.has(
|
|
729
|
-
h <
|
|
726
|
+
const y = m === "y" ? "width" : "height", v = kt.has(B(i)), R = s.reference[l] - s.floating[y] + (v && ((w = r.offset) == null ? void 0 : w[l]) || 0) + (v ? 0 : p.crossAxis), A = s.reference[l] + s.reference[y] + (v ? 0 : ((x = r.offset) == null ? void 0 : x[l]) || 0) - (v ? p.crossAxis : 0);
|
|
727
|
+
h < R ? h = R : h > A && (h = A);
|
|
730
728
|
}
|
|
731
729
|
return {
|
|
732
730
|
[m]: f,
|
|
@@ -734,7 +732,7 @@ const ae = function(t) {
|
|
|
734
732
|
};
|
|
735
733
|
}
|
|
736
734
|
};
|
|
737
|
-
},
|
|
735
|
+
}, me = function(t) {
|
|
738
736
|
return t === void 0 && (t = {}), {
|
|
739
737
|
name: "size",
|
|
740
738
|
options: t,
|
|
@@ -748,23 +746,23 @@ const ae = function(t) {
|
|
|
748
746
|
} = e, {
|
|
749
747
|
apply: a = () => {
|
|
750
748
|
},
|
|
751
|
-
...
|
|
752
|
-
} = _(t, e),
|
|
749
|
+
...d
|
|
750
|
+
} = _(t, e), u = await r.detectOverflow(e, d), l = B(i), m = H(i), f = N(i) === "y", {
|
|
753
751
|
width: h,
|
|
754
752
|
height: g
|
|
755
753
|
} = s.floating;
|
|
756
754
|
let p, w;
|
|
757
755
|
l === "top" || l === "bottom" ? (p = l, w = m === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = l, p = m === "end" ? "top" : "bottom");
|
|
758
|
-
const x = g -
|
|
759
|
-
let
|
|
760
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (
|
|
761
|
-
const b = L(
|
|
762
|
-
f ?
|
|
756
|
+
const x = g - u.top - u.bottom, y = h - u.left - u.right, v = V(g - u[p], x), R = V(h - u[w], y), A = !e.middlewareData.shift;
|
|
757
|
+
let O = v, W = R;
|
|
758
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (W = y), (o = e.middlewareData.shift) != null && o.enabled.y && (O = x), A && !m) {
|
|
759
|
+
const b = L(u.left, 0), C = L(u.right, 0), P = L(u.top, 0), E = L(u.bottom, 0);
|
|
760
|
+
f ? W = h - 2 * (b !== 0 || C !== 0 ? b + C : L(u.left, u.right)) : O = g - 2 * (P !== 0 || E !== 0 ? P + E : L(u.top, u.bottom));
|
|
763
761
|
}
|
|
764
762
|
await a({
|
|
765
763
|
...e,
|
|
766
|
-
availableWidth:
|
|
767
|
-
availableHeight:
|
|
764
|
+
availableWidth: W,
|
|
765
|
+
availableHeight: O
|
|
768
766
|
});
|
|
769
767
|
const T = await r.getDimensions(c.floating);
|
|
770
768
|
return h !== T.width || g !== T.height ? {
|
|
@@ -775,83 +773,83 @@ const ae = function(t) {
|
|
|
775
773
|
}
|
|
776
774
|
};
|
|
777
775
|
};
|
|
778
|
-
function
|
|
776
|
+
function ct() {
|
|
779
777
|
return typeof window < "u";
|
|
780
778
|
}
|
|
781
|
-
function
|
|
782
|
-
return
|
|
779
|
+
function tt(t) {
|
|
780
|
+
return $t(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
783
781
|
}
|
|
784
782
|
function F(t) {
|
|
785
783
|
var e;
|
|
786
784
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
787
785
|
}
|
|
788
|
-
function
|
|
786
|
+
function j(t) {
|
|
789
787
|
var e;
|
|
790
|
-
return (e = (
|
|
788
|
+
return (e = ($t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
791
789
|
}
|
|
792
|
-
function
|
|
793
|
-
return
|
|
790
|
+
function $t(t) {
|
|
791
|
+
return ct() ? t instanceof Node || t instanceof F(t).Node : !1;
|
|
794
792
|
}
|
|
795
793
|
function z(t) {
|
|
796
|
-
return
|
|
794
|
+
return ct() ? t instanceof Element || t instanceof F(t).Element : !1;
|
|
797
795
|
}
|
|
798
|
-
function
|
|
799
|
-
return
|
|
796
|
+
function Y(t) {
|
|
797
|
+
return ct() ? t instanceof HTMLElement || t instanceof F(t).HTMLElement : !1;
|
|
800
798
|
}
|
|
801
|
-
function
|
|
802
|
-
return !
|
|
799
|
+
function Pt(t) {
|
|
800
|
+
return !ct() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof F(t).ShadowRoot;
|
|
803
801
|
}
|
|
804
|
-
|
|
805
|
-
function et(t) {
|
|
802
|
+
function nt(t) {
|
|
806
803
|
const {
|
|
807
804
|
overflow: e,
|
|
808
805
|
overflowX: n,
|
|
809
806
|
overflowY: o,
|
|
810
807
|
display: i
|
|
811
808
|
} = I(t);
|
|
812
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) &&
|
|
809
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && i !== "inline" && i !== "contents";
|
|
813
810
|
}
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
return he.has(Z(t));
|
|
811
|
+
function he(t) {
|
|
812
|
+
return /^(table|td|th)$/.test(tt(t));
|
|
817
813
|
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
}
|
|
814
|
+
function lt(t) {
|
|
815
|
+
try {
|
|
816
|
+
if (t.matches(":popover-open"))
|
|
817
|
+
return !0;
|
|
818
|
+
} catch {
|
|
819
|
+
}
|
|
820
|
+
try {
|
|
821
|
+
return t.matches(":modal");
|
|
822
|
+
} catch {
|
|
823
|
+
return !1;
|
|
824
|
+
}
|
|
827
825
|
}
|
|
828
|
-
const
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
826
|
+
const ge = /transform|translate|scale|rotate|perspective|filter/, pe = /paint|layout|strict|content/, K = (t) => !!t && t !== "none";
|
|
827
|
+
let ut;
|
|
828
|
+
function yt(t) {
|
|
829
|
+
const e = z(t) ? I(t) : t;
|
|
830
|
+
return K(e.transform) || K(e.translate) || K(e.scale) || K(e.rotate) || K(e.perspective) || !vt() && (K(e.backdropFilter) || K(e.filter)) || ge.test(e.willChange || "") || pe.test(e.contain || "");
|
|
832
831
|
}
|
|
833
|
-
function
|
|
832
|
+
function we(t) {
|
|
834
833
|
let e = U(t);
|
|
835
|
-
for (;
|
|
836
|
-
if (
|
|
834
|
+
for (; Y(e) && !Z(e); ) {
|
|
835
|
+
if (yt(e))
|
|
837
836
|
return e;
|
|
838
|
-
if (
|
|
837
|
+
if (lt(e))
|
|
839
838
|
return null;
|
|
840
839
|
e = U(e);
|
|
841
840
|
}
|
|
842
841
|
return null;
|
|
843
842
|
}
|
|
844
|
-
function
|
|
845
|
-
return typeof CSS
|
|
843
|
+
function vt() {
|
|
844
|
+
return ut == null && (ut = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ut;
|
|
846
845
|
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
return be.has(Z(t));
|
|
846
|
+
function Z(t) {
|
|
847
|
+
return /^(html|body|#document)$/.test(tt(t));
|
|
850
848
|
}
|
|
851
849
|
function I(t) {
|
|
852
850
|
return F(t).getComputedStyle(t);
|
|
853
851
|
}
|
|
854
|
-
function
|
|
852
|
+
function ft(t) {
|
|
855
853
|
return z(t) ? {
|
|
856
854
|
scrollLeft: t.scrollLeft,
|
|
857
855
|
scrollTop: t.scrollTop
|
|
@@ -861,138 +859,138 @@ function lt(t) {
|
|
|
861
859
|
};
|
|
862
860
|
}
|
|
863
861
|
function U(t) {
|
|
864
|
-
if (
|
|
862
|
+
if (tt(t) === "html")
|
|
865
863
|
return t;
|
|
866
864
|
const e = (
|
|
867
865
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
868
866
|
t.assignedSlot || // DOM Element detected.
|
|
869
867
|
t.parentNode || // ShadowRoot detected.
|
|
870
|
-
|
|
871
|
-
|
|
868
|
+
Pt(t) && t.host || // Fallback.
|
|
869
|
+
j(t)
|
|
872
870
|
);
|
|
873
|
-
return
|
|
871
|
+
return Pt(e) ? e.host : e;
|
|
874
872
|
}
|
|
875
|
-
function
|
|
873
|
+
function Nt(t) {
|
|
876
874
|
const e = U(t);
|
|
877
|
-
return
|
|
875
|
+
return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && nt(e) ? e : Nt(e);
|
|
878
876
|
}
|
|
879
|
-
function
|
|
877
|
+
function et(t, e, n) {
|
|
880
878
|
var o;
|
|
881
879
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
882
|
-
const i =
|
|
880
|
+
const i = Nt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = F(i);
|
|
883
881
|
if (s) {
|
|
884
|
-
const c =
|
|
885
|
-
return e.concat(r, r.visualViewport || [],
|
|
886
|
-
}
|
|
887
|
-
|
|
882
|
+
const c = ht(r);
|
|
883
|
+
return e.concat(r, r.visualViewport || [], nt(i) ? i : [], c && n ? et(c) : []);
|
|
884
|
+
} else
|
|
885
|
+
return e.concat(i, et(i, [], n));
|
|
888
886
|
}
|
|
889
|
-
function
|
|
887
|
+
function ht(t) {
|
|
890
888
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
891
889
|
}
|
|
892
890
|
function Ht(t) {
|
|
893
891
|
const e = I(t);
|
|
894
892
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
895
|
-
const i =
|
|
893
|
+
const i = Y(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = it(n) !== s || it(o) !== r;
|
|
896
894
|
return c && (n = s, o = r), {
|
|
897
895
|
width: n,
|
|
898
896
|
height: o,
|
|
899
897
|
$: c
|
|
900
898
|
};
|
|
901
899
|
}
|
|
902
|
-
function
|
|
900
|
+
function bt(t) {
|
|
903
901
|
return z(t) ? t : t.contextElement;
|
|
904
902
|
}
|
|
905
|
-
function
|
|
906
|
-
const e =
|
|
907
|
-
if (!
|
|
903
|
+
function J(t) {
|
|
904
|
+
const e = bt(t);
|
|
905
|
+
if (!Y(e))
|
|
908
906
|
return X(1);
|
|
909
907
|
const n = e.getBoundingClientRect(), {
|
|
910
908
|
width: o,
|
|
911
909
|
height: i,
|
|
912
910
|
$: s
|
|
913
911
|
} = Ht(e);
|
|
914
|
-
let r = (s ?
|
|
912
|
+
let r = (s ? it(n.width) : n.width) / o, c = (s ? it(n.height) : n.height) / i;
|
|
915
913
|
return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
916
914
|
x: r,
|
|
917
915
|
y: c
|
|
918
916
|
};
|
|
919
917
|
}
|
|
920
|
-
const
|
|
921
|
-
function
|
|
918
|
+
const xe = /* @__PURE__ */ X(0);
|
|
919
|
+
function Vt(t) {
|
|
922
920
|
const e = F(t);
|
|
923
|
-
return !
|
|
921
|
+
return !vt() || !e.visualViewport ? xe : {
|
|
924
922
|
x: e.visualViewport.offsetLeft,
|
|
925
923
|
y: e.visualViewport.offsetTop
|
|
926
924
|
};
|
|
927
925
|
}
|
|
928
|
-
function
|
|
926
|
+
function ye(t, e, n) {
|
|
929
927
|
return e === void 0 && (e = !1), !n || e && n !== F(t) ? !1 : e;
|
|
930
928
|
}
|
|
931
|
-
function
|
|
929
|
+
function G(t, e, n, o) {
|
|
932
930
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
933
|
-
const i = t.getBoundingClientRect(), s =
|
|
931
|
+
const i = t.getBoundingClientRect(), s = bt(t);
|
|
934
932
|
let r = X(1);
|
|
935
|
-
e && (o ? z(o) && (r =
|
|
936
|
-
const c =
|
|
937
|
-
let a = (i.left + c.x) / r.x,
|
|
933
|
+
e && (o ? z(o) && (r = J(o)) : r = J(t));
|
|
934
|
+
const c = ye(s, n, o) ? Vt(s) : X(0);
|
|
935
|
+
let a = (i.left + c.x) / r.x, d = (i.top + c.y) / r.y, u = i.width / r.x, l = i.height / r.y;
|
|
938
936
|
if (s) {
|
|
939
937
|
const m = F(s), f = o && z(o) ? F(o) : o;
|
|
940
|
-
let h = m, g =
|
|
938
|
+
let h = m, g = ht(h);
|
|
941
939
|
for (; g && o && f !== h; ) {
|
|
942
|
-
const p =
|
|
943
|
-
a *= p.x,
|
|
940
|
+
const p = J(g), w = g.getBoundingClientRect(), x = I(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * p.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * p.y;
|
|
941
|
+
a *= p.x, d *= p.y, u *= p.x, l *= p.y, a += y, d += v, h = F(g), g = ht(h);
|
|
944
942
|
}
|
|
945
943
|
}
|
|
946
|
-
return
|
|
947
|
-
width:
|
|
944
|
+
return Q({
|
|
945
|
+
width: u,
|
|
948
946
|
height: l,
|
|
949
947
|
x: a,
|
|
950
|
-
y:
|
|
948
|
+
y: d
|
|
951
949
|
});
|
|
952
950
|
}
|
|
953
951
|
function at(t, e) {
|
|
954
|
-
const n =
|
|
955
|
-
return e ? e.left + n :
|
|
952
|
+
const n = ft(t).scrollLeft;
|
|
953
|
+
return e ? e.left + n : G(j(t)).left + n;
|
|
956
954
|
}
|
|
957
|
-
function
|
|
955
|
+
function _t(t, e) {
|
|
958
956
|
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
|
|
959
957
|
return {
|
|
960
958
|
x: o,
|
|
961
959
|
y: i
|
|
962
960
|
};
|
|
963
961
|
}
|
|
964
|
-
function
|
|
962
|
+
function ve(t) {
|
|
965
963
|
let {
|
|
966
964
|
elements: e,
|
|
967
965
|
rect: n,
|
|
968
966
|
offsetParent: o,
|
|
969
967
|
strategy: i
|
|
970
968
|
} = t;
|
|
971
|
-
const s = i === "fixed", r =
|
|
969
|
+
const s = i === "fixed", r = j(o), c = e ? lt(e.floating) : !1;
|
|
972
970
|
if (o === r || c && s)
|
|
973
971
|
return n;
|
|
974
972
|
let a = {
|
|
975
973
|
scrollLeft: 0,
|
|
976
974
|
scrollTop: 0
|
|
977
|
-
},
|
|
978
|
-
const
|
|
979
|
-
if ((l || !l && !s) && ((
|
|
980
|
-
const f =
|
|
981
|
-
|
|
975
|
+
}, d = X(1);
|
|
976
|
+
const u = X(0), l = Y(o);
|
|
977
|
+
if ((l || !l && !s) && ((tt(o) !== "body" || nt(r)) && (a = ft(o)), l)) {
|
|
978
|
+
const f = G(o);
|
|
979
|
+
d = J(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
|
|
982
980
|
}
|
|
983
|
-
const m = r && !l && !s ?
|
|
981
|
+
const m = r && !l && !s ? _t(r, a) : X(0);
|
|
984
982
|
return {
|
|
985
|
-
width: n.width *
|
|
986
|
-
height: n.height *
|
|
987
|
-
x: n.x *
|
|
988
|
-
y: n.y *
|
|
983
|
+
width: n.width * d.x,
|
|
984
|
+
height: n.height * d.y,
|
|
985
|
+
x: n.x * d.x - a.scrollLeft * d.x + u.x + m.x,
|
|
986
|
+
y: n.y * d.y - a.scrollTop * d.y + u.y + m.y
|
|
989
987
|
};
|
|
990
988
|
}
|
|
991
|
-
function
|
|
989
|
+
function be(t) {
|
|
992
990
|
return Array.from(t.getClientRects());
|
|
993
991
|
}
|
|
994
|
-
function
|
|
995
|
-
const e =
|
|
992
|
+
function Re(t) {
|
|
993
|
+
const e = j(t), n = ft(t), o = t.ownerDocument.body, i = L(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = L(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
996
994
|
let r = -n.scrollLeft + at(t);
|
|
997
995
|
const c = -n.scrollTop;
|
|
998
996
|
return I(o).direction === "rtl" && (r += L(e.clientWidth, o.clientWidth) - i), {
|
|
@@ -1002,20 +1000,20 @@ function Ce(t) {
|
|
|
1002
1000
|
y: c
|
|
1003
1001
|
};
|
|
1004
1002
|
}
|
|
1005
|
-
const
|
|
1006
|
-
function
|
|
1007
|
-
const n = F(t), o =
|
|
1003
|
+
const Et = 25;
|
|
1004
|
+
function Ae(t, e) {
|
|
1005
|
+
const n = F(t), o = j(t), i = n.visualViewport;
|
|
1008
1006
|
let s = o.clientWidth, r = o.clientHeight, c = 0, a = 0;
|
|
1009
1007
|
if (i) {
|
|
1010
1008
|
s = i.width, r = i.height;
|
|
1011
|
-
const
|
|
1012
|
-
(!
|
|
1009
|
+
const u = vt();
|
|
1010
|
+
(!u || u && e === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
|
|
1013
1011
|
}
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1016
|
-
const
|
|
1017
|
-
h <=
|
|
1018
|
-
} else
|
|
1012
|
+
const d = at(o);
|
|
1013
|
+
if (d <= 0) {
|
|
1014
|
+
const u = o.ownerDocument, l = u.body, m = getComputedStyle(l), f = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - l.clientWidth - f);
|
|
1015
|
+
h <= Et && (s -= h);
|
|
1016
|
+
} else d <= Et && (s += d);
|
|
1019
1017
|
return {
|
|
1020
1018
|
width: s,
|
|
1021
1019
|
height: r,
|
|
@@ -1023,26 +1021,25 @@ function Le(t, e) {
|
|
|
1023
1021
|
y: a
|
|
1024
1022
|
};
|
|
1025
1023
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
const n = K(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = j(t) ? G(t) : X(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, a = i * s.x, u = o * s.y;
|
|
1024
|
+
function Oe(t, e) {
|
|
1025
|
+
const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = Y(t) ? J(t) : X(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, a = i * s.x, d = o * s.y;
|
|
1029
1026
|
return {
|
|
1030
1027
|
width: r,
|
|
1031
1028
|
height: c,
|
|
1032
1029
|
x: a,
|
|
1033
|
-
y:
|
|
1030
|
+
y: d
|
|
1034
1031
|
};
|
|
1035
1032
|
}
|
|
1036
|
-
function
|
|
1033
|
+
function Dt(t, e, n) {
|
|
1037
1034
|
let o;
|
|
1038
1035
|
if (e === "viewport")
|
|
1039
|
-
o =
|
|
1036
|
+
o = Ae(t, n);
|
|
1040
1037
|
else if (e === "document")
|
|
1041
|
-
o =
|
|
1038
|
+
o = Re(j(t));
|
|
1042
1039
|
else if (z(e))
|
|
1043
|
-
o =
|
|
1040
|
+
o = Oe(e, n);
|
|
1044
1041
|
else {
|
|
1045
|
-
const i =
|
|
1042
|
+
const i = Vt(t);
|
|
1046
1043
|
o = {
|
|
1047
1044
|
x: e.x - i.x,
|
|
1048
1045
|
y: e.y - i.y,
|
|
@@ -1050,44 +1047,46 @@ function Pt(t, e, n) {
|
|
|
1050
1047
|
height: e.height
|
|
1051
1048
|
};
|
|
1052
1049
|
}
|
|
1053
|
-
return
|
|
1050
|
+
return Q(o);
|
|
1054
1051
|
}
|
|
1055
|
-
function
|
|
1052
|
+
function zt(t, e) {
|
|
1056
1053
|
const n = U(t);
|
|
1057
|
-
return n === e || !z(n) ||
|
|
1054
|
+
return n === e || !z(n) || Z(n) ? !1 : I(n).position === "fixed" || zt(n, e);
|
|
1058
1055
|
}
|
|
1059
|
-
function
|
|
1056
|
+
function Ce(t, e) {
|
|
1060
1057
|
const n = e.get(t);
|
|
1061
1058
|
if (n)
|
|
1062
1059
|
return n;
|
|
1063
|
-
let o =
|
|
1060
|
+
let o = et(t, [], !1).filter((c) => z(c) && tt(c) !== "body"), i = null;
|
|
1064
1061
|
const s = I(t).position === "fixed";
|
|
1065
1062
|
let r = s ? U(t) : t;
|
|
1066
|
-
for (; z(r) && !
|
|
1067
|
-
const c = I(r), a =
|
|
1068
|
-
!a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i &&
|
|
1063
|
+
for (; z(r) && !Z(r); ) {
|
|
1064
|
+
const c = I(r), a = yt(r);
|
|
1065
|
+
!a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || nt(r) && !a && zt(t, r)) ? o = o.filter((u) => u !== r) : i = c, r = U(r);
|
|
1069
1066
|
}
|
|
1070
1067
|
return e.set(t, o), o;
|
|
1071
1068
|
}
|
|
1072
|
-
function
|
|
1069
|
+
function Se(t) {
|
|
1073
1070
|
let {
|
|
1074
1071
|
element: e,
|
|
1075
1072
|
boundary: n,
|
|
1076
1073
|
rootBoundary: o,
|
|
1077
1074
|
strategy: i
|
|
1078
1075
|
} = t;
|
|
1079
|
-
const r = [...n === "clippingAncestors" ?
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1076
|
+
const r = [...n === "clippingAncestors" ? lt(e) ? [] : Ce(e, this._c) : [].concat(n), o], c = Dt(e, r[0], i);
|
|
1077
|
+
let a = c.top, d = c.right, u = c.bottom, l = c.left;
|
|
1078
|
+
for (let m = 1; m < r.length; m++) {
|
|
1079
|
+
const f = Dt(e, r[m], i);
|
|
1080
|
+
a = L(f.top, a), d = V(f.right, d), u = V(f.bottom, u), l = L(f.left, l);
|
|
1081
|
+
}
|
|
1083
1082
|
return {
|
|
1084
|
-
width:
|
|
1085
|
-
height:
|
|
1086
|
-
x:
|
|
1087
|
-
y: a
|
|
1083
|
+
width: d - l,
|
|
1084
|
+
height: u - a,
|
|
1085
|
+
x: l,
|
|
1086
|
+
y: a
|
|
1088
1087
|
};
|
|
1089
1088
|
}
|
|
1090
|
-
function
|
|
1089
|
+
function Le(t) {
|
|
1091
1090
|
const {
|
|
1092
1091
|
width: e,
|
|
1093
1092
|
height: n
|
|
@@ -1097,23 +1096,23 @@ function Me(t) {
|
|
|
1097
1096
|
height: n
|
|
1098
1097
|
};
|
|
1099
1098
|
}
|
|
1100
|
-
function
|
|
1101
|
-
const o =
|
|
1099
|
+
function Te(t, e, n) {
|
|
1100
|
+
const o = Y(e), i = j(e), s = n === "fixed", r = G(t, !0, s, e);
|
|
1102
1101
|
let c = {
|
|
1103
1102
|
scrollLeft: 0,
|
|
1104
1103
|
scrollTop: 0
|
|
1105
1104
|
};
|
|
1106
1105
|
const a = X(0);
|
|
1107
|
-
function
|
|
1106
|
+
function d() {
|
|
1108
1107
|
a.x = at(i);
|
|
1109
1108
|
}
|
|
1110
1109
|
if (o || !o && !s)
|
|
1111
|
-
if ((
|
|
1112
|
-
const f =
|
|
1110
|
+
if ((tt(e) !== "body" || nt(i)) && (c = ft(e)), o) {
|
|
1111
|
+
const f = G(e, !0, s, e);
|
|
1113
1112
|
a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
|
|
1114
|
-
} else i &&
|
|
1115
|
-
s && !o && i &&
|
|
1116
|
-
const
|
|
1113
|
+
} else i && d();
|
|
1114
|
+
s && !o && i && d();
|
|
1115
|
+
const u = i && !o && !s ? _t(i, c) : X(0), l = r.left + c.scrollLeft - a.x - u.x, m = r.top + c.scrollTop - a.y - u.y;
|
|
1117
1116
|
return {
|
|
1118
1117
|
x: l,
|
|
1119
1118
|
y: m,
|
|
@@ -1121,39 +1120,39 @@ function Fe(t, e, n) {
|
|
|
1121
1120
|
height: r.height
|
|
1122
1121
|
};
|
|
1123
1122
|
}
|
|
1124
|
-
function
|
|
1123
|
+
function dt(t) {
|
|
1125
1124
|
return I(t).position === "static";
|
|
1126
1125
|
}
|
|
1127
|
-
function
|
|
1128
|
-
if (!
|
|
1126
|
+
function Mt(t, e) {
|
|
1127
|
+
if (!Y(t) || I(t).position === "fixed")
|
|
1129
1128
|
return null;
|
|
1130
1129
|
if (e)
|
|
1131
1130
|
return e(t);
|
|
1132
1131
|
let n = t.offsetParent;
|
|
1133
|
-
return
|
|
1132
|
+
return j(t) === n && (n = n.ownerDocument.body), n;
|
|
1134
1133
|
}
|
|
1135
|
-
function
|
|
1134
|
+
function It(t, e) {
|
|
1136
1135
|
const n = F(t);
|
|
1137
|
-
if (
|
|
1136
|
+
if (lt(t))
|
|
1138
1137
|
return n;
|
|
1139
|
-
if (!
|
|
1138
|
+
if (!Y(t)) {
|
|
1140
1139
|
let i = U(t);
|
|
1141
|
-
for (; i && !
|
|
1142
|
-
if (z(i) && !
|
|
1140
|
+
for (; i && !Z(i); ) {
|
|
1141
|
+
if (z(i) && !dt(i))
|
|
1143
1142
|
return i;
|
|
1144
1143
|
i = U(i);
|
|
1145
1144
|
}
|
|
1146
1145
|
return n;
|
|
1147
1146
|
}
|
|
1148
|
-
let o =
|
|
1149
|
-
for (; o &&
|
|
1150
|
-
o =
|
|
1151
|
-
return o &&
|
|
1147
|
+
let o = Mt(t, e);
|
|
1148
|
+
for (; o && he(o) && dt(o); )
|
|
1149
|
+
o = Mt(o, e);
|
|
1150
|
+
return o && Z(o) && dt(o) && !yt(o) ? n : o || we(t) || n;
|
|
1152
1151
|
}
|
|
1153
|
-
const
|
|
1154
|
-
const e = this.getOffsetParent ||
|
|
1152
|
+
const Pe = async function(t) {
|
|
1153
|
+
const e = this.getOffsetParent || It, n = this.getDimensions, o = await n(t.floating);
|
|
1155
1154
|
return {
|
|
1156
|
-
reference:
|
|
1155
|
+
reference: Te(t.reference, await e(t.floating), t.strategy),
|
|
1157
1156
|
floating: {
|
|
1158
1157
|
x: 0,
|
|
1159
1158
|
y: 0,
|
|
@@ -1162,71 +1161,71 @@ const ke = async function(t) {
|
|
|
1162
1161
|
}
|
|
1163
1162
|
};
|
|
1164
1163
|
};
|
|
1165
|
-
function
|
|
1164
|
+
function Ee(t) {
|
|
1166
1165
|
return I(t).direction === "rtl";
|
|
1167
1166
|
}
|
|
1168
|
-
const
|
|
1169
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1170
|
-
getDocumentElement:
|
|
1171
|
-
getClippingRect:
|
|
1172
|
-
getOffsetParent:
|
|
1173
|
-
getElementRects:
|
|
1174
|
-
getClientRects:
|
|
1175
|
-
getDimensions:
|
|
1176
|
-
getScale:
|
|
1167
|
+
const De = {
|
|
1168
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ve,
|
|
1169
|
+
getDocumentElement: j,
|
|
1170
|
+
getClippingRect: Se,
|
|
1171
|
+
getOffsetParent: It,
|
|
1172
|
+
getElementRects: Pe,
|
|
1173
|
+
getClientRects: be,
|
|
1174
|
+
getDimensions: Le,
|
|
1175
|
+
getScale: J,
|
|
1177
1176
|
isElement: z,
|
|
1178
|
-
isRTL:
|
|
1177
|
+
isRTL: Ee
|
|
1179
1178
|
};
|
|
1180
|
-
function
|
|
1179
|
+
function Xt(t, e) {
|
|
1181
1180
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
1182
1181
|
}
|
|
1183
|
-
function
|
|
1182
|
+
function Me(t, e) {
|
|
1184
1183
|
let n = null, o;
|
|
1185
|
-
const i =
|
|
1184
|
+
const i = j(t);
|
|
1186
1185
|
function s() {
|
|
1187
1186
|
var c;
|
|
1188
1187
|
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
1189
1188
|
}
|
|
1190
1189
|
function r(c, a) {
|
|
1191
1190
|
c === void 0 && (c = !1), a === void 0 && (a = 1), s();
|
|
1192
|
-
const
|
|
1193
|
-
left:
|
|
1191
|
+
const d = t.getBoundingClientRect(), {
|
|
1192
|
+
left: u,
|
|
1194
1193
|
top: l,
|
|
1195
1194
|
width: m,
|
|
1196
1195
|
height: f
|
|
1197
|
-
} =
|
|
1196
|
+
} = d;
|
|
1198
1197
|
if (c || e(), !m || !f)
|
|
1199
1198
|
return;
|
|
1200
|
-
const h =
|
|
1199
|
+
const h = ot(l), g = ot(i.clientWidth - (u + m)), p = ot(i.clientHeight - (l + f)), w = ot(u), y = {
|
|
1201
1200
|
rootMargin: -h + "px " + -g + "px " + -p + "px " + -w + "px",
|
|
1202
|
-
threshold: L(0,
|
|
1201
|
+
threshold: L(0, V(1, a)) || 1
|
|
1203
1202
|
};
|
|
1204
1203
|
let v = !0;
|
|
1205
|
-
function A
|
|
1206
|
-
const
|
|
1207
|
-
if (
|
|
1204
|
+
function R(A) {
|
|
1205
|
+
const O = A[0].intersectionRatio;
|
|
1206
|
+
if (O !== a) {
|
|
1208
1207
|
if (!v)
|
|
1209
1208
|
return r();
|
|
1210
|
-
|
|
1209
|
+
O ? r(!1, O) : o = setTimeout(() => {
|
|
1211
1210
|
r(!1, 1e-7);
|
|
1212
1211
|
}, 1e3);
|
|
1213
1212
|
}
|
|
1214
|
-
|
|
1213
|
+
O === 1 && !Xt(d, t.getBoundingClientRect()) && r(), v = !1;
|
|
1215
1214
|
}
|
|
1216
1215
|
try {
|
|
1217
|
-
n = new IntersectionObserver(
|
|
1216
|
+
n = new IntersectionObserver(R, {
|
|
1218
1217
|
...y,
|
|
1219
1218
|
// Handle <iframe>s
|
|
1220
1219
|
root: i.ownerDocument
|
|
1221
1220
|
});
|
|
1222
1221
|
} catch {
|
|
1223
|
-
n = new IntersectionObserver(
|
|
1222
|
+
n = new IntersectionObserver(R, y);
|
|
1224
1223
|
}
|
|
1225
1224
|
n.observe(t);
|
|
1226
1225
|
}
|
|
1227
1226
|
return r(!0), s;
|
|
1228
1227
|
}
|
|
1229
|
-
function
|
|
1228
|
+
function Fe(t, e, n, o) {
|
|
1230
1229
|
o === void 0 && (o = {});
|
|
1231
1230
|
const {
|
|
1232
1231
|
ancestorScroll: i = !0,
|
|
@@ -1234,59 +1233,59 @@ function Ne(t, e, n, o) {
|
|
|
1234
1233
|
elementResize: r = typeof ResizeObserver == "function",
|
|
1235
1234
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1236
1235
|
animationFrame: a = !1
|
|
1237
|
-
} = o,
|
|
1238
|
-
|
|
1236
|
+
} = o, d = bt(t), u = i || s ? [...d ? et(d) : [], ...e ? et(e) : []] : [];
|
|
1237
|
+
u.forEach((w) => {
|
|
1239
1238
|
i && w.addEventListener("scroll", n, {
|
|
1240
1239
|
passive: !0
|
|
1241
1240
|
}), s && w.addEventListener("resize", n);
|
|
1242
1241
|
});
|
|
1243
|
-
const l =
|
|
1242
|
+
const l = d && c ? Me(d, n) : null;
|
|
1244
1243
|
let m = -1, f = null;
|
|
1245
1244
|
r && (f = new ResizeObserver((w) => {
|
|
1246
1245
|
let [x] = w;
|
|
1247
|
-
x && x.target ===
|
|
1246
|
+
x && x.target === d && f && e && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1248
1247
|
var y;
|
|
1249
1248
|
(y = f) == null || y.observe(e);
|
|
1250
1249
|
})), n();
|
|
1251
|
-
}),
|
|
1252
|
-
let h, g = a ?
|
|
1250
|
+
}), d && !a && f.observe(d), e && f.observe(e));
|
|
1251
|
+
let h, g = a ? G(t) : null;
|
|
1253
1252
|
a && p();
|
|
1254
1253
|
function p() {
|
|
1255
|
-
const w =
|
|
1256
|
-
g && !
|
|
1254
|
+
const w = G(t);
|
|
1255
|
+
g && !Xt(g, w) && n(), g = w, h = requestAnimationFrame(p);
|
|
1257
1256
|
}
|
|
1258
1257
|
return n(), () => {
|
|
1259
1258
|
var w;
|
|
1260
|
-
|
|
1259
|
+
u.forEach((x) => {
|
|
1261
1260
|
i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
|
|
1262
1261
|
}), l?.(), (w = f) == null || w.disconnect(), f = null, a && cancelAnimationFrame(h);
|
|
1263
1262
|
};
|
|
1264
1263
|
}
|
|
1265
|
-
const
|
|
1264
|
+
const Be = ae, We = ie, ke = ue, $e = se, Ne = me, He = re, Ve = ne, _e = le, ze = de, Ie = (t, e, n) => {
|
|
1266
1265
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1267
|
-
platform:
|
|
1266
|
+
platform: De,
|
|
1268
1267
|
...n
|
|
1269
1268
|
}, s = {
|
|
1270
1269
|
...i.platform,
|
|
1271
1270
|
_c: o
|
|
1272
1271
|
};
|
|
1273
|
-
return
|
|
1272
|
+
return ee(t, e, {
|
|
1274
1273
|
...i,
|
|
1275
1274
|
platform: s
|
|
1276
1275
|
});
|
|
1277
1276
|
};
|
|
1278
1277
|
export {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1278
|
+
Ve as a,
|
|
1279
|
+
Fe as b,
|
|
1280
|
+
Ie as c,
|
|
1281
|
+
Ne as d,
|
|
1282
|
+
We as e,
|
|
1283
|
+
$e as f,
|
|
1284
|
+
tt as g,
|
|
1285
|
+
He as h,
|
|
1286
|
+
$t as i,
|
|
1287
|
+
_e as j,
|
|
1288
|
+
ze as l,
|
|
1289
|
+
Be as o,
|
|
1290
|
+
ke as s
|
|
1292
1291
|
};
|