@workflow/web 4.1.34 → 4.1.35

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 (29) hide show
  1. package/build/client/assets/{encryption-Cu4jq70Y.js → encryption-BhH0xZid.js} +2 -2
  2. package/build/client/assets/{entry.client-C7XgFTHI.js → entry.client-CaUKWFDB.js} +13 -35
  3. package/build/client/assets/{highlighted-body-B3W2YXNL-CK5bxjZc.js → highlighted-body-B3W2YXNL-D5wXP22M.js} +2 -2
  4. package/build/client/assets/{home-vGjXNC_q.js → home-CjokEfcx.js} +92 -164
  5. package/build/client/assets/{index-BQ-Xa8kF.js → index-BbkkdbNz.js} +78 -149
  6. package/build/client/assets/{index-CXBr7N7m.js → index-DY3Cy2uF.js} +20 -23
  7. package/build/client/assets/{manifest-5d325d67.js → manifest-cbe27963.js} +1 -1
  8. package/build/client/assets/{mermaid-3ZIDBTTL-CCVNMOf9.js → mermaid-3ZIDBTTL-8p93TMNC.js} +315 -479
  9. package/build/client/assets/mermaid-3ZIDBTTL-DHICBbcE.css +1 -0
  10. package/build/client/assets/{root-DjobWPwY.js → root-D-ZCwNhI.js} +5 -35
  11. package/build/client/assets/root-DzrclYrK.css +1 -0
  12. package/build/client/assets/{run-detail-nLEl00wq.js → run-detail-H0o7UsyU.js} +141 -205
  13. package/build/client/assets/server-build-DMZyIeNn.css +1 -0
  14. package/build/client/assets/{worker-CqHKTA7D.js → worker-DxRAeS-i.js} +2 -2
  15. package/build/client/assets/{workflow-graph-viewer-CTw33ANm.js → workflow-graph-viewer-C-MZ2XPV.js} +466 -723
  16. package/build/server/assets/{app-CYvC9qzx.js → app-BX9dMsx4.js} +67 -153
  17. package/build/server/assets/{highlighted-body-B3W2YXNL-rgouBaKE.js → highlighted-body-B3W2YXNL-CHc9_Xzp.js} +2 -2
  18. package/build/server/assets/{index-BUlN7QFn.js → index-BC_EEwAS.js} +2 -2
  19. package/build/server/assets/{index-DTsZ56KK.js → index-BNN2zck_.js} +3 -3
  20. package/build/server/assets/{index-CMfOrLiJ.js → index-C-y3EhAf.js} +25 -32
  21. package/build/server/assets/{mermaid-3ZIDBTTL-DrSJagSv.js → mermaid-3ZIDBTTL-CP_u5jLd.js} +2 -2
  22. package/build/server/assets/{server-build-Bx0fBara.js → server-build-C0EUGBN0.js} +6483 -7670
  23. package/build/server/assets/{token-3JN9PPgD.js → token-DYdYwRhs.js} +6 -6
  24. package/build/server/assets/{token-util-Dq4hPEUy.js → token-util-BZHkMK_T.js} +2 -2
  25. package/build/server/index.js +1 -1
  26. package/package.json +4 -4
  27. package/build/client/assets/mermaid-3ZIDBTTL-yyHEMZs4.css +0 -1
  28. package/build/client/assets/root-BOS11TzD.css +0 -1
  29. package/build/client/assets/server-build-CNEy-GiI.css +0 -1
@@ -1,6 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
1
  import { createRequire as __wkfCreateRequire } from "node:module";
5
2
  if (typeof globalThis.require === "undefined") {
6
3
  globalThis.require = __wkfCreateRequire(import.meta.url);
@@ -32,20 +29,11 @@ function getDefaultExportFromCjs(x) {
32
29
  }
33
30
  var react = { exports: {} };
34
31
  var react_production = {};
35
- /**
36
- * @license React
37
- * react.production.js
38
- *
39
- * Copyright (c) Meta Platforms, Inc. and affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
32
  var hasRequiredReact_production;
45
33
  function requireReact_production() {
46
34
  if (hasRequiredReact_production) return react_production;
47
35
  hasRequiredReact_production = 1;
48
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
36
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
49
37
  function getIteratorFn(maybeIterable) {
50
38
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
51
39
  maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
@@ -472,15 +460,6 @@ function requireReact_production() {
472
460
  return react_production;
473
461
  }
474
462
  var react_development = { exports: {} };
475
- /**
476
- * @license React
477
- * react.development.js
478
- *
479
- * Copyright (c) Meta Platforms, Inc. and affiliates.
480
- *
481
- * This source code is licensed under the MIT license found in the
482
- * LICENSE file in the root directory of this source tree.
483
- */
484
463
  react_development.exports;
485
464
  var hasRequiredReact_development;
486
465
  function requireReact_development() {
@@ -932,8 +911,8 @@ function requireReact_development() {
932
911
  }
933
912
  }
934
913
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
935
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
936
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
914
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
915
+ var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
937
916
  isMounted: function() {
938
917
  return false;
939
918
  },
@@ -976,7 +955,7 @@ function requireReact_development() {
976
955
  deprecatedAPIs.constructor = PureComponent;
977
956
  assign(deprecatedAPIs, Component.prototype);
978
957
  deprecatedAPIs.isPureReactComponent = true;
979
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
958
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
980
959
  H: null,
981
960
  A: null,
982
961
  T: null,
@@ -1439,16 +1418,6 @@ const React = /* @__PURE__ */ _mergeNamespaces({
1439
1418
  __proto__: null,
1440
1419
  default: ReactExports
1441
1420
  }, [reactExports]);
1442
- /**
1443
- * react-router v7.18.4
1444
- *
1445
- * Copyright (c) Remix Software Inc.
1446
- *
1447
- * This source code is licensed under the MIT license found in the
1448
- * LICENSE.md file in the root directory of this source tree.
1449
- *
1450
- * @license MIT
1451
- */
1452
1421
  var __typeError = (msg) => {
1453
1422
  throw TypeError(msg);
1454
1423
  };
@@ -1746,8 +1715,7 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "",
1746
1715
  });
1747
1716
  };
1748
1717
  routes.forEach((route, index) => {
1749
- var _a;
1750
- if (route.path === "" || !((_a = route.path) == null ? void 0 : _a.includes("?"))) {
1718
+ if (route.path === "" || !route.path?.includes("?")) {
1751
1719
  flattenRoute(route, index);
1752
1720
  } else {
1753
1721
  for (let exploded of explodeOptionalSegments(route.path)) {
@@ -2171,7 +2139,7 @@ function parseToInfo(_to, basename) {
2171
2139
  to
2172
2140
  };
2173
2141
  }
2174
- var UninstrumentedSymbol = Symbol("Uninstrumented");
2142
+ var UninstrumentedSymbol = /* @__PURE__ */ Symbol("Uninstrumented");
2175
2143
  function getRouteInstrumentationUpdates(fns, route) {
2176
2144
  let aggregated = {
2177
2145
  lazy: [],
@@ -2468,7 +2436,7 @@ var IDLE_BLOCKER = {
2468
2436
  var defaultMapRouteProperties = (route) => ({
2469
2437
  hasErrorBoundary: Boolean(route.hasErrorBoundary)
2470
2438
  });
2471
- var ResetLoaderDataSymbol = Symbol("ResetLoaderData");
2439
+ var ResetLoaderDataSymbol = /* @__PURE__ */ Symbol("ResetLoaderData");
2472
2440
  function createStaticHandler(routes, opts) {
2473
2441
  invariant$1(
2474
2442
  routes.length > 0,
@@ -2476,12 +2444,12 @@ function createStaticHandler(routes, opts) {
2476
2444
  );
2477
2445
  let manifest = {};
2478
2446
  let basename = (opts ? opts.basename : null) || "/";
2479
- let _mapRouteProperties = (opts == null ? void 0 : opts.mapRouteProperties) || defaultMapRouteProperties;
2447
+ let _mapRouteProperties = opts?.mapRouteProperties || defaultMapRouteProperties;
2480
2448
  let mapRouteProperties2 = _mapRouteProperties;
2481
2449
  ({
2482
- ...opts == null ? void 0 : opts.future
2450
+ ...opts?.future
2483
2451
  });
2484
- if (opts == null ? void 0 : opts.instrumentations) {
2452
+ if (opts?.instrumentations) {
2485
2453
  let instrumentations = opts.instrumentations;
2486
2454
  mapRouteProperties2 = (route) => {
2487
2455
  return {
@@ -2607,7 +2575,6 @@ function createStaticHandler(routes, opts) {
2607
2575
  return res;
2608
2576
  },
2609
2577
  async (error, routeId) => {
2610
- var _a;
2611
2578
  if (isRedirectResponse(error)) {
2612
2579
  return error;
2613
2580
  }
@@ -2641,9 +2608,9 @@ function createStaticHandler(routes, opts) {
2641
2608
  } else {
2642
2609
  let boundaryRouteId = skipLoaderErrorBubbling ? routeId : findNearestBoundary(
2643
2610
  matches,
2644
- ((_a = matches.find(
2611
+ matches.find(
2645
2612
  (m) => m.route.id === routeId || m.route.loader
2646
- )) == null ? void 0 : _a.route.id) || routeId
2613
+ )?.route.id || routeId
2647
2614
  ).route.id;
2648
2615
  let staticContext = {
2649
2616
  matches,
@@ -2995,11 +2962,11 @@ function createStaticHandler(routes, opts) {
2995
2962
  }
2996
2963
  async function loadRouteData(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, pendingActionResult) {
2997
2964
  let isRouteRequest = routeMatch != null;
2998
- if (isRouteRequest && !(routeMatch == null ? void 0 : routeMatch.route.loader) && !(routeMatch == null ? void 0 : routeMatch.route.lazy)) {
2965
+ if (isRouteRequest && !routeMatch?.route.loader && !routeMatch?.route.lazy) {
2999
2966
  throw getInternalRouterError(400, {
3000
2967
  method: request.method,
3001
2968
  pathname: new URL(request.url).pathname,
3002
- routeId: routeMatch == null ? void 0 : routeMatch.route.id
2969
+ routeId: routeMatch?.route.id
3003
2970
  });
3004
2971
  }
3005
2972
  let dsMatches;
@@ -3342,9 +3309,9 @@ function loadLazyRoute(route, type, manifest, mapRouteProperties2, lazyRouteProp
3342
3309
  }
3343
3310
  let lazyRoutePromise = lazyPropertyPromises.length > 0 ? Promise.all(lazyPropertyPromises).then(() => {
3344
3311
  }) : void 0;
3345
- lazyRoutePromise == null ? void 0 : lazyRoutePromise.catch(() => {
3312
+ lazyRoutePromise?.catch(() => {
3346
3313
  });
3347
- lazyHandlerPromise == null ? void 0 : lazyHandlerPromise.catch(() => {
3314
+ lazyHandlerPromise?.catch(() => {
3348
3315
  });
3349
3316
  return {
3350
3317
  lazyRoutePromise,
@@ -3510,8 +3477,8 @@ function getDataStrategyMatch(mapRouteProperties2, manifest, request, path, patt
3510
3477
  path,
3511
3478
  pattern,
3512
3479
  match,
3513
- lazyHandlerPromise: _lazyPromises == null ? void 0 : _lazyPromises.handler,
3514
- lazyRoutePromise: _lazyPromises == null ? void 0 : _lazyPromises.route,
3480
+ lazyHandlerPromise: _lazyPromises?.handler,
3481
+ lazyRoutePromise: _lazyPromises?.route,
3515
3482
  handlerOverride,
3516
3483
  scopedContext
3517
3484
  });
@@ -3553,14 +3520,8 @@ function getTargetedDataStrategyMatches(mapRouteProperties2, manifest, request,
3553
3520
  });
3554
3521
  }
3555
3522
  async function callDataStrategyImpl(dataStrategyImpl, request, path, matches, fetcherKey, scopedContext, isStaticHandler) {
3556
- if (matches.some((m) => {
3557
- var _a;
3558
- return (_a = m._lazyPromises) == null ? void 0 : _a.middleware;
3559
- })) {
3560
- await Promise.all(matches.map((m) => {
3561
- var _a;
3562
- return (_a = m._lazyPromises) == null ? void 0 : _a.middleware;
3563
- }));
3523
+ if (matches.some((m) => m._lazyPromises?.middleware)) {
3524
+ await Promise.all(matches.map((m) => m._lazyPromises?.middleware));
3564
3525
  }
3565
3526
  let dataStrategyArgs = {
3566
3527
  request,
@@ -3582,13 +3543,10 @@ async function callDataStrategyImpl(dataStrategyImpl, request, path, matches, fe
3582
3543
  });
3583
3544
  try {
3584
3545
  await Promise.all(
3585
- matches.flatMap((m) => {
3586
- var _a, _b;
3587
- return [
3588
- (_a = m._lazyPromises) == null ? void 0 : _a.handler,
3589
- (_b = m._lazyPromises) == null ? void 0 : _b.route
3590
- ];
3591
- })
3546
+ matches.flatMap((m) => [
3547
+ m._lazyPromises?.handler,
3548
+ m._lazyPromises?.route
3549
+ ])
3592
3550
  );
3593
3551
  } catch (e) {
3594
3552
  }
@@ -3705,7 +3663,6 @@ async function parseResponseBody(response) {
3705
3663
  return response.text();
3706
3664
  }
3707
3665
  async function convertDataStrategyResultToDataResult(dataStrategyResult) {
3708
- var _a, _b, _c, _d, _e;
3709
3666
  let { result, type } = dataStrategyResult;
3710
3667
  if (isResponse(result)) {
3711
3668
  let data2;
@@ -3735,15 +3692,15 @@ async function convertDataStrategyResultToDataResult(dataStrategyResult) {
3735
3692
  return {
3736
3693
  type: "error",
3737
3694
  error: result.data,
3738
- statusCode: (_a = result.init) == null ? void 0 : _a.status,
3739
- headers: ((_b = result.init) == null ? void 0 : _b.headers) ? new Headers(result.init.headers) : void 0
3695
+ statusCode: result.init?.status,
3696
+ headers: result.init?.headers ? new Headers(result.init.headers) : void 0
3740
3697
  };
3741
3698
  }
3742
3699
  return {
3743
3700
  type: "error",
3744
3701
  error: dataWithResponseInitToErrorResponse(result),
3745
3702
  statusCode: isRouteErrorResponse(result) ? result.status : void 0,
3746
- headers: ((_c = result.init) == null ? void 0 : _c.headers) ? new Headers(result.init.headers) : void 0
3703
+ headers: result.init?.headers ? new Headers(result.init.headers) : void 0
3747
3704
  };
3748
3705
  }
3749
3706
  return {
@@ -3756,8 +3713,8 @@ async function convertDataStrategyResultToDataResult(dataStrategyResult) {
3756
3713
  return {
3757
3714
  type: "data",
3758
3715
  data: result.data,
3759
- statusCode: (_d = result.init) == null ? void 0 : _d.status,
3760
- headers: ((_e = result.init) == null ? void 0 : _e.headers) ? new Headers(result.init.headers) : void 0
3716
+ statusCode: result.init?.status,
3717
+ headers: result.init?.headers ? new Headers(result.init.headers) : void 0
3761
3718
  };
3762
3719
  }
3763
3720
  return { type: "data", data: result };
@@ -3947,10 +3904,9 @@ function dataWithResponseInitToResponse(data2) {
3947
3904
  return Response.json(data2.data, data2.init ?? void 0);
3948
3905
  }
3949
3906
  function dataWithResponseInitToErrorResponse(data2) {
3950
- var _a, _b;
3951
3907
  return new ErrorResponseImpl(
3952
- ((_a = data2.init) == null ? void 0 : _a.status) ?? 500,
3953
- ((_b = data2.init) == null ? void 0 : _b.statusText) ?? "Internal Server Error",
3908
+ data2.init?.status ?? 500,
3909
+ data2.init?.statusText ?? "Internal Server Error",
3954
3910
  data2.data
3955
3911
  );
3956
3912
  }
@@ -4164,7 +4120,7 @@ function useOutlet(context) {
4164
4120
  function useParams() {
4165
4121
  let { matches } = reactExports.useContext(RouteContext);
4166
4122
  let routeMatch = matches[matches.length - 1];
4167
- return (routeMatch == null ? void 0 : routeMatch.params) ?? {};
4123
+ return routeMatch?.params ?? {};
4168
4124
  }
4169
4125
  function useResolvedPath(to, { relative } = {}) {
4170
4126
  let { matches } = reactExports.useContext(RouteContext);
@@ -4388,7 +4344,7 @@ function RenderedRoute({ routeContext, match, children }) {
4388
4344
  return /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, { value: routeContext }, children);
4389
4345
  }
4390
4346
  function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
4391
- let dataRouterState = dataRouterOpts == null ? void 0 : dataRouterOpts.state;
4347
+ let dataRouterState = dataRouterOpts?.state;
4392
4348
  if (matches == null) {
4393
4349
  if (!dataRouterState) {
4394
4350
  return null;
@@ -4402,10 +4358,10 @@ function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
4402
4358
  }
4403
4359
  }
4404
4360
  let renderedMatches = matches;
4405
- let errors = dataRouterState == null ? void 0 : dataRouterState.errors;
4361
+ let errors = dataRouterState?.errors;
4406
4362
  if (errors != null) {
4407
4363
  let errorIndex = renderedMatches.findIndex(
4408
- (m) => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== void 0
4364
+ (m) => m.route.id && errors?.[m.route.id] !== void 0
4409
4365
  );
4410
4366
  invariant$1(
4411
4367
  errorIndex >= 0,
@@ -4444,12 +4400,11 @@ function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
4444
4400
  }
4445
4401
  }
4446
4402
  }
4447
- let onErrorHandler = dataRouterOpts == null ? void 0 : dataRouterOpts.onError;
4403
+ let onErrorHandler = dataRouterOpts?.onError;
4448
4404
  let onError = dataRouterState && onErrorHandler ? (error, errorInfo) => {
4449
- var _a, _b;
4450
4405
  onErrorHandler(error, {
4451
4406
  location: dataRouterState.location,
4452
- params: ((_b = (_a = dataRouterState.matches) == null ? void 0 : _a[0]) == null ? void 0 : _b.params) ?? {},
4407
+ params: dataRouterState.matches?.[0]?.params ?? {},
4453
4408
  pattern: getRoutePattern(dataRouterState.matches),
4454
4409
  errorInfo
4455
4410
  });
@@ -4597,7 +4552,6 @@ function useActionData() {
4597
4552
  return state.actionData ? state.actionData[routeId] : void 0;
4598
4553
  }
4599
4554
  function useRouteError() {
4600
- var _a;
4601
4555
  let error = reactExports.useContext(RouteErrorContext);
4602
4556
  let state = useDataRouterState(
4603
4557
  "useRouteError"
@@ -4610,7 +4564,7 @@ function useRouteError() {
4610
4564
  if (error !== void 0) {
4611
4565
  return error;
4612
4566
  }
4613
- return (_a = state.errors) == null ? void 0 : _a[routeId];
4567
+ return state.errors?.[routeId];
4614
4568
  }
4615
4569
  function useNavigateStable() {
4616
4570
  let { router } = useDataRouterContext(
@@ -5620,7 +5574,7 @@ function encode(input, options) {
5620
5574
  await Promise.all(Object.values(encoder.deferred));
5621
5575
  await processingChain;
5622
5576
  controller.close();
5623
- onComplete == null ? void 0 : onComplete();
5577
+ onComplete?.();
5624
5578
  }
5625
5579
  });
5626
5580
  return readable;
@@ -5641,7 +5595,7 @@ function invariant2(value, message) {
5641
5595
  throw new Error(message);
5642
5596
  }
5643
5597
  }
5644
- var SingleFetchRedirectSymbol = Symbol("SingleFetchRedirect");
5598
+ var SingleFetchRedirectSymbol = /* @__PURE__ */ Symbol("SingleFetchRedirect");
5645
5599
  var SINGLE_FETCH_REDIRECT_STATUS = 202;
5646
5600
  var NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([100, 101, 204, 205]);
5647
5601
  function StreamTransfer({
@@ -5794,12 +5748,11 @@ async function loadRouteModule(route, routeModulesCache) {
5794
5748
  }
5795
5749
  function getKeyedLinksForMatches(matches, routeModules, manifest) {
5796
5750
  let descriptors = matches.map((match) => {
5797
- var _a;
5798
5751
  let module = routeModules[match.route.id];
5799
5752
  let route = manifest.routes[match.route.id];
5800
5753
  return [
5801
5754
  route && route.css ? route.css.map((href) => ({ rel: "stylesheet", href })) : [],
5802
- ((_a = module == null ? void 0 : module.links) == null ? void 0 : _a.call(module)) || []
5755
+ module?.links?.() || []
5803
5756
  ];
5804
5757
  }).flat(2);
5805
5758
  let preloads = getModuleLinkHrefs(matches, manifest);
@@ -5840,12 +5793,11 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
5840
5793
  return match.route.id !== currentMatches[index].route.id;
5841
5794
  };
5842
5795
  let matchPathChanged = (match, index) => {
5843
- var _a;
5844
5796
  return (
5845
5797
  // param change, /users/123 -> /users/456
5846
5798
  currentMatches[index].pathname !== match.pathname || // splat param changed, which is not present in match.path
5847
5799
  // e.g. /files/images/avatar.jpg -> files/finances.xls
5848
- ((_a = currentMatches[index].route.path) == null ? void 0 : _a.endsWith("*")) && currentMatches[index].params["*"] !== match.params["*"]
5800
+ currentMatches[index].route.path?.endsWith("*") && currentMatches[index].params["*"] !== match.params["*"]
5849
5801
  );
5850
5802
  };
5851
5803
  if (mode === "assets") {
@@ -5855,7 +5807,6 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
5855
5807
  }
5856
5808
  if (mode === "data") {
5857
5809
  return nextMatches.filter((match, index) => {
5858
- var _a;
5859
5810
  let manifestRoute = manifest.routes[match.route.id];
5860
5811
  if (!manifestRoute || !manifestRoute.hasLoader) {
5861
5812
  return false;
@@ -5869,7 +5820,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
5869
5820
  location.pathname + location.search + location.hash,
5870
5821
  window.origin
5871
5822
  ),
5872
- currentParams: ((_a = currentMatches[0]) == null ? void 0 : _a.params) || {},
5823
+ currentParams: currentMatches[0]?.params || {},
5873
5824
  nextUrl: new URL(page, window.origin),
5874
5825
  nextParams: match.params,
5875
5826
  defaultShouldRevalidate: true
@@ -6343,12 +6294,11 @@ function PrefetchPageLinksImpl({
6343
6294
  let routesParams = /* @__PURE__ */ new Set();
6344
6295
  let foundOptOutRoute = false;
6345
6296
  nextMatches.forEach((m) => {
6346
- var _a;
6347
6297
  let manifestRoute = manifest.routes[m.route.id];
6348
6298
  if (!manifestRoute || !manifestRoute.hasLoader) {
6349
6299
  return;
6350
6300
  }
6351
- if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && ((_a = routeModules[m.route.id]) == null ? void 0 : _a.shouldRevalidate)) {
6301
+ if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && routeModules[m.route.id]?.shouldRevalidate) {
6352
6302
  foundOptOutRoute = true;
6353
6303
  } else if (manifestRoute.hasClientLoader) {
6354
6304
  foundOptOutRoute = true;
@@ -6436,7 +6386,7 @@ function Meta() {
6436
6386
  error
6437
6387
  };
6438
6388
  matches[i] = match;
6439
- if (routeModule == null ? void 0 : routeModule.meta) {
6389
+ if (routeModule?.meta) {
6440
6390
  routeMeta = typeof routeModule.meta === "function" ? routeModule.meta({
6441
6391
  data: data2,
6442
6392
  loaderData: data2,
@@ -6534,13 +6484,12 @@ function Scripts(scriptProps) {
6534
6484
  setIsHydrated();
6535
6485
  }, []);
6536
6486
  let initialScripts = reactExports.useMemo(() => {
6537
- var _a;
6538
6487
  if (isRSCRouterContext) {
6539
6488
  return null;
6540
6489
  }
6541
6490
  let streamScript = "window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());";
6542
6491
  let contextScript = staticContext ? `window.__reactRouterContext = ${serverHandoffString};${streamScript}` : " ";
6543
- let routeModulesScript = !isStatic ? " " : `${((_a = manifest.hmr) == null ? void 0 : _a.runtime) ? `import ${JSON.stringify(manifest.hmr.runtime)};` : ""}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : ""};
6492
+ let routeModulesScript = !isStatic ? " " : `${manifest.hmr?.runtime ? `import ${JSON.stringify(manifest.hmr.runtime)};` : ""}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : ""};
6544
6493
  ${matches.map((match, routeIndex) => {
6545
6494
  let routeVarName = `route${routeIndex}`;
6546
6495
  let manifestEntry = manifest.routes[match.route.id];
@@ -6773,9 +6722,8 @@ function BoundaryShell({
6773
6722
  isOutsideRemixApp,
6774
6723
  children
6775
6724
  }) {
6776
- var _a;
6777
6725
  let { routeModules } = useFrameworkContext();
6778
- if (((_a = routeModules.root) == null ? void 0 : _a.Layout) && !isOutsideRemixApp) {
6726
+ if (routeModules.root?.Layout && !isOutsideRemixApp) {
6779
6727
  return children;
6780
6728
  }
6781
6729
  return /* @__PURE__ */ reactExports.createElement("html", { lang: "en" }, /* @__PURE__ */ reactExports.createElement("head", null, /* @__PURE__ */ reactExports.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ reactExports.createElement(
@@ -6965,7 +6913,7 @@ var Form = reactExports.forwardRef(
6965
6913
  if (event.defaultPrevented) return;
6966
6914
  event.preventDefault();
6967
6915
  let submitter = event.nativeEvent.submitter;
6968
- let submitMethod = (submitter == null ? void 0 : submitter.getAttribute("formmethod")) || method;
6916
+ let submitMethod = submitter?.getAttribute("formmethod") || method;
6969
6917
  let doSubmit = () => submit(submitter || event.currentTarget, {
6970
6918
  fetcherKey,
6971
6919
  method: submitMethod,
@@ -7041,7 +6989,7 @@ function ScrollRestoration({
7041
6989
  sessionStorage.removeItem(storageKey2);
7042
6990
  }
7043
6991
  }).toString();
7044
- if (props.nonce == null && (remixContext == null ? void 0 : remixContext.nonce)) {
6992
+ if (props.nonce == null && remixContext?.nonce) {
7045
6993
  props.nonce = remixContext.nonce;
7046
6994
  }
7047
6995
  return /* @__PURE__ */ reactExports.createElement(
@@ -7307,7 +7255,7 @@ function useScrollRestoration({
7307
7255
  }
7308
7256
  }, [storageKey]);
7309
7257
  reactExports.useLayoutEffect(() => {
7310
- let disableScrollRestoration = router == null ? void 0 : router.enableScrollRestoration(
7258
+ let disableScrollRestoration = router?.enableScrollRestoration(
7311
7259
  savedScrollPositions,
7312
7260
  () => window.scrollY,
7313
7261
  getKey ? (location2, matches2) => getScrollRestorationKey(location2, matches2, basename, getKey) : void 0
@@ -7512,7 +7460,7 @@ function createStaticRouter(routes, context, opts = {}) {
7512
7460
  v8_middleware: false,
7513
7461
  v8_passThroughRequests: false,
7514
7462
  v8_trailingSlashAwareDataRequests: false,
7515
- ...opts == null ? void 0 : opts.future
7463
+ ...opts?.future
7516
7464
  };
7517
7465
  },
7518
7466
  get state() {
@@ -7792,16 +7740,6 @@ function requireSetCookie() {
7792
7740
  return setCookie.exports;
7793
7741
  }
7794
7742
  var setCookieExports = /* @__PURE__ */ requireSetCookie();
7795
- /**
7796
- * react-router v7.18.4
7797
- *
7798
- * Copyright (c) Remix Software Inc.
7799
- *
7800
- * This source code is licensed under the MIT license found in the
7801
- * LICENSE.md file in the root directory of this source tree.
7802
- *
7803
- * @license MIT
7804
- */
7805
7743
  function ServerRouter({
7806
7744
  context,
7807
7745
  url,
@@ -8234,7 +8172,7 @@ function getNormalizedPath(request, basename, future) {
8234
8172
  basename = basename || "/";
8235
8173
  let url = new URL(request.url);
8236
8174
  let pathname = url.pathname;
8237
- if (future == null ? void 0 : future.v8_trailingSlashAwareDataRequests) {
8175
+ if (future?.v8_trailingSlashAwareDataRequests) {
8238
8176
  if (pathname.endsWith("/_.data")) {
8239
8177
  pathname = pathname.replace(/_\.data$/, "");
8240
8178
  } else {
@@ -8542,13 +8480,11 @@ function derive(build, mode) {
8542
8480
  }
8543
8481
  });
8544
8482
  let requestHandler = async (request, initialContext) => {
8545
- var _a, _b, _c;
8546
8483
  let params = {};
8547
8484
  let loadContext;
8548
8485
  let handleError = (error) => {
8549
- var _a2, _b2;
8550
8486
  if (mode === "development") {
8551
- (_b2 = (_a2 = getDevServerHooks()) == null ? void 0 : _a2.processRequestError) == null ? void 0 : _b2.call(_a2, error);
8487
+ getDevServerHooks()?.processRequestError?.(error);
8552
8488
  }
8553
8489
  errorHandler(error, {
8554
8490
  context: loadContext,
@@ -8701,8 +8637,8 @@ function derive(build, mode) {
8701
8637
  let criticalCss = void 0;
8702
8638
  if (build.unstable_getCriticalCss) {
8703
8639
  criticalCss = await build.unstable_getCriticalCss({ pathname });
8704
- } else if (mode === "development" && ((_a = getDevServerHooks()) == null ? void 0 : _a.getCriticalCss)) {
8705
- criticalCss = await ((_c = (_b = getDevServerHooks()) == null ? void 0 : _b.getCriticalCss) == null ? void 0 : _c.call(_b, pathname));
8640
+ } else if (mode === "development" && getDevServerHooks()?.getCriticalCss) {
8641
+ criticalCss = await getDevServerHooks()?.getCriticalCss?.(pathname);
8706
8642
  }
8707
8643
  response = await handleDocumentRequest(
8708
8644
  serverMode,
@@ -9150,16 +9086,6 @@ function RSCDefaultRootErrorBoundaryImpl({
9150
9086
  errorInstance.stack
9151
9087
  ), heyDeveloper);
9152
9088
  }
9153
- /**
9154
- * @react-router/node v7.18.4
9155
- *
9156
- * Copyright (c) Remix Software Inc.
9157
- *
9158
- * This source code is licensed under the MIT license found in the
9159
- * LICENSE.md file in the root directory of this source tree.
9160
- *
9161
- * @license MIT
9162
- */
9163
9089
  async function writeReadableStreamToWritable(stream, writable) {
9164
9090
  let reader = stream.getReader();
9165
9091
  let flushable = writable;
@@ -9281,11 +9207,11 @@ var createReadableStreamFromReadable = (source) => {
9281
9207
  return stream;
9282
9208
  };
9283
9209
  var StreamPump = class {
9210
+ highWaterMark;
9211
+ accumulatedSize;
9212
+ stream;
9213
+ controller;
9284
9214
  constructor(stream) {
9285
- __publicField(this, "highWaterMark");
9286
- __publicField(this, "accumulatedSize");
9287
- __publicField(this, "stream");
9288
- __publicField(this, "controller");
9289
9215
  this.highWaterMark = stream.readableHighWaterMark || new Stream.Readable().readableHighWaterMark;
9290
9216
  this.accumulatedSize = 0;
9291
9217
  this.stream = stream;
@@ -9294,7 +9220,7 @@ var StreamPump = class {
9294
9220
  this.close = this.close.bind(this);
9295
9221
  }
9296
9222
  size(chunk) {
9297
- return (chunk == null ? void 0 : chunk.byteLength) || 0;
9223
+ return chunk?.byteLength || 0;
9298
9224
  }
9299
9225
  start(controller) {
9300
9226
  this.controller = controller;
@@ -9357,16 +9283,6 @@ var StreamPump = class {
9357
9283
  }
9358
9284
  }
9359
9285
  };
9360
- /**
9361
- * @react-router/express v7.18.4
9362
- *
9363
- * Copyright (c) Remix Software Inc.
9364
- *
9365
- * This source code is licensed under the MIT license found in the
9366
- * LICENSE.md file in the root directory of this source tree.
9367
- *
9368
- * @license MIT
9369
- */
9370
9286
  function createRequestHandler({
9371
9287
  build,
9372
9288
  getLoadContext,
@@ -9376,7 +9292,7 @@ function createRequestHandler({
9376
9292
  return async (req, res, next) => {
9377
9293
  try {
9378
9294
  let request = createRemixRequest(req, res);
9379
- let loadContext = await (getLoadContext == null ? void 0 : getLoadContext(req, res));
9295
+ let loadContext = await getLoadContext?.(req, res);
9380
9296
  let response = await handleRequest(request, loadContext);
9381
9297
  await sendRemixResponse(res, response);
9382
9298
  } catch (error) {
@@ -9400,9 +9316,8 @@ function createRemixHeaders(requestHeaders) {
9400
9316
  return headers;
9401
9317
  }
9402
9318
  function createRemixRequest(req, res) {
9403
- var _a, _b, _c;
9404
- let [, hostnamePortStr] = ((_a = req.app) == null ? void 0 : _a.enabled("trust proxy")) ? ((_b = req.get("X-Forwarded-Host")) == null ? void 0 : _b.split(":")) ?? [] : [];
9405
- let [, hostPortStr] = ((_c = req.get("host")) == null ? void 0 : _c.split(":")) ?? [];
9319
+ let [, hostnamePortStr] = req.app?.enabled("trust proxy") ? req.get("X-Forwarded-Host")?.split(":") ?? [] : [];
9320
+ let [, hostPortStr] = req.get("host")?.split(":") ?? [];
9406
9321
  let hostnamePort = Number.parseInt(hostnamePortStr, 10);
9407
9322
  let hostPort = Number.parseInt(hostPortStr, 10);
9408
9323
  let port = Number.isSafeInteger(hostnamePort) ? hostnamePort : Number.isSafeInteger(hostPort) ? hostPort : "";
@@ -9416,7 +9331,7 @@ function createRemixRequest(req, res) {
9416
9331
  signal: controller.signal
9417
9332
  };
9418
9333
  res.on("finish", () => controller = null);
9419
- res.on("close", () => controller == null ? void 0 : controller.abort());
9334
+ res.on("close", () => controller?.abort());
9420
9335
  if (req.method !== "GET" && req.method !== "HEAD") {
9421
9336
  init.body = createReadableStreamFromReadable(req);
9422
9337
  init.duplex = "half";
@@ -9424,9 +9339,8 @@ function createRemixRequest(req, res) {
9424
9339
  return new Request(url.href, init);
9425
9340
  }
9426
9341
  async function sendRemixResponse(res, nodeResponse) {
9427
- var _a, _b;
9428
9342
  if (isResponseClosed(res)) {
9429
- await ((_a = nodeResponse.body) == null ? void 0 : _a.cancel());
9343
+ await nodeResponse.body?.cancel();
9430
9344
  return;
9431
9345
  }
9432
9346
  res.statusMessage = nodeResponse.statusText;
@@ -9434,7 +9348,7 @@ async function sendRemixResponse(res, nodeResponse) {
9434
9348
  for (let [key, value] of nodeResponse.headers.entries()) {
9435
9349
  res.append(key, value);
9436
9350
  }
9437
- if ((_b = nodeResponse.headers.get("Content-Type")) == null ? void 0 : _b.match(/text\/event-stream/i)) {
9351
+ if (nodeResponse.headers.get("Content-Type")?.match(/text\/event-stream/i)) {
9438
9352
  res.flushHeaders();
9439
9353
  }
9440
9354
  if (nodeResponse.body) {
@@ -9457,7 +9371,7 @@ const app = express();
9457
9371
  app.all(
9458
9372
  "/{*splat}",
9459
9373
  createRequestHandler({
9460
- build: () => import("./server-build-Bx0fBara.js").then((n) => n.a7)
9374
+ build: () => import("./server-build-C0EUGBN0.js").then((n) => n.a7)
9461
9375
  })
9462
9376
  );
9463
9377
  app.use(
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
2
2
  if (typeof globalThis.require === "undefined") {
3
3
  globalThis.require = __wkfCreateRequire(import.meta.url);
4
4
  }
5
- import { a1 as R, a2 as Ks, a3 as jsxRuntimeExports, a4 as Qe } from "./server-build-Bx0fBara.js";
6
- import { r as reactExports } from "./app-CYvC9qzx.js";
5
+ import { a1 as R, a2 as Ks, a3 as jsxRuntimeExports, a4 as Qe } from "./server-build-C0EUGBN0.js";
6
+ import { r as reactExports } from "./app-BX9dMsx4.js";
7
7
  import "node:stream";
8
8
  import "util";
9
9
  import "crypto";
@@ -67,7 +67,7 @@ function _makeCompatibilityCheck(ownVersion) {
67
67
  }
68
68
  const isCompatible = _makeCompatibilityCheck(VERSION);
69
69
  const major = VERSION.split(".")[0];
70
- const GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
70
+ const GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(`opentelemetry.js.api.${major}`);
71
71
  const _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
72
72
  function registerGlobal(type, instance, diag2, allowOverride = false) {
73
73
  var _a;
@@ -256,7 +256,7 @@ class BaggageImpl {
256
256
  return new BaggageImpl();
257
257
  }
258
258
  }
259
- const baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
259
+ const baggageEntryMetadataSymbol = /* @__PURE__ */ Symbol("BaggageEntryMetadata");
260
260
  const diag$1 = DiagAPI.instance();
261
261
  function createBaggage(entries = {}) {
262
262
  return new BaggageImpl(new Map(Object.entries(entries)));