@chamn/render 0.8.5 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var Ba = Object.defineProperty;
2
2
  var Ga = (t, e, r) => e in t ? Ba(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var E = (t, e, r) => Ga(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var w = (t, e, r) => Ga(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import x, { Component as ka, createElement as Ha, useEffect as co, useRef as uo, useMemo as lo } from "react";
5
5
  const za = (t) => () => {
6
6
  console.warn(`${t} need to be implement getComponent`);
@@ -64,7 +64,7 @@ function ho(t) {
64
64
  var e = t + "";
65
65
  return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
66
66
  }
67
- function wt(t) {
67
+ function Et(t) {
68
68
  var e = typeof t;
69
69
  return t != null && (e == "object" || e == "function");
70
70
  }
@@ -73,7 +73,7 @@ function go(t) {
73
73
  }
74
74
  var ss = "[object AsyncFunction]", is = "[object Function]", cs = "[object GeneratorFunction]", us = "[object Proxy]";
75
75
  function hr(t) {
76
- if (!wt(t))
76
+ if (!Et(t))
77
77
  return !1;
78
78
  var e = Ot(t);
79
79
  return e == is || e == cs || e == ss || e == us;
@@ -86,7 +86,7 @@ function ls(t) {
86
86
  return !!Yr && Yr in t;
87
87
  }
88
88
  var fs = Function.prototype, ds = fs.toString;
89
- function Et(t) {
89
+ function wt(t) {
90
90
  if (t != null) {
91
91
  try {
92
92
  return ds.call(t);
@@ -99,14 +99,14 @@ function Et(t) {
99
99
  }
100
100
  return "";
101
101
  }
102
- var ps = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, gs = Function.prototype, ms = Object.prototype, vs = gs.toString, ys = ms.hasOwnProperty, bs = RegExp(
103
- "^" + vs.call(ys).replace(ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
102
+ var ps = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, gs = Function.prototype, vs = Object.prototype, ms = gs.toString, ys = vs.hasOwnProperty, bs = RegExp(
103
+ "^" + ms.call(ys).replace(ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
104
104
  );
105
105
  function _s(t) {
106
- if (!wt(t) || ls(t))
106
+ if (!Et(t) || ls(t))
107
107
  return !1;
108
108
  var e = hr(t) ? bs : hs;
109
- return e.test(Et(t));
109
+ return e.test(wt(t));
110
110
  }
111
111
  function Ss(t, e) {
112
112
  return t == null ? void 0 : t[e];
@@ -119,7 +119,7 @@ var ze = Ct(X, "WeakMap"), Xr = Object.create, Os = /* @__PURE__ */ function() {
119
119
  function t() {
120
120
  }
121
121
  return function(e) {
122
- if (!wt(e))
122
+ if (!Et(e))
123
123
  return {};
124
124
  if (Xr)
125
125
  return Xr(e);
@@ -128,7 +128,7 @@ var ze = Ct(X, "WeakMap"), Xr = Object.create, Os = /* @__PURE__ */ function() {
128
128
  return t.prototype = void 0, r;
129
129
  };
130
130
  }();
131
- function ws(t, e, r) {
131
+ function Es(t, e, r) {
132
132
  switch (r.length) {
133
133
  case 0:
134
134
  return t.call(e);
@@ -141,7 +141,7 @@ function ws(t, e, r) {
141
141
  }
142
142
  return t.apply(e, r);
143
143
  }
144
- function Es(t, e) {
144
+ function ws(t, e) {
145
145
  var r = -1, n = t.length;
146
146
  for (e || (e = Array(n)); ++r < n; )
147
147
  e[r] = t[r];
@@ -179,7 +179,7 @@ var ge = function() {
179
179
  writable: !0
180
180
  });
181
181
  } : go, Ts = Ns(As), Rs = 9007199254740991, Ps = /^(?:0|[1-9]\d*)$/;
182
- function mo(t, e) {
182
+ function vo(t, e) {
183
183
  var r = typeof t;
184
184
  return e = e ?? Rs, !!e && (r == "number" || r != "symbol" && Ps.test(t)) && t > -1 && t % 1 == 0 && t < e;
185
185
  }
@@ -216,24 +216,24 @@ function Fs(t, e, r) {
216
216
  o = -1;
217
217
  for (var i = Array(e + 1); ++o < e; )
218
218
  i[o] = n[o];
219
- return i[e] = r(s), ws(t, this, i);
219
+ return i[e] = r(s), Es(t, this, i);
220
220
  };
221
221
  }
222
222
  function Vs(t, e) {
223
223
  return Ts(Fs(t, e, go), t + "");
224
224
  }
225
225
  var Us = 9007199254740991;
226
- function vo(t) {
226
+ function mo(t) {
227
227
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Us;
228
228
  }
229
- function we(t) {
230
- return t != null && vo(t.length) && !hr(t);
229
+ function Ee(t) {
230
+ return t != null && mo(t.length) && !hr(t);
231
231
  }
232
232
  function Bs(t, e, r) {
233
- if (!wt(r))
233
+ if (!Et(r))
234
234
  return !1;
235
235
  var n = typeof e;
236
- return (n == "number" ? we(r) && mo(e, r.length) : n == "string" && e in r) ? se(r[e], t) : !1;
236
+ return (n == "number" ? Ee(r) && vo(e, r.length) : n == "string" && e in r) ? se(r[e], t) : !1;
237
237
  }
238
238
  function Gs(t) {
239
239
  return Vs(function(e, r) {
@@ -246,7 +246,7 @@ function Gs(t) {
246
246
  });
247
247
  }
248
248
  var ks = Object.prototype;
249
- function mr(t) {
249
+ function vr(t) {
250
250
  var e = t && t.constructor, r = typeof e == "function" && e.prototype || ks;
251
251
  return t === r;
252
252
  }
@@ -267,32 +267,32 @@ var yo = Object.prototype, Js = yo.hasOwnProperty, qs = yo.propertyIsEnumerable,
267
267
  function Ws() {
268
268
  return !1;
269
269
  }
270
- var bo = typeof exports == "object" && exports && !exports.nodeType && exports, en = bo && typeof module == "object" && module && !module.nodeType && module, Ks = en && en.exports === bo, rn = Ks ? X.Buffer : void 0, Qs = rn ? rn.isBuffer : void 0, me = Qs || Ws, Ys = "[object Arguments]", Xs = "[object Array]", Zs = "[object Boolean]", ti = "[object Date]", ei = "[object Error]", ri = "[object Function]", ni = "[object Map]", oi = "[object Number]", ai = "[object Object]", si = "[object RegExp]", ii = "[object Set]", ci = "[object String]", ui = "[object WeakMap]", li = "[object ArrayBuffer]", fi = "[object DataView]", di = "[object Float32Array]", pi = "[object Float64Array]", hi = "[object Int8Array]", gi = "[object Int16Array]", mi = "[object Int32Array]", vi = "[object Uint8Array]", yi = "[object Uint8ClampedArray]", bi = "[object Uint16Array]", _i = "[object Uint32Array]", P = {};
271
- P[di] = P[pi] = P[hi] = P[gi] = P[mi] = P[vi] = P[yi] = P[bi] = P[_i] = !0;
270
+ var bo = typeof exports == "object" && exports && !exports.nodeType && exports, en = bo && typeof module == "object" && module && !module.nodeType && module, Ks = en && en.exports === bo, rn = Ks ? X.Buffer : void 0, Qs = rn ? rn.isBuffer : void 0, ve = Qs || Ws, Ys = "[object Arguments]", Xs = "[object Array]", Zs = "[object Boolean]", ti = "[object Date]", ei = "[object Error]", ri = "[object Function]", ni = "[object Map]", oi = "[object Number]", ai = "[object Object]", si = "[object RegExp]", ii = "[object Set]", ci = "[object String]", ui = "[object WeakMap]", li = "[object ArrayBuffer]", fi = "[object DataView]", di = "[object Float32Array]", pi = "[object Float64Array]", hi = "[object Int8Array]", gi = "[object Int16Array]", vi = "[object Int32Array]", mi = "[object Uint8Array]", yi = "[object Uint8ClampedArray]", bi = "[object Uint16Array]", _i = "[object Uint32Array]", P = {};
271
+ P[di] = P[pi] = P[hi] = P[gi] = P[vi] = P[mi] = P[yi] = P[bi] = P[_i] = !0;
272
272
  P[Ys] = P[Xs] = P[li] = P[Zs] = P[fi] = P[ti] = P[ei] = P[ri] = P[ni] = P[oi] = P[ai] = P[si] = P[ii] = P[ci] = P[ui] = !1;
273
273
  function Si(t) {
274
- return ft(t) && vo(t.length) && !!P[Ot(t)];
274
+ return ft(t) && mo(t.length) && !!P[Ot(t)];
275
275
  }
276
276
  function Oi(t) {
277
277
  return function(e) {
278
278
  return t(e);
279
279
  };
280
280
  }
281
- var _o = typeof exports == "object" && exports && !exports.nodeType && exports, qt = _o && typeof module == "object" && module && !module.nodeType && module, wi = qt && qt.exports === _o, Ie = wi && fo.process, nn = function() {
281
+ var _o = typeof exports == "object" && exports && !exports.nodeType && exports, qt = _o && typeof module == "object" && module && !module.nodeType && module, Ei = qt && qt.exports === _o, Ie = Ei && fo.process, nn = function() {
282
282
  try {
283
283
  var t = qt && qt.require && qt.require("util").types;
284
284
  return t || Ie && Ie.binding && Ie.binding("util");
285
285
  } catch {
286
286
  }
287
- }(), on = nn && nn.isTypedArray, vr = on ? Oi(on) : Si, Ei = Object.prototype, Ci = Ei.hasOwnProperty;
287
+ }(), on = nn && nn.isTypedArray, mr = on ? Oi(on) : Si, wi = Object.prototype, Ci = wi.hasOwnProperty;
288
288
  function So(t, e) {
289
- var r = ot(t), n = !r && Je(t), o = !r && !n && me(t), a = !r && !n && !o && vr(t), s = r || n || o || a, i = s ? Hs(t.length, String) : [], c = i.length;
289
+ var r = ot(t), n = !r && Je(t), o = !r && !n && ve(t), a = !r && !n && !o && mr(t), s = r || n || o || a, i = s ? Hs(t.length, String) : [], c = i.length;
290
290
  for (var u in t)
291
291
  (e || Ci.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
292
292
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
293
293
  o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
294
294
  a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
295
- mo(u, c))) && i.push(u);
295
+ vo(u, c))) && i.push(u);
296
296
  return i;
297
297
  }
298
298
  function Oo(t, e) {
@@ -302,7 +302,7 @@ function Oo(t, e) {
302
302
  }
303
303
  var $i = Oo(Object.keys, Object), ji = Object.prototype, Ni = ji.hasOwnProperty;
304
304
  function xi(t) {
305
- if (!mr(t))
305
+ if (!vr(t))
306
306
  return $i(t);
307
307
  var e = [];
308
308
  for (var r in Object(t))
@@ -310,7 +310,7 @@ function xi(t) {
310
310
  return e;
311
311
  }
312
312
  function Ai(t) {
313
- return we(t) ? So(t) : xi(t);
313
+ return Ee(t) ? So(t) : xi(t);
314
314
  }
315
315
  function Ti(t) {
316
316
  var e = [];
@@ -321,15 +321,15 @@ function Ti(t) {
321
321
  }
322
322
  var Ri = Object.prototype, Pi = Ri.hasOwnProperty;
323
323
  function Mi(t) {
324
- if (!wt(t))
324
+ if (!Et(t))
325
325
  return Ti(t);
326
- var e = mr(t), r = [];
326
+ var e = vr(t), r = [];
327
327
  for (var n in t)
328
328
  n == "constructor" && (e || !Pi.call(t, n)) || r.push(n);
329
329
  return r;
330
330
  }
331
- function wo(t) {
332
- return we(t) ? So(t, !0) : Mi(t);
331
+ function Eo(t) {
332
+ return Ee(t) ? So(t, !0) : Mi(t);
333
333
  }
334
334
  var Yt = Ct(Object, "create");
335
335
  function Ii() {
@@ -373,7 +373,7 @@ bt.prototype.set = zi;
373
373
  function Ji() {
374
374
  this.__data__ = [], this.size = 0;
375
375
  }
376
- function Ee(t, e) {
376
+ function we(t, e) {
377
377
  for (var r = t.length; r--; )
378
378
  if (se(t[r][0], e))
379
379
  return r;
@@ -381,21 +381,21 @@ function Ee(t, e) {
381
381
  }
382
382
  var qi = Array.prototype, Wi = qi.splice;
383
383
  function Ki(t) {
384
- var e = this.__data__, r = Ee(e, t);
384
+ var e = this.__data__, r = we(e, t);
385
385
  if (r < 0)
386
386
  return !1;
387
387
  var n = e.length - 1;
388
388
  return r == n ? e.pop() : Wi.call(e, r, 1), --this.size, !0;
389
389
  }
390
390
  function Qi(t) {
391
- var e = this.__data__, r = Ee(e, t);
391
+ var e = this.__data__, r = we(e, t);
392
392
  return r < 0 ? void 0 : e[r][1];
393
393
  }
394
394
  function Yi(t) {
395
- return Ee(this.__data__, t) > -1;
395
+ return we(this.__data__, t) > -1;
396
396
  }
397
397
  function Xi(t, e) {
398
- var r = this.__data__, n = Ee(r, t);
398
+ var r = this.__data__, n = we(r, t);
399
399
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
400
400
  }
401
401
  function at(t) {
@@ -452,7 +452,7 @@ $t.prototype.delete = ec;
452
452
  $t.prototype.get = rc;
453
453
  $t.prototype.has = nc;
454
454
  $t.prototype.set = oc;
455
- function Eo(t) {
455
+ function wo(t) {
456
456
  return t == null ? "" : ho(t);
457
457
  }
458
458
  function ac(t, e) {
@@ -481,14 +481,14 @@ function dc(t, e, r) {
481
481
  var n = t.length;
482
482
  return r = r === void 0 ? n : r, fc(t, e, r);
483
483
  }
484
- var pc = "\\ud800-\\udfff", hc = "\\u0300-\\u036f", gc = "\\ufe20-\\ufe2f", mc = "\\u20d0-\\u20ff", vc = hc + gc + mc, yc = "\\ufe0e\\ufe0f", bc = "\\u200d", _c = RegExp("[" + bc + pc + vc + yc + "]");
484
+ var pc = "\\ud800-\\udfff", hc = "\\u0300-\\u036f", gc = "\\ufe20-\\ufe2f", vc = "\\u20d0-\\u20ff", mc = hc + gc + vc, yc = "\\ufe0e\\ufe0f", bc = "\\u200d", _c = RegExp("[" + bc + pc + mc + yc + "]");
485
485
  function jo(t) {
486
486
  return _c.test(t);
487
487
  }
488
488
  function Sc(t) {
489
489
  return t.split("");
490
490
  }
491
- var No = "\\ud800-\\udfff", Oc = "\\u0300-\\u036f", wc = "\\ufe20-\\ufe2f", Ec = "\\u20d0-\\u20ff", Cc = Oc + wc + Ec, $c = "\\ufe0e\\ufe0f", jc = "[" + No + "]", qe = "[" + Cc + "]", We = "\\ud83c[\\udffb-\\udfff]", Nc = "(?:" + qe + "|" + We + ")", xo = "[^" + No + "]", Ao = "(?:\\ud83c[\\udde6-\\uddff]){2}", To = "[\\ud800-\\udbff][\\udc00-\\udfff]", xc = "\\u200d", Ro = Nc + "?", Po = "[" + $c + "]?", Ac = "(?:" + xc + "(?:" + [xo, Ao, To].join("|") + ")" + Po + Ro + ")*", Tc = Po + Ro + Ac, Rc = "(?:" + [xo + qe + "?", qe, Ao, To, jc].join("|") + ")", Pc = RegExp(We + "(?=" + We + ")|" + Rc + Tc, "g");
491
+ var No = "\\ud800-\\udfff", Oc = "\\u0300-\\u036f", Ec = "\\ufe20-\\ufe2f", wc = "\\u20d0-\\u20ff", Cc = Oc + Ec + wc, $c = "\\ufe0e\\ufe0f", jc = "[" + No + "]", qe = "[" + Cc + "]", We = "\\ud83c[\\udffb-\\udfff]", Nc = "(?:" + qe + "|" + We + ")", xo = "[^" + No + "]", Ao = "(?:\\ud83c[\\udde6-\\uddff]){2}", To = "[\\ud800-\\udbff][\\udc00-\\udfff]", xc = "\\u200d", Ro = Nc + "?", Po = "[" + $c + "]?", Ac = "(?:" + xc + "(?:" + [xo, Ao, To].join("|") + ")" + Po + Ro + ")*", Tc = Po + Ro + Ac, Rc = "(?:" + [xo + qe + "?", qe, Ao, To, jc].join("|") + ")", Pc = RegExp(We + "(?=" + We + ")|" + Rc + Tc, "g");
492
492
  function Mc(t) {
493
493
  return t.match(Pc) || [];
494
494
  }
@@ -497,14 +497,14 @@ function Ic(t) {
497
497
  }
498
498
  function Dc(t) {
499
499
  return function(e) {
500
- e = Eo(e);
500
+ e = wo(e);
501
501
  var r = jo(e) ? Ic(e) : void 0, n = r ? r[0] : e.charAt(0), o = r ? dc(r, 1).join("") : e.slice(1);
502
502
  return n[t]() + o;
503
503
  };
504
504
  }
505
505
  var Lc = Dc("toUpperCase");
506
506
  function Fc(t) {
507
- return Lc(Eo(t).toLowerCase());
507
+ return Lc(wo(t).toLowerCase());
508
508
  }
509
509
  function Vc() {
510
510
  this.__data__ = new at(), this.size = 0;
@@ -566,9 +566,9 @@ function Xc(t, e, r) {
566
566
  function un(t) {
567
567
  return Xc(t, Ai, Yc);
568
568
  }
569
- var Ke = Ct(X, "DataView"), Qe = Ct(X, "Promise"), Ye = Ct(X, "Set"), ln = "[object Map]", Zc = "[object Object]", fn = "[object Promise]", dn = "[object Set]", pn = "[object WeakMap]", hn = "[object DataView]", tu = Et(Ke), eu = Et(Xt), ru = Et(Qe), nu = Et(Ye), ou = Et(ze), ut = Ot;
569
+ var Ke = Ct(X, "DataView"), Qe = Ct(X, "Promise"), Ye = Ct(X, "Set"), ln = "[object Map]", Zc = "[object Object]", fn = "[object Promise]", dn = "[object Set]", pn = "[object WeakMap]", hn = "[object DataView]", tu = wt(Ke), eu = wt(Xt), ru = wt(Qe), nu = wt(Ye), ou = wt(ze), ut = Ot;
570
570
  (Ke && ut(new Ke(new ArrayBuffer(1))) != hn || Xt && ut(new Xt()) != ln || Qe && ut(Qe.resolve()) != fn || Ye && ut(new Ye()) != dn || ze && ut(new ze()) != pn) && (ut = function(t) {
571
- var e = Ot(t), r = e == Zc ? t.constructor : void 0, n = r ? Et(r) : "";
571
+ var e = Ot(t), r = e == Zc ? t.constructor : void 0, n = r ? wt(r) : "";
572
572
  if (n)
573
573
  switch (n) {
574
574
  case tu:
@@ -584,17 +584,17 @@ var Ke = Ct(X, "DataView"), Qe = Ct(X, "Promise"), Ye = Ct(X, "Set"), ln = "[obj
584
584
  }
585
585
  return e;
586
586
  });
587
- var ve = X.Uint8Array;
587
+ var me = X.Uint8Array;
588
588
  function au(t) {
589
589
  var e = new t.constructor(t.byteLength);
590
- return new ve(e).set(new ve(t)), e;
590
+ return new me(e).set(new me(t)), e;
591
591
  }
592
592
  function su(t, e) {
593
593
  var r = au(t.buffer);
594
594
  return new t.constructor(r, t.byteOffset, t.length);
595
595
  }
596
596
  function iu(t) {
597
- return typeof t.constructor == "function" && !mr(t) ? Os(Co(t)) : {};
597
+ return typeof t.constructor == "function" && !vr(t) ? Os(Co(t)) : {};
598
598
  }
599
599
  var cu = "__lodash_hash_undefined__";
600
600
  function uu(t) {
@@ -639,9 +639,9 @@ function Io(t, e, r, n, o, a) {
639
639
  break;
640
640
  }
641
641
  if (h) {
642
- if (!fu(e, function(m, v) {
643
- if (!du(h, v) && (g === m || o(g, m, r, n, a)))
644
- return h.push(v);
642
+ if (!fu(e, function(v, m) {
643
+ if (!du(h, m) && (g === v || o(g, v, r, n, a)))
644
+ return h.push(m);
645
645
  })) {
646
646
  f = !1;
647
647
  break;
@@ -659,13 +659,13 @@ function gu(t) {
659
659
  r[++e] = [o, n];
660
660
  }), r;
661
661
  }
662
- function mu(t) {
662
+ function vu(t) {
663
663
  var e = -1, r = Array(t.size);
664
664
  return t.forEach(function(n) {
665
665
  r[++e] = n;
666
666
  }), r;
667
667
  }
668
- var vu = 1, yu = 2, bu = "[object Boolean]", _u = "[object Date]", Su = "[object Error]", Ou = "[object Map]", wu = "[object Number]", Eu = "[object RegExp]", Cu = "[object Set]", $u = "[object String]", ju = "[object Symbol]", Nu = "[object ArrayBuffer]", xu = "[object DataView]", gn = lt ? lt.prototype : void 0, De = gn ? gn.valueOf : void 0;
668
+ var mu = 1, yu = 2, bu = "[object Boolean]", _u = "[object Date]", Su = "[object Error]", Ou = "[object Map]", Eu = "[object Number]", wu = "[object RegExp]", Cu = "[object Set]", $u = "[object String]", ju = "[object Symbol]", Nu = "[object ArrayBuffer]", xu = "[object DataView]", gn = lt ? lt.prototype : void 0, De = gn ? gn.valueOf : void 0;
669
669
  function Au(t, e, r, n, o, a, s) {
670
670
  switch (r) {
671
671
  case xu:
@@ -673,21 +673,21 @@ function Au(t, e, r, n, o, a, s) {
673
673
  return !1;
674
674
  t = t.buffer, e = e.buffer;
675
675
  case Nu:
676
- return !(t.byteLength != e.byteLength || !a(new ve(t), new ve(e)));
676
+ return !(t.byteLength != e.byteLength || !a(new me(t), new me(e)));
677
677
  case bu:
678
678
  case _u:
679
- case wu:
679
+ case Eu:
680
680
  return se(+t, +e);
681
681
  case Su:
682
682
  return t.name == e.name && t.message == e.message;
683
- case Eu:
683
+ case wu:
684
684
  case $u:
685
685
  return t == e + "";
686
686
  case Ou:
687
687
  var i = gu;
688
688
  case Cu:
689
- var c = n & vu;
690
- if (i || (i = mu), t.size != e.size && !c)
689
+ var c = n & mu;
690
+ if (i || (i = vu), t.size != e.size && !c)
691
691
  return !1;
692
692
  var u = s.get(t);
693
693
  if (u)
@@ -718,10 +718,10 @@ function Mu(t, e, r, n, o, a) {
718
718
  a.set(t, e), a.set(e, t);
719
719
  for (var p = s; ++l < c; ) {
720
720
  f = i[l];
721
- var m = t[f], v = e[f];
721
+ var v = t[f], m = e[f];
722
722
  if (n)
723
- var y = s ? n(v, m, f, e, t, a) : n(m, v, f, t, e, a);
724
- if (!(y === void 0 ? m === v || o(m, v, r, n, a) : y)) {
723
+ var y = s ? n(m, v, f, e, t, a) : n(v, m, f, t, e, a);
724
+ if (!(y === void 0 ? v === m || o(v, m, r, n, a) : y)) {
725
725
  b = !1;
726
726
  break;
727
727
  }
@@ -733,18 +733,18 @@ function Mu(t, e, r, n, o, a) {
733
733
  }
734
734
  return a.delete(t), a.delete(e), b;
735
735
  }
736
- var Iu = 1, mn = "[object Arguments]", vn = "[object Array]", fe = "[object Object]", Du = Object.prototype, yn = Du.hasOwnProperty;
736
+ var Iu = 1, vn = "[object Arguments]", mn = "[object Array]", fe = "[object Object]", Du = Object.prototype, yn = Du.hasOwnProperty;
737
737
  function Lu(t, e, r, n, o, a) {
738
- var s = ot(t), i = ot(e), c = s ? vn : ut(t), u = i ? vn : ut(e);
739
- c = c == mn ? fe : c, u = u == mn ? fe : u;
738
+ var s = ot(t), i = ot(e), c = s ? mn : ut(t), u = i ? mn : ut(e);
739
+ c = c == vn ? fe : c, u = u == vn ? fe : u;
740
740
  var d = c == fe, l = u == fe, f = c == u;
741
- if (f && me(t)) {
742
- if (!me(e))
741
+ if (f && ve(t)) {
742
+ if (!ve(e))
743
743
  return !1;
744
744
  s = !0, d = !1;
745
745
  }
746
746
  if (f && !d)
747
- return a || (a = new nt()), s || vr(t) ? Io(t, e, r, n, o, a) : Au(t, e, c, r, n, o, a);
747
+ return a || (a = new nt()), s || mr(t) ? Io(t, e, r, n, o, a) : Au(t, e, c, r, n, o, a);
748
748
  if (!(r & Iu)) {
749
749
  var h = d && yn.call(t, "__wrapped__"), g = l && yn.call(e, "__wrapped__");
750
750
  if (h || g) {
@@ -772,14 +772,14 @@ function Xe(t, e, r) {
772
772
  (r !== void 0 && !se(t[e], r) || r === void 0 && !(e in t)) && gr(t, e, r);
773
773
  }
774
774
  function Uu(t) {
775
- return ft(t) && we(t);
775
+ return ft(t) && Ee(t);
776
776
  }
777
777
  function Ze(t, e) {
778
778
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
779
779
  return t[e];
780
780
  }
781
781
  function Bu(t) {
782
- return Ls(t, wo(t));
782
+ return Ls(t, Eo(t));
783
783
  }
784
784
  function Gu(t, e, r, n, o, a, s) {
785
785
  var i = Ze(t, r), c = Ze(e, r), u = s.get(c);
@@ -789,20 +789,20 @@ function Gu(t, e, r, n, o, a, s) {
789
789
  }
790
790
  var d = a ? a(i, c, r + "", t, e, s) : void 0, l = d === void 0;
791
791
  if (l) {
792
- var f = ot(c), h = !f && me(c), g = !f && !h && vr(c);
793
- d = c, f || h || g ? ot(i) ? d = i : Uu(i) ? d = Es(i) : h ? (l = !1, d = Jc(c)) : g ? (l = !1, d = su(c)) : d = [] : Ft(c) || Je(c) ? (d = i, Je(i) ? d = Bu(i) : (!wt(i) || hr(i)) && (d = iu(c))) : l = !1;
792
+ var f = ot(c), h = !f && ve(c), g = !f && !h && mr(c);
793
+ d = c, f || h || g ? ot(i) ? d = i : Uu(i) ? d = ws(i) : h ? (l = !1, d = Jc(c)) : g ? (l = !1, d = su(c)) : d = [] : Ft(c) || Je(c) ? (d = i, Je(i) ? d = Bu(i) : (!Et(i) || hr(i)) && (d = iu(c))) : l = !1;
794
794
  }
795
795
  l && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), Xe(t, r, d);
796
796
  }
797
797
  function Lo(t, e, r, n, o) {
798
798
  t !== e && Vu(e, function(a, s) {
799
- if (o || (o = new nt()), wt(a))
799
+ if (o || (o = new nt()), Et(a))
800
800
  Gu(t, e, s, r, Lo, n, o);
801
801
  else {
802
802
  var i = n ? n(Ze(t, s), a, s + "", t, e, o) : void 0;
803
803
  i === void 0 && (i = a), Xe(t, s, i);
804
804
  }
805
- }, wo);
805
+ }, Eo);
806
806
  }
807
807
  function ku(t, e) {
808
808
  return Do(t, e);
@@ -829,7 +829,7 @@ ${e.keyListVar}.forEach(function (key) {
829
829
  });
830
830
  });
831
831
  `;
832
- }, Nm = function(t) {
832
+ }, Nv = function(t) {
833
833
  return !(!t || typeof t != "function" || !t.prototype);
834
834
  };
835
835
  function zu(t) {
@@ -888,7 +888,7 @@ const At = (t, e) => {
888
888
  var __extraParams = $$$__args__$$$.pop();
889
889
  var __$$storeManager__ = __extraParams.storeManager;
890
890
  var $ALL_NODE_IDS = Array.from(__$$storeManager__.storeMap.keys().filter(Boolean));;
891
- var $RESPONSE = __extraParams.$$context;
891
+ var $RESPONSE = __extraParams.$$response;;
892
892
  var $CTX = __extraParams.$$context;
893
893
  var $$context = $CTX;
894
894
  var $PARAMS = $$context.params || {};
@@ -948,12 +948,12 @@ ${bn("$U_STATE", {
948
948
  let a = o.split("-");
949
949
  a.length >= 2 && (a = a.map((s, i) => i !== 0 ? Fc(s) : s)), e[a.join("")] = n;
950
950
  }), e;
951
- }, xm = (t) => {
951
+ }, xv = (t) => {
952
952
  let e = "";
953
953
  return Object.keys(t || {}).forEach((r) => {
954
954
  e += `${r}:${t[r]};`;
955
955
  }), e;
956
- }, Am = (t, e) => {
956
+ }, Av = (t, e) => {
957
957
  const r = {};
958
958
  return t.forEach((n) => {
959
959
  if (n.globalName) {
@@ -961,7 +961,7 @@ ${bn("$U_STATE", {
961
961
  o && (r[n.globalName] = o, o.__esModule && o.default && (r[n.globalName] = o.default));
962
962
  }
963
963
  }), r;
964
- }, Tm = (t, e = 1) => {
964
+ }, Tv = (t, e = 1) => {
965
965
  let r = 0, n = t, o = {}, a = {};
966
966
  for (; r < e; )
967
967
  Object.keys(n).forEach((s) => {
@@ -982,7 +982,7 @@ ${bn("$U_STATE", {
982
982
  return e.forEach((n) => {
983
983
  t[n.name] && (r[n.name] = t[n.name]);
984
984
  }), r;
985
- }, Rm = (t, e) => Vo(t, e), Pm = (t, e) => Vo(t, e), _n = (t) => {
985
+ }, Rv = (t, e) => Vo(t, e), Pv = (t, e) => Vo(t, e), _n = (t) => {
986
986
  var r;
987
987
  return ((r = t.value.css) == null ? void 0 : r.class) || `c_${t.id}`;
988
988
  }, Qu = (t, e) => {
@@ -1013,7 +1013,7 @@ ${bn("$U_STATE", {
1013
1013
  }, Xu = (t) => t ? On(t) : On;
1014
1014
  class Zu {
1015
1015
  constructor() {
1016
- E(this, "storeMap", /* @__PURE__ */ new Map());
1016
+ w(this, "storeMap", /* @__PURE__ */ new Map());
1017
1017
  }
1018
1018
  addStore(e, r) {
1019
1019
  const n = Xu(r);
@@ -1064,7 +1064,7 @@ class Zu {
1064
1064
  }
1065
1065
  class tl {
1066
1066
  constructor() {
1067
- E(this, "varSpace", /* @__PURE__ */ new Map());
1067
+ w(this, "varSpace", /* @__PURE__ */ new Map());
1068
1068
  }
1069
1069
  get(e) {
1070
1070
  return this.varSpace.get(e);
@@ -1087,7 +1087,7 @@ class tl {
1087
1087
  }
1088
1088
  class Uo {
1089
1089
  constructor() {
1090
- E(this, "refMap", /* @__PURE__ */ new Map());
1090
+ w(this, "refMap", /* @__PURE__ */ new Map());
1091
1091
  }
1092
1092
  get(e) {
1093
1093
  return this.refMap.get(e);
@@ -1117,9 +1117,9 @@ var il = Object.prototype, cl = il.toString;
1117
1117
  function ul(t) {
1118
1118
  return cl.call(t);
1119
1119
  }
1120
- var ll = "[object Null]", fl = "[object Undefined]", wn = J ? J.toStringTag : void 0;
1120
+ var ll = "[object Null]", fl = "[object Undefined]", En = J ? J.toStringTag : void 0;
1121
1121
  function jt(t) {
1122
- return t == null ? t === void 0 ? fl : ll : wn && wn in Object(t) ? sl(t) : ul(t);
1122
+ return t == null ? t === void 0 ? fl : ll : En && En in Object(t) ? sl(t) : ul(t);
1123
1123
  }
1124
1124
  function Y(t) {
1125
1125
  return t != null && typeof t == "object";
@@ -1133,7 +1133,7 @@ function br(t, e) {
1133
1133
  o[r] = e(t[r], r, t);
1134
1134
  return o;
1135
1135
  }
1136
- var L = Array.isArray, En = J ? J.prototype : void 0, Cn = En ? En.toString : void 0;
1136
+ var L = Array.isArray, wn = J ? J.prototype : void 0, Cn = wn ? wn.toString : void 0;
1137
1137
  function ko(t) {
1138
1138
  if (typeof t == "string")
1139
1139
  return t;
@@ -1151,18 +1151,18 @@ function Q(t) {
1151
1151
  function _r(t) {
1152
1152
  return t;
1153
1153
  }
1154
- var pl = "[object AsyncFunction]", hl = "[object Function]", gl = "[object GeneratorFunction]", ml = "[object Proxy]";
1154
+ var pl = "[object AsyncFunction]", hl = "[object Function]", gl = "[object GeneratorFunction]", vl = "[object Proxy]";
1155
1155
  function Sr(t) {
1156
1156
  if (!Q(t))
1157
1157
  return !1;
1158
1158
  var e = jt(t);
1159
- return e == hl || e == gl || e == pl || e == ml;
1159
+ return e == hl || e == gl || e == pl || e == vl;
1160
1160
  }
1161
1161
  var Le = Z["__core-js_shared__"], $n = function() {
1162
1162
  var t = /[^.]+$/.exec(Le && Le.keys && Le.keys.IE_PROTO || "");
1163
1163
  return t ? "Symbol(src)_1." + t : "";
1164
1164
  }();
1165
- function vl(t) {
1165
+ function ml(t) {
1166
1166
  return !!$n && $n in t;
1167
1167
  }
1168
1168
  var yl = Function.prototype, bl = yl.toString;
@@ -1179,11 +1179,11 @@ function Nt(t) {
1179
1179
  }
1180
1180
  return "";
1181
1181
  }
1182
- var _l = /[\\^$.*+?()[\]{}|]/g, Sl = /^\[object .+?Constructor\]$/, Ol = Function.prototype, wl = Object.prototype, El = Ol.toString, Cl = wl.hasOwnProperty, $l = RegExp(
1183
- "^" + El.call(Cl).replace(_l, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1182
+ var _l = /[\\^$.*+?()[\]{}|]/g, Sl = /^\[object .+?Constructor\]$/, Ol = Function.prototype, El = Object.prototype, wl = Ol.toString, Cl = El.hasOwnProperty, $l = RegExp(
1183
+ "^" + wl.call(Cl).replace(_l, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1184
1184
  );
1185
1185
  function jl(t) {
1186
- if (!Q(t) || vl(t))
1186
+ if (!Q(t) || ml(t))
1187
1187
  return !1;
1188
1188
  var e = Sr(t) ? $l : Sl;
1189
1189
  return e.test(Nt(t));
@@ -1305,7 +1305,7 @@ function ce(t, e) {
1305
1305
  return t === e || t !== t && e !== e;
1306
1306
  }
1307
1307
  var Jl = Object.prototype, ql = Jl.hasOwnProperty;
1308
- function wr(t, e, r) {
1308
+ function Er(t, e, r) {
1309
1309
  var n = t[e];
1310
1310
  (!(ql.call(t, e) && ce(n, r)) || r === void 0 && !(e in t)) && Or(t, e, r);
1311
1311
  }
@@ -1314,7 +1314,7 @@ function Vt(t, e, r, n) {
1314
1314
  r || (r = {});
1315
1315
  for (var a = -1, s = e.length; ++a < s; ) {
1316
1316
  var i = e[a], c = void 0;
1317
- c === void 0 && (c = t[i]), o ? Or(r, i, c) : wr(r, i, c);
1317
+ c === void 0 && (c = t[i]), o ? Or(r, i, c) : Er(r, i, c);
1318
1318
  }
1319
1319
  return r;
1320
1320
  }
@@ -1333,11 +1333,11 @@ function qo(t, e) {
1333
1333
  return zo(Jo(t, e, _r), t + "");
1334
1334
  }
1335
1335
  var Wl = 9007199254740991;
1336
- function Er(t) {
1336
+ function wr(t) {
1337
1337
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Wl;
1338
1338
  }
1339
1339
  function je(t) {
1340
- return t != null && Er(t.length) && !Sr(t);
1340
+ return t != null && wr(t.length) && !Sr(t);
1341
1341
  }
1342
1342
  function Kl(t, e, r) {
1343
1343
  if (!Q(r))
@@ -1377,11 +1377,11 @@ var Wo = Object.prototype, tf = Wo.hasOwnProperty, ef = Wo.propertyIsEnumerable,
1377
1377
  function rf() {
1378
1378
  return !1;
1379
1379
  }
1380
- var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, An = Ko && typeof module == "object" && module && !module.nodeType && module, nf = An && An.exports === Ko, Tn = nf ? Z.Buffer : void 0, of = Tn ? Tn.isBuffer : void 0, te = of || rf, af = "[object Arguments]", sf = "[object Array]", cf = "[object Boolean]", uf = "[object Date]", lf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", mf = "[object Set]", vf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", _f = "[object DataView]", Sf = "[object Float32Array]", Of = "[object Float64Array]", wf = "[object Int8Array]", Ef = "[object Int16Array]", Cf = "[object Int32Array]", $f = "[object Uint8Array]", jf = "[object Uint8ClampedArray]", Nf = "[object Uint16Array]", xf = "[object Uint32Array]", M = {};
1381
- M[Sf] = M[Of] = M[wf] = M[Ef] = M[Cf] = M[$f] = M[jf] = M[Nf] = M[xf] = !0;
1382
- M[af] = M[sf] = M[bf] = M[cf] = M[_f] = M[uf] = M[lf] = M[ff] = M[df] = M[pf] = M[hf] = M[gf] = M[mf] = M[vf] = M[yf] = !1;
1380
+ var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, An = Ko && typeof module == "object" && module && !module.nodeType && module, nf = An && An.exports === Ko, Tn = nf ? Z.Buffer : void 0, of = Tn ? Tn.isBuffer : void 0, te = of || rf, af = "[object Arguments]", sf = "[object Array]", cf = "[object Boolean]", uf = "[object Date]", lf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", vf = "[object Set]", mf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", _f = "[object DataView]", Sf = "[object Float32Array]", Of = "[object Float64Array]", Ef = "[object Int8Array]", wf = "[object Int16Array]", Cf = "[object Int32Array]", $f = "[object Uint8Array]", jf = "[object Uint8ClampedArray]", Nf = "[object Uint16Array]", xf = "[object Uint32Array]", M = {};
1381
+ M[Sf] = M[Of] = M[Ef] = M[wf] = M[Cf] = M[$f] = M[jf] = M[Nf] = M[xf] = !0;
1382
+ M[af] = M[sf] = M[bf] = M[cf] = M[_f] = M[uf] = M[lf] = M[ff] = M[df] = M[pf] = M[hf] = M[gf] = M[vf] = M[mf] = M[yf] = !1;
1383
1383
  function Af(t) {
1384
- return Y(t) && Er(t.length) && !!M[jt(t)];
1384
+ return Y(t) && wr(t.length) && !!M[jt(t)];
1385
1385
  }
1386
1386
  function $r(t) {
1387
1387
  return function(e) {
@@ -1584,15 +1584,15 @@ function xr(t, e) {
1584
1584
  }
1585
1585
  xr.Cache = it;
1586
1586
  var gd = 500;
1587
- function md(t) {
1587
+ function vd(t) {
1588
1588
  var e = xr(t, function(n) {
1589
1589
  return r.size === gd && r.clear(), n;
1590
1590
  }), r = e.cache;
1591
1591
  return e;
1592
1592
  }
1593
- var vd = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, yd = /\\(\\)?/g, bd = md(function(t) {
1593
+ var md = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, yd = /\\(\\)?/g, bd = vd(function(t) {
1594
1594
  var e = [];
1595
- return t.charCodeAt(0) === 46 && e.push(""), t.replace(vd, function(r, n, o, a) {
1595
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace(md, function(r, n, o, a) {
1596
1596
  e.push(o ? a.replace(yd, "$1") : n || r);
1597
1597
  }), e;
1598
1598
  });
@@ -1639,12 +1639,12 @@ function Od(t) {
1639
1639
  var e = t == null ? 0 : t.length;
1640
1640
  return e ? ta(t) : [];
1641
1641
  }
1642
- function wd(t) {
1642
+ function Ed(t) {
1643
1643
  return zo(Jo(t, void 0, Od), t + "");
1644
1644
  }
1645
- var Tr = Xo(Object.getPrototypeOf, Object), Ed = "[object Object]", Cd = Function.prototype, $d = Object.prototype, ea = Cd.toString, jd = $d.hasOwnProperty, Nd = ea.call(Object);
1645
+ var Tr = Xo(Object.getPrototypeOf, Object), wd = "[object Object]", Cd = Function.prototype, $d = Object.prototype, ea = Cd.toString, jd = $d.hasOwnProperty, Nd = ea.call(Object);
1646
1646
  function U(t) {
1647
- if (!Y(t) || jt(t) != Ed)
1647
+ if (!Y(t) || jt(t) != wd)
1648
1648
  return !1;
1649
1649
  var e = Tr(t);
1650
1650
  if (e === null)
@@ -1786,8 +1786,8 @@ function ia(t, e) {
1786
1786
  var r = e ? Mr(t.buffer) : t.buffer;
1787
1787
  return new t.constructor(r, t.byteOffset, t.length);
1788
1788
  }
1789
- var op = "[object Boolean]", ap = "[object Date]", sp = "[object Map]", ip = "[object Number]", cp = "[object RegExp]", up = "[object Set]", lp = "[object String]", fp = "[object Symbol]", dp = "[object ArrayBuffer]", pp = "[object DataView]", hp = "[object Float32Array]", gp = "[object Float64Array]", mp = "[object Int8Array]", vp = "[object Int16Array]", yp = "[object Int32Array]", bp = "[object Uint8Array]", _p = "[object Uint8ClampedArray]", Sp = "[object Uint16Array]", Op = "[object Uint32Array]";
1790
- function wp(t, e, r) {
1789
+ var op = "[object Boolean]", ap = "[object Date]", sp = "[object Map]", ip = "[object Number]", cp = "[object RegExp]", up = "[object Set]", lp = "[object String]", fp = "[object Symbol]", dp = "[object ArrayBuffer]", pp = "[object DataView]", hp = "[object Float32Array]", gp = "[object Float64Array]", vp = "[object Int8Array]", mp = "[object Int16Array]", yp = "[object Int32Array]", bp = "[object Uint8Array]", _p = "[object Uint8ClampedArray]", Sp = "[object Uint16Array]", Op = "[object Uint32Array]";
1790
+ function Ep(t, e, r) {
1791
1791
  var n = t.constructor;
1792
1792
  switch (e) {
1793
1793
  case dp:
@@ -1799,8 +1799,8 @@ function wp(t, e, r) {
1799
1799
  return tp(t, r);
1800
1800
  case hp:
1801
1801
  case gp:
1802
- case mp:
1803
1802
  case vp:
1803
+ case mp:
1804
1804
  case yp:
1805
1805
  case bp:
1806
1806
  case _p:
@@ -1823,9 +1823,9 @@ function wp(t, e, r) {
1823
1823
  function ca(t) {
1824
1824
  return typeof t.constructor == "function" && !Cr(t) ? xl(Tr(t)) : {};
1825
1825
  }
1826
- var Ep = "[object Map]";
1826
+ var wp = "[object Map]";
1827
1827
  function Cp(t) {
1828
- return Y(t) && q(t) == Ep;
1828
+ return Y(t) && q(t) == wp;
1829
1829
  }
1830
1830
  var zn = Pt && Pt.isMap, $p = zn ? $r(zn) : Cp, jp = "[object Set]";
1831
1831
  function Np(t) {
@@ -1854,7 +1854,7 @@ function Kt(t, e, r, n, o, a) {
1854
1854
  } else {
1855
1855
  if (!R[l])
1856
1856
  return o ? t : {};
1857
- s = wp(t, l, i);
1857
+ s = Ep(t, l, i);
1858
1858
  }
1859
1859
  }
1860
1860
  a || (a = new W());
@@ -1863,12 +1863,12 @@ function Kt(t, e, r, n, o, a) {
1863
1863
  return h;
1864
1864
  a.set(t, s), xp(t) ? t.forEach(function(p) {
1865
1865
  s.add(Kt(p, e, r, p, t, a));
1866
- }) : $p(t) && t.forEach(function(p, m) {
1867
- s.set(m, Kt(p, e, r, m, t, a));
1866
+ }) : $p(t) && t.forEach(function(p, v) {
1867
+ s.set(v, Kt(p, e, r, v, t, a));
1868
1868
  });
1869
1869
  var g = u ? c ? Pr : er : c ? ue : Ne, b = d ? void 0 : g(t);
1870
- return Fl(b || t, function(p, m) {
1871
- b && (m = p, p = t[m]), wr(s, m, Kt(p, e, r, m, t, a));
1870
+ return Fl(b || t, function(p, v) {
1871
+ b && (v = p, p = t[v]), Er(s, v, Kt(p, e, r, v, t, a));
1872
1872
  }), s;
1873
1873
  }
1874
1874
  var rh = 1, nh = 4;
@@ -1918,9 +1918,9 @@ function ha(t, e, r, n, o, a) {
1918
1918
  break;
1919
1919
  }
1920
1920
  if (h) {
1921
- if (!ih(e, function(m, v) {
1922
- if (!pa(h, v) && (g === m || o(g, m, r, n, a)))
1923
- return h.push(v);
1921
+ if (!ih(e, function(v, m) {
1922
+ if (!pa(h, m) && (g === v || o(g, v, r, n, a)))
1923
+ return h.push(m);
1924
1924
  })) {
1925
1925
  f = !1;
1926
1926
  break;
@@ -1944,10 +1944,10 @@ function Ir(t) {
1944
1944
  r[++e] = n;
1945
1945
  }), r;
1946
1946
  }
1947
- var fh = 1, dh = 2, ph = "[object Boolean]", hh = "[object Date]", gh = "[object Error]", mh = "[object Map]", vh = "[object Number]", yh = "[object RegExp]", bh = "[object Set]", _h = "[object String]", Sh = "[object Symbol]", Oh = "[object ArrayBuffer]", wh = "[object DataView]", qn = J ? J.prototype : void 0, Ve = qn ? qn.valueOf : void 0;
1948
- function Eh(t, e, r, n, o, a, s) {
1947
+ var fh = 1, dh = 2, ph = "[object Boolean]", hh = "[object Date]", gh = "[object Error]", vh = "[object Map]", mh = "[object Number]", yh = "[object RegExp]", bh = "[object Set]", _h = "[object String]", Sh = "[object Symbol]", Oh = "[object ArrayBuffer]", Eh = "[object DataView]", qn = J ? J.prototype : void 0, Ve = qn ? qn.valueOf : void 0;
1948
+ function wh(t, e, r, n, o, a, s) {
1949
1949
  switch (r) {
1950
- case wh:
1950
+ case Eh:
1951
1951
  if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
1952
1952
  return !1;
1953
1953
  t = t.buffer, e = e.buffer;
@@ -1955,14 +1955,14 @@ function Eh(t, e, r, n, o, a, s) {
1955
1955
  return !(t.byteLength != e.byteLength || !a(new _e(t), new _e(e)));
1956
1956
  case ph:
1957
1957
  case hh:
1958
- case vh:
1958
+ case mh:
1959
1959
  return ce(+t, +e);
1960
1960
  case gh:
1961
1961
  return t.name == e.name && t.message == e.message;
1962
1962
  case yh:
1963
1963
  case _h:
1964
1964
  return t == e + "";
1965
- case mh:
1965
+ case vh:
1966
1966
  var i = lh;
1967
1967
  case bh:
1968
1968
  var c = n & fh;
@@ -1997,10 +1997,10 @@ function Nh(t, e, r, n, o, a) {
1997
1997
  a.set(t, e), a.set(e, t);
1998
1998
  for (var p = s; ++l < c; ) {
1999
1999
  f = i[l];
2000
- var m = t[f], v = e[f];
2000
+ var v = t[f], m = e[f];
2001
2001
  if (n)
2002
- var y = s ? n(v, m, f, e, t, a) : n(m, v, f, t, e, a);
2003
- if (!(y === void 0 ? m === v || o(m, v, r, n, a) : y)) {
2002
+ var y = s ? n(m, v, f, e, t, a) : n(v, m, f, t, e, a);
2003
+ if (!(y === void 0 ? v === m || o(v, m, r, n, a) : y)) {
2004
2004
  b = !1;
2005
2005
  break;
2006
2006
  }
@@ -2023,7 +2023,7 @@ function Th(t, e, r, n, o, a) {
2023
2023
  s = !0, d = !1;
2024
2024
  }
2025
2025
  if (f && !d)
2026
- return a || (a = new W()), s || jr(t) ? ha(t, e, r, n, o, a) : Eh(t, e, c, r, n, o, a);
2026
+ return a || (a = new W()), s || jr(t) ? ha(t, e, r, n, o, a) : wh(t, e, c, r, n, o, a);
2027
2027
  if (!(r & xh)) {
2028
2028
  var h = d && Qn.call(t, "__wrapped__"), g = l && Qn.call(e, "__wrapped__");
2029
2029
  if (h || g) {
@@ -2070,14 +2070,14 @@ function Ih(t) {
2070
2070
  }
2071
2071
  return e;
2072
2072
  }
2073
- function ma(t, e) {
2073
+ function va(t, e) {
2074
2074
  return function(r) {
2075
2075
  return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r));
2076
2076
  };
2077
2077
  }
2078
2078
  function Dh(t) {
2079
2079
  var e = Ih(t);
2080
- return e.length == 1 && e[0][2] ? ma(e[0][0], e[0][1]) : function(r) {
2080
+ return e.length == 1 && e[0][2] ? va(e[0][0], e[0][1]) : function(r) {
2081
2081
  return r === t || Mh(r, t, e);
2082
2082
  };
2083
2083
  }
@@ -2092,14 +2092,14 @@ function Fh(t, e, r) {
2092
2092
  break;
2093
2093
  t = t[s];
2094
2094
  }
2095
- return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && Er(o) && $e(s, o) && (L(t) || Zt(t)));
2095
+ return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && wr(o) && $e(s, o) && (L(t) || Zt(t)));
2096
2096
  }
2097
2097
  function Vh(t, e) {
2098
2098
  return t != null && Fh(t, e, Lh);
2099
2099
  }
2100
2100
  var Uh = 1, Bh = 2;
2101
2101
  function Gh(t, e) {
2102
- return Nr(t) && ga(e) ? ma(Bt(t), e) : function(r) {
2102
+ return Nr(t) && ga(e) ? va(Bt(t), e) : function(r) {
2103
2103
  var n = Zo(r, t);
2104
2104
  return n === void 0 && n === e ? Vh(r, t) : Dr(e, n, Uh | Bh);
2105
2105
  };
@@ -2157,10 +2157,10 @@ function Kh(t, e, r, n, o, a, s) {
2157
2157
  }
2158
2158
  l && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), or(t, r, d);
2159
2159
  }
2160
- function va(t, e, r, n, o) {
2160
+ function ma(t, e, r, n, o) {
2161
2161
  t !== e && qh(e, function(a, s) {
2162
2162
  if (o || (o = new W()), Q(a))
2163
- Kh(t, e, s, r, va, n, o);
2163
+ Kh(t, e, s, r, ma, n, o);
2164
2164
  else {
2165
2165
  var i = n ? n(sr(t, s), a, s + "", t, e, o) : void 0;
2166
2166
  i === void 0 && (i = a), or(t, s, i);
@@ -2175,7 +2175,7 @@ function Qh(t, e) {
2175
2175
  return e.length < 2 ? t : Te(t, xd(e, 0, -1));
2176
2176
  }
2177
2177
  var ba = Ql(function(t, e, r) {
2178
- va(t, e, r);
2178
+ ma(t, e, r);
2179
2179
  }), Yh = "Expected a function";
2180
2180
  function Xh(t) {
2181
2181
  if (typeof t != "function")
@@ -2201,7 +2201,7 @@ function Zh(t, e) {
2201
2201
  function tg(t) {
2202
2202
  return U(t) ? void 0 : t;
2203
2203
  }
2204
- var eg = 1, rg = 2, ng = 4, _a = wd(function(t, e) {
2204
+ var eg = 1, rg = 2, ng = 4, _a = Ed(function(t, e) {
2205
2205
  var r = {};
2206
2206
  if (t == null)
2207
2207
  return r;
@@ -2225,7 +2225,7 @@ function og(t, e, r, n) {
2225
2225
  var d = i[c];
2226
2226
  u = void 0, u === void 0 && (u = Q(d) ? d : $e(e[o + 1]) ? [] : {});
2227
2227
  }
2228
- wr(i, c, u), i = i[c];
2228
+ Er(i, c, u), i = i[c];
2229
2229
  }
2230
2230
  return t;
2231
2231
  }
@@ -2400,7 +2400,7 @@ class tt {
2400
2400
  * Create a value with the struct's coercion logic, then validate it.
2401
2401
  */
2402
2402
  create(e) {
2403
- return mg(e, this);
2403
+ return vg(e, this);
2404
2404
  }
2405
2405
  /**
2406
2406
  * Check if a value passes the struct's validation.
@@ -2413,7 +2413,7 @@ class tt {
2413
2413
  * properties defined by the struct's schema.
2414
2414
  */
2415
2415
  mask(e) {
2416
- return vg(e, this);
2416
+ return mg(e, this);
2417
2417
  }
2418
2418
  /**
2419
2419
  * Validate a value with the struct's validation logic, returning a tuple
@@ -2432,7 +2432,7 @@ function Oa(t, e) {
2432
2432
  if (r[0])
2433
2433
  throw r[0];
2434
2434
  }
2435
- function mg(t, e) {
2435
+ function vg(t, e) {
2436
2436
  const r = Gt(t, e, {
2437
2437
  coerce: !0
2438
2438
  });
@@ -2440,7 +2440,7 @@ function mg(t, e) {
2440
2440
  throw r[0];
2441
2441
  return r[1];
2442
2442
  }
2443
- function vg(t, e) {
2443
+ function mg(t, e) {
2444
2444
  const r = Gt(t, e, {
2445
2445
  coerce: !0,
2446
2446
  mask: !0
@@ -2491,7 +2491,7 @@ function Mt(t) {
2491
2491
  }
2492
2492
  });
2493
2493
  }
2494
- function wa(t, e) {
2494
+ function Ea(t, e) {
2495
2495
  const {
2496
2496
  schema: r
2497
2497
  } = t, n = {
@@ -2541,7 +2541,7 @@ function ir(t) {
2541
2541
  }
2542
2542
  });
2543
2543
  }
2544
- function Ea() {
2544
+ function wa() {
2545
2545
  return pt("func", (t) => typeof t == "function" || `Expected a function, but received: ${H(t)}`);
2546
2546
  }
2547
2547
  function G(t) {
@@ -2607,7 +2607,7 @@ function Qt(t, e) {
2607
2607
  }
2608
2608
  });
2609
2609
  }
2610
- function w() {
2610
+ function E() {
2611
2611
  return pt("string", (t) => typeof t == "string" || `Expected a string, but received: ${H(t)}`);
2612
2612
  }
2613
2613
  function $a(t) {
@@ -2656,35 +2656,35 @@ function _g() {
2656
2656
  return pt("unknown", () => !0);
2657
2657
  }
2658
2658
  const Ur = A({
2659
- package: w(),
2660
- version: w(),
2661
- name: w(),
2662
- exportName: O(w()),
2659
+ package: E(),
2660
+ version: E(),
2661
+ name: E(),
2662
+ exportName: O(E()),
2663
2663
  destructuring: O(St()),
2664
- subName: O(w()),
2665
- main: O(w()),
2666
- cssPaths: O(I(w()))
2664
+ subName: O(E()),
2665
+ main: O(E()),
2666
+ cssPaths: O(I(E()))
2667
2667
  }), Sg = I(Ur);
2668
2668
  var V = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(V || {}), Br = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Br || {}), cr = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(cr || {});
2669
- const Og = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Qt(w(), Gr)), !0)), Gr = k([
2670
- w(),
2669
+ const Og = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Qt(E(), Gr)), !0)), Gr = k([
2670
+ E(),
2671
2671
  Ca(),
2672
2672
  St(),
2673
2673
  A({
2674
2674
  type: G(V.SLOT),
2675
2675
  renderType: ir([cr.FUNC, cr.COMP]),
2676
2676
  // if renderType is Func, params will be useful
2677
- params: O(I(w())),
2677
+ params: O(I(E())),
2678
2678
  // here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
2679
2679
  value: Mt(() => k([It, I(It)]))
2680
2680
  }),
2681
2681
  A({
2682
2682
  type: G(V.EXPRESSION),
2683
- value: w()
2683
+ value: E()
2684
2684
  }),
2685
2685
  A({
2686
2686
  type: G(V.FUNCTION),
2687
- value: w()
2687
+ value: E()
2688
2688
  }),
2689
2689
  A({
2690
2690
  type: G(V.ACTION),
@@ -2699,60 +2699,60 @@ const Og = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
2699
2699
  var ja = /* @__PURE__ */ ((t) => (t.COMPONENTS = "COMPONENTS", t))(ja || {});
2700
2700
  const Xn = A({
2701
2701
  type: G(V.EXPRESSION),
2702
- value: w()
2702
+ value: E()
2703
2703
  }), It = A({
2704
- id: O(w()),
2705
- title: O(w()),
2706
- componentName: w(),
2707
- props: O(Qt(w(), Gr)),
2708
- nodeName: O(w()),
2709
- state: O(Qt(w(), T())),
2710
- children: Mt(() => O(I(k([w(), It])))),
2704
+ id: O(E()),
2705
+ title: O(E()),
2706
+ componentName: E(),
2707
+ props: O(Qt(E(), Gr)),
2708
+ nodeName: O(E()),
2709
+ state: O(Qt(E(), T())),
2710
+ children: Mt(() => O(I(k([E(), It])))),
2711
2711
  eventListener: O(I(T())),
2712
2712
  configure: O(T()),
2713
2713
  css: O(T()),
2714
2714
  style: O(T()),
2715
2715
  classNames: O(I(T())),
2716
- refId: O(w()),
2716
+ refId: O(E()),
2717
2717
  extra: O(Qt(T(), T())),
2718
2718
  condition: O(k([St(), Xn])),
2719
2719
  loop: O(
2720
2720
  A({
2721
2721
  open: St(),
2722
2722
  data: k([I(T()), Xn]),
2723
- args: O(I(w())),
2724
- forName: O(w()),
2725
- forIndex: O(w()),
2723
+ args: O(I(E())),
2724
+ forName: O(E()),
2725
+ forIndex: O(E()),
2726
2726
  key: O(T()),
2727
- name: O(w())
2727
+ name: O(E())
2728
2728
  })
2729
2729
  ),
2730
2730
  injectEnvList: O(I(T())),
2731
2731
  methods: O(I(T()))
2732
2732
  }), Se = k([
2733
- w(),
2733
+ E(),
2734
2734
  A({
2735
- label: w(),
2736
- tip: O(w())
2735
+ label: E(),
2736
+ tip: O(E())
2737
2737
  })
2738
- ]), wg = A({
2738
+ ]), Eg = A({
2739
2739
  type: G(
2740
2740
  "shape"
2741
2741
  /* SHAPE */
2742
2742
  ),
2743
2743
  value: I(
2744
2744
  A({
2745
- name: w(),
2745
+ name: E(),
2746
2746
  title: Se,
2747
2747
  valueType: Mt(() => Re)
2748
2748
  })
2749
2749
  )
2750
- }), Eg = A({
2750
+ }), wg = A({
2751
2751
  type: G(
2752
2752
  "enums"
2753
2753
  /* ENUMS */
2754
2754
  ),
2755
- value: I(w())
2755
+ value: I(E())
2756
2756
  });
2757
2757
  A({
2758
2758
  type: G(
@@ -2782,13 +2782,13 @@ const Cg = A({
2782
2782
  "function"
2783
2783
  /* FUNCTION */
2784
2784
  ]),
2785
- wg,
2786
2785
  Eg,
2786
+ wg,
2787
2787
  Cg
2788
2788
  ]), $g = k([
2789
- w(),
2789
+ E(),
2790
2790
  A({
2791
- componentName: w(),
2791
+ componentName: E(),
2792
2792
  props: O(T()),
2793
2793
  /** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
2794
2794
  initialValue: O(T()),
@@ -2796,60 +2796,60 @@ const Cg = A({
2796
2796
  hiddenLabel: O(St())
2797
2797
  })
2798
2798
  ]), Ue = A({
2799
- name: w(),
2799
+ name: E(),
2800
2800
  title: Se,
2801
2801
  // 描述 name 对应值的类型
2802
2802
  valueType: Re,
2803
- description: O(w()),
2803
+ description: O(E()),
2804
2804
  defaultValue: T(),
2805
2805
  //用于产生 valueType 类型的值
2806
2806
  setters: O(I($g)),
2807
- condition: O(Ea())
2807
+ condition: O(wa())
2808
2808
  });
2809
- k([w(), Ea()]);
2809
+ k([E(), wa()]);
2810
2810
  var ur = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.GROUP = "group", t))(ur || {});
2811
2811
  k([
2812
- w(),
2812
+ E(),
2813
2813
  A({
2814
- event: w(),
2815
- name: O(w()),
2816
- describe: O(w()),
2814
+ event: E(),
2815
+ name: O(E()),
2816
+ describe: O(E()),
2817
2817
  params: O(
2818
2818
  I(
2819
2819
  A({
2820
- name: w(),
2821
- description: w(),
2822
- example: w()
2820
+ name: E(),
2821
+ description: E(),
2822
+ example: E()
2823
2823
  })
2824
2824
  )
2825
2825
  ),
2826
- template: O(w())
2826
+ template: O(E())
2827
2827
  })
2828
2828
  ]);
2829
2829
  const jg = A({
2830
- id: O(w()),
2831
- title: w(),
2832
- snapshot: k([w(), T()]),
2833
- snapshotText: O(w()),
2834
- description: O(w()),
2830
+ id: O(E()),
2831
+ title: E(),
2832
+ snapshot: k([E(), T()]),
2833
+ snapshotText: O(E()),
2834
+ description: O(E()),
2835
2835
  // 组件分类,用于搜索
2836
- tags: O(I(w())),
2836
+ tags: O(I(E())),
2837
2837
  // 分 tab 面板
2838
- groupName: O(w()),
2838
+ groupName: O(E()),
2839
2839
  // 分类
2840
- category: O(w()),
2841
- schema: Vr(wa(It, ["id"]), A({ componentName: O(w()) }))
2840
+ category: O(E()),
2841
+ schema: Vr(Ea(It, ["id"]), A({ componentName: O(E()) }))
2842
2842
  }), Ng = A({
2843
- componentName: w(),
2844
- title: w(),
2845
- screenshot: O(w()),
2846
- icon: O(w()),
2843
+ componentName: E(),
2844
+ title: E(),
2845
+ screenshot: O(E()),
2846
+ icon: O(E()),
2847
2847
  // 组件分类,用于搜索
2848
- tags: O(I(w())),
2848
+ tags: O(I(E())),
2849
2849
  // 分 tab 面板
2850
- groupName: O(w()),
2850
+ groupName: O(E()),
2851
2851
  // 分类
2852
- category: O(w()),
2852
+ category: O(E()),
2853
2853
  // 排序
2854
2854
  priority: O(Ca()),
2855
2855
  npm: O(Ur),
@@ -2883,16 +2883,16 @@ const jg = A({
2883
2883
  k([
2884
2884
  St(),
2885
2885
  A({
2886
- placeholder: w(),
2887
- width: w(),
2888
- height: w()
2886
+ placeholder: E(),
2887
+ width: E(),
2888
+ height: E()
2889
2889
  })
2890
2890
  ])
2891
2891
  ),
2892
2892
  disableEditorDragDom: O(T()),
2893
2893
  // 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
2894
2894
  isLayout: O(St()),
2895
- rootSelector: O(w()),
2895
+ rootSelector: O(E()),
2896
2896
  // selectionToolBarView: optional(func()),
2897
2897
  advanceCustom: O(T()),
2898
2898
  // 扩展配置
@@ -2929,9 +2929,9 @@ const jg = A({
2929
2929
  var rt = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(rt || {});
2930
2930
  const Ag = A({
2931
2931
  type: G(V.FUNCTION),
2932
- value: w()
2932
+ value: E()
2933
2933
  }), Tg = Vr(
2934
- wa(It, ["componentName"]),
2934
+ Ea(It, ["componentName"]),
2935
2935
  A({
2936
2936
  componentName: G(
2937
2937
  "RootContainer"
@@ -3096,7 +3096,7 @@ const Mg = (t) => {
3096
3096
  n.props[a] = i;
3097
3097
  return;
3098
3098
  }
3099
- n.props[a] = new dt(a, i || "", {
3099
+ n.props[a] = new dt(a, i, {
3100
3100
  parent: e,
3101
3101
  materials: r
3102
3102
  });
@@ -3354,7 +3354,7 @@ class oe {
3354
3354
  });
3355
3355
  }
3356
3356
  }
3357
- const vt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, xa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Ig = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Dg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", dr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Lg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Hr = (t) => ig(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : !e);
3357
+ const mt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, xa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Ig = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Dg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", dr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Lg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Hr = (t) => ig(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : e == null);
3358
3358
  function Fg(t, e) {
3359
3359
  const r = [t];
3360
3360
  for (; r.length; ) {
@@ -3516,16 +3516,16 @@ class Lt {
3516
3516
  }
3517
3517
  }
3518
3518
  const Gg = A({
3519
- version: O(w()),
3520
- name: O(w()),
3521
- css: O(w()),
3519
+ version: O(E()),
3520
+ name: O(E()),
3521
+ css: O(E()),
3522
3522
  lifecycle: O(T()),
3523
3523
  props: O(T()),
3524
3524
  methods: O(I(Ag)),
3525
3525
  componentsMeta: I(
3526
3526
  Vr(
3527
3527
  A({
3528
- componentName: w()
3528
+ componentName: E()
3529
3529
  }),
3530
3530
  Ur
3531
3531
  )
@@ -3769,7 +3769,7 @@ function zg(t, e) {
3769
3769
  return yt(t.link, e);
3770
3770
  }
3771
3771
  const yt = (t, e) => function(...r) {
3772
- return vt(t) ? At(t.value, {
3772
+ return mt(t) ? At(t.value, {
3773
3773
  ...e.context,
3774
3774
  nodeContext: e.context,
3775
3775
  storeManager: e.storeManager,
@@ -3927,7 +3927,7 @@ const yt = (t, e) => function(...r) {
3927
3927
  } else
3928
3928
  return l(d).component;
3929
3929
  } else {
3930
- if (vt(c))
3930
+ if (mt(c))
3931
3931
  return At(c.value, {
3932
3932
  nodeContext: r,
3933
3933
  storeManager: e.storeManager,
@@ -4006,39 +4006,39 @@ const yt = (t, e) => function(...r) {
4006
4006
  class h extends x.Component {
4007
4007
  constructor(p) {
4008
4008
  super(p);
4009
- E(this, "_CONDITION", !0);
4010
- E(this, "_DESIGN_BOX", !1);
4011
- E(this, "_NODE_MODEL", e);
4012
- E(this, "_NODE_ID", e.id);
4013
- E(this, "UNIQUE_ID", `${e.id}_${et()}`);
4014
- E(this, "targetComponentRef");
4015
- E(this, "listenerHandler", []);
4016
- E(this, "storeState");
4009
+ w(this, "_CONDITION", !0);
4010
+ w(this, "_DESIGN_BOX", !1);
4011
+ w(this, "_NODE_MODEL", e);
4012
+ w(this, "_NODE_ID", e.id);
4013
+ w(this, "UNIQUE_ID", `${e.id}_${et()}`);
4014
+ w(this, "targetComponentRef");
4015
+ w(this, "listenerHandler", []);
4016
+ w(this, "storeState");
4017
4017
  /** 存储清理 store 的监听函数 */
4018
- E(this, "storeListenDisposeList", []);
4018
+ w(this, "storeListenDisposeList", []);
4019
4019
  /** save dom and media css */
4020
- E(this, "domHeader");
4021
- E(this, "mediaStyleDomMap", {});
4020
+ w(this, "domHeader");
4021
+ w(this, "mediaStyleDomMap", {});
4022
4022
  /** 存储当前节点的一些变量和方法,不具有响应性 */
4023
- E(this, "variableSpace");
4024
- E(this, "nodeName");
4025
- E(this, "updateState", (p) => {
4023
+ w(this, "variableSpace");
4024
+ w(this, "nodeName");
4025
+ w(this, "updateState", (p) => {
4026
4026
  e.value.componentName === rt.ROOT_CONTAINER ? this.setState(p) : this.storeState.setState(p);
4027
4027
  });
4028
- E(this, "getStyleDomById", (p) => {
4029
- const m = this.mediaStyleDomMap;
4030
- let v = m[p];
4031
- return v || (v = l.createElement("style"), m[p] = v), v.id = p, v;
4028
+ w(this, "getStyleDomById", (p) => {
4029
+ const v = this.mediaStyleDomMap;
4030
+ let m = v[p];
4031
+ return m || (m = l.createElement("style"), v[p] = m), m.id = p, m;
4032
4032
  });
4033
- E(this, "addMediaCSS", () => {
4034
- var v;
4033
+ w(this, "addMediaCSS", () => {
4034
+ var m;
4035
4035
  let p = this.domHeader;
4036
- if (p || (p = (v = l.getElementsByTagName("head")) == null ? void 0 : v[0], this.domHeader = p), !this.domHeader) {
4036
+ if (p || (p = (m = l.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader) {
4037
4037
  console.warn("not found header dom");
4038
4038
  return;
4039
4039
  }
4040
- const m = this._NODE_MODEL.value.css;
4041
- m && m.value.forEach((y) => {
4040
+ const v = this._NODE_MODEL.value.css;
4041
+ v && v.value.forEach((y) => {
4042
4042
  var j;
4043
4043
  const _ = `${this.UNIQUE_ID}_${y.state}`;
4044
4044
  let S = _n(this._NODE_MODEL);
@@ -4052,52 +4052,52 @@ const yt = (t, e) => function(...r) {
4052
4052
  });
4053
4053
  });
4054
4054
  });
4055
- E(this, "removeMediaCSS", () => {
4055
+ w(this, "removeMediaCSS", () => {
4056
4056
  const p = this.mediaStyleDomMap;
4057
- Object.keys(p).forEach((m) => {
4058
- var v;
4059
- (v = this.domHeader) == null || v.removeChild(p[m]);
4057
+ Object.keys(p).forEach((v) => {
4058
+ var m;
4059
+ (m = this.domHeader) == null || m.removeChild(p[v]);
4060
4060
  }), this.mediaStyleDomMap = {};
4061
4061
  });
4062
- E(this, "rebuildNode", () => {
4062
+ w(this, "rebuildNode", () => {
4063
4063
  this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
4064
4064
  });
4065
4065
  this.targetComponentRef = x.createRef(), this.listenerHandler = [], this.state = e.value.state || {};
4066
- let m = e.value.nodeName || e.id;
4067
- e.value.componentName === rt.ROOT_CONTAINER && (m = "globalState"), this.nodeName = m;
4068
- const v = n.getStore(m);
4069
- v ? (this.storeState = v, v.setState({
4066
+ let v = e.value.nodeName || e.id;
4067
+ e.value.componentName === rt.ROOT_CONTAINER && (v = "globalState"), this.nodeName = v;
4068
+ const m = n.getStore(v);
4069
+ m ? (this.storeState = m, m.setState({
4070
4070
  ...e.value.state || {}
4071
- })) : this.storeState = n.addStore(m, () => ({
4071
+ })) : this.storeState = n.addStore(v, () => ({
4072
4072
  ...e.value.state || {}
4073
4073
  }));
4074
4074
  const y = this.storeState.subscribe((S) => {
4075
4075
  this.setStateIfChanged(S);
4076
4076
  });
4077
4077
  this.storeListenDisposeList.push(y), this.connectStore();
4078
- const _ = o.get(m);
4078
+ const _ = o.get(v);
4079
4079
  _ ? this.variableSpace = _ : (this.variableSpace = {
4080
4080
  staticVar: {},
4081
4081
  methods: {}
4082
- }, o.add(m, this.variableSpace));
4082
+ }, o.add(v, this.variableSpace));
4083
4083
  }
4084
4084
  /** 如果值和当前 state 一样了就不触发更新 */
4085
4085
  setStateIfChanged(p) {
4086
- e.value.componentName !== rt.ROOT_CONTAINER && this.setState((m) => {
4087
- const v = typeof p == "function" ? p(m) : p;
4088
- return ku(m, { ...m, ...v }) ? null : v;
4086
+ e.value.componentName !== rt.ROOT_CONTAINER && this.setState((v) => {
4087
+ const m = typeof p == "function" ? p(v) : p;
4088
+ return ku(v, { ...v, ...m }) ? null : m;
4089
4089
  });
4090
4090
  }
4091
4091
  connectStore() {
4092
- const p = eo(e.props, (S) => !!vt(S)), m = eo(
4092
+ const p = eo(e.props, (S) => !!mt(S)), v = eo(
4093
4093
  {
4094
4094
  css: e.value.css,
4095
4095
  class: e.value.classNames
4096
4096
  },
4097
- (S) => !!vt(S)
4097
+ (S) => !!mt(S)
4098
4098
  );
4099
- let v = [];
4100
- [...p, ...m].map((S) => {
4099
+ let m = [];
4100
+ [...p, ...v].map((S) => {
4101
4101
  const j = S.val, N = [
4102
4102
  // 匹配 $$context.stateManger.xxx.state
4103
4103
  new RegExp(`(?<=context\\.stateManager(?:\\.|\\[["'])?)\\w+(?=(?:["']?\\])?(?:\\.|\\[)?["']?state)`, "gim"),
@@ -4106,10 +4106,12 @@ const yt = (t, e) => function(...r) {
4106
4106
  // 匹配 getStateObj("xxx")
4107
4107
  /getStateObj\(["']([^"']+)["']\)/gim
4108
4108
  ], C = Ku(j.value, N);
4109
- v = [...v, ...C], /\$CTX\.globalState|\$G_STATE/.test(j.value) && v.push("globalState");
4109
+ m = [...m, ...C], /\$CTX\.globalState|\$G_STATE/.test(j.value) && m.push("globalState");
4110
4110
  }).filter(Boolean);
4111
- const y = Array.from(new Set(v)), _ = [];
4111
+ const y = Array.from(new Set(m)), _ = [];
4112
4112
  y.length && y.forEach((S) => {
4113
+ if (!S)
4114
+ return;
4113
4115
  n.getStore(S) || (n.addStore(S, () => ({})), console.warn(n, S, "not exits, auto create"));
4114
4116
  const N = n.connect(S, (C) => {
4115
4117
  this.setStateIfChanged(C);
@@ -4118,28 +4120,28 @@ const yt = (t, e) => function(...r) {
4118
4120
  }), this.storeListenDisposeList = _;
4119
4121
  }
4120
4122
  componentDidMount() {
4121
- var v;
4123
+ var m;
4122
4124
  this.addMediaCSS(), a == null || a(this.targetComponentRef, e, this), s == null || s(this, e);
4123
- const p = (v = e.value.eventListener) == null ? void 0 : v.find((y) => y.name === Ta);
4125
+ const p = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === Ta);
4124
4126
  p && Rt(p.func, {
4125
4127
  context: this.createCurrentNodeCtx(),
4126
4128
  storeManager: n,
4127
4129
  actionVariableSpace: {},
4128
4130
  nodeModel: e
4129
4131
  })();
4130
- const m = () => {
4132
+ const v = () => {
4131
4133
  n.setStore(e.value.nodeName || e.id, this.storeState), this.storeState.setState({
4132
4134
  ...this.state,
4133
4135
  ...e.value.state || {}
4134
4136
  }), this.rebuildNode();
4135
4137
  };
4136
- e.onChange(m);
4138
+ e.onChange(v);
4137
4139
  }
4138
4140
  componentWillUnmount() {
4139
- var v;
4141
+ var m;
4140
4142
  this.storeListenDisposeList.forEach((y) => y()), this.removeMediaCSS(), i == null || i(this, e);
4141
- const p = Ra, m = (v = e.value.eventListener) == null ? void 0 : v.find((y) => y.name === p);
4142
- m && Rt(m.func, {
4143
+ const p = Ra, v = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === p);
4144
+ v && Rt(v.func, {
4143
4145
  context: this.createCurrentNodeCtx(),
4144
4146
  storeManager: n,
4145
4147
  actionVariableSpace: {},
@@ -4148,40 +4150,40 @@ const yt = (t, e) => function(...r) {
4148
4150
  }
4149
4151
  /** 转换节点的 methods */
4150
4152
  transformMethods(p) {
4151
- const { context: m } = p, v = pe(
4153
+ const { context: v } = p, m = pe(
4152
4154
  {
4153
4155
  methods: e.value.methods
4154
4156
  },
4155
4157
  {
4156
- $$context: m,
4158
+ $$context: v,
4157
4159
  ...f,
4158
4160
  nodeModel: e
4159
4161
  }
4160
- ), y = e.value.methods || [], _ = v.methods, S = y.reduce((j, N, C) => (j[N.name] = _[C], j), {});
4161
- m.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
4162
+ ), y = e.value.methods || [], _ = m.methods, S = y.reduce((j, N, C) => (j[N.name] = _[C], j), {});
4163
+ v.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
4162
4164
  }
4163
4165
  /** 处理根节点的 context */
4164
4166
  processRootContext(p) {
4165
4167
  e.value.componentName === rt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = d, p.getGlobalState = () => this.state);
4166
4168
  }
4167
- processNodeClassName(p, m) {
4169
+ processNodeClassName(p, v) {
4168
4170
  var _;
4169
- const v = ((_ = e.value.classNames) == null ? void 0 : _.map((S) => {
4171
+ const m = ((_ = e.value.classNames) == null ? void 0 : _.map((S) => {
4170
4172
  var C;
4171
4173
  const j = S.name;
4172
- return (vt(S.status) ? At(((C = S.status) == null ? void 0 : C.value) || "", {
4173
- nodeContext: m,
4174
+ return (mt(S.status) ? At(((C = S.status) == null ? void 0 : C.value) || "", {
4175
+ nodeContext: v,
4174
4176
  nodeModel: e,
4175
4177
  storeManager: n
4176
4178
  }) : !1) ? j : "";
4177
4179
  })) || [];
4178
- let y = `${p ?? ""} ${v.join(" ")}`.trim();
4180
+ let y = `${p ?? ""} ${m.join(" ")}`.trim();
4179
4181
  return e.value.css && (y = `${_n(e)} ${y}`.trim()), y;
4180
4182
  }
4181
4183
  processNodeStyle(p) {
4182
4184
  if (!e.value.style)
4183
4185
  return {};
4184
- const m = pe(
4186
+ const v = pe(
4185
4187
  { style: e.value.style },
4186
4188
  {
4187
4189
  $$context: p,
@@ -4189,29 +4191,29 @@ const yt = (t, e) => function(...r) {
4189
4191
  nodeModel: e
4190
4192
  }
4191
4193
  );
4192
- return Wu(m.style || []);
4194
+ return Wu(v.style || []);
4193
4195
  }
4194
- processNodeChild(p, m) {
4195
- let v = [];
4196
+ processNodeChild(p, v) {
4197
+ let m = [];
4196
4198
  if (p !== void 0)
4197
- v = Array.isArray(p) ? p : [p];
4199
+ m = Array.isArray(p) ? p : [p];
4198
4200
  else {
4199
4201
  const y = [];
4200
4202
  e.value.children.forEach((S, j) => {
4201
4203
  const N = Kg(S, {
4202
- $$context: m,
4204
+ $$context: v,
4203
4205
  idx: j,
4204
4206
  ...f
4205
4207
  });
4206
4208
  y.push(N);
4207
- }), v = y;
4209
+ }), m = y;
4208
4210
  }
4209
- return v;
4211
+ return m;
4210
4212
  }
4211
- processNodeConditionAndConfigHook(p, m, v) {
4213
+ processNodeConditionAndConfigHook(p, v, m) {
4212
4214
  let y = e.value.condition ?? !0;
4213
4215
  typeof y != "boolean" && (y = At(y.value, {
4214
- nodeContext: v || {},
4216
+ nodeContext: m || {},
4215
4217
  nodeModel: e,
4216
4218
  storeManager: n
4217
4219
  }));
@@ -4220,7 +4222,7 @@ const yt = (t, e) => function(...r) {
4220
4222
  props: p
4221
4223
  };
4222
4224
  u && (_ = u(_, e));
4223
- const S = ae(t, _.props, ...m);
4225
+ const S = ae(t, _.props, ...v);
4224
4226
  return this._CONDITION = _.condition, _.condition ? S : x.createElement(
4225
4227
  "div",
4226
4228
  {
@@ -4233,8 +4235,8 @@ const yt = (t, e) => function(...r) {
4233
4235
  );
4234
4236
  }
4235
4237
  processNodeEventListener(p) {
4236
- const m = e.value.eventListener, v = {};
4237
- return m == null || m.forEach((y) => {
4238
+ const v = e.value.eventListener, m = {};
4239
+ return v == null || v.forEach((y) => {
4238
4240
  if (Hg.includes(y.name))
4239
4241
  return;
4240
4242
  const _ = Rt(y.func, {
@@ -4243,38 +4245,38 @@ const yt = (t, e) => function(...r) {
4243
4245
  actionVariableSpace: {},
4244
4246
  nodeModel: e
4245
4247
  });
4246
- v[y.name] = _;
4247
- }), v;
4248
+ m[y.name] = _;
4249
+ }), m;
4248
4250
  }
4249
4251
  createCurrentNodeCtx() {
4250
- const { $$context: p } = this.props, m = e.value.nodeName || e.id, v = e.id, y = {
4252
+ const { $$context: p } = this.props, v = e.value.nodeName || e.id, m = e.id, y = {
4251
4253
  state: this.state || {},
4252
4254
  staticVar: this.variableSpace.staticVar,
4253
4255
  updateState: this.updateState,
4254
4256
  storeManager: n,
4255
- getState: () => n.getStateObj(m),
4256
- getStateObj: () => n.getStateObj(m),
4257
+ getState: () => n.getStateObj(v),
4258
+ getStateObj: () => n.getStateObj(v),
4257
4259
  getStateObjById: (S) => n.getStateObj(S),
4258
4260
  stateManager: n.getStateSnapshot(),
4259
4261
  getMethods: () => {
4260
- const S = o.get(v).methods, j = c.get(v).current;
4262
+ const S = o.get(m).methods, j = c.get(m).current;
4261
4263
  return Sn(S, j);
4262
4264
  },
4263
4265
  getMethodsById: (S) => {
4264
4266
  const j = o.get(S).methods, N = c.get(S).current;
4265
4267
  return Sn(j, N);
4266
4268
  },
4267
- getStaticVar: () => o.get(m).staticVar,
4269
+ getStaticVar: () => o.get(v).staticVar,
4268
4270
  getStaticVarById: (S) => o.get(S).staticVar,
4269
4271
  /** 获取当前节点的事件函数 */
4270
4272
  callEventMethod: (S, j) => {
4271
4273
  var C, F;
4272
- const N = c.get(v).current;
4274
+ const N = c.get(m).current;
4273
4275
  (F = N == null ? void 0 : (C = N.props)[S]) == null || F.call(C, j);
4274
4276
  },
4275
4277
  /** 获取当前 node 的 props */
4276
4278
  getProps: () => {
4277
- const S = c.get(v).current;
4279
+ const S = c.get(m).current;
4278
4280
  return S == null ? void 0 : S.props;
4279
4281
  },
4280
4282
  nodeRefs: p.nodeRefs
@@ -4282,23 +4284,23 @@ const yt = (t, e) => function(...r) {
4282
4284
  return this.processRootContext(y), pr(y, p);
4283
4285
  }
4284
4286
  injectEngEnv() {
4285
- const p = {}, m = e.value.injectEnvList || [];
4287
+ const p = {}, v = e.value.injectEnvList || [];
4286
4288
  if (Array.isArray(e.value.injectEnvList)) {
4287
- const v = {
4289
+ const m = {
4288
4290
  [ja.COMPONENTS]: r.components
4289
4291
  };
4290
- m.reduce((y, _) => (y[_] = v[_], y), p);
4292
+ v.reduce((y, _) => (y[_] = m[_], y), p);
4291
4293
  }
4292
4294
  return p;
4293
4295
  }
4294
4296
  renderCore() {
4295
- const { $$context: p, ...m } = this.props, v = {
4297
+ const { $$context: p, ...v } = this.props, m = {
4296
4298
  key: e.id,
4297
4299
  ...e.props,
4298
- ...m
4300
+ ...v
4299
4301
  }, y = this.createCurrentNodeCtx();
4300
4302
  this.transformMethods({ context: y });
4301
- let _ = pe(v, {
4303
+ let _ = pe(m, {
4302
4304
  $$context: y,
4303
4305
  ...f,
4304
4306
  nodeModel: e
@@ -4322,10 +4324,10 @@ const yt = (t, e) => function(...r) {
4322
4324
  return this.processNodeConditionAndConfigHook(_, F, y);
4323
4325
  }
4324
4326
  renderLoop() {
4325
- const { $$context: p, ...m } = this.props, v = {
4327
+ const { $$context: p, ...v } = this.props, m = {
4326
4328
  key: e.id,
4327
4329
  ...e.props,
4328
- ...m
4330
+ ...v
4329
4331
  }, y = this.createCurrentNodeCtx();
4330
4332
  this.transformMethods({ context: y });
4331
4333
  const _ = e.value.loop;
@@ -4333,7 +4335,7 @@ const yt = (t, e) => function(...r) {
4333
4335
  if (_ && _.open) {
4334
4336
  this.targetComponentRef.current = [];
4335
4337
  let j = _.data || [];
4336
- if (vt(_.data)) {
4338
+ if (mt(_.data)) {
4337
4339
  const N = _.data;
4338
4340
  j = At(N.value, {
4339
4341
  nodeContext: y || {},
@@ -4345,7 +4347,7 @@ const yt = (t, e) => function(...r) {
4345
4347
  const C = N[1], F = [_.forName || "item", _.forIndex || "index"], ht = Fo(N, F);
4346
4348
  let gt = "loopData";
4347
4349
  _.name && (gt = `${gt}${_.name}`);
4348
- const mt = pr(
4350
+ const vt = pr(
4349
4351
  {
4350
4352
  [gt]: ht,
4351
4353
  nodeRefs: y.nodeRefs,
@@ -4357,23 +4359,23 @@ const yt = (t, e) => function(...r) {
4357
4359
  },
4358
4360
  y
4359
4361
  );
4360
- let B = pe(v, {
4361
- $$context: mt,
4362
+ let B = pe(m, {
4363
+ $$context: vt,
4362
4364
  ...f,
4363
4365
  nodeModel: e
4364
4366
  });
4365
4367
  const Ia = this.injectEngEnv();
4366
4368
  Object.assign(B, Ia);
4367
- const Da = this.processNodeClassName(B.className, mt);
4369
+ const Da = this.processNodeClassName(B.className, vt);
4368
4370
  B.className = Da;
4369
- const La = this.processNodeStyle(mt);
4371
+ const La = this.processNodeStyle(vt);
4370
4372
  B.style = La;
4371
4373
  const { children: Fa } = B;
4372
4374
  delete B.children;
4373
- const Va = this.processNodeChild(Fa, mt);
4374
- if (B.key = `${B.key}-${C}`, vt(_.key)) {
4375
+ const Va = this.processNodeChild(Fa, vt);
4376
+ if (B.key = `${B.key}-${C}`, mt(_.key)) {
4375
4377
  const kt = _.key, Ua = At(kt.value, {
4376
- nodeContext: mt || {},
4378
+ nodeContext: vt || {},
4377
4379
  storeManager: n,
4378
4380
  nodeModel: e
4379
4381
  });
@@ -4382,13 +4384,13 @@ const yt = (t, e) => function(...r) {
4382
4384
  if (B.ref = (kt) => {
4383
4385
  this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[C] = kt;
4384
4386
  }, e.value.eventListener) {
4385
- const kt = this.processNodeEventListener(mt);
4387
+ const kt = this.processNodeEventListener(vt);
4386
4388
  B = {
4387
4389
  ...B,
4388
4390
  ...kt
4389
4391
  };
4390
4392
  }
4391
- return this.processNodeConditionAndConfigHook(B, Va, mt);
4393
+ return this.processNodeConditionAndConfigHook(B, Va, vt);
4392
4394
  }), S;
4393
4395
  }
4394
4396
  }
@@ -4397,27 +4399,27 @@ const yt = (t, e) => function(...r) {
4397
4399
  return p && p.open ? this.renderLoop() : this.renderCore();
4398
4400
  }
4399
4401
  }
4400
- return E(h, "__CP_TYPE__", Pe), h.displayName = `${e.value.componentName}Dynamic`, h;
4402
+ return w(h, "__CP_TYPE__", Pe), h.displayName = `${e.value.componentName}Dynamic`, h;
4401
4403
  };
4402
4404
  class Qg {
4403
4405
  constructor() {
4404
- E(this, "renderMode", "normal");
4405
- E(this, "components", {});
4406
- E(this, "storeManager", new Zu());
4406
+ w(this, "renderMode", "normal");
4407
+ w(this, "components", {});
4408
+ w(this, "storeManager", new Zu());
4407
4409
  // 存储节点的变量或者方法
4408
- E(this, "variableManager", new tl());
4409
- E(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4410
- E(this, "onGetRef");
4411
- E(this, "onGetComponent");
4412
- E(this, "onComponentMount");
4413
- E(this, "refManager", new Uo());
4414
- E(this, "onComponentDestroy");
4410
+ w(this, "variableManager", new tl());
4411
+ w(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4412
+ w(this, "onGetRef");
4413
+ w(this, "onGetComponent");
4414
+ w(this, "onComponentMount");
4415
+ w(this, "refManager", new Uo());
4416
+ w(this, "onComponentDestroy");
4415
4417
  /**
4416
4418
  * 处理 props 钩子, 可以统一拦截 node 的处理,并修改其值
4417
4419
  */
4418
- E(this, "processNodeConfigHook");
4420
+ w(this, "processNodeConfigHook");
4419
4421
  /** 请求 API */
4420
- E(this, "requestAPI", async (e) => {
4422
+ w(this, "requestAPI", async (e) => {
4421
4423
  throw console.log(e), new Error("Need to implement requestAPI for Render");
4422
4424
  });
4423
4425
  }
@@ -4467,16 +4469,16 @@ class Qg {
4467
4469
  requestAPI: l,
4468
4470
  components: this.components,
4469
4471
  doc: f
4470
- }), p = {}, m = h.props;
4471
- return Object.keys(m).forEach((v) => {
4472
- p[v] = m[v].value;
4472
+ }), p = {}, v = h.props;
4473
+ return Object.keys(v).forEach((m) => {
4474
+ p[m] = v[m].value;
4473
4475
  }), p.$$context = a, ae(b, p);
4474
4476
  }
4475
4477
  clear() {
4476
4478
  this.runtimeComponentCache.clear(), this.storeManager.destroy();
4477
4479
  }
4478
4480
  }
4479
- const Mm = qa(new Qg());
4481
+ const Mv = qa(new Qg());
4480
4482
  function Yg(t) {
4481
4483
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4482
4484
  }
@@ -4508,8 +4510,8 @@ var no;
4508
4510
  function Zg() {
4509
4511
  return no || (no = 1, ke.exports = Xg()), ke.exports;
4510
4512
  }
4511
- var tm = Zg();
4512
- const em = [
4513
+ var tv = Zg();
4514
+ const ev = [
4513
4515
  "a",
4514
4516
  "abbr",
4515
4517
  "acronym",
@@ -4664,7 +4666,7 @@ const em = [
4664
4666
  return t.forEach((r) => {
4665
4667
  e[r.key] = r.value;
4666
4668
  }), e;
4667
- }, rm = em.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
4669
+ }, rv = ev.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
4668
4670
  let a = r;
4669
4671
  return Array.isArray(r) || (a = [r]), x.createElement(
4670
4672
  e,
@@ -4674,7 +4676,7 @@ const em = [
4674
4676
  },
4675
4677
  ...a
4676
4678
  );
4677
- }, t), {}), nm = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
4679
+ }, t), {}), nv = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
4678
4680
  let a = t;
4679
4681
  Array.isArray(t) || (a = [t]), a = a.filter((u) => u !== void 0);
4680
4682
  const { style: s = {}, ...i } = ct(n), c = {
@@ -4692,12 +4694,12 @@ const em = [
4692
4694
  },
4693
4695
  ...a
4694
4696
  );
4695
- }, om = ({ afterMount: t, beforeDestroy: e, $$attributes: r = [], ...n }) => (co(() => (t == null || t(n), () => {
4697
+ }, ov = ({ afterMount: t, beforeDestroy: e, $$attributes: r = [], ...n }) => (co(() => (t == null || t(n), () => {
4696
4698
  e == null || e(n);
4697
4699
  }), []), x.createElement("canvas", {
4698
4700
  ...n,
4699
4701
  ...ct(r)
4700
- })), am = ({ children: t, $$attributes: e = [], ...r }) => {
4702
+ })), av = ({ children: t, $$attributes: e = [], ...r }) => {
4701
4703
  let n = t;
4702
4704
  return Array.isArray(t) || (n = [t]), x.createElement(
4703
4705
  "img",
@@ -4707,7 +4709,7 @@ const em = [
4707
4709
  },
4708
4710
  ...n
4709
4711
  );
4710
- }, sm = ({ children: t, $$attributes: e = [], ...r }) => {
4712
+ }, sv = ({ children: t, $$attributes: e = [], ...r }) => {
4711
4713
  let n = t;
4712
4714
  return Array.isArray(t) || (n = [t]), x.createElement(
4713
4715
  "video",
@@ -4717,7 +4719,7 @@ const em = [
4717
4719
  },
4718
4720
  ...n
4719
4721
  );
4720
- }, im = ({ children: t, $$attributes: e = [], ...r }) => {
4722
+ }, iv = ({ children: t, $$attributes: e = [], ...r }) => {
4721
4723
  let n = t;
4722
4724
  return Array.isArray(t) || (n = [t]), x.createElement(
4723
4725
  "audio",
@@ -4727,19 +4729,19 @@ const em = [
4727
4729
  },
4728
4730
  ...n
4729
4731
  );
4730
- }, cm = ({ $$attributes: t = [], content: e, ...r }) => x.createElement(
4732
+ }, cv = ({ $$attributes: t = [], content: e, ...r }) => x.createElement(
4731
4733
  "span",
4732
4734
  {
4733
4735
  ...r,
4734
4736
  ...ct(t)
4735
4737
  },
4736
4738
  e
4737
- ), um = ({ children: t, $$attributes: e = [], afterMount: r, beforeDestroy: n, ...o }) => {
4739
+ ), uv = ({ children: t, $$attributes: e = [], afterMount: r, beforeDestroy: n, ...o }) => {
4738
4740
  let a = t;
4739
4741
  return Array.isArray(t) || (a = [t]), co(() => (r == null || r(o), () => {
4740
4742
  n == null || n(o);
4741
- }), []), /* @__PURE__ */ tm.jsx("div", { ...o, ...ct(e), children: a });
4742
- }, lm = ({ children: t, $$attributes: e = [], htmlTag: r = "div", ...n }) => {
4743
+ }), []), /* @__PURE__ */ tv.jsx("div", { ...o, ...ct(e), children: a });
4744
+ }, lv = ({ children: t, $$attributes: e = [], htmlTag: r = "div", ...n }) => {
4743
4745
  let o = t;
4744
4746
  Array.isArray(t) || (o = [t]);
4745
4747
  const { style: a = {}, ...s } = ct(e), i = {
@@ -4755,29 +4757,29 @@ const em = [
4755
4757
  },
4756
4758
  ...o
4757
4759
  );
4758
- }, fm = {
4760
+ }, fv = {
4759
4761
  RootContainer: ({ children: t }) => t,
4760
- ...rm,
4761
- CContainer: um,
4762
- CVideo: sm,
4763
- CAudio: im,
4764
- CBlock: nm,
4765
- CImage: am,
4766
- CText: cm,
4767
- CCanvas: om,
4768
- CNativeTag: lm
4762
+ ...rv,
4763
+ CContainer: uv,
4764
+ CVideo: sv,
4765
+ CAudio: iv,
4766
+ CBlock: nv,
4767
+ CImage: av,
4768
+ CText: cv,
4769
+ CCanvas: ov,
4770
+ CNativeTag: lv
4769
4771
  };
4770
- class dm extends x.Component {
4772
+ class dv extends x.Component {
4771
4773
  constructor(r) {
4772
4774
  super(r);
4773
- E(this, "refManager");
4775
+ w(this, "refManager");
4774
4776
  // save component instance
4775
- E(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4776
- E(this, "onGetRef", (r, n, o) => {
4777
+ w(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4778
+ w(this, "onGetRef", (r, n, o) => {
4777
4779
  var a, s;
4778
4780
  (s = (a = this.props).onGetRef) == null || s.call(a, r, n, o), this.dynamicComponentInstanceMap.set(n.id, o), this.refManager.add(n.value.refId || n.id, r);
4779
4781
  });
4780
- E(this, "rerender", (r) => {
4782
+ w(this, "rerender", (r) => {
4781
4783
  if (this.props.adapter.clear(), (r == null ? void 0 : r.nodeType) === "PAGE" && r)
4782
4784
  this.setState({
4783
4785
  pageModel: r
@@ -4810,7 +4812,7 @@ class dm extends x.Component {
4810
4812
  if (!c)
4811
4813
  return console.warn("pageModel is null"), null;
4812
4814
  const u = {
4813
- ...fm,
4815
+ ...fv,
4814
4816
  ...r.components
4815
4817
  }, d = this.props.$$context || {};
4816
4818
  return n.pageRender(c, {
@@ -4832,7 +4834,7 @@ class dm extends x.Component {
4832
4834
  });
4833
4835
  }
4834
4836
  }
4835
- const Im = () => {
4837
+ const Iv = () => {
4836
4838
  const t = uo(null);
4837
4839
  return lo(() => ({
4838
4840
  ref: t,
@@ -4841,10 +4843,10 @@ const Im = () => {
4841
4843
  }
4842
4844
  }), []);
4843
4845
  };
4844
- class pm extends x.Component {
4846
+ class pv extends x.Component {
4845
4847
  constructor(r) {
4846
4848
  super(r);
4847
- E(this, "onDoubleClick", () => {
4849
+ w(this, "onDoubleClick", () => {
4848
4850
  this.setState({
4849
4851
  hasError: !1,
4850
4852
  error: null
@@ -4919,7 +4921,7 @@ var He = { exports: {} }, z = {};
4919
4921
  * LICENSE file in the root directory of this source tree.
4920
4922
  */
4921
4923
  var oo;
4922
- function hm() {
4924
+ function hv() {
4923
4925
  if (oo) return z;
4924
4926
  oo = 1;
4925
4927
  function t(s) {
@@ -5052,15 +5054,15 @@ function hm() {
5052
5054
  }, z;
5053
5055
  }
5054
5056
  var ao;
5055
- function gm() {
5056
- return ao || (ao = 1, He.exports = hm()), He.exports;
5057
+ function gv() {
5058
+ return ao || (ao = 1, He.exports = hv()), He.exports;
5057
5059
  }
5058
- var mm = gm();
5059
- function vm(t) {
5060
+ var vv = gv();
5061
+ function mv(t) {
5060
5062
  return t._reactInternals;
5061
5063
  }
5062
- function ym(t) {
5063
- const e = vm(t);
5064
+ function yv(t) {
5065
+ const e = mv(t);
5064
5066
  if (e === void 0) {
5065
5067
  if (typeof t.render == "function")
5066
5068
  throw new Error("Unable to find node on an unmounted component.");
@@ -5069,15 +5071,15 @@ function ym(t) {
5069
5071
  throw new Error(`Argument appears to not be a ReactComponent. Keys: ${n}`);
5070
5072
  }
5071
5073
  }
5072
- const r = mm.findCurrentHostFiber(e);
5074
+ const r = vv.findCurrentHostFiber(e);
5073
5075
  return r === null ? null : r.stateNode;
5074
5076
  }
5075
- function bm(t) {
5076
- return ym(t);
5077
+ function bv(t) {
5078
+ return yv(t);
5077
5079
  }
5078
- class _m {
5080
+ class _v {
5079
5081
  constructor() {
5080
- E(this, "instanceMap", /* @__PURE__ */ new Map());
5082
+ w(this, "instanceMap", /* @__PURE__ */ new Map());
5081
5083
  }
5082
5084
  get(e) {
5083
5085
  return this.instanceMap.get(e);
@@ -5098,7 +5100,7 @@ class _m {
5098
5100
  this.instanceMap.clear();
5099
5101
  }
5100
5102
  }
5101
- const Sm = (t) => {
5103
+ const Sv = (t) => {
5102
5104
  const { node: e } = t, r = lo(() => {
5103
5105
  const i = e.isContainer();
5104
5106
  return Ft(i) ? i : {
@@ -5133,14 +5135,14 @@ const Sm = (t) => {
5133
5135
  n
5134
5136
  );
5135
5137
  };
5136
- class Dm extends x.Component {
5138
+ class Dv extends x.Component {
5137
5139
  constructor(r) {
5138
5140
  super(r);
5139
- E(this, "instanceManager", new _m());
5140
- E(this, "renderRef");
5141
- E(this, "dropPlaceholder", Sm);
5142
- E(this, "_components", {});
5143
- E(this, "onGetComponent", (r, n) => {
5141
+ w(this, "instanceManager", new _v());
5142
+ w(this, "renderRef");
5143
+ w(this, "dropPlaceholder", Sv);
5144
+ w(this, "_components", {});
5145
+ w(this, "onGetComponent", (r, n) => {
5144
5146
  var c, u;
5145
5147
  const o = this;
5146
5148
  let a = r;
@@ -5152,13 +5154,13 @@ class Dm extends x.Component {
5152
5154
  class i extends x.Component {
5153
5155
  constructor() {
5154
5156
  super(...arguments);
5155
- E(this, "_DESIGN_BOX", !0);
5156
- E(this, "_NODE_MODEL", n);
5157
- E(this, "_NODE_ID", n.id);
5158
- E(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5159
- E(this, "_STATUS");
5160
- E(this, "_design_target_component");
5161
- E(this, "_dom");
5157
+ w(this, "_DESIGN_BOX", !0);
5158
+ w(this, "_NODE_MODEL", n);
5159
+ w(this, "_NODE_ID", n.id);
5160
+ w(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5161
+ w(this, "_STATUS");
5162
+ w(this, "_design_target_component");
5163
+ w(this, "_dom");
5162
5164
  }
5163
5165
  componentDidMount() {
5164
5166
  o.instanceManager.add(n.id, this);
@@ -5171,14 +5173,14 @@ class Dm extends x.Component {
5171
5173
  }
5172
5174
  getDom() {
5173
5175
  var h, g;
5174
- return ((g = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : g.autoGetDom) ?? !0 ? bm(this) : this._dom;
5176
+ return ((g = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : g.autoGetDom) ?? !0 ? bv(this) : this._dom;
5175
5177
  }
5176
5178
  render() {
5177
- var v, y, _, S;
5179
+ var m, y, _, S;
5178
5180
  const { children: f = [], onlyRenderChild: h, ...g } = this.props;
5179
5181
  let b = f;
5180
5182
  if (ot(f) || (b = [f]), !!!b.filter(Boolean).length && (n.isContainer() || n.value.componentName === rt.ROOT_CONTAINER)) {
5181
- const j = (y = (v = n.material) == null ? void 0 : v.value.advanceCustom) == null ? void 0 : y.dropPlaceholder;
5183
+ const j = (y = (m = n.material) == null ? void 0 : m.value.advanceCustom) == null ? void 0 : y.dropPlaceholder;
5182
5184
  b.push(
5183
5185
  x.createElement(j || o.dropPlaceholder, {
5184
5186
  node: n
@@ -5200,7 +5202,7 @@ class Dm extends x.Component {
5200
5202
  }
5201
5203
  return x.forwardRef(function(l, f) {
5202
5204
  return x.createElement(
5203
- pm,
5205
+ pv,
5204
5206
  {
5205
5207
  node: n,
5206
5208
  targetComponent: i
@@ -5260,7 +5262,7 @@ class Dm extends x.Component {
5260
5262
  }
5261
5263
  render() {
5262
5264
  const { props: r, onGetComponent: n } = this, { render: o, ...a } = r;
5263
- return o && (o.ref.current = this), x.createElement(dm, {
5265
+ return o && (o.ref.current = this), x.createElement(dv, {
5264
5266
  onGetComponent: n,
5265
5267
  ...a,
5266
5268
  components: this._components,
@@ -5313,7 +5315,7 @@ const Pa = (t) => {
5313
5315
  }, Ma = (t) => {
5314
5316
  var e;
5315
5317
  return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : Ma(t.return) : null;
5316
- }, Lm = () => {
5318
+ }, Lv = () => {
5317
5319
  const t = uo(null);
5318
5320
  return {
5319
5321
  ref: t,
@@ -5338,25 +5340,25 @@ const Pa = (t) => {
5338
5340
  }
5339
5341
  };
5340
5342
  };
5341
- var he = { exports: {} }, Om = he.exports, so;
5342
- function wm() {
5343
+ var he = { exports: {} }, Ov = he.exports, so;
5344
+ function Ev() {
5343
5345
  return so || (so = 1, function(t, e) {
5344
5346
  (function(r, n) {
5345
5347
  t.exports = n();
5346
- })(Om, function() {
5348
+ })(Ov, function() {
5347
5349
  var r = function() {
5348
5350
  }, n = {}, o = {}, a = {};
5349
5351
  function s(f, h) {
5350
5352
  f = f.push ? f : [f];
5351
- var g = [], b = f.length, p = b, m, v, y, _;
5352
- for (m = function(S, j) {
5353
+ var g = [], b = f.length, p = b, v, m, y, _;
5354
+ for (v = function(S, j) {
5353
5355
  j.length && g.push(S), p--, p || h(g);
5354
5356
  }; b--; ) {
5355
- if (v = f[b], y = o[v], y) {
5356
- m(v, y);
5357
+ if (m = f[b], y = o[m], y) {
5358
+ v(m, y);
5357
5359
  continue;
5358
5360
  }
5359
- _ = a[v] = a[v] || [], _.push(m);
5361
+ _ = a[m] = a[m] || [], _.push(v);
5360
5362
  }
5361
5363
  }
5362
5364
  function i(f, h) {
@@ -5371,12 +5373,12 @@ function wm() {
5371
5373
  f.call && (f = { success: f }), h.length ? (f.error || r)(h) : (f.success || r)(f);
5372
5374
  }
5373
5375
  function u(f, h, g, b) {
5374
- var p = document, m = g.async, v = (g.numRetries || 0) + 1, y = g.before || r, _ = f.replace(/[\?|#].*$/, ""), S = f.replace(/^(css|img|module|nomodule)!/, ""), j, N, C;
5376
+ var p = document, v = g.async, m = (g.numRetries || 0) + 1, y = g.before || r, _ = f.replace(/[\?|#].*$/, ""), S = f.replace(/^(css|img|module|nomodule)!/, ""), j, N, C;
5375
5377
  if (b = b || 0, /(^css!|\.css$)/.test(_))
5376
5378
  C = p.createElement("link"), C.rel = "stylesheet", C.href = S, j = "hideFocus" in C, j && C.relList && (j = 0, C.rel = "preload", C.as = "style");
5377
5379
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(_))
5378
5380
  C = p.createElement("img"), C.src = S;
5379
- else if (C = p.createElement("script"), C.src = S, C.async = m === void 0 ? !0 : m, N = "noModule" in C, /^module!/.test(_)) {
5381
+ else if (C = p.createElement("script"), C.src = S, C.async = v === void 0 ? !0 : v, N = "noModule" in C, /^module!/.test(_)) {
5380
5382
  if (!N) return h(f, "l");
5381
5383
  C.type = "module";
5382
5384
  } else if (/^nomodule!/.test(_) && N) return h(f, "l");
@@ -5389,7 +5391,7 @@ function wm() {
5389
5391
  gt.code != 18 && (ht = "e");
5390
5392
  }
5391
5393
  if (ht == "e") {
5392
- if (b += 1, b < v)
5394
+ if (b += 1, b < m)
5393
5395
  return u(f, h, g, b);
5394
5396
  } else if (C.rel == "preload" && C.as == "style")
5395
5397
  return C.rel = "stylesheet";
@@ -5398,13 +5400,13 @@ function wm() {
5398
5400
  }
5399
5401
  function d(f, h, g) {
5400
5402
  f = f.push ? f : [f];
5401
- var b = f.length, p = b, m = [], v, y;
5402
- for (v = function(_, S, j) {
5403
- if (S == "e" && m.push(_), S == "b")
5404
- if (j) m.push(_);
5403
+ var b = f.length, p = b, v = [], m, y;
5404
+ for (m = function(_, S, j) {
5405
+ if (S == "e" && v.push(_), S == "b")
5406
+ if (j) v.push(_);
5405
5407
  else return;
5406
- b--, b || h(m);
5407
- }, y = 0; y < p; y++) u(f[y], v, g);
5408
+ b--, b || h(v);
5409
+ }, y = 0; y < p; y++) u(f[y], m, g);
5408
5410
  }
5409
5411
  function l(f, h, g) {
5410
5412
  var b, p;
@@ -5413,13 +5415,13 @@ function wm() {
5413
5415
  throw "LoadJS";
5414
5416
  n[b] = !0;
5415
5417
  }
5416
- function m(v, y) {
5418
+ function v(m, y) {
5417
5419
  d(f, function(_) {
5418
- c(p, _), v && c({ success: v, error: y }, _), i(b, _);
5420
+ c(p, _), m && c({ success: m, error: y }, _), i(b, _);
5419
5421
  }, p);
5420
5422
  }
5421
- if (p.returnPromise) return new Promise(m);
5422
- m();
5423
+ if (p.returnPromise) return new Promise(v);
5424
+ v();
5423
5425
  }
5424
5426
  return l.ready = function(h, g) {
5425
5427
  return s(h, function(b) {
@@ -5435,15 +5437,15 @@ function wm() {
5435
5437
  });
5436
5438
  }(he)), he.exports;
5437
5439
  }
5438
- var Em = wm();
5439
- const io = /* @__PURE__ */ Yg(Em);
5440
- class Fm {
5440
+ var wv = Ev();
5441
+ const io = /* @__PURE__ */ Yg(wv);
5442
+ class Fv {
5441
5443
  constructor(e, r) {
5442
- E(this, "assets");
5443
- E(this, "loadStatus");
5444
- E(this, "win", window);
5445
- E(this, "_onSuccessList", []);
5446
- E(this, "_onErrorList", []);
5444
+ w(this, "assets");
5445
+ w(this, "loadStatus");
5446
+ w(this, "win", window);
5447
+ w(this, "_onSuccessList", []);
5448
+ w(this, "_onErrorList", []);
5447
5449
  this.assets = JSON.parse(JSON.stringify(e || [])), this.loadStatus = "INIT", r != null && r.window && (this.win = r.window);
5448
5450
  }
5449
5451
  load(e) {
@@ -5480,38 +5482,38 @@ class Fm {
5480
5482
  }
5481
5483
  }
5482
5484
  export {
5483
- Fm as AssetLoader,
5484
- _m as ComponentInstanceManager,
5485
+ Fv as AssetLoader,
5486
+ _v as ComponentInstanceManager,
5485
5487
  Pe as DYNAMIC_COMPONENT_TYPE,
5486
- Sm as DefaultDropPlaceholder,
5488
+ Sv as DefaultDropPlaceholder,
5487
5489
  Qg as DefineReactAdapter,
5488
- Dm as DesignRender,
5490
+ Dv as DesignRender,
5489
5491
  Hg as INNER_EVENT_LIST,
5490
5492
  kg as InnerPropList,
5491
5493
  Ta as ON_DID_RENDER,
5492
5494
  Ra as ON_WILL_DESTROY,
5493
- Mm as ReactAdapter,
5495
+ Mv as ReactAdapter,
5494
5496
  Uo as RefManager,
5495
- dm as Render,
5497
+ dv as Render,
5496
5498
  Ju as canAcceptsRef,
5497
- Am as collectVariable,
5499
+ Av as collectVariable,
5498
5500
  qu as compWrapper,
5499
5501
  ie as convertCodeStringToFunction,
5500
5502
  Qu as findComponentByChainRefer,
5501
- Tm as flatObject,
5503
+ Tv as flatObject,
5502
5504
  Wu as formatSourceStylePropertyName,
5503
5505
  qa as getAdapter,
5504
- xm as getCSSTextValue,
5505
- Rm as getComponentsLibs,
5506
+ xv as getCSSTextValue,
5507
+ Rv as getComponentsLibs,
5506
5508
  Sn as getInheritObj,
5507
5509
  Ku as getMatchVal,
5508
5510
  _n as getNodeCssClassName,
5509
5511
  Fo as getObjFromArrayMap,
5510
- Pm as getThirdLibs,
5511
- Nm as isClass,
5512
+ Pv as getThirdLibs,
5513
+ Nv as isClass,
5512
5514
  At as runExpression,
5513
5515
  zu as shouldConstruct,
5514
- Lm as useDesignRender,
5515
- Im as useRender
5516
+ Lv as useDesignRender,
5517
+ Iv as useRender
5516
5518
  };
5517
5519
  //# sourceMappingURL=index.js.map