@fox-js/fox 3.1.1-22 → 3.1.1-24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/libs/index.esm.js CHANGED
@@ -20,12 +20,12 @@ var Ve = (e, t, r) => {
20
20
  let i = !0, n = !0;
21
21
  for (let a in t) a === "bubbles" ? i = !!t[a] : a === "cancelable" ? n = !!t[a] : s[a] = t[a];
22
22
  s.initEvent(e, i, n), (r ?? document).dispatchEvent(s);
23
- }, er = Array.isArray, Ai = (e) => Jt(e) === "[object Map]", Ki = (e) => Jt(e) === "[object Set]", $i = (e) => e instanceof Date, b = (e) => typeof e == "function", qi = (e) => typeof e == "string", ji = (e) => typeof e == "symbol", ds = (e) => e !== null && typeof e == "object", Mi = (e) => ds(e) && b(e.then) && b(e.catch), He = (e) => e == null, ms = Object.prototype.toString, Jt = (e) => ms.call(e), vs = (e) => Jt(e) === "[object Object]", ps = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
23
+ }, er = Array.isArray, Ai = (e) => Jt(e) === "[object Map]", qi = (e) => Jt(e) === "[object Set]", Ki = (e) => e instanceof Date, w = (e) => typeof e == "function", $i = (e) => typeof e == "string", ji = (e) => typeof e == "symbol", ds = (e) => e !== null && typeof e == "object", Li = (e) => ds(e) && w(e.then) && w(e.catch), He = (e) => e == null, ms = Object.prototype.toString, Jt = (e) => ms.call(e), vs = (e) => Jt(e) === "[object Object]", ps = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
24
24
  function zt(e) {
25
25
  return e.__esModule || ps && e[Symbol.toStringTag] === "Module";
26
26
  }
27
27
  var gs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
28
- function q(...e) {
28
+ function $(...e) {
29
29
  let t = e[0] !== void 0 && e[0] !== null ? e[0] : {}, r = 1, s = e.length, i = !1;
30
30
  for (typeof t == "boolean" && (i = t, t = e[r] ?? {}, r++), typeof t != "object" && (t = {}); r < s; r++) if (e[r] !== null && e[r] !== void 0) {
31
31
  let n = e[r];
@@ -34,13 +34,13 @@ function q(...e) {
34
34
  if (l !== o)
35
35
  if (i === !0 && o && typeof o == "object") {
36
36
  let u;
37
- Array.isArray(o) ? u = l && Array.isArray(l) ? l : [] : u = l && typeof l == "object" ? l : {}, t[a] = q(i, u, o);
37
+ Array.isArray(o) ? u = l && Array.isArray(l) ? l : [] : u = l && typeof l == "object" ? l : {}, t[a] = $(i, u, o);
38
38
  } else o !== void 0 && (t[a] = o);
39
39
  }
40
40
  }
41
41
  return t;
42
42
  }
43
- function Kr(e, t, r = !1) {
43
+ function qr(e, t, r = !1) {
44
44
  if (typeof t != "object") return {};
45
45
  typeof e != "object" && (e = {});
46
46
  for (let s of Reflect.ownKeys(t)) {
@@ -48,7 +48,7 @@ function Kr(e, t, r = !1) {
48
48
  if (i !== n)
49
49
  if (typeof n == "object") {
50
50
  if (!Array.isArray(n) && !vs(n)) continue;
51
- i = Kr(i, n, r), e[s] = i;
51
+ i = qr(i, n, r), e[s] = i;
52
52
  } else {
53
53
  if (typeof n == "function") continue;
54
54
  e[s] = n;
@@ -70,13 +70,13 @@ function Be(e, ...t) {
70
70
  e(t);
71
71
  }) : setTimeout(e);
72
72
  }
73
- function $r(e) {
73
+ function Kr(e) {
74
74
  return e == null ? !1 : typeof e == "boolean" ? e : typeof e == "string" ? e.toLocaleLowerCase() === "true" : !!e;
75
75
  }
76
- function Li(e) {
76
+ function Ti(e) {
77
77
  return typeof e == "number" ? e : Number(e);
78
78
  }
79
- var ws = {
79
+ var bs = {
80
80
  "[object Boolean]": "boolean",
81
81
  "[object Number]": "number",
82
82
  "[object String]": "string",
@@ -88,7 +88,7 @@ var ws = {
88
88
  };
89
89
  function tr(e) {
90
90
  let t = Object.prototype.toString.call(e);
91
- return e == null ? String(e) : ws[t] || "object";
91
+ return e == null ? String(e) : bs[t] || "object";
92
92
  }
93
93
  function rr(e, t) {
94
94
  if (e == t) return !0;
@@ -113,19 +113,19 @@ function rr(e, t) {
113
113
  }
114
114
  return !1;
115
115
  }
116
- var qr = (e) => {
116
+ var $r = (e) => {
117
117
  const t = {};
118
118
  for (let r of Reflect.ownKeys(e)) {
119
119
  let s = e[r];
120
- s && !Array.isArray(s) && typeof s == "object" && (s = qr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
120
+ s && !Array.isArray(s) && typeof s == "object" && (s = $r(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
121
121
  }
122
122
  return t;
123
- }, bs = /^Symbol\((.*)\)$/, jr = (e) => {
123
+ }, ws = /^Symbol\((.*)\)$/, jr = (e) => {
124
124
  const t = {};
125
125
  for (let r of Reflect.ownKeys(e)) {
126
126
  let s = e[r];
127
127
  s && !Array.isArray(s) && typeof s == "object" && (s = jr(s));
128
- const i = bs.exec(r);
128
+ const i = ws.exec(r);
129
129
  if (i && i[1]) {
130
130
  const n = Symbol.for(i[1]);
131
131
  t[n] = s;
@@ -133,7 +133,7 @@ var qr = (e) => {
133
133
  }
134
134
  return t;
135
135
  };
136
- function Mr(e, t) {
136
+ function Lr(e, t) {
137
137
  let r = null;
138
138
  return function(...s) {
139
139
  r && clearTimeout(r), r = setTimeout(() => {
@@ -141,7 +141,7 @@ function Mr(e, t) {
141
141
  }, t);
142
142
  };
143
143
  }
144
- var sr = Symbol("idKey"), me = Symbol("valueKey"), R = Symbol("childrenKey"), X = Symbol("growKey"), Lr = class {
144
+ var sr = /* @__PURE__ */ Symbol("idKey"), me = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), X = /* @__PURE__ */ Symbol("growKey"), Tr = class {
145
145
  [X] = !0;
146
146
  [sr];
147
147
  [me] = cs();
@@ -159,14 +159,14 @@ var sr = Symbol("idKey"), me = Symbol("valueKey"), R = Symbol("childrenKey"), X
159
159
  return r = Xt(t), r[X] = e[X], e[R].set(t, r), De(r);
160
160
  }
161
161
  set(e, t, r) {
162
- return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = $r(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
162
+ return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = Kr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
163
163
  }
164
164
  deleteProperty(e, t) {
165
165
  return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
166
166
  }
167
167
  }, Gt = "__proxy__";
168
168
  function Xt(e) {
169
- const t = new Lr(e);
169
+ const t = new Tr(e);
170
170
  return Reflect.set(t, Gt, new Proxy(t, new Rs())), t;
171
171
  }
172
172
  function De(e) {
@@ -251,7 +251,7 @@ var Ss = class {
251
251
  console.error(e);
252
252
  }
253
253
  }
254
- }, Tr = class extends Lr {
254
+ }, kr = class extends Tr {
255
255
  _persistHandler;
256
256
  constructor(e = {}, t) {
257
257
  super("__root__"), this._persistHandler = new Ss(e, t), this._persistHandler.init(this);
@@ -329,20 +329,20 @@ var Ps = class {
329
329
  return s = Xt(r), s[X] = e[X], e[R].set(r, s), De(s);
330
330
  }
331
331
  set(e, t, r) {
332
- return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = $r(r), !0) : ir(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
332
+ return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = Kr(r), !0) : ir(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
333
333
  }
334
334
  deleteProperty(e, t) {
335
335
  return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
336
336
  }
337
337
  };
338
338
  function Es(e, t) {
339
- const r = new Tr(e, t), s = new Ps(), i = new Proxy(r, s);
339
+ const r = new kr(e, t), s = new Ps(), i = new Proxy(r, s);
340
340
  return Reflect.set(r, Gt, i), r;
341
341
  }
342
- var nr = new Proxy(Tr, { construct(e, t) {
342
+ var nr = new Proxy(kr, { construct(e, t) {
343
343
  const r = t[0] ?? {}, s = t[1];
344
344
  return De(Es(r, s));
345
- } }), Qt = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, kr = class {
345
+ } }), Qt = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Mr = class {
346
346
  name = "";
347
347
  persistPolicy = "memory";
348
348
  storage;
@@ -386,7 +386,7 @@ var nr = new Proxy(Tr, { construct(e, t) {
386
386
  }
387
387
  };
388
388
  function Ir(e, t, r) {
389
- const s = new kr(r);
389
+ const s = new Mr(r);
390
390
  s.restore(t);
391
391
  const i = (l) => {
392
392
  const o = Ot(l), u = {};
@@ -397,7 +397,7 @@ function Ir(e, t, r) {
397
397
  Qt(u) ? s.removeState() : s.saveState(u);
398
398
  };
399
399
  let n = null;
400
- r && r.debounce === !1 ? n = i : n = Mr(i, r && r.debounceDelay ? r.debounceDelay : 250);
400
+ r && r.debounce === !1 ? n = i : n = Lr(i, r && r.debounceDelay ? r.debounceDelay : 250);
401
401
  const a = e ? hs(t) : us(t);
402
402
  return as(!0).run(() => {
403
403
  ys(a, (l) => {
@@ -406,14 +406,14 @@ function Ir(e, t, r) {
406
406
  });
407
407
  }), a;
408
408
  }
409
- function Ti(e, t) {
409
+ function ki(e, t) {
410
410
  return Ir(!1, e, t);
411
411
  }
412
- function ki(e, t) {
412
+ function Mi(e, t) {
413
413
  return Ir(!0, e, t);
414
414
  }
415
415
  function _s(e, t) {
416
- const r = new kr(t);
416
+ const r = new Mr(t);
417
417
  r.restore(e);
418
418
  const s = (n) => {
419
419
  const a = Ot(n), l = {};
@@ -424,7 +424,7 @@ function _s(e, t) {
424
424
  Qt(l) ? r.removeState() : r.saveState(l);
425
425
  };
426
426
  let i = null;
427
- return t && t.debounce === !1 ? i = s : i = Mr(s, t && t.debounceDelay ? t.debounceDelay : 250), new Proxy(e, {
427
+ return t && t.debounce === !1 ? i = s : i = Lr(s, t && t.debounceDelay ? t.debounceDelay : 250), new Proxy(e, {
428
428
  get(n, a) {
429
429
  return n[a];
430
430
  },
@@ -436,7 +436,7 @@ function _s(e, t) {
436
436
  function Ii(e, t) {
437
437
  return _s(e, t);
438
438
  }
439
- var Or = "default", Br = Symbol("sync"), I = Symbol("normalizeRoute");
439
+ var Or = "default", Br = /* @__PURE__ */ Symbol("sync"), I = /* @__PURE__ */ Symbol("normalizeRoute");
440
440
  function or(e) {
441
441
  let t = !1;
442
442
  return function(...r) {
@@ -483,7 +483,7 @@ var Fs = class {
483
483
  }
484
484
  static from(t) {
485
485
  const r = new Dr(t.to, t.from), s = t.data ?? {};
486
- return q(!0, r.data, s), r;
486
+ return $(!0, r.data, s), r;
487
487
  }
488
488
  static clear(t) {
489
489
  for (let r in t) t[r] = void 0;
@@ -491,7 +491,7 @@ var Fs = class {
491
491
  }, x = class Dt {
492
492
  path;
493
493
  get fullPath() {
494
- const t = this.path ?? `/${this.name}`;
494
+ const t = this.path ?? `${this.name}`;
495
495
  return `${this.root ?? "default"}!${t}`;
496
496
  }
497
497
  alias;
@@ -515,7 +515,7 @@ var Fs = class {
515
515
  slot;
516
516
  static clone(t, r) {
517
517
  let s = new Dt();
518
- return Kr(s, t, r), s;
518
+ return qr(s, t, r), s;
519
519
  }
520
520
  static isSame(t, r) {
521
521
  return !t || !r ? !1 : t === r ? !0 : t.root !== r.root || t.index !== r.index ? !1 : t.path && r.path && t.path === r.path ? !0 : !!(t.name && r.name && t.name === r.name);
@@ -559,7 +559,7 @@ var Fs = class {
559
559
  layers = [];
560
560
  }, C = /* @__PURE__ */ (function(e) {
561
561
  return e[e.Push = 0] = "Push", e[e.Replace = 1] = "Replace", e[e.Put = 2] = "Put", e[e.Append = 3] = "Append", e[e.Open = 4] = "Open", e;
562
- })({}), Ks = "FoxBeforeEnter", $s = "FoxEnter", qs = "FoxLeave", js = "FoxLeave", Ht = "FoxLeaveEnd", ht = Symbol("rk"), gt = Symbol("vd"), ar = Symbol("rv"), wt = Symbol("rvi"), ur = Symbol("pv"), bt = Symbol("pvi"), Fe = Symbol("registerKey"), Ms = class {
562
+ })({}), qs = "FoxBeforeEnter", Ks = "FoxEnter", $s = "FoxLeave", js = "FoxLeave", Ht = "FoxLeaveEnd", ht = /* @__PURE__ */ Symbol("rk"), gt = /* @__PURE__ */ Symbol("vd"), ar = /* @__PURE__ */ Symbol("rv"), bt = /* @__PURE__ */ Symbol("rvi"), ur = /* @__PURE__ */ Symbol("pv"), wt = /* @__PURE__ */ Symbol("pvi"), Fe = /* @__PURE__ */ Symbol("registerKey"), Ls = class {
563
563
  [Fe] = /* @__PURE__ */ new Map();
564
564
  constructor() {
565
565
  }
@@ -575,12 +575,12 @@ var Fs = class {
575
575
  delete(e) {
576
576
  return this[Fe].delete(e);
577
577
  }
578
- }, de = Symbol("lc");
578
+ }, de = /* @__PURE__ */ Symbol("lc");
579
579
  function lt(e, t = !1) {
580
580
  let r = e;
581
581
  if (Reflect.has(r, de)) return r[de];
582
582
  if (t) {
583
- const s = new Ms();
583
+ const s = new Ls();
584
584
  return r[de] = s, s;
585
585
  }
586
586
  return null;
@@ -619,8 +619,8 @@ function fr(e) {
619
619
  }
620
620
  return null;
621
621
  }
622
- var at = Symbol("hooksKey");
623
- function Ls(e) {
622
+ var at = /* @__PURE__ */ Symbol("hooksKey");
623
+ function Ts(e) {
624
624
  let t = e.get(at);
625
625
  t || (t = [], e.set(at, t));
626
626
  }
@@ -639,7 +639,7 @@ function cr(e, t) {
639
639
  }
640
640
  var ut = /* @__PURE__ */ (function(e) {
641
641
  return e.DEACTIVATED = "da", e.ACTIVATED = "a", e;
642
- })({}), Ts = class {
642
+ })({}), ks = class {
643
643
  type;
644
644
  hook;
645
645
  target;
@@ -647,8 +647,8 @@ var ut = /* @__PURE__ */ (function(e) {
647
647
  this.target = r, this.hook = t, this.type = e;
648
648
  }
649
649
  };
650
- function ks(e, t, r, s) {
651
- let i = new Ts(t, r, s);
650
+ function Ms(e, t, r, s) {
651
+ let i = new ks(t, r, s);
652
652
  return e.push(i), !0;
653
653
  }
654
654
  function Is(e, t, r, s) {
@@ -681,10 +681,10 @@ function Ur(e) {
681
681
  }
682
682
  ct(() => {
683
683
  Is(i, e, t, s);
684
- }), ks(i, e, t, s);
684
+ }), Ms(i, e, t, s);
685
685
  };
686
686
  }
687
- var Di = Ur(ut.ACTIVATED), Hi = Ur(ut.DEACTIVATED), Vr = Symbol("routeKey");
687
+ var Di = Ur(ut.ACTIVATED), Hi = Ur(ut.DEACTIVATED), Vr = /* @__PURE__ */ Symbol("routeKey");
688
688
  function hr(e, t) {
689
689
  e.set(Vr, t);
690
690
  }
@@ -773,7 +773,7 @@ function yt(e) {
773
773
  Gs(e);
774
774
  }
775
775
  function A(e, t, r) {
776
- b(t) && (e == null && (e = {}), Reflect.apply(t, e, r));
776
+ w(t) && (e == null && (e = {}), Reflect.apply(t, e, r));
777
777
  }
778
778
  function Xr(e, t, r, s = -1, i, n, a) {
779
779
  let l = [];
@@ -781,7 +781,7 @@ function Xr(e, t, r, s = -1, i, n, a) {
781
781
  for (let u of l) Wt(t, u.type, u.listener);
782
782
  l = [];
783
783
  };
784
- if (b(n)) {
784
+ if (w(n)) {
785
785
  if (i !== void 0 && i >= 0) {
786
786
  setTimeout(() => {
787
787
  Reflect.apply(n, e, [
@@ -810,7 +810,7 @@ function Xr(e, t, r, s = -1, i, n, a) {
810
810
  });
811
811
  });
812
812
  }
813
- if (b(a)) {
813
+ if (w(a)) {
814
814
  const u = "animationcancel", f = (c) => {
815
815
  (c.target || c.srcElement) === c.currentTarget && (o(), Reflect.apply(a, e, [
816
816
  t,
@@ -842,30 +842,30 @@ function Qr(e, t, r, s = {}, i, n = -1) {
842
842
  }
843
843
  function Zr(e, t, r, s = {}, i, n, a, l) {
844
844
  if (!dt(n) && !t) {
845
- b(l) && l(e, l, [r]);
845
+ w(l) && l(e, l, [r]);
846
846
  return;
847
847
  }
848
848
  const o = Wr(s, t), u = Jr(s, t), f = Os(s, t), c = Hs(s, t), h = Ns(s, t), y = Us(s, t);
849
849
  if (!o && !u && !f && !c) {
850
- b(l) && l(e, l, [r]);
850
+ w(l) && l(e, l, [r]);
851
851
  return;
852
852
  }
853
853
  yt(() => {
854
854
  Xr(e, r, n, a, i, () => {
855
- u && xe(r, u), f && xe(r, f), b(h) && A(e, h, [
855
+ u && xe(r, u), f && xe(r, f), w(h) && A(e, h, [
856
856
  r,
857
857
  t,
858
858
  n,
859
859
  a
860
- ]), b(l) && l(e, l, [r]);
860
+ ]), w(l) && l(e, l, [r]);
861
861
  }, () => {
862
- b(y) && A(e, y, [
862
+ w(y) && A(e, y, [
863
863
  r,
864
864
  t,
865
865
  n,
866
866
  a
867
867
  ]);
868
- }), o && xe(r, o), f && Ee(r, f), b(c) && A(e, c, [
868
+ }), o && xe(r, o), f && Ee(r, f), w(c) && A(e, c, [
869
869
  r,
870
870
  t,
871
871
  n,
@@ -888,38 +888,38 @@ function Yr(e, t, r, s = {}, i, n = -1) {
888
888
  }
889
889
  function es(e, t, r, s = {}, i, n, a, l, o) {
890
890
  if (!dt(a) && !t) {
891
- b(o) && A(e, o, [r]), !t && b(n) && n();
891
+ w(o) && A(e, o, [r]), !t && w(n) && n();
892
892
  return;
893
893
  }
894
894
  const u = zr(s, t), f = Gr(s, t), c = Bs(s, t), h = Ws(s, t), y = Js(s, t), d = zs(s, t);
895
895
  if (!u && !f && !c && !h) {
896
- b(o) && A(e, o, [r]), !t && b(n) && n();
896
+ w(o) && A(e, o, [r]), !t && w(n) && n();
897
897
  return;
898
898
  }
899
899
  yt(() => {
900
900
  Xr(e, r, a, l, i, () => {
901
901
  try {
902
- f && xe(r, f), c && xe(r, c), b(y) && A(e, y, [
902
+ f && xe(r, f), c && xe(r, c), w(y) && A(e, y, [
903
903
  r,
904
904
  t,
905
905
  a,
906
906
  l
907
- ]), b(o) && A(e, o, [r]);
907
+ ]), w(o) && A(e, o, [r]);
908
908
  } finally {
909
- !t && b(n) && n();
909
+ !t && w(n) && n();
910
910
  }
911
911
  }, () => {
912
912
  try {
913
- b(d) && A(e, d, [
913
+ w(d) && A(e, d, [
914
914
  r,
915
915
  t,
916
916
  a,
917
917
  l
918
- ]), b(o) && A(e, o, [r]);
918
+ ]), w(o) && A(e, o, [r]);
919
919
  } finally {
920
- !t && b(n) && n();
920
+ !t && w(n) && n();
921
921
  }
922
- }), u && xe(r, u), c && Ee(r, c), b(h) && A(e, h, [
922
+ }), u && xe(r, u), c && Ee(r, c), w(h) && A(e, h, [
923
923
  r,
924
924
  t,
925
925
  a,
@@ -955,9 +955,9 @@ function Xs(e, t, r = {}, s, i, n, a) {
955
955
  if (l == null) return;
956
956
  const o = Yt(r);
957
957
  Qr(e, !0, l, r, s, i), Zr(e, !0, l, r, o.show, s, i, (u) => {
958
- b(a) && A(e, a, [u]);
958
+ w(a) && A(e, a, [u]);
959
959
  });
960
- } else b(a) && A(e, a, []);
960
+ } else w(a) && A(e, a, []);
961
961
  }
962
962
  function Qs(e, t, r = {}, s, i, n, a) {
963
963
  if (n === !0) {
@@ -965,9 +965,9 @@ function Qs(e, t, r = {}, s, i, n, a) {
965
965
  if (l == null) return;
966
966
  const o = Yt(r);
967
967
  Yr(e, !0, l, r, s, i), es(e, !0, l, r, o.hide, null, s, i, (u) => {
968
- b(a) && A(e, a, [u]);
968
+ w(a) && A(e, a, [u]);
969
969
  });
970
- } else b(a) && A(e, a, []);
970
+ } else w(a) && A(e, a, []);
971
971
  }
972
972
  function Zs(e, t = {}) {
973
973
  yt(() => {
@@ -979,13 +979,13 @@ function rs(e, t, r = {}, s, i = -1) {
979
979
  mode: r.mode ?? "default",
980
980
  persisted: !1,
981
981
  beforeEnter: (n) => {
982
- Ve(Ks, {}, n);
982
+ Ve(qs, {}, n);
983
983
  },
984
984
  enter: (n) => {
985
- Ve($s, {}, n);
985
+ Ve(Ks, {}, n);
986
986
  },
987
987
  leave: (n, a) => {
988
- Ve(qs, {}, n), yt(() => {
988
+ Ve($s, {}, n), yt(() => {
989
989
  const l = (o) => {
990
990
  (o.target || o.srcElement) === o.currentTarget && (Wt(n, Ht, l), a && Reflect.apply(a, e, []), t.transition = null, t = null);
991
991
  };
@@ -995,7 +995,7 @@ function rs(e, t, r = {}, s, i = -1) {
995
995
  clone: (n) => rs(e, t, r, s, i)
996
996
  };
997
997
  }
998
- var z = Symbol("rootKey"), J = Symbol("rootNodeKey"), he = Symbol("parentNodeKey"), it = Symbol("nameKey"), re = class {
998
+ var z = /* @__PURE__ */ Symbol("rootKey"), J = /* @__PURE__ */ Symbol("rootNodeKey"), he = /* @__PURE__ */ Symbol("parentNodeKey"), it = /* @__PURE__ */ Symbol("nameKey"), re = class {
999
999
  instance = null;
1000
1000
  model;
1001
1001
  route;
@@ -1253,25 +1253,25 @@ var ei = class {
1253
1253
  console.error("instance or instance.proxy not exist");
1254
1254
  return;
1255
1255
  }
1256
- const s = e.multi === !0, i = G(ht, null), n = G(gt, 0), a = G(ar, null), l = G(wt, -1);
1256
+ const s = e.multi === !0, i = G(ht, null), n = G(gt, 0), a = G(ar, null), l = G(bt, -1);
1257
1257
  let o = null, u = e.modelSlot;
1258
1258
  if (u) {
1259
- if (te(gt, n + 1), te(wt, u.index), te(bt, u.index), !u.route) {
1259
+ if (te(gt, n + 1), te(bt, u.index), te(wt, u.index), !u.route) {
1260
1260
  console.warn("child view render error, route not exist");
1261
1261
  return;
1262
1262
  }
1263
1263
  const c = lt(r.proxy, !0);
1264
- Ls(c), hr(c, () => u?.route ?? null);
1264
+ Ts(c), hr(c, () => u?.route ?? null);
1265
1265
  } else {
1266
1266
  if (i == null) {
1267
1267
  console.error("router is not been injected");
1268
1268
  return;
1269
1269
  }
1270
- const c = e.name, h = G(ur, null), y = G(bt, 0);
1270
+ const c = e.name, h = G(ur, null), y = G(wt, 0);
1271
1271
  if (o = i[Br](c, n, a, l, h, y), o === null) return;
1272
1272
  te(ur, o);
1273
1273
  const d = o[z] === !0;
1274
- d && te(ar, o), s || (te(wt, -1), te(gt, n + 1), te(bt, -1), d && hr(lt(r.proxy, !0), () => {
1274
+ d && te(ar, o), s || (te(bt, -1), te(gt, n + 1), te(wt, -1), d && hr(lt(r.proxy, !0), () => {
1275
1275
  const m = o.slots.value;
1276
1276
  return m.length > 0 ? m[0].route : null;
1277
1277
  }));
@@ -1286,42 +1286,42 @@ var ei = class {
1286
1286
  if (s) {
1287
1287
  const c = /* @__PURE__ */ new Map(), h = [], y = o?.slots.value, d = [];
1288
1288
  for (let g = 0; g < y.length; g++) {
1289
- const v = y[g], j = `${e.name}_${v.index}`, M = se(e.transition, v.route, g) ?? !0, _e = { modelSlot: v };
1290
- let L;
1291
- t.slots.default ? L = ce(Ut, _e, { default: t.slots.default }) : L = ce(Ut, _e);
1292
- const K = {}, ne = se(e.viewClass, v.route, g);
1293
- typeof ne == "string" && ne.length > 0 && (K[ne] = !0);
1294
- const ee = se(e.viewActiveClass, v.route, g), T = se(e.viewInactiveClass, v.route, g), Q = f.value.get(j);
1295
- if (typeof ee == "string" && ee.length > 0 && (K[ee] = v.active), typeof T == "string" && T.length > 0 && (K[T] = !v.active), Q && v.active !== Q.state) {
1289
+ const v = y[g], j = `${e.name}_${v.index}`, L = se(e.transition, v.route, g) ?? !0, _e = { modelSlot: v };
1290
+ let T;
1291
+ t.slots.default ? T = ce(Ut, _e, { default: t.slots.default }) : T = ce(Ut, _e);
1292
+ const q = {}, ne = se(e.viewClass, v.route, g);
1293
+ typeof ne == "string" && ne.length > 0 && (q[ne] = !0);
1294
+ const ee = se(e.viewActiveClass, v.route, g), k = se(e.viewInactiveClass, v.route, g), Q = f.value.get(j);
1295
+ if (typeof ee == "string" && ee.length > 0 && (q[ee] = v.active), typeof k == "string" && k.length > 0 && (q[k] = !v.active), Q && v.active !== Q.state) {
1296
1296
  const Ne = Q.node;
1297
1297
  v.active ? d.unshift(() => {
1298
1298
  const mt = () => {
1299
1299
  let Ce = fr(Ne);
1300
1300
  Ce != null && cr(Ce, ut.ACTIVATED);
1301
1301
  };
1302
- Xs(r, Ne, e, v.route, g, M, mt);
1302
+ Xs(r, Ne, e, v.route, g, L, mt);
1303
1303
  }) : d.push(() => {
1304
1304
  const mt = () => {
1305
1305
  const Ce = fr(Ne);
1306
1306
  Ce != null && cr(Ce, ut.DEACTIVATED);
1307
1307
  };
1308
- Qs(r, Ne, e, v.route, g, M, mt);
1308
+ Qs(r, Ne, e, v.route, g, L, mt);
1309
1309
  });
1310
1310
  }
1311
1311
  const N = {
1312
- class: K,
1312
+ class: q,
1313
1313
  key: j
1314
1314
  }, U = se(e.viewTagProps, v.route, g);
1315
- U !== null && typeof U == "object" && q(!0, N, pe(U, i?.propsFilter)), v.route?.viewTagAttrs && typeof v.route?.viewTagAttrs == "object" && q(!0, N, pe(v.route.viewTagAttrs, i?.propsFilter));
1316
- const ve = ce(se(e.viewTag, v.route, g), N, { default: () => [L] });
1317
- c.set(j, new ei(ve, v.active)), f.value.delete(j), M === !0 ? ve.transition = Nt(r, ve, e, v.route, g) : M === "custom" && (ve.transition = rs(r, ve, e, v.route, g)), h.push(ve);
1315
+ U !== null && typeof U == "object" && $(!0, N, pe(U, i?.propsFilter)), v.route?.viewTagAttrs && typeof v.route?.viewTagAttrs == "object" && $(!0, N, pe(v.route.viewTagAttrs, i?.propsFilter));
1316
+ const ve = ce(se(e.viewTag, v.route, g), N, { default: () => [T] });
1317
+ c.set(j, new ei(ve, v.active)), f.value.delete(j), L === !0 ? ve.transition = Nt(r, ve, e, v.route, g) : L === "custom" && (ve.transition = rs(r, ve, e, v.route, g)), h.push(ve);
1318
1318
  }
1319
1319
  f.value = c, Zs(d, r);
1320
- const m = se(e.tag, null, -1), w = {};
1321
- return Object.assign(w, t.attrs), ce(m, w, { default: () => h });
1320
+ const m = se(e.tag, null, -1), b = {};
1321
+ return Object.assign(b, t.attrs), ce(m, b, { default: () => h });
1322
1322
  } else if (u != null) {
1323
1323
  const c = u.model, h = {};
1324
- c.props && (typeof c.props == "object" ? q(!1, h, pe(c.props, i?.propsFilter)) : c.props === !0 && typeof u.route?.params == "object" && q(!1, h, pe(u.route.params, i?.propsFilter)));
1324
+ c.props && (typeof c.props == "object" ? $(!1, h, pe(c.props, i?.propsFilter)) : c.props === !0 && typeof u.route?.params == "object" && $(!1, h, pe(u.route.params, i?.propsFilter)));
1325
1325
  const y = ce(c.component, h);
1326
1326
  return St(t.slots.default, {
1327
1327
  Component: y,
@@ -1331,12 +1331,12 @@ var ei = class {
1331
1331
  const c = o.slots.value;
1332
1332
  if (c.length > 0) {
1333
1333
  const h = c[0], y = h.route ?? (r.proxy && Zt(r.proxy)) ?? null, d = h.model, m = {};
1334
- d.props && (typeof d.props == "object" ? q(!1, m, pe(d.props, i?.propsFilter)) : d.props === !0 && typeof y?.params == "object" && q(!1, m, pe(y.params, i?.propsFilter)));
1335
- const w = ce(d.component, m);
1336
- return (se(e.transition, y, -1) ?? !0) && (w.transition = Nt(r, w, e, y, -1)), St(t.slots.default, {
1337
- Component: w,
1334
+ d.props && (typeof d.props == "object" ? $(!1, m, pe(d.props, i?.propsFilter)) : d.props === !0 && typeof y?.params == "object" && $(!1, m, pe(y.params, i?.propsFilter)));
1335
+ const b = ce(d.component, m);
1336
+ return (se(e.transition, y, -1) ?? !0) && (b.transition = Nt(r, b, e, y, -1)), St(t.slots.default, {
1337
+ Component: b,
1338
1338
  route: y
1339
- }) ?? w;
1339
+ }) ?? b;
1340
1340
  } else return St(t.slots.fallback, {});
1341
1341
  }
1342
1342
  };
@@ -1422,7 +1422,7 @@ var ii = Fr({
1422
1422
  typeof c == "string" && c.length > 0 && (l[c] = ri(n, a));
1423
1423
  }
1424
1424
  let u = { class: l };
1425
- (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), q(!0, u, t.attrs);
1425
+ (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), $(!0, u, t.attrs);
1426
1426
  let f = ge(e.event, n);
1427
1427
  if (typeof f == "string") {
1428
1428
  const c = (h) => {
@@ -1443,15 +1443,15 @@ var ii = Fr({
1443
1443
  }
1444
1444
  }), P = /* @__PURE__ */ (function(e) {
1445
1445
  return e.Busy = "Busy", e.Free = "Free", e.Reject = "Reject", e.Exception = "Exception", e.Finished = "Finished", e;
1446
- })(P || {}), B = Symbol("chainKey"), k = Symbol("cursorKey"), xt = Symbol("$persistentModeKey"), _ = Symbol("statusKey"), Z = Symbol("argsKey"), Je = Symbol("exArgsKey"), we = Symbol("successFnsKey"), Ke = Symbol("errorFnsKey"), oe = Symbol("sessionKey"), Y = Symbol("_go"), ft = class {
1446
+ })(P || {}), B = /* @__PURE__ */ Symbol("chainKey"), M = /* @__PURE__ */ Symbol("cursorKey"), xt = /* @__PURE__ */ Symbol("$persistentModeKey"), _ = /* @__PURE__ */ Symbol("statusKey"), Z = /* @__PURE__ */ Symbol("argsKey"), Je = /* @__PURE__ */ Symbol("exArgsKey"), be = /* @__PURE__ */ Symbol("successFnsKey"), qe = /* @__PURE__ */ Symbol("errorFnsKey"), oe = /* @__PURE__ */ Symbol("sessionKey"), Y = /* @__PURE__ */ Symbol("_go"), ft = class {
1447
1447
  [B] = [];
1448
- [k] = 0;
1448
+ [M] = 0;
1449
1449
  [xt] = !1;
1450
1450
  [_] = P.Free;
1451
1451
  [Z] = [];
1452
1452
  [Je] = [];
1453
- [we] = [];
1454
- [Ke] = [];
1453
+ [be] = [];
1454
+ [qe] = [];
1455
1455
  [oe];
1456
1456
  get session() {
1457
1457
  return this[oe];
@@ -1461,32 +1461,32 @@ var ii = Fr({
1461
1461
  }
1462
1462
  [Y](e, ...t) {
1463
1463
  let r = this[_];
1464
- if (this[_] = P.Busy, this[k] += e, this[k] < 0 && (this[k] = 0), this[Z] = t, r === P.Exception || r === P.Reject) {
1464
+ if (this[_] = P.Busy, this[M] += e, this[M] < 0 && (this[M] = 0), this[Z] = t, r === P.Exception || r === P.Reject) {
1465
1465
  let n = [{ session: this[oe] }, ...this[Je]];
1466
- for (; this[Ke].length > 0; ) try {
1467
- let a = this[Ke].shift();
1466
+ for (; this[qe].length > 0; ) try {
1467
+ let a = this[qe].shift();
1468
1468
  typeof a == "function" && Be(() => {
1469
1469
  Reflect.apply(a, {}, n);
1470
1470
  });
1471
1471
  } catch (a) {
1472
1472
  console.error(a.message, a);
1473
1473
  }
1474
- return this[_] = r, this[B] = [], this[k] = 0, this;
1475
- } else if (r === P.Finished || this[k] >= this[B].length) {
1474
+ return this[_] = r, this[B] = [], this[M] = 0, this;
1475
+ } else if (r === P.Finished || this[M] >= this[B].length) {
1476
1476
  let n = [{ session: this[oe] }, ...this[Z]];
1477
- for (; this[we].length > 0; ) {
1478
- let a = this[we].shift();
1477
+ for (; this[be].length > 0; ) {
1478
+ let a = this[be].shift();
1479
1479
  typeof a == "function" && Be(() => {
1480
1480
  Reflect.apply(a, {}, n);
1481
1481
  });
1482
1482
  }
1483
1483
  return this[_] = P.Free, this;
1484
1484
  }
1485
- if (this[k] >= this[B].length)
1485
+ if (this[M] >= this[B].length)
1486
1486
  return this[_] = P.Free, this;
1487
- let s = this[B][this[k]];
1488
- this[xt] || (this[B].splice(0, this[k] + 1), this[k] = -1);
1489
- let i = this[k] + 1;
1487
+ let s = this[B][this[M]];
1488
+ this[xt] || (this[B].splice(0, this[M] + 1), this[M] = -1);
1489
+ let i = this[M] + 1;
1490
1490
  try {
1491
1491
  let n = !1, a = {
1492
1492
  go: (l, ...o) => {
@@ -1524,10 +1524,10 @@ var ii = Fr({
1524
1524
  return this[_] = P.Exception, this[Je] = e, Reflect.apply(this[Y], this, [0]);
1525
1525
  }
1526
1526
  reset(...e) {
1527
- this[_] = P.Busy, this[Z] = e, this[B] = [], this[k] = 0;
1527
+ this[_] = P.Busy, this[Z] = e, this[B] = [], this[M] = 0;
1528
1528
  let t = [{ session: this[oe] }, ...this[Z]];
1529
- for (; this[we].length > 0; ) {
1530
- let r = this[we].shift();
1529
+ for (; this[be].length > 0; ) {
1530
+ let r = this[be].shift();
1531
1531
  Be(() => {
1532
1532
  Reflect.apply(r, this, t);
1533
1533
  });
@@ -1538,36 +1538,36 @@ var ii = Fr({
1538
1538
  return this[_] === P.Reject || this[_] === P.Exception ? this : (Array.isArray(e) ? this[B] = [...this[B], ...e] : this[B].push(e), this[_] === P.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this));
1539
1539
  }
1540
1540
  wait(e, t) {
1541
- return e && typeof e == "function" && this[we].push(e), t && typeof t == "function" && this[Ke].push(t), this[_] === P.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this);
1541
+ return e && typeof e == "function" && this[be].push(e), t && typeof t == "function" && this[qe].push(t), this[_] === P.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this);
1542
1542
  }
1543
1543
  exception(e) {
1544
- return e && typeof e == "function" && this[Ke].push(e), this[_] === P.Busy ? this : Reflect.apply(this[Y], this, [0, ...this[Z]]);
1544
+ return e && typeof e == "function" && this[qe].push(e), this[_] === P.Busy ? this : Reflect.apply(this[Y], this, [0, ...this[Z]]);
1545
1545
  }
1546
1546
  isFinish() {
1547
- return this[_] == P.Reject || this[_] == P.Free && this[k] >= this[B].length;
1547
+ return this[_] == P.Reject || this[_] == P.Free && this[M] >= this[B].length;
1548
1548
  }
1549
1549
  }, nt = /* @__PURE__ */ (function(e) {
1550
1550
  return e[e.limitless = 0] = "limitless", e[e.once = 1] = "once", e;
1551
- })(nt || {}), be = Symbol("registerKey"), ni = class {
1551
+ })(nt || {}), we = /* @__PURE__ */ Symbol("registerKey"), ni = class {
1552
1552
  policy;
1553
1553
  callback;
1554
1554
  constructor(e, t) {
1555
1555
  this.callback = e, this.policy = t;
1556
1556
  }
1557
1557
  }, yr = class {
1558
- [be] = /* @__PURE__ */ new Map();
1558
+ [we] = /* @__PURE__ */ new Map();
1559
1559
  constructor() {
1560
1560
  }
1561
1561
  on(e, t, r = !1) {
1562
- let s = this[be].get(e);
1563
- s || (s = new Array(), this[be].set(e, s));
1562
+ let s = this[we].get(e);
1563
+ s || (s = new Array(), this[we].set(e, s));
1564
1564
  let i = new ni(t, r === !0 ? nt.once : nt.limitless);
1565
1565
  return s.push(i), this;
1566
1566
  }
1567
1567
  off(e, t) {
1568
1568
  if (!t)
1569
- return this[be].delete(e), this;
1570
- let r = this[be].get(e);
1569
+ return this[we].delete(e), this;
1570
+ let r = this[we].get(e);
1571
1571
  if (r) {
1572
1572
  for (let s = 0; s < r.length; s++) if (r[s].callback === t) {
1573
1573
  r.splice(s, 1);
@@ -1598,7 +1598,7 @@ var ii = Fr({
1598
1598
  return this;
1599
1599
  }
1600
1600
  emit(e, ...t) {
1601
- let r = this[be].get(e);
1601
+ let r = this[we].get(e);
1602
1602
  if (!r) return this;
1603
1603
  for (let s = 0; s < r.length; ) {
1604
1604
  let i = r[s];
@@ -1689,7 +1689,7 @@ var dr = "[^/]+?", ui = {
1689
1689
  return e[e._multiplier = 10] = "_multiplier", e[e.Root = 90] = "Root", e[e.Segment = 40] = "Segment", e[e.SubSegment = 30] = "SubSegment", e[e.Static = 40] = "Static", e[e.Dynamic = 20] = "Dynamic", e[e.BonusCustomRegExp = 10] = "BonusCustomRegExp", e[e.BonusWildcard = -50] = "BonusWildcard", e[e.BonusRepeatable = -20] = "BonusRepeatable", e[e.BonusOptional = -8] = "BonusOptional", e[e.BonusStrict = 0.7000000000000001] = "BonusStrict", e[e.BonusCaseSensitive = 0.25] = "BonusCaseSensitive", e;
1690
1690
  })(W || {}), fi = /[.+*?^${}()[\]/\\]/g;
1691
1691
  function ci(e, t) {
1692
- const r = q(!0, {}, ui, t), s = [];
1692
+ const r = $(!0, {}, ui, t), s = [];
1693
1693
  let i = r.start ? "^" : "";
1694
1694
  const n = [];
1695
1695
  for (const u of e) {
@@ -1701,23 +1701,23 @@ function ci(e, t) {
1701
1701
  if (h.type === ye.Static)
1702
1702
  c || (i += "/"), i += h.value.replace(fi, "\\$&"), y += W.Static;
1703
1703
  else if (h.type === ye.Param) {
1704
- const { value: d, repeatable: m, optional: w, regexp: g } = h;
1704
+ const { value: d, repeatable: m, optional: b, regexp: g } = h;
1705
1705
  n.push({
1706
1706
  name: d,
1707
1707
  repeatable: m,
1708
- optional: w
1708
+ optional: b
1709
1709
  });
1710
1710
  const v = g || dr;
1711
1711
  if (v !== dr) {
1712
1712
  y += W.BonusCustomRegExp;
1713
1713
  try {
1714
1714
  new RegExp(`(${v})`);
1715
- } catch (M) {
1716
- throw new Error(`Invalid custom RegExp for param "${d}" (${v}): ` + M.message);
1715
+ } catch (L) {
1716
+ throw new Error(`Invalid custom RegExp for param "${d}" (${v}): ` + L.message);
1717
1717
  }
1718
1718
  }
1719
1719
  let j = m ? `((?:${v})(?:/(?:${v}))*)` : `(${v})`;
1720
- c || (j = w && u.length < 2 ? `(?:/${j})` : "/" + j), w && (j += "?"), i += j, y += W.Dynamic, w && (y += W.BonusOptional), m && (y += W.BonusRepeatable), v === ".*" && (y += W.BonusWildcard);
1720
+ c || (j = b && u.length < 2 ? `(?:/${j})` : "/" + j), b && (j += "?"), i += j, y += W.Dynamic, b && (y += W.BonusOptional), m && (y += W.BonusRepeatable), v === ".*" && (y += W.BonusWildcard);
1721
1721
  }
1722
1722
  f.push(y);
1723
1723
  }
@@ -1744,10 +1744,10 @@ function ci(e, t) {
1744
1744
  (!c || !f.endsWith("/")) && (f += "/"), c = !1;
1745
1745
  for (const y of h) if (y.type === ye.Static) f += y.value;
1746
1746
  else if (y.type === ye.Param) {
1747
- const { value: d, repeatable: m, optional: w } = y, g = d in u ? u[d] : "";
1747
+ const { value: d, repeatable: m, optional: b } = y, g = d in u ? u[d] : "";
1748
1748
  if (er(g) && !m) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
1749
1749
  const v = er(g) ? g.join("/") : g;
1750
- if (!v) if (w)
1750
+ if (!v) if (b)
1751
1751
  h.length < 2 && (f.endsWith("/") ? f = f.slice(0, -1) : c = !0);
1752
1752
  else throw new Error(`Missing required param "${d}"`);
1753
1753
  f += v;
@@ -1795,17 +1795,17 @@ var Pt = /* @__PURE__ */ (function(e) {
1795
1795
  release(e) {
1796
1796
  this.submitRecorder.time === e && (this.submitRecorder.route = void 0);
1797
1797
  }
1798
- }, Se = Symbol("_notifyChange"), mr = class {
1798
+ }, Se = /* @__PURE__ */ Symbol("_notifyChange"), mr = class {
1799
1799
  currentRoute;
1800
1800
  routes;
1801
1801
  constructor(e, t) {
1802
1802
  this.currentRoute = e, this.routes = t;
1803
1803
  }
1804
- }, le = Symbol("historyChangeConsumerKey"), vr = Symbol("_navigateFirstRoute"), ze = Symbol("_getRouteMark"), Et = Symbol("_getUrlSearch"), _t = Symbol("_generateLocation"), Ge = Symbol("_setRouteMarkRecorder"), $e = Symbol("beforeRestoreFiltersKey"), pr = Symbol("_beforeRestore"), gr = "Symbol(_fox_restore_point)";
1805
- function qe(e, ...t) {
1804
+ }, le = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), vr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), ze = /* @__PURE__ */ Symbol("_getRouteMark"), Et = /* @__PURE__ */ Symbol("_getUrlSearch"), _t = /* @__PURE__ */ Symbol("_generateLocation"), Ge = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), Ke = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), pr = /* @__PURE__ */ Symbol("_beforeRestore"), gr = "Symbol(_fox_restore_point)";
1805
+ function $e(e, ...t) {
1806
1806
  return typeof e == "function" ? Reflect.apply(e, null, [...t]) : e;
1807
1807
  }
1808
- function wr(e) {
1808
+ function br(e) {
1809
1809
  if (!Array.isArray(e)) return !1;
1810
1810
  if (e.length === 0) return !0;
1811
1811
  const t = e[0];
@@ -1822,7 +1822,7 @@ var ss = class {
1822
1822
  changeHandler;
1823
1823
  historyChange;
1824
1824
  [le] = !1;
1825
- [$e] = new Array();
1825
+ [Ke] = new Array();
1826
1826
  backTimeout = 320;
1827
1827
  constructor(e = "hash", t = "", r = "", s = !0, i = !0, n = !1, a, l) {
1828
1828
  this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = a ?? F().sessionStorage, this.backTimeout = l ?? 320;
@@ -1837,7 +1837,7 @@ var ss = class {
1837
1837
  this[le] = !1;
1838
1838
  return;
1839
1839
  }
1840
- if (qe(this.historyMonitor)) {
1840
+ if ($e(this.historyMonitor)) {
1841
1841
  const r = t.history.state;
1842
1842
  this[Se](r);
1843
1843
  try {
@@ -1855,7 +1855,7 @@ var ss = class {
1855
1855
  this.historyChange && Wt(F(), "popstate", this.historyChange);
1856
1856
  }
1857
1857
  [pr](e, t, r, s) {
1858
- for (let i of this[$e]) try {
1858
+ for (let i of this[Ke]) try {
1859
1859
  const n = Reflect.apply(i, {}, [
1860
1860
  e,
1861
1861
  t,
@@ -1869,11 +1869,11 @@ var ss = class {
1869
1869
  return !0;
1870
1870
  }
1871
1871
  beforeRestoreEach(e) {
1872
- this[$e].push(e);
1872
+ this[Ke].push(e);
1873
1873
  }
1874
1874
  removeBeforeRestoreEach(e) {
1875
- const t = this[$e].indexOf(e);
1876
- return t !== -1 ? (this[$e].splice(t, 1), !0) : !1;
1875
+ const t = this[Ke].indexOf(e);
1876
+ return t !== -1 ? (this[Ke].splice(t, 1), !0) : !1;
1877
1877
  }
1878
1878
  [vr]() {
1879
1879
  const e = this[ze]() ?? "/", t = this.storage.getItem(gr);
@@ -1897,14 +1897,14 @@ var ss = class {
1897
1897
  }
1898
1898
  [Ge](e, t) {
1899
1899
  try {
1900
- t.forEach((i) => {
1901
- i.params = i.params ? qr(i.params) : {};
1900
+ t.forEach((s) => {
1901
+ s.params = s.params ? $r(s.params) : {};
1902
1902
  });
1903
- const s = JSON.stringify({
1903
+ const r = JSON.stringify({
1904
1904
  mark: e,
1905
1905
  routes: t
1906
1906
  });
1907
- this.storage.setItem(gr, s);
1907
+ this.storage.setItem(gr, r);
1908
1908
  } catch (r) {
1909
1909
  console.error(r.message, r);
1910
1910
  }
@@ -1940,11 +1940,11 @@ var ss = class {
1940
1940
  }
1941
1941
  goBack(e, t) {
1942
1942
  const r = F(), s = r.history.state;
1943
- if (wr(s) && s.length > 0) {
1943
+ if (br(s) && s.length > 0) {
1944
1944
  let i = !1;
1945
1945
  for (let u = s.length - 1; u >= 0; u--) {
1946
1946
  const f = x.from(s[u]);
1947
- if (!(f.historyUpdatePolicy === "traceless" || qe(this.traceless, f)) && x.isSame(f, e)) {
1947
+ if (!(f.historyUpdatePolicy === "traceless" || $e(this.traceless, f)) && x.isSame(f, e)) {
1948
1948
  i = !0;
1949
1949
  break;
1950
1950
  }
@@ -1960,7 +1960,7 @@ var ss = class {
1960
1960
  }, o = () => {
1961
1961
  clearTimeout(a);
1962
1962
  const u = F().history.state;
1963
- if (wr(u) && u.length > 0) {
1963
+ if (br(u) && u.length > 0) {
1964
1964
  let f = u.length;
1965
1965
  const c = u[f - 1], h = x.from(c);
1966
1966
  if (x.isSame(h, e))
@@ -1969,7 +1969,7 @@ var ss = class {
1969
1969
  let y = !1;
1970
1970
  for (let d = f - 1; d >= 0; d--) {
1971
1971
  const m = x.from(u[d]);
1972
- if (!(m.traceless === !0 || qe(this.traceless, m)) && x.isSame(m, e)) {
1972
+ if (!(m.traceless === !0 || $e(this.traceless, m)) && x.isSame(m, e)) {
1973
1973
  y = !0;
1974
1974
  break;
1975
1975
  }
@@ -1990,11 +1990,11 @@ var ss = class {
1990
1990
  }
1991
1991
  push(e) {
1992
1992
  const t = this[_t](e.currentRoute);
1993
- e.currentRoute.historyUpdatePolicy !== "traceless" && !qe(this.traceless, e.currentRoute) && F().history.pushState(e.routes, "", t), this.setRouteMark(e);
1993
+ e.currentRoute.historyUpdatePolicy !== "traceless" && !$e(this.traceless, e.currentRoute) && F().history.pushState(e.routes, "", t), this.setRouteMark(e);
1994
1994
  }
1995
1995
  replace(e) {
1996
1996
  const t = this[_t](e.currentRoute);
1997
- (e.currentRoute.historyUpdatePolicy !== "traceless" || !qe(this.traceless, e.currentRoute)) && F().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1997
+ (e.currentRoute.historyUpdatePolicy !== "traceless" || !$e(this.traceless, e.currentRoute)) && F().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1998
1998
  }
1999
1999
  [_t](e) {
2000
2000
  const t = F();
@@ -2091,14 +2091,14 @@ var vi = class {
2091
2091
  function pi(e = "", t = 50) {
2092
2092
  return new vi(e, t);
2093
2093
  }
2094
- var Xe = Symbol("_constructRouteModel"), Qe = Symbol("_findRouteModel"), Ct = Symbol("_findRootView"), gi = Symbol("_getFirstView"), ae = Symbol("_removeView"), br = Symbol("_buildPage"), Rr = Symbol("_resolveComponent"), Sr = Symbol("_update"), ie = Symbol("_merge"), Ft = Symbol("_handleHistoryChange"), ue = Symbol("_handleRouteUpdated"), Ze = Symbol("routeUpdatedCallback"), At = Symbol("currentRoute"), p = Symbol("currentRoutes"), Ye = Symbol("routeSessionCacheKey"), xr = Symbol("_addRouteRecorder"), je = Symbol("_removeRouteRecorder"), et = Symbol("_cloneRouteRecorder"), $ = Symbol("_handleError"), tt = Symbol("errorCallback"), D = Symbol("registerKey"), rt = Symbol("notFoundKey"), Kt = Symbol("notFoundPathKey"), V = Symbol("forestKey"), S = Symbol("historyKey"), Me = Symbol("beforeFiltersKey"), Le = Symbol("afterFiltersKey"), Te = Symbol("destroyFiltersKey"), $t = Symbol("propsFilterKey"), Re = Symbol("mainDispatcherKey"), qt = Symbol("initKey"), fe = Symbol("readyKey"), jt = Symbol("readyHandlersKey"), st = Symbol("_markReady"), Pr = Symbol("_createNextFn"), Mt = Symbol("_start"), Lt = Symbol("_before"), Tt = Symbol("_after"), Er = Symbol("_destroy"), kt = Symbol("_load"), ke = Symbol("_unload"), Ie = Symbol("routerGuardKey"), Ui = Symbol.for("loadViewModel");
2095
- function wi(e) {
2094
+ var Xe = /* @__PURE__ */ Symbol("_constructRouteModel"), Qe = /* @__PURE__ */ Symbol("_findRouteModel"), Ct = /* @__PURE__ */ Symbol("_findRootView"), gi = /* @__PURE__ */ Symbol("_getFirstView"), ae = /* @__PURE__ */ Symbol("_removeView"), wr = /* @__PURE__ */ Symbol("_buildPage"), Rr = /* @__PURE__ */ Symbol("_resolveComponent"), Sr = /* @__PURE__ */ Symbol("_update"), ie = /* @__PURE__ */ Symbol("_merge"), Ft = /* @__PURE__ */ Symbol("_handleHistoryChange"), ue = /* @__PURE__ */ Symbol("_handleRouteUpdated"), Ze = /* @__PURE__ */ Symbol("routeUpdatedCallback"), At = /* @__PURE__ */ Symbol("currentRoute"), p = /* @__PURE__ */ Symbol("currentRoutes"), Ye = /* @__PURE__ */ Symbol("routeSessionCacheKey"), xr = /* @__PURE__ */ Symbol("_addRouteRecorder"), je = /* @__PURE__ */ Symbol("_removeRouteRecorder"), et = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), K = /* @__PURE__ */ Symbol("_handleError"), tt = /* @__PURE__ */ Symbol("errorCallback"), D = /* @__PURE__ */ Symbol("registerKey"), rt = /* @__PURE__ */ Symbol("notFoundKey"), qt = /* @__PURE__ */ Symbol("notFoundPathKey"), V = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), Le = /* @__PURE__ */ Symbol("beforeFiltersKey"), Te = /* @__PURE__ */ Symbol("afterFiltersKey"), ke = /* @__PURE__ */ Symbol("destroyFiltersKey"), Kt = /* @__PURE__ */ Symbol("propsFilterKey"), Re = /* @__PURE__ */ Symbol("mainDispatcherKey"), $t = /* @__PURE__ */ Symbol("initKey"), fe = /* @__PURE__ */ Symbol("readyKey"), jt = /* @__PURE__ */ Symbol("readyHandlersKey"), st = /* @__PURE__ */ Symbol("_markReady"), Pr = /* @__PURE__ */ Symbol("_createNextFn"), Lt = /* @__PURE__ */ Symbol("_start"), Tt = /* @__PURE__ */ Symbol("_before"), kt = /* @__PURE__ */ Symbol("_after"), Er = /* @__PURE__ */ Symbol("_destroy"), Mt = /* @__PURE__ */ Symbol("_load"), Me = /* @__PURE__ */ Symbol("_unload"), Ie = /* @__PURE__ */ Symbol("routerGuardKey");
2095
+ function bi(e) {
2096
2096
  return e.layers.length == 0 || e.layers[0].views.length == 0;
2097
2097
  }
2098
- var bi = class {
2098
+ var wi = class {
2099
2099
  [D] = new Array();
2100
2100
  [rt];
2101
- [Kt] = "*";
2101
+ [qt] = "*";
2102
2102
  [fe] = !1;
2103
2103
  [jt] = [];
2104
2104
  [V] = new Ys();
@@ -2108,13 +2108,13 @@ var bi = class {
2108
2108
  [Ye] = /* @__PURE__ */ new WeakMap();
2109
2109
  [tt] = null;
2110
2110
  [Ze] = null;
2111
- [Me] = new Array();
2112
2111
  [Le] = new Array();
2113
2112
  [Te] = new Array();
2114
- [$t] = null;
2113
+ [ke] = new Array();
2114
+ [Kt] = null;
2115
2115
  [Re] = new ft();
2116
2116
  [Ie] = new di();
2117
- [qt] = !1;
2117
+ [$t] = !1;
2118
2118
  get currentRoute() {
2119
2119
  return fs(this[At]);
2120
2120
  }
@@ -2135,7 +2135,7 @@ var bi = class {
2135
2135
  this[fe] === !1 && this[st](s);
2136
2136
  });
2137
2137
  }
2138
- [$](e = "error", t) {
2138
+ [K](e = "error", t) {
2139
2139
  if (t && typeof t.error == "function") try {
2140
2140
  t.error(e);
2141
2141
  } catch {
@@ -2147,7 +2147,7 @@ var bi = class {
2147
2147
  console.error(e);
2148
2148
  }
2149
2149
  init() {
2150
- this[qt] !== !0 && (this[S]?.init(!this[fe]), this[qt] = !0);
2150
+ this[$t] !== !0 && (this[S]?.init(!this[fe]), this[$t] = !0);
2151
2151
  }
2152
2152
  isReady() {
2153
2153
  return this[fe] ? Promise.resolve() : new Promise((e, t) => {
@@ -2167,7 +2167,7 @@ var bi = class {
2167
2167
  try {
2168
2168
  if (!e) {
2169
2169
  let n = [...this[p]].reverse();
2170
- return this[ke](n), Pe && F().location.reload(), Promise.resolve();
2170
+ return this[Me](n), Pe && F().location.reload(), Promise.resolve();
2171
2171
  }
2172
2172
  let t = null, r = [], s = [], i = 0;
2173
2173
  for (; i < e.length && i < this[p].length && x.isSame(e[i], this[p][i]); i++)
@@ -2175,13 +2175,13 @@ var bi = class {
2175
2175
  if (i < e.length && (r = e.slice(i)), i < this[p].length && (s = this[p].slice(i).reverse()), s.length === 0 && r.length === 0) {
2176
2176
  if (t !== null) return this.restore([t]);
2177
2177
  } else if (s.length > 0) {
2178
- if (this[ke](s)) {
2178
+ if (this[Me](s)) {
2179
2179
  if (r.length > 0) return this.restore(r);
2180
2180
  if (t !== null) return this.restore([t]);
2181
2181
  }
2182
2182
  } else return this.restore(r);
2183
2183
  } catch (t) {
2184
- this[$](t);
2184
+ this[K](t);
2185
2185
  }
2186
2186
  return Promise.resolve();
2187
2187
  }
@@ -2250,10 +2250,10 @@ var bi = class {
2250
2250
  return this[S] ? this[S].traceless : !1;
2251
2251
  }
2252
2252
  set propsFilter(e) {
2253
- this[$t] = e;
2253
+ this[Kt] = e;
2254
2254
  }
2255
2255
  get propsFilter() {
2256
- return this[$t];
2256
+ return this[Kt];
2257
2257
  }
2258
2258
  setRestorePoint() {
2259
2259
  const e = this[et]();
@@ -2266,25 +2266,25 @@ var bi = class {
2266
2266
  this[tt] = e;
2267
2267
  }
2268
2268
  beforeEach(e) {
2269
- this[Me].push(e);
2269
+ this[Le].push(e);
2270
2270
  }
2271
2271
  removeBeforeEach(e) {
2272
- const t = this[Me].indexOf(e);
2273
- return t !== -1 ? (this[Me].splice(t, 1), !0) : !1;
2272
+ const t = this[Le].indexOf(e);
2273
+ return t !== -1 ? (this[Le].splice(t, 1), !0) : !1;
2274
2274
  }
2275
2275
  afterEach(e) {
2276
- this[Le].push(e);
2276
+ this[Te].push(e);
2277
2277
  }
2278
2278
  removeAfterEach(e) {
2279
- const t = this[Le].indexOf(e);
2280
- return t !== -1 ? (this[Le].splice(t, 1), !0) : !1;
2279
+ const t = this[Te].indexOf(e);
2280
+ return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
2281
2281
  }
2282
2282
  destroyEach(e) {
2283
- this[Te].push(e);
2283
+ this[ke].push(e);
2284
2284
  }
2285
2285
  removeDestroyEach(e) {
2286
- const t = this[Te].indexOf(e);
2287
- return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
2286
+ const t = this[ke].indexOf(e);
2287
+ return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
2288
2288
  }
2289
2289
  beforeRestoreEach(e) {
2290
2290
  this[S]?.beforeRestoreEach(e);
@@ -2296,7 +2296,7 @@ var bi = class {
2296
2296
  for (let t of e) this.addRoute(t);
2297
2297
  }
2298
2298
  addRoute(e, t = -1) {
2299
- if (e.path === this[Kt]) {
2299
+ if (e.path === this[qt]) {
2300
2300
  this.setNotFoundRoute(e);
2301
2301
  return;
2302
2302
  }
@@ -2324,7 +2324,7 @@ var bi = class {
2324
2324
  }) !== -1;
2325
2325
  }
2326
2326
  setNotFoundPath(e) {
2327
- this[Kt] = e;
2327
+ this[qt] = e;
2328
2328
  }
2329
2329
  setNotFoundRoute(e) {
2330
2330
  this[rt] = this[Xe](e)[0];
@@ -2379,14 +2379,14 @@ var bi = class {
2379
2379
  if (!a) continue;
2380
2380
  if (r.redirect) {
2381
2381
  const l = new x();
2382
- q(!0, l, t), l.path = r.redirect;
2382
+ $(!0, l, t), l.path = r.redirect;
2383
2383
  const o = {
2384
2384
  route: l,
2385
2385
  find: void 0
2386
2386
  };
2387
2387
  return this[Qe](o) ? (e.route = o.route, e.find = o.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
2388
2388
  }
2389
- if (t.params = t.params ?? {}, q(!0, t.params, a.params), t.query) {
2389
+ if (t.params = t.params ?? {}, $(!0, t.params, a.params), t.query) {
2390
2390
  const l = t.query;
2391
2391
  if (typeof l == "string") {
2392
2392
  const o = {}, u = l.split("&");
@@ -2396,8 +2396,8 @@ var bi = class {
2396
2396
  const h = decodeURIComponent(c[0].trim());
2397
2397
  o[h] = decodeURIComponent(c[1].trim());
2398
2398
  }
2399
- q(!0, t.params, o);
2400
- } else typeof l == "object" && q(!0, t.params, l);
2399
+ $(!0, t.params, o);
2400
+ } else typeof l == "object" && $(!0, t.params, l);
2401
2401
  }
2402
2402
  return e.find = r, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0;
2403
2403
  } else if (i === r.name)
@@ -2412,7 +2412,7 @@ var bi = class {
2412
2412
  let t = null;
2413
2413
  if (Array.isArray(e))
2414
2414
  if (t = new x(), typeof e[0] == "object") t = x.from(e[0]);
2415
- else for (let r = 0; r < e.length; r++) r === 0 ? e[r].charAt(0) === "/" ? t.path = e[r] : t.name = e[r] : r === 1 ? t.params = e[r] : r === 2 ? t.root = e[r] : r === 3 && q(!1, t, e[r]);
2415
+ else for (let r = 0; r < e.length; r++) r === 0 ? e[r].charAt(0) === "/" ? t.path = e[r] : t.name = e[r] : r === 1 ? t.params = e[r] : r === 2 ? t.root = e[r] : r === 3 && $(!1, t, e[r]);
2416
2416
  else typeof e == "object" ? t = x.from(e) : typeof e == "string" && (t = new x(), e.charAt(0) == "/" ? t.path = e : t.name = e);
2417
2417
  if (t) {
2418
2418
  if (t.path) {
@@ -2425,19 +2425,19 @@ var bi = class {
2425
2425
  }
2426
2426
  push(...e) {
2427
2427
  const t = this[I](e);
2428
- return t ? (t.opsType = C.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
2428
+ return t ? (t.opsType = C.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[K]("resolve route fail", t), this);
2429
2429
  }
2430
2430
  put(...e) {
2431
2431
  const t = this[I](e);
2432
- return t ? (t.opsType = C.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[$]("resolve route fail", t), this);
2432
+ return t ? (t.opsType = C.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[K]("resolve route fail", t), this);
2433
2433
  }
2434
2434
  replace(...e) {
2435
2435
  const t = this[I](e);
2436
- return t ? (t.opsType = C.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[$]("resolve route fail", t), this);
2436
+ return t ? (t.opsType = C.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[K]("resolve route fail", t), this);
2437
2437
  }
2438
2438
  append(...e) {
2439
2439
  const t = this[I](e);
2440
- return t ? (t.opsType = C.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
2440
+ return t ? (t.opsType = C.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[K]("resolve route fail", t), this);
2441
2441
  }
2442
2442
  remove(e, t) {
2443
2443
  return new Promise((r) => {
@@ -2497,7 +2497,7 @@ var bi = class {
2497
2497
  return;
2498
2498
  }
2499
2499
  let l = null;
2500
- if (i !== -1 && (l = this[p][i]), this[ke](a)) {
2500
+ if (i !== -1 && (l = this[p][i]), this[Me](a)) {
2501
2501
  if (t === !1)
2502
2502
  return s.resolve(), r(!0), !0;
2503
2503
  const o = () => (s.resolve(), r(!0), !0), u = this[p].length;
@@ -2508,14 +2508,14 @@ var bi = class {
2508
2508
  o();
2509
2509
  }
2510
2510
  } catch (i) {
2511
- this[$](i), s.resolve(), r(!1);
2511
+ this[K](i), s.resolve(), r(!1);
2512
2512
  }
2513
2513
  });
2514
2514
  });
2515
2515
  }
2516
2516
  open(...e) {
2517
2517
  let t = this[I](e);
2518
- return t ? (t.opsType = C.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
2518
+ return t ? (t.opsType = C.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[K]("resolve route fail", t), this);
2519
2519
  }
2520
2520
  close(e) {
2521
2521
  return this[Re].post((t) => {
@@ -2546,21 +2546,21 @@ var bi = class {
2546
2546
  t.resolve();
2547
2547
  return;
2548
2548
  }
2549
- this[ke](s), t.resolve();
2549
+ this[Me](s), t.resolve();
2550
2550
  } catch (r) {
2551
- this[$](r), t.resolve();
2551
+ this[K](r), t.resolve();
2552
2552
  }
2553
2553
  }), this;
2554
2554
  }
2555
2555
  to(...e) {
2556
2556
  let t = this[I](e);
2557
2557
  if (!t)
2558
- return this[$]("resolve route fail", t), this;
2558
+ return this[K]("resolve route fail", t), this;
2559
2559
  let r = this[Ie].acquire(t);
2560
- return r == null ? (this[$]("route forbid", t), this) : (this[Re].post((s) => {
2560
+ return r == null ? (this[K]("route forbid", t), this) : (this[Re].post((s) => {
2561
2561
  try {
2562
- let i = this[Mt](t);
2563
- this[Lt](i), this[kt](i), this[Tt](i), i.wait((n, a) => {
2562
+ let i = this[Lt](t);
2563
+ this[Tt](i), this[Mt](i), this[kt](i), i.wait((n, a) => {
2564
2564
  const l = n.session.to;
2565
2565
  if (n.session.updateResult && n.session.updateResult.status === "success") try {
2566
2566
  const o = new mr(x.clone(l, !0), this[et]());
@@ -2575,10 +2575,10 @@ var bi = class {
2575
2575
  }
2576
2576
  this[fe] === !1 && this[st](!0), i = null, s.resolve();
2577
2577
  }, (n, a) => {
2578
- this[Ie].release(r), a !== null && this[$](a, t), this[fe] === !1 && this[st](!1), We.clear(n.session), i = null, s.resolve();
2578
+ this[Ie].release(r), a !== null && this[K](a, t), this[fe] === !1 && this[st](!1), We.clear(n.session), i = null, s.resolve();
2579
2579
  });
2580
2580
  } catch (i) {
2581
- this[Ie].release(r), this[$](i, t), s.resolve();
2581
+ this[Ie].release(r), this[K](i, t), s.resolve();
2582
2582
  }
2583
2583
  }), this);
2584
2584
  }
@@ -2600,7 +2600,7 @@ var bi = class {
2600
2600
  e.session.redirect = !1, e.resolve();
2601
2601
  };
2602
2602
  }
2603
- [Mt](e) {
2603
+ [Lt](e) {
2604
2604
  const t = new We(e, this[p].length > 0 ? this[p][this[p].length - 1] : void 0), r = {
2605
2605
  route: e,
2606
2606
  find: null
@@ -2616,8 +2616,8 @@ var bi = class {
2616
2616
  }
2617
2617
  return new ft(t);
2618
2618
  }
2619
- [Lt](e) {
2620
- for (let t of this[Me]) e.post((r) => {
2619
+ [Tt](e) {
2620
+ for (let t of this[Le]) e.post((r) => {
2621
2621
  const s = this[Pr](r);
2622
2622
  Reflect.apply(t, {}, [
2623
2623
  r.session.to,
@@ -2627,9 +2627,9 @@ var bi = class {
2627
2627
  ]);
2628
2628
  });
2629
2629
  }
2630
- [Tt](e) {
2630
+ [kt](e) {
2631
2631
  e.post((t) => {
2632
- for (let r of this[Le]) try {
2632
+ for (let r of this[Te]) try {
2633
2633
  Reflect.apply(r, {}, [
2634
2634
  t.session.to,
2635
2635
  t.session.from,
@@ -2642,14 +2642,14 @@ var bi = class {
2642
2642
  });
2643
2643
  }
2644
2644
  [Er](e, t) {
2645
- for (let r of this[Te]) try {
2645
+ for (let r of this[ke]) try {
2646
2646
  Reflect.apply(r, {}, [e, t]);
2647
2647
  } catch (s) {
2648
2648
  console.error(s.message, s);
2649
2649
  }
2650
2650
  typeof e.destroy == "function" && Reflect.apply(e.destroy, e, []);
2651
2651
  }
2652
- [kt](e) {
2652
+ [Mt](e) {
2653
2653
  e.post((t) => {
2654
2654
  const r = t.session.to;
2655
2655
  let s = t.session.routeModel;
@@ -2666,7 +2666,7 @@ var bi = class {
2666
2666
  }
2667
2667
  }
2668
2668
  const i = We.from(t.session);
2669
- this[br](r, s, i).then((n) => {
2669
+ this[wr](r, s, i).then((n) => {
2670
2670
  this[V], t.session.updateResult = n ?? {
2671
2671
  status: "success",
2672
2672
  message: ""
@@ -2676,7 +2676,7 @@ var bi = class {
2676
2676
  });
2677
2677
  });
2678
2678
  }
2679
- [ke](e) {
2679
+ [Me](e) {
2680
2680
  if (e.length == 0) return !0;
2681
2681
  let t = this[V], r = [];
2682
2682
  for (let s of e) {
@@ -2687,7 +2687,7 @@ var bi = class {
2687
2687
  });
2688
2688
  }
2689
2689
  if (r.length == 0)
2690
- return this[$]("can not find view index"), !1;
2690
+ return this[K]("can not find view index"), !1;
2691
2691
  for (let s of r.reverse()) this[ae](t, {
2692
2692
  x: s.x,
2693
2693
  y: s.y
@@ -2737,8 +2737,8 @@ var bi = class {
2737
2737
  if (y[he] && (n || O.include(a, y[he]))) {
2738
2738
  let d = y.slots.value;
2739
2739
  for (let m = d.length - 1; m >= 0; m--) {
2740
- let w = d[m];
2741
- w.route && y[z] && this[je](w.route), c.push(new O(y, w.index, u)), d.splice(m, 1);
2740
+ let b = d[m];
2741
+ b.route && y[z] && this[je](b.route), c.push(new O(y, b.index, u)), d.splice(m, 1);
2742
2742
  }
2743
2743
  e.layers[u].views.splice(h, 1);
2744
2744
  }
@@ -2759,11 +2759,11 @@ var bi = class {
2759
2759
  for (let n = 0; n < e.length; n++) {
2760
2760
  const a = e[n];
2761
2761
  this[Re].post((l) => {
2762
- const o = this[Mt](a);
2763
- this[Lt](o), this[kt](o), this[Tt](o), o.wait((u, f) => {
2762
+ const o = this[Lt](a);
2763
+ this[Tt](o), this[Mt](o), this[kt](o), o.wait((u, f) => {
2764
2764
  s = u.session.to, i = u.session.redirect, l.resolve();
2765
2765
  }, (u, f) => {
2766
- s = null, f !== null && this[$](f), l.resolve();
2766
+ s = null, f !== null && this[K](f), l.resolve();
2767
2767
  });
2768
2768
  });
2769
2769
  }
@@ -2776,7 +2776,7 @@ var bi = class {
2776
2776
  });
2777
2777
  });
2778
2778
  }
2779
- [br](e, t, r) {
2779
+ [wr](e, t, r) {
2780
2780
  const s = e.updateType ?? Pt.Part;
2781
2781
  return this[Rr](t).then(() => {
2782
2782
  const i = this[Sr](t, e, r, s);
@@ -2801,7 +2801,7 @@ var bi = class {
2801
2801
  message: "illegal route structure(multi root node)"
2802
2802
  };
2803
2803
  const i = e.layers[0].models[0];
2804
- let n = this[V], a = wi(n), l = t.root ?? "default", o;
2804
+ let n = this[V], a = bi(n), l = t.root ?? "default", o;
2805
2805
  !a && s == Pt.Part && (o = this[Ct](n, t));
2806
2806
  let u, f = 0;
2807
2807
  if (o == null || o == null) if (a || s === Pt.All)
@@ -2848,8 +2848,8 @@ var bi = class {
2848
2848
  t.index = t.index ?? Oe.get(), t.active = !0;
2849
2849
  let c = u.slots.value;
2850
2850
  if (c.length > 0) {
2851
- let w = c[c.length - 1];
2852
- w.active = !1, w.route && (w.route.active = w.active);
2851
+ let b = c[c.length - 1];
2852
+ b.active = !1, b.route && (b.route.active = b.active);
2853
2853
  }
2854
2854
  let h = new re(t, i, t.index, !0);
2855
2855
  u.slots.value = [...c, h];
@@ -2874,8 +2874,8 @@ var bi = class {
2874
2874
  t.index = t.index ?? Oe.get(), t.active = h;
2875
2875
  let d = new re(t, i, t.index, h);
2876
2876
  c.push(d);
2877
- let m = f + 1, w = 1, g = new O(u, t.index, f);
2878
- this[ie](n, m, e, w, g);
2877
+ let m = f + 1, b = 1, g = new O(u, t.index, f);
2878
+ this[ie](n, m, e, b, g);
2879
2879
  }
2880
2880
  u.slots.value = [...c];
2881
2881
  } else {
@@ -2896,56 +2896,56 @@ var bi = class {
2896
2896
  const d = t.active ?? !0;
2897
2897
  h.active !== d && (h.active = d, y = !0), t.active = d, t.index = h.index, h.route = t;
2898
2898
  let m = [];
2899
- for (let M = 1; M < c.length; M++) m.push(c[M].index);
2899
+ for (let L = 1; L < c.length; L++) m.push(c[L].index);
2900
2900
  m.length > 0 ? this[ae](n, o, m, !0) : y && (u.slots.value = [...c]);
2901
- let w = [new O(u, t.index, f)], g = f + 1, v = 1, j = new O(u, t.index, f);
2902
- for (; w.length > 0 && g < n.layers.length && v < e.layers.length; g++, v++) {
2903
- let M = [];
2904
- for (let L = 0; L < n.layers[g].views.length; L++) {
2905
- let K = n.layers[g].views[L];
2906
- K[he] && O.include(w, K[he]) && M.unshift(L);
2901
+ let b = [new O(u, t.index, f)], g = f + 1, v = 1, j = new O(u, t.index, f);
2902
+ for (; b.length > 0 && g < n.layers.length && v < e.layers.length; g++, v++) {
2903
+ let L = [];
2904
+ for (let T = 0; T < n.layers[g].views.length; T++) {
2905
+ let q = n.layers[g].views[T];
2906
+ q[he] && O.include(b, q[he]) && L.unshift(T);
2907
2907
  }
2908
2908
  let _e = [];
2909
- for (let L of M) {
2910
- let K = n.layers[g].views[L], ne = e.layers[v].models, ee;
2911
- for (let T = 0; T < ne.length; T++) if (K.name === ne[T].name) {
2912
- ee = ne[T];
2909
+ for (let T of L) {
2910
+ let q = n.layers[g].views[T], ne = e.layers[v].models, ee;
2911
+ for (let k = 0; k < ne.length; k++) if (q.name === ne[k].name) {
2912
+ ee = ne[k];
2913
2913
  break;
2914
2914
  }
2915
2915
  if (!ee) this[ae](n, {
2916
- x: L,
2916
+ x: T,
2917
2917
  y: g
2918
2918
  }, null, !1);
2919
2919
  else {
2920
- let T = K.slots.value;
2921
- if (T.length == 0) {
2920
+ let k = q.slots.value;
2921
+ if (k.length == 0) {
2922
2922
  let Q = 0;
2923
- K.slots.value = [new re(null, ee, Q)];
2923
+ q.slots.value = [new re(null, ee, Q)];
2924
2924
  let N = g + 1, U = v + 1;
2925
2925
  this[ie](n, N, e, U, j);
2926
2926
  } else {
2927
- let Q = T[0];
2927
+ let Q = k[0];
2928
2928
  if (Q.model !== ee) {
2929
2929
  this[ae](n, {
2930
- x: L,
2930
+ x: T,
2931
2931
  y: g
2932
- }, null, !0), K.slots.value = [new re(null, ee, 0)];
2932
+ }, null, !0), q.slots.value = [new re(null, ee, 0)];
2933
2933
  let N = g + 1, U = v + 1;
2934
2934
  this[ie](n, N, e, U, j);
2935
2935
  } else {
2936
- K[z] && Q.route !== null && this[je](Q.route);
2936
+ q[z] && Q.route !== null && this[je](Q.route);
2937
2937
  let N = [];
2938
- for (let U = 1; U < T.length; U++) N.push(T[U].index);
2938
+ for (let U = 1; U < k.length; U++) N.push(k[U].index);
2939
2939
  N.length > 0 && this[ae](n, {
2940
- x: L,
2940
+ x: T,
2941
2941
  y: g
2942
- }, N, !0), _e.push(new O(K, Q.index, g));
2942
+ }, N, !0), _e.push(new O(q, Q.index, g));
2943
2943
  }
2944
2944
  }
2945
- K[z] = !1;
2945
+ q[z] = !1;
2946
2946
  }
2947
2947
  }
2948
- w = _e;
2948
+ b = _e;
2949
2949
  }
2950
2950
  this[ie](n, g, e, v, j);
2951
2951
  }
@@ -3013,7 +3013,7 @@ var bi = class {
3013
3013
  } else this[V].layers[t].views.push(o);
3014
3014
  return o;
3015
3015
  }
3016
- }, Ri = "fox-router-view", Si = "fox-router-link", H = /* @__PURE__ */ (function(e) {
3016
+ }, Ri = "FoxRouterView", Si = "FoxRouterLink", H = /* @__PURE__ */ (function(e) {
3017
3017
  return e[e.Loading = 0] = "Loading", e[e.Loaded = 1] = "Loaded", e[e.Defining = 2] = "Defining", e[e.Defined = 3] = "Defined", e;
3018
3018
  })({});
3019
3019
  function xi(e) {
@@ -3301,21 +3301,25 @@ var Cr = class {
3301
3301
  }, l.onerror = () => {
3302
3302
  try {
3303
3303
  r.removeChild(l);
3304
- } catch (c) {
3305
- console.error(c);
3304
+ } catch (h) {
3305
+ console.error(h);
3306
3306
  }
3307
3307
  l.onload = null, l.onerror = null, this.moduleManager.remove(i.path), t.progress.work(!1, t.index, null), s.resolve();
3308
3308
  };
3309
3309
  else {
3310
- const c = l;
3311
- c.onreadystatechange = () => {
3312
- /loaded|complete/.test(c.readyState) && (c.onreadystatechange = null, a.status == H.Loading && (a.status = H.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve());
3310
+ const h = l;
3311
+ h.onreadystatechange = () => {
3312
+ /loaded|complete/.test(h.readyState) && (h.onreadystatechange = null, a.status == H.Loading && (a.status = H.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve());
3313
3313
  };
3314
3314
  }
3315
3315
  const o = this.constructResourceUri(i.path);
3316
3316
  l.defer = !0, l.src = o;
3317
3317
  const u = F(), f = this.createRequireLoad();
3318
- u.require = f, u.define = this.createDefine(a, f, t), r.appendChild(l);
3318
+ u.__require = u.__require ?? u.require, u.require = f;
3319
+ const c = this.createDefine(a, f, t);
3320
+ u.__define = u.__define ?? u.define, u.define = c, typeof t.progress.finalCallback != "function" && (t.progress.finalCallback = function() {
3321
+ u.require = u.__require, u.__require = void 0, u.define = u.__define, u.__define = void 0;
3322
+ }), r.appendChild(l);
3319
3323
  });
3320
3324
  }
3321
3325
  mountCJS(e, t) {
@@ -3423,6 +3427,7 @@ var Cr = class {
3423
3427
  return r == -1 ? "" : e.substring(r + 1, t);
3424
3428
  }
3425
3429
  }, _i = class {
3430
+ finalCallback;
3426
3431
  callback;
3427
3432
  values;
3428
3433
  status;
@@ -3436,6 +3441,8 @@ var Cr = class {
3436
3441
  Reflect.apply(this.callback, this, [this.status, this.values]);
3437
3442
  } catch (s) {
3438
3443
  console.error(s.message, s);
3444
+ } finally {
3445
+ typeof this.finalCallback == "function" && (Reflect.apply(this.finalCallback, null, []), this.finalCallback = null);
3439
3446
  }
3440
3447
  }
3441
3448
  isOK() {
@@ -3448,9 +3455,9 @@ var Cr = class {
3448
3455
  constructor(e, t, r) {
3449
3456
  this.index = e, this.resource = t, this.progress = r;
3450
3457
  }
3451
- }, is = Symbol("fk"), ns = Symbol("fbk"), os = Symbol("fepk");
3452
- function Vi(e = {}) {
3453
- const t = new bi(e), r = new nr(), s = new yr(), i = new Cr(), n = {
3458
+ }, is = /* @__PURE__ */ Symbol("fk"), ns = /* @__PURE__ */ Symbol("fbk"), os = /* @__PURE__ */ Symbol("fepk");
3459
+ function Ui(e = {}) {
3460
+ const t = new wi(e), r = new nr(), s = new yr(), i = new Cr(), n = {
3454
3461
  get router() {
3455
3462
  return t;
3456
3463
  },
@@ -3514,19 +3521,19 @@ function Vi(e = {}) {
3514
3521
  function ls(e) {
3515
3522
  return e ? e.$router : G(ht);
3516
3523
  }
3517
- function Wi(e) {
3524
+ function Vi(e) {
3518
3525
  return e || (e = Vt()?.proxy ?? void 0), e ? Zt(e) : null;
3519
3526
  }
3520
- function Ji(e) {
3527
+ function Wi(e) {
3521
3528
  return e ? e.$fox : G(is);
3522
3529
  }
3523
- function zi(e) {
3530
+ function Ji(e) {
3524
3531
  return e ? e.$bus : G(ns);
3525
3532
  }
3526
- function Gi(e) {
3533
+ function zi(e) {
3527
3534
  return e ? e.$eventProxy : G(os);
3528
3535
  }
3529
- function Xi(e) {
3536
+ function Gi(e) {
3530
3537
  const t = ls(), r = (s, i, n) => {
3531
3538
  try {
3532
3539
  Reflect.apply(e, {}, [s, i]);
@@ -3539,7 +3546,7 @@ function Xi(e) {
3539
3546
  t.removeBeforeEach(r);
3540
3547
  });
3541
3548
  }
3542
- function Qi(e) {
3549
+ function Xi(e) {
3543
3550
  const t = ls(), r = (s, i, n) => {
3544
3551
  try {
3545
3552
  Reflect.apply(e, {}, [s, i]);
@@ -3556,54 +3563,54 @@ export {
3556
3563
  nr as Bus,
3557
3564
  ft as EventChain,
3558
3565
  yr as EventProxy,
3559
- Ks as FoxBeforeEnter,
3560
- qs as FoxBeforeLeave,
3561
- $s as FoxEnter,
3566
+ qs as FoxBeforeEnter,
3567
+ $s as FoxBeforeLeave,
3568
+ Ks as FoxEnter,
3562
3569
  js as FoxLeave,
3563
3570
  Ht as FoxLeaveEnd,
3564
3571
  C as OperationType,
3565
3572
  x as Route,
3566
3573
  ii as RouterLink,
3567
3574
  Ut as RouterView,
3568
- Vi as createFox,
3575
+ Ui as createFox,
3569
3576
  pi as createMemoryHistory,
3570
3577
  mi as createWebHashHistory,
3571
3578
  Ni as createWebHistory,
3572
3579
  Bi as deleteContextValue,
3573
- q as extend,
3580
+ $ as extend,
3574
3581
  ns as foxBusKey,
3575
3582
  os as foxEventProxyKey,
3576
3583
  is as foxKey,
3577
3584
  Nr as injectContextValue,
3578
3585
  er as isArray,
3579
- $i as isDate,
3586
+ Ki as isDate,
3580
3587
  zt as isESModule,
3581
3588
  rr as isEqual,
3582
- b as isFunction,
3589
+ w as isFunction,
3583
3590
  Ai as isMap,
3584
3591
  He as isNil,
3585
3592
  ds as isObject,
3586
3593
  vs as isPlainObject,
3587
- Mi as isPromise,
3588
- Ki as isSet,
3589
- qi as isString,
3594
+ Li as isPromise,
3595
+ qi as isSet,
3596
+ $i as isString,
3590
3597
  ji as isSymbol,
3591
- Qi as onAfterRouteUpdate,
3592
- Xi as onBeforeRouteUpdate,
3598
+ Xi as onAfterRouteUpdate,
3599
+ Gi as onBeforeRouteUpdate,
3593
3600
  Di as onFoxActivated,
3594
3601
  Hi as onFoxInactivated,
3595
3602
  Oi as provideContextValue,
3596
3603
  Ii as rawState,
3597
- Ti as reactiveState,
3604
+ ki as reactiveState,
3598
3605
  oe as sessionKey,
3599
- ki as shallowReactiveState,
3600
- $r as toBoolean,
3601
- Li as toNumber,
3606
+ Mi as shallowReactiveState,
3607
+ Kr as toBoolean,
3608
+ Ti as toNumber,
3602
3609
  Jt as toTypeString,
3603
3610
  tr as typeOf,
3604
- zi as useBus,
3605
- Gi as useEventProxy,
3606
- Ji as useFox,
3607
- Wi as useRoute,
3611
+ Ji as useBus,
3612
+ zi as useEventProxy,
3613
+ Wi as useFox,
3614
+ Vi as useRoute,
3608
3615
  ls as useRouter
3609
3616
  };