@arkitektbedriftene/fe-lib 0.4.6 → 0.4.8
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/{TextInput-bedd6814.js → TextInput-986922b7.js} +1334 -1252
- package/dist/icons.es.js +1 -1
- package/dist/{index.esm-969855d2.js → index.esm-b848a615.js} +26 -22
- package/dist/oidc/firmAccess.d.ts +3 -0
- package/dist/oidc.es.js +75 -63
- package/dist/rich-text/Plugins/LinkEditPlugin.d.ts +2 -0
- package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +2 -0
- package/dist/rich-text/getSelectedNode.d.ts +2 -0
- package/dist/rich-text/rich-text.d.ts +2 -0
- package/dist/rich-text/sanitizeUrl.d.ts +1 -0
- package/dist/rich-text.es.js +517 -360
- package/dist/ui.es.js +13 -13
- package/package.json +1 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { jsx as z, jsxs as Pe, Fragment as
|
|
1
|
+
import { jsx as z, jsxs as Pe, Fragment as An } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
var W = "colors",
|
|
3
|
+
import Se, { forwardRef as xe, useLayoutEffect as en, useEffect as mt, useRef as tn, createContext as On, useMemo as Dn, useContext as nn, isValidElement as Mn, cloneElement as Ln, useCallback as Et, useId as Fn } from "react";
|
|
4
|
+
import * as zn from "react-dom";
|
|
5
|
+
import { createPortal as on } from "react-dom";
|
|
6
|
+
import * as je from "@radix-ui/react-toolbar";
|
|
7
|
+
import { g as Wn, h as Nn, i as jn } from "./index.esm-b848a615.js";
|
|
8
|
+
import * as te from "@radix-ui/react-dropdown-menu";
|
|
9
|
+
var W = "colors", X = "sizes", E = "space", Hn = { 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: W, backgroundColor: W, backgroundImage: W, borderImage: W, border: W, borderBlock: W, borderBlockEnd: W, borderBlockStart: W, borderBottom: W, borderBottomColor: W, borderColor: W, borderInline: W, borderInlineEnd: W, borderInlineStart: W, borderLeft: W, borderLeftColor: W, borderRight: W, borderRightColor: W, borderTop: W, borderTopColor: W, caretColor: W, color: W, columnRuleColor: W, fill: W, outline: W, outlineColor: W, stroke: W, textDecorationColor: W, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: X, minBlockSize: X, maxBlockSize: X, inlineSize: X, minInlineSize: X, maxInlineSize: X, width: X, minWidth: X, maxWidth: X, height: X, minHeight: X, maxHeight: X, flexBasis: X, gridTemplateColumns: X, gridTemplateRows: X, 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" }, Vn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, De = () => {
|
|
10
10
|
const e = /* @__PURE__ */ Object.create(null);
|
|
11
|
-
return (t, n, ...
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
return (t, n, ...o) => {
|
|
12
|
+
const r = ((i) => JSON.stringify(i, Vn))(t);
|
|
13
|
+
return r in e ? e[r] : e[r] = n(t, ...o);
|
|
14
14
|
};
|
|
15
|
-
},
|
|
15
|
+
}, pe = Symbol.for("sxs.internal"), pt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Ct = (e) => {
|
|
16
16
|
for (const t in e)
|
|
17
17
|
return !0;
|
|
18
18
|
return !1;
|
|
19
|
-
}, { hasOwnProperty:
|
|
19
|
+
}, { hasOwnProperty: _n } = Object.prototype, at = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Yn = /\s+(?![^()]*\))/, Re = (e) => (t) => e(...typeof t == "string" ? String(t).split(Yn) : [t]), kt = { 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: Re((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: Re((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: Re((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: Re((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: Re((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: Re((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, nt = /([\d.]+)([^]*)/, Xn = (e, t) => e.length ? e.reduce((n, o) => (n.push(...t.map((r) => r.includes("&") ? r.replace(/&/g, /[ +>|~]/.test(o) && /&.*&/.test(r) ? `:is(${o})` : o) : o + " " + r)), n), []) : t, Kn = (e, t) => e in Gn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, o, r, i) => o + (r === "stretch" ? `-moz-available${i};${at(e)}:${o}-webkit-fill-available` : `-moz-fit-content${i};${at(e)}:${o}fit-content`) + i) : String(t), Gn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, ne = (e) => e ? e + "-" : "", rn = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (o, r, i, s, l) => s == "$" == !!i ? o : (r || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? ne(t) + (l.includes("$") ? "" : ne(n)) + l.replace(/\$/g, "-") : l) + ")" + (r || s == "--" ? "*" + (r || "") + (i || "1") + ")" : "")), Un = /\s*,\s*(?![^()]*\))/, qn = Object.prototype.toString, Te = (e, t, n, o, r) => {
|
|
20
20
|
let i, s, l;
|
|
21
|
-
const a = (c,
|
|
22
|
-
let f,
|
|
23
|
-
const
|
|
21
|
+
const a = (c, g, u) => {
|
|
22
|
+
let f, d;
|
|
23
|
+
const m = (p) => {
|
|
24
24
|
for (f in p) {
|
|
25
|
-
const x = f.charCodeAt(0) === 64,
|
|
26
|
-
for (
|
|
27
|
-
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof
|
|
28
|
-
if (S in
|
|
29
|
-
const C =
|
|
25
|
+
const x = f.charCodeAt(0) === 64, B = x && Array.isArray(p[f]) ? p[f] : [p[f]];
|
|
26
|
+
for (d of B) {
|
|
27
|
+
const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString === qn && (!o.utils[S] || !g.length);
|
|
28
|
+
if (S in o.utils && !k) {
|
|
29
|
+
const C = o.utils[S];
|
|
30
30
|
if (C !== s) {
|
|
31
|
-
s = C,
|
|
31
|
+
s = C, m(C(d)), s = null;
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
34
|
} else if (S in kt) {
|
|
35
35
|
const C = kt[S];
|
|
36
36
|
if (C !== l) {
|
|
37
|
-
l = C,
|
|
37
|
+
l = C, m(C(d)), l = null;
|
|
38
38
|
continue;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
if (x && (w = f.slice(1) in
|
|
42
|
-
const M = nt.test(
|
|
43
|
-
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(nt, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (
|
|
41
|
+
if (x && (w = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C, P, T, D, A, L) => {
|
|
42
|
+
const M = nt.test(P), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [D, P] : [P, D];
|
|
43
|
+
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(nt, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? L.replace(nt, (I, R, $) => Number(R) + O * (A === ">" ? -1 : 1) + $) : L) : "") + ")";
|
|
44
44
|
})), k) {
|
|
45
|
-
const C = x ?
|
|
46
|
-
i !== void 0 &&
|
|
45
|
+
const C = x ? u.concat(f) : [...u], P = x ? [...g] : Xn(g, f.split(Un));
|
|
46
|
+
i !== void 0 && r(Tt(...i)), i = void 0, a(d, P, C);
|
|
47
47
|
} else
|
|
48
|
-
i === void 0 && (i = [[],
|
|
48
|
+
i === void 0 && (i = [[], g, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${ne(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in Zn ? String(d) + "px" : String(d) : rn(Kn(S, d ?? ""), o.prefix, o.themeMap[S]), i[0].push(`${x ? `${f} ` : `${at(f)}:`}${d}`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
var w, h;
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
m(c), i !== void 0 && r(Tt(...i)), i = void 0;
|
|
54
54
|
};
|
|
55
55
|
a(e, t, n);
|
|
56
|
-
}, Tt = (e, t, n) => `${n.map((
|
|
57
|
-
let n,
|
|
56
|
+
}, Tt = (e, t, n) => `${n.map((o) => `${o}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, Zn = { 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 }, It = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), he = (e) => ((t) => {
|
|
57
|
+
let n, o = "";
|
|
58
58
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
59
|
-
|
|
60
|
-
return It(n % 52) +
|
|
59
|
+
o = It(n % 52) + o;
|
|
60
|
+
return It(n % 52) + o;
|
|
61
61
|
})(((t, n) => {
|
|
62
|
-
let
|
|
63
|
-
for (;
|
|
64
|
-
t = 33 * t ^ n.charCodeAt(--
|
|
62
|
+
let o = n.length;
|
|
63
|
+
for (; o; )
|
|
64
|
+
t = 33 * t ^ n.charCodeAt(--o);
|
|
65
65
|
return t;
|
|
66
|
-
})(5381, JSON.stringify(e)) >>> 0),
|
|
66
|
+
})(5381, JSON.stringify(e)) >>> 0), We = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Jn = (e) => {
|
|
67
67
|
if (e.href && !e.href.startsWith(location.origin))
|
|
68
68
|
return !1;
|
|
69
69
|
try {
|
|
@@ -71,16 +71,16 @@ var W = "colors", Y = "sizes", E = "space", Nn = { gap: E, gridGap: E, columnGap
|
|
|
71
71
|
} catch {
|
|
72
72
|
return !1;
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, Qn = (e) => {
|
|
75
75
|
let t;
|
|
76
76
|
const n = () => {
|
|
77
|
-
const { cssRules:
|
|
78
|
-
return [].map.call(
|
|
77
|
+
const { cssRules: r } = t.sheet;
|
|
78
|
+
return [].map.call(r, (i, s) => {
|
|
79
79
|
const { cssText: l } = i;
|
|
80
80
|
let a = "";
|
|
81
81
|
if (l.startsWith("--sxs"))
|
|
82
82
|
return "";
|
|
83
|
-
if (
|
|
83
|
+
if (r[s - 1] && (a = r[s - 1].cssText).startsWith("--sxs")) {
|
|
84
84
|
if (!i.cssRules.length)
|
|
85
85
|
return "";
|
|
86
86
|
for (const c in t.rules)
|
|
@@ -90,7 +90,7 @@ var W = "colors", Y = "sizes", E = "space", Nn = { gap: E, gridGap: E, columnGap
|
|
|
90
90
|
}
|
|
91
91
|
return l;
|
|
92
92
|
}).join("");
|
|
93
|
-
},
|
|
93
|
+
}, o = () => {
|
|
94
94
|
if (t) {
|
|
95
95
|
const { rules: l, sheet: a } = t;
|
|
96
96
|
if (!a.deleteRule) {
|
|
@@ -101,284 +101,284 @@ var W = "colors", Y = "sizes", E = "space", Nn = { gap: E, gridGap: E, columnGap
|
|
|
101
101
|
for (const c in l)
|
|
102
102
|
delete l[c];
|
|
103
103
|
}
|
|
104
|
-
const
|
|
105
|
-
for (const l of
|
|
106
|
-
if (
|
|
104
|
+
const r = Object(e).styleSheets || [];
|
|
105
|
+
for (const l of r)
|
|
106
|
+
if (Jn(l)) {
|
|
107
107
|
for (let a = 0, c = l.cssRules; c[a]; ++a) {
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
108
|
+
const g = Object(c[a]);
|
|
109
|
+
if (g.type !== 1)
|
|
110
110
|
continue;
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
111
|
+
const u = Object(c[a + 1]);
|
|
112
|
+
if (u.type !== 4)
|
|
113
113
|
continue;
|
|
114
114
|
++a;
|
|
115
|
-
const { cssText: f } =
|
|
115
|
+
const { cssText: f } = g;
|
|
116
116
|
if (!f.startsWith("--sxs"))
|
|
117
117
|
continue;
|
|
118
|
-
const
|
|
119
|
-
|
|
118
|
+
const d = f.slice(14, -3).trim().split(/\s+/), m = We[d[0]];
|
|
119
|
+
m && (t || (t = { sheet: l, reset: o, rules: {}, toString: n }), t.rules[m] = { group: u, index: a, cache: new Set(d) });
|
|
120
120
|
}
|
|
121
121
|
if (t)
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
if (!t) {
|
|
125
|
-
const l = (a, c) => ({ type: c, cssRules: [], insertRule(
|
|
126
|
-
this.cssRules.splice(
|
|
125
|
+
const l = (a, c) => ({ type: c, cssRules: [], insertRule(g, u) {
|
|
126
|
+
this.cssRules.splice(u, 0, l(g, { import: 3, undefined: 1 }[(g.toLowerCase().match(/^@([a-z]+)/) || [])[1]] || 4));
|
|
127
127
|
}, get cssText() {
|
|
128
|
-
return a === "@media{}" ? `@media{${[].map.call(this.cssRules, (
|
|
128
|
+
return a === "@media{}" ? `@media{${[].map.call(this.cssRules, (g) => g.cssText).join("")}}` : a;
|
|
129
129
|
} });
|
|
130
|
-
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset:
|
|
130
|
+
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : l("", "text/css"), rules: {}, reset: o, toString: n };
|
|
131
131
|
}
|
|
132
132
|
const { sheet: i, rules: s } = t;
|
|
133
|
-
for (let l =
|
|
134
|
-
const a =
|
|
133
|
+
for (let l = We.length - 1; l >= 0; --l) {
|
|
134
|
+
const a = We[l];
|
|
135
135
|
if (!s[a]) {
|
|
136
|
-
const c =
|
|
137
|
-
i.insertRule("@media{}",
|
|
136
|
+
const c = We[l + 1], g = s[c] ? s[c].index : i.cssRules.length;
|
|
137
|
+
i.insertRule("@media{}", g), i.insertRule(`--sxs{--sxs:${l}}`, g), s[a] = { group: i.cssRules[g + 1], index: g, cache: /* @__PURE__ */ new Set([l]) };
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
eo(s[a]);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
return
|
|
143
|
-
},
|
|
142
|
+
return o(), t;
|
|
143
|
+
}, eo = (e) => {
|
|
144
144
|
const t = e.group;
|
|
145
145
|
let n = t.cssRules.length;
|
|
146
|
-
e.apply = (
|
|
146
|
+
e.apply = (o) => {
|
|
147
147
|
try {
|
|
148
|
-
t.insertRule(
|
|
148
|
+
t.insertRule(o, n), ++n;
|
|
149
149
|
} catch {
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
},
|
|
153
|
-
let
|
|
154
|
-
for (const
|
|
155
|
-
if (
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
for (const i of
|
|
159
|
-
|
|
152
|
+
}, ze = Symbol(), to = De(), Bt = (e, t) => to(e, () => (...n) => {
|
|
153
|
+
let o = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
154
|
+
for (const r of n)
|
|
155
|
+
if (r != null)
|
|
156
|
+
if (r[pe]) {
|
|
157
|
+
o.type == null && (o.type = r[pe].type);
|
|
158
|
+
for (const i of r[pe].composers)
|
|
159
|
+
o.composers.add(i);
|
|
160
160
|
} else
|
|
161
|
-
|
|
162
|
-
return
|
|
163
|
-
}),
|
|
164
|
-
const i = `${
|
|
161
|
+
r.constructor !== Object || r.$$typeof ? o.type == null && (o.type = r) : o.composers.add(no(r, e));
|
|
162
|
+
return o.type == null && (o.type = "span"), o.composers.size || o.composers.add(["PJLV", {}, [], [], {}, []]), oo(e, o, t);
|
|
163
|
+
}), no = ({ variants: e, compoundVariants: t, defaultVariants: n, ...o }, r) => {
|
|
164
|
+
const i = `${ne(r.prefix)}c-${he(o)}`, s = [], l = [], a = /* @__PURE__ */ Object.create(null), c = [];
|
|
165
165
|
for (const f in n)
|
|
166
166
|
a[f] = String(n[f]);
|
|
167
167
|
if (typeof e == "object" && e)
|
|
168
168
|
for (const f in e) {
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
for (const
|
|
172
|
-
const p = { [f]: String(
|
|
173
|
-
String(
|
|
174
|
-
const w =
|
|
169
|
+
g = a, u = f, _n.call(g, u) || (a[f] = "undefined");
|
|
170
|
+
const d = e[f];
|
|
171
|
+
for (const m in d) {
|
|
172
|
+
const p = { [f]: String(m) };
|
|
173
|
+
String(m) === "undefined" && c.push(f);
|
|
174
|
+
const w = d[m], h = [p, w, !Ct(w)];
|
|
175
175
|
s.push(h);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
var
|
|
178
|
+
var g, u;
|
|
179
179
|
if (typeof t == "object" && t)
|
|
180
180
|
for (const f of t) {
|
|
181
|
-
let { css:
|
|
182
|
-
|
|
183
|
-
for (const w in
|
|
184
|
-
|
|
185
|
-
const p = [
|
|
181
|
+
let { css: d, ...m } = f;
|
|
182
|
+
d = typeof d == "object" && d || {};
|
|
183
|
+
for (const w in m)
|
|
184
|
+
m[w] = String(m[w]);
|
|
185
|
+
const p = [m, d, !Ct(d)];
|
|
186
186
|
l.push(p);
|
|
187
187
|
}
|
|
188
|
-
return [i,
|
|
189
|
-
},
|
|
190
|
-
const [
|
|
188
|
+
return [i, o, s, l, a, c];
|
|
189
|
+
}, oo = (e, t, n) => {
|
|
190
|
+
const [o, r, i, s] = ro(t.composers), l = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
|
191
191
|
function f() {
|
|
192
|
-
for (let
|
|
193
|
-
const [
|
|
194
|
-
|
|
192
|
+
for (let d = 0; d < f[ze].length; d++) {
|
|
193
|
+
const [m, p] = f[ze][d];
|
|
194
|
+
u.rules[m].apply(p);
|
|
195
195
|
}
|
|
196
|
-
return f[
|
|
196
|
+
return f[ze] = [], null;
|
|
197
197
|
}
|
|
198
|
-
return f[
|
|
199
|
-
})(n) : null, a = (l || n).rules, c = `.${
|
|
200
|
-
|
|
201
|
-
const { css: f, ...
|
|
198
|
+
return f[ze] = [], f.rules = {}, We.forEach((d) => f.rules[d] = { apply: (m) => f[ze].push([d, m]) }), f;
|
|
199
|
+
})(n) : null, a = (l || n).rules, c = `.${o}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, g = (u) => {
|
|
200
|
+
u = typeof u == "object" && u || io;
|
|
201
|
+
const { css: f, ...d } = u, m = {};
|
|
202
202
|
for (const h in i)
|
|
203
|
-
if (delete
|
|
204
|
-
let x =
|
|
205
|
-
typeof x == "object" && x ?
|
|
203
|
+
if (delete d[h], h in u) {
|
|
204
|
+
let x = u[h];
|
|
205
|
+
typeof x == "object" && x ? m[h] = { "@initial": i[h], ...x } : (x = String(x), m[h] = x !== "undefined" || s.has(h) ? x : i[h]);
|
|
206
206
|
} else
|
|
207
|
-
|
|
208
|
-
const p = /* @__PURE__ */ new Set([...
|
|
209
|
-
for (const [h, x,
|
|
210
|
-
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h),
|
|
211
|
-
a.styled.apply(
|
|
207
|
+
m[h] = i[h];
|
|
208
|
+
const p = /* @__PURE__ */ new Set([...r]);
|
|
209
|
+
for (const [h, x, B, S] of t.composers) {
|
|
210
|
+
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Te(x, [`.${h}`], [], e, (P) => {
|
|
211
|
+
a.styled.apply(P);
|
|
212
212
|
}));
|
|
213
|
-
const k =
|
|
214
|
-
for (const
|
|
215
|
-
if (
|
|
216
|
-
for (const [T,
|
|
217
|
-
const
|
|
218
|
-
p.add(
|
|
219
|
-
const M = (
|
|
220
|
-
M.has(
|
|
213
|
+
const k = Pt(B, m, e.media), C = Pt(S, m, e.media, !0);
|
|
214
|
+
for (const P of k)
|
|
215
|
+
if (P !== void 0)
|
|
216
|
+
for (const [T, D, A] of P) {
|
|
217
|
+
const L = `${h}-${he(D)}-${T}`;
|
|
218
|
+
p.add(L);
|
|
219
|
+
const M = (A ? n.rules.resonevar : n.rules.onevar).cache, O = A ? a.resonevar : a.onevar;
|
|
220
|
+
M.has(L) || (M.add(L), Te(D, [`.${L}`], [], e, (b) => {
|
|
221
221
|
O.apply(b);
|
|
222
222
|
}));
|
|
223
223
|
}
|
|
224
|
-
for (const
|
|
225
|
-
if (
|
|
226
|
-
for (const [T,
|
|
227
|
-
const
|
|
228
|
-
p.add(
|
|
229
|
-
a.allvar.apply(
|
|
224
|
+
for (const P of C)
|
|
225
|
+
if (P !== void 0)
|
|
226
|
+
for (const [T, D] of P) {
|
|
227
|
+
const A = `${h}-${he(D)}-${T}`;
|
|
228
|
+
p.add(A), n.rules.allvar.cache.has(A) || (n.rules.allvar.cache.add(A), Te(D, [`.${A}`], [], e, (L) => {
|
|
229
|
+
a.allvar.apply(L);
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
if (typeof f == "object" && f) {
|
|
234
|
-
const h = `${
|
|
235
|
-
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h),
|
|
234
|
+
const h = `${o}-i${he(f)}-css`;
|
|
235
|
+
p.add(h), n.rules.inline.cache.has(h) || (n.rules.inline.cache.add(h), Te(f, [`.${h}`], [], e, (x) => {
|
|
236
236
|
a.inline.apply(x);
|
|
237
237
|
}));
|
|
238
238
|
}
|
|
239
|
-
for (const h of String(
|
|
239
|
+
for (const h of String(u.className || "").trim().split(/\s+/))
|
|
240
240
|
h && p.add(h);
|
|
241
|
-
const w =
|
|
242
|
-
return { type: t.type, className: w, selector: c, props:
|
|
241
|
+
const w = d.className = [...p].join(" ");
|
|
242
|
+
return { type: t.type, className: w, selector: c, props: d, toString: () => w, deferredInjector: l };
|
|
243
243
|
};
|
|
244
|
-
return pt(
|
|
245
|
-
},
|
|
244
|
+
return pt(g, { className: o, selector: c, [pe]: t, toString: () => (n.rules.styled.cache.has(o) || g(), o) });
|
|
245
|
+
}, ro = (e) => {
|
|
246
246
|
let t = "";
|
|
247
|
-
const n = [],
|
|
247
|
+
const n = [], o = {}, r = [];
|
|
248
248
|
for (const [i, , , , s, l] of e) {
|
|
249
|
-
t === "" && (t = i), n.push(i),
|
|
249
|
+
t === "" && (t = i), n.push(i), r.push(...l);
|
|
250
250
|
for (const a in s) {
|
|
251
251
|
const c = s[a];
|
|
252
|
-
(
|
|
252
|
+
(o[a] === void 0 || c !== "undefined" || l.includes(c)) && (o[a] = c);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
return [t, n,
|
|
256
|
-
},
|
|
257
|
-
const
|
|
255
|
+
return [t, n, o, new Set(r)];
|
|
256
|
+
}, Pt = (e, t, n, o) => {
|
|
257
|
+
const r = [];
|
|
258
258
|
e:
|
|
259
259
|
for (let [i, s, l] of e) {
|
|
260
260
|
if (l)
|
|
261
261
|
continue;
|
|
262
|
-
let a, c = 0,
|
|
262
|
+
let a, c = 0, g = !1;
|
|
263
263
|
for (a in i) {
|
|
264
|
-
const
|
|
264
|
+
const u = i[a];
|
|
265
265
|
let f = t[a];
|
|
266
|
-
if (f !==
|
|
266
|
+
if (f !== u) {
|
|
267
267
|
if (typeof f != "object" || !f)
|
|
268
268
|
continue e;
|
|
269
269
|
{
|
|
270
|
-
let
|
|
270
|
+
let d, m, p = 0;
|
|
271
271
|
for (const w in f) {
|
|
272
|
-
if (
|
|
272
|
+
if (u === String(f[w])) {
|
|
273
273
|
if (w !== "@initial") {
|
|
274
274
|
const h = w.slice(1);
|
|
275
|
-
(
|
|
275
|
+
(m = m || []).push(h in n ? n[h] : w.replace(/^@media ?/, "")), g = !0;
|
|
276
276
|
}
|
|
277
|
-
c += p,
|
|
277
|
+
c += p, d = !0;
|
|
278
278
|
}
|
|
279
279
|
++p;
|
|
280
280
|
}
|
|
281
|
-
if (
|
|
281
|
+
if (m && m.length && (s = { ["@media " + m.join(", ")]: s }), !d)
|
|
282
282
|
continue e;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
(
|
|
287
|
-
}
|
|
288
|
-
return
|
|
289
|
-
},
|
|
290
|
-
const
|
|
291
|
-
for (let
|
|
292
|
-
|
|
293
|
-
let i =
|
|
286
|
+
(r[c] = r[c] || []).push([o ? "cv" : `${a}-${i[a]}`, s, g]);
|
|
287
|
+
}
|
|
288
|
+
return r;
|
|
289
|
+
}, io = {}, so = De(), lo = (e, t) => so(e, () => (...n) => {
|
|
290
|
+
const o = () => {
|
|
291
|
+
for (let r of n) {
|
|
292
|
+
r = typeof r == "object" && r || {};
|
|
293
|
+
let i = he(r);
|
|
294
294
|
if (!t.rules.global.cache.has(i)) {
|
|
295
|
-
if (t.rules.global.cache.add(i), "@import" in
|
|
295
|
+
if (t.rules.global.cache.add(i), "@import" in r) {
|
|
296
296
|
let s = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
|
|
297
|
-
for (let l of [].concat(
|
|
297
|
+
for (let l of [].concat(r["@import"]))
|
|
298
298
|
l = l.includes('"') || l.includes("'") ? l : `"${l}"`, t.sheet.insertRule(`@import ${l};`, s++);
|
|
299
|
-
delete
|
|
299
|
+
delete r["@import"];
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
Te(r, [], [], e, (s) => {
|
|
302
302
|
t.rules.global.apply(s);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
return "";
|
|
307
307
|
};
|
|
308
|
-
return pt(
|
|
309
|
-
}),
|
|
310
|
-
const
|
|
311
|
-
if (!t.rules.global.cache.has(
|
|
312
|
-
t.rules.global.cache.add(
|
|
308
|
+
return pt(o, { toString: o });
|
|
309
|
+
}), ao = De(), co = (e, t) => ao(e, () => (n) => {
|
|
310
|
+
const o = `${ne(e.prefix)}k-${he(n)}`, r = () => {
|
|
311
|
+
if (!t.rules.global.cache.has(o)) {
|
|
312
|
+
t.rules.global.cache.add(o);
|
|
313
313
|
const i = [];
|
|
314
|
-
|
|
315
|
-
const s = `@keyframes ${
|
|
314
|
+
Te(n, [], [], e, (l) => i.push(l));
|
|
315
|
+
const s = `@keyframes ${o}{${i.join("")}}`;
|
|
316
316
|
t.rules.global.apply(s);
|
|
317
317
|
}
|
|
318
|
-
return
|
|
318
|
+
return o;
|
|
319
319
|
};
|
|
320
|
-
return pt(
|
|
321
|
-
return
|
|
322
|
-
}, toString:
|
|
323
|
-
}),
|
|
324
|
-
constructor(e, t, n,
|
|
325
|
-
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix =
|
|
320
|
+
return pt(r, { get name() {
|
|
321
|
+
return r();
|
|
322
|
+
}, toString: r });
|
|
323
|
+
}), uo = class {
|
|
324
|
+
constructor(e, t, n, o) {
|
|
325
|
+
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = n == null ? "" : String(n), this.prefix = o == null ? "" : String(o);
|
|
326
326
|
}
|
|
327
327
|
get computedValue() {
|
|
328
328
|
return "var(" + this.variable + ")";
|
|
329
329
|
}
|
|
330
330
|
get variable() {
|
|
331
|
-
return "--" +
|
|
331
|
+
return "--" + ne(this.prefix) + ne(this.scale) + this.token;
|
|
332
332
|
}
|
|
333
333
|
toString() {
|
|
334
334
|
return this.computedValue;
|
|
335
335
|
}
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
const
|
|
339
|
-
for (const a in
|
|
336
|
+
}, fo = De(), go = (e, t) => fo(e, () => (n, o) => {
|
|
337
|
+
o = typeof n == "object" && n || Object(o);
|
|
338
|
+
const r = `.${n = (n = typeof n == "string" ? n : "") || `${ne(e.prefix)}t-${he(o)}`}`, i = {}, s = [];
|
|
339
|
+
for (const a in o) {
|
|
340
340
|
i[a] = {};
|
|
341
|
-
for (const c in
|
|
342
|
-
const
|
|
343
|
-
i[a][c] = new
|
|
341
|
+
for (const c in o[a]) {
|
|
342
|
+
const g = `--${ne(e.prefix)}${a}-${c}`, u = rn(String(o[a][c]), e.prefix, a);
|
|
343
|
+
i[a][c] = new uo(c, u, a, e.prefix), s.push(`${g}:${u}`);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
const l = () => {
|
|
347
347
|
if (s.length && !t.rules.themed.cache.has(n)) {
|
|
348
348
|
t.rules.themed.cache.add(n);
|
|
349
|
-
const a = `${
|
|
349
|
+
const a = `${o === e.theme ? ":root," : ""}.${n}{${s.join(";")}}`;
|
|
350
350
|
t.rules.themed.apply(a);
|
|
351
351
|
}
|
|
352
352
|
return n;
|
|
353
353
|
};
|
|
354
354
|
return { ...i, get className() {
|
|
355
355
|
return l();
|
|
356
|
-
}, selector:
|
|
357
|
-
}),
|
|
356
|
+
}, selector: r, toString: l };
|
|
357
|
+
}), mo = De(), po = De(), ho = (e) => {
|
|
358
358
|
const t = ((n) => {
|
|
359
|
-
let
|
|
360
|
-
const
|
|
361
|
-
|
|
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 || {},
|
|
363
|
-
|
|
364
|
-
}, theme: {}, sheet:
|
|
359
|
+
let o = !1;
|
|
360
|
+
const r = mo(n, (i) => {
|
|
361
|
+
o = !0;
|
|
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 || {}, g = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Hn }, utils: typeof i.utils == "object" && i.utils || {} }, u = Qn(a), f = { css: Bt(g, u), globalCss: lo(g, u), keyframes: co(g, u), createTheme: go(g, u), reset() {
|
|
363
|
+
u.reset(), f.theme.toString();
|
|
364
|
+
}, theme: {}, sheet: u, config: g, prefix: s, getCssText: u.toString, toString: u.toString };
|
|
365
365
|
return String(f.theme = f.createTheme(c)), f;
|
|
366
366
|
});
|
|
367
|
-
return
|
|
367
|
+
return o || r.reset(), r;
|
|
368
368
|
})(e);
|
|
369
|
-
return t.styled = (({ config: n, sheet:
|
|
370
|
-
const
|
|
369
|
+
return t.styled = (({ config: n, sheet: o }) => po(n, () => {
|
|
370
|
+
const r = Bt(n, o);
|
|
371
371
|
return (...i) => {
|
|
372
|
-
const s =
|
|
373
|
-
const
|
|
374
|
-
return delete f.as, f.ref =
|
|
372
|
+
const s = r(...i), l = s[pe].type, a = Se.forwardRef((c, g) => {
|
|
373
|
+
const u = c && c.as || l, { props: f, deferredInjector: d } = s(c);
|
|
374
|
+
return delete f.as, f.ref = g, d ? Se.createElement(Se.Fragment, null, Se.createElement(u, f), Se.createElement(d, null)) : Se.createElement(u, f);
|
|
375
375
|
});
|
|
376
|
-
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[pe] = s[pe], a;
|
|
377
377
|
};
|
|
378
378
|
}))(t), t;
|
|
379
379
|
};
|
|
380
380
|
let At = 9999;
|
|
381
|
-
const Ot = () => (At--, At), { styled: j, css:
|
|
381
|
+
const Ot = () => (At--, At), { styled: j, css: He, keyframes: Me, globalCss: Ti, getCssText: Ii } = ho({
|
|
382
382
|
theme: {
|
|
383
383
|
colors: {
|
|
384
384
|
gray50: "#F9FAFA",
|
|
@@ -504,24 +504,24 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
504
504
|
lg: "(min-width: 1200px)",
|
|
505
505
|
print: "print"
|
|
506
506
|
}
|
|
507
|
-
}),
|
|
507
|
+
}), bo = Me({
|
|
508
508
|
"0%": {
|
|
509
509
|
transform: "rotate(0)"
|
|
510
510
|
},
|
|
511
511
|
"100%": {
|
|
512
512
|
transform: "rotate(360deg)"
|
|
513
513
|
}
|
|
514
|
-
}),
|
|
514
|
+
}), yo = Me({
|
|
515
515
|
"0%": {
|
|
516
516
|
strokeDashoffset: 600
|
|
517
517
|
},
|
|
518
518
|
"100%": {
|
|
519
519
|
strokeDashoffset: 0
|
|
520
520
|
}
|
|
521
|
-
}),
|
|
522
|
-
animation: `${
|
|
523
|
-
}),
|
|
524
|
-
animation: `${
|
|
521
|
+
}), vo = j("svg", {
|
|
522
|
+
animation: `${bo} 2s linear infinite`
|
|
523
|
+
}), xo = j("circle", {
|
|
524
|
+
animation: `${yo} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
|
|
525
525
|
fill: "transparent",
|
|
526
526
|
stroke: "currentColor",
|
|
527
527
|
strokeDasharray: 300,
|
|
@@ -529,7 +529,7 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
529
529
|
strokeLinecap: "round",
|
|
530
530
|
strokeMiterlimit: 10,
|
|
531
531
|
strokeWidth: 12
|
|
532
|
-
}),
|
|
532
|
+
}), wo = j("div", {
|
|
533
533
|
lineHeight: 0,
|
|
534
534
|
flexShrink: 0,
|
|
535
535
|
variants: {
|
|
@@ -567,20 +567,20 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
567
567
|
size: "sm",
|
|
568
568
|
color: "dark"
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
570
|
+
}), $o = xe(
|
|
571
571
|
(e, t) => /* @__PURE__ */ z(
|
|
572
|
-
|
|
572
|
+
wo,
|
|
573
573
|
{
|
|
574
574
|
ref: t,
|
|
575
575
|
...e,
|
|
576
576
|
children: /* @__PURE__ */ z(
|
|
577
|
-
|
|
577
|
+
vo,
|
|
578
578
|
{
|
|
579
579
|
x: "0px",
|
|
580
580
|
y: "0px",
|
|
581
581
|
viewBox: "0 0 150 150",
|
|
582
582
|
children: /* @__PURE__ */ z(
|
|
583
|
-
|
|
583
|
+
xo,
|
|
584
584
|
{
|
|
585
585
|
cx: "75",
|
|
586
586
|
cy: "75",
|
|
@@ -591,7 +591,7 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
591
591
|
)
|
|
592
592
|
}
|
|
593
593
|
)
|
|
594
|
-
),
|
|
594
|
+
), So = j("button", {
|
|
595
595
|
appearance: "none",
|
|
596
596
|
margin: 0,
|
|
597
597
|
padding: 0,
|
|
@@ -736,24 +736,24 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
736
736
|
color: "secondary",
|
|
737
737
|
size: "md"
|
|
738
738
|
}
|
|
739
|
-
}), sn =
|
|
740
|
-
({ children: e, disabled: t, isLoading: n, variant:
|
|
741
|
-
|
|
739
|
+
}), sn = xe(
|
|
740
|
+
({ children: e, disabled: t, isLoading: n, variant: o, color: r, ...i }, s) => (!r && o === "primary" && (r = "primary"), /* @__PURE__ */ Pe(
|
|
741
|
+
So,
|
|
742
742
|
{
|
|
743
743
|
ref: s,
|
|
744
744
|
type: "button",
|
|
745
745
|
role: "button",
|
|
746
746
|
disabled: t || n,
|
|
747
|
-
variant:
|
|
748
|
-
color:
|
|
747
|
+
variant: o,
|
|
748
|
+
color: r,
|
|
749
749
|
...i,
|
|
750
750
|
children: [
|
|
751
751
|
e,
|
|
752
|
-
n && /* @__PURE__ */ z(
|
|
752
|
+
n && /* @__PURE__ */ z($o, { color: "inherit" })
|
|
753
753
|
]
|
|
754
754
|
}
|
|
755
755
|
))
|
|
756
|
-
),
|
|
756
|
+
), Ro = j("div", {
|
|
757
757
|
padding: "$3",
|
|
758
758
|
borderRadius: "$md",
|
|
759
759
|
variants: {
|
|
@@ -792,9 +792,9 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
792
792
|
color: "info",
|
|
793
793
|
size: "md"
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
795
|
+
}), Bi = xe(
|
|
796
796
|
({ children: e, ...t }, n) => /* @__PURE__ */ z(
|
|
797
|
-
|
|
797
|
+
Ro,
|
|
798
798
|
{
|
|
799
799
|
ref: n,
|
|
800
800
|
role: "alert",
|
|
@@ -802,19 +802,19 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
802
802
|
children: e
|
|
803
803
|
}
|
|
804
804
|
)
|
|
805
|
-
),
|
|
805
|
+
), Eo = Me({
|
|
806
806
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
807
807
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
808
|
-
}),
|
|
808
|
+
}), Co = Me({
|
|
809
809
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
810
810
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
811
|
-
}),
|
|
811
|
+
}), ko = Me({
|
|
812
812
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
813
813
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
814
|
-
}),
|
|
814
|
+
}), To = Me({
|
|
815
815
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
816
816
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
817
|
-
}),
|
|
817
|
+
}), Io = He({
|
|
818
818
|
backgroundColor: "white",
|
|
819
819
|
boxShadow: "$overlayCard",
|
|
820
820
|
borderRadius: "$sm",
|
|
@@ -824,29 +824,29 @@ const Ot = () => (At--, At), { styled: j, css: We, keyframes: De, globalCss: Ei,
|
|
|
824
824
|
// so for other popups that uses `OverlayCard` to work
|
|
825
825
|
// we need to explicitly set this.
|
|
826
826
|
pointerEvents: "auto"
|
|
827
|
-
}),
|
|
827
|
+
}), Bo = He({
|
|
828
828
|
animationDuration: "400ms",
|
|
829
829
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
830
830
|
willChange: "transform, opacity",
|
|
831
831
|
'&[data-state="open"]': {
|
|
832
|
-
'&[data-side="top"]': { animationName:
|
|
833
|
-
'&[data-side="right"]': { animationName:
|
|
834
|
-
'&[data-side="bottom"]': { animationName:
|
|
835
|
-
'&[data-side="left"]': { animationName:
|
|
832
|
+
'&[data-side="top"]': { animationName: ko },
|
|
833
|
+
'&[data-side="right"]': { animationName: To },
|
|
834
|
+
'&[data-side="bottom"]': { animationName: Eo },
|
|
835
|
+
'&[data-side="left"]': { animationName: Co }
|
|
836
836
|
}
|
|
837
837
|
}), ln = j(
|
|
838
838
|
"div",
|
|
839
|
-
|
|
840
|
-
|
|
839
|
+
Io,
|
|
840
|
+
Bo
|
|
841
841
|
);
|
|
842
|
-
function
|
|
842
|
+
function se(e) {
|
|
843
843
|
return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
844
844
|
}
|
|
845
845
|
function q(e) {
|
|
846
846
|
var t;
|
|
847
847
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function re(e) {
|
|
850
850
|
var t;
|
|
851
851
|
return (t = (an(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
852
852
|
}
|
|
@@ -862,36 +862,36 @@ function Z(e) {
|
|
|
862
862
|
function ct(e) {
|
|
863
863
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Ve(e) {
|
|
866
866
|
const {
|
|
867
867
|
overflow: t,
|
|
868
868
|
overflowX: n,
|
|
869
|
-
overflowY:
|
|
870
|
-
display:
|
|
869
|
+
overflowY: o,
|
|
870
|
+
display: r
|
|
871
871
|
} = J(e);
|
|
872
|
-
return /auto|scroll|overlay|hidden|clip/.test(t +
|
|
872
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
return ["table", "td", "th"].includes(
|
|
874
|
+
function Po(e) {
|
|
875
|
+
return ["table", "td", "th"].includes(se(e));
|
|
876
876
|
}
|
|
877
877
|
function ht(e) {
|
|
878
878
|
const t = bt(), n = J(e);
|
|
879
|
-
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((
|
|
879
|
+
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((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
880
880
|
}
|
|
881
|
-
function
|
|
882
|
-
let t =
|
|
883
|
-
for (; Z(t) && !
|
|
881
|
+
function Ao(e) {
|
|
882
|
+
let t = ye(e);
|
|
883
|
+
for (; Z(t) && !Ae(t); ) {
|
|
884
884
|
if (ht(t))
|
|
885
885
|
return t;
|
|
886
|
-
t =
|
|
886
|
+
t = ye(t);
|
|
887
887
|
}
|
|
888
888
|
return null;
|
|
889
889
|
}
|
|
890
890
|
function bt() {
|
|
891
891
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
return ["html", "body", "#document"].includes(
|
|
893
|
+
function Ae(e) {
|
|
894
|
+
return ["html", "body", "#document"].includes(se(e));
|
|
895
895
|
}
|
|
896
896
|
function J(e) {
|
|
897
897
|
return q(e).getComputedStyle(e);
|
|
@@ -905,29 +905,29 @@ function et(e) {
|
|
|
905
905
|
scrollTop: e.pageYOffset
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
if (
|
|
908
|
+
function ye(e) {
|
|
909
|
+
if (se(e) === "html")
|
|
910
910
|
return e;
|
|
911
911
|
const t = (
|
|
912
912
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
913
913
|
e.assignedSlot || // DOM Element detected.
|
|
914
914
|
e.parentNode || // ShadowRoot detected.
|
|
915
915
|
ct(e) && e.host || // Fallback.
|
|
916
|
-
|
|
916
|
+
re(e)
|
|
917
917
|
);
|
|
918
918
|
return ct(t) ? t.host : t;
|
|
919
919
|
}
|
|
920
920
|
function cn(e) {
|
|
921
|
-
const t =
|
|
922
|
-
return
|
|
921
|
+
const t = ye(e);
|
|
922
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Ve(t) ? t : cn(t);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
var
|
|
924
|
+
function ie(e, t, n) {
|
|
925
|
+
var o;
|
|
926
926
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
927
|
-
const
|
|
928
|
-
return i ? t.concat(s, s.visualViewport || [],
|
|
927
|
+
const r = cn(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = q(r);
|
|
928
|
+
return i ? t.concat(s, s.visualViewport || [], Ve(r) ? r : [], s.frameElement && n ? ie(s.frameElement) : []) : t.concat(r, ie(r, [], n));
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Oo(e) {
|
|
931
931
|
let t = e.activeElement;
|
|
932
932
|
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
933
933
|
var n;
|
|
@@ -935,39 +935,39 @@ function Pr(e) {
|
|
|
935
935
|
}
|
|
936
936
|
return t;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function be(e, t) {
|
|
939
939
|
if (!e || !t)
|
|
940
940
|
return !1;
|
|
941
941
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
942
942
|
if (e.contains(t))
|
|
943
943
|
return !0;
|
|
944
944
|
if (n && ct(n)) {
|
|
945
|
-
let
|
|
946
|
-
for (;
|
|
947
|
-
if (e ===
|
|
945
|
+
let o = t;
|
|
946
|
+
for (; o; ) {
|
|
947
|
+
if (e === o)
|
|
948
948
|
return !0;
|
|
949
|
-
|
|
949
|
+
o = o.parentNode || o.host;
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
return !1;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Do() {
|
|
955
955
|
return /apple/i.test(navigator.vendor);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Ge(e, t) {
|
|
958
958
|
const n = ["mouse", "pen"];
|
|
959
959
|
return t || n.push("", void 0), n.includes(e);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Mo(e) {
|
|
962
962
|
return "nativeEvent" in e;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Lo(e) {
|
|
965
965
|
return e.matches("html,body");
|
|
966
966
|
}
|
|
967
967
|
function me(e) {
|
|
968
968
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function ot(e, t) {
|
|
971
971
|
if (t == null)
|
|
972
972
|
return !1;
|
|
973
973
|
if ("composedPath" in e)
|
|
@@ -975,35 +975,35 @@ function rt(e, t) {
|
|
|
975
975
|
const n = e;
|
|
976
976
|
return n.target != null && t.contains(n.target);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Ce(e) {
|
|
979
979
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
980
980
|
}
|
|
981
|
-
const
|
|
982
|
-
function
|
|
983
|
-
return Z(e) && e.matches(
|
|
981
|
+
const Fo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
982
|
+
function zo(e) {
|
|
983
|
+
return Z(e) && e.matches(Fo);
|
|
984
984
|
}
|
|
985
|
-
const
|
|
985
|
+
const oe = Math.min, Y = Math.max, Ue = Math.round, Ye = Math.floor, le = (e) => ({
|
|
986
986
|
x: e,
|
|
987
987
|
y: e
|
|
988
|
-
}),
|
|
988
|
+
}), Wo = {
|
|
989
989
|
left: "right",
|
|
990
990
|
right: "left",
|
|
991
991
|
bottom: "top",
|
|
992
992
|
top: "bottom"
|
|
993
|
-
},
|
|
993
|
+
}, No = {
|
|
994
994
|
start: "end",
|
|
995
995
|
end: "start"
|
|
996
996
|
};
|
|
997
997
|
function Dt(e, t, n) {
|
|
998
|
-
return
|
|
998
|
+
return Y(e, oe(t, n));
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Le(e, t) {
|
|
1001
1001
|
return typeof e == "function" ? e(t) : e;
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function ee(e) {
|
|
1004
1004
|
return e.split("-")[0];
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function _e(e) {
|
|
1007
1007
|
return e.split("-")[1];
|
|
1008
1008
|
}
|
|
1009
1009
|
function un(e) {
|
|
@@ -1012,31 +1012,31 @@ function un(e) {
|
|
|
1012
1012
|
function dn(e) {
|
|
1013
1013
|
return e === "y" ? "height" : "width";
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return ["top", "bottom"].includes(
|
|
1015
|
+
function Fe(e) {
|
|
1016
|
+
return ["top", "bottom"].includes(ee(e)) ? "y" : "x";
|
|
1017
1017
|
}
|
|
1018
1018
|
function fn(e) {
|
|
1019
|
-
return un(
|
|
1019
|
+
return un(Fe(e));
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function jo(e, t, n) {
|
|
1022
1022
|
n === void 0 && (n = !1);
|
|
1023
|
-
const
|
|
1024
|
-
let s =
|
|
1025
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1023
|
+
const o = _e(e), r = fn(e), i = dn(r);
|
|
1024
|
+
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1025
|
+
return t.reference[i] > t.floating[i] && (s = qe(s)), [s, qe(s)];
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const t =
|
|
1027
|
+
function Ho(e) {
|
|
1028
|
+
const t = qe(e);
|
|
1029
1029
|
return [ut(e), t, ut(t)];
|
|
1030
1030
|
}
|
|
1031
1031
|
function ut(e) {
|
|
1032
|
-
return e.replace(/start|end/g, (t) =>
|
|
1032
|
+
return e.replace(/start|end/g, (t) => No[t]);
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const
|
|
1034
|
+
function Vo(e, t, n) {
|
|
1035
|
+
const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
1036
1036
|
switch (e) {
|
|
1037
1037
|
case "top":
|
|
1038
1038
|
case "bottom":
|
|
1039
|
-
return n ? t ?
|
|
1039
|
+
return n ? t ? r : o : t ? o : r;
|
|
1040
1040
|
case "left":
|
|
1041
1041
|
case "right":
|
|
1042
1042
|
return t ? i : s;
|
|
@@ -1044,15 +1044,15 @@ function Nr(e, t, n) {
|
|
|
1044
1044
|
return [];
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
const
|
|
1049
|
-
let i =
|
|
1050
|
-
return
|
|
1047
|
+
function _o(e, t, n, o) {
|
|
1048
|
+
const r = _e(e);
|
|
1049
|
+
let i = Vo(ee(e), n === "start", o);
|
|
1050
|
+
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(ut)))), i;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1052
|
+
function qe(e) {
|
|
1053
|
+
return e.replace(/left|right|bottom|top/g, (t) => Wo[t]);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function Yo(e) {
|
|
1056
1056
|
return {
|
|
1057
1057
|
top: 0,
|
|
1058
1058
|
right: 0,
|
|
@@ -1061,15 +1061,15 @@ function Hr(e) {
|
|
|
1061
1061
|
...e
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return typeof e != "number" ?
|
|
1064
|
+
function gn(e) {
|
|
1065
|
+
return typeof e != "number" ? Yo(e) : {
|
|
1066
1066
|
top: e,
|
|
1067
1067
|
right: e,
|
|
1068
1068
|
bottom: e,
|
|
1069
1069
|
left: e
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Oe(e) {
|
|
1073
1073
|
return {
|
|
1074
1074
|
...e,
|
|
1075
1075
|
top: e.y,
|
|
@@ -1080,83 +1080,83 @@ function qe(e) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
function Mt(e, t, n) {
|
|
1082
1082
|
let {
|
|
1083
|
-
reference:
|
|
1084
|
-
floating:
|
|
1083
|
+
reference: o,
|
|
1084
|
+
floating: r
|
|
1085
1085
|
} = e;
|
|
1086
|
-
const i =
|
|
1087
|
-
let
|
|
1086
|
+
const i = Fe(t), s = fn(t), l = dn(s), a = ee(t), c = i === "y", g = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, f = o[l] / 2 - r[l] / 2;
|
|
1087
|
+
let d;
|
|
1088
1088
|
switch (a) {
|
|
1089
1089
|
case "top":
|
|
1090
|
-
|
|
1091
|
-
x:
|
|
1092
|
-
y:
|
|
1090
|
+
d = {
|
|
1091
|
+
x: g,
|
|
1092
|
+
y: o.y - r.height
|
|
1093
1093
|
};
|
|
1094
1094
|
break;
|
|
1095
1095
|
case "bottom":
|
|
1096
|
-
|
|
1097
|
-
x:
|
|
1098
|
-
y:
|
|
1096
|
+
d = {
|
|
1097
|
+
x: g,
|
|
1098
|
+
y: o.y + o.height
|
|
1099
1099
|
};
|
|
1100
1100
|
break;
|
|
1101
1101
|
case "right":
|
|
1102
|
-
|
|
1103
|
-
x:
|
|
1104
|
-
y:
|
|
1102
|
+
d = {
|
|
1103
|
+
x: o.x + o.width,
|
|
1104
|
+
y: u
|
|
1105
1105
|
};
|
|
1106
1106
|
break;
|
|
1107
1107
|
case "left":
|
|
1108
|
-
|
|
1109
|
-
x:
|
|
1110
|
-
y:
|
|
1108
|
+
d = {
|
|
1109
|
+
x: o.x - r.width,
|
|
1110
|
+
y: u
|
|
1111
1111
|
};
|
|
1112
1112
|
break;
|
|
1113
1113
|
default:
|
|
1114
|
-
|
|
1115
|
-
x:
|
|
1116
|
-
y:
|
|
1114
|
+
d = {
|
|
1115
|
+
x: o.x,
|
|
1116
|
+
y: o.y
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
|
-
switch (
|
|
1119
|
+
switch (_e(t)) {
|
|
1120
1120
|
case "start":
|
|
1121
|
-
|
|
1121
|
+
d[s] -= f * (n && c ? -1 : 1);
|
|
1122
1122
|
break;
|
|
1123
1123
|
case "end":
|
|
1124
|
-
|
|
1124
|
+
d[s] += f * (n && c ? -1 : 1);
|
|
1125
1125
|
break;
|
|
1126
1126
|
}
|
|
1127
|
-
return
|
|
1127
|
+
return d;
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1129
|
+
const Xo = async (e, t, n) => {
|
|
1130
1130
|
const {
|
|
1131
|
-
placement:
|
|
1132
|
-
strategy:
|
|
1131
|
+
placement: o = "bottom",
|
|
1132
|
+
strategy: r = "absolute",
|
|
1133
1133
|
middleware: i = [],
|
|
1134
1134
|
platform: s
|
|
1135
1135
|
} = n, l = i.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1136
1136
|
let c = await s.getElementRects({
|
|
1137
1137
|
reference: e,
|
|
1138
1138
|
floating: t,
|
|
1139
|
-
strategy:
|
|
1139
|
+
strategy: r
|
|
1140
1140
|
}), {
|
|
1141
|
-
x:
|
|
1142
|
-
y:
|
|
1143
|
-
} = Mt(c,
|
|
1141
|
+
x: g,
|
|
1142
|
+
y: u
|
|
1143
|
+
} = Mt(c, o, a), f = o, d = {}, m = 0;
|
|
1144
1144
|
for (let p = 0; p < l.length; p++) {
|
|
1145
1145
|
const {
|
|
1146
1146
|
name: w,
|
|
1147
1147
|
fn: h
|
|
1148
1148
|
} = l[p], {
|
|
1149
1149
|
x,
|
|
1150
|
-
y:
|
|
1150
|
+
y: B,
|
|
1151
1151
|
data: S,
|
|
1152
1152
|
reset: k
|
|
1153
1153
|
} = await h({
|
|
1154
|
-
x:
|
|
1155
|
-
y:
|
|
1156
|
-
initialPlacement:
|
|
1154
|
+
x: g,
|
|
1155
|
+
y: u,
|
|
1156
|
+
initialPlacement: o,
|
|
1157
1157
|
placement: f,
|
|
1158
|
-
strategy:
|
|
1159
|
-
middlewareData:
|
|
1158
|
+
strategy: r,
|
|
1159
|
+
middlewareData: d,
|
|
1160
1160
|
rects: c,
|
|
1161
1161
|
platform: s,
|
|
1162
1162
|
elements: {
|
|
@@ -1164,111 +1164,111 @@ const _r = async (e, t, n) => {
|
|
|
1164
1164
|
floating: t
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
|
-
|
|
1168
|
-
...
|
|
1167
|
+
g = x ?? g, u = B ?? u, d = {
|
|
1168
|
+
...d,
|
|
1169
1169
|
[w]: {
|
|
1170
|
-
...
|
|
1170
|
+
...d[w],
|
|
1171
1171
|
...S
|
|
1172
1172
|
}
|
|
1173
|
-
}, k &&
|
|
1173
|
+
}, k && m <= 50 && (m++, typeof k == "object" && (k.placement && (f = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
|
|
1174
1174
|
reference: e,
|
|
1175
1175
|
floating: t,
|
|
1176
|
-
strategy:
|
|
1176
|
+
strategy: r
|
|
1177
1177
|
}) : k.rects), {
|
|
1178
|
-
x:
|
|
1179
|
-
y:
|
|
1178
|
+
x: g,
|
|
1179
|
+
y: u
|
|
1180
1180
|
} = Mt(c, f, a)), p = -1);
|
|
1181
1181
|
}
|
|
1182
1182
|
return {
|
|
1183
|
-
x:
|
|
1184
|
-
y:
|
|
1183
|
+
x: g,
|
|
1184
|
+
y: u,
|
|
1185
1185
|
placement: f,
|
|
1186
|
-
strategy:
|
|
1187
|
-
middlewareData:
|
|
1186
|
+
strategy: r,
|
|
1187
|
+
middlewareData: d
|
|
1188
1188
|
};
|
|
1189
1189
|
};
|
|
1190
1190
|
async function yt(e, t) {
|
|
1191
1191
|
var n;
|
|
1192
1192
|
t === void 0 && (t = {});
|
|
1193
1193
|
const {
|
|
1194
|
-
x:
|
|
1195
|
-
y:
|
|
1194
|
+
x: o,
|
|
1195
|
+
y: r,
|
|
1196
1196
|
platform: i,
|
|
1197
1197
|
rects: s,
|
|
1198
1198
|
elements: l,
|
|
1199
1199
|
strategy: a
|
|
1200
1200
|
} = e, {
|
|
1201
1201
|
boundary: c = "clippingAncestors",
|
|
1202
|
-
rootBoundary:
|
|
1203
|
-
elementContext:
|
|
1202
|
+
rootBoundary: g = "viewport",
|
|
1203
|
+
elementContext: u = "floating",
|
|
1204
1204
|
altBoundary: f = !1,
|
|
1205
|
-
padding:
|
|
1206
|
-
} =
|
|
1205
|
+
padding: d = 0
|
|
1206
|
+
} = Le(t, e), m = gn(d), w = l[f ? u === "floating" ? "reference" : "floating" : u], h = Oe(await i.getClippingRect({
|
|
1207
1207
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
1208
1208
|
boundary: c,
|
|
1209
|
-
rootBoundary:
|
|
1209
|
+
rootBoundary: g,
|
|
1210
1210
|
strategy: a
|
|
1211
|
-
})), x =
|
|
1211
|
+
})), x = u === "floating" ? {
|
|
1212
1212
|
...s.floating,
|
|
1213
|
-
x:
|
|
1214
|
-
y:
|
|
1215
|
-
} : s.reference,
|
|
1213
|
+
x: o,
|
|
1214
|
+
y: r
|
|
1215
|
+
} : s.reference, B = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), S = await (i.isElement == null ? void 0 : i.isElement(B)) ? await (i.getScale == null ? void 0 : i.getScale(B)) || {
|
|
1216
1216
|
x: 1,
|
|
1217
1217
|
y: 1
|
|
1218
1218
|
} : {
|
|
1219
1219
|
x: 1,
|
|
1220
1220
|
y: 1
|
|
1221
|
-
}, k =
|
|
1221
|
+
}, k = Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1222
1222
|
elements: l,
|
|
1223
1223
|
rect: x,
|
|
1224
|
-
offsetParent:
|
|
1224
|
+
offsetParent: B,
|
|
1225
1225
|
strategy: a
|
|
1226
1226
|
}) : x);
|
|
1227
1227
|
return {
|
|
1228
|
-
top: (h.top - k.top +
|
|
1229
|
-
bottom: (k.bottom - h.bottom +
|
|
1230
|
-
left: (h.left - k.left +
|
|
1231
|
-
right: (k.right - h.right +
|
|
1228
|
+
top: (h.top - k.top + m.top) / S.y,
|
|
1229
|
+
bottom: (k.bottom - h.bottom + m.bottom) / S.y,
|
|
1230
|
+
left: (h.left - k.left + m.left) / S.x,
|
|
1231
|
+
right: (k.right - h.right + m.right) / S.x
|
|
1232
1232
|
};
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1234
|
+
const Ko = function(e) {
|
|
1235
1235
|
return e === void 0 && (e = {}), {
|
|
1236
1236
|
name: "flip",
|
|
1237
1237
|
options: e,
|
|
1238
1238
|
async fn(t) {
|
|
1239
|
-
var n,
|
|
1239
|
+
var n, o;
|
|
1240
1240
|
const {
|
|
1241
|
-
placement:
|
|
1241
|
+
placement: r,
|
|
1242
1242
|
middlewareData: i,
|
|
1243
1243
|
rects: s,
|
|
1244
1244
|
initialPlacement: l,
|
|
1245
1245
|
platform: a,
|
|
1246
1246
|
elements: c
|
|
1247
1247
|
} = t, {
|
|
1248
|
-
mainAxis:
|
|
1249
|
-
crossAxis:
|
|
1248
|
+
mainAxis: g = !0,
|
|
1249
|
+
crossAxis: u = !0,
|
|
1250
1250
|
fallbackPlacements: f,
|
|
1251
|
-
fallbackStrategy:
|
|
1252
|
-
fallbackAxisSideDirection:
|
|
1251
|
+
fallbackStrategy: d = "bestFit",
|
|
1252
|
+
fallbackAxisSideDirection: m = "none",
|
|
1253
1253
|
flipAlignment: p = !0,
|
|
1254
1254
|
...w
|
|
1255
|
-
} =
|
|
1255
|
+
} = Le(e, t);
|
|
1256
1256
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1257
1257
|
return {};
|
|
1258
|
-
const h =
|
|
1259
|
-
!f &&
|
|
1260
|
-
const k = [l, ...S], C = await yt(t, w),
|
|
1261
|
-
let T = ((
|
|
1262
|
-
if (
|
|
1263
|
-
const M =
|
|
1264
|
-
|
|
1258
|
+
const h = ee(r), x = ee(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [qe(l)] : Ho(l));
|
|
1259
|
+
!f && m !== "none" && S.push(..._o(l, p, m, B));
|
|
1260
|
+
const k = [l, ...S], C = await yt(t, w), P = [];
|
|
1261
|
+
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1262
|
+
if (g && P.push(C[h]), u) {
|
|
1263
|
+
const M = jo(r, s, B);
|
|
1264
|
+
P.push(C[M[0]], C[M[1]]);
|
|
1265
1265
|
}
|
|
1266
1266
|
if (T = [...T, {
|
|
1267
|
-
placement:
|
|
1268
|
-
overflows:
|
|
1269
|
-
}], !
|
|
1270
|
-
var
|
|
1271
|
-
const M = (((
|
|
1267
|
+
placement: r,
|
|
1268
|
+
overflows: P
|
|
1269
|
+
}], !P.every((M) => M <= 0)) {
|
|
1270
|
+
var D, A;
|
|
1271
|
+
const M = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, O = k[M];
|
|
1272
1272
|
if (O)
|
|
1273
1273
|
return {
|
|
1274
1274
|
data: {
|
|
@@ -1279,12 +1279,12 @@ const Yr = function(e) {
|
|
|
1279
1279
|
placement: O
|
|
1280
1280
|
}
|
|
1281
1281
|
};
|
|
1282
|
-
let b = (
|
|
1282
|
+
let b = (A = T.filter((v) => v.overflows[0] <= 0).sort((v, I) => v.overflows[1] - I.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
1283
1283
|
if (!b)
|
|
1284
|
-
switch (
|
|
1284
|
+
switch (d) {
|
|
1285
1285
|
case "bestFit": {
|
|
1286
|
-
var
|
|
1287
|
-
const v = (
|
|
1286
|
+
var L;
|
|
1287
|
+
const v = (L = T.map((I) => [I.placement, I.overflows.filter((R) => R > 0).reduce((R, $) => R + $, 0)]).sort((I, R) => I[1] - R[1])[0]) == null ? void 0 : L[0];
|
|
1288
1288
|
v && (b = v);
|
|
1289
1289
|
break;
|
|
1290
1290
|
}
|
|
@@ -1292,7 +1292,7 @@ const Yr = function(e) {
|
|
|
1292
1292
|
b = l;
|
|
1293
1293
|
break;
|
|
1294
1294
|
}
|
|
1295
|
-
if (
|
|
1295
|
+
if (r !== b)
|
|
1296
1296
|
return {
|
|
1297
1297
|
reset: {
|
|
1298
1298
|
placement: b
|
|
@@ -1303,48 +1303,128 @@ const Yr = function(e) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
};
|
|
1306
|
-
|
|
1306
|
+
function mn(e) {
|
|
1307
|
+
const t = oe(...e.map((i) => i.left)), n = oe(...e.map((i) => i.top)), o = Y(...e.map((i) => i.right)), r = Y(...e.map((i) => i.bottom));
|
|
1308
|
+
return {
|
|
1309
|
+
x: t,
|
|
1310
|
+
y: n,
|
|
1311
|
+
width: o - t,
|
|
1312
|
+
height: r - n
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
function Go(e) {
|
|
1316
|
+
const t = e.slice().sort((r, i) => r.y - i.y), n = [];
|
|
1317
|
+
let o = null;
|
|
1318
|
+
for (let r = 0; r < t.length; r++) {
|
|
1319
|
+
const i = t[r];
|
|
1320
|
+
!o || i.y - o.y > o.height / 2 ? n.push([i]) : n[n.length - 1].push(i), o = i;
|
|
1321
|
+
}
|
|
1322
|
+
return n.map((r) => Oe(mn(r)));
|
|
1323
|
+
}
|
|
1324
|
+
const Uo = function(e) {
|
|
1325
|
+
return e === void 0 && (e = {}), {
|
|
1326
|
+
name: "inline",
|
|
1327
|
+
options: e,
|
|
1328
|
+
async fn(t) {
|
|
1329
|
+
const {
|
|
1330
|
+
placement: n,
|
|
1331
|
+
elements: o,
|
|
1332
|
+
rects: r,
|
|
1333
|
+
platform: i,
|
|
1334
|
+
strategy: s
|
|
1335
|
+
} = t, {
|
|
1336
|
+
padding: l = 2,
|
|
1337
|
+
x: a,
|
|
1338
|
+
y: c
|
|
1339
|
+
} = Le(e, t), g = Array.from(await (i.getClientRects == null ? void 0 : i.getClientRects(o.reference)) || []), u = Go(g), f = Oe(mn(g)), d = gn(l);
|
|
1340
|
+
function m() {
|
|
1341
|
+
if (u.length === 2 && u[0].left > u[1].right && a != null && c != null)
|
|
1342
|
+
return u.find((w) => a > w.left - d.left && a < w.right + d.right && c > w.top - d.top && c < w.bottom + d.bottom) || f;
|
|
1343
|
+
if (u.length >= 2) {
|
|
1344
|
+
if (Fe(n) === "y") {
|
|
1345
|
+
const A = u[0], L = u[u.length - 1], M = ee(n) === "top", O = A.top, b = L.bottom, v = M ? A.left : L.left, I = M ? A.right : L.right, R = I - v, $ = b - O;
|
|
1346
|
+
return {
|
|
1347
|
+
top: O,
|
|
1348
|
+
bottom: b,
|
|
1349
|
+
left: v,
|
|
1350
|
+
right: I,
|
|
1351
|
+
width: R,
|
|
1352
|
+
height: $,
|
|
1353
|
+
x: v,
|
|
1354
|
+
y: O
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
const w = ee(n) === "left", h = Y(...u.map((A) => A.right)), x = oe(...u.map((A) => A.left)), B = u.filter((A) => w ? A.left === x : A.right === h), S = B[0].top, k = B[B.length - 1].bottom, C = x, P = h, T = P - C, D = k - S;
|
|
1358
|
+
return {
|
|
1359
|
+
top: S,
|
|
1360
|
+
bottom: k,
|
|
1361
|
+
left: C,
|
|
1362
|
+
right: P,
|
|
1363
|
+
width: T,
|
|
1364
|
+
height: D,
|
|
1365
|
+
x: C,
|
|
1366
|
+
y: S
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
return f;
|
|
1370
|
+
}
|
|
1371
|
+
const p = await i.getElementRects({
|
|
1372
|
+
reference: {
|
|
1373
|
+
getBoundingClientRect: m
|
|
1374
|
+
},
|
|
1375
|
+
floating: o.floating,
|
|
1376
|
+
strategy: s
|
|
1377
|
+
});
|
|
1378
|
+
return r.reference.x !== p.reference.x || r.reference.y !== p.reference.y || r.reference.width !== p.reference.width || r.reference.height !== p.reference.height ? {
|
|
1379
|
+
reset: {
|
|
1380
|
+
rects: p
|
|
1381
|
+
}
|
|
1382
|
+
} : {};
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
async function qo(e, t) {
|
|
1307
1387
|
const {
|
|
1308
1388
|
placement: n,
|
|
1309
|
-
platform:
|
|
1310
|
-
elements:
|
|
1311
|
-
} = e, i = await (
|
|
1389
|
+
platform: o,
|
|
1390
|
+
elements: r
|
|
1391
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ee(n), l = _e(n), a = Fe(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, g = i && a ? -1 : 1, u = Le(t, e);
|
|
1312
1392
|
let {
|
|
1313
1393
|
mainAxis: f,
|
|
1314
|
-
crossAxis:
|
|
1315
|
-
alignmentAxis:
|
|
1316
|
-
} = typeof
|
|
1317
|
-
mainAxis:
|
|
1394
|
+
crossAxis: d,
|
|
1395
|
+
alignmentAxis: m
|
|
1396
|
+
} = typeof u == "number" ? {
|
|
1397
|
+
mainAxis: u,
|
|
1318
1398
|
crossAxis: 0,
|
|
1319
1399
|
alignmentAxis: null
|
|
1320
1400
|
} : {
|
|
1321
1401
|
mainAxis: 0,
|
|
1322
1402
|
crossAxis: 0,
|
|
1323
1403
|
alignmentAxis: null,
|
|
1324
|
-
...
|
|
1404
|
+
...u
|
|
1325
1405
|
};
|
|
1326
|
-
return l && typeof
|
|
1327
|
-
x:
|
|
1406
|
+
return l && typeof m == "number" && (d = l === "end" ? m * -1 : m), a ? {
|
|
1407
|
+
x: d * g,
|
|
1328
1408
|
y: f * c
|
|
1329
1409
|
} : {
|
|
1330
1410
|
x: f * c,
|
|
1331
|
-
y:
|
|
1411
|
+
y: d * g
|
|
1332
1412
|
};
|
|
1333
1413
|
}
|
|
1334
|
-
const
|
|
1414
|
+
const Zo = function(e) {
|
|
1335
1415
|
return e === void 0 && (e = 0), {
|
|
1336
1416
|
name: "offset",
|
|
1337
1417
|
options: e,
|
|
1338
1418
|
async fn(t) {
|
|
1339
|
-
var n,
|
|
1419
|
+
var n, o;
|
|
1340
1420
|
const {
|
|
1341
|
-
x:
|
|
1421
|
+
x: r,
|
|
1342
1422
|
y: i,
|
|
1343
1423
|
placement: s,
|
|
1344
1424
|
middlewareData: l
|
|
1345
|
-
} = t, a = await
|
|
1346
|
-
return s === ((n = l.offset) == null ? void 0 : n.placement) && (
|
|
1347
|
-
x:
|
|
1425
|
+
} = t, a = await qo(t, e);
|
|
1426
|
+
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
1427
|
+
x: r + a.x,
|
|
1348
1428
|
y: i + a.y,
|
|
1349
1429
|
data: {
|
|
1350
1430
|
...a,
|
|
@@ -1353,15 +1433,15 @@ const Xr = function(e) {
|
|
|
1353
1433
|
};
|
|
1354
1434
|
}
|
|
1355
1435
|
};
|
|
1356
|
-
},
|
|
1436
|
+
}, Jo = function(e) {
|
|
1357
1437
|
return e === void 0 && (e = {}), {
|
|
1358
1438
|
name: "shift",
|
|
1359
1439
|
options: e,
|
|
1360
1440
|
async fn(t) {
|
|
1361
1441
|
const {
|
|
1362
1442
|
x: n,
|
|
1363
|
-
y:
|
|
1364
|
-
placement:
|
|
1443
|
+
y: o,
|
|
1444
|
+
placement: r
|
|
1365
1445
|
} = t, {
|
|
1366
1446
|
mainAxis: i = !0,
|
|
1367
1447
|
crossAxis: s = !1,
|
|
@@ -1378,73 +1458,73 @@ const Xr = function(e) {
|
|
|
1378
1458
|
}
|
|
1379
1459
|
},
|
|
1380
1460
|
...a
|
|
1381
|
-
} =
|
|
1461
|
+
} = Le(e, t), c = {
|
|
1382
1462
|
x: n,
|
|
1383
|
-
y:
|
|
1384
|
-
},
|
|
1385
|
-
let
|
|
1463
|
+
y: o
|
|
1464
|
+
}, g = await yt(t, a), u = Fe(ee(r)), f = un(u);
|
|
1465
|
+
let d = c[f], m = c[u];
|
|
1386
1466
|
if (i) {
|
|
1387
|
-
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x =
|
|
1388
|
-
|
|
1467
|
+
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = d + g[w], B = d - g[h];
|
|
1468
|
+
d = Dt(x, d, B);
|
|
1389
1469
|
}
|
|
1390
1470
|
if (s) {
|
|
1391
|
-
const w =
|
|
1392
|
-
|
|
1471
|
+
const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x = m + g[w], B = m - g[h];
|
|
1472
|
+
m = Dt(x, m, B);
|
|
1393
1473
|
}
|
|
1394
1474
|
const p = l.fn({
|
|
1395
1475
|
...t,
|
|
1396
|
-
[f]:
|
|
1397
|
-
[
|
|
1476
|
+
[f]: d,
|
|
1477
|
+
[u]: m
|
|
1398
1478
|
});
|
|
1399
1479
|
return {
|
|
1400
1480
|
...p,
|
|
1401
1481
|
data: {
|
|
1402
1482
|
x: p.x - n,
|
|
1403
|
-
y: p.y -
|
|
1483
|
+
y: p.y - o
|
|
1404
1484
|
}
|
|
1405
1485
|
};
|
|
1406
1486
|
}
|
|
1407
1487
|
};
|
|
1408
|
-
},
|
|
1488
|
+
}, Qo = function(e) {
|
|
1409
1489
|
return e === void 0 && (e = {}), {
|
|
1410
1490
|
name: "size",
|
|
1411
1491
|
options: e,
|
|
1412
1492
|
async fn(t) {
|
|
1413
1493
|
const {
|
|
1414
1494
|
placement: n,
|
|
1415
|
-
rects:
|
|
1416
|
-
platform:
|
|
1495
|
+
rects: o,
|
|
1496
|
+
platform: r,
|
|
1417
1497
|
elements: i
|
|
1418
1498
|
} = t, {
|
|
1419
1499
|
apply: s = () => {
|
|
1420
1500
|
},
|
|
1421
1501
|
...l
|
|
1422
|
-
} =
|
|
1502
|
+
} = Le(e, t), a = await yt(t, l), c = ee(n), g = _e(n), u = Fe(n) === "y", {
|
|
1423
1503
|
width: f,
|
|
1424
|
-
height:
|
|
1425
|
-
} =
|
|
1426
|
-
let
|
|
1427
|
-
c === "top" || c === "bottom" ? (
|
|
1428
|
-
const w =
|
|
1429
|
-
let
|
|
1430
|
-
if (
|
|
1504
|
+
height: d
|
|
1505
|
+
} = o.floating;
|
|
1506
|
+
let m, p;
|
|
1507
|
+
c === "top" || c === "bottom" ? (m = c, p = g === (await (r.isRTL == null ? void 0 : r.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (p = c, m = g === "end" ? "top" : "bottom");
|
|
1508
|
+
const w = d - a[m], h = f - a[p], x = !t.middlewareData.shift;
|
|
1509
|
+
let B = w, S = h;
|
|
1510
|
+
if (u) {
|
|
1431
1511
|
const C = f - a.left - a.right;
|
|
1432
|
-
S =
|
|
1512
|
+
S = g || x ? oe(h, C) : C;
|
|
1433
1513
|
} else {
|
|
1434
|
-
const C =
|
|
1435
|
-
|
|
1514
|
+
const C = d - a.top - a.bottom;
|
|
1515
|
+
B = g || x ? oe(w, C) : C;
|
|
1436
1516
|
}
|
|
1437
|
-
if (x && !
|
|
1438
|
-
const C =
|
|
1439
|
-
|
|
1517
|
+
if (x && !g) {
|
|
1518
|
+
const C = Y(a.left, 0), P = Y(a.right, 0), T = Y(a.top, 0), D = Y(a.bottom, 0);
|
|
1519
|
+
u ? S = f - 2 * (C !== 0 || P !== 0 ? C + P : Y(a.left, a.right)) : B = d - 2 * (T !== 0 || D !== 0 ? T + D : Y(a.top, a.bottom));
|
|
1440
1520
|
}
|
|
1441
1521
|
await s({
|
|
1442
1522
|
...t,
|
|
1443
1523
|
availableWidth: S,
|
|
1444
|
-
availableHeight:
|
|
1524
|
+
availableHeight: B
|
|
1445
1525
|
});
|
|
1446
|
-
const k = await
|
|
1447
|
-
return f !== k.width ||
|
|
1526
|
+
const k = await r.getDimensions(i.floating);
|
|
1527
|
+
return f !== k.width || d !== k.height ? {
|
|
1448
1528
|
reset: {
|
|
1449
1529
|
rects: !0
|
|
1450
1530
|
}
|
|
@@ -1452,70 +1532,70 @@ const Xr = function(e) {
|
|
|
1452
1532
|
}
|
|
1453
1533
|
};
|
|
1454
1534
|
};
|
|
1455
|
-
function
|
|
1535
|
+
function pn(e) {
|
|
1456
1536
|
const t = J(e);
|
|
1457
|
-
let n = parseFloat(t.width) || 0,
|
|
1458
|
-
const
|
|
1459
|
-
return l && (n = i,
|
|
1537
|
+
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1538
|
+
const r = Z(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = Ue(n) !== i || Ue(o) !== s;
|
|
1539
|
+
return l && (n = i, o = s), {
|
|
1460
1540
|
width: n,
|
|
1461
|
-
height:
|
|
1541
|
+
height: o,
|
|
1462
1542
|
$: l
|
|
1463
1543
|
};
|
|
1464
1544
|
}
|
|
1465
1545
|
function vt(e) {
|
|
1466
1546
|
return N(e) ? e : e.contextElement;
|
|
1467
1547
|
}
|
|
1468
|
-
function
|
|
1548
|
+
function Be(e) {
|
|
1469
1549
|
const t = vt(e);
|
|
1470
1550
|
if (!Z(t))
|
|
1471
|
-
return
|
|
1551
|
+
return le(1);
|
|
1472
1552
|
const n = t.getBoundingClientRect(), {
|
|
1473
|
-
width:
|
|
1474
|
-
height:
|
|
1553
|
+
width: o,
|
|
1554
|
+
height: r,
|
|
1475
1555
|
$: i
|
|
1476
|
-
} =
|
|
1477
|
-
let s = (i ?
|
|
1556
|
+
} = pn(t);
|
|
1557
|
+
let s = (i ? Ue(n.width) : n.width) / o, l = (i ? Ue(n.height) : n.height) / r;
|
|
1478
1558
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1479
1559
|
x: s,
|
|
1480
1560
|
y: l
|
|
1481
1561
|
};
|
|
1482
1562
|
}
|
|
1483
|
-
const
|
|
1484
|
-
function
|
|
1563
|
+
const er = /* @__PURE__ */ le(0);
|
|
1564
|
+
function hn(e) {
|
|
1485
1565
|
const t = q(e);
|
|
1486
|
-
return !bt() || !t.visualViewport ?
|
|
1566
|
+
return !bt() || !t.visualViewport ? er : {
|
|
1487
1567
|
x: t.visualViewport.offsetLeft,
|
|
1488
1568
|
y: t.visualViewport.offsetTop
|
|
1489
1569
|
};
|
|
1490
1570
|
}
|
|
1491
|
-
function
|
|
1571
|
+
function tr(e, t, n) {
|
|
1492
1572
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1493
1573
|
}
|
|
1494
|
-
function
|
|
1574
|
+
function ve(e, t, n, o) {
|
|
1495
1575
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1496
|
-
const
|
|
1497
|
-
let s =
|
|
1498
|
-
t && (
|
|
1499
|
-
const l =
|
|
1500
|
-
let a = (
|
|
1576
|
+
const r = e.getBoundingClientRect(), i = vt(e);
|
|
1577
|
+
let s = le(1);
|
|
1578
|
+
t && (o ? N(o) && (s = Be(o)) : s = Be(e));
|
|
1579
|
+
const l = tr(i, n, o) ? hn(i) : le(0);
|
|
1580
|
+
let a = (r.left + l.x) / s.x, c = (r.top + l.y) / s.y, g = r.width / s.x, u = r.height / s.y;
|
|
1501
1581
|
if (i) {
|
|
1502
|
-
const f = q(i),
|
|
1503
|
-
let
|
|
1504
|
-
for (; p &&
|
|
1505
|
-
const w =
|
|
1506
|
-
a *= w.x, c *= w.y,
|
|
1582
|
+
const f = q(i), d = o && N(o) ? q(o) : o;
|
|
1583
|
+
let m = f, p = m.frameElement;
|
|
1584
|
+
for (; p && o && d !== m; ) {
|
|
1585
|
+
const w = Be(p), h = p.getBoundingClientRect(), x = J(p), B = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
1586
|
+
a *= w.x, c *= w.y, g *= w.x, u *= w.y, a += B, c += S, m = q(p), p = m.frameElement;
|
|
1507
1587
|
}
|
|
1508
1588
|
}
|
|
1509
|
-
return
|
|
1510
|
-
width:
|
|
1511
|
-
height:
|
|
1589
|
+
return Oe({
|
|
1590
|
+
width: g,
|
|
1591
|
+
height: u,
|
|
1512
1592
|
x: a,
|
|
1513
1593
|
y: c
|
|
1514
1594
|
});
|
|
1515
1595
|
}
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1596
|
+
const nr = [":popover-open", ":modal"];
|
|
1597
|
+
function bn(e) {
|
|
1598
|
+
return nr.some((t) => {
|
|
1519
1599
|
try {
|
|
1520
1600
|
return e.matches(t);
|
|
1521
1601
|
} catch {
|
|
@@ -1523,56 +1603,56 @@ function pn(e) {
|
|
|
1523
1603
|
}
|
|
1524
1604
|
});
|
|
1525
1605
|
}
|
|
1526
|
-
function
|
|
1606
|
+
function or(e) {
|
|
1527
1607
|
let {
|
|
1528
1608
|
elements: t,
|
|
1529
1609
|
rect: n,
|
|
1530
|
-
offsetParent:
|
|
1531
|
-
strategy:
|
|
1610
|
+
offsetParent: o,
|
|
1611
|
+
strategy: r
|
|
1532
1612
|
} = e;
|
|
1533
|
-
const i =
|
|
1534
|
-
if (
|
|
1613
|
+
const i = r === "fixed", s = re(o), l = t ? bn(t.floating) : !1;
|
|
1614
|
+
if (o === s || l && i)
|
|
1535
1615
|
return n;
|
|
1536
1616
|
let a = {
|
|
1537
1617
|
scrollLeft: 0,
|
|
1538
1618
|
scrollTop: 0
|
|
1539
|
-
}, c =
|
|
1540
|
-
const
|
|
1541
|
-
if ((
|
|
1542
|
-
const f =
|
|
1543
|
-
c =
|
|
1619
|
+
}, c = le(1);
|
|
1620
|
+
const g = le(0), u = Z(o);
|
|
1621
|
+
if ((u || !u && !i) && ((se(o) !== "body" || Ve(s)) && (a = et(o)), Z(o))) {
|
|
1622
|
+
const f = ve(o);
|
|
1623
|
+
c = Be(o), g.x = f.x + o.clientLeft, g.y = f.y + o.clientTop;
|
|
1544
1624
|
}
|
|
1545
1625
|
return {
|
|
1546
1626
|
width: n.width * c.x,
|
|
1547
1627
|
height: n.height * c.y,
|
|
1548
|
-
x: n.x * c.x - a.scrollLeft * c.x +
|
|
1549
|
-
y: n.y * c.y - a.scrollTop * c.y +
|
|
1628
|
+
x: n.x * c.x - a.scrollLeft * c.x + g.x,
|
|
1629
|
+
y: n.y * c.y - a.scrollTop * c.y + g.y
|
|
1550
1630
|
};
|
|
1551
1631
|
}
|
|
1552
|
-
function
|
|
1632
|
+
function rr(e) {
|
|
1553
1633
|
return Array.from(e.getClientRects());
|
|
1554
1634
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return
|
|
1635
|
+
function yn(e) {
|
|
1636
|
+
return ve(re(e)).left + et(e).scrollLeft;
|
|
1557
1637
|
}
|
|
1558
|
-
function
|
|
1559
|
-
const t =
|
|
1560
|
-
let s = -n.scrollLeft +
|
|
1638
|
+
function ir(e) {
|
|
1639
|
+
const t = re(e), n = et(e), o = e.ownerDocument.body, r = Y(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = Y(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1640
|
+
let s = -n.scrollLeft + yn(e);
|
|
1561
1641
|
const l = -n.scrollTop;
|
|
1562
|
-
return J(
|
|
1563
|
-
width:
|
|
1642
|
+
return J(o).direction === "rtl" && (s += Y(t.clientWidth, o.clientWidth) - r), {
|
|
1643
|
+
width: r,
|
|
1564
1644
|
height: i,
|
|
1565
1645
|
x: s,
|
|
1566
1646
|
y: l
|
|
1567
1647
|
};
|
|
1568
1648
|
}
|
|
1569
|
-
function
|
|
1570
|
-
const n = q(e),
|
|
1571
|
-
let i =
|
|
1572
|
-
if (
|
|
1573
|
-
i =
|
|
1649
|
+
function sr(e, t) {
|
|
1650
|
+
const n = q(e), o = re(e), r = n.visualViewport;
|
|
1651
|
+
let i = o.clientWidth, s = o.clientHeight, l = 0, a = 0;
|
|
1652
|
+
if (r) {
|
|
1653
|
+
i = r.width, s = r.height;
|
|
1574
1654
|
const c = bt();
|
|
1575
|
-
(!c || c && t === "fixed") && (l =
|
|
1655
|
+
(!c || c && t === "fixed") && (l = r.offsetLeft, a = r.offsetTop);
|
|
1576
1656
|
}
|
|
1577
1657
|
return {
|
|
1578
1658
|
width: i,
|
|
@@ -1581,8 +1661,8 @@ function no(e, t) {
|
|
|
1581
1661
|
y: a
|
|
1582
1662
|
};
|
|
1583
1663
|
}
|
|
1584
|
-
function
|
|
1585
|
-
const n =
|
|
1664
|
+
function lr(e, t) {
|
|
1665
|
+
const n = ve(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Z(e) ? Be(e) : le(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, a = r * i.x, c = o * i.y;
|
|
1586
1666
|
return {
|
|
1587
1667
|
width: s,
|
|
1588
1668
|
height: l,
|
|
@@ -1590,52 +1670,52 @@ function ro(e, t) {
|
|
|
1590
1670
|
y: c
|
|
1591
1671
|
};
|
|
1592
1672
|
}
|
|
1593
|
-
function
|
|
1594
|
-
let
|
|
1673
|
+
function Lt(e, t, n) {
|
|
1674
|
+
let o;
|
|
1595
1675
|
if (t === "viewport")
|
|
1596
|
-
|
|
1676
|
+
o = sr(e, n);
|
|
1597
1677
|
else if (t === "document")
|
|
1598
|
-
|
|
1678
|
+
o = ir(re(e));
|
|
1599
1679
|
else if (N(t))
|
|
1600
|
-
|
|
1680
|
+
o = lr(t, n);
|
|
1601
1681
|
else {
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1682
|
+
const r = hn(e);
|
|
1683
|
+
o = {
|
|
1604
1684
|
...t,
|
|
1605
|
-
x: t.x -
|
|
1606
|
-
y: t.y -
|
|
1685
|
+
x: t.x - r.x,
|
|
1686
|
+
y: t.y - r.y
|
|
1607
1687
|
};
|
|
1608
1688
|
}
|
|
1609
|
-
return
|
|
1689
|
+
return Oe(o);
|
|
1610
1690
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const n =
|
|
1613
|
-
return n === t || !N(n) ||
|
|
1691
|
+
function vn(e, t) {
|
|
1692
|
+
const n = ye(e);
|
|
1693
|
+
return n === t || !N(n) || Ae(n) ? !1 : J(n).position === "fixed" || vn(n, t);
|
|
1614
1694
|
}
|
|
1615
|
-
function
|
|
1695
|
+
function ar(e, t) {
|
|
1616
1696
|
const n = t.get(e);
|
|
1617
1697
|
if (n)
|
|
1618
1698
|
return n;
|
|
1619
|
-
let
|
|
1699
|
+
let o = ie(e, [], !1).filter((l) => N(l) && se(l) !== "body"), r = null;
|
|
1620
1700
|
const i = J(e).position === "fixed";
|
|
1621
|
-
let s = i ?
|
|
1622
|
-
for (; N(s) && !
|
|
1701
|
+
let s = i ? ye(e) : e;
|
|
1702
|
+
for (; N(s) && !Ae(s); ) {
|
|
1623
1703
|
const l = J(s), a = ht(s);
|
|
1624
|
-
!a && l.position === "fixed" && (
|
|
1704
|
+
!a && l.position === "fixed" && (r = null), (i ? !a && !r : !a && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ve(s) && !a && vn(e, s)) ? o = o.filter((g) => g !== s) : r = l, s = ye(s);
|
|
1625
1705
|
}
|
|
1626
|
-
return t.set(e,
|
|
1706
|
+
return t.set(e, o), o;
|
|
1627
1707
|
}
|
|
1628
|
-
function
|
|
1708
|
+
function cr(e) {
|
|
1629
1709
|
let {
|
|
1630
1710
|
element: t,
|
|
1631
1711
|
boundary: n,
|
|
1632
|
-
rootBoundary:
|
|
1633
|
-
strategy:
|
|
1712
|
+
rootBoundary: o,
|
|
1713
|
+
strategy: r
|
|
1634
1714
|
} = e;
|
|
1635
|
-
const s = [...n === "clippingAncestors" ?
|
|
1636
|
-
const
|
|
1637
|
-
return c.top =
|
|
1638
|
-
},
|
|
1715
|
+
const s = [...n === "clippingAncestors" ? ar(t, this._c) : [].concat(n), o], l = s[0], a = s.reduce((c, g) => {
|
|
1716
|
+
const u = Lt(t, g, r);
|
|
1717
|
+
return c.top = Y(u.top, c.top), c.right = oe(u.right, c.right), c.bottom = oe(u.bottom, c.bottom), c.left = Y(u.left, c.left), c;
|
|
1718
|
+
}, Lt(t, l, r));
|
|
1639
1719
|
return {
|
|
1640
1720
|
width: a.right - a.left,
|
|
1641
1721
|
height: a.bottom - a.top,
|
|
@@ -1643,53 +1723,53 @@ function io(e) {
|
|
|
1643
1723
|
y: a.top
|
|
1644
1724
|
};
|
|
1645
1725
|
}
|
|
1646
|
-
function
|
|
1726
|
+
function ur(e) {
|
|
1647
1727
|
const {
|
|
1648
1728
|
width: t,
|
|
1649
1729
|
height: n
|
|
1650
|
-
} =
|
|
1730
|
+
} = pn(e);
|
|
1651
1731
|
return {
|
|
1652
1732
|
width: t,
|
|
1653
1733
|
height: n
|
|
1654
1734
|
};
|
|
1655
1735
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1736
|
+
function dr(e, t, n) {
|
|
1737
|
+
const o = Z(t), r = re(t), i = n === "fixed", s = ve(e, !0, i, t);
|
|
1658
1738
|
let l = {
|
|
1659
1739
|
scrollLeft: 0,
|
|
1660
1740
|
scrollTop: 0
|
|
1661
1741
|
};
|
|
1662
|
-
const a =
|
|
1663
|
-
if (
|
|
1664
|
-
if ((
|
|
1665
|
-
const
|
|
1666
|
-
a.x =
|
|
1742
|
+
const a = le(0);
|
|
1743
|
+
if (o || !o && !i)
|
|
1744
|
+
if ((se(t) !== "body" || Ve(r)) && (l = et(t)), o) {
|
|
1745
|
+
const u = ve(t, !0, i, t);
|
|
1746
|
+
a.x = u.x + t.clientLeft, a.y = u.y + t.clientTop;
|
|
1667
1747
|
} else
|
|
1668
|
-
|
|
1669
|
-
const c = s.left + l.scrollLeft - a.x,
|
|
1748
|
+
r && (a.x = yn(r));
|
|
1749
|
+
const c = s.left + l.scrollLeft - a.x, g = s.top + l.scrollTop - a.y;
|
|
1670
1750
|
return {
|
|
1671
1751
|
x: c,
|
|
1672
|
-
y:
|
|
1752
|
+
y: g,
|
|
1673
1753
|
width: s.width,
|
|
1674
1754
|
height: s.height
|
|
1675
1755
|
};
|
|
1676
1756
|
}
|
|
1677
|
-
function
|
|
1757
|
+
function Ft(e, t) {
|
|
1678
1758
|
return !Z(e) || J(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1679
1759
|
}
|
|
1680
|
-
function
|
|
1760
|
+
function xn(e, t) {
|
|
1681
1761
|
const n = q(e);
|
|
1682
|
-
if (!Z(e) ||
|
|
1762
|
+
if (!Z(e) || bn(e))
|
|
1683
1763
|
return n;
|
|
1684
|
-
let
|
|
1685
|
-
for (;
|
|
1686
|
-
|
|
1687
|
-
return
|
|
1764
|
+
let o = Ft(e, t);
|
|
1765
|
+
for (; o && Po(o) && J(o).position === "static"; )
|
|
1766
|
+
o = Ft(o, t);
|
|
1767
|
+
return o && (se(o) === "html" || se(o) === "body" && J(o).position === "static" && !ht(o)) ? n : o || Ao(e) || n;
|
|
1688
1768
|
}
|
|
1689
|
-
const
|
|
1690
|
-
const t = this.getOffsetParent ||
|
|
1769
|
+
const fr = async function(e) {
|
|
1770
|
+
const t = this.getOffsetParent || xn, n = this.getDimensions;
|
|
1691
1771
|
return {
|
|
1692
|
-
reference:
|
|
1772
|
+
reference: dr(e.reference, await t(e.floating), e.strategy),
|
|
1693
1773
|
floating: {
|
|
1694
1774
|
x: 0,
|
|
1695
1775
|
y: 0,
|
|
@@ -1697,59 +1777,59 @@ const ao = async function(e) {
|
|
|
1697
1777
|
}
|
|
1698
1778
|
};
|
|
1699
1779
|
};
|
|
1700
|
-
function
|
|
1780
|
+
function gr(e) {
|
|
1701
1781
|
return J(e).direction === "rtl";
|
|
1702
1782
|
}
|
|
1703
|
-
const
|
|
1704
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1705
|
-
getDocumentElement:
|
|
1706
|
-
getClippingRect:
|
|
1707
|
-
getOffsetParent:
|
|
1708
|
-
getElementRects:
|
|
1709
|
-
getClientRects:
|
|
1710
|
-
getDimensions:
|
|
1711
|
-
getScale:
|
|
1783
|
+
const mr = {
|
|
1784
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: or,
|
|
1785
|
+
getDocumentElement: re,
|
|
1786
|
+
getClippingRect: cr,
|
|
1787
|
+
getOffsetParent: xn,
|
|
1788
|
+
getElementRects: fr,
|
|
1789
|
+
getClientRects: rr,
|
|
1790
|
+
getDimensions: ur,
|
|
1791
|
+
getScale: Be,
|
|
1712
1792
|
isElement: N,
|
|
1713
|
-
isRTL:
|
|
1793
|
+
isRTL: gr
|
|
1714
1794
|
};
|
|
1715
|
-
function
|
|
1716
|
-
let n = null,
|
|
1717
|
-
const
|
|
1795
|
+
function pr(e, t) {
|
|
1796
|
+
let n = null, o;
|
|
1797
|
+
const r = re(e);
|
|
1718
1798
|
function i() {
|
|
1719
1799
|
var l;
|
|
1720
|
-
clearTimeout(
|
|
1800
|
+
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
1721
1801
|
}
|
|
1722
1802
|
function s(l, a) {
|
|
1723
1803
|
l === void 0 && (l = !1), a === void 0 && (a = 1), i();
|
|
1724
1804
|
const {
|
|
1725
1805
|
left: c,
|
|
1726
|
-
top:
|
|
1727
|
-
width:
|
|
1806
|
+
top: g,
|
|
1807
|
+
width: u,
|
|
1728
1808
|
height: f
|
|
1729
1809
|
} = e.getBoundingClientRect();
|
|
1730
|
-
if (l || t(), !
|
|
1810
|
+
if (l || t(), !u || !f)
|
|
1731
1811
|
return;
|
|
1732
|
-
const
|
|
1733
|
-
rootMargin: -
|
|
1734
|
-
threshold:
|
|
1812
|
+
const d = Ye(g), m = Ye(r.clientWidth - (c + u)), p = Ye(r.clientHeight - (g + f)), w = Ye(c), x = {
|
|
1813
|
+
rootMargin: -d + "px " + -m + "px " + -p + "px " + -w + "px",
|
|
1814
|
+
threshold: Y(0, oe(1, a)) || 1
|
|
1735
1815
|
};
|
|
1736
|
-
let
|
|
1816
|
+
let B = !0;
|
|
1737
1817
|
function S(k) {
|
|
1738
1818
|
const C = k[0].intersectionRatio;
|
|
1739
1819
|
if (C !== a) {
|
|
1740
|
-
if (!
|
|
1820
|
+
if (!B)
|
|
1741
1821
|
return s();
|
|
1742
|
-
C ? s(!1, C) :
|
|
1822
|
+
C ? s(!1, C) : o = setTimeout(() => {
|
|
1743
1823
|
s(!1, 1e-7);
|
|
1744
1824
|
}, 100);
|
|
1745
1825
|
}
|
|
1746
|
-
|
|
1826
|
+
B = !1;
|
|
1747
1827
|
}
|
|
1748
1828
|
try {
|
|
1749
1829
|
n = new IntersectionObserver(S, {
|
|
1750
1830
|
...x,
|
|
1751
1831
|
// Handle <iframe>s
|
|
1752
|
-
root:
|
|
1832
|
+
root: r.ownerDocument
|
|
1753
1833
|
});
|
|
1754
1834
|
} catch {
|
|
1755
1835
|
n = new IntersectionObserver(S, x);
|
|
@@ -1758,56 +1838,56 @@ function fo(e, t) {
|
|
|
1758
1838
|
}
|
|
1759
1839
|
return s(!0), i;
|
|
1760
1840
|
}
|
|
1761
|
-
function
|
|
1762
|
-
|
|
1841
|
+
function hr(e, t, n, o) {
|
|
1842
|
+
o === void 0 && (o = {});
|
|
1763
1843
|
const {
|
|
1764
|
-
ancestorScroll:
|
|
1844
|
+
ancestorScroll: r = !0,
|
|
1765
1845
|
ancestorResize: i = !0,
|
|
1766
1846
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1767
1847
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1768
1848
|
animationFrame: a = !1
|
|
1769
|
-
} =
|
|
1770
|
-
|
|
1771
|
-
|
|
1849
|
+
} = o, c = vt(e), g = r || i ? [...c ? ie(c) : [], ...ie(t)] : [];
|
|
1850
|
+
g.forEach((h) => {
|
|
1851
|
+
r && h.addEventListener("scroll", n, {
|
|
1772
1852
|
passive: !0
|
|
1773
1853
|
}), i && h.addEventListener("resize", n);
|
|
1774
1854
|
});
|
|
1775
|
-
const
|
|
1776
|
-
let f = -1,
|
|
1777
|
-
s && (
|
|
1855
|
+
const u = c && l ? pr(c, n) : null;
|
|
1856
|
+
let f = -1, d = null;
|
|
1857
|
+
s && (d = new ResizeObserver((h) => {
|
|
1778
1858
|
let [x] = h;
|
|
1779
|
-
x && x.target === c &&
|
|
1780
|
-
var
|
|
1781
|
-
(
|
|
1859
|
+
x && x.target === c && d && (d.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1860
|
+
var B;
|
|
1861
|
+
(B = d) == null || B.observe(t);
|
|
1782
1862
|
})), n();
|
|
1783
|
-
}), c && !a &&
|
|
1784
|
-
let
|
|
1863
|
+
}), c && !a && d.observe(c), d.observe(t));
|
|
1864
|
+
let m, p = a ? ve(e) : null;
|
|
1785
1865
|
a && w();
|
|
1786
1866
|
function w() {
|
|
1787
|
-
const h =
|
|
1788
|
-
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h,
|
|
1867
|
+
const h = ve(e);
|
|
1868
|
+
p && (h.x !== p.x || h.y !== p.y || h.width !== p.width || h.height !== p.height) && n(), p = h, m = requestAnimationFrame(w);
|
|
1789
1869
|
}
|
|
1790
1870
|
return n(), () => {
|
|
1791
1871
|
var h;
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
}),
|
|
1872
|
+
g.forEach((x) => {
|
|
1873
|
+
r && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
|
|
1874
|
+
}), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(m);
|
|
1795
1875
|
};
|
|
1796
1876
|
}
|
|
1797
|
-
const
|
|
1798
|
-
const
|
|
1799
|
-
platform:
|
|
1877
|
+
const br = Jo, yr = Ko, Pi = Qo, Ai = Uo, vr = (e, t, n) => {
|
|
1878
|
+
const o = /* @__PURE__ */ new Map(), r = {
|
|
1879
|
+
platform: mr,
|
|
1800
1880
|
...n
|
|
1801
1881
|
}, i = {
|
|
1802
|
-
...
|
|
1803
|
-
_c:
|
|
1882
|
+
...r.platform,
|
|
1883
|
+
_c: o
|
|
1804
1884
|
};
|
|
1805
|
-
return
|
|
1806
|
-
...
|
|
1885
|
+
return Xo(e, t, {
|
|
1886
|
+
...r,
|
|
1807
1887
|
platform: i
|
|
1808
1888
|
});
|
|
1809
1889
|
};
|
|
1810
|
-
var
|
|
1890
|
+
var Xe = typeof document < "u" ? en : mt;
|
|
1811
1891
|
function Ze(e, t) {
|
|
1812
1892
|
if (e === t)
|
|
1813
1893
|
return !0;
|
|
@@ -1815,23 +1895,23 @@ function Ze(e, t) {
|
|
|
1815
1895
|
return !1;
|
|
1816
1896
|
if (typeof e == "function" && e.toString() === t.toString())
|
|
1817
1897
|
return !0;
|
|
1818
|
-
let n,
|
|
1898
|
+
let n, o, r;
|
|
1819
1899
|
if (e && t && typeof e == "object") {
|
|
1820
1900
|
if (Array.isArray(e)) {
|
|
1821
1901
|
if (n = e.length, n !== t.length)
|
|
1822
1902
|
return !1;
|
|
1823
|
-
for (
|
|
1824
|
-
if (!Ze(e[
|
|
1903
|
+
for (o = n; o-- !== 0; )
|
|
1904
|
+
if (!Ze(e[o], t[o]))
|
|
1825
1905
|
return !1;
|
|
1826
1906
|
return !0;
|
|
1827
1907
|
}
|
|
1828
|
-
if (
|
|
1908
|
+
if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
|
|
1829
1909
|
return !1;
|
|
1830
|
-
for (
|
|
1831
|
-
if (!{}.hasOwnProperty.call(t, o
|
|
1910
|
+
for (o = n; o-- !== 0; )
|
|
1911
|
+
if (!{}.hasOwnProperty.call(t, r[o]))
|
|
1832
1912
|
return !1;
|
|
1833
|
-
for (
|
|
1834
|
-
const i = o
|
|
1913
|
+
for (o = n; o-- !== 0; ) {
|
|
1914
|
+
const i = r[o];
|
|
1835
1915
|
if (!(i === "_owner" && e.$$typeof) && !Ze(e[i], t[i]))
|
|
1836
1916
|
return !1;
|
|
1837
1917
|
}
|
|
@@ -1839,26 +1919,26 @@ function Ze(e, t) {
|
|
|
1839
1919
|
}
|
|
1840
1920
|
return e !== e && t !== t;
|
|
1841
1921
|
}
|
|
1842
|
-
function
|
|
1922
|
+
function wn(e) {
|
|
1843
1923
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1844
1924
|
}
|
|
1845
1925
|
function zt(e, t) {
|
|
1846
|
-
const n =
|
|
1926
|
+
const n = wn(e);
|
|
1847
1927
|
return Math.round(t * n) / n;
|
|
1848
1928
|
}
|
|
1849
1929
|
function Wt(e) {
|
|
1850
1930
|
const t = y.useRef(e);
|
|
1851
|
-
return
|
|
1931
|
+
return Xe(() => {
|
|
1852
1932
|
t.current = e;
|
|
1853
1933
|
}), t;
|
|
1854
1934
|
}
|
|
1855
|
-
function
|
|
1935
|
+
function xr(e) {
|
|
1856
1936
|
e === void 0 && (e = {});
|
|
1857
1937
|
const {
|
|
1858
1938
|
placement: t = "bottom",
|
|
1859
1939
|
strategy: n = "absolute",
|
|
1860
|
-
middleware:
|
|
1861
|
-
platform:
|
|
1940
|
+
middleware: o = [],
|
|
1941
|
+
platform: r,
|
|
1862
1942
|
elements: {
|
|
1863
1943
|
reference: i,
|
|
1864
1944
|
floating: s
|
|
@@ -1866,59 +1946,59 @@ function bo(e) {
|
|
|
1866
1946
|
transform: l = !0,
|
|
1867
1947
|
whileElementsMounted: a,
|
|
1868
1948
|
open: c
|
|
1869
|
-
} = e, [
|
|
1949
|
+
} = e, [g, u] = y.useState({
|
|
1870
1950
|
x: 0,
|
|
1871
1951
|
y: 0,
|
|
1872
1952
|
strategy: n,
|
|
1873
1953
|
placement: t,
|
|
1874
1954
|
middlewareData: {},
|
|
1875
1955
|
isPositioned: !1
|
|
1876
|
-
}), [f,
|
|
1877
|
-
Ze(f,
|
|
1878
|
-
const [
|
|
1956
|
+
}), [f, d] = y.useState(o);
|
|
1957
|
+
Ze(f, o) || d(o);
|
|
1958
|
+
const [m, p] = y.useState(null), [w, h] = y.useState(null), x = y.useCallback((R) => {
|
|
1879
1959
|
R !== C.current && (C.current = R, p(R));
|
|
1880
|
-
}, []),
|
|
1881
|
-
R !==
|
|
1882
|
-
}, []), S = i ||
|
|
1883
|
-
if (!C.current || !
|
|
1960
|
+
}, []), B = y.useCallback((R) => {
|
|
1961
|
+
R !== P.current && (P.current = R, h(R));
|
|
1962
|
+
}, []), S = i || m, k = s || w, C = y.useRef(null), P = y.useRef(null), T = y.useRef(g), D = a != null, A = Wt(a), L = Wt(r), M = y.useCallback(() => {
|
|
1963
|
+
if (!C.current || !P.current)
|
|
1884
1964
|
return;
|
|
1885
1965
|
const R = {
|
|
1886
1966
|
placement: t,
|
|
1887
1967
|
strategy: n,
|
|
1888
1968
|
middleware: f
|
|
1889
1969
|
};
|
|
1890
|
-
|
|
1891
|
-
const
|
|
1970
|
+
L.current && (R.platform = L.current), vr(C.current, P.current, R).then(($) => {
|
|
1971
|
+
const F = {
|
|
1892
1972
|
...$,
|
|
1893
1973
|
isPositioned: !0
|
|
1894
1974
|
};
|
|
1895
|
-
O.current && !Ze(T.current,
|
|
1896
|
-
|
|
1975
|
+
O.current && !Ze(T.current, F) && (T.current = F, zn.flushSync(() => {
|
|
1976
|
+
u(F);
|
|
1897
1977
|
}));
|
|
1898
1978
|
});
|
|
1899
|
-
}, [f, t, n,
|
|
1900
|
-
|
|
1901
|
-
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1,
|
|
1979
|
+
}, [f, t, n, L]);
|
|
1980
|
+
Xe(() => {
|
|
1981
|
+
c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((R) => ({
|
|
1902
1982
|
...R,
|
|
1903
1983
|
isPositioned: !1
|
|
1904
1984
|
})));
|
|
1905
1985
|
}, [c]);
|
|
1906
1986
|
const O = y.useRef(!1);
|
|
1907
|
-
|
|
1987
|
+
Xe(() => (O.current = !0, () => {
|
|
1908
1988
|
O.current = !1;
|
|
1909
|
-
}), []),
|
|
1910
|
-
if (S && (C.current = S), k && (
|
|
1911
|
-
if (
|
|
1912
|
-
return
|
|
1989
|
+
}), []), Xe(() => {
|
|
1990
|
+
if (S && (C.current = S), k && (P.current = k), S && k) {
|
|
1991
|
+
if (A.current)
|
|
1992
|
+
return A.current(S, k, M);
|
|
1913
1993
|
M();
|
|
1914
1994
|
}
|
|
1915
|
-
}, [S, k, M,
|
|
1995
|
+
}, [S, k, M, A, D]);
|
|
1916
1996
|
const b = y.useMemo(() => ({
|
|
1917
1997
|
reference: C,
|
|
1918
|
-
floating:
|
|
1998
|
+
floating: P,
|
|
1919
1999
|
setReference: x,
|
|
1920
|
-
setFloating:
|
|
1921
|
-
}), [x,
|
|
2000
|
+
setFloating: B
|
|
2001
|
+
}), [x, B]), v = y.useMemo(() => ({
|
|
1922
2002
|
reference: S,
|
|
1923
2003
|
floating: k
|
|
1924
2004
|
}), [S, k]), I = y.useMemo(() => {
|
|
@@ -1929,266 +2009,266 @@ function bo(e) {
|
|
|
1929
2009
|
};
|
|
1930
2010
|
if (!v.floating)
|
|
1931
2011
|
return R;
|
|
1932
|
-
const $ = zt(v.floating,
|
|
2012
|
+
const $ = zt(v.floating, g.x), F = zt(v.floating, g.y);
|
|
1933
2013
|
return l ? {
|
|
1934
2014
|
...R,
|
|
1935
|
-
transform: "translate(" + $ + "px, " +
|
|
1936
|
-
...
|
|
2015
|
+
transform: "translate(" + $ + "px, " + F + "px)",
|
|
2016
|
+
...wn(v.floating) >= 1.5 && {
|
|
1937
2017
|
willChange: "transform"
|
|
1938
2018
|
}
|
|
1939
2019
|
} : {
|
|
1940
2020
|
position: n,
|
|
1941
2021
|
left: $,
|
|
1942
|
-
top:
|
|
2022
|
+
top: F
|
|
1943
2023
|
};
|
|
1944
|
-
}, [n, l, v.floating,
|
|
2024
|
+
}, [n, l, v.floating, g.x, g.y]);
|
|
1945
2025
|
return y.useMemo(() => ({
|
|
1946
|
-
...
|
|
2026
|
+
...g,
|
|
1947
2027
|
update: M,
|
|
1948
2028
|
refs: b,
|
|
1949
2029
|
elements: v,
|
|
1950
2030
|
floatingStyles: I
|
|
1951
|
-
}), [
|
|
2031
|
+
}), [g, M, b, v, I]);
|
|
1952
2032
|
}
|
|
1953
2033
|
/*!
|
|
1954
2034
|
* tabbable 6.2.0
|
|
1955
2035
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1956
2036
|
*/
|
|
1957
|
-
var
|
|
1958
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Je =
|
|
2037
|
+
var wr = ["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])"], dt = /* @__PURE__ */ wr.join(","), $n = typeof Element > "u", Ne = $n ? function() {
|
|
2038
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Je = !$n && Element.prototype.getRootNode ? function(e) {
|
|
1959
2039
|
var t;
|
|
1960
2040
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1961
2041
|
} : function(e) {
|
|
1962
2042
|
return e == null ? void 0 : e.ownerDocument;
|
|
1963
2043
|
}, Qe = function e(t, n) {
|
|
1964
|
-
var
|
|
2044
|
+
var o;
|
|
1965
2045
|
n === void 0 && (n = !0);
|
|
1966
|
-
var
|
|
2046
|
+
var r = t == null || (o = t.getAttribute) === null || o === void 0 ? void 0 : o.call(t, "inert"), i = r === "" || r === "true", s = i || n && t && e(t.parentNode);
|
|
1967
2047
|
return s;
|
|
1968
|
-
},
|
|
1969
|
-
var n,
|
|
1970
|
-
return
|
|
1971
|
-
},
|
|
2048
|
+
}, $r = function(t) {
|
|
2049
|
+
var n, o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
2050
|
+
return o === "" || o === "true";
|
|
2051
|
+
}, Sr = function(t, n, o) {
|
|
1972
2052
|
if (Qe(t))
|
|
1973
2053
|
return [];
|
|
1974
|
-
var
|
|
1975
|
-
return n &&
|
|
1976
|
-
},
|
|
1977
|
-
for (var
|
|
2054
|
+
var r = Array.prototype.slice.apply(t.querySelectorAll(dt));
|
|
2055
|
+
return n && Ne.call(t, dt) && r.unshift(t), r = r.filter(o), r;
|
|
2056
|
+
}, Rr = function e(t, n, o) {
|
|
2057
|
+
for (var r = [], i = Array.from(t); i.length; ) {
|
|
1978
2058
|
var s = i.shift();
|
|
1979
2059
|
if (!Qe(s, !1))
|
|
1980
2060
|
if (s.tagName === "SLOT") {
|
|
1981
|
-
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0,
|
|
1982
|
-
|
|
2061
|
+
var l = s.assignedElements(), a = l.length ? l : s.children, c = e(a, !0, o);
|
|
2062
|
+
o.flatten ? r.push.apply(r, c) : r.push({
|
|
1983
2063
|
scopeParent: s,
|
|
1984
2064
|
candidates: c
|
|
1985
2065
|
});
|
|
1986
2066
|
} else {
|
|
1987
|
-
var
|
|
1988
|
-
|
|
1989
|
-
var
|
|
1990
|
-
typeof
|
|
1991
|
-
if (
|
|
1992
|
-
var
|
|
1993
|
-
|
|
2067
|
+
var g = Ne.call(s, dt);
|
|
2068
|
+
g && o.filter(s) && (n || !t.includes(s)) && r.push(s);
|
|
2069
|
+
var u = s.shadowRoot || // check for an undisclosed shadow
|
|
2070
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(s), f = !Qe(u, !1) && (!o.shadowRootFilter || o.shadowRootFilter(s));
|
|
2071
|
+
if (u && f) {
|
|
2072
|
+
var d = e(u === !0 ? s.children : u.children, !0, o);
|
|
2073
|
+
o.flatten ? r.push.apply(r, d) : r.push({
|
|
1994
2074
|
scopeParent: s,
|
|
1995
|
-
candidates:
|
|
2075
|
+
candidates: d
|
|
1996
2076
|
});
|
|
1997
2077
|
} else
|
|
1998
2078
|
i.unshift.apply(i, s.children);
|
|
1999
2079
|
}
|
|
2000
2080
|
}
|
|
2001
|
-
return
|
|
2002
|
-
},
|
|
2081
|
+
return r;
|
|
2082
|
+
}, Sn = function(t) {
|
|
2003
2083
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
2004
|
-
},
|
|
2084
|
+
}, Rn = function(t) {
|
|
2005
2085
|
if (!t)
|
|
2006
2086
|
throw new Error("No node provided");
|
|
2007
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
2008
|
-
},
|
|
2009
|
-
var
|
|
2010
|
-
return
|
|
2011
|
-
},
|
|
2087
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || $r(t)) && !Sn(t) ? 0 : t.tabIndex;
|
|
2088
|
+
}, Er = function(t, n) {
|
|
2089
|
+
var o = Rn(t);
|
|
2090
|
+
return o < 0 && n && !Sn(t) ? 0 : o;
|
|
2091
|
+
}, Cr = function(t, n) {
|
|
2012
2092
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
2013
|
-
},
|
|
2093
|
+
}, En = function(t) {
|
|
2014
2094
|
return t.tagName === "INPUT";
|
|
2015
|
-
},
|
|
2016
|
-
return
|
|
2017
|
-
},
|
|
2018
|
-
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(
|
|
2019
|
-
return
|
|
2095
|
+
}, kr = function(t) {
|
|
2096
|
+
return En(t) && t.type === "hidden";
|
|
2097
|
+
}, Tr = function(t) {
|
|
2098
|
+
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
2099
|
+
return o.tagName === "SUMMARY";
|
|
2020
2100
|
});
|
|
2021
2101
|
return n;
|
|
2022
|
-
},
|
|
2023
|
-
for (var
|
|
2024
|
-
if (t[
|
|
2025
|
-
return t[
|
|
2026
|
-
},
|
|
2102
|
+
}, Ir = function(t, n) {
|
|
2103
|
+
for (var o = 0; o < t.length; o++)
|
|
2104
|
+
if (t[o].checked && t[o].form === n)
|
|
2105
|
+
return t[o];
|
|
2106
|
+
}, Br = function(t) {
|
|
2027
2107
|
if (!t.name)
|
|
2028
2108
|
return !0;
|
|
2029
|
-
var n = t.form || Je(t),
|
|
2109
|
+
var n = t.form || Je(t), o = function(l) {
|
|
2030
2110
|
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
2031
|
-
},
|
|
2111
|
+
}, r;
|
|
2032
2112
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
2033
|
-
|
|
2113
|
+
r = o(window.CSS.escape(t.name));
|
|
2034
2114
|
else
|
|
2035
2115
|
try {
|
|
2036
|
-
|
|
2116
|
+
r = o(t.name);
|
|
2037
2117
|
} catch (s) {
|
|
2038
2118
|
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;
|
|
2039
2119
|
}
|
|
2040
|
-
var i =
|
|
2120
|
+
var i = Ir(r, t.form);
|
|
2041
2121
|
return !i || i === t;
|
|
2042
|
-
},
|
|
2043
|
-
return
|
|
2044
|
-
},
|
|
2045
|
-
return
|
|
2046
|
-
},
|
|
2047
|
-
var n,
|
|
2048
|
-
if (
|
|
2122
|
+
}, Pr = function(t) {
|
|
2123
|
+
return En(t) && t.type === "radio";
|
|
2124
|
+
}, Ar = function(t) {
|
|
2125
|
+
return Pr(t) && !Br(t);
|
|
2126
|
+
}, Or = function(t) {
|
|
2127
|
+
var n, o = t && Je(t), r = (n = o) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
2128
|
+
if (o && o !== t) {
|
|
2049
2129
|
var s, l, a;
|
|
2050
|
-
for (i = !!((s =
|
|
2051
|
-
var c,
|
|
2052
|
-
|
|
2130
|
+
for (i = !!((s = r) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(r) || t != null && (a = t.ownerDocument) !== null && a !== void 0 && a.contains(t)); !i && r; ) {
|
|
2131
|
+
var c, g, u;
|
|
2132
|
+
o = Je(r), r = (c = o) === null || c === void 0 ? void 0 : c.host, i = !!((g = r) !== null && g !== void 0 && (u = g.ownerDocument) !== null && u !== void 0 && u.contains(r));
|
|
2053
2133
|
}
|
|
2054
2134
|
}
|
|
2055
2135
|
return i;
|
|
2056
2136
|
}, Nt = function(t) {
|
|
2057
|
-
var n = t.getBoundingClientRect(),
|
|
2058
|
-
return
|
|
2059
|
-
},
|
|
2060
|
-
var
|
|
2137
|
+
var n = t.getBoundingClientRect(), o = n.width, r = n.height;
|
|
2138
|
+
return o === 0 && r === 0;
|
|
2139
|
+
}, Dr = function(t, n) {
|
|
2140
|
+
var o = n.displayCheck, r = n.getShadowRoot;
|
|
2061
2141
|
if (getComputedStyle(t).visibility === "hidden")
|
|
2062
2142
|
return !0;
|
|
2063
|
-
var i =
|
|
2064
|
-
if (
|
|
2143
|
+
var i = Ne.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
|
|
2144
|
+
if (Ne.call(s, "details:not([open]) *"))
|
|
2065
2145
|
return !0;
|
|
2066
|
-
if (!
|
|
2067
|
-
if (typeof
|
|
2146
|
+
if (!o || o === "full" || o === "legacy-full") {
|
|
2147
|
+
if (typeof r == "function") {
|
|
2068
2148
|
for (var l = t; t; ) {
|
|
2069
2149
|
var a = t.parentElement, c = Je(t);
|
|
2070
|
-
if (a && !a.shadowRoot &&
|
|
2150
|
+
if (a && !a.shadowRoot && r(a) === !0)
|
|
2071
2151
|
return Nt(t);
|
|
2072
2152
|
t.assignedSlot ? t = t.assignedSlot : !a && c !== t.ownerDocument ? t = c.host : t = a;
|
|
2073
2153
|
}
|
|
2074
2154
|
t = l;
|
|
2075
2155
|
}
|
|
2076
|
-
if (
|
|
2156
|
+
if (Or(t))
|
|
2077
2157
|
return !t.getClientRects().length;
|
|
2078
|
-
if (
|
|
2158
|
+
if (o !== "legacy-full")
|
|
2079
2159
|
return !0;
|
|
2080
|
-
} else if (
|
|
2160
|
+
} else if (o === "non-zero-area")
|
|
2081
2161
|
return Nt(t);
|
|
2082
2162
|
return !1;
|
|
2083
|
-
},
|
|
2163
|
+
}, Mr = function(t) {
|
|
2084
2164
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
2085
2165
|
for (var n = t.parentElement; n; ) {
|
|
2086
2166
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
2087
|
-
for (var
|
|
2088
|
-
var
|
|
2089
|
-
if (
|
|
2090
|
-
return
|
|
2167
|
+
for (var o = 0; o < n.children.length; o++) {
|
|
2168
|
+
var r = n.children.item(o);
|
|
2169
|
+
if (r.tagName === "LEGEND")
|
|
2170
|
+
return Ne.call(n, "fieldset[disabled] *") ? !0 : !r.contains(t);
|
|
2091
2171
|
}
|
|
2092
2172
|
return !0;
|
|
2093
2173
|
}
|
|
2094
2174
|
n = n.parentElement;
|
|
2095
2175
|
}
|
|
2096
2176
|
return !1;
|
|
2097
|
-
},
|
|
2177
|
+
}, Lr = function(t, n) {
|
|
2098
2178
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
2099
2179
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
2100
2180
|
// note related to `candidateSelectors`)
|
|
2101
|
-
Qe(n) ||
|
|
2102
|
-
|
|
2181
|
+
Qe(n) || kr(n) || Dr(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
2182
|
+
Tr(n) || Mr(n));
|
|
2103
2183
|
}, jt = function(t, n) {
|
|
2104
|
-
return !(
|
|
2105
|
-
},
|
|
2184
|
+
return !(Ar(n) || Rn(n) < 0 || !Lr(t, n));
|
|
2185
|
+
}, Fr = function(t) {
|
|
2106
2186
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
2107
2187
|
return !!(isNaN(n) || n >= 0);
|
|
2108
|
-
},
|
|
2109
|
-
var n = [],
|
|
2110
|
-
return t.forEach(function(
|
|
2111
|
-
var s = !!
|
|
2112
|
-
a === 0 ? s ? n.push.apply(n, c) : n.push(l) :
|
|
2188
|
+
}, zr = function e(t) {
|
|
2189
|
+
var n = [], o = [];
|
|
2190
|
+
return t.forEach(function(r, i) {
|
|
2191
|
+
var s = !!r.scopeParent, l = s ? r.scopeParent : r, a = Er(l, s), c = s ? e(r.candidates) : l;
|
|
2192
|
+
a === 0 ? s ? n.push.apply(n, c) : n.push(l) : o.push({
|
|
2113
2193
|
documentOrder: i,
|
|
2114
2194
|
tabIndex: a,
|
|
2115
|
-
item:
|
|
2195
|
+
item: r,
|
|
2116
2196
|
isScope: s,
|
|
2117
2197
|
content: c
|
|
2118
2198
|
});
|
|
2119
|
-
}),
|
|
2120
|
-
return i.isScope ?
|
|
2199
|
+
}), o.sort(Cr).reduce(function(r, i) {
|
|
2200
|
+
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
2121
2201
|
}, []).concat(n);
|
|
2122
|
-
},
|
|
2202
|
+
}, Cn = function(t, n) {
|
|
2123
2203
|
n = n || {};
|
|
2124
|
-
var
|
|
2125
|
-
return n.getShadowRoot ?
|
|
2204
|
+
var o;
|
|
2205
|
+
return n.getShadowRoot ? o = Rr([t], n.includeContainer, {
|
|
2126
2206
|
filter: jt.bind(null, n),
|
|
2127
2207
|
flatten: !1,
|
|
2128
2208
|
getShadowRoot: n.getShadowRoot,
|
|
2129
|
-
shadowRootFilter:
|
|
2130
|
-
}) :
|
|
2209
|
+
shadowRootFilter: Fr
|
|
2210
|
+
}) : o = Sr(t, n.includeContainer, jt.bind(null, n)), zr(o);
|
|
2131
2211
|
};
|
|
2132
|
-
const
|
|
2133
|
-
function
|
|
2212
|
+
const Wr = y[/* @__PURE__ */ "useInsertionEffect".toString()], Nr = Wr || ((e) => e());
|
|
2213
|
+
function ke(e) {
|
|
2134
2214
|
const t = y.useRef(() => {
|
|
2135
2215
|
if (process.env.NODE_ENV !== "production")
|
|
2136
2216
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2137
2217
|
});
|
|
2138
|
-
return
|
|
2218
|
+
return Nr(() => {
|
|
2139
2219
|
t.current = e;
|
|
2140
2220
|
}), y.useCallback(function() {
|
|
2141
|
-
for (var n = arguments.length,
|
|
2142
|
-
r
|
|
2143
|
-
return t.current == null ? void 0 : t.current(...
|
|
2221
|
+
for (var n = arguments.length, o = new Array(n), r = 0; r < n; r++)
|
|
2222
|
+
o[r] = arguments[r];
|
|
2223
|
+
return t.current == null ? void 0 : t.current(...o);
|
|
2144
2224
|
}, []);
|
|
2145
2225
|
}
|
|
2146
|
-
var Q = typeof document < "u" ? en :
|
|
2226
|
+
var Q = typeof document < "u" ? en : mt;
|
|
2147
2227
|
function ft() {
|
|
2148
2228
|
return ft = Object.assign ? Object.assign.bind() : function(e) {
|
|
2149
2229
|
for (var t = 1; t < arguments.length; t++) {
|
|
2150
2230
|
var n = arguments[t];
|
|
2151
|
-
for (var
|
|
2152
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
2231
|
+
for (var o in n)
|
|
2232
|
+
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
2153
2233
|
}
|
|
2154
2234
|
return e;
|
|
2155
2235
|
}, ft.apply(this, arguments);
|
|
2156
2236
|
}
|
|
2157
|
-
let
|
|
2158
|
-
const Ht = () => "floating-ui-" +
|
|
2159
|
-
function
|
|
2160
|
-
const [e, t] = y.useState(() =>
|
|
2237
|
+
let rt = !1, jr = 0;
|
|
2238
|
+
const Ht = () => "floating-ui-" + jr++;
|
|
2239
|
+
function Hr() {
|
|
2240
|
+
const [e, t] = y.useState(() => rt ? Ht() : void 0);
|
|
2161
2241
|
return Q(() => {
|
|
2162
2242
|
e == null && t(Ht());
|
|
2163
2243
|
}, []), y.useEffect(() => {
|
|
2164
|
-
|
|
2244
|
+
rt || (rt = !0);
|
|
2165
2245
|
}, []), e;
|
|
2166
2246
|
}
|
|
2167
|
-
const
|
|
2168
|
-
function
|
|
2247
|
+
const Vr = y[/* @__PURE__ */ "useId".toString()], xt = Vr || Hr;
|
|
2248
|
+
function _r() {
|
|
2169
2249
|
const e = /* @__PURE__ */ new Map();
|
|
2170
2250
|
return {
|
|
2171
2251
|
emit(t, n) {
|
|
2172
|
-
var
|
|
2173
|
-
(
|
|
2252
|
+
var o;
|
|
2253
|
+
(o = e.get(t)) == null || o.forEach((r) => r(n));
|
|
2174
2254
|
},
|
|
2175
2255
|
on(t, n) {
|
|
2176
2256
|
e.set(t, [...e.get(t) || [], n]);
|
|
2177
2257
|
},
|
|
2178
2258
|
off(t, n) {
|
|
2179
|
-
var
|
|
2180
|
-
e.set(t, ((
|
|
2259
|
+
var o;
|
|
2260
|
+
e.set(t, ((o = e.get(t)) == null ? void 0 : o.filter((r) => r !== n)) || []);
|
|
2181
2261
|
}
|
|
2182
2262
|
};
|
|
2183
2263
|
}
|
|
2184
|
-
const
|
|
2264
|
+
const Yr = /* @__PURE__ */ y.createContext(null), Xr = /* @__PURE__ */ y.createContext(null), wt = () => {
|
|
2185
2265
|
var e;
|
|
2186
|
-
return ((e = y.useContext(
|
|
2187
|
-
}, $t = () => y.useContext(
|
|
2266
|
+
return ((e = y.useContext(Yr)) == null ? void 0 : e.id) || null;
|
|
2267
|
+
}, $t = () => y.useContext(Xr);
|
|
2188
2268
|
function tt(e) {
|
|
2189
2269
|
return "data-floating-ui-" + e;
|
|
2190
2270
|
}
|
|
2191
|
-
function
|
|
2271
|
+
function Ie(e) {
|
|
2192
2272
|
const t = tn(e);
|
|
2193
2273
|
return Q(() => {
|
|
2194
2274
|
t.current = e;
|
|
@@ -2196,14 +2276,14 @@ function Te(e) {
|
|
|
2196
2276
|
}
|
|
2197
2277
|
const Vt = /* @__PURE__ */ tt("safe-polygon");
|
|
2198
2278
|
function it(e, t, n) {
|
|
2199
|
-
return n && !
|
|
2279
|
+
return n && !Ge(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2200
2280
|
}
|
|
2201
|
-
function
|
|
2281
|
+
function Kr(e, t) {
|
|
2202
2282
|
t === void 0 && (t = {});
|
|
2203
2283
|
const {
|
|
2204
2284
|
open: n,
|
|
2205
|
-
onOpenChange:
|
|
2206
|
-
dataRef:
|
|
2285
|
+
onOpenChange: o,
|
|
2286
|
+
dataRef: r,
|
|
2207
2287
|
events: i,
|
|
2208
2288
|
elements: {
|
|
2209
2289
|
domReference: s,
|
|
@@ -2212,17 +2292,17 @@ function _o(e, t) {
|
|
|
2212
2292
|
refs: a
|
|
2213
2293
|
} = e, {
|
|
2214
2294
|
enabled: c = !0,
|
|
2215
|
-
delay:
|
|
2216
|
-
handleClose:
|
|
2295
|
+
delay: g = 0,
|
|
2296
|
+
handleClose: u = null,
|
|
2217
2297
|
mouseOnly: f = !1,
|
|
2218
|
-
restMs:
|
|
2219
|
-
move:
|
|
2220
|
-
} = t, p = $t(), w = wt(), h =
|
|
2221
|
-
}),
|
|
2298
|
+
restMs: d = 0,
|
|
2299
|
+
move: m = !0
|
|
2300
|
+
} = t, p = $t(), w = wt(), h = Ie(u), x = Ie(g), B = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), P = y.useRef(!0), T = y.useRef(!1), D = y.useRef(() => {
|
|
2301
|
+
}), A = y.useCallback(() => {
|
|
2222
2302
|
var b;
|
|
2223
|
-
const v = (b =
|
|
2303
|
+
const v = (b = r.current.openEvent) == null ? void 0 : b.type;
|
|
2224
2304
|
return (v == null ? void 0 : v.includes("mouse")) && v !== "mousedown";
|
|
2225
|
-
}, [
|
|
2305
|
+
}, [r]);
|
|
2226
2306
|
y.useEffect(() => {
|
|
2227
2307
|
if (!c)
|
|
2228
2308
|
return;
|
|
@@ -2230,7 +2310,7 @@ function _o(e, t) {
|
|
|
2230
2310
|
let {
|
|
2231
2311
|
open: I
|
|
2232
2312
|
} = v;
|
|
2233
|
-
I || (clearTimeout(S.current), clearTimeout(C.current),
|
|
2313
|
+
I || (clearTimeout(S.current), clearTimeout(C.current), P.current = !0);
|
|
2234
2314
|
}
|
|
2235
2315
|
return i.on("openchange", b), () => {
|
|
2236
2316
|
i.off("openchange", b);
|
|
@@ -2239,19 +2319,19 @@ function _o(e, t) {
|
|
|
2239
2319
|
if (!c || !h.current || !n)
|
|
2240
2320
|
return;
|
|
2241
2321
|
function b(I) {
|
|
2242
|
-
|
|
2322
|
+
A() && o(!1, I, "hover");
|
|
2243
2323
|
}
|
|
2244
2324
|
const v = me(l).documentElement;
|
|
2245
2325
|
return v.addEventListener("mouseleave", b), () => {
|
|
2246
2326
|
v.removeEventListener("mouseleave", b);
|
|
2247
2327
|
};
|
|
2248
|
-
}, [l, n,
|
|
2249
|
-
const
|
|
2328
|
+
}, [l, n, o, c, h, A]);
|
|
2329
|
+
const L = y.useCallback(function(b, v, I) {
|
|
2250
2330
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2251
|
-
const R = it(x.current, "close",
|
|
2252
|
-
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() =>
|
|
2253
|
-
}, [x,
|
|
2254
|
-
|
|
2331
|
+
const R = it(x.current, "close", B.current);
|
|
2332
|
+
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => o(!1, b, I), R)) : v && (clearTimeout(S.current), o(!1, b, I));
|
|
2333
|
+
}, [x, o]), M = y.useCallback(() => {
|
|
2334
|
+
D.current(), k.current = void 0;
|
|
2255
2335
|
}, []), O = y.useCallback(() => {
|
|
2256
2336
|
if (T.current) {
|
|
2257
2337
|
const b = me(a.floating.current).body;
|
|
@@ -2262,21 +2342,21 @@ function _o(e, t) {
|
|
|
2262
2342
|
if (!c)
|
|
2263
2343
|
return;
|
|
2264
2344
|
function b() {
|
|
2265
|
-
return
|
|
2345
|
+
return r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1;
|
|
2266
2346
|
}
|
|
2267
2347
|
function v($) {
|
|
2268
|
-
if (clearTimeout(S.current),
|
|
2348
|
+
if (clearTimeout(S.current), P.current = !1, f && !Ge(B.current) || d > 0 && it(x.current, "open") === 0)
|
|
2269
2349
|
return;
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
},
|
|
2350
|
+
const F = it(x.current, "open", B.current);
|
|
2351
|
+
F ? S.current = setTimeout(() => {
|
|
2352
|
+
o(!0, $, "hover");
|
|
2353
|
+
}, F) : o(!0, $, "hover");
|
|
2274
2354
|
}
|
|
2275
2355
|
function I($) {
|
|
2276
2356
|
if (b())
|
|
2277
2357
|
return;
|
|
2278
|
-
|
|
2279
|
-
const
|
|
2358
|
+
D.current();
|
|
2359
|
+
const F = me(l);
|
|
2280
2360
|
if (clearTimeout(C.current), h.current) {
|
|
2281
2361
|
n || clearTimeout(S.current), k.current = h.current({
|
|
2282
2362
|
...e,
|
|
@@ -2284,16 +2364,16 @@ function _o(e, t) {
|
|
|
2284
2364
|
x: $.clientX,
|
|
2285
2365
|
y: $.clientY,
|
|
2286
2366
|
onClose() {
|
|
2287
|
-
O(), M(),
|
|
2367
|
+
O(), M(), L($, !0, "safe-polygon");
|
|
2288
2368
|
}
|
|
2289
2369
|
});
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2292
|
-
|
|
2370
|
+
const U = k.current;
|
|
2371
|
+
F.addEventListener("mousemove", U), D.current = () => {
|
|
2372
|
+
F.removeEventListener("mousemove", U);
|
|
2293
2373
|
};
|
|
2294
2374
|
return;
|
|
2295
2375
|
}
|
|
2296
|
-
(
|
|
2376
|
+
(B.current === "touch" ? !be(l, $.relatedTarget) : !0) && L($);
|
|
2297
2377
|
}
|
|
2298
2378
|
function R($) {
|
|
2299
2379
|
b() || h.current == null || h.current({
|
|
@@ -2302,48 +2382,48 @@ function _o(e, t) {
|
|
|
2302
2382
|
x: $.clientX,
|
|
2303
2383
|
y: $.clientY,
|
|
2304
2384
|
onClose() {
|
|
2305
|
-
O(), M(),
|
|
2385
|
+
O(), M(), L($);
|
|
2306
2386
|
}
|
|
2307
2387
|
})($);
|
|
2308
2388
|
}
|
|
2309
2389
|
if (N(s)) {
|
|
2310
2390
|
const $ = s;
|
|
2311
|
-
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R),
|
|
2391
|
+
return n && $.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), m && $.addEventListener("mousemove", v, {
|
|
2312
2392
|
once: !0
|
|
2313
2393
|
}), $.addEventListener("mouseenter", v), $.addEventListener("mouseleave", I), () => {
|
|
2314
|
-
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R),
|
|
2394
|
+
n && $.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), m && $.removeEventListener("mousemove", v), $.removeEventListener("mouseenter", v), $.removeEventListener("mouseleave", I);
|
|
2315
2395
|
};
|
|
2316
2396
|
}
|
|
2317
|
-
}, [s, l, c, e, f,
|
|
2397
|
+
}, [s, l, c, e, f, d, m, L, M, O, o, n, p, x, h, r]), Q(() => {
|
|
2318
2398
|
var b;
|
|
2319
|
-
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents &&
|
|
2399
|
+
if (c && n && (b = h.current) != null && b.__options.blockPointerEvents && A()) {
|
|
2320
2400
|
const I = me(l).body;
|
|
2321
2401
|
if (I.setAttribute(Vt, ""), I.style.pointerEvents = "none", T.current = !0, N(s) && l) {
|
|
2322
2402
|
var v;
|
|
2323
|
-
const R = s, $ = p == null || (v = p.nodesRef.current.find((
|
|
2403
|
+
const R = s, $ = p == null || (v = p.nodesRef.current.find((F) => F.id === w)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
|
|
2324
2404
|
return $ && ($.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
|
|
2325
2405
|
R.style.pointerEvents = "", l.style.pointerEvents = "";
|
|
2326
2406
|
};
|
|
2327
2407
|
}
|
|
2328
2408
|
}
|
|
2329
|
-
}, [c, n, w, l, s, p, h,
|
|
2330
|
-
n || (
|
|
2409
|
+
}, [c, n, w, l, s, p, h, A]), Q(() => {
|
|
2410
|
+
n || (B.current = void 0, M(), O());
|
|
2331
2411
|
}, [n, M, O]), y.useEffect(() => () => {
|
|
2332
2412
|
M(), clearTimeout(S.current), clearTimeout(C.current), O();
|
|
2333
2413
|
}, [c, s, M, O]), y.useMemo(() => {
|
|
2334
2414
|
if (!c)
|
|
2335
2415
|
return {};
|
|
2336
2416
|
function b(v) {
|
|
2337
|
-
|
|
2417
|
+
B.current = v.pointerType;
|
|
2338
2418
|
}
|
|
2339
2419
|
return {
|
|
2340
2420
|
reference: {
|
|
2341
2421
|
onPointerDown: b,
|
|
2342
2422
|
onPointerEnter: b,
|
|
2343
2423
|
onMouseMove(v) {
|
|
2344
|
-
n ||
|
|
2345
|
-
|
|
2346
|
-
},
|
|
2424
|
+
n || d === 0 || (clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2425
|
+
P.current || o(!0, v.nativeEvent, "hover");
|
|
2426
|
+
}, d));
|
|
2347
2427
|
}
|
|
2348
2428
|
},
|
|
2349
2429
|
floating: {
|
|
@@ -2351,28 +2431,28 @@ function _o(e, t) {
|
|
|
2351
2431
|
clearTimeout(S.current);
|
|
2352
2432
|
},
|
|
2353
2433
|
onMouseLeave(v) {
|
|
2354
|
-
|
|
2434
|
+
L(v.nativeEvent, !1);
|
|
2355
2435
|
}
|
|
2356
2436
|
}
|
|
2357
2437
|
};
|
|
2358
|
-
}, [c,
|
|
2438
|
+
}, [c, d, n, o, L]);
|
|
2359
2439
|
}
|
|
2360
2440
|
function Ke(e, t) {
|
|
2361
|
-
let n = e.filter((
|
|
2441
|
+
let n = e.filter((r) => {
|
|
2362
2442
|
var i;
|
|
2363
|
-
return
|
|
2364
|
-
}),
|
|
2365
|
-
for (;
|
|
2366
|
-
|
|
2443
|
+
return r.parentId === t && ((i = r.context) == null ? void 0 : i.open);
|
|
2444
|
+
}), o = n;
|
|
2445
|
+
for (; o.length; )
|
|
2446
|
+
o = e.filter((r) => {
|
|
2367
2447
|
var i;
|
|
2368
|
-
return (i =
|
|
2448
|
+
return (i = o) == null ? void 0 : i.some((s) => {
|
|
2369
2449
|
var l;
|
|
2370
|
-
return
|
|
2450
|
+
return r.parentId === s.id && ((l = r.context) == null ? void 0 : l.open);
|
|
2371
2451
|
});
|
|
2372
|
-
}), n = n.concat(
|
|
2452
|
+
}), n = n.concat(o);
|
|
2373
2453
|
return n;
|
|
2374
2454
|
}
|
|
2375
|
-
const
|
|
2455
|
+
const kn = () => ({
|
|
2376
2456
|
getShadowRoot: !0,
|
|
2377
2457
|
displayCheck: (
|
|
2378
2458
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2381,34 +2461,34 @@ const En = () => ({
|
|
|
2381
2461
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2382
2462
|
)
|
|
2383
2463
|
});
|
|
2384
|
-
function
|
|
2385
|
-
const n =
|
|
2464
|
+
function Tn(e, t) {
|
|
2465
|
+
const n = Cn(e, kn());
|
|
2386
2466
|
t === "prev" && n.reverse();
|
|
2387
|
-
const
|
|
2388
|
-
return n.slice(
|
|
2467
|
+
const o = n.indexOf(Oo(me(e)));
|
|
2468
|
+
return n.slice(o + 1)[0];
|
|
2389
2469
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return
|
|
2470
|
+
function Gr() {
|
|
2471
|
+
return Tn(document.body, "next");
|
|
2392
2472
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return
|
|
2473
|
+
function Ur() {
|
|
2474
|
+
return Tn(document.body, "prev");
|
|
2395
2475
|
}
|
|
2396
2476
|
function st(e, t) {
|
|
2397
|
-
const n = t || e.currentTarget,
|
|
2398
|
-
return !
|
|
2477
|
+
const n = t || e.currentTarget, o = e.relatedTarget;
|
|
2478
|
+
return !o || !be(n, o);
|
|
2399
2479
|
}
|
|
2400
|
-
function
|
|
2401
|
-
|
|
2480
|
+
function qr(e) {
|
|
2481
|
+
Cn(e, kn()).forEach((n) => {
|
|
2402
2482
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
2403
2483
|
});
|
|
2404
2484
|
}
|
|
2405
|
-
function
|
|
2485
|
+
function Zr(e) {
|
|
2406
2486
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
2407
|
-
const
|
|
2408
|
-
delete n.dataset.tabindex,
|
|
2487
|
+
const o = n.dataset.tabindex;
|
|
2488
|
+
delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
2409
2489
|
});
|
|
2410
2490
|
}
|
|
2411
|
-
const
|
|
2491
|
+
const In = {
|
|
2412
2492
|
border: 0,
|
|
2413
2493
|
clip: "rect(0 0 0 0)",
|
|
2414
2494
|
height: "1px",
|
|
@@ -2421,44 +2501,44 @@ const kn = {
|
|
|
2421
2501
|
top: 0,
|
|
2422
2502
|
left: 0
|
|
2423
2503
|
};
|
|
2424
|
-
let
|
|
2504
|
+
let Jr;
|
|
2425
2505
|
function _t(e) {
|
|
2426
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2506
|
+
e.key === "Tab" && (e.target, clearTimeout(Jr));
|
|
2427
2507
|
}
|
|
2428
2508
|
const Yt = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
2429
|
-
const [
|
|
2430
|
-
Q(() => (
|
|
2509
|
+
const [o, r] = y.useState();
|
|
2510
|
+
Q(() => (Do() && r("button"), document.addEventListener("keydown", _t), () => {
|
|
2431
2511
|
document.removeEventListener("keydown", _t);
|
|
2432
2512
|
}), []);
|
|
2433
2513
|
const i = {
|
|
2434
2514
|
ref: n,
|
|
2435
2515
|
tabIndex: 0,
|
|
2436
2516
|
// Role is only for VoiceOver
|
|
2437
|
-
role:
|
|
2438
|
-
"aria-hidden":
|
|
2517
|
+
role: o,
|
|
2518
|
+
"aria-hidden": o ? void 0 : !0,
|
|
2439
2519
|
[tt("focus-guard")]: "",
|
|
2440
|
-
style:
|
|
2520
|
+
style: In
|
|
2441
2521
|
};
|
|
2442
2522
|
return /* @__PURE__ */ y.createElement("span", ft({}, t, i));
|
|
2443
|
-
}),
|
|
2444
|
-
function
|
|
2523
|
+
}), Bn = /* @__PURE__ */ y.createContext(null), Xt = /* @__PURE__ */ tt("portal");
|
|
2524
|
+
function Qr(e) {
|
|
2445
2525
|
let {
|
|
2446
2526
|
id: t,
|
|
2447
2527
|
root: n
|
|
2448
2528
|
} = e === void 0 ? {} : e;
|
|
2449
|
-
const [
|
|
2529
|
+
const [o, r] = y.useState(null), i = xt(), s = ti(), l = y.useRef(null);
|
|
2450
2530
|
return Q(() => () => {
|
|
2451
|
-
|
|
2531
|
+
o == null || o.remove(), queueMicrotask(() => {
|
|
2452
2532
|
l.current = null;
|
|
2453
2533
|
});
|
|
2454
|
-
}, [
|
|
2534
|
+
}, [o]), Q(() => {
|
|
2455
2535
|
if (l.current)
|
|
2456
2536
|
return;
|
|
2457
2537
|
const a = t ? document.getElementById(t) : null;
|
|
2458
2538
|
if (!a)
|
|
2459
2539
|
return;
|
|
2460
2540
|
const c = document.createElement("div");
|
|
2461
|
-
c.id = i, c.setAttribute(
|
|
2541
|
+
c.id = i, c.setAttribute(Xt, ""), a.appendChild(c), l.current = c, r(c);
|
|
2462
2542
|
}, [t, i]), Q(() => {
|
|
2463
2543
|
if (l.current)
|
|
2464
2544
|
return;
|
|
@@ -2466,88 +2546,88 @@ function qo(e) {
|
|
|
2466
2546
|
a && !N(a) && (a = a.current), a = a || document.body;
|
|
2467
2547
|
let c = null;
|
|
2468
2548
|
t && (c = document.createElement("div"), c.id = t, a.appendChild(c));
|
|
2469
|
-
const
|
|
2470
|
-
|
|
2471
|
-
}, [t, n, i, s]),
|
|
2549
|
+
const g = document.createElement("div");
|
|
2550
|
+
g.id = i, g.setAttribute(Xt, ""), a = c || a, a.appendChild(g), l.current = g, r(g);
|
|
2551
|
+
}, [t, n, i, s]), o;
|
|
2472
2552
|
}
|
|
2473
|
-
function
|
|
2553
|
+
function ei(e) {
|
|
2474
2554
|
let {
|
|
2475
2555
|
children: t,
|
|
2476
2556
|
id: n,
|
|
2477
|
-
root:
|
|
2478
|
-
preserveTabOrder:
|
|
2557
|
+
root: o = null,
|
|
2558
|
+
preserveTabOrder: r = !0
|
|
2479
2559
|
} = e;
|
|
2480
|
-
const i =
|
|
2560
|
+
const i = Qr({
|
|
2481
2561
|
id: n,
|
|
2482
|
-
root:
|
|
2483
|
-
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null),
|
|
2562
|
+
root: o
|
|
2563
|
+
}), [s, l] = y.useState(null), a = y.useRef(null), c = y.useRef(null), g = y.useRef(null), u = y.useRef(null), f = (
|
|
2484
2564
|
// The FocusManager and therefore floating element are currently open/
|
|
2485
2565
|
// rendered.
|
|
2486
2566
|
!!s && // Guards are only for non-modal focus management.
|
|
2487
2567
|
!s.modal && // Don't render if unmount is transitioning.
|
|
2488
|
-
s.open &&
|
|
2568
|
+
s.open && r && !!(o || i)
|
|
2489
2569
|
);
|
|
2490
2570
|
return y.useEffect(() => {
|
|
2491
|
-
if (!i || !
|
|
2571
|
+
if (!i || !r || s != null && s.modal)
|
|
2492
2572
|
return;
|
|
2493
|
-
function
|
|
2494
|
-
i && st(
|
|
2573
|
+
function d(m) {
|
|
2574
|
+
i && st(m) && (m.type === "focusin" ? Zr : qr)(i);
|
|
2495
2575
|
}
|
|
2496
|
-
return i.addEventListener("focusin",
|
|
2497
|
-
i.removeEventListener("focusin",
|
|
2576
|
+
return i.addEventListener("focusin", d, !0), i.addEventListener("focusout", d, !0), () => {
|
|
2577
|
+
i.removeEventListener("focusin", d, !0), i.removeEventListener("focusout", d, !0);
|
|
2498
2578
|
};
|
|
2499
|
-
}, [i,
|
|
2579
|
+
}, [i, r, s == null ? void 0 : s.modal]), /* @__PURE__ */ y.createElement(Bn.Provider, {
|
|
2500
2580
|
value: y.useMemo(() => ({
|
|
2501
|
-
preserveTabOrder:
|
|
2581
|
+
preserveTabOrder: r,
|
|
2502
2582
|
beforeOutsideRef: a,
|
|
2503
2583
|
afterOutsideRef: c,
|
|
2504
|
-
beforeInsideRef:
|
|
2505
|
-
afterInsideRef:
|
|
2584
|
+
beforeInsideRef: g,
|
|
2585
|
+
afterInsideRef: u,
|
|
2506
2586
|
portalNode: i,
|
|
2507
2587
|
setFocusManagerState: l
|
|
2508
|
-
}), [
|
|
2588
|
+
}), [r, i])
|
|
2509
2589
|
}, f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2510
2590
|
"data-type": "outside",
|
|
2511
2591
|
ref: a,
|
|
2512
|
-
onFocus: (
|
|
2513
|
-
if (st(
|
|
2514
|
-
var
|
|
2515
|
-
(
|
|
2592
|
+
onFocus: (d) => {
|
|
2593
|
+
if (st(d, i)) {
|
|
2594
|
+
var m;
|
|
2595
|
+
(m = g.current) == null || m.focus();
|
|
2516
2596
|
} else {
|
|
2517
|
-
const p =
|
|
2597
|
+
const p = Ur() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2518
2598
|
p == null || p.focus();
|
|
2519
2599
|
}
|
|
2520
2600
|
}
|
|
2521
2601
|
}), f && i && /* @__PURE__ */ y.createElement("span", {
|
|
2522
2602
|
"aria-owns": i.id,
|
|
2523
|
-
style:
|
|
2524
|
-
}), i && /* @__PURE__ */
|
|
2603
|
+
style: In
|
|
2604
|
+
}), i && /* @__PURE__ */ on(t, i), f && i && /* @__PURE__ */ y.createElement(Yt, {
|
|
2525
2605
|
"data-type": "outside",
|
|
2526
2606
|
ref: c,
|
|
2527
|
-
onFocus: (
|
|
2528
|
-
if (st(
|
|
2529
|
-
var
|
|
2530
|
-
(
|
|
2607
|
+
onFocus: (d) => {
|
|
2608
|
+
if (st(d, i)) {
|
|
2609
|
+
var m;
|
|
2610
|
+
(m = u.current) == null || m.focus();
|
|
2531
2611
|
} else {
|
|
2532
|
-
const p =
|
|
2533
|
-
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1,
|
|
2612
|
+
const p = Gr() || (s == null ? void 0 : s.refs.domReference.current);
|
|
2613
|
+
p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
|
|
2534
2614
|
}
|
|
2535
2615
|
}
|
|
2536
2616
|
}));
|
|
2537
2617
|
}
|
|
2538
|
-
const
|
|
2539
|
-
function
|
|
2618
|
+
const ti = () => y.useContext(Bn);
|
|
2619
|
+
function Kt(e) {
|
|
2540
2620
|
return Z(e.target) && e.target.tagName === "BUTTON";
|
|
2541
2621
|
}
|
|
2542
2622
|
function Gt(e) {
|
|
2543
|
-
return
|
|
2623
|
+
return zo(e);
|
|
2544
2624
|
}
|
|
2545
|
-
function
|
|
2625
|
+
function ni(e, t) {
|
|
2546
2626
|
t === void 0 && (t = {});
|
|
2547
2627
|
const {
|
|
2548
2628
|
open: n,
|
|
2549
|
-
onOpenChange:
|
|
2550
|
-
dataRef:
|
|
2629
|
+
onOpenChange: o,
|
|
2630
|
+
dataRef: r,
|
|
2551
2631
|
elements: {
|
|
2552
2632
|
domReference: i
|
|
2553
2633
|
}
|
|
@@ -2556,37 +2636,37 @@ function Qo(e, t) {
|
|
|
2556
2636
|
event: l = "click",
|
|
2557
2637
|
toggle: a = !0,
|
|
2558
2638
|
ignoreMouse: c = !1,
|
|
2559
|
-
keyboardHandlers:
|
|
2560
|
-
} = t,
|
|
2639
|
+
keyboardHandlers: g = !0
|
|
2640
|
+
} = t, u = y.useRef(), f = y.useRef(!1);
|
|
2561
2641
|
return y.useMemo(() => s ? {
|
|
2562
2642
|
reference: {
|
|
2563
|
-
onPointerDown(
|
|
2564
|
-
|
|
2643
|
+
onPointerDown(d) {
|
|
2644
|
+
u.current = d.pointerType;
|
|
2565
2645
|
},
|
|
2566
|
-
onMouseDown(
|
|
2567
|
-
|
|
2646
|
+
onMouseDown(d) {
|
|
2647
|
+
d.button === 0 && (Ge(u.current, !0) && c || l !== "click" && (n && a && (!r.current.openEvent || r.current.openEvent.type === "mousedown") ? o(!1, d.nativeEvent, "click") : (d.preventDefault(), o(!0, d.nativeEvent, "click"))));
|
|
2568
2648
|
},
|
|
2569
|
-
onClick(
|
|
2570
|
-
if (l === "mousedown" &&
|
|
2571
|
-
|
|
2649
|
+
onClick(d) {
|
|
2650
|
+
if (l === "mousedown" && u.current) {
|
|
2651
|
+
u.current = void 0;
|
|
2572
2652
|
return;
|
|
2573
2653
|
}
|
|
2574
|
-
|
|
2654
|
+
Ge(u.current, !0) && c || (n && a && (!r.current.openEvent || r.current.openEvent.type === "click") ? o(!1, d.nativeEvent, "click") : o(!0, d.nativeEvent, "click"));
|
|
2575
2655
|
},
|
|
2576
|
-
onKeyDown(
|
|
2577
|
-
|
|
2656
|
+
onKeyDown(d) {
|
|
2657
|
+
u.current = void 0, !(d.defaultPrevented || !g || Kt(d)) && (d.key === " " && !Gt(i) && (d.preventDefault(), f.current = !0), d.key === "Enter" && o(!(n && a), d.nativeEvent, "click"));
|
|
2578
2658
|
},
|
|
2579
|
-
onKeyUp(
|
|
2580
|
-
|
|
2659
|
+
onKeyUp(d) {
|
|
2660
|
+
d.defaultPrevented || !g || Kt(d) || Gt(i) || d.key === " " && f.current && (f.current = !1, o(!(n && a), d.nativeEvent, "click"));
|
|
2581
2661
|
}
|
|
2582
2662
|
}
|
|
2583
|
-
} : {}, [s,
|
|
2663
|
+
} : {}, [s, r, l, c, g, i, a, n, o]);
|
|
2584
2664
|
}
|
|
2585
|
-
const
|
|
2665
|
+
const oi = {
|
|
2586
2666
|
pointerdown: "onPointerDown",
|
|
2587
2667
|
mousedown: "onMouseDown",
|
|
2588
2668
|
click: "onClick"
|
|
2589
|
-
},
|
|
2669
|
+
}, ri = {
|
|
2590
2670
|
pointerdown: "onPointerDownCapture",
|
|
2591
2671
|
mousedown: "onMouseDownCapture",
|
|
2592
2672
|
click: "onClickCapture"
|
|
@@ -2597,12 +2677,12 @@ const ei = {
|
|
|
2597
2677
|
outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
2598
2678
|
};
|
|
2599
2679
|
};
|
|
2600
|
-
function
|
|
2680
|
+
function ii(e, t) {
|
|
2601
2681
|
t === void 0 && (t = {});
|
|
2602
2682
|
const {
|
|
2603
2683
|
open: n,
|
|
2604
|
-
onOpenChange:
|
|
2605
|
-
nodeId:
|
|
2684
|
+
onOpenChange: o,
|
|
2685
|
+
nodeId: r,
|
|
2606
2686
|
elements: {
|
|
2607
2687
|
reference: i,
|
|
2608
2688
|
domReference: s,
|
|
@@ -2611,213 +2691,213 @@ function ni(e, t) {
|
|
|
2611
2691
|
dataRef: a
|
|
2612
2692
|
} = e, {
|
|
2613
2693
|
enabled: c = !0,
|
|
2614
|
-
escapeKey:
|
|
2615
|
-
outsidePress:
|
|
2694
|
+
escapeKey: g = !0,
|
|
2695
|
+
outsidePress: u = !0,
|
|
2616
2696
|
outsidePressEvent: f = "pointerdown",
|
|
2617
|
-
referencePress:
|
|
2618
|
-
referencePressEvent:
|
|
2697
|
+
referencePress: d = !1,
|
|
2698
|
+
referencePressEvent: m = "pointerdown",
|
|
2619
2699
|
ancestorScroll: p = !1,
|
|
2620
2700
|
bubbles: w,
|
|
2621
2701
|
capture: h
|
|
2622
|
-
} = t, x = $t(),
|
|
2623
|
-
escapeKey:
|
|
2702
|
+
} = t, x = $t(), B = ke(typeof u == "function" ? u : () => !1), S = typeof u == "function" ? B : u, k = y.useRef(!1), C = y.useRef(!1), {
|
|
2703
|
+
escapeKey: P,
|
|
2624
2704
|
outsidePress: T
|
|
2625
2705
|
} = Ut(w), {
|
|
2626
|
-
escapeKey:
|
|
2627
|
-
outsidePress:
|
|
2628
|
-
} = Ut(h),
|
|
2629
|
-
if (!n || !c || !
|
|
2706
|
+
escapeKey: D,
|
|
2707
|
+
outsidePress: A
|
|
2708
|
+
} = Ut(h), L = ke((v) => {
|
|
2709
|
+
if (!n || !c || !g || v.key !== "Escape")
|
|
2630
2710
|
return;
|
|
2631
|
-
const I = x ? Ke(x.nodesRef.current,
|
|
2632
|
-
if (!
|
|
2711
|
+
const I = x ? Ke(x.nodesRef.current, r) : [];
|
|
2712
|
+
if (!P && (v.stopPropagation(), I.length > 0)) {
|
|
2633
2713
|
let R = !0;
|
|
2634
2714
|
if (I.forEach(($) => {
|
|
2635
|
-
var
|
|
2636
|
-
if ((
|
|
2715
|
+
var F;
|
|
2716
|
+
if ((F = $.context) != null && F.open && !$.context.dataRef.current.__escapeKeyBubbles) {
|
|
2637
2717
|
R = !1;
|
|
2638
2718
|
return;
|
|
2639
2719
|
}
|
|
2640
2720
|
}), !R)
|
|
2641
2721
|
return;
|
|
2642
2722
|
}
|
|
2643
|
-
|
|
2644
|
-
}), M =
|
|
2723
|
+
o(!1, Mo(v) ? v.nativeEvent : v, "escape-key");
|
|
2724
|
+
}), M = ke((v) => {
|
|
2645
2725
|
var I;
|
|
2646
2726
|
const R = () => {
|
|
2647
2727
|
var $;
|
|
2648
|
-
|
|
2728
|
+
L(v), ($ = Ce(v)) == null || $.removeEventListener("keydown", R);
|
|
2649
2729
|
};
|
|
2650
|
-
(I =
|
|
2651
|
-
}), O =
|
|
2730
|
+
(I = Ce(v)) == null || I.addEventListener("keydown", R);
|
|
2731
|
+
}), O = ke((v) => {
|
|
2652
2732
|
const I = k.current;
|
|
2653
2733
|
k.current = !1;
|
|
2654
2734
|
const R = C.current;
|
|
2655
2735
|
if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
|
|
2656
2736
|
return;
|
|
2657
|
-
const $ =
|
|
2658
|
-
let
|
|
2659
|
-
for (;
|
|
2660
|
-
const V =
|
|
2661
|
-
if (
|
|
2737
|
+
const $ = Ce(v), F = "[" + tt("inert") + "]", K = me(l).querySelectorAll(F);
|
|
2738
|
+
let U = N($) ? $ : null;
|
|
2739
|
+
for (; U && !Ae(U); ) {
|
|
2740
|
+
const V = ye(U);
|
|
2741
|
+
if (Ae(V) || !N(V))
|
|
2662
2742
|
break;
|
|
2663
|
-
|
|
2743
|
+
U = V;
|
|
2664
2744
|
}
|
|
2665
|
-
if (K.length && N($) && !
|
|
2666
|
-
!
|
|
2745
|
+
if (K.length && N($) && !Lo($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
2746
|
+
!be($, l) && // If the target root element contains none of the markers, then the
|
|
2667
2747
|
// element was injected after the floating element rendered.
|
|
2668
|
-
Array.from(K).every((V) => !
|
|
2748
|
+
Array.from(K).every((V) => !be(U, V)))
|
|
2669
2749
|
return;
|
|
2670
2750
|
if (Z($) && l) {
|
|
2671
|
-
const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth,
|
|
2672
|
-
let
|
|
2673
|
-
if (
|
|
2751
|
+
const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, G = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
|
|
2752
|
+
let ce = G && v.offsetX > $.clientWidth;
|
|
2753
|
+
if (G && J($).direction === "rtl" && (ce = v.offsetX <= $.offsetWidth - $.clientWidth), ce || V && v.offsetY > $.clientHeight)
|
|
2674
2754
|
return;
|
|
2675
2755
|
}
|
|
2676
|
-
const
|
|
2677
|
-
var
|
|
2678
|
-
return
|
|
2756
|
+
const we = x && Ke(x.nodesRef.current, r).some((V) => {
|
|
2757
|
+
var G;
|
|
2758
|
+
return ot(v, (G = V.context) == null ? void 0 : G.elements.floating);
|
|
2679
2759
|
});
|
|
2680
|
-
if (
|
|
2760
|
+
if (ot(v, l) || ot(v, s) || we)
|
|
2681
2761
|
return;
|
|
2682
|
-
const
|
|
2683
|
-
if (
|
|
2762
|
+
const ae = x ? Ke(x.nodesRef.current, r) : [];
|
|
2763
|
+
if (ae.length > 0) {
|
|
2684
2764
|
let V = !0;
|
|
2685
|
-
if (
|
|
2686
|
-
var
|
|
2687
|
-
if ((
|
|
2765
|
+
if (ae.forEach((G) => {
|
|
2766
|
+
var ce;
|
|
2767
|
+
if ((ce = G.context) != null && ce.open && !G.context.dataRef.current.__outsidePressBubbles) {
|
|
2688
2768
|
V = !1;
|
|
2689
2769
|
return;
|
|
2690
2770
|
}
|
|
2691
2771
|
}), !V)
|
|
2692
2772
|
return;
|
|
2693
2773
|
}
|
|
2694
|
-
|
|
2695
|
-
}), b =
|
|
2774
|
+
o(!1, v, "outside-press");
|
|
2775
|
+
}), b = ke((v) => {
|
|
2696
2776
|
var I;
|
|
2697
2777
|
const R = () => {
|
|
2698
2778
|
var $;
|
|
2699
|
-
O(v), ($ =
|
|
2779
|
+
O(v), ($ = Ce(v)) == null || $.removeEventListener(f, R);
|
|
2700
2780
|
};
|
|
2701
|
-
(I =
|
|
2781
|
+
(I = Ce(v)) == null || I.addEventListener(f, R);
|
|
2702
2782
|
});
|
|
2703
2783
|
return y.useEffect(() => {
|
|
2704
2784
|
if (!n || !c)
|
|
2705
2785
|
return;
|
|
2706
|
-
a.current.__escapeKeyBubbles =
|
|
2786
|
+
a.current.__escapeKeyBubbles = P, a.current.__outsidePressBubbles = T;
|
|
2707
2787
|
function v($) {
|
|
2708
|
-
|
|
2788
|
+
o(!1, $, "ancestor-scroll");
|
|
2709
2789
|
}
|
|
2710
2790
|
const I = me(l);
|
|
2711
|
-
|
|
2791
|
+
g && I.addEventListener("keydown", D ? M : L, D), S && I.addEventListener(f, A ? b : O, A);
|
|
2712
2792
|
let R = [];
|
|
2713
|
-
return p && (N(s) && (R =
|
|
2714
|
-
var
|
|
2715
|
-
return $ !== ((
|
|
2793
|
+
return p && (N(s) && (R = ie(s)), N(l) && (R = R.concat(ie(l))), !N(i) && i && i.contextElement && (R = R.concat(ie(i.contextElement)))), R = R.filter(($) => {
|
|
2794
|
+
var F;
|
|
2795
|
+
return $ !== ((F = I.defaultView) == null ? void 0 : F.visualViewport);
|
|
2716
2796
|
}), R.forEach(($) => {
|
|
2717
2797
|
$.addEventListener("scroll", v, {
|
|
2718
2798
|
passive: !0
|
|
2719
2799
|
});
|
|
2720
2800
|
}), () => {
|
|
2721
|
-
|
|
2801
|
+
g && I.removeEventListener("keydown", D ? M : L, D), S && I.removeEventListener(f, A ? b : O, A), R.forEach(($) => {
|
|
2722
2802
|
$.removeEventListener("scroll", v);
|
|
2723
2803
|
});
|
|
2724
2804
|
};
|
|
2725
|
-
}, [a, l, s, i,
|
|
2805
|
+
}, [a, l, s, i, g, S, f, n, o, p, c, P, T, L, D, M, O, A, b]), y.useEffect(() => {
|
|
2726
2806
|
k.current = !1;
|
|
2727
2807
|
}, [S, f]), y.useMemo(() => c ? {
|
|
2728
2808
|
reference: {
|
|
2729
|
-
onKeyDown:
|
|
2730
|
-
[
|
|
2731
|
-
|
|
2809
|
+
onKeyDown: L,
|
|
2810
|
+
[oi[m]]: (v) => {
|
|
2811
|
+
d && o(!1, v.nativeEvent, "reference-press");
|
|
2732
2812
|
}
|
|
2733
2813
|
},
|
|
2734
2814
|
floating: {
|
|
2735
|
-
onKeyDown:
|
|
2815
|
+
onKeyDown: L,
|
|
2736
2816
|
onMouseDown() {
|
|
2737
2817
|
C.current = !0;
|
|
2738
2818
|
},
|
|
2739
2819
|
onMouseUp() {
|
|
2740
2820
|
C.current = !0;
|
|
2741
2821
|
},
|
|
2742
|
-
[
|
|
2822
|
+
[ri[f]]: () => {
|
|
2743
2823
|
k.current = !0;
|
|
2744
2824
|
}
|
|
2745
2825
|
}
|
|
2746
|
-
} : {}, [c,
|
|
2826
|
+
} : {}, [c, d, f, m, o, L]);
|
|
2747
2827
|
}
|
|
2748
|
-
let
|
|
2749
|
-
process.env.NODE_ENV !== "production" && (
|
|
2750
|
-
function
|
|
2828
|
+
let gt;
|
|
2829
|
+
process.env.NODE_ENV !== "production" && (gt = /* @__PURE__ */ new Set());
|
|
2830
|
+
function si(e) {
|
|
2751
2831
|
var t;
|
|
2752
2832
|
e === void 0 && (e = {});
|
|
2753
2833
|
const {
|
|
2754
2834
|
open: n = !1,
|
|
2755
|
-
onOpenChange:
|
|
2756
|
-
nodeId:
|
|
2835
|
+
onOpenChange: o,
|
|
2836
|
+
nodeId: r
|
|
2757
2837
|
} = e;
|
|
2758
2838
|
if (process.env.NODE_ENV !== "production") {
|
|
2759
2839
|
var i;
|
|
2760
2840
|
const T = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
2761
2841
|
if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
|
|
2762
2842
|
var s;
|
|
2763
|
-
if (!((s =
|
|
2843
|
+
if (!((s = gt) != null && s.has(T))) {
|
|
2764
2844
|
var l;
|
|
2765
|
-
(l =
|
|
2845
|
+
(l = gt) == null || l.add(T), console.error(T);
|
|
2766
2846
|
}
|
|
2767
2847
|
}
|
|
2768
2848
|
}
|
|
2769
|
-
const [a, c] = y.useState(null),
|
|
2770
|
-
T && (w.current.openEvent =
|
|
2849
|
+
const [a, c] = y.useState(null), g = ((t = e.elements) == null ? void 0 : t.reference) || a, u = xr(e), f = $t(), d = wt() != null, m = ke((T, D, A) => {
|
|
2850
|
+
T && (w.current.openEvent = D), h.emit("openchange", {
|
|
2771
2851
|
open: T,
|
|
2772
|
-
event:
|
|
2773
|
-
reason:
|
|
2774
|
-
nested:
|
|
2775
|
-
}),
|
|
2776
|
-
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() =>
|
|
2777
|
-
const
|
|
2852
|
+
event: D,
|
|
2853
|
+
reason: A,
|
|
2854
|
+
nested: d
|
|
2855
|
+
}), o == null || o(T, D, A);
|
|
2856
|
+
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => _r())[0], x = xt(), B = y.useCallback((T) => {
|
|
2857
|
+
const D = N(T) ? {
|
|
2778
2858
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2779
2859
|
contextElement: T
|
|
2780
2860
|
} : T;
|
|
2781
|
-
|
|
2782
|
-
}, [
|
|
2783
|
-
(N(T) || T === null) && (p.current = T, c(T)), (N(
|
|
2861
|
+
u.refs.setReference(D);
|
|
2862
|
+
}, [u.refs]), S = y.useCallback((T) => {
|
|
2863
|
+
(N(T) || T === null) && (p.current = T, c(T)), (N(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
2784
2864
|
// `null` to support `positionReference` + an unstable `reference`
|
|
2785
2865
|
// callback ref.
|
|
2786
|
-
T !== null && !N(T)) &&
|
|
2787
|
-
}, [
|
|
2788
|
-
...
|
|
2866
|
+
T !== null && !N(T)) && u.refs.setReference(T);
|
|
2867
|
+
}, [u.refs]), k = y.useMemo(() => ({
|
|
2868
|
+
...u.refs,
|
|
2789
2869
|
setReference: S,
|
|
2790
|
-
setPositionReference:
|
|
2870
|
+
setPositionReference: B,
|
|
2791
2871
|
domReference: p
|
|
2792
|
-
}), [
|
|
2793
|
-
...
|
|
2794
|
-
domReference:
|
|
2795
|
-
}), [
|
|
2796
|
-
...
|
|
2872
|
+
}), [u.refs, S, B]), C = y.useMemo(() => ({
|
|
2873
|
+
...u.elements,
|
|
2874
|
+
domReference: g
|
|
2875
|
+
}), [u.elements, g]), P = y.useMemo(() => ({
|
|
2876
|
+
...u,
|
|
2797
2877
|
refs: k,
|
|
2798
2878
|
elements: C,
|
|
2799
2879
|
dataRef: w,
|
|
2800
|
-
nodeId:
|
|
2880
|
+
nodeId: r,
|
|
2801
2881
|
floatingId: x,
|
|
2802
2882
|
events: h,
|
|
2803
2883
|
open: n,
|
|
2804
|
-
onOpenChange:
|
|
2805
|
-
}), [
|
|
2884
|
+
onOpenChange: m
|
|
2885
|
+
}), [u, r, x, h, n, m, k, C]);
|
|
2806
2886
|
return Q(() => {
|
|
2807
|
-
const T = f == null ? void 0 : f.nodesRef.current.find((
|
|
2808
|
-
T && (T.context =
|
|
2887
|
+
const T = f == null ? void 0 : f.nodesRef.current.find((D) => D.id === r);
|
|
2888
|
+
T && (T.context = P);
|
|
2809
2889
|
}), y.useMemo(() => ({
|
|
2810
|
-
...
|
|
2811
|
-
context:
|
|
2890
|
+
...u,
|
|
2891
|
+
context: P,
|
|
2812
2892
|
refs: k,
|
|
2813
2893
|
elements: C
|
|
2814
|
-
}), [
|
|
2894
|
+
}), [u, k, C, P]);
|
|
2815
2895
|
}
|
|
2816
2896
|
const qt = "active", Zt = "selected";
|
|
2817
2897
|
function lt(e, t, n) {
|
|
2818
|
-
const
|
|
2898
|
+
const o = /* @__PURE__ */ new Map(), r = n === "item";
|
|
2819
2899
|
let i = e;
|
|
2820
|
-
if (
|
|
2900
|
+
if (r && e) {
|
|
2821
2901
|
const {
|
|
2822
2902
|
[qt]: s,
|
|
2823
2903
|
[Zt]: l,
|
|
@@ -2834,25 +2914,25 @@ function lt(e, t, n) {
|
|
|
2834
2914
|
const l = s ? s[n] : null;
|
|
2835
2915
|
return typeof l == "function" ? e ? l(e) : null : l;
|
|
2836
2916
|
}).concat(e).reduce((s, l) => (l && Object.entries(l).forEach((a) => {
|
|
2837
|
-
let [c,
|
|
2838
|
-
if (!(
|
|
2917
|
+
let [c, g] = a;
|
|
2918
|
+
if (!(r && [qt, Zt].includes(c)))
|
|
2839
2919
|
if (c.indexOf("on") === 0) {
|
|
2840
|
-
if (
|
|
2841
|
-
var
|
|
2842
|
-
(
|
|
2843
|
-
for (var f,
|
|
2844
|
-
|
|
2845
|
-
return (f =
|
|
2920
|
+
if (o.has(c) || o.set(c, []), typeof g == "function") {
|
|
2921
|
+
var u;
|
|
2922
|
+
(u = o.get(c)) == null || u.push(g), s[c] = function() {
|
|
2923
|
+
for (var f, d = arguments.length, m = new Array(d), p = 0; p < d; p++)
|
|
2924
|
+
m[p] = arguments[p];
|
|
2925
|
+
return (f = o.get(c)) == null ? void 0 : f.map((w) => w(...m)).find((w) => w !== void 0);
|
|
2846
2926
|
};
|
|
2847
2927
|
}
|
|
2848
2928
|
} else
|
|
2849
|
-
s[c] =
|
|
2929
|
+
s[c] = g;
|
|
2850
2930
|
}), s), {})
|
|
2851
2931
|
};
|
|
2852
2932
|
}
|
|
2853
|
-
function
|
|
2933
|
+
function li(e) {
|
|
2854
2934
|
e === void 0 && (e = []);
|
|
2855
|
-
const t = e, n = y.useCallback((i) => lt(i, e, "reference"), t),
|
|
2935
|
+
const t = e, n = y.useCallback((i) => lt(i, e, "reference"), t), o = y.useCallback((i) => lt(i, e, "floating"), t), r = y.useCallback(
|
|
2856
2936
|
(i) => lt(i, e, "item"),
|
|
2857
2937
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2858
2938
|
// should be as referentially stable as possible since it may be passed as
|
|
@@ -2862,47 +2942,47 @@ function oi(e) {
|
|
|
2862
2942
|
);
|
|
2863
2943
|
return y.useMemo(() => ({
|
|
2864
2944
|
getReferenceProps: n,
|
|
2865
|
-
getFloatingProps:
|
|
2866
|
-
getItemProps:
|
|
2867
|
-
}), [n,
|
|
2945
|
+
getFloatingProps: o,
|
|
2946
|
+
getItemProps: r
|
|
2947
|
+
}), [n, o, r]);
|
|
2868
2948
|
}
|
|
2869
|
-
const
|
|
2870
|
-
function
|
|
2949
|
+
const ai = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
2950
|
+
function ci(e, t) {
|
|
2871
2951
|
var n;
|
|
2872
2952
|
t === void 0 && (t = {});
|
|
2873
2953
|
const {
|
|
2874
|
-
open:
|
|
2875
|
-
floatingId:
|
|
2954
|
+
open: o,
|
|
2955
|
+
floatingId: r
|
|
2876
2956
|
} = e, {
|
|
2877
2957
|
enabled: i = !0,
|
|
2878
2958
|
role: s = "dialog"
|
|
2879
|
-
} = t, l = (n =
|
|
2959
|
+
} = t, l = (n = ai.get(s)) != null ? n : s, a = xt(), g = wt() != null;
|
|
2880
2960
|
return y.useMemo(() => {
|
|
2881
2961
|
if (!i)
|
|
2882
2962
|
return {};
|
|
2883
|
-
const
|
|
2884
|
-
id:
|
|
2963
|
+
const u = {
|
|
2964
|
+
id: r,
|
|
2885
2965
|
...l && {
|
|
2886
2966
|
role: l
|
|
2887
2967
|
}
|
|
2888
2968
|
};
|
|
2889
2969
|
return l === "tooltip" || s === "label" ? {
|
|
2890
2970
|
reference: {
|
|
2891
|
-
["aria-" + (s === "label" ? "labelledby" : "describedby")]:
|
|
2971
|
+
["aria-" + (s === "label" ? "labelledby" : "describedby")]: o ? r : void 0
|
|
2892
2972
|
},
|
|
2893
|
-
floating:
|
|
2973
|
+
floating: u
|
|
2894
2974
|
} : {
|
|
2895
2975
|
reference: {
|
|
2896
|
-
"aria-expanded":
|
|
2976
|
+
"aria-expanded": o ? "true" : "false",
|
|
2897
2977
|
"aria-haspopup": l === "alertdialog" ? "dialog" : l,
|
|
2898
|
-
"aria-controls":
|
|
2978
|
+
"aria-controls": o ? r : void 0,
|
|
2899
2979
|
...l === "listbox" && {
|
|
2900
2980
|
role: "combobox"
|
|
2901
2981
|
},
|
|
2902
2982
|
...l === "menu" && {
|
|
2903
2983
|
id: a
|
|
2904
2984
|
},
|
|
2905
|
-
...l === "menu" &&
|
|
2985
|
+
...l === "menu" && g && {
|
|
2906
2986
|
role: "menuitem"
|
|
2907
2987
|
},
|
|
2908
2988
|
...s === "select" && {
|
|
@@ -2913,32 +2993,32 @@ function si(e, t) {
|
|
|
2913
2993
|
}
|
|
2914
2994
|
},
|
|
2915
2995
|
floating: {
|
|
2916
|
-
...
|
|
2996
|
+
...u,
|
|
2917
2997
|
...l === "menu" && {
|
|
2918
2998
|
"aria-labelledby": a
|
|
2919
2999
|
}
|
|
2920
3000
|
},
|
|
2921
3001
|
item(f) {
|
|
2922
3002
|
let {
|
|
2923
|
-
active:
|
|
2924
|
-
selected:
|
|
3003
|
+
active: d,
|
|
3004
|
+
selected: m
|
|
2925
3005
|
} = f;
|
|
2926
3006
|
const p = {
|
|
2927
3007
|
role: "option",
|
|
2928
|
-
...
|
|
2929
|
-
id:
|
|
3008
|
+
...d && {
|
|
3009
|
+
id: r + "-option"
|
|
2930
3010
|
}
|
|
2931
3011
|
};
|
|
2932
3012
|
switch (s) {
|
|
2933
3013
|
case "select":
|
|
2934
3014
|
return {
|
|
2935
3015
|
...p,
|
|
2936
|
-
"aria-selected":
|
|
3016
|
+
"aria-selected": d && m
|
|
2937
3017
|
};
|
|
2938
3018
|
case "combobox":
|
|
2939
3019
|
return {
|
|
2940
3020
|
...p,
|
|
2941
|
-
...
|
|
3021
|
+
...d && {
|
|
2942
3022
|
"aria-selected": !0
|
|
2943
3023
|
}
|
|
2944
3024
|
};
|
|
@@ -2946,232 +3026,232 @@ function si(e, t) {
|
|
|
2946
3026
|
return {};
|
|
2947
3027
|
}
|
|
2948
3028
|
};
|
|
2949
|
-
}, [i, s, l,
|
|
3029
|
+
}, [i, s, l, o, r, a, g]);
|
|
2950
3030
|
}
|
|
2951
3031
|
const Jt = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase());
|
|
2952
|
-
function
|
|
3032
|
+
function Ee(e, t) {
|
|
2953
3033
|
return typeof e == "function" ? e(t) : e;
|
|
2954
3034
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const [n,
|
|
2957
|
-
return e && !n &&
|
|
3035
|
+
function ui(e, t) {
|
|
3036
|
+
const [n, o] = y.useState(e);
|
|
3037
|
+
return e && !n && o(!0), y.useEffect(() => {
|
|
2958
3038
|
if (!e) {
|
|
2959
|
-
const
|
|
2960
|
-
return () => clearTimeout(
|
|
3039
|
+
const r = setTimeout(() => o(!1), t);
|
|
3040
|
+
return () => clearTimeout(r);
|
|
2961
3041
|
}
|
|
2962
3042
|
}, [e, t]), n;
|
|
2963
3043
|
}
|
|
2964
|
-
function
|
|
3044
|
+
function di(e, t) {
|
|
2965
3045
|
t === void 0 && (t = {});
|
|
2966
3046
|
const {
|
|
2967
3047
|
open: n,
|
|
2968
3048
|
elements: {
|
|
2969
|
-
floating:
|
|
3049
|
+
floating: o
|
|
2970
3050
|
}
|
|
2971
3051
|
} = e, {
|
|
2972
|
-
duration:
|
|
2973
|
-
} = t, s = (typeof
|
|
3052
|
+
duration: r = 250
|
|
3053
|
+
} = t, s = (typeof r == "number" ? r : r.close) || 0, [l, a] = y.useState(!1), [c, g] = y.useState("unmounted"), u = ui(n, s);
|
|
2974
3054
|
return Q(() => {
|
|
2975
|
-
l && !
|
|
2976
|
-
}, [l,
|
|
2977
|
-
if (
|
|
3055
|
+
l && !u && g("unmounted");
|
|
3056
|
+
}, [l, u]), Q(() => {
|
|
3057
|
+
if (o) {
|
|
2978
3058
|
if (n) {
|
|
2979
|
-
|
|
3059
|
+
g("initial");
|
|
2980
3060
|
const f = requestAnimationFrame(() => {
|
|
2981
|
-
|
|
3061
|
+
g("open");
|
|
2982
3062
|
});
|
|
2983
3063
|
return () => {
|
|
2984
3064
|
cancelAnimationFrame(f);
|
|
2985
3065
|
};
|
|
2986
3066
|
}
|
|
2987
|
-
a(!0),
|
|
3067
|
+
a(!0), g("close");
|
|
2988
3068
|
}
|
|
2989
|
-
}, [n,
|
|
2990
|
-
isMounted:
|
|
3069
|
+
}, [n, o]), {
|
|
3070
|
+
isMounted: u,
|
|
2991
3071
|
status: c
|
|
2992
3072
|
};
|
|
2993
3073
|
}
|
|
2994
|
-
function
|
|
3074
|
+
function fi(e, t) {
|
|
2995
3075
|
t === void 0 && (t = {});
|
|
2996
3076
|
const {
|
|
2997
3077
|
initial: n = {
|
|
2998
3078
|
opacity: 0
|
|
2999
3079
|
},
|
|
3000
|
-
open:
|
|
3001
|
-
close:
|
|
3080
|
+
open: o,
|
|
3081
|
+
close: r,
|
|
3002
3082
|
common: i,
|
|
3003
3083
|
duration: s = 250
|
|
3004
3084
|
} = t, l = e.placement, a = l.split("-")[0], c = y.useMemo(() => ({
|
|
3005
3085
|
side: a,
|
|
3006
3086
|
placement: l
|
|
3007
|
-
}), [a, l]),
|
|
3008
|
-
...
|
|
3009
|
-
...
|
|
3087
|
+
}), [a, l]), g = typeof s == "number", u = (g ? s : s.open) || 0, f = (g ? s : s.close) || 0, [d, m] = y.useState(() => ({
|
|
3088
|
+
...Ee(i, c),
|
|
3089
|
+
...Ee(n, c)
|
|
3010
3090
|
})), {
|
|
3011
3091
|
isMounted: p,
|
|
3012
3092
|
status: w
|
|
3013
|
-
} =
|
|
3093
|
+
} = di(e, {
|
|
3014
3094
|
duration: s
|
|
3015
|
-
}), h =
|
|
3095
|
+
}), h = Ie(n), x = Ie(o), B = Ie(r), S = Ie(i);
|
|
3016
3096
|
return Q(() => {
|
|
3017
|
-
const k =
|
|
3018
|
-
if (w === "initial" &&
|
|
3019
|
-
transitionProperty:
|
|
3020
|
-
...
|
|
3097
|
+
const k = Ee(h.current, c), C = Ee(B.current, c), P = Ee(S.current, c), T = Ee(x.current, c) || Object.keys(k).reduce((D, A) => (D[A] = "", D), {});
|
|
3098
|
+
if (w === "initial" && m((D) => ({
|
|
3099
|
+
transitionProperty: D.transitionProperty,
|
|
3100
|
+
...P,
|
|
3021
3101
|
...k
|
|
3022
|
-
})), w === "open" &&
|
|
3102
|
+
})), w === "open" && m({
|
|
3023
3103
|
transitionProperty: Object.keys(T).map(Jt).join(","),
|
|
3024
|
-
transitionDuration:
|
|
3025
|
-
...
|
|
3104
|
+
transitionDuration: u + "ms",
|
|
3105
|
+
...P,
|
|
3026
3106
|
...T
|
|
3027
3107
|
}), w === "close") {
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3030
|
-
transitionProperty: Object.keys(
|
|
3108
|
+
const D = C || k;
|
|
3109
|
+
m({
|
|
3110
|
+
transitionProperty: Object.keys(D).map(Jt).join(","),
|
|
3031
3111
|
transitionDuration: f + "ms",
|
|
3032
|
-
...
|
|
3033
|
-
...
|
|
3112
|
+
...P,
|
|
3113
|
+
...D
|
|
3034
3114
|
});
|
|
3035
3115
|
}
|
|
3036
|
-
}, [f,
|
|
3116
|
+
}, [f, B, h, x, S, u, w, c]), {
|
|
3037
3117
|
isMounted: p,
|
|
3038
|
-
styles:
|
|
3118
|
+
styles: d
|
|
3039
3119
|
};
|
|
3040
3120
|
}
|
|
3041
3121
|
function Qt(e, t) {
|
|
3042
|
-
const [n,
|
|
3043
|
-
let
|
|
3122
|
+
const [n, o] = e;
|
|
3123
|
+
let r = !1;
|
|
3044
3124
|
const i = t.length;
|
|
3045
3125
|
for (let s = 0, l = i - 1; s < i; l = s++) {
|
|
3046
|
-
const [a, c] = t[s] || [0, 0], [
|
|
3047
|
-
c >=
|
|
3126
|
+
const [a, c] = t[s] || [0, 0], [g, u] = t[l] || [0, 0];
|
|
3127
|
+
c >= o != u >= o && n <= (g - a) * (o - c) / (u - c) + a && (r = !r);
|
|
3048
3128
|
}
|
|
3049
|
-
return
|
|
3129
|
+
return r;
|
|
3050
3130
|
}
|
|
3051
|
-
function
|
|
3131
|
+
function gi(e, t) {
|
|
3052
3132
|
return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height;
|
|
3053
3133
|
}
|
|
3054
|
-
function
|
|
3134
|
+
function mi(e) {
|
|
3055
3135
|
e === void 0 && (e = {});
|
|
3056
3136
|
const {
|
|
3057
3137
|
buffer: t = 0.5,
|
|
3058
3138
|
blockPointerEvents: n = !1,
|
|
3059
|
-
requireIntent:
|
|
3139
|
+
requireIntent: o = !0
|
|
3060
3140
|
} = e;
|
|
3061
|
-
let
|
|
3062
|
-
function c(
|
|
3063
|
-
const
|
|
3064
|
-
if (s === null || l === null ||
|
|
3065
|
-
return s =
|
|
3066
|
-
const p =
|
|
3067
|
-
return s =
|
|
3141
|
+
let r, i = !1, s = null, l = null, a = performance.now();
|
|
3142
|
+
function c(u, f) {
|
|
3143
|
+
const d = performance.now(), m = d - a;
|
|
3144
|
+
if (s === null || l === null || m === 0)
|
|
3145
|
+
return s = u, l = f, a = d, null;
|
|
3146
|
+
const p = u - s, w = f - l, x = Math.sqrt(p * p + w * w) / m;
|
|
3147
|
+
return s = u, l = f, a = d, x;
|
|
3068
3148
|
}
|
|
3069
|
-
const
|
|
3149
|
+
const g = (u) => {
|
|
3070
3150
|
let {
|
|
3071
3151
|
x: f,
|
|
3072
|
-
y:
|
|
3073
|
-
placement:
|
|
3152
|
+
y: d,
|
|
3153
|
+
placement: m,
|
|
3074
3154
|
elements: p,
|
|
3075
3155
|
onClose: w,
|
|
3076
3156
|
nodeId: h,
|
|
3077
3157
|
tree: x
|
|
3078
|
-
} =
|
|
3158
|
+
} = u;
|
|
3079
3159
|
return function(S) {
|
|
3080
3160
|
function k() {
|
|
3081
|
-
clearTimeout(
|
|
3161
|
+
clearTimeout(r), w();
|
|
3082
3162
|
}
|
|
3083
|
-
if (clearTimeout(
|
|
3163
|
+
if (clearTimeout(r), !p.domReference || !p.floating || m == null || f == null || d == null)
|
|
3084
3164
|
return;
|
|
3085
3165
|
const {
|
|
3086
3166
|
clientX: C,
|
|
3087
|
-
clientY:
|
|
3088
|
-
} = S, T = [C,
|
|
3089
|
-
if (
|
|
3167
|
+
clientY: P
|
|
3168
|
+
} = S, T = [C, P], D = Ce(S), A = S.type === "mouseleave", L = be(p.floating, D), M = be(p.domReference, D), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = m.split("-")[0], I = f > b.right - b.width / 2, R = d > b.bottom - b.height / 2, $ = gi(T, O), F = b.width > O.width, K = b.height > O.height, U = (F ? O : b).left, we = (F ? O : b).right, ae = (K ? O : b).top, V = (K ? O : b).bottom;
|
|
3169
|
+
if (L && (i = !0, !A))
|
|
3090
3170
|
return;
|
|
3091
|
-
if (M && (i = !1), M && !
|
|
3171
|
+
if (M && (i = !1), M && !A) {
|
|
3092
3172
|
i = !0;
|
|
3093
3173
|
return;
|
|
3094
3174
|
}
|
|
3095
|
-
if (
|
|
3175
|
+
if (A && N(S.relatedTarget) && be(p.floating, S.relatedTarget) || x && Ke(x.nodesRef.current, h).some((ue) => {
|
|
3096
3176
|
let {
|
|
3097
3177
|
context: H
|
|
3098
|
-
} =
|
|
3178
|
+
} = ue;
|
|
3099
3179
|
return H == null ? void 0 : H.open;
|
|
3100
3180
|
}))
|
|
3101
3181
|
return;
|
|
3102
|
-
if (v === "top" &&
|
|
3182
|
+
if (v === "top" && d >= O.bottom - 1 || v === "bottom" && d <= O.top + 1 || v === "left" && f >= O.right - 1 || v === "right" && f <= O.left + 1)
|
|
3103
3183
|
return k();
|
|
3104
|
-
let
|
|
3184
|
+
let G = [];
|
|
3105
3185
|
switch (v) {
|
|
3106
3186
|
case "top":
|
|
3107
|
-
|
|
3187
|
+
G = [[U, O.top + 1], [U, b.bottom - 1], [we, b.bottom - 1], [we, O.top + 1]];
|
|
3108
3188
|
break;
|
|
3109
3189
|
case "bottom":
|
|
3110
|
-
|
|
3190
|
+
G = [[U, b.top + 1], [U, O.bottom - 1], [we, O.bottom - 1], [we, b.top + 1]];
|
|
3111
3191
|
break;
|
|
3112
3192
|
case "left":
|
|
3113
|
-
|
|
3193
|
+
G = [[b.right - 1, V], [b.right - 1, ae], [O.left + 1, ae], [O.left + 1, V]];
|
|
3114
3194
|
break;
|
|
3115
3195
|
case "right":
|
|
3116
|
-
|
|
3196
|
+
G = [[O.right - 1, V], [O.right - 1, ae], [b.left + 1, ae], [b.left + 1, V]];
|
|
3117
3197
|
break;
|
|
3118
3198
|
}
|
|
3119
|
-
function
|
|
3120
|
-
let [H, _] =
|
|
3199
|
+
function ce(ue) {
|
|
3200
|
+
let [H, _] = ue;
|
|
3121
3201
|
switch (v) {
|
|
3122
3202
|
case "top": {
|
|
3123
|
-
const
|
|
3124
|
-
return [
|
|
3203
|
+
const de = [F ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], fe = [F ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], $e = [[b.left, I || F ? b.bottom - t : b.top], [b.right, I ? F ? b.bottom - t : b.top : b.bottom - t]];
|
|
3204
|
+
return [de, fe, ...$e];
|
|
3125
3205
|
}
|
|
3126
3206
|
case "bottom": {
|
|
3127
|
-
const
|
|
3128
|
-
return [
|
|
3207
|
+
const de = [F ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ - t], fe = [F ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ - t], $e = [[b.left, I || F ? b.top + t : b.bottom], [b.right, I ? F ? b.top + t : b.bottom : b.top + t]];
|
|
3208
|
+
return [de, fe, ...$e];
|
|
3129
3209
|
}
|
|
3130
3210
|
case "left": {
|
|
3131
|
-
const
|
|
3132
|
-
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]],
|
|
3211
|
+
const de = [H + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], fe = [H + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
|
|
3212
|
+
return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], de, fe];
|
|
3133
3213
|
}
|
|
3134
3214
|
case "right": {
|
|
3135
|
-
const
|
|
3136
|
-
return [
|
|
3215
|
+
const de = [H - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], fe = [H - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], $e = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
|
|
3216
|
+
return [de, fe, ...$e];
|
|
3137
3217
|
}
|
|
3138
3218
|
}
|
|
3139
3219
|
}
|
|
3140
|
-
if (!Qt([C,
|
|
3220
|
+
if (!Qt([C, P], G)) {
|
|
3141
3221
|
if (i && !$)
|
|
3142
3222
|
return k();
|
|
3143
|
-
if (!
|
|
3144
|
-
const
|
|
3145
|
-
if (
|
|
3223
|
+
if (!A && o) {
|
|
3224
|
+
const ue = c(S.clientX, S.clientY);
|
|
3225
|
+
if (ue !== null && ue < 0.1)
|
|
3146
3226
|
return k();
|
|
3147
3227
|
}
|
|
3148
|
-
Qt([C,
|
|
3228
|
+
Qt([C, P], ce([f, d])) ? !i && o && (r = window.setTimeout(k, 40)) : k();
|
|
3149
3229
|
}
|
|
3150
3230
|
};
|
|
3151
3231
|
};
|
|
3152
|
-
return
|
|
3232
|
+
return g.__options = {
|
|
3153
3233
|
blockPointerEvents: n
|
|
3154
|
-
},
|
|
3234
|
+
}, g;
|
|
3155
3235
|
}
|
|
3156
|
-
const
|
|
3236
|
+
const ge = j("div"), St = On(
|
|
3157
3237
|
{}
|
|
3158
|
-
),
|
|
3238
|
+
), Oi = ({
|
|
3159
3239
|
children: e,
|
|
3160
3240
|
offset: t,
|
|
3161
3241
|
open: n,
|
|
3162
|
-
onOpenChange:
|
|
3163
|
-
trigger:
|
|
3242
|
+
onOpenChange: o,
|
|
3243
|
+
trigger: r = "click",
|
|
3164
3244
|
hoverDelay: i,
|
|
3165
3245
|
placement: s = "bottom",
|
|
3166
3246
|
role: l = "dialog"
|
|
3167
3247
|
}) => {
|
|
3168
|
-
const { refs: a, floatingStyles: c, context:
|
|
3248
|
+
const { refs: a, floatingStyles: c, context: g } = si({
|
|
3169
3249
|
open: n,
|
|
3170
|
-
onOpenChange:
|
|
3250
|
+
onOpenChange: o,
|
|
3171
3251
|
placement: s,
|
|
3172
|
-
whileElementsMounted:
|
|
3173
|
-
middleware: [
|
|
3174
|
-
}), { isMounted:
|
|
3252
|
+
whileElementsMounted: hr,
|
|
3253
|
+
middleware: [Zo(t), yr(), br()]
|
|
3254
|
+
}), { isMounted: u, styles: f } = fi(g, {
|
|
3175
3255
|
initial: ({ side: S }) => ({
|
|
3176
3256
|
opacity: 0,
|
|
3177
3257
|
transform: {
|
|
@@ -3181,52 +3261,52 @@ const fe = j("div"), St = Bn(
|
|
|
3181
3261
|
left: "translateX(-0.5rem)"
|
|
3182
3262
|
}[S]
|
|
3183
3263
|
})
|
|
3184
|
-
}),
|
|
3185
|
-
enabled:
|
|
3264
|
+
}), d = ni(g, { enabled: r === "click" }), m = Kr(g, {
|
|
3265
|
+
enabled: r === "hover",
|
|
3186
3266
|
delay: i,
|
|
3187
|
-
handleClose:
|
|
3188
|
-
}), p =
|
|
3189
|
-
|
|
3190
|
-
|
|
3267
|
+
handleClose: mi()
|
|
3268
|
+
}), p = ii(g), w = ci(g, { role: l }), { getFloatingProps: h, getReferenceProps: x } = li([
|
|
3269
|
+
d,
|
|
3270
|
+
m,
|
|
3191
3271
|
p,
|
|
3192
3272
|
w
|
|
3193
|
-
]),
|
|
3273
|
+
]), B = Dn(
|
|
3194
3274
|
() => ({
|
|
3195
3275
|
getFloatingProps: h,
|
|
3196
3276
|
getReferenceProps: x,
|
|
3197
3277
|
floatingStyles: c,
|
|
3198
3278
|
refs: a,
|
|
3199
|
-
isMounted:
|
|
3279
|
+
isMounted: u,
|
|
3200
3280
|
transitionStyles: f
|
|
3201
3281
|
}),
|
|
3202
3282
|
[
|
|
3203
3283
|
h,
|
|
3204
3284
|
x,
|
|
3205
|
-
|
|
3285
|
+
u,
|
|
3206
3286
|
a,
|
|
3207
3287
|
c,
|
|
3208
3288
|
f
|
|
3209
3289
|
]
|
|
3210
3290
|
);
|
|
3211
|
-
return /* @__PURE__ */ z(St.Provider, { value:
|
|
3212
|
-
},
|
|
3291
|
+
return /* @__PURE__ */ z(St.Provider, { value: B, children: e });
|
|
3292
|
+
}, Di = ({ children: e }) => {
|
|
3213
3293
|
const { getReferenceProps: t, refs: n } = nn(St);
|
|
3214
|
-
return /* @__PURE__ */ z(
|
|
3294
|
+
return /* @__PURE__ */ z(An, { children: Mn(e) && Ln(e, {
|
|
3215
3295
|
ref: n.setReference,
|
|
3216
3296
|
...t()
|
|
3217
3297
|
}) });
|
|
3218
|
-
},
|
|
3298
|
+
}, Mi = ({ children: e, overlayCardProps: t }) => {
|
|
3219
3299
|
const {
|
|
3220
3300
|
getFloatingProps: n,
|
|
3221
|
-
isMounted:
|
|
3222
|
-
refs:
|
|
3301
|
+
isMounted: o,
|
|
3302
|
+
refs: r,
|
|
3223
3303
|
floatingStyles: i,
|
|
3224
3304
|
transitionStyles: s
|
|
3225
3305
|
} = nn(St);
|
|
3226
|
-
return
|
|
3227
|
-
|
|
3306
|
+
return o ? /* @__PURE__ */ z(ei, { children: /* @__PURE__ */ z(
|
|
3307
|
+
ge,
|
|
3228
3308
|
{
|
|
3229
|
-
ref:
|
|
3309
|
+
ref: r.setFloating,
|
|
3230
3310
|
style: i,
|
|
3231
3311
|
...n(),
|
|
3232
3312
|
css: {
|
|
@@ -3235,7 +3315,7 @@ const fe = j("div"), St = Bn(
|
|
|
3235
3315
|
children: /* @__PURE__ */ z(ln, { ...t, style: s, children: e })
|
|
3236
3316
|
}
|
|
3237
3317
|
) }) : null;
|
|
3238
|
-
},
|
|
3318
|
+
}, Li = j("span", {
|
|
3239
3319
|
flex: "0 0 auto",
|
|
3240
3320
|
display: "inline-flex",
|
|
3241
3321
|
padding: "$1 $2",
|
|
@@ -3272,23 +3352,23 @@ const fe = j("div"), St = Bn(
|
|
|
3272
3352
|
defaultVariants: {
|
|
3273
3353
|
color: "primary"
|
|
3274
3354
|
}
|
|
3275
|
-
}),
|
|
3355
|
+
}), Fi = j(je.Root, {
|
|
3276
3356
|
backgroundColor: "$gray50",
|
|
3277
3357
|
display: "flex",
|
|
3278
3358
|
alignItems: "center",
|
|
3279
3359
|
padding: "$1",
|
|
3280
3360
|
gap: "$1"
|
|
3281
|
-
}),
|
|
3361
|
+
}), zi = j(je.ToggleGroup, {
|
|
3282
3362
|
display: "flex",
|
|
3283
3363
|
gap: "$1",
|
|
3284
3364
|
alignItems: "center"
|
|
3285
|
-
}),
|
|
3365
|
+
}), Wi = j(je.Separator, {
|
|
3286
3366
|
width: "1px",
|
|
3287
3367
|
height: "1.5rem",
|
|
3288
3368
|
my: "$1",
|
|
3289
3369
|
mx: "$1",
|
|
3290
3370
|
backgroundColor: "$border"
|
|
3291
|
-
}),
|
|
3371
|
+
}), Pn = xe(({ css: e, ...t }, n) => /* @__PURE__ */ z(
|
|
3292
3372
|
sn,
|
|
3293
3373
|
{
|
|
3294
3374
|
ref: n,
|
|
@@ -3303,38 +3383,38 @@ const fe = j("div"), St = Bn(
|
|
|
3303
3383
|
},
|
|
3304
3384
|
...t
|
|
3305
3385
|
}
|
|
3306
|
-
)),
|
|
3307
|
-
({ children: e, dropdown: t, ...n },
|
|
3308
|
-
|
|
3386
|
+
)), Ni = xe(
|
|
3387
|
+
({ children: e, dropdown: t, ...n }, o) => /* @__PURE__ */ z(
|
|
3388
|
+
je.Button,
|
|
3309
3389
|
{
|
|
3310
3390
|
asChild: !0,
|
|
3311
|
-
ref:
|
|
3391
|
+
ref: o,
|
|
3312
3392
|
children: /* @__PURE__ */ Pe(
|
|
3313
|
-
|
|
3393
|
+
Pn,
|
|
3314
3394
|
{
|
|
3315
3395
|
variant: "transparent",
|
|
3316
3396
|
color: "primary",
|
|
3317
3397
|
...n,
|
|
3318
3398
|
children: [
|
|
3319
3399
|
e,
|
|
3320
|
-
t && /* @__PURE__ */ z(
|
|
3400
|
+
t && /* @__PURE__ */ z(Wn, {})
|
|
3321
3401
|
]
|
|
3322
3402
|
}
|
|
3323
3403
|
)
|
|
3324
3404
|
}
|
|
3325
3405
|
)
|
|
3326
|
-
),
|
|
3406
|
+
), ji = xe(({
|
|
3327
3407
|
children: e,
|
|
3328
3408
|
value: t,
|
|
3329
3409
|
...n
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3410
|
+
}, o) => /* @__PURE__ */ z(
|
|
3411
|
+
je.ToggleItem,
|
|
3332
3412
|
{
|
|
3333
3413
|
value: t,
|
|
3334
3414
|
asChild: !0,
|
|
3335
|
-
ref:
|
|
3415
|
+
ref: o,
|
|
3336
3416
|
children: /* @__PURE__ */ z(
|
|
3337
|
-
|
|
3417
|
+
Pn,
|
|
3338
3418
|
{
|
|
3339
3419
|
variant: "transparent",
|
|
3340
3420
|
color: "primary",
|
|
@@ -3344,7 +3424,7 @@ const fe = j("div"), St = Bn(
|
|
|
3344
3424
|
}
|
|
3345
3425
|
)
|
|
3346
3426
|
}
|
|
3347
|
-
)),
|
|
3427
|
+
)), Hi = j("div", {
|
|
3348
3428
|
color: "$$cardText",
|
|
3349
3429
|
backgroundColor: "$$cardBackground",
|
|
3350
3430
|
borderRadius: "$md",
|
|
@@ -3369,7 +3449,7 @@ const fe = j("div"), St = Bn(
|
|
|
3369
3449
|
variant: "primary",
|
|
3370
3450
|
elevation: "raised"
|
|
3371
3451
|
}
|
|
3372
|
-
}),
|
|
3452
|
+
}), pi = j("div", {
|
|
3373
3453
|
borderRadius: "$md",
|
|
3374
3454
|
padding: "$1",
|
|
3375
3455
|
border: "2px solid $blue100",
|
|
@@ -3377,7 +3457,7 @@ const fe = j("div"), St = Bn(
|
|
|
3377
3457
|
display: "flex",
|
|
3378
3458
|
alignItems: "center",
|
|
3379
3459
|
gap: "$1"
|
|
3380
|
-
}),
|
|
3460
|
+
}), Vi = (e) => /* @__PURE__ */ z(pi, { ...e }), _i = ({
|
|
3381
3461
|
children: e,
|
|
3382
3462
|
active: t = !1,
|
|
3383
3463
|
...n
|
|
@@ -3395,7 +3475,7 @@ const fe = j("div"), St = Bn(
|
|
|
3395
3475
|
...n,
|
|
3396
3476
|
children: e
|
|
3397
3477
|
}
|
|
3398
|
-
),
|
|
3478
|
+
), hi = j("dialog", {
|
|
3399
3479
|
border: 0,
|
|
3400
3480
|
padding: 0,
|
|
3401
3481
|
outline: "none",
|
|
@@ -3407,50 +3487,50 @@ const fe = j("div"), St = Bn(
|
|
|
3407
3487
|
"&::backdrop": {
|
|
3408
3488
|
background: "rgba(0, 0, 0, 0.8)"
|
|
3409
3489
|
}
|
|
3410
|
-
}),
|
|
3490
|
+
}), Yi = ({
|
|
3411
3491
|
children: e,
|
|
3412
3492
|
open: t = !1,
|
|
3413
3493
|
onOpenChange: n,
|
|
3414
|
-
...
|
|
3494
|
+
...o
|
|
3415
3495
|
}) => {
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3418
|
-
|
|
3496
|
+
const r = tn(null);
|
|
3497
|
+
mt(() => {
|
|
3498
|
+
r.current && t && r.current.showModal();
|
|
3419
3499
|
}, [t]);
|
|
3420
3500
|
const i = Et(() => {
|
|
3421
3501
|
n(!1);
|
|
3422
3502
|
}, [n]), s = Et((l) => {
|
|
3423
3503
|
var a;
|
|
3424
|
-
l.target ===
|
|
3504
|
+
l.target === r.current && ((a = r.current) == null || a.close());
|
|
3425
3505
|
}, []);
|
|
3426
|
-
return t ?
|
|
3506
|
+
return t ? on(
|
|
3427
3507
|
/* @__PURE__ */ z(
|
|
3428
|
-
|
|
3508
|
+
hi,
|
|
3429
3509
|
{
|
|
3430
|
-
ref:
|
|
3510
|
+
ref: r,
|
|
3431
3511
|
onClose: i,
|
|
3432
3512
|
onClick: s,
|
|
3433
|
-
...
|
|
3434
|
-
children: /* @__PURE__ */ z(
|
|
3513
|
+
...o,
|
|
3514
|
+
children: /* @__PURE__ */ z(ge, { css: { padding: "$4" }, children: e })
|
|
3435
3515
|
}
|
|
3436
3516
|
),
|
|
3437
3517
|
document.body
|
|
3438
3518
|
) : null;
|
|
3439
|
-
},
|
|
3519
|
+
}, Xi = j("h2", {
|
|
3440
3520
|
fontSize: "$xl",
|
|
3441
3521
|
fontWeight: "$medium",
|
|
3442
3522
|
marginBottom: "$6"
|
|
3443
|
-
}),
|
|
3523
|
+
}), Ki = j("div", {
|
|
3444
3524
|
display: "flex",
|
|
3445
3525
|
gap: "$2",
|
|
3446
3526
|
justifyContent: "flex-end",
|
|
3447
3527
|
background: "$gray100",
|
|
3448
3528
|
margin: "$6 -$4 -$4 -$4",
|
|
3449
3529
|
padding: "$2"
|
|
3450
|
-
}),
|
|
3530
|
+
}), bi = j(ln, {
|
|
3451
3531
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3452
3532
|
padding: "$1"
|
|
3453
|
-
}), Rt =
|
|
3533
|
+
}), Rt = He({
|
|
3454
3534
|
padding: "$2 $2 $2 1.5rem",
|
|
3455
3535
|
fontSize: "$sm",
|
|
3456
3536
|
lineHeight: "1.25",
|
|
@@ -3473,27 +3553,27 @@ const fe = j("div"), St = Bn(
|
|
|
3473
3553
|
backgroundColor: "transparent"
|
|
3474
3554
|
}
|
|
3475
3555
|
}
|
|
3476
|
-
}),
|
|
3556
|
+
}), Gi = ({
|
|
3477
3557
|
side: e = "bottom",
|
|
3478
3558
|
align: t = "center",
|
|
3479
3559
|
trigger: n,
|
|
3480
|
-
children:
|
|
3481
|
-
sideOffset:
|
|
3560
|
+
children: o,
|
|
3561
|
+
sideOffset: r,
|
|
3482
3562
|
modal: i
|
|
3483
|
-
}) => /* @__PURE__ */ Pe(
|
|
3484
|
-
/* @__PURE__ */ z(
|
|
3485
|
-
/* @__PURE__ */ z(
|
|
3486
|
-
|
|
3563
|
+
}) => /* @__PURE__ */ Pe(te.Root, { modal: i, children: [
|
|
3564
|
+
/* @__PURE__ */ z(te.Trigger, { asChild: !0, children: n }),
|
|
3565
|
+
/* @__PURE__ */ z(te.Portal, { children: /* @__PURE__ */ z(
|
|
3566
|
+
te.Content,
|
|
3487
3567
|
{
|
|
3488
3568
|
asChild: !0,
|
|
3489
3569
|
side: e,
|
|
3490
3570
|
align: t,
|
|
3491
3571
|
collisionPadding: 10,
|
|
3492
|
-
sideOffset:
|
|
3493
|
-
children: /* @__PURE__ */ z(
|
|
3572
|
+
sideOffset: r,
|
|
3573
|
+
children: /* @__PURE__ */ z(bi, { children: o })
|
|
3494
3574
|
}
|
|
3495
3575
|
) })
|
|
3496
|
-
] }),
|
|
3576
|
+
] }), yi = j(te.ItemIndicator, {
|
|
3497
3577
|
position: "absolute",
|
|
3498
3578
|
left: 0,
|
|
3499
3579
|
top: 0,
|
|
@@ -3502,30 +3582,30 @@ const fe = j("div"), St = Bn(
|
|
|
3502
3582
|
display: "flex",
|
|
3503
3583
|
justifyContent: "center",
|
|
3504
3584
|
alignItems: "center"
|
|
3505
|
-
}),
|
|
3585
|
+
}), Ui = j(te.Separator, {
|
|
3506
3586
|
height: 1,
|
|
3507
3587
|
backgroundColor: "$gray200",
|
|
3508
3588
|
margin: 1
|
|
3509
|
-
}),
|
|
3589
|
+
}), qi = j(te.Item, Rt), Zi = j(te.Item, Rt, {
|
|
3510
3590
|
padding: "$2",
|
|
3511
3591
|
display: "flex",
|
|
3512
3592
|
alignItems: "center",
|
|
3513
3593
|
gap: "$2"
|
|
3514
|
-
}),
|
|
3594
|
+
}), vi = j(te.CheckboxItem, Rt), Ji = ({
|
|
3515
3595
|
value: e,
|
|
3516
3596
|
onChange: t,
|
|
3517
3597
|
children: n
|
|
3518
3598
|
}) => /* @__PURE__ */ Pe(
|
|
3519
|
-
|
|
3599
|
+
vi,
|
|
3520
3600
|
{
|
|
3521
3601
|
checked: e,
|
|
3522
3602
|
onCheckedChange: t,
|
|
3523
3603
|
children: [
|
|
3524
|
-
/* @__PURE__ */ z(
|
|
3604
|
+
/* @__PURE__ */ z(yi, { children: /* @__PURE__ */ z(Nn, { size: "0.75rem" }) }),
|
|
3525
3605
|
n
|
|
3526
3606
|
]
|
|
3527
3607
|
}
|
|
3528
|
-
),
|
|
3608
|
+
), xi = He({
|
|
3529
3609
|
display: "block",
|
|
3530
3610
|
width: "100%",
|
|
3531
3611
|
padding: "0.5rem 0.75rem",
|
|
@@ -3537,7 +3617,7 @@ const fe = j("div"), St = Bn(
|
|
|
3537
3617
|
"-webkit-appearance": "none",
|
|
3538
3618
|
"-moz-appearance": "none",
|
|
3539
3619
|
appearance: "none"
|
|
3540
|
-
}),
|
|
3620
|
+
}), wi = He({
|
|
3541
3621
|
display: "block",
|
|
3542
3622
|
width: "100%",
|
|
3543
3623
|
background: "#fff",
|
|
@@ -3561,17 +3641,17 @@ const fe = j("div"), St = Bn(
|
|
|
3561
3641
|
}
|
|
3562
3642
|
}
|
|
3563
3643
|
}
|
|
3564
|
-
}),
|
|
3644
|
+
}), $i = j("input", xi), Si = j("div", wi, {
|
|
3565
3645
|
display: "flex",
|
|
3566
3646
|
alignItems: "center",
|
|
3567
3647
|
gap: "$2",
|
|
3568
3648
|
width: "100%"
|
|
3569
|
-
}),
|
|
3570
|
-
({ type: e = "text", label: t, error: n, style:
|
|
3571
|
-
const c =
|
|
3572
|
-
return s = s || c, /* @__PURE__ */ Pe(
|
|
3649
|
+
}), Qi = xe(
|
|
3650
|
+
({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
|
|
3651
|
+
const c = Fn();
|
|
3652
|
+
return s = s || c, /* @__PURE__ */ Pe(ge, { css: r, children: [
|
|
3573
3653
|
t && /* @__PURE__ */ z(
|
|
3574
|
-
|
|
3654
|
+
ge,
|
|
3575
3655
|
{
|
|
3576
3656
|
as: "label",
|
|
3577
3657
|
htmlFor: s,
|
|
@@ -3583,9 +3663,9 @@ const fe = j("div"), St = Bn(
|
|
|
3583
3663
|
children: t
|
|
3584
3664
|
}
|
|
3585
3665
|
),
|
|
3586
|
-
/* @__PURE__ */ Pe(
|
|
3666
|
+
/* @__PURE__ */ Pe(Si, { error: !!n, children: [
|
|
3587
3667
|
/* @__PURE__ */ z(
|
|
3588
|
-
|
|
3668
|
+
$i,
|
|
3589
3669
|
{
|
|
3590
3670
|
id: s,
|
|
3591
3671
|
ref: a,
|
|
@@ -3595,7 +3675,7 @@ const fe = j("div"), St = Bn(
|
|
|
3595
3675
|
}
|
|
3596
3676
|
),
|
|
3597
3677
|
i && /* @__PURE__ */ z(
|
|
3598
|
-
|
|
3678
|
+
ge,
|
|
3599
3679
|
{
|
|
3600
3680
|
css: {
|
|
3601
3681
|
fontSize: "$sm",
|
|
@@ -3606,60 +3686,62 @@ const fe = j("div"), St = Bn(
|
|
|
3606
3686
|
}
|
|
3607
3687
|
),
|
|
3608
3688
|
n && /* @__PURE__ */ z(
|
|
3609
|
-
|
|
3689
|
+
ge,
|
|
3610
3690
|
{
|
|
3611
|
-
as:
|
|
3691
|
+
as: jn,
|
|
3612
3692
|
css: { color: "$red600", marginRight: "$2" },
|
|
3613
3693
|
size: 24
|
|
3614
3694
|
}
|
|
3615
3695
|
)
|
|
3616
3696
|
] }),
|
|
3617
|
-
typeof n == "string" && /* @__PURE__ */ z(
|
|
3697
|
+
typeof n == "string" && /* @__PURE__ */ z(ge, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
|
|
3618
3698
|
] });
|
|
3619
3699
|
}
|
|
3620
3700
|
);
|
|
3621
3701
|
export {
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3702
|
+
Me as A,
|
|
3703
|
+
ge as B,
|
|
3704
|
+
Ti as C,
|
|
3705
|
+
Gi as D,
|
|
3706
|
+
Ii as E,
|
|
3707
|
+
ei as F,
|
|
3708
|
+
Bi as G,
|
|
3709
|
+
Li as H,
|
|
3710
|
+
Pn as I,
|
|
3711
|
+
Hi as J,
|
|
3712
|
+
_i as K,
|
|
3713
|
+
Rt as L,
|
|
3714
|
+
bi as M,
|
|
3715
|
+
Vi as N,
|
|
3635
3716
|
ln as O,
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3717
|
+
Oi as P,
|
|
3718
|
+
Ji as Q,
|
|
3719
|
+
$o as S,
|
|
3720
|
+
Ni as T,
|
|
3721
|
+
Zi as a,
|
|
3722
|
+
zi as b,
|
|
3723
|
+
He as c,
|
|
3724
|
+
ji as d,
|
|
3725
|
+
hr as e,
|
|
3726
|
+
Pi as f,
|
|
3727
|
+
yr as g,
|
|
3728
|
+
br as h,
|
|
3729
|
+
li as i,
|
|
3730
|
+
ci as j,
|
|
3731
|
+
Fi as k,
|
|
3732
|
+
Wi as l,
|
|
3651
3733
|
sn as m,
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3734
|
+
qi as n,
|
|
3735
|
+
Zo as o,
|
|
3736
|
+
Ui as p,
|
|
3737
|
+
Yi as q,
|
|
3738
|
+
Xi as r,
|
|
3657
3739
|
j as s,
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3740
|
+
Qi as t,
|
|
3741
|
+
si as u,
|
|
3742
|
+
Ki as v,
|
|
3743
|
+
ii as w,
|
|
3662
3744
|
Ai as x,
|
|
3663
|
-
|
|
3664
|
-
|
|
3745
|
+
Di as y,
|
|
3746
|
+
Mi as z
|
|
3665
3747
|
};
|