react-router 0.0.0-experimental-0089ff6bc → 0.0.0-experimental-dc5ea5867

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 (41) hide show
  1. package/dist/development/{chunk-2K6IOQUH.js → chunk-EGQKU5IG.js} +7 -7
  2. package/dist/development/{chunk-E6YMPTVT.mjs → chunk-IITYDCDG.mjs} +2 -2
  3. package/dist/{production/chunk-5U3LXK6G.js → development/chunk-LPH2CNBZ.js} +1 -1
  4. package/dist/{production/chunk-23GVDX6O.mjs → development/chunk-XIVYQSML.mjs} +4 -4
  5. package/dist/development/dom-export.d.mts +1 -1
  6. package/dist/development/dom-export.js +2 -2
  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.d.mts +2 -1
  11. package/dist/development/index-react-server.d.ts +2 -1
  12. package/dist/development/index-react-server.js +4 -3
  13. package/dist/development/index-react-server.mjs +4 -3
  14. package/dist/development/index.d.mts +5 -5
  15. package/dist/development/index.d.ts +3 -3
  16. package/dist/development/index.js +97 -97
  17. package/dist/development/index.mjs +3 -3
  18. package/dist/development/lib/types/internal.js +1 -1
  19. package/dist/development/lib/types/internal.mjs +1 -1
  20. package/dist/production/{chunk-O6UYOOAU.mjs → chunk-ENRQL5E2.mjs} +2 -2
  21. package/dist/production/{chunk-AT6XRLIC.js → chunk-K4TUKIIQ.js} +7 -7
  22. package/dist/{development/chunk-5U3LXK6G.js → production/chunk-LPH2CNBZ.js} +1 -1
  23. package/dist/{development/chunk-DLFGBVUM.mjs → production/chunk-ZBNHV3VN.mjs} +4 -4
  24. package/dist/production/dom-export.d.mts +1 -1
  25. package/dist/production/dom-export.js +2 -2
  26. package/dist/production/dom-export.mjs +3 -3
  27. package/dist/production/index-react-server-client.js +4 -4
  28. package/dist/production/index-react-server-client.mjs +2 -2
  29. package/dist/production/index-react-server.d.mts +2 -1
  30. package/dist/production/index-react-server.d.ts +2 -1
  31. package/dist/production/index-react-server.js +4 -3
  32. package/dist/production/index-react-server.mjs +4 -3
  33. package/dist/production/index.d.mts +5 -5
  34. package/dist/production/index.d.ts +3 -3
  35. package/dist/production/index.js +97 -97
  36. package/dist/production/index.mjs +3 -3
  37. package/dist/production/lib/types/internal.js +1 -1
  38. package/dist/production/lib/types/internal.mjs +1 -1
  39. package/package.json +1 -1
  40. package/dist/development/{browser-Db0sq1MO.d.mts → browser--LisUeny.d.mts} +1 -1
  41. package/dist/production/{browser-Db0sq1MO.d.mts → browser--LisUeny.d.mts} +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 v0.0.0-experimental-0089ff6bc
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -137,8 +137,8 @@
137
137
 
138
138
 
139
139
 
140
- var _chunk2K6IOQUHjs = require('./chunk-2K6IOQUH.js');
141
- require('./chunk-5U3LXK6G.js');
140
+ var _chunkEGQKU5IGjs = require('./chunk-EGQKU5IG.js');
141
+ require('./chunk-LPH2CNBZ.js');
142
142
 
143
143
  // lib/dom/ssr/server.tsx
144
144
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
@@ -151,7 +151,7 @@ function ServerRouter({
151
151
  url = new URL(url);
152
152
  }
153
153
  let { manifest, routeModules, criticalCss, serverHandoffString } = context;
154
- let routes = _chunk2K6IOQUHjs.createServerRoutes.call(void 0,
154
+ let routes = _chunkEGQKU5IGjs.createServerRoutes.call(void 0,
155
155
  manifest.routes,
156
156
  routeModules,
157
157
  context.future,
@@ -164,7 +164,7 @@ function ServerRouter({
164
164
  let routeId = match.route.id;
165
165
  let route = routeModules[routeId];
166
166
  let manifestRoute = context.manifest.routes[routeId];
167
- if (route && manifestRoute && _chunk2K6IOQUHjs.shouldHydrateRouteLoader.call(void 0,
167
+ if (route && manifestRoute && _chunkEGQKU5IGjs.shouldHydrateRouteLoader.call(void 0,
168
168
  routeId,
169
169
  route.clientLoader,
170
170
  manifestRoute.hasLoader,
@@ -173,9 +173,9 @@ function ServerRouter({
173
173
  delete context.staticHandlerContext.loaderData[routeId];
174
174
  }
175
175
  }
176
- let router = _chunk2K6IOQUHjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
176
+ let router = _chunkEGQKU5IGjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
177
177
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
178
- _chunk2K6IOQUHjs.FrameworkContext.Provider,
178
+ _chunkEGQKU5IGjs.FrameworkContext.Provider,
179
179
  {
180
180
  value: {
181
181
  manifest,
@@ -190,8 +190,8 @@ function ServerRouter({
190
190
  renderMeta: context.renderMeta
191
191
  }
192
192
  },
193
- /* @__PURE__ */ React.createElement(_chunk2K6IOQUHjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
194
- _chunk2K6IOQUHjs.StaticRouterProvider,
193
+ /* @__PURE__ */ React.createElement(_chunkEGQKU5IGjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
194
+ _chunkEGQKU5IGjs.StaticRouterProvider,
195
195
  {
196
196
  router,
197
197
  context: context.staticHandlerContext,
@@ -199,7 +199,7 @@ function ServerRouter({
199
199
  }
200
200
  ))
201
201
  ), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
202
- _chunk2K6IOQUHjs.StreamTransfer,
202
+ _chunkEGQKU5IGjs.StreamTransfer,
203
203
  {
204
204
  context,
205
205
  identifier: 0,
@@ -241,18 +241,18 @@ function createRoutesStub(routes, unstable_getContext) {
241
241
  let patched = processRoutes(
242
242
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
243
243
  // types compared to `AgnosticRouteObject`
244
- _chunk2K6IOQUHjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
244
+ _chunkEGQKU5IGjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
245
245
  remixContextRef.current.manifest,
246
246
  remixContextRef.current.routeModules
247
247
  );
248
- routerRef.current = _chunk2K6IOQUHjs.createMemoryRouter.call(void 0, patched, {
248
+ routerRef.current = _chunkEGQKU5IGjs.createMemoryRouter.call(void 0, patched, {
249
249
  unstable_getContext,
250
250
  initialEntries,
251
251
  initialIndex,
252
252
  hydrationData
253
253
  });
254
254
  }
255
- return /* @__PURE__ */ React2.createElement(_chunk2K6IOQUHjs.FrameworkContext.Provider, { value: remixContextRef.current }, /* @__PURE__ */ React2.createElement(_chunk2K6IOQUHjs.RouterProvider, { router: routerRef.current }));
255
+ return /* @__PURE__ */ React2.createElement(_chunkEGQKU5IGjs.FrameworkContext.Provider, { value: remixContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkEGQKU5IGjs.RouterProvider, { router: routerRef.current }));
256
256
  };
257
257
  }
258
258
  function processRoutes(routes, manifest, routeModules, parentId) {
@@ -266,9 +266,9 @@ function processRoutes(routes, manifest, routeModules, parentId) {
266
266
  id: route.id,
267
267
  path: route.path,
268
268
  index: route.index,
269
- Component: route.Component ? _chunk2K6IOQUHjs.withComponentProps.call(void 0, route.Component) : void 0,
270
- HydrateFallback: route.HydrateFallback ? _chunk2K6IOQUHjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
271
- ErrorBoundary: route.ErrorBoundary ? _chunk2K6IOQUHjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
269
+ Component: route.Component ? _chunkEGQKU5IGjs.withComponentProps.call(void 0, route.Component) : void 0,
270
+ HydrateFallback: route.HydrateFallback ? _chunkEGQKU5IGjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
271
+ ErrorBoundary: route.ErrorBoundary ? _chunkEGQKU5IGjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
272
272
  action: route.action,
273
273
  loader: route.loader,
274
274
  handle: route.handle,
@@ -297,7 +297,7 @@ function processRoutes(routes, manifest, routeModules, parentId) {
297
297
  };
298
298
  manifest.routes[newRoute.id] = entryRoute;
299
299
  routeModules[route.id] = {
300
- default: newRoute.Component || _chunk2K6IOQUHjs.Outlet,
300
+ default: newRoute.Component || _chunkEGQKU5IGjs.Outlet,
301
301
  ErrorBoundary: newRoute.ErrorBoundary || void 0,
302
302
  handle: route.handle,
303
303
  links: route.links,
@@ -487,7 +487,7 @@ function myUnescape(value) {
487
487
  return result;
488
488
  }
489
489
  function warnOnceAboutExpiresCookie(name, expires) {
490
- _chunk2K6IOQUHjs.warnOnce.call(void 0,
490
+ _chunkEGQKU5IGjs.warnOnce.call(void 0,
491
491
  !expires,
492
492
  `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.`
493
493
  );
@@ -541,7 +541,7 @@ function serializeErrors(errors, serverMode) {
541
541
  let entries = Object.entries(errors);
542
542
  let serialized = {};
543
543
  for (let [key, val] of entries) {
544
- if (_chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, val)) {
544
+ if (_chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, val)) {
545
545
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
546
546
  } else if (val instanceof Error) {
547
547
  let sanitized = sanitizeError(val, serverMode);
@@ -566,7 +566,7 @@ function serializeErrors(errors, serverMode) {
566
566
 
567
567
  // lib/server-runtime/routeMatching.ts
568
568
  function matchServerRoutes(routes, pathname, basename) {
569
- let matches = _chunk2K6IOQUHjs.matchRoutes.call(void 0,
569
+ let matches = _chunkEGQKU5IGjs.matchRoutes.call(void 0,
570
570
  routes,
571
571
  pathname,
572
572
  basename
@@ -586,7 +586,7 @@ async function callRouteHandler(handler, args) {
586
586
  params: args.params,
587
587
  context: args.context
588
588
  });
589
- if (_chunk2K6IOQUHjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunk2K6IOQUHjs.isRedirectStatusCode.call(void 0, result.init.status)) {
589
+ if (_chunkEGQKU5IGjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkEGQKU5IGjs.isRedirectStatusCode.call(void 0, result.init.status)) {
590
590
  throw new Response(null, result.init);
591
591
  }
592
592
  return result;
@@ -705,17 +705,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
705
705
  controller.close();
706
706
  }
707
707
  });
708
- let decoded = await _chunk2K6IOQUHjs.decodeViaTurboStream.call(void 0, stream, global);
708
+ let decoded = await _chunkEGQKU5IGjs.decodeViaTurboStream.call(void 0, stream, global);
709
709
  let data2 = decoded.value;
710
- if (data2 && _chunk2K6IOQUHjs.SingleFetchRedirectSymbol in data2) {
711
- let result = data2[_chunk2K6IOQUHjs.SingleFetchRedirectSymbol];
710
+ if (data2 && _chunkEGQKU5IGjs.SingleFetchRedirectSymbol in data2) {
711
+ let result = data2[_chunkEGQKU5IGjs.SingleFetchRedirectSymbol];
712
712
  let init = { status: result.status };
713
713
  if (result.reload) {
714
- throw _chunk2K6IOQUHjs.redirectDocument.call(void 0, result.redirect, init);
714
+ throw _chunkEGQKU5IGjs.redirectDocument.call(void 0, result.redirect, init);
715
715
  } else if (result.replace) {
716
- throw _chunk2K6IOQUHjs.replace.call(void 0, result.redirect, init);
716
+ throw _chunkEGQKU5IGjs.replace.call(void 0, result.redirect, init);
717
717
  } else {
718
- throw _chunk2K6IOQUHjs.redirect.call(void 0, result.redirect, init);
718
+ throw _chunkEGQKU5IGjs.redirect.call(void 0, result.redirect, init);
719
719
  }
720
720
  } else {
721
721
  invariant2(
@@ -843,14 +843,14 @@ function prependCookies(parentHeaders, childHeaders) {
843
843
 
844
844
  // lib/server-runtime/single-fetch.ts
845
845
  var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
846
- ..._chunk2K6IOQUHjs.NO_BODY_STATUS_CODES,
846
+ ..._chunkEGQKU5IGjs.NO_BODY_STATUS_CODES,
847
847
  304
848
848
  ]);
849
849
  async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
850
850
  try {
851
851
  let respond2 = function(context) {
852
852
  let headers = getDocumentHeaders(context, build);
853
- if (_chunk2K6IOQUHjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
853
+ if (_chunkEGQKU5IGjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
854
854
  return generateSingleFetchResponse(request, build, serverMode, {
855
855
  result: getSingleFetchRedirect(
856
856
  context.statusCode,
@@ -858,12 +858,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
858
858
  build.basename
859
859
  ),
860
860
  headers,
861
- status: _chunk2K6IOQUHjs.SINGLE_FETCH_REDIRECT_STATUS
861
+ status: _chunkEGQKU5IGjs.SINGLE_FETCH_REDIRECT_STATUS
862
862
  });
863
863
  }
864
864
  if (context.errors) {
865
865
  Object.values(context.errors).forEach((err) => {
866
- if (!_chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, err) || err.error) {
866
+ if (!_chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
867
867
  handleError(err);
868
868
  }
869
869
  });
@@ -897,10 +897,10 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
897
897
  skipRevalidation: true,
898
898
  unstable_respond: respond2
899
899
  });
900
- if (!_chunk2K6IOQUHjs.isResponse.call(void 0, result)) {
900
+ if (!_chunkEGQKU5IGjs.isResponse.call(void 0, result)) {
901
901
  result = respond2(result);
902
902
  }
903
- if (_chunk2K6IOQUHjs.isRedirectResponse.call(void 0, result)) {
903
+ if (_chunkEGQKU5IGjs.isRedirectResponse.call(void 0, result)) {
904
904
  return generateSingleFetchResponse(request, build, serverMode, {
905
905
  result: getSingleFetchRedirect(
906
906
  result.status,
@@ -908,7 +908,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
908
908
  build.basename
909
909
  ),
910
910
  headers: result.headers,
911
- status: _chunk2K6IOQUHjs.SINGLE_FETCH_REDIRECT_STATUS
911
+ status: _chunkEGQKU5IGjs.SINGLE_FETCH_REDIRECT_STATUS
912
912
  });
913
913
  }
914
914
  return result;
@@ -925,22 +925,22 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
925
925
  try {
926
926
  let respond2 = function(context) {
927
927
  let headers = getDocumentHeaders(context, build);
928
- if (_chunk2K6IOQUHjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
928
+ if (_chunkEGQKU5IGjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
929
929
  return generateSingleFetchResponse(request, build, serverMode, {
930
930
  result: {
931
- [_chunk2K6IOQUHjs.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
931
+ [_chunkEGQKU5IGjs.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
932
932
  context.statusCode,
933
933
  headers,
934
934
  build.basename
935
935
  )
936
936
  },
937
937
  headers,
938
- status: _chunk2K6IOQUHjs.SINGLE_FETCH_REDIRECT_STATUS
938
+ status: _chunkEGQKU5IGjs.SINGLE_FETCH_REDIRECT_STATUS
939
939
  });
940
940
  }
941
941
  if (context.errors) {
942
942
  Object.values(context.errors).forEach((err) => {
943
- if (!_chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, err) || err.error) {
943
+ if (!_chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
944
944
  handleError(err);
945
945
  }
946
946
  });
@@ -981,20 +981,20 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
981
981
  skipLoaderErrorBubbling: true,
982
982
  unstable_respond: respond2
983
983
  });
984
- if (!_chunk2K6IOQUHjs.isResponse.call(void 0, result)) {
984
+ if (!_chunkEGQKU5IGjs.isResponse.call(void 0, result)) {
985
985
  result = respond2(result);
986
986
  }
987
- if (_chunk2K6IOQUHjs.isRedirectResponse.call(void 0, result)) {
987
+ if (_chunkEGQKU5IGjs.isRedirectResponse.call(void 0, result)) {
988
988
  return generateSingleFetchResponse(request, build, serverMode, {
989
989
  result: {
990
- [_chunk2K6IOQUHjs.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
990
+ [_chunkEGQKU5IGjs.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
991
991
  result.status,
992
992
  result.headers,
993
993
  build.basename
994
994
  )
995
995
  },
996
996
  headers: result.headers,
997
- status: _chunk2K6IOQUHjs.SINGLE_FETCH_REDIRECT_STATUS
997
+ status: _chunkEGQKU5IGjs.SINGLE_FETCH_REDIRECT_STATUS
998
998
  });
999
999
  }
1000
1000
  return result;
@@ -1034,7 +1034,7 @@ function generateSingleFetchResponse(request, build, serverMode, {
1034
1034
  function getSingleFetchRedirect(status, headers, basename) {
1035
1035
  let redirect2 = headers.get("Location");
1036
1036
  if (basename) {
1037
- redirect2 = _chunk2K6IOQUHjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1037
+ redirect2 = _chunkEGQKU5IGjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1038
1038
  }
1039
1039
  return {
1040
1040
  redirect: redirect2,
@@ -1060,7 +1060,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1060
1060
  typeof streamTimeout === "number" ? streamTimeout : 4950
1061
1061
  );
1062
1062
  requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
1063
- return _chunk2K6IOQUHjs.encode.call(void 0, data2, {
1063
+ return _chunkEGQKU5IGjs.encode.call(void 0, data2, {
1064
1064
  signal: controller.signal,
1065
1065
  plugins: [
1066
1066
  (value) => {
@@ -1068,12 +1068,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1068
1068
  let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
1069
1069
  return ["SanitizedError", name, message, stack];
1070
1070
  }
1071
- if (value instanceof _chunk2K6IOQUHjs.ErrorResponseImpl) {
1071
+ if (value instanceof _chunkEGQKU5IGjs.ErrorResponseImpl) {
1072
1072
  let { data: data3, status, statusText } = value;
1073
1073
  return ["ErrorResponse", data3, status, statusText];
1074
1074
  }
1075
- if (value && typeof value === "object" && _chunk2K6IOQUHjs.SingleFetchRedirectSymbol in value) {
1076
- return ["SingleFetchRedirect", value[_chunk2K6IOQUHjs.SingleFetchRedirectSymbol]];
1075
+ if (value && typeof value === "object" && _chunkEGQKU5IGjs.SingleFetchRedirectSymbol in value) {
1076
+ return ["SingleFetchRedirect", value[_chunkEGQKU5IGjs.SingleFetchRedirectSymbol]];
1077
1077
  }
1078
1078
  }
1079
1079
  ],
@@ -1096,14 +1096,14 @@ function derive(build, mode) {
1096
1096
  let routes = createRoutes(build.routes);
1097
1097
  let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
1098
1098
  let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
1099
- let staticHandler = _chunk2K6IOQUHjs.createStaticHandler.call(void 0, dataRoutes, {
1099
+ let staticHandler = _chunkEGQKU5IGjs.createStaticHandler.call(void 0, dataRoutes, {
1100
1100
  basename: build.basename
1101
1101
  });
1102
1102
  let errorHandler = build.entry.module.handleError || ((error, { request }) => {
1103
1103
  if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
1104
1104
  console.error(
1105
1105
  // @ts-expect-error This is "private" from users but intended for internal use
1106
- _chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1106
+ _chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1107
1107
  );
1108
1108
  }
1109
1109
  });
@@ -1150,10 +1150,10 @@ var createRequestHandler = (build, mode) => {
1150
1150
  };
1151
1151
  if (_build.future.unstable_middleware) {
1152
1152
  if (initialContext == null) {
1153
- loadContext = new (0, _chunk2K6IOQUHjs.unstable_RouterContextProvider)();
1153
+ loadContext = new (0, _chunkEGQKU5IGjs.unstable_RouterContextProvider)();
1154
1154
  } else {
1155
1155
  try {
1156
- loadContext = new (0, _chunk2K6IOQUHjs.unstable_RouterContextProvider)(
1156
+ loadContext = new (0, _chunkEGQKU5IGjs.unstable_RouterContextProvider)(
1157
1157
  initialContext
1158
1158
  );
1159
1159
  } catch (e) {
@@ -1172,12 +1172,12 @@ Error: ${e instanceof Error ? e.toString() : e}`
1172
1172
  let url = new URL(request.url);
1173
1173
  let normalizedBasename = _build.basename || "/";
1174
1174
  let normalizedPath = url.pathname;
1175
- if (_chunk2K6IOQUHjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1175
+ if (_chunkEGQKU5IGjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1176
1176
  normalizedPath = normalizedBasename;
1177
1177
  } else if (normalizedPath.endsWith(".data")) {
1178
1178
  normalizedPath = normalizedPath.replace(/\.data$/, "");
1179
1179
  }
1180
- if (_chunk2K6IOQUHjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1180
+ if (_chunkEGQKU5IGjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1181
1181
  normalizedPath = normalizedPath.slice(0, -1);
1182
1182
  }
1183
1183
  let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
@@ -1187,7 +1187,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
1187
1187
  } else if (!_build.prerender.includes(normalizedPath) && !_build.prerender.includes(normalizedPath + "/")) {
1188
1188
  if (url.pathname.endsWith(".data")) {
1189
1189
  errorHandler(
1190
- new (0, _chunk2K6IOQUHjs.ErrorResponseImpl)(
1190
+ new (0, _chunkEGQKU5IGjs.ErrorResponseImpl)(
1191
1191
  404,
1192
1192
  "Not Found",
1193
1193
  `Refusing to SSR the path \`${normalizedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
@@ -1207,7 +1207,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
1207
1207
  }
1208
1208
  }
1209
1209
  }
1210
- let manifestUrl = _chunk2K6IOQUHjs.getManifestPath.call(void 0,
1210
+ let manifestUrl = _chunkEGQKU5IGjs.getManifestPath.call(void 0,
1211
1211
  _build.routeDiscovery.manifestPath,
1212
1212
  normalizedBasename
1213
1213
  );
@@ -1248,7 +1248,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
1248
1248
  params: singleFetchMatches ? singleFetchMatches[0].params : {},
1249
1249
  request
1250
1250
  });
1251
- if (_chunk2K6IOQUHjs.isRedirectResponse.call(void 0, response)) {
1251
+ if (_chunkEGQKU5IGjs.isRedirectResponse.call(void 0, response)) {
1252
1252
  let result = getSingleFetchRedirect(
1253
1253
  response.status,
1254
1254
  response.headers,
@@ -1256,7 +1256,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
1256
1256
  );
1257
1257
  if (request.method === "GET") {
1258
1258
  result = {
1259
- [_chunk2K6IOQUHjs.SingleFetchRedirectSymbol]: result
1259
+ [_chunkEGQKU5IGjs.SingleFetchRedirectSymbol]: result
1260
1260
  };
1261
1261
  }
1262
1262
  let headers = new Headers(response.headers);
@@ -1269,7 +1269,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
1269
1269
  serverMode
1270
1270
  ),
1271
1271
  {
1272
- status: _chunk2K6IOQUHjs.SINGLE_FETCH_REDIRECT_STATUS,
1272
+ status: _chunkEGQKU5IGjs.SINGLE_FETCH_REDIRECT_STATUS,
1273
1273
  headers
1274
1274
  }
1275
1275
  );
@@ -1382,13 +1382,13 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1382
1382
  requestContext: loadContext,
1383
1383
  unstable_respond: build.future.unstable_middleware ? (ctx) => renderHtml(ctx, isSpaMode) : void 0
1384
1384
  });
1385
- return _chunk2K6IOQUHjs.isResponse.call(void 0, response) ? response : renderHtml(response, isSpaMode);
1385
+ return _chunkEGQKU5IGjs.isResponse.call(void 0, response) ? response : renderHtml(response, isSpaMode);
1386
1386
  } catch (error) {
1387
1387
  handleError(error);
1388
1388
  return new Response(null, { status: 500 });
1389
1389
  }
1390
1390
  async function renderHtml(context, isSpaMode2) {
1391
- if (_chunk2K6IOQUHjs.isResponse.call(void 0, context)) {
1391
+ if (_chunkEGQKU5IGjs.isResponse.call(void 0, context)) {
1392
1392
  return context;
1393
1393
  }
1394
1394
  let headers = getDocumentHeaders(context, build);
@@ -1397,7 +1397,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1397
1397
  }
1398
1398
  if (context.errors) {
1399
1399
  Object.values(context.errors).forEach((err) => {
1400
- if (!_chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1400
+ if (!_chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1401
1401
  handleError(err);
1402
1402
  }
1403
1403
  });
@@ -1449,10 +1449,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1449
1449
  } catch (error) {
1450
1450
  handleError(error);
1451
1451
  let errorForSecondRender = error;
1452
- if (_chunk2K6IOQUHjs.isResponse.call(void 0, error)) {
1452
+ if (_chunkEGQKU5IGjs.isResponse.call(void 0, error)) {
1453
1453
  try {
1454
1454
  let data2 = await unwrapResponse(error);
1455
- errorForSecondRender = new (0, _chunk2K6IOQUHjs.ErrorResponseImpl)(
1455
+ errorForSecondRender = new (0, _chunkEGQKU5IGjs.ErrorResponseImpl)(
1456
1456
  error.status,
1457
1457
  error.statusText,
1458
1458
  data2
@@ -1460,7 +1460,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1460
1460
  } catch (e) {
1461
1461
  }
1462
1462
  }
1463
- context = _chunk2K6IOQUHjs.getStaticContextFromError.call(void 0,
1463
+ context = _chunkEGQKU5IGjs.getStaticContextFromError.call(void 0,
1464
1464
  staticHandler.dataRoutes,
1465
1465
  context,
1466
1466
  errorForSecondRender
@@ -1507,7 +1507,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1507
1507
  requestContext: loadContext,
1508
1508
  unstable_respond: build.future.unstable_middleware ? (ctx) => ctx : void 0
1509
1509
  });
1510
- if (_chunk2K6IOQUHjs.isResponse.call(void 0, response)) {
1510
+ if (_chunkEGQKU5IGjs.isResponse.call(void 0, response)) {
1511
1511
  return response;
1512
1512
  }
1513
1513
  if (typeof response === "string") {
@@ -1515,11 +1515,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1515
1515
  }
1516
1516
  return Response.json(response);
1517
1517
  } catch (error) {
1518
- if (_chunk2K6IOQUHjs.isResponse.call(void 0, error)) {
1518
+ if (_chunkEGQKU5IGjs.isResponse.call(void 0, error)) {
1519
1519
  error.headers.set("X-Remix-Catch", "yes");
1520
1520
  return error;
1521
1521
  }
1522
- if (_chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, error)) {
1522
+ if (_chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, error)) {
1523
1523
  if (error) {
1524
1524
  handleError(error);
1525
1525
  }
@@ -1647,7 +1647,7 @@ function createSessionStorage({
1647
1647
  };
1648
1648
  }
1649
1649
  function warnOnceAboutSigningSessionCookie(cookie) {
1650
- _chunk2K6IOQUHjs.warnOnce.call(void 0,
1650
+ _chunkEGQKU5IGjs.warnOnce.call(void 0,
1651
1651
  cookie.isSigned,
1652
1652
  `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.`
1653
1653
  );
@@ -1742,12 +1742,12 @@ function getHydrationData(state, routes, getRouteInfo, location2, basename, isSp
1742
1742
  ...state,
1743
1743
  loaderData: { ...state.loaderData }
1744
1744
  };
1745
- let initialMatches = _chunk2K6IOQUHjs.matchRoutes.call(void 0, routes, location2, basename);
1745
+ let initialMatches = _chunkEGQKU5IGjs.matchRoutes.call(void 0, routes, location2, basename);
1746
1746
  if (initialMatches) {
1747
1747
  for (let match of initialMatches) {
1748
1748
  let routeId = match.route.id;
1749
1749
  let routeInfo = getRouteInfo(routeId);
1750
- if (_chunk2K6IOQUHjs.shouldHydrateRouteLoader.call(void 0,
1750
+ if (_chunkEGQKU5IGjs.shouldHydrateRouteLoader.call(void 0,
1751
1751
  routeId,
1752
1752
  routeInfo.clientLoader,
1753
1753
  routeInfo.hasLoader,
@@ -1825,7 +1825,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1825
1825
  }
1826
1826
  }
1827
1827
  );
1828
- if (_chunk2K6IOQUHjs.isRouteErrorResponse.call(void 0, error)) {
1828
+ if (_chunkEGQKU5IGjs.isRouteErrorResponse.call(void 0, error)) {
1829
1829
  return /* @__PURE__ */ React.default.createElement(
1830
1830
  ErrorWrapper,
1831
1831
  {
@@ -1833,7 +1833,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1833
1833
  title: "Unhandled Thrown Response!"
1834
1834
  },
1835
1835
  /* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
1836
- _chunk2K6IOQUHjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1836
+ _chunkEGQKU5IGjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1837
1837
  );
1838
1838
  }
1839
1839
  let errorInstance;
@@ -1859,7 +1859,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1859
1859
  function RSCDefaultRootErrorBoundary({
1860
1860
  hasRootLayout
1861
1861
  }) {
1862
- let error = _chunk2K6IOQUHjs.useRouteError.call(void 0, );
1862
+ let error = _chunkEGQKU5IGjs.useRouteError.call(void 0, );
1863
1863
  if (hasRootLayout === void 0) {
1864
1864
  throw new Error("Missing 'hasRootLayout' prop");
1865
1865
  }
@@ -1965,7 +1965,7 @@ function createRouterFromPayload({
1965
1965
  if (payload.type !== "render") throw new Error("Invalid payload type");
1966
1966
  let patches = /* @__PURE__ */ new Map();
1967
1967
  _optionalChain([payload, 'access', _19 => _19.patches, 'optionalAccess', _20 => _20.forEach, 'call', _21 => _21((patch) => {
1968
- _chunk2K6IOQUHjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
1968
+ _chunkEGQKU5IGjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
1969
1969
  if (!patches.has(patch.parentId)) {
1970
1970
  patches.set(patch.parentId, []);
1971
1971
  }
@@ -1987,10 +1987,10 @@ function createRouterFromPayload({
1987
1987
  }
1988
1988
  return [route];
1989
1989
  }, []);
1990
- window.__router = _chunk2K6IOQUHjs.createRouter.call(void 0, {
1990
+ window.__router = _chunkEGQKU5IGjs.createRouter.call(void 0, {
1991
1991
  routes,
1992
1992
  basename: payload.basename,
1993
- history: _chunk2K6IOQUHjs.createBrowserHistory.call(void 0, ),
1993
+ history: _chunkEGQKU5IGjs.createBrowserHistory.call(void 0, ),
1994
1994
  hydrationData: getHydrationData(
1995
1995
  {
1996
1996
  loaderData: payload.loaderData,
@@ -2000,7 +2000,7 @@ function createRouterFromPayload({
2000
2000
  routes,
2001
2001
  (routeId) => {
2002
2002
  let match = payload.matches.find((m) => m.id === routeId);
2003
- _chunk2K6IOQUHjs.invariant.call(void 0, match, "Route not found in payload");
2003
+ _chunkEGQKU5IGjs.invariant.call(void 0, match, "Route not found in payload");
2004
2004
  return {
2005
2005
  clientLoader: match.clientLoader,
2006
2006
  hasLoader: match.hasLoader,
@@ -2045,9 +2045,9 @@ function createRouterFromPayload({
2045
2045
  });
2046
2046
  return window.__router;
2047
2047
  }
2048
- var renderedRoutesContext = _chunk2K6IOQUHjs.unstable_createContext.call(void 0, );
2048
+ var renderedRoutesContext = _chunkEGQKU5IGjs.unstable_createContext.call(void 0, );
2049
2049
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
2050
- let dataStrategy = _chunk2K6IOQUHjs.getSingleFetchDataStrategyImpl.call(void 0,
2050
+ let dataStrategy = _chunkEGQKU5IGjs.getSingleFetchDataStrategyImpl.call(void 0,
2051
2051
  getRouter,
2052
2052
  (match) => {
2053
2053
  let M = match;
@@ -2101,20 +2101,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
2101
2101
  function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
2102
2102
  return async (args, basename, targetRoutes) => {
2103
2103
  let { request, context } = args;
2104
- let url = _chunk2K6IOQUHjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2104
+ let url = _chunkEGQKU5IGjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2105
2105
  if (request.method === "GET") {
2106
- url = _chunk2K6IOQUHjs.stripIndexParam.call(void 0, url);
2106
+ url = _chunkEGQKU5IGjs.stripIndexParam.call(void 0, url);
2107
2107
  if (targetRoutes) {
2108
2108
  url.searchParams.set("_routes", targetRoutes.join(","));
2109
2109
  }
2110
2110
  }
2111
2111
  let res = await fetchImplementation(
2112
- new Request(url, await _chunk2K6IOQUHjs.createRequestInit.call(void 0, request))
2112
+ new Request(url, await _chunkEGQKU5IGjs.createRequestInit.call(void 0, request))
2113
2113
  );
2114
2114
  if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
2115
- throw new (0, _chunk2K6IOQUHjs.ErrorResponseImpl)(404, "Not Found", true);
2115
+ throw new (0, _chunkEGQKU5IGjs.ErrorResponseImpl)(404, "Not Found", true);
2116
2116
  }
2117
- _chunk2K6IOQUHjs.invariant.call(void 0, res.body, "No response body to decode");
2117
+ _chunkEGQKU5IGjs.invariant.call(void 0, res.body, "No response body to decode");
2118
2118
  try {
2119
2119
  const payload = await createFromReadableStream(
2120
2120
  res.body
@@ -2138,7 +2138,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
2138
2138
  }
2139
2139
  context.get(renderedRoutesContext).push(...payload.matches);
2140
2140
  let results = { routes: {} };
2141
- const dataKey = _chunk2K6IOQUHjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2141
+ const dataKey = _chunkEGQKU5IGjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2142
2142
  for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
2143
2143
  results.routes[routeId] = { data: data2 };
2144
2144
  }
@@ -2252,7 +2252,7 @@ function RSCHydratedRouter({
2252
2252
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2253
2253
  routeModules: {}
2254
2254
  };
2255
- return /* @__PURE__ */ React4.createElement(_chunk2K6IOQUHjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunk2K6IOQUHjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunk2K6IOQUHjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2255
+ return /* @__PURE__ */ React4.createElement(_chunkEGQKU5IGjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkEGQKU5IGjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkEGQKU5IGjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2256
2256
  }
2257
2257
  function createRouteFromServerManifest(match, payload) {
2258
2258
  let hasInitialData = payload && match.id in payload.loaderData;
@@ -2312,7 +2312,7 @@ function createRouteFromServerManifest(match, payload) {
2312
2312
  return await callSingleFetch(singleFetch);
2313
2313
  }
2314
2314
  }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
2315
- throw _chunk2K6IOQUHjs.noActionDefinedError.call(void 0, "action", match.id);
2315
+ throw _chunkEGQKU5IGjs.noActionDefinedError.call(void 0, "action", match.id);
2316
2316
  },
2317
2317
  path: match.path,
2318
2318
  shouldRevalidate: match.shouldRevalidate,
@@ -2325,7 +2325,7 @@ function createRouteFromServerManifest(match, payload) {
2325
2325
  hasShouldRevalidate: match.shouldRevalidate != null
2326
2326
  };
2327
2327
  if (typeof dataRoute.loader === "function") {
2328
- dataRoute.loader.hydrate = _chunk2K6IOQUHjs.shouldHydrateRouteLoader.call(void 0,
2328
+ dataRoute.loader.hydrate = _chunkEGQKU5IGjs.shouldHydrateRouteLoader.call(void 0,
2329
2329
  match.id,
2330
2330
  match.clientLoader,
2331
2331
  match.hasLoader,
@@ -2335,7 +2335,7 @@ function createRouteFromServerManifest(match, payload) {
2335
2335
  return dataRoute;
2336
2336
  }
2337
2337
  function callSingleFetch(singleFetch) {
2338
- _chunk2K6IOQUHjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2338
+ _chunkEGQKU5IGjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2339
2339
  return singleFetch();
2340
2340
  }
2341
2341
  function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
@@ -2343,7 +2343,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
2343
2343
  let fn = type === "action" ? "serverAction()" : "serverLoader()";
2344
2344
  let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
2345
2345
  console.error(msg);
2346
- throw new (0, _chunk2K6IOQUHjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2346
+ throw new (0, _chunkEGQKU5IGjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2347
2347
  }
2348
2348
  }
2349
2349
  var nextPaths = /* @__PURE__ */ new Set();
@@ -2498,7 +2498,7 @@ function escapeScript(script) {
2498
2498
  async function routeRSCServerRequest({
2499
2499
  request,
2500
2500
  fetchServer,
2501
- decode,
2501
+ createFromReadableStream,
2502
2502
  renderHTML,
2503
2503
  hydrate = true
2504
2504
  }) {
@@ -2520,7 +2520,7 @@ async function routeRSCServerRequest({
2520
2520
  let payloadPromise;
2521
2521
  const getPayload = async () => {
2522
2522
  if (payloadPromise) return payloadPromise;
2523
- payloadPromise = decode(body);
2523
+ payloadPromise = createFromReadableStream(body);
2524
2524
  return payloadPromise;
2525
2525
  };
2526
2526
  try {
@@ -2586,7 +2586,7 @@ function RSCStaticRouter({
2586
2586
  }
2587
2587
  }))
2588
2588
  };
2589
- const router = _chunk2K6IOQUHjs.createStaticRouter.call(void 0,
2589
+ const router = _chunkEGQKU5IGjs.createStaticRouter.call(void 0,
2590
2590
  payload.matches.reduceRight((previous, match) => {
2591
2591
  const route = {
2592
2592
  id: match.id,
@@ -2630,8 +2630,8 @@ function RSCStaticRouter({
2630
2630
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2631
2631
  routeModules: {}
2632
2632
  };
2633
- return /* @__PURE__ */ React5.createElement(_chunk2K6IOQUHjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunk2K6IOQUHjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2634
- _chunk2K6IOQUHjs.StaticRouterProvider,
2633
+ return /* @__PURE__ */ React5.createElement(_chunkEGQKU5IGjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkEGQKU5IGjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2634
+ _chunkEGQKU5IGjs.StaticRouterProvider,
2635
2635
  {
2636
2636
  context,
2637
2637
  router,
@@ -2689,7 +2689,7 @@ function deserializeErrors(errors) {
2689
2689
  let serialized = {};
2690
2690
  for (let [key, val] of entries) {
2691
2691
  if (val && val.__type === "RouteErrorResponse") {
2692
- serialized[key] = new (0, _chunk2K6IOQUHjs.ErrorResponseImpl)(
2692
+ serialized[key] = new (0, _chunkEGQKU5IGjs.ErrorResponseImpl)(
2693
2693
  val.status,
2694
2694
  val.statusText,
2695
2695
  val.data,
@@ -2844,4 +2844,4 @@ function deserializeErrors(errors) {
2844
2844
 
2845
2845
 
2846
2846
 
2847
- exports.Await = _chunk2K6IOQUHjs.Await; exports.BrowserRouter = _chunk2K6IOQUHjs.BrowserRouter; exports.Form = _chunk2K6IOQUHjs.Form; exports.HashRouter = _chunk2K6IOQUHjs.HashRouter; exports.IDLE_BLOCKER = _chunk2K6IOQUHjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunk2K6IOQUHjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunk2K6IOQUHjs.IDLE_NAVIGATION; exports.Link = _chunk2K6IOQUHjs.Link; exports.Links = _chunk2K6IOQUHjs.Links; exports.MemoryRouter = _chunk2K6IOQUHjs.MemoryRouter; exports.Meta = _chunk2K6IOQUHjs.Meta; exports.NavLink = _chunk2K6IOQUHjs.NavLink; exports.Navigate = _chunk2K6IOQUHjs.Navigate; exports.NavigationType = _chunk2K6IOQUHjs.Action; exports.Outlet = _chunk2K6IOQUHjs.Outlet; exports.PrefetchPageLinks = _chunk2K6IOQUHjs.PrefetchPageLinks; exports.Route = _chunk2K6IOQUHjs.Route; exports.Router = _chunk2K6IOQUHjs.Router; exports.RouterProvider = _chunk2K6IOQUHjs.RouterProvider; exports.Routes = _chunk2K6IOQUHjs.Routes; exports.Scripts = _chunk2K6IOQUHjs.Scripts; exports.ScrollRestoration = _chunk2K6IOQUHjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunk2K6IOQUHjs.StaticRouter; exports.StaticRouterProvider = _chunk2K6IOQUHjs.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunk2K6IOQUHjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunk2K6IOQUHjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunk2K6IOQUHjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunk2K6IOQUHjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunk2K6IOQUHjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunk2K6IOQUHjs.LocationContext; exports.UNSAFE_NavigationContext = _chunk2K6IOQUHjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunk2K6IOQUHjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunk2K6IOQUHjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunk2K6IOQUHjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunk2K6IOQUHjs.ViewTransitionContext; exports.UNSAFE_createBrowserHistory = _chunk2K6IOQUHjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunk2K6IOQUHjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunk2K6IOQUHjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunk2K6IOQUHjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunk2K6IOQUHjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunk2K6IOQUHjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunk2K6IOQUHjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunk2K6IOQUHjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunk2K6IOQUHjs.invariant; exports.UNSAFE_mapRouteProperties = _chunk2K6IOQUHjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunk2K6IOQUHjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunk2K6IOQUHjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunk2K6IOQUHjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunk2K6IOQUHjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunk2K6IOQUHjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunk2K6IOQUHjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunk2K6IOQUHjs.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunk2K6IOQUHjs.createHashRouter; exports.createMemoryRouter = _chunk2K6IOQUHjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunk2K6IOQUHjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunk2K6IOQUHjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunk2K6IOQUHjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunk2K6IOQUHjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunk2K6IOQUHjs.createStaticHandler2; exports.createStaticRouter = _chunk2K6IOQUHjs.createStaticRouter; exports.data = _chunk2K6IOQUHjs.data; exports.generatePath = _chunk2K6IOQUHjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunk2K6IOQUHjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunk2K6IOQUHjs.matchPath; exports.matchRoutes = _chunk2K6IOQUHjs.matchRoutes; exports.parsePath = _chunk2K6IOQUHjs.parsePath; exports.redirect = _chunk2K6IOQUHjs.redirect; exports.redirectDocument = _chunk2K6IOQUHjs.redirectDocument; exports.renderMatches = _chunk2K6IOQUHjs.renderMatches; exports.replace = _chunk2K6IOQUHjs.replace; exports.resolvePath = _chunk2K6IOQUHjs.resolvePath; exports.unstable_HistoryRouter = _chunk2K6IOQUHjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunk2K6IOQUHjs.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunk2K6IOQUHjs.unstable_createContext; exports.unstable_getServerStream = getServerStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunk2K6IOQUHjs.usePrompt; exports.useActionData = _chunk2K6IOQUHjs.useActionData; exports.useAsyncError = _chunk2K6IOQUHjs.useAsyncError; exports.useAsyncValue = _chunk2K6IOQUHjs.useAsyncValue; exports.useBeforeUnload = _chunk2K6IOQUHjs.useBeforeUnload; exports.useBlocker = _chunk2K6IOQUHjs.useBlocker; exports.useFetcher = _chunk2K6IOQUHjs.useFetcher; exports.useFetchers = _chunk2K6IOQUHjs.useFetchers; exports.useFormAction = _chunk2K6IOQUHjs.useFormAction; exports.useHref = _chunk2K6IOQUHjs.useHref; exports.useInRouterContext = _chunk2K6IOQUHjs.useInRouterContext; exports.useLinkClickHandler = _chunk2K6IOQUHjs.useLinkClickHandler; exports.useLoaderData = _chunk2K6IOQUHjs.useLoaderData; exports.useLocation = _chunk2K6IOQUHjs.useLocation; exports.useMatch = _chunk2K6IOQUHjs.useMatch; exports.useMatches = _chunk2K6IOQUHjs.useMatches; exports.useNavigate = _chunk2K6IOQUHjs.useNavigate; exports.useNavigation = _chunk2K6IOQUHjs.useNavigation; exports.useNavigationType = _chunk2K6IOQUHjs.useNavigationType; exports.useOutlet = _chunk2K6IOQUHjs.useOutlet; exports.useOutletContext = _chunk2K6IOQUHjs.useOutletContext; exports.useParams = _chunk2K6IOQUHjs.useParams; exports.useResolvedPath = _chunk2K6IOQUHjs.useResolvedPath; exports.useRevalidator = _chunk2K6IOQUHjs.useRevalidator; exports.useRouteError = _chunk2K6IOQUHjs.useRouteError; exports.useRouteLoaderData = _chunk2K6IOQUHjs.useRouteLoaderData; exports.useRoutes = _chunk2K6IOQUHjs.useRoutes; exports.useSearchParams = _chunk2K6IOQUHjs.useSearchParams; exports.useSubmit = _chunk2K6IOQUHjs.useSubmit; exports.useViewTransitionState = _chunk2K6IOQUHjs.useViewTransitionState;
2847
+ exports.Await = _chunkEGQKU5IGjs.Await; exports.BrowserRouter = _chunkEGQKU5IGjs.BrowserRouter; exports.Form = _chunkEGQKU5IGjs.Form; exports.HashRouter = _chunkEGQKU5IGjs.HashRouter; exports.IDLE_BLOCKER = _chunkEGQKU5IGjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkEGQKU5IGjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkEGQKU5IGjs.IDLE_NAVIGATION; exports.Link = _chunkEGQKU5IGjs.Link; exports.Links = _chunkEGQKU5IGjs.Links; exports.MemoryRouter = _chunkEGQKU5IGjs.MemoryRouter; exports.Meta = _chunkEGQKU5IGjs.Meta; exports.NavLink = _chunkEGQKU5IGjs.NavLink; exports.Navigate = _chunkEGQKU5IGjs.Navigate; exports.NavigationType = _chunkEGQKU5IGjs.Action; exports.Outlet = _chunkEGQKU5IGjs.Outlet; exports.PrefetchPageLinks = _chunkEGQKU5IGjs.PrefetchPageLinks; exports.Route = _chunkEGQKU5IGjs.Route; exports.Router = _chunkEGQKU5IGjs.Router; exports.RouterProvider = _chunkEGQKU5IGjs.RouterProvider; exports.Routes = _chunkEGQKU5IGjs.Routes; exports.Scripts = _chunkEGQKU5IGjs.Scripts; exports.ScrollRestoration = _chunkEGQKU5IGjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkEGQKU5IGjs.StaticRouter; exports.StaticRouterProvider = _chunkEGQKU5IGjs.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunkEGQKU5IGjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkEGQKU5IGjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkEGQKU5IGjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkEGQKU5IGjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkEGQKU5IGjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkEGQKU5IGjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkEGQKU5IGjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkEGQKU5IGjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkEGQKU5IGjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkEGQKU5IGjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkEGQKU5IGjs.ViewTransitionContext; exports.UNSAFE_createBrowserHistory = _chunkEGQKU5IGjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkEGQKU5IGjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkEGQKU5IGjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkEGQKU5IGjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkEGQKU5IGjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkEGQKU5IGjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkEGQKU5IGjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkEGQKU5IGjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkEGQKU5IGjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkEGQKU5IGjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkEGQKU5IGjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkEGQKU5IGjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkEGQKU5IGjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkEGQKU5IGjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkEGQKU5IGjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkEGQKU5IGjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkEGQKU5IGjs.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkEGQKU5IGjs.createHashRouter; exports.createMemoryRouter = _chunkEGQKU5IGjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkEGQKU5IGjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkEGQKU5IGjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkEGQKU5IGjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkEGQKU5IGjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkEGQKU5IGjs.createStaticHandler2; exports.createStaticRouter = _chunkEGQKU5IGjs.createStaticRouter; exports.data = _chunkEGQKU5IGjs.data; exports.generatePath = _chunkEGQKU5IGjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkEGQKU5IGjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkEGQKU5IGjs.matchPath; exports.matchRoutes = _chunkEGQKU5IGjs.matchRoutes; exports.parsePath = _chunkEGQKU5IGjs.parsePath; exports.redirect = _chunkEGQKU5IGjs.redirect; exports.redirectDocument = _chunkEGQKU5IGjs.redirectDocument; exports.renderMatches = _chunkEGQKU5IGjs.renderMatches; exports.replace = _chunkEGQKU5IGjs.replace; exports.resolvePath = _chunkEGQKU5IGjs.resolvePath; exports.unstable_HistoryRouter = _chunkEGQKU5IGjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunkEGQKU5IGjs.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunkEGQKU5IGjs.unstable_createContext; exports.unstable_getServerStream = getServerStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkEGQKU5IGjs.usePrompt; exports.useActionData = _chunkEGQKU5IGjs.useActionData; exports.useAsyncError = _chunkEGQKU5IGjs.useAsyncError; exports.useAsyncValue = _chunkEGQKU5IGjs.useAsyncValue; exports.useBeforeUnload = _chunkEGQKU5IGjs.useBeforeUnload; exports.useBlocker = _chunkEGQKU5IGjs.useBlocker; exports.useFetcher = _chunkEGQKU5IGjs.useFetcher; exports.useFetchers = _chunkEGQKU5IGjs.useFetchers; exports.useFormAction = _chunkEGQKU5IGjs.useFormAction; exports.useHref = _chunkEGQKU5IGjs.useHref; exports.useInRouterContext = _chunkEGQKU5IGjs.useInRouterContext; exports.useLinkClickHandler = _chunkEGQKU5IGjs.useLinkClickHandler; exports.useLoaderData = _chunkEGQKU5IGjs.useLoaderData; exports.useLocation = _chunkEGQKU5IGjs.useLocation; exports.useMatch = _chunkEGQKU5IGjs.useMatch; exports.useMatches = _chunkEGQKU5IGjs.useMatches; exports.useNavigate = _chunkEGQKU5IGjs.useNavigate; exports.useNavigation = _chunkEGQKU5IGjs.useNavigation; exports.useNavigationType = _chunkEGQKU5IGjs.useNavigationType; exports.useOutlet = _chunkEGQKU5IGjs.useOutlet; exports.useOutletContext = _chunkEGQKU5IGjs.useOutletContext; exports.useParams = _chunkEGQKU5IGjs.useParams; exports.useResolvedPath = _chunkEGQKU5IGjs.useResolvedPath; exports.useRevalidator = _chunkEGQKU5IGjs.useRevalidator; exports.useRouteError = _chunkEGQKU5IGjs.useRouteError; exports.useRouteLoaderData = _chunkEGQKU5IGjs.useRouteLoaderData; exports.useRoutes = _chunkEGQKU5IGjs.useRoutes; exports.useSearchParams = _chunkEGQKU5IGjs.useSearchParams; exports.useSubmit = _chunkEGQKU5IGjs.useSubmit; exports.useViewTransitionState = _chunkEGQKU5IGjs.useViewTransitionState;