zudoku 0.12.2 → 0.13.1
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/app/main.js +3 -3
- package/dist/app/main.js.map +1 -1
- package/dist/cli/dev/handler.js +2 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/validate.d.ts +42 -23
- package/dist/config/validators/validate.js +6 -2
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/lib/components/Banner.js +7 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +9 -2
- package/dist/lib/components/SlotletProvider.js +4 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +1 -1
- package/dist/lib/oas/graphql/index.js +2 -6
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +10 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
- package/dist/lib/plugins/custom-pages/index.js +11 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -0
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +36 -35
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +8 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/vite/config.js +2 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +6 -1
- package/dist/vite/dev-server.js +13 -3
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-component.js +0 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +4 -0
- package/dist/vite/plugin-custom-pages.js +30 -0
- package/dist/vite/plugin-custom-pages.js.map +1 -0
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
- package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
- package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-CiXPc9Xm.js} +2 -2
- package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-CiXPc9Xm.js.map} +1 -1
- package/lib/ErrorPage-B-zoPPVx.js +15 -0
- package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B-zoPPVx.js.map} +1 -1
- package/lib/Input-QMLhK7Rb.js +2229 -0
- package/lib/Input-QMLhK7Rb.js.map +1 -0
- package/lib/{Markdown-DapSf3wG.js → Markdown-D6Nze6qq.js} +3281 -5392
- package/lib/Markdown-D6Nze6qq.js.map +1 -0
- package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-DBhq6-5F.js} +15 -15
- package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-DBhq6-5F.js.map} +1 -1
- package/lib/{OperationList-CYrmxPa8.js → OperationList-Ba24gUd2.js} +50 -51
- package/lib/OperationList-Ba24gUd2.js.map +1 -0
- package/lib/{Route-Q5mqNQrv.js → Route-DI38nxYt.js} +3 -4
- package/lib/Route-DI38nxYt.js.map +1 -0
- package/lib/SidebarBadge-B9-VJSQr.js +503 -0
- package/lib/SidebarBadge-B9-VJSQr.js.map +1 -0
- package/lib/{SlotletProvider-D3UD5Go3.js → SlotletProvider-Cb8mGpBO.js} +46 -46
- package/lib/{SlotletProvider-D3UD5Go3.js.map → SlotletProvider-Cb8mGpBO.js.map} +1 -1
- package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
- package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
- package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
- package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
- package/lib/assets/{worker-Bcj4NA2p.js → worker-Bf8vjASY.js} +4582 -4303
- package/lib/assets/worker-Bf8vjASY.js.map +1 -0
- package/lib/cn-BmFQLtkS.js +2279 -0
- package/lib/cn-BmFQLtkS.js.map +1 -0
- package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
- package/lib/index-BRCiYFaL.js.map +1 -0
- package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
- package/lib/index-CkwDvuPt.js.map +1 -0
- package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
- package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
- package/lib/{index-BlJ2rj99.js → index-DA74gNq3.js} +1124 -974
- package/lib/index-DA74gNq3.js.map +1 -0
- package/lib/index-DJqnphbT.js +35 -0
- package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
- package/lib/{index-BngPzhKn.js → index-dgcPryXi.js} +3 -3
- package/lib/{index-BngPzhKn.js.map → index-dgcPryXi.js.map} +1 -1
- package/lib/{index-Dolisrci.js → index-g_JJcuFg.js} +603 -549
- package/lib/index-g_JJcuFg.js.map +1 -0
- package/lib/router-Oe6YmY6B.js +3024 -0
- package/lib/router-Oe6YmY6B.js.map +1 -0
- package/lib/state-CsuHT8ZO.js +183 -0
- package/lib/state-CsuHT8ZO.js.map +1 -0
- package/lib/urql-core-KJnLL26g.js +1455 -0
- package/lib/urql-core-KJnLL26g.js.map +1 -0
- package/lib/useExposedProps-Csw8oAlt.js +9 -0
- package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
- package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
- package/lib/utils-Chi3p5nE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +363 -350
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1697 -1623
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +4599 -4319
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -7
- package/lib/zudoku.plugin-custom-pages.js +21 -0
- package/lib/zudoku.plugin-custom-pages.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -8
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +61 -68
- package/src/app/main.tsx +3 -3
- package/src/lib/components/Banner.tsx +12 -2
- package/src/lib/components/Header.tsx +4 -2
- package/src/lib/components/Layout.tsx +1 -0
- package/src/lib/components/MobileTopNavigation.tsx +4 -0
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/SlotletProvider.tsx +27 -4
- package/src/lib/components/index.ts +1 -1
- package/src/lib/core/DevPortalContext.ts +1 -1
- package/src/lib/oas/graphql/index.ts +3 -11
- package/src/lib/plugins/custom-pages/CustomPage.tsx +15 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -0
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
- package/src/lib/plugins/openapi/index.tsx +1 -5
- package/src/lib/ui/Callout.tsx +7 -6
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/util/useExposedProps.tsx +10 -0
- package/dist/lib/plugins/custom-page/index.d.ts +0 -8
- package/dist/lib/plugins/custom-page/index.js +0 -12
- package/dist/lib/plugins/custom-page/index.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/lib/CategoryHeading-ovR-zHRq.js +0 -10
- package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
- package/lib/ErrorPage-CsZAN_za.js +0 -16
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-Bcj4NA2p.js.map +0 -1
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/lib/zudoku.plugin-custom-page.js +0 -13
- package/lib/zudoku.plugin-custom-page.js.map +0 -1
- package/src/lib/plugins/custom-page/index.tsx +0 -22
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import { i as m, j as G, g as
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import * as Bt from "react-dom";
|
|
3
|
+
import { i as m, j as G, g as be, w as C, a as Re, m as we, A as de, p as fe, s as T, b as Ce, c as X, d as Mt, e as jt, I as Ht, f as qe, h as Se, k as _e, l as Q, n as Ge, o as Xe, q as Qe, r as Ze, t as et, u as tt, v as rt, x as nt, y as ot, E as at, z as Kt } from "./router-Oe6YmY6B.js";
|
|
4
4
|
/**
|
|
5
|
-
* React Router v6.
|
|
5
|
+
* React Router v6.27.0
|
|
6
6
|
*
|
|
7
7
|
* Copyright (c) Remix Software Inc.
|
|
8
8
|
*
|
|
@@ -14,34 +14,34 @@ import { i as m, j as G, g as Re, w, a as Ne, m as _e, A as de, p as fe, s as T,
|
|
|
14
14
|
function I() {
|
|
15
15
|
return I = Object.assign ? Object.assign.bind() : function(e) {
|
|
16
16
|
for (var t = 1; t < arguments.length; t++) {
|
|
17
|
-
var
|
|
18
|
-
for (var o in
|
|
19
|
-
Object.prototype.hasOwnProperty.call(
|
|
17
|
+
var r = arguments[t];
|
|
18
|
+
for (var o in r)
|
|
19
|
+
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
20
20
|
}
|
|
21
21
|
return e;
|
|
22
22
|
}, I.apply(this, arguments);
|
|
23
23
|
}
|
|
24
|
-
const U = /* @__PURE__ */
|
|
24
|
+
const U = /* @__PURE__ */ n.createContext(null);
|
|
25
25
|
process.env.NODE_ENV !== "production" && (U.displayName = "DataRouter");
|
|
26
|
-
const
|
|
27
|
-
process.env.NODE_ENV !== "production" && (
|
|
28
|
-
const Z = /* @__PURE__ */
|
|
26
|
+
const B = /* @__PURE__ */ n.createContext(null);
|
|
27
|
+
process.env.NODE_ENV !== "production" && (B.displayName = "DataRouterState");
|
|
28
|
+
const Z = /* @__PURE__ */ n.createContext(null);
|
|
29
29
|
process.env.NODE_ENV !== "production" && (Z.displayName = "Await");
|
|
30
|
-
const S = /* @__PURE__ */
|
|
30
|
+
const S = /* @__PURE__ */ n.createContext(null);
|
|
31
31
|
process.env.NODE_ENV !== "production" && (S.displayName = "Navigation");
|
|
32
|
-
const
|
|
33
|
-
process.env.NODE_ENV !== "production" && (
|
|
34
|
-
const
|
|
32
|
+
const M = /* @__PURE__ */ n.createContext(null);
|
|
33
|
+
process.env.NODE_ENV !== "production" && (M.displayName = "Location");
|
|
34
|
+
const _ = /* @__PURE__ */ n.createContext({
|
|
35
35
|
outlet: null,
|
|
36
36
|
matches: [],
|
|
37
37
|
isDataRoute: !1
|
|
38
38
|
});
|
|
39
|
-
process.env.NODE_ENV !== "production" && (
|
|
40
|
-
const xe = /* @__PURE__ */
|
|
39
|
+
process.env.NODE_ENV !== "production" && (_.displayName = "Route");
|
|
40
|
+
const xe = /* @__PURE__ */ n.createContext(null);
|
|
41
41
|
process.env.NODE_ENV !== "production" && (xe.displayName = "RouteError");
|
|
42
42
|
function De(e, t) {
|
|
43
43
|
let {
|
|
44
|
-
relative:
|
|
44
|
+
relative: r
|
|
45
45
|
} = t === void 0 ? {} : t;
|
|
46
46
|
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
47
47
|
!1,
|
|
@@ -52,21 +52,21 @@ function De(e, t) {
|
|
|
52
52
|
let {
|
|
53
53
|
basename: o,
|
|
54
54
|
navigator: a
|
|
55
|
-
} =
|
|
56
|
-
hash:
|
|
55
|
+
} = n.useContext(S), {
|
|
56
|
+
hash: l,
|
|
57
57
|
pathname: i,
|
|
58
58
|
search: u
|
|
59
59
|
} = Y(e, {
|
|
60
|
-
relative:
|
|
61
|
-
}),
|
|
62
|
-
return o !== "/" && (
|
|
63
|
-
pathname:
|
|
60
|
+
relative: r
|
|
61
|
+
}), f = i;
|
|
62
|
+
return o !== "/" && (f = i === "/" ? o : G([o, i])), a.createHref({
|
|
63
|
+
pathname: f,
|
|
64
64
|
search: u,
|
|
65
|
-
hash:
|
|
65
|
+
hash: l
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
function V() {
|
|
69
|
-
return
|
|
69
|
+
return n.useContext(M) != null;
|
|
70
70
|
}
|
|
71
71
|
function L() {
|
|
72
72
|
return V() || (process.env.NODE_ENV !== "production" ? m(
|
|
@@ -74,12 +74,12 @@ function L() {
|
|
|
74
74
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
75
75
|
// router loaded. We can help them understand how to avoid that.
|
|
76
76
|
"useLocation() may be used only in the context of a <Router> component."
|
|
77
|
-
) : m(!1)),
|
|
77
|
+
) : m(!1)), n.useContext(M).location;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function it() {
|
|
80
|
+
return n.useContext(M).navigationType;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function lt(e) {
|
|
83
83
|
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
84
84
|
!1,
|
|
85
85
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -89,78 +89,78 @@ function it(e) {
|
|
|
89
89
|
let {
|
|
90
90
|
pathname: t
|
|
91
91
|
} = L();
|
|
92
|
-
return
|
|
92
|
+
return n.useMemo(() => X(e, Mt(t)), [t, e]);
|
|
93
93
|
}
|
|
94
94
|
const st = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
95
|
-
function
|
|
96
|
-
|
|
95
|
+
function ut(e) {
|
|
96
|
+
n.useContext(S).static || n.useLayoutEffect(e);
|
|
97
97
|
}
|
|
98
98
|
function te() {
|
|
99
99
|
let {
|
|
100
100
|
isDataRoute: e
|
|
101
|
-
} =
|
|
102
|
-
return e ?
|
|
101
|
+
} = n.useContext(_);
|
|
102
|
+
return e ? Xt() : zt();
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function zt() {
|
|
105
105
|
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
106
106
|
!1,
|
|
107
107
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
108
108
|
// router loaded. We can help them understand how to avoid that.
|
|
109
109
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
110
110
|
) : m(!1));
|
|
111
|
-
let e =
|
|
111
|
+
let e = n.useContext(U), {
|
|
112
112
|
basename: t,
|
|
113
|
-
future:
|
|
113
|
+
future: r,
|
|
114
114
|
navigator: o
|
|
115
|
-
} =
|
|
115
|
+
} = n.useContext(S), {
|
|
116
116
|
matches: a
|
|
117
|
-
} =
|
|
118
|
-
pathname:
|
|
119
|
-
} = L(), i = JSON.stringify(
|
|
120
|
-
return
|
|
117
|
+
} = n.useContext(_), {
|
|
118
|
+
pathname: l
|
|
119
|
+
} = L(), i = JSON.stringify(be(a, r.v7_relativeSplatPath)), u = n.useRef(!1);
|
|
120
|
+
return ut(() => {
|
|
121
121
|
u.current = !0;
|
|
122
|
-
}),
|
|
123
|
-
if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" &&
|
|
124
|
-
if (typeof
|
|
125
|
-
o.go(
|
|
122
|
+
}), n.useCallback(function(s, c) {
|
|
123
|
+
if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && C(u.current, st), !u.current) return;
|
|
124
|
+
if (typeof s == "number") {
|
|
125
|
+
o.go(s);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
let
|
|
129
|
-
e == null && t !== "/" && (
|
|
130
|
-
}, [t, o, i,
|
|
128
|
+
let d = Re(s, JSON.parse(i), l, c.relative === "path");
|
|
129
|
+
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : G([t, d.pathname])), (c.replace ? o.replace : o.push)(d, c.state, c);
|
|
130
|
+
}, [t, o, i, l, e]);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
function
|
|
134
|
-
return
|
|
132
|
+
const ct = /* @__PURE__ */ n.createContext(null);
|
|
133
|
+
function dt() {
|
|
134
|
+
return n.useContext(ct);
|
|
135
135
|
}
|
|
136
136
|
function Oe(e) {
|
|
137
|
-
let t =
|
|
138
|
-
return t && /* @__PURE__ */
|
|
137
|
+
let t = n.useContext(_).outlet;
|
|
138
|
+
return t && /* @__PURE__ */ n.createElement(ct.Provider, {
|
|
139
139
|
value: e
|
|
140
140
|
}, t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ft() {
|
|
143
143
|
let {
|
|
144
144
|
matches: e
|
|
145
|
-
} =
|
|
145
|
+
} = n.useContext(_), t = e[e.length - 1];
|
|
146
146
|
return t ? t.params : {};
|
|
147
147
|
}
|
|
148
148
|
function Y(e, t) {
|
|
149
149
|
let {
|
|
150
|
-
relative:
|
|
150
|
+
relative: r
|
|
151
151
|
} = t === void 0 ? {} : t, {
|
|
152
152
|
future: o
|
|
153
|
-
} =
|
|
153
|
+
} = n.useContext(S), {
|
|
154
154
|
matches: a
|
|
155
|
-
} =
|
|
156
|
-
pathname:
|
|
157
|
-
} = L(), i = JSON.stringify(
|
|
158
|
-
return
|
|
155
|
+
} = n.useContext(_), {
|
|
156
|
+
pathname: l
|
|
157
|
+
} = L(), i = JSON.stringify(be(a, o.v7_relativeSplatPath));
|
|
158
|
+
return n.useMemo(() => Re(e, JSON.parse(i), l, r === "path"), [e, i, l, r]);
|
|
159
159
|
}
|
|
160
160
|
function Pe(e, t) {
|
|
161
161
|
return pe(e, t);
|
|
162
162
|
}
|
|
163
|
-
function pe(e, t,
|
|
163
|
+
function pe(e, t, r, o) {
|
|
164
164
|
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
165
165
|
!1,
|
|
166
166
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -169,45 +169,45 @@ function pe(e, t, n, o) {
|
|
|
169
169
|
) : m(!1));
|
|
170
170
|
let {
|
|
171
171
|
navigator: a
|
|
172
|
-
} =
|
|
173
|
-
matches:
|
|
174
|
-
} =
|
|
172
|
+
} = n.useContext(S), {
|
|
173
|
+
matches: l
|
|
174
|
+
} = n.useContext(_), i = l[l.length - 1], u = i ? i.params : {}, f = i ? i.pathname : "/", s = i ? i.pathnameBase : "/", c = i && i.route;
|
|
175
175
|
if (process.env.NODE_ENV !== "production") {
|
|
176
176
|
let h = c && c.path || "";
|
|
177
|
-
|
|
177
|
+
gt(f, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + f + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
178
178
|
|
|
179
179
|
` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
|
|
180
180
|
}
|
|
181
|
-
let
|
|
181
|
+
let d = L(), p;
|
|
182
182
|
if (t) {
|
|
183
183
|
var v;
|
|
184
184
|
let h = typeof t == "string" ? fe(t) : t;
|
|
185
|
-
|
|
185
|
+
s === "/" || (v = h.pathname) != null && v.startsWith(s) || (process.env.NODE_ENV !== "production" ? m(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + s + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : m(!1)), p = h;
|
|
186
186
|
} else
|
|
187
|
-
p =
|
|
188
|
-
let g = p.pathname || "/",
|
|
189
|
-
if (
|
|
190
|
-
let h =
|
|
191
|
-
|
|
187
|
+
p = d;
|
|
188
|
+
let g = p.pathname || "/", N = g;
|
|
189
|
+
if (s !== "/") {
|
|
190
|
+
let h = s.replace(/^\//, "").split("/");
|
|
191
|
+
N = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
192
192
|
}
|
|
193
|
-
let y =
|
|
194
|
-
pathname:
|
|
193
|
+
let y = we(e, {
|
|
194
|
+
pathname: N
|
|
195
195
|
});
|
|
196
|
-
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" &&
|
|
197
|
-
let
|
|
196
|
+
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && C(c || y != null, 'No routes matched location "' + p.pathname + p.search + p.hash + '" '), process.env.NODE_ENV !== "production" && C(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + p.pathname + p.search + p.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
|
|
197
|
+
let w = pt(y && y.map((h) => Object.assign({}, h, {
|
|
198
198
|
params: Object.assign({}, u, h.params),
|
|
199
199
|
pathname: G([
|
|
200
|
-
|
|
200
|
+
s,
|
|
201
201
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
202
202
|
a.encodeLocation ? a.encodeLocation(h.pathname).pathname : h.pathname
|
|
203
203
|
]),
|
|
204
|
-
pathnameBase: h.pathnameBase === "/" ?
|
|
205
|
-
|
|
204
|
+
pathnameBase: h.pathnameBase === "/" ? s : G([
|
|
205
|
+
s,
|
|
206
206
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
207
207
|
a.encodeLocation ? a.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
208
208
|
])
|
|
209
|
-
})),
|
|
210
|
-
return t &&
|
|
209
|
+
})), l, r, o);
|
|
210
|
+
return t && w ? /* @__PURE__ */ n.createElement(M.Provider, {
|
|
211
211
|
value: {
|
|
212
212
|
location: I({
|
|
213
213
|
pathname: "/",
|
|
@@ -218,30 +218,30 @@ function pe(e, t, n, o) {
|
|
|
218
218
|
}, p),
|
|
219
219
|
navigationType: de.Pop
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, w) : w;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
let e = ke(), t =
|
|
223
|
+
function Wt() {
|
|
224
|
+
let e = ke(), t = Ce(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", a = {
|
|
225
225
|
padding: "0.5rem",
|
|
226
226
|
backgroundColor: o
|
|
227
|
-
},
|
|
227
|
+
}, l = {
|
|
228
228
|
padding: "2px 4px",
|
|
229
229
|
backgroundColor: o
|
|
230
230
|
}, i = null;
|
|
231
|
-
return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */
|
|
232
|
-
style:
|
|
233
|
-
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */
|
|
234
|
-
style:
|
|
235
|
-
}, "errorElement"), " prop on your route."))), /* @__PURE__ */
|
|
231
|
+
return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ n.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ n.createElement("code", {
|
|
232
|
+
style: l
|
|
233
|
+
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */ n.createElement("code", {
|
|
234
|
+
style: l
|
|
235
|
+
}, "errorElement"), " prop on your route."))), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ n.createElement("h3", {
|
|
236
236
|
style: {
|
|
237
237
|
fontStyle: "italic"
|
|
238
238
|
}
|
|
239
|
-
}, t),
|
|
239
|
+
}, t), r ? /* @__PURE__ */ n.createElement("pre", {
|
|
240
240
|
style: a
|
|
241
|
-
},
|
|
241
|
+
}, r) : null, i);
|
|
242
242
|
}
|
|
243
|
-
const
|
|
244
|
-
class
|
|
243
|
+
const Yt = /* @__PURE__ */ n.createElement(Wt, null);
|
|
244
|
+
class $t extends n.Component {
|
|
245
245
|
constructor(t) {
|
|
246
246
|
super(t), this.state = {
|
|
247
247
|
location: t.location,
|
|
@@ -254,92 +254,96 @@ class Yt extends r.Component {
|
|
|
254
254
|
error: t
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
static getDerivedStateFromProps(t,
|
|
258
|
-
return
|
|
257
|
+
static getDerivedStateFromProps(t, r) {
|
|
258
|
+
return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
|
|
259
259
|
error: t.error,
|
|
260
260
|
location: t.location,
|
|
261
261
|
revalidation: t.revalidation
|
|
262
262
|
} : {
|
|
263
|
-
error: t.error !== void 0 ? t.error :
|
|
264
|
-
location:
|
|
265
|
-
revalidation: t.revalidation ||
|
|
263
|
+
error: t.error !== void 0 ? t.error : r.error,
|
|
264
|
+
location: r.location,
|
|
265
|
+
revalidation: t.revalidation || r.revalidation
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
componentDidCatch(t,
|
|
269
|
-
console.error("React Router caught the following error during render", t,
|
|
268
|
+
componentDidCatch(t, r) {
|
|
269
|
+
console.error("React Router caught the following error during render", t, r);
|
|
270
270
|
}
|
|
271
271
|
render() {
|
|
272
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
272
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ n.createElement(_.Provider, {
|
|
273
273
|
value: this.props.routeContext
|
|
274
|
-
}, /* @__PURE__ */
|
|
274
|
+
}, /* @__PURE__ */ n.createElement(xe.Provider, {
|
|
275
275
|
value: this.state.error,
|
|
276
276
|
children: this.props.component
|
|
277
277
|
})) : this.props.children;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Jt(e) {
|
|
281
281
|
let {
|
|
282
282
|
routeContext: t,
|
|
283
|
-
match:
|
|
283
|
+
match: r,
|
|
284
284
|
children: o
|
|
285
|
-
} = e, a =
|
|
286
|
-
return a && a.static && a.staticContext && (
|
|
285
|
+
} = e, a = n.useContext(U);
|
|
286
|
+
return a && a.static && a.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ n.createElement(_.Provider, {
|
|
287
287
|
value: t
|
|
288
288
|
}, o);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function pt(e, t, r, o) {
|
|
291
291
|
var a;
|
|
292
|
-
if (t === void 0 && (t = []),
|
|
293
|
-
var
|
|
294
|
-
if (
|
|
295
|
-
|
|
292
|
+
if (t === void 0 && (t = []), r === void 0 && (r = null), o === void 0 && (o = null), e == null) {
|
|
293
|
+
var l;
|
|
294
|
+
if (!r)
|
|
295
|
+
return null;
|
|
296
|
+
if (r.errors)
|
|
297
|
+
e = r.matches;
|
|
298
|
+
else if ((l = o) != null && l.v7_partialHydration && t.length === 0 && !r.initialized && r.matches.length > 0)
|
|
299
|
+
e = r.matches;
|
|
296
300
|
else
|
|
297
301
|
return null;
|
|
298
302
|
}
|
|
299
|
-
let i = e, u = (a =
|
|
303
|
+
let i = e, u = (a = r) == null ? void 0 : a.errors;
|
|
300
304
|
if (u != null) {
|
|
301
|
-
let c = i.findIndex((
|
|
305
|
+
let c = i.findIndex((d) => d.route.id && (u == null ? void 0 : u[d.route.id]) !== void 0);
|
|
302
306
|
c >= 0 || (process.env.NODE_ENV !== "production" ? m(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(u).join(",")) : m(!1)), i = i.slice(0, Math.min(i.length, c + 1));
|
|
303
307
|
}
|
|
304
|
-
let
|
|
305
|
-
if (
|
|
308
|
+
let f = !1, s = -1;
|
|
309
|
+
if (r && o && o.v7_partialHydration)
|
|
306
310
|
for (let c = 0; c < i.length; c++) {
|
|
307
|
-
let
|
|
308
|
-
if ((
|
|
311
|
+
let d = i[c];
|
|
312
|
+
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = c), d.route.id) {
|
|
309
313
|
let {
|
|
310
314
|
loaderData: p,
|
|
311
315
|
errors: v
|
|
312
|
-
} =
|
|
313
|
-
if (
|
|
314
|
-
|
|
316
|
+
} = r, g = d.route.loader && p[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
|
|
317
|
+
if (d.route.lazy || g) {
|
|
318
|
+
f = !0, s >= 0 ? i = i.slice(0, s + 1) : i = [i[0]];
|
|
315
319
|
break;
|
|
316
320
|
}
|
|
317
321
|
}
|
|
318
322
|
}
|
|
319
|
-
return i.reduceRight((c,
|
|
320
|
-
let v, g = !1,
|
|
321
|
-
|
|
322
|
-
let
|
|
323
|
+
return i.reduceRight((c, d, p) => {
|
|
324
|
+
let v, g = !1, N = null, y = null;
|
|
325
|
+
r && (v = u && d.route.id ? u[d.route.id] : void 0, N = d.route.errorElement || Yt, f && (s < 0 && p === 0 ? (gt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : s === p && (g = !0, y = d.route.hydrateFallbackElement || null)));
|
|
326
|
+
let w = t.concat(i.slice(0, p + 1)), h = () => {
|
|
323
327
|
let E;
|
|
324
|
-
return v ? E =
|
|
325
|
-
match:
|
|
328
|
+
return v ? E = N : g ? E = y : d.route.Component ? E = /* @__PURE__ */ n.createElement(d.route.Component, null) : d.route.element ? E = d.route.element : E = c, /* @__PURE__ */ n.createElement(Jt, {
|
|
329
|
+
match: d,
|
|
326
330
|
routeContext: {
|
|
327
331
|
outlet: c,
|
|
328
|
-
matches:
|
|
329
|
-
isDataRoute:
|
|
332
|
+
matches: w,
|
|
333
|
+
isDataRoute: r != null
|
|
330
334
|
},
|
|
331
335
|
children: E
|
|
332
336
|
});
|
|
333
337
|
};
|
|
334
|
-
return
|
|
335
|
-
location:
|
|
336
|
-
revalidation:
|
|
337
|
-
component:
|
|
338
|
+
return r && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ n.createElement($t, {
|
|
339
|
+
location: r.location,
|
|
340
|
+
revalidation: r.revalidation,
|
|
341
|
+
component: N,
|
|
338
342
|
error: v,
|
|
339
343
|
children: h(),
|
|
340
344
|
routeContext: {
|
|
341
345
|
outlet: null,
|
|
342
|
-
matches:
|
|
346
|
+
matches: w,
|
|
343
347
|
isDataRoute: !0
|
|
344
348
|
}
|
|
345
349
|
}) : h();
|
|
@@ -354,30 +358,30 @@ function Le(e) {
|
|
|
354
358
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
355
359
|
}
|
|
356
360
|
function Te(e) {
|
|
357
|
-
let t =
|
|
361
|
+
let t = n.useContext(U);
|
|
358
362
|
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
359
363
|
}
|
|
360
364
|
function j(e) {
|
|
361
|
-
let t =
|
|
365
|
+
let t = n.useContext(B);
|
|
362
366
|
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
363
367
|
}
|
|
364
|
-
function
|
|
365
|
-
let t =
|
|
368
|
+
function qt(e) {
|
|
369
|
+
let t = n.useContext(_);
|
|
366
370
|
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
367
371
|
}
|
|
368
|
-
function
|
|
369
|
-
let t =
|
|
370
|
-
return
|
|
372
|
+
function re(e) {
|
|
373
|
+
let t = qt(e), r = t.matches[t.matches.length - 1];
|
|
374
|
+
return r.route.id || (process.env.NODE_ENV !== "production" ? m(!1, e + ' can only be used on routes that contain a unique "id"') : m(!1)), r.route.id;
|
|
371
375
|
}
|
|
372
376
|
function Fe() {
|
|
373
|
-
return
|
|
377
|
+
return re(O.UseRouteId);
|
|
374
378
|
}
|
|
375
379
|
function Ue() {
|
|
376
380
|
return j(O.UseNavigation).navigation;
|
|
377
381
|
}
|
|
378
|
-
function
|
|
382
|
+
function ht() {
|
|
379
383
|
let e = Te(he.UseRevalidator), t = j(O.UseRevalidator);
|
|
380
|
-
return
|
|
384
|
+
return n.useMemo(() => ({
|
|
381
385
|
revalidate: e.router.revalidate,
|
|
382
386
|
state: t.revalidation
|
|
383
387
|
}), [e.router.revalidate, t.revalidation]);
|
|
@@ -387,177 +391,177 @@ function Ve() {
|
|
|
387
391
|
matches: e,
|
|
388
392
|
loaderData: t
|
|
389
393
|
} = j(O.UseMatches);
|
|
390
|
-
return
|
|
394
|
+
return n.useMemo(() => e.map((r) => jt(r, t)), [e, t]);
|
|
391
395
|
}
|
|
392
|
-
function
|
|
393
|
-
let e = j(O.UseLoaderData), t =
|
|
396
|
+
function mt() {
|
|
397
|
+
let e = j(O.UseLoaderData), t = re(O.UseLoaderData);
|
|
394
398
|
if (e.errors && e.errors[t] != null) {
|
|
395
399
|
console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
|
|
396
400
|
return;
|
|
397
401
|
}
|
|
398
402
|
return e.loaderData[t];
|
|
399
403
|
}
|
|
400
|
-
function
|
|
404
|
+
function vt(e) {
|
|
401
405
|
return j(O.UseRouteLoaderData).loaderData[e];
|
|
402
406
|
}
|
|
403
|
-
function
|
|
404
|
-
let e = j(O.UseActionData), t =
|
|
407
|
+
function Et() {
|
|
408
|
+
let e = j(O.UseActionData), t = re(O.UseLoaderData);
|
|
405
409
|
return e.actionData ? e.actionData[t] : void 0;
|
|
406
410
|
}
|
|
407
411
|
function ke() {
|
|
408
412
|
var e;
|
|
409
|
-
let t =
|
|
410
|
-
return t !== void 0 ? t : (e =
|
|
413
|
+
let t = n.useContext(xe), r = j(O.UseRouteError), o = re(O.UseRouteError);
|
|
414
|
+
return t !== void 0 ? t : (e = r.errors) == null ? void 0 : e[o];
|
|
411
415
|
}
|
|
412
416
|
function Ie() {
|
|
413
|
-
let e =
|
|
417
|
+
let e = n.useContext(Z);
|
|
414
418
|
return e == null ? void 0 : e._data;
|
|
415
419
|
}
|
|
416
|
-
function
|
|
417
|
-
let e =
|
|
420
|
+
function yt() {
|
|
421
|
+
let e = n.useContext(Z);
|
|
418
422
|
return e == null ? void 0 : e._error;
|
|
419
423
|
}
|
|
420
|
-
let
|
|
424
|
+
let Gt = 0;
|
|
421
425
|
function Ae(e) {
|
|
422
426
|
let {
|
|
423
427
|
router: t,
|
|
424
|
-
basename:
|
|
425
|
-
} = Te(he.UseBlocker), o = j(O.UseBlocker), [a,
|
|
428
|
+
basename: r
|
|
429
|
+
} = Te(he.UseBlocker), o = j(O.UseBlocker), [a, l] = n.useState(""), i = n.useCallback((u) => {
|
|
426
430
|
if (typeof e != "function")
|
|
427
431
|
return !!e;
|
|
428
|
-
if (
|
|
432
|
+
if (r === "/")
|
|
429
433
|
return e(u);
|
|
430
434
|
let {
|
|
431
|
-
currentLocation:
|
|
432
|
-
nextLocation:
|
|
435
|
+
currentLocation: f,
|
|
436
|
+
nextLocation: s,
|
|
433
437
|
historyAction: c
|
|
434
438
|
} = u;
|
|
435
439
|
return e({
|
|
436
|
-
currentLocation: I({},
|
|
437
|
-
pathname: T(
|
|
440
|
+
currentLocation: I({}, f, {
|
|
441
|
+
pathname: T(f.pathname, r) || f.pathname
|
|
438
442
|
}),
|
|
439
|
-
nextLocation: I({},
|
|
440
|
-
pathname: T(
|
|
443
|
+
nextLocation: I({}, s, {
|
|
444
|
+
pathname: T(s.pathname, r) || s.pathname
|
|
441
445
|
}),
|
|
442
446
|
historyAction: c
|
|
443
447
|
});
|
|
444
|
-
}, [
|
|
445
|
-
return
|
|
446
|
-
let u = String(++
|
|
447
|
-
return
|
|
448
|
-
}, [t]),
|
|
448
|
+
}, [r, e]);
|
|
449
|
+
return n.useEffect(() => {
|
|
450
|
+
let u = String(++Gt);
|
|
451
|
+
return l(u), () => t.deleteBlocker(u);
|
|
452
|
+
}, [t]), n.useEffect(() => {
|
|
449
453
|
a !== "" && t.getBlocker(a, i);
|
|
450
|
-
}, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) :
|
|
454
|
+
}, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : Ht;
|
|
451
455
|
}
|
|
452
|
-
function
|
|
456
|
+
function Xt() {
|
|
453
457
|
let {
|
|
454
458
|
router: e
|
|
455
|
-
} = Te(he.UseNavigateStable), t =
|
|
456
|
-
return
|
|
457
|
-
|
|
458
|
-
}),
|
|
459
|
-
|
|
459
|
+
} = Te(he.UseNavigateStable), t = re(O.UseNavigateStable), r = n.useRef(!1);
|
|
460
|
+
return ut(() => {
|
|
461
|
+
r.current = !0;
|
|
462
|
+
}), n.useCallback(function(a, l) {
|
|
463
|
+
l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && C(r.current, st), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, I({
|
|
460
464
|
fromRouteId: t
|
|
461
|
-
},
|
|
465
|
+
}, l)));
|
|
462
466
|
}, [e, t]);
|
|
463
467
|
}
|
|
464
468
|
const We = {};
|
|
465
|
-
function
|
|
466
|
-
!t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" &&
|
|
469
|
+
function gt(e, t, r) {
|
|
470
|
+
!t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && C(!1, r));
|
|
467
471
|
}
|
|
468
|
-
const
|
|
469
|
-
function
|
|
472
|
+
const Qt = "startTransition", ue = n[Qt];
|
|
473
|
+
function Zt(e) {
|
|
470
474
|
let {
|
|
471
475
|
fallbackElement: t,
|
|
472
|
-
router:
|
|
476
|
+
router: r,
|
|
473
477
|
future: o
|
|
474
|
-
} = e, [a,
|
|
478
|
+
} = e, [a, l] = n.useState(r.state), {
|
|
475
479
|
v7_startTransition: i
|
|
476
|
-
} = o || {}, u =
|
|
477
|
-
i && ue ? ue(() =>
|
|
478
|
-
}, [
|
|
479
|
-
|
|
480
|
-
process.env.NODE_ENV !== "production" &&
|
|
480
|
+
} = o || {}, u = n.useCallback((d) => {
|
|
481
|
+
i && ue ? ue(() => l(d)) : l(d);
|
|
482
|
+
}, [l, i]);
|
|
483
|
+
n.useLayoutEffect(() => r.subscribe(u), [r, u]), n.useEffect(() => {
|
|
484
|
+
process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
481
485
|
}, []);
|
|
482
|
-
let
|
|
483
|
-
createHref:
|
|
484
|
-
encodeLocation:
|
|
485
|
-
go: (
|
|
486
|
-
push: (
|
|
486
|
+
let f = n.useMemo(() => ({
|
|
487
|
+
createHref: r.createHref,
|
|
488
|
+
encodeLocation: r.encodeLocation,
|
|
489
|
+
go: (d) => r.navigate(d),
|
|
490
|
+
push: (d, p, v) => r.navigate(d, {
|
|
487
491
|
state: p,
|
|
488
492
|
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
489
493
|
}),
|
|
490
|
-
replace: (
|
|
494
|
+
replace: (d, p, v) => r.navigate(d, {
|
|
491
495
|
replace: !0,
|
|
492
496
|
state: p,
|
|
493
497
|
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
494
498
|
})
|
|
495
|
-
}), [
|
|
496
|
-
router:
|
|
497
|
-
navigator:
|
|
499
|
+
}), [r]), s = r.basename || "/", c = n.useMemo(() => ({
|
|
500
|
+
router: r,
|
|
501
|
+
navigator: f,
|
|
498
502
|
static: !1,
|
|
499
|
-
basename:
|
|
500
|
-
}), [
|
|
501
|
-
return /* @__PURE__ */
|
|
503
|
+
basename: s
|
|
504
|
+
}), [r, f, s]);
|
|
505
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
|
|
502
506
|
value: c
|
|
503
|
-
}, /* @__PURE__ */
|
|
507
|
+
}, /* @__PURE__ */ n.createElement(B.Provider, {
|
|
504
508
|
value: a
|
|
505
|
-
}, /* @__PURE__ */
|
|
506
|
-
basename:
|
|
509
|
+
}, /* @__PURE__ */ n.createElement(H, {
|
|
510
|
+
basename: s,
|
|
507
511
|
location: a.location,
|
|
508
512
|
navigationType: a.historyAction,
|
|
509
|
-
navigator:
|
|
513
|
+
navigator: f,
|
|
510
514
|
future: {
|
|
511
|
-
v7_relativeSplatPath:
|
|
515
|
+
v7_relativeSplatPath: r.future.v7_relativeSplatPath
|
|
512
516
|
}
|
|
513
|
-
}, a.initialized ||
|
|
514
|
-
routes:
|
|
515
|
-
future:
|
|
517
|
+
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(er, {
|
|
518
|
+
routes: r.routes,
|
|
519
|
+
future: r.future,
|
|
516
520
|
state: a
|
|
517
521
|
}) : t))), null);
|
|
518
522
|
}
|
|
519
|
-
function
|
|
523
|
+
function er(e) {
|
|
520
524
|
let {
|
|
521
525
|
routes: t,
|
|
522
|
-
future:
|
|
526
|
+
future: r,
|
|
523
527
|
state: o
|
|
524
528
|
} = e;
|
|
525
|
-
return pe(t, void 0, o,
|
|
529
|
+
return pe(t, void 0, o, r);
|
|
526
530
|
}
|
|
527
|
-
function
|
|
531
|
+
function Nt(e) {
|
|
528
532
|
let {
|
|
529
533
|
basename: t,
|
|
530
|
-
children:
|
|
534
|
+
children: r,
|
|
531
535
|
initialEntries: o,
|
|
532
536
|
initialIndex: a,
|
|
533
|
-
future:
|
|
534
|
-
} = e, i =
|
|
537
|
+
future: l
|
|
538
|
+
} = e, i = n.useRef();
|
|
535
539
|
i.current == null && (i.current = qe({
|
|
536
540
|
initialEntries: o,
|
|
537
541
|
initialIndex: a,
|
|
538
542
|
v5Compat: !0
|
|
539
543
|
}));
|
|
540
|
-
let u = i.current, [
|
|
544
|
+
let u = i.current, [f, s] = n.useState({
|
|
541
545
|
action: u.action,
|
|
542
546
|
location: u.location
|
|
543
547
|
}), {
|
|
544
548
|
v7_startTransition: c
|
|
545
|
-
} =
|
|
546
|
-
c && ue ? ue(() =>
|
|
547
|
-
}, [
|
|
548
|
-
return
|
|
549
|
+
} = l || {}, d = n.useCallback((p) => {
|
|
550
|
+
c && ue ? ue(() => s(p)) : s(p);
|
|
551
|
+
}, [s, c]);
|
|
552
|
+
return n.useLayoutEffect(() => u.listen(d), [u, d]), /* @__PURE__ */ n.createElement(H, {
|
|
549
553
|
basename: t,
|
|
550
|
-
children:
|
|
551
|
-
location:
|
|
552
|
-
navigationType:
|
|
554
|
+
children: r,
|
|
555
|
+
location: f.location,
|
|
556
|
+
navigationType: f.action,
|
|
553
557
|
navigator: u,
|
|
554
|
-
future:
|
|
558
|
+
future: l
|
|
555
559
|
});
|
|
556
560
|
}
|
|
557
561
|
function bt(e) {
|
|
558
562
|
let {
|
|
559
563
|
to: t,
|
|
560
|
-
replace:
|
|
564
|
+
replace: r,
|
|
561
565
|
state: o,
|
|
562
566
|
relative: a
|
|
563
567
|
} = e;
|
|
@@ -568,97 +572,97 @@ function bt(e) {
|
|
|
568
572
|
"<Navigate> may be used only in the context of a <Router> component."
|
|
569
573
|
) : m(!1));
|
|
570
574
|
let {
|
|
571
|
-
future:
|
|
575
|
+
future: l,
|
|
572
576
|
static: i
|
|
573
|
-
} =
|
|
574
|
-
process.env.NODE_ENV !== "production" &&
|
|
577
|
+
} = n.useContext(S);
|
|
578
|
+
process.env.NODE_ENV !== "production" && C(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
575
579
|
let {
|
|
576
580
|
matches: u
|
|
577
|
-
} =
|
|
578
|
-
pathname:
|
|
579
|
-
} = L(),
|
|
580
|
-
return
|
|
581
|
-
replace:
|
|
581
|
+
} = n.useContext(_), {
|
|
582
|
+
pathname: f
|
|
583
|
+
} = L(), s = te(), c = Re(t, be(u, l.v7_relativeSplatPath), f, a === "path"), d = JSON.stringify(c);
|
|
584
|
+
return n.useEffect(() => s(JSON.parse(d), {
|
|
585
|
+
replace: r,
|
|
582
586
|
state: o,
|
|
583
587
|
relative: a
|
|
584
|
-
}), [
|
|
588
|
+
}), [s, d, a, r, o]), null;
|
|
585
589
|
}
|
|
586
590
|
function Rt(e) {
|
|
587
591
|
return Oe(e.context);
|
|
588
592
|
}
|
|
589
|
-
function
|
|
593
|
+
function Be(e) {
|
|
590
594
|
process.env.NODE_ENV !== "production" ? m(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : m(!1);
|
|
591
595
|
}
|
|
592
596
|
function H(e) {
|
|
593
597
|
let {
|
|
594
598
|
basename: t = "/",
|
|
595
|
-
children:
|
|
599
|
+
children: r = null,
|
|
596
600
|
location: o,
|
|
597
601
|
navigationType: a = de.Pop,
|
|
598
|
-
navigator:
|
|
602
|
+
navigator: l,
|
|
599
603
|
static: i = !1,
|
|
600
604
|
future: u
|
|
601
605
|
} = e;
|
|
602
606
|
V() && (process.env.NODE_ENV !== "production" ? m(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : m(!1));
|
|
603
|
-
let
|
|
604
|
-
basename:
|
|
605
|
-
navigator:
|
|
607
|
+
let f = t.replace(/^\/*/, "/"), s = n.useMemo(() => ({
|
|
608
|
+
basename: f,
|
|
609
|
+
navigator: l,
|
|
606
610
|
static: i,
|
|
607
611
|
future: I({
|
|
608
612
|
v7_relativeSplatPath: !1
|
|
609
613
|
}, u)
|
|
610
|
-
}), [
|
|
614
|
+
}), [f, u, l, i]);
|
|
611
615
|
typeof o == "string" && (o = fe(o));
|
|
612
616
|
let {
|
|
613
617
|
pathname: c = "/",
|
|
614
|
-
search:
|
|
618
|
+
search: d = "",
|
|
615
619
|
hash: p = "",
|
|
616
620
|
state: v = null,
|
|
617
621
|
key: g = "default"
|
|
618
|
-
} = o,
|
|
619
|
-
let y = T(c,
|
|
622
|
+
} = o, N = n.useMemo(() => {
|
|
623
|
+
let y = T(c, f);
|
|
620
624
|
return y == null ? null : {
|
|
621
625
|
location: {
|
|
622
626
|
pathname: y,
|
|
623
|
-
search:
|
|
627
|
+
search: d,
|
|
624
628
|
hash: p,
|
|
625
629
|
state: v,
|
|
626
630
|
key: g
|
|
627
631
|
},
|
|
628
632
|
navigationType: a
|
|
629
633
|
};
|
|
630
|
-
}, [
|
|
631
|
-
return process.env.NODE_ENV !== "production" &&
|
|
632
|
-
value:
|
|
633
|
-
}, /* @__PURE__ */
|
|
634
|
-
children:
|
|
635
|
-
value:
|
|
634
|
+
}, [f, c, d, p, v, g, a]);
|
|
635
|
+
return process.env.NODE_ENV !== "production" && C(N != null, '<Router basename="' + f + '"> is not able to match the URL ' + ('"' + c + d + p + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), N == null ? null : /* @__PURE__ */ n.createElement(S.Provider, {
|
|
636
|
+
value: s
|
|
637
|
+
}, /* @__PURE__ */ n.createElement(M.Provider, {
|
|
638
|
+
children: r,
|
|
639
|
+
value: N
|
|
636
640
|
}));
|
|
637
641
|
}
|
|
638
|
-
function
|
|
642
|
+
function wt(e) {
|
|
639
643
|
let {
|
|
640
644
|
children: t,
|
|
641
|
-
location:
|
|
645
|
+
location: r
|
|
642
646
|
} = e;
|
|
643
|
-
return Pe(W(t),
|
|
647
|
+
return Pe(W(t), r);
|
|
644
648
|
}
|
|
645
|
-
function
|
|
649
|
+
function Ct(e) {
|
|
646
650
|
let {
|
|
647
651
|
children: t,
|
|
648
|
-
errorElement:
|
|
652
|
+
errorElement: r,
|
|
649
653
|
resolve: o
|
|
650
654
|
} = e;
|
|
651
|
-
return /* @__PURE__ */
|
|
655
|
+
return /* @__PURE__ */ n.createElement(rr, {
|
|
652
656
|
resolve: o,
|
|
653
|
-
errorElement:
|
|
654
|
-
}, /* @__PURE__ */
|
|
657
|
+
errorElement: r
|
|
658
|
+
}, /* @__PURE__ */ n.createElement(nr, null, t));
|
|
655
659
|
}
|
|
656
660
|
var P = /* @__PURE__ */ function(e) {
|
|
657
661
|
return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
|
|
658
662
|
}(P || {});
|
|
659
|
-
const
|
|
663
|
+
const tr = new Promise(() => {
|
|
660
664
|
});
|
|
661
|
-
class
|
|
665
|
+
class rr extends n.Component {
|
|
662
666
|
constructor(t) {
|
|
663
667
|
super(t), this.state = {
|
|
664
668
|
error: null
|
|
@@ -669,23 +673,23 @@ class tn extends r.Component {
|
|
|
669
673
|
error: t
|
|
670
674
|
};
|
|
671
675
|
}
|
|
672
|
-
componentDidCatch(t,
|
|
673
|
-
console.error("<Await> caught the following error during render", t,
|
|
676
|
+
componentDidCatch(t, r) {
|
|
677
|
+
console.error("<Await> caught the following error during render", t, r);
|
|
674
678
|
}
|
|
675
679
|
render() {
|
|
676
680
|
let {
|
|
677
681
|
children: t,
|
|
678
|
-
errorElement:
|
|
682
|
+
errorElement: r,
|
|
679
683
|
resolve: o
|
|
680
|
-
} = this.props, a = null,
|
|
684
|
+
} = this.props, a = null, l = P.pending;
|
|
681
685
|
if (!(o instanceof Promise))
|
|
682
|
-
|
|
686
|
+
l = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
|
|
683
687
|
get: () => !0
|
|
684
688
|
}), Object.defineProperty(a, "_data", {
|
|
685
689
|
get: () => o
|
|
686
690
|
});
|
|
687
691
|
else if (this.state.error) {
|
|
688
|
-
|
|
692
|
+
l = P.error;
|
|
689
693
|
let i = this.state.error;
|
|
690
694
|
a = Promise.reject().catch(() => {
|
|
691
695
|
}), Object.defineProperty(a, "_tracked", {
|
|
@@ -693,50 +697,50 @@ class tn extends r.Component {
|
|
|
693
697
|
}), Object.defineProperty(a, "_error", {
|
|
694
698
|
get: () => i
|
|
695
699
|
});
|
|
696
|
-
} else o._tracked ? (a = o,
|
|
700
|
+
} else o._tracked ? (a = o, l = "_error" in a ? P.error : "_data" in a ? P.success : P.pending) : (l = P.pending, Object.defineProperty(o, "_tracked", {
|
|
697
701
|
get: () => !0
|
|
698
702
|
}), a = o.then((i) => Object.defineProperty(o, "_data", {
|
|
699
703
|
get: () => i
|
|
700
704
|
}), (i) => Object.defineProperty(o, "_error", {
|
|
701
705
|
get: () => i
|
|
702
706
|
})));
|
|
703
|
-
if (
|
|
704
|
-
throw
|
|
705
|
-
if (
|
|
707
|
+
if (l === P.error && a._error instanceof Se)
|
|
708
|
+
throw tr;
|
|
709
|
+
if (l === P.error && !r)
|
|
706
710
|
throw a._error;
|
|
707
|
-
if (
|
|
708
|
-
return /* @__PURE__ */
|
|
711
|
+
if (l === P.error)
|
|
712
|
+
return /* @__PURE__ */ n.createElement(Z.Provider, {
|
|
709
713
|
value: a,
|
|
710
|
-
children:
|
|
714
|
+
children: r
|
|
711
715
|
});
|
|
712
|
-
if (
|
|
713
|
-
return /* @__PURE__ */
|
|
716
|
+
if (l === P.success)
|
|
717
|
+
return /* @__PURE__ */ n.createElement(Z.Provider, {
|
|
714
718
|
value: a,
|
|
715
719
|
children: t
|
|
716
720
|
});
|
|
717
721
|
throw a;
|
|
718
722
|
}
|
|
719
723
|
}
|
|
720
|
-
function
|
|
724
|
+
function nr(e) {
|
|
721
725
|
let {
|
|
722
726
|
children: t
|
|
723
|
-
} = e,
|
|
724
|
-
return /* @__PURE__ */
|
|
727
|
+
} = e, r = Ie(), o = typeof t == "function" ? t(r) : t;
|
|
728
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, o);
|
|
725
729
|
}
|
|
726
730
|
function W(e, t) {
|
|
727
731
|
t === void 0 && (t = []);
|
|
728
|
-
let
|
|
729
|
-
return
|
|
730
|
-
if (!/* @__PURE__ */
|
|
732
|
+
let r = [];
|
|
733
|
+
return n.Children.forEach(e, (o, a) => {
|
|
734
|
+
if (!/* @__PURE__ */ n.isValidElement(o))
|
|
731
735
|
return;
|
|
732
|
-
let
|
|
733
|
-
if (o.type ===
|
|
734
|
-
|
|
736
|
+
let l = [...t, a];
|
|
737
|
+
if (o.type === n.Fragment) {
|
|
738
|
+
r.push.apply(r, W(o.props.children, l));
|
|
735
739
|
return;
|
|
736
740
|
}
|
|
737
|
-
o.type !==
|
|
741
|
+
o.type !== Be && (process.env.NODE_ENV !== "production" ? m(!1, "[" + (typeof o.type == "string" ? o.type : o.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : m(!1)), !o.props.index || !o.props.children || (process.env.NODE_ENV !== "production" ? m(!1, "An index route cannot have child routes.") : m(!1));
|
|
738
742
|
let i = {
|
|
739
|
-
id: o.props.id ||
|
|
743
|
+
id: o.props.id || l.join("-"),
|
|
740
744
|
caseSensitive: o.props.caseSensitive,
|
|
741
745
|
element: o.props.element,
|
|
742
746
|
Component: o.props.Component,
|
|
@@ -751,11 +755,11 @@ function W(e, t) {
|
|
|
751
755
|
handle: o.props.handle,
|
|
752
756
|
lazy: o.props.lazy
|
|
753
757
|
};
|
|
754
|
-
o.props.children && (i.children = W(o.props.children,
|
|
755
|
-
}),
|
|
758
|
+
o.props.children && (i.children = W(o.props.children, l)), r.push(i);
|
|
759
|
+
}), r;
|
|
756
760
|
}
|
|
757
|
-
function
|
|
758
|
-
return
|
|
761
|
+
function St(e) {
|
|
762
|
+
return pt(e);
|
|
759
763
|
}
|
|
760
764
|
function me(e) {
|
|
761
765
|
let t = {
|
|
@@ -763,19 +767,19 @@ function me(e) {
|
|
|
763
767
|
// there if you change this -- please and thank you!
|
|
764
768
|
hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
|
|
765
769
|
};
|
|
766
|
-
return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" &&
|
|
767
|
-
element: /* @__PURE__ */
|
|
770
|
+
return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
|
|
771
|
+
element: /* @__PURE__ */ n.createElement(e.Component),
|
|
768
772
|
Component: void 0
|
|
769
|
-
})), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" &&
|
|
770
|
-
hydrateFallbackElement: /* @__PURE__ */
|
|
773
|
+
})), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
|
|
774
|
+
hydrateFallbackElement: /* @__PURE__ */ n.createElement(e.HydrateFallback),
|
|
771
775
|
HydrateFallback: void 0
|
|
772
|
-
})), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" &&
|
|
773
|
-
errorElement: /* @__PURE__ */
|
|
776
|
+
})), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
|
|
777
|
+
errorElement: /* @__PURE__ */ n.createElement(e.ErrorBoundary),
|
|
774
778
|
ErrorBoundary: void 0
|
|
775
779
|
})), t;
|
|
776
780
|
}
|
|
777
|
-
function
|
|
778
|
-
return
|
|
781
|
+
function _t(e, t) {
|
|
782
|
+
return _e({
|
|
779
783
|
basename: t == null ? void 0 : t.basename,
|
|
780
784
|
future: I({}, t == null ? void 0 : t.future, {
|
|
781
785
|
v7_prependBasename: !0
|
|
@@ -787,71 +791,72 @@ function St(e, t) {
|
|
|
787
791
|
hydrationData: t == null ? void 0 : t.hydrationData,
|
|
788
792
|
routes: e,
|
|
789
793
|
mapRouteProperties: me,
|
|
790
|
-
|
|
791
|
-
|
|
794
|
+
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
795
|
+
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation
|
|
792
796
|
}).initialize();
|
|
793
797
|
}
|
|
794
|
-
const
|
|
798
|
+
const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
795
799
|
__proto__: null,
|
|
796
800
|
AbortedDeferredError: Se,
|
|
797
|
-
Await:
|
|
798
|
-
MemoryRouter:
|
|
801
|
+
Await: Ct,
|
|
802
|
+
MemoryRouter: Nt,
|
|
799
803
|
Navigate: bt,
|
|
800
804
|
get NavigationType() {
|
|
801
805
|
return de;
|
|
802
806
|
},
|
|
803
807
|
Outlet: Rt,
|
|
804
|
-
Route:
|
|
808
|
+
Route: Be,
|
|
805
809
|
Router: H,
|
|
806
|
-
RouterProvider:
|
|
807
|
-
Routes:
|
|
810
|
+
RouterProvider: Zt,
|
|
811
|
+
Routes: wt,
|
|
808
812
|
UNSAFE_DataRouterContext: U,
|
|
809
|
-
UNSAFE_DataRouterStateContext:
|
|
810
|
-
UNSAFE_LocationContext:
|
|
813
|
+
UNSAFE_DataRouterStateContext: B,
|
|
814
|
+
UNSAFE_LocationContext: M,
|
|
811
815
|
UNSAFE_NavigationContext: S,
|
|
812
|
-
UNSAFE_RouteContext:
|
|
816
|
+
UNSAFE_RouteContext: _,
|
|
813
817
|
UNSAFE_mapRouteProperties: me,
|
|
814
818
|
UNSAFE_useRouteId: Fe,
|
|
815
819
|
UNSAFE_useRoutesImpl: pe,
|
|
816
|
-
createMemoryRouter:
|
|
820
|
+
createMemoryRouter: _t,
|
|
817
821
|
createPath: Q,
|
|
818
822
|
createRoutesFromChildren: W,
|
|
819
823
|
createRoutesFromElements: W,
|
|
820
824
|
defer: Ge,
|
|
821
825
|
generatePath: Xe,
|
|
822
|
-
isRouteErrorResponse:
|
|
826
|
+
isRouteErrorResponse: Ce,
|
|
823
827
|
json: Qe,
|
|
824
828
|
matchPath: X,
|
|
825
|
-
matchRoutes:
|
|
829
|
+
matchRoutes: we,
|
|
826
830
|
parsePath: fe,
|
|
827
831
|
redirect: Ze,
|
|
828
832
|
redirectDocument: et,
|
|
829
|
-
renderMatches:
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
+
renderMatches: St,
|
|
834
|
+
replace: tt,
|
|
835
|
+
resolvePath: rt,
|
|
836
|
+
useActionData: Et,
|
|
837
|
+
useAsyncError: yt,
|
|
833
838
|
useAsyncValue: Ie,
|
|
834
839
|
useBlocker: Ae,
|
|
835
840
|
useHref: De,
|
|
836
841
|
useInRouterContext: V,
|
|
837
|
-
useLoaderData:
|
|
842
|
+
useLoaderData: mt,
|
|
838
843
|
useLocation: L,
|
|
839
|
-
useMatch:
|
|
844
|
+
useMatch: lt,
|
|
840
845
|
useMatches: Ve,
|
|
841
846
|
useNavigate: te,
|
|
842
847
|
useNavigation: Ue,
|
|
843
|
-
useNavigationType:
|
|
848
|
+
useNavigationType: it,
|
|
844
849
|
useOutlet: Oe,
|
|
845
|
-
useOutletContext:
|
|
846
|
-
useParams:
|
|
850
|
+
useOutletContext: dt,
|
|
851
|
+
useParams: ft,
|
|
847
852
|
useResolvedPath: Y,
|
|
848
|
-
useRevalidator:
|
|
853
|
+
useRevalidator: ht,
|
|
849
854
|
useRouteError: ke,
|
|
850
|
-
useRouteLoaderData:
|
|
855
|
+
useRouteLoaderData: vt,
|
|
851
856
|
useRoutes: Pe
|
|
852
857
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
853
858
|
/**
|
|
854
|
-
* React Router DOM v6.
|
|
859
|
+
* React Router DOM v6.27.0
|
|
855
860
|
*
|
|
856
861
|
* Copyright (c) Remix Software Inc.
|
|
857
862
|
*
|
|
@@ -863,57 +868,57 @@ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
863
868
|
function D() {
|
|
864
869
|
return D = Object.assign ? Object.assign.bind() : function(e) {
|
|
865
870
|
for (var t = 1; t < arguments.length; t++) {
|
|
866
|
-
var
|
|
867
|
-
for (var o in
|
|
868
|
-
Object.prototype.hasOwnProperty.call(
|
|
871
|
+
var r = arguments[t];
|
|
872
|
+
for (var o in r)
|
|
873
|
+
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
869
874
|
}
|
|
870
875
|
return e;
|
|
871
876
|
}, D.apply(this, arguments);
|
|
872
877
|
}
|
|
873
|
-
function
|
|
878
|
+
function Me(e, t) {
|
|
874
879
|
if (e == null) return {};
|
|
875
|
-
var
|
|
876
|
-
for (
|
|
877
|
-
a = o[
|
|
878
|
-
return
|
|
880
|
+
var r = {}, o = Object.keys(e), a, l;
|
|
881
|
+
for (l = 0; l < o.length; l++)
|
|
882
|
+
a = o[l], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
|
|
883
|
+
return r;
|
|
879
884
|
}
|
|
880
|
-
const
|
|
885
|
+
const le = "get", se = "application/x-www-form-urlencoded";
|
|
881
886
|
function ve(e) {
|
|
882
887
|
return e != null && typeof e.tagName == "string";
|
|
883
888
|
}
|
|
884
|
-
function
|
|
889
|
+
function or(e) {
|
|
885
890
|
return ve(e) && e.tagName.toLowerCase() === "button";
|
|
886
891
|
}
|
|
887
|
-
function
|
|
892
|
+
function ar(e) {
|
|
888
893
|
return ve(e) && e.tagName.toLowerCase() === "form";
|
|
889
894
|
}
|
|
890
|
-
function
|
|
895
|
+
function ir(e) {
|
|
891
896
|
return ve(e) && e.tagName.toLowerCase() === "input";
|
|
892
897
|
}
|
|
893
|
-
function
|
|
898
|
+
function lr(e) {
|
|
894
899
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
895
900
|
}
|
|
896
|
-
function
|
|
901
|
+
function sr(e, t) {
|
|
897
902
|
return e.button === 0 && // Ignore everything but left clicks
|
|
898
903
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
899
|
-
!
|
|
904
|
+
!lr(e);
|
|
900
905
|
}
|
|
901
906
|
function ce(e) {
|
|
902
|
-
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t,
|
|
903
|
-
let o = e[
|
|
904
|
-
return t.concat(Array.isArray(o) ? o.map((a) => [
|
|
907
|
+
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
|
|
908
|
+
let o = e[r];
|
|
909
|
+
return t.concat(Array.isArray(o) ? o.map((a) => [r, a]) : [[r, o]]);
|
|
905
910
|
}, []));
|
|
906
911
|
}
|
|
907
|
-
function
|
|
908
|
-
let
|
|
912
|
+
function ur(e, t) {
|
|
913
|
+
let r = ce(e);
|
|
909
914
|
return t && t.forEach((o, a) => {
|
|
910
|
-
|
|
911
|
-
|
|
915
|
+
r.has(a) || t.getAll(a).forEach((l) => {
|
|
916
|
+
r.append(a, l);
|
|
912
917
|
});
|
|
913
|
-
}),
|
|
918
|
+
}), r;
|
|
914
919
|
}
|
|
915
920
|
let ae = null;
|
|
916
|
-
function
|
|
921
|
+
function cr() {
|
|
917
922
|
if (ae === null)
|
|
918
923
|
try {
|
|
919
924
|
new FormData(
|
|
@@ -926,51 +931,51 @@ function cn() {
|
|
|
926
931
|
}
|
|
927
932
|
return ae;
|
|
928
933
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
931
|
-
return e != null && !
|
|
934
|
+
const dr = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
935
|
+
function Ne(e) {
|
|
936
|
+
return e != null && !dr.has(e) ? (process.env.NODE_ENV !== "production" && C(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + se + '"')), null) : e;
|
|
932
937
|
}
|
|
933
|
-
function
|
|
934
|
-
let
|
|
935
|
-
if (
|
|
938
|
+
function fr(e, t) {
|
|
939
|
+
let r, o, a, l, i;
|
|
940
|
+
if (ar(e)) {
|
|
936
941
|
let u = e.getAttribute("action");
|
|
937
|
-
o = u ? T(u, t) : null,
|
|
938
|
-
} else if (
|
|
942
|
+
o = u ? T(u, t) : null, r = e.getAttribute("method") || le, a = Ne(e.getAttribute("enctype")) || se, l = new FormData(e);
|
|
943
|
+
} else if (or(e) || ir(e) && (e.type === "submit" || e.type === "image")) {
|
|
939
944
|
let u = e.form;
|
|
940
945
|
if (u == null)
|
|
941
946
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
942
|
-
let
|
|
943
|
-
if (o =
|
|
947
|
+
let f = e.getAttribute("formaction") || u.getAttribute("action");
|
|
948
|
+
if (o = f ? T(f, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || le, a = Ne(e.getAttribute("formenctype")) || Ne(u.getAttribute("enctype")) || se, l = new FormData(u, e), !cr()) {
|
|
944
949
|
let {
|
|
945
|
-
name:
|
|
950
|
+
name: s,
|
|
946
951
|
type: c,
|
|
947
|
-
value:
|
|
952
|
+
value: d
|
|
948
953
|
} = e;
|
|
949
954
|
if (c === "image") {
|
|
950
|
-
let p =
|
|
951
|
-
|
|
952
|
-
} else
|
|
955
|
+
let p = s ? s + "." : "";
|
|
956
|
+
l.append(p + "x", "0"), l.append(p + "y", "0");
|
|
957
|
+
} else s && l.append(s, d);
|
|
953
958
|
}
|
|
954
959
|
} else {
|
|
955
960
|
if (ve(e))
|
|
956
961
|
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
957
|
-
|
|
962
|
+
r = le, o = null, a = se, i = e;
|
|
958
963
|
}
|
|
959
|
-
return
|
|
964
|
+
return l && a === "text/plain" && (i = l, l = void 0), {
|
|
960
965
|
action: o,
|
|
961
|
-
method:
|
|
966
|
+
method: r.toLowerCase(),
|
|
962
967
|
encType: a,
|
|
963
|
-
formData:
|
|
968
|
+
formData: l,
|
|
964
969
|
body: i
|
|
965
970
|
};
|
|
966
971
|
}
|
|
967
|
-
const
|
|
972
|
+
const pr = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], hr = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], mr = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], vr = "6";
|
|
968
973
|
try {
|
|
969
|
-
window.__reactRouterVersion =
|
|
974
|
+
window.__reactRouterVersion = vr;
|
|
970
975
|
} catch {
|
|
971
976
|
}
|
|
972
|
-
function
|
|
973
|
-
return
|
|
977
|
+
function Er(e, t) {
|
|
978
|
+
return _e({
|
|
974
979
|
basename: t == null ? void 0 : t.basename,
|
|
975
980
|
future: D({}, t == null ? void 0 : t.future, {
|
|
976
981
|
v7_prependBasename: !0
|
|
@@ -978,429 +983,429 @@ function En(e, t) {
|
|
|
978
983
|
history: nt({
|
|
979
984
|
window: t == null ? void 0 : t.window
|
|
980
985
|
}),
|
|
981
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) ||
|
|
986
|
+
hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
|
|
982
987
|
routes: e,
|
|
983
988
|
mapRouteProperties: me,
|
|
984
|
-
|
|
985
|
-
|
|
989
|
+
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
990
|
+
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
|
|
986
991
|
window: t == null ? void 0 : t.window
|
|
987
992
|
}).initialize();
|
|
988
993
|
}
|
|
989
|
-
function
|
|
990
|
-
return
|
|
994
|
+
function yr(e, t) {
|
|
995
|
+
return _e({
|
|
991
996
|
basename: t == null ? void 0 : t.basename,
|
|
992
997
|
future: D({}, t == null ? void 0 : t.future, {
|
|
993
998
|
v7_prependBasename: !0
|
|
994
999
|
}),
|
|
995
|
-
history:
|
|
1000
|
+
history: ot({
|
|
996
1001
|
window: t == null ? void 0 : t.window
|
|
997
1002
|
}),
|
|
998
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) ||
|
|
1003
|
+
hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
|
|
999
1004
|
routes: e,
|
|
1000
1005
|
mapRouteProperties: me,
|
|
1001
|
-
|
|
1002
|
-
|
|
1006
|
+
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
1007
|
+
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
|
|
1003
1008
|
window: t == null ? void 0 : t.window
|
|
1004
1009
|
}).initialize();
|
|
1005
1010
|
}
|
|
1006
|
-
function
|
|
1011
|
+
function xt() {
|
|
1007
1012
|
var e;
|
|
1008
1013
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
1009
1014
|
return t && t.errors && (t = D({}, t, {
|
|
1010
|
-
errors:
|
|
1015
|
+
errors: gr(t.errors)
|
|
1011
1016
|
})), t;
|
|
1012
1017
|
}
|
|
1013
|
-
function
|
|
1018
|
+
function gr(e) {
|
|
1014
1019
|
if (!e) return null;
|
|
1015
|
-
let t = Object.entries(e),
|
|
1020
|
+
let t = Object.entries(e), r = {};
|
|
1016
1021
|
for (let [o, a] of t)
|
|
1017
1022
|
if (a && a.__type === "RouteErrorResponse")
|
|
1018
|
-
|
|
1023
|
+
r[o] = new at(a.status, a.statusText, a.data, a.internal === !0);
|
|
1019
1024
|
else if (a && a.__type === "Error") {
|
|
1020
1025
|
if (a.__subType) {
|
|
1021
|
-
let
|
|
1022
|
-
if (typeof
|
|
1026
|
+
let l = window[a.__subType];
|
|
1027
|
+
if (typeof l == "function")
|
|
1023
1028
|
try {
|
|
1024
|
-
let i = new
|
|
1025
|
-
i.stack = "",
|
|
1029
|
+
let i = new l(a.message);
|
|
1030
|
+
i.stack = "", r[o] = i;
|
|
1026
1031
|
} catch {
|
|
1027
1032
|
}
|
|
1028
1033
|
}
|
|
1029
|
-
if (
|
|
1030
|
-
let
|
|
1031
|
-
|
|
1034
|
+
if (r[o] == null) {
|
|
1035
|
+
let l = new Error(a.message);
|
|
1036
|
+
l.stack = "", r[o] = l;
|
|
1032
1037
|
}
|
|
1033
1038
|
} else
|
|
1034
|
-
|
|
1035
|
-
return
|
|
1039
|
+
r[o] = a;
|
|
1040
|
+
return r;
|
|
1036
1041
|
}
|
|
1037
|
-
const Ee = /* @__PURE__ */
|
|
1042
|
+
const Ee = /* @__PURE__ */ n.createContext({
|
|
1038
1043
|
isTransitioning: !1
|
|
1039
1044
|
});
|
|
1040
1045
|
process.env.NODE_ENV !== "production" && (Ee.displayName = "ViewTransition");
|
|
1041
|
-
const ye = /* @__PURE__ */
|
|
1046
|
+
const ye = /* @__PURE__ */ n.createContext(/* @__PURE__ */ new Map());
|
|
1042
1047
|
process.env.NODE_ENV !== "production" && (ye.displayName = "Fetchers");
|
|
1043
|
-
const
|
|
1044
|
-
function
|
|
1048
|
+
const Nr = "startTransition", A = n[Nr], br = "flushSync", Ye = Bt[br], Rr = "useId", $e = n[Rr];
|
|
1049
|
+
function wr(e) {
|
|
1045
1050
|
A ? A(e) : e();
|
|
1046
1051
|
}
|
|
1047
1052
|
function q(e) {
|
|
1048
1053
|
Ye ? Ye(e) : e();
|
|
1049
1054
|
}
|
|
1050
|
-
class
|
|
1055
|
+
class Cr {
|
|
1051
1056
|
constructor() {
|
|
1052
|
-
this.status = "pending", this.promise = new Promise((t,
|
|
1057
|
+
this.status = "pending", this.promise = new Promise((t, r) => {
|
|
1053
1058
|
this.resolve = (o) => {
|
|
1054
1059
|
this.status === "pending" && (this.status = "resolved", t(o));
|
|
1055
1060
|
}, this.reject = (o) => {
|
|
1056
|
-
this.status === "pending" && (this.status = "rejected",
|
|
1061
|
+
this.status === "pending" && (this.status = "rejected", r(o));
|
|
1057
1062
|
};
|
|
1058
1063
|
});
|
|
1059
1064
|
}
|
|
1060
1065
|
}
|
|
1061
|
-
function
|
|
1066
|
+
function Sr(e) {
|
|
1062
1067
|
let {
|
|
1063
1068
|
fallbackElement: t,
|
|
1064
|
-
router:
|
|
1069
|
+
router: r,
|
|
1065
1070
|
future: o
|
|
1066
|
-
} = e, [a,
|
|
1071
|
+
} = e, [a, l] = n.useState(r.state), [i, u] = n.useState(), [f, s] = n.useState({
|
|
1067
1072
|
isTransitioning: !1
|
|
1068
|
-
}), [c,
|
|
1069
|
-
v7_startTransition:
|
|
1070
|
-
} = o || {}, h =
|
|
1071
|
-
|
|
1072
|
-
}, [
|
|
1073
|
+
}), [c, d] = n.useState(), [p, v] = n.useState(), [g, N] = n.useState(), y = n.useRef(/* @__PURE__ */ new Map()), {
|
|
1074
|
+
v7_startTransition: w
|
|
1075
|
+
} = o || {}, h = n.useCallback((R) => {
|
|
1076
|
+
w ? wr(R) : R();
|
|
1077
|
+
}, [w]), E = n.useCallback((R, F) => {
|
|
1073
1078
|
let {
|
|
1074
1079
|
deletedFetchers: x,
|
|
1075
|
-
|
|
1076
|
-
|
|
1080
|
+
flushSync: oe,
|
|
1081
|
+
viewTransitionOpts: K
|
|
1077
1082
|
} = F;
|
|
1078
|
-
x.forEach((z) => y.current.delete(z)),
|
|
1079
|
-
z.data !== void 0 && y.current.set(
|
|
1083
|
+
x.forEach((z) => y.current.delete(z)), R.fetchers.forEach((z, At) => {
|
|
1084
|
+
z.data !== void 0 && y.current.set(At, z.data);
|
|
1080
1085
|
});
|
|
1081
|
-
let
|
|
1082
|
-
if (!K ||
|
|
1083
|
-
oe ? q(() =>
|
|
1086
|
+
let It = r.window == null || r.window.document == null || typeof r.window.document.startViewTransition != "function";
|
|
1087
|
+
if (!K || It) {
|
|
1088
|
+
oe ? q(() => l(R)) : h(() => l(R));
|
|
1084
1089
|
return;
|
|
1085
1090
|
}
|
|
1086
1091
|
if (oe) {
|
|
1087
1092
|
q(() => {
|
|
1088
|
-
p && (c && c.resolve(), p.skipTransition()),
|
|
1093
|
+
p && (c && c.resolve(), p.skipTransition()), s({
|
|
1089
1094
|
isTransitioning: !0,
|
|
1090
1095
|
flushSync: !0,
|
|
1091
1096
|
currentLocation: K.currentLocation,
|
|
1092
1097
|
nextLocation: K.nextLocation
|
|
1093
1098
|
});
|
|
1094
1099
|
});
|
|
1095
|
-
let z =
|
|
1096
|
-
q(() =>
|
|
1100
|
+
let z = r.window.document.startViewTransition(() => {
|
|
1101
|
+
q(() => l(R));
|
|
1097
1102
|
});
|
|
1098
1103
|
z.finished.finally(() => {
|
|
1099
1104
|
q(() => {
|
|
1100
|
-
|
|
1105
|
+
d(void 0), v(void 0), u(void 0), s({
|
|
1101
1106
|
isTransitioning: !1
|
|
1102
1107
|
});
|
|
1103
1108
|
});
|
|
1104
1109
|
}), q(() => v(z));
|
|
1105
1110
|
return;
|
|
1106
1111
|
}
|
|
1107
|
-
p ? (c && c.resolve(), p.skipTransition(),
|
|
1108
|
-
state:
|
|
1112
|
+
p ? (c && c.resolve(), p.skipTransition(), N({
|
|
1113
|
+
state: R,
|
|
1109
1114
|
currentLocation: K.currentLocation,
|
|
1110
1115
|
nextLocation: K.nextLocation
|
|
1111
|
-
})) : (u(
|
|
1116
|
+
})) : (u(R), s({
|
|
1112
1117
|
isTransitioning: !0,
|
|
1113
1118
|
flushSync: !1,
|
|
1114
1119
|
currentLocation: K.currentLocation,
|
|
1115
1120
|
nextLocation: K.nextLocation
|
|
1116
1121
|
}));
|
|
1117
|
-
}, [
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}, [
|
|
1121
|
-
if (c && i &&
|
|
1122
|
-
let
|
|
1123
|
-
h(() =>
|
|
1122
|
+
}, [r.window, p, c, y, h]);
|
|
1123
|
+
n.useLayoutEffect(() => r.subscribe(E), [r, E]), n.useEffect(() => {
|
|
1124
|
+
f.isTransitioning && !f.flushSync && d(new Cr());
|
|
1125
|
+
}, [f]), n.useEffect(() => {
|
|
1126
|
+
if (c && i && r.window) {
|
|
1127
|
+
let R = i, F = c.promise, x = r.window.document.startViewTransition(async () => {
|
|
1128
|
+
h(() => l(R)), await F;
|
|
1124
1129
|
});
|
|
1125
1130
|
x.finished.finally(() => {
|
|
1126
|
-
|
|
1131
|
+
d(void 0), v(void 0), u(void 0), s({
|
|
1127
1132
|
isTransitioning: !1
|
|
1128
1133
|
});
|
|
1129
1134
|
}), v(x);
|
|
1130
1135
|
}
|
|
1131
|
-
}, [h, i, c,
|
|
1136
|
+
}, [h, i, c, r.window]), n.useEffect(() => {
|
|
1132
1137
|
c && i && a.location.key === i.location.key && c.resolve();
|
|
1133
|
-
}, [c, p, a.location, i]),
|
|
1134
|
-
!
|
|
1138
|
+
}, [c, p, a.location, i]), n.useEffect(() => {
|
|
1139
|
+
!f.isTransitioning && g && (u(g.state), s({
|
|
1135
1140
|
isTransitioning: !0,
|
|
1136
1141
|
flushSync: !1,
|
|
1137
1142
|
currentLocation: g.currentLocation,
|
|
1138
1143
|
nextLocation: g.nextLocation
|
|
1139
|
-
}),
|
|
1140
|
-
}, [
|
|
1141
|
-
process.env.NODE_ENV !== "production" &&
|
|
1144
|
+
}), N(void 0));
|
|
1145
|
+
}, [f.isTransitioning, g]), n.useEffect(() => {
|
|
1146
|
+
process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
1142
1147
|
}, []);
|
|
1143
|
-
let
|
|
1144
|
-
createHref:
|
|
1145
|
-
encodeLocation:
|
|
1146
|
-
go: (
|
|
1147
|
-
push: (
|
|
1148
|
+
let b = n.useMemo(() => ({
|
|
1149
|
+
createHref: r.createHref,
|
|
1150
|
+
encodeLocation: r.encodeLocation,
|
|
1151
|
+
go: (R) => r.navigate(R),
|
|
1152
|
+
push: (R, F, x) => r.navigate(R, {
|
|
1148
1153
|
state: F,
|
|
1149
1154
|
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1150
1155
|
}),
|
|
1151
|
-
replace: (
|
|
1156
|
+
replace: (R, F, x) => r.navigate(R, {
|
|
1152
1157
|
replace: !0,
|
|
1153
1158
|
state: F,
|
|
1154
1159
|
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1155
1160
|
})
|
|
1156
|
-
}), [
|
|
1157
|
-
router:
|
|
1158
|
-
navigator:
|
|
1161
|
+
}), [r]), k = r.basename || "/", J = n.useMemo(() => ({
|
|
1162
|
+
router: r,
|
|
1163
|
+
navigator: b,
|
|
1159
1164
|
static: !1,
|
|
1160
1165
|
basename: k
|
|
1161
|
-
}), [
|
|
1162
|
-
v7_relativeSplatPath:
|
|
1163
|
-
}), [
|
|
1164
|
-
return /* @__PURE__ */
|
|
1166
|
+
}), [r, b, k]), ne = n.useMemo(() => ({
|
|
1167
|
+
v7_relativeSplatPath: r.future.v7_relativeSplatPath
|
|
1168
|
+
}), [r.future.v7_relativeSplatPath]);
|
|
1169
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
|
|
1165
1170
|
value: J
|
|
1166
|
-
}, /* @__PURE__ */
|
|
1171
|
+
}, /* @__PURE__ */ n.createElement(B.Provider, {
|
|
1167
1172
|
value: a
|
|
1168
|
-
}, /* @__PURE__ */
|
|
1173
|
+
}, /* @__PURE__ */ n.createElement(ye.Provider, {
|
|
1169
1174
|
value: y.current
|
|
1170
|
-
}, /* @__PURE__ */
|
|
1171
|
-
value:
|
|
1172
|
-
}, /* @__PURE__ */
|
|
1175
|
+
}, /* @__PURE__ */ n.createElement(Ee.Provider, {
|
|
1176
|
+
value: f
|
|
1177
|
+
}, /* @__PURE__ */ n.createElement(H, {
|
|
1173
1178
|
basename: k,
|
|
1174
1179
|
location: a.location,
|
|
1175
1180
|
navigationType: a.historyAction,
|
|
1176
|
-
navigator:
|
|
1177
|
-
future:
|
|
1178
|
-
}, a.initialized ||
|
|
1179
|
-
routes:
|
|
1180
|
-
future:
|
|
1181
|
+
navigator: b,
|
|
1182
|
+
future: ne
|
|
1183
|
+
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(_r, {
|
|
1184
|
+
routes: r.routes,
|
|
1185
|
+
future: r.future,
|
|
1181
1186
|
state: a
|
|
1182
1187
|
}) : t))))), null);
|
|
1183
1188
|
}
|
|
1184
|
-
const
|
|
1185
|
-
function
|
|
1189
|
+
const _r = /* @__PURE__ */ n.memo(xr);
|
|
1190
|
+
function xr(e) {
|
|
1186
1191
|
let {
|
|
1187
1192
|
routes: t,
|
|
1188
|
-
future:
|
|
1193
|
+
future: r,
|
|
1189
1194
|
state: o
|
|
1190
1195
|
} = e;
|
|
1191
|
-
return pe(t, void 0, o,
|
|
1196
|
+
return pe(t, void 0, o, r);
|
|
1192
1197
|
}
|
|
1193
|
-
function
|
|
1198
|
+
function Dr(e) {
|
|
1194
1199
|
let {
|
|
1195
1200
|
basename: t,
|
|
1196
|
-
children:
|
|
1201
|
+
children: r,
|
|
1197
1202
|
future: o,
|
|
1198
1203
|
window: a
|
|
1199
|
-
} = e,
|
|
1200
|
-
|
|
1204
|
+
} = e, l = n.useRef();
|
|
1205
|
+
l.current == null && (l.current = nt({
|
|
1201
1206
|
window: a,
|
|
1202
1207
|
v5Compat: !0
|
|
1203
1208
|
}));
|
|
1204
|
-
let i =
|
|
1209
|
+
let i = l.current, [u, f] = n.useState({
|
|
1205
1210
|
action: i.action,
|
|
1206
1211
|
location: i.location
|
|
1207
1212
|
}), {
|
|
1208
|
-
v7_startTransition:
|
|
1209
|
-
} = o || {}, c =
|
|
1210
|
-
|
|
1211
|
-
}, [
|
|
1212
|
-
return
|
|
1213
|
+
v7_startTransition: s
|
|
1214
|
+
} = o || {}, c = n.useCallback((d) => {
|
|
1215
|
+
s && A ? A(() => f(d)) : f(d);
|
|
1216
|
+
}, [f, s]);
|
|
1217
|
+
return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
|
|
1213
1218
|
basename: t,
|
|
1214
|
-
children:
|
|
1219
|
+
children: r,
|
|
1215
1220
|
location: u.location,
|
|
1216
1221
|
navigationType: u.action,
|
|
1217
1222
|
navigator: i,
|
|
1218
1223
|
future: o
|
|
1219
1224
|
});
|
|
1220
1225
|
}
|
|
1221
|
-
function
|
|
1226
|
+
function Or(e) {
|
|
1222
1227
|
let {
|
|
1223
1228
|
basename: t,
|
|
1224
|
-
children:
|
|
1229
|
+
children: r,
|
|
1225
1230
|
future: o,
|
|
1226
1231
|
window: a
|
|
1227
|
-
} = e,
|
|
1228
|
-
|
|
1232
|
+
} = e, l = n.useRef();
|
|
1233
|
+
l.current == null && (l.current = ot({
|
|
1229
1234
|
window: a,
|
|
1230
1235
|
v5Compat: !0
|
|
1231
1236
|
}));
|
|
1232
|
-
let i =
|
|
1237
|
+
let i = l.current, [u, f] = n.useState({
|
|
1233
1238
|
action: i.action,
|
|
1234
1239
|
location: i.location
|
|
1235
1240
|
}), {
|
|
1236
|
-
v7_startTransition:
|
|
1237
|
-
} = o || {}, c =
|
|
1238
|
-
|
|
1239
|
-
}, [
|
|
1240
|
-
return
|
|
1241
|
+
v7_startTransition: s
|
|
1242
|
+
} = o || {}, c = n.useCallback((d) => {
|
|
1243
|
+
s && A ? A(() => f(d)) : f(d);
|
|
1244
|
+
}, [f, s]);
|
|
1245
|
+
return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
|
|
1241
1246
|
basename: t,
|
|
1242
|
-
children:
|
|
1247
|
+
children: r,
|
|
1243
1248
|
location: u.location,
|
|
1244
1249
|
navigationType: u.action,
|
|
1245
1250
|
navigator: i,
|
|
1246
1251
|
future: o
|
|
1247
1252
|
});
|
|
1248
1253
|
}
|
|
1249
|
-
function
|
|
1254
|
+
function Dt(e) {
|
|
1250
1255
|
let {
|
|
1251
1256
|
basename: t,
|
|
1252
|
-
children:
|
|
1257
|
+
children: r,
|
|
1253
1258
|
future: o,
|
|
1254
1259
|
history: a
|
|
1255
|
-
} = e, [
|
|
1260
|
+
} = e, [l, i] = n.useState({
|
|
1256
1261
|
action: a.action,
|
|
1257
1262
|
location: a.location
|
|
1258
1263
|
}), {
|
|
1259
1264
|
v7_startTransition: u
|
|
1260
|
-
} = o || {},
|
|
1261
|
-
u && A ? A(() => i(
|
|
1265
|
+
} = o || {}, f = n.useCallback((s) => {
|
|
1266
|
+
u && A ? A(() => i(s)) : i(s);
|
|
1262
1267
|
}, [i, u]);
|
|
1263
|
-
return
|
|
1268
|
+
return n.useLayoutEffect(() => a.listen(f), [a, f]), /* @__PURE__ */ n.createElement(H, {
|
|
1264
1269
|
basename: t,
|
|
1265
|
-
children:
|
|
1266
|
-
location:
|
|
1267
|
-
navigationType:
|
|
1270
|
+
children: r,
|
|
1271
|
+
location: l.location,
|
|
1272
|
+
navigationType: l.action,
|
|
1268
1273
|
navigator: a,
|
|
1269
1274
|
future: o
|
|
1270
1275
|
});
|
|
1271
1276
|
}
|
|
1272
|
-
process.env.NODE_ENV !== "production" && (
|
|
1273
|
-
const
|
|
1277
|
+
process.env.NODE_ENV !== "production" && (Dt.displayName = "unstable_HistoryRouter");
|
|
1278
|
+
const Pr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Lr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ n.forwardRef(function(t, r) {
|
|
1274
1279
|
let {
|
|
1275
1280
|
onClick: o,
|
|
1276
1281
|
relative: a,
|
|
1277
|
-
reloadDocument:
|
|
1282
|
+
reloadDocument: l,
|
|
1278
1283
|
replace: i,
|
|
1279
1284
|
state: u,
|
|
1280
|
-
target:
|
|
1281
|
-
to:
|
|
1285
|
+
target: f,
|
|
1286
|
+
to: s,
|
|
1282
1287
|
preventScrollReset: c,
|
|
1283
|
-
|
|
1284
|
-
} = t, p =
|
|
1288
|
+
viewTransition: d
|
|
1289
|
+
} = t, p = Me(t, pr), {
|
|
1285
1290
|
basename: v
|
|
1286
|
-
} =
|
|
1287
|
-
if (typeof
|
|
1291
|
+
} = n.useContext(S), g, N = !1;
|
|
1292
|
+
if (typeof s == "string" && Lr.test(s) && (g = s, Pr))
|
|
1288
1293
|
try {
|
|
1289
|
-
let E = new URL(window.location.href),
|
|
1290
|
-
|
|
1294
|
+
let E = new URL(window.location.href), b = s.startsWith("//") ? new URL(E.protocol + s) : new URL(s), k = T(b.pathname, v);
|
|
1295
|
+
b.origin === E.origin && k != null ? s = k + b.search + b.hash : N = !0;
|
|
1291
1296
|
} catch {
|
|
1292
|
-
process.env.NODE_ENV !== "production" &&
|
|
1297
|
+
process.env.NODE_ENV !== "production" && C(!1, '<Link to="' + s + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1293
1298
|
}
|
|
1294
|
-
let y = De(
|
|
1299
|
+
let y = De(s, {
|
|
1295
1300
|
relative: a
|
|
1296
|
-
}),
|
|
1301
|
+
}), w = Tt(s, {
|
|
1297
1302
|
replace: i,
|
|
1298
1303
|
state: u,
|
|
1299
|
-
target:
|
|
1304
|
+
target: f,
|
|
1300
1305
|
preventScrollReset: c,
|
|
1301
1306
|
relative: a,
|
|
1302
|
-
|
|
1307
|
+
viewTransition: d
|
|
1303
1308
|
});
|
|
1304
1309
|
function h(E) {
|
|
1305
|
-
o && o(E), E.defaultPrevented ||
|
|
1310
|
+
o && o(E), E.defaultPrevented || w(E);
|
|
1306
1311
|
}
|
|
1307
1312
|
return (
|
|
1308
1313
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1309
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ n.createElement("a", D({}, p, {
|
|
1310
1315
|
href: g || y,
|
|
1311
|
-
onClick:
|
|
1312
|
-
ref:
|
|
1313
|
-
target:
|
|
1316
|
+
onClick: N || l ? o : h,
|
|
1317
|
+
ref: r,
|
|
1318
|
+
target: f
|
|
1314
1319
|
}))
|
|
1315
1320
|
);
|
|
1316
1321
|
});
|
|
1317
1322
|
process.env.NODE_ENV !== "production" && (je.displayName = "Link");
|
|
1318
|
-
const
|
|
1323
|
+
const Ot = /* @__PURE__ */ n.forwardRef(function(t, r) {
|
|
1319
1324
|
let {
|
|
1320
1325
|
"aria-current": o = "page",
|
|
1321
1326
|
caseSensitive: a = !1,
|
|
1322
|
-
className:
|
|
1327
|
+
className: l = "",
|
|
1323
1328
|
end: i = !1,
|
|
1324
1329
|
style: u,
|
|
1325
|
-
to:
|
|
1326
|
-
|
|
1330
|
+
to: f,
|
|
1331
|
+
viewTransition: s,
|
|
1327
1332
|
children: c
|
|
1328
|
-
} = t,
|
|
1329
|
-
relative:
|
|
1330
|
-
}), v = L(), g =
|
|
1331
|
-
navigator:
|
|
1333
|
+
} = t, d = Me(t, hr), p = Y(f, {
|
|
1334
|
+
relative: d.relative
|
|
1335
|
+
}), v = L(), g = n.useContext(B), {
|
|
1336
|
+
navigator: N,
|
|
1332
1337
|
basename: y
|
|
1333
|
-
} =
|
|
1338
|
+
} = n.useContext(S), w = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1334
1339
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1335
|
-
|
|
1336
|
-
a || (E = E.toLowerCase(),
|
|
1340
|
+
kt(p) && s === !0, h = N.encodeLocation ? N.encodeLocation(p).pathname : p.pathname, E = v.pathname, b = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
|
|
1341
|
+
a || (E = E.toLowerCase(), b = b ? b.toLowerCase() : null, h = h.toLowerCase()), b && y && (b = T(b, y) || b);
|
|
1337
1342
|
const k = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
1338
|
-
let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/",
|
|
1343
|
+
let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/", ne = b != null && (b === h || !i && b.startsWith(h) && b.charAt(h.length) === "/"), R = {
|
|
1339
1344
|
isActive: J,
|
|
1340
|
-
isPending:
|
|
1341
|
-
isTransitioning:
|
|
1345
|
+
isPending: ne,
|
|
1346
|
+
isTransitioning: w
|
|
1342
1347
|
}, F = J ? o : void 0, x;
|
|
1343
|
-
typeof
|
|
1344
|
-
let oe = typeof u == "function" ? u(
|
|
1345
|
-
return /* @__PURE__ */
|
|
1348
|
+
typeof l == "function" ? x = l(R) : x = [l, J ? "active" : null, ne ? "pending" : null, w ? "transitioning" : null].filter(Boolean).join(" ");
|
|
1349
|
+
let oe = typeof u == "function" ? u(R) : u;
|
|
1350
|
+
return /* @__PURE__ */ n.createElement(je, D({}, d, {
|
|
1346
1351
|
"aria-current": F,
|
|
1347
1352
|
className: x,
|
|
1348
|
-
ref:
|
|
1353
|
+
ref: r,
|
|
1349
1354
|
style: oe,
|
|
1350
|
-
to:
|
|
1351
|
-
|
|
1352
|
-
}), typeof c == "function" ? c(
|
|
1355
|
+
to: f,
|
|
1356
|
+
viewTransition: s
|
|
1357
|
+
}), typeof c == "function" ? c(R) : c);
|
|
1353
1358
|
});
|
|
1354
|
-
process.env.NODE_ENV !== "production" && (
|
|
1355
|
-
const He = /* @__PURE__ */
|
|
1359
|
+
process.env.NODE_ENV !== "production" && (Ot.displayName = "NavLink");
|
|
1360
|
+
const He = /* @__PURE__ */ n.forwardRef((e, t) => {
|
|
1356
1361
|
let {
|
|
1357
|
-
fetcherKey:
|
|
1362
|
+
fetcherKey: r,
|
|
1358
1363
|
navigate: o,
|
|
1359
1364
|
reloadDocument: a,
|
|
1360
|
-
replace:
|
|
1365
|
+
replace: l,
|
|
1361
1366
|
state: i,
|
|
1362
|
-
method: u =
|
|
1363
|
-
action:
|
|
1364
|
-
onSubmit:
|
|
1367
|
+
method: u = le,
|
|
1368
|
+
action: f,
|
|
1369
|
+
onSubmit: s,
|
|
1365
1370
|
relative: c,
|
|
1366
|
-
preventScrollReset:
|
|
1367
|
-
|
|
1368
|
-
} = e, v =
|
|
1371
|
+
preventScrollReset: d,
|
|
1372
|
+
viewTransition: p
|
|
1373
|
+
} = e, v = Me(e, mr), g = ze(), N = Ut(f, {
|
|
1369
1374
|
relative: c
|
|
1370
|
-
}), y = u.toLowerCase() === "get" ? "get" : "post",
|
|
1371
|
-
if (
|
|
1375
|
+
}), y = u.toLowerCase() === "get" ? "get" : "post", w = (h) => {
|
|
1376
|
+
if (s && s(h), h.defaultPrevented) return;
|
|
1372
1377
|
h.preventDefault();
|
|
1373
|
-
let E = h.nativeEvent.submitter,
|
|
1378
|
+
let E = h.nativeEvent.submitter, b = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
|
|
1374
1379
|
g(E || h.currentTarget, {
|
|
1375
|
-
fetcherKey:
|
|
1376
|
-
method:
|
|
1380
|
+
fetcherKey: r,
|
|
1381
|
+
method: b,
|
|
1377
1382
|
navigate: o,
|
|
1378
|
-
replace:
|
|
1383
|
+
replace: l,
|
|
1379
1384
|
state: i,
|
|
1380
1385
|
relative: c,
|
|
1381
|
-
preventScrollReset:
|
|
1382
|
-
|
|
1386
|
+
preventScrollReset: d,
|
|
1387
|
+
viewTransition: p
|
|
1383
1388
|
});
|
|
1384
1389
|
};
|
|
1385
|
-
return /* @__PURE__ */
|
|
1390
|
+
return /* @__PURE__ */ n.createElement("form", D({
|
|
1386
1391
|
ref: t,
|
|
1387
1392
|
method: y,
|
|
1388
|
-
action:
|
|
1389
|
-
onSubmit: a ?
|
|
1393
|
+
action: N,
|
|
1394
|
+
onSubmit: a ? s : w
|
|
1390
1395
|
}, v));
|
|
1391
1396
|
});
|
|
1392
1397
|
process.env.NODE_ENV !== "production" && (He.displayName = "Form");
|
|
1393
|
-
function
|
|
1398
|
+
function Pt(e) {
|
|
1394
1399
|
let {
|
|
1395
1400
|
getKey: t,
|
|
1396
|
-
storageKey:
|
|
1401
|
+
storageKey: r
|
|
1397
1402
|
} = e;
|
|
1398
|
-
return
|
|
1403
|
+
return Vt({
|
|
1399
1404
|
getKey: t,
|
|
1400
|
-
storageKey:
|
|
1405
|
+
storageKey: r
|
|
1401
1406
|
}), null;
|
|
1402
1407
|
}
|
|
1403
|
-
process.env.NODE_ENV !== "production" && (
|
|
1408
|
+
process.env.NODE_ENV !== "production" && (Pt.displayName = "ScrollRestoration");
|
|
1404
1409
|
var $;
|
|
1405
1410
|
(function(e) {
|
|
1406
1411
|
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
@@ -1409,204 +1414,208 @@ var ee;
|
|
|
1409
1414
|
(function(e) {
|
|
1410
1415
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1411
1416
|
})(ee || (ee = {}));
|
|
1412
|
-
function
|
|
1417
|
+
function Lt(e) {
|
|
1413
1418
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1414
1419
|
}
|
|
1415
1420
|
function ge(e) {
|
|
1416
|
-
let t =
|
|
1417
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1,
|
|
1421
|
+
let t = n.useContext(U);
|
|
1422
|
+
return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
|
|
1418
1423
|
}
|
|
1419
1424
|
function Ke(e) {
|
|
1420
|
-
let t =
|
|
1421
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1,
|
|
1425
|
+
let t = n.useContext(B);
|
|
1426
|
+
return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
|
|
1422
1427
|
}
|
|
1423
|
-
function
|
|
1428
|
+
function Tt(e, t) {
|
|
1424
1429
|
let {
|
|
1425
|
-
target:
|
|
1430
|
+
target: r,
|
|
1426
1431
|
replace: o,
|
|
1427
1432
|
state: a,
|
|
1428
|
-
preventScrollReset:
|
|
1433
|
+
preventScrollReset: l,
|
|
1429
1434
|
relative: i,
|
|
1430
|
-
|
|
1431
|
-
} = t === void 0 ? {} : t,
|
|
1435
|
+
viewTransition: u
|
|
1436
|
+
} = t === void 0 ? {} : t, f = te(), s = L(), c = Y(e, {
|
|
1432
1437
|
relative: i
|
|
1433
1438
|
});
|
|
1434
|
-
return
|
|
1435
|
-
if (
|
|
1436
|
-
|
|
1437
|
-
let p = o !== void 0 ? o : Q(
|
|
1438
|
-
|
|
1439
|
+
return n.useCallback((d) => {
|
|
1440
|
+
if (sr(d, r)) {
|
|
1441
|
+
d.preventDefault();
|
|
1442
|
+
let p = o !== void 0 ? o : Q(s) === Q(c);
|
|
1443
|
+
f(e, {
|
|
1439
1444
|
replace: p,
|
|
1440
1445
|
state: a,
|
|
1441
|
-
preventScrollReset:
|
|
1446
|
+
preventScrollReset: l,
|
|
1442
1447
|
relative: i,
|
|
1443
|
-
|
|
1448
|
+
viewTransition: u
|
|
1444
1449
|
});
|
|
1445
1450
|
}
|
|
1446
|
-
}, [
|
|
1451
|
+
}, [s, f, c, o, a, r, e, l, i, u]);
|
|
1447
1452
|
}
|
|
1448
|
-
function
|
|
1449
|
-
process.env.NODE_ENV !== "production" &&
|
|
1450
|
-
let t =
|
|
1453
|
+
function Tr(e) {
|
|
1454
|
+
process.env.NODE_ENV !== "production" && C(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
|
|
1455
|
+
let t = n.useRef(ce(e)), r = n.useRef(!1), o = L(), a = n.useMemo(() => (
|
|
1451
1456
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1452
1457
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
1453
1458
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
1454
|
-
|
|
1455
|
-
), [o.search]),
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
}, [
|
|
1459
|
+
ur(o.search, r.current ? null : t.current)
|
|
1460
|
+
), [o.search]), l = te(), i = n.useCallback((u, f) => {
|
|
1461
|
+
const s = ce(typeof u == "function" ? u(a) : u);
|
|
1462
|
+
r.current = !0, l("?" + s, f);
|
|
1463
|
+
}, [l, a]);
|
|
1459
1464
|
return [a, i];
|
|
1460
1465
|
}
|
|
1461
|
-
function
|
|
1466
|
+
function Fr() {
|
|
1462
1467
|
if (typeof document > "u")
|
|
1463
1468
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1464
1469
|
}
|
|
1465
|
-
let
|
|
1470
|
+
let Ur = 0, Ft = () => "__" + String(++Ur) + "__";
|
|
1466
1471
|
function ze() {
|
|
1467
1472
|
let {
|
|
1468
1473
|
router: e
|
|
1469
1474
|
} = ge($.UseSubmit), {
|
|
1470
1475
|
basename: t
|
|
1471
|
-
} =
|
|
1472
|
-
return
|
|
1473
|
-
a === void 0 && (a = {}),
|
|
1476
|
+
} = n.useContext(S), r = Fe();
|
|
1477
|
+
return n.useCallback(function(o, a) {
|
|
1478
|
+
a === void 0 && (a = {}), Fr();
|
|
1474
1479
|
let {
|
|
1475
|
-
action:
|
|
1480
|
+
action: l,
|
|
1476
1481
|
method: i,
|
|
1477
1482
|
encType: u,
|
|
1478
|
-
formData:
|
|
1479
|
-
body:
|
|
1480
|
-
} =
|
|
1483
|
+
formData: f,
|
|
1484
|
+
body: s
|
|
1485
|
+
} = fr(o, t);
|
|
1481
1486
|
if (a.navigate === !1) {
|
|
1482
|
-
let c = a.fetcherKey ||
|
|
1483
|
-
e.fetch(c,
|
|
1487
|
+
let c = a.fetcherKey || Ft();
|
|
1488
|
+
e.fetch(c, r, a.action || l, {
|
|
1484
1489
|
preventScrollReset: a.preventScrollReset,
|
|
1485
|
-
formData:
|
|
1486
|
-
body:
|
|
1490
|
+
formData: f,
|
|
1491
|
+
body: s,
|
|
1487
1492
|
formMethod: a.method || i,
|
|
1488
1493
|
formEncType: a.encType || u,
|
|
1489
|
-
|
|
1494
|
+
flushSync: a.flushSync
|
|
1490
1495
|
});
|
|
1491
1496
|
} else
|
|
1492
|
-
e.navigate(a.action ||
|
|
1497
|
+
e.navigate(a.action || l, {
|
|
1493
1498
|
preventScrollReset: a.preventScrollReset,
|
|
1494
|
-
formData:
|
|
1495
|
-
body:
|
|
1499
|
+
formData: f,
|
|
1500
|
+
body: s,
|
|
1496
1501
|
formMethod: a.method || i,
|
|
1497
1502
|
formEncType: a.encType || u,
|
|
1498
1503
|
replace: a.replace,
|
|
1499
1504
|
state: a.state,
|
|
1500
|
-
fromRouteId:
|
|
1501
|
-
|
|
1502
|
-
|
|
1505
|
+
fromRouteId: r,
|
|
1506
|
+
flushSync: a.flushSync,
|
|
1507
|
+
viewTransition: a.viewTransition
|
|
1503
1508
|
});
|
|
1504
|
-
}, [e, t,
|
|
1509
|
+
}, [e, t, r]);
|
|
1505
1510
|
}
|
|
1506
|
-
function
|
|
1511
|
+
function Ut(e, t) {
|
|
1507
1512
|
let {
|
|
1508
|
-
relative:
|
|
1513
|
+
relative: r
|
|
1509
1514
|
} = t === void 0 ? {} : t, {
|
|
1510
1515
|
basename: o
|
|
1511
|
-
} =
|
|
1516
|
+
} = n.useContext(S), a = n.useContext(_);
|
|
1512
1517
|
a || (process.env.NODE_ENV !== "production" ? m(!1, "useFormAction must be used inside a RouteContext") : m(!1));
|
|
1513
|
-
let [
|
|
1514
|
-
relative:
|
|
1518
|
+
let [l] = a.matches.slice(-1), i = D({}, Y(e || ".", {
|
|
1519
|
+
relative: r
|
|
1515
1520
|
})), u = L();
|
|
1516
1521
|
if (e == null) {
|
|
1517
1522
|
i.search = u.search;
|
|
1518
|
-
let
|
|
1519
|
-
|
|
1523
|
+
let f = new URLSearchParams(i.search), s = f.getAll("index");
|
|
1524
|
+
if (s.some((d) => d === "")) {
|
|
1525
|
+
f.delete("index"), s.filter((p) => p).forEach((p) => f.append("index", p));
|
|
1526
|
+
let d = f.toString();
|
|
1527
|
+
i.search = d ? "?" + d : "";
|
|
1528
|
+
}
|
|
1520
1529
|
}
|
|
1521
|
-
return (!e || e === ".") &&
|
|
1530
|
+
return (!e || e === ".") && l.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : G([o, i.pathname])), Q(i);
|
|
1522
1531
|
}
|
|
1523
|
-
function
|
|
1532
|
+
function Vr(e) {
|
|
1524
1533
|
var t;
|
|
1525
1534
|
let {
|
|
1526
|
-
key:
|
|
1535
|
+
key: r
|
|
1527
1536
|
} = e === void 0 ? {} : e, {
|
|
1528
1537
|
router: o
|
|
1529
|
-
} = ge($.UseFetcher), a = Ke(ee.UseFetcher),
|
|
1530
|
-
|
|
1531
|
-
let
|
|
1532
|
-
|
|
1533
|
-
o.deleteFetcher(
|
|
1534
|
-
}), [o,
|
|
1535
|
-
let
|
|
1536
|
-
u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(
|
|
1537
|
-
}, [
|
|
1538
|
+
} = ge($.UseFetcher), a = Ke(ee.UseFetcher), l = n.useContext(ye), i = n.useContext(_), u = (t = i.matches[i.matches.length - 1]) == null ? void 0 : t.route.id;
|
|
1539
|
+
l || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a FetchersContext") : m(!1)), i || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a RouteContext") : m(!1)), u == null && (process.env.NODE_ENV !== "production" ? m(!1, 'useFetcher can only be used on routes that contain a unique "id"') : m(!1));
|
|
1540
|
+
let f = $e ? $e() : "", [s, c] = n.useState(r || f);
|
|
1541
|
+
r && r !== s ? c(r) : s || c(Ft()), n.useEffect(() => (o.getFetcher(s), () => {
|
|
1542
|
+
o.deleteFetcher(s);
|
|
1543
|
+
}), [o, s]);
|
|
1544
|
+
let d = n.useCallback((h, E) => {
|
|
1545
|
+
u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(s, u, h, E);
|
|
1546
|
+
}, [s, u, o]), p = ze(), v = n.useCallback((h, E) => {
|
|
1538
1547
|
p(h, D({}, E, {
|
|
1539
1548
|
navigate: !1,
|
|
1540
|
-
fetcherKey:
|
|
1549
|
+
fetcherKey: s
|
|
1541
1550
|
}));
|
|
1542
|
-
}, [
|
|
1543
|
-
let h = /* @__PURE__ */
|
|
1551
|
+
}, [s, p]), g = n.useMemo(() => {
|
|
1552
|
+
let h = /* @__PURE__ */ n.forwardRef((E, b) => /* @__PURE__ */ n.createElement(He, D({}, E, {
|
|
1544
1553
|
navigate: !1,
|
|
1545
|
-
fetcherKey:
|
|
1546
|
-
ref:
|
|
1554
|
+
fetcherKey: s,
|
|
1555
|
+
ref: b
|
|
1547
1556
|
})));
|
|
1548
1557
|
return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
|
|
1549
|
-
}, [
|
|
1550
|
-
return
|
|
1558
|
+
}, [s]), N = a.fetchers.get(s) || Kt, y = l.get(s);
|
|
1559
|
+
return n.useMemo(() => D({
|
|
1551
1560
|
Form: g,
|
|
1552
1561
|
submit: v,
|
|
1553
|
-
load:
|
|
1554
|
-
},
|
|
1562
|
+
load: d
|
|
1563
|
+
}, N, {
|
|
1555
1564
|
data: y
|
|
1556
|
-
}), [g, v,
|
|
1565
|
+
}), [g, v, d, N, y]);
|
|
1557
1566
|
}
|
|
1558
|
-
function
|
|
1567
|
+
function kr() {
|
|
1559
1568
|
let e = Ke(ee.UseFetchers);
|
|
1560
1569
|
return Array.from(e.fetchers.entries()).map((t) => {
|
|
1561
|
-
let [
|
|
1570
|
+
let [r, o] = t;
|
|
1562
1571
|
return D({}, o, {
|
|
1563
|
-
key:
|
|
1572
|
+
key: r
|
|
1564
1573
|
});
|
|
1565
1574
|
});
|
|
1566
1575
|
}
|
|
1567
1576
|
const Je = "react-router-scroll-positions";
|
|
1568
1577
|
let ie = {};
|
|
1569
|
-
function
|
|
1578
|
+
function Vt(e) {
|
|
1570
1579
|
let {
|
|
1571
1580
|
getKey: t,
|
|
1572
|
-
storageKey:
|
|
1581
|
+
storageKey: r
|
|
1573
1582
|
} = e === void 0 ? {} : e, {
|
|
1574
1583
|
router: o
|
|
1575
1584
|
} = ge($.UseScrollRestoration), {
|
|
1576
1585
|
restoreScrollPosition: a,
|
|
1577
|
-
preventScrollReset:
|
|
1586
|
+
preventScrollReset: l
|
|
1578
1587
|
} = Ke(ee.UseScrollRestoration), {
|
|
1579
1588
|
basename: i
|
|
1580
|
-
} =
|
|
1581
|
-
|
|
1589
|
+
} = n.useContext(S), u = L(), f = Ve(), s = Ue();
|
|
1590
|
+
n.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1582
1591
|
window.history.scrollRestoration = "auto";
|
|
1583
|
-
}), []),
|
|
1584
|
-
if (
|
|
1585
|
-
let c = (t ? t(u,
|
|
1592
|
+
}), []), Ar(n.useCallback(() => {
|
|
1593
|
+
if (s.state === "idle") {
|
|
1594
|
+
let c = (t ? t(u, f) : null) || u.key;
|
|
1586
1595
|
ie[c] = window.scrollY;
|
|
1587
1596
|
}
|
|
1588
1597
|
try {
|
|
1589
|
-
sessionStorage.setItem(
|
|
1598
|
+
sessionStorage.setItem(r || Je, JSON.stringify(ie));
|
|
1590
1599
|
} catch (c) {
|
|
1591
|
-
process.env.NODE_ENV !== "production" &&
|
|
1600
|
+
process.env.NODE_ENV !== "production" && C(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
|
|
1592
1601
|
}
|
|
1593
1602
|
window.history.scrollRestoration = "auto";
|
|
1594
|
-
}, [
|
|
1603
|
+
}, [r, t, s.state, u, f])), typeof document < "u" && (n.useLayoutEffect(() => {
|
|
1595
1604
|
try {
|
|
1596
|
-
let c = sessionStorage.getItem(
|
|
1605
|
+
let c = sessionStorage.getItem(r || Je);
|
|
1597
1606
|
c && (ie = JSON.parse(c));
|
|
1598
1607
|
} catch {
|
|
1599
1608
|
}
|
|
1600
|
-
}, [
|
|
1609
|
+
}, [r]), n.useLayoutEffect(() => {
|
|
1601
1610
|
let c = t && i !== "/" ? (p, v) => t(
|
|
1602
1611
|
// Strip the basename to match useLocation()
|
|
1603
1612
|
D({}, p, {
|
|
1604
1613
|
pathname: T(p.pathname, i) || p.pathname
|
|
1605
1614
|
}),
|
|
1606
1615
|
v
|
|
1607
|
-
) : t,
|
|
1608
|
-
return () =>
|
|
1609
|
-
}, [o, i, t]),
|
|
1616
|
+
) : t, d = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
|
|
1617
|
+
return () => d && d();
|
|
1618
|
+
}, [o, i, t]), n.useLayoutEffect(() => {
|
|
1610
1619
|
if (a !== !1) {
|
|
1611
1620
|
if (typeof a == "number") {
|
|
1612
1621
|
window.scrollTo(0, a);
|
|
@@ -1619,153 +1628,154 @@ function Ut(e) {
|
|
|
1619
1628
|
return;
|
|
1620
1629
|
}
|
|
1621
1630
|
}
|
|
1622
|
-
|
|
1631
|
+
l !== !0 && window.scrollTo(0, 0);
|
|
1623
1632
|
}
|
|
1624
|
-
}, [u, a,
|
|
1633
|
+
}, [u, a, l]));
|
|
1625
1634
|
}
|
|
1626
|
-
function
|
|
1635
|
+
function Ir(e, t) {
|
|
1627
1636
|
let {
|
|
1628
|
-
capture:
|
|
1637
|
+
capture: r
|
|
1629
1638
|
} = t || {};
|
|
1630
|
-
|
|
1631
|
-
let o =
|
|
1632
|
-
capture:
|
|
1639
|
+
n.useEffect(() => {
|
|
1640
|
+
let o = r != null ? {
|
|
1641
|
+
capture: r
|
|
1633
1642
|
} : void 0;
|
|
1634
1643
|
return window.addEventListener("beforeunload", e, o), () => {
|
|
1635
1644
|
window.removeEventListener("beforeunload", e, o);
|
|
1636
1645
|
};
|
|
1637
|
-
}, [e,
|
|
1646
|
+
}, [e, r]);
|
|
1638
1647
|
}
|
|
1639
|
-
function
|
|
1648
|
+
function Ar(e, t) {
|
|
1640
1649
|
let {
|
|
1641
|
-
capture:
|
|
1650
|
+
capture: r
|
|
1642
1651
|
} = {};
|
|
1643
|
-
|
|
1644
|
-
let o =
|
|
1645
|
-
capture:
|
|
1652
|
+
n.useEffect(() => {
|
|
1653
|
+
let o = r != null ? {
|
|
1654
|
+
capture: r
|
|
1646
1655
|
} : void 0;
|
|
1647
1656
|
return window.addEventListener("pagehide", e, o), () => {
|
|
1648
1657
|
window.removeEventListener("pagehide", e, o);
|
|
1649
1658
|
};
|
|
1650
|
-
}, [e,
|
|
1659
|
+
}, [e, r]);
|
|
1651
1660
|
}
|
|
1652
|
-
function
|
|
1661
|
+
function Br(e) {
|
|
1653
1662
|
let {
|
|
1654
1663
|
when: t,
|
|
1655
|
-
message:
|
|
1664
|
+
message: r
|
|
1656
1665
|
} = e, o = Ae(t);
|
|
1657
|
-
|
|
1658
|
-
o.state === "blocked" && (window.confirm(
|
|
1659
|
-
}, [o,
|
|
1666
|
+
n.useEffect(() => {
|
|
1667
|
+
o.state === "blocked" && (window.confirm(r) ? setTimeout(o.proceed, 0) : o.reset());
|
|
1668
|
+
}, [o, r]), n.useEffect(() => {
|
|
1660
1669
|
o.state === "blocked" && !t && o.reset();
|
|
1661
1670
|
}, [o, t]);
|
|
1662
1671
|
}
|
|
1663
|
-
function
|
|
1672
|
+
function kt(e, t) {
|
|
1664
1673
|
t === void 0 && (t = {});
|
|
1665
|
-
let
|
|
1666
|
-
|
|
1674
|
+
let r = n.useContext(Ee);
|
|
1675
|
+
r == null && (process.env.NODE_ENV !== "production" ? m(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : m(!1));
|
|
1667
1676
|
let {
|
|
1668
1677
|
basename: o
|
|
1669
1678
|
} = ge($.useViewTransitionState), a = Y(e, {
|
|
1670
1679
|
relative: t.relative
|
|
1671
1680
|
});
|
|
1672
|
-
if (!
|
|
1681
|
+
if (!r.isTransitioning)
|
|
1673
1682
|
return !1;
|
|
1674
|
-
let
|
|
1675
|
-
return X(a.pathname, i) != null || X(a.pathname,
|
|
1683
|
+
let l = T(r.currentLocation.pathname, o) || r.currentLocation.pathname, i = T(r.nextLocation.pathname, o) || r.nextLocation.pathname;
|
|
1684
|
+
return X(a.pathname, i) != null || X(a.pathname, l) != null;
|
|
1676
1685
|
}
|
|
1677
|
-
const
|
|
1686
|
+
const Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1678
1687
|
__proto__: null,
|
|
1679
1688
|
AbortedDeferredError: Se,
|
|
1680
|
-
Await:
|
|
1681
|
-
BrowserRouter:
|
|
1689
|
+
Await: Ct,
|
|
1690
|
+
BrowserRouter: Dr,
|
|
1682
1691
|
Form: He,
|
|
1683
|
-
HashRouter:
|
|
1692
|
+
HashRouter: Or,
|
|
1684
1693
|
Link: je,
|
|
1685
|
-
MemoryRouter:
|
|
1686
|
-
NavLink:
|
|
1694
|
+
MemoryRouter: Nt,
|
|
1695
|
+
NavLink: Ot,
|
|
1687
1696
|
Navigate: bt,
|
|
1688
1697
|
get NavigationType() {
|
|
1689
1698
|
return de;
|
|
1690
1699
|
},
|
|
1691
1700
|
Outlet: Rt,
|
|
1692
|
-
Route:
|
|
1701
|
+
Route: Be,
|
|
1693
1702
|
Router: H,
|
|
1694
|
-
RouterProvider:
|
|
1695
|
-
Routes:
|
|
1696
|
-
ScrollRestoration:
|
|
1703
|
+
RouterProvider: Sr,
|
|
1704
|
+
Routes: wt,
|
|
1705
|
+
ScrollRestoration: Pt,
|
|
1697
1706
|
UNSAFE_DataRouterContext: U,
|
|
1698
|
-
UNSAFE_DataRouterStateContext:
|
|
1699
|
-
UNSAFE_ErrorResponseImpl:
|
|
1707
|
+
UNSAFE_DataRouterStateContext: B,
|
|
1708
|
+
UNSAFE_ErrorResponseImpl: at,
|
|
1700
1709
|
UNSAFE_FetchersContext: ye,
|
|
1701
|
-
UNSAFE_LocationContext:
|
|
1710
|
+
UNSAFE_LocationContext: M,
|
|
1702
1711
|
UNSAFE_NavigationContext: S,
|
|
1703
|
-
UNSAFE_RouteContext:
|
|
1712
|
+
UNSAFE_RouteContext: _,
|
|
1704
1713
|
UNSAFE_ViewTransitionContext: Ee,
|
|
1705
1714
|
UNSAFE_useRouteId: Fe,
|
|
1706
|
-
UNSAFE_useScrollRestoration:
|
|
1707
|
-
createBrowserRouter:
|
|
1708
|
-
createHashRouter:
|
|
1709
|
-
createMemoryRouter:
|
|
1715
|
+
UNSAFE_useScrollRestoration: Vt,
|
|
1716
|
+
createBrowserRouter: Er,
|
|
1717
|
+
createHashRouter: yr,
|
|
1718
|
+
createMemoryRouter: _t,
|
|
1710
1719
|
createPath: Q,
|
|
1711
1720
|
createRoutesFromChildren: W,
|
|
1712
1721
|
createRoutesFromElements: W,
|
|
1713
1722
|
createSearchParams: ce,
|
|
1714
1723
|
defer: Ge,
|
|
1715
1724
|
generatePath: Xe,
|
|
1716
|
-
isRouteErrorResponse:
|
|
1725
|
+
isRouteErrorResponse: Ce,
|
|
1717
1726
|
json: Qe,
|
|
1718
1727
|
matchPath: X,
|
|
1719
|
-
matchRoutes:
|
|
1728
|
+
matchRoutes: we,
|
|
1720
1729
|
parsePath: fe,
|
|
1721
1730
|
redirect: Ze,
|
|
1722
1731
|
redirectDocument: et,
|
|
1723
|
-
renderMatches:
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
useActionData:
|
|
1729
|
-
useAsyncError:
|
|
1732
|
+
renderMatches: St,
|
|
1733
|
+
replace: tt,
|
|
1734
|
+
resolvePath: rt,
|
|
1735
|
+
unstable_HistoryRouter: Dt,
|
|
1736
|
+
unstable_usePrompt: Br,
|
|
1737
|
+
useActionData: Et,
|
|
1738
|
+
useAsyncError: yt,
|
|
1730
1739
|
useAsyncValue: Ie,
|
|
1731
|
-
useBeforeUnload:
|
|
1740
|
+
useBeforeUnload: Ir,
|
|
1732
1741
|
useBlocker: Ae,
|
|
1733
|
-
useFetcher:
|
|
1734
|
-
useFetchers:
|
|
1735
|
-
useFormAction:
|
|
1742
|
+
useFetcher: Vr,
|
|
1743
|
+
useFetchers: kr,
|
|
1744
|
+
useFormAction: Ut,
|
|
1736
1745
|
useHref: De,
|
|
1737
1746
|
useInRouterContext: V,
|
|
1738
|
-
useLinkClickHandler:
|
|
1739
|
-
useLoaderData:
|
|
1747
|
+
useLinkClickHandler: Tt,
|
|
1748
|
+
useLoaderData: mt,
|
|
1740
1749
|
useLocation: L,
|
|
1741
|
-
useMatch:
|
|
1750
|
+
useMatch: lt,
|
|
1742
1751
|
useMatches: Ve,
|
|
1743
1752
|
useNavigate: te,
|
|
1744
1753
|
useNavigation: Ue,
|
|
1745
|
-
useNavigationType:
|
|
1754
|
+
useNavigationType: it,
|
|
1746
1755
|
useOutlet: Oe,
|
|
1747
|
-
useOutletContext:
|
|
1748
|
-
useParams:
|
|
1756
|
+
useOutletContext: dt,
|
|
1757
|
+
useParams: ft,
|
|
1749
1758
|
useResolvedPath: Y,
|
|
1750
|
-
useRevalidator:
|
|
1759
|
+
useRevalidator: ht,
|
|
1751
1760
|
useRouteError: ke,
|
|
1752
|
-
useRouteLoaderData:
|
|
1761
|
+
useRouteLoaderData: vt,
|
|
1753
1762
|
useRoutes: Pe,
|
|
1754
|
-
useSearchParams:
|
|
1755
|
-
useSubmit: ze
|
|
1763
|
+
useSearchParams: Tr,
|
|
1764
|
+
useSubmit: ze,
|
|
1765
|
+
useViewTransitionState: kt
|
|
1756
1766
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1757
1767
|
export {
|
|
1758
1768
|
je as L,
|
|
1759
|
-
|
|
1769
|
+
Ot as N,
|
|
1760
1770
|
Rt as O,
|
|
1761
|
-
|
|
1771
|
+
Sr as R,
|
|
1762
1772
|
te as a,
|
|
1763
|
-
|
|
1764
|
-
|
|
1773
|
+
Tr as b,
|
|
1774
|
+
ft as c,
|
|
1765
1775
|
ke as d,
|
|
1766
|
-
|
|
1767
|
-
|
|
1776
|
+
jr as e,
|
|
1777
|
+
Hr as f,
|
|
1768
1778
|
Ue as g,
|
|
1769
|
-
|
|
1779
|
+
L as u
|
|
1770
1780
|
};
|
|
1771
|
-
//# sourceMappingURL=index-
|
|
1781
|
+
//# sourceMappingURL=index-BRCiYFaL.js.map
|