@fox-js/fox 3.1.1-30 → 3.1.1-32

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,16 +1,16 @@
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
- var Ee = typeof window < "u", C = function() {
1
+ import { defineComponent as $r, effectScope as us, getCurrentScope as Kr, h as ue, hasInjectionContext as xe, inject as L, onActivated as fs, onDeactivated as cs, onScopeDispose as Pe, provide as Z, reactive as hs, readonly as ys, ref as ds, shallowReactive as vs, shallowRef as jr, toRaw as Ot, watch as ms } from "vue";
2
+ var Re = typeof window < "u", F = function() {
3
3
  return window;
4
- }, Je = function() {
4
+ }, Ve = function() {
5
5
  return window.document;
6
6
  };
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 Qt(e, t, r) {
10
+ function Xt(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
- var ze = (e, t, r) => {
13
+ var We = (e, t, r) => {
14
14
  t = t ?? {
15
15
  bubbles: !1,
16
16
  cancelable: !1,
@@ -20,12 +20,12 @@ 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
- }, 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
- return e.__esModule || Rs && e[Symbol.toStringTag] === "Module";
23
+ }, sr = Array.isArray, ji = (e) => Qt(e) === "[object Map]", ki = (e) => Qt(e) === "[object Set]", Ti = (e) => e instanceof Date, b = (e) => typeof e == "function", Mi = (e) => typeof e == "string", Li = (e) => typeof e == "symbol", ps = (e) => e !== null && typeof e == "object", Ii = (e) => ps(e) && b(e.then) && b(e.catch), Be = (e) => e == null, gs = Object.prototype.toString, Qt = (e) => gs.call(e), ws = (e) => Qt(e) === "[object Object]", bs = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
24
+ function Zt(e) {
25
+ return e.__esModule || bs && e[Symbol.toStringTag] === "Module";
26
26
  }
27
- var xs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
28
- function j(...e) {
27
+ var Rs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
28
+ function q(...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 j(...e) {
34
34
  if (l !== a)
35
35
  if (i === !0 && a && typeof a == "object") {
36
36
  let u;
37
- Array.isArray(a) ? u = l && Array.isArray(l) ? l : [] : u = l && typeof l == "object" ? l : {}, t[o] = j(i, u, a);
37
+ Array.isArray(a) ? u = l && Array.isArray(l) ? l : [] : u = l && typeof l == "object" ? l : {}, t[o] = q(i, u, a);
38
38
  } else a !== void 0 && (t[o] = a);
39
39
  }
40
40
  }
41
41
  return t;
42
42
  }
43
- function Mr(e, t, r = !1) {
43
+ function kr(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 Mr(e, t, r = !1) {
48
48
  if (i !== n)
49
49
  if (typeof n == "object") {
50
50
  if (!Array.isArray(n) && !ws(n)) continue;
51
- i = Mr(i, n, r), e[s] = i;
51
+ i = kr(i, n, r), e[s] = i;
52
52
  } else {
53
53
  if (typeof n == "function") continue;
54
54
  e[s] = n;
@@ -56,24 +56,24 @@ function Mr(e, t, r = !1) {
56
56
  }
57
57
  return e;
58
58
  }
59
- var De = class Nt {
59
+ var Oe = class Ht {
60
60
  static seed = (/* @__PURE__ */ new Date()).getTime();
61
61
  static get() {
62
- let t = ++Nt.seed;
63
- return t >= Number.MAX_VALUE && (Nt.seed = 0), t;
62
+ let t = ++Ht.seed;
63
+ return t >= Number.MAX_VALUE && (Ht.seed = 0), t;
64
64
  }
65
- }, gt = xs ? Promise.resolve() : null;
65
+ }, pt = Rs ? Promise.resolve() : null;
66
66
  function He(e, ...t) {
67
- gt !== null ? t && t.length > 0 ? gt.then(() => {
67
+ pt !== null ? t && t.length > 0 ? pt.then(() => {
68
68
  e(t);
69
- }) : gt.then(e) : t && t.length > 0 ? setTimeout(() => {
69
+ }) : pt.then(e) : t && t.length > 0 ? setTimeout(() => {
70
70
  e(t);
71
71
  }) : setTimeout(e);
72
72
  }
73
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 Bi(e) {
76
+ function Oi(e) {
77
77
  return typeof e == "number" ? e : Number(e);
78
78
  }
79
79
  var Ss = {
@@ -86,46 +86,46 @@ var Ss = {
86
86
  "[object RegExp]": "regExp",
87
87
  "[object Object]": "object"
88
88
  };
89
- function or(e) {
89
+ function ir(e) {
90
90
  let t = Object.prototype.toString.call(e);
91
91
  return e == null ? String(e) : Ss[t] || "object";
92
92
  }
93
- function lr(e, t) {
93
+ function nr(e, t) {
94
94
  if (e == t) return !0;
95
95
  if (e === void 0 || t === void 0) return !1;
96
- let r = or(e);
97
- if (r !== or(t)) return !1;
96
+ let r = ir(e);
97
+ if (r !== ir(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 (!lr(l, a)) return !1;
103
+ if (!nr(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 (!lr(i, n)) return !1;
110
+ if (!nr(i, n)) return !1;
111
111
  }
112
112
  return !0;
113
113
  }
114
114
  return !1;
115
115
  }
116
- var kr = (e) => {
116
+ var Mr = (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 = kr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
120
+ s && !Array.isArray(s) && typeof s == "object" && (s = Mr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
121
121
  }
122
122
  return t;
123
- }, Es = /^Symbol\((.*)\)$/, Ir = (e) => {
123
+ }, xs = /^Symbol\((.*)\)$/, Lr = (e) => {
124
124
  const t = {};
125
125
  for (let r of Reflect.ownKeys(e)) {
126
126
  let s = e[r];
127
- s && !Array.isArray(s) && typeof s == "object" && (s = Ir(s));
128
- const i = Es.exec(r);
127
+ s && !Array.isArray(s) && typeof s == "object" && (s = Lr(s));
128
+ const i = xs.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 kr = (e) => {
133
133
  }
134
134
  return t;
135
135
  };
136
- function Or(e, t) {
136
+ function Ir(e, t) {
137
137
  let r = null;
138
138
  return function(...s) {
139
139
  r && clearTimeout(r), r = setTimeout(() => {
@@ -141,36 +141,36 @@ function Or(e, t) {
141
141
  }, t);
142
142
  };
143
143
  }
144
- var ar = /* @__PURE__ */ Symbol("idKey"), me = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), X = /* @__PURE__ */ Symbol("growKey"), Br = class {
145
- [X] = !0;
146
- [ar];
147
- [me] = ms();
148
- [R] = /* @__PURE__ */ new Map();
144
+ var or = /* @__PURE__ */ Symbol("idKey"), ce = /* @__PURE__ */ Symbol("valueKey"), S = /* @__PURE__ */ Symbol("childrenKey"), W = /* @__PURE__ */ Symbol("growKey"), Or = class {
145
+ [W] = !0;
146
+ [or];
147
+ [ce] = ds();
148
+ [S] = /* @__PURE__ */ new Map();
149
149
  constructor(e) {
150
- this[ar] = e;
150
+ this[or] = e;
151
151
  }
152
152
  }, Ps = class {
153
153
  get(e, t) {
154
- if (t == "value") return e[me].value;
155
- if (t === "grow") return e[X];
156
- let r = e[R].get(t);
157
- if (r) return Ue(r);
158
- if (e[X])
159
- return r = tr(t), r[X] = e[X], e[R].set(t, r), Ue(r);
154
+ if (t == "value") return e[ce].value;
155
+ if (t === "grow") return e[W];
156
+ let r = e[S].get(t);
157
+ if (r) return Ne(r);
158
+ if (e[W])
159
+ return r = er(t), r[W] = e[W], e[S].set(t, r), Ne(r);
160
160
  }
161
161
  set(e, t, r) {
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);
162
+ return t == "value" ? (e[ce].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : r == null ? (e[S].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
163
163
  }
164
164
  deleteProperty(e, t) {
165
- return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
165
+ return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[S].delete(t), !0);
166
166
  }
167
- }, er = "__proxy__";
168
- function tr(e) {
169
- const t = new Br(e);
170
- return Reflect.set(t, er, new Proxy(t, new Ps())), t;
167
+ }, Yt = "__proxy__";
168
+ function er(e) {
169
+ const t = new Or(e);
170
+ return Reflect.set(t, Yt, new Proxy(t, new Ps())), t;
171
171
  }
172
- function Ue(e) {
173
- return Reflect.get(e, er);
172
+ function Ne(e) {
173
+ return Reflect.get(e, Yt);
174
174
  }
175
175
  var _s = class {
176
176
  name = "";
@@ -179,7 +179,7 @@ var _s = class {
179
179
  initFlag = !1;
180
180
  state = {};
181
181
  constructor(e = {}, t) {
182
- if (e.persistPolicy && e.persistPolicy !== "memory" && We(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
182
+ if (e.persistPolicy && e.persistPolicy !== "memory" && Be(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
183
183
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "memory", this.storage = e.storage, t && typeof t == "object" && Object.assign(this.state, t);
184
184
  }
185
185
  init(e) {
@@ -189,8 +189,8 @@ var _s = class {
189
189
  if (!this.persistPolicy || this.persistPolicy === "memory") return null;
190
190
  let e = null;
191
191
  if (this.persistPolicy === "custom") e = this.storage;
192
- else if (Ee) {
193
- const t = C();
192
+ else if (Re) {
193
+ const t = F();
194
194
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
195
195
  }
196
196
  return e;
@@ -251,7 +251,7 @@ var _s = class {
251
251
  console.error(e);
252
252
  }
253
253
  }
254
- }, Dr = class extends Br {
254
+ }, Hr = class extends Or {
255
255
  _persistHandler;
256
256
  constructor(e = {}, t) {
257
257
  super("__root__"), this._persistHandler = new _s(e, t), this._persistHandler.init(this);
@@ -263,9 +263,9 @@ 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 = tr(i), r[R].set(i, n)), r = n;
266
+ r[S].has(i) ? n = r[S].get(i) : (n = er(i), r[S].set(i, n)), r = n;
267
267
  }
268
- return r[me].value = e[t - 1], this._persistHandler.put(e), !0;
268
+ return r[ce].value = e[t - 1], this._persistHandler.put(e), !0;
269
269
  }
270
270
  get(...e) {
271
271
  let t = e.length;
@@ -273,10 +273,10 @@ var _s = class {
273
273
  let r = this;
274
274
  for (let s = 0; s < t; s++) {
275
275
  let i = e[s];
276
- if (r[R].has(i)) r = r[R].get(i);
276
+ if (r[S].has(i)) r = r[S].get(i);
277
277
  else return;
278
278
  }
279
- return r[me].value;
279
+ return r[ce].value;
280
280
  }
281
281
  remove(...e) {
282
282
  let t = e.length;
@@ -284,11 +284,11 @@ var _s = class {
284
284
  let r = this;
285
285
  for (let i = 0; i < t - 1; i++) {
286
286
  const n = e[i];
287
- if (r[R].has(n)) r = r[R].get(n);
287
+ if (r[S].has(n)) r = r[S].get(n);
288
288
  else return !1;
289
289
  }
290
290
  const s = e[t - 1];
291
- return r[R].has(s) ? (r[R].delete(s), this._persistHandler.remove(e), !0) : !1;
291
+ return r[S].has(s) ? (r[S].delete(s), this._persistHandler.remove(e), !0) : !1;
292
292
  }
293
293
  contains(...e) {
294
294
  const t = e.length;
@@ -296,14 +296,14 @@ var _s = class {
296
296
  let r = this;
297
297
  for (let i = 0; i < t - 1; i++) {
298
298
  let n = e[i];
299
- if (r[R].has(n)) r = r[R].get(n);
299
+ if (r[S].has(n)) r = r[S].get(n);
300
300
  else return !1;
301
301
  }
302
302
  const s = e[t - 1];
303
- return r[R].has(s);
303
+ return r[S].has(s);
304
304
  }
305
305
  clear() {
306
- this[R].clear(), this._persistHandler.clear();
306
+ this[S].clear(), this._persistHandler.clear();
307
307
  }
308
308
  }, Fs = [
309
309
  "put",
@@ -313,49 +313,49 @@ var _s = class {
313
313
  "clear",
314
314
  "_persistHandler"
315
315
  ];
316
- function ur(e) {
316
+ function lr(e) {
317
317
  return Fs.includes(e);
318
318
  }
319
319
  var Cs = class {
320
320
  get(e, t) {
321
- if (t == "value") return e[me].value;
322
- if (t === "grow") return e[X];
323
- if (t === R) return e[R];
324
- if (typeof t == "string" && ur(t)) return e[t];
321
+ if (t == "value") return e[ce].value;
322
+ if (t === "grow") return e[W];
323
+ if (t === S) return e[S];
324
+ if (typeof t == "string" && lr(t)) return e[t];
325
325
  const r = String(t);
326
- let s = e[R].get(r);
327
- if (s) return Ue(s);
328
- if (e[X])
329
- return s = tr(r), s[X] = e[X], e[R].set(r, s), Ue(s);
326
+ let s = e[S].get(r);
327
+ if (s) return Ne(s);
328
+ if (e[W])
329
+ return s = er(r), s[W] = e[W], e[S].set(r, s), Ne(s);
330
330
  }
331
331
  set(e, t, r) {
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);
332
+ return t == "value" ? (e[ce].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : lr(t) ? !1 : r == null ? (e[S].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
333
333
  }
334
334
  deleteProperty(e, t) {
335
- return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
335
+ return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[S].delete(t), !0);
336
336
  }
337
337
  };
338
- function As(e, t) {
339
- const r = new Dr(e, t), s = new Cs(), i = new Proxy(r, s);
340
- return Reflect.set(r, er, i), r;
338
+ function Es(e, t) {
339
+ const r = new Hr(e, t), s = new Cs(), i = new Proxy(r, s);
340
+ return Reflect.set(r, Yt, i), r;
341
341
  }
342
- var fr = new Proxy(Dr, { construct(e, t) {
342
+ var ar = new Proxy(Hr, { construct(e, t) {
343
343
  const r = t[0] ?? {}, s = t[1];
344
- return Ue(As(r, s));
345
- } }), rr = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Hr = class {
344
+ return Ne(Es(r, s));
345
+ } }), Dt = /* @__PURE__ */ new WeakMap(), tr = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Dr = class {
346
346
  name = "";
347
347
  persistPolicy = "memory";
348
348
  storage;
349
349
  constructor(e = {}) {
350
- if (e.persistPolicy && e.persistPolicy !== "memory" && We(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
350
+ if (e.persistPolicy && e.persistPolicy !== "memory" && Be(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
351
351
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "memory", this.storage = e.storage;
352
352
  }
353
353
  getStorage() {
354
354
  if (!this.persistPolicy || this.persistPolicy === "memory") return null;
355
355
  let e = null;
356
356
  if (this.persistPolicy === "custom") e = this.storage;
357
- else if (Ee) {
358
- const t = C();
357
+ else if (Re) {
358
+ const t = F();
359
359
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
360
360
  }
361
361
  return e;
@@ -363,7 +363,7 @@ var fr = 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 || rr(e)) return;
366
+ if (t === null || tr(e)) return;
367
367
  const r = `_state_${this.name}`, s = JSON.stringify(e ?? {});
368
368
  t.setItem(r, s);
369
369
  }
@@ -386,45 +386,54 @@ var fr = new Proxy(Dr, { construct(e, t) {
386
386
  }
387
387
  };
388
388
  function Nr(e, t, r) {
389
- const s = new Hr(r);
389
+ const s = new Dr(r);
390
390
  s.restore(t);
391
- const i = (l) => {
392
- const a = Ht(l), u = {};
393
- for (let f in a) {
394
- const c = a[f];
395
- We(c) || (u[f] = c);
391
+ const i = (a) => {
392
+ const u = Ot(a), f = {};
393
+ for (let c in u) {
394
+ const h = u[c];
395
+ Be(h) || (f[c] = h);
396
396
  }
397
- rr(u) ? s.removeState() : s.saveState(u);
397
+ tr(f) ? s.removeState() : s.saveState(f);
398
398
  };
399
399
  let n = null;
400
- r && r.debounce === !1 ? n = i : n = Or(i, r && r.debounceDelay ? r.debounceDelay : 250);
401
- const o = e ? ps(t) : ys(t);
402
- return fs(!0).run(() => {
403
- vs(o, (l) => {
404
- const a = Ht(l);
405
- n(a);
400
+ if (r && r.debounce === !1) n = i;
401
+ else {
402
+ const a = r && r.debounceDelay ? r.debounceDelay : 250;
403
+ n = Ir(i, a);
404
+ }
405
+ const o = e ? vs(t) : hs(t), l = us(!0);
406
+ return l.run(() => {
407
+ ms(o, (a) => {
408
+ const u = Ot(a);
409
+ n(u);
406
410
  });
407
- }), o;
411
+ }), Dt.set(o, l), o;
408
412
  }
409
- function Di(e, t) {
413
+ function Hi(e, t) {
410
414
  return Nr(!1, e, t);
411
415
  }
412
- function Hi(e, t) {
416
+ function Di(e, t) {
413
417
  return Nr(!0, e, t);
414
418
  }
415
- function qs(e, t) {
416
- const r = new Hr(t);
419
+ function As(e, t) {
420
+ const r = new Dr(t);
417
421
  r.restore(e);
418
422
  const s = (n) => {
419
- const o = Ht(n), l = {};
423
+ const o = Ot(n), l = {};
420
424
  for (let a in o) {
421
425
  const u = o[a];
422
- We(u) || (l[a] = u);
426
+ Be(u) || (l[a] = u);
423
427
  }
424
- rr(l) ? r.removeState() : r.saveState(l);
428
+ tr(l) ? r.removeState() : r.saveState(l);
425
429
  };
426
430
  let i = null;
427
- return t && t.debounce === !1 ? i = s : i = Or(s, t && t.debounceDelay ? t.debounceDelay : 250), new Proxy(e, {
431
+ if (t && t.debounce === !1) i = s;
432
+ else {
433
+ const n = t && t.debounceDelay ? t.debounceDelay : 250;
434
+ i = Ir(s, n);
435
+ }
436
+ return new Proxy(e, {
428
437
  get(n, o) {
429
438
  return n[o];
430
439
  },
@@ -434,24 +443,26 @@ function qs(e, t) {
434
443
  });
435
444
  }
436
445
  function Ni(e, t) {
437
- return qs(e, t);
446
+ return As(e, t);
447
+ }
448
+ function Ui(e) {
449
+ const t = Dt.get(e);
450
+ t && (Dt.delete(e), t.stop());
438
451
  }
439
- var de = /* @__PURE__ */ (function(e) {
452
+ var ze = /* @__PURE__ */ (function(e) {
440
453
  return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.Group = 2] = "Group", e;
441
- })({}), P = /* @__PURE__ */ (function(e) {
442
- return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.ParamRegExp = 2] = "ParamRegExp", e[e.ParamRegExpEnd = 3] = "ParamRegExpEnd", e[e.EscapeNext = 4] = "EscapeNext", e;
443
- })(P || {}), $s = {
444
- type: de.Static,
454
+ })({}), qs = {
455
+ type: 0,
445
456
  value: ""
446
- }, js = /[a-zA-Z0-9_]/;
457
+ }, $s = /[a-zA-Z0-9_]/;
447
458
  function Ks(e) {
448
459
  if (!e) return [[]];
449
- if (e === "/") return [[$s]];
460
+ if (e === "/") return [[qs]];
450
461
  if (!e.startsWith("/")) throw new Error(`Invalid path "${e}"`);
451
462
  function t(y) {
452
463
  throw new Error(`ERR (${r})/"${u}": ${y}`);
453
464
  }
454
- let r = P.Static, s = r;
465
+ let r = 0, s = r;
455
466
  const i = [];
456
467
  let n;
457
468
  function o() {
@@ -459,11 +470,11 @@ function Ks(e) {
459
470
  }
460
471
  let l = 0, a, u = "", f = "";
461
472
  function c() {
462
- u && (r === P.Static ? n.push({
463
- type: de.Static,
473
+ u && (r === 0 ? n.push({
474
+ type: 0,
464
475
  value: u
465
- }) : r === P.Param || r === P.ParamRegExp || r === P.ParamRegExpEnd ? (n.length > 1 && (a === "*" || a === "+") && t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`), n.push({
466
- type: de.Param,
476
+ }) : r === 1 || r === 2 || r === 3 ? (n.length > 1 && (a === "*" || a === "+") && t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`), n.push({
477
+ type: 1,
467
478
  value: u,
468
479
  regexp: f,
469
480
  repeatable: a === "*" || a === "+",
@@ -474,71 +485,68 @@ function Ks(e) {
474
485
  u += a;
475
486
  }
476
487
  for (; l < e.length; ) {
477
- if (a = e[l++], a === "\\" && r !== P.ParamRegExp) {
478
- s = r, r = P.EscapeNext;
488
+ if (a = e[l++], a === "\\" && r !== 2) {
489
+ s = r, r = 4;
479
490
  continue;
480
491
  }
481
492
  switch (r) {
482
- case P.Static:
483
- a === "/" ? (u && c(), o()) : a === ":" ? (c(), r = P.Param) : h();
493
+ case 0:
494
+ a === "/" ? (u && c(), o()) : a === ":" ? (c(), r = 1) : h();
484
495
  break;
485
- case P.EscapeNext:
496
+ case 4:
486
497
  h(), r = s;
487
498
  break;
488
- case P.Param:
489
- a === "(" ? r = P.ParamRegExp : js.test(a) ? h() : (c(), r = P.Static, a !== "*" && a !== "?" && a !== "+" && l--);
499
+ case 1:
500
+ a === "(" ? r = 2 : $s.test(a) ? h() : (c(), r = 0, a !== "*" && a !== "?" && a !== "+" && l--);
490
501
  break;
491
- case P.ParamRegExp:
492
- a === ")" ? f[f.length - 1] == "\\" ? f = f.slice(0, -1) + a : r = P.ParamRegExpEnd : f += a;
502
+ case 2:
503
+ a === ")" ? f[f.length - 1] == "\\" ? f = f.slice(0, -1) + a : r = 3 : f += a;
493
504
  break;
494
- case P.ParamRegExpEnd:
495
- c(), r = P.Static, a !== "*" && a !== "?" && a !== "+" && l--, f = "";
505
+ case 3:
506
+ c(), r = 0, a !== "*" && a !== "?" && a !== "+" && l--, f = "";
496
507
  break;
497
508
  default:
498
509
  t("Unknown state");
499
- break;
500
510
  }
501
511
  }
502
- return r === P.ParamRegExp && t(`Unfinished custom RegExp for param "${u}"`), c(), o(), i;
512
+ return r === 2 && t(`Unfinished custom RegExp for param "${u}"`), c(), o(), i;
503
513
  }
504
- var cr = "[^/]+?", Ls = {
514
+ var ur = "[^/]+?", js = {
505
515
  sensitive: !1,
506
516
  strict: !1,
507
517
  start: !0,
508
518
  end: !0
509
- }, J = /* @__PURE__ */ (function(e) {
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
- })(J || {}), Ms = /[.+*?^${}()[\]/\\]/g;
519
+ }, ks = /[.+*?^${}()[\]/\\]/g;
512
520
  function Ts(e, t) {
513
- const r = j(!0, {}, Ls, t), s = [];
521
+ const r = q(!0, {}, js, t), s = [];
514
522
  let i = r.start ? "^" : "";
515
523
  const n = [];
516
524
  for (const u of e) {
517
- const f = u.length ? [] : [J.Root];
525
+ const f = u.length ? [] : [90];
518
526
  r.strict && !u.length && (i += "/");
519
527
  for (let c = 0; c < u.length; c++) {
520
528
  const h = u[c];
521
- let y = J.Segment + (r.sensitive ? J.BonusCaseSensitive : 0);
522
- if (h.type === de.Static)
523
- c || (i += "/"), i += h.value.replace(Ms, "\\$&"), y += J.Static;
524
- else if (h.type === de.Param) {
525
- const { value: d, repeatable: m, optional: b, regexp: g } = h;
529
+ let y = 40 + (r.sensitive ? 0.25 : 0);
530
+ if (h.type === ze.Static)
531
+ c || (i += "/"), i += h.value.replace(ks, "\\$&"), y += 40;
532
+ else if (h.type === ze.Param) {
533
+ const { value: d, repeatable: v, optional: w, regexp: m } = h;
526
534
  n.push({
527
535
  name: d,
528
- repeatable: m,
529
- optional: b
536
+ repeatable: v,
537
+ optional: w
530
538
  });
531
- const p = g || cr;
532
- if (p !== cr) {
533
- y += J.BonusCustomRegExp;
539
+ const p = m || ur;
540
+ if (p !== ur) {
541
+ y += 10;
534
542
  try {
535
543
  new RegExp(`(${p})`);
536
- } catch (L) {
537
- throw new Error(`Invalid custom RegExp for param "${d}" (${p}): ` + L.message);
544
+ } catch (K) {
545
+ throw new Error(`Invalid custom RegExp for param "${d}" (${p}): ` + K.message);
538
546
  }
539
547
  }
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);
548
+ let $ = v ? `((?:${p})(?:/(?:${p}))*)` : `(${p})`;
549
+ c || ($ = w && u.length < 2 ? `(?:/${$})` : "/" + $), w && ($ += "?"), i += $, y += 20, w && (y += -8), v && (y += -20), p === ".*" && (y += -50);
542
550
  }
543
551
  f.push(y);
544
552
  }
@@ -546,7 +554,7 @@ function Ts(e, t) {
546
554
  }
547
555
  if (r.strict && r.end) {
548
556
  const u = s.length - 1;
549
- s[u][s[u].length - 1] += J.BonusStrict;
557
+ s[u][s[u].length - 1] += 0.7000000000000001;
550
558
  }
551
559
  r.strict || (i += "/?"), r.end ? i += "$" : r.strict && !i.endsWith("/") && (i += "(?:/|$)");
552
560
  const o = new RegExp(i, r.sensitive ? "" : "i");
@@ -563,14 +571,15 @@ function Ts(e, t) {
563
571
  let f = "", c = !1;
564
572
  for (const h of e) {
565
573
  (!c || !f.endsWith("/")) && (f += "/"), c = !1;
566
- for (const y of h) if (y.type === de.Static) f += y.value;
567
- else if (y.type === de.Param) {
568
- const { value: d, repeatable: m, optional: b } = y, g = d in u ? u[d] : "";
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
- h.length < 2 && (f.endsWith("/") ? f = f.slice(0, -1) : c = !0);
573
- else throw new Error(`Missing required param "${d}"`);
574
+ for (const y of h) if (y.type === ze.Static) f += y.value;
575
+ else if (y.type === ze.Param) {
576
+ const { value: d, repeatable: v, optional: w } = y, m = d in u ? u[d] : "";
577
+ if (sr(m) && !v) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
578
+ const p = sr(m) ? m.join("/") : m;
579
+ if (!p)
580
+ if (w)
581
+ h.length < 2 && (f.endsWith("/") ? f = f.slice(0, -1) : c = !0);
582
+ else throw new Error(`Missing required param "${d}"`);
574
583
  f += p;
575
584
  }
576
585
  }
@@ -584,7 +593,7 @@ function Ts(e, t) {
584
593
  stringify: a
585
594
  };
586
595
  }
587
- function ks(e, t) {
596
+ function Ms(e, t) {
588
597
  const r = Ts(Ks(e), t);
589
598
  return function(s) {
590
599
  const i = r.parse(s);
@@ -594,20 +603,20 @@ function ks(e, t) {
594
603
  } : null;
595
604
  };
596
605
  }
597
- var Ur = "default", Vr = /* @__PURE__ */ Symbol("sync"), I = /* @__PURE__ */ Symbol("normalizeRoute");
598
- function hr(e) {
606
+ var Ur = "default", Br = /* @__PURE__ */ Symbol("sync"), M = /* @__PURE__ */ Symbol("normalizeRoute");
607
+ function fr(e) {
599
608
  let t = !1;
600
609
  return function(...r) {
601
610
  if (!t)
602
611
  return t = !0, Reflect.apply(e, {}, r);
603
612
  };
604
613
  }
605
- function Is(e) {
614
+ function Ls(e) {
606
615
  let t = e.src;
607
616
  return new Promise((r, s) => {
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) => {
617
+ const i = fr((l) => {
618
+ Zt(l) && (l = l.default), e.component = l, console.debug("success load async module"), r();
619
+ }), n = fr((l) => {
611
620
  `${l}`, console.debug("reject load async module"), s(l);
612
621
  });
613
622
  let o;
@@ -616,14 +625,15 @@ function Is(e) {
616
625
  } catch (l) {
617
626
  n(l);
618
627
  }
619
- if (o) if (typeof o.then == "function") o.then(i, n);
620
- else {
621
- const l = o.component;
622
- l && typeof l.then == "function" && l.then(i, n);
623
- }
628
+ if (o)
629
+ if (typeof o.then == "function") o.then(i, n);
630
+ else {
631
+ const l = o.component;
632
+ l && typeof l.then == "function" && l.then(i, n);
633
+ }
624
634
  });
625
635
  }
626
- var Os = class {
636
+ var Is = class {
627
637
  name;
628
638
  level;
629
639
  rootName;
@@ -631,7 +641,7 @@ var Os = class {
631
641
  constructor(e, t, r, s) {
632
642
  this.name = e, this.level = t, this.rootName = r, this.rootIndex = s;
633
643
  }
634
- }, Ge = class Wr {
644
+ }, Je = class Vr {
635
645
  to;
636
646
  routeModel;
637
647
  from;
@@ -640,13 +650,13 @@ var Os = class {
640
650
  this.to = t, this.from = r;
641
651
  }
642
652
  static from(t) {
643
- const r = new Wr(t.to, t.from), s = t.data ?? {};
644
- return j(!0, r.data, s), r;
653
+ const r = new Vr(t.to, t.from), s = t.data ?? {};
654
+ return q(!0, r.data, s), r;
645
655
  }
646
656
  static clear(t) {
647
657
  for (let r in t) t[r] = void 0;
648
658
  }
649
- }, x = class Ut {
659
+ }, R = class Nt {
650
660
  path;
651
661
  get fullPath() {
652
662
  const t = this.path ?? `${this.name}`;
@@ -672,8 +682,8 @@ var Os = class {
672
682
  active;
673
683
  slot;
674
684
  static clone(t, r) {
675
- let s = new Ut();
676
- return Mr(s, t, r), s;
685
+ let s = new Nt();
686
+ return kr(s, t, r), s;
677
687
  }
678
688
  static isSame(t, r) {
679
689
  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);
@@ -682,7 +692,7 @@ var Os = class {
682
692
  return !t || !r ? !1 : t === r || t.path && r.path && t.path === r.path ? !0 : !!(t.name && r.name && t.name === r.name);
683
693
  }
684
694
  static from(t) {
685
- let r = new Ut();
695
+ let r = new Nt();
686
696
  if (t == null) return r;
687
697
  let s = r;
688
698
  for (let n in t) s[n] = t[n];
@@ -690,24 +700,24 @@ var Os = class {
690
700
  if (Array.isArray(i) && i.length > 0) for (let n of i) s[n] = t[n];
691
701
  return r;
692
702
  }
693
- }, Bs = class {
703
+ }, Os = class {
694
704
  id;
695
705
  name;
696
706
  props;
697
707
  src;
698
708
  component;
699
709
  constructor(e, t, r) {
700
- this.id = De.get(), this.name = e, this.src = t, typeof t != "function" && (this.component = t), this.props = r;
710
+ this.id = Oe.get(), this.name = e, this.src = t, typeof t != "function" && (this.component = t), this.props = r;
701
711
  }
702
712
  get isResolved() {
703
713
  return this.component !== void 0;
704
714
  }
705
715
  resolve() {
706
- return Is(this);
716
+ return Ls(this);
707
717
  }
708
- }, yr = class {
718
+ }, cr = class {
709
719
  models = [];
710
- }, bt = class {
720
+ }, gt = class {
711
721
  path;
712
722
  match;
713
723
  redirect;
@@ -715,11 +725,11 @@ var Os = class {
715
725
  meta;
716
726
  matchedRoutes;
717
727
  layers = [];
718
- }, F = /* @__PURE__ */ (function(e) {
728
+ }, _ = /* @__PURE__ */ (function(e) {
719
729
  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;
720
730
  })({}), wt = /* @__PURE__ */ (function(e) {
721
731
  return e[e.Part = 0] = "Part", e[e.All = 1] = "All", e;
722
- })({}), G = /* @__PURE__ */ Symbol("rootKey"), z = /* @__PURE__ */ Symbol("rootNodeKey"), ye = /* @__PURE__ */ Symbol("parentNodeKey"), at = /* @__PURE__ */ Symbol("nameKey"), re = class {
732
+ })({}), V = /* @__PURE__ */ Symbol("rootKey"), B = /* @__PURE__ */ Symbol("rootNodeKey"), fe = /* @__PURE__ */ Symbol("parentNodeKey"), ut = /* @__PURE__ */ Symbol("nameKey"), Y = class {
723
733
  model;
724
734
  route;
725
735
  active = !0;
@@ -727,25 +737,25 @@ var Os = class {
727
737
  constructor(e, t, r = 0, s = !0) {
728
738
  this.route = e, this.model = t, this.index = r, this.active = s;
729
739
  }
730
- }, qe = class {
740
+ }, Ce = class {
731
741
  _slots;
732
742
  get slots() {
733
- return this._slots == null && (this._slots = Lr([])), this._slots;
743
+ return this._slots == null && (this._slots = jr([])), this._slots;
734
744
  }
735
745
  get empty() {
736
746
  return this._slots == null || this._slots.value.length == 0;
737
747
  }
738
- [at];
739
- [G];
740
- [z] = null;
741
- [ye] = null;
748
+ [ut];
749
+ [V];
750
+ [B] = null;
751
+ [fe] = null;
742
752
  get name() {
743
- return this[at];
753
+ return this[ut];
744
754
  }
745
755
  constructor(e, t, r) {
746
- this[at] = e, this[G] = t, r && (this[z] = r);
756
+ this[ut] = e, this[V] = t, r && (this[B] = r);
747
757
  }
748
- }, O = class {
758
+ }, I = class {
749
759
  view;
750
760
  index;
751
761
  level;
@@ -759,16 +769,16 @@ var Os = class {
759
769
  }
760
770
  return !1;
761
771
  }
762
- }, Rt = class {
772
+ }, bt = class {
763
773
  views = [];
764
- }, Ds = class {
765
- layers = [];
766
774
  }, Hs = class {
775
+ layers = [];
776
+ }, Ds = class {
767
777
  time;
768
778
  route;
769
779
  }, Ns = class {
770
780
  forbidTime = 300;
771
- submitRecorder = new Hs();
781
+ submitRecorder = new Ds();
772
782
  isSameRoute(e, t) {
773
783
  return e == null || t == null ? !1 : e.name === t.name && e.path === t.path && e.root === t.root;
774
784
  }
@@ -783,70 +793,68 @@ var Os = class {
783
793
  release(e) {
784
794
  this.submitRecorder.time === e && (this.submitRecorder.route = void 0);
785
795
  }
786
- }, E = /* @__PURE__ */ (function(e) {
787
- return e.Busy = "Busy", e.Free = "Free", e.Reject = "Reject", e.Exception = "Exception", e.Finished = "Finished", e;
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
- [B] = [];
790
- [k] = 0;
791
- [xt] = !1;
792
- [_] = E.Free;
793
- [Z] = [];
794
- [Xe] = [];
795
- [ve] = [];
796
- [$e] = [];
797
- [le];
796
+ }, O = /* @__PURE__ */ Symbol("chainKey"), T = /* @__PURE__ */ Symbol("cursorKey"), Rt = /* @__PURE__ */ Symbol("$persistentModeKey"), P = /* @__PURE__ */ Symbol("statusKey"), J = /* @__PURE__ */ Symbol("argsKey"), Ge = /* @__PURE__ */ Symbol("exArgsKey"), de = /* @__PURE__ */ Symbol("successFnsKey"), Ee = /* @__PURE__ */ Symbol("errorFnsKey"), ie = /* @__PURE__ */ Symbol("sessionKey"), G = /* @__PURE__ */ Symbol("_go"), ct = class {
797
+ [O] = [];
798
+ [T] = 0;
799
+ [Rt] = !1;
800
+ [P] = "Free";
801
+ [J] = [];
802
+ [Ge] = [];
803
+ [de] = [];
804
+ [Ee] = [];
805
+ [ie];
798
806
  get session() {
799
- return this[le];
807
+ return this[ie];
800
808
  }
801
809
  constructor(e, t = !1) {
802
- this[le] = e, this[xt] = t;
803
- }
804
- [Y](e, ...t) {
805
- let r = this[_];
806
- if (this[_] = E.Busy, this[k] += e, this[k] < 0 && (this[k] = 0), this[Z] = t, r === E.Exception || r === E.Reject) {
807
- let n = [{ session: this[le] }, ...this[Xe]];
808
- for (; this[$e].length > 0; ) try {
809
- let o = this[$e].shift();
810
+ this[ie] = e, this[Rt] = t;
811
+ }
812
+ [G](e, ...t) {
813
+ let r = this[P];
814
+ if (this[P] = "Busy", this[T] += e, this[T] < 0 && (this[T] = 0), this[J] = t, r === "Exception" || r === "Reject") {
815
+ let n = [{ session: this[ie] }, ...this[Ge]];
816
+ for (; this[Ee].length > 0; ) try {
817
+ let o = this[Ee].shift();
810
818
  typeof o == "function" && He(() => {
811
819
  Reflect.apply(o, {}, n);
812
820
  });
813
821
  } catch (o) {
814
822
  console.error(o.message, o);
815
823
  }
816
- return this[_] = r, this[B] = [], this[k] = 0, this;
817
- } else if (r === E.Finished || this[k] >= this[B].length) {
818
- let n = [{ session: this[le] }, ...this[Z]];
819
- for (; this[ve].length > 0; ) {
820
- let o = this[ve].shift();
824
+ return this[P] = r, this[O] = [], this[T] = 0, this;
825
+ } else if (r === "Finished" || this[T] >= this[O].length) {
826
+ let n = [{ session: this[ie] }, ...this[J]];
827
+ for (; this[de].length > 0; ) {
828
+ let o = this[de].shift();
821
829
  typeof o == "function" && He(() => {
822
830
  Reflect.apply(o, {}, n);
823
831
  });
824
832
  }
825
- return this[_] = E.Free, this;
833
+ return this[P] = "Free", this;
826
834
  }
827
- if (this[k] >= this[B].length)
828
- return this[_] = E.Free, this;
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;
835
+ if (this[T] >= this[O].length)
836
+ return this[P] = "Free", this;
837
+ let s = this[O][this[T]];
838
+ this[Rt] || (this[O].splice(0, this[T] + 1), this[T] = -1);
839
+ let i = this[T] + 1;
832
840
  try {
833
841
  let n = !1, o = {
834
842
  go: (l, ...a) => {
835
- n || (n = !0, Reflect.apply(this[Y], this, [l, ...a]));
843
+ n || (n = !0, Reflect.apply(this[G], this, [l, ...a]));
836
844
  },
837
845
  resolve: (...l) => {
838
- n || (n = !0, Reflect.apply(this[Y], this, [1, ...l]));
846
+ n || (n = !0, Reflect.apply(this[G], this, [1, ...l]));
839
847
  },
840
848
  reject: (...l) => {
841
849
  n || (n = !0, Reflect.apply(this.reject, this, [...l]));
842
850
  },
843
851
  insert: (l) => {
844
- n || (this[B].splice(i, 0, l), i++);
852
+ n || (this[O].splice(i, 0, l), i++);
845
853
  },
846
- session: this[le]
854
+ session: this[ie]
847
855
  };
848
856
  He(() => {
849
- Reflect.apply(s, {}, [o, ...this[Z]]);
857
+ Reflect.apply(s, {}, [o, ...this[J]]);
850
858
  });
851
859
  } catch (n) {
852
860
  this.throw(n);
@@ -854,48 +862,48 @@ var Os = class {
854
862
  return this;
855
863
  }
856
864
  go(e, ...t) {
857
- return Reflect.apply(this[Y], this, [e, ...t]);
865
+ return Reflect.apply(this[G], this, [e, ...t]);
858
866
  }
859
867
  finish(...e) {
860
- return this[_] = E.Finished, this[Z] = e, Reflect.apply(this[Y], this, [0]);
868
+ return this[P] = "Finished", this[J] = e, Reflect.apply(this[G], this, [0]);
861
869
  }
862
870
  reject(...e) {
863
- return this[_] = E.Reject, this[Xe] = e, Reflect.apply(this[Y], this, [0]);
871
+ return this[P] = "Reject", this[Ge] = e, Reflect.apply(this[G], this, [0]);
864
872
  }
865
873
  throw(...e) {
866
- return this[_] = E.Exception, this[Xe] = e, Reflect.apply(this[Y], this, [0]);
874
+ return this[P] = "Exception", this[Ge] = e, Reflect.apply(this[G], this, [0]);
867
875
  }
868
876
  reset(...e) {
869
- this[_] = E.Busy, this[Z] = e, this[B] = [], this[k] = 0;
870
- let t = [{ session: this[le] }, ...this[Z]];
871
- for (; this[ve].length > 0; ) {
872
- let r = this[ve].shift();
877
+ this[P] = "Busy", this[J] = e, this[O] = [], this[T] = 0;
878
+ let t = [{ session: this[ie] }, ...this[J]];
879
+ for (; this[de].length > 0; ) {
880
+ let r = this[de].shift();
873
881
  He(() => {
874
882
  Reflect.apply(r, this, t);
875
883
  });
876
884
  }
877
- return this[_] = E.Free, this;
885
+ return this[P] = "Free", this;
878
886
  }
879
887
  post(e) {
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));
888
+ return this[P] === "Reject" || this[P] === "Exception" ? this : (Array.isArray(e) ? this[O] = [...this[O], ...e] : this[O].push(e), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this));
881
889
  }
882
890
  wait(e, t) {
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);
891
+ return e && typeof e == "function" && this[de].push(e), t && typeof t == "function" && this[Ee].push(t), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this);
884
892
  }
885
893
  exception(e) {
886
- return e && typeof e == "function" && this[$e].push(e), this[_] === E.Busy ? this : Reflect.apply(this[Y], this, [0, ...this[Z]]);
894
+ return e && typeof e == "function" && this[Ee].push(e), this[P] === "Busy" ? this : Reflect.apply(this[G], this, [0, ...this[J]]);
887
895
  }
888
896
  isFinish() {
889
- return this[_] == E.Reject || this[_] == E.Free && this[k] >= this[B].length;
897
+ return this[P] == "Reject" || this[P] == "Free" && this[T] >= this[O].length;
890
898
  }
891
- }, xe = /* @__PURE__ */ Symbol("_notifyChange"), St = class {
899
+ }, we = /* @__PURE__ */ Symbol("_notifyChange"), St = class {
892
900
  currentRoute;
893
901
  routes;
894
902
  constructor(e, t) {
895
903
  this.currentRoute = e, this.routes = t;
896
904
  }
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
- function Ye(e, ...t) {
905
+ }, ne = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), hr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Xe = /* @__PURE__ */ Symbol("_getRouteMark"), xt = /* @__PURE__ */ Symbol("_getUrlSearch"), Pt = /* @__PURE__ */ Symbol("_generateLocation"), Qe = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), Ae = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), yr = /* @__PURE__ */ Symbol("_beforeRestore"), dr = "Symbol(_fox_restore_point)";
906
+ function Ze(e, ...t) {
899
907
  return typeof e == "function" ? Reflect.apply(e, null, [...t]) : e;
900
908
  }
901
909
  function vr(e) {
@@ -904,7 +912,7 @@ function vr(e) {
904
912
  const t = e[0];
905
913
  return !!((Reflect.has(t, "path") || Reflect.has(t, "name")) && Reflect.has(t, "root"));
906
914
  }
907
- var Jr = class {
915
+ var Wr = class {
908
916
  base;
909
917
  storage;
910
918
  mode;
@@ -914,41 +922,44 @@ var Jr = class {
914
922
  traceless = !1;
915
923
  changeHandler;
916
924
  historyChange;
917
- [ae] = !1;
918
- [je] = new Array();
925
+ [ne] = !1;
926
+ [Ae] = new Array();
919
927
  backTimeout = 320;
920
928
  constructor(e = "hash", t = "", r = "", s = !0, i = !0, n = !1, o, l) {
921
- this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = o ?? C().sessionStorage, this.backTimeout = l ?? 320;
929
+ this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = o ?? F().sessionStorage, this.backTimeout = l ?? 320;
922
930
  }
923
931
  init(e = !0) {
924
- const t = C();
932
+ const t = F();
925
933
  return typeof this.historyChange != "function" && (this.historyChange = () => {
926
- if (typeof this[ae] == "function") {
927
- const r = this[ae]();
928
- if (this[ae] = !1, r) return;
929
- } else if (this[ae] === !0) {
930
- this[ae] = !1;
934
+ if (typeof this[ne] == "function") {
935
+ const r = this[ne]();
936
+ if (this[ne] = !1, r) return;
937
+ } else if (this[ne] === !0) {
938
+ this[ne] = !1;
931
939
  return;
932
940
  }
933
- if (Ye(this.historyMonitor)) {
941
+ if (Ze(this.historyMonitor)) {
934
942
  const r = t.history.state;
935
- this[xe](r);
943
+ this[we](r);
936
944
  try {
937
945
  let s = [];
938
946
  if (typeof r == "string" ? s = JSON.parse(r) : s = r, Array.isArray(s) && s.length > 0) {
939
- const i = this[Qe]() ?? "/";
940
- this[Ze](i, s);
947
+ const i = this[Xe]() ?? "/";
948
+ this[Qe](i, s);
941
949
  }
942
950
  } catch {
943
951
  }
944
952
  }
945
- }), ft(t, "popstate", this.historyChange), this.firstNavigate && e && this[dr](), Promise.resolve();
953
+ }), ft(t, "popstate", this.historyChange), this.firstNavigate && e && this[hr](), Promise.resolve();
946
954
  }
947
955
  destroy() {
948
- this.historyChange && Qt(C(), "popstate", this.historyChange);
956
+ if (this.historyChange) {
957
+ const e = F();
958
+ Xt(e, "popstate", this.historyChange);
959
+ }
949
960
  }
950
- [mr](e, t, r, s) {
951
- for (let i of this[je]) try {
961
+ [yr](e, t, r, s) {
962
+ for (let i of this[Ae]) try {
952
963
  const n = Reflect.apply(i, {}, [
953
964
  e,
954
965
  t,
@@ -962,21 +973,21 @@ var Jr = class {
962
973
  return !0;
963
974
  }
964
975
  beforeRestoreEach(e) {
965
- this[je].push(e);
976
+ this[Ae].push(e);
966
977
  }
967
978
  removeBeforeRestoreEach(e) {
968
- const t = this[je].indexOf(e);
969
- return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
979
+ const t = this[Ae].indexOf(e);
980
+ return t !== -1 ? (this[Ae].splice(t, 1), !0) : !1;
970
981
  }
971
- [dr]() {
972
- const e = this[Qe]() ?? "/", t = this.storage.getItem(pr);
982
+ [hr]() {
983
+ const e = this[Xe]() ?? "/", t = this.storage.getItem(dr);
973
984
  if (t) try {
974
985
  const n = JSON.parse(t);
975
986
  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[mr](l, a, e, n.routes)));
987
+ const o = n.routes.filter((l, a) => (l.params = l.params ? Lr(l.params) : {}, this[yr](l, a, e, n.routes)));
977
988
  if (o.length > 0) {
978
- const l = this[Et](), a = o.length - 1;
979
- o[a].query = l || o[a].query, this[xe](o);
989
+ const l = this[xt](), a = o.length - 1;
990
+ o[a].query = l || o[a].query, this[we](o);
980
991
  return;
981
992
  }
982
993
  }
@@ -985,32 +996,32 @@ var Jr = class {
985
996
  const r = e.indexOf("!");
986
997
  let s;
987
998
  r != -1 ? s = e.substring(r + 1) : s = e;
988
- const i = new x();
989
- i.path = s, i.query = this[Et](), this[xe]([i]);
999
+ const i = new R();
1000
+ i.path = s, i.query = this[xt](), this[we]([i]);
990
1001
  }
991
- [Ze](e, t) {
1002
+ [Qe](e, t) {
992
1003
  try {
993
1004
  t.forEach((s) => {
994
- s.params = s.params ? kr(s.params) : {};
1005
+ s.params = s.params ? Mr(s.params) : {};
995
1006
  });
996
1007
  const r = JSON.stringify({
997
1008
  mark: e,
998
1009
  routes: t
999
1010
  });
1000
- this.storage.setItem(pr, r);
1011
+ this.storage.setItem(dr, r);
1001
1012
  } catch (r) {
1002
1013
  console.error(r.message, r);
1003
1014
  }
1004
1015
  }
1005
1016
  setRestorePoint(e) {
1006
- const t = this[Qe]() ?? "/";
1007
- this[Ze](t, e);
1017
+ const t = this[Xe]() ?? "/";
1018
+ this[Qe](t, e);
1008
1019
  }
1009
- [xe](e) {
1020
+ [we](e) {
1010
1021
  typeof this.changeHandler == "function" && this.changeHandler(e);
1011
1022
  }
1012
- [Qe]() {
1013
- const e = C();
1023
+ [Xe]() {
1024
+ const e = F();
1014
1025
  if (this.mode === "path") {
1015
1026
  let t = e.location.pathname;
1016
1027
  return this.base && t.indexOf(this.base) === 0 && (t = t.substring(this.base.length)), t;
@@ -1020,24 +1031,24 @@ var Jr = class {
1020
1031
  }
1021
1032
  return null;
1022
1033
  }
1023
- [Et]() {
1024
- let e = C().location.search;
1034
+ [xt]() {
1035
+ let e = F().location.search;
1025
1036
  return e.length > 0 && e.indexOf("?") === 0 && (e = e.substring(1)), e;
1026
1037
  }
1027
1038
  listen(e) {
1028
1039
  this.changeHandler = e;
1029
1040
  }
1030
1041
  go(e, t = !1) {
1031
- const r = C();
1032
- this[ae] = t, r.history.go(e);
1042
+ const r = F();
1043
+ this[ne] = t, r.history.go(e);
1033
1044
  }
1034
1045
  goBack(e, t) {
1035
- const r = C(), s = r.history.state;
1046
+ const r = F(), s = r.history.state;
1036
1047
  if (vr(s) && s.length > 0) {
1037
1048
  let i = !1;
1038
1049
  for (let u = s.length - 1; u >= 0; u--) {
1039
- const f = x.from(s[u]);
1040
- if (x.isSame(f, e)) {
1050
+ const f = R.from(s[u]);
1051
+ if (R.isSame(f, e)) {
1041
1052
  i = !0;
1042
1053
  break;
1043
1054
  }
@@ -1052,17 +1063,17 @@ var Jr = class {
1052
1063
  r.history.go(-1), o = setTimeout(l, n);
1053
1064
  }, a = () => {
1054
1065
  clearTimeout(o);
1055
- const u = C().history.state;
1066
+ const u = F().history.state;
1056
1067
  if (vr(u) && u.length > 0) {
1057
1068
  let f = u.length;
1058
- const c = u[f - 1], h = x.from(c);
1059
- if (x.isSame(h, e))
1069
+ const c = u[f - 1], h = R.from(c);
1070
+ if (R.isSame(h, e))
1060
1071
  return t(), !0;
1061
1072
  if (f > 0) {
1062
1073
  let y = !1;
1063
1074
  for (let d = f - 1; d >= 0; d--) {
1064
- const m = x.from(u[d]);
1065
- if (!(m.traceless === !0 || Ye(this.traceless, m)) && x.isSame(m, e)) {
1075
+ const v = R.from(u[d]);
1076
+ if (!(v.traceless === !0 || Ze(this.traceless, v)) && R.isSame(v, e)) {
1066
1077
  y = !0;
1067
1078
  break;
1068
1079
  }
@@ -1079,18 +1090,18 @@ var Jr = class {
1079
1090
  }
1080
1091
  setRouteMark(e) {
1081
1092
  const t = e.currentRoute.fullPath;
1082
- this[Ze](t, e.routes);
1093
+ this[Qe](t, e.routes);
1083
1094
  }
1084
1095
  push(e) {
1085
1096
  const t = this[Pt](e.currentRoute);
1086
- e.currentRoute.historyUpdatePolicy !== "traceless" && !Ye(this.traceless, e.currentRoute) && C().history.pushState(e.routes, "", t), this.setRouteMark(e);
1097
+ e.currentRoute.historyUpdatePolicy !== "traceless" && !Ze(this.traceless, e.currentRoute) && F().history.pushState(e.routes, "", t), this.setRouteMark(e);
1087
1098
  }
1088
1099
  replace(e) {
1089
1100
  const t = this[Pt](e.currentRoute);
1090
- (e.currentRoute.historyUpdatePolicy !== "traceless" || !Ye(this.traceless, e.currentRoute)) && C().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1101
+ (e.currentRoute.historyUpdatePolicy !== "traceless" || !Ze(this.traceless, e.currentRoute)) && F().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1091
1102
  }
1092
1103
  [Pt](e) {
1093
- const t = C();
1104
+ const t = F();
1094
1105
  let r = "";
1095
1106
  if (e.query) {
1096
1107
  let o = "";
@@ -1108,13 +1119,13 @@ var Jr = class {
1108
1119
  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
1120
  }
1110
1121
  };
1111
- function Ui(e = !0, t = null, r = "", s = !0, i = !1, n) {
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);
1122
+ function Bi(e = !0, t = null, r = "", s = !0, i = !1, n) {
1123
+ return t !== null && (t = F().location.pathname), t && t.endsWith("/") && (t = t.substring(0, t.length - 1)), new Wr("path", t ?? "", r, e, s, i, n);
1113
1124
  }
1114
1125
  function Us(e = !0, t = "", r = !0, s = !1, i) {
1115
- return new Jr("hash", "", t, e, r, s, i);
1126
+ return new Wr("hash", "", t, e, r, s, i);
1116
1127
  }
1117
- var Vs = class {
1128
+ var Bs = class {
1118
1129
  maxSize = 50;
1119
1130
  cursor = -1;
1120
1131
  queue = [];
@@ -1139,7 +1150,7 @@ var Vs = class {
1139
1150
  listen(e) {
1140
1151
  this.changeHandler = e;
1141
1152
  }
1142
- [xe](e) {
1153
+ [we](e) {
1143
1154
  typeof this.changeHandler == "function" && this.changeHandler(e);
1144
1155
  }
1145
1156
  go(e, t = !1) {
@@ -1150,7 +1161,7 @@ var Vs = class {
1150
1161
  let s = !1;
1151
1162
  if (typeof t == "function" ? s = t() : s = t, !s) {
1152
1163
  const i = this.queue[r];
1153
- this[xe](i.routes);
1164
+ this[we](i.routes);
1154
1165
  }
1155
1166
  }
1156
1167
  }
@@ -1160,7 +1171,7 @@ var Vs = class {
1160
1171
  if (e === null) r = this.cursor + 1;
1161
1172
  else for (let s = this.cursor; s >= 0; s--) {
1162
1173
  const i = this.queue[s];
1163
- if (x.isSame(i.currentRoute, e)) break;
1174
+ if (R.isSame(i.currentRoute, e)) break;
1164
1175
  r++;
1165
1176
  }
1166
1177
  if (r === 0) {
@@ -1181,309 +1192,312 @@ var Vs = class {
1181
1192
  setRestorePoint(e) {
1182
1193
  }
1183
1194
  };
1184
- function Ws(e = "", t = 50) {
1185
- return new Vs(e, t);
1195
+ function Vs(e = "", t = 50) {
1196
+ return new Bs(e, t);
1186
1197
  }
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");
1198
+ var Ye = /* @__PURE__ */ Symbol("_constructRouteModel"), et = /* @__PURE__ */ Symbol("_findRouteModel"), _t = /* @__PURE__ */ Symbol("_findRootView"), Ws = /* @__PURE__ */ Symbol("_getFirstView"), oe = /* @__PURE__ */ Symbol("_removeView"), mr = /* @__PURE__ */ Symbol("_buildPage"), pr = /* @__PURE__ */ Symbol("_resolveComponent"), gr = /* @__PURE__ */ Symbol("_update"), ee = /* @__PURE__ */ Symbol("_merge"), Ft = /* @__PURE__ */ Symbol("_handleHistoryChange"), le = /* @__PURE__ */ Symbol("_handleRouteUpdated"), tt = /* @__PURE__ */ Symbol("routeUpdatedCallback"), qe = /* @__PURE__ */ Symbol("currentRoute"), g = /* @__PURE__ */ Symbol("currentRoutes"), rt = /* @__PURE__ */ Symbol("routeSessionCacheKey"), wr = /* @__PURE__ */ Symbol("_addRouteRecorder"), $e = /* @__PURE__ */ Symbol("_removeRouteRecorder"), Ke = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), A = /* @__PURE__ */ Symbol("_handleError"), st = /* @__PURE__ */ Symbol("errorCallback"), H = /* @__PURE__ */ Symbol("registerKey"), it = /* @__PURE__ */ Symbol("notFoundKey"), Ct = /* @__PURE__ */ Symbol("notFoundPathKey"), U = /* @__PURE__ */ Symbol("forestKey"), x = /* @__PURE__ */ Symbol("historyKey"), je = /* @__PURE__ */ Symbol("beforeFiltersKey"), ke = /* @__PURE__ */ Symbol("afterFiltersKey"), Te = /* @__PURE__ */ Symbol("destroyFiltersKey"), Et = /* @__PURE__ */ Symbol("propsFilterKey"), ve = /* @__PURE__ */ Symbol("mainDispatcherKey"), nt = /* @__PURE__ */ Symbol("initKey"), ae = /* @__PURE__ */ Symbol("readyKey"), ot = /* @__PURE__ */ Symbol("readyHandlersKey"), lt = /* @__PURE__ */ Symbol("_markReady"), br = /* @__PURE__ */ Symbol("_createNextFn"), At = /* @__PURE__ */ Symbol("_start"), qt = /* @__PURE__ */ Symbol("_before"), $t = /* @__PURE__ */ Symbol("_after"), Rr = /* @__PURE__ */ Symbol("_destroy"), Kt = /* @__PURE__ */ Symbol("_load"), Me = /* @__PURE__ */ Symbol("_unload"), Le = /* @__PURE__ */ Symbol("routerGuardKey");
1188
1199
  function zs(e) {
1189
1200
  return e.layers.length == 0 || e.layers[0].views.length == 0;
1190
1201
  }
1191
- var Gs = class {
1192
- [D] = new Array();
1193
- [nt];
1194
- [At] = "*";
1195
- [ce] = !1;
1196
- [jt] = [];
1197
- [W] = new Ds();
1198
- [S];
1199
- [v] = new Array();
1200
- [Ct] = Lr(null);
1201
- [st] = /* @__PURE__ */ new WeakMap();
1202
- [it] = null;
1203
- [rt] = null;
1204
- [Me] = new Array();
1205
- [Te] = new Array();
1202
+ var Js = class {
1203
+ [H] = new Array();
1204
+ [it];
1205
+ [Ct] = "*";
1206
+ [ae] = !1;
1207
+ [ot] = [];
1208
+ [U] = new Hs();
1209
+ [x];
1210
+ [g] = new Array();
1211
+ [qe] = jr(null);
1212
+ [rt] = /* @__PURE__ */ new WeakMap();
1213
+ [st] = null;
1214
+ [tt] = null;
1215
+ [je] = new Array();
1206
1216
  [ke] = new Array();
1207
- [qt] = null;
1208
- [ge] = new ct();
1209
- [Oe] = new Ns();
1210
- [$t] = !1;
1217
+ [Te] = new Array();
1218
+ [Et] = null;
1219
+ [ve] = new ct();
1220
+ [Le] = new Ns();
1221
+ [nt] = !1;
1211
1222
  get currentRoute() {
1212
- return ds(this[Ct]);
1223
+ return ys(this[qe]);
1213
1224
  }
1214
1225
  options;
1215
1226
  constructor(e) {
1216
1227
  this.options = e ?? {}, this.options.notFoundPath && this.setNotFoundPath(this.options.notFoundPath);
1217
1228
  let t = this.options.routes || [];
1218
- this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[S] = e.history : this[S] = Ee ? Us() : Ws(), this[S]?.listen(async (r) => {
1229
+ this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[x] = e.history : this[x] = Re ? Us() : Vs(), this[x]?.listen(async (r) => {
1219
1230
  let s = !0;
1220
1231
  try {
1221
1232
  if (typeof r == "string") {
1222
- const i = this[I](r);
1233
+ const i = this[M](r);
1223
1234
  i && await this[Ft]([i]);
1224
1235
  } else await this[Ft](r);
1225
1236
  } catch (i) {
1226
1237
  console.error(i.message, i), s = !1;
1227
1238
  }
1228
- this[ce] === !1 && this[ot](s);
1239
+ this[ae] === !1 && this[lt](s);
1229
1240
  });
1230
1241
  }
1231
- [$](e = "error", t) {
1242
+ [A](e = "error", t) {
1232
1243
  if (t && typeof t.error == "function") try {
1233
1244
  t.error(e);
1234
1245
  } catch {
1235
1246
  }
1236
- if (typeof this[it] == "function") try {
1237
- this[it](e, t);
1247
+ if (typeof this[st] == "function") try {
1248
+ this[st](e, t);
1238
1249
  } catch {
1239
1250
  }
1240
1251
  console.error(e);
1241
1252
  }
1242
1253
  init() {
1243
- this[$t] !== !0 && (this[S]?.init(!this[ce]), this[$t] = !0);
1254
+ this[nt] !== !0 && (this[x]?.init(!this[ae]), this[nt] = !0);
1255
+ }
1256
+ destroy() {
1257
+ this[x]?.destroy(), this[nt] = !1;
1244
1258
  }
1245
1259
  isReady() {
1246
- return this[ce] ? Promise.resolve() : new Promise((e, t) => {
1247
- this[jt].push([e, t]);
1260
+ return this[ae] ? Promise.resolve() : new Promise((e, t) => {
1261
+ this[ot].push([e, t]);
1248
1262
  });
1249
1263
  }
1250
- [ot](e) {
1251
- this[ce] = !0, this[jt].forEach(([t, r]) => {
1264
+ [lt](e) {
1265
+ this[ae] = !0, this[ot].forEach(([t, r]) => {
1252
1266
  try {
1253
1267
  e ? t() : r();
1254
1268
  } catch (s) {
1255
1269
  console.error(s.message, s);
1256
1270
  }
1257
- });
1271
+ }), this[ot] = [];
1258
1272
  }
1259
1273
  [Ft](e) {
1260
1274
  try {
1261
1275
  if (!e) {
1262
- let n = [...this[v]].reverse();
1263
- return this[Ie](n), Ee && C().location.reload(), Promise.resolve();
1276
+ let n = [...this[g]].reverse();
1277
+ return this[Me](n), Re && F().location.reload(), Promise.resolve();
1264
1278
  }
1265
1279
  let t = null, r = [], s = [], i = 0;
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]);
1280
+ for (; i < e.length && i < this[g].length && R.isSame(e[i], this[g][i]); i++)
1281
+ e[i].active === !0 && e[i].active !== this[g][i].active && (t = e[i]);
1268
1282
  if (i < e.length) r = e.slice(i);
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) {
1283
+ else if (i === e.length) for (; i < this[g].length && this[g][i].historyUpdatePolicy === "traceless"; i++)
1284
+ r.push(this[g][i]), t = e[i];
1285
+ if (i < this[g].length && (s = this[g].slice(i).reverse()), s.length === 0 && r.length === 0) {
1272
1286
  if (t !== null) return this.restore([t]);
1273
1287
  } else if (s.length > 0) {
1274
- if (this[Ie](s)) {
1288
+ if (this[Me](s)) {
1275
1289
  if (r.length > 0) return this.restore(r);
1276
1290
  if (t !== null) return this.restore([t]);
1277
1291
  }
1278
1292
  } else return this.restore(r);
1279
1293
  } catch (t) {
1280
- this[$](t);
1294
+ this[A](t);
1281
1295
  }
1282
1296
  return Promise.resolve();
1283
1297
  }
1284
- [fe](e = null) {
1285
- if (this[Ct].value = e, typeof this[rt] == "function") try {
1286
- this[rt](e);
1298
+ [le](e = null) {
1299
+ if (this[qe].value = e, typeof this[tt] == "function") try {
1300
+ this[tt](e);
1287
1301
  } catch {
1288
1302
  }
1289
1303
  }
1290
- [Rr](e, t) {
1291
- if (e.opsType === F.Open) {
1304
+ [wr](e, t) {
1305
+ if (e.opsType === _.Open) {
1292
1306
  let r = !1;
1293
- const s = this[v].length - 1;
1307
+ const s = this[g].length - 1;
1294
1308
  for (let i = s; i >= 0; i--) {
1295
- const n = this[v][i];
1309
+ const n = this[g][i];
1296
1310
  if (e.root == n.root) {
1297
1311
  if (e.path === n.path) {
1298
- this[v].splice(i, 1, e), r = !0;
1312
+ this[g].splice(i, 1, e), r = !0;
1299
1313
  continue;
1300
1314
  }
1301
1315
  e.active && (n.active = !1);
1302
1316
  }
1303
1317
  }
1304
- r || this[v].push(e);
1305
- } else this[v].push(e);
1306
- this[st].set(e, t), this[fe](e);
1318
+ r || this[g].push(e);
1319
+ } else this[g].push(e);
1320
+ this[rt].set(e, t), this[le](e);
1307
1321
  }
1308
- [Le]() {
1322
+ [Ke]() {
1309
1323
  let e = [];
1310
- for (let t of this[v]) {
1311
- let r = x.clone(t, !0);
1324
+ for (let t of this[g]) {
1325
+ let r = R.clone(t, !0);
1312
1326
  e.push(r);
1313
1327
  }
1314
1328
  return e;
1315
1329
  }
1316
- [Ke](e) {
1317
- if (!this[v]) {
1318
- this[fe](null);
1330
+ [$e](e) {
1331
+ if (!this[g]) {
1332
+ this[le](null);
1319
1333
  return;
1320
1334
  }
1321
1335
  let t = -1;
1322
- for (let r = 0; r < this[v].length; r++) if (x.isSame(this[v][r], e)) {
1336
+ for (let r = 0; r < this[g].length; r++) if (R.isSame(this[g][r], e)) {
1323
1337
  t = r;
1324
1338
  break;
1325
1339
  }
1326
1340
  if (t != -1) {
1327
- const r = this[v][t];
1328
- this[v].splice(t, 1);
1329
- const s = this[st].get(r);
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
- } else this[fe](null);
1334
- } else this[fe](null);
1341
+ const r = this[g][t];
1342
+ this[g].splice(t, 1);
1343
+ const s = this[rt].get(r);
1344
+ if (this[rt].delete(r), this[Rr](r, s), r.opsType === _.Append) {
1345
+ const i = this[g].length - 1;
1346
+ this[le](this[g][i] ?? null);
1347
+ } else this[qe].value && R.isSame(this[qe].value, e) && this[le](null);
1348
+ } else this[le](null);
1335
1349
  }
1336
1350
  set historyMonitor(e) {
1337
- this[S] && (this[S].historyMonitor = e);
1351
+ this[x] && (this[x].historyMonitor = e);
1338
1352
  }
1339
1353
  get historyMonitor() {
1340
- return this[S] ? this[S].historyMonitor : !1;
1354
+ return this[x] ? this[x].historyMonitor : !1;
1341
1355
  }
1342
1356
  set traceless(e) {
1343
- this[S] && (this[S].traceless = e);
1357
+ this[x] && (this[x].traceless = e);
1344
1358
  }
1345
1359
  get traceless() {
1346
- return this[S]?.traceless ?? !1;
1360
+ return this[x]?.traceless ?? !1;
1347
1361
  }
1348
1362
  set propsFilter(e) {
1349
- this[qt] = e;
1363
+ this[Et] = e;
1350
1364
  }
1351
1365
  get propsFilter() {
1352
- return this[qt];
1366
+ return this[Et];
1353
1367
  }
1354
1368
  setRestorePoint() {
1355
- const e = this[Le]();
1356
- this[S]?.setRestorePoint(e);
1369
+ const e = this[Ke]();
1370
+ this[x]?.setRestorePoint(e);
1357
1371
  }
1358
1372
  onRouteUpdated(e) {
1359
- this[rt] = e;
1373
+ this[tt] = e;
1360
1374
  }
1361
1375
  onError(e) {
1362
- this[it] = e;
1376
+ this[st] = e;
1363
1377
  }
1364
1378
  beforeEach(e) {
1365
- this[Me].push(e);
1379
+ this[je].push(e);
1366
1380
  }
1367
1381
  removeBeforeEach(e) {
1368
- const t = this[Me].indexOf(e);
1369
- return t !== -1 ? (this[Me].splice(t, 1), !0) : !1;
1382
+ const t = this[je].indexOf(e);
1383
+ return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
1370
1384
  }
1371
1385
  afterEach(e) {
1372
- this[Te].push(e);
1386
+ this[ke].push(e);
1373
1387
  }
1374
1388
  removeAfterEach(e) {
1375
- const t = this[Te].indexOf(e);
1376
- return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1389
+ const t = this[ke].indexOf(e);
1390
+ return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1377
1391
  }
1378
1392
  destroyEach(e) {
1379
- this[ke].push(e);
1393
+ this[Te].push(e);
1380
1394
  }
1381
1395
  removeDestroyEach(e) {
1382
- const t = this[ke].indexOf(e);
1383
- return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1396
+ const t = this[Te].indexOf(e);
1397
+ return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1384
1398
  }
1385
1399
  beforeRestoreEach(e) {
1386
- this[S]?.beforeRestoreEach(e);
1400
+ this[x]?.beforeRestoreEach(e);
1387
1401
  }
1388
1402
  removeBeforeRestoreEach(e) {
1389
- return this[S]?.removeBeforeRestoreEach(e) ?? !1;
1403
+ return this[x]?.removeBeforeRestoreEach(e) ?? !1;
1390
1404
  }
1391
1405
  addRoutes(e) {
1392
1406
  for (let t of e) this.addRoute(t);
1393
1407
  }
1394
1408
  addRoute(e, t = -1) {
1395
- if (e.path === this[At]) {
1409
+ if (e.path === this[Ct]) {
1396
1410
  this.setNotFoundRoute(e);
1397
1411
  return;
1398
1412
  }
1399
- const r = this[et](e);
1400
- if (t == -1) this[D] = [...this[D], ...r];
1401
- else for (let s = r.length - 1; s >= 0; s--) this[D].splice(t, 0, r[s]);
1413
+ const r = this[Ye](e);
1414
+ if (t == -1) this[H] = [...this[H], ...r];
1415
+ else for (let s = r.length - 1; s >= 0; s--) this[H].splice(t, 0, r[s]);
1402
1416
  }
1403
1417
  removeRoute(e) {
1404
- const t = this[I](e);
1418
+ const t = this[M](e);
1405
1419
  if (t === null)
1406
1420
  return console.warn("[Fox]Illegal routing format", e), !1;
1407
- for (let r = 0; r < this[D].length; r++) {
1408
- const s = this[D][r];
1421
+ for (let r = 0; r < this[H].length; r++) {
1422
+ const s = this[H][r];
1409
1423
  if (t?.path && s.path === t.path)
1410
- return this[D].splice(r, 1), !0;
1424
+ return this[H].splice(r, 1), !0;
1411
1425
  if (t?.name && s.name === t.name)
1412
- return this[D].splice(r, 1), !0;
1426
+ return this[H].splice(r, 1), !0;
1413
1427
  }
1414
1428
  return !1;
1415
1429
  }
1416
1430
  hasRoute(e) {
1417
- const t = this[I](e);
1418
- return t === null ? (console.warn("[Fox]Illegal routing format", e), !1) : this[D].findIndex((r) => {
1431
+ const t = this[M](e);
1432
+ return t === null ? (console.warn("[Fox]Illegal routing format", e), !1) : this[H].findIndex((r) => {
1419
1433
  if (t?.path && r.path === t.path || t?.name && r.name === t.name) return !0;
1420
1434
  }) !== -1;
1421
1435
  }
1422
1436
  setNotFoundPath(e) {
1423
- this[At] = e;
1437
+ this[Ct] = e;
1424
1438
  }
1425
1439
  setNotFoundRoute(e) {
1426
- const t = this[et](e);
1427
- this[nt] = t[0];
1440
+ const t = this[Ye](e);
1441
+ this[it] = t[0];
1428
1442
  }
1429
1443
  getRoutes() {
1430
- return [...this[D]];
1444
+ return [...this[H]];
1431
1445
  }
1432
- [et](e) {
1446
+ [Ye](e) {
1433
1447
  let t = e.path ?? "";
1434
1448
  t.length > 0 && t.charAt(0) !== "/" && (t = `/${t}`);
1435
1449
  let r = e.components ?? (e.component && { "": e.component });
1436
1450
  if (!r) {
1437
- const l = new bt();
1451
+ const l = new gt();
1438
1452
  return l.path = t, l.redirect = e.redirect, [l];
1439
1453
  }
1440
- const s = new x();
1454
+ const s = new R();
1441
1455
  s.path = t, s.name = e.name, s.meta = e.meta;
1442
1456
  let i = [];
1443
1457
  for (let l in r) {
1444
1458
  const a = r[l];
1445
1459
  l.length === 0 && (l = Ur);
1446
- const u = new Bs(l, a, e.props);
1460
+ const u = new Os(l, a, e.props);
1447
1461
  i.push(u);
1448
1462
  }
1449
1463
  let n = !1, o = [];
1450
1464
  if (e.children) for (let l of e.children) {
1451
- const a = this[et](l);
1465
+ const a = this[Ye](l);
1452
1466
  for (let u of a) {
1453
- let f = new bt();
1467
+ let f = new gt();
1454
1468
  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 yr();
1469
+ let c = new cr();
1456
1470
  c.models = [...i], f.layers = [c, ...u.layers], f.matchedRoutes = [s, ...u.matchedRoutes ?? []], o.push(f);
1457
1471
  }
1458
1472
  }
1459
1473
  if (!n) {
1460
- const l = new yr();
1474
+ const l = new cr();
1461
1475
  l.models = i;
1462
- const a = new bt();
1476
+ const a = new gt();
1463
1477
  a.name = e.name, a.path = t, a.matchedRoutes = [s], a.layers = [l], o.splice(0, 0, a);
1464
1478
  }
1465
1479
  return o;
1466
1480
  }
1467
- [tt](e) {
1481
+ [et](e) {
1468
1482
  const t = e.route;
1469
1483
  try {
1470
- for (let r of this[D]) {
1484
+ for (let r of this[H]) {
1471
1485
  const s = t.path ? t.template ?? t.path : null, i = t.name ? t.template ?? t.name : null;
1472
1486
  if (s && r.path) {
1473
1487
  let n = r.match;
1474
- n || (n = r.match = ks(r.path));
1488
+ n || (n = r.match = Ms(r.path));
1475
1489
  const o = n(s);
1476
1490
  if (!o) continue;
1477
1491
  if (r.redirect) {
1478
- const l = new x();
1479
- j(!0, l, t), l.path = r.redirect;
1492
+ const l = new R();
1493
+ q(!0, l, t), l.path = r.redirect;
1480
1494
  const a = {
1481
1495
  route: l,
1482
1496
  find: void 0
1483
1497
  };
1484
- return this[tt](a) ? (e.route = a.route, e.find = a.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
1498
+ return this[et](a) ? (e.route = a.route, e.find = a.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
1485
1499
  }
1486
- if (t.params = t.params ?? {}, j(!0, t.params, o.params), t.query) {
1500
+ if (t.params = t.params ?? {}, q(!0, t.params, o.params), t.query) {
1487
1501
  const l = t.query;
1488
1502
  if (typeof l == "string") {
1489
1503
  const a = {}, u = l.split("&");
@@ -1493,8 +1507,8 @@ var Gs = class {
1493
1507
  const h = decodeURIComponent(c[0].trim());
1494
1508
  a[h] = decodeURIComponent(c[1].trim());
1495
1509
  }
1496
- j(!0, t.params, a);
1497
- } else typeof l == "object" && j(!0, t.params, l);
1510
+ q(!0, t.params, a);
1511
+ } else typeof l == "object" && q(!0, t.params, l);
1498
1512
  }
1499
1513
  return e.find = r, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0;
1500
1514
  } else if (i === r.name)
@@ -1505,58 +1519,58 @@ var Gs = class {
1505
1519
  }
1506
1520
  return !1;
1507
1521
  }
1508
- [I](e) {
1522
+ [M](e) {
1509
1523
  let t = null;
1510
1524
  if (Array.isArray(e))
1511
- if (t = new x(), typeof e[0] == "object") t = x.from(e[0]);
1512
- 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 && j(!1, t, e[r]);
1513
- else typeof e == "object" ? t = x.from(e) : typeof e == "string" && (t = new x(), e.charAt(0) == "/" ? t.path = e : t.name = e);
1525
+ if (t = new R(), typeof e[0] == "object") t = R.from(e[0]);
1526
+ 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]);
1527
+ else typeof e == "object" ? t = R.from(e) : typeof e == "string" && (t = new R(), e.charAt(0) == "/" ? t.path = e : t.name = e);
1514
1528
  if (t) {
1515
1529
  if (t.path) {
1516
1530
  let r = t.path.indexOf("?");
1517
1531
  r !== -1 && r < t.path.length - 1 && (t.query = t.path.substring(r + 1), t.path = t.path.substring(0, r));
1518
1532
  }
1519
- t.root = t.root ?? "default", t.opsType = t.opsType ?? this.options.defaultOperationType ?? F.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
1533
+ t.root = t.root ?? "default", t.opsType = t.opsType ?? this.options.defaultOperationType ?? _.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
1520
1534
  }
1521
1535
  return t;
1522
1536
  }
1523
1537
  push(...e) {
1524
- const t = this[I](e);
1525
- return t ? (t.opsType = F.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
1538
+ const t = this[M](e);
1539
+ return t ? (t.opsType = _.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1526
1540
  }
1527
1541
  put(...e) {
1528
- const t = this[I](e);
1529
- return t ? (t.opsType = F.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[$]("resolve route fail", t), this);
1542
+ const t = this[M](e);
1543
+ return t ? (t.opsType = _.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[A]("resolve route fail", t), this);
1530
1544
  }
1531
1545
  replace(...e) {
1532
- const t = this[I](e);
1533
- return t ? (t.opsType = F.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[$]("resolve route fail", t), this);
1546
+ const t = this[M](e);
1547
+ return t ? (t.opsType = _.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[A]("resolve route fail", t), this);
1534
1548
  }
1535
1549
  append(...e) {
1536
- const t = this[I](e);
1537
- return t ? (t.opsType = F.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
1550
+ const t = this[M](e);
1551
+ return t ? (t.opsType = _.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1538
1552
  }
1539
1553
  remove(e, t) {
1540
1554
  return new Promise((r) => {
1541
- this[ge].post((s) => {
1555
+ this[ve].post((s) => {
1542
1556
  try {
1543
- if (this[v].length === 0) {
1557
+ if (this[g].length === 0) {
1544
1558
  s.resolve(), r(!1);
1545
1559
  return;
1546
1560
  }
1547
- let i = -1, n = null, o = [], l = this[v].length - 1, a = l !== -1 ? this[v][l] : null;
1561
+ let i = -1, n = null, o = [], l = this[g].length - 1, a = l !== -1 ? this[g][l] : null;
1548
1562
  if (e) {
1549
1563
  if (n = e.root ?? "default", e.all) for (let f = l; f > 0; f--) {
1550
- const c = this[v][f];
1551
- if (c.opsType === F.Append) {
1564
+ const c = this[g][f];
1565
+ if (c.opsType === _.Append) {
1552
1566
  const h = c.root ?? "default";
1553
1567
  if (n && n !== h) continue;
1554
1568
  o.splice(0, 0, c), i = f - 1;
1555
1569
  }
1556
1570
  }
1557
1571
  else if (e.until) for (let f = l; f > 0; f--) {
1558
- let c = this[v][f];
1559
- if (c.opsType === F.Append && c.root === n) {
1572
+ let c = this[g][f];
1573
+ if (c.opsType === _.Append && c.root === n) {
1560
1574
  if (e.until.charAt(0) === "/" && e.until === c.path) {
1561
1575
  i = f;
1562
1576
  break;
@@ -1568,8 +1582,8 @@ var Gs = class {
1568
1582
  }
1569
1583
  }
1570
1584
  else if (e.to) for (let f = l; f > 0; f--) {
1571
- const c = this[v][f];
1572
- if (c.opsType === F.Append) {
1585
+ const c = this[g][f];
1586
+ if (c.opsType === _.Append) {
1573
1587
  const h = c.root ?? "default";
1574
1588
  if (n && n !== h) continue;
1575
1589
  if (o.splice(0, 0, c), e.to.charAt(0) === "/" && e.to === c.path) {
@@ -1582,8 +1596,8 @@ var Gs = class {
1582
1596
  }
1583
1597
  }
1584
1598
  } else for (let f = l; f > 0; f--) {
1585
- let c = this[v][f];
1586
- if (c.opsType === F.Append) {
1599
+ let c = this[g][f];
1600
+ if (c.opsType === _.Append) {
1587
1601
  o.push(c), i = f - 1;
1588
1602
  break;
1589
1603
  }
@@ -1593,41 +1607,42 @@ var Gs = class {
1593
1607
  console.warn(f), s.resolve(f), r(!1);
1594
1608
  return;
1595
1609
  }
1596
- const u = i !== -1 ? this[v][i] : null;
1597
- if (this[Ie](o)) {
1610
+ const u = i !== -1 ? this[g][i] : null;
1611
+ if (this[Me](o)) {
1598
1612
  if (t === !1)
1599
1613
  return s.resolve(), r(!0), !0;
1600
- const f = () => (s.resolve(), r(!0), !0), c = this[v].length;
1601
- if (u && x.isSame(u, this[v][c - 1])) {
1614
+ const f = () => (s.resolve(), r(!0), !0), c = this[g].length;
1615
+ if (u && R.isSame(u, this[g][c - 1])) {
1602
1616
  if (a?.historyUpdatePolicy === "traceless") {
1603
- const h = new St(x.clone(u, !0), this[Le]());
1604
- this[S]?.replace(h), f();
1605
- } else this[S]?.goBack(u, f);
1617
+ let h = R.clone(u, !0);
1618
+ const y = new St(h, this[Ke]());
1619
+ this[x]?.replace(y), f();
1620
+ } else this[x]?.goBack(u, f);
1606
1621
  return;
1607
1622
  }
1608
1623
  f();
1609
1624
  }
1610
1625
  } catch (i) {
1611
- this[$](i), s.resolve(), r(!1);
1626
+ this[A](i), s.resolve(), r(!1);
1612
1627
  }
1613
1628
  });
1614
1629
  });
1615
1630
  }
1616
1631
  open(...e) {
1617
- const t = this[I](e);
1618
- return t ? (t.opsType = F.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
1632
+ const t = this[M](e);
1633
+ return t ? (t.opsType = _.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1619
1634
  }
1620
1635
  close(e) {
1621
- return this[ge].post((t) => {
1636
+ return this[ve].post((t) => {
1622
1637
  try {
1623
- let r = this[I](e);
1638
+ let r = this[M](e);
1624
1639
  if (!r) {
1625
1640
  t.reject("resolve route fail");
1626
1641
  return;
1627
1642
  }
1628
1643
  let s = [];
1629
- for (let i = 0; i < this[v].length; i++) {
1630
- let n = this[v][i];
1644
+ for (let i = 0; i < this[g].length; i++) {
1645
+ let n = this[g][i];
1631
1646
  if (n.root === r.root) {
1632
1647
  if (!r.path && !r.name) {
1633
1648
  s.push(n);
@@ -1646,51 +1661,52 @@ var Gs = class {
1646
1661
  t.resolve();
1647
1662
  return;
1648
1663
  }
1649
- this[Ie](s), t.resolve();
1664
+ this[Me](s), t.resolve();
1650
1665
  } catch (r) {
1651
- this[$](r), t.resolve();
1666
+ this[A](r), t.resolve();
1652
1667
  }
1653
1668
  }), this;
1654
1669
  }
1655
1670
  to(...e) {
1656
- const t = this[I](e);
1671
+ const t = this[M](e);
1657
1672
  if (!t)
1658
- return this[$]("resolve route fail", t), this;
1659
- const r = this[Oe].acquire(t);
1660
- return r == null ? (this[$]("route forbid", t), this) : (this[ge].post((s) => {
1673
+ return this[A]("resolve route fail", t), this;
1674
+ const r = this[Le].acquire(t);
1675
+ return r == null ? (this[A]("route forbid", t), this) : (this[ve].post((s) => {
1661
1676
  try {
1662
- let i = this[Kt](t);
1663
- this[Lt](i), this[Tt](i), this[Mt](i), i.wait((n, o) => {
1677
+ let i = this[At](t);
1678
+ this[qt](i), this[Kt](i), this[$t](i), i.wait((n, o) => {
1664
1679
  const l = n.session.to;
1665
1680
  if (n.session.updateResult && n.session.updateResult.status === "success") try {
1666
- const a = new St(x.clone(l, !0), this[Le]());
1667
- l.historyUpdatePolicy === "replace" ? this[S]?.replace(a) : l.historyUpdatePolicy === "traceless" ? this[S]?.setRouteMark(a) : this[S]?.push(a);
1681
+ let a = R.clone(l, !0);
1682
+ const u = new St(a, this[Ke]());
1683
+ l.historyUpdatePolicy === "replace" ? this[x]?.replace(u) : l.historyUpdatePolicy === "traceless" ? this[x]?.setRouteMark(u) : this[x]?.push(u);
1668
1684
  } catch (a) {
1669
1685
  console.error(a.message, a);
1670
1686
  }
1671
- if (Ge.clear(n.session), this[Oe].release(r), typeof t.success == "function") try {
1687
+ if (Je.clear(n.session), this[Le].release(r), typeof t.success == "function") try {
1672
1688
  Reflect.apply(t.success, {}, []);
1673
1689
  } catch (a) {
1674
1690
  console.error(a.message, a);
1675
1691
  }
1676
- this[ce] === !1 && this[ot](!0), i = null, s.resolve();
1692
+ this[ae] === !1 && this[lt](!0), i = null, s.resolve();
1677
1693
  }, (n, o) => {
1678
- this[Oe].release(r), o !== null && this[$](o, t), this[ce] === !1 && this[ot](!1), Ge.clear(n.session), i = null, s.resolve();
1694
+ this[Le].release(r), o !== null && this[A](o, t), this[ae] === !1 && this[lt](!1), Je.clear(n.session), i = null, s.resolve();
1679
1695
  });
1680
1696
  } catch (i) {
1681
- this[Oe].release(r), this[$](i, t), s.resolve();
1697
+ this[Le].release(r), this[A](i, t), s.resolve();
1682
1698
  }
1683
1699
  }), this);
1684
1700
  }
1685
1701
  back(e = 1) {
1686
- this[S]?.go(-e, !1);
1702
+ this[x]?.go(-e, !1);
1687
1703
  }
1688
- [xr](e) {
1704
+ [br](e) {
1689
1705
  return (t, r) => {
1690
1706
  if (typeof t == "boolean")
1691
1707
  e.session.redirect = !1, t ? e.resolve() : e.reject(r ?? null);
1692
1708
  else if (t) {
1693
- const s = this[I](t);
1709
+ const s = this[M](t);
1694
1710
  if (s) {
1695
1711
  const i = e.session.to;
1696
1712
  s.success = i.success, s.error = i.error, e.session.to = s, e.session.redirect = !0, e.session.routeModel = null, e.resolve();
@@ -1700,25 +1716,25 @@ var Gs = class {
1700
1716
  e.session.redirect = !1, e.resolve();
1701
1717
  };
1702
1718
  }
1703
- [Kt](e) {
1704
- const t = new Ge(e, this[v].length > 0 ? this[v][this[v].length - 1] : void 0), r = {
1719
+ [At](e) {
1720
+ const t = this[g].length > 0 ? this[g][this[g].length - 1] : void 0, r = new Je(e, t), s = {
1705
1721
  route: e,
1706
1722
  find: null
1707
1723
  };
1708
- if (this[tt](r), r.find) {
1709
- t.routeModel = r.find, e.matched = r.find.matchedRoutes ?? [];
1710
- const s = {};
1711
- if (Array.isArray(r.find?.matchedRoutes)) for (let i = 0; i < r.find.matchedRoutes.length; i++) {
1712
- const n = r.find.matchedRoutes[i];
1713
- n.meta && typeof n.meta == "object" && Object.assign(s, n.meta);
1724
+ if (this[et](s), s.find) {
1725
+ r.routeModel = s.find, e.matched = s.find.matchedRoutes ?? [];
1726
+ const i = {};
1727
+ if (Array.isArray(s.find?.matchedRoutes)) for (let n = 0; n < s.find.matchedRoutes.length; n++) {
1728
+ const o = s.find.matchedRoutes[n];
1729
+ o.meta && typeof o.meta == "object" && Object.assign(i, o.meta);
1714
1730
  }
1715
- e.meta && typeof e.meta == "object" && Object.assign(s, e.meta), e.meta = s;
1731
+ e.meta && typeof e.meta == "object" && Object.assign(i, e.meta), e.meta = i;
1716
1732
  }
1717
- return new ct(t);
1733
+ return new ct(r);
1718
1734
  }
1719
- [Lt](e) {
1720
- for (let t of this[Me]) e.post((r) => {
1721
- const s = this[xr](r);
1735
+ [qt](e) {
1736
+ for (let t of this[je]) e.post((r) => {
1737
+ const s = this[br](r);
1722
1738
  Reflect.apply(t, {}, [
1723
1739
  r.session.to,
1724
1740
  r.session.from,
@@ -1727,9 +1743,9 @@ var Gs = class {
1727
1743
  ]);
1728
1744
  });
1729
1745
  }
1730
- [Mt](e) {
1746
+ [$t](e) {
1731
1747
  e.post((t) => {
1732
- for (let r of this[Te]) try {
1748
+ for (let r of this[ke]) try {
1733
1749
  Reflect.apply(r, {}, [
1734
1750
  t.session.to,
1735
1751
  t.session.from,
@@ -1741,15 +1757,15 @@ var Gs = class {
1741
1757
  t.resolve();
1742
1758
  });
1743
1759
  }
1744
- [Sr](e, t) {
1745
- for (let r of this[ke]) try {
1760
+ [Rr](e, t) {
1761
+ for (let r of this[Te]) try {
1746
1762
  Reflect.apply(r, {}, [e, t]);
1747
1763
  } catch (s) {
1748
1764
  console.error(s.message, s);
1749
1765
  }
1750
1766
  typeof e.destroy == "function" && Reflect.apply(e.destroy, e, []);
1751
1767
  }
1752
- [Tt](e) {
1768
+ [Kt](e) {
1753
1769
  e.post((t) => {
1754
1770
  const r = t.session.to;
1755
1771
  let s = t.session.routeModel;
@@ -1758,16 +1774,17 @@ var Gs = class {
1758
1774
  route: r,
1759
1775
  find: null
1760
1776
  };
1761
- if (this[tt](n)) s = n.find, t.session.routeModel = s;
1762
- else if (this[nt]) s = this[nt];
1777
+ if (this[et](n))
1778
+ s = n.find, t.session.routeModel = s;
1779
+ else if (this[it]) s = this[it];
1763
1780
  else {
1764
1781
  t.reject(`not find route model, path:${r.path ?? r.name}`);
1765
1782
  return;
1766
1783
  }
1767
1784
  }
1768
- const i = Ge.from(t.session);
1769
- this[gr](r, s, i).then((n) => {
1770
- this[W], t.session.updateResult = n ?? {
1785
+ const i = Je.from(t.session);
1786
+ this[mr](r, s, i).then((n) => {
1787
+ this[U], t.session.updateResult = n ?? {
1771
1788
  status: "success",
1772
1789
  message: ""
1773
1790
  }, t.resolve();
@@ -1776,9 +1793,9 @@ var Gs = class {
1776
1793
  });
1777
1794
  });
1778
1795
  }
1779
- [Ie](e) {
1796
+ [Me](e) {
1780
1797
  if (e.length == 0) return !0;
1781
- let t = this[W], r = [];
1798
+ let t = this[U], r = [];
1782
1799
  for (let s of e) {
1783
1800
  let i = this[_t](t, s);
1784
1801
  i != null && r.push({
@@ -1787,8 +1804,8 @@ var Gs = class {
1787
1804
  });
1788
1805
  }
1789
1806
  if (r.length == 0)
1790
- return this[$]("can not find view index"), !1;
1791
- for (let s of r.reverse()) this[ue](t, {
1807
+ return this[A]("can not find view index"), !1;
1808
+ for (let s of r.reverse()) this[oe](t, {
1792
1809
  x: s.x,
1793
1810
  y: s.y
1794
1811
  }, [s.route.index ?? 0], !0);
@@ -1801,7 +1818,7 @@ var Gs = class {
1801
1818
  const n = e.layers[i];
1802
1819
  for (let o = n.views.length - 1; o >= 0; o--) {
1803
1820
  const l = n.views[o];
1804
- if (l[G] && l[at] === r)
1821
+ if (l[V] && l[ut] === r)
1805
1822
  return s = {
1806
1823
  x: o,
1807
1824
  y: i
@@ -1810,17 +1827,18 @@ var Gs = class {
1810
1827
  }
1811
1828
  return null;
1812
1829
  }
1813
- [Js](e) {
1830
+ [Ws](e) {
1814
1831
  return e.layers.length > 0 && e.layers[0].views.length > 0 ? e.layers[0].views[0] : null;
1815
1832
  }
1816
- [ue](e, t, r = null, s = !0) {
1833
+ [oe](e, t, r = null, s = !0) {
1817
1834
  if (t.y >= e.layers.length || t.x >= e.layers[t.y].views.length) return;
1818
1835
  let i = e.layers[t.y].views[t.x], n = !1, o = [], l = !1, a = [...i.slots.value];
1819
1836
  for (let f = a.length - 1; f >= 0; f--) {
1820
1837
  let c = a[f];
1821
- (!r || r.indexOf(c.index) != -1) && (c.route && i[G] && (this[Ke](c.route), c.active === !0 && c.route.opsType == F.Append && (l = !0)), o.push(new O(i, c.index, t.y)), a.splice(f, 1));
1838
+ (!r || r.indexOf(c.index) != -1) && (c.route && i[V] && (this[$e](c.route), c.active === !0 && c.route.opsType == _.Append && (l = !0)), o.push(new I(i, c.index, t.y)), a.splice(f, 1));
1822
1839
  }
1823
- if (a.length == 0) s ? i.slots.value = a : e.layers[t.y].views.splice(t.x, 1);
1840
+ if (a.length == 0)
1841
+ s ? i.slots.value = a : e.layers[t.y].views.splice(t.x, 1);
1824
1842
  else {
1825
1843
  if (l) {
1826
1844
  let f = a[a.length - 1];
@@ -1834,11 +1852,11 @@ var Gs = class {
1834
1852
  let f = e.layers[u].views, c = [];
1835
1853
  for (let h = f.length - 1; (n || o.length > 0) && h >= 0; h--) {
1836
1854
  let y = f[h];
1837
- if (y[ye] && (n || O.include(o, y[ye]))) {
1855
+ if (y[fe] && (n || I.include(o, y[fe]))) {
1838
1856
  let d = y.slots.value;
1839
- for (let m = d.length - 1; m >= 0; m--) {
1840
- let b = d[m];
1841
- b.route && y[G] && this[Ke](b.route), c.push(new O(y, b.index, u)), d.splice(m, 1);
1857
+ for (let v = d.length - 1; v >= 0; v--) {
1858
+ let w = d[v];
1859
+ w.route && y[V] && this[$e](w.route), c.push(new I(y, w.index, u)), d.splice(v, 1);
1842
1860
  }
1843
1861
  e.layers[u].views.splice(h, 1);
1844
1862
  }
@@ -1847,43 +1865,43 @@ var Gs = class {
1847
1865
  }
1848
1866
  }
1849
1867
  restore(e) {
1850
- if (!e || this[D].length == 0) {
1851
- let t = this[W];
1868
+ if (!e || this[H].length == 0) {
1869
+ let t = this[U];
1852
1870
  if (t.layers.length > 0) {
1853
1871
  let r = t.layers[0].views;
1854
1872
  r.length > 0 && (r[0].slots.value = []);
1855
1873
  }
1856
- return this[v] = [], this[fe](null), Promise.resolve();
1874
+ return this[g] = [], this[le](null), Promise.resolve();
1857
1875
  } else return new Promise((t, r) => {
1858
1876
  let s = null, i = !1;
1859
1877
  for (let n = 0; n < e.length; n++) {
1860
1878
  const o = e[n];
1861
- this[ge].post((l) => {
1862
- const a = this[Kt](o);
1863
- this[Lt](a), this[Tt](a), this[Mt](a), a.wait((u, f) => {
1879
+ this[ve].post((l) => {
1880
+ const a = this[At](o);
1881
+ this[qt](a), this[Kt](a), this[$t](a), a.wait((u, f) => {
1864
1882
  s = u.session.to, i = u.session.redirect, l.resolve();
1865
1883
  }, (u, f) => {
1866
- s = null, f !== null && this[$](f), l.resolve();
1884
+ s = null, f !== null && this[A](f), l.resolve();
1867
1885
  });
1868
1886
  });
1869
1887
  }
1870
- this[ge].post((n) => {
1888
+ this[ve].post((n) => {
1871
1889
  if (s && i === !0) {
1872
- const o = new St(x.clone(s, !0), this[Le]());
1873
- this[S]?.replace(o);
1890
+ const o = R.clone(s, !0), l = new St(o, this[Ke]());
1891
+ this[x]?.replace(l);
1874
1892
  }
1875
1893
  n.resolve(), t();
1876
1894
  });
1877
1895
  });
1878
1896
  }
1879
- async [gr](e, t, r) {
1897
+ async [mr](e, t, r) {
1880
1898
  const s = e.updateType ?? wt.Part;
1881
- await this[br](t);
1882
- const i = this[wr](t, e, r, s);
1899
+ await this[pr](t);
1900
+ const i = this[gr](t, e, r, s);
1883
1901
  if (i.status === "error") throw Error(i.message);
1884
1902
  return i;
1885
1903
  }
1886
- [br](e) {
1904
+ [pr](e) {
1887
1905
  let t = [];
1888
1906
  for (let r = 0; r < e.layers.length; r++) {
1889
1907
  let s = e.layers[r];
@@ -1894,72 +1912,77 @@ var Gs = class {
1894
1912
  }
1895
1913
  return t.length > 0 ? Promise.all(t) : Promise.resolve();
1896
1914
  }
1897
- [wr](e, t, r, s) {
1915
+ [gr](e, t, r, s) {
1898
1916
  if (e.layers[0].models.length !== 1) return {
1899
1917
  status: "error",
1900
1918
  message: "illegal route structure(multi root node)"
1901
1919
  };
1902
1920
  const i = e.layers[0].models[0];
1903
- let n = this[W], o = zs(n), l = t.root ?? "default", a;
1921
+ let n = this[U], o = zs(n), l = t.root ?? "default", a;
1904
1922
  !o && s == wt.Part && (a = this[_t](n, t));
1905
1923
  let u, f = 0;
1906
- if (a == null || a == null) if (o || s === wt.All)
1907
- n.layers.length == 0 && (n.layers[0] = new Rt()), n.layers[0].views.length == 0 ? (u = new qe(t.root ?? "default", !0, null), n.layers[0].views = [u]) : u = n.layers[0].views[0], a = {
1908
- x: 0,
1909
- y: 0
1910
- };
1911
- else {
1912
- let c = t.slot;
1913
- if (!c) return {
1914
- status: "error",
1915
- message: "can not rebuild view(because not route slot)"
1916
- };
1917
- let h = c.level;
1918
- if (h > n.layers.length) return {
1919
- status: "error",
1920
- message: "can not insert view(override level)"
1921
- };
1922
- let y;
1923
- if (c.rootName) {
1924
- let d = n.layers[h - 1];
1925
- for (let m of d.views) {
1926
- if (m[G] && m.name === c.rootName) {
1927
- y = new O(m, c.rootIndex ?? 0, h - 1);
1928
- break;
1929
- }
1930
- if (m[z] && m[z].view.name === c.rootName && m[z].index === c.rootIndex) {
1931
- y = m[z];
1932
- break;
1924
+ if (a == null || a == null)
1925
+ if (o || s === wt.All) {
1926
+ if (n.layers.length == 0 && (n.layers[0] = new bt()), n.layers[0].views.length == 0) {
1927
+ let c = t.root ?? "default";
1928
+ u = new Ce(c, !0, null), n.layers[0].views = [u];
1929
+ } else u = n.layers[0].views[0];
1930
+ a = {
1931
+ x: 0,
1932
+ y: 0
1933
+ };
1934
+ } else {
1935
+ let c = t.slot;
1936
+ if (!c) return {
1937
+ status: "error",
1938
+ message: "can not rebuild view(because not route slot)"
1939
+ };
1940
+ let h = c.level;
1941
+ if (h > n.layers.length) return {
1942
+ status: "error",
1943
+ message: "can not insert view(override level)"
1944
+ };
1945
+ let y;
1946
+ if (c.rootName) {
1947
+ let d = n.layers[h - 1];
1948
+ for (let v of d.views) {
1949
+ if (v[V] && v.name === c.rootName) {
1950
+ y = new I(v, c.rootIndex ?? 0, h - 1);
1951
+ break;
1952
+ }
1953
+ if (v[B] && v[B].view.name === c.rootName && v[B].index === c.rootIndex) {
1954
+ y = v[B];
1955
+ break;
1956
+ }
1933
1957
  }
1934
1958
  }
1959
+ if (!y) return {
1960
+ status: "error",
1961
+ message: "can not insert view(not find root node ref)"
1962
+ };
1963
+ u = new Ce(l, !0, y), n.layers[h].views.push(u), a = {
1964
+ x: n.layers[h].views.length - 1,
1965
+ y: h
1966
+ };
1935
1967
  }
1936
- if (!y) return {
1937
- status: "error",
1938
- message: "can not insert view(not find root node ref)"
1939
- };
1940
- u = new qe(l, !0, y), n.layers[h].views.push(u), a = {
1941
- x: n.layers[h].views.length - 1,
1942
- y: h
1943
- };
1944
- }
1945
1968
  else u = n.layers[a.y].views[a.x];
1946
- if (f = a.y, u[G] = !0, t.opsType === F.Append) {
1947
- t.index = t.index ?? De.get(), t.active = !0;
1969
+ if (f = a.y, u[V] = !0, t.opsType === _.Append) {
1970
+ t.index = t.index ?? Oe.get(), t.active = !0;
1948
1971
  let c = u.slots.value;
1949
1972
  if (c.length > 0) {
1950
- let b = c[c.length - 1];
1951
- b.active = !1, b.route && (b.route.active = b.active);
1973
+ let w = c[c.length - 1];
1974
+ w.active = !1, w.route && (w.route.active = w.active);
1952
1975
  }
1953
- let h = new re(t, i, t.index, !0);
1976
+ let h = new Y(t, i, t.index, !0);
1954
1977
  u.slots.value = [...c, h];
1955
- let y = f + 1, d = 1, m = new O(u, t.index, f);
1956
- this[se](n, y, e, d, m);
1957
- } else if (t.opsType === F.Open) {
1978
+ let y = f + 1, d = 1, v = new I(u, t.index, f);
1979
+ this[ee](n, y, e, d, v);
1980
+ } else if (t.opsType === _.Open) {
1958
1981
  let c = u.slots.value;
1959
1982
  const h = t.active ?? !0;
1960
1983
  let y = !1;
1961
1984
  for (let d of c) {
1962
- if (d.route !== null && x.isSamePathForRoute(d.route, t)) {
1985
+ if (d.route !== null && R.isSamePathForRoute(d.route, t)) {
1963
1986
  if (d.active === h)
1964
1987
  return t.index = d.index, t.active = h, d.route = t, {
1965
1988
  status: "noChange",
@@ -1970,122 +1993,122 @@ var Gs = class {
1970
1993
  d.route && (d.route.active = d.active);
1971
1994
  }
1972
1995
  if (!y) {
1973
- t.index = t.index ?? De.get(), t.active = h;
1974
- let d = new re(t, i, t.index, h);
1996
+ t.index = t.index ?? Oe.get(), t.active = h;
1997
+ let d = new Y(t, i, t.index, h);
1975
1998
  c.push(d);
1976
- let m = f + 1, b = 1, g = new O(u, t.index, f);
1977
- this[se](n, m, e, b, g);
1999
+ let v = f + 1, w = 1, m = new I(u, t.index, f);
2000
+ this[ee](n, v, e, w, m);
1978
2001
  }
1979
2002
  u.slots.value = [...c];
1980
2003
  } else {
1981
2004
  let c = u.slots.value;
1982
2005
  if (c.length == 0) {
1983
- t.index = t.index ?? De.get(), t.active = !0, u.slots.value = [new re(t, i, t.index)];
1984
- let h = f + 1, y = 1, d = new O(u, t.index, f);
1985
- this[se](n, h, e, y, d);
2006
+ t.index = t.index ?? Oe.get(), t.active = !0, u.slots.value = [new Y(t, i, t.index)];
2007
+ let h = f + 1, y = 1, d = new I(u, t.index, f);
2008
+ this[ee](n, h, e, y, d);
1986
2009
  } else {
1987
2010
  let h = c[0];
1988
2011
  if (h.model !== i) {
1989
- this[ue](n, a, null, !0), t.index = t.index ?? De.get(), t.active = !0, u.slots.value = [new re(t, i, t.index)];
1990
- let y = f + 1, d = 1, m = new O(u, t.index, f);
1991
- this[se](n, y, e, d, m);
2012
+ this[oe](n, a, null, !0), t.index = t.index ?? Oe.get(), t.active = !0, u.slots.value = [new Y(t, i, t.index)];
2013
+ let y = f + 1, d = 1, v = new I(u, t.index, f);
2014
+ this[ee](n, y, e, d, v);
1992
2015
  } else {
1993
- h.route !== null && this[Ke](h.route);
2016
+ h.route !== null && this[$e](h.route);
1994
2017
  let y = !1;
1995
2018
  const d = t.active ?? !0;
1996
2019
  h.active !== d && (h.active = d, y = !0), t.active = d, t.index = h.index, h.route = t;
1997
- let m = [];
1998
- for (let L = 1; L < c.length; L++) m.push(c[L].index);
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, 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
- let L = [];
2003
- for (let M = 0; M < n.layers[g].views.length; M++) {
2004
- let q = n.layers[g].views[M];
2005
- q[ye] && O.include(b, q[ye]) && L.unshift(M);
2020
+ let v = [];
2021
+ for (let K = 1; K < c.length; K++) v.push(c[K].index);
2022
+ v.length > 0 ? this[oe](n, a, v, !0) : y && (u.slots.value = [...c]);
2023
+ let w = [new I(u, t.index, f)], m = f + 1, p = 1, $ = new I(u, t.index, f);
2024
+ for (; w.length > 0 && m < n.layers.length && p < e.layers.length; m++, p++) {
2025
+ let K = [];
2026
+ for (let j = 0; j < n.layers[m].views.length; j++) {
2027
+ let E = n.layers[m].views[j];
2028
+ E[fe] && I.include(w, E[fe]) && K.unshift(j);
2006
2029
  }
2007
- let Ce = [];
2008
- for (let M of L) {
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];
2030
+ let _e = [];
2031
+ for (let j of K) {
2032
+ let E = n.layers[m].views[j], se = e.layers[p].models, Q;
2033
+ for (let k = 0; k < se.length; k++) if (E.name === se[k].name) {
2034
+ Q = se[k];
2012
2035
  break;
2013
2036
  }
2014
- if (!ee) this[ue](n, {
2015
- x: M,
2016
- y: g
2037
+ if (!Q) this[oe](n, {
2038
+ x: j,
2039
+ y: m
2017
2040
  }, null, !1);
2018
2041
  else {
2019
- let T = q.slots.value;
2020
- if (T.length == 0) {
2021
- let Q = 0;
2022
- q.slots.value = [new re(null, ee, Q)];
2023
- let U = g + 1, V = p + 1;
2024
- this[se](n, U, e, V, K);
2042
+ let k = E.slots.value;
2043
+ if (k.length == 0) {
2044
+ let z = 0;
2045
+ E.slots.value = [new Y(null, Q, z)];
2046
+ let D = m + 1, N = p + 1;
2047
+ this[ee](n, D, e, N, $);
2025
2048
  } else {
2026
- let Q = T[0];
2027
- if (Q.model !== ee) {
2028
- this[ue](n, {
2029
- x: M,
2030
- y: g
2031
- }, null, !0), q.slots.value = [new re(null, ee, 0)];
2032
- let U = g + 1, V = p + 1;
2033
- this[se](n, U, e, V, K);
2049
+ let z = k[0];
2050
+ if (z.model !== Q) {
2051
+ this[oe](n, {
2052
+ x: j,
2053
+ y: m
2054
+ }, null, !0), E.slots.value = [new Y(null, Q, 0)];
2055
+ let D = m + 1, N = p + 1;
2056
+ this[ee](n, D, e, N, $);
2034
2057
  } else {
2035
- q[G] && Q.route !== null && this[Ke](Q.route);
2036
- let U = [];
2037
- for (let V = 1; V < T.length; V++) U.push(T[V].index);
2038
- U.length > 0 && this[ue](n, {
2039
- x: M,
2040
- y: g
2041
- }, U, !0), Ce.push(new O(q, Q.index, g));
2058
+ E[V] && z.route !== null && this[$e](z.route);
2059
+ let D = [];
2060
+ for (let N = 1; N < k.length; N++) D.push(k[N].index);
2061
+ D.length > 0 && this[oe](n, {
2062
+ x: j,
2063
+ y: m
2064
+ }, D, !0), _e.push(new I(E, z.index, m));
2042
2065
  }
2043
2066
  }
2044
- q[G] = !1;
2067
+ E[V] = !1;
2045
2068
  }
2046
2069
  }
2047
- b = Ce;
2070
+ w = _e;
2048
2071
  }
2049
- this[se](n, g, e, p, K);
2072
+ this[ee](n, m, e, p, $);
2050
2073
  }
2051
2074
  }
2052
2075
  }
2053
- if (u && u[z]) {
2054
- let c = u[z];
2055
- c && (t.slot = new Os(l, f, c?.view.name, c?.index ?? 0));
2076
+ if (u && u[B]) {
2077
+ let c = u[B];
2078
+ c && (t.slot = new Is(l, f, c?.view.name, c?.index ?? 0));
2056
2079
  }
2057
- return r.to = void 0, r.routeModel = void 0, this[Rr](t, r), {
2080
+ return r.to = void 0, r.routeModel = void 0, this[wr](t, r), {
2058
2081
  status: "success",
2059
2082
  message: ""
2060
2083
  };
2061
2084
  }
2062
- [se](e, t, r, s, i) {
2085
+ [ee](e, t, r, s, i) {
2063
2086
  let n = s, o = t;
2064
2087
  for (; o < e.layers.length && n < r.layers.length; o++, n++) {
2065
2088
  let l = e.layers[o].views;
2066
2089
  for (let a of r.layers[n].models) {
2067
- let u = new qe(a.name, !1, i), f = new re(null, a);
2090
+ let u = new Ce(a.name, !1, i), f = new Y(null, a);
2068
2091
  u.slots.value = [f], l.push(u);
2069
2092
  }
2070
2093
  }
2071
2094
  for (; n < r.layers.length; n++) {
2072
- let l = new Rt();
2095
+ let l = new bt();
2073
2096
  l.views = [];
2074
2097
  for (let a of r.layers[n].models) {
2075
- let u = new qe(a.name, !1, i), f = new re(null, a);
2098
+ let u = new Ce(a.name, !1, i), f = new Y(null, a);
2076
2099
  u.slots.value = [f], l.views.push(u);
2077
2100
  }
2078
2101
  e.layers.push(l);
2079
2102
  }
2080
2103
  }
2081
- [Vr](e, t, r, s, i, n) {
2082
- if (t < 0 || t > this[W].layers.length) return null;
2083
- if (t < this[W].layers.length) {
2084
- let u = this[W].layers[t], f = null;
2104
+ [Br](e, t, r, s, i, n) {
2105
+ if (t < 0 || t > this[U].layers.length) return null;
2106
+ if (t < this[U].layers.length) {
2107
+ let u = this[U].layers[t], f = null;
2085
2108
  for (let c of u.views) {
2086
2109
  let h = !1;
2087
- if (r !== null ? (h = c.name === e && c[z]?.view === r, h && s !== -1 && (h = c[z]?.index === s)) : h = c.name === e, !!h) {
2088
- i !== null && (c[ye] = {
2110
+ if (r !== null ? (h = c.name === e && c[B]?.view === r, h && s !== -1 && (h = c[B]?.index === s)) : h = c.name === e, !!h) {
2111
+ i !== null && (c[fe] = {
2089
2112
  view: i,
2090
2113
  index: n,
2091
2114
  level: t - 1
@@ -2096,86 +2119,106 @@ var Gs = class {
2096
2119
  if (f !== null) return f;
2097
2120
  }
2098
2121
  let o = null, l = null;
2099
- i !== null && (i[G] ? o = {
2122
+ i !== null && (i[V] ? o = {
2100
2123
  view: i,
2101
2124
  index: n,
2102
2125
  level: t - 1
2103
- } : o = i[z], l = {
2126
+ } : o = i[B], l = {
2104
2127
  view: i,
2105
2128
  index: n,
2106
2129
  level: t - 1
2107
2130
  });
2108
- let a = new qe(e, !0, o);
2109
- if (a[ye] = l, t == this[W].layers.length) {
2110
- let u = new Rt();
2111
- u.views = [a], this[W].layers.push(u);
2112
- } else this[W].layers[t].views.push(a);
2131
+ let a = new Ce(e, !0, o);
2132
+ if (a[fe] = l, t == this[U].layers.length) {
2133
+ let u = new bt();
2134
+ u.views = [a], this[U].layers.push(u);
2135
+ } else this[U].layers[t].views.push(a);
2113
2136
  return a;
2114
2137
  }
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
- [Be] = /* @__PURE__ */ new Map();
2138
+ }, Ue = /* @__PURE__ */ Symbol("rk"), jt = /* @__PURE__ */ Symbol("vd"), Sr = /* @__PURE__ */ Symbol("rv"), kt = /* @__PURE__ */ Symbol("rvi"), xr = /* @__PURE__ */ Symbol("pv"), Tt = /* @__PURE__ */ Symbol("pvi"), Ie = /* @__PURE__ */ Symbol("registerKey"), Mt = /* @__PURE__ */ Symbol("parentKey"), Ut = /* @__PURE__ */ Symbol("lc"), Gs = class {
2139
+ [Ie] = /* @__PURE__ */ new Map();
2140
+ [Mt] = null;
2141
+ get parent() {
2142
+ return this[Mt]?.deref() ?? null;
2143
+ }
2144
+ set parent(e) {
2145
+ this[Mt] = e ? new WeakRef(e) : null;
2146
+ }
2117
2147
  constructor() {
2118
2148
  }
2119
2149
  set(e, t) {
2120
- this[Be].set(e, t);
2150
+ this[Ie].set(e, t);
2121
2151
  }
2122
2152
  get(e) {
2123
- return this[Be].get(e);
2153
+ return this[Ie].get(e);
2124
2154
  }
2125
2155
  has(e) {
2126
- return this[Be].has(e);
2156
+ return this[Ie].has(e);
2127
2157
  }
2128
2158
  delete(e) {
2129
- return this[Be].delete(e);
2159
+ return this[Ie].delete(e);
2160
+ }
2161
+ }, re = /* @__PURE__ */ new WeakMap(), De = [];
2162
+ function at(e, t = !1) {
2163
+ let r = e ? re.get(e) ?? null : null;
2164
+ if (t && !r) {
2165
+ r = new Gs(), e && re.set(e, r), Pe(() => {
2166
+ e && re.delete(e);
2167
+ });
2168
+ const s = L(Ut, null);
2169
+ s && (r.parent = s), Z(Ut, r);
2130
2170
  }
2131
- }, ne = /* @__PURE__ */ new WeakMap(), Ne = [];
2132
- function lt(e, t = !1) {
2133
- let r = e ? ne.get(e) ?? null : null;
2134
- return t && !r && (r = new Xs(), e && ne.set(e, r), Fe(() => {
2135
- e && ne.delete(e);
2136
- }), te(zr, r)), r;
2171
+ return r;
2137
2172
  }
2138
- function dt(e) {
2139
- let t = e ? ne.get(e) ?? null : null;
2140
- return !t && _e() && (t = N(zr, null)), !t && Ne.length > 0 && (t = Ne[Ne.length - 1]), t;
2173
+ function yt(e) {
2174
+ let t = e ? re.get(e) ?? null : null;
2175
+ if (!t && xe() && (t = L(Ut, null)), !t && De.length > 0) {
2176
+ const r = De.length - 1;
2177
+ t = De[r];
2178
+ }
2179
+ return t;
2141
2180
  }
2142
- async function Qs(e, t) {
2143
- Ne.push(e);
2181
+ async function Xs(e, t) {
2182
+ De.push(e);
2144
2183
  try {
2145
2184
  return await t();
2146
2185
  } finally {
2147
- Ne.pop();
2186
+ De.pop();
2148
2187
  }
2149
2188
  }
2150
2189
  function Vi(e) {
2151
2190
  const t = Kr();
2152
2191
  if (!t) return !1;
2153
- const r = dt();
2192
+ const r = yt();
2154
2193
  if (!r) return !1;
2155
- if (ne.set(t, r), Array.isArray(e))
2156
- for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && ne.set(e[s], r);
2157
- return Fe(() => {
2158
- if (ne.delete(t), Array.isArray(e))
2159
- for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && ne.delete(e[s]);
2194
+ if (re.set(t, r), Array.isArray(e))
2195
+ for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && re.set(e[s], r);
2196
+ return Pe(() => {
2197
+ if (re.delete(t), Array.isArray(e))
2198
+ for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && re.delete(e[s]);
2160
2199
  }), !0;
2161
2200
  }
2162
- function Gr(e, t) {
2163
- return dt(e)?.get(t) ?? null;
2201
+ function zr(e, t) {
2202
+ const r = yt(e);
2203
+ if (!r) return null;
2204
+ let s = r;
2205
+ for (; s && !s.has(t); ) s = s.parent;
2206
+ return s?.get(t) ?? null;
2164
2207
  }
2165
2208
  function Wi(e, t, r) {
2166
- dt(e)?.set(t, r);
2209
+ yt(e)?.set(t, r);
2167
2210
  }
2168
- function Ji(e, t, r) {
2169
- dt(e)?.delete(t);
2211
+ function zi(e, t, r) {
2212
+ yt(e)?.delete(t);
2170
2213
  }
2171
2214
  var ht = /* @__PURE__ */ Symbol("hooksKey");
2172
- function Zs(e) {
2215
+ function Qs(e) {
2173
2216
  let t = e.get(ht);
2174
2217
  t || (t = [], e.set(ht, t));
2175
2218
  }
2176
- function _r(e, t) {
2219
+ function Pr(e, t) {
2177
2220
  const r = e.get(ht);
2178
- r != null && Qs(e, async () => {
2221
+ r != null && Xs(e, async () => {
2179
2222
  for (let s = r.length - 1; s >= 0; s--) {
2180
2223
  let i = r[s];
2181
2224
  if (i.type === t)
@@ -2187,20 +2230,20 @@ function _r(e, t) {
2187
2230
  }
2188
2231
  });
2189
2232
  }
2190
- var yt = /* @__PURE__ */ (function(e) {
2233
+ var _r = /* @__PURE__ */ (function(e) {
2191
2234
  return e.INACTIVATED = "ia", e.ACTIVATED = "a", e;
2192
- })({}), Ys = class {
2235
+ })({}), Zs = class {
2193
2236
  type;
2194
2237
  hook;
2195
2238
  constructor(e, t) {
2196
2239
  this.hook = t, this.type = e;
2197
2240
  }
2198
2241
  };
2199
- function ei(e, t, r) {
2200
- const s = new Ys(t, r);
2242
+ function Ys(e, t, r) {
2243
+ const s = new Zs(t, r);
2201
2244
  return e.push(s), !0;
2202
2245
  }
2203
- function ti(e, t, r) {
2246
+ function ei(e, t, r) {
2204
2247
  let s = -1;
2205
2248
  for (let i = 0; i < e.length; i++) {
2206
2249
  const n = e[i];
@@ -2211,84 +2254,84 @@ function ti(e, t, r) {
2211
2254
  }
2212
2255
  return s != -1 ? (e.splice(s, 1), !0) : !1;
2213
2256
  }
2214
- function Xr(e) {
2257
+ function Jr(e) {
2215
2258
  return (t) => {
2216
- const r = Gr(null, ht);
2217
- r && (Fe(() => {
2218
- ti(r, e, t);
2219
- }), ei(r, e, t));
2259
+ const r = zr(null, ht);
2260
+ r && (Pe(() => {
2261
+ ei(r, e, t);
2262
+ }), Ys(r, e, t));
2220
2263
  };
2221
2264
  }
2222
- var zi = function(e) {
2223
- cs(e), Xr(yt.ACTIVATED)(e);
2265
+ var Ji = function(e) {
2266
+ fs(e), Jr("a")(e);
2224
2267
  }, Gi = function(e) {
2225
- hs(e), Xr(yt.INACTIVATED)(e);
2226
- }, Qr = /* @__PURE__ */ Symbol("routeKey");
2268
+ cs(e), Jr("ia")(e);
2269
+ }, Gr = /* @__PURE__ */ Symbol("routeKey");
2227
2270
  function Fr(e, t) {
2228
- e.set(Qr, t);
2271
+ e.set(Gr, t);
2229
2272
  }
2230
2273
  function Cr(e) {
2231
- const t = Gr(e ?? null, Qr);
2274
+ const t = zr(e ?? null, Gr);
2232
2275
  return typeof t == "function" ? t() : t;
2233
2276
  }
2234
- var ri = "FoxBeforeEnter", si = "FoxEnter", ii = "FoxLeave", ni = "FoxLeave", Vt = "FoxLeaveEnd";
2235
- function Zr(e, t = !1) {
2277
+ var ti = "FoxBeforeEnter", ri = "FoxEnter", si = "FoxLeave", ii = "FoxLeave", Bt = "FoxLeaveEnd";
2278
+ function Xr(e, t = !1) {
2236
2279
  let r = null;
2237
2280
  return t ? r = e.showFromClass ?? e.enterFromClass : r = e.enterFromClass, r || (r = e.transitionName, r ? t ? `${r}-show-from` : `${r}-enter-from` : null);
2238
2281
  }
2239
- function Yr(e, t = !1) {
2282
+ function Qr(e, t = !1) {
2240
2283
  let r = null;
2241
2284
  return t ? r = e.showActiveClass ?? e.enterActiveClass : r = e.enterActiveClass, r || (r = e.transitionName, r ? t ? `${r}-show-active` : `${r}-enter-active` : null);
2242
2285
  }
2243
- function oi(e, t = !1) {
2286
+ function ni(e, t = !1) {
2244
2287
  let r = null;
2245
2288
  return t ? r = e.showToClass ?? e.enterToClass : r = e.enterToClass, r || (r = e.transitionName, r ? t ? `${r}-show-to` : `${r}-enter-to` : null);
2246
2289
  }
2247
- function es(e, t = !1) {
2290
+ function Zr(e, t = !1) {
2248
2291
  let r = null;
2249
2292
  return t ? r = e.hideFromClass ?? e.leaveFromClass : r = e.leaveFromClass, r || (r = e.transitionName, r ? t ? `${r}-hide-from` : `${r}-leave-from` : null);
2250
2293
  }
2251
- function ts(e, t = !1) {
2294
+ function Yr(e, t = !1) {
2252
2295
  let r = null;
2253
2296
  return t ? r = e.hideActiveClass ?? e.leaveActiveClass : r = e.leaveActiveClass, r || (r = e.transitionName, r ? t ? `${r}-hide-active` : `${r}-leave-active` : null);
2254
2297
  }
2255
- function li(e, t = !1) {
2298
+ function oi(e, t = !1) {
2256
2299
  let r = null;
2257
2300
  return t ? r = e.hideToClass ?? e.leaveToClass : r = e.leaveToClass, r || (r = e.transitionName, r ? t ? `${r}-hide-to` : `${r}-leave-to` : null);
2258
2301
  }
2259
- function ai(e, t = !1) {
2302
+ function li(e, t = !1) {
2260
2303
  let r = null;
2261
2304
  return t ? r = e.beforeShow ?? e.beforeEnter : r = e.beforeEnter, r;
2262
2305
  }
2263
- function ui(e, t = !1) {
2306
+ function ai(e, t = !1) {
2264
2307
  let r = null;
2265
2308
  return t ? r = e.show ?? e.enter : r = e.enter, r;
2266
2309
  }
2267
- function fi(e, t = !1) {
2310
+ function ui(e, t = !1) {
2268
2311
  let r = null;
2269
2312
  return t ? r = e.afterShow ?? e.afterEnter : r = e.afterEnter, r;
2270
2313
  }
2271
- function ci(e, t = !1) {
2314
+ function fi(e, t = !1) {
2272
2315
  let r = null;
2273
2316
  return t ? r = e.showCancelled ?? e.enterCancelled : r = e.enterCancelled, r;
2274
2317
  }
2275
- function hi(e, t = !1) {
2318
+ function ci(e, t = !1) {
2276
2319
  let r = null;
2277
2320
  return t ? r = e.beforeHide ?? e.beforeLeave : r = e.beforeLeave, r;
2278
2321
  }
2279
- function yi(e, t = !1) {
2322
+ function hi(e, t = !1) {
2280
2323
  let r = null;
2281
2324
  return t ? r = e.hide ?? e.leave : r = e.leave, r;
2282
2325
  }
2283
- function di(e, t = !1) {
2326
+ function yi(e, t = !1) {
2284
2327
  let r = null;
2285
2328
  return t ? r = e.afterHide ?? e.afterLeave : r = e.afterLeave, r;
2286
2329
  }
2287
- function mi(e, t = !1) {
2330
+ function di(e, t = !1) {
2288
2331
  let r = null;
2289
2332
  return t ? r = e.hideCancelled ?? e.leaveCancelled : r = e.leaveCancelled, r;
2290
2333
  }
2291
- function sr(e) {
2334
+ function rr(e) {
2292
2335
  let t, r = e.transitionDuration;
2293
2336
  return typeof r == "object" ? t = {
2294
2337
  enter: r.enter ?? -1,
@@ -2302,26 +2345,26 @@ function sr(e) {
2302
2345
  hide: r
2303
2346
  }), t;
2304
2347
  }
2305
- function Pe(e, t) {
2348
+ function Se(e, t) {
2306
2349
  e.classList.contains(t) || e.classList.add(t);
2307
2350
  }
2308
- function Se(e, t) {
2351
+ function be(e, t) {
2309
2352
  e.classList.remove(t);
2310
2353
  }
2311
- var pi = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2312
- function mt(e) {
2313
- pi(e);
2354
+ var vi = Re && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2355
+ function dt(e) {
2356
+ vi(e);
2314
2357
  }
2315
- function A(e, t) {
2316
- w(e) && Reflect.apply(e, null, t);
2358
+ function C(e, t) {
2359
+ b(e) && Reflect.apply(e, null, t);
2317
2360
  }
2318
- function rs(e, t, r = -1, s, i, n) {
2361
+ function es(e, t, r = -1, s, i, n) {
2319
2362
  let o = [];
2320
2363
  const l = () => {
2321
- for (let a of o) Qt(e, a.type, a.listener);
2364
+ for (let a of o) Xt(e, a.type, a.listener);
2322
2365
  o = [];
2323
2366
  };
2324
- if (w(i)) {
2367
+ if (b(i)) {
2325
2368
  if (s !== void 0 && s >= 0) {
2326
2369
  setTimeout(() => {
2327
2370
  Reflect.apply(i, null, [
@@ -2335,7 +2378,7 @@ function rs(e, t, r = -1, s, i, n) {
2335
2378
  const a = [
2336
2379
  "animationend",
2337
2380
  "transitionend",
2338
- Vt
2381
+ Bt
2339
2382
  ], u = (f) => {
2340
2383
  (f.target || f.srcElement) === f.currentTarget && (l(), Reflect.apply(i, null, [
2341
2384
  e,
@@ -2350,7 +2393,7 @@ function rs(e, t, r = -1, s, i, n) {
2350
2393
  });
2351
2394
  });
2352
2395
  }
2353
- if (w(n)) {
2396
+ if (b(n)) {
2354
2397
  const a = "animationcancel", u = (f) => {
2355
2398
  (f.target || f.srcElement) === f.currentTarget && (l(), Reflect.apply(n, null, [
2356
2399
  e,
@@ -2364,15 +2407,15 @@ function rs(e, t, r = -1, s, i, n) {
2364
2407
  });
2365
2408
  }
2366
2409
  }
2367
- function pt(e) {
2368
- return !Ee || e === null ? !1 : e.opsType === F.Append || e.opsType === F.Open;
2410
+ function vt(e) {
2411
+ return !Re || e === null ? !1 : e.opsType === _.Append || e.opsType === _.Open;
2369
2412
  }
2370
- function ss(e, t, r = {}, s, i = -1) {
2371
- if (e || pt(s)) {
2372
- const n = Zr(r, e);
2373
- n && Pe(t, n);
2374
- const o = Yr(r, e);
2375
- o && Pe(t, o), A(ai(r, e), [
2413
+ function ts(e, t, r = {}, s, i = -1) {
2414
+ if (e || vt(s)) {
2415
+ const n = Xr(r, e);
2416
+ n && Se(t, n);
2417
+ const o = Qr(r, e);
2418
+ o && Se(t, o), C(li(r, e), [
2376
2419
  t,
2377
2420
  e,
2378
2421
  s,
@@ -2380,32 +2423,32 @@ function ss(e, t, r = {}, s, i = -1) {
2380
2423
  ]);
2381
2424
  }
2382
2425
  }
2383
- function is(e, t, r = {}, s, i, n, o) {
2384
- if (!pt(i) && !e) {
2385
- w(o) && o(o, [t]);
2426
+ function rs(e, t, r = {}, s, i, n, o) {
2427
+ if (!vt(i) && !e) {
2428
+ b(o) && o(o, [t]);
2386
2429
  return;
2387
2430
  }
2388
- const l = Zr(r, e), a = Yr(r, e), u = oi(r, e), f = ui(r, e), c = fi(r, e), h = ci(r, e);
2431
+ const l = Xr(r, e), a = Qr(r, e), u = ni(r, e), f = ai(r, e), c = ui(r, e), h = fi(r, e);
2389
2432
  if (!l && !a && !u && !f) {
2390
- w(o) && o(o, [t]);
2433
+ b(o) && o(o, [t]);
2391
2434
  return;
2392
2435
  }
2393
- mt(() => {
2394
- rs(t, i, n, s, () => {
2395
- a && Se(t, a), u && Se(t, u), w(c) && A(c, [
2436
+ dt(() => {
2437
+ es(t, i, n, s, () => {
2438
+ a && be(t, a), u && be(t, u), b(c) && C(c, [
2396
2439
  t,
2397
2440
  e,
2398
2441
  i,
2399
2442
  n
2400
- ]), w(o) && o(o, [t]);
2443
+ ]), b(o) && o(o, [t]);
2401
2444
  }, () => {
2402
- w(h) && A(h, [
2445
+ b(h) && C(h, [
2403
2446
  t,
2404
2447
  e,
2405
2448
  i,
2406
2449
  n
2407
2450
  ]);
2408
- }), l && Se(t, l), u && Pe(t, u), w(f) && A(f, [
2451
+ }), l && be(t, l), u && Se(t, u), b(f) && C(f, [
2409
2452
  t,
2410
2453
  e,
2411
2454
  i,
@@ -2413,12 +2456,12 @@ function is(e, t, r = {}, s, i, n, o) {
2413
2456
  ]);
2414
2457
  });
2415
2458
  }
2416
- function ns(e, t, r = {}, s, i = -1) {
2417
- if (e || pt(s)) {
2418
- const n = es(r, e);
2419
- n && Pe(t, n);
2420
- const o = ts(r, e);
2421
- o && Pe(t, o), A(hi(r, e), [
2459
+ function ss(e, t, r = {}, s, i = -1) {
2460
+ if (e || vt(s)) {
2461
+ const n = Zr(r, e);
2462
+ n && Se(t, n);
2463
+ const o = Yr(r, e);
2464
+ o && Se(t, o), C(ci(r, e), [
2422
2465
  t,
2423
2466
  e,
2424
2467
  s,
@@ -2426,40 +2469,40 @@ function ns(e, t, r = {}, s, i = -1) {
2426
2469
  ]);
2427
2470
  }
2428
2471
  }
2429
- function os(e, t, r = {}, s, i, n, o, l) {
2430
- if (!pt(n) && !e) {
2431
- w(l) && A(l, [t]), !e && w(i) && i();
2472
+ function is(e, t, r = {}, s, i, n, o, l) {
2473
+ if (!vt(n) && !e) {
2474
+ b(l) && C(l, [t]), !e && b(i) && i();
2432
2475
  return;
2433
2476
  }
2434
- const a = es(r, e), u = ts(r, e), f = li(r, e), c = yi(r, e), h = di(r, e), y = mi(r, e);
2477
+ const a = Zr(r, e), u = Yr(r, e), f = oi(r, e), c = hi(r, e), h = yi(r, e), y = di(r, e);
2435
2478
  if (!a && !u && !f && !c) {
2436
- w(l) && A(l, [t]), !e && w(i) && i();
2479
+ b(l) && C(l, [t]), !e && b(i) && i();
2437
2480
  return;
2438
2481
  }
2439
- mt(() => {
2440
- rs(t, n, o, s, () => {
2482
+ dt(() => {
2483
+ es(t, n, o, s, () => {
2441
2484
  try {
2442
- u && Se(t, u), f && Se(t, f), w(h) && A(h, [
2485
+ u && be(t, u), f && be(t, f), b(h) && C(h, [
2443
2486
  t,
2444
2487
  e,
2445
2488
  n,
2446
2489
  o
2447
- ]), w(l) && A(l, [t]);
2490
+ ]), b(l) && C(l, [t]);
2448
2491
  } finally {
2449
- !e && w(i) && i();
2492
+ !e && b(i) && i();
2450
2493
  }
2451
2494
  }, () => {
2452
2495
  try {
2453
- w(y) && A(y, [
2496
+ b(y) && C(y, [
2454
2497
  t,
2455
2498
  e,
2456
2499
  n,
2457
2500
  o
2458
- ]), w(l) && A(l, [t]);
2501
+ ]), b(l) && C(l, [t]);
2459
2502
  } finally {
2460
- !e && w(i) && i();
2503
+ !e && b(i) && i();
2461
2504
  }
2462
- }), a && Se(t, a), f && Pe(t, f), w(c) && A(c, [
2505
+ }), a && be(t, a), f && Se(t, f), b(c) && C(c, [
2463
2506
  t,
2464
2507
  e,
2465
2508
  n,
@@ -2467,83 +2510,83 @@ function os(e, t, r = {}, s, i, n, o, l) {
2467
2510
  ]);
2468
2511
  });
2469
2512
  }
2470
- function Wt(e, t = {}, r, s = -1) {
2471
- const i = t.mode ?? "default", n = sr(t);
2513
+ function Vt(e, t = {}, r, s = -1) {
2514
+ const i = t.mode ?? "default", n = rr(t);
2472
2515
  return {
2473
2516
  mode: i,
2474
2517
  persisted: !1,
2475
2518
  beforeEnter: (o) => {
2476
- ss(!1, o, t, r, s);
2519
+ ts(!1, o, t, r, s);
2477
2520
  },
2478
2521
  enter: (o) => {
2479
- is(!1, o, t, n.enter, r, s);
2522
+ rs(!1, o, t, n.enter, r, s);
2480
2523
  },
2481
2524
  leave: (o, l) => {
2482
- ns(!1, o, t, r, s), os(!1, o, t, n.leave, l, r, s, () => {
2525
+ ss(!1, o, t, r, s), is(!1, o, t, n.leave, l, r, s, () => {
2483
2526
  e.transition = null;
2484
2527
  });
2485
2528
  },
2486
- clone: (o) => Wt(e, t, r, s)
2529
+ clone: (o) => Vt(e, t, r, s)
2487
2530
  };
2488
2531
  }
2489
- function ls(e) {
2532
+ function ns(e) {
2490
2533
  return e.el;
2491
2534
  }
2492
- function vi(e, t = {}, r, s, i, n) {
2535
+ function mi(e, t = {}, r, s, i, n) {
2493
2536
  if (i === !0) {
2494
- const o = ls(e);
2537
+ const o = ns(e);
2495
2538
  if (o == null) return;
2496
- const l = sr(t);
2497
- ss(!0, o, t, r, s), is(!0, o, t, l.show, r, s, (a) => {
2498
- w(n) && A(n, [a]);
2539
+ const l = rr(t);
2540
+ ts(!0, o, t, r, s), rs(!0, o, t, l.show, r, s, (a) => {
2541
+ b(n) && C(n, [a]);
2499
2542
  });
2500
- } else w(n) && A(n, []);
2543
+ } else b(n) && C(n, []);
2501
2544
  }
2502
- function gi(e, t = {}, r, s, i, n) {
2545
+ function pi(e, t = {}, r, s, i, n) {
2503
2546
  if (i === !0) {
2504
- const o = ls(e);
2547
+ const o = ns(e);
2505
2548
  if (o == null) return;
2506
- const l = sr(t);
2507
- ns(!0, o, t, r, s), os(!0, o, t, l.hide, null, r, s, (a) => {
2508
- w(n) && A(n, [a]);
2549
+ const l = rr(t);
2550
+ ss(!0, o, t, r, s), is(!0, o, t, l.hide, null, r, s, (a) => {
2551
+ b(n) && C(n, [a]);
2509
2552
  });
2510
- } else w(n) && A(n, []);
2553
+ } else b(n) && C(n, []);
2511
2554
  }
2512
- function bi(e) {
2513
- mt(() => {
2555
+ function gi(e) {
2556
+ dt(() => {
2514
2557
  for (let t = 0; t < e.length; t++) Reflect.apply(e[t], null, []);
2515
2558
  });
2516
2559
  }
2517
- function as(e, t = {}, r, s = -1) {
2560
+ function os(e, t = {}, r, s = -1) {
2518
2561
  return {
2519
2562
  mode: t.mode ?? "default",
2520
2563
  persisted: !1,
2521
2564
  beforeEnter: (i) => {
2522
- ze(ri, {}, i);
2565
+ We(ti, {}, i);
2523
2566
  },
2524
2567
  enter: (i) => {
2525
- ze(si, {}, i);
2568
+ We(ri, {}, i);
2526
2569
  },
2527
2570
  leave: (i, n) => {
2528
- ze(ii, {}, i), mt(() => {
2571
+ We(si, {}, i), dt(() => {
2529
2572
  const o = (l) => {
2530
- (l.target || l.srcElement) === l.currentTarget && (Qt(i, Vt, o), n && Reflect.apply(n, null, []), e.transition = null);
2573
+ (l.target || l.srcElement) === l.currentTarget && (Xt(i, Bt, o), n && Reflect.apply(n, null, []), e.transition = null);
2531
2574
  };
2532
- ft(i, Vt, o), ze(ni, {}, i);
2575
+ ft(i, Bt, o), We(ii, {}, i);
2533
2576
  });
2534
2577
  },
2535
- clone: (i) => as(e, t, r, s)
2578
+ clone: (i) => os(e, t, r, s)
2536
2579
  };
2537
2580
  }
2538
- function ie(e, t, r) {
2581
+ function te(e, t, r) {
2539
2582
  return typeof e == "function" ? Reflect.apply(e, {}, [t, r]) : e;
2540
2583
  }
2541
- function Bt(e, t) {
2584
+ function Lt(e, t) {
2542
2585
  if (!e) return null;
2543
2586
  const r = e(t);
2544
2587
  return r.length === 1 ? r[0] : r;
2545
2588
  }
2546
- function be(e, t) {
2589
+ function me(e, t) {
2547
2590
  return typeof t == "function" ? t(e) : e;
2548
2591
  }
2549
2592
  var wi = class {
@@ -2552,7 +2595,7 @@ var wi = class {
2552
2595
  constructor(e, t) {
2553
2596
  this.node = e, this.state = t;
2554
2597
  }
2555
- }, Jt = jr({
2598
+ }, Wt = $r({
2556
2599
  name: "RouterView",
2557
2600
  inheritAttrs: !1,
2558
2601
  props: {
@@ -2742,34 +2785,34 @@ var wi = class {
2742
2785
  }
2743
2786
  },
2744
2787
  setup(e, t) {
2745
- const r = Kr(), s = e.multi === !0, i = N(Ve, null), n = N(kt, 0), o = N(Er, null), l = N(It, -1);
2788
+ const r = Kr(), s = e.multi === !0, i = L(Ue, null), n = L(jt, 0), o = L(Sr, null), l = L(kt, -1);
2746
2789
  let a = null, u = e.modelSlot ?? null;
2747
2790
  if (u) {
2748
- if (te(kt, n + 1), te(It, u.index), te(Ot, u.index), !u.route) {
2791
+ if (Z(jt, n + 1), Z(kt, u.index), Z(Tt, u.index), !u.route) {
2749
2792
  console.warn("[Fox]child view render error, route not exist");
2750
2793
  return;
2751
2794
  }
2752
- const c = lt(u, !0);
2753
- c && (Zs(c), Fr(c, () => u?.route ?? null));
2795
+ const c = at(u, !0);
2796
+ c && (Qs(c), Fr(c, () => u?.route ?? null));
2754
2797
  } else {
2755
2798
  if (i == null) {
2756
2799
  console.error("[Fox]router is not been injected");
2757
2800
  return;
2758
2801
  }
2759
- const c = e.name, h = N(Pr, null), y = N(Ot, 0);
2760
- if (a = i[Vr](c, n, o, l, h, y), a === null) return;
2761
- te(Pr, a);
2762
- const d = a[G] === !0;
2763
- if (d && te(Er, a), !s && (te(It, -1), te(kt, n + 1), te(Ot, -1), d && r)) {
2764
- const m = lt(r, !0);
2765
- m && Fr(m, () => {
2766
- const b = a?.slots.value ?? [];
2767
- return b.length > 0 ? b[0].route : null;
2802
+ const c = e.name, h = L(xr, null), y = L(Tt, 0);
2803
+ if (a = i[Br](c, n, o, l, h, y), a === null) return;
2804
+ Z(xr, a);
2805
+ const d = a[V] === !0;
2806
+ if (d && Z(Sr, a), !s && (Z(kt, -1), Z(jt, n + 1), Z(Tt, -1), d && r)) {
2807
+ const v = at(r, !0);
2808
+ v && Fr(v, () => {
2809
+ const w = a?.slots.value ?? [];
2810
+ return w.length > 0 ? w[0].route : null;
2768
2811
  });
2769
2812
  }
2770
2813
  }
2771
2814
  const f = { value: /* @__PURE__ */ new Map() };
2772
- return Fe(() => {
2815
+ return Pe(() => {
2773
2816
  if (f.value && f.value.clear(), u) {
2774
2817
  const c = u;
2775
2818
  c.route = null, c.model = null, c.instance = null, u = null;
@@ -2777,64 +2820,87 @@ var wi = class {
2777
2820
  }), () => {
2778
2821
  if (s) {
2779
2822
  const c = /* @__PURE__ */ new Map(), h = [], y = a?.slots.value, d = [];
2780
- for (let g = 0; g < y.length; g++) {
2781
- const p = y[g], K = `${e.name}_${p.index}`, L = ie(e.transition, p.route, g) ?? !0, Ce = { modelSlot: p };
2782
- let M;
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);
2785
- typeof oe == "string" && oe.length > 0 && (q[oe] = !0);
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;
2823
+ for (let m = 0; m < y.length; m++) {
2824
+ const p = y[m], $ = `${e.name}_${p.index}`, K = te(e.transition, p.route, m) ?? !0, _e = { modelSlot: p };
2825
+ let j;
2826
+ t.slots.default ? j = ue(Wt, _e, { default: t.slots.default }) : j = ue(Wt, _e);
2827
+ const E = {}, se = te(e.viewClass, p.route, m);
2828
+ typeof se == "string" && se.length > 0 && (E[se] = !0);
2829
+ const Q = te(e.viewActiveClass, p.route, m), k = te(e.viewInactiveClass, p.route, m), z = f.value.get($);
2830
+ if (typeof Q == "string" && Q.length > 0 && (E[Q] = p.active), typeof k == "string" && k.length > 0 && (E[k] = !p.active), z && p.active !== z.state) {
2831
+ const ye = z.node;
2789
2832
  p.active ? d.unshift(() => {
2790
- const vt = () => {
2791
- const Ae = lt(p);
2792
- Ae != null && _r(Ae, yt.ACTIVATED);
2833
+ const mt = () => {
2834
+ const Fe = at(p);
2835
+ Fe != null && Pr(Fe, _r.ACTIVATED);
2793
2836
  };
2794
- vi(ir, e, p.route, g, L, vt);
2837
+ mi(ye, e, p.route, m, K, mt);
2795
2838
  }) : d.push(() => {
2796
- const vt = () => {
2797
- const Ae = lt(p);
2798
- Ae != null && _r(Ae, yt.INACTIVATED);
2839
+ const mt = () => {
2840
+ const Fe = at(p);
2841
+ Fe != null && Pr(Fe, _r.INACTIVATED);
2799
2842
  };
2800
- gi(ir, e, p.route, g, L, vt);
2843
+ pi(ye, e, p.route, m, K, mt);
2801
2844
  });
2802
2845
  }
2803
- const U = {
2804
- class: q,
2805
- key: K
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);
2846
+ const D = {
2847
+ class: E,
2848
+ key: $
2849
+ }, N = te(e.viewTagProps, p.route, m);
2850
+ if (N !== null && typeof N == "object") {
2851
+ const ye = me(N, i?.propsFilter);
2852
+ q(!0, D, ye);
2853
+ }
2854
+ if (p.route?.viewTagAttrs && typeof p.route?.viewTagAttrs == "object") {
2855
+ const ye = me(p.route.viewTagAttrs, i?.propsFilter);
2856
+ q(!0, D, ye);
2857
+ }
2858
+ const as = te(e.viewTag, p.route, m), he = ue(as, D, { default: () => [j] });
2859
+ c.set($, new wi(he, p.active)), f.value.delete($), K === !0 ? he.transition = Vt(he, e, p.route, m) : K === "custom" && (he.transition = os(he, e, p.route, m)), h.push(he);
2810
2860
  }
2811
- f.value = c, bi(d);
2812
- const m = ie(e.tag, null, -1), b = {};
2813
- return Object.assign(b, t.attrs), he(m, b, { default: () => h });
2861
+ f.value = c, gi(d);
2862
+ const v = te(e.tag, null, -1), w = {};
2863
+ return Object.assign(w, t.attrs), ue(v, w, { default: () => h });
2814
2864
  } else if (u != null) {
2815
2865
  const c = u.model, h = {};
2816
- c.props && (typeof c.props == "object" ? j(!1, h, be(c.props, i?.propsFilter)) : c.props === !0 && typeof u.route?.params == "object" && j(!1, h, be(u.route.params, i?.propsFilter)));
2817
- const y = he(c.component, h);
2818
- return Bt(t.slots.default, {
2866
+ if (c.props) {
2867
+ if (typeof c.props == "object") {
2868
+ const d = me(c.props, i?.propsFilter);
2869
+ q(!1, h, d);
2870
+ } else if (c.props === !0 && typeof u.route?.params == "object") {
2871
+ const d = me(u.route.params, i?.propsFilter);
2872
+ q(!1, h, d);
2873
+ }
2874
+ }
2875
+ const y = ue(c.component, h);
2876
+ return Lt(t.slots.default, {
2819
2877
  Component: y,
2820
2878
  route: u.route
2821
2879
  }) ?? y;
2822
2880
  } else {
2823
2881
  const c = a?.slots.value ?? [];
2824
2882
  if (c.length > 0) {
2825
- const h = c[0], y = h.route, d = h.model, m = {};
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)));
2827
- const b = he(d.component, m);
2828
- return (ie(e.transition, y, -1) ?? !0) && (b.transition = Wt(b, e, y, -1)), Bt(t.slots.default, {
2829
- Component: b,
2883
+ const h = c[0], y = h.route, d = h.model, v = {};
2884
+ if (d.props) {
2885
+ if (typeof d.props == "object") {
2886
+ const m = me(d.props, i?.propsFilter);
2887
+ q(!1, v, m);
2888
+ } else if (d.props === !0 && typeof y?.params == "object") {
2889
+ const m = me(y.params, i?.propsFilter);
2890
+ q(!1, v, m);
2891
+ }
2892
+ }
2893
+ const w = ue(d.component, v);
2894
+ return (te(e.transition, y, -1) ?? !0) && (w.transition = Vt(w, e, y, -1)), Lt(t.slots.default, {
2895
+ Component: w,
2830
2896
  route: y
2831
- }) ?? b;
2832
- } else return Bt(t.slots.fallback, {});
2897
+ }) ?? w;
2898
+ } else return Lt(t.slots.fallback, {});
2833
2899
  }
2834
2900
  };
2835
2901
  }
2836
2902
  });
2837
- function Ri(e) {
2903
+ function bi(e) {
2838
2904
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button != null && e.button !== 0)) {
2839
2905
  if (e.currentTarget && e.currentTarget.getAttribute) {
2840
2906
  const t = e.currentTarget.getAttribute("target");
@@ -2843,13 +2909,13 @@ function Ri(e) {
2843
2909
  return e.preventDefault && e.preventDefault(), !0;
2844
2910
  }
2845
2911
  }
2846
- function xi(e, t) {
2912
+ function Ri(e, t) {
2847
2913
  return e == null || t == null ? !1 : !!(e.path && t.path && t.path.startsWith(e.path) || e.name && e.name == t.name);
2848
2914
  }
2849
- function we(e, t) {
2915
+ function pe(e, t) {
2850
2916
  return typeof e == "function" ? Reflect.apply(e, {}, [t]) : e;
2851
2917
  }
2852
- var Si = jr({
2918
+ var Si = $r({
2853
2919
  name: "RouterLink",
2854
2920
  inheritAttrs: !1,
2855
2921
  props: {
@@ -2896,23 +2962,23 @@ var Si = jr({
2896
2962
  }
2897
2963
  },
2898
2964
  setup(e, t) {
2899
- const r = N(Ve, null);
2965
+ const r = L(Ue, null);
2900
2966
  return () => {
2901
- let s = we(e.to, null), i = we(e.tag, s);
2967
+ let s = pe(e.to, null), i = pe(e.tag, s);
2902
2968
  if (i == null) {
2903
2969
  console.warn("[Fox]can not resolve link tag");
2904
2970
  return;
2905
2971
  }
2906
2972
  let n = null, o = null;
2907
- r !== null && (n = r[I](s), e.root && (n.root = e.root), o = r.currentRoute.value);
2908
- let l = {}, a = we(e.activeClass, n);
2909
- if (typeof a == "string" && a.length > 0 && (l[a] = xi(n, o)), we(e.exact, n) === !0) {
2910
- let c = we(e.exactActiveClass, n);
2911
- typeof c == "string" && c.length > 0 && (l[c] = x.isSamePathForRoute(n, o));
2973
+ r !== null && (n = r[M](s), e.root && (n.root = e.root), o = r.currentRoute.value);
2974
+ let l = {}, a = pe(e.activeClass, n);
2975
+ if (typeof a == "string" && a.length > 0 && (l[a] = Ri(n, o)), pe(e.exact, n) === !0) {
2976
+ let c = pe(e.exactActiveClass, n);
2977
+ typeof c == "string" && c.length > 0 && (l[c] = R.isSamePathForRoute(n, o));
2912
2978
  }
2913
2979
  let u = { class: l };
2914
- (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), j(!0, u, t.attrs);
2915
- const f = we(e.event, n);
2980
+ (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), q(!0, u, t.attrs);
2981
+ const f = pe(e.event, n);
2916
2982
  if (typeof f == "string") {
2917
2983
  const c = (h) => {
2918
2984
  if (r == null) {
@@ -2923,35 +2989,33 @@ var Si = jr({
2923
2989
  console.warn("[Fox]route is not been resolved");
2924
2990
  return;
2925
2991
  }
2926
- Ri(h) && r.to(n);
2992
+ bi(h) && r.to(n);
2927
2993
  };
2928
2994
  u[f] = c;
2929
2995
  }
2930
- return he(i, u, t.slots);
2996
+ return ue(i, u, t.slots);
2931
2997
  };
2932
2998
  }
2933
- }), ut = /* @__PURE__ */ (function(e) {
2934
- return e[e.limitless = 0] = "limitless", e[e.once = 1] = "once", e;
2935
- })(ut || {}), Re = /* @__PURE__ */ Symbol("registerKey"), Ei = class {
2999
+ }), ge = /* @__PURE__ */ Symbol("registerKey"), xi = class {
2936
3000
  policy;
2937
3001
  callback;
2938
3002
  constructor(e, t) {
2939
3003
  this.callback = e, this.policy = t;
2940
3004
  }
2941
- }, Ar = class {
2942
- [Re] = /* @__PURE__ */ new Map();
3005
+ }, Er = class {
3006
+ [ge] = /* @__PURE__ */ new Map();
2943
3007
  constructor() {
2944
3008
  }
2945
3009
  on(e, t, r = !1) {
2946
- let s = this[Re].get(e);
2947
- s || (s = new Array(), this[Re].set(e, s));
2948
- let i = new Ei(t, r === !0 ? ut.once : ut.limitless);
3010
+ let s = this[ge].get(e);
3011
+ s || (s = new Array(), this[ge].set(e, s));
3012
+ let i = new xi(t, r === !0 ? 1 : 0);
2949
3013
  return s.push(i), this;
2950
3014
  }
2951
3015
  off(e, t) {
2952
3016
  if (!t)
2953
- return this[Re].delete(e), this;
2954
- let r = this[Re].get(e);
3017
+ return this[ge].delete(e), this;
3018
+ let r = this[ge].get(e);
2955
3019
  if (r) {
2956
3020
  for (let s = 0; s < r.length; s++) if (r[s].callback === t) {
2957
3021
  r.splice(s, 1);
@@ -2982,11 +3046,11 @@ var Si = jr({
2982
3046
  return this;
2983
3047
  }
2984
3048
  emit(e, ...t) {
2985
- let r = this[Re].get(e);
3049
+ let r = this[ge].get(e);
2986
3050
  if (!r) return this;
2987
3051
  for (let s = 0; s < r.length; ) {
2988
3052
  let i = r[s];
2989
- if (i.policy == ut.once ? r.splice(s, 1) : s++, typeof i.callback == "function") try {
3053
+ if (i.policy == 1 ? r.splice(s, 1) : s++, typeof i.callback == "function") try {
2990
3054
  He(() => {
2991
3055
  Reflect.apply(i.callback, {}, t);
2992
3056
  });
@@ -2999,13 +3063,13 @@ var Si = jr({
2999
3063
  trigger(e, ...t) {
3000
3064
  return Reflect.apply(this.emit, this, [e, ...t]);
3001
3065
  }
3002
- }, Pi = "FoxRouterView", _i = "FoxRouterLink", H = /* @__PURE__ */ (function(e) {
3066
+ }, Pi = "FoxRouterView", _i = "FoxRouterLink", X = /* @__PURE__ */ (function(e) {
3003
3067
  return e[e.Loading = 0] = "Loading", e[e.Loaded = 1] = "Loaded", e[e.Defining = 2] = "Defining", e[e.Defined = 3] = "Defined", e;
3004
3068
  })({});
3005
3069
  function Fi(e) {
3006
- return e == H.Loaded || e === H.Defined;
3070
+ return e == 1 || e === 3;
3007
3071
  }
3008
- var qr = /* @__PURE__ */ (function(e) {
3072
+ var Ar = /* @__PURE__ */ (function(e) {
3009
3073
  return e[e.normal = 0] = "normal", e[e.factory = 1] = "factory", e;
3010
3074
  })({}), Ci = class {
3011
3075
  register = /* @__PURE__ */ new Map();
@@ -3045,15 +3109,15 @@ var qr = /* @__PURE__ */ (function(e) {
3045
3109
  clear() {
3046
3110
  this.register.clear(), this.regExpRegisters = [];
3047
3111
  }
3048
- }, Dt = [
3112
+ }, It = [
3049
3113
  "require",
3050
3114
  "exports",
3051
3115
  "module"
3052
3116
  ];
3053
- async function Ai(e) {
3117
+ async function Ei(e) {
3054
3118
  return await new Function("url", "return import(url)")(e);
3055
3119
  }
3056
- var $r = class {
3120
+ var qr = class {
3057
3121
  moduleManager = new Ci();
3058
3122
  _alias = {};
3059
3123
  set alias(e) {
@@ -3084,7 +3148,7 @@ var $r = class {
3084
3148
  return this._query;
3085
3149
  }
3086
3150
  get head() {
3087
- return Je().head;
3151
+ return Ve().head;
3088
3152
  }
3089
3153
  _cssMountPoint = null;
3090
3154
  set cssMountPoint(e) {
@@ -3104,19 +3168,19 @@ var $r = class {
3104
3168
  const r = {
3105
3169
  id: typeof e == "string" ? e : e?.source,
3106
3170
  src: "",
3107
- status: H.Loaded
3171
+ status: X.Loaded
3108
3172
  };
3109
- typeof t == "function" ? (r.exports = t, r.type = qr.factory) : r.exports = t, this.moduleManager.set(e, r);
3173
+ typeof t == "function" ? (r.exports = t, r.type = Ar.factory) : r.exports = t, this.moduleManager.set(e, r);
3110
3174
  }
3111
3175
  removeModule(e) {
3112
3176
  this.moduleManager.remove(e);
3113
3177
  }
3114
3178
  getModuleExports(e) {
3115
3179
  const t = this.moduleManager.get(e);
3116
- return t && Fi(t.status) ? t.type === qr.factory && typeof t.exports == "function" ? t.exports() : t.exports : null;
3180
+ return t && Fi(t.status) ? t.type === Ar.factory && typeof t.exports == "function" ? t.exports() : t.exports : null;
3117
3181
  }
3118
3182
  exposeRequire(e = "__foxRequire", t, r) {
3119
- const s = t ?? C();
3183
+ const s = t ?? F();
3120
3184
  return s && typeof s == "object" ? (s[e] = (i) => {
3121
3185
  const n = this.getModuleExports(i);
3122
3186
  return r && !n && console.error(`[Fox] module:${i}, not found!`), n;
@@ -3124,7 +3188,7 @@ var $r = class {
3124
3188
  }
3125
3189
  resloveResource(e) {
3126
3190
  if (typeof e == "string") {
3127
- if (Dt.includes(e)) return e;
3191
+ if (It.includes(e)) return e;
3128
3192
  if (e = this.alias?.[e] ?? e, typeof this.resourceParser == "function") {
3129
3193
  const r = this.resloveResource(e);
3130
3194
  if (!r) return r;
@@ -3166,7 +3230,7 @@ var $r = class {
3166
3230
  const u = this.resloveResource(e[a]);
3167
3231
  s.push(u);
3168
3232
  }
3169
- const o = new qi(s.length, (a, u) => {
3233
+ const o = new Ai(s.length, (a, u) => {
3170
3234
  if (o.isOK()) try {
3171
3235
  typeof n == "function" && Reflect.apply(n, {}, u), t(u);
3172
3236
  } catch (f) {
@@ -3179,7 +3243,7 @@ var $r = class {
3179
3243
  }
3180
3244
  }), l = new ct();
3181
3245
  for (let a = 0; a < s.length; a++) {
3182
- const u = new $i(a, s[a], o);
3246
+ const u = new qi(a, s[a], o);
3183
3247
  this.mount(l, u);
3184
3248
  }
3185
3249
  return this;
@@ -3220,7 +3284,7 @@ var $r = class {
3220
3284
  return;
3221
3285
  }
3222
3286
  if (typeof t.resource == "string") {
3223
- if (Dt.includes(t.resource)) {
3287
+ if (It.includes(t.resource)) {
3224
3288
  e.post((i) => {
3225
3289
  t.progress.work(!0, t.index, t.resource), i.resolve();
3226
3290
  });
@@ -3235,11 +3299,12 @@ var $r = class {
3235
3299
  }
3236
3300
  }
3237
3301
  const r = t.resource;
3238
- if (r.type === "js") if (r.format === "es") this.mountCJS(e, t);
3239
- else {
3240
- const s = this.jsMountPoint ?? this.head;
3241
- this.mountJS(e, t, s);
3242
- }
3302
+ if (r.type === "js")
3303
+ if (r.format === "es") this.mountCJS(e, t);
3304
+ else {
3305
+ const s = this.jsMountPoint ?? this.head;
3306
+ this.mountJS(e, t, s);
3307
+ }
3243
3308
  else {
3244
3309
  const s = this.cssMountPoint ?? this.head;
3245
3310
  this.mountCSS(e, t, s);
@@ -3252,7 +3317,7 @@ var $r = class {
3252
3317
  t.progress.work(!0, t.index, n), s.resolve();
3253
3318
  return;
3254
3319
  }
3255
- const o = Je(), l = o.createElement("link"), a = "onload" in l;
3320
+ const o = Ve(), l = o.createElement("link"), a = "onload" in l;
3256
3321
  a && (l.onload = () => {
3257
3322
  l.onload = null, l.onerror = null, t.progress.work(!0, t.index, i.path), s.resolve();
3258
3323
  }, l.onerror = () => {
@@ -3277,13 +3342,13 @@ var $r = class {
3277
3342
  const o = {
3278
3343
  id: i.path,
3279
3344
  src: i.path,
3280
- status: H.Loading
3345
+ status: X.Loading
3281
3346
  };
3282
3347
  this.moduleManager.set(i.path, o);
3283
- const l = Je().createElement("script");
3348
+ const l = Ve().createElement("script");
3284
3349
  if ("onload" in l)
3285
3350
  l.onload = () => {
3286
- l.onload = null, l.onerror = null, o.status === H.Loading && (o.status = H.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve();
3351
+ l.onload = null, l.onerror = null, o.status === X.Loading && (o.status = X.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve();
3287
3352
  }, l.onerror = () => {
3288
3353
  try {
3289
3354
  r.removeChild(l);
@@ -3295,12 +3360,12 @@ var $r = class {
3295
3360
  else {
3296
3361
  const h = l;
3297
3362
  h.onreadystatechange = () => {
3298
- /loaded|complete/.test(h.readyState) && (h.onreadystatechange = null, o.status == H.Loading && (o.status = H.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve());
3363
+ /loaded|complete/.test(h.readyState) && (h.onreadystatechange = null, o.status == X.Loading && (o.status = X.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve());
3299
3364
  };
3300
3365
  }
3301
3366
  const a = this.constructResourceUri(i.path);
3302
3367
  l.defer = !0, l.src = a;
3303
- const u = C(), f = this.createRequireLoad();
3368
+ const u = F(), f = this.createRequireLoad();
3304
3369
  u.__require = u.__require ?? u.require, u.require = f;
3305
3370
  const c = this.createDefine(o, f, t);
3306
3371
  u.__define = u.__define ?? u.define, u.define = c, typeof t.progress.finalCallback != "function" && (t.progress.finalCallback = function() {
@@ -3316,15 +3381,15 @@ var $r = class {
3316
3381
  return;
3317
3382
  }
3318
3383
  try {
3319
- let n = await Ai(s.path);
3320
- if (Yt(n) && (n = n.default ?? n), We(n)) {
3384
+ let n = await Ei(s.path);
3385
+ if (Zt(n) && (n = n.default ?? n), Be(n)) {
3321
3386
  t.progress.work(!1, t.index, n), r.resolve();
3322
3387
  return;
3323
3388
  }
3324
3389
  const o = {
3325
3390
  id: s.path,
3326
3391
  src: s.path,
3327
- status: H.Loaded,
3392
+ status: X.Loaded,
3328
3393
  exports: n
3329
3394
  };
3330
3395
  this.moduleManager.set(s.path, o), t.progress.work(!0, t.index, n), r.resolve();
@@ -3336,7 +3401,7 @@ var $r = class {
3336
3401
  unmount(e) {
3337
3402
  let t = "", r = "";
3338
3403
  typeof e == "string" ? (this.moduleManager.remove(e), r = this.getResourcePathSuffix(e), t = e) : (this.moduleManager.remove(e.path), r = e.type === "css" ? "css" : e.format ?? "", t = e.path);
3339
- const s = Je();
3404
+ const s = Ve();
3340
3405
  if (r === "umd") {
3341
3406
  let i = s.getElementById(t);
3342
3407
  i || (i = s.querySelector(`script[src="${t}"]`)), i && i.remove();
@@ -3359,7 +3424,7 @@ var $r = class {
3359
3424
  }
3360
3425
  createDefine(e, t, r) {
3361
3426
  const s = this, i = function(...n) {
3362
- e.status = H.Defining;
3427
+ e.status = X.Defining;
3363
3428
  let o, l, a, u = n.length;
3364
3429
  if (u === 1 ? (a = n[0], o = void 0) : u === 2 ? (a = n[1], Array.isArray(n[0]) ? (l = s.trimEmptyElement(n[0]), o = void 0) : l = void 0) : (o = n[0], l = s.trimEmptyElement(n[1]), a = n[2]), o && (e.id = o, typeof s._alias == "object" && (s._alias[o] = e.src)), l && l.length > 0) s.ensure(l, (...f) => {
3365
3430
  try {
@@ -3368,7 +3433,7 @@ var $r = class {
3368
3433
  const h = Reflect.apply(a, e, c);
3369
3434
  h && (typeof h == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, h)) : typeof h == "function" && (e.exports = h));
3370
3435
  } else e.exports = a;
3371
- e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3436
+ e.status = X.Defined, r.progress.work(!0, r.index, e.exports);
3372
3437
  } catch (c) {
3373
3438
  console.error(c), r.progress.work(!1, r.index, []);
3374
3439
  }
@@ -3378,7 +3443,7 @@ var $r = class {
3378
3443
  const f = Reflect.apply(a, e, []);
3379
3444
  f && (typeof f == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, f)) : typeof f == "function" && (e.exports = f));
3380
3445
  } else e.exports = a;
3381
- e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3446
+ e.status = X.Defined, r.progress.work(!0, r.index, e.exports);
3382
3447
  }
3383
3448
  };
3384
3449
  return i.amd = !0, i;
@@ -3388,7 +3453,7 @@ var $r = class {
3388
3453
  }
3389
3454
  constructResourceUri(e) {
3390
3455
  try {
3391
- if (Dt.includes(e) || !this.query) return e;
3456
+ if (It.includes(e) || !this.query) return e;
3392
3457
  const t = this.createSearch(this.query);
3393
3458
  return e.indexOf("?") == -1 ? e += `?${t}` : t.length > 0 && (e += `&${t}`), e;
3394
3459
  } catch (t) {
@@ -3412,7 +3477,7 @@ var $r = class {
3412
3477
  let r = e.lastIndexOf(".", t);
3413
3478
  return r == -1 ? "" : e.substring(r + 1, t);
3414
3479
  }
3415
- }, qi = class {
3480
+ }, Ai = class {
3416
3481
  finalCallback;
3417
3482
  callback;
3418
3483
  values;
@@ -3434,16 +3499,16 @@ var $r = class {
3434
3499
  isOK() {
3435
3500
  return this.status;
3436
3501
  }
3437
- }, $i = class {
3502
+ }, qi = class {
3438
3503
  index;
3439
3504
  resource;
3440
3505
  progress;
3441
3506
  constructor(e, t, r) {
3442
3507
  this.index = e, this.resource = t, this.progress = r;
3443
3508
  }
3444
- }, zt = /* @__PURE__ */ Symbol("fk"), Gt = /* @__PURE__ */ Symbol("fbk"), Xt = /* @__PURE__ */ Symbol("fepk");
3509
+ }, zt = /* @__PURE__ */ Symbol("fk"), Jt = /* @__PURE__ */ Symbol("fbk"), Gt = /* @__PURE__ */ Symbol("fepk");
3445
3510
  function Xi(e = {}) {
3446
- const t = new Gs(e), r = new fr(), s = new Ar(), i = new $r(), n = {
3511
+ const t = new Js(e), r = new ar(), s = new Er(), i = new qr(), n = {
3447
3512
  get router() {
3448
3513
  return t;
3449
3514
  },
@@ -3451,10 +3516,10 @@ function Xi(e = {}) {
3451
3516
  return r;
3452
3517
  },
3453
3518
  get Bus() {
3454
- return fr;
3519
+ return ar;
3455
3520
  },
3456
3521
  get EventProxy() {
3457
- return Ar;
3522
+ return Er;
3458
3523
  },
3459
3524
  get eventproxy() {
3460
3525
  return s;
@@ -3463,16 +3528,16 @@ function Xi(e = {}) {
3463
3528
  return ct;
3464
3529
  },
3465
3530
  get Require() {
3466
- return $r;
3531
+ return qr;
3467
3532
  },
3468
3533
  get require() {
3469
3534
  return i;
3470
3535
  },
3471
3536
  get isESModule() {
3472
- return Yt;
3537
+ return Zt;
3473
3538
  },
3474
3539
  install(o, l = {}) {
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() {
3540
+ o.provide(Ue, t), o.provide(zt, n), o.provide(Jt, r), o.provide(Gt, s), l.install !== !1 && (o.component(Pi, Wt), o.component(_i, Si)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3476
3541
  return n;
3477
3542
  } }), Reflect.defineProperty(o.config.globalProperties, "$router", { get() {
3478
3543
  return t;
@@ -3498,18 +3563,18 @@ function Xi(e = {}) {
3498
3563
  let f = s;
3499
3564
  Reflect.apply(f.trigger, f, [a, ...u]);
3500
3565
  }, o.mixin({ computed: { $route() {
3501
- return ji(this);
3566
+ return $i(this);
3502
3567
  } } })), t.init();
3503
3568
  }
3504
3569
  };
3505
3570
  return n;
3506
3571
  }
3507
- function us(e) {
3508
- return _e() ? N(Ve, null) : e ? e.$?.appContext?.provides?.[Ve] ?? null : null;
3572
+ function ls(e) {
3573
+ return xe() ? L(Ue, null) : e ? e.$?.appContext?.provides?.[Ue] ?? null : null;
3509
3574
  }
3510
- function ji(e) {
3575
+ function $i(e) {
3511
3576
  let t = Cr(e);
3512
- if (!t && e && !_e()) {
3577
+ if (!t && e && !xe()) {
3513
3578
  let r = e;
3514
3579
  for (r = r.$parent; r && (t = Cr(r), !t); )
3515
3580
  r = r.$parent;
@@ -3517,16 +3582,16 @@ function ji(e) {
3517
3582
  return t;
3518
3583
  }
3519
3584
  function Qi(e) {
3520
- return _e() ? N(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3585
+ return xe() ? L(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3521
3586
  }
3522
3587
  function Zi(e) {
3523
- return _e() ? N(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3588
+ return xe() ? L(Jt, null) : e ? e.$?.appContext?.provides?.[Jt] ?? null : null;
3524
3589
  }
3525
3590
  function Yi(e) {
3526
- return _e() ? N(Xt, null) : e ? e.$?.appContext?.provides?.[Xt] ?? null : null;
3591
+ return xe() ? L(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3527
3592
  }
3528
3593
  function en(e) {
3529
- const t = us();
3594
+ const t = ls();
3530
3595
  if (!t) {
3531
3596
  console.error("[Fox]router is not exist.");
3532
3597
  return;
@@ -3539,12 +3604,12 @@ function en(e) {
3539
3604
  }
3540
3605
  n();
3541
3606
  };
3542
- t?.beforeEach(r), Fe(() => {
3607
+ t?.beforeEach(r), Pe(() => {
3543
3608
  t?.removeBeforeEach(r);
3544
3609
  });
3545
3610
  }
3546
3611
  function tn(e) {
3547
- const t = us();
3612
+ const t = ls();
3548
3613
  if (!t) {
3549
3614
  console.error("[Fox]router is not exist.");
3550
3615
  return;
@@ -3557,62 +3622,63 @@ function tn(e) {
3557
3622
  }
3558
3623
  n();
3559
3624
  };
3560
- t?.afterEach(r), Fe(() => {
3625
+ t?.afterEach(r), Pe(() => {
3561
3626
  t?.removeAfterEach(r);
3562
3627
  });
3563
3628
  }
3564
3629
  export {
3565
- fr as Bus,
3630
+ ar as Bus,
3566
3631
  ct as EventChain,
3567
- Ar as EventProxy,
3568
- ri as FoxBeforeEnter,
3569
- ii as FoxBeforeLeave,
3570
- si as FoxEnter,
3571
- ni as FoxLeave,
3572
- Vt as FoxLeaveEnd,
3573
- F as OperationType,
3574
- x as Route,
3575
- Gs as Router,
3632
+ Er as EventProxy,
3633
+ ti as FoxBeforeEnter,
3634
+ si as FoxBeforeLeave,
3635
+ ri as FoxEnter,
3636
+ ii as FoxLeave,
3637
+ Bt as FoxLeaveEnd,
3638
+ _ as OperationType,
3639
+ R as Route,
3640
+ Js as Router,
3576
3641
  Si as RouterLink,
3577
- Jt as RouterView,
3642
+ Wt as RouterView,
3578
3643
  Vi as bindLifecycleContextToCurrentScope,
3579
3644
  Xi as createFox,
3580
- Ws as createMemoryHistory,
3645
+ Vs as createMemoryHistory,
3581
3646
  Us as createWebHashHistory,
3582
- Ui as createWebHistory,
3583
- Ji as deleteContextValue,
3584
- j as extend,
3585
- Gr as injectContextValue,
3586
- dt as injectLifecycleContext,
3587
- nr as isArray,
3647
+ Bi as createWebHistory,
3648
+ zi as deleteContextValue,
3649
+ Ui as destroyState,
3650
+ q as extend,
3651
+ zr as injectContextValue,
3652
+ yt as injectLifecycleContext,
3653
+ sr as isArray,
3588
3654
  Ti as isDate,
3589
- Yt as isESModule,
3590
- lr as isEqual,
3591
- w as isFunction,
3592
- Li as isMap,
3593
- We as isNil,
3594
- gs as isObject,
3655
+ Zt as isESModule,
3656
+ nr as isEqual,
3657
+ b as isFunction,
3658
+ ji as isMap,
3659
+ Be as isNil,
3660
+ ps as isObject,
3595
3661
  ws as isPlainObject,
3596
- Oi as isPromise,
3597
- Mi as isSet,
3598
- ki as isString,
3599
- Ii as isSymbol,
3662
+ Ii as isPromise,
3663
+ ki as isSet,
3664
+ Mi as isString,
3665
+ Li as isSymbol,
3600
3666
  tn as onAfterRouteUpdate,
3601
3667
  en as onBeforeRouteUpdate,
3602
- zi as onFoxActivated,
3668
+ Ji as onFoxActivated,
3603
3669
  Gi as onFoxInactivated,
3604
3670
  Wi as provideContextValue,
3605
3671
  Ni as rawState,
3606
- Di as reactiveState,
3607
- Hi as shallowReactiveState,
3672
+ Hi as reactiveState,
3673
+ Di as shallowReactiveState,
3608
3674
  Tr as toBoolean,
3609
- Bi as toNumber,
3610
- Zt as toTypeString,
3611
- or as typeOf,
3675
+ Oi as toNumber,
3676
+ Qt as toTypeString,
3677
+ ir as typeOf,
3612
3678
  Zi as useBus,
3613
3679
  Yi as useEventProxy,
3614
3680
  Qi as useFox,
3615
- ji as useRoute,
3616
- us as useRouter,
3617
- Qs as withLifecycleContext
3681
+ $i as useRoute,
3682
+ ls as useRouter,
3683
+ Xs as withLifecycleContext
3618
3684
  };