@arkitektbedriftene/fe-lib 0.3.14 → 0.3.17
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/{Badge-5eab3787.js → DropdownMenu-c57acb78.js} +852 -686
- package/dist/icons.es.js +24 -103
- package/dist/index.esm-d078f232.js +99 -0
- package/dist/oidc.es.js +4 -4
- package/dist/rich-text.es.js +94 -91
- package/dist/ui/components/Menu/DropdownMenu.d.ts +363 -0
- package/dist/ui/components/Menu/Menu.d.ts +347 -0
- package/dist/ui/components/Toolbar.d.ts +489 -0
- package/dist/ui/ui.d.ts +3 -0
- package/dist/ui.es.js +39 -23
- package/package.json +6 -5
- package/dist/jsx-runtime-d0aa4c5b.js +0 -639
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as z, jsxs as Ge, Fragment as En } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
|
|
3
|
+
import xe, { forwardRef as Ie, useLayoutEffect as qt, useEffect as Zt, useRef as Cn, createContext as kn, useMemo as Tn, useContext as Jt, isValidElement as In, cloneElement as Pn } from "react";
|
|
4
|
+
import * as An from "react-dom";
|
|
5
|
+
import { createPortal as Bn } from "react-dom";
|
|
6
|
+
import * as Me from "@radix-ui/react-toolbar";
|
|
7
|
+
import { f as On, g as Dn } from "./index.esm-d078f232.js";
|
|
8
|
+
import * as Q from "@radix-ui/react-dropdown-menu";
|
|
9
|
+
var N = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: N, backgroundColor: N, backgroundImage: N, borderImage: N, border: N, borderBlock: N, borderBlockEnd: N, borderBlockStart: N, borderBottom: N, borderBottomColor: N, borderColor: N, borderInline: N, borderInlineEnd: N, borderInlineStart: N, borderLeft: N, borderLeftColor: N, borderRight: N, borderRightColor: N, borderTop: N, borderTopColor: N, caretColor: N, color: N, columnRuleColor: N, fill: N, outline: N, outlineColor: N, stroke: N, textDecorationColor: N, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Y, minBlockSize: Y, maxBlockSize: Y, inlineSize: Y, minInlineSize: Y, maxInlineSize: Y, width: Y, minWidth: Y, maxWidth: Y, height: Y, minHeight: Y, maxHeight: Y, flexBasis: Y, gridTemplateColumns: Y, gridTemplateRows: Y, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, Fn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, Pe = () => {
|
|
7
10
|
const e = /* @__PURE__ */ Object.create(null);
|
|
8
11
|
return (t, n, ...r) => {
|
|
9
|
-
const o = ((i) => JSON.stringify(i,
|
|
12
|
+
const o = ((i) => JSON.stringify(i, Fn))(t);
|
|
10
13
|
return o in e ? e[o] : e[o] = n(t, ...r);
|
|
11
14
|
};
|
|
12
|
-
},
|
|
15
|
+
}, de = Symbol.for("sxs.internal"), mt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), St = (e) => {
|
|
13
16
|
for (const t in e)
|
|
14
17
|
return !0;
|
|
15
18
|
return !1;
|
|
16
|
-
}, { hasOwnProperty:
|
|
19
|
+
}, { hasOwnProperty: Ln } = Object.prototype, lt = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Nn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Nn) : [t]), Rt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, Wn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, zn = (e, t) => e in jn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${lt(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${lt(e)}:${r}fit-content`) + i) : String(t), jn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ee = (e) => e ? e + "-" : "", Qt = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? ee(t) + (l.includes("$") ? "" : ee(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Hn = /\s*,\s*(?![^()]*\))/, Vn = Object.prototype.toString, Ee = (e, t, n, r, o) => {
|
|
17
20
|
let i, s, l;
|
|
18
21
|
const a = (c, m, d) => {
|
|
19
22
|
let f, u;
|
|
@@ -21,46 +24,46 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
21
24
|
for (f in p) {
|
|
22
25
|
const x = f.charCodeAt(0) === 64, P = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
23
26
|
for (u of P) {
|
|
24
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (I) => I[1].toUpperCase()), C = typeof u == "object" && u && u.toString ===
|
|
27
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (I) => I[1].toUpperCase()), C = typeof u == "object" && u && u.toString === Vn && (!r.utils[S] || !m.length);
|
|
25
28
|
if (S in r.utils && !C) {
|
|
26
29
|
const I = r.utils[S];
|
|
27
30
|
if (I !== s) {
|
|
28
31
|
s = I, g(I(u)), s = null;
|
|
29
32
|
continue;
|
|
30
33
|
}
|
|
31
|
-
} else if (S in
|
|
32
|
-
const I =
|
|
34
|
+
} else if (S in Rt) {
|
|
35
|
+
const I = Rt[S];
|
|
33
36
|
if (I !== l) {
|
|
34
37
|
l = I, g(I(u)), l = null;
|
|
35
38
|
continue;
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
|
-
if (x && ($ = f.slice(1) in r.media ? "@media " + r.media[f.slice(1)] : f, f = $.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (I, A, k, O, D,
|
|
39
|
-
const M =
|
|
40
|
-
return "(" + (k[0] === "=" ? "" : k[0] === ">" === M ? "max-" : "min-") + b + ":" + (k[0] !== "=" && k.length === 1 ? v.replace(
|
|
41
|
+
if (x && ($ = f.slice(1) in r.media ? "@media " + r.media[f.slice(1)] : f, f = $.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (I, A, k, O, D, F) => {
|
|
42
|
+
const M = et.test(A), B = 0.0625 * (M ? -1 : 1), [b, v] = M ? [O, A] : [A, O];
|
|
43
|
+
return "(" + (k[0] === "=" ? "" : k[0] === ">" === M ? "max-" : "min-") + b + ":" + (k[0] !== "=" && k.length === 1 ? v.replace(et, (T, R, w) => Number(R) + B * (k === ">" ? 1 : -1) + w) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? F.replace(et, (T, R, w) => Number(R) + B * (D === ">" ? -1 : 1) + w) : F) : "") + ")";
|
|
41
44
|
})), C) {
|
|
42
|
-
const I = x ? d.concat(f) : [...d], A = x ? [...m] :
|
|
43
|
-
i !== void 0 && o(
|
|
45
|
+
const I = x ? d.concat(f) : [...d], A = x ? [...m] : Wn(m, f.split(Hn));
|
|
46
|
+
i !== void 0 && o(Et(...i)), i = void 0, a(u, A, I);
|
|
44
47
|
} else
|
|
45
|
-
i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${
|
|
48
|
+
i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${ee(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = C ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : Qt(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${lt(f)}:`}${u}`);
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
var $, h;
|
|
49
52
|
};
|
|
50
|
-
g(c), i !== void 0 && o(
|
|
53
|
+
g(c), i !== void 0 && o(Et(...i)), i = void 0;
|
|
51
54
|
};
|
|
52
55
|
a(e, t, n);
|
|
53
|
-
},
|
|
56
|
+
}, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, _n = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ct = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), fe = (e) => ((t) => {
|
|
54
57
|
let n, r = "";
|
|
55
58
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
56
|
-
r =
|
|
57
|
-
return
|
|
59
|
+
r = Ct(n % 52) + r;
|
|
60
|
+
return Ct(n % 52) + r;
|
|
58
61
|
})(((t, n) => {
|
|
59
62
|
let r = n.length;
|
|
60
63
|
for (; r; )
|
|
61
64
|
t = 33 * t ^ n.charCodeAt(--r);
|
|
62
65
|
return t;
|
|
63
|
-
})(5381, JSON.stringify(e)) >>> 0),
|
|
66
|
+
})(5381, JSON.stringify(e)) >>> 0), Oe = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Yn = (e) => {
|
|
64
67
|
if (e.href && !e.href.startsWith(location.origin))
|
|
65
68
|
return !1;
|
|
66
69
|
try {
|
|
@@ -68,7 +71,7 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
68
71
|
} catch {
|
|
69
72
|
return !1;
|
|
70
73
|
}
|
|
71
|
-
},
|
|
74
|
+
}, Kn = (e) => {
|
|
72
75
|
let t;
|
|
73
76
|
const n = () => {
|
|
74
77
|
const { cssRules: o } = t.sheet;
|
|
@@ -100,7 +103,7 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
100
103
|
}
|
|
101
104
|
const o = Object(e).styleSheets || [];
|
|
102
105
|
for (const l of o)
|
|
103
|
-
if (
|
|
106
|
+
if (Yn(l)) {
|
|
104
107
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
105
108
|
const m = Object(c[a]);
|
|
106
109
|
if (m.type !== 1)
|
|
@@ -112,7 +115,7 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
112
115
|
const { cssText: f } = m;
|
|
113
116
|
if (!f.startsWith("--sxs"))
|
|
114
117
|
continue;
|
|
115
|
-
const u = f.slice(14, -3).trim().split(/\s+/), g =
|
|
118
|
+
const u = f.slice(14, -3).trim().split(/\s+/), g = Oe[u[0]];
|
|
116
119
|
g && (t || (t = { sheet: l, reset: r, rules: {}, toString: n }), t.rules[g] = { group: d, index: a, cache: new Set(u) });
|
|
117
120
|
}
|
|
118
121
|
if (t)
|
|
@@ -127,17 +130,17 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
127
130
|
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset: r, toString: n };
|
|
128
131
|
}
|
|
129
132
|
const { sheet: i, rules: s } = t;
|
|
130
|
-
for (let l =
|
|
131
|
-
const a =
|
|
133
|
+
for (let l = Oe.length - 1; l >= 0; --l) {
|
|
134
|
+
const a = Oe[l];
|
|
132
135
|
if (!s[a]) {
|
|
133
|
-
const c =
|
|
136
|
+
const c = Oe[l + 1], m = s[c] ? s[c].index : i.cssRules.length;
|
|
134
137
|
i.insertRule("@media{}", m), i.insertRule(`--sxs{--sxs:${l}}`, m), s[a] = { group: i.cssRules[m + 1], index: m, cache: /* @__PURE__ */ new Set([l]) };
|
|
135
138
|
}
|
|
136
|
-
|
|
139
|
+
Xn(s[a]);
|
|
137
140
|
}
|
|
138
141
|
};
|
|
139
142
|
return r(), t;
|
|
140
|
-
},
|
|
143
|
+
}, Xn = (e) => {
|
|
141
144
|
const t = e.group;
|
|
142
145
|
let n = t.cssRules.length;
|
|
143
146
|
e.apply = (r) => {
|
|
@@ -146,29 +149,29 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
146
149
|
} catch {
|
|
147
150
|
}
|
|
148
151
|
};
|
|
149
|
-
},
|
|
152
|
+
}, Be = Symbol(), Gn = Pe(), kt = (e, t) => Gn(e, () => (...n) => {
|
|
150
153
|
let r = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
151
154
|
for (const o of n)
|
|
152
155
|
if (o != null)
|
|
153
|
-
if (o[
|
|
154
|
-
r.type == null && (r.type = o[
|
|
155
|
-
for (const i of o[
|
|
156
|
+
if (o[de]) {
|
|
157
|
+
r.type == null && (r.type = o[de].type);
|
|
158
|
+
for (const i of o[de].composers)
|
|
156
159
|
r.composers.add(i);
|
|
157
160
|
} else
|
|
158
|
-
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(
|
|
159
|
-
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]),
|
|
160
|
-
}),
|
|
161
|
-
const i = `${
|
|
161
|
+
o.constructor !== Object || o.$$typeof ? r.type == null && (r.type = o) : r.composers.add(Un(o, e));
|
|
162
|
+
return r.type == null && (r.type = "span"), r.composers.size || r.composers.add(["PJLV", {}, [], [], {}, []]), qn(e, r, t);
|
|
163
|
+
}), Un = ({ variants: e, compoundVariants: t, defaultVariants: n, ...r }, o) => {
|
|
164
|
+
const i = `${ee(o.prefix)}c-${fe(r)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
|
|
162
165
|
for (const f in n)
|
|
163
166
|
a[f] = String(n[f]);
|
|
164
167
|
if (typeof e == "object" && e)
|
|
165
168
|
for (const f in e) {
|
|
166
|
-
m = a, d = f,
|
|
169
|
+
m = a, d = f, Ln.call(m, d) || (a[f] = "undefined");
|
|
167
170
|
const u = e[f];
|
|
168
171
|
for (const g in u) {
|
|
169
172
|
const p = { [f]: String(g) };
|
|
170
173
|
String(g) === "undefined" && c.push(f);
|
|
171
|
-
const $ = u[g], h = [p, $, !
|
|
174
|
+
const $ = u[g], h = [p, $, !St($)];
|
|
172
175
|
s.push(h);
|
|
173
176
|
}
|
|
174
177
|
}
|
|
@@ -179,22 +182,22 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
179
182
|
u = typeof u == "object" && u || {};
|
|
180
183
|
for (const $ in g)
|
|
181
184
|
g[$] = String(g[$]);
|
|
182
|
-
const p = [g, u, !
|
|
185
|
+
const p = [g, u, !St(u)];
|
|
183
186
|
l.push(p);
|
|
184
187
|
}
|
|
185
188
|
return [i, r, s, l, a, c];
|
|
186
|
-
},
|
|
187
|
-
const [r, o, i, s] =
|
|
189
|
+
}, qn = (e, t, n) => {
|
|
190
|
+
const [r, o, i, s] = Zn(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((d) => {
|
|
188
191
|
function f() {
|
|
189
|
-
for (let u = 0; u < f[
|
|
190
|
-
const [g, p] = f[
|
|
192
|
+
for (let u = 0; u < f[Be].length; u++) {
|
|
193
|
+
const [g, p] = f[Be][u];
|
|
191
194
|
d.rules[g].apply(p);
|
|
192
195
|
}
|
|
193
|
-
return f[
|
|
196
|
+
return f[Be] = [], null;
|
|
194
197
|
}
|
|
195
|
-
return f[
|
|
198
|
+
return f[Be] = [], f.rules = {}, Oe.forEach((u) => f.rules[u] = { apply: (g) => f[Be].push([u, g]) }), f;
|
|
196
199
|
})(n) : null, a = (l || n).rules, c = `.${r}${o.length > 1 ? `:where(.${o.slice(1).join(".")})` : ""}`, m = (d) => {
|
|
197
|
-
d = typeof d == "object" && d ||
|
|
200
|
+
d = typeof d == "object" && d || Jn;
|
|
198
201
|
const { css: f, ...u } = d, g = {};
|
|
199
202
|
for (const h in i)
|
|
200
203
|
if (delete u[h], h in d) {
|
|
@@ -204,32 +207,32 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
204
207
|
g[h] = i[h];
|
|
205
208
|
const p = /* @__PURE__ */ new Set([...o]);
|
|
206
209
|
for (const [h, x, P, S] of t.composers) {
|
|
207
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h),
|
|
210
|
+
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ee(x, [`.${h}`], [], e, (A) => {
|
|
208
211
|
a.styled.apply(A);
|
|
209
212
|
}));
|
|
210
|
-
const C =
|
|
213
|
+
const C = Tt(P, g, e.media), I = Tt(S, g, e.media, !0);
|
|
211
214
|
for (const A of C)
|
|
212
215
|
if (A !== void 0)
|
|
213
216
|
for (const [k, O, D] of A) {
|
|
214
|
-
const
|
|
215
|
-
p.add(
|
|
217
|
+
const F = `${h}-${fe(O)}-${k}`;
|
|
218
|
+
p.add(F);
|
|
216
219
|
const M = (D ? n.rules.resonevar : n.rules.onevar).cache, B = D ? a.resonevar : a.onevar;
|
|
217
|
-
M.has(
|
|
220
|
+
M.has(F) || (M.add(F), Ee(O, [`.${F}`], [], e, (b) => {
|
|
218
221
|
B.apply(b);
|
|
219
222
|
}));
|
|
220
223
|
}
|
|
221
224
|
for (const A of I)
|
|
222
225
|
if (A !== void 0)
|
|
223
226
|
for (const [k, O] of A) {
|
|
224
|
-
const D = `${h}-${
|
|
225
|
-
p.add(D), n.rules.allvar.cache.has(D) || (n.rules.allvar.cache.add(D),
|
|
226
|
-
a.allvar.apply(
|
|
227
|
+
const D = `${h}-${fe(O)}-${k}`;
|
|
228
|
+
p.add(D), n.rules.allvar.cache.has(D) || (n.rules.allvar.cache.add(D), Ee(O, [`.${D}`], [], e, (F) => {
|
|
229
|
+
a.allvar.apply(F);
|
|
227
230
|
}));
|
|
228
231
|
}
|
|
229
232
|
}
|
|
230
233
|
if (typeof f == "object" && f) {
|
|
231
|
-
const h = `${r}-i${
|
|
232
|
-
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h),
|
|
234
|
+
const h = `${r}-i${fe(f)}-css`;
|
|
235
|
+
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), Ee(f, [`.${h}`], [], e, (x) => {
|
|
233
236
|
a.inline.apply(x);
|
|
234
237
|
}));
|
|
235
238
|
}
|
|
@@ -238,8 +241,8 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
238
241
|
const $ = u.className = [...p].join(" ");
|
|
239
242
|
return { type: t.type, className: $, selector: c, props: u, toString: () => $, deferredInjector: l };
|
|
240
243
|
};
|
|
241
|
-
return
|
|
242
|
-
},
|
|
244
|
+
return mt(m, { className: r, selector: c, [de]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
|
|
245
|
+
}, Zn = (e) => {
|
|
243
246
|
let t = "";
|
|
244
247
|
const n = [], r = {}, o = [];
|
|
245
248
|
for (const [i, , , , s, l] of e) {
|
|
@@ -250,7 +253,7 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
250
253
|
}
|
|
251
254
|
}
|
|
252
255
|
return [t, n, r, new Set(o)];
|
|
253
|
-
},
|
|
256
|
+
}, Tt = (e, t, n, r) => {
|
|
254
257
|
const o = [];
|
|
255
258
|
e:
|
|
256
259
|
for (let [i, s, l] of e) {
|
|
@@ -283,11 +286,11 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
283
286
|
(o[c] = o[c] || []).push([r ? "cv" : `${a}-${i[a]}`, s, m]);
|
|
284
287
|
}
|
|
285
288
|
return o;
|
|
286
|
-
},
|
|
289
|
+
}, Jn = {}, Qn = Pe(), er = (e, t) => Qn(e, () => (...n) => {
|
|
287
290
|
const r = () => {
|
|
288
291
|
for (let o of n) {
|
|
289
292
|
o = typeof o == "object" && o || {};
|
|
290
|
-
let i =
|
|
293
|
+
let i = fe(o);
|
|
291
294
|
if (!t.rules.global.cache.has(i)) {
|
|
292
295
|
if (t.rules.global.cache.add(i), "@import" in o) {
|
|
293
296
|
let s = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
|
|
@@ -295,29 +298,29 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
295
298
|
l = l.includes('"') || l.includes("'") ? l : `"${l}"`, t.sheet.insertRule(`@import ${l};`, s++);
|
|
296
299
|
delete o["@import"];
|
|
297
300
|
}
|
|
298
|
-
|
|
301
|
+
Ee(o, [], [], e, (s) => {
|
|
299
302
|
t.rules.global.apply(s);
|
|
300
303
|
});
|
|
301
304
|
}
|
|
302
305
|
}
|
|
303
306
|
return "";
|
|
304
307
|
};
|
|
305
|
-
return
|
|
306
|
-
}),
|
|
307
|
-
const r = `${
|
|
308
|
+
return mt(r, { toString: r });
|
|
309
|
+
}), tr = Pe(), nr = (e, t) => tr(e, () => (n) => {
|
|
310
|
+
const r = `${ee(e.prefix)}k-${fe(n)}`, o = () => {
|
|
308
311
|
if (!t.rules.global.cache.has(r)) {
|
|
309
312
|
t.rules.global.cache.add(r);
|
|
310
313
|
const i = [];
|
|
311
|
-
|
|
314
|
+
Ee(n, [], [], e, (l) => i.push(l));
|
|
312
315
|
const s = `@keyframes ${r}{${i.join("")}}`;
|
|
313
316
|
t.rules.global.apply(s);
|
|
314
317
|
}
|
|
315
318
|
return r;
|
|
316
319
|
};
|
|
317
|
-
return
|
|
320
|
+
return mt(o, { get name() {
|
|
318
321
|
return o();
|
|
319
322
|
}, toString: o });
|
|
320
|
-
}),
|
|
323
|
+
}), rr = class {
|
|
321
324
|
constructor(e, t, n, r) {
|
|
322
325
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = r == null ? "" : String(r);
|
|
323
326
|
}
|
|
@@ -325,19 +328,19 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
325
328
|
return "var(" + this.variable + ")";
|
|
326
329
|
}
|
|
327
330
|
get variable() {
|
|
328
|
-
return "--" +
|
|
331
|
+
return "--" + ee(this.prefix) + ee(this.scale) + this.token;
|
|
329
332
|
}
|
|
330
333
|
toString() {
|
|
331
334
|
return this.computedValue;
|
|
332
335
|
}
|
|
333
|
-
},
|
|
336
|
+
}, or = Pe(), ir = (e, t) => or(e, () => (n, r) => {
|
|
334
337
|
r = typeof n == "object" && n || Object(r);
|
|
335
|
-
const o = `.${n = (n = typeof n == "string" ? n : "") || `${
|
|
338
|
+
const o = `.${n = (n = typeof n == "string" ? n : "") || `${ee(e.prefix)}t-${fe(r)}`}`, i = {}, s = [];
|
|
336
339
|
for (const a in r) {
|
|
337
340
|
i[a] = {};
|
|
338
341
|
for (const c in r[a]) {
|
|
339
|
-
const m = `--${
|
|
340
|
-
i[a][c] = new
|
|
342
|
+
const m = `--${ee(e.prefix)}${a}-${c}`, d = Qt(String(r[a][c]), e.prefix, a);
|
|
343
|
+
i[a][c] = new rr(c, d, a, e.prefix), s.push(`${m}:${d}`);
|
|
341
344
|
}
|
|
342
345
|
}
|
|
343
346
|
const l = () => {
|
|
@@ -351,31 +354,31 @@ var N = "colors", V = "sizes", E = "space", Cn = { gap: E, gridGap: E, columnGap
|
|
|
351
354
|
return { ...i, get className() {
|
|
352
355
|
return l();
|
|
353
356
|
}, selector: o, toString: l };
|
|
354
|
-
}),
|
|
357
|
+
}), sr = Pe(), lr = Pe(), ar = (e) => {
|
|
355
358
|
const t = ((n) => {
|
|
356
359
|
let r = !1;
|
|
357
|
-
const o =
|
|
360
|
+
const o = sr(n, (i) => {
|
|
358
361
|
r = !0;
|
|
359
|
-
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...
|
|
362
|
+
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Mn }, utils: typeof i.utils == "object" && i.utils || {} }, d = Kn(a), f = { css: kt(m, d), globalCss: er(m, d), keyframes: nr(m, d), createTheme: ir(m, d), reset() {
|
|
360
363
|
d.reset(), f.theme.toString();
|
|
361
364
|
}, theme: {}, sheet: d, config: m, prefix: s, getCssText: d.toString, toString: d.toString };
|
|
362
365
|
return String(f.theme = f.createTheme(c)), f;
|
|
363
366
|
});
|
|
364
367
|
return r || o.reset(), o;
|
|
365
368
|
})(e);
|
|
366
|
-
return t.styled = (({ config: n, sheet: r }) =>
|
|
367
|
-
const o =
|
|
369
|
+
return t.styled = (({ config: n, sheet: r }) => lr(n, () => {
|
|
370
|
+
const o = kt(n, r);
|
|
368
371
|
return (...i) => {
|
|
369
|
-
const s = o(...i), l = s[
|
|
372
|
+
const s = o(...i), l = s[de].type, a = xe.forwardRef((c, m) => {
|
|
370
373
|
const d = c && c.as || l, { props: f, deferredInjector: u } = s(c);
|
|
371
|
-
return delete f.as, f.ref = m, u ?
|
|
374
|
+
return delete f.as, f.ref = m, u ? xe.createElement(xe.Fragment, null, xe.createElement(d, f), xe.createElement(u, null)) : xe.createElement(d, f);
|
|
372
375
|
});
|
|
373
|
-
return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[
|
|
376
|
+
return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[de] = s[de], a;
|
|
374
377
|
};
|
|
375
378
|
}))(t), t;
|
|
376
379
|
};
|
|
377
|
-
let
|
|
378
|
-
const
|
|
380
|
+
let It = 9999;
|
|
381
|
+
const tt = () => (It--, It), { styled: V, css: gt, keyframes: Ae, globalCss: pi } = ar({
|
|
379
382
|
theme: {
|
|
380
383
|
colors: {
|
|
381
384
|
gray50: "#F9FAFA",
|
|
@@ -493,33 +496,33 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
493
496
|
* By using createLayerBelow() we can order the list of layers.
|
|
494
497
|
* Layers higher up will be on top of layers lower down.
|
|
495
498
|
*/
|
|
496
|
-
toast:
|
|
497
|
-
overlayCard:
|
|
498
|
-
modal:
|
|
499
|
+
toast: tt(),
|
|
500
|
+
overlayCard: tt(),
|
|
501
|
+
modal: tt()
|
|
499
502
|
}
|
|
500
503
|
},
|
|
501
504
|
media: {
|
|
502
505
|
lg: "(min-width: 1200px)",
|
|
503
506
|
print: "print"
|
|
504
507
|
}
|
|
505
|
-
}),
|
|
508
|
+
}), cr = Ae({
|
|
506
509
|
"0%": {
|
|
507
510
|
transform: "rotate(0)"
|
|
508
511
|
},
|
|
509
512
|
"100%": {
|
|
510
513
|
transform: "rotate(360deg)"
|
|
511
514
|
}
|
|
512
|
-
}),
|
|
515
|
+
}), ur = Ae({
|
|
513
516
|
"0%": {
|
|
514
517
|
strokeDashoffset: 600
|
|
515
518
|
},
|
|
516
519
|
"100%": {
|
|
517
520
|
strokeDashoffset: 0
|
|
518
521
|
}
|
|
519
|
-
}),
|
|
520
|
-
animation: `${
|
|
521
|
-
}),
|
|
522
|
-
animation: `${
|
|
522
|
+
}), dr = V("svg", {
|
|
523
|
+
animation: `${cr} 2s linear infinite`
|
|
524
|
+
}), fr = V("circle", {
|
|
525
|
+
animation: `${ur} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
523
526
|
fill: "transparent",
|
|
524
527
|
stroke: "currentColor",
|
|
525
528
|
strokeDasharray: 300,
|
|
@@ -527,7 +530,7 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
527
530
|
strokeLinecap: "round",
|
|
528
531
|
strokeMiterlimit: 10,
|
|
529
532
|
strokeWidth: 12
|
|
530
|
-
}),
|
|
533
|
+
}), mr = V("div", {
|
|
531
534
|
lineHeight: 0,
|
|
532
535
|
flexShrink: 0,
|
|
533
536
|
variants: {
|
|
@@ -565,20 +568,20 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
565
568
|
size: "sm",
|
|
566
569
|
color: "dark"
|
|
567
570
|
}
|
|
568
|
-
}),
|
|
569
|
-
(e, t) => /* @__PURE__ */
|
|
570
|
-
|
|
571
|
+
}), gr = Ie(
|
|
572
|
+
(e, t) => /* @__PURE__ */ z(
|
|
573
|
+
mr,
|
|
571
574
|
{
|
|
572
575
|
ref: t,
|
|
573
576
|
...e,
|
|
574
|
-
children: /* @__PURE__ */
|
|
575
|
-
|
|
577
|
+
children: /* @__PURE__ */ z(
|
|
578
|
+
dr,
|
|
576
579
|
{
|
|
577
580
|
x: "0px",
|
|
578
581
|
y: "0px",
|
|
579
582
|
viewBox: "0 0 150 150",
|
|
580
|
-
children: /* @__PURE__ */
|
|
581
|
-
|
|
583
|
+
children: /* @__PURE__ */ z(
|
|
584
|
+
fr,
|
|
582
585
|
{
|
|
583
586
|
cx: "75",
|
|
584
587
|
cy: "75",
|
|
@@ -589,7 +592,7 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
589
592
|
)
|
|
590
593
|
}
|
|
591
594
|
)
|
|
592
|
-
),
|
|
595
|
+
), pr = V("button", {
|
|
593
596
|
appearance: "none",
|
|
594
597
|
margin: 0,
|
|
595
598
|
padding: 0,
|
|
@@ -734,9 +737,9 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
734
737
|
color: "secondary",
|
|
735
738
|
size: "md"
|
|
736
739
|
}
|
|
737
|
-
}),
|
|
738
|
-
({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */
|
|
739
|
-
|
|
740
|
+
}), hr = Ie(
|
|
741
|
+
({ children: e, disabled: t, isLoading: n, variant: r, color: o, ...i }, s) => (!o && r === "primary" && (o = "primary"), /* @__PURE__ */ Ge(
|
|
742
|
+
pr,
|
|
740
743
|
{
|
|
741
744
|
ref: s,
|
|
742
745
|
type: "button",
|
|
@@ -747,11 +750,11 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
747
750
|
...i,
|
|
748
751
|
children: [
|
|
749
752
|
e,
|
|
750
|
-
n && /* @__PURE__ */
|
|
753
|
+
n && /* @__PURE__ */ z(gr, { color: "inherit" })
|
|
751
754
|
]
|
|
752
755
|
}
|
|
753
756
|
))
|
|
754
|
-
),
|
|
757
|
+
), br = V("div", {
|
|
755
758
|
padding: "$3",
|
|
756
759
|
borderRadius: "$md",
|
|
757
760
|
variants: {
|
|
@@ -790,9 +793,9 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
790
793
|
color: "info",
|
|
791
794
|
size: "md"
|
|
792
795
|
}
|
|
793
|
-
}),
|
|
794
|
-
({ children: e, ...t }, n) => /* @__PURE__ */
|
|
795
|
-
|
|
796
|
+
}), hi = Ie(
|
|
797
|
+
({ children: e, ...t }, n) => /* @__PURE__ */ z(
|
|
798
|
+
br,
|
|
796
799
|
{
|
|
797
800
|
ref: n,
|
|
798
801
|
role: "alert",
|
|
@@ -800,97 +803,97 @@ const Ze = () => (Rt--, Rt), { styled: re, css: qt, keyframes: Ie, globalCss: ni
|
|
|
800
803
|
children: e
|
|
801
804
|
}
|
|
802
805
|
)
|
|
803
|
-
),
|
|
806
|
+
), yr = Ae({
|
|
804
807
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
805
808
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
806
|
-
}),
|
|
809
|
+
}), vr = Ae({
|
|
807
810
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
808
811
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
809
|
-
}),
|
|
812
|
+
}), xr = Ae({
|
|
810
813
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
811
814
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
812
|
-
}),
|
|
815
|
+
}), wr = Ae({
|
|
813
816
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
814
817
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
815
|
-
}),
|
|
818
|
+
}), $r = gt({
|
|
816
819
|
backgroundColor: "white",
|
|
817
820
|
boxShadow: "$overlayCard",
|
|
818
821
|
borderRadius: "$sm",
|
|
819
822
|
overflow: "hidden",
|
|
820
823
|
zIndex: "$overlayCard"
|
|
821
|
-
}),
|
|
824
|
+
}), Sr = gt({
|
|
822
825
|
animationDuration: "400ms",
|
|
823
826
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
824
827
|
willChange: "transform, opacity",
|
|
825
828
|
'&[data-state="open"]': {
|
|
826
|
-
'&[data-side="top"]': { animationName:
|
|
827
|
-
'&[data-side="right"]': { animationName:
|
|
828
|
-
'&[data-side="bottom"]': { animationName:
|
|
829
|
-
'&[data-side="left"]': { animationName:
|
|
829
|
+
'&[data-side="top"]': { animationName: xr },
|
|
830
|
+
'&[data-side="right"]': { animationName: wr },
|
|
831
|
+
'&[data-side="bottom"]': { animationName: yr },
|
|
832
|
+
'&[data-side="left"]': { animationName: vr }
|
|
830
833
|
}
|
|
831
|
-
}),
|
|
834
|
+
}), en = V(
|
|
832
835
|
"div",
|
|
833
|
-
|
|
834
|
-
|
|
836
|
+
$r,
|
|
837
|
+
Sr
|
|
835
838
|
);
|
|
836
|
-
function
|
|
837
|
-
return
|
|
839
|
+
function re(e) {
|
|
840
|
+
return tn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
838
841
|
}
|
|
839
|
-
function
|
|
842
|
+
function U(e) {
|
|
840
843
|
var t;
|
|
841
844
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
842
845
|
}
|
|
843
|
-
function
|
|
846
|
+
function te(e) {
|
|
844
847
|
var t;
|
|
845
|
-
return (t = (
|
|
848
|
+
return (t = (tn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
846
849
|
}
|
|
847
|
-
function
|
|
848
|
-
return e instanceof Node || e instanceof
|
|
850
|
+
function tn(e) {
|
|
851
|
+
return e instanceof Node || e instanceof U(e).Node;
|
|
849
852
|
}
|
|
850
853
|
function W(e) {
|
|
851
|
-
return e instanceof Element || e instanceof
|
|
854
|
+
return e instanceof Element || e instanceof U(e).Element;
|
|
852
855
|
}
|
|
853
|
-
function
|
|
854
|
-
return e instanceof HTMLElement || e instanceof
|
|
856
|
+
function q(e) {
|
|
857
|
+
return e instanceof HTMLElement || e instanceof U(e).HTMLElement;
|
|
855
858
|
}
|
|
856
|
-
function
|
|
857
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
859
|
+
function at(e) {
|
|
860
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
|
|
858
861
|
}
|
|
859
|
-
function
|
|
862
|
+
function Fe(e) {
|
|
860
863
|
const {
|
|
861
864
|
overflow: t,
|
|
862
865
|
overflowX: n,
|
|
863
866
|
overflowY: r,
|
|
864
867
|
display: o
|
|
865
|
-
} =
|
|
868
|
+
} = Z(e);
|
|
866
869
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
867
870
|
}
|
|
868
|
-
function
|
|
869
|
-
return ["table", "td", "th"].includes(
|
|
871
|
+
function Rr(e) {
|
|
872
|
+
return ["table", "td", "th"].includes(re(e));
|
|
870
873
|
}
|
|
871
|
-
function
|
|
872
|
-
const t =
|
|
874
|
+
function pt(e) {
|
|
875
|
+
const t = ht(), n = Z(e);
|
|
873
876
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
874
877
|
}
|
|
875
|
-
function
|
|
876
|
-
let t =
|
|
877
|
-
for (;
|
|
878
|
-
if (
|
|
878
|
+
function Er(e) {
|
|
879
|
+
let t = pe(e);
|
|
880
|
+
for (; q(t) && !Te(t); ) {
|
|
881
|
+
if (pt(t))
|
|
879
882
|
return t;
|
|
880
|
-
t =
|
|
883
|
+
t = pe(t);
|
|
881
884
|
}
|
|
882
885
|
return null;
|
|
883
886
|
}
|
|
884
|
-
function
|
|
887
|
+
function ht() {
|
|
885
888
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
886
889
|
}
|
|
887
|
-
function
|
|
888
|
-
return ["html", "body", "#document"].includes(
|
|
890
|
+
function Te(e) {
|
|
891
|
+
return ["html", "body", "#document"].includes(re(e));
|
|
889
892
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
893
|
+
function Z(e) {
|
|
894
|
+
return U(e).getComputedStyle(e);
|
|
892
895
|
}
|
|
893
|
-
function
|
|
896
|
+
function Ue(e) {
|
|
894
897
|
return W(e) ? {
|
|
895
898
|
scrollLeft: e.scrollLeft,
|
|
896
899
|
scrollTop: e.scrollTop
|
|
@@ -899,29 +902,29 @@ function Ye(e) {
|
|
|
899
902
|
scrollTop: e.pageYOffset
|
|
900
903
|
};
|
|
901
904
|
}
|
|
902
|
-
function
|
|
903
|
-
if (
|
|
905
|
+
function pe(e) {
|
|
906
|
+
if (re(e) === "html")
|
|
904
907
|
return e;
|
|
905
908
|
const t = (
|
|
906
909
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
907
910
|
e.assignedSlot || // DOM Element detected.
|
|
908
911
|
e.parentNode || // ShadowRoot detected.
|
|
909
|
-
|
|
910
|
-
|
|
912
|
+
at(e) && e.host || // Fallback.
|
|
913
|
+
te(e)
|
|
911
914
|
);
|
|
912
|
-
return
|
|
915
|
+
return at(t) ? t.host : t;
|
|
913
916
|
}
|
|
914
|
-
function
|
|
915
|
-
const t =
|
|
916
|
-
return
|
|
917
|
+
function nn(e) {
|
|
918
|
+
const t = pe(e);
|
|
919
|
+
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(t) && Fe(t) ? t : nn(t);
|
|
917
920
|
}
|
|
918
|
-
function
|
|
921
|
+
function ne(e, t, n) {
|
|
919
922
|
var r;
|
|
920
923
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
921
|
-
const o =
|
|
922
|
-
return i ? t.concat(s, s.visualViewport || [],
|
|
924
|
+
const o = nn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = U(o);
|
|
925
|
+
return i ? t.concat(s, s.visualViewport || [], Fe(o) ? o : [], s.frameElement && n ? ne(s.frameElement) : []) : t.concat(o, ne(o, [], n));
|
|
923
926
|
}
|
|
924
|
-
function
|
|
927
|
+
function Cr(e) {
|
|
925
928
|
let t = e.activeElement;
|
|
926
929
|
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
927
930
|
var n;
|
|
@@ -929,13 +932,13 @@ function br(e) {
|
|
|
929
932
|
}
|
|
930
933
|
return t;
|
|
931
934
|
}
|
|
932
|
-
function
|
|
935
|
+
function me(e, t) {
|
|
933
936
|
if (!e || !t)
|
|
934
937
|
return !1;
|
|
935
938
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
936
939
|
if (e.contains(t))
|
|
937
940
|
return !0;
|
|
938
|
-
if (n &&
|
|
941
|
+
if (n && at(n)) {
|
|
939
942
|
let r = t;
|
|
940
943
|
for (; r; ) {
|
|
941
944
|
if (e === r)
|
|
@@ -945,23 +948,23 @@ function fe(e, t) {
|
|
|
945
948
|
}
|
|
946
949
|
return !1;
|
|
947
950
|
}
|
|
948
|
-
function
|
|
951
|
+
function kr() {
|
|
949
952
|
return /apple/i.test(navigator.vendor);
|
|
950
953
|
}
|
|
951
|
-
function
|
|
954
|
+
function ze(e, t) {
|
|
952
955
|
const n = ["mouse", "pen"];
|
|
953
956
|
return t || n.push("", void 0), n.includes(e);
|
|
954
957
|
}
|
|
955
|
-
function
|
|
958
|
+
function Tr(e) {
|
|
956
959
|
return "nativeEvent" in e;
|
|
957
960
|
}
|
|
958
|
-
function
|
|
961
|
+
function Ir(e) {
|
|
959
962
|
return e.matches("html,body");
|
|
960
963
|
}
|
|
961
|
-
function
|
|
964
|
+
function ue(e) {
|
|
962
965
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
963
966
|
}
|
|
964
|
-
function
|
|
967
|
+
function nt(e, t) {
|
|
965
968
|
if (t == null)
|
|
966
969
|
return !1;
|
|
967
970
|
if ("composedPath" in e)
|
|
@@ -969,63 +972,63 @@ function Je(e, t) {
|
|
|
969
972
|
const n = e;
|
|
970
973
|
return n.target != null && t.contains(n.target);
|
|
971
974
|
}
|
|
972
|
-
function
|
|
975
|
+
function Se(e) {
|
|
973
976
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
974
977
|
}
|
|
975
|
-
const
|
|
976
|
-
function
|
|
977
|
-
return
|
|
978
|
+
const Pr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
979
|
+
function Ar(e) {
|
|
980
|
+
return q(e) && e.matches(Pr);
|
|
978
981
|
}
|
|
979
|
-
const
|
|
982
|
+
const je = Math.min, ge = Math.max, He = Math.round, Le = Math.floor, oe = (e) => ({
|
|
980
983
|
x: e,
|
|
981
984
|
y: e
|
|
982
|
-
}),
|
|
985
|
+
}), Br = {
|
|
983
986
|
left: "right",
|
|
984
987
|
right: "left",
|
|
985
988
|
bottom: "top",
|
|
986
989
|
top: "bottom"
|
|
987
|
-
},
|
|
990
|
+
}, Or = {
|
|
988
991
|
start: "end",
|
|
989
992
|
end: "start"
|
|
990
993
|
};
|
|
991
|
-
function
|
|
992
|
-
return
|
|
994
|
+
function Pt(e, t, n) {
|
|
995
|
+
return ge(e, je(t, n));
|
|
993
996
|
}
|
|
994
|
-
function
|
|
997
|
+
function qe(e, t) {
|
|
995
998
|
return typeof e == "function" ? e(t) : e;
|
|
996
999
|
}
|
|
997
|
-
function
|
|
1000
|
+
function he(e) {
|
|
998
1001
|
return e.split("-")[0];
|
|
999
1002
|
}
|
|
1000
|
-
function
|
|
1003
|
+
function Ze(e) {
|
|
1001
1004
|
return e.split("-")[1];
|
|
1002
1005
|
}
|
|
1003
|
-
function
|
|
1006
|
+
function rn(e) {
|
|
1004
1007
|
return e === "x" ? "y" : "x";
|
|
1005
1008
|
}
|
|
1006
|
-
function
|
|
1009
|
+
function on(e) {
|
|
1007
1010
|
return e === "y" ? "height" : "width";
|
|
1008
1011
|
}
|
|
1009
|
-
function
|
|
1010
|
-
return ["top", "bottom"].includes(
|
|
1012
|
+
function Je(e) {
|
|
1013
|
+
return ["top", "bottom"].includes(he(e)) ? "y" : "x";
|
|
1011
1014
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1015
|
+
function sn(e) {
|
|
1016
|
+
return rn(Je(e));
|
|
1014
1017
|
}
|
|
1015
|
-
function
|
|
1018
|
+
function Dr(e, t, n) {
|
|
1016
1019
|
n === void 0 && (n = !1);
|
|
1017
|
-
const r =
|
|
1020
|
+
const r = Ze(e), o = sn(e), i = on(o);
|
|
1018
1021
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1019
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1022
|
+
return t.reference[i] > t.floating[i] && (s = Ve(s)), [s, Ve(s)];
|
|
1020
1023
|
}
|
|
1021
|
-
function
|
|
1022
|
-
const t =
|
|
1023
|
-
return [
|
|
1024
|
+
function Mr(e) {
|
|
1025
|
+
const t = Ve(e);
|
|
1026
|
+
return [ct(e), t, ct(t)];
|
|
1024
1027
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return e.replace(/start|end/g, (t) =>
|
|
1028
|
+
function ct(e) {
|
|
1029
|
+
return e.replace(/start|end/g, (t) => Or[t]);
|
|
1027
1030
|
}
|
|
1028
|
-
function
|
|
1031
|
+
function Fr(e, t, n) {
|
|
1029
1032
|
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1030
1033
|
switch (e) {
|
|
1031
1034
|
case "top":
|
|
@@ -1038,15 +1041,15 @@ function kr(e, t, n) {
|
|
|
1038
1041
|
return [];
|
|
1039
1042
|
}
|
|
1040
1043
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const o =
|
|
1043
|
-
let i =
|
|
1044
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
1044
|
+
function Lr(e, t, n, r) {
|
|
1045
|
+
const o = Ze(e);
|
|
1046
|
+
let i = Fr(he(e), n === "start", r);
|
|
1047
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ct)))), i;
|
|
1045
1048
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1049
|
+
function Ve(e) {
|
|
1050
|
+
return e.replace(/left|right|bottom|top/g, (t) => Br[t]);
|
|
1048
1051
|
}
|
|
1049
|
-
function
|
|
1052
|
+
function Nr(e) {
|
|
1050
1053
|
return {
|
|
1051
1054
|
top: 0,
|
|
1052
1055
|
right: 0,
|
|
@@ -1055,15 +1058,15 @@ function Ir(e) {
|
|
|
1055
1058
|
...e
|
|
1056
1059
|
};
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return typeof e != "number" ?
|
|
1061
|
+
function Wr(e) {
|
|
1062
|
+
return typeof e != "number" ? Nr(e) : {
|
|
1060
1063
|
top: e,
|
|
1061
1064
|
right: e,
|
|
1062
1065
|
bottom: e,
|
|
1063
1066
|
left: e
|
|
1064
1067
|
};
|
|
1065
1068
|
}
|
|
1066
|
-
function
|
|
1069
|
+
function _e(e) {
|
|
1067
1070
|
return {
|
|
1068
1071
|
...e,
|
|
1069
1072
|
top: e.y,
|
|
@@ -1072,12 +1075,12 @@ function ze(e) {
|
|
|
1072
1075
|
bottom: e.y + e.height
|
|
1073
1076
|
};
|
|
1074
1077
|
}
|
|
1075
|
-
function
|
|
1078
|
+
function At(e, t, n) {
|
|
1076
1079
|
let {
|
|
1077
1080
|
reference: r,
|
|
1078
1081
|
floating: o
|
|
1079
1082
|
} = e;
|
|
1080
|
-
const i =
|
|
1083
|
+
const i = Je(t), s = sn(t), l = on(s), a = he(t), c = i === "y", m = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[l] / 2 - o[l] / 2;
|
|
1081
1084
|
let u;
|
|
1082
1085
|
switch (a) {
|
|
1083
1086
|
case "top":
|
|
@@ -1110,7 +1113,7 @@ function Ct(e, t, n) {
|
|
|
1110
1113
|
y: r.y
|
|
1111
1114
|
};
|
|
1112
1115
|
}
|
|
1113
|
-
switch (
|
|
1116
|
+
switch (Ze(t)) {
|
|
1114
1117
|
case "start":
|
|
1115
1118
|
u[s] -= f * (n && c ? -1 : 1);
|
|
1116
1119
|
break;
|
|
@@ -1120,7 +1123,7 @@ function Ct(e, t, n) {
|
|
|
1120
1123
|
}
|
|
1121
1124
|
return u;
|
|
1122
1125
|
}
|
|
1123
|
-
const
|
|
1126
|
+
const zr = async (e, t, n) => {
|
|
1124
1127
|
const {
|
|
1125
1128
|
placement: r = "bottom",
|
|
1126
1129
|
strategy: o = "absolute",
|
|
@@ -1134,7 +1137,7 @@ const Ar = async (e, t, n) => {
|
|
|
1134
1137
|
}), {
|
|
1135
1138
|
x: m,
|
|
1136
1139
|
y: d
|
|
1137
|
-
} =
|
|
1140
|
+
} = At(c, r, a), f = r, u = {}, g = 0;
|
|
1138
1141
|
for (let p = 0; p < l.length; p++) {
|
|
1139
1142
|
const {
|
|
1140
1143
|
name: $,
|
|
@@ -1171,7 +1174,7 @@ const Ar = async (e, t, n) => {
|
|
|
1171
1174
|
}) : C.rects), {
|
|
1172
1175
|
x: m,
|
|
1173
1176
|
y: d
|
|
1174
|
-
} =
|
|
1177
|
+
} = At(c, f, a)), p = -1);
|
|
1175
1178
|
}
|
|
1176
1179
|
return {
|
|
1177
1180
|
x: m,
|
|
@@ -1181,7 +1184,7 @@ const Ar = async (e, t, n) => {
|
|
|
1181
1184
|
middlewareData: u
|
|
1182
1185
|
};
|
|
1183
1186
|
};
|
|
1184
|
-
async function
|
|
1187
|
+
async function ln(e, t) {
|
|
1185
1188
|
var n;
|
|
1186
1189
|
t === void 0 && (t = {});
|
|
1187
1190
|
const {
|
|
@@ -1197,7 +1200,7 @@ async function tn(e, t) {
|
|
|
1197
1200
|
elementContext: d = "floating",
|
|
1198
1201
|
altBoundary: f = !1,
|
|
1199
1202
|
padding: u = 0
|
|
1200
|
-
} =
|
|
1203
|
+
} = qe(t, e), g = Wr(u), $ = l[f ? d === "floating" ? "reference" : "floating" : d], h = _e(await i.getClippingRect({
|
|
1201
1204
|
element: (n = await (i.isElement == null ? void 0 : i.isElement($))) == null || n ? $ : $.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
1202
1205
|
boundary: c,
|
|
1203
1206
|
rootBoundary: m,
|
|
@@ -1212,7 +1215,7 @@ async function tn(e, t) {
|
|
|
1212
1215
|
} : {
|
|
1213
1216
|
x: 1,
|
|
1214
1217
|
y: 1
|
|
1215
|
-
}, C =
|
|
1218
|
+
}, C = _e(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1216
1219
|
elements: l,
|
|
1217
1220
|
rect: x,
|
|
1218
1221
|
offsetParent: P,
|
|
@@ -1225,7 +1228,7 @@ async function tn(e, t) {
|
|
|
1225
1228
|
right: (C.right - h.right + g.right) / S.x
|
|
1226
1229
|
};
|
|
1227
1230
|
}
|
|
1228
|
-
const
|
|
1231
|
+
const jr = function(e) {
|
|
1229
1232
|
return e === void 0 && (e = {}), {
|
|
1230
1233
|
name: "flip",
|
|
1231
1234
|
options: e,
|
|
@@ -1246,15 +1249,15 @@ const Br = function(e) {
|
|
|
1246
1249
|
fallbackAxisSideDirection: g = "none",
|
|
1247
1250
|
flipAlignment: p = !0,
|
|
1248
1251
|
...$
|
|
1249
|
-
} =
|
|
1252
|
+
} = qe(e, t);
|
|
1250
1253
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1251
1254
|
return {};
|
|
1252
|
-
const h =
|
|
1253
|
-
!f && g !== "none" && S.push(...
|
|
1254
|
-
const C = [l, ...S], I = await
|
|
1255
|
+
const h = he(o), x = he(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ve(l)] : Mr(l));
|
|
1256
|
+
!f && g !== "none" && S.push(...Lr(l, p, g, P));
|
|
1257
|
+
const C = [l, ...S], I = await ln(t, $), A = [];
|
|
1255
1258
|
let k = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1256
1259
|
if (m && A.push(I[h]), d) {
|
|
1257
|
-
const M =
|
|
1260
|
+
const M = Dr(o, s, P);
|
|
1258
1261
|
A.push(I[M[0]], I[M[1]]);
|
|
1259
1262
|
}
|
|
1260
1263
|
if (k = [...k, {
|
|
@@ -1277,8 +1280,8 @@ const Br = function(e) {
|
|
|
1277
1280
|
if (!b)
|
|
1278
1281
|
switch (u) {
|
|
1279
1282
|
case "bestFit": {
|
|
1280
|
-
var
|
|
1281
|
-
const v = (
|
|
1283
|
+
var F;
|
|
1284
|
+
const v = (F = k.map((T) => [T.placement, T.overflows.filter((R) => R > 0).reduce((R, w) => R + w, 0)]).sort((T, R) => T[1] - R[1])[0]) == null ? void 0 : F[0];
|
|
1282
1285
|
v && (b = v);
|
|
1283
1286
|
break;
|
|
1284
1287
|
}
|
|
@@ -1297,12 +1300,12 @@ const Br = function(e) {
|
|
|
1297
1300
|
}
|
|
1298
1301
|
};
|
|
1299
1302
|
};
|
|
1300
|
-
async function
|
|
1303
|
+
async function Hr(e, t) {
|
|
1301
1304
|
const {
|
|
1302
1305
|
placement: n,
|
|
1303
1306
|
platform: r,
|
|
1304
1307
|
elements: o
|
|
1305
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s =
|
|
1308
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = he(n), l = Ze(n), a = Je(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, m = i && a ? -1 : 1, d = qe(t, e);
|
|
1306
1309
|
let {
|
|
1307
1310
|
mainAxis: f,
|
|
1308
1311
|
crossAxis: u,
|
|
@@ -1325,7 +1328,7 @@ async function Or(e, t) {
|
|
|
1325
1328
|
y: u * m
|
|
1326
1329
|
};
|
|
1327
1330
|
}
|
|
1328
|
-
const
|
|
1331
|
+
const Vr = function(e) {
|
|
1329
1332
|
return e === void 0 && (e = 0), {
|
|
1330
1333
|
name: "offset",
|
|
1331
1334
|
options: e,
|
|
@@ -1336,7 +1339,7 @@ const Dr = function(e) {
|
|
|
1336
1339
|
y: i,
|
|
1337
1340
|
placement: s,
|
|
1338
1341
|
middlewareData: l
|
|
1339
|
-
} = t, a = await
|
|
1342
|
+
} = t, a = await Hr(t, e);
|
|
1340
1343
|
return s === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
1341
1344
|
x: o + a.x,
|
|
1342
1345
|
y: i + a.y,
|
|
@@ -1347,7 +1350,7 @@ const Dr = function(e) {
|
|
|
1347
1350
|
};
|
|
1348
1351
|
}
|
|
1349
1352
|
};
|
|
1350
|
-
},
|
|
1353
|
+
}, _r = function(e) {
|
|
1351
1354
|
return e === void 0 && (e = {}), {
|
|
1352
1355
|
name: "shift",
|
|
1353
1356
|
options: e,
|
|
@@ -1372,18 +1375,18 @@ const Dr = function(e) {
|
|
|
1372
1375
|
}
|
|
1373
1376
|
},
|
|
1374
1377
|
...a
|
|
1375
|
-
} =
|
|
1378
|
+
} = qe(e, t), c = {
|
|
1376
1379
|
x: n,
|
|
1377
1380
|
y: r
|
|
1378
|
-
}, m = await
|
|
1381
|
+
}, m = await ln(t, a), d = Je(he(o)), f = rn(d);
|
|
1379
1382
|
let u = c[f], g = c[d];
|
|
1380
1383
|
if (i) {
|
|
1381
1384
|
const $ = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[$], P = u - m[h];
|
|
1382
|
-
u =
|
|
1385
|
+
u = Pt(x, u, P);
|
|
1383
1386
|
}
|
|
1384
1387
|
if (s) {
|
|
1385
1388
|
const $ = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", x = g + m[$], P = g - m[h];
|
|
1386
|
-
g =
|
|
1389
|
+
g = Pt(x, g, P);
|
|
1387
1390
|
}
|
|
1388
1391
|
const p = l.fn({
|
|
1389
1392
|
...t,
|
|
@@ -1400,70 +1403,70 @@ const Dr = function(e) {
|
|
|
1400
1403
|
}
|
|
1401
1404
|
};
|
|
1402
1405
|
};
|
|
1403
|
-
function
|
|
1404
|
-
const t =
|
|
1406
|
+
function an(e) {
|
|
1407
|
+
const t = Z(e);
|
|
1405
1408
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1406
|
-
const o =
|
|
1409
|
+
const o = q(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, l = He(n) !== i || He(r) !== s;
|
|
1407
1410
|
return l && (n = i, r = s), {
|
|
1408
1411
|
width: n,
|
|
1409
1412
|
height: r,
|
|
1410
1413
|
$: l
|
|
1411
1414
|
};
|
|
1412
1415
|
}
|
|
1413
|
-
function
|
|
1416
|
+
function bt(e) {
|
|
1414
1417
|
return W(e) ? e : e.contextElement;
|
|
1415
1418
|
}
|
|
1416
|
-
function
|
|
1417
|
-
const t =
|
|
1418
|
-
if (!
|
|
1419
|
-
return
|
|
1419
|
+
function ke(e) {
|
|
1420
|
+
const t = bt(e);
|
|
1421
|
+
if (!q(t))
|
|
1422
|
+
return oe(1);
|
|
1420
1423
|
const n = t.getBoundingClientRect(), {
|
|
1421
1424
|
width: r,
|
|
1422
1425
|
height: o,
|
|
1423
1426
|
$: i
|
|
1424
|
-
} =
|
|
1425
|
-
let s = (i ?
|
|
1427
|
+
} = an(t);
|
|
1428
|
+
let s = (i ? He(n.width) : n.width) / r, l = (i ? He(n.height) : n.height) / o;
|
|
1426
1429
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1427
1430
|
x: s,
|
|
1428
1431
|
y: l
|
|
1429
1432
|
};
|
|
1430
1433
|
}
|
|
1431
|
-
const
|
|
1432
|
-
function
|
|
1433
|
-
const t =
|
|
1434
|
-
return !
|
|
1434
|
+
const Yr = /* @__PURE__ */ oe(0);
|
|
1435
|
+
function cn(e) {
|
|
1436
|
+
const t = U(e);
|
|
1437
|
+
return !ht() || !t.visualViewport ? Yr : {
|
|
1435
1438
|
x: t.visualViewport.offsetLeft,
|
|
1436
1439
|
y: t.visualViewport.offsetTop
|
|
1437
1440
|
};
|
|
1438
1441
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1442
|
+
function Kr(e, t, n) {
|
|
1443
|
+
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
1441
1444
|
}
|
|
1442
|
-
function
|
|
1445
|
+
function be(e, t, n, r) {
|
|
1443
1446
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1444
|
-
const o = e.getBoundingClientRect(), i =
|
|
1445
|
-
let s =
|
|
1446
|
-
t && (r ? W(r) && (s =
|
|
1447
|
-
const l =
|
|
1447
|
+
const o = e.getBoundingClientRect(), i = bt(e);
|
|
1448
|
+
let s = oe(1);
|
|
1449
|
+
t && (r ? W(r) && (s = ke(r)) : s = ke(e));
|
|
1450
|
+
const l = Kr(i, n, r) ? cn(i) : oe(0);
|
|
1448
1451
|
let a = (o.left + l.x) / s.x, c = (o.top + l.y) / s.y, m = o.width / s.x, d = o.height / s.y;
|
|
1449
1452
|
if (i) {
|
|
1450
|
-
const f =
|
|
1453
|
+
const f = U(i), u = r && W(r) ? U(r) : r;
|
|
1451
1454
|
let g = f, p = g.frameElement;
|
|
1452
1455
|
for (; p && r && u !== g; ) {
|
|
1453
|
-
const $ =
|
|
1454
|
-
a *= $.x, c *= $.y, m *= $.x, d *= $.y, a += P, c += S, g =
|
|
1456
|
+
const $ = ke(p), h = p.getBoundingClientRect(), x = Z(p), P = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * $.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * $.y;
|
|
1457
|
+
a *= $.x, c *= $.y, m *= $.x, d *= $.y, a += P, c += S, g = U(p), p = g.frameElement;
|
|
1455
1458
|
}
|
|
1456
1459
|
}
|
|
1457
|
-
return
|
|
1460
|
+
return _e({
|
|
1458
1461
|
width: m,
|
|
1459
1462
|
height: d,
|
|
1460
1463
|
x: a,
|
|
1461
1464
|
y: c
|
|
1462
1465
|
});
|
|
1463
1466
|
}
|
|
1464
|
-
const
|
|
1465
|
-
function
|
|
1466
|
-
return
|
|
1467
|
+
const Xr = [":popover-open", ":modal"];
|
|
1468
|
+
function un(e) {
|
|
1469
|
+
return Xr.some((t) => {
|
|
1467
1470
|
try {
|
|
1468
1471
|
return e.matches(t);
|
|
1469
1472
|
} catch {
|
|
@@ -1471,24 +1474,24 @@ function on(e) {
|
|
|
1471
1474
|
}
|
|
1472
1475
|
});
|
|
1473
1476
|
}
|
|
1474
|
-
function
|
|
1477
|
+
function Gr(e) {
|
|
1475
1478
|
let {
|
|
1476
1479
|
elements: t,
|
|
1477
1480
|
rect: n,
|
|
1478
1481
|
offsetParent: r,
|
|
1479
1482
|
strategy: o
|
|
1480
1483
|
} = e;
|
|
1481
|
-
const i = o === "fixed", s =
|
|
1484
|
+
const i = o === "fixed", s = te(r), l = t ? un(t.floating) : !1;
|
|
1482
1485
|
if (r === s || l && i)
|
|
1483
1486
|
return n;
|
|
1484
1487
|
let a = {
|
|
1485
1488
|
scrollLeft: 0,
|
|
1486
1489
|
scrollTop: 0
|
|
1487
|
-
}, c =
|
|
1488
|
-
const m =
|
|
1489
|
-
if ((d || !d && !i) && ((
|
|
1490
|
-
const f =
|
|
1491
|
-
c =
|
|
1490
|
+
}, c = oe(1);
|
|
1491
|
+
const m = oe(0), d = q(r);
|
|
1492
|
+
if ((d || !d && !i) && ((re(r) !== "body" || Fe(s)) && (a = Ue(r)), q(r))) {
|
|
1493
|
+
const f = be(r);
|
|
1494
|
+
c = ke(r), m.x = f.x + r.clientLeft, m.y = f.y + r.clientTop;
|
|
1492
1495
|
}
|
|
1493
1496
|
return {
|
|
1494
1497
|
width: n.width * c.x,
|
|
@@ -1497,29 +1500,29 @@ function Wr(e) {
|
|
|
1497
1500
|
y: n.y * c.y - a.scrollTop * c.y + m.y
|
|
1498
1501
|
};
|
|
1499
1502
|
}
|
|
1500
|
-
function
|
|
1503
|
+
function Ur(e) {
|
|
1501
1504
|
return Array.from(e.getClientRects());
|
|
1502
1505
|
}
|
|
1503
|
-
function
|
|
1504
|
-
return
|
|
1506
|
+
function dn(e) {
|
|
1507
|
+
return be(te(e)).left + Ue(e).scrollLeft;
|
|
1505
1508
|
}
|
|
1506
|
-
function
|
|
1507
|
-
const t =
|
|
1508
|
-
let s = -n.scrollLeft +
|
|
1509
|
+
function qr(e) {
|
|
1510
|
+
const t = te(e), n = Ue(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1511
|
+
let s = -n.scrollLeft + dn(e);
|
|
1509
1512
|
const l = -n.scrollTop;
|
|
1510
|
-
return
|
|
1513
|
+
return Z(r).direction === "rtl" && (s += ge(t.clientWidth, r.clientWidth) - o), {
|
|
1511
1514
|
width: o,
|
|
1512
1515
|
height: i,
|
|
1513
1516
|
x: s,
|
|
1514
1517
|
y: l
|
|
1515
1518
|
};
|
|
1516
1519
|
}
|
|
1517
|
-
function
|
|
1518
|
-
const n =
|
|
1520
|
+
function Zr(e, t) {
|
|
1521
|
+
const n = U(e), r = te(e), o = n.visualViewport;
|
|
1519
1522
|
let i = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
1520
1523
|
if (o) {
|
|
1521
1524
|
i = o.width, s = o.height;
|
|
1522
|
-
const c =
|
|
1525
|
+
const c = ht();
|
|
1523
1526
|
(!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
|
|
1524
1527
|
}
|
|
1525
1528
|
return {
|
|
@@ -1529,8 +1532,8 @@ function Hr(e, t) {
|
|
|
1529
1532
|
y: a
|
|
1530
1533
|
};
|
|
1531
1534
|
}
|
|
1532
|
-
function
|
|
1533
|
-
const n =
|
|
1535
|
+
function Jr(e, t) {
|
|
1536
|
+
const n = be(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = q(e) ? ke(e) : oe(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = o * i.x, c = r * i.y;
|
|
1534
1537
|
return {
|
|
1535
1538
|
width: s,
|
|
1536
1539
|
height: l,
|
|
@@ -1538,52 +1541,52 @@ function Vr(e, t) {
|
|
|
1538
1541
|
y: c
|
|
1539
1542
|
};
|
|
1540
1543
|
}
|
|
1541
|
-
function
|
|
1544
|
+
function Bt(e, t, n) {
|
|
1542
1545
|
let r;
|
|
1543
1546
|
if (t === "viewport")
|
|
1544
|
-
r =
|
|
1547
|
+
r = Zr(e, n);
|
|
1545
1548
|
else if (t === "document")
|
|
1546
|
-
r =
|
|
1549
|
+
r = qr(te(e));
|
|
1547
1550
|
else if (W(t))
|
|
1548
|
-
r =
|
|
1551
|
+
r = Jr(t, n);
|
|
1549
1552
|
else {
|
|
1550
|
-
const o =
|
|
1553
|
+
const o = cn(e);
|
|
1551
1554
|
r = {
|
|
1552
1555
|
...t,
|
|
1553
1556
|
x: t.x - o.x,
|
|
1554
1557
|
y: t.y - o.y
|
|
1555
1558
|
};
|
|
1556
1559
|
}
|
|
1557
|
-
return
|
|
1560
|
+
return _e(r);
|
|
1558
1561
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const n =
|
|
1561
|
-
return n === t || !W(n) ||
|
|
1562
|
+
function fn(e, t) {
|
|
1563
|
+
const n = pe(e);
|
|
1564
|
+
return n === t || !W(n) || Te(n) ? !1 : Z(n).position === "fixed" || fn(n, t);
|
|
1562
1565
|
}
|
|
1563
|
-
function
|
|
1566
|
+
function Qr(e, t) {
|
|
1564
1567
|
const n = t.get(e);
|
|
1565
1568
|
if (n)
|
|
1566
1569
|
return n;
|
|
1567
|
-
let r =
|
|
1568
|
-
const i =
|
|
1569
|
-
let s = i ?
|
|
1570
|
-
for (; W(s) && !
|
|
1571
|
-
const l =
|
|
1572
|
-
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
1570
|
+
let r = ne(e, [], !1).filter((l) => W(l) && re(l) !== "body"), o = null;
|
|
1571
|
+
const i = Z(e).position === "fixed";
|
|
1572
|
+
let s = i ? pe(e) : e;
|
|
1573
|
+
for (; W(s) && !Te(s); ) {
|
|
1574
|
+
const l = Z(s), a = pt(s);
|
|
1575
|
+
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a && fn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = pe(s);
|
|
1573
1576
|
}
|
|
1574
1577
|
return t.set(e, r), r;
|
|
1575
1578
|
}
|
|
1576
|
-
function
|
|
1579
|
+
function eo(e) {
|
|
1577
1580
|
let {
|
|
1578
1581
|
element: t,
|
|
1579
1582
|
boundary: n,
|
|
1580
1583
|
rootBoundary: r,
|
|
1581
1584
|
strategy: o
|
|
1582
1585
|
} = e;
|
|
1583
|
-
const s = [...n === "clippingAncestors" ?
|
|
1584
|
-
const d =
|
|
1585
|
-
return c.top =
|
|
1586
|
-
},
|
|
1586
|
+
const s = [...n === "clippingAncestors" ? Qr(t, this._c) : [].concat(n), r], l = s[0], a = s.reduce((c, m) => {
|
|
1587
|
+
const d = Bt(t, m, o);
|
|
1588
|
+
return c.top = ge(d.top, c.top), c.right = je(d.right, c.right), c.bottom = je(d.bottom, c.bottom), c.left = ge(d.left, c.left), c;
|
|
1589
|
+
}, Bt(t, l, o));
|
|
1587
1590
|
return {
|
|
1588
1591
|
width: a.right - a.left,
|
|
1589
1592
|
height: a.bottom - a.top,
|
|
@@ -1591,29 +1594,29 @@ function Yr(e) {
|
|
|
1591
1594
|
y: a.top
|
|
1592
1595
|
};
|
|
1593
1596
|
}
|
|
1594
|
-
function
|
|
1597
|
+
function to(e) {
|
|
1595
1598
|
const {
|
|
1596
1599
|
width: t,
|
|
1597
1600
|
height: n
|
|
1598
|
-
} =
|
|
1601
|
+
} = an(e);
|
|
1599
1602
|
return {
|
|
1600
1603
|
width: t,
|
|
1601
1604
|
height: n
|
|
1602
1605
|
};
|
|
1603
1606
|
}
|
|
1604
|
-
function
|
|
1605
|
-
const r =
|
|
1607
|
+
function no(e, t, n) {
|
|
1608
|
+
const r = q(t), o = te(t), i = n === "fixed", s = be(e, !0, i, t);
|
|
1606
1609
|
let l = {
|
|
1607
1610
|
scrollLeft: 0,
|
|
1608
1611
|
scrollTop: 0
|
|
1609
1612
|
};
|
|
1610
|
-
const a =
|
|
1613
|
+
const a = oe(0);
|
|
1611
1614
|
if (r || !r && !i)
|
|
1612
|
-
if ((
|
|
1613
|
-
const d =
|
|
1615
|
+
if ((re(t) !== "body" || Fe(o)) && (l = Ue(t)), r) {
|
|
1616
|
+
const d = be(t, !0, i, t);
|
|
1614
1617
|
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1615
1618
|
} else
|
|
1616
|
-
o && (a.x =
|
|
1619
|
+
o && (a.x = dn(o));
|
|
1617
1620
|
const c = s.left + l.scrollLeft - a.x, m = s.top + l.scrollTop - a.y;
|
|
1618
1621
|
return {
|
|
1619
1622
|
x: c,
|
|
@@ -1622,22 +1625,22 @@ function Xr(e, t, n) {
|
|
|
1622
1625
|
height: s.height
|
|
1623
1626
|
};
|
|
1624
1627
|
}
|
|
1625
|
-
function
|
|
1626
|
-
return !
|
|
1628
|
+
function Ot(e, t) {
|
|
1629
|
+
return !q(e) || Z(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1627
1630
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const n =
|
|
1630
|
-
if (!
|
|
1631
|
+
function mn(e, t) {
|
|
1632
|
+
const n = U(e);
|
|
1633
|
+
if (!q(e) || un(e))
|
|
1631
1634
|
return n;
|
|
1632
|
-
let r =
|
|
1633
|
-
for (; r &&
|
|
1634
|
-
r =
|
|
1635
|
-
return r && (
|
|
1635
|
+
let r = Ot(e, t);
|
|
1636
|
+
for (; r && Rr(r) && Z(r).position === "static"; )
|
|
1637
|
+
r = Ot(r, t);
|
|
1638
|
+
return r && (re(r) === "html" || re(r) === "body" && Z(r).position === "static" && !pt(r)) ? n : r || Er(e) || n;
|
|
1636
1639
|
}
|
|
1637
|
-
const
|
|
1638
|
-
const t = this.getOffsetParent ||
|
|
1640
|
+
const ro = async function(e) {
|
|
1641
|
+
const t = this.getOffsetParent || mn, n = this.getDimensions;
|
|
1639
1642
|
return {
|
|
1640
|
-
reference:
|
|
1643
|
+
reference: no(e.reference, await t(e.floating), e.strategy),
|
|
1641
1644
|
floating: {
|
|
1642
1645
|
x: 0,
|
|
1643
1646
|
y: 0,
|
|
@@ -1645,24 +1648,24 @@ const Ur = async function(e) {
|
|
|
1645
1648
|
}
|
|
1646
1649
|
};
|
|
1647
1650
|
};
|
|
1648
|
-
function
|
|
1649
|
-
return
|
|
1650
|
-
}
|
|
1651
|
-
const
|
|
1652
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1653
|
-
getDocumentElement:
|
|
1654
|
-
getClippingRect:
|
|
1655
|
-
getOffsetParent:
|
|
1656
|
-
getElementRects:
|
|
1657
|
-
getClientRects:
|
|
1658
|
-
getDimensions:
|
|
1659
|
-
getScale:
|
|
1651
|
+
function oo(e) {
|
|
1652
|
+
return Z(e).direction === "rtl";
|
|
1653
|
+
}
|
|
1654
|
+
const io = {
|
|
1655
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Gr,
|
|
1656
|
+
getDocumentElement: te,
|
|
1657
|
+
getClippingRect: eo,
|
|
1658
|
+
getOffsetParent: mn,
|
|
1659
|
+
getElementRects: ro,
|
|
1660
|
+
getClientRects: Ur,
|
|
1661
|
+
getDimensions: to,
|
|
1662
|
+
getScale: ke,
|
|
1660
1663
|
isElement: W,
|
|
1661
|
-
isRTL:
|
|
1664
|
+
isRTL: oo
|
|
1662
1665
|
};
|
|
1663
|
-
function
|
|
1666
|
+
function so(e, t) {
|
|
1664
1667
|
let n = null, r;
|
|
1665
|
-
const o =
|
|
1668
|
+
const o = te(e);
|
|
1666
1669
|
function i() {
|
|
1667
1670
|
var l;
|
|
1668
1671
|
clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
|
|
@@ -1677,9 +1680,9 @@ function Zr(e, t) {
|
|
|
1677
1680
|
} = e.getBoundingClientRect();
|
|
1678
1681
|
if (l || t(), !d || !f)
|
|
1679
1682
|
return;
|
|
1680
|
-
const u =
|
|
1683
|
+
const u = Le(m), g = Le(o.clientWidth - (c + d)), p = Le(o.clientHeight - (m + f)), $ = Le(c), x = {
|
|
1681
1684
|
rootMargin: -u + "px " + -g + "px " + -p + "px " + -$ + "px",
|
|
1682
|
-
threshold:
|
|
1685
|
+
threshold: ge(0, je(1, a)) || 1
|
|
1683
1686
|
};
|
|
1684
1687
|
let P = !0;
|
|
1685
1688
|
function S(C) {
|
|
@@ -1706,7 +1709,7 @@ function Zr(e, t) {
|
|
|
1706
1709
|
}
|
|
1707
1710
|
return s(!0), i;
|
|
1708
1711
|
}
|
|
1709
|
-
function
|
|
1712
|
+
function lo(e, t, n, r) {
|
|
1710
1713
|
r === void 0 && (r = {});
|
|
1711
1714
|
const {
|
|
1712
1715
|
ancestorScroll: o = !0,
|
|
@@ -1714,13 +1717,13 @@ function Jr(e, t, n, r) {
|
|
|
1714
1717
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1715
1718
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1716
1719
|
animationFrame: a = !1
|
|
1717
|
-
} = r, c =
|
|
1720
|
+
} = r, c = bt(e), m = o || i ? [...c ? ne(c) : [], ...ne(t)] : [];
|
|
1718
1721
|
m.forEach((h) => {
|
|
1719
1722
|
o && h.addEventListener("scroll", n, {
|
|
1720
1723
|
passive: !0
|
|
1721
1724
|
}), i && h.addEventListener("resize", n);
|
|
1722
1725
|
});
|
|
1723
|
-
const d = c && l ?
|
|
1726
|
+
const d = c && l ? so(c, n) : null;
|
|
1724
1727
|
let f = -1, u = null;
|
|
1725
1728
|
s && (u = new ResizeObserver((h) => {
|
|
1726
1729
|
let [x] = h;
|
|
@@ -1729,10 +1732,10 @@ function Jr(e, t, n, r) {
|
|
|
1729
1732
|
(P = u) == null || P.observe(t);
|
|
1730
1733
|
})), n();
|
|
1731
1734
|
}), c && !a && u.observe(c), u.observe(t));
|
|
1732
|
-
let g, p = a ?
|
|
1735
|
+
let g, p = a ? be(e) : null;
|
|
1733
1736
|
a && $();
|
|
1734
1737
|
function $() {
|
|
1735
|
-
const h =
|
|
1738
|
+
const h = be(e);
|
|
1736
1739
|
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, g = requestAnimationFrame($);
|
|
1737
1740
|
}
|
|
1738
1741
|
return n(), () => {
|
|
@@ -1742,21 +1745,21 @@ function Jr(e, t, n, r) {
|
|
|
1742
1745
|
}), d == null || d(), (h = u) == null || h.disconnect(), u = null, a && cancelAnimationFrame(g);
|
|
1743
1746
|
};
|
|
1744
1747
|
}
|
|
1745
|
-
const
|
|
1748
|
+
const ao = _r, co = jr, uo = (e, t, n) => {
|
|
1746
1749
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1747
|
-
platform:
|
|
1750
|
+
platform: io,
|
|
1748
1751
|
...n
|
|
1749
1752
|
}, i = {
|
|
1750
1753
|
...o.platform,
|
|
1751
1754
|
_c: r
|
|
1752
1755
|
};
|
|
1753
|
-
return
|
|
1756
|
+
return zr(e, t, {
|
|
1754
1757
|
...o,
|
|
1755
1758
|
platform: i
|
|
1756
1759
|
});
|
|
1757
1760
|
};
|
|
1758
|
-
var
|
|
1759
|
-
function
|
|
1761
|
+
var Ne = typeof document < "u" ? qt : Zt;
|
|
1762
|
+
function Ye(e, t) {
|
|
1760
1763
|
if (e === t)
|
|
1761
1764
|
return !0;
|
|
1762
1765
|
if (typeof e != typeof t)
|
|
@@ -1769,7 +1772,7 @@ function He(e, t) {
|
|
|
1769
1772
|
if (n = e.length, n !== t.length)
|
|
1770
1773
|
return !1;
|
|
1771
1774
|
for (r = n; r-- !== 0; )
|
|
1772
|
-
if (!
|
|
1775
|
+
if (!Ye(e[r], t[r]))
|
|
1773
1776
|
return !1;
|
|
1774
1777
|
return !0;
|
|
1775
1778
|
}
|
|
@@ -1780,27 +1783,27 @@ function He(e, t) {
|
|
|
1780
1783
|
return !1;
|
|
1781
1784
|
for (r = n; r-- !== 0; ) {
|
|
1782
1785
|
const i = o[r];
|
|
1783
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
1786
|
+
if (!(i === "_owner" && e.$$typeof) && !Ye(e[i], t[i]))
|
|
1784
1787
|
return !1;
|
|
1785
1788
|
}
|
|
1786
1789
|
return !0;
|
|
1787
1790
|
}
|
|
1788
1791
|
return e !== e && t !== t;
|
|
1789
1792
|
}
|
|
1790
|
-
function
|
|
1793
|
+
function gn(e) {
|
|
1791
1794
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1792
1795
|
}
|
|
1793
|
-
function
|
|
1794
|
-
const n =
|
|
1796
|
+
function Dt(e, t) {
|
|
1797
|
+
const n = gn(e);
|
|
1795
1798
|
return Math.round(t * n) / n;
|
|
1796
1799
|
}
|
|
1797
|
-
function
|
|
1800
|
+
function Mt(e) {
|
|
1798
1801
|
const t = y.useRef(e);
|
|
1799
|
-
return
|
|
1802
|
+
return Ne(() => {
|
|
1800
1803
|
t.current = e;
|
|
1801
1804
|
}), t;
|
|
1802
1805
|
}
|
|
1803
|
-
function
|
|
1806
|
+
function fo(e) {
|
|
1804
1807
|
e === void 0 && (e = {});
|
|
1805
1808
|
const {
|
|
1806
1809
|
placement: t = "bottom",
|
|
@@ -1822,12 +1825,12 @@ function no(e) {
|
|
|
1822
1825
|
middlewareData: {},
|
|
1823
1826
|
isPositioned: !1
|
|
1824
1827
|
}), [f, u] = y.useState(r);
|
|
1825
|
-
|
|
1828
|
+
Ye(f, r) || u(r);
|
|
1826
1829
|
const [g, p] = y.useState(null), [$, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1827
1830
|
R !== I.current && (I.current = R, p(R));
|
|
1828
1831
|
}, []), P = y.useCallback((R) => {
|
|
1829
1832
|
R !== A.current && (A.current = R, h(R));
|
|
1830
|
-
}, []), S = i || g, C = s || $, I = y.useRef(null), A = y.useRef(null), k = y.useRef(m), O = a != null, D =
|
|
1833
|
+
}, []), S = i || g, C = s || $, I = y.useRef(null), A = y.useRef(null), k = y.useRef(m), O = a != null, D = Mt(a), F = Mt(o), M = y.useCallback(() => {
|
|
1831
1834
|
if (!I.current || !A.current)
|
|
1832
1835
|
return;
|
|
1833
1836
|
const R = {
|
|
@@ -1835,26 +1838,26 @@ function no(e) {
|
|
|
1835
1838
|
strategy: n,
|
|
1836
1839
|
middleware: f
|
|
1837
1840
|
};
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1841
|
+
F.current && (R.platform = F.current), uo(I.current, A.current, R).then((w) => {
|
|
1842
|
+
const L = {
|
|
1840
1843
|
...w,
|
|
1841
1844
|
isPositioned: !0
|
|
1842
1845
|
};
|
|
1843
|
-
B.current && !
|
|
1844
|
-
d(
|
|
1846
|
+
B.current && !Ye(k.current, L) && (k.current = L, An.flushSync(() => {
|
|
1847
|
+
d(L);
|
|
1845
1848
|
}));
|
|
1846
1849
|
});
|
|
1847
|
-
}, [f, t, n,
|
|
1848
|
-
|
|
1850
|
+
}, [f, t, n, F]);
|
|
1851
|
+
Ne(() => {
|
|
1849
1852
|
c === !1 && k.current.isPositioned && (k.current.isPositioned = !1, d((R) => ({
|
|
1850
1853
|
...R,
|
|
1851
1854
|
isPositioned: !1
|
|
1852
1855
|
})));
|
|
1853
1856
|
}, [c]);
|
|
1854
1857
|
const B = y.useRef(!1);
|
|
1855
|
-
|
|
1858
|
+
Ne(() => (B.current = !0, () => {
|
|
1856
1859
|
B.current = !1;
|
|
1857
|
-
}), []),
|
|
1860
|
+
}), []), Ne(() => {
|
|
1858
1861
|
if (S && (I.current = S), C && (A.current = C), S && C) {
|
|
1859
1862
|
if (D.current)
|
|
1860
1863
|
return D.current(S, C, M);
|
|
@@ -1877,17 +1880,17 @@ function no(e) {
|
|
|
1877
1880
|
};
|
|
1878
1881
|
if (!v.floating)
|
|
1879
1882
|
return R;
|
|
1880
|
-
const w =
|
|
1883
|
+
const w = Dt(v.floating, m.x), L = Dt(v.floating, m.y);
|
|
1881
1884
|
return l ? {
|
|
1882
1885
|
...R,
|
|
1883
|
-
transform: "translate(" + w + "px, " +
|
|
1884
|
-
...
|
|
1886
|
+
transform: "translate(" + w + "px, " + L + "px)",
|
|
1887
|
+
...gn(v.floating) >= 1.5 && {
|
|
1885
1888
|
willChange: "transform"
|
|
1886
1889
|
}
|
|
1887
1890
|
} : {
|
|
1888
1891
|
position: n,
|
|
1889
1892
|
left: w,
|
|
1890
|
-
top:
|
|
1893
|
+
top: L
|
|
1891
1894
|
};
|
|
1892
1895
|
}, [n, l, v.floating, m.x, m.y]);
|
|
1893
1896
|
return y.useMemo(() => ({
|
|
@@ -1902,29 +1905,29 @@ function no(e) {
|
|
|
1902
1905
|
* tabbable 6.2.0
|
|
1903
1906
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1904
1907
|
*/
|
|
1905
|
-
var
|
|
1906
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
1908
|
+
var mo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ut = /* @__PURE__ */ mo.join(","), pn = typeof Element > "u", De = pn ? function() {
|
|
1909
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !pn && Element.prototype.getRootNode ? function(e) {
|
|
1907
1910
|
var t;
|
|
1908
1911
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1909
1912
|
} : function(e) {
|
|
1910
1913
|
return e == null ? void 0 : e.ownerDocument;
|
|
1911
|
-
},
|
|
1914
|
+
}, Xe = function e(t, n) {
|
|
1912
1915
|
var r;
|
|
1913
1916
|
n === void 0 && (n = !0);
|
|
1914
1917
|
var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), i = o === "" || o === "true", s = i || n && t && e(t.parentNode);
|
|
1915
1918
|
return s;
|
|
1916
|
-
},
|
|
1919
|
+
}, go = function(t) {
|
|
1917
1920
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
1918
1921
|
return r === "" || r === "true";
|
|
1919
|
-
},
|
|
1920
|
-
if (
|
|
1922
|
+
}, po = function(t, n, r) {
|
|
1923
|
+
if (Xe(t))
|
|
1921
1924
|
return [];
|
|
1922
|
-
var o = Array.prototype.slice.apply(t.querySelectorAll(
|
|
1923
|
-
return n &&
|
|
1924
|
-
},
|
|
1925
|
+
var o = Array.prototype.slice.apply(t.querySelectorAll(ut));
|
|
1926
|
+
return n && De.call(t, ut) && o.unshift(t), o = o.filter(r), o;
|
|
1927
|
+
}, ho = function e(t, n, r) {
|
|
1925
1928
|
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1926
1929
|
var s = i.shift();
|
|
1927
|
-
if (!
|
|
1930
|
+
if (!Xe(s, !1))
|
|
1928
1931
|
if (s.tagName === "SLOT") {
|
|
1929
1932
|
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, r);
|
|
1930
1933
|
r.flatten ? o.push.apply(o, c) : o.push({
|
|
@@ -1932,10 +1935,10 @@ var ro = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1932
1935
|
candidates: c
|
|
1933
1936
|
});
|
|
1934
1937
|
} else {
|
|
1935
|
-
var m =
|
|
1938
|
+
var m = De.call(s, ut);
|
|
1936
1939
|
m && r.filter(s) && (n || !t.includes(s)) && o.push(s);
|
|
1937
1940
|
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
1938
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !
|
|
1941
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !Xe(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
|
|
1939
1942
|
if (d && f) {
|
|
1940
1943
|
var u = e(d === !0 ? s.children : d.children, !0, r);
|
|
1941
1944
|
r.flatten ? o.push.apply(o, u) : o.push({
|
|
@@ -1947,34 +1950,34 @@ var ro = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1947
1950
|
}
|
|
1948
1951
|
}
|
|
1949
1952
|
return o;
|
|
1950
|
-
},
|
|
1953
|
+
}, hn = function(t) {
|
|
1951
1954
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
1952
|
-
},
|
|
1955
|
+
}, bn = function(t) {
|
|
1953
1956
|
if (!t)
|
|
1954
1957
|
throw new Error("No node provided");
|
|
1955
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
1956
|
-
},
|
|
1957
|
-
var r =
|
|
1958
|
-
return r < 0 && n && !
|
|
1959
|
-
},
|
|
1958
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || go(t)) && !hn(t) ? 0 : t.tabIndex;
|
|
1959
|
+
}, bo = function(t, n) {
|
|
1960
|
+
var r = bn(t);
|
|
1961
|
+
return r < 0 && n && !hn(t) ? 0 : r;
|
|
1962
|
+
}, yo = function(t, n) {
|
|
1960
1963
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
1961
|
-
},
|
|
1964
|
+
}, yn = function(t) {
|
|
1962
1965
|
return t.tagName === "INPUT";
|
|
1963
|
-
},
|
|
1964
|
-
return
|
|
1965
|
-
},
|
|
1966
|
+
}, vo = function(t) {
|
|
1967
|
+
return yn(t) && t.type === "hidden";
|
|
1968
|
+
}, xo = function(t) {
|
|
1966
1969
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
1967
1970
|
return r.tagName === "SUMMARY";
|
|
1968
1971
|
});
|
|
1969
1972
|
return n;
|
|
1970
|
-
},
|
|
1973
|
+
}, wo = function(t, n) {
|
|
1971
1974
|
for (var r = 0; r < t.length; r++)
|
|
1972
1975
|
if (t[r].checked && t[r].form === n)
|
|
1973
1976
|
return t[r];
|
|
1974
|
-
},
|
|
1977
|
+
}, $o = function(t) {
|
|
1975
1978
|
if (!t.name)
|
|
1976
1979
|
return !0;
|
|
1977
|
-
var n = t.form ||
|
|
1980
|
+
var n = t.form || Ke(t), r = function(l) {
|
|
1978
1981
|
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
1979
1982
|
}, o;
|
|
1980
1983
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -1985,78 +1988,78 @@ var ro = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1985
1988
|
} catch (s) {
|
|
1986
1989
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
1987
1990
|
}
|
|
1988
|
-
var i =
|
|
1991
|
+
var i = wo(o, t.form);
|
|
1989
1992
|
return !i || i === t;
|
|
1990
|
-
},
|
|
1991
|
-
return
|
|
1992
|
-
},
|
|
1993
|
-
return
|
|
1994
|
-
},
|
|
1995
|
-
var n, r = t &&
|
|
1993
|
+
}, So = function(t) {
|
|
1994
|
+
return yn(t) && t.type === "radio";
|
|
1995
|
+
}, Ro = function(t) {
|
|
1996
|
+
return So(t) && !$o(t);
|
|
1997
|
+
}, Eo = function(t) {
|
|
1998
|
+
var n, r = t && Ke(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
1996
1999
|
if (r && r !== t) {
|
|
1997
2000
|
var s, l, a;
|
|
1998
2001
|
for (i = !!((s = o) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(o) || t != null && (a = t.ownerDocument) !== null && a !== void 0 && a.contains(t)); !i && o; ) {
|
|
1999
2002
|
var c, m, d;
|
|
2000
|
-
r =
|
|
2003
|
+
r = Ke(o), o = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((m = o) !== null && m !== void 0 && (d = m.ownerDocument) !== null && d !== void 0 && d.contains(o));
|
|
2001
2004
|
}
|
|
2002
2005
|
}
|
|
2003
2006
|
return i;
|
|
2004
|
-
},
|
|
2007
|
+
}, Ft = function(t) {
|
|
2005
2008
|
var n = t.getBoundingClientRect(), r = n.width, o = n.height;
|
|
2006
2009
|
return r === 0 && o === 0;
|
|
2007
|
-
},
|
|
2010
|
+
}, Co = function(t, n) {
|
|
2008
2011
|
var r = n.displayCheck, o = n.getShadowRoot;
|
|
2009
2012
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2010
2013
|
return !0;
|
|
2011
|
-
var i =
|
|
2012
|
-
if (
|
|
2014
|
+
var i = De.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
|
|
2015
|
+
if (De.call(s, "details:not([open]) *"))
|
|
2013
2016
|
return !0;
|
|
2014
2017
|
if (!r || r === "full" || r === "legacy-full") {
|
|
2015
2018
|
if (typeof o == "function") {
|
|
2016
2019
|
for (var l = t; t; ) {
|
|
2017
|
-
var a = t.parentElement, c =
|
|
2020
|
+
var a = t.parentElement, c = Ke(t);
|
|
2018
2021
|
if (a && !a.shadowRoot && o(a) === !0)
|
|
2019
|
-
return
|
|
2022
|
+
return Ft(t);
|
|
2020
2023
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2021
2024
|
}
|
|
2022
2025
|
t = l;
|
|
2023
2026
|
}
|
|
2024
|
-
if (
|
|
2027
|
+
if (Eo(t))
|
|
2025
2028
|
return !t.getClientRects().length;
|
|
2026
2029
|
if (r !== "legacy-full")
|
|
2027
2030
|
return !0;
|
|
2028
2031
|
} else if (r === "non-zero-area")
|
|
2029
|
-
return
|
|
2032
|
+
return Ft(t);
|
|
2030
2033
|
return !1;
|
|
2031
|
-
},
|
|
2034
|
+
}, ko = function(t) {
|
|
2032
2035
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2033
2036
|
for (var n = t.parentElement; n; ) {
|
|
2034
2037
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
2035
2038
|
for (var r = 0; r < n.children.length; r++) {
|
|
2036
2039
|
var o = n.children.item(r);
|
|
2037
2040
|
if (o.tagName === "LEGEND")
|
|
2038
|
-
return
|
|
2041
|
+
return De.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
|
|
2039
2042
|
}
|
|
2040
2043
|
return !0;
|
|
2041
2044
|
}
|
|
2042
2045
|
n = n.parentElement;
|
|
2043
2046
|
}
|
|
2044
2047
|
return !1;
|
|
2045
|
-
},
|
|
2048
|
+
}, To = function(t, n) {
|
|
2046
2049
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2047
2050
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2048
2051
|
// note related to `candidateSelectors`)
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
},
|
|
2052
|
-
return !(
|
|
2053
|
-
},
|
|
2052
|
+
Xe(n) || vo(n) || Co(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2053
|
+
xo(n) || ko(n));
|
|
2054
|
+
}, Lt = function(t, n) {
|
|
2055
|
+
return !(Ro(n) || bn(n) < 0 || !To(t, n));
|
|
2056
|
+
}, Io = function(t) {
|
|
2054
2057
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2055
2058
|
return !!(isNaN(n) || n >= 0);
|
|
2056
|
-
},
|
|
2059
|
+
}, Po = function e(t) {
|
|
2057
2060
|
var n = [], r = [];
|
|
2058
2061
|
return t.forEach(function(o, i) {
|
|
2059
|
-
var s = !!o.scopeParent, l = s ? o.scopeParent : o, a =
|
|
2062
|
+
var s = !!o.scopeParent, l = s ? o.scopeParent : o, a = bo(l, s), c = s ? e(o.candidates) : l;
|
|
2060
2063
|
a === 0 ? s ? n.push.apply(n, c) : n.push(l) : r.push({
|
|
2061
2064
|
documentOrder: i,
|
|
2062
2065
|
tabIndex: a,
|
|
@@ -2064,26 +2067,26 @@ var ro = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
2064
2067
|
isScope: s,
|
|
2065
2068
|
content: c
|
|
2066
2069
|
});
|
|
2067
|
-
}), r.sort(
|
|
2070
|
+
}), r.sort(yo).reduce(function(o, i) {
|
|
2068
2071
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
2069
2072
|
}, []).concat(n);
|
|
2070
|
-
},
|
|
2073
|
+
}, vn = function(t, n) {
|
|
2071
2074
|
n = n || {};
|
|
2072
2075
|
var r;
|
|
2073
|
-
return n.getShadowRoot ? r =
|
|
2074
|
-
filter:
|
|
2076
|
+
return n.getShadowRoot ? r = ho([t], n.includeContainer, {
|
|
2077
|
+
filter: Lt.bind(null, n),
|
|
2075
2078
|
flatten: !1,
|
|
2076
2079
|
getShadowRoot: n.getShadowRoot,
|
|
2077
|
-
shadowRootFilter:
|
|
2078
|
-
}) : r =
|
|
2080
|
+
shadowRootFilter: Io
|
|
2081
|
+
}) : r = po(t, n.includeContainer, Lt.bind(null, n)), Po(r);
|
|
2079
2082
|
};
|
|
2080
|
-
const
|
|
2081
|
-
function
|
|
2083
|
+
const Ao = y[/* @__PURE__ */ "useInsertionEffect".toString()], Bo = Ao || ((e) => e());
|
|
2084
|
+
function Re(e) {
|
|
2082
2085
|
const t = y.useRef(() => {
|
|
2083
2086
|
if (process.env.NODE_ENV !== "production")
|
|
2084
2087
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2085
2088
|
});
|
|
2086
|
-
return
|
|
2089
|
+
return Bo(() => {
|
|
2087
2090
|
t.current = e;
|
|
2088
2091
|
}), y.useCallback(function() {
|
|
2089
2092
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
@@ -2091,29 +2094,29 @@ function Se(e) {
|
|
|
2091
2094
|
return t.current == null ? void 0 : t.current(...r);
|
|
2092
2095
|
}, []);
|
|
2093
2096
|
}
|
|
2094
|
-
var
|
|
2095
|
-
function
|
|
2096
|
-
return
|
|
2097
|
+
var J = typeof document < "u" ? qt : Zt;
|
|
2098
|
+
function dt() {
|
|
2099
|
+
return dt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2097
2100
|
for (var t = 1; t < arguments.length; t++) {
|
|
2098
2101
|
var n = arguments[t];
|
|
2099
2102
|
for (var r in n)
|
|
2100
2103
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2101
2104
|
}
|
|
2102
2105
|
return e;
|
|
2103
|
-
},
|
|
2104
|
-
}
|
|
2105
|
-
let
|
|
2106
|
-
const
|
|
2107
|
-
function
|
|
2108
|
-
const [e, t] = y.useState(() =>
|
|
2109
|
-
return
|
|
2110
|
-
e == null && t(
|
|
2106
|
+
}, dt.apply(this, arguments);
|
|
2107
|
+
}
|
|
2108
|
+
let rt = !1, Oo = 0;
|
|
2109
|
+
const Nt = () => "floating-ui-" + Oo++;
|
|
2110
|
+
function Do() {
|
|
2111
|
+
const [e, t] = y.useState(() => rt ? Nt() : void 0);
|
|
2112
|
+
return J(() => {
|
|
2113
|
+
e == null && t(Nt());
|
|
2111
2114
|
}, []), y.useEffect(() => {
|
|
2112
|
-
|
|
2115
|
+
rt || (rt = !0);
|
|
2113
2116
|
}, []), e;
|
|
2114
2117
|
}
|
|
2115
|
-
const
|
|
2116
|
-
function
|
|
2118
|
+
const Mo = y[/* @__PURE__ */ "useId".toString()], yt = Mo || Do;
|
|
2119
|
+
function Fo() {
|
|
2117
2120
|
const e = /* @__PURE__ */ new Map();
|
|
2118
2121
|
return {
|
|
2119
2122
|
emit(t, n) {
|
|
@@ -2129,24 +2132,24 @@ function ko() {
|
|
|
2129
2132
|
}
|
|
2130
2133
|
};
|
|
2131
2134
|
}
|
|
2132
|
-
const
|
|
2135
|
+
const Lo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null), vt = () => {
|
|
2133
2136
|
var e;
|
|
2134
|
-
return ((e = y.useContext(
|
|
2135
|
-
},
|
|
2136
|
-
function
|
|
2137
|
+
return ((e = y.useContext(Lo)) == null ? void 0 : e.id) || null;
|
|
2138
|
+
}, xt = () => y.useContext(No);
|
|
2139
|
+
function Qe(e) {
|
|
2137
2140
|
return "data-floating-ui-" + e;
|
|
2138
2141
|
}
|
|
2139
|
-
function
|
|
2140
|
-
const t =
|
|
2141
|
-
return
|
|
2142
|
+
function Ce(e) {
|
|
2143
|
+
const t = Cn(e);
|
|
2144
|
+
return J(() => {
|
|
2142
2145
|
t.current = e;
|
|
2143
2146
|
}), t;
|
|
2144
2147
|
}
|
|
2145
|
-
const
|
|
2146
|
-
function
|
|
2147
|
-
return n && !
|
|
2148
|
+
const Wt = /* @__PURE__ */ Qe("safe-polygon");
|
|
2149
|
+
function ot(e, t, n) {
|
|
2150
|
+
return n && !ze(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2148
2151
|
}
|
|
2149
|
-
function
|
|
2152
|
+
function Wo(e, t) {
|
|
2150
2153
|
t === void 0 && (t = {});
|
|
2151
2154
|
const {
|
|
2152
2155
|
open: n,
|
|
@@ -2165,7 +2168,7 @@ function Po(e, t) {
|
|
|
2165
2168
|
mouseOnly: f = !1,
|
|
2166
2169
|
restMs: u = 0,
|
|
2167
2170
|
move: g = !0
|
|
2168
|
-
} = t, p =
|
|
2171
|
+
} = t, p = xt(), $ = vt(), h = Ce(d), x = Ce(m), P = y.useRef(), S = y.useRef(), C = y.useRef(), I = y.useRef(), A = y.useRef(!0), k = y.useRef(!1), O = y.useRef(() => {
|
|
2169
2172
|
}), D = y.useCallback(() => {
|
|
2170
2173
|
var b;
|
|
2171
2174
|
const v = (b = o.current.openEvent) == null ? void 0 : b.type;
|
|
@@ -2189,21 +2192,21 @@ function Po(e, t) {
|
|
|
2189
2192
|
function b(T) {
|
|
2190
2193
|
D() && r(!1, T, "hover");
|
|
2191
2194
|
}
|
|
2192
|
-
const v =
|
|
2195
|
+
const v = ue(l).documentElement;
|
|
2193
2196
|
return v.addEventListener("mouseleave", b), () => {
|
|
2194
2197
|
v.removeEventListener("mouseleave", b);
|
|
2195
2198
|
};
|
|
2196
2199
|
}, [l, n, r, c, h, D]);
|
|
2197
|
-
const
|
|
2200
|
+
const F = y.useCallback(function(b, v, T) {
|
|
2198
2201
|
v === void 0 && (v = !0), T === void 0 && (T = "hover");
|
|
2199
|
-
const R =
|
|
2202
|
+
const R = ot(x.current, "close", P.current);
|
|
2200
2203
|
R && !C.current ? (clearTimeout(S.current), S.current = setTimeout(() => r(!1, b, T), R)) : v && (clearTimeout(S.current), r(!1, b, T));
|
|
2201
2204
|
}, [x, r]), M = y.useCallback(() => {
|
|
2202
2205
|
O.current(), C.current = void 0;
|
|
2203
2206
|
}, []), B = y.useCallback(() => {
|
|
2204
2207
|
if (k.current) {
|
|
2205
|
-
const b =
|
|
2206
|
-
b.style.pointerEvents = "", b.removeAttribute(
|
|
2208
|
+
const b = ue(a.floating.current).body;
|
|
2209
|
+
b.style.pointerEvents = "", b.removeAttribute(Wt), k.current = !1;
|
|
2207
2210
|
}
|
|
2208
2211
|
}, [a]);
|
|
2209
2212
|
return y.useEffect(() => {
|
|
@@ -2213,18 +2216,18 @@ function Po(e, t) {
|
|
|
2213
2216
|
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
2214
2217
|
}
|
|
2215
2218
|
function v(w) {
|
|
2216
|
-
if (clearTimeout(S.current), A.current = !1, f && !
|
|
2219
|
+
if (clearTimeout(S.current), A.current = !1, f && !ze(P.current) || u > 0 && ot(x.current, "open") === 0)
|
|
2217
2220
|
return;
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2221
|
+
const L = ot(x.current, "open", P.current);
|
|
2222
|
+
L ? S.current = setTimeout(() => {
|
|
2220
2223
|
r(!0, w, "hover");
|
|
2221
|
-
},
|
|
2224
|
+
}, L) : r(!0, w, "hover");
|
|
2222
2225
|
}
|
|
2223
2226
|
function T(w) {
|
|
2224
2227
|
if (b())
|
|
2225
2228
|
return;
|
|
2226
2229
|
O.current();
|
|
2227
|
-
const
|
|
2230
|
+
const L = ue(l);
|
|
2228
2231
|
if (clearTimeout(I.current), h.current) {
|
|
2229
2232
|
n || clearTimeout(S.current), C.current = h.current({
|
|
2230
2233
|
...e,
|
|
@@ -2232,16 +2235,16 @@ function Po(e, t) {
|
|
|
2232
2235
|
x: w.clientX,
|
|
2233
2236
|
y: w.clientY,
|
|
2234
2237
|
onClose() {
|
|
2235
|
-
B(), M(),
|
|
2238
|
+
B(), M(), F(w, !0, "safe-polygon");
|
|
2236
2239
|
}
|
|
2237
2240
|
});
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
+
const G = C.current;
|
|
2242
|
+
L.addEventListener("mousemove", G), O.current = () => {
|
|
2243
|
+
L.removeEventListener("mousemove", G);
|
|
2241
2244
|
};
|
|
2242
2245
|
return;
|
|
2243
2246
|
}
|
|
2244
|
-
(P.current === "touch" ? !
|
|
2247
|
+
(P.current === "touch" ? !me(l, w.relatedTarget) : !0) && F(w);
|
|
2245
2248
|
}
|
|
2246
2249
|
function R(w) {
|
|
2247
2250
|
b() || h.current == null || h.current({
|
|
@@ -2250,7 +2253,7 @@ function Po(e, t) {
|
|
|
2250
2253
|
x: w.clientX,
|
|
2251
2254
|
y: w.clientY,
|
|
2252
2255
|
onClose() {
|
|
2253
|
-
B(), M(),
|
|
2256
|
+
B(), M(), F(w);
|
|
2254
2257
|
}
|
|
2255
2258
|
})(w);
|
|
2256
2259
|
}
|
|
@@ -2262,19 +2265,19 @@ function Po(e, t) {
|
|
|
2262
2265
|
n && w.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && w.removeEventListener("mousemove", v), w.removeEventListener("mouseenter", v), w.removeEventListener("mouseleave", T);
|
|
2263
2266
|
};
|
|
2264
2267
|
}
|
|
2265
|
-
}, [s, l, c, e, f, u, g,
|
|
2268
|
+
}, [s, l, c, e, f, u, g, F, M, B, r, n, p, x, h, o]), J(() => {
|
|
2266
2269
|
var b;
|
|
2267
2270
|
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && D()) {
|
|
2268
|
-
const T =
|
|
2269
|
-
if (T.setAttribute(
|
|
2271
|
+
const T = ue(l).body;
|
|
2272
|
+
if (T.setAttribute(Wt, ""), T.style.pointerEvents = "none", k.current = !0, W(s) && l) {
|
|
2270
2273
|
var v;
|
|
2271
|
-
const R = s, w = p == null || (v = p.nodesRef.current.find((
|
|
2274
|
+
const R = s, w = p == null || (v = p.nodesRef.current.find((L) => L.id === $)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2272
2275
|
return w && (w.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
2273
2276
|
R.style.pointerEvents = "", l.style.pointerEvents = "";
|
|
2274
2277
|
};
|
|
2275
2278
|
}
|
|
2276
2279
|
}
|
|
2277
|
-
}, [c, n, $, l, s, p, h, D]),
|
|
2280
|
+
}, [c, n, $, l, s, p, h, D]), J(() => {
|
|
2278
2281
|
n || (P.current = void 0, M(), B());
|
|
2279
2282
|
}, [n, M, B]), y.useEffect(() => () => {
|
|
2280
2283
|
M(), clearTimeout(S.current), clearTimeout(I.current), B();
|
|
@@ -2299,13 +2302,13 @@ function Po(e, t) {
|
|
|
2299
2302
|
clearTimeout(S.current);
|
|
2300
2303
|
},
|
|
2301
2304
|
onMouseLeave(v) {
|
|
2302
|
-
|
|
2305
|
+
F(v.nativeEvent, !1);
|
|
2303
2306
|
}
|
|
2304
2307
|
}
|
|
2305
2308
|
};
|
|
2306
|
-
}, [c, u, n, r,
|
|
2309
|
+
}, [c, u, n, r, F]);
|
|
2307
2310
|
}
|
|
2308
|
-
function
|
|
2311
|
+
function We(e, t) {
|
|
2309
2312
|
let n = e.filter((o) => {
|
|
2310
2313
|
var i;
|
|
2311
2314
|
return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
|
|
@@ -2320,7 +2323,7 @@ function Le(e, t) {
|
|
|
2320
2323
|
}), n = n.concat(r);
|
|
2321
2324
|
return n;
|
|
2322
2325
|
}
|
|
2323
|
-
const
|
|
2326
|
+
const xn = () => ({
|
|
2324
2327
|
getShadowRoot: !0,
|
|
2325
2328
|
displayCheck: (
|
|
2326
2329
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2329,34 +2332,34 @@ const pn = () => ({
|
|
|
2329
2332
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2330
2333
|
)
|
|
2331
2334
|
});
|
|
2332
|
-
function
|
|
2333
|
-
const n =
|
|
2335
|
+
function wn(e, t) {
|
|
2336
|
+
const n = vn(e, xn());
|
|
2334
2337
|
t === "prev" && n.reverse();
|
|
2335
|
-
const r = n.indexOf(
|
|
2338
|
+
const r = n.indexOf(Cr(ue(e)));
|
|
2336
2339
|
return n.slice(r + 1)[0];
|
|
2337
2340
|
}
|
|
2338
|
-
function
|
|
2339
|
-
return
|
|
2341
|
+
function zo() {
|
|
2342
|
+
return wn(document.body, "next");
|
|
2340
2343
|
}
|
|
2341
|
-
function
|
|
2342
|
-
return
|
|
2344
|
+
function jo() {
|
|
2345
|
+
return wn(document.body, "prev");
|
|
2343
2346
|
}
|
|
2344
|
-
function
|
|
2347
|
+
function it(e, t) {
|
|
2345
2348
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
2346
|
-
return !r || !
|
|
2349
|
+
return !r || !me(n, r);
|
|
2347
2350
|
}
|
|
2348
|
-
function
|
|
2349
|
-
|
|
2351
|
+
function Ho(e) {
|
|
2352
|
+
vn(e, xn()).forEach((n) => {
|
|
2350
2353
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2351
2354
|
});
|
|
2352
2355
|
}
|
|
2353
|
-
function
|
|
2356
|
+
function Vo(e) {
|
|
2354
2357
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
2355
2358
|
const r = n.dataset.tabindex;
|
|
2356
2359
|
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
2357
2360
|
});
|
|
2358
2361
|
}
|
|
2359
|
-
const
|
|
2362
|
+
const $n = {
|
|
2360
2363
|
border: 0,
|
|
2361
2364
|
clip: "rect(0 0 0 0)",
|
|
2362
2365
|
height: "1px",
|
|
@@ -2369,14 +2372,14 @@ const bn = {
|
|
|
2369
2372
|
top: 0,
|
|
2370
2373
|
left: 0
|
|
2371
2374
|
};
|
|
2372
|
-
let
|
|
2373
|
-
function
|
|
2374
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2375
|
+
let _o;
|
|
2376
|
+
function zt(e) {
|
|
2377
|
+
e.key === "Tab" && (e.target, clearTimeout(_o));
|
|
2375
2378
|
}
|
|
2376
|
-
const
|
|
2379
|
+
const jt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2377
2380
|
const [r, o] = y.useState();
|
|
2378
|
-
|
|
2379
|
-
document.removeEventListener("keydown",
|
|
2381
|
+
J(() => (kr() && o("button"), document.addEventListener("keydown", zt), () => {
|
|
2382
|
+
document.removeEventListener("keydown", zt);
|
|
2380
2383
|
}), []);
|
|
2381
2384
|
const i = {
|
|
2382
2385
|
ref: n,
|
|
@@ -2384,30 +2387,30 @@ const Lt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2384
2387
|
// Role is only for VoiceOver
|
|
2385
2388
|
role: r,
|
|
2386
2389
|
"aria-hidden": r ? void 0 : !0,
|
|
2387
|
-
[
|
|
2388
|
-
style:
|
|
2390
|
+
[Qe("focus-guard")]: "",
|
|
2391
|
+
style: $n
|
|
2389
2392
|
};
|
|
2390
|
-
return /* @__PURE__ */ y.createElement("span",
|
|
2391
|
-
}),
|
|
2392
|
-
function
|
|
2393
|
+
return /* @__PURE__ */ y.createElement("span", dt({}, t, i));
|
|
2394
|
+
}), Sn = /* @__PURE__ */ y.createContext(null), Ht = /* @__PURE__ */ Qe("portal");
|
|
2395
|
+
function Yo(e) {
|
|
2393
2396
|
let {
|
|
2394
2397
|
id: t,
|
|
2395
2398
|
root: n
|
|
2396
2399
|
} = e === void 0 ? {} : e;
|
|
2397
|
-
const [r, o] = y.useState(null), i =
|
|
2398
|
-
return
|
|
2400
|
+
const [r, o] = y.useState(null), i = yt(), s = Xo(), l = y.useRef(null);
|
|
2401
|
+
return J(() => () => {
|
|
2399
2402
|
r == null || r.remove(), queueMicrotask(() => {
|
|
2400
2403
|
l.current = null;
|
|
2401
2404
|
});
|
|
2402
|
-
}, [r]),
|
|
2405
|
+
}, [r]), J(() => {
|
|
2403
2406
|
if (l.current)
|
|
2404
2407
|
return;
|
|
2405
2408
|
const a = t ? document.getElementById(t) : null;
|
|
2406
2409
|
if (!a)
|
|
2407
2410
|
return;
|
|
2408
2411
|
const c = document.createElement("div");
|
|
2409
|
-
c.id = i, c.setAttribute(
|
|
2410
|
-
}, [t, i]),
|
|
2412
|
+
c.id = i, c.setAttribute(Ht, ""), a.appendChild(c), l.current = c, o(c);
|
|
2413
|
+
}, [t, i]), J(() => {
|
|
2411
2414
|
if (l.current)
|
|
2412
2415
|
return;
|
|
2413
2416
|
let a = n || (s == null ? void 0 : s.portalNode);
|
|
@@ -2415,17 +2418,17 @@ function Lo(e) {
|
|
|
2415
2418
|
let c = null;
|
|
2416
2419
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2417
2420
|
const m = document.createElement("div");
|
|
2418
|
-
m.id = i, m.setAttribute(
|
|
2421
|
+
m.id = i, m.setAttribute(Ht, ""), a = c || a, a.appendChild(m), l.current = m, o(m);
|
|
2419
2422
|
}, [t, n, i, s]), r;
|
|
2420
2423
|
}
|
|
2421
|
-
function
|
|
2424
|
+
function Ko(e) {
|
|
2422
2425
|
let {
|
|
2423
2426
|
children: t,
|
|
2424
2427
|
id: n,
|
|
2425
2428
|
root: r = null,
|
|
2426
2429
|
preserveTabOrder: o = !0
|
|
2427
2430
|
} = e;
|
|
2428
|
-
const i =
|
|
2431
|
+
const i = Yo({
|
|
2429
2432
|
id: n,
|
|
2430
2433
|
root: r
|
|
2431
2434
|
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), m = y.useRef(null), d = y.useRef(null), f = (
|
|
@@ -2439,12 +2442,12 @@ function Fo(e) {
|
|
|
2439
2442
|
if (!i || !o || s != null && s.modal)
|
|
2440
2443
|
return;
|
|
2441
2444
|
function u(g) {
|
|
2442
|
-
i &&
|
|
2445
|
+
i && it(g) && (g.type === "focusin" ? Vo : Ho)(i);
|
|
2443
2446
|
}
|
|
2444
2447
|
return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
|
|
2445
2448
|
i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
|
|
2446
2449
|
};
|
|
2447
|
-
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(
|
|
2450
|
+
}, [i, o, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(Sn.Provider, {
|
|
2448
2451
|
value: y.useMemo(() => ({
|
|
2449
2452
|
preserveTabOrder: o,
|
|
2450
2453
|
beforeOutsideRef: a,
|
|
@@ -2454,43 +2457,43 @@ function Fo(e) {
|
|
|
2454
2457
|
portalNode: i,
|
|
2455
2458
|
setFocusManagerState: l
|
|
2456
2459
|
}), [o, i])
|
|
2457
|
-
}, f && i && /* @__PURE__ */ y.createElement(
|
|
2460
|
+
}, f && i && /* @__PURE__ */ y.createElement(jt, {
|
|
2458
2461
|
"data-type": "outside",
|
|
2459
2462
|
ref: a,
|
|
2460
2463
|
onFocus: (u) => {
|
|
2461
|
-
if (
|
|
2464
|
+
if (it(u, i)) {
|
|
2462
2465
|
var g;
|
|
2463
2466
|
(g = m.current) == null || g.focus();
|
|
2464
2467
|
} else {
|
|
2465
|
-
const p =
|
|
2468
|
+
const p = jo() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2466
2469
|
p == null || p.focus();
|
|
2467
2470
|
}
|
|
2468
2471
|
}
|
|
2469
2472
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2470
2473
|
"aria-owns": i.id,
|
|
2471
|
-
style:
|
|
2472
|
-
}), i && /* @__PURE__ */
|
|
2474
|
+
style: $n
|
|
2475
|
+
}), i && /* @__PURE__ */ Bn(t, i), f && i && /* @__PURE__ */ y.createElement(jt, {
|
|
2473
2476
|
"data-type": "outside",
|
|
2474
2477
|
ref: c,
|
|
2475
2478
|
onFocus: (u) => {
|
|
2476
|
-
if (
|
|
2479
|
+
if (it(u, i)) {
|
|
2477
2480
|
var g;
|
|
2478
2481
|
(g = d.current) == null || g.focus();
|
|
2479
2482
|
} else {
|
|
2480
|
-
const p =
|
|
2483
|
+
const p = zo() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2481
2484
|
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, u.nativeEvent));
|
|
2482
2485
|
}
|
|
2483
2486
|
}
|
|
2484
2487
|
}));
|
|
2485
2488
|
}
|
|
2486
|
-
const
|
|
2487
|
-
function
|
|
2488
|
-
return
|
|
2489
|
+
const Xo = () => y.useContext(Sn);
|
|
2490
|
+
function Vt(e) {
|
|
2491
|
+
return q(e.target) && e.target.tagName === "BUTTON";
|
|
2489
2492
|
}
|
|
2490
|
-
function
|
|
2491
|
-
return
|
|
2493
|
+
function _t(e) {
|
|
2494
|
+
return Ar(e);
|
|
2492
2495
|
}
|
|
2493
|
-
function
|
|
2496
|
+
function Go(e, t) {
|
|
2494
2497
|
t === void 0 && (t = {});
|
|
2495
2498
|
const {
|
|
2496
2499
|
open: n,
|
|
@@ -2512,40 +2515,40 @@ function Wo(e, t) {
|
|
|
2512
2515
|
d.current = u.pointerType;
|
|
2513
2516
|
},
|
|
2514
2517
|
onMouseDown(u) {
|
|
2515
|
-
u.button === 0 && (
|
|
2518
|
+
u.button === 0 && (ze(d.current, !0) && c || l !== "click" && (n && a && (!o.current.openEvent || o.current.openEvent.type === "mousedown") ? r(!1, u.nativeEvent, "click") : (u.preventDefault(), r(!0, u.nativeEvent, "click"))));
|
|
2516
2519
|
},
|
|
2517
2520
|
onClick(u) {
|
|
2518
2521
|
if (l === "mousedown" && d.current) {
|
|
2519
2522
|
d.current = void 0;
|
|
2520
2523
|
return;
|
|
2521
2524
|
}
|
|
2522
|
-
|
|
2525
|
+
ze(d.current, !0) && c || (n && a && (!o.current.openEvent || o.current.openEvent.type === "click") ? r(!1, u.nativeEvent, "click") : r(!0, u.nativeEvent, "click"));
|
|
2523
2526
|
},
|
|
2524
2527
|
onKeyDown(u) {
|
|
2525
|
-
d.current = void 0, !(u.defaultPrevented || !m ||
|
|
2528
|
+
d.current = void 0, !(u.defaultPrevented || !m || Vt(u)) && (u.key === " " && !_t(i) && (u.preventDefault(), f.current = !0), u.key === "Enter" && r(!(n && a), u.nativeEvent, "click"));
|
|
2526
2529
|
},
|
|
2527
2530
|
onKeyUp(u) {
|
|
2528
|
-
u.defaultPrevented || !m ||
|
|
2531
|
+
u.defaultPrevented || !m || Vt(u) || _t(i) || u.key === " " && f.current && (f.current = !1, r(!(n && a), u.nativeEvent, "click"));
|
|
2529
2532
|
}
|
|
2530
2533
|
}
|
|
2531
2534
|
} : {}, [s, o, l, c, m, i, a, n, r]);
|
|
2532
2535
|
}
|
|
2533
|
-
const
|
|
2536
|
+
const Uo = {
|
|
2534
2537
|
pointerdown: "onPointerDown",
|
|
2535
2538
|
mousedown: "onMouseDown",
|
|
2536
2539
|
click: "onClick"
|
|
2537
|
-
},
|
|
2540
|
+
}, qo = {
|
|
2538
2541
|
pointerdown: "onPointerDownCapture",
|
|
2539
2542
|
mousedown: "onMouseDownCapture",
|
|
2540
2543
|
click: "onClickCapture"
|
|
2541
|
-
},
|
|
2544
|
+
}, Yt = (e) => {
|
|
2542
2545
|
var t, n;
|
|
2543
2546
|
return {
|
|
2544
2547
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
2545
2548
|
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2546
2549
|
};
|
|
2547
2550
|
};
|
|
2548
|
-
function
|
|
2551
|
+
function Zo(e, t) {
|
|
2549
2552
|
t === void 0 && (t = {});
|
|
2550
2553
|
const {
|
|
2551
2554
|
open: n,
|
|
@@ -2567,86 +2570,86 @@ function Ho(e, t) {
|
|
|
2567
2570
|
ancestorScroll: p = !1,
|
|
2568
2571
|
bubbles: $,
|
|
2569
2572
|
capture: h
|
|
2570
|
-
} = t, x =
|
|
2573
|
+
} = t, x = xt(), P = Re(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, C = y.useRef(!1), I = y.useRef(!1), {
|
|
2571
2574
|
escapeKey: A,
|
|
2572
2575
|
outsidePress: k
|
|
2573
|
-
} =
|
|
2576
|
+
} = Yt($), {
|
|
2574
2577
|
escapeKey: O,
|
|
2575
2578
|
outsidePress: D
|
|
2576
|
-
} =
|
|
2579
|
+
} = Yt(h), F = Re((v) => {
|
|
2577
2580
|
if (!n || !c || !m || v.key !== "Escape")
|
|
2578
2581
|
return;
|
|
2579
|
-
const T = x ?
|
|
2582
|
+
const T = x ? We(x.nodesRef.current, o) : [];
|
|
2580
2583
|
if (!A && (v.stopPropagation(), T.length > 0)) {
|
|
2581
2584
|
let R = !0;
|
|
2582
2585
|
if (T.forEach((w) => {
|
|
2583
|
-
var
|
|
2584
|
-
if ((
|
|
2586
|
+
var L;
|
|
2587
|
+
if ((L = w.context) != null && L.open && !w.context.dataRef.current.__escapeKeyBubbles) {
|
|
2585
2588
|
R = !1;
|
|
2586
2589
|
return;
|
|
2587
2590
|
}
|
|
2588
2591
|
}), !R)
|
|
2589
2592
|
return;
|
|
2590
2593
|
}
|
|
2591
|
-
r(!1,
|
|
2592
|
-
}), M =
|
|
2594
|
+
r(!1, Tr(v) ? v.nativeEvent : v, "escape-key");
|
|
2595
|
+
}), M = Re((v) => {
|
|
2593
2596
|
var T;
|
|
2594
2597
|
const R = () => {
|
|
2595
2598
|
var w;
|
|
2596
|
-
|
|
2599
|
+
F(v), (w = Se(v)) == null || w.removeEventListener("keydown", R);
|
|
2597
2600
|
};
|
|
2598
|
-
(T =
|
|
2599
|
-
}), B =
|
|
2601
|
+
(T = Se(v)) == null || T.addEventListener("keydown", R);
|
|
2602
|
+
}), B = Re((v) => {
|
|
2600
2603
|
const T = C.current;
|
|
2601
2604
|
C.current = !1;
|
|
2602
2605
|
const R = I.current;
|
|
2603
2606
|
if (I.current = !1, f === "click" && R || T || typeof S == "function" && !S(v))
|
|
2604
2607
|
return;
|
|
2605
|
-
const w =
|
|
2606
|
-
let
|
|
2607
|
-
for (;
|
|
2608
|
-
const
|
|
2609
|
-
if (
|
|
2608
|
+
const w = Se(v), L = "[" + Qe("inert") + "]", K = ue(l).querySelectorAll(L);
|
|
2609
|
+
let G = W(w) ? w : null;
|
|
2610
|
+
for (; G && !Te(G); ) {
|
|
2611
|
+
const H = pe(G);
|
|
2612
|
+
if (Te(H) || !W(H))
|
|
2610
2613
|
break;
|
|
2611
|
-
|
|
2614
|
+
G = H;
|
|
2612
2615
|
}
|
|
2613
|
-
if (
|
|
2614
|
-
!
|
|
2616
|
+
if (K.length && W(w) && !Ir(w) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2617
|
+
!me(w, l) && // If the target root element contains none of the markers, then the
|
|
2615
2618
|
// element was injected after the floating element rendered.
|
|
2616
|
-
Array.from(
|
|
2619
|
+
Array.from(K).every((H) => !me(G, H)))
|
|
2617
2620
|
return;
|
|
2618
|
-
if (
|
|
2619
|
-
const
|
|
2620
|
-
let
|
|
2621
|
-
if (
|
|
2621
|
+
if (q(w) && l) {
|
|
2622
|
+
const H = w.clientWidth > 0 && w.scrollWidth > w.clientWidth, X = w.clientHeight > 0 && w.scrollHeight > w.clientHeight;
|
|
2623
|
+
let se = X && v.offsetX > w.clientWidth;
|
|
2624
|
+
if (X && Z(w).direction === "rtl" && (se = v.offsetX <= w.offsetWidth - w.clientWidth), se || H && v.offsetY > w.clientHeight)
|
|
2622
2625
|
return;
|
|
2623
2626
|
}
|
|
2624
|
-
const
|
|
2625
|
-
var
|
|
2626
|
-
return
|
|
2627
|
+
const ye = x && We(x.nodesRef.current, o).some((H) => {
|
|
2628
|
+
var X;
|
|
2629
|
+
return nt(v, (X = H.context) == null ? void 0 : X.elements.floating);
|
|
2627
2630
|
});
|
|
2628
|
-
if (
|
|
2631
|
+
if (nt(v, l) || nt(v, s) || ye)
|
|
2629
2632
|
return;
|
|
2630
|
-
const
|
|
2631
|
-
if (
|
|
2632
|
-
let
|
|
2633
|
-
if (
|
|
2634
|
-
var
|
|
2635
|
-
if ((
|
|
2636
|
-
|
|
2633
|
+
const ie = x ? We(x.nodesRef.current, o) : [];
|
|
2634
|
+
if (ie.length > 0) {
|
|
2635
|
+
let H = !0;
|
|
2636
|
+
if (ie.forEach((X) => {
|
|
2637
|
+
var se;
|
|
2638
|
+
if ((se = X.context) != null && se.open && !X.context.dataRef.current.__outsidePressBubbles) {
|
|
2639
|
+
H = !1;
|
|
2637
2640
|
return;
|
|
2638
2641
|
}
|
|
2639
|
-
}), !
|
|
2642
|
+
}), !H)
|
|
2640
2643
|
return;
|
|
2641
2644
|
}
|
|
2642
2645
|
r(!1, v, "outside-press");
|
|
2643
|
-
}), b =
|
|
2646
|
+
}), b = Re((v) => {
|
|
2644
2647
|
var T;
|
|
2645
2648
|
const R = () => {
|
|
2646
2649
|
var w;
|
|
2647
|
-
B(v), (w =
|
|
2650
|
+
B(v), (w = Se(v)) == null || w.removeEventListener(f, R);
|
|
2648
2651
|
};
|
|
2649
|
-
(T =
|
|
2652
|
+
(T = Se(v)) == null || T.addEventListener(f, R);
|
|
2650
2653
|
});
|
|
2651
2654
|
return y.useEffect(() => {
|
|
2652
2655
|
if (!n || !c)
|
|
@@ -2655,47 +2658,47 @@ function Ho(e, t) {
|
|
|
2655
2658
|
function v(w) {
|
|
2656
2659
|
r(!1, w, "ancestor-scroll");
|
|
2657
2660
|
}
|
|
2658
|
-
const T =
|
|
2659
|
-
m && T.addEventListener("keydown", O ? M :
|
|
2661
|
+
const T = ue(l);
|
|
2662
|
+
m && T.addEventListener("keydown", O ? M : F, O), S && T.addEventListener(f, D ? b : B, D);
|
|
2660
2663
|
let R = [];
|
|
2661
|
-
return p && (W(s) && (R =
|
|
2662
|
-
var
|
|
2663
|
-
return w !== ((
|
|
2664
|
+
return p && (W(s) && (R = ne(s)), W(l) && (R = R.concat(ne(l))), !W(i) && i && i.contextElement && (R = R.concat(ne(i.contextElement)))), R = R.filter((w) => {
|
|
2665
|
+
var L;
|
|
2666
|
+
return w !== ((L = T.defaultView) == null ? void 0 : L.visualViewport);
|
|
2664
2667
|
}), R.forEach((w) => {
|
|
2665
2668
|
w.addEventListener("scroll", v, {
|
|
2666
2669
|
passive: !0
|
|
2667
2670
|
});
|
|
2668
2671
|
}), () => {
|
|
2669
|
-
m && T.removeEventListener("keydown", O ? M :
|
|
2672
|
+
m && T.removeEventListener("keydown", O ? M : F, O), S && T.removeEventListener(f, D ? b : B, D), R.forEach((w) => {
|
|
2670
2673
|
w.removeEventListener("scroll", v);
|
|
2671
2674
|
});
|
|
2672
2675
|
};
|
|
2673
|
-
}, [a, l, s, i, m, S, f, n, r, p, c, A, k,
|
|
2676
|
+
}, [a, l, s, i, m, S, f, n, r, p, c, A, k, F, O, M, B, D, b]), y.useEffect(() => {
|
|
2674
2677
|
C.current = !1;
|
|
2675
2678
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2676
2679
|
reference: {
|
|
2677
|
-
onKeyDown:
|
|
2678
|
-
[
|
|
2680
|
+
onKeyDown: F,
|
|
2681
|
+
[Uo[g]]: (v) => {
|
|
2679
2682
|
u && r(!1, v.nativeEvent, "reference-press");
|
|
2680
2683
|
}
|
|
2681
2684
|
},
|
|
2682
2685
|
floating: {
|
|
2683
|
-
onKeyDown:
|
|
2686
|
+
onKeyDown: F,
|
|
2684
2687
|
onMouseDown() {
|
|
2685
2688
|
I.current = !0;
|
|
2686
2689
|
},
|
|
2687
2690
|
onMouseUp() {
|
|
2688
2691
|
I.current = !0;
|
|
2689
2692
|
},
|
|
2690
|
-
[
|
|
2693
|
+
[qo[f]]: () => {
|
|
2691
2694
|
C.current = !0;
|
|
2692
2695
|
}
|
|
2693
2696
|
}
|
|
2694
|
-
} : {}, [c, u, f, g, r,
|
|
2697
|
+
} : {}, [c, u, f, g, r, F]);
|
|
2695
2698
|
}
|
|
2696
|
-
let
|
|
2697
|
-
process.env.NODE_ENV !== "production" && (
|
|
2698
|
-
function
|
|
2699
|
+
let ft;
|
|
2700
|
+
process.env.NODE_ENV !== "production" && (ft = /* @__PURE__ */ new Set());
|
|
2701
|
+
function Jo(e) {
|
|
2699
2702
|
var t;
|
|
2700
2703
|
e === void 0 && (e = {});
|
|
2701
2704
|
const {
|
|
@@ -2708,20 +2711,20 @@ function Vo(e) {
|
|
|
2708
2711
|
const k = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
2709
2712
|
if ((i = e.elements) != null && i.reference && !W(e.elements.reference)) {
|
|
2710
2713
|
var s;
|
|
2711
|
-
if (!((s =
|
|
2714
|
+
if (!((s = ft) != null && s.has(k))) {
|
|
2712
2715
|
var l;
|
|
2713
|
-
(l =
|
|
2716
|
+
(l = ft) == null || l.add(k), console.error(k);
|
|
2714
2717
|
}
|
|
2715
2718
|
}
|
|
2716
2719
|
}
|
|
2717
|
-
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d =
|
|
2720
|
+
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = fo(e), f = xt(), u = vt() != null, g = Re((k, O, D) => {
|
|
2718
2721
|
k && ($.current.openEvent = O), h.emit("openchange", {
|
|
2719
2722
|
open: k,
|
|
2720
2723
|
event: O,
|
|
2721
2724
|
reason: D,
|
|
2722
2725
|
nested: u
|
|
2723
2726
|
}), r == null || r(k, O, D);
|
|
2724
|
-
}), p = y.useRef(null), $ = y.useRef({}), h = y.useState(() =>
|
|
2727
|
+
}), p = y.useRef(null), $ = y.useRef({}), h = y.useState(() => Fo())[0], x = yt(), P = y.useCallback((k) => {
|
|
2725
2728
|
const O = W(k) ? {
|
|
2726
2729
|
getBoundingClientRect: () => k.getBoundingClientRect(),
|
|
2727
2730
|
contextElement: k
|
|
@@ -2751,7 +2754,7 @@ function Vo(e) {
|
|
|
2751
2754
|
open: n,
|
|
2752
2755
|
onOpenChange: g
|
|
2753
2756
|
}), [d, o, x, h, n, g, C, I]);
|
|
2754
|
-
return
|
|
2757
|
+
return J(() => {
|
|
2755
2758
|
const k = f == null ? void 0 : f.nodesRef.current.find((O) => O.id === o);
|
|
2756
2759
|
k && (k.context = A);
|
|
2757
2760
|
}), y.useMemo(() => ({
|
|
@@ -2761,14 +2764,14 @@ function Vo(e) {
|
|
|
2761
2764
|
elements: I
|
|
2762
2765
|
}), [d, C, I, A]);
|
|
2763
2766
|
}
|
|
2764
|
-
const
|
|
2765
|
-
function
|
|
2767
|
+
const Kt = "active", Xt = "selected";
|
|
2768
|
+
function st(e, t, n) {
|
|
2766
2769
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
2767
2770
|
let i = e;
|
|
2768
2771
|
if (o && e) {
|
|
2769
2772
|
const {
|
|
2770
|
-
[
|
|
2771
|
-
[
|
|
2773
|
+
[Kt]: s,
|
|
2774
|
+
[Xt]: l,
|
|
2772
2775
|
...a
|
|
2773
2776
|
} = e;
|
|
2774
2777
|
i = a;
|
|
@@ -2783,7 +2786,7 @@ function nt(e, t, n) {
|
|
|
2783
2786
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2784
2787
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2785
2788
|
let [c, m] = a;
|
|
2786
|
-
if (!(o && [
|
|
2789
|
+
if (!(o && [Kt, Xt].includes(c)))
|
|
2787
2790
|
if (c.indexOf("on") === 0) {
|
|
2788
2791
|
if (r.has(c) || r.set(c, []), typeof m == "function") {
|
|
2789
2792
|
var d;
|
|
@@ -2798,10 +2801,10 @@ function nt(e, t, n) {
|
|
|
2798
2801
|
}), s), {})
|
|
2799
2802
|
};
|
|
2800
2803
|
}
|
|
2801
|
-
function
|
|
2804
|
+
function Qo(e) {
|
|
2802
2805
|
e === void 0 && (e = []);
|
|
2803
|
-
const t = e, n = y.useCallback((i) =>
|
|
2804
|
-
(i) =>
|
|
2806
|
+
const t = e, n = y.useCallback((i) => st(i, e, "reference"), t), r = y.useCallback((i) => st(i, e, "floating"), t), o = y.useCallback(
|
|
2807
|
+
(i) => st(i, e, "item"),
|
|
2805
2808
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2806
2809
|
// should be as referentially stable as possible since it may be passed as
|
|
2807
2810
|
// a prop to many components. All `item` key values must therefore be
|
|
@@ -2814,8 +2817,8 @@ function _o(e) {
|
|
|
2814
2817
|
getItemProps: o
|
|
2815
2818
|
}), [n, r, o]);
|
|
2816
2819
|
}
|
|
2817
|
-
const
|
|
2818
|
-
function
|
|
2820
|
+
const ei = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2821
|
+
function ti(e, t) {
|
|
2819
2822
|
var n;
|
|
2820
2823
|
t === void 0 && (t = {});
|
|
2821
2824
|
const {
|
|
@@ -2824,7 +2827,7 @@ function Ko(e, t) {
|
|
|
2824
2827
|
} = e, {
|
|
2825
2828
|
enabled: i = !0,
|
|
2826
2829
|
role: s = "dialog"
|
|
2827
|
-
} = t, l = (n =
|
|
2830
|
+
} = t, l = (n = ei.get(s)) != null ? n : s, a = yt(), m = vt() != null;
|
|
2828
2831
|
return y.useMemo(() => {
|
|
2829
2832
|
if (!i)
|
|
2830
2833
|
return {};
|
|
@@ -2896,11 +2899,11 @@ function Ko(e, t) {
|
|
|
2896
2899
|
};
|
|
2897
2900
|
}, [i, s, l, r, o, a, m]);
|
|
2898
2901
|
}
|
|
2899
|
-
const
|
|
2900
|
-
function
|
|
2902
|
+
const Gt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
2903
|
+
function $e(e, t) {
|
|
2901
2904
|
return typeof e == "function" ? e(t) : e;
|
|
2902
2905
|
}
|
|
2903
|
-
function
|
|
2906
|
+
function ni(e, t) {
|
|
2904
2907
|
const [n, r] = y.useState(e);
|
|
2905
2908
|
return e && !n && r(!0), y.useEffect(() => {
|
|
2906
2909
|
if (!e) {
|
|
@@ -2909,7 +2912,7 @@ function Xo(e, t) {
|
|
|
2909
2912
|
}
|
|
2910
2913
|
}, [e, t]), n;
|
|
2911
2914
|
}
|
|
2912
|
-
function
|
|
2915
|
+
function ri(e, t) {
|
|
2913
2916
|
t === void 0 && (t = {});
|
|
2914
2917
|
const {
|
|
2915
2918
|
open: n,
|
|
@@ -2918,10 +2921,10 @@ function Uo(e, t) {
|
|
|
2918
2921
|
}
|
|
2919
2922
|
} = e, {
|
|
2920
2923
|
duration: o = 250
|
|
2921
|
-
} = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), d =
|
|
2922
|
-
return
|
|
2924
|
+
} = t, s = (typeof o == "number" ? o : o.close) || 0, [l, a] = y.useState(!1), [c, m] = y.useState("unmounted"), d = ni(n, s);
|
|
2925
|
+
return J(() => {
|
|
2923
2926
|
l && !d && m("unmounted");
|
|
2924
|
-
}, [l, d]),
|
|
2927
|
+
}, [l, d]), J(() => {
|
|
2925
2928
|
if (r) {
|
|
2926
2929
|
if (n) {
|
|
2927
2930
|
m("initial");
|
|
@@ -2939,7 +2942,7 @@ function Uo(e, t) {
|
|
|
2939
2942
|
status: c
|
|
2940
2943
|
};
|
|
2941
2944
|
}
|
|
2942
|
-
function
|
|
2945
|
+
function oi(e, t) {
|
|
2943
2946
|
t === void 0 && (t = {});
|
|
2944
2947
|
const {
|
|
2945
2948
|
initial: n = {
|
|
@@ -2953,29 +2956,29 @@ function qo(e, t) {
|
|
|
2953
2956
|
side: a,
|
|
2954
2957
|
placement: l
|
|
2955
2958
|
}), [a, l]), m = typeof s == "number", d = (m ? s : s.open) || 0, f = (m ? s : s.close) || 0, [u, g] = y.useState(() => ({
|
|
2956
|
-
|
|
2957
|
-
|
|
2959
|
+
...$e(i, c),
|
|
2960
|
+
...$e(n, c)
|
|
2958
2961
|
})), {
|
|
2959
2962
|
isMounted: p,
|
|
2960
2963
|
status: $
|
|
2961
|
-
} =
|
|
2964
|
+
} = ri(e, {
|
|
2962
2965
|
duration: s
|
|
2963
|
-
}), h =
|
|
2964
|
-
return
|
|
2965
|
-
const C =
|
|
2966
|
+
}), h = Ce(n), x = Ce(r), P = Ce(o), S = Ce(i);
|
|
2967
|
+
return J(() => {
|
|
2968
|
+
const C = $e(h.current, c), I = $e(P.current, c), A = $e(S.current, c), k = $e(x.current, c) || Object.keys(C).reduce((O, D) => (O[D] = "", O), {});
|
|
2966
2969
|
if ($ === "initial" && g((O) => ({
|
|
2967
2970
|
transitionProperty: O.transitionProperty,
|
|
2968
2971
|
...A,
|
|
2969
2972
|
...C
|
|
2970
2973
|
})), $ === "open" && g({
|
|
2971
|
-
transitionProperty: Object.keys(k).map(
|
|
2974
|
+
transitionProperty: Object.keys(k).map(Gt).join(","),
|
|
2972
2975
|
transitionDuration: d + "ms",
|
|
2973
2976
|
...A,
|
|
2974
2977
|
...k
|
|
2975
2978
|
}), $ === "close") {
|
|
2976
2979
|
const O = I || C;
|
|
2977
2980
|
g({
|
|
2978
|
-
transitionProperty: Object.keys(O).map(
|
|
2981
|
+
transitionProperty: Object.keys(O).map(Gt).join(","),
|
|
2979
2982
|
transitionDuration: f + "ms",
|
|
2980
2983
|
...A,
|
|
2981
2984
|
...O
|
|
@@ -2986,7 +2989,7 @@ function qo(e, t) {
|
|
|
2986
2989
|
styles: u
|
|
2987
2990
|
};
|
|
2988
2991
|
}
|
|
2989
|
-
function
|
|
2992
|
+
function Ut(e, t) {
|
|
2990
2993
|
const [n, r] = e;
|
|
2991
2994
|
let o = !1;
|
|
2992
2995
|
const i = t.length;
|
|
@@ -2996,10 +2999,10 @@ function _t(e, t) {
|
|
|
2996
2999
|
}
|
|
2997
3000
|
return o;
|
|
2998
3001
|
}
|
|
2999
|
-
function
|
|
3002
|
+
function ii(e, t) {
|
|
3000
3003
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3001
3004
|
}
|
|
3002
|
-
function
|
|
3005
|
+
function si(e) {
|
|
3003
3006
|
e === void 0 && (e = {});
|
|
3004
3007
|
const {
|
|
3005
3008
|
buffer: t = 0.5,
|
|
@@ -3033,67 +3036,67 @@ function Zo(e) {
|
|
|
3033
3036
|
const {
|
|
3034
3037
|
clientX: I,
|
|
3035
3038
|
clientY: A
|
|
3036
|
-
} = S, k = [I, A], O =
|
|
3037
|
-
if (
|
|
3039
|
+
} = S, k = [I, A], O = Se(S), D = S.type === "mouseleave", F = me(p.floating, O), M = me(p.domReference, O), B = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], T = f > b.right - b.width / 2, R = u > b.bottom - b.height / 2, w = ii(k, B), L = b.width > B.width, K = b.height > B.height, G = (L ? B : b).left, ye = (L ? B : b).right, ie = (K ? B : b).top, H = (K ? B : b).bottom;
|
|
3040
|
+
if (F && (i = !0, !D))
|
|
3038
3041
|
return;
|
|
3039
3042
|
if (M && (i = !1), M && !D) {
|
|
3040
3043
|
i = !0;
|
|
3041
3044
|
return;
|
|
3042
3045
|
}
|
|
3043
|
-
if (D && W(S.relatedTarget) &&
|
|
3046
|
+
if (D && W(S.relatedTarget) && me(p.floating, S.relatedTarget) || x && We(x.nodesRef.current, h).some((le) => {
|
|
3044
3047
|
let {
|
|
3045
3048
|
context: j
|
|
3046
|
-
} =
|
|
3049
|
+
} = le;
|
|
3047
3050
|
return j == null ? void 0 : j.open;
|
|
3048
3051
|
}))
|
|
3049
3052
|
return;
|
|
3050
3053
|
if (v === "top" && u >= B.bottom - 1 || v === "bottom" && u <= B.top + 1 || v === "left" && f >= B.right - 1 || v === "right" && f <= B.left + 1)
|
|
3051
3054
|
return C();
|
|
3052
|
-
let
|
|
3055
|
+
let X = [];
|
|
3053
3056
|
switch (v) {
|
|
3054
3057
|
case "top":
|
|
3055
|
-
|
|
3058
|
+
X = [[G, B.top + 1], [G, b.bottom - 1], [ye, b.bottom - 1], [ye, B.top + 1]];
|
|
3056
3059
|
break;
|
|
3057
3060
|
case "bottom":
|
|
3058
|
-
|
|
3061
|
+
X = [[G, b.top + 1], [G, B.bottom - 1], [ye, B.bottom - 1], [ye, b.top + 1]];
|
|
3059
3062
|
break;
|
|
3060
3063
|
case "left":
|
|
3061
|
-
|
|
3064
|
+
X = [[b.right - 1, H], [b.right - 1, ie], [B.left + 1, ie], [B.left + 1, H]];
|
|
3062
3065
|
break;
|
|
3063
3066
|
case "right":
|
|
3064
|
-
|
|
3067
|
+
X = [[B.right - 1, H], [B.right - 1, ie], [b.left + 1, ie], [b.left + 1, H]];
|
|
3065
3068
|
break;
|
|
3066
3069
|
}
|
|
3067
|
-
function
|
|
3068
|
-
let [j,
|
|
3070
|
+
function se(le) {
|
|
3071
|
+
let [j, _] = le;
|
|
3069
3072
|
switch (v) {
|
|
3070
3073
|
case "top": {
|
|
3071
|
-
const
|
|
3072
|
-
return [
|
|
3074
|
+
const ae = [L ? j + t / 2 : T ? j + t * 4 : j - t * 4, _ + t + 1], ce = [L ? j - t / 2 : T ? j + t * 4 : j - t * 4, _ + t + 1], ve = [[b.left, T || L ? b.bottom - t : b.top], [b.right, T ? L ? b.bottom - t : b.top : b.bottom - t]];
|
|
3075
|
+
return [ae, ce, ...ve];
|
|
3073
3076
|
}
|
|
3074
3077
|
case "bottom": {
|
|
3075
|
-
const
|
|
3076
|
-
return [
|
|
3078
|
+
const ae = [L ? j + t / 2 : T ? j + t * 4 : j - t * 4, _ - t], ce = [L ? j - t / 2 : T ? j + t * 4 : j - t * 4, _ - t], ve = [[b.left, T || L ? b.top + t : b.bottom], [b.right, T ? L ? b.top + t : b.bottom : b.top + t]];
|
|
3079
|
+
return [ae, ce, ...ve];
|
|
3077
3080
|
}
|
|
3078
3081
|
case "left": {
|
|
3079
|
-
const
|
|
3080
|
-
return [...[[R ||
|
|
3082
|
+
const ae = [j + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], ce = [j + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
|
|
3083
|
+
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], ae, ce];
|
|
3081
3084
|
}
|
|
3082
3085
|
case "right": {
|
|
3083
|
-
const
|
|
3084
|
-
return [
|
|
3086
|
+
const ae = [j - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], ce = [j - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], ve = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
|
|
3087
|
+
return [ae, ce, ...ve];
|
|
3085
3088
|
}
|
|
3086
3089
|
}
|
|
3087
3090
|
}
|
|
3088
|
-
if (!
|
|
3091
|
+
if (!Ut([I, A], X)) {
|
|
3089
3092
|
if (i && !w)
|
|
3090
3093
|
return C();
|
|
3091
3094
|
if (!D && r) {
|
|
3092
|
-
const
|
|
3093
|
-
if (
|
|
3095
|
+
const le = c(S.clientX, S.clientY);
|
|
3096
|
+
if (le !== null && le < 0.1)
|
|
3094
3097
|
return C();
|
|
3095
3098
|
}
|
|
3096
|
-
|
|
3099
|
+
Ut([I, A], se([f, u])) ? !i && r && (o = window.setTimeout(C, 40)) : C();
|
|
3097
3100
|
}
|
|
3098
3101
|
};
|
|
3099
3102
|
};
|
|
@@ -3101,9 +3104,9 @@ function Zo(e) {
|
|
|
3101
3104
|
blockPointerEvents: n
|
|
3102
3105
|
}, m;
|
|
3103
3106
|
}
|
|
3104
|
-
const
|
|
3107
|
+
const li = V("div"), wt = kn(
|
|
3105
3108
|
{}
|
|
3106
|
-
),
|
|
3109
|
+
), bi = ({
|
|
3107
3110
|
children: e,
|
|
3108
3111
|
offset: t,
|
|
3109
3112
|
open: n,
|
|
@@ -3113,13 +3116,13 @@ const Jo = re("div"), bt = xn(
|
|
|
3113
3116
|
placement: s = "bottom",
|
|
3114
3117
|
role: l = "dialog"
|
|
3115
3118
|
}) => {
|
|
3116
|
-
const { refs: a, floatingStyles: c, context: m } =
|
|
3119
|
+
const { refs: a, floatingStyles: c, context: m } = Jo({
|
|
3117
3120
|
open: n,
|
|
3118
3121
|
onOpenChange: r,
|
|
3119
3122
|
placement: s,
|
|
3120
|
-
whileElementsMounted:
|
|
3121
|
-
middleware: [
|
|
3122
|
-
}), { isMounted: d, styles: f } =
|
|
3123
|
+
whileElementsMounted: lo,
|
|
3124
|
+
middleware: [Vr(t), co(), ao()]
|
|
3125
|
+
}), { isMounted: d, styles: f } = oi(m, {
|
|
3123
3126
|
initial: ({ side: S }) => ({
|
|
3124
3127
|
opacity: 0,
|
|
3125
3128
|
transform: {
|
|
@@ -3129,16 +3132,16 @@ const Jo = re("div"), bt = xn(
|
|
|
3129
3132
|
left: "translateX(-0.5rem)"
|
|
3130
3133
|
}[S]
|
|
3131
3134
|
})
|
|
3132
|
-
}), u =
|
|
3135
|
+
}), u = Go(m, { enabled: o === "click" }), g = Wo(m, {
|
|
3133
3136
|
enabled: o === "hover",
|
|
3134
3137
|
delay: i,
|
|
3135
|
-
handleClose:
|
|
3136
|
-
}), p =
|
|
3138
|
+
handleClose: si()
|
|
3139
|
+
}), p = Zo(m), $ = ti(m, { role: l }), { getFloatingProps: h, getReferenceProps: x } = Qo([
|
|
3137
3140
|
u,
|
|
3138
3141
|
g,
|
|
3139
3142
|
p,
|
|
3140
3143
|
$
|
|
3141
|
-
]), P =
|
|
3144
|
+
]), P = Tn(
|
|
3142
3145
|
() => ({
|
|
3143
3146
|
getFloatingProps: h,
|
|
3144
3147
|
getReferenceProps: x,
|
|
@@ -3156,23 +3159,23 @@ const Jo = re("div"), bt = xn(
|
|
|
3156
3159
|
f
|
|
3157
3160
|
]
|
|
3158
3161
|
);
|
|
3159
|
-
return /* @__PURE__ */
|
|
3160
|
-
},
|
|
3161
|
-
const { getReferenceProps: t, refs: n } =
|
|
3162
|
-
return /* @__PURE__ */
|
|
3162
|
+
return /* @__PURE__ */ z(wt.Provider, { value: P, children: e });
|
|
3163
|
+
}, yi = ({ children: e }) => {
|
|
3164
|
+
const { getReferenceProps: t, refs: n } = Jt(wt);
|
|
3165
|
+
return /* @__PURE__ */ z(En, { children: In(e) && Pn(e, {
|
|
3163
3166
|
ref: n.setReference,
|
|
3164
3167
|
...t()
|
|
3165
3168
|
}) });
|
|
3166
|
-
},
|
|
3169
|
+
}, vi = ({ children: e, overlayCardProps: t }) => {
|
|
3167
3170
|
const {
|
|
3168
3171
|
getFloatingProps: n,
|
|
3169
3172
|
isMounted: r,
|
|
3170
3173
|
refs: o,
|
|
3171
3174
|
floatingStyles: i,
|
|
3172
3175
|
transitionStyles: s
|
|
3173
|
-
} =
|
|
3174
|
-
return r ? /* @__PURE__ */
|
|
3175
|
-
|
|
3176
|
+
} = Jt(wt);
|
|
3177
|
+
return r ? /* @__PURE__ */ z(Ko, { children: /* @__PURE__ */ z(
|
|
3178
|
+
li,
|
|
3176
3179
|
{
|
|
3177
3180
|
ref: o.setFloating,
|
|
3178
3181
|
style: i,
|
|
@@ -3180,10 +3183,10 @@ const Jo = re("div"), bt = xn(
|
|
|
3180
3183
|
css: {
|
|
3181
3184
|
zIndex: "$overlayCard"
|
|
3182
3185
|
},
|
|
3183
|
-
children: /* @__PURE__ */
|
|
3186
|
+
children: /* @__PURE__ */ z(en, { ...t, style: s, children: e })
|
|
3184
3187
|
}
|
|
3185
3188
|
) }) : null;
|
|
3186
|
-
},
|
|
3189
|
+
}, xi = V("span", {
|
|
3187
3190
|
flex: "0 0 auto",
|
|
3188
3191
|
display: "inline-flex",
|
|
3189
3192
|
padding: "$1 $2",
|
|
@@ -3220,19 +3223,182 @@ const Jo = re("div"), bt = xn(
|
|
|
3220
3223
|
defaultVariants: {
|
|
3221
3224
|
color: "primary"
|
|
3222
3225
|
}
|
|
3223
|
-
})
|
|
3226
|
+
}), wi = V(Me.Root, {
|
|
3227
|
+
backgroundColor: "$gray50",
|
|
3228
|
+
display: "flex",
|
|
3229
|
+
alignItems: "center",
|
|
3230
|
+
padding: "$1",
|
|
3231
|
+
gap: "$1"
|
|
3232
|
+
}), $i = V(Me.ToggleGroup, {
|
|
3233
|
+
display: "flex",
|
|
3234
|
+
gap: "$1",
|
|
3235
|
+
alignItems: "center"
|
|
3236
|
+
}), Si = V(Me.Separator, {
|
|
3237
|
+
width: "1px",
|
|
3238
|
+
height: "1.5rem",
|
|
3239
|
+
my: "$1",
|
|
3240
|
+
mx: "$1",
|
|
3241
|
+
backgroundColor: "$border"
|
|
3242
|
+
}), Rn = Ie(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3243
|
+
hr,
|
|
3244
|
+
{
|
|
3245
|
+
ref: n,
|
|
3246
|
+
icon: !0,
|
|
3247
|
+
css: {
|
|
3248
|
+
width: "auto",
|
|
3249
|
+
"&[data-state='on']": {
|
|
3250
|
+
backgroundColor: "$blue200",
|
|
3251
|
+
color: "$blue800"
|
|
3252
|
+
},
|
|
3253
|
+
...e
|
|
3254
|
+
},
|
|
3255
|
+
...t
|
|
3256
|
+
}
|
|
3257
|
+
)), Ri = Ie(
|
|
3258
|
+
({ children: e, dropdown: t, ...n }, r) => /* @__PURE__ */ z(
|
|
3259
|
+
Me.Button,
|
|
3260
|
+
{
|
|
3261
|
+
asChild: !0,
|
|
3262
|
+
ref: r,
|
|
3263
|
+
children: /* @__PURE__ */ Ge(
|
|
3264
|
+
Rn,
|
|
3265
|
+
{
|
|
3266
|
+
variant: "transparent",
|
|
3267
|
+
color: "primary",
|
|
3268
|
+
...n,
|
|
3269
|
+
children: [
|
|
3270
|
+
e,
|
|
3271
|
+
t && /* @__PURE__ */ z(On, {})
|
|
3272
|
+
]
|
|
3273
|
+
}
|
|
3274
|
+
)
|
|
3275
|
+
}
|
|
3276
|
+
)
|
|
3277
|
+
), Ei = Ie(({
|
|
3278
|
+
children: e,
|
|
3279
|
+
value: t,
|
|
3280
|
+
...n
|
|
3281
|
+
}, r) => /* @__PURE__ */ z(
|
|
3282
|
+
Me.ToggleItem,
|
|
3283
|
+
{
|
|
3284
|
+
value: t,
|
|
3285
|
+
asChild: !0,
|
|
3286
|
+
ref: r,
|
|
3287
|
+
children: /* @__PURE__ */ z(
|
|
3288
|
+
Rn,
|
|
3289
|
+
{
|
|
3290
|
+
variant: "transparent",
|
|
3291
|
+
color: "primary",
|
|
3292
|
+
icon: !0,
|
|
3293
|
+
...n,
|
|
3294
|
+
children: e
|
|
3295
|
+
}
|
|
3296
|
+
)
|
|
3297
|
+
}
|
|
3298
|
+
)), ai = V(en, {
|
|
3299
|
+
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3300
|
+
padding: "$1"
|
|
3301
|
+
}), $t = gt({
|
|
3302
|
+
padding: "$2 $2 $2 1.5rem",
|
|
3303
|
+
fontSize: "$sm",
|
|
3304
|
+
lineHeight: "1.25",
|
|
3305
|
+
cursor: "pointer",
|
|
3306
|
+
borderRadius: "$sm",
|
|
3307
|
+
position: "relative",
|
|
3308
|
+
color: "$primaryTextOnWhite",
|
|
3309
|
+
display: "flex",
|
|
3310
|
+
alignItems: "center",
|
|
3311
|
+
":focus-visisble": {
|
|
3312
|
+
outline: "none"
|
|
3313
|
+
},
|
|
3314
|
+
"&[data-highlighted], &:hover": {
|
|
3315
|
+
outline: "none",
|
|
3316
|
+
backgroundColor: "$hoverDarker"
|
|
3317
|
+
},
|
|
3318
|
+
"&[data-disabled]": {
|
|
3319
|
+
color: "$gray500",
|
|
3320
|
+
"&:hover": {
|
|
3321
|
+
backgroundColor: "transparent"
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
}), Ci = ({
|
|
3325
|
+
side: e = "bottom",
|
|
3326
|
+
align: t = "center",
|
|
3327
|
+
trigger: n,
|
|
3328
|
+
children: r,
|
|
3329
|
+
sideOffset: o,
|
|
3330
|
+
modal: i
|
|
3331
|
+
}) => /* @__PURE__ */ Ge(Q.Root, { modal: i, children: [
|
|
3332
|
+
/* @__PURE__ */ z(Q.Trigger, { asChild: !0, children: n }),
|
|
3333
|
+
/* @__PURE__ */ z(Q.Portal, { children: /* @__PURE__ */ z(
|
|
3334
|
+
Q.Content,
|
|
3335
|
+
{
|
|
3336
|
+
asChild: !0,
|
|
3337
|
+
side: e,
|
|
3338
|
+
align: t,
|
|
3339
|
+
collisionPadding: 10,
|
|
3340
|
+
sideOffset: o,
|
|
3341
|
+
children: /* @__PURE__ */ z(ai, { children: r })
|
|
3342
|
+
}
|
|
3343
|
+
) })
|
|
3344
|
+
] }), ci = V(Q.ItemIndicator, {
|
|
3345
|
+
position: "absolute",
|
|
3346
|
+
left: 0,
|
|
3347
|
+
top: 0,
|
|
3348
|
+
bottom: 0,
|
|
3349
|
+
width: "1.5rem",
|
|
3350
|
+
display: "flex",
|
|
3351
|
+
justifyContent: "center",
|
|
3352
|
+
alignItems: "center"
|
|
3353
|
+
}), ki = V(Q.Separator, {
|
|
3354
|
+
height: 1,
|
|
3355
|
+
backgroundColor: "$gray200",
|
|
3356
|
+
margin: 1
|
|
3357
|
+
}), Ti = V(Q.Item, $t), Ii = V(Q.Item, $t, {
|
|
3358
|
+
padding: "$2",
|
|
3359
|
+
display: "flex",
|
|
3360
|
+
alignItems: "center",
|
|
3361
|
+
gap: "$2"
|
|
3362
|
+
}), ui = V(Q.CheckboxItem, $t), Pi = ({
|
|
3363
|
+
value: e,
|
|
3364
|
+
onChange: t,
|
|
3365
|
+
children: n
|
|
3366
|
+
}) => /* @__PURE__ */ Ge(
|
|
3367
|
+
ui,
|
|
3368
|
+
{
|
|
3369
|
+
checked: e,
|
|
3370
|
+
onCheckedChange: t,
|
|
3371
|
+
children: [
|
|
3372
|
+
/* @__PURE__ */ z(ci, { children: /* @__PURE__ */ z(Dn, { size: "0.75rem" }) }),
|
|
3373
|
+
n
|
|
3374
|
+
]
|
|
3375
|
+
}
|
|
3376
|
+
);
|
|
3224
3377
|
export {
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3378
|
+
hi as A,
|
|
3379
|
+
li as B,
|
|
3380
|
+
Ci as D,
|
|
3381
|
+
ai as M,
|
|
3382
|
+
en as O,
|
|
3383
|
+
bi as P,
|
|
3384
|
+
gr as S,
|
|
3385
|
+
wi as T,
|
|
3386
|
+
yi as a,
|
|
3387
|
+
vi as b,
|
|
3388
|
+
gt as c,
|
|
3389
|
+
hr as d,
|
|
3390
|
+
xi as e,
|
|
3391
|
+
$i as f,
|
|
3392
|
+
pi as g,
|
|
3393
|
+
Si as h,
|
|
3394
|
+
Rn as i,
|
|
3395
|
+
Ri as j,
|
|
3396
|
+
Ae as k,
|
|
3397
|
+
Ei as l,
|
|
3398
|
+
$t as m,
|
|
3399
|
+
ki as n,
|
|
3400
|
+
Ti as o,
|
|
3401
|
+
Ii as p,
|
|
3402
|
+
Pi as q,
|
|
3403
|
+
V as s
|
|
3238
3404
|
};
|