react-router 7.9.2-pre.3 → 7.9.2

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 (30) hide show
  1. package/CHANGELOG.md +19 -13
  2. package/dist/development/{chunk-665FWGER.js → chunk-6Z3LVDDH.js} +1 -1
  3. package/dist/{production/chunk-W5PNW5ME.mjs → development/chunk-I3JMK7SU.mjs} +2 -2
  4. package/dist/development/{chunk-2WPYM2VW.mjs → chunk-TMI4QPZX.mjs} +2 -2
  5. package/dist/{production/chunk-NQKLZ2ZX.js → development/chunk-VJDS7KU2.js} +134 -134
  6. package/dist/development/dom-export.js +3 -3
  7. package/dist/development/dom-export.mjs +3 -3
  8. package/dist/development/index-react-server-client.js +4 -4
  9. package/dist/development/index-react-server-client.mjs +2 -2
  10. package/dist/development/index-react-server.js +1 -1
  11. package/dist/development/index-react-server.mjs +1 -1
  12. package/dist/development/index.js +97 -97
  13. package/dist/development/index.mjs +3 -3
  14. package/dist/development/lib/types/internal.js +1 -1
  15. package/dist/development/lib/types/internal.mjs +1 -1
  16. package/dist/production/{chunk-ADN7TWEK.js → chunk-6XOQCZSJ.js} +1 -1
  17. package/dist/{development/chunk-AQYUIXYF.mjs → production/chunk-DTPYDGNQ.mjs} +2 -2
  18. package/dist/production/{chunk-R53WSUO7.mjs → chunk-WLGOH3FE.mjs} +2 -2
  19. package/dist/{development/chunk-QWBW4WZW.js → production/chunk-Y7UMYKHT.js} +134 -134
  20. package/dist/production/dom-export.js +3 -3
  21. package/dist/production/dom-export.mjs +3 -3
  22. package/dist/production/index-react-server-client.js +4 -4
  23. package/dist/production/index-react-server-client.mjs +2 -2
  24. package/dist/production/index-react-server.js +1 -1
  25. package/dist/production/index-react-server.mjs +1 -1
  26. package/dist/production/index.js +97 -97
  27. package/dist/production/index.mjs +3 -3
  28. package/dist/production/lib/types/internal.js +1 -1
  29. package/dist/production/lib/types/internal.mjs +1 -1
  30. package/package.json +1 -1
@@ -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 v7.9.2-pre.3
2
+ * react-router v7.9.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -61,7 +61,7 @@
61
61
 
62
62
 
63
63
 
64
- var _chunkADN7TWEKjs = require('./chunk-ADN7TWEK.js');
64
+ var _chunk6Z3LVDDHjs = require('./chunk-6Z3LVDDH.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 (_chunkADN7TWEKjs.ENABLE_DEV_WARNINGS) {
75
+ if (_chunk6Z3LVDDHjs.ENABLE_DEV_WARNINGS) {
76
76
  if (route.element) {
77
- _chunkADN7TWEKjs.warning.call(void 0,
77
+ _chunk6Z3LVDDHjs.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 (_chunkADN7TWEKjs.ENABLE_DEV_WARNINGS) {
89
+ if (_chunk6Z3LVDDHjs.ENABLE_DEV_WARNINGS) {
90
90
  if (route.hydrateFallbackElement) {
91
- _chunkADN7TWEKjs.warning.call(void 0,
91
+ _chunk6Z3LVDDHjs.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 (_chunkADN7TWEKjs.ENABLE_DEV_WARNINGS) {
103
+ if (_chunk6Z3LVDDHjs.ENABLE_DEV_WARNINGS) {
104
104
  if (route.errorElement) {
105
- _chunkADN7TWEKjs.warning.call(void 0,
105
+ _chunk6Z3LVDDHjs.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 _chunkADN7TWEKjs.createRouter.call(void 0, {
123
+ return _chunk6Z3LVDDHjs.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: _chunkADN7TWEKjs.createMemoryHistory.call(void 0, {
127
+ history: _chunk6Z3LVDDHjs.createMemoryHistory.call(void 0, {
128
128
  initialEntries: _optionalChain([opts, 'optionalAccess', _5 => _5.initialEntries]),
129
129
  initialIndex: _optionalChain([opts, 'optionalAccess', _6 => _6.initialIndex])
130
130
  }),
@@ -240,15 +240,15 @@ function UNSTABLE_TransitionEnabledRouterProvider({
240
240
  }
241
241
  );
242
242
  }, [router, reactDomFlushSyncImpl, state]);
243
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(
244
- _chunkADN7TWEKjs.DataRouterStateContext.Provider,
243
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(
244
+ _chunk6Z3LVDDHjs.DataRouterStateContext.Provider,
245
245
  {
246
246
  value: {
247
247
  ...state,
248
248
  revalidation: revalidating ? "loading" : state.revalidation
249
249
  }
250
250
  },
251
- /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(
251
+ /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(
252
252
  Router,
253
253
  {
254
254
  basename,
@@ -305,12 +305,12 @@ function RouterProvider({
305
305
  }
306
306
  });
307
307
  deletedFetchers.forEach((key) => fetcherData.current.delete(key));
308
- _chunkADN7TWEKjs.warnOnce.call(void 0,
308
+ _chunk6Z3LVDDHjs.warnOnce.call(void 0,
309
309
  flushSync === false || reactDomFlushSyncImpl != null,
310
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.'
311
311
  );
312
312
  let isViewTransitionAvailable = router.window != null && router.window.document != null && typeof router.window.document.startViewTransition === "function";
313
- _chunkADN7TWEKjs.warnOnce.call(void 0,
313
+ _chunk6Z3LVDDHjs.warnOnce.call(void 0,
314
314
  viewTransitionOpts == null || isViewTransitionAvailable,
315
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."
316
316
  );
@@ -442,7 +442,7 @@ function RouterProvider({
442
442
  }),
443
443
  [router, navigator, basename, unstable_onError]
444
444
  );
445
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
445
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
446
446
  Router,
447
447
  {
448
448
  basename,
@@ -468,7 +468,7 @@ function DataRoutes({
468
468
  state,
469
469
  unstable_onError
470
470
  }) {
471
- return _chunkADN7TWEKjs.useRoutesImpl.call(void 0, routes, void 0, state, unstable_onError, future);
471
+ return _chunk6Z3LVDDHjs.useRoutesImpl.call(void 0, routes, void 0, state, unstable_onError, future);
472
472
  }
473
473
  function MemoryRouter({
474
474
  basename,
@@ -478,7 +478,7 @@ function MemoryRouter({
478
478
  }) {
479
479
  let historyRef = React.useRef();
480
480
  if (historyRef.current == null) {
481
- historyRef.current = _chunkADN7TWEKjs.createMemoryHistory.call(void 0, {
481
+ historyRef.current = _chunk6Z3LVDDHjs.createMemoryHistory.call(void 0, {
482
482
  initialEntries,
483
483
  initialIndex,
484
484
  v5Compat: true
@@ -513,23 +513,23 @@ function Navigate({
513
513
  state,
514
514
  relative
515
515
  }) {
516
- _chunkADN7TWEKjs.invariant.call(void 0,
517
- _chunkADN7TWEKjs.useInRouterContext.call(void 0, ),
516
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
517
+ _chunk6Z3LVDDHjs.useInRouterContext.call(void 0, ),
518
518
  // TODO: This error is probably because they somehow have 2 versions of
519
519
  // the router loaded. We can help them understand how to avoid that.
520
520
  `<Navigate> may be used only in the context of a <Router> component.`
521
521
  );
522
- let { static: isStatic } = React.useContext(_chunkADN7TWEKjs.NavigationContext);
523
- _chunkADN7TWEKjs.warning.call(void 0,
522
+ let { static: isStatic } = React.useContext(_chunk6Z3LVDDHjs.NavigationContext);
523
+ _chunk6Z3LVDDHjs.warning.call(void 0,
524
524
  !isStatic,
525
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.`
526
526
  );
527
- let { matches } = React.useContext(_chunkADN7TWEKjs.RouteContext);
528
- let { pathname: locationPathname } = _chunkADN7TWEKjs.useLocation.call(void 0, );
529
- let navigate = _chunkADN7TWEKjs.useNavigate.call(void 0, );
530
- let path = _chunkADN7TWEKjs.resolveTo.call(void 0,
527
+ let { matches } = React.useContext(_chunk6Z3LVDDHjs.RouteContext);
528
+ let { pathname: locationPathname } = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
529
+ let navigate = _chunk6Z3LVDDHjs.useNavigate.call(void 0, );
530
+ let path = _chunk6Z3LVDDHjs.resolveTo.call(void 0,
531
531
  to,
532
- _chunkADN7TWEKjs.getResolveToMatches.call(void 0, matches),
532
+ _chunk6Z3LVDDHjs.getResolveToMatches.call(void 0, matches),
533
533
  locationPathname,
534
534
  relative === "path"
535
535
  );
@@ -540,10 +540,10 @@ function Navigate({
540
540
  return null;
541
541
  }
542
542
  function Outlet(props) {
543
- return _chunkADN7TWEKjs.useOutlet.call(void 0, props.context);
543
+ return _chunk6Z3LVDDHjs.useOutlet.call(void 0, props.context);
544
544
  }
545
545
  function Route(props) {
546
- _chunkADN7TWEKjs.invariant.call(void 0,
546
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
547
547
  false,
548
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>.`
549
549
  );
@@ -556,8 +556,8 @@ function Router({
556
556
  navigator,
557
557
  static: staticProp = false
558
558
  }) {
559
- _chunkADN7TWEKjs.invariant.call(void 0,
560
- !_chunkADN7TWEKjs.useInRouterContext.call(void 0, ),
559
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
560
+ !_chunk6Z3LVDDHjs.useInRouterContext.call(void 0, ),
561
561
  `You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`
562
562
  );
563
563
  let basename = basenameProp.replace(/^\/*/, "/");
@@ -571,7 +571,7 @@ function Router({
571
571
  [basename, navigator, staticProp]
572
572
  );
573
573
  if (typeof locationProp === "string") {
574
- locationProp = _chunkADN7TWEKjs.parsePath.call(void 0, locationProp);
574
+ locationProp = _chunk6Z3LVDDHjs.parsePath.call(void 0, locationProp);
575
575
  }
576
576
  let {
577
577
  pathname = "/",
@@ -581,7 +581,7 @@ function Router({
581
581
  key = "default"
582
582
  } = locationProp;
583
583
  let locationContext = React.useMemo(() => {
584
- let trailingPathname = _chunkADN7TWEKjs.stripBasename.call(void 0, pathname, basename);
584
+ let trailingPathname = _chunk6Z3LVDDHjs.stripBasename.call(void 0, pathname, basename);
585
585
  if (trailingPathname == null) {
586
586
  return null;
587
587
  }
@@ -596,27 +596,27 @@ function Router({
596
596
  navigationType
597
597
  };
598
598
  }, [basename, pathname, search, hash, state, key, navigationType]);
599
- _chunkADN7TWEKjs.warning.call(void 0,
599
+ _chunk6Z3LVDDHjs.warning.call(void 0,
600
600
  locationContext != null,
601
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.`
602
602
  );
603
603
  if (locationContext == null) {
604
604
  return null;
605
605
  }
606
- return /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.LocationContext.Provider, { children, value: locationContext }));
606
+ return /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.LocationContext.Provider, { children, value: locationContext }));
607
607
  }
608
608
  function Routes({
609
609
  children,
610
610
  location
611
611
  }) {
612
- return _chunkADN7TWEKjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
612
+ return _chunk6Z3LVDDHjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
613
613
  }
614
614
  function Await({
615
615
  children,
616
616
  errorElement,
617
617
  resolve
618
618
  }) {
619
- let dataRouterContext = React.useContext(_chunkADN7TWEKjs.DataRouterContext);
619
+ let dataRouterContext = React.useContext(_chunk6Z3LVDDHjs.DataRouterContext);
620
620
  return /* @__PURE__ */ React.createElement(
621
621
  AwaitErrorBoundary,
622
622
  {
@@ -680,10 +680,10 @@ var AwaitErrorBoundary = class extends React.Component {
680
680
  throw promise._error;
681
681
  }
682
682
  if (status === 2 /* error */) {
683
- return /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.AwaitContext.Provider, { value: promise, children: errorElement });
683
+ return /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.AwaitContext.Provider, { value: promise, children: errorElement });
684
684
  }
685
685
  if (status === 1 /* success */) {
686
- return /* @__PURE__ */ React.createElement(_chunkADN7TWEKjs.AwaitContext.Provider, { value: promise, children });
686
+ return /* @__PURE__ */ React.createElement(_chunk6Z3LVDDHjs.AwaitContext.Provider, { value: promise, children });
687
687
  }
688
688
  throw promise;
689
689
  }
@@ -691,7 +691,7 @@ var AwaitErrorBoundary = class extends React.Component {
691
691
  function ResolveAwait({
692
692
  children
693
693
  }) {
694
- let data = _chunkADN7TWEKjs.useAsyncValue.call(void 0, );
694
+ let data = _chunk6Z3LVDDHjs.useAsyncValue.call(void 0, );
695
695
  let toRender = typeof children === "function" ? children(data) : children;
696
696
  return /* @__PURE__ */ React.createElement(React.Fragment, null, toRender);
697
697
  }
@@ -709,11 +709,11 @@ function createRoutesFromChildren(children, parentPath = []) {
709
709
  );
710
710
  return;
711
711
  }
712
- _chunkADN7TWEKjs.invariant.call(void 0,
712
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
713
713
  element.type === Route,
714
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>`
715
715
  );
716
- _chunkADN7TWEKjs.invariant.call(void 0,
716
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
717
717
  !element.props.index || !element.props.children,
718
718
  "An index route cannot have child routes."
719
719
  );
@@ -748,14 +748,14 @@ function createRoutesFromChildren(children, parentPath = []) {
748
748
  }
749
749
  var createRoutesFromElements = createRoutesFromChildren;
750
750
  function renderMatches(matches) {
751
- return _chunkADN7TWEKjs._renderMatches.call(void 0, matches);
751
+ return _chunk6Z3LVDDHjs._renderMatches.call(void 0, matches);
752
752
  }
753
753
  function useRouteComponentProps() {
754
754
  return {
755
- params: _chunkADN7TWEKjs.useParams.call(void 0, ),
756
- loaderData: _chunkADN7TWEKjs.useLoaderData.call(void 0, ),
757
- actionData: _chunkADN7TWEKjs.useActionData.call(void 0, ),
758
- matches: _chunkADN7TWEKjs.useMatches.call(void 0, )
755
+ params: _chunk6Z3LVDDHjs.useParams.call(void 0, ),
756
+ loaderData: _chunk6Z3LVDDHjs.useLoaderData.call(void 0, ),
757
+ actionData: _chunk6Z3LVDDHjs.useActionData.call(void 0, ),
758
+ matches: _chunk6Z3LVDDHjs.useMatches.call(void 0, )
759
759
  };
760
760
  }
761
761
  function WithComponentProps({
@@ -772,9 +772,9 @@ function withComponentProps(Component2) {
772
772
  }
773
773
  function useHydrateFallbackProps() {
774
774
  return {
775
- params: _chunkADN7TWEKjs.useParams.call(void 0, ),
776
- loaderData: _chunkADN7TWEKjs.useLoaderData.call(void 0, ),
777
- actionData: _chunkADN7TWEKjs.useActionData.call(void 0, )
775
+ params: _chunk6Z3LVDDHjs.useParams.call(void 0, ),
776
+ loaderData: _chunk6Z3LVDDHjs.useLoaderData.call(void 0, ),
777
+ actionData: _chunk6Z3LVDDHjs.useActionData.call(void 0, )
778
778
  };
779
779
  }
780
780
  function WithHydrateFallbackProps({
@@ -791,10 +791,10 @@ function withHydrateFallbackProps(HydrateFallback) {
791
791
  }
792
792
  function useErrorBoundaryProps() {
793
793
  return {
794
- params: _chunkADN7TWEKjs.useParams.call(void 0, ),
795
- loaderData: _chunkADN7TWEKjs.useLoaderData.call(void 0, ),
796
- actionData: _chunkADN7TWEKjs.useActionData.call(void 0, ),
797
- error: _chunkADN7TWEKjs.useRouteError.call(void 0, )
794
+ params: _chunk6Z3LVDDHjs.useParams.call(void 0, ),
795
+ loaderData: _chunk6Z3LVDDHjs.useLoaderData.call(void 0, ),
796
+ actionData: _chunk6Z3LVDDHjs.useActionData.call(void 0, ),
797
+ error: _chunk6Z3LVDDHjs.useRouteError.call(void 0, )
798
798
  };
799
799
  }
800
800
  function WithErrorBoundaryProps({
@@ -879,7 +879,7 @@ var supportedFormEncTypes = /* @__PURE__ */ new Set([
879
879
  ]);
880
880
  function getFormEncType(encType) {
881
881
  if (encType != null && !supportedFormEncTypes.has(encType)) {
882
- _chunkADN7TWEKjs.warning.call(void 0,
882
+ _chunk6Z3LVDDHjs.warning.call(void 0,
883
883
  false,
884
884
  `"${encType}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`
885
885
  );
@@ -895,7 +895,7 @@ function getFormSubmissionInfo(target, basename) {
895
895
  let body;
896
896
  if (isFormElement(target)) {
897
897
  let attr = target.getAttribute("action");
898
- action = attr ? _chunkADN7TWEKjs.stripBasename.call(void 0, attr, basename) : null;
898
+ action = attr ? _chunk6Z3LVDDHjs.stripBasename.call(void 0, attr, basename) : null;
899
899
  method = target.getAttribute("method") || defaultMethod;
900
900
  encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
901
901
  formData = new FormData(target);
@@ -907,7 +907,7 @@ function getFormSubmissionInfo(target, basename) {
907
907
  );
908
908
  }
909
909
  let attr = target.getAttribute("formaction") || form.getAttribute("action");
910
- action = attr ? _chunkADN7TWEKjs.stripBasename.call(void 0, attr, basename) : null;
910
+ action = attr ? _chunk6Z3LVDDHjs.stripBasename.call(void 0, attr, basename) : null;
911
911
  method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
912
912
  encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
913
913
  formData = new FormData(form, target);
@@ -944,16 +944,16 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
944
944
  try {
945
945
  if (isBrowser) {
946
946
  window.__reactRouterVersion = // @ts-expect-error
947
- "7.9.2-pre.3";
947
+ "7.9.2";
948
948
  }
949
949
  } catch (e) {
950
950
  }
951
951
  function createBrowserRouter(routes, opts) {
952
- return _chunkADN7TWEKjs.createRouter.call(void 0, {
952
+ return _chunk6Z3LVDDHjs.createRouter.call(void 0, {
953
953
  basename: _optionalChain([opts, 'optionalAccess', _20 => _20.basename]),
954
954
  getContext: _optionalChain([opts, 'optionalAccess', _21 => _21.getContext]),
955
955
  future: _optionalChain([opts, 'optionalAccess', _22 => _22.future]),
956
- history: _chunkADN7TWEKjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _23 => _23.window]) }),
956
+ history: _chunk6Z3LVDDHjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _23 => _23.window]) }),
957
957
  hydrationData: _optionalChain([opts, 'optionalAccess', _24 => _24.hydrationData]) || parseHydrationData(),
958
958
  routes,
959
959
  mapRouteProperties,
@@ -964,11 +964,11 @@ function createBrowserRouter(routes, opts) {
964
964
  }).initialize();
965
965
  }
966
966
  function createHashRouter(routes, opts) {
967
- return _chunkADN7TWEKjs.createRouter.call(void 0, {
967
+ return _chunk6Z3LVDDHjs.createRouter.call(void 0, {
968
968
  basename: _optionalChain([opts, 'optionalAccess', _28 => _28.basename]),
969
969
  getContext: _optionalChain([opts, 'optionalAccess', _29 => _29.getContext]),
970
970
  future: _optionalChain([opts, 'optionalAccess', _30 => _30.future]),
971
- history: _chunkADN7TWEKjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _31 => _31.window]) }),
971
+ history: _chunk6Z3LVDDHjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _31 => _31.window]) }),
972
972
  hydrationData: _optionalChain([opts, 'optionalAccess', _32 => _32.hydrationData]) || parseHydrationData(),
973
973
  routes,
974
974
  mapRouteProperties,
@@ -994,7 +994,7 @@ function deserializeErrors(errors) {
994
994
  let serialized = {};
995
995
  for (let [key, val] of entries) {
996
996
  if (val && val.__type === "RouteErrorResponse") {
997
- serialized[key] = new (0, _chunkADN7TWEKjs.ErrorResponseImpl)(
997
+ serialized[key] = new (0, _chunk6Z3LVDDHjs.ErrorResponseImpl)(
998
998
  val.status,
999
999
  val.statusText,
1000
1000
  val.data,
@@ -1030,7 +1030,7 @@ function BrowserRouter({
1030
1030
  }) {
1031
1031
  let historyRef = React2.useRef();
1032
1032
  if (historyRef.current == null) {
1033
- historyRef.current = _chunkADN7TWEKjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
1033
+ historyRef.current = _chunk6Z3LVDDHjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
1034
1034
  }
1035
1035
  let history = historyRef.current;
1036
1036
  let [state, setStateImpl] = React2.useState({
@@ -1058,7 +1058,7 @@ function BrowserRouter({
1058
1058
  function HashRouter({ basename, children, window: window2 }) {
1059
1059
  let historyRef = React2.useRef();
1060
1060
  if (historyRef.current == null) {
1061
- historyRef.current = _chunkADN7TWEKjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
1061
+ historyRef.current = _chunk6Z3LVDDHjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
1062
1062
  }
1063
1063
  let history = historyRef.current;
1064
1064
  let [state, setStateImpl] = React2.useState({
@@ -1127,7 +1127,7 @@ var Link = React2.forwardRef(
1127
1127
  viewTransition,
1128
1128
  ...rest
1129
1129
  }, forwardedRef) {
1130
- let { basename } = React2.useContext(_chunkADN7TWEKjs.NavigationContext);
1130
+ let { basename } = React2.useContext(_chunk6Z3LVDDHjs.NavigationContext);
1131
1131
  let isAbsolute = typeof to === "string" && ABSOLUTE_URL_REGEX.test(to);
1132
1132
  let absoluteHref;
1133
1133
  let isExternal = false;
@@ -1137,22 +1137,22 @@ var Link = React2.forwardRef(
1137
1137
  try {
1138
1138
  let currentUrl = new URL(window.location.href);
1139
1139
  let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
1140
- let path = _chunkADN7TWEKjs.stripBasename.call(void 0, targetUrl.pathname, basename);
1140
+ let path = _chunk6Z3LVDDHjs.stripBasename.call(void 0, targetUrl.pathname, basename);
1141
1141
  if (targetUrl.origin === currentUrl.origin && path != null) {
1142
1142
  to = path + targetUrl.search + targetUrl.hash;
1143
1143
  } else {
1144
1144
  isExternal = true;
1145
1145
  }
1146
1146
  } catch (e) {
1147
- _chunkADN7TWEKjs.warning.call(void 0,
1147
+ _chunk6Z3LVDDHjs.warning.call(void 0,
1148
1148
  false,
1149
1149
  `<Link to="${to}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1150
1150
  );
1151
1151
  }
1152
1152
  }
1153
1153
  }
1154
- let href = _chunkADN7TWEKjs.useHref.call(void 0, to, { relative });
1155
- let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunkADN7TWEKjs.usePrefetchBehavior.call(void 0,
1154
+ let href = _chunk6Z3LVDDHjs.useHref.call(void 0, to, { relative });
1155
+ let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunk6Z3LVDDHjs.usePrefetchBehavior.call(void 0,
1156
1156
  prefetch,
1157
1157
  rest
1158
1158
  );
@@ -1179,13 +1179,13 @@ var Link = React2.forwardRef(
1179
1179
  ...prefetchHandlers,
1180
1180
  href: absoluteHref || href,
1181
1181
  onClick: isExternal || reloadDocument ? onClick : handleClick,
1182
- ref: _chunkADN7TWEKjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1182
+ ref: _chunk6Z3LVDDHjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1183
1183
  target,
1184
1184
  "data-discover": !isAbsolute && discover === "render" ? "true" : void 0
1185
1185
  }
1186
1186
  )
1187
1187
  );
1188
- return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunkADN7TWEKjs.PrefetchPageLinks, { page: href })) : link;
1188
+ return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunk6Z3LVDDHjs.PrefetchPageLinks, { page: href })) : link;
1189
1189
  }
1190
1190
  );
1191
1191
  Link.displayName = "Link";
@@ -1201,10 +1201,10 @@ var NavLink = React2.forwardRef(
1201
1201
  children,
1202
1202
  ...rest
1203
1203
  }, ref) {
1204
- let path = _chunkADN7TWEKjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1205
- let location = _chunkADN7TWEKjs.useLocation.call(void 0, );
1206
- let routerState = React2.useContext(_chunkADN7TWEKjs.DataRouterStateContext);
1207
- let { navigator, basename } = React2.useContext(_chunkADN7TWEKjs.NavigationContext);
1204
+ let path = _chunk6Z3LVDDHjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1205
+ let location = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
1206
+ let routerState = React2.useContext(_chunk6Z3LVDDHjs.DataRouterStateContext);
1207
+ let { navigator, basename } = React2.useContext(_chunk6Z3LVDDHjs.NavigationContext);
1208
1208
  let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static
1209
1209
  // eslint-disable-next-line react-hooks/rules-of-hooks
1210
1210
  useViewTransitionState(path) && viewTransition === true;
@@ -1217,7 +1217,7 @@ var NavLink = React2.forwardRef(
1217
1217
  toPathname = toPathname.toLowerCase();
1218
1218
  }
1219
1219
  if (nextLocationPathname && basename) {
1220
- nextLocationPathname = _chunkADN7TWEKjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1220
+ nextLocationPathname = _chunk6Z3LVDDHjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1221
1221
  }
1222
1222
  const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length;
1223
1223
  let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/";
@@ -1312,10 +1312,10 @@ function ScrollRestoration({
1312
1312
  storageKey,
1313
1313
  ...props
1314
1314
  }) {
1315
- let remixContext = React2.useContext(_chunkADN7TWEKjs.FrameworkContext);
1316
- let { basename } = React2.useContext(_chunkADN7TWEKjs.NavigationContext);
1317
- let location = _chunkADN7TWEKjs.useLocation.call(void 0, );
1318
- let matches = _chunkADN7TWEKjs.useMatches.call(void 0, );
1315
+ let remixContext = React2.useContext(_chunk6Z3LVDDHjs.FrameworkContext);
1316
+ let { basename } = React2.useContext(_chunk6Z3LVDDHjs.NavigationContext);
1317
+ let location = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
1318
+ let matches = _chunk6Z3LVDDHjs.useMatches.call(void 0, );
1319
1319
  useScrollRestoration({ getKey, storageKey });
1320
1320
  let ssrKey = React2.useMemo(
1321
1321
  () => {
@@ -1369,13 +1369,13 @@ function getDataRouterConsoleError(hookName) {
1369
1369
  return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1370
1370
  }
1371
1371
  function useDataRouterContext(hookName) {
1372
- let ctx = React2.useContext(_chunkADN7TWEKjs.DataRouterContext);
1373
- _chunkADN7TWEKjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1372
+ let ctx = React2.useContext(_chunk6Z3LVDDHjs.DataRouterContext);
1373
+ _chunk6Z3LVDDHjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1374
1374
  return ctx;
1375
1375
  }
1376
1376
  function useDataRouterState(hookName) {
1377
- let state = React2.useContext(_chunkADN7TWEKjs.DataRouterStateContext);
1378
- _chunkADN7TWEKjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1377
+ let state = React2.useContext(_chunk6Z3LVDDHjs.DataRouterStateContext);
1378
+ _chunk6Z3LVDDHjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1379
1379
  return state;
1380
1380
  }
1381
1381
  function useLinkClickHandler(to, {
@@ -1386,14 +1386,14 @@ function useLinkClickHandler(to, {
1386
1386
  relative,
1387
1387
  viewTransition
1388
1388
  } = {}) {
1389
- let navigate = _chunkADN7TWEKjs.useNavigate.call(void 0, );
1390
- let location = _chunkADN7TWEKjs.useLocation.call(void 0, );
1391
- let path = _chunkADN7TWEKjs.useResolvedPath.call(void 0, to, { relative });
1389
+ let navigate = _chunk6Z3LVDDHjs.useNavigate.call(void 0, );
1390
+ let location = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
1391
+ let path = _chunk6Z3LVDDHjs.useResolvedPath.call(void 0, to, { relative });
1392
1392
  return React2.useCallback(
1393
1393
  (event) => {
1394
1394
  if (shouldProcessLinkClick(event, target)) {
1395
1395
  event.preventDefault();
1396
- let replace = replaceProp !== void 0 ? replaceProp : _chunkADN7TWEKjs.createPath.call(void 0, location) === _chunkADN7TWEKjs.createPath.call(void 0, path);
1396
+ let replace = replaceProp !== void 0 ? replaceProp : _chunk6Z3LVDDHjs.createPath.call(void 0, location) === _chunk6Z3LVDDHjs.createPath.call(void 0, path);
1397
1397
  navigate(to, {
1398
1398
  replace,
1399
1399
  state,
@@ -1418,13 +1418,13 @@ function useLinkClickHandler(to, {
1418
1418
  );
1419
1419
  }
1420
1420
  function useSearchParams(defaultInit) {
1421
- _chunkADN7TWEKjs.warning.call(void 0,
1421
+ _chunk6Z3LVDDHjs.warning.call(void 0,
1422
1422
  typeof URLSearchParams !== "undefined",
1423
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.`
1424
1424
  );
1425
1425
  let defaultSearchParamsRef = React2.useRef(createSearchParams(defaultInit));
1426
1426
  let hasSetSearchParamsRef = React2.useRef(false);
1427
- let location = _chunkADN7TWEKjs.useLocation.call(void 0, );
1427
+ let location = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
1428
1428
  let searchParams = React2.useMemo(
1429
1429
  () => (
1430
1430
  // Only merge in the defaults if we haven't yet called setSearchParams.
@@ -1437,7 +1437,7 @@ function useSearchParams(defaultInit) {
1437
1437
  ),
1438
1438
  [location.search]
1439
1439
  );
1440
- let navigate = _chunkADN7TWEKjs.useNavigate.call(void 0, );
1440
+ let navigate = _chunk6Z3LVDDHjs.useNavigate.call(void 0, );
1441
1441
  let setSearchParams = React2.useCallback(
1442
1442
  (nextInit, navigateOptions) => {
1443
1443
  const newSearchParams = createSearchParams(
@@ -1454,8 +1454,8 @@ var fetcherId = 0;
1454
1454
  var getUniqueFetcherId = () => `__${String(++fetcherId)}__`;
1455
1455
  function useSubmit() {
1456
1456
  let { router } = useDataRouterContext("useSubmit" /* UseSubmit */);
1457
- let { basename } = React2.useContext(_chunkADN7TWEKjs.NavigationContext);
1458
- let currentRouteId = _chunkADN7TWEKjs.useRouteId.call(void 0, );
1457
+ let { basename } = React2.useContext(_chunk6Z3LVDDHjs.NavigationContext);
1458
+ let currentRouteId = _chunk6Z3LVDDHjs.useRouteId.call(void 0, );
1459
1459
  return React2.useCallback(
1460
1460
  async (target, options = {}) => {
1461
1461
  let { action, method, encType, formData, body } = getFormSubmissionInfo(
@@ -1491,12 +1491,12 @@ function useSubmit() {
1491
1491
  );
1492
1492
  }
1493
1493
  function useFormAction(action, { relative } = {}) {
1494
- let { basename } = React2.useContext(_chunkADN7TWEKjs.NavigationContext);
1495
- let routeContext = React2.useContext(_chunkADN7TWEKjs.RouteContext);
1496
- _chunkADN7TWEKjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1494
+ let { basename } = React2.useContext(_chunk6Z3LVDDHjs.NavigationContext);
1495
+ let routeContext = React2.useContext(_chunk6Z3LVDDHjs.RouteContext);
1496
+ _chunk6Z3LVDDHjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1497
1497
  let [match] = routeContext.matches.slice(-1);
1498
- let path = { ..._chunkADN7TWEKjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1499
- let location = _chunkADN7TWEKjs.useLocation.call(void 0, );
1498
+ let path = { ..._chunk6Z3LVDDHjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1499
+ let location = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
1500
1500
  if (action == null) {
1501
1501
  path.search = location.search;
1502
1502
  let params = new URLSearchParams(path.search);
@@ -1513,21 +1513,21 @@ function useFormAction(action, { relative } = {}) {
1513
1513
  path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
1514
1514
  }
1515
1515
  if (basename !== "/") {
1516
- path.pathname = path.pathname === "/" ? basename : _chunkADN7TWEKjs.joinPaths.call(void 0, [basename, path.pathname]);
1516
+ path.pathname = path.pathname === "/" ? basename : _chunk6Z3LVDDHjs.joinPaths.call(void 0, [basename, path.pathname]);
1517
1517
  }
1518
- return _chunkADN7TWEKjs.createPath.call(void 0, path);
1518
+ return _chunk6Z3LVDDHjs.createPath.call(void 0, path);
1519
1519
  }
1520
1520
  function useFetcher({
1521
1521
  key
1522
1522
  } = {}) {
1523
1523
  let { router } = useDataRouterContext("useFetcher" /* UseFetcher */);
1524
1524
  let state = useDataRouterState("useFetcher" /* UseFetcher */);
1525
- let fetcherData = React2.useContext(_chunkADN7TWEKjs.FetchersContext);
1526
- let route = React2.useContext(_chunkADN7TWEKjs.RouteContext);
1525
+ let fetcherData = React2.useContext(_chunk6Z3LVDDHjs.FetchersContext);
1526
+ let route = React2.useContext(_chunk6Z3LVDDHjs.RouteContext);
1527
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
- _chunkADN7TWEKjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1529
- _chunkADN7TWEKjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1530
- _chunkADN7TWEKjs.invariant.call(void 0,
1528
+ _chunk6Z3LVDDHjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1529
+ _chunk6Z3LVDDHjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1530
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
1531
1531
  routeId != null,
1532
1532
  `useFetcher can only be used on routes that contain a unique "id"`
1533
1533
  );
@@ -1542,7 +1542,7 @@ function useFetcher({
1542
1542
  }, [router, fetcherKey]);
1543
1543
  let load = React2.useCallback(
1544
1544
  async (href, opts) => {
1545
- _chunkADN7TWEKjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1545
+ _chunk6Z3LVDDHjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1546
1546
  await router.fetch(fetcherKey, routeId, href, opts);
1547
1547
  },
1548
1548
  [fetcherKey, routeId, router]
@@ -1568,7 +1568,7 @@ function useFetcher({
1568
1568
  FetcherForm2.displayName = "fetcher.Form";
1569
1569
  return FetcherForm2;
1570
1570
  }, [fetcherKey]);
1571
- let fetcher = state.fetchers.get(fetcherKey) || _chunkADN7TWEKjs.IDLE_FETCHER;
1571
+ let fetcher = state.fetchers.get(fetcherKey) || _chunk6Z3LVDDHjs.IDLE_FETCHER;
1572
1572
  let data = fetcherData.get(fetcherKey);
1573
1573
  let fetcherWithComponents = React2.useMemo(
1574
1574
  () => ({
@@ -1599,7 +1599,7 @@ function getScrollRestorationKey(location, matches, basename, getKey) {
1599
1599
  key = getKey(
1600
1600
  {
1601
1601
  ...location,
1602
- pathname: _chunkADN7TWEKjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1602
+ pathname: _chunk6Z3LVDDHjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1603
1603
  },
1604
1604
  matches
1605
1605
  );
@@ -1620,10 +1620,10 @@ function useScrollRestoration({
1620
1620
  let { restoreScrollPosition, preventScrollReset } = useDataRouterState(
1621
1621
  "useScrollRestoration" /* UseScrollRestoration */
1622
1622
  );
1623
- let { basename } = React2.useContext(_chunkADN7TWEKjs.NavigationContext);
1624
- let location = _chunkADN7TWEKjs.useLocation.call(void 0, );
1625
- let matches = _chunkADN7TWEKjs.useMatches.call(void 0, );
1626
- let navigation = _chunkADN7TWEKjs.useNavigation.call(void 0, );
1623
+ let { basename } = React2.useContext(_chunk6Z3LVDDHjs.NavigationContext);
1624
+ let location = _chunk6Z3LVDDHjs.useLocation.call(void 0, );
1625
+ let matches = _chunk6Z3LVDDHjs.useMatches.call(void 0, );
1626
+ let navigation = _chunk6Z3LVDDHjs.useNavigation.call(void 0, );
1627
1627
  React2.useEffect(() => {
1628
1628
  window.history.scrollRestoration = "manual";
1629
1629
  return () => {
@@ -1642,7 +1642,7 @@ function useScrollRestoration({
1642
1642
  JSON.stringify(savedScrollPositions)
1643
1643
  );
1644
1644
  } catch (error) {
1645
- _chunkADN7TWEKjs.warning.call(void 0,
1645
+ _chunk6Z3LVDDHjs.warning.call(void 0,
1646
1646
  false,
1647
1647
  `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${error}).`
1648
1648
  );
@@ -1689,7 +1689,7 @@ function useScrollRestoration({
1689
1689
  }
1690
1690
  }
1691
1691
  } catch (e2) {
1692
- _chunkADN7TWEKjs.warning.call(void 0,
1692
+ _chunk6Z3LVDDHjs.warning.call(void 0,
1693
1693
  false,
1694
1694
  `"${location.hash.slice(
1695
1695
  1
@@ -1727,7 +1727,7 @@ function usePrompt({
1727
1727
  when,
1728
1728
  message
1729
1729
  }) {
1730
- let blocker = _chunkADN7TWEKjs.useBlocker.call(void 0, when);
1730
+ let blocker = _chunk6Z3LVDDHjs.useBlocker.call(void 0, when);
1731
1731
  React2.useEffect(() => {
1732
1732
  if (blocker.state === "blocked") {
1733
1733
  let proceed = window.confirm(message);
@@ -1745,21 +1745,21 @@ function usePrompt({
1745
1745
  }, [blocker, when]);
1746
1746
  }
1747
1747
  function useViewTransitionState(to, { relative } = {}) {
1748
- let vtContext = React2.useContext(_chunkADN7TWEKjs.ViewTransitionContext);
1749
- _chunkADN7TWEKjs.invariant.call(void 0,
1748
+ let vtContext = React2.useContext(_chunk6Z3LVDDHjs.ViewTransitionContext);
1749
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
1750
1750
  vtContext != null,
1751
1751
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1752
1752
  );
1753
1753
  let { basename } = useDataRouterContext(
1754
1754
  "useViewTransitionState" /* useViewTransitionState */
1755
1755
  );
1756
- let path = _chunkADN7TWEKjs.useResolvedPath.call(void 0, to, { relative });
1756
+ let path = _chunk6Z3LVDDHjs.useResolvedPath.call(void 0, to, { relative });
1757
1757
  if (!vtContext.isTransitioning) {
1758
1758
  return false;
1759
1759
  }
1760
- let currentPath = _chunkADN7TWEKjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1761
- let nextPath = _chunkADN7TWEKjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1762
- return _chunkADN7TWEKjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunkADN7TWEKjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1760
+ let currentPath = _chunk6Z3LVDDHjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1761
+ let nextPath = _chunk6Z3LVDDHjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1762
+ return _chunk6Z3LVDDHjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunk6Z3LVDDHjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1763
1763
  }
1764
1764
 
1765
1765
  // lib/dom/server.tsx
@@ -1770,7 +1770,7 @@ function StaticRouter({
1770
1770
  location: locationProp = "/"
1771
1771
  }) {
1772
1772
  if (typeof locationProp === "string") {
1773
- locationProp = _chunkADN7TWEKjs.parsePath.call(void 0, locationProp);
1773
+ locationProp = _chunk6Z3LVDDHjs.parsePath.call(void 0, locationProp);
1774
1774
  }
1775
1775
  let action = "POP" /* Pop */;
1776
1776
  let location = {
@@ -1799,7 +1799,7 @@ function StaticRouterProvider({
1799
1799
  hydrate = true,
1800
1800
  nonce
1801
1801
  }) {
1802
- _chunkADN7TWEKjs.invariant.call(void 0,
1802
+ _chunk6Z3LVDDHjs.invariant.call(void 0,
1803
1803
  router && context,
1804
1804
  "You must provide `router` and `context` to <StaticRouterProvider>"
1805
1805
  );
@@ -1822,7 +1822,7 @@ function StaticRouterProvider({
1822
1822
  hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
1823
1823
  }
1824
1824
  let { state } = dataRouterContext.router;
1825
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunkADN7TWEKjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunkADN7TWEKjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunkADN7TWEKjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunkADN7TWEKjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1825
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunk6Z3LVDDHjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunk6Z3LVDDHjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunk6Z3LVDDHjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunk6Z3LVDDHjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1826
1826
  Router,
1827
1827
  {
1828
1828
  basename: dataRouterContext.basename,
@@ -1853,14 +1853,14 @@ function DataRoutes2({
1853
1853
  future,
1854
1854
  state
1855
1855
  }) {
1856
- return _chunkADN7TWEKjs.useRoutesImpl.call(void 0, routes, void 0, state, void 0, future);
1856
+ return _chunk6Z3LVDDHjs.useRoutesImpl.call(void 0, routes, void 0, state, void 0, future);
1857
1857
  }
1858
1858
  function serializeErrors(errors) {
1859
1859
  if (!errors) return null;
1860
1860
  let entries = Object.entries(errors);
1861
1861
  let serialized = {};
1862
1862
  for (let [key, val] of entries) {
1863
- if (_chunkADN7TWEKjs.isRouteErrorResponse.call(void 0, val)) {
1863
+ if (_chunk6Z3LVDDHjs.isRouteErrorResponse.call(void 0, val)) {
1864
1864
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
1865
1865
  } else if (val instanceof Error) {
1866
1866
  serialized[key] = {
@@ -1910,14 +1910,14 @@ function getStatelessNavigator() {
1910
1910
  };
1911
1911
  }
1912
1912
  function createStaticHandler2(routes, opts) {
1913
- return _chunkADN7TWEKjs.createStaticHandler.call(void 0, routes, {
1913
+ return _chunk6Z3LVDDHjs.createStaticHandler.call(void 0, routes, {
1914
1914
  ...opts,
1915
1915
  mapRouteProperties
1916
1916
  });
1917
1917
  }
1918
1918
  function createStaticRouter(routes, context, opts = {}) {
1919
1919
  let manifest = {};
1920
- let dataRoutes = _chunkADN7TWEKjs.convertRoutesToDataRoutes.call(void 0,
1920
+ let dataRoutes = _chunk6Z3LVDDHjs.convertRoutesToDataRoutes.call(void 0,
1921
1921
  routes,
1922
1922
  mapRouteProperties,
1923
1923
  void 0,
@@ -1950,7 +1950,7 @@ function createStaticRouter(routes, context, opts = {}) {
1950
1950
  actionData: context.actionData,
1951
1951
  errors: context.errors,
1952
1952
  initialized: true,
1953
- navigation: _chunkADN7TWEKjs.IDLE_NAVIGATION,
1953
+ navigation: _chunk6Z3LVDDHjs.IDLE_NAVIGATION,
1954
1954
  restoreScrollPosition: null,
1955
1955
  preventScrollReset: false,
1956
1956
  revalidation: "idle",
@@ -1985,7 +1985,7 @@ function createStaticRouter(routes, context, opts = {}) {
1985
1985
  createHref,
1986
1986
  encodeLocation,
1987
1987
  getFetcher() {
1988
- return _chunkADN7TWEKjs.IDLE_FETCHER;
1988
+ return _chunk6Z3LVDDHjs.IDLE_FETCHER;
1989
1989
  },
1990
1990
  deleteFetcher() {
1991
1991
  throw msg("deleteFetcher");
@@ -1997,7 +1997,7 @@ function createStaticRouter(routes, context, opts = {}) {
1997
1997
  throw msg("dispose");
1998
1998
  },
1999
1999
  getBlocker() {
2000
- return _chunkADN7TWEKjs.IDLE_BLOCKER;
2000
+ return _chunk6Z3LVDDHjs.IDLE_BLOCKER;
2001
2001
  },
2002
2002
  deleteBlocker() {
2003
2003
  throw msg("deleteBlocker");
@@ -2015,10 +2015,10 @@ function createStaticRouter(routes, context, opts = {}) {
2015
2015
  };
2016
2016
  }
2017
2017
  function createHref(to) {
2018
- return typeof to === "string" ? to : _chunkADN7TWEKjs.createPath.call(void 0, to);
2018
+ return typeof to === "string" ? to : _chunk6Z3LVDDHjs.createPath.call(void 0, to);
2019
2019
  }
2020
2020
  function encodeLocation(to) {
2021
- let href = typeof to === "string" ? to : _chunkADN7TWEKjs.createPath.call(void 0, to);
2021
+ let href = typeof to === "string" ? to : _chunk6Z3LVDDHjs.createPath.call(void 0, to);
2022
2022
  href = href.replace(/ $/, "%20");
2023
2023
  let encoded = ABSOLUTE_URL_REGEX2.test(href) ? new URL(href) : new URL(href, "http://localhost");
2024
2024
  return {