react-lib-tools 0.0.50 → 0.0.52
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/{CommonQuestionsRoute-DPuzl4w2.js → CommonQuestionsRoute-B4oSkDKu.js} +2 -2
- package/dist/{CommonQuestionsRoute-DPuzl4w2.js.map → CommonQuestionsRoute-B4oSkDKu.js.map} +1 -1
- package/dist/{CommonQuestionsRoute-CYFQd82m.cjs → CommonQuestionsRoute-C1cnoDUu.cjs} +2 -2
- package/dist/{CommonQuestionsRoute-CYFQd82m.cjs.map → CommonQuestionsRoute-C1cnoDUu.cjs.map} +1 -1
- package/dist/{GettingStartedRoute-CMnctjek.cjs → GettingStartedRoute-BmgT6xvQ.cjs} +2 -2
- package/dist/{GettingStartedRoute-CMnctjek.cjs.map → GettingStartedRoute-BmgT6xvQ.cjs.map} +1 -1
- package/dist/{GettingStartedRoute-DFV91A80.js → GettingStartedRoute-CdyG0b_M.js} +2 -2
- package/dist/{GettingStartedRoute-DFV91A80.js.map → GettingStartedRoute-CdyG0b_M.js.map} +1 -1
- package/dist/{PageNotFound-BMpN0g8H.cjs → PageNotFound-C982mFqz.cjs} +2 -2
- package/dist/{PageNotFound-BMpN0g8H.cjs.map → PageNotFound-C982mFqz.cjs.map} +1 -1
- package/dist/{PageNotFound-5aNFXzpv.js → PageNotFound-DFuJVroY.js} +2 -2
- package/dist/{PageNotFound-5aNFXzpv.js.map → PageNotFound-DFuJVroY.js.map} +1 -1
- package/dist/{SupportRoute-FbQdFnDI.cjs → SupportRoute-DgRhJ6zd.cjs} +2 -2
- package/dist/{SupportRoute-FbQdFnDI.cjs.map → SupportRoute-DgRhJ6zd.cjs.map} +1 -1
- package/dist/{SupportRoute-C_dJql71.js → SupportRoute-zpZt3czS.js} +2 -2
- package/dist/{SupportRoute-C_dJql71.js.map → SupportRoute-zpZt3czS.js.map} +1 -1
- package/dist/{VersionsRoute-DuEBaSI5.js → VersionsRoute-BLU7VqAE.js} +2 -2
- package/dist/{VersionsRoute-DuEBaSI5.js.map → VersionsRoute-BLU7VqAE.js.map} +1 -1
- package/dist/{VersionsRoute-BaS73066.cjs → VersionsRoute-D9AdJV3q.cjs} +2 -2
- package/dist/{VersionsRoute-BaS73066.cjs.map → VersionsRoute-D9AdJV3q.cjs.map} +1 -1
- package/dist/{index-QXhMBEzr.cjs → index-CN7E-dGv.cjs} +5 -5
- package/dist/{index-QXhMBEzr.cjs.map → index-CN7E-dGv.cjs.map} +1 -1
- package/dist/{index-VNirkA-O.js → index-CaRziUeA.js} +617 -597
- package/dist/{index-VNirkA-O.js.map → index-CaRziUeA.js.map} +1 -1
- package/dist/react-lib-tools.cjs +1 -1
- package/dist/react-lib-tools.js +1 -1
- package/package.json +1 -1
- package/scripts/utils/search/crawlPage.ts +13 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as R, jsxs as Y, Fragment as
|
|
2
|
+
import { jsx as R, jsxs as Y, Fragment as ut } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import j, { createContext as le, useContext as te, Component as Ya, createElement as vn, useRef as U, useCallback as Z, useEffect as re, useState as J, useMemo as ce, useLayoutEffect as Gt, forwardRef as Xa, Fragment as _e, isValidElement as
|
|
4
|
+
import j, { createContext as le, useContext as te, Component as Ya, createElement as vn, useRef as U, useCallback as Z, useEffect as re, useState as J, useMemo as ce, useLayoutEffect as Gt, forwardRef as Xa, Fragment as _e, isValidElement as Vr, cloneElement as Li, useId as Ke, useSyncExternalStore as Za, useReducer as Ja, useTransition as Qa, lazy as Mt, startTransition as Eo, use as es } from "react";
|
|
5
5
|
import * as bn from "react-dom";
|
|
6
|
-
import { flushSync as wn, createPortal as
|
|
6
|
+
import { flushSync as wn, createPortal as jr } from "react-dom";
|
|
7
7
|
function ts({
|
|
8
8
|
title: e,
|
|
9
9
|
titleId: t,
|
|
@@ -117,7 +117,7 @@ function cs({
|
|
|
117
117
|
clipRule: "evenodd"
|
|
118
118
|
}));
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const yn = /* @__PURE__ */ m.forwardRef(cs);
|
|
121
121
|
function us({
|
|
122
122
|
title: e,
|
|
123
123
|
titleId: t,
|
|
@@ -230,7 +230,7 @@ var Ro = "popstate";
|
|
|
230
230
|
function ws(e = {}) {
|
|
231
231
|
function t(r, o) {
|
|
232
232
|
let { pathname: i, search: l, hash: a } = r.location;
|
|
233
|
-
return
|
|
233
|
+
return xr(
|
|
234
234
|
"",
|
|
235
235
|
{ pathname: i, search: l, hash: a },
|
|
236
236
|
// state defaults to `null` because `window.history.state` does
|
|
@@ -271,7 +271,7 @@ function $o(e, t) {
|
|
|
271
271
|
idx: t
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function xr(e, t, n = null, r) {
|
|
275
275
|
return {
|
|
276
276
|
pathname: typeof e == "string" ? e : e.pathname,
|
|
277
277
|
search: "",
|
|
@@ -315,7 +315,7 @@ function xs(e, t, n, r = {}) {
|
|
|
315
315
|
}
|
|
316
316
|
function p(v, b) {
|
|
317
317
|
a = "PUSH";
|
|
318
|
-
let y =
|
|
318
|
+
let y = xr(g.location, v, b);
|
|
319
319
|
c = u() + 1;
|
|
320
320
|
let w = $o(y, c), $ = g.createHref(y);
|
|
321
321
|
try {
|
|
@@ -329,7 +329,7 @@ function xs(e, t, n, r = {}) {
|
|
|
329
329
|
}
|
|
330
330
|
function d(v, b) {
|
|
331
331
|
a = "REPLACE";
|
|
332
|
-
let y =
|
|
332
|
+
let y = xr(g.location, v, b);
|
|
333
333
|
c = u();
|
|
334
334
|
let w = $o(y, c), $ = g.createHref(y);
|
|
335
335
|
l.replaceState(w, "", $), i && s && s({ action: a, location: g.location, delta: 0 });
|
|
@@ -599,7 +599,7 @@ function Co(e, t) {
|
|
|
599
599
|
o === ".." ? n.length > 1 && n.pop() : o !== "." && n.push(o);
|
|
600
600
|
}), n.length > 1 ? n.join("/") : "/";
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Xn(e, t, n, r) {
|
|
603
603
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
|
|
604
604
|
r
|
|
605
605
|
)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
@@ -619,13 +619,13 @@ function _i(e, t, n, r = !1) {
|
|
|
619
619
|
let o;
|
|
620
620
|
typeof e == "string" ? o = St(e) : (o = { ...e }, ne(
|
|
621
621
|
!o.pathname || !o.pathname.includes("?"),
|
|
622
|
-
|
|
622
|
+
Xn("?", "pathname", "search", o)
|
|
623
623
|
), ne(
|
|
624
624
|
!o.pathname || !o.pathname.includes("#"),
|
|
625
|
-
|
|
625
|
+
Xn("#", "pathname", "hash", o)
|
|
626
626
|
), ne(
|
|
627
627
|
!o.search || !o.search.includes("#"),
|
|
628
|
-
|
|
628
|
+
Xn("#", "search", "hash", o)
|
|
629
629
|
));
|
|
630
630
|
let i = e === "" || o.pathname === "", l = i ? "/" : o.pathname, a;
|
|
631
631
|
if (l == null)
|
|
@@ -667,8 +667,8 @@ var zs = [
|
|
|
667
667
|
new Set(zs);
|
|
668
668
|
var Ct = m.createContext(null);
|
|
669
669
|
Ct.displayName = "DataRouter";
|
|
670
|
-
var
|
|
671
|
-
|
|
670
|
+
var Tn = m.createContext(null);
|
|
671
|
+
Tn.displayName = "DataRouterState";
|
|
672
672
|
m.createContext(!1);
|
|
673
673
|
var Hi = m.createContext({
|
|
674
674
|
isTransitioning: !1
|
|
@@ -684,10 +684,10 @@ var Ae = m.createContext(
|
|
|
684
684
|
null
|
|
685
685
|
);
|
|
686
686
|
Ae.displayName = "Navigation";
|
|
687
|
-
var
|
|
687
|
+
var qt = m.createContext(
|
|
688
688
|
null
|
|
689
689
|
);
|
|
690
|
-
|
|
690
|
+
qt.displayName = "Location";
|
|
691
691
|
var Ye = m.createContext({
|
|
692
692
|
outlet: null,
|
|
693
693
|
matches: [],
|
|
@@ -696,18 +696,18 @@ var Ye = m.createContext({
|
|
|
696
696
|
Ye.displayName = "Route";
|
|
697
697
|
var Wr = m.createContext(null);
|
|
698
698
|
Wr.displayName = "RouteError";
|
|
699
|
-
function
|
|
699
|
+
function qs(e, { relative: t } = {}) {
|
|
700
700
|
ne(
|
|
701
701
|
kt(),
|
|
702
702
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
703
703
|
// router loaded. We can help them understand how to avoid that.
|
|
704
704
|
"useHref() may be used only in the context of a <Router> component."
|
|
705
705
|
);
|
|
706
|
-
let { basename: n, navigator: r } = m.useContext(Ae), { hash: o, pathname: i, search: l } =
|
|
706
|
+
let { basename: n, navigator: r } = m.useContext(Ae), { hash: o, pathname: i, search: l } = Kt(e, { relative: t }), a = i;
|
|
707
707
|
return n !== "/" && (a = i === "/" ? n : We([n, i])), r.createHref({ pathname: a, search: l, hash: o });
|
|
708
708
|
}
|
|
709
709
|
function kt() {
|
|
710
|
-
return m.useContext(
|
|
710
|
+
return m.useContext(qt) != null;
|
|
711
711
|
}
|
|
712
712
|
function Xe() {
|
|
713
713
|
return ne(
|
|
@@ -715,9 +715,9 @@ function Xe() {
|
|
|
715
715
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
716
716
|
// router loaded. We can help them understand how to avoid that.
|
|
717
717
|
"useLocation() may be used only in the context of a <Router> component."
|
|
718
|
-
), m.useContext(
|
|
718
|
+
), m.useContext(qt).location;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Ks(e) {
|
|
721
721
|
ne(
|
|
722
722
|
kt(),
|
|
723
723
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -777,7 +777,7 @@ function Ys() {
|
|
|
777
777
|
);
|
|
778
778
|
}
|
|
779
779
|
m.createContext(null);
|
|
780
|
-
function
|
|
780
|
+
function Kt(e, { relative: t } = {}) {
|
|
781
781
|
let { matches: n } = m.useContext(Ye), { pathname: r } = Xe(), o = JSON.stringify(Di(n));
|
|
782
782
|
return m.useMemo(
|
|
783
783
|
() => _i(
|
|
@@ -864,7 +864,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
|
|
|
864
864
|
o
|
|
865
865
|
);
|
|
866
866
|
return t && b ? /* @__PURE__ */ m.createElement(
|
|
867
|
-
|
|
867
|
+
qt.Provider,
|
|
868
868
|
{
|
|
869
869
|
value: {
|
|
870
870
|
location: {
|
|
@@ -1024,7 +1024,7 @@ function nc(e) {
|
|
|
1024
1024
|
return ne(t, zr(e)), t;
|
|
1025
1025
|
}
|
|
1026
1026
|
function rc(e) {
|
|
1027
|
-
let t = m.useContext(
|
|
1027
|
+
let t = m.useContext(Tn);
|
|
1028
1028
|
return ne(t, zr(e)), t;
|
|
1029
1029
|
}
|
|
1030
1030
|
function oc(e) {
|
|
@@ -1136,15 +1136,15 @@ function cc({
|
|
|
1136
1136
|
return Le(
|
|
1137
1137
|
h != null,
|
|
1138
1138
|
`<Router basename="${a}"> is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1139
|
-
), h == null ? null : /* @__PURE__ */ m.createElement(Ae.Provider, { value: s }, /* @__PURE__ */ m.createElement(
|
|
1139
|
+
), h == null ? null : /* @__PURE__ */ m.createElement(Ae.Provider, { value: s }, /* @__PURE__ */ m.createElement(qt.Provider, { children: t, value: h }));
|
|
1140
1140
|
}
|
|
1141
1141
|
function uc({
|
|
1142
1142
|
children: e,
|
|
1143
1143
|
location: t
|
|
1144
1144
|
}) {
|
|
1145
|
-
return Xs(
|
|
1145
|
+
return Xs(Er(e), t);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function Er(e, t = []) {
|
|
1148
1148
|
let n = [];
|
|
1149
1149
|
return m.Children.forEach(e, (r, o) => {
|
|
1150
1150
|
if (!m.isValidElement(r))
|
|
@@ -1153,7 +1153,7 @@ function xr(e, t = []) {
|
|
|
1153
1153
|
if (r.type === m.Fragment) {
|
|
1154
1154
|
n.push.apply(
|
|
1155
1155
|
n,
|
|
1156
|
-
|
|
1156
|
+
Er(r.props.children, i)
|
|
1157
1157
|
);
|
|
1158
1158
|
return;
|
|
1159
1159
|
}
|
|
@@ -1183,24 +1183,24 @@ function xr(e, t = []) {
|
|
|
1183
1183
|
handle: r.props.handle,
|
|
1184
1184
|
lazy: r.props.lazy
|
|
1185
1185
|
};
|
|
1186
|
-
r.props.children && (l.children =
|
|
1186
|
+
r.props.children && (l.children = Er(
|
|
1187
1187
|
r.props.children,
|
|
1188
1188
|
i
|
|
1189
1189
|
)), n.push(l);
|
|
1190
1190
|
}), n;
|
|
1191
1191
|
}
|
|
1192
1192
|
var dn = "get", fn = "application/x-www-form-urlencoded";
|
|
1193
|
-
function
|
|
1193
|
+
function On(e) {
|
|
1194
1194
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
1195
1195
|
}
|
|
1196
1196
|
function dc(e) {
|
|
1197
|
-
return
|
|
1197
|
+
return On(e) && e.tagName.toLowerCase() === "button";
|
|
1198
1198
|
}
|
|
1199
1199
|
function fc(e) {
|
|
1200
|
-
return
|
|
1200
|
+
return On(e) && e.tagName.toLowerCase() === "form";
|
|
1201
1201
|
}
|
|
1202
1202
|
function mc(e) {
|
|
1203
|
-
return
|
|
1203
|
+
return On(e) && e.tagName.toLowerCase() === "input";
|
|
1204
1204
|
}
|
|
1205
1205
|
function pc(e) {
|
|
1206
1206
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
@@ -1229,7 +1229,7 @@ var vc = /* @__PURE__ */ new Set([
|
|
|
1229
1229
|
"multipart/form-data",
|
|
1230
1230
|
"text/plain"
|
|
1231
1231
|
]);
|
|
1232
|
-
function
|
|
1232
|
+
function Zn(e) {
|
|
1233
1233
|
return e != null && !vc.has(e) ? (Le(
|
|
1234
1234
|
!1,
|
|
1235
1235
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fn}"`
|
|
@@ -1239,7 +1239,7 @@ function bc(e, t) {
|
|
|
1239
1239
|
let n, r, o, i, l;
|
|
1240
1240
|
if (fc(e)) {
|
|
1241
1241
|
let a = e.getAttribute("action");
|
|
1242
|
-
r = a ? Ge(a, t) : null, n = e.getAttribute("method") || dn, o =
|
|
1242
|
+
r = a ? Ge(a, t) : null, n = e.getAttribute("method") || dn, o = Zn(e.getAttribute("enctype")) || fn, i = new FormData(e);
|
|
1243
1243
|
} else if (dc(e) || mc(e) && (e.type === "submit" || e.type === "image")) {
|
|
1244
1244
|
let a = e.form;
|
|
1245
1245
|
if (a == null)
|
|
@@ -1247,7 +1247,7 @@ function bc(e, t) {
|
|
|
1247
1247
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1248
1248
|
);
|
|
1249
1249
|
let s = e.getAttribute("formaction") || a.getAttribute("action");
|
|
1250
|
-
if (r = s ? Ge(s, t) : null, n = e.getAttribute("formmethod") || a.getAttribute("method") || dn, o =
|
|
1250
|
+
if (r = s ? Ge(s, t) : null, n = e.getAttribute("formmethod") || a.getAttribute("method") || dn, o = Zn(e.getAttribute("formenctype")) || Zn(a.getAttribute("enctype")) || fn, i = new FormData(a, e), !gc()) {
|
|
1251
1251
|
let { name: c, type: u, value: f } = e;
|
|
1252
1252
|
if (u === "image") {
|
|
1253
1253
|
let p = c ? `${c}.` : "";
|
|
@@ -1255,7 +1255,7 @@ function bc(e, t) {
|
|
|
1255
1255
|
} else c && i.append(c, f);
|
|
1256
1256
|
}
|
|
1257
1257
|
} else {
|
|
1258
|
-
if (
|
|
1258
|
+
if (On(e))
|
|
1259
1259
|
throw new Error(
|
|
1260
1260
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1261
1261
|
);
|
|
@@ -1372,7 +1372,7 @@ function Cc(e, t) {
|
|
|
1372
1372
|
return n.has(i) || (n.add(i), r.push({ key: i, link: o })), r;
|
|
1373
1373
|
}, []);
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function qi() {
|
|
1376
1376
|
let e = m.useContext(Ct);
|
|
1377
1377
|
return Gr(
|
|
1378
1378
|
e,
|
|
@@ -1380,23 +1380,23 @@ function Ki() {
|
|
|
1380
1380
|
), e;
|
|
1381
1381
|
}
|
|
1382
1382
|
function kc() {
|
|
1383
|
-
let e = m.useContext(
|
|
1383
|
+
let e = m.useContext(Tn);
|
|
1384
1384
|
return Gr(
|
|
1385
1385
|
e,
|
|
1386
1386
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1387
1387
|
), e;
|
|
1388
1388
|
}
|
|
1389
|
-
var
|
|
1390
|
-
|
|
1391
|
-
function
|
|
1392
|
-
let e = m.useContext(
|
|
1389
|
+
var qr = m.createContext(void 0);
|
|
1390
|
+
qr.displayName = "FrameworkContext";
|
|
1391
|
+
function Ki() {
|
|
1392
|
+
let e = m.useContext(qr);
|
|
1393
1393
|
return Gr(
|
|
1394
1394
|
e,
|
|
1395
1395
|
"You must render this element inside a <HydratedRouter> element"
|
|
1396
1396
|
), e;
|
|
1397
1397
|
}
|
|
1398
1398
|
function Pc(e, t) {
|
|
1399
|
-
let n = m.useContext(
|
|
1399
|
+
let n = m.useContext(qr), [r, o] = m.useState(!1), [i, l] = m.useState(!1), { onFocus: a, onBlur: s, onMouseEnter: c, onMouseLeave: u, onTouchStart: f } = t, p = m.useRef(null);
|
|
1400
1400
|
m.useEffect(() => {
|
|
1401
1401
|
if (e === "render" && l(!0), e === "viewport") {
|
|
1402
1402
|
let g = (b) => {
|
|
@@ -1441,14 +1441,14 @@ function Nt(e, t) {
|
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
1443
|
function Tc({ page: e, ...t }) {
|
|
1444
|
-
let { router: n } =
|
|
1444
|
+
let { router: n } = qi(), r = m.useMemo(
|
|
1445
1445
|
() => Mi(n.routes, e, n.basename),
|
|
1446
1446
|
[n.routes, e, n.basename]
|
|
1447
1447
|
);
|
|
1448
1448
|
return r ? /* @__PURE__ */ m.createElement(Lc, { page: e, matches: r, ...t }) : null;
|
|
1449
1449
|
}
|
|
1450
1450
|
function Oc(e) {
|
|
1451
|
-
let { manifest: t, routeModules: n } =
|
|
1451
|
+
let { manifest: t, routeModules: n } = Ki(), [r, o] = m.useState([]);
|
|
1452
1452
|
return m.useEffect(() => {
|
|
1453
1453
|
let i = !1;
|
|
1454
1454
|
return Ec(e, t, n).then(
|
|
@@ -1465,7 +1465,7 @@ function Lc({
|
|
|
1465
1465
|
matches: t,
|
|
1466
1466
|
...n
|
|
1467
1467
|
}) {
|
|
1468
|
-
let r = Xe(), { manifest: o, routeModules: i } =
|
|
1468
|
+
let r = Xe(), { manifest: o, routeModules: i } = Ki(), { basename: l } = qi(), { loaderData: a, matches: s } = kc(), c = m.useMemo(
|
|
1469
1469
|
() => Po(
|
|
1470
1470
|
e,
|
|
1471
1471
|
t,
|
|
@@ -1586,7 +1586,7 @@ var Xi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Zi = m.forwardRef(
|
|
|
1586
1586
|
`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1587
1587
|
);
|
|
1588
1588
|
}
|
|
1589
|
-
let w =
|
|
1589
|
+
let w = qs(c, { relative: o }), [$, E, k] = Pc(
|
|
1590
1590
|
r,
|
|
1591
1591
|
p
|
|
1592
1592
|
), P = Dc(c, {
|
|
@@ -1632,7 +1632,7 @@ var Nc = m.forwardRef(
|
|
|
1632
1632
|
children: s,
|
|
1633
1633
|
...c
|
|
1634
1634
|
}, u) {
|
|
1635
|
-
let f =
|
|
1635
|
+
let f = Kt(l, { relative: c.relative }), p = Xe(), d = m.useContext(Tn), { navigator: h, basename: g } = m.useContext(Ae), v = d != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1636
1636
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1637
1637
|
jc(f) && a === !0, b = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, y = p.pathname, w = d && d.navigation && d.navigation.location ? d.navigation.location.pathname : null;
|
|
1638
1638
|
n || (y = y.toLowerCase(), w = w ? w.toLowerCase() : null, b = b.toLowerCase()), w && g && (w = Ge(w, g) || w);
|
|
@@ -1726,7 +1726,7 @@ function Dc(e, {
|
|
|
1726
1726
|
viewTransition: l,
|
|
1727
1727
|
unstable_useTransitions: a
|
|
1728
1728
|
} = {}) {
|
|
1729
|
-
let s = Wi(), c = Xe(), u =
|
|
1729
|
+
let s = Wi(), c = Xe(), u = Kt(e, { relative: i });
|
|
1730
1730
|
return m.useCallback(
|
|
1731
1731
|
(f) => {
|
|
1732
1732
|
if (hc(f, t)) {
|
|
@@ -1798,7 +1798,7 @@ function Hc() {
|
|
|
1798
1798
|
function Vc(e, { relative: t } = {}) {
|
|
1799
1799
|
let { basename: n } = m.useContext(Ae), r = m.useContext(Ye);
|
|
1800
1800
|
ne(r, "useFormAction must be used inside a RouteContext");
|
|
1801
|
-
let [o] = r.matches.slice(-1), i = { ...
|
|
1801
|
+
let [o] = r.matches.slice(-1), i = { ...Kt(e || ".", { relative: t }) }, l = Xe();
|
|
1802
1802
|
if (e == null) {
|
|
1803
1803
|
i.search = l.search;
|
|
1804
1804
|
let a = new URLSearchParams(i.search), s = a.getAll("index");
|
|
@@ -1819,20 +1819,20 @@ function jc(e, { relative: t } = {}) {
|
|
|
1819
1819
|
let { basename: r } = Ji(
|
|
1820
1820
|
"useViewTransitionState"
|
|
1821
1821
|
/* useViewTransitionState */
|
|
1822
|
-
), o =
|
|
1822
|
+
), o = Kt(e, { relative: t });
|
|
1823
1823
|
if (!n.isTransitioning)
|
|
1824
1824
|
return !1;
|
|
1825
1825
|
let i = Ge(n.currentLocation.pathname, r) || n.currentLocation.pathname, l = Ge(n.nextLocation.pathname, r) || n.nextLocation.pathname;
|
|
1826
1826
|
return Vt(o.pathname, l) != null || Vt(o.pathname, i) != null;
|
|
1827
1827
|
}
|
|
1828
1828
|
const Wc = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-github", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" })), zc = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ m.createElement("path", { fill: "currentColor", d: "M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z" })), Uc = (e) => /* @__PURE__ */ m.createElement("svg", { width: 50, height: 50, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ m.createElement("rect", { x: 0, y: 0, height: 20, width: 20, fill: "transparent" }), /* @__PURE__ */ m.createElement("circle", { cx: 10, cy: 10, r: 2, fill: "white" }), /* @__PURE__ */ m.createElement("g", { stroke: "white", strokeWidth: 2, fill: "none" }, /* @__PURE__ */ m.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(45, 10, 10)" }), /* @__PURE__ */ m.createElement("ellipse", { cx: 10, cy: 10, rx: 11, ry: 5, transform: "rotate(-45, 10, 10)" }))), Gc = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M433.2 103.1L581.4 253.4C609.1 281.5 609.1 326.5 581.4 354.6L425 512.9C415.7 522.3 400.5 522.4 391.1 513.1C381.7 503.8 381.6 488.6 390.9 479.2L547.3 320.8C556.5 311.5 556.5 296.4 547.3 287.1L399 136.9C389.7 127.5 389.8 112.3 399.2 103C408.6 93.7 423.8 93.8 433.1 103.2zM64.1 293.5L64.1 160C64.1 124.7 92.8 96 128.1 96L261.6 96C278.6 96 294.9 102.7 306.9 114.7L450.9 258.7C475.9 283.7 475.9 324.2 450.9 349.2L317.4 482.7C292.4 507.7 251.9 507.7 226.9 482.7L82.9 338.7C70.9 326.7 64.2 310.4 64.2 293.4zM208.1 208C208.1 190.3 193.8 176 176.1 176C158.4 176 144.1 190.3 144.1 208C144.1 225.7 158.4 240 176.1 240C193.8 240 208.1 225.7 208.1 208z" })), Qi = le(null);
|
|
1829
|
-
function
|
|
1829
|
+
function qc(e, t = "Assertion error") {
|
|
1830
1830
|
if (!e)
|
|
1831
1831
|
throw Error(t);
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Ln() {
|
|
1834
1834
|
const e = te(Qi);
|
|
1835
|
-
return
|
|
1835
|
+
return qc(e, "App must be rendered within a LibraryContextProvider"), e;
|
|
1836
1836
|
}
|
|
1837
1837
|
function el(e) {
|
|
1838
1838
|
var t, n, r = "";
|
|
@@ -1843,7 +1843,7 @@ function el(e) {
|
|
|
1843
1843
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1844
1844
|
return r;
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function Kc() {
|
|
1847
1847
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = el(e)) && (r && (r += " "), r += t);
|
|
1848
1848
|
return r;
|
|
1849
1849
|
}
|
|
@@ -1861,7 +1861,7 @@ const Yc = (e, t) => {
|
|
|
1861
1861
|
nextPart: e,
|
|
1862
1862
|
validators: t,
|
|
1863
1863
|
classGroupId: n
|
|
1864
|
-
}),
|
|
1864
|
+
}), xn = "-", To = [], Zc = "arbitrary..", Jc = (e) => {
|
|
1865
1865
|
const t = eu(e), {
|
|
1866
1866
|
conflictingClassGroups: n,
|
|
1867
1867
|
conflictingClassGroupModifiers: r
|
|
@@ -1870,7 +1870,7 @@ const Yc = (e, t) => {
|
|
|
1870
1870
|
getClassGroupId: (l) => {
|
|
1871
1871
|
if (l.startsWith("[") && l.endsWith("]"))
|
|
1872
1872
|
return Qc(l);
|
|
1873
|
-
const a = l.split(
|
|
1873
|
+
const a = l.split(xn), s = a[0] === "" && a.length > 1 ? 1 : 0;
|
|
1874
1874
|
return nl(a, s, t);
|
|
1875
1875
|
},
|
|
1876
1876
|
getConflictingClassGroupIds: (l, a) => {
|
|
@@ -1892,7 +1892,7 @@ const Yc = (e, t) => {
|
|
|
1892
1892
|
const l = n.validators;
|
|
1893
1893
|
if (l === null)
|
|
1894
1894
|
return;
|
|
1895
|
-
const a = t === 0 ? e.join(
|
|
1895
|
+
const a = t === 0 ? e.join(xn) : e.slice(t).join(xn), s = l.length;
|
|
1896
1896
|
for (let c = 0; c < s; c++) {
|
|
1897
1897
|
const u = l[c];
|
|
1898
1898
|
if (u.validator(a))
|
|
@@ -1911,10 +1911,10 @@ const Yc = (e, t) => {
|
|
|
1911
1911
|
const n = tl();
|
|
1912
1912
|
for (const r in e) {
|
|
1913
1913
|
const o = e[r];
|
|
1914
|
-
|
|
1914
|
+
Kr(o, n, r, t);
|
|
1915
1915
|
}
|
|
1916
1916
|
return n;
|
|
1917
|
-
},
|
|
1917
|
+
}, Kr = (e, t, n, r) => {
|
|
1918
1918
|
const o = e.length;
|
|
1919
1919
|
for (let i = 0; i < o; i++) {
|
|
1920
1920
|
const l = e[i];
|
|
@@ -1935,7 +1935,7 @@ const Yc = (e, t) => {
|
|
|
1935
1935
|
r.classGroupId = n;
|
|
1936
1936
|
}, ou = (e, t, n, r) => {
|
|
1937
1937
|
if (lu(e)) {
|
|
1938
|
-
|
|
1938
|
+
Kr(e(r), t, n, r);
|
|
1939
1939
|
return;
|
|
1940
1940
|
}
|
|
1941
1941
|
t.validators === null && (t.validators = []), t.validators.push(Xc(n, e));
|
|
@@ -1943,11 +1943,11 @@ const Yc = (e, t) => {
|
|
|
1943
1943
|
const o = Object.entries(e), i = o.length;
|
|
1944
1944
|
for (let l = 0; l < i; l++) {
|
|
1945
1945
|
const [a, s] = o[l];
|
|
1946
|
-
|
|
1946
|
+
Kr(s, rl(t, a), n, r);
|
|
1947
1947
|
}
|
|
1948
1948
|
}, rl = (e, t) => {
|
|
1949
1949
|
let n = e;
|
|
1950
|
-
const r = t.split(
|
|
1950
|
+
const r = t.split(xn), o = r.length;
|
|
1951
1951
|
for (let i = 0; i < o; i++) {
|
|
1952
1952
|
const l = r[i];
|
|
1953
1953
|
let a = n.nextPart.get(l);
|
|
@@ -1978,7 +1978,7 @@ const Yc = (e, t) => {
|
|
|
1978
1978
|
i in n ? n[i] = l : o(i, l);
|
|
1979
1979
|
}
|
|
1980
1980
|
};
|
|
1981
|
-
},
|
|
1981
|
+
}, Rr = "!", Oo = ":", su = [], Lo = (e, t, n, r, o) => ({
|
|
1982
1982
|
modifiers: e,
|
|
1983
1983
|
hasImportantModifier: t,
|
|
1984
1984
|
baseClassName: n,
|
|
@@ -2009,12 +2009,12 @@ const Yc = (e, t) => {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
const f = i.length === 0 ? o : o.slice(s);
|
|
2011
2011
|
let p = f, d = !1;
|
|
2012
|
-
f.endsWith(
|
|
2012
|
+
f.endsWith(Rr) ? (p = f.slice(0, -1), d = !0) : (
|
|
2013
2013
|
/**
|
|
2014
2014
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
2015
2015
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
2016
2016
|
*/
|
|
2017
|
-
f.startsWith(
|
|
2017
|
+
f.startsWith(Rr) && (p = f.slice(1), d = !0)
|
|
2018
2018
|
);
|
|
2019
2019
|
const h = c && c > s ? c - s : void 0;
|
|
2020
2020
|
return Lo(i, d, p, h);
|
|
@@ -2081,7 +2081,7 @@ const Yc = (e, t) => {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
v = !1;
|
|
2083
2083
|
}
|
|
2084
|
-
const y = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), w = d ? y +
|
|
2084
|
+
const y = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), w = d ? y + Rr : y, $ = w + b;
|
|
2085
2085
|
if (l.indexOf($) > -1)
|
|
2086
2086
|
continue;
|
|
2087
2087
|
l.push($);
|
|
@@ -2121,12 +2121,12 @@ const Yc = (e, t) => {
|
|
|
2121
2121
|
}, gu = [], ue = (e) => {
|
|
2122
2122
|
const t = (n) => n[e] || gu;
|
|
2123
2123
|
return t.isThemeGetter = !0, t;
|
|
2124
|
-
}, il = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ll = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vu = /^\d+\/\d+$/, bu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, yu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Eu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
2124
|
+
}, il = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ll = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vu = /^\d+\/\d+$/, bu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, yu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Eu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, wt = (e) => vu.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Qe = (e) => !!e && Number.isInteger(Number(e)), Jn = (e) => e.endsWith("%") && G(e.slice(0, -1)), Ve = (e) => bu.test(e), Ru = () => !0, $u = (e) => (
|
|
2125
2125
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2126
2126
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2127
2127
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2128
2128
|
wu.test(e) && !yu.test(e)
|
|
2129
|
-
), al = () => !1, Su = (e) => xu.test(e), Cu = (e) => Eu.test(e), ku = (e) => !N(e) && !F(e), Pu = (e) => Pt(e, ul, al), N = (e) => il.test(e), lt = (e) => Pt(e, dl, $u),
|
|
2129
|
+
), al = () => !1, Su = (e) => xu.test(e), Cu = (e) => Eu.test(e), ku = (e) => !N(e) && !F(e), Pu = (e) => Pt(e, ul, al), N = (e) => il.test(e), lt = (e) => Pt(e, dl, $u), Qn = (e) => Pt(e, Mu, G), Ao = (e) => Pt(e, sl, al), Tu = (e) => Pt(e, cl, Cu), tn = (e) => Pt(e, fl, Su), F = (e) => ll.test(e), Ft = (e) => Tt(e, dl), Ou = (e) => Tt(e, Nu), Mo = (e) => Tt(e, sl), Lu = (e) => Tt(e, ul), Au = (e) => Tt(e, cl), nn = (e) => Tt(e, fl, !0), Pt = (e, t, n) => {
|
|
2130
2130
|
const r = il.exec(e);
|
|
2131
2131
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
2132
2132
|
}, Tt = (e, t, n = !1) => {
|
|
@@ -2151,15 +2151,15 @@ const Yc = (e, t) => {
|
|
|
2151
2151
|
"bottom-left",
|
|
2152
2152
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2153
2153
|
"left-bottom"
|
|
2154
|
-
], E = () => [...$(), F, N], k = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], C = () => [F, N, s], M = () => [
|
|
2154
|
+
], E = () => [...$(), F, N], k = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], C = () => [F, N, s], M = () => [wt, "full", "auto", ...C()], S = () => [Qe, "none", "subgrid", F, N], I = () => ["auto", {
|
|
2155
2155
|
span: ["full", Qe, F, N]
|
|
2156
|
-
}, Qe, F, N], W = () => [Qe, "auto", F, N], z = () => ["auto", "min", "max", "fr", F, N], T = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], A = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...C()], O = () => [
|
|
2156
|
+
}, Qe, F, N], W = () => [Qe, "auto", F, N], z = () => ["auto", "min", "max", "fr", F, N], T = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], A = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...C()], O = () => [wt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], x = () => [e, F, N], L = () => [...$(), Mo, Ao, {
|
|
2157
2157
|
position: [F, N]
|
|
2158
2158
|
}], V = () => ["no-repeat", {
|
|
2159
2159
|
repeat: ["", "x", "y", "space", "round"]
|
|
2160
2160
|
}], ee = () => ["auto", "cover", "contain", Lu, Pu, {
|
|
2161
2161
|
size: [F, N]
|
|
2162
|
-
}], B = () => [
|
|
2162
|
+
}], B = () => [Jn, Ft, lt], D = () => [
|
|
2163
2163
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2164
2164
|
"",
|
|
2165
2165
|
"none",
|
|
@@ -2167,14 +2167,14 @@ const Yc = (e, t) => {
|
|
|
2167
2167
|
c,
|
|
2168
2168
|
F,
|
|
2169
2169
|
N
|
|
2170
|
-
], ae = () => ["", G, Ft, lt], Q = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
2170
|
+
], ae = () => ["", G, Ft, lt], Q = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [G, Jn, Mo, Ao], Ee = () => [
|
|
2171
2171
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2172
2172
|
"",
|
|
2173
2173
|
"none",
|
|
2174
2174
|
h,
|
|
2175
2175
|
F,
|
|
2176
2176
|
N
|
|
2177
|
-
], we = () => ["none", G, F, N],
|
|
2177
|
+
], we = () => ["none", G, F, N], vt = () => ["none", G, F, N], At = () => [G, F, N], bt = () => [wt, "full", ...C()];
|
|
2178
2178
|
return {
|
|
2179
2179
|
cacheSize: 500,
|
|
2180
2180
|
theme: {
|
|
@@ -2207,7 +2207,7 @@ const Yc = (e, t) => {
|
|
|
2207
2207
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2208
2208
|
*/
|
|
2209
2209
|
aspect: [{
|
|
2210
|
-
aspect: ["auto", "square",
|
|
2210
|
+
aspect: ["auto", "square", wt, N, F, v]
|
|
2211
2211
|
}],
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Container
|
|
@@ -2430,7 +2430,7 @@ const Yc = (e, t) => {
|
|
|
2430
2430
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
2431
2431
|
*/
|
|
2432
2432
|
basis: [{
|
|
2433
|
-
basis: [
|
|
2433
|
+
basis: [wt, "full", "auto", a, ...C()]
|
|
2434
2434
|
}],
|
|
2435
2435
|
/**
|
|
2436
2436
|
* Flex Direction
|
|
@@ -2451,7 +2451,7 @@ const Yc = (e, t) => {
|
|
|
2451
2451
|
* @see https://tailwindcss.com/docs/flex
|
|
2452
2452
|
*/
|
|
2453
2453
|
flex: [{
|
|
2454
|
-
flex: [G,
|
|
2454
|
+
flex: [G, wt, "auto", "initial", "none", N]
|
|
2455
2455
|
}],
|
|
2456
2456
|
/**
|
|
2457
2457
|
* Flex Grow
|
|
@@ -2884,14 +2884,14 @@ const Yc = (e, t) => {
|
|
|
2884
2884
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2885
2885
|
*/
|
|
2886
2886
|
"font-weight": [{
|
|
2887
|
-
font: [r, F,
|
|
2887
|
+
font: [r, F, Qn]
|
|
2888
2888
|
}],
|
|
2889
2889
|
/**
|
|
2890
2890
|
* Font Stretch
|
|
2891
2891
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2892
2892
|
*/
|
|
2893
2893
|
"font-stretch": [{
|
|
2894
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
2894
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Jn, N]
|
|
2895
2895
|
}],
|
|
2896
2896
|
/**
|
|
2897
2897
|
* Font Family
|
|
@@ -2942,7 +2942,7 @@ const Yc = (e, t) => {
|
|
|
2942
2942
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2943
2943
|
*/
|
|
2944
2944
|
"line-clamp": [{
|
|
2945
|
-
"line-clamp": [G, "none", F,
|
|
2945
|
+
"line-clamp": [G, "none", F, Qn]
|
|
2946
2946
|
}],
|
|
2947
2947
|
/**
|
|
2948
2948
|
* Line Height
|
|
@@ -3659,10 +3659,10 @@ const Yc = (e, t) => {
|
|
|
3659
3659
|
"mask-linear": [G]
|
|
3660
3660
|
}],
|
|
3661
3661
|
"mask-image-linear-from-pos": [{
|
|
3662
|
-
"mask-linear-from":
|
|
3662
|
+
"mask-linear-from": K()
|
|
3663
3663
|
}],
|
|
3664
3664
|
"mask-image-linear-to-pos": [{
|
|
3665
|
-
"mask-linear-to":
|
|
3665
|
+
"mask-linear-to": K()
|
|
3666
3666
|
}],
|
|
3667
3667
|
"mask-image-linear-from-color": [{
|
|
3668
3668
|
"mask-linear-from": x()
|
|
@@ -3671,10 +3671,10 @@ const Yc = (e, t) => {
|
|
|
3671
3671
|
"mask-linear-to": x()
|
|
3672
3672
|
}],
|
|
3673
3673
|
"mask-image-t-from-pos": [{
|
|
3674
|
-
"mask-t-from":
|
|
3674
|
+
"mask-t-from": K()
|
|
3675
3675
|
}],
|
|
3676
3676
|
"mask-image-t-to-pos": [{
|
|
3677
|
-
"mask-t-to":
|
|
3677
|
+
"mask-t-to": K()
|
|
3678
3678
|
}],
|
|
3679
3679
|
"mask-image-t-from-color": [{
|
|
3680
3680
|
"mask-t-from": x()
|
|
@@ -3683,10 +3683,10 @@ const Yc = (e, t) => {
|
|
|
3683
3683
|
"mask-t-to": x()
|
|
3684
3684
|
}],
|
|
3685
3685
|
"mask-image-r-from-pos": [{
|
|
3686
|
-
"mask-r-from":
|
|
3686
|
+
"mask-r-from": K()
|
|
3687
3687
|
}],
|
|
3688
3688
|
"mask-image-r-to-pos": [{
|
|
3689
|
-
"mask-r-to":
|
|
3689
|
+
"mask-r-to": K()
|
|
3690
3690
|
}],
|
|
3691
3691
|
"mask-image-r-from-color": [{
|
|
3692
3692
|
"mask-r-from": x()
|
|
@@ -3695,10 +3695,10 @@ const Yc = (e, t) => {
|
|
|
3695
3695
|
"mask-r-to": x()
|
|
3696
3696
|
}],
|
|
3697
3697
|
"mask-image-b-from-pos": [{
|
|
3698
|
-
"mask-b-from":
|
|
3698
|
+
"mask-b-from": K()
|
|
3699
3699
|
}],
|
|
3700
3700
|
"mask-image-b-to-pos": [{
|
|
3701
|
-
"mask-b-to":
|
|
3701
|
+
"mask-b-to": K()
|
|
3702
3702
|
}],
|
|
3703
3703
|
"mask-image-b-from-color": [{
|
|
3704
3704
|
"mask-b-from": x()
|
|
@@ -3707,10 +3707,10 @@ const Yc = (e, t) => {
|
|
|
3707
3707
|
"mask-b-to": x()
|
|
3708
3708
|
}],
|
|
3709
3709
|
"mask-image-l-from-pos": [{
|
|
3710
|
-
"mask-l-from":
|
|
3710
|
+
"mask-l-from": K()
|
|
3711
3711
|
}],
|
|
3712
3712
|
"mask-image-l-to-pos": [{
|
|
3713
|
-
"mask-l-to":
|
|
3713
|
+
"mask-l-to": K()
|
|
3714
3714
|
}],
|
|
3715
3715
|
"mask-image-l-from-color": [{
|
|
3716
3716
|
"mask-l-from": x()
|
|
@@ -3719,10 +3719,10 @@ const Yc = (e, t) => {
|
|
|
3719
3719
|
"mask-l-to": x()
|
|
3720
3720
|
}],
|
|
3721
3721
|
"mask-image-x-from-pos": [{
|
|
3722
|
-
"mask-x-from":
|
|
3722
|
+
"mask-x-from": K()
|
|
3723
3723
|
}],
|
|
3724
3724
|
"mask-image-x-to-pos": [{
|
|
3725
|
-
"mask-x-to":
|
|
3725
|
+
"mask-x-to": K()
|
|
3726
3726
|
}],
|
|
3727
3727
|
"mask-image-x-from-color": [{
|
|
3728
3728
|
"mask-x-from": x()
|
|
@@ -3731,10 +3731,10 @@ const Yc = (e, t) => {
|
|
|
3731
3731
|
"mask-x-to": x()
|
|
3732
3732
|
}],
|
|
3733
3733
|
"mask-image-y-from-pos": [{
|
|
3734
|
-
"mask-y-from":
|
|
3734
|
+
"mask-y-from": K()
|
|
3735
3735
|
}],
|
|
3736
3736
|
"mask-image-y-to-pos": [{
|
|
3737
|
-
"mask-y-to":
|
|
3737
|
+
"mask-y-to": K()
|
|
3738
3738
|
}],
|
|
3739
3739
|
"mask-image-y-from-color": [{
|
|
3740
3740
|
"mask-y-from": x()
|
|
@@ -3746,10 +3746,10 @@ const Yc = (e, t) => {
|
|
|
3746
3746
|
"mask-radial": [F, N]
|
|
3747
3747
|
}],
|
|
3748
3748
|
"mask-image-radial-from-pos": [{
|
|
3749
|
-
"mask-radial-from":
|
|
3749
|
+
"mask-radial-from": K()
|
|
3750
3750
|
}],
|
|
3751
3751
|
"mask-image-radial-to-pos": [{
|
|
3752
|
-
"mask-radial-to":
|
|
3752
|
+
"mask-radial-to": K()
|
|
3753
3753
|
}],
|
|
3754
3754
|
"mask-image-radial-from-color": [{
|
|
3755
3755
|
"mask-radial-from": x()
|
|
@@ -3773,10 +3773,10 @@ const Yc = (e, t) => {
|
|
|
3773
3773
|
"mask-conic": [G]
|
|
3774
3774
|
}],
|
|
3775
3775
|
"mask-image-conic-from-pos": [{
|
|
3776
|
-
"mask-conic-from":
|
|
3776
|
+
"mask-conic-from": K()
|
|
3777
3777
|
}],
|
|
3778
3778
|
"mask-image-conic-to-pos": [{
|
|
3779
|
-
"mask-conic-to":
|
|
3779
|
+
"mask-conic-to": K()
|
|
3780
3780
|
}],
|
|
3781
3781
|
"mask-image-conic-from-color": [{
|
|
3782
3782
|
"mask-conic-from": x()
|
|
@@ -4149,28 +4149,28 @@ const Yc = (e, t) => {
|
|
|
4149
4149
|
* @see https://tailwindcss.com/docs/scale
|
|
4150
4150
|
*/
|
|
4151
4151
|
scale: [{
|
|
4152
|
-
scale:
|
|
4152
|
+
scale: vt()
|
|
4153
4153
|
}],
|
|
4154
4154
|
/**
|
|
4155
4155
|
* Scale X
|
|
4156
4156
|
* @see https://tailwindcss.com/docs/scale
|
|
4157
4157
|
*/
|
|
4158
4158
|
"scale-x": [{
|
|
4159
|
-
"scale-x":
|
|
4159
|
+
"scale-x": vt()
|
|
4160
4160
|
}],
|
|
4161
4161
|
/**
|
|
4162
4162
|
* Scale Y
|
|
4163
4163
|
* @see https://tailwindcss.com/docs/scale
|
|
4164
4164
|
*/
|
|
4165
4165
|
"scale-y": [{
|
|
4166
|
-
"scale-y":
|
|
4166
|
+
"scale-y": vt()
|
|
4167
4167
|
}],
|
|
4168
4168
|
/**
|
|
4169
4169
|
* Scale Z
|
|
4170
4170
|
* @see https://tailwindcss.com/docs/scale
|
|
4171
4171
|
*/
|
|
4172
4172
|
"scale-z": [{
|
|
4173
|
-
"scale-z":
|
|
4173
|
+
"scale-z": vt()
|
|
4174
4174
|
}],
|
|
4175
4175
|
/**
|
|
4176
4176
|
* Scale 3D
|
|
@@ -4224,28 +4224,28 @@ const Yc = (e, t) => {
|
|
|
4224
4224
|
* @see https://tailwindcss.com/docs/translate
|
|
4225
4225
|
*/
|
|
4226
4226
|
translate: [{
|
|
4227
|
-
translate:
|
|
4227
|
+
translate: bt()
|
|
4228
4228
|
}],
|
|
4229
4229
|
/**
|
|
4230
4230
|
* Translate X
|
|
4231
4231
|
* @see https://tailwindcss.com/docs/translate
|
|
4232
4232
|
*/
|
|
4233
4233
|
"translate-x": [{
|
|
4234
|
-
"translate-x":
|
|
4234
|
+
"translate-x": bt()
|
|
4235
4235
|
}],
|
|
4236
4236
|
/**
|
|
4237
4237
|
* Translate Y
|
|
4238
4238
|
* @see https://tailwindcss.com/docs/translate
|
|
4239
4239
|
*/
|
|
4240
4240
|
"translate-y": [{
|
|
4241
|
-
"translate-y":
|
|
4241
|
+
"translate-y": bt()
|
|
4242
4242
|
}],
|
|
4243
4243
|
/**
|
|
4244
4244
|
* Translate Z
|
|
4245
4245
|
* @see https://tailwindcss.com/docs/translate
|
|
4246
4246
|
*/
|
|
4247
4247
|
"translate-z": [{
|
|
4248
|
-
"translate-z":
|
|
4248
|
+
"translate-z": bt()
|
|
4249
4249
|
}],
|
|
4250
4250
|
/**
|
|
4251
4251
|
* Translate None
|
|
@@ -4527,7 +4527,7 @@ const Yc = (e, t) => {
|
|
|
4527
4527
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4528
4528
|
*/
|
|
4529
4529
|
"stroke-w": [{
|
|
4530
|
-
stroke: [G, Ft, lt,
|
|
4530
|
+
stroke: [G, Ft, lt, Qn]
|
|
4531
4531
|
}],
|
|
4532
4532
|
/**
|
|
4533
4533
|
* Stroke
|
|
@@ -4604,7 +4604,7 @@ const Yc = (e, t) => {
|
|
|
4604
4604
|
};
|
|
4605
4605
|
}, Iu = /* @__PURE__ */ hu(Fu);
|
|
4606
4606
|
function fe(...e) {
|
|
4607
|
-
return Iu(
|
|
4607
|
+
return Iu(Kc(e));
|
|
4608
4608
|
}
|
|
4609
4609
|
function Pe({
|
|
4610
4610
|
align: e,
|
|
@@ -4666,13 +4666,13 @@ function Pe({
|
|
|
4666
4666
|
}
|
|
4667
4667
|
);
|
|
4668
4668
|
}
|
|
4669
|
-
const Du = le(null),
|
|
4669
|
+
const Du = le(null), er = {
|
|
4670
4670
|
didCatch: !1,
|
|
4671
4671
|
error: null
|
|
4672
4672
|
};
|
|
4673
4673
|
let _u = class extends Ya {
|
|
4674
4674
|
constructor(t) {
|
|
4675
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
4675
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = er;
|
|
4676
4676
|
}
|
|
4677
4677
|
static getDerivedStateFromError(t) {
|
|
4678
4678
|
return {
|
|
@@ -4690,7 +4690,7 @@ let _u = class extends Ya {
|
|
|
4690
4690
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
4691
4691
|
args: i,
|
|
4692
4692
|
reason: "imperative-api"
|
|
4693
|
-
}), this.setState(
|
|
4693
|
+
}), this.setState(er);
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
4696
|
componentDidCatch(t, n) {
|
|
@@ -4709,7 +4709,7 @@ let _u = class extends Ya {
|
|
|
4709
4709
|
next: o,
|
|
4710
4710
|
prev: t.resetKeys,
|
|
4711
4711
|
reason: "keys"
|
|
4712
|
-
}), this.setState(
|
|
4712
|
+
}), this.setState(er);
|
|
4713
4713
|
}
|
|
4714
4714
|
}
|
|
4715
4715
|
render() {
|
|
@@ -4800,8 +4800,8 @@ function Hu(e, t) {
|
|
|
4800
4800
|
}
|
|
4801
4801
|
const pl = typeof document < "u" ? j.useLayoutEffect : () => {
|
|
4802
4802
|
};
|
|
4803
|
-
var
|
|
4804
|
-
const Vu = (
|
|
4803
|
+
var tr;
|
|
4804
|
+
const Vu = (tr = j.useInsertionEffect) !== null && tr !== void 0 ? tr : pl;
|
|
4805
4805
|
function ju(e) {
|
|
4806
4806
|
const t = U(null);
|
|
4807
4807
|
return Vu(() => {
|
|
@@ -4837,7 +4837,7 @@ function hl(e, t) {
|
|
|
4837
4837
|
}
|
|
4838
4838
|
return !1;
|
|
4839
4839
|
}
|
|
4840
|
-
const
|
|
4840
|
+
const $r = (e = document) => {
|
|
4841
4841
|
var t;
|
|
4842
4842
|
if (!Yr()) return e.activeElement;
|
|
4843
4843
|
let n = e.activeElement;
|
|
@@ -4847,7 +4847,7 @@ const Rr = (e = document) => {
|
|
|
4847
4847
|
function gl(e) {
|
|
4848
4848
|
return Yr() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
|
|
4849
4849
|
}
|
|
4850
|
-
function
|
|
4850
|
+
function An(e) {
|
|
4851
4851
|
var t;
|
|
4852
4852
|
if (typeof window > "u" || window.navigator == null) return !1;
|
|
4853
4853
|
let n = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
|
|
@@ -4866,25 +4866,25 @@ const Zr = Ze(function() {
|
|
|
4866
4866
|
return Xr(/^Mac/i);
|
|
4867
4867
|
}), Gu = Ze(function() {
|
|
4868
4868
|
return Xr(/^iPhone/i);
|
|
4869
|
-
}),
|
|
4869
|
+
}), qu = Ze(function() {
|
|
4870
4870
|
return Xr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
4871
4871
|
Zr() && navigator.maxTouchPoints > 1;
|
|
4872
|
-
}),
|
|
4873
|
-
return Gu() ||
|
|
4872
|
+
}), Ku = Ze(function() {
|
|
4873
|
+
return Gu() || qu();
|
|
4874
4874
|
});
|
|
4875
4875
|
Ze(function() {
|
|
4876
|
-
return Zr() ||
|
|
4876
|
+
return Zr() || Ku();
|
|
4877
4877
|
});
|
|
4878
4878
|
Ze(function() {
|
|
4879
|
-
return
|
|
4879
|
+
return An(/AppleWebKit/i) && !Yu();
|
|
4880
4880
|
});
|
|
4881
4881
|
const Yu = Ze(function() {
|
|
4882
|
-
return
|
|
4882
|
+
return An(/Chrome/i);
|
|
4883
4883
|
}), Xu = Ze(function() {
|
|
4884
|
-
return
|
|
4884
|
+
return An(/Android/i);
|
|
4885
4885
|
});
|
|
4886
4886
|
Ze(function() {
|
|
4887
|
-
return
|
|
4887
|
+
return An(/Firefox/i);
|
|
4888
4888
|
});
|
|
4889
4889
|
function vl() {
|
|
4890
4890
|
let e = U(/* @__PURE__ */ new Map()), t = Z((o, i, l, a) => {
|
|
@@ -4980,39 +4980,39 @@ function wl(e) {
|
|
|
4980
4980
|
n
|
|
4981
4981
|
]);
|
|
4982
4982
|
}
|
|
4983
|
-
let Qu = !1, Yt = null,
|
|
4983
|
+
let Qu = !1, Yt = null, Sr = /* @__PURE__ */ new Set(), _t = /* @__PURE__ */ new Map(), dt = !1, Cr = !1;
|
|
4984
4984
|
const ed = {
|
|
4985
4985
|
Tab: !0,
|
|
4986
4986
|
Escape: !0
|
|
4987
4987
|
};
|
|
4988
4988
|
function Jr(e, t) {
|
|
4989
|
-
for (let n of
|
|
4989
|
+
for (let n of Sr) n(e, t);
|
|
4990
4990
|
}
|
|
4991
4991
|
function td(e) {
|
|
4992
4992
|
return !(e.metaKey || !Zr() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
4993
4993
|
}
|
|
4994
|
-
function
|
|
4995
|
-
|
|
4994
|
+
function En(e) {
|
|
4995
|
+
dt = !0, td(e) && (Yt = "keyboard", Jr("keyboard", e));
|
|
4996
4996
|
}
|
|
4997
4997
|
function ke(e) {
|
|
4998
|
-
Yt = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (
|
|
4998
|
+
Yt = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (dt = !0, Jr("pointer", e));
|
|
4999
4999
|
}
|
|
5000
5000
|
function yl(e) {
|
|
5001
|
-
Zu(e) && (
|
|
5001
|
+
Zu(e) && (dt = !0, Yt = "virtual");
|
|
5002
5002
|
}
|
|
5003
5003
|
function xl(e) {
|
|
5004
|
-
e.target === window || e.target === document || Qu || !e.isTrusted || (!
|
|
5004
|
+
e.target === window || e.target === document || Qu || !e.isTrusted || (!dt && !Cr && (Yt = "virtual", Jr("virtual", e)), dt = !1, Cr = !1);
|
|
5005
5005
|
}
|
|
5006
5006
|
function El() {
|
|
5007
|
-
|
|
5007
|
+
dt = !1, Cr = !0;
|
|
5008
5008
|
}
|
|
5009
|
-
function
|
|
5009
|
+
function kr(e) {
|
|
5010
5010
|
if (typeof window > "u" || typeof document > "u" || _t.get(at(e))) return;
|
|
5011
5011
|
const t = at(e), n = it(e);
|
|
5012
5012
|
let r = t.HTMLElement.prototype.focus;
|
|
5013
5013
|
t.HTMLElement.prototype.focus = function() {
|
|
5014
|
-
|
|
5015
|
-
}, n.addEventListener("keydown",
|
|
5014
|
+
dt = !0, r.apply(this, arguments);
|
|
5015
|
+
}, n.addEventListener("keydown", En, !0), n.addEventListener("keyup", En, !0), n.addEventListener("click", yl, !0), t.addEventListener("focus", xl, !0), t.addEventListener("blur", El, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", ke, !0), n.addEventListener("pointermove", ke, !0), n.addEventListener("pointerup", ke, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", ke, !0), n.addEventListener("mousemove", ke, !0), n.addEventListener("mouseup", ke, !0)), t.addEventListener("beforeunload", () => {
|
|
5016
5016
|
Rl(e);
|
|
5017
5017
|
}, {
|
|
5018
5018
|
once: !0
|
|
@@ -5022,13 +5022,13 @@ function Cr(e) {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
const Rl = (e, t) => {
|
|
5024
5024
|
const n = at(e), r = it(e);
|
|
5025
|
-
t && r.removeEventListener("DOMContentLoaded", t), _t.has(n) && (n.HTMLElement.prototype.focus = _t.get(n).focus, r.removeEventListener("keydown",
|
|
5025
|
+
t && r.removeEventListener("DOMContentLoaded", t), _t.has(n) && (n.HTMLElement.prototype.focus = _t.get(n).focus, r.removeEventListener("keydown", En, !0), r.removeEventListener("keyup", En, !0), r.removeEventListener("click", yl, !0), n.removeEventListener("focus", xl, !0), n.removeEventListener("blur", El, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", ke, !0), r.removeEventListener("pointermove", ke, !0), r.removeEventListener("pointerup", ke, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", ke, !0), r.removeEventListener("mousemove", ke, !0), r.removeEventListener("mouseup", ke, !0)), _t.delete(n));
|
|
5026
5026
|
};
|
|
5027
5027
|
function nd(e) {
|
|
5028
5028
|
const t = it(e);
|
|
5029
5029
|
let n;
|
|
5030
|
-
return t.readyState !== "loading" ?
|
|
5031
|
-
|
|
5030
|
+
return t.readyState !== "loading" ? kr(e) : (n = () => {
|
|
5031
|
+
kr(e);
|
|
5032
5032
|
}, t.addEventListener("DOMContentLoaded", n)), () => Rl(e, n);
|
|
5033
5033
|
}
|
|
5034
5034
|
typeof document < "u" && nd();
|
|
@@ -5052,12 +5052,12 @@ function od(e, t, n) {
|
|
|
5052
5052
|
return e = e || r.activeElement instanceof o && !rd.has(r.activeElement.type) || r.activeElement instanceof i || r.activeElement instanceof l && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof a && !ed[n.key]);
|
|
5053
5053
|
}
|
|
5054
5054
|
function id(e, t, n) {
|
|
5055
|
-
|
|
5055
|
+
kr(), re(() => {
|
|
5056
5056
|
let r = (o, i) => {
|
|
5057
5057
|
od(!!n?.isTextInput, o, i) && e($l());
|
|
5058
5058
|
};
|
|
5059
|
-
return
|
|
5060
|
-
|
|
5059
|
+
return Sr.add(r), () => {
|
|
5060
|
+
Sr.delete(r);
|
|
5061
5061
|
};
|
|
5062
5062
|
}, t);
|
|
5063
5063
|
}
|
|
@@ -5070,7 +5070,7 @@ function ld(e) {
|
|
|
5070
5070
|
r,
|
|
5071
5071
|
o
|
|
5072
5072
|
]), l = wl(i), a = Z((s) => {
|
|
5073
|
-
const c = it(s.target), u = c ?
|
|
5073
|
+
const c = it(s.target), u = c ? $r(c) : $r();
|
|
5074
5074
|
s.target === s.currentTarget && u === gl(s.nativeEvent) && (n && n(s), o && o(!0), l(s));
|
|
5075
5075
|
}, [
|
|
5076
5076
|
o,
|
|
@@ -5096,7 +5096,7 @@ function ad(e) {
|
|
|
5096
5096
|
a
|
|
5097
5097
|
]), c = wl(s), u = Z((f) => {
|
|
5098
5098
|
if (!f.currentTarget.contains(f.target)) return;
|
|
5099
|
-
const p = it(f.target), d =
|
|
5099
|
+
const p = it(f.target), d = $r(p);
|
|
5100
5100
|
if (!i.current.isFocusWithin && d === gl(f.nativeEvent)) {
|
|
5101
5101
|
r && r(f), o && o(!0), i.current.isFocusWithin = !0, c(f);
|
|
5102
5102
|
let h = f.currentTarget;
|
|
@@ -5133,19 +5133,19 @@ function ad(e) {
|
|
|
5133
5133
|
}
|
|
5134
5134
|
};
|
|
5135
5135
|
}
|
|
5136
|
-
let
|
|
5137
|
-
function
|
|
5138
|
-
|
|
5139
|
-
|
|
5136
|
+
let Rn = !1, rn = 0;
|
|
5137
|
+
function Pr() {
|
|
5138
|
+
Rn = !0, setTimeout(() => {
|
|
5139
|
+
Rn = !1;
|
|
5140
5140
|
}, 50);
|
|
5141
5141
|
}
|
|
5142
5142
|
function No(e) {
|
|
5143
|
-
e.pointerType === "touch" &&
|
|
5143
|
+
e.pointerType === "touch" && Pr();
|
|
5144
5144
|
}
|
|
5145
5145
|
function sd() {
|
|
5146
5146
|
if (!(typeof document > "u"))
|
|
5147
|
-
return rn === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", No) : process.env.NODE_ENV === "test" && document.addEventListener("touchend",
|
|
5148
|
-
rn--, !(rn > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", No) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend",
|
|
5147
|
+
return rn === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", No) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", Pr)), rn++, () => {
|
|
5148
|
+
rn--, !(rn > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", No) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", Pr));
|
|
5149
5149
|
};
|
|
5150
5150
|
}
|
|
5151
5151
|
function Qr(e) {
|
|
@@ -5179,13 +5179,13 @@ function Qr(e) {
|
|
|
5179
5179
|
}), n && n(!1), l(!1));
|
|
5180
5180
|
}, h = {};
|
|
5181
5181
|
return typeof PointerEvent < "u" ? (h.onPointerEnter = (g) => {
|
|
5182
|
-
|
|
5182
|
+
Rn && g.pointerType === "mouse" || p(g, g.pointerType);
|
|
5183
5183
|
}, h.onPointerLeave = (g) => {
|
|
5184
5184
|
!o && g.currentTarget.contains(g.target) && d(g, g.pointerType);
|
|
5185
5185
|
}) : process.env.NODE_ENV === "test" && (h.onTouchStart = () => {
|
|
5186
5186
|
a.ignoreEmulatedMouseEvents = !0;
|
|
5187
5187
|
}, h.onMouseEnter = (g) => {
|
|
5188
|
-
!a.ignoreEmulatedMouseEvents && !
|
|
5188
|
+
!a.ignoreEmulatedMouseEvents && !Rn && p(g, "mouse"), a.ignoreEmulatedMouseEvents = !1;
|
|
5189
5189
|
}, h.onMouseLeave = (g) => {
|
|
5190
5190
|
!o && g.currentTarget.contains(g.target) && d(g, "mouse");
|
|
5191
5191
|
}), {
|
|
@@ -5239,10 +5239,10 @@ function eo(e = {}) {
|
|
|
5239
5239
|
focusProps: r ? p : f
|
|
5240
5240
|
};
|
|
5241
5241
|
}
|
|
5242
|
-
var cd = Object.defineProperty, ud = (e, t, n) => t in e ? cd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5242
|
+
var cd = Object.defineProperty, ud = (e, t, n) => t in e ? cd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nr = (e, t, n) => (ud(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5243
5243
|
let dd = class {
|
|
5244
5244
|
constructor() {
|
|
5245
|
-
|
|
5245
|
+
nr(this, "current", this.detect()), nr(this, "handoffState", "pending"), nr(this, "currentId", 0);
|
|
5246
5246
|
}
|
|
5247
5247
|
set(t) {
|
|
5248
5248
|
this.current !== t && (this.handoffState = "pending", this.currentId = 0, this.current = t);
|
|
@@ -5273,13 +5273,13 @@ function Xt(e) {
|
|
|
5273
5273
|
var t;
|
|
5274
5274
|
return Fe.isServer ? null : e == null ? document : (t = e?.ownerDocument) != null ? t : document;
|
|
5275
5275
|
}
|
|
5276
|
-
function
|
|
5276
|
+
function $n(e) {
|
|
5277
5277
|
var t, n;
|
|
5278
5278
|
return Fe.isServer ? null : e == null ? document : (n = (t = e?.getRootNode) == null ? void 0 : t.call(e)) != null ? n : document;
|
|
5279
5279
|
}
|
|
5280
5280
|
function Sl(e) {
|
|
5281
5281
|
var t, n;
|
|
5282
|
-
return (n = (t =
|
|
5282
|
+
return (n = (t = $n(e)) == null ? void 0 : t.activeElement) != null ? n : null;
|
|
5283
5283
|
}
|
|
5284
5284
|
function fd(e) {
|
|
5285
5285
|
return Sl(e) === e;
|
|
@@ -5325,21 +5325,21 @@ function $e() {
|
|
|
5325
5325
|
} };
|
|
5326
5326
|
return t;
|
|
5327
5327
|
}
|
|
5328
|
-
function
|
|
5328
|
+
function pt() {
|
|
5329
5329
|
let [e] = J($e);
|
|
5330
5330
|
return re(() => () => e.dispose(), [e]), e;
|
|
5331
5331
|
}
|
|
5332
5332
|
let se = (e, t) => {
|
|
5333
5333
|
Fe.isServer ? re(e, t) : Gt(e, t);
|
|
5334
5334
|
};
|
|
5335
|
-
function
|
|
5335
|
+
function ht(e) {
|
|
5336
5336
|
let t = U(e);
|
|
5337
5337
|
return se(() => {
|
|
5338
5338
|
t.current = e;
|
|
5339
5339
|
}, [e]), t;
|
|
5340
5340
|
}
|
|
5341
|
-
let
|
|
5342
|
-
let t =
|
|
5341
|
+
let q = function(e) {
|
|
5342
|
+
let t = ht(e);
|
|
5343
5343
|
return j.useCallback((...n) => t.current(...n), [t]);
|
|
5344
5344
|
};
|
|
5345
5345
|
function md(e) {
|
|
@@ -5350,9 +5350,9 @@ function pd(e, t) {
|
|
|
5350
5350
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
5351
5351
|
}
|
|
5352
5352
|
function to({ disabled: e = !1 } = {}) {
|
|
5353
|
-
let t = U(null), [n, r] = J(!1), o =
|
|
5353
|
+
let t = U(null), [n, r] = J(!1), o = pt(), i = q(() => {
|
|
5354
5354
|
t.current = null, r(!1), o.dispose();
|
|
5355
|
-
}), l =
|
|
5355
|
+
}), l = q((a) => {
|
|
5356
5356
|
if (o.dispose(), t.current === null) {
|
|
5357
5357
|
t.current = a.currentTarget, r(!0);
|
|
5358
5358
|
{
|
|
@@ -5372,10 +5372,10 @@ function Te(e) {
|
|
|
5372
5372
|
return ce(() => e, Object.values(e));
|
|
5373
5373
|
}
|
|
5374
5374
|
let hd = le(void 0);
|
|
5375
|
-
function
|
|
5375
|
+
function Mn() {
|
|
5376
5376
|
return te(hd);
|
|
5377
5377
|
}
|
|
5378
|
-
function
|
|
5378
|
+
function Tr(...e) {
|
|
5379
5379
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
5380
5380
|
}
|
|
5381
5381
|
function ve(e, t, ...n) {
|
|
@@ -5411,7 +5411,7 @@ function gd({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, v
|
|
|
5411
5411
|
return on(s, n, r, l, a);
|
|
5412
5412
|
}
|
|
5413
5413
|
function on(e, t = {}, n, r, o) {
|
|
5414
|
-
let { as: i = n, children: l, refName: a = "ref", ...s } =
|
|
5414
|
+
let { as: i = n, children: l, refName: a = "ref", ...s } = rr(e, ["unmount", "static"]), c = e.ref !== void 0 ? { [a]: e.ref } : {}, u = typeof l == "function" ? l(t) : l;
|
|
5415
5415
|
"className" in s && s.className && typeof s.className == "function" && (s.className = s.className(t)), s["aria-labelledby"] && s["aria-labelledby"] === s.id && (s["aria-labelledby"] = void 0);
|
|
5416
5416
|
let f = {};
|
|
5417
5417
|
if (t) {
|
|
@@ -5422,17 +5422,17 @@ function on(e, t = {}, n, r, o) {
|
|
|
5422
5422
|
for (let h of d) f[`data-${h}`] = "";
|
|
5423
5423
|
}
|
|
5424
5424
|
}
|
|
5425
|
-
if (
|
|
5425
|
+
if (Et(i) && (Object.keys(et(s)).length > 0 || Object.keys(et(f)).length > 0)) if (!Vr(u) || Array.isArray(u) && u.length > 1 || yd(u)) {
|
|
5426
5426
|
if (Object.keys(et(s)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(et(s)).concat(Object.keys(et(f))).map((p) => ` - ${p}`).join(`
|
|
5427
5427
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
|
|
5428
5428
|
`)].join(`
|
|
5429
5429
|
`));
|
|
5430
5430
|
} else {
|
|
5431
|
-
let p = u.props, d = p?.className, h = typeof d == "function" ? (...b) =>
|
|
5431
|
+
let p = u.props, d = p?.className, h = typeof d == "function" ? (...b) => Tr(d(...b), s.className) : Tr(d, s.className), g = h ? { className: h } : {}, v = kl(u.props, et(rr(s, ["ref"])));
|
|
5432
5432
|
for (let b in f) b in v && delete f[b];
|
|
5433
5433
|
return Li(u, Object.assign({}, v, f, c, { ref: o(wd(u), c.ref) }, g));
|
|
5434
5434
|
}
|
|
5435
|
-
return vn(i, Object.assign({},
|
|
5435
|
+
return vn(i, Object.assign({}, rr(s, ["ref"]), !Et(i) && c, !Et(i) && f), u);
|
|
5436
5436
|
}
|
|
5437
5437
|
function vd() {
|
|
5438
5438
|
let e = U([]), t = Z((n) => {
|
|
@@ -5485,7 +5485,7 @@ function et(e) {
|
|
|
5485
5485
|
for (let n in t) t[n] === void 0 && delete t[n];
|
|
5486
5486
|
return t;
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function rr(e, t = []) {
|
|
5489
5489
|
let n = Object.assign({}, e);
|
|
5490
5490
|
for (let r of t) r in n && delete n[r];
|
|
5491
5491
|
return n;
|
|
@@ -5493,22 +5493,22 @@ function nr(e, t = []) {
|
|
|
5493
5493
|
function wd(e) {
|
|
5494
5494
|
return j.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
5495
5495
|
}
|
|
5496
|
-
function
|
|
5496
|
+
function Et(e) {
|
|
5497
5497
|
return e === _e || e === /* @__PURE__ */ Symbol.for("react.fragment");
|
|
5498
5498
|
}
|
|
5499
5499
|
function yd(e) {
|
|
5500
|
-
return
|
|
5500
|
+
return Et(e.type);
|
|
5501
5501
|
}
|
|
5502
5502
|
let xd = "button";
|
|
5503
5503
|
function Ed(e, t) {
|
|
5504
5504
|
var n;
|
|
5505
|
-
let r =
|
|
5505
|
+
let r = Mn(), { disabled: o = r || !1, autoFocus: i = !1, ...l } = e, { isFocusVisible: a, focusProps: s } = eo({ autoFocus: i }), { isHovered: c, hoverProps: u } = Qr({ isDisabled: o }), { pressed: f, pressProps: p } = to({ disabled: o }), d = jt({ ref: t, type: (n = l.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, s, u, p), h = Te({ disabled: o, hover: c, focus: a, active: f, autofocus: i });
|
|
5506
5506
|
return me()({ ourProps: d, theirProps: l, slot: h, defaultTag: xd, name: "Button" });
|
|
5507
5507
|
}
|
|
5508
5508
|
let Rd = de(Ed);
|
|
5509
5509
|
function $d(e, t, n) {
|
|
5510
5510
|
let [r, o] = J(n), i = e !== void 0, l = U(i), a = U(!1), s = U(!1);
|
|
5511
|
-
return i && !l.current && !a.current ? (a.current = !0, l.current = i, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !i && l.current && !s.current && (s.current = !0, l.current = i, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [i ? e : r,
|
|
5511
|
+
return i && !l.current && !a.current ? (a.current = !0, l.current = i, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !i && l.current && !s.current && (s.current = !0, l.current = i, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [i ? e : r, q((c) => (i || wn(() => o(c)), t?.(c)))];
|
|
5512
5512
|
}
|
|
5513
5513
|
function Sd(e) {
|
|
5514
5514
|
let [t] = J(e);
|
|
@@ -5523,7 +5523,7 @@ function Tl(e, t) {
|
|
|
5523
5523
|
}
|
|
5524
5524
|
function Ol(e, t, n) {
|
|
5525
5525
|
if (Array.isArray(n)) for (let [r, o] of n.entries()) Ol(e, Tl(t, r.toString()), o);
|
|
5526
|
-
else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : kd(n) && !
|
|
5526
|
+
else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : kd(n) && !Vr(n) && Pl(n, t, e);
|
|
5527
5527
|
}
|
|
5528
5528
|
function Cd(e) {
|
|
5529
5529
|
var t, n;
|
|
@@ -5553,10 +5553,10 @@ function Ld({ children: e }) {
|
|
|
5553
5553
|
let t = te(Od);
|
|
5554
5554
|
if (!t) return j.createElement(j.Fragment, null, e);
|
|
5555
5555
|
let { target: n } = t;
|
|
5556
|
-
return n ?
|
|
5556
|
+
return n ? jr(j.createElement(j.Fragment, null, e), n) : null;
|
|
5557
5557
|
}
|
|
5558
5558
|
function Ad({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
|
|
5559
|
-
let [i, l] = J(null), a =
|
|
5559
|
+
let [i, l] = J(null), a = pt();
|
|
5560
5560
|
return re(() => {
|
|
5561
5561
|
if (r && i) return a.addEventListener(i, "reset", r);
|
|
5562
5562
|
}, [i, t, r]), j.createElement(Ld, null, j.createElement(Md, { setForm: l, formId: t }), Pl(e).map(([s, c]) => j.createElement(Ll, { features: no.Hidden, ...et({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: c, ...o }) })));
|
|
@@ -5580,17 +5580,17 @@ function Al() {
|
|
|
5580
5580
|
function Ml(e) {
|
|
5581
5581
|
return typeof e != "object" || e === null ? !1 : "nodeType" in e;
|
|
5582
5582
|
}
|
|
5583
|
-
function
|
|
5583
|
+
function Nn(e) {
|
|
5584
5584
|
return Ml(e) && "tagName" in e;
|
|
5585
5585
|
}
|
|
5586
5586
|
function Je(e) {
|
|
5587
|
-
return
|
|
5587
|
+
return Nn(e) && "accessKey" in e;
|
|
5588
5588
|
}
|
|
5589
5589
|
function nt(e) {
|
|
5590
|
-
return
|
|
5590
|
+
return Nn(e) && "tabIndex" in e;
|
|
5591
5591
|
}
|
|
5592
5592
|
function Fd(e) {
|
|
5593
|
-
return
|
|
5593
|
+
return Nn(e) && "style" in e;
|
|
5594
5594
|
}
|
|
5595
5595
|
function Id(e) {
|
|
5596
5596
|
return Je(e) && e.nodeName === "IFRAME";
|
|
@@ -5608,9 +5608,9 @@ function Fl(e) {
|
|
|
5608
5608
|
return Je(e) && e.nodeName === "LEGEND";
|
|
5609
5609
|
}
|
|
5610
5610
|
function _d(e) {
|
|
5611
|
-
return
|
|
5611
|
+
return Nn(e) ? e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
|
|
5612
5612
|
}
|
|
5613
|
-
function
|
|
5613
|
+
function Or(e) {
|
|
5614
5614
|
let t = e.parentElement, n = null;
|
|
5615
5615
|
for (; t && !Dd(t); ) Fl(t) && (n = t), t = t.parentElement;
|
|
5616
5616
|
let r = t?.getAttribute("disabled") === "";
|
|
@@ -5634,7 +5634,7 @@ function be(...e) {
|
|
|
5634
5634
|
re(() => {
|
|
5635
5635
|
t.current = e;
|
|
5636
5636
|
}, [e]);
|
|
5637
|
-
let n =
|
|
5637
|
+
let n = q((r) => {
|
|
5638
5638
|
for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
5639
5639
|
});
|
|
5640
5640
|
return e.every((r) => r == null || r?.[Il]) ? void 0 : n;
|
|
@@ -5655,7 +5655,7 @@ function Hd() {
|
|
|
5655
5655
|
}
|
|
5656
5656
|
let Vd = "p";
|
|
5657
5657
|
function jd(e, t) {
|
|
5658
|
-
let n =
|
|
5658
|
+
let n = Ke(), r = Mn(), { id: o = `headlessui-description-${n}`, ...i } = e, l = _l(), a = be(t);
|
|
5659
5659
|
se(() => l.register(o), [o, l.register]);
|
|
5660
5660
|
let s = Te({ ...l.slot, disabled: r || !1 }), c = { ref: a, ...l.props, id: o };
|
|
5661
5661
|
return me()({ ourProps: c, theirProps: i, slot: s, defaultTag: Vd, name: l.name || "Description" });
|
|
@@ -5663,10 +5663,10 @@ function jd(e, t) {
|
|
|
5663
5663
|
let Wd = de(jd);
|
|
5664
5664
|
Object.assign(Wd, {});
|
|
5665
5665
|
var oe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(oe || {});
|
|
5666
|
-
let
|
|
5667
|
-
|
|
5666
|
+
let Fn = le(null);
|
|
5667
|
+
Fn.displayName = "LabelContext";
|
|
5668
5668
|
function Bl() {
|
|
5669
|
-
let e = te(
|
|
5669
|
+
let e = te(Fn);
|
|
5670
5670
|
if (e === null) {
|
|
5671
5671
|
let t = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
|
|
5672
5672
|
throw Error.captureStackTrace && Error.captureStackTrace(t, Bl), t;
|
|
@@ -5675,25 +5675,25 @@ function Bl() {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
function Hl(e) {
|
|
5677
5677
|
var t, n, r;
|
|
5678
|
-
let o = (n = (t = te(
|
|
5678
|
+
let o = (n = (t = te(Fn)) == null ? void 0 : t.value) != null ? n : void 0;
|
|
5679
5679
|
return ((r = e?.length) != null ? r : 0) > 0 ? [o, ...e].filter(Boolean).join(" ") : o;
|
|
5680
5680
|
}
|
|
5681
5681
|
function zd({ inherit: e = !1 } = {}) {
|
|
5682
5682
|
let t = Hl(), [n, r] = J([]), o = e ? [t, ...n].filter(Boolean) : n;
|
|
5683
5683
|
return [o.length > 0 ? o.join(" ") : void 0, ce(() => function(i) {
|
|
5684
|
-
let l =
|
|
5684
|
+
let l = q((s) => (r((c) => [...c, s]), () => r((c) => {
|
|
5685
5685
|
let u = c.slice(), f = u.indexOf(s);
|
|
5686
5686
|
return f !== -1 && u.splice(f, 1), u;
|
|
5687
5687
|
}))), a = ce(() => ({ register: l, slot: i.slot, name: i.name, props: i.props, value: i.value }), [l, i.slot, i.name, i.props, i.value]);
|
|
5688
|
-
return j.createElement(
|
|
5688
|
+
return j.createElement(Fn.Provider, { value: a }, i.children);
|
|
5689
5689
|
}, [r])];
|
|
5690
5690
|
}
|
|
5691
5691
|
let Ud = "label";
|
|
5692
5692
|
function Gd(e, t) {
|
|
5693
5693
|
var n;
|
|
5694
|
-
let r =
|
|
5694
|
+
let r = Ke(), o = Bl(), i = Al(), l = Mn(), { id: a = `headlessui-label-${r}`, htmlFor: s = i ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = be(t);
|
|
5695
5695
|
se(() => o.register(a), [a, o.register]);
|
|
5696
|
-
let p =
|
|
5696
|
+
let p = q((g) => {
|
|
5697
5697
|
let v = g.currentTarget;
|
|
5698
5698
|
if (!(g.target !== g.currentTarget && _d(g.target)) && (Fo(v) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), Fo(v))) {
|
|
5699
5699
|
let b = document.getElementById(v.htmlFor);
|
|
@@ -5708,7 +5708,7 @@ function Gd(e, t) {
|
|
|
5708
5708
|
}), d = Te({ ...o.slot, disabled: l || !1 }), h = { ref: f, ...o.props, id: a, htmlFor: s, onClick: p };
|
|
5709
5709
|
return c && ("onClick" in h && (delete h.htmlFor, delete h.onClick), "onClick" in u && delete u.onClick), me()({ ourProps: h, theirProps: u, slot: d, defaultTag: s ? Ud : "div", name: o.name || "Label" });
|
|
5710
5710
|
}
|
|
5711
|
-
let
|
|
5711
|
+
let qd = de(Gd), Kd = Object.assign(qd, {}), Yd = le(() => {
|
|
5712
5712
|
});
|
|
5713
5713
|
function Xd({ value: e, children: t }) {
|
|
5714
5714
|
return j.createElement(Yd.Provider, { value: e }, t);
|
|
@@ -5747,10 +5747,10 @@ function Qd(e, t, n = !1) {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
var Vl = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Vl || {});
|
|
5749
5749
|
function ef(e) {
|
|
5750
|
-
let t = U(null), n =
|
|
5751
|
-
t.current = o.pointerType, !
|
|
5752
|
-
}), r =
|
|
5753
|
-
t.current !== "mouse" && (
|
|
5750
|
+
let t = U(null), n = q((o) => {
|
|
5751
|
+
t.current = o.pointerType, !Or(o.currentTarget) && o.pointerType === "mouse" && o.button === Vl.Left && (o.preventDefault(), e(o));
|
|
5752
|
+
}), r = q((o) => {
|
|
5753
|
+
t.current !== "mouse" && (Or(o.currentTarget) || e(o));
|
|
5754
5754
|
});
|
|
5755
5755
|
return { onPointerDown: n, onClick: r };
|
|
5756
5756
|
}
|
|
@@ -5765,13 +5765,13 @@ let jl = class extends Map {
|
|
|
5765
5765
|
};
|
|
5766
5766
|
var tf = Object.defineProperty, nf = (e, t, n) => t in e ? tf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rf = (e, t, n) => (nf(e, t + "", n), n), Wl = (e, t, n) => {
|
|
5767
5767
|
if (!t.has(e)) throw TypeError("Cannot " + n);
|
|
5768
|
-
}, Se = (e, t, n) => (Wl(e, t, "read from private field"), n ? n.call(e) : t.get(e)),
|
|
5768
|
+
}, Se = (e, t, n) => (Wl(e, t, "read from private field"), n ? n.call(e) : t.get(e)), or = (e, t, n) => {
|
|
5769
5769
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
5770
5770
|
t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
5771
5771
|
}, Do = (e, t, n, r) => (Wl(e, t, "write to private field"), t.set(e, n), n), Me, It, Dt;
|
|
5772
5772
|
let zl = class {
|
|
5773
5773
|
constructor(t) {
|
|
5774
|
-
|
|
5774
|
+
or(this, Me, {}), or(this, It, new jl(() => /* @__PURE__ */ new Set())), or(this, Dt, /* @__PURE__ */ new Set()), rf(this, "disposables", $e()), Do(this, Me, t), Fe.isServer && this.disposables.microTask(() => {
|
|
5775
5775
|
this.dispose();
|
|
5776
5776
|
});
|
|
5777
5777
|
}
|
|
@@ -5809,9 +5809,9 @@ let zl = class {
|
|
|
5809
5809
|
};
|
|
5810
5810
|
Me = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap();
|
|
5811
5811
|
function Ul(e, t) {
|
|
5812
|
-
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null ? !1 : Array.isArray(e) && Array.isArray(t) ? e.length !== t.length ? !1 :
|
|
5812
|
+
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null ? !1 : Array.isArray(e) && Array.isArray(t) ? e.length !== t.length ? !1 : ir(e[Symbol.iterator](), t[Symbol.iterator]()) : e instanceof Map && t instanceof Map || e instanceof Set && t instanceof Set ? e.size !== t.size ? !1 : ir(e.entries(), t.entries()) : _o(e) && _o(t) ? ir(Object.entries(e)[Symbol.iterator](), Object.entries(t)[Symbol.iterator]()) : !1;
|
|
5813
5813
|
}
|
|
5814
|
-
function
|
|
5814
|
+
function ir(e, t) {
|
|
5815
5815
|
do {
|
|
5816
5816
|
let n = e.next(), r = t.next();
|
|
5817
5817
|
if (n.done && r.done) return !0;
|
|
@@ -5823,7 +5823,7 @@ function _o(e) {
|
|
|
5823
5823
|
let t = Object.getPrototypeOf(e);
|
|
5824
5824
|
return t === null || Object.getPrototypeOf(t) === null;
|
|
5825
5825
|
}
|
|
5826
|
-
function
|
|
5826
|
+
function lr(e) {
|
|
5827
5827
|
let [t, n] = e(), r = $e();
|
|
5828
5828
|
return (...o) => {
|
|
5829
5829
|
t(...o), r.dispose(), r.microTask(n);
|
|
@@ -5842,29 +5842,29 @@ let af = { 0(e, t) {
|
|
|
5842
5842
|
if (r === -1) return e;
|
|
5843
5843
|
let o = e.stack.slice();
|
|
5844
5844
|
return o.splice(r, 1), { ...e, stack: o };
|
|
5845
|
-
} }, sf = class
|
|
5845
|
+
} }, sf = class ql extends zl {
|
|
5846
5846
|
constructor() {
|
|
5847
5847
|
super(...arguments), Bo(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), Bo(this, "selectors", { isTop: (t, n) => t.stack[t.stack.length - 1] === n, inStack: (t, n) => t.stack.includes(n) });
|
|
5848
5848
|
}
|
|
5849
5849
|
static new() {
|
|
5850
|
-
return new
|
|
5850
|
+
return new ql({ stack: [] });
|
|
5851
5851
|
}
|
|
5852
5852
|
reduce(t, n) {
|
|
5853
5853
|
return ve(n.type, af, t, n);
|
|
5854
5854
|
}
|
|
5855
5855
|
};
|
|
5856
5856
|
const oo = new jl(() => sf.new());
|
|
5857
|
-
var ln = { exports: {} },
|
|
5857
|
+
var ln = { exports: {} }, ar = {};
|
|
5858
5858
|
var Ho;
|
|
5859
5859
|
function cf() {
|
|
5860
|
-
if (Ho) return
|
|
5860
|
+
if (Ho) return ar;
|
|
5861
5861
|
Ho = 1;
|
|
5862
5862
|
var e = j;
|
|
5863
5863
|
function t(s, c) {
|
|
5864
5864
|
return s === c && (s !== 0 || 1 / s === 1 / c) || s !== s && c !== c;
|
|
5865
5865
|
}
|
|
5866
5866
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useSyncExternalStore, o = e.useRef, i = e.useEffect, l = e.useMemo, a = e.useDebugValue;
|
|
5867
|
-
return
|
|
5867
|
+
return ar.useSyncExternalStoreWithSelector = function(s, c, u, f, p) {
|
|
5868
5868
|
var d = o(null);
|
|
5869
5869
|
if (d.current === null) {
|
|
5870
5870
|
var h = { hasValue: !1, value: null };
|
|
@@ -5904,9 +5904,9 @@ function cf() {
|
|
|
5904
5904
|
},
|
|
5905
5905
|
[g]
|
|
5906
5906
|
), a(g), g;
|
|
5907
|
-
},
|
|
5907
|
+
}, ar;
|
|
5908
5908
|
}
|
|
5909
|
-
var
|
|
5909
|
+
var sr = {};
|
|
5910
5910
|
var Vo;
|
|
5911
5911
|
function uf() {
|
|
5912
5912
|
return Vo || (Vo = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -5915,7 +5915,7 @@ function uf() {
|
|
|
5915
5915
|
}
|
|
5916
5916
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
5917
5917
|
var t = j, n = typeof Object.is == "function" ? Object.is : e, r = t.useSyncExternalStore, o = t.useRef, i = t.useEffect, l = t.useMemo, a = t.useDebugValue;
|
|
5918
|
-
|
|
5918
|
+
sr.useSyncExternalStoreWithSelector = function(s, c, u, f, p) {
|
|
5919
5919
|
var d = o(null);
|
|
5920
5920
|
if (d.current === null) {
|
|
5921
5921
|
var h = { hasValue: !1, value: null };
|
|
@@ -5957,7 +5957,7 @@ function uf() {
|
|
|
5957
5957
|
[g]
|
|
5958
5958
|
), a(g), g;
|
|
5959
5959
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
5960
|
-
})()),
|
|
5960
|
+
})()), sr;
|
|
5961
5961
|
}
|
|
5962
5962
|
var jo;
|
|
5963
5963
|
function df() {
|
|
@@ -5965,32 +5965,32 @@ function df() {
|
|
|
5965
5965
|
}
|
|
5966
5966
|
var ff = df();
|
|
5967
5967
|
function ye(e, t, n = Ul) {
|
|
5968
|
-
return ff.useSyncExternalStoreWithSelector(
|
|
5968
|
+
return ff.useSyncExternalStoreWithSelector(q((r) => e.subscribe(mf, r)), q(() => e.state), q(() => e.state), q(t), n);
|
|
5969
5969
|
}
|
|
5970
5970
|
function mf(e) {
|
|
5971
5971
|
return e;
|
|
5972
5972
|
}
|
|
5973
|
-
function
|
|
5974
|
-
let n =
|
|
5973
|
+
function Kl(e, t) {
|
|
5974
|
+
let n = Ke(), r = oo.get(t), [o, i] = ye(r, Z((l) => [r.selectors.isTop(l, n), r.selectors.inStack(l, n)], [r, n]));
|
|
5975
5975
|
return se(() => {
|
|
5976
5976
|
if (e) return r.actions.push(n), () => r.actions.pop(n);
|
|
5977
5977
|
}, [r, e, n]), e ? i ? o : !0 : !1;
|
|
5978
5978
|
}
|
|
5979
|
-
let
|
|
5979
|
+
let Lr = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new Map();
|
|
5980
5980
|
function Wo(e) {
|
|
5981
5981
|
var t;
|
|
5982
5982
|
let n = (t = Bt.get(e)) != null ? t : 0;
|
|
5983
|
-
return Bt.set(e, n + 1), n !== 0 ? () => zo(e) : (
|
|
5983
|
+
return Bt.set(e, n + 1), n !== 0 ? () => zo(e) : (Lr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => zo(e));
|
|
5984
5984
|
}
|
|
5985
5985
|
function zo(e) {
|
|
5986
5986
|
var t;
|
|
5987
5987
|
let n = (t = Bt.get(e)) != null ? t : 1;
|
|
5988
5988
|
if (n === 1 ? Bt.delete(e) : Bt.set(e, n - 1), n !== 1) return;
|
|
5989
|
-
let r =
|
|
5990
|
-
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert,
|
|
5989
|
+
let r = Lr.get(e);
|
|
5990
|
+
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Lr.delete(e));
|
|
5991
5991
|
}
|
|
5992
5992
|
function pf(e, { allowed: t, disallowed: n } = {}) {
|
|
5993
|
-
let r =
|
|
5993
|
+
let r = Kl(e, "inert-others");
|
|
5994
5994
|
se(() => {
|
|
5995
5995
|
var o, i;
|
|
5996
5996
|
if (!r) return;
|
|
@@ -6011,7 +6011,7 @@ function pf(e, { allowed: t, disallowed: n } = {}) {
|
|
|
6011
6011
|
}, [r, t, n]);
|
|
6012
6012
|
}
|
|
6013
6013
|
function hf(e, t, n) {
|
|
6014
|
-
let r =
|
|
6014
|
+
let r = ht((o) => {
|
|
6015
6015
|
let i = o.getBoundingClientRect();
|
|
6016
6016
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
6017
6017
|
});
|
|
@@ -6031,10 +6031,10 @@ function hf(e, t, n) {
|
|
|
6031
6031
|
return () => i.dispose();
|
|
6032
6032
|
}, [t, r, e]);
|
|
6033
6033
|
}
|
|
6034
|
-
let
|
|
6035
|
-
var
|
|
6034
|
+
let Ar = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), gf = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
6035
|
+
var Mr = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Mr || {}), vf = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(vf || {}), bf = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(bf || {});
|
|
6036
6036
|
function Yl(e = document.body) {
|
|
6037
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
6037
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Ar)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
6038
6038
|
}
|
|
6039
6039
|
function wf(e = document.body) {
|
|
6040
6040
|
return e == null ? [] : Array.from(e.querySelectorAll(gf)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
@@ -6043,11 +6043,11 @@ var io = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(io |
|
|
|
6043
6043
|
function Xl(e, t = 0) {
|
|
6044
6044
|
var n;
|
|
6045
6045
|
return e === ((n = Xt(e)) == null ? void 0 : n.body) ? !1 : ve(t, { 0() {
|
|
6046
|
-
return e.matches(
|
|
6046
|
+
return e.matches(Ar);
|
|
6047
6047
|
}, 1() {
|
|
6048
6048
|
let r = e;
|
|
6049
6049
|
for (; r !== null; ) {
|
|
6050
|
-
if (r.matches(
|
|
6050
|
+
if (r.matches(Ar)) return !0;
|
|
6051
6051
|
r = r.parentElement;
|
|
6052
6052
|
}
|
|
6053
6053
|
return !1;
|
|
@@ -6072,11 +6072,11 @@ function Zl(e, t = (n) => n) {
|
|
|
6072
6072
|
return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
6073
6073
|
});
|
|
6074
6074
|
}
|
|
6075
|
-
function Rf(e, t, n = e === null ? document.body :
|
|
6075
|
+
function Rf(e, t, n = e === null ? document.body : $n(e)) {
|
|
6076
6076
|
return $f(Yl(n), t, { relativeTo: e });
|
|
6077
6077
|
}
|
|
6078
6078
|
function $f(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
6079
|
-
let i = Array.isArray(e) ? e.length > 0 ?
|
|
6079
|
+
let i = Array.isArray(e) ? e.length > 0 ? $n(e[0]) : document : $n(e), l = Array.isArray(e) ? n ? Zl(e) : e : t & 64 ? wf(e) : Yl(e);
|
|
6080
6080
|
o.length > 0 && l.length > 1 && (l = l.filter((d) => !o.some((h) => h != null && "current" in h ? h?.current === d : h === d))), r = r ?? i?.activeElement;
|
|
6081
6081
|
let a = (() => {
|
|
6082
6082
|
if (t & 5) return 1;
|
|
@@ -6110,8 +6110,8 @@ function Sf() {
|
|
|
6110
6110
|
function Uo() {
|
|
6111
6111
|
return Jl() || Sf();
|
|
6112
6112
|
}
|
|
6113
|
-
function
|
|
6114
|
-
let o =
|
|
6113
|
+
function xt(e, t, n, r) {
|
|
6114
|
+
let o = ht(n);
|
|
6115
6115
|
re(() => {
|
|
6116
6116
|
if (!e) return;
|
|
6117
6117
|
function i(l) {
|
|
@@ -6121,7 +6121,7 @@ function yt(e, t, n, r) {
|
|
|
6121
6121
|
}, [e, t, r]);
|
|
6122
6122
|
}
|
|
6123
6123
|
function Cf(e, t, n, r) {
|
|
6124
|
-
let o =
|
|
6124
|
+
let o = ht(n);
|
|
6125
6125
|
re(() => {
|
|
6126
6126
|
if (!e) return;
|
|
6127
6127
|
function i(l) {
|
|
@@ -6132,7 +6132,7 @@ function Cf(e, t, n, r) {
|
|
|
6132
6132
|
}
|
|
6133
6133
|
const Go = 30;
|
|
6134
6134
|
function kf(e, t, n) {
|
|
6135
|
-
let r =
|
|
6135
|
+
let r = ht(n), o = Z(function(a, s) {
|
|
6136
6136
|
if (a.defaultPrevented) return;
|
|
6137
6137
|
let c = s(a);
|
|
6138
6138
|
if (c === null || !c.getRootNode().contains(c) || !c.isConnected) return;
|
|
@@ -6142,35 +6142,35 @@ function kf(e, t, n) {
|
|
|
6142
6142
|
for (let f of u) if (f !== null && (f.contains(c) || a.composed && a.composedPath().includes(f))) return;
|
|
6143
6143
|
return !Xl(c, io.Loose) && c.tabIndex !== -1 && a.preventDefault(), r.current(a, c);
|
|
6144
6144
|
}, [r, t]), i = U(null);
|
|
6145
|
-
|
|
6145
|
+
xt(e, "pointerdown", (a) => {
|
|
6146
6146
|
var s, c;
|
|
6147
6147
|
Uo() || (i.current = ((c = (s = a.composedPath) == null ? void 0 : s.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
6148
|
-
}, !0),
|
|
6148
|
+
}, !0), xt(e, "pointerup", (a) => {
|
|
6149
6149
|
if (Uo() || !i.current) return;
|
|
6150
6150
|
let s = i.current;
|
|
6151
6151
|
return i.current = null, o(a, () => s);
|
|
6152
6152
|
}, !0);
|
|
6153
6153
|
let l = U({ x: 0, y: 0 });
|
|
6154
|
-
|
|
6154
|
+
xt(e, "touchstart", (a) => {
|
|
6155
6155
|
l.current.x = a.touches[0].clientX, l.current.y = a.touches[0].clientY;
|
|
6156
|
-
}, !0),
|
|
6156
|
+
}, !0), xt(e, "touchend", (a) => {
|
|
6157
6157
|
let s = { x: a.changedTouches[0].clientX, y: a.changedTouches[0].clientY };
|
|
6158
6158
|
if (!(Math.abs(s.x - l.current.x) >= Go || Math.abs(s.y - l.current.y) >= Go)) return o(a, () => nt(a.target) ? a.target : null);
|
|
6159
6159
|
}, !0), Cf(e, "blur", (a) => o(a, () => Id(window.document.activeElement) ? window.document.activeElement : null), !0);
|
|
6160
6160
|
}
|
|
6161
|
-
function
|
|
6161
|
+
function Nr(...e) {
|
|
6162
6162
|
return ce(() => Xt(...e), [...e]);
|
|
6163
6163
|
}
|
|
6164
6164
|
var Pf = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(Pf || {});
|
|
6165
|
-
const an = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, Tf = 200,
|
|
6165
|
+
const an = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, Tf = 200, qo = 5;
|
|
6166
6166
|
function Of(e, { trigger: t, action: n, close: r, select: o }) {
|
|
6167
6167
|
let i = U(null), l = U(null), a = U(null);
|
|
6168
|
-
|
|
6168
|
+
xt(e && t !== null, "pointerdown", (s) => {
|
|
6169
6169
|
Ml(s?.target) && t != null && t.contains(s.target) && (l.current = s.x, a.current = s.y, i.current = s.timeStamp);
|
|
6170
|
-
}),
|
|
6170
|
+
}), xt(e && t !== null, "pointerup", (s) => {
|
|
6171
6171
|
var c, u;
|
|
6172
6172
|
let f = i.current;
|
|
6173
|
-
if (f === null || (i.current = null, !nt(s.target)) || Math.abs(s.x - ((c = l.current) != null ? c : s.x)) <
|
|
6173
|
+
if (f === null || (i.current = null, !nt(s.target)) || Math.abs(s.x - ((c = l.current) != null ? c : s.x)) < qo && Math.abs(s.y - ((u = a.current) != null ? u : s.y)) < qo) return;
|
|
6174
6174
|
let p = n(s);
|
|
6175
6175
|
switch (p.kind) {
|
|
6176
6176
|
case 0:
|
|
@@ -6270,7 +6270,7 @@ function Ff() {
|
|
|
6270
6270
|
t.style(e.documentElement, "overflow", "hidden");
|
|
6271
6271
|
} };
|
|
6272
6272
|
}
|
|
6273
|
-
function
|
|
6273
|
+
function Ko(e) {
|
|
6274
6274
|
let t = {};
|
|
6275
6275
|
for (let n of e) Object.assign(t, n(t));
|
|
6276
6276
|
return t;
|
|
@@ -6278,10 +6278,10 @@ function qo(e) {
|
|
|
6278
6278
|
let st = Af(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
6279
6279
|
var n;
|
|
6280
6280
|
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: $e(), meta: /* @__PURE__ */ new Set(), computedMeta: {} };
|
|
6281
|
-
return r.count++, r.meta.add(t), r.computedMeta =
|
|
6281
|
+
return r.count++, r.meta.add(t), r.computedMeta = Ko(r.meta), this.set(e, r), this;
|
|
6282
6282
|
}, POP(e, t) {
|
|
6283
6283
|
let n = this.get(e);
|
|
6284
|
-
return n && (n.count--, n.meta.delete(t), n.computedMeta =
|
|
6284
|
+
return n && (n.count--, n.meta.delete(t), n.computedMeta = Ko(n.meta)), this;
|
|
6285
6285
|
}, SCROLL_PREVENT(e) {
|
|
6286
6286
|
let t = { doc: e.doc, d: e.d, meta() {
|
|
6287
6287
|
return e.computedMeta;
|
|
@@ -6307,7 +6307,7 @@ function If(e, t, n = () => ({ containers: [] })) {
|
|
|
6307
6307
|
}, [e, t]), i;
|
|
6308
6308
|
}
|
|
6309
6309
|
function Df(e, t, n = () => [document.body]) {
|
|
6310
|
-
let r =
|
|
6310
|
+
let r = Kl(e, "scroll-lock");
|
|
6311
6311
|
If(r, t, (o) => {
|
|
6312
6312
|
var i;
|
|
6313
6313
|
return { containers: [...(i = o.containers) != null ? i : [], n] };
|
|
@@ -6341,7 +6341,7 @@ function lo(e) {
|
|
|
6341
6341
|
return t;
|
|
6342
6342
|
}
|
|
6343
6343
|
function ao(e, t, n, r) {
|
|
6344
|
-
let [o, i] = J(n), { hasFlag: l, addFlag: a, removeFlag: s } = Bf(e && o ? 3 : 0), c = U(!1), u = U(!1), f =
|
|
6344
|
+
let [o, i] = J(n), { hasFlag: l, addFlag: a, removeFlag: s } = Bf(e && o ? 3 : 0), c = U(!1), u = U(!1), f = pt();
|
|
6345
6345
|
return se(() => {
|
|
6346
6346
|
var p;
|
|
6347
6347
|
if (e) {
|
|
@@ -6393,7 +6393,7 @@ function zf(e) {
|
|
|
6393
6393
|
var t, n;
|
|
6394
6394
|
return ((n = (t = e.getAnimations) == null ? void 0 : t.call(e)) != null ? n : []).some((r) => r instanceof CSSTransition && r.playState !== "finished");
|
|
6395
6395
|
}
|
|
6396
|
-
function
|
|
6396
|
+
function In() {
|
|
6397
6397
|
return typeof window < "u";
|
|
6398
6398
|
}
|
|
6399
6399
|
function Ot(e) {
|
|
@@ -6408,16 +6408,16 @@ function He(e) {
|
|
|
6408
6408
|
return (t = (so(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6409
6409
|
}
|
|
6410
6410
|
function so(e) {
|
|
6411
|
-
return
|
|
6411
|
+
return In() ? e instanceof Node || e instanceof xe(e).Node : !1;
|
|
6412
6412
|
}
|
|
6413
6413
|
function X(e) {
|
|
6414
|
-
return
|
|
6414
|
+
return In() ? e instanceof Element || e instanceof xe(e).Element : !1;
|
|
6415
6415
|
}
|
|
6416
6416
|
function Re(e) {
|
|
6417
|
-
return
|
|
6417
|
+
return In() ? e instanceof HTMLElement || e instanceof xe(e).HTMLElement : !1;
|
|
6418
6418
|
}
|
|
6419
|
-
function
|
|
6420
|
-
return !
|
|
6419
|
+
function Fr(e) {
|
|
6420
|
+
return !In() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof xe(e).ShadowRoot;
|
|
6421
6421
|
}
|
|
6422
6422
|
const Uf = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
6423
6423
|
function Zt(e) {
|
|
@@ -6430,12 +6430,12 @@ function Zt(e) {
|
|
|
6430
6430
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Uf.has(o);
|
|
6431
6431
|
}
|
|
6432
6432
|
const Gf = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
6433
|
-
function
|
|
6433
|
+
function qf(e) {
|
|
6434
6434
|
return Gf.has(Ot(e));
|
|
6435
6435
|
}
|
|
6436
|
-
const
|
|
6437
|
-
function
|
|
6438
|
-
return
|
|
6436
|
+
const Kf = [":popover-open", ":modal"];
|
|
6437
|
+
function Dn(e) {
|
|
6438
|
+
return Kf.some((t) => {
|
|
6439
6439
|
try {
|
|
6440
6440
|
return e.matches(t);
|
|
6441
6441
|
} catch {
|
|
@@ -6445,21 +6445,21 @@ function In(e) {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
const Yf = ["transform", "translate", "scale", "rotate", "perspective"], Xf = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Zf = ["paint", "layout", "strict", "content"];
|
|
6447
6447
|
function co(e) {
|
|
6448
|
-
const t =
|
|
6448
|
+
const t = _n(), n = X(e) ? Oe(e) : e;
|
|
6449
6449
|
return Yf.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Xf.some((r) => (n.willChange || "").includes(r)) || Zf.some((r) => (n.contain || "").includes(r));
|
|
6450
6450
|
}
|
|
6451
6451
|
function Jf(e) {
|
|
6452
|
-
let t =
|
|
6452
|
+
let t = qe(e);
|
|
6453
6453
|
for (; Re(t) && !ze(t); ) {
|
|
6454
6454
|
if (co(t))
|
|
6455
6455
|
return t;
|
|
6456
|
-
if (
|
|
6456
|
+
if (Dn(t))
|
|
6457
6457
|
return null;
|
|
6458
|
-
t =
|
|
6458
|
+
t = qe(t);
|
|
6459
6459
|
}
|
|
6460
6460
|
return null;
|
|
6461
6461
|
}
|
|
6462
|
-
function
|
|
6462
|
+
function _n() {
|
|
6463
6463
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
6464
6464
|
}
|
|
6465
6465
|
const Qf = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -6469,7 +6469,7 @@ function ze(e) {
|
|
|
6469
6469
|
function Oe(e) {
|
|
6470
6470
|
return xe(e).getComputedStyle(e);
|
|
6471
6471
|
}
|
|
6472
|
-
function
|
|
6472
|
+
function Bn(e) {
|
|
6473
6473
|
return X(e) ? {
|
|
6474
6474
|
scrollLeft: e.scrollLeft,
|
|
6475
6475
|
scrollTop: e.scrollTop
|
|
@@ -6478,20 +6478,20 @@ function _n(e) {
|
|
|
6478
6478
|
scrollTop: e.scrollY
|
|
6479
6479
|
};
|
|
6480
6480
|
}
|
|
6481
|
-
function
|
|
6481
|
+
function qe(e) {
|
|
6482
6482
|
if (Ot(e) === "html")
|
|
6483
6483
|
return e;
|
|
6484
6484
|
const t = (
|
|
6485
6485
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
6486
6486
|
e.assignedSlot || // DOM Element detected.
|
|
6487
6487
|
e.parentNode || // ShadowRoot detected.
|
|
6488
|
-
|
|
6488
|
+
Fr(e) && e.host || // Fallback.
|
|
6489
6489
|
He(e)
|
|
6490
6490
|
);
|
|
6491
|
-
return
|
|
6491
|
+
return Fr(t) ? t.host : t;
|
|
6492
6492
|
}
|
|
6493
6493
|
function ea(e) {
|
|
6494
|
-
const t =
|
|
6494
|
+
const t = qe(e);
|
|
6495
6495
|
return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && Zt(t) ? t : ea(t);
|
|
6496
6496
|
}
|
|
6497
6497
|
function ot(e, t, n) {
|
|
@@ -6499,12 +6499,12 @@ function ot(e, t, n) {
|
|
|
6499
6499
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6500
6500
|
const o = ea(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), l = xe(o);
|
|
6501
6501
|
if (i) {
|
|
6502
|
-
const a =
|
|
6502
|
+
const a = Ir(l);
|
|
6503
6503
|
return t.concat(l, l.visualViewport || [], Zt(o) ? o : [], a && n ? ot(a) : []);
|
|
6504
6504
|
}
|
|
6505
6505
|
return t.concat(o, ot(o, [], n));
|
|
6506
6506
|
}
|
|
6507
|
-
function
|
|
6507
|
+
function Ir(e) {
|
|
6508
6508
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
6509
6509
|
}
|
|
6510
6510
|
function em() {
|
|
@@ -6517,7 +6517,7 @@ function em() {
|
|
|
6517
6517
|
return n + "/" + r;
|
|
6518
6518
|
}).join(" ") : navigator.userAgent;
|
|
6519
6519
|
}
|
|
6520
|
-
const tm = ["top", "right", "bottom", "left"], Jo = ["start", "end"], Qo = /* @__PURE__ */ tm.reduce((e, t) => e.concat(t, t + "-" + Jo[0], t + "-" + Jo[1]), []),
|
|
6520
|
+
const tm = ["top", "right", "bottom", "left"], Jo = ["start", "end"], Qo = /* @__PURE__ */ tm.reduce((e, t) => e.concat(t, t + "-" + Jo[0], t + "-" + Jo[1]), []), ft = Math.min, pe = Math.max, Wt = Math.round, sn = Math.floor, Ie = (e) => ({
|
|
6521
6521
|
x: e,
|
|
6522
6522
|
y: e
|
|
6523
6523
|
}), nm = {
|
|
@@ -6530,9 +6530,9 @@ const tm = ["top", "right", "bottom", "left"], Jo = ["start", "end"], Qo = /* @_
|
|
|
6530
6530
|
end: "start"
|
|
6531
6531
|
};
|
|
6532
6532
|
function ei(e, t, n) {
|
|
6533
|
-
return pe(e,
|
|
6533
|
+
return pe(e, ft(t, n));
|
|
6534
6534
|
}
|
|
6535
|
-
function
|
|
6535
|
+
function gt(e, t) {
|
|
6536
6536
|
return typeof e == "function" ? e(t) : e;
|
|
6537
6537
|
}
|
|
6538
6538
|
function Be(e) {
|
|
@@ -6558,13 +6558,13 @@ function oa(e, t, n) {
|
|
|
6558
6558
|
n === void 0 && (n = !1);
|
|
6559
6559
|
const r = De(e), o = ra(e), i = na(o);
|
|
6560
6560
|
let l = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
6561
|
-
return t.reference[i] > t.floating[i] && (l =
|
|
6561
|
+
return t.reference[i] > t.floating[i] && (l = Cn(l)), [l, Cn(l)];
|
|
6562
6562
|
}
|
|
6563
6563
|
function im(e) {
|
|
6564
|
-
const t =
|
|
6565
|
-
return [
|
|
6564
|
+
const t = Cn(e);
|
|
6565
|
+
return [Sn(e), t, Sn(t)];
|
|
6566
6566
|
}
|
|
6567
|
-
function
|
|
6567
|
+
function Sn(e) {
|
|
6568
6568
|
return e.replace(/start|end/g, (t) => rm[t]);
|
|
6569
6569
|
}
|
|
6570
6570
|
const ti = ["left", "right"], ni = ["right", "left"], lm = ["top", "bottom"], am = ["bottom", "top"];
|
|
@@ -6583,9 +6583,9 @@ function sm(e, t, n) {
|
|
|
6583
6583
|
function cm(e, t, n, r) {
|
|
6584
6584
|
const o = De(e);
|
|
6585
6585
|
let i = sm(Be(e), n === "start", r);
|
|
6586
|
-
return o && (i = i.map((l) => l + "-" + o), t && (i = i.concat(i.map(
|
|
6586
|
+
return o && (i = i.map((l) => l + "-" + o), t && (i = i.concat(i.map(Sn)))), i;
|
|
6587
6587
|
}
|
|
6588
|
-
function
|
|
6588
|
+
function Cn(e) {
|
|
6589
6589
|
return e.replace(/left|right|bottom|top/g, (t) => nm[t]);
|
|
6590
6590
|
}
|
|
6591
6591
|
function um(e) {
|
|
@@ -6605,7 +6605,7 @@ function dm(e) {
|
|
|
6605
6605
|
left: e
|
|
6606
6606
|
};
|
|
6607
6607
|
}
|
|
6608
|
-
function
|
|
6608
|
+
function kn(e) {
|
|
6609
6609
|
const {
|
|
6610
6610
|
x: t,
|
|
6611
6611
|
y: n,
|
|
@@ -6748,7 +6748,7 @@ async function Jt(e, t) {
|
|
|
6748
6748
|
elementContext: f = "floating",
|
|
6749
6749
|
altBoundary: p = !1,
|
|
6750
6750
|
padding: d = 0
|
|
6751
|
-
} =
|
|
6751
|
+
} = gt(t, e), h = dm(d), v = a[p ? f === "floating" ? "reference" : "floating" : f], b = kn(await i.getClippingRect({
|
|
6752
6752
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
6753
6753
|
boundary: c,
|
|
6754
6754
|
rootBoundary: u,
|
|
@@ -6764,7 +6764,7 @@ async function Jt(e, t) {
|
|
|
6764
6764
|
} : {
|
|
6765
6765
|
x: 1,
|
|
6766
6766
|
y: 1
|
|
6767
|
-
}, E =
|
|
6767
|
+
}, E = kn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6768
6768
|
elements: a,
|
|
6769
6769
|
rect: y,
|
|
6770
6770
|
offsetParent: w,
|
|
@@ -6778,7 +6778,7 @@ async function Jt(e, t) {
|
|
|
6778
6778
|
};
|
|
6779
6779
|
}
|
|
6780
6780
|
function mm(e, t, n) {
|
|
6781
|
-
return (e ? [...n.filter((o) => De(o) === e), ...n.filter((o) => De(o) !== e)] : n.filter((o) => Be(o) === o)).filter((o) => e ? De(o) === e || (t ?
|
|
6781
|
+
return (e ? [...n.filter((o) => De(o) === e), ...n.filter((o) => De(o) !== e)] : n.filter((o) => Be(o) === o)).filter((o) => e ? De(o) === e || (t ? Sn(o) !== o : !1) : !0);
|
|
6782
6782
|
}
|
|
6783
6783
|
const pm = function(e) {
|
|
6784
6784
|
return e === void 0 && (e = {}), {
|
|
@@ -6798,7 +6798,7 @@ const pm = function(e) {
|
|
|
6798
6798
|
allowedPlacements: p = Qo,
|
|
6799
6799
|
autoAlignment: d = !0,
|
|
6800
6800
|
...h
|
|
6801
|
-
} =
|
|
6801
|
+
} = gt(e, t), g = f !== void 0 || p === Qo ? mm(f || null, d, p) : p, v = await Jt(t, h), b = ((n = l.autoPlacement) == null ? void 0 : n.index) || 0, y = g[b];
|
|
6802
6802
|
if (y == null)
|
|
6803
6803
|
return {};
|
|
6804
6804
|
const w = oa(y, i, await (s.isRTL == null ? void 0 : s.isRTL(c.floating)));
|
|
@@ -6869,10 +6869,10 @@ const pm = function(e) {
|
|
|
6869
6869
|
fallbackAxisSideDirection: h = "none",
|
|
6870
6870
|
flipAlignment: g = !0,
|
|
6871
6871
|
...v
|
|
6872
|
-
} =
|
|
6872
|
+
} = gt(e, t);
|
|
6873
6873
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6874
6874
|
return {};
|
|
6875
|
-
const b = Be(o), y = je(a), w = Be(a) === a, $ = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), E = p || (w || !g ? [
|
|
6875
|
+
const b = Be(o), y = je(a), w = Be(a) === a, $ = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), E = p || (w || !g ? [Cn(a)] : im(a)), k = h !== "none";
|
|
6876
6876
|
!p && k && E.push(...cm(a, g, h, $));
|
|
6877
6877
|
const P = [a, ...E], C = await Jt(t, v), M = [];
|
|
6878
6878
|
let S = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -6935,7 +6935,7 @@ async function vm(e, t) {
|
|
|
6935
6935
|
placement: n,
|
|
6936
6936
|
platform: r,
|
|
6937
6937
|
elements: o
|
|
6938
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), l = Be(n), a = De(n), s = je(n) === "y", c = gm.has(l) ? -1 : 1, u = i && s ? -1 : 1, f =
|
|
6938
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), l = Be(n), a = De(n), s = je(n) === "y", c = gm.has(l) ? -1 : 1, u = i && s ? -1 : 1, f = gt(t, e);
|
|
6939
6939
|
let {
|
|
6940
6940
|
mainAxis: p,
|
|
6941
6941
|
crossAxis: d,
|
|
@@ -7004,7 +7004,7 @@ const bm = function(e) {
|
|
|
7004
7004
|
}
|
|
7005
7005
|
},
|
|
7006
7006
|
...s
|
|
7007
|
-
} =
|
|
7007
|
+
} = gt(e, t), c = {
|
|
7008
7008
|
x: n,
|
|
7009
7009
|
y: r
|
|
7010
7010
|
}, u = await Jt(t, s), f = je(Be(o)), p = ta(f);
|
|
@@ -7050,13 +7050,13 @@ const bm = function(e) {
|
|
|
7050
7050
|
apply: s = () => {
|
|
7051
7051
|
},
|
|
7052
7052
|
...c
|
|
7053
|
-
} =
|
|
7053
|
+
} = gt(e, t), u = await Jt(t, c), f = Be(o), p = De(o), d = je(o) === "y", {
|
|
7054
7054
|
width: h,
|
|
7055
7055
|
height: g
|
|
7056
7056
|
} = i.floating;
|
|
7057
7057
|
let v, b;
|
|
7058
7058
|
f === "top" || f === "bottom" ? (v = f, b = p === (await (l.isRTL == null ? void 0 : l.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = f, v = p === "end" ? "top" : "bottom");
|
|
7059
|
-
const y = g - u.top - u.bottom, w = h - u.left - u.right, $ =
|
|
7059
|
+
const y = g - u.top - u.bottom, w = h - u.left - u.right, $ = ft(g - u[v], y), E = ft(h - u[b], w), k = !t.middlewareData.shift;
|
|
7060
7060
|
let P = $, C = E;
|
|
7061
7061
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = w), (r = t.middlewareData.shift) != null && r.enabled.y && (P = y), k && !p) {
|
|
7062
7062
|
const S = pe(u.left, 0), I = pe(u.right, 0), W = pe(u.top, 0), z = pe(u.bottom, 0);
|
|
@@ -7089,7 +7089,7 @@ function ia(e) {
|
|
|
7089
7089
|
function uo(e) {
|
|
7090
7090
|
return X(e) ? e : e.contextElement;
|
|
7091
7091
|
}
|
|
7092
|
-
function
|
|
7092
|
+
function Rt(e) {
|
|
7093
7093
|
const t = uo(e);
|
|
7094
7094
|
if (!Re(t))
|
|
7095
7095
|
return Ie(1);
|
|
@@ -7107,7 +7107,7 @@ function Et(e) {
|
|
|
7107
7107
|
const xm = /* @__PURE__ */ Ie(0);
|
|
7108
7108
|
function la(e) {
|
|
7109
7109
|
const t = xe(e);
|
|
7110
|
-
return !
|
|
7110
|
+
return !_n() || !t.visualViewport ? xm : {
|
|
7111
7111
|
x: t.visualViewport.offsetLeft,
|
|
7112
7112
|
y: t.visualViewport.offsetTop
|
|
7113
7113
|
};
|
|
@@ -7115,34 +7115,34 @@ function la(e) {
|
|
|
7115
7115
|
function Em(e, t, n) {
|
|
7116
7116
|
return t === void 0 && (t = !1), !n || t && n !== xe(e) ? !1 : t;
|
|
7117
7117
|
}
|
|
7118
|
-
function
|
|
7118
|
+
function mt(e, t, n, r) {
|
|
7119
7119
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7120
7120
|
const o = e.getBoundingClientRect(), i = uo(e);
|
|
7121
7121
|
let l = Ie(1);
|
|
7122
|
-
t && (r ? X(r) && (l =
|
|
7122
|
+
t && (r ? X(r) && (l = Rt(r)) : l = Rt(e));
|
|
7123
7123
|
const a = Em(i, n, r) ? la(i) : Ie(0);
|
|
7124
7124
|
let s = (o.left + a.x) / l.x, c = (o.top + a.y) / l.y, u = o.width / l.x, f = o.height / l.y;
|
|
7125
7125
|
if (i) {
|
|
7126
7126
|
const p = xe(i), d = r && X(r) ? xe(r) : r;
|
|
7127
|
-
let h = p, g =
|
|
7127
|
+
let h = p, g = Ir(h);
|
|
7128
7128
|
for (; g && r && d !== h; ) {
|
|
7129
|
-
const v =
|
|
7130
|
-
s *= v.x, c *= v.y, u *= v.x, f *= v.y, s += w, c += $, h = xe(g), g =
|
|
7129
|
+
const v = Rt(g), b = g.getBoundingClientRect(), y = Oe(g), w = b.left + (g.clientLeft + parseFloat(y.paddingLeft)) * v.x, $ = b.top + (g.clientTop + parseFloat(y.paddingTop)) * v.y;
|
|
7130
|
+
s *= v.x, c *= v.y, u *= v.x, f *= v.y, s += w, c += $, h = xe(g), g = Ir(h);
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
return
|
|
7133
|
+
return kn({
|
|
7134
7134
|
width: u,
|
|
7135
7135
|
height: f,
|
|
7136
7136
|
x: s,
|
|
7137
7137
|
y: c
|
|
7138
7138
|
});
|
|
7139
7139
|
}
|
|
7140
|
-
function
|
|
7141
|
-
const n =
|
|
7142
|
-
return t ? t.left + n :
|
|
7140
|
+
function Hn(e, t) {
|
|
7141
|
+
const n = Bn(e).scrollLeft;
|
|
7142
|
+
return t ? t.left + n : mt(He(e)).left + n;
|
|
7143
7143
|
}
|
|
7144
7144
|
function aa(e, t) {
|
|
7145
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
7145
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Hn(e, n), o = n.top + t.scrollTop;
|
|
7146
7146
|
return {
|
|
7147
7147
|
x: r,
|
|
7148
7148
|
y: o
|
|
@@ -7155,7 +7155,7 @@ function Rm(e) {
|
|
|
7155
7155
|
offsetParent: r,
|
|
7156
7156
|
strategy: o
|
|
7157
7157
|
} = e;
|
|
7158
|
-
const i = o === "fixed", l = He(r), a = t ?
|
|
7158
|
+
const i = o === "fixed", l = He(r), a = t ? Dn(t.floating) : !1;
|
|
7159
7159
|
if (r === l || a && i)
|
|
7160
7160
|
return n;
|
|
7161
7161
|
let s = {
|
|
@@ -7163,9 +7163,9 @@ function Rm(e) {
|
|
|
7163
7163
|
scrollTop: 0
|
|
7164
7164
|
}, c = Ie(1);
|
|
7165
7165
|
const u = Ie(0), f = Re(r);
|
|
7166
|
-
if ((f || !f && !i) && ((Ot(r) !== "body" || Zt(l)) && (s =
|
|
7167
|
-
const d =
|
|
7168
|
-
c =
|
|
7166
|
+
if ((f || !f && !i) && ((Ot(r) !== "body" || Zt(l)) && (s = Bn(r)), Re(r))) {
|
|
7167
|
+
const d = mt(r);
|
|
7168
|
+
c = Rt(r), u.x = d.x + r.clientLeft, u.y = d.y + r.clientTop;
|
|
7169
7169
|
}
|
|
7170
7170
|
const p = l && !f && !i ? aa(l, s) : Ie(0);
|
|
7171
7171
|
return {
|
|
@@ -7179,8 +7179,8 @@ function $m(e) {
|
|
|
7179
7179
|
return Array.from(e.getClientRects());
|
|
7180
7180
|
}
|
|
7181
7181
|
function Sm(e) {
|
|
7182
|
-
const t = He(e), n =
|
|
7183
|
-
let l = -n.scrollLeft +
|
|
7182
|
+
const t = He(e), n = Bn(e), r = e.ownerDocument.body, o = pe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = pe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7183
|
+
let l = -n.scrollLeft + Hn(e);
|
|
7184
7184
|
const a = -n.scrollTop;
|
|
7185
7185
|
return Oe(r).direction === "rtl" && (l += pe(t.clientWidth, r.clientWidth) - o), {
|
|
7186
7186
|
width: o,
|
|
@@ -7195,10 +7195,10 @@ function Cm(e, t) {
|
|
|
7195
7195
|
let i = r.clientWidth, l = r.clientHeight, a = 0, s = 0;
|
|
7196
7196
|
if (o) {
|
|
7197
7197
|
i = o.width, l = o.height;
|
|
7198
|
-
const u =
|
|
7198
|
+
const u = _n();
|
|
7199
7199
|
(!u || u && t === "fixed") && (a = o.offsetLeft, s = o.offsetTop);
|
|
7200
7200
|
}
|
|
7201
|
-
const c =
|
|
7201
|
+
const c = Hn(r);
|
|
7202
7202
|
if (c <= 0) {
|
|
7203
7203
|
const u = r.ownerDocument, f = u.body, p = getComputedStyle(f), d = u.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, h = Math.abs(r.clientWidth - f.clientWidth - d);
|
|
7204
7204
|
h <= oi && (i -= h);
|
|
@@ -7212,7 +7212,7 @@ function Cm(e, t) {
|
|
|
7212
7212
|
}
|
|
7213
7213
|
const km = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
7214
7214
|
function Pm(e, t) {
|
|
7215
|
-
const n =
|
|
7215
|
+
const n = mt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Re(e) ? Rt(e) : Ie(1), l = e.clientWidth * i.x, a = e.clientHeight * i.y, s = o * i.x, c = r * i.y;
|
|
7216
7216
|
return {
|
|
7217
7217
|
width: l,
|
|
7218
7218
|
height: a,
|
|
@@ -7237,10 +7237,10 @@ function ii(e, t, n) {
|
|
|
7237
7237
|
height: t.height
|
|
7238
7238
|
};
|
|
7239
7239
|
}
|
|
7240
|
-
return
|
|
7240
|
+
return kn(r);
|
|
7241
7241
|
}
|
|
7242
7242
|
function sa(e, t) {
|
|
7243
|
-
const n =
|
|
7243
|
+
const n = qe(e);
|
|
7244
7244
|
return n === t || !X(n) || ze(n) ? !1 : Oe(n).position === "fixed" || sa(n, t);
|
|
7245
7245
|
}
|
|
7246
7246
|
function Tm(e, t) {
|
|
@@ -7249,10 +7249,10 @@ function Tm(e, t) {
|
|
|
7249
7249
|
return n;
|
|
7250
7250
|
let r = ot(e, [], !1).filter((a) => X(a) && Ot(a) !== "body"), o = null;
|
|
7251
7251
|
const i = Oe(e).position === "fixed";
|
|
7252
|
-
let l = i ?
|
|
7252
|
+
let l = i ? qe(e) : e;
|
|
7253
7253
|
for (; X(l) && !ze(l); ) {
|
|
7254
7254
|
const a = Oe(l), s = co(l);
|
|
7255
|
-
!s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && km.has(o.position) || Zt(l) && !s && sa(e, l)) ? r = r.filter((u) => u !== l) : o = a, l =
|
|
7255
|
+
!s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && km.has(o.position) || Zt(l) && !s && sa(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = qe(l);
|
|
7256
7256
|
}
|
|
7257
7257
|
return t.set(e, r), r;
|
|
7258
7258
|
}
|
|
@@ -7263,9 +7263,9 @@ function Om(e) {
|
|
|
7263
7263
|
rootBoundary: r,
|
|
7264
7264
|
strategy: o
|
|
7265
7265
|
} = e;
|
|
7266
|
-
const l = [...n === "clippingAncestors" ?
|
|
7266
|
+
const l = [...n === "clippingAncestors" ? Dn(t) ? [] : Tm(t, this._c) : [].concat(n), r], a = l[0], s = l.reduce((c, u) => {
|
|
7267
7267
|
const f = ii(t, u, o);
|
|
7268
|
-
return c.top = pe(f.top, c.top), c.right =
|
|
7268
|
+
return c.top = pe(f.top, c.top), c.right = ft(f.right, c.right), c.bottom = ft(f.bottom, c.bottom), c.left = pe(f.left, c.left), c;
|
|
7269
7269
|
}, ii(t, a, o));
|
|
7270
7270
|
return {
|
|
7271
7271
|
width: s.right - s.left,
|
|
@@ -7285,18 +7285,18 @@ function Lm(e) {
|
|
|
7285
7285
|
};
|
|
7286
7286
|
}
|
|
7287
7287
|
function Am(e, t, n) {
|
|
7288
|
-
const r = Re(t), o = He(t), i = n === "fixed", l =
|
|
7288
|
+
const r = Re(t), o = He(t), i = n === "fixed", l = mt(e, !0, i, t);
|
|
7289
7289
|
let a = {
|
|
7290
7290
|
scrollLeft: 0,
|
|
7291
7291
|
scrollTop: 0
|
|
7292
7292
|
};
|
|
7293
7293
|
const s = Ie(0);
|
|
7294
7294
|
function c() {
|
|
7295
|
-
s.x =
|
|
7295
|
+
s.x = Hn(o);
|
|
7296
7296
|
}
|
|
7297
7297
|
if (r || !r && !i)
|
|
7298
|
-
if ((Ot(t) !== "body" || Zt(o)) && (a =
|
|
7299
|
-
const d =
|
|
7298
|
+
if ((Ot(t) !== "body" || Zt(o)) && (a = Bn(t)), r) {
|
|
7299
|
+
const d = mt(t, !0, i, t);
|
|
7300
7300
|
s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
|
|
7301
7301
|
} else o && c();
|
|
7302
7302
|
i && !r && o && c();
|
|
@@ -7308,7 +7308,7 @@ function Am(e, t, n) {
|
|
|
7308
7308
|
height: l.height
|
|
7309
7309
|
};
|
|
7310
7310
|
}
|
|
7311
|
-
function
|
|
7311
|
+
function cr(e) {
|
|
7312
7312
|
return Oe(e).position === "static";
|
|
7313
7313
|
}
|
|
7314
7314
|
function li(e, t) {
|
|
@@ -7321,21 +7321,21 @@ function li(e, t) {
|
|
|
7321
7321
|
}
|
|
7322
7322
|
function ca(e, t) {
|
|
7323
7323
|
const n = xe(e);
|
|
7324
|
-
if (
|
|
7324
|
+
if (Dn(e))
|
|
7325
7325
|
return n;
|
|
7326
7326
|
if (!Re(e)) {
|
|
7327
|
-
let o =
|
|
7327
|
+
let o = qe(e);
|
|
7328
7328
|
for (; o && !ze(o); ) {
|
|
7329
|
-
if (X(o) && !
|
|
7329
|
+
if (X(o) && !cr(o))
|
|
7330
7330
|
return o;
|
|
7331
|
-
o =
|
|
7331
|
+
o = qe(o);
|
|
7332
7332
|
}
|
|
7333
7333
|
return n;
|
|
7334
7334
|
}
|
|
7335
7335
|
let r = li(e, t);
|
|
7336
|
-
for (; r &&
|
|
7336
|
+
for (; r && qf(r) && cr(r); )
|
|
7337
7337
|
r = li(r, t);
|
|
7338
|
-
return r && ze(r) &&
|
|
7338
|
+
return r && ze(r) && cr(r) && !co(r) ? n : r || Jf(e) || n;
|
|
7339
7339
|
}
|
|
7340
7340
|
const Mm = async function(e) {
|
|
7341
7341
|
const t = this.getOffsetParent || ca, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -7360,7 +7360,7 @@ const Fm = {
|
|
|
7360
7360
|
getElementRects: Mm,
|
|
7361
7361
|
getClientRects: $m,
|
|
7362
7362
|
getDimensions: Lm,
|
|
7363
|
-
getScale:
|
|
7363
|
+
getScale: Rt,
|
|
7364
7364
|
isElement: X,
|
|
7365
7365
|
isRTL: Nm
|
|
7366
7366
|
};
|
|
@@ -7386,7 +7386,7 @@ function Im(e, t) {
|
|
|
7386
7386
|
return;
|
|
7387
7387
|
const h = sn(f), g = sn(o.clientWidth - (u + p)), v = sn(o.clientHeight - (f + d)), b = sn(u), w = {
|
|
7388
7388
|
rootMargin: -h + "px " + -g + "px " + -v + "px " + -b + "px",
|
|
7389
|
-
threshold: pe(0,
|
|
7389
|
+
threshold: pe(0, ft(1, s)) || 1
|
|
7390
7390
|
};
|
|
7391
7391
|
let $ = !0;
|
|
7392
7392
|
function E(k) {
|
|
@@ -7436,10 +7436,10 @@ function Dm(e, t, n, r) {
|
|
|
7436
7436
|
(w = d) == null || w.observe(t);
|
|
7437
7437
|
})), n();
|
|
7438
7438
|
}), c && !s && d.observe(c), d.observe(t));
|
|
7439
|
-
let h, g = s ?
|
|
7439
|
+
let h, g = s ? mt(e) : null;
|
|
7440
7440
|
s && v();
|
|
7441
7441
|
function v() {
|
|
7442
|
-
const b =
|
|
7442
|
+
const b = mt(e);
|
|
7443
7443
|
g && !ua(g, b) && n(), g = b, h = requestAnimationFrame(v);
|
|
7444
7444
|
}
|
|
7445
7445
|
return n(), () => {
|
|
@@ -7449,7 +7449,7 @@ function Dm(e, t, n, r) {
|
|
|
7449
7449
|
}), f?.(), (b = d) == null || b.disconnect(), d = null, s && cancelAnimationFrame(h);
|
|
7450
7450
|
};
|
|
7451
7451
|
}
|
|
7452
|
-
const
|
|
7452
|
+
const ur = Jt, _m = bm, Bm = pm, Hm = wm, Vm = hm, jm = ym, Wm = (e, t, n) => {
|
|
7453
7453
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7454
7454
|
platform: Fm,
|
|
7455
7455
|
...n
|
|
@@ -7464,7 +7464,7 @@ const cr = Jt, _m = bm, Bm = pm, Hm = wm, Vm = hm, jm = ym, Wm = (e, t, n) => {
|
|
|
7464
7464
|
};
|
|
7465
7465
|
var zm = typeof document < "u", Um = function() {
|
|
7466
7466
|
}, mn = zm ? Gt : Um;
|
|
7467
|
-
function
|
|
7467
|
+
function Pn(e, t) {
|
|
7468
7468
|
if (e === t)
|
|
7469
7469
|
return !0;
|
|
7470
7470
|
if (typeof e != typeof t)
|
|
@@ -7476,7 +7476,7 @@ function kn(e, t) {
|
|
|
7476
7476
|
if (Array.isArray(e)) {
|
|
7477
7477
|
if (n = e.length, n !== t.length) return !1;
|
|
7478
7478
|
for (r = n; r-- !== 0; )
|
|
7479
|
-
if (!
|
|
7479
|
+
if (!Pn(e[r], t[r]))
|
|
7480
7480
|
return !1;
|
|
7481
7481
|
return !0;
|
|
7482
7482
|
}
|
|
@@ -7487,7 +7487,7 @@ function kn(e, t) {
|
|
|
7487
7487
|
return !1;
|
|
7488
7488
|
for (r = n; r-- !== 0; ) {
|
|
7489
7489
|
const i = o[r];
|
|
7490
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
7490
|
+
if (!(i === "_owner" && e.$$typeof) && !Pn(e[i], t[i]))
|
|
7491
7491
|
return !1;
|
|
7492
7492
|
}
|
|
7493
7493
|
return !0;
|
|
@@ -7501,7 +7501,7 @@ function ai(e, t) {
|
|
|
7501
7501
|
const n = da(e);
|
|
7502
7502
|
return Math.round(t * n) / n;
|
|
7503
7503
|
}
|
|
7504
|
-
function
|
|
7504
|
+
function dr(e) {
|
|
7505
7505
|
const t = m.useRef(e);
|
|
7506
7506
|
return mn(() => {
|
|
7507
7507
|
t.current = e;
|
|
@@ -7529,12 +7529,12 @@ function fa(e) {
|
|
|
7529
7529
|
middlewareData: {},
|
|
7530
7530
|
isPositioned: !1
|
|
7531
7531
|
}), [p, d] = m.useState(r);
|
|
7532
|
-
|
|
7532
|
+
Pn(p, r) || d(r);
|
|
7533
7533
|
const [h, g] = m.useState(null), [v, b] = m.useState(null), y = m.useCallback((x) => {
|
|
7534
7534
|
x !== k.current && (k.current = x, g(x));
|
|
7535
7535
|
}, []), w = m.useCallback((x) => {
|
|
7536
7536
|
x !== P.current && (P.current = x, b(x));
|
|
7537
|
-
}, []), $ = i || h, E = l || v, k = m.useRef(null), P = m.useRef(null), C = m.useRef(u), M = s != null, S =
|
|
7537
|
+
}, []), $ = i || h, E = l || v, k = m.useRef(null), P = m.useRef(null), C = m.useRef(u), M = s != null, S = dr(s), I = dr(o), W = dr(c), z = m.useCallback(() => {
|
|
7538
7538
|
if (!k.current || !P.current)
|
|
7539
7539
|
return;
|
|
7540
7540
|
const x = {
|
|
@@ -7551,7 +7551,7 @@ function fa(e) {
|
|
|
7551
7551
|
// setting it to `true` when `open === false` (must be specified).
|
|
7552
7552
|
isPositioned: W.current !== !1
|
|
7553
7553
|
};
|
|
7554
|
-
T.current && !
|
|
7554
|
+
T.current && !Pn(C.current, V) && (C.current = V, bn.flushSync(() => {
|
|
7555
7555
|
f(V);
|
|
7556
7556
|
}));
|
|
7557
7557
|
});
|
|
@@ -7618,10 +7618,10 @@ const fo = (e, t) => ({
|
|
|
7618
7618
|
}), Gm = (e, t) => ({
|
|
7619
7619
|
...Vm(e),
|
|
7620
7620
|
options: [e, t]
|
|
7621
|
-
}),
|
|
7621
|
+
}), qm = (e, t) => ({
|
|
7622
7622
|
...jm(e),
|
|
7623
7623
|
options: [e, t]
|
|
7624
|
-
}),
|
|
7624
|
+
}), Km = (e, t) => ({
|
|
7625
7625
|
...Bm(e),
|
|
7626
7626
|
options: [e, t]
|
|
7627
7627
|
}), pa = {
|
|
@@ -7640,7 +7640,7 @@ function ha(e) {
|
|
|
7640
7640
|
return t.current == null ? void 0 : t.current(...r);
|
|
7641
7641
|
}, []);
|
|
7642
7642
|
}
|
|
7643
|
-
var
|
|
7643
|
+
var Dr = typeof document < "u" ? Gt : re;
|
|
7644
7644
|
let si = !1, Zm = 0;
|
|
7645
7645
|
const ci = () => (
|
|
7646
7646
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
@@ -7649,7 +7649,7 @@ const ci = () => (
|
|
|
7649
7649
|
);
|
|
7650
7650
|
function Jm() {
|
|
7651
7651
|
const [e, t] = m.useState(() => si ? ci() : void 0);
|
|
7652
|
-
return
|
|
7652
|
+
return Dr(() => {
|
|
7653
7653
|
e == null && t(ci());
|
|
7654
7654
|
}, []), m.useEffect(() => {
|
|
7655
7655
|
si = !0;
|
|
@@ -7742,7 +7742,7 @@ function up(e) {
|
|
|
7742
7742
|
...e.elements
|
|
7743
7743
|
}
|
|
7744
7744
|
}), r = e.rootContext || n, o = r.elements, [i, l] = m.useState(null), [a, s] = m.useState(null), u = o?.domReference || i, f = m.useRef(null), p = ap();
|
|
7745
|
-
|
|
7745
|
+
Dr(() => {
|
|
7746
7746
|
u && (f.current = u);
|
|
7747
7747
|
}, [u]);
|
|
7748
7748
|
const d = fa({
|
|
@@ -7779,7 +7779,7 @@ function up(e) {
|
|
|
7779
7779
|
elements: b,
|
|
7780
7780
|
nodeId: t
|
|
7781
7781
|
}), [d, v, b, t, r]);
|
|
7782
|
-
return
|
|
7782
|
+
return Dr(() => {
|
|
7783
7783
|
r.dataRef.current.floatingContext = y;
|
|
7784
7784
|
const w = p?.nodesRef.current.find(($) => $.id === t);
|
|
7785
7785
|
w && (w.context = y);
|
|
@@ -7791,7 +7791,7 @@ function up(e) {
|
|
|
7791
7791
|
}), [d, v, b, y]);
|
|
7792
7792
|
}
|
|
7793
7793
|
const ui = "active", di = "selected";
|
|
7794
|
-
function
|
|
7794
|
+
function fr(e, t, n) {
|
|
7795
7795
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
7796
7796
|
let i = e;
|
|
7797
7797
|
if (o && e) {
|
|
@@ -7831,15 +7831,15 @@ function dr(e, t, n) {
|
|
|
7831
7831
|
function dp(e) {
|
|
7832
7832
|
e === void 0 && (e = []);
|
|
7833
7833
|
const t = e.map((a) => a?.reference), n = e.map((a) => a?.floating), r = e.map((a) => a?.item), o = m.useCallback(
|
|
7834
|
-
(a) =>
|
|
7834
|
+
(a) => fr(a, e, "reference"),
|
|
7835
7835
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7836
7836
|
t
|
|
7837
7837
|
), i = m.useCallback(
|
|
7838
|
-
(a) =>
|
|
7838
|
+
(a) => fr(a, e, "floating"),
|
|
7839
7839
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7840
7840
|
n
|
|
7841
7841
|
), l = m.useCallback(
|
|
7842
|
-
(a) =>
|
|
7842
|
+
(a) => fr(a, e, "item"),
|
|
7843
7843
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7844
7844
|
r
|
|
7845
7845
|
);
|
|
@@ -7875,7 +7875,7 @@ const fp = (e) => ({
|
|
|
7875
7875
|
referenceOverflowThreshold: s = 0,
|
|
7876
7876
|
scrollRef: c,
|
|
7877
7877
|
...u
|
|
7878
|
-
} =
|
|
7878
|
+
} = gt(e, t), {
|
|
7879
7879
|
rects: f,
|
|
7880
7880
|
elements: {
|
|
7881
7881
|
floating: p
|
|
@@ -7886,15 +7886,15 @@ const fp = (e) => ({
|
|
|
7886
7886
|
const w = {
|
|
7887
7887
|
...t,
|
|
7888
7888
|
...await fo(-d.offsetTop - p.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - i).fn(t)
|
|
7889
|
-
}, $ = await
|
|
7889
|
+
}, $ = await ur(fi(w, h.scrollHeight + g + p.clientTop), u), E = await ur(w, {
|
|
7890
7890
|
...u,
|
|
7891
7891
|
elementContext: "reference"
|
|
7892
7892
|
}), k = pe(0, $.top), P = w.y + k, S = (h.scrollHeight > h.clientHeight ? (I) => I : Wt)(pe(0, h.scrollHeight + (v && y || b ? g * 2 : 0) - k - pe(0, $.bottom)));
|
|
7893
7893
|
if (h.style.maxHeight = S + "px", h.scrollTop = k, o) {
|
|
7894
|
-
const I = h.offsetHeight < d.offsetHeight *
|
|
7894
|
+
const I = h.offsetHeight < d.offsetHeight * ft(a, n.current.length) - 1 || E.top >= -s || E.bottom >= -s;
|
|
7895
7895
|
bn.flushSync(() => o(I));
|
|
7896
7896
|
}
|
|
7897
|
-
return r && (r.current = await
|
|
7897
|
+
return r && (r.current = await ur(fi({
|
|
7898
7898
|
...w,
|
|
7899
7899
|
y: P
|
|
7900
7900
|
}, h.offsetHeight + g + p.clientTop), u)), {
|
|
@@ -8016,11 +8016,11 @@ function wp({ children: e, enabled: t = !0 }) {
|
|
|
8016
8016
|
let V = O * _ - x + A;
|
|
8017
8017
|
return L >= V ? L : V;
|
|
8018
8018
|
});
|
|
8019
|
-
} }) : null,
|
|
8019
|
+
} }) : null, qm({ padding: d, apply({ availableWidth: I, availableHeight: W, elements: z }) {
|
|
8020
8020
|
Object.assign(z.floating.style, { overflow: "auto", maxWidth: `${I}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${W}px)` });
|
|
8021
8021
|
} })].filter(Boolean), whileElementsMounted: Dm }), [$ = g, E = v] = w.placement.split("-");
|
|
8022
8022
|
g === "selection" && ($ = "selection");
|
|
8023
|
-
let k = ce(() => ({ anchor: [$, E].filter(Boolean).join(" ") }), [$, E]), P = mp(w, { overflowRef: l, onChange: i }), { getReferenceProps: C, getFloatingProps: M } = dp([P]), S =
|
|
8023
|
+
let k = ce(() => ({ anchor: [$, E].filter(Boolean).join(" ") }), [$, E]), P = mp(w, { overflowRef: l, onChange: i }), { getReferenceProps: C, getFloatingProps: M } = dp([P]), S = q((I) => {
|
|
8024
8024
|
s(I), b.setFloating(I);
|
|
8025
8025
|
});
|
|
8026
8026
|
return m.createElement(mo.Provider, { value: r }, m.createElement(Lt.Provider, { value: { setFloating: S, setReference: b.setReference, styles: y, getReferenceProps: C, getFloatingProps: M, slot: k } }, e));
|
|
@@ -8041,11 +8041,11 @@ function yp(e) {
|
|
|
8041
8041
|
}
|
|
8042
8042
|
function xp(e, t) {
|
|
8043
8043
|
var n, r, o;
|
|
8044
|
-
let i =
|
|
8044
|
+
let i = mr((n = e?.gap) != null ? n : "var(--anchor-gap, 0)", t), l = mr((r = e?.offset) != null ? r : "var(--anchor-offset, 0)", t), a = mr((o = e?.padding) != null ? o : "var(--anchor-padding, 0)", t);
|
|
8045
8045
|
return { ...e, gap: i, offset: l, padding: a };
|
|
8046
8046
|
}
|
|
8047
|
-
function
|
|
8048
|
-
let r =
|
|
8047
|
+
function mr(e, t, n = void 0) {
|
|
8048
|
+
let r = pt(), o = q((s, c) => {
|
|
8049
8049
|
if (s == null) return [n, null];
|
|
8050
8050
|
if (typeof s == "number") return [s, null];
|
|
8051
8051
|
if (typeof s == "string") {
|
|
@@ -8098,24 +8098,24 @@ function pi(e, t) {
|
|
|
8098
8098
|
}
|
|
8099
8099
|
function Ep({ children: e, freeze: t }, n) {
|
|
8100
8100
|
let r = va(t, e);
|
|
8101
|
-
return
|
|
8101
|
+
return Vr(r) ? Li(r, { ref: n }) : j.createElement(j.Fragment, null, r);
|
|
8102
8102
|
}
|
|
8103
8103
|
j.forwardRef(Ep);
|
|
8104
8104
|
function va(e, t) {
|
|
8105
8105
|
let [n, r] = J(t);
|
|
8106
8106
|
return !e && n !== t && r(t), e ? n : t;
|
|
8107
8107
|
}
|
|
8108
|
-
let
|
|
8109
|
-
|
|
8108
|
+
let Vn = le(null);
|
|
8109
|
+
Vn.displayName = "OpenClosedContext";
|
|
8110
8110
|
var ge = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ge || {});
|
|
8111
|
-
function
|
|
8112
|
-
return te(
|
|
8111
|
+
function jn() {
|
|
8112
|
+
return te(Vn);
|
|
8113
8113
|
}
|
|
8114
8114
|
function po({ value: e, children: t }) {
|
|
8115
|
-
return j.createElement(
|
|
8115
|
+
return j.createElement(Vn.Provider, { value: e }, t);
|
|
8116
8116
|
}
|
|
8117
8117
|
function Rp({ children: e }) {
|
|
8118
|
-
return j.createElement(
|
|
8118
|
+
return j.createElement(Vn.Provider, { value: null }, e);
|
|
8119
8119
|
}
|
|
8120
8120
|
function $p(e) {
|
|
8121
8121
|
throw new Error("Unexpected object: " + e);
|
|
@@ -8154,7 +8154,7 @@ function cn(e, t) {
|
|
|
8154
8154
|
}
|
|
8155
8155
|
}
|
|
8156
8156
|
function ba(e) {
|
|
8157
|
-
let t =
|
|
8157
|
+
let t = q(e), n = U(!1);
|
|
8158
8158
|
re(() => (n.current = !1, () => {
|
|
8159
8159
|
n.current = !0, Cl(() => {
|
|
8160
8160
|
n.current && t();
|
|
@@ -8185,11 +8185,11 @@ function kp(e) {
|
|
|
8185
8185
|
let wa = _e, Pp = de(function(e, t) {
|
|
8186
8186
|
let { ownerDocument: n = null, ...r } = e, o = U(null), i = be(Dl((p) => {
|
|
8187
8187
|
o.current = p;
|
|
8188
|
-
}), t), l =
|
|
8188
|
+
}), t), l = Nr(o.current), a = n ?? l, s = kp(a), c = te(Ap), u = pt(), f = me();
|
|
8189
8189
|
return ba(() => {
|
|
8190
8190
|
var p;
|
|
8191
8191
|
s && s.childNodes.length <= 0 && ((p = s.parentElement) == null || p.removeChild(s));
|
|
8192
|
-
}), s ?
|
|
8192
|
+
}), s ? jr(j.createElement("div", { "data-headlessui-portal": "", ref: (p) => {
|
|
8193
8193
|
u.dispose(), c && p && u.add(c.register(p));
|
|
8194
8194
|
} }, f({ ourProps: { ref: i }, theirProps: r, slot: {}, defaultTag: wa, name: "Portal" })), s) : null;
|
|
8195
8195
|
});
|
|
@@ -8237,28 +8237,28 @@ function _p() {
|
|
|
8237
8237
|
}
|
|
8238
8238
|
function Ra(e) {
|
|
8239
8239
|
var t;
|
|
8240
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !
|
|
8240
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Et((t = e.as) != null ? t : Sa) || j.Children.count(e.children) === 1;
|
|
8241
8241
|
}
|
|
8242
|
-
let
|
|
8243
|
-
|
|
8242
|
+
let Wn = le(null);
|
|
8243
|
+
Wn.displayName = "TransitionContext";
|
|
8244
8244
|
var Bp = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Bp || {});
|
|
8245
8245
|
function Hp() {
|
|
8246
|
-
let e = te(
|
|
8246
|
+
let e = te(Wn);
|
|
8247
8247
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
8248
8248
|
return e;
|
|
8249
8249
|
}
|
|
8250
8250
|
function Vp() {
|
|
8251
|
-
let e = te(
|
|
8251
|
+
let e = te(zn);
|
|
8252
8252
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
8253
8253
|
return e;
|
|
8254
8254
|
}
|
|
8255
|
-
let
|
|
8256
|
-
|
|
8257
|
-
function
|
|
8258
|
-
return "children" in e ?
|
|
8255
|
+
let zn = le(null);
|
|
8256
|
+
zn.displayName = "NestingContext";
|
|
8257
|
+
function Un(e) {
|
|
8258
|
+
return "children" in e ? Un(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
8259
8259
|
}
|
|
8260
8260
|
function $a(e, t) {
|
|
8261
|
-
let n =
|
|
8261
|
+
let n = ht(e), r = U([]), o = _p(), i = pt(), l = q((d, h = tt.Hidden) => {
|
|
8262
8262
|
let g = r.current.findIndex(({ el: v }) => v === d);
|
|
8263
8263
|
g !== -1 && (ve(h, { [tt.Unmount]() {
|
|
8264
8264
|
r.current.splice(g, 1);
|
|
@@ -8266,18 +8266,18 @@ function $a(e, t) {
|
|
|
8266
8266
|
r.current[g].state = "hidden";
|
|
8267
8267
|
} }), i.microTask(() => {
|
|
8268
8268
|
var v;
|
|
8269
|
-
!
|
|
8269
|
+
!Un(r) && o.current && ((v = n.current) == null || v.call(n));
|
|
8270
8270
|
}));
|
|
8271
|
-
}), a =
|
|
8271
|
+
}), a = q((d) => {
|
|
8272
8272
|
let h = r.current.find(({ el: g }) => g === d);
|
|
8273
8273
|
return h ? h.state !== "visible" && (h.state = "visible") : r.current.push({ el: d, state: "visible" }), () => l(d, tt.Unmount);
|
|
8274
|
-
}), s = U([]), c = U(Promise.resolve()), u = U({ enter: [], leave: [] }), f =
|
|
8274
|
+
}), s = U([]), c = U(Promise.resolve()), u = U({ enter: [], leave: [] }), f = q((d, h, g) => {
|
|
8275
8275
|
s.current.splice(0), t && (t.chains.current[h] = t.chains.current[h].filter(([v]) => v !== d)), t?.chains.current[h].push([d, new Promise((v) => {
|
|
8276
8276
|
s.current.push(v);
|
|
8277
8277
|
})]), t?.chains.current[h].push([d, new Promise((v) => {
|
|
8278
8278
|
Promise.all(u.current[h].map(([b, y]) => y)).then(() => v());
|
|
8279
8279
|
})]), h === "enter" ? c.current = c.current.then(() => t?.wait.current).then(() => g(h)) : g(h);
|
|
8280
|
-
}), p =
|
|
8280
|
+
}), p = q((d, h, g) => {
|
|
8281
8281
|
Promise.all(u.current[h].splice(0).map(([v, b]) => b)).then(() => {
|
|
8282
8282
|
var v;
|
|
8283
8283
|
(v = s.current.shift()) == null || v();
|
|
@@ -8304,30 +8304,30 @@ function jp(e, t) {
|
|
|
8304
8304
|
}, [w, S, A, $]);
|
|
8305
8305
|
let _ = M && !C, O = C && P && M, x = U(!1), L = $a(() => {
|
|
8306
8306
|
x.current || (I("hidden"), T(w));
|
|
8307
|
-
}, W), V =
|
|
8307
|
+
}, W), V = q((K) => {
|
|
8308
8308
|
x.current = !0;
|
|
8309
|
-
let Ee =
|
|
8309
|
+
let Ee = K ? "enter" : "leave";
|
|
8310
8310
|
L.onStart(w, Ee, (we) => {
|
|
8311
8311
|
we === "enter" ? i?.() : we === "leave" && a?.();
|
|
8312
8312
|
});
|
|
8313
|
-
}), ee =
|
|
8314
|
-
let Ee =
|
|
8313
|
+
}), ee = q((K) => {
|
|
8314
|
+
let Ee = K ? "enter" : "leave";
|
|
8315
8315
|
x.current = !1, L.onStop(w, Ee, (we) => {
|
|
8316
8316
|
we === "enter" ? l?.() : we === "leave" && s?.();
|
|
8317
|
-
}), Ee === "leave" && !
|
|
8317
|
+
}), Ee === "leave" && !Un(L) && (I("hidden"), T(w));
|
|
8318
8318
|
});
|
|
8319
8319
|
re(() => {
|
|
8320
8320
|
$ && o || (V(P), ee(P));
|
|
8321
8321
|
}, [P, $, o]);
|
|
8322
|
-
let B = !(!o || !$ || !A || _), [, D] = ao(B, b, P, { start: V, end: ee }), ae = et({ ref: E, className: ((r =
|
|
8322
|
+
let B = !(!o || !$ || !A || _), [, D] = ao(B, b, P, { start: V, end: ee }), ae = et({ ref: E, className: ((r = Tr(v.className, O && c, O && u, D.enter && c, D.enter && D.closed && u, D.enter && !D.closed && f, D.leave && d, D.leave && !D.closed && h, D.leave && D.closed && g, !D.transition && P && p)) == null ? void 0 : r.trim()) || void 0, ...lo(D) }), Q = 0;
|
|
8323
8323
|
S === "visible" && (Q |= ge.Open), S === "hidden" && (Q |= ge.Closed), P && S === "hidden" && (Q |= ge.Opening), !P && S === "visible" && (Q |= ge.Closing);
|
|
8324
8324
|
let H = me();
|
|
8325
|
-
return j.createElement(
|
|
8325
|
+
return j.createElement(zn.Provider, { value: L }, j.createElement(po, { value: Q }, H({ ourProps: ae, theirProps: v, defaultTag: Sa, features: Ca, visible: S === "visible", name: "Transition.Child" })));
|
|
8326
8326
|
}
|
|
8327
8327
|
function Wp(e, t) {
|
|
8328
8328
|
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, l = U(null), a = Ra(e), s = be(...a ? [l, t] : t === null ? [] : [t]);
|
|
8329
8329
|
Ea();
|
|
8330
|
-
let c =
|
|
8330
|
+
let c = jn();
|
|
8331
8331
|
if (n === void 0 && c !== null && (n = (c & ge.Open) === ge.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
8332
8332
|
let [u, f] = J(n ? "visible" : "hidden"), p = $a(() => {
|
|
8333
8333
|
n || f("hidden");
|
|
@@ -8337,27 +8337,27 @@ function Wp(e, t) {
|
|
|
8337
8337
|
}, [g, n]);
|
|
8338
8338
|
let v = ce(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
|
|
8339
8339
|
se(() => {
|
|
8340
|
-
n ? f("visible") : !
|
|
8340
|
+
n ? f("visible") : !Un(p) && l.current !== null && f("hidden");
|
|
8341
8341
|
}, [n, p]);
|
|
8342
|
-
let b = { unmount: o }, y =
|
|
8342
|
+
let b = { unmount: o }, y = q(() => {
|
|
8343
8343
|
var E;
|
|
8344
8344
|
d && h(!1), (E = e.beforeEnter) == null || E.call(e);
|
|
8345
|
-
}), w =
|
|
8345
|
+
}), w = q(() => {
|
|
8346
8346
|
var E;
|
|
8347
8347
|
d && h(!1), (E = e.beforeLeave) == null || E.call(e);
|
|
8348
8348
|
}), $ = me();
|
|
8349
|
-
return j.createElement(
|
|
8349
|
+
return j.createElement(zn.Provider, { value: p }, j.createElement(Wn.Provider, { value: v }, $({ ourProps: { ...b, as: _e, children: j.createElement(ka, { ref: s, ...b, ...i, beforeEnter: y, beforeLeave: w }) }, theirProps: {}, defaultTag: _e, features: Ca, visible: u === "visible", name: "Transition" })));
|
|
8350
8350
|
}
|
|
8351
8351
|
function zp(e, t) {
|
|
8352
|
-
let n = te(
|
|
8353
|
-
return j.createElement(j.Fragment, null, !n && r ? j.createElement(
|
|
8352
|
+
let n = te(Wn) !== null, r = jn() !== null;
|
|
8353
|
+
return j.createElement(j.Fragment, null, !n && r ? j.createElement(_r, { ref: t, ...e }) : j.createElement(ka, { ref: t, ...e }));
|
|
8354
8354
|
}
|
|
8355
|
-
let
|
|
8355
|
+
let _r = de(Wp), ka = de(jp), Up = de(zp), Gp = Object.assign(_r, { Child: Up, Root: _r });
|
|
8356
8356
|
var hi;
|
|
8357
|
-
let
|
|
8357
|
+
let qp = (hi = j.startTransition) != null ? hi : function(e) {
|
|
8358
8358
|
e();
|
|
8359
8359
|
};
|
|
8360
|
-
var
|
|
8360
|
+
var Kp = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Kp || {}), Yp = ((e) => (e[e.ToggleDisclosure = 0] = "ToggleDisclosure", e[e.CloseDisclosure = 1] = "CloseDisclosure", e[e.SetButtonId = 2] = "SetButtonId", e[e.SetPanelId = 3] = "SetPanelId", e[e.SetButtonElement = 4] = "SetButtonElement", e[e.SetPanelElement = 5] = "SetPanelElement", e))(Yp || {});
|
|
8361
8361
|
let Xp = { 0: (e) => ({ ...e, disclosureState: ve(e.disclosureState, { 0: 1, 1: 0 }) }), 1: (e) => e.disclosureState === 1 ? e : { ...e, disclosureState: 1 }, 2(e, t) {
|
|
8362
8362
|
return e.buttonId === t.buttonId ? e : { ...e, buttonId: t.buttonId };
|
|
8363
8363
|
}, 3(e, t) {
|
|
@@ -8398,7 +8398,7 @@ let Qp = _e;
|
|
|
8398
8398
|
function eh(e, t) {
|
|
8399
8399
|
let { defaultOpen: n = !1, ...r } = e, o = U(null), i = be(t, Dl((g) => {
|
|
8400
8400
|
o.current = g;
|
|
8401
|
-
}, e.as === void 0 ||
|
|
8401
|
+
}, e.as === void 0 || Et(e.as))), l = Ja(Jp, { disclosureState: n ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: a, buttonId: s }, c] = l, u = q((g) => {
|
|
8402
8402
|
c({ type: 1 });
|
|
8403
8403
|
let v = Xt(o.current);
|
|
8404
8404
|
if (!v || !s) return;
|
|
@@ -8409,7 +8409,7 @@ function eh(e, t) {
|
|
|
8409
8409
|
}
|
|
8410
8410
|
let th = "button";
|
|
8411
8411
|
function nh(e, t) {
|
|
8412
|
-
let n =
|
|
8412
|
+
let n = Ke(), { id: r = `headlessui-disclosure-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...l } = e, [a, s] = go("Disclosure.Button"), c = Zp(), u = c === null ? !1 : c === a.panelId, f = U(null), p = be(f, t, q((M) => {
|
|
8413
8413
|
if (!u) return s({ type: 4, element: M });
|
|
8414
8414
|
}));
|
|
8415
8415
|
re(() => {
|
|
@@ -8417,7 +8417,7 @@ function nh(e, t) {
|
|
|
8417
8417
|
s({ type: 2, buttonId: null });
|
|
8418
8418
|
};
|
|
8419
8419
|
}, [r, s, u]);
|
|
8420
|
-
let d =
|
|
8420
|
+
let d = q((M) => {
|
|
8421
8421
|
var S;
|
|
8422
8422
|
if (u) {
|
|
8423
8423
|
if (a.disclosureState === 1) return;
|
|
@@ -8433,23 +8433,23 @@ function nh(e, t) {
|
|
|
8433
8433
|
M.preventDefault(), M.stopPropagation(), s({ type: 0 });
|
|
8434
8434
|
break;
|
|
8435
8435
|
}
|
|
8436
|
-
}), h =
|
|
8436
|
+
}), h = q((M) => {
|
|
8437
8437
|
M.key === oe.Space && M.preventDefault();
|
|
8438
|
-
}), g =
|
|
8438
|
+
}), g = q((M) => {
|
|
8439
8439
|
var S;
|
|
8440
|
-
|
|
8440
|
+
Or(M.currentTarget) || o || (u ? (s({ type: 0 }), (S = a.buttonElement) == null || S.focus()) : s({ type: 0 }));
|
|
8441
8441
|
}), { isFocusVisible: v, focusProps: b } = eo({ autoFocus: i }), { isHovered: y, hoverProps: w } = Qr({ isDisabled: o }), { pressed: $, pressProps: E } = to({ disabled: o }), k = Te({ open: a.disclosureState === 0, hover: y, active: $, disabled: o, focus: v, autofocus: i }), P = Ql(e, a.buttonElement), C = jt(u ? { ref: p, type: P, disabled: o || void 0, autoFocus: i, onKeyDown: d, onClick: g } : { ref: p, id: r, type: P, "aria-expanded": a.disclosureState === 0, "aria-controls": a.panelElement ? a.panelId : void 0, disabled: o || void 0, autoFocus: i, onKeyDown: d, onKeyUp: h, onClick: g }, b, w, E);
|
|
8442
8442
|
return me()({ ourProps: C, theirProps: l, slot: k, defaultTag: th, name: "Disclosure.Button" });
|
|
8443
8443
|
}
|
|
8444
8444
|
let rh = "div", oh = $t.RenderStrategy | $t.Static;
|
|
8445
8445
|
function ih(e, t) {
|
|
8446
|
-
let n =
|
|
8447
|
-
|
|
8446
|
+
let n = Ke(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = go("Disclosure.Panel"), { close: s } = Pa("Disclosure.Panel"), [c, u] = J(null), f = be(t, q((y) => {
|
|
8447
|
+
qp(() => a({ type: 5, element: y }));
|
|
8448
8448
|
}), u);
|
|
8449
8449
|
re(() => (a({ type: 3, panelId: r }), () => {
|
|
8450
8450
|
a({ type: 3, panelId: null });
|
|
8451
8451
|
}), [r, a]);
|
|
8452
|
-
let p =
|
|
8452
|
+
let p = jn(), [d, h] = ao(o, c, p !== null ? (p & ge.Open) === ge.Open : l.disclosureState === 0), g = Te({ open: l.disclosureState === 0, close: s }), v = { ref: f, id: r, ...lo(h) }, b = me();
|
|
8453
8453
|
return j.createElement(Rp, null, j.createElement(bo.Provider, { value: l.panelId }, b({ ourProps: v, theirProps: i, slot: g, defaultTag: rh, features: oh, visible: d, name: "Disclosure.Panel" })));
|
|
8454
8454
|
}
|
|
8455
8455
|
let lh = de(eh), Ta = de(nh), Oa = de(ih), ah = Object.assign(lh, { Button: Ta, Panel: Oa }), gi = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
@@ -8481,7 +8481,7 @@ function sh(e) {
|
|
|
8481
8481
|
}
|
|
8482
8482
|
function ch(e) {
|
|
8483
8483
|
let t = U(""), n = U("");
|
|
8484
|
-
return
|
|
8484
|
+
return q(() => {
|
|
8485
8485
|
let r = e.current;
|
|
8486
8486
|
if (!r) return "";
|
|
8487
8487
|
let o = r.innerText;
|
|
@@ -8570,17 +8570,17 @@ class wo extends zl {
|
|
|
8570
8570
|
let a = l.slice(), s = a.findIndex((c) => o(c, n));
|
|
8571
8571
|
return s === -1 ? a.push(n) : a.splice(s, 1), r?.(a);
|
|
8572
8572
|
} });
|
|
8573
|
-
}, registerOption:
|
|
8573
|
+
}, registerOption: lr(() => {
|
|
8574
8574
|
let n = [], r = /* @__PURE__ */ new Set();
|
|
8575
8575
|
return [(o, i) => {
|
|
8576
8576
|
r.has(i) || (r.add(i), n.push({ id: o, dataRef: i }));
|
|
8577
8577
|
}, () => (r.clear(), this.send({ type: 6, options: n.splice(0) }))];
|
|
8578
|
-
}), unregisterOption:
|
|
8578
|
+
}), unregisterOption: lr(() => {
|
|
8579
8579
|
let n = [];
|
|
8580
8580
|
return [(r) => n.push(r), () => {
|
|
8581
8581
|
this.send({ type: 7, options: n.splice(0) });
|
|
8582
8582
|
}];
|
|
8583
|
-
}), goToOption:
|
|
8583
|
+
}), goToOption: lr(() => {
|
|
8584
8584
|
let n = null;
|
|
8585
8585
|
return [(r, o) => {
|
|
8586
8586
|
n = { type: 2, ...r, trigger: o };
|
|
@@ -8661,10 +8661,10 @@ function Ma({ id: e, __demoMode: t = !1 }) {
|
|
|
8661
8661
|
let n = ce(() => wo.new({ id: e, __demoMode: t }), []);
|
|
8662
8662
|
return ba(() => n.dispose()), n;
|
|
8663
8663
|
}
|
|
8664
|
-
let
|
|
8665
|
-
|
|
8664
|
+
let Gn = le(null);
|
|
8665
|
+
Gn.displayName = "ListboxDataContext";
|
|
8666
8666
|
function Qt(e) {
|
|
8667
|
-
let t = te(
|
|
8667
|
+
let t = te(Gn);
|
|
8668
8668
|
if (t === null) {
|
|
8669
8669
|
let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
|
|
8670
8670
|
throw Error.captureStackTrace && Error.captureStackTrace(n, Qt), n;
|
|
@@ -8673,7 +8673,7 @@ function Qt(e) {
|
|
|
8673
8673
|
}
|
|
8674
8674
|
let mh = _e;
|
|
8675
8675
|
function ph(e, t) {
|
|
8676
|
-
let n =
|
|
8676
|
+
let n = Ke(), r = Mn(), { value: o, defaultValue: i, form: l, name: a, onChange: s, by: c, invalid: u = !1, disabled: f = r || !1, horizontal: p = !1, multiple: d = !1, __demoMode: h = !1, ...g } = e;
|
|
8677
8677
|
const v = p ? "horizontal" : "vertical";
|
|
8678
8678
|
let b = be(t), y = Sd(i), [w = d ? [] : void 0, $] = $d(o, s, y), E = Ma({ id: n, __demoMode: h }), k = U({ static: !1, hold: !1 }), P = U(/* @__PURE__ */ new Map()), C = Jd(c), M = Z((B) => ve(S.mode, { [rt.Multi]: () => w.some((D) => C(D, B)), [rt.Single]: () => C(w, B) }), [w]), S = Te({ value: w, disabled: f, invalid: u, mode: d ? rt.Multi : rt.Single, orientation: v, onChange: $, compare: C, isSelected: M, optionsPropsRef: k, listRef: P });
|
|
8679
8679
|
se(() => {
|
|
@@ -8686,17 +8686,17 @@ function ph(e, t) {
|
|
|
8686
8686
|
let _ = Te({ open: I === he.Open, disabled: f, invalid: u, value: w }), [O, x] = zd({ inherit: !0 }), L = { ref: b }, V = Z(() => {
|
|
8687
8687
|
if (y !== void 0) return $?.(y);
|
|
8688
8688
|
}, [$, y]), ee = me();
|
|
8689
|
-
return j.createElement(x, { value: O, props: { htmlFor: T?.id }, slot: { open: I === he.Open, disabled: f } }, j.createElement(wp, null, j.createElement(Aa.Provider, { value: E }, j.createElement(
|
|
8689
|
+
return j.createElement(x, { value: O, props: { htmlFor: T?.id }, slot: { open: I === he.Open, disabled: f } }, j.createElement(wp, null, j.createElement(Aa.Provider, { value: E }, j.createElement(Gn.Provider, { value: S }, j.createElement(po, { value: ve(I, { [he.Open]: ge.Open, [he.Closed]: ge.Closed }) }, a != null && w != null && j.createElement(Ad, { disabled: f, data: { [a]: w }, form: l, onReset: V }), ee({ ourProps: L, theirProps: g, slot: _, defaultTag: mh, name: "Listbox" }))))));
|
|
8690
8690
|
}
|
|
8691
8691
|
let hh = "button";
|
|
8692
8692
|
function gh(e, t) {
|
|
8693
|
-
let n =
|
|
8693
|
+
let n = Ke(), r = Al(), o = Qt("Listbox.Button"), i = yo("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = be(t, hp(), i.actions.setButtonElement), f = gp(), [p, d, h] = ye(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), g = p === he.Open;
|
|
8694
8694
|
Of(g, { trigger: d, action: Z((A) => {
|
|
8695
8695
|
if (d != null && d.contains(A.target)) return an.Ignore;
|
|
8696
8696
|
let _ = A.target.closest('[role="option"]:not([data-disabled])');
|
|
8697
8697
|
return Je(_) ? an.Select(_) : h != null && h.contains(A.target) ? an.Ignore : an.Close;
|
|
8698
8698
|
}, [d, h]), close: i.actions.closeListbox, select: i.actions.selectActiveOption });
|
|
8699
|
-
let v =
|
|
8699
|
+
let v = q((A) => {
|
|
8700
8700
|
switch (A.key) {
|
|
8701
8701
|
case oe.Enter:
|
|
8702
8702
|
Cd(A.currentTarget);
|
|
@@ -8709,27 +8709,27 @@ function gh(e, t) {
|
|
|
8709
8709
|
A.preventDefault(), i.actions.openListbox({ focus: o.value ? ie.Nothing : ie.Last });
|
|
8710
8710
|
break;
|
|
8711
8711
|
}
|
|
8712
|
-
}), b =
|
|
8712
|
+
}), b = q((A) => {
|
|
8713
8713
|
A.key === oe.Space && A.preventDefault();
|
|
8714
8714
|
}), y = ef((A) => {
|
|
8715
8715
|
var _;
|
|
8716
8716
|
i.state.listboxState === he.Open ? (wn(() => i.actions.closeListbox()), (_ = i.state.buttonElement) == null || _.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus: ie.Nothing }));
|
|
8717
|
-
}), w =
|
|
8717
|
+
}), w = q((A) => A.preventDefault()), $ = Hl([l]), E = Hd(), { isFocusVisible: k, focusProps: P } = eo({ autoFocus: s }), { isHovered: C, hoverProps: M } = Qr({ isDisabled: a }), { pressed: S, pressProps: I } = to({ disabled: a }), W = Te({ open: p === he.Open, active: S || p === he.Open, disabled: a, invalid: o.invalid, value: o.value, hover: C, focus: k, autofocus: s }), z = ye(i, (A) => A.listboxState === he.Open), T = jt(f(), { ref: u, id: l, type: Ql(e, d), "aria-haspopup": "listbox", "aria-controls": h?.id, "aria-expanded": z, "aria-labelledby": $, "aria-describedby": E, disabled: a || void 0, autoFocus: s, onKeyDown: v, onKeyUp: b, onKeyPress: w }, y, P, M, I);
|
|
8718
8718
|
return me()({ ourProps: T, theirProps: c, slot: W, defaultTag: hh, name: "Listbox.Button" });
|
|
8719
8719
|
}
|
|
8720
8720
|
let Na = le(!1), vh = "div", bh = $t.RenderStrategy | $t.Static;
|
|
8721
8721
|
function wh(e, t) {
|
|
8722
|
-
let n =
|
|
8722
|
+
let n = Ke(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = pp(o), [u, f] = J(null);
|
|
8723
8723
|
c && (i = !0);
|
|
8724
|
-
let p = Qt("Listbox.Options"), d = yo("Listbox.Options"), [h, g, v, b] = ye(d, (H) => [H.listboxState, H.buttonElement, H.optionsElement, H.__demoMode]), y =
|
|
8724
|
+
let p = Qt("Listbox.Options"), d = yo("Listbox.Options"), [h, g, v, b] = ye(d, (H) => [H.listboxState, H.buttonElement, H.optionsElement, H.__demoMode]), y = Nr(g), w = Nr(v), $ = jn(), [E, k] = ao(a, u, $ !== null ? ($ & ge.Open) === ge.Open : h === he.Open);
|
|
8725
8725
|
hf(E, g, d.actions.closeListbox);
|
|
8726
8726
|
let P = b ? !1 : l && h === he.Open;
|
|
8727
8727
|
Df(P, w);
|
|
8728
8728
|
let C = b ? !1 : l && h === he.Open;
|
|
8729
8729
|
pf(C, { allowed: Z(() => [g, v], [g, v]) });
|
|
8730
8730
|
let M = ye(d, d.selectors.didButtonMove) ? !1 : E, S = ye(d, d.selectors.hasFrozenValue) && !e.static, I = va(S, p.value), W = Z((H) => p.compare(I, H), [p.compare, I]), z = ye(d, (H) => {
|
|
8731
|
-
var
|
|
8732
|
-
if (c == null || !((
|
|
8731
|
+
var K;
|
|
8732
|
+
if (c == null || !((K = c?.to) != null && K.includes("selection"))) return null;
|
|
8733
8733
|
let Ee = H.options.findIndex((we) => W(we.dataRef.current.value));
|
|
8734
8734
|
return Ee === -1 && (Ee = 0), Ee;
|
|
8735
8735
|
}), T = (() => {
|
|
@@ -8737,13 +8737,13 @@ function wh(e, t) {
|
|
|
8737
8737
|
if (z === null) return { ...c, inner: void 0 };
|
|
8738
8738
|
let H = Array.from(p.listRef.current.values());
|
|
8739
8739
|
return { ...c, inner: { listRef: { current: H }, index: z } };
|
|
8740
|
-
})(), [A, _] = bp(T), O = vp(), x = be(t, c ? A : null, d.actions.setOptionsElement, f), L =
|
|
8740
|
+
})(), [A, _] = bp(T), O = vp(), x = be(t, c ? A : null, d.actions.setOptionsElement, f), L = pt();
|
|
8741
8741
|
re(() => {
|
|
8742
8742
|
let H = v;
|
|
8743
8743
|
H && h === he.Open && (fd(H) || H == null || H.focus({ preventScroll: !0 }));
|
|
8744
8744
|
}, [h, v]);
|
|
8745
|
-
let V =
|
|
8746
|
-
var
|
|
8745
|
+
let V = q((H) => {
|
|
8746
|
+
var K;
|
|
8747
8747
|
switch (L.dispose(), H.key) {
|
|
8748
8748
|
case oe.Space:
|
|
8749
8749
|
if (d.state.searchQuery !== "") return H.preventDefault(), H.stopPropagation(), d.actions.search(H.key);
|
|
@@ -8761,24 +8761,24 @@ function wh(e, t) {
|
|
|
8761
8761
|
case oe.PageDown:
|
|
8762
8762
|
return H.preventDefault(), H.stopPropagation(), d.actions.goToOption({ focus: ie.Last });
|
|
8763
8763
|
case oe.Escape:
|
|
8764
|
-
H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), (
|
|
8764
|
+
H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), (K = d.state.buttonElement) == null || K.focus({ preventScroll: !0 });
|
|
8765
8765
|
return;
|
|
8766
8766
|
case oe.Tab:
|
|
8767
|
-
H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), Rf(d.state.buttonElement, H.shiftKey ?
|
|
8767
|
+
H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), Rf(d.state.buttonElement, H.shiftKey ? Mr.Previous : Mr.Next);
|
|
8768
8768
|
break;
|
|
8769
8769
|
default:
|
|
8770
8770
|
H.key.length === 1 && (d.actions.search(H.key), L.setTimeout(() => d.actions.clearSearch(), 350));
|
|
8771
8771
|
break;
|
|
8772
8772
|
}
|
|
8773
8773
|
}), ee = ye(d, (H) => {
|
|
8774
|
-
var
|
|
8775
|
-
return (
|
|
8774
|
+
var K;
|
|
8775
|
+
return (K = H.buttonElement) == null ? void 0 : K.id;
|
|
8776
8776
|
}), B = Te({ open: h === he.Open }), D = jt(c ? O() : {}, { id: r, ref: x, "aria-activedescendant": ye(d, d.selectors.activeDescendantId), "aria-multiselectable": p.mode === rt.Multi ? !0 : void 0, "aria-labelledby": ee, "aria-orientation": p.orientation, onKeyDown: V, role: "listbox", tabIndex: h === he.Open ? 0 : void 0, style: { ...s.style, ..._, "--button-width": Qd(E, g, !0).width }, ...lo(k) }), ae = me(), Q = ce(() => p.mode === rt.Multi ? p : { ...p, isSelected: W }, [p, W]);
|
|
8777
|
-
return j.createElement(Fp, { enabled: i ? e.static || E : !1, ownerDocument: y }, j.createElement(
|
|
8777
|
+
return j.createElement(Fp, { enabled: i ? e.static || E : !1, ownerDocument: y }, j.createElement(Gn.Provider, { value: Q }, ae({ ourProps: D, theirProps: s, slot: B, defaultTag: vh, features: bh, visible: M, name: "Listbox.Options" })));
|
|
8778
8778
|
}
|
|
8779
8779
|
let yh = "div";
|
|
8780
8780
|
function xh(e, t) {
|
|
8781
|
-
let n =
|
|
8781
|
+
let n = Ke(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: i, ...l } = e, a = te(Na) === !0, s = Qt("Listbox.Option"), c = yo("Listbox.Option"), u = ye(c, (S) => c.selectors.isActive(S, r)), f = s.isSelected(i), p = U(null), d = ch(p), h = ht({ disabled: o, value: i, domRef: p, get textValue() {
|
|
8782
8782
|
return d();
|
|
8783
8783
|
} }), g = be(t, p, (S) => {
|
|
8784
8784
|
S ? s.listRef.current.set(r, S) : s.listRef.current.delete(r);
|
|
@@ -8791,15 +8791,15 @@ function xh(e, t) {
|
|
|
8791
8791
|
}, [v, p]), se(() => {
|
|
8792
8792
|
if (!a) return c.actions.registerOption(r, h), () => c.actions.unregisterOption(r);
|
|
8793
8793
|
}, [h, r, a]);
|
|
8794
|
-
let b =
|
|
8794
|
+
let b = q((S) => {
|
|
8795
8795
|
if (o) return S.preventDefault();
|
|
8796
8796
|
c.actions.selectOption(i);
|
|
8797
|
-
}), y =
|
|
8797
|
+
}), y = q(() => {
|
|
8798
8798
|
if (o) return c.actions.goToOption({ focus: ie.Nothing });
|
|
8799
8799
|
c.actions.goToOption({ focus: ie.Specific, id: r });
|
|
8800
|
-
}), w = _f(), $ =
|
|
8800
|
+
}), w = _f(), $ = q((S) => w.update(S)), E = q((S) => {
|
|
8801
8801
|
w.wasMoved(S) && (o || u && c.state.activationTrigger === hn.Pointer || c.actions.goToOption({ focus: ie.Specific, id: r }, hn.Pointer));
|
|
8802
|
-
}), k =
|
|
8802
|
+
}), k = q((S) => {
|
|
8803
8803
|
w.wasMoved(S) && (o || u && c.state.activationTrigger === hn.Pointer && c.actions.goToOption({ focus: ie.Nothing }));
|
|
8804
8804
|
}), P = Te({ active: u, focus: u, selected: f, disabled: o, selectedOption: f && a }), C = a ? {} : { id: r, ref: g, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: y, onPointerEnter: $, onMouseEnter: $, onPointerMove: E, onMouseMove: E, onPointerLeave: k, onMouseLeave: k }, M = me();
|
|
8805
8805
|
return !f && a ? null : M({ ourProps: C, theirProps: l, slot: P, defaultTag: yh, name: "Listbox.Option" });
|
|
@@ -8809,7 +8809,7 @@ function Rh(e, t) {
|
|
|
8809
8809
|
let { options: n, placeholder: r, ...o } = e, i = { ref: be(t) }, l = Qt("ListboxSelectedOption"), a = Te({}), s = l.value === void 0 || l.value === null || l.mode === rt.Multi && Array.isArray(l.value) && l.value.length === 0, c = me();
|
|
8810
8810
|
return j.createElement(Na.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: j.createElement(j.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: Eh, name: "ListboxSelectedOption" }));
|
|
8811
8811
|
}
|
|
8812
|
-
let $h = de(ph), Fa = de(gh), Sh =
|
|
8812
|
+
let $h = de(ph), Fa = de(gh), Sh = Kd, Ia = de(wh), Da = de(xh), Ch = de(Rh), kh = Object.assign($h, { Button: Fa, Label: Sh, Options: Ia, Option: Da, SelectedOption: Ch });
|
|
8813
8813
|
function Ph({
|
|
8814
8814
|
children: e,
|
|
8815
8815
|
className: t,
|
|
@@ -8869,13 +8869,13 @@ function Oh({ error: e, resetErrorBoundary: t }) {
|
|
|
8869
8869
|
/* @__PURE__ */ R(Ph, { intent: "danger", onClick: t, children: "Retry" })
|
|
8870
8870
|
] }) });
|
|
8871
8871
|
}
|
|
8872
|
-
function
|
|
8872
|
+
function qn({
|
|
8873
8873
|
children: e,
|
|
8874
8874
|
onClick: t,
|
|
8875
8875
|
to: n,
|
|
8876
8876
|
...r
|
|
8877
8877
|
}) {
|
|
8878
|
-
const o = !!
|
|
8878
|
+
const o = !!Ks(n), [i, l] = Qa(), a = Wi();
|
|
8879
8879
|
return /* @__PURE__ */ R(
|
|
8880
8880
|
"a",
|
|
8881
8881
|
{
|
|
@@ -8928,7 +8928,7 @@ function Ut(e, t) {
|
|
|
8928
8928
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
8929
8929
|
if (e.contains(t))
|
|
8930
8930
|
return !0;
|
|
8931
|
-
if (n &&
|
|
8931
|
+
if (n && Fr(n)) {
|
|
8932
8932
|
let r = t;
|
|
8933
8933
|
for (; r; ) {
|
|
8934
8934
|
if (e === r)
|
|
@@ -8938,10 +8938,10 @@ function Ut(e, t) {
|
|
|
8938
8938
|
}
|
|
8939
8939
|
return !1;
|
|
8940
8940
|
}
|
|
8941
|
-
function
|
|
8941
|
+
function yt(e) {
|
|
8942
8942
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
8943
8943
|
}
|
|
8944
|
-
function
|
|
8944
|
+
function pr(e, t) {
|
|
8945
8945
|
if (t == null)
|
|
8946
8946
|
return !1;
|
|
8947
8947
|
if ("composedPath" in e)
|
|
@@ -8975,7 +8975,7 @@ function gn(e, t, n) {
|
|
|
8975
8975
|
function Hh(e) {
|
|
8976
8976
|
return "nativeEvent" in e;
|
|
8977
8977
|
}
|
|
8978
|
-
function
|
|
8978
|
+
function Br(e, t) {
|
|
8979
8979
|
const n = ["mouse", "pen"];
|
|
8980
8980
|
return n.push("", void 0), n.includes(e);
|
|
8981
8981
|
}
|
|
@@ -9004,14 +9004,14 @@ function Ne(e) {
|
|
|
9004
9004
|
return t.current == null ? void 0 : t.current(...r);
|
|
9005
9005
|
}, []);
|
|
9006
9006
|
}
|
|
9007
|
-
const Gh = "data-floating-ui-focusable", xi = "active", Ei = "selected",
|
|
9007
|
+
const Gh = "data-floating-ui-focusable", xi = "active", Ei = "selected", qh = {
|
|
9008
9008
|
...m
|
|
9009
9009
|
};
|
|
9010
|
-
let Ri = !1,
|
|
9010
|
+
let Ri = !1, Kh = 0;
|
|
9011
9011
|
const $i = () => (
|
|
9012
9012
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
9013
9013
|
// on <React 18
|
|
9014
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
9014
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Kh++
|
|
9015
9015
|
);
|
|
9016
9016
|
function Yh() {
|
|
9017
9017
|
const [e, t] = m.useState(() => Ri ? $i() : void 0);
|
|
@@ -9021,16 +9021,16 @@ function Yh() {
|
|
|
9021
9021
|
Ri = !0;
|
|
9022
9022
|
}, []), e;
|
|
9023
9023
|
}
|
|
9024
|
-
const Xh =
|
|
9025
|
-
let
|
|
9026
|
-
process.env.NODE_ENV !== "production" && (
|
|
9024
|
+
const Xh = qh.useId, Ba = Xh || Yh;
|
|
9025
|
+
let Hr;
|
|
9026
|
+
process.env.NODE_ENV !== "production" && (Hr = /* @__PURE__ */ new Set());
|
|
9027
9027
|
function Zh() {
|
|
9028
9028
|
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
9029
9029
|
n[r] = arguments[r];
|
|
9030
9030
|
const o = "Floating UI: " + n.join(" ");
|
|
9031
|
-
if (!((e =
|
|
9031
|
+
if (!((e = Hr) != null && e.has(o))) {
|
|
9032
9032
|
var i;
|
|
9033
|
-
(i =
|
|
9033
|
+
(i = Hr) == null || i.add(o), console.error(o);
|
|
9034
9034
|
}
|
|
9035
9035
|
}
|
|
9036
9036
|
function Jh() {
|
|
@@ -9060,8 +9060,8 @@ function Ce(e) {
|
|
|
9060
9060
|
e.current !== -1 && (clearTimeout(e.current), e.current = -1);
|
|
9061
9061
|
}
|
|
9062
9062
|
const Si = /* @__PURE__ */ Kn("safe-polygon");
|
|
9063
|
-
function
|
|
9064
|
-
if (n && !
|
|
9063
|
+
function hr(e, t, n) {
|
|
9064
|
+
if (n && !Br(n))
|
|
9065
9065
|
return 0;
|
|
9066
9066
|
if (typeof e == "number")
|
|
9067
9067
|
return e;
|
|
@@ -9071,7 +9071,7 @@ function pr(e, t, n) {
|
|
|
9071
9071
|
}
|
|
9072
9072
|
return e?.[t];
|
|
9073
9073
|
}
|
|
9074
|
-
function
|
|
9074
|
+
function gr(e) {
|
|
9075
9075
|
return typeof e == "function" ? e() : e;
|
|
9076
9076
|
}
|
|
9077
9077
|
function tg(e, t) {
|
|
@@ -9118,7 +9118,7 @@ function tg(e, t) {
|
|
|
9118
9118
|
}, [l.floating, n, r, a, g, I]);
|
|
9119
9119
|
const W = m.useCallback(function(O, x, L) {
|
|
9120
9120
|
x === void 0 && (x = !0), L === void 0 && (L = "hover");
|
|
9121
|
-
const V =
|
|
9121
|
+
const V = hr(v.current, "close", w.current);
|
|
9122
9122
|
V && !E.current ? (Ce($), $.current = window.setTimeout(() => r(!1, O, L), V)) : x && (Ce($), r(!1, O, L));
|
|
9123
9123
|
}, [v, r]), z = Ne(() => {
|
|
9124
9124
|
M.current(), E.current = void 0;
|
|
@@ -9131,9 +9131,9 @@ function tg(e, t) {
|
|
|
9131
9131
|
m.useEffect(() => {
|
|
9132
9132
|
if (!a) return;
|
|
9133
9133
|
function O(B) {
|
|
9134
|
-
if (Ce($), P.current = !1, u && !
|
|
9134
|
+
if (Ce($), P.current = !1, u && !Br(w.current) || gr(y.current) > 0 && !hr(v.current, "open"))
|
|
9135
9135
|
return;
|
|
9136
|
-
const D =
|
|
9136
|
+
const D = hr(v.current, "open", w.current);
|
|
9137
9137
|
D ? $.current = window.setTimeout(() => {
|
|
9138
9138
|
b.current || r(!0, B, "hover");
|
|
9139
9139
|
}, D) : n || r(!0, B, "hover");
|
|
@@ -9222,7 +9222,7 @@ function tg(e, t) {
|
|
|
9222
9222
|
function V() {
|
|
9223
9223
|
!P.current && !b.current && r(!0, L, "hover");
|
|
9224
9224
|
}
|
|
9225
|
-
u && !
|
|
9225
|
+
u && !Br(w.current) || n || gr(y.current) === 0 || S.current && x.movementX ** 2 + x.movementY ** 2 < 2 || (Ce(k), w.current === "touch" ? V() : (S.current = !0, k.current = window.setTimeout(V, gr(y.current))));
|
|
9226
9226
|
}
|
|
9227
9227
|
};
|
|
9228
9228
|
}, [u, r, n, b, y]);
|
|
@@ -9316,9 +9316,9 @@ function ag(e, t) {
|
|
|
9316
9316
|
var A;
|
|
9317
9317
|
const _ = () => {
|
|
9318
9318
|
var O;
|
|
9319
|
-
C(T), (O =
|
|
9319
|
+
C(T), (O = yt(T)) == null || O.removeEventListener("keydown", _);
|
|
9320
9320
|
};
|
|
9321
|
-
(A =
|
|
9321
|
+
(A = yt(T)) == null || A.addEventListener("keydown", _);
|
|
9322
9322
|
}), S = Ne((T) => {
|
|
9323
9323
|
var A;
|
|
9324
9324
|
const _ = i.current.insideReactTree;
|
|
@@ -9326,10 +9326,10 @@ function ag(e, t) {
|
|
|
9326
9326
|
const O = y.current;
|
|
9327
9327
|
if (y.current = !1, c === "click" && O || _ || typeof b == "function" && !b(T))
|
|
9328
9328
|
return;
|
|
9329
|
-
const x =
|
|
9329
|
+
const x = yt(T), L = "[" + Kn("inert") + "]", V = ct(o.floating).querySelectorAll(L);
|
|
9330
9330
|
let ee = X(x) ? x : null;
|
|
9331
9331
|
for (; ee && !ze(ee); ) {
|
|
9332
|
-
const Q =
|
|
9332
|
+
const Q = qe(ee);
|
|
9333
9333
|
if (ze(Q) || !X(Q))
|
|
9334
9334
|
break;
|
|
9335
9335
|
ee = Q;
|
|
@@ -9340,22 +9340,22 @@ function ag(e, t) {
|
|
|
9340
9340
|
Array.from(V).every((Q) => !Ut(ee, Q)))
|
|
9341
9341
|
return;
|
|
9342
9342
|
if (Re(x) && z) {
|
|
9343
|
-
const Q = ze(x), H = Oe(x),
|
|
9344
|
-
if (
|
|
9343
|
+
const Q = ze(x), H = Oe(x), K = /auto|scroll/, Ee = Q || K.test(H.overflowX), we = Q || K.test(H.overflowY), vt = Ee && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, At = we && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, bt = H.direction === "rtl", qa = At && (bt ? T.offsetX <= x.offsetWidth - x.clientWidth : T.offsetX > x.clientWidth), Ka = vt && T.offsetY > x.clientHeight;
|
|
9344
|
+
if (qa || Ka)
|
|
9345
9345
|
return;
|
|
9346
9346
|
}
|
|
9347
9347
|
const B = (A = i.current.floatingContext) == null ? void 0 : A.nodeId, D = g && gn(g.nodesRef.current, B).some((Q) => {
|
|
9348
9348
|
var H;
|
|
9349
|
-
return
|
|
9349
|
+
return pr(T, (H = Q.context) == null ? void 0 : H.elements.floating);
|
|
9350
9350
|
});
|
|
9351
|
-
if (
|
|
9351
|
+
if (pr(T, o.floating) || pr(T, o.domReference) || D)
|
|
9352
9352
|
return;
|
|
9353
9353
|
const ae = g ? gn(g.nodesRef.current, B) : [];
|
|
9354
9354
|
if (ae.length > 0) {
|
|
9355
9355
|
let Q = !0;
|
|
9356
9356
|
if (ae.forEach((H) => {
|
|
9357
|
-
var
|
|
9358
|
-
if ((
|
|
9357
|
+
var K;
|
|
9358
|
+
if ((K = H.context) != null && K.open && !H.context.dataRef.current.__outsidePressBubbles) {
|
|
9359
9359
|
Q = !1;
|
|
9360
9360
|
return;
|
|
9361
9361
|
}
|
|
@@ -9367,9 +9367,9 @@ function ag(e, t) {
|
|
|
9367
9367
|
var A;
|
|
9368
9368
|
const _ = () => {
|
|
9369
9369
|
var O;
|
|
9370
|
-
S(T), (O =
|
|
9370
|
+
S(T), (O = yt(T)) == null || O.removeEventListener(c, _);
|
|
9371
9371
|
};
|
|
9372
|
-
(A =
|
|
9372
|
+
(A = yt(T)) == null || A.addEventListener(c, _);
|
|
9373
9373
|
});
|
|
9374
9374
|
m.useEffect(() => {
|
|
9375
9375
|
if (!n || !l)
|
|
@@ -9389,7 +9389,7 @@ function ag(e, t) {
|
|
|
9389
9389
|
},
|
|
9390
9390
|
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
9391
9391
|
// Only apply to WebKit for the test to remain 0ms.
|
|
9392
|
-
|
|
9392
|
+
_n() ? 5 : 0
|
|
9393
9393
|
);
|
|
9394
9394
|
}
|
|
9395
9395
|
const x = ct(o.floating);
|
|
@@ -9534,7 +9534,7 @@ function cg(e) {
|
|
|
9534
9534
|
elements: b
|
|
9535
9535
|
}), [d, v, b, y]);
|
|
9536
9536
|
}
|
|
9537
|
-
function
|
|
9537
|
+
function vr() {
|
|
9538
9538
|
return Nh() && Mh();
|
|
9539
9539
|
}
|
|
9540
9540
|
function ug(e, t) {
|
|
@@ -9561,8 +9561,8 @@ function ug(e, t) {
|
|
|
9561
9561
|
function v() {
|
|
9562
9562
|
f.current = !1;
|
|
9563
9563
|
}
|
|
9564
|
-
return d.addEventListener("blur", h),
|
|
9565
|
-
d.removeEventListener("blur", h),
|
|
9564
|
+
return d.addEventListener("blur", h), vr() && (d.addEventListener("keydown", g, !0), d.addEventListener("pointerdown", v, !0)), () => {
|
|
9565
|
+
d.removeEventListener("blur", h), vr() && (d.removeEventListener("keydown", g, !0), d.removeEventListener("pointerdown", v, !0));
|
|
9566
9566
|
};
|
|
9567
9567
|
}, [l.domReference, n, a]), m.useEffect(() => {
|
|
9568
9568
|
if (!a) return;
|
|
@@ -9584,9 +9584,9 @@ function ug(e, t) {
|
|
|
9584
9584
|
},
|
|
9585
9585
|
onFocus(d) {
|
|
9586
9586
|
if (c.current) return;
|
|
9587
|
-
const h =
|
|
9587
|
+
const h = yt(d.nativeEvent);
|
|
9588
9588
|
if (s && X(h)) {
|
|
9589
|
-
if (
|
|
9589
|
+
if (vr() && !d.relatedTarget) {
|
|
9590
9590
|
if (!f.current && !_h(h))
|
|
9591
9591
|
return;
|
|
9592
9592
|
} else if (!Bh(h))
|
|
@@ -9608,7 +9608,7 @@ function ug(e, t) {
|
|
|
9608
9608
|
reference: p
|
|
9609
9609
|
} : {}, [a, p]);
|
|
9610
9610
|
}
|
|
9611
|
-
function
|
|
9611
|
+
function br(e, t, n) {
|
|
9612
9612
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
9613
9613
|
let i = e;
|
|
9614
9614
|
if (o && e) {
|
|
@@ -9648,15 +9648,15 @@ function vr(e, t, n) {
|
|
|
9648
9648
|
function dg(e) {
|
|
9649
9649
|
e === void 0 && (e = []);
|
|
9650
9650
|
const t = e.map((a) => a?.reference), n = e.map((a) => a?.floating), r = e.map((a) => a?.item), o = m.useCallback(
|
|
9651
|
-
(a) =>
|
|
9651
|
+
(a) => br(a, e, "reference"),
|
|
9652
9652
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9653
9653
|
t
|
|
9654
9654
|
), i = m.useCallback(
|
|
9655
|
-
(a) =>
|
|
9655
|
+
(a) => br(a, e, "floating"),
|
|
9656
9656
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9657
9657
|
n
|
|
9658
9658
|
), l = m.useCallback(
|
|
9659
|
-
(a) =>
|
|
9659
|
+
(a) => br(a, e, "item"),
|
|
9660
9660
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9661
9661
|
r
|
|
9662
9662
|
);
|
|
@@ -9683,7 +9683,7 @@ function Va({
|
|
|
9683
9683
|
middleware: [
|
|
9684
9684
|
fo(4),
|
|
9685
9685
|
ma(),
|
|
9686
|
-
|
|
9686
|
+
Km(r ? { allowedPlacements: r } : {})
|
|
9687
9687
|
]
|
|
9688
9688
|
}), d = tg(p, { enabled: i }), h = ug(p, { enabled: o }), g = ag(p), { getReferenceProps: v, getFloatingProps: b } = dg([
|
|
9689
9689
|
g,
|
|
@@ -9715,7 +9715,7 @@ function Va({
|
|
|
9715
9715
|
...b(),
|
|
9716
9716
|
children: n
|
|
9717
9717
|
}
|
|
9718
|
-
), l && c && (w =
|
|
9718
|
+
), l && c && (w = jr(w, c))), /* @__PURE__ */ Y(
|
|
9719
9719
|
"div",
|
|
9720
9720
|
{
|
|
9721
9721
|
className: fe("group relative flex justify-center", t),
|
|
@@ -9763,7 +9763,7 @@ function ja({
|
|
|
9763
9763
|
}
|
|
9764
9764
|
);
|
|
9765
9765
|
}
|
|
9766
|
-
function
|
|
9766
|
+
function wr({
|
|
9767
9767
|
ariaLabel: e,
|
|
9768
9768
|
children: t,
|
|
9769
9769
|
className: n = "",
|
|
@@ -9771,7 +9771,7 @@ function br({
|
|
|
9771
9771
|
...o
|
|
9772
9772
|
}) {
|
|
9773
9773
|
const i = "to" in o ? /* @__PURE__ */ R(
|
|
9774
|
-
|
|
9774
|
+
qn,
|
|
9775
9775
|
{
|
|
9776
9776
|
"aria-label": e || r,
|
|
9777
9777
|
children: t,
|
|
@@ -9853,7 +9853,7 @@ function Wa({
|
|
|
9853
9853
|
}
|
|
9854
9854
|
Wa.displayName = "LibraryContextProvider";
|
|
9855
9855
|
function mg() {
|
|
9856
|
-
const { setIsNavVisible: e, setIsSiteSearchVisible: t } =
|
|
9856
|
+
const { setIsNavVisible: e, setIsSiteSearchVisible: t } = Ln(), { pathname: n } = Xe();
|
|
9857
9857
|
return Gt(() => {
|
|
9858
9858
|
e(!1), t(!1);
|
|
9859
9859
|
const r = document.body.querySelector("[data-main-scrollable]");
|
|
@@ -9868,11 +9868,11 @@ function mg() {
|
|
|
9868
9868
|
}, [n, e, t]), null;
|
|
9869
9869
|
}
|
|
9870
9870
|
const pg = {
|
|
9871
|
-
"*": Mt(() => import("./PageNotFound-
|
|
9872
|
-
"/": Mt(() => import("./GettingStartedRoute-
|
|
9873
|
-
"/common-questions": Mt(() => import("./CommonQuestionsRoute-
|
|
9874
|
-
"/support": Mt(() => import("./SupportRoute-
|
|
9875
|
-
"/versions": Mt(() => import("./VersionsRoute-
|
|
9871
|
+
"*": Mt(() => import("./PageNotFound-DFuJVroY.js")),
|
|
9872
|
+
"/": Mt(() => import("./GettingStartedRoute-CdyG0b_M.js")),
|
|
9873
|
+
"/common-questions": Mt(() => import("./CommonQuestionsRoute-B4oSkDKu.js")),
|
|
9874
|
+
"/support": Mt(() => import("./SupportRoute-zpZt3czS.js")),
|
|
9875
|
+
"/versions": Mt(() => import("./VersionsRoute-BLU7VqAE.js"))
|
|
9876
9876
|
};
|
|
9877
9877
|
function hg(e, t = 250) {
|
|
9878
9878
|
const [n, r] = J(e);
|
|
@@ -9889,45 +9889,57 @@ function hg(e, t = 250) {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
}, [t, e]), n;
|
|
9891
9891
|
}
|
|
9892
|
-
let
|
|
9892
|
+
let yr;
|
|
9893
9893
|
function gg() {
|
|
9894
|
-
return
|
|
9894
|
+
return yr === void 0 && (yr = fetch("/generated/site-map.json").then(
|
|
9895
9895
|
(e) => e.json()
|
|
9896
|
-
)),
|
|
9896
|
+
)), yr;
|
|
9897
9897
|
}
|
|
9898
9898
|
function Ti(e, t, n) {
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9899
|
+
if (!e)
|
|
9900
|
+
return "";
|
|
9901
|
+
const { maxLength: r = 0, leading: o = 0 } = {};
|
|
9902
|
+
t = t.trim().toLowerCase();
|
|
9903
|
+
const i = t.split(" ").filter(Boolean);
|
|
9904
|
+
if (i.length === 0)
|
|
9905
|
+
return e;
|
|
9906
|
+
const l = e.length;
|
|
9907
|
+
if (r && l > r) {
|
|
9908
|
+
const [f, p] = wg(
|
|
9909
|
+
e.toLowerCase(),
|
|
9910
|
+
i
|
|
9909
9911
|
);
|
|
9912
|
+
if (p <= r)
|
|
9913
|
+
e = e.substring(0, r) + "…";
|
|
9914
|
+
else {
|
|
9915
|
+
const d = Math.max(0, f - o), h = Math.min(l, d + r);
|
|
9916
|
+
h > r && (e = "…" + e.substring(d, h)), h < l && (e += "…");
|
|
9917
|
+
}
|
|
9918
|
+
}
|
|
9919
|
+
let a = e;
|
|
9920
|
+
t && i.forEach((f) => {
|
|
9921
|
+
a = a.replaceAll(new RegExp(`(${f})`, "gi"), "├$1┤");
|
|
9910
9922
|
});
|
|
9911
|
-
const
|
|
9912
|
-
let
|
|
9913
|
-
for (let
|
|
9914
|
-
const
|
|
9915
|
-
switch (
|
|
9923
|
+
const s = [];
|
|
9924
|
+
let c = "", u = 0;
|
|
9925
|
+
for (let f = 0; f < a.length; f++) {
|
|
9926
|
+
const p = a.charAt(f);
|
|
9927
|
+
switch (p) {
|
|
9916
9928
|
case "├": {
|
|
9917
|
-
|
|
9929
|
+
u++, u === 1 && c && (s.push(c), c = "");
|
|
9918
9930
|
break;
|
|
9919
9931
|
}
|
|
9920
9932
|
case "┤": {
|
|
9921
|
-
|
|
9933
|
+
u--, u === 0 && c && (s.push(bg(c)), c = "");
|
|
9922
9934
|
break;
|
|
9923
9935
|
}
|
|
9924
9936
|
default: {
|
|
9925
|
-
|
|
9937
|
+
c += p;
|
|
9926
9938
|
break;
|
|
9927
9939
|
}
|
|
9928
9940
|
}
|
|
9929
9941
|
}
|
|
9930
|
-
return
|
|
9942
|
+
return c && s.push(c), s;
|
|
9931
9943
|
}
|
|
9932
9944
|
let vg = 0;
|
|
9933
9945
|
function bg(e) {
|
|
@@ -9937,20 +9949,25 @@ function bg(e) {
|
|
|
9937
9949
|
key: ++vg
|
|
9938
9950
|
});
|
|
9939
9951
|
}
|
|
9940
|
-
function wg({
|
|
9952
|
+
function wg(e, t) {
|
|
9953
|
+
let n = e.length, r = e.length;
|
|
9954
|
+
return t.forEach((o) => {
|
|
9955
|
+
const i = e.indexOf(o);
|
|
9956
|
+
i < n && (n = i, r = i + o.length);
|
|
9957
|
+
}), [n, r];
|
|
9958
|
+
}
|
|
9959
|
+
function yg({
|
|
9941
9960
|
isActive: e,
|
|
9942
9961
|
result: t,
|
|
9943
9962
|
searchTextDeferred: n
|
|
9944
9963
|
}) {
|
|
9945
|
-
const r = U(null), o = ce(
|
|
9946
|
-
() =>
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
}) : "",
|
|
9953
|
-
[n, t.text]
|
|
9964
|
+
const r = U(null), { section: o, text: i, title: l } = ce(
|
|
9965
|
+
() => ({
|
|
9966
|
+
section: Ti(t.section ?? "", n),
|
|
9967
|
+
text: t.text,
|
|
9968
|
+
title: Ti(t.title, n)
|
|
9969
|
+
}),
|
|
9970
|
+
[t, n]
|
|
9954
9971
|
);
|
|
9955
9972
|
return re(() => {
|
|
9956
9973
|
e && r.current?.scrollIntoView({
|
|
@@ -9958,7 +9975,7 @@ function wg({
|
|
|
9958
9975
|
block: "nearest"
|
|
9959
9976
|
});
|
|
9960
9977
|
}, [e]), /* @__PURE__ */ R("li", { ref: r, children: /* @__PURE__ */ Y(
|
|
9961
|
-
|
|
9978
|
+
qn,
|
|
9962
9979
|
{
|
|
9963
9980
|
className: fe(
|
|
9964
9981
|
"rounded px-2 py-1 text-white/80 hover:text-white hover:bg-white/10 cursor-pointer transition-colors!",
|
|
@@ -9972,18 +9989,21 @@ function wg({
|
|
|
9972
9989
|
children: [
|
|
9973
9990
|
/* @__PURE__ */ Y("div", { className: "grow-1 shrink-1 overflow-auto flex flex-col gap-1", children: [
|
|
9974
9991
|
/* @__PURE__ */ Y("div", { className: "grow text-lg truncate text-white", children: [
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9992
|
+
o && /* @__PURE__ */ Y(ut, { children: [
|
|
9993
|
+
o,
|
|
9994
|
+
/* @__PURE__ */ R(yn, { className: "size-4 text-slate-400 inline" }),
|
|
9995
|
+
" "
|
|
9996
|
+
] }),
|
|
9997
|
+
l
|
|
9978
9998
|
] }),
|
|
9979
9999
|
i && /* @__PURE__ */ R("div", { className: "text-sm truncate pb-1", children: i })
|
|
9980
10000
|
] }),
|
|
9981
|
-
/* @__PURE__ */ R(
|
|
10001
|
+
/* @__PURE__ */ R(yn, { className: "h-4 w-4 shrink-0" })
|
|
9982
10002
|
]
|
|
9983
10003
|
}
|
|
9984
10004
|
) });
|
|
9985
10005
|
}
|
|
9986
|
-
function
|
|
10006
|
+
function xg(e, t) {
|
|
9987
10007
|
const n = t.toLowerCase().split(" ").filter(Boolean).map((o) => new RegExp(o, "ig"));
|
|
9988
10008
|
if (n.length === 0)
|
|
9989
10009
|
return e;
|
|
@@ -10003,11 +10023,11 @@ function yg(e, t) {
|
|
|
10003
10023
|
});
|
|
10004
10024
|
}), r.sort((o, i) => i.score - o.score).map((o) => o.page);
|
|
10005
10025
|
}
|
|
10006
|
-
function
|
|
10026
|
+
function Eg({
|
|
10007
10027
|
inputRef: e,
|
|
10008
10028
|
searchTextDeferred: t
|
|
10009
10029
|
}) {
|
|
10010
|
-
const n = es(gg()), [r, o] = J(0), i = ce(() => t ?
|
|
10030
|
+
const n = es(gg()), [r, o] = J(0), i = ce(() => t ? xg(n, t).slice(0, 10) : [], [t, n]);
|
|
10011
10031
|
return re(() => {
|
|
10012
10032
|
if (e) {
|
|
10013
10033
|
const l = (a) => {
|
|
@@ -10042,7 +10062,7 @@ function xg({
|
|
|
10042
10062
|
'"'
|
|
10043
10063
|
] }),
|
|
10044
10064
|
i.map((l, a) => /* @__PURE__ */ R(
|
|
10045
|
-
|
|
10065
|
+
yg,
|
|
10046
10066
|
{
|
|
10047
10067
|
isActive: r === a,
|
|
10048
10068
|
result: l,
|
|
@@ -10052,8 +10072,8 @@ function xg({
|
|
|
10052
10072
|
))
|
|
10053
10073
|
] });
|
|
10054
10074
|
}
|
|
10055
|
-
function
|
|
10056
|
-
const { isSiteSearchVisible: e, setIsSiteSearchVisible: t } =
|
|
10075
|
+
function Rg() {
|
|
10076
|
+
const { isSiteSearchVisible: e, setIsSiteSearchVisible: t } = Ln(), [n, r] = J(null), [o, i] = J(""), l = hg(o);
|
|
10057
10077
|
return re(() => {
|
|
10058
10078
|
if (!e) {
|
|
10059
10079
|
const a = (s) => {
|
|
@@ -10112,7 +10132,7 @@ function Eg() {
|
|
|
10112
10132
|
}
|
|
10113
10133
|
),
|
|
10114
10134
|
l && /* @__PURE__ */ R(
|
|
10115
|
-
|
|
10135
|
+
Eg,
|
|
10116
10136
|
{
|
|
10117
10137
|
inputRef: n,
|
|
10118
10138
|
searchTextDeferred: l
|
|
@@ -10123,15 +10143,15 @@ function Eg() {
|
|
|
10123
10143
|
}
|
|
10124
10144
|
) : null;
|
|
10125
10145
|
}
|
|
10126
|
-
const
|
|
10127
|
-
function
|
|
10146
|
+
const $g = typeof navigator < "u" && navigator.userAgent.indexOf("Win") >= 0 ? "^K" : "⌘K";
|
|
10147
|
+
function Vg({
|
|
10128
10148
|
enableSiteSearch: e,
|
|
10129
10149
|
navLinks: t,
|
|
10130
10150
|
routes: n,
|
|
10131
10151
|
...r
|
|
10132
10152
|
}) {
|
|
10133
10153
|
return /* @__PURE__ */ R(Wa, { ...r, children: /* @__PURE__ */ R(
|
|
10134
|
-
|
|
10154
|
+
Sg,
|
|
10135
10155
|
{
|
|
10136
10156
|
enableSiteSearch: e,
|
|
10137
10157
|
navLinks: t,
|
|
@@ -10139,7 +10159,7 @@ function Hg({
|
|
|
10139
10159
|
}
|
|
10140
10160
|
) });
|
|
10141
10161
|
}
|
|
10142
|
-
function
|
|
10162
|
+
function Sg({
|
|
10143
10163
|
enableSiteSearch: e,
|
|
10144
10164
|
navLinks: t,
|
|
10145
10165
|
routes: n
|
|
@@ -10152,7 +10172,7 @@ function $g({
|
|
|
10152
10172
|
setIsNavVisible: a,
|
|
10153
10173
|
setIsSiteSearchVisible: s,
|
|
10154
10174
|
versions: c
|
|
10155
|
-
} =
|
|
10175
|
+
} = Ln();
|
|
10156
10176
|
return /* @__PURE__ */ Y(Mc, { children: [
|
|
10157
10177
|
/* @__PURE__ */ R(mg, {}),
|
|
10158
10178
|
/* @__PURE__ */ Y("div", { className: "h-full w-full max-w-350 mx-auto flex flex-col", children: [
|
|
@@ -10167,7 +10187,7 @@ function $g({
|
|
|
10167
10187
|
gap: 4,
|
|
10168
10188
|
children: [
|
|
10169
10189
|
/* @__PURE__ */ R(
|
|
10170
|
-
|
|
10190
|
+
qn,
|
|
10171
10191
|
{
|
|
10172
10192
|
children: l,
|
|
10173
10193
|
className: "text-xl text-header-package-name! font-bold cursor-pointer truncate",
|
|
@@ -10188,12 +10208,12 @@ function $g({
|
|
|
10188
10208
|
title: "Site search",
|
|
10189
10209
|
children: /* @__PURE__ */ Y("div", { className: "h-8 flex items-center justify-center gap-1 px-2 rounded-full text-sm bg-black/40 hover:bg-black/60 transition-colors!", children: [
|
|
10190
10210
|
/* @__PURE__ */ R(Ai, { className: "w-4 h-4" }),
|
|
10191
|
-
|
|
10211
|
+
$g
|
|
10192
10212
|
] })
|
|
10193
10213
|
}
|
|
10194
10214
|
),
|
|
10195
10215
|
c !== void 0 && /* @__PURE__ */ R(
|
|
10196
|
-
|
|
10216
|
+
wr,
|
|
10197
10217
|
{
|
|
10198
10218
|
ariaLabel: "Documentation for other versions",
|
|
10199
10219
|
children: /* @__PURE__ */ R(Gc, { className: "w-6 h-6" }),
|
|
@@ -10202,7 +10222,7 @@ function $g({
|
|
|
10202
10222
|
}
|
|
10203
10223
|
),
|
|
10204
10224
|
/* @__PURE__ */ R(
|
|
10205
|
-
|
|
10225
|
+
wr,
|
|
10206
10226
|
{
|
|
10207
10227
|
ariaLabel: "NPM project page",
|
|
10208
10228
|
children: /* @__PURE__ */ R(zc, { className: "w-8 h-8" }),
|
|
@@ -10212,7 +10232,7 @@ function $g({
|
|
|
10212
10232
|
}
|
|
10213
10233
|
),
|
|
10214
10234
|
/* @__PURE__ */ R(
|
|
10215
|
-
|
|
10235
|
+
wr,
|
|
10216
10236
|
{
|
|
10217
10237
|
ariaLabel: "GitHub project page",
|
|
10218
10238
|
children: /* @__PURE__ */ R(Wc, { className: "w-6 h-6" }),
|
|
@@ -10275,10 +10295,10 @@ function $g({
|
|
|
10275
10295
|
)
|
|
10276
10296
|
] })
|
|
10277
10297
|
] }),
|
|
10278
|
-
e && /* @__PURE__ */ R(
|
|
10298
|
+
e && /* @__PURE__ */ R(Rg, {})
|
|
10279
10299
|
] });
|
|
10280
10300
|
}
|
|
10281
|
-
function
|
|
10301
|
+
function jg({
|
|
10282
10302
|
children: e,
|
|
10283
10303
|
className: t,
|
|
10284
10304
|
...n
|
|
@@ -10292,8 +10312,8 @@ function Vg({
|
|
|
10292
10312
|
}
|
|
10293
10313
|
) });
|
|
10294
10314
|
}
|
|
10295
|
-
const
|
|
10296
|
-
function
|
|
10315
|
+
const Cg = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "m424-424-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-424ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), kg = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M320-440h320q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" })), Pg = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" }));
|
|
10316
|
+
function Wg({
|
|
10297
10317
|
checked: e,
|
|
10298
10318
|
children: t,
|
|
10299
10319
|
className: n,
|
|
@@ -10302,7 +10322,7 @@ function jg({
|
|
|
10302
10322
|
...i
|
|
10303
10323
|
}) {
|
|
10304
10324
|
let l, a;
|
|
10305
|
-
return r ? (l =
|
|
10325
|
+
return r ? (l = kg, a = "fill-white") : e ? (l = Cg, a = "fill-blue-600") : (l = Pg, a = "fill-slate-600"), /* @__PURE__ */ Y(
|
|
10306
10326
|
"label",
|
|
10307
10327
|
{
|
|
10308
10328
|
className: `cursor-pointer rounded-lg flex flex-row items-center outline-none group ${n}`,
|
|
@@ -10321,7 +10341,7 @@ function jg({
|
|
|
10321
10341
|
}
|
|
10322
10342
|
),
|
|
10323
10343
|
/* @__PURE__ */ R(l, { className: a }),
|
|
10324
|
-
t && /* @__PURE__ */ Y(
|
|
10344
|
+
t && /* @__PURE__ */ Y(ut, { children: [
|
|
10325
10345
|
" ",
|
|
10326
10346
|
t
|
|
10327
10347
|
] })
|
|
@@ -10345,7 +10365,7 @@ function za({
|
|
|
10345
10365
|
}
|
|
10346
10366
|
) });
|
|
10347
10367
|
}
|
|
10348
|
-
function
|
|
10368
|
+
function Yn({
|
|
10349
10369
|
className: e,
|
|
10350
10370
|
sections: t
|
|
10351
10371
|
}) {
|
|
@@ -10364,13 +10384,13 @@ function Ua({
|
|
|
10364
10384
|
sourceCodePath: t,
|
|
10365
10385
|
title: n
|
|
10366
10386
|
}) {
|
|
10367
|
-
const { repositoryUrl: r } =
|
|
10368
|
-
return /* @__PURE__ */ Y(
|
|
10387
|
+
const { repositoryUrl: r } = Ln();
|
|
10388
|
+
return /* @__PURE__ */ Y(ut, { children: [
|
|
10369
10389
|
/* @__PURE__ */ Y("header", { className: "text-xl", children: [
|
|
10370
|
-
e && /* @__PURE__ */ Y(
|
|
10390
|
+
e && /* @__PURE__ */ Y(ut, { children: [
|
|
10371
10391
|
/* @__PURE__ */ R("span", { className: "text-xl whitespace-nowrap", "data-section": !0, children: e }),
|
|
10372
10392
|
" ",
|
|
10373
|
-
/* @__PURE__ */ R(
|
|
10393
|
+
/* @__PURE__ */ R(yn, { className: "size-4 text-slate-400 inline" }),
|
|
10374
10394
|
" "
|
|
10375
10395
|
] }),
|
|
10376
10396
|
/* @__PURE__ */ R("span", { className: "text-xl", "data-title": !0, children: n }),
|
|
@@ -10386,18 +10406,18 @@ function Ua({
|
|
|
10386
10406
|
/* @__PURE__ */ R("title", { children: e ? `${e}: ${n}` : n })
|
|
10387
10407
|
] });
|
|
10388
10408
|
}
|
|
10389
|
-
function
|
|
10409
|
+
function Tg({
|
|
10390
10410
|
method: e
|
|
10391
10411
|
}) {
|
|
10392
|
-
return /* @__PURE__ */ Y(
|
|
10412
|
+
return /* @__PURE__ */ Y(ut, { children: [
|
|
10393
10413
|
/* @__PURE__ */ R("dd", { className: "[&_code]:text-sky-300 text-lg font-bold", children: e.name }),
|
|
10394
10414
|
/* @__PURE__ */ Y("dt", { className: "mb-2", children: [
|
|
10395
|
-
/* @__PURE__ */ R(
|
|
10415
|
+
/* @__PURE__ */ R(Yn, { sections: e.description }),
|
|
10396
10416
|
/* @__PURE__ */ R(za, { className: "mt-2 p-2 flex flex-col", html: e.html })
|
|
10397
10417
|
] })
|
|
10398
10418
|
] });
|
|
10399
10419
|
}
|
|
10400
|
-
function
|
|
10420
|
+
function zg({
|
|
10401
10421
|
json: e,
|
|
10402
10422
|
section: t
|
|
10403
10423
|
}) {
|
|
@@ -10410,11 +10430,11 @@ function Wg({
|
|
|
10410
10430
|
title: `${e.name}`
|
|
10411
10431
|
}
|
|
10412
10432
|
),
|
|
10413
|
-
/* @__PURE__ */ R(
|
|
10414
|
-
/* @__PURE__ */ R(Pe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(
|
|
10433
|
+
/* @__PURE__ */ R(Yn, { sections: e.description }),
|
|
10434
|
+
/* @__PURE__ */ R(Pe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(Tg, { method: n }, r)) }) })
|
|
10415
10435
|
] });
|
|
10416
10436
|
}
|
|
10417
|
-
function
|
|
10437
|
+
function Ug({
|
|
10418
10438
|
children: e,
|
|
10419
10439
|
className: t,
|
|
10420
10440
|
onChange: n,
|
|
@@ -10435,7 +10455,7 @@ function zg({
|
|
|
10435
10455
|
}
|
|
10436
10456
|
);
|
|
10437
10457
|
}
|
|
10438
|
-
function
|
|
10458
|
+
function Gg() {
|
|
10439
10459
|
return /* @__PURE__ */ Y(Pe, { align: "center", className: "text-slate-300", direction: "row", gap: 2, children: [
|
|
10440
10460
|
/* @__PURE__ */ R(ns, { className: "size-4 animate-spin" }),
|
|
10441
10461
|
"Loading..."
|
|
@@ -10461,12 +10481,12 @@ function Ga({
|
|
|
10461
10481
|
}
|
|
10462
10482
|
);
|
|
10463
10483
|
}
|
|
10464
|
-
function
|
|
10484
|
+
function qg({
|
|
10465
10485
|
children: e,
|
|
10466
10486
|
className: t,
|
|
10467
10487
|
path: n
|
|
10468
10488
|
}) {
|
|
10469
|
-
return /* @__PURE__ */ R(
|
|
10489
|
+
return /* @__PURE__ */ R(qn, { to: n, children: ({ isActive: r, isPending: o }) => /* @__PURE__ */ R(
|
|
10470
10490
|
Ga,
|
|
10471
10491
|
{
|
|
10472
10492
|
className: fe(
|
|
@@ -10490,19 +10510,19 @@ function Kg({
|
|
|
10490
10510
|
/* @__PURE__ */ R(Ta, { className: "w-full group border-none! data-focus:bg-white/10", children: /* @__PURE__ */ Y(Ga, { children: [
|
|
10491
10511
|
/* @__PURE__ */ R("div", { className: "uppercase text-sm font-bold text-white/50", children: t }),
|
|
10492
10512
|
/* @__PURE__ */ R("div", { className: "grow" }),
|
|
10493
|
-
/* @__PURE__ */ R(
|
|
10513
|
+
/* @__PURE__ */ R(yn, { className: "size-4 fill-white/60 group-data-hover:fill-white/50 group-data-open:rotate-90" })
|
|
10494
10514
|
] }) }),
|
|
10495
10515
|
/* @__PURE__ */ R(Oa, { className: "pl-4", children: e })
|
|
10496
10516
|
] });
|
|
10497
10517
|
}
|
|
10498
|
-
function
|
|
10518
|
+
function Og(e) {
|
|
10499
10519
|
const t = [], n = [];
|
|
10500
10520
|
return Object.values(e.props).forEach((r) => {
|
|
10501
10521
|
r.required ? n.push(r) : t.push(r);
|
|
10502
10522
|
}), t.sort((r, o) => r.name.localeCompare(o.name)), n.sort((r, o) => r.name.localeCompare(o.name)), { optionalProps: t, requiredProps: n };
|
|
10503
10523
|
}
|
|
10504
|
-
function
|
|
10505
|
-
return /* @__PURE__ */ Y(
|
|
10524
|
+
function Lg({ prop: e }) {
|
|
10525
|
+
return /* @__PURE__ */ Y(ut, { children: [
|
|
10506
10526
|
/* @__PURE__ */ R("dt", { className: "mt-6 pl-8 indent-[-1rem]", children: /* @__PURE__ */ R(
|
|
10507
10527
|
za,
|
|
10508
10528
|
{
|
|
@@ -10510,7 +10530,7 @@ function Og({ prop: e }) {
|
|
|
10510
10530
|
html: e.html
|
|
10511
10531
|
}
|
|
10512
10532
|
) }),
|
|
10513
|
-
/* @__PURE__ */ R("dd", { className: "mt-2 pl-4 [&_code]:text-sky-300", children: /* @__PURE__ */ R(
|
|
10533
|
+
/* @__PURE__ */ R("dd", { className: "mt-2 pl-4 [&_code]:text-sky-300", children: /* @__PURE__ */ R(Yn, { sections: e.description }) })
|
|
10514
10534
|
] });
|
|
10515
10535
|
}
|
|
10516
10536
|
function Oi({
|
|
@@ -10519,15 +10539,15 @@ function Oi({
|
|
|
10519
10539
|
}) {
|
|
10520
10540
|
return t.length === 0 ? null : /* @__PURE__ */ Y(Pe, { direction: "column", children: [
|
|
10521
10541
|
/* @__PURE__ */ R("div", { className: "text-lg font-bold", children: e }),
|
|
10522
|
-
/* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(
|
|
10542
|
+
/* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(Lg, { prop: n }, n.name)) })
|
|
10523
10543
|
] });
|
|
10524
10544
|
}
|
|
10525
|
-
function
|
|
10545
|
+
function Yg({
|
|
10526
10546
|
json: e,
|
|
10527
10547
|
section: t
|
|
10528
10548
|
}) {
|
|
10529
10549
|
const { optionalProps: n, requiredProps: r } = ce(
|
|
10530
|
-
() =>
|
|
10550
|
+
() => Og(e),
|
|
10531
10551
|
[e]
|
|
10532
10552
|
);
|
|
10533
10553
|
return /* @__PURE__ */ Y(Pe, { direction: "column", gap: 4, children: [
|
|
@@ -10539,13 +10559,13 @@ function qg({
|
|
|
10539
10559
|
title: `${e.name} component props`
|
|
10540
10560
|
}
|
|
10541
10561
|
),
|
|
10542
|
-
/* @__PURE__ */ R(
|
|
10562
|
+
/* @__PURE__ */ R(Yn, { sections: e.description }),
|
|
10543
10563
|
/* @__PURE__ */ R(Oi, { header: "Required props", props: r }),
|
|
10544
10564
|
/* @__PURE__ */ R(Oi, { header: "Optional props", props: n })
|
|
10545
10565
|
] });
|
|
10546
10566
|
}
|
|
10547
|
-
const
|
|
10548
|
-
function
|
|
10567
|
+
const Ag = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "m424-408-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-408Zm56 328q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })), Mg = (e) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ m.createElement("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" }));
|
|
10568
|
+
function Xg({
|
|
10549
10569
|
checked: e,
|
|
10550
10570
|
children: t,
|
|
10551
10571
|
className: n,
|
|
@@ -10555,7 +10575,7 @@ function Yg({
|
|
|
10555
10575
|
...l
|
|
10556
10576
|
}) {
|
|
10557
10577
|
let a, s;
|
|
10558
|
-
return e ? (a =
|
|
10578
|
+
return e ? (a = Ag, s = "fill-blue-600") : (a = Mg, s = "fill-slate-600"), /* @__PURE__ */ Y(
|
|
10559
10579
|
"label",
|
|
10560
10580
|
{
|
|
10561
10581
|
className: `cursor-pointer rounded-full flex flex-row items-center outline-none group ${n}`,
|
|
@@ -10576,7 +10596,7 @@ function Yg({
|
|
|
10576
10596
|
}
|
|
10577
10597
|
),
|
|
10578
10598
|
/* @__PURE__ */ R(a, { className: s }),
|
|
10579
|
-
t && /* @__PURE__ */ Y(
|
|
10599
|
+
t && /* @__PURE__ */ Y(ut, { children: [
|
|
10580
10600
|
" ",
|
|
10581
10601
|
t
|
|
10582
10602
|
] })
|
|
@@ -10584,7 +10604,7 @@ function Yg({
|
|
|
10584
10604
|
}
|
|
10585
10605
|
);
|
|
10586
10606
|
}
|
|
10587
|
-
function
|
|
10607
|
+
function Zg({
|
|
10588
10608
|
className: e,
|
|
10589
10609
|
defaultValue: t,
|
|
10590
10610
|
onChange: n,
|
|
@@ -10633,7 +10653,7 @@ function Xg({
|
|
|
10633
10653
|
) })
|
|
10634
10654
|
] }) });
|
|
10635
10655
|
}
|
|
10636
|
-
function
|
|
10656
|
+
function Jg(e, t) {
|
|
10637
10657
|
switch (e) {
|
|
10638
10658
|
case "danger":
|
|
10639
10659
|
return t ? "bg-red-950 text-red-300 [&_svg]:text-red-500" : "bg-black/10 bg-border border-2 border-red-500 text-white [&_svg]:text-red-500 [&_a]:text-red-400!";
|
|
@@ -10648,32 +10668,32 @@ function Zg(e, t) {
|
|
|
10648
10668
|
}
|
|
10649
10669
|
}
|
|
10650
10670
|
export {
|
|
10651
|
-
|
|
10671
|
+
Vg as A,
|
|
10652
10672
|
Pe as B,
|
|
10653
10673
|
ml as C,
|
|
10654
|
-
|
|
10674
|
+
Yn as D,
|
|
10655
10675
|
ja as E,
|
|
10656
10676
|
Ua as H,
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10677
|
+
zg as I,
|
|
10678
|
+
qn as L,
|
|
10679
|
+
qg as N,
|
|
10680
|
+
Xg as R,
|
|
10661
10681
|
Gc as S,
|
|
10662
10682
|
Va as T,
|
|
10663
|
-
|
|
10683
|
+
jg as a,
|
|
10664
10684
|
Ph as b,
|
|
10665
|
-
|
|
10685
|
+
Wg as c,
|
|
10666
10686
|
za as d,
|
|
10667
10687
|
_a as e,
|
|
10668
|
-
|
|
10669
|
-
|
|
10688
|
+
Ug as f,
|
|
10689
|
+
Gg as g,
|
|
10670
10690
|
Kg as h,
|
|
10671
|
-
|
|
10691
|
+
Yg as i,
|
|
10672
10692
|
Oi as j,
|
|
10673
|
-
|
|
10674
|
-
|
|
10693
|
+
Zg as k,
|
|
10694
|
+
qc as l,
|
|
10675
10695
|
fe as m,
|
|
10676
|
-
|
|
10677
|
-
|
|
10696
|
+
Jg as n,
|
|
10697
|
+
Ln as u
|
|
10678
10698
|
};
|
|
10679
|
-
//# sourceMappingURL=index-
|
|
10699
|
+
//# sourceMappingURL=index-CaRziUeA.js.map
|