@kitbag/router 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var ve = Object.defineProperty;
2
- var we = (t, e, n) => e in t ? ve(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var $ = (t, e, n) => (we(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { inject as ct, computed as H, toValue as ft, toRefs as Ee, reactive as Ot, watch as Pe, onUnmounted as _t, defineComponent as Y, openBlock as qt, createElementBlock as be, normalizeClass as Se, renderSlot as Dt, normalizeProps as Mt, guardReactiveProps as Tt, unref as tt, provide as ke, defineAsyncComponent as xe, createBlock as Ae, resolveDynamicComponent as Le, h as et, ref as Ue, markRaw as ht } from "vue";
5
- class it extends Error {
1
+ var Se = Object.defineProperty;
2
+ var xe = (t, e, n) => e in t ? Se(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var j = (t, e, n) => (xe(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ import { inject as lt, computed as H, toValue as dt, toRefs as Ae, reactive as Tt, watch as Le, onUnmounted as It, defineComponent as et, openBlock as Ft, createElementBlock as Ue, normalizeClass as Be, renderSlot as Jt, normalizeProps as Qt, guardReactiveProps as Kt, unref as rt, provide as Ne, defineAsyncComponent as He, createBlock as $e, resolveDynamicComponent as je, h as ot, ref as Ve, markRaw as at } from "vue";
5
+ class ht extends Error {
6
6
  /**
7
7
  * Constructs a new DuplicateParamsError instance with a message indicating the problematic parameter.
8
8
  * @param paramName - The name of the parameter that was duplicated.
@@ -11,12 +11,12 @@ class it extends Error {
11
11
  super(`Invalid Param "${e}": Router does not support multiple params by the same name. All param names must be unique.`);
12
12
  }
13
13
  }
14
- class mt extends Error {
14
+ class gt extends Error {
15
15
  constructor() {
16
16
  super("Router not installed");
17
17
  }
18
18
  }
19
- class Be extends Error {
19
+ class Ce extends Error {
20
20
  /**
21
21
  * Constructs a new UseRouteInvalidError instance with a message that specifies both the given and expected route names.
22
22
  * This detailed error message aids in quickly identifying and resolving mismatches in route usage.
@@ -27,307 +27,307 @@ class Be extends Error {
27
27
  super(`useRoute called with incorrect route. Given ${e}, expected ${n}`);
28
28
  }
29
29
  }
30
- const Wt = Symbol();
31
- function Rt() {
32
- const t = ct(Wt);
30
+ const Gt = Symbol();
31
+ function vt() {
32
+ const t = lt(Gt);
33
33
  if (!t)
34
- throw new mt();
34
+ throw new gt();
35
35
  return t;
36
36
  }
37
- class I extends Error {
37
+ class K extends Error {
38
38
  }
39
- function W(t) {
39
+ function J(t) {
40
40
  return typeof t != "string" ? !1 : /^(https?:\/\/|\/).*/g.test(t);
41
41
  }
42
- function He(t, e = {}, n = {}) {
43
- const r = Rt(), o = H(() => ft(t)), a = H(() => ft(e)), s = H(() => ft(n)), c = H(() => {
44
- if (W(o.value))
45
- return o.value;
42
+ function qe(t, e = {}, n = {}) {
43
+ const o = vt(), r = H(() => dt(t)), a = H(() => dt(e)), s = H(() => dt(n)), c = H(() => {
44
+ if (J(r.value))
45
+ return r.value;
46
46
  try {
47
- return r.resolve(o.value, a.value, s.value);
48
- } catch (d) {
49
- throw d instanceof I && console.error(`Failed to resolve route "${o.value.toString()}" in RouterLink.`, d), d;
47
+ return o.resolve(r.value, a.value, s.value);
48
+ } catch (m) {
49
+ throw m instanceof K && console.error(`Failed to resolve route "${r.value.toString()}" in RouterLink.`, m), m;
50
50
  }
51
- }), u = H(() => r.find(c.value, s.value)), f = H(() => !!u.value && r.route.matches.includes(u.value.matched)), h = H(() => !!u.value && r.route.matched === u.value.matched);
51
+ }), u = H(() => o.find(c.value, s.value)), f = H(() => !!u.value && o.route.matches.includes(u.value.matched)), h = H(() => !!u.value && o.route.matched === u.value.matched);
52
52
  return {
53
53
  route: u,
54
54
  href: c,
55
55
  isMatch: f,
56
56
  isExactMatch: h,
57
- push: (d) => r.push(c.value, {}, { ...s.value, ...d }),
58
- replace: (d) => r.replace(c.value, {}, { ...s.value, ...d })
57
+ push: (m) => o.push(c.value, {}, { ...s.value, ...m }),
58
+ replace: (m) => o.replace(c.value, {}, { ...s.value, ...m })
59
59
  };
60
60
  }
61
- const Ft = Symbol();
62
- function Ne() {
63
- const t = ct(Ft);
61
+ const zt = Symbol();
62
+ function _e() {
63
+ const t = lt(zt);
64
64
  if (!t)
65
- throw new mt();
65
+ throw new gt();
66
66
  return t;
67
67
  }
68
- function It(t, e) {
68
+ function wt(t, e) {
69
69
  return [t, e].filter((n) => !!n).join(".");
70
70
  }
71
- const Jt = Symbol("isRouterRouteSymbol");
72
- function $e(t) {
73
- return typeof t == "object" && t !== null && Jt in t;
71
+ const Yt = Symbol("isRouterRouteSymbol");
72
+ function Oe(t) {
73
+ return typeof t == "object" && t !== null && Yt in t;
74
74
  }
75
- function je(t, e) {
76
- function n(f, h, d) {
75
+ function De(t, e) {
76
+ function n(f, h, m) {
77
77
  if (typeof f == "object") {
78
- const p = {
78
+ const y = {
79
79
  ...t.params,
80
80
  ...f
81
81
  };
82
- return e(t.key, p, h);
82
+ return e(t.key, y, h);
83
83
  }
84
84
  const b = {
85
85
  ...t.params,
86
86
  [f]: h
87
87
  };
88
- return e(t.key, b, d);
88
+ return e(t.key, b, m);
89
89
  }
90
- const { matched: r, matches: o, key: a, query: s, params: c } = Ee(t), u = Ot({
91
- matched: r,
92
- matches: o,
90
+ const { matched: o, matches: r, key: a, query: s, params: c } = Ae(t), u = Tt({
91
+ matched: o,
92
+ matches: r,
93
93
  query: s,
94
94
  params: c,
95
95
  key: a,
96
96
  update: n,
97
- [Jt]: !0
97
+ [Yt]: !0
98
98
  });
99
99
  return new Proxy(u, {
100
- get: (f, h, d) => h === "params" ? new Proxy(t.params, {
101
- set(b, p, E) {
102
- return n(p, E), !0;
100
+ get: (f, h, m) => h === "params" ? new Proxy(t.params, {
101
+ set(b, y, k) {
102
+ return n(y, k), !0;
103
103
  }
104
- }) : Reflect.get(f, h, d)
104
+ }) : Reflect.get(f, h, m)
105
105
  });
106
106
  }
107
- function Ve(t, e, { exact: n } = {}) {
108
- if (!$e(t))
107
+ function Me(t, e, { exact: n } = {}) {
108
+ if (!Oe(t))
109
109
  return !1;
110
110
  if (e === void 0)
111
111
  return !0;
112
- const r = Ce(t);
112
+ const o = We(t);
113
113
  if (n) {
114
- const o = r.at(-1);
115
- return e === o;
114
+ const r = o.at(-1);
115
+ return e === r;
116
116
  }
117
- return r.includes(e);
117
+ return o.includes(e);
118
118
  }
119
- function Ce(t) {
120
- return t.matches.map((n) => n.name).reduce((n, r) => {
121
- const o = n.pop(), a = r ? [It(o, r)] : [];
122
- return o ? [
119
+ function We(t) {
120
+ return t.matches.map((n) => n.name).reduce((n, o) => {
121
+ const r = n.pop(), a = o ? [wt(r, o)] : [];
122
+ return r ? [
123
123
  ...n,
124
- o,
124
+ r,
125
125
  ...a
126
126
  ] : a;
127
127
  }, []);
128
128
  }
129
- function Oe(t, { exact: e } = {}) {
130
- const n = Rt();
131
- function r() {
129
+ function Te(t, e) {
130
+ const n = vt();
131
+ function o() {
132
132
  if (!t)
133
133
  return;
134
- if (!Ve(n.route, t, { exact: e }))
135
- throw new Be(t, n.route.key);
134
+ if (!Me(n.route, t, e))
135
+ throw new Ce(t, n.route.key);
136
136
  }
137
- return Pe(n.route, r, { immediate: !0, deep: !0 }), n.route;
137
+ return Le(n.route, o, { immediate: !0, deep: !0 }), n.route;
138
138
  }
139
- const Kt = Symbol();
140
- function yt() {
141
- return ct(Kt, 0);
139
+ const Xt = Symbol();
140
+ function Et() {
141
+ return lt(Xt, 0);
142
142
  }
143
- class nt {
143
+ class st {
144
144
  constructor() {
145
- $(this, "onBeforeRouteEnter", /* @__PURE__ */ new Set());
146
- $(this, "onBeforeRouteUpdate", /* @__PURE__ */ new Set());
147
- $(this, "onBeforeRouteLeave", /* @__PURE__ */ new Set());
148
- $(this, "onAfterRouteEnter", /* @__PURE__ */ new Set());
149
- $(this, "onAfterRouteUpdate", /* @__PURE__ */ new Set());
150
- $(this, "onAfterRouteLeave", /* @__PURE__ */ new Set());
145
+ j(this, "onBeforeRouteEnter", /* @__PURE__ */ new Set());
146
+ j(this, "onBeforeRouteUpdate", /* @__PURE__ */ new Set());
147
+ j(this, "onBeforeRouteLeave", /* @__PURE__ */ new Set());
148
+ j(this, "onAfterRouteEnter", /* @__PURE__ */ new Set());
149
+ j(this, "onAfterRouteUpdate", /* @__PURE__ */ new Set());
150
+ j(this, "onAfterRouteLeave", /* @__PURE__ */ new Set());
151
151
  }
152
152
  }
153
- class Ut extends Error {
153
+ class $t extends Error {
154
154
  }
155
- class G extends Error {
155
+ class Z extends Error {
156
156
  constructor(n) {
157
157
  super("Error occurred during a router push operation.");
158
- $(this, "to");
158
+ j(this, "to");
159
159
  this.to = n;
160
160
  }
161
161
  }
162
- class lt extends Error {
162
+ class mt extends Error {
163
163
  constructor(n) {
164
164
  super(`Routing action rejected: ${n}`);
165
- $(this, "type");
165
+ j(this, "type");
166
166
  this.type = n;
167
167
  }
168
168
  }
169
- function F(t) {
169
+ function Q(t) {
170
170
  return Array.isArray(t) ? t : [t];
171
171
  }
172
- function _e(t, e) {
173
- const n = new nt();
174
- return t.matches.forEach((r, o) => {
175
- r.onBeforeRouteEnter && gt(t, e, o) && F(r.onBeforeRouteEnter).forEach((a) => n.onBeforeRouteEnter.add(a)), r.onBeforeRouteUpdate && wt(t, e, o) && F(r.onBeforeRouteUpdate).forEach((a) => n.onBeforeRouteUpdate.add(a));
176
- }), e.matches.forEach((r, o) => {
177
- r.onBeforeRouteLeave && vt(t, e, o) && F(r.onBeforeRouteLeave).forEach((a) => n.onBeforeRouteLeave.add(a));
172
+ function Ie(t, e) {
173
+ const n = new st();
174
+ return t.matches.forEach((o, r) => {
175
+ o.onBeforeRouteEnter && bt(t, e, r) && Q(o.onBeforeRouteEnter).forEach((a) => n.onBeforeRouteEnter.add(a)), o.onBeforeRouteUpdate && kt(t, e, r) && Q(o.onBeforeRouteUpdate).forEach((a) => n.onBeforeRouteUpdate.add(a));
176
+ }), e.matches.forEach((o, r) => {
177
+ o.onBeforeRouteLeave && Pt(t, e, r) && Q(o.onBeforeRouteLeave).forEach((a) => n.onBeforeRouteLeave.add(a));
178
178
  }), n;
179
179
  }
180
- function qe(t, e) {
181
- const n = new nt();
182
- return t.matches.forEach((r, o) => {
183
- r.onAfterRouteEnter && gt(t, e, o) && F(r.onAfterRouteEnter).forEach((a) => n.onAfterRouteEnter.add(a)), r.onAfterRouteUpdate && wt(t, e, o) && F(r.onAfterRouteUpdate).forEach((a) => n.onAfterRouteUpdate.add(a));
184
- }), e.matches.forEach((r, o) => {
185
- r.onAfterRouteLeave && vt(t, e, o) && F(r.onAfterRouteLeave).forEach((a) => n.onAfterRouteLeave.add(a));
180
+ function Fe(t, e) {
181
+ const n = new st();
182
+ return t.matches.forEach((o, r) => {
183
+ o.onAfterRouteEnter && bt(t, e, r) && Q(o.onAfterRouteEnter).forEach((a) => n.onAfterRouteEnter.add(a)), o.onAfterRouteUpdate && kt(t, e, r) && Q(o.onAfterRouteUpdate).forEach((a) => n.onAfterRouteUpdate.add(a));
184
+ }), e.matches.forEach((o, r) => {
185
+ o.onAfterRouteLeave && Pt(t, e, r) && Q(o.onAfterRouteLeave).forEach((a) => n.onAfterRouteLeave.add(a));
186
186
  }), n;
187
187
  }
188
- function De() {
188
+ function Je() {
189
189
  const t = (s) => {
190
- throw new lt(s);
190
+ throw new mt(s);
191
191
  }, e = (...s) => {
192
- throw new G(s);
192
+ throw new Z(s);
193
193
  }, n = (s, c, u) => {
194
- if (W(s)) {
195
- const d = c ?? {};
196
- throw new G([s, { ...d, replace: !0 }]);
194
+ if (J(s)) {
195
+ const m = c ?? {};
196
+ throw new Z([s, { ...m, replace: !0 }]);
197
197
  }
198
198
  const f = c, h = u ?? {};
199
- throw new G([s, f, { ...h, replace: !0 }]);
200
- }, r = () => {
201
- throw new Ut();
199
+ throw new Z([s, f, { ...h, replace: !0 }]);
200
+ }, o = () => {
201
+ throw new $t();
202
202
  };
203
- async function o({ to: s, from: c, hooks: u }) {
204
- const { global: f, component: h } = u, d = _e(s, c), b = [
203
+ async function r({ to: s, from: c, hooks: u }) {
204
+ const { global: f, component: h } = u, m = Ie(s, c), b = [
205
205
  ...f.onBeforeRouteEnter,
206
- ...d.onBeforeRouteEnter,
206
+ ...m.onBeforeRouteEnter,
207
207
  ...f.onBeforeRouteUpdate,
208
- ...d.onBeforeRouteUpdate,
208
+ ...m.onBeforeRouteUpdate,
209
209
  ...h.onBeforeRouteUpdate,
210
210
  ...f.onBeforeRouteLeave,
211
- ...d.onBeforeRouteLeave,
211
+ ...m.onBeforeRouteLeave,
212
212
  ...h.onBeforeRouteLeave
213
213
  ];
214
214
  try {
215
- const p = b.map((E) => E(s, {
215
+ const y = b.map((k) => k(s, {
216
216
  from: c,
217
217
  reject: t,
218
218
  push: e,
219
219
  replace: n,
220
- abort: r
220
+ abort: o
221
221
  }));
222
- await Promise.all(p);
223
- } catch (p) {
224
- if (p instanceof G)
222
+ await Promise.all(y);
223
+ } catch (y) {
224
+ if (y instanceof Z)
225
225
  return {
226
226
  status: "PUSH",
227
- to: p.to
227
+ to: y.to
228
228
  };
229
- if (p instanceof lt)
229
+ if (y instanceof mt)
230
230
  return {
231
231
  status: "REJECT",
232
- type: p.type
232
+ type: y.type
233
233
  };
234
- if (p instanceof Ut)
234
+ if (y instanceof $t)
235
235
  return {
236
236
  status: "ABORT"
237
237
  };
238
- throw p;
238
+ throw y;
239
239
  }
240
240
  return {
241
241
  status: "SUCCESS"
242
242
  };
243
243
  }
244
244
  async function a({ to: s, from: c, hooks: u }) {
245
- const { global: f, component: h } = u, d = qe(s, c), b = [
245
+ const { global: f, component: h } = u, m = Fe(s, c), b = [
246
246
  ...h.onAfterRouteLeave,
247
- ...d.onAfterRouteLeave,
247
+ ...m.onAfterRouteLeave,
248
248
  ...f.onAfterRouteLeave,
249
249
  ...h.onAfterRouteUpdate,
250
- ...d.onAfterRouteUpdate,
250
+ ...m.onAfterRouteUpdate,
251
251
  ...f.onAfterRouteUpdate,
252
252
  ...h.onAfterRouteEnter,
253
- ...d.onAfterRouteEnter,
253
+ ...m.onAfterRouteEnter,
254
254
  ...f.onAfterRouteEnter
255
255
  ];
256
256
  try {
257
- const p = b.map((E) => E(s, {
257
+ const y = b.map((k) => k(s, {
258
258
  from: c,
259
259
  reject: t,
260
260
  push: e,
261
261
  replace: n
262
262
  }));
263
- await Promise.all(p);
264
- } catch (p) {
265
- if (p instanceof G)
263
+ await Promise.all(y);
264
+ } catch (y) {
265
+ if (y instanceof Z)
266
266
  return {
267
267
  status: "PUSH",
268
- to: p.to
268
+ to: y.to
269
269
  };
270
- if (p instanceof lt)
270
+ if (y instanceof mt)
271
271
  return {
272
272
  status: "REJECT",
273
- type: p.type
273
+ type: y.type
274
274
  };
275
- throw p;
275
+ throw y;
276
276
  }
277
277
  return {
278
278
  status: "SUCCESS"
279
279
  };
280
280
  }
281
281
  return {
282
- runBeforeRouteHooks: o,
282
+ runBeforeRouteHooks: r,
283
283
  runAfterRouteHooks: a
284
284
  };
285
285
  }
286
- const gt = (t, e, n) => {
287
- const r = t.matches, o = (e == null ? void 0 : e.matches) ?? [];
288
- return r.length < n || r[n] !== o[n];
289
- }, vt = (t, e, n) => {
290
- const r = t.matches, o = (e == null ? void 0 : e.matches) ?? [];
291
- return r.length < n || r[n] !== o[n];
292
- }, wt = (t, e, n) => t.matches[n] === (e == null ? void 0 : e.matches[n]);
293
- function Bt(t) {
286
+ const bt = (t, e, n) => {
287
+ const o = t.matches, r = (e == null ? void 0 : e.matches) ?? [];
288
+ return o.length < n || o[n] !== r[n];
289
+ }, Pt = (t, e, n) => {
290
+ const o = t.matches, r = (e == null ? void 0 : e.matches) ?? [];
291
+ return o.length < n || o[n] !== r[n];
292
+ }, kt = (t, e, n) => t.matches[n] === (e == null ? void 0 : e.matches[n]);
293
+ function jt(t) {
294
294
  switch (t) {
295
295
  case "onBeforeRouteEnter":
296
296
  case "onAfterRouteEnter":
297
- return gt;
297
+ return bt;
298
298
  case "onBeforeRouteUpdate":
299
299
  case "onAfterRouteUpdate":
300
- return wt;
300
+ return kt;
301
301
  case "onBeforeRouteLeave":
302
302
  case "onAfterRouteLeave":
303
- return vt;
303
+ return Pt;
304
304
  default:
305
305
  throw new Error(`Switch is not exhaustive for lifecycle: ${t}`);
306
306
  }
307
307
  }
308
- class Me {
308
+ class Qe {
309
309
  constructor() {
310
- $(this, "global", new nt());
311
- $(this, "component", new nt());
310
+ j(this, "global", new st());
311
+ j(this, "component", new st());
312
312
  }
313
- addBeforeRouteHook({ lifecycle: e, timing: n, depth: r, hook: o }) {
314
- const a = Bt(e), s = this[n][e], c = (u, f) => {
315
- if (a(u, f.from, r))
316
- return o(u, f);
313
+ addBeforeRouteHook({ lifecycle: e, timing: n, depth: o, hook: r }) {
314
+ const a = jt(e), s = this[n][e], c = (u, f) => {
315
+ if (a(u, f.from, o))
316
+ return r(u, f);
317
317
  };
318
318
  return s.add(c), () => s.delete(c);
319
319
  }
320
- addAfterRouteHook({ lifecycle: e, timing: n, depth: r, hook: o }) {
321
- const a = Bt(e), s = this[n][e], c = (u, f) => {
322
- if (a(u, f.from, r))
323
- return o(u, f);
320
+ addAfterRouteHook({ lifecycle: e, timing: n, depth: o, hook: r }) {
321
+ const a = jt(e), s = this[n][e], c = (u, f) => {
322
+ if (a(u, f.from, o))
323
+ return r(u, f);
324
324
  };
325
325
  return s.add(c), () => s.delete(c);
326
326
  }
327
327
  }
328
- const Qt = Symbol();
329
- function Te() {
330
- const t = new Me();
328
+ const Zt = Symbol();
329
+ function Ke() {
330
+ const t = new Qe();
331
331
  return {
332
332
  onBeforeRouteEnter: (c) => t.addBeforeRouteHook({ lifecycle: "onBeforeRouteEnter", hook: c, timing: "global", depth: 0 }),
333
333
  onBeforeRouteUpdate: (c) => t.addBeforeRouteHook({ lifecycle: "onBeforeRouteUpdate", hook: c, timing: "global", depth: 0 }),
@@ -338,25 +338,25 @@ function Te() {
338
338
  hooks: t
339
339
  };
340
340
  }
341
- function Gt() {
342
- const t = ct(Qt);
341
+ function te() {
342
+ const t = lt(Zt);
343
343
  if (!t)
344
- throw new mt();
344
+ throw new gt();
345
345
  return t;
346
346
  }
347
- function zt(t) {
347
+ function ee(t) {
348
348
  return (e) => {
349
- const n = yt(), o = Gt().addBeforeRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
350
- return _t(o), o;
349
+ const n = Et(), r = te().addBeforeRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
350
+ return It(r), r;
351
351
  };
352
352
  }
353
- function Et(t) {
353
+ function St(t) {
354
354
  return (e) => {
355
- const n = yt(), o = Gt().addAfterRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
356
- return _t(o), o;
355
+ const n = Et(), r = te().addAfterRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
356
+ return It(r), r;
357
357
  };
358
358
  }
359
- const Jn = zt("onBeforeRouteUpdate"), Kn = zt("onBeforeRouteLeave"), Qn = Et("onAfterRouteEnter"), Gn = Et("onAfterRouteUpdate"), zn = Et("onAfterRouteLeave"), We = ["href"], Fe = /* @__PURE__ */ Y({
359
+ const Yn = ee("onBeforeRouteUpdate"), Xn = ee("onBeforeRouteLeave"), Zn = St("onAfterRouteEnter"), tr = St("onAfterRouteUpdate"), er = St("onAfterRouteLeave"), Ge = ["href"], ze = /* @__PURE__ */ et({
360
360
  __name: "routerLink",
361
361
  props: {
362
362
  to: { type: [String, Function] },
@@ -364,129 +364,116 @@ const Jn = zt("onBeforeRouteUpdate"), Kn = zt("onBeforeRouteLeave"), Qn = Et("on
364
364
  replace: { type: Boolean }
365
365
  },
366
366
  setup(t) {
367
- const e = t, n = Rt(), r = H(() => W(e.to) ? e.to : e.to(n.resolve)), o = H(() => {
368
- const { to: d, ...b } = e;
367
+ const e = t, n = vt(), o = H(() => J(e.to) ? e.to : e.to(n.resolve)), r = H(() => {
368
+ const { to: m, ...b } = e;
369
369
  return b;
370
- }), { href: a, isMatch: s, isExactMatch: c } = He(r), u = H(() => ({
370
+ }), { href: a, isMatch: s, isExactMatch: c } = qe(o), u = H(() => ({
371
371
  "router-link--match": s.value,
372
372
  "router-link--exact-match": c.value
373
- })), f = H(() => {
374
- const { host: d } = new URL(r.value, window.location.origin);
375
- return d !== window.location.host;
376
- });
377
- function h(d) {
378
- d.preventDefault(), n.push(a.value, o.value);
373
+ })), f = H(() => n.isExternal(o.value));
374
+ function h(m) {
375
+ m.preventDefault(), n.push(a.value, r.value);
379
376
  }
380
- return (d, b) => (qt(), be("a", {
381
- href: r.value,
382
- class: Se(["router-link", u.value]),
377
+ return (m, b) => (Ft(), Ue("a", {
378
+ href: o.value,
379
+ class: Be(["router-link", u.value]),
383
380
  onClick: h
384
381
  }, [
385
- Dt(d.$slots, "default", Mt(Tt({ resolved: r.value, isMatch: tt(s), isExactMatch: tt(c), isExternal: f.value })))
386
- ], 10, We));
382
+ Jt(m.$slots, "default", Qt(Kt({ resolved: o.value, isMatch: rt(s), isExactMatch: rt(c), isExternal: f.value })))
383
+ ], 10, Ge));
387
384
  }
388
385
  });
389
- function Yt(t) {
386
+ function ne(t) {
390
387
  return "children" in t;
391
388
  }
392
- function Ie(t) {
393
- return Yt(t) && !("component" in t) && !("components" in t);
389
+ function Ye(t) {
390
+ return ne(t) && !("component" in t) && !("components" in t);
394
391
  }
395
- function Je(t) {
392
+ function Xe(t) {
396
393
  return typeof t == "object" && t !== null && "component" in t;
397
394
  }
398
- function Ke(t) {
395
+ function Ze(t) {
399
396
  return typeof t == "object" && t !== null && "components" in t;
400
397
  }
401
- const Xt = /* @__PURE__ */ Y({
398
+ const re = /* @__PURE__ */ et({
402
399
  __name: "routerView",
403
400
  props: {
404
401
  name: {}
405
402
  },
406
403
  setup(t) {
407
- const { name: e = "default" } = t, n = Oe(), r = Ne(), o = yt();
408
- ke(Kt, o + 1);
404
+ const { name: e = "default" } = t, n = Te(), o = _e(), r = Et();
405
+ Ne(Xt, r + 1);
409
406
  const a = H(() => {
410
- if (r.value)
411
- return r.value.component;
412
- const c = n.matches.at(o);
407
+ if (o.value)
408
+ return o.value.component;
409
+ const c = n.matches.at(r);
413
410
  if (!c)
414
411
  return null;
415
412
  const f = s(c)[e];
416
- return f ? typeof f == "function" ? xe(f) : f : null;
413
+ return f ? typeof f == "function" ? He(f) : f : null;
417
414
  });
418
415
  function s(c) {
419
- return Ke(c) ? c.components : Je(c) ? { default: c.component } : {};
416
+ return Ze(c) ? c.components : Xe(c) ? { default: c.component } : {};
420
417
  }
421
- return (c, u) => Dt(c.$slots, "default", Mt(Tt({ route: tt(n), component: a.value, rejection: tt(r) })), () => [
422
- (qt(), Ae(Le(a.value)))
418
+ return (c, u) => Jt(c.$slots, "default", Qt(Kt({ route: rt(n), component: a.value, rejection: rt(o) })), () => [
419
+ (Ft(), $e(je(a.value)))
423
420
  ]);
424
421
  }
425
422
  });
426
- function Yn(t, e) {
427
- return Y({
423
+ function nr(t, e) {
424
+ return et({
428
425
  name: "PropsWrapper",
429
426
  expose: [],
430
427
  setup() {
431
428
  const n = e();
432
- return "then" in n ? () => et(Qe(t, n)) : () => et(t, n);
429
+ return "then" in n ? () => ot(tn(t, n)) : () => ot(t, n);
433
430
  }
434
431
  });
435
432
  }
436
- function Qe(t, e) {
437
- return Y({
433
+ function tn(t, e) {
434
+ return et({
438
435
  name: "AsyncPropsWrapper",
439
436
  expose: [],
440
437
  async setup() {
441
438
  const n = await e;
442
- return () => et(t, n);
439
+ return () => ot(t, n);
443
440
  }
444
441
  });
445
442
  }
446
- const Zt = Symbol();
447
- function Pt(t) {
448
- return Zt in t;
449
- }
450
- function Ge(t) {
451
- return {
452
- [Zt]: !0,
453
- ...oe(t)
454
- };
455
- }
456
- const J = "[", X = "]";
457
- function ze(t) {
443
+ const Y = "[", X = "]";
444
+ function en(t) {
458
445
  return t !== String && t !== Boolean && t !== Number && t !== Date;
459
446
  }
460
- function Ye(t) {
461
- return typeof t == "function" && ze(t);
447
+ function nn(t) {
448
+ return typeof t == "function" && en(t);
462
449
  }
463
- function ut(t) {
450
+ function pt(t) {
464
451
  return typeof t == "object" && "get" in t && typeof t.get == "function" && "set" in t && typeof t.set == "function";
465
452
  }
466
- function Xe(t) {
467
- return ut(t) && t.defaultValue !== void 0;
453
+ function rn(t) {
454
+ return pt(t) && t.defaultValue !== void 0;
468
455
  }
469
- function Xn(t, e) {
470
- return oe(t, e);
456
+ function rr(t, e) {
457
+ return sn(t, e);
471
458
  }
472
- function bt(t) {
459
+ function xt(t) {
473
460
  return typeof t == "string" && t.length > 0;
474
461
  }
475
- function Ze(t, e) {
462
+ function on(t, e) {
476
463
  return t[e] ?? String;
477
464
  }
478
- const N = {
465
+ const $ = {
479
466
  invalid: (t) => {
480
- throw new I(t);
467
+ throw new K(t);
481
468
  }
482
- }, tn = {
469
+ }, an = {
483
470
  get: (t) => t,
484
471
  set: (t, { invalid: e }) => {
485
472
  if (typeof t != "string")
486
473
  throw e();
487
474
  return t;
488
475
  }
489
- }, te = {
476
+ }, oe = {
490
477
  get: (t, { invalid: e }) => {
491
478
  if (t === "true")
492
479
  return !0;
@@ -499,7 +486,7 @@ const N = {
499
486
  throw e();
500
487
  return t.toString();
501
488
  }
502
- }, ee = {
489
+ }, ae = {
503
490
  get: (t, { invalid: e }) => {
504
491
  const n = Number(t);
505
492
  if (isNaN(n))
@@ -511,7 +498,7 @@ const N = {
511
498
  throw e();
512
499
  return t.toString();
513
500
  }
514
- }, ne = {
501
+ }, se = {
515
502
  get: (t, { invalid: e }) => {
516
503
  const n = new Date(t);
517
504
  if (isNaN(n.getTime()))
@@ -523,7 +510,7 @@ const N = {
523
510
  throw e();
524
511
  return t.toISOString();
525
512
  }
526
- }, re = {
513
+ }, ce = {
527
514
  get: (t, { invalid: e }) => {
528
515
  try {
529
516
  return JSON.parse(t);
@@ -539,84 +526,84 @@ const N = {
539
526
  }
540
527
  }
541
528
  };
542
- function St(t, e) {
543
- if (t === void 0 || !bt(t)) {
544
- if (Xe(e))
529
+ function At(t, e, n = !1) {
530
+ if (t === void 0 || !xt(t)) {
531
+ if (rn(e))
545
532
  return e.defaultValue;
546
- if (Pt(e))
533
+ if (n)
547
534
  return;
548
- throw new I();
535
+ throw new K();
549
536
  }
550
537
  if (e === String)
551
- return tn.get(t, N);
538
+ return an.get(t, $);
552
539
  if (e === Boolean)
553
- return te.get(t, N);
540
+ return oe.get(t, $);
554
541
  if (e === Number)
555
- return ee.get(t, N);
542
+ return ae.get(t, $);
556
543
  if (e === Date)
557
- return ne.get(t, N);
544
+ return se.get(t, $);
558
545
  if (e === JSON)
559
- return re.get(t, N);
560
- if (Ye(e))
561
- return e(t, N);
562
- if (ut(e))
563
- return e.get(t, N);
546
+ return ce.get(t, $);
547
+ if (nn(e))
548
+ return e(t, $);
549
+ if (pt(e))
550
+ return e.get(t, $);
564
551
  if (e instanceof RegExp) {
565
552
  if (e.test(t))
566
553
  return t;
567
- throw new I();
554
+ throw new K();
568
555
  }
569
556
  return t;
570
557
  }
571
- function kt(t, e) {
558
+ function Lt(t, e, n = !1) {
572
559
  if (t === void 0) {
573
- if (Pt(e))
560
+ if (n)
574
561
  return "";
575
- throw new I();
562
+ throw new K();
576
563
  }
577
564
  if (e === Boolean)
578
- return te.set(t, N);
565
+ return oe.set(t, $);
579
566
  if (e === Number)
580
- return ee.set(t, N);
567
+ return ae.set(t, $);
581
568
  if (e === Date)
582
- return ne.set(t, N);
569
+ return se.set(t, $);
583
570
  if (e === JSON)
584
- return re.set(t, N);
585
- if (ut(e))
586
- return e.set(t, N);
571
+ return ce.set(t, $);
572
+ if (pt(e))
573
+ return e.set(t, $);
587
574
  try {
588
575
  return t.toString();
589
576
  } catch {
590
- throw new I();
577
+ throw new K();
591
578
  }
592
579
  }
593
- function oe(t, e) {
594
- return ut(t) ? { ...t, defaultValue: e ?? t.defaultValue } : {
595
- get: (n) => St(n, t),
596
- set: (n) => kt(n, t),
580
+ function sn(t, e) {
581
+ return pt(t) ? { ...t, defaultValue: e ?? t.defaultValue } : {
582
+ get: (n) => At(n, t),
583
+ set: (n) => Lt(n, t),
597
584
  defaultValue: e
598
585
  };
599
586
  }
600
- function _() {
601
- return _ = Object.assign ? Object.assign.bind() : function(t) {
587
+ function M() {
588
+ return M = Object.assign ? Object.assign.bind() : function(t) {
602
589
  for (var e = 1; e < arguments.length; e++) {
603
590
  var n = arguments[e];
604
- for (var r in n)
605
- Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
591
+ for (var o in n)
592
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
606
593
  }
607
594
  return t;
608
- }, _.apply(this, arguments);
595
+ }, M.apply(this, arguments);
609
596
  }
610
597
  var L;
611
598
  (function(t) {
612
599
  t.Pop = "POP", t.Push = "PUSH", t.Replace = "REPLACE";
613
600
  })(L || (L = {}));
614
- var K = process.env.NODE_ENV !== "production" ? function(t) {
601
+ var G = process.env.NODE_ENV !== "production" ? function(t) {
615
602
  return Object.freeze(t);
616
603
  } : function(t) {
617
604
  return t;
618
605
  };
619
- function M(t, e) {
606
+ function I(t, e) {
620
607
  if (!t) {
621
608
  typeof console < "u" && console.warn(e);
622
609
  try {
@@ -625,38 +612,38 @@ function M(t, e) {
625
612
  }
626
613
  }
627
614
  }
628
- var rt = "beforeunload", en = "hashchange", ae = "popstate";
629
- function Ht(t) {
615
+ var ct = "beforeunload", cn = "hashchange", ie = "popstate";
616
+ function Vt(t) {
630
617
  t === void 0 && (t = {});
631
- var e = t, n = e.window, r = n === void 0 ? document.defaultView : n, o = r.history;
618
+ var e = t, n = e.window, o = n === void 0 ? document.defaultView : n, r = o.history;
632
619
  function a() {
633
- var m = r.location, i = m.pathname, l = m.search, v = m.hash, w = o.state || {};
634
- return [w.idx, K({
620
+ var p = o.location, i = p.pathname, l = p.search, g = p.hash, v = r.state || {};
621
+ return [v.idx, G({
635
622
  pathname: i,
636
623
  search: l,
637
- hash: v,
638
- state: w.usr || null,
639
- key: w.key || "default"
624
+ hash: g,
625
+ state: v.usr || null,
626
+ key: v.key || "default"
640
627
  })];
641
628
  }
642
629
  var s = null;
643
630
  function c() {
644
631
  if (s)
645
- p.call(s), s = null;
632
+ y.call(s), s = null;
646
633
  else {
647
- var m = L.Pop, i = a(), l = i[0], v = i[1];
648
- if (p.length)
634
+ var p = L.Pop, i = a(), l = i[0], g = i[1];
635
+ if (y.length)
649
636
  if (l != null) {
650
- var w = h - l;
651
- w && (s = {
652
- action: m,
653
- location: v,
637
+ var v = h - l;
638
+ v && (s = {
639
+ action: p,
640
+ location: g,
654
641
  retry: function() {
655
- P(w * -1);
642
+ E(v * -1);
656
643
  }
657
- }, P(w));
644
+ }, E(v));
658
645
  } else
659
- process.env.NODE_ENV !== "production" && M(
646
+ process.env.NODE_ENV !== "production" && I(
660
647
  !1,
661
648
  // TODO: Write up a doc that explains our blocking strategy in
662
649
  // detail and link to it here so people can understand better what
@@ -664,137 +651,137 @@ function Ht(t) {
664
651
  "You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."
665
652
  );
666
653
  else
667
- U(m);
654
+ C(p);
668
655
  }
669
656
  }
670
- r.addEventListener(ae, c);
671
- var u = L.Pop, f = a(), h = f[0], d = f[1], b = Q(), p = Q();
672
- h == null && (h = 0, o.replaceState(_({}, o.state, {
657
+ o.addEventListener(ie, c);
658
+ var u = L.Pop, f = a(), h = f[0], m = f[1], b = z(), y = z();
659
+ h == null && (h = 0, r.replaceState(M({}, r.state, {
673
660
  idx: h
674
661
  }), ""));
675
- function E(m) {
676
- return typeof m == "string" ? m : T(m);
662
+ function k(p) {
663
+ return typeof p == "string" ? p : F(p);
677
664
  }
678
- function j(m, i) {
679
- return i === void 0 && (i = null), K(_({
680
- pathname: d.pathname,
665
+ function x(p, i) {
666
+ return i === void 0 && (i = null), G(M({
667
+ pathname: m.pathname,
681
668
  hash: "",
682
669
  search: ""
683
- }, typeof m == "string" ? z(m) : m, {
670
+ }, typeof p == "string" ? tt(p) : p, {
684
671
  state: i,
685
- key: at()
672
+ key: ut()
686
673
  }));
687
674
  }
688
- function V(m, i) {
675
+ function V(p, i) {
689
676
  return [{
690
- usr: m.state,
691
- key: m.key,
677
+ usr: p.state,
678
+ key: p.key,
692
679
  idx: i
693
- }, E(m)];
680
+ }, k(p)];
694
681
  }
695
- function B(m, i, l) {
696
- return !p.length || (p.call({
697
- action: m,
682
+ function U(p, i, l) {
683
+ return !y.length || (y.call({
684
+ action: p,
698
685
  location: i,
699
686
  retry: l
700
687
  }), !1);
701
688
  }
702
- function U(m) {
703
- u = m;
689
+ function C(p) {
690
+ u = p;
704
691
  var i = a();
705
- h = i[0], d = i[1], b.call({
692
+ h = i[0], m = i[1], b.call({
706
693
  action: u,
707
- location: d
694
+ location: m
708
695
  });
709
696
  }
710
- function R(m, i) {
711
- var l = L.Push, v = j(m, i);
712
- function w() {
713
- R(m, i);
697
+ function d(p, i) {
698
+ var l = L.Push, g = x(p, i);
699
+ function v() {
700
+ d(p, i);
714
701
  }
715
- if (B(l, v, w)) {
716
- var x = V(v, h + 1), y = x[0], k = x[1];
702
+ if (U(l, g, v)) {
703
+ var S = V(g, h + 1), A = S[0], B = S[1];
717
704
  try {
718
- o.pushState(y, "", k);
705
+ r.pushState(A, "", B);
719
706
  } catch {
720
- r.location.assign(k);
707
+ o.location.assign(B);
721
708
  }
722
- U(l);
709
+ C(l);
723
710
  }
724
711
  }
725
- function g(m, i) {
726
- var l = L.Replace, v = j(m, i);
727
- function w() {
728
- g(m, i);
712
+ function R(p, i) {
713
+ var l = L.Replace, g = x(p, i);
714
+ function v() {
715
+ R(p, i);
729
716
  }
730
- if (B(l, v, w)) {
731
- var x = V(v, h), y = x[0], k = x[1];
732
- o.replaceState(y, "", k), U(l);
717
+ if (U(l, g, v)) {
718
+ var S = V(g, h), A = S[0], B = S[1];
719
+ r.replaceState(A, "", B), C(l);
733
720
  }
734
721
  }
735
- function P(m) {
736
- o.go(m);
722
+ function E(p) {
723
+ r.go(p);
737
724
  }
738
- var S = {
725
+ var P = {
739
726
  get action() {
740
727
  return u;
741
728
  },
742
729
  get location() {
743
- return d;
730
+ return m;
744
731
  },
745
- createHref: E,
746
- push: R,
747
- replace: g,
748
- go: P,
732
+ createHref: k,
733
+ push: d,
734
+ replace: R,
735
+ go: E,
749
736
  back: function() {
750
- P(-1);
737
+ E(-1);
751
738
  },
752
739
  forward: function() {
753
- P(1);
740
+ E(1);
754
741
  },
755
742
  listen: function(i) {
756
743
  return b.push(i);
757
744
  },
758
745
  block: function(i) {
759
- var l = p.push(i);
760
- return p.length === 1 && r.addEventListener(rt, ot), function() {
761
- l(), p.length || r.removeEventListener(rt, ot);
746
+ var l = y.push(i);
747
+ return y.length === 1 && o.addEventListener(ct, it), function() {
748
+ l(), y.length || o.removeEventListener(ct, it);
762
749
  };
763
750
  }
764
751
  };
765
- return S;
752
+ return P;
766
753
  }
767
- function nn(t) {
754
+ function un(t) {
768
755
  t === void 0 && (t = {});
769
- var e = t, n = e.window, r = n === void 0 ? document.defaultView : n, o = r.history;
756
+ var e = t, n = e.window, o = n === void 0 ? document.defaultView : n, r = o.history;
770
757
  function a() {
771
- var i = z(r.location.hash.substr(1)), l = i.pathname, v = l === void 0 ? "/" : l, w = i.search, x = w === void 0 ? "" : w, y = i.hash, k = y === void 0 ? "" : y, A = o.state || {};
772
- return [A.idx, K({
773
- pathname: v,
774
- search: x,
775
- hash: k,
776
- state: A.usr || null,
777
- key: A.key || "default"
758
+ var i = tt(o.location.hash.substr(1)), l = i.pathname, g = l === void 0 ? "/" : l, v = i.search, S = v === void 0 ? "" : v, A = i.hash, B = A === void 0 ? "" : A, N = r.state || {};
759
+ return [N.idx, G({
760
+ pathname: g,
761
+ search: S,
762
+ hash: B,
763
+ state: N.usr || null,
764
+ key: N.key || "default"
778
765
  })];
779
766
  }
780
767
  var s = null;
781
768
  function c() {
782
769
  if (s)
783
- p.call(s), s = null;
770
+ y.call(s), s = null;
784
771
  else {
785
- var i = L.Pop, l = a(), v = l[0], w = l[1];
786
- if (p.length)
787
- if (v != null) {
788
- var x = h - v;
789
- x && (s = {
772
+ var i = L.Pop, l = a(), g = l[0], v = l[1];
773
+ if (y.length)
774
+ if (g != null) {
775
+ var S = h - g;
776
+ S && (s = {
790
777
  action: i,
791
- location: w,
778
+ location: v,
792
779
  retry: function() {
793
- S(x * -1);
780
+ P(S * -1);
794
781
  }
795
- }, S(x));
782
+ }, P(S));
796
783
  } else
797
- process.env.NODE_ENV !== "production" && M(
784
+ process.env.NODE_ENV !== "production" && I(
798
785
  !1,
799
786
  // TODO: Write up a doc that explains our blocking strategy in
800
787
  // detail and link to it here so people can understand better
@@ -802,177 +789,177 @@ function nn(t) {
802
789
  "You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."
803
790
  );
804
791
  else
805
- R(i);
792
+ d(i);
806
793
  }
807
794
  }
808
- r.addEventListener(ae, c), r.addEventListener(en, function() {
795
+ o.addEventListener(ie, c), o.addEventListener(cn, function() {
809
796
  var i = a(), l = i[1];
810
- T(l) !== T(d) && c();
797
+ F(l) !== F(m) && c();
811
798
  });
812
- var u = L.Pop, f = a(), h = f[0], d = f[1], b = Q(), p = Q();
813
- h == null && (h = 0, o.replaceState(_({}, o.state, {
799
+ var u = L.Pop, f = a(), h = f[0], m = f[1], b = z(), y = z();
800
+ h == null && (h = 0, r.replaceState(M({}, r.state, {
814
801
  idx: h
815
802
  }), ""));
816
- function E() {
803
+ function k() {
817
804
  var i = document.querySelector("base"), l = "";
818
805
  if (i && i.getAttribute("href")) {
819
- var v = r.location.href, w = v.indexOf("#");
820
- l = w === -1 ? v : v.slice(0, w);
806
+ var g = o.location.href, v = g.indexOf("#");
807
+ l = v === -1 ? g : g.slice(0, v);
821
808
  }
822
809
  return l;
823
810
  }
824
- function j(i) {
825
- return E() + "#" + (typeof i == "string" ? i : T(i));
811
+ function x(i) {
812
+ return k() + "#" + (typeof i == "string" ? i : F(i));
826
813
  }
827
814
  function V(i, l) {
828
- return l === void 0 && (l = null), K(_({
829
- pathname: d.pathname,
815
+ return l === void 0 && (l = null), G(M({
816
+ pathname: m.pathname,
830
817
  hash: "",
831
818
  search: ""
832
- }, typeof i == "string" ? z(i) : i, {
819
+ }, typeof i == "string" ? tt(i) : i, {
833
820
  state: l,
834
- key: at()
821
+ key: ut()
835
822
  }));
836
823
  }
837
- function B(i, l) {
824
+ function U(i, l) {
838
825
  return [{
839
826
  usr: i.state,
840
827
  key: i.key,
841
828
  idx: l
842
- }, j(i)];
829
+ }, x(i)];
843
830
  }
844
- function U(i, l, v) {
845
- return !p.length || (p.call({
831
+ function C(i, l, g) {
832
+ return !y.length || (y.call({
846
833
  action: i,
847
834
  location: l,
848
- retry: v
835
+ retry: g
849
836
  }), !1);
850
837
  }
851
- function R(i) {
838
+ function d(i) {
852
839
  u = i;
853
840
  var l = a();
854
- h = l[0], d = l[1], b.call({
841
+ h = l[0], m = l[1], b.call({
855
842
  action: u,
856
- location: d
843
+ location: m
857
844
  });
858
845
  }
859
- function g(i, l) {
860
- var v = L.Push, w = V(i, l);
861
- function x() {
862
- g(i, l);
846
+ function R(i, l) {
847
+ var g = L.Push, v = V(i, l);
848
+ function S() {
849
+ R(i, l);
863
850
  }
864
- if (process.env.NODE_ENV !== "production" && M(w.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(i) + ")"), U(v, w, x)) {
865
- var y = B(w, h + 1), k = y[0], A = y[1];
851
+ if (process.env.NODE_ENV !== "production" && I(v.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(i) + ")"), C(g, v, S)) {
852
+ var A = U(v, h + 1), B = A[0], N = A[1];
866
853
  try {
867
- o.pushState(k, "", A);
854
+ r.pushState(B, "", N);
868
855
  } catch {
869
- r.location.assign(A);
856
+ o.location.assign(N);
870
857
  }
871
- R(v);
858
+ d(g);
872
859
  }
873
860
  }
874
- function P(i, l) {
875
- var v = L.Replace, w = V(i, l);
876
- function x() {
877
- P(i, l);
861
+ function E(i, l) {
862
+ var g = L.Replace, v = V(i, l);
863
+ function S() {
864
+ E(i, l);
878
865
  }
879
- if (process.env.NODE_ENV !== "production" && M(w.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(i) + ")"), U(v, w, x)) {
880
- var y = B(w, h), k = y[0], A = y[1];
881
- o.replaceState(k, "", A), R(v);
866
+ if (process.env.NODE_ENV !== "production" && I(v.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(i) + ")"), C(g, v, S)) {
867
+ var A = U(v, h), B = A[0], N = A[1];
868
+ r.replaceState(B, "", N), d(g);
882
869
  }
883
870
  }
884
- function S(i) {
885
- o.go(i);
871
+ function P(i) {
872
+ r.go(i);
886
873
  }
887
- var m = {
874
+ var p = {
888
875
  get action() {
889
876
  return u;
890
877
  },
891
878
  get location() {
892
- return d;
879
+ return m;
893
880
  },
894
- createHref: j,
895
- push: g,
896
- replace: P,
897
- go: S,
881
+ createHref: x,
882
+ push: R,
883
+ replace: E,
884
+ go: P,
898
885
  back: function() {
899
- S(-1);
886
+ P(-1);
900
887
  },
901
888
  forward: function() {
902
- S(1);
889
+ P(1);
903
890
  },
904
891
  listen: function(l) {
905
892
  return b.push(l);
906
893
  },
907
894
  block: function(l) {
908
- var v = p.push(l);
909
- return p.length === 1 && r.addEventListener(rt, ot), function() {
910
- v(), p.length || r.removeEventListener(rt, ot);
895
+ var g = y.push(l);
896
+ return y.length === 1 && o.addEventListener(ct, it), function() {
897
+ g(), y.length || o.removeEventListener(ct, it);
911
898
  };
912
899
  }
913
900
  };
914
- return m;
901
+ return p;
915
902
  }
916
- function Nt(t) {
903
+ function Ct(t) {
917
904
  t === void 0 && (t = {});
918
- var e = t, n = e.initialEntries, r = n === void 0 ? ["/"] : n, o = e.initialIndex, a = r.map(function(R) {
919
- var g = K(_({
905
+ var e = t, n = e.initialEntries, o = n === void 0 ? ["/"] : n, r = e.initialIndex, a = o.map(function(d) {
906
+ var R = G(M({
920
907
  pathname: "/",
921
908
  search: "",
922
909
  hash: "",
923
910
  state: null,
924
- key: at()
925
- }, typeof R == "string" ? z(R) : R));
926
- return process.env.NODE_ENV !== "production" && M(g.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: " + JSON.stringify(R) + ")"), g;
927
- }), s = $t(o ?? a.length - 1, 0, a.length - 1), c = L.Pop, u = a[s], f = Q(), h = Q();
928
- function d(R) {
929
- return typeof R == "string" ? R : T(R);
930
- }
931
- function b(R, g) {
932
- return g === void 0 && (g = null), K(_({
911
+ key: ut()
912
+ }, typeof d == "string" ? tt(d) : d));
913
+ return process.env.NODE_ENV !== "production" && I(R.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: " + JSON.stringify(d) + ")"), R;
914
+ }), s = qt(r ?? a.length - 1, 0, a.length - 1), c = L.Pop, u = a[s], f = z(), h = z();
915
+ function m(d) {
916
+ return typeof d == "string" ? d : F(d);
917
+ }
918
+ function b(d, R) {
919
+ return R === void 0 && (R = null), G(M({
933
920
  pathname: u.pathname,
934
921
  search: "",
935
922
  hash: ""
936
- }, typeof R == "string" ? z(R) : R, {
937
- state: g,
938
- key: at()
923
+ }, typeof d == "string" ? tt(d) : d, {
924
+ state: R,
925
+ key: ut()
939
926
  }));
940
927
  }
941
- function p(R, g, P) {
928
+ function y(d, R, E) {
942
929
  return !h.length || (h.call({
943
- action: R,
944
- location: g,
945
- retry: P
930
+ action: d,
931
+ location: R,
932
+ retry: E
946
933
  }), !1);
947
934
  }
948
- function E(R, g) {
949
- c = R, u = g, f.call({
935
+ function k(d, R) {
936
+ c = d, u = R, f.call({
950
937
  action: c,
951
938
  location: u
952
939
  });
953
940
  }
954
- function j(R, g) {
955
- var P = L.Push, S = b(R, g);
956
- function m() {
957
- j(R, g);
941
+ function x(d, R) {
942
+ var E = L.Push, P = b(d, R);
943
+ function p() {
944
+ x(d, R);
958
945
  }
959
- process.env.NODE_ENV !== "production" && M(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(R) + ")"), p(P, S, m) && (s += 1, a.splice(s, a.length, S), E(P, S));
946
+ process.env.NODE_ENV !== "production" && I(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(d) + ")"), y(E, P, p) && (s += 1, a.splice(s, a.length, P), k(E, P));
960
947
  }
961
- function V(R, g) {
962
- var P = L.Replace, S = b(R, g);
963
- function m() {
964
- V(R, g);
948
+ function V(d, R) {
949
+ var E = L.Replace, P = b(d, R);
950
+ function p() {
951
+ V(d, R);
965
952
  }
966
- process.env.NODE_ENV !== "production" && M(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(R) + ")"), p(P, S, m) && (a[s] = S, E(P, S));
953
+ process.env.NODE_ENV !== "production" && I(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(d) + ")"), y(E, P, p) && (a[s] = P, k(E, P));
967
954
  }
968
- function B(R) {
969
- var g = $t(s + R, 0, a.length - 1), P = L.Pop, S = a[g];
970
- function m() {
971
- B(R);
955
+ function U(d) {
956
+ var R = qt(s + d, 0, a.length - 1), E = L.Pop, P = a[R];
957
+ function p() {
958
+ U(d);
972
959
  }
973
- p(P, S, m) && (s = g, E(P, S));
960
+ y(E, P, p) && (s = R, k(E, P));
974
961
  }
975
- var U = {
962
+ var C = {
976
963
  get index() {
977
964
  return s;
978
965
  },
@@ -982,32 +969,32 @@ function Nt(t) {
982
969
  get location() {
983
970
  return u;
984
971
  },
985
- createHref: d,
986
- push: j,
972
+ createHref: m,
973
+ push: x,
987
974
  replace: V,
988
- go: B,
975
+ go: U,
989
976
  back: function() {
990
- B(-1);
977
+ U(-1);
991
978
  },
992
979
  forward: function() {
993
- B(1);
980
+ U(1);
994
981
  },
995
- listen: function(g) {
996
- return f.push(g);
982
+ listen: function(R) {
983
+ return f.push(R);
997
984
  },
998
- block: function(g) {
999
- return h.push(g);
985
+ block: function(R) {
986
+ return h.push(R);
1000
987
  }
1001
988
  };
1002
- return U;
989
+ return C;
1003
990
  }
1004
- function $t(t, e, n) {
991
+ function qt(t, e, n) {
1005
992
  return Math.min(Math.max(t, e), n);
1006
993
  }
1007
- function ot(t) {
994
+ function it(t) {
1008
995
  t.preventDefault(), t.returnValue = "";
1009
996
  }
1010
- function Q() {
997
+ function z() {
1011
998
  var t = [];
1012
999
  return {
1013
1000
  get length() {
@@ -1015,287 +1002,302 @@ function Q() {
1015
1002
  },
1016
1003
  push: function(n) {
1017
1004
  return t.push(n), function() {
1018
- t = t.filter(function(r) {
1019
- return r !== n;
1005
+ t = t.filter(function(o) {
1006
+ return o !== n;
1020
1007
  });
1021
1008
  };
1022
1009
  },
1023
1010
  call: function(n) {
1024
- t.forEach(function(r) {
1025
- return r && r(n);
1011
+ t.forEach(function(o) {
1012
+ return o && o(n);
1026
1013
  });
1027
1014
  }
1028
1015
  };
1029
1016
  }
1030
- function at() {
1017
+ function ut() {
1031
1018
  return Math.random().toString(36).substr(2, 8);
1032
1019
  }
1033
- function T(t) {
1034
- var e = t.pathname, n = e === void 0 ? "/" : e, r = t.search, o = r === void 0 ? "" : r, a = t.hash, s = a === void 0 ? "" : a;
1035
- return o && o !== "?" && (n += o.charAt(0) === "?" ? o : "?" + o), s && s !== "#" && (n += s.charAt(0) === "#" ? s : "#" + s), n;
1020
+ function F(t) {
1021
+ var e = t.pathname, n = e === void 0 ? "/" : e, o = t.search, r = o === void 0 ? "" : o, a = t.hash, s = a === void 0 ? "" : a;
1022
+ return r && r !== "?" && (n += r.charAt(0) === "?" ? r : "?" + r), s && s !== "#" && (n += s.charAt(0) === "#" ? s : "#" + s), n;
1036
1023
  }
1037
- function z(t) {
1024
+ function tt(t) {
1038
1025
  var e = {};
1039
1026
  if (t) {
1040
1027
  var n = t.indexOf("#");
1041
1028
  n >= 0 && (e.hash = t.substr(n), t = t.substr(0, n));
1042
- var r = t.indexOf("?");
1043
- r >= 0 && (e.search = t.substr(r), t = t.substr(0, r)), t && (e.pathname = t);
1029
+ var o = t.indexOf("?");
1030
+ o >= 0 && (e.search = t.substr(o), t = t.substr(0, o)), t && (e.pathname = t);
1044
1031
  }
1045
1032
  return e;
1046
1033
  }
1047
- function rn(t, e) {
1048
- const n = Ot({ ...t }), r = (s) => {
1034
+ function fn(t, e) {
1035
+ const n = Tt({ ...t }), o = (s) => {
1049
1036
  Object.assign(n, { ...s });
1050
- }, o = n, a = je(o, e);
1037
+ }, r = n, a = De(r, e);
1051
1038
  return {
1052
- currentRoute: o,
1039
+ currentRoute: r,
1053
1040
  routerRoute: a,
1054
- updateRoute: r
1041
+ updateRoute: o
1055
1042
  };
1056
1043
  }
1057
- class on extends Error {
1044
+ function _(t) {
1045
+ return !t.startsWith("http") ? hn(t) : ln(t);
1046
+ }
1047
+ function ln(t) {
1048
+ const { protocol: e, host: n, pathname: o, search: r, searchParams: a, hash: s } = new URL(t, t);
1049
+ return {
1050
+ protocol: e,
1051
+ host: n,
1052
+ pathname: o,
1053
+ search: r,
1054
+ searchParams: a,
1055
+ hash: s
1056
+ };
1057
+ }
1058
+ function hn(t) {
1059
+ const { pathname: e, search: n, searchParams: o, hash: r } = new URL(t, "https://localhost");
1060
+ return {
1061
+ pathname: e,
1062
+ search: n,
1063
+ searchParams: o,
1064
+ hash: r
1065
+ };
1066
+ }
1067
+ function pn(t) {
1068
+ return (e) => {
1069
+ const { host: n } = _(e);
1070
+ return !(n === void 0 || n === t);
1071
+ };
1072
+ }
1073
+ class dn extends Error {
1058
1074
  constructor(e) {
1059
1075
  super(`Route disabled: "${e}"`);
1060
1076
  }
1061
1077
  }
1062
- class an extends Error {
1078
+ class mn extends Error {
1063
1079
  constructor(e) {
1064
1080
  super(`Route not found: "${e}"`);
1065
1081
  }
1066
1082
  }
1067
- function sn(t) {
1068
- const e = xt(t.path.toString());
1083
+ function yn(t) {
1084
+ const e = Ut(t.path.toString());
1069
1085
  return new RegExp(`^${e}$`, "i");
1070
1086
  }
1071
- function cn(t) {
1087
+ function Rn(t) {
1072
1088
  const e = new URLSearchParams(t.query.toString());
1073
- return Array.from(e.entries()).filter(([, n]) => !ce(n)).map(([n, r]) => new RegExp(`${n}=${xt(r)}(&|$)`, "i"));
1089
+ return Array.from(e.entries()).filter(([, n]) => !yt(n)).map(([n, o]) => new RegExp(`${n}=${Ut(o)}(&|$)`, "i"));
1074
1090
  }
1075
- function xt(t) {
1091
+ function Ut(t) {
1076
1092
  return [
1077
- un,
1078
- fn
1093
+ gn,
1094
+ vn
1079
1095
  ].reduce((e, n) => n(e), t);
1080
1096
  }
1081
- const At = `\\${J}\\?([\\w-_]+)\\${X}`, se = `\\${J}([\\w-_]+)\\${X}`;
1082
- function un(t) {
1083
- return t.replace(new RegExp(At, "g"), ".*");
1097
+ const Bt = `\\${Y}\\?([\\w-_]+)\\${X}`, ue = `\\${Y}([\\w-_]+)\\${X}`;
1098
+ function gn(t) {
1099
+ return t.replace(new RegExp(Bt, "g"), ".*");
1084
1100
  }
1085
- function ce(t) {
1086
- return new RegExp(At, "g").test(t);
1101
+ function yt(t) {
1102
+ return new RegExp(Bt, "g").test(t);
1087
1103
  }
1088
- function fn(t) {
1089
- return t.replace(new RegExp(se, "g"), ".+");
1104
+ function vn(t) {
1105
+ return t.replace(new RegExp(ue, "g"), ".+");
1090
1106
  }
1091
- function ln(t) {
1092
- const [e] = st(t, new RegExp(At, "g")), [n] = st(t, new RegExp(se, "g"));
1107
+ function Nt(t) {
1108
+ const [e] = ft(t, new RegExp(Bt, "g")), [n] = ft(t, new RegExp(ue, "g"));
1093
1109
  return e ?? n;
1094
1110
  }
1095
- function st(t, e) {
1096
- return Array.from(t.matchAll(e)).flatMap(([, ...r]) => r.map((o) => bt(o) ? o : ""));
1111
+ function ft(t, e) {
1112
+ return Array.from(t.matchAll(e)).flatMap(([, ...o]) => o.map((r) => xt(r) ? r : ""));
1097
1113
  }
1098
- function ie(t, e, n) {
1099
- const r = ue(e, n), [o] = st(t, r);
1100
- return o;
1114
+ function fe(t, e, n) {
1115
+ const o = le(e, n), [r] = ft(t, o);
1116
+ return r;
1101
1117
  }
1102
- function hn(t, e) {
1118
+ function wn(t, e) {
1103
1119
  if (!e)
1104
1120
  return t;
1105
- const { name: n, param: r, value: o } = e, a = ue(t, n);
1106
- return st(t, a).reduce((c, u) => u === void 0 ? c : c.replace(u, () => kt(o, r)), t);
1121
+ const { name: n, param: o, value: r } = e, a = le(t, n);
1122
+ return ft(t, a).reduce((c, u) => u === void 0 ? c : c.replace(u, () => Lt(r, o, n.startsWith("?"))), t);
1107
1123
  }
1108
- function ue(t, e) {
1124
+ function le(t, e) {
1109
1125
  const n = [
1110
- pn,
1111
- dn,
1112
- xt
1113
- ].reduce((r, o) => o(r, e), t);
1126
+ En,
1127
+ bn,
1128
+ Ut
1129
+ ].reduce((o, r) => r(o, e), t);
1114
1130
  return new RegExp(n, "g");
1115
1131
  }
1116
- function pn(t, e) {
1117
- const n = new RegExp(`(\\${J}\\?${e})\\${X}`, "g");
1132
+ function En(t, e) {
1133
+ if (!e.startsWith("?"))
1134
+ return t;
1135
+ const n = new RegExp(`\\${Y}\\${e}\\${X}`, "g");
1118
1136
  return t.replace(n, "(.*)");
1119
1137
  }
1120
- function dn(t, e) {
1121
- const n = new RegExp(`(\\${J}${e})\\${X}`, "g");
1138
+ function bn(t, e) {
1139
+ if (e.startsWith("?"))
1140
+ return t;
1141
+ const n = new RegExp(`\\${Y}${e}\\${X}`, "g");
1122
1142
  return t.replace(n, "(.+)");
1123
1143
  }
1124
- function fe(t, ...e) {
1125
- return e.reduce((n, r) => {
1126
- if (!r)
1144
+ function he(t, ...e) {
1145
+ return e.reduce((n, o) => {
1146
+ if (!o)
1127
1147
  return n;
1128
- const o = new URLSearchParams(r).toString();
1129
- return Object.keys(o).length === 0 ? n : n.includes("?") ? `${n}&${o}` : `${n}?${o}`;
1148
+ const r = new URLSearchParams(o).toString();
1149
+ return Object.keys(r).length === 0 ? n : n.includes("?") ? `${n}&${r}` : `${n}?${r}`;
1130
1150
  }, t);
1131
1151
  }
1132
- function mn(t, e = {}) {
1133
- const { params: n = {}, query: r } = e, o = { ...t.path.params, ...t.query.params }, a = t.path.toString(), s = t.query.toString(), c = Rn(a, o, n), u = yn(s, o, n);
1134
- return fe(c, u, r);
1152
+ function Pn(t, e = {}) {
1153
+ const { params: n = {}, query: o } = e, r = kn(t.path, n), a = Sn(t.query, n), s = he(r, a, o);
1154
+ return t.host ? `${t.host}${s}` : s;
1135
1155
  }
1136
- function Rn(t, e, n) {
1137
- return t.length ? Object.entries(e).reduce((r, [o, a]) => hn(r, { name: o, param: a, value: n[o] }), t) : t;
1156
+ function kn(t, e) {
1157
+ const n = t.toString();
1158
+ return n.length ? Object.entries(t.params).reduce((o, [r, a]) => {
1159
+ const s = Nt(`${Y}${r}${X}`);
1160
+ return s ? wn(o, { name: r, param: a, value: e[s] }) : o;
1161
+ }, n) : n;
1138
1162
  }
1139
- function yn(t, e, n) {
1140
- if (!t.length)
1163
+ function Sn(t, e) {
1164
+ const n = t.toString();
1165
+ if (!n)
1141
1166
  return {};
1142
- const r = new URLSearchParams(t);
1143
- return Array.from(r.entries()).reduce((o, [a, s]) => {
1144
- const c = ln(s);
1167
+ const o = new URLSearchParams(n);
1168
+ return Array.from(o.entries()).reduce((r, [a, s]) => {
1169
+ const c = Nt(s);
1145
1170
  if (!c)
1146
- return { ...o, [a]: s };
1147
- const f = kt(n[c], e[c]), h = n[c] === void 0 && f === "";
1148
- return ce(s) && h ? o : { ...o, [a]: f };
1171
+ return { ...r, [a]: s };
1172
+ const f = Lt(e[c], t.params[c], yt(s)), h = e[c] === void 0 && f === "";
1173
+ return yt(s) && h ? r : { ...r, [a]: f };
1149
1174
  }, {});
1150
1175
  }
1151
- function le(t) {
1152
- return (e, n, r) => {
1153
- if (W(e))
1154
- return fe(e, (n ?? {}).query);
1155
- const o = n ?? {}, a = r ?? {}, s = t.find((u) => u.key === e);
1176
+ function pe(t) {
1177
+ return (e, n, o) => {
1178
+ if (J(e))
1179
+ return he(e, (n ?? {}).query);
1180
+ const r = n ?? {}, a = o ?? {}, s = t.find((u) => u.key === e);
1156
1181
  if (!s)
1157
- throw new an(String(e));
1182
+ throw new mn(String(e));
1158
1183
  if (s.matched.disabled)
1159
- throw new on(String(e));
1160
- return mn(s, {
1161
- params: o,
1184
+ throw new dn(String(e));
1185
+ return Pn(s, {
1186
+ params: r,
1162
1187
  query: a.query
1163
1188
  });
1164
1189
  };
1165
1190
  }
1166
- function q(t) {
1167
- return !t.startsWith("http") ? vn(t) : gn(t);
1168
- }
1169
- function gn(t) {
1170
- const { protocol: e, host: n, pathname: r, search: o, searchParams: a, hash: s } = new URL(t, t);
1171
- return {
1172
- protocol: e,
1173
- host: n,
1174
- pathname: r,
1175
- search: o,
1176
- searchParams: a,
1177
- hash: s
1178
- };
1179
- }
1180
- function vn(t) {
1181
- const { pathname: e, search: n, searchParams: r, hash: o } = new URL(t, "https://localhost");
1182
- return {
1183
- pathname: e,
1184
- search: n,
1185
- searchParams: r,
1186
- hash: o
1187
- };
1188
- }
1189
- function he(t) {
1191
+ function de(t) {
1190
1192
  const e = new URLSearchParams(t);
1191
1193
  return {
1192
1194
  get: (n) => e.get(n),
1193
1195
  getAll: (n) => e.getAll(n)
1194
1196
  };
1195
1197
  }
1196
- const wn = (t, e) => {
1198
+ const xn = (t, e) => {
1197
1199
  try {
1198
- pe(t, e);
1200
+ me(t, e);
1199
1201
  } catch {
1200
1202
  return !1;
1201
1203
  }
1202
1204
  return !0;
1203
- }, pe = (t, e) => {
1204
- const { pathname: n, search: r } = q(e);
1205
+ }, me = (t, e) => {
1206
+ const { pathname: n, search: o } = _(e);
1205
1207
  return {
1206
- ...En(t.path, n),
1207
- ...Pn(t.query, r)
1208
+ ...An(t.path, n),
1209
+ ...Ln(t.query, o)
1208
1210
  };
1209
1211
  };
1210
- function En(t, e) {
1211
- const n = {}, r = decodeURIComponent(e);
1212
- for (const [o, a] of Object.entries(t.params)) {
1213
- const s = ie(r, t.toString(), o), c = St(s, a);
1214
- n[o] = c;
1212
+ function An(t, e) {
1213
+ const n = {}, o = decodeURIComponent(e);
1214
+ for (const [r, a] of Object.entries(t.params)) {
1215
+ const s = r.startsWith("?"), c = s ? r.slice(1) : r, u = fe(o, t.toString(), r), f = At(u, a, s);
1216
+ n[c] = f;
1215
1217
  }
1216
1218
  return n;
1217
1219
  }
1218
- function Pn(t, e) {
1219
- const n = {}, r = new URLSearchParams(e);
1220
- for (const [o, a] of Object.entries(t.params)) {
1221
- const s = r.get(o) ?? void 0, c = St(s, a);
1222
- n[o] = c;
1220
+ function Ln(t, e) {
1221
+ const n = {}, o = new URLSearchParams(e);
1222
+ for (const [r, a] of Object.entries(t.params)) {
1223
+ const s = r.startsWith("?"), c = s ? r.slice(1) : r, u = o.get(c) ?? void 0, f = At(u, a, s);
1224
+ n[c] = f;
1223
1225
  }
1224
1226
  return n;
1225
1227
  }
1226
- const bn = (t) => "name" in t.matched && !!t.matched.name, Sn = (t, e) => {
1227
- const { host: n } = q(e), { host: r } = q(t.path.toString());
1228
- return n === r;
1229
- }, kn = (t, e) => {
1230
- const { pathname: n } = q(e);
1231
- return sn(t).test(n);
1232
- }, xn = (t, e) => {
1233
- const { search: n } = q(e);
1234
- return cn(t).every((o) => o.test(n));
1228
+ const Un = (t) => "name" in t.matched && !!t.matched.name, Bn = (t, e) => {
1229
+ const { host: n } = _(e), { host: o } = _(t.path.toString());
1230
+ return n === o;
1231
+ }, Nn = (t, e) => {
1232
+ const { pathname: n } = _(e);
1233
+ return yn(t).test(n);
1234
+ }, Hn = (t, e) => {
1235
+ const { search: n } = _(e);
1236
+ return Rn(t).every((r) => r.test(n));
1235
1237
  };
1236
- function An(t) {
1237
- const { searchParams: e, pathname: n } = q(t), r = -1, o = 1;
1238
+ function $n(t) {
1239
+ const { searchParams: e, pathname: n } = _(t), o = -1, r = 1;
1238
1240
  return (a, s) => {
1239
- const c = Vt(a, e), u = jt(a, n), f = Vt(s, e), h = jt(s, n);
1240
- return c + u > f + h ? r : c + u < f + h ? o : a.depth > s.depth ? r : a.depth < s.depth ? o : 0;
1241
+ const c = Ot(a, e), u = _t(a, n), f = Ot(s, e), h = _t(s, n);
1242
+ return c + u > f + h ? o : c + u < f + h ? r : a.depth > s.depth ? o : a.depth < s.depth ? r : 0;
1241
1243
  };
1242
1244
  }
1243
- function jt(t, e) {
1244
- const n = Object.entries(t.path.params).filter(([, o]) => Pt(o)).map(([o]) => o), r = n.filter((o) => ie(e, t.path.toString(), o) === void 0);
1245
- return n.length - r.length;
1245
+ function _t(t, e) {
1246
+ const n = Object.keys(t.path.params).filter((r) => r.startsWith("?")).map((r) => r), o = n.filter((r) => fe(e, t.path.toString(), r) === void 0);
1247
+ return n.length - o.length;
1246
1248
  }
1247
- function Vt(t, e) {
1248
- const n = new URLSearchParams(t.query.toString()), r = Array.from(n.keys()), o = r.filter((a) => !e.has(a));
1249
- return r.length - o.length;
1249
+ function Ot(t, e) {
1250
+ const n = new URLSearchParams(t.query.toString()), o = Array.from(n.keys()), r = o.filter((a) => !e.has(a));
1251
+ return o.length - r.length;
1250
1252
  }
1251
- const Ln = [
1252
- bn,
1253
- Sn,
1254
- kn,
1255
- xn,
1256
- wn
1253
+ const jn = [
1254
+ Un,
1255
+ Bn,
1256
+ Nn,
1257
+ Hn,
1258
+ xn
1257
1259
  ];
1258
- function pt(t, e) {
1259
- const n = An(e), r = t.filter((u) => Ln.every((f) => f(u, e))).sort(n);
1260
- if (r.length === 0)
1260
+ function Rt(t, e) {
1261
+ const n = $n(e), o = t.filter((u) => jn.every((f) => f(u, e))).sort(n);
1262
+ if (o.length === 0)
1261
1263
  return;
1262
- const [o] = r, { search: a } = q(e), s = he(a), c = pe(o, e);
1264
+ const [r] = o, { search: a } = _(e), s = de(a), c = me(r, e);
1263
1265
  return {
1264
- matched: o.matched,
1265
- matches: o.matches,
1266
- key: o.key,
1266
+ matched: r.matched,
1267
+ matches: r.matches,
1268
+ key: r.key,
1267
1269
  query: s,
1268
1270
  params: c
1269
1271
  };
1270
1272
  }
1271
- function Un(t) {
1273
+ function Vn(t) {
1272
1274
  return (e, n = {}) => {
1273
- const r = le(t);
1274
- if (W(e)) {
1275
- const a = r(e);
1276
- return pt(t, a);
1275
+ const o = pe(t);
1276
+ if (J(e)) {
1277
+ const a = o(e);
1278
+ return Rt(t, a);
1277
1279
  }
1278
- const o = r(e, n);
1279
- return pt(t, o);
1280
+ const r = o(e, n);
1281
+ return Rt(t, r);
1280
1282
  };
1281
1283
  }
1282
- function de() {
1284
+ function ye() {
1283
1285
  return typeof window < "u" && typeof window.document < "u";
1284
1286
  }
1285
- function Bn({ mode: t, listener: e }) {
1286
- const n = Hn(t), r = (u, f) => {
1287
+ function Cn({ mode: t, listener: e }) {
1288
+ const n = qn(t), o = (u, f) => {
1287
1289
  if (f != null && f.replace)
1288
1290
  return n.replace(u);
1289
1291
  n.push(u);
1290
- }, o = () => {
1291
- const u = T(n.location);
1292
+ }, r = () => {
1293
+ const u = F(n.location);
1292
1294
  return n.replace(u);
1293
1295
  };
1294
1296
  let a;
1295
1297
  return {
1296
1298
  ...n,
1297
- update: r,
1298
- refresh: o,
1299
+ update: o,
1300
+ refresh: r,
1299
1301
  startListening: () => {
1300
1302
  a == null || a(), a = n.listen(e);
1301
1303
  },
@@ -1304,38 +1306,38 @@ function Bn({ mode: t, listener: e }) {
1304
1306
  }
1305
1307
  };
1306
1308
  }
1307
- function Hn(t = "auto") {
1309
+ function qn(t = "auto") {
1308
1310
  switch (t) {
1309
1311
  case "auto":
1310
- return de() ? Ht() : Nt();
1312
+ return ye() ? Vt() : Ct();
1311
1313
  case "browser":
1312
- return Ht();
1314
+ return Vt();
1313
1315
  case "memory":
1314
- return Nt();
1316
+ return Ct();
1315
1317
  case "hash":
1316
- return nn();
1318
+ return un();
1317
1319
  default:
1318
1320
  const e = t;
1319
1321
  throw new Error(`Switch is not exhaustive for mode: ${e}`);
1320
1322
  }
1321
1323
  }
1322
- function Nn(t) {
1323
- return Y(() => () => et("h1", t), {
1324
+ function _n(t) {
1325
+ return et(() => () => ot("h1", t), {
1324
1326
  name: t,
1325
1327
  props: []
1326
1328
  });
1327
1329
  }
1328
- const Ct = Symbol();
1329
- function $n({
1330
+ const Dt = Symbol();
1331
+ function On({
1330
1332
  rejections: t
1331
1333
  }) {
1332
1334
  const e = (s) => {
1333
1335
  const c = {
1334
1336
  ...t
1335
1337
  };
1336
- return ht(c[s] ?? Nn(s));
1338
+ return at(c[s] ?? _n(s));
1337
1339
  }, n = (s) => {
1338
- const c = ht(e(s)), u = {
1340
+ const c = at(e(s)), u = {
1339
1341
  name: s,
1340
1342
  path: "",
1341
1343
  component: c,
@@ -1345,257 +1347,309 @@ function $n({
1345
1347
  matched: u,
1346
1348
  matches: [u],
1347
1349
  key: s,
1348
- query: he(""),
1350
+ query: de(""),
1349
1351
  params: {},
1350
- [Ct]: !0
1352
+ [Dt]: !0
1351
1353
  };
1352
- }, r = (s) => Ct in s, o = (s) => {
1354
+ }, o = (s) => Dt in s, r = (s) => {
1353
1355
  if (!s) {
1354
1356
  a.value = null;
1355
1357
  return;
1356
1358
  }
1357
1359
  const c = e(s);
1358
1360
  a.value = { type: s, component: c };
1359
- }, a = Ue(null);
1361
+ }, a = Ve(null);
1360
1362
  return {
1361
- setRejection: o,
1363
+ setRejection: r,
1362
1364
  rejection: a,
1363
1365
  getRejectionRoute: n,
1364
- isRejectionRoute: r
1366
+ isRejectionRoute: o
1365
1367
  };
1366
1368
  }
1367
- class jn extends Error {
1369
+ class Dn extends Error {
1368
1370
  constructor() {
1369
1371
  super("initialUrl must be set if window.location is unavailable");
1370
1372
  }
1371
1373
  }
1372
- function Vn(t) {
1374
+ function Mn(t) {
1373
1375
  if (t)
1374
1376
  return t;
1375
- if (de()) {
1376
- const { pathname: e, search: n, hash: r } = q(window.location.toString());
1377
- return [e, n, r].join("");
1378
- }
1379
- throw new jn();
1377
+ if (ye())
1378
+ return window.location.toString();
1379
+ throw new Dn();
1380
+ }
1381
+ function Re(t) {
1382
+ return typeof t == "object" && t !== null && !Array.isArray(t);
1383
+ }
1384
+ function Wn(t) {
1385
+ return t.every((e) => Array.isArray(e));
1380
1386
  }
1381
- function Zn(t, e = {}) {
1382
- const n = le(t), r = Bn({
1387
+ function or(t, e = {}) {
1388
+ const n = Wn(t) ? t.flat() : t, o = pe(n), r = Cn({
1383
1389
  mode: e.historyMode,
1384
1390
  listener: () => {
1385
- const y = T(location);
1386
- p(y);
1391
+ const w = F(location);
1392
+ k(w);
1387
1393
  }
1388
- }), { runBeforeRouteHooks: o, runAfterRouteHooks: a } = De(), {
1389
- hooks: s,
1390
- onBeforeRouteEnter: c,
1391
- onAfterRouteUpdate: u,
1392
- onBeforeRouteLeave: f,
1393
- onAfterRouteEnter: h,
1394
- onBeforeRouteUpdate: d,
1395
- onAfterRouteLeave: b
1396
- } = Te();
1397
- async function p(y, { replace: k } = {}) {
1398
- r.stopListening();
1399
- const A = pt(t, y) ?? g("NotFound"), C = { ...S }, D = await o({ to: A, from: C, hooks: s });
1400
- switch (D.status) {
1394
+ }), { runBeforeRouteHooks: a, runAfterRouteHooks: s } = Je(), {
1395
+ hooks: c,
1396
+ onBeforeRouteEnter: u,
1397
+ onAfterRouteUpdate: f,
1398
+ onBeforeRouteLeave: h,
1399
+ onAfterRouteEnter: m,
1400
+ onBeforeRouteUpdate: b,
1401
+ onAfterRouteLeave: y
1402
+ } = Ke();
1403
+ async function k(w, { replace: q } = {}) {
1404
+ if (r.stopListening(), S(w))
1405
+ return r.update(w, { replace: q });
1406
+ const O = Rt(n, w) ?? E("NotFound"), W = { ...p }, T = await a({ to: O, from: W, hooks: c });
1407
+ switch (T.status) {
1401
1408
  case "ABORT":
1402
1409
  return;
1403
1410
  case "PUSH":
1404
- r.update(y, { replace: k }), await E(...D.to);
1411
+ r.update(w, { replace: q }), await x(...T.to);
1405
1412
  return;
1406
1413
  case "REJECT":
1407
- r.update(y, { replace: k }), U(D.type), i(A);
1414
+ r.update(w, { replace: q }), d(T.type), l(O);
1408
1415
  break;
1409
1416
  case "SUCCESS":
1410
- r.update(y, { replace: k }), U(null), i(A);
1417
+ r.update(w, { replace: q }), d(null), l(O);
1411
1418
  break;
1412
1419
  default:
1413
- throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(D)}`);
1420
+ throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(T)}`);
1414
1421
  }
1415
- const O = await a({ to: A, from: C, hooks: s });
1416
- switch (O.status) {
1422
+ const D = await s({ to: O, from: W, hooks: c });
1423
+ switch (D.status) {
1417
1424
  case "PUSH":
1418
- await E(...O.to);
1425
+ await x(...D.to);
1419
1426
  break;
1420
1427
  case "REJECT":
1421
- U(O.type);
1428
+ d(D.type);
1422
1429
  break;
1423
1430
  case "SUCCESS":
1424
1431
  break;
1425
1432
  default:
1426
- const Z = O;
1427
- throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(Z)}`);
1433
+ const nt = D;
1434
+ throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(nt)}`);
1428
1435
  }
1429
1436
  r.startListening();
1430
1437
  }
1431
- const E = (y, k, A) => {
1432
- if (W(y)) {
1433
- const Z = { ...k }, ge = n(y, Z);
1434
- return p(ge, { replace: Z.replace });
1438
+ const x = (w, q, O) => {
1439
+ if (J(w)) {
1440
+ const nt = { ...q }, ke = o(w, nt);
1441
+ return k(ke, { replace: nt.replace });
1435
1442
  }
1436
- const C = { ...A }, O = n(y, k ?? {}, C);
1437
- return p(O, { replace: C.replace });
1438
- }, j = (y, k, A) => {
1439
- if (W(y)) {
1440
- const O = { ...k, replace: !0 };
1441
- return E(y, O);
1443
+ const W = { ...O }, D = o(w, q ?? {}, W);
1444
+ return k(D, { replace: W.replace });
1445
+ }, V = (w, q, O) => {
1446
+ if (J(w)) {
1447
+ const D = { ...q, replace: !0 };
1448
+ return x(w, D);
1442
1449
  }
1443
- const C = k ?? {}, D = { ...A, replace: !0 };
1444
- return E(y, C, D);
1445
- }, V = (y) => U(y), B = Un(t), { setRejection: U, rejection: R, getRejectionRoute: g } = $n(e), P = g("NotFound"), { currentRoute: S, routerRoute: m, updateRoute: i } = rn(P, E);
1450
+ const W = q ?? {}, T = { ...O, replace: !0 };
1451
+ return x(w, W, T);
1452
+ }, U = (w) => d(w), C = Vn(n), { setRejection: d, rejection: R, getRejectionRoute: E } = On(e), P = E("NotFound"), { currentRoute: p, routerRoute: i, updateRoute: l } = fn(P, x);
1446
1453
  r.startListening();
1447
- const l = Vn(e.initialUrl), v = p(l, { replace: !0 });
1448
- function w(y) {
1449
- y.component("RouterView", Xt), y.component("RouterLink", Fe), y.provide(Wt, x), y.provide(Ft, R), y.provide(Qt, s);
1450
- }
1451
- const x = {
1452
- route: m,
1453
- resolve: n,
1454
- push: E,
1455
- replace: j,
1456
- reject: V,
1457
- find: B,
1454
+ const g = Mn(e.initialUrl), { host: v } = _(g), S = pn(v), A = k(g, { replace: !0 });
1455
+ function B(w) {
1456
+ w.component("RouterView", re), w.component("RouterLink", ze), w.provide(zt, R), w.provide(Zt, c), w.provide(Gt, N);
1457
+ }
1458
+ const N = {
1459
+ route: i,
1460
+ resolve: o,
1461
+ push: x,
1462
+ replace: V,
1463
+ reject: U,
1464
+ find: C,
1458
1465
  refresh: r.refresh,
1459
1466
  forward: r.forward,
1460
1467
  back: r.back,
1461
1468
  go: r.go,
1462
- install: w,
1463
- initialized: v,
1464
- onBeforeRouteEnter: c,
1465
- onAfterRouteUpdate: u,
1466
- onBeforeRouteLeave: f,
1467
- onAfterRouteEnter: h,
1468
- onBeforeRouteUpdate: d,
1469
- onAfterRouteLeave: b
1469
+ install: B,
1470
+ initialized: A,
1471
+ isExternal: S,
1472
+ onBeforeRouteEnter: u,
1473
+ onAfterRouteUpdate: f,
1474
+ onBeforeRouteLeave: h,
1475
+ onAfterRouteEnter: m,
1476
+ onBeforeRouteUpdate: b,
1477
+ onAfterRouteLeave: y
1470
1478
  };
1471
- return x;
1472
- }
1473
- function me(t, e) {
1474
- const n = new RegExp(`\\${J}\\??([\\w-_]+)\\${X}`, "g");
1475
- return Array.from(t.matchAll(n)).reduce((o, [a, s]) => {
1476
- const c = a.startsWith(`${J}?`), u = Ze(e, s);
1477
- if (s in o)
1478
- throw new it(s);
1479
- return o[s] = c ? Ge(u) : u, o;
1480
- }, {});
1479
+ return N;
1481
1480
  }
1482
- function Re(t, e) {
1483
- return {
1484
- path: t,
1485
- params: me(t, e),
1486
- toString: () => t
1487
- };
1488
- }
1489
- function Lt(t, e) {
1490
- const n = Object.keys(t), r = Object.keys(e), o = n.find((a) => r.includes(a));
1491
- return o ? {
1492
- key: o,
1481
+ function Ht(t, e) {
1482
+ const n = Object.keys(t).map(Mt), o = Object.keys(e).map(Mt), r = n.find((a) => o.includes(a));
1483
+ return r ? {
1484
+ key: r,
1493
1485
  hasDuplicates: !0
1494
1486
  } : {
1495
1487
  key: void 0,
1496
1488
  hasDuplicates: !1
1497
1489
  };
1498
1490
  }
1499
- function Cn(t, e) {
1500
- const { hasDuplicates: n, key: r } = Lt(t.params, e.params);
1501
- if (n)
1502
- throw new it(r);
1503
- return Re(`${t.path}${e.path}`, { ...t.params, ...e.params });
1491
+ function Mt(t) {
1492
+ return t.startsWith("?") ? t.slice(1) : t;
1504
1493
  }
1505
- function dt(t, e) {
1494
+ function ge(t, e) {
1495
+ const { hasDuplicates: n, key: o } = Ht(t.params, e.params);
1496
+ if (n)
1497
+ throw new ht(o);
1498
+ const r = `${t.path}${e.path}`;
1506
1499
  return {
1507
- query: t,
1508
- params: me(t, e),
1509
- toString: () => t
1500
+ path: r,
1501
+ params: { ...t.params, ...e.params },
1502
+ toString: () => r
1510
1503
  };
1511
1504
  }
1512
- function On(t, e) {
1513
- const { hasDuplicates: n, key: r } = Lt(t.params, e.params);
1505
+ function ve(t, e) {
1506
+ const { hasDuplicates: n, key: o } = Ht(t.params, e.params);
1514
1507
  if (n)
1515
- throw new it(r);
1516
- const o = [t.query, e.query].filter(bt).join("&");
1517
- return dt(o, { ...t.params, ...e.params });
1508
+ throw new ht(o);
1509
+ const r = [t.query, e.query].filter(xt).join("&");
1510
+ return {
1511
+ query: r,
1512
+ params: { ...t.params, ...e.params },
1513
+ toString: () => r
1514
+ };
1518
1515
  }
1519
- function ye(t) {
1520
- return typeof t == "object" && t !== null && !Array.isArray(t);
1516
+ function we(t, e) {
1517
+ const n = new RegExp(`\\${Y}(\\??[\\w-_]+)\\${X}`, "g");
1518
+ return Array.from(t.matchAll(n)).reduce((r, [a, s]) => {
1519
+ const c = Nt(a);
1520
+ if (!c)
1521
+ return r;
1522
+ const u = on(e, c);
1523
+ if (c in r)
1524
+ throw new ht(s);
1525
+ return r[s] = u, r;
1526
+ }, {});
1521
1527
  }
1522
- function _n(t) {
1523
- return ye(t) && typeof t.path == "string";
1528
+ function Tn(t, e) {
1529
+ return {
1530
+ path: t,
1531
+ params: we(t, e),
1532
+ toString: () => t
1533
+ };
1524
1534
  }
1525
- function qn(t) {
1526
- return _n(t) ? t : Re(t, {});
1535
+ function In(t) {
1536
+ return Re(t) && typeof t.path == "string";
1527
1537
  }
1528
- function Dn(t) {
1529
- return ye(t) && typeof t.query == "string";
1538
+ function Ee(t) {
1539
+ return In(t) ? t : Tn(t, {});
1530
1540
  }
1531
- function Mn(t) {
1532
- return t === void 0 ? dt("", {}) : Dn(t) ? t : dt(t, {});
1541
+ function Wt(t, e) {
1542
+ return {
1543
+ query: t,
1544
+ params: we(t, e),
1545
+ toString: () => t
1546
+ };
1547
+ }
1548
+ function Fn(t) {
1549
+ return Re(t) && typeof t.query == "string";
1550
+ }
1551
+ function be(t) {
1552
+ return t === void 0 ? Wt("", {}) : Fn(t) ? t : Wt(t, {});
1533
1553
  }
1534
- function tr(t) {
1535
- const e = t.reduce((n, r) => {
1536
- const o = Tn(r);
1537
- return Yt(r) && n.push(...r.children.map((a) => ({
1554
+ function ar(t) {
1555
+ const e = t.reduce((n, o) => {
1556
+ const r = Jn(o);
1557
+ return ne(o) && n.push(...o.children.map((a) => ({
1538
1558
  ...a,
1539
- key: It(o.key, a.key),
1540
- path: Cn(o.path, a.path),
1541
- query: On(o.query, a.query),
1542
- matches: [o.matched, ...a.matches],
1559
+ key: wt(r.key, a.key),
1560
+ path: ge(r.path, a.path),
1561
+ query: ve(r.query, a.query),
1562
+ matches: [r.matched, ...a.matches],
1543
1563
  depth: a.depth + 1
1544
- }))), n.push(o), n;
1564
+ }))), n.push(r), n;
1545
1565
  }, []);
1546
- return e.forEach(({ path: n, query: r }) => {
1547
- const { hasDuplicates: o, key: a } = Lt(n.params, r.params);
1548
- if (o)
1549
- throw new it(a);
1550
- }), e;
1566
+ return Pe(e), e;
1551
1567
  }
1552
- function Tn(t) {
1553
- const e = Wn(t), n = qn(t.path), r = Mn(t.query), o = ht({ meta: {}, ...e });
1568
+ function Jn(t) {
1569
+ const e = Qn(t), n = Ee(t.path), o = be(t.query), r = at({ meta: {}, ...e });
1554
1570
  return {
1555
- matched: o,
1556
- matches: [o],
1571
+ matched: r,
1572
+ matches: [r],
1557
1573
  key: t.name ?? "",
1558
1574
  path: n,
1559
- query: r,
1575
+ query: o,
1560
1576
  depth: 1,
1561
- disabled: t.disabled ?? !1
1577
+ disabled: t.disabled ?? !1,
1578
+ host: ""
1562
1579
  };
1563
1580
  }
1564
- function Wn(t) {
1565
- return Ie(t) ? { ...t, component: Xt } : t;
1581
+ function Pe(t) {
1582
+ t.forEach(({ path: e, query: n }) => {
1583
+ const { hasDuplicates: o, key: r } = Ht(e.params, n.params);
1584
+ if (o)
1585
+ throw new ht(r);
1586
+ });
1587
+ }
1588
+ function Qn(t) {
1589
+ return Ye(t) ? { ...t, component: re } : t;
1590
+ }
1591
+ function sr(t) {
1592
+ const e = t.reduce((n, o) => {
1593
+ const r = Kn(o);
1594
+ return o.children && n.push(...o.children.map((a) => ({
1595
+ ...a,
1596
+ key: wt(r.key, a.key),
1597
+ path: ge(r.path, a.path),
1598
+ query: ve(r.query, a.query),
1599
+ matches: [r.matched, ...a.matches],
1600
+ depth: a.depth + 1,
1601
+ host: o.host ?? ""
1602
+ }))), n.push(r), n;
1603
+ }, []);
1604
+ return Pe(e), e;
1605
+ }
1606
+ function Kn(t) {
1607
+ const e = Ee(t.path), n = be(t.query);
1608
+ return {
1609
+ matched: at({ meta: {}, ...t, name: t.name ?? "", children: [] }),
1610
+ matches: [],
1611
+ key: t.name ?? "",
1612
+ path: e,
1613
+ query: n,
1614
+ depth: 1,
1615
+ disabled: t.disabled ?? !1,
1616
+ host: t.host ?? ""
1617
+ };
1566
1618
  }
1567
1619
  export {
1568
- it as DuplicateParamsError,
1569
- Fe as RouterLink,
1570
- mt as RouterNotInstalledError,
1571
- Xt as RouterView,
1572
- Be as UseRouteInvalidError,
1573
- Yn as component,
1574
- oe as createParam,
1575
- Zn as createRouter,
1576
- tr as createRoutes,
1577
- ut as isParamGetSet,
1578
- Ye as isParamGetter,
1579
- Xe as isParamWithDefault,
1580
- Yt as isParentRoute,
1581
- Ie as isParentRouteWithoutComponent,
1582
- Ve as isRoute,
1583
- Je as isRouteWithComponent,
1584
- Ke as isRouteWithComponents,
1585
- Qn as onAfterRouteEnter,
1586
- Gn as onAfterRouteLeave,
1587
- zn as onAfterRouteUpdate,
1588
- Jn as onBeforeRouteLeave,
1589
- Kn as onBeforeRouteUpdate,
1620
+ ht as DuplicateParamsError,
1621
+ ze as RouterLink,
1622
+ gt as RouterNotInstalledError,
1623
+ re as RouterView,
1624
+ Ce as UseRouteInvalidError,
1625
+ nr as component,
1626
+ sr as createExternalRoutes,
1627
+ sn as createParam,
1628
+ or as createRouter,
1629
+ ar as createRoutes,
1630
+ pt as isParamGetSet,
1631
+ nn as isParamGetter,
1632
+ rn as isParamWithDefault,
1633
+ ne as isParentRoute,
1634
+ Ye as isParentRouteWithoutComponent,
1635
+ Me as isRoute,
1636
+ Xe as isRouteWithComponent,
1637
+ Ze as isRouteWithComponents,
1638
+ Zn as onAfterRouteEnter,
1639
+ tr as onAfterRouteLeave,
1640
+ er as onAfterRouteUpdate,
1641
+ Yn as onBeforeRouteLeave,
1642
+ Xn as onBeforeRouteUpdate,
1590
1643
  X as paramEnd,
1591
- J as paramStart,
1592
- Re as path,
1593
- dt as query,
1594
- Wt as routerInjectionKey,
1595
- Ft as routerRejectionKey,
1596
- He as useLink,
1597
- Ne as useRejection,
1598
- Oe as useRoute,
1599
- Rt as useRouter,
1600
- Xn as withDefault
1644
+ Y as paramStart,
1645
+ Tn as path,
1646
+ Wt as query,
1647
+ Gt as routerInjectionKey,
1648
+ zt as routerRejectionKey,
1649
+ Pe as throwIfDuplicateParamsAreFound,
1650
+ qe as useLink,
1651
+ _e as useRejection,
1652
+ Te as useRoute,
1653
+ vt as useRouter,
1654
+ rr as withDefault
1601
1655
  };