zudoku 0.6.2-dev.5 → 0.6.2-dev.6

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.
Files changed (75) hide show
  1. package/dist/config/validators/validate.d.ts +26 -0
  2. package/dist/config/validators/validate.js +6 -0
  3. package/dist/config/validators/validate.js.map +1 -1
  4. package/dist/vite/prerender.js +23 -0
  5. package/dist/vite/prerender.js.map +1 -1
  6. package/lib/AuthenticationPlugin-BMjOjKqE.js +54 -0
  7. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-BMjOjKqE.js.map} +1 -1
  8. package/lib/CategoryHeading-BE8e6QdS.js +9 -0
  9. package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-BE8e6QdS.js.map} +1 -1
  10. package/lib/DeveloperHint-Bl9gIdNI.js +12 -0
  11. package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-Bl9gIdNI.js.map} +1 -1
  12. package/lib/ErrorPage-CPR1XVKW.js +12 -0
  13. package/lib/{ErrorPage-knunPbKI.js.map → ErrorPage-CPR1XVKW.js.map} +1 -1
  14. package/lib/Input-BBlyeDuG.js +2192 -0
  15. package/lib/{Input-BEDZAKw0.js.map → Input-BBlyeDuG.js.map} +1 -1
  16. package/lib/{Markdown-B4aR03g6.js → Markdown-CCNihH_N.js} +2641 -2650
  17. package/lib/{Markdown-B4aR03g6.js.map → Markdown-CCNihH_N.js.map} +1 -1
  18. package/lib/MdxPage-BavkYqzi.js +140 -0
  19. package/lib/{MdxPage-BZyQsH8Z.js.map → MdxPage-BavkYqzi.js.map} +1 -1
  20. package/lib/OperationList-C6Ps2keZ.js +460 -0
  21. package/lib/{OperationList-2NeWEM0u.js.map → OperationList-C6Ps2keZ.js.map} +1 -1
  22. package/lib/Route-xRJ9mJgH.js +13 -0
  23. package/lib/{Route-BZPewmrN.js.map → Route-xRJ9mJgH.js.map} +1 -1
  24. package/lib/{SidebarBadge-COz0hgfa.js → SidebarBadge-2JcxswKF.js} +41 -41
  25. package/lib/{SidebarBadge-COz0hgfa.js.map → SidebarBadge-2JcxswKF.js.map} +1 -1
  26. package/lib/SlotletProvider-CuB3Ts8r.js +213 -0
  27. package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-CuB3Ts8r.js.map} +1 -1
  28. package/lib/Spinner-BlxzaFFF.js +6 -0
  29. package/lib/Spinner-BlxzaFFF.js.map +1 -0
  30. package/lib/{ZudokuContext-cr-pTRY1.js → ZudokuContext-JoyeA9dT.js} +65 -66
  31. package/lib/{ZudokuContext-cr-pTRY1.js.map → ZudokuContext-JoyeA9dT.js.map} +1 -1
  32. package/lib/{index-Dv2KZuEw.js → index-BF4cn28H.js} +1804 -1991
  33. package/lib/{index-Dv2KZuEw.js.map → index-BF4cn28H.js.map} +1 -1
  34. package/lib/{index-Zezcv0xb.js → index-BLvMkqjO.js} +5 -5
  35. package/lib/{index-Zezcv0xb.js.map → index-BLvMkqjO.js.map} +1 -1
  36. package/lib/{index-1EDgIO6b.js → index-G1-TGLO1.js} +4 -4
  37. package/lib/{index-1EDgIO6b.js.map → index-G1-TGLO1.js.map} +1 -1
  38. package/lib/jsx-runtime-lNnQYwFN.js +2403 -0
  39. package/lib/jsx-runtime-lNnQYwFN.js.map +1 -0
  40. package/lib/{utils-ByIc_KIM.js → utils-B8R4grFM.js} +97 -98
  41. package/lib/{utils-ByIc_KIM.js.map → utils-B8R4grFM.js.map} +1 -1
  42. package/lib/zudoku.auth-auth0.js +16 -21
  43. package/lib/zudoku.auth-auth0.js.map +1 -1
  44. package/lib/zudoku.auth-clerk.js +32 -37
  45. package/lib/zudoku.auth-clerk.js.map +1 -1
  46. package/lib/zudoku.auth-openid.js +485 -505
  47. package/lib/zudoku.auth-openid.js.map +1 -1
  48. package/lib/zudoku.components.js +1531 -1659
  49. package/lib/zudoku.components.js.map +1 -1
  50. package/lib/zudoku.plugin-api-keys.js +150 -214
  51. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  52. package/lib/zudoku.plugin-custom-page.js +5 -6
  53. package/lib/zudoku.plugin-custom-page.js.map +1 -1
  54. package/lib/zudoku.plugin-markdown.js +12 -13
  55. package/lib/zudoku.plugin-markdown.js.map +1 -1
  56. package/lib/zudoku.plugin-openapi.js +7 -8
  57. package/lib/zudoku.plugin-openapi.js.map +1 -1
  58. package/lib/zudoku.plugin-search-inkeep.js +20 -21
  59. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  60. package/package.json +2 -2
  61. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  62. package/lib/CategoryHeading-XnFqN2lJ.js +0 -10
  63. package/lib/DeveloperHint-FBb2uXJe.js +0 -16
  64. package/lib/ErrorPage-knunPbKI.js +0 -18
  65. package/lib/Input-BEDZAKw0.js +0 -2198
  66. package/lib/MdxPage-BZyQsH8Z.js +0 -172
  67. package/lib/OperationList-2NeWEM0u.js +0 -560
  68. package/lib/Route-BZPewmrN.js +0 -14
  69. package/lib/SlotletProvider-DJMaOUDs.js +0 -238
  70. package/lib/Spinner-3cQDBVGr.js +0 -7
  71. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  72. package/lib/index-BG0g4WW0.js +0 -1771
  73. package/lib/index-BG0g4WW0.js.map +0 -1
  74. package/lib/jsx-runtime-B6kdoens.js +0 -635
  75. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
@@ -0,0 +1,2403 @@
1
+ import * as a from "react";
2
+ import tr from "react";
3
+ import * as En from "react-dom";
4
+ import { i as y, j as be, g as nt, w as U, a as at, m as ot, A as Ve, p as Ie, s as G, b as it, c as Re, d as yn, e as gn, I as bn, f as rr, h as st, k as lt, l as _e, n as nr, o as ar, q as or, r as ir, t as sr, u as lr, v as ur, x as cr, E as fr, y as Rn } from "./router-D2p7Olpn.js";
5
+ /**
6
+ * React Router v6.25.1
7
+ *
8
+ * Copyright (c) Remix Software Inc.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE.md file in the root directory of this source tree.
12
+ *
13
+ * @license MIT
14
+ */
15
+ function Q() {
16
+ return Q = Object.assign ? Object.assign.bind() : function(e) {
17
+ for (var t = 1; t < arguments.length; t++) {
18
+ var r = arguments[t];
19
+ for (var o in r)
20
+ Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
21
+ }
22
+ return e;
23
+ }, Q.apply(this, arguments);
24
+ }
25
+ const X = /* @__PURE__ */ a.createContext(null);
26
+ process.env.NODE_ENV !== "production" && (X.displayName = "DataRouter");
27
+ const te = /* @__PURE__ */ a.createContext(null);
28
+ process.env.NODE_ENV !== "production" && (te.displayName = "DataRouterState");
29
+ const we = /* @__PURE__ */ a.createContext(null);
30
+ process.env.NODE_ENV !== "production" && (we.displayName = "Await");
31
+ const I = /* @__PURE__ */ a.createContext(null);
32
+ process.env.NODE_ENV !== "production" && (I.displayName = "Navigation");
33
+ const re = /* @__PURE__ */ a.createContext(null);
34
+ process.env.NODE_ENV !== "production" && (re.displayName = "Location");
35
+ const j = /* @__PURE__ */ a.createContext({
36
+ outlet: null,
37
+ matches: [],
38
+ isDataRoute: !1
39
+ });
40
+ process.env.NODE_ENV !== "production" && (j.displayName = "Route");
41
+ const ut = /* @__PURE__ */ a.createContext(null);
42
+ process.env.NODE_ENV !== "production" && (ut.displayName = "RouteError");
43
+ function ct(e, t) {
44
+ let {
45
+ relative: r
46
+ } = t === void 0 ? {} : t;
47
+ Z() || (process.env.NODE_ENV !== "production" ? y(
48
+ !1,
49
+ // TODO: This error is probably because they somehow have 2 versions of the
50
+ // router loaded. We can help them understand how to avoid that.
51
+ "useHref() may be used only in the context of a <Router> component."
52
+ ) : y(!1));
53
+ let {
54
+ basename: o,
55
+ navigator: i
56
+ } = a.useContext(I), {
57
+ hash: l,
58
+ pathname: s,
59
+ search: f
60
+ } = ue(e, {
61
+ relative: r
62
+ }), p = s;
63
+ return o !== "/" && (p = s === "/" ? o : be([o, s])), i.createHref({
64
+ pathname: p,
65
+ search: f,
66
+ hash: l
67
+ });
68
+ }
69
+ function Z() {
70
+ return a.useContext(re) != null;
71
+ }
72
+ function z() {
73
+ return Z() || (process.env.NODE_ENV !== "production" ? y(
74
+ !1,
75
+ // TODO: This error is probably because they somehow have 2 versions of the
76
+ // router loaded. We can help them understand how to avoid that.
77
+ "useLocation() may be used only in the context of a <Router> component."
78
+ ) : y(!1)), a.useContext(re).location;
79
+ }
80
+ function dr() {
81
+ return a.useContext(re).navigationType;
82
+ }
83
+ function pr(e) {
84
+ Z() || (process.env.NODE_ENV !== "production" ? y(
85
+ !1,
86
+ // TODO: This error is probably because they somehow have 2 versions of the
87
+ // router loaded. We can help them understand how to avoid that.
88
+ "useMatch() may be used only in the context of a <Router> component."
89
+ ) : y(!1));
90
+ let {
91
+ pathname: t
92
+ } = z();
93
+ return a.useMemo(() => Re(e, yn(t)), [t, e]);
94
+ }
95
+ const vr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
96
+ function hr(e) {
97
+ a.useContext(I).static || a.useLayoutEffect(e);
98
+ }
99
+ function Ce() {
100
+ let {
101
+ isDataRoute: e
102
+ } = a.useContext(j);
103
+ return e ? Pn() : _n();
104
+ }
105
+ function _n() {
106
+ Z() || (process.env.NODE_ENV !== "production" ? y(
107
+ !1,
108
+ // TODO: This error is probably because they somehow have 2 versions of the
109
+ // router loaded. We can help them understand how to avoid that.
110
+ "useNavigate() may be used only in the context of a <Router> component."
111
+ ) : y(!1));
112
+ let e = a.useContext(X), {
113
+ basename: t,
114
+ future: r,
115
+ navigator: o
116
+ } = a.useContext(I), {
117
+ matches: i
118
+ } = a.useContext(j), {
119
+ pathname: l
120
+ } = z(), s = JSON.stringify(nt(i, r.v7_relativeSplatPath)), f = a.useRef(!1);
121
+ return hr(() => {
122
+ f.current = !0;
123
+ }), a.useCallback(function(u, c) {
124
+ if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && U(f.current, vr), !f.current) return;
125
+ if (typeof u == "number") {
126
+ o.go(u);
127
+ return;
128
+ }
129
+ let v = at(u, JSON.parse(s), l, c.relative === "path");
130
+ e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : be([t, v.pathname])), (c.replace ? o.replace : o.push)(v, c.state, c);
131
+ }, [t, o, s, l, e]);
132
+ }
133
+ const mr = /* @__PURE__ */ a.createContext(null);
134
+ function Er() {
135
+ return a.useContext(mr);
136
+ }
137
+ function ft(e) {
138
+ let t = a.useContext(j).outlet;
139
+ return t && /* @__PURE__ */ a.createElement(mr.Provider, {
140
+ value: e
141
+ }, t);
142
+ }
143
+ function yr() {
144
+ let {
145
+ matches: e
146
+ } = a.useContext(j), t = e[e.length - 1];
147
+ return t ? t.params : {};
148
+ }
149
+ function ue(e, t) {
150
+ let {
151
+ relative: r
152
+ } = t === void 0 ? {} : t, {
153
+ future: o
154
+ } = a.useContext(I), {
155
+ matches: i
156
+ } = a.useContext(j), {
157
+ pathname: l
158
+ } = z(), s = JSON.stringify(nt(i, o.v7_relativeSplatPath));
159
+ return a.useMemo(() => at(e, JSON.parse(s), l, r === "path"), [e, s, l, r]);
160
+ }
161
+ function dt(e, t) {
162
+ return je(e, t);
163
+ }
164
+ function je(e, t, r, o) {
165
+ Z() || (process.env.NODE_ENV !== "production" ? y(
166
+ !1,
167
+ // TODO: This error is probably because they somehow have 2 versions of the
168
+ // router loaded. We can help them understand how to avoid that.
169
+ "useRoutes() may be used only in the context of a <Router> component."
170
+ ) : y(!1));
171
+ let {
172
+ navigator: i
173
+ } = a.useContext(I), {
174
+ matches: l
175
+ } = a.useContext(j), s = l[l.length - 1], f = s ? s.params : {}, p = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", c = s && s.route;
176
+ if (process.env.NODE_ENV !== "production") {
177
+ let h = c && c.path || "";
178
+ Cr(p, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + p + '" (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.
179
+
180
+ ` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
181
+ }
182
+ let v = z(), E;
183
+ if (t) {
184
+ var b;
185
+ let h = typeof t == "string" ? Ie(t) : t;
186
+ u === "/" || (b = h.pathname) != null && b.startsWith(u) || (process.env.NODE_ENV !== "production" ? y(!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 "' + u + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : y(!1)), E = h;
187
+ } else
188
+ E = v;
189
+ let w = E.pathname || "/", O = w;
190
+ if (u !== "/") {
191
+ let h = u.replace(/^\//, "").split("/");
192
+ O = "/" + w.replace(/^\//, "").split("/").slice(h.length).join("/");
193
+ }
194
+ let S = ot(e, {
195
+ pathname: O
196
+ });
197
+ process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && U(c || S != null, 'No routes matched location "' + E.pathname + E.search + E.hash + '" '), process.env.NODE_ENV !== "production" && U(S == null || S[S.length - 1].route.element !== void 0 || S[S.length - 1].route.Component !== void 0 || S[S.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + E.pathname + E.search + E.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.'));
198
+ let T = gr(S && S.map((h) => Object.assign({}, h, {
199
+ params: Object.assign({}, f, h.params),
200
+ pathname: be([
201
+ u,
202
+ // Re-encode pathnames that were decoded inside matchRoutes
203
+ i.encodeLocation ? i.encodeLocation(h.pathname).pathname : h.pathname
204
+ ]),
205
+ pathnameBase: h.pathnameBase === "/" ? u : be([
206
+ u,
207
+ // Re-encode pathnames that were decoded inside matchRoutes
208
+ i.encodeLocation ? i.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
209
+ ])
210
+ })), l, r, o);
211
+ return t && T ? /* @__PURE__ */ a.createElement(re.Provider, {
212
+ value: {
213
+ location: Q({
214
+ pathname: "/",
215
+ search: "",
216
+ hash: "",
217
+ state: null,
218
+ key: "default"
219
+ }, E),
220
+ navigationType: Ve.Pop
221
+ }
222
+ }, T) : T;
223
+ }
224
+ function wn() {
225
+ let e = yt(), t = it(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)", i = {
226
+ padding: "0.5rem",
227
+ backgroundColor: o
228
+ }, l = {
229
+ padding: "2px 4px",
230
+ backgroundColor: o
231
+ }, s = null;
232
+ return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), s = /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ a.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ a.createElement("code", {
233
+ style: l
234
+ }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ a.createElement("code", {
235
+ style: l
236
+ }, "errorElement"), " prop on your route."))), /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ a.createElement("h3", {
237
+ style: {
238
+ fontStyle: "italic"
239
+ }
240
+ }, t), r ? /* @__PURE__ */ a.createElement("pre", {
241
+ style: i
242
+ }, r) : null, s);
243
+ }
244
+ const Sn = /* @__PURE__ */ a.createElement(wn, null);
245
+ class Cn extends a.Component {
246
+ constructor(t) {
247
+ super(t), this.state = {
248
+ location: t.location,
249
+ revalidation: t.revalidation,
250
+ error: t.error
251
+ };
252
+ }
253
+ static getDerivedStateFromError(t) {
254
+ return {
255
+ error: t
256
+ };
257
+ }
258
+ static getDerivedStateFromProps(t, r) {
259
+ return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
260
+ error: t.error,
261
+ location: t.location,
262
+ revalidation: t.revalidation
263
+ } : {
264
+ error: t.error !== void 0 ? t.error : r.error,
265
+ location: r.location,
266
+ revalidation: t.revalidation || r.revalidation
267
+ };
268
+ }
269
+ componentDidCatch(t, r) {
270
+ console.error("React Router caught the following error during render", t, r);
271
+ }
272
+ render() {
273
+ return this.state.error !== void 0 ? /* @__PURE__ */ a.createElement(j.Provider, {
274
+ value: this.props.routeContext
275
+ }, /* @__PURE__ */ a.createElement(ut.Provider, {
276
+ value: this.state.error,
277
+ children: this.props.component
278
+ })) : this.props.children;
279
+ }
280
+ }
281
+ function Nn(e) {
282
+ let {
283
+ routeContext: t,
284
+ match: r,
285
+ children: o
286
+ } = e, i = a.useContext(X);
287
+ return i && i.static && i.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ a.createElement(j.Provider, {
288
+ value: t
289
+ }, o);
290
+ }
291
+ function gr(e, t, r, o) {
292
+ var i;
293
+ if (t === void 0 && (t = []), r === void 0 && (r = null), o === void 0 && (o = null), e == null) {
294
+ var l;
295
+ if ((l = r) != null && l.errors)
296
+ e = r.matches;
297
+ else
298
+ return null;
299
+ }
300
+ let s = e, f = (i = r) == null ? void 0 : i.errors;
301
+ if (f != null) {
302
+ let c = s.findIndex((v) => v.route.id && (f == null ? void 0 : f[v.route.id]) !== void 0);
303
+ c >= 0 || (process.env.NODE_ENV !== "production" ? y(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(f).join(",")) : y(!1)), s = s.slice(0, Math.min(s.length, c + 1));
304
+ }
305
+ let p = !1, u = -1;
306
+ if (r && o && o.v7_partialHydration)
307
+ for (let c = 0; c < s.length; c++) {
308
+ let v = s[c];
309
+ if ((v.route.HydrateFallback || v.route.hydrateFallbackElement) && (u = c), v.route.id) {
310
+ let {
311
+ loaderData: E,
312
+ errors: b
313
+ } = r, w = v.route.loader && E[v.route.id] === void 0 && (!b || b[v.route.id] === void 0);
314
+ if (v.route.lazy || w) {
315
+ p = !0, u >= 0 ? s = s.slice(0, u + 1) : s = [s[0]];
316
+ break;
317
+ }
318
+ }
319
+ }
320
+ return s.reduceRight((c, v, E) => {
321
+ let b, w = !1, O = null, S = null;
322
+ r && (b = f && v.route.id ? f[v.route.id] : void 0, O = v.route.errorElement || Sn, p && (u < 0 && E === 0 ? (Cr("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), w = !0, S = null) : u === E && (w = !0, S = v.route.hydrateFallbackElement || null)));
323
+ let T = t.concat(s.slice(0, E + 1)), h = () => {
324
+ let R;
325
+ return b ? R = O : w ? R = S : v.route.Component ? R = /* @__PURE__ */ a.createElement(v.route.Component, null) : v.route.element ? R = v.route.element : R = c, /* @__PURE__ */ a.createElement(Nn, {
326
+ match: v,
327
+ routeContext: {
328
+ outlet: c,
329
+ matches: T,
330
+ isDataRoute: r != null
331
+ },
332
+ children: R
333
+ });
334
+ };
335
+ return r && (v.route.ErrorBoundary || v.route.errorElement || E === 0) ? /* @__PURE__ */ a.createElement(Cn, {
336
+ location: r.location,
337
+ revalidation: r.revalidation,
338
+ component: O,
339
+ error: b,
340
+ children: h(),
341
+ routeContext: {
342
+ outlet: null,
343
+ matches: T,
344
+ isDataRoute: !0
345
+ }
346
+ }) : h();
347
+ }, null);
348
+ }
349
+ var Me = /* @__PURE__ */ function(e) {
350
+ return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
351
+ }(Me || {}), W = /* @__PURE__ */ function(e) {
352
+ 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;
353
+ }(W || {});
354
+ function pt(e) {
355
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
356
+ }
357
+ function vt(e) {
358
+ let t = a.useContext(X);
359
+ return t || (process.env.NODE_ENV !== "production" ? y(!1, pt(e)) : y(!1)), t;
360
+ }
361
+ function ne(e) {
362
+ let t = a.useContext(te);
363
+ return t || (process.env.NODE_ENV !== "production" ? y(!1, pt(e)) : y(!1)), t;
364
+ }
365
+ function xn(e) {
366
+ let t = a.useContext(j);
367
+ return t || (process.env.NODE_ENV !== "production" ? y(!1, pt(e)) : y(!1)), t;
368
+ }
369
+ function Ne(e) {
370
+ let t = xn(e), r = t.matches[t.matches.length - 1];
371
+ return r.route.id || (process.env.NODE_ENV !== "production" ? y(!1, e + ' can only be used on routes that contain a unique "id"') : y(!1)), r.route.id;
372
+ }
373
+ function ht() {
374
+ return Ne(W.UseRouteId);
375
+ }
376
+ function mt() {
377
+ return ne(W.UseNavigation).navigation;
378
+ }
379
+ function br() {
380
+ let e = vt(Me.UseRevalidator), t = ne(W.UseRevalidator);
381
+ return a.useMemo(() => ({
382
+ revalidate: e.router.revalidate,
383
+ state: t.revalidation
384
+ }), [e.router.revalidate, t.revalidation]);
385
+ }
386
+ function Et() {
387
+ let {
388
+ matches: e,
389
+ loaderData: t
390
+ } = ne(W.UseMatches);
391
+ return a.useMemo(() => e.map((r) => gn(r, t)), [e, t]);
392
+ }
393
+ function Rr() {
394
+ let e = ne(W.UseLoaderData), t = Ne(W.UseLoaderData);
395
+ if (e.errors && e.errors[t] != null) {
396
+ console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
397
+ return;
398
+ }
399
+ return e.loaderData[t];
400
+ }
401
+ function _r(e) {
402
+ return ne(W.UseRouteLoaderData).loaderData[e];
403
+ }
404
+ function wr() {
405
+ let e = ne(W.UseActionData), t = Ne(W.UseLoaderData);
406
+ return e.actionData ? e.actionData[t] : void 0;
407
+ }
408
+ function yt() {
409
+ var e;
410
+ let t = a.useContext(ut), r = ne(W.UseRouteError), o = Ne(W.UseRouteError);
411
+ return t !== void 0 ? t : (e = r.errors) == null ? void 0 : e[o];
412
+ }
413
+ function gt() {
414
+ let e = a.useContext(we);
415
+ return e == null ? void 0 : e._data;
416
+ }
417
+ function Sr() {
418
+ let e = a.useContext(we);
419
+ return e == null ? void 0 : e._error;
420
+ }
421
+ let On = 0;
422
+ function bt(e) {
423
+ let {
424
+ router: t,
425
+ basename: r
426
+ } = vt(Me.UseBlocker), o = ne(W.UseBlocker), [i, l] = a.useState(""), s = a.useCallback((f) => {
427
+ if (typeof e != "function")
428
+ return !!e;
429
+ if (r === "/")
430
+ return e(f);
431
+ let {
432
+ currentLocation: p,
433
+ nextLocation: u,
434
+ historyAction: c
435
+ } = f;
436
+ return e({
437
+ currentLocation: Q({}, p, {
438
+ pathname: G(p.pathname, r) || p.pathname
439
+ }),
440
+ nextLocation: Q({}, u, {
441
+ pathname: G(u.pathname, r) || u.pathname
442
+ }),
443
+ historyAction: c
444
+ });
445
+ }, [r, e]);
446
+ return a.useEffect(() => {
447
+ let f = String(++On);
448
+ return l(f), () => t.deleteBlocker(f);
449
+ }, [t]), a.useEffect(() => {
450
+ i !== "" && t.getBlocker(i, s);
451
+ }, [t, i, s]), i && o.blockers.has(i) ? o.blockers.get(i) : bn;
452
+ }
453
+ function Pn() {
454
+ let {
455
+ router: e
456
+ } = vt(Me.UseNavigateStable), t = Ne(W.UseNavigateStable), r = a.useRef(!1);
457
+ return hr(() => {
458
+ r.current = !0;
459
+ }), a.useCallback(function(i, l) {
460
+ l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && U(r.current, vr), r.current && (typeof i == "number" ? e.navigate(i) : e.navigate(i, Q({
461
+ fromRouteId: t
462
+ }, l)));
463
+ }, [e, t]);
464
+ }
465
+ const qt = {};
466
+ function Cr(e, t, r) {
467
+ !t && !qt[e] && (qt[e] = !0, process.env.NODE_ENV !== "production" && U(!1, r));
468
+ }
469
+ const Tn = "startTransition", Ue = a[Tn];
470
+ function Dn(e) {
471
+ let {
472
+ fallbackElement: t,
473
+ router: r,
474
+ future: o
475
+ } = e, [i, l] = a.useState(r.state), {
476
+ v7_startTransition: s
477
+ } = o || {}, f = a.useCallback((v) => {
478
+ s && Ue ? Ue(() => l(v)) : l(v);
479
+ }, [l, s]);
480
+ a.useLayoutEffect(() => r.subscribe(f), [r, f]), a.useEffect(() => {
481
+ process.env.NODE_ENV !== "production" && U(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
482
+ }, []);
483
+ let p = a.useMemo(() => ({
484
+ createHref: r.createHref,
485
+ encodeLocation: r.encodeLocation,
486
+ go: (v) => r.navigate(v),
487
+ push: (v, E, b) => r.navigate(v, {
488
+ state: E,
489
+ preventScrollReset: b == null ? void 0 : b.preventScrollReset
490
+ }),
491
+ replace: (v, E, b) => r.navigate(v, {
492
+ replace: !0,
493
+ state: E,
494
+ preventScrollReset: b == null ? void 0 : b.preventScrollReset
495
+ })
496
+ }), [r]), u = r.basename || "/", c = a.useMemo(() => ({
497
+ router: r,
498
+ navigator: p,
499
+ static: !1,
500
+ basename: u
501
+ }), [r, p, u]);
502
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(X.Provider, {
503
+ value: c
504
+ }, /* @__PURE__ */ a.createElement(te.Provider, {
505
+ value: i
506
+ }, /* @__PURE__ */ a.createElement(ae, {
507
+ basename: u,
508
+ location: i.location,
509
+ navigationType: i.historyAction,
510
+ navigator: p,
511
+ future: {
512
+ v7_relativeSplatPath: r.future.v7_relativeSplatPath
513
+ }
514
+ }, i.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ a.createElement(Fn, {
515
+ routes: r.routes,
516
+ future: r.future,
517
+ state: i
518
+ }) : t))), null);
519
+ }
520
+ function Fn(e) {
521
+ let {
522
+ routes: t,
523
+ future: r,
524
+ state: o
525
+ } = e;
526
+ return je(t, void 0, o, r);
527
+ }
528
+ function Nr(e) {
529
+ let {
530
+ basename: t,
531
+ children: r,
532
+ initialEntries: o,
533
+ initialIndex: i,
534
+ future: l
535
+ } = e, s = a.useRef();
536
+ s.current == null && (s.current = rr({
537
+ initialEntries: o,
538
+ initialIndex: i,
539
+ v5Compat: !0
540
+ }));
541
+ let f = s.current, [p, u] = a.useState({
542
+ action: f.action,
543
+ location: f.location
544
+ }), {
545
+ v7_startTransition: c
546
+ } = l || {}, v = a.useCallback((E) => {
547
+ c && Ue ? Ue(() => u(E)) : u(E);
548
+ }, [u, c]);
549
+ return a.useLayoutEffect(() => f.listen(v), [f, v]), /* @__PURE__ */ a.createElement(ae, {
550
+ basename: t,
551
+ children: r,
552
+ location: p.location,
553
+ navigationType: p.action,
554
+ navigator: f,
555
+ future: l
556
+ });
557
+ }
558
+ function xr(e) {
559
+ let {
560
+ to: t,
561
+ replace: r,
562
+ state: o,
563
+ relative: i
564
+ } = e;
565
+ Z() || (process.env.NODE_ENV !== "production" ? y(
566
+ !1,
567
+ // TODO: This error is probably because they somehow have 2 versions of
568
+ // the router loaded. We can help them understand how to avoid that.
569
+ "<Navigate> may be used only in the context of a <Router> component."
570
+ ) : y(!1));
571
+ let {
572
+ future: l,
573
+ static: s
574
+ } = a.useContext(I);
575
+ process.env.NODE_ENV !== "production" && U(!s, "<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.");
576
+ let {
577
+ matches: f
578
+ } = a.useContext(j), {
579
+ pathname: p
580
+ } = z(), u = Ce(), c = at(t, nt(f, l.v7_relativeSplatPath), p, i === "path"), v = JSON.stringify(c);
581
+ return a.useEffect(() => u(JSON.parse(v), {
582
+ replace: r,
583
+ state: o,
584
+ relative: i
585
+ }), [u, v, i, r, o]), null;
586
+ }
587
+ function Or(e) {
588
+ return ft(e.context);
589
+ }
590
+ function Rt(e) {
591
+ process.env.NODE_ENV !== "production" ? y(!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>.") : y(!1);
592
+ }
593
+ function ae(e) {
594
+ let {
595
+ basename: t = "/",
596
+ children: r = null,
597
+ location: o,
598
+ navigationType: i = Ve.Pop,
599
+ navigator: l,
600
+ static: s = !1,
601
+ future: f
602
+ } = e;
603
+ Z() && (process.env.NODE_ENV !== "production" ? y(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : y(!1));
604
+ let p = t.replace(/^\/*/, "/"), u = a.useMemo(() => ({
605
+ basename: p,
606
+ navigator: l,
607
+ static: s,
608
+ future: Q({
609
+ v7_relativeSplatPath: !1
610
+ }, f)
611
+ }), [p, f, l, s]);
612
+ typeof o == "string" && (o = Ie(o));
613
+ let {
614
+ pathname: c = "/",
615
+ search: v = "",
616
+ hash: E = "",
617
+ state: b = null,
618
+ key: w = "default"
619
+ } = o, O = a.useMemo(() => {
620
+ let S = G(c, p);
621
+ return S == null ? null : {
622
+ location: {
623
+ pathname: S,
624
+ search: v,
625
+ hash: E,
626
+ state: b,
627
+ key: w
628
+ },
629
+ navigationType: i
630
+ };
631
+ }, [p, c, v, E, b, w, i]);
632
+ return process.env.NODE_ENV !== "production" && U(O != null, '<Router basename="' + p + '"> is not able to match the URL ' + ('"' + c + v + E + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), O == null ? null : /* @__PURE__ */ a.createElement(I.Provider, {
633
+ value: u
634
+ }, /* @__PURE__ */ a.createElement(re.Provider, {
635
+ children: r,
636
+ value: O
637
+ }));
638
+ }
639
+ function Pr(e) {
640
+ let {
641
+ children: t,
642
+ location: r
643
+ } = e;
644
+ return dt(le(t), r);
645
+ }
646
+ function Tr(e) {
647
+ let {
648
+ children: t,
649
+ errorElement: r,
650
+ resolve: o
651
+ } = e;
652
+ return /* @__PURE__ */ a.createElement(kn, {
653
+ resolve: o,
654
+ errorElement: r
655
+ }, /* @__PURE__ */ a.createElement(Un, null, t));
656
+ }
657
+ var K = /* @__PURE__ */ function(e) {
658
+ return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
659
+ }(K || {});
660
+ const Ln = new Promise(() => {
661
+ });
662
+ class kn extends a.Component {
663
+ constructor(t) {
664
+ super(t), this.state = {
665
+ error: null
666
+ };
667
+ }
668
+ static getDerivedStateFromError(t) {
669
+ return {
670
+ error: t
671
+ };
672
+ }
673
+ componentDidCatch(t, r) {
674
+ console.error("<Await> caught the following error during render", t, r);
675
+ }
676
+ render() {
677
+ let {
678
+ children: t,
679
+ errorElement: r,
680
+ resolve: o
681
+ } = this.props, i = null, l = K.pending;
682
+ if (!(o instanceof Promise))
683
+ l = K.success, i = Promise.resolve(), Object.defineProperty(i, "_tracked", {
684
+ get: () => !0
685
+ }), Object.defineProperty(i, "_data", {
686
+ get: () => o
687
+ });
688
+ else if (this.state.error) {
689
+ l = K.error;
690
+ let s = this.state.error;
691
+ i = Promise.reject().catch(() => {
692
+ }), Object.defineProperty(i, "_tracked", {
693
+ get: () => !0
694
+ }), Object.defineProperty(i, "_error", {
695
+ get: () => s
696
+ });
697
+ } else o._tracked ? (i = o, l = "_error" in i ? K.error : "_data" in i ? K.success : K.pending) : (l = K.pending, Object.defineProperty(o, "_tracked", {
698
+ get: () => !0
699
+ }), i = o.then((s) => Object.defineProperty(o, "_data", {
700
+ get: () => s
701
+ }), (s) => Object.defineProperty(o, "_error", {
702
+ get: () => s
703
+ })));
704
+ if (l === K.error && i._error instanceof st)
705
+ throw Ln;
706
+ if (l === K.error && !r)
707
+ throw i._error;
708
+ if (l === K.error)
709
+ return /* @__PURE__ */ a.createElement(we.Provider, {
710
+ value: i,
711
+ children: r
712
+ });
713
+ if (l === K.success)
714
+ return /* @__PURE__ */ a.createElement(we.Provider, {
715
+ value: i,
716
+ children: t
717
+ });
718
+ throw i;
719
+ }
720
+ }
721
+ function Un(e) {
722
+ let {
723
+ children: t
724
+ } = e, r = gt(), o = typeof t == "function" ? t(r) : t;
725
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, o);
726
+ }
727
+ function le(e, t) {
728
+ t === void 0 && (t = []);
729
+ let r = [];
730
+ return a.Children.forEach(e, (o, i) => {
731
+ if (!/* @__PURE__ */ a.isValidElement(o))
732
+ return;
733
+ let l = [...t, i];
734
+ if (o.type === a.Fragment) {
735
+ r.push.apply(r, le(o.props.children, l));
736
+ return;
737
+ }
738
+ o.type !== Rt && (process.env.NODE_ENV !== "production" ? y(!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>") : y(!1)), !o.props.index || !o.props.children || (process.env.NODE_ENV !== "production" ? y(!1, "An index route cannot have child routes.") : y(!1));
739
+ let s = {
740
+ id: o.props.id || l.join("-"),
741
+ caseSensitive: o.props.caseSensitive,
742
+ element: o.props.element,
743
+ Component: o.props.Component,
744
+ index: o.props.index,
745
+ path: o.props.path,
746
+ loader: o.props.loader,
747
+ action: o.props.action,
748
+ errorElement: o.props.errorElement,
749
+ ErrorBoundary: o.props.ErrorBoundary,
750
+ hasErrorBoundary: o.props.ErrorBoundary != null || o.props.errorElement != null,
751
+ shouldRevalidate: o.props.shouldRevalidate,
752
+ handle: o.props.handle,
753
+ lazy: o.props.lazy
754
+ };
755
+ o.props.children && (s.children = le(o.props.children, l)), r.push(s);
756
+ }), r;
757
+ }
758
+ function Dr(e) {
759
+ return gr(e);
760
+ }
761
+ function Be(e) {
762
+ let t = {
763
+ // Note: this check also occurs in createRoutesFromChildren so update
764
+ // there if you change this -- please and thank you!
765
+ hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
766
+ };
767
+ return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && U(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
768
+ element: /* @__PURE__ */ a.createElement(e.Component),
769
+ Component: void 0
770
+ })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && U(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
771
+ hydrateFallbackElement: /* @__PURE__ */ a.createElement(e.HydrateFallback),
772
+ HydrateFallback: void 0
773
+ })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && U(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
774
+ errorElement: /* @__PURE__ */ a.createElement(e.ErrorBoundary),
775
+ ErrorBoundary: void 0
776
+ })), t;
777
+ }
778
+ function Fr(e, t) {
779
+ return lt({
780
+ basename: t == null ? void 0 : t.basename,
781
+ future: Q({}, t == null ? void 0 : t.future, {
782
+ v7_prependBasename: !0
783
+ }),
784
+ history: rr({
785
+ initialEntries: t == null ? void 0 : t.initialEntries,
786
+ initialIndex: t == null ? void 0 : t.initialIndex
787
+ }),
788
+ hydrationData: t == null ? void 0 : t.hydrationData,
789
+ routes: e,
790
+ mapRouteProperties: Be,
791
+ unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
792
+ unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss
793
+ }).initialize();
794
+ }
795
+ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
796
+ __proto__: null,
797
+ AbortedDeferredError: st,
798
+ Await: Tr,
799
+ MemoryRouter: Nr,
800
+ Navigate: xr,
801
+ get NavigationType() {
802
+ return Ve;
803
+ },
804
+ Outlet: Or,
805
+ Route: Rt,
806
+ Router: ae,
807
+ RouterProvider: Dn,
808
+ Routes: Pr,
809
+ UNSAFE_DataRouterContext: X,
810
+ UNSAFE_DataRouterStateContext: te,
811
+ UNSAFE_LocationContext: re,
812
+ UNSAFE_NavigationContext: I,
813
+ UNSAFE_RouteContext: j,
814
+ UNSAFE_mapRouteProperties: Be,
815
+ UNSAFE_useRouteId: ht,
816
+ UNSAFE_useRoutesImpl: je,
817
+ createMemoryRouter: Fr,
818
+ createPath: _e,
819
+ createRoutesFromChildren: le,
820
+ createRoutesFromElements: le,
821
+ defer: nr,
822
+ generatePath: ar,
823
+ isRouteErrorResponse: it,
824
+ json: or,
825
+ matchPath: Re,
826
+ matchRoutes: ot,
827
+ parsePath: Ie,
828
+ redirect: ir,
829
+ redirectDocument: sr,
830
+ renderMatches: Dr,
831
+ resolvePath: lr,
832
+ useActionData: wr,
833
+ useAsyncError: Sr,
834
+ useAsyncValue: gt,
835
+ useBlocker: bt,
836
+ useHref: ct,
837
+ useInRouterContext: Z,
838
+ useLoaderData: Rr,
839
+ useLocation: z,
840
+ useMatch: pr,
841
+ useMatches: Et,
842
+ useNavigate: Ce,
843
+ useNavigation: mt,
844
+ useNavigationType: dr,
845
+ useOutlet: ft,
846
+ useOutletContext: Er,
847
+ useParams: yr,
848
+ useResolvedPath: ue,
849
+ useRevalidator: br,
850
+ useRouteError: yt,
851
+ useRouteLoaderData: _r,
852
+ useRoutes: dt
853
+ }, Symbol.toStringTag, { value: "Module" }));
854
+ /**
855
+ * React Router DOM v6.25.1
856
+ *
857
+ * Copyright (c) Remix Software Inc.
858
+ *
859
+ * This source code is licensed under the MIT license found in the
860
+ * LICENSE.md file in the root directory of this source tree.
861
+ *
862
+ * @license MIT
863
+ */
864
+ function B() {
865
+ return B = Object.assign ? Object.assign.bind() : function(e) {
866
+ for (var t = 1; t < arguments.length; t++) {
867
+ var r = arguments[t];
868
+ for (var o in r)
869
+ Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
870
+ }
871
+ return e;
872
+ }, B.apply(this, arguments);
873
+ }
874
+ function _t(e, t) {
875
+ if (e == null) return {};
876
+ var r = {}, o = Object.keys(e), i, l;
877
+ for (l = 0; l < o.length; l++)
878
+ i = o[l], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
879
+ return r;
880
+ }
881
+ const Le = "get", ke = "application/x-www-form-urlencoded";
882
+ function We(e) {
883
+ return e != null && typeof e.tagName == "string";
884
+ }
885
+ function An(e) {
886
+ return We(e) && e.tagName.toLowerCase() === "button";
887
+ }
888
+ function Vn(e) {
889
+ return We(e) && e.tagName.toLowerCase() === "form";
890
+ }
891
+ function In(e) {
892
+ return We(e) && e.tagName.toLowerCase() === "input";
893
+ }
894
+ function jn(e) {
895
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
896
+ }
897
+ function Mn(e, t) {
898
+ return e.button === 0 && // Ignore everything but left clicks
899
+ (!t || t === "_self") && // Let browser handle "target=_blank" etc.
900
+ !jn(e);
901
+ }
902
+ function Ae(e) {
903
+ return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
904
+ let o = e[r];
905
+ return t.concat(Array.isArray(o) ? o.map((i) => [r, i]) : [[r, o]]);
906
+ }, []));
907
+ }
908
+ function Bn(e, t) {
909
+ let r = Ae(e);
910
+ return t && t.forEach((o, i) => {
911
+ r.has(i) || t.getAll(i).forEach((l) => {
912
+ r.append(i, l);
913
+ });
914
+ }), r;
915
+ }
916
+ let De = null;
917
+ function Wn() {
918
+ if (De === null)
919
+ try {
920
+ new FormData(
921
+ document.createElement("form"),
922
+ // @ts-expect-error if FormData supports the submitter parameter, this will throw
923
+ 0
924
+ ), De = !1;
925
+ } catch {
926
+ De = !0;
927
+ }
928
+ return De;
929
+ }
930
+ const Yn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
931
+ function tt(e) {
932
+ return e != null && !Yn.has(e) ? (process.env.NODE_ENV !== "production" && U(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + ke + '"')), null) : e;
933
+ }
934
+ function $n(e, t) {
935
+ let r, o, i, l, s;
936
+ if (Vn(e)) {
937
+ let f = e.getAttribute("action");
938
+ o = f ? G(f, t) : null, r = e.getAttribute("method") || Le, i = tt(e.getAttribute("enctype")) || ke, l = new FormData(e);
939
+ } else if (An(e) || In(e) && (e.type === "submit" || e.type === "image")) {
940
+ let f = e.form;
941
+ if (f == null)
942
+ throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
943
+ let p = e.getAttribute("formaction") || f.getAttribute("action");
944
+ if (o = p ? G(p, t) : null, r = e.getAttribute("formmethod") || f.getAttribute("method") || Le, i = tt(e.getAttribute("formenctype")) || tt(f.getAttribute("enctype")) || ke, l = new FormData(f, e), !Wn()) {
945
+ let {
946
+ name: u,
947
+ type: c,
948
+ value: v
949
+ } = e;
950
+ if (c === "image") {
951
+ let E = u ? u + "." : "";
952
+ l.append(E + "x", "0"), l.append(E + "y", "0");
953
+ } else u && l.append(u, v);
954
+ }
955
+ } else {
956
+ if (We(e))
957
+ throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
958
+ r = Le, o = null, i = ke, s = e;
959
+ }
960
+ return l && i === "text/plain" && (s = l, l = void 0), {
961
+ action: o,
962
+ method: r.toLowerCase(),
963
+ encType: i,
964
+ formData: l,
965
+ body: s
966
+ };
967
+ }
968
+ const Hn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Kn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], zn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], Jn = "6";
969
+ try {
970
+ window.__reactRouterVersion = Jn;
971
+ } catch {
972
+ }
973
+ function qn(e, t) {
974
+ return lt({
975
+ basename: t == null ? void 0 : t.basename,
976
+ future: B({}, t == null ? void 0 : t.future, {
977
+ v7_prependBasename: !0
978
+ }),
979
+ history: ur({
980
+ window: t == null ? void 0 : t.window
981
+ }),
982
+ hydrationData: (t == null ? void 0 : t.hydrationData) || Lr(),
983
+ routes: e,
984
+ mapRouteProperties: Be,
985
+ unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
986
+ unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss,
987
+ window: t == null ? void 0 : t.window
988
+ }).initialize();
989
+ }
990
+ function Gn(e, t) {
991
+ return lt({
992
+ basename: t == null ? void 0 : t.basename,
993
+ future: B({}, t == null ? void 0 : t.future, {
994
+ v7_prependBasename: !0
995
+ }),
996
+ history: cr({
997
+ window: t == null ? void 0 : t.window
998
+ }),
999
+ hydrationData: (t == null ? void 0 : t.hydrationData) || Lr(),
1000
+ routes: e,
1001
+ mapRouteProperties: Be,
1002
+ unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
1003
+ unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss,
1004
+ window: t == null ? void 0 : t.window
1005
+ }).initialize();
1006
+ }
1007
+ function Lr() {
1008
+ var e;
1009
+ let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
1010
+ return t && t.errors && (t = B({}, t, {
1011
+ errors: Xn(t.errors)
1012
+ })), t;
1013
+ }
1014
+ function Xn(e) {
1015
+ if (!e) return null;
1016
+ let t = Object.entries(e), r = {};
1017
+ for (let [o, i] of t)
1018
+ if (i && i.__type === "RouteErrorResponse")
1019
+ r[o] = new fr(i.status, i.statusText, i.data, i.internal === !0);
1020
+ else if (i && i.__type === "Error") {
1021
+ if (i.__subType) {
1022
+ let l = window[i.__subType];
1023
+ if (typeof l == "function")
1024
+ try {
1025
+ let s = new l(i.message);
1026
+ s.stack = "", r[o] = s;
1027
+ } catch {
1028
+ }
1029
+ }
1030
+ if (r[o] == null) {
1031
+ let l = new Error(i.message);
1032
+ l.stack = "", r[o] = l;
1033
+ }
1034
+ } else
1035
+ r[o] = i;
1036
+ return r;
1037
+ }
1038
+ const Ye = /* @__PURE__ */ a.createContext({
1039
+ isTransitioning: !1
1040
+ });
1041
+ process.env.NODE_ENV !== "production" && (Ye.displayName = "ViewTransition");
1042
+ const $e = /* @__PURE__ */ a.createContext(/* @__PURE__ */ new Map());
1043
+ process.env.NODE_ENV !== "production" && ($e.displayName = "Fetchers");
1044
+ const Zn = "startTransition", ee = a[Zn], Qn = "flushSync", Gt = En[Qn], ea = "useId", Xt = a[ea];
1045
+ function ta(e) {
1046
+ ee ? ee(e) : e();
1047
+ }
1048
+ function Ee(e) {
1049
+ Gt ? Gt(e) : e();
1050
+ }
1051
+ class ra {
1052
+ constructor() {
1053
+ this.status = "pending", this.promise = new Promise((t, r) => {
1054
+ this.resolve = (o) => {
1055
+ this.status === "pending" && (this.status = "resolved", t(o));
1056
+ }, this.reject = (o) => {
1057
+ this.status === "pending" && (this.status = "rejected", r(o));
1058
+ };
1059
+ });
1060
+ }
1061
+ }
1062
+ function na(e) {
1063
+ let {
1064
+ fallbackElement: t,
1065
+ router: r,
1066
+ future: o
1067
+ } = e, [i, l] = a.useState(r.state), [s, f] = a.useState(), [p, u] = a.useState({
1068
+ isTransitioning: !1
1069
+ }), [c, v] = a.useState(), [E, b] = a.useState(), [w, O] = a.useState(), S = a.useRef(/* @__PURE__ */ new Map()), {
1070
+ v7_startTransition: T
1071
+ } = o || {}, h = a.useCallback((D) => {
1072
+ T ? ta(D) : D();
1073
+ }, [T]), R = a.useCallback((D, Y) => {
1074
+ let {
1075
+ deletedFetchers: k,
1076
+ unstable_flushSync: fe,
1077
+ unstable_viewTransitionOpts: q
1078
+ } = Y;
1079
+ k.forEach((A) => S.current.delete(A)), D.fetchers.forEach((A, ie) => {
1080
+ A.data !== void 0 && S.current.set(ie, A.data);
1081
+ });
1082
+ let $ = r.window == null || r.window.document == null || typeof r.window.document.startViewTransition != "function";
1083
+ if (!q || $) {
1084
+ fe ? Ee(() => l(D)) : h(() => l(D));
1085
+ return;
1086
+ }
1087
+ if (fe) {
1088
+ Ee(() => {
1089
+ E && (c && c.resolve(), E.skipTransition()), u({
1090
+ isTransitioning: !0,
1091
+ flushSync: !0,
1092
+ currentLocation: q.currentLocation,
1093
+ nextLocation: q.nextLocation
1094
+ });
1095
+ });
1096
+ let A = r.window.document.startViewTransition(() => {
1097
+ Ee(() => l(D));
1098
+ });
1099
+ A.finished.finally(() => {
1100
+ Ee(() => {
1101
+ v(void 0), b(void 0), f(void 0), u({
1102
+ isTransitioning: !1
1103
+ });
1104
+ });
1105
+ }), Ee(() => b(A));
1106
+ return;
1107
+ }
1108
+ E ? (c && c.resolve(), E.skipTransition(), O({
1109
+ state: D,
1110
+ currentLocation: q.currentLocation,
1111
+ nextLocation: q.nextLocation
1112
+ })) : (f(D), u({
1113
+ isTransitioning: !0,
1114
+ flushSync: !1,
1115
+ currentLocation: q.currentLocation,
1116
+ nextLocation: q.nextLocation
1117
+ }));
1118
+ }, [r.window, E, c, S, h]);
1119
+ a.useLayoutEffect(() => r.subscribe(R), [r, R]), a.useEffect(() => {
1120
+ p.isTransitioning && !p.flushSync && v(new ra());
1121
+ }, [p]), a.useEffect(() => {
1122
+ if (c && s && r.window) {
1123
+ let D = s, Y = c.promise, k = r.window.document.startViewTransition(async () => {
1124
+ h(() => l(D)), await Y;
1125
+ });
1126
+ k.finished.finally(() => {
1127
+ v(void 0), b(void 0), f(void 0), u({
1128
+ isTransitioning: !1
1129
+ });
1130
+ }), b(k);
1131
+ }
1132
+ }, [h, s, c, r.window]), a.useEffect(() => {
1133
+ c && s && i.location.key === s.location.key && c.resolve();
1134
+ }, [c, E, i.location, s]), a.useEffect(() => {
1135
+ !p.isTransitioning && w && (f(w.state), u({
1136
+ isTransitioning: !0,
1137
+ flushSync: !1,
1138
+ currentLocation: w.currentLocation,
1139
+ nextLocation: w.nextLocation
1140
+ }), O(void 0));
1141
+ }, [p.isTransitioning, w]), a.useEffect(() => {
1142
+ process.env.NODE_ENV !== "production" && U(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
1143
+ }, []);
1144
+ let P = a.useMemo(() => ({
1145
+ createHref: r.createHref,
1146
+ encodeLocation: r.encodeLocation,
1147
+ go: (D) => r.navigate(D),
1148
+ push: (D, Y, k) => r.navigate(D, {
1149
+ state: Y,
1150
+ preventScrollReset: k == null ? void 0 : k.preventScrollReset
1151
+ }),
1152
+ replace: (D, Y, k) => r.navigate(D, {
1153
+ replace: !0,
1154
+ state: Y,
1155
+ preventScrollReset: k == null ? void 0 : k.preventScrollReset
1156
+ })
1157
+ }), [r]), J = r.basename || "/", oe = a.useMemo(() => ({
1158
+ router: r,
1159
+ navigator: P,
1160
+ static: !1,
1161
+ basename: J
1162
+ }), [r, P, J]), ce = a.useMemo(() => ({
1163
+ v7_relativeSplatPath: r.future.v7_relativeSplatPath
1164
+ }), [r.future.v7_relativeSplatPath]);
1165
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(X.Provider, {
1166
+ value: oe
1167
+ }, /* @__PURE__ */ a.createElement(te.Provider, {
1168
+ value: i
1169
+ }, /* @__PURE__ */ a.createElement($e.Provider, {
1170
+ value: S.current
1171
+ }, /* @__PURE__ */ a.createElement(Ye.Provider, {
1172
+ value: p
1173
+ }, /* @__PURE__ */ a.createElement(ae, {
1174
+ basename: J,
1175
+ location: i.location,
1176
+ navigationType: i.historyAction,
1177
+ navigator: P,
1178
+ future: ce
1179
+ }, i.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ a.createElement(aa, {
1180
+ routes: r.routes,
1181
+ future: r.future,
1182
+ state: i
1183
+ }) : t))))), null);
1184
+ }
1185
+ const aa = /* @__PURE__ */ a.memo(oa);
1186
+ function oa(e) {
1187
+ let {
1188
+ routes: t,
1189
+ future: r,
1190
+ state: o
1191
+ } = e;
1192
+ return je(t, void 0, o, r);
1193
+ }
1194
+ function ia(e) {
1195
+ let {
1196
+ basename: t,
1197
+ children: r,
1198
+ future: o,
1199
+ window: i
1200
+ } = e, l = a.useRef();
1201
+ l.current == null && (l.current = ur({
1202
+ window: i,
1203
+ v5Compat: !0
1204
+ }));
1205
+ let s = l.current, [f, p] = a.useState({
1206
+ action: s.action,
1207
+ location: s.location
1208
+ }), {
1209
+ v7_startTransition: u
1210
+ } = o || {}, c = a.useCallback((v) => {
1211
+ u && ee ? ee(() => p(v)) : p(v);
1212
+ }, [p, u]);
1213
+ return a.useLayoutEffect(() => s.listen(c), [s, c]), /* @__PURE__ */ a.createElement(ae, {
1214
+ basename: t,
1215
+ children: r,
1216
+ location: f.location,
1217
+ navigationType: f.action,
1218
+ navigator: s,
1219
+ future: o
1220
+ });
1221
+ }
1222
+ function sa(e) {
1223
+ let {
1224
+ basename: t,
1225
+ children: r,
1226
+ future: o,
1227
+ window: i
1228
+ } = e, l = a.useRef();
1229
+ l.current == null && (l.current = cr({
1230
+ window: i,
1231
+ v5Compat: !0
1232
+ }));
1233
+ let s = l.current, [f, p] = a.useState({
1234
+ action: s.action,
1235
+ location: s.location
1236
+ }), {
1237
+ v7_startTransition: u
1238
+ } = o || {}, c = a.useCallback((v) => {
1239
+ u && ee ? ee(() => p(v)) : p(v);
1240
+ }, [p, u]);
1241
+ return a.useLayoutEffect(() => s.listen(c), [s, c]), /* @__PURE__ */ a.createElement(ae, {
1242
+ basename: t,
1243
+ children: r,
1244
+ location: f.location,
1245
+ navigationType: f.action,
1246
+ navigator: s,
1247
+ future: o
1248
+ });
1249
+ }
1250
+ function kr(e) {
1251
+ let {
1252
+ basename: t,
1253
+ children: r,
1254
+ future: o,
1255
+ history: i
1256
+ } = e, [l, s] = a.useState({
1257
+ action: i.action,
1258
+ location: i.location
1259
+ }), {
1260
+ v7_startTransition: f
1261
+ } = o || {}, p = a.useCallback((u) => {
1262
+ f && ee ? ee(() => s(u)) : s(u);
1263
+ }, [s, f]);
1264
+ return a.useLayoutEffect(() => i.listen(p), [i, p]), /* @__PURE__ */ a.createElement(ae, {
1265
+ basename: t,
1266
+ children: r,
1267
+ location: l.location,
1268
+ navigationType: l.action,
1269
+ navigator: i,
1270
+ future: o
1271
+ });
1272
+ }
1273
+ process.env.NODE_ENV !== "production" && (kr.displayName = "unstable_HistoryRouter");
1274
+ const la = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ua = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, wt = /* @__PURE__ */ a.forwardRef(function(t, r) {
1275
+ let {
1276
+ onClick: o,
1277
+ relative: i,
1278
+ reloadDocument: l,
1279
+ replace: s,
1280
+ state: f,
1281
+ target: p,
1282
+ to: u,
1283
+ preventScrollReset: c,
1284
+ unstable_viewTransition: v
1285
+ } = t, E = _t(t, Hn), {
1286
+ basename: b
1287
+ } = a.useContext(I), w, O = !1;
1288
+ if (typeof u == "string" && ua.test(u) && (w = u, la))
1289
+ try {
1290
+ let R = new URL(window.location.href), P = u.startsWith("//") ? new URL(R.protocol + u) : new URL(u), J = G(P.pathname, b);
1291
+ P.origin === R.origin && J != null ? u = J + P.search + P.hash : O = !0;
1292
+ } catch {
1293
+ process.env.NODE_ENV !== "production" && U(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1294
+ }
1295
+ let S = ct(u, {
1296
+ relative: i
1297
+ }), T = Ir(u, {
1298
+ replace: s,
1299
+ state: f,
1300
+ target: p,
1301
+ preventScrollReset: c,
1302
+ relative: i,
1303
+ unstable_viewTransition: v
1304
+ });
1305
+ function h(R) {
1306
+ o && o(R), R.defaultPrevented || T(R);
1307
+ }
1308
+ return (
1309
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
1310
+ /* @__PURE__ */ a.createElement("a", B({}, E, {
1311
+ href: w || S,
1312
+ onClick: O || l ? o : h,
1313
+ ref: r,
1314
+ target: p
1315
+ }))
1316
+ );
1317
+ });
1318
+ process.env.NODE_ENV !== "production" && (wt.displayName = "Link");
1319
+ const Ur = /* @__PURE__ */ a.forwardRef(function(t, r) {
1320
+ let {
1321
+ "aria-current": o = "page",
1322
+ caseSensitive: i = !1,
1323
+ className: l = "",
1324
+ end: s = !1,
1325
+ style: f,
1326
+ to: p,
1327
+ unstable_viewTransition: u,
1328
+ children: c
1329
+ } = t, v = _t(t, Kn), E = ue(p, {
1330
+ relative: v.relative
1331
+ }), b = z(), w = a.useContext(te), {
1332
+ navigator: O,
1333
+ basename: S
1334
+ } = a.useContext(I), T = w != null && // Conditional usage is OK here because the usage of a data router is static
1335
+ // eslint-disable-next-line react-hooks/rules-of-hooks
1336
+ Wr(E) && u === !0, h = O.encodeLocation ? O.encodeLocation(E).pathname : E.pathname, R = b.pathname, P = w && w.navigation && w.navigation.location ? w.navigation.location.pathname : null;
1337
+ i || (R = R.toLowerCase(), P = P ? P.toLowerCase() : null, h = h.toLowerCase()), P && S && (P = G(P, S) || P);
1338
+ const J = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
1339
+ let oe = R === h || !s && R.startsWith(h) && R.charAt(J) === "/", ce = P != null && (P === h || !s && P.startsWith(h) && P.charAt(h.length) === "/"), D = {
1340
+ isActive: oe,
1341
+ isPending: ce,
1342
+ isTransitioning: T
1343
+ }, Y = oe ? o : void 0, k;
1344
+ typeof l == "function" ? k = l(D) : k = [l, oe ? "active" : null, ce ? "pending" : null, T ? "transitioning" : null].filter(Boolean).join(" ");
1345
+ let fe = typeof f == "function" ? f(D) : f;
1346
+ return /* @__PURE__ */ a.createElement(wt, B({}, v, {
1347
+ "aria-current": Y,
1348
+ className: k,
1349
+ ref: r,
1350
+ style: fe,
1351
+ to: p,
1352
+ unstable_viewTransition: u
1353
+ }), typeof c == "function" ? c(D) : c);
1354
+ });
1355
+ process.env.NODE_ENV !== "production" && (Ur.displayName = "NavLink");
1356
+ const St = /* @__PURE__ */ a.forwardRef((e, t) => {
1357
+ let {
1358
+ fetcherKey: r,
1359
+ navigate: o,
1360
+ reloadDocument: i,
1361
+ replace: l,
1362
+ state: s,
1363
+ method: f = Le,
1364
+ action: p,
1365
+ onSubmit: u,
1366
+ relative: c,
1367
+ preventScrollReset: v,
1368
+ unstable_viewTransition: E
1369
+ } = e, b = _t(e, zn), w = Nt(), O = Mr(p, {
1370
+ relative: c
1371
+ }), S = f.toLowerCase() === "get" ? "get" : "post", T = (h) => {
1372
+ if (u && u(h), h.defaultPrevented) return;
1373
+ h.preventDefault();
1374
+ let R = h.nativeEvent.submitter, P = (R == null ? void 0 : R.getAttribute("formmethod")) || f;
1375
+ w(R || h.currentTarget, {
1376
+ fetcherKey: r,
1377
+ method: P,
1378
+ navigate: o,
1379
+ replace: l,
1380
+ state: s,
1381
+ relative: c,
1382
+ preventScrollReset: v,
1383
+ unstable_viewTransition: E
1384
+ });
1385
+ };
1386
+ return /* @__PURE__ */ a.createElement("form", B({
1387
+ ref: t,
1388
+ method: S,
1389
+ action: O,
1390
+ onSubmit: i ? u : T
1391
+ }, b));
1392
+ });
1393
+ process.env.NODE_ENV !== "production" && (St.displayName = "Form");
1394
+ function Ar(e) {
1395
+ let {
1396
+ getKey: t,
1397
+ storageKey: r
1398
+ } = e;
1399
+ return Br({
1400
+ getKey: t,
1401
+ storageKey: r
1402
+ }), null;
1403
+ }
1404
+ process.env.NODE_ENV !== "production" && (Ar.displayName = "ScrollRestoration");
1405
+ var ve;
1406
+ (function(e) {
1407
+ e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
1408
+ })(ve || (ve = {}));
1409
+ var Se;
1410
+ (function(e) {
1411
+ e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1412
+ })(Se || (Se = {}));
1413
+ function Vr(e) {
1414
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1415
+ }
1416
+ function He(e) {
1417
+ let t = a.useContext(X);
1418
+ return t || (process.env.NODE_ENV !== "production" ? y(!1, Vr(e)) : y(!1)), t;
1419
+ }
1420
+ function Ct(e) {
1421
+ let t = a.useContext(te);
1422
+ return t || (process.env.NODE_ENV !== "production" ? y(!1, Vr(e)) : y(!1)), t;
1423
+ }
1424
+ function Ir(e, t) {
1425
+ let {
1426
+ target: r,
1427
+ replace: o,
1428
+ state: i,
1429
+ preventScrollReset: l,
1430
+ relative: s,
1431
+ unstable_viewTransition: f
1432
+ } = t === void 0 ? {} : t, p = Ce(), u = z(), c = ue(e, {
1433
+ relative: s
1434
+ });
1435
+ return a.useCallback((v) => {
1436
+ if (Mn(v, r)) {
1437
+ v.preventDefault();
1438
+ let E = o !== void 0 ? o : _e(u) === _e(c);
1439
+ p(e, {
1440
+ replace: E,
1441
+ state: i,
1442
+ preventScrollReset: l,
1443
+ relative: s,
1444
+ unstable_viewTransition: f
1445
+ });
1446
+ }
1447
+ }, [u, p, c, o, i, r, e, l, s, f]);
1448
+ }
1449
+ function ca(e) {
1450
+ process.env.NODE_ENV !== "production" && U(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.");
1451
+ let t = a.useRef(Ae(e)), r = a.useRef(!1), o = z(), i = a.useMemo(() => (
1452
+ // Only merge in the defaults if we haven't yet called setSearchParams.
1453
+ // Once we call that we want those to take precedence, otherwise you can't
1454
+ // remove a param with setSearchParams({}) if it has an initial value
1455
+ Bn(o.search, r.current ? null : t.current)
1456
+ ), [o.search]), l = Ce(), s = a.useCallback((f, p) => {
1457
+ const u = Ae(typeof f == "function" ? f(i) : f);
1458
+ r.current = !0, l("?" + u, p);
1459
+ }, [l, i]);
1460
+ return [i, s];
1461
+ }
1462
+ function fa() {
1463
+ if (typeof document > "u")
1464
+ throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1465
+ }
1466
+ let da = 0, jr = () => "__" + String(++da) + "__";
1467
+ function Nt() {
1468
+ let {
1469
+ router: e
1470
+ } = He(ve.UseSubmit), {
1471
+ basename: t
1472
+ } = a.useContext(I), r = ht();
1473
+ return a.useCallback(function(o, i) {
1474
+ i === void 0 && (i = {}), fa();
1475
+ let {
1476
+ action: l,
1477
+ method: s,
1478
+ encType: f,
1479
+ formData: p,
1480
+ body: u
1481
+ } = $n(o, t);
1482
+ if (i.navigate === !1) {
1483
+ let c = i.fetcherKey || jr();
1484
+ e.fetch(c, r, i.action || l, {
1485
+ preventScrollReset: i.preventScrollReset,
1486
+ formData: p,
1487
+ body: u,
1488
+ formMethod: i.method || s,
1489
+ formEncType: i.encType || f,
1490
+ unstable_flushSync: i.unstable_flushSync
1491
+ });
1492
+ } else
1493
+ e.navigate(i.action || l, {
1494
+ preventScrollReset: i.preventScrollReset,
1495
+ formData: p,
1496
+ body: u,
1497
+ formMethod: i.method || s,
1498
+ formEncType: i.encType || f,
1499
+ replace: i.replace,
1500
+ state: i.state,
1501
+ fromRouteId: r,
1502
+ unstable_flushSync: i.unstable_flushSync,
1503
+ unstable_viewTransition: i.unstable_viewTransition
1504
+ });
1505
+ }, [e, t, r]);
1506
+ }
1507
+ function Mr(e, t) {
1508
+ let {
1509
+ relative: r
1510
+ } = t === void 0 ? {} : t, {
1511
+ basename: o
1512
+ } = a.useContext(I), i = a.useContext(j);
1513
+ i || (process.env.NODE_ENV !== "production" ? y(!1, "useFormAction must be used inside a RouteContext") : y(!1));
1514
+ let [l] = i.matches.slice(-1), s = B({}, ue(e || ".", {
1515
+ relative: r
1516
+ })), f = z();
1517
+ if (e == null) {
1518
+ s.search = f.search;
1519
+ let p = new URLSearchParams(s.search);
1520
+ p.has("index") && p.get("index") === "" && (p.delete("index"), s.search = p.toString() ? "?" + p.toString() : "");
1521
+ }
1522
+ return (!e || e === ".") && l.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (s.pathname = s.pathname === "/" ? o : be([o, s.pathname])), _e(s);
1523
+ }
1524
+ function pa(e) {
1525
+ var t;
1526
+ let {
1527
+ key: r
1528
+ } = e === void 0 ? {} : e, {
1529
+ router: o
1530
+ } = He(ve.UseFetcher), i = Ct(Se.UseFetcher), l = a.useContext($e), s = a.useContext(j), f = (t = s.matches[s.matches.length - 1]) == null ? void 0 : t.route.id;
1531
+ l || (process.env.NODE_ENV !== "production" ? y(!1, "useFetcher must be used inside a FetchersContext") : y(!1)), s || (process.env.NODE_ENV !== "production" ? y(!1, "useFetcher must be used inside a RouteContext") : y(!1)), f == null && (process.env.NODE_ENV !== "production" ? y(!1, 'useFetcher can only be used on routes that contain a unique "id"') : y(!1));
1532
+ let p = Xt ? Xt() : "", [u, c] = a.useState(r || p);
1533
+ r && r !== u ? c(r) : u || c(jr()), a.useEffect(() => (o.getFetcher(u), () => {
1534
+ o.deleteFetcher(u);
1535
+ }), [o, u]);
1536
+ let v = a.useCallback((h, R) => {
1537
+ f || (process.env.NODE_ENV !== "production" ? y(!1, "No routeId available for fetcher.load()") : y(!1)), o.fetch(u, f, h, R);
1538
+ }, [u, f, o]), E = Nt(), b = a.useCallback((h, R) => {
1539
+ E(h, B({}, R, {
1540
+ navigate: !1,
1541
+ fetcherKey: u
1542
+ }));
1543
+ }, [u, E]), w = a.useMemo(() => {
1544
+ let h = /* @__PURE__ */ a.forwardRef((R, P) => /* @__PURE__ */ a.createElement(St, B({}, R, {
1545
+ navigate: !1,
1546
+ fetcherKey: u,
1547
+ ref: P
1548
+ })));
1549
+ return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
1550
+ }, [u]), O = i.fetchers.get(u) || Rn, S = l.get(u);
1551
+ return a.useMemo(() => B({
1552
+ Form: w,
1553
+ submit: b,
1554
+ load: v
1555
+ }, O, {
1556
+ data: S
1557
+ }), [w, b, v, O, S]);
1558
+ }
1559
+ function va() {
1560
+ let e = Ct(Se.UseFetchers);
1561
+ return Array.from(e.fetchers.entries()).map((t) => {
1562
+ let [r, o] = t;
1563
+ return B({}, o, {
1564
+ key: r
1565
+ });
1566
+ });
1567
+ }
1568
+ const Zt = "react-router-scroll-positions";
1569
+ let Fe = {};
1570
+ function Br(e) {
1571
+ let {
1572
+ getKey: t,
1573
+ storageKey: r
1574
+ } = e === void 0 ? {} : e, {
1575
+ router: o
1576
+ } = He(ve.UseScrollRestoration), {
1577
+ restoreScrollPosition: i,
1578
+ preventScrollReset: l
1579
+ } = Ct(Se.UseScrollRestoration), {
1580
+ basename: s
1581
+ } = a.useContext(I), f = z(), p = Et(), u = mt();
1582
+ a.useEffect(() => (window.history.scrollRestoration = "manual", () => {
1583
+ window.history.scrollRestoration = "auto";
1584
+ }), []), ma(a.useCallback(() => {
1585
+ if (u.state === "idle") {
1586
+ let c = (t ? t(f, p) : null) || f.key;
1587
+ Fe[c] = window.scrollY;
1588
+ }
1589
+ try {
1590
+ sessionStorage.setItem(r || Zt, JSON.stringify(Fe));
1591
+ } catch (c) {
1592
+ process.env.NODE_ENV !== "production" && U(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
1593
+ }
1594
+ window.history.scrollRestoration = "auto";
1595
+ }, [r, t, u.state, f, p])), typeof document < "u" && (a.useLayoutEffect(() => {
1596
+ try {
1597
+ let c = sessionStorage.getItem(r || Zt);
1598
+ c && (Fe = JSON.parse(c));
1599
+ } catch {
1600
+ }
1601
+ }, [r]), a.useLayoutEffect(() => {
1602
+ let c = t && s !== "/" ? (E, b) => t(
1603
+ // Strip the basename to match useLocation()
1604
+ B({}, E, {
1605
+ pathname: G(E.pathname, s) || E.pathname
1606
+ }),
1607
+ b
1608
+ ) : t, v = o == null ? void 0 : o.enableScrollRestoration(Fe, () => window.scrollY, c);
1609
+ return () => v && v();
1610
+ }, [o, s, t]), a.useLayoutEffect(() => {
1611
+ if (i !== !1) {
1612
+ if (typeof i == "number") {
1613
+ window.scrollTo(0, i);
1614
+ return;
1615
+ }
1616
+ if (f.hash) {
1617
+ let c = document.getElementById(decodeURIComponent(f.hash.slice(1)));
1618
+ if (c) {
1619
+ c.scrollIntoView();
1620
+ return;
1621
+ }
1622
+ }
1623
+ l !== !0 && window.scrollTo(0, 0);
1624
+ }
1625
+ }, [f, i, l]));
1626
+ }
1627
+ function ha(e, t) {
1628
+ let {
1629
+ capture: r
1630
+ } = t || {};
1631
+ a.useEffect(() => {
1632
+ let o = r != null ? {
1633
+ capture: r
1634
+ } : void 0;
1635
+ return window.addEventListener("beforeunload", e, o), () => {
1636
+ window.removeEventListener("beforeunload", e, o);
1637
+ };
1638
+ }, [e, r]);
1639
+ }
1640
+ function ma(e, t) {
1641
+ let {
1642
+ capture: r
1643
+ } = {};
1644
+ a.useEffect(() => {
1645
+ let o = r != null ? {
1646
+ capture: r
1647
+ } : void 0;
1648
+ return window.addEventListener("pagehide", e, o), () => {
1649
+ window.removeEventListener("pagehide", e, o);
1650
+ };
1651
+ }, [e, r]);
1652
+ }
1653
+ function Ea(e) {
1654
+ let {
1655
+ when: t,
1656
+ message: r
1657
+ } = e, o = bt(t);
1658
+ a.useEffect(() => {
1659
+ o.state === "blocked" && (window.confirm(r) ? setTimeout(o.proceed, 0) : o.reset());
1660
+ }, [o, r]), a.useEffect(() => {
1661
+ o.state === "blocked" && !t && o.reset();
1662
+ }, [o, t]);
1663
+ }
1664
+ function Wr(e, t) {
1665
+ t === void 0 && (t = {});
1666
+ let r = a.useContext(Ye);
1667
+ r == null && (process.env.NODE_ENV !== "production" ? y(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : y(!1));
1668
+ let {
1669
+ basename: o
1670
+ } = He(ve.useViewTransitionState), i = ue(e, {
1671
+ relative: t.relative
1672
+ });
1673
+ if (!r.isTransitioning)
1674
+ return !1;
1675
+ let l = G(r.currentLocation.pathname, o) || r.currentLocation.pathname, s = G(r.nextLocation.pathname, o) || r.nextLocation.pathname;
1676
+ return Re(i.pathname, s) != null || Re(i.pathname, l) != null;
1677
+ }
1678
+ const wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1679
+ __proto__: null,
1680
+ AbortedDeferredError: st,
1681
+ Await: Tr,
1682
+ BrowserRouter: ia,
1683
+ Form: St,
1684
+ HashRouter: sa,
1685
+ Link: wt,
1686
+ MemoryRouter: Nr,
1687
+ NavLink: Ur,
1688
+ Navigate: xr,
1689
+ get NavigationType() {
1690
+ return Ve;
1691
+ },
1692
+ Outlet: Or,
1693
+ Route: Rt,
1694
+ Router: ae,
1695
+ RouterProvider: na,
1696
+ Routes: Pr,
1697
+ ScrollRestoration: Ar,
1698
+ UNSAFE_DataRouterContext: X,
1699
+ UNSAFE_DataRouterStateContext: te,
1700
+ UNSAFE_ErrorResponseImpl: fr,
1701
+ UNSAFE_FetchersContext: $e,
1702
+ UNSAFE_LocationContext: re,
1703
+ UNSAFE_NavigationContext: I,
1704
+ UNSAFE_RouteContext: j,
1705
+ UNSAFE_ViewTransitionContext: Ye,
1706
+ UNSAFE_useRouteId: ht,
1707
+ UNSAFE_useScrollRestoration: Br,
1708
+ createBrowserRouter: qn,
1709
+ createHashRouter: Gn,
1710
+ createMemoryRouter: Fr,
1711
+ createPath: _e,
1712
+ createRoutesFromChildren: le,
1713
+ createRoutesFromElements: le,
1714
+ createSearchParams: Ae,
1715
+ defer: nr,
1716
+ generatePath: ar,
1717
+ isRouteErrorResponse: it,
1718
+ json: or,
1719
+ matchPath: Re,
1720
+ matchRoutes: ot,
1721
+ parsePath: Ie,
1722
+ redirect: ir,
1723
+ redirectDocument: sr,
1724
+ renderMatches: Dr,
1725
+ resolvePath: lr,
1726
+ unstable_HistoryRouter: kr,
1727
+ unstable_usePrompt: Ea,
1728
+ unstable_useViewTransitionState: Wr,
1729
+ useActionData: wr,
1730
+ useAsyncError: Sr,
1731
+ useAsyncValue: gt,
1732
+ useBeforeUnload: ha,
1733
+ useBlocker: bt,
1734
+ useFetcher: pa,
1735
+ useFetchers: va,
1736
+ useFormAction: Mr,
1737
+ useHref: ct,
1738
+ useInRouterContext: Z,
1739
+ useLinkClickHandler: Ir,
1740
+ useLoaderData: Rr,
1741
+ useLocation: z,
1742
+ useMatch: pr,
1743
+ useMatches: Et,
1744
+ useNavigate: Ce,
1745
+ useNavigation: mt,
1746
+ useNavigationType: dr,
1747
+ useOutlet: ft,
1748
+ useOutletContext: Er,
1749
+ useParams: yr,
1750
+ useResolvedPath: ue,
1751
+ useRevalidator: br,
1752
+ useRouteError: yt,
1753
+ useRouteLoaderData: _r,
1754
+ useRoutes: dt,
1755
+ useSearchParams: ca,
1756
+ useSubmit: Nt
1757
+ }, Symbol.toStringTag, { value: "Module" }));
1758
+ var rt = { exports: {} }, ye = {};
1759
+ /**
1760
+ * @license React
1761
+ * react-jsx-runtime.production.min.js
1762
+ *
1763
+ * Copyright (c) Facebook, Inc. and its affiliates.
1764
+ *
1765
+ * This source code is licensed under the MIT license found in the
1766
+ * LICENSE file in the root directory of this source tree.
1767
+ */
1768
+ var Qt;
1769
+ function ya() {
1770
+ if (Qt) return ye;
1771
+ Qt = 1;
1772
+ var e = tr, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
1773
+ function s(f, p, u) {
1774
+ var c, v = {}, E = null, b = null;
1775
+ u !== void 0 && (E = "" + u), p.key !== void 0 && (E = "" + p.key), p.ref !== void 0 && (b = p.ref);
1776
+ for (c in p) o.call(p, c) && !l.hasOwnProperty(c) && (v[c] = p[c]);
1777
+ if (f && f.defaultProps) for (c in p = f.defaultProps, p) v[c] === void 0 && (v[c] = p[c]);
1778
+ return { $$typeof: t, type: f, key: E, ref: b, props: v, _owner: i.current };
1779
+ }
1780
+ return ye.Fragment = r, ye.jsx = s, ye.jsxs = s, ye;
1781
+ }
1782
+ var ge = {};
1783
+ /**
1784
+ * @license React
1785
+ * react-jsx-runtime.development.js
1786
+ *
1787
+ * Copyright (c) Facebook, Inc. and its affiliates.
1788
+ *
1789
+ * This source code is licensed under the MIT license found in the
1790
+ * LICENSE file in the root directory of this source tree.
1791
+ */
1792
+ var er;
1793
+ function ga() {
1794
+ return er || (er = 1, process.env.NODE_ENV !== "production" && function() {
1795
+ var e = tr, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), w = Symbol.iterator, O = "@@iterator";
1796
+ function S(n) {
1797
+ if (n === null || typeof n != "object")
1798
+ return null;
1799
+ var d = w && n[w] || n[O];
1800
+ return typeof d == "function" ? d : null;
1801
+ }
1802
+ var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1803
+ function h(n) {
1804
+ {
1805
+ for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), g = 1; g < d; g++)
1806
+ m[g - 1] = arguments[g];
1807
+ R("error", n, m);
1808
+ }
1809
+ }
1810
+ function R(n, d, m) {
1811
+ {
1812
+ var g = T.ReactDebugCurrentFrame, N = g.getStackAddendum();
1813
+ N !== "" && (d += "%s", m = m.concat([N]));
1814
+ var x = m.map(function(C) {
1815
+ return String(C);
1816
+ });
1817
+ x.unshift("Warning: " + d), Function.prototype.apply.call(console[n], console, x);
1818
+ }
1819
+ }
1820
+ var P = !1, J = !1, oe = !1, ce = !1, D = !1, Y;
1821
+ Y = Symbol.for("react.module.reference");
1822
+ function k(n) {
1823
+ return !!(typeof n == "string" || typeof n == "function" || n === o || n === l || D || n === i || n === u || n === c || ce || n === b || P || J || oe || typeof n == "object" && n !== null && (n.$$typeof === E || n.$$typeof === v || n.$$typeof === s || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
1824
+ // types supported by any Flight configuration anywhere since
1825
+ // we don't know which Flight build this will end up being used
1826
+ // with.
1827
+ n.$$typeof === Y || n.getModuleId !== void 0));
1828
+ }
1829
+ function fe(n, d, m) {
1830
+ var g = n.displayName;
1831
+ if (g)
1832
+ return g;
1833
+ var N = d.displayName || d.name || "";
1834
+ return N !== "" ? m + "(" + N + ")" : m;
1835
+ }
1836
+ function q(n) {
1837
+ return n.displayName || "Context";
1838
+ }
1839
+ function $(n) {
1840
+ if (n == null)
1841
+ return null;
1842
+ if (typeof n.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
1843
+ return n.displayName || n.name || null;
1844
+ if (typeof n == "string")
1845
+ return n;
1846
+ switch (n) {
1847
+ case o:
1848
+ return "Fragment";
1849
+ case r:
1850
+ return "Portal";
1851
+ case l:
1852
+ return "Profiler";
1853
+ case i:
1854
+ return "StrictMode";
1855
+ case u:
1856
+ return "Suspense";
1857
+ case c:
1858
+ return "SuspenseList";
1859
+ }
1860
+ if (typeof n == "object")
1861
+ switch (n.$$typeof) {
1862
+ case f:
1863
+ var d = n;
1864
+ return q(d) + ".Consumer";
1865
+ case s:
1866
+ var m = n;
1867
+ return q(m._context) + ".Provider";
1868
+ case p:
1869
+ return fe(n, n.render, "ForwardRef");
1870
+ case v:
1871
+ var g = n.displayName || null;
1872
+ return g !== null ? g : $(n.type) || "Memo";
1873
+ case E: {
1874
+ var N = n, x = N._payload, C = N._init;
1875
+ try {
1876
+ return $(C(x));
1877
+ } catch {
1878
+ return null;
1879
+ }
1880
+ }
1881
+ }
1882
+ return null;
1883
+ }
1884
+ var A = Object.assign, ie = 0, xt, Ot, Pt, Tt, Dt, Ft, Lt;
1885
+ function kt() {
1886
+ }
1887
+ kt.__reactDisabledLog = !0;
1888
+ function Yr() {
1889
+ {
1890
+ if (ie === 0) {
1891
+ xt = console.log, Ot = console.info, Pt = console.warn, Tt = console.error, Dt = console.group, Ft = console.groupCollapsed, Lt = console.groupEnd;
1892
+ var n = {
1893
+ configurable: !0,
1894
+ enumerable: !0,
1895
+ value: kt,
1896
+ writable: !0
1897
+ };
1898
+ Object.defineProperties(console, {
1899
+ info: n,
1900
+ log: n,
1901
+ warn: n,
1902
+ error: n,
1903
+ group: n,
1904
+ groupCollapsed: n,
1905
+ groupEnd: n
1906
+ });
1907
+ }
1908
+ ie++;
1909
+ }
1910
+ }
1911
+ function $r() {
1912
+ {
1913
+ if (ie--, ie === 0) {
1914
+ var n = {
1915
+ configurable: !0,
1916
+ enumerable: !0,
1917
+ writable: !0
1918
+ };
1919
+ Object.defineProperties(console, {
1920
+ log: A({}, n, {
1921
+ value: xt
1922
+ }),
1923
+ info: A({}, n, {
1924
+ value: Ot
1925
+ }),
1926
+ warn: A({}, n, {
1927
+ value: Pt
1928
+ }),
1929
+ error: A({}, n, {
1930
+ value: Tt
1931
+ }),
1932
+ group: A({}, n, {
1933
+ value: Dt
1934
+ }),
1935
+ groupCollapsed: A({}, n, {
1936
+ value: Ft
1937
+ }),
1938
+ groupEnd: A({}, n, {
1939
+ value: Lt
1940
+ })
1941
+ });
1942
+ }
1943
+ ie < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1944
+ }
1945
+ }
1946
+ var Ke = T.ReactCurrentDispatcher, ze;
1947
+ function xe(n, d, m) {
1948
+ {
1949
+ if (ze === void 0)
1950
+ try {
1951
+ throw Error();
1952
+ } catch (N) {
1953
+ var g = N.stack.trim().match(/\n( *(at )?)/);
1954
+ ze = g && g[1] || "";
1955
+ }
1956
+ return `
1957
+ ` + ze + n;
1958
+ }
1959
+ }
1960
+ var Je = !1, Oe;
1961
+ {
1962
+ var Hr = typeof WeakMap == "function" ? WeakMap : Map;
1963
+ Oe = new Hr();
1964
+ }
1965
+ function Ut(n, d) {
1966
+ if (!n || Je)
1967
+ return "";
1968
+ {
1969
+ var m = Oe.get(n);
1970
+ if (m !== void 0)
1971
+ return m;
1972
+ }
1973
+ var g;
1974
+ Je = !0;
1975
+ var N = Error.prepareStackTrace;
1976
+ Error.prepareStackTrace = void 0;
1977
+ var x;
1978
+ x = Ke.current, Ke.current = null, Yr();
1979
+ try {
1980
+ if (d) {
1981
+ var C = function() {
1982
+ throw Error();
1983
+ };
1984
+ if (Object.defineProperty(C.prototype, "props", {
1985
+ set: function() {
1986
+ throw Error();
1987
+ }
1988
+ }), typeof Reflect == "object" && Reflect.construct) {
1989
+ try {
1990
+ Reflect.construct(C, []);
1991
+ } catch (M) {
1992
+ g = M;
1993
+ }
1994
+ Reflect.construct(n, [], C);
1995
+ } else {
1996
+ try {
1997
+ C.call();
1998
+ } catch (M) {
1999
+ g = M;
2000
+ }
2001
+ n.call(C.prototype);
2002
+ }
2003
+ } else {
2004
+ try {
2005
+ throw Error();
2006
+ } catch (M) {
2007
+ g = M;
2008
+ }
2009
+ n();
2010
+ }
2011
+ } catch (M) {
2012
+ if (M && g && typeof M.stack == "string") {
2013
+ for (var _ = M.stack.split(`
2014
+ `), V = g.stack.split(`
2015
+ `), F = _.length - 1, L = V.length - 1; F >= 1 && L >= 0 && _[F] !== V[L]; )
2016
+ L--;
2017
+ for (; F >= 1 && L >= 0; F--, L--)
2018
+ if (_[F] !== V[L]) {
2019
+ if (F !== 1 || L !== 1)
2020
+ do
2021
+ if (F--, L--, L < 0 || _[F] !== V[L]) {
2022
+ var H = `
2023
+ ` + _[F].replace(" at new ", " at ");
2024
+ return n.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", n.displayName)), typeof n == "function" && Oe.set(n, H), H;
2025
+ }
2026
+ while (F >= 1 && L >= 0);
2027
+ break;
2028
+ }
2029
+ }
2030
+ } finally {
2031
+ Je = !1, Ke.current = x, $r(), Error.prepareStackTrace = N;
2032
+ }
2033
+ var pe = n ? n.displayName || n.name : "", se = pe ? xe(pe) : "";
2034
+ return typeof n == "function" && Oe.set(n, se), se;
2035
+ }
2036
+ function Kr(n, d, m) {
2037
+ return Ut(n, !1);
2038
+ }
2039
+ function zr(n) {
2040
+ var d = n.prototype;
2041
+ return !!(d && d.isReactComponent);
2042
+ }
2043
+ function Pe(n, d, m) {
2044
+ if (n == null)
2045
+ return "";
2046
+ if (typeof n == "function")
2047
+ return Ut(n, zr(n));
2048
+ if (typeof n == "string")
2049
+ return xe(n);
2050
+ switch (n) {
2051
+ case u:
2052
+ return xe("Suspense");
2053
+ case c:
2054
+ return xe("SuspenseList");
2055
+ }
2056
+ if (typeof n == "object")
2057
+ switch (n.$$typeof) {
2058
+ case p:
2059
+ return Kr(n.render);
2060
+ case v:
2061
+ return Pe(n.type, d, m);
2062
+ case E: {
2063
+ var g = n, N = g._payload, x = g._init;
2064
+ try {
2065
+ return Pe(x(N), d, m);
2066
+ } catch {
2067
+ }
2068
+ }
2069
+ }
2070
+ return "";
2071
+ }
2072
+ var he = Object.prototype.hasOwnProperty, At = {}, Vt = T.ReactDebugCurrentFrame;
2073
+ function Te(n) {
2074
+ if (n) {
2075
+ var d = n._owner, m = Pe(n.type, n._source, d ? d.type : null);
2076
+ Vt.setExtraStackFrame(m);
2077
+ } else
2078
+ Vt.setExtraStackFrame(null);
2079
+ }
2080
+ function Jr(n, d, m, g, N) {
2081
+ {
2082
+ var x = Function.call.bind(he);
2083
+ for (var C in n)
2084
+ if (x(n, C)) {
2085
+ var _ = void 0;
2086
+ try {
2087
+ if (typeof n[C] != "function") {
2088
+ var V = Error((g || "React class") + ": " + m + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2089
+ throw V.name = "Invariant Violation", V;
2090
+ }
2091
+ _ = n[C](d, C, g, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2092
+ } catch (F) {
2093
+ _ = F;
2094
+ }
2095
+ _ && !(_ instanceof Error) && (Te(N), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", m, C, typeof _), Te(null)), _ instanceof Error && !(_.message in At) && (At[_.message] = !0, Te(N), h("Failed %s type: %s", m, _.message), Te(null));
2096
+ }
2097
+ }
2098
+ }
2099
+ var qr = Array.isArray;
2100
+ function qe(n) {
2101
+ return qr(n);
2102
+ }
2103
+ function Gr(n) {
2104
+ {
2105
+ var d = typeof Symbol == "function" && Symbol.toStringTag, m = d && n[Symbol.toStringTag] || n.constructor.name || "Object";
2106
+ return m;
2107
+ }
2108
+ }
2109
+ function Xr(n) {
2110
+ try {
2111
+ return It(n), !1;
2112
+ } catch {
2113
+ return !0;
2114
+ }
2115
+ }
2116
+ function It(n) {
2117
+ return "" + n;
2118
+ }
2119
+ function jt(n) {
2120
+ if (Xr(n))
2121
+ return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gr(n)), It(n);
2122
+ }
2123
+ var me = T.ReactCurrentOwner, Zr = {
2124
+ key: !0,
2125
+ ref: !0,
2126
+ __self: !0,
2127
+ __source: !0
2128
+ }, Mt, Bt, Ge;
2129
+ Ge = {};
2130
+ function Qr(n) {
2131
+ if (he.call(n, "ref")) {
2132
+ var d = Object.getOwnPropertyDescriptor(n, "ref").get;
2133
+ if (d && d.isReactWarning)
2134
+ return !1;
2135
+ }
2136
+ return n.ref !== void 0;
2137
+ }
2138
+ function en(n) {
2139
+ if (he.call(n, "key")) {
2140
+ var d = Object.getOwnPropertyDescriptor(n, "key").get;
2141
+ if (d && d.isReactWarning)
2142
+ return !1;
2143
+ }
2144
+ return n.key !== void 0;
2145
+ }
2146
+ function tn(n, d) {
2147
+ if (typeof n.ref == "string" && me.current && d && me.current.stateNode !== d) {
2148
+ var m = $(me.current.type);
2149
+ Ge[m] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(me.current.type), n.ref), Ge[m] = !0);
2150
+ }
2151
+ }
2152
+ function rn(n, d) {
2153
+ {
2154
+ var m = function() {
2155
+ Mt || (Mt = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
2156
+ };
2157
+ m.isReactWarning = !0, Object.defineProperty(n, "key", {
2158
+ get: m,
2159
+ configurable: !0
2160
+ });
2161
+ }
2162
+ }
2163
+ function nn(n, d) {
2164
+ {
2165
+ var m = function() {
2166
+ Bt || (Bt = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
2167
+ };
2168
+ m.isReactWarning = !0, Object.defineProperty(n, "ref", {
2169
+ get: m,
2170
+ configurable: !0
2171
+ });
2172
+ }
2173
+ }
2174
+ var an = function(n, d, m, g, N, x, C) {
2175
+ var _ = {
2176
+ // This tag allows us to uniquely identify this as a React Element
2177
+ $$typeof: t,
2178
+ // Built-in properties that belong on the element
2179
+ type: n,
2180
+ key: d,
2181
+ ref: m,
2182
+ props: C,
2183
+ // Record the component responsible for creating this element.
2184
+ _owner: x
2185
+ };
2186
+ return _._store = {}, Object.defineProperty(_._store, "validated", {
2187
+ configurable: !1,
2188
+ enumerable: !1,
2189
+ writable: !0,
2190
+ value: !1
2191
+ }), Object.defineProperty(_, "_self", {
2192
+ configurable: !1,
2193
+ enumerable: !1,
2194
+ writable: !1,
2195
+ value: g
2196
+ }), Object.defineProperty(_, "_source", {
2197
+ configurable: !1,
2198
+ enumerable: !1,
2199
+ writable: !1,
2200
+ value: N
2201
+ }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
2202
+ };
2203
+ function on(n, d, m, g, N) {
2204
+ {
2205
+ var x, C = {}, _ = null, V = null;
2206
+ m !== void 0 && (jt(m), _ = "" + m), en(d) && (jt(d.key), _ = "" + d.key), Qr(d) && (V = d.ref, tn(d, N));
2207
+ for (x in d)
2208
+ he.call(d, x) && !Zr.hasOwnProperty(x) && (C[x] = d[x]);
2209
+ if (n && n.defaultProps) {
2210
+ var F = n.defaultProps;
2211
+ for (x in F)
2212
+ C[x] === void 0 && (C[x] = F[x]);
2213
+ }
2214
+ if (_ || V) {
2215
+ var L = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
2216
+ _ && rn(C, L), V && nn(C, L);
2217
+ }
2218
+ return an(n, _, V, N, g, me.current, C);
2219
+ }
2220
+ }
2221
+ var Xe = T.ReactCurrentOwner, Wt = T.ReactDebugCurrentFrame;
2222
+ function de(n) {
2223
+ if (n) {
2224
+ var d = n._owner, m = Pe(n.type, n._source, d ? d.type : null);
2225
+ Wt.setExtraStackFrame(m);
2226
+ } else
2227
+ Wt.setExtraStackFrame(null);
2228
+ }
2229
+ var Ze;
2230
+ Ze = !1;
2231
+ function Qe(n) {
2232
+ return typeof n == "object" && n !== null && n.$$typeof === t;
2233
+ }
2234
+ function Yt() {
2235
+ {
2236
+ if (Xe.current) {
2237
+ var n = $(Xe.current.type);
2238
+ if (n)
2239
+ return `
2240
+
2241
+ Check the render method of \`` + n + "`.";
2242
+ }
2243
+ return "";
2244
+ }
2245
+ }
2246
+ function sn(n) {
2247
+ return "";
2248
+ }
2249
+ var $t = {};
2250
+ function ln(n) {
2251
+ {
2252
+ var d = Yt();
2253
+ if (!d) {
2254
+ var m = typeof n == "string" ? n : n.displayName || n.name;
2255
+ m && (d = `
2256
+
2257
+ Check the top-level render call using <` + m + ">.");
2258
+ }
2259
+ return d;
2260
+ }
2261
+ }
2262
+ function Ht(n, d) {
2263
+ {
2264
+ if (!n._store || n._store.validated || n.key != null)
2265
+ return;
2266
+ n._store.validated = !0;
2267
+ var m = ln(d);
2268
+ if ($t[m])
2269
+ return;
2270
+ $t[m] = !0;
2271
+ var g = "";
2272
+ n && n._owner && n._owner !== Xe.current && (g = " It was passed a child from " + $(n._owner.type) + "."), de(n), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, g), de(null);
2273
+ }
2274
+ }
2275
+ function Kt(n, d) {
2276
+ {
2277
+ if (typeof n != "object")
2278
+ return;
2279
+ if (qe(n))
2280
+ for (var m = 0; m < n.length; m++) {
2281
+ var g = n[m];
2282
+ Qe(g) && Ht(g, d);
2283
+ }
2284
+ else if (Qe(n))
2285
+ n._store && (n._store.validated = !0);
2286
+ else if (n) {
2287
+ var N = S(n);
2288
+ if (typeof N == "function" && N !== n.entries)
2289
+ for (var x = N.call(n), C; !(C = x.next()).done; )
2290
+ Qe(C.value) && Ht(C.value, d);
2291
+ }
2292
+ }
2293
+ }
2294
+ function un(n) {
2295
+ {
2296
+ var d = n.type;
2297
+ if (d == null || typeof d == "string")
2298
+ return;
2299
+ var m;
2300
+ if (typeof d == "function")
2301
+ m = d.propTypes;
2302
+ else if (typeof d == "object" && (d.$$typeof === p || // Note: Memo only checks outer props here.
2303
+ // Inner props are checked in the reconciler.
2304
+ d.$$typeof === v))
2305
+ m = d.propTypes;
2306
+ else
2307
+ return;
2308
+ if (m) {
2309
+ var g = $(d);
2310
+ Jr(m, n.props, "prop", g, n);
2311
+ } else if (d.PropTypes !== void 0 && !Ze) {
2312
+ Ze = !0;
2313
+ var N = $(d);
2314
+ h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
2315
+ }
2316
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2317
+ }
2318
+ }
2319
+ function cn(n) {
2320
+ {
2321
+ for (var d = Object.keys(n.props), m = 0; m < d.length; m++) {
2322
+ var g = d[m];
2323
+ if (g !== "children" && g !== "key") {
2324
+ de(n), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), de(null);
2325
+ break;
2326
+ }
2327
+ }
2328
+ n.ref !== null && (de(n), h("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
2329
+ }
2330
+ }
2331
+ var zt = {};
2332
+ function Jt(n, d, m, g, N, x) {
2333
+ {
2334
+ var C = k(n);
2335
+ if (!C) {
2336
+ var _ = "";
2337
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2338
+ var V = sn();
2339
+ V ? _ += V : _ += Yt();
2340
+ var F;
2341
+ n === null ? F = "null" : qe(n) ? F = "array" : n !== void 0 && n.$$typeof === t ? (F = "<" + ($(n.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : F = typeof n, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, _);
2342
+ }
2343
+ var L = on(n, d, m, N, x);
2344
+ if (L == null)
2345
+ return L;
2346
+ if (C) {
2347
+ var H = d.children;
2348
+ if (H !== void 0)
2349
+ if (g)
2350
+ if (qe(H)) {
2351
+ for (var pe = 0; pe < H.length; pe++)
2352
+ Kt(H[pe], n);
2353
+ Object.freeze && Object.freeze(H);
2354
+ } else
2355
+ h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2356
+ else
2357
+ Kt(H, n);
2358
+ }
2359
+ if (he.call(d, "key")) {
2360
+ var se = $(n), M = Object.keys(d).filter(function(mn) {
2361
+ return mn !== "key";
2362
+ }), et = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
2363
+ if (!zt[se + et]) {
2364
+ var hn = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
2365
+ h(`A props object containing a "key" prop is being spread into JSX:
2366
+ let props = %s;
2367
+ <%s {...props} />
2368
+ React keys must be passed directly to JSX without using spread:
2369
+ let props = %s;
2370
+ <%s key={someKey} {...props} />`, et, se, hn, se), zt[se + et] = !0;
2371
+ }
2372
+ }
2373
+ return n === o ? cn(L) : un(L), L;
2374
+ }
2375
+ }
2376
+ function fn(n, d, m) {
2377
+ return Jt(n, d, m, !0);
2378
+ }
2379
+ function dn(n, d, m) {
2380
+ return Jt(n, d, m, !1);
2381
+ }
2382
+ var pn = dn, vn = fn;
2383
+ ge.Fragment = o, ge.jsx = pn, ge.jsxs = vn;
2384
+ }()), ge;
2385
+ }
2386
+ process.env.NODE_ENV === "production" ? rt.exports = ya() : rt.exports = ga();
2387
+ var Sa = rt.exports;
2388
+ export {
2389
+ wt as L,
2390
+ Ur as N,
2391
+ Or as O,
2392
+ na as R,
2393
+ Ce as a,
2394
+ z as b,
2395
+ yr as c,
2396
+ yt as d,
2397
+ _a as e,
2398
+ wa as f,
2399
+ mt as g,
2400
+ Sa as j,
2401
+ ca as u
2402
+ };
2403
+ //# sourceMappingURL=jsx-runtime-lNnQYwFN.js.map