react-router 7.13.1 → 7.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/dist/{production/browser-DzsJABDQ.d.mts → development/browser-Bfn3xw9E.d.ts} +2 -1
- package/dist/development/{browser-DzsJABDQ.d.mts → browser-Di6-vSl-.d.mts} +2 -1
- package/dist/development/{chunk-XOLAXE2Z.js → chunk-GO74ODU3.js} +190 -111
- package/dist/{production/chunk-B5UMK6O7.js → development/chunk-HPFFRPKK.js} +100 -99
- package/dist/development/{chunk-KSEWV2VO.js → chunk-LLP6DRWX.js} +7 -7
- package/dist/{production/chunk-TXB4YXR2.mjs → development/chunk-UALY5CBT.mjs} +83 -49
- package/dist/development/{chunk-LFPYN7LY.mjs → chunk-UVKPFVEO.mjs} +124 -44
- package/dist/development/context-phCt_zmH.d.mts +1713 -0
- package/dist/development/dom-export.d.mts +3 -2
- package/dist/development/dom-export.d.ts +3 -2
- package/dist/development/dom-export.js +45 -29
- package/dist/development/dom-export.mjs +21 -5
- package/dist/development/{index-react-server-client-C4tCIird.d.ts → index-react-server-client-BcrVT7Dd.d.mts} +4 -2
- package/dist/{production/index-react-server-client-EzWJGpN_.d.mts → development/index-react-server-client-CCwMoQIT.d.ts} +1067 -10
- package/dist/development/index-react-server-client.d.mts +3 -2
- package/dist/development/index-react-server-client.d.ts +3 -2
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +293 -246
- package/dist/development/index-react-server.d.ts +293 -246
- package/dist/development/index-react-server.js +121 -43
- package/dist/development/index-react-server.mjs +121 -43
- package/dist/development/index.d.mts +15 -13
- package/dist/development/index.d.ts +15 -13
- package/dist/development/index.js +176 -142
- package/dist/development/index.mjs +3 -3
- package/dist/development/instrumentation-BYr6ff5D.d.ts +657 -0
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-CBoanF80.d.ts → register-CTxsJBKQ.d.mts} +1 -1
- package/dist/development/{register-cRYJ3CjG.d.mts → register-CkcGwv27.d.ts} +1 -1
- package/dist/development/routeModules-BRrCYrSL.d.mts +1693 -0
- package/dist/development/routeModules-CA7kSxJJ.d.ts +1693 -0
- package/dist/production/{browser-sPQ7eaK4.d.ts → browser-Bfn3xw9E.d.ts} +2 -1
- package/dist/{development/browser-sPQ7eaK4.d.ts → production/browser-Di6-vSl-.d.mts} +2 -1
- package/dist/production/{chunk-RJCJ3EYF.mjs → chunk-2BDJPJTA.mjs} +124 -44
- package/dist/production/{chunk-ZJMCM6KT.js → chunk-CAFVLUDY.js} +7 -7
- package/dist/production/{chunk-772H4TVR.js → chunk-LKUVSIBA.js} +190 -111
- package/dist/{development/chunk-JPUPSTYD.mjs → production/chunk-PY35PE22.mjs} +83 -49
- package/dist/{development/chunk-2YMDXNOJ.js → production/chunk-XAAX7KIK.js} +100 -99
- package/dist/production/context-phCt_zmH.d.mts +1713 -0
- package/dist/production/dom-export.d.mts +3 -2
- package/dist/production/dom-export.d.ts +3 -2
- package/dist/production/dom-export.js +45 -29
- package/dist/production/dom-export.mjs +21 -5
- package/dist/{development/index-react-server-client-EzWJGpN_.d.mts → production/index-react-server-client-BcrVT7Dd.d.mts} +4 -2
- package/dist/production/{index-react-server-client-C4tCIird.d.ts → index-react-server-client-CCwMoQIT.d.ts} +1067 -10
- package/dist/production/index-react-server-client.d.mts +3 -2
- package/dist/production/index-react-server-client.d.ts +3 -2
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +293 -246
- package/dist/production/index-react-server.d.ts +293 -246
- package/dist/production/index-react-server.js +121 -43
- package/dist/production/index-react-server.mjs +121 -43
- package/dist/production/index.d.mts +15 -13
- package/dist/production/index.d.ts +15 -13
- package/dist/production/index.js +176 -142
- package/dist/production/index.mjs +3 -3
- package/dist/production/instrumentation-BYr6ff5D.d.ts +657 -0
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{register-CBoanF80.d.ts → register-CTxsJBKQ.d.mts} +1 -1
- package/dist/production/{register-cRYJ3CjG.d.mts → register-CkcGwv27.d.ts} +1 -1
- package/dist/production/routeModules-BRrCYrSL.d.mts +1693 -0
- package/dist/production/routeModules-CA7kSxJJ.d.ts +1693 -0
- package/package.json +1 -1
- package/dist/development/instrumentation--6Pioq_G.d.ts +0 -3344
- package/dist/development/router-cLsU7kHk.d.mts +0 -3344
- package/dist/production/instrumentation--6Pioq_G.d.ts +0 -3344
- package/dist/production/router-cLsU7kHk.d.mts +0 -3344
|
@@ -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.13.
|
|
2
|
+
* react-router v7.13.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkLLP6DRWXjs = require('./chunk-LLP6DRWX.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunkKSEWV2VOjs = require('./chunk-KSEWV2VO.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkHPFFRPKKjs = require('./chunk-HPFFRPKK.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -149,7 +149,7 @@ var _chunk2YMDXNOJjs = require('./chunk-2YMDXNOJ.js');
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
var
|
|
152
|
+
var _chunkGO74ODU3js = require('./chunk-GO74ODU3.js');
|
|
153
153
|
|
|
154
154
|
// lib/dom/ssr/server.tsx
|
|
155
155
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -162,7 +162,7 @@ function ServerRouter({
|
|
|
162
162
|
url = new URL(url);
|
|
163
163
|
}
|
|
164
164
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
165
|
-
let routes =
|
|
165
|
+
let routes = _chunkGO74ODU3js.createServerRoutes.call(void 0,
|
|
166
166
|
manifest.routes,
|
|
167
167
|
routeModules,
|
|
168
168
|
context.future,
|
|
@@ -175,7 +175,7 @@ function ServerRouter({
|
|
|
175
175
|
let routeId = match.route.id;
|
|
176
176
|
let route = routeModules[routeId];
|
|
177
177
|
let manifestRoute = context.manifest.routes[routeId];
|
|
178
|
-
if (route && manifestRoute &&
|
|
178
|
+
if (route && manifestRoute && _chunkGO74ODU3js.shouldHydrateRouteLoader.call(void 0,
|
|
179
179
|
routeId,
|
|
180
180
|
route.clientLoader,
|
|
181
181
|
manifestRoute.hasLoader,
|
|
@@ -184,9 +184,9 @@ function ServerRouter({
|
|
|
184
184
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
let router =
|
|
187
|
+
let router = _chunkHPFFRPKKjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
188
188
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
189
|
-
|
|
189
|
+
_chunkGO74ODU3js.FrameworkContext.Provider,
|
|
190
190
|
{
|
|
191
191
|
value: {
|
|
192
192
|
manifest,
|
|
@@ -201,8 +201,8 @@ function ServerRouter({
|
|
|
201
201
|
renderMeta: context.renderMeta
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
/* @__PURE__ */ React.createElement(
|
|
205
|
-
|
|
204
|
+
/* @__PURE__ */ React.createElement(_chunkGO74ODU3js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
205
|
+
_chunkHPFFRPKKjs.StaticRouterProvider,
|
|
206
206
|
{
|
|
207
207
|
router,
|
|
208
208
|
context: context.staticHandlerContext,
|
|
@@ -210,7 +210,7 @@ function ServerRouter({
|
|
|
210
210
|
}
|
|
211
211
|
))
|
|
212
212
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
213
|
-
|
|
213
|
+
_chunkGO74ODU3js.StreamTransfer,
|
|
214
214
|
{
|
|
215
215
|
context,
|
|
216
216
|
identifier: 0,
|
|
@@ -235,9 +235,10 @@ function createRoutesStub(routes, _context) {
|
|
|
235
235
|
if (routerRef.current == null) {
|
|
236
236
|
frameworkContextRef.current = {
|
|
237
237
|
future: {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
unstable_passThroughRequests: _optionalChain([future, 'optionalAccess', _2 => _2.unstable_passThroughRequests]) === true,
|
|
239
|
+
unstable_subResourceIntegrity: _optionalChain([future, 'optionalAccess', _3 => _3.unstable_subResourceIntegrity]) === true,
|
|
240
|
+
v8_middleware: _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) === true,
|
|
241
|
+
unstable_trailingSlashAwareDataRequests: _optionalChain([future, 'optionalAccess', _5 => _5.unstable_trailingSlashAwareDataRequests]) === true
|
|
241
242
|
},
|
|
242
243
|
manifest: {
|
|
243
244
|
routes: {},
|
|
@@ -252,19 +253,19 @@ function createRoutesStub(routes, _context) {
|
|
|
252
253
|
};
|
|
253
254
|
let patched = processRoutes(
|
|
254
255
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
255
|
-
// types compared to `
|
|
256
|
-
|
|
257
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess',
|
|
256
|
+
// types compared to `RouteObject`
|
|
257
|
+
_chunkGO74ODU3js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
258
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0, _chunkGO74ODU3js.RouterContextProvider)() : {},
|
|
258
259
|
frameworkContextRef.current.manifest,
|
|
259
260
|
frameworkContextRef.current.routeModules
|
|
260
261
|
);
|
|
261
|
-
routerRef.current =
|
|
262
|
+
routerRef.current = _chunkGO74ODU3js.createMemoryRouter.call(void 0, patched, {
|
|
262
263
|
initialEntries,
|
|
263
264
|
initialIndex,
|
|
264
265
|
hydrationData
|
|
265
266
|
});
|
|
266
267
|
}
|
|
267
|
-
return /* @__PURE__ */ React2.createElement(
|
|
268
|
+
return /* @__PURE__ */ React2.createElement(_chunkGO74ODU3js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkGO74ODU3js.RouterProvider, { router: routerRef.current }));
|
|
268
269
|
};
|
|
269
270
|
}
|
|
270
271
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -278,9 +279,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
278
279
|
id: route.id,
|
|
279
280
|
path: route.path,
|
|
280
281
|
index: route.index,
|
|
281
|
-
Component: route.Component ?
|
|
282
|
-
HydrateFallback: route.HydrateFallback ?
|
|
283
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
282
|
+
Component: route.Component ? _chunkGO74ODU3js.withComponentProps.call(void 0, route.Component) : void 0,
|
|
283
|
+
HydrateFallback: route.HydrateFallback ? _chunkGO74ODU3js.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
284
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkGO74ODU3js.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
284
285
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
285
286
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
286
287
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -315,7 +316,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
315
316
|
};
|
|
316
317
|
manifest.routes[newRoute.id] = entryRoute;
|
|
317
318
|
routeModules[route.id] = {
|
|
318
|
-
default: newRoute.Component ||
|
|
319
|
+
default: newRoute.Component || _chunkGO74ODU3js.Outlet,
|
|
319
320
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
320
321
|
handle: route.handle,
|
|
321
322
|
links: route.links,
|
|
@@ -510,7 +511,7 @@ function myUnescape(value) {
|
|
|
510
511
|
return result;
|
|
511
512
|
}
|
|
512
513
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
513
|
-
|
|
514
|
+
_chunkGO74ODU3js.warnOnce.call(void 0,
|
|
514
515
|
!expires,
|
|
515
516
|
`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.`
|
|
516
517
|
);
|
|
@@ -564,7 +565,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
564
565
|
let entries = Object.entries(errors);
|
|
565
566
|
let serialized = {};
|
|
566
567
|
for (let [key, val] of entries) {
|
|
567
|
-
if (
|
|
568
|
+
if (_chunkGO74ODU3js.isRouteErrorResponse.call(void 0, val)) {
|
|
568
569
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
569
570
|
} else if (val instanceof Error) {
|
|
570
571
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -589,7 +590,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
589
590
|
|
|
590
591
|
// lib/server-runtime/routeMatching.ts
|
|
591
592
|
function matchServerRoutes(routes, pathname, basename) {
|
|
592
|
-
let matches =
|
|
593
|
+
let matches = _chunkGO74ODU3js.matchRoutes.call(void 0,
|
|
593
594
|
routes,
|
|
594
595
|
pathname,
|
|
595
596
|
basename
|
|
@@ -603,14 +604,15 @@ function matchServerRoutes(routes, pathname, basename) {
|
|
|
603
604
|
}
|
|
604
605
|
|
|
605
606
|
// lib/server-runtime/data.ts
|
|
606
|
-
async function callRouteHandler(handler, args) {
|
|
607
|
+
async function callRouteHandler(handler, args, future) {
|
|
607
608
|
let result = await handler({
|
|
608
|
-
request: stripRoutesParam(stripIndexParam(args.request)),
|
|
609
|
+
request: future.unstable_passThroughRequests ? args.request : stripRoutesParam(stripIndexParam(args.request)),
|
|
610
|
+
unstable_url: args.unstable_url,
|
|
609
611
|
params: args.params,
|
|
610
612
|
context: args.context,
|
|
611
613
|
unstable_pattern: args.unstable_pattern
|
|
612
614
|
});
|
|
613
|
-
if (
|
|
615
|
+
if (_chunkGO74ODU3js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkGO74ODU3js.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
614
616
|
throw new Response(null, result.init);
|
|
615
617
|
}
|
|
616
618
|
return result;
|
|
@@ -675,7 +677,7 @@ function getDevServerHooks() {
|
|
|
675
677
|
function getBuildTimeHeader(request, headerName) {
|
|
676
678
|
if (typeof process !== "undefined") {
|
|
677
679
|
try {
|
|
678
|
-
if (_optionalChain([process, 'access',
|
|
680
|
+
if (_optionalChain([process, 'access', _7 => _7.env, 'optionalAccess', _8 => _8.IS_RR_BUILD_REQUEST]) === "yes") {
|
|
679
681
|
return request.headers.get(headerName);
|
|
680
682
|
}
|
|
681
683
|
} catch (e) {
|
|
@@ -729,17 +731,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
729
731
|
controller.close();
|
|
730
732
|
}
|
|
731
733
|
});
|
|
732
|
-
let decoded = await
|
|
734
|
+
let decoded = await _chunkGO74ODU3js.decodeViaTurboStream.call(void 0, stream, global);
|
|
733
735
|
let data2 = decoded.value;
|
|
734
|
-
if (data2 &&
|
|
735
|
-
let result = data2[
|
|
736
|
+
if (data2 && _chunkGO74ODU3js.SingleFetchRedirectSymbol in data2) {
|
|
737
|
+
let result = data2[_chunkGO74ODU3js.SingleFetchRedirectSymbol];
|
|
736
738
|
let init = { status: result.status };
|
|
737
739
|
if (result.reload) {
|
|
738
|
-
throw
|
|
740
|
+
throw _chunkGO74ODU3js.redirectDocument.call(void 0, result.redirect, init);
|
|
739
741
|
} else if (result.replace) {
|
|
740
|
-
throw
|
|
742
|
+
throw _chunkGO74ODU3js.replace.call(void 0, result.redirect, init);
|
|
741
743
|
} else {
|
|
742
|
-
throw
|
|
744
|
+
throw _chunkGO74ODU3js.redirect.call(void 0, result.redirect, init);
|
|
743
745
|
}
|
|
744
746
|
} else {
|
|
745
747
|
invariant2(
|
|
@@ -754,10 +756,14 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
754
756
|
return result.data;
|
|
755
757
|
}
|
|
756
758
|
}
|
|
757
|
-
let val = await callRouteHandler(
|
|
759
|
+
let val = await callRouteHandler(
|
|
760
|
+
route.module.loader,
|
|
761
|
+
args,
|
|
762
|
+
future
|
|
763
|
+
);
|
|
758
764
|
return val;
|
|
759
765
|
} : void 0,
|
|
760
|
-
action: route.module.action ? (args) => callRouteHandler(route.module.action, args) : void 0,
|
|
766
|
+
action: route.module.action ? (args) => callRouteHandler(route.module.action, args, future) : void 0,
|
|
761
767
|
handle: route.module.handle
|
|
762
768
|
};
|
|
763
769
|
return route.index ? {
|
|
@@ -778,7 +784,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
778
784
|
|
|
779
785
|
// lib/server-runtime/serverHandoff.ts
|
|
780
786
|
function createServerHandoffString(serverHandoff) {
|
|
781
|
-
return
|
|
787
|
+
return _chunkGO74ODU3js.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
782
788
|
}
|
|
783
789
|
|
|
784
790
|
// lib/server-runtime/headers.ts
|
|
@@ -925,7 +931,7 @@ function isAllowedOrigin(originDomain, allowedActionOrigins = []) {
|
|
|
925
931
|
}
|
|
926
932
|
function parseHostHeader(headers) {
|
|
927
933
|
let forwardedHostHeader = headers.get("x-forwarded-host");
|
|
928
|
-
let forwardedHostValue = _optionalChain([forwardedHostHeader, 'optionalAccess',
|
|
934
|
+
let forwardedHostValue = _optionalChain([forwardedHostHeader, 'optionalAccess', _9 => _9.split, 'call', _10 => _10(","), 'access', _11 => _11[0], 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]);
|
|
929
935
|
let hostHeader = headers.get("host");
|
|
930
936
|
return forwardedHostValue ? {
|
|
931
937
|
type: "x-forwarded-host",
|
|
@@ -936,9 +942,44 @@ function parseHostHeader(headers) {
|
|
|
936
942
|
} : void 0;
|
|
937
943
|
}
|
|
938
944
|
|
|
945
|
+
// lib/server-runtime/urls.ts
|
|
946
|
+
function getNormalizedPath(request, basename, future) {
|
|
947
|
+
basename = basename || "/";
|
|
948
|
+
let url = new URL(request.url);
|
|
949
|
+
let pathname = url.pathname;
|
|
950
|
+
if (_optionalChain([future, 'optionalAccess', _14 => _14.unstable_trailingSlashAwareDataRequests])) {
|
|
951
|
+
if (pathname.endsWith("/_.data")) {
|
|
952
|
+
pathname = pathname.replace(/_\.data$/, "");
|
|
953
|
+
} else {
|
|
954
|
+
pathname = pathname.replace(/\.data$/, "");
|
|
955
|
+
}
|
|
956
|
+
} else {
|
|
957
|
+
if (_chunkGO74ODU3js.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
|
|
958
|
+
pathname = basename;
|
|
959
|
+
} else if (pathname.endsWith(".data")) {
|
|
960
|
+
pathname = pathname.replace(/\.data$/, "");
|
|
961
|
+
}
|
|
962
|
+
if (_chunkGO74ODU3js.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
963
|
+
pathname = pathname.slice(0, -1);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
let searchParams = new URLSearchParams(url.search);
|
|
967
|
+
searchParams.delete("_routes");
|
|
968
|
+
let search = searchParams.toString();
|
|
969
|
+
if (search) {
|
|
970
|
+
search = `?${search}`;
|
|
971
|
+
}
|
|
972
|
+
return {
|
|
973
|
+
pathname,
|
|
974
|
+
search,
|
|
975
|
+
// No hashes on the server
|
|
976
|
+
hash: ""
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
|
|
939
980
|
// lib/server-runtime/single-fetch.ts
|
|
940
981
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
941
|
-
...
|
|
982
|
+
..._chunkGO74ODU3js.NO_BODY_STATUS_CODES,
|
|
942
983
|
304
|
|
943
984
|
]);
|
|
944
985
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -951,7 +992,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
951
992
|
} catch (e) {
|
|
952
993
|
return handleQueryError(new Error("Bad Request"), 400);
|
|
953
994
|
}
|
|
954
|
-
let handlerRequest = new Request(handlerUrl, {
|
|
995
|
+
let handlerRequest = build.future.unstable_passThroughRequests ? request : new Request(handlerUrl, {
|
|
955
996
|
method: request.method,
|
|
956
997
|
body: request.body,
|
|
957
998
|
headers: request.headers,
|
|
@@ -969,14 +1010,15 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
969
1010
|
} catch (error) {
|
|
970
1011
|
return handleQueryError(error);
|
|
971
1012
|
}
|
|
972
|
-
} : void 0
|
|
1013
|
+
} : void 0,
|
|
1014
|
+
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
973
1015
|
});
|
|
974
1016
|
return handleQueryResult(result);
|
|
975
1017
|
} catch (error) {
|
|
976
1018
|
return handleQueryError(error);
|
|
977
1019
|
}
|
|
978
1020
|
function handleQueryResult(result) {
|
|
979
|
-
return
|
|
1021
|
+
return _chunkGO74ODU3js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
980
1022
|
}
|
|
981
1023
|
function handleQueryError(error, status = 500) {
|
|
982
1024
|
handleError(error);
|
|
@@ -988,12 +1030,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
988
1030
|
}
|
|
989
1031
|
function staticContextToResponse(context) {
|
|
990
1032
|
let headers = getDocumentHeaders(context, build);
|
|
991
|
-
if (
|
|
1033
|
+
if (_chunkGO74ODU3js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
992
1034
|
return new Response(null, { status: context.statusCode, headers });
|
|
993
1035
|
}
|
|
994
1036
|
if (context.errors) {
|
|
995
1037
|
Object.values(context.errors).forEach((err) => {
|
|
996
|
-
if (!
|
|
1038
|
+
if (!_chunkGO74ODU3js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
997
1039
|
handleError(err);
|
|
998
1040
|
}
|
|
999
1041
|
});
|
|
@@ -1018,7 +1060,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1018
1060
|
let routesParam = new URL(request.url).searchParams.get("_routes");
|
|
1019
1061
|
let loadRouteIds = routesParam ? new Set(routesParam.split(",")) : null;
|
|
1020
1062
|
try {
|
|
1021
|
-
let handlerRequest = new Request(handlerUrl, {
|
|
1063
|
+
let handlerRequest = build.future.unstable_passThroughRequests ? request : new Request(handlerUrl, {
|
|
1022
1064
|
headers: request.headers,
|
|
1023
1065
|
signal: request.signal
|
|
1024
1066
|
});
|
|
@@ -1033,14 +1075,15 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1033
1075
|
} catch (error) {
|
|
1034
1076
|
return handleQueryError(error);
|
|
1035
1077
|
}
|
|
1036
|
-
} : void 0
|
|
1078
|
+
} : void 0,
|
|
1079
|
+
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1037
1080
|
});
|
|
1038
1081
|
return handleQueryResult(result);
|
|
1039
1082
|
} catch (error) {
|
|
1040
1083
|
return handleQueryError(error);
|
|
1041
1084
|
}
|
|
1042
1085
|
function handleQueryResult(result) {
|
|
1043
|
-
return
|
|
1086
|
+
return _chunkGO74ODU3js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1044
1087
|
}
|
|
1045
1088
|
function handleQueryError(error) {
|
|
1046
1089
|
handleError(error);
|
|
@@ -1052,12 +1095,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1052
1095
|
}
|
|
1053
1096
|
function staticContextToResponse(context) {
|
|
1054
1097
|
let headers = getDocumentHeaders(context, build);
|
|
1055
|
-
if (
|
|
1098
|
+
if (_chunkGO74ODU3js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1056
1099
|
return new Response(null, { status: context.statusCode, headers });
|
|
1057
1100
|
}
|
|
1058
1101
|
if (context.errors) {
|
|
1059
1102
|
Object.values(context.errors).forEach((err) => {
|
|
1060
|
-
if (!
|
|
1103
|
+
if (!_chunkGO74ODU3js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1061
1104
|
handleError(err);
|
|
1062
1105
|
}
|
|
1063
1106
|
});
|
|
@@ -1121,15 +1164,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1121
1164
|
headers.delete("Location");
|
|
1122
1165
|
headers.set("Content-Type", "text/x-script");
|
|
1123
1166
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1124
|
-
result: request.method === "GET" ? { [
|
|
1167
|
+
result: request.method === "GET" ? { [_chunkGO74ODU3js.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1125
1168
|
headers,
|
|
1126
|
-
status:
|
|
1169
|
+
status: _chunkGO74ODU3js.SINGLE_FETCH_REDIRECT_STATUS
|
|
1127
1170
|
});
|
|
1128
1171
|
}
|
|
1129
1172
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1130
1173
|
let redirect2 = headers.get("Location");
|
|
1131
1174
|
if (basename) {
|
|
1132
|
-
redirect2 =
|
|
1175
|
+
redirect2 = _chunkGO74ODU3js.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1133
1176
|
}
|
|
1134
1177
|
return {
|
|
1135
1178
|
redirect: redirect2,
|
|
@@ -1156,7 +1199,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1156
1199
|
);
|
|
1157
1200
|
let clearStreamTimeout = () => clearTimeout(timeoutId);
|
|
1158
1201
|
requestSignal.addEventListener("abort", clearStreamTimeout);
|
|
1159
|
-
return
|
|
1202
|
+
return _chunkGO74ODU3js.encode.call(void 0, data2, {
|
|
1160
1203
|
signal: controller.signal,
|
|
1161
1204
|
onComplete: clearStreamTimeout,
|
|
1162
1205
|
plugins: [
|
|
@@ -1165,12 +1208,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1165
1208
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1166
1209
|
return ["SanitizedError", name, message, stack];
|
|
1167
1210
|
}
|
|
1168
|
-
if (value instanceof
|
|
1211
|
+
if (value instanceof _chunkGO74ODU3js.ErrorResponseImpl) {
|
|
1169
1212
|
let { data: data3, status, statusText } = value;
|
|
1170
1213
|
return ["ErrorResponse", data3, status, statusText];
|
|
1171
1214
|
}
|
|
1172
|
-
if (value && typeof value === "object" &&
|
|
1173
|
-
return ["SingleFetchRedirect", value[
|
|
1215
|
+
if (value && typeof value === "object" && _chunkGO74ODU3js.SingleFetchRedirectSymbol in value) {
|
|
1216
|
+
return ["SingleFetchRedirect", value[_chunkGO74ODU3js.SingleFetchRedirectSymbol]];
|
|
1174
1217
|
}
|
|
1175
1218
|
}
|
|
1176
1219
|
],
|
|
@@ -1193,7 +1236,7 @@ function derive(build, mode) {
|
|
|
1193
1236
|
let routes = createRoutes(build.routes);
|
|
1194
1237
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1195
1238
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1196
|
-
let staticHandler =
|
|
1239
|
+
let staticHandler = _chunkGO74ODU3js.createStaticHandler.call(void 0, dataRoutes, {
|
|
1197
1240
|
basename: build.basename,
|
|
1198
1241
|
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1199
1242
|
});
|
|
@@ -1201,7 +1244,7 @@ function derive(build, mode) {
|
|
|
1201
1244
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1202
1245
|
console.error(
|
|
1203
1246
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1204
|
-
|
|
1247
|
+
_chunkGO74ODU3js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1205
1248
|
);
|
|
1206
1249
|
}
|
|
1207
1250
|
});
|
|
@@ -1210,7 +1253,7 @@ function derive(build, mode) {
|
|
|
1210
1253
|
let loadContext;
|
|
1211
1254
|
let handleError = (error) => {
|
|
1212
1255
|
if (mode === "development" /* Development */) {
|
|
1213
|
-
_optionalChain([getDevServerHooks, 'call',
|
|
1256
|
+
_optionalChain([getDevServerHooks, 'call', _15 => _15(), 'optionalAccess', _16 => _16.processRequestError, 'optionalCall', _17 => _17(error)]);
|
|
1214
1257
|
}
|
|
1215
1258
|
errorHandler(error, {
|
|
1216
1259
|
context: loadContext,
|
|
@@ -1219,47 +1262,34 @@ function derive(build, mode) {
|
|
|
1219
1262
|
});
|
|
1220
1263
|
};
|
|
1221
1264
|
if (build.future.v8_middleware) {
|
|
1222
|
-
if (initialContext && !(initialContext instanceof
|
|
1265
|
+
if (initialContext && !(initialContext instanceof _chunkGO74ODU3js.RouterContextProvider)) {
|
|
1223
1266
|
let error = new Error(
|
|
1224
1267
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1225
1268
|
);
|
|
1226
1269
|
handleError(error);
|
|
1227
1270
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1228
1271
|
}
|
|
1229
|
-
loadContext = initialContext || new (0,
|
|
1272
|
+
loadContext = initialContext || new (0, _chunkGO74ODU3js.RouterContextProvider)();
|
|
1230
1273
|
} else {
|
|
1231
1274
|
loadContext = initialContext || {};
|
|
1232
1275
|
}
|
|
1233
|
-
let
|
|
1234
|
-
let
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
} else {
|
|
1240
|
-
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1241
|
-
}
|
|
1242
|
-
} else {
|
|
1243
|
-
if (_chunkXOLAXE2Zjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1244
|
-
normalizedPath = normalizedBasename;
|
|
1245
|
-
} else if (normalizedPath.endsWith(".data")) {
|
|
1246
|
-
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1247
|
-
}
|
|
1248
|
-
if (_chunkXOLAXE2Zjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1249
|
-
normalizedPath = normalizedPath.slice(0, -1);
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1276
|
+
let requestUrl = new URL(request.url);
|
|
1277
|
+
let normalizedPathname = getNormalizedPath(
|
|
1278
|
+
request,
|
|
1279
|
+
build.basename,
|
|
1280
|
+
build.future
|
|
1281
|
+
).pathname;
|
|
1252
1282
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1253
1283
|
if (!build.ssr) {
|
|
1254
|
-
let decodedPath = decodeURI(
|
|
1255
|
-
if (
|
|
1256
|
-
let strippedPath =
|
|
1284
|
+
let decodedPath = decodeURI(normalizedPathname);
|
|
1285
|
+
if (build.basename && build.basename !== "/") {
|
|
1286
|
+
let strippedPath = _chunkGO74ODU3js.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1257
1287
|
if (strippedPath == null) {
|
|
1258
1288
|
errorHandler(
|
|
1259
|
-
new (0,
|
|
1289
|
+
new (0, _chunkGO74ODU3js.ErrorResponseImpl)(
|
|
1260
1290
|
404,
|
|
1261
1291
|
"Not Found",
|
|
1262
|
-
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${
|
|
1292
|
+
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
1263
1293
|
),
|
|
1264
1294
|
{
|
|
1265
1295
|
context: loadContext,
|
|
@@ -1277,9 +1307,9 @@ function derive(build, mode) {
|
|
|
1277
1307
|
if (build.prerender.length === 0) {
|
|
1278
1308
|
isSpaMode = true;
|
|
1279
1309
|
} else if (!build.prerender.includes(decodedPath) && !build.prerender.includes(decodedPath + "/")) {
|
|
1280
|
-
if (
|
|
1310
|
+
if (requestUrl.pathname.endsWith(".data")) {
|
|
1281
1311
|
errorHandler(
|
|
1282
|
-
new (0,
|
|
1312
|
+
new (0, _chunkGO74ODU3js.ErrorResponseImpl)(
|
|
1283
1313
|
404,
|
|
1284
1314
|
"Not Found",
|
|
1285
1315
|
`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.`
|
|
@@ -1299,30 +1329,28 @@ function derive(build, mode) {
|
|
|
1299
1329
|
}
|
|
1300
1330
|
}
|
|
1301
1331
|
}
|
|
1302
|
-
let manifestUrl =
|
|
1332
|
+
let manifestUrl = _chunkGO74ODU3js.getManifestPath.call(void 0,
|
|
1303
1333
|
build.routeDiscovery.manifestPath,
|
|
1304
|
-
|
|
1334
|
+
build.basename
|
|
1305
1335
|
);
|
|
1306
|
-
if (
|
|
1336
|
+
if (requestUrl.pathname === manifestUrl) {
|
|
1307
1337
|
try {
|
|
1308
|
-
let res = await handleManifestRequest(build, routes,
|
|
1338
|
+
let res = await handleManifestRequest(build, routes, requestUrl);
|
|
1309
1339
|
return res;
|
|
1310
1340
|
} catch (e) {
|
|
1311
1341
|
handleError(e);
|
|
1312
1342
|
return new Response("Unknown Server Error", { status: 500 });
|
|
1313
1343
|
}
|
|
1314
1344
|
}
|
|
1315
|
-
let matches = matchServerRoutes(routes,
|
|
1345
|
+
let matches = matchServerRoutes(routes, normalizedPathname, build.basename);
|
|
1316
1346
|
if (matches && matches.length > 0) {
|
|
1317
1347
|
Object.assign(params, matches[0].params);
|
|
1318
1348
|
}
|
|
1319
1349
|
let response;
|
|
1320
|
-
if (
|
|
1321
|
-
let handlerUrl = new URL(request.url);
|
|
1322
|
-
handlerUrl.pathname = normalizedPath;
|
|
1350
|
+
if (requestUrl.pathname.endsWith(".data")) {
|
|
1323
1351
|
let singleFetchMatches = matchServerRoutes(
|
|
1324
1352
|
routes,
|
|
1325
|
-
|
|
1353
|
+
normalizedPathname,
|
|
1326
1354
|
build.basename
|
|
1327
1355
|
);
|
|
1328
1356
|
response = await handleSingleFetchRequest(
|
|
@@ -1330,11 +1358,11 @@ function derive(build, mode) {
|
|
|
1330
1358
|
build,
|
|
1331
1359
|
staticHandler,
|
|
1332
1360
|
request,
|
|
1333
|
-
|
|
1361
|
+
normalizedPathname,
|
|
1334
1362
|
loadContext,
|
|
1335
1363
|
handleError
|
|
1336
1364
|
);
|
|
1337
|
-
if (
|
|
1365
|
+
if (_chunkGO74ODU3js.isRedirectResponse.call(void 0, response)) {
|
|
1338
1366
|
response = generateSingleFetchRedirectResponse(
|
|
1339
1367
|
response,
|
|
1340
1368
|
request,
|
|
@@ -1348,7 +1376,7 @@ function derive(build, mode) {
|
|
|
1348
1376
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1349
1377
|
request
|
|
1350
1378
|
});
|
|
1351
|
-
if (
|
|
1379
|
+
if (_chunkGO74ODU3js.isRedirectResponse.call(void 0, response)) {
|
|
1352
1380
|
response = generateSingleFetchRedirectResponse(
|
|
1353
1381
|
response,
|
|
1354
1382
|
request,
|
|
@@ -1368,12 +1396,12 @@ function derive(build, mode) {
|
|
|
1368
1396
|
handleError
|
|
1369
1397
|
);
|
|
1370
1398
|
} else {
|
|
1371
|
-
let { pathname } =
|
|
1399
|
+
let { pathname } = requestUrl;
|
|
1372
1400
|
let criticalCss = void 0;
|
|
1373
1401
|
if (build.unstable_getCriticalCss) {
|
|
1374
1402
|
criticalCss = await build.unstable_getCriticalCss({ pathname });
|
|
1375
|
-
} else if (mode === "development" /* Development */ && _optionalChain([getDevServerHooks, 'call',
|
|
1376
|
-
criticalCss = await _optionalChain([getDevServerHooks, 'call',
|
|
1403
|
+
} else if (mode === "development" /* Development */ && _optionalChain([getDevServerHooks, 'call', _18 => _18(), 'optionalAccess', _19 => _19.getCriticalCss])) {
|
|
1404
|
+
criticalCss = await _optionalChain([getDevServerHooks, 'call', _20 => _20(), 'optionalAccess', _21 => _21.getCriticalCss, 'optionalCall', _22 => _22(pathname)]);
|
|
1377
1405
|
}
|
|
1378
1406
|
response = await handleDocumentRequest(
|
|
1379
1407
|
serverMode,
|
|
@@ -1396,7 +1424,7 @@ function derive(build, mode) {
|
|
|
1396
1424
|
return response;
|
|
1397
1425
|
};
|
|
1398
1426
|
if (build.entry.module.unstable_instrumentations) {
|
|
1399
|
-
requestHandler =
|
|
1427
|
+
requestHandler = _chunkGO74ODU3js.instrumentHandler.call(void 0,
|
|
1400
1428
|
requestHandler,
|
|
1401
1429
|
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1402
1430
|
);
|
|
@@ -1481,7 +1509,9 @@ async function handleManifestRequest(build, routes, url) {
|
|
|
1481
1509
|
}
|
|
1482
1510
|
return new Response("Invalid Request", { status: 400 });
|
|
1483
1511
|
}
|
|
1484
|
-
async function handleSingleFetchRequest(serverMode, build, staticHandler, request,
|
|
1512
|
+
async function handleSingleFetchRequest(serverMode, build, staticHandler, request, normalizedPath, loadContext, handleError) {
|
|
1513
|
+
let handlerUrl = new URL(request.url);
|
|
1514
|
+
handlerUrl.pathname = normalizedPath;
|
|
1485
1515
|
let response = request.method !== "GET" ? await singleFetchAction(
|
|
1486
1516
|
build,
|
|
1487
1517
|
serverMode,
|
|
@@ -1519,7 +1549,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1519
1549
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1520
1550
|
try {
|
|
1521
1551
|
let innerResult = await query(request);
|
|
1522
|
-
if (!
|
|
1552
|
+
if (!_chunkGO74ODU3js.isResponse.call(void 0, innerResult)) {
|
|
1523
1553
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1524
1554
|
}
|
|
1525
1555
|
return innerResult;
|
|
@@ -1527,9 +1557,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1527
1557
|
handleError(error);
|
|
1528
1558
|
return new Response(null, { status: 500 });
|
|
1529
1559
|
}
|
|
1530
|
-
} : void 0
|
|
1560
|
+
} : void 0,
|
|
1561
|
+
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1531
1562
|
});
|
|
1532
|
-
if (!
|
|
1563
|
+
if (!_chunkGO74ODU3js.isResponse.call(void 0, result)) {
|
|
1533
1564
|
result = await renderHtml(result, isSpaMode);
|
|
1534
1565
|
}
|
|
1535
1566
|
return result;
|
|
@@ -1544,7 +1575,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1544
1575
|
}
|
|
1545
1576
|
if (context.errors) {
|
|
1546
1577
|
Object.values(context.errors).forEach((err) => {
|
|
1547
|
-
if (!
|
|
1578
|
+
if (!_chunkGO74ODU3js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1548
1579
|
handleError(err);
|
|
1549
1580
|
}
|
|
1550
1581
|
});
|
|
@@ -1596,10 +1627,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1596
1627
|
} catch (error) {
|
|
1597
1628
|
handleError(error);
|
|
1598
1629
|
let errorForSecondRender = error;
|
|
1599
|
-
if (
|
|
1630
|
+
if (_chunkGO74ODU3js.isResponse.call(void 0, error)) {
|
|
1600
1631
|
try {
|
|
1601
1632
|
let data2 = await unwrapResponse(error);
|
|
1602
|
-
errorForSecondRender = new (0,
|
|
1633
|
+
errorForSecondRender = new (0, _chunkGO74ODU3js.ErrorResponseImpl)(
|
|
1603
1634
|
error.status,
|
|
1604
1635
|
error.statusText,
|
|
1605
1636
|
data2
|
|
@@ -1607,7 +1638,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1607
1638
|
} catch (e) {
|
|
1608
1639
|
}
|
|
1609
1640
|
}
|
|
1610
|
-
context =
|
|
1641
|
+
context = _chunkGO74ODU3js.getStaticContextFromError.call(void 0,
|
|
1611
1642
|
staticHandler.dataRoutes,
|
|
1612
1643
|
context,
|
|
1613
1644
|
errorForSecondRender
|
|
@@ -1659,14 +1690,15 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1659
1690
|
} catch (error) {
|
|
1660
1691
|
return handleQueryRouteError(error);
|
|
1661
1692
|
}
|
|
1662
|
-
} : void 0
|
|
1693
|
+
} : void 0,
|
|
1694
|
+
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1663
1695
|
});
|
|
1664
1696
|
return handleQueryRouteResult(result);
|
|
1665
1697
|
} catch (error) {
|
|
1666
1698
|
return handleQueryRouteError(error);
|
|
1667
1699
|
}
|
|
1668
1700
|
function handleQueryRouteResult(result) {
|
|
1669
|
-
if (
|
|
1701
|
+
if (_chunkGO74ODU3js.isResponse.call(void 0, result)) {
|
|
1670
1702
|
return result;
|
|
1671
1703
|
}
|
|
1672
1704
|
if (typeof result === "string") {
|
|
@@ -1675,10 +1707,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1675
1707
|
return Response.json(result);
|
|
1676
1708
|
}
|
|
1677
1709
|
function handleQueryRouteError(error) {
|
|
1678
|
-
if (
|
|
1710
|
+
if (_chunkGO74ODU3js.isResponse.call(void 0, error)) {
|
|
1679
1711
|
return error;
|
|
1680
1712
|
}
|
|
1681
|
-
if (
|
|
1713
|
+
if (_chunkGO74ODU3js.isRouteErrorResponse.call(void 0, error)) {
|
|
1682
1714
|
handleError(error);
|
|
1683
1715
|
return errorResponseToJson(error, serverMode);
|
|
1684
1716
|
}
|
|
@@ -1772,7 +1804,7 @@ function createSessionStorage({
|
|
|
1772
1804
|
updateData,
|
|
1773
1805
|
deleteData
|
|
1774
1806
|
}) {
|
|
1775
|
-
let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess',
|
|
1807
|
+
let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess', _23 => _23.name]) || "__session", cookieArg);
|
|
1776
1808
|
warnOnceAboutSigningSessionCookie(cookie);
|
|
1777
1809
|
return {
|
|
1778
1810
|
async getSession(cookieHeader, options) {
|
|
@@ -1782,7 +1814,7 @@ function createSessionStorage({
|
|
|
1782
1814
|
},
|
|
1783
1815
|
async commitSession(session, options) {
|
|
1784
1816
|
let { id, data: data2 } = session;
|
|
1785
|
-
let expires = _optionalChain([options, 'optionalAccess',
|
|
1817
|
+
let expires = _optionalChain([options, 'optionalAccess', _24 => _24.maxAge]) != null ? new Date(Date.now() + options.maxAge * 1e3) : _optionalChain([options, 'optionalAccess', _25 => _25.expires]) != null ? options.expires : cookie.expires;
|
|
1786
1818
|
if (id) {
|
|
1787
1819
|
await updateData(id, data2, expires);
|
|
1788
1820
|
} else {
|
|
@@ -1801,7 +1833,7 @@ function createSessionStorage({
|
|
|
1801
1833
|
};
|
|
1802
1834
|
}
|
|
1803
1835
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1804
|
-
|
|
1836
|
+
_chunkGO74ODU3js.warnOnce.call(void 0,
|
|
1805
1837
|
cookie.isSigned,
|
|
1806
1838
|
`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.`
|
|
1807
1839
|
);
|
|
@@ -1809,7 +1841,7 @@ function warnOnceAboutSigningSessionCookie(cookie) {
|
|
|
1809
1841
|
|
|
1810
1842
|
// lib/server-runtime/sessions/cookieStorage.ts
|
|
1811
1843
|
function createCookieSessionStorage({ cookie: cookieArg } = {}) {
|
|
1812
|
-
let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess',
|
|
1844
|
+
let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess', _26 => _26.name]) || "__session", cookieArg);
|
|
1813
1845
|
warnOnceAboutSigningSessionCookie(cookie);
|
|
1814
1846
|
return {
|
|
1815
1847
|
async getSession(cookieHeader, options) {
|
|
@@ -1873,7 +1905,7 @@ function href(path, ...args) {
|
|
|
1873
1905
|
// same regex as in .\router\utils.ts: compilePath().
|
|
1874
1906
|
(_, param, questionMark) => {
|
|
1875
1907
|
const isRequired = questionMark === void 0;
|
|
1876
|
-
const value = _optionalChain([params, 'optionalAccess',
|
|
1908
|
+
const value = _optionalChain([params, 'optionalAccess', _27 => _27[param]]);
|
|
1877
1909
|
if (isRequired && value === void 0) {
|
|
1878
1910
|
throw new Error(
|
|
1879
1911
|
`Path '${path}' requires param '${param}' but it was not provided`
|
|
@@ -1883,7 +1915,7 @@ function href(path, ...args) {
|
|
|
1883
1915
|
}
|
|
1884
1916
|
);
|
|
1885
1917
|
if (path.endsWith("*")) {
|
|
1886
|
-
const value = _optionalChain([params, 'optionalAccess',
|
|
1918
|
+
const value = _optionalChain([params, 'optionalAccess', _28 => _28["*"]]);
|
|
1887
1919
|
if (value !== void 0) {
|
|
1888
1920
|
result += "/" + value;
|
|
1889
1921
|
}
|
|
@@ -2081,14 +2113,14 @@ async function routeRSCServerRequest({
|
|
|
2081
2113
|
const payload = await createFromReadableStream(
|
|
2082
2114
|
detectRedirectResponse.body
|
|
2083
2115
|
);
|
|
2084
|
-
if (serverResponse.status ===
|
|
2116
|
+
if (serverResponse.status === _chunkGO74ODU3js.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2085
2117
|
const headers2 = new Headers(serverResponse.headers);
|
|
2086
2118
|
headers2.delete("Content-Encoding");
|
|
2087
2119
|
headers2.delete("Content-Length");
|
|
2088
2120
|
headers2.delete("Content-Type");
|
|
2089
2121
|
headers2.delete("X-Remix-Response");
|
|
2090
2122
|
headers2.set("Location", payload.location);
|
|
2091
|
-
return new Response(_optionalChain([serverResponseB, 'optionalAccess',
|
|
2123
|
+
return new Response(_optionalChain([serverResponseB, 'optionalAccess', _29 => _29.body]) || "", {
|
|
2092
2124
|
headers: headers2,
|
|
2093
2125
|
status: payload.status,
|
|
2094
2126
|
statusText: serverResponse.statusText
|
|
@@ -2100,11 +2132,11 @@ async function routeRSCServerRequest({
|
|
|
2100
2132
|
let html = await renderHTML(getPayload, {
|
|
2101
2133
|
onError(error) {
|
|
2102
2134
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2103
|
-
renderRedirect =
|
|
2135
|
+
renderRedirect = _chunkGO74ODU3js.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2104
2136
|
if (renderRedirect) {
|
|
2105
2137
|
return error.digest;
|
|
2106
2138
|
}
|
|
2107
|
-
let routeErrorResponse =
|
|
2139
|
+
let routeErrorResponse = _chunkGO74ODU3js.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2108
2140
|
if (routeErrorResponse) {
|
|
2109
2141
|
renderError = routeErrorResponse;
|
|
2110
2142
|
status = routeErrorResponse.status;
|
|
@@ -2136,7 +2168,7 @@ async function routeRSCServerRequest({
|
|
|
2136
2168
|
if (renderRedirect) {
|
|
2137
2169
|
controller.enqueue(
|
|
2138
2170
|
new TextEncoder().encode(
|
|
2139
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2171
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkGO74ODU3js.escapeHtml.call(void 0, renderRedirect.location)}"/>`
|
|
2140
2172
|
)
|
|
2141
2173
|
);
|
|
2142
2174
|
}
|
|
@@ -2149,7 +2181,7 @@ async function routeRSCServerRequest({
|
|
|
2149
2181
|
headers
|
|
2150
2182
|
});
|
|
2151
2183
|
}
|
|
2152
|
-
if (!_optionalChain([serverResponseB, 'optionalAccess',
|
|
2184
|
+
if (!_optionalChain([serverResponseB, 'optionalAccess', _30 => _30.body])) {
|
|
2153
2185
|
throw new Error("Failed to clone server response");
|
|
2154
2186
|
}
|
|
2155
2187
|
const body2 = html.pipeThrough(injectRSCPayload(serverResponseB.body)).pipeThrough(redirectTransform);
|
|
@@ -2172,7 +2204,7 @@ async function routeRSCServerRequest({
|
|
|
2172
2204
|
}
|
|
2173
2205
|
try {
|
|
2174
2206
|
reason = _nullishCoalesce(renderError, () => ( reason));
|
|
2175
|
-
let [status, statusText] =
|
|
2207
|
+
let [status, statusText] = _chunkGO74ODU3js.isRouteErrorResponse.call(void 0, reason) ? [reason.status, reason.statusText] : [500, ""];
|
|
2176
2208
|
let retryRedirect;
|
|
2177
2209
|
let reactHeaders = new Headers();
|
|
2178
2210
|
const html = await renderHTML(
|
|
@@ -2209,11 +2241,11 @@ async function routeRSCServerRequest({
|
|
|
2209
2241
|
{
|
|
2210
2242
|
onError(error) {
|
|
2211
2243
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2212
|
-
retryRedirect =
|
|
2244
|
+
retryRedirect = _chunkGO74ODU3js.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2213
2245
|
if (retryRedirect) {
|
|
2214
2246
|
return error.digest;
|
|
2215
2247
|
}
|
|
2216
|
-
let routeErrorResponse =
|
|
2248
|
+
let routeErrorResponse = _chunkGO74ODU3js.decodeRouteErrorResponseDigest.call(void 0,
|
|
2217
2249
|
error.digest
|
|
2218
2250
|
);
|
|
2219
2251
|
if (routeErrorResponse) {
|
|
@@ -2247,7 +2279,7 @@ async function routeRSCServerRequest({
|
|
|
2247
2279
|
if (retryRedirect) {
|
|
2248
2280
|
controller.enqueue(
|
|
2249
2281
|
new TextEncoder().encode(
|
|
2250
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2282
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkGO74ODU3js.escapeHtml.call(void 0, retryRedirect.location)}"/>`
|
|
2251
2283
|
)
|
|
2252
2284
|
);
|
|
2253
2285
|
}
|
|
@@ -2260,7 +2292,7 @@ async function routeRSCServerRequest({
|
|
|
2260
2292
|
headers
|
|
2261
2293
|
});
|
|
2262
2294
|
}
|
|
2263
|
-
if (!_optionalChain([serverResponseB, 'optionalAccess',
|
|
2295
|
+
if (!_optionalChain([serverResponseB, 'optionalAccess', _31 => _31.body])) {
|
|
2264
2296
|
throw new Error("Failed to clone server response");
|
|
2265
2297
|
}
|
|
2266
2298
|
const body2 = html.pipeThrough(injectRSCPayload(serverResponseB.body)).pipeThrough(retryRedirectTransform);
|
|
@@ -2288,7 +2320,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2288
2320
|
if (payload.type !== "render") return null;
|
|
2289
2321
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2290
2322
|
for (const match of payload.matches) {
|
|
2291
|
-
if (
|
|
2323
|
+
if (_chunkGO74ODU3js.shouldHydrateRouteLoader.call(void 0,
|
|
2292
2324
|
match.id,
|
|
2293
2325
|
match.clientLoader,
|
|
2294
2326
|
match.hasLoader,
|
|
@@ -2328,7 +2360,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2328
2360
|
}
|
|
2329
2361
|
}))
|
|
2330
2362
|
};
|
|
2331
|
-
const router =
|
|
2363
|
+
const router = _chunkHPFFRPKKjs.createStaticRouter.call(void 0,
|
|
2332
2364
|
payload.matches.reduceRight((previous, match) => {
|
|
2333
2365
|
const route = {
|
|
2334
2366
|
id: match.id,
|
|
@@ -2356,7 +2388,9 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2356
2388
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2357
2389
|
v8_middleware: false,
|
|
2358
2390
|
unstable_subResourceIntegrity: false,
|
|
2359
|
-
unstable_trailingSlashAwareDataRequests: true
|
|
2391
|
+
unstable_trailingSlashAwareDataRequests: true,
|
|
2392
|
+
// always on for RSC
|
|
2393
|
+
unstable_passThroughRequests: true
|
|
2360
2394
|
// always on for RSC
|
|
2361
2395
|
},
|
|
2362
2396
|
isSpaMode: false,
|
|
@@ -2372,10 +2406,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2372
2406
|
}
|
|
2373
2407
|
},
|
|
2374
2408
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2375
|
-
routeModules:
|
|
2409
|
+
routeModules: _chunkLLP6DRWXjs.createRSCRouteModules.call(void 0, payload)
|
|
2376
2410
|
};
|
|
2377
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2378
|
-
|
|
2411
|
+
return /* @__PURE__ */ React3.createElement(_chunkGO74ODU3js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkLLP6DRWXjs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkGO74ODU3js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2412
|
+
_chunkHPFFRPKKjs.StaticRouterProvider,
|
|
2379
2413
|
{
|
|
2380
2414
|
context,
|
|
2381
2415
|
router,
|
|
@@ -2398,7 +2432,7 @@ function deserializeErrors(errors) {
|
|
|
2398
2432
|
let serialized = {};
|
|
2399
2433
|
for (let [key, val] of entries) {
|
|
2400
2434
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2401
|
-
serialized[key] = new (0,
|
|
2435
|
+
serialized[key] = new (0, _chunkGO74ODU3js.ErrorResponseImpl)(
|
|
2402
2436
|
val.status,
|
|
2403
2437
|
val.statusText,
|
|
2404
2438
|
val.data,
|
|
@@ -2557,4 +2591,4 @@ function deserializeErrors(errors) {
|
|
|
2557
2591
|
|
|
2558
2592
|
|
|
2559
2593
|
|
|
2560
|
-
exports.Await =
|
|
2594
|
+
exports.Await = _chunkGO74ODU3js.Await; exports.BrowserRouter = _chunkHPFFRPKKjs.BrowserRouter; exports.Form = _chunkHPFFRPKKjs.Form; exports.HashRouter = _chunkHPFFRPKKjs.HashRouter; exports.IDLE_BLOCKER = _chunkGO74ODU3js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkGO74ODU3js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkGO74ODU3js.IDLE_NAVIGATION; exports.Link = _chunkHPFFRPKKjs.Link; exports.Links = _chunkGO74ODU3js.Links; exports.MemoryRouter = _chunkGO74ODU3js.MemoryRouter; exports.Meta = _chunkGO74ODU3js.Meta; exports.NavLink = _chunkHPFFRPKKjs.NavLink; exports.Navigate = _chunkGO74ODU3js.Navigate; exports.NavigationType = _chunkGO74ODU3js.Action; exports.Outlet = _chunkGO74ODU3js.Outlet; exports.PrefetchPageLinks = _chunkGO74ODU3js.PrefetchPageLinks; exports.Route = _chunkGO74ODU3js.Route; exports.Router = _chunkGO74ODU3js.Router; exports.RouterContextProvider = _chunkGO74ODU3js.RouterContextProvider; exports.RouterProvider = _chunkGO74ODU3js.RouterProvider; exports.Routes = _chunkGO74ODU3js.Routes; exports.Scripts = _chunkGO74ODU3js.Scripts; exports.ScrollRestoration = _chunkHPFFRPKKjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkHPFFRPKKjs.StaticRouter; exports.StaticRouterProvider = _chunkHPFFRPKKjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkGO74ODU3js.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkGO74ODU3js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkGO74ODU3js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkGO74ODU3js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkGO74ODU3js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkGO74ODU3js.FrameworkContext; exports.UNSAFE_LocationContext = _chunkGO74ODU3js.LocationContext; exports.UNSAFE_NavigationContext = _chunkGO74ODU3js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkLLP6DRWXjs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkGO74ODU3js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkGO74ODU3js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkGO74ODU3js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkGO74ODU3js.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkGO74ODU3js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkGO74ODU3js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkGO74ODU3js.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkGO74ODU3js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkGO74ODU3js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkGO74ODU3js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkGO74ODU3js.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkGO74ODU3js.createMemoryHistory; exports.UNSAFE_createRouter = _chunkGO74ODU3js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkGO74ODU3js.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunkLLP6DRWXjs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkGO74ODU3js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkGO74ODU3js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkGO74ODU3js.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkGO74ODU3js.invariant; exports.UNSAFE_mapRouteProperties = _chunkGO74ODU3js.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkGO74ODU3js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkGO74ODU3js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkHPFFRPKKjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkGO74ODU3js.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkGO74ODU3js.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkGO74ODU3js.withHydrateFallbackProps; exports.createBrowserRouter = _chunkHPFFRPKKjs.createBrowserRouter; exports.createContext = _chunkGO74ODU3js.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkHPFFRPKKjs.createHashRouter; exports.createMemoryRouter = _chunkGO74ODU3js.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkGO74ODU3js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkGO74ODU3js.createRoutesFromChildren; exports.createRoutesFromElements = _chunkGO74ODU3js.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkHPFFRPKKjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkHPFFRPKKjs.createStaticHandler; exports.createStaticRouter = _chunkHPFFRPKKjs.createStaticRouter; exports.data = _chunkGO74ODU3js.data; exports.generatePath = _chunkGO74ODU3js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkGO74ODU3js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkGO74ODU3js.matchPath; exports.matchRoutes = _chunkGO74ODU3js.matchRoutes; exports.parsePath = _chunkGO74ODU3js.parsePath; exports.redirect = _chunkGO74ODU3js.redirect; exports.redirectDocument = _chunkGO74ODU3js.redirectDocument; exports.renderMatches = _chunkGO74ODU3js.renderMatches; exports.replace = _chunkGO74ODU3js.replace; exports.resolvePath = _chunkGO74ODU3js.resolvePath; exports.unstable_HistoryRouter = _chunkHPFFRPKKjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkHPFFRPKKjs.usePrompt; exports.unstable_useRoute = _chunkGO74ODU3js.useRoute; exports.useActionData = _chunkGO74ODU3js.useActionData; exports.useAsyncError = _chunkGO74ODU3js.useAsyncError; exports.useAsyncValue = _chunkGO74ODU3js.useAsyncValue; exports.useBeforeUnload = _chunkHPFFRPKKjs.useBeforeUnload; exports.useBlocker = _chunkGO74ODU3js.useBlocker; exports.useFetcher = _chunkHPFFRPKKjs.useFetcher; exports.useFetchers = _chunkHPFFRPKKjs.useFetchers; exports.useFormAction = _chunkHPFFRPKKjs.useFormAction; exports.useHref = _chunkGO74ODU3js.useHref; exports.useInRouterContext = _chunkGO74ODU3js.useInRouterContext; exports.useLinkClickHandler = _chunkHPFFRPKKjs.useLinkClickHandler; exports.useLoaderData = _chunkGO74ODU3js.useLoaderData; exports.useLocation = _chunkGO74ODU3js.useLocation; exports.useMatch = _chunkGO74ODU3js.useMatch; exports.useMatches = _chunkGO74ODU3js.useMatches; exports.useNavigate = _chunkGO74ODU3js.useNavigate; exports.useNavigation = _chunkGO74ODU3js.useNavigation; exports.useNavigationType = _chunkGO74ODU3js.useNavigationType; exports.useOutlet = _chunkGO74ODU3js.useOutlet; exports.useOutletContext = _chunkGO74ODU3js.useOutletContext; exports.useParams = _chunkGO74ODU3js.useParams; exports.useResolvedPath = _chunkGO74ODU3js.useResolvedPath; exports.useRevalidator = _chunkGO74ODU3js.useRevalidator; exports.useRouteError = _chunkGO74ODU3js.useRouteError; exports.useRouteLoaderData = _chunkGO74ODU3js.useRouteLoaderData; exports.useRoutes = _chunkGO74ODU3js.useRoutes; exports.useSearchParams = _chunkHPFFRPKKjs.useSearchParams; exports.useSubmit = _chunkHPFFRPKKjs.useSubmit; exports.useViewTransitionState = _chunkHPFFRPKKjs.useViewTransitionState;
|