react-lib-tools 0.0.47 → 0.0.49
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-vsAObCFT.cjs → CommonQuestionsRoute-C7Dvx_8D.cjs} +2 -2
- package/dist/{CommonQuestionsRoute-vsAObCFT.cjs.map → CommonQuestionsRoute-C7Dvx_8D.cjs.map} +1 -1
- package/dist/{CommonQuestionsRoute-BA4ZhMTe.js → CommonQuestionsRoute-CRSNF0Pf.js} +2 -2
- package/dist/{CommonQuestionsRoute-BA4ZhMTe.js.map → CommonQuestionsRoute-CRSNF0Pf.js.map} +1 -1
- package/dist/{GettingStartedRoute-D144jL7r.cjs → GettingStartedRoute-BKH20xPD.cjs} +2 -2
- package/dist/{GettingStartedRoute-D144jL7r.cjs.map → GettingStartedRoute-BKH20xPD.cjs.map} +1 -1
- package/dist/{GettingStartedRoute-C1eEI6XL.js → GettingStartedRoute-CnQSytXZ.js} +2 -2
- package/dist/{GettingStartedRoute-C1eEI6XL.js.map → GettingStartedRoute-CnQSytXZ.js.map} +1 -1
- package/dist/{PageNotFound-CU9uqnRi.js → PageNotFound-0sTGJQpW.js} +2 -2
- package/dist/{PageNotFound-CU9uqnRi.js.map → PageNotFound-0sTGJQpW.js.map} +1 -1
- package/dist/{PageNotFound-CGbDPOsm.cjs → PageNotFound-BP1q3mAm.cjs} +2 -2
- package/dist/{PageNotFound-CGbDPOsm.cjs.map → PageNotFound-BP1q3mAm.cjs.map} +1 -1
- package/dist/{SupportRoute-D907jHET.js → SupportRoute-B70W0nGt.js} +2 -2
- package/dist/{SupportRoute-D907jHET.js.map → SupportRoute-B70W0nGt.js.map} +1 -1
- package/dist/{SupportRoute-BJbK64__.cjs → SupportRoute-DJ8l10dE.cjs} +2 -2
- package/dist/{SupportRoute-BJbK64__.cjs.map → SupportRoute-DJ8l10dE.cjs.map} +1 -1
- package/dist/{VersionsRoute-ahVJDsum.cjs → VersionsRoute-B9OjVQl5.cjs} +2 -2
- package/dist/{VersionsRoute-ahVJDsum.cjs.map → VersionsRoute-B9OjVQl5.cjs.map} +1 -1
- package/dist/{VersionsRoute-CXRx1ZeN.js → VersionsRoute-BDTmCVHk.js} +2 -2
- package/dist/{VersionsRoute-CXRx1ZeN.js.map → VersionsRoute-BDTmCVHk.js.map} +1 -1
- package/dist/{index-DwdhsbJr.cjs → index-D8_W9HHv.cjs} +2 -2
- package/dist/index-D8_W9HHv.cjs.map +1 -0
- package/dist/{index-DHqKf7uc.js → index-DjmISh76.js} +364 -351
- package/dist/index-DjmISh76.js.map +1 -0
- package/dist/react-lib-tools.cjs +1 -1
- package/dist/react-lib-tools.js +1 -1
- package/package.json +1 -2
- package/scripts/compile-search-index.ts +5 -19
- package/scripts/utils/search/crawlPage.ts +28 -28
- package/dist/fuse-BvOe6mNx.js +0 -1023
- package/dist/fuse-BvOe6mNx.js.map +0 -1
- package/dist/fuse-CM2wbN_z.cjs +0 -2
- package/dist/fuse-CM2wbN_z.cjs.map +0 -1
- package/dist/index-DHqKf7uc.js.map +0 -1
- package/dist/index-DwdhsbJr.cjs.map +0 -1
- package/scripts/utils/search/stopWords.ts +0 -129
- package/scripts/utils/search/types.ts +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as R, jsxs as Y, Fragment as Rt } 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
|
|
5
|
-
import * as
|
|
6
|
-
import { flushSync 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 Hr, cloneElement as Li, useId as qe, useSyncExternalStore as Za, useReducer as Ja, useTransition as Qa, lazy as Mt, startTransition as Eo, use as es } from "react";
|
|
5
|
+
import * as bn from "react-dom";
|
|
6
|
+
import { flushSync as wn, createPortal as Vr } from "react-dom";
|
|
7
7
|
function ts({
|
|
8
8
|
title: e,
|
|
9
9
|
titleId: t,
|
|
@@ -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 Yn(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
|
+
Yn("?", "pathname", "search", o)
|
|
623
623
|
), ne(
|
|
624
624
|
!o.pathname || !o.pathname.includes("#"),
|
|
625
|
-
|
|
625
|
+
Yn("#", "pathname", "hash", o)
|
|
626
626
|
), ne(
|
|
627
627
|
!o.search || !o.search.includes("#"),
|
|
628
|
-
|
|
628
|
+
Yn("#", "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 Pn = m.createContext(null);
|
|
671
|
+
Pn.displayName = "DataRouterState";
|
|
672
672
|
m.createContext(!1);
|
|
673
673
|
var Hi = m.createContext({
|
|
674
674
|
isTransitioning: !1
|
|
@@ -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(Pn);
|
|
1028
1028
|
return ne(t, zr(e)), t;
|
|
1029
1029
|
}
|
|
1030
1030
|
function oc(e) {
|
|
@@ -1190,17 +1190,17 @@ function xr(e, t = []) {
|
|
|
1190
1190
|
}), n;
|
|
1191
1191
|
}
|
|
1192
1192
|
var dn = "get", fn = "application/x-www-form-urlencoded";
|
|
1193
|
-
function
|
|
1193
|
+
function Tn(e) {
|
|
1194
1194
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
1195
1195
|
}
|
|
1196
1196
|
function dc(e) {
|
|
1197
|
-
return
|
|
1197
|
+
return Tn(e) && e.tagName.toLowerCase() === "button";
|
|
1198
1198
|
}
|
|
1199
1199
|
function fc(e) {
|
|
1200
|
-
return
|
|
1200
|
+
return Tn(e) && e.tagName.toLowerCase() === "form";
|
|
1201
1201
|
}
|
|
1202
1202
|
function mc(e) {
|
|
1203
|
-
return
|
|
1203
|
+
return Tn(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 Xn(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 = Xn(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 = Xn(e.getAttribute("formenctype")) || Xn(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 (Tn(e))
|
|
1259
1259
|
throw new Error(
|
|
1260
1260
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1261
1261
|
);
|
|
@@ -1380,7 +1380,7 @@ function Ki() {
|
|
|
1380
1380
|
), e;
|
|
1381
1381
|
}
|
|
1382
1382
|
function kc() {
|
|
1383
|
-
let e = m.useContext(
|
|
1383
|
+
let e = m.useContext(Pn);
|
|
1384
1384
|
return Gr(
|
|
1385
1385
|
e,
|
|
1386
1386
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
@@ -1632,7 +1632,7 @@ var Nc = m.forwardRef(
|
|
|
1632
1632
|
children: s,
|
|
1633
1633
|
...c
|
|
1634
1634
|
}, u) {
|
|
1635
|
-
let f = qt(l, { relative: c.relative }), p = Xe(), d = m.useContext(
|
|
1635
|
+
let f = qt(l, { relative: c.relative }), p = Xe(), d = m.useContext(Pn), { 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);
|
|
@@ -1830,7 +1830,7 @@ function Kc(e, t = "Assertion error") {
|
|
|
1830
1830
|
if (!e)
|
|
1831
1831
|
throw Error(t);
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function On() {
|
|
1834
1834
|
const e = te(Qi);
|
|
1835
1835
|
return Kc(e, "App must be rendered within a LibraryContextProvider"), e;
|
|
1836
1836
|
}
|
|
@@ -1861,7 +1861,7 @@ const Yc = (e, t) => {
|
|
|
1861
1861
|
nextPart: e,
|
|
1862
1862
|
validators: t,
|
|
1863
1863
|
classGroupId: n
|
|
1864
|
-
}),
|
|
1864
|
+
}), yn = "-", 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(yn), 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(yn) : e.slice(t).join(yn), s = l.length;
|
|
1896
1896
|
for (let c = 0; c < s; c++) {
|
|
1897
1897
|
const u = l[c];
|
|
1898
1898
|
if (u.validator(a))
|
|
@@ -1947,7 +1947,7 @@ const Yc = (e, t) => {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
}, rl = (e, t) => {
|
|
1949
1949
|
let n = e;
|
|
1950
|
-
const r = t.split(
|
|
1950
|
+
const r = t.split(yn), 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);
|
|
@@ -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)\(.+\)$/, bt = (e) => vu.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Qe = (e) => !!e && Number.isInteger(Number(e)),
|
|
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)\(.+\)$/, bt = (e) => vu.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Qe = (e) => !!e && Number.isInteger(Number(e)), Zn = (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), Jn = (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) => {
|
|
@@ -2159,7 +2159,7 @@ const Yc = (e, t) => {
|
|
|
2159
2159
|
repeat: ["", "x", "y", "space", "round"]
|
|
2160
2160
|
}], ee = () => ["auto", "cover", "contain", Lu, Pu, {
|
|
2161
2161
|
size: [F, N]
|
|
2162
|
-
}], B = () => [
|
|
2162
|
+
}], B = () => [Zn, Ft, lt], D = () => [
|
|
2163
2163
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2164
2164
|
"",
|
|
2165
2165
|
"none",
|
|
@@ -2167,7 +2167,7 @@ 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"], q = () => [G,
|
|
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"], q = () => [G, Zn, Mo, Ao], Ee = () => [
|
|
2171
2171
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2172
2172
|
"",
|
|
2173
2173
|
"none",
|
|
@@ -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, Jn]
|
|
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", Zn, 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, Jn]
|
|
2946
2946
|
}],
|
|
2947
2947
|
/**
|
|
2948
2948
|
* Line Height
|
|
@@ -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, Jn]
|
|
4531
4531
|
}],
|
|
4532
4532
|
/**
|
|
4533
4533
|
* Stroke
|
|
@@ -4666,13 +4666,13 @@ function Pe({
|
|
|
4666
4666
|
}
|
|
4667
4667
|
);
|
|
4668
4668
|
}
|
|
4669
|
-
const Du = le(null),
|
|
4669
|
+
const Du = le(null), Qn = {
|
|
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 = Qn;
|
|
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(Qn);
|
|
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(Qn);
|
|
4713
4713
|
}
|
|
4714
4714
|
}
|
|
4715
4715
|
render() {
|
|
@@ -4731,13 +4731,13 @@ let _u = class extends Ya {
|
|
|
4731
4731
|
if (typeof n == "function")
|
|
4732
4732
|
a = n(s);
|
|
4733
4733
|
else if (r)
|
|
4734
|
-
a =
|
|
4734
|
+
a = vn(r, s);
|
|
4735
4735
|
else if (o !== void 0)
|
|
4736
4736
|
a = o;
|
|
4737
4737
|
else
|
|
4738
4738
|
throw l;
|
|
4739
4739
|
}
|
|
4740
|
-
return
|
|
4740
|
+
return vn(Du.Provider, {
|
|
4741
4741
|
value: {
|
|
4742
4742
|
didCatch: i,
|
|
4743
4743
|
error: l,
|
|
@@ -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 er;
|
|
4804
|
+
const Vu = (er = j.useInsertionEffect) !== null && er !== void 0 ? er : pl;
|
|
4805
4805
|
function ju(e) {
|
|
4806
4806
|
const t = U(null);
|
|
4807
4807
|
return Vu(() => {
|
|
@@ -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 Ln(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;
|
|
@@ -4876,15 +4876,15 @@ Ze(function() {
|
|
|
4876
4876
|
return Zr() || qu();
|
|
4877
4877
|
});
|
|
4878
4878
|
Ze(function() {
|
|
4879
|
-
return
|
|
4879
|
+
return Ln(/AppleWebKit/i) && !Yu();
|
|
4880
4880
|
});
|
|
4881
4881
|
const Yu = Ze(function() {
|
|
4882
|
-
return
|
|
4882
|
+
return Ln(/Chrome/i);
|
|
4883
4883
|
}), Xu = Ze(function() {
|
|
4884
|
-
return
|
|
4884
|
+
return Ln(/Android/i);
|
|
4885
4885
|
});
|
|
4886
4886
|
Ze(function() {
|
|
4887
|
-
return
|
|
4887
|
+
return Ln(/Firefox/i);
|
|
4888
4888
|
});
|
|
4889
4889
|
function vl() {
|
|
4890
4890
|
let e = U(/* @__PURE__ */ new Map()), t = Z((o, i, l, a) => {
|
|
@@ -4991,7 +4991,7 @@ function Jr(e, t) {
|
|
|
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
|
|
4994
|
+
function xn(e) {
|
|
4995
4995
|
ut = !0, td(e) && (Yt = "keyboard", Jr("keyboard", e));
|
|
4996
4996
|
}
|
|
4997
4997
|
function ke(e) {
|
|
@@ -5012,7 +5012,7 @@ function Cr(e) {
|
|
|
5012
5012
|
let r = t.HTMLElement.prototype.focus;
|
|
5013
5013
|
t.HTMLElement.prototype.focus = function() {
|
|
5014
5014
|
ut = !0, r.apply(this, arguments);
|
|
5015
|
-
}, n.addEventListener("keydown",
|
|
5015
|
+
}, n.addEventListener("keydown", xn, !0), n.addEventListener("keyup", xn, !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,7 +5022,7 @@ 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", xn, !0), r.removeEventListener("keyup", xn, !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);
|
|
@@ -5133,10 +5133,10 @@ function ad(e) {
|
|
|
5133
5133
|
}
|
|
5134
5134
|
};
|
|
5135
5135
|
}
|
|
5136
|
-
let
|
|
5136
|
+
let En = !1, rn = 0;
|
|
5137
5137
|
function kr() {
|
|
5138
|
-
|
|
5139
|
-
|
|
5138
|
+
En = !0, setTimeout(() => {
|
|
5139
|
+
En = !1;
|
|
5140
5140
|
}, 50);
|
|
5141
5141
|
}
|
|
5142
5142
|
function No(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
|
+
En && 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 && !En && 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, tr = (e, t, n) => (ud(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5243
5243
|
let dd = class {
|
|
5244
5244
|
constructor() {
|
|
5245
|
-
|
|
5245
|
+
tr(this, "current", this.detect()), tr(this, "handoffState", "pending"), tr(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 Rn(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 = Rn(e)) == null ? void 0 : t.activeElement) != null ? n : null;
|
|
5283
5283
|
}
|
|
5284
5284
|
function fd(e) {
|
|
5285
5285
|
return Sl(e) === e;
|
|
@@ -5372,7 +5372,7 @@ function Te(e) {
|
|
|
5372
5372
|
return ce(() => e, Object.values(e));
|
|
5373
5373
|
}
|
|
5374
5374
|
let hd = le(void 0);
|
|
5375
|
-
function
|
|
5375
|
+
function An() {
|
|
5376
5376
|
return te(hd);
|
|
5377
5377
|
}
|
|
5378
5378
|
function Pr(...e) {
|
|
@@ -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 } = nr(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) {
|
|
@@ -5428,11 +5428,11 @@ function on(e, t = {}, n, r, o) {
|
|
|
5428
5428
|
`)].join(`
|
|
5429
5429
|
`));
|
|
5430
5430
|
} else {
|
|
5431
|
-
let p = u.props, d = p?.className, h = typeof d == "function" ? (...b) => Pr(d(...b), s.className) : Pr(d, s.className), g = h ? { className: h } : {}, v = kl(u.props, et(
|
|
5431
|
+
let p = u.props, d = p?.className, h = typeof d == "function" ? (...b) => Pr(d(...b), s.className) : Pr(d, s.className), g = h ? { className: h } : {}, v = kl(u.props, et(nr(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
|
|
5435
|
+
return vn(i, Object.assign({}, nr(s, ["ref"]), !xt(i) && c, !xt(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 nr(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;
|
|
@@ -5502,13 +5502,13 @@ function yd(e) {
|
|
|
5502
5502
|
let xd = "button";
|
|
5503
5503
|
function Ed(e, t) {
|
|
5504
5504
|
var n;
|
|
5505
|
-
let r =
|
|
5505
|
+
let r = An(), { 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, K((c) => (i ||
|
|
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, K((c) => (i || wn(() => o(c)), t?.(c)))];
|
|
5512
5512
|
}
|
|
5513
5513
|
function Sd(e) {
|
|
5514
5514
|
let [t] = J(e);
|
|
@@ -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 Mn(e) {
|
|
5584
5584
|
return Ml(e) && "tagName" in e;
|
|
5585
5585
|
}
|
|
5586
5586
|
function Je(e) {
|
|
5587
|
-
return
|
|
5587
|
+
return Mn(e) && "accessKey" in e;
|
|
5588
5588
|
}
|
|
5589
5589
|
function nt(e) {
|
|
5590
|
-
return
|
|
5590
|
+
return Mn(e) && "tabIndex" in e;
|
|
5591
5591
|
}
|
|
5592
5592
|
function Fd(e) {
|
|
5593
|
-
return
|
|
5593
|
+
return Mn(e) && "style" in e;
|
|
5594
5594
|
}
|
|
5595
5595
|
function Id(e) {
|
|
5596
5596
|
return Je(e) && e.nodeName === "IFRAME";
|
|
@@ -5608,7 +5608,7 @@ function Fl(e) {
|
|
|
5608
5608
|
return Je(e) && e.nodeName === "LEGEND";
|
|
5609
5609
|
}
|
|
5610
5610
|
function _d(e) {
|
|
5611
|
-
return
|
|
5611
|
+
return Mn(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
5613
|
function Tr(e) {
|
|
5614
5614
|
let t = e.parentElement, n = null;
|
|
@@ -5655,7 +5655,7 @@ function Hd() {
|
|
|
5655
5655
|
}
|
|
5656
5656
|
let Vd = "p";
|
|
5657
5657
|
function jd(e, t) {
|
|
5658
|
-
let n = qe(), r =
|
|
5658
|
+
let n = qe(), r = An(), { 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 Nn = le(null);
|
|
5667
|
+
Nn.displayName = "LabelContext";
|
|
5668
5668
|
function Bl() {
|
|
5669
|
-
let e = te(
|
|
5669
|
+
let e = te(Nn);
|
|
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,7 +5675,7 @@ 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(Nn)) == 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 } = {}) {
|
|
@@ -5685,13 +5685,13 @@ function zd({ inherit: e = !1 } = {}) {
|
|
|
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(Nn.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 = qe(), o = Bl(), i = Al(), l =
|
|
5694
|
+
let r = qe(), o = Bl(), i = Al(), l = An(), { 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
5696
|
let p = K((g) => {
|
|
5697
5697
|
let v = g.currentTarget;
|
|
@@ -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)), rr = (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
|
+
rr(this, Me, {}), rr(this, It, new jl(() => /* @__PURE__ */ new Set())), rr(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 : or(e[Symbol.iterator](), t[Symbol.iterator]()) : e instanceof Map && t instanceof Map || e instanceof Set && t instanceof Set ? e.size !== t.size ? !1 : or(e.entries(), t.entries()) : _o(e) && _o(t) ? or(Object.entries(e)[Symbol.iterator](), Object.entries(t)[Symbol.iterator]()) : !1;
|
|
5813
5813
|
}
|
|
5814
|
-
function
|
|
5814
|
+
function or(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 ir(e) {
|
|
5827
5827
|
let [t, n] = e(), r = $e();
|
|
5828
5828
|
return (...o) => {
|
|
5829
5829
|
t(...o), r.dispose(), r.microTask(n);
|
|
@@ -5854,17 +5854,17 @@ let af = { 0(e, t) {
|
|
|
5854
5854
|
}
|
|
5855
5855
|
};
|
|
5856
5856
|
const oo = new jl(() => sf.new());
|
|
5857
|
-
var ln = { exports: {} },
|
|
5857
|
+
var ln = { exports: {} }, lr = {};
|
|
5858
5858
|
var Ho;
|
|
5859
5859
|
function cf() {
|
|
5860
|
-
if (Ho) return
|
|
5860
|
+
if (Ho) return lr;
|
|
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 lr.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
|
+
}, lr;
|
|
5908
5908
|
}
|
|
5909
|
-
var
|
|
5909
|
+
var ar = {};
|
|
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
|
+
ar.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
|
+
})()), ar;
|
|
5961
5961
|
}
|
|
5962
5962
|
var jo;
|
|
5963
5963
|
function df() {
|
|
@@ -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 : Rn(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 ? Rn(e[0]) : document : Rn(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;
|
|
@@ -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 Fn() {
|
|
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 Fn() ? e instanceof Node || e instanceof xe(e).Node : !1;
|
|
6412
6412
|
}
|
|
6413
6413
|
function X(e) {
|
|
6414
|
-
return
|
|
6414
|
+
return Fn() ? e instanceof Element || e instanceof xe(e).Element : !1;
|
|
6415
6415
|
}
|
|
6416
6416
|
function Re(e) {
|
|
6417
|
-
return
|
|
6417
|
+
return Fn() ? e instanceof HTMLElement || e instanceof xe(e).HTMLElement : !1;
|
|
6418
6418
|
}
|
|
6419
6419
|
function Nr(e) {
|
|
6420
|
-
return !
|
|
6420
|
+
return !Fn() || 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) {
|
|
@@ -6434,7 +6434,7 @@ function Kf(e) {
|
|
|
6434
6434
|
return Gf.has(Ot(e));
|
|
6435
6435
|
}
|
|
6436
6436
|
const qf = [":popover-open", ":modal"];
|
|
6437
|
-
function
|
|
6437
|
+
function In(e) {
|
|
6438
6438
|
return qf.some((t) => {
|
|
6439
6439
|
try {
|
|
6440
6440
|
return e.matches(t);
|
|
@@ -6445,7 +6445,7 @@ function Fn(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 = Dn(), 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) {
|
|
@@ -6453,13 +6453,13 @@ function Jf(e) {
|
|
|
6453
6453
|
for (; Re(t) && !ze(t); ) {
|
|
6454
6454
|
if (co(t))
|
|
6455
6455
|
return t;
|
|
6456
|
-
if (
|
|
6456
|
+
if (In(t))
|
|
6457
6457
|
return null;
|
|
6458
6458
|
t = Ke(t);
|
|
6459
6459
|
}
|
|
6460
6460
|
return null;
|
|
6461
6461
|
}
|
|
6462
|
-
function
|
|
6462
|
+
function Dn() {
|
|
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 _n(e) {
|
|
6473
6473
|
return X(e) ? {
|
|
6474
6474
|
scrollLeft: e.scrollLeft,
|
|
6475
6475
|
scrollTop: e.scrollTop
|
|
@@ -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 = Sn(l)), [l, Sn(l)];
|
|
6562
6562
|
}
|
|
6563
6563
|
function im(e) {
|
|
6564
|
-
const t =
|
|
6565
|
-
return [
|
|
6564
|
+
const t = Sn(e);
|
|
6565
|
+
return [$n(e), t, $n(t)];
|
|
6566
6566
|
}
|
|
6567
|
-
function
|
|
6567
|
+
function $n(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($n)))), i;
|
|
6587
6587
|
}
|
|
6588
|
-
function
|
|
6588
|
+
function Sn(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 Cn(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
|
-
} = ht(t, e), h = dm(d), v = a[p ? f === "floating" ? "reference" : "floating" : f], b =
|
|
6751
|
+
} = ht(t, e), h = dm(d), v = a[p ? f === "floating" ? "reference" : "floating" : f], b = Cn(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 = Cn(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 ? $n(o) !== o : !1) : !0);
|
|
6782
6782
|
}
|
|
6783
6783
|
const pm = function(e) {
|
|
6784
6784
|
return e === void 0 && (e = {}), {
|
|
@@ -6872,7 +6872,7 @@ const pm = function(e) {
|
|
|
6872
6872
|
} = ht(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 ? [Sn(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) || [];
|
|
@@ -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 !Dn() || !t.visualViewport ? xm : {
|
|
7111
7111
|
x: t.visualViewport.offsetLeft,
|
|
7112
7112
|
y: t.visualViewport.offsetTop
|
|
7113
7113
|
};
|
|
@@ -7130,19 +7130,19 @@ function ft(e, t, n, r) {
|
|
|
7130
7130
|
s *= v.x, c *= v.y, u *= v.x, f *= v.y, s += w, c += $, h = xe(g), g = Fr(h);
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
return
|
|
7133
|
+
return Cn({
|
|
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 =
|
|
7140
|
+
function Bn(e, t) {
|
|
7141
|
+
const n = _n(e).scrollLeft;
|
|
7142
7142
|
return t ? t.left + n : ft(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 - Bn(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 ? In(t.floating) : !1;
|
|
7159
7159
|
if (r === l || a && i)
|
|
7160
7160
|
return n;
|
|
7161
7161
|
let s = {
|
|
@@ -7163,7 +7163,7 @@ 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 =
|
|
7166
|
+
if ((f || !f && !i) && ((Ot(r) !== "body" || Zt(l)) && (s = _n(r)), Re(r))) {
|
|
7167
7167
|
const d = ft(r);
|
|
7168
7168
|
c = Et(r), u.x = d.x + r.clientLeft, u.y = d.y + r.clientTop;
|
|
7169
7169
|
}
|
|
@@ -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 = _n(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 + Bn(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 = Dn();
|
|
7199
7199
|
(!u || u && t === "fixed") && (a = o.offsetLeft, s = o.offsetTop);
|
|
7200
7200
|
}
|
|
7201
|
-
const c =
|
|
7201
|
+
const c = Bn(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);
|
|
@@ -7237,7 +7237,7 @@ function ii(e, t, n) {
|
|
|
7237
7237
|
height: t.height
|
|
7238
7238
|
};
|
|
7239
7239
|
}
|
|
7240
|
-
return
|
|
7240
|
+
return Cn(r);
|
|
7241
7241
|
}
|
|
7242
7242
|
function sa(e, t) {
|
|
7243
7243
|
const n = Ke(e);
|
|
@@ -7263,7 +7263,7 @@ function Om(e) {
|
|
|
7263
7263
|
rootBoundary: r,
|
|
7264
7264
|
strategy: o
|
|
7265
7265
|
} = e;
|
|
7266
|
-
const l = [...n === "clippingAncestors" ?
|
|
7266
|
+
const l = [...n === "clippingAncestors" ? In(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
7268
|
return c.top = pe(f.top, c.top), c.right = dt(f.right, c.right), c.bottom = dt(f.bottom, c.bottom), c.left = pe(f.left, c.left), c;
|
|
7269
7269
|
}, ii(t, a, o));
|
|
@@ -7292,10 +7292,10 @@ function Am(e, t, n) {
|
|
|
7292
7292
|
};
|
|
7293
7293
|
const s = Ie(0);
|
|
7294
7294
|
function c() {
|
|
7295
|
-
s.x =
|
|
7295
|
+
s.x = Bn(o);
|
|
7296
7296
|
}
|
|
7297
7297
|
if (r || !r && !i)
|
|
7298
|
-
if ((Ot(t) !== "body" || Zt(o)) && (a =
|
|
7298
|
+
if ((Ot(t) !== "body" || Zt(o)) && (a = _n(t)), r) {
|
|
7299
7299
|
const d = ft(t, !0, i, t);
|
|
7300
7300
|
s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
|
|
7301
7301
|
} else o && c();
|
|
@@ -7308,7 +7308,7 @@ function Am(e, t, n) {
|
|
|
7308
7308
|
height: l.height
|
|
7309
7309
|
};
|
|
7310
7310
|
}
|
|
7311
|
-
function
|
|
7311
|
+
function sr(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 (In(e))
|
|
7325
7325
|
return n;
|
|
7326
7326
|
if (!Re(e)) {
|
|
7327
7327
|
let o = Ke(e);
|
|
7328
7328
|
for (; o && !ze(o); ) {
|
|
7329
|
-
if (X(o) && !
|
|
7329
|
+
if (X(o) && !sr(o))
|
|
7330
7330
|
return o;
|
|
7331
7331
|
o = Ke(o);
|
|
7332
7332
|
}
|
|
7333
7333
|
return n;
|
|
7334
7334
|
}
|
|
7335
7335
|
let r = li(e, t);
|
|
7336
|
-
for (; r && Kf(r) &&
|
|
7336
|
+
for (; r && Kf(r) && sr(r); )
|
|
7337
7337
|
r = li(r, t);
|
|
7338
|
-
return r && ze(r) &&
|
|
7338
|
+
return r && ze(r) && sr(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);
|
|
@@ -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 cr = 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 sr = 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 kn(e, t) {
|
|
7468
7468
|
if (e === t)
|
|
7469
7469
|
return !0;
|
|
7470
7470
|
if (typeof e != typeof t)
|
|
@@ -7476,7 +7476,7 @@ function Cn(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 (!kn(e[r], t[r]))
|
|
7480
7480
|
return !1;
|
|
7481
7481
|
return !0;
|
|
7482
7482
|
}
|
|
@@ -7487,7 +7487,7 @@ function Cn(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) && !kn(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 ur(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
|
+
kn(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 = ur(s), I = ur(o), W = ur(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 && !kn(C.current, V) && (C.current = V, bn.flushSync(() => {
|
|
7555
7555
|
f(V);
|
|
7556
7556
|
}));
|
|
7557
7557
|
});
|
|
@@ -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 dr(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 ur(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) => dr(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) => dr(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) => dr(a, e, "item"),
|
|
7843
7843
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7844
7844
|
r
|
|
7845
7845
|
);
|
|
@@ -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 cr(fi(w, h.scrollHeight + g + p.clientTop), u), E = await cr(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
7894
|
const I = h.offsetHeight < d.offsetHeight * dt(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 cr(fi({
|
|
7898
7898
|
...w,
|
|
7899
7899
|
y: P
|
|
7900
7900
|
}, h.offsetHeight + g + p.clientTop), u)), {
|
|
@@ -7918,7 +7918,7 @@ function mp(e, t) {
|
|
|
7918
7918
|
if (g.ctrlKey || !h || i.current == null)
|
|
7919
7919
|
return;
|
|
7920
7920
|
const v = g.deltaY, b = i.current.top >= -0.5, y = i.current.bottom >= -0.5, w = h.scrollHeight - h.clientHeight, $ = v < 0 ? -1 : 1, E = v < 0 ? "max" : "min";
|
|
7921
|
-
h.scrollHeight <= h.clientHeight || (!b && v > 0 || !y && v < 0 ? (g.preventDefault(),
|
|
7921
|
+
h.scrollHeight <= h.clientHeight || (!b && v > 0 || !y && v < 0 ? (g.preventDefault(), bn.flushSync(() => {
|
|
7922
7922
|
s((k) => k + Math[E](v, w * $));
|
|
7923
7923
|
})) : /firefox/i.test(em()) && (h.scrollTop += v));
|
|
7924
7924
|
}
|
|
@@ -7947,7 +7947,7 @@ function mp(e, t) {
|
|
|
7947
7947
|
if (!(!i.current || !d || !c.current)) {
|
|
7948
7948
|
if (u.current !== null) {
|
|
7949
7949
|
const h = d.scrollTop - u.current;
|
|
7950
|
-
(i.current.bottom < -0.5 && h < -1 || i.current.top < -0.5 && h > 1) &&
|
|
7950
|
+
(i.current.bottom < -0.5 && h < -1 || i.current.top < -0.5 && h > 1) && bn.flushSync(() => s((g) => g + h));
|
|
7951
7951
|
}
|
|
7952
7952
|
requestAnimationFrame(() => {
|
|
7953
7953
|
u.current = d.scrollTop;
|
|
@@ -8041,10 +8041,10 @@ function yp(e) {
|
|
|
8041
8041
|
}
|
|
8042
8042
|
function xp(e, t) {
|
|
8043
8043
|
var n, r, o;
|
|
8044
|
-
let i =
|
|
8044
|
+
let i = fr((n = e?.gap) != null ? n : "var(--anchor-gap, 0)", t), l = fr((r = e?.offset) != null ? r : "var(--anchor-offset, 0)", t), a = fr((o = e?.padding) != null ? o : "var(--anchor-padding, 0)", t);
|
|
8045
8045
|
return { ...e, gap: i, offset: l, padding: a };
|
|
8046
8046
|
}
|
|
8047
|
-
function
|
|
8047
|
+
function fr(e, t, n = void 0) {
|
|
8048
8048
|
let r = mt(), o = K((s, c) => {
|
|
8049
8049
|
if (s == null) return [n, null];
|
|
8050
8050
|
if (typeof s == "number") return [s, null];
|
|
@@ -8105,17 +8105,17 @@ 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 Hn = le(null);
|
|
8109
|
+
Hn.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 Vn() {
|
|
8112
|
+
return te(Hn);
|
|
8113
8113
|
}
|
|
8114
8114
|
function po({ value: e, children: t }) {
|
|
8115
|
-
return j.createElement(
|
|
8115
|
+
return j.createElement(Hn.Provider, { value: e }, t);
|
|
8116
8116
|
}
|
|
8117
8117
|
function Rp({ children: e }) {
|
|
8118
|
-
return j.createElement(
|
|
8118
|
+
return j.createElement(Hn.Provider, { value: null }, e);
|
|
8119
8119
|
}
|
|
8120
8120
|
function $p(e) {
|
|
8121
8121
|
throw new Error("Unexpected object: " + e);
|
|
@@ -8239,23 +8239,23 @@ function Ra(e) {
|
|
|
8239
8239
|
var t;
|
|
8240
8240
|
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !xt((t = e.as) != null ? t : Sa) || j.Children.count(e.children) === 1;
|
|
8241
8241
|
}
|
|
8242
|
-
let
|
|
8243
|
-
|
|
8242
|
+
let jn = le(null);
|
|
8243
|
+
jn.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(jn);
|
|
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(Wn);
|
|
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 Wn = le(null);
|
|
8256
|
+
Wn.displayName = "NestingContext";
|
|
8257
|
+
function zn(e) {
|
|
8258
|
+
return "children" in e ? zn(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
8261
|
let n = pt(e), r = U([]), o = _p(), i = mt(), l = K((d, h = tt.Hidden) => {
|
|
@@ -8266,7 +8266,7 @@ function $a(e, t) {
|
|
|
8266
8266
|
r.current[g].state = "hidden";
|
|
8267
8267
|
} }), i.microTask(() => {
|
|
8268
8268
|
var v;
|
|
8269
|
-
!
|
|
8269
|
+
!zn(r) && o.current && ((v = n.current) == null || v.call(n));
|
|
8270
8270
|
}));
|
|
8271
8271
|
}), a = K((d) => {
|
|
8272
8272
|
let h = r.current.find(({ el: g }) => g === d);
|
|
@@ -8314,7 +8314,7 @@ function jp(e, t) {
|
|
|
8314
8314
|
let Ee = q ? "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" && !zn(L) && (I("hidden"), T(w));
|
|
8318
8318
|
});
|
|
8319
8319
|
re(() => {
|
|
8320
8320
|
$ && o || (V(P), ee(P));
|
|
@@ -8322,12 +8322,12 @@ function jp(e, t) {
|
|
|
8322
8322
|
let B = !(!o || !$ || !A || _), [, D] = ao(B, b, P, { start: V, end: ee }), ae = et({ ref: E, className: ((r = Pr(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(Wn.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 = Vn();
|
|
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,7 +8337,7 @@ 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") : !zn(p) && l.current !== null && f("hidden");
|
|
8341
8341
|
}, [n, p]);
|
|
8342
8342
|
let b = { unmount: o }, y = K(() => {
|
|
8343
8343
|
var E;
|
|
@@ -8346,10 +8346,10 @@ function Wp(e, t) {
|
|
|
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(Wn.Provider, { value: p }, j.createElement(jn.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(
|
|
8352
|
+
let n = te(jn) !== null, r = Vn() !== null;
|
|
8353
8353
|
return j.createElement(j.Fragment, null, !n && r ? j.createElement(Dr, { ref: t, ...e }) : j.createElement(ka, { ref: t, ...e }));
|
|
8354
8354
|
}
|
|
8355
8355
|
let Dr = de(Wp), ka = de(jp), Up = de(zp), Gp = Object.assign(Dr, { Child: Up, Root: Dr });
|
|
@@ -8449,7 +8449,7 @@ function ih(e, t) {
|
|
|
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 = Vn(), [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;
|
|
@@ -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: ir(() => {
|
|
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: ir(() => {
|
|
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: ir(() => {
|
|
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 Un = le(null);
|
|
8665
|
+
Un.displayName = "ListboxDataContext";
|
|
8666
8666
|
function Qt(e) {
|
|
8667
|
-
let t = te(
|
|
8667
|
+
let t = te(Un);
|
|
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 = qe(), r =
|
|
8676
|
+
let n = qe(), r = An(), { 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,7 +8686,7 @@ 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(Un.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) {
|
|
@@ -8713,7 +8713,7 @@ function gh(e, t) {
|
|
|
8713
8713
|
A.key === oe.Space && A.preventDefault();
|
|
8714
8714
|
}), y = ef((A) => {
|
|
8715
8715
|
var _;
|
|
8716
|
-
i.state.listboxState === he.Open ? (
|
|
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
8717
|
}), w = K((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
|
}
|
|
@@ -8721,7 +8721,7 @@ let Na = le(!1), vh = "div", bh = $t.RenderStrategy | $t.Static;
|
|
|
8721
8721
|
function wh(e, t) {
|
|
8722
8722
|
let n = qe(), { 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 = Mr(g), w = Mr(v), $ =
|
|
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 = Mr(g), w = Mr(v), $ = Vn(), [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);
|
|
@@ -8761,10 +8761,10 @@ 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(),
|
|
8764
|
+
H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), (q = d.state.buttonElement) == null || q.focus({ preventScroll: !0 });
|
|
8765
8765
|
return;
|
|
8766
8766
|
case oe.Tab:
|
|
8767
|
-
H.preventDefault(), H.stopPropagation(),
|
|
8767
|
+
H.preventDefault(), H.stopPropagation(), wn(() => d.actions.closeListbox()), Rf(d.state.buttonElement, H.shiftKey ? Ar.Previous : Ar.Next);
|
|
8768
8768
|
break;
|
|
8769
8769
|
default:
|
|
8770
8770
|
H.key.length === 1 && (d.actions.search(H.key), L.setTimeout(() => d.actions.clearSearch(), 350));
|
|
@@ -8774,7 +8774,7 @@ function wh(e, t) {
|
|
|
8774
8774
|
var q;
|
|
8775
8775
|
return (q = H.buttonElement) == null ? void 0 : q.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(Un.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) {
|
|
@@ -8869,7 +8869,7 @@ 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 Gn({
|
|
8873
8873
|
children: e,
|
|
8874
8874
|
onClick: t,
|
|
8875
8875
|
to: n,
|
|
@@ -8941,7 +8941,7 @@ function Ut(e, t) {
|
|
|
8941
8941
|
function wt(e) {
|
|
8942
8942
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
8943
8943
|
}
|
|
8944
|
-
function
|
|
8944
|
+
function mr(e, t) {
|
|
8945
8945
|
if (t == null)
|
|
8946
8946
|
return !1;
|
|
8947
8947
|
if ("composedPath" in e)
|
|
@@ -9053,14 +9053,14 @@ const Qh = /* @__PURE__ */ m.createContext(null), eg = /* @__PURE__ */ m.createC
|
|
|
9053
9053
|
var e;
|
|
9054
9054
|
return ((e = m.useContext(Qh)) == null ? void 0 : e.id) || null;
|
|
9055
9055
|
}, xo = () => m.useContext(eg);
|
|
9056
|
-
function
|
|
9056
|
+
function Kn(e) {
|
|
9057
9057
|
return "data-floating-ui-" + e;
|
|
9058
9058
|
}
|
|
9059
9059
|
function Ce(e) {
|
|
9060
9060
|
e.current !== -1 && (clearTimeout(e.current), e.current = -1);
|
|
9061
9061
|
}
|
|
9062
|
-
const Si = /* @__PURE__ */
|
|
9063
|
-
function
|
|
9062
|
+
const Si = /* @__PURE__ */ Kn("safe-polygon");
|
|
9063
|
+
function pr(e, t, n) {
|
|
9064
9064
|
if (n && !_r(n))
|
|
9065
9065
|
return 0;
|
|
9066
9066
|
if (typeof e == "number")
|
|
@@ -9071,7 +9071,7 @@ function mr(e, t, n) {
|
|
|
9071
9071
|
}
|
|
9072
9072
|
return e?.[t];
|
|
9073
9073
|
}
|
|
9074
|
-
function
|
|
9074
|
+
function hr(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 = pr(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 && !_r(w.current) ||
|
|
9134
|
+
if (Ce($), P.current = !1, u && !_r(w.current) || hr(y.current) > 0 && !pr(v.current, "open"))
|
|
9135
9135
|
return;
|
|
9136
|
-
const D =
|
|
9136
|
+
const D = pr(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 && !_r(w.current) || n ||
|
|
9225
|
+
u && !_r(w.current) || n || hr(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, hr(y.current))));
|
|
9226
9226
|
}
|
|
9227
9227
|
};
|
|
9228
9228
|
}, [u, r, n, b, y]);
|
|
@@ -9230,7 +9230,7 @@ function tg(e, t) {
|
|
|
9230
9230
|
reference: _
|
|
9231
9231
|
} : {}, [a, _]);
|
|
9232
9232
|
}
|
|
9233
|
-
const ng = /* @__PURE__ */ m.createContext(null), Ci = /* @__PURE__ */
|
|
9233
|
+
const ng = /* @__PURE__ */ m.createContext(null), Ci = /* @__PURE__ */ Kn("portal");
|
|
9234
9234
|
function rg(e) {
|
|
9235
9235
|
e === void 0 && (e = {});
|
|
9236
9236
|
const {
|
|
@@ -9326,7 +9326,7 @@ 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 = wt(T), L = "[" +
|
|
9329
|
+
const x = wt(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
9332
|
const Q = Ke(ee);
|
|
@@ -9346,9 +9346,9 @@ function ag(e, t) {
|
|
|
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 mr(T, (H = Q.context) == null ? void 0 : H.elements.floating);
|
|
9350
9350
|
});
|
|
9351
|
-
if (
|
|
9351
|
+
if (mr(T, o.floating) || mr(T, o.domReference) || D)
|
|
9352
9352
|
return;
|
|
9353
9353
|
const ae = g ? gn(g.nodesRef.current, B) : [];
|
|
9354
9354
|
if (ae.length > 0) {
|
|
@@ -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
|
+
Dn() ? 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 gr() {
|
|
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), gr() && (d.addEventListener("keydown", g, !0), d.addEventListener("pointerdown", v, !0)), () => {
|
|
9565
|
+
d.removeEventListener("blur", h), gr() && (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;
|
|
@@ -9586,7 +9586,7 @@ function ug(e, t) {
|
|
|
9586
9586
|
if (c.current) return;
|
|
9587
9587
|
const h = wt(d.nativeEvent);
|
|
9588
9588
|
if (s && X(h)) {
|
|
9589
|
-
if (
|
|
9589
|
+
if (gr() && !d.relatedTarget) {
|
|
9590
9590
|
if (!f.current && !_h(h))
|
|
9591
9591
|
return;
|
|
9592
9592
|
} else if (!Bh(h))
|
|
@@ -9596,7 +9596,7 @@ function ug(e, t) {
|
|
|
9596
9596
|
},
|
|
9597
9597
|
onBlur(d) {
|
|
9598
9598
|
c.current = !1;
|
|
9599
|
-
const h = d.relatedTarget, g = d.nativeEvent, v = X(h) && h.hasAttribute(
|
|
9599
|
+
const h = d.relatedTarget, g = d.nativeEvent, v = X(h) && h.hasAttribute(Kn("focus-guard")) && h.getAttribute("data-type") === "outside";
|
|
9600
9600
|
u.current = window.setTimeout(() => {
|
|
9601
9601
|
var b;
|
|
9602
9602
|
const y = yi(l.domReference ? l.domReference.ownerDocument : document);
|
|
@@ -9608,7 +9608,7 @@ function ug(e, t) {
|
|
|
9608
9608
|
reference: p
|
|
9609
9609
|
} : {}, [a, p]);
|
|
9610
9610
|
}
|
|
9611
|
-
function
|
|
9611
|
+
function vr(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 gr(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) => vr(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) => vr(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) => vr(a, e, "item"),
|
|
9660
9660
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9661
9661
|
r
|
|
9662
9662
|
);
|
|
@@ -9763,7 +9763,7 @@ function ja({
|
|
|
9763
9763
|
}
|
|
9764
9764
|
);
|
|
9765
9765
|
}
|
|
9766
|
-
function
|
|
9766
|
+
function br({
|
|
9767
9767
|
ariaLabel: e,
|
|
9768
9768
|
children: t,
|
|
9769
9769
|
className: n = "",
|
|
@@ -9771,7 +9771,7 @@ function vr({
|
|
|
9771
9771
|
...o
|
|
9772
9772
|
}) {
|
|
9773
9773
|
const i = "to" in o ? /* @__PURE__ */ R(
|
|
9774
|
-
|
|
9774
|
+
Gn,
|
|
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 } = On(), { 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-0sTGJQpW.js")),
|
|
9872
|
+
"/": Mt(() => import("./GettingStartedRoute-CnQSytXZ.js")),
|
|
9873
|
+
"/common-questions": Mt(() => import("./CommonQuestionsRoute-CRSNF0Pf.js")),
|
|
9874
|
+
"/support": Mt(() => import("./SupportRoute-B70W0nGt.js")),
|
|
9875
|
+
"/versions": Mt(() => import("./VersionsRoute-BDTmCVHk.js"))
|
|
9876
9876
|
};
|
|
9877
9877
|
function hg(e, t = 250) {
|
|
9878
9878
|
const [n, r] = J(e);
|
|
@@ -9889,64 +9889,76 @@ function hg(e, t = 250) {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
}, [t, e]), n;
|
|
9891
9891
|
}
|
|
9892
|
-
let
|
|
9892
|
+
let wr;
|
|
9893
9893
|
function gg() {
|
|
9894
|
-
return
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
fetch("/generated/search-records.json").then(
|
|
9898
|
-
(t) => t.json()
|
|
9899
|
-
),
|
|
9900
|
-
fetch("/generated/search-index.json").then(
|
|
9901
|
-
(t) => t.json()
|
|
9902
|
-
)
|
|
9903
|
-
]).then(([t, n, r]) => {
|
|
9904
|
-
const o = new t(
|
|
9905
|
-
n,
|
|
9906
|
-
{
|
|
9907
|
-
distance: 1e3,
|
|
9908
|
-
ignoreLocation: !0,
|
|
9909
|
-
includeMatches: !1,
|
|
9910
|
-
isCaseSensitive: !1,
|
|
9911
|
-
keys: [
|
|
9912
|
-
{ name: "title", weight: 5 },
|
|
9913
|
-
{ name: "section", weight: 1 },
|
|
9914
|
-
{ name: "text", weight: 1 }
|
|
9915
|
-
],
|
|
9916
|
-
minMatchCharLength: 2,
|
|
9917
|
-
threshold: 0.1,
|
|
9918
|
-
useExtendedSearch: !0
|
|
9919
|
-
},
|
|
9920
|
-
t.parseIndex(r)
|
|
9921
|
-
);
|
|
9922
|
-
e(o);
|
|
9923
|
-
});
|
|
9924
|
-
})), br;
|
|
9894
|
+
return wr === void 0 && (wr = fetch("/generated/site-map.json").then(
|
|
9895
|
+
(e) => e.json()
|
|
9896
|
+
)), wr;
|
|
9925
9897
|
}
|
|
9926
|
-
function
|
|
9898
|
+
function Ti(e, t, n) {
|
|
9899
|
+
const { maxLength: r = 250, leading: o = 0 } = n ?? {};
|
|
9900
|
+
if (t = t.toLowerCase(), r && e.length > r) {
|
|
9901
|
+
const c = e.toLowerCase().indexOf(t), u = Math.max(0, c - o), f = Math.min(e.length, u + r);
|
|
9902
|
+
e = e.substring(u, f), u > 0 && (e = "…" + e);
|
|
9903
|
+
}
|
|
9904
|
+
let i = e;
|
|
9905
|
+
t && t.split(" ").forEach((c) => {
|
|
9906
|
+
i = i.replaceAll(
|
|
9907
|
+
new RegExp(`(${c})`, "gi"),
|
|
9908
|
+
"├$1┤"
|
|
9909
|
+
);
|
|
9910
|
+
});
|
|
9911
|
+
const l = [];
|
|
9912
|
+
let a = "", s = 0;
|
|
9913
|
+
for (let c = 0; c < i.length; c++) {
|
|
9914
|
+
const u = i.charAt(c);
|
|
9915
|
+
switch (u) {
|
|
9916
|
+
case "├": {
|
|
9917
|
+
s++, s === 1 && a && (l.push(a), a = "");
|
|
9918
|
+
break;
|
|
9919
|
+
}
|
|
9920
|
+
case "┤": {
|
|
9921
|
+
s--, s === 0 && a && (l.push(bg(a)), a = "");
|
|
9922
|
+
break;
|
|
9923
|
+
}
|
|
9924
|
+
default: {
|
|
9925
|
+
a += u;
|
|
9926
|
+
break;
|
|
9927
|
+
}
|
|
9928
|
+
}
|
|
9929
|
+
}
|
|
9930
|
+
return a && l.push(a), l;
|
|
9931
|
+
}
|
|
9932
|
+
let vg = 0;
|
|
9933
|
+
function bg(e) {
|
|
9934
|
+
return vn("mark", {
|
|
9935
|
+
children: e,
|
|
9936
|
+
className: "bg-transparent text-sky-300",
|
|
9937
|
+
key: ++vg
|
|
9938
|
+
});
|
|
9939
|
+
}
|
|
9940
|
+
function wg({
|
|
9927
9941
|
isActive: e,
|
|
9928
|
-
result:
|
|
9929
|
-
|
|
9930
|
-
},
|
|
9931
|
-
searchTextDeferred: i
|
|
9942
|
+
result: t,
|
|
9943
|
+
searchTextDeferred: n
|
|
9932
9944
|
}) {
|
|
9933
|
-
const
|
|
9934
|
-
() => Ti(
|
|
9935
|
-
[
|
|
9936
|
-
),
|
|
9937
|
-
() =>
|
|
9945
|
+
const r = U(null), o = ce(
|
|
9946
|
+
() => Ti(t.title, n),
|
|
9947
|
+
[n, t.title]
|
|
9948
|
+
), i = ce(
|
|
9949
|
+
() => t.text ? Ti(t.text, n, {
|
|
9938
9950
|
maxLength: 150,
|
|
9939
9951
|
leading: 25
|
|
9940
9952
|
}) : "",
|
|
9941
|
-
[
|
|
9953
|
+
[n, t.text]
|
|
9942
9954
|
);
|
|
9943
9955
|
return re(() => {
|
|
9944
|
-
e &&
|
|
9956
|
+
e && r.current?.scrollIntoView({
|
|
9945
9957
|
behavior: "smooth",
|
|
9946
9958
|
block: "nearest"
|
|
9947
9959
|
});
|
|
9948
|
-
}, [e]), /* @__PURE__ */ R("li", { ref:
|
|
9949
|
-
|
|
9960
|
+
}, [e]), /* @__PURE__ */ R("li", { ref: r, children: /* @__PURE__ */ Y(
|
|
9961
|
+
Gn,
|
|
9950
9962
|
{
|
|
9951
9963
|
className: fe(
|
|
9952
9964
|
"rounded px-2 py-1 text-white/80 hover:text-white hover:bg-white/10 cursor-pointer transition-colors!",
|
|
@@ -9956,46 +9968,46 @@ function vg({
|
|
|
9956
9968
|
}
|
|
9957
9969
|
),
|
|
9958
9970
|
"data-active-search-result": e || void 0,
|
|
9959
|
-
to: t,
|
|
9971
|
+
to: t.path,
|
|
9960
9972
|
children: [
|
|
9961
9973
|
/* @__PURE__ */ Y("div", { className: "grow-1 shrink-1 overflow-auto flex flex-col gap-1", children: [
|
|
9962
9974
|
/* @__PURE__ */ Y("div", { className: "grow text-lg truncate text-white", children: [
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9975
|
+
t.section,
|
|
9976
|
+
t.section && " ",
|
|
9977
|
+
o
|
|
9966
9978
|
] }),
|
|
9967
|
-
|
|
9979
|
+
i && /* @__PURE__ */ R("div", { className: "text-sm truncate pb-1", children: i })
|
|
9968
9980
|
] }),
|
|
9969
9981
|
/* @__PURE__ */ R(jr, { className: "h-4 w-4 shrink-0" })
|
|
9970
9982
|
]
|
|
9971
9983
|
}
|
|
9972
9984
|
) });
|
|
9973
9985
|
}
|
|
9974
|
-
function
|
|
9975
|
-
const
|
|
9976
|
-
if (
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
),
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
}
|
|
9992
|
-
|
|
9986
|
+
function yg(e, t) {
|
|
9987
|
+
const n = t.toLowerCase().split(" ").filter(Boolean).map((o) => new RegExp(o, "ig"));
|
|
9988
|
+
if (n.length === 0)
|
|
9989
|
+
return e;
|
|
9990
|
+
const r = [];
|
|
9991
|
+
return e.forEach((o) => {
|
|
9992
|
+
let i = 0;
|
|
9993
|
+
n.forEach((l) => {
|
|
9994
|
+
const a = o.title.match(l);
|
|
9995
|
+
a && (i += a.length * 5);
|
|
9996
|
+
const s = o.text.match(l);
|
|
9997
|
+
s && (i += s.length);
|
|
9998
|
+
const c = o.section?.match(l);
|
|
9999
|
+
c && (i += c.length);
|
|
10000
|
+
}), i > 0 && r.push({
|
|
10001
|
+
page: o,
|
|
10002
|
+
score: i
|
|
10003
|
+
});
|
|
10004
|
+
}), r.sort((o, i) => i.score - o.score).map((o) => o.page);
|
|
10005
|
+
}
|
|
10006
|
+
function xg({
|
|
9993
10007
|
inputRef: e,
|
|
9994
10008
|
searchTextDeferred: t
|
|
9995
10009
|
}) {
|
|
9996
|
-
const n = es(gg()), [r, o] = J(0), i = ce(() => t ? n.
|
|
9997
|
-
limit: 10
|
|
9998
|
-
}) : [], [n, t]);
|
|
10010
|
+
const n = es(gg()), [r, o] = J(0), i = ce(() => t ? yg(n, t).slice(0, 10) : [], [t, n]);
|
|
9999
10011
|
return re(() => {
|
|
10000
10012
|
if (e) {
|
|
10001
10013
|
const l = (a) => {
|
|
@@ -10030,7 +10042,7 @@ function bg({
|
|
|
10030
10042
|
'"'
|
|
10031
10043
|
] }),
|
|
10032
10044
|
i.map((l, a) => /* @__PURE__ */ R(
|
|
10033
|
-
|
|
10045
|
+
wg,
|
|
10034
10046
|
{
|
|
10035
10047
|
isActive: r === a,
|
|
10036
10048
|
result: l,
|
|
@@ -10040,8 +10052,8 @@ function bg({
|
|
|
10040
10052
|
))
|
|
10041
10053
|
] });
|
|
10042
10054
|
}
|
|
10043
|
-
function
|
|
10044
|
-
const { isSiteSearchVisible: e, setIsSiteSearchVisible: t } =
|
|
10055
|
+
function Eg() {
|
|
10056
|
+
const { isSiteSearchVisible: e, setIsSiteSearchVisible: t } = On(), [n, r] = J(null), [o, i] = J(""), l = hg(o);
|
|
10045
10057
|
return re(() => {
|
|
10046
10058
|
if (!e) {
|
|
10047
10059
|
const a = (s) => {
|
|
@@ -10100,7 +10112,7 @@ function wg() {
|
|
|
10100
10112
|
}
|
|
10101
10113
|
),
|
|
10102
10114
|
l && /* @__PURE__ */ R(
|
|
10103
|
-
|
|
10115
|
+
xg,
|
|
10104
10116
|
{
|
|
10105
10117
|
inputRef: n,
|
|
10106
10118
|
searchTextDeferred: l
|
|
@@ -10111,15 +10123,15 @@ function wg() {
|
|
|
10111
10123
|
}
|
|
10112
10124
|
) : null;
|
|
10113
10125
|
}
|
|
10114
|
-
const
|
|
10115
|
-
function
|
|
10126
|
+
const Rg = typeof navigator < "u" && navigator.userAgent.indexOf("Win") >= 0 ? "^K" : "⌘K";
|
|
10127
|
+
function Hg({
|
|
10116
10128
|
enableSiteSearch: e,
|
|
10117
10129
|
navLinks: t,
|
|
10118
10130
|
routes: n,
|
|
10119
10131
|
...r
|
|
10120
10132
|
}) {
|
|
10121
10133
|
return /* @__PURE__ */ R(Wa, { ...r, children: /* @__PURE__ */ R(
|
|
10122
|
-
|
|
10134
|
+
$g,
|
|
10123
10135
|
{
|
|
10124
10136
|
enableSiteSearch: e,
|
|
10125
10137
|
navLinks: t,
|
|
@@ -10127,7 +10139,7 @@ function Dg({
|
|
|
10127
10139
|
}
|
|
10128
10140
|
) });
|
|
10129
10141
|
}
|
|
10130
|
-
function
|
|
10142
|
+
function $g({
|
|
10131
10143
|
enableSiteSearch: e,
|
|
10132
10144
|
navLinks: t,
|
|
10133
10145
|
routes: n
|
|
@@ -10140,7 +10152,7 @@ function xg({
|
|
|
10140
10152
|
setIsNavVisible: a,
|
|
10141
10153
|
setIsSiteSearchVisible: s,
|
|
10142
10154
|
versions: c
|
|
10143
|
-
} =
|
|
10155
|
+
} = On();
|
|
10144
10156
|
return /* @__PURE__ */ Y(Mc, { children: [
|
|
10145
10157
|
/* @__PURE__ */ R(mg, {}),
|
|
10146
10158
|
/* @__PURE__ */ Y("div", { className: "h-full w-full max-w-350 mx-auto flex flex-col", children: [
|
|
@@ -10155,7 +10167,7 @@ function xg({
|
|
|
10155
10167
|
gap: 4,
|
|
10156
10168
|
children: [
|
|
10157
10169
|
/* @__PURE__ */ R(
|
|
10158
|
-
|
|
10170
|
+
Gn,
|
|
10159
10171
|
{
|
|
10160
10172
|
children: l,
|
|
10161
10173
|
className: "text-xl text-header-package-name! font-bold cursor-pointer truncate",
|
|
@@ -10176,12 +10188,12 @@ function xg({
|
|
|
10176
10188
|
title: "Site search",
|
|
10177
10189
|
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: [
|
|
10178
10190
|
/* @__PURE__ */ R(Ai, { className: "w-4 h-4" }),
|
|
10179
|
-
|
|
10191
|
+
Rg
|
|
10180
10192
|
] })
|
|
10181
10193
|
}
|
|
10182
10194
|
),
|
|
10183
10195
|
c !== void 0 && /* @__PURE__ */ R(
|
|
10184
|
-
|
|
10196
|
+
br,
|
|
10185
10197
|
{
|
|
10186
10198
|
ariaLabel: "Documentation for other versions",
|
|
10187
10199
|
children: /* @__PURE__ */ R(Gc, { className: "w-6 h-6" }),
|
|
@@ -10190,7 +10202,7 @@ function xg({
|
|
|
10190
10202
|
}
|
|
10191
10203
|
),
|
|
10192
10204
|
/* @__PURE__ */ R(
|
|
10193
|
-
|
|
10205
|
+
br,
|
|
10194
10206
|
{
|
|
10195
10207
|
ariaLabel: "NPM project page",
|
|
10196
10208
|
children: /* @__PURE__ */ R(zc, { className: "w-8 h-8" }),
|
|
@@ -10200,7 +10212,7 @@ function xg({
|
|
|
10200
10212
|
}
|
|
10201
10213
|
),
|
|
10202
10214
|
/* @__PURE__ */ R(
|
|
10203
|
-
|
|
10215
|
+
br,
|
|
10204
10216
|
{
|
|
10205
10217
|
ariaLabel: "GitHub project page",
|
|
10206
10218
|
children: /* @__PURE__ */ R(Wc, { className: "w-6 h-6" }),
|
|
@@ -10263,10 +10275,10 @@ function xg({
|
|
|
10263
10275
|
)
|
|
10264
10276
|
] })
|
|
10265
10277
|
] }),
|
|
10266
|
-
e && /* @__PURE__ */ R(
|
|
10278
|
+
e && /* @__PURE__ */ R(Eg, {})
|
|
10267
10279
|
] });
|
|
10268
10280
|
}
|
|
10269
|
-
function
|
|
10281
|
+
function Vg({
|
|
10270
10282
|
children: e,
|
|
10271
10283
|
className: t,
|
|
10272
10284
|
...n
|
|
@@ -10280,8 +10292,8 @@ function _g({
|
|
|
10280
10292
|
}
|
|
10281
10293
|
) });
|
|
10282
10294
|
}
|
|
10283
|
-
const
|
|
10284
|
-
function
|
|
10295
|
+
const Sg = (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" })), 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: "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" })), 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: "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" }));
|
|
10296
|
+
function jg({
|
|
10285
10297
|
checked: e,
|
|
10286
10298
|
children: t,
|
|
10287
10299
|
className: n,
|
|
@@ -10290,7 +10302,7 @@ function Bg({
|
|
|
10290
10302
|
...i
|
|
10291
10303
|
}) {
|
|
10292
10304
|
let l, a;
|
|
10293
|
-
return r ? (l =
|
|
10305
|
+
return r ? (l = Cg, a = "fill-white") : e ? (l = Sg, a = "fill-blue-600") : (l = kg, a = "fill-slate-600"), /* @__PURE__ */ Y(
|
|
10294
10306
|
"label",
|
|
10295
10307
|
{
|
|
10296
10308
|
className: `cursor-pointer rounded-lg flex flex-row items-center outline-none group ${n}`,
|
|
@@ -10333,7 +10345,7 @@ function za({
|
|
|
10333
10345
|
}
|
|
10334
10346
|
) });
|
|
10335
10347
|
}
|
|
10336
|
-
function
|
|
10348
|
+
function qn({
|
|
10337
10349
|
className: e,
|
|
10338
10350
|
sections: t
|
|
10339
10351
|
}) {
|
|
@@ -10352,7 +10364,7 @@ function Ua({
|
|
|
10352
10364
|
sourceCodePath: t,
|
|
10353
10365
|
title: n
|
|
10354
10366
|
}) {
|
|
10355
|
-
const { repositoryUrl: r } =
|
|
10367
|
+
const { repositoryUrl: r } = On();
|
|
10356
10368
|
return /* @__PURE__ */ Y(Rt, { children: [
|
|
10357
10369
|
/* @__PURE__ */ Y("header", { className: "text-xl", children: [
|
|
10358
10370
|
e && /* @__PURE__ */ Y(Rt, { children: [
|
|
@@ -10374,18 +10386,18 @@ function Ua({
|
|
|
10374
10386
|
/* @__PURE__ */ R("title", { children: e ? `${e}: ${n}` : n })
|
|
10375
10387
|
] });
|
|
10376
10388
|
}
|
|
10377
|
-
function
|
|
10389
|
+
function Pg({
|
|
10378
10390
|
method: e
|
|
10379
10391
|
}) {
|
|
10380
10392
|
return /* @__PURE__ */ Y(Rt, { children: [
|
|
10381
10393
|
/* @__PURE__ */ R("dd", { className: "[&_code]:text-sky-300 text-lg font-bold", children: e.name }),
|
|
10382
10394
|
/* @__PURE__ */ Y("dt", { className: "mb-2", children: [
|
|
10383
|
-
/* @__PURE__ */ R(
|
|
10395
|
+
/* @__PURE__ */ R(qn, { sections: e.description }),
|
|
10384
10396
|
/* @__PURE__ */ R(za, { className: "mt-2 p-2 flex flex-col", html: e.html })
|
|
10385
10397
|
] })
|
|
10386
10398
|
] });
|
|
10387
10399
|
}
|
|
10388
|
-
function
|
|
10400
|
+
function Wg({
|
|
10389
10401
|
json: e,
|
|
10390
10402
|
section: t
|
|
10391
10403
|
}) {
|
|
@@ -10398,11 +10410,11 @@ function Hg({
|
|
|
10398
10410
|
title: `${e.name}`
|
|
10399
10411
|
}
|
|
10400
10412
|
),
|
|
10401
|
-
/* @__PURE__ */ R(
|
|
10402
|
-
/* @__PURE__ */ R(Pe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(
|
|
10413
|
+
/* @__PURE__ */ R(qn, { sections: e.description }),
|
|
10414
|
+
/* @__PURE__ */ R(Pe, { direction: "column", children: /* @__PURE__ */ R("dl", { className: "flex flex-col gap-2", children: e.methods.map((n, r) => /* @__PURE__ */ R(Pg, { method: n }, r)) }) })
|
|
10403
10415
|
] });
|
|
10404
10416
|
}
|
|
10405
|
-
function
|
|
10417
|
+
function zg({
|
|
10406
10418
|
children: e,
|
|
10407
10419
|
className: t,
|
|
10408
10420
|
onChange: n,
|
|
@@ -10423,7 +10435,7 @@ function Vg({
|
|
|
10423
10435
|
}
|
|
10424
10436
|
);
|
|
10425
10437
|
}
|
|
10426
|
-
function
|
|
10438
|
+
function Ug() {
|
|
10427
10439
|
return /* @__PURE__ */ Y(Pe, { align: "center", className: "text-slate-300", direction: "row", gap: 2, children: [
|
|
10428
10440
|
/* @__PURE__ */ R(ns, { className: "size-4 animate-spin" }),
|
|
10429
10441
|
"Loading..."
|
|
@@ -10449,19 +10461,20 @@ function Ga({
|
|
|
10449
10461
|
}
|
|
10450
10462
|
);
|
|
10451
10463
|
}
|
|
10452
|
-
function
|
|
10464
|
+
function Gg({
|
|
10453
10465
|
children: e,
|
|
10454
10466
|
className: t,
|
|
10455
10467
|
path: n
|
|
10456
10468
|
}) {
|
|
10457
|
-
return /* @__PURE__ */ R(
|
|
10469
|
+
return /* @__PURE__ */ R(Gn, { to: n, children: ({ isActive: r, isPending: o }) => /* @__PURE__ */ R(
|
|
10458
10470
|
Ga,
|
|
10459
10471
|
{
|
|
10460
10472
|
className: fe(
|
|
10461
10473
|
"px-4 cursor-pointer",
|
|
10474
|
+
"active:animate-pulse",
|
|
10462
10475
|
{
|
|
10463
10476
|
"font-bold text-nav-active hover:text-nav-hover": r,
|
|
10464
|
-
"
|
|
10477
|
+
"animate-pulse pointer-events-none": o
|
|
10465
10478
|
},
|
|
10466
10479
|
t
|
|
10467
10480
|
),
|
|
@@ -10469,7 +10482,7 @@ function Wg({
|
|
|
10469
10482
|
}
|
|
10470
10483
|
) });
|
|
10471
10484
|
}
|
|
10472
|
-
function
|
|
10485
|
+
function Kg({
|
|
10473
10486
|
children: e,
|
|
10474
10487
|
label: t
|
|
10475
10488
|
}) {
|
|
@@ -10482,13 +10495,13 @@ function zg({
|
|
|
10482
10495
|
/* @__PURE__ */ R(Oa, { className: "pl-4", children: e })
|
|
10483
10496
|
] });
|
|
10484
10497
|
}
|
|
10485
|
-
function
|
|
10498
|
+
function Tg(e) {
|
|
10486
10499
|
const t = [], n = [];
|
|
10487
10500
|
return Object.values(e.props).forEach((r) => {
|
|
10488
10501
|
r.required ? n.push(r) : t.push(r);
|
|
10489
10502
|
}), t.sort((r, o) => r.name.localeCompare(o.name)), n.sort((r, o) => r.name.localeCompare(o.name)), { optionalProps: t, requiredProps: n };
|
|
10490
10503
|
}
|
|
10491
|
-
function
|
|
10504
|
+
function Og({ prop: e }) {
|
|
10492
10505
|
return /* @__PURE__ */ Y(Rt, { children: [
|
|
10493
10506
|
/* @__PURE__ */ R("dt", { className: "mt-6 pl-8 indent-[-1rem]", children: /* @__PURE__ */ R(
|
|
10494
10507
|
za,
|
|
@@ -10497,7 +10510,7 @@ function kg({ prop: e }) {
|
|
|
10497
10510
|
html: e.html
|
|
10498
10511
|
}
|
|
10499
10512
|
) }),
|
|
10500
|
-
/* @__PURE__ */ R("dd", { className: "mt-2 pl-4 [&_code]:text-sky-300", children: /* @__PURE__ */ R(
|
|
10513
|
+
/* @__PURE__ */ R("dd", { className: "mt-2 pl-4 [&_code]:text-sky-300", children: /* @__PURE__ */ R(qn, { sections: e.description }) })
|
|
10501
10514
|
] });
|
|
10502
10515
|
}
|
|
10503
10516
|
function Oi({
|
|
@@ -10506,15 +10519,15 @@ function Oi({
|
|
|
10506
10519
|
}) {
|
|
10507
10520
|
return t.length === 0 ? null : /* @__PURE__ */ Y(Pe, { direction: "column", children: [
|
|
10508
10521
|
/* @__PURE__ */ R("div", { className: "text-lg font-bold", children: e }),
|
|
10509
|
-
/* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(
|
|
10522
|
+
/* @__PURE__ */ R("dl", { children: t.map((n) => /* @__PURE__ */ R(Og, { prop: n }, n.name)) })
|
|
10510
10523
|
] });
|
|
10511
10524
|
}
|
|
10512
|
-
function
|
|
10525
|
+
function qg({
|
|
10513
10526
|
json: e,
|
|
10514
10527
|
section: t
|
|
10515
10528
|
}) {
|
|
10516
10529
|
const { optionalProps: n, requiredProps: r } = ce(
|
|
10517
|
-
() =>
|
|
10530
|
+
() => Tg(e),
|
|
10518
10531
|
[e]
|
|
10519
10532
|
);
|
|
10520
10533
|
return /* @__PURE__ */ Y(Pe, { direction: "column", gap: 4, children: [
|
|
@@ -10526,13 +10539,13 @@ function Ug({
|
|
|
10526
10539
|
title: `${e.name} component props`
|
|
10527
10540
|
}
|
|
10528
10541
|
),
|
|
10529
|
-
/* @__PURE__ */ R(
|
|
10542
|
+
/* @__PURE__ */ R(qn, { sections: e.description }),
|
|
10530
10543
|
/* @__PURE__ */ R(Oi, { header: "Required props", props: r }),
|
|
10531
10544
|
/* @__PURE__ */ R(Oi, { header: "Optional props", props: n })
|
|
10532
10545
|
] });
|
|
10533
10546
|
}
|
|
10534
|
-
const
|
|
10535
|
-
function
|
|
10547
|
+
const Lg = (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" })), 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: "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" }));
|
|
10548
|
+
function Yg({
|
|
10536
10549
|
checked: e,
|
|
10537
10550
|
children: t,
|
|
10538
10551
|
className: n,
|
|
@@ -10542,7 +10555,7 @@ function Gg({
|
|
|
10542
10555
|
...l
|
|
10543
10556
|
}) {
|
|
10544
10557
|
let a, s;
|
|
10545
|
-
return e ? (a =
|
|
10558
|
+
return e ? (a = Lg, s = "fill-blue-600") : (a = Ag, s = "fill-slate-600"), /* @__PURE__ */ Y(
|
|
10546
10559
|
"label",
|
|
10547
10560
|
{
|
|
10548
10561
|
className: `cursor-pointer rounded-full flex flex-row items-center outline-none group ${n}`,
|
|
@@ -10571,7 +10584,7 @@ function Gg({
|
|
|
10571
10584
|
}
|
|
10572
10585
|
);
|
|
10573
10586
|
}
|
|
10574
|
-
function
|
|
10587
|
+
function Xg({
|
|
10575
10588
|
className: e,
|
|
10576
10589
|
defaultValue: t,
|
|
10577
10590
|
onChange: n,
|
|
@@ -10620,7 +10633,7 @@ function Kg({
|
|
|
10620
10633
|
) })
|
|
10621
10634
|
] }) });
|
|
10622
10635
|
}
|
|
10623
|
-
function
|
|
10636
|
+
function Zg(e, t) {
|
|
10624
10637
|
switch (e) {
|
|
10625
10638
|
case "danger":
|
|
10626
10639
|
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!";
|
|
@@ -10635,32 +10648,32 @@ function qg(e, t) {
|
|
|
10635
10648
|
}
|
|
10636
10649
|
}
|
|
10637
10650
|
export {
|
|
10638
|
-
|
|
10651
|
+
Hg as A,
|
|
10639
10652
|
Pe as B,
|
|
10640
10653
|
ml as C,
|
|
10641
|
-
|
|
10654
|
+
qn as D,
|
|
10642
10655
|
ja as E,
|
|
10643
10656
|
Ua as H,
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10657
|
+
Wg as I,
|
|
10658
|
+
Gn as L,
|
|
10659
|
+
Gg as N,
|
|
10660
|
+
Yg as R,
|
|
10648
10661
|
Gc as S,
|
|
10649
10662
|
Va as T,
|
|
10650
|
-
|
|
10663
|
+
Vg as a,
|
|
10651
10664
|
Ph as b,
|
|
10652
|
-
|
|
10665
|
+
jg as c,
|
|
10653
10666
|
za as d,
|
|
10654
10667
|
_a as e,
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10668
|
+
zg as f,
|
|
10669
|
+
Ug as g,
|
|
10670
|
+
Kg as h,
|
|
10671
|
+
qg as i,
|
|
10659
10672
|
Oi as j,
|
|
10660
|
-
|
|
10673
|
+
Xg as k,
|
|
10661
10674
|
Kc as l,
|
|
10662
10675
|
fe as m,
|
|
10663
|
-
|
|
10664
|
-
|
|
10676
|
+
Zg as n,
|
|
10677
|
+
On as u
|
|
10665
10678
|
};
|
|
10666
|
-
//# sourceMappingURL=index-
|
|
10679
|
+
//# sourceMappingURL=index-DjmISh76.js.map
|