react-router 7.8.2 → 7.9.0-pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/development/{chunk-5UALIXAM.mjs → chunk-AVXIT45F.mjs} +94 -70
  3. package/dist/development/{chunk-PVWAREVJ.mjs → chunk-QZH3B547.mjs} +47 -50
  4. package/dist/development/{chunk-ZO66TDGB.js → chunk-RGB6BZUL.js} +41 -44
  5. package/dist/development/{chunk-CSDGKXLR.js → chunk-XYB2GISA.js} +135 -135
  6. package/dist/{production/context-jKip1TFB.d.mts → development/context-BH6Jwdoy.d.mts} +39 -32
  7. package/dist/development/dom-export.d.mts +3 -3
  8. package/dist/development/dom-export.d.ts +2 -2
  9. package/dist/development/dom-export.js +14 -14
  10. package/dist/development/dom-export.mjs +14 -14
  11. package/dist/development/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
  12. package/dist/{production/index-react-server-client-BKpa2trA.d.ts → development/index-react-server-client-CMC2eQAY.d.ts} +12 -12
  13. package/dist/development/index-react-server-client.d.mts +3 -3
  14. package/dist/development/index-react-server-client.d.ts +2 -2
  15. package/dist/development/index-react-server-client.js +4 -4
  16. package/dist/development/index-react-server-client.mjs +4 -4
  17. package/dist/development/index-react-server.d.mts +229 -37
  18. package/dist/development/index-react-server.d.ts +229 -37
  19. package/dist/development/index-react-server.js +89 -39
  20. package/dist/development/index-react-server.mjs +88 -36
  21. package/dist/development/index.d.mts +31 -24
  22. package/dist/development/index.d.ts +29 -22
  23. package/dist/development/index.js +184 -158
  24. package/dist/development/index.mjs +9 -7
  25. package/dist/development/lib/types/internal.d.mts +6 -6
  26. package/dist/development/lib/types/internal.d.ts +5 -5
  27. package/dist/development/lib/types/internal.js +1 -1
  28. package/dist/development/lib/types/internal.mjs +1 -1
  29. package/dist/development/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
  30. package/dist/development/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
  31. package/dist/production/{chunk-Z56HUDN5.js → chunk-A6EU7LHU.js} +41 -44
  32. package/dist/production/{chunk-REDRD2MB.mjs → chunk-BQLQLXP4.mjs} +47 -50
  33. package/dist/production/{chunk-JNT5PWCQ.js → chunk-IR3XRH6J.js} +135 -135
  34. package/dist/production/{chunk-KWHRV2I7.mjs → chunk-WMHWIEJV.mjs} +94 -70
  35. package/dist/{development/context-jKip1TFB.d.mts → production/context-BH6Jwdoy.d.mts} +39 -32
  36. package/dist/production/dom-export.d.mts +3 -3
  37. package/dist/production/dom-export.d.ts +2 -2
  38. package/dist/production/dom-export.js +14 -14
  39. package/dist/production/dom-export.mjs +14 -14
  40. package/dist/production/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
  41. package/dist/{development/index-react-server-client-BKpa2trA.d.ts → production/index-react-server-client-CMC2eQAY.d.ts} +12 -12
  42. package/dist/production/index-react-server-client.d.mts +3 -3
  43. package/dist/production/index-react-server-client.d.ts +2 -2
  44. package/dist/production/index-react-server-client.js +4 -4
  45. package/dist/production/index-react-server-client.mjs +4 -4
  46. package/dist/production/index-react-server.d.mts +229 -37
  47. package/dist/production/index-react-server.d.ts +229 -37
  48. package/dist/production/index-react-server.js +89 -39
  49. package/dist/production/index-react-server.mjs +88 -36
  50. package/dist/production/index.d.mts +31 -24
  51. package/dist/production/index.d.ts +29 -22
  52. package/dist/production/index.js +184 -158
  53. package/dist/production/index.mjs +9 -7
  54. package/dist/production/lib/types/internal.d.mts +6 -6
  55. package/dist/production/lib/types/internal.d.ts +5 -5
  56. package/dist/production/lib/types/internal.js +1 -1
  57. package/dist/production/lib/types/internal.mjs +1 -1
  58. package/dist/production/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
  59. package/dist/production/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
  60. 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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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.8.2
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -54,7 +54,7 @@
54
54
 
55
55
 
56
56
 
57
- var _chunkJNT5PWCQjs = require('./chunk-JNT5PWCQ.js');
57
+ var _chunkIR3XRH6Jjs = require('./chunk-IR3XRH6J.js');
58
58
 
59
59
 
60
60
 
@@ -143,7 +143,9 @@ var _chunkJNT5PWCQjs = require('./chunk-JNT5PWCQ.js');
143
143
 
144
144
 
145
145
 
146
- var _chunkZ56HUDN5js = require('./chunk-Z56HUDN5.js');
146
+
147
+
148
+ var _chunkA6EU7LHUjs = require('./chunk-A6EU7LHU.js');
147
149
 
148
150
  // lib/dom/ssr/server.tsx
149
151
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
@@ -156,7 +158,7 @@ function ServerRouter({
156
158
  url = new URL(url);
157
159
  }
158
160
  let { manifest, routeModules, criticalCss, serverHandoffString } = context;
159
- let routes = _chunkZ56HUDN5js.createServerRoutes.call(void 0,
161
+ let routes = _chunkA6EU7LHUjs.createServerRoutes.call(void 0,
160
162
  manifest.routes,
161
163
  routeModules,
162
164
  context.future,
@@ -169,7 +171,7 @@ function ServerRouter({
169
171
  let routeId = match.route.id;
170
172
  let route = routeModules[routeId];
171
173
  let manifestRoute = context.manifest.routes[routeId];
172
- if (route && manifestRoute && _chunkZ56HUDN5js.shouldHydrateRouteLoader.call(void 0,
174
+ if (route && manifestRoute && _chunkA6EU7LHUjs.shouldHydrateRouteLoader.call(void 0,
173
175
  routeId,
174
176
  route.clientLoader,
175
177
  manifestRoute.hasLoader,
@@ -178,9 +180,9 @@ function ServerRouter({
178
180
  delete context.staticHandlerContext.loaderData[routeId];
179
181
  }
180
182
  }
181
- let router = _chunkJNT5PWCQjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
183
+ let router = _chunkIR3XRH6Jjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
182
184
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
183
- _chunkZ56HUDN5js.FrameworkContext.Provider,
185
+ _chunkA6EU7LHUjs.FrameworkContext.Provider,
184
186
  {
185
187
  value: {
186
188
  manifest,
@@ -195,8 +197,8 @@ function ServerRouter({
195
197
  renderMeta: context.renderMeta
196
198
  }
197
199
  },
198
- /* @__PURE__ */ React.createElement(_chunkZ56HUDN5js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
199
- _chunkJNT5PWCQjs.StaticRouterProvider,
200
+ /* @__PURE__ */ React.createElement(_chunkA6EU7LHUjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
201
+ _chunkIR3XRH6Jjs.StaticRouterProvider,
200
202
  {
201
203
  router,
202
204
  context: context.staticHandlerContext,
@@ -204,7 +206,7 @@ function ServerRouter({
204
206
  }
205
207
  ))
206
208
  ), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
207
- _chunkZ56HUDN5js.StreamTransfer,
209
+ _chunkA6EU7LHUjs.StreamTransfer,
208
210
  {
209
211
  context,
210
212
  identifier: 0,
@@ -230,7 +232,7 @@ function createRoutesStub(routes, _context) {
230
232
  frameworkContextRef.current = {
231
233
  future: {
232
234
  unstable_subResourceIntegrity: _optionalChain([future, 'optionalAccess', _2 => _2.unstable_subResourceIntegrity]) === true,
233
- unstable_middleware: _optionalChain([future, 'optionalAccess', _3 => _3.unstable_middleware]) === true
235
+ v8_middleware: _optionalChain([future, 'optionalAccess', _3 => _3.v8_middleware]) === true
234
236
  },
235
237
  manifest: {
236
238
  routes: {},
@@ -246,18 +248,18 @@ function createRoutesStub(routes, _context) {
246
248
  let patched = processRoutes(
247
249
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
248
250
  // types compared to `AgnosticRouteObject`
249
- _chunkZ56HUDN5js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
250
- _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0, _chunkZ56HUDN5js.unstable_RouterContextProvider)() : {},
251
+ _chunkA6EU7LHUjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
252
+ _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkA6EU7LHUjs.RouterContextProvider)() : {},
251
253
  frameworkContextRef.current.manifest,
252
254
  frameworkContextRef.current.routeModules
253
255
  );
254
- routerRef.current = _chunkJNT5PWCQjs.createMemoryRouter.call(void 0, patched, {
256
+ routerRef.current = _chunkIR3XRH6Jjs.createMemoryRouter.call(void 0, patched, {
255
257
  initialEntries,
256
258
  initialIndex,
257
259
  hydrationData
258
260
  });
259
261
  }
260
- return /* @__PURE__ */ React2.createElement(_chunkZ56HUDN5js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkJNT5PWCQjs.RouterProvider, { router: routerRef.current }));
262
+ return /* @__PURE__ */ React2.createElement(_chunkA6EU7LHUjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkIR3XRH6Jjs.RouterProvider, { router: routerRef.current }));
261
263
  };
262
264
  }
263
265
  function processRoutes(routes, context, manifest, routeModules, parentId) {
@@ -271,9 +273,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
271
273
  id: route.id,
272
274
  path: route.path,
273
275
  index: route.index,
274
- Component: route.Component ? _chunkJNT5PWCQjs.withComponentProps.call(void 0, route.Component) : void 0,
275
- HydrateFallback: route.HydrateFallback ? _chunkJNT5PWCQjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
276
- ErrorBoundary: route.ErrorBoundary ? _chunkJNT5PWCQjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
276
+ Component: route.Component ? _chunkIR3XRH6Jjs.withComponentProps.call(void 0, route.Component) : void 0,
277
+ HydrateFallback: route.HydrateFallback ? _chunkIR3XRH6Jjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
278
+ ErrorBoundary: route.ErrorBoundary ? _chunkIR3XRH6Jjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
277
279
  action: route.action ? (args) => route.action({ ...args, context }) : void 0,
278
280
  loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
279
281
  handle: route.handle,
@@ -302,7 +304,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
302
304
  };
303
305
  manifest.routes[newRoute.id] = entryRoute;
304
306
  routeModules[route.id] = {
305
- default: newRoute.Component || _chunkJNT5PWCQjs.Outlet,
307
+ default: newRoute.Component || _chunkIR3XRH6Jjs.Outlet,
306
308
  ErrorBoundary: newRoute.ErrorBoundary || void 0,
307
309
  handle: route.handle,
308
310
  links: route.links,
@@ -497,7 +499,7 @@ function myUnescape(value) {
497
499
  return result;
498
500
  }
499
501
  function warnOnceAboutExpiresCookie(name, expires) {
500
- _chunkZ56HUDN5js.warnOnce.call(void 0,
502
+ _chunkA6EU7LHUjs.warnOnce.call(void 0,
501
503
  !expires,
502
504
  `The "${name}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
503
505
  );
@@ -551,7 +553,7 @@ function serializeErrors(errors, serverMode) {
551
553
  let entries = Object.entries(errors);
552
554
  let serialized = {};
553
555
  for (let [key, val] of entries) {
554
- if (_chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, val)) {
556
+ if (_chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, val)) {
555
557
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
556
558
  } else if (val instanceof Error) {
557
559
  let sanitized = sanitizeError(val, serverMode);
@@ -576,7 +578,7 @@ function serializeErrors(errors, serverMode) {
576
578
 
577
579
  // lib/server-runtime/routeMatching.ts
578
580
  function matchServerRoutes(routes, pathname, basename) {
579
- let matches = _chunkZ56HUDN5js.matchRoutes.call(void 0,
581
+ let matches = _chunkA6EU7LHUjs.matchRoutes.call(void 0,
580
582
  routes,
581
583
  pathname,
582
584
  basename
@@ -596,7 +598,7 @@ async function callRouteHandler(handler, args) {
596
598
  params: args.params,
597
599
  context: args.context
598
600
  });
599
- if (_chunkZ56HUDN5js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkZ56HUDN5js.isRedirectStatusCode.call(void 0, result.init.status)) {
601
+ if (_chunkA6EU7LHUjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkA6EU7LHUjs.isRedirectStatusCode.call(void 0, result.init.status)) {
600
602
  throw new Response(null, result.init);
601
603
  }
602
604
  return result;
@@ -697,7 +699,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
697
699
  hasErrorBoundary: route.id === "root" || route.module.ErrorBoundary != null,
698
700
  id: route.id,
699
701
  path: route.path,
700
- unstable_middleware: route.module.unstable_middleware,
702
+ middleware: route.module.middleware,
701
703
  // Need to use RR's version in the param typed here to permit the optional
702
704
  // context even though we know it'll always be provided in remix
703
705
  loader: route.module.loader ? async (args) => {
@@ -715,17 +717,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
715
717
  controller.close();
716
718
  }
717
719
  });
718
- let decoded = await _chunkZ56HUDN5js.decodeViaTurboStream.call(void 0, stream, global);
720
+ let decoded = await _chunkA6EU7LHUjs.decodeViaTurboStream.call(void 0, stream, global);
719
721
  let data2 = decoded.value;
720
- if (data2 && _chunkZ56HUDN5js.SingleFetchRedirectSymbol in data2) {
721
- let result = data2[_chunkZ56HUDN5js.SingleFetchRedirectSymbol];
722
+ if (data2 && _chunkA6EU7LHUjs.SingleFetchRedirectSymbol in data2) {
723
+ let result = data2[_chunkA6EU7LHUjs.SingleFetchRedirectSymbol];
722
724
  let init = { status: result.status };
723
725
  if (result.reload) {
724
- throw _chunkZ56HUDN5js.redirectDocument.call(void 0, result.redirect, init);
726
+ throw _chunkA6EU7LHUjs.redirectDocument.call(void 0, result.redirect, init);
725
727
  } else if (result.replace) {
726
- throw _chunkZ56HUDN5js.replace.call(void 0, result.redirect, init);
728
+ throw _chunkA6EU7LHUjs.replace.call(void 0, result.redirect, init);
727
729
  } else {
728
- throw _chunkZ56HUDN5js.redirect.call(void 0, result.redirect, init);
730
+ throw _chunkA6EU7LHUjs.redirect.call(void 0, result.redirect, init);
729
731
  }
730
732
  } else {
731
733
  invariant2(
@@ -762,22 +764,9 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
762
764
  });
763
765
  }
764
766
 
765
- // lib/server-runtime/markup.ts
766
- var ESCAPE_LOOKUP = {
767
- "&": "\\u0026",
768
- ">": "\\u003e",
769
- "<": "\\u003c",
770
- "\u2028": "\\u2028",
771
- "\u2029": "\\u2029"
772
- };
773
- var ESCAPE_REGEX = /[&><\u2028\u2029]/g;
774
- function escapeHtml(html) {
775
- return html.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
776
- }
777
-
778
767
  // lib/server-runtime/serverHandoff.ts
779
768
  function createServerHandoffString(serverHandoff) {
780
- return escapeHtml(JSON.stringify(serverHandoff));
769
+ return _chunkA6EU7LHUjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
781
770
  }
782
771
 
783
772
  // lib/server-runtime/headers.ts
@@ -854,7 +843,7 @@ function prependCookies(parentHeaders, childHeaders) {
854
843
 
855
844
  // lib/server-runtime/single-fetch.ts
856
845
  var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
857
- ..._chunkZ56HUDN5js.NO_BODY_STATUS_CODES,
846
+ ..._chunkA6EU7LHUjs.NO_BODY_STATUS_CODES,
858
847
  304
859
848
  ]);
860
849
  async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
@@ -870,7 +859,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
870
859
  requestContext: loadContext,
871
860
  skipLoaderErrorBubbling: true,
872
861
  skipRevalidation: true,
873
- unstable_generateMiddlewareResponse: build.future.unstable_middleware ? async (query) => {
862
+ generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
874
863
  try {
875
864
  let innerResult = await query(handlerRequest);
876
865
  return handleQueryResult(innerResult);
@@ -884,7 +873,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
884
873
  return handleQueryError(error);
885
874
  }
886
875
  function handleQueryResult(result) {
887
- return _chunkZ56HUDN5js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
876
+ return _chunkA6EU7LHUjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
888
877
  }
889
878
  function handleQueryError(error) {
890
879
  handleError(error);
@@ -896,12 +885,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
896
885
  }
897
886
  function staticContextToResponse(context) {
898
887
  let headers = getDocumentHeaders(context, build);
899
- if (_chunkZ56HUDN5js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
888
+ if (_chunkA6EU7LHUjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
900
889
  return new Response(null, { status: context.statusCode, headers });
901
890
  }
902
891
  if (context.errors) {
903
892
  Object.values(context.errors).forEach((err) => {
904
- if (!_chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, err) || err.error) {
893
+ if (!_chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, err) || err.error) {
905
894
  handleError(err);
906
895
  }
907
896
  });
@@ -934,7 +923,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
934
923
  requestContext: loadContext,
935
924
  filterMatchesToLoad: (m) => !loadRouteIds || loadRouteIds.has(m.route.id),
936
925
  skipLoaderErrorBubbling: true,
937
- unstable_generateMiddlewareResponse: build.future.unstable_middleware ? async (query) => {
926
+ generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
938
927
  try {
939
928
  let innerResult = await query(handlerRequest);
940
929
  return handleQueryResult(innerResult);
@@ -948,7 +937,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
948
937
  return handleQueryError(error);
949
938
  }
950
939
  function handleQueryResult(result) {
951
- return _chunkZ56HUDN5js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
940
+ return _chunkA6EU7LHUjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
952
941
  }
953
942
  function handleQueryError(error) {
954
943
  handleError(error);
@@ -960,12 +949,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
960
949
  }
961
950
  function staticContextToResponse(context) {
962
951
  let headers = getDocumentHeaders(context, build);
963
- if (_chunkZ56HUDN5js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
952
+ if (_chunkA6EU7LHUjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
964
953
  return new Response(null, { status: context.statusCode, headers });
965
954
  }
966
955
  if (context.errors) {
967
956
  Object.values(context.errors).forEach((err) => {
968
- if (!_chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, err) || err.error) {
957
+ if (!_chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, err) || err.error) {
969
958
  handleError(err);
970
959
  }
971
960
  });
@@ -1029,15 +1018,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
1029
1018
  headers.delete("Location");
1030
1019
  headers.set("Content-Type", "text/x-script");
1031
1020
  return generateSingleFetchResponse(request, build, serverMode, {
1032
- result: request.method === "GET" ? { [_chunkZ56HUDN5js.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1021
+ result: request.method === "GET" ? { [_chunkA6EU7LHUjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1033
1022
  headers,
1034
- status: _chunkZ56HUDN5js.SINGLE_FETCH_REDIRECT_STATUS
1023
+ status: _chunkA6EU7LHUjs.SINGLE_FETCH_REDIRECT_STATUS
1035
1024
  });
1036
1025
  }
1037
1026
  function getSingleFetchRedirect(status, headers, basename) {
1038
1027
  let redirect2 = headers.get("Location");
1039
1028
  if (basename) {
1040
- redirect2 = _chunkZ56HUDN5js.stripBasename.call(void 0, redirect2, basename) || redirect2;
1029
+ redirect2 = _chunkA6EU7LHUjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1041
1030
  }
1042
1031
  return {
1043
1032
  redirect: redirect2,
@@ -1063,7 +1052,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1063
1052
  typeof streamTimeout === "number" ? streamTimeout : 4950
1064
1053
  );
1065
1054
  requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
1066
- return _chunkZ56HUDN5js.encode.call(void 0, data2, {
1055
+ return _chunkA6EU7LHUjs.encode.call(void 0, data2, {
1067
1056
  signal: controller.signal,
1068
1057
  plugins: [
1069
1058
  (value) => {
@@ -1071,12 +1060,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1071
1060
  let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
1072
1061
  return ["SanitizedError", name, message, stack];
1073
1062
  }
1074
- if (value instanceof _chunkZ56HUDN5js.ErrorResponseImpl) {
1063
+ if (value instanceof _chunkA6EU7LHUjs.ErrorResponseImpl) {
1075
1064
  let { data: data3, status, statusText } = value;
1076
1065
  return ["ErrorResponse", data3, status, statusText];
1077
1066
  }
1078
- if (value && typeof value === "object" && _chunkZ56HUDN5js.SingleFetchRedirectSymbol in value) {
1079
- return ["SingleFetchRedirect", value[_chunkZ56HUDN5js.SingleFetchRedirectSymbol]];
1067
+ if (value && typeof value === "object" && _chunkA6EU7LHUjs.SingleFetchRedirectSymbol in value) {
1068
+ return ["SingleFetchRedirect", value[_chunkA6EU7LHUjs.SingleFetchRedirectSymbol]];
1080
1069
  }
1081
1070
  }
1082
1071
  ],
@@ -1099,14 +1088,14 @@ function derive(build, mode) {
1099
1088
  let routes = createRoutes(build.routes);
1100
1089
  let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
1101
1090
  let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
1102
- let staticHandler = _chunkZ56HUDN5js.createStaticHandler.call(void 0, dataRoutes, {
1091
+ let staticHandler = _chunkA6EU7LHUjs.createStaticHandler.call(void 0, dataRoutes, {
1103
1092
  basename: build.basename
1104
1093
  });
1105
1094
  let errorHandler = build.entry.module.handleError || ((error, { request }) => {
1106
1095
  if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
1107
1096
  console.error(
1108
1097
  // @ts-expect-error This is "private" from users but intended for internal use
1109
- _chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1098
+ _chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1110
1099
  );
1111
1100
  }
1112
1101
  });
@@ -1151,37 +1140,37 @@ var createRequestHandler = (build, mode) => {
1151
1140
  request
1152
1141
  });
1153
1142
  };
1154
- if (_build.future.unstable_middleware) {
1155
- if (initialContext && !(initialContext instanceof _chunkZ56HUDN5js.unstable_RouterContextProvider)) {
1143
+ if (_build.future.v8_middleware) {
1144
+ if (initialContext && !(initialContext instanceof _chunkA6EU7LHUjs.RouterContextProvider)) {
1156
1145
  let error = new Error(
1157
- "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `unstable_RouterContextProvider` from your `getLoadContext` function."
1146
+ "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
1158
1147
  );
1159
1148
  handleError(error);
1160
1149
  return returnLastResortErrorResponse(error, serverMode);
1161
1150
  }
1162
- loadContext = initialContext || new (0, _chunkZ56HUDN5js.unstable_RouterContextProvider)();
1151
+ loadContext = initialContext || new (0, _chunkA6EU7LHUjs.RouterContextProvider)();
1163
1152
  } else {
1164
1153
  loadContext = initialContext || {};
1165
1154
  }
1166
1155
  let url = new URL(request.url);
1167
1156
  let normalizedBasename = _build.basename || "/";
1168
1157
  let normalizedPath = url.pathname;
1169
- if (_chunkZ56HUDN5js.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1158
+ if (_chunkA6EU7LHUjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1170
1159
  normalizedPath = normalizedBasename;
1171
1160
  } else if (normalizedPath.endsWith(".data")) {
1172
1161
  normalizedPath = normalizedPath.replace(/\.data$/, "");
1173
1162
  }
1174
- if (_chunkZ56HUDN5js.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1163
+ if (_chunkA6EU7LHUjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1175
1164
  normalizedPath = normalizedPath.slice(0, -1);
1176
1165
  }
1177
1166
  let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
1178
1167
  if (!_build.ssr) {
1179
1168
  let decodedPath = decodeURI(normalizedPath);
1180
1169
  if (normalizedBasename !== "/") {
1181
- let strippedPath = _chunkZ56HUDN5js.stripBasename.call(void 0, decodedPath, normalizedBasename);
1170
+ let strippedPath = _chunkA6EU7LHUjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
1182
1171
  if (strippedPath == null) {
1183
1172
  errorHandler(
1184
- new (0, _chunkZ56HUDN5js.ErrorResponseImpl)(
1173
+ new (0, _chunkA6EU7LHUjs.ErrorResponseImpl)(
1185
1174
  404,
1186
1175
  "Not Found",
1187
1176
  `Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
@@ -1204,7 +1193,7 @@ var createRequestHandler = (build, mode) => {
1204
1193
  } else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
1205
1194
  if (url.pathname.endsWith(".data")) {
1206
1195
  errorHandler(
1207
- new (0, _chunkZ56HUDN5js.ErrorResponseImpl)(
1196
+ new (0, _chunkA6EU7LHUjs.ErrorResponseImpl)(
1208
1197
  404,
1209
1198
  "Not Found",
1210
1199
  `Refusing to SSR the path \`${decodedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
@@ -1224,7 +1213,7 @@ var createRequestHandler = (build, mode) => {
1224
1213
  }
1225
1214
  }
1226
1215
  }
1227
- let manifestUrl = _chunkZ56HUDN5js.getManifestPath.call(void 0,
1216
+ let manifestUrl = _chunkA6EU7LHUjs.getManifestPath.call(void 0,
1228
1217
  _build.routeDiscovery.manifestPath,
1229
1218
  normalizedBasename
1230
1219
  );
@@ -1259,7 +1248,7 @@ var createRequestHandler = (build, mode) => {
1259
1248
  loadContext,
1260
1249
  handleError
1261
1250
  );
1262
- if (_chunkZ56HUDN5js.isRedirectResponse.call(void 0, response)) {
1251
+ if (_chunkA6EU7LHUjs.isRedirectResponse.call(void 0, response)) {
1263
1252
  response = generateSingleFetchRedirectResponse(
1264
1253
  response,
1265
1254
  request,
@@ -1273,7 +1262,7 @@ var createRequestHandler = (build, mode) => {
1273
1262
  params: singleFetchMatches ? singleFetchMatches[0].params : {},
1274
1263
  request
1275
1264
  });
1276
- if (_chunkZ56HUDN5js.isRedirectResponse.call(void 0, response)) {
1265
+ if (_chunkA6EU7LHUjs.isRedirectResponse.call(void 0, response)) {
1277
1266
  response = generateSingleFetchRedirectResponse(
1278
1267
  response,
1279
1268
  request,
@@ -1387,10 +1376,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1387
1376
  try {
1388
1377
  let result = await staticHandler.query(request, {
1389
1378
  requestContext: loadContext,
1390
- unstable_generateMiddlewareResponse: build.future.unstable_middleware ? async (query) => {
1379
+ generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
1391
1380
  try {
1392
1381
  let innerResult = await query(request);
1393
- if (!_chunkZ56HUDN5js.isResponse.call(void 0, innerResult)) {
1382
+ if (!_chunkA6EU7LHUjs.isResponse.call(void 0, innerResult)) {
1394
1383
  innerResult = await renderHtml(innerResult, isSpaMode);
1395
1384
  }
1396
1385
  return innerResult;
@@ -1400,7 +1389,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1400
1389
  }
1401
1390
  } : void 0
1402
1391
  });
1403
- if (!_chunkZ56HUDN5js.isResponse.call(void 0, result)) {
1392
+ if (!_chunkA6EU7LHUjs.isResponse.call(void 0, result)) {
1404
1393
  result = await renderHtml(result, isSpaMode);
1405
1394
  }
1406
1395
  return result;
@@ -1415,7 +1404,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1415
1404
  }
1416
1405
  if (context.errors) {
1417
1406
  Object.values(context.errors).forEach((err) => {
1418
- if (!_chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, err) || err.error) {
1407
+ if (!_chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1419
1408
  handleError(err);
1420
1409
  }
1421
1410
  });
@@ -1467,10 +1456,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1467
1456
  } catch (error) {
1468
1457
  handleError(error);
1469
1458
  let errorForSecondRender = error;
1470
- if (_chunkZ56HUDN5js.isResponse.call(void 0, error)) {
1459
+ if (_chunkA6EU7LHUjs.isResponse.call(void 0, error)) {
1471
1460
  try {
1472
1461
  let data2 = await unwrapResponse(error);
1473
- errorForSecondRender = new (0, _chunkZ56HUDN5js.ErrorResponseImpl)(
1462
+ errorForSecondRender = new (0, _chunkA6EU7LHUjs.ErrorResponseImpl)(
1474
1463
  error.status,
1475
1464
  error.statusText,
1476
1465
  data2
@@ -1478,7 +1467,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1478
1467
  } catch (e) {
1479
1468
  }
1480
1469
  }
1481
- context = _chunkZ56HUDN5js.getStaticContextFromError.call(void 0,
1470
+ context = _chunkA6EU7LHUjs.getStaticContextFromError.call(void 0,
1482
1471
  staticHandler.dataRoutes,
1483
1472
  context,
1484
1473
  errorForSecondRender
@@ -1523,7 +1512,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1523
1512
  let result = await staticHandler.queryRoute(request, {
1524
1513
  routeId,
1525
1514
  requestContext: loadContext,
1526
- unstable_generateMiddlewareResponse: build.future.unstable_middleware ? async (queryRoute) => {
1515
+ generateMiddlewareResponse: build.future.v8_middleware ? async (queryRoute) => {
1527
1516
  try {
1528
1517
  let innerResult = await queryRoute(request);
1529
1518
  return handleQueryRouteResult(innerResult);
@@ -1537,7 +1526,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1537
1526
  return handleQueryRouteError(error);
1538
1527
  }
1539
1528
  function handleQueryRouteResult(result) {
1540
- if (_chunkZ56HUDN5js.isResponse.call(void 0, result)) {
1529
+ if (_chunkA6EU7LHUjs.isResponse.call(void 0, result)) {
1541
1530
  return result;
1542
1531
  }
1543
1532
  if (typeof result === "string") {
@@ -1546,11 +1535,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1546
1535
  return Response.json(result);
1547
1536
  }
1548
1537
  function handleQueryRouteError(error) {
1549
- if (_chunkZ56HUDN5js.isResponse.call(void 0, error)) {
1538
+ if (_chunkA6EU7LHUjs.isResponse.call(void 0, error)) {
1550
1539
  error.headers.set("X-Remix-Catch", "yes");
1551
1540
  return error;
1552
1541
  }
1553
- if (_chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, error)) {
1542
+ if (_chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, error)) {
1554
1543
  handleError(error);
1555
1544
  return errorResponseToJson(error, serverMode);
1556
1545
  }
@@ -1676,7 +1665,7 @@ function createSessionStorage({
1676
1665
  };
1677
1666
  }
1678
1667
  function warnOnceAboutSigningSessionCookie(cookie) {
1679
- _chunkZ56HUDN5js.warnOnce.call(void 0,
1668
+ _chunkA6EU7LHUjs.warnOnce.call(void 0,
1680
1669
  cookie.isSigned,
1681
1670
  `The "${cookie.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
1682
1671
  );
@@ -1743,22 +1732,27 @@ function createMemorySessionStorage({ cookie } = {}) {
1743
1732
  // lib/href.ts
1744
1733
  function href(path, ...args) {
1745
1734
  let params = args[0];
1746
- return path.split("/").map((segment) => {
1747
- if (segment === "*") {
1748
- return params ? params["*"] : void 0;
1749
- }
1750
- const match = segment.match(/^:([\w-]+)(\?)?/);
1751
- if (!match) return segment;
1752
- const param = match[1];
1753
- const value = params ? params[param] : void 0;
1754
- const isRequired = match[2] === void 0;
1755
- if (isRequired && value === void 0) {
1756
- throw Error(
1757
- `Path '${path}' requires param '${param}' but it was not provided`
1758
- );
1735
+ let result = path.replace(/\/*\*?$/, "").replace(
1736
+ /\/:([\w-]+)(\?)?/g,
1737
+ // same regex as in .\router\utils.ts: compilePath().
1738
+ (_, param, questionMark) => {
1739
+ const isRequired = questionMark === void 0;
1740
+ const value = params ? params[param] : void 0;
1741
+ if (isRequired && value === void 0) {
1742
+ throw new Error(
1743
+ `Path '${path}' requires param '${param}' but it was not provided`
1744
+ );
1745
+ }
1746
+ return value === void 0 ? "" : "/" + value;
1747
+ }
1748
+ );
1749
+ if (path.endsWith("*")) {
1750
+ const value = params ? params["*"] : void 0;
1751
+ if (value !== void 0) {
1752
+ result += "/" + value;
1759
1753
  }
1760
- return value;
1761
- }).filter((segment) => segment !== void 0).join("/");
1754
+ }
1755
+ return result || "/";
1762
1756
  }
1763
1757
 
1764
1758
  // lib/rsc/browser.tsx
@@ -1766,17 +1760,24 @@ function href(path, ...args) {
1766
1760
  var _reactdom = require('react-dom'); var ReactDOM = _interopRequireWildcard(_reactdom);
1767
1761
 
1768
1762
  // lib/dom/ssr/hydration.tsx
1769
- function getHydrationData(state, routes, getRouteInfo, location2, basename, isSpaMode) {
1763
+ function getHydrationData({
1764
+ state,
1765
+ routes,
1766
+ getRouteInfo,
1767
+ location: location2,
1768
+ basename,
1769
+ isSpaMode
1770
+ }) {
1770
1771
  let hydrationData = {
1771
1772
  ...state,
1772
1773
  loaderData: { ...state.loaderData }
1773
1774
  };
1774
- let initialMatches = _chunkZ56HUDN5js.matchRoutes.call(void 0, routes, location2, basename);
1775
+ let initialMatches = _chunkA6EU7LHUjs.matchRoutes.call(void 0, routes, location2, basename);
1775
1776
  if (initialMatches) {
1776
1777
  for (let match of initialMatches) {
1777
1778
  let routeId = match.route.id;
1778
1779
  let routeInfo = getRouteInfo(routeId);
1779
- if (_chunkZ56HUDN5js.shouldHydrateRouteLoader.call(void 0,
1780
+ if (_chunkA6EU7LHUjs.shouldHydrateRouteLoader.call(void 0,
1780
1781
  routeId,
1781
1782
  routeInfo.clientLoader,
1782
1783
  routeInfo.hasLoader,
@@ -1854,7 +1855,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1854
1855
  }
1855
1856
  }
1856
1857
  );
1857
- if (_chunkZ56HUDN5js.isRouteErrorResponse.call(void 0, error)) {
1858
+ if (_chunkA6EU7LHUjs.isRouteErrorResponse.call(void 0, error)) {
1858
1859
  return /* @__PURE__ */ React.default.createElement(
1859
1860
  ErrorWrapper,
1860
1861
  {
@@ -1862,7 +1863,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1862
1863
  title: "Unhandled Thrown Response!"
1863
1864
  },
1864
1865
  /* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
1865
- _chunkZ56HUDN5js.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1866
+ _chunkA6EU7LHUjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1866
1867
  );
1867
1868
  }
1868
1869
  let errorInstance;
@@ -1888,7 +1889,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1888
1889
  function RSCDefaultRootErrorBoundary({
1889
1890
  hasRootLayout
1890
1891
  }) {
1891
- let error = _chunkZ56HUDN5js.useRouteError.call(void 0, );
1892
+ let error = _chunkA6EU7LHUjs.useRouteError.call(void 0, );
1892
1893
  if (hasRootLayout === void 0) {
1893
1894
  throw new Error("Missing 'hasRootLayout' prop");
1894
1895
  }
@@ -2018,7 +2019,7 @@ function createCallServer({
2018
2019
  function createRouterFromPayload({
2019
2020
  fetchImplementation,
2020
2021
  createFromReadableStream,
2021
- unstable_getContext,
2022
+ getContext,
2022
2023
  payload
2023
2024
  }) {
2024
2025
  const globalVar = window;
@@ -2032,7 +2033,7 @@ function createRouterFromPayload({
2032
2033
  populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
2033
2034
  let patches = /* @__PURE__ */ new Map();
2034
2035
  _optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
2035
- _chunkZ56HUDN5js.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
2036
+ _chunkA6EU7LHUjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
2036
2037
  if (!patches.has(patch.parentId)) {
2037
2038
  patches.set(patch.parentId, []);
2038
2039
  }
@@ -2054,31 +2055,31 @@ function createRouterFromPayload({
2054
2055
  }
2055
2056
  return [route];
2056
2057
  }, []);
2057
- globalVar.__reactRouterDataRouter = _chunkZ56HUDN5js.createRouter.call(void 0, {
2058
+ globalVar.__reactRouterDataRouter = _chunkA6EU7LHUjs.createRouter.call(void 0, {
2058
2059
  routes,
2059
- unstable_getContext,
2060
+ getContext,
2060
2061
  basename: payload.basename,
2061
- history: _chunkZ56HUDN5js.createBrowserHistory.call(void 0, ),
2062
- hydrationData: getHydrationData(
2063
- {
2062
+ history: _chunkA6EU7LHUjs.createBrowserHistory.call(void 0, ),
2063
+ hydrationData: getHydrationData({
2064
+ state: {
2064
2065
  loaderData: payload.loaderData,
2065
2066
  actionData: payload.actionData,
2066
2067
  errors: payload.errors
2067
2068
  },
2068
2069
  routes,
2069
- (routeId) => {
2070
+ getRouteInfo: (routeId) => {
2070
2071
  let match = payload.matches.find((m) => m.id === routeId);
2071
- _chunkZ56HUDN5js.invariant.call(void 0, match, "Route not found in payload");
2072
+ _chunkA6EU7LHUjs.invariant.call(void 0, match, "Route not found in payload");
2072
2073
  return {
2073
2074
  clientLoader: match.clientLoader,
2074
2075
  hasLoader: match.hasLoader,
2075
2076
  hasHydrateFallback: match.hydrateFallbackElement != null
2076
2077
  };
2077
2078
  },
2078
- payload.location,
2079
- void 0,
2080
- false
2081
- ),
2079
+ location: payload.location,
2080
+ basename: payload.basename,
2081
+ isSpaMode: false
2082
+ }),
2082
2083
  async patchRoutesOnNavigation({ path, signal }) {
2083
2084
  if (discoveredPaths.has(path)) {
2084
2085
  return;
@@ -2166,9 +2167,9 @@ function createRouterFromPayload({
2166
2167
  routeModules: globalVar.__reactRouterRouteModules
2167
2168
  };
2168
2169
  }
2169
- var renderedRoutesContext = _chunkZ56HUDN5js.unstable_createContext.call(void 0, );
2170
+ var renderedRoutesContext = _chunkA6EU7LHUjs.createContext.call(void 0, );
2170
2171
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
2171
- let dataStrategy = _chunkZ56HUDN5js.getSingleFetchDataStrategyImpl.call(void 0,
2172
+ let dataStrategy = _chunkA6EU7LHUjs.getSingleFetchDataStrategyImpl.call(void 0,
2172
2173
  getRouter,
2173
2174
  (match) => {
2174
2175
  let M = match;
@@ -2193,7 +2194,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
2193
2194
  return M.route.hasComponent && !M.route.element;
2194
2195
  }
2195
2196
  );
2196
- return async (args) => args.unstable_runClientMiddleware(async () => {
2197
+ return async (args) => args.runClientMiddleware(async () => {
2197
2198
  let context = args.context;
2198
2199
  context.set(renderedRoutesContext, []);
2199
2200
  let results = await dataStrategy(args);
@@ -2222,20 +2223,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
2222
2223
  function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
2223
2224
  return async (args, basename, targetRoutes) => {
2224
2225
  let { request, context } = args;
2225
- let url = _chunkZ56HUDN5js.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2226
+ let url = _chunkA6EU7LHUjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2226
2227
  if (request.method === "GET") {
2227
- url = _chunkZ56HUDN5js.stripIndexParam.call(void 0, url);
2228
+ url = _chunkA6EU7LHUjs.stripIndexParam.call(void 0, url);
2228
2229
  if (targetRoutes) {
2229
2230
  url.searchParams.set("_routes", targetRoutes.join(","));
2230
2231
  }
2231
2232
  }
2232
2233
  let res = await fetchImplementation(
2233
- new Request(url, await _chunkZ56HUDN5js.createRequestInit.call(void 0, request))
2234
+ new Request(url, await _chunkA6EU7LHUjs.createRequestInit.call(void 0, request))
2234
2235
  );
2235
2236
  if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
2236
- throw new (0, _chunkZ56HUDN5js.ErrorResponseImpl)(404, "Not Found", true);
2237
+ throw new (0, _chunkA6EU7LHUjs.ErrorResponseImpl)(404, "Not Found", true);
2237
2238
  }
2238
- _chunkZ56HUDN5js.invariant.call(void 0, res.body, "No response body to decode");
2239
+ _chunkA6EU7LHUjs.invariant.call(void 0, res.body, "No response body to decode");
2239
2240
  try {
2240
2241
  const payload = await createFromReadableStream(res.body, {
2241
2242
  temporaryReferences: void 0
@@ -2259,7 +2260,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
2259
2260
  }
2260
2261
  context.get(renderedRoutesContext).push(...payload.matches);
2261
2262
  let results = { routes: {} };
2262
- const dataKey = _chunkZ56HUDN5js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2263
+ const dataKey = _chunkA6EU7LHUjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2263
2264
  for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
2264
2265
  results.routes[routeId] = { data: data2 };
2265
2266
  }
@@ -2279,25 +2280,20 @@ function RSCHydratedRouter({
2279
2280
  fetch: fetchImplementation = fetch,
2280
2281
  payload,
2281
2282
  routeDiscovery = "eager",
2282
- unstable_getContext
2283
+ getContext
2283
2284
  }) {
2284
2285
  if (payload.type !== "render") throw new Error("Invalid payload type");
2285
2286
  let { router, routeModules } = React4.useMemo(
2286
2287
  () => createRouterFromPayload({
2287
2288
  payload,
2288
2289
  fetchImplementation,
2289
- unstable_getContext,
2290
+ getContext,
2290
2291
  createFromReadableStream
2291
2292
  }),
2292
- [
2293
- createFromReadableStream,
2294
- payload,
2295
- fetchImplementation,
2296
- unstable_getContext
2297
- ]
2293
+ [createFromReadableStream, payload, fetchImplementation, getContext]
2298
2294
  );
2299
2295
  React4.useEffect(() => {
2300
- _chunkZ56HUDN5js.setIsHydrated.call(void 0, );
2296
+ _chunkA6EU7LHUjs.setIsHydrated.call(void 0, );
2301
2297
  }, []);
2302
2298
  React4.useLayoutEffect(() => {
2303
2299
  const globalVar = window;
@@ -2366,7 +2362,7 @@ function RSCHydratedRouter({
2366
2362
  future: {
2367
2363
  // These flags have no runtime impact so can always be false. If we add
2368
2364
  // flags that drive runtime behavior they'll need to be proxied through.
2369
- unstable_middleware: false,
2365
+ v8_middleware: false,
2370
2366
  unstable_subResourceIntegrity: false
2371
2367
  },
2372
2368
  isSpaMode: false,
@@ -2384,7 +2380,7 @@ function RSCHydratedRouter({
2384
2380
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2385
2381
  routeModules
2386
2382
  };
2387
- return /* @__PURE__ */ React4.createElement(_chunkZ56HUDN5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkZ56HUDN5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkJNT5PWCQjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2383
+ return /* @__PURE__ */ React4.createElement(_chunkA6EU7LHUjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkA6EU7LHUjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkIR3XRH6Jjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2388
2384
  }
2389
2385
  function createRouteFromServerManifest(match, payload) {
2390
2386
  let hasInitialData = payload && match.id in payload.loaderData;
@@ -2395,7 +2391,7 @@ function createRouteFromServerManifest(match, payload) {
2395
2391
  // the server loader flow regardless of whether the client loader calls
2396
2392
  // `serverLoader` or not, otherwise we'll have nothing to render.
2397
2393
  match.hasComponent && !match.element;
2398
- _chunkZ56HUDN5js.invariant.call(void 0, window.__reactRouterRouteModules);
2394
+ _chunkA6EU7LHUjs.invariant.call(void 0, window.__reactRouterRouteModules);
2399
2395
  populateRSCRouteModules(window.__reactRouterRouteModules, match);
2400
2396
  let dataRoute = {
2401
2397
  id: match.id,
@@ -2446,7 +2442,7 @@ function createRouteFromServerManifest(match, payload) {
2446
2442
  return await callSingleFetch(singleFetch);
2447
2443
  }
2448
2444
  }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
2449
- throw _chunkZ56HUDN5js.noActionDefinedError.call(void 0, "action", match.id);
2445
+ throw _chunkA6EU7LHUjs.noActionDefinedError.call(void 0, "action", match.id);
2450
2446
  },
2451
2447
  path: match.path,
2452
2448
  shouldRevalidate: match.shouldRevalidate,
@@ -2459,7 +2455,7 @@ function createRouteFromServerManifest(match, payload) {
2459
2455
  hasShouldRevalidate: match.shouldRevalidate != null
2460
2456
  };
2461
2457
  if (typeof dataRoute.loader === "function") {
2462
- dataRoute.loader.hydrate = _chunkZ56HUDN5js.shouldHydrateRouteLoader.call(void 0,
2458
+ dataRoute.loader.hydrate = _chunkA6EU7LHUjs.shouldHydrateRouteLoader.call(void 0,
2463
2459
  match.id,
2464
2460
  match.clientLoader,
2465
2461
  match.hasLoader,
@@ -2469,7 +2465,7 @@ function createRouteFromServerManifest(match, payload) {
2469
2465
  return dataRoute;
2470
2466
  }
2471
2467
  function callSingleFetch(singleFetch) {
2472
- _chunkZ56HUDN5js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2468
+ _chunkA6EU7LHUjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2473
2469
  return singleFetch();
2474
2470
  }
2475
2471
  function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
@@ -2477,7 +2473,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
2477
2473
  let fn = type === "action" ? "serverAction()" : "serverLoader()";
2478
2474
  let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
2479
2475
  console.error(msg);
2480
- throw new (0, _chunkZ56HUDN5js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2476
+ throw new (0, _chunkA6EU7LHUjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2481
2477
  }
2482
2478
  }
2483
2479
  var nextPaths = /* @__PURE__ */ new Set();
@@ -2659,20 +2655,49 @@ async function routeRSCServerRequest({
2659
2655
  if (!serverResponse.body) {
2660
2656
  throw new Error("Missing body in server response");
2661
2657
  }
2658
+ const detectRedirectResponse = serverResponse.clone();
2662
2659
  let serverResponseB = null;
2663
2660
  if (hydrate) {
2664
2661
  serverResponseB = serverResponse.clone();
2665
2662
  }
2666
2663
  const body = serverResponse.body;
2667
- let payloadPromise;
2664
+ let buffer;
2665
+ let streamControllers = [];
2666
+ const createStream = () => {
2667
+ if (!buffer) {
2668
+ buffer = [];
2669
+ return body.pipeThrough(
2670
+ new TransformStream({
2671
+ transform(chunk, controller) {
2672
+ buffer.push(chunk);
2673
+ controller.enqueue(chunk);
2674
+ streamControllers.forEach((c) => c.enqueue(chunk));
2675
+ },
2676
+ flush() {
2677
+ streamControllers.forEach((c) => c.close());
2678
+ streamControllers = [];
2679
+ }
2680
+ })
2681
+ );
2682
+ }
2683
+ return new ReadableStream({
2684
+ start(controller) {
2685
+ buffer.forEach((chunk) => controller.enqueue(chunk));
2686
+ streamControllers.push(controller);
2687
+ }
2688
+ });
2689
+ };
2668
2690
  const getPayload = async () => {
2669
- if (payloadPromise) return payloadPromise;
2670
- payloadPromise = createFromReadableStream(body);
2671
- return payloadPromise;
2691
+ return createFromReadableStream(createStream());
2672
2692
  };
2673
2693
  try {
2674
- const payload = await getPayload();
2675
- if (serverResponse.status === _chunkZ56HUDN5js.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2694
+ if (!detectRedirectResponse.body) {
2695
+ throw new Error("Failed to clone server response");
2696
+ }
2697
+ const payload = await createFromReadableStream(
2698
+ detectRedirectResponse.body
2699
+ );
2700
+ if (serverResponse.status === _chunkA6EU7LHUjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2676
2701
  const headers2 = new Headers(serverResponse.headers);
2677
2702
  headers2.delete("Content-Encoding");
2678
2703
  headers2.delete("Content-Length");
@@ -2722,7 +2747,7 @@ function RSCStaticRouter({ getPayload }) {
2722
2747
  if (payload.type !== "render") return null;
2723
2748
  let patchedLoaderData = { ...payload.loaderData };
2724
2749
  for (const match of payload.matches) {
2725
- if (_chunkZ56HUDN5js.shouldHydrateRouteLoader.call(void 0,
2750
+ if (_chunkA6EU7LHUjs.shouldHydrateRouteLoader.call(void 0,
2726
2751
  match.id,
2727
2752
  match.clientLoader,
2728
2753
  match.hasLoader,
@@ -2756,7 +2781,7 @@ function RSCStaticRouter({ getPayload }) {
2756
2781
  }
2757
2782
  }))
2758
2783
  };
2759
- const router = _chunkJNT5PWCQjs.createStaticRouter.call(void 0,
2784
+ const router = _chunkIR3XRH6Jjs.createStaticRouter.call(void 0,
2760
2785
  payload.matches.reduceRight((previous, match) => {
2761
2786
  const route = {
2762
2787
  id: match.id,
@@ -2782,7 +2807,7 @@ function RSCStaticRouter({ getPayload }) {
2782
2807
  future: {
2783
2808
  // These flags have no runtime impact so can always be false. If we add
2784
2809
  // flags that drive runtime behavior they'll need to be proxied through.
2785
- unstable_middleware: false,
2810
+ v8_middleware: false,
2786
2811
  unstable_subResourceIntegrity: false
2787
2812
  },
2788
2813
  isSpaMode: false,
@@ -2800,8 +2825,8 @@ function RSCStaticRouter({ getPayload }) {
2800
2825
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2801
2826
  routeModules: createRSCRouteModules(payload)
2802
2827
  };
2803
- return /* @__PURE__ */ React5.createElement(_chunkZ56HUDN5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkZ56HUDN5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2804
- _chunkJNT5PWCQjs.StaticRouterProvider,
2828
+ return /* @__PURE__ */ React5.createElement(_chunkA6EU7LHUjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkA6EU7LHUjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2829
+ _chunkIR3XRH6Jjs.StaticRouterProvider,
2805
2830
  {
2806
2831
  context,
2807
2832
  router,
@@ -2859,7 +2884,7 @@ function deserializeErrors(errors) {
2859
2884
  let serialized = {};
2860
2885
  for (let [key, val] of entries) {
2861
2886
  if (val && val.__type === "RouteErrorResponse") {
2862
- serialized[key] = new (0, _chunkZ56HUDN5js.ErrorResponseImpl)(
2887
+ serialized[key] = new (0, _chunkA6EU7LHUjs.ErrorResponseImpl)(
2863
2888
  val.status,
2864
2889
  val.statusText,
2865
2890
  val.data,
@@ -3017,4 +3042,5 @@ function deserializeErrors(errors) {
3017
3042
 
3018
3043
 
3019
3044
 
3020
- exports.Await = _chunkJNT5PWCQjs.Await; exports.BrowserRouter = _chunkJNT5PWCQjs.BrowserRouter; exports.Form = _chunkJNT5PWCQjs.Form; exports.HashRouter = _chunkJNT5PWCQjs.HashRouter; exports.IDLE_BLOCKER = _chunkZ56HUDN5js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkZ56HUDN5js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkZ56HUDN5js.IDLE_NAVIGATION; exports.Link = _chunkJNT5PWCQjs.Link; exports.Links = _chunkZ56HUDN5js.Links; exports.MemoryRouter = _chunkJNT5PWCQjs.MemoryRouter; exports.Meta = _chunkZ56HUDN5js.Meta; exports.NavLink = _chunkJNT5PWCQjs.NavLink; exports.Navigate = _chunkJNT5PWCQjs.Navigate; exports.NavigationType = _chunkZ56HUDN5js.Action; exports.Outlet = _chunkJNT5PWCQjs.Outlet; exports.PrefetchPageLinks = _chunkZ56HUDN5js.PrefetchPageLinks; exports.Route = _chunkJNT5PWCQjs.Route; exports.Router = _chunkJNT5PWCQjs.Router; exports.RouterProvider = _chunkJNT5PWCQjs.RouterProvider; exports.Routes = _chunkJNT5PWCQjs.Routes; exports.Scripts = _chunkZ56HUDN5js.Scripts; exports.ScrollRestoration = _chunkJNT5PWCQjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkJNT5PWCQjs.StaticRouter; exports.StaticRouterProvider = _chunkJNT5PWCQjs.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunkZ56HUDN5js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkZ56HUDN5js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkZ56HUDN5js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkZ56HUDN5js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkZ56HUDN5js.FrameworkContext; exports.UNSAFE_LocationContext = _chunkZ56HUDN5js.LocationContext; exports.UNSAFE_NavigationContext = _chunkZ56HUDN5js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkZ56HUDN5js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkZ56HUDN5js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkZ56HUDN5js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkZ56HUDN5js.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkJNT5PWCQjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkJNT5PWCQjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkJNT5PWCQjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkZ56HUDN5js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkZ56HUDN5js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkZ56HUDN5js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkZ56HUDN5js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkZ56HUDN5js.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkZ56HUDN5js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkZ56HUDN5js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkJNT5PWCQjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkZ56HUDN5js.invariant; exports.UNSAFE_mapRouteProperties = _chunkJNT5PWCQjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkZ56HUDN5js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkZ56HUDN5js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkJNT5PWCQjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkJNT5PWCQjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkJNT5PWCQjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkJNT5PWCQjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkJNT5PWCQjs.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkJNT5PWCQjs.createHashRouter; exports.createMemoryRouter = _chunkJNT5PWCQjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkZ56HUDN5js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkJNT5PWCQjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkJNT5PWCQjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkJNT5PWCQjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkJNT5PWCQjs.createStaticHandler; exports.createStaticRouter = _chunkJNT5PWCQjs.createStaticRouter; exports.data = _chunkZ56HUDN5js.data; exports.generatePath = _chunkZ56HUDN5js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkZ56HUDN5js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkZ56HUDN5js.matchPath; exports.matchRoutes = _chunkZ56HUDN5js.matchRoutes; exports.parsePath = _chunkZ56HUDN5js.parsePath; exports.redirect = _chunkZ56HUDN5js.redirect; exports.redirectDocument = _chunkZ56HUDN5js.redirectDocument; exports.renderMatches = _chunkJNT5PWCQjs.renderMatches; exports.replace = _chunkZ56HUDN5js.replace; exports.resolvePath = _chunkZ56HUDN5js.resolvePath; exports.unstable_HistoryRouter = _chunkJNT5PWCQjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunkZ56HUDN5js.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunkZ56HUDN5js.unstable_createContext; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkJNT5PWCQjs.usePrompt; exports.useActionData = _chunkZ56HUDN5js.useActionData; exports.useAsyncError = _chunkZ56HUDN5js.useAsyncError; exports.useAsyncValue = _chunkZ56HUDN5js.useAsyncValue; exports.useBeforeUnload = _chunkJNT5PWCQjs.useBeforeUnload; exports.useBlocker = _chunkZ56HUDN5js.useBlocker; exports.useFetcher = _chunkJNT5PWCQjs.useFetcher; exports.useFetchers = _chunkJNT5PWCQjs.useFetchers; exports.useFormAction = _chunkJNT5PWCQjs.useFormAction; exports.useHref = _chunkZ56HUDN5js.useHref; exports.useInRouterContext = _chunkZ56HUDN5js.useInRouterContext; exports.useLinkClickHandler = _chunkJNT5PWCQjs.useLinkClickHandler; exports.useLoaderData = _chunkZ56HUDN5js.useLoaderData; exports.useLocation = _chunkZ56HUDN5js.useLocation; exports.useMatch = _chunkZ56HUDN5js.useMatch; exports.useMatches = _chunkZ56HUDN5js.useMatches; exports.useNavigate = _chunkZ56HUDN5js.useNavigate; exports.useNavigation = _chunkZ56HUDN5js.useNavigation; exports.useNavigationType = _chunkZ56HUDN5js.useNavigationType; exports.useOutlet = _chunkZ56HUDN5js.useOutlet; exports.useOutletContext = _chunkZ56HUDN5js.useOutletContext; exports.useParams = _chunkZ56HUDN5js.useParams; exports.useResolvedPath = _chunkZ56HUDN5js.useResolvedPath; exports.useRevalidator = _chunkZ56HUDN5js.useRevalidator; exports.useRouteError = _chunkZ56HUDN5js.useRouteError; exports.useRouteLoaderData = _chunkZ56HUDN5js.useRouteLoaderData; exports.useRoutes = _chunkZ56HUDN5js.useRoutes; exports.useSearchParams = _chunkJNT5PWCQjs.useSearchParams; exports.useSubmit = _chunkJNT5PWCQjs.useSubmit; exports.useViewTransitionState = _chunkJNT5PWCQjs.useViewTransitionState;
3045
+
3046
+ exports.Await = _chunkIR3XRH6Jjs.Await; exports.BrowserRouter = _chunkIR3XRH6Jjs.BrowserRouter; exports.Form = _chunkIR3XRH6Jjs.Form; exports.HashRouter = _chunkIR3XRH6Jjs.HashRouter; exports.IDLE_BLOCKER = _chunkA6EU7LHUjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkA6EU7LHUjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkA6EU7LHUjs.IDLE_NAVIGATION; exports.Link = _chunkIR3XRH6Jjs.Link; exports.Links = _chunkA6EU7LHUjs.Links; exports.MemoryRouter = _chunkIR3XRH6Jjs.MemoryRouter; exports.Meta = _chunkA6EU7LHUjs.Meta; exports.NavLink = _chunkIR3XRH6Jjs.NavLink; exports.Navigate = _chunkIR3XRH6Jjs.Navigate; exports.NavigationType = _chunkA6EU7LHUjs.Action; exports.Outlet = _chunkIR3XRH6Jjs.Outlet; exports.PrefetchPageLinks = _chunkA6EU7LHUjs.PrefetchPageLinks; exports.Route = _chunkIR3XRH6Jjs.Route; exports.Router = _chunkIR3XRH6Jjs.Router; exports.RouterContextProvider = _chunkA6EU7LHUjs.RouterContextProvider; exports.RouterProvider = _chunkIR3XRH6Jjs.RouterProvider; exports.Routes = _chunkIR3XRH6Jjs.Routes; exports.Scripts = _chunkA6EU7LHUjs.Scripts; exports.ScrollRestoration = _chunkIR3XRH6Jjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkIR3XRH6Jjs.StaticRouter; exports.StaticRouterProvider = _chunkIR3XRH6Jjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkA6EU7LHUjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkA6EU7LHUjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkA6EU7LHUjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkA6EU7LHUjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkA6EU7LHUjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkA6EU7LHUjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkA6EU7LHUjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkA6EU7LHUjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkA6EU7LHUjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkA6EU7LHUjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkA6EU7LHUjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkA6EU7LHUjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkIR3XRH6Jjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkIR3XRH6Jjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkIR3XRH6Jjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkA6EU7LHUjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkA6EU7LHUjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkA6EU7LHUjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkA6EU7LHUjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkA6EU7LHUjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkA6EU7LHUjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkA6EU7LHUjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkIR3XRH6Jjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkA6EU7LHUjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkIR3XRH6Jjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkA6EU7LHUjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkA6EU7LHUjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkIR3XRH6Jjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkIR3XRH6Jjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkIR3XRH6Jjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkIR3XRH6Jjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkIR3XRH6Jjs.createBrowserRouter; exports.createContext = _chunkA6EU7LHUjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkIR3XRH6Jjs.createHashRouter; exports.createMemoryRouter = _chunkIR3XRH6Jjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkA6EU7LHUjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkIR3XRH6Jjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkIR3XRH6Jjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkIR3XRH6Jjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkIR3XRH6Jjs.createStaticHandler; exports.createStaticRouter = _chunkIR3XRH6Jjs.createStaticRouter; exports.data = _chunkA6EU7LHUjs.data; exports.generatePath = _chunkA6EU7LHUjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkA6EU7LHUjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkA6EU7LHUjs.matchPath; exports.matchRoutes = _chunkA6EU7LHUjs.matchRoutes; exports.parsePath = _chunkA6EU7LHUjs.parsePath; exports.redirect = _chunkA6EU7LHUjs.redirect; exports.redirectDocument = _chunkA6EU7LHUjs.redirectDocument; exports.renderMatches = _chunkIR3XRH6Jjs.renderMatches; exports.replace = _chunkA6EU7LHUjs.replace; exports.resolvePath = _chunkA6EU7LHUjs.resolvePath; exports.unstable_HistoryRouter = _chunkIR3XRH6Jjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkIR3XRH6Jjs.usePrompt; exports.useActionData = _chunkA6EU7LHUjs.useActionData; exports.useAsyncError = _chunkA6EU7LHUjs.useAsyncError; exports.useAsyncValue = _chunkA6EU7LHUjs.useAsyncValue; exports.useBeforeUnload = _chunkIR3XRH6Jjs.useBeforeUnload; exports.useBlocker = _chunkA6EU7LHUjs.useBlocker; exports.useFetcher = _chunkIR3XRH6Jjs.useFetcher; exports.useFetchers = _chunkIR3XRH6Jjs.useFetchers; exports.useFormAction = _chunkIR3XRH6Jjs.useFormAction; exports.useHref = _chunkA6EU7LHUjs.useHref; exports.useInRouterContext = _chunkA6EU7LHUjs.useInRouterContext; exports.useLinkClickHandler = _chunkIR3XRH6Jjs.useLinkClickHandler; exports.useLoaderData = _chunkA6EU7LHUjs.useLoaderData; exports.useLocation = _chunkA6EU7LHUjs.useLocation; exports.useMatch = _chunkA6EU7LHUjs.useMatch; exports.useMatches = _chunkA6EU7LHUjs.useMatches; exports.useNavigate = _chunkA6EU7LHUjs.useNavigate; exports.useNavigation = _chunkA6EU7LHUjs.useNavigation; exports.useNavigationType = _chunkA6EU7LHUjs.useNavigationType; exports.useOutlet = _chunkA6EU7LHUjs.useOutlet; exports.useOutletContext = _chunkA6EU7LHUjs.useOutletContext; exports.useParams = _chunkA6EU7LHUjs.useParams; exports.useResolvedPath = _chunkA6EU7LHUjs.useResolvedPath; exports.useRevalidator = _chunkA6EU7LHUjs.useRevalidator; exports.useRouteError = _chunkA6EU7LHUjs.useRouteError; exports.useRouteLoaderData = _chunkA6EU7LHUjs.useRouteLoaderData; exports.useRoutes = _chunkA6EU7LHUjs.useRoutes; exports.useSearchParams = _chunkIR3XRH6Jjs.useSearchParams; exports.useSubmit = _chunkIR3XRH6Jjs.useSubmit; exports.useViewTransitionState = _chunkIR3XRH6Jjs.useViewTransitionState;