zudoku 0.17.0 → 0.18.0
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/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +14 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +5 -4
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
- package/dist/config/validators/validate.d.ts +74 -74
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +11 -26
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -5
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +11 -3
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +3 -7
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +11 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +16 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -0
- package/dist/lib/components/TopNavigation.js +13 -7
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +4 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -3
- package/dist/lib/components/context/ZudokuContext.js +7 -12
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +14 -3
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +0 -4
- package/dist/lib/core/ZudokuContext.js +0 -5
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +6 -21
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +8 -11
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -52
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +134 -9
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -778
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/vite/config.js +0 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +0 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/lib/{AnchorLink-DYbUOP9U.js → AnchorLink-CDlhr8gL.js} +11 -10
- package/lib/{AnchorLink-DYbUOP9U.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
- package/lib/{AuthenticationPlugin-bqGAKfot.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
- package/lib/{AuthenticationPlugin-bqGAKfot.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
- package/lib/{Spinner-ChOGyPls.js → Button-jK0EsymC.js} +12 -15
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/Markdown-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/{MdxPage-DRKqyn2b.js → MdxPage-Bwn-VSsH.js} +5 -5
- package/lib/{MdxPage-DRKqyn2b.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
- package/lib/OperationList-BwBl1xrD.js +4691 -0
- package/lib/OperationList-BwBl1xrD.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/{Select-DYKDahHt.js → Select-O9ZM3ZgX.js} +7 -7
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
- package/lib/assets/{worker-YA-aCP3P.js → worker-CPsGZsve.js} +24 -22
- package/lib/assets/{worker-YA-aCP3P.js.map → worker-CPsGZsve.js.map} +1 -1
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/{hook-CjQERPa7.js → hook-hEqe7fPB.js} +12 -14
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-DNxQ_rCt.js +1273 -0
- package/lib/index-DNxQ_rCt.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/state-tsXBLONe.js.map +1 -0
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/{useExposedProps-BxyHjPNN.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
- package/lib/{utils-DNAltzXc.js → utils-DcpDOncX.js} +197 -202
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1133 -992
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16346
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +18 -18
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +14 -4
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -57
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +16 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- package/src/lib/authentication/state.ts +44 -10
- package/src/lib/components/Bootstrap.tsx +36 -9
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +31 -42
- package/src/lib/components/Layout.tsx +48 -36
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SyntaxHighlight.tsx +81 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +27 -19
- package/src/lib/components/Zudoku.tsx +5 -10
- package/src/lib/components/context/ZudokuContext.ts +8 -13
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/ZudokuContext.ts +0 -8
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +5 -40
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +10 -13
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +7 -25
- package/src/lib/plugins/openapi/graphql/graphql.ts +351 -782
- package/src/lib/plugins/openapi/index.tsx +40 -63
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -9
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -54
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -62
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Markdown-D6UxMbZm.js +0 -18059
- package/lib/Markdown-D6UxMbZm.js.map +0 -1
- package/lib/OperationList-BHUBGM0c.js +0 -621
- package/lib/OperationList-BHUBGM0c.js.map +0 -1
- package/lib/Route-B0XuN1oC.js +0 -13
- package/lib/Route-B0XuN1oC.js.map +0 -1
- package/lib/Select-DYKDahHt.js.map +0 -1
- package/lib/SidebarBadge-Bbt92M5K.js +0 -38
- package/lib/SidebarBadge-Bbt92M5K.js.map +0 -1
- package/lib/SlotletProvider-mhjLPG44.js +0 -241
- package/lib/SlotletProvider-mhjLPG44.js.map +0 -1
- package/lib/Spinner-ChOGyPls.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/hook-CjQERPa7.js.map +0 -1
- package/lib/index-BRg5pi5D.js +0 -5902
- package/lib/index-BRg5pi5D.js.map +0 -1
- package/lib/index-DM9hrcCG.js +0 -1783
- package/lib/index-DM9hrcCG.js.map +0 -1
- package/lib/state-BsPrOUAh.js +0 -252
- package/lib/state-BsPrOUAh.js.map +0 -1
- package/lib/urql-core-35Qt_U4i.js +0 -1511
- package/lib/urql-core-35Qt_U4i.js.map +0 -1
- package/lib/useExposedProps-BxyHjPNN.js +0 -9
- package/lib/utils-DNAltzXc.js.map +0 -1
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -65
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -79
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
package/lib/index-DM9hrcCG.js
DELETED
|
@@ -1,1783 +0,0 @@
|
|
|
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 X, d as Mt, c as Ce, 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-BsfSoK2j.js";
|
|
4
|
-
/**
|
|
5
|
-
* React Router v6.27.0
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Remix Software Inc.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
-
*
|
|
12
|
-
* @license MIT
|
|
13
|
-
*/
|
|
14
|
-
function I() {
|
|
15
|
-
return I = Object.assign ? Object.assign.bind() : function(e) {
|
|
16
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
17
|
-
var r = arguments[t];
|
|
18
|
-
for (var o in r)
|
|
19
|
-
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
20
|
-
}
|
|
21
|
-
return e;
|
|
22
|
-
}, I.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
const U = /* @__PURE__ */ n.createContext(null);
|
|
25
|
-
process.env.NODE_ENV !== "production" && (U.displayName = "DataRouter");
|
|
26
|
-
const B = /* @__PURE__ */ n.createContext(null);
|
|
27
|
-
process.env.NODE_ENV !== "production" && (B.displayName = "DataRouterState");
|
|
28
|
-
const Z = /* @__PURE__ */ n.createContext(null);
|
|
29
|
-
process.env.NODE_ENV !== "production" && (Z.displayName = "Await");
|
|
30
|
-
const S = /* @__PURE__ */ n.createContext(null);
|
|
31
|
-
process.env.NODE_ENV !== "production" && (S.displayName = "Navigation");
|
|
32
|
-
const M = /* @__PURE__ */ n.createContext(null);
|
|
33
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "Location");
|
|
34
|
-
const _ = /* @__PURE__ */ n.createContext({
|
|
35
|
-
outlet: null,
|
|
36
|
-
matches: [],
|
|
37
|
-
isDataRoute: !1
|
|
38
|
-
});
|
|
39
|
-
process.env.NODE_ENV !== "production" && (_.displayName = "Route");
|
|
40
|
-
const xe = /* @__PURE__ */ n.createContext(null);
|
|
41
|
-
process.env.NODE_ENV !== "production" && (xe.displayName = "RouteError");
|
|
42
|
-
function De(e, t) {
|
|
43
|
-
let {
|
|
44
|
-
relative: r
|
|
45
|
-
} = t === void 0 ? {} : t;
|
|
46
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
47
|
-
!1,
|
|
48
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
49
|
-
// router loaded. We can help them understand how to avoid that.
|
|
50
|
-
"useHref() may be used only in the context of a <Router> component."
|
|
51
|
-
) : m(!1));
|
|
52
|
-
let {
|
|
53
|
-
basename: o,
|
|
54
|
-
navigator: a
|
|
55
|
-
} = n.useContext(S), {
|
|
56
|
-
hash: l,
|
|
57
|
-
pathname: i,
|
|
58
|
-
search: u
|
|
59
|
-
} = Y(e, {
|
|
60
|
-
relative: r
|
|
61
|
-
}), f = i;
|
|
62
|
-
return o !== "/" && (f = i === "/" ? o : G([o, i])), a.createHref({
|
|
63
|
-
pathname: f,
|
|
64
|
-
search: u,
|
|
65
|
-
hash: l
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function V() {
|
|
69
|
-
return n.useContext(M) != null;
|
|
70
|
-
}
|
|
71
|
-
function L() {
|
|
72
|
-
return V() || (process.env.NODE_ENV !== "production" ? m(
|
|
73
|
-
!1,
|
|
74
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
75
|
-
// router loaded. We can help them understand how to avoid that.
|
|
76
|
-
"useLocation() may be used only in the context of a <Router> component."
|
|
77
|
-
) : m(!1)), n.useContext(M).location;
|
|
78
|
-
}
|
|
79
|
-
function it() {
|
|
80
|
-
return n.useContext(M).navigationType;
|
|
81
|
-
}
|
|
82
|
-
function lt(e) {
|
|
83
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
84
|
-
!1,
|
|
85
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
86
|
-
// router loaded. We can help them understand how to avoid that.
|
|
87
|
-
"useMatch() may be used only in the context of a <Router> component."
|
|
88
|
-
) : m(!1));
|
|
89
|
-
let {
|
|
90
|
-
pathname: t
|
|
91
|
-
} = L();
|
|
92
|
-
return n.useMemo(() => X(e, Mt(t)), [t, e]);
|
|
93
|
-
}
|
|
94
|
-
const st = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
95
|
-
function ut(e) {
|
|
96
|
-
n.useContext(S).static || n.useLayoutEffect(e);
|
|
97
|
-
}
|
|
98
|
-
function te() {
|
|
99
|
-
let {
|
|
100
|
-
isDataRoute: e
|
|
101
|
-
} = n.useContext(_);
|
|
102
|
-
return e ? Xt() : zt();
|
|
103
|
-
}
|
|
104
|
-
function zt() {
|
|
105
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
106
|
-
!1,
|
|
107
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
108
|
-
// router loaded. We can help them understand how to avoid that.
|
|
109
|
-
"useNavigate() may be used only in the context of a <Router> component."
|
|
110
|
-
) : m(!1));
|
|
111
|
-
let e = n.useContext(U), {
|
|
112
|
-
basename: t,
|
|
113
|
-
future: r,
|
|
114
|
-
navigator: o
|
|
115
|
-
} = n.useContext(S), {
|
|
116
|
-
matches: a
|
|
117
|
-
} = n.useContext(_), {
|
|
118
|
-
pathname: l
|
|
119
|
-
} = L(), i = JSON.stringify(be(a, r.v7_relativeSplatPath)), u = n.useRef(!1);
|
|
120
|
-
return ut(() => {
|
|
121
|
-
u.current = !0;
|
|
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
|
-
return;
|
|
127
|
-
}
|
|
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
|
-
}
|
|
132
|
-
const ct = /* @__PURE__ */ n.createContext(null);
|
|
133
|
-
function dt() {
|
|
134
|
-
return n.useContext(ct);
|
|
135
|
-
}
|
|
136
|
-
function Oe(e) {
|
|
137
|
-
let t = n.useContext(_).outlet;
|
|
138
|
-
return t && /* @__PURE__ */ n.createElement(ct.Provider, {
|
|
139
|
-
value: e
|
|
140
|
-
}, t);
|
|
141
|
-
}
|
|
142
|
-
function ft() {
|
|
143
|
-
let {
|
|
144
|
-
matches: e
|
|
145
|
-
} = n.useContext(_), t = e[e.length - 1];
|
|
146
|
-
return t ? t.params : {};
|
|
147
|
-
}
|
|
148
|
-
function Y(e, t) {
|
|
149
|
-
let {
|
|
150
|
-
relative: r
|
|
151
|
-
} = t === void 0 ? {} : t, {
|
|
152
|
-
future: o
|
|
153
|
-
} = n.useContext(S), {
|
|
154
|
-
matches: a
|
|
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
|
-
}
|
|
160
|
-
function Pe(e, t) {
|
|
161
|
-
return pe(e, t);
|
|
162
|
-
}
|
|
163
|
-
function pe(e, t, r, o) {
|
|
164
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
165
|
-
!1,
|
|
166
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
167
|
-
// router loaded. We can help them understand how to avoid that.
|
|
168
|
-
"useRoutes() may be used only in the context of a <Router> component."
|
|
169
|
-
) : m(!1));
|
|
170
|
-
let {
|
|
171
|
-
navigator: a
|
|
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
|
-
if (process.env.NODE_ENV !== "production") {
|
|
176
|
-
let h = c && c.path || "";
|
|
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
|
-
|
|
179
|
-
` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
|
|
180
|
-
}
|
|
181
|
-
let d = L(), p;
|
|
182
|
-
if (t) {
|
|
183
|
-
var v;
|
|
184
|
-
let h = typeof t == "string" ? fe(t) : t;
|
|
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
|
-
} else
|
|
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
|
-
}
|
|
193
|
-
let y = we(e, {
|
|
194
|
-
pathname: N
|
|
195
|
-
});
|
|
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
|
-
params: Object.assign({}, u, h.params),
|
|
199
|
-
pathname: G([
|
|
200
|
-
s,
|
|
201
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
202
|
-
a.encodeLocation ? a.encodeLocation(h.pathname).pathname : h.pathname
|
|
203
|
-
]),
|
|
204
|
-
pathnameBase: h.pathnameBase === "/" ? s : G([
|
|
205
|
-
s,
|
|
206
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
207
|
-
a.encodeLocation ? a.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
208
|
-
])
|
|
209
|
-
})), l, r, o);
|
|
210
|
-
return t && w ? /* @__PURE__ */ n.createElement(M.Provider, {
|
|
211
|
-
value: {
|
|
212
|
-
location: I({
|
|
213
|
-
pathname: "/",
|
|
214
|
-
search: "",
|
|
215
|
-
hash: "",
|
|
216
|
-
state: null,
|
|
217
|
-
key: "default"
|
|
218
|
-
}, p),
|
|
219
|
-
navigationType: de.Pop
|
|
220
|
-
}
|
|
221
|
-
}, w) : w;
|
|
222
|
-
}
|
|
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
|
-
padding: "0.5rem",
|
|
226
|
-
backgroundColor: o
|
|
227
|
-
}, l = {
|
|
228
|
-
padding: "2px 4px",
|
|
229
|
-
backgroundColor: o
|
|
230
|
-
}, i = null;
|
|
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
|
-
style: {
|
|
237
|
-
fontStyle: "italic"
|
|
238
|
-
}
|
|
239
|
-
}, t), r ? /* @__PURE__ */ n.createElement("pre", {
|
|
240
|
-
style: a
|
|
241
|
-
}, r) : null, i);
|
|
242
|
-
}
|
|
243
|
-
const Yt = /* @__PURE__ */ n.createElement(Wt, null);
|
|
244
|
-
class $t extends n.Component {
|
|
245
|
-
constructor(t) {
|
|
246
|
-
super(t), this.state = {
|
|
247
|
-
location: t.location,
|
|
248
|
-
revalidation: t.revalidation,
|
|
249
|
-
error: t.error
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
static getDerivedStateFromError(t) {
|
|
253
|
-
return {
|
|
254
|
-
error: t
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
static getDerivedStateFromProps(t, r) {
|
|
258
|
-
return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
|
|
259
|
-
error: t.error,
|
|
260
|
-
location: t.location,
|
|
261
|
-
revalidation: t.revalidation
|
|
262
|
-
} : {
|
|
263
|
-
error: t.error !== void 0 ? t.error : r.error,
|
|
264
|
-
location: r.location,
|
|
265
|
-
revalidation: t.revalidation || r.revalidation
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
componentDidCatch(t, r) {
|
|
269
|
-
console.error("React Router caught the following error during render", t, r);
|
|
270
|
-
}
|
|
271
|
-
render() {
|
|
272
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ n.createElement(_.Provider, {
|
|
273
|
-
value: this.props.routeContext
|
|
274
|
-
}, /* @__PURE__ */ n.createElement(xe.Provider, {
|
|
275
|
-
value: this.state.error,
|
|
276
|
-
children: this.props.component
|
|
277
|
-
})) : this.props.children;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
function Jt(e) {
|
|
281
|
-
let {
|
|
282
|
-
routeContext: t,
|
|
283
|
-
match: r,
|
|
284
|
-
children: o
|
|
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
|
-
value: t
|
|
288
|
-
}, o);
|
|
289
|
-
}
|
|
290
|
-
function pt(e, t, r, o) {
|
|
291
|
-
var a;
|
|
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;
|
|
300
|
-
else
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
let i = e, u = (a = r) == null ? void 0 : a.errors;
|
|
304
|
-
if (u != null) {
|
|
305
|
-
let c = i.findIndex((d) => d.route.id && (u == null ? void 0 : u[d.route.id]) !== void 0);
|
|
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));
|
|
307
|
-
}
|
|
308
|
-
let f = !1, s = -1;
|
|
309
|
-
if (r && o && o.v7_partialHydration)
|
|
310
|
-
for (let c = 0; c < i.length; c++) {
|
|
311
|
-
let d = i[c];
|
|
312
|
-
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = c), d.route.id) {
|
|
313
|
-
let {
|
|
314
|
-
loaderData: p,
|
|
315
|
-
errors: v
|
|
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]];
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
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 = () => {
|
|
327
|
-
let E;
|
|
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,
|
|
330
|
-
routeContext: {
|
|
331
|
-
outlet: c,
|
|
332
|
-
matches: w,
|
|
333
|
-
isDataRoute: r != null
|
|
334
|
-
},
|
|
335
|
-
children: E
|
|
336
|
-
});
|
|
337
|
-
};
|
|
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,
|
|
342
|
-
error: v,
|
|
343
|
-
children: h(),
|
|
344
|
-
routeContext: {
|
|
345
|
-
outlet: null,
|
|
346
|
-
matches: w,
|
|
347
|
-
isDataRoute: !0
|
|
348
|
-
}
|
|
349
|
-
}) : h();
|
|
350
|
-
}, null);
|
|
351
|
-
}
|
|
352
|
-
var he = /* @__PURE__ */ function(e) {
|
|
353
|
-
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
354
|
-
}(he || {}), O = /* @__PURE__ */ function(e) {
|
|
355
|
-
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
356
|
-
}(O || {});
|
|
357
|
-
function Le(e) {
|
|
358
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
359
|
-
}
|
|
360
|
-
function Te(e) {
|
|
361
|
-
let t = n.useContext(U);
|
|
362
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
363
|
-
}
|
|
364
|
-
function j(e) {
|
|
365
|
-
let t = n.useContext(B);
|
|
366
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
367
|
-
}
|
|
368
|
-
function qt(e) {
|
|
369
|
-
let t = n.useContext(_);
|
|
370
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
371
|
-
}
|
|
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;
|
|
375
|
-
}
|
|
376
|
-
function Fe() {
|
|
377
|
-
return re(O.UseRouteId);
|
|
378
|
-
}
|
|
379
|
-
function Ue() {
|
|
380
|
-
return j(O.UseNavigation).navigation;
|
|
381
|
-
}
|
|
382
|
-
function ht() {
|
|
383
|
-
let e = Te(he.UseRevalidator), t = j(O.UseRevalidator);
|
|
384
|
-
return n.useMemo(() => ({
|
|
385
|
-
revalidate: e.router.revalidate,
|
|
386
|
-
state: t.revalidation
|
|
387
|
-
}), [e.router.revalidate, t.revalidation]);
|
|
388
|
-
}
|
|
389
|
-
function Ve() {
|
|
390
|
-
let {
|
|
391
|
-
matches: e,
|
|
392
|
-
loaderData: t
|
|
393
|
-
} = j(O.UseMatches);
|
|
394
|
-
return n.useMemo(() => e.map((r) => jt(r, t)), [e, t]);
|
|
395
|
-
}
|
|
396
|
-
function mt() {
|
|
397
|
-
let e = j(O.UseLoaderData), t = re(O.UseLoaderData);
|
|
398
|
-
if (e.errors && e.errors[t] != null) {
|
|
399
|
-
console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
return e.loaderData[t];
|
|
403
|
-
}
|
|
404
|
-
function vt(e) {
|
|
405
|
-
return j(O.UseRouteLoaderData).loaderData[e];
|
|
406
|
-
}
|
|
407
|
-
function Et() {
|
|
408
|
-
let e = j(O.UseActionData), t = re(O.UseLoaderData);
|
|
409
|
-
return e.actionData ? e.actionData[t] : void 0;
|
|
410
|
-
}
|
|
411
|
-
function ke() {
|
|
412
|
-
var 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];
|
|
415
|
-
}
|
|
416
|
-
function Ie() {
|
|
417
|
-
let e = n.useContext(Z);
|
|
418
|
-
return e == null ? void 0 : e._data;
|
|
419
|
-
}
|
|
420
|
-
function yt() {
|
|
421
|
-
let e = n.useContext(Z);
|
|
422
|
-
return e == null ? void 0 : e._error;
|
|
423
|
-
}
|
|
424
|
-
let Gt = 0;
|
|
425
|
-
function Ae(e) {
|
|
426
|
-
let {
|
|
427
|
-
router: t,
|
|
428
|
-
basename: r
|
|
429
|
-
} = Te(he.UseBlocker), o = j(O.UseBlocker), [a, l] = n.useState(""), i = n.useCallback((u) => {
|
|
430
|
-
if (typeof e != "function")
|
|
431
|
-
return !!e;
|
|
432
|
-
if (r === "/")
|
|
433
|
-
return e(u);
|
|
434
|
-
let {
|
|
435
|
-
currentLocation: f,
|
|
436
|
-
nextLocation: s,
|
|
437
|
-
historyAction: c
|
|
438
|
-
} = u;
|
|
439
|
-
return e({
|
|
440
|
-
currentLocation: I({}, f, {
|
|
441
|
-
pathname: T(f.pathname, r) || f.pathname
|
|
442
|
-
}),
|
|
443
|
-
nextLocation: I({}, s, {
|
|
444
|
-
pathname: T(s.pathname, r) || s.pathname
|
|
445
|
-
}),
|
|
446
|
-
historyAction: c
|
|
447
|
-
});
|
|
448
|
-
}, [r, e]);
|
|
449
|
-
return n.useEffect(() => {
|
|
450
|
-
let u = String(++Gt);
|
|
451
|
-
return l(u), () => t.deleteBlocker(u);
|
|
452
|
-
}, [t]), n.useEffect(() => {
|
|
453
|
-
a !== "" && t.getBlocker(a, i);
|
|
454
|
-
}, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : Ht;
|
|
455
|
-
}
|
|
456
|
-
function Xt() {
|
|
457
|
-
let {
|
|
458
|
-
router: e
|
|
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({
|
|
464
|
-
fromRouteId: t
|
|
465
|
-
}, l)));
|
|
466
|
-
}, [e, t]);
|
|
467
|
-
}
|
|
468
|
-
const We = {};
|
|
469
|
-
function gt(e, t, r) {
|
|
470
|
-
!t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && C(!1, r));
|
|
471
|
-
}
|
|
472
|
-
const Qt = "startTransition", ue = n[Qt];
|
|
473
|
-
function Zt(e) {
|
|
474
|
-
let {
|
|
475
|
-
fallbackElement: t,
|
|
476
|
-
router: r,
|
|
477
|
-
future: o
|
|
478
|
-
} = e, [a, l] = n.useState(r.state), {
|
|
479
|
-
v7_startTransition: i
|
|
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");
|
|
485
|
-
}, []);
|
|
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, {
|
|
491
|
-
state: p,
|
|
492
|
-
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
493
|
-
}),
|
|
494
|
-
replace: (d, p, v) => r.navigate(d, {
|
|
495
|
-
replace: !0,
|
|
496
|
-
state: p,
|
|
497
|
-
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
498
|
-
})
|
|
499
|
-
}), [r]), s = r.basename || "/", c = n.useMemo(() => ({
|
|
500
|
-
router: r,
|
|
501
|
-
navigator: f,
|
|
502
|
-
static: !1,
|
|
503
|
-
basename: s
|
|
504
|
-
}), [r, f, s]);
|
|
505
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
|
|
506
|
-
value: c
|
|
507
|
-
}, /* @__PURE__ */ n.createElement(B.Provider, {
|
|
508
|
-
value: a
|
|
509
|
-
}, /* @__PURE__ */ n.createElement(H, {
|
|
510
|
-
basename: s,
|
|
511
|
-
location: a.location,
|
|
512
|
-
navigationType: a.historyAction,
|
|
513
|
-
navigator: f,
|
|
514
|
-
future: {
|
|
515
|
-
v7_relativeSplatPath: r.future.v7_relativeSplatPath
|
|
516
|
-
}
|
|
517
|
-
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(er, {
|
|
518
|
-
routes: r.routes,
|
|
519
|
-
future: r.future,
|
|
520
|
-
state: a
|
|
521
|
-
}) : t))), null);
|
|
522
|
-
}
|
|
523
|
-
function er(e) {
|
|
524
|
-
let {
|
|
525
|
-
routes: t,
|
|
526
|
-
future: r,
|
|
527
|
-
state: o
|
|
528
|
-
} = e;
|
|
529
|
-
return pe(t, void 0, o, r);
|
|
530
|
-
}
|
|
531
|
-
function Nt(e) {
|
|
532
|
-
let {
|
|
533
|
-
basename: t,
|
|
534
|
-
children: r,
|
|
535
|
-
initialEntries: o,
|
|
536
|
-
initialIndex: a,
|
|
537
|
-
future: l
|
|
538
|
-
} = e, i = n.useRef();
|
|
539
|
-
i.current == null && (i.current = qe({
|
|
540
|
-
initialEntries: o,
|
|
541
|
-
initialIndex: a,
|
|
542
|
-
v5Compat: !0
|
|
543
|
-
}));
|
|
544
|
-
let u = i.current, [f, s] = n.useState({
|
|
545
|
-
action: u.action,
|
|
546
|
-
location: u.location
|
|
547
|
-
}), {
|
|
548
|
-
v7_startTransition: c
|
|
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, {
|
|
553
|
-
basename: t,
|
|
554
|
-
children: r,
|
|
555
|
-
location: f.location,
|
|
556
|
-
navigationType: f.action,
|
|
557
|
-
navigator: u,
|
|
558
|
-
future: l
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
function bt(e) {
|
|
562
|
-
let {
|
|
563
|
-
to: t,
|
|
564
|
-
replace: r,
|
|
565
|
-
state: o,
|
|
566
|
-
relative: a
|
|
567
|
-
} = e;
|
|
568
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
569
|
-
!1,
|
|
570
|
-
// TODO: This error is probably because they somehow have 2 versions of
|
|
571
|
-
// the router loaded. We can help them understand how to avoid that.
|
|
572
|
-
"<Navigate> may be used only in the context of a <Router> component."
|
|
573
|
-
) : m(!1));
|
|
574
|
-
let {
|
|
575
|
-
future: l,
|
|
576
|
-
static: i
|
|
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.");
|
|
579
|
-
let {
|
|
580
|
-
matches: u
|
|
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,
|
|
586
|
-
state: o,
|
|
587
|
-
relative: a
|
|
588
|
-
}), [s, d, a, r, o]), null;
|
|
589
|
-
}
|
|
590
|
-
function Rt(e) {
|
|
591
|
-
return Oe(e.context);
|
|
592
|
-
}
|
|
593
|
-
function Be(e) {
|
|
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);
|
|
595
|
-
}
|
|
596
|
-
function H(e) {
|
|
597
|
-
let {
|
|
598
|
-
basename: t = "/",
|
|
599
|
-
children: r = null,
|
|
600
|
-
location: o,
|
|
601
|
-
navigationType: a = de.Pop,
|
|
602
|
-
navigator: l,
|
|
603
|
-
static: i = !1,
|
|
604
|
-
future: u
|
|
605
|
-
} = e;
|
|
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));
|
|
607
|
-
let f = t.replace(/^\/*/, "/"), s = n.useMemo(() => ({
|
|
608
|
-
basename: f,
|
|
609
|
-
navigator: l,
|
|
610
|
-
static: i,
|
|
611
|
-
future: I({
|
|
612
|
-
v7_relativeSplatPath: !1
|
|
613
|
-
}, u)
|
|
614
|
-
}), [f, u, l, i]);
|
|
615
|
-
typeof o == "string" && (o = fe(o));
|
|
616
|
-
let {
|
|
617
|
-
pathname: c = "/",
|
|
618
|
-
search: d = "",
|
|
619
|
-
hash: p = "",
|
|
620
|
-
state: v = null,
|
|
621
|
-
key: g = "default"
|
|
622
|
-
} = o, N = n.useMemo(() => {
|
|
623
|
-
let y = T(c, f);
|
|
624
|
-
return y == null ? null : {
|
|
625
|
-
location: {
|
|
626
|
-
pathname: y,
|
|
627
|
-
search: d,
|
|
628
|
-
hash: p,
|
|
629
|
-
state: v,
|
|
630
|
-
key: g
|
|
631
|
-
},
|
|
632
|
-
navigationType: a
|
|
633
|
-
};
|
|
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
|
|
640
|
-
}));
|
|
641
|
-
}
|
|
642
|
-
function wt(e) {
|
|
643
|
-
let {
|
|
644
|
-
children: t,
|
|
645
|
-
location: r
|
|
646
|
-
} = e;
|
|
647
|
-
return Pe(W(t), r);
|
|
648
|
-
}
|
|
649
|
-
function Ct(e) {
|
|
650
|
-
let {
|
|
651
|
-
children: t,
|
|
652
|
-
errorElement: r,
|
|
653
|
-
resolve: o
|
|
654
|
-
} = e;
|
|
655
|
-
return /* @__PURE__ */ n.createElement(rr, {
|
|
656
|
-
resolve: o,
|
|
657
|
-
errorElement: r
|
|
658
|
-
}, /* @__PURE__ */ n.createElement(nr, null, t));
|
|
659
|
-
}
|
|
660
|
-
var P = /* @__PURE__ */ function(e) {
|
|
661
|
-
return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
|
|
662
|
-
}(P || {});
|
|
663
|
-
const tr = new Promise(() => {
|
|
664
|
-
});
|
|
665
|
-
class rr extends n.Component {
|
|
666
|
-
constructor(t) {
|
|
667
|
-
super(t), this.state = {
|
|
668
|
-
error: null
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
static getDerivedStateFromError(t) {
|
|
672
|
-
return {
|
|
673
|
-
error: t
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
componentDidCatch(t, r) {
|
|
677
|
-
console.error("<Await> caught the following error during render", t, r);
|
|
678
|
-
}
|
|
679
|
-
render() {
|
|
680
|
-
let {
|
|
681
|
-
children: t,
|
|
682
|
-
errorElement: r,
|
|
683
|
-
resolve: o
|
|
684
|
-
} = this.props, a = null, l = P.pending;
|
|
685
|
-
if (!(o instanceof Promise))
|
|
686
|
-
l = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
|
|
687
|
-
get: () => !0
|
|
688
|
-
}), Object.defineProperty(a, "_data", {
|
|
689
|
-
get: () => o
|
|
690
|
-
});
|
|
691
|
-
else if (this.state.error) {
|
|
692
|
-
l = P.error;
|
|
693
|
-
let i = this.state.error;
|
|
694
|
-
a = Promise.reject().catch(() => {
|
|
695
|
-
}), Object.defineProperty(a, "_tracked", {
|
|
696
|
-
get: () => !0
|
|
697
|
-
}), Object.defineProperty(a, "_error", {
|
|
698
|
-
get: () => i
|
|
699
|
-
});
|
|
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", {
|
|
701
|
-
get: () => !0
|
|
702
|
-
}), a = o.then((i) => Object.defineProperty(o, "_data", {
|
|
703
|
-
get: () => i
|
|
704
|
-
}), (i) => Object.defineProperty(o, "_error", {
|
|
705
|
-
get: () => i
|
|
706
|
-
})));
|
|
707
|
-
if (l === P.error && a._error instanceof Se)
|
|
708
|
-
throw tr;
|
|
709
|
-
if (l === P.error && !r)
|
|
710
|
-
throw a._error;
|
|
711
|
-
if (l === P.error)
|
|
712
|
-
return /* @__PURE__ */ n.createElement(Z.Provider, {
|
|
713
|
-
value: a,
|
|
714
|
-
children: r
|
|
715
|
-
});
|
|
716
|
-
if (l === P.success)
|
|
717
|
-
return /* @__PURE__ */ n.createElement(Z.Provider, {
|
|
718
|
-
value: a,
|
|
719
|
-
children: t
|
|
720
|
-
});
|
|
721
|
-
throw a;
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
function nr(e) {
|
|
725
|
-
let {
|
|
726
|
-
children: t
|
|
727
|
-
} = e, r = Ie(), o = typeof t == "function" ? t(r) : t;
|
|
728
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null, o);
|
|
729
|
-
}
|
|
730
|
-
function W(e, t) {
|
|
731
|
-
t === void 0 && (t = []);
|
|
732
|
-
let r = [];
|
|
733
|
-
return n.Children.forEach(e, (o, a) => {
|
|
734
|
-
if (!/* @__PURE__ */ n.isValidElement(o))
|
|
735
|
-
return;
|
|
736
|
-
let l = [...t, a];
|
|
737
|
-
if (o.type === n.Fragment) {
|
|
738
|
-
r.push.apply(r, W(o.props.children, l));
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
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));
|
|
742
|
-
let i = {
|
|
743
|
-
id: o.props.id || l.join("-"),
|
|
744
|
-
caseSensitive: o.props.caseSensitive,
|
|
745
|
-
element: o.props.element,
|
|
746
|
-
Component: o.props.Component,
|
|
747
|
-
index: o.props.index,
|
|
748
|
-
path: o.props.path,
|
|
749
|
-
loader: o.props.loader,
|
|
750
|
-
action: o.props.action,
|
|
751
|
-
errorElement: o.props.errorElement,
|
|
752
|
-
ErrorBoundary: o.props.ErrorBoundary,
|
|
753
|
-
hasErrorBoundary: o.props.ErrorBoundary != null || o.props.errorElement != null,
|
|
754
|
-
shouldRevalidate: o.props.shouldRevalidate,
|
|
755
|
-
handle: o.props.handle,
|
|
756
|
-
lazy: o.props.lazy
|
|
757
|
-
};
|
|
758
|
-
o.props.children && (i.children = W(o.props.children, l)), r.push(i);
|
|
759
|
-
}), r;
|
|
760
|
-
}
|
|
761
|
-
function St(e) {
|
|
762
|
-
return pt(e);
|
|
763
|
-
}
|
|
764
|
-
function me(e) {
|
|
765
|
-
let t = {
|
|
766
|
-
// Note: this check also occurs in createRoutesFromChildren so update
|
|
767
|
-
// there if you change this -- please and thank you!
|
|
768
|
-
hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
|
|
769
|
-
};
|
|
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),
|
|
772
|
-
Component: void 0
|
|
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),
|
|
775
|
-
HydrateFallback: void 0
|
|
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),
|
|
778
|
-
ErrorBoundary: void 0
|
|
779
|
-
})), t;
|
|
780
|
-
}
|
|
781
|
-
function _t(e, t) {
|
|
782
|
-
return _e({
|
|
783
|
-
basename: t == null ? void 0 : t.basename,
|
|
784
|
-
future: I({}, t == null ? void 0 : t.future, {
|
|
785
|
-
v7_prependBasename: !0
|
|
786
|
-
}),
|
|
787
|
-
history: qe({
|
|
788
|
-
initialEntries: t == null ? void 0 : t.initialEntries,
|
|
789
|
-
initialIndex: t == null ? void 0 : t.initialIndex
|
|
790
|
-
}),
|
|
791
|
-
hydrationData: t == null ? void 0 : t.hydrationData,
|
|
792
|
-
routes: e,
|
|
793
|
-
mapRouteProperties: me,
|
|
794
|
-
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
795
|
-
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation
|
|
796
|
-
}).initialize();
|
|
797
|
-
}
|
|
798
|
-
const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
799
|
-
__proto__: null,
|
|
800
|
-
AbortedDeferredError: Se,
|
|
801
|
-
Await: Ct,
|
|
802
|
-
MemoryRouter: Nt,
|
|
803
|
-
Navigate: bt,
|
|
804
|
-
get NavigationType() {
|
|
805
|
-
return de;
|
|
806
|
-
},
|
|
807
|
-
Outlet: Rt,
|
|
808
|
-
Route: Be,
|
|
809
|
-
Router: H,
|
|
810
|
-
RouterProvider: Zt,
|
|
811
|
-
Routes: wt,
|
|
812
|
-
UNSAFE_DataRouterContext: U,
|
|
813
|
-
UNSAFE_DataRouterStateContext: B,
|
|
814
|
-
UNSAFE_LocationContext: M,
|
|
815
|
-
UNSAFE_NavigationContext: S,
|
|
816
|
-
UNSAFE_RouteContext: _,
|
|
817
|
-
UNSAFE_mapRouteProperties: me,
|
|
818
|
-
UNSAFE_useRouteId: Fe,
|
|
819
|
-
UNSAFE_useRoutesImpl: pe,
|
|
820
|
-
createMemoryRouter: _t,
|
|
821
|
-
createPath: Q,
|
|
822
|
-
createRoutesFromChildren: W,
|
|
823
|
-
createRoutesFromElements: W,
|
|
824
|
-
defer: Ge,
|
|
825
|
-
generatePath: Xe,
|
|
826
|
-
isRouteErrorResponse: Ce,
|
|
827
|
-
json: Qe,
|
|
828
|
-
matchPath: X,
|
|
829
|
-
matchRoutes: we,
|
|
830
|
-
parsePath: fe,
|
|
831
|
-
redirect: Ze,
|
|
832
|
-
redirectDocument: et,
|
|
833
|
-
renderMatches: St,
|
|
834
|
-
replace: tt,
|
|
835
|
-
resolvePath: rt,
|
|
836
|
-
useActionData: Et,
|
|
837
|
-
useAsyncError: yt,
|
|
838
|
-
useAsyncValue: Ie,
|
|
839
|
-
useBlocker: Ae,
|
|
840
|
-
useHref: De,
|
|
841
|
-
useInRouterContext: V,
|
|
842
|
-
useLoaderData: mt,
|
|
843
|
-
useLocation: L,
|
|
844
|
-
useMatch: lt,
|
|
845
|
-
useMatches: Ve,
|
|
846
|
-
useNavigate: te,
|
|
847
|
-
useNavigation: Ue,
|
|
848
|
-
useNavigationType: it,
|
|
849
|
-
useOutlet: Oe,
|
|
850
|
-
useOutletContext: dt,
|
|
851
|
-
useParams: ft,
|
|
852
|
-
useResolvedPath: Y,
|
|
853
|
-
useRevalidator: ht,
|
|
854
|
-
useRouteError: ke,
|
|
855
|
-
useRouteLoaderData: vt,
|
|
856
|
-
useRoutes: Pe
|
|
857
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
858
|
-
/**
|
|
859
|
-
* React Router DOM v6.27.0
|
|
860
|
-
*
|
|
861
|
-
* Copyright (c) Remix Software Inc.
|
|
862
|
-
*
|
|
863
|
-
* This source code is licensed under the MIT license found in the
|
|
864
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
865
|
-
*
|
|
866
|
-
* @license MIT
|
|
867
|
-
*/
|
|
868
|
-
function D() {
|
|
869
|
-
return D = Object.assign ? Object.assign.bind() : function(e) {
|
|
870
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
871
|
-
var r = arguments[t];
|
|
872
|
-
for (var o in r)
|
|
873
|
-
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
874
|
-
}
|
|
875
|
-
return e;
|
|
876
|
-
}, D.apply(this, arguments);
|
|
877
|
-
}
|
|
878
|
-
function Me(e, t) {
|
|
879
|
-
if (e == null) 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;
|
|
884
|
-
}
|
|
885
|
-
const le = "get", se = "application/x-www-form-urlencoded";
|
|
886
|
-
function ve(e) {
|
|
887
|
-
return e != null && typeof e.tagName == "string";
|
|
888
|
-
}
|
|
889
|
-
function or(e) {
|
|
890
|
-
return ve(e) && e.tagName.toLowerCase() === "button";
|
|
891
|
-
}
|
|
892
|
-
function ar(e) {
|
|
893
|
-
return ve(e) && e.tagName.toLowerCase() === "form";
|
|
894
|
-
}
|
|
895
|
-
function ir(e) {
|
|
896
|
-
return ve(e) && e.tagName.toLowerCase() === "input";
|
|
897
|
-
}
|
|
898
|
-
function lr(e) {
|
|
899
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
900
|
-
}
|
|
901
|
-
function sr(e, t) {
|
|
902
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
903
|
-
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
904
|
-
!lr(e);
|
|
905
|
-
}
|
|
906
|
-
function ce(e) {
|
|
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]]);
|
|
910
|
-
}, []));
|
|
911
|
-
}
|
|
912
|
-
function ur(e, t) {
|
|
913
|
-
let r = ce(e);
|
|
914
|
-
return t && t.forEach((o, a) => {
|
|
915
|
-
r.has(a) || t.getAll(a).forEach((l) => {
|
|
916
|
-
r.append(a, l);
|
|
917
|
-
});
|
|
918
|
-
}), r;
|
|
919
|
-
}
|
|
920
|
-
let ae = null;
|
|
921
|
-
function cr() {
|
|
922
|
-
if (ae === null)
|
|
923
|
-
try {
|
|
924
|
-
new FormData(
|
|
925
|
-
document.createElement("form"),
|
|
926
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
927
|
-
0
|
|
928
|
-
), ae = !1;
|
|
929
|
-
} catch {
|
|
930
|
-
ae = !0;
|
|
931
|
-
}
|
|
932
|
-
return ae;
|
|
933
|
-
}
|
|
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;
|
|
937
|
-
}
|
|
938
|
-
function fr(e, t) {
|
|
939
|
-
let r, o, a, l, i;
|
|
940
|
-
if (ar(e)) {
|
|
941
|
-
let u = e.getAttribute("action");
|
|
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")) {
|
|
944
|
-
let u = e.form;
|
|
945
|
-
if (u == null)
|
|
946
|
-
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
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()) {
|
|
949
|
-
let {
|
|
950
|
-
name: s,
|
|
951
|
-
type: c,
|
|
952
|
-
value: d
|
|
953
|
-
} = e;
|
|
954
|
-
if (c === "image") {
|
|
955
|
-
let p = s ? s + "." : "";
|
|
956
|
-
l.append(p + "x", "0"), l.append(p + "y", "0");
|
|
957
|
-
} else s && l.append(s, d);
|
|
958
|
-
}
|
|
959
|
-
} else {
|
|
960
|
-
if (ve(e))
|
|
961
|
-
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
962
|
-
r = le, o = null, a = se, i = e;
|
|
963
|
-
}
|
|
964
|
-
return l && a === "text/plain" && (i = l, l = void 0), {
|
|
965
|
-
action: o,
|
|
966
|
-
method: r.toLowerCase(),
|
|
967
|
-
encType: a,
|
|
968
|
-
formData: l,
|
|
969
|
-
body: i
|
|
970
|
-
};
|
|
971
|
-
}
|
|
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";
|
|
973
|
-
try {
|
|
974
|
-
window.__reactRouterVersion = vr;
|
|
975
|
-
} catch {
|
|
976
|
-
}
|
|
977
|
-
function Er(e, t) {
|
|
978
|
-
return _e({
|
|
979
|
-
basename: t == null ? void 0 : t.basename,
|
|
980
|
-
future: D({}, t == null ? void 0 : t.future, {
|
|
981
|
-
v7_prependBasename: !0
|
|
982
|
-
}),
|
|
983
|
-
history: nt({
|
|
984
|
-
window: t == null ? void 0 : t.window
|
|
985
|
-
}),
|
|
986
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
|
|
987
|
-
routes: e,
|
|
988
|
-
mapRouteProperties: me,
|
|
989
|
-
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
990
|
-
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
|
|
991
|
-
window: t == null ? void 0 : t.window
|
|
992
|
-
}).initialize();
|
|
993
|
-
}
|
|
994
|
-
function yr(e, t) {
|
|
995
|
-
return _e({
|
|
996
|
-
basename: t == null ? void 0 : t.basename,
|
|
997
|
-
future: D({}, t == null ? void 0 : t.future, {
|
|
998
|
-
v7_prependBasename: !0
|
|
999
|
-
}),
|
|
1000
|
-
history: ot({
|
|
1001
|
-
window: t == null ? void 0 : t.window
|
|
1002
|
-
}),
|
|
1003
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
|
|
1004
|
-
routes: e,
|
|
1005
|
-
mapRouteProperties: me,
|
|
1006
|
-
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
1007
|
-
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
|
|
1008
|
-
window: t == null ? void 0 : t.window
|
|
1009
|
-
}).initialize();
|
|
1010
|
-
}
|
|
1011
|
-
function xt() {
|
|
1012
|
-
var e;
|
|
1013
|
-
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
1014
|
-
return t && t.errors && (t = D({}, t, {
|
|
1015
|
-
errors: gr(t.errors)
|
|
1016
|
-
})), t;
|
|
1017
|
-
}
|
|
1018
|
-
function gr(e) {
|
|
1019
|
-
if (!e) return null;
|
|
1020
|
-
let t = Object.entries(e), r = {};
|
|
1021
|
-
for (let [o, a] of t)
|
|
1022
|
-
if (a && a.__type === "RouteErrorResponse")
|
|
1023
|
-
r[o] = new at(a.status, a.statusText, a.data, a.internal === !0);
|
|
1024
|
-
else if (a && a.__type === "Error") {
|
|
1025
|
-
if (a.__subType) {
|
|
1026
|
-
let l = window[a.__subType];
|
|
1027
|
-
if (typeof l == "function")
|
|
1028
|
-
try {
|
|
1029
|
-
let i = new l(a.message);
|
|
1030
|
-
i.stack = "", r[o] = i;
|
|
1031
|
-
} catch {
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
if (r[o] == null) {
|
|
1035
|
-
let l = new Error(a.message);
|
|
1036
|
-
l.stack = "", r[o] = l;
|
|
1037
|
-
}
|
|
1038
|
-
} else
|
|
1039
|
-
r[o] = a;
|
|
1040
|
-
return r;
|
|
1041
|
-
}
|
|
1042
|
-
const Ee = /* @__PURE__ */ n.createContext({
|
|
1043
|
-
isTransitioning: !1
|
|
1044
|
-
});
|
|
1045
|
-
process.env.NODE_ENV !== "production" && (Ee.displayName = "ViewTransition");
|
|
1046
|
-
const ye = /* @__PURE__ */ n.createContext(/* @__PURE__ */ new Map());
|
|
1047
|
-
process.env.NODE_ENV !== "production" && (ye.displayName = "Fetchers");
|
|
1048
|
-
const Nr = "startTransition", A = n[Nr], br = "flushSync", Ye = Bt[br], Rr = "useId", $e = n[Rr];
|
|
1049
|
-
function wr(e) {
|
|
1050
|
-
A ? A(e) : e();
|
|
1051
|
-
}
|
|
1052
|
-
function q(e) {
|
|
1053
|
-
Ye ? Ye(e) : e();
|
|
1054
|
-
}
|
|
1055
|
-
class Cr {
|
|
1056
|
-
constructor() {
|
|
1057
|
-
this.status = "pending", this.promise = new Promise((t, r) => {
|
|
1058
|
-
this.resolve = (o) => {
|
|
1059
|
-
this.status === "pending" && (this.status = "resolved", t(o));
|
|
1060
|
-
}, this.reject = (o) => {
|
|
1061
|
-
this.status === "pending" && (this.status = "rejected", r(o));
|
|
1062
|
-
};
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
function Sr(e) {
|
|
1067
|
-
let {
|
|
1068
|
-
fallbackElement: t,
|
|
1069
|
-
router: r,
|
|
1070
|
-
future: o
|
|
1071
|
-
} = e, [a, l] = n.useState(r.state), [i, u] = n.useState(), [f, s] = n.useState({
|
|
1072
|
-
isTransitioning: !1
|
|
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) => {
|
|
1078
|
-
let {
|
|
1079
|
-
deletedFetchers: x,
|
|
1080
|
-
flushSync: oe,
|
|
1081
|
-
viewTransitionOpts: K
|
|
1082
|
-
} = F;
|
|
1083
|
-
x.forEach((z) => y.current.delete(z)), R.fetchers.forEach((z, At) => {
|
|
1084
|
-
z.data !== void 0 && y.current.set(At, z.data);
|
|
1085
|
-
});
|
|
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));
|
|
1089
|
-
return;
|
|
1090
|
-
}
|
|
1091
|
-
if (oe) {
|
|
1092
|
-
q(() => {
|
|
1093
|
-
p && (c && c.resolve(), p.skipTransition()), s({
|
|
1094
|
-
isTransitioning: !0,
|
|
1095
|
-
flushSync: !0,
|
|
1096
|
-
currentLocation: K.currentLocation,
|
|
1097
|
-
nextLocation: K.nextLocation
|
|
1098
|
-
});
|
|
1099
|
-
});
|
|
1100
|
-
let z = r.window.document.startViewTransition(() => {
|
|
1101
|
-
q(() => l(R));
|
|
1102
|
-
});
|
|
1103
|
-
z.finished.finally(() => {
|
|
1104
|
-
q(() => {
|
|
1105
|
-
d(void 0), v(void 0), u(void 0), s({
|
|
1106
|
-
isTransitioning: !1
|
|
1107
|
-
});
|
|
1108
|
-
});
|
|
1109
|
-
}), q(() => v(z));
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
p ? (c && c.resolve(), p.skipTransition(), N({
|
|
1113
|
-
state: R,
|
|
1114
|
-
currentLocation: K.currentLocation,
|
|
1115
|
-
nextLocation: K.nextLocation
|
|
1116
|
-
})) : (u(R), s({
|
|
1117
|
-
isTransitioning: !0,
|
|
1118
|
-
flushSync: !1,
|
|
1119
|
-
currentLocation: K.currentLocation,
|
|
1120
|
-
nextLocation: K.nextLocation
|
|
1121
|
-
}));
|
|
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;
|
|
1129
|
-
});
|
|
1130
|
-
x.finished.finally(() => {
|
|
1131
|
-
d(void 0), v(void 0), u(void 0), s({
|
|
1132
|
-
isTransitioning: !1
|
|
1133
|
-
});
|
|
1134
|
-
}), v(x);
|
|
1135
|
-
}
|
|
1136
|
-
}, [h, i, c, r.window]), n.useEffect(() => {
|
|
1137
|
-
c && i && a.location.key === i.location.key && c.resolve();
|
|
1138
|
-
}, [c, p, a.location, i]), n.useEffect(() => {
|
|
1139
|
-
!f.isTransitioning && g && (u(g.state), s({
|
|
1140
|
-
isTransitioning: !0,
|
|
1141
|
-
flushSync: !1,
|
|
1142
|
-
currentLocation: g.currentLocation,
|
|
1143
|
-
nextLocation: g.nextLocation
|
|
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");
|
|
1147
|
-
}, []);
|
|
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, {
|
|
1153
|
-
state: F,
|
|
1154
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1155
|
-
}),
|
|
1156
|
-
replace: (R, F, x) => r.navigate(R, {
|
|
1157
|
-
replace: !0,
|
|
1158
|
-
state: F,
|
|
1159
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1160
|
-
})
|
|
1161
|
-
}), [r]), k = r.basename || "/", J = n.useMemo(() => ({
|
|
1162
|
-
router: r,
|
|
1163
|
-
navigator: b,
|
|
1164
|
-
static: !1,
|
|
1165
|
-
basename: k
|
|
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, {
|
|
1170
|
-
value: J
|
|
1171
|
-
}, /* @__PURE__ */ n.createElement(B.Provider, {
|
|
1172
|
-
value: a
|
|
1173
|
-
}, /* @__PURE__ */ n.createElement(ye.Provider, {
|
|
1174
|
-
value: y.current
|
|
1175
|
-
}, /* @__PURE__ */ n.createElement(Ee.Provider, {
|
|
1176
|
-
value: f
|
|
1177
|
-
}, /* @__PURE__ */ n.createElement(H, {
|
|
1178
|
-
basename: k,
|
|
1179
|
-
location: a.location,
|
|
1180
|
-
navigationType: a.historyAction,
|
|
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,
|
|
1186
|
-
state: a
|
|
1187
|
-
}) : t))))), null);
|
|
1188
|
-
}
|
|
1189
|
-
const _r = /* @__PURE__ */ n.memo(xr);
|
|
1190
|
-
function xr(e) {
|
|
1191
|
-
let {
|
|
1192
|
-
routes: t,
|
|
1193
|
-
future: r,
|
|
1194
|
-
state: o
|
|
1195
|
-
} = e;
|
|
1196
|
-
return pe(t, void 0, o, r);
|
|
1197
|
-
}
|
|
1198
|
-
function Dr(e) {
|
|
1199
|
-
let {
|
|
1200
|
-
basename: t,
|
|
1201
|
-
children: r,
|
|
1202
|
-
future: o,
|
|
1203
|
-
window: a
|
|
1204
|
-
} = e, l = n.useRef();
|
|
1205
|
-
l.current == null && (l.current = nt({
|
|
1206
|
-
window: a,
|
|
1207
|
-
v5Compat: !0
|
|
1208
|
-
}));
|
|
1209
|
-
let i = l.current, [u, f] = n.useState({
|
|
1210
|
-
action: i.action,
|
|
1211
|
-
location: i.location
|
|
1212
|
-
}), {
|
|
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, {
|
|
1218
|
-
basename: t,
|
|
1219
|
-
children: r,
|
|
1220
|
-
location: u.location,
|
|
1221
|
-
navigationType: u.action,
|
|
1222
|
-
navigator: i,
|
|
1223
|
-
future: o
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
function Or(e) {
|
|
1227
|
-
let {
|
|
1228
|
-
basename: t,
|
|
1229
|
-
children: r,
|
|
1230
|
-
future: o,
|
|
1231
|
-
window: a
|
|
1232
|
-
} = e, l = n.useRef();
|
|
1233
|
-
l.current == null && (l.current = ot({
|
|
1234
|
-
window: a,
|
|
1235
|
-
v5Compat: !0
|
|
1236
|
-
}));
|
|
1237
|
-
let i = l.current, [u, f] = n.useState({
|
|
1238
|
-
action: i.action,
|
|
1239
|
-
location: i.location
|
|
1240
|
-
}), {
|
|
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, {
|
|
1246
|
-
basename: t,
|
|
1247
|
-
children: r,
|
|
1248
|
-
location: u.location,
|
|
1249
|
-
navigationType: u.action,
|
|
1250
|
-
navigator: i,
|
|
1251
|
-
future: o
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
function Dt(e) {
|
|
1255
|
-
let {
|
|
1256
|
-
basename: t,
|
|
1257
|
-
children: r,
|
|
1258
|
-
future: o,
|
|
1259
|
-
history: a
|
|
1260
|
-
} = e, [l, i] = n.useState({
|
|
1261
|
-
action: a.action,
|
|
1262
|
-
location: a.location
|
|
1263
|
-
}), {
|
|
1264
|
-
v7_startTransition: u
|
|
1265
|
-
} = o || {}, f = n.useCallback((s) => {
|
|
1266
|
-
u && A ? A(() => i(s)) : i(s);
|
|
1267
|
-
}, [i, u]);
|
|
1268
|
-
return n.useLayoutEffect(() => a.listen(f), [a, f]), /* @__PURE__ */ n.createElement(H, {
|
|
1269
|
-
basename: t,
|
|
1270
|
-
children: r,
|
|
1271
|
-
location: l.location,
|
|
1272
|
-
navigationType: l.action,
|
|
1273
|
-
navigator: a,
|
|
1274
|
-
future: o
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
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) {
|
|
1279
|
-
let {
|
|
1280
|
-
onClick: o,
|
|
1281
|
-
relative: a,
|
|
1282
|
-
reloadDocument: l,
|
|
1283
|
-
replace: i,
|
|
1284
|
-
state: u,
|
|
1285
|
-
target: f,
|
|
1286
|
-
to: s,
|
|
1287
|
-
preventScrollReset: c,
|
|
1288
|
-
viewTransition: d
|
|
1289
|
-
} = t, p = Me(t, pr), {
|
|
1290
|
-
basename: v
|
|
1291
|
-
} = n.useContext(S), g, N = !1;
|
|
1292
|
-
if (typeof s == "string" && Lr.test(s) && (g = s, Pr))
|
|
1293
|
-
try {
|
|
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;
|
|
1296
|
-
} catch {
|
|
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.');
|
|
1298
|
-
}
|
|
1299
|
-
let y = De(s, {
|
|
1300
|
-
relative: a
|
|
1301
|
-
}), w = Tt(s, {
|
|
1302
|
-
replace: i,
|
|
1303
|
-
state: u,
|
|
1304
|
-
target: f,
|
|
1305
|
-
preventScrollReset: c,
|
|
1306
|
-
relative: a,
|
|
1307
|
-
viewTransition: d
|
|
1308
|
-
});
|
|
1309
|
-
function h(E) {
|
|
1310
|
-
o && o(E), E.defaultPrevented || w(E);
|
|
1311
|
-
}
|
|
1312
|
-
return (
|
|
1313
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1314
|
-
/* @__PURE__ */ n.createElement("a", D({}, p, {
|
|
1315
|
-
href: g || y,
|
|
1316
|
-
onClick: N || l ? o : h,
|
|
1317
|
-
ref: r,
|
|
1318
|
-
target: f
|
|
1319
|
-
}))
|
|
1320
|
-
);
|
|
1321
|
-
});
|
|
1322
|
-
process.env.NODE_ENV !== "production" && (je.displayName = "Link");
|
|
1323
|
-
const Ot = /* @__PURE__ */ n.forwardRef(function(t, r) {
|
|
1324
|
-
let {
|
|
1325
|
-
"aria-current": o = "page",
|
|
1326
|
-
caseSensitive: a = !1,
|
|
1327
|
-
className: l = "",
|
|
1328
|
-
end: i = !1,
|
|
1329
|
-
style: u,
|
|
1330
|
-
to: f,
|
|
1331
|
-
viewTransition: s,
|
|
1332
|
-
children: c
|
|
1333
|
-
} = t, d = Me(t, hr), p = Y(f, {
|
|
1334
|
-
relative: d.relative
|
|
1335
|
-
}), v = L(), g = n.useContext(B), {
|
|
1336
|
-
navigator: N,
|
|
1337
|
-
basename: y
|
|
1338
|
-
} = n.useContext(S), w = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1339
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
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);
|
|
1342
|
-
const k = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
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 = {
|
|
1344
|
-
isActive: J,
|
|
1345
|
-
isPending: ne,
|
|
1346
|
-
isTransitioning: w
|
|
1347
|
-
}, F = J ? o : void 0, x;
|
|
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, {
|
|
1351
|
-
"aria-current": F,
|
|
1352
|
-
className: x,
|
|
1353
|
-
ref: r,
|
|
1354
|
-
style: oe,
|
|
1355
|
-
to: f,
|
|
1356
|
-
viewTransition: s
|
|
1357
|
-
}), typeof c == "function" ? c(R) : c);
|
|
1358
|
-
});
|
|
1359
|
-
process.env.NODE_ENV !== "production" && (Ot.displayName = "NavLink");
|
|
1360
|
-
const He = /* @__PURE__ */ n.forwardRef((e, t) => {
|
|
1361
|
-
let {
|
|
1362
|
-
fetcherKey: r,
|
|
1363
|
-
navigate: o,
|
|
1364
|
-
reloadDocument: a,
|
|
1365
|
-
replace: l,
|
|
1366
|
-
state: i,
|
|
1367
|
-
method: u = le,
|
|
1368
|
-
action: f,
|
|
1369
|
-
onSubmit: s,
|
|
1370
|
-
relative: c,
|
|
1371
|
-
preventScrollReset: d,
|
|
1372
|
-
viewTransition: p
|
|
1373
|
-
} = e, v = Me(e, mr), g = ze(), N = Ut(f, {
|
|
1374
|
-
relative: c
|
|
1375
|
-
}), y = u.toLowerCase() === "get" ? "get" : "post", w = (h) => {
|
|
1376
|
-
if (s && s(h), h.defaultPrevented) return;
|
|
1377
|
-
h.preventDefault();
|
|
1378
|
-
let E = h.nativeEvent.submitter, b = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
|
|
1379
|
-
g(E || h.currentTarget, {
|
|
1380
|
-
fetcherKey: r,
|
|
1381
|
-
method: b,
|
|
1382
|
-
navigate: o,
|
|
1383
|
-
replace: l,
|
|
1384
|
-
state: i,
|
|
1385
|
-
relative: c,
|
|
1386
|
-
preventScrollReset: d,
|
|
1387
|
-
viewTransition: p
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
return /* @__PURE__ */ n.createElement("form", D({
|
|
1391
|
-
ref: t,
|
|
1392
|
-
method: y,
|
|
1393
|
-
action: N,
|
|
1394
|
-
onSubmit: a ? s : w
|
|
1395
|
-
}, v));
|
|
1396
|
-
});
|
|
1397
|
-
process.env.NODE_ENV !== "production" && (He.displayName = "Form");
|
|
1398
|
-
function Pt(e) {
|
|
1399
|
-
let {
|
|
1400
|
-
getKey: t,
|
|
1401
|
-
storageKey: r
|
|
1402
|
-
} = e;
|
|
1403
|
-
return Vt({
|
|
1404
|
-
getKey: t,
|
|
1405
|
-
storageKey: r
|
|
1406
|
-
}), null;
|
|
1407
|
-
}
|
|
1408
|
-
process.env.NODE_ENV !== "production" && (Pt.displayName = "ScrollRestoration");
|
|
1409
|
-
var $;
|
|
1410
|
-
(function(e) {
|
|
1411
|
-
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
1412
|
-
})($ || ($ = {}));
|
|
1413
|
-
var ee;
|
|
1414
|
-
(function(e) {
|
|
1415
|
-
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1416
|
-
})(ee || (ee = {}));
|
|
1417
|
-
function Lt(e) {
|
|
1418
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1419
|
-
}
|
|
1420
|
-
function ge(e) {
|
|
1421
|
-
let t = n.useContext(U);
|
|
1422
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
|
|
1423
|
-
}
|
|
1424
|
-
function Ke(e) {
|
|
1425
|
-
let t = n.useContext(B);
|
|
1426
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
|
|
1427
|
-
}
|
|
1428
|
-
function Tt(e, t) {
|
|
1429
|
-
let {
|
|
1430
|
-
target: r,
|
|
1431
|
-
replace: o,
|
|
1432
|
-
state: a,
|
|
1433
|
-
preventScrollReset: l,
|
|
1434
|
-
relative: i,
|
|
1435
|
-
viewTransition: u
|
|
1436
|
-
} = t === void 0 ? {} : t, f = te(), s = L(), c = Y(e, {
|
|
1437
|
-
relative: i
|
|
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, {
|
|
1444
|
-
replace: p,
|
|
1445
|
-
state: a,
|
|
1446
|
-
preventScrollReset: l,
|
|
1447
|
-
relative: i,
|
|
1448
|
-
viewTransition: u
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
}, [s, f, c, o, a, r, e, l, i, u]);
|
|
1452
|
-
}
|
|
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(() => (
|
|
1456
|
-
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1457
|
-
// Once we call that we want those to take precedence, otherwise you can't
|
|
1458
|
-
// remove a param with setSearchParams({}) if it has an initial value
|
|
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]);
|
|
1464
|
-
return [a, i];
|
|
1465
|
-
}
|
|
1466
|
-
function Fr() {
|
|
1467
|
-
if (typeof document > "u")
|
|
1468
|
-
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1469
|
-
}
|
|
1470
|
-
let Ur = 0, Ft = () => "__" + String(++Ur) + "__";
|
|
1471
|
-
function ze() {
|
|
1472
|
-
let {
|
|
1473
|
-
router: e
|
|
1474
|
-
} = ge($.UseSubmit), {
|
|
1475
|
-
basename: t
|
|
1476
|
-
} = n.useContext(S), r = Fe();
|
|
1477
|
-
return n.useCallback(function(o, a) {
|
|
1478
|
-
a === void 0 && (a = {}), Fr();
|
|
1479
|
-
let {
|
|
1480
|
-
action: l,
|
|
1481
|
-
method: i,
|
|
1482
|
-
encType: u,
|
|
1483
|
-
formData: f,
|
|
1484
|
-
body: s
|
|
1485
|
-
} = fr(o, t);
|
|
1486
|
-
if (a.navigate === !1) {
|
|
1487
|
-
let c = a.fetcherKey || Ft();
|
|
1488
|
-
e.fetch(c, r, a.action || l, {
|
|
1489
|
-
preventScrollReset: a.preventScrollReset,
|
|
1490
|
-
formData: f,
|
|
1491
|
-
body: s,
|
|
1492
|
-
formMethod: a.method || i,
|
|
1493
|
-
formEncType: a.encType || u,
|
|
1494
|
-
flushSync: a.flushSync
|
|
1495
|
-
});
|
|
1496
|
-
} else
|
|
1497
|
-
e.navigate(a.action || l, {
|
|
1498
|
-
preventScrollReset: a.preventScrollReset,
|
|
1499
|
-
formData: f,
|
|
1500
|
-
body: s,
|
|
1501
|
-
formMethod: a.method || i,
|
|
1502
|
-
formEncType: a.encType || u,
|
|
1503
|
-
replace: a.replace,
|
|
1504
|
-
state: a.state,
|
|
1505
|
-
fromRouteId: r,
|
|
1506
|
-
flushSync: a.flushSync,
|
|
1507
|
-
viewTransition: a.viewTransition
|
|
1508
|
-
});
|
|
1509
|
-
}, [e, t, r]);
|
|
1510
|
-
}
|
|
1511
|
-
function Ut(e, t) {
|
|
1512
|
-
let {
|
|
1513
|
-
relative: r
|
|
1514
|
-
} = t === void 0 ? {} : t, {
|
|
1515
|
-
basename: o
|
|
1516
|
-
} = n.useContext(S), a = n.useContext(_);
|
|
1517
|
-
a || (process.env.NODE_ENV !== "production" ? m(!1, "useFormAction must be used inside a RouteContext") : m(!1));
|
|
1518
|
-
let [l] = a.matches.slice(-1), i = D({}, Y(e || ".", {
|
|
1519
|
-
relative: r
|
|
1520
|
-
})), u = L();
|
|
1521
|
-
if (e == null) {
|
|
1522
|
-
i.search = u.search;
|
|
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
|
-
}
|
|
1529
|
-
}
|
|
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);
|
|
1531
|
-
}
|
|
1532
|
-
function Vr(e) {
|
|
1533
|
-
var t;
|
|
1534
|
-
let {
|
|
1535
|
-
key: r
|
|
1536
|
-
} = e === void 0 ? {} : e, {
|
|
1537
|
-
router: o
|
|
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) => {
|
|
1547
|
-
p(h, D({}, E, {
|
|
1548
|
-
navigate: !1,
|
|
1549
|
-
fetcherKey: s
|
|
1550
|
-
}));
|
|
1551
|
-
}, [s, p]), g = n.useMemo(() => {
|
|
1552
|
-
let h = /* @__PURE__ */ n.forwardRef((E, b) => /* @__PURE__ */ n.createElement(He, D({}, E, {
|
|
1553
|
-
navigate: !1,
|
|
1554
|
-
fetcherKey: s,
|
|
1555
|
-
ref: b
|
|
1556
|
-
})));
|
|
1557
|
-
return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
|
|
1558
|
-
}, [s]), N = a.fetchers.get(s) || Kt, y = l.get(s);
|
|
1559
|
-
return n.useMemo(() => D({
|
|
1560
|
-
Form: g,
|
|
1561
|
-
submit: v,
|
|
1562
|
-
load: d
|
|
1563
|
-
}, N, {
|
|
1564
|
-
data: y
|
|
1565
|
-
}), [g, v, d, N, y]);
|
|
1566
|
-
}
|
|
1567
|
-
function kr() {
|
|
1568
|
-
let e = Ke(ee.UseFetchers);
|
|
1569
|
-
return Array.from(e.fetchers.entries()).map((t) => {
|
|
1570
|
-
let [r, o] = t;
|
|
1571
|
-
return D({}, o, {
|
|
1572
|
-
key: r
|
|
1573
|
-
});
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
const Je = "react-router-scroll-positions";
|
|
1577
|
-
let ie = {};
|
|
1578
|
-
function Vt(e) {
|
|
1579
|
-
let {
|
|
1580
|
-
getKey: t,
|
|
1581
|
-
storageKey: r
|
|
1582
|
-
} = e === void 0 ? {} : e, {
|
|
1583
|
-
router: o
|
|
1584
|
-
} = ge($.UseScrollRestoration), {
|
|
1585
|
-
restoreScrollPosition: a,
|
|
1586
|
-
preventScrollReset: l
|
|
1587
|
-
} = Ke(ee.UseScrollRestoration), {
|
|
1588
|
-
basename: i
|
|
1589
|
-
} = n.useContext(S), u = L(), f = Ve(), s = Ue();
|
|
1590
|
-
n.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1591
|
-
window.history.scrollRestoration = "auto";
|
|
1592
|
-
}), []), Ar(n.useCallback(() => {
|
|
1593
|
-
if (s.state === "idle") {
|
|
1594
|
-
let c = (t ? t(u, f) : null) || u.key;
|
|
1595
|
-
ie[c] = window.scrollY;
|
|
1596
|
-
}
|
|
1597
|
-
try {
|
|
1598
|
-
sessionStorage.setItem(r || Je, JSON.stringify(ie));
|
|
1599
|
-
} catch (c) {
|
|
1600
|
-
process.env.NODE_ENV !== "production" && C(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
|
|
1601
|
-
}
|
|
1602
|
-
window.history.scrollRestoration = "auto";
|
|
1603
|
-
}, [r, t, s.state, u, f])), typeof document < "u" && (n.useLayoutEffect(() => {
|
|
1604
|
-
try {
|
|
1605
|
-
let c = sessionStorage.getItem(r || Je);
|
|
1606
|
-
c && (ie = JSON.parse(c));
|
|
1607
|
-
} catch {
|
|
1608
|
-
}
|
|
1609
|
-
}, [r]), n.useLayoutEffect(() => {
|
|
1610
|
-
let c = t && i !== "/" ? (p, v) => t(
|
|
1611
|
-
// Strip the basename to match useLocation()
|
|
1612
|
-
D({}, p, {
|
|
1613
|
-
pathname: T(p.pathname, i) || p.pathname
|
|
1614
|
-
}),
|
|
1615
|
-
v
|
|
1616
|
-
) : t, d = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
|
|
1617
|
-
return () => d && d();
|
|
1618
|
-
}, [o, i, t]), n.useLayoutEffect(() => {
|
|
1619
|
-
if (a !== !1) {
|
|
1620
|
-
if (typeof a == "number") {
|
|
1621
|
-
window.scrollTo(0, a);
|
|
1622
|
-
return;
|
|
1623
|
-
}
|
|
1624
|
-
if (u.hash) {
|
|
1625
|
-
let c = document.getElementById(decodeURIComponent(u.hash.slice(1)));
|
|
1626
|
-
if (c) {
|
|
1627
|
-
c.scrollIntoView();
|
|
1628
|
-
return;
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
l !== !0 && window.scrollTo(0, 0);
|
|
1632
|
-
}
|
|
1633
|
-
}, [u, a, l]));
|
|
1634
|
-
}
|
|
1635
|
-
function Ir(e, t) {
|
|
1636
|
-
let {
|
|
1637
|
-
capture: r
|
|
1638
|
-
} = t || {};
|
|
1639
|
-
n.useEffect(() => {
|
|
1640
|
-
let o = r != null ? {
|
|
1641
|
-
capture: r
|
|
1642
|
-
} : void 0;
|
|
1643
|
-
return window.addEventListener("beforeunload", e, o), () => {
|
|
1644
|
-
window.removeEventListener("beforeunload", e, o);
|
|
1645
|
-
};
|
|
1646
|
-
}, [e, r]);
|
|
1647
|
-
}
|
|
1648
|
-
function Ar(e, t) {
|
|
1649
|
-
let {
|
|
1650
|
-
capture: r
|
|
1651
|
-
} = {};
|
|
1652
|
-
n.useEffect(() => {
|
|
1653
|
-
let o = r != null ? {
|
|
1654
|
-
capture: r
|
|
1655
|
-
} : void 0;
|
|
1656
|
-
return window.addEventListener("pagehide", e, o), () => {
|
|
1657
|
-
window.removeEventListener("pagehide", e, o);
|
|
1658
|
-
};
|
|
1659
|
-
}, [e, r]);
|
|
1660
|
-
}
|
|
1661
|
-
function Br(e) {
|
|
1662
|
-
let {
|
|
1663
|
-
when: t,
|
|
1664
|
-
message: r
|
|
1665
|
-
} = e, o = Ae(t);
|
|
1666
|
-
n.useEffect(() => {
|
|
1667
|
-
o.state === "blocked" && (window.confirm(r) ? setTimeout(o.proceed, 0) : o.reset());
|
|
1668
|
-
}, [o, r]), n.useEffect(() => {
|
|
1669
|
-
o.state === "blocked" && !t && o.reset();
|
|
1670
|
-
}, [o, t]);
|
|
1671
|
-
}
|
|
1672
|
-
function kt(e, t) {
|
|
1673
|
-
t === void 0 && (t = {});
|
|
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));
|
|
1676
|
-
let {
|
|
1677
|
-
basename: o
|
|
1678
|
-
} = ge($.useViewTransitionState), a = Y(e, {
|
|
1679
|
-
relative: t.relative
|
|
1680
|
-
});
|
|
1681
|
-
if (!r.isTransitioning)
|
|
1682
|
-
return !1;
|
|
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;
|
|
1685
|
-
}
|
|
1686
|
-
const Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1687
|
-
__proto__: null,
|
|
1688
|
-
AbortedDeferredError: Se,
|
|
1689
|
-
Await: Ct,
|
|
1690
|
-
BrowserRouter: Dr,
|
|
1691
|
-
Form: He,
|
|
1692
|
-
HashRouter: Or,
|
|
1693
|
-
Link: je,
|
|
1694
|
-
MemoryRouter: Nt,
|
|
1695
|
-
NavLink: Ot,
|
|
1696
|
-
Navigate: bt,
|
|
1697
|
-
get NavigationType() {
|
|
1698
|
-
return de;
|
|
1699
|
-
},
|
|
1700
|
-
Outlet: Rt,
|
|
1701
|
-
Route: Be,
|
|
1702
|
-
Router: H,
|
|
1703
|
-
RouterProvider: Sr,
|
|
1704
|
-
Routes: wt,
|
|
1705
|
-
ScrollRestoration: Pt,
|
|
1706
|
-
UNSAFE_DataRouterContext: U,
|
|
1707
|
-
UNSAFE_DataRouterStateContext: B,
|
|
1708
|
-
UNSAFE_ErrorResponseImpl: at,
|
|
1709
|
-
UNSAFE_FetchersContext: ye,
|
|
1710
|
-
UNSAFE_LocationContext: M,
|
|
1711
|
-
UNSAFE_NavigationContext: S,
|
|
1712
|
-
UNSAFE_RouteContext: _,
|
|
1713
|
-
UNSAFE_ViewTransitionContext: Ee,
|
|
1714
|
-
UNSAFE_useRouteId: Fe,
|
|
1715
|
-
UNSAFE_useScrollRestoration: Vt,
|
|
1716
|
-
createBrowserRouter: Er,
|
|
1717
|
-
createHashRouter: yr,
|
|
1718
|
-
createMemoryRouter: _t,
|
|
1719
|
-
createPath: Q,
|
|
1720
|
-
createRoutesFromChildren: W,
|
|
1721
|
-
createRoutesFromElements: W,
|
|
1722
|
-
createSearchParams: ce,
|
|
1723
|
-
defer: Ge,
|
|
1724
|
-
generatePath: Xe,
|
|
1725
|
-
isRouteErrorResponse: Ce,
|
|
1726
|
-
json: Qe,
|
|
1727
|
-
matchPath: X,
|
|
1728
|
-
matchRoutes: we,
|
|
1729
|
-
parsePath: fe,
|
|
1730
|
-
redirect: Ze,
|
|
1731
|
-
redirectDocument: et,
|
|
1732
|
-
renderMatches: St,
|
|
1733
|
-
replace: tt,
|
|
1734
|
-
resolvePath: rt,
|
|
1735
|
-
unstable_HistoryRouter: Dt,
|
|
1736
|
-
unstable_usePrompt: Br,
|
|
1737
|
-
useActionData: Et,
|
|
1738
|
-
useAsyncError: yt,
|
|
1739
|
-
useAsyncValue: Ie,
|
|
1740
|
-
useBeforeUnload: Ir,
|
|
1741
|
-
useBlocker: Ae,
|
|
1742
|
-
useFetcher: Vr,
|
|
1743
|
-
useFetchers: kr,
|
|
1744
|
-
useFormAction: Ut,
|
|
1745
|
-
useHref: De,
|
|
1746
|
-
useInRouterContext: V,
|
|
1747
|
-
useLinkClickHandler: Tt,
|
|
1748
|
-
useLoaderData: mt,
|
|
1749
|
-
useLocation: L,
|
|
1750
|
-
useMatch: lt,
|
|
1751
|
-
useMatches: Ve,
|
|
1752
|
-
useNavigate: te,
|
|
1753
|
-
useNavigation: Ue,
|
|
1754
|
-
useNavigationType: it,
|
|
1755
|
-
useOutlet: Oe,
|
|
1756
|
-
useOutletContext: dt,
|
|
1757
|
-
useParams: ft,
|
|
1758
|
-
useResolvedPath: Y,
|
|
1759
|
-
useRevalidator: ht,
|
|
1760
|
-
useRouteError: ke,
|
|
1761
|
-
useRouteLoaderData: vt,
|
|
1762
|
-
useRoutes: Pe,
|
|
1763
|
-
useSearchParams: Tr,
|
|
1764
|
-
useSubmit: ze,
|
|
1765
|
-
useViewTransitionState: kt
|
|
1766
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1767
|
-
export {
|
|
1768
|
-
je as L,
|
|
1769
|
-
bt as N,
|
|
1770
|
-
Rt as O,
|
|
1771
|
-
Sr as R,
|
|
1772
|
-
te as a,
|
|
1773
|
-
Tr as b,
|
|
1774
|
-
ft as c,
|
|
1775
|
-
ke as d,
|
|
1776
|
-
jr as e,
|
|
1777
|
-
Hr as f,
|
|
1778
|
-
lt as g,
|
|
1779
|
-
Ot as h,
|
|
1780
|
-
Ue as i,
|
|
1781
|
-
L as u
|
|
1782
|
-
};
|
|
1783
|
-
//# sourceMappingURL=index-DM9hrcCG.js.map
|