@fox-js/fox 3.1.1-27 → 3.1.1-29

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
@@ -1,4 +1,4 @@
1
- import { defineComponent as jr, effectScope as fs, getCurrentScope as Kr, h as he, hasInjectionContext as _e, inject as N, onActivated as cs, onDeactivated as hs, onScopeDispose as Fe, provide as te, reactive as ys, readonly as ds, ref as ms, shallowReactive as vs, shallowRef as Lr, toRaw as Ht, watch as ps } from "vue";
1
+ import { defineComponent as jr, effectScope as fs, getCurrentScope as Kr, h as he, hasInjectionContext as _e, inject as N, onActivated as cs, onDeactivated as hs, onScopeDispose as Fe, provide as te, reactive as ys, readonly as ds, ref as ms, shallowReactive as ps, shallowRef as Lr, toRaw as Ht, watch as vs } from "vue";
2
2
  var Ee = typeof window < "u", C = function() {
3
3
  return window;
4
4
  }, Je = function() {
@@ -7,7 +7,7 @@ var Ee = typeof window < "u", C = function() {
7
7
  function ft(e, t, r, s = !1) {
8
8
  e.addEventListener ? e.addEventListener(t, r, s) : e.attachEvent ? e.attachEvent(`on${t}`, r) : e[`on${t}`] = r;
9
9
  }
10
- function Zt(e, t, r) {
10
+ function Qt(e, t, r) {
11
11
  e.removeEventListener ? e.removeEventListener(t, r) : e.detachEvent ? e.detachEvent(`on${t}`, r) : e[`on${t}`] = null;
12
12
  }
13
13
  var ze = (e, t, r) => {
@@ -20,8 +20,8 @@ var ze = (e, t, r) => {
20
20
  let i = !0, n = !0;
21
21
  for (let o in t) o === "bubbles" ? i = !!t[o] : o === "cancelable" ? n = !!t[o] : s[o] = t[o];
22
22
  s.initEvent(e, i, n), (r ?? document).dispatchEvent(s);
23
- }, or = Array.isArray, Ki = (e) => Yt(e) === "[object Map]", Li = (e) => Yt(e) === "[object Set]", Mi = (e) => e instanceof Date, w = (e) => typeof e == "function", ki = (e) => typeof e == "string", Ti = (e) => typeof e == "symbol", gs = (e) => e !== null && typeof e == "object", Ii = (e) => gs(e) && w(e.then) && w(e.catch), We = (e) => e == null, bs = Object.prototype.toString, Yt = (e) => bs.call(e), ws = (e) => Yt(e) === "[object Object]", Rs = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
24
- function er(e) {
23
+ }, nr = Array.isArray, Li = (e) => Zt(e) === "[object Map]", Mi = (e) => Zt(e) === "[object Set]", Ti = (e) => e instanceof Date, w = (e) => typeof e == "function", ki = (e) => typeof e == "string", Ii = (e) => typeof e == "symbol", gs = (e) => e !== null && typeof e == "object", Oi = (e) => gs(e) && w(e.then) && w(e.catch), We = (e) => e == null, bs = Object.prototype.toString, Zt = (e) => bs.call(e), ws = (e) => Zt(e) === "[object Object]", Rs = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
24
+ function Yt(e) {
25
25
  return e.__esModule || Rs && e[Symbol.toStringTag] === "Module";
26
26
  }
27
27
  var xs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
@@ -70,10 +70,10 @@ function He(e, ...t) {
70
70
  e(t);
71
71
  }) : setTimeout(e);
72
72
  }
73
- function kr(e) {
73
+ function Tr(e) {
74
74
  return e == null ? !1 : typeof e == "boolean" ? e : typeof e == "string" ? e.toLocaleLowerCase() === "true" : !!e;
75
75
  }
76
- function Oi(e) {
76
+ function Bi(e) {
77
77
  return typeof e == "number" ? e : Number(e);
78
78
  }
79
79
  var Ss = {
@@ -86,38 +86,38 @@ var Ss = {
86
86
  "[object RegExp]": "regExp",
87
87
  "[object Object]": "object"
88
88
  };
89
- function lr(e) {
89
+ function or(e) {
90
90
  let t = Object.prototype.toString.call(e);
91
91
  return e == null ? String(e) : Ss[t] || "object";
92
92
  }
93
- function ar(e, t) {
93
+ function lr(e, t) {
94
94
  if (e == t) return !0;
95
95
  if (e === void 0 || t === void 0) return !1;
96
- let r = lr(e);
97
- if (r !== lr(t)) return !1;
96
+ let r = or(e);
97
+ if (r !== or(t)) return !1;
98
98
  if (r === "object") {
99
99
  let s = Object.keys(e), i = Object.keys(t);
100
100
  if (s.length !== i.length) return !1;
101
101
  for (let n = 0; n < s.length; n++) {
102
102
  let o = s[n], l = e[o], a = t[o];
103
- if (!ar(l, a)) return !1;
103
+ if (!lr(l, a)) return !1;
104
104
  }
105
105
  return !0;
106
106
  } else if (r === "array") {
107
107
  if (e.length !== t.length) return !1;
108
108
  for (let s = 0; s < e.length; s++) {
109
109
  let i = e[s], n = t[s];
110
- if (!ar(i, n)) return !1;
110
+ if (!lr(i, n)) return !1;
111
111
  }
112
112
  return !0;
113
113
  }
114
114
  return !1;
115
115
  }
116
- var Tr = (e) => {
116
+ var kr = (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 = Tr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
120
+ s && !Array.isArray(s) && typeof s == "object" && (s = kr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
121
121
  }
122
122
  return t;
123
123
  }, Es = /^Symbol\((.*)\)$/, Ir = (e) => {
@@ -141,13 +141,13 @@ function Or(e, t) {
141
141
  }, t);
142
142
  };
143
143
  }
144
- var ur = /* @__PURE__ */ Symbol("idKey"), me = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), X = /* @__PURE__ */ Symbol("growKey"), Br = class {
144
+ var ar = /* @__PURE__ */ Symbol("idKey"), me = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), X = /* @__PURE__ */ Symbol("growKey"), Br = class {
145
145
  [X] = !0;
146
- [ur];
146
+ [ar];
147
147
  [me] = ms();
148
148
  [R] = /* @__PURE__ */ new Map();
149
149
  constructor(e) {
150
- this[ur] = e;
150
+ this[ar] = e;
151
151
  }
152
152
  }, Ps = class {
153
153
  get(e, t) {
@@ -156,21 +156,21 @@ var ur = /* @__PURE__ */ Symbol("idKey"), me = /* @__PURE__ */ Symbol("valueKey"
156
156
  let r = e[R].get(t);
157
157
  if (r) return Ue(r);
158
158
  if (e[X])
159
- return r = rr(t), r[X] = e[X], e[R].set(t, r), Ue(r);
159
+ return r = tr(t), r[X] = e[X], e[R].set(t, r), Ue(r);
160
160
  }
161
161
  set(e, t, r) {
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(`[Fox]illegal property:${t}`), !1);
162
+ return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = Tr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
163
163
  }
164
164
  deleteProperty(e, t) {
165
165
  return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
166
166
  }
167
- }, tr = "__proxy__";
168
- function rr(e) {
167
+ }, er = "__proxy__";
168
+ function tr(e) {
169
169
  const t = new Br(e);
170
- return Reflect.set(t, tr, new Proxy(t, new Ps())), t;
170
+ return Reflect.set(t, er, new Proxy(t, new Ps())), t;
171
171
  }
172
172
  function Ue(e) {
173
- return Reflect.get(e, tr);
173
+ return Reflect.get(e, er);
174
174
  }
175
175
  var _s = class {
176
176
  name = "";
@@ -263,7 +263,7 @@ var _s = class {
263
263
  let r = this;
264
264
  for (let s = 0; s < t - 1; s++) {
265
265
  let i = e[s], n;
266
- r[R].has(i) ? n = r[R].get(i) : (n = rr(i), r[R].set(i, n)), r = n;
266
+ r[R].has(i) ? n = r[R].get(i) : (n = tr(i), r[R].set(i, n)), r = n;
267
267
  }
268
268
  return r[me].value = e[t - 1], this._persistHandler.put(e), !0;
269
269
  }
@@ -313,7 +313,7 @@ var _s = class {
313
313
  "clear",
314
314
  "_persistHandler"
315
315
  ];
316
- function fr(e) {
316
+ function ur(e) {
317
317
  return Fs.includes(e);
318
318
  }
319
319
  var Cs = class {
@@ -321,15 +321,15 @@ var Cs = class {
321
321
  if (t == "value") return e[me].value;
322
322
  if (t === "grow") return e[X];
323
323
  if (t === R) return e[R];
324
- if (typeof t == "string" && fr(t)) return e[t];
324
+ if (typeof t == "string" && ur(t)) return e[t];
325
325
  const r = String(t);
326
326
  let s = e[R].get(r);
327
327
  if (s) return Ue(s);
328
328
  if (e[X])
329
- return s = rr(r), s[X] = e[X], e[R].set(r, s), Ue(s);
329
+ return s = tr(r), s[X] = e[X], e[R].set(r, s), Ue(s);
330
330
  }
331
331
  set(e, t, r) {
332
- return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = kr(r), !0) : fr(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
332
+ return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = Tr(r), !0) : ur(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
333
333
  }
334
334
  deleteProperty(e, t) {
335
335
  return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
@@ -337,12 +337,12 @@ var Cs = class {
337
337
  };
338
338
  function As(e, t) {
339
339
  const r = new Dr(e, t), s = new Cs(), i = new Proxy(r, s);
340
- return Reflect.set(r, tr, i), r;
340
+ return Reflect.set(r, er, i), r;
341
341
  }
342
- var cr = new Proxy(Dr, { construct(e, t) {
342
+ var fr = new Proxy(Dr, { construct(e, t) {
343
343
  const r = t[0] ?? {}, s = t[1];
344
344
  return Ue(As(r, s));
345
- } }), sr = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Hr = class {
345
+ } }), rr = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Hr = class {
346
346
  name = "";
347
347
  persistPolicy = "memory";
348
348
  storage;
@@ -363,7 +363,7 @@ var cr = new Proxy(Dr, { construct(e, t) {
363
363
  saveState(e) {
364
364
  if (!this.persistPolicy || this.persistPolicy === "memory") return;
365
365
  let t = this.getStorage();
366
- if (t === null || sr(e)) return;
366
+ if (t === null || rr(e)) return;
367
367
  const r = `_state_${this.name}`, s = JSON.stringify(e ?? {});
368
368
  t.setItem(r, s);
369
369
  }
@@ -394,22 +394,22 @@ function Nr(e, t, r) {
394
394
  const c = a[f];
395
395
  We(c) || (u[f] = c);
396
396
  }
397
- sr(u) ? s.removeState() : s.saveState(u);
397
+ rr(u) ? s.removeState() : s.saveState(u);
398
398
  };
399
399
  let n = null;
400
400
  r && r.debounce === !1 ? n = i : n = Or(i, r && r.debounceDelay ? r.debounceDelay : 250);
401
- const o = e ? vs(t) : ys(t);
401
+ const o = e ? ps(t) : ys(t);
402
402
  return fs(!0).run(() => {
403
- ps(o, (l) => {
403
+ vs(o, (l) => {
404
404
  const a = Ht(l);
405
405
  n(a);
406
406
  });
407
407
  }), o;
408
408
  }
409
- function Bi(e, t) {
409
+ function Di(e, t) {
410
410
  return Nr(!1, e, t);
411
411
  }
412
- function Di(e, t) {
412
+ function Hi(e, t) {
413
413
  return Nr(!0, e, t);
414
414
  }
415
415
  function qs(e, t) {
@@ -421,7 +421,7 @@ function qs(e, t) {
421
421
  const u = o[a];
422
422
  We(u) || (l[a] = u);
423
423
  }
424
- sr(l) ? r.removeState() : r.saveState(l);
424
+ rr(l) ? r.removeState() : r.saveState(l);
425
425
  };
426
426
  let i = null;
427
427
  return t && t.debounce === !1 ? i = s : i = Or(s, t && t.debounceDelay ? t.debounceDelay : 250), new Proxy(e, {
@@ -433,7 +433,7 @@ function qs(e, t) {
433
433
  }
434
434
  });
435
435
  }
436
- function Hi(e, t) {
436
+ function Ni(e, t) {
437
437
  return qs(e, t);
438
438
  }
439
439
  var de = /* @__PURE__ */ (function(e) {
@@ -501,7 +501,7 @@ function Ks(e) {
501
501
  }
502
502
  return r === P.ParamRegExp && t(`Unfinished custom RegExp for param "${u}"`), c(), o(), i;
503
503
  }
504
- var hr = "[^/]+?", Ls = {
504
+ var cr = "[^/]+?", Ls = {
505
505
  sensitive: !1,
506
506
  strict: !1,
507
507
  start: !0,
@@ -509,7 +509,7 @@ var hr = "[^/]+?", Ls = {
509
509
  }, J = /* @__PURE__ */ (function(e) {
510
510
  return e[e._multiplier = 10] = "_multiplier", e[e.Root = 9 * e._multiplier] = "Root", e[e.Segment = 4 * e._multiplier] = "Segment", e[e.SubSegment = 3 * e._multiplier] = "SubSegment", e[e.Static = 4 * e._multiplier] = "Static", e[e.Dynamic = 2 * e._multiplier] = "Dynamic", e[e.BonusCustomRegExp = 1 * e._multiplier] = "BonusCustomRegExp", e[e.BonusWildcard = -4 * e._multiplier - e.BonusCustomRegExp] = "BonusWildcard", e[e.BonusRepeatable = -2 * e._multiplier] = "BonusRepeatable", e[e.BonusOptional = -0.8 * e._multiplier] = "BonusOptional", e[e.BonusStrict = 0.07 * e._multiplier] = "BonusStrict", e[e.BonusCaseSensitive = 0.025 * e._multiplier] = "BonusCaseSensitive", e;
511
511
  })(J || {}), Ms = /[.+*?^${}()[\]/\\]/g;
512
- function ks(e, t) {
512
+ function Ts(e, t) {
513
513
  const r = j(!0, {}, Ls, t), s = [];
514
514
  let i = r.start ? "^" : "";
515
515
  const n = [];
@@ -528,17 +528,17 @@ function ks(e, t) {
528
528
  repeatable: m,
529
529
  optional: b
530
530
  });
531
- const v = g || hr;
532
- if (v !== hr) {
531
+ const p = g || cr;
532
+ if (p !== cr) {
533
533
  y += J.BonusCustomRegExp;
534
534
  try {
535
- new RegExp(`(${v})`);
535
+ new RegExp(`(${p})`);
536
536
  } catch (L) {
537
- throw new Error(`Invalid custom RegExp for param "${d}" (${v}): ` + L.message);
537
+ throw new Error(`Invalid custom RegExp for param "${d}" (${p}): ` + L.message);
538
538
  }
539
539
  }
540
- let K = m ? `((?:${v})(?:/(?:${v}))*)` : `(${v})`;
541
- c || (K = b && u.length < 2 ? `(?:/${K})` : "/" + K), b && (K += "?"), i += K, y += J.Dynamic, b && (y += J.BonusOptional), m && (y += J.BonusRepeatable), v === ".*" && (y += J.BonusWildcard);
540
+ let K = m ? `((?:${p})(?:/(?:${p}))*)` : `(${p})`;
541
+ c || (K = b && u.length < 2 ? `(?:/${K})` : "/" + K), b && (K += "?"), i += K, y += J.Dynamic, b && (y += J.BonusOptional), m && (y += J.BonusRepeatable), p === ".*" && (y += J.BonusWildcard);
542
542
  }
543
543
  f.push(y);
544
544
  }
@@ -566,12 +566,12 @@ function ks(e, t) {
566
566
  for (const y of h) if (y.type === de.Static) f += y.value;
567
567
  else if (y.type === de.Param) {
568
568
  const { value: d, repeatable: m, optional: b } = y, g = d in u ? u[d] : "";
569
- if (or(g) && !m) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
570
- const v = or(g) ? g.join("/") : g;
571
- if (!v) if (b)
569
+ if (nr(g) && !m) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
570
+ const p = nr(g) ? g.join("/") : g;
571
+ if (!p) if (b)
572
572
  h.length < 2 && (f.endsWith("/") ? f = f.slice(0, -1) : c = !0);
573
573
  else throw new Error(`Missing required param "${d}"`);
574
- f += v;
574
+ f += p;
575
575
  }
576
576
  }
577
577
  return f || "/";
@@ -584,8 +584,8 @@ function ks(e, t) {
584
584
  stringify: a
585
585
  };
586
586
  }
587
- function Ts(e, t) {
588
- const r = ks(Ks(e), t);
587
+ function ks(e, t) {
588
+ const r = Ts(Ks(e), t);
589
589
  return function(s) {
590
590
  const i = r.parse(s);
591
591
  return i ? {
@@ -595,7 +595,7 @@ function Ts(e, t) {
595
595
  };
596
596
  }
597
597
  var Ur = "default", Vr = /* @__PURE__ */ Symbol("sync"), I = /* @__PURE__ */ Symbol("normalizeRoute");
598
- function yr(e) {
598
+ function hr(e) {
599
599
  let t = !1;
600
600
  return function(...r) {
601
601
  if (!t)
@@ -605,9 +605,9 @@ function yr(e) {
605
605
  function Is(e) {
606
606
  let t = e.src;
607
607
  return new Promise((r, s) => {
608
- const i = yr((l) => {
609
- er(l) && (l = l.default), e.component = l, console.debug("success load async module"), r();
610
- }), n = yr((l) => {
608
+ const i = hr((l) => {
609
+ Yt(l) && (l = l.default), e.component = l, console.debug("success load async module"), r();
610
+ }), n = hr((l) => {
611
611
  `${l}`, console.debug("reject load async module"), s(l);
612
612
  });
613
613
  let o;
@@ -705,7 +705,7 @@ var Os = class {
705
705
  resolve() {
706
706
  return Is(this);
707
707
  }
708
- }, dr = class {
708
+ }, yr = class {
709
709
  models = [];
710
710
  }, bt = class {
711
711
  path;
@@ -785,14 +785,14 @@ var Os = class {
785
785
  }
786
786
  }, E = /* @__PURE__ */ (function(e) {
787
787
  return e.Busy = "Busy", e.Free = "Free", e.Reject = "Reject", e.Exception = "Exception", e.Finished = "Finished", e;
788
- })(E || {}), B = /* @__PURE__ */ Symbol("chainKey"), T = /* @__PURE__ */ Symbol("cursorKey"), xt = /* @__PURE__ */ Symbol("$persistentModeKey"), _ = /* @__PURE__ */ Symbol("statusKey"), Z = /* @__PURE__ */ Symbol("argsKey"), Xe = /* @__PURE__ */ Symbol("exArgsKey"), pe = /* @__PURE__ */ Symbol("successFnsKey"), $e = /* @__PURE__ */ Symbol("errorFnsKey"), le = /* @__PURE__ */ Symbol("sessionKey"), Y = /* @__PURE__ */ Symbol("_go"), ct = class {
788
+ })(E || {}), B = /* @__PURE__ */ Symbol("chainKey"), k = /* @__PURE__ */ Symbol("cursorKey"), xt = /* @__PURE__ */ Symbol("$persistentModeKey"), _ = /* @__PURE__ */ Symbol("statusKey"), Z = /* @__PURE__ */ Symbol("argsKey"), Xe = /* @__PURE__ */ Symbol("exArgsKey"), ve = /* @__PURE__ */ Symbol("successFnsKey"), $e = /* @__PURE__ */ Symbol("errorFnsKey"), le = /* @__PURE__ */ Symbol("sessionKey"), Y = /* @__PURE__ */ Symbol("_go"), ct = class {
789
789
  [B] = [];
790
- [T] = 0;
790
+ [k] = 0;
791
791
  [xt] = !1;
792
792
  [_] = E.Free;
793
793
  [Z] = [];
794
794
  [Xe] = [];
795
- [pe] = [];
795
+ [ve] = [];
796
796
  [$e] = [];
797
797
  [le];
798
798
  get session() {
@@ -803,7 +803,7 @@ var Os = class {
803
803
  }
804
804
  [Y](e, ...t) {
805
805
  let r = this[_];
806
- if (this[_] = E.Busy, this[T] += e, this[T] < 0 && (this[T] = 0), this[Z] = t, r === E.Exception || r === E.Reject) {
806
+ if (this[_] = E.Busy, this[k] += e, this[k] < 0 && (this[k] = 0), this[Z] = t, r === E.Exception || r === E.Reject) {
807
807
  let n = [{ session: this[le] }, ...this[Xe]];
808
808
  for (; this[$e].length > 0; ) try {
809
809
  let o = this[$e].shift();
@@ -813,22 +813,22 @@ var Os = class {
813
813
  } catch (o) {
814
814
  console.error(o.message, o);
815
815
  }
816
- return this[_] = r, this[B] = [], this[T] = 0, this;
817
- } else if (r === E.Finished || this[T] >= this[B].length) {
816
+ return this[_] = r, this[B] = [], this[k] = 0, this;
817
+ } else if (r === E.Finished || this[k] >= this[B].length) {
818
818
  let n = [{ session: this[le] }, ...this[Z]];
819
- for (; this[pe].length > 0; ) {
820
- let o = this[pe].shift();
819
+ for (; this[ve].length > 0; ) {
820
+ let o = this[ve].shift();
821
821
  typeof o == "function" && He(() => {
822
822
  Reflect.apply(o, {}, n);
823
823
  });
824
824
  }
825
825
  return this[_] = E.Free, this;
826
826
  }
827
- if (this[T] >= this[B].length)
827
+ if (this[k] >= this[B].length)
828
828
  return this[_] = E.Free, this;
829
- let s = this[B][this[T]];
830
- this[xt] || (this[B].splice(0, this[T] + 1), this[T] = -1);
831
- let i = this[T] + 1;
829
+ let s = this[B][this[k]];
830
+ this[xt] || (this[B].splice(0, this[k] + 1), this[k] = -1);
831
+ let i = this[k] + 1;
832
832
  try {
833
833
  let n = !1, o = {
834
834
  go: (l, ...a) => {
@@ -866,10 +866,10 @@ var Os = class {
866
866
  return this[_] = E.Exception, this[Xe] = e, Reflect.apply(this[Y], this, [0]);
867
867
  }
868
868
  reset(...e) {
869
- this[_] = E.Busy, this[Z] = e, this[B] = [], this[T] = 0;
869
+ this[_] = E.Busy, this[Z] = e, this[B] = [], this[k] = 0;
870
870
  let t = [{ session: this[le] }, ...this[Z]];
871
- for (; this[pe].length > 0; ) {
872
- let r = this[pe].shift();
871
+ for (; this[ve].length > 0; ) {
872
+ let r = this[ve].shift();
873
873
  He(() => {
874
874
  Reflect.apply(r, this, t);
875
875
  });
@@ -880,13 +880,13 @@ var Os = class {
880
880
  return this[_] === E.Reject || this[_] === E.Exception ? this : (Array.isArray(e) ? this[B] = [...this[B], ...e] : this[B].push(e), this[_] === E.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this));
881
881
  }
882
882
  wait(e, t) {
883
- return e && typeof e == "function" && this[pe].push(e), t && typeof t == "function" && this[$e].push(t), this[_] === E.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this);
883
+ return e && typeof e == "function" && this[ve].push(e), t && typeof t == "function" && this[$e].push(t), this[_] === E.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this);
884
884
  }
885
885
  exception(e) {
886
886
  return e && typeof e == "function" && this[$e].push(e), this[_] === E.Busy ? this : Reflect.apply(this[Y], this, [0, ...this[Z]]);
887
887
  }
888
888
  isFinish() {
889
- return this[_] == E.Reject || this[_] == E.Free && this[T] >= this[B].length;
889
+ return this[_] == E.Reject || this[_] == E.Free && this[k] >= this[B].length;
890
890
  }
891
891
  }, xe = /* @__PURE__ */ Symbol("_notifyChange"), St = class {
892
892
  currentRoute;
@@ -894,11 +894,11 @@ var Os = class {
894
894
  constructor(e, t) {
895
895
  this.currentRoute = e, this.routes = t;
896
896
  }
897
- }, ae = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), mr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Qe = /* @__PURE__ */ Symbol("_getRouteMark"), Et = /* @__PURE__ */ Symbol("_getUrlSearch"), Pt = /* @__PURE__ */ Symbol("_generateLocation"), Ze = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), je = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), vr = /* @__PURE__ */ Symbol("_beforeRestore"), pr = "Symbol(_fox_restore_point)";
897
+ }, ae = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), dr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Qe = /* @__PURE__ */ Symbol("_getRouteMark"), Et = /* @__PURE__ */ Symbol("_getUrlSearch"), Pt = /* @__PURE__ */ Symbol("_generateLocation"), Ze = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), je = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), mr = /* @__PURE__ */ Symbol("_beforeRestore"), pr = "Symbol(_fox_restore_point)";
898
898
  function Ye(e, ...t) {
899
899
  return typeof e == "function" ? Reflect.apply(e, null, [...t]) : e;
900
900
  }
901
- function gr(e) {
901
+ function vr(e) {
902
902
  if (!Array.isArray(e)) return !1;
903
903
  if (e.length === 0) return !0;
904
904
  const t = e[0];
@@ -942,12 +942,12 @@ var Jr = class {
942
942
  } catch {
943
943
  }
944
944
  }
945
- }), ft(t, "popstate", this.historyChange), this.firstNavigate && e && this[mr](), Promise.resolve();
945
+ }), ft(t, "popstate", this.historyChange), this.firstNavigate && e && this[dr](), Promise.resolve();
946
946
  }
947
947
  destroy() {
948
- this.historyChange && Zt(C(), "popstate", this.historyChange);
948
+ this.historyChange && Qt(C(), "popstate", this.historyChange);
949
949
  }
950
- [vr](e, t, r, s) {
950
+ [mr](e, t, r, s) {
951
951
  for (let i of this[je]) try {
952
952
  const n = Reflect.apply(i, {}, [
953
953
  e,
@@ -968,12 +968,12 @@ var Jr = class {
968
968
  const t = this[je].indexOf(e);
969
969
  return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
970
970
  }
971
- [mr]() {
971
+ [dr]() {
972
972
  const e = this[Qe]() ?? "/", t = this.storage.getItem(pr);
973
973
  if (t) try {
974
974
  const n = JSON.parse(t);
975
975
  if (n.mark === e && Array.isArray(n.routes) && n.routes.length > 0) {
976
- const o = n.routes.filter((l, a) => (l.params = l.params ? Ir(l.params) : {}, this[vr](l, a, e, n.routes)));
976
+ const o = n.routes.filter((l, a) => (l.params = l.params ? Ir(l.params) : {}, this[mr](l, a, e, n.routes)));
977
977
  if (o.length > 0) {
978
978
  const l = this[Et](), a = o.length - 1;
979
979
  o[a].query = l || o[a].query, this[xe](o);
@@ -991,7 +991,7 @@ var Jr = class {
991
991
  [Ze](e, t) {
992
992
  try {
993
993
  t.forEach((s) => {
994
- s.params = s.params ? Tr(s.params) : {};
994
+ s.params = s.params ? kr(s.params) : {};
995
995
  });
996
996
  const r = JSON.stringify({
997
997
  mark: e,
@@ -1033,7 +1033,7 @@ var Jr = class {
1033
1033
  }
1034
1034
  goBack(e, t) {
1035
1035
  const r = C(), s = r.history.state;
1036
- if (gr(s) && s.length > 0) {
1036
+ if (vr(s) && s.length > 0) {
1037
1037
  let i = !1;
1038
1038
  for (let u = s.length - 1; u >= 0; u--) {
1039
1039
  const f = x.from(s[u]);
@@ -1053,7 +1053,7 @@ var Jr = class {
1053
1053
  }, a = () => {
1054
1054
  clearTimeout(o);
1055
1055
  const u = C().history.state;
1056
- if (gr(u) && u.length > 0) {
1056
+ if (vr(u) && u.length > 0) {
1057
1057
  let f = u.length;
1058
1058
  const c = u[f - 1], h = x.from(c);
1059
1059
  if (x.isSame(h, e))
@@ -1108,7 +1108,7 @@ var Jr = class {
1108
1108
  return r ? this.mode == "path" ? i.indexOf("/") === 0 ? n = `${this.base}${i}${r}` : n = `${this.base}/${i}${r}` : n = `${s.pathname}${r}#${i}` : this.mode == "path" ? i.indexOf("/") === 0 ? n = `${this.base}${i}` : n = `${this.base}/${i}` : n = `${s.pathname}#${i}`, `${s.origin}${n}`;
1109
1109
  }
1110
1110
  };
1111
- function Ni(e = !0, t = null, r = "", s = !0, i = !1, n) {
1111
+ function Ui(e = !0, t = null, r = "", s = !0, i = !1, n) {
1112
1112
  return t !== null && (t = C().location.pathname), t && t.endsWith("/") && (t = t.substring(0, t.length - 1)), new Jr("path", t ?? "", r, e, s, i, n);
1113
1113
  }
1114
1114
  function Us(e = !0, t = "", r = !0, s = !1, i) {
@@ -1184,7 +1184,7 @@ var Vs = class {
1184
1184
  function Ws(e = "", t = 50) {
1185
1185
  return new Vs(e, t);
1186
1186
  }
1187
- var et = /* @__PURE__ */ Symbol("_constructRouteModel"), tt = /* @__PURE__ */ Symbol("_findRouteModel"), _t = /* @__PURE__ */ Symbol("_findRootView"), Js = /* @__PURE__ */ Symbol("_getFirstView"), ue = /* @__PURE__ */ Symbol("_removeView"), br = /* @__PURE__ */ Symbol("_buildPage"), wr = /* @__PURE__ */ Symbol("_resolveComponent"), Rr = /* @__PURE__ */ Symbol("_update"), se = /* @__PURE__ */ Symbol("_merge"), Ft = /* @__PURE__ */ Symbol("_handleHistoryChange"), fe = /* @__PURE__ */ Symbol("_handleRouteUpdated"), rt = /* @__PURE__ */ Symbol("routeUpdatedCallback"), Ct = /* @__PURE__ */ Symbol("currentRoute"), p = /* @__PURE__ */ Symbol("currentRoutes"), st = /* @__PURE__ */ Symbol("routeSessionCacheKey"), xr = /* @__PURE__ */ Symbol("_addRouteRecorder"), Ke = /* @__PURE__ */ Symbol("_removeRouteRecorder"), Le = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), $ = /* @__PURE__ */ Symbol("_handleError"), it = /* @__PURE__ */ Symbol("errorCallback"), D = /* @__PURE__ */ Symbol("registerKey"), nt = /* @__PURE__ */ Symbol("notFoundKey"), At = /* @__PURE__ */ Symbol("notFoundPathKey"), W = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), Me = /* @__PURE__ */ Symbol("beforeFiltersKey"), ke = /* @__PURE__ */ Symbol("afterFiltersKey"), Te = /* @__PURE__ */ Symbol("destroyFiltersKey"), qt = /* @__PURE__ */ Symbol("propsFilterKey"), ge = /* @__PURE__ */ Symbol("mainDispatcherKey"), $t = /* @__PURE__ */ Symbol("initKey"), ce = /* @__PURE__ */ Symbol("readyKey"), jt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), Sr = /* @__PURE__ */ Symbol("_createNextFn"), Kt = /* @__PURE__ */ Symbol("_start"), Lt = /* @__PURE__ */ Symbol("_before"), Mt = /* @__PURE__ */ Symbol("_after"), Er = /* @__PURE__ */ Symbol("_destroy"), kt = /* @__PURE__ */ Symbol("_load"), Ie = /* @__PURE__ */ Symbol("_unload"), Oe = /* @__PURE__ */ Symbol("routerGuardKey");
1187
+ var et = /* @__PURE__ */ Symbol("_constructRouteModel"), tt = /* @__PURE__ */ Symbol("_findRouteModel"), _t = /* @__PURE__ */ Symbol("_findRootView"), Js = /* @__PURE__ */ Symbol("_getFirstView"), ue = /* @__PURE__ */ Symbol("_removeView"), gr = /* @__PURE__ */ Symbol("_buildPage"), br = /* @__PURE__ */ Symbol("_resolveComponent"), wr = /* @__PURE__ */ Symbol("_update"), se = /* @__PURE__ */ Symbol("_merge"), Ft = /* @__PURE__ */ Symbol("_handleHistoryChange"), fe = /* @__PURE__ */ Symbol("_handleRouteUpdated"), rt = /* @__PURE__ */ Symbol("routeUpdatedCallback"), Ct = /* @__PURE__ */ Symbol("currentRoute"), v = /* @__PURE__ */ Symbol("currentRoutes"), st = /* @__PURE__ */ Symbol("routeSessionCacheKey"), Rr = /* @__PURE__ */ Symbol("_addRouteRecorder"), Ke = /* @__PURE__ */ Symbol("_removeRouteRecorder"), Le = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), $ = /* @__PURE__ */ Symbol("_handleError"), it = /* @__PURE__ */ Symbol("errorCallback"), D = /* @__PURE__ */ Symbol("registerKey"), nt = /* @__PURE__ */ Symbol("notFoundKey"), At = /* @__PURE__ */ Symbol("notFoundPathKey"), W = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), Me = /* @__PURE__ */ Symbol("beforeFiltersKey"), Te = /* @__PURE__ */ Symbol("afterFiltersKey"), ke = /* @__PURE__ */ Symbol("destroyFiltersKey"), qt = /* @__PURE__ */ Symbol("propsFilterKey"), ge = /* @__PURE__ */ Symbol("mainDispatcherKey"), $t = /* @__PURE__ */ Symbol("initKey"), ce = /* @__PURE__ */ Symbol("readyKey"), jt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), xr = /* @__PURE__ */ Symbol("_createNextFn"), Kt = /* @__PURE__ */ Symbol("_start"), Lt = /* @__PURE__ */ Symbol("_before"), Mt = /* @__PURE__ */ Symbol("_after"), Sr = /* @__PURE__ */ Symbol("_destroy"), Tt = /* @__PURE__ */ Symbol("_load"), Ie = /* @__PURE__ */ Symbol("_unload"), Oe = /* @__PURE__ */ Symbol("routerGuardKey");
1188
1188
  function zs(e) {
1189
1189
  return e.layers.length == 0 || e.layers[0].views.length == 0;
1190
1190
  }
@@ -1196,14 +1196,14 @@ var Gs = class {
1196
1196
  [jt] = [];
1197
1197
  [W] = new Ds();
1198
1198
  [S];
1199
- [p] = new Array();
1199
+ [v] = new Array();
1200
1200
  [Ct] = Lr(null);
1201
1201
  [st] = /* @__PURE__ */ new WeakMap();
1202
1202
  [it] = null;
1203
1203
  [rt] = null;
1204
1204
  [Me] = new Array();
1205
- [ke] = new Array();
1206
1205
  [Te] = new Array();
1206
+ [ke] = new Array();
1207
1207
  [qt] = null;
1208
1208
  [ge] = new ct();
1209
1209
  [Oe] = new Ns();
@@ -1259,16 +1259,16 @@ var Gs = class {
1259
1259
  [Ft](e) {
1260
1260
  try {
1261
1261
  if (!e) {
1262
- let n = [...this[p]].reverse();
1262
+ let n = [...this[v]].reverse();
1263
1263
  return this[Ie](n), Ee && C().location.reload(), Promise.resolve();
1264
1264
  }
1265
1265
  let t = null, r = [], s = [], i = 0;
1266
- for (; i < e.length && i < this[p].length && x.isSame(e[i], this[p][i]); i++)
1267
- e[i].active === !0 && e[i].active !== this[p][i].active && (t = e[i]);
1266
+ for (; i < e.length && i < this[v].length && x.isSame(e[i], this[v][i]); i++)
1267
+ e[i].active === !0 && e[i].active !== this[v][i].active && (t = e[i]);
1268
1268
  if (i < e.length) r = e.slice(i);
1269
- else if (i === e.length) for (; i < this[p].length && this[p][i].historyUpdatePolicy === "traceless"; i++)
1270
- r.push(this[p][i]), t = e[i];
1271
- if (i < this[p].length && (s = this[p].slice(i).reverse()), s.length === 0 && r.length === 0) {
1269
+ else if (i === e.length) for (; i < this[v].length && this[v][i].historyUpdatePolicy === "traceless"; i++)
1270
+ r.push(this[v][i]), t = e[i];
1271
+ if (i < this[v].length && (s = this[v].slice(i).reverse()), s.length === 0 && r.length === 0) {
1272
1272
  if (t !== null) return this.restore([t]);
1273
1273
  } else if (s.length > 0) {
1274
1274
  if (this[Ie](s)) {
@@ -1287,49 +1287,49 @@ var Gs = class {
1287
1287
  } catch {
1288
1288
  }
1289
1289
  }
1290
- [xr](e, t) {
1290
+ [Rr](e, t) {
1291
1291
  if (e.opsType === F.Open) {
1292
1292
  let r = !1;
1293
- const s = this[p].length - 1;
1293
+ const s = this[v].length - 1;
1294
1294
  for (let i = s; i >= 0; i--) {
1295
- const n = this[p][i];
1295
+ const n = this[v][i];
1296
1296
  if (e.root == n.root) {
1297
1297
  if (e.path === n.path) {
1298
- this[p].splice(i, 1, e), r = !0;
1298
+ this[v].splice(i, 1, e), r = !0;
1299
1299
  continue;
1300
1300
  }
1301
1301
  e.active && (n.active = !1);
1302
1302
  }
1303
1303
  }
1304
- r || this[p].push(e);
1305
- } else this[p].push(e);
1304
+ r || this[v].push(e);
1305
+ } else this[v].push(e);
1306
1306
  this[st].set(e, t), this[fe](e);
1307
1307
  }
1308
1308
  [Le]() {
1309
1309
  let e = [];
1310
- for (let t of this[p]) {
1310
+ for (let t of this[v]) {
1311
1311
  let r = x.clone(t, !0);
1312
1312
  e.push(r);
1313
1313
  }
1314
1314
  return e;
1315
1315
  }
1316
1316
  [Ke](e) {
1317
- if (!this[p]) {
1317
+ if (!this[v]) {
1318
1318
  this[fe](null);
1319
1319
  return;
1320
1320
  }
1321
1321
  let t = -1;
1322
- for (let r = 0; r < this[p].length; r++) if (x.isSame(this[p][r], e)) {
1322
+ for (let r = 0; r < this[v].length; r++) if (x.isSame(this[v][r], e)) {
1323
1323
  t = r;
1324
1324
  break;
1325
1325
  }
1326
1326
  if (t != -1) {
1327
- const r = this[p][t];
1328
- this[p].splice(t, 1);
1327
+ const r = this[v][t];
1328
+ this[v].splice(t, 1);
1329
1329
  const s = this[st].get(r);
1330
- if (this[st].delete(r), this[Er](r, s), r.opsType === F.Append) {
1331
- const i = this[p].length - 1;
1332
- this[fe](this[p][i] ?? null);
1330
+ if (this[st].delete(r), this[Sr](r, s), r.opsType === F.Append) {
1331
+ const i = this[v].length - 1;
1332
+ this[fe](this[v][i] ?? null);
1333
1333
  } else this[fe](null);
1334
1334
  } else this[fe](null);
1335
1335
  }
@@ -1369,18 +1369,18 @@ var Gs = class {
1369
1369
  return t !== -1 ? (this[Me].splice(t, 1), !0) : !1;
1370
1370
  }
1371
1371
  afterEach(e) {
1372
- this[ke].push(e);
1372
+ this[Te].push(e);
1373
1373
  }
1374
1374
  removeAfterEach(e) {
1375
- const t = this[ke].indexOf(e);
1376
- return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1375
+ const t = this[Te].indexOf(e);
1376
+ return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1377
1377
  }
1378
1378
  destroyEach(e) {
1379
- this[Te].push(e);
1379
+ this[ke].push(e);
1380
1380
  }
1381
1381
  removeDestroyEach(e) {
1382
- const t = this[Te].indexOf(e);
1383
- return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1382
+ const t = this[ke].indexOf(e);
1383
+ return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1384
1384
  }
1385
1385
  beforeRestoreEach(e) {
1386
1386
  this[S]?.beforeRestoreEach(e);
@@ -1452,12 +1452,12 @@ var Gs = class {
1452
1452
  for (let u of a) {
1453
1453
  let f = new bt();
1454
1454
  f.name = u.name, u.path && u.path.length > 0 ? t !== "/" ? f.path = `${t}${u.path}` : f.path = u.path : (n = !0, f.path = t);
1455
- let c = new dr();
1455
+ let c = new yr();
1456
1456
  c.models = [...i], f.layers = [c, ...u.layers], f.matchedRoutes = [s, ...u.matchedRoutes ?? []], o.push(f);
1457
1457
  }
1458
1458
  }
1459
1459
  if (!n) {
1460
- const l = new dr();
1460
+ const l = new yr();
1461
1461
  l.models = i;
1462
1462
  const a = new bt();
1463
1463
  a.name = e.name, a.path = t, a.matchedRoutes = [s], a.layers = [l], o.splice(0, 0, a);
@@ -1471,7 +1471,7 @@ var Gs = class {
1471
1471
  const s = t.path ? t.template ?? t.path : null, i = t.name ? t.template ?? t.name : null;
1472
1472
  if (s && r.path) {
1473
1473
  let n = r.match;
1474
- n || (n = r.match = Ts(r.path));
1474
+ n || (n = r.match = ks(r.path));
1475
1475
  const o = n(s);
1476
1476
  if (!o) continue;
1477
1477
  if (r.redirect) {
@@ -1540,14 +1540,14 @@ var Gs = class {
1540
1540
  return new Promise((r) => {
1541
1541
  this[ge].post((s) => {
1542
1542
  try {
1543
- if (this[p].length === 0) {
1543
+ if (this[v].length === 0) {
1544
1544
  s.resolve(), r(!1);
1545
1545
  return;
1546
1546
  }
1547
- let i = -1, n = null, o = [], l = this[p].length - 1, a = l !== -1 ? this[p][l] : null;
1547
+ let i = -1, n = null, o = [], l = this[v].length - 1, a = l !== -1 ? this[v][l] : null;
1548
1548
  if (e) {
1549
1549
  if (n = e.root ?? "default", e.all) for (let f = l; f > 0; f--) {
1550
- const c = this[p][f];
1550
+ const c = this[v][f];
1551
1551
  if (c.opsType === F.Append) {
1552
1552
  const h = c.root ?? "default";
1553
1553
  if (n && n !== h) continue;
@@ -1555,7 +1555,7 @@ var Gs = class {
1555
1555
  }
1556
1556
  }
1557
1557
  else if (e.until) for (let f = l; f > 0; f--) {
1558
- let c = this[p][f];
1558
+ let c = this[v][f];
1559
1559
  if (c.opsType === F.Append && c.root === n) {
1560
1560
  if (e.until.charAt(0) === "/" && e.until === c.path) {
1561
1561
  i = f;
@@ -1568,7 +1568,7 @@ var Gs = class {
1568
1568
  }
1569
1569
  }
1570
1570
  else if (e.to) for (let f = l; f > 0; f--) {
1571
- const c = this[p][f];
1571
+ const c = this[v][f];
1572
1572
  if (c.opsType === F.Append) {
1573
1573
  const h = c.root ?? "default";
1574
1574
  if (n && n !== h) continue;
@@ -1582,7 +1582,7 @@ var Gs = class {
1582
1582
  }
1583
1583
  }
1584
1584
  } else for (let f = l; f > 0; f--) {
1585
- let c = this[p][f];
1585
+ let c = this[v][f];
1586
1586
  if (c.opsType === F.Append) {
1587
1587
  o.push(c), i = f - 1;
1588
1588
  break;
@@ -1593,12 +1593,12 @@ var Gs = class {
1593
1593
  console.warn(f), s.resolve(f), r(!1);
1594
1594
  return;
1595
1595
  }
1596
- const u = i !== -1 ? this[p][i] : null;
1596
+ const u = i !== -1 ? this[v][i] : null;
1597
1597
  if (this[Ie](o)) {
1598
1598
  if (t === !1)
1599
1599
  return s.resolve(), r(!0), !0;
1600
- const f = () => (s.resolve(), r(!0), !0), c = this[p].length;
1601
- if (u && x.isSame(u, this[p][c - 1])) {
1600
+ const f = () => (s.resolve(), r(!0), !0), c = this[v].length;
1601
+ if (u && x.isSame(u, this[v][c - 1])) {
1602
1602
  if (a?.historyUpdatePolicy === "traceless") {
1603
1603
  const h = new St(x.clone(u, !0), this[Le]());
1604
1604
  this[S]?.replace(h), f();
@@ -1626,8 +1626,8 @@ var Gs = class {
1626
1626
  return;
1627
1627
  }
1628
1628
  let s = [];
1629
- for (let i = 0; i < this[p].length; i++) {
1630
- let n = this[p][i];
1629
+ for (let i = 0; i < this[v].length; i++) {
1630
+ let n = this[v][i];
1631
1631
  if (n.root === r.root) {
1632
1632
  if (!r.path && !r.name) {
1633
1633
  s.push(n);
@@ -1660,7 +1660,7 @@ var Gs = class {
1660
1660
  return r == null ? (this[$]("route forbid", t), this) : (this[ge].post((s) => {
1661
1661
  try {
1662
1662
  let i = this[Kt](t);
1663
- this[Lt](i), this[kt](i), this[Mt](i), i.wait((n, o) => {
1663
+ this[Lt](i), this[Tt](i), this[Mt](i), i.wait((n, o) => {
1664
1664
  const l = n.session.to;
1665
1665
  if (n.session.updateResult && n.session.updateResult.status === "success") try {
1666
1666
  const a = new St(x.clone(l, !0), this[Le]());
@@ -1685,7 +1685,7 @@ var Gs = class {
1685
1685
  back(e = 1) {
1686
1686
  this[S]?.go(-e, !1);
1687
1687
  }
1688
- [Sr](e) {
1688
+ [xr](e) {
1689
1689
  return (t, r) => {
1690
1690
  if (typeof t == "boolean")
1691
1691
  e.session.redirect = !1, t ? e.resolve() : e.reject(r ?? null);
@@ -1701,7 +1701,7 @@ var Gs = class {
1701
1701
  };
1702
1702
  }
1703
1703
  [Kt](e) {
1704
- const t = new Ge(e, this[p].length > 0 ? this[p][this[p].length - 1] : void 0), r = {
1704
+ const t = new Ge(e, this[v].length > 0 ? this[v][this[v].length - 1] : void 0), r = {
1705
1705
  route: e,
1706
1706
  find: null
1707
1707
  };
@@ -1718,7 +1718,7 @@ var Gs = class {
1718
1718
  }
1719
1719
  [Lt](e) {
1720
1720
  for (let t of this[Me]) e.post((r) => {
1721
- const s = this[Sr](r);
1721
+ const s = this[xr](r);
1722
1722
  Reflect.apply(t, {}, [
1723
1723
  r.session.to,
1724
1724
  r.session.from,
@@ -1729,7 +1729,7 @@ var Gs = class {
1729
1729
  }
1730
1730
  [Mt](e) {
1731
1731
  e.post((t) => {
1732
- for (let r of this[ke]) try {
1732
+ for (let r of this[Te]) try {
1733
1733
  Reflect.apply(r, {}, [
1734
1734
  t.session.to,
1735
1735
  t.session.from,
@@ -1741,15 +1741,15 @@ var Gs = class {
1741
1741
  t.resolve();
1742
1742
  });
1743
1743
  }
1744
- [Er](e, t) {
1745
- for (let r of this[Te]) try {
1744
+ [Sr](e, t) {
1745
+ for (let r of this[ke]) try {
1746
1746
  Reflect.apply(r, {}, [e, t]);
1747
1747
  } catch (s) {
1748
1748
  console.error(s.message, s);
1749
1749
  }
1750
1750
  typeof e.destroy == "function" && Reflect.apply(e.destroy, e, []);
1751
1751
  }
1752
- [kt](e) {
1752
+ [Tt](e) {
1753
1753
  e.post((t) => {
1754
1754
  const r = t.session.to;
1755
1755
  let s = t.session.routeModel;
@@ -1766,7 +1766,7 @@ var Gs = class {
1766
1766
  }
1767
1767
  }
1768
1768
  const i = Ge.from(t.session);
1769
- this[br](r, s, i).then((n) => {
1769
+ this[gr](r, s, i).then((n) => {
1770
1770
  this[W], t.session.updateResult = n ?? {
1771
1771
  status: "success",
1772
1772
  message: ""
@@ -1853,14 +1853,14 @@ var Gs = class {
1853
1853
  let r = t.layers[0].views;
1854
1854
  r.length > 0 && (r[0].slots.value = []);
1855
1855
  }
1856
- return this[p] = [], this[fe](null), Promise.resolve();
1856
+ return this[v] = [], this[fe](null), Promise.resolve();
1857
1857
  } else return new Promise((t, r) => {
1858
1858
  let s = null, i = !1;
1859
1859
  for (let n = 0; n < e.length; n++) {
1860
1860
  const o = e[n];
1861
1861
  this[ge].post((l) => {
1862
1862
  const a = this[Kt](o);
1863
- this[Lt](a), this[kt](a), this[Mt](a), a.wait((u, f) => {
1863
+ this[Lt](a), this[Tt](a), this[Mt](a), a.wait((u, f) => {
1864
1864
  s = u.session.to, i = u.session.redirect, l.resolve();
1865
1865
  }, (u, f) => {
1866
1866
  s = null, f !== null && this[$](f), l.resolve();
@@ -1876,14 +1876,14 @@ var Gs = class {
1876
1876
  });
1877
1877
  });
1878
1878
  }
1879
- async [br](e, t, r) {
1879
+ async [gr](e, t, r) {
1880
1880
  const s = e.updateType ?? wt.Part;
1881
- await this[wr](t);
1882
- const i = this[Rr](t, e, r, s);
1881
+ await this[br](t);
1882
+ const i = this[wr](t, e, r, s);
1883
1883
  if (i.status === "error") throw Error(i.message);
1884
1884
  return i;
1885
1885
  }
1886
- [wr](e) {
1886
+ [br](e) {
1887
1887
  let t = [];
1888
1888
  for (let r = 0; r < e.layers.length; r++) {
1889
1889
  let s = e.layers[r];
@@ -1894,7 +1894,7 @@ var Gs = class {
1894
1894
  }
1895
1895
  return t.length > 0 ? Promise.all(t) : Promise.resolve();
1896
1896
  }
1897
- [Rr](e, t, r, s) {
1897
+ [wr](e, t, r, s) {
1898
1898
  if (e.layers[0].models.length !== 1) return {
1899
1899
  status: "error",
1900
1900
  message: "illegal route structure(multi root node)"
@@ -1997,8 +1997,8 @@ var Gs = class {
1997
1997
  let m = [];
1998
1998
  for (let L = 1; L < c.length; L++) m.push(c[L].index);
1999
1999
  m.length > 0 ? this[ue](n, a, m, !0) : y && (u.slots.value = [...c]);
2000
- let b = [new O(u, t.index, f)], g = f + 1, v = 1, K = new O(u, t.index, f);
2001
- for (; b.length > 0 && g < n.layers.length && v < e.layers.length; g++, v++) {
2000
+ let b = [new O(u, t.index, f)], g = f + 1, p = 1, K = new O(u, t.index, f);
2001
+ for (; b.length > 0 && g < n.layers.length && p < e.layers.length; g++, p++) {
2002
2002
  let L = [];
2003
2003
  for (let M = 0; M < n.layers[g].views.length; M++) {
2004
2004
  let q = n.layers[g].views[M];
@@ -2006,9 +2006,9 @@ var Gs = class {
2006
2006
  }
2007
2007
  let Ce = [];
2008
2008
  for (let M of L) {
2009
- let q = n.layers[g].views[M], oe = e.layers[v].models, ee;
2010
- for (let k = 0; k < oe.length; k++) if (q.name === oe[k].name) {
2011
- ee = oe[k];
2009
+ let q = n.layers[g].views[M], oe = e.layers[p].models, ee;
2010
+ for (let T = 0; T < oe.length; T++) if (q.name === oe[T].name) {
2011
+ ee = oe[T];
2012
2012
  break;
2013
2013
  }
2014
2014
  if (!ee) this[ue](n, {
@@ -2016,25 +2016,25 @@ var Gs = class {
2016
2016
  y: g
2017
2017
  }, null, !1);
2018
2018
  else {
2019
- let k = q.slots.value;
2020
- if (k.length == 0) {
2019
+ let T = q.slots.value;
2020
+ if (T.length == 0) {
2021
2021
  let Q = 0;
2022
2022
  q.slots.value = [new re(null, ee, Q)];
2023
- let U = g + 1, V = v + 1;
2023
+ let U = g + 1, V = p + 1;
2024
2024
  this[se](n, U, e, V, K);
2025
2025
  } else {
2026
- let Q = k[0];
2026
+ let Q = T[0];
2027
2027
  if (Q.model !== ee) {
2028
2028
  this[ue](n, {
2029
2029
  x: M,
2030
2030
  y: g
2031
2031
  }, null, !0), q.slots.value = [new re(null, ee, 0)];
2032
- let U = g + 1, V = v + 1;
2032
+ let U = g + 1, V = p + 1;
2033
2033
  this[se](n, U, e, V, K);
2034
2034
  } else {
2035
2035
  q[G] && Q.route !== null && this[Ke](Q.route);
2036
2036
  let U = [];
2037
- for (let V = 1; V < k.length; V++) U.push(k[V].index);
2037
+ for (let V = 1; V < T.length; V++) U.push(T[V].index);
2038
2038
  U.length > 0 && this[ue](n, {
2039
2039
  x: M,
2040
2040
  y: g
@@ -2046,7 +2046,7 @@ var Gs = class {
2046
2046
  }
2047
2047
  b = Ce;
2048
2048
  }
2049
- this[se](n, g, e, v, K);
2049
+ this[se](n, g, e, p, K);
2050
2050
  }
2051
2051
  }
2052
2052
  }
@@ -2054,7 +2054,7 @@ var Gs = class {
2054
2054
  let c = u[z];
2055
2055
  c && (t.slot = new Os(l, f, c?.view.name, c?.index ?? 0));
2056
2056
  }
2057
- return r.to = void 0, r.routeModel = void 0, this[xr](t, r), {
2057
+ return r.to = void 0, r.routeModel = void 0, this[Rr](t, r), {
2058
2058
  status: "success",
2059
2059
  message: ""
2060
2060
  };
@@ -2112,7 +2112,7 @@ var Gs = class {
2112
2112
  } else this[W].layers[t].views.push(a);
2113
2113
  return a;
2114
2114
  }
2115
- }, Ve = /* @__PURE__ */ Symbol("rk"), Tt = /* @__PURE__ */ Symbol("vd"), Pr = /* @__PURE__ */ Symbol("rv"), It = /* @__PURE__ */ Symbol("rvi"), _r = /* @__PURE__ */ Symbol("pv"), Ot = /* @__PURE__ */ Symbol("pvi"), Be = /* @__PURE__ */ Symbol("registerKey"), zr = /* @__PURE__ */ Symbol("lc"), Xs = class {
2115
+ }, Ve = /* @__PURE__ */ Symbol("rk"), kt = /* @__PURE__ */ Symbol("vd"), Er = /* @__PURE__ */ Symbol("rv"), It = /* @__PURE__ */ Symbol("rvi"), Pr = /* @__PURE__ */ Symbol("pv"), Ot = /* @__PURE__ */ Symbol("pvi"), Be = /* @__PURE__ */ Symbol("registerKey"), zr = /* @__PURE__ */ Symbol("lc"), Xs = class {
2116
2116
  [Be] = /* @__PURE__ */ new Map();
2117
2117
  constructor() {
2118
2118
  }
@@ -2147,7 +2147,7 @@ async function Qs(e, t) {
2147
2147
  Ne.pop();
2148
2148
  }
2149
2149
  }
2150
- function Ui(e) {
2150
+ function Vi(e) {
2151
2151
  const t = Kr();
2152
2152
  if (!t) return !1;
2153
2153
  const r = dt();
@@ -2162,10 +2162,10 @@ function Ui(e) {
2162
2162
  function Gr(e, t) {
2163
2163
  return dt(e)?.get(t) ?? null;
2164
2164
  }
2165
- function Vi(e, t, r) {
2165
+ function Wi(e, t, r) {
2166
2166
  dt(e)?.set(t, r);
2167
2167
  }
2168
- function Wi(e, t, r) {
2168
+ function Ji(e, t, r) {
2169
2169
  dt(e)?.delete(t);
2170
2170
  }
2171
2171
  var ht = /* @__PURE__ */ Symbol("hooksKey");
@@ -2173,7 +2173,7 @@ function Zs(e) {
2173
2173
  let t = e.get(ht);
2174
2174
  t || (t = [], e.set(ht, t));
2175
2175
  }
2176
- function Fr(e, t) {
2176
+ function _r(e, t) {
2177
2177
  const r = e.get(ht);
2178
2178
  r != null && Qs(e, async () => {
2179
2179
  for (let s = r.length - 1; s >= 0; s--) {
@@ -2214,28 +2214,24 @@ function ti(e, t, r) {
2214
2214
  function Xr(e) {
2215
2215
  return (t) => {
2216
2216
  const r = Gr(null, ht);
2217
- if (r == null) {
2218
- console.warn("[Fox]hooks context not found");
2219
- return;
2220
- }
2221
- Fe(() => {
2217
+ r && (Fe(() => {
2222
2218
  ti(r, e, t);
2223
- }), ei(r, e, t);
2219
+ }), ei(r, e, t));
2224
2220
  };
2225
2221
  }
2226
- var Ji = function(e) {
2222
+ var zi = function(e) {
2227
2223
  cs(e), Xr(yt.ACTIVATED)(e);
2228
- }, zi = function(e) {
2224
+ }, Gi = function(e) {
2229
2225
  hs(e), Xr(yt.INACTIVATED)(e);
2230
2226
  }, Qr = /* @__PURE__ */ Symbol("routeKey");
2231
- function Cr(e, t) {
2227
+ function Fr(e, t) {
2232
2228
  e.set(Qr, t);
2233
2229
  }
2234
- function Vt(e) {
2230
+ function Cr(e) {
2235
2231
  const t = Gr(e ?? null, Qr);
2236
2232
  return typeof t == "function" ? t() : t;
2237
2233
  }
2238
- var ri = "FoxBeforeEnter", si = "FoxEnter", ii = "FoxLeave", ni = "FoxLeave", Wt = "FoxLeaveEnd";
2234
+ var ri = "FoxBeforeEnter", si = "FoxEnter", ii = "FoxLeave", ni = "FoxLeave", Vt = "FoxLeaveEnd";
2239
2235
  function Zr(e, t = !1) {
2240
2236
  let r = null;
2241
2237
  return t ? r = e.showFromClass ?? e.enterFromClass : r = e.enterFromClass, r || (r = e.transitionName, r ? t ? `${r}-show-from` : `${r}-enter-from` : null);
@@ -2292,7 +2288,7 @@ function mi(e, t = !1) {
2292
2288
  let r = null;
2293
2289
  return t ? r = e.hideCancelled ?? e.leaveCancelled : r = e.leaveCancelled, r;
2294
2290
  }
2295
- function ir(e) {
2291
+ function sr(e) {
2296
2292
  let t, r = e.transitionDuration;
2297
2293
  return typeof r == "object" ? t = {
2298
2294
  enter: r.enter ?? -1,
@@ -2312,9 +2308,9 @@ function Pe(e, t) {
2312
2308
  function Se(e, t) {
2313
2309
  e.classList.remove(t);
2314
2310
  }
2315
- var vi = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2311
+ var pi = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2316
2312
  function mt(e) {
2317
- vi(e);
2313
+ pi(e);
2318
2314
  }
2319
2315
  function A(e, t) {
2320
2316
  w(e) && Reflect.apply(e, null, t);
@@ -2322,7 +2318,7 @@ function A(e, t) {
2322
2318
  function rs(e, t, r = -1, s, i, n) {
2323
2319
  let o = [];
2324
2320
  const l = () => {
2325
- for (let a of o) Zt(e, a.type, a.listener);
2321
+ for (let a of o) Qt(e, a.type, a.listener);
2326
2322
  o = [];
2327
2323
  };
2328
2324
  if (w(i)) {
@@ -2339,7 +2335,7 @@ function rs(e, t, r = -1, s, i, n) {
2339
2335
  const a = [
2340
2336
  "animationend",
2341
2337
  "transitionend",
2342
- Wt
2338
+ Vt
2343
2339
  ], u = (f) => {
2344
2340
  (f.target || f.srcElement) === f.currentTarget && (l(), Reflect.apply(i, null, [
2345
2341
  e,
@@ -2368,11 +2364,11 @@ function rs(e, t, r = -1, s, i, n) {
2368
2364
  });
2369
2365
  }
2370
2366
  }
2371
- function vt(e) {
2367
+ function pt(e) {
2372
2368
  return !Ee || e === null ? !1 : e.opsType === F.Append || e.opsType === F.Open;
2373
2369
  }
2374
2370
  function ss(e, t, r = {}, s, i = -1) {
2375
- if (e || vt(s)) {
2371
+ if (e || pt(s)) {
2376
2372
  const n = Zr(r, e);
2377
2373
  n && Pe(t, n);
2378
2374
  const o = Yr(r, e);
@@ -2385,7 +2381,7 @@ function ss(e, t, r = {}, s, i = -1) {
2385
2381
  }
2386
2382
  }
2387
2383
  function is(e, t, r = {}, s, i, n, o) {
2388
- if (!vt(i) && !e) {
2384
+ if (!pt(i) && !e) {
2389
2385
  w(o) && o(o, [t]);
2390
2386
  return;
2391
2387
  }
@@ -2418,7 +2414,7 @@ function is(e, t, r = {}, s, i, n, o) {
2418
2414
  });
2419
2415
  }
2420
2416
  function ns(e, t, r = {}, s, i = -1) {
2421
- if (e || vt(s)) {
2417
+ if (e || pt(s)) {
2422
2418
  const n = es(r, e);
2423
2419
  n && Pe(t, n);
2424
2420
  const o = ts(r, e);
@@ -2431,7 +2427,7 @@ function ns(e, t, r = {}, s, i = -1) {
2431
2427
  }
2432
2428
  }
2433
2429
  function os(e, t, r = {}, s, i, n, o, l) {
2434
- if (!vt(n) && !e) {
2430
+ if (!pt(n) && !e) {
2435
2431
  w(l) && A(l, [t]), !e && w(i) && i();
2436
2432
  return;
2437
2433
  }
@@ -2471,8 +2467,8 @@ function os(e, t, r = {}, s, i, n, o, l) {
2471
2467
  ]);
2472
2468
  });
2473
2469
  }
2474
- function Jt(e, t = {}, r, s = -1) {
2475
- const i = t.mode ?? "default", n = ir(t);
2470
+ function Wt(e, t = {}, r, s = -1) {
2471
+ const i = t.mode ?? "default", n = sr(t);
2476
2472
  return {
2477
2473
  mode: i,
2478
2474
  persisted: !1,
@@ -2487,17 +2483,17 @@ function Jt(e, t = {}, r, s = -1) {
2487
2483
  e.transition = null;
2488
2484
  });
2489
2485
  },
2490
- clone: (o) => Jt(e, t, r, s)
2486
+ clone: (o) => Wt(e, t, r, s)
2491
2487
  };
2492
2488
  }
2493
2489
  function ls(e) {
2494
2490
  return e.el;
2495
2491
  }
2496
- function pi(e, t = {}, r, s, i, n) {
2492
+ function vi(e, t = {}, r, s, i, n) {
2497
2493
  if (i === !0) {
2498
2494
  const o = ls(e);
2499
2495
  if (o == null) return;
2500
- const l = ir(t);
2496
+ const l = sr(t);
2501
2497
  ss(!0, o, t, r, s), is(!0, o, t, l.show, r, s, (a) => {
2502
2498
  w(n) && A(n, [a]);
2503
2499
  });
@@ -2507,7 +2503,7 @@ function gi(e, t = {}, r, s, i, n) {
2507
2503
  if (i === !0) {
2508
2504
  const o = ls(e);
2509
2505
  if (o == null) return;
2510
- const l = ir(t);
2506
+ const l = sr(t);
2511
2507
  ns(!0, o, t, r, s), os(!0, o, t, l.hide, null, r, s, (a) => {
2512
2508
  w(n) && A(n, [a]);
2513
2509
  });
@@ -2531,9 +2527,9 @@ function as(e, t = {}, r, s = -1) {
2531
2527
  leave: (i, n) => {
2532
2528
  ze(ii, {}, i), mt(() => {
2533
2529
  const o = (l) => {
2534
- (l.target || l.srcElement) === l.currentTarget && (Zt(i, Wt, o), n && Reflect.apply(n, null, []), e.transition = null);
2530
+ (l.target || l.srcElement) === l.currentTarget && (Qt(i, Vt, o), n && Reflect.apply(n, null, []), e.transition = null);
2535
2531
  };
2536
- ft(i, Wt, o), ze(ni, {}, i);
2532
+ ft(i, Vt, o), ze(ni, {}, i);
2537
2533
  });
2538
2534
  },
2539
2535
  clone: (i) => as(e, t, r, s)
@@ -2556,7 +2552,7 @@ var wi = class {
2556
2552
  constructor(e, t) {
2557
2553
  this.node = e, this.state = t;
2558
2554
  }
2559
- }, zt = jr({
2555
+ }, Jt = jr({
2560
2556
  name: "RouterView",
2561
2557
  inheritAttrs: !1,
2562
2558
  props: {
@@ -2746,27 +2742,27 @@ var wi = class {
2746
2742
  }
2747
2743
  },
2748
2744
  setup(e, t) {
2749
- const r = Kr(), s = e.multi === !0, i = N(Ve, null), n = N(Tt, 0), o = N(Pr, null), l = N(It, -1);
2745
+ const r = Kr(), s = e.multi === !0, i = N(Ve, null), n = N(kt, 0), o = N(Er, null), l = N(It, -1);
2750
2746
  let a = null, u = e.modelSlot ?? null;
2751
2747
  if (u) {
2752
- if (te(Tt, n + 1), te(It, u.index), te(Ot, u.index), !u.route) {
2748
+ if (te(kt, n + 1), te(It, u.index), te(Ot, u.index), !u.route) {
2753
2749
  console.warn("[Fox]child view render error, route not exist");
2754
2750
  return;
2755
2751
  }
2756
2752
  const c = lt(u, !0);
2757
- c && (Zs(c), Cr(c, () => u?.route ?? null));
2753
+ c && (Zs(c), Fr(c, () => u?.route ?? null));
2758
2754
  } else {
2759
2755
  if (i == null) {
2760
2756
  console.error("[Fox]router is not been injected");
2761
2757
  return;
2762
2758
  }
2763
- const c = e.name, h = N(_r, null), y = N(Ot, 0);
2759
+ const c = e.name, h = N(Pr, null), y = N(Ot, 0);
2764
2760
  if (a = i[Vr](c, n, o, l, h, y), a === null) return;
2765
- te(_r, a);
2761
+ te(Pr, a);
2766
2762
  const d = a[G] === !0;
2767
- if (d && te(Pr, a), !s && (te(It, -1), te(Tt, n + 1), te(Ot, -1), d && r)) {
2763
+ if (d && te(Er, a), !s && (te(It, -1), te(kt, n + 1), te(Ot, -1), d && r)) {
2768
2764
  const m = lt(r, !0);
2769
- m && Cr(m, () => {
2765
+ m && Fr(m, () => {
2770
2766
  const b = a?.slots.value ?? [];
2771
2767
  return b.length > 0 ? b[0].route : null;
2772
2768
  });
@@ -2782,35 +2778,35 @@ var wi = class {
2782
2778
  if (s) {
2783
2779
  const c = /* @__PURE__ */ new Map(), h = [], y = a?.slots.value, d = [];
2784
2780
  for (let g = 0; g < y.length; g++) {
2785
- const v = y[g], K = `${e.name}_${v.index}`, L = ie(e.transition, v.route, g) ?? !0, Ce = { modelSlot: v };
2781
+ const p = y[g], K = `${e.name}_${p.index}`, L = ie(e.transition, p.route, g) ?? !0, Ce = { modelSlot: p };
2786
2782
  let M;
2787
- t.slots.default ? M = he(zt, Ce, { default: t.slots.default }) : M = he(zt, Ce);
2788
- const q = {}, oe = ie(e.viewClass, v.route, g);
2783
+ t.slots.default ? M = he(Jt, Ce, { default: t.slots.default }) : M = he(Jt, Ce);
2784
+ const q = {}, oe = ie(e.viewClass, p.route, g);
2789
2785
  typeof oe == "string" && oe.length > 0 && (q[oe] = !0);
2790
- const ee = ie(e.viewActiveClass, v.route, g), k = ie(e.viewInactiveClass, v.route, g), Q = f.value.get(K);
2791
- 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) {
2792
- const nr = Q.node;
2793
- v.active ? d.unshift(() => {
2794
- const pt = () => {
2795
- const Ae = lt(v);
2796
- Ae != null && Fr(Ae, yt.ACTIVATED);
2786
+ const ee = ie(e.viewActiveClass, p.route, g), T = ie(e.viewInactiveClass, p.route, g), Q = f.value.get(K);
2787
+ if (typeof ee == "string" && ee.length > 0 && (q[ee] = p.active), typeof T == "string" && T.length > 0 && (q[T] = !p.active), Q && p.active !== Q.state) {
2788
+ const ir = Q.node;
2789
+ p.active ? d.unshift(() => {
2790
+ const vt = () => {
2791
+ const Ae = lt(p);
2792
+ Ae != null && _r(Ae, yt.ACTIVATED);
2797
2793
  };
2798
- pi(nr, e, v.route, g, L, pt);
2794
+ vi(ir, e, p.route, g, L, vt);
2799
2795
  }) : d.push(() => {
2800
- const pt = () => {
2801
- const Ae = lt(v);
2802
- Ae != null && Fr(Ae, yt.INACTIVATED);
2796
+ const vt = () => {
2797
+ const Ae = lt(p);
2798
+ Ae != null && _r(Ae, yt.INACTIVATED);
2803
2799
  };
2804
- gi(nr, e, v.route, g, L, pt);
2800
+ gi(ir, e, p.route, g, L, vt);
2805
2801
  });
2806
2802
  }
2807
2803
  const U = {
2808
2804
  class: q,
2809
2805
  key: K
2810
- }, V = ie(e.viewTagProps, v.route, g);
2811
- V !== null && typeof V == "object" && j(!0, U, be(V, i?.propsFilter)), v.route?.viewTagAttrs && typeof v.route?.viewTagAttrs == "object" && j(!0, U, be(v.route.viewTagAttrs, i?.propsFilter));
2812
- const ve = he(ie(e.viewTag, v.route, g), U, { default: () => [M] });
2813
- c.set(K, new wi(ve, v.active)), f.value.delete(K), L === !0 ? ve.transition = Jt(ve, e, v.route, g) : L === "custom" && (ve.transition = as(ve, e, v.route, g)), h.push(ve);
2806
+ }, V = ie(e.viewTagProps, p.route, g);
2807
+ V !== null && typeof V == "object" && j(!0, U, be(V, i?.propsFilter)), p.route?.viewTagAttrs && typeof p.route?.viewTagAttrs == "object" && j(!0, U, be(p.route.viewTagAttrs, i?.propsFilter));
2808
+ const pe = he(ie(e.viewTag, p.route, g), U, { default: () => [M] });
2809
+ c.set(K, new wi(pe, p.active)), f.value.delete(K), L === !0 ? pe.transition = Wt(pe, e, p.route, g) : L === "custom" && (pe.transition = as(pe, e, p.route, g)), h.push(pe);
2814
2810
  }
2815
2811
  f.value = c, bi(d);
2816
2812
  const m = ie(e.tag, null, -1), b = {};
@@ -2829,7 +2825,7 @@ var wi = class {
2829
2825
  const h = c[0], y = h.route, d = h.model, m = {};
2830
2826
  d.props && (typeof d.props == "object" ? j(!1, m, be(d.props, i?.propsFilter)) : d.props === !0 && typeof y?.params == "object" && j(!1, m, be(y.params, i?.propsFilter)));
2831
2827
  const b = he(d.component, m);
2832
- return (ie(e.transition, y, -1) ?? !0) && (b.transition = Jt(b, e, y, -1)), Bt(t.slots.default, {
2828
+ return (ie(e.transition, y, -1) ?? !0) && (b.transition = Wt(b, e, y, -1)), Bt(t.slots.default, {
2833
2829
  Component: b,
2834
2830
  route: y
2835
2831
  }) ?? b;
@@ -3321,7 +3317,7 @@ var $r = class {
3321
3317
  }
3322
3318
  try {
3323
3319
  let n = await Ai(s.path);
3324
- if (er(n) && (n = n.default ?? n), We(n)) {
3320
+ if (Yt(n) && (n = n.default ?? n), We(n)) {
3325
3321
  t.progress.work(!1, t.index, n), r.resolve();
3326
3322
  return;
3327
3323
  }
@@ -3370,7 +3366,7 @@ var $r = class {
3370
3366
  const c = f.map((h) => h === "exports" ? ((!e.exports || typeof e.exports != "object") && (e.exports = {}), e.exports) : h === "module" ? e : h === "require" ? t : h);
3371
3367
  if (typeof a == "function") {
3372
3368
  const h = Reflect.apply(a, e, c);
3373
- h && typeof h == "object" && (e.exports = h);
3369
+ h && typeof h == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, h)) : e.exports = h;
3374
3370
  } else e.exports = a;
3375
3371
  e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3376
3372
  } catch (c) {
@@ -3380,7 +3376,7 @@ var $r = class {
3380
3376
  else {
3381
3377
  if (typeof a == "function") {
3382
3378
  const f = Reflect.apply(a, e, []);
3383
- f && typeof f == "object" && (e.exports = e.exports ?? {}, Object.assign(e.exports, f));
3379
+ f && typeof f == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, f)) : e.exports = f;
3384
3380
  } else e.exports = a;
3385
3381
  e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3386
3382
  }
@@ -3445,9 +3441,9 @@ var $r = class {
3445
3441
  constructor(e, t, r) {
3446
3442
  this.index = e, this.resource = t, this.progress = r;
3447
3443
  }
3448
- }, Gt = /* @__PURE__ */ Symbol("fk"), Xt = /* @__PURE__ */ Symbol("fbk"), Qt = /* @__PURE__ */ Symbol("fepk");
3449
- function Gi(e = {}) {
3450
- const t = new Gs(e), r = new cr(), s = new Ar(), i = new $r(), n = {
3444
+ }, zt = /* @__PURE__ */ Symbol("fk"), Gt = /* @__PURE__ */ Symbol("fbk"), Xt = /* @__PURE__ */ Symbol("fepk");
3445
+ function Xi(e = {}) {
3446
+ const t = new Gs(e), r = new fr(), s = new Ar(), i = new $r(), n = {
3451
3447
  get router() {
3452
3448
  return t;
3453
3449
  },
@@ -3455,7 +3451,7 @@ function Gi(e = {}) {
3455
3451
  return r;
3456
3452
  },
3457
3453
  get Bus() {
3458
- return cr;
3454
+ return fr;
3459
3455
  },
3460
3456
  get EventProxy() {
3461
3457
  return Ar;
@@ -3473,10 +3469,10 @@ function Gi(e = {}) {
3473
3469
  return i;
3474
3470
  },
3475
3471
  get isESModule() {
3476
- return er;
3472
+ return Yt;
3477
3473
  },
3478
3474
  install(o, l = {}) {
3479
- o.provide(Ve, t), o.provide(Gt, n), o.provide(Xt, r), o.provide(Qt, s), l.install !== !1 && (o.component(Pi, zt), o.component(_i, Si)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3475
+ o.provide(Ve, t), o.provide(zt, n), o.provide(Gt, r), o.provide(Xt, s), l.install !== !1 && (o.component(Pi, Jt), o.component(_i, Si)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3480
3476
  return n;
3481
3477
  } }), Reflect.defineProperty(o.config.globalProperties, "$router", { get() {
3482
3478
  return t;
@@ -3501,9 +3497,9 @@ function Gi(e = {}) {
3501
3497
  }, o.config.globalProperties.$fox_emit = function(a, ...u) {
3502
3498
  let f = s;
3503
3499
  Reflect.apply(f.trigger, f, [a, ...u]);
3504
- }, o.mixin({ setup() {
3505
- return { $route: Vt() };
3506
- } })), t.init();
3500
+ }, o.mixin({ computed: { $route() {
3501
+ return ji(this);
3502
+ } } })), t.init();
3507
3503
  }
3508
3504
  };
3509
3505
  return n;
@@ -3511,23 +3507,23 @@ function Gi(e = {}) {
3511
3507
  function us(e) {
3512
3508
  return _e() ? N(Ve, null) : e ? e.$?.appContext?.provides?.[Ve] ?? null : null;
3513
3509
  }
3514
- function Xi(e) {
3515
- let t = Vt(e);
3510
+ function ji(e) {
3511
+ let t = Cr(e);
3516
3512
  if (!t && e && !_e()) {
3517
3513
  let r = e;
3518
- for (r = r.$parent; r && (t = Vt(r), !t); )
3514
+ for (r = r.$parent; r && (t = Cr(r), !t); )
3519
3515
  r = r.$parent;
3520
3516
  }
3521
3517
  return t;
3522
3518
  }
3523
3519
  function Qi(e) {
3524
- return _e() ? N(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3520
+ return _e() ? N(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3525
3521
  }
3526
3522
  function Zi(e) {
3527
- return _e() ? N(Xt, null) : e ? e.$?.appContext?.provides?.[Xt] ?? null : null;
3523
+ return _e() ? N(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3528
3524
  }
3529
3525
  function Yi(e) {
3530
- return _e() ? N(Qt, null) : e ? e.$?.appContext?.provides?.[Qt] ?? null : null;
3526
+ return _e() ? N(Xt, null) : e ? e.$?.appContext?.provides?.[Xt] ?? null : null;
3531
3527
  }
3532
3528
  function en(e) {
3533
3529
  const t = us();
@@ -3566,57 +3562,57 @@ function tn(e) {
3566
3562
  });
3567
3563
  }
3568
3564
  export {
3569
- cr as Bus,
3565
+ fr as Bus,
3570
3566
  ct as EventChain,
3571
3567
  Ar as EventProxy,
3572
3568
  ri as FoxBeforeEnter,
3573
3569
  ii as FoxBeforeLeave,
3574
3570
  si as FoxEnter,
3575
3571
  ni as FoxLeave,
3576
- Wt as FoxLeaveEnd,
3572
+ Vt as FoxLeaveEnd,
3577
3573
  F as OperationType,
3578
3574
  x as Route,
3579
3575
  Gs as Router,
3580
3576
  Si as RouterLink,
3581
- zt as RouterView,
3582
- Ui as bindLifecycleContextToCurrentScope,
3583
- Gi as createFox,
3577
+ Jt as RouterView,
3578
+ Vi as bindLifecycleContextToCurrentScope,
3579
+ Xi as createFox,
3584
3580
  Ws as createMemoryHistory,
3585
3581
  Us as createWebHashHistory,
3586
- Ni as createWebHistory,
3587
- Wi as deleteContextValue,
3582
+ Ui as createWebHistory,
3583
+ Ji as deleteContextValue,
3588
3584
  j as extend,
3589
3585
  Gr as injectContextValue,
3590
3586
  dt as injectLifecycleContext,
3591
- or as isArray,
3592
- Mi as isDate,
3593
- er as isESModule,
3594
- ar as isEqual,
3587
+ nr as isArray,
3588
+ Ti as isDate,
3589
+ Yt as isESModule,
3590
+ lr as isEqual,
3595
3591
  w as isFunction,
3596
- Ki as isMap,
3592
+ Li as isMap,
3597
3593
  We as isNil,
3598
3594
  gs as isObject,
3599
3595
  ws as isPlainObject,
3600
- Ii as isPromise,
3601
- Li as isSet,
3596
+ Oi as isPromise,
3597
+ Mi as isSet,
3602
3598
  ki as isString,
3603
- Ti as isSymbol,
3599
+ Ii as isSymbol,
3604
3600
  tn as onAfterRouteUpdate,
3605
3601
  en as onBeforeRouteUpdate,
3606
- Ji as onFoxActivated,
3607
- zi as onFoxInactivated,
3608
- Vi as provideContextValue,
3609
- Hi as rawState,
3610
- Bi as reactiveState,
3611
- Di as shallowReactiveState,
3612
- kr as toBoolean,
3613
- Oi as toNumber,
3614
- Yt as toTypeString,
3615
- lr as typeOf,
3602
+ zi as onFoxActivated,
3603
+ Gi as onFoxInactivated,
3604
+ Wi as provideContextValue,
3605
+ Ni as rawState,
3606
+ Di as reactiveState,
3607
+ Hi as shallowReactiveState,
3608
+ Tr as toBoolean,
3609
+ Bi as toNumber,
3610
+ Zt as toTypeString,
3611
+ or as typeOf,
3616
3612
  Zi as useBus,
3617
3613
  Yi as useEventProxy,
3618
3614
  Qi as useFox,
3619
- Xi as useRoute,
3615
+ ji as useRoute,
3620
3616
  us as useRouter,
3621
3617
  Qs as withLifecycleContext
3622
3618
  };