react-router 0.0.0-experimental-73e447577 → 0.0.0-experimental-e613d4238

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 (66) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/development/{chunk-NKIXC2FA.mjs → chunk-2YVPYFDJ.mjs} +120 -131
  3. package/dist/development/{chunk-PF7FO4KS.mjs → chunk-5P3HEZQU.mjs} +145 -310
  4. package/dist/development/{chunk-SOMUQ5BV.js → chunk-XXC4LMW2.js} +265 -154
  5. package/dist/development/{chunk-WQE2SM7S.js → chunk-YJ6T7YSE.js} +72 -348
  6. package/dist/development/{router-2BoB34m1.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
  7. package/dist/development/dom-export.d.mts +4 -59
  8. package/dist/development/dom-export.d.ts +3 -59
  9. package/dist/development/dom-export.js +5 -8
  10. package/dist/development/dom-export.mjs +5 -8
  11. package/dist/{production/index-react-server-client-BDG19ZQl.d.mts → development/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
  12. package/dist/development/{index-react-server-client-BDG19ZQl.d.mts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
  13. package/dist/development/index-react-server-client.d.mts +3 -3
  14. package/dist/development/index-react-server-client.d.ts +2 -3
  15. package/dist/development/index-react-server-client.js +4 -4
  16. package/dist/development/index-react-server-client.mjs +2 -2
  17. package/dist/development/index-react-server.d.mts +1 -106
  18. package/dist/development/index-react-server.d.ts +1 -106
  19. package/dist/development/index-react-server.js +12 -182
  20. package/dist/development/index-react-server.mjs +12 -182
  21. package/dist/development/index.d.mts +18 -13
  22. package/dist/development/index.d.ts +16 -13
  23. package/dist/development/index.js +214 -223
  24. package/dist/development/index.mjs +5 -3
  25. package/dist/development/lib/types/internal.d.mts +3 -3
  26. package/dist/development/lib/types/internal.d.ts +2 -3
  27. package/dist/development/lib/types/internal.js +1 -1
  28. package/dist/development/lib/types/internal.mjs +1 -1
  29. package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
  30. package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
  31. package/dist/development/{routeModules-CtCOLGtG.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
  32. package/dist/{production/routeModules-Bu1JamQV.d.ts → development/routeModules-BmVo7q9e.d.ts} +1046 -73
  33. package/dist/production/{chunk-TUGDEB6V.mjs → chunk-5MHETEIL.mjs} +120 -131
  34. package/dist/production/{chunk-TA3WUUL6.js → chunk-E4G6PZCJ.js} +265 -154
  35. package/dist/production/{chunk-VRFRIIGI.js → chunk-QBUHFRYZ.js} +72 -348
  36. package/dist/production/{chunk-YUNRQEIK.mjs → chunk-VNGQS422.mjs} +145 -310
  37. package/dist/production/{router-2BoB34m1.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
  38. package/dist/production/dom-export.d.mts +4 -59
  39. package/dist/production/dom-export.d.ts +3 -59
  40. package/dist/production/dom-export.js +5 -8
  41. package/dist/production/dom-export.mjs +5 -8
  42. package/dist/{development/index-react-server-client-83aVZHgI.d.ts → production/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
  43. package/dist/production/{index-react-server-client-83aVZHgI.d.ts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
  44. package/dist/production/index-react-server-client.d.mts +3 -3
  45. package/dist/production/index-react-server-client.d.ts +2 -3
  46. package/dist/production/index-react-server-client.js +4 -4
  47. package/dist/production/index-react-server-client.mjs +2 -2
  48. package/dist/production/index-react-server.d.mts +1 -106
  49. package/dist/production/index-react-server.d.ts +1 -106
  50. package/dist/production/index-react-server.js +12 -182
  51. package/dist/production/index-react-server.mjs +12 -182
  52. package/dist/production/index.d.mts +18 -13
  53. package/dist/production/index.d.ts +16 -13
  54. package/dist/production/index.js +214 -223
  55. package/dist/production/index.mjs +5 -3
  56. package/dist/production/lib/types/internal.d.mts +3 -3
  57. package/dist/production/lib/types/internal.d.ts +2 -3
  58. package/dist/production/lib/types/internal.js +1 -1
  59. package/dist/production/lib/types/internal.mjs +1 -1
  60. package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
  61. package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -1
  62. package/dist/production/{routeModules-CtCOLGtG.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
  63. package/dist/{development/routeModules-Bu1JamQV.d.ts → production/routeModules-BmVo7q9e.d.ts} +1046 -73
  64. package/package.json +1 -1
  65. package/dist/development/instrumentation-XYmrzhe3.d.ts +0 -1138
  66. package/dist/production/instrumentation-XYmrzhe3.d.ts +0 -1138
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v0.0.0-experimental-73e447577
2
+ * react-router v0.0.0-experimental-e613d4238
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -61,7 +61,7 @@
61
61
 
62
62
 
63
63
 
64
- var _chunkWQE2SM7Sjs = require('./chunk-WQE2SM7S.js');
64
+ var _chunkYJ6T7YSEjs = require('./chunk-YJ6T7YSE.js');
65
65
 
66
66
  // lib/components.tsx
67
67
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
@@ -72,9 +72,9 @@ function mapRouteProperties(route) {
72
72
  hasErrorBoundary: route.hasErrorBoundary || route.ErrorBoundary != null || route.errorElement != null
73
73
  };
74
74
  if (route.Component) {
75
- if (_chunkWQE2SM7Sjs.ENABLE_DEV_WARNINGS) {
75
+ if (_chunkYJ6T7YSEjs.ENABLE_DEV_WARNINGS) {
76
76
  if (route.element) {
77
- _chunkWQE2SM7Sjs.warning.call(void 0,
77
+ _chunkYJ6T7YSEjs.warning.call(void 0,
78
78
  false,
79
79
  "You should not include both `Component` and `element` on your route - `Component` will be used."
80
80
  );
@@ -86,9 +86,9 @@ function mapRouteProperties(route) {
86
86
  });
87
87
  }
88
88
  if (route.HydrateFallback) {
89
- if (_chunkWQE2SM7Sjs.ENABLE_DEV_WARNINGS) {
89
+ if (_chunkYJ6T7YSEjs.ENABLE_DEV_WARNINGS) {
90
90
  if (route.hydrateFallbackElement) {
91
- _chunkWQE2SM7Sjs.warning.call(void 0,
91
+ _chunkYJ6T7YSEjs.warning.call(void 0,
92
92
  false,
93
93
  "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."
94
94
  );
@@ -100,9 +100,9 @@ function mapRouteProperties(route) {
100
100
  });
101
101
  }
102
102
  if (route.ErrorBoundary) {
103
- if (_chunkWQE2SM7Sjs.ENABLE_DEV_WARNINGS) {
103
+ if (_chunkYJ6T7YSEjs.ENABLE_DEV_WARNINGS) {
104
104
  if (route.errorElement) {
105
- _chunkWQE2SM7Sjs.warning.call(void 0,
105
+ _chunkYJ6T7YSEjs.warning.call(void 0,
106
106
  false,
107
107
  "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."
108
108
  );
@@ -120,11 +120,11 @@ var hydrationRouteProperties = [
120
120
  "hydrateFallbackElement"
121
121
  ];
122
122
  function createMemoryRouter(routes, opts) {
123
- return _chunkWQE2SM7Sjs.createRouter.call(void 0, {
123
+ return _chunkYJ6T7YSEjs.createRouter.call(void 0, {
124
124
  basename: _optionalChain([opts, 'optionalAccess', _2 => _2.basename]),
125
125
  getContext: _optionalChain([opts, 'optionalAccess', _3 => _3.getContext]),
126
126
  future: _optionalChain([opts, 'optionalAccess', _4 => _4.future]),
127
- history: _chunkWQE2SM7Sjs.createMemoryHistory.call(void 0, {
127
+ history: _chunkYJ6T7YSEjs.createMemoryHistory.call(void 0, {
128
128
  initialEntries: _optionalChain([opts, 'optionalAccess', _5 => _5.initialEntries]),
129
129
  initialIndex: _optionalChain([opts, 'optionalAccess', _6 => _6.initialIndex])
130
130
  }),
@@ -133,8 +133,7 @@ function createMemoryRouter(routes, opts) {
133
133
  hydrationRouteProperties,
134
134
  mapRouteProperties,
135
135
  dataStrategy: _optionalChain([opts, 'optionalAccess', _8 => _8.dataStrategy]),
136
- patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _9 => _9.patchRoutesOnNavigation]),
137
- unstable_instrumentations: _optionalChain([opts, 'optionalAccess', _10 => _10.unstable_instrumentations])
136
+ patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _9 => _9.patchRoutesOnNavigation])
138
137
  }).initialize();
139
138
  }
140
139
  var Deferred = class {
@@ -156,6 +155,119 @@ var Deferred = class {
156
155
  });
157
156
  }
158
157
  };
158
+ function shallowDiff(a, b) {
159
+ if (a === b) {
160
+ return false;
161
+ }
162
+ let aKeys = Object.keys(a);
163
+ let bKeys = Object.keys(b);
164
+ if (aKeys.length !== bKeys.length) {
165
+ return true;
166
+ }
167
+ for (let key of aKeys) {
168
+ if (a[key] !== b[key]) {
169
+ return true;
170
+ }
171
+ }
172
+ return false;
173
+ }
174
+ function UNSTABLE_TransitionEnabledRouterProvider({
175
+ router,
176
+ flushSync: reactDomFlushSyncImpl,
177
+ unstable_onError
178
+ }) {
179
+ let fetcherData = React.useRef(/* @__PURE__ */ new Map());
180
+ let [revalidating, startRevalidation] = React.useTransition();
181
+ let [state, setState] = React.useState(router.state);
182
+ router.__setPendingRerender = (promise) => startRevalidation(
183
+ // @ts-expect-error - need react 19 types for this to be async
184
+ async () => {
185
+ const rerender = await promise;
186
+ startRevalidation(() => {
187
+ rerender();
188
+ });
189
+ }
190
+ );
191
+ let navigator = React.useMemo(() => {
192
+ return {
193
+ createHref: router.createHref,
194
+ encodeLocation: router.encodeLocation,
195
+ go: (n) => router.navigate(n),
196
+ push: (to, state2, opts) => router.navigate(to, {
197
+ state: state2,
198
+ preventScrollReset: _optionalChain([opts, 'optionalAccess', _10 => _10.preventScrollReset])
199
+ }),
200
+ replace: (to, state2, opts) => router.navigate(to, {
201
+ replace: true,
202
+ state: state2,
203
+ preventScrollReset: _optionalChain([opts, 'optionalAccess', _11 => _11.preventScrollReset])
204
+ })
205
+ };
206
+ }, [router]);
207
+ let basename = router.basename || "/";
208
+ let dataRouterContext = React.useMemo(
209
+ () => ({
210
+ router,
211
+ navigator,
212
+ static: false,
213
+ basename,
214
+ unstable_onError
215
+ }),
216
+ [router, navigator, basename, unstable_onError]
217
+ );
218
+ React.useLayoutEffect(() => {
219
+ return router.subscribe(
220
+ (newState, { deletedFetchers, flushSync, viewTransitionOpts }) => {
221
+ newState.fetchers.forEach((fetcher, key) => {
222
+ if (fetcher.data !== void 0) {
223
+ fetcherData.current.set(key, fetcher.data);
224
+ }
225
+ });
226
+ deletedFetchers.forEach((key) => fetcherData.current.delete(key));
227
+ const diff = shallowDiff(state, newState);
228
+ if (!diff) return;
229
+ if (flushSync) {
230
+ if (reactDomFlushSyncImpl) {
231
+ reactDomFlushSyncImpl(() => setState(newState));
232
+ } else {
233
+ setState(newState);
234
+ }
235
+ } else {
236
+ React.startTransition(() => {
237
+ setState(newState);
238
+ });
239
+ }
240
+ }
241
+ );
242
+ }, [router, reactDomFlushSyncImpl, state]);
243
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(
244
+ _chunkYJ6T7YSEjs.DataRouterStateContext.Provider,
245
+ {
246
+ value: {
247
+ ...state,
248
+ revalidation: revalidating ? "loading" : state.revalidation
249
+ }
250
+ },
251
+ /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(
252
+ Router,
253
+ {
254
+ basename,
255
+ location: state.location,
256
+ navigationType: state.historyAction,
257
+ navigator
258
+ },
259
+ /* @__PURE__ */ React.createElement(
260
+ MemoizedDataRoutes,
261
+ {
262
+ routes: router.routes,
263
+ future: router.future,
264
+ state,
265
+ unstable_onError
266
+ }
267
+ )
268
+ ))
269
+ )), null);
270
+ }
159
271
  function RouterProvider({
160
272
  router,
161
273
  flushSync: reactDomFlushSyncImpl,
@@ -175,7 +287,7 @@ function RouterProvider({
175
287
  setStateImpl((prevState) => {
176
288
  if (newState.errors && unstable_onError) {
177
289
  Object.entries(newState.errors).forEach(([routeId, error]) => {
178
- if (_optionalChain([prevState, 'access', _11 => _11.errors, 'optionalAccess', _12 => _12[routeId]]) !== error) {
290
+ if (_optionalChain([prevState, 'access', _12 => _12.errors, 'optionalAccess', _13 => _13[routeId]]) !== error) {
179
291
  unstable_onError(error);
180
292
  }
181
293
  });
@@ -193,12 +305,12 @@ function RouterProvider({
193
305
  }
194
306
  });
195
307
  deletedFetchers.forEach((key) => fetcherData.current.delete(key));
196
- _chunkWQE2SM7Sjs.warnOnce.call(void 0,
308
+ _chunkYJ6T7YSEjs.warnOnce.call(void 0,
197
309
  flushSync === false || reactDomFlushSyncImpl != null,
198
310
  'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
199
311
  );
200
312
  let isViewTransitionAvailable = router.window != null && router.window.document != null && typeof router.window.document.startViewTransition === "function";
201
- _chunkWQE2SM7Sjs.warnOnce.call(void 0,
313
+ _chunkYJ6T7YSEjs.warnOnce.call(void 0,
202
314
  viewTransitionOpts == null || isViewTransitionAvailable,
203
315
  "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
204
316
  );
@@ -310,12 +422,12 @@ function RouterProvider({
310
422
  go: (n) => router.navigate(n),
311
423
  push: (to, state2, opts) => router.navigate(to, {
312
424
  state: state2,
313
- preventScrollReset: _optionalChain([opts, 'optionalAccess', _13 => _13.preventScrollReset])
425
+ preventScrollReset: _optionalChain([opts, 'optionalAccess', _14 => _14.preventScrollReset])
314
426
  }),
315
427
  replace: (to, state2, opts) => router.navigate(to, {
316
428
  replace: true,
317
429
  state: state2,
318
- preventScrollReset: _optionalChain([opts, 'optionalAccess', _14 => _14.preventScrollReset])
430
+ preventScrollReset: _optionalChain([opts, 'optionalAccess', _15 => _15.preventScrollReset])
319
431
  })
320
432
  };
321
433
  }, [router]);
@@ -330,7 +442,7 @@ function RouterProvider({
330
442
  }),
331
443
  [router, navigator, basename, unstable_onError]
332
444
  );
333
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
445
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
334
446
  Router,
335
447
  {
336
448
  basename,
@@ -356,7 +468,7 @@ function DataRoutes({
356
468
  state,
357
469
  unstable_onError
358
470
  }) {
359
- return _chunkWQE2SM7Sjs.useRoutesImpl.call(void 0, routes, void 0, state, unstable_onError, future);
471
+ return _chunkYJ6T7YSEjs.useRoutesImpl.call(void 0, routes, void 0, state, unstable_onError, future);
360
472
  }
361
473
  function MemoryRouter({
362
474
  basename,
@@ -366,7 +478,7 @@ function MemoryRouter({
366
478
  }) {
367
479
  let historyRef = React.useRef();
368
480
  if (historyRef.current == null) {
369
- historyRef.current = _chunkWQE2SM7Sjs.createMemoryHistory.call(void 0, {
481
+ historyRef.current = _chunkYJ6T7YSEjs.createMemoryHistory.call(void 0, {
370
482
  initialEntries,
371
483
  initialIndex,
372
484
  v5Compat: true
@@ -401,23 +513,23 @@ function Navigate({
401
513
  state,
402
514
  relative
403
515
  }) {
404
- _chunkWQE2SM7Sjs.invariant.call(void 0,
405
- _chunkWQE2SM7Sjs.useInRouterContext.call(void 0, ),
516
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
517
+ _chunkYJ6T7YSEjs.useInRouterContext.call(void 0, ),
406
518
  // TODO: This error is probably because they somehow have 2 versions of
407
519
  // the router loaded. We can help them understand how to avoid that.
408
520
  `<Navigate> may be used only in the context of a <Router> component.`
409
521
  );
410
- let { static: isStatic } = React.useContext(_chunkWQE2SM7Sjs.NavigationContext);
411
- _chunkWQE2SM7Sjs.warning.call(void 0,
522
+ let { static: isStatic } = React.useContext(_chunkYJ6T7YSEjs.NavigationContext);
523
+ _chunkYJ6T7YSEjs.warning.call(void 0,
412
524
  !isStatic,
413
525
  `<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.`
414
526
  );
415
- let { matches } = React.useContext(_chunkWQE2SM7Sjs.RouteContext);
416
- let { pathname: locationPathname } = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
417
- let navigate = _chunkWQE2SM7Sjs.useNavigate.call(void 0, );
418
- let path = _chunkWQE2SM7Sjs.resolveTo.call(void 0,
527
+ let { matches } = React.useContext(_chunkYJ6T7YSEjs.RouteContext);
528
+ let { pathname: locationPathname } = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
529
+ let navigate = _chunkYJ6T7YSEjs.useNavigate.call(void 0, );
530
+ let path = _chunkYJ6T7YSEjs.resolveTo.call(void 0,
419
531
  to,
420
- _chunkWQE2SM7Sjs.getResolveToMatches.call(void 0, matches),
532
+ _chunkYJ6T7YSEjs.getResolveToMatches.call(void 0, matches),
421
533
  locationPathname,
422
534
  relative === "path"
423
535
  );
@@ -428,10 +540,10 @@ function Navigate({
428
540
  return null;
429
541
  }
430
542
  function Outlet(props) {
431
- return _chunkWQE2SM7Sjs.useOutlet.call(void 0, props.context);
543
+ return _chunkYJ6T7YSEjs.useOutlet.call(void 0, props.context);
432
544
  }
433
545
  function Route(props) {
434
- _chunkWQE2SM7Sjs.invariant.call(void 0,
546
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
435
547
  false,
436
548
  `A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`
437
549
  );
@@ -444,8 +556,8 @@ function Router({
444
556
  navigator,
445
557
  static: staticProp = false
446
558
  }) {
447
- _chunkWQE2SM7Sjs.invariant.call(void 0,
448
- !_chunkWQE2SM7Sjs.useInRouterContext.call(void 0, ),
559
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
560
+ !_chunkYJ6T7YSEjs.useInRouterContext.call(void 0, ),
449
561
  `You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`
450
562
  );
451
563
  let basename = basenameProp.replace(/^\/*/, "/");
@@ -459,7 +571,7 @@ function Router({
459
571
  [basename, navigator, staticProp]
460
572
  );
461
573
  if (typeof locationProp === "string") {
462
- locationProp = _chunkWQE2SM7Sjs.parsePath.call(void 0, locationProp);
574
+ locationProp = _chunkYJ6T7YSEjs.parsePath.call(void 0, locationProp);
463
575
  }
464
576
  let {
465
577
  pathname = "/",
@@ -469,7 +581,7 @@ function Router({
469
581
  key = "default"
470
582
  } = locationProp;
471
583
  let locationContext = React.useMemo(() => {
472
- let trailingPathname = _chunkWQE2SM7Sjs.stripBasename.call(void 0, pathname, basename);
584
+ let trailingPathname = _chunkYJ6T7YSEjs.stripBasename.call(void 0, pathname, basename);
473
585
  if (trailingPathname == null) {
474
586
  return null;
475
587
  }
@@ -484,33 +596,33 @@ function Router({
484
596
  navigationType
485
597
  };
486
598
  }, [basename, pathname, search, hash, state, key, navigationType]);
487
- _chunkWQE2SM7Sjs.warning.call(void 0,
599
+ _chunkYJ6T7YSEjs.warning.call(void 0,
488
600
  locationContext != null,
489
601
  `<Router basename="${basename}"> is not able to match the URL "${pathname}${search}${hash}" because it does not start with the basename, so the <Router> won't render anything.`
490
602
  );
491
603
  if (locationContext == null) {
492
604
  return null;
493
605
  }
494
- return /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.LocationContext.Provider, { children, value: locationContext }));
606
+ return /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.LocationContext.Provider, { children, value: locationContext }));
495
607
  }
496
608
  function Routes({
497
609
  children,
498
610
  location
499
611
  }) {
500
- return _chunkWQE2SM7Sjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
612
+ return _chunkYJ6T7YSEjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
501
613
  }
502
614
  function Await({
503
615
  children,
504
616
  errorElement,
505
617
  resolve
506
618
  }) {
507
- let dataRouterContext = React.useContext(_chunkWQE2SM7Sjs.DataRouterContext);
619
+ let dataRouterContext = React.useContext(_chunkYJ6T7YSEjs.DataRouterContext);
508
620
  return /* @__PURE__ */ React.createElement(
509
621
  AwaitErrorBoundary,
510
622
  {
511
623
  resolve,
512
624
  errorElement,
513
- unstable_onError: _optionalChain([dataRouterContext, 'optionalAccess', _15 => _15.unstable_onError])
625
+ unstable_onError: _optionalChain([dataRouterContext, 'optionalAccess', _16 => _16.unstable_onError])
514
626
  },
515
627
  /* @__PURE__ */ React.createElement(ResolveAwait, null, children)
516
628
  );
@@ -559,7 +671,7 @@ var AwaitErrorBoundary = class extends React.Component {
559
671
  promise = resolve.then(
560
672
  (data) => Object.defineProperty(resolve, "_data", { get: () => data }),
561
673
  (error) => {
562
- _optionalChain([this, 'access', _16 => _16.props, 'access', _17 => _17.unstable_onError, 'optionalCall', _18 => _18(error)]);
674
+ _optionalChain([this, 'access', _17 => _17.props, 'access', _18 => _18.unstable_onError, 'optionalCall', _19 => _19(error)]);
563
675
  Object.defineProperty(resolve, "_error", { get: () => error });
564
676
  }
565
677
  );
@@ -568,10 +680,10 @@ var AwaitErrorBoundary = class extends React.Component {
568
680
  throw promise._error;
569
681
  }
570
682
  if (status === 2 /* error */) {
571
- return /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.AwaitContext.Provider, { value: promise, children: errorElement });
683
+ return /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.AwaitContext.Provider, { value: promise, children: errorElement });
572
684
  }
573
685
  if (status === 1 /* success */) {
574
- return /* @__PURE__ */ React.createElement(_chunkWQE2SM7Sjs.AwaitContext.Provider, { value: promise, children });
686
+ return /* @__PURE__ */ React.createElement(_chunkYJ6T7YSEjs.AwaitContext.Provider, { value: promise, children });
575
687
  }
576
688
  throw promise;
577
689
  }
@@ -579,7 +691,7 @@ var AwaitErrorBoundary = class extends React.Component {
579
691
  function ResolveAwait({
580
692
  children
581
693
  }) {
582
- let data = _chunkWQE2SM7Sjs.useAsyncValue.call(void 0, );
694
+ let data = _chunkYJ6T7YSEjs.useAsyncValue.call(void 0, );
583
695
  let toRender = typeof children === "function" ? children(data) : children;
584
696
  return /* @__PURE__ */ React.createElement(React.Fragment, null, toRender);
585
697
  }
@@ -597,11 +709,11 @@ function createRoutesFromChildren(children, parentPath = []) {
597
709
  );
598
710
  return;
599
711
  }
600
- _chunkWQE2SM7Sjs.invariant.call(void 0,
712
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
601
713
  element.type === Route,
602
714
  `[${typeof element.type === "string" ? element.type : element.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`
603
715
  );
604
- _chunkWQE2SM7Sjs.invariant.call(void 0,
716
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
605
717
  !element.props.index || !element.props.children,
606
718
  "An index route cannot have child routes."
607
719
  );
@@ -636,14 +748,14 @@ function createRoutesFromChildren(children, parentPath = []) {
636
748
  }
637
749
  var createRoutesFromElements = createRoutesFromChildren;
638
750
  function renderMatches(matches) {
639
- return _chunkWQE2SM7Sjs._renderMatches.call(void 0, matches);
751
+ return _chunkYJ6T7YSEjs._renderMatches.call(void 0, matches);
640
752
  }
641
753
  function useRouteComponentProps() {
642
754
  return {
643
- params: _chunkWQE2SM7Sjs.useParams.call(void 0, ),
644
- loaderData: _chunkWQE2SM7Sjs.useLoaderData.call(void 0, ),
645
- actionData: _chunkWQE2SM7Sjs.useActionData.call(void 0, ),
646
- matches: _chunkWQE2SM7Sjs.useMatches.call(void 0, )
755
+ params: _chunkYJ6T7YSEjs.useParams.call(void 0, ),
756
+ loaderData: _chunkYJ6T7YSEjs.useLoaderData.call(void 0, ),
757
+ actionData: _chunkYJ6T7YSEjs.useActionData.call(void 0, ),
758
+ matches: _chunkYJ6T7YSEjs.useMatches.call(void 0, )
647
759
  };
648
760
  }
649
761
  function WithComponentProps({
@@ -660,9 +772,9 @@ function withComponentProps(Component2) {
660
772
  }
661
773
  function useHydrateFallbackProps() {
662
774
  return {
663
- params: _chunkWQE2SM7Sjs.useParams.call(void 0, ),
664
- loaderData: _chunkWQE2SM7Sjs.useLoaderData.call(void 0, ),
665
- actionData: _chunkWQE2SM7Sjs.useActionData.call(void 0, )
775
+ params: _chunkYJ6T7YSEjs.useParams.call(void 0, ),
776
+ loaderData: _chunkYJ6T7YSEjs.useLoaderData.call(void 0, ),
777
+ actionData: _chunkYJ6T7YSEjs.useActionData.call(void 0, )
666
778
  };
667
779
  }
668
780
  function WithHydrateFallbackProps({
@@ -679,10 +791,10 @@ function withHydrateFallbackProps(HydrateFallback) {
679
791
  }
680
792
  function useErrorBoundaryProps() {
681
793
  return {
682
- params: _chunkWQE2SM7Sjs.useParams.call(void 0, ),
683
- loaderData: _chunkWQE2SM7Sjs.useLoaderData.call(void 0, ),
684
- actionData: _chunkWQE2SM7Sjs.useActionData.call(void 0, ),
685
- error: _chunkWQE2SM7Sjs.useRouteError.call(void 0, )
794
+ params: _chunkYJ6T7YSEjs.useParams.call(void 0, ),
795
+ loaderData: _chunkYJ6T7YSEjs.useLoaderData.call(void 0, ),
796
+ actionData: _chunkYJ6T7YSEjs.useActionData.call(void 0, ),
797
+ error: _chunkYJ6T7YSEjs.useRouteError.call(void 0, )
686
798
  };
687
799
  }
688
800
  function WithErrorBoundaryProps({
@@ -767,7 +879,7 @@ var supportedFormEncTypes = /* @__PURE__ */ new Set([
767
879
  ]);
768
880
  function getFormEncType(encType) {
769
881
  if (encType != null && !supportedFormEncTypes.has(encType)) {
770
- _chunkWQE2SM7Sjs.warning.call(void 0,
882
+ _chunkYJ6T7YSEjs.warning.call(void 0,
771
883
  false,
772
884
  `"${encType}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`
773
885
  );
@@ -783,7 +895,7 @@ function getFormSubmissionInfo(target, basename) {
783
895
  let body;
784
896
  if (isFormElement(target)) {
785
897
  let attr = target.getAttribute("action");
786
- action = attr ? _chunkWQE2SM7Sjs.stripBasename.call(void 0, attr, basename) : null;
898
+ action = attr ? _chunkYJ6T7YSEjs.stripBasename.call(void 0, attr, basename) : null;
787
899
  method = target.getAttribute("method") || defaultMethod;
788
900
  encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
789
901
  formData = new FormData(target);
@@ -795,7 +907,7 @@ function getFormSubmissionInfo(target, basename) {
795
907
  );
796
908
  }
797
909
  let attr = target.getAttribute("formaction") || form.getAttribute("action");
798
- action = attr ? _chunkWQE2SM7Sjs.stripBasename.call(void 0, attr, basename) : null;
910
+ action = attr ? _chunkYJ6T7YSEjs.stripBasename.call(void 0, attr, basename) : null;
799
911
  method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
800
912
  encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
801
913
  formData = new FormData(form, target);
@@ -832,44 +944,42 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
832
944
  try {
833
945
  if (isBrowser) {
834
946
  window.__reactRouterVersion = // @ts-expect-error
835
- "0.0.0-experimental-73e447577";
947
+ "0.0.0-experimental-e613d4238";
836
948
  }
837
949
  } catch (e) {
838
950
  }
839
951
  function createBrowserRouter(routes, opts) {
840
- return _chunkWQE2SM7Sjs.createRouter.call(void 0, {
841
- basename: _optionalChain([opts, 'optionalAccess', _19 => _19.basename]),
842
- getContext: _optionalChain([opts, 'optionalAccess', _20 => _20.getContext]),
843
- future: _optionalChain([opts, 'optionalAccess', _21 => _21.future]),
844
- history: _chunkWQE2SM7Sjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _22 => _22.window]) }),
845
- hydrationData: _optionalChain([opts, 'optionalAccess', _23 => _23.hydrationData]) || parseHydrationData(),
952
+ return _chunkYJ6T7YSEjs.createRouter.call(void 0, {
953
+ basename: _optionalChain([opts, 'optionalAccess', _20 => _20.basename]),
954
+ getContext: _optionalChain([opts, 'optionalAccess', _21 => _21.getContext]),
955
+ future: _optionalChain([opts, 'optionalAccess', _22 => _22.future]),
956
+ history: _chunkYJ6T7YSEjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _23 => _23.window]) }),
957
+ hydrationData: _optionalChain([opts, 'optionalAccess', _24 => _24.hydrationData]) || parseHydrationData(),
846
958
  routes,
847
959
  mapRouteProperties,
848
960
  hydrationRouteProperties,
849
- dataStrategy: _optionalChain([opts, 'optionalAccess', _24 => _24.dataStrategy]),
850
- patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _25 => _25.patchRoutesOnNavigation]),
851
- window: _optionalChain([opts, 'optionalAccess', _26 => _26.window]),
852
- unstable_instrumentations: _optionalChain([opts, 'optionalAccess', _27 => _27.unstable_instrumentations])
961
+ dataStrategy: _optionalChain([opts, 'optionalAccess', _25 => _25.dataStrategy]),
962
+ patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _26 => _26.patchRoutesOnNavigation]),
963
+ window: _optionalChain([opts, 'optionalAccess', _27 => _27.window])
853
964
  }).initialize();
854
965
  }
855
966
  function createHashRouter(routes, opts) {
856
- return _chunkWQE2SM7Sjs.createRouter.call(void 0, {
967
+ return _chunkYJ6T7YSEjs.createRouter.call(void 0, {
857
968
  basename: _optionalChain([opts, 'optionalAccess', _28 => _28.basename]),
858
969
  getContext: _optionalChain([opts, 'optionalAccess', _29 => _29.getContext]),
859
970
  future: _optionalChain([opts, 'optionalAccess', _30 => _30.future]),
860
- history: _chunkWQE2SM7Sjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _31 => _31.window]) }),
971
+ history: _chunkYJ6T7YSEjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _31 => _31.window]) }),
861
972
  hydrationData: _optionalChain([opts, 'optionalAccess', _32 => _32.hydrationData]) || parseHydrationData(),
862
973
  routes,
863
974
  mapRouteProperties,
864
975
  hydrationRouteProperties,
865
976
  dataStrategy: _optionalChain([opts, 'optionalAccess', _33 => _33.dataStrategy]),
866
977
  patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _34 => _34.patchRoutesOnNavigation]),
867
- window: _optionalChain([opts, 'optionalAccess', _35 => _35.window]),
868
- unstable_instrumentations: _optionalChain([opts, 'optionalAccess', _36 => _36.unstable_instrumentations])
978
+ window: _optionalChain([opts, 'optionalAccess', _35 => _35.window])
869
979
  }).initialize();
870
980
  }
871
981
  function parseHydrationData() {
872
- let state = _optionalChain([window, 'optionalAccess', _37 => _37.__staticRouterHydrationData]);
982
+ let state = _optionalChain([window, 'optionalAccess', _36 => _36.__staticRouterHydrationData]);
873
983
  if (state && state.errors) {
874
984
  state = {
875
985
  ...state,
@@ -884,7 +994,7 @@ function deserializeErrors(errors) {
884
994
  let serialized = {};
885
995
  for (let [key, val] of entries) {
886
996
  if (val && val.__type === "RouteErrorResponse") {
887
- serialized[key] = new (0, _chunkWQE2SM7Sjs.ErrorResponseImpl)(
997
+ serialized[key] = new (0, _chunkYJ6T7YSEjs.ErrorResponseImpl)(
888
998
  val.status,
889
999
  val.statusText,
890
1000
  val.data,
@@ -920,7 +1030,7 @@ function BrowserRouter({
920
1030
  }) {
921
1031
  let historyRef = React2.useRef();
922
1032
  if (historyRef.current == null) {
923
- historyRef.current = _chunkWQE2SM7Sjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
1033
+ historyRef.current = _chunkYJ6T7YSEjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
924
1034
  }
925
1035
  let history = historyRef.current;
926
1036
  let [state, setStateImpl] = React2.useState({
@@ -948,7 +1058,7 @@ function BrowserRouter({
948
1058
  function HashRouter({ basename, children, window: window2 }) {
949
1059
  let historyRef = React2.useRef();
950
1060
  if (historyRef.current == null) {
951
- historyRef.current = _chunkWQE2SM7Sjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
1061
+ historyRef.current = _chunkYJ6T7YSEjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
952
1062
  }
953
1063
  let history = historyRef.current;
954
1064
  let [state, setStateImpl] = React2.useState({
@@ -1017,7 +1127,7 @@ var Link = React2.forwardRef(
1017
1127
  viewTransition,
1018
1128
  ...rest
1019
1129
  }, forwardedRef) {
1020
- let { basename } = React2.useContext(_chunkWQE2SM7Sjs.NavigationContext);
1130
+ let { basename } = React2.useContext(_chunkYJ6T7YSEjs.NavigationContext);
1021
1131
  let isAbsolute = typeof to === "string" && ABSOLUTE_URL_REGEX.test(to);
1022
1132
  let absoluteHref;
1023
1133
  let isExternal = false;
@@ -1027,22 +1137,22 @@ var Link = React2.forwardRef(
1027
1137
  try {
1028
1138
  let currentUrl = new URL(window.location.href);
1029
1139
  let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
1030
- let path = _chunkWQE2SM7Sjs.stripBasename.call(void 0, targetUrl.pathname, basename);
1140
+ let path = _chunkYJ6T7YSEjs.stripBasename.call(void 0, targetUrl.pathname, basename);
1031
1141
  if (targetUrl.origin === currentUrl.origin && path != null) {
1032
1142
  to = path + targetUrl.search + targetUrl.hash;
1033
1143
  } else {
1034
1144
  isExternal = true;
1035
1145
  }
1036
1146
  } catch (e) {
1037
- _chunkWQE2SM7Sjs.warning.call(void 0,
1147
+ _chunkYJ6T7YSEjs.warning.call(void 0,
1038
1148
  false,
1039
1149
  `<Link to="${to}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1040
1150
  );
1041
1151
  }
1042
1152
  }
1043
1153
  }
1044
- let href = _chunkWQE2SM7Sjs.useHref.call(void 0, to, { relative });
1045
- let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkWQE2SM7Sjs.usePrefetchBehavior.call(void 0,
1154
+ let href = _chunkYJ6T7YSEjs.useHref.call(void 0, to, { relative });
1155
+ let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkYJ6T7YSEjs.usePrefetchBehavior.call(void 0,
1046
1156
  prefetch,
1047
1157
  rest
1048
1158
  );
@@ -1069,13 +1179,13 @@ var Link = React2.forwardRef(
1069
1179
  ...prefetchHandlers,
1070
1180
  href: absoluteHref || href,
1071
1181
  onClick: isExternal || reloadDocument ? onClick : handleClick,
1072
- ref: _chunkWQE2SM7Sjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1182
+ ref: _chunkYJ6T7YSEjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1073
1183
  target,
1074
1184
  "data-discover": !isAbsolute && discover === "render" ? "true" : void 0
1075
1185
  }
1076
1186
  )
1077
1187
  );
1078
- return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunkWQE2SM7Sjs.PrefetchPageLinks, { page: href })) : link;
1188
+ return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunkYJ6T7YSEjs.PrefetchPageLinks, { page: href })) : link;
1079
1189
  }
1080
1190
  );
1081
1191
  Link.displayName = "Link";
@@ -1091,10 +1201,10 @@ var NavLink = React2.forwardRef(
1091
1201
  children,
1092
1202
  ...rest
1093
1203
  }, ref) {
1094
- let path = _chunkWQE2SM7Sjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1095
- let location = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
1096
- let routerState = React2.useContext(_chunkWQE2SM7Sjs.DataRouterStateContext);
1097
- let { navigator, basename } = React2.useContext(_chunkWQE2SM7Sjs.NavigationContext);
1204
+ let path = _chunkYJ6T7YSEjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1205
+ let location = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
1206
+ let routerState = React2.useContext(_chunkYJ6T7YSEjs.DataRouterStateContext);
1207
+ let { navigator, basename } = React2.useContext(_chunkYJ6T7YSEjs.NavigationContext);
1098
1208
  let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static
1099
1209
  // eslint-disable-next-line react-hooks/rules-of-hooks
1100
1210
  useViewTransitionState(path) && viewTransition === true;
@@ -1107,7 +1217,7 @@ var NavLink = React2.forwardRef(
1107
1217
  toPathname = toPathname.toLowerCase();
1108
1218
  }
1109
1219
  if (nextLocationPathname && basename) {
1110
- nextLocationPathname = _chunkWQE2SM7Sjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1220
+ nextLocationPathname = _chunkYJ6T7YSEjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1111
1221
  }
1112
1222
  const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length;
1113
1223
  let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/";
@@ -1171,7 +1281,7 @@ var Form = React2.forwardRef(
1171
1281
  if (event.defaultPrevented) return;
1172
1282
  event.preventDefault();
1173
1283
  let submitter = event.nativeEvent.submitter;
1174
- let submitMethod = _optionalChain([submitter, 'optionalAccess', _38 => _38.getAttribute, 'call', _39 => _39("formmethod")]) || method;
1284
+ let submitMethod = _optionalChain([submitter, 'optionalAccess', _37 => _37.getAttribute, 'call', _38 => _38("formmethod")]) || method;
1175
1285
  submit(submitter || event.currentTarget, {
1176
1286
  fetcherKey,
1177
1287
  method: submitMethod,
@@ -1202,10 +1312,10 @@ function ScrollRestoration({
1202
1312
  storageKey,
1203
1313
  ...props
1204
1314
  }) {
1205
- let remixContext = React2.useContext(_chunkWQE2SM7Sjs.FrameworkContext);
1206
- let { basename } = React2.useContext(_chunkWQE2SM7Sjs.NavigationContext);
1207
- let location = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
1208
- let matches = _chunkWQE2SM7Sjs.useMatches.call(void 0, );
1315
+ let remixContext = React2.useContext(_chunkYJ6T7YSEjs.FrameworkContext);
1316
+ let { basename } = React2.useContext(_chunkYJ6T7YSEjs.NavigationContext);
1317
+ let location = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
1318
+ let matches = _chunkYJ6T7YSEjs.useMatches.call(void 0, );
1209
1319
  useScrollRestoration({ getKey, storageKey });
1210
1320
  let ssrKey = React2.useMemo(
1211
1321
  () => {
@@ -1259,13 +1369,13 @@ function getDataRouterConsoleError(hookName) {
1259
1369
  return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1260
1370
  }
1261
1371
  function useDataRouterContext(hookName) {
1262
- let ctx = React2.useContext(_chunkWQE2SM7Sjs.DataRouterContext);
1263
- _chunkWQE2SM7Sjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1372
+ let ctx = React2.useContext(_chunkYJ6T7YSEjs.DataRouterContext);
1373
+ _chunkYJ6T7YSEjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1264
1374
  return ctx;
1265
1375
  }
1266
1376
  function useDataRouterState(hookName) {
1267
- let state = React2.useContext(_chunkWQE2SM7Sjs.DataRouterStateContext);
1268
- _chunkWQE2SM7Sjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1377
+ let state = React2.useContext(_chunkYJ6T7YSEjs.DataRouterStateContext);
1378
+ _chunkYJ6T7YSEjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1269
1379
  return state;
1270
1380
  }
1271
1381
  function useLinkClickHandler(to, {
@@ -1276,14 +1386,14 @@ function useLinkClickHandler(to, {
1276
1386
  relative,
1277
1387
  viewTransition
1278
1388
  } = {}) {
1279
- let navigate = _chunkWQE2SM7Sjs.useNavigate.call(void 0, );
1280
- let location = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
1281
- let path = _chunkWQE2SM7Sjs.useResolvedPath.call(void 0, to, { relative });
1389
+ let navigate = _chunkYJ6T7YSEjs.useNavigate.call(void 0, );
1390
+ let location = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
1391
+ let path = _chunkYJ6T7YSEjs.useResolvedPath.call(void 0, to, { relative });
1282
1392
  return React2.useCallback(
1283
1393
  (event) => {
1284
1394
  if (shouldProcessLinkClick(event, target)) {
1285
1395
  event.preventDefault();
1286
- let replace = replaceProp !== void 0 ? replaceProp : _chunkWQE2SM7Sjs.createPath.call(void 0, location) === _chunkWQE2SM7Sjs.createPath.call(void 0, path);
1396
+ let replace = replaceProp !== void 0 ? replaceProp : _chunkYJ6T7YSEjs.createPath.call(void 0, location) === _chunkYJ6T7YSEjs.createPath.call(void 0, path);
1287
1397
  navigate(to, {
1288
1398
  replace,
1289
1399
  state,
@@ -1308,13 +1418,13 @@ function useLinkClickHandler(to, {
1308
1418
  );
1309
1419
  }
1310
1420
  function useSearchParams(defaultInit) {
1311
- _chunkWQE2SM7Sjs.warning.call(void 0,
1421
+ _chunkYJ6T7YSEjs.warning.call(void 0,
1312
1422
  typeof URLSearchParams !== "undefined",
1313
1423
  `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.`
1314
1424
  );
1315
1425
  let defaultSearchParamsRef = React2.useRef(createSearchParams(defaultInit));
1316
1426
  let hasSetSearchParamsRef = React2.useRef(false);
1317
- let location = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
1427
+ let location = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
1318
1428
  let searchParams = React2.useMemo(
1319
1429
  () => (
1320
1430
  // Only merge in the defaults if we haven't yet called setSearchParams.
@@ -1327,7 +1437,7 @@ function useSearchParams(defaultInit) {
1327
1437
  ),
1328
1438
  [location.search]
1329
1439
  );
1330
- let navigate = _chunkWQE2SM7Sjs.useNavigate.call(void 0, );
1440
+ let navigate = _chunkYJ6T7YSEjs.useNavigate.call(void 0, );
1331
1441
  let setSearchParams = React2.useCallback(
1332
1442
  (nextInit, navigateOptions) => {
1333
1443
  const newSearchParams = createSearchParams(
@@ -1344,8 +1454,8 @@ var fetcherId = 0;
1344
1454
  var getUniqueFetcherId = () => `__${String(++fetcherId)}__`;
1345
1455
  function useSubmit() {
1346
1456
  let { router } = useDataRouterContext("useSubmit" /* UseSubmit */);
1347
- let { basename } = React2.useContext(_chunkWQE2SM7Sjs.NavigationContext);
1348
- let currentRouteId = _chunkWQE2SM7Sjs.useRouteId.call(void 0, );
1457
+ let { basename } = React2.useContext(_chunkYJ6T7YSEjs.NavigationContext);
1458
+ let currentRouteId = _chunkYJ6T7YSEjs.useRouteId.call(void 0, );
1349
1459
  return React2.useCallback(
1350
1460
  async (target, options = {}) => {
1351
1461
  let { action, method, encType, formData, body } = getFormSubmissionInfo(
@@ -1381,12 +1491,12 @@ function useSubmit() {
1381
1491
  );
1382
1492
  }
1383
1493
  function useFormAction(action, { relative } = {}) {
1384
- let { basename } = React2.useContext(_chunkWQE2SM7Sjs.NavigationContext);
1385
- let routeContext = React2.useContext(_chunkWQE2SM7Sjs.RouteContext);
1386
- _chunkWQE2SM7Sjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1494
+ let { basename } = React2.useContext(_chunkYJ6T7YSEjs.NavigationContext);
1495
+ let routeContext = React2.useContext(_chunkYJ6T7YSEjs.RouteContext);
1496
+ _chunkYJ6T7YSEjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1387
1497
  let [match] = routeContext.matches.slice(-1);
1388
- let path = { ..._chunkWQE2SM7Sjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1389
- let location = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
1498
+ let path = { ..._chunkYJ6T7YSEjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1499
+ let location = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
1390
1500
  if (action == null) {
1391
1501
  path.search = location.search;
1392
1502
  let params = new URLSearchParams(path.search);
@@ -1403,21 +1513,21 @@ function useFormAction(action, { relative } = {}) {
1403
1513
  path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
1404
1514
  }
1405
1515
  if (basename !== "/") {
1406
- path.pathname = path.pathname === "/" ? basename : _chunkWQE2SM7Sjs.joinPaths.call(void 0, [basename, path.pathname]);
1516
+ path.pathname = path.pathname === "/" ? basename : _chunkYJ6T7YSEjs.joinPaths.call(void 0, [basename, path.pathname]);
1407
1517
  }
1408
- return _chunkWQE2SM7Sjs.createPath.call(void 0, path);
1518
+ return _chunkYJ6T7YSEjs.createPath.call(void 0, path);
1409
1519
  }
1410
1520
  function useFetcher({
1411
1521
  key
1412
1522
  } = {}) {
1413
1523
  let { router } = useDataRouterContext("useFetcher" /* UseFetcher */);
1414
1524
  let state = useDataRouterState("useFetcher" /* UseFetcher */);
1415
- let fetcherData = React2.useContext(_chunkWQE2SM7Sjs.FetchersContext);
1416
- let route = React2.useContext(_chunkWQE2SM7Sjs.RouteContext);
1417
- let routeId = _optionalChain([route, 'access', _40 => _40.matches, 'access', _41 => _41[route.matches.length - 1], 'optionalAccess', _42 => _42.route, 'access', _43 => _43.id]);
1418
- _chunkWQE2SM7Sjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1419
- _chunkWQE2SM7Sjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1420
- _chunkWQE2SM7Sjs.invariant.call(void 0,
1525
+ let fetcherData = React2.useContext(_chunkYJ6T7YSEjs.FetchersContext);
1526
+ let route = React2.useContext(_chunkYJ6T7YSEjs.RouteContext);
1527
+ let routeId = _optionalChain([route, 'access', _39 => _39.matches, 'access', _40 => _40[route.matches.length - 1], 'optionalAccess', _41 => _41.route, 'access', _42 => _42.id]);
1528
+ _chunkYJ6T7YSEjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1529
+ _chunkYJ6T7YSEjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1530
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
1421
1531
  routeId != null,
1422
1532
  `useFetcher can only be used on routes that contain a unique "id"`
1423
1533
  );
@@ -1432,7 +1542,7 @@ function useFetcher({
1432
1542
  }, [router, fetcherKey]);
1433
1543
  let load = React2.useCallback(
1434
1544
  async (href, opts) => {
1435
- _chunkWQE2SM7Sjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1545
+ _chunkYJ6T7YSEjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1436
1546
  await router.fetch(fetcherKey, routeId, href, opts);
1437
1547
  },
1438
1548
  [fetcherKey, routeId, router]
@@ -1458,7 +1568,7 @@ function useFetcher({
1458
1568
  FetcherForm2.displayName = "fetcher.Form";
1459
1569
  return FetcherForm2;
1460
1570
  }, [fetcherKey]);
1461
- let fetcher = state.fetchers.get(fetcherKey) || _chunkWQE2SM7Sjs.IDLE_FETCHER;
1571
+ let fetcher = state.fetchers.get(fetcherKey) || _chunkYJ6T7YSEjs.IDLE_FETCHER;
1462
1572
  let data = fetcherData.get(fetcherKey);
1463
1573
  let fetcherWithComponents = React2.useMemo(
1464
1574
  () => ({
@@ -1489,7 +1599,7 @@ function getScrollRestorationKey(location, matches, basename, getKey) {
1489
1599
  key = getKey(
1490
1600
  {
1491
1601
  ...location,
1492
- pathname: _chunkWQE2SM7Sjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1602
+ pathname: _chunkYJ6T7YSEjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1493
1603
  },
1494
1604
  matches
1495
1605
  );
@@ -1510,10 +1620,10 @@ function useScrollRestoration({
1510
1620
  let { restoreScrollPosition, preventScrollReset } = useDataRouterState(
1511
1621
  "useScrollRestoration" /* UseScrollRestoration */
1512
1622
  );
1513
- let { basename } = React2.useContext(_chunkWQE2SM7Sjs.NavigationContext);
1514
- let location = _chunkWQE2SM7Sjs.useLocation.call(void 0, );
1515
- let matches = _chunkWQE2SM7Sjs.useMatches.call(void 0, );
1516
- let navigation = _chunkWQE2SM7Sjs.useNavigation.call(void 0, );
1623
+ let { basename } = React2.useContext(_chunkYJ6T7YSEjs.NavigationContext);
1624
+ let location = _chunkYJ6T7YSEjs.useLocation.call(void 0, );
1625
+ let matches = _chunkYJ6T7YSEjs.useMatches.call(void 0, );
1626
+ let navigation = _chunkYJ6T7YSEjs.useNavigation.call(void 0, );
1517
1627
  React2.useEffect(() => {
1518
1628
  window.history.scrollRestoration = "manual";
1519
1629
  return () => {
@@ -1532,7 +1642,7 @@ function useScrollRestoration({
1532
1642
  JSON.stringify(savedScrollPositions)
1533
1643
  );
1534
1644
  } catch (error) {
1535
- _chunkWQE2SM7Sjs.warning.call(void 0,
1645
+ _chunkYJ6T7YSEjs.warning.call(void 0,
1536
1646
  false,
1537
1647
  `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${error}).`
1538
1648
  );
@@ -1553,7 +1663,7 @@ function useScrollRestoration({
1553
1663
  }
1554
1664
  }, [storageKey]);
1555
1665
  React2.useLayoutEffect(() => {
1556
- let disableScrollRestoration = _optionalChain([router, 'optionalAccess', _44 => _44.enableScrollRestoration, 'call', _45 => _45(
1666
+ let disableScrollRestoration = _optionalChain([router, 'optionalAccess', _43 => _43.enableScrollRestoration, 'call', _44 => _44(
1557
1667
  savedScrollPositions,
1558
1668
  () => window.scrollY,
1559
1669
  getKey ? (location2, matches2) => getScrollRestorationKey(location2, matches2, basename, getKey) : void 0
@@ -1579,7 +1689,7 @@ function useScrollRestoration({
1579
1689
  }
1580
1690
  }
1581
1691
  } catch (e2) {
1582
- _chunkWQE2SM7Sjs.warning.call(void 0,
1692
+ _chunkYJ6T7YSEjs.warning.call(void 0,
1583
1693
  false,
1584
1694
  `"${location.hash.slice(
1585
1695
  1
@@ -1617,7 +1727,7 @@ function usePrompt({
1617
1727
  when,
1618
1728
  message
1619
1729
  }) {
1620
- let blocker = _chunkWQE2SM7Sjs.useBlocker.call(void 0, when);
1730
+ let blocker = _chunkYJ6T7YSEjs.useBlocker.call(void 0, when);
1621
1731
  React2.useEffect(() => {
1622
1732
  if (blocker.state === "blocked") {
1623
1733
  let proceed = window.confirm(message);
@@ -1635,21 +1745,21 @@ function usePrompt({
1635
1745
  }, [blocker, when]);
1636
1746
  }
1637
1747
  function useViewTransitionState(to, { relative } = {}) {
1638
- let vtContext = React2.useContext(_chunkWQE2SM7Sjs.ViewTransitionContext);
1639
- _chunkWQE2SM7Sjs.invariant.call(void 0,
1748
+ let vtContext = React2.useContext(_chunkYJ6T7YSEjs.ViewTransitionContext);
1749
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
1640
1750
  vtContext != null,
1641
1751
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1642
1752
  );
1643
1753
  let { basename } = useDataRouterContext(
1644
1754
  "useViewTransitionState" /* useViewTransitionState */
1645
1755
  );
1646
- let path = _chunkWQE2SM7Sjs.useResolvedPath.call(void 0, to, { relative });
1756
+ let path = _chunkYJ6T7YSEjs.useResolvedPath.call(void 0, to, { relative });
1647
1757
  if (!vtContext.isTransitioning) {
1648
1758
  return false;
1649
1759
  }
1650
- let currentPath = _chunkWQE2SM7Sjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1651
- let nextPath = _chunkWQE2SM7Sjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1652
- return _chunkWQE2SM7Sjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkWQE2SM7Sjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1760
+ let currentPath = _chunkYJ6T7YSEjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1761
+ let nextPath = _chunkYJ6T7YSEjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1762
+ return _chunkYJ6T7YSEjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkYJ6T7YSEjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1653
1763
  }
1654
1764
 
1655
1765
  // lib/dom/server.tsx
@@ -1660,7 +1770,7 @@ function StaticRouter({
1660
1770
  location: locationProp = "/"
1661
1771
  }) {
1662
1772
  if (typeof locationProp === "string") {
1663
- locationProp = _chunkWQE2SM7Sjs.parsePath.call(void 0, locationProp);
1773
+ locationProp = _chunkYJ6T7YSEjs.parsePath.call(void 0, locationProp);
1664
1774
  }
1665
1775
  let action = "POP" /* Pop */;
1666
1776
  let location = {
@@ -1689,7 +1799,7 @@ function StaticRouterProvider({
1689
1799
  hydrate = true,
1690
1800
  nonce
1691
1801
  }) {
1692
- _chunkWQE2SM7Sjs.invariant.call(void 0,
1802
+ _chunkYJ6T7YSEjs.invariant.call(void 0,
1693
1803
  router && context,
1694
1804
  "You must provide `router` and `context` to <StaticRouterProvider>"
1695
1805
  );
@@ -1712,7 +1822,7 @@ function StaticRouterProvider({
1712
1822
  hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
1713
1823
  }
1714
1824
  let { state } = dataRouterContext.router;
1715
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunkWQE2SM7Sjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunkWQE2SM7Sjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunkWQE2SM7Sjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunkWQE2SM7Sjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1825
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunkYJ6T7YSEjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunkYJ6T7YSEjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunkYJ6T7YSEjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunkYJ6T7YSEjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1716
1826
  Router,
1717
1827
  {
1718
1828
  basename: dataRouterContext.basename,
@@ -1743,14 +1853,14 @@ function DataRoutes2({
1743
1853
  future,
1744
1854
  state
1745
1855
  }) {
1746
- return _chunkWQE2SM7Sjs.useRoutesImpl.call(void 0, routes, void 0, state, void 0, future);
1856
+ return _chunkYJ6T7YSEjs.useRoutesImpl.call(void 0, routes, void 0, state, void 0, future);
1747
1857
  }
1748
1858
  function serializeErrors(errors) {
1749
1859
  if (!errors) return null;
1750
1860
  let entries = Object.entries(errors);
1751
1861
  let serialized = {};
1752
1862
  for (let [key, val] of entries) {
1753
- if (_chunkWQE2SM7Sjs.isRouteErrorResponse.call(void 0, val)) {
1863
+ if (_chunkYJ6T7YSEjs.isRouteErrorResponse.call(void 0, val)) {
1754
1864
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
1755
1865
  } else if (val instanceof Error) {
1756
1866
  serialized[key] = {
@@ -1800,14 +1910,14 @@ function getStatelessNavigator() {
1800
1910
  };
1801
1911
  }
1802
1912
  function createStaticHandler2(routes, opts) {
1803
- return _chunkWQE2SM7Sjs.createStaticHandler.call(void 0, routes, {
1913
+ return _chunkYJ6T7YSEjs.createStaticHandler.call(void 0, routes, {
1804
1914
  ...opts,
1805
1915
  mapRouteProperties
1806
1916
  });
1807
1917
  }
1808
1918
  function createStaticRouter(routes, context, opts = {}) {
1809
1919
  let manifest = {};
1810
- let dataRoutes = _chunkWQE2SM7Sjs.convertRoutesToDataRoutes.call(void 0,
1920
+ let dataRoutes = _chunkYJ6T7YSEjs.convertRoutesToDataRoutes.call(void 0,
1811
1921
  routes,
1812
1922
  mapRouteProperties,
1813
1923
  void 0,
@@ -1828,7 +1938,7 @@ function createStaticRouter(routes, context, opts = {}) {
1828
1938
  get future() {
1829
1939
  return {
1830
1940
  v8_middleware: false,
1831
- ..._optionalChain([opts, 'optionalAccess', _46 => _46.future])
1941
+ ..._optionalChain([opts, 'optionalAccess', _45 => _45.future])
1832
1942
  };
1833
1943
  },
1834
1944
  get state() {
@@ -1840,7 +1950,7 @@ function createStaticRouter(routes, context, opts = {}) {
1840
1950
  actionData: context.actionData,
1841
1951
  errors: context.errors,
1842
1952
  initialized: true,
1843
- navigation: _chunkWQE2SM7Sjs.IDLE_NAVIGATION,
1953
+ navigation: _chunkYJ6T7YSEjs.IDLE_NAVIGATION,
1844
1954
  restoreScrollPosition: null,
1845
1955
  preventScrollReset: false,
1846
1956
  revalidation: "idle",
@@ -1875,7 +1985,7 @@ function createStaticRouter(routes, context, opts = {}) {
1875
1985
  createHref,
1876
1986
  encodeLocation,
1877
1987
  getFetcher() {
1878
- return _chunkWQE2SM7Sjs.IDLE_FETCHER;
1988
+ return _chunkYJ6T7YSEjs.IDLE_FETCHER;
1879
1989
  },
1880
1990
  deleteFetcher() {
1881
1991
  throw msg("deleteFetcher");
@@ -1887,7 +1997,7 @@ function createStaticRouter(routes, context, opts = {}) {
1887
1997
  throw msg("dispose");
1888
1998
  },
1889
1999
  getBlocker() {
1890
- return _chunkWQE2SM7Sjs.IDLE_BLOCKER;
2000
+ return _chunkYJ6T7YSEjs.IDLE_BLOCKER;
1891
2001
  },
1892
2002
  deleteBlocker() {
1893
2003
  throw msg("deleteBlocker");
@@ -1905,10 +2015,10 @@ function createStaticRouter(routes, context, opts = {}) {
1905
2015
  };
1906
2016
  }
1907
2017
  function createHref(to) {
1908
- return typeof to === "string" ? to : _chunkWQE2SM7Sjs.createPath.call(void 0, to);
2018
+ return typeof to === "string" ? to : _chunkYJ6T7YSEjs.createPath.call(void 0, to);
1909
2019
  }
1910
2020
  function encodeLocation(to) {
1911
- let href = typeof to === "string" ? to : _chunkWQE2SM7Sjs.createPath.call(void 0, to);
2021
+ let href = typeof to === "string" ? to : _chunkYJ6T7YSEjs.createPath.call(void 0, to);
1912
2022
  href = href.replace(/ $/, "%20");
1913
2023
  let encoded = ABSOLUTE_URL_REGEX2.test(href) ? new URL(href) : new URL(href, "http://localhost");
1914
2024
  return {
@@ -1975,4 +2085,5 @@ function htmlEscape(str) {
1975
2085
 
1976
2086
 
1977
2087
 
1978
- exports.mapRouteProperties = mapRouteProperties; exports.hydrationRouteProperties = hydrationRouteProperties; exports.createMemoryRouter = createMemoryRouter; exports.RouterProvider = RouterProvider; exports.MemoryRouter = MemoryRouter; exports.Navigate = Navigate; exports.Outlet = Outlet; exports.Route = Route; exports.Router = Router; exports.Routes = Routes; exports.Await = Await; exports.createRoutesFromChildren = createRoutesFromChildren; exports.createRoutesFromElements = createRoutesFromElements; exports.renderMatches = renderMatches; exports.WithComponentProps = WithComponentProps; exports.withComponentProps = withComponentProps; exports.WithHydrateFallbackProps = WithHydrateFallbackProps; exports.withHydrateFallbackProps = withHydrateFallbackProps; exports.WithErrorBoundaryProps = WithErrorBoundaryProps; exports.withErrorBoundaryProps = withErrorBoundaryProps; exports.createSearchParams = createSearchParams; exports.createBrowserRouter = createBrowserRouter; exports.createHashRouter = createHashRouter; exports.BrowserRouter = BrowserRouter; exports.HashRouter = HashRouter; exports.HistoryRouter = HistoryRouter; exports.Link = Link; exports.NavLink = NavLink; exports.Form = Form; exports.ScrollRestoration = ScrollRestoration; exports.useLinkClickHandler = useLinkClickHandler; exports.useSearchParams = useSearchParams; exports.useSubmit = useSubmit; exports.useFormAction = useFormAction; exports.useFetcher = useFetcher; exports.useFetchers = useFetchers; exports.useScrollRestoration = useScrollRestoration; exports.useBeforeUnload = useBeforeUnload; exports.usePrompt = usePrompt; exports.useViewTransitionState = useViewTransitionState; exports.StaticRouter = StaticRouter; exports.StaticRouterProvider = StaticRouterProvider; exports.createStaticHandler = createStaticHandler2; exports.createStaticRouter = createStaticRouter;
2088
+
2089
+ exports.mapRouteProperties = mapRouteProperties; exports.hydrationRouteProperties = hydrationRouteProperties; exports.createMemoryRouter = createMemoryRouter; exports.UNSTABLE_TransitionEnabledRouterProvider = UNSTABLE_TransitionEnabledRouterProvider; exports.RouterProvider = RouterProvider; exports.MemoryRouter = MemoryRouter; exports.Navigate = Navigate; exports.Outlet = Outlet; exports.Route = Route; exports.Router = Router; exports.Routes = Routes; exports.Await = Await; exports.createRoutesFromChildren = createRoutesFromChildren; exports.createRoutesFromElements = createRoutesFromElements; exports.renderMatches = renderMatches; exports.WithComponentProps = WithComponentProps; exports.withComponentProps = withComponentProps; exports.WithHydrateFallbackProps = WithHydrateFallbackProps; exports.withHydrateFallbackProps = withHydrateFallbackProps; exports.WithErrorBoundaryProps = WithErrorBoundaryProps; exports.withErrorBoundaryProps = withErrorBoundaryProps; exports.createSearchParams = createSearchParams; exports.createBrowserRouter = createBrowserRouter; exports.createHashRouter = createHashRouter; exports.BrowserRouter = BrowserRouter; exports.HashRouter = HashRouter; exports.HistoryRouter = HistoryRouter; exports.Link = Link; exports.NavLink = NavLink; exports.Form = Form; exports.ScrollRestoration = ScrollRestoration; exports.useLinkClickHandler = useLinkClickHandler; exports.useSearchParams = useSearchParams; exports.useSubmit = useSubmit; exports.useFormAction = useFormAction; exports.useFetcher = useFetcher; exports.useFetchers = useFetchers; exports.useScrollRestoration = useScrollRestoration; exports.useBeforeUnload = useBeforeUnload; exports.usePrompt = usePrompt; exports.useViewTransitionState = useViewTransitionState; exports.StaticRouter = StaticRouter; exports.StaticRouterProvider = StaticRouterProvider; exports.createStaticHandler = createStaticHandler2; exports.createStaticRouter = createStaticRouter;