@xingtukeji/micro 1.0.9 → 1.0.11

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/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  var yn = Object.defineProperty, Nn = Object.defineProperties;
2
- var vn = Object.getOwnPropertyDescriptors;
2
+ var bn = Object.getOwnPropertyDescriptors;
3
3
  var _t = Object.getOwnPropertySymbols;
4
- var bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
4
+ var Sn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable;
5
5
  var Le = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, W = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- bn.call(t, n) && Le(e, n, t[n]);
7
+ Sn.call(t, n) && Le(e, n, t[n]);
8
8
  if (_t)
9
9
  for (var n of _t(t))
10
- Sn.call(t, n) && Le(e, n, t[n]);
10
+ Rn.call(t, n) && Le(e, n, t[n]);
11
11
  return e;
12
- }, Ue = (e, t) => Nn(e, vn(t));
12
+ }, Ue = (e, t) => Nn(e, bn(t));
13
13
  var pe = (e, t, n) => (Le(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var mt = (e, t, n) => new Promise((r, s) => {
15
15
  var o = (a) => {
@@ -34,16 +34,16 @@ var mt = (e, t, n) => new Promise((r, s) => {
34
34
  **/
35
35
  /*! #__NO_SIDE_EFFECTS__ */
36
36
  // @__NO_SIDE_EFFECTS__
37
- function Rn(e, t) {
37
+ function In(e, t) {
38
38
  const n = new Set(e.split(","));
39
39
  return t ? (r) => n.has(r.toLowerCase()) : (r) => n.has(r);
40
40
  }
41
- const V = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Z = () => {
42
- }, Cn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
43
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, Pn = Object.prototype.hasOwnProperty, w = (e, t) => Pn.call(e, t), m = Array.isArray, k = (e) => Ve(e) === "[object Map]", xn = (e) => Ve(e) === "[object Set]", O = (e) => typeof e == "function", x = (e) => typeof e == "string", ae = (e) => typeof e == "symbol", b = (e) => e !== null && typeof e == "object", Mn = (e) => (b(e) || O(e)) && O(e.then) && O(e.catch), Vn = Object.prototype.toString, Ve = (e) => Vn.call(e), Vt = (e) => Ve(e).slice(8, -1), Dn = (e) => Ve(e) === "[object Object]", ke = (e) => x(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dt = (e) => {
41
+ const V = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Cn = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Z = () => {
42
+ }, Pn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
43
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, xn = Object.prototype.hasOwnProperty, w = (e, t) => xn.call(e, t), m = Array.isArray, k = (e) => Ve(e) === "[object Map]", Mn = (e) => Ve(e) === "[object Set]", O = (e) => typeof e == "function", x = (e) => typeof e == "string", ae = (e) => typeof e == "symbol", b = (e) => e !== null && typeof e == "object", Vn = (e) => (b(e) || O(e)) && O(e.then) && O(e.catch), Dn = Object.prototype.toString, Ve = (e) => Dn.call(e), Vt = (e) => Ve(e).slice(8, -1), Tn = (e) => Ve(e) === "[object Object]", ke = (e) => x(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dt = (e) => {
44
44
  const t = /* @__PURE__ */ Object.create(null);
45
45
  return (n) => t[n] || (t[n] = e(n));
46
- }, Tt = Dt((e) => e.charAt(0).toUpperCase() + e.slice(1)), Tn = Dt((e) => e ? `on${Tt(e)}` : ""), H = (e, t) => !Object.is(e, t), $n = (e, t, n, r = !1) => {
46
+ }, Tt = Dt((e) => e.charAt(0).toUpperCase() + e.slice(1)), $n = Dt((e) => e ? `on${Tt(e)}` : ""), H = (e, t) => !Object.is(e, t), An = (e, t, n, r = !1) => {
47
47
  Object.defineProperty(e, t, {
48
48
  configurable: !0,
49
49
  enumerable: !1,
@@ -57,7 +57,7 @@ function et(e) {
57
57
  if (m(e)) {
58
58
  const t = {};
59
59
  for (let n = 0; n < e.length; n++) {
60
- const r = e[n], s = x(r) ? Fn(r) : et(r);
60
+ const r = e[n], s = x(r) ? jn(r) : et(r);
61
61
  if (s)
62
62
  for (const o in s)
63
63
  t[o] = s[o];
@@ -66,12 +66,12 @@ function et(e) {
66
66
  } else if (x(e) || b(e))
67
67
  return e;
68
68
  }
69
- const An = /;(?![^(]*\))/g, Ln = /:([^]+)/, Un = /\/\*[^]*?\*\//g;
70
- function Fn(e) {
69
+ const Ln = /;(?![^(]*\))/g, Un = /:([^]+)/, Fn = /\/\*[^]*?\*\//g;
70
+ function jn(e) {
71
71
  const t = {};
72
- return e.replace(Un, "").split(An).forEach((n) => {
72
+ return e.replace(Fn, "").split(Ln).forEach((n) => {
73
73
  if (n) {
74
- const r = n.split(Ln);
74
+ const r = n.split(Un);
75
75
  r.length > 1 && (t[r[0].trim()] = r[1].trim());
76
76
  }
77
77
  }), t;
@@ -98,21 +98,21 @@ function tt(e) {
98
98
  function ne(e, ...t) {
99
99
  console.warn(`[Vue warn] ${e}`, ...t);
100
100
  }
101
- let jn;
102
- function Hn(e, t = jn) {
101
+ let Hn;
102
+ function Kn(e, t = Hn) {
103
103
  t && t.active && t.effects.push(e);
104
104
  }
105
105
  let q;
106
106
  class At {
107
107
  constructor(t, n, r, s) {
108
- this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, Hn(this, s);
108
+ this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, Kn(this, s);
109
109
  }
110
110
  get dirty() {
111
111
  if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
112
112
  this._dirtyLevel = 1, ue();
113
113
  for (let t = 0; t < this._depsLength; t++) {
114
114
  const n = this.deps[t];
115
- if (n.computed && (Kn(n.computed), this._dirtyLevel >= 4))
115
+ if (n.computed && (zn(n.computed), this._dirtyLevel >= 4))
116
116
  break;
117
117
  }
118
118
  this._dirtyLevel === 1 && (this._dirtyLevel = 0), fe();
@@ -136,7 +136,7 @@ class At {
136
136
  this.active && (wt(this), Et(this), this.onStop && this.onStop(), this.active = !1);
137
137
  }
138
138
  }
139
- function Kn(e) {
139
+ function zn(e) {
140
140
  return e.value;
141
141
  }
142
142
  function wt(e) {
@@ -191,7 +191,7 @@ const Ht = (e, t) => {
191
191
  const n = /* @__PURE__ */ new Map();
192
192
  return n.cleanup = e, n.computed = t, n;
193
193
  }, Xe = /* @__PURE__ */ new WeakMap(), J = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), qe = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
194
- function N(e, t, n) {
194
+ function y(e, t, n) {
195
195
  if (F && q) {
196
196
  let r = Xe.get(e);
197
197
  r || Xe.set(e, r = /* @__PURE__ */ new Map());
@@ -247,16 +247,16 @@ function j(e, t, n, r, s, o) {
247
247
  );
248
248
  rt();
249
249
  }
250
- const zn = /* @__PURE__ */ Rn("__proto__,__v_isRef,__isVue"), Kt = new Set(
250
+ const Wn = /* @__PURE__ */ In("__proto__,__v_isRef,__isVue"), Kt = new Set(
251
251
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ae)
252
- ), Ot = /* @__PURE__ */ Wn();
253
- function Wn() {
252
+ ), Ot = /* @__PURE__ */ Bn();
253
+ function Bn() {
254
254
  const e = {};
255
255
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
256
256
  e[t] = function(...n) {
257
257
  const r = f(this);
258
258
  for (let o = 0, i = this.length; o < i; o++)
259
- N(r, "get", o + "");
259
+ y(r, "get", o + "");
260
260
  const s = r[t](...n);
261
261
  return s === -1 || s === !1 ? r[t](...n.map(f)) : s;
262
262
  };
@@ -268,10 +268,10 @@ function Wn() {
268
268
  };
269
269
  }), e;
270
270
  }
271
- function Bn(e) {
271
+ function Xn(e) {
272
272
  ae(e) || (e = String(e));
273
273
  const t = f(this);
274
- return N(t, "has", e), t.hasOwnProperty(e);
274
+ return y(t, "has", e), t.hasOwnProperty(e);
275
275
  }
276
276
  class zt {
277
277
  constructor(t = !1, n = !1) {
@@ -286,7 +286,7 @@ class zt {
286
286
  if (n === "__v_isShallow")
287
287
  return o;
288
288
  if (n === "__v_raw")
289
- return r === (s ? o ? Jt : qt : o ? sr : Xt).get(t) || // receiver is not the reactive proxy, but has the same prototype
289
+ return r === (s ? o ? Jt : qt : o ? or : Xt).get(t) || // receiver is not the reactive proxy, but has the same prototype
290
290
  // this means the receiver is a user proxy of the reactive proxy
291
291
  Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
292
292
  const i = m(t);
@@ -294,13 +294,13 @@ class zt {
294
294
  if (i && w(Ot, n))
295
295
  return Reflect.get(Ot, n, r);
296
296
  if (n === "hasOwnProperty")
297
- return Bn;
297
+ return Xn;
298
298
  }
299
299
  const c = Reflect.get(t, n, r);
300
- return (ae(n) ? Kt.has(n) : zn(n)) || (s || N(t, "get", n), o) ? c : R(c) ? i && ke(n) ? c : c.value : b(c) ? s ? Gt(c) : Yt(c) : c;
300
+ return (ae(n) ? Kt.has(n) : Wn(n)) || (s || y(t, "get", n), o) ? c : R(c) ? i && ke(n) ? c : c.value : b(c) ? s ? Gt(c) : Yt(c) : c;
301
301
  }
302
302
  }
303
- class Xn extends zt {
303
+ class qn extends zt {
304
304
  constructor(t = !1) {
305
305
  super(!1, t);
306
306
  }
@@ -320,10 +320,10 @@ class Xn extends zt {
320
320
  }
321
321
  has(t, n) {
322
322
  const r = Reflect.has(t, n);
323
- return (!ae(n) || !Kt.has(n)) && N(t, "has", n), r;
323
+ return (!ae(n) || !Kt.has(n)) && y(t, "has", n), r;
324
324
  }
325
325
  ownKeys(t) {
326
- return N(
326
+ return y(
327
327
  t,
328
328
  "iterate",
329
329
  m(t) ? "length" : J
@@ -347,11 +347,11 @@ class Wt extends zt {
347
347
  ), !0;
348
348
  }
349
349
  }
350
- const qn = /* @__PURE__ */ new Xn(), Jn = /* @__PURE__ */ new Wt(), Yn = /* @__PURE__ */ new Wt(!0), st = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
350
+ const Jn = /* @__PURE__ */ new qn(), Yn = /* @__PURE__ */ new Wt(), Gn = /* @__PURE__ */ new Wt(!0), st = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
351
351
  function he(e, t, n = !1, r = !1) {
352
352
  e = e.__v_raw;
353
353
  const s = f(e), o = f(t);
354
- n || (H(t, o) && N(s, "get", t), N(s, "get", o));
354
+ n || (H(t, o) && y(s, "get", t), y(s, "get", o));
355
355
  const { has: i } = De(s), c = r ? st : n ? ct : ce;
356
356
  if (i.call(s, t))
357
357
  return c(e.get(t));
@@ -361,17 +361,17 @@ function he(e, t, n = !1, r = !1) {
361
361
  }
362
362
  function _e(e, t = !1) {
363
363
  const n = this.__v_raw, r = f(n), s = f(e);
364
- return t || (H(e, s) && N(r, "has", e), N(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
364
+ return t || (H(e, s) && y(r, "has", e), y(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
365
365
  }
366
366
  function me(e, t = !1) {
367
- return e = e.__v_raw, !t && N(f(e), "iterate", J), Reflect.get(e, "size", e);
367
+ return e = e.__v_raw, !t && y(f(e), "iterate", J), Reflect.get(e, "size", e);
368
368
  }
369
- function yt(e, t = !1) {
369
+ function vt(e, t = !1) {
370
370
  !t && !T(e) && !$(e) && (e = f(e));
371
371
  const n = f(this);
372
372
  return De(n).has.call(n, e) || (n.add(e), j(n, "add", e, e)), this;
373
373
  }
374
- function Nt(e, t, n = !1) {
374
+ function yt(e, t, n = !1) {
375
375
  !n && !T(t) && !$(t) && (t = f(t));
376
376
  const r = f(this), { has: s, get: o } = De(r);
377
377
  let i = s.call(r, e);
@@ -379,7 +379,7 @@ function Nt(e, t, n = !1) {
379
379
  const c = o.call(r, e);
380
380
  return r.set(e, t), i ? H(t, c) && j(r, "set", e, t, c) : j(r, "add", e, t), this;
381
381
  }
382
- function vt(e) {
382
+ function Nt(e) {
383
383
  const t = f(this), { has: n, get: r } = De(t);
384
384
  let s = n.call(t, e);
385
385
  s ? process.env.NODE_ENV !== "production" && Bt(t, n, e) : (e = f(e), s = n.call(t, e));
@@ -393,13 +393,13 @@ function bt() {
393
393
  function ge(e, t) {
394
394
  return function(r, s) {
395
395
  const o = this, i = o.__v_raw, c = f(i), a = t ? st : e ? ct : ce;
396
- return !e && N(c, "iterate", J), i.forEach((u, h) => r.call(s, a(u), a(h), o));
396
+ return !e && y(c, "iterate", J), i.forEach((u, h) => r.call(s, a(u), a(h), o));
397
397
  };
398
398
  }
399
399
  function we(e, t, n) {
400
400
  return function(...r) {
401
401
  const s = this.__v_raw, o = f(s), i = k(o), c = e === "entries" || e === Symbol.iterator && i, a = e === "keys" && i, u = s[e](...r), h = n ? st : t ? ct : ce;
402
- return !t && N(
402
+ return !t && y(
403
403
  o,
404
404
  "iterate",
405
405
  a ? qe : J
@@ -431,7 +431,7 @@ function A(e) {
431
431
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
432
432
  };
433
433
  }
434
- function Gn() {
434
+ function Qn() {
435
435
  const e = {
436
436
  get(o) {
437
437
  return he(this, o);
@@ -440,9 +440,9 @@ function Gn() {
440
440
  return me(this);
441
441
  },
442
442
  has: _e,
443
- add: yt,
444
- set: Nt,
445
- delete: vt,
443
+ add: vt,
444
+ set: yt,
445
+ delete: Nt,
446
446
  clear: bt,
447
447
  forEach: ge(!1, !1)
448
448
  }, t = {
@@ -454,12 +454,12 @@ function Gn() {
454
454
  },
455
455
  has: _e,
456
456
  add(o) {
457
- return yt.call(this, o, !0);
457
+ return vt.call(this, o, !0);
458
458
  },
459
459
  set(o, i) {
460
- return Nt.call(this, o, i, !0);
460
+ return yt.call(this, o, i, !0);
461
461
  },
462
- delete: vt,
462
+ delete: Nt,
463
463
  clear: bt,
464
464
  forEach: ge(!1, !0)
465
465
  }, n = {
@@ -512,24 +512,24 @@ function Gn() {
512
512
  ];
513
513
  }
514
514
  const [
515
- Qn,
516
515
  Zn,
517
516
  kn,
518
- er
519
- ] = /* @__PURE__ */ Gn();
517
+ er,
518
+ tr
519
+ ] = /* @__PURE__ */ Qn();
520
520
  function ot(e, t) {
521
- const n = t ? e ? er : kn : e ? Zn : Qn;
521
+ const n = t ? e ? tr : er : e ? kn : Zn;
522
522
  return (r, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? r : Reflect.get(
523
523
  w(n, s) && s in r ? n : r,
524
524
  s,
525
525
  o
526
526
  );
527
527
  }
528
- const tr = {
528
+ const nr = {
529
529
  get: /* @__PURE__ */ ot(!1, !1)
530
- }, nr = {
531
- get: /* @__PURE__ */ ot(!0, !1)
532
530
  }, rr = {
531
+ get: /* @__PURE__ */ ot(!0, !1)
532
+ }, sr = {
533
533
  get: /* @__PURE__ */ ot(!0, !0)
534
534
  };
535
535
  function Bt(e, t, n) {
@@ -541,8 +541,8 @@ function Bt(e, t, n) {
541
541
  );
542
542
  }
543
543
  }
544
- const Xt = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap();
545
- function or(e) {
544
+ const Xt = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap();
545
+ function ir(e) {
546
546
  switch (e) {
547
547
  case "Object":
548
548
  case "Array":
@@ -556,15 +556,15 @@ function or(e) {
556
556
  return 0;
557
557
  }
558
558
  }
559
- function ir(e) {
560
- return e.__v_skip || !Object.isExtensible(e) ? 0 : or(Vt(e));
559
+ function cr(e) {
560
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : ir(Vt(e));
561
561
  }
562
562
  function Yt(e) {
563
563
  return $(e) ? e : it(
564
564
  e,
565
565
  !1,
566
- qn,
567
- tr,
566
+ Jn,
567
+ nr,
568
568
  Xt
569
569
  );
570
570
  }
@@ -572,8 +572,8 @@ function Gt(e) {
572
572
  return it(
573
573
  e,
574
574
  !0,
575
- Jn,
576
- nr,
575
+ Yn,
576
+ rr,
577
577
  qt
578
578
  );
579
579
  }
@@ -581,8 +581,8 @@ function Ee(e) {
581
581
  return it(
582
582
  e,
583
583
  !0,
584
- Yn,
585
- rr,
584
+ Gn,
585
+ sr,
586
586
  Jt
587
587
  );
588
588
  }
@@ -598,7 +598,7 @@ function it(e, t, n, r, s) {
598
598
  const o = s.get(e);
599
599
  if (o)
600
600
  return o;
601
- const i = ir(e);
601
+ const i = cr(e);
602
602
  if (i === 0)
603
603
  return e;
604
604
  const c = new Proxy(
@@ -623,15 +623,15 @@ function f(e) {
623
623
  const t = e && e.__v_raw;
624
624
  return t ? f(t) : e;
625
625
  }
626
- function cr(e) {
627
- return Object.isExtensible(e) && $n(e, "__v_skip", !0), e;
626
+ function lr(e) {
627
+ return Object.isExtensible(e) && An(e, "__v_skip", !0), e;
628
628
  }
629
- const ce = (e) => b(e) ? Yt(e) : e, ct = (e) => b(e) ? Gt(e) : e, lr = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
630
- class ar {
629
+ const ce = (e) => b(e) ? Yt(e) : e, ct = (e) => b(e) ? Gt(e) : e, ar = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
630
+ class ur {
631
631
  constructor(t, n, r, s) {
632
632
  this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new At(
633
633
  () => t(this._value),
634
- () => Ne(
634
+ () => ye(
635
635
  this,
636
636
  this.effect._dirtyLevel === 2 ? 2 : 3
637
637
  )
@@ -639,9 +639,9 @@ class ar {
639
639
  }
640
640
  get value() {
641
641
  const t = f(this);
642
- return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && Ne(t, 4), Qt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && ne(lr, `
642
+ return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && ye(t, 4), Qt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && ne(ar, `
643
643
 
644
- getter: `, this.getter), Ne(t, 2)), t._value;
644
+ getter: `, this.getter), ye(t, 2)), t._value;
645
645
  }
646
646
  set value(t) {
647
647
  this._setter(t);
@@ -661,7 +661,7 @@ function Qt(e) {
661
661
  q,
662
662
  (t = e.dep) != null ? t : e.dep = Ht(
663
663
  () => e.dep = void 0,
664
- e instanceof ar ? e : void 0
664
+ e instanceof ur ? e : void 0
665
665
  ),
666
666
  process.env.NODE_ENV !== "production" ? {
667
667
  target: e,
@@ -670,7 +670,7 @@ function Qt(e) {
670
670
  } : void 0
671
671
  ));
672
672
  }
673
- function Ne(e, t = 4, n, r) {
673
+ function ye(e, t = 4, n, r) {
674
674
  e = f(e);
675
675
  const s = e.dep;
676
676
  s && jt(
@@ -689,12 +689,12 @@ function R(e) {
689
689
  return !!(e && e.__v_isRef === !0);
690
690
  }
691
691
  function Zt(e) {
692
- return ur(e, !1);
692
+ return fr(e, !1);
693
693
  }
694
- function ur(e, t) {
695
- return R(e) ? e : new fr(e, t);
694
+ function fr(e, t) {
695
+ return R(e) ? e : new dr(e, t);
696
696
  }
697
- class fr {
697
+ class dr {
698
698
  constructor(t, n) {
699
699
  this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : f(t), this._value = n ? t : ce(t);
700
700
  }
@@ -705,22 +705,22 @@ class fr {
705
705
  const n = this.__v_isShallow || T(t) || $(t);
706
706
  if (t = n ? t : f(t), H(t, this._rawValue)) {
707
707
  const r = this._rawValue;
708
- this._rawValue = t, this._value = n ? t : ce(t), Ne(this, 4, t, r);
708
+ this._rawValue = t, this._value = n ? t : ce(t), ye(this, 4, t, r);
709
709
  }
710
710
  }
711
711
  }
712
- function dr(e) {
712
+ function pr(e) {
713
713
  return R(e) ? e.value : e;
714
714
  }
715
- const pr = {
716
- get: (e, t, n) => dr(Reflect.get(e, t, n)),
715
+ const hr = {
716
+ get: (e, t, n) => pr(Reflect.get(e, t, n)),
717
717
  set: (e, t, n, r) => {
718
718
  const s = e[t];
719
719
  return R(s) && !R(n) ? (s.value = n, !0) : Reflect.set(e, t, n, r);
720
720
  }
721
721
  };
722
- function hr(e) {
723
- return ee(e) ? e : new Proxy(e, pr);
722
+ function _r(e) {
723
+ return ee(e) ? e : new Proxy(e, hr);
724
724
  }
725
725
  /**
726
726
  * @vue/runtime-core v3.4.38
@@ -728,10 +728,10 @@ function hr(e) {
728
728
  * @license MIT
729
729
  **/
730
730
  const Y = [];
731
- function _r(e) {
731
+ function mr(e) {
732
732
  Y.push(e);
733
733
  }
734
- function mr() {
734
+ function gr() {
735
735
  Y.pop();
736
736
  }
737
737
  let Fe = !1;
@@ -739,7 +739,7 @@ function _(e, ...t) {
739
739
  if (Fe)
740
740
  return;
741
741
  Fe = !0, ue();
742
- const n = Y.length ? Y[Y.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = gr();
742
+ const n = Y.length ? Y[Y.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = wr();
743
743
  if (r)
744
744
  G(
745
745
  r,
@@ -753,7 +753,7 @@ function _(e, ...t) {
753
753
  }).join(""),
754
754
  n && n.proxy,
755
755
  s.map(
756
- ({ vnode: o }) => `at <${wn(n, o.type)}>`
756
+ ({ vnode: o }) => `at <${En(n, o.type)}>`
757
757
  ).join(`
758
758
  `),
759
759
  s
@@ -762,11 +762,11 @@ function _(e, ...t) {
762
762
  else {
763
763
  const o = [`[Vue warn]: ${e}`, ...t];
764
764
  s.length && o.push(`
765
- `, ...wr(s)), console.warn(...o);
765
+ `, ...Er(s)), console.warn(...o);
766
766
  }
767
767
  fe(), Fe = !1;
768
768
  }
769
- function gr() {
769
+ function wr() {
770
770
  let e = Y[Y.length - 1];
771
771
  if (!e)
772
772
  return [];
@@ -782,22 +782,22 @@ function gr() {
782
782
  }
783
783
  return t;
784
784
  }
785
- function wr(e) {
785
+ function Er(e) {
786
786
  const t = [];
787
787
  return e.forEach((n, r) => {
788
788
  t.push(...r === 0 ? [] : [`
789
- `], ...Er(n));
789
+ `], ...Or(n));
790
790
  }), t;
791
791
  }
792
- function Er({ vnode: e, recurseCount: t }) {
793
- const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${wn(
792
+ function Or({ vnode: e, recurseCount: t }) {
793
+ const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${En(
794
794
  e.component,
795
795
  e.type,
796
796
  r
797
797
  )}`, o = ">" + n;
798
- return e.props ? [s, ...Or(e.props), o] : [s + o];
798
+ return e.props ? [s, ...vr(e.props), o] : [s + o];
799
799
  }
800
- function Or(e) {
800
+ function vr(e) {
801
801
  const t = [], n = Object.keys(e);
802
802
  return n.slice(0, 3).forEach((r) => {
803
803
  t.push(...kt(r, e[r]));
@@ -848,7 +848,7 @@ function G(e, t, n, r) {
848
848
  function oe(e, t, n, r) {
849
849
  if (O(e)) {
850
850
  const s = G(e, t, n, r);
851
- return s && Mn(s) && s.catch((o) => {
851
+ return s && Vn(s) && s.catch((o) => {
852
852
  at(o, t, n);
853
853
  }), s;
854
854
  }
@@ -892,7 +892,7 @@ function at(e, t, n, r = !0) {
892
892
  function yr(e, t, n, r = !0) {
893
893
  if (process.env.NODE_ENV !== "production") {
894
894
  const s = lt[t];
895
- if (n && _r(n), _(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && mr(), r)
895
+ if (n && mr(n), _(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && gr(), r)
896
896
  throw e;
897
897
  console.error(e);
898
898
  } else
@@ -906,11 +906,11 @@ let L = null, B = 0;
906
906
  const en = /* @__PURE__ */ Promise.resolve();
907
907
  let ut = null;
908
908
  const Nr = 100;
909
- function vr(e) {
909
+ function br(e) {
910
910
  const t = ut || en;
911
911
  return e ? t.then(this ? e.bind(this) : e) : t;
912
912
  }
913
- function br(e) {
913
+ function Sr(e) {
914
914
  let t = U + 1, n = C.length;
915
915
  for (; t < n; ) {
916
916
  const r = t + n >>> 1, s = C[r], o = le(s);
@@ -922,7 +922,7 @@ function ft(e) {
922
922
  (!C.length || !C.includes(
923
923
  e,
924
924
  Re && e.allowRecurse ? U + 1 : U
925
- )) && (e.id == null ? C.push(e) : C.splice(br(e.id), 0, e), tn());
925
+ )) && (e.id == null ? C.push(e) : C.splice(Sr(e.id), 0, e), tn());
926
926
  }
927
927
  function tn() {
928
928
  !Re && !Ye && (Ye = !0, ut = en.then(rn));
@@ -933,7 +933,7 @@ function nn(e) {
933
933
  e.allowRecurse ? B + 1 : B
934
934
  )) && te.push(e), tn();
935
935
  }
936
- function Sr(e) {
936
+ function Rr(e) {
937
937
  if (te.length) {
938
938
  const t = [...new Set(te)].sort(
939
939
  (n, r) => le(n) - le(r)
@@ -949,7 +949,7 @@ function Sr(e) {
949
949
  L = null, B = 0;
950
950
  }
951
951
  }
952
- const le = (e) => e.id == null ? 1 / 0 : e.id, Rr = (e, t) => {
952
+ const le = (e) => e.id == null ? 1 / 0 : e.id, Ir = (e, t) => {
953
953
  const n = le(e) - le(t);
954
954
  if (n === 0) {
955
955
  if (e.pre && !t.pre)
@@ -960,7 +960,7 @@ const le = (e) => e.id == null ? 1 / 0 : e.id, Rr = (e, t) => {
960
960
  return n;
961
961
  };
962
962
  function rn(e) {
963
- Ye = !1, Re = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C.sort(Rr);
963
+ Ye = !1, Re = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C.sort(Ir);
964
964
  const t = process.env.NODE_ENV !== "production" ? (n) => sn(e, n) : Z;
965
965
  try {
966
966
  for (U = 0; U < C.length; U++) {
@@ -976,7 +976,7 @@ function rn(e) {
976
976
  }
977
977
  }
978
978
  } finally {
979
- U = 0, C.length = 0, Sr(e), Re = !1, ut = null, (C.length || te.length) && rn(e);
979
+ U = 0, C.length = 0, Rr(e), Re = !1, ut = null, (C.length || te.length) && rn(e);
980
980
  }
981
981
  }
982
982
  function sn(e, t) {
@@ -985,7 +985,7 @@ function sn(e, t) {
985
985
  else {
986
986
  const n = e.get(t);
987
987
  if (n > Nr) {
988
- const r = t.i, s = r && gn(r.type);
988
+ const r = t.i, s = r && wn(r.type);
989
989
  return at(
990
990
  `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
991
991
  null,
@@ -997,27 +997,27 @@ function sn(e, t) {
997
997
  }
998
998
  const je = /* @__PURE__ */ new Map();
999
999
  process.env.NODE_ENV !== "production" && ($t().__VUE_HMR_RUNTIME__ = {
1000
- createRecord: He(Ir),
1001
- rerender: He(Cr),
1002
- reload: He(Pr)
1000
+ createRecord: He(Cr),
1001
+ rerender: He(Pr),
1002
+ reload: He(xr)
1003
1003
  });
1004
1004
  const Ie = /* @__PURE__ */ new Map();
1005
- function Ir(e, t) {
1005
+ function Cr(e, t) {
1006
1006
  return Ie.has(e) ? !1 : (Ie.set(e, {
1007
1007
  initialDef: Ce(t),
1008
1008
  instances: /* @__PURE__ */ new Set()
1009
1009
  }), !0);
1010
1010
  }
1011
1011
  function Ce(e) {
1012
- return En(e) ? e.__vccOpts : e;
1012
+ return On(e) ? e.__vccOpts : e;
1013
1013
  }
1014
- function Cr(e, t) {
1014
+ function Pr(e, t) {
1015
1015
  const n = Ie.get(e);
1016
1016
  n && (n.initialDef.render = t, [...n.instances].forEach((r) => {
1017
1017
  t && (r.render = t, Ce(r.type).render = t), r.renderCache = [], r.effect.dirty = !0, r.update();
1018
1018
  }));
1019
1019
  }
1020
- function Pr(e, t) {
1020
+ function xr(e, t) {
1021
1021
  const n = Ie.get(e);
1022
1022
  if (!n)
1023
1023
  return;
@@ -1064,37 +1064,37 @@ function on(e, t) {
1064
1064
  Q || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Oe = []);
1065
1065
  }, 3e3)) : Oe = [];
1066
1066
  }
1067
- let D = null, xr = null;
1067
+ let D = null, Mr = null;
1068
1068
  function cn(e, t) {
1069
1069
  e.shapeFlag & 6 && e.component ? cn(e.component.subTree, t) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1070
1070
  }
1071
1071
  /*! #__NO_SIDE_EFFECTS__ */
1072
1072
  // @__NO_SIDE_EFFECTS__
1073
- function Mr(e, t) {
1073
+ function Vr(e, t) {
1074
1074
  return O(e) ? (
1075
1075
  // #8326: extend call and options.name access are considered side-effects
1076
1076
  // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1077
1077
  /* @__PURE__ */ (() => I({ name: e.name }, t, { setup: e }))()
1078
1078
  ) : e;
1079
1079
  }
1080
- function Vr(e, t, n = re, r = !1) {
1080
+ function Dr(e, t, n = re, r = !1) {
1081
1081
  if (n) {
1082
1082
  const s = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...i) => {
1083
1083
  ue();
1084
- const c = mn(n), a = oe(t, n, e, i);
1084
+ const c = gn(n), a = oe(t, n, e, i);
1085
1085
  return c(), fe(), a;
1086
1086
  });
1087
1087
  return r ? s.unshift(o) : s.push(o), o;
1088
1088
  } else if (process.env.NODE_ENV !== "production") {
1089
- const s = Tn(lt[e].replace(/ hook$/, ""));
1089
+ const s = $n(lt[e].replace(/ hook$/, ""));
1090
1090
  _(
1091
1091
  `${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
1092
1092
  );
1093
1093
  }
1094
1094
  }
1095
1095
  const ln = (e) => (t, n = re) => {
1096
- (!pt || e === "sp") && Vr(e, (...r) => t(...r), n);
1097
- }, Dr = ln("m"), Tr = ln("um"), $r = Symbol.for("v-ndc"), Ge = (e) => e ? fs(e) ? ds(e) : Ge(e.parent) : null, ie = (
1096
+ (!pt || e === "sp") && Dr(e, (...r) => t(...r), n);
1097
+ }, Tr = ln("m"), $r = ln("um"), Ar = Symbol.for("v-ndc"), Ge = (e) => e ? fs(e) ? ds(e) : Ge(e.parent) : null, ie = (
1098
1098
  // Move PURE marker to new line to workaround compiler discarding it
1099
1099
  // due to type annotation
1100
1100
  /* @__PURE__ */ I(/* @__PURE__ */ Object.create(null), {
@@ -1108,14 +1108,14 @@ const ln = (e) => (t, n = re) => {
1108
1108
  $parent: (e) => Ge(e.parent),
1109
1109
  $root: (e) => Ge(e.root),
1110
1110
  $emit: (e) => e.emit,
1111
- $options: (e) => Ur(e),
1111
+ $options: (e) => Fr(e),
1112
1112
  $forceUpdate: (e) => e.f || (e.f = () => {
1113
1113
  e.effect.dirty = !0, ft(e.update);
1114
1114
  }),
1115
- $nextTick: (e) => e.n || (e.n = vr.bind(e.proxy)),
1116
- $watch: (e) => Yr.bind(e)
1115
+ $nextTick: (e) => e.n || (e.n = br.bind(e.proxy)),
1116
+ $watch: (e) => Gr.bind(e)
1117
1117
  })
1118
- ), Ar = (e) => e === "_" || e === "$", Ke = (e, t) => e !== V && !e.__isScriptSetup && w(e, t), Lr = {
1118
+ ), Lr = (e) => e === "_" || e === "$", Ke = (e, t) => e !== V && !e.__isScriptSetup && w(e, t), Ur = {
1119
1119
  get({ _: e }, t) {
1120
1120
  if (t === "__v_skip")
1121
1121
  return !0;
@@ -1155,7 +1155,7 @@ const ln = (e) => (t, n = re) => {
1155
1155
  const h = ie[t];
1156
1156
  let l, d;
1157
1157
  if (h)
1158
- return t === "$attrs" ? (N(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && N(e, "get", t), h(e);
1158
+ return t === "$attrs" ? (y(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && y(e, "get", t), h(e);
1159
1159
  if (
1160
1160
  // css module (injected by vue-loader)
1161
1161
  (l = c.__cssModules) && (l = l[t])
@@ -1170,7 +1170,7 @@ const ln = (e) => (t, n = re) => {
1170
1170
  return d[t];
1171
1171
  process.env.NODE_ENV !== "production" && D && (!x(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1172
1172
  // to infinite warning loop
1173
- t.indexOf("__v") !== 0) && (s !== V && Ar(t[0]) && w(s, t) ? _(
1173
+ t.indexOf("__v") !== 0) && (s !== V && Lr(t[0]) && w(s, t) ? _(
1174
1174
  `Property ${JSON.stringify(
1175
1175
  t
1176
1176
  )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
@@ -1198,7 +1198,7 @@ const ln = (e) => (t, n = re) => {
1198
1198
  return n.get != null ? e._.accessCache[t] = 0 : w(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
1199
1199
  }
1200
1200
  };
1201
- process.env.NODE_ENV !== "production" && (Lr.ownKeys = (e) => (_(
1201
+ process.env.NODE_ENV !== "production" && (Ur.ownKeys = (e) => (_(
1202
1202
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1203
1203
  ), Reflect.ownKeys(e)));
1204
1204
  function Rt(e) {
@@ -1207,7 +1207,7 @@ function Rt(e) {
1207
1207
  {}
1208
1208
  ) : e;
1209
1209
  }
1210
- function Ur(e) {
1210
+ function Fr(e) {
1211
1211
  const t = e.type, { mixins: n, extends: r } = t, {
1212
1212
  mixins: s,
1213
1213
  optionsCache: o,
@@ -1229,12 +1229,12 @@ function Pe(e, t, n, r = !1) {
1229
1229
  '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
1230
1230
  );
1231
1231
  else {
1232
- const c = Fr[i] || n && n[i];
1232
+ const c = jr[i] || n && n[i];
1233
1233
  e[i] = c ? c(e[i], t[i]) : t[i];
1234
1234
  }
1235
1235
  return e;
1236
1236
  }
1237
- const Fr = {
1237
+ const jr = {
1238
1238
  data: It,
1239
1239
  props: Pt,
1240
1240
  emits: Pt,
@@ -1242,28 +1242,28 @@ const Fr = {
1242
1242
  methods: se,
1243
1243
  computed: se,
1244
1244
  // lifecycle
1245
- beforeCreate: v,
1246
- created: v,
1247
- beforeMount: v,
1248
- mounted: v,
1249
- beforeUpdate: v,
1250
- updated: v,
1251
- beforeDestroy: v,
1252
- beforeUnmount: v,
1253
- destroyed: v,
1254
- unmounted: v,
1255
- activated: v,
1256
- deactivated: v,
1257
- errorCaptured: v,
1258
- serverPrefetch: v,
1245
+ beforeCreate: N,
1246
+ created: N,
1247
+ beforeMount: N,
1248
+ mounted: N,
1249
+ beforeUpdate: N,
1250
+ updated: N,
1251
+ beforeDestroy: N,
1252
+ beforeUnmount: N,
1253
+ destroyed: N,
1254
+ unmounted: N,
1255
+ activated: N,
1256
+ deactivated: N,
1257
+ errorCaptured: N,
1258
+ serverPrefetch: N,
1259
1259
  // assets
1260
1260
  components: se,
1261
1261
  directives: se,
1262
1262
  // watch
1263
- watch: Hr,
1263
+ watch: Kr,
1264
1264
  // provide / inject
1265
1265
  provide: It,
1266
- inject: jr
1266
+ inject: Hr
1267
1267
  };
1268
1268
  function It(e, t) {
1269
1269
  return t ? e ? function() {
@@ -1273,7 +1273,7 @@ function It(e, t) {
1273
1273
  );
1274
1274
  } : t : e;
1275
1275
  }
1276
- function jr(e, t) {
1276
+ function Hr(e, t) {
1277
1277
  return se(Ct(e), Ct(t));
1278
1278
  }
1279
1279
  function Ct(e) {
@@ -1285,7 +1285,7 @@ function Ct(e) {
1285
1285
  }
1286
1286
  return e;
1287
1287
  }
1288
- function v(e, t) {
1288
+ function N(e, t) {
1289
1289
  return e ? [...new Set([].concat(e, t))] : t;
1290
1290
  }
1291
1291
  function se(e, t) {
@@ -1298,20 +1298,20 @@ function Pt(e, t) {
1298
1298
  Rt(t != null ? t : {})
1299
1299
  ) : t;
1300
1300
  }
1301
- function Hr(e, t) {
1301
+ function Kr(e, t) {
1302
1302
  if (!e)
1303
1303
  return t;
1304
1304
  if (!t)
1305
1305
  return e;
1306
1306
  const n = I(/* @__PURE__ */ Object.create(null), e);
1307
1307
  for (const r in t)
1308
- n[r] = v(e[r], t[r]);
1308
+ n[r] = N(e[r], t[r]);
1309
1309
  return n;
1310
1310
  }
1311
- let Kr = null;
1312
- function zr(e, t, n = !1) {
1311
+ let zr = null;
1312
+ function Wr(e, t, n = !1) {
1313
1313
  const r = re || D;
1314
- if (r || Kr) {
1314
+ if (r || zr) {
1315
1315
  const s = r ? r.parent == null ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
1316
1316
  if (s && e in s)
1317
1317
  return s[e];
@@ -1321,15 +1321,15 @@ function zr(e, t, n = !1) {
1321
1321
  } else
1322
1322
  process.env.NODE_ENV !== "production" && _("inject() can only be used inside setup() or functional components.");
1323
1323
  }
1324
- const Wr = {}, an = (e) => Object.getPrototypeOf(e) === Wr, Br = (e) => e.__isTeleport, xt = Zr, Xr = Symbol.for("v-scx"), qr = () => {
1324
+ const Br = {}, an = (e) => Object.getPrototypeOf(e) === Br, Xr = (e) => e.__isTeleport, xt = kr, qr = Symbol.for("v-scx"), Jr = () => {
1325
1325
  {
1326
- const e = zr(Xr);
1326
+ const e = Wr(qr);
1327
1327
  return e || process.env.NODE_ENV !== "production" && _(
1328
1328
  "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1329
1329
  ), e;
1330
1330
  }
1331
- }, ye = {};
1332
- function Jr(e, t, n) {
1331
+ }, ve = {};
1332
+ function Yr(e, t, n) {
1333
1333
  return process.env.NODE_ENV !== "production" && !O(t) && _(
1334
1334
  "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
1335
1335
  ), un(e, t, n);
@@ -1376,7 +1376,7 @@ function un(e, t, {
1376
1376
  if (O(p))
1377
1377
  return G(p, u, 2);
1378
1378
  process.env.NODE_ENV !== "production" && a(p);
1379
- })) : O(e) ? t ? l = () => G(e, u, 2) : l = () => (y && y(), oe(
1379
+ })) : O(e) ? t ? l = () => G(e, u, 2) : l = () => (v && v(), oe(
1380
1380
  e,
1381
1381
  u,
1382
1382
  3,
@@ -1385,9 +1385,9 @@ function un(e, t, {
1385
1385
  const p = l;
1386
1386
  l = () => X(p());
1387
1387
  }
1388
- let y, M = (p) => {
1389
- y = S.onStop = () => {
1390
- G(p, u, 4), y = S.onStop = void 0;
1388
+ let v, M = (p) => {
1389
+ v = S.onStop = () => {
1390
+ G(p, u, 4), v = S.onStop = void 0;
1391
1391
  };
1392
1392
  }, Te;
1393
1393
  if (pt)
@@ -1396,19 +1396,19 @@ function un(e, t, {
1396
1396
  g ? [] : void 0,
1397
1397
  M
1398
1398
  ]) : l(), s === "sync") {
1399
- const p = qr();
1399
+ const p = Jr();
1400
1400
  Te = p.__watcherHandles || (p.__watcherHandles = []);
1401
1401
  } else
1402
1402
  return Z;
1403
- let K = g ? new Array(e.length).fill(ye) : ye;
1403
+ let K = g ? new Array(e.length).fill(ve) : ve;
1404
1404
  const z = () => {
1405
1405
  if (!(!S.active || !S.dirty))
1406
1406
  if (t) {
1407
1407
  const p = S.run();
1408
- (r || d || (g ? p.some((Ae, On) => H(Ae, K[On])) : H(p, K))) && (y && y(), oe(t, u, 3, [
1408
+ (r || d || (g ? p.some((Ae, vn) => H(Ae, K[vn])) : H(p, K))) && (v && v(), oe(t, u, 3, [
1409
1409
  p,
1410
1410
  // pass undefined as the old value when it's changed for the first time
1411
- K === ye ? void 0 : g && K[0] === ye ? [] : K,
1411
+ K === ve ? void 0 : g && K[0] === ve ? [] : K,
1412
1412
  M
1413
1413
  ]), K = p);
1414
1414
  } else
@@ -1425,14 +1425,14 @@ function un(e, t, {
1425
1425
  u && u.suspense
1426
1426
  ) : S.run(), Te && Te.push($e), $e;
1427
1427
  }
1428
- function Yr(e, t, n) {
1429
- const r = this.proxy, s = x(e) ? e.includes(".") ? Gr(r, e) : () => r[e] : e.bind(r, r);
1428
+ function Gr(e, t, n) {
1429
+ const r = this.proxy, s = x(e) ? e.includes(".") ? Qr(r, e) : () => r[e] : e.bind(r, r);
1430
1430
  let o;
1431
1431
  O(t) ? o = t : (o = t.handler, n = t);
1432
- const i = mn(this), c = un(s, o.bind(r), n);
1432
+ const i = gn(this), c = un(s, o.bind(r), n);
1433
1433
  return i(), c;
1434
1434
  }
1435
- function Gr(e, t) {
1435
+ function Qr(e, t) {
1436
1436
  const n = t.split(".");
1437
1437
  return () => {
1438
1438
  let r = e;
@@ -1449,11 +1449,11 @@ function X(e, t = 1 / 0, n) {
1449
1449
  else if (m(e))
1450
1450
  for (let r = 0; r < e.length; r++)
1451
1451
  X(e[r], t, n);
1452
- else if (xn(e) || k(e))
1452
+ else if (Mn(e) || k(e))
1453
1453
  e.forEach((r) => {
1454
1454
  X(r, t, n);
1455
1455
  });
1456
- else if (Dn(e)) {
1456
+ else if (Tn(e)) {
1457
1457
  for (const r in e)
1458
1458
  X(e[r], t, n);
1459
1459
  for (const r of Object.getOwnPropertySymbols(e))
@@ -1461,23 +1461,23 @@ function X(e, t = 1 / 0, n) {
1461
1461
  }
1462
1462
  return e;
1463
1463
  }
1464
- const Qr = (e) => e.__isSuspense;
1465
- function Zr(e, t) {
1464
+ const Zr = (e) => e.__isSuspense;
1465
+ function kr(e, t) {
1466
1466
  t && t.pendingBranch ? m(e) ? t.effects.push(...e) : t.effects.push(e) : nn(e);
1467
1467
  }
1468
- const fn = Symbol.for("v-fgt"), kr = Symbol.for("v-txt"), es = Symbol.for("v-cmt"), ve = [];
1468
+ const fn = Symbol.for("v-fgt"), es = Symbol.for("v-txt"), ts = Symbol.for("v-cmt"), Ne = [];
1469
1469
  let P = null;
1470
- function ts(e = !1) {
1471
- ve.push(P = e ? null : []);
1470
+ function ns(e = !1) {
1471
+ Ne.push(P = e ? null : []);
1472
1472
  }
1473
- function ns() {
1474
- ve.pop(), P = ve[ve.length - 1] || null;
1473
+ function rs() {
1474
+ Ne.pop(), P = Ne[Ne.length - 1] || null;
1475
1475
  }
1476
- function rs(e) {
1477
- return e.dynamicChildren = P || In, ns(), P && P.push(e), e;
1476
+ function ss(e) {
1477
+ return e.dynamicChildren = P || Cn, rs(), P && P.push(e), e;
1478
1478
  }
1479
- function ss(e, t, n, r, s, o) {
1480
- return rs(
1479
+ function os(e, t, n, r, s, o) {
1480
+ return ss(
1481
1481
  pn(
1482
1482
  e,
1483
1483
  t,
@@ -1489,10 +1489,10 @@ function ss(e, t, n, r, s, o) {
1489
1489
  )
1490
1490
  );
1491
1491
  }
1492
- function os(e) {
1492
+ function is(e) {
1493
1493
  return e ? e.__v_isVNode === !0 : !1;
1494
1494
  }
1495
- const is = (...e) => hn(
1495
+ const cs = (...e) => hn(
1496
1496
  ...e
1497
1497
  ), dn = ({ key: e }) => e != null ? e : null, be = ({
1498
1498
  ref: e,
@@ -1507,7 +1507,7 @@ function pn(e, t = null, n = null, r = 0, s = null, o = e === fn ? 0 : 1, i = !1
1507
1507
  props: t,
1508
1508
  key: t && dn(t),
1509
1509
  ref: t && be(t),
1510
- scopeId: xr,
1510
+ scopeId: Mr,
1511
1511
  slotScopeIds: null,
1512
1512
  children: n,
1513
1513
  component: null,
@@ -1539,9 +1539,9 @@ function pn(e, t = null, n = null, r = 0, s = null, o = e === fn ? 0 : 1, i = !1
1539
1539
  // vnode should not be considered dynamic due to handler caching.
1540
1540
  a.patchFlag !== 32 && P.push(a), a;
1541
1541
  }
1542
- const cs = process.env.NODE_ENV !== "production" ? is : hn;
1542
+ const ls = process.env.NODE_ENV !== "production" ? cs : hn;
1543
1543
  function hn(e, t = null, n = null, r = 0, s = null, o = !1) {
1544
- if ((!e || e === $r) && (process.env.NODE_ENV !== "production" && !e && _(`Invalid vnode type when creating vnode: ${e}.`), e = es), os(e)) {
1544
+ if ((!e || e === Ar) && (process.env.NODE_ENV !== "production" && !e && _(`Invalid vnode type when creating vnode: ${e}.`), e = ts), is(e)) {
1545
1545
  const c = xe(
1546
1546
  e,
1547
1547
  t,
@@ -1550,12 +1550,12 @@ function hn(e, t = null, n = null, r = 0, s = null, o = !1) {
1550
1550
  );
1551
1551
  return n && dt(c, n), !o && P && (c.shapeFlag & 6 ? P[P.indexOf(e)] = c : P.push(c)), c.patchFlag = -2, c;
1552
1552
  }
1553
- if (En(e) && (e = e.__vccOpts), t) {
1554
- t = ls(t);
1553
+ if (On(e) && (e = e.__vccOpts), t) {
1554
+ t = as(t);
1555
1555
  let { class: c, style: a } = t;
1556
1556
  c && !x(c) && (t.class = tt(c)), b(a) && (Je(a) && !m(a) && (a = I({}, a)), t.style = et(a));
1557
1557
  }
1558
- const i = x(e) ? 1 : Qr(e) ? 128 : Br(e) ? 64 : b(e) ? 4 : O(e) ? 2 : 0;
1558
+ const i = x(e) ? 1 : Zr(e) ? 128 : Xr(e) ? 64 : b(e) ? 4 : O(e) ? 2 : 0;
1559
1559
  return process.env.NODE_ENV !== "production" && i & 4 && Je(e) && (e = f(e), _(
1560
1560
  "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1561
1561
  `
@@ -1572,11 +1572,11 @@ Component that was made reactive: `,
1572
1572
  !0
1573
1573
  );
1574
1574
  }
1575
- function ls(e) {
1575
+ function as(e) {
1576
1576
  return e ? Je(e) || an(e) ? I({}, e) : e : null;
1577
1577
  }
1578
1578
  function xe(e, t, n = !1, r = !1) {
1579
- const { props: s, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? us(s || {}, t) : s, h = {
1579
+ const { props: s, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? mn(s || {}, t) : s, h = {
1580
1580
  __v_isVNode: !0,
1581
1581
  __v_skip: !0,
1582
1582
  type: e.type,
@@ -1628,8 +1628,8 @@ function _n(e) {
1628
1628
  const t = xe(e);
1629
1629
  return m(e.children) && (t.children = e.children.map(_n)), t;
1630
1630
  }
1631
- function as(e = " ", t = 0) {
1632
- return cs(kr, null, e, t);
1631
+ function us(e = " ", t = 0) {
1632
+ return ls(es, null, e, t);
1633
1633
  }
1634
1634
  function dt(e, t) {
1635
1635
  let n = 0;
@@ -1649,10 +1649,10 @@ function dt(e, t) {
1649
1649
  !s && !an(t) ? t._ctx = D : s === 3 && D && (D.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1650
1650
  }
1651
1651
  else
1652
- O(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [as(t)]) : n = 8);
1652
+ O(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [us(t)]) : n = 8);
1653
1653
  e.children = t, e.shapeFlag |= n;
1654
1654
  }
1655
- function us(...e) {
1655
+ function mn(...e) {
1656
1656
  const t = {};
1657
1657
  for (let n = 0; n < e.length; n++) {
1658
1658
  const r = e[n];
@@ -1661,7 +1661,7 @@ function us(...e) {
1661
1661
  t.class !== r.class && (t.class = tt([t.class, r.class]));
1662
1662
  else if (s === "style")
1663
1663
  t.style = et([t.style, r.style]);
1664
- else if (Cn(s)) {
1664
+ else if (Pn(s)) {
1665
1665
  const o = t[s], i = r[s];
1666
1666
  i && o !== i && !(m(o) && o.includes(i)) && (t[s] = o ? [].concat(o, i) : i);
1667
1667
  } else
@@ -1685,7 +1685,7 @@ let re = null, Qe;
1685
1685
  (n) => pt = n
1686
1686
  );
1687
1687
  }
1688
- const mn = (e) => {
1688
+ const gn = (e) => {
1689
1689
  const t = re;
1690
1690
  return Qe(e), e.scope.on(), () => {
1691
1691
  e.scope.off(), Qe(t);
@@ -1697,7 +1697,7 @@ function fs(e) {
1697
1697
  let pt = !1;
1698
1698
  process.env.NODE_ENV;
1699
1699
  function ds(e) {
1700
- return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(hr(cr(e.exposed)), {
1700
+ return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(_r(lr(e.exposed)), {
1701
1701
  get(t, n) {
1702
1702
  if (n in t)
1703
1703
  return t[n];
@@ -1710,11 +1710,11 @@ function ds(e) {
1710
1710
  })) : e.proxy;
1711
1711
  }
1712
1712
  const ps = /(?:^|[-_])(\w)/g, hs = (e) => e.replace(ps, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1713
- function gn(e, t = !0) {
1713
+ function wn(e, t = !0) {
1714
1714
  return O(e) ? e.displayName || e.name : e.name || t && e.__name;
1715
1715
  }
1716
- function wn(e, t, n = !1) {
1717
- let r = gn(t);
1716
+ function En(e, t, n = !1) {
1717
+ let r = wn(t);
1718
1718
  if (!r && t.__file) {
1719
1719
  const s = t.__file.match(/([^/\\]+)\.\w+$/);
1720
1720
  s && (r = s[1]);
@@ -1731,7 +1731,7 @@ function wn(e, t, n = !1) {
1731
1731
  }
1732
1732
  return r ? hs(r) : n ? "App" : "Anonymous";
1733
1733
  }
1734
- function En(e) {
1734
+ function On(e) {
1735
1735
  return O(e) && "__vccOpts" in e;
1736
1736
  }
1737
1737
  function _s() {
@@ -1780,8 +1780,8 @@ function _s() {
1780
1780
  l.type.props && l.props && d.push(i("props", f(l.props))), l.setupState !== V && d.push(i("setup", l.setupState)), l.data !== V && d.push(i("data", f(l.data)));
1781
1781
  const g = a(l, "computed");
1782
1782
  g && d.push(i("computed", g));
1783
- const y = a(l, "inject");
1784
- return y && d.push(i("injected", y)), d.push([
1783
+ const v = a(l, "inject");
1784
+ return v && d.push(i("injected", v)), d.push([
1785
1785
  "div",
1786
1786
  {},
1787
1787
  [
@@ -1826,14 +1826,14 @@ function _s() {
1826
1826
  const g = l.type;
1827
1827
  if (O(g))
1828
1828
  return;
1829
- const y = {};
1829
+ const v = {};
1830
1830
  for (const M in l.ctx)
1831
- u(g, M, d) && (y[M] = l.ctx[M]);
1832
- return y;
1831
+ u(g, M, d) && (v[M] = l.ctx[M]);
1832
+ return v;
1833
1833
  }
1834
1834
  function u(l, d, g) {
1835
- const y = l[g];
1836
- if (m(y) && y.includes(d) || b(y) && d in y || l.extends && u(l.extends, d, g) || l.mixins && l.mixins.some((M) => u(M, d, g)))
1835
+ const v = l[g];
1836
+ if (m(v) && v.includes(d) || b(v) && d in v || l.extends && u(l.extends, d, g) || l.mixins && l.mixins.some((M) => u(M, d, g)))
1837
1837
  return !0;
1838
1838
  }
1839
1839
  function h(l) {
@@ -1966,14 +1966,14 @@ class Os {
1966
1966
  this.app = W(W({}, this.app), t);
1967
1967
  }
1968
1968
  onLoad(t) {
1969
- ys(this);
1969
+ vs(this);
1970
1970
  }
1971
1971
  onUnload(t) {
1972
1972
  }
1973
1973
  onError() {
1974
1974
  }
1975
1975
  }
1976
- const ys = (e) => {
1976
+ const vs = (e) => {
1977
1977
  var t, n;
1978
1978
  (n = (t = e.dom) == null ? void 0 : t.contentWindow) == null || n.postMessage(
1979
1979
  {
@@ -1988,7 +1988,7 @@ const ys = (e) => {
1988
1988
  },
1989
1989
  "*"
1990
1990
  );
1991
- }, Ns = () => {
1991
+ }, ys = () => {
1992
1992
  window.addEventListener("message", (e) => {
1993
1993
  if (e.data.cmd === "$xt/micro/sync") {
1994
1994
  const t = [E.IS_MICRO, E.MICRO_NAME, E.MICRO_TOKEN], n = new URL(window.decodeURIComponent(e.data.data.url), e.origin);
@@ -2017,11 +2017,11 @@ const ys = (e) => {
2017
2017
  s(`${i} { display: none !important; }`);
2018
2018
  }) : s(`${e.hideHeaderCssSelector} { display: none !important; }`)), window.addEventListener("message", (i) => {
2019
2019
  i.data.cmd === `$xt/micro/${r}` && (window[E.MICRO_APP] = Ue(W({}, i.data.data), { mainBaseURL: i.origin }), Ze());
2020
- }), vs(window);
2020
+ }), Ns(window);
2021
2021
  const o = Se(E.MICRO_TOKEN);
2022
2022
  e.authHandler && o && (yield e.authHandler(o));
2023
2023
  });
2024
- function vs(e) {
2024
+ function Ns(e) {
2025
2025
  const t = e.history, n = t.pushState, r = t.replaceState;
2026
2026
  t.pushState = function(s, o, i) {
2027
2027
  n.call(t, s, o, i), Ze();
@@ -2051,12 +2051,13 @@ const bs = {
2051
2051
  console.error("app url is required", e);
2052
2052
  return;
2053
2053
  }
2054
- const t = Object.assign({}, e, bs);
2054
+ const t = Object.assign({}, bs, e);
2055
2055
  return Me[e.name] = Ue(W({}, t), {
2056
2056
  instance: new Os(e)
2057
2057
  }), Me[e.name];
2058
2058
  }, ht = (e) => Me[e], Ss = (e, t) => Me[e.name] = W(W({}, e), t), Rs = (e, t) => new Promise((n, r) => {
2059
2059
  let s = ht(e);
2060
+ debugger;
2060
2061
  s ? (t && (s.instance.changeOptions(t), s = Ss(s, t)), s.preload ? s.instance.preloadRender(s.el) : s.instance.mount(s.el), n(s)) : r("app not found");
2061
2062
  }), Is = (e) => {
2062
2063
  let t = ht(e);
@@ -2064,36 +2065,36 @@ const bs = {
2064
2065
  }, Vs = (e) => {
2065
2066
  let t = ht(e);
2066
2067
  t && t.instance.reload();
2067
- }, Cs = /* @__PURE__ */ Mr({
2068
+ }, Cs = /* @__PURE__ */ Vr({
2068
2069
  __name: "XTMicroView",
2069
2070
  props: {
2070
2071
  appId: String
2071
2072
  },
2072
2073
  setup(e) {
2073
2074
  const t = e, n = Zt(), r = () => {
2074
- t.appId && Rs(t.appId, {
2075
+ console.log("init", t.appId), t.appId && Rs(t.appId, {
2075
2076
  el: n.value
2076
2077
  });
2077
2078
  };
2078
- return Jr(() => t.appId, (s, o) => {
2079
+ return Yr(() => t.appId, (s, o) => {
2079
2080
  s !== o && o && Is(o), r();
2080
- }), Dr(() => {
2081
- r();
2082
2081
  }), Tr(() => {
2082
+ console.log("xt-micro-view", "onMounted", t.appId), r();
2083
+ }), $r(() => {
2083
2084
  console.log("微应用销毁", t.appId);
2084
- }), (s, o) => (ts(), ss("div", {
2085
+ }), (s, o) => (ns(), os("div", mn({
2085
2086
  ref_key: "refPanel",
2086
- ref: n,
2087
- class: "xt-micro w-100% h-100% overflow-hidden"
2088
- }, null, 512));
2087
+ ref: n
2088
+ }, s.$attrs, { class: "xt-micro w-100% h-100% overflow-hidden" }), null, 16));
2089
2089
  }
2090
2090
  });
2091
2091
  const Ds = {
2092
2092
  install: (e, t = {}) => {
2093
- e.component("xt-micro-view", Cs), Ns();
2093
+ e.component("xt-micro-view", Cs), ys();
2094
2094
  }
2095
2095
  };
2096
2096
  export {
2097
+ Cs as XTMicroView,
2097
2098
  Ds as default,
2098
2099
  ht as getApp,
2099
2100
  xs as microInit,
@@ -1,4 +1,4 @@
1
- import { AppOption, App } from './index.d';
1
+ import { AppOption, App } from './types';
2
2
  import { microInit } from './child';
3
3
  /**
4
4
  * 安装微应用
@@ -1,4 +1,4 @@
1
- import { MicroInitOptions } from './index.d';
1
+ import { MicroInitOptions } from './types';
2
2
  /**
3
3
  * 微应用-子应用初始化
4
4
  * 此时方法上下文是子应用
@@ -1,29 +1,8 @@
1
- import { MicroApp } from './parent';
2
- import { default as microInit } from './index';
3
- export interface AppOption {
4
- name: string
5
- url: string
6
- el?: HTMLElement | string
7
- preload?: boolean
8
- token?: () => string | string
9
- params?: { [key: string]: any }
10
- sync?: boolean
11
- }
12
- export interface App extends AppOption {
13
- instance: MicroApp
14
- }
15
- export interface MicroInitOptions {
16
- hideHeaderCssSelector?: string | string[]
17
- authHandler?: (token: string) => void
18
- }
19
-
20
- // 扩展 Window 接口,防止ts报错
21
- declare global {
22
- interface Window {
23
- [key: string]: any
24
- }
25
- }
26
-
27
-
28
- export * from './api'
29
- export default microInit
1
+ import { App } from 'vue';
2
+ import { default as XTMicroView } from './components/XTMicroView.vue';
3
+ export { XTMicroView };
4
+ export * from './api';
5
+ declare const _default: {
6
+ install: (app: App, _options?: any) => void;
7
+ };
8
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { AppOption, App } from './index.d';
1
+ import { AppOption, App } from './types';
2
2
  export declare const isMicro: import('vue').Ref<boolean>;
3
3
  export declare class MicroApp {
4
4
  app: App | AppOption;
@@ -1 +1,25 @@
1
+ import { MicroApp } from './parent';
1
2
  export declare const CONSTANT: Record<string, string>;
3
+ export interface AppOption {
4
+ name: string;
5
+ url: string;
6
+ el?: HTMLElement | string;
7
+ preload?: boolean;
8
+ token?: () => string | string;
9
+ params?: {
10
+ [key: string]: any;
11
+ };
12
+ sync?: boolean;
13
+ }
14
+ export interface App extends AppOption {
15
+ instance: MicroApp;
16
+ }
17
+ export interface MicroInitOptions {
18
+ hideHeaderCssSelector?: string | string[];
19
+ authHandler?: (token: string) => void;
20
+ }
21
+ declare global {
22
+ interface Window {
23
+ [key: string]: any;
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingtukeji/micro",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/index.js",