react-router 7.9.0-pre.0 → 7.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/dist/development/{chunk-3TJX7VNY.mjs → chunk-AKKEMMKB.mjs} +3 -15
  3. package/dist/development/{chunk-EAIS2CTK.mjs → chunk-S5YDGZLY.mjs} +6 -8
  4. package/dist/development/{chunk-4J2JOVAI.js → chunk-UGCJQSTX.js} +131 -131
  5. package/dist/development/{chunk-ECJT65VE.js → chunk-VHEBI3C5.js} +6 -8
  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 -109
  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-CSESPFUI.js → chunk-HDA5IKPB.js} +131 -131
  17. package/dist/production/{chunk-47NS5WEV.mjs → chunk-MOZTWV63.mjs} +6 -8
  18. package/dist/production/{chunk-LQAK2UKE.js → chunk-VNPMQDPD.js} +6 -8
  19. package/dist/production/{chunk-SCSBSW2J.mjs → chunk-WOZJCBVO.mjs} +3 -15
  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 -109
  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 _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.9.0-pre.0
2
+ * react-router v7.9.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -54,7 +54,7 @@
54
54
 
55
55
 
56
56
 
57
- var _chunk4J2JOVAIjs = require('./chunk-4J2JOVAI.js');
57
+ var _chunkUGCJQSTXjs = require('./chunk-UGCJQSTX.js');
58
58
 
59
59
 
60
60
 
@@ -144,7 +144,8 @@ var _chunk4J2JOVAIjs = require('./chunk-4J2JOVAI.js');
144
144
 
145
145
 
146
146
 
147
- var _chunkECJT65VEjs = require('./chunk-ECJT65VE.js');
147
+
148
+ var _chunkVHEBI3C5js = require('./chunk-VHEBI3C5.js');
148
149
 
149
150
  // lib/dom/ssr/server.tsx
150
151
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
@@ -157,7 +158,7 @@ function ServerRouter({
157
158
  url = new URL(url);
158
159
  }
159
160
  let { manifest, routeModules, criticalCss, serverHandoffString } = context;
160
- let routes = _chunkECJT65VEjs.createServerRoutes.call(void 0,
161
+ let routes = _chunkVHEBI3C5js.createServerRoutes.call(void 0,
161
162
  manifest.routes,
162
163
  routeModules,
163
164
  context.future,
@@ -170,7 +171,7 @@ function ServerRouter({
170
171
  let routeId = match.route.id;
171
172
  let route = routeModules[routeId];
172
173
  let manifestRoute = context.manifest.routes[routeId];
173
- if (route && manifestRoute && _chunkECJT65VEjs.shouldHydrateRouteLoader.call(void 0,
174
+ if (route && manifestRoute && _chunkVHEBI3C5js.shouldHydrateRouteLoader.call(void 0,
174
175
  routeId,
175
176
  route.clientLoader,
176
177
  manifestRoute.hasLoader,
@@ -179,9 +180,9 @@ function ServerRouter({
179
180
  delete context.staticHandlerContext.loaderData[routeId];
180
181
  }
181
182
  }
182
- let router = _chunk4J2JOVAIjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
183
+ let router = _chunkUGCJQSTXjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
183
184
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
184
- _chunkECJT65VEjs.FrameworkContext.Provider,
185
+ _chunkVHEBI3C5js.FrameworkContext.Provider,
185
186
  {
186
187
  value: {
187
188
  manifest,
@@ -196,8 +197,8 @@ function ServerRouter({
196
197
  renderMeta: context.renderMeta
197
198
  }
198
199
  },
199
- /* @__PURE__ */ React.createElement(_chunkECJT65VEjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
200
- _chunk4J2JOVAIjs.StaticRouterProvider,
200
+ /* @__PURE__ */ React.createElement(_chunkVHEBI3C5js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
201
+ _chunkUGCJQSTXjs.StaticRouterProvider,
201
202
  {
202
203
  router,
203
204
  context: context.staticHandlerContext,
@@ -205,7 +206,7 @@ function ServerRouter({
205
206
  }
206
207
  ))
207
208
  ), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
208
- _chunkECJT65VEjs.StreamTransfer,
209
+ _chunkVHEBI3C5js.StreamTransfer,
209
210
  {
210
211
  context,
211
212
  identifier: 0,
@@ -247,18 +248,18 @@ function createRoutesStub(routes, _context) {
247
248
  let patched = processRoutes(
248
249
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
249
250
  // types compared to `AgnosticRouteObject`
250
- _chunkECJT65VEjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
251
- _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkECJT65VEjs.RouterContextProvider)() : {},
251
+ _chunkVHEBI3C5js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
252
+ _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkVHEBI3C5js.RouterContextProvider)() : {},
252
253
  frameworkContextRef.current.manifest,
253
254
  frameworkContextRef.current.routeModules
254
255
  );
255
- routerRef.current = _chunk4J2JOVAIjs.createMemoryRouter.call(void 0, patched, {
256
+ routerRef.current = _chunkUGCJQSTXjs.createMemoryRouter.call(void 0, patched, {
256
257
  initialEntries,
257
258
  initialIndex,
258
259
  hydrationData
259
260
  });
260
261
  }
261
- return /* @__PURE__ */ React2.createElement(_chunkECJT65VEjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunk4J2JOVAIjs.RouterProvider, { router: routerRef.current }));
262
+ return /* @__PURE__ */ React2.createElement(_chunkVHEBI3C5js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkUGCJQSTXjs.RouterProvider, { router: routerRef.current }));
262
263
  };
263
264
  }
264
265
  function processRoutes(routes, context, manifest, routeModules, parentId) {
@@ -272,9 +273,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
272
273
  id: route.id,
273
274
  path: route.path,
274
275
  index: route.index,
275
- Component: route.Component ? _chunk4J2JOVAIjs.withComponentProps.call(void 0, route.Component) : void 0,
276
- HydrateFallback: route.HydrateFallback ? _chunk4J2JOVAIjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
277
- ErrorBoundary: route.ErrorBoundary ? _chunk4J2JOVAIjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
276
+ Component: route.Component ? _chunkUGCJQSTXjs.withComponentProps.call(void 0, route.Component) : void 0,
277
+ HydrateFallback: route.HydrateFallback ? _chunkUGCJQSTXjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
278
+ ErrorBoundary: route.ErrorBoundary ? _chunkUGCJQSTXjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
278
279
  action: route.action ? (args) => route.action({ ...args, context }) : void 0,
279
280
  loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
280
281
  handle: route.handle,
@@ -303,7 +304,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
303
304
  };
304
305
  manifest.routes[newRoute.id] = entryRoute;
305
306
  routeModules[route.id] = {
306
- default: newRoute.Component || _chunk4J2JOVAIjs.Outlet,
307
+ default: newRoute.Component || _chunkUGCJQSTXjs.Outlet,
307
308
  ErrorBoundary: newRoute.ErrorBoundary || void 0,
308
309
  handle: route.handle,
309
310
  links: route.links,
@@ -498,7 +499,7 @@ function myUnescape(value) {
498
499
  return result;
499
500
  }
500
501
  function warnOnceAboutExpiresCookie(name, expires) {
501
- _chunkECJT65VEjs.warnOnce.call(void 0,
502
+ _chunkVHEBI3C5js.warnOnce.call(void 0,
502
503
  !expires,
503
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.`
504
505
  );
@@ -552,7 +553,7 @@ function serializeErrors(errors, serverMode) {
552
553
  let entries = Object.entries(errors);
553
554
  let serialized = {};
554
555
  for (let [key, val] of entries) {
555
- if (_chunkECJT65VEjs.isRouteErrorResponse.call(void 0, val)) {
556
+ if (_chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, val)) {
556
557
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
557
558
  } else if (val instanceof Error) {
558
559
  let sanitized = sanitizeError(val, serverMode);
@@ -577,7 +578,7 @@ function serializeErrors(errors, serverMode) {
577
578
 
578
579
  // lib/server-runtime/routeMatching.ts
579
580
  function matchServerRoutes(routes, pathname, basename) {
580
- let matches = _chunkECJT65VEjs.matchRoutes.call(void 0,
581
+ let matches = _chunkVHEBI3C5js.matchRoutes.call(void 0,
581
582
  routes,
582
583
  pathname,
583
584
  basename
@@ -597,7 +598,7 @@ async function callRouteHandler(handler, args) {
597
598
  params: args.params,
598
599
  context: args.context
599
600
  });
600
- if (_chunkECJT65VEjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkECJT65VEjs.isRedirectStatusCode.call(void 0, result.init.status)) {
601
+ if (_chunkVHEBI3C5js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkVHEBI3C5js.isRedirectStatusCode.call(void 0, result.init.status)) {
601
602
  throw new Response(null, result.init);
602
603
  }
603
604
  return result;
@@ -716,17 +717,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
716
717
  controller.close();
717
718
  }
718
719
  });
719
- let decoded = await _chunkECJT65VEjs.decodeViaTurboStream.call(void 0, stream, global);
720
+ let decoded = await _chunkVHEBI3C5js.decodeViaTurboStream.call(void 0, stream, global);
720
721
  let data2 = decoded.value;
721
- if (data2 && _chunkECJT65VEjs.SingleFetchRedirectSymbol in data2) {
722
- let result = data2[_chunkECJT65VEjs.SingleFetchRedirectSymbol];
722
+ if (data2 && _chunkVHEBI3C5js.SingleFetchRedirectSymbol in data2) {
723
+ let result = data2[_chunkVHEBI3C5js.SingleFetchRedirectSymbol];
723
724
  let init = { status: result.status };
724
725
  if (result.reload) {
725
- throw _chunkECJT65VEjs.redirectDocument.call(void 0, result.redirect, init);
726
+ throw _chunkVHEBI3C5js.redirectDocument.call(void 0, result.redirect, init);
726
727
  } else if (result.replace) {
727
- throw _chunkECJT65VEjs.replace.call(void 0, result.redirect, init);
728
+ throw _chunkVHEBI3C5js.replace.call(void 0, result.redirect, init);
728
729
  } else {
729
- throw _chunkECJT65VEjs.redirect.call(void 0, result.redirect, init);
730
+ throw _chunkVHEBI3C5js.redirect.call(void 0, result.redirect, init);
730
731
  }
731
732
  } else {
732
733
  invariant2(
@@ -763,22 +764,9 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
763
764
  });
764
765
  }
765
766
 
766
- // lib/server-runtime/markup.ts
767
- var ESCAPE_LOOKUP = {
768
- "&": "\\u0026",
769
- ">": "\\u003e",
770
- "<": "\\u003c",
771
- "\u2028": "\\u2028",
772
- "\u2029": "\\u2029"
773
- };
774
- var ESCAPE_REGEX = /[&><\u2028\u2029]/g;
775
- function escapeHtml(html) {
776
- return html.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
777
- }
778
-
779
767
  // lib/server-runtime/serverHandoff.ts
780
768
  function createServerHandoffString(serverHandoff) {
781
- return escapeHtml(JSON.stringify(serverHandoff));
769
+ return _chunkVHEBI3C5js.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
782
770
  }
783
771
 
784
772
  // lib/server-runtime/headers.ts
@@ -855,7 +843,7 @@ function prependCookies(parentHeaders, childHeaders) {
855
843
 
856
844
  // lib/server-runtime/single-fetch.ts
857
845
  var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
858
- ..._chunkECJT65VEjs.NO_BODY_STATUS_CODES,
846
+ ..._chunkVHEBI3C5js.NO_BODY_STATUS_CODES,
859
847
  304
860
848
  ]);
861
849
  async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
@@ -885,7 +873,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
885
873
  return handleQueryError(error);
886
874
  }
887
875
  function handleQueryResult(result) {
888
- return _chunkECJT65VEjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
876
+ return _chunkVHEBI3C5js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
889
877
  }
890
878
  function handleQueryError(error) {
891
879
  handleError(error);
@@ -897,12 +885,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
897
885
  }
898
886
  function staticContextToResponse(context) {
899
887
  let headers = getDocumentHeaders(context, build);
900
- if (_chunkECJT65VEjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
888
+ if (_chunkVHEBI3C5js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
901
889
  return new Response(null, { status: context.statusCode, headers });
902
890
  }
903
891
  if (context.errors) {
904
892
  Object.values(context.errors).forEach((err) => {
905
- if (!_chunkECJT65VEjs.isRouteErrorResponse.call(void 0, err) || err.error) {
893
+ if (!_chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, err) || err.error) {
906
894
  handleError(err);
907
895
  }
908
896
  });
@@ -949,7 +937,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
949
937
  return handleQueryError(error);
950
938
  }
951
939
  function handleQueryResult(result) {
952
- return _chunkECJT65VEjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
940
+ return _chunkVHEBI3C5js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
953
941
  }
954
942
  function handleQueryError(error) {
955
943
  handleError(error);
@@ -961,12 +949,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
961
949
  }
962
950
  function staticContextToResponse(context) {
963
951
  let headers = getDocumentHeaders(context, build);
964
- if (_chunkECJT65VEjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
952
+ if (_chunkVHEBI3C5js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
965
953
  return new Response(null, { status: context.statusCode, headers });
966
954
  }
967
955
  if (context.errors) {
968
956
  Object.values(context.errors).forEach((err) => {
969
- if (!_chunkECJT65VEjs.isRouteErrorResponse.call(void 0, err) || err.error) {
957
+ if (!_chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, err) || err.error) {
970
958
  handleError(err);
971
959
  }
972
960
  });
@@ -1030,15 +1018,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
1030
1018
  headers.delete("Location");
1031
1019
  headers.set("Content-Type", "text/x-script");
1032
1020
  return generateSingleFetchResponse(request, build, serverMode, {
1033
- result: request.method === "GET" ? { [_chunkECJT65VEjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1021
+ result: request.method === "GET" ? { [_chunkVHEBI3C5js.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1034
1022
  headers,
1035
- status: _chunkECJT65VEjs.SINGLE_FETCH_REDIRECT_STATUS
1023
+ status: _chunkVHEBI3C5js.SINGLE_FETCH_REDIRECT_STATUS
1036
1024
  });
1037
1025
  }
1038
1026
  function getSingleFetchRedirect(status, headers, basename) {
1039
1027
  let redirect2 = headers.get("Location");
1040
1028
  if (basename) {
1041
- redirect2 = _chunkECJT65VEjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1029
+ redirect2 = _chunkVHEBI3C5js.stripBasename.call(void 0, redirect2, basename) || redirect2;
1042
1030
  }
1043
1031
  return {
1044
1032
  redirect: redirect2,
@@ -1064,7 +1052,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1064
1052
  typeof streamTimeout === "number" ? streamTimeout : 4950
1065
1053
  );
1066
1054
  requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
1067
- return _chunkECJT65VEjs.encode.call(void 0, data2, {
1055
+ return _chunkVHEBI3C5js.encode.call(void 0, data2, {
1068
1056
  signal: controller.signal,
1069
1057
  plugins: [
1070
1058
  (value) => {
@@ -1072,12 +1060,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1072
1060
  let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
1073
1061
  return ["SanitizedError", name, message, stack];
1074
1062
  }
1075
- if (value instanceof _chunkECJT65VEjs.ErrorResponseImpl) {
1063
+ if (value instanceof _chunkVHEBI3C5js.ErrorResponseImpl) {
1076
1064
  let { data: data3, status, statusText } = value;
1077
1065
  return ["ErrorResponse", data3, status, statusText];
1078
1066
  }
1079
- if (value && typeof value === "object" && _chunkECJT65VEjs.SingleFetchRedirectSymbol in value) {
1080
- return ["SingleFetchRedirect", value[_chunkECJT65VEjs.SingleFetchRedirectSymbol]];
1067
+ if (value && typeof value === "object" && _chunkVHEBI3C5js.SingleFetchRedirectSymbol in value) {
1068
+ return ["SingleFetchRedirect", value[_chunkVHEBI3C5js.SingleFetchRedirectSymbol]];
1081
1069
  }
1082
1070
  }
1083
1071
  ],
@@ -1100,14 +1088,14 @@ function derive(build, mode) {
1100
1088
  let routes = createRoutes(build.routes);
1101
1089
  let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
1102
1090
  let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
1103
- let staticHandler = _chunkECJT65VEjs.createStaticHandler.call(void 0, dataRoutes, {
1091
+ let staticHandler = _chunkVHEBI3C5js.createStaticHandler.call(void 0, dataRoutes, {
1104
1092
  basename: build.basename
1105
1093
  });
1106
1094
  let errorHandler = build.entry.module.handleError || ((error, { request }) => {
1107
1095
  if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
1108
1096
  console.error(
1109
1097
  // @ts-expect-error This is "private" from users but intended for internal use
1110
- _chunkECJT65VEjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1098
+ _chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1111
1099
  );
1112
1100
  }
1113
1101
  });
@@ -1153,36 +1141,36 @@ var createRequestHandler = (build, mode) => {
1153
1141
  });
1154
1142
  };
1155
1143
  if (_build.future.v8_middleware) {
1156
- if (initialContext && !(initialContext instanceof _chunkECJT65VEjs.RouterContextProvider)) {
1144
+ if (initialContext && !(initialContext instanceof _chunkVHEBI3C5js.RouterContextProvider)) {
1157
1145
  let error = new Error(
1158
1146
  "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
1159
1147
  );
1160
1148
  handleError(error);
1161
1149
  return returnLastResortErrorResponse(error, serverMode);
1162
1150
  }
1163
- loadContext = initialContext || new (0, _chunkECJT65VEjs.RouterContextProvider)();
1151
+ loadContext = initialContext || new (0, _chunkVHEBI3C5js.RouterContextProvider)();
1164
1152
  } else {
1165
1153
  loadContext = initialContext || {};
1166
1154
  }
1167
1155
  let url = new URL(request.url);
1168
1156
  let normalizedBasename = _build.basename || "/";
1169
1157
  let normalizedPath = url.pathname;
1170
- if (_chunkECJT65VEjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1158
+ if (_chunkVHEBI3C5js.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1171
1159
  normalizedPath = normalizedBasename;
1172
1160
  } else if (normalizedPath.endsWith(".data")) {
1173
1161
  normalizedPath = normalizedPath.replace(/\.data$/, "");
1174
1162
  }
1175
- if (_chunkECJT65VEjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1163
+ if (_chunkVHEBI3C5js.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1176
1164
  normalizedPath = normalizedPath.slice(0, -1);
1177
1165
  }
1178
1166
  let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
1179
1167
  if (!_build.ssr) {
1180
1168
  let decodedPath = decodeURI(normalizedPath);
1181
1169
  if (normalizedBasename !== "/") {
1182
- let strippedPath = _chunkECJT65VEjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
1170
+ let strippedPath = _chunkVHEBI3C5js.stripBasename.call(void 0, decodedPath, normalizedBasename);
1183
1171
  if (strippedPath == null) {
1184
1172
  errorHandler(
1185
- new (0, _chunkECJT65VEjs.ErrorResponseImpl)(
1173
+ new (0, _chunkVHEBI3C5js.ErrorResponseImpl)(
1186
1174
  404,
1187
1175
  "Not Found",
1188
1176
  `Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
@@ -1205,7 +1193,7 @@ var createRequestHandler = (build, mode) => {
1205
1193
  } else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
1206
1194
  if (url.pathname.endsWith(".data")) {
1207
1195
  errorHandler(
1208
- new (0, _chunkECJT65VEjs.ErrorResponseImpl)(
1196
+ new (0, _chunkVHEBI3C5js.ErrorResponseImpl)(
1209
1197
  404,
1210
1198
  "Not Found",
1211
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.`
@@ -1225,7 +1213,7 @@ var createRequestHandler = (build, mode) => {
1225
1213
  }
1226
1214
  }
1227
1215
  }
1228
- let manifestUrl = _chunkECJT65VEjs.getManifestPath.call(void 0,
1216
+ let manifestUrl = _chunkVHEBI3C5js.getManifestPath.call(void 0,
1229
1217
  _build.routeDiscovery.manifestPath,
1230
1218
  normalizedBasename
1231
1219
  );
@@ -1260,7 +1248,7 @@ var createRequestHandler = (build, mode) => {
1260
1248
  loadContext,
1261
1249
  handleError
1262
1250
  );
1263
- if (_chunkECJT65VEjs.isRedirectResponse.call(void 0, response)) {
1251
+ if (_chunkVHEBI3C5js.isRedirectResponse.call(void 0, response)) {
1264
1252
  response = generateSingleFetchRedirectResponse(
1265
1253
  response,
1266
1254
  request,
@@ -1274,7 +1262,7 @@ var createRequestHandler = (build, mode) => {
1274
1262
  params: singleFetchMatches ? singleFetchMatches[0].params : {},
1275
1263
  request
1276
1264
  });
1277
- if (_chunkECJT65VEjs.isRedirectResponse.call(void 0, response)) {
1265
+ if (_chunkVHEBI3C5js.isRedirectResponse.call(void 0, response)) {
1278
1266
  response = generateSingleFetchRedirectResponse(
1279
1267
  response,
1280
1268
  request,
@@ -1391,7 +1379,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1391
1379
  generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
1392
1380
  try {
1393
1381
  let innerResult = await query(request);
1394
- if (!_chunkECJT65VEjs.isResponse.call(void 0, innerResult)) {
1382
+ if (!_chunkVHEBI3C5js.isResponse.call(void 0, innerResult)) {
1395
1383
  innerResult = await renderHtml(innerResult, isSpaMode);
1396
1384
  }
1397
1385
  return innerResult;
@@ -1401,7 +1389,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1401
1389
  }
1402
1390
  } : void 0
1403
1391
  });
1404
- if (!_chunkECJT65VEjs.isResponse.call(void 0, result)) {
1392
+ if (!_chunkVHEBI3C5js.isResponse.call(void 0, result)) {
1405
1393
  result = await renderHtml(result, isSpaMode);
1406
1394
  }
1407
1395
  return result;
@@ -1416,7 +1404,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1416
1404
  }
1417
1405
  if (context.errors) {
1418
1406
  Object.values(context.errors).forEach((err) => {
1419
- if (!_chunkECJT65VEjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1407
+ if (!_chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, err) || err.error) {
1420
1408
  handleError(err);
1421
1409
  }
1422
1410
  });
@@ -1468,10 +1456,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1468
1456
  } catch (error) {
1469
1457
  handleError(error);
1470
1458
  let errorForSecondRender = error;
1471
- if (_chunkECJT65VEjs.isResponse.call(void 0, error)) {
1459
+ if (_chunkVHEBI3C5js.isResponse.call(void 0, error)) {
1472
1460
  try {
1473
1461
  let data2 = await unwrapResponse(error);
1474
- errorForSecondRender = new (0, _chunkECJT65VEjs.ErrorResponseImpl)(
1462
+ errorForSecondRender = new (0, _chunkVHEBI3C5js.ErrorResponseImpl)(
1475
1463
  error.status,
1476
1464
  error.statusText,
1477
1465
  data2
@@ -1479,7 +1467,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1479
1467
  } catch (e) {
1480
1468
  }
1481
1469
  }
1482
- context = _chunkECJT65VEjs.getStaticContextFromError.call(void 0,
1470
+ context = _chunkVHEBI3C5js.getStaticContextFromError.call(void 0,
1483
1471
  staticHandler.dataRoutes,
1484
1472
  context,
1485
1473
  errorForSecondRender
@@ -1538,7 +1526,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1538
1526
  return handleQueryRouteError(error);
1539
1527
  }
1540
1528
  function handleQueryRouteResult(result) {
1541
- if (_chunkECJT65VEjs.isResponse.call(void 0, result)) {
1529
+ if (_chunkVHEBI3C5js.isResponse.call(void 0, result)) {
1542
1530
  return result;
1543
1531
  }
1544
1532
  if (typeof result === "string") {
@@ -1547,11 +1535,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1547
1535
  return Response.json(result);
1548
1536
  }
1549
1537
  function handleQueryRouteError(error) {
1550
- if (_chunkECJT65VEjs.isResponse.call(void 0, error)) {
1538
+ if (_chunkVHEBI3C5js.isResponse.call(void 0, error)) {
1551
1539
  error.headers.set("X-Remix-Catch", "yes");
1552
1540
  return error;
1553
1541
  }
1554
- if (_chunkECJT65VEjs.isRouteErrorResponse.call(void 0, error)) {
1542
+ if (_chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, error)) {
1555
1543
  handleError(error);
1556
1544
  return errorResponseToJson(error, serverMode);
1557
1545
  }
@@ -1677,7 +1665,7 @@ function createSessionStorage({
1677
1665
  };
1678
1666
  }
1679
1667
  function warnOnceAboutSigningSessionCookie(cookie) {
1680
- _chunkECJT65VEjs.warnOnce.call(void 0,
1668
+ _chunkVHEBI3C5js.warnOnce.call(void 0,
1681
1669
  cookie.isSigned,
1682
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.`
1683
1671
  );
@@ -1784,12 +1772,12 @@ function getHydrationData({
1784
1772
  ...state,
1785
1773
  loaderData: { ...state.loaderData }
1786
1774
  };
1787
- let initialMatches = _chunkECJT65VEjs.matchRoutes.call(void 0, routes, location2, basename);
1775
+ let initialMatches = _chunkVHEBI3C5js.matchRoutes.call(void 0, routes, location2, basename);
1788
1776
  if (initialMatches) {
1789
1777
  for (let match of initialMatches) {
1790
1778
  let routeId = match.route.id;
1791
1779
  let routeInfo = getRouteInfo(routeId);
1792
- if (_chunkECJT65VEjs.shouldHydrateRouteLoader.call(void 0,
1780
+ if (_chunkVHEBI3C5js.shouldHydrateRouteLoader.call(void 0,
1793
1781
  routeId,
1794
1782
  routeInfo.clientLoader,
1795
1783
  routeInfo.hasLoader,
@@ -1867,7 +1855,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1867
1855
  }
1868
1856
  }
1869
1857
  );
1870
- if (_chunkECJT65VEjs.isRouteErrorResponse.call(void 0, error)) {
1858
+ if (_chunkVHEBI3C5js.isRouteErrorResponse.call(void 0, error)) {
1871
1859
  return /* @__PURE__ */ React.default.createElement(
1872
1860
  ErrorWrapper,
1873
1861
  {
@@ -1875,7 +1863,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1875
1863
  title: "Unhandled Thrown Response!"
1876
1864
  },
1877
1865
  /* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
1878
- _chunkECJT65VEjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1866
+ _chunkVHEBI3C5js.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1879
1867
  );
1880
1868
  }
1881
1869
  let errorInstance;
@@ -1901,7 +1889,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1901
1889
  function RSCDefaultRootErrorBoundary({
1902
1890
  hasRootLayout
1903
1891
  }) {
1904
- let error = _chunkECJT65VEjs.useRouteError.call(void 0, );
1892
+ let error = _chunkVHEBI3C5js.useRouteError.call(void 0, );
1905
1893
  if (hasRootLayout === void 0) {
1906
1894
  throw new Error("Missing 'hasRootLayout' prop");
1907
1895
  }
@@ -2045,7 +2033,7 @@ function createRouterFromPayload({
2045
2033
  populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
2046
2034
  let patches = /* @__PURE__ */ new Map();
2047
2035
  _optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
2048
- _chunkECJT65VEjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
2036
+ _chunkVHEBI3C5js.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
2049
2037
  if (!patches.has(patch.parentId)) {
2050
2038
  patches.set(patch.parentId, []);
2051
2039
  }
@@ -2067,11 +2055,11 @@ function createRouterFromPayload({
2067
2055
  }
2068
2056
  return [route];
2069
2057
  }, []);
2070
- globalVar.__reactRouterDataRouter = _chunkECJT65VEjs.createRouter.call(void 0, {
2058
+ globalVar.__reactRouterDataRouter = _chunkVHEBI3C5js.createRouter.call(void 0, {
2071
2059
  routes,
2072
2060
  getContext,
2073
2061
  basename: payload.basename,
2074
- history: _chunkECJT65VEjs.createBrowserHistory.call(void 0, ),
2062
+ history: _chunkVHEBI3C5js.createBrowserHistory.call(void 0, ),
2075
2063
  hydrationData: getHydrationData({
2076
2064
  state: {
2077
2065
  loaderData: payload.loaderData,
@@ -2081,7 +2069,7 @@ function createRouterFromPayload({
2081
2069
  routes,
2082
2070
  getRouteInfo: (routeId) => {
2083
2071
  let match = payload.matches.find((m) => m.id === routeId);
2084
- _chunkECJT65VEjs.invariant.call(void 0, match, "Route not found in payload");
2072
+ _chunkVHEBI3C5js.invariant.call(void 0, match, "Route not found in payload");
2085
2073
  return {
2086
2074
  clientLoader: match.clientLoader,
2087
2075
  hasLoader: match.hasLoader,
@@ -2179,9 +2167,9 @@ function createRouterFromPayload({
2179
2167
  routeModules: globalVar.__reactRouterRouteModules
2180
2168
  };
2181
2169
  }
2182
- var renderedRoutesContext = _chunkECJT65VEjs.createContext.call(void 0, );
2170
+ var renderedRoutesContext = _chunkVHEBI3C5js.createContext.call(void 0, );
2183
2171
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
2184
- let dataStrategy = _chunkECJT65VEjs.getSingleFetchDataStrategyImpl.call(void 0,
2172
+ let dataStrategy = _chunkVHEBI3C5js.getSingleFetchDataStrategyImpl.call(void 0,
2185
2173
  getRouter,
2186
2174
  (match) => {
2187
2175
  let M = match;
@@ -2235,20 +2223,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
2235
2223
  function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
2236
2224
  return async (args, basename, targetRoutes) => {
2237
2225
  let { request, context } = args;
2238
- let url = _chunkECJT65VEjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2226
+ let url = _chunkVHEBI3C5js.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2239
2227
  if (request.method === "GET") {
2240
- url = _chunkECJT65VEjs.stripIndexParam.call(void 0, url);
2228
+ url = _chunkVHEBI3C5js.stripIndexParam.call(void 0, url);
2241
2229
  if (targetRoutes) {
2242
2230
  url.searchParams.set("_routes", targetRoutes.join(","));
2243
2231
  }
2244
2232
  }
2245
2233
  let res = await fetchImplementation(
2246
- new Request(url, await _chunkECJT65VEjs.createRequestInit.call(void 0, request))
2234
+ new Request(url, await _chunkVHEBI3C5js.createRequestInit.call(void 0, request))
2247
2235
  );
2248
2236
  if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
2249
- throw new (0, _chunkECJT65VEjs.ErrorResponseImpl)(404, "Not Found", true);
2237
+ throw new (0, _chunkVHEBI3C5js.ErrorResponseImpl)(404, "Not Found", true);
2250
2238
  }
2251
- _chunkECJT65VEjs.invariant.call(void 0, res.body, "No response body to decode");
2239
+ _chunkVHEBI3C5js.invariant.call(void 0, res.body, "No response body to decode");
2252
2240
  try {
2253
2241
  const payload = await createFromReadableStream(res.body, {
2254
2242
  temporaryReferences: void 0
@@ -2272,7 +2260,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
2272
2260
  }
2273
2261
  context.get(renderedRoutesContext).push(...payload.matches);
2274
2262
  let results = { routes: {} };
2275
- const dataKey = _chunkECJT65VEjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2263
+ const dataKey = _chunkVHEBI3C5js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2276
2264
  for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
2277
2265
  results.routes[routeId] = { data: data2 };
2278
2266
  }
@@ -2305,7 +2293,7 @@ function RSCHydratedRouter({
2305
2293
  [createFromReadableStream, payload, fetchImplementation, getContext]
2306
2294
  );
2307
2295
  React4.useEffect(() => {
2308
- _chunkECJT65VEjs.setIsHydrated.call(void 0, );
2296
+ _chunkVHEBI3C5js.setIsHydrated.call(void 0, );
2309
2297
  }, []);
2310
2298
  React4.useLayoutEffect(() => {
2311
2299
  const globalVar = window;
@@ -2392,7 +2380,7 @@ function RSCHydratedRouter({
2392
2380
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2393
2381
  routeModules
2394
2382
  };
2395
- return /* @__PURE__ */ React4.createElement(_chunkECJT65VEjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkECJT65VEjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunk4J2JOVAIjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2383
+ return /* @__PURE__ */ React4.createElement(_chunkVHEBI3C5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkVHEBI3C5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkUGCJQSTXjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2396
2384
  }
2397
2385
  function createRouteFromServerManifest(match, payload) {
2398
2386
  let hasInitialData = payload && match.id in payload.loaderData;
@@ -2403,7 +2391,7 @@ function createRouteFromServerManifest(match, payload) {
2403
2391
  // the server loader flow regardless of whether the client loader calls
2404
2392
  // `serverLoader` or not, otherwise we'll have nothing to render.
2405
2393
  match.hasComponent && !match.element;
2406
- _chunkECJT65VEjs.invariant.call(void 0, window.__reactRouterRouteModules);
2394
+ _chunkVHEBI3C5js.invariant.call(void 0, window.__reactRouterRouteModules);
2407
2395
  populateRSCRouteModules(window.__reactRouterRouteModules, match);
2408
2396
  let dataRoute = {
2409
2397
  id: match.id,
@@ -2454,7 +2442,7 @@ function createRouteFromServerManifest(match, payload) {
2454
2442
  return await callSingleFetch(singleFetch);
2455
2443
  }
2456
2444
  }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
2457
- throw _chunkECJT65VEjs.noActionDefinedError.call(void 0, "action", match.id);
2445
+ throw _chunkVHEBI3C5js.noActionDefinedError.call(void 0, "action", match.id);
2458
2446
  },
2459
2447
  path: match.path,
2460
2448
  shouldRevalidate: match.shouldRevalidate,
@@ -2467,7 +2455,7 @@ function createRouteFromServerManifest(match, payload) {
2467
2455
  hasShouldRevalidate: match.shouldRevalidate != null
2468
2456
  };
2469
2457
  if (typeof dataRoute.loader === "function") {
2470
- dataRoute.loader.hydrate = _chunkECJT65VEjs.shouldHydrateRouteLoader.call(void 0,
2458
+ dataRoute.loader.hydrate = _chunkVHEBI3C5js.shouldHydrateRouteLoader.call(void 0,
2471
2459
  match.id,
2472
2460
  match.clientLoader,
2473
2461
  match.hasLoader,
@@ -2477,7 +2465,7 @@ function createRouteFromServerManifest(match, payload) {
2477
2465
  return dataRoute;
2478
2466
  }
2479
2467
  function callSingleFetch(singleFetch) {
2480
- _chunkECJT65VEjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2468
+ _chunkVHEBI3C5js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2481
2469
  return singleFetch();
2482
2470
  }
2483
2471
  function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
@@ -2485,7 +2473,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
2485
2473
  let fn = type === "action" ? "serverAction()" : "serverLoader()";
2486
2474
  let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
2487
2475
  console.error(msg);
2488
- throw new (0, _chunkECJT65VEjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2476
+ throw new (0, _chunkVHEBI3C5js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2489
2477
  }
2490
2478
  }
2491
2479
  var nextPaths = /* @__PURE__ */ new Set();
@@ -2709,7 +2697,7 @@ async function routeRSCServerRequest({
2709
2697
  const payload = await createFromReadableStream(
2710
2698
  detectRedirectResponse.body
2711
2699
  );
2712
- if (serverResponse.status === _chunkECJT65VEjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2700
+ if (serverResponse.status === _chunkVHEBI3C5js.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2713
2701
  const headers2 = new Headers(serverResponse.headers);
2714
2702
  headers2.delete("Content-Encoding");
2715
2703
  headers2.delete("Content-Length");
@@ -2759,7 +2747,7 @@ function RSCStaticRouter({ getPayload }) {
2759
2747
  if (payload.type !== "render") return null;
2760
2748
  let patchedLoaderData = { ...payload.loaderData };
2761
2749
  for (const match of payload.matches) {
2762
- if (_chunkECJT65VEjs.shouldHydrateRouteLoader.call(void 0,
2750
+ if (_chunkVHEBI3C5js.shouldHydrateRouteLoader.call(void 0,
2763
2751
  match.id,
2764
2752
  match.clientLoader,
2765
2753
  match.hasLoader,
@@ -2793,7 +2781,7 @@ function RSCStaticRouter({ getPayload }) {
2793
2781
  }
2794
2782
  }))
2795
2783
  };
2796
- const router = _chunk4J2JOVAIjs.createStaticRouter.call(void 0,
2784
+ const router = _chunkUGCJQSTXjs.createStaticRouter.call(void 0,
2797
2785
  payload.matches.reduceRight((previous, match) => {
2798
2786
  const route = {
2799
2787
  id: match.id,
@@ -2837,8 +2825,8 @@ function RSCStaticRouter({ getPayload }) {
2837
2825
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2838
2826
  routeModules: createRSCRouteModules(payload)
2839
2827
  };
2840
- return /* @__PURE__ */ React5.createElement(_chunkECJT65VEjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkECJT65VEjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2841
- _chunk4J2JOVAIjs.StaticRouterProvider,
2828
+ return /* @__PURE__ */ React5.createElement(_chunkVHEBI3C5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkVHEBI3C5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2829
+ _chunkUGCJQSTXjs.StaticRouterProvider,
2842
2830
  {
2843
2831
  context,
2844
2832
  router,
@@ -2896,7 +2884,7 @@ function deserializeErrors(errors) {
2896
2884
  let serialized = {};
2897
2885
  for (let [key, val] of entries) {
2898
2886
  if (val && val.__type === "RouteErrorResponse") {
2899
- serialized[key] = new (0, _chunkECJT65VEjs.ErrorResponseImpl)(
2887
+ serialized[key] = new (0, _chunkVHEBI3C5js.ErrorResponseImpl)(
2900
2888
  val.status,
2901
2889
  val.statusText,
2902
2890
  val.data,
@@ -3055,4 +3043,4 @@ function deserializeErrors(errors) {
3055
3043
 
3056
3044
 
3057
3045
 
3058
- exports.Await = _chunk4J2JOVAIjs.Await; exports.BrowserRouter = _chunk4J2JOVAIjs.BrowserRouter; exports.Form = _chunk4J2JOVAIjs.Form; exports.HashRouter = _chunk4J2JOVAIjs.HashRouter; exports.IDLE_BLOCKER = _chunkECJT65VEjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkECJT65VEjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkECJT65VEjs.IDLE_NAVIGATION; exports.Link = _chunk4J2JOVAIjs.Link; exports.Links = _chunkECJT65VEjs.Links; exports.MemoryRouter = _chunk4J2JOVAIjs.MemoryRouter; exports.Meta = _chunkECJT65VEjs.Meta; exports.NavLink = _chunk4J2JOVAIjs.NavLink; exports.Navigate = _chunk4J2JOVAIjs.Navigate; exports.NavigationType = _chunkECJT65VEjs.Action; exports.Outlet = _chunk4J2JOVAIjs.Outlet; exports.PrefetchPageLinks = _chunkECJT65VEjs.PrefetchPageLinks; exports.Route = _chunk4J2JOVAIjs.Route; exports.Router = _chunk4J2JOVAIjs.Router; exports.RouterContextProvider = _chunkECJT65VEjs.RouterContextProvider; exports.RouterProvider = _chunk4J2JOVAIjs.RouterProvider; exports.Routes = _chunk4J2JOVAIjs.Routes; exports.Scripts = _chunkECJT65VEjs.Scripts; exports.ScrollRestoration = _chunk4J2JOVAIjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunk4J2JOVAIjs.StaticRouter; exports.StaticRouterProvider = _chunk4J2JOVAIjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkECJT65VEjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkECJT65VEjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkECJT65VEjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkECJT65VEjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkECJT65VEjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkECJT65VEjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkECJT65VEjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkECJT65VEjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkECJT65VEjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkECJT65VEjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkECJT65VEjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkECJT65VEjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunk4J2JOVAIjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunk4J2JOVAIjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunk4J2JOVAIjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkECJT65VEjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkECJT65VEjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkECJT65VEjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkECJT65VEjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkECJT65VEjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkECJT65VEjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkECJT65VEjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunk4J2JOVAIjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkECJT65VEjs.invariant; exports.UNSAFE_mapRouteProperties = _chunk4J2JOVAIjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkECJT65VEjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkECJT65VEjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunk4J2JOVAIjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunk4J2JOVAIjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunk4J2JOVAIjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunk4J2JOVAIjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunk4J2JOVAIjs.createBrowserRouter; exports.createContext = _chunkECJT65VEjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunk4J2JOVAIjs.createHashRouter; exports.createMemoryRouter = _chunk4J2JOVAIjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkECJT65VEjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunk4J2JOVAIjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunk4J2JOVAIjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunk4J2JOVAIjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunk4J2JOVAIjs.createStaticHandler; exports.createStaticRouter = _chunk4J2JOVAIjs.createStaticRouter; exports.data = _chunkECJT65VEjs.data; exports.generatePath = _chunkECJT65VEjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkECJT65VEjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkECJT65VEjs.matchPath; exports.matchRoutes = _chunkECJT65VEjs.matchRoutes; exports.parsePath = _chunkECJT65VEjs.parsePath; exports.redirect = _chunkECJT65VEjs.redirect; exports.redirectDocument = _chunkECJT65VEjs.redirectDocument; exports.renderMatches = _chunk4J2JOVAIjs.renderMatches; exports.replace = _chunkECJT65VEjs.replace; exports.resolvePath = _chunkECJT65VEjs.resolvePath; exports.unstable_HistoryRouter = _chunk4J2JOVAIjs.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 = _chunk4J2JOVAIjs.usePrompt; exports.useActionData = _chunkECJT65VEjs.useActionData; exports.useAsyncError = _chunkECJT65VEjs.useAsyncError; exports.useAsyncValue = _chunkECJT65VEjs.useAsyncValue; exports.useBeforeUnload = _chunk4J2JOVAIjs.useBeforeUnload; exports.useBlocker = _chunkECJT65VEjs.useBlocker; exports.useFetcher = _chunk4J2JOVAIjs.useFetcher; exports.useFetchers = _chunk4J2JOVAIjs.useFetchers; exports.useFormAction = _chunk4J2JOVAIjs.useFormAction; exports.useHref = _chunkECJT65VEjs.useHref; exports.useInRouterContext = _chunkECJT65VEjs.useInRouterContext; exports.useLinkClickHandler = _chunk4J2JOVAIjs.useLinkClickHandler; exports.useLoaderData = _chunkECJT65VEjs.useLoaderData; exports.useLocation = _chunkECJT65VEjs.useLocation; exports.useMatch = _chunkECJT65VEjs.useMatch; exports.useMatches = _chunkECJT65VEjs.useMatches; exports.useNavigate = _chunkECJT65VEjs.useNavigate; exports.useNavigation = _chunkECJT65VEjs.useNavigation; exports.useNavigationType = _chunkECJT65VEjs.useNavigationType; exports.useOutlet = _chunkECJT65VEjs.useOutlet; exports.useOutletContext = _chunkECJT65VEjs.useOutletContext; exports.useParams = _chunkECJT65VEjs.useParams; exports.useResolvedPath = _chunkECJT65VEjs.useResolvedPath; exports.useRevalidator = _chunkECJT65VEjs.useRevalidator; exports.useRouteError = _chunkECJT65VEjs.useRouteError; exports.useRouteLoaderData = _chunkECJT65VEjs.useRouteLoaderData; exports.useRoutes = _chunkECJT65VEjs.useRoutes; exports.useSearchParams = _chunk4J2JOVAIjs.useSearchParams; exports.useSubmit = _chunk4J2JOVAIjs.useSubmit; exports.useViewTransitionState = _chunk4J2JOVAIjs.useViewTransitionState;
3046
+ exports.Await = _chunkUGCJQSTXjs.Await; exports.BrowserRouter = _chunkUGCJQSTXjs.BrowserRouter; exports.Form = _chunkUGCJQSTXjs.Form; exports.HashRouter = _chunkUGCJQSTXjs.HashRouter; exports.IDLE_BLOCKER = _chunkVHEBI3C5js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkVHEBI3C5js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkVHEBI3C5js.IDLE_NAVIGATION; exports.Link = _chunkUGCJQSTXjs.Link; exports.Links = _chunkVHEBI3C5js.Links; exports.MemoryRouter = _chunkUGCJQSTXjs.MemoryRouter; exports.Meta = _chunkVHEBI3C5js.Meta; exports.NavLink = _chunkUGCJQSTXjs.NavLink; exports.Navigate = _chunkUGCJQSTXjs.Navigate; exports.NavigationType = _chunkVHEBI3C5js.Action; exports.Outlet = _chunkUGCJQSTXjs.Outlet; exports.PrefetchPageLinks = _chunkVHEBI3C5js.PrefetchPageLinks; exports.Route = _chunkUGCJQSTXjs.Route; exports.Router = _chunkUGCJQSTXjs.Router; exports.RouterContextProvider = _chunkVHEBI3C5js.RouterContextProvider; exports.RouterProvider = _chunkUGCJQSTXjs.RouterProvider; exports.Routes = _chunkUGCJQSTXjs.Routes; exports.Scripts = _chunkVHEBI3C5js.Scripts; exports.ScrollRestoration = _chunkUGCJQSTXjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkUGCJQSTXjs.StaticRouter; exports.StaticRouterProvider = _chunkUGCJQSTXjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkVHEBI3C5js.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkVHEBI3C5js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkVHEBI3C5js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkVHEBI3C5js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkVHEBI3C5js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkVHEBI3C5js.FrameworkContext; exports.UNSAFE_LocationContext = _chunkVHEBI3C5js.LocationContext; exports.UNSAFE_NavigationContext = _chunkVHEBI3C5js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkVHEBI3C5js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkVHEBI3C5js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkVHEBI3C5js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkVHEBI3C5js.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkUGCJQSTXjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkUGCJQSTXjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkUGCJQSTXjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkVHEBI3C5js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkVHEBI3C5js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkVHEBI3C5js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkVHEBI3C5js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkVHEBI3C5js.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkVHEBI3C5js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkVHEBI3C5js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkUGCJQSTXjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkVHEBI3C5js.invariant; exports.UNSAFE_mapRouteProperties = _chunkUGCJQSTXjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkVHEBI3C5js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkVHEBI3C5js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkUGCJQSTXjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkUGCJQSTXjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkUGCJQSTXjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkUGCJQSTXjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkUGCJQSTXjs.createBrowserRouter; exports.createContext = _chunkVHEBI3C5js.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkUGCJQSTXjs.createHashRouter; exports.createMemoryRouter = _chunkUGCJQSTXjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkVHEBI3C5js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkUGCJQSTXjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkUGCJQSTXjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkUGCJQSTXjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkUGCJQSTXjs.createStaticHandler; exports.createStaticRouter = _chunkUGCJQSTXjs.createStaticRouter; exports.data = _chunkVHEBI3C5js.data; exports.generatePath = _chunkVHEBI3C5js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkVHEBI3C5js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkVHEBI3C5js.matchPath; exports.matchRoutes = _chunkVHEBI3C5js.matchRoutes; exports.parsePath = _chunkVHEBI3C5js.parsePath; exports.redirect = _chunkVHEBI3C5js.redirect; exports.redirectDocument = _chunkVHEBI3C5js.redirectDocument; exports.renderMatches = _chunkUGCJQSTXjs.renderMatches; exports.replace = _chunkVHEBI3C5js.replace; exports.resolvePath = _chunkVHEBI3C5js.resolvePath; exports.unstable_HistoryRouter = _chunkUGCJQSTXjs.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 = _chunkUGCJQSTXjs.usePrompt; exports.useActionData = _chunkVHEBI3C5js.useActionData; exports.useAsyncError = _chunkVHEBI3C5js.useAsyncError; exports.useAsyncValue = _chunkVHEBI3C5js.useAsyncValue; exports.useBeforeUnload = _chunkUGCJQSTXjs.useBeforeUnload; exports.useBlocker = _chunkVHEBI3C5js.useBlocker; exports.useFetcher = _chunkUGCJQSTXjs.useFetcher; exports.useFetchers = _chunkUGCJQSTXjs.useFetchers; exports.useFormAction = _chunkUGCJQSTXjs.useFormAction; exports.useHref = _chunkVHEBI3C5js.useHref; exports.useInRouterContext = _chunkVHEBI3C5js.useInRouterContext; exports.useLinkClickHandler = _chunkUGCJQSTXjs.useLinkClickHandler; exports.useLoaderData = _chunkVHEBI3C5js.useLoaderData; exports.useLocation = _chunkVHEBI3C5js.useLocation; exports.useMatch = _chunkVHEBI3C5js.useMatch; exports.useMatches = _chunkVHEBI3C5js.useMatches; exports.useNavigate = _chunkVHEBI3C5js.useNavigate; exports.useNavigation = _chunkVHEBI3C5js.useNavigation; exports.useNavigationType = _chunkVHEBI3C5js.useNavigationType; exports.useOutlet = _chunkVHEBI3C5js.useOutlet; exports.useOutletContext = _chunkVHEBI3C5js.useOutletContext; exports.useParams = _chunkVHEBI3C5js.useParams; exports.useResolvedPath = _chunkVHEBI3C5js.useResolvedPath; exports.useRevalidator = _chunkVHEBI3C5js.useRevalidator; exports.useRouteError = _chunkVHEBI3C5js.useRouteError; exports.useRouteLoaderData = _chunkVHEBI3C5js.useRouteLoaderData; exports.useRoutes = _chunkVHEBI3C5js.useRoutes; exports.useSearchParams = _chunkUGCJQSTXjs.useSearchParams; exports.useSubmit = _chunkUGCJQSTXjs.useSubmit; exports.useViewTransitionState = _chunkUGCJQSTXjs.useViewTransitionState;