@kitbag/router 0.22.6 → 0.23.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,4 +1,4 @@
1
- import { markRaw as ht, defineComponent as Me, h as ue, inject as Re, provide as Lo, onUnmounted as dn, toRefs as Do, computed as x, reactive as Pt, watch as fe, onServerPrefetch as xo, defineAsyncComponent as Vo, ref as Qe, toValue as D, getCurrentInstance as Mo } from "vue";
1
+ import { markRaw as ht, defineComponent as Me, h as ue, inject as Re, provide as Lo, onUnmounted as pn, toRefs as Do, computed as x, reactive as Nt, watch as fe, onServerPrefetch as xo, defineAsyncComponent as Vo, ref as Qe, toValue as D, getCurrentInstance as Mo } from "vue";
2
2
  class Bo extends Error {
3
3
  constructor(t) {
4
4
  super(`Child property on meta for ${t} conflicts with the parent meta.`);
@@ -85,15 +85,15 @@ class qo extends Error {
85
85
  super(`useRoute called with incorrect route. Given ${t}, expected ${n}`);
86
86
  }
87
87
  }
88
- function Nt() {
88
+ function It() {
89
89
  let e = 0;
90
90
  return () => (++e).toString();
91
91
  }
92
- const zo = Nt()();
92
+ const zo = It()();
93
93
  function Wo(e) {
94
94
  return e === zo;
95
95
  }
96
- const pn = Nt();
96
+ const hn = It();
97
97
  function ir(e) {
98
98
  return e === void 0 ? "" : e;
99
99
  }
@@ -116,7 +116,7 @@ class Jo extends Error {
116
116
  super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`);
117
117
  }
118
118
  }
119
- function It() {
119
+ function At() {
120
120
  const e = new Se();
121
121
  return {
122
122
  redirect: (l, m) => {
@@ -137,7 +137,7 @@ function It() {
137
137
  store: e
138
138
  };
139
139
  }
140
- class hn extends Error {
140
+ class En extends Error {
141
141
  context;
142
142
  constructor(t = {}) {
143
143
  super(t.message ?? "Uncaught InvalidRouteParamValueError"), this.context = {
@@ -148,28 +148,28 @@ class hn extends Error {
148
148
  };
149
149
  }
150
150
  }
151
- const et = "[", At = "]";
151
+ const et = "[", bt = "]";
152
152
  function Ko(e) {
153
153
  return e !== String && e !== Boolean && e !== Number && e !== Date;
154
154
  }
155
155
  function Yo(e) {
156
156
  return typeof e == "function" && Ko(e);
157
157
  }
158
- function bt(e) {
158
+ function vt(e) {
159
159
  return typeof e == "object" && "get" in e && typeof e.get == "function" && "set" in e && typeof e.set == "function";
160
160
  }
161
- function ar(e) {
161
+ function gn(e) {
162
162
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
163
163
  }
164
164
  function Qo(e, t) {
165
- return bt(e) ? { ...e, defaultValue: t ?? e.defaultValue } : {
165
+ return vt(e) ? { ...e, defaultValue: t ?? e.defaultValue } : {
166
166
  get: (n) => me(n, { param: e }),
167
167
  set: (n) => ae(n, { param: e }),
168
168
  defaultValue: t
169
169
  };
170
170
  }
171
- function cr(e) {
172
- return bt(e) && e.defaultValue !== void 0;
171
+ function Et(e) {
172
+ return vt(e) && e.defaultValue !== void 0;
173
173
  }
174
174
  function Wc(e, t) {
175
175
  return Qo(e, t);
@@ -262,9 +262,9 @@ async function ts() {
262
262
  };
263
263
  }
264
264
  function ns(e) {
265
- return Object.values(e).some((t) => ve(t) ? Object.values(t.schema.host.params).some(({ param: n }) => Zt(n)) || Object.values(t.schema.path.params).some(({ param: n }) => Zt(n)) || Object.values(t.schema.query.params).some(({ param: n }) => Zt(n)) : !1);
265
+ return Object.values(e).some((t) => ve(t) ? Object.values(t.schema.host.params).some(({ param: n }) => Gt(n)) || Object.values(t.schema.path.params).some(({ param: n }) => Gt(n)) || Object.values(t.schema.query.params).some(({ param: n }) => Gt(n)) : !1);
266
266
  }
267
- function Zt(e) {
267
+ function Gt(e) {
268
268
  return ke(e) && "parse" in e && typeof e.parse == "function" && "~standard" in e && ke(e["~standard"]) && "vendor" in e["~standard"] && e["~standard"].vendor === "zod";
269
269
  }
270
270
  async function rs() {
@@ -274,21 +274,21 @@ async function rs() {
274
274
  throw new Error("Failed to initialize Zod");
275
275
  }
276
276
  }
277
- function ur(e) {
277
+ function ar(e) {
278
278
  return w ? e instanceof w.ZodType : !1;
279
279
  }
280
- function fr(e) {
280
+ function cr(e) {
281
281
  return {
282
282
  get: (t, { invalid: n }) => {
283
283
  try {
284
- return Jt(t, e);
284
+ return Kt(t, e);
285
285
  } catch {
286
286
  throw n();
287
287
  }
288
288
  },
289
289
  set: (t, { invalid: n }) => {
290
290
  try {
291
- return Kt(t, e);
291
+ return Yt(t, e);
292
292
  } catch {
293
293
  throw n();
294
294
  }
@@ -312,10 +312,10 @@ function Ge(e) {
312
312
  }
313
313
  throw new Error("All functions failed");
314
314
  }
315
- function Et(e, t) {
315
+ function gt(e, t) {
316
316
  return w?.ZodString && e instanceof w.ZodString ? 1 : w?.ZodString && t instanceof w.ZodString ? -1 : 0;
317
317
  }
318
- function Jt(e, t) {
318
+ function Kt(e, t) {
319
319
  if (!w)
320
320
  throw new Error("Zod is not initialized");
321
321
  if (t instanceof w.ZodString)
@@ -343,11 +343,11 @@ function Jt(e, t) {
343
343
  if (t instanceof w.ZodArray || t instanceof w.ZodTuple)
344
344
  return t.parse(JSON.parse(e, Pe));
345
345
  if (t instanceof w.ZodUnion) {
346
- const n = Array.from(t.def.options).sort(Et).map((r) => () => Jt(e, r));
346
+ const n = Array.from(t.def.options).sort(gt).map((r) => () => Kt(e, r));
347
347
  return Ge(n);
348
348
  }
349
349
  if (t instanceof w.ZodDiscriminatedUnion) {
350
- const n = Array.from(t.options).sort(Et).map((r) => () => Jt(e, r));
350
+ const n = Array.from(t.options).sort(gt).map((r) => () => Kt(e, r));
351
351
  return Ge(n);
352
352
  }
353
353
  if (t instanceof w.ZodRecord)
@@ -362,7 +362,7 @@ function Jt(e, t) {
362
362
  throw new Error("Promise schemas are not supported");
363
363
  return t.parse(e);
364
364
  }
365
- function Kt(e, t) {
365
+ function Yt(e, t) {
366
366
  if (!w)
367
367
  throw new Error("Zod is not initialized");
368
368
  if (t instanceof w.ZodString || t instanceof w.ZodISODateTime || t instanceof w.ZodISODate || t instanceof w.ZodISOTime || t instanceof w.ZodIPv4 || t instanceof w.ZodIPv6 || t instanceof w.ZodCIDRv4 || t instanceof w.ZodCIDRv6 || t instanceof w.ZodURL || t instanceof w.ZodEmail || t instanceof w.ZodUUID || t instanceof w.ZodBase64 || t instanceof w.ZodCUID || t instanceof w.ZodCUID2 || t instanceof w.ZodULID || t instanceof w.ZodJWT)
@@ -390,11 +390,11 @@ function Kt(e, t) {
390
390
  if (t instanceof w.ZodArray || t instanceof w.ZodTuple)
391
391
  return JSON.stringify(t.parse(e));
392
392
  if (t instanceof w.ZodUnion) {
393
- const n = Array.from(t.def.options).sort(Et).map((r) => () => Kt(e, r));
393
+ const n = Array.from(t.def.options).sort(gt).map((r) => () => Yt(e, r));
394
394
  return Ge(n);
395
395
  }
396
396
  if (t instanceof w.ZodDiscriminatedUnion) {
397
- const n = Array.from(t.options).sort(Et).map((r) => () => Kt(e, r));
397
+ const n = Array.from(t.options).sort(gt).map((r) => () => Yt(e, r));
398
398
  return Ge(n);
399
399
  }
400
400
  if (t instanceof w.ZodRecord)
@@ -413,12 +413,12 @@ function Kt(e, t) {
413
413
  throw new Error("Promise schemas are not supported");
414
414
  return JSON.stringify(t.parse(e));
415
415
  }
416
- function En(e) {
416
+ function _n(e) {
417
417
  return typeof e == "object" && e !== null && "then" in e;
418
418
  }
419
419
  function b(e, t) {
420
420
  const n = e["~standard"].validate(t);
421
- if (En(n))
421
+ if (_n(n))
422
422
  throw new Error("Promise schemas are not supported");
423
423
  if (n.issues)
424
424
  throw new Error("Validation failed");
@@ -427,21 +427,21 @@ function b(e, t) {
427
427
  function ss(e) {
428
428
  return ke(e) && "type" in e && typeof e.type == "string" && "~standard" in e && ke(e["~standard"]) && "vendor" in e["~standard"] && e["~standard"].vendor === "valibot";
429
429
  }
430
- function lr(e) {
430
+ function ur(e) {
431
431
  return ss(e);
432
432
  }
433
- function dr(e) {
433
+ function fr(e) {
434
434
  return {
435
435
  get: (t, { invalid: n }) => {
436
436
  try {
437
- return Yt(t, e);
437
+ return Qt(t, e);
438
438
  } catch {
439
439
  throw n();
440
440
  }
441
441
  },
442
442
  set: (t, { invalid: n }) => {
443
443
  try {
444
- return Qt(t, e);
444
+ return Xt(t, e);
445
445
  } catch {
446
446
  throw n();
447
447
  }
@@ -465,10 +465,10 @@ function Ie(e) {
465
465
  }
466
466
  throw new Error("All functions failed");
467
467
  }
468
- function gt(e, t) {
468
+ function _t(e, t) {
469
469
  return e.type === "string" ? 1 : t.type === "string" ? -1 : 0;
470
470
  }
471
- function Yt(e, t) {
471
+ function Qt(e, t) {
472
472
  if (t.type === "boolean")
473
473
  return b(t, !!e);
474
474
  if (t.type === "date")
@@ -492,11 +492,11 @@ function Yt(e, t) {
492
492
  if (t.type === "array" || t.type === "tuple")
493
493
  return b(t, JSON.parse(e, Ne));
494
494
  if (t.type === "union" && "options" in t) {
495
- const n = t.options.sort(gt).map((r) => () => Yt(e, r));
495
+ const n = t.options.sort(_t).map((r) => () => Qt(e, r));
496
496
  return Ie(n);
497
497
  }
498
498
  if (t.type === "variant" && "options" in t) {
499
- const n = t.options.sort(gt).map((r) => () => Yt(e, r));
499
+ const n = t.options.sort(_t).map((r) => () => Qt(e, r));
500
500
  return Ie(n);
501
501
  }
502
502
  if (t.type === "record")
@@ -513,7 +513,7 @@ function Yt(e, t) {
513
513
  throw new Error("Function schemas are not supported");
514
514
  return b(t, e);
515
515
  }
516
- function Qt(e, t) {
516
+ function Xt(e, t) {
517
517
  if (t.type === "string" || t.type === "boolean")
518
518
  return b(t, e).toString();
519
519
  if (t.type === "date")
@@ -529,11 +529,11 @@ function Qt(e, t) {
529
529
  if (t.type === "array" || t.type === "tuple")
530
530
  return JSON.stringify(b(t, e));
531
531
  if (t.type === "union" && "options" in t) {
532
- const n = t.options.sort(gt).map((r) => () => Qt(e, r));
532
+ const n = t.options.sort(_t).map((r) => () => Xt(e, r));
533
533
  return Ie(n);
534
534
  }
535
535
  if (t.type === "variant" && "options" in t) {
536
- const n = t.options.sort(gt).map((r) => () => Qt(e, r));
536
+ const n = t.options.sort(_t).map((r) => () => Xt(e, r));
537
537
  return Ie(n);
538
538
  }
539
539
  if (t.type === "record")
@@ -554,24 +554,38 @@ function Qt(e, t) {
554
554
  throw new Error("Function schemas are not supported");
555
555
  return JSON.stringify(b(t, e));
556
556
  }
557
+ function lr(e) {
558
+ return {
559
+ get: (t, { invalid: n }) => {
560
+ if (`${e}` === t)
561
+ return e;
562
+ throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`);
563
+ },
564
+ set: (t, { invalid: n }) => {
565
+ if (e !== t)
566
+ throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);
567
+ return t.toString();
568
+ }
569
+ };
570
+ }
557
571
  function as(e, t) {
558
572
  return e[t] ?? String;
559
573
  }
560
- function pr(e) {
574
+ function dr(e) {
561
575
  return {
562
576
  invalid: (t) => {
563
- throw new hn({ ...e, message: t });
577
+ throw new En({ ...e, message: t });
564
578
  }
565
579
  };
566
580
  }
567
- const hr = {
581
+ const cs = {
568
582
  get: (e) => e,
569
583
  set: (e, { invalid: t }) => {
570
584
  if (typeof e != "string")
571
585
  throw t(`Expected string value, received ${JSON.stringify(e)}`);
572
586
  return e;
573
587
  }
574
- }, gn = {
588
+ }, pr = {
575
589
  get: (e, { invalid: t }) => {
576
590
  if (e === "true")
577
591
  return !0;
@@ -584,7 +598,7 @@ const hr = {
584
598
  throw t(`Expected boolean value, received ${JSON.stringify(e)}`);
585
599
  return e.toString();
586
600
  }
587
- }, _n = {
601
+ }, hr = {
588
602
  get: (e, { invalid: t }) => {
589
603
  const n = Number(e);
590
604
  if (isNaN(n))
@@ -624,58 +638,41 @@ const hr = {
624
638
  }
625
639
  }
626
640
  };
627
- function cs(e, t, n) {
628
- switch (typeof t) {
629
- case "string":
630
- return hr.get(e, n) === t;
631
- case "number":
632
- return _n.get(e, n) === t;
633
- case "boolean":
634
- return gn.get(e, n) === t;
635
- default:
636
- return !1;
637
- }
638
- }
639
641
  function me(e, { param: t = String, isOptional: n = !1 } = {}) {
640
- const r = pr({ param: t, value: e, isGetter: !0 });
642
+ const r = dr({ param: t, value: e, isGetter: !0 });
641
643
  if (e === void 0 || !oe(e)) {
642
- if (cr(t))
644
+ if (Et(t))
643
645
  return t.defaultValue;
644
646
  if (n)
645
647
  return;
646
648
  throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`);
647
649
  }
648
650
  if (t === String)
649
- return hr.get(e, r);
651
+ return cs.get(e, r);
650
652
  if (t === Boolean)
651
- return gn.get(e, r);
653
+ return pr.get(e, r);
652
654
  if (t === Number)
653
- return _n.get(e, r);
655
+ return hr.get(e, r);
654
656
  if (t === Date)
655
657
  return Er.get(e, r);
656
658
  if (t === JSON)
657
659
  return gr.get(e, r);
658
660
  if (Yo(t))
659
661
  return t(e, r);
660
- if (bt(t))
662
+ if (vt(t))
661
663
  return t.get(e, r);
662
664
  if (t instanceof RegExp) {
663
665
  if (t.test(e))
664
666
  return e;
665
667
  throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`);
666
668
  }
667
- if (ar(t)) {
668
- if (cs(e, t, r))
669
- return t;
670
- throw r.invalid(`Expected value to be ${t}, received ${JSON.stringify(e)}`);
671
- }
672
- return ur(t) ? fr(t).get(e, r) : lr(t) ? dr(t).get(e, r) : e;
669
+ return gn(t) ? lr(t).get(e, r) : ar(t) ? cr(t).get(e, r) : ur(t) ? fr(t).get(e, r) : e;
673
670
  }
674
- function Xt(e, t) {
671
+ function en(e, t) {
675
672
  try {
676
673
  return me(e, t);
677
674
  } catch (n) {
678
- if (n instanceof hn)
675
+ if (n instanceof En)
679
676
  return;
680
677
  throw n;
681
678
  }
@@ -684,44 +681,41 @@ function us(e, t) {
684
681
  try {
685
682
  return ae(e, t);
686
683
  } catch (n) {
687
- if (n instanceof hn)
684
+ if (n instanceof En)
688
685
  return;
689
686
  throw n;
690
687
  }
691
688
  }
692
689
  function ae(e, { param: t = String, isOptional: n = !1 } = {}) {
693
- const r = pr({ param: t, value: e, isSetter: !0 });
690
+ const r = dr({ param: t, value: e, isSetter: !0 });
694
691
  if (e === void 0) {
695
692
  if (n)
696
693
  return "";
697
694
  throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`);
698
695
  }
699
696
  if (t === Boolean)
700
- return gn.set(e, r);
697
+ return pr.set(e, r);
701
698
  if (t === Number)
702
- return _n.set(e, r);
699
+ return hr.set(e, r);
703
700
  if (t === Date)
704
701
  return Er.set(e, r);
705
702
  if (t === JSON)
706
703
  return gr.set(e, r);
707
- if (bt(t))
704
+ if (vt(t))
708
705
  return t.set(e, r);
709
- if (ar(t)) {
710
- if (t !== e)
711
- throw r.invalid(`Expected value to be literal ${t}, received ${JSON.stringify(e)}`);
712
- return e.toString();
713
- }
706
+ if (gn(t))
707
+ return lr(t).set(e, r);
708
+ if (ar(t))
709
+ return cr(t).set(e, r);
714
710
  if (ur(t))
715
711
  return fr(t).set(e, r);
716
- if (lr(t))
717
- return dr(t).set(e, r);
718
712
  try {
719
713
  return e.toString();
720
714
  } catch {
721
715
  throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`);
722
716
  }
723
717
  }
724
- const vt = `\\${et}\\??([\\w-_]+)\\*?\\${At}`, fs = `\\${et}\\?([\\w-_]+)\\*?\\${At}`, ls = `\\${et}\\??([\\w-_]+)\\*\\${At}`, ds = "[^/]*", ps = ".*", hs = "([^/]*)", Es = "(.*)";
718
+ const kt = `\\${et}\\??([\\w-_]+)\\*?\\${bt}`, fs = `\\${et}\\?([\\w-_]+)\\*?\\${bt}`, ls = `\\${et}\\??([\\w-_]+)\\*\\${bt}`, ds = "[^/]*", ps = ".*", hs = "([^/]*)", Es = "(.*)";
725
719
  function mn(e) {
726
720
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
727
721
  }
@@ -739,29 +733,29 @@ function gs(e, t) {
739
733
  return s && o.push(s), o;
740
734
  }
741
735
  function _s(e) {
742
- const t = kt(e);
736
+ const t = Ct(e);
743
737
  return new RegExp(`^${t || ".*"}$`, "i");
744
738
  }
745
739
  function Ln(e) {
746
- const t = kt(e);
740
+ const t = Ct(e);
747
741
  return new RegExp(`^${t}$`, "i");
748
742
  }
749
743
  function ms(e) {
750
- const t = e.replace(/^#*/, ""), n = kt(t);
744
+ const t = e.replace(/^#*/, ""), n = Ct(t);
751
745
  return new RegExp(`^#?${n || ".*"}$`, "i");
752
746
  }
753
747
  function ys(e) {
754
748
  const t = new URLSearchParams(e);
755
749
  return Array.from(t.entries()).filter(([, n]) => !mr(n)).map(([n, r]) => {
756
- const o = kt(r);
750
+ const o = Ct(r);
757
751
  return new RegExp(`${mn(n)}=${o}(&|$)`, "i");
758
752
  });
759
753
  }
760
- function kt(e) {
761
- return gs(e, new RegExp(vt, "g")).map((t) => t.startsWith(et) ? _r(t) : mn(t)).join("");
754
+ function Ct(e) {
755
+ return gs(e, new RegExp(kt, "g")).map((t) => t.startsWith(et) ? _r(t) : mn(t)).join("");
762
756
  }
763
757
  function _r(e) {
764
- return e.replace(new RegExp(vt, "g"), (t) => yr(t) ? ps : ds);
758
+ return e.replace(new RegExp(kt, "g"), (t) => yr(t) ? ps : ds);
765
759
  }
766
760
  function Rs(e, t) {
767
761
  const n = Rr(t), { isGreedy: r = !1 } = e.params[t] ?? {}, o = r ? Es : hs;
@@ -773,22 +767,22 @@ function mr(e) {
773
767
  function yr(e) {
774
768
  return new RegExp(ls, "g").test(e);
775
769
  }
776
- function Ct(e) {
777
- const [t] = Sr(e, new RegExp(vt, "g"));
770
+ function Ut(e) {
771
+ const [t] = Sr(e, new RegExp(kt, "g"));
778
772
  return t;
779
773
  }
780
774
  function Rr(e) {
781
- return new RegExp(`\\${et}\\??${e}\\*?\\${At}`, "g");
775
+ return new RegExp(`\\${et}\\??${e}\\*?\\${bt}`, "g");
782
776
  }
783
777
  function Sr(e, t) {
784
778
  return Array.from(e.matchAll(t)).flatMap(([, ...r]) => r.map((o) => oe(o) ? o : ""));
785
779
  }
786
780
  function Ss(e = "", t = {}) {
787
- return oe(e) ? Array.from(e.matchAll(new RegExp(vt, "g"))).reduce((r, [o, s]) => {
788
- const a = Ct(o);
781
+ return oe(e) ? Array.from(e.matchAll(new RegExp(kt, "g"))).reduce((r, [o, s]) => {
782
+ const a = Ut(o);
789
783
  if (!a)
790
784
  return r;
791
- const i = as(t, a), u = mr(o) || cr(i), l = yr(o);
785
+ const i = as(t, a), u = mr(o) || Et(i), l = yr(o);
792
786
  return Xe([a], r), r[s] = { param: i, isOptional: u, isGreedy: l }, r;
793
787
  }, {}) : {};
794
788
  }
@@ -797,27 +791,27 @@ function Tr(e) {
797
791
  return ke(e) && e[Or] === !0;
798
792
  }
799
793
  function X(e) {
800
- return e === void 0 ? en() : Tr(e) ? e : en(e, {});
794
+ return e === void 0 ? tn() : Tr(e) ? e : tn(e, {});
801
795
  }
802
- function en(e, t) {
796
+ function tn(e, t) {
803
797
  return {
804
798
  value: e ?? "",
805
799
  params: Ss(e, t),
806
800
  [Or]: !0
807
801
  };
808
802
  }
809
- function Ut(e) {
803
+ function Lt(e) {
810
804
  if (typeof e == "string" || typeof e > "u" || Tr(e))
811
805
  return X(e);
812
806
  const t = Array.isArray(e) ? e : Object.entries(e), n = [], r = {};
813
807
  for (const [o, s] of t)
814
- if (typeof s == "string")
808
+ if (gn(s))
815
809
  n.push(`${o}=${s}`);
816
810
  else {
817
- const a = `[${o}]`, i = Ct(a);
811
+ const a = `[${o}]`, i = Ut(a);
818
812
  i && (r[i] = s), n.push(`${i}=${a}`);
819
813
  }
820
- return en(n.join("&"), r);
814
+ return tn(n.join("&"), r);
821
815
  }
822
816
  function Os(e, t, n) {
823
817
  const r = Rs(t, n), o = _r(r), [s] = Sr(e, new RegExp(o, "g"));
@@ -837,7 +831,7 @@ function wr(...e) {
837
831
  return t;
838
832
  }
839
833
  const lt = "https://internal.invalid";
840
- function Lt(e) {
834
+ function Dt(e) {
841
835
  const t = new URL(e.host ?? lt, lt);
842
836
  return t.pathname = e.path ?? "", t.search = new URLSearchParams(e.query).toString(), t.hash = e.hash ?? "", Fo(t.toString().replace(new RegExp(`^${lt}/*`), "/"));
843
837
  }
@@ -847,7 +841,7 @@ function se(e) {
847
841
  function Ce(e, t) {
848
842
  if (typeof e == "string") {
849
843
  const r = Ce(se(e), t);
850
- return Lt(r);
844
+ return Dt(r);
851
845
  }
852
846
  const n = new URLSearchParams(t.query);
853
847
  return {
@@ -878,7 +872,7 @@ function qe(e) {
878
872
  const t = {
879
873
  host: X(e.host),
880
874
  path: X(e.path),
881
- query: Is(Ut(e.query)),
875
+ query: Is(Lt(e.query)),
882
876
  hash: Ns(X(e.hash))
883
877
  };
884
878
  Xe(t.path.params, t.query.params, t.host.params, t.hash.params);
@@ -886,7 +880,7 @@ function qe(e) {
886
880
  ...t.host,
887
881
  regexp: _s(t.host.value),
888
882
  stringify(c = {}) {
889
- return Gt(t.host, c);
883
+ return $t(t.host, c);
890
884
  }
891
885
  }, r = {
892
886
  ...t.path,
@@ -895,7 +889,7 @@ function qe(e) {
895
889
  trailingSlashRemoved: Ln(t.path.value.replace(/^(.+)\/$/, "$1"))
896
890
  },
897
891
  stringify(c = {}) {
898
- return Gt(t.path, c);
892
+ return $t(t.path, c);
899
893
  }
900
894
  }, o = {
901
895
  ...t.query,
@@ -907,11 +901,11 @@ function qe(e) {
907
901
  ...t.hash,
908
902
  regexp: ms(t.hash.value),
909
903
  stringify(c = {}) {
910
- return Gt(t.hash, c);
904
+ return $t(t.hash, c);
911
905
  }
912
906
  };
913
907
  function a(c = {}) {
914
- return Lt({
908
+ return Dt({
915
909
  host: n.stringify(c),
916
910
  path: r.stringify(c),
917
911
  query: o.stringify(c),
@@ -934,10 +928,10 @@ function qe(e) {
934
928
  i(c, E);
935
929
  const f = se(c);
936
930
  return {
937
- ...$t(n, f.host ?? ""),
938
- ...$t(r, f.path),
931
+ ...Ft(n, f.host ?? ""),
932
+ ...Ft(r, f.path),
939
933
  ...bs(o, f.query.toString()),
940
- ...$t(s, f.hash)
934
+ ...Ft(s, f.hash)
941
935
  };
942
936
  }
943
937
  function l(c, E = {}) {
@@ -971,7 +965,7 @@ function Is(e) {
971
965
  value: e.value.replace(/^\?/, "")
972
966
  };
973
967
  }
974
- function Gt(e, t) {
968
+ function $t(e, t) {
975
969
  return Object.keys(e.params).reduce((n, r) => Ts(n, e, r, t[r]), e.value);
976
970
  }
977
971
  function As(e, t) {
@@ -979,7 +973,7 @@ function As(e, t) {
979
973
  if (!e.value)
980
974
  return n;
981
975
  for (const [r, o] of Array.from(n.entries())) {
982
- const s = Ct(o);
976
+ const s = Ut(o);
983
977
  if (!s)
984
978
  continue;
985
979
  const i = ae(t[s], e.params[s]), u = t[s] === void 0 && i === "";
@@ -987,7 +981,7 @@ function As(e, t) {
987
981
  }
988
982
  return n;
989
983
  }
990
- function $t(e, t) {
984
+ function Ft(e, t) {
991
985
  const n = {}, r = decodeURIComponent(t);
992
986
  for (const [o, s] of Object.entries(e.params)) {
993
987
  const a = Os(r, e, o), i = me(a, s);
@@ -998,7 +992,7 @@ function $t(e, t) {
998
992
  function bs(e, t) {
999
993
  const n = {}, r = new URLSearchParams(e.value), o = new URLSearchParams(t);
1000
994
  for (const [s, a] of Array.from(r.entries())) {
1001
- const i = Ct(a);
995
+ const i = Ut(a);
1002
996
  if (!i)
1003
997
  continue;
1004
998
  const l = o.get(s) ?? void 0, m = me(l, e.params[i]);
@@ -1034,7 +1028,7 @@ function Pr({ getRoute: e }) {
1034
1028
  }
1035
1029
  };
1036
1030
  }
1037
- function tn(e, t) {
1031
+ function nn(e, t) {
1038
1032
  Xe(e.params, t.params);
1039
1033
  const n = `${e.value}${t.value}`;
1040
1034
  return {
@@ -1053,7 +1047,7 @@ function Vn(e, t) {
1053
1047
  };
1054
1048
  }
1055
1049
  function Mn(e, t) {
1056
- return tn(e, t);
1050
+ return nn(e, t);
1057
1051
  }
1058
1052
  function yn(e, t) {
1059
1053
  if (!ve(e))
@@ -1061,15 +1055,15 @@ function yn(e, t) {
1061
1055
  if (!vs(t))
1062
1056
  return qe({
1063
1057
  host: e.schema.host,
1064
- path: tn(e.schema.path, X(t.path)),
1065
- query: Vn(e.schema.query, Ut(t.query)),
1058
+ path: nn(e.schema.path, X(t.path)),
1059
+ query: Vn(e.schema.query, Lt(t.query)),
1066
1060
  hash: Mn(e.schema.hash, X(t.hash))
1067
1061
  });
1068
1062
  if (!ve(t))
1069
1063
  throw new Error("Child is not a valid url");
1070
1064
  return qe({
1071
1065
  host: e.schema.host,
1072
- path: tn(e.schema.path, t.schema.path),
1066
+ path: nn(e.schema.path, t.schema.path),
1073
1067
  query: Vn(e.schema.query, t.schema.query),
1074
1068
  hash: Mn(e.schema.hash, t.schema.hash)
1075
1069
  });
@@ -1078,7 +1072,7 @@ function vs(e) {
1078
1072
  return ve(e);
1079
1073
  }
1080
1074
  function Ue(e, t) {
1081
- const n = pn(), r = ir(e.name), o = X(e.path), s = Ut(e.query), a = X(e.hash), i = e.meta ?? {}, u = e.state ?? {}, l = e.context ?? [], { store: m, ...c } = It(), E = ht({ ...e, id: n, meta: i, state: u, props: t, name: r }), f = Pr({
1075
+ const n = hn(), r = ir(e.name), o = X(e.path), s = Lt(e.query), a = X(e.hash), i = e.meta ?? {}, u = e.state ?? {}, l = e.context ?? [], { store: m, ...c } = At(), E = ht({ ...e, id: n, meta: i, state: u, props: t, name: r }), f = Pr({
1082
1076
  getRoute: () => y
1083
1077
  }), p = qe({
1084
1078
  path: o,
@@ -1126,7 +1120,7 @@ function Jc(e) {
1126
1120
  };
1127
1121
  }
1128
1122
  function Kc(e) {
1129
- const t = pn(), n = ir(e.name), r = X(e.path), o = Ut(e.query), s = X(e.hash), a = e.meta ?? {}, i = X(e.host), u = e.context ?? [], { store: l, ...m } = It(), c = Pr({
1123
+ const t = hn(), n = ir(e.name), r = X(e.path), o = Lt(e.query), s = X(e.hash), a = e.meta ?? {}, i = X(e.host), u = e.context ?? [], { store: l, ...m } = At(), c = Pr({
1130
1124
  getRoute: () => p
1131
1125
  }), E = ht({ id: t, meta: {}, state: {}, ...e }), f = qe({
1132
1126
  host: i,
@@ -1225,21 +1219,21 @@ function Ls(e, t) {
1225
1219
  return r.onAfterRouteLeave.forEach((s) => n.onAfterRouteLeave.add(s));
1226
1220
  }), n;
1227
1221
  }
1228
- class Dt extends Error {
1222
+ class xt extends Error {
1229
1223
  }
1230
- class ie extends Dt {
1224
+ class ie extends xt {
1231
1225
  response;
1232
1226
  constructor(t) {
1233
1227
  super("Uncaught ContextPushError"), this.response = { status: "PUSH", to: t };
1234
1228
  }
1235
1229
  }
1236
- class Ee extends Dt {
1230
+ class Ee extends xt {
1237
1231
  response;
1238
1232
  constructor(t) {
1239
1233
  super("Uncaught ContextRejectionError"), this.response = { status: "REJECT", type: t };
1240
1234
  }
1241
1235
  }
1242
- class Ar extends Dt {
1236
+ class Ar extends xt {
1243
1237
  response;
1244
1238
  constructor() {
1245
1239
  super("Uncaught ContextAbortError"), this.response = { status: "ABORT" };
@@ -1306,7 +1300,7 @@ function $e({ to: e }) {
1306
1300
  }
1307
1301
  const vr = tt();
1308
1302
  function Vs() {
1309
- const { setVueApp: e, runWithContext: t } = br(), { store: n, ...r } = It(), o = new Se(), s = async ({ to: m, from: c }) => {
1303
+ const { setVueApp: e, runWithContext: t } = br(), { store: n, ...r } = At(), o = new Se(), s = async ({ to: m, from: c }) => {
1310
1304
  const { reject: E, push: f, replace: p, update: y, abort: _ } = $e({ to: m }), h = Us(m, c), S = Ds(m, c, n), R = [
1311
1305
  ...h.redirects,
1312
1306
  ...S.onBeforeRouteEnter,
@@ -1386,7 +1380,7 @@ function Vs() {
1386
1380
  S(m, { to: c, from: E, source: f, reject: p, push: y, replace: _, update: h });
1387
1381
  return;
1388
1382
  } catch (R) {
1389
- if (R instanceof Dt)
1383
+ if (R instanceof xt)
1390
1384
  throw R;
1391
1385
  if (R === m)
1392
1386
  continue;
@@ -1424,7 +1418,7 @@ function ct(e, t) {
1424
1418
  const n = Ir(e), r = Ms(e);
1425
1419
  return (o) => {
1426
1420
  const s = n(), i = r().addComponentHook({ lifecycle: t, hook: o, depth: s - 1 });
1427
- return dn(i), i;
1421
+ return pn(i), i;
1428
1422
  };
1429
1423
  }
1430
1424
  function Bs(e) {
@@ -1470,7 +1464,7 @@ function js(e, t) {
1470
1464
  }
1471
1465
  function Zs(e, t, n) {
1472
1466
  function r(d) {
1473
- const g = Lt({
1467
+ const g = Dt({
1474
1468
  ...se(t.href),
1475
1469
  query: void 0
1476
1470
  }), O = Ce(g, { query: d });
@@ -1546,7 +1540,7 @@ function Zs(e, t, n) {
1546
1540
  o({}, { state: d });
1547
1541
  }
1548
1542
  });
1549
- return Pt({
1543
+ return Nt({
1550
1544
  id: u,
1551
1545
  matched: l,
1552
1546
  matches: m,
@@ -1565,7 +1559,7 @@ function Zs(e, t, n) {
1565
1559
  function Rn(e) {
1566
1560
  return (t, n, { exact: r } = {}) => js(e, t) ? n === void 0 ? !0 : r ? t.matched.name === n : t.matches.map((o) => o.name).includes(n) : !1;
1567
1561
  }
1568
- function xt(e) {
1562
+ function Vt(e) {
1569
1563
  const t = st(e), n = Rn(e);
1570
1564
  return (r, o) => {
1571
1565
  const s = t();
@@ -1579,7 +1573,7 @@ function xt(e) {
1579
1573
  };
1580
1574
  }
1581
1575
  function Sn(e) {
1582
- const t = xt(e), n = st(e), r = Ur(e), o = Ir(e), s = Hs(e);
1576
+ const t = Vt(e), n = st(e), r = Ur(e), o = Ir(e), s = Hs(e);
1583
1577
  return Me((a, i) => {
1584
1578
  const u = t(), l = n(), m = r(), c = o({ increment: !0 });
1585
1579
  xo(async () => {
@@ -1626,7 +1620,7 @@ function ut(e) {
1626
1620
  return ["eager", "lazy", "intent"].includes(e);
1627
1621
  }
1628
1622
  function Vr({ routerPrefetch: e, routePrefetch: t, linkPrefetch: n }, r) {
1629
- const o = Ft(n, r), s = Ft(t, r), a = Ft(e, r), i = [
1623
+ const o = qt(n, r), s = qt(t, r), a = qt(e, r), i = [
1630
1624
  o,
1631
1625
  s,
1632
1626
  a,
@@ -1635,7 +1629,7 @@ function Vr({ routerPrefetch: e, routePrefetch: t, linkPrefetch: n }, r) {
1635
1629
  ].reduce((u, l) => ut(u) ? u : u === !0 && ut(l) ? l : u === !0 && !ut(l) ? u : u === void 0 ? l : u, void 0);
1636
1630
  return ut(i) ? i : !1;
1637
1631
  }
1638
- function Ft(e, t) {
1632
+ function qt(e, t) {
1639
1633
  return ke(e) ? e[t] : e;
1640
1634
  }
1641
1635
  const Fs = Vo(() => new Promise((e) => {
@@ -1651,7 +1645,7 @@ function qs(e) {
1651
1645
  throw new Be();
1652
1646
  return fe(e, (r, o) => {
1653
1647
  r && t.observe(r), o && t.unobserve(o);
1654
- }, { immediate: !0 }), dn(() => {
1648
+ }, { immediate: !0 }), pn(() => {
1655
1649
  e.value && t.unobserve(e.value);
1656
1650
  }), {
1657
1651
  isElementVisible: x(() => e.value ? t.isElementVisible(e.value) : !1)
@@ -1660,7 +1654,7 @@ function qs(e) {
1660
1654
  function Hn(e, t, n) {
1661
1655
  fe(e, (r, o) => {
1662
1656
  r && r.addEventListener(t, n), o && o.removeEventListener(t, n);
1663
- }, { immediate: !0 }), dn(() => {
1657
+ }, { immediate: !0 }), pn(() => {
1664
1658
  e.value && e.value.removeEventListener(t, n);
1665
1659
  });
1666
1660
  }
@@ -1798,19 +1792,20 @@ function Hr(e) {
1798
1792
  });
1799
1793
  }
1800
1794
  function Js(e) {
1801
- const t = xt(e);
1795
+ const t = Vt(e);
1802
1796
  return (n, r = String) => {
1803
1797
  const o = t(), s = x({
1804
1798
  get() {
1805
1799
  const i = o.query.get(D(n));
1806
- return i === null ? null : Xt(i, { param: r });
1800
+ return i === null ? Et(r) ? r.defaultValue : null : en(i, { param: r });
1807
1801
  },
1808
1802
  set(i) {
1809
1803
  o.query.set(D(n), ae(i, { param: r }));
1810
1804
  }
1811
1805
  }), a = x({
1812
1806
  get() {
1813
- return o.query.getAll(D(n)).map((u) => Xt(u, { param: r })).filter((u) => u !== null);
1807
+ const i = o.query.getAll(D(n));
1808
+ return i.length === 0 && Et(r) ? [r.defaultValue] : i.map((u) => en(u, { param: r })).filter((u) => u !== null);
1814
1809
  },
1815
1810
  set(i) {
1816
1811
  const u = new URLSearchParams(o.query);
@@ -1834,7 +1829,7 @@ function Ks(e) {
1834
1829
  onBeforeRouteUpdate: r,
1835
1830
  onAfterRouteLeave: o,
1836
1831
  onAfterRouteUpdate: s
1837
- } = Bs(t), a = Rn(t), i = Sn(t), u = Hr(t), l = xt(t), m = st(t), c = Js(t), E = Br(t), f = Ur(t);
1832
+ } = Bs(t), a = Rn(t), i = Sn(t), u = Hr(t), l = Vt(t), m = st(t), c = Js(t), E = Br(t), f = Ur(t);
1838
1833
  return {
1839
1834
  onBeforeRouteLeave: n,
1840
1835
  onBeforeRouteUpdate: r,
@@ -1851,7 +1846,7 @@ function Ks(e) {
1851
1846
  };
1852
1847
  }
1853
1848
  function Yc(e) {
1854
- const { store: t, ...n } = It();
1849
+ const { store: t, ...n } = At();
1855
1850
  return {
1856
1851
  routes: e.routes ?? [],
1857
1852
  rejections: e.rejections ?? [],
@@ -1863,7 +1858,7 @@ function Ys(e) {
1863
1858
  return {
1864
1859
  get: (t, { invalid: n }) => {
1865
1860
  for (const r of e) {
1866
- const o = Xt(t, { param: r, isOptional: !1, isGreedy: !1 });
1861
+ const o = en(t, { param: r, isOptional: !1, isGreedy: !1 });
1867
1862
  if (o !== void 0)
1868
1863
  return o;
1869
1864
  }
@@ -1928,13 +1923,13 @@ function Le() {
1928
1923
  }
1929
1924
  };
1930
1925
  }
1931
- function _t() {
1926
+ function mt() {
1932
1927
  return Math.random().toString(36).slice(2, 10);
1933
1928
  }
1934
1929
  function jn(e, t, n) {
1935
1930
  return Math.min(Math.max(e, t), n);
1936
1931
  }
1937
- function mt(e) {
1932
+ function yt(e) {
1938
1933
  e.preventDefault(), e.returnValue = "";
1939
1934
  }
1940
1935
  function ge({ pathname: e = "/", search: t = "", hash: n = "" }) {
@@ -1954,7 +1949,7 @@ function ze(e) {
1954
1949
  function De(e) {
1955
1950
  return Object.freeze(e);
1956
1951
  }
1957
- const yt = "beforeunload", jr = "popstate", ei = "hashchange";
1952
+ const Rt = "beforeunload", jr = "popstate", ei = "hashchange";
1958
1953
  function Zn(e = {}) {
1959
1954
  const { window: t = document.defaultView } = e, n = t.history;
1960
1955
  function r() {
@@ -2005,7 +2000,7 @@ function Zn(e = {}) {
2005
2000
  search: "",
2006
2001
  ...typeof d == "string" ? ze(d) : d,
2007
2002
  state: g,
2008
- key: _t()
2003
+ key: mt()
2009
2004
  });
2010
2005
  }
2011
2006
  function f(d, g) {
@@ -2070,8 +2065,8 @@ function Zn(e = {}) {
2070
2065
  },
2071
2066
  block(d) {
2072
2067
  const g = m.push(d);
2073
- return m.length === 1 && t.addEventListener(yt, mt), () => {
2074
- g(), m.length || t.removeEventListener(yt, mt);
2068
+ return m.length === 1 && t.addEventListener(Rt, yt), () => {
2069
+ g(), m.length || t.removeEventListener(Rt, yt);
2075
2070
  };
2076
2071
  }
2077
2072
  };
@@ -2138,7 +2133,7 @@ function ti(e = {}) {
2138
2133
  search: "",
2139
2134
  ...typeof g == "string" ? ze(g) : g,
2140
2135
  state: O,
2141
- key: _t()
2136
+ key: mt()
2142
2137
  });
2143
2138
  }
2144
2139
  function p(g, O) {
@@ -2203,8 +2198,8 @@ function ti(e = {}) {
2203
2198
  },
2204
2199
  block(g) {
2205
2200
  const O = m.push(g);
2206
- return m.length === 1 && t.addEventListener(yt, mt), () => {
2207
- O(), m.length || t.removeEventListener(yt, mt);
2201
+ return m.length === 1 && t.addEventListener(Rt, yt), () => {
2202
+ O(), m.length || t.removeEventListener(Rt, yt);
2208
2203
  };
2209
2204
  }
2210
2205
  };
@@ -2216,7 +2211,7 @@ function Gn(e = {}) {
2216
2211
  search: "",
2217
2212
  hash: "",
2218
2213
  state: null,
2219
- key: _t(),
2214
+ key: mt(),
2220
2215
  ...typeof h == "string" ? ze(h) : h
2221
2216
  })
2222
2217
  );
@@ -2232,7 +2227,7 @@ function Gn(e = {}) {
2232
2227
  hash: "",
2233
2228
  ...typeof h == "string" ? ze(h) : h,
2234
2229
  state: S,
2235
- key: _t()
2230
+ key: mt()
2236
2231
  });
2237
2232
  }
2238
2233
  function c(h, S, R) {
@@ -2291,7 +2286,7 @@ function Gn(e = {}) {
2291
2286
  };
2292
2287
  }
2293
2288
  function ni(e, t, n) {
2294
- const r = Pt({ ...t }), o = (i) => {
2289
+ const r = Nt({ ...t }), o = (i) => {
2295
2290
  Object.assign(r, {
2296
2291
  ...i
2297
2292
  });
@@ -2311,13 +2306,13 @@ function ri(e) {
2311
2306
  function $n(e) {
2312
2307
  try {
2313
2308
  const t = e();
2314
- return En(t) ? t.catch((n) => n) : t;
2309
+ return _n(t) ? t.catch((n) => n) : t;
2315
2310
  } catch (t) {
2316
2311
  return t;
2317
2312
  }
2318
2313
  }
2319
2314
  function oi() {
2320
- const { setVueApp: e, runWithContext: t } = br(), n = Pt(/* @__PURE__ */ new Map()), r = (E, f, p) => {
2315
+ const { setVueApp: e, runWithContext: t } = br(), n = Nt(/* @__PURE__ */ new Map()), r = (E, f, p) => {
2321
2316
  const { push: y, replace: _, reject: h, update: S } = $e({ to: f });
2322
2317
  return f.matches.filter((R) => Vr({ ...p, routePrefetch: R.prefetch }, "props") === E).flatMap((R) => m(R)).reduce((R, { id: d, name: g, props: O }) => {
2323
2318
  if (!O)
@@ -2424,7 +2419,7 @@ function oi() {
2424
2419
  setVueApp: e
2425
2420
  };
2426
2421
  }
2427
- function Vt() {
2422
+ function Mt() {
2428
2423
  return typeof window < "u" && typeof window.document < "u";
2429
2424
  }
2430
2425
  function si({ mode: e, listener: t }) {
@@ -2454,7 +2449,7 @@ function si({ mode: e, listener: t }) {
2454
2449
  function ii(e = "auto") {
2455
2450
  switch (e) {
2456
2451
  case "auto":
2457
- return Vt() ? Zn() : Gn();
2452
+ return Mt() ? Zn() : Gn();
2458
2453
  case "browser":
2459
2454
  return Zn();
2460
2455
  case "memory":
@@ -2501,7 +2496,7 @@ function ai(e) {
2501
2496
  return ht(a?.component ?? Nr(s));
2502
2497
  }, n = (s) => {
2503
2498
  const a = ht(t(s)), i = {
2504
- id: pn(),
2499
+ id: hn(),
2505
2500
  component: a,
2506
2501
  meta: {},
2507
2502
  state: {}
@@ -2540,20 +2535,20 @@ class ci extends Error {
2540
2535
  function ui(e) {
2541
2536
  if (e)
2542
2537
  return e;
2543
- if (Vt())
2538
+ if (Mt())
2544
2539
  return window.location.toString();
2545
2540
  throw new ci();
2546
2541
  }
2547
2542
  function Gr(e) {
2548
2543
  return !!e && typeof e == "object";
2549
2544
  }
2550
- const Rt = { isOptional: !0, isGreedy: !1 };
2545
+ const St = { isOptional: !0, isGreedy: !1 };
2551
2546
  function fi(e, t, n) {
2552
2547
  if (Gr(e) && t in e) {
2553
2548
  const r = e[t];
2554
- return typeof r == "string" ? me(r, { param: n, ...Rt }) : r;
2549
+ return typeof r == "string" ? me(r, { param: n, ...St }) : r;
2555
2550
  }
2556
- return me(void 0, { param: n, ...Rt });
2551
+ return me(void 0, { param: n, ...St });
2557
2552
  }
2558
2553
  function li(e, t) {
2559
2554
  const n = {};
@@ -2566,9 +2561,9 @@ function li(e, t) {
2566
2561
  function di(e, t, n) {
2567
2562
  if (Gr(e) && t in e) {
2568
2563
  const r = e[t];
2569
- return ae(r, { param: n, ...Rt });
2564
+ return ae(r, { param: n, ...St });
2570
2565
  }
2571
- return ae(void 0, { param: n, ...Rt });
2566
+ return ae(void 0, { param: n, ...St });
2572
2567
  }
2573
2568
  const Fn = (e, t) => {
2574
2569
  const n = {};
@@ -2579,7 +2574,7 @@ const Fn = (e, t) => {
2579
2574
  return n;
2580
2575
  };
2581
2576
  function pi() {
2582
- const e = Pt(/* @__PURE__ */ new Map()), t = Vt() ? a() : null, n = (i) => {
2577
+ const e = Nt(/* @__PURE__ */ new Map()), t = Mt() ? a() : null, n = (i) => {
2583
2578
  e.set(i, !1), t?.observe(i);
2584
2579
  }, r = (i) => {
2585
2580
  e.delete(i), t?.unobserve(i);
@@ -2690,7 +2685,7 @@ function Si(e = []) {
2690
2685
  }), t;
2691
2686
  }
2692
2687
  function Oi(e, { match: t, name: n, component: r }) {
2693
- const o = xr(e), s = xt(e);
2688
+ const o = xr(e), s = Vt(e);
2694
2689
  return Me({
2695
2690
  name: "PropsWrapper",
2696
2691
  expose: [],
@@ -2698,7 +2693,7 @@ function Oi(e, { match: t, name: n, component: r }) {
2698
2693
  const a = Mo(), i = o(), u = s();
2699
2694
  return () => {
2700
2695
  const l = i.getProps(t.id, n, u);
2701
- return l instanceof Error ? "" : En(l) ? a?.suspense ? ue(wi, { component: r, props: l }) : ue(Ti, { component: r, props: l }) : ue(r, l);
2696
+ return l instanceof Error ? "" : _n(l) ? a?.suspense ? ue(wi, { component: r, props: l }) : ue(Ti, { component: r, props: l }) : ue(r, l);
2702
2697
  };
2703
2698
  }
2704
2699
  });
@@ -2911,10 +2906,10 @@ function xe(e, t = 25, n = {}) {
2911
2906
  async function ji(e, t, n) {
2912
2907
  return await e.apply(t, n);
2913
2908
  }
2914
- function nn(e, t = {}, n) {
2909
+ function rn(e, t = {}, n) {
2915
2910
  for (const r in e) {
2916
2911
  const o = e[r], s = n ? `${n}:${r}` : r;
2917
- typeof o == "object" && o !== null ? nn(o, t, s) : typeof o == "function" && (t[s] = o);
2912
+ typeof o == "object" && o !== null ? rn(o, t, s) : typeof o == "function" && (t[s] = o);
2918
2913
  }
2919
2914
  return t;
2920
2915
  }
@@ -2930,7 +2925,7 @@ function Fi(e, t) {
2930
2925
  const n = t.shift(), r = Kr(n);
2931
2926
  return Promise.all(e.map((o) => r.run(() => o(...t))));
2932
2927
  }
2933
- function qt(e, t) {
2928
+ function zt(e, t) {
2934
2929
  for (const n of [...e])
2935
2930
  n(t);
2936
2931
  }
@@ -2985,7 +2980,7 @@ class qi {
2985
2980
  this.deprecateHook(n, t[n]);
2986
2981
  }
2987
2982
  addHooks(t) {
2988
- const n = nn(t), r = Object.keys(n).map(
2983
+ const n = rn(t), r = Object.keys(n).map(
2989
2984
  (o) => this.hook(o, n[o])
2990
2985
  );
2991
2986
  return () => {
@@ -2994,7 +2989,7 @@ class qi {
2994
2989
  };
2995
2990
  }
2996
2991
  removeHooks(t) {
2997
- const n = nn(t);
2992
+ const n = rn(t);
2998
2993
  for (const r in n)
2999
2994
  this.removeHook(r, n[r]);
3000
2995
  }
@@ -3010,14 +3005,14 @@ class qi {
3010
3005
  }
3011
3006
  callHookWith(t, n, ...r) {
3012
3007
  const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
3013
- this._before && qt(this._before, o);
3008
+ this._before && zt(this._before, o);
3014
3009
  const s = t(
3015
3010
  n in this._hooks ? [...this._hooks[n]] : [],
3016
3011
  r
3017
3012
  );
3018
3013
  return s instanceof Promise ? s.finally(() => {
3019
- this._after && o && qt(this._after, o);
3020
- }) : (this._after && o && qt(this._after, o), s);
3014
+ this._after && o && zt(this._after, o);
3015
+ }) : (this._after && o && zt(this._after, o), s);
3021
3016
  }
3022
3017
  beforeEach(t) {
3023
3018
  return this._before = this._before || [], this._before.push(t), () => {
@@ -3071,7 +3066,7 @@ function to(e) {
3071
3066
  const t = e.subTree?.type, n = On(e);
3072
3067
  return n ? n?.types?.Fragment === t : !1;
3073
3068
  }
3074
- function Mt(e) {
3069
+ function Bt(e) {
3075
3070
  const t = Xi(e?.type || {});
3076
3071
  if (t) return t;
3077
3072
  if (e?.root === e) return "Root";
@@ -3083,7 +3078,7 @@ function Mt(e) {
3083
3078
  function ta(e) {
3084
3079
  return `${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ ?? 0}:${e === e?.root ? "root" : e.uid}`;
3085
3080
  }
3086
- function rn(e, t) {
3081
+ function on(e, t) {
3087
3082
  return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
3088
3083
  }
3089
3084
  function na() {
@@ -3221,7 +3216,7 @@ function Nn(e) {
3221
3216
  function da(e) {
3222
3217
  const t = ye(e);
3223
3218
  if (!t.width && !t.height) return;
3224
- const n = Mt(e);
3219
+ const n = Bt(e);
3225
3220
  He() ? Nn({
3226
3221
  bounds: t,
3227
3222
  name: n
@@ -3234,13 +3229,13 @@ function ao() {
3234
3229
  const e = He();
3235
3230
  e && (e.style.display = "none");
3236
3231
  }
3237
- let on = null;
3238
- function sn(e) {
3232
+ let sn = null;
3233
+ function an(e) {
3239
3234
  const t = e.target;
3240
3235
  if (t) {
3241
3236
  const n = t.__vueParentComponent;
3242
- if (n && (on = n, n.vnode.el)) {
3243
- const r = ye(n), o = Mt(n);
3237
+ if (n && (sn = n, n.vnode.el)) {
3238
+ const r = ye(n), o = Bt(n);
3244
3239
  He() ? Nn({
3245
3240
  bounds: r,
3246
3241
  name: o
@@ -3252,26 +3247,26 @@ function sn(e) {
3252
3247
  }
3253
3248
  }
3254
3249
  function pa(e, t) {
3255
- e.preventDefault(), e.stopPropagation(), on && t(ta(on));
3250
+ e.preventDefault(), e.stopPropagation(), sn && t(ta(sn));
3256
3251
  }
3257
- let St = null;
3252
+ let Ot = null;
3258
3253
  function ha() {
3259
- ao(), window.removeEventListener("mouseover", sn), window.removeEventListener("click", St, !0), St = null;
3254
+ ao(), window.removeEventListener("mouseover", an), window.removeEventListener("click", Ot, !0), Ot = null;
3260
3255
  }
3261
3256
  function Ea() {
3262
- return window.addEventListener("mouseover", sn), new Promise((e) => {
3257
+ return window.addEventListener("mouseover", an), new Promise((e) => {
3263
3258
  function t(n) {
3264
3259
  n.preventDefault(), n.stopPropagation(), pa(n, (r) => {
3265
- window.removeEventListener("click", t, !0), St = null, window.removeEventListener("mouseover", sn);
3260
+ window.removeEventListener("click", t, !0), Ot = null, window.removeEventListener("mouseover", an);
3266
3261
  const o = He();
3267
3262
  o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
3268
3263
  });
3269
3264
  }
3270
- St = t, window.addEventListener("click", t, !0);
3265
+ Ot = t, window.addEventListener("click", t, !0);
3271
3266
  });
3272
3267
  }
3273
3268
  function ga(e) {
3274
- const t = rn(Z.value, e.id);
3269
+ const t = on(Z.value, e.id);
3275
3270
  if (t) {
3276
3271
  const [n] = Tn(t);
3277
3272
  if (typeof n.scrollIntoView == "function") n.scrollIntoView({ behavior: "smooth" });
@@ -3287,7 +3282,7 @@ function ga(e) {
3287
3282
  setTimeout(() => {
3288
3283
  const r = ye(t);
3289
3284
  if (r.width || r.height) {
3290
- const o = Mt(t), s = He();
3285
+ const o = Bt(t), s = He();
3291
3286
  s ? Nn({
3292
3287
  ...e,
3293
3288
  name: o,
@@ -3326,20 +3321,20 @@ function ya() {
3326
3321
  });
3327
3322
  });
3328
3323
  }
3329
- let Ot = /* @__PURE__ */ (function(e) {
3324
+ let Tt = /* @__PURE__ */ (function(e) {
3330
3325
  return e.SKIP = "__v_skip", e.IS_REACTIVE = "__v_isReactive", e.IS_READONLY = "__v_isReadonly", e.IS_SHALLOW = "__v_isShallow", e.RAW = "__v_raw", e;
3331
3326
  })({});
3332
3327
  function Ra(e) {
3333
- return !!(e && e[Ot.IS_READONLY]);
3328
+ return !!(e && e[Tt.IS_READONLY]);
3334
3329
  }
3335
3330
  function co(e) {
3336
- return Ra(e) ? co(e[Ot.RAW]) : !!(e && e[Ot.IS_REACTIVE]);
3331
+ return Ra(e) ? co(e[Tt.RAW]) : !!(e && e[Tt.IS_REACTIVE]);
3337
3332
  }
3338
- function zt(e) {
3333
+ function Wt(e) {
3339
3334
  return !!(e && e.__v_isRef === !0);
3340
3335
  }
3341
3336
  function Ze(e) {
3342
- const t = e && e[Ot.RAW];
3337
+ const t = e && e[Tt.RAW];
3343
3338
  return t ? Ze(t) : e;
3344
3339
  }
3345
3340
  var Sa = class {
@@ -3380,7 +3375,7 @@ var Sa = class {
3380
3375
  }
3381
3376
  }, Oa = class {
3382
3377
  set(e, t) {
3383
- if (zt(e)) e.value = t;
3378
+ if (Wt(e)) e.value = t;
3384
3379
  else {
3385
3380
  if (e instanceof Set && Array.isArray(t)) {
3386
3381
  e.clear(), t.forEach((o) => e.add(o));
@@ -3401,10 +3396,10 @@ var Sa = class {
3401
3396
  }
3402
3397
  }
3403
3398
  get(e) {
3404
- return zt(e) ? e.value : e;
3399
+ return Wt(e) ? e.value : e;
3405
3400
  }
3406
3401
  isRef(e) {
3407
- return zt(e) || co(e);
3402
+ return Wt(e) || co(e);
3408
3403
  }
3409
3404
  };
3410
3405
  const Ta = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
@@ -3543,7 +3538,7 @@ function Aa() {
3543
3538
  if (!o) return null;
3544
3539
  const s = o.id.toString();
3545
3540
  return [...o.instanceMap].filter(([a]) => a.split(":")[0] === s).map(([, a]) => a);
3546
- }), e.hook(C.GET_COMPONENT_BOUNDS, async ({ instance: r }) => ye(r)), e.hook(C.GET_COMPONENT_NAME, ({ instance: r }) => Mt(r)), e.hook(C.COMPONENT_HIGHLIGHT, ({ uid: r }) => {
3541
+ }), e.hook(C.GET_COMPONENT_BOUNDS, async ({ instance: r }) => ye(r)), e.hook(C.GET_COMPONENT_NAME, ({ instance: r }) => Bt(r)), e.hook(C.COMPONENT_HIGHLIGHT, ({ uid: r }) => {
3547
3542
  const o = Z.value.instanceMap.get(r);
3548
3543
  o && da(o);
3549
3544
  }), e.hook(C.COMPONENT_UNHIGHLIGHT, () => {
@@ -3581,7 +3576,7 @@ xe((e, t) => {
3581
3576
  oldState: t
3582
3577
  });
3583
3578
  });
3584
- const Bt = new Proxy(T.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
3579
+ const Ht = new Proxy(T.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
3585
3580
  return t === "value" ? T.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : T.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
3586
3581
  } }), Z = new Proxy(T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, { get(e, t, n) {
3587
3582
  return t === "value" ? T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
@@ -3589,7 +3584,7 @@ const Bt = new Proxy(T.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
3589
3584
  function lo() {
3590
3585
  va({
3591
3586
  ...T[Ae],
3592
- appRecords: Bt.value,
3587
+ appRecords: Ht.value,
3593
3588
  activeAppRecordId: Z.id,
3594
3589
  tabs: T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
3595
3590
  commands: T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
@@ -3603,7 +3598,7 @@ function Ca(e) {
3603
3598
  }
3604
3599
  const V = new Proxy(T[Ae], {
3605
3600
  get(e, t) {
3606
- return t === "appRecords" ? Bt : t === "activeAppRecordId" ? Z.id : t === "tabs" ? T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : T[Ae][t];
3601
+ return t === "appRecords" ? Ht : t === "activeAppRecordId" ? Z.id : t === "tabs" ? T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : T[Ae][t];
3607
3602
  },
3608
3603
  deleteProperty(e, t) {
3609
3604
  return delete e[t], !0;
@@ -3633,7 +3628,7 @@ T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ ??= [];
3633
3628
  const An = new Proxy(T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get(e, t, n) {
3634
3629
  return Reflect.get(e, t, n);
3635
3630
  } });
3636
- function an(e) {
3631
+ function cn(e) {
3637
3632
  const t = {};
3638
3633
  return Object.keys(e).forEach((n) => {
3639
3634
  t[n] = e[n].defaultValue;
@@ -3651,11 +3646,11 @@ function po(e, t) {
3651
3646
  const r = localStorage.getItem(n);
3652
3647
  if (r) return JSON.parse(r);
3653
3648
  }
3654
- return an(e ? (An.find((r) => r[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
3649
+ return cn(e ? (An.find((r) => r[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
3655
3650
  }
3656
3651
  function Da(e, t) {
3657
3652
  const n = bn(e);
3658
- localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(an(t)));
3653
+ localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(cn(t)));
3659
3654
  }
3660
3655
  function xa(e, t, n) {
3661
3656
  const r = bn(e), o = localStorage.getItem(r), s = JSON.parse(o || "{}"), a = {
@@ -3859,17 +3854,17 @@ function Eo(e, t) {
3859
3854
  qa(n, e);
3860
3855
  }));
3861
3856
  }
3862
- const Tt = "__VUE_DEVTOOLS_ROUTER__", We = "__VUE_DEVTOOLS_ROUTER_INFO__";
3857
+ const wt = "__VUE_DEVTOOLS_ROUTER__", We = "__VUE_DEVTOOLS_ROUTER_INFO__";
3863
3858
  T[We] ??= {
3864
3859
  currentRoute: null,
3865
3860
  routes: []
3866
3861
  };
3867
- T[Tt] ??= {};
3862
+ T[wt] ??= {};
3868
3863
  new Proxy(T[We], { get(e, t) {
3869
3864
  return T[We][t];
3870
3865
  } });
3871
- new Proxy(T[Tt], { get(e, t) {
3872
- if (t === "value") return T[Tt];
3866
+ new Proxy(T[wt], { get(e, t) {
3867
+ if (t === "value") return T[wt];
3873
3868
  } });
3874
3869
  function za(e) {
3875
3870
  const t = /* @__PURE__ */ new Map();
@@ -3909,7 +3904,7 @@ function Ja(e, t) {
3909
3904
  }, T[We] = {
3910
3905
  currentRoute: o ? zn(o) : {},
3911
3906
  routes: zn(s)
3912
- }, T[Tt] = r, console.warn = a;
3907
+ }, T[wt] = r, console.warn = a;
3913
3908
  }
3914
3909
  n(), ho.on.componentUpdated(xe(() => {
3915
3910
  t.value?.app === e.app && (n(), !V.highPerfModeEnabled && je.hooks.callHook(_e.ROUTER_INFO_UPDATED, { state: T[We] }));
@@ -3970,7 +3965,7 @@ function Ka(e) {
3970
3965
  return ha();
3971
3966
  },
3972
3967
  getComponentRenderCode(t) {
3973
- const n = rn(Z.value, t);
3968
+ const n = on(Z.value, t);
3974
3969
  if (n) return typeof n?.type != "function" ? n.render.toString() : n.type.toString();
3975
3970
  },
3976
3971
  scrollToComponent(t) {
@@ -3979,11 +3974,11 @@ function Ka(e) {
3979
3974
  openInEditor: Ua,
3980
3975
  getVueInspector: ya,
3981
3976
  toggleApp(t, n) {
3982
- const r = Bt.value.find((o) => o.id === t);
3977
+ const r = Ht.value.find((o) => o.id === t);
3983
3978
  r && (Ca(t), ka(r), Ja(r, Z), uo(), Eo(r.app, n));
3984
3979
  },
3985
3980
  inspectDOM(t) {
3986
- const n = rn(Z.value, t);
3981
+ const n = on(Z.value, t);
3987
3982
  if (n) {
3988
3983
  const [r] = Tn(n);
3989
3984
  r && (T.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
@@ -4009,7 +4004,7 @@ T.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
4009
4004
  ...V,
4010
4005
  activeAppRecordId: Z.id,
4011
4006
  activeAppRecord: Z.value,
4012
- appRecords: Bt.value
4007
+ appRecords: Ht.value
4013
4008
  };
4014
4009
  },
4015
4010
  api: Ka(Kn)
@@ -5429,7 +5424,7 @@ var sc = class {
5429
5424
  return this.transfomers[e];
5430
5425
  }
5431
5426
  };
5432
- const ic = (e) => Object.prototype.toString.call(e).slice(8, -1), _o = (e) => typeof e > "u", ac = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, cn = (e) => Je(e) && Object.keys(e).length === 0, le = (e) => Array.isArray(e), cc = (e) => typeof e == "string", uc = (e) => typeof e == "number" && !isNaN(e), fc = (e) => typeof e == "boolean", lc = (e) => e instanceof RegExp, Ke = (e) => e instanceof Map, Ye = (e) => e instanceof Set, mo = (e) => ic(e) === "Symbol", dc = (e) => e instanceof Date && !isNaN(e.valueOf()), pc = (e) => e instanceof Error, Qn = (e) => typeof e == "number" && isNaN(e), hc = (e) => fc(e) || ac(e) || _o(e) || uc(e) || cc(e) || mo(e), Ec = (e) => typeof e == "bigint", gc = (e) => e === 1 / 0 || e === -1 / 0, _c = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), mc = (e) => e instanceof URL, yo = (e) => e.replace(/\./g, "\\."), Wt = (e) => e.map(String).map(yo).join("."), Fe = (e) => {
5427
+ const ic = (e) => Object.prototype.toString.call(e).slice(8, -1), _o = (e) => typeof e > "u", ac = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, un = (e) => Je(e) && Object.keys(e).length === 0, le = (e) => Array.isArray(e), cc = (e) => typeof e == "string", uc = (e) => typeof e == "number" && !isNaN(e), fc = (e) => typeof e == "boolean", lc = (e) => e instanceof RegExp, Ke = (e) => e instanceof Map, Ye = (e) => e instanceof Set, mo = (e) => ic(e) === "Symbol", dc = (e) => e instanceof Date && !isNaN(e.valueOf()), pc = (e) => e instanceof Error, Qn = (e) => typeof e == "number" && isNaN(e), hc = (e) => fc(e) || ac(e) || _o(e) || uc(e) || cc(e) || mo(e), Ec = (e) => typeof e == "bigint", gc = (e) => e === 1 / 0 || e === -1 / 0, _c = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), mc = (e) => e instanceof URL, yo = (e) => e.replace(/\./g, "\\."), Jt = (e) => e.map(String).map(yo).join("."), Fe = (e) => {
5433
5428
  const t = [];
5434
5429
  let n = "";
5435
5430
  for (let o = 0; o < e.length; o++) {
@@ -5484,7 +5479,7 @@ const Ro = [
5484
5479
  re((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
5485
5480
  re(mc, "URL", (e) => e.toString(), (e) => new URL(e))
5486
5481
  ];
5487
- function Ht(e, t, n, r) {
5482
+ function jt(e, t, n, r) {
5488
5483
  return {
5489
5484
  isApplicable: e,
5490
5485
  annotation: t,
@@ -5492,7 +5487,7 @@ function Ht(e, t, n, r) {
5492
5487
  untransform: r
5493
5488
  };
5494
5489
  }
5495
- const So = Ht((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
5490
+ const So = jt((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
5496
5491
  const r = n.symbolRegistry.getValue(t[1]);
5497
5492
  if (!r) throw new Error("Trying to deserialize unknown symbol");
5498
5493
  return r;
@@ -5506,7 +5501,7 @@ const So = Ht((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t)
5506
5501
  Float32Array,
5507
5502
  Float64Array,
5508
5503
  Uint8ClampedArray
5509
- ].reduce((e, t) => (e[t.name] = t, e), {}), Oo = Ht(_c, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
5504
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Oo = jt(_c, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
5510
5505
  const n = yc[t[1]];
5511
5506
  if (!n) throw new Error("Trying to deserialize unknown typed array");
5512
5507
  return new n(e);
@@ -5514,7 +5509,7 @@ const So = Ht((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t)
5514
5509
  function To(e, t) {
5515
5510
  return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
5516
5511
  }
5517
- const wo = Ht(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
5512
+ const wo = jt(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
5518
5513
  const n = t.classRegistry.getAllowedProps(e.constructor);
5519
5514
  if (!n) return { ...e };
5520
5515
  const r = {};
@@ -5525,7 +5520,7 @@ const wo = Ht(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructo
5525
5520
  const r = n.classRegistry.getValue(t[1]);
5526
5521
  if (!r) throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
5527
5522
  return Object.assign(Object.create(r.prototype), e);
5528
- }), Po = Ht((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
5523
+ }), Po = jt((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
5529
5524
  const r = n.customTransformerRegistry.findByName(t[1]);
5530
5525
  if (!r) throw new Error("Trying to deserialize unknown custom value");
5531
5526
  return r.deserialize(e);
@@ -5597,7 +5592,7 @@ const Oc = (e, t) => {
5597
5592
  } else e = e[r];
5598
5593
  }
5599
5594
  return e;
5600
- }, un = (e, t, n) => {
5595
+ }, fn = (e, t, n) => {
5601
5596
  if (Io(t), t.length === 0) return n(e);
5602
5597
  let r = e;
5603
5598
  for (let s = 0; s < t.length - 1; s++) {
@@ -5642,33 +5637,33 @@ const Oc = (e, t) => {
5642
5637
  }
5643
5638
  return e;
5644
5639
  };
5645
- function fn(e, t, n = []) {
5640
+ function ln(e, t, n = []) {
5646
5641
  if (!e) return;
5647
5642
  if (!le(e)) {
5648
- Ve(e, (s, a) => fn(s, t, [...n, ...Fe(a)]));
5643
+ Ve(e, (s, a) => ln(s, t, [...n, ...Fe(a)]));
5649
5644
  return;
5650
5645
  }
5651
5646
  const [r, o] = e;
5652
5647
  o && Ve(o, (s, a) => {
5653
- fn(s, t, [...n, ...Fe(a)]);
5648
+ ln(s, t, [...n, ...Fe(a)]);
5654
5649
  }), t(r, n);
5655
5650
  }
5656
5651
  function Tc(e, t, n) {
5657
- return fn(t, (r, o) => {
5658
- e = un(e, o, (s) => Sc(s, r, n));
5652
+ return ln(t, (r, o) => {
5653
+ e = fn(e, o, (s) => Sc(s, r, n));
5659
5654
  }), e;
5660
5655
  }
5661
5656
  function wc(e, t) {
5662
5657
  function n(r, o) {
5663
5658
  const s = Oc(e, Fe(o));
5664
5659
  r.map(Fe).forEach((a) => {
5665
- e = un(e, a, () => s);
5660
+ e = fn(e, a, () => s);
5666
5661
  });
5667
5662
  }
5668
5663
  if (le(t)) {
5669
5664
  const [r, o] = t;
5670
5665
  r.forEach((s) => {
5671
- e = un(e, Fe(s), () => e);
5666
+ e = fn(e, Fe(s), () => e);
5672
5667
  }), o && Ve(o, n);
5673
5668
  } else Ve(t, n);
5674
5669
  return e;
@@ -5685,8 +5680,8 @@ function Ic(e, t) {
5685
5680
  if (o.length <= 1) return;
5686
5681
  t || (o = o.map((i) => i.map(String)).sort((i, u) => i.length - u.length));
5687
5682
  const [s, ...a] = o;
5688
- s.length === 0 ? r = a.map(Wt) : n[Wt(s)] = a.map(Wt);
5689
- }), r ? cn(n) ? [r] : [r, n] : cn(n) ? void 0 : n;
5683
+ s.length === 0 ? r = a.map(Jt) : n[Jt(s)] = a.map(Jt);
5684
+ }), r ? un(n) ? [r] : [r, n] : un(n) ? void 0 : n;
5690
5685
  }
5691
5686
  const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
5692
5687
  const i = hc(e);
@@ -5711,7 +5706,7 @@ const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
5711
5706
  c[yo(p) + "." + h] = _;
5712
5707
  });
5713
5708
  });
5714
- const E = cn(c) ? {
5709
+ const E = un(c) ? {
5715
5710
  transformedValue: m,
5716
5711
  annotations: u ? [u.type] : void 0
5717
5712
  } : {
@@ -5740,14 +5735,14 @@ function bc(e, t, n, r, o) {
5740
5735
  configurable: !0
5741
5736
  });
5742
5737
  }
5743
- function ln(e, t = {}) {
5744
- if (er(e)) return e.map((o) => ln(o, t));
5738
+ function dn(e, t = {}) {
5739
+ if (er(e)) return e.map((o) => dn(o, t));
5745
5740
  if (!Ac(e)) return e;
5746
5741
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
5747
5742
  return [...n, ...r].reduce((o, s) => {
5748
5743
  if (er(t.props) && !t.props.includes(s)) return o;
5749
5744
  const a = e[s];
5750
- return bc(o, s, ln(a, t), e, t.nonenumerable), o;
5745
+ return bc(o, s, dn(a, t), e, t.nonenumerable), o;
5751
5746
  }, {});
5752
5747
  }
5753
5748
  var v = class {
@@ -5771,7 +5766,7 @@ var v = class {
5771
5766
  }
5772
5767
  deserialize(e) {
5773
5768
  const { json: t, meta: n } = e;
5774
- let r = ln(t);
5769
+ let r = dn(t);
5775
5770
  return n?.values && (r = Tc(r, n.values, this)), n?.referentialEqualities && (r = wc(r, n.referentialEqualities)), r;
5776
5771
  }
5777
5772
  stringify(e) {
@@ -5811,7 +5806,7 @@ T.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null;
5811
5806
  T.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null;
5812
5807
  T.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null;
5813
5808
  T.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
5814
- const wt = { template: "<div>This is component</div>" }, kn = Ue({
5809
+ const Pt = { template: "<div>This is component</div>" }, kn = Ue({
5815
5810
  name: "parentA",
5816
5811
  path: "/parentA/[paramA]"
5817
5812
  }), vo = Ue({
@@ -5822,21 +5817,21 @@ const wt = { template: "<div>This is component</div>" }, kn = Ue({
5822
5817
  parent: kn,
5823
5818
  name: "parentA.childB",
5824
5819
  path: "/childB/[paramD]",
5825
- component: wt
5820
+ component: Pt
5826
5821
  }), kc = Ue({
5827
5822
  parent: vo,
5828
5823
  name: "parentA.childA.grandChildA",
5829
5824
  path: "/[paramC]",
5830
- component: wt
5825
+ component: Pt
5831
5826
  });
5832
5827
  Ue({
5833
5828
  name: "parentB",
5834
5829
  path: "/parentB",
5835
- component: wt
5830
+ component: Pt
5836
5831
  }), Ue({
5837
5832
  name: "parentC",
5838
5833
  path: "/",
5839
- component: wt
5834
+ component: Pt
5840
5835
  });
5841
5836
  function Cc(e, t) {
5842
5837
  return t !== "1" ? `${e} ${t}` : e;
@@ -5848,7 +5843,7 @@ const Uc = ({ route: e }) => !!e.name, Lc = ({ route: e, payload: t }) => {
5848
5843
  return !1;
5849
5844
  const n = t.filter.toLowerCase();
5850
5845
  return !!(e.name.toLowerCase().includes(n) || e.schema.path.value.toLowerCase().includes(n));
5851
- }, Dc = (e) => Uc(e) && Lc(e), xc = Nt(), Vc = 2282478, Mc = 2278750, Bc = 1483594;
5846
+ }, Dc = (e) => Uc(e) && Lc(e), xc = It(), Vc = 2282478, Mc = 2278750, Bc = 1483594;
5852
5847
  function Hc(e, t = { match: !1, exactMatch: !1 }) {
5853
5848
  const n = [];
5854
5849
  return e.name && n.push({
@@ -5900,7 +5895,7 @@ function Zc(e) {
5900
5895
  })), t;
5901
5896
  }
5902
5897
  function Gc({ router: e, app: t, routes: n }) {
5903
- if (!Vt() || e.hasDevtools)
5898
+ if (!Mt() || e.hasDevtools)
5904
5899
  return;
5905
5900
  e.hasDevtools = !0;
5906
5901
  const r = xc(), o = new Map(n.map((i) => [i.id, i])), s = `kitbag-router-routes.${r}`, a = `kitbag-router.${r}`;
@@ -5954,7 +5949,7 @@ function $c(e, t, n = {}) {
5954
5949
  const ko = /^(\/.+?)\/+$/;
5955
5950
  function Fc(e) {
5956
5951
  const { path: t, ...n } = se(e);
5957
- return Lt({
5952
+ return Dt({
5958
5953
  ...n,
5959
5954
  path: t.replace(ko, "$1")
5960
5955
  });
@@ -5969,7 +5964,7 @@ function eu(e, t, n = []) {
5969
5964
  ...t?.rejections ?? []
5970
5965
  ], a = t?.removeTrailingSlashes ?? !0, { routes: i, getRouteByName: u } = _i(e, n, t?.base), l = Vs();
5971
5966
  l.addGlobalRouteHooks(Si(n));
5972
- const m = Nt(), c = oi(), E = Pi(o), f = pi(), p = si({
5967
+ const m = It(), c = oi(), E = Pi(o), f = pi(), p = si({
5973
5968
  mode: t?.historyMode,
5974
5969
  listener: ({ location: P }) => {
5975
5970
  const k = ge(P);
@@ -6072,8 +6067,8 @@ function eu(e, t, n = []) {
6072
6067
  return _(at, ne);
6073
6068
  }
6074
6069
  if (typeof P == "string") {
6075
- const { replace: ne, ...at } = { ...G }, Co = { ...k }, jt = S(P, Co, at), Uo = Fn({ ...jt.matched.state }, { ...jt.state, ...at.state });
6076
- return _(jt.href, { replace: ne, state: Uo });
6070
+ const { replace: ne, ...at } = { ...G }, Co = { ...k }, Zt = S(P, Co, at), Uo = Fn({ ...Zt.matched.state }, { ...Zt.state, ...at.state });
6071
+ return _(Zt.href, { replace: ne, state: Uo });
6077
6072
  }
6078
6073
  const { replace: $, ...L } = { ...k }, M = Fn({ ...P.matched.state }, { ...P.state, ...L.state }), we = Ce(P.href, {
6079
6074
  query: L.query,
@@ -6169,6 +6164,7 @@ export {
6169
6164
  Un as isWithComponentPropsRecord,
6170
6165
  rr as isWithComponents,
6171
6166
  tr as isWithParent,
6167
+ lr as literal,
6172
6168
  ru as onAfterRouteLeave,
6173
6169
  ou as onAfterRouteUpdate,
6174
6170
  tu as onBeforeRouteLeave,
@@ -6181,5 +6177,5 @@ export {
6181
6177
  cu as useRoute,
6182
6178
  uu as useRouter,
6183
6179
  Wc as withDefault,
6184
- en as withParams
6180
+ tn as withParams
6185
6181
  };