@krosoft/react 0.0.78 → 0.0.79
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/{LoadingState-CqRLmkxn.js → LoadingState-DQjGcT2l.js} +5 -5
- package/dist/MetricCard-4VI9Ki0g.js +83 -0
- package/dist/SearchInput-Cf5NHhnz.js +698 -0
- package/dist/TableFilter-DgChe4aX.js +406 -0
- package/dist/TableSettings-4YLJSh4G.js +2064 -0
- package/dist/{ThemeSelector-sTd9T2OD.js → ThemeSelector-MqD5QvHl.js} +8 -8
- package/dist/{Topbar-BqC05zWP.js → Topbar-DifQ00kV.js} +26 -27
- package/dist/{badge-kADcbb2Y.js → badge-Bw-aBz_H.js} +1 -1
- package/dist/components/core/cards/KpiCard.d.ts +1 -1
- package/dist/components/core/cards/KpiCard.d.ts.map +1 -1
- package/dist/components/core/cards/MetricCard.d.ts +1 -2
- package/dist/components/core/cards/MetricCard.d.ts.map +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/filters/ActiveFilters.d.ts +10 -0
- package/dist/components/core/filters/ActiveFilters.d.ts.map +1 -0
- package/dist/components/core/filters/AdvancedFilters.d.ts +11 -0
- package/dist/components/core/filters/AdvancedFilters.d.ts.map +1 -0
- package/dist/components/core/filters/FilterField.d.ts +11 -0
- package/dist/components/core/filters/FilterField.d.ts.map +1 -0
- package/dist/components/core/filters/SearchableFilterPill.d.ts +15 -0
- package/dist/components/core/filters/SearchableFilterPill.d.ts.map +1 -0
- package/dist/components/core/filters/TableFilter.d.ts +17 -0
- package/dist/components/core/filters/TableFilter.d.ts.map +1 -0
- package/dist/components/core/filters/index.d.ts +5 -0
- package/dist/components/core/filters/index.d.ts.map +1 -0
- package/dist/components/core/filters/index.js +7 -0
- package/dist/components/core/index.d.ts +2 -0
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +34 -26
- package/dist/components/core/inputs/DatePicker.d.ts +9 -0
- package/dist/components/core/inputs/DatePicker.d.ts.map +1 -0
- package/dist/components/core/inputs/MultiSelect.d.ts +17 -0
- package/dist/components/core/inputs/MultiSelect.d.ts.map +1 -0
- package/dist/components/core/inputs/SearchInput.d.ts.map +1 -1
- package/dist/components/core/inputs/SearchableSelect.d.ts +14 -0
- package/dist/components/core/inputs/SearchableSelect.d.ts.map +1 -0
- package/dist/components/core/inputs/index.d.ts +3 -1
- package/dist/components/core/inputs/index.d.ts.map +1 -1
- package/dist/components/core/inputs/index.js +6 -3
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/index.js +1 -1
- package/dist/components/core/table/DataTable.d.ts +17 -2
- package/dist/components/core/table/DataTable.d.ts.map +1 -1
- package/dist/components/core/table/TableBody.d.ts +2 -2
- package/dist/components/core/table/TableBody.d.ts.map +1 -1
- package/dist/components/core/table/TableHeader.d.ts +1 -1
- package/dist/components/core/table/TableHeader.d.ts.map +1 -1
- package/dist/components/core/table/index.d.ts +1 -3
- package/dist/components/core/table/index.d.ts.map +1 -1
- package/dist/components/core/table/index.js +9 -9
- package/dist/components/core/theme/ThemeSelector.d.ts +2 -1
- package/dist/components/core/theme/ThemeSelector.d.ts.map +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +86 -63
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +4 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +50 -35
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/toast.d.ts +1 -1
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/{floating-ui.react-dom-BPCyLQfI.js → floating-ui.react-dom-BIcsGc3t.js} +553 -526
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/ui/useDataTable.d.ts +1 -1
- package/dist/hooks/ui/useDataTable.d.ts.map +1 -1
- package/dist/hooks/ui/useToast.d.ts +5 -13
- package/dist/hooks/ui/useToast.d.ts.map +1 -1
- package/dist/popover-UjRQmYGN.js +5889 -0
- package/dist/select-CtU681LB.js +2070 -0
- package/dist/tailwind/index.d.ts.map +1 -1
- package/dist/tooltip-DzQngJZK.js +828 -0
- package/dist/types/FilterFieldConfig.d.ts +16 -0
- package/dist/types/FilterFieldConfig.d.ts.map +1 -0
- package/dist/types/FilterSection.d.ts +6 -0
- package/dist/types/FilterSection.d.ts.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/{useTheme-D__o7mLN.js → useTheme-DsHPKCDp.js} +24 -18
- package/package.json +4 -2
- package/dist/Combination-CzdDhqdB.js +0 -564
- package/dist/DataTable-CjFA9p4V.js +0 -2216
- package/dist/DateRangePicker-rrXXEYz8.js +0 -1240
- package/dist/MetricCard-B1Y-27_U.js +0 -78
- package/dist/calendar-BMReToKR.js +0 -3911
- package/dist/checkbox-BI6Lm_p-.js +0 -358
- package/dist/chevron-down-ki5-dwtL.js +0 -11
- package/dist/select-B-hcmC3K.js +0 -1468
- package/dist/tooltip-gI1Mp9DG.js +0 -779
- package/dist/types/DataTableProps.d.ts +0 -19
- package/dist/types/DataTableProps.d.ts.map +0 -1
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import { useLayoutEffect as
|
|
3
|
-
import { jsx as nt
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import { useLayoutEffect as ne } from "react";
|
|
3
|
+
import { jsx as nt } from "react/jsx-runtime";
|
|
4
|
+
import { c as oe } from "./createLucideIcon-CRdjzt2A.js";
|
|
5
|
+
import { a as re, c as ie } from "./index-gWiv5-6R.js";
|
|
6
|
+
import * as se from "react-dom";
|
|
7
|
+
const Lt = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Tt = re, ce = (t, e) => (n) => {
|
|
7
8
|
var o;
|
|
8
|
-
if ((e == null ? void 0 : e.variants) == null) return
|
|
9
|
-
const { variants: r, defaultVariants: i } = e, s = Object.keys(r).map((
|
|
10
|
-
const l = n == null ? void 0 : n[
|
|
9
|
+
if ((e == null ? void 0 : e.variants) == null) return Tt(t, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
10
|
+
const { variants: r, defaultVariants: i } = e, s = Object.keys(r).map((a) => {
|
|
11
|
+
const l = n == null ? void 0 : n[a], u = i == null ? void 0 : i[a];
|
|
11
12
|
if (l === null) return null;
|
|
12
|
-
const d =
|
|
13
|
-
return r[
|
|
14
|
-
}), c = n && Object.entries(n).reduce((
|
|
13
|
+
const d = Lt(l) || Lt(u);
|
|
14
|
+
return r[a][d];
|
|
15
|
+
}), c = n && Object.entries(n).reduce((a, l) => {
|
|
15
16
|
let [u, d] = l;
|
|
16
|
-
return d === void 0 || (
|
|
17
|
-
}, {}),
|
|
17
|
+
return d === void 0 || (a[u] = d), a;
|
|
18
|
+
}, {}), f = e == null || (o = e.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((a, l) => {
|
|
18
19
|
let { class: u, className: d, ...m } = l;
|
|
19
20
|
return Object.entries(m).every((h) => {
|
|
20
|
-
let [p,
|
|
21
|
-
return Array.isArray(
|
|
21
|
+
let [p, y] = h;
|
|
22
|
+
return Array.isArray(y) ? y.includes({
|
|
22
23
|
...i,
|
|
23
24
|
...c
|
|
24
25
|
}[p]) : {
|
|
25
26
|
...i,
|
|
26
27
|
...c
|
|
27
|
-
}[p] ===
|
|
28
|
+
}[p] === y;
|
|
28
29
|
}) ? [
|
|
29
|
-
...
|
|
30
|
+
...a,
|
|
30
31
|
u,
|
|
31
32
|
d
|
|
32
|
-
] :
|
|
33
|
+
] : a;
|
|
33
34
|
}, []);
|
|
34
|
-
return
|
|
35
|
+
return Tt(t, s, f, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
35
36
|
};
|
|
36
37
|
function Dt(t, e) {
|
|
37
38
|
if (typeof t == "function")
|
|
@@ -54,42 +55,56 @@ function It(...t) {
|
|
|
54
55
|
};
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function En(...t) {
|
|
58
59
|
return g.useCallback(It(...t), t);
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function Pn(t, e) {
|
|
62
|
+
const n = g.createContext(e), o = (i) => {
|
|
63
|
+
const { children: s, ...c } = i, f = g.useMemo(() => c, Object.values(c));
|
|
64
|
+
return /* @__PURE__ */ nt(n.Provider, { value: f, children: s });
|
|
65
|
+
};
|
|
66
|
+
o.displayName = t + "Provider";
|
|
67
|
+
function r(i) {
|
|
68
|
+
const s = g.useContext(n);
|
|
69
|
+
if (s) return s;
|
|
70
|
+
if (e !== void 0) return e;
|
|
71
|
+
throw new Error(`\`${i}\` must be used within \`${t}\``);
|
|
72
|
+
}
|
|
73
|
+
return [o, r];
|
|
74
|
+
}
|
|
75
|
+
function Ln(t, e = []) {
|
|
61
76
|
let n = [];
|
|
62
77
|
function o(i, s) {
|
|
63
|
-
const c = g.createContext(s),
|
|
78
|
+
const c = g.createContext(s), f = n.length;
|
|
64
79
|
n = [...n, s];
|
|
65
|
-
const
|
|
66
|
-
var
|
|
67
|
-
const { scope: d, children: m, ...h } = u, p = ((
|
|
68
|
-
return /* @__PURE__ */ nt(p.Provider, { value:
|
|
80
|
+
const a = (u) => {
|
|
81
|
+
var w;
|
|
82
|
+
const { scope: d, children: m, ...h } = u, p = ((w = d == null ? void 0 : d[t]) == null ? void 0 : w[f]) || c, y = g.useMemo(() => h, Object.values(h));
|
|
83
|
+
return /* @__PURE__ */ nt(p.Provider, { value: y, children: m });
|
|
69
84
|
};
|
|
70
|
-
|
|
85
|
+
a.displayName = i + "Provider";
|
|
71
86
|
function l(u, d) {
|
|
72
87
|
var p;
|
|
73
|
-
const m = ((p = d == null ? void 0 : d[t]) == null ? void 0 : p[
|
|
88
|
+
const m = ((p = d == null ? void 0 : d[t]) == null ? void 0 : p[f]) || c, h = g.useContext(m);
|
|
74
89
|
if (h) return h;
|
|
75
90
|
if (s !== void 0) return s;
|
|
76
91
|
throw new Error(`\`${u}\` must be used within \`${i}\``);
|
|
77
92
|
}
|
|
78
|
-
return [
|
|
93
|
+
return [a, l];
|
|
79
94
|
}
|
|
80
95
|
const r = () => {
|
|
81
96
|
const i = n.map((s) => g.createContext(s));
|
|
82
97
|
return function(c) {
|
|
83
|
-
const
|
|
98
|
+
const f = (c == null ? void 0 : c[t]) || i;
|
|
84
99
|
return g.useMemo(
|
|
85
|
-
() => ({ [`__scope${t}`]: { ...c, [t]:
|
|
86
|
-
[c,
|
|
100
|
+
() => ({ [`__scope${t}`]: { ...c, [t]: f } }),
|
|
101
|
+
[c, f]
|
|
87
102
|
);
|
|
88
103
|
};
|
|
89
104
|
};
|
|
90
|
-
return r.scopeName = t, [o,
|
|
105
|
+
return r.scopeName = t, [o, le(r, ...e)];
|
|
91
106
|
}
|
|
92
|
-
function
|
|
107
|
+
function le(...t) {
|
|
93
108
|
const e = t[0];
|
|
94
109
|
if (t.length === 1) return e;
|
|
95
110
|
const n = () => {
|
|
@@ -98,8 +113,8 @@ function ce(...t) {
|
|
|
98
113
|
scopeName: r.scopeName
|
|
99
114
|
}));
|
|
100
115
|
return function(i) {
|
|
101
|
-
const s = o.reduce((c, { useScope:
|
|
102
|
-
const u =
|
|
116
|
+
const s = o.reduce((c, { useScope: f, scopeName: a }) => {
|
|
117
|
+
const u = f(i)[`__scope${a}`];
|
|
103
118
|
return { ...c, ...u };
|
|
104
119
|
}, {});
|
|
105
120
|
return g.useMemo(() => ({ [`__scope${e.scopeName}`]: s }), [s]);
|
|
@@ -107,25 +122,25 @@ function ce(...t) {
|
|
|
107
122
|
};
|
|
108
123
|
return n.scopeName = e.scopeName, n;
|
|
109
124
|
}
|
|
110
|
-
function
|
|
125
|
+
function Tn(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
111
126
|
return function(r) {
|
|
112
127
|
if (t == null || t(r), n === !1 || !r.defaultPrevented)
|
|
113
128
|
return e == null ? void 0 : e(r);
|
|
114
129
|
};
|
|
115
130
|
}
|
|
116
|
-
var
|
|
117
|
-
},
|
|
118
|
-
function
|
|
131
|
+
var Rt = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
|
|
132
|
+
}, fe = g[" useInsertionEffect ".trim().toString()] || Rt;
|
|
133
|
+
function Dn({
|
|
119
134
|
prop: t,
|
|
120
135
|
defaultProp: e,
|
|
121
136
|
onChange: n = () => {
|
|
122
137
|
},
|
|
123
138
|
caller: o
|
|
124
139
|
}) {
|
|
125
|
-
const [r, i, s] =
|
|
140
|
+
const [r, i, s] = ae({
|
|
126
141
|
defaultProp: e,
|
|
127
142
|
onChange: n
|
|
128
|
-
}), c = t !== void 0,
|
|
143
|
+
}), c = t !== void 0, f = c ? t : r;
|
|
129
144
|
{
|
|
130
145
|
const l = g.useRef(t !== void 0);
|
|
131
146
|
g.useEffect(() => {
|
|
@@ -135,37 +150,37 @@ function Cn({
|
|
|
135
150
|
), l.current = c;
|
|
136
151
|
}, [c, o]);
|
|
137
152
|
}
|
|
138
|
-
const
|
|
153
|
+
const a = g.useCallback(
|
|
139
154
|
(l) => {
|
|
140
155
|
var u;
|
|
141
156
|
if (c) {
|
|
142
|
-
const d =
|
|
157
|
+
const d = ue(l) ? l(t) : l;
|
|
143
158
|
d !== t && ((u = s.current) == null || u.call(s, d));
|
|
144
159
|
} else
|
|
145
160
|
i(l);
|
|
146
161
|
},
|
|
147
162
|
[c, t, i, s]
|
|
148
163
|
);
|
|
149
|
-
return [
|
|
164
|
+
return [f, a];
|
|
150
165
|
}
|
|
151
|
-
function
|
|
166
|
+
function ae({
|
|
152
167
|
defaultProp: t,
|
|
153
168
|
onChange: e
|
|
154
169
|
}) {
|
|
155
170
|
const [n, o] = g.useState(t), r = g.useRef(n), i = g.useRef(e);
|
|
156
|
-
return
|
|
171
|
+
return fe(() => {
|
|
157
172
|
i.current = e;
|
|
158
173
|
}, [e]), g.useEffect(() => {
|
|
159
174
|
var s;
|
|
160
175
|
r.current !== n && ((s = i.current) == null || s.call(i, n), r.current = n);
|
|
161
176
|
}, [n, r]), [n, o, i];
|
|
162
177
|
}
|
|
163
|
-
function
|
|
178
|
+
function ue(t) {
|
|
164
179
|
return typeof t == "function";
|
|
165
180
|
}
|
|
166
|
-
function
|
|
181
|
+
function Mn(t) {
|
|
167
182
|
const [e, n] = g.useState(void 0);
|
|
168
|
-
return
|
|
183
|
+
return Rt(() => {
|
|
169
184
|
if (t) {
|
|
170
185
|
n({ width: t.offsetWidth, height: t.offsetHeight });
|
|
171
186
|
const o = new ResizeObserver((r) => {
|
|
@@ -174,8 +189,8 @@ function An(t) {
|
|
|
174
189
|
const i = r[0];
|
|
175
190
|
let s, c;
|
|
176
191
|
if ("borderBoxSize" in i) {
|
|
177
|
-
const
|
|
178
|
-
s =
|
|
192
|
+
const f = i.borderBoxSize, a = Array.isArray(f) ? f[0] : f;
|
|
193
|
+
s = a.inlineSize, c = a.blockSize;
|
|
179
194
|
} else
|
|
180
195
|
s = t.offsetWidth, c = t.offsetHeight;
|
|
181
196
|
n({ width: s, height: c });
|
|
@@ -185,57 +200,68 @@ function An(t) {
|
|
|
185
200
|
n(void 0);
|
|
186
201
|
}, [t]), e;
|
|
187
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* @license lucide-react v1.16.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/
|
|
209
|
+
const de = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], kn = oe("chevron-down", de);
|
|
210
|
+
var me = Symbol.for("react.lazy"), ct = g[" use ".trim().toString()];
|
|
211
|
+
function he(t) {
|
|
212
|
+
return typeof t == "object" && t !== null && "then" in t;
|
|
213
|
+
}
|
|
214
|
+
function Ht(t) {
|
|
215
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === me && "_payload" in t && he(t._payload);
|
|
216
|
+
}
|
|
188
217
|
// @__NO_SIDE_EFFECTS__
|
|
189
|
-
function
|
|
190
|
-
const e = /* @__PURE__ */
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
218
|
+
function ge(t) {
|
|
219
|
+
const e = /* @__PURE__ */ ye(t), n = g.forwardRef((o, r) => {
|
|
220
|
+
let { children: i, ...s } = o;
|
|
221
|
+
Ht(i) && typeof ct == "function" && (i = ct(i._payload));
|
|
222
|
+
const c = g.Children.toArray(i), f = c.find(xe);
|
|
223
|
+
if (f) {
|
|
224
|
+
const a = f.props.children, l = c.map((u) => u === f ? g.Children.count(a) > 1 ? g.Children.only(null) : g.isValidElement(a) ? a.props.children : null : u);
|
|
225
|
+
return /* @__PURE__ */ nt(e, { ...s, ref: r, children: g.isValidElement(a) ? g.cloneElement(a, void 0, l) : null });
|
|
195
226
|
}
|
|
196
227
|
return /* @__PURE__ */ nt(e, { ...s, ref: r, children: i });
|
|
197
228
|
});
|
|
198
229
|
return n.displayName = `${t}.Slot`, n;
|
|
199
230
|
}
|
|
200
|
-
var
|
|
231
|
+
var pe = /* @__PURE__ */ ge("Slot");
|
|
201
232
|
// @__NO_SIDE_EFFECTS__
|
|
202
|
-
function
|
|
233
|
+
function ye(t) {
|
|
203
234
|
const e = g.forwardRef((n, o) => {
|
|
204
|
-
|
|
205
|
-
if (g.isValidElement(r)) {
|
|
206
|
-
const s =
|
|
235
|
+
let { children: r, ...i } = n;
|
|
236
|
+
if (Ht(r) && typeof ct == "function" && (r = ct(r._payload)), g.isValidElement(r)) {
|
|
237
|
+
const s = be(r), c = ve(i, r.props);
|
|
207
238
|
return r.type !== g.Fragment && (c.ref = o ? It(o, s) : s), g.cloneElement(r, c);
|
|
208
239
|
}
|
|
209
240
|
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
210
241
|
});
|
|
211
242
|
return e.displayName = `${t}.SlotClone`, e;
|
|
212
243
|
}
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const e = ({ children: n }) => /* @__PURE__ */ nt(ne, { children: n });
|
|
217
|
-
return e.displayName = `${t}.Slottable`, e.__radixId = jt, e;
|
|
218
|
-
}
|
|
219
|
-
function he(t) {
|
|
220
|
-
return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === jt;
|
|
244
|
+
var we = Symbol("radix.slottable");
|
|
245
|
+
function xe(t) {
|
|
246
|
+
return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === we;
|
|
221
247
|
}
|
|
222
|
-
function
|
|
248
|
+
function ve(t, e) {
|
|
223
249
|
const n = { ...e };
|
|
224
250
|
for (const o in e) {
|
|
225
251
|
const r = t[o], i = e[o];
|
|
226
252
|
/^on[A-Z]/.test(o) ? r && i ? n[o] = (...c) => {
|
|
227
|
-
const
|
|
228
|
-
return r(...c),
|
|
253
|
+
const f = i(...c);
|
|
254
|
+
return r(...c), f;
|
|
229
255
|
} : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...i } : o === "className" && (n[o] = [r, i].filter(Boolean).join(" "));
|
|
230
256
|
}
|
|
231
257
|
return { ...t, ...n };
|
|
232
258
|
}
|
|
233
|
-
function
|
|
259
|
+
function be(t) {
|
|
234
260
|
var o, r;
|
|
235
261
|
let e = (o = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : o.get, n = e && "isReactWarning" in e && e.isReactWarning;
|
|
236
262
|
return n ? t.ref : (e = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, n = e && "isReactWarning" in e && e.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
237
263
|
}
|
|
238
|
-
const
|
|
264
|
+
const Re = ce(
|
|
239
265
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
240
266
|
{
|
|
241
267
|
variants: {
|
|
@@ -260,9 +286,9 @@ const we = se(
|
|
|
260
286
|
size: "default"
|
|
261
287
|
}
|
|
262
288
|
}
|
|
263
|
-
),
|
|
264
|
-
|
|
265
|
-
function
|
|
289
|
+
), Ce = g.forwardRef(({ className: t, variant: e, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ nt(o ? pe : "button", { className: ie(Re({ variant: e, size: n, className: t })), ref: i, ...r }));
|
|
290
|
+
Ce.displayName = "Button";
|
|
291
|
+
function Se(t) {
|
|
266
292
|
const e = g.useRef(t);
|
|
267
293
|
return g.useEffect(() => {
|
|
268
294
|
e.current = t;
|
|
@@ -271,8 +297,8 @@ function xe(t) {
|
|
|
271
297
|
return (o = e.current) == null ? void 0 : o.call(e, ...n);
|
|
272
298
|
}, []);
|
|
273
299
|
}
|
|
274
|
-
function
|
|
275
|
-
const n =
|
|
300
|
+
function $n(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
301
|
+
const n = Se(t);
|
|
276
302
|
g.useEffect(() => {
|
|
277
303
|
const o = (r) => {
|
|
278
304
|
r.key === "Escape" && n(r);
|
|
@@ -280,25 +306,25 @@ function En(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
280
306
|
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
281
307
|
}, [n, e]);
|
|
282
308
|
}
|
|
283
|
-
var
|
|
284
|
-
}),
|
|
285
|
-
function
|
|
286
|
-
const [e, n] = g.useState(
|
|
287
|
-
return
|
|
288
|
-
n((o) => o ?? String(
|
|
309
|
+
var Ae = g[" useId ".trim().toString()] || (() => {
|
|
310
|
+
}), Oe = 0;
|
|
311
|
+
function _n(t) {
|
|
312
|
+
const [e, n] = g.useState(Ae());
|
|
313
|
+
return Rt(() => {
|
|
314
|
+
n((o) => o ?? String(Oe++));
|
|
289
315
|
}, [t]), e ? `radix-${e}` : "";
|
|
290
316
|
}
|
|
291
|
-
const
|
|
317
|
+
const Ee = ["top", "right", "bottom", "left"], K = Math.min, $ = Math.max, lt = Math.round, it = Math.floor, j = (t) => ({
|
|
292
318
|
x: t,
|
|
293
319
|
y: t
|
|
294
|
-
}),
|
|
320
|
+
}), Pe = {
|
|
295
321
|
left: "right",
|
|
296
322
|
right: "left",
|
|
297
323
|
bottom: "top",
|
|
298
324
|
top: "bottom"
|
|
299
325
|
};
|
|
300
|
-
function
|
|
301
|
-
return $(t,
|
|
326
|
+
function xt(t, e, n) {
|
|
327
|
+
return $(t, K(e, n));
|
|
302
328
|
}
|
|
303
329
|
function H(t, e) {
|
|
304
330
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -309,55 +335,55 @@ function X(t) {
|
|
|
309
335
|
function tt(t) {
|
|
310
336
|
return t.split("-")[1];
|
|
311
337
|
}
|
|
312
|
-
function
|
|
338
|
+
function Ct(t) {
|
|
313
339
|
return t === "x" ? "y" : "x";
|
|
314
340
|
}
|
|
315
341
|
function St(t) {
|
|
316
342
|
return t === "y" ? "height" : "width";
|
|
317
343
|
}
|
|
318
|
-
function
|
|
344
|
+
function B(t) {
|
|
319
345
|
const e = t[0];
|
|
320
346
|
return e === "t" || e === "b" ? "y" : "x";
|
|
321
347
|
}
|
|
322
|
-
function
|
|
323
|
-
return
|
|
348
|
+
function At(t) {
|
|
349
|
+
return Ct(B(t));
|
|
324
350
|
}
|
|
325
|
-
function
|
|
351
|
+
function Le(t, e, n) {
|
|
326
352
|
n === void 0 && (n = !1);
|
|
327
|
-
const o = tt(t), r =
|
|
353
|
+
const o = tt(t), r = At(t), i = St(r);
|
|
328
354
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
329
|
-
return e.reference[i] > e.floating[i] && (s =
|
|
355
|
+
return e.reference[i] > e.floating[i] && (s = ft(s)), [s, ft(s)];
|
|
330
356
|
}
|
|
331
|
-
function
|
|
332
|
-
const e =
|
|
333
|
-
return [
|
|
357
|
+
function Te(t) {
|
|
358
|
+
const e = ft(t);
|
|
359
|
+
return [vt(t), e, vt(e)];
|
|
334
360
|
}
|
|
335
|
-
function
|
|
361
|
+
function vt(t) {
|
|
336
362
|
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
337
363
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
364
|
+
const Mt = ["left", "right"], kt = ["right", "left"], De = ["top", "bottom"], Me = ["bottom", "top"];
|
|
365
|
+
function ke(t, e, n) {
|
|
340
366
|
switch (t) {
|
|
341
367
|
case "top":
|
|
342
368
|
case "bottom":
|
|
343
|
-
return n ? e ?
|
|
369
|
+
return n ? e ? kt : Mt : e ? Mt : kt;
|
|
344
370
|
case "left":
|
|
345
371
|
case "right":
|
|
346
|
-
return e ?
|
|
372
|
+
return e ? De : Me;
|
|
347
373
|
default:
|
|
348
374
|
return [];
|
|
349
375
|
}
|
|
350
376
|
}
|
|
351
|
-
function
|
|
377
|
+
function $e(t, e, n, o) {
|
|
352
378
|
const r = tt(t);
|
|
353
|
-
let i =
|
|
354
|
-
return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(
|
|
379
|
+
let i = ke(X(t), n === "start", o);
|
|
380
|
+
return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(vt)))), i;
|
|
355
381
|
}
|
|
356
|
-
function
|
|
382
|
+
function ft(t) {
|
|
357
383
|
const e = X(t);
|
|
358
|
-
return
|
|
384
|
+
return Pe[e] + t.slice(e.length);
|
|
359
385
|
}
|
|
360
|
-
function
|
|
386
|
+
function _e(t) {
|
|
361
387
|
return {
|
|
362
388
|
top: 0,
|
|
363
389
|
right: 0,
|
|
@@ -366,15 +392,15 @@ function De(t) {
|
|
|
366
392
|
...t
|
|
367
393
|
};
|
|
368
394
|
}
|
|
369
|
-
function
|
|
370
|
-
return typeof t != "number" ?
|
|
395
|
+
function Xt(t) {
|
|
396
|
+
return typeof t != "number" ? _e(t) : {
|
|
371
397
|
top: t,
|
|
372
398
|
right: t,
|
|
373
399
|
bottom: t,
|
|
374
400
|
left: t
|
|
375
401
|
};
|
|
376
402
|
}
|
|
377
|
-
function
|
|
403
|
+
function at(t) {
|
|
378
404
|
const {
|
|
379
405
|
x: e,
|
|
380
406
|
y: n,
|
|
@@ -392,14 +418,14 @@ function ft(t) {
|
|
|
392
418
|
y: n
|
|
393
419
|
};
|
|
394
420
|
}
|
|
395
|
-
function
|
|
421
|
+
function $t(t, e, n) {
|
|
396
422
|
let {
|
|
397
423
|
reference: o,
|
|
398
424
|
floating: r
|
|
399
425
|
} = t;
|
|
400
|
-
const i =
|
|
426
|
+
const i = B(e), s = At(e), c = St(s), f = X(e), a = i === "y", l = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, d = o[c] / 2 - r[c] / 2;
|
|
401
427
|
let m;
|
|
402
|
-
switch (
|
|
428
|
+
switch (f) {
|
|
403
429
|
case "top":
|
|
404
430
|
m = {
|
|
405
431
|
x: l,
|
|
@@ -432,15 +458,15 @@ function kt(t, e, n) {
|
|
|
432
458
|
}
|
|
433
459
|
switch (tt(e)) {
|
|
434
460
|
case "start":
|
|
435
|
-
m[s] -= d * (n &&
|
|
461
|
+
m[s] -= d * (n && a ? -1 : 1);
|
|
436
462
|
break;
|
|
437
463
|
case "end":
|
|
438
|
-
m[s] += d * (n &&
|
|
464
|
+
m[s] += d * (n && a ? -1 : 1);
|
|
439
465
|
break;
|
|
440
466
|
}
|
|
441
467
|
return m;
|
|
442
468
|
}
|
|
443
|
-
async function
|
|
469
|
+
async function Ne(t, e) {
|
|
444
470
|
var n;
|
|
445
471
|
e === void 0 && (e = {});
|
|
446
472
|
const {
|
|
@@ -449,18 +475,18 @@ async function Te(t, e) {
|
|
|
449
475
|
platform: i,
|
|
450
476
|
rects: s,
|
|
451
477
|
elements: c,
|
|
452
|
-
strategy:
|
|
478
|
+
strategy: f
|
|
453
479
|
} = t, {
|
|
454
|
-
boundary:
|
|
480
|
+
boundary: a = "clippingAncestors",
|
|
455
481
|
rootBoundary: l = "viewport",
|
|
456
482
|
elementContext: u = "floating",
|
|
457
483
|
altBoundary: d = !1,
|
|
458
484
|
padding: m = 0
|
|
459
|
-
} = H(e, t), h =
|
|
460
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(
|
|
461
|
-
boundary:
|
|
485
|
+
} = H(e, t), h = Xt(m), y = c[d ? u === "floating" ? "reference" : "floating" : u], w = at(await i.getClippingRect({
|
|
486
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
487
|
+
boundary: a,
|
|
462
488
|
rootBoundary: l,
|
|
463
|
-
strategy:
|
|
489
|
+
strategy: f
|
|
464
490
|
})), b = u === "floating" ? {
|
|
465
491
|
x: o,
|
|
466
492
|
y: r,
|
|
@@ -472,20 +498,20 @@ async function Te(t, e) {
|
|
|
472
498
|
} : {
|
|
473
499
|
x: 1,
|
|
474
500
|
y: 1
|
|
475
|
-
}, R =
|
|
501
|
+
}, R = at(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
476
502
|
elements: c,
|
|
477
503
|
rect: b,
|
|
478
504
|
offsetParent: v,
|
|
479
|
-
strategy:
|
|
505
|
+
strategy: f
|
|
480
506
|
}) : b);
|
|
481
507
|
return {
|
|
482
|
-
top: (
|
|
483
|
-
bottom: (R.bottom -
|
|
484
|
-
left: (
|
|
485
|
-
right: (R.right -
|
|
508
|
+
top: (w.top - R.top + h.top) / x.y,
|
|
509
|
+
bottom: (R.bottom - w.bottom + h.bottom) / x.y,
|
|
510
|
+
left: (w.left - R.left + h.left) / x.x,
|
|
511
|
+
right: (R.right - w.right + h.right) / x.x
|
|
486
512
|
};
|
|
487
513
|
}
|
|
488
|
-
const
|
|
514
|
+
const We = 50, Fe = async (t, e, n) => {
|
|
489
515
|
const {
|
|
490
516
|
placement: o = "bottom",
|
|
491
517
|
strategy: r = "absolute",
|
|
@@ -493,29 +519,29 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
493
519
|
platform: s
|
|
494
520
|
} = n, c = s.detectOverflow ? s : {
|
|
495
521
|
...s,
|
|
496
|
-
detectOverflow:
|
|
497
|
-
},
|
|
498
|
-
let
|
|
522
|
+
detectOverflow: Ne
|
|
523
|
+
}, f = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
524
|
+
let a = await s.getElementRects({
|
|
499
525
|
reference: t,
|
|
500
526
|
floating: e,
|
|
501
527
|
strategy: r
|
|
502
528
|
}), {
|
|
503
529
|
x: l,
|
|
504
530
|
y: u
|
|
505
|
-
} =
|
|
531
|
+
} = $t(a, o, f), d = o, m = 0;
|
|
506
532
|
const h = {};
|
|
507
533
|
for (let p = 0; p < i.length; p++) {
|
|
508
|
-
const
|
|
509
|
-
if (!
|
|
534
|
+
const y = i[p];
|
|
535
|
+
if (!y)
|
|
510
536
|
continue;
|
|
511
537
|
const {
|
|
512
|
-
name:
|
|
538
|
+
name: w,
|
|
513
539
|
fn: b
|
|
514
|
-
} =
|
|
540
|
+
} = y, {
|
|
515
541
|
x: v,
|
|
516
542
|
y: x,
|
|
517
543
|
data: R,
|
|
518
|
-
reset:
|
|
544
|
+
reset: C
|
|
519
545
|
} = await b({
|
|
520
546
|
x: l,
|
|
521
547
|
y: u,
|
|
@@ -523,24 +549,24 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
523
549
|
placement: d,
|
|
524
550
|
strategy: r,
|
|
525
551
|
middlewareData: h,
|
|
526
|
-
rects:
|
|
552
|
+
rects: a,
|
|
527
553
|
platform: c,
|
|
528
554
|
elements: {
|
|
529
555
|
reference: t,
|
|
530
556
|
floating: e
|
|
531
557
|
}
|
|
532
558
|
});
|
|
533
|
-
l = v ?? l, u = x ?? u, h[
|
|
534
|
-
...h[
|
|
559
|
+
l = v ?? l, u = x ?? u, h[w] = {
|
|
560
|
+
...h[w],
|
|
535
561
|
...R
|
|
536
|
-
},
|
|
562
|
+
}, C && m < We && (m++, typeof C == "object" && (C.placement && (d = C.placement), C.rects && (a = C.rects === !0 ? await s.getElementRects({
|
|
537
563
|
reference: t,
|
|
538
564
|
floating: e,
|
|
539
565
|
strategy: r
|
|
540
|
-
}) :
|
|
566
|
+
}) : C.rects), {
|
|
541
567
|
x: l,
|
|
542
568
|
y: u
|
|
543
|
-
} =
|
|
569
|
+
} = $t(a, d, f)), p = -1);
|
|
544
570
|
}
|
|
545
571
|
return {
|
|
546
572
|
x: l,
|
|
@@ -549,7 +575,7 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
549
575
|
strategy: r,
|
|
550
576
|
middlewareData: h
|
|
551
577
|
};
|
|
552
|
-
},
|
|
578
|
+
}, Ve = (t) => ({
|
|
553
579
|
name: "arrow",
|
|
554
580
|
options: t,
|
|
555
581
|
async fn(e) {
|
|
@@ -560,33 +586,33 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
560
586
|
rects: i,
|
|
561
587
|
platform: s,
|
|
562
588
|
elements: c,
|
|
563
|
-
middlewareData:
|
|
589
|
+
middlewareData: f
|
|
564
590
|
} = e, {
|
|
565
|
-
element:
|
|
591
|
+
element: a,
|
|
566
592
|
padding: l = 0
|
|
567
593
|
} = H(t, e) || {};
|
|
568
|
-
if (
|
|
594
|
+
if (a == null)
|
|
569
595
|
return {};
|
|
570
|
-
const u =
|
|
596
|
+
const u = Xt(l), d = {
|
|
571
597
|
x: n,
|
|
572
598
|
y: o
|
|
573
|
-
}, m =
|
|
574
|
-
let A =
|
|
575
|
-
(!A || !await (s.isElement == null ? void 0 : s.isElement(
|
|
576
|
-
const L = x / 2 - R / 2,
|
|
599
|
+
}, m = At(r), h = St(m), p = await s.getDimensions(a), y = m === "y", w = y ? "top" : "left", b = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[m] - d[m] - i.floating[h], R = d[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
|
|
600
|
+
let A = C ? C[v] : 0;
|
|
601
|
+
(!A || !await (s.isElement == null ? void 0 : s.isElement(C))) && (A = c.floating[v] || i.floating[h]);
|
|
602
|
+
const L = x / 2 - R / 2, N = A / 2 - p[h] / 2 - 1, P = K(u[w], N), W = K(u[b], N), M = P, T = A - p[h] - W, O = A / 2 - p[h] / 2 + L, z = xt(M, O, T), E = !f.arrow && tt(r) != null && O !== z && i.reference[h] / 2 - (O < M ? P : W) - p[h] / 2 < 0, D = E ? O < M ? O - M : O - T : 0;
|
|
577
603
|
return {
|
|
578
|
-
[m]: d[m] +
|
|
604
|
+
[m]: d[m] + D,
|
|
579
605
|
data: {
|
|
580
|
-
[m]:
|
|
581
|
-
centerOffset: O -
|
|
606
|
+
[m]: z,
|
|
607
|
+
centerOffset: O - z - D,
|
|
582
608
|
...E && {
|
|
583
|
-
alignmentOffset:
|
|
609
|
+
alignmentOffset: D
|
|
584
610
|
}
|
|
585
611
|
},
|
|
586
612
|
reset: E
|
|
587
613
|
};
|
|
588
614
|
}
|
|
589
|
-
}),
|
|
615
|
+
}), ze = function(t) {
|
|
590
616
|
return t === void 0 && (t = {}), {
|
|
591
617
|
name: "flip",
|
|
592
618
|
options: t,
|
|
@@ -597,8 +623,8 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
597
623
|
middlewareData: i,
|
|
598
624
|
rects: s,
|
|
599
625
|
initialPlacement: c,
|
|
600
|
-
platform:
|
|
601
|
-
elements:
|
|
626
|
+
platform: f,
|
|
627
|
+
elements: a
|
|
602
628
|
} = e, {
|
|
603
629
|
mainAxis: l = !0,
|
|
604
630
|
crossAxis: u = !0,
|
|
@@ -606,51 +632,51 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
606
632
|
fallbackStrategy: m = "bestFit",
|
|
607
633
|
fallbackAxisSideDirection: h = "none",
|
|
608
634
|
flipAlignment: p = !0,
|
|
609
|
-
...
|
|
635
|
+
...y
|
|
610
636
|
} = H(t, e);
|
|
611
637
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
612
638
|
return {};
|
|
613
|
-
const
|
|
614
|
-
!d &&
|
|
615
|
-
const A = [c, ...R], L = await
|
|
639
|
+
const w = X(r), b = B(c), v = X(c) === c, x = await (f.isRTL == null ? void 0 : f.isRTL(a.floating)), R = d || (v || !p ? [ft(c)] : Te(c)), C = h !== "none";
|
|
640
|
+
!d && C && R.push(...$e(c, p, h, x));
|
|
641
|
+
const A = [c, ...R], L = await f.detectOverflow(e, y), N = [];
|
|
616
642
|
let P = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
617
|
-
if (l &&
|
|
618
|
-
const O =
|
|
619
|
-
|
|
643
|
+
if (l && N.push(L[w]), u) {
|
|
644
|
+
const O = Le(r, s, x);
|
|
645
|
+
N.push(L[O[0]], L[O[1]]);
|
|
620
646
|
}
|
|
621
647
|
if (P = [...P, {
|
|
622
648
|
placement: r,
|
|
623
|
-
overflows:
|
|
624
|
-
}], !
|
|
625
|
-
var
|
|
626
|
-
const O = (((
|
|
627
|
-
if (
|
|
649
|
+
overflows: N
|
|
650
|
+
}], !N.every((O) => O <= 0)) {
|
|
651
|
+
var W, M;
|
|
652
|
+
const O = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, z = A[O];
|
|
653
|
+
if (z && (!(u === "alignment" ? b !== B(z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
628
654
|
// overflows the main axis.
|
|
629
|
-
P.every((
|
|
655
|
+
P.every((S) => B(S.placement) === b ? S.overflows[0] > 0 : !0)))
|
|
630
656
|
return {
|
|
631
657
|
data: {
|
|
632
658
|
index: O,
|
|
633
659
|
overflows: P
|
|
634
660
|
},
|
|
635
661
|
reset: {
|
|
636
|
-
placement:
|
|
662
|
+
placement: z
|
|
637
663
|
}
|
|
638
664
|
};
|
|
639
|
-
let E = (M = P.filter((
|
|
665
|
+
let E = (M = P.filter((D) => D.overflows[0] <= 0).sort((D, S) => D.overflows[1] - S.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
640
666
|
if (!E)
|
|
641
667
|
switch (m) {
|
|
642
668
|
case "bestFit": {
|
|
643
|
-
var
|
|
644
|
-
const
|
|
645
|
-
if (
|
|
646
|
-
const k =
|
|
669
|
+
var T;
|
|
670
|
+
const D = (T = P.filter((S) => {
|
|
671
|
+
if (C) {
|
|
672
|
+
const k = B(S.placement);
|
|
647
673
|
return k === b || // Create a bias to the `y` side axis due to horizontal
|
|
648
674
|
// reading directions favoring greater width.
|
|
649
675
|
k === "y";
|
|
650
676
|
}
|
|
651
677
|
return !0;
|
|
652
|
-
}).map((
|
|
653
|
-
|
|
678
|
+
}).map((S) => [S.placement, S.overflows.filter((k) => k > 0).reduce((k, q) => k + q, 0)]).sort((S, k) => S[1] - k[1])[0]) == null ? void 0 : T[0];
|
|
679
|
+
D && (E = D);
|
|
654
680
|
break;
|
|
655
681
|
}
|
|
656
682
|
case "initialPlacement":
|
|
@@ -668,7 +694,7 @@ const Me = 50, ke = async (t, e, n) => {
|
|
|
668
694
|
}
|
|
669
695
|
};
|
|
670
696
|
};
|
|
671
|
-
function
|
|
697
|
+
function _t(t, e) {
|
|
672
698
|
return {
|
|
673
699
|
top: t.top - e.height,
|
|
674
700
|
right: t.right - e.width,
|
|
@@ -676,10 +702,10 @@ function $t(t, e) {
|
|
|
676
702
|
left: t.left - e.width
|
|
677
703
|
};
|
|
678
704
|
}
|
|
679
|
-
function
|
|
680
|
-
return
|
|
705
|
+
function Nt(t) {
|
|
706
|
+
return Ee.some((e) => t[e] >= 0);
|
|
681
707
|
}
|
|
682
|
-
const
|
|
708
|
+
const Be = function(t) {
|
|
683
709
|
return t === void 0 && (t = {}), {
|
|
684
710
|
name: "hide",
|
|
685
711
|
options: t,
|
|
@@ -696,11 +722,11 @@ const Fe = function(t) {
|
|
|
696
722
|
const s = await o.detectOverflow(e, {
|
|
697
723
|
...i,
|
|
698
724
|
elementContext: "reference"
|
|
699
|
-
}), c =
|
|
725
|
+
}), c = _t(s, n.reference);
|
|
700
726
|
return {
|
|
701
727
|
data: {
|
|
702
728
|
referenceHiddenOffsets: c,
|
|
703
|
-
referenceHidden:
|
|
729
|
+
referenceHidden: Nt(c)
|
|
704
730
|
}
|
|
705
731
|
};
|
|
706
732
|
}
|
|
@@ -708,11 +734,11 @@ const Fe = function(t) {
|
|
|
708
734
|
const s = await o.detectOverflow(e, {
|
|
709
735
|
...i,
|
|
710
736
|
altBoundary: !0
|
|
711
|
-
}), c =
|
|
737
|
+
}), c = _t(s, n.floating);
|
|
712
738
|
return {
|
|
713
739
|
data: {
|
|
714
740
|
escapedOffsets: c,
|
|
715
|
-
escaped:
|
|
741
|
+
escaped: Nt(c)
|
|
716
742
|
}
|
|
717
743
|
};
|
|
718
744
|
}
|
|
@@ -721,13 +747,13 @@ const Fe = function(t) {
|
|
|
721
747
|
}
|
|
722
748
|
}
|
|
723
749
|
};
|
|
724
|
-
},
|
|
725
|
-
async function
|
|
750
|
+
}, Yt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
751
|
+
async function je(t, e) {
|
|
726
752
|
const {
|
|
727
753
|
placement: n,
|
|
728
754
|
platform: o,
|
|
729
755
|
elements: r
|
|
730
|
-
} = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = X(n), c = tt(n),
|
|
756
|
+
} = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = X(n), c = tt(n), f = B(n) === "y", a = Yt.has(s) ? -1 : 1, l = i && f ? -1 : 1, u = H(e, t);
|
|
731
757
|
let {
|
|
732
758
|
mainAxis: d,
|
|
733
759
|
crossAxis: m,
|
|
@@ -741,15 +767,15 @@ async function Ne(t, e) {
|
|
|
741
767
|
crossAxis: u.crossAxis || 0,
|
|
742
768
|
alignmentAxis: u.alignmentAxis
|
|
743
769
|
};
|
|
744
|
-
return c && typeof h == "number" && (m = c === "end" ? h * -1 : h),
|
|
770
|
+
return c && typeof h == "number" && (m = c === "end" ? h * -1 : h), f ? {
|
|
745
771
|
x: m * l,
|
|
746
|
-
y: d *
|
|
772
|
+
y: d * a
|
|
747
773
|
} : {
|
|
748
|
-
x: d *
|
|
774
|
+
x: d * a,
|
|
749
775
|
y: m * l
|
|
750
776
|
};
|
|
751
777
|
}
|
|
752
|
-
const
|
|
778
|
+
const Ie = function(t) {
|
|
753
779
|
return t === void 0 && (t = 0), {
|
|
754
780
|
name: "offset",
|
|
755
781
|
options: t,
|
|
@@ -760,18 +786,18 @@ const We = function(t) {
|
|
|
760
786
|
y: i,
|
|
761
787
|
placement: s,
|
|
762
788
|
middlewareData: c
|
|
763
|
-
} = e,
|
|
789
|
+
} = e, f = await je(e, t);
|
|
764
790
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
765
|
-
x: r +
|
|
766
|
-
y: i +
|
|
791
|
+
x: r + f.x,
|
|
792
|
+
y: i + f.y,
|
|
767
793
|
data: {
|
|
768
|
-
...
|
|
794
|
+
...f,
|
|
769
795
|
placement: s
|
|
770
796
|
}
|
|
771
797
|
};
|
|
772
798
|
}
|
|
773
799
|
};
|
|
774
|
-
},
|
|
800
|
+
}, He = function(t) {
|
|
775
801
|
return t === void 0 && (t = {}), {
|
|
776
802
|
name: "shift",
|
|
777
803
|
options: t,
|
|
@@ -784,42 +810,42 @@ const We = function(t) {
|
|
|
784
810
|
} = e, {
|
|
785
811
|
mainAxis: s = !0,
|
|
786
812
|
crossAxis: c = !1,
|
|
787
|
-
limiter:
|
|
788
|
-
fn: (
|
|
813
|
+
limiter: f = {
|
|
814
|
+
fn: (w) => {
|
|
789
815
|
let {
|
|
790
816
|
x: b,
|
|
791
817
|
y: v
|
|
792
|
-
} =
|
|
818
|
+
} = w;
|
|
793
819
|
return {
|
|
794
820
|
x: b,
|
|
795
821
|
y: v
|
|
796
822
|
};
|
|
797
823
|
}
|
|
798
824
|
},
|
|
799
|
-
...
|
|
825
|
+
...a
|
|
800
826
|
} = H(t, e), l = {
|
|
801
827
|
x: n,
|
|
802
828
|
y: o
|
|
803
|
-
}, u = await i.detectOverflow(e,
|
|
829
|
+
}, u = await i.detectOverflow(e, a), d = B(X(r)), m = Ct(d);
|
|
804
830
|
let h = l[m], p = l[d];
|
|
805
831
|
if (s) {
|
|
806
|
-
const
|
|
807
|
-
h =
|
|
832
|
+
const w = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", v = h + u[w], x = h - u[b];
|
|
833
|
+
h = xt(v, h, x);
|
|
808
834
|
}
|
|
809
835
|
if (c) {
|
|
810
|
-
const
|
|
811
|
-
p =
|
|
836
|
+
const w = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", v = p + u[w], x = p - u[b];
|
|
837
|
+
p = xt(v, p, x);
|
|
812
838
|
}
|
|
813
|
-
const
|
|
839
|
+
const y = f.fn({
|
|
814
840
|
...e,
|
|
815
841
|
[m]: h,
|
|
816
842
|
[d]: p
|
|
817
843
|
});
|
|
818
844
|
return {
|
|
819
|
-
...
|
|
845
|
+
...y,
|
|
820
846
|
data: {
|
|
821
|
-
x:
|
|
822
|
-
y:
|
|
847
|
+
x: y.x - n,
|
|
848
|
+
y: y.y - o,
|
|
823
849
|
enabled: {
|
|
824
850
|
[m]: s,
|
|
825
851
|
[d]: c
|
|
@@ -828,7 +854,7 @@ const We = function(t) {
|
|
|
828
854
|
};
|
|
829
855
|
}
|
|
830
856
|
};
|
|
831
|
-
},
|
|
857
|
+
}, Xe = function(t) {
|
|
832
858
|
return t === void 0 && (t = {}), {
|
|
833
859
|
options: t,
|
|
834
860
|
fn(e) {
|
|
@@ -840,14 +866,14 @@ const We = function(t) {
|
|
|
840
866
|
middlewareData: s
|
|
841
867
|
} = e, {
|
|
842
868
|
offset: c = 0,
|
|
843
|
-
mainAxis:
|
|
844
|
-
crossAxis:
|
|
869
|
+
mainAxis: f = !0,
|
|
870
|
+
crossAxis: a = !0
|
|
845
871
|
} = H(t, e), l = {
|
|
846
872
|
x: n,
|
|
847
873
|
y: o
|
|
848
|
-
}, u =
|
|
874
|
+
}, u = B(r), d = Ct(u);
|
|
849
875
|
let m = l[d], h = l[u];
|
|
850
|
-
const p = H(c, e),
|
|
876
|
+
const p = H(c, e), y = typeof p == "number" ? {
|
|
851
877
|
mainAxis: p,
|
|
852
878
|
crossAxis: 0
|
|
853
879
|
} : {
|
|
@@ -855,14 +881,14 @@ const We = function(t) {
|
|
|
855
881
|
crossAxis: 0,
|
|
856
882
|
...p
|
|
857
883
|
};
|
|
858
|
-
if (
|
|
859
|
-
const v = d === "y" ? "height" : "width", x = i.reference[d] - i.floating[v] +
|
|
884
|
+
if (f) {
|
|
885
|
+
const v = d === "y" ? "height" : "width", x = i.reference[d] - i.floating[v] + y.mainAxis, R = i.reference[d] + i.reference[v] - y.mainAxis;
|
|
860
886
|
m < x ? m = x : m > R && (m = R);
|
|
861
887
|
}
|
|
862
|
-
if (
|
|
863
|
-
var
|
|
864
|
-
const v = d === "y" ? "width" : "height", x =
|
|
865
|
-
h < R ? h = R : h >
|
|
888
|
+
if (a) {
|
|
889
|
+
var w, b;
|
|
890
|
+
const v = d === "y" ? "width" : "height", x = Yt.has(X(r)), R = i.reference[u] - i.floating[v] + (x && ((w = s.offset) == null ? void 0 : w[u]) || 0) + (x ? 0 : y.crossAxis), C = i.reference[u] + i.reference[v] + (x ? 0 : ((b = s.offset) == null ? void 0 : b[u]) || 0) - (x ? y.crossAxis : 0);
|
|
891
|
+
h < R ? h = R : h > C && (h = C);
|
|
866
892
|
}
|
|
867
893
|
return {
|
|
868
894
|
[d]: m,
|
|
@@ -870,7 +896,7 @@ const We = function(t) {
|
|
|
870
896
|
};
|
|
871
897
|
}
|
|
872
898
|
};
|
|
873
|
-
},
|
|
899
|
+
}, Ye = function(t) {
|
|
874
900
|
return t === void 0 && (t = {}), {
|
|
875
901
|
name: "size",
|
|
876
902
|
options: t,
|
|
@@ -882,28 +908,28 @@ const We = function(t) {
|
|
|
882
908
|
platform: s,
|
|
883
909
|
elements: c
|
|
884
910
|
} = e, {
|
|
885
|
-
apply:
|
|
911
|
+
apply: f = () => {
|
|
886
912
|
},
|
|
887
|
-
...
|
|
888
|
-
} = H(t, e), l = await s.detectOverflow(e,
|
|
913
|
+
...a
|
|
914
|
+
} = H(t, e), l = await s.detectOverflow(e, a), u = X(r), d = tt(r), m = B(r) === "y", {
|
|
889
915
|
width: h,
|
|
890
916
|
height: p
|
|
891
917
|
} = i.floating;
|
|
892
|
-
let
|
|
893
|
-
u === "top" || u === "bottom" ? (
|
|
894
|
-
const b = p - l.top - l.bottom, v = h - l.left - l.right, x =
|
|
918
|
+
let y, w;
|
|
919
|
+
u === "top" || u === "bottom" ? (y = u, w = d === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = u, y = d === "end" ? "top" : "bottom");
|
|
920
|
+
const b = p - l.top - l.bottom, v = h - l.left - l.right, x = K(p - l[y], b), R = K(h - l[w], v), C = !e.middlewareData.shift;
|
|
895
921
|
let A = x, L = R;
|
|
896
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (L = v), (o = e.middlewareData.shift) != null && o.enabled.y && (A = b),
|
|
897
|
-
const P = $(l.left, 0),
|
|
898
|
-
m ? L = h - 2 * (P !== 0 ||
|
|
922
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (L = v), (o = e.middlewareData.shift) != null && o.enabled.y && (A = b), C && !d) {
|
|
923
|
+
const P = $(l.left, 0), W = $(l.right, 0), M = $(l.top, 0), T = $(l.bottom, 0);
|
|
924
|
+
m ? L = h - 2 * (P !== 0 || W !== 0 ? P + W : $(l.left, l.right)) : A = p - 2 * (M !== 0 || T !== 0 ? M + T : $(l.top, l.bottom));
|
|
899
925
|
}
|
|
900
|
-
await
|
|
926
|
+
await f({
|
|
901
927
|
...e,
|
|
902
928
|
availableWidth: L,
|
|
903
929
|
availableHeight: A
|
|
904
930
|
});
|
|
905
|
-
const
|
|
906
|
-
return h !==
|
|
931
|
+
const N = await s.getDimensions(c.floating);
|
|
932
|
+
return h !== N.width || p !== N.height ? {
|
|
907
933
|
reset: {
|
|
908
934
|
rects: !0
|
|
909
935
|
}
|
|
@@ -911,31 +937,31 @@ const We = function(t) {
|
|
|
911
937
|
}
|
|
912
938
|
};
|
|
913
939
|
};
|
|
914
|
-
function
|
|
940
|
+
function dt() {
|
|
915
941
|
return typeof window < "u";
|
|
916
942
|
}
|
|
917
943
|
function et(t) {
|
|
918
|
-
return
|
|
944
|
+
return qt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
919
945
|
}
|
|
920
946
|
function _(t) {
|
|
921
947
|
var e;
|
|
922
948
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
923
949
|
}
|
|
924
|
-
function
|
|
950
|
+
function I(t) {
|
|
925
951
|
var e;
|
|
926
|
-
return (e = (
|
|
952
|
+
return (e = (qt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
927
953
|
}
|
|
928
|
-
function
|
|
929
|
-
return
|
|
954
|
+
function qt(t) {
|
|
955
|
+
return dt() ? t instanceof Node || t instanceof _(t).Node : !1;
|
|
930
956
|
}
|
|
931
|
-
function
|
|
932
|
-
return
|
|
957
|
+
function F(t) {
|
|
958
|
+
return dt() ? t instanceof Element || t instanceof _(t).Element : !1;
|
|
933
959
|
}
|
|
934
|
-
function
|
|
935
|
-
return
|
|
960
|
+
function Y(t) {
|
|
961
|
+
return dt() ? t instanceof HTMLElement || t instanceof _(t).HTMLElement : !1;
|
|
936
962
|
}
|
|
937
|
-
function
|
|
938
|
-
return !
|
|
963
|
+
function Wt(t) {
|
|
964
|
+
return !dt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
|
|
939
965
|
}
|
|
940
966
|
function rt(t) {
|
|
941
967
|
const {
|
|
@@ -946,10 +972,10 @@ function rt(t) {
|
|
|
946
972
|
} = V(t);
|
|
947
973
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && r !== "inline" && r !== "contents";
|
|
948
974
|
}
|
|
949
|
-
function
|
|
975
|
+
function qe(t) {
|
|
950
976
|
return /^(table|td|th)$/.test(et(t));
|
|
951
977
|
}
|
|
952
|
-
function
|
|
978
|
+
function mt(t) {
|
|
953
979
|
try {
|
|
954
980
|
if (t.matches(":popover-open"))
|
|
955
981
|
return !0;
|
|
@@ -961,25 +987,25 @@ function dt(t) {
|
|
|
961
987
|
return !1;
|
|
962
988
|
}
|
|
963
989
|
}
|
|
964
|
-
const
|
|
965
|
-
let
|
|
966
|
-
function
|
|
967
|
-
const e =
|
|
968
|
-
return Z(e.transform) || Z(e.translate) || Z(e.scale) || Z(e.rotate) || Z(e.perspective) || !
|
|
990
|
+
const Ke = /transform|translate|scale|rotate|perspective|filter/, Ue = /paint|layout|strict|content/, Z = (t) => !!t && t !== "none";
|
|
991
|
+
let pt;
|
|
992
|
+
function Ot(t) {
|
|
993
|
+
const e = F(t) ? V(t) : t;
|
|
994
|
+
return Z(e.transform) || Z(e.translate) || Z(e.scale) || Z(e.rotate) || Z(e.perspective) || !Et() && (Z(e.backdropFilter) || Z(e.filter)) || Ke.test(e.willChange || "") || Ue.test(e.contain || "");
|
|
969
995
|
}
|
|
970
|
-
function
|
|
971
|
-
let e =
|
|
972
|
-
for (;
|
|
973
|
-
if (
|
|
996
|
+
function Ze(t) {
|
|
997
|
+
let e = U(t);
|
|
998
|
+
for (; Y(e) && !Q(e); ) {
|
|
999
|
+
if (Ot(e))
|
|
974
1000
|
return e;
|
|
975
|
-
if (
|
|
1001
|
+
if (mt(e))
|
|
976
1002
|
return null;
|
|
977
|
-
e =
|
|
1003
|
+
e = U(e);
|
|
978
1004
|
}
|
|
979
1005
|
return null;
|
|
980
1006
|
}
|
|
981
|
-
function
|
|
982
|
-
return
|
|
1007
|
+
function Et() {
|
|
1008
|
+
return pt == null && (pt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), pt;
|
|
983
1009
|
}
|
|
984
1010
|
function Q(t) {
|
|
985
1011
|
return /^(html|body|#document)$/.test(et(t));
|
|
@@ -987,8 +1013,8 @@ function Q(t) {
|
|
|
987
1013
|
function V(t) {
|
|
988
1014
|
return _(t).getComputedStyle(t);
|
|
989
1015
|
}
|
|
990
|
-
function
|
|
991
|
-
return
|
|
1016
|
+
function ht(t) {
|
|
1017
|
+
return F(t) ? {
|
|
992
1018
|
scrollLeft: t.scrollLeft,
|
|
993
1019
|
scrollTop: t.scrollTop
|
|
994
1020
|
} : {
|
|
@@ -996,140 +1022,140 @@ function mt(t) {
|
|
|
996
1022
|
scrollTop: t.scrollY
|
|
997
1023
|
};
|
|
998
1024
|
}
|
|
999
|
-
function
|
|
1025
|
+
function U(t) {
|
|
1000
1026
|
if (et(t) === "html")
|
|
1001
1027
|
return t;
|
|
1002
1028
|
const e = (
|
|
1003
1029
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1004
1030
|
t.assignedSlot || // DOM Element detected.
|
|
1005
1031
|
t.parentNode || // ShadowRoot detected.
|
|
1006
|
-
|
|
1007
|
-
|
|
1032
|
+
Wt(t) && t.host || // Fallback.
|
|
1033
|
+
I(t)
|
|
1008
1034
|
);
|
|
1009
|
-
return
|
|
1035
|
+
return Wt(e) ? e.host : e;
|
|
1010
1036
|
}
|
|
1011
|
-
function
|
|
1012
|
-
const e =
|
|
1013
|
-
return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
1037
|
+
function Kt(t) {
|
|
1038
|
+
const e = U(t);
|
|
1039
|
+
return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && rt(e) ? e : Kt(e);
|
|
1014
1040
|
}
|
|
1015
1041
|
function ot(t, e, n) {
|
|
1016
1042
|
var o;
|
|
1017
1043
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
1018
|
-
const r =
|
|
1044
|
+
const r = Kt(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = _(r);
|
|
1019
1045
|
if (i) {
|
|
1020
|
-
const c =
|
|
1046
|
+
const c = bt(s);
|
|
1021
1047
|
return e.concat(s, s.visualViewport || [], rt(r) ? r : [], c && n ? ot(c) : []);
|
|
1022
1048
|
} else
|
|
1023
1049
|
return e.concat(r, ot(r, [], n));
|
|
1024
1050
|
}
|
|
1025
|
-
function
|
|
1051
|
+
function bt(t) {
|
|
1026
1052
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
1027
1053
|
}
|
|
1028
|
-
function
|
|
1054
|
+
function Ut(t) {
|
|
1029
1055
|
const e = V(t);
|
|
1030
1056
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
1031
|
-
const r =
|
|
1057
|
+
const r = Y(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = lt(n) !== i || lt(o) !== s;
|
|
1032
1058
|
return c && (n = i, o = s), {
|
|
1033
1059
|
width: n,
|
|
1034
1060
|
height: o,
|
|
1035
1061
|
$: c
|
|
1036
1062
|
};
|
|
1037
1063
|
}
|
|
1038
|
-
function
|
|
1039
|
-
return
|
|
1064
|
+
function Pt(t) {
|
|
1065
|
+
return F(t) ? t : t.contextElement;
|
|
1040
1066
|
}
|
|
1041
1067
|
function J(t) {
|
|
1042
|
-
const e =
|
|
1043
|
-
if (!
|
|
1044
|
-
return
|
|
1068
|
+
const e = Pt(t);
|
|
1069
|
+
if (!Y(e))
|
|
1070
|
+
return j(1);
|
|
1045
1071
|
const n = e.getBoundingClientRect(), {
|
|
1046
1072
|
width: o,
|
|
1047
1073
|
height: r,
|
|
1048
1074
|
$: i
|
|
1049
|
-
} =
|
|
1050
|
-
let s = (i ?
|
|
1075
|
+
} = Ut(e);
|
|
1076
|
+
let s = (i ? lt(n.width) : n.width) / o, c = (i ? lt(n.height) : n.height) / r;
|
|
1051
1077
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1052
1078
|
x: s,
|
|
1053
1079
|
y: c
|
|
1054
1080
|
};
|
|
1055
1081
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1082
|
+
const Ge = /* @__PURE__ */ j(0);
|
|
1083
|
+
function Zt(t) {
|
|
1058
1084
|
const e = _(t);
|
|
1059
|
-
return !
|
|
1085
|
+
return !Et() || !e.visualViewport ? Ge : {
|
|
1060
1086
|
x: e.visualViewport.offsetLeft,
|
|
1061
1087
|
y: e.visualViewport.offsetTop
|
|
1062
1088
|
};
|
|
1063
1089
|
}
|
|
1064
|
-
function
|
|
1090
|
+
function Je(t, e, n) {
|
|
1065
1091
|
return e === void 0 && (e = !1), !n || e && n !== _(t) ? !1 : e;
|
|
1066
1092
|
}
|
|
1067
1093
|
function G(t, e, n, o) {
|
|
1068
1094
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
1069
|
-
const r = t.getBoundingClientRect(), i =
|
|
1070
|
-
let s =
|
|
1071
|
-
e && (o ?
|
|
1072
|
-
const c =
|
|
1073
|
-
let
|
|
1095
|
+
const r = t.getBoundingClientRect(), i = Pt(t);
|
|
1096
|
+
let s = j(1);
|
|
1097
|
+
e && (o ? F(o) && (s = J(o)) : s = J(t));
|
|
1098
|
+
const c = Je(i, n, o) ? Zt(i) : j(0);
|
|
1099
|
+
let f = (r.left + c.x) / s.x, a = (r.top + c.y) / s.y, l = r.width / s.x, u = r.height / s.y;
|
|
1074
1100
|
if (i) {
|
|
1075
|
-
const d = _(i), m = o &&
|
|
1076
|
-
let h = d, p =
|
|
1101
|
+
const d = _(i), m = o && F(o) ? _(o) : o;
|
|
1102
|
+
let h = d, p = bt(h);
|
|
1077
1103
|
for (; p && o && m !== h; ) {
|
|
1078
|
-
const
|
|
1079
|
-
|
|
1104
|
+
const y = J(p), w = p.getBoundingClientRect(), b = V(p), v = w.left + (p.clientLeft + parseFloat(b.paddingLeft)) * y.x, x = w.top + (p.clientTop + parseFloat(b.paddingTop)) * y.y;
|
|
1105
|
+
f *= y.x, a *= y.y, l *= y.x, u *= y.y, f += v, a += x, h = _(p), p = bt(h);
|
|
1080
1106
|
}
|
|
1081
1107
|
}
|
|
1082
|
-
return
|
|
1108
|
+
return at({
|
|
1083
1109
|
width: l,
|
|
1084
1110
|
height: u,
|
|
1085
|
-
x:
|
|
1086
|
-
y:
|
|
1111
|
+
x: f,
|
|
1112
|
+
y: a
|
|
1087
1113
|
});
|
|
1088
1114
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const n =
|
|
1091
|
-
return e ? e.left + n : G(
|
|
1115
|
+
function gt(t, e) {
|
|
1116
|
+
const n = ht(t).scrollLeft;
|
|
1117
|
+
return e ? e.left + n : G(I(t)).left + n;
|
|
1092
1118
|
}
|
|
1093
|
-
function
|
|
1094
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft -
|
|
1119
|
+
function Gt(t, e) {
|
|
1120
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), r = n.top + e.scrollTop;
|
|
1095
1121
|
return {
|
|
1096
1122
|
x: o,
|
|
1097
1123
|
y: r
|
|
1098
1124
|
};
|
|
1099
1125
|
}
|
|
1100
|
-
function
|
|
1126
|
+
function Qe(t) {
|
|
1101
1127
|
let {
|
|
1102
1128
|
elements: e,
|
|
1103
1129
|
rect: n,
|
|
1104
1130
|
offsetParent: o,
|
|
1105
1131
|
strategy: r
|
|
1106
1132
|
} = t;
|
|
1107
|
-
const i = r === "fixed", s =
|
|
1133
|
+
const i = r === "fixed", s = I(o), c = e ? mt(e.floating) : !1;
|
|
1108
1134
|
if (o === s || c && i)
|
|
1109
1135
|
return n;
|
|
1110
|
-
let
|
|
1136
|
+
let f = {
|
|
1111
1137
|
scrollLeft: 0,
|
|
1112
1138
|
scrollTop: 0
|
|
1113
|
-
},
|
|
1114
|
-
const l =
|
|
1115
|
-
if ((u || !u && !i) && ((et(o) !== "body" || rt(s)) && (
|
|
1139
|
+
}, a = j(1);
|
|
1140
|
+
const l = j(0), u = Y(o);
|
|
1141
|
+
if ((u || !u && !i) && ((et(o) !== "body" || rt(s)) && (f = ht(o)), u)) {
|
|
1116
1142
|
const m = G(o);
|
|
1117
|
-
|
|
1143
|
+
a = J(o), l.x = m.x + o.clientLeft, l.y = m.y + o.clientTop;
|
|
1118
1144
|
}
|
|
1119
|
-
const d = s && !u && !i ?
|
|
1145
|
+
const d = s && !u && !i ? Gt(s, f) : j(0);
|
|
1120
1146
|
return {
|
|
1121
|
-
width: n.width *
|
|
1122
|
-
height: n.height *
|
|
1123
|
-
x: n.x *
|
|
1124
|
-
y: n.y *
|
|
1147
|
+
width: n.width * a.x,
|
|
1148
|
+
height: n.height * a.y,
|
|
1149
|
+
x: n.x * a.x - f.scrollLeft * a.x + l.x + d.x,
|
|
1150
|
+
y: n.y * a.y - f.scrollTop * a.y + l.y + d.y
|
|
1125
1151
|
};
|
|
1126
1152
|
}
|
|
1127
|
-
function
|
|
1153
|
+
function tn(t) {
|
|
1128
1154
|
return Array.from(t.getClientRects());
|
|
1129
1155
|
}
|
|
1130
|
-
function
|
|
1131
|
-
const e =
|
|
1132
|
-
let s = -n.scrollLeft +
|
|
1156
|
+
function en(t) {
|
|
1157
|
+
const e = I(t), n = ht(t), o = t.ownerDocument.body, r = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1158
|
+
let s = -n.scrollLeft + gt(t);
|
|
1133
1159
|
const c = -n.scrollTop;
|
|
1134
1160
|
return V(o).direction === "rtl" && (s += $(e.clientWidth, o.clientWidth) - r), {
|
|
1135
1161
|
width: r,
|
|
@@ -1138,46 +1164,46 @@ function Ze(t) {
|
|
|
1138
1164
|
y: c
|
|
1139
1165
|
};
|
|
1140
1166
|
}
|
|
1141
|
-
const
|
|
1142
|
-
function
|
|
1143
|
-
const n = _(t), o =
|
|
1144
|
-
let i = o.clientWidth, s = o.clientHeight, c = 0,
|
|
1167
|
+
const Ft = 25;
|
|
1168
|
+
function nn(t, e) {
|
|
1169
|
+
const n = _(t), o = I(t), r = n.visualViewport;
|
|
1170
|
+
let i = o.clientWidth, s = o.clientHeight, c = 0, f = 0;
|
|
1145
1171
|
if (r) {
|
|
1146
1172
|
i = r.width, s = r.height;
|
|
1147
|
-
const l =
|
|
1148
|
-
(!l || l && e === "fixed") && (c = r.offsetLeft,
|
|
1173
|
+
const l = Et();
|
|
1174
|
+
(!l || l && e === "fixed") && (c = r.offsetLeft, f = r.offsetTop);
|
|
1149
1175
|
}
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1176
|
+
const a = gt(o);
|
|
1177
|
+
if (a <= 0) {
|
|
1152
1178
|
const l = o.ownerDocument, u = l.body, d = getComputedStyle(u), m = l.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - m);
|
|
1153
|
-
h <=
|
|
1154
|
-
} else
|
|
1179
|
+
h <= Ft && (i -= h);
|
|
1180
|
+
} else a <= Ft && (i += a);
|
|
1155
1181
|
return {
|
|
1156
1182
|
width: i,
|
|
1157
1183
|
height: s,
|
|
1158
1184
|
x: c,
|
|
1159
|
-
y:
|
|
1185
|
+
y: f
|
|
1160
1186
|
};
|
|
1161
1187
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i =
|
|
1188
|
+
function on(t, e) {
|
|
1189
|
+
const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = Y(t) ? J(t) : j(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, f = r * i.x, a = o * i.y;
|
|
1164
1190
|
return {
|
|
1165
1191
|
width: s,
|
|
1166
1192
|
height: c,
|
|
1167
|
-
x:
|
|
1168
|
-
y:
|
|
1193
|
+
x: f,
|
|
1194
|
+
y: a
|
|
1169
1195
|
};
|
|
1170
1196
|
}
|
|
1171
|
-
function
|
|
1197
|
+
function Vt(t, e, n) {
|
|
1172
1198
|
let o;
|
|
1173
1199
|
if (e === "viewport")
|
|
1174
|
-
o =
|
|
1200
|
+
o = nn(t, n);
|
|
1175
1201
|
else if (e === "document")
|
|
1176
|
-
o =
|
|
1177
|
-
else if (
|
|
1178
|
-
o =
|
|
1202
|
+
o = en(I(t));
|
|
1203
|
+
else if (F(e))
|
|
1204
|
+
o = on(e, n);
|
|
1179
1205
|
else {
|
|
1180
|
-
const r =
|
|
1206
|
+
const r = Zt(t);
|
|
1181
1207
|
o = {
|
|
1182
1208
|
x: e.x - r.x,
|
|
1183
1209
|
y: e.y - r.y,
|
|
@@ -1185,72 +1211,72 @@ function Wt(t, e, n) {
|
|
|
1185
1211
|
height: e.height
|
|
1186
1212
|
};
|
|
1187
1213
|
}
|
|
1188
|
-
return
|
|
1214
|
+
return at(o);
|
|
1189
1215
|
}
|
|
1190
|
-
function
|
|
1191
|
-
const n =
|
|
1192
|
-
return n === e || !
|
|
1216
|
+
function Jt(t, e) {
|
|
1217
|
+
const n = U(t);
|
|
1218
|
+
return n === e || !F(n) || Q(n) ? !1 : V(n).position === "fixed" || Jt(n, e);
|
|
1193
1219
|
}
|
|
1194
|
-
function
|
|
1220
|
+
function rn(t, e) {
|
|
1195
1221
|
const n = e.get(t);
|
|
1196
1222
|
if (n)
|
|
1197
1223
|
return n;
|
|
1198
|
-
let o = ot(t, [], !1).filter((c) =>
|
|
1224
|
+
let o = ot(t, [], !1).filter((c) => F(c) && et(c) !== "body"), r = null;
|
|
1199
1225
|
const i = V(t).position === "fixed";
|
|
1200
|
-
let s = i ?
|
|
1201
|
-
for (;
|
|
1202
|
-
const c = V(s),
|
|
1203
|
-
!
|
|
1226
|
+
let s = i ? U(t) : t;
|
|
1227
|
+
for (; F(s) && !Q(s); ) {
|
|
1228
|
+
const c = V(s), f = Ot(s);
|
|
1229
|
+
!f && c.position === "fixed" && (r = null), (i ? !f && !r : !f && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || rt(s) && !f && Jt(t, s)) ? o = o.filter((l) => l !== s) : r = c, s = U(s);
|
|
1204
1230
|
}
|
|
1205
1231
|
return e.set(t, o), o;
|
|
1206
1232
|
}
|
|
1207
|
-
function
|
|
1233
|
+
function sn(t) {
|
|
1208
1234
|
let {
|
|
1209
1235
|
element: e,
|
|
1210
1236
|
boundary: n,
|
|
1211
1237
|
rootBoundary: o,
|
|
1212
1238
|
strategy: r
|
|
1213
1239
|
} = t;
|
|
1214
|
-
const s = [...n === "clippingAncestors" ?
|
|
1215
|
-
let
|
|
1240
|
+
const s = [...n === "clippingAncestors" ? mt(e) ? [] : rn(e, this._c) : [].concat(n), o], c = Vt(e, s[0], r);
|
|
1241
|
+
let f = c.top, a = c.right, l = c.bottom, u = c.left;
|
|
1216
1242
|
for (let d = 1; d < s.length; d++) {
|
|
1217
|
-
const m =
|
|
1218
|
-
|
|
1243
|
+
const m = Vt(e, s[d], r);
|
|
1244
|
+
f = $(m.top, f), a = K(m.right, a), l = K(m.bottom, l), u = $(m.left, u);
|
|
1219
1245
|
}
|
|
1220
1246
|
return {
|
|
1221
|
-
width:
|
|
1222
|
-
height: l -
|
|
1247
|
+
width: a - u,
|
|
1248
|
+
height: l - f,
|
|
1223
1249
|
x: u,
|
|
1224
|
-
y:
|
|
1250
|
+
y: f
|
|
1225
1251
|
};
|
|
1226
1252
|
}
|
|
1227
|
-
function
|
|
1253
|
+
function cn(t) {
|
|
1228
1254
|
const {
|
|
1229
1255
|
width: e,
|
|
1230
1256
|
height: n
|
|
1231
|
-
} =
|
|
1257
|
+
} = Ut(t);
|
|
1232
1258
|
return {
|
|
1233
1259
|
width: e,
|
|
1234
1260
|
height: n
|
|
1235
1261
|
};
|
|
1236
1262
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const o =
|
|
1263
|
+
function ln(t, e, n) {
|
|
1264
|
+
const o = Y(e), r = I(e), i = n === "fixed", s = G(t, !0, i, e);
|
|
1239
1265
|
let c = {
|
|
1240
1266
|
scrollLeft: 0,
|
|
1241
1267
|
scrollTop: 0
|
|
1242
1268
|
};
|
|
1243
|
-
const
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1269
|
+
const f = j(0);
|
|
1270
|
+
function a() {
|
|
1271
|
+
f.x = gt(r);
|
|
1246
1272
|
}
|
|
1247
1273
|
if (o || !o && !i)
|
|
1248
|
-
if ((et(e) !== "body" || rt(r)) && (c =
|
|
1274
|
+
if ((et(e) !== "body" || rt(r)) && (c = ht(e)), o) {
|
|
1249
1275
|
const m = G(e, !0, i, e);
|
|
1250
|
-
|
|
1251
|
-
} else r &&
|
|
1252
|
-
i && !o && r &&
|
|
1253
|
-
const l = r && !o && !i ?
|
|
1276
|
+
f.x = m.x + e.clientLeft, f.y = m.y + e.clientTop;
|
|
1277
|
+
} else r && a();
|
|
1278
|
+
i && !o && r && a();
|
|
1279
|
+
const l = r && !o && !i ? Gt(r, c) : j(0), u = s.left + c.scrollLeft - f.x - l.x, d = s.top + c.scrollTop - f.y - l.y;
|
|
1254
1280
|
return {
|
|
1255
1281
|
x: u,
|
|
1256
1282
|
y: d,
|
|
@@ -1258,39 +1284,39 @@ function nn(t, e, n) {
|
|
|
1258
1284
|
height: s.height
|
|
1259
1285
|
};
|
|
1260
1286
|
}
|
|
1261
|
-
function
|
|
1287
|
+
function yt(t) {
|
|
1262
1288
|
return V(t).position === "static";
|
|
1263
1289
|
}
|
|
1264
|
-
function
|
|
1265
|
-
if (!
|
|
1290
|
+
function zt(t, e) {
|
|
1291
|
+
if (!Y(t) || V(t).position === "fixed")
|
|
1266
1292
|
return null;
|
|
1267
1293
|
if (e)
|
|
1268
1294
|
return e(t);
|
|
1269
1295
|
let n = t.offsetParent;
|
|
1270
|
-
return
|
|
1296
|
+
return I(t) === n && (n = n.ownerDocument.body), n;
|
|
1271
1297
|
}
|
|
1272
|
-
function
|
|
1298
|
+
function Qt(t, e) {
|
|
1273
1299
|
const n = _(t);
|
|
1274
|
-
if (
|
|
1300
|
+
if (mt(t))
|
|
1275
1301
|
return n;
|
|
1276
|
-
if (!
|
|
1277
|
-
let r =
|
|
1302
|
+
if (!Y(t)) {
|
|
1303
|
+
let r = U(t);
|
|
1278
1304
|
for (; r && !Q(r); ) {
|
|
1279
|
-
if (
|
|
1305
|
+
if (F(r) && !yt(r))
|
|
1280
1306
|
return r;
|
|
1281
|
-
r =
|
|
1307
|
+
r = U(r);
|
|
1282
1308
|
}
|
|
1283
1309
|
return n;
|
|
1284
1310
|
}
|
|
1285
|
-
let o =
|
|
1286
|
-
for (; o &&
|
|
1287
|
-
o =
|
|
1288
|
-
return o && Q(o) &&
|
|
1311
|
+
let o = zt(t, e);
|
|
1312
|
+
for (; o && qe(o) && yt(o); )
|
|
1313
|
+
o = zt(o, e);
|
|
1314
|
+
return o && Q(o) && yt(o) && !Ot(o) ? n : o || Ze(t) || n;
|
|
1289
1315
|
}
|
|
1290
|
-
const
|
|
1291
|
-
const e = this.getOffsetParent ||
|
|
1316
|
+
const fn = async function(t) {
|
|
1317
|
+
const e = this.getOffsetParent || Qt, n = this.getDimensions, o = await n(t.floating);
|
|
1292
1318
|
return {
|
|
1293
|
-
reference:
|
|
1319
|
+
reference: ln(t.reference, await e(t.floating), t.strategy),
|
|
1294
1320
|
floating: {
|
|
1295
1321
|
x: 0,
|
|
1296
1322
|
y: 0,
|
|
@@ -1299,56 +1325,56 @@ const on = async function(t) {
|
|
|
1299
1325
|
}
|
|
1300
1326
|
};
|
|
1301
1327
|
};
|
|
1302
|
-
function
|
|
1328
|
+
function an(t) {
|
|
1303
1329
|
return V(t).direction === "rtl";
|
|
1304
1330
|
}
|
|
1305
|
-
const
|
|
1306
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1307
|
-
getDocumentElement:
|
|
1308
|
-
getClippingRect:
|
|
1309
|
-
getOffsetParent:
|
|
1310
|
-
getElementRects:
|
|
1311
|
-
getClientRects:
|
|
1312
|
-
getDimensions:
|
|
1331
|
+
const un = {
|
|
1332
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qe,
|
|
1333
|
+
getDocumentElement: I,
|
|
1334
|
+
getClippingRect: sn,
|
|
1335
|
+
getOffsetParent: Qt,
|
|
1336
|
+
getElementRects: fn,
|
|
1337
|
+
getClientRects: tn,
|
|
1338
|
+
getDimensions: cn,
|
|
1313
1339
|
getScale: J,
|
|
1314
|
-
isElement:
|
|
1315
|
-
isRTL:
|
|
1340
|
+
isElement: F,
|
|
1341
|
+
isRTL: an
|
|
1316
1342
|
};
|
|
1317
|
-
function
|
|
1343
|
+
function te(t, e) {
|
|
1318
1344
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
1319
1345
|
}
|
|
1320
|
-
function
|
|
1346
|
+
function dn(t, e) {
|
|
1321
1347
|
let n = null, o;
|
|
1322
|
-
const r =
|
|
1348
|
+
const r = I(t);
|
|
1323
1349
|
function i() {
|
|
1324
1350
|
var c;
|
|
1325
1351
|
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
1326
1352
|
}
|
|
1327
|
-
function s(c,
|
|
1328
|
-
c === void 0 && (c = !1),
|
|
1329
|
-
const
|
|
1353
|
+
function s(c, f) {
|
|
1354
|
+
c === void 0 && (c = !1), f === void 0 && (f = 1), i();
|
|
1355
|
+
const a = t.getBoundingClientRect(), {
|
|
1330
1356
|
left: l,
|
|
1331
1357
|
top: u,
|
|
1332
1358
|
width: d,
|
|
1333
1359
|
height: m
|
|
1334
|
-
} =
|
|
1360
|
+
} = a;
|
|
1335
1361
|
if (c || e(), !d || !m)
|
|
1336
1362
|
return;
|
|
1337
|
-
const h = it(u), p = it(r.clientWidth - (l + d)),
|
|
1338
|
-
rootMargin: -h + "px " + -p + "px " + -
|
|
1339
|
-
threshold: $(0,
|
|
1363
|
+
const h = it(u), p = it(r.clientWidth - (l + d)), y = it(r.clientHeight - (u + m)), w = it(l), v = {
|
|
1364
|
+
rootMargin: -h + "px " + -p + "px " + -y + "px " + -w + "px",
|
|
1365
|
+
threshold: $(0, K(1, f)) || 1
|
|
1340
1366
|
};
|
|
1341
1367
|
let x = !0;
|
|
1342
|
-
function R(
|
|
1343
|
-
const A =
|
|
1344
|
-
if (A !==
|
|
1368
|
+
function R(C) {
|
|
1369
|
+
const A = C[0].intersectionRatio;
|
|
1370
|
+
if (A !== f) {
|
|
1345
1371
|
if (!x)
|
|
1346
1372
|
return s();
|
|
1347
1373
|
A ? s(!1, A) : o = setTimeout(() => {
|
|
1348
1374
|
s(!1, 1e-7);
|
|
1349
1375
|
}, 1e3);
|
|
1350
1376
|
}
|
|
1351
|
-
A === 1 && !
|
|
1377
|
+
A === 1 && !te(a, t.getBoundingClientRect()) && s(), x = !1;
|
|
1352
1378
|
}
|
|
1353
1379
|
try {
|
|
1354
1380
|
n = new IntersectionObserver(R, {
|
|
@@ -1363,58 +1389,58 @@ function cn(t, e) {
|
|
|
1363
1389
|
}
|
|
1364
1390
|
return s(!0), i;
|
|
1365
1391
|
}
|
|
1366
|
-
function
|
|
1392
|
+
function Nn(t, e, n, o) {
|
|
1367
1393
|
o === void 0 && (o = {});
|
|
1368
1394
|
const {
|
|
1369
1395
|
ancestorScroll: r = !0,
|
|
1370
1396
|
ancestorResize: i = !0,
|
|
1371
1397
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1372
1398
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1373
|
-
animationFrame:
|
|
1374
|
-
} = o,
|
|
1375
|
-
l.forEach((
|
|
1376
|
-
r &&
|
|
1399
|
+
animationFrame: f = !1
|
|
1400
|
+
} = o, a = Pt(t), l = r || i ? [...a ? ot(a) : [], ...e ? ot(e) : []] : [];
|
|
1401
|
+
l.forEach((w) => {
|
|
1402
|
+
r && w.addEventListener("scroll", n, {
|
|
1377
1403
|
passive: !0
|
|
1378
|
-
}), i &&
|
|
1404
|
+
}), i && w.addEventListener("resize", n);
|
|
1379
1405
|
});
|
|
1380
|
-
const u =
|
|
1406
|
+
const u = a && c ? dn(a, n) : null;
|
|
1381
1407
|
let d = -1, m = null;
|
|
1382
|
-
s && (m = new ResizeObserver((
|
|
1383
|
-
let [b] =
|
|
1384
|
-
b && b.target ===
|
|
1408
|
+
s && (m = new ResizeObserver((w) => {
|
|
1409
|
+
let [b] = w;
|
|
1410
|
+
b && b.target === a && m && e && (m.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
1385
1411
|
var v;
|
|
1386
1412
|
(v = m) == null || v.observe(e);
|
|
1387
1413
|
})), n();
|
|
1388
|
-
}),
|
|
1389
|
-
let h, p =
|
|
1390
|
-
|
|
1391
|
-
function
|
|
1392
|
-
const
|
|
1393
|
-
p && !
|
|
1414
|
+
}), a && !f && m.observe(a), e && m.observe(e));
|
|
1415
|
+
let h, p = f ? G(t) : null;
|
|
1416
|
+
f && y();
|
|
1417
|
+
function y() {
|
|
1418
|
+
const w = G(t);
|
|
1419
|
+
p && !te(p, w) && n(), p = w, h = requestAnimationFrame(y);
|
|
1394
1420
|
}
|
|
1395
1421
|
return n(), () => {
|
|
1396
|
-
var
|
|
1422
|
+
var w;
|
|
1397
1423
|
l.forEach((b) => {
|
|
1398
1424
|
r && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
|
|
1399
|
-
}), u == null || u(), (
|
|
1425
|
+
}), u == null || u(), (w = m) == null || w.disconnect(), m = null, f && cancelAnimationFrame(h);
|
|
1400
1426
|
};
|
|
1401
1427
|
}
|
|
1402
|
-
const
|
|
1428
|
+
const mn = Ie, hn = He, gn = ze, pn = Ye, yn = Be, Bt = Ve, wn = Xe, xn = (t, e, n) => {
|
|
1403
1429
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1404
|
-
platform:
|
|
1430
|
+
platform: un,
|
|
1405
1431
|
...n
|
|
1406
1432
|
}, i = {
|
|
1407
1433
|
...r.platform,
|
|
1408
1434
|
_c: o
|
|
1409
1435
|
};
|
|
1410
|
-
return
|
|
1436
|
+
return Fe(t, e, {
|
|
1411
1437
|
...r,
|
|
1412
1438
|
platform: i
|
|
1413
1439
|
});
|
|
1414
1440
|
};
|
|
1415
|
-
var
|
|
1416
|
-
}, st =
|
|
1417
|
-
function
|
|
1441
|
+
var vn = typeof document < "u", bn = function() {
|
|
1442
|
+
}, st = vn ? ne : bn;
|
|
1443
|
+
function ut(t, e) {
|
|
1418
1444
|
if (t === e)
|
|
1419
1445
|
return !0;
|
|
1420
1446
|
if (typeof t != typeof e)
|
|
@@ -1426,7 +1452,7 @@ function at(t, e) {
|
|
|
1426
1452
|
if (Array.isArray(t)) {
|
|
1427
1453
|
if (n = t.length, n !== e.length) return !1;
|
|
1428
1454
|
for (o = n; o-- !== 0; )
|
|
1429
|
-
if (!
|
|
1455
|
+
if (!ut(t[o], e[o]))
|
|
1430
1456
|
return !1;
|
|
1431
1457
|
return !0;
|
|
1432
1458
|
}
|
|
@@ -1437,18 +1463,18 @@ function at(t, e) {
|
|
|
1437
1463
|
return !1;
|
|
1438
1464
|
for (o = n; o-- !== 0; ) {
|
|
1439
1465
|
const i = r[o];
|
|
1440
|
-
if (!(i === "_owner" && t.$$typeof) && !
|
|
1466
|
+
if (!(i === "_owner" && t.$$typeof) && !ut(t[i], e[i]))
|
|
1441
1467
|
return !1;
|
|
1442
1468
|
}
|
|
1443
1469
|
return !0;
|
|
1444
1470
|
}
|
|
1445
1471
|
return t !== t && e !== e;
|
|
1446
1472
|
}
|
|
1447
|
-
function
|
|
1473
|
+
function ee(t) {
|
|
1448
1474
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1449
1475
|
}
|
|
1450
|
-
function
|
|
1451
|
-
const n =
|
|
1476
|
+
function jt(t, e) {
|
|
1477
|
+
const n = ee(t);
|
|
1452
1478
|
return Math.round(e * n) / n;
|
|
1453
1479
|
}
|
|
1454
1480
|
function wt(t) {
|
|
@@ -1457,7 +1483,7 @@ function wt(t) {
|
|
|
1457
1483
|
e.current = t;
|
|
1458
1484
|
}), e;
|
|
1459
1485
|
}
|
|
1460
|
-
function
|
|
1486
|
+
function Wn(t) {
|
|
1461
1487
|
t === void 0 && (t = {});
|
|
1462
1488
|
const {
|
|
1463
1489
|
placement: e = "bottom",
|
|
@@ -1469,8 +1495,8 @@ function Dn(t) {
|
|
|
1469
1495
|
floating: s
|
|
1470
1496
|
} = {},
|
|
1471
1497
|
transform: c = !0,
|
|
1472
|
-
whileElementsMounted:
|
|
1473
|
-
open:
|
|
1498
|
+
whileElementsMounted: f,
|
|
1499
|
+
open: a
|
|
1474
1500
|
} = t, [l, u] = g.useState({
|
|
1475
1501
|
x: 0,
|
|
1476
1502
|
y: 0,
|
|
@@ -1479,21 +1505,21 @@ function Dn(t) {
|
|
|
1479
1505
|
middlewareData: {},
|
|
1480
1506
|
isPositioned: !1
|
|
1481
1507
|
}), [d, m] = g.useState(o);
|
|
1482
|
-
|
|
1483
|
-
const [h, p] = g.useState(null), [
|
|
1484
|
-
|
|
1485
|
-
}, []), v = g.useCallback((
|
|
1486
|
-
|
|
1487
|
-
}, []), x = i || h, R = s ||
|
|
1488
|
-
if (!
|
|
1508
|
+
ut(d, o) || m(o);
|
|
1509
|
+
const [h, p] = g.useState(null), [y, w] = g.useState(null), b = g.useCallback((S) => {
|
|
1510
|
+
S !== C.current && (C.current = S, p(S));
|
|
1511
|
+
}, []), v = g.useCallback((S) => {
|
|
1512
|
+
S !== A.current && (A.current = S, w(S));
|
|
1513
|
+
}, []), x = i || h, R = s || y, C = g.useRef(null), A = g.useRef(null), L = g.useRef(l), N = f != null, P = wt(f), W = wt(r), M = wt(a), T = g.useCallback(() => {
|
|
1514
|
+
if (!C.current || !A.current)
|
|
1489
1515
|
return;
|
|
1490
|
-
const
|
|
1516
|
+
const S = {
|
|
1491
1517
|
placement: e,
|
|
1492
1518
|
strategy: n,
|
|
1493
1519
|
middleware: d
|
|
1494
1520
|
};
|
|
1495
|
-
|
|
1496
|
-
const
|
|
1521
|
+
W.current && (S.platform = W.current), xn(C.current, A.current, S).then((k) => {
|
|
1522
|
+
const q = {
|
|
1497
1523
|
...k,
|
|
1498
1524
|
// The floating element's position may be recomputed while it's closed
|
|
1499
1525
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -1501,65 +1527,65 @@ function Dn(t) {
|
|
|
1501
1527
|
// setting it to `true` when `open === false` (must be specified).
|
|
1502
1528
|
isPositioned: M.current !== !1
|
|
1503
1529
|
};
|
|
1504
|
-
O.current && !
|
|
1505
|
-
u(
|
|
1530
|
+
O.current && !ut(L.current, q) && (L.current = q, se.flushSync(() => {
|
|
1531
|
+
u(q);
|
|
1506
1532
|
}));
|
|
1507
1533
|
});
|
|
1508
|
-
}, [d, e, n,
|
|
1534
|
+
}, [d, e, n, W, M]);
|
|
1509
1535
|
st(() => {
|
|
1510
|
-
|
|
1511
|
-
...
|
|
1536
|
+
a === !1 && L.current.isPositioned && (L.current.isPositioned = !1, u((S) => ({
|
|
1537
|
+
...S,
|
|
1512
1538
|
isPositioned: !1
|
|
1513
1539
|
})));
|
|
1514
|
-
}, [
|
|
1540
|
+
}, [a]);
|
|
1515
1541
|
const O = g.useRef(!1);
|
|
1516
1542
|
st(() => (O.current = !0, () => {
|
|
1517
1543
|
O.current = !1;
|
|
1518
1544
|
}), []), st(() => {
|
|
1519
|
-
if (x && (
|
|
1545
|
+
if (x && (C.current = x), R && (A.current = R), x && R) {
|
|
1520
1546
|
if (P.current)
|
|
1521
|
-
return P.current(x, R,
|
|
1522
|
-
|
|
1547
|
+
return P.current(x, R, T);
|
|
1548
|
+
T();
|
|
1523
1549
|
}
|
|
1524
|
-
}, [x, R,
|
|
1525
|
-
const
|
|
1526
|
-
reference:
|
|
1550
|
+
}, [x, R, T, P, N]);
|
|
1551
|
+
const z = g.useMemo(() => ({
|
|
1552
|
+
reference: C,
|
|
1527
1553
|
floating: A,
|
|
1528
1554
|
setReference: b,
|
|
1529
1555
|
setFloating: v
|
|
1530
1556
|
}), [b, v]), E = g.useMemo(() => ({
|
|
1531
1557
|
reference: x,
|
|
1532
1558
|
floating: R
|
|
1533
|
-
}), [x, R]),
|
|
1534
|
-
const
|
|
1559
|
+
}), [x, R]), D = g.useMemo(() => {
|
|
1560
|
+
const S = {
|
|
1535
1561
|
position: n,
|
|
1536
1562
|
left: 0,
|
|
1537
1563
|
top: 0
|
|
1538
1564
|
};
|
|
1539
1565
|
if (!E.floating)
|
|
1540
|
-
return
|
|
1541
|
-
const k =
|
|
1566
|
+
return S;
|
|
1567
|
+
const k = jt(E.floating, l.x), q = jt(E.floating, l.y);
|
|
1542
1568
|
return c ? {
|
|
1543
|
-
...
|
|
1544
|
-
transform: "translate(" + k + "px, " +
|
|
1545
|
-
...
|
|
1569
|
+
...S,
|
|
1570
|
+
transform: "translate(" + k + "px, " + q + "px)",
|
|
1571
|
+
...ee(E.floating) >= 1.5 && {
|
|
1546
1572
|
willChange: "transform"
|
|
1547
1573
|
}
|
|
1548
1574
|
} : {
|
|
1549
1575
|
position: n,
|
|
1550
1576
|
left: k,
|
|
1551
|
-
top:
|
|
1577
|
+
top: q
|
|
1552
1578
|
};
|
|
1553
1579
|
}, [n, c, E.floating, l.x, l.y]);
|
|
1554
1580
|
return g.useMemo(() => ({
|
|
1555
1581
|
...l,
|
|
1556
|
-
update:
|
|
1557
|
-
refs:
|
|
1582
|
+
update: T,
|
|
1583
|
+
refs: z,
|
|
1558
1584
|
elements: E,
|
|
1559
|
-
floatingStyles:
|
|
1560
|
-
}), [l,
|
|
1585
|
+
floatingStyles: D
|
|
1586
|
+
}), [l, T, z, E, D]);
|
|
1561
1587
|
}
|
|
1562
|
-
const
|
|
1588
|
+
const Rn = (t) => {
|
|
1563
1589
|
function e(n) {
|
|
1564
1590
|
return {}.hasOwnProperty.call(n, "current");
|
|
1565
1591
|
}
|
|
@@ -1580,46 +1606,46 @@ const wn = (t) => {
|
|
|
1580
1606
|
}).fn(n) : {};
|
|
1581
1607
|
}
|
|
1582
1608
|
};
|
|
1583
|
-
},
|
|
1584
|
-
const n =
|
|
1609
|
+
}, Fn = (t, e) => {
|
|
1610
|
+
const n = mn(t);
|
|
1585
1611
|
return {
|
|
1586
1612
|
name: n.name,
|
|
1587
1613
|
fn: n.fn,
|
|
1588
1614
|
options: [t, e]
|
|
1589
1615
|
};
|
|
1590
|
-
},
|
|
1591
|
-
const n =
|
|
1616
|
+
}, Vn = (t, e) => {
|
|
1617
|
+
const n = hn(t);
|
|
1592
1618
|
return {
|
|
1593
1619
|
name: n.name,
|
|
1594
1620
|
fn: n.fn,
|
|
1595
1621
|
options: [t, e]
|
|
1596
1622
|
};
|
|
1597
|
-
},
|
|
1598
|
-
fn:
|
|
1623
|
+
}, zn = (t, e) => ({
|
|
1624
|
+
fn: wn(t).fn,
|
|
1599
1625
|
options: [t, e]
|
|
1600
|
-
}),
|
|
1601
|
-
const n =
|
|
1626
|
+
}), Bn = (t, e) => {
|
|
1627
|
+
const n = gn(t);
|
|
1602
1628
|
return {
|
|
1603
1629
|
name: n.name,
|
|
1604
1630
|
fn: n.fn,
|
|
1605
1631
|
options: [t, e]
|
|
1606
1632
|
};
|
|
1607
|
-
},
|
|
1608
|
-
const n =
|
|
1633
|
+
}, jn = (t, e) => {
|
|
1634
|
+
const n = pn(t);
|
|
1609
1635
|
return {
|
|
1610
1636
|
name: n.name,
|
|
1611
1637
|
fn: n.fn,
|
|
1612
1638
|
options: [t, e]
|
|
1613
1639
|
};
|
|
1614
|
-
},
|
|
1615
|
-
const n =
|
|
1640
|
+
}, In = (t, e) => {
|
|
1641
|
+
const n = yn(t);
|
|
1616
1642
|
return {
|
|
1617
1643
|
name: n.name,
|
|
1618
1644
|
fn: n.fn,
|
|
1619
1645
|
options: [t, e]
|
|
1620
1646
|
};
|
|
1621
|
-
},
|
|
1622
|
-
const n =
|
|
1647
|
+
}, Hn = (t, e) => {
|
|
1648
|
+
const n = Rn(t);
|
|
1623
1649
|
return {
|
|
1624
1650
|
name: n.name,
|
|
1625
1651
|
fn: n.fn,
|
|
@@ -1627,28 +1653,29 @@ const wn = (t) => {
|
|
|
1627
1653
|
};
|
|
1628
1654
|
};
|
|
1629
1655
|
export {
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
Ln as
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1656
|
+
Ce as B,
|
|
1657
|
+
kn as C,
|
|
1658
|
+
It as a,
|
|
1659
|
+
Re as b,
|
|
1660
|
+
ce as c,
|
|
1661
|
+
$n as d,
|
|
1662
|
+
Tn as e,
|
|
1663
|
+
Se as f,
|
|
1664
|
+
Mn as g,
|
|
1665
|
+
Wn as h,
|
|
1666
|
+
Bn as i,
|
|
1667
|
+
jn as j,
|
|
1668
|
+
Hn as k,
|
|
1669
|
+
zn as l,
|
|
1670
|
+
In as m,
|
|
1671
|
+
Nn as n,
|
|
1672
|
+
Fn as o,
|
|
1673
|
+
Rt as p,
|
|
1674
|
+
Ln as q,
|
|
1675
|
+
_n as r,
|
|
1676
|
+
Vn as s,
|
|
1677
|
+
Dn as t,
|
|
1678
|
+
En as u,
|
|
1679
|
+
ge as v,
|
|
1680
|
+
Pn as w
|
|
1654
1681
|
};
|