@hortiview/modulebase 0.0.20524 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,90 +1,90 @@
1
1
  import * as k from "react";
2
- import A, { useCallback as ze } from "react";
3
- import { useBasePropsStore as se } from "./stores/BasePropsStore.js";
4
- import { aV as qe, a0 as ee, ae as Ce, r as te, v as Ve, n as be, aW as We, aP as Xe, E as O, aj as xe, j as K, aX as Je, a8 as Ke, R as Qe, aY as Ge, aZ as _e, a_ as oe, a$ as ie, b0 as Q, ah as P, b1 as ke, b2 as Ye, b3 as Ze, a4 as et, a5 as tt, a3 as rt, O as at, U as nt, x as I, am as st, ao as ot, al as it, b4 as $, b5 as lt, b6 as le, b7 as ut, b8 as re, b9 as U, ba as dt, bb as ct, bc as ft } from "./chunk-LFPYN7LY-D1ls8FXf.js";
5
- import { A as Sr, B as vr, F as Er, H as Cr, I as br, a as xr, b as _r, L as kr, d as Ar, M as Dr, e as Hr, N as Tr, f as Fr, g as Pr, P as Nr, h as Ur, i as Lr, k as Or, S as Ir, l as Br, m as Mr, o as $r, D as jr, p as zr, q as qr, s as Vr, t as Wr, w as Xr, V as Jr, W as Kr, y as Qr, z as Gr, C as Yr, G as Zr, J as ea, K as ta, Q as ra, T as aa, X as na, Y as sa, Z as oa, _ as ia, $ as la, a1 as ua, a2 as da, c as ca, a6 as fa, a7 as ha, a9 as pa, aa as ma, ab as ya, ac as wa, ad as ga, af as Ra, ag as Sa, ai as va, ak as Ea, an as Ca, ap as ba, aq as xa, ar as _a, as as ka, at as Aa, au as Da, av as Ha, aw as Ta, ax as Fa, ay as Pa, az as Na, aA as Ua, aB as La, aC as Oa, aD as Ia, aE as Ba, aF as Ma, aG as $a, aH as ja, aI as za, aJ as qa, aK as Va, aL as Wa, aM as Xa, aN as Ja, aO as Ka, aQ as Qa, aR as Ga, aS as Ya, aT as Za, aU as en } from "./chunk-LFPYN7LY-D1ls8FXf.js";
6
- var T = {}, ue;
7
- function ht() {
8
- if (ue) return T;
9
- ue = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.parseCookie = l, T.parse = l, T.stringifyCookie = s, T.stringifySetCookie = i, T.serialize = i, T.parseSetCookie = u, T.stringifySetCookie = i, T.serialize = i;
10
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString, f = /* @__PURE__ */ (() => {
11
- const c = function() {
2
+ import A, { useCallback as Ve } from "react";
3
+ import { useBasePropsStore as oe } from "./stores/BasePropsStore.js";
4
+ import { aV as We, a0 as te, ae as _e, r as re, v as Xe, n as xe, aW as Je, aP as Qe, E as O, aj as ke, j as K, aX as Ke, a8 as Ge, R as Ye, aY as Ze, aZ as Ae, a_ as ie, a$ as le, b0 as G, ah as F, b1 as Te, b2 as et, b3 as tt, a4 as rt, a5 as at, a3 as nt, O as st, U as ot, x as I, am as it, ao as lt, al as ut, b4 as j, b5 as dt, b6 as ue, b7 as ct, b8 as ae, b9 as L, ba as ft, bb as ht, bc as pt } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
5
+ import { A as Er, B as Cr, F as br, H as _r, I as xr, a as kr, b as Ar, L as Tr, d as Dr, M as Hr, e as Pr, N as Fr, f as Ur, g as Lr, P as Nr, h as Or, i as Ir, k as Br, S as Mr, l as $r, m as zr, o as jr, D as qr, p as Vr, q as Wr, s as Xr, t as Jr, w as Qr, V as Kr, W as Gr, y as Yr, z as Zr, C as ea, G as ta, J as ra, K as aa, Q as na, T as sa, X as oa, Y as ia, Z as la, _ as ua, $ as da, a1 as ca, a2 as fa, c as ha, a6 as pa, a7 as ma, a9 as ya, aa as wa, ab as ga, ac as Ra, ad as Sa, af as va, ag as Ea, ai as Ca, ak as ba, an as _a, ap as xa, aq as ka, ar as Aa, as as Ta, at as Da, au as Ha, av as Pa, aw as Fa, ax as Ua, ay as La, az as Na, aA as Oa, aB as Ia, aC as Ba, aD as Ma, aE as $a, aF as za, aG as ja, aH as qa, aI as Va, aJ as Wa, aK as Xa, aL as Ja, aM as Qa, aN as Ka, aO as Ga, aQ as Ya, aR as Za, aS as en, aT as tn, aU as rn } from "./chunk-EVOBXE3Y-BoyVF_Ri.js";
6
+ var H = {}, de;
7
+ function mt() {
8
+ if (de) return H;
9
+ de = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.parseCookie = u, H.parse = u, H.stringifyCookie = s, H.stringifySetCookie = i, H.serialize = i, H.parseSetCookie = l, H.stringifySetCookie = i, H.serialize = i;
10
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, n = /^-?\d+$/, o = Object.prototype.toString, c = /* @__PURE__ */ (() => {
11
+ const f = function() {
12
12
  };
13
- return c.prototype = /* @__PURE__ */ Object.create(null), c;
13
+ return f.prototype = /* @__PURE__ */ Object.create(null), f;
14
14
  })();
15
- function l(c, v) {
16
- const m = new f(), d = c.length;
15
+ function u(f, g) {
16
+ const m = new c(), d = f.length;
17
17
  if (d < 2)
18
18
  return m;
19
- const R = v?.decode || y;
20
- let S = 0;
19
+ const S = g?.decode || y;
20
+ let C = 0;
21
21
  do {
22
- const b = p(c, S, d);
22
+ const b = p(f, C, d);
23
23
  if (b === -1)
24
24
  break;
25
- const E = h(c, S, d);
26
- if (b > E) {
27
- S = c.lastIndexOf(";", b - 1) + 1;
25
+ const v = h(f, C, d);
26
+ if (b > v) {
27
+ C = f.lastIndexOf(";", b - 1) + 1;
28
28
  continue;
29
29
  }
30
- const _ = w(c, S, b);
31
- m[_] === void 0 && (m[_] = R(w(c, b + 1, E))), S = E + 1;
32
- } while (S < d);
30
+ const x = w(f, C, b);
31
+ m[x] === void 0 && (m[x] = S(w(f, b + 1, v))), C = v + 1;
32
+ } while (C < d);
33
33
  return m;
34
34
  }
35
- function s(c, v) {
36
- const m = v?.encode || encodeURIComponent, d = [];
37
- for (const R of Object.keys(c)) {
38
- const S = c[R];
39
- if (S === void 0)
35
+ function s(f, g) {
36
+ const m = g?.encode || encodeURIComponent, d = [];
37
+ for (const S of Object.keys(f)) {
38
+ const C = f[S];
39
+ if (C === void 0)
40
40
  continue;
41
- if (!e.test(R))
42
- throw new TypeError(`cookie name is invalid: ${R}`);
43
- const b = m(S);
41
+ if (!e.test(S))
42
+ throw new TypeError(`cookie name is invalid: ${S}`);
43
+ const b = m(C);
44
44
  if (!t.test(b))
45
- throw new TypeError(`cookie val is invalid: ${S}`);
46
- d.push(`${R}=${b}`);
45
+ throw new TypeError(`cookie val is invalid: ${C}`);
46
+ d.push(`${S}=${b}`);
47
47
  }
48
48
  return d.join("; ");
49
49
  }
50
- function i(c, v, m) {
51
- const d = typeof c == "object" ? c : { ...m, name: c, value: String(v) }, S = (typeof v == "object" ? v : m)?.encode || encodeURIComponent;
50
+ function i(f, g, m) {
51
+ const d = typeof f == "object" ? f : { ...m, name: f, value: String(g) }, C = (typeof g == "object" ? g : m)?.encode || encodeURIComponent;
52
52
  if (!e.test(d.name))
53
53
  throw new TypeError(`argument name is invalid: ${d.name}`);
54
- const b = d.value ? S(d.value) : "";
54
+ const b = d.value ? C(d.value) : "";
55
55
  if (!t.test(b))
56
56
  throw new TypeError(`argument val is invalid: ${d.value}`);
57
- let E = d.name + "=" + b;
57
+ let v = d.name + "=" + b;
58
58
  if (d.maxAge !== void 0) {
59
59
  if (!Number.isInteger(d.maxAge))
60
60
  throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
61
- E += "; Max-Age=" + d.maxAge;
61
+ v += "; Max-Age=" + d.maxAge;
62
62
  }
63
63
  if (d.domain) {
64
64
  if (!r.test(d.domain))
65
65
  throw new TypeError(`option domain is invalid: ${d.domain}`);
66
- E += "; Domain=" + d.domain;
66
+ v += "; Domain=" + d.domain;
67
67
  }
68
68
  if (d.path) {
69
69
  if (!a.test(d.path))
70
70
  throw new TypeError(`option path is invalid: ${d.path}`);
71
- E += "; Path=" + d.path;
71
+ v += "; Path=" + d.path;
72
72
  }
73
73
  if (d.expires) {
74
- if (!g(d.expires) || !Number.isFinite(d.expires.valueOf()))
74
+ if (!R(d.expires) || !Number.isFinite(d.expires.valueOf()))
75
75
  throw new TypeError(`option expires is invalid: ${d.expires}`);
76
- E += "; Expires=" + d.expires.toUTCString();
76
+ v += "; Expires=" + d.expires.toUTCString();
77
77
  }
78
- if (d.httpOnly && (E += "; HttpOnly"), d.secure && (E += "; Secure"), d.partitioned && (E += "; Partitioned"), d.priority)
78
+ if (d.httpOnly && (v += "; HttpOnly"), d.secure && (v += "; Secure"), d.partitioned && (v += "; Partitioned"), d.priority)
79
79
  switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
80
80
  case "low":
81
- E += "; Priority=Low";
81
+ v += "; Priority=Low";
82
82
  break;
83
83
  case "medium":
84
- E += "; Priority=Medium";
84
+ v += "; Priority=Medium";
85
85
  break;
86
86
  case "high":
87
- E += "; Priority=High";
87
+ v += "; Priority=High";
88
88
  break;
89
89
  default:
90
90
  throw new TypeError(`option priority is invalid: ${d.priority}`);
@@ -93,28 +93,28 @@ function ht() {
93
93
  switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
94
94
  case !0:
95
95
  case "strict":
96
- E += "; SameSite=Strict";
96
+ v += "; SameSite=Strict";
97
97
  break;
98
98
  case "lax":
99
- E += "; SameSite=Lax";
99
+ v += "; SameSite=Lax";
100
100
  break;
101
101
  case "none":
102
- E += "; SameSite=None";
102
+ v += "; SameSite=None";
103
103
  break;
104
104
  default:
105
105
  throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
106
106
  }
107
- return E;
107
+ return v;
108
108
  }
109
- function u(c, v) {
110
- const m = v?.decode || y, d = c.length, R = h(c, 0, d), S = p(c, 0, R), b = S === -1 ? { name: "", value: m(w(c, 0, R)) } : {
111
- name: w(c, 0, S),
112
- value: m(w(c, S + 1, R))
109
+ function l(f, g) {
110
+ const m = g?.decode || y, d = f.length, S = h(f, 0, d), C = p(f, 0, S), b = C === -1 ? { name: "", value: m(w(f, 0, S)) } : {
111
+ name: w(f, 0, C),
112
+ value: m(w(f, C + 1, S))
113
113
  };
114
- let E = R + 1;
115
- for (; E < d; ) {
116
- const _ = h(c, E, d), F = p(c, E, _), x = F === -1 ? w(c, E, _) : w(c, E, F), C = F === -1 ? void 0 : w(c, F + 1, _);
117
- switch (x.toLowerCase()) {
114
+ let v = S + 1;
115
+ for (; v < d; ) {
116
+ const x = h(f, v, d), P = p(f, v, x), _ = P === -1 ? w(f, v, x) : w(f, v, P), E = P === -1 ? void 0 : w(f, P + 1, x);
117
+ switch (_.toLowerCase()) {
118
118
  case "httponly":
119
119
  b.httpOnly = !0;
120
120
  break;
@@ -125,78 +125,78 @@ function ht() {
125
125
  b.partitioned = !0;
126
126
  break;
127
127
  case "domain":
128
- b.domain = C;
128
+ b.domain = E;
129
129
  break;
130
130
  case "path":
131
- b.path = C;
131
+ b.path = E;
132
132
  break;
133
133
  case "max-age":
134
- C && n.test(C) && (b.maxAge = Number(C));
134
+ E && n.test(E) && (b.maxAge = Number(E));
135
135
  break;
136
136
  case "expires":
137
- if (!C)
137
+ if (!E)
138
138
  break;
139
- const D = new Date(C);
140
- Number.isFinite(D.valueOf()) && (b.expires = D);
139
+ const T = new Date(E);
140
+ Number.isFinite(T.valueOf()) && (b.expires = T);
141
141
  break;
142
142
  case "priority":
143
- if (!C)
143
+ if (!E)
144
144
  break;
145
- const H = C.toLowerCase();
146
- (H === "low" || H === "medium" || H === "high") && (b.priority = H);
145
+ const D = E.toLowerCase();
146
+ (D === "low" || D === "medium" || D === "high") && (b.priority = D);
147
147
  break;
148
148
  case "samesite":
149
- if (!C)
149
+ if (!E)
150
150
  break;
151
- const M = C.toLowerCase();
152
- (M === "lax" || M === "strict" || M === "none") && (b.sameSite = M);
151
+ const $ = E.toLowerCase();
152
+ ($ === "lax" || $ === "strict" || $ === "none") && (b.sameSite = $);
153
153
  break;
154
154
  }
155
- E = _ + 1;
155
+ v = x + 1;
156
156
  }
157
157
  return b;
158
158
  }
159
- function h(c, v, m) {
160
- const d = c.indexOf(";", v);
159
+ function h(f, g, m) {
160
+ const d = f.indexOf(";", g);
161
161
  return d === -1 ? m : d;
162
162
  }
163
- function p(c, v, m) {
164
- const d = c.indexOf("=", v);
163
+ function p(f, g, m) {
164
+ const d = f.indexOf("=", g);
165
165
  return d < m ? d : -1;
166
166
  }
167
- function w(c, v, m) {
168
- let d = v, R = m;
167
+ function w(f, g, m) {
168
+ let d = g, S = m;
169
169
  do {
170
- const S = c.charCodeAt(d);
171
- if (S !== 32 && S !== 9)
170
+ const C = f.charCodeAt(d);
171
+ if (C !== 32 && C !== 9)
172
172
  break;
173
- } while (++d < R);
174
- for (; R > d; ) {
175
- const S = c.charCodeAt(R - 1);
176
- if (S !== 32 && S !== 9)
173
+ } while (++d < S);
174
+ for (; S > d; ) {
175
+ const C = f.charCodeAt(S - 1);
176
+ if (C !== 32 && C !== 9)
177
177
  break;
178
- R--;
178
+ S--;
179
179
  }
180
- return c.slice(d, R);
180
+ return f.slice(d, S);
181
181
  }
182
- function y(c) {
183
- if (c.indexOf("%") === -1)
184
- return c;
182
+ function y(f) {
183
+ if (f.indexOf("%") === -1)
184
+ return f;
185
185
  try {
186
- return decodeURIComponent(c);
186
+ return decodeURIComponent(f);
187
187
  } catch {
188
- return c;
188
+ return f;
189
189
  }
190
190
  }
191
- function g(c) {
192
- return o.call(c) === "[object Date]";
191
+ function R(f) {
192
+ return o.call(f) === "[object Date]";
193
193
  }
194
- return T;
194
+ return H;
195
195
  }
196
- var de = /* @__PURE__ */ ht(), L = { exports: {} }, ce;
197
- function pt() {
198
- if (ce) return L.exports;
199
- ce = 1;
196
+ var ce = /* @__PURE__ */ mt(), N = { exports: {} }, fe;
197
+ function yt() {
198
+ if (fe) return N.exports;
199
+ fe = 1;
200
200
  var e = {
201
201
  decodeValues: !0,
202
202
  map: !1,
@@ -212,36 +212,36 @@ function pt() {
212
212
  return typeof s == "string" && !!s.trim();
213
213
  }
214
214
  function n(s, i) {
215
- var u = s.split(";").filter(a), h = u.shift(), p = o(h), w = p.name, y = p.value;
215
+ var l = s.split(";").filter(a), h = l.shift(), p = o(h), w = p.name, y = p.value;
216
216
  if (i = i ? Object.assign({}, e, i) : e, t(w))
217
217
  return null;
218
218
  try {
219
219
  y = i.decodeValues ? decodeURIComponent(y) : y;
220
- } catch (c) {
220
+ } catch (f) {
221
221
  console.error(
222
222
  "set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
223
- c
223
+ f
224
224
  );
225
225
  }
226
- var g = r();
227
- return g.name = w, g.value = y, u.forEach(function(c) {
228
- var v = c.split("="), m = v.shift().trimLeft().toLowerCase();
226
+ var R = r();
227
+ return R.name = w, R.value = y, l.forEach(function(f) {
228
+ var g = f.split("="), m = g.shift().trimLeft().toLowerCase();
229
229
  if (!t(m)) {
230
- var d = v.join("=");
230
+ var d = g.join("=");
231
231
  if (m === "expires")
232
- g.expires = new Date(d);
232
+ R.expires = new Date(d);
233
233
  else if (m === "max-age") {
234
- var R = parseInt(d, 10);
235
- Number.isNaN(R) || (g.maxAge = R);
236
- } else m === "secure" ? g.secure = !0 : m === "httponly" ? g.httpOnly = !0 : m === "samesite" ? g.sameSite = d : m === "partitioned" ? g.partitioned = !0 : m && (g[m] = d);
234
+ var S = parseInt(d, 10);
235
+ Number.isNaN(S) || (R.maxAge = S);
236
+ } else m === "secure" ? R.secure = !0 : m === "httponly" ? R.httpOnly = !0 : m === "samesite" ? R.sameSite = d : m === "partitioned" ? R.partitioned = !0 : m && (R[m] = d);
237
237
  }
238
- }), g;
238
+ }), R;
239
239
  }
240
240
  function o(s) {
241
- var i = "", u = "", h = s.split("=");
242
- return h.length > 1 ? (i = h.shift(), u = h.join("=")) : u = s, { name: i, value: u };
241
+ var i = "", l = "", h = s.split("=");
242
+ return h.length > 1 ? (i = h.shift(), l = h.join("=")) : l = s, { name: i, value: l };
243
243
  }
244
- function f(s, i) {
244
+ function c(s, i) {
245
245
  if (i = i ? Object.assign({}, e, i) : e, !s)
246
246
  return i.map ? r() : [];
247
247
  if (s.headers)
@@ -250,12 +250,12 @@ function pt() {
250
250
  else if (s.headers["set-cookie"])
251
251
  s = s.headers["set-cookie"];
252
252
  else {
253
- var u = s.headers[Object.keys(s.headers).find(function(p) {
253
+ var l = s.headers[Object.keys(s.headers).find(function(p) {
254
254
  return p.toLowerCase() === "set-cookie";
255
255
  })];
256
- !u && s.headers.cookie && !i.silent && console.warn(
256
+ !l && s.headers.cookie && !i.silent && console.warn(
257
257
  "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
258
- ), s = u;
258
+ ), s = l;
259
259
  }
260
260
  if (Array.isArray(s) || (s = [s]), i.map) {
261
261
  var h = r();
@@ -268,42 +268,42 @@ function pt() {
268
268
  return n(p, i);
269
269
  }).filter(Boolean);
270
270
  }
271
- function l(s) {
271
+ function u(s) {
272
272
  if (Array.isArray(s))
273
273
  return s;
274
274
  if (typeof s != "string")
275
275
  return [];
276
- var i = [], u = 0, h, p, w, y, g;
277
- function c() {
278
- for (; u < s.length && /\s/.test(s.charAt(u)); )
279
- u += 1;
280
- return u < s.length;
276
+ var i = [], l = 0, h, p, w, y, R;
277
+ function f() {
278
+ for (; l < s.length && /\s/.test(s.charAt(l)); )
279
+ l += 1;
280
+ return l < s.length;
281
281
  }
282
- function v() {
283
- return p = s.charAt(u), p !== "=" && p !== ";" && p !== ",";
282
+ function g() {
283
+ return p = s.charAt(l), p !== "=" && p !== ";" && p !== ",";
284
284
  }
285
- for (; u < s.length; ) {
286
- for (h = u, g = !1; c(); )
287
- if (p = s.charAt(u), p === ",") {
288
- for (w = u, u += 1, c(), y = u; u < s.length && v(); )
289
- u += 1;
290
- u < s.length && s.charAt(u) === "=" ? (g = !0, u = y, i.push(s.substring(h, w)), h = u) : u = w + 1;
285
+ for (; l < s.length; ) {
286
+ for (h = l, R = !1; f(); )
287
+ if (p = s.charAt(l), p === ",") {
288
+ for (w = l, l += 1, f(), y = l; l < s.length && g(); )
289
+ l += 1;
290
+ l < s.length && s.charAt(l) === "=" ? (R = !0, l = y, i.push(s.substring(h, w)), h = l) : l = w + 1;
291
291
  } else
292
- u += 1;
293
- (!g || u >= s.length) && i.push(s.substring(h, s.length));
292
+ l += 1;
293
+ (!R || l >= s.length) && i.push(s.substring(h, s.length));
294
294
  }
295
295
  return i;
296
296
  }
297
- return L.exports = f, L.exports.parse = f, L.exports.parseString = n, L.exports.splitCookiesString = l, L.exports;
297
+ return N.exports = c, N.exports.parse = c, N.exports.parseString = n, N.exports.splitCookiesString = u, N.exports;
298
298
  }
299
- var mt = /* @__PURE__ */ pt();
300
- function nr({
299
+ var wt = /* @__PURE__ */ yt();
300
+ function or({
301
301
  context: e,
302
302
  url: t,
303
303
  nonce: r
304
304
  }) {
305
305
  typeof t == "string" && (t = new URL(t));
306
- let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString: f } = e, l = qe(
306
+ let { manifest: a, routeModules: n, criticalCss: o, serverHandoffString: c } = e, u = We(
307
307
  a.routes,
308
308
  n,
309
309
  e.future,
@@ -313,23 +313,23 @@ function nr({
313
313
  ...e.staticHandlerContext.loaderData
314
314
  };
315
315
  for (let i of e.staticHandlerContext.matches) {
316
- let u = i.route.id, h = n[u], p = e.manifest.routes[u];
317
- h && p && ee(
318
- u,
316
+ let l = i.route.id, h = n[l], p = e.manifest.routes[l];
317
+ h && p && te(
318
+ l,
319
319
  h.clientLoader,
320
320
  p.hasLoader,
321
321
  e.isSpaMode
322
- ) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[u];
322
+ ) && (h.HydrateFallback || !p.hasLoader) && delete e.staticHandlerContext.loaderData[l];
323
323
  }
324
- let s = Ce(l, e.staticHandlerContext);
324
+ let s = _e(u, e.staticHandlerContext);
325
325
  return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(
326
- te.Provider,
326
+ re.Provider,
327
327
  {
328
328
  value: {
329
329
  manifest: a,
330
330
  routeModules: n,
331
331
  criticalCss: o,
332
- serverHandoffString: f,
332
+ serverHandoffString: c,
333
333
  future: e.future,
334
334
  ssr: e.ssr,
335
335
  isSpaMode: e.isSpaMode,
@@ -338,8 +338,8 @@ function nr({
338
338
  renderMeta: e.renderMeta
339
339
  }
340
340
  },
341
- /* @__PURE__ */ k.createElement(Ve, { location: s.state.location }, /* @__PURE__ */ k.createElement(
342
- be,
341
+ /* @__PURE__ */ k.createElement(Xe, { location: s.state.location }, /* @__PURE__ */ k.createElement(
342
+ xe,
343
343
  {
344
344
  router: s,
345
345
  context: e.staticHandlerContext,
@@ -347,7 +347,7 @@ function nr({
347
347
  }
348
348
  ))
349
349
  ), e.serverHandoffStream ? /* @__PURE__ */ k.createElement(k.Suspense, null, /* @__PURE__ */ k.createElement(
350
- We,
350
+ Je,
351
351
  {
352
352
  context: e,
353
353
  identifier: 0,
@@ -357,20 +357,21 @@ function nr({
357
357
  }
358
358
  )) : null);
359
359
  }
360
- function sr(e, t) {
360
+ function ir(e, t) {
361
361
  return function({
362
362
  initialEntries: a,
363
363
  initialIndex: n,
364
364
  hydrationData: o,
365
- future: f
365
+ future: c
366
366
  }) {
367
- let l = k.useRef(), s = k.useRef();
368
- if (l.current == null) {
367
+ let u = k.useRef(), s = k.useRef();
368
+ if (u.current == null) {
369
369
  s.current = {
370
370
  future: {
371
- unstable_subResourceIntegrity: f?.unstable_subResourceIntegrity === !0,
372
- v8_middleware: f?.v8_middleware === !0,
373
- unstable_trailingSlashAwareDataRequests: f?.unstable_trailingSlashAwareDataRequests === !0
371
+ unstable_passThroughRequests: c?.unstable_passThroughRequests === !0,
372
+ unstable_subResourceIntegrity: c?.unstable_subResourceIntegrity === !0,
373
+ v8_middleware: c?.v8_middleware === !0,
374
+ unstable_trailingSlashAwareDataRequests: c?.unstable_trailingSlashAwareDataRequests === !0
374
375
  },
375
376
  manifest: {
376
377
  routes: {},
@@ -383,36 +384,36 @@ function sr(e, t) {
383
384
  isSpaMode: !1,
384
385
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }
385
386
  };
386
- let i = Ae(
387
+ let i = De(
387
388
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
388
- // types compared to `AgnosticRouteObject`
389
- Je(e, (u) => u),
390
- t !== void 0 ? t : f?.v8_middleware ? new K() : {},
389
+ // types compared to `RouteObject`
390
+ Ke(e, (l) => l),
391
+ t !== void 0 ? t : c?.v8_middleware ? new K() : {},
391
392
  s.current.manifest,
392
393
  s.current.routeModules
393
394
  );
394
- l.current = Ke(i, {
395
+ u.current = Ge(i, {
395
396
  initialEntries: a,
396
397
  initialIndex: n,
397
398
  hydrationData: o
398
399
  });
399
400
  }
400
- return /* @__PURE__ */ k.createElement(te.Provider, { value: s.current }, /* @__PURE__ */ k.createElement(Qe, { router: l.current }));
401
+ return /* @__PURE__ */ k.createElement(re.Provider, { value: s.current }, /* @__PURE__ */ k.createElement(Ye, { router: u.current }));
401
402
  };
402
403
  }
403
- function Ae(e, t, r, a, n) {
404
+ function De(e, t, r, a, n) {
404
405
  return e.map((o) => {
405
406
  if (!o.id)
406
407
  throw new Error(
407
408
  "Expected a route.id in react-router processRoutes() function"
408
409
  );
409
- let f = {
410
+ let c = {
410
411
  id: o.id,
411
412
  path: o.path,
412
413
  index: o.index,
413
- Component: o.Component ? rt(o.Component) : void 0,
414
- HydrateFallback: o.HydrateFallback ? tt(o.HydrateFallback) : void 0,
415
- ErrorBoundary: o.ErrorBoundary ? et(o.ErrorBoundary) : void 0,
414
+ Component: o.Component ? nt(o.Component) : void 0,
415
+ HydrateFallback: o.HydrateFallback ? at(o.HydrateFallback) : void 0,
416
+ ErrorBoundary: o.ErrorBoundary ? rt(o.ErrorBoundary) : void 0,
416
417
  action: o.action ? (s) => o.action({ ...s, context: t }) : void 0,
417
418
  loader: o.loader ? (s) => o.loader({ ...s, context: t }) : void 0,
418
419
  middleware: o.middleware ? o.middleware.map(
@@ -423,7 +424,7 @@ function Ae(e, t, r, a, n) {
423
424
  ) : void 0,
424
425
  handle: o.handle,
425
426
  shouldRevalidate: o.shouldRevalidate
426
- }, l = {
427
+ }, u = {
427
428
  id: o.id,
428
429
  path: o.path,
429
430
  index: o.index,
@@ -444,56 +445,56 @@ function Ae(e, t, r, a, n) {
444
445
  clientMiddlewareModule: void 0,
445
446
  hydrateFallbackModule: void 0
446
447
  };
447
- return r.routes[f.id] = l, a[o.id] = {
448
- default: f.Component || at,
449
- ErrorBoundary: f.ErrorBoundary || void 0,
448
+ return r.routes[c.id] = u, a[o.id] = {
449
+ default: c.Component || st,
450
+ ErrorBoundary: c.ErrorBoundary || void 0,
450
451
  handle: o.handle,
451
452
  links: o.links,
452
453
  meta: o.meta,
453
454
  shouldRevalidate: o.shouldRevalidate
454
- }, o.children && (f.children = Ae(
455
+ }, o.children && (c.children = De(
455
456
  o.children,
456
457
  t,
457
458
  r,
458
459
  a,
459
- f.id
460
- )), f;
460
+ c.id
461
+ )), c;
461
462
  });
462
463
  }
463
- var ae = /* @__PURE__ */ new TextEncoder(), yt = async (e, t) => {
464
- let r = ae.encode(e), a = await De(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), o = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
464
+ var ne = /* @__PURE__ */ new TextEncoder(), gt = async (e, t) => {
465
+ let r = ne.encode(e), a = await He(t, ["sign"]), n = await crypto.subtle.sign("HMAC", a, r), o = btoa(String.fromCharCode(...new Uint8Array(n))).replace(
465
466
  /=+$/,
466
467
  ""
467
468
  );
468
469
  return e + "." + o;
469
- }, wt = async (e, t) => {
470
- let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o = ae.encode(a), f = await De(t, ["verify"]);
470
+ }, Rt = async (e, t) => {
471
+ let r = e.lastIndexOf("."), a = e.slice(0, r), n = e.slice(r + 1), o = ne.encode(a), c = await He(t, ["verify"]);
471
472
  try {
472
- let l = gt(atob(n));
473
- return await crypto.subtle.verify("HMAC", f, l, o) ? a : !1;
473
+ let u = St(atob(n));
474
+ return await crypto.subtle.verify("HMAC", c, u, o) ? a : !1;
474
475
  } catch {
475
476
  return !1;
476
477
  }
477
- }, De = async (e, t) => crypto.subtle.importKey(
478
+ }, He = async (e, t) => crypto.subtle.importKey(
478
479
  "raw",
479
- ae.encode(e),
480
+ ne.encode(e),
480
481
  { name: "HMAC", hash: "SHA-256" },
481
482
  !1,
482
483
  t
483
484
  );
484
- function gt(e) {
485
+ function St(e) {
485
486
  let t = new Uint8Array(e.length);
486
487
  for (let r = 0; r < e.length; r++)
487
488
  t[r] = e.charCodeAt(r);
488
489
  return t;
489
490
  }
490
- var He = (e, t = {}) => {
491
+ var Pe = (e, t = {}) => {
491
492
  let { secrets: r = [], ...a } = {
492
493
  path: "/",
493
494
  sameSite: "lax",
494
495
  ...t
495
496
  };
496
- return bt(e, a.expires), {
497
+ return xt(e, a.expires), {
497
498
  get name() {
498
499
  return e;
499
500
  },
@@ -505,17 +506,17 @@ var He = (e, t = {}) => {
505
506
  },
506
507
  async parse(n, o) {
507
508
  if (!n) return null;
508
- let f = de.parse(n, { ...a, ...o });
509
- if (e in f) {
510
- let l = f[e];
511
- return typeof l == "string" && l !== "" ? await St(l, r) : "";
509
+ let c = ce.parse(n, { ...a, ...o });
510
+ if (e in c) {
511
+ let u = c[e];
512
+ return typeof u == "string" && u !== "" ? await Et(u, r) : "";
512
513
  } else
513
514
  return null;
514
515
  },
515
516
  async serialize(n, o) {
516
- return de.serialize(
517
+ return ce.serialize(
517
518
  e,
518
- n === "" ? "" : await Rt(n, r),
519
+ n === "" ? "" : await vt(n, r),
519
520
  {
520
521
  ...a,
521
522
  ...o
@@ -523,44 +524,44 @@ var He = (e, t = {}) => {
523
524
  );
524
525
  }
525
526
  };
526
- }, Te = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
527
- async function Rt(e, t) {
528
- let r = vt(e);
529
- return t.length > 0 && (r = await yt(r, t[0])), r;
527
+ }, Fe = (e) => e != null && typeof e.name == "string" && typeof e.isSigned == "boolean" && typeof e.parse == "function" && typeof e.serialize == "function";
528
+ async function vt(e, t) {
529
+ let r = Ct(e);
530
+ return t.length > 0 && (r = await gt(r, t[0])), r;
530
531
  }
531
- async function St(e, t) {
532
+ async function Et(e, t) {
532
533
  if (t.length > 0) {
533
534
  for (let r of t) {
534
- let a = await wt(e, r);
535
+ let a = await Rt(e, r);
535
536
  if (a !== !1)
536
- return fe(a);
537
+ return he(a);
537
538
  }
538
539
  return null;
539
540
  }
540
- return fe(e);
541
+ return he(e);
541
542
  }
542
- function vt(e) {
543
- return btoa(Ct(encodeURIComponent(JSON.stringify(e))));
543
+ function Ct(e) {
544
+ return btoa(_t(encodeURIComponent(JSON.stringify(e))));
544
545
  }
545
- function fe(e) {
546
+ function he(e) {
546
547
  try {
547
- return JSON.parse(decodeURIComponent(Et(atob(e))));
548
+ return JSON.parse(decodeURIComponent(bt(atob(e))));
548
549
  } catch {
549
550
  return {};
550
551
  }
551
552
  }
552
- function Et(e) {
553
+ function bt(e) {
553
554
  let t = e.toString(), r = "", a = 0, n, o;
554
555
  for (; a < t.length; )
555
- n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" + he(o, 2) : r += "%u" + he(o, 4).toUpperCase());
556
+ n = t.charAt(a++), /[\w*+\-./@]/.exec(n) ? r += n : (o = n.charCodeAt(0), o < 256 ? r += "%" + pe(o, 2) : r += "%u" + pe(o, 4).toUpperCase());
556
557
  return r;
557
558
  }
558
- function he(e, t) {
559
+ function pe(e, t) {
559
560
  let r = e.toString(16);
560
561
  for (; r.length < t; ) r = "0" + r;
561
562
  return r;
562
563
  }
563
- function Ct(e) {
564
+ function _t(e) {
564
565
  let t = e.toString(), r = "", a = 0, n, o;
565
566
  for (; a < t.length; ) {
566
567
  if (n = t.charAt(a++), n === "%") {
@@ -578,65 +579,65 @@ function Ct(e) {
578
579
  }
579
580
  return r;
580
581
  }
581
- function bt(e, t) {
582
- ke(
582
+ function xt(e, t) {
583
+ Te(
583
584
  !t,
584
585
  `The "${e}" 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.`
585
586
  );
586
587
  }
587
- function xt(e) {
588
+ function kt(e) {
588
589
  return Object.keys(e).reduce((t, r) => {
589
590
  let a = e[r];
590
591
  return a && (t[r] = a.module), t;
591
592
  }, {});
592
593
  }
593
- var _t = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(_t || {});
594
- function kt(e) {
594
+ var At = /* @__PURE__ */ ((e) => (e.Development = "development", e.Production = "production", e.Test = "test", e))(At || {});
595
+ function Tt(e) {
595
596
  return e === "development" || e === "production" || e === "test";
596
597
  }
597
- function V(e, t) {
598
+ function W(e, t) {
598
599
  if (e instanceof Error && t !== "development") {
599
600
  let r = new Error("Unexpected Server Error");
600
601
  return r.stack = void 0, r;
601
602
  }
602
603
  return e;
603
604
  }
604
- function z(e, t) {
605
- return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: V(n, t) }), {});
605
+ function q(e, t) {
606
+ return Object.entries(e).reduce((r, [a, n]) => Object.assign(r, { [a]: W(n, t) }), {});
606
607
  }
607
- function Fe(e, t) {
608
- let r = V(e, t);
608
+ function Ue(e, t) {
609
+ let r = W(e, t);
609
610
  return {
610
611
  message: r.message,
611
612
  stack: r.stack
612
613
  };
613
614
  }
614
- function pe(e, t) {
615
+ function me(e, t) {
615
616
  if (!e) return null;
616
617
  let r = Object.entries(e), a = {};
617
618
  for (let [n, o] of r)
618
- if (P(o))
619
+ if (F(o))
619
620
  a[n] = { ...o, __type: "RouteErrorResponse" };
620
621
  else if (o instanceof Error) {
621
- let f = V(o, t);
622
+ let c = W(o, t);
622
623
  a[n] = {
623
- message: f.message,
624
- stack: f.stack,
624
+ message: c.message,
625
+ stack: c.stack,
625
626
  __type: "Error",
626
627
  // If this is a subclass (i.e., ReferenceError), send up the type so we
627
628
  // can re-create the same type during hydration. This will only apply
628
629
  // in dev mode since all production errors are sanitized to normal
629
630
  // Error instances
630
- ...f.name !== "Error" ? {
631
- __subType: f.name
631
+ ...c.name !== "Error" ? {
632
+ __subType: c.name
632
633
  } : {}
633
634
  };
634
635
  } else
635
636
  a[n] = o;
636
637
  return a;
637
638
  }
638
- function G(e, t, r) {
639
- let a = xe(
639
+ function Y(e, t, r) {
640
+ let a = ke(
640
641
  e,
641
642
  t,
642
643
  r
@@ -647,18 +648,19 @@ function G(e, t, r) {
647
648
  route: n.route
648
649
  })) : null;
649
650
  }
650
- async function me(e, t) {
651
- let r = await e({
652
- request: Dt(At(t.request)),
651
+ async function ye(e, t, r) {
652
+ let a = await e({
653
+ request: r.unstable_passThroughRequests ? t.request : Ht(Dt(t.request)),
654
+ unstable_url: t.unstable_url,
653
655
  params: t.params,
654
656
  context: t.context,
655
657
  unstable_pattern: t.unstable_pattern
656
658
  });
657
- if (ut(r) && r.init && r.init.status && re(r.init.status))
658
- throw new Response(null, r.init);
659
- return r;
659
+ if (ct(a) && a.init && a.init.status && ae(a.init.status))
660
+ throw new Response(null, a.init);
661
+ return a;
660
662
  }
661
- function At(e) {
663
+ function Dt(e) {
662
664
  let t = new URL(e.url), r = t.searchParams.getAll("index");
663
665
  t.searchParams.delete("index");
664
666
  let a = [];
@@ -674,7 +676,7 @@ function At(e) {
674
676
  };
675
677
  return n.body && (n.duplex = "half"), new Request(t.href, n);
676
678
  }
677
- function Dt(e) {
679
+ function Ht(e) {
678
680
  let t = new URL(e.url);
679
681
  t.searchParams.delete("_routes");
680
682
  let r = {
@@ -685,29 +687,29 @@ function Dt(e) {
685
687
  };
686
688
  return r.body && (r.duplex = "half"), new Request(t.href, r);
687
689
  }
688
- function j(e, t) {
690
+ function z(e, t) {
689
691
  if (e === !1 || e === null || typeof e > "u")
690
692
  throw console.error(
691
693
  "The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
692
694
  ), new Error(t);
693
695
  }
694
- var Pe = "__reactRouterDevServerHooks";
695
- function or(e) {
696
- globalThis[Pe] = e;
696
+ var Le = "__reactRouterDevServerHooks";
697
+ function lr(e) {
698
+ globalThis[Le] = e;
697
699
  }
698
- function W() {
699
- return globalThis[Pe];
700
+ function X() {
701
+ return globalThis[Le];
700
702
  }
701
703
  function Ne(e, t) {
702
704
  if (typeof process < "u")
703
705
  try {
704
- if (process.env?.IS_RR_BUILD_REQUEST === "yes")
706
+ if (process.env.hasOwnProperty("IS_RR_BUILD_REQUEST") && process.env.IS_RR_BUILD_REQUEST === "yes")
705
707
  return e.headers.get(t);
706
708
  } catch {
707
709
  }
708
710
  return null;
709
711
  }
710
- function Ue(e) {
712
+ function Oe(e) {
711
713
  let t = {};
712
714
  return Object.values(e).forEach((r) => {
713
715
  if (r) {
@@ -716,13 +718,13 @@ function Ue(e) {
716
718
  }
717
719
  }), t;
718
720
  }
719
- function Le(e, t = "", r = Ue(e)) {
721
+ function Ie(e, t = "", r = Oe(e)) {
720
722
  return (r[t] || []).map((a) => ({
721
723
  ...a,
722
- children: Le(e, a.id, r)
724
+ children: Ie(e, a.id, r)
723
725
  }));
724
726
  }
725
- function Oe(e, t, r = "", a = Ue(e)) {
727
+ function Be(e, t, r = "", a = Oe(e)) {
726
728
  return (a[r] || []).map((n) => {
727
729
  let o = {
728
730
  // Always include root due to default boundaries
@@ -732,37 +734,41 @@ function Oe(e, t, r = "", a = Ue(e)) {
732
734
  middleware: n.module.middleware,
733
735
  // Need to use RR's version in the param typed here to permit the optional
734
736
  // context even though we know it'll always be provided in remix
735
- loader: n.module.loader ? async (f) => {
736
- let l = Ne(
737
- f.request,
737
+ loader: n.module.loader ? async (c) => {
738
+ let u = Ne(
739
+ c.request,
738
740
  "X-React-Router-Prerender-Data"
739
741
  );
740
- if (l != null) {
741
- let i = l && decodeURI(l);
742
- j(i, "Missing prerendered data for route");
743
- let u = new TextEncoder().encode(i), h = new ReadableStream({
742
+ if (u != null) {
743
+ let i = u && decodeURI(u);
744
+ z(i, "Missing prerendered data for route");
745
+ let l = new TextEncoder().encode(i), h = new ReadableStream({
744
746
  start(y) {
745
- y.enqueue(u), y.close();
747
+ y.enqueue(l), y.close();
746
748
  }
747
- }), w = (await nt(h, global)).value;
749
+ }), w = (await ot(h, global)).value;
748
750
  if (w && I in w) {
749
- let y = w[I], g = { status: y.status };
750
- throw y.reload ? st(y.redirect, g) : y.replace ? ot(y.redirect, g) : it(y.redirect, g);
751
+ let y = w[I], R = { status: y.status };
752
+ throw y.reload ? it(y.redirect, R) : y.replace ? lt(y.redirect, R) : ut(y.redirect, R);
751
753
  } else {
752
- j(
754
+ z(
753
755
  w && n.id in w,
754
756
  "Unable to decode prerendered data"
755
757
  );
756
758
  let y = w[n.id];
757
- return j(
759
+ return z(
758
760
  "data" in y,
759
761
  "Unable to process prerendered data"
760
762
  ), y.data;
761
763
  }
762
764
  }
763
- return await me(n.module.loader, f);
765
+ return await ye(
766
+ n.module.loader,
767
+ c,
768
+ t
769
+ );
764
770
  } : void 0,
765
- action: n.module.action ? (f) => me(n.module.action, f) : void 0,
771
+ action: n.module.action ? (c) => ye(n.module.action, c, t) : void 0,
766
772
  handle: n.module.handle
767
773
  };
768
774
  return n.index ? {
@@ -770,7 +776,7 @@ function Oe(e, t, r = "", a = Ue(e)) {
770
776
  ...o
771
777
  } : {
772
778
  caseSensitive: n.caseSensitive,
773
- children: Oe(
779
+ children: Be(
774
780
  e,
775
781
  t,
776
782
  n.id,
@@ -780,52 +786,52 @@ function Oe(e, t, r = "", a = Ue(e)) {
780
786
  };
781
787
  });
782
788
  }
783
- function ye(e) {
784
- return Q(JSON.stringify(e));
789
+ function we(e) {
790
+ return G(JSON.stringify(e));
785
791
  }
786
- function ne(e, t) {
787
- return Ht(e, (r) => {
792
+ function se(e, t) {
793
+ return Pt(e, (r) => {
788
794
  let a = t.routes[r.route.id];
789
- return j(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
795
+ return z(a, `Route with id "${r.route.id}" not found in build`), a.module.headers;
790
796
  });
791
797
  }
792
- function Ht(e, t, r) {
793
- let a = e.errors ? e.matches.findIndex((l) => e.errors[l.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, o;
798
+ function Pt(e, t, r) {
799
+ let a = e.errors ? e.matches.findIndex((u) => e.errors[u.route.id]) : -1, n = a >= 0 ? e.matches.slice(0, a + 1) : e.matches, o;
794
800
  if (a >= 0) {
795
- let { actionHeaders: l, actionData: s, loaderHeaders: i, loaderData: u } = e;
801
+ let { actionHeaders: u, actionData: s, loaderHeaders: i, loaderData: l } = e;
796
802
  e.matches.slice(a).some((h) => {
797
803
  let p = h.route.id;
798
- return l[p] && (!s || !s.hasOwnProperty(p)) ? o = l[p] : i[p] && !u.hasOwnProperty(p) && (o = i[p]), o != null;
804
+ return u[p] && (!s || !s.hasOwnProperty(p)) ? o = u[p] : i[p] && !l.hasOwnProperty(p) && (o = i[p]), o != null;
799
805
  });
800
806
  }
801
- const f = new Headers(r);
802
- return n.reduce((l, s, i) => {
803
- let { id: u } = s.route, h = e.loaderHeaders[u] || new Headers(), p = e.actionHeaders[u] || new Headers(), w = o != null && i === n.length - 1, y = w && o !== h && o !== p, g = t(s);
804
- if (g == null) {
805
- let v = new Headers(l);
806
- return y && N(o, v), N(p, v), N(h, v), v;
807
+ const c = new Headers(r);
808
+ return n.reduce((u, s, i) => {
809
+ let { id: l } = s.route, h = e.loaderHeaders[l] || new Headers(), p = e.actionHeaders[l] || new Headers(), w = o != null && i === n.length - 1, y = w && o !== h && o !== p, R = t(s);
810
+ if (R == null) {
811
+ let g = new Headers(u);
812
+ return y && U(o, g), U(p, g), U(h, g), g;
807
813
  }
808
- let c = new Headers(
809
- typeof g == "function" ? g({
814
+ let f = new Headers(
815
+ typeof R == "function" ? R({
810
816
  loaderHeaders: h,
811
- parentHeaders: l,
817
+ parentHeaders: u,
812
818
  actionHeaders: p,
813
819
  errorHeaders: w ? o : void 0
814
- }) : g
820
+ }) : R
815
821
  );
816
- return y && N(o, c), N(p, c), N(h, c), N(l, c), c;
817
- }, new Headers(f));
822
+ return y && U(o, f), U(p, f), U(h, f), U(u, f), f;
823
+ }, new Headers(c));
818
824
  }
819
- function N(e, t) {
825
+ function U(e, t) {
820
826
  let r = e.get("Set-Cookie");
821
827
  if (r) {
822
- let a = mt.splitCookiesString(r), n = new Set(t.getSetCookie());
828
+ let a = wt.splitCookiesString(r), n = new Set(t.getSetCookie());
823
829
  a.forEach((o) => {
824
830
  n.has(o) || t.append("Set-Cookie", o);
825
831
  });
826
832
  }
827
833
  }
828
- function Ie(e, t) {
834
+ function Me(e, t) {
829
835
  let r = e.get("origin"), a = null;
830
836
  try {
831
837
  a = typeof r == "string" && r !== "null" ? new URL(r).host : r;
@@ -834,15 +840,15 @@ function Ie(e, t) {
834
840
  "`origin` header is not a valid URL. Aborting the action."
835
841
  );
836
842
  }
837
- let n = Pt(e);
838
- if (a && (!n || a !== n.value) && !Ft(a, t))
843
+ let n = Lt(e);
844
+ if (a && (!n || a !== n.value) && !Ut(a, t))
839
845
  throw n ? new Error(
840
846
  `${n.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`
841
847
  ) : new Error(
842
848
  "`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action."
843
849
  );
844
850
  }
845
- function Tt(e, t) {
851
+ function Ft(e, t) {
846
852
  const r = e.split("."), a = t.split(".");
847
853
  if (a.length < 1 || r.length < a.length)
848
854
  return !1;
@@ -865,12 +871,12 @@ function Tt(e, t) {
865
871
  }
866
872
  return r.length === 0;
867
873
  }
868
- function Ft(e, t = []) {
874
+ function Ut(e, t = []) {
869
875
  return t.some(
870
- (r) => r && (r === e || Tt(e, r))
876
+ (r) => r && (r === e || Ft(e, r))
871
877
  );
872
878
  }
873
- function Pt(e) {
879
+ function Lt(e) {
874
880
  let r = e.get("x-forwarded-host")?.split(",")[0]?.trim(), a = e.get("host");
875
881
  return r ? {
876
882
  type: "x-forwarded-host",
@@ -880,74 +886,89 @@ function Pt(e) {
880
886
  value: a
881
887
  } : void 0;
882
888
  }
883
- var Be = /* @__PURE__ */ new Set([
884
- ...ct,
889
+ function M(e, t, r) {
890
+ t = t || "/";
891
+ let a = new URL(e.url), n = a.pathname;
892
+ r?.unstable_trailingSlashAwareDataRequests ? n.endsWith("/_.data") ? n = n.replace(/_\.data$/, "") : n = n.replace(/\.data$/, "") : (j(n, t) === "/_root.data" ? n = t : n.endsWith(".data") && (n = n.replace(/\.data$/, "")), j(n, t) !== "/" && n.endsWith("/") && (n = n.slice(0, -1)));
893
+ let o = new URLSearchParams(a.search);
894
+ o.delete("_routes");
895
+ let c = o.toString();
896
+ return c && (c = `?${c}`), {
897
+ pathname: n,
898
+ search: c,
899
+ // No hashes on the server
900
+ hash: ""
901
+ };
902
+ }
903
+ var $e = /* @__PURE__ */ new Set([
904
+ ...ht,
885
905
  304
886
906
  ]);
887
- async function Nt(e, t, r, a, n, o, f) {
907
+ async function Nt(e, t, r, a, n, o, c) {
888
908
  try {
889
909
  try {
890
- Ie(
910
+ Me(
891
911
  a.headers,
892
912
  Array.isArray(e.allowedActionOrigins) ? e.allowedActionOrigins : []
893
913
  );
894
914
  } catch {
895
915
  return s(new Error("Bad Request"), 400);
896
916
  }
897
- let u = new Request(n, {
917
+ let l = e.future.unstable_passThroughRequests ? a : new Request(n, {
898
918
  method: a.method,
899
919
  body: a.body,
900
920
  headers: a.headers,
901
921
  signal: a.signal,
902
922
  ...a.body ? { duplex: "half" } : void 0
903
- }), h = await r.query(u, {
923
+ }), h = await r.query(l, {
904
924
  requestContext: o,
905
925
  skipLoaderErrorBubbling: !0,
906
926
  skipRevalidation: !0,
907
927
  generateMiddlewareResponse: e.future.v8_middleware ? async (p) => {
908
928
  try {
909
- let w = await p(u);
910
- return l(w);
929
+ let w = await p(l);
930
+ return u(w);
911
931
  } catch (w) {
912
932
  return s(w);
913
933
  }
914
- } : void 0
934
+ } : void 0,
935
+ unstable_normalizePath: (p) => M(p, e.basename, e.future)
915
936
  });
916
- return l(h);
917
- } catch (u) {
918
- return s(u);
937
+ return u(h);
938
+ } catch (l) {
939
+ return s(l);
919
940
  }
920
- function l(u) {
921
- return U(u) ? u : i(u);
941
+ function u(l) {
942
+ return L(l) ? l : i(l);
922
943
  }
923
- function s(u, h = 500) {
924
- return f(u), B(a, e, t, {
925
- result: { error: u },
944
+ function s(l, h = 500) {
945
+ return c(l), B(a, e, t, {
946
+ result: { error: l },
926
947
  headers: new Headers(),
927
948
  status: h
928
949
  });
929
950
  }
930
- function i(u) {
931
- let h = ne(u, e);
932
- if (re(u.statusCode) && h.has("Location"))
933
- return new Response(null, { status: u.statusCode, headers: h });
934
- u.errors && (Object.values(u.errors).forEach((w) => {
935
- (!P(w) || w.error) && f(w);
936
- }), u.errors = z(u.errors, t));
951
+ function i(l) {
952
+ let h = se(l, e);
953
+ if (ae(l.statusCode) && h.has("Location"))
954
+ return new Response(null, { status: l.statusCode, headers: h });
955
+ l.errors && (Object.values(l.errors).forEach((w) => {
956
+ (!F(w) || w.error) && c(w);
957
+ }), l.errors = q(l.errors, t));
937
958
  let p;
938
- return u.errors ? p = { error: Object.values(u.errors)[0] } : p = {
939
- data: Object.values(u.actionData || {})[0]
959
+ return l.errors ? p = { error: Object.values(l.errors)[0] } : p = {
960
+ data: Object.values(l.actionData || {})[0]
940
961
  }, B(a, e, t, {
941
962
  result: p,
942
963
  headers: h,
943
- status: u.statusCode
964
+ status: l.statusCode
944
965
  });
945
966
  }
946
967
  }
947
- async function Ut(e, t, r, a, n, o, f) {
948
- let l = new URL(a.url).searchParams.get("_routes"), s = l ? new Set(l.split(",")) : null;
968
+ async function Ot(e, t, r, a, n, o, c) {
969
+ let u = new URL(a.url).searchParams.get("_routes"), s = u ? new Set(u.split(",")) : null;
949
970
  try {
950
- let p = new Request(n, {
971
+ let p = e.future.unstable_passThroughRequests ? a : new Request(n, {
951
972
  headers: a.headers,
952
973
  signal: a.signal
953
974
  }), w = await r.query(p, {
@@ -956,44 +977,45 @@ async function Ut(e, t, r, a, n, o, f) {
956
977
  skipLoaderErrorBubbling: !0,
957
978
  generateMiddlewareResponse: e.future.v8_middleware ? async (y) => {
958
979
  try {
959
- let g = await y(p);
960
- return i(g);
961
- } catch (g) {
962
- return u(g);
980
+ let R = await y(p);
981
+ return i(R);
982
+ } catch (R) {
983
+ return l(R);
963
984
  }
964
- } : void 0
985
+ } : void 0,
986
+ unstable_normalizePath: (y) => M(y, e.basename, e.future)
965
987
  });
966
988
  return i(w);
967
989
  } catch (p) {
968
- return u(p);
990
+ return l(p);
969
991
  }
970
992
  function i(p) {
971
- return U(p) ? p : h(p);
993
+ return L(p) ? p : h(p);
972
994
  }
973
- function u(p) {
974
- return f(p), B(a, e, t, {
995
+ function l(p) {
996
+ return c(p), B(a, e, t, {
975
997
  result: { error: p },
976
998
  headers: new Headers(),
977
999
  status: 500
978
1000
  });
979
1001
  }
980
1002
  function h(p) {
981
- let w = ne(p, e);
982
- if (re(p.statusCode) && w.has("Location"))
1003
+ let w = se(p, e);
1004
+ if (ae(p.statusCode) && w.has("Location"))
983
1005
  return new Response(null, { status: p.statusCode, headers: w });
984
- p.errors && (Object.values(p.errors).forEach((c) => {
985
- (!P(c) || c.error) && f(c);
986
- }), p.errors = z(p.errors, t));
987
- let y = {}, g = new Set(
1006
+ p.errors && (Object.values(p.errors).forEach((f) => {
1007
+ (!F(f) || f.error) && c(f);
1008
+ }), p.errors = q(p.errors, t));
1009
+ let y = {}, R = new Set(
988
1010
  p.matches.filter(
989
- (c) => s ? s.has(c.route.id) : c.route.loader != null
990
- ).map((c) => c.route.id)
1011
+ (f) => s ? s.has(f.route.id) : f.route.loader != null
1012
+ ).map((f) => f.route.id)
991
1013
  );
992
1014
  if (p.errors)
993
- for (let [c, v] of Object.entries(p.errors))
994
- y[c] = { error: v };
995
- for (let [c, v] of Object.entries(p.loaderData))
996
- !(c in y) && g.has(c) && (y[c] = { data: v });
1015
+ for (let [f, g] of Object.entries(p.errors))
1016
+ y[f] = { error: g };
1017
+ for (let [f, g] of Object.entries(p.loaderData))
1018
+ !(f in y) && R.has(f) && (y[f] = { data: g });
997
1019
  return B(a, e, t, {
998
1020
  result: y,
999
1021
  headers: w,
@@ -1006,9 +1028,9 @@ function B(e, t, r, {
1006
1028
  headers: n,
1007
1029
  status: o
1008
1030
  }) {
1009
- let f = new Headers(n);
1010
- return f.set("X-Remix-Response", "yes"), Be.has(o) ? new Response(null, { status: o, headers: f }) : (f.set("Content-Type", "text/x-script"), f.delete("Content-Length"), new Response(
1011
- Y(
1031
+ let c = new Headers(n);
1032
+ return c.set("X-Remix-Response", "yes"), $e.has(o) ? new Response(null, { status: o, headers: c }) : (c.set("Content-Type", "text/x-script"), c.delete("Content-Length"), new Response(
1033
+ Z(
1012
1034
  a,
1013
1035
  e.signal,
1014
1036
  t.entry.module.streamTimeout,
@@ -1016,12 +1038,12 @@ function B(e, t, r, {
1016
1038
  ),
1017
1039
  {
1018
1040
  status: o || 200,
1019
- headers: f
1041
+ headers: c
1020
1042
  }
1021
1043
  ));
1022
1044
  }
1023
- function we(e, t, r, a) {
1024
- let n = Lt(
1045
+ function ge(e, t, r, a) {
1046
+ let n = It(
1025
1047
  e.status,
1026
1048
  e.headers,
1027
1049
  r.basename
@@ -1029,12 +1051,12 @@ function we(e, t, r, a) {
1029
1051
  return o.delete("Location"), o.set("Content-Type", "text/x-script"), B(t, r, a, {
1030
1052
  result: t.method === "GET" ? { [I]: n } : n,
1031
1053
  headers: o,
1032
- status: _e
1054
+ status: Ae
1033
1055
  });
1034
1056
  }
1035
- function Lt(e, t, r) {
1057
+ function It(e, t, r) {
1036
1058
  let a = t.get("Location");
1037
- return r && (a = $(a, r) || a), {
1059
+ return r && (a = j(a, r) || a), {
1038
1060
  redirect: a,
1039
1061
  status: e,
1040
1062
  revalidate: (
@@ -1051,213 +1073,221 @@ function Lt(e, t, r) {
1051
1073
  replace: t.has("X-Remix-Replace")
1052
1074
  };
1053
1075
  }
1054
- function Y(e, t, r, a) {
1076
+ function Z(e, t, r, a) {
1055
1077
  let n = new AbortController(), o = setTimeout(
1056
- () => n.abort(new Error("Server Timeout")),
1078
+ () => {
1079
+ n.abort(new Error("Server Timeout")), u();
1080
+ },
1057
1081
  typeof r == "number" ? r : 4950
1058
- ), f = () => clearTimeout(o);
1059
- return t.addEventListener("abort", f), ft(e, {
1082
+ ), c = () => {
1083
+ n.abort(t.reason), u();
1084
+ };
1085
+ t.addEventListener("abort", c);
1086
+ let u = () => {
1087
+ clearTimeout(o), t.removeEventListener("abort", c);
1088
+ };
1089
+ return pt(e, {
1060
1090
  signal: n.signal,
1061
- onComplete: f,
1091
+ onComplete: u,
1062
1092
  plugins: [
1063
- (l) => {
1064
- if (l instanceof Error) {
1065
- let { name: s, message: i, stack: u } = a === "production" ? V(l, a) : l;
1066
- return ["SanitizedError", s, i, u];
1093
+ (s) => {
1094
+ if (s instanceof Error) {
1095
+ let { name: i, message: l, stack: h } = a === "production" ? W(s, a) : s;
1096
+ return ["SanitizedError", i, l, h];
1067
1097
  }
1068
- if (l instanceof O) {
1069
- let { data: s, status: i, statusText: u } = l;
1070
- return ["ErrorResponse", s, i, u];
1098
+ if (s instanceof O) {
1099
+ let { data: i, status: l, statusText: h } = s;
1100
+ return ["ErrorResponse", i, l, h];
1071
1101
  }
1072
- if (l && typeof l == "object" && I in l)
1073
- return ["SingleFetchRedirect", l[I]];
1102
+ if (s && typeof s == "object" && I in s)
1103
+ return ["SingleFetchRedirect", s[I]];
1074
1104
  }
1075
1105
  ],
1076
1106
  postPlugins: [
1077
- (l) => {
1078
- if (l && typeof l == "object")
1107
+ (s) => {
1108
+ if (s && typeof s == "object")
1079
1109
  return [
1080
1110
  "SingleFetchClassInstance",
1081
- Object.fromEntries(Object.entries(l))
1111
+ Object.fromEntries(Object.entries(s))
1082
1112
  ];
1083
1113
  },
1084
1114
  () => ["SingleFetchFallback"]
1085
1115
  ]
1086
1116
  });
1087
1117
  }
1088
- function ge(e, t) {
1089
- let r = Le(e.routes), a = Oe(e.routes, e.future), n = kt(t) ? t : "production", o = Ye(a, {
1118
+ function Re(e, t) {
1119
+ let r = Ie(e.routes), a = Be(e.routes, e.future), n = Tt(t) ? t : "production", o = et(a, {
1090
1120
  basename: e.basename,
1091
1121
  unstable_instrumentations: e.entry.module.unstable_instrumentations
1092
- }), f = e.entry.module.handleError || ((s, { request: i }) => {
1122
+ }), c = e.entry.module.handleError || ((s, { request: i }) => {
1093
1123
  n !== "test" && !i.signal.aborted && console.error(
1094
1124
  // @ts-expect-error This is "private" from users but intended for internal use
1095
- P(s) && s.error ? s.error : s
1125
+ F(s) && s.error ? s.error : s
1096
1126
  );
1097
- }), l = async (s, i) => {
1098
- let u = {}, h, p = (R) => {
1099
- t === "development" && W()?.processRequestError?.(R), f(R, {
1127
+ }), u = async (s, i) => {
1128
+ let l = {}, h, p = (d) => {
1129
+ t === "development" && X()?.processRequestError?.(d), c(d, {
1100
1130
  context: h,
1101
- params: u,
1131
+ params: l,
1102
1132
  request: s
1103
1133
  });
1104
1134
  };
1105
1135
  if (e.future.v8_middleware) {
1106
1136
  if (i && !(i instanceof K)) {
1107
- let R = new Error(
1137
+ let d = new Error(
1108
1138
  "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
1109
1139
  );
1110
- return p(R), q(R, n);
1140
+ return p(d), V(d, n);
1111
1141
  }
1112
1142
  h = i || new K();
1113
1143
  } else
1114
1144
  h = i || {};
1115
- let w = new URL(s.url), y = e.basename || "/", g = w.pathname;
1116
- e.future.unstable_trailingSlashAwareDataRequests ? g.endsWith("/_.data") ? g = g.replace(/_.data$/, "") : g = g.replace(/\.data$/, "") : ($(g, y) === "/_root.data" ? g = y : g.endsWith(".data") && (g = g.replace(/\.data$/, "")), $(g, y) !== "/" && g.endsWith("/") && (g = g.slice(0, -1)));
1117
- let c = Ne(s, "X-React-Router-SPA-Mode") === "yes";
1145
+ let w = new URL(s.url), y = M(
1146
+ s,
1147
+ e.basename,
1148
+ e.future
1149
+ ).pathname, R = Ne(s, "X-React-Router-SPA-Mode") === "yes";
1118
1150
  if (!e.ssr) {
1119
- let R = decodeURI(g);
1120
- if (y !== "/") {
1121
- let S = $(R, y);
1151
+ let d = decodeURI(y);
1152
+ if (e.basename && e.basename !== "/") {
1153
+ let S = j(d, e.basename);
1122
1154
  if (S == null)
1123
- return f(
1155
+ return c(
1124
1156
  new O(
1125
1157
  404,
1126
1158
  "Not Found",
1127
- `Refusing to prerender the \`${R}\` path because it does not start with the basename \`${y}\``
1159
+ `Refusing to prerender the \`${d}\` path because it does not start with the basename \`${e.basename}\``
1128
1160
  ),
1129
1161
  {
1130
1162
  context: h,
1131
- params: u,
1163
+ params: l,
1132
1164
  request: s
1133
1165
  }
1134
1166
  ), new Response("Not Found", {
1135
1167
  status: 404,
1136
1168
  statusText: "Not Found"
1137
1169
  });
1138
- R = S;
1170
+ d = S;
1139
1171
  }
1140
1172
  if (e.prerender.length === 0)
1141
- c = !0;
1142
- else if (!e.prerender.includes(R) && !e.prerender.includes(R + "/")) {
1173
+ R = !0;
1174
+ else if (!e.prerender.includes(d) && !e.prerender.includes(d + "/")) {
1143
1175
  if (w.pathname.endsWith(".data"))
1144
- return f(
1176
+ return c(
1145
1177
  new O(
1146
1178
  404,
1147
1179
  "Not Found",
1148
- `Refusing to SSR the path \`${R}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
1180
+ `Refusing to SSR the path \`${d}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
1149
1181
  ),
1150
1182
  {
1151
1183
  context: h,
1152
- params: u,
1184
+ params: l,
1153
1185
  request: s
1154
1186
  }
1155
1187
  ), new Response("Not Found", {
1156
1188
  status: 404,
1157
1189
  statusText: "Not Found"
1158
1190
  });
1159
- c = !0;
1191
+ R = !0;
1160
1192
  }
1161
1193
  }
1162
- let v = lt(
1194
+ let f = dt(
1163
1195
  e.routeDiscovery.manifestPath,
1164
- y
1196
+ e.basename
1165
1197
  );
1166
- if (w.pathname === v)
1198
+ if (w.pathname === f)
1167
1199
  try {
1168
- return await Ot(e, r, w);
1169
- } catch (R) {
1170
- return p(R), new Response("Unknown Server Error", { status: 500 });
1200
+ return await Bt(e, r, w);
1201
+ } catch (d) {
1202
+ return p(d), new Response("Unknown Server Error", { status: 500 });
1171
1203
  }
1172
- let m = G(r, g, e.basename);
1173
- m && m.length > 0 && Object.assign(u, m[0].params);
1174
- let d;
1204
+ let g = Y(r, y, e.basename);
1205
+ g && g.length > 0 && Object.assign(l, g[0].params);
1206
+ let m;
1175
1207
  if (w.pathname.endsWith(".data")) {
1176
- let R = new URL(s.url);
1177
- R.pathname = g;
1178
- let S = G(
1208
+ let d = Y(
1179
1209
  r,
1180
- R.pathname,
1210
+ y,
1181
1211
  e.basename
1182
1212
  );
1183
- d = await It(
1213
+ m = await Mt(
1184
1214
  n,
1185
1215
  e,
1186
1216
  o,
1187
1217
  s,
1188
- R,
1218
+ y,
1189
1219
  h,
1190
1220
  p
1191
- ), le(d) && (d = we(
1192
- d,
1221
+ ), ue(m) && (m = ge(
1222
+ m,
1193
1223
  s,
1194
1224
  e,
1195
1225
  n
1196
- )), e.entry.module.handleDataRequest && (d = await e.entry.module.handleDataRequest(d, {
1226
+ )), e.entry.module.handleDataRequest && (m = await e.entry.module.handleDataRequest(m, {
1197
1227
  context: h,
1198
- params: S ? S[0].params : {},
1228
+ params: d ? d[0].params : {},
1199
1229
  request: s
1200
- }), le(d) && (d = we(
1201
- d,
1230
+ }), ue(m) && (m = ge(
1231
+ m,
1202
1232
  s,
1203
1233
  e,
1204
1234
  n
1205
1235
  )));
1206
- } else if (!c && m && m[m.length - 1].route.module.default == null && m[m.length - 1].route.module.ErrorBoundary == null)
1207
- d = await Mt(
1236
+ } else if (!R && g && g[g.length - 1].route.module.default == null && g[g.length - 1].route.module.ErrorBoundary == null)
1237
+ m = await zt(
1208
1238
  n,
1209
1239
  e,
1210
1240
  o,
1211
- m.slice(-1)[0].route.id,
1241
+ g.slice(-1)[0].route.id,
1212
1242
  s,
1213
1243
  h,
1214
1244
  p
1215
1245
  );
1216
1246
  else {
1217
- let { pathname: R } = w, S;
1218
- e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname: R }) : t === "development" && W()?.getCriticalCss && (S = await W()?.getCriticalCss?.(R)), d = await Bt(
1247
+ let { pathname: d } = w, S;
1248
+ e.unstable_getCriticalCss ? S = await e.unstable_getCriticalCss({ pathname: d }) : t === "development" && X()?.getCriticalCss && (S = await X()?.getCriticalCss?.(d)), m = await $t(
1219
1249
  n,
1220
1250
  e,
1221
1251
  o,
1222
1252
  s,
1223
1253
  h,
1224
1254
  p,
1225
- c,
1255
+ R,
1226
1256
  S
1227
1257
  );
1228
1258
  }
1229
1259
  return s.method === "HEAD" ? new Response(null, {
1230
- headers: d.headers,
1231
- status: d.status,
1232
- statusText: d.statusText
1233
- }) : d;
1260
+ headers: m.headers,
1261
+ status: m.status,
1262
+ statusText: m.statusText
1263
+ }) : m;
1234
1264
  };
1235
- return e.entry.module.unstable_instrumentations && (l = Ze(
1236
- l,
1265
+ return e.entry.module.unstable_instrumentations && (u = tt(
1266
+ u,
1237
1267
  e.entry.module.unstable_instrumentations.map((s) => s.handler).filter(Boolean)
1238
1268
  )), {
1239
1269
  routes: r,
1240
1270
  dataRoutes: a,
1241
1271
  serverMode: n,
1242
1272
  staticHandler: o,
1243
- errorHandler: f,
1244
- requestHandler: l
1273
+ errorHandler: c,
1274
+ requestHandler: u
1245
1275
  };
1246
1276
  }
1247
- var ir = (e, t) => {
1248
- let r, a, n, o, f, l;
1249
- return async function(i, u) {
1277
+ var ur = (e, t) => {
1278
+ let r, a, n, o, c, u;
1279
+ return async function(i, l) {
1250
1280
  if (r = typeof e == "function" ? await e() : e, typeof e == "function") {
1251
- let h = ge(r, t);
1252
- a = h.routes, n = h.serverMode, o = h.staticHandler, f = h.errorHandler, l = h.requestHandler;
1253
- } else if (!a || !n || !o || !f || !l) {
1254
- let h = ge(r, t);
1255
- a = h.routes, n = h.serverMode, o = h.staticHandler, f = h.errorHandler, l = h.requestHandler;
1281
+ let h = Re(r, t);
1282
+ a = h.routes, n = h.serverMode, o = h.staticHandler, c = h.errorHandler, u = h.requestHandler;
1283
+ } else if (!a || !n || !o || !c || !u) {
1284
+ let h = Re(r, t);
1285
+ a = h.routes, n = h.serverMode, o = h.staticHandler, c = h.errorHandler, u = h.requestHandler;
1256
1286
  }
1257
- return l(i, u);
1287
+ return u(i, l);
1258
1288
  };
1259
1289
  };
1260
- async function Ot(e, t, r) {
1290
+ async function Bt(e, t, r) {
1261
1291
  if (e.assets.version !== r.searchParams.get("version"))
1262
1292
  return new Response(null, {
1263
1293
  status: 204,
@@ -1268,20 +1298,20 @@ async function Ot(e, t, r) {
1268
1298
  let a = {};
1269
1299
  if (r.searchParams.has("paths")) {
1270
1300
  let n = /* @__PURE__ */ new Set();
1271
- (r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((l) => {
1272
- l.startsWith("/") || (l = `/${l}`);
1273
- let s = l.split("/").slice(1);
1274
- s.forEach((i, u) => {
1275
- let h = s.slice(0, u + 1).join("/");
1301
+ (r.searchParams.get("paths") || "").split(",").filter(Boolean).forEach((u) => {
1302
+ u.startsWith("/") || (u = `/${u}`);
1303
+ let s = u.split("/").slice(1);
1304
+ s.forEach((i, l) => {
1305
+ let h = s.slice(0, l + 1).join("/");
1276
1306
  n.add(`/${h}`);
1277
1307
  });
1278
1308
  });
1279
- for (let l of n) {
1280
- let s = G(t, l, e.basename);
1309
+ for (let u of n) {
1310
+ let s = Y(t, u, e.basename);
1281
1311
  if (s)
1282
1312
  for (let i of s) {
1283
- let u = i.route.id, h = e.assets.routes[u];
1284
- h && (a[u] = h);
1313
+ let l = i.route.id, h = e.assets.routes[l];
1314
+ h && (a[l] = h);
1285
1315
  }
1286
1316
  }
1287
1317
  return Response.json(a, {
@@ -1292,78 +1322,80 @@ async function Ot(e, t, r) {
1292
1322
  }
1293
1323
  return new Response("Invalid Request", { status: 400 });
1294
1324
  }
1295
- async function It(e, t, r, a, n, o, f) {
1296
- return a.method !== "GET" ? await Nt(
1325
+ async function Mt(e, t, r, a, n, o, c) {
1326
+ let u = new URL(a.url);
1327
+ return u.pathname = n, a.method !== "GET" ? await Nt(
1297
1328
  t,
1298
1329
  e,
1299
1330
  r,
1300
1331
  a,
1301
- n,
1332
+ u,
1302
1333
  o,
1303
- f
1304
- ) : await Ut(
1334
+ c
1335
+ ) : await Ot(
1305
1336
  t,
1306
1337
  e,
1307
1338
  r,
1308
1339
  a,
1309
- n,
1340
+ u,
1310
1341
  o,
1311
- f
1342
+ c
1312
1343
  );
1313
1344
  }
1314
- async function Bt(e, t, r, a, n, o, f, l) {
1345
+ async function $t(e, t, r, a, n, o, c, u) {
1315
1346
  try {
1316
1347
  if (a.method === "POST")
1317
1348
  try {
1318
- Ie(
1349
+ Me(
1319
1350
  a.headers,
1320
1351
  Array.isArray(t.allowedActionOrigins) ? t.allowedActionOrigins : []
1321
1352
  );
1322
- } catch (u) {
1323
- return o(u), new Response("Bad Request", { status: 400 });
1353
+ } catch (l) {
1354
+ return o(l), new Response("Bad Request", { status: 400 });
1324
1355
  }
1325
1356
  let i = await r.query(a, {
1326
1357
  requestContext: n,
1327
- generateMiddlewareResponse: t.future.v8_middleware ? async (u) => {
1358
+ generateMiddlewareResponse: t.future.v8_middleware ? async (l) => {
1328
1359
  try {
1329
- let h = await u(a);
1330
- return U(h) || (h = await s(h, f)), h;
1360
+ let h = await l(a);
1361
+ return L(h) || (h = await s(h, c)), h;
1331
1362
  } catch (h) {
1332
1363
  return o(h), new Response(null, { status: 500 });
1333
1364
  }
1334
- } : void 0
1365
+ } : void 0,
1366
+ unstable_normalizePath: (l) => M(l, t.basename, t.future)
1335
1367
  });
1336
- return U(i) || (i = await s(i, f)), i;
1368
+ return L(i) || (i = await s(i, c)), i;
1337
1369
  } catch (i) {
1338
1370
  return o(i), new Response(null, { status: 500 });
1339
1371
  }
1340
- async function s(i, u) {
1341
- let h = ne(i, t);
1342
- if (Be.has(i.statusCode))
1372
+ async function s(i, l) {
1373
+ let h = se(i, t);
1374
+ if ($e.has(i.statusCode))
1343
1375
  return new Response(null, { status: i.statusCode, headers: h });
1344
- i.errors && (Object.values(i.errors).forEach((c) => {
1345
- (!P(c) || c.error) && o(c);
1346
- }), i.errors = z(i.errors, e));
1376
+ i.errors && (Object.values(i.errors).forEach((f) => {
1377
+ (!F(f) || f.error) && o(f);
1378
+ }), i.errors = q(i.errors, e));
1347
1379
  let p = {
1348
1380
  loaderData: i.loaderData,
1349
1381
  actionData: i.actionData,
1350
- errors: pe(i.errors, e)
1382
+ errors: me(i.errors, e)
1351
1383
  }, w = {
1352
1384
  basename: t.basename,
1353
1385
  future: t.future,
1354
1386
  routeDiscovery: t.routeDiscovery,
1355
1387
  ssr: t.ssr,
1356
- isSpaMode: u
1388
+ isSpaMode: l
1357
1389
  }, y = {
1358
1390
  manifest: t.assets,
1359
- routeModules: xt(t.routes),
1391
+ routeModules: kt(t.routes),
1360
1392
  staticHandlerContext: i,
1361
- criticalCss: l,
1362
- serverHandoffString: ye({
1393
+ criticalCss: u,
1394
+ serverHandoffString: we({
1363
1395
  ...w,
1364
- criticalCss: l
1396
+ criticalCss: u
1365
1397
  }),
1366
- serverHandoffStream: Y(
1398
+ serverHandoffStream: Z(
1367
1399
  p,
1368
1400
  a.signal,
1369
1401
  t.entry.module.streamTimeout,
@@ -1373,45 +1405,45 @@ async function Bt(e, t, r, a, n, o, f, l) {
1373
1405
  future: t.future,
1374
1406
  ssr: t.ssr,
1375
1407
  routeDiscovery: t.routeDiscovery,
1376
- isSpaMode: u,
1377
- serializeError: (c) => Fe(c, e)
1378
- }, g = t.entry.module.default;
1408
+ isSpaMode: l,
1409
+ serializeError: (f) => Ue(f, e)
1410
+ }, R = t.entry.module.default;
1379
1411
  try {
1380
- return await g(
1412
+ return await R(
1381
1413
  a,
1382
1414
  i.statusCode,
1383
1415
  h,
1384
1416
  y,
1385
1417
  n
1386
1418
  );
1387
- } catch (c) {
1388
- o(c);
1389
- let v = c;
1390
- if (U(c))
1419
+ } catch (f) {
1420
+ o(f);
1421
+ let g = f;
1422
+ if (L(f))
1391
1423
  try {
1392
- let d = await jt(c);
1393
- v = new O(
1394
- c.status,
1395
- c.statusText,
1424
+ let d = await qt(f);
1425
+ g = new O(
1426
+ f.status,
1427
+ f.statusText,
1396
1428
  d
1397
1429
  );
1398
1430
  } catch {
1399
1431
  }
1400
- i = dt(
1432
+ i = ft(
1401
1433
  r.dataRoutes,
1402
1434
  i,
1403
- v
1404
- ), i.errors && (i.errors = z(i.errors, e));
1435
+ g
1436
+ ), i.errors && (i.errors = q(i.errors, e));
1405
1437
  let m = {
1406
1438
  loaderData: i.loaderData,
1407
1439
  actionData: i.actionData,
1408
- errors: pe(i.errors, e)
1440
+ errors: me(i.errors, e)
1409
1441
  };
1410
1442
  y = {
1411
1443
  ...y,
1412
1444
  staticHandlerContext: i,
1413
- serverHandoffString: ye(w),
1414
- serverHandoffStream: Y(
1445
+ serverHandoffString: we(w),
1446
+ serverHandoffStream: Z(
1415
1447
  m,
1416
1448
  a.signal,
1417
1449
  t.entry.module.streamTimeout,
@@ -1420,7 +1452,7 @@ async function Bt(e, t, r, a, n, o, f, l) {
1420
1452
  renderMeta: {}
1421
1453
  };
1422
1454
  try {
1423
- return await g(
1455
+ return await R(
1424
1456
  a,
1425
1457
  i.statusCode,
1426
1458
  h,
@@ -1428,49 +1460,50 @@ async function Bt(e, t, r, a, n, o, f, l) {
1428
1460
  n
1429
1461
  );
1430
1462
  } catch (d) {
1431
- return o(d), q(d, e);
1463
+ return o(d), V(d, e);
1432
1464
  }
1433
1465
  }
1434
1466
  }
1435
1467
  }
1436
- async function Mt(e, t, r, a, n, o, f) {
1468
+ async function zt(e, t, r, a, n, o, c) {
1437
1469
  try {
1438
1470
  let i = await r.queryRoute(n, {
1439
1471
  routeId: a,
1440
1472
  requestContext: o,
1441
- generateMiddlewareResponse: t.future.v8_middleware ? async (u) => {
1473
+ generateMiddlewareResponse: t.future.v8_middleware ? async (l) => {
1442
1474
  try {
1443
- let h = await u(n);
1444
- return l(h);
1475
+ let h = await l(n);
1476
+ return u(h);
1445
1477
  } catch (h) {
1446
1478
  return s(h);
1447
1479
  }
1448
- } : void 0
1480
+ } : void 0,
1481
+ unstable_normalizePath: (l) => M(l, t.basename, t.future)
1449
1482
  });
1450
- return l(i);
1483
+ return u(i);
1451
1484
  } catch (i) {
1452
1485
  return s(i);
1453
1486
  }
1454
- function l(i) {
1455
- return U(i) ? i : typeof i == "string" ? new Response(i) : Response.json(i);
1487
+ function u(i) {
1488
+ return L(i) ? i : typeof i == "string" ? new Response(i) : Response.json(i);
1456
1489
  }
1457
1490
  function s(i) {
1458
- if (U(i))
1491
+ if (L(i))
1459
1492
  return i;
1460
- if (P(i))
1461
- return f(i), $t(i, e);
1493
+ if (F(i))
1494
+ return c(i), jt(i, e);
1462
1495
  if (i instanceof Error && i.message === "Expected a response from queryRoute") {
1463
- let u = new Error(
1496
+ let l = new Error(
1464
1497
  "Expected a Response to be returned from resource route handler"
1465
1498
  );
1466
- return f(u), q(u, e);
1499
+ return c(l), V(l, e);
1467
1500
  }
1468
- return f(i), q(i, e);
1501
+ return c(i), V(i, e);
1469
1502
  }
1470
1503
  }
1471
- function $t(e, t) {
1504
+ function jt(e, t) {
1472
1505
  return Response.json(
1473
- Fe(
1506
+ Ue(
1474
1507
  // @ts-expect-error This is "private" from users but intended for internal use
1475
1508
  e.error || new Error("Unexpected Server Error"),
1476
1509
  t
@@ -1481,7 +1514,7 @@ function $t(e, t) {
1481
1514
  }
1482
1515
  );
1483
1516
  }
1484
- function q(e, t) {
1517
+ function V(e, t) {
1485
1518
  let r = "Unexpected Server Error";
1486
1519
  return t !== "production" && (r += `
1487
1520
 
@@ -1492,14 +1525,14 @@ ${String(e)}`), new Response(r, {
1492
1525
  }
1493
1526
  });
1494
1527
  }
1495
- function jt(e) {
1528
+ function qt(e) {
1496
1529
  let t = e.headers.get("Content-Type");
1497
1530
  return t && /\bapplication\/json\b/.test(t) ? e.body == null ? null : e.json() : e.text();
1498
1531
  }
1499
- function X(e) {
1532
+ function J(e) {
1500
1533
  return `__flash_${e}__`;
1501
1534
  }
1502
- var Me = (e = {}, t = "") => {
1535
+ var ze = (e = {}, t = "") => {
1503
1536
  let r = new Map(Object.entries(e));
1504
1537
  return {
1505
1538
  get id() {
@@ -1509,11 +1542,11 @@ var Me = (e = {}, t = "") => {
1509
1542
  return Object.fromEntries(r);
1510
1543
  },
1511
1544
  has(a) {
1512
- return r.has(a) || r.has(X(a));
1545
+ return r.has(a) || r.has(J(a));
1513
1546
  },
1514
1547
  get(a) {
1515
1548
  if (r.has(a)) return r.get(a);
1516
- let n = X(a);
1549
+ let n = J(a);
1517
1550
  if (r.has(n)) {
1518
1551
  let o = r.get(n);
1519
1552
  return r.delete(n), o;
@@ -1523,50 +1556,50 @@ var Me = (e = {}, t = "") => {
1523
1556
  r.set(a, n);
1524
1557
  },
1525
1558
  flash(a, n) {
1526
- r.set(X(a), n);
1559
+ r.set(J(a), n);
1527
1560
  },
1528
1561
  unset(a) {
1529
1562
  r.delete(a);
1530
1563
  }
1531
1564
  };
1532
- }, lr = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
1533
- function zt({
1565
+ }, dr = (e) => e != null && typeof e.id == "string" && typeof e.data < "u" && typeof e.has == "function" && typeof e.get == "function" && typeof e.set == "function" && typeof e.flash == "function" && typeof e.unset == "function";
1566
+ function Vt({
1534
1567
  cookie: e,
1535
1568
  createData: t,
1536
1569
  readData: r,
1537
1570
  updateData: a,
1538
1571
  deleteData: n
1539
1572
  }) {
1540
- let o = Te(e) ? e : He(e?.name || "__session", e);
1541
- return $e(o), {
1542
- async getSession(f, l) {
1543
- let s = f && await o.parse(f, l), i = s && await r(s);
1544
- return Me(i || {}, s || "");
1573
+ let o = Fe(e) ? e : Pe(e?.name || "__session", e);
1574
+ return je(o), {
1575
+ async getSession(c, u) {
1576
+ let s = c && await o.parse(c, u), i = s && await r(s);
1577
+ return ze(i || {}, s || "");
1545
1578
  },
1546
- async commitSession(f, l) {
1547
- let { id: s, data: i } = f, u = l?.maxAge != null ? new Date(Date.now() + l.maxAge * 1e3) : l?.expires != null ? l.expires : o.expires;
1548
- return s ? await a(s, i, u) : s = await t(i, u), o.serialize(s, l);
1579
+ async commitSession(c, u) {
1580
+ let { id: s, data: i } = c, l = u?.maxAge != null ? new Date(Date.now() + u.maxAge * 1e3) : u?.expires != null ? u.expires : o.expires;
1581
+ return s ? await a(s, i, l) : s = await t(i, l), o.serialize(s, u);
1549
1582
  },
1550
- async destroySession(f, l) {
1551
- return await n(f.id), o.serialize("", {
1552
- ...l,
1583
+ async destroySession(c, u) {
1584
+ return await n(c.id), o.serialize("", {
1585
+ ...u,
1553
1586
  maxAge: void 0,
1554
1587
  expires: /* @__PURE__ */ new Date(0)
1555
1588
  });
1556
1589
  }
1557
1590
  };
1558
1591
  }
1559
- function $e(e) {
1560
- ke(
1592
+ function je(e) {
1593
+ Te(
1561
1594
  e.isSigned,
1562
1595
  `The "${e.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.`
1563
1596
  );
1564
1597
  }
1565
- function ur({ cookie: e } = {}) {
1566
- let t = Te(e) ? e : He(e?.name || "__session", e);
1567
- return $e(t), {
1598
+ function cr({ cookie: e } = {}) {
1599
+ let t = Fe(e) ? e : Pe(e?.name || "__session", e);
1600
+ return je(t), {
1568
1601
  async getSession(r, a) {
1569
- return Me(
1602
+ return ze(
1570
1603
  r && await t.parse(r, a) || {}
1571
1604
  );
1572
1605
  },
@@ -1587,9 +1620,9 @@ function ur({ cookie: e } = {}) {
1587
1620
  }
1588
1621
  };
1589
1622
  }
1590
- function dr({ cookie: e } = {}) {
1623
+ function fr({ cookie: e } = {}) {
1591
1624
  let t = /* @__PURE__ */ new Map();
1592
- return zt({
1625
+ return Vt({
1593
1626
  cookie: e,
1594
1627
  async createData(r, a) {
1595
1628
  let n = Math.random().toString(36).substring(2, 10);
@@ -1612,13 +1645,13 @@ function dr({ cookie: e } = {}) {
1612
1645
  }
1613
1646
  });
1614
1647
  }
1615
- function cr(e, ...t) {
1616
- let r = t[0], a = qt(e).replace(
1648
+ function hr(e, ...t) {
1649
+ let r = t[0], a = Wt(e).replace(
1617
1650
  /\/:([\w-]+)(\?)?/g,
1618
1651
  // same regex as in .\router\utils.ts: compilePath().
1619
- (n, o, f) => {
1620
- const l = f === void 0, s = r?.[o];
1621
- if (l && s === void 0)
1652
+ (n, o, c) => {
1653
+ const u = c === void 0, s = r?.[o];
1654
+ if (u && s === void 0)
1622
1655
  throw new Error(
1623
1656
  `Path '${e}' requires param '${o}' but it was not provided`
1624
1657
  );
@@ -1631,51 +1664,51 @@ function cr(e, ...t) {
1631
1664
  }
1632
1665
  return a || "/";
1633
1666
  }
1634
- function qt(e) {
1667
+ function Wt(e) {
1635
1668
  let t = e.length - 1, r = e[t];
1636
1669
  if (r !== "*" && r !== "/") return e;
1637
1670
  for (t--; t >= 0 && e[t] === "/"; t--)
1638
1671
  ;
1639
1672
  return e.slice(0, t + 1);
1640
1673
  }
1641
- var Z = new TextEncoder(), Re = "</body></html>";
1642
- function Se(e) {
1674
+ var ee = new TextEncoder(), Se = "</body></html>";
1675
+ function ve(e) {
1643
1676
  let t = new TextDecoder(), r, a = new Promise(
1644
1677
  (s) => r = s
1645
- ), n = !1, o = [], f = null;
1646
- function l(s) {
1678
+ ), n = !1, o = [], c = null;
1679
+ function u(s) {
1647
1680
  for (let i of o) {
1648
- let u = t.decode(i, { stream: !0 });
1649
- u.endsWith(Re) && (u = u.slice(0, -Re.length)), s.enqueue(Z.encode(u));
1681
+ let l = t.decode(i, { stream: !0 });
1682
+ l.endsWith(Se) && (l = l.slice(0, -Se.length)), s.enqueue(ee.encode(l));
1650
1683
  }
1651
- o.length = 0, f = null;
1684
+ o.length = 0, c = null;
1652
1685
  }
1653
1686
  return new TransformStream({
1654
1687
  transform(s, i) {
1655
- o.push(s), !f && (f = setTimeout(async () => {
1656
- l(i), n || (n = !0, Vt(e, i).catch((u) => i.error(u)).then(r));
1688
+ o.push(s), !c && (c = setTimeout(async () => {
1689
+ u(i), n || (n = !0, Xt(e, i).catch((l) => i.error(l)).then(r));
1657
1690
  }, 0));
1658
1691
  },
1659
1692
  async flush(s) {
1660
- await a, f && (clearTimeout(f), l(s)), s.enqueue(Z.encode("</body></html>"));
1693
+ await a, c && (clearTimeout(c), u(s)), s.enqueue(ee.encode("</body></html>"));
1661
1694
  }
1662
1695
  });
1663
1696
  }
1664
- async function Vt(e, t) {
1697
+ async function Xt(e, t) {
1665
1698
  let r = new TextDecoder("utf-8", { fatal: !0 });
1666
1699
  const a = e.getReader();
1667
1700
  try {
1668
1701
  let o;
1669
1702
  for (; (o = await a.read()) && !o.done; ) {
1670
- const f = o.value;
1703
+ const c = o.value;
1671
1704
  try {
1672
- J(
1673
- JSON.stringify(r.decode(f, { stream: !0 })),
1705
+ Q(
1706
+ JSON.stringify(r.decode(c, { stream: !0 })),
1674
1707
  t
1675
1708
  );
1676
1709
  } catch {
1677
- let s = JSON.stringify(btoa(String.fromCodePoint(...f)));
1678
- J(
1710
+ let s = JSON.stringify(btoa(String.fromCodePoint(...c)));
1711
+ Q(
1679
1712
  `Uint8Array.from(atob(${s}), m => m.codePointAt(0))`,
1680
1713
  t
1681
1714
  );
@@ -1685,21 +1718,21 @@ async function Vt(e, t) {
1685
1718
  a.releaseLock();
1686
1719
  }
1687
1720
  let n = r.decode();
1688
- n.length && J(JSON.stringify(n), t);
1721
+ n.length && Q(JSON.stringify(n), t);
1689
1722
  }
1690
- function J(e, t) {
1723
+ function Q(e, t) {
1691
1724
  t.enqueue(
1692
- Z.encode(
1693
- `<script>${Wt(
1725
+ ee.encode(
1726
+ `<script>${Jt(
1694
1727
  `(self.__FLIGHT_DATA||=[]).push(${e})`
1695
1728
  )}<\/script>`
1696
1729
  )
1697
1730
  );
1698
1731
  }
1699
- function Wt(e) {
1732
+ function Jt(e) {
1700
1733
  return e.replace(/<!--/g, "<\\!--").replace(/<\/(script)/gi, "</\\$1");
1701
1734
  }
1702
- var Xt = class extends A.Component {
1735
+ var Qt = class extends A.Component {
1703
1736
  constructor(e) {
1704
1737
  super(e), this.state = { error: null, location: e.location };
1705
1738
  }
@@ -1711,7 +1744,7 @@ var Xt = class extends A.Component {
1711
1744
  }
1712
1745
  render() {
1713
1746
  return this.state.error ? /* @__PURE__ */ A.createElement(
1714
- je,
1747
+ qe,
1715
1748
  {
1716
1749
  error: this.state.error,
1717
1750
  renderAppShell: !0
@@ -1719,7 +1752,7 @@ var Xt = class extends A.Component {
1719
1752
  ) : this.props.children;
1720
1753
  }
1721
1754
  };
1722
- function ve({
1755
+ function Ee({
1723
1756
  renderAppShell: e,
1724
1757
  title: t,
1725
1758
  children: r
@@ -1732,7 +1765,7 @@ function ve({
1732
1765
  }
1733
1766
  ), /* @__PURE__ */ A.createElement("title", null, t)), /* @__PURE__ */ A.createElement("body", null, /* @__PURE__ */ A.createElement("main", { style: { fontFamily: "system-ui, sans-serif", padding: "2rem" } }, r))) : r;
1734
1767
  }
1735
- function je({
1768
+ function qe({
1736
1769
  error: e,
1737
1770
  renderAppShell: t
1738
1771
  }) {
@@ -1749,9 +1782,9 @@ function je({
1749
1782
  }
1750
1783
  }
1751
1784
  );
1752
- if (P(e))
1785
+ if (F(e))
1753
1786
  return /* @__PURE__ */ A.createElement(
1754
- ve,
1787
+ Ee,
1755
1788
  {
1756
1789
  renderAppShell: t,
1757
1790
  title: "Unhandled Thrown Response!"
@@ -1766,7 +1799,7 @@ function je({
1766
1799
  let n = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
1767
1800
  a = new Error(n);
1768
1801
  }
1769
- return /* @__PURE__ */ A.createElement(ve, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ A.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ A.createElement(
1802
+ return /* @__PURE__ */ A.createElement(Ee, { renderAppShell: t, title: "Application Error!" }, /* @__PURE__ */ A.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ A.createElement(
1770
1803
  "pre",
1771
1804
  {
1772
1805
  style: {
@@ -1779,42 +1812,42 @@ function je({
1779
1812
  a.stack
1780
1813
  ), r);
1781
1814
  }
1782
- function fr({
1815
+ function pr({
1783
1816
  hasRootLayout: e
1784
1817
  }) {
1785
- let t = Xe();
1818
+ let t = Qe();
1786
1819
  if (e === void 0)
1787
1820
  throw new Error("Missing 'hasRootLayout' prop");
1788
1821
  return /* @__PURE__ */ A.createElement(
1789
- je,
1822
+ qe,
1790
1823
  {
1791
1824
  renderAppShell: !e,
1792
1825
  error: t
1793
1826
  }
1794
1827
  );
1795
1828
  }
1796
- function Jt(e) {
1829
+ function Kt(e) {
1797
1830
  const t = {};
1798
1831
  for (const r of e.matches)
1799
- Kt(t, r);
1832
+ Gt(t, r);
1800
1833
  return t;
1801
1834
  }
1802
- function Kt(e, t) {
1835
+ function Gt(e, t) {
1803
1836
  t = Array.isArray(t) ? t : [t];
1804
1837
  for (const r of t)
1805
1838
  e[r.id] = {
1806
1839
  links: r.links,
1807
1840
  meta: r.meta,
1808
- default: Qt
1841
+ default: Yt
1809
1842
  };
1810
1843
  }
1811
- var Qt = () => null, Gt = "use", Ee = k[Gt];
1812
- function Yt(e) {
1813
- if (Ee)
1814
- return Ee(e);
1844
+ var Yt = () => null, Ce = "/__manifest", Zt = "use", be = k[Zt];
1845
+ function er(e) {
1846
+ if (be)
1847
+ return be(e);
1815
1848
  throw new Error("React Router v7 requires React 19+ for RSC features.");
1816
1849
  }
1817
- async function hr({
1850
+ async function mr({
1818
1851
  request: e,
1819
1852
  serverResponse: t,
1820
1853
  createFromReadableStream: r,
@@ -1822,23 +1855,23 @@ async function hr({
1822
1855
  hydrate: n = !0
1823
1856
  }) {
1824
1857
  const o = new URL(e.url);
1825
- if (Zt(o) || er(o) || e.headers.has("rsc-action-id") || t.headers.get("React-Router-Resource") === "true")
1858
+ if (tr(o) || rr(o) || e.headers.has("rsc-action-id") || t.headers.get("React-Router-Resource") === "true")
1826
1859
  return t;
1827
1860
  if (!t.body)
1828
1861
  throw new Error("Missing body in server response");
1829
1862
  const s = t.clone();
1830
1863
  let i = null;
1831
1864
  n && (i = t.clone());
1832
- const u = t.body;
1865
+ const l = t.body;
1833
1866
  let h, p = [];
1834
1867
  const w = () => h ? new ReadableStream({
1835
1868
  start(m) {
1836
1869
  h.forEach((d) => m.enqueue(d)), p.push(m);
1837
1870
  }
1838
- }) : (h = [], u.pipeThrough(
1871
+ }) : (h = [], l.pipeThrough(
1839
1872
  new TransformStream({
1840
1873
  transform(m, d) {
1841
- h.push(m), d.enqueue(m), p.forEach((R) => R.enqueue(m));
1874
+ h.push(m), d.enqueue(m), p.forEach((S) => S.enqueue(m));
1842
1875
  },
1843
1876
  flush() {
1844
1877
  p.forEach((m) => m.close()), p = [];
@@ -1846,7 +1879,7 @@ async function hr({
1846
1879
  })
1847
1880
  ));
1848
1881
  let y = null;
1849
- const g = () => {
1882
+ const R = () => {
1850
1883
  const m = Promise.resolve(
1851
1884
  r(w())
1852
1885
  );
@@ -1868,165 +1901,165 @@ async function hr({
1868
1901
  }
1869
1902
  });
1870
1903
  };
1871
- let c, v;
1904
+ let f, g;
1872
1905
  try {
1873
1906
  if (!s.body)
1874
1907
  throw new Error("Failed to clone server response");
1875
1908
  const m = await r(
1876
1909
  s.body
1877
1910
  );
1878
- if (t.status === _e && m.type === "redirect") {
1879
- const x = new Headers(t.headers);
1880
- return x.delete("Content-Encoding"), x.delete("Content-Length"), x.delete("Content-Type"), x.delete("X-Remix-Response"), x.set("Location", m.location), new Response(i?.body || "", {
1881
- headers: x,
1911
+ if (t.status === Ae && m.type === "redirect") {
1912
+ const _ = new Headers(t.headers);
1913
+ return _.delete("Content-Encoding"), _.delete("Content-Length"), _.delete("Content-Type"), _.delete("X-Remix-Response"), _.set("Location", m.location), new Response(i?.body || "", {
1914
+ headers: _,
1882
1915
  status: m.status,
1883
1916
  statusText: t.statusText
1884
1917
  });
1885
1918
  }
1886
- let d = new Headers(), R = t.status, S = t.statusText, b = await a(g, {
1887
- onError(x) {
1888
- if (typeof x == "object" && x && "digest" in x && typeof x.digest == "string") {
1889
- if (c = oe(x.digest), c)
1890
- return x.digest;
1891
- let C = ie(x.digest);
1892
- if (C)
1893
- return v = C, R = C.status, S = C.statusText, x.digest;
1919
+ let d = new Headers(), S = t.status, C = t.statusText, b = await a(R, {
1920
+ onError(_) {
1921
+ if (typeof _ == "object" && _ && "digest" in _ && typeof _.digest == "string") {
1922
+ if (f = ie(_.digest), f)
1923
+ return _.digest;
1924
+ let E = le(_.digest);
1925
+ if (E)
1926
+ return g = E, S = E.status, C = E.statusText, _.digest;
1894
1927
  }
1895
1928
  },
1896
- onHeaders(x) {
1897
- for (const [C, D] of x)
1898
- d.append(C, D);
1929
+ onHeaders(_) {
1930
+ for (const [E, T] of _)
1931
+ d.append(E, T);
1899
1932
  }
1900
1933
  });
1901
- const E = new Headers(d);
1902
- for (const [x, C] of t.headers)
1903
- E.append(x, C);
1904
- if (E.set("Content-Type", "text/html; charset=utf-8"), c)
1905
- return E.set("Location", c.location), new Response(b, {
1906
- status: c.status,
1907
- headers: E
1934
+ const v = new Headers(d);
1935
+ for (const [_, E] of t.headers)
1936
+ v.append(_, E);
1937
+ if (v.set("Content-Type", "text/html; charset=utf-8"), f)
1938
+ return v.set("Location", f.location), new Response(b, {
1939
+ status: f.status,
1940
+ headers: v
1908
1941
  });
1909
- const _ = new TransformStream({
1910
- flush(x) {
1911
- c && x.enqueue(
1942
+ const x = new TransformStream({
1943
+ flush(_) {
1944
+ f && _.enqueue(
1912
1945
  new TextEncoder().encode(
1913
- `<meta http-equiv="refresh" content="0;url=${Q(c.location)}"/>`
1946
+ `<meta http-equiv="refresh" content="0;url=${G(f.location)}"/>`
1914
1947
  )
1915
1948
  );
1916
1949
  }
1917
1950
  });
1918
1951
  if (!n)
1919
- return new Response(b.pipeThrough(_), {
1920
- status: R,
1921
- statusText: S,
1922
- headers: E
1952
+ return new Response(b.pipeThrough(x), {
1953
+ status: S,
1954
+ statusText: C,
1955
+ headers: v
1923
1956
  });
1924
1957
  if (!i?.body)
1925
1958
  throw new Error("Failed to clone server response");
1926
- const F = b.pipeThrough(Se(i.body)).pipeThrough(_);
1927
- return new Response(F, {
1928
- status: R,
1929
- statusText: S,
1930
- headers: E
1959
+ const P = b.pipeThrough(ve(i.body)).pipeThrough(x);
1960
+ return new Response(P, {
1961
+ status: S,
1962
+ statusText: C,
1963
+ headers: v
1931
1964
  });
1932
1965
  } catch (m) {
1933
1966
  if (m instanceof Response)
1934
1967
  return m;
1935
- if (c)
1936
- return new Response(`Redirect: ${c.location}`, {
1937
- status: c.status,
1968
+ if (f)
1969
+ return new Response(`Redirect: ${f.location}`, {
1970
+ status: f.status,
1938
1971
  headers: {
1939
- Location: c.location
1972
+ Location: f.location
1940
1973
  }
1941
1974
  });
1942
1975
  try {
1943
- m = v ?? m;
1944
- let [d, R] = P(m) ? [m.status, m.statusText] : [500, ""], S, b = new Headers();
1945
- const E = await a(
1976
+ m = g ?? m;
1977
+ let [d, S] = F(m) ? [m.status, m.statusText] : [500, ""], C, b = new Headers();
1978
+ const v = await a(
1946
1979
  () => {
1947
- const D = Promise.resolve(
1980
+ const T = Promise.resolve(
1948
1981
  r(w())
1949
1982
  ).then(
1950
- (H) => Object.assign(H, {
1983
+ (D) => Object.assign(D, {
1951
1984
  status: d,
1952
1985
  errors: y ? {
1953
1986
  [y]: m
1954
1987
  } : {}
1955
1988
  })
1956
1989
  );
1957
- return Object.defineProperties(D, {
1990
+ return Object.defineProperties(T, {
1958
1991
  _deepestRenderedBoundaryId: {
1959
1992
  get() {
1960
1993
  return y;
1961
1994
  },
1962
- set(H) {
1963
- y = H;
1995
+ set(D) {
1996
+ y = D;
1964
1997
  }
1965
1998
  },
1966
1999
  formState: {
1967
2000
  get() {
1968
- return D.then(
1969
- (H) => H.type === "render" ? H.formState : void 0
2001
+ return T.then(
2002
+ (D) => D.type === "render" ? D.formState : void 0
1970
2003
  );
1971
2004
  }
1972
2005
  }
1973
2006
  });
1974
2007
  },
1975
2008
  {
1976
- onError(C) {
1977
- if (typeof C == "object" && C && "digest" in C && typeof C.digest == "string") {
1978
- if (S = oe(C.digest), S)
1979
- return C.digest;
1980
- let D = ie(
1981
- C.digest
2009
+ onError(E) {
2010
+ if (typeof E == "object" && E && "digest" in E && typeof E.digest == "string") {
2011
+ if (C = ie(E.digest), C)
2012
+ return E.digest;
2013
+ let T = le(
2014
+ E.digest
1982
2015
  );
1983
- if (D)
1984
- return d = D.status, R = D.statusText, C.digest;
2016
+ if (T)
2017
+ return d = T.status, S = T.statusText, E.digest;
1985
2018
  }
1986
2019
  },
1987
- onHeaders(C) {
1988
- for (const [D, H] of C)
1989
- b.append(D, H);
2020
+ onHeaders(E) {
2021
+ for (const [T, D] of E)
2022
+ b.append(T, D);
1990
2023
  }
1991
2024
  }
1992
- ), _ = new Headers(b);
1993
- for (const [C, D] of t.headers)
1994
- _.append(C, D);
1995
- if (_.set("Content-Type", "text/html; charset=utf-8"), S)
1996
- return _.set("Location", S.location), new Response(E, {
1997
- status: S.status,
1998
- headers: _
2025
+ ), x = new Headers(b);
2026
+ for (const [E, T] of t.headers)
2027
+ x.append(E, T);
2028
+ if (x.set("Content-Type", "text/html; charset=utf-8"), C)
2029
+ return x.set("Location", C.location), new Response(v, {
2030
+ status: C.status,
2031
+ headers: x
1999
2032
  });
2000
- const F = new TransformStream({
2001
- flush(C) {
2002
- S && C.enqueue(
2033
+ const P = new TransformStream({
2034
+ flush(E) {
2035
+ C && E.enqueue(
2003
2036
  new TextEncoder().encode(
2004
- `<meta http-equiv="refresh" content="0;url=${Q(S.location)}"/>`
2037
+ `<meta http-equiv="refresh" content="0;url=${G(C.location)}"/>`
2005
2038
  )
2006
2039
  );
2007
2040
  }
2008
2041
  });
2009
2042
  if (!n)
2010
- return new Response(E.pipeThrough(F), {
2043
+ return new Response(v.pipeThrough(P), {
2011
2044
  status: d,
2012
- statusText: R,
2013
- headers: _
2045
+ statusText: S,
2046
+ headers: x
2014
2047
  });
2015
2048
  if (!i?.body)
2016
2049
  throw new Error("Failed to clone server response");
2017
- const x = E.pipeThrough(Se(i.body)).pipeThrough(F);
2018
- return new Response(x, {
2050
+ const _ = v.pipeThrough(ve(i.body)).pipeThrough(P);
2051
+ return new Response(_, {
2019
2052
  status: d,
2020
- statusText: R,
2021
- headers: _
2053
+ statusText: S,
2054
+ headers: x
2022
2055
  });
2023
2056
  } catch {
2024
2057
  }
2025
2058
  throw m;
2026
2059
  }
2027
2060
  }
2028
- function pr({ getPayload: e }) {
2029
- const t = e(), r = Yt(t);
2061
+ function yr({ getPayload: e }) {
2062
+ const t = e(), r = er(t);
2030
2063
  if (r.type === "redirect")
2031
2064
  throw new Response(null, {
2032
2065
  status: r.status,
@@ -2036,19 +2069,19 @@ function pr({ getPayload: e }) {
2036
2069
  });
2037
2070
  if (r.type !== "render") return null;
2038
2071
  let a = { ...r.loaderData };
2039
- for (const l of r.matches)
2040
- ee(
2041
- l.id,
2042
- l.clientLoader,
2043
- l.hasLoader,
2072
+ for (const u of r.matches)
2073
+ te(
2074
+ u.id,
2075
+ u.clientLoader,
2076
+ u.hasLoader,
2044
2077
  !1
2045
- ) && (l.hydrateFallbackElement || !l.hasLoader) && delete a[l.id];
2078
+ ) && (u.hydrateFallbackElement || !u.hasLoader) && delete a[u.id];
2046
2079
  const n = {
2047
2080
  get _deepestRenderedBoundaryId() {
2048
2081
  return t._deepestRenderedBoundaryId ?? null;
2049
2082
  },
2050
- set _deepestRenderedBoundaryId(l) {
2051
- t._deepestRenderedBoundaryId = l;
2083
+ set _deepestRenderedBoundaryId(u) {
2084
+ t._deepestRenderedBoundaryId = u;
2052
2085
  },
2053
2086
  actionData: r.actionData,
2054
2087
  actionHeaders: {},
@@ -2058,23 +2091,23 @@ function pr({ getPayload: e }) {
2058
2091
  loaderHeaders: {},
2059
2092
  location: r.location,
2060
2093
  statusCode: 200,
2061
- matches: r.matches.map((l) => ({
2062
- params: l.params,
2063
- pathname: l.pathname,
2064
- pathnameBase: l.pathnameBase,
2094
+ matches: r.matches.map((u) => ({
2095
+ params: u.params,
2096
+ pathname: u.pathname,
2097
+ pathnameBase: u.pathnameBase,
2065
2098
  route: {
2066
- id: l.id,
2067
- action: l.hasAction || !!l.clientAction,
2068
- handle: l.handle,
2069
- hasErrorBoundary: l.hasErrorBoundary,
2070
- loader: l.hasLoader || !!l.clientLoader,
2071
- index: l.index,
2072
- path: l.path,
2073
- shouldRevalidate: l.shouldRevalidate
2099
+ id: u.id,
2100
+ action: u.hasAction || !!u.clientAction,
2101
+ handle: u.handle,
2102
+ hasErrorBoundary: u.hasErrorBoundary,
2103
+ loader: u.hasLoader || !!u.clientLoader,
2104
+ index: u.index,
2105
+ path: u.path,
2106
+ shouldRevalidate: u.shouldRevalidate
2074
2107
  }
2075
2108
  }))
2076
- }, o = Ce(
2077
- r.matches.reduceRight((l, s) => {
2109
+ }, o = _e(
2110
+ r.matches.reduceRight((u, s) => {
2078
2111
  const i = {
2079
2112
  id: s.id,
2080
2113
  action: s.hasAction || !!s.clientAction,
@@ -2088,16 +2121,18 @@ function pr({ getPayload: e }) {
2088
2121
  path: s.path,
2089
2122
  shouldRevalidate: s.shouldRevalidate
2090
2123
  };
2091
- return l.length > 0 && (i.children = l), [i];
2124
+ return u.length > 0 && (i.children = u), [i];
2092
2125
  }, []),
2093
2126
  n
2094
- ), f = {
2127
+ ), c = {
2095
2128
  future: {
2096
2129
  // These flags have no runtime impact so can always be false. If we add
2097
2130
  // flags that drive runtime behavior they'll need to be proxied through.
2098
2131
  v8_middleware: !1,
2099
2132
  unstable_subResourceIntegrity: !1,
2100
- unstable_trailingSlashAwareDataRequests: !0
2133
+ unstable_trailingSlashAwareDataRequests: !0,
2134
+ // always on for RSC
2135
+ unstable_passThroughRequests: !0
2101
2136
  // always on for RSC
2102
2137
  },
2103
2138
  isSpaMode: !1,
@@ -2112,11 +2147,14 @@ function pr({ getPayload: e }) {
2112
2147
  imports: []
2113
2148
  }
2114
2149
  },
2115
- routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2116
- routeModules: Jt(r)
2150
+ routeDiscovery: r.routeDiscovery.mode === "initial" ? { mode: "initial", manifestPath: Ce } : {
2151
+ mode: "lazy",
2152
+ manifestPath: r.routeDiscovery.manifestPath || Ce
2153
+ },
2154
+ routeModules: Kt(r)
2117
2155
  };
2118
- return /* @__PURE__ */ k.createElement(Ge.Provider, { value: !0 }, /* @__PURE__ */ k.createElement(Xt, { location: r.location }, /* @__PURE__ */ k.createElement(te.Provider, { value: f }, /* @__PURE__ */ k.createElement(
2119
- be,
2156
+ return /* @__PURE__ */ k.createElement(Ze.Provider, { value: !0 }, /* @__PURE__ */ k.createElement(Qt, { location: r.location }, /* @__PURE__ */ k.createElement(re.Provider, { value: c }, /* @__PURE__ */ k.createElement(
2157
+ xe,
2120
2158
  {
2121
2159
  context: n,
2122
2160
  router: o,
@@ -2125,13 +2163,13 @@ function pr({ getPayload: e }) {
2125
2163
  }
2126
2164
  ))));
2127
2165
  }
2128
- function Zt(e) {
2166
+ function tr(e) {
2129
2167
  return e.pathname.endsWith(".rsc");
2130
2168
  }
2131
- function er(e) {
2169
+ function rr(e) {
2132
2170
  return e.pathname.endsWith(".manifest");
2133
2171
  }
2134
- function mr(e) {
2172
+ function wr(e) {
2135
2173
  if (!e) return null;
2136
2174
  let t = Object.entries(e), r = {};
2137
2175
  for (let [a, n] of t)
@@ -2147,8 +2185,8 @@ function mr(e) {
2147
2185
  let o = window[n.__subType];
2148
2186
  if (typeof o == "function")
2149
2187
  try {
2150
- let f = new o(n.message);
2151
- f.stack = n.stack, r[a] = f;
2188
+ let c = new o(n.message);
2189
+ c.stack = n.stack, r[a] = c;
2152
2190
  } catch {
2153
2191
  }
2154
2192
  }
@@ -2160,7 +2198,7 @@ function mr(e) {
2160
2198
  r[a] = n;
2161
2199
  return r;
2162
2200
  }
2163
- function yr({
2201
+ function gr({
2164
2202
  state: e,
2165
2203
  routes: t,
2166
2204
  getRouteInfo: r,
@@ -2168,25 +2206,25 @@ function yr({
2168
2206
  basename: n,
2169
2207
  isSpaMode: o
2170
2208
  }) {
2171
- let f = {
2209
+ let c = {
2172
2210
  ...e,
2173
2211
  loaderData: { ...e.loaderData }
2174
- }, l = xe(t, a, n);
2175
- if (l)
2176
- for (let s of l) {
2177
- let i = s.route.id, u = r(i);
2178
- ee(
2212
+ }, u = ke(t, a, n);
2213
+ if (u)
2214
+ for (let s of u) {
2215
+ let i = s.route.id, l = r(i);
2216
+ te(
2179
2217
  i,
2180
- u.clientLoader,
2181
- u.hasLoader,
2218
+ l.clientLoader,
2219
+ l.hasLoader,
2182
2220
  o
2183
- ) && (u.hasHydrateFallback || !u.hasLoader) ? delete f.loaderData[i] : u.hasLoader || (f.loaderData[i] = null);
2221
+ ) && (l.hasHydrateFallback || !l.hasLoader) ? delete c.loaderData[i] : l.hasLoader || (c.loaderData[i] = null);
2184
2222
  }
2185
- return f;
2223
+ return c;
2186
2224
  }
2187
- const wr = () => {
2188
- const e = se((a) => a.navigateTo), t = se((a) => a.navigateInHortiview);
2189
- return ze(
2225
+ const Rr = () => {
2226
+ const e = oe((a) => a.navigateTo), t = oe((a) => a.navigateInHortiview);
2227
+ return Ve(
2190
2228
  (a) => {
2191
2229
  if (t) {
2192
2230
  t(a);
@@ -2198,133 +2236,133 @@ const wr = () => {
2198
2236
  );
2199
2237
  };
2200
2238
  export {
2201
- Sr as Await,
2202
- vr as BrowserRouter,
2203
- Er as Form,
2204
- Cr as HashRouter,
2205
- br as IDLE_BLOCKER,
2206
- xr as IDLE_FETCHER,
2207
- _r as IDLE_NAVIGATION,
2208
- kr as Link,
2209
- Ar as Links,
2210
- Dr as MemoryRouter,
2211
- Hr as Meta,
2212
- Tr as NavLink,
2213
- Fr as Navigate,
2214
- Pr as NavigationType,
2215
- at as Outlet,
2239
+ Er as Await,
2240
+ Cr as BrowserRouter,
2241
+ br as Form,
2242
+ _r as HashRouter,
2243
+ xr as IDLE_BLOCKER,
2244
+ kr as IDLE_FETCHER,
2245
+ Ar as IDLE_NAVIGATION,
2246
+ Tr as Link,
2247
+ Dr as Links,
2248
+ Hr as MemoryRouter,
2249
+ Pr as Meta,
2250
+ Fr as NavLink,
2251
+ Ur as Navigate,
2252
+ Lr as NavigationType,
2253
+ st as Outlet,
2216
2254
  Nr as PrefetchPageLinks,
2217
- Ur as Route,
2218
- Lr as Router,
2255
+ Or as Route,
2256
+ Ir as Router,
2219
2257
  K as RouterContextProvider,
2220
- Qe as RouterProvider,
2221
- Or as Routes,
2222
- Ir as Scripts,
2223
- Br as ScrollRestoration,
2224
- nr as ServerRouter,
2225
- Mr as StaticRouter,
2226
- be as StaticRouterProvider,
2227
- $r as UNSAFE_AwaitContextProvider,
2228
- jr as UNSAFE_DataRouterContext,
2229
- zr as UNSAFE_DataRouterStateContext,
2258
+ Ye as RouterProvider,
2259
+ Br as Routes,
2260
+ Mr as Scripts,
2261
+ $r as ScrollRestoration,
2262
+ or as ServerRouter,
2263
+ zr as StaticRouter,
2264
+ xe as StaticRouterProvider,
2265
+ jr as UNSAFE_AwaitContextProvider,
2266
+ qr as UNSAFE_DataRouterContext,
2267
+ Vr as UNSAFE_DataRouterStateContext,
2230
2268
  O as UNSAFE_ErrorResponseImpl,
2231
- qr as UNSAFE_FetchersContext,
2232
- te as UNSAFE_FrameworkContext,
2233
- Vr as UNSAFE_LocationContext,
2234
- Wr as UNSAFE_NavigationContext,
2235
- fr as UNSAFE_RSCDefaultRootErrorBoundary,
2236
- Ve as UNSAFE_RemixErrorBoundary,
2237
- Xr as UNSAFE_RouteContext,
2238
- _t as UNSAFE_ServerMode,
2269
+ Wr as UNSAFE_FetchersContext,
2270
+ re as UNSAFE_FrameworkContext,
2271
+ Xr as UNSAFE_LocationContext,
2272
+ Jr as UNSAFE_NavigationContext,
2273
+ pr as UNSAFE_RSCDefaultRootErrorBoundary,
2274
+ Xe as UNSAFE_RemixErrorBoundary,
2275
+ Qr as UNSAFE_RouteContext,
2276
+ At as UNSAFE_ServerMode,
2239
2277
  I as UNSAFE_SingleFetchRedirectSymbol,
2240
- Jr as UNSAFE_ViewTransitionContext,
2241
- Kr as UNSAFE_WithComponentProps,
2242
- Qr as UNSAFE_WithErrorBoundaryProps,
2243
- Gr as UNSAFE_WithHydrateFallbackProps,
2244
- Yr as UNSAFE_createBrowserHistory,
2245
- Zr as UNSAFE_createClientRoutes,
2246
- ea as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
2247
- ta as UNSAFE_createHashHistory,
2248
- ra as UNSAFE_createMemoryHistory,
2249
- aa as UNSAFE_createRouter,
2250
- nt as UNSAFE_decodeViaTurboStream,
2251
- mr as UNSAFE_deserializeErrors,
2252
- yr as UNSAFE_getHydrationData,
2253
- na as UNSAFE_getPatchRoutesOnNavigationFunction,
2254
- sa as UNSAFE_getTurboStreamSingleFetchDataStrategy,
2255
- oa as UNSAFE_hydrationRouteProperties,
2256
- ia as UNSAFE_invariant,
2257
- la as UNSAFE_mapRouteProperties,
2258
- ee as UNSAFE_shouldHydrateRouteLoader,
2259
- ua as UNSAFE_useFogOFWarDiscovery,
2260
- da as UNSAFE_useScrollRestoration,
2261
- rt as UNSAFE_withComponentProps,
2262
- et as UNSAFE_withErrorBoundaryProps,
2263
- tt as UNSAFE_withHydrateFallbackProps,
2264
- ca as createBrowserRouter,
2265
- fa as createContext,
2266
- He as createCookie,
2267
- ur as createCookieSessionStorage,
2268
- ha as createHashRouter,
2269
- Ke as createMemoryRouter,
2270
- dr as createMemorySessionStorage,
2271
- pa as createPath,
2272
- ir as createRequestHandler,
2273
- ma as createRoutesFromChildren,
2274
- ya as createRoutesFromElements,
2275
- sr as createRoutesStub,
2276
- wa as createSearchParams,
2277
- Me as createSession,
2278
- zt as createSessionStorage,
2279
- ga as createStaticHandler,
2280
- Ce as createStaticRouter,
2281
- Ra as data,
2282
- Sa as generatePath,
2283
- cr as href,
2284
- Te as isCookie,
2285
- P as isRouteErrorResponse,
2286
- lr as isSession,
2287
- va as matchPath,
2288
- xe as matchRoutes,
2289
- Ea as parsePath,
2290
- it as redirect,
2291
- st as redirectDocument,
2292
- Ca as renderMatches,
2293
- ot as replace,
2294
- ba as resolvePath,
2295
- xa as unstable_HistoryRouter,
2296
- pr as unstable_RSCStaticRouter,
2297
- hr as unstable_routeRSCServerRequest,
2298
- or as unstable_setDevServerHooks,
2299
- _a as unstable_usePrompt,
2300
- ka as unstable_useRoute,
2301
- Aa as useActionData,
2302
- Da as useAsyncError,
2303
- Ha as useAsyncValue,
2304
- Ta as useBeforeUnload,
2305
- Fa as useBlocker,
2306
- Pa as useFetcher,
2278
+ Kr as UNSAFE_ViewTransitionContext,
2279
+ Gr as UNSAFE_WithComponentProps,
2280
+ Yr as UNSAFE_WithErrorBoundaryProps,
2281
+ Zr as UNSAFE_WithHydrateFallbackProps,
2282
+ ea as UNSAFE_createBrowserHistory,
2283
+ ta as UNSAFE_createClientRoutes,
2284
+ ra as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
2285
+ aa as UNSAFE_createHashHistory,
2286
+ na as UNSAFE_createMemoryHistory,
2287
+ sa as UNSAFE_createRouter,
2288
+ ot as UNSAFE_decodeViaTurboStream,
2289
+ wr as UNSAFE_deserializeErrors,
2290
+ gr as UNSAFE_getHydrationData,
2291
+ oa as UNSAFE_getPatchRoutesOnNavigationFunction,
2292
+ ia as UNSAFE_getTurboStreamSingleFetchDataStrategy,
2293
+ la as UNSAFE_hydrationRouteProperties,
2294
+ ua as UNSAFE_invariant,
2295
+ da as UNSAFE_mapRouteProperties,
2296
+ te as UNSAFE_shouldHydrateRouteLoader,
2297
+ ca as UNSAFE_useFogOFWarDiscovery,
2298
+ fa as UNSAFE_useScrollRestoration,
2299
+ nt as UNSAFE_withComponentProps,
2300
+ rt as UNSAFE_withErrorBoundaryProps,
2301
+ at as UNSAFE_withHydrateFallbackProps,
2302
+ ha as createBrowserRouter,
2303
+ pa as createContext,
2304
+ Pe as createCookie,
2305
+ cr as createCookieSessionStorage,
2306
+ ma as createHashRouter,
2307
+ Ge as createMemoryRouter,
2308
+ fr as createMemorySessionStorage,
2309
+ ya as createPath,
2310
+ ur as createRequestHandler,
2311
+ wa as createRoutesFromChildren,
2312
+ ga as createRoutesFromElements,
2313
+ ir as createRoutesStub,
2314
+ Ra as createSearchParams,
2315
+ ze as createSession,
2316
+ Vt as createSessionStorage,
2317
+ Sa as createStaticHandler,
2318
+ _e as createStaticRouter,
2319
+ va as data,
2320
+ Ea as generatePath,
2321
+ hr as href,
2322
+ Fe as isCookie,
2323
+ F as isRouteErrorResponse,
2324
+ dr as isSession,
2325
+ Ca as matchPath,
2326
+ ke as matchRoutes,
2327
+ ba as parsePath,
2328
+ ut as redirect,
2329
+ it as redirectDocument,
2330
+ _a as renderMatches,
2331
+ lt as replace,
2332
+ xa as resolvePath,
2333
+ ka as unstable_HistoryRouter,
2334
+ yr as unstable_RSCStaticRouter,
2335
+ mr as unstable_routeRSCServerRequest,
2336
+ lr as unstable_setDevServerHooks,
2337
+ Aa as unstable_usePrompt,
2338
+ Ta as unstable_useRoute,
2339
+ Da as useActionData,
2340
+ Ha as useAsyncError,
2341
+ Pa as useAsyncValue,
2342
+ Fa as useBeforeUnload,
2343
+ Ua as useBlocker,
2344
+ La as useFetcher,
2307
2345
  Na as useFetchers,
2308
- Ua as useFormAction,
2309
- La as useHref,
2310
- Oa as useInRouterContext,
2311
- Ia as useLinkClickHandler,
2312
- Ba as useLoaderData,
2313
- Ma as useLocation,
2314
- $a as useMatch,
2315
- ja as useMatches,
2316
- wr as useNavigate,
2317
- za as useNavigation,
2318
- qa as useNavigationType,
2319
- Va as useOutlet,
2320
- Wa as useOutletContext,
2321
- Xa as useParams,
2322
- Ja as useResolvedPath,
2323
- Ka as useRevalidator,
2324
- Xe as useRouteError,
2325
- Qa as useRouteLoaderData,
2326
- Ga as useRoutes,
2327
- Ya as useSearchParams,
2328
- Za as useSubmit,
2329
- en as useViewTransitionState
2346
+ Oa as useFormAction,
2347
+ Ia as useHref,
2348
+ Ba as useInRouterContext,
2349
+ Ma as useLinkClickHandler,
2350
+ $a as useLoaderData,
2351
+ za as useLocation,
2352
+ ja as useMatch,
2353
+ qa as useMatches,
2354
+ Rr as useNavigate,
2355
+ Va as useNavigation,
2356
+ Wa as useNavigationType,
2357
+ Xa as useOutlet,
2358
+ Ja as useOutletContext,
2359
+ Qa as useParams,
2360
+ Ka as useResolvedPath,
2361
+ Ga as useRevalidator,
2362
+ Qe as useRouteError,
2363
+ Ya as useRouteLoaderData,
2364
+ Za as useRoutes,
2365
+ en as useSearchParams,
2366
+ tn as useSubmit,
2367
+ rn as useViewTransitionState
2330
2368
  };