zudoku 0.13.0 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/dev/handler.js +2 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/validate.d.ts +27 -13
- package/dist/config/validators/validate.js +3 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +6 -2
- package/dist/lib/components/SlotletProvider.js +3 -5
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +8 -6
- package/dist/lib/plugins/custom-pages/index.js +3 -4
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +36 -35
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +8 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/vite/dev-server.d.ts +6 -1
- package/dist/vite/dev-server.js +4 -2
- package/dist/vite/dev-server.js.map +1 -1
- package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
- package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
- package/lib/{CategoryHeading-ovR-zHRq.js → CategoryHeading-3Qtp2yZ8.js} +2 -2
- package/lib/{CategoryHeading-ovR-zHRq.js.map → CategoryHeading-3Qtp2yZ8.js.map} +1 -1
- package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-BE9DzNhv.js} +2 -2
- package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-BE9DzNhv.js.map} +1 -1
- package/lib/{ErrorPage-CsZAN_za.js → ErrorPage-B0COs372.js} +3 -3
- package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B0COs372.js.map} +1 -1
- package/lib/Input-CHfE_2Qk.js +2229 -0
- package/lib/Input-CHfE_2Qk.js.map +1 -0
- package/lib/{Markdown-DapSf3wG.js → Markdown-CWI6lU11.js} +714 -554
- package/lib/Markdown-CWI6lU11.js.map +1 -0
- package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-C3tlrV4j.js} +6 -6
- package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-C3tlrV4j.js.map} +1 -1
- package/lib/{OperationList-CYrmxPa8.js → OperationList-BO-ES1C5.js} +38 -39
- package/lib/OperationList-BO-ES1C5.js.map +1 -0
- package/lib/{Route-Q5mqNQrv.js → Route-Dq6zv0Pi.js} +3 -4
- package/lib/Route-Dq6zv0Pi.js.map +1 -0
- package/lib/SidebarBadge-DmI5hT04.js +503 -0
- package/lib/SidebarBadge-DmI5hT04.js.map +1 -0
- package/lib/{SlotletProvider-BWwfPzgI.js → SlotletProvider-RvaeLR6z.js} +43 -44
- package/lib/{SlotletProvider-BWwfPzgI.js.map → SlotletProvider-RvaeLR6z.js.map} +1 -1
- package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
- package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
- package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
- package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
- package/lib/assets/{worker-BP8Uzflt.js → worker-Bf8vjASY.js} +4581 -4300
- package/lib/assets/worker-Bf8vjASY.js.map +1 -0
- package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
- package/lib/index-BRCiYFaL.js.map +1 -0
- package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
- package/lib/index-CkwDvuPt.js.map +1 -0
- package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
- package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
- package/lib/index-DJqnphbT.js +35 -0
- package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
- package/lib/{index-BlJ2rj99.js → index-DNfiZTPV.js} +1123 -974
- package/lib/index-DNfiZTPV.js.map +1 -0
- package/lib/{index-Dolisrci.js → index-Do_BBSIs.js} +597 -544
- package/lib/index-Do_BBSIs.js.map +1 -0
- package/lib/{index-BngPzhKn.js → index-Dvh1BL_e.js} +3 -3
- package/lib/{index-BngPzhKn.js.map → index-Dvh1BL_e.js.map} +1 -1
- package/lib/router-Oe6YmY6B.js +3024 -0
- package/lib/router-Oe6YmY6B.js.map +1 -0
- package/lib/state-CsuHT8ZO.js +183 -0
- package/lib/state-CsuHT8ZO.js.map +1 -0
- package/lib/urql-core-KJnLL26g.js +1455 -0
- package/lib/urql-core-KJnLL26g.js.map +1 -0
- package/lib/useExposedProps-Csw8oAlt.js +9 -0
- package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
- package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
- package/lib/utils-Chi3p5nE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +363 -350
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1694 -1628
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +4599 -4317
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -7
- package/lib/zudoku.plugin-custom-pages.js +16 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -8
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +58 -65
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/MobileTopNavigation.tsx +4 -0
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/SlotletProvider.tsx +14 -7
- package/src/lib/components/index.ts +1 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +11 -9
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
- package/src/lib/plugins/openapi/index.tsx +1 -5
- package/src/lib/ui/Callout.tsx +7 -6
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/util/useExposedProps.tsx +10 -0
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-BP8Uzflt.js.map +0 -1
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
|
@@ -3,12 +3,12 @@ var wt = (e) => {
|
|
|
3
3
|
};
|
|
4
4
|
var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
|
|
5
5
|
var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), q = (e, t, n) => (He(e, t, "access private method"), n);
|
|
6
|
-
import { j as
|
|
7
|
-
import { a as Nn, e as Dn } from "./Markdown-
|
|
8
|
-
import * as
|
|
6
|
+
import { j as R } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
+
import { a as Nn, e as Dn } from "./Markdown-CWI6lU11.js";
|
|
8
|
+
import * as f from "react";
|
|
9
9
|
import ie, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
|
|
10
|
-
import { R as
|
|
11
|
-
import { u as $n } from "./state-
|
|
10
|
+
import { R as _n, y as Wn, n as Bn, u as jn } from "./ZudokuContext-BEmsYQoq.js";
|
|
11
|
+
import { u as $n } from "./state-CsuHT8ZO.js";
|
|
12
12
|
import * as Ht from "react-dom";
|
|
13
13
|
import Hn from "react-dom";
|
|
14
14
|
function Vn(e, t) {
|
|
@@ -18,33 +18,33 @@ function Vt(...e) {
|
|
|
18
18
|
return (t) => e.forEach((n) => Vn(n, t));
|
|
19
19
|
}
|
|
20
20
|
function ce(...e) {
|
|
21
|
-
return
|
|
21
|
+
return f.useCallback(Vt(...e), e);
|
|
22
22
|
}
|
|
23
|
-
var be =
|
|
24
|
-
const { children: n, ...r } = e, o =
|
|
23
|
+
var be = f.forwardRef((e, t) => {
|
|
24
|
+
const { children: n, ...r } = e, o = f.Children.toArray(n), i = o.find(Un);
|
|
25
25
|
if (i) {
|
|
26
|
-
const s = i.props.children, c = o.map((a) => a === i ?
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
const s = i.props.children, c = o.map((a) => a === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : a);
|
|
27
|
+
return /* @__PURE__ */ R.jsx(Qe, { ...r, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
|
|
28
28
|
}
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ R.jsx(Qe, { ...r, ref: t, children: n });
|
|
30
30
|
});
|
|
31
31
|
be.displayName = "Slot";
|
|
32
|
-
var Qe =
|
|
32
|
+
var Qe = f.forwardRef((e, t) => {
|
|
33
33
|
const { children: n, ...r } = e;
|
|
34
|
-
if (
|
|
34
|
+
if (f.isValidElement(n)) {
|
|
35
35
|
const o = Xn(n);
|
|
36
|
-
return
|
|
36
|
+
return f.cloneElement(n, {
|
|
37
37
|
...Yn(r, n.props),
|
|
38
38
|
// @ts-ignore
|
|
39
39
|
ref: t ? Vt(t, o) : o
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
43
43
|
});
|
|
44
44
|
Qe.displayName = "SlotClone";
|
|
45
|
-
var zn = ({ children: e }) => /* @__PURE__ */
|
|
45
|
+
var zn = ({ children: e }) => /* @__PURE__ */ R.jsx(R.Fragment, { children: e });
|
|
46
46
|
function Un(e) {
|
|
47
|
-
return
|
|
47
|
+
return f.isValidElement(e) && e.type === zn;
|
|
48
48
|
}
|
|
49
49
|
function Yn(e, t) {
|
|
50
50
|
const n = { ...t };
|
|
@@ -86,10 +86,10 @@ const Kn = Dn(
|
|
|
86
86
|
size: "default"
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
), Gn =
|
|
89
|
+
), Gn = f.forwardRef(
|
|
90
90
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
|
|
91
91
|
const s = r ? be : "button";
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ R.jsx(
|
|
93
93
|
s,
|
|
94
94
|
{
|
|
95
95
|
className: Nn(Kn({ variant: t, size: n, className: e })),
|
|
@@ -100,7 +100,7 @@ const Kn = Dn(
|
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
Gn.displayName = "Button";
|
|
103
|
-
var H, F, se, V, Q, $t,
|
|
103
|
+
var H, F, se, V, Q, $t, xi = ($t = class extends _n {
|
|
104
104
|
constructor(t) {
|
|
105
105
|
super();
|
|
106
106
|
we(this, V);
|
|
@@ -138,8 +138,8 @@ var H, F, se, V, Q, $t, wi = ($t = class extends Wn {
|
|
|
138
138
|
this.execute(this.state.variables);
|
|
139
139
|
}
|
|
140
140
|
async execute(t) {
|
|
141
|
-
var o, i, s, c, a, l, h, d, p, m,
|
|
142
|
-
xe(this, se,
|
|
141
|
+
var o, i, s, c, a, l, h, d, p, m, v, u, g, y, w, b, x, E, C, S;
|
|
142
|
+
xe(this, se, Wn({
|
|
143
143
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
144
144
|
onFail: (A, O) => {
|
|
145
145
|
q(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
|
|
@@ -185,11 +185,11 @@ var H, F, se, V, Q, $t, wi = ($t = class extends Wn {
|
|
|
185
185
|
this.state.variables,
|
|
186
186
|
this.state.context,
|
|
187
187
|
this
|
|
188
|
-
)), await ((
|
|
188
|
+
)), await ((u = (v = this.options).onSettled) == null ? void 0 : u.call(v, A, null, t, this.state.context)), q(this, V, Q).call(this, { type: "success", data: A }), A;
|
|
189
189
|
} catch (A) {
|
|
190
190
|
try {
|
|
191
|
-
throw await ((y = (
|
|
192
|
-
|
|
191
|
+
throw await ((y = (g = L(this, F).config).onError) == null ? void 0 : y.call(
|
|
192
|
+
g,
|
|
193
193
|
A,
|
|
194
194
|
t,
|
|
195
195
|
this.state.context,
|
|
@@ -297,7 +297,7 @@ function Zn() {
|
|
|
297
297
|
submittedAt: 0
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const bi = () => {
|
|
301
301
|
const { authentication: e } = jn(), t = $n(), n = typeof e < "u";
|
|
302
302
|
return {
|
|
303
303
|
isAuthEnabled: n,
|
|
@@ -322,42 +322,45 @@ function Ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
322
322
|
return t == null ? void 0 : t(o);
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
const n =
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
325
|
+
function Ei(e, t) {
|
|
326
|
+
const n = f.createContext(t), r = (i) => {
|
|
327
|
+
const { children: s, ...c } = i, a = f.useMemo(() => c, Object.values(c));
|
|
328
|
+
return /* @__PURE__ */ R.jsx(n.Provider, { value: a, children: s });
|
|
329
|
+
};
|
|
330
|
+
r.displayName = e + "Provider";
|
|
331
331
|
function o(i) {
|
|
332
|
-
const s =
|
|
332
|
+
const s = f.useContext(n);
|
|
333
333
|
if (s) return s;
|
|
334
334
|
if (t !== void 0) return t;
|
|
335
335
|
throw new Error(`\`${i}\` must be used within \`${e}\``);
|
|
336
336
|
}
|
|
337
|
-
return
|
|
337
|
+
return [r, o];
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Ci(e, t = []) {
|
|
340
340
|
let n = [];
|
|
341
341
|
function r(i, s) {
|
|
342
|
-
const c =
|
|
342
|
+
const c = f.createContext(s), a = n.length;
|
|
343
343
|
n = [...n, s];
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
344
|
+
const l = (d) => {
|
|
345
|
+
var y;
|
|
346
|
+
const { scope: p, children: m, ...v } = d, u = ((y = p == null ? void 0 : p[e]) == null ? void 0 : y[a]) || c, g = f.useMemo(() => v, Object.values(v));
|
|
347
|
+
return /* @__PURE__ */ R.jsx(u.Provider, { value: g, children: m });
|
|
348
|
+
};
|
|
349
|
+
l.displayName = i + "Provider";
|
|
348
350
|
function h(d, p) {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
+
var u;
|
|
352
|
+
const m = ((u = p == null ? void 0 : p[e]) == null ? void 0 : u[a]) || c, v = f.useContext(m);
|
|
353
|
+
if (v) return v;
|
|
351
354
|
if (s !== void 0) return s;
|
|
352
355
|
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
353
356
|
}
|
|
354
|
-
return
|
|
357
|
+
return [l, h];
|
|
355
358
|
}
|
|
356
359
|
const o = () => {
|
|
357
|
-
const i = n.map((s) =>
|
|
360
|
+
const i = n.map((s) => f.createContext(s));
|
|
358
361
|
return function(c) {
|
|
359
362
|
const a = (c == null ? void 0 : c[e]) || i;
|
|
360
|
-
return
|
|
363
|
+
return f.useMemo(
|
|
361
364
|
() => ({ [`__scope${e}`]: { ...c, [e]: a } }),
|
|
362
365
|
[c, a]
|
|
363
366
|
);
|
|
@@ -378,27 +381,27 @@ function qn(...e) {
|
|
|
378
381
|
const d = a(i)[`__scope${l}`];
|
|
379
382
|
return { ...c, ...d };
|
|
380
383
|
}, {});
|
|
381
|
-
return
|
|
384
|
+
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
382
385
|
};
|
|
383
386
|
};
|
|
384
387
|
return n.scopeName = t.scopeName, n;
|
|
385
388
|
}
|
|
386
389
|
function ee(e) {
|
|
387
|
-
const t =
|
|
388
|
-
return
|
|
390
|
+
const t = f.useRef(e);
|
|
391
|
+
return f.useEffect(() => {
|
|
389
392
|
t.current = e;
|
|
390
|
-
}),
|
|
393
|
+
}), f.useMemo(() => (...n) => {
|
|
391
394
|
var r;
|
|
392
395
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
393
396
|
}, []);
|
|
394
397
|
}
|
|
395
|
-
function
|
|
398
|
+
function Si({
|
|
396
399
|
prop: e,
|
|
397
400
|
defaultProp: t,
|
|
398
401
|
onChange: n = () => {
|
|
399
402
|
}
|
|
400
403
|
}) {
|
|
401
|
-
const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a =
|
|
404
|
+
const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = f.useCallback(
|
|
402
405
|
(l) => {
|
|
403
406
|
if (i) {
|
|
404
407
|
const d = typeof l == "function" ? l(e) : l;
|
|
@@ -414,8 +417,8 @@ function Qn({
|
|
|
414
417
|
defaultProp: e,
|
|
415
418
|
onChange: t
|
|
416
419
|
}) {
|
|
417
|
-
const n =
|
|
418
|
-
return
|
|
420
|
+
const n = f.useState(e), [r] = n, o = f.useRef(r), i = ee(t);
|
|
421
|
+
return f.useEffect(() => {
|
|
419
422
|
o.current !== r && (i(r), o.current = r);
|
|
420
423
|
}, [r, o, i]), n;
|
|
421
424
|
}
|
|
@@ -437,48 +440,95 @@ var Jn = [
|
|
|
437
440
|
"svg",
|
|
438
441
|
"ul"
|
|
439
442
|
], oe = Jn.reduce((e, t) => {
|
|
440
|
-
const n =
|
|
443
|
+
const n = f.forwardRef((r, o) => {
|
|
441
444
|
const { asChild: i, ...s } = r, c = i ? be : t;
|
|
442
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
445
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ R.jsx(c, { ...s, ref: o });
|
|
443
446
|
});
|
|
444
447
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
445
448
|
}, {});
|
|
446
449
|
function er(e, t) {
|
|
447
450
|
e && Ht.flushSync(() => e.dispatchEvent(t));
|
|
448
451
|
}
|
|
449
|
-
function
|
|
452
|
+
function zt(e, t = []) {
|
|
453
|
+
let n = [];
|
|
454
|
+
function r(i, s) {
|
|
455
|
+
const c = f.createContext(s), a = n.length;
|
|
456
|
+
n = [...n, s];
|
|
457
|
+
function l(d) {
|
|
458
|
+
const { scope: p, children: m, ...v } = d, u = (p == null ? void 0 : p[e][a]) || c, g = f.useMemo(() => v, Object.values(v));
|
|
459
|
+
return /* @__PURE__ */ R.jsx(u.Provider, { value: g, children: m });
|
|
460
|
+
}
|
|
461
|
+
function h(d, p) {
|
|
462
|
+
const m = (p == null ? void 0 : p[e][a]) || c, v = f.useContext(m);
|
|
463
|
+
if (v) return v;
|
|
464
|
+
if (s !== void 0) return s;
|
|
465
|
+
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
466
|
+
}
|
|
467
|
+
return l.displayName = i + "Provider", [l, h];
|
|
468
|
+
}
|
|
469
|
+
const o = () => {
|
|
470
|
+
const i = n.map((s) => f.createContext(s));
|
|
471
|
+
return function(c) {
|
|
472
|
+
const a = (c == null ? void 0 : c[e]) || i;
|
|
473
|
+
return f.useMemo(
|
|
474
|
+
() => ({ [`__scope${e}`]: { ...c, [e]: a } }),
|
|
475
|
+
[c, a]
|
|
476
|
+
);
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
return o.scopeName = e, [r, tr(o, ...t)];
|
|
480
|
+
}
|
|
481
|
+
function tr(...e) {
|
|
482
|
+
const t = e[0];
|
|
483
|
+
if (e.length === 1) return t;
|
|
484
|
+
const n = () => {
|
|
485
|
+
const r = e.map((o) => ({
|
|
486
|
+
useScope: o(),
|
|
487
|
+
scopeName: o.scopeName
|
|
488
|
+
}));
|
|
489
|
+
return function(i) {
|
|
490
|
+
const s = r.reduce((c, { useScope: a, scopeName: l }) => {
|
|
491
|
+
const d = a(i)[`__scope${l}`];
|
|
492
|
+
return { ...c, ...d };
|
|
493
|
+
}, {});
|
|
494
|
+
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
return n.scopeName = t.scopeName, n;
|
|
498
|
+
}
|
|
499
|
+
function Ai(e) {
|
|
450
500
|
const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
|
|
451
501
|
t,
|
|
452
502
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
453
503
|
), s = (m) => {
|
|
454
|
-
const { scope:
|
|
455
|
-
return /* @__PURE__ */
|
|
504
|
+
const { scope: v, children: u } = m, g = ie.useRef(null), y = ie.useRef(/* @__PURE__ */ new Map()).current;
|
|
505
|
+
return /* @__PURE__ */ R.jsx(o, { scope: v, itemMap: y, collectionRef: g, children: u });
|
|
456
506
|
};
|
|
457
507
|
s.displayName = t;
|
|
458
508
|
const c = e + "CollectionSlot", a = ie.forwardRef(
|
|
459
|
-
(m,
|
|
460
|
-
const { scope:
|
|
461
|
-
return /* @__PURE__ */
|
|
509
|
+
(m, v) => {
|
|
510
|
+
const { scope: u, children: g } = m, y = i(c, u), w = ce(v, y.collectionRef);
|
|
511
|
+
return /* @__PURE__ */ R.jsx(be, { ref: w, children: g });
|
|
462
512
|
}
|
|
463
513
|
);
|
|
464
514
|
a.displayName = c;
|
|
465
515
|
const l = e + "CollectionItemSlot", h = "data-radix-collection-item", d = ie.forwardRef(
|
|
466
|
-
(m,
|
|
467
|
-
const { scope:
|
|
468
|
-
return ie.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */
|
|
516
|
+
(m, v) => {
|
|
517
|
+
const { scope: u, children: g, ...y } = m, w = ie.useRef(null), b = ce(v, w), x = i(l, u);
|
|
518
|
+
return ie.useEffect(() => (x.itemMap.set(w, { ref: w, ...y }), () => void x.itemMap.delete(w))), /* @__PURE__ */ R.jsx(be, { [h]: "", ref: b, children: g });
|
|
469
519
|
}
|
|
470
520
|
);
|
|
471
521
|
d.displayName = l;
|
|
472
522
|
function p(m) {
|
|
473
|
-
const
|
|
523
|
+
const v = i(e + "CollectionConsumer", m);
|
|
474
524
|
return ie.useCallback(() => {
|
|
475
|
-
const
|
|
476
|
-
if (!
|
|
477
|
-
const y = Array.from(
|
|
478
|
-
return Array.from(
|
|
525
|
+
const g = v.collectionRef.current;
|
|
526
|
+
if (!g) return [];
|
|
527
|
+
const y = Array.from(g.querySelectorAll(`[${h}]`));
|
|
528
|
+
return Array.from(v.itemMap.values()).sort(
|
|
479
529
|
(x, E) => y.indexOf(x.ref.current) - y.indexOf(E.ref.current)
|
|
480
530
|
);
|
|
481
|
-
}, [
|
|
531
|
+
}, [v.collectionRef, v.itemMap]);
|
|
482
532
|
}
|
|
483
533
|
return [
|
|
484
534
|
{ Provider: s, Slot: a, ItemSlot: d },
|
|
@@ -486,25 +536,25 @@ function Ci(e) {
|
|
|
486
536
|
r
|
|
487
537
|
];
|
|
488
538
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
491
|
-
const t =
|
|
539
|
+
var nr = f.createContext(void 0);
|
|
540
|
+
function Pi(e) {
|
|
541
|
+
const t = f.useContext(nr);
|
|
492
542
|
return e || t || "ltr";
|
|
493
543
|
}
|
|
494
|
-
function
|
|
544
|
+
function rr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
495
545
|
const n = ee(e);
|
|
496
|
-
|
|
546
|
+
f.useEffect(() => {
|
|
497
547
|
const r = (o) => {
|
|
498
548
|
o.key === "Escape" && n(o);
|
|
499
549
|
};
|
|
500
550
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
501
551
|
}, [n, t]);
|
|
502
552
|
}
|
|
503
|
-
var
|
|
553
|
+
var or = "DismissableLayer", Je = "dismissableLayer.update", ir = "dismissableLayer.pointerDownOutside", sr = "dismissableLayer.focusOutside", xt, Ut = f.createContext({
|
|
504
554
|
layers: /* @__PURE__ */ new Set(),
|
|
505
555
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
506
556
|
branches: /* @__PURE__ */ new Set()
|
|
507
|
-
}),
|
|
557
|
+
}), cr = f.forwardRef(
|
|
508
558
|
(e, t) => {
|
|
509
559
|
const {
|
|
510
560
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -514,30 +564,30 @@ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLa
|
|
|
514
564
|
onInteractOutside: s,
|
|
515
565
|
onDismiss: c,
|
|
516
566
|
...a
|
|
517
|
-
} = e, l =
|
|
567
|
+
} = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), v = ce(t, (S) => d(S)), u = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(g), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = ur((S) => {
|
|
518
568
|
const A = S.target, O = [...l.branches].some((D) => D.contains(A));
|
|
519
569
|
!x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
520
|
-
}, p), C =
|
|
570
|
+
}, p), C = fr((S) => {
|
|
521
571
|
const A = S.target;
|
|
522
572
|
[...l.branches].some((D) => D.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
523
573
|
}, p);
|
|
524
|
-
return
|
|
574
|
+
return rr((S) => {
|
|
525
575
|
w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
526
|
-
}, p),
|
|
576
|
+
}, p), f.useEffect(() => {
|
|
527
577
|
if (h)
|
|
528
578
|
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (xt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(h)), l.layers.add(h), bt(), () => {
|
|
529
579
|
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = xt);
|
|
530
580
|
};
|
|
531
|
-
}, [h, p, n, l]),
|
|
581
|
+
}, [h, p, n, l]), f.useEffect(() => () => {
|
|
532
582
|
h && (l.layers.delete(h), l.layersWithOutsidePointerEventsDisabled.delete(h), bt());
|
|
533
|
-
}, [h, l]),
|
|
583
|
+
}, [h, l]), f.useEffect(() => {
|
|
534
584
|
const S = () => m({});
|
|
535
585
|
return document.addEventListener(Je, S), () => document.removeEventListener(Je, S);
|
|
536
|
-
}, []), /* @__PURE__ */
|
|
586
|
+
}, []), /* @__PURE__ */ R.jsx(
|
|
537
587
|
oe.div,
|
|
538
588
|
{
|
|
539
589
|
...a,
|
|
540
|
-
ref:
|
|
590
|
+
ref: v,
|
|
541
591
|
style: {
|
|
542
592
|
pointerEvents: b ? x ? "auto" : "none" : void 0,
|
|
543
593
|
...e.style
|
|
@@ -552,27 +602,27 @@ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLa
|
|
|
552
602
|
);
|
|
553
603
|
}
|
|
554
604
|
);
|
|
555
|
-
|
|
556
|
-
var
|
|
557
|
-
const n =
|
|
558
|
-
return
|
|
605
|
+
cr.displayName = or;
|
|
606
|
+
var ar = "DismissableLayerBranch", lr = f.forwardRef((e, t) => {
|
|
607
|
+
const n = f.useContext(Ut), r = f.useRef(null), o = ce(t, r);
|
|
608
|
+
return f.useEffect(() => {
|
|
559
609
|
const i = r.current;
|
|
560
610
|
if (i)
|
|
561
611
|
return n.branches.add(i), () => {
|
|
562
612
|
n.branches.delete(i);
|
|
563
613
|
};
|
|
564
|
-
}, [n.branches]), /* @__PURE__ */
|
|
614
|
+
}, [n.branches]), /* @__PURE__ */ R.jsx(oe.div, { ...e, ref: o });
|
|
565
615
|
});
|
|
566
|
-
|
|
567
|
-
function
|
|
568
|
-
const n = ee(e), r =
|
|
616
|
+
lr.displayName = ar;
|
|
617
|
+
function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
618
|
+
const n = ee(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
569
619
|
});
|
|
570
|
-
return
|
|
620
|
+
return f.useEffect(() => {
|
|
571
621
|
const i = (c) => {
|
|
572
622
|
if (c.target && !r.current) {
|
|
573
623
|
let a = function() {
|
|
574
624
|
Yt(
|
|
575
|
-
|
|
625
|
+
ir,
|
|
576
626
|
n,
|
|
577
627
|
l,
|
|
578
628
|
{ discrete: !0 }
|
|
@@ -594,11 +644,11 @@ function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
594
644
|
onPointerDownCapture: () => r.current = !0
|
|
595
645
|
};
|
|
596
646
|
}
|
|
597
|
-
function
|
|
598
|
-
const n = ee(e), r =
|
|
599
|
-
return
|
|
647
|
+
function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
648
|
+
const n = ee(e), r = f.useRef(!1);
|
|
649
|
+
return f.useEffect(() => {
|
|
600
650
|
const o = (i) => {
|
|
601
|
-
i.target && !r.current && Yt(
|
|
651
|
+
i.target && !r.current && Yt(sr, n, { originalEvent: i }, {
|
|
602
652
|
discrete: !1
|
|
603
653
|
});
|
|
604
654
|
};
|
|
@@ -617,8 +667,8 @@ function Yt(e, t, n, { discrete: r }) {
|
|
|
617
667
|
t && o.addEventListener(e, t, { once: !0 }), r ? er(o, i) : o.dispatchEvent(i);
|
|
618
668
|
}
|
|
619
669
|
var ze = 0;
|
|
620
|
-
function
|
|
621
|
-
|
|
670
|
+
function Ri() {
|
|
671
|
+
f.useEffect(() => {
|
|
622
672
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
623
673
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
|
|
624
674
|
ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
|
|
@@ -627,16 +677,16 @@ function Ai() {
|
|
|
627
677
|
}
|
|
628
678
|
function Et() {
|
|
629
679
|
const e = document.createElement("span");
|
|
630
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.
|
|
680
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
631
681
|
}
|
|
632
|
-
var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 },
|
|
682
|
+
var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, dr = "FocusScope", hr = f.forwardRef((e, t) => {
|
|
633
683
|
const {
|
|
634
684
|
loop: n = !1,
|
|
635
685
|
trapped: r = !1,
|
|
636
686
|
onMountAutoFocus: o,
|
|
637
687
|
onUnmountAutoFocus: i,
|
|
638
688
|
...s
|
|
639
|
-
} = e, [c, a] =
|
|
689
|
+
} = e, [c, a] = f.useState(null), l = ee(o), h = ee(i), d = f.useRef(null), p = ce(t, (u) => a(u)), m = f.useRef({
|
|
640
690
|
paused: !1,
|
|
641
691
|
pause() {
|
|
642
692
|
this.paused = !0;
|
|
@@ -645,13 +695,13 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
|
|
|
645
695
|
this.paused = !1;
|
|
646
696
|
}
|
|
647
697
|
}).current;
|
|
648
|
-
|
|
698
|
+
f.useEffect(() => {
|
|
649
699
|
if (r) {
|
|
650
|
-
let
|
|
700
|
+
let u = function(b) {
|
|
651
701
|
if (m.paused || !c) return;
|
|
652
702
|
const x = b.target;
|
|
653
703
|
c.contains(x) ? d.current = x : J(d.current, { select: !0 });
|
|
654
|
-
},
|
|
704
|
+
}, g = function(b) {
|
|
655
705
|
if (m.paused || !c) return;
|
|
656
706
|
const x = b.relatedTarget;
|
|
657
707
|
x !== null && (c.contains(x) || J(d.current, { select: !0 }));
|
|
@@ -660,48 +710,48 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
|
|
|
660
710
|
for (const E of b)
|
|
661
711
|
E.removedNodes.length > 0 && J(c);
|
|
662
712
|
};
|
|
663
|
-
document.addEventListener("focusin",
|
|
713
|
+
document.addEventListener("focusin", u), document.addEventListener("focusout", g);
|
|
664
714
|
const w = new MutationObserver(y);
|
|
665
715
|
return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
|
|
666
|
-
document.removeEventListener("focusin",
|
|
716
|
+
document.removeEventListener("focusin", u), document.removeEventListener("focusout", g), w.disconnect();
|
|
667
717
|
};
|
|
668
718
|
}
|
|
669
|
-
}, [r, c, m.paused]),
|
|
719
|
+
}, [r, c, m.paused]), f.useEffect(() => {
|
|
670
720
|
if (c) {
|
|
671
721
|
At.add(m);
|
|
672
|
-
const
|
|
673
|
-
if (!c.contains(
|
|
722
|
+
const u = document.activeElement;
|
|
723
|
+
if (!c.contains(u)) {
|
|
674
724
|
const y = new CustomEvent(Ue, Ct);
|
|
675
|
-
c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (
|
|
725
|
+
c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (mr(wr(Xt(c)), { select: !0 }), document.activeElement === u && J(c));
|
|
676
726
|
}
|
|
677
727
|
return () => {
|
|
678
728
|
c.removeEventListener(Ue, l), setTimeout(() => {
|
|
679
729
|
const y = new CustomEvent(Ye, Ct);
|
|
680
|
-
c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(
|
|
730
|
+
c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(u ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
|
|
681
731
|
}, 0);
|
|
682
732
|
};
|
|
683
733
|
}
|
|
684
734
|
}, [c, l, h, m]);
|
|
685
|
-
const
|
|
686
|
-
(
|
|
735
|
+
const v = f.useCallback(
|
|
736
|
+
(u) => {
|
|
687
737
|
if (!n && !r || m.paused) return;
|
|
688
|
-
const
|
|
689
|
-
if (
|
|
690
|
-
const w =
|
|
691
|
-
b && x ? !
|
|
738
|
+
const g = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, y = document.activeElement;
|
|
739
|
+
if (g && y) {
|
|
740
|
+
const w = u.currentTarget, [b, x] = pr(w);
|
|
741
|
+
b && x ? !u.shiftKey && y === x ? (u.preventDefault(), n && J(b, { select: !0 })) : u.shiftKey && y === b && (u.preventDefault(), n && J(x, { select: !0 })) : y === w && u.preventDefault();
|
|
692
742
|
}
|
|
693
743
|
},
|
|
694
744
|
[n, r, m.paused]
|
|
695
745
|
);
|
|
696
|
-
return /* @__PURE__ */
|
|
746
|
+
return /* @__PURE__ */ R.jsx(oe.div, { tabIndex: -1, ...s, ref: p, onKeyDown: v });
|
|
697
747
|
});
|
|
698
|
-
|
|
699
|
-
function
|
|
748
|
+
hr.displayName = dr;
|
|
749
|
+
function mr(e, { select: t = !1 } = {}) {
|
|
700
750
|
const n = document.activeElement;
|
|
701
751
|
for (const r of e)
|
|
702
752
|
if (J(r, { select: t }), document.activeElement !== n) return;
|
|
703
753
|
}
|
|
704
|
-
function
|
|
754
|
+
function pr(e) {
|
|
705
755
|
const t = Xt(e), n = St(t, e), r = St(t.reverse(), e);
|
|
706
756
|
return [n, r];
|
|
707
757
|
}
|
|
@@ -717,9 +767,9 @@ function Xt(e) {
|
|
|
717
767
|
}
|
|
718
768
|
function St(e, t) {
|
|
719
769
|
for (const n of e)
|
|
720
|
-
if (!
|
|
770
|
+
if (!vr(n, { upTo: t })) return n;
|
|
721
771
|
}
|
|
722
|
-
function
|
|
772
|
+
function vr(e, { upTo: t }) {
|
|
723
773
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
724
774
|
for (; e; ) {
|
|
725
775
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -728,59 +778,59 @@ function pr(e, { upTo: t }) {
|
|
|
728
778
|
}
|
|
729
779
|
return !1;
|
|
730
780
|
}
|
|
731
|
-
function
|
|
781
|
+
function gr(e) {
|
|
732
782
|
return e instanceof HTMLInputElement && "select" in e;
|
|
733
783
|
}
|
|
734
784
|
function J(e, { select: t = !1 } = {}) {
|
|
735
785
|
if (e && e.focus) {
|
|
736
786
|
const n = document.activeElement;
|
|
737
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
787
|
+
e.focus({ preventScroll: !0 }), e !== n && gr(e) && t && e.select();
|
|
738
788
|
}
|
|
739
789
|
}
|
|
740
|
-
var At =
|
|
741
|
-
function
|
|
790
|
+
var At = yr();
|
|
791
|
+
function yr() {
|
|
742
792
|
let e = [];
|
|
743
793
|
return {
|
|
744
794
|
add(t) {
|
|
745
795
|
const n = e[0];
|
|
746
|
-
t !== n && (n == null || n.pause()), e =
|
|
796
|
+
t !== n && (n == null || n.pause()), e = Pt(e, t), e.unshift(t);
|
|
747
797
|
},
|
|
748
798
|
remove(t) {
|
|
749
799
|
var n;
|
|
750
|
-
e =
|
|
800
|
+
e = Pt(e, t), (n = e[0]) == null || n.resume();
|
|
751
801
|
}
|
|
752
802
|
};
|
|
753
803
|
}
|
|
754
|
-
function
|
|
804
|
+
function Pt(e, t) {
|
|
755
805
|
const n = [...e], r = n.indexOf(t);
|
|
756
806
|
return r !== -1 && n.splice(r, 1), n;
|
|
757
807
|
}
|
|
758
|
-
function
|
|
808
|
+
function wr(e) {
|
|
759
809
|
return e.filter((t) => t.tagName !== "A");
|
|
760
810
|
}
|
|
761
|
-
var Ee = globalThis != null && globalThis.document ?
|
|
762
|
-
},
|
|
763
|
-
}),
|
|
764
|
-
function
|
|
765
|
-
const [t, n] =
|
|
811
|
+
var Ee = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
812
|
+
}, xr = f.useId || (() => {
|
|
813
|
+
}), br = 0;
|
|
814
|
+
function Oi(e) {
|
|
815
|
+
const [t, n] = f.useState(xr());
|
|
766
816
|
return Ee(() => {
|
|
767
|
-
n((r) => r ?? String(
|
|
817
|
+
n((r) => r ?? String(br++));
|
|
768
818
|
}, [e]), t ? `radix-${t}` : "";
|
|
769
819
|
}
|
|
770
|
-
const
|
|
820
|
+
const Er = ["top", "right", "bottom", "left"], te = Math.min, W = Math.max, Ie = Math.round, Oe = Math.floor, ne = (e) => ({
|
|
771
821
|
x: e,
|
|
772
822
|
y: e
|
|
773
|
-
}),
|
|
823
|
+
}), Cr = {
|
|
774
824
|
left: "right",
|
|
775
825
|
right: "left",
|
|
776
826
|
bottom: "top",
|
|
777
827
|
top: "bottom"
|
|
778
|
-
},
|
|
828
|
+
}, Sr = {
|
|
779
829
|
start: "end",
|
|
780
830
|
end: "start"
|
|
781
831
|
};
|
|
782
832
|
function et(e, t, n) {
|
|
783
|
-
return
|
|
833
|
+
return W(e, te(t, n));
|
|
784
834
|
}
|
|
785
835
|
function K(e, t) {
|
|
786
836
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -803,18 +853,18 @@ function ve(e) {
|
|
|
803
853
|
function it(e) {
|
|
804
854
|
return rt(ve(e));
|
|
805
855
|
}
|
|
806
|
-
function
|
|
856
|
+
function Ar(e, t, n) {
|
|
807
857
|
n === void 0 && (n = !1);
|
|
808
858
|
const r = pe(e), o = it(e), i = ot(o);
|
|
809
859
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
810
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
860
|
+
return t.reference[i] > t.floating[i] && (s = _e(s)), [s, _e(s)];
|
|
811
861
|
}
|
|
812
|
-
function
|
|
813
|
-
const t =
|
|
862
|
+
function Pr(e) {
|
|
863
|
+
const t = _e(e);
|
|
814
864
|
return [tt(e), t, tt(t)];
|
|
815
865
|
}
|
|
816
866
|
function tt(e) {
|
|
817
|
-
return e.replace(/start|end/g, (t) =>
|
|
867
|
+
return e.replace(/start|end/g, (t) => Sr[t]);
|
|
818
868
|
}
|
|
819
869
|
function Rr(e, t, n) {
|
|
820
870
|
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
@@ -829,15 +879,15 @@ function Rr(e, t, n) {
|
|
|
829
879
|
return [];
|
|
830
880
|
}
|
|
831
881
|
}
|
|
832
|
-
function
|
|
882
|
+
function Or(e, t, n, r) {
|
|
833
883
|
const o = pe(e);
|
|
834
884
|
let i = Rr(G(e), n === "start", r);
|
|
835
885
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
|
|
836
886
|
}
|
|
837
|
-
function
|
|
838
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
887
|
+
function _e(e) {
|
|
888
|
+
return e.replace(/left|right|bottom|top/g, (t) => Cr[t]);
|
|
839
889
|
}
|
|
840
|
-
function
|
|
890
|
+
function Mr(e) {
|
|
841
891
|
return {
|
|
842
892
|
top: 0,
|
|
843
893
|
right: 0,
|
|
@@ -847,14 +897,14 @@ function Or(e) {
|
|
|
847
897
|
};
|
|
848
898
|
}
|
|
849
899
|
function Kt(e) {
|
|
850
|
-
return typeof e != "number" ?
|
|
900
|
+
return typeof e != "number" ? Mr(e) : {
|
|
851
901
|
top: e,
|
|
852
902
|
right: e,
|
|
853
903
|
bottom: e,
|
|
854
904
|
left: e
|
|
855
905
|
};
|
|
856
906
|
}
|
|
857
|
-
function
|
|
907
|
+
function We(e) {
|
|
858
908
|
const {
|
|
859
909
|
x: t,
|
|
860
910
|
y: n,
|
|
@@ -872,7 +922,7 @@ function _e(e) {
|
|
|
872
922
|
y: n
|
|
873
923
|
};
|
|
874
924
|
}
|
|
875
|
-
function
|
|
925
|
+
function Rt(e, t, n) {
|
|
876
926
|
let {
|
|
877
927
|
reference: r,
|
|
878
928
|
floating: o
|
|
@@ -934,12 +984,12 @@ const Tr = async (e, t, n) => {
|
|
|
934
984
|
}), {
|
|
935
985
|
x: h,
|
|
936
986
|
y: d
|
|
937
|
-
} =
|
|
938
|
-
for (let
|
|
987
|
+
} = Rt(l, r, a), p = r, m = {}, v = 0;
|
|
988
|
+
for (let u = 0; u < c.length; u++) {
|
|
939
989
|
const {
|
|
940
|
-
name:
|
|
990
|
+
name: g,
|
|
941
991
|
fn: y
|
|
942
|
-
} = c[
|
|
992
|
+
} = c[u], {
|
|
943
993
|
x: w,
|
|
944
994
|
y: b,
|
|
945
995
|
data: x,
|
|
@@ -960,18 +1010,18 @@ const Tr = async (e, t, n) => {
|
|
|
960
1010
|
});
|
|
961
1011
|
h = w ?? h, d = b ?? d, m = {
|
|
962
1012
|
...m,
|
|
963
|
-
[
|
|
964
|
-
...m[
|
|
1013
|
+
[g]: {
|
|
1014
|
+
...m[g],
|
|
965
1015
|
...x
|
|
966
1016
|
}
|
|
967
|
-
}, E &&
|
|
1017
|
+
}, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
|
|
968
1018
|
reference: e,
|
|
969
1019
|
floating: t,
|
|
970
1020
|
strategy: o
|
|
971
1021
|
}) : E.rects), {
|
|
972
1022
|
x: h,
|
|
973
1023
|
y: d
|
|
974
|
-
} =
|
|
1024
|
+
} = Rt(l, p, a)), u = -1);
|
|
975
1025
|
}
|
|
976
1026
|
return {
|
|
977
1027
|
x: h,
|
|
@@ -997,8 +1047,8 @@ async function Ce(e, t) {
|
|
|
997
1047
|
elementContext: d = "floating",
|
|
998
1048
|
altBoundary: p = !1,
|
|
999
1049
|
padding: m = 0
|
|
1000
|
-
} = K(t, e),
|
|
1001
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(
|
|
1050
|
+
} = K(t, e), v = Kt(m), g = c[p ? d === "floating" ? "reference" : "floating" : d], y = We(await i.getClippingRect({
|
|
1051
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
1002
1052
|
boundary: l,
|
|
1003
1053
|
rootBoundary: h,
|
|
1004
1054
|
strategy: a
|
|
@@ -1013,20 +1063,20 @@ async function Ce(e, t) {
|
|
|
1013
1063
|
} : {
|
|
1014
1064
|
x: 1,
|
|
1015
1065
|
y: 1
|
|
1016
|
-
}, E =
|
|
1066
|
+
}, E = We(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1017
1067
|
elements: c,
|
|
1018
1068
|
rect: w,
|
|
1019
1069
|
offsetParent: b,
|
|
1020
1070
|
strategy: a
|
|
1021
1071
|
}) : w);
|
|
1022
1072
|
return {
|
|
1023
|
-
top: (y.top - E.top +
|
|
1024
|
-
bottom: (E.bottom - y.bottom +
|
|
1025
|
-
left: (y.left - E.left +
|
|
1026
|
-
right: (E.right - y.right +
|
|
1073
|
+
top: (y.top - E.top + v.top) / x.y,
|
|
1074
|
+
bottom: (E.bottom - y.bottom + v.bottom) / x.y,
|
|
1075
|
+
left: (y.left - E.left + v.left) / x.x,
|
|
1076
|
+
right: (E.right - y.right + v.right) / x.x
|
|
1027
1077
|
};
|
|
1028
1078
|
}
|
|
1029
|
-
const
|
|
1079
|
+
const Lr = (e) => ({
|
|
1030
1080
|
name: "arrow",
|
|
1031
1081
|
options: e,
|
|
1032
1082
|
async fn(t) {
|
|
@@ -1047,23 +1097,23 @@ const Mr = (e) => ({
|
|
|
1047
1097
|
const d = Kt(h), p = {
|
|
1048
1098
|
x: n,
|
|
1049
1099
|
y: r
|
|
1050
|
-
}, m = it(o),
|
|
1100
|
+
}, m = it(o), v = ot(m), u = await s.getDimensions(l), g = m === "y", y = g ? "top" : "left", w = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", x = i.reference[v] + i.reference[m] - p[m] - i.floating[v], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1051
1101
|
let S = C ? C[b] : 0;
|
|
1052
|
-
(!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[
|
|
1053
|
-
const A = x / 2 - E / 2, O = S / 2 -
|
|
1102
|
+
(!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[v]);
|
|
1103
|
+
const A = x / 2 - E / 2, O = S / 2 - u[v] / 2 - 1, D = te(d[y], O), j = te(d[w], O), T = D, I = S - u[v] - j, N = S / 2 - u[v] / 2 + A, M = et(T, N, I), k = !a.arrow && pe(o) != null && N !== M && i.reference[v] / 2 - (N < T ? D : j) - u[v] / 2 < 0, P = k ? N < T ? N - T : N - I : 0;
|
|
1054
1104
|
return {
|
|
1055
|
-
[m]: p[m] +
|
|
1105
|
+
[m]: p[m] + P,
|
|
1056
1106
|
data: {
|
|
1057
|
-
[m]:
|
|
1058
|
-
centerOffset: N -
|
|
1107
|
+
[m]: M,
|
|
1108
|
+
centerOffset: N - M - P,
|
|
1059
1109
|
...k && {
|
|
1060
|
-
alignmentOffset:
|
|
1110
|
+
alignmentOffset: P
|
|
1061
1111
|
}
|
|
1062
1112
|
},
|
|
1063
1113
|
reset: k
|
|
1064
1114
|
};
|
|
1065
1115
|
}
|
|
1066
|
-
}),
|
|
1116
|
+
}), Nr = function(e) {
|
|
1067
1117
|
return e === void 0 && (e = {}), {
|
|
1068
1118
|
name: "flip",
|
|
1069
1119
|
options: e,
|
|
@@ -1081,43 +1131,43 @@ const Mr = (e) => ({
|
|
|
1081
1131
|
crossAxis: d = !0,
|
|
1082
1132
|
fallbackPlacements: p,
|
|
1083
1133
|
fallbackStrategy: m = "bestFit",
|
|
1084
|
-
fallbackAxisSideDirection:
|
|
1085
|
-
flipAlignment:
|
|
1086
|
-
...
|
|
1134
|
+
fallbackAxisSideDirection: v = "none",
|
|
1135
|
+
flipAlignment: u = !0,
|
|
1136
|
+
...g
|
|
1087
1137
|
} = K(e, t);
|
|
1088
1138
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1089
1139
|
return {};
|
|
1090
|
-
const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !
|
|
1091
|
-
!p &&
|
|
1092
|
-
const E = [c, ...x], C = await Ce(t,
|
|
1140
|
+
const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !u ? [_e(c)] : Pr(c));
|
|
1141
|
+
!p && v !== "none" && x.push(...Or(c, u, v, b));
|
|
1142
|
+
const E = [c, ...x], C = await Ce(t, g), S = [];
|
|
1093
1143
|
let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1094
1144
|
if (h && S.push(C[y]), d) {
|
|
1095
|
-
const
|
|
1096
|
-
S.push(C[
|
|
1145
|
+
const T = Ar(o, s, b);
|
|
1146
|
+
S.push(C[T[0]], C[T[1]]);
|
|
1097
1147
|
}
|
|
1098
1148
|
if (A = [...A, {
|
|
1099
1149
|
placement: o,
|
|
1100
1150
|
overflows: S
|
|
1101
|
-
}], !S.every((
|
|
1151
|
+
}], !S.every((T) => T <= 0)) {
|
|
1102
1152
|
var O, D;
|
|
1103
|
-
const
|
|
1153
|
+
const T = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[T];
|
|
1104
1154
|
if (I)
|
|
1105
1155
|
return {
|
|
1106
1156
|
data: {
|
|
1107
|
-
index:
|
|
1157
|
+
index: T,
|
|
1108
1158
|
overflows: A
|
|
1109
1159
|
},
|
|
1110
1160
|
reset: {
|
|
1111
1161
|
placement: I
|
|
1112
1162
|
}
|
|
1113
1163
|
};
|
|
1114
|
-
let N = (D = A.filter((
|
|
1164
|
+
let N = (D = A.filter((M) => M.overflows[0] <= 0).sort((M, k) => M.overflows[1] - k.overflows[1])[0]) == null ? void 0 : D.placement;
|
|
1115
1165
|
if (!N)
|
|
1116
1166
|
switch (m) {
|
|
1117
1167
|
case "bestFit": {
|
|
1118
1168
|
var j;
|
|
1119
|
-
const
|
|
1120
|
-
|
|
1169
|
+
const M = (j = A.map((k) => [k.placement, k.overflows.filter((P) => P > 0).reduce((P, _) => P + _, 0)]).sort((k, P) => k[1] - P[1])[0]) == null ? void 0 : j[0];
|
|
1170
|
+
M && (N = M);
|
|
1121
1171
|
break;
|
|
1122
1172
|
}
|
|
1123
1173
|
case "initialPlacement":
|
|
@@ -1143,10 +1193,10 @@ function Ot(e, t) {
|
|
|
1143
1193
|
left: e.left - t.width
|
|
1144
1194
|
};
|
|
1145
1195
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1196
|
+
function Mt(e) {
|
|
1197
|
+
return Er.some((t) => e[t] >= 0);
|
|
1148
1198
|
}
|
|
1149
|
-
const
|
|
1199
|
+
const Dr = function(e) {
|
|
1150
1200
|
return e === void 0 && (e = {}), {
|
|
1151
1201
|
name: "hide",
|
|
1152
1202
|
options: e,
|
|
@@ -1166,7 +1216,7 @@ const Nr = function(e) {
|
|
|
1166
1216
|
return {
|
|
1167
1217
|
data: {
|
|
1168
1218
|
referenceHiddenOffsets: s,
|
|
1169
|
-
referenceHidden:
|
|
1219
|
+
referenceHidden: Mt(s)
|
|
1170
1220
|
}
|
|
1171
1221
|
};
|
|
1172
1222
|
}
|
|
@@ -1178,7 +1228,7 @@ const Nr = function(e) {
|
|
|
1178
1228
|
return {
|
|
1179
1229
|
data: {
|
|
1180
1230
|
escapedOffsets: s,
|
|
1181
|
-
escaped:
|
|
1231
|
+
escaped: Mt(s)
|
|
1182
1232
|
}
|
|
1183
1233
|
};
|
|
1184
1234
|
}
|
|
@@ -1188,7 +1238,7 @@ const Nr = function(e) {
|
|
|
1188
1238
|
}
|
|
1189
1239
|
};
|
|
1190
1240
|
};
|
|
1191
|
-
async function
|
|
1241
|
+
async function kr(e, t) {
|
|
1192
1242
|
const {
|
|
1193
1243
|
placement: n,
|
|
1194
1244
|
platform: r,
|
|
@@ -1197,7 +1247,7 @@ async function Dr(e, t) {
|
|
|
1197
1247
|
let {
|
|
1198
1248
|
mainAxis: p,
|
|
1199
1249
|
crossAxis: m,
|
|
1200
|
-
alignmentAxis:
|
|
1250
|
+
alignmentAxis: v
|
|
1201
1251
|
} = typeof d == "number" ? {
|
|
1202
1252
|
mainAxis: d,
|
|
1203
1253
|
crossAxis: 0,
|
|
@@ -1208,7 +1258,7 @@ async function Dr(e, t) {
|
|
|
1208
1258
|
alignmentAxis: null,
|
|
1209
1259
|
...d
|
|
1210
1260
|
};
|
|
1211
|
-
return c && typeof
|
|
1261
|
+
return c && typeof v == "number" && (m = c === "end" ? v * -1 : v), a ? {
|
|
1212
1262
|
x: m * h,
|
|
1213
1263
|
y: p * l
|
|
1214
1264
|
} : {
|
|
@@ -1216,7 +1266,7 @@ async function Dr(e, t) {
|
|
|
1216
1266
|
y: m * h
|
|
1217
1267
|
};
|
|
1218
1268
|
}
|
|
1219
|
-
const
|
|
1269
|
+
const Fr = function(e) {
|
|
1220
1270
|
return e === void 0 && (e = 0), {
|
|
1221
1271
|
name: "offset",
|
|
1222
1272
|
options: e,
|
|
@@ -1227,7 +1277,7 @@ const kr = function(e) {
|
|
|
1227
1277
|
y: i,
|
|
1228
1278
|
placement: s,
|
|
1229
1279
|
middlewareData: c
|
|
1230
|
-
} = t, a = await
|
|
1280
|
+
} = t, a = await kr(t, e);
|
|
1231
1281
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
1232
1282
|
x: o + a.x,
|
|
1233
1283
|
y: i + a.y,
|
|
@@ -1238,7 +1288,7 @@ const kr = function(e) {
|
|
|
1238
1288
|
};
|
|
1239
1289
|
}
|
|
1240
1290
|
};
|
|
1241
|
-
},
|
|
1291
|
+
}, Ir = function(e) {
|
|
1242
1292
|
return e === void 0 && (e = {}), {
|
|
1243
1293
|
name: "shift",
|
|
1244
1294
|
options: e,
|
|
@@ -1251,11 +1301,11 @@ const kr = function(e) {
|
|
|
1251
1301
|
mainAxis: i = !0,
|
|
1252
1302
|
crossAxis: s = !1,
|
|
1253
1303
|
limiter: c = {
|
|
1254
|
-
fn: (
|
|
1304
|
+
fn: (g) => {
|
|
1255
1305
|
let {
|
|
1256
1306
|
x: y,
|
|
1257
1307
|
y: w
|
|
1258
|
-
} =
|
|
1308
|
+
} = g;
|
|
1259
1309
|
return {
|
|
1260
1310
|
x: y,
|
|
1261
1311
|
y: w
|
|
@@ -1267,30 +1317,30 @@ const kr = function(e) {
|
|
|
1267
1317
|
x: n,
|
|
1268
1318
|
y: r
|
|
1269
1319
|
}, h = await Ce(t, a), d = ve(G(o)), p = rt(d);
|
|
1270
|
-
let m = l[p],
|
|
1320
|
+
let m = l[p], v = l[d];
|
|
1271
1321
|
if (i) {
|
|
1272
|
-
const
|
|
1322
|
+
const g = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + h[g], b = m - h[y];
|
|
1273
1323
|
m = et(w, m, b);
|
|
1274
1324
|
}
|
|
1275
1325
|
if (s) {
|
|
1276
|
-
const
|
|
1277
|
-
|
|
1326
|
+
const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = v + h[g], b = v - h[y];
|
|
1327
|
+
v = et(w, v, b);
|
|
1278
1328
|
}
|
|
1279
|
-
const
|
|
1329
|
+
const u = c.fn({
|
|
1280
1330
|
...t,
|
|
1281
1331
|
[p]: m,
|
|
1282
|
-
[d]:
|
|
1332
|
+
[d]: v
|
|
1283
1333
|
});
|
|
1284
1334
|
return {
|
|
1285
|
-
...
|
|
1335
|
+
...u,
|
|
1286
1336
|
data: {
|
|
1287
|
-
x:
|
|
1288
|
-
y:
|
|
1337
|
+
x: u.x - n,
|
|
1338
|
+
y: u.y - r
|
|
1289
1339
|
}
|
|
1290
1340
|
};
|
|
1291
1341
|
}
|
|
1292
1342
|
};
|
|
1293
|
-
},
|
|
1343
|
+
}, _r = function(e) {
|
|
1294
1344
|
return e === void 0 && (e = {}), {
|
|
1295
1345
|
options: e,
|
|
1296
1346
|
fn(t) {
|
|
@@ -1308,27 +1358,27 @@ const kr = function(e) {
|
|
|
1308
1358
|
x: n,
|
|
1309
1359
|
y: r
|
|
1310
1360
|
}, d = ve(o), p = rt(d);
|
|
1311
|
-
let m = h[p],
|
|
1312
|
-
const
|
|
1313
|
-
mainAxis:
|
|
1361
|
+
let m = h[p], v = h[d];
|
|
1362
|
+
const u = K(c, t), g = typeof u == "number" ? {
|
|
1363
|
+
mainAxis: u,
|
|
1314
1364
|
crossAxis: 0
|
|
1315
1365
|
} : {
|
|
1316
1366
|
mainAxis: 0,
|
|
1317
1367
|
crossAxis: 0,
|
|
1318
|
-
...
|
|
1368
|
+
...u
|
|
1319
1369
|
};
|
|
1320
1370
|
if (a) {
|
|
1321
|
-
const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] +
|
|
1371
|
+
const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + g.mainAxis, E = i.reference[p] + i.reference[b] - g.mainAxis;
|
|
1322
1372
|
m < x ? m = x : m > E && (m = E);
|
|
1323
1373
|
}
|
|
1324
1374
|
if (l) {
|
|
1325
1375
|
var y, w;
|
|
1326
|
-
const b = p === "y" ? "width" : "height", x = ["top", "left"].includes(G(o)), E = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 :
|
|
1327
|
-
|
|
1376
|
+
const b = p === "y" ? "width" : "height", x = ["top", "left"].includes(G(o)), E = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : g.crossAxis), C = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? g.crossAxis : 0);
|
|
1377
|
+
v < E ? v = E : v > C && (v = C);
|
|
1328
1378
|
}
|
|
1329
1379
|
return {
|
|
1330
1380
|
[p]: m,
|
|
1331
|
-
[d]:
|
|
1381
|
+
[d]: v
|
|
1332
1382
|
};
|
|
1333
1383
|
}
|
|
1334
1384
|
};
|
|
@@ -1350,20 +1400,20 @@ const kr = function(e) {
|
|
|
1350
1400
|
width: p,
|
|
1351
1401
|
height: m
|
|
1352
1402
|
} = r.floating;
|
|
1353
|
-
let
|
|
1354
|
-
l === "top" || l === "bottom" ? (
|
|
1355
|
-
const
|
|
1356
|
-
let b =
|
|
1403
|
+
let v, u;
|
|
1404
|
+
l === "top" || l === "bottom" ? (v = l, u = h === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (u = l, v = h === "end" ? "top" : "bottom");
|
|
1405
|
+
const g = m - a[v], y = p - a[u], w = !t.middlewareData.shift;
|
|
1406
|
+
let b = g, x = y;
|
|
1357
1407
|
if (d) {
|
|
1358
1408
|
const C = p - a.left - a.right;
|
|
1359
1409
|
x = h || w ? te(y, C) : C;
|
|
1360
1410
|
} else {
|
|
1361
1411
|
const C = m - a.top - a.bottom;
|
|
1362
|
-
b = h || w ? te(
|
|
1412
|
+
b = h || w ? te(g, C) : C;
|
|
1363
1413
|
}
|
|
1364
1414
|
if (w && !h) {
|
|
1365
|
-
const C =
|
|
1366
|
-
d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S :
|
|
1415
|
+
const C = W(a.left, 0), S = W(a.right, 0), A = W(a.top, 0), O = W(a.bottom, 0);
|
|
1416
|
+
d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : W(a.left, a.right)) : b = m - 2 * (A !== 0 || O !== 0 ? A + O : W(a.top, a.bottom));
|
|
1367
1417
|
}
|
|
1368
1418
|
await s({
|
|
1369
1419
|
...t,
|
|
@@ -1399,7 +1449,7 @@ function U(e) {
|
|
|
1399
1449
|
function Y(e) {
|
|
1400
1450
|
return e instanceof HTMLElement || e instanceof B(e).HTMLElement;
|
|
1401
1451
|
}
|
|
1402
|
-
function
|
|
1452
|
+
function Tt(e) {
|
|
1403
1453
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
1404
1454
|
}
|
|
1405
1455
|
function Ae(e) {
|
|
@@ -1411,14 +1461,14 @@ function Ae(e) {
|
|
|
1411
1461
|
} = $(e);
|
|
1412
1462
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1413
1463
|
}
|
|
1414
|
-
function
|
|
1464
|
+
function Br(e) {
|
|
1415
1465
|
return ["table", "td", "th"].includes(ge(e));
|
|
1416
1466
|
}
|
|
1417
1467
|
function st(e) {
|
|
1418
1468
|
const t = ct(), n = $(e);
|
|
1419
1469
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1420
1470
|
}
|
|
1421
|
-
function
|
|
1471
|
+
function jr(e) {
|
|
1422
1472
|
let t = re(e);
|
|
1423
1473
|
for (; Y(t) && !me(t); ) {
|
|
1424
1474
|
if (st(t))
|
|
@@ -1452,10 +1502,10 @@ function re(e) {
|
|
|
1452
1502
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1453
1503
|
e.assignedSlot || // DOM Element detected.
|
|
1454
1504
|
e.parentNode || // ShadowRoot detected.
|
|
1455
|
-
|
|
1505
|
+
Tt(e) && e.host || // Fallback.
|
|
1456
1506
|
Z(e)
|
|
1457
1507
|
);
|
|
1458
|
-
return
|
|
1508
|
+
return Tt(t) ? t.host : t;
|
|
1459
1509
|
}
|
|
1460
1510
|
function Zt(e) {
|
|
1461
1511
|
const t = re(e);
|
|
@@ -1495,15 +1545,15 @@ function de(e) {
|
|
|
1495
1545
|
y: c
|
|
1496
1546
|
};
|
|
1497
1547
|
}
|
|
1498
|
-
const
|
|
1548
|
+
const $r = /* @__PURE__ */ ne(0);
|
|
1499
1549
|
function Qt(e) {
|
|
1500
1550
|
const t = B(e);
|
|
1501
|
-
return !ct() || !t.visualViewport ?
|
|
1551
|
+
return !ct() || !t.visualViewport ? $r : {
|
|
1502
1552
|
x: t.visualViewport.offsetLeft,
|
|
1503
1553
|
y: t.visualViewport.offsetTop
|
|
1504
1554
|
};
|
|
1505
1555
|
}
|
|
1506
|
-
function
|
|
1556
|
+
function Hr(e, t, n) {
|
|
1507
1557
|
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
1508
1558
|
}
|
|
1509
1559
|
function ae(e, t, n, r) {
|
|
@@ -1511,26 +1561,26 @@ function ae(e, t, n, r) {
|
|
|
1511
1561
|
const o = e.getBoundingClientRect(), i = at(e);
|
|
1512
1562
|
let s = ne(1);
|
|
1513
1563
|
t && (r ? U(r) && (s = de(r)) : s = de(e));
|
|
1514
|
-
const c =
|
|
1564
|
+
const c = Hr(i, n, r) ? Qt(i) : ne(0);
|
|
1515
1565
|
let a = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, h = o.width / s.x, d = o.height / s.y;
|
|
1516
1566
|
if (i) {
|
|
1517
1567
|
const p = B(i), m = r && U(r) ? B(r) : r;
|
|
1518
|
-
let
|
|
1519
|
-
for (;
|
|
1520
|
-
const
|
|
1521
|
-
a *=
|
|
1568
|
+
let v = p, u = v.frameElement;
|
|
1569
|
+
for (; u && r && m !== v; ) {
|
|
1570
|
+
const g = de(u), y = u.getBoundingClientRect(), w = $(u), b = y.left + (u.clientLeft + parseFloat(w.paddingLeft)) * g.x, x = y.top + (u.clientTop + parseFloat(w.paddingTop)) * g.y;
|
|
1571
|
+
a *= g.x, l *= g.y, h *= g.x, d *= g.y, a += b, l += x, v = B(u), u = v.frameElement;
|
|
1522
1572
|
}
|
|
1523
1573
|
}
|
|
1524
|
-
return
|
|
1574
|
+
return We({
|
|
1525
1575
|
width: h,
|
|
1526
1576
|
height: d,
|
|
1527
1577
|
x: a,
|
|
1528
1578
|
y: l
|
|
1529
1579
|
});
|
|
1530
1580
|
}
|
|
1531
|
-
const
|
|
1581
|
+
const Vr = [":popover-open", ":modal"];
|
|
1532
1582
|
function lt(e) {
|
|
1533
|
-
return
|
|
1583
|
+
return Vr.some((t) => {
|
|
1534
1584
|
try {
|
|
1535
1585
|
return e.matches(t);
|
|
1536
1586
|
} catch {
|
|
@@ -1538,7 +1588,7 @@ function lt(e) {
|
|
|
1538
1588
|
}
|
|
1539
1589
|
});
|
|
1540
1590
|
}
|
|
1541
|
-
function
|
|
1591
|
+
function zr(e) {
|
|
1542
1592
|
let {
|
|
1543
1593
|
elements: t,
|
|
1544
1594
|
rect: n,
|
|
@@ -1564,24 +1614,24 @@ function Vr(e) {
|
|
|
1564
1614
|
y: n.y * l.y - a.scrollTop * l.y + h.y
|
|
1565
1615
|
};
|
|
1566
1616
|
}
|
|
1567
|
-
function
|
|
1617
|
+
function Ur(e) {
|
|
1568
1618
|
return Array.from(e.getClientRects());
|
|
1569
1619
|
}
|
|
1570
1620
|
function Jt(e) {
|
|
1571
1621
|
return ae(Z(e)).left + je(e).scrollLeft;
|
|
1572
1622
|
}
|
|
1573
|
-
function
|
|
1574
|
-
const t = Z(e), n = je(e), r = e.ownerDocument.body, o =
|
|
1623
|
+
function Yr(e) {
|
|
1624
|
+
const t = Z(e), n = je(e), r = e.ownerDocument.body, o = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1575
1625
|
let s = -n.scrollLeft + Jt(e);
|
|
1576
1626
|
const c = -n.scrollTop;
|
|
1577
|
-
return $(r).direction === "rtl" && (s +=
|
|
1627
|
+
return $(r).direction === "rtl" && (s += W(t.clientWidth, r.clientWidth) - o), {
|
|
1578
1628
|
width: o,
|
|
1579
1629
|
height: i,
|
|
1580
1630
|
x: s,
|
|
1581
1631
|
y: c
|
|
1582
1632
|
};
|
|
1583
1633
|
}
|
|
1584
|
-
function
|
|
1634
|
+
function Xr(e, t) {
|
|
1585
1635
|
const n = B(e), r = Z(e), o = n.visualViewport;
|
|
1586
1636
|
let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1587
1637
|
if (o) {
|
|
@@ -1596,7 +1646,7 @@ function Yr(e, t) {
|
|
|
1596
1646
|
y: a
|
|
1597
1647
|
};
|
|
1598
1648
|
}
|
|
1599
|
-
function
|
|
1649
|
+
function Kr(e, t) {
|
|
1600
1650
|
const n = ae(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
|
|
1601
1651
|
return {
|
|
1602
1652
|
width: s,
|
|
@@ -1608,11 +1658,11 @@ function Xr(e, t) {
|
|
|
1608
1658
|
function Lt(e, t, n) {
|
|
1609
1659
|
let r;
|
|
1610
1660
|
if (t === "viewport")
|
|
1611
|
-
r =
|
|
1661
|
+
r = Xr(e, n);
|
|
1612
1662
|
else if (t === "document")
|
|
1613
|
-
r =
|
|
1663
|
+
r = Yr(Z(e));
|
|
1614
1664
|
else if (U(t))
|
|
1615
|
-
r =
|
|
1665
|
+
r = Kr(t, n);
|
|
1616
1666
|
else {
|
|
1617
1667
|
const o = Qt(e);
|
|
1618
1668
|
r = {
|
|
@@ -1621,13 +1671,13 @@ function Lt(e, t, n) {
|
|
|
1621
1671
|
y: t.y - o.y
|
|
1622
1672
|
};
|
|
1623
1673
|
}
|
|
1624
|
-
return
|
|
1674
|
+
return We(r);
|
|
1625
1675
|
}
|
|
1626
1676
|
function en(e, t) {
|
|
1627
1677
|
const n = re(e);
|
|
1628
1678
|
return n === t || !U(n) || me(n) ? !1 : $(n).position === "fixed" || en(n, t);
|
|
1629
1679
|
}
|
|
1630
|
-
function
|
|
1680
|
+
function Gr(e, t) {
|
|
1631
1681
|
const n = t.get(e);
|
|
1632
1682
|
if (n)
|
|
1633
1683
|
return n;
|
|
@@ -1640,16 +1690,16 @@ function Kr(e, t) {
|
|
|
1640
1690
|
}
|
|
1641
1691
|
return t.set(e, r), r;
|
|
1642
1692
|
}
|
|
1643
|
-
function
|
|
1693
|
+
function Zr(e) {
|
|
1644
1694
|
let {
|
|
1645
1695
|
element: t,
|
|
1646
1696
|
boundary: n,
|
|
1647
1697
|
rootBoundary: r,
|
|
1648
1698
|
strategy: o
|
|
1649
1699
|
} = e;
|
|
1650
|
-
const s = [...n === "clippingAncestors" ? lt(t) ? [] :
|
|
1700
|
+
const s = [...n === "clippingAncestors" ? lt(t) ? [] : Gr(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((l, h) => {
|
|
1651
1701
|
const d = Lt(t, h, o);
|
|
1652
|
-
return l.top =
|
|
1702
|
+
return l.top = W(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
|
|
1653
1703
|
}, Lt(t, c, o));
|
|
1654
1704
|
return {
|
|
1655
1705
|
width: a.right - a.left,
|
|
@@ -1658,7 +1708,7 @@ function Gr(e) {
|
|
|
1658
1708
|
y: a.top
|
|
1659
1709
|
};
|
|
1660
1710
|
}
|
|
1661
|
-
function
|
|
1711
|
+
function qr(e) {
|
|
1662
1712
|
const {
|
|
1663
1713
|
width: t,
|
|
1664
1714
|
height: n
|
|
@@ -1668,7 +1718,7 @@ function Zr(e) {
|
|
|
1668
1718
|
height: n
|
|
1669
1719
|
};
|
|
1670
1720
|
}
|
|
1671
|
-
function
|
|
1721
|
+
function Qr(e, t, n) {
|
|
1672
1722
|
const r = Y(t), o = Z(t), i = n === "fixed", s = ae(e, !0, i, t);
|
|
1673
1723
|
let c = {
|
|
1674
1724
|
scrollLeft: 0,
|
|
@@ -1708,14 +1758,14 @@ function tn(e, t) {
|
|
|
1708
1758
|
return n;
|
|
1709
1759
|
}
|
|
1710
1760
|
let r = Nt(e, t);
|
|
1711
|
-
for (; r &&
|
|
1761
|
+
for (; r && Br(r) && Xe(r); )
|
|
1712
1762
|
r = Nt(r, t);
|
|
1713
|
-
return r && me(r) && Xe(r) && !st(r) ? n : r ||
|
|
1763
|
+
return r && me(r) && Xe(r) && !st(r) ? n : r || jr(e) || n;
|
|
1714
1764
|
}
|
|
1715
|
-
const
|
|
1765
|
+
const Jr = async function(e) {
|
|
1716
1766
|
const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
|
|
1717
1767
|
return {
|
|
1718
|
-
reference:
|
|
1768
|
+
reference: Qr(e.reference, await t(e.floating), e.strategy),
|
|
1719
1769
|
floating: {
|
|
1720
1770
|
x: 0,
|
|
1721
1771
|
y: 0,
|
|
@@ -1724,22 +1774,22 @@ const Qr = async function(e) {
|
|
|
1724
1774
|
}
|
|
1725
1775
|
};
|
|
1726
1776
|
};
|
|
1727
|
-
function
|
|
1777
|
+
function eo(e) {
|
|
1728
1778
|
return $(e).direction === "rtl";
|
|
1729
1779
|
}
|
|
1730
|
-
const
|
|
1731
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1780
|
+
const to = {
|
|
1781
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: zr,
|
|
1732
1782
|
getDocumentElement: Z,
|
|
1733
|
-
getClippingRect:
|
|
1783
|
+
getClippingRect: Zr,
|
|
1734
1784
|
getOffsetParent: tn,
|
|
1735
|
-
getElementRects:
|
|
1736
|
-
getClientRects:
|
|
1737
|
-
getDimensions:
|
|
1785
|
+
getElementRects: Jr,
|
|
1786
|
+
getClientRects: Ur,
|
|
1787
|
+
getDimensions: qr,
|
|
1738
1788
|
getScale: de,
|
|
1739
1789
|
isElement: U,
|
|
1740
|
-
isRTL:
|
|
1790
|
+
isRTL: eo
|
|
1741
1791
|
};
|
|
1742
|
-
function
|
|
1792
|
+
function no(e, t) {
|
|
1743
1793
|
let n = null, r;
|
|
1744
1794
|
const o = Z(e);
|
|
1745
1795
|
function i() {
|
|
@@ -1756,9 +1806,9 @@ function to(e, t) {
|
|
|
1756
1806
|
} = e.getBoundingClientRect();
|
|
1757
1807
|
if (c || t(), !d || !p)
|
|
1758
1808
|
return;
|
|
1759
|
-
const m = Oe(h),
|
|
1760
|
-
rootMargin: -m + "px " + -
|
|
1761
|
-
threshold:
|
|
1809
|
+
const m = Oe(h), v = Oe(o.clientWidth - (l + d)), u = Oe(o.clientHeight - (h + p)), g = Oe(l), w = {
|
|
1810
|
+
rootMargin: -m + "px " + -v + "px " + -u + "px " + -g + "px",
|
|
1811
|
+
threshold: W(0, te(1, a)) || 1
|
|
1762
1812
|
};
|
|
1763
1813
|
let b = !0;
|
|
1764
1814
|
function x(E) {
|
|
@@ -1785,7 +1835,7 @@ function to(e, t) {
|
|
|
1785
1835
|
}
|
|
1786
1836
|
return s(!0), i;
|
|
1787
1837
|
}
|
|
1788
|
-
function
|
|
1838
|
+
function ro(e, t, n, r) {
|
|
1789
1839
|
r === void 0 && (r = {});
|
|
1790
1840
|
const {
|
|
1791
1841
|
ancestorScroll: o = !0,
|
|
@@ -1799,7 +1849,7 @@ function no(e, t, n, r) {
|
|
|
1799
1849
|
passive: !0
|
|
1800
1850
|
}), i && y.addEventListener("resize", n);
|
|
1801
1851
|
});
|
|
1802
|
-
const d = l && c ?
|
|
1852
|
+
const d = l && c ? no(l, n) : null;
|
|
1803
1853
|
let p = -1, m = null;
|
|
1804
1854
|
s && (m = new ResizeObserver((y) => {
|
|
1805
1855
|
let [w] = y;
|
|
@@ -1808,22 +1858,22 @@ function no(e, t, n, r) {
|
|
|
1808
1858
|
(b = m) == null || b.observe(t);
|
|
1809
1859
|
})), n();
|
|
1810
1860
|
}), l && !a && m.observe(l), m.observe(t));
|
|
1811
|
-
let
|
|
1812
|
-
a &&
|
|
1813
|
-
function
|
|
1861
|
+
let v, u = a ? ae(e) : null;
|
|
1862
|
+
a && g();
|
|
1863
|
+
function g() {
|
|
1814
1864
|
const y = ae(e);
|
|
1815
|
-
|
|
1865
|
+
u && (y.x !== u.x || y.y !== u.y || y.width !== u.width || y.height !== u.height) && n(), u = y, v = requestAnimationFrame(g);
|
|
1816
1866
|
}
|
|
1817
1867
|
return n(), () => {
|
|
1818
1868
|
var y;
|
|
1819
1869
|
h.forEach((w) => {
|
|
1820
1870
|
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1821
|
-
}), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(
|
|
1871
|
+
}), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(v);
|
|
1822
1872
|
};
|
|
1823
1873
|
}
|
|
1824
|
-
const
|
|
1874
|
+
const oo = Fr, io = Ir, so = Nr, co = Wr, ao = Dr, Dt = Lr, lo = _r, uo = (e, t, n) => {
|
|
1825
1875
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1826
|
-
platform:
|
|
1876
|
+
platform: to,
|
|
1827
1877
|
...n
|
|
1828
1878
|
}, i = {
|
|
1829
1879
|
...o.platform,
|
|
@@ -1833,7 +1883,7 @@ const ro = kr, oo = Fr, io = Lr, so = Wr, co = Nr, Dt = Mr, ao = Ir, lo = (e, t,
|
|
|
1833
1883
|
...o,
|
|
1834
1884
|
platform: i
|
|
1835
1885
|
});
|
|
1836
|
-
},
|
|
1886
|
+
}, fo = (e) => {
|
|
1837
1887
|
function t(n) {
|
|
1838
1888
|
return {}.hasOwnProperty.call(n, "current");
|
|
1839
1889
|
}
|
|
@@ -1894,12 +1944,12 @@ function kt(e, t) {
|
|
|
1894
1944
|
return Math.round(t * n) / n;
|
|
1895
1945
|
}
|
|
1896
1946
|
function Ft(e) {
|
|
1897
|
-
const t =
|
|
1947
|
+
const t = f.useRef(e);
|
|
1898
1948
|
return De(() => {
|
|
1899
1949
|
t.current = e;
|
|
1900
1950
|
}), t;
|
|
1901
1951
|
}
|
|
1902
|
-
function
|
|
1952
|
+
function ho(e) {
|
|
1903
1953
|
e === void 0 && (e = {});
|
|
1904
1954
|
const {
|
|
1905
1955
|
placement: t = "bottom",
|
|
@@ -1913,30 +1963,30 @@ function fo(e) {
|
|
|
1913
1963
|
transform: c = !0,
|
|
1914
1964
|
whileElementsMounted: a,
|
|
1915
1965
|
open: l
|
|
1916
|
-
} = e, [h, d] =
|
|
1966
|
+
} = e, [h, d] = f.useState({
|
|
1917
1967
|
x: 0,
|
|
1918
1968
|
y: 0,
|
|
1919
1969
|
strategy: n,
|
|
1920
1970
|
placement: t,
|
|
1921
1971
|
middlewareData: {},
|
|
1922
1972
|
isPositioned: !1
|
|
1923
|
-
}), [p, m] =
|
|
1973
|
+
}), [p, m] = f.useState(r);
|
|
1924
1974
|
Be(p, r) || m(r);
|
|
1925
|
-
const [
|
|
1926
|
-
|
|
1927
|
-
}, []), b =
|
|
1928
|
-
|
|
1929
|
-
}, []), x = i ||
|
|
1975
|
+
const [v, u] = f.useState(null), [g, y] = f.useState(null), w = f.useCallback((P) => {
|
|
1976
|
+
P !== C.current && (C.current = P, u(P));
|
|
1977
|
+
}, []), b = f.useCallback((P) => {
|
|
1978
|
+
P !== S.current && (S.current = P, y(P));
|
|
1979
|
+
}, []), x = i || v, E = s || g, C = f.useRef(null), S = f.useRef(null), A = f.useRef(h), O = a != null, D = Ft(a), j = Ft(o), T = f.useCallback(() => {
|
|
1930
1980
|
if (!C.current || !S.current)
|
|
1931
1981
|
return;
|
|
1932
|
-
const
|
|
1982
|
+
const P = {
|
|
1933
1983
|
placement: t,
|
|
1934
1984
|
strategy: n,
|
|
1935
1985
|
middleware: p
|
|
1936
1986
|
};
|
|
1937
|
-
j.current && (
|
|
1987
|
+
j.current && (P.platform = j.current), uo(C.current, S.current, P).then((_) => {
|
|
1938
1988
|
const X = {
|
|
1939
|
-
...
|
|
1989
|
+
..._,
|
|
1940
1990
|
isPositioned: !0
|
|
1941
1991
|
};
|
|
1942
1992
|
I.current && !Be(A.current, X) && (A.current = X, Ht.flushSync(() => {
|
|
@@ -1945,61 +1995,61 @@ function fo(e) {
|
|
|
1945
1995
|
});
|
|
1946
1996
|
}, [p, t, n, j]);
|
|
1947
1997
|
De(() => {
|
|
1948
|
-
l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((
|
|
1949
|
-
...
|
|
1998
|
+
l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((P) => ({
|
|
1999
|
+
...P,
|
|
1950
2000
|
isPositioned: !1
|
|
1951
2001
|
})));
|
|
1952
2002
|
}, [l]);
|
|
1953
|
-
const I =
|
|
2003
|
+
const I = f.useRef(!1);
|
|
1954
2004
|
De(() => (I.current = !0, () => {
|
|
1955
2005
|
I.current = !1;
|
|
1956
2006
|
}), []), De(() => {
|
|
1957
2007
|
if (x && (C.current = x), E && (S.current = E), x && E) {
|
|
1958
2008
|
if (D.current)
|
|
1959
|
-
return D.current(x, E,
|
|
1960
|
-
|
|
2009
|
+
return D.current(x, E, T);
|
|
2010
|
+
T();
|
|
1961
2011
|
}
|
|
1962
|
-
}, [x, E,
|
|
1963
|
-
const N =
|
|
2012
|
+
}, [x, E, T, D, O]);
|
|
2013
|
+
const N = f.useMemo(() => ({
|
|
1964
2014
|
reference: C,
|
|
1965
2015
|
floating: S,
|
|
1966
2016
|
setReference: w,
|
|
1967
2017
|
setFloating: b
|
|
1968
|
-
}), [w, b]),
|
|
2018
|
+
}), [w, b]), M = f.useMemo(() => ({
|
|
1969
2019
|
reference: x,
|
|
1970
2020
|
floating: E
|
|
1971
|
-
}), [x, E]), k =
|
|
1972
|
-
const
|
|
2021
|
+
}), [x, E]), k = f.useMemo(() => {
|
|
2022
|
+
const P = {
|
|
1973
2023
|
position: n,
|
|
1974
2024
|
left: 0,
|
|
1975
2025
|
top: 0
|
|
1976
2026
|
};
|
|
1977
|
-
if (!
|
|
1978
|
-
return
|
|
1979
|
-
const
|
|
2027
|
+
if (!M.floating)
|
|
2028
|
+
return P;
|
|
2029
|
+
const _ = kt(M.floating, h.x), X = kt(M.floating, h.y);
|
|
1980
2030
|
return c ? {
|
|
1981
|
-
...
|
|
1982
|
-
transform: "translate(" +
|
|
1983
|
-
...nn(
|
|
2031
|
+
...P,
|
|
2032
|
+
transform: "translate(" + _ + "px, " + X + "px)",
|
|
2033
|
+
...nn(M.floating) >= 1.5 && {
|
|
1984
2034
|
willChange: "transform"
|
|
1985
2035
|
}
|
|
1986
2036
|
} : {
|
|
1987
2037
|
position: n,
|
|
1988
|
-
left:
|
|
2038
|
+
left: _,
|
|
1989
2039
|
top: X
|
|
1990
2040
|
};
|
|
1991
|
-
}, [n, c,
|
|
1992
|
-
return
|
|
2041
|
+
}, [n, c, M.floating, h.x, h.y]);
|
|
2042
|
+
return f.useMemo(() => ({
|
|
1993
2043
|
...h,
|
|
1994
|
-
update:
|
|
2044
|
+
update: T,
|
|
1995
2045
|
refs: N,
|
|
1996
|
-
elements:
|
|
2046
|
+
elements: M,
|
|
1997
2047
|
floatingStyles: k
|
|
1998
|
-
}), [h,
|
|
2048
|
+
}), [h, T, N, M, k]);
|
|
1999
2049
|
}
|
|
2000
|
-
var
|
|
2050
|
+
var mo = "Arrow", rn = f.forwardRef((e, t) => {
|
|
2001
2051
|
const { children: n, width: r = 10, height: o = 5, ...i } = e;
|
|
2002
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ R.jsx(
|
|
2003
2053
|
oe.svg,
|
|
2004
2054
|
{
|
|
2005
2055
|
...i,
|
|
@@ -2008,14 +2058,14 @@ var ho = "Arrow", rn = u.forwardRef((e, t) => {
|
|
|
2008
2058
|
height: o,
|
|
2009
2059
|
viewBox: "0 0 30 10",
|
|
2010
2060
|
preserveAspectRatio: "none",
|
|
2011
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
2061
|
+
children: e.asChild ? n : /* @__PURE__ */ R.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
2012
2062
|
}
|
|
2013
2063
|
);
|
|
2014
2064
|
});
|
|
2015
|
-
rn.displayName =
|
|
2016
|
-
var
|
|
2017
|
-
function
|
|
2018
|
-
const [t, n] =
|
|
2065
|
+
rn.displayName = mo;
|
|
2066
|
+
var po = rn;
|
|
2067
|
+
function vo(e) {
|
|
2068
|
+
const [t, n] = f.useState(void 0);
|
|
2019
2069
|
return Ee(() => {
|
|
2020
2070
|
if (e) {
|
|
2021
2071
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
@@ -2036,21 +2086,21 @@ function po(e) {
|
|
|
2036
2086
|
n(void 0);
|
|
2037
2087
|
}, [e]), t;
|
|
2038
2088
|
}
|
|
2039
|
-
var ut = "Popper", [on,
|
|
2040
|
-
const { __scopePopper: t, children: n } = e, [r, o] =
|
|
2041
|
-
return /* @__PURE__ */
|
|
2089
|
+
var ut = "Popper", [on, Mi] = zt(ut), [go, sn] = on(ut), cn = (e) => {
|
|
2090
|
+
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
2091
|
+
return /* @__PURE__ */ R.jsx(go, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2042
2092
|
};
|
|
2043
2093
|
cn.displayName = ut;
|
|
2044
|
-
var an = "PopperAnchor", ln =
|
|
2094
|
+
var an = "PopperAnchor", ln = f.forwardRef(
|
|
2045
2095
|
(e, t) => {
|
|
2046
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s =
|
|
2047
|
-
return
|
|
2096
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, i = sn(an, n), s = f.useRef(null), c = ce(t, s);
|
|
2097
|
+
return f.useEffect(() => {
|
|
2048
2098
|
i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
|
|
2049
|
-
}), r ? null : /* @__PURE__ */
|
|
2099
|
+
}), r ? null : /* @__PURE__ */ R.jsx(oe.div, { ...o, ref: c });
|
|
2050
2100
|
}
|
|
2051
2101
|
);
|
|
2052
2102
|
ln.displayName = an;
|
|
2053
|
-
var ft = "PopperContent", [
|
|
2103
|
+
var ft = "PopperContent", [yo, wo] = on(ft), un = f.forwardRef(
|
|
2054
2104
|
(e, t) => {
|
|
2055
2105
|
var dt, ht, mt, pt, vt, gt;
|
|
2056
2106
|
const {
|
|
@@ -2066,76 +2116,76 @@ var ft = "PopperContent", [go, yo] = on(ft), un = u.forwardRef(
|
|
|
2066
2116
|
sticky: d = "partial",
|
|
2067
2117
|
hideWhenDetached: p = !1,
|
|
2068
2118
|
updatePositionStrategy: m = "optimized",
|
|
2069
|
-
onPlaced:
|
|
2070
|
-
...
|
|
2071
|
-
} = e,
|
|
2119
|
+
onPlaced: v,
|
|
2120
|
+
...u
|
|
2121
|
+
} = e, g = sn(ft, n), [y, w] = f.useState(null), b = ce(t, (ye) => w(ye)), [x, E] = f.useState(null), C = vo(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], T = j.length > 0, I = {
|
|
2072
2122
|
padding: D,
|
|
2073
|
-
boundary: j.filter(
|
|
2123
|
+
boundary: j.filter(bo),
|
|
2074
2124
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2075
|
-
altBoundary:
|
|
2076
|
-
}, { refs: N, floatingStyles:
|
|
2125
|
+
altBoundary: T
|
|
2126
|
+
}, { refs: N, floatingStyles: M, placement: k, isPositioned: P, middlewareData: _ } = ho({
|
|
2077
2127
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2078
2128
|
strategy: "fixed",
|
|
2079
2129
|
placement: O,
|
|
2080
|
-
whileElementsMounted: (...ye) =>
|
|
2130
|
+
whileElementsMounted: (...ye) => ro(...ye, {
|
|
2081
2131
|
animationFrame: m === "always"
|
|
2082
2132
|
}),
|
|
2083
2133
|
elements: {
|
|
2084
|
-
reference:
|
|
2134
|
+
reference: g.anchor
|
|
2085
2135
|
},
|
|
2086
2136
|
middleware: [
|
|
2087
|
-
|
|
2088
|
-
a &&
|
|
2137
|
+
oo({ mainAxis: o + A, alignmentAxis: s }),
|
|
2138
|
+
a && io({
|
|
2089
2139
|
mainAxis: !0,
|
|
2090
2140
|
crossAxis: !1,
|
|
2091
|
-
limiter: d === "partial" ?
|
|
2141
|
+
limiter: d === "partial" ? lo() : void 0,
|
|
2092
2142
|
...I
|
|
2093
2143
|
}),
|
|
2094
|
-
a &&
|
|
2095
|
-
|
|
2144
|
+
a && so({ ...I }),
|
|
2145
|
+
co({
|
|
2096
2146
|
...I,
|
|
2097
|
-
apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight:
|
|
2098
|
-
const { width:
|
|
2099
|
-
|
|
2147
|
+
apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight: Mn }) => {
|
|
2148
|
+
const { width: Tn, height: Ln } = yt.reference, Re = ye.floating.style;
|
|
2149
|
+
Re.setProperty("--radix-popper-available-width", `${On}px`), Re.setProperty("--radix-popper-available-height", `${Mn}px`), Re.setProperty("--radix-popper-anchor-width", `${Tn}px`), Re.setProperty("--radix-popper-anchor-height", `${Ln}px`);
|
|
2100
2150
|
}
|
|
2101
2151
|
}),
|
|
2102
|
-
x &&
|
|
2103
|
-
|
|
2104
|
-
p &&
|
|
2152
|
+
x && fo({ element: x, padding: c }),
|
|
2153
|
+
Eo({ arrowWidth: S, arrowHeight: A }),
|
|
2154
|
+
p && ao({ strategy: "referenceHidden", ...I })
|
|
2105
2155
|
]
|
|
2106
|
-
}), [X, En] = hn(k),
|
|
2156
|
+
}), [X, En] = hn(k), Pe = ee(v);
|
|
2107
2157
|
Ee(() => {
|
|
2108
|
-
|
|
2109
|
-
}, [
|
|
2110
|
-
const Cn = (dt =
|
|
2158
|
+
P && (Pe == null || Pe());
|
|
2159
|
+
}, [P, Pe]);
|
|
2160
|
+
const Cn = (dt = _.arrow) == null ? void 0 : dt.x, Sn = (ht = _.arrow) == null ? void 0 : ht.y, An = ((mt = _.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Pn, Rn] = f.useState();
|
|
2111
2161
|
return Ee(() => {
|
|
2112
|
-
y &&
|
|
2113
|
-
}, [y]), /* @__PURE__ */
|
|
2162
|
+
y && Rn(window.getComputedStyle(y).zIndex);
|
|
2163
|
+
}, [y]), /* @__PURE__ */ R.jsx(
|
|
2114
2164
|
"div",
|
|
2115
2165
|
{
|
|
2116
2166
|
ref: N.setFloating,
|
|
2117
2167
|
"data-radix-popper-content-wrapper": "",
|
|
2118
2168
|
style: {
|
|
2119
|
-
...
|
|
2120
|
-
transform:
|
|
2169
|
+
...M,
|
|
2170
|
+
transform: P ? M.transform : "translate(0, -200%)",
|
|
2121
2171
|
// keep off the page when measuring
|
|
2122
2172
|
minWidth: "max-content",
|
|
2123
|
-
zIndex:
|
|
2173
|
+
zIndex: Pn,
|
|
2124
2174
|
"--radix-popper-transform-origin": [
|
|
2125
|
-
(pt =
|
|
2126
|
-
(vt =
|
|
2175
|
+
(pt = _.transformOrigin) == null ? void 0 : pt.x,
|
|
2176
|
+
(vt = _.transformOrigin) == null ? void 0 : vt.y
|
|
2127
2177
|
].join(" "),
|
|
2128
2178
|
// hide the content if using the hide middleware and should be hidden
|
|
2129
2179
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2130
2180
|
// as if the PopperContent isn't there at all
|
|
2131
|
-
...((gt =
|
|
2181
|
+
...((gt = _.hide) == null ? void 0 : gt.referenceHidden) && {
|
|
2132
2182
|
visibility: "hidden",
|
|
2133
2183
|
pointerEvents: "none"
|
|
2134
2184
|
}
|
|
2135
2185
|
},
|
|
2136
2186
|
dir: e.dir,
|
|
2137
|
-
children: /* @__PURE__ */
|
|
2138
|
-
|
|
2187
|
+
children: /* @__PURE__ */ R.jsx(
|
|
2188
|
+
yo,
|
|
2139
2189
|
{
|
|
2140
2190
|
scope: n,
|
|
2141
2191
|
placedSide: X,
|
|
@@ -2143,18 +2193,18 @@ var ft = "PopperContent", [go, yo] = on(ft), un = u.forwardRef(
|
|
|
2143
2193
|
arrowX: Cn,
|
|
2144
2194
|
arrowY: Sn,
|
|
2145
2195
|
shouldHideArrow: An,
|
|
2146
|
-
children: /* @__PURE__ */
|
|
2196
|
+
children: /* @__PURE__ */ R.jsx(
|
|
2147
2197
|
oe.div,
|
|
2148
2198
|
{
|
|
2149
2199
|
"data-side": X,
|
|
2150
2200
|
"data-align": En,
|
|
2151
|
-
...
|
|
2201
|
+
...u,
|
|
2152
2202
|
ref: b,
|
|
2153
2203
|
style: {
|
|
2154
|
-
...
|
|
2204
|
+
...u.style,
|
|
2155
2205
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2156
2206
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2157
|
-
animation:
|
|
2207
|
+
animation: P ? void 0 : "none"
|
|
2158
2208
|
}
|
|
2159
2209
|
}
|
|
2160
2210
|
)
|
|
@@ -2165,18 +2215,18 @@ var ft = "PopperContent", [go, yo] = on(ft), un = u.forwardRef(
|
|
|
2165
2215
|
}
|
|
2166
2216
|
);
|
|
2167
2217
|
un.displayName = ft;
|
|
2168
|
-
var fn = "PopperArrow",
|
|
2218
|
+
var fn = "PopperArrow", xo = {
|
|
2169
2219
|
top: "bottom",
|
|
2170
2220
|
right: "left",
|
|
2171
2221
|
bottom: "top",
|
|
2172
2222
|
left: "right"
|
|
2173
|
-
}, dn =
|
|
2174
|
-
const { __scopePopper: r, ...o } = t, i =
|
|
2223
|
+
}, dn = f.forwardRef(function(t, n) {
|
|
2224
|
+
const { __scopePopper: r, ...o } = t, i = wo(fn, r), s = xo[i.placedSide];
|
|
2175
2225
|
return (
|
|
2176
2226
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2177
2227
|
// doesn't report size as we'd expect on SVG elements.
|
|
2178
2228
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2179
|
-
/* @__PURE__ */
|
|
2229
|
+
/* @__PURE__ */ R.jsx(
|
|
2180
2230
|
"span",
|
|
2181
2231
|
{
|
|
2182
2232
|
ref: i.onArrowChange,
|
|
@@ -2199,8 +2249,8 @@ var fn = "PopperArrow", wo = {
|
|
|
2199
2249
|
}[i.placedSide],
|
|
2200
2250
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2201
2251
|
},
|
|
2202
|
-
children: /* @__PURE__ */
|
|
2203
|
-
|
|
2252
|
+
children: /* @__PURE__ */ R.jsx(
|
|
2253
|
+
po,
|
|
2204
2254
|
{
|
|
2205
2255
|
...o,
|
|
2206
2256
|
ref: n,
|
|
@@ -2216,39 +2266,39 @@ var fn = "PopperArrow", wo = {
|
|
|
2216
2266
|
);
|
|
2217
2267
|
});
|
|
2218
2268
|
dn.displayName = fn;
|
|
2219
|
-
function
|
|
2269
|
+
function bo(e) {
|
|
2220
2270
|
return e !== null;
|
|
2221
2271
|
}
|
|
2222
|
-
var
|
|
2272
|
+
var Eo = (e) => ({
|
|
2223
2273
|
name: "transformOrigin",
|
|
2224
2274
|
options: e,
|
|
2225
2275
|
fn(t) {
|
|
2226
|
-
var
|
|
2227
|
-
const { placement: n, rects: r, middlewareData: o } = t, s = ((
|
|
2228
|
-
let
|
|
2229
|
-
return l === "bottom" ? (
|
|
2276
|
+
var g, y, w;
|
|
2277
|
+
const { placement: n, rects: r, middlewareData: o } = t, s = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, a = s ? 0 : e.arrowHeight, [l, h] = hn(n), d = { start: "0%", center: "50%", end: "100%" }[h], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + a / 2;
|
|
2278
|
+
let v = "", u = "";
|
|
2279
|
+
return l === "bottom" ? (v = s ? d : `${p}px`, u = `${-a}px`) : l === "top" ? (v = s ? d : `${p}px`, u = `${r.floating.height + a}px`) : l === "right" ? (v = `${-a}px`, u = s ? d : `${m}px`) : l === "left" && (v = `${r.floating.width + a}px`, u = s ? d : `${m}px`), { data: { x: v, y: u } };
|
|
2230
2280
|
}
|
|
2231
2281
|
});
|
|
2232
2282
|
function hn(e) {
|
|
2233
2283
|
const [t, n = "center"] = e.split("-");
|
|
2234
2284
|
return [t, n];
|
|
2235
2285
|
}
|
|
2236
|
-
var
|
|
2286
|
+
var Ti = cn, Li = ln, Ni = un, Di = dn, Co = "Portal", So = f.forwardRef((e, t) => {
|
|
2237
2287
|
var c;
|
|
2238
|
-
const { container: n, ...r } = e, [o, i] =
|
|
2288
|
+
const { container: n, ...r } = e, [o, i] = f.useState(!1);
|
|
2239
2289
|
Ee(() => i(!0), []);
|
|
2240
2290
|
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
2241
|
-
return s ? Hn.createPortal(/* @__PURE__ */
|
|
2291
|
+
return s ? Hn.createPortal(/* @__PURE__ */ R.jsx(oe.div, { ...r, ref: t }), s) : null;
|
|
2242
2292
|
});
|
|
2243
|
-
|
|
2244
|
-
var
|
|
2293
|
+
So.displayName = Co;
|
|
2294
|
+
var Ao = function(e) {
|
|
2245
2295
|
if (typeof document > "u")
|
|
2246
2296
|
return null;
|
|
2247
2297
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2248
2298
|
return t.ownerDocument.body;
|
|
2249
|
-
}, le = /* @__PURE__ */ new WeakMap(),
|
|
2299
|
+
}, le = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Te = {}, Ke = 0, mn = function(e) {
|
|
2250
2300
|
return e && (e.host || mn(e.parentNode));
|
|
2251
|
-
},
|
|
2301
|
+
}, Po = function(e, t) {
|
|
2252
2302
|
return t.map(function(n) {
|
|
2253
2303
|
if (e.contains(n))
|
|
2254
2304
|
return n;
|
|
@@ -2258,9 +2308,9 @@ var So = function(e) {
|
|
|
2258
2308
|
return !!n;
|
|
2259
2309
|
});
|
|
2260
2310
|
}, Ro = function(e, t, n, r) {
|
|
2261
|
-
var o =
|
|
2262
|
-
|
|
2263
|
-
var i =
|
|
2311
|
+
var o = Po(t, Array.isArray(e) ? e : [e]);
|
|
2312
|
+
Te[n] || (Te[n] = /* @__PURE__ */ new WeakMap());
|
|
2313
|
+
var i = Te[n], s = [], c = /* @__PURE__ */ new Set(), a = new Set(o), l = function(d) {
|
|
2264
2314
|
!d || c.has(d) || (c.add(d), l(d.parentNode));
|
|
2265
2315
|
};
|
|
2266
2316
|
o.forEach(l);
|
|
@@ -2270,8 +2320,8 @@ var So = function(e) {
|
|
|
2270
2320
|
h(p);
|
|
2271
2321
|
else
|
|
2272
2322
|
try {
|
|
2273
|
-
var m = p.getAttribute(r),
|
|
2274
|
-
le.set(p,
|
|
2323
|
+
var m = p.getAttribute(r), v = m !== null && m !== "false", u = (le.get(p) || 0) + 1, g = (i.get(p) || 0) + 1;
|
|
2324
|
+
le.set(p, u), i.set(p, g), s.push(p), u === 1 && v && Me.set(p, !0), g === 1 && p.setAttribute(n, "true"), v || p.setAttribute(r, "true");
|
|
2275
2325
|
} catch (y) {
|
|
2276
2326
|
console.error("aria-hidden: cannot operate on ", p, y);
|
|
2277
2327
|
}
|
|
@@ -2280,12 +2330,12 @@ var So = function(e) {
|
|
|
2280
2330
|
return h(t), c.clear(), Ke++, function() {
|
|
2281
2331
|
s.forEach(function(d) {
|
|
2282
2332
|
var p = le.get(d) - 1, m = i.get(d) - 1;
|
|
2283
|
-
le.set(d, p), i.set(d, m), p || (
|
|
2284
|
-
}), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(),
|
|
2333
|
+
le.set(d, p), i.set(d, m), p || (Me.has(d) || d.removeAttribute(r), Me.delete(d)), m || d.removeAttribute(n);
|
|
2334
|
+
}), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Te = {});
|
|
2285
2335
|
};
|
|
2286
|
-
},
|
|
2336
|
+
}, ki = function(e, t, n) {
|
|
2287
2337
|
n === void 0 && (n = "data-aria-hidden");
|
|
2288
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
2338
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Ao(e);
|
|
2289
2339
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ro(r, o, n, "aria-hidden")) : function() {
|
|
2290
2340
|
return null;
|
|
2291
2341
|
};
|
|
@@ -2306,16 +2356,16 @@ function pn(e, t) {
|
|
|
2306
2356
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2307
2357
|
return n;
|
|
2308
2358
|
}
|
|
2309
|
-
function
|
|
2359
|
+
function Oo(e, t, n) {
|
|
2310
2360
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
2311
2361
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
2312
2362
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
2313
2363
|
}
|
|
2314
|
-
var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar",
|
|
2364
|
+
var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar", Mo = "with-scroll-bars-hidden", To = "--removed-body-scroll-bar-size";
|
|
2315
2365
|
function Ge(e, t) {
|
|
2316
2366
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2317
2367
|
}
|
|
2318
|
-
function
|
|
2368
|
+
function Lo(e, t) {
|
|
2319
2369
|
var n = In(function() {
|
|
2320
2370
|
return {
|
|
2321
2371
|
// value
|
|
@@ -2336,14 +2386,14 @@ function Mo(e, t) {
|
|
|
2336
2386
|
})[0];
|
|
2337
2387
|
return n.callback = t, n.facade;
|
|
2338
2388
|
}
|
|
2339
|
-
var
|
|
2340
|
-
function
|
|
2341
|
-
var n =
|
|
2389
|
+
var No = typeof window < "u" ? f.useLayoutEffect : f.useEffect, It = /* @__PURE__ */ new WeakMap();
|
|
2390
|
+
function Do(e, t) {
|
|
2391
|
+
var n = Lo(null, function(r) {
|
|
2342
2392
|
return e.forEach(function(o) {
|
|
2343
2393
|
return Ge(o, r);
|
|
2344
2394
|
});
|
|
2345
2395
|
});
|
|
2346
|
-
return
|
|
2396
|
+
return No(function() {
|
|
2347
2397
|
var r = It.get(n);
|
|
2348
2398
|
if (r) {
|
|
2349
2399
|
var o = new Set(r), i = new Set(e), s = n.current;
|
|
@@ -2356,11 +2406,11 @@ function No(e, t) {
|
|
|
2356
2406
|
It.set(n, e);
|
|
2357
2407
|
}, [e]), n;
|
|
2358
2408
|
}
|
|
2359
|
-
function
|
|
2409
|
+
function ko(e) {
|
|
2360
2410
|
return e;
|
|
2361
2411
|
}
|
|
2362
|
-
function
|
|
2363
|
-
t === void 0 && (t =
|
|
2412
|
+
function Fo(e, t) {
|
|
2413
|
+
t === void 0 && (t = ko);
|
|
2364
2414
|
var n = [], r = !1, o = {
|
|
2365
2415
|
read: function() {
|
|
2366
2416
|
if (r)
|
|
@@ -2414,9 +2464,9 @@ function ko(e, t) {
|
|
|
2414
2464
|
};
|
|
2415
2465
|
return o;
|
|
2416
2466
|
}
|
|
2417
|
-
function
|
|
2467
|
+
function Io(e) {
|
|
2418
2468
|
e === void 0 && (e = {});
|
|
2419
|
-
var t =
|
|
2469
|
+
var t = Fo(null);
|
|
2420
2470
|
return t.options = z({ async: !0, ssr: !1 }, e), t;
|
|
2421
2471
|
}
|
|
2422
2472
|
var vn = function(e) {
|
|
@@ -2426,24 +2476,24 @@ var vn = function(e) {
|
|
|
2426
2476
|
var r = t.read();
|
|
2427
2477
|
if (!r)
|
|
2428
2478
|
throw new Error("Sidecar medium not found");
|
|
2429
|
-
return
|
|
2479
|
+
return f.createElement(r, z({}, n));
|
|
2430
2480
|
};
|
|
2431
2481
|
vn.isSideCarExport = !0;
|
|
2432
|
-
function
|
|
2482
|
+
function _o(e, t) {
|
|
2433
2483
|
return e.useMedium(t), vn;
|
|
2434
2484
|
}
|
|
2435
|
-
var gn =
|
|
2436
|
-
}, $e =
|
|
2437
|
-
var n =
|
|
2485
|
+
var gn = Io(), Ze = function() {
|
|
2486
|
+
}, $e = f.forwardRef(function(e, t) {
|
|
2487
|
+
var n = f.useRef(null), r = f.useState({
|
|
2438
2488
|
onScrollCapture: Ze,
|
|
2439
2489
|
onWheelCapture: Ze,
|
|
2440
2490
|
onTouchMoveCapture: Ze
|
|
2441
|
-
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation,
|
|
2442
|
-
return
|
|
2443
|
-
|
|
2491
|
+
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, v = e.inert, u = e.allowPinchZoom, g = e.as, y = g === void 0 ? "div" : g, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = Do([n, t]), C = z(z({}, b), o);
|
|
2492
|
+
return f.createElement(
|
|
2493
|
+
f.Fragment,
|
|
2444
2494
|
null,
|
|
2445
|
-
h &&
|
|
2446
|
-
s ?
|
|
2495
|
+
h && f.createElement(x, { sideCar: gn, removeScrollBar: l, shards: d, noIsolation: m, inert: v, setCallbacks: i, allowPinchZoom: !!u, lockRef: n, gapMode: w }),
|
|
2496
|
+
s ? f.cloneElement(f.Children.only(c), z(z({}, C), { ref: E })) : f.createElement(y, z({}, C, { className: a, ref: E }), c)
|
|
2447
2497
|
);
|
|
2448
2498
|
});
|
|
2449
2499
|
$e.defaultProps = {
|
|
@@ -2459,7 +2509,7 @@ var Wo = function() {
|
|
|
2459
2509
|
if (typeof __webpack_nonce__ < "u")
|
|
2460
2510
|
return __webpack_nonce__;
|
|
2461
2511
|
};
|
|
2462
|
-
function
|
|
2512
|
+
function Bo() {
|
|
2463
2513
|
if (!document)
|
|
2464
2514
|
return null;
|
|
2465
2515
|
var e = document.createElement("style");
|
|
@@ -2467,62 +2517,62 @@ function _o() {
|
|
|
2467
2517
|
var t = Wo();
|
|
2468
2518
|
return t && e.setAttribute("nonce", t), e;
|
|
2469
2519
|
}
|
|
2470
|
-
function
|
|
2520
|
+
function jo(e, t) {
|
|
2471
2521
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2472
2522
|
}
|
|
2473
|
-
function
|
|
2523
|
+
function $o(e) {
|
|
2474
2524
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
2475
2525
|
t.appendChild(e);
|
|
2476
2526
|
}
|
|
2477
|
-
var
|
|
2527
|
+
var Ho = function() {
|
|
2478
2528
|
var e = 0, t = null;
|
|
2479
2529
|
return {
|
|
2480
2530
|
add: function(n) {
|
|
2481
|
-
e == 0 && (t =
|
|
2531
|
+
e == 0 && (t = Bo()) && (jo(t, n), $o(t)), e++;
|
|
2482
2532
|
},
|
|
2483
2533
|
remove: function() {
|
|
2484
2534
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2485
2535
|
}
|
|
2486
2536
|
};
|
|
2487
|
-
},
|
|
2488
|
-
var e =
|
|
2537
|
+
}, Vo = function() {
|
|
2538
|
+
var e = Ho();
|
|
2489
2539
|
return function(t, n) {
|
|
2490
|
-
|
|
2540
|
+
f.useEffect(function() {
|
|
2491
2541
|
return e.add(t), function() {
|
|
2492
2542
|
e.remove();
|
|
2493
2543
|
};
|
|
2494
2544
|
}, [t && n]);
|
|
2495
2545
|
};
|
|
2496
2546
|
}, yn = function() {
|
|
2497
|
-
var e =
|
|
2547
|
+
var e = Vo(), t = function(n) {
|
|
2498
2548
|
var r = n.styles, o = n.dynamic;
|
|
2499
2549
|
return e(r, o), null;
|
|
2500
2550
|
};
|
|
2501
2551
|
return t;
|
|
2502
|
-
},
|
|
2552
|
+
}, zo = {
|
|
2503
2553
|
left: 0,
|
|
2504
2554
|
top: 0,
|
|
2505
2555
|
right: 0,
|
|
2506
2556
|
gap: 0
|
|
2507
2557
|
}, qe = function(e) {
|
|
2508
2558
|
return parseInt(e || "", 10) || 0;
|
|
2509
|
-
},
|
|
2559
|
+
}, Uo = function(e) {
|
|
2510
2560
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2511
2561
|
return [qe(n), qe(r), qe(o)];
|
|
2512
|
-
},
|
|
2562
|
+
}, Yo = function(e) {
|
|
2513
2563
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2514
|
-
return
|
|
2515
|
-
var t =
|
|
2564
|
+
return zo;
|
|
2565
|
+
var t = Uo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2516
2566
|
return {
|
|
2517
2567
|
left: t[0],
|
|
2518
2568
|
top: t[1],
|
|
2519
2569
|
right: t[2],
|
|
2520
2570
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2521
2571
|
};
|
|
2522
|
-
},
|
|
2572
|
+
}, Xo = yn(), he = "data-scroll-locked", Ko = function(e, t, n, r) {
|
|
2523
2573
|
var o = e.left, i = e.top, s = e.right, c = e.gap;
|
|
2524
2574
|
return n === void 0 && (n = "margin"), `
|
|
2525
|
-
.`.concat(
|
|
2575
|
+
.`.concat(Mo, ` {
|
|
2526
2576
|
overflow: hidden `).concat(r, `;
|
|
2527
2577
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
2528
2578
|
}
|
|
@@ -2563,23 +2613,23 @@ var $o = function() {
|
|
|
2563
2613
|
`).concat(To, ": ").concat(c, `px;
|
|
2564
2614
|
}
|
|
2565
2615
|
`);
|
|
2566
|
-
},
|
|
2616
|
+
}, _t = function() {
|
|
2567
2617
|
var e = parseInt(document.body.getAttribute(he) || "0", 10);
|
|
2568
2618
|
return isFinite(e) ? e : 0;
|
|
2569
|
-
},
|
|
2570
|
-
|
|
2571
|
-
return document.body.setAttribute(he, (
|
|
2572
|
-
var e =
|
|
2619
|
+
}, Go = function() {
|
|
2620
|
+
f.useEffect(function() {
|
|
2621
|
+
return document.body.setAttribute(he, (_t() + 1).toString()), function() {
|
|
2622
|
+
var e = _t() - 1;
|
|
2573
2623
|
e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
|
|
2574
2624
|
};
|
|
2575
2625
|
}, []);
|
|
2576
|
-
},
|
|
2626
|
+
}, Zo = function(e) {
|
|
2577
2627
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
2578
|
-
|
|
2579
|
-
var i =
|
|
2580
|
-
return
|
|
2628
|
+
Go();
|
|
2629
|
+
var i = f.useMemo(function() {
|
|
2630
|
+
return Yo(o);
|
|
2581
2631
|
}, [o]);
|
|
2582
|
-
return
|
|
2632
|
+
return f.createElement(Xo, { styles: Ko(i, !t, o, n ? "" : "!important") });
|
|
2583
2633
|
}, nt = !1;
|
|
2584
2634
|
if (typeof window < "u")
|
|
2585
2635
|
try {
|
|
@@ -2592,20 +2642,22 @@ if (typeof window < "u")
|
|
|
2592
2642
|
} catch {
|
|
2593
2643
|
nt = !1;
|
|
2594
2644
|
}
|
|
2595
|
-
var ue = nt ? { passive: !1 } : !1,
|
|
2645
|
+
var ue = nt ? { passive: !1 } : !1, qo = function(e) {
|
|
2596
2646
|
return e.tagName === "TEXTAREA";
|
|
2597
2647
|
}, wn = function(e, t) {
|
|
2648
|
+
if (!(e instanceof Element))
|
|
2649
|
+
return !1;
|
|
2598
2650
|
var n = window.getComputedStyle(e);
|
|
2599
2651
|
return (
|
|
2600
2652
|
// not-not-scrollable
|
|
2601
2653
|
n[t] !== "hidden" && // contains scroll inside self
|
|
2602
|
-
!(n.overflowY === n.overflowX && !
|
|
2654
|
+
!(n.overflowY === n.overflowX && !qo(e) && n[t] === "visible")
|
|
2603
2655
|
);
|
|
2604
|
-
}, qo = function(e) {
|
|
2605
|
-
return wn(e, "overflowY");
|
|
2606
2656
|
}, Qo = function(e) {
|
|
2657
|
+
return wn(e, "overflowY");
|
|
2658
|
+
}, Jo = function(e) {
|
|
2607
2659
|
return wn(e, "overflowX");
|
|
2608
|
-
},
|
|
2660
|
+
}, Wt = function(e, t) {
|
|
2609
2661
|
var n = t.ownerDocument, r = t;
|
|
2610
2662
|
do {
|
|
2611
2663
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
@@ -2618,14 +2670,14 @@ var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
|
|
|
2618
2670
|
r = r.parentNode;
|
|
2619
2671
|
} while (r && r !== n.body);
|
|
2620
2672
|
return !1;
|
|
2621
|
-
},
|
|
2673
|
+
}, ei = function(e) {
|
|
2622
2674
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
2623
2675
|
return [
|
|
2624
2676
|
t,
|
|
2625
2677
|
n,
|
|
2626
2678
|
r
|
|
2627
2679
|
];
|
|
2628
|
-
},
|
|
2680
|
+
}, ti = function(e) {
|
|
2629
2681
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
2630
2682
|
return [
|
|
2631
2683
|
t,
|
|
@@ -2633,16 +2685,16 @@ var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
|
|
|
2633
2685
|
r
|
|
2634
2686
|
];
|
|
2635
2687
|
}, xn = function(e, t) {
|
|
2636
|
-
return e === "v" ?
|
|
2688
|
+
return e === "v" ? Qo(t) : Jo(t);
|
|
2637
2689
|
}, bn = function(e, t) {
|
|
2638
|
-
return e === "v" ?
|
|
2639
|
-
},
|
|
2690
|
+
return e === "v" ? ei(t) : ti(t);
|
|
2691
|
+
}, ni = function(e, t) {
|
|
2640
2692
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2641
|
-
},
|
|
2642
|
-
var i =
|
|
2693
|
+
}, ri = function(e, t, n, r, o) {
|
|
2694
|
+
var i = ni(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
|
|
2643
2695
|
do {
|
|
2644
|
-
var m = bn(e, c),
|
|
2645
|
-
(
|
|
2696
|
+
var m = bn(e, c), v = m[0], u = m[1], g = m[2], y = u - g - i * v;
|
|
2697
|
+
(v || y) && xn(e, c) && (d += y, p += v), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
2646
2698
|
} while (
|
|
2647
2699
|
// portaled content
|
|
2648
2700
|
!a && c !== document.body || // self content
|
|
@@ -2655,108 +2707,108 @@ var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
|
|
|
2655
2707
|
return [e.deltaX, e.deltaY];
|
|
2656
2708
|
}, jt = function(e) {
|
|
2657
2709
|
return e && "current" in e ? e.current : e;
|
|
2658
|
-
},
|
|
2710
|
+
}, oi = function(e, t) {
|
|
2659
2711
|
return e[0] === t[0] && e[1] === t[1];
|
|
2660
|
-
},
|
|
2712
|
+
}, ii = function(e) {
|
|
2661
2713
|
return `
|
|
2662
2714
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
2663
2715
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
2664
2716
|
`);
|
|
2665
|
-
},
|
|
2666
|
-
function
|
|
2667
|
-
var t =
|
|
2668
|
-
|
|
2717
|
+
}, si = 0, fe = [];
|
|
2718
|
+
function ci(e) {
|
|
2719
|
+
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(si++)[0], i = f.useState(yn)[0], s = f.useRef(e);
|
|
2720
|
+
f.useEffect(function() {
|
|
2669
2721
|
s.current = e;
|
|
2670
|
-
}, [e]),
|
|
2722
|
+
}, [e]), f.useEffect(function() {
|
|
2671
2723
|
if (e.inert) {
|
|
2672
2724
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
2673
|
-
var
|
|
2674
|
-
return
|
|
2675
|
-
return
|
|
2725
|
+
var u = Oo([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
|
|
2726
|
+
return u.forEach(function(g) {
|
|
2727
|
+
return g.classList.add("allow-interactivity-".concat(o));
|
|
2676
2728
|
}), function() {
|
|
2677
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
2678
|
-
return
|
|
2729
|
+
document.body.classList.remove("block-interactivity-".concat(o)), u.forEach(function(g) {
|
|
2730
|
+
return g.classList.remove("allow-interactivity-".concat(o));
|
|
2679
2731
|
});
|
|
2680
2732
|
};
|
|
2681
2733
|
}
|
|
2682
2734
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
2683
|
-
var c =
|
|
2684
|
-
if ("touches" in
|
|
2735
|
+
var c = f.useCallback(function(u, g) {
|
|
2736
|
+
if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
|
|
2685
2737
|
return !s.current.allowPinchZoom;
|
|
2686
|
-
var y = Ne(
|
|
2687
|
-
if ("touches" in
|
|
2738
|
+
var y = Ne(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
|
|
2739
|
+
if ("touches" in u && S === "h" && C.type === "range")
|
|
2688
2740
|
return !1;
|
|
2689
|
-
var A =
|
|
2741
|
+
var A = Wt(S, C);
|
|
2690
2742
|
if (!A)
|
|
2691
2743
|
return !0;
|
|
2692
|
-
if (A ? E = S : (E = S === "v" ? "h" : "v", A =
|
|
2744
|
+
if (A ? E = S : (E = S === "v" ? "h" : "v", A = Wt(S, C)), !A)
|
|
2693
2745
|
return !1;
|
|
2694
|
-
if (!r.current && "changedTouches" in
|
|
2746
|
+
if (!r.current && "changedTouches" in u && (b || x) && (r.current = E), !E)
|
|
2695
2747
|
return !0;
|
|
2696
2748
|
var O = r.current || E;
|
|
2697
|
-
return
|
|
2698
|
-
}, []), a =
|
|
2699
|
-
var
|
|
2749
|
+
return ri(O, g, u, O === "h" ? b : x, !0);
|
|
2750
|
+
}, []), a = f.useCallback(function(u) {
|
|
2751
|
+
var g = u;
|
|
2700
2752
|
if (!(!fe.length || fe[fe.length - 1] !== i)) {
|
|
2701
|
-
var y = "deltaY" in
|
|
2702
|
-
return E.name ===
|
|
2753
|
+
var y = "deltaY" in g ? Bt(g) : Ne(g), w = t.current.filter(function(E) {
|
|
2754
|
+
return E.name === g.type && (E.target === g.target || g.target === E.shadowParent) && oi(E.delta, y);
|
|
2703
2755
|
})[0];
|
|
2704
2756
|
if (w && w.should) {
|
|
2705
|
-
|
|
2757
|
+
g.cancelable && g.preventDefault();
|
|
2706
2758
|
return;
|
|
2707
2759
|
}
|
|
2708
2760
|
if (!w) {
|
|
2709
2761
|
var b = (s.current.shards || []).map(jt).filter(Boolean).filter(function(E) {
|
|
2710
|
-
return E.contains(
|
|
2711
|
-
}), x = b.length > 0 ? c(
|
|
2712
|
-
x &&
|
|
2762
|
+
return E.contains(g.target);
|
|
2763
|
+
}), x = b.length > 0 ? c(g, b[0]) : !s.current.noIsolation;
|
|
2764
|
+
x && g.cancelable && g.preventDefault();
|
|
2713
2765
|
}
|
|
2714
2766
|
}
|
|
2715
|
-
}, []), l =
|
|
2716
|
-
var b = { name:
|
|
2767
|
+
}, []), l = f.useCallback(function(u, g, y, w) {
|
|
2768
|
+
var b = { name: u, delta: g, target: y, should: w, shadowParent: ai(y) };
|
|
2717
2769
|
t.current.push(b), setTimeout(function() {
|
|
2718
2770
|
t.current = t.current.filter(function(x) {
|
|
2719
2771
|
return x !== b;
|
|
2720
2772
|
});
|
|
2721
2773
|
}, 1);
|
|
2722
|
-
}, []), h =
|
|
2723
|
-
n.current = Ne(
|
|
2724
|
-
}, []), d =
|
|
2725
|
-
l(
|
|
2726
|
-
}, []), p =
|
|
2727
|
-
l(
|
|
2774
|
+
}, []), h = f.useCallback(function(u) {
|
|
2775
|
+
n.current = Ne(u), r.current = void 0;
|
|
2776
|
+
}, []), d = f.useCallback(function(u) {
|
|
2777
|
+
l(u.type, Bt(u), u.target, c(u, e.lockRef.current));
|
|
2778
|
+
}, []), p = f.useCallback(function(u) {
|
|
2779
|
+
l(u.type, Ne(u), u.target, c(u, e.lockRef.current));
|
|
2728
2780
|
}, []);
|
|
2729
|
-
|
|
2781
|
+
f.useEffect(function() {
|
|
2730
2782
|
return fe.push(i), e.setCallbacks({
|
|
2731
2783
|
onScrollCapture: d,
|
|
2732
2784
|
onWheelCapture: d,
|
|
2733
2785
|
onTouchMoveCapture: p
|
|
2734
2786
|
}), document.addEventListener("wheel", a, ue), document.addEventListener("touchmove", a, ue), document.addEventListener("touchstart", h, ue), function() {
|
|
2735
|
-
fe = fe.filter(function(
|
|
2736
|
-
return
|
|
2787
|
+
fe = fe.filter(function(u) {
|
|
2788
|
+
return u !== i;
|
|
2737
2789
|
}), document.removeEventListener("wheel", a, ue), document.removeEventListener("touchmove", a, ue), document.removeEventListener("touchstart", h, ue);
|
|
2738
2790
|
};
|
|
2739
2791
|
}, []);
|
|
2740
|
-
var m = e.removeScrollBar,
|
|
2741
|
-
return
|
|
2742
|
-
|
|
2792
|
+
var m = e.removeScrollBar, v = e.inert;
|
|
2793
|
+
return f.createElement(
|
|
2794
|
+
f.Fragment,
|
|
2743
2795
|
null,
|
|
2744
|
-
|
|
2745
|
-
m ?
|
|
2796
|
+
v ? f.createElement(i, { styles: ii(o) }) : null,
|
|
2797
|
+
m ? f.createElement(Zo, { gapMode: e.gapMode }) : null
|
|
2746
2798
|
);
|
|
2747
2799
|
}
|
|
2748
|
-
function
|
|
2800
|
+
function ai(e) {
|
|
2749
2801
|
for (var t = null; e !== null; )
|
|
2750
2802
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2751
2803
|
return t;
|
|
2752
2804
|
}
|
|
2753
|
-
const
|
|
2754
|
-
var
|
|
2755
|
-
return
|
|
2805
|
+
const li = _o(gn, ci);
|
|
2806
|
+
var ui = f.forwardRef(function(e, t) {
|
|
2807
|
+
return f.createElement($e, z({}, e, { ref: t, sideCar: li }));
|
|
2756
2808
|
});
|
|
2757
|
-
|
|
2758
|
-
var
|
|
2759
|
-
(e, t) => /* @__PURE__ */
|
|
2809
|
+
ui.classNames = $e.classNames;
|
|
2810
|
+
var fi = "VisuallyHidden", di = f.forwardRef(
|
|
2811
|
+
(e, t) => /* @__PURE__ */ R.jsx(
|
|
2760
2812
|
oe.span,
|
|
2761
2813
|
{
|
|
2762
2814
|
...e,
|
|
@@ -2778,37 +2830,38 @@ var ui = "VisuallyHidden", fi = u.forwardRef(
|
|
|
2778
2830
|
}
|
|
2779
2831
|
)
|
|
2780
2832
|
);
|
|
2781
|
-
|
|
2833
|
+
di.displayName = fi;
|
|
2782
2834
|
export {
|
|
2783
|
-
|
|
2835
|
+
Li as A,
|
|
2784
2836
|
Gn as B,
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2837
|
+
Ni as C,
|
|
2838
|
+
cr as D,
|
|
2839
|
+
hr as F,
|
|
2840
|
+
xi as M,
|
|
2789
2841
|
oe as P,
|
|
2790
|
-
|
|
2842
|
+
ui as R,
|
|
2791
2843
|
be as S,
|
|
2792
|
-
|
|
2793
|
-
|
|
2844
|
+
di as V,
|
|
2845
|
+
Oi as a,
|
|
2794
2846
|
Ve as b,
|
|
2795
|
-
|
|
2847
|
+
Ci as c,
|
|
2796
2848
|
ce as d,
|
|
2797
2849
|
Ee as e,
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2850
|
+
Ai as f,
|
|
2851
|
+
zt as g,
|
|
2852
|
+
Pi as h,
|
|
2853
|
+
ee as i,
|
|
2854
|
+
ki as j,
|
|
2855
|
+
Ri as k,
|
|
2856
|
+
Ei as l,
|
|
2857
|
+
So as m,
|
|
2858
|
+
bi as n,
|
|
2859
|
+
Zn as o,
|
|
2860
|
+
Mi as p,
|
|
2861
|
+
Di as q,
|
|
2862
|
+
Ti as r,
|
|
2863
|
+
Vt as s,
|
|
2864
|
+
er as t,
|
|
2865
|
+
Si as u
|
|
2813
2866
|
};
|
|
2814
|
-
//# sourceMappingURL=index-
|
|
2867
|
+
//# sourceMappingURL=index-Do_BBSIs.js.map
|