@weing-dev/ui-kit-primitive 0.3.2 → 0.4.2
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/Divider-m-B4TrPH.js +29 -0
- package/dist/Divider.css +1 -0
- package/dist/Icon-DExqF865.js +1166 -0
- package/dist/bind-D3ZJ5k4I.js +47 -0
- package/dist/calendar.css +1 -0
- package/dist/calendar.d.ts +10 -0
- package/dist/calendar.js +4075 -0
- package/dist/chart.d.ts +2 -0
- package/dist/chart.js +94 -0
- package/dist/color-B71xRiyK.js +384 -0
- package/dist/compiler-runtime-BFrE5JtX.js +326 -0
- package/dist/components/LNB/LNB.context.d.ts +14 -14
- package/dist/components/LNB/LNB.d.ts +8 -6
- package/dist/components/LNB/makeNavigation.d.ts +11 -6
- package/dist/display.css +1 -0
- package/dist/display.d.ts +15 -0
- package/dist/display.js +5280 -0
- package/dist/editor-style.css +7 -0
- package/dist/editor-style.d.ts +0 -0
- package/dist/editor-style.js +1 -0
- package/dist/editor.css +1 -0
- package/dist/editor.d.ts +5 -0
- package/dist/editor.js +338 -0
- package/dist/entry/calendar.d.ts +10 -0
- package/dist/entry/chart.d.ts +2 -0
- package/dist/entry/display.d.ts +15 -0
- package/dist/entry/editor-style.d.ts +0 -0
- package/dist/entry/editor.d.ts +5 -0
- package/dist/entry/feedback.d.ts +6 -0
- package/dist/entry/form.d.ts +17 -0
- package/dist/entry/icon.d.ts +5 -0
- package/dist/entry/navigation.d.ts +9 -0
- package/dist/entry/table.d.ts +3 -0
- package/dist/entry/types.d.ts +1 -1
- package/dist/entry/video-player-style.d.ts +0 -0
- package/dist/entry/video-player.d.ts +3 -0
- package/dist/feedback.css +1 -0
- package/dist/feedback.d.ts +6 -0
- package/dist/feedback.js +385 -0
- package/dist/form.css +1 -0
- package/dist/form.d.ts +17 -0
- package/dist/form.js +3548 -0
- package/dist/icon.d.ts +5 -0
- package/dist/icon.js +18 -0
- package/dist/index.css +1 -7
- package/dist/index.js +4083 -4069
- package/dist/index.umd.cjs +26 -26
- package/dist/navigation.css +1 -0
- package/dist/navigation.d.ts +9 -0
- package/dist/navigation.js +1036 -0
- package/dist/table.css +1 -0
- package/dist/table.d.ts +3 -0
- package/dist/table.js +184 -0
- package/dist/usePopper-DvYrGFkh.js +1038 -0
- package/dist/video-player-style.css +1 -0
- package/dist/video-player-style.d.ts +0 -0
- package/dist/video-player-style.js +1 -0
- package/dist/video-player.css +1 -0
- package/dist/video-player.d.ts +3 -0
- package/dist/video-player.js +1751 -0
- package/package.json +44 -2
- package/dist/components/GlobalStyle/GlobalStyle.d.ts +0 -2
|
@@ -0,0 +1,1038 @@
|
|
|
1
|
+
import * as G from "react";
|
|
2
|
+
import * as mt from "react-dom";
|
|
3
|
+
import { g as ht } from "./bind-D3ZJ5k4I.js";
|
|
4
|
+
var Ie = function(t) {
|
|
5
|
+
return t.reduce(function(r, n) {
|
|
6
|
+
var a = n[0], o = n[1];
|
|
7
|
+
return r[a] = o, r;
|
|
8
|
+
}, {});
|
|
9
|
+
}, Ue = typeof window < "u" && window.document && window.document.createElement ? G.useLayoutEffect : G.useEffect, R = "top", T = "bottom", L = "right", B = "left", Se = "auto", ue = [R, T, L, B], Z = "start", se = "end", yt = "clippingParents", et = "viewport", ae = "popper", gt = "reference", ze = /* @__PURE__ */ ue.reduce(function(e, t) {
|
|
10
|
+
return e.concat([t + "-" + Z, t + "-" + se]);
|
|
11
|
+
}, []), tt = /* @__PURE__ */ [].concat(ue, [Se]).reduce(function(e, t) {
|
|
12
|
+
return e.concat([t, t + "-" + Z, t + "-" + se]);
|
|
13
|
+
}, []), wt = "beforeRead", bt = "read", xt = "afterRead", Ot = "beforeMain", Et = "main", At = "afterMain", Pt = "beforeWrite", jt = "write", St = "afterWrite", Dt = [wt, bt, xt, Ot, Et, At, Pt, jt, St];
|
|
14
|
+
function F(e) {
|
|
15
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
16
|
+
}
|
|
17
|
+
function C(e) {
|
|
18
|
+
if (e == null)
|
|
19
|
+
return window;
|
|
20
|
+
if (e.toString() !== "[object Window]") {
|
|
21
|
+
var t = e.ownerDocument;
|
|
22
|
+
return t && t.defaultView || window;
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
function K(e) {
|
|
27
|
+
var t = C(e).Element;
|
|
28
|
+
return e instanceof t || e instanceof Element;
|
|
29
|
+
}
|
|
30
|
+
function M(e) {
|
|
31
|
+
var t = C(e).HTMLElement;
|
|
32
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
33
|
+
}
|
|
34
|
+
function De(e) {
|
|
35
|
+
if (typeof ShadowRoot > "u")
|
|
36
|
+
return !1;
|
|
37
|
+
var t = C(e).ShadowRoot;
|
|
38
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
39
|
+
}
|
|
40
|
+
function Rt(e) {
|
|
41
|
+
var t = e.state;
|
|
42
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
43
|
+
var n = t.styles[r] || {}, a = t.attributes[r] || {}, o = t.elements[r];
|
|
44
|
+
!M(o) || !F(o) || (Object.assign(o.style, n), Object.keys(a).forEach(function(u) {
|
|
45
|
+
var i = a[u];
|
|
46
|
+
i === !1 ? o.removeAttribute(u) : o.setAttribute(u, i === !0 ? "" : i);
|
|
47
|
+
}));
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function Bt(e) {
|
|
51
|
+
var t = e.state, r = {
|
|
52
|
+
popper: {
|
|
53
|
+
position: t.options.strategy,
|
|
54
|
+
left: "0",
|
|
55
|
+
top: "0",
|
|
56
|
+
margin: "0"
|
|
57
|
+
},
|
|
58
|
+
arrow: {
|
|
59
|
+
position: "absolute"
|
|
60
|
+
},
|
|
61
|
+
reference: {}
|
|
62
|
+
};
|
|
63
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
64
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
65
|
+
var a = t.elements[n], o = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), i = u.reduce(function(s, c) {
|
|
66
|
+
return s[c] = "", s;
|
|
67
|
+
}, {});
|
|
68
|
+
!M(a) || !F(a) || (Object.assign(a.style, i), Object.keys(o).forEach(function(s) {
|
|
69
|
+
a.removeAttribute(s);
|
|
70
|
+
}));
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const $t = {
|
|
75
|
+
name: "applyStyles",
|
|
76
|
+
enabled: !0,
|
|
77
|
+
phase: "write",
|
|
78
|
+
fn: Rt,
|
|
79
|
+
effect: Bt,
|
|
80
|
+
requires: ["computeStyles"]
|
|
81
|
+
};
|
|
82
|
+
function H(e) {
|
|
83
|
+
return e.split("-")[0];
|
|
84
|
+
}
|
|
85
|
+
var J = Math.max, we = Math.min, _ = Math.round;
|
|
86
|
+
function Pe() {
|
|
87
|
+
var e = navigator.userAgentData;
|
|
88
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
89
|
+
return t.brand + "/" + t.version;
|
|
90
|
+
}).join(" ") : navigator.userAgent;
|
|
91
|
+
}
|
|
92
|
+
function rt() {
|
|
93
|
+
return !/^((?!chrome|android).)*safari/i.test(Pe());
|
|
94
|
+
}
|
|
95
|
+
function ee(e, t, r) {
|
|
96
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
97
|
+
var n = e.getBoundingClientRect(), a = 1, o = 1;
|
|
98
|
+
t && M(e) && (a = e.offsetWidth > 0 && _(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && _(n.height) / e.offsetHeight || 1);
|
|
99
|
+
var u = K(e) ? C(e) : window, i = u.visualViewport, s = !rt() && r, c = (n.left + (s && i ? i.offsetLeft : 0)) / a, f = (n.top + (s && i ? i.offsetTop : 0)) / o, l = n.width / a, m = n.height / o;
|
|
100
|
+
return {
|
|
101
|
+
width: l,
|
|
102
|
+
height: m,
|
|
103
|
+
top: f,
|
|
104
|
+
right: c + l,
|
|
105
|
+
bottom: f + m,
|
|
106
|
+
left: c,
|
|
107
|
+
x: c,
|
|
108
|
+
y: f
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function Re(e) {
|
|
112
|
+
var t = ee(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
113
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
114
|
+
x: e.offsetLeft,
|
|
115
|
+
y: e.offsetTop,
|
|
116
|
+
width: r,
|
|
117
|
+
height: n
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function nt(e, t) {
|
|
121
|
+
var r = t.getRootNode && t.getRootNode();
|
|
122
|
+
if (e.contains(t))
|
|
123
|
+
return !0;
|
|
124
|
+
if (r && De(r)) {
|
|
125
|
+
var n = t;
|
|
126
|
+
do {
|
|
127
|
+
if (n && e.isSameNode(n))
|
|
128
|
+
return !0;
|
|
129
|
+
n = n.parentNode || n.host;
|
|
130
|
+
} while (n);
|
|
131
|
+
}
|
|
132
|
+
return !1;
|
|
133
|
+
}
|
|
134
|
+
function V(e) {
|
|
135
|
+
return C(e).getComputedStyle(e);
|
|
136
|
+
}
|
|
137
|
+
function Ct(e) {
|
|
138
|
+
return ["table", "td", "th"].indexOf(F(e)) >= 0;
|
|
139
|
+
}
|
|
140
|
+
function N(e) {
|
|
141
|
+
return ((K(e) ? e.ownerDocument : (
|
|
142
|
+
// $FlowFixMe[prop-missing]
|
|
143
|
+
e.document
|
|
144
|
+
)) || window.document).documentElement;
|
|
145
|
+
}
|
|
146
|
+
function be(e) {
|
|
147
|
+
return F(e) === "html" ? e : (
|
|
148
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
149
|
+
// $FlowFixMe[incompatible-return]
|
|
150
|
+
// $FlowFixMe[prop-missing]
|
|
151
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
152
|
+
e.parentNode || // DOM Element detected
|
|
153
|
+
(De(e) ? e.host : null) || // ShadowRoot detected
|
|
154
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
155
|
+
N(e)
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
function Xe(e) {
|
|
159
|
+
return !M(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
160
|
+
V(e).position === "fixed" ? null : e.offsetParent;
|
|
161
|
+
}
|
|
162
|
+
function Mt(e) {
|
|
163
|
+
var t = /firefox/i.test(Pe()), r = /Trident/i.test(Pe());
|
|
164
|
+
if (r && M(e)) {
|
|
165
|
+
var n = V(e);
|
|
166
|
+
if (n.position === "fixed")
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
var a = be(e);
|
|
170
|
+
for (De(a) && (a = a.host); M(a) && ["html", "body"].indexOf(F(a)) < 0; ) {
|
|
171
|
+
var o = V(a);
|
|
172
|
+
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
|
|
173
|
+
return a;
|
|
174
|
+
a = a.parentNode;
|
|
175
|
+
}
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
function ce(e) {
|
|
179
|
+
for (var t = C(e), r = Xe(e); r && Ct(r) && V(r).position === "static"; )
|
|
180
|
+
r = Xe(r);
|
|
181
|
+
return r && (F(r) === "html" || F(r) === "body" && V(r).position === "static") ? t : r || Mt(e) || t;
|
|
182
|
+
}
|
|
183
|
+
function Be(e) {
|
|
184
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
185
|
+
}
|
|
186
|
+
function oe(e, t, r) {
|
|
187
|
+
return J(e, we(t, r));
|
|
188
|
+
}
|
|
189
|
+
function Tt(e, t, r) {
|
|
190
|
+
var n = oe(e, t, r);
|
|
191
|
+
return n > r ? r : n;
|
|
192
|
+
}
|
|
193
|
+
function at() {
|
|
194
|
+
return {
|
|
195
|
+
top: 0,
|
|
196
|
+
right: 0,
|
|
197
|
+
bottom: 0,
|
|
198
|
+
left: 0
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function ot(e) {
|
|
202
|
+
return Object.assign({}, at(), e);
|
|
203
|
+
}
|
|
204
|
+
function it(e, t) {
|
|
205
|
+
return t.reduce(function(r, n) {
|
|
206
|
+
return r[n] = e, r;
|
|
207
|
+
}, {});
|
|
208
|
+
}
|
|
209
|
+
var Lt = function(t, r) {
|
|
210
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
211
|
+
placement: r.placement
|
|
212
|
+
})) : t, ot(typeof t != "number" ? t : it(t, ue));
|
|
213
|
+
};
|
|
214
|
+
function kt(e) {
|
|
215
|
+
var t, r = e.state, n = e.name, a = e.options, o = r.elements.arrow, u = r.modifiersData.popperOffsets, i = H(r.placement), s = Be(i), c = [B, L].indexOf(i) >= 0, f = c ? "height" : "width";
|
|
216
|
+
if (!(!o || !u)) {
|
|
217
|
+
var l = Lt(a.padding, r), m = Re(o), p = s === "y" ? R : B, y = s === "y" ? T : L, h = r.rects.reference[f] + r.rects.reference[s] - u[s] - r.rects.popper[f], v = u[s] - r.rects.reference[s], b = ce(o), O = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, E = h / 2 - v / 2, d = l[p], g = O - m[f] - l[y], w = O / 2 - m[f] / 2 + E, x = oe(d, w, g), j = s;
|
|
218
|
+
r.modifiersData[n] = (t = {}, t[j] = x, t.centerOffset = x - w, t);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function Wt(e) {
|
|
222
|
+
var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
223
|
+
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || nt(t.elements.popper, a) && (t.elements.arrow = a));
|
|
224
|
+
}
|
|
225
|
+
const Ht = {
|
|
226
|
+
name: "arrow",
|
|
227
|
+
enabled: !0,
|
|
228
|
+
phase: "main",
|
|
229
|
+
fn: kt,
|
|
230
|
+
effect: Wt,
|
|
231
|
+
requires: ["popperOffsets"],
|
|
232
|
+
requiresIfExists: ["preventOverflow"]
|
|
233
|
+
};
|
|
234
|
+
function te(e) {
|
|
235
|
+
return e.split("-")[1];
|
|
236
|
+
}
|
|
237
|
+
var Ft = {
|
|
238
|
+
top: "auto",
|
|
239
|
+
right: "auto",
|
|
240
|
+
bottom: "auto",
|
|
241
|
+
left: "auto"
|
|
242
|
+
};
|
|
243
|
+
function Vt(e, t) {
|
|
244
|
+
var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
|
|
245
|
+
return {
|
|
246
|
+
x: _(r * a) / a || 0,
|
|
247
|
+
y: _(n * a) / a || 0
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
function Ye(e) {
|
|
251
|
+
var t, r = e.popper, n = e.popperRect, a = e.placement, o = e.variation, u = e.offsets, i = e.position, s = e.gpuAcceleration, c = e.adaptive, f = e.roundOffsets, l = e.isFixed, m = u.x, p = m === void 0 ? 0 : m, y = u.y, h = y === void 0 ? 0 : y, v = typeof f == "function" ? f({
|
|
252
|
+
x: p,
|
|
253
|
+
y: h
|
|
254
|
+
}) : {
|
|
255
|
+
x: p,
|
|
256
|
+
y: h
|
|
257
|
+
};
|
|
258
|
+
p = v.x, h = v.y;
|
|
259
|
+
var b = u.hasOwnProperty("x"), O = u.hasOwnProperty("y"), E = B, d = R, g = window;
|
|
260
|
+
if (c) {
|
|
261
|
+
var w = ce(r), x = "clientHeight", j = "clientWidth";
|
|
262
|
+
if (w === C(r) && (w = N(r), V(w).position !== "static" && i === "absolute" && (x = "scrollHeight", j = "scrollWidth")), w = w, a === R || (a === B || a === L) && o === se) {
|
|
263
|
+
d = T;
|
|
264
|
+
var P = l && w === g && g.visualViewport ? g.visualViewport.height : (
|
|
265
|
+
// $FlowFixMe[prop-missing]
|
|
266
|
+
w[x]
|
|
267
|
+
);
|
|
268
|
+
h -= P - n.height, h *= s ? 1 : -1;
|
|
269
|
+
}
|
|
270
|
+
if (a === B || (a === R || a === T) && o === se) {
|
|
271
|
+
E = L;
|
|
272
|
+
var A = l && w === g && g.visualViewport ? g.visualViewport.width : (
|
|
273
|
+
// $FlowFixMe[prop-missing]
|
|
274
|
+
w[j]
|
|
275
|
+
);
|
|
276
|
+
p -= A - n.width, p *= s ? 1 : -1;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
var S = Object.assign({
|
|
280
|
+
position: i
|
|
281
|
+
}, c && Ft), k = f === !0 ? Vt({
|
|
282
|
+
x: p,
|
|
283
|
+
y: h
|
|
284
|
+
}, C(r)) : {
|
|
285
|
+
x: p,
|
|
286
|
+
y: h
|
|
287
|
+
};
|
|
288
|
+
if (p = k.x, h = k.y, s) {
|
|
289
|
+
var D;
|
|
290
|
+
return Object.assign({}, S, (D = {}, D[d] = O ? "0" : "", D[E] = b ? "0" : "", D.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", D));
|
|
291
|
+
}
|
|
292
|
+
return Object.assign({}, S, (t = {}, t[d] = O ? h + "px" : "", t[E] = b ? p + "px" : "", t.transform = "", t));
|
|
293
|
+
}
|
|
294
|
+
function qt(e) {
|
|
295
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, o = r.adaptive, u = o === void 0 ? !0 : o, i = r.roundOffsets, s = i === void 0 ? !0 : i, c = {
|
|
296
|
+
placement: H(t.placement),
|
|
297
|
+
variation: te(t.placement),
|
|
298
|
+
popper: t.elements.popper,
|
|
299
|
+
popperRect: t.rects.popper,
|
|
300
|
+
gpuAcceleration: a,
|
|
301
|
+
isFixed: t.options.strategy === "fixed"
|
|
302
|
+
};
|
|
303
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ye(Object.assign({}, c, {
|
|
304
|
+
offsets: t.modifiersData.popperOffsets,
|
|
305
|
+
position: t.options.strategy,
|
|
306
|
+
adaptive: u,
|
|
307
|
+
roundOffsets: s
|
|
308
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ye(Object.assign({}, c, {
|
|
309
|
+
offsets: t.modifiersData.arrow,
|
|
310
|
+
position: "absolute",
|
|
311
|
+
adaptive: !1,
|
|
312
|
+
roundOffsets: s
|
|
313
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
314
|
+
"data-popper-placement": t.placement
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
const Nt = {
|
|
318
|
+
name: "computeStyles",
|
|
319
|
+
enabled: !0,
|
|
320
|
+
phase: "beforeWrite",
|
|
321
|
+
fn: qt,
|
|
322
|
+
data: {}
|
|
323
|
+
};
|
|
324
|
+
var he = {
|
|
325
|
+
passive: !0
|
|
326
|
+
};
|
|
327
|
+
function It(e) {
|
|
328
|
+
var t = e.state, r = e.instance, n = e.options, a = n.scroll, o = a === void 0 ? !0 : a, u = n.resize, i = u === void 0 ? !0 : u, s = C(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
329
|
+
return o && c.forEach(function(f) {
|
|
330
|
+
f.addEventListener("scroll", r.update, he);
|
|
331
|
+
}), i && s.addEventListener("resize", r.update, he), function() {
|
|
332
|
+
o && c.forEach(function(f) {
|
|
333
|
+
f.removeEventListener("scroll", r.update, he);
|
|
334
|
+
}), i && s.removeEventListener("resize", r.update, he);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
const Ut = {
|
|
338
|
+
name: "eventListeners",
|
|
339
|
+
enabled: !0,
|
|
340
|
+
phase: "write",
|
|
341
|
+
fn: function() {
|
|
342
|
+
},
|
|
343
|
+
effect: It,
|
|
344
|
+
data: {}
|
|
345
|
+
};
|
|
346
|
+
var zt = {
|
|
347
|
+
left: "right",
|
|
348
|
+
right: "left",
|
|
349
|
+
bottom: "top",
|
|
350
|
+
top: "bottom"
|
|
351
|
+
};
|
|
352
|
+
function ye(e) {
|
|
353
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
354
|
+
return zt[t];
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
var Xt = {
|
|
358
|
+
start: "end",
|
|
359
|
+
end: "start"
|
|
360
|
+
};
|
|
361
|
+
function Ge(e) {
|
|
362
|
+
return e.replace(/start|end/g, function(t) {
|
|
363
|
+
return Xt[t];
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
function $e(e) {
|
|
367
|
+
var t = C(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
368
|
+
return {
|
|
369
|
+
scrollLeft: r,
|
|
370
|
+
scrollTop: n
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function Ce(e) {
|
|
374
|
+
return ee(N(e)).left + $e(e).scrollLeft;
|
|
375
|
+
}
|
|
376
|
+
function Yt(e, t) {
|
|
377
|
+
var r = C(e), n = N(e), a = r.visualViewport, o = n.clientWidth, u = n.clientHeight, i = 0, s = 0;
|
|
378
|
+
if (a) {
|
|
379
|
+
o = a.width, u = a.height;
|
|
380
|
+
var c = rt();
|
|
381
|
+
(c || !c && t === "fixed") && (i = a.offsetLeft, s = a.offsetTop);
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
width: o,
|
|
385
|
+
height: u,
|
|
386
|
+
x: i + Ce(e),
|
|
387
|
+
y: s
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function Gt(e) {
|
|
391
|
+
var t, r = N(e), n = $e(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, o = J(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = J(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ce(e), s = -n.scrollTop;
|
|
392
|
+
return V(a || r).direction === "rtl" && (i += J(r.clientWidth, a ? a.clientWidth : 0) - o), {
|
|
393
|
+
width: o,
|
|
394
|
+
height: u,
|
|
395
|
+
x: i,
|
|
396
|
+
y: s
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function Me(e) {
|
|
400
|
+
var t = V(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
|
|
401
|
+
return /auto|scroll|overlay|hidden/.test(r + a + n);
|
|
402
|
+
}
|
|
403
|
+
function st(e) {
|
|
404
|
+
return ["html", "body", "#document"].indexOf(F(e)) >= 0 ? e.ownerDocument.body : M(e) && Me(e) ? e : st(be(e));
|
|
405
|
+
}
|
|
406
|
+
function ie(e, t) {
|
|
407
|
+
var r;
|
|
408
|
+
t === void 0 && (t = []);
|
|
409
|
+
var n = st(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), o = C(n), u = a ? [o].concat(o.visualViewport || [], Me(n) ? n : []) : n, i = t.concat(u);
|
|
410
|
+
return a ? i : (
|
|
411
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
412
|
+
i.concat(ie(be(u)))
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
function je(e) {
|
|
416
|
+
return Object.assign({}, e, {
|
|
417
|
+
left: e.x,
|
|
418
|
+
top: e.y,
|
|
419
|
+
right: e.x + e.width,
|
|
420
|
+
bottom: e.y + e.height
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
function Jt(e, t) {
|
|
424
|
+
var r = ee(e, !1, t === "fixed");
|
|
425
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
426
|
+
}
|
|
427
|
+
function Je(e, t, r) {
|
|
428
|
+
return t === et ? je(Yt(e, r)) : K(t) ? Jt(t, r) : je(Gt(N(e)));
|
|
429
|
+
}
|
|
430
|
+
function Kt(e) {
|
|
431
|
+
var t = ie(be(e)), r = ["absolute", "fixed"].indexOf(V(e).position) >= 0, n = r && M(e) ? ce(e) : e;
|
|
432
|
+
return K(n) ? t.filter(function(a) {
|
|
433
|
+
return K(a) && nt(a, n) && F(a) !== "body";
|
|
434
|
+
}) : [];
|
|
435
|
+
}
|
|
436
|
+
function Qt(e, t, r, n) {
|
|
437
|
+
var a = t === "clippingParents" ? Kt(e) : [].concat(t), o = [].concat(a, [r]), u = o[0], i = o.reduce(function(s, c) {
|
|
438
|
+
var f = Je(e, c, n);
|
|
439
|
+
return s.top = J(f.top, s.top), s.right = we(f.right, s.right), s.bottom = we(f.bottom, s.bottom), s.left = J(f.left, s.left), s;
|
|
440
|
+
}, Je(e, u, n));
|
|
441
|
+
return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
442
|
+
}
|
|
443
|
+
function ft(e) {
|
|
444
|
+
var t = e.reference, r = e.element, n = e.placement, a = n ? H(n) : null, o = n ? te(n) : null, u = t.x + t.width / 2 - r.width / 2, i = t.y + t.height / 2 - r.height / 2, s;
|
|
445
|
+
switch (a) {
|
|
446
|
+
case R:
|
|
447
|
+
s = {
|
|
448
|
+
x: u,
|
|
449
|
+
y: t.y - r.height
|
|
450
|
+
};
|
|
451
|
+
break;
|
|
452
|
+
case T:
|
|
453
|
+
s = {
|
|
454
|
+
x: u,
|
|
455
|
+
y: t.y + t.height
|
|
456
|
+
};
|
|
457
|
+
break;
|
|
458
|
+
case L:
|
|
459
|
+
s = {
|
|
460
|
+
x: t.x + t.width,
|
|
461
|
+
y: i
|
|
462
|
+
};
|
|
463
|
+
break;
|
|
464
|
+
case B:
|
|
465
|
+
s = {
|
|
466
|
+
x: t.x - r.width,
|
|
467
|
+
y: i
|
|
468
|
+
};
|
|
469
|
+
break;
|
|
470
|
+
default:
|
|
471
|
+
s = {
|
|
472
|
+
x: t.x,
|
|
473
|
+
y: t.y
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
var c = a ? Be(a) : null;
|
|
477
|
+
if (c != null) {
|
|
478
|
+
var f = c === "y" ? "height" : "width";
|
|
479
|
+
switch (o) {
|
|
480
|
+
case Z:
|
|
481
|
+
s[c] = s[c] - (t[f] / 2 - r[f] / 2);
|
|
482
|
+
break;
|
|
483
|
+
case se:
|
|
484
|
+
s[c] = s[c] + (t[f] / 2 - r[f] / 2);
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
return s;
|
|
489
|
+
}
|
|
490
|
+
function fe(e, t) {
|
|
491
|
+
t === void 0 && (t = {});
|
|
492
|
+
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, o = r.strategy, u = o === void 0 ? e.strategy : o, i = r.boundary, s = i === void 0 ? yt : i, c = r.rootBoundary, f = c === void 0 ? et : c, l = r.elementContext, m = l === void 0 ? ae : l, p = r.altBoundary, y = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = ot(typeof v != "number" ? v : it(v, ue)), O = m === ae ? gt : ae, E = e.rects.popper, d = e.elements[y ? O : m], g = Qt(K(d) ? d : d.contextElement || N(e.elements.popper), s, f, u), w = ee(e.elements.reference), x = ft({
|
|
493
|
+
reference: w,
|
|
494
|
+
element: E,
|
|
495
|
+
strategy: "absolute",
|
|
496
|
+
placement: a
|
|
497
|
+
}), j = je(Object.assign({}, E, x)), P = m === ae ? j : w, A = {
|
|
498
|
+
top: g.top - P.top + b.top,
|
|
499
|
+
bottom: P.bottom - g.bottom + b.bottom,
|
|
500
|
+
left: g.left - P.left + b.left,
|
|
501
|
+
right: P.right - g.right + b.right
|
|
502
|
+
}, S = e.modifiersData.offset;
|
|
503
|
+
if (m === ae && S) {
|
|
504
|
+
var k = S[a];
|
|
505
|
+
Object.keys(A).forEach(function(D) {
|
|
506
|
+
var I = [L, T].indexOf(D) >= 0 ? 1 : -1, U = [R, T].indexOf(D) >= 0 ? "y" : "x";
|
|
507
|
+
A[D] += k[U] * I;
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
return A;
|
|
511
|
+
}
|
|
512
|
+
function Zt(e, t) {
|
|
513
|
+
t === void 0 && (t = {});
|
|
514
|
+
var r = t, n = r.placement, a = r.boundary, o = r.rootBoundary, u = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, c = s === void 0 ? tt : s, f = te(n), l = f ? i ? ze : ze.filter(function(y) {
|
|
515
|
+
return te(y) === f;
|
|
516
|
+
}) : ue, m = l.filter(function(y) {
|
|
517
|
+
return c.indexOf(y) >= 0;
|
|
518
|
+
});
|
|
519
|
+
m.length === 0 && (m = l);
|
|
520
|
+
var p = m.reduce(function(y, h) {
|
|
521
|
+
return y[h] = fe(e, {
|
|
522
|
+
placement: h,
|
|
523
|
+
boundary: a,
|
|
524
|
+
rootBoundary: o,
|
|
525
|
+
padding: u
|
|
526
|
+
})[H(h)], y;
|
|
527
|
+
}, {});
|
|
528
|
+
return Object.keys(p).sort(function(y, h) {
|
|
529
|
+
return p[y] - p[h];
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
function _t(e) {
|
|
533
|
+
if (H(e) === Se)
|
|
534
|
+
return [];
|
|
535
|
+
var t = ye(e);
|
|
536
|
+
return [Ge(e), t, Ge(t)];
|
|
537
|
+
}
|
|
538
|
+
function er(e) {
|
|
539
|
+
var t = e.state, r = e.options, n = e.name;
|
|
540
|
+
if (!t.modifiersData[n]._skip) {
|
|
541
|
+
for (var a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, i = u === void 0 ? !0 : u, s = r.fallbackPlacements, c = r.padding, f = r.boundary, l = r.rootBoundary, m = r.altBoundary, p = r.flipVariations, y = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = H(v), O = b === v, E = s || (O || !y ? [ye(v)] : _t(v)), d = [v].concat(E).reduce(function(Q, q) {
|
|
542
|
+
return Q.concat(H(q) === Se ? Zt(t, {
|
|
543
|
+
placement: q,
|
|
544
|
+
boundary: f,
|
|
545
|
+
rootBoundary: l,
|
|
546
|
+
padding: c,
|
|
547
|
+
flipVariations: y,
|
|
548
|
+
allowedAutoPlacements: h
|
|
549
|
+
}) : q);
|
|
550
|
+
}, []), g = t.rects.reference, w = t.rects.popper, x = /* @__PURE__ */ new Map(), j = !0, P = d[0], A = 0; A < d.length; A++) {
|
|
551
|
+
var S = d[A], k = H(S), D = te(S) === Z, I = [R, T].indexOf(k) >= 0, U = I ? "width" : "height", $ = fe(t, {
|
|
552
|
+
placement: S,
|
|
553
|
+
boundary: f,
|
|
554
|
+
rootBoundary: l,
|
|
555
|
+
altBoundary: m,
|
|
556
|
+
padding: c
|
|
557
|
+
}), W = I ? D ? L : B : D ? T : R;
|
|
558
|
+
g[U] > w[U] && (W = ye(W));
|
|
559
|
+
var pe = ye(W), z = [];
|
|
560
|
+
if (o && z.push($[k] <= 0), i && z.push($[W] <= 0, $[pe] <= 0), z.every(function(Q) {
|
|
561
|
+
return Q;
|
|
562
|
+
})) {
|
|
563
|
+
P = S, j = !1;
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
x.set(S, z);
|
|
567
|
+
}
|
|
568
|
+
if (j)
|
|
569
|
+
for (var le = y ? 3 : 1, xe = function(q) {
|
|
570
|
+
var ne = d.find(function(de) {
|
|
571
|
+
var X = x.get(de);
|
|
572
|
+
if (X)
|
|
573
|
+
return X.slice(0, q).every(function(Oe) {
|
|
574
|
+
return Oe;
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
if (ne)
|
|
578
|
+
return P = ne, "break";
|
|
579
|
+
}, re = le; re > 0; re--) {
|
|
580
|
+
var ve = xe(re);
|
|
581
|
+
if (ve === "break") break;
|
|
582
|
+
}
|
|
583
|
+
t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
const tr = {
|
|
587
|
+
name: "flip",
|
|
588
|
+
enabled: !0,
|
|
589
|
+
phase: "main",
|
|
590
|
+
fn: er,
|
|
591
|
+
requiresIfExists: ["offset"],
|
|
592
|
+
data: {
|
|
593
|
+
_skip: !1
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
function Ke(e, t, r) {
|
|
597
|
+
return r === void 0 && (r = {
|
|
598
|
+
x: 0,
|
|
599
|
+
y: 0
|
|
600
|
+
}), {
|
|
601
|
+
top: e.top - t.height - r.y,
|
|
602
|
+
right: e.right - t.width + r.x,
|
|
603
|
+
bottom: e.bottom - t.height + r.y,
|
|
604
|
+
left: e.left - t.width - r.x
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
function Qe(e) {
|
|
608
|
+
return [R, L, T, B].some(function(t) {
|
|
609
|
+
return e[t] >= 0;
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
function rr(e) {
|
|
613
|
+
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, o = t.modifiersData.preventOverflow, u = fe(t, {
|
|
614
|
+
elementContext: "reference"
|
|
615
|
+
}), i = fe(t, {
|
|
616
|
+
altBoundary: !0
|
|
617
|
+
}), s = Ke(u, n), c = Ke(i, a, o), f = Qe(s), l = Qe(c);
|
|
618
|
+
t.modifiersData[r] = {
|
|
619
|
+
referenceClippingOffsets: s,
|
|
620
|
+
popperEscapeOffsets: c,
|
|
621
|
+
isReferenceHidden: f,
|
|
622
|
+
hasPopperEscaped: l
|
|
623
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
624
|
+
"data-popper-reference-hidden": f,
|
|
625
|
+
"data-popper-escaped": l
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
const nr = {
|
|
629
|
+
name: "hide",
|
|
630
|
+
enabled: !0,
|
|
631
|
+
phase: "main",
|
|
632
|
+
requiresIfExists: ["preventOverflow"],
|
|
633
|
+
fn: rr
|
|
634
|
+
};
|
|
635
|
+
function ar(e, t, r) {
|
|
636
|
+
var n = H(e), a = [B, R].indexOf(n) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
|
|
637
|
+
placement: e
|
|
638
|
+
})) : r, u = o[0], i = o[1];
|
|
639
|
+
return u = u || 0, i = (i || 0) * a, [B, L].indexOf(n) >= 0 ? {
|
|
640
|
+
x: i,
|
|
641
|
+
y: u
|
|
642
|
+
} : {
|
|
643
|
+
x: u,
|
|
644
|
+
y: i
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
function or(e) {
|
|
648
|
+
var t = e.state, r = e.options, n = e.name, a = r.offset, o = a === void 0 ? [0, 0] : a, u = tt.reduce(function(f, l) {
|
|
649
|
+
return f[l] = ar(l, t.rects, o), f;
|
|
650
|
+
}, {}), i = u[t.placement], s = i.x, c = i.y;
|
|
651
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = u;
|
|
652
|
+
}
|
|
653
|
+
const ir = {
|
|
654
|
+
name: "offset",
|
|
655
|
+
enabled: !0,
|
|
656
|
+
phase: "main",
|
|
657
|
+
requires: ["popperOffsets"],
|
|
658
|
+
fn: or
|
|
659
|
+
};
|
|
660
|
+
function sr(e) {
|
|
661
|
+
var t = e.state, r = e.name;
|
|
662
|
+
t.modifiersData[r] = ft({
|
|
663
|
+
reference: t.rects.reference,
|
|
664
|
+
element: t.rects.popper,
|
|
665
|
+
strategy: "absolute",
|
|
666
|
+
placement: t.placement
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
const fr = {
|
|
670
|
+
name: "popperOffsets",
|
|
671
|
+
enabled: !0,
|
|
672
|
+
phase: "read",
|
|
673
|
+
fn: sr,
|
|
674
|
+
data: {}
|
|
675
|
+
};
|
|
676
|
+
function ur(e) {
|
|
677
|
+
return e === "x" ? "y" : "x";
|
|
678
|
+
}
|
|
679
|
+
function cr(e) {
|
|
680
|
+
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, i = u === void 0 ? !1 : u, s = r.boundary, c = r.rootBoundary, f = r.altBoundary, l = r.padding, m = r.tether, p = m === void 0 ? !0 : m, y = r.tetherOffset, h = y === void 0 ? 0 : y, v = fe(t, {
|
|
681
|
+
boundary: s,
|
|
682
|
+
rootBoundary: c,
|
|
683
|
+
padding: l,
|
|
684
|
+
altBoundary: f
|
|
685
|
+
}), b = H(t.placement), O = te(t.placement), E = !O, d = Be(b), g = ur(d), w = t.modifiersData.popperOffsets, x = t.rects.reference, j = t.rects.popper, P = typeof h == "function" ? h(Object.assign({}, t.rects, {
|
|
686
|
+
placement: t.placement
|
|
687
|
+
})) : h, A = typeof P == "number" ? {
|
|
688
|
+
mainAxis: P,
|
|
689
|
+
altAxis: P
|
|
690
|
+
} : Object.assign({
|
|
691
|
+
mainAxis: 0,
|
|
692
|
+
altAxis: 0
|
|
693
|
+
}, P), S = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, k = {
|
|
694
|
+
x: 0,
|
|
695
|
+
y: 0
|
|
696
|
+
};
|
|
697
|
+
if (w) {
|
|
698
|
+
if (o) {
|
|
699
|
+
var D, I = d === "y" ? R : B, U = d === "y" ? T : L, $ = d === "y" ? "height" : "width", W = w[d], pe = W + v[I], z = W - v[U], le = p ? -j[$] / 2 : 0, xe = O === Z ? x[$] : j[$], re = O === Z ? -j[$] : -x[$], ve = t.elements.arrow, Q = p && ve ? Re(ve) : {
|
|
700
|
+
width: 0,
|
|
701
|
+
height: 0
|
|
702
|
+
}, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : at(), ne = q[I], de = q[U], X = oe(0, x[$], Q[$]), Oe = E ? x[$] / 2 - le - X - ne - A.mainAxis : xe - X - ne - A.mainAxis, ut = E ? -x[$] / 2 + le + X + de + A.mainAxis : re + X + de + A.mainAxis, Ee = t.elements.arrow && ce(t.elements.arrow), ct = Ee ? d === "y" ? Ee.clientTop || 0 : Ee.clientLeft || 0 : 0, Te = (D = S == null ? void 0 : S[d]) != null ? D : 0, pt = W + Oe - Te - ct, lt = W + ut - Te, Le = oe(p ? we(pe, pt) : pe, W, p ? J(z, lt) : z);
|
|
703
|
+
w[d] = Le, k[d] = Le - W;
|
|
704
|
+
}
|
|
705
|
+
if (i) {
|
|
706
|
+
var ke, vt = d === "x" ? R : B, dt = d === "x" ? T : L, Y = w[g], me = g === "y" ? "height" : "width", We = Y + v[vt], He = Y - v[dt], Ae = [R, B].indexOf(b) !== -1, Fe = (ke = S == null ? void 0 : S[g]) != null ? ke : 0, Ve = Ae ? We : Y - x[me] - j[me] - Fe + A.altAxis, qe = Ae ? Y + x[me] + j[me] - Fe - A.altAxis : He, Ne = p && Ae ? Tt(Ve, Y, qe) : oe(p ? Ve : We, Y, p ? qe : He);
|
|
707
|
+
w[g] = Ne, k[g] = Ne - Y;
|
|
708
|
+
}
|
|
709
|
+
t.modifiersData[n] = k;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
const pr = {
|
|
713
|
+
name: "preventOverflow",
|
|
714
|
+
enabled: !0,
|
|
715
|
+
phase: "main",
|
|
716
|
+
fn: cr,
|
|
717
|
+
requiresIfExists: ["offset"]
|
|
718
|
+
};
|
|
719
|
+
function lr(e) {
|
|
720
|
+
return {
|
|
721
|
+
scrollLeft: e.scrollLeft,
|
|
722
|
+
scrollTop: e.scrollTop
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function vr(e) {
|
|
726
|
+
return e === C(e) || !M(e) ? $e(e) : lr(e);
|
|
727
|
+
}
|
|
728
|
+
function dr(e) {
|
|
729
|
+
var t = e.getBoundingClientRect(), r = _(t.width) / e.offsetWidth || 1, n = _(t.height) / e.offsetHeight || 1;
|
|
730
|
+
return r !== 1 || n !== 1;
|
|
731
|
+
}
|
|
732
|
+
function mr(e, t, r) {
|
|
733
|
+
r === void 0 && (r = !1);
|
|
734
|
+
var n = M(t), a = M(t) && dr(t), o = N(t), u = ee(e, a, r), i = {
|
|
735
|
+
scrollLeft: 0,
|
|
736
|
+
scrollTop: 0
|
|
737
|
+
}, s = {
|
|
738
|
+
x: 0,
|
|
739
|
+
y: 0
|
|
740
|
+
};
|
|
741
|
+
return (n || !n && !r) && ((F(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
742
|
+
Me(o)) && (i = vr(t)), M(t) ? (s = ee(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : o && (s.x = Ce(o))), {
|
|
743
|
+
x: u.left + i.scrollLeft - s.x,
|
|
744
|
+
y: u.top + i.scrollTop - s.y,
|
|
745
|
+
width: u.width,
|
|
746
|
+
height: u.height
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
function hr(e) {
|
|
750
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
751
|
+
e.forEach(function(o) {
|
|
752
|
+
t.set(o.name, o);
|
|
753
|
+
});
|
|
754
|
+
function a(o) {
|
|
755
|
+
r.add(o.name);
|
|
756
|
+
var u = [].concat(o.requires || [], o.requiresIfExists || []);
|
|
757
|
+
u.forEach(function(i) {
|
|
758
|
+
if (!r.has(i)) {
|
|
759
|
+
var s = t.get(i);
|
|
760
|
+
s && a(s);
|
|
761
|
+
}
|
|
762
|
+
}), n.push(o);
|
|
763
|
+
}
|
|
764
|
+
return e.forEach(function(o) {
|
|
765
|
+
r.has(o.name) || a(o);
|
|
766
|
+
}), n;
|
|
767
|
+
}
|
|
768
|
+
function yr(e) {
|
|
769
|
+
var t = hr(e);
|
|
770
|
+
return Dt.reduce(function(r, n) {
|
|
771
|
+
return r.concat(t.filter(function(a) {
|
|
772
|
+
return a.phase === n;
|
|
773
|
+
}));
|
|
774
|
+
}, []);
|
|
775
|
+
}
|
|
776
|
+
function gr(e) {
|
|
777
|
+
var t;
|
|
778
|
+
return function() {
|
|
779
|
+
return t || (t = new Promise(function(r) {
|
|
780
|
+
Promise.resolve().then(function() {
|
|
781
|
+
t = void 0, r(e());
|
|
782
|
+
});
|
|
783
|
+
})), t;
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
function wr(e) {
|
|
787
|
+
var t = e.reduce(function(r, n) {
|
|
788
|
+
var a = r[n.name];
|
|
789
|
+
return r[n.name] = a ? Object.assign({}, a, n, {
|
|
790
|
+
options: Object.assign({}, a.options, n.options),
|
|
791
|
+
data: Object.assign({}, a.data, n.data)
|
|
792
|
+
}) : n, r;
|
|
793
|
+
}, {});
|
|
794
|
+
return Object.keys(t).map(function(r) {
|
|
795
|
+
return t[r];
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
var Ze = {
|
|
799
|
+
placement: "bottom",
|
|
800
|
+
modifiers: [],
|
|
801
|
+
strategy: "absolute"
|
|
802
|
+
};
|
|
803
|
+
function _e() {
|
|
804
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
805
|
+
t[r] = arguments[r];
|
|
806
|
+
return !t.some(function(n) {
|
|
807
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
function br(e) {
|
|
811
|
+
e === void 0 && (e = {});
|
|
812
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, o = a === void 0 ? Ze : a;
|
|
813
|
+
return function(i, s, c) {
|
|
814
|
+
c === void 0 && (c = o);
|
|
815
|
+
var f = {
|
|
816
|
+
placement: "bottom",
|
|
817
|
+
orderedModifiers: [],
|
|
818
|
+
options: Object.assign({}, Ze, o),
|
|
819
|
+
modifiersData: {},
|
|
820
|
+
elements: {
|
|
821
|
+
reference: i,
|
|
822
|
+
popper: s
|
|
823
|
+
},
|
|
824
|
+
attributes: {},
|
|
825
|
+
styles: {}
|
|
826
|
+
}, l = [], m = !1, p = {
|
|
827
|
+
state: f,
|
|
828
|
+
setOptions: function(b) {
|
|
829
|
+
var O = typeof b == "function" ? b(f.options) : b;
|
|
830
|
+
h(), f.options = Object.assign({}, o, f.options, O), f.scrollParents = {
|
|
831
|
+
reference: K(i) ? ie(i) : i.contextElement ? ie(i.contextElement) : [],
|
|
832
|
+
popper: ie(s)
|
|
833
|
+
};
|
|
834
|
+
var E = yr(wr([].concat(n, f.options.modifiers)));
|
|
835
|
+
return f.orderedModifiers = E.filter(function(d) {
|
|
836
|
+
return d.enabled;
|
|
837
|
+
}), y(), p.update();
|
|
838
|
+
},
|
|
839
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
840
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
841
|
+
// logic.
|
|
842
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
843
|
+
// prefer the async Popper#update method
|
|
844
|
+
forceUpdate: function() {
|
|
845
|
+
if (!m) {
|
|
846
|
+
var b = f.elements, O = b.reference, E = b.popper;
|
|
847
|
+
if (_e(O, E)) {
|
|
848
|
+
f.rects = {
|
|
849
|
+
reference: mr(O, ce(E), f.options.strategy === "fixed"),
|
|
850
|
+
popper: Re(E)
|
|
851
|
+
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(A) {
|
|
852
|
+
return f.modifiersData[A.name] = Object.assign({}, A.data);
|
|
853
|
+
});
|
|
854
|
+
for (var d = 0; d < f.orderedModifiers.length; d++) {
|
|
855
|
+
if (f.reset === !0) {
|
|
856
|
+
f.reset = !1, d = -1;
|
|
857
|
+
continue;
|
|
858
|
+
}
|
|
859
|
+
var g = f.orderedModifiers[d], w = g.fn, x = g.options, j = x === void 0 ? {} : x, P = g.name;
|
|
860
|
+
typeof w == "function" && (f = w({
|
|
861
|
+
state: f,
|
|
862
|
+
options: j,
|
|
863
|
+
name: P,
|
|
864
|
+
instance: p
|
|
865
|
+
}) || f);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
871
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
872
|
+
update: gr(function() {
|
|
873
|
+
return new Promise(function(v) {
|
|
874
|
+
p.forceUpdate(), v(f);
|
|
875
|
+
});
|
|
876
|
+
}),
|
|
877
|
+
destroy: function() {
|
|
878
|
+
h(), m = !0;
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
if (!_e(i, s))
|
|
882
|
+
return p;
|
|
883
|
+
p.setOptions(c).then(function(v) {
|
|
884
|
+
!m && c.onFirstUpdate && c.onFirstUpdate(v);
|
|
885
|
+
});
|
|
886
|
+
function y() {
|
|
887
|
+
f.orderedModifiers.forEach(function(v) {
|
|
888
|
+
var b = v.name, O = v.options, E = O === void 0 ? {} : O, d = v.effect;
|
|
889
|
+
if (typeof d == "function") {
|
|
890
|
+
var g = d({
|
|
891
|
+
state: f,
|
|
892
|
+
name: b,
|
|
893
|
+
instance: p,
|
|
894
|
+
options: E
|
|
895
|
+
}), w = function() {
|
|
896
|
+
};
|
|
897
|
+
l.push(g || w);
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
function h() {
|
|
902
|
+
l.forEach(function(v) {
|
|
903
|
+
return v();
|
|
904
|
+
}), l = [];
|
|
905
|
+
}
|
|
906
|
+
return p;
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
var xr = [Ut, fr, Nt, $t, ir, tr, pr, Ht, nr], Or = /* @__PURE__ */ br({
|
|
910
|
+
defaultModifiers: xr
|
|
911
|
+
}), Er = typeof Element < "u", Ar = typeof Map == "function", Pr = typeof Set == "function", jr = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
912
|
+
function ge(e, t) {
|
|
913
|
+
if (e === t) return !0;
|
|
914
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
915
|
+
if (e.constructor !== t.constructor) return !1;
|
|
916
|
+
var r, n, a;
|
|
917
|
+
if (Array.isArray(e)) {
|
|
918
|
+
if (r = e.length, r != t.length) return !1;
|
|
919
|
+
for (n = r; n-- !== 0; )
|
|
920
|
+
if (!ge(e[n], t[n])) return !1;
|
|
921
|
+
return !0;
|
|
922
|
+
}
|
|
923
|
+
var o;
|
|
924
|
+
if (Ar && e instanceof Map && t instanceof Map) {
|
|
925
|
+
if (e.size !== t.size) return !1;
|
|
926
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
927
|
+
if (!t.has(n.value[0])) return !1;
|
|
928
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
929
|
+
if (!ge(n.value[1], t.get(n.value[0]))) return !1;
|
|
930
|
+
return !0;
|
|
931
|
+
}
|
|
932
|
+
if (Pr && e instanceof Set && t instanceof Set) {
|
|
933
|
+
if (e.size !== t.size) return !1;
|
|
934
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
935
|
+
if (!t.has(n.value[0])) return !1;
|
|
936
|
+
return !0;
|
|
937
|
+
}
|
|
938
|
+
if (jr && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
939
|
+
if (r = e.length, r != t.length) return !1;
|
|
940
|
+
for (n = r; n-- !== 0; )
|
|
941
|
+
if (e[n] !== t[n]) return !1;
|
|
942
|
+
return !0;
|
|
943
|
+
}
|
|
944
|
+
if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
|
|
945
|
+
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
|
|
946
|
+
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
|
|
947
|
+
if (a = Object.keys(e), r = a.length, r !== Object.keys(t).length) return !1;
|
|
948
|
+
for (n = r; n-- !== 0; )
|
|
949
|
+
if (!Object.prototype.hasOwnProperty.call(t, a[n])) return !1;
|
|
950
|
+
if (Er && e instanceof Element) return !1;
|
|
951
|
+
for (n = r; n-- !== 0; )
|
|
952
|
+
if (!((a[n] === "_owner" || a[n] === "__v" || a[n] === "__o") && e.$$typeof) && !ge(e[a[n]], t[a[n]]))
|
|
953
|
+
return !1;
|
|
954
|
+
return !0;
|
|
955
|
+
}
|
|
956
|
+
return e !== e && t !== t;
|
|
957
|
+
}
|
|
958
|
+
var Sr = function(t, r) {
|
|
959
|
+
try {
|
|
960
|
+
return ge(t, r);
|
|
961
|
+
} catch (n) {
|
|
962
|
+
if ((n.message || "").match(/stack|recursion/i))
|
|
963
|
+
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
964
|
+
throw n;
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
const Dr = /* @__PURE__ */ ht(Sr);
|
|
968
|
+
var Rr = [], $r = function(t, r, n) {
|
|
969
|
+
n === void 0 && (n = {});
|
|
970
|
+
var a = G.useRef(null), o = {
|
|
971
|
+
onFirstUpdate: n.onFirstUpdate,
|
|
972
|
+
placement: n.placement || "bottom",
|
|
973
|
+
strategy: n.strategy || "absolute",
|
|
974
|
+
modifiers: n.modifiers || Rr
|
|
975
|
+
}, u = G.useState({
|
|
976
|
+
styles: {
|
|
977
|
+
popper: {
|
|
978
|
+
position: o.strategy,
|
|
979
|
+
left: "0",
|
|
980
|
+
top: "0"
|
|
981
|
+
},
|
|
982
|
+
arrow: {
|
|
983
|
+
position: "absolute"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
attributes: {}
|
|
987
|
+
}), i = u[0], s = u[1], c = G.useMemo(function() {
|
|
988
|
+
return {
|
|
989
|
+
name: "updateState",
|
|
990
|
+
enabled: !0,
|
|
991
|
+
phase: "write",
|
|
992
|
+
fn: function(p) {
|
|
993
|
+
var y = p.state, h = Object.keys(y.elements);
|
|
994
|
+
mt.flushSync(function() {
|
|
995
|
+
s({
|
|
996
|
+
styles: Ie(h.map(function(v) {
|
|
997
|
+
return [v, y.styles[v] || {}];
|
|
998
|
+
})),
|
|
999
|
+
attributes: Ie(h.map(function(v) {
|
|
1000
|
+
return [v, y.attributes[v]];
|
|
1001
|
+
}))
|
|
1002
|
+
});
|
|
1003
|
+
});
|
|
1004
|
+
},
|
|
1005
|
+
requires: ["computeStyles"]
|
|
1006
|
+
};
|
|
1007
|
+
}, []), f = G.useMemo(function() {
|
|
1008
|
+
var m = {
|
|
1009
|
+
onFirstUpdate: o.onFirstUpdate,
|
|
1010
|
+
placement: o.placement,
|
|
1011
|
+
strategy: o.strategy,
|
|
1012
|
+
modifiers: [].concat(o.modifiers, [c, {
|
|
1013
|
+
name: "applyStyles",
|
|
1014
|
+
enabled: !1
|
|
1015
|
+
}])
|
|
1016
|
+
};
|
|
1017
|
+
return Dr(a.current, m) ? a.current || m : (a.current = m, m);
|
|
1018
|
+
}, [o.onFirstUpdate, o.placement, o.strategy, o.modifiers, c]), l = G.useRef();
|
|
1019
|
+
return Ue(function() {
|
|
1020
|
+
l.current && l.current.setOptions(f);
|
|
1021
|
+
}, [f]), Ue(function() {
|
|
1022
|
+
if (!(t == null || r == null)) {
|
|
1023
|
+
var m = n.createPopper || Or, p = m(t, r, f);
|
|
1024
|
+
return l.current = p, function() {
|
|
1025
|
+
p.destroy(), l.current = null;
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
}, [t, r, n.createPopper]), {
|
|
1029
|
+
state: l.current ? l.current.state : null,
|
|
1030
|
+
styles: i.styles,
|
|
1031
|
+
attributes: i.attributes,
|
|
1032
|
+
update: l.current ? l.current.update : null,
|
|
1033
|
+
forceUpdate: l.current ? l.current.forceUpdate : null
|
|
1034
|
+
};
|
|
1035
|
+
};
|
|
1036
|
+
export {
|
|
1037
|
+
$r as u
|
|
1038
|
+
};
|