@chamn/render 0.9.1 → 0.9.3

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 La = Object.defineProperty;
2
2
  var Fa = (t, e, r) => e in t ? La(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var w = (t, e, r) => Fa(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var $ = (t, e, r) => Fa(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import x, { Component as Va, createElement as Ua, useEffect as oo, useRef as ao, useMemo as so } from "react";
5
5
  const Ba = (t) => () => {
6
6
  console.warn(`${t} need to be implement getComponent`);
@@ -22,24 +22,24 @@ const Ba = (t) => () => {
22
22
  var o;
23
23
  return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Hr.includes(n) && (r[n] = Ba), r;
24
24
  }, {});
25
- var io = typeof global == "object" && global && global.Object === Object && global, ka = typeof self == "object" && self && self.Object === Object && self, X = io || ka || Function("return this")(), lt = X.Symbol, co = Object.prototype, Ha = co.hasOwnProperty, Wa = co.toString, kt = lt ? lt.toStringTag : void 0;
26
- function Ja(t) {
25
+ var io = typeof global == "object" && global && global.Object === Object && global, ka = typeof self == "object" && self && self.Object === Object && self, X = io || ka || Function("return this")(), lt = X.Symbol, co = Object.prototype, Ha = co.hasOwnProperty, Ja = co.toString, kt = lt ? lt.toStringTag : void 0;
26
+ function Wa(t) {
27
27
  var e = Ha.call(t, kt), r = t[kt];
28
28
  try {
29
29
  t[kt] = void 0;
30
30
  var n = !0;
31
31
  } catch {
32
32
  }
33
- var o = Wa.call(t);
33
+ var o = Ja.call(t);
34
34
  return n && (e ? t[kt] = r : delete t[kt]), o;
35
35
  }
36
36
  var qa = Object.prototype, Ka = qa.toString;
37
37
  function Qa(t) {
38
38
  return Ka.call(t);
39
39
  }
40
- var Ya = "[object Null]", Xa = "[object Undefined]", Wr = lt ? lt.toStringTag : void 0;
40
+ var Ya = "[object Null]", Xa = "[object Undefined]", Jr = lt ? lt.toStringTag : void 0;
41
41
  function Ot(t) {
42
- return t == null ? t === void 0 ? Xa : Ya : Wr && Wr in Object(t) ? Ja(t) : Qa(t);
42
+ return t == null ? t === void 0 ? Xa : Ya : Jr && Jr in Object(t) ? Wa(t) : Qa(t);
43
43
  }
44
44
  function ft(t) {
45
45
  return t != null && typeof t == "object";
@@ -53,7 +53,7 @@ function es(t, e) {
53
53
  o[r] = e(t[r], r, t);
54
54
  return o;
55
55
  }
56
- var ot = Array.isArray, Jr = lt ? lt.prototype : void 0, qr = Jr ? Jr.toString : void 0;
56
+ var ot = Array.isArray, Wr = lt ? lt.prototype : void 0, qr = Wr ? Wr.toString : void 0;
57
57
  function uo(t) {
58
58
  if (typeof t == "string")
59
59
  return t;
@@ -86,7 +86,7 @@ function ss(t) {
86
86
  return !!Kr && Kr in t;
87
87
  }
88
88
  var is = Function.prototype, cs = is.toString;
89
- function wt(t) {
89
+ function $t(t) {
90
90
  if (t != null) {
91
91
  try {
92
92
  return cs.call(t);
@@ -106,16 +106,16 @@ function vs(t) {
106
106
  if (!Et(t) || ss(t))
107
107
  return !1;
108
108
  var e = dr(t) ? gs : ls;
109
- return e.test(wt(t));
109
+ return e.test($t(t));
110
110
  }
111
111
  function ms(t, e) {
112
112
  return t == null ? void 0 : t[e];
113
113
  }
114
- function $t(t, e) {
114
+ function wt(t, e) {
115
115
  var r = ms(t, e);
116
116
  return vs(r) ? r : void 0;
117
117
  }
118
- var ze = $t(X, "WeakMap"), Qr = Object.create, ys = /* @__PURE__ */ function() {
118
+ var ze = wt(X, "WeakMap"), Qr = Object.create, ys = /* @__PURE__ */ function() {
119
119
  function t() {
120
120
  }
121
121
  return function(e) {
@@ -148,7 +148,7 @@ function _s(t, e) {
148
148
  return e;
149
149
  }
150
150
  var Ss = 800, Os = 16, Es = Date.now;
151
- function ws(t) {
151
+ function $s(t) {
152
152
  var e = 0, r = 0;
153
153
  return function() {
154
154
  var n = Es(), o = Os - (n - r);
@@ -160,14 +160,14 @@ function ws(t) {
160
160
  return t.apply(void 0, arguments);
161
161
  };
162
162
  }
163
- function $s(t) {
163
+ function ws(t) {
164
164
  return function() {
165
165
  return t;
166
166
  };
167
167
  }
168
168
  var he = function() {
169
169
  try {
170
- var t = $t(Object, "defineProperty");
170
+ var t = wt(Object, "defineProperty");
171
171
  return t({}, "", {}), t;
172
172
  } catch {
173
173
  }
@@ -175,10 +175,10 @@ var he = function() {
175
175
  return he(t, "toString", {
176
176
  configurable: !0,
177
177
  enumerable: !1,
178
- value: $s(e),
178
+ value: ws(e),
179
179
  writable: !0
180
180
  });
181
- } : lo, Ns = ws(Cs), js = 9007199254740991, xs = /^(?:0|[1-9]\d*)$/;
181
+ } : lo, Ns = $s(Cs), js = 9007199254740991, xs = /^(?:0|[1-9]\d*)$/;
182
182
  function fo(t, e) {
183
183
  var r = typeof t;
184
184
  return e = e ?? js, !!e && (r == "number" || r != "symbol" && xs.test(t)) && t > -1 && t % 1 == 0 && t < e;
@@ -267,9 +267,9 @@ var ho = Object.prototype, Gs = ho.hasOwnProperty, zs = ho.propertyIsEnumerable,
267
267
  function ks() {
268
268
  return !1;
269
269
  }
270
- var go = typeof exports == "object" && exports && !exports.nodeType && exports, Zr = go && typeof module == "object" && module && !module.nodeType && module, Hs = Zr && Zr.exports === go, tn = Hs ? X.Buffer : void 0, Ws = tn ? tn.isBuffer : void 0, ge = Ws || ks, Js = "[object Arguments]", qs = "[object Array]", Ks = "[object Boolean]", Qs = "[object Date]", Ys = "[object Error]", Xs = "[object Function]", Zs = "[object Map]", ti = "[object Number]", ei = "[object Object]", ri = "[object RegExp]", ni = "[object Set]", oi = "[object String]", ai = "[object WeakMap]", si = "[object ArrayBuffer]", ii = "[object DataView]", ci = "[object Float32Array]", ui = "[object Float64Array]", li = "[object Int8Array]", fi = "[object Int16Array]", di = "[object Int32Array]", pi = "[object Uint8Array]", hi = "[object Uint8ClampedArray]", gi = "[object Uint16Array]", vi = "[object Uint32Array]", M = {};
270
+ var go = typeof exports == "object" && exports && !exports.nodeType && exports, Zr = go && typeof module == "object" && module && !module.nodeType && module, Hs = Zr && Zr.exports === go, tn = Hs ? X.Buffer : void 0, Js = tn ? tn.isBuffer : void 0, ge = Js || ks, Ws = "[object Arguments]", qs = "[object Array]", Ks = "[object Boolean]", Qs = "[object Date]", Ys = "[object Error]", Xs = "[object Function]", Zs = "[object Map]", ti = "[object Number]", ei = "[object Object]", ri = "[object RegExp]", ni = "[object Set]", oi = "[object String]", ai = "[object WeakMap]", si = "[object ArrayBuffer]", ii = "[object DataView]", ci = "[object Float32Array]", ui = "[object Float64Array]", li = "[object Int8Array]", fi = "[object Int16Array]", di = "[object Int32Array]", pi = "[object Uint8Array]", hi = "[object Uint8ClampedArray]", gi = "[object Uint16Array]", vi = "[object Uint32Array]", M = {};
271
271
  M[ci] = M[ui] = M[li] = M[fi] = M[di] = M[pi] = M[hi] = M[gi] = M[vi] = !0;
272
- M[Js] = M[qs] = M[si] = M[Ks] = M[ii] = M[Qs] = M[Ys] = M[Xs] = M[Zs] = M[ti] = M[ei] = M[ri] = M[ni] = M[oi] = M[ai] = !1;
272
+ M[Ws] = M[qs] = M[si] = M[Ks] = M[ii] = M[Qs] = M[Ys] = M[Xs] = M[Zs] = M[ti] = M[ei] = M[ri] = M[ni] = M[oi] = M[ai] = !1;
273
273
  function mi(t) {
274
274
  return ft(t) && po(t.length) && !!M[Ot(t)];
275
275
  }
@@ -278,9 +278,9 @@ function yi(t) {
278
278
  return t(e);
279
279
  };
280
280
  }
281
- var vo = typeof exports == "object" && exports && !exports.nodeType && exports, Wt = vo && typeof module == "object" && module && !module.nodeType && module, bi = Wt && Wt.exports === vo, Pe = bi && io.process, en = function() {
281
+ var vo = typeof exports == "object" && exports && !exports.nodeType && exports, Jt = vo && typeof module == "object" && module && !module.nodeType && module, bi = Jt && Jt.exports === vo, Pe = bi && io.process, en = function() {
282
282
  try {
283
- var t = Wt && Wt.require && Wt.require("util").types;
283
+ var t = Jt && Jt.require && Jt.require("util").types;
284
284
  return t || Pe && Pe.binding && Pe.binding("util");
285
285
  } catch {
286
286
  }
@@ -300,17 +300,17 @@ function yo(t, e) {
300
300
  return t(e(r));
301
301
  };
302
302
  }
303
- var Oi = yo(Object.keys, Object), Ei = Object.prototype, wi = Ei.hasOwnProperty;
304
- function $i(t) {
303
+ var Oi = yo(Object.keys, Object), Ei = Object.prototype, $i = Ei.hasOwnProperty;
304
+ function wi(t) {
305
305
  if (!hr(t))
306
306
  return Oi(t);
307
307
  var e = [];
308
308
  for (var r in Object(t))
309
- wi.call(t, r) && r != "constructor" && e.push(r);
309
+ $i.call(t, r) && r != "constructor" && e.push(r);
310
310
  return e;
311
311
  }
312
312
  function Ci(t) {
313
- return Oe(t) ? mo(t) : $i(t);
313
+ return Oe(t) ? mo(t) : wi(t);
314
314
  }
315
315
  function Ni(t) {
316
316
  var e = [];
@@ -331,7 +331,7 @@ function Ai(t) {
331
331
  function bo(t) {
332
332
  return Oe(t) ? mo(t, !0) : Ai(t);
333
333
  }
334
- var Qt = $t(Object, "create");
334
+ var Qt = wt(Object, "create");
335
335
  function Ti() {
336
336
  this.__data__ = Qt ? Qt(null) : {}, this.size = 0;
337
337
  }
@@ -387,11 +387,11 @@ function Hi(t) {
387
387
  var n = e.length - 1;
388
388
  return r == n ? e.pop() : ki.call(e, r, 1), --this.size, !0;
389
389
  }
390
- function Wi(t) {
390
+ function Ji(t) {
391
391
  var e = this.__data__, r = Ee(e, t);
392
392
  return r < 0 ? void 0 : e[r][1];
393
393
  }
394
- function Ji(t) {
394
+ function Wi(t) {
395
395
  return Ee(this.__data__, t) > -1;
396
396
  }
397
397
  function qi(t, e) {
@@ -407,10 +407,10 @@ function at(t) {
407
407
  }
408
408
  at.prototype.clear = Gi;
409
409
  at.prototype.delete = Hi;
410
- at.prototype.get = Wi;
411
- at.prototype.has = Ji;
410
+ at.prototype.get = Ji;
411
+ at.prototype.has = Wi;
412
412
  at.prototype.set = qi;
413
- var Yt = $t(X, "Map");
413
+ var Yt = wt(X, "Map");
414
414
  function Ki() {
415
415
  this.size = 0, this.__data__ = {
416
416
  hash: new bt(),
@@ -422,22 +422,22 @@ function Qi(t) {
422
422
  var e = typeof t;
423
423
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
424
424
  }
425
- function we(t, e) {
425
+ function $e(t, e) {
426
426
  var r = t.__data__;
427
427
  return Qi(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
428
428
  }
429
429
  function Yi(t) {
430
- var e = we(this, t).delete(t);
430
+ var e = $e(this, t).delete(t);
431
431
  return this.size -= e ? 1 : 0, e;
432
432
  }
433
433
  function Xi(t) {
434
- return we(this, t).get(t);
434
+ return $e(this, t).get(t);
435
435
  }
436
436
  function Zi(t) {
437
- return we(this, t).has(t);
437
+ return $e(this, t).has(t);
438
438
  }
439
439
  function tc(t, e) {
440
- var r = we(this, t), n = r.size;
440
+ var r = $e(this, t), n = r.size;
441
441
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
442
442
  }
443
443
  function Ct(t) {
@@ -488,7 +488,7 @@ function Eo(t) {
488
488
  function mc(t) {
489
489
  return t.split("");
490
490
  }
491
- var wo = "\\ud800-\\udfff", yc = "\\u0300-\\u036f", bc = "\\ufe20-\\ufe2f", _c = "\\u20d0-\\u20ff", Sc = yc + bc + _c, Oc = "\\ufe0e\\ufe0f", Ec = "[" + wo + "]", He = "[" + Sc + "]", We = "\\ud83c[\\udffb-\\udfff]", wc = "(?:" + He + "|" + We + ")", $o = "[^" + wo + "]", Co = "(?:\\ud83c[\\udde6-\\uddff]){2}", No = "[\\ud800-\\udbff][\\udc00-\\udfff]", $c = "\\u200d", jo = wc + "?", xo = "[" + Oc + "]?", Cc = "(?:" + $c + "(?:" + [$o, Co, No].join("|") + ")" + xo + jo + ")*", Nc = xo + jo + Cc, jc = "(?:" + [$o + He + "?", He, Co, No, Ec].join("|") + ")", xc = RegExp(We + "(?=" + We + ")|" + jc + Nc, "g");
491
+ var $o = "\\ud800-\\udfff", yc = "\\u0300-\\u036f", bc = "\\ufe20-\\ufe2f", _c = "\\u20d0-\\u20ff", Sc = yc + bc + _c, Oc = "\\ufe0e\\ufe0f", Ec = "[" + $o + "]", He = "[" + Sc + "]", Je = "\\ud83c[\\udffb-\\udfff]", $c = "(?:" + He + "|" + Je + ")", wo = "[^" + $o + "]", Co = "(?:\\ud83c[\\udde6-\\uddff]){2}", No = "[\\ud800-\\udbff][\\udc00-\\udfff]", wc = "\\u200d", jo = $c + "?", xo = "[" + Oc + "]?", Cc = "(?:" + wc + "(?:" + [wo, Co, No].join("|") + ")" + xo + jo + ")*", Nc = xo + jo + Cc, jc = "(?:" + [wo + He + "?", He, Co, No, Ec].join("|") + ")", xc = RegExp(Je + "(?=" + Je + ")|" + jc + Nc, "g");
492
492
  function Ac(t) {
493
493
  return t.match(xc) || [];
494
494
  }
@@ -554,9 +554,9 @@ function zc(t, e) {
554
554
  function kc() {
555
555
  return [];
556
556
  }
557
- var Hc = Object.prototype, Wc = Hc.propertyIsEnumerable, an = Object.getOwnPropertySymbols, Jc = an ? function(t) {
557
+ var Hc = Object.prototype, Jc = Hc.propertyIsEnumerable, an = Object.getOwnPropertySymbols, Wc = an ? function(t) {
558
558
  return t == null ? [] : (t = Object(t), zc(an(t), function(e) {
559
- return Wc.call(t, e);
559
+ return Jc.call(t, e);
560
560
  }));
561
561
  } : kc;
562
562
  function qc(t, e, r) {
@@ -564,11 +564,11 @@ function qc(t, e, r) {
564
564
  return ot(t) ? n : ec(n, r(t));
565
565
  }
566
566
  function sn(t) {
567
- return qc(t, Ci, Jc);
567
+ return qc(t, Ci, Wc);
568
568
  }
569
- var Je = $t(X, "DataView"), qe = $t(X, "Promise"), Ke = $t(X, "Set"), cn = "[object Map]", Kc = "[object Object]", un = "[object Promise]", ln = "[object Set]", fn = "[object WeakMap]", dn = "[object DataView]", Qc = wt(Je), Yc = wt(Yt), Xc = wt(qe), Zc = wt(Ke), tu = wt(ze), ut = Ot;
570
- (Je && ut(new Je(new ArrayBuffer(1))) != dn || Yt && ut(new Yt()) != cn || qe && ut(qe.resolve()) != un || Ke && ut(new Ke()) != ln || ze && ut(new ze()) != fn) && (ut = function(t) {
571
- var e = Ot(t), r = e == Kc ? t.constructor : void 0, n = r ? wt(r) : "";
569
+ var We = wt(X, "DataView"), qe = wt(X, "Promise"), Ke = wt(X, "Set"), cn = "[object Map]", Kc = "[object Object]", un = "[object Promise]", ln = "[object Set]", fn = "[object WeakMap]", dn = "[object DataView]", Qc = $t(We), Yc = $t(Yt), Xc = $t(qe), Zc = $t(Ke), tu = $t(ze), ut = Ot;
570
+ (We && ut(new We(new ArrayBuffer(1))) != dn || Yt && ut(new Yt()) != cn || qe && ut(qe.resolve()) != un || Ke && ut(new Ke()) != ln || ze && ut(new ze()) != fn) && (ut = function(t) {
571
+ var e = Ot(t), r = e == Kc ? t.constructor : void 0, n = r ? $t(r) : "";
572
572
  if (n)
573
573
  switch (n) {
574
574
  case Qc:
@@ -629,9 +629,9 @@ function To(t, e, r, n, o, a) {
629
629
  return u == e && d == t;
630
630
  var f = -1, l = !0, h = r & lu ? new me() : void 0;
631
631
  for (a.set(t, e), a.set(e, t); ++f < i; ) {
632
- var g = t[f], b = e[f];
632
+ var v = t[f], _ = e[f];
633
633
  if (n)
634
- var p = s ? n(b, g, f, e, t, a) : n(g, b, f, t, e, a);
634
+ var p = s ? n(_, v, f, e, t, a) : n(v, _, f, t, e, a);
635
635
  if (p !== void 0) {
636
636
  if (p)
637
637
  continue;
@@ -639,14 +639,14 @@ function To(t, e, r, n, o, a) {
639
639
  break;
640
640
  }
641
641
  if (h) {
642
- if (!iu(e, function(v, m) {
643
- if (!cu(h, m) && (g === v || o(g, v, r, n, a)))
642
+ if (!iu(e, function(g, m) {
643
+ if (!cu(h, m) && (v === g || o(v, g, r, n, a)))
644
644
  return h.push(m);
645
645
  })) {
646
646
  l = !1;
647
647
  break;
648
648
  }
649
- } else if (!(g === b || o(g, b, r, n, a))) {
649
+ } else if (!(v === _ || o(v, _, r, n, a))) {
650
650
  l = !1;
651
651
  break;
652
652
  }
@@ -665,14 +665,14 @@ function du(t) {
665
665
  r[++e] = n;
666
666
  }), r;
667
667
  }
668
- var pu = 1, hu = 2, gu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", yu = "[object Map]", bu = "[object Number]", _u = "[object RegExp]", Su = "[object Set]", Ou = "[object String]", Eu = "[object Symbol]", wu = "[object ArrayBuffer]", $u = "[object DataView]", pn = lt ? lt.prototype : void 0, Ie = pn ? pn.valueOf : void 0;
668
+ var pu = 1, hu = 2, gu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", yu = "[object Map]", bu = "[object Number]", _u = "[object RegExp]", Su = "[object Set]", Ou = "[object String]", Eu = "[object Symbol]", $u = "[object ArrayBuffer]", wu = "[object DataView]", pn = lt ? lt.prototype : void 0, Ie = pn ? pn.valueOf : void 0;
669
669
  function Cu(t, e, r, n, o, a, s) {
670
670
  switch (r) {
671
- case $u:
671
+ case wu:
672
672
  if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
673
673
  return !1;
674
674
  t = t.buffer, e = e.buffer;
675
- case wu:
675
+ case $u:
676
676
  return !(t.byteLength != e.byteLength || !a(new ve(t), new ve(e)));
677
677
  case gu:
678
678
  case vu:
@@ -711,27 +711,27 @@ function Au(t, e, r, n, o, a) {
711
711
  if (!(s ? l in e : xu.call(e, l)))
712
712
  return !1;
713
713
  }
714
- var h = a.get(t), g = a.get(e);
715
- if (h && g)
716
- return h == e && g == t;
717
- var b = !0;
714
+ var h = a.get(t), v = a.get(e);
715
+ if (h && v)
716
+ return h == e && v == t;
717
+ var _ = !0;
718
718
  a.set(t, e), a.set(e, t);
719
719
  for (var p = s; ++f < c; ) {
720
720
  l = i[f];
721
- var v = t[l], m = e[l];
721
+ var g = t[l], m = e[l];
722
722
  if (n)
723
- var y = s ? n(m, v, l, e, t, a) : n(v, m, l, t, e, a);
724
- if (!(y === void 0 ? v === m || o(v, m, r, n, a) : y)) {
725
- b = !1;
723
+ var b = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
724
+ if (!(b === void 0 ? g === m || o(g, m, r, n, a) : b)) {
725
+ _ = !1;
726
726
  break;
727
727
  }
728
728
  p || (p = l == "constructor");
729
729
  }
730
- if (b && !p) {
731
- var _ = t.constructor, S = e.constructor;
732
- _ != S && "constructor" in t && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof S == "function" && S instanceof S) && (b = !1);
730
+ if (_ && !p) {
731
+ var y = t.constructor, S = e.constructor;
732
+ y != S && "constructor" in t && "constructor" in e && !(typeof y == "function" && y instanceof y && typeof S == "function" && S instanceof S) && (_ = !1);
733
733
  }
734
- return a.delete(t), a.delete(e), b;
734
+ return a.delete(t), a.delete(e), _;
735
735
  }
736
736
  var Tu = 1, hn = "[object Arguments]", gn = "[object Array]", le = "[object Object]", Ru = Object.prototype, vn = Ru.hasOwnProperty;
737
737
  function Mu(t, e, r, n, o, a) {
@@ -746,10 +746,10 @@ function Mu(t, e, r, n, o, a) {
746
746
  if (l && !d)
747
747
  return a || (a = new nt()), s || gr(t) ? To(t, e, r, n, o, a) : Cu(t, e, c, r, n, o, a);
748
748
  if (!(r & Tu)) {
749
- var h = d && vn.call(t, "__wrapped__"), g = f && vn.call(e, "__wrapped__");
750
- if (h || g) {
751
- var b = h ? t.value() : t, p = g ? e.value() : e;
752
- return a || (a = new nt()), o(b, p, r, n, a);
749
+ var h = d && vn.call(t, "__wrapped__"), v = f && vn.call(e, "__wrapped__");
750
+ if (h || v) {
751
+ var _ = h ? t.value() : t, p = v ? e.value() : e;
752
+ return a || (a = new nt()), o(_, p, r, n, a);
753
753
  }
754
754
  }
755
755
  return l ? (a || (a = new nt()), Au(t, e, r, n, o, a)) : !1;
@@ -789,8 +789,8 @@ function Fu(t, e, r, n, o, a, s) {
789
789
  }
790
790
  var d = a ? a(i, c, r + "", t, e, s) : void 0, f = d === void 0;
791
791
  if (f) {
792
- var l = ot(c), h = !l && ge(c), g = !l && !h && gr(c);
793
- d = c, l || h || g ? ot(i) ? d = i : Du(i) ? d = _s(i) : h ? (f = !1, d = Gc(c)) : g ? (f = !1, d = ru(c)) : d = [] : Ft(c) || ke(c) ? (d = i, ke(i) ? d = Lu(i) : (!Et(i) || dr(i)) && (d = nu(c))) : f = !1;
792
+ var l = ot(c), h = !l && ge(c), v = !l && !h && gr(c);
793
+ d = c, l || h || v ? ot(i) ? d = i : Du(i) ? d = _s(i) : h ? (f = !1, d = Gc(c)) : v ? (f = !1, d = ru(c)) : d = [] : Ft(c) || ke(c) ? (d = i, ke(i) ? d = Lu(i) : (!Et(i) || dr(i)) && (d = nu(c))) : f = !1;
794
794
  }
795
795
  f && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), Qe(t, r, d);
796
796
  }
@@ -880,7 +880,7 @@ const At = (t, e) => {
880
880
  return {
881
881
  [c]: function(...d) {
882
882
  let f;
883
- const h = Object.keys(i || {}).map((g) => `var ${g} = $ACTION_VAR_SPACE[${JSON.stringify(g)}];`);
883
+ const h = Object.keys(i || {}).map((v) => `var ${v} = $ACTION_VAR_SPACE[${JSON.stringify(v)}];`);
884
884
  try {
885
885
  return f = `
886
886
  var $$$__args__$$$ = Array.from(arguments);
@@ -892,8 +892,9 @@ const At = (t, e) => {
892
892
  var $CTX = __extraParams.$$context;
893
893
  var $$context = $CTX;
894
894
  var $PARAMS = $$context.params || {};
895
- var PARAMS_RUNTIME = $$$__args__$$$[0];
895
+ var $EVENT_PARAMS = $$$__args__$$$[0];
896
896
  var $Event = $$$__args__$$$[0];
897
+ var $EVENT = $$$__args__$$$[0];
897
898
  var $ARGS = $$$__args__$$$;
898
899
 
899
900
  var $ACTION_VAR_SPACE = __extraParams.actionVariableSpace;
@@ -931,8 +932,8 @@ ${mn("$U_STATE", {
931
932
  }
932
933
  return $$_run_$$();
933
934
  `, new Function(f)(...d, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: i, nodeModel: s });
934
- } catch (g) {
935
- console.warn(g);
935
+ } catch (v) {
936
+ console.warn(v);
936
937
  }
937
938
  }
938
939
  }[c];
@@ -962,7 +963,7 @@ ${mn("$U_STATE", {
962
963
  o && (r[n.globalName] = o, o.__esModule && o.default && (r[n.globalName] = o.default));
963
964
  }
964
965
  }), r;
965
- }, wv = (t, e = 1) => {
966
+ }, $v = (t, e = 1) => {
966
967
  let r = 0, n = t, o = {}, a = {};
967
968
  for (; r < e; )
968
969
  Object.keys(n).forEach((s) => {
@@ -983,10 +984,10 @@ ${mn("$U_STATE", {
983
984
  return e.forEach((n) => {
984
985
  t[n.name] && (r[n.name] = t[n.name]);
985
986
  }), r;
986
- }, $v = (t, e) => Io(t, e), Cv = (t, e) => Io(t, e), yn = (t) => {
987
+ }, wv = (t, e) => Io(t, e), Cv = (t, e) => Io(t, e), yn = (t) => {
987
988
  var r;
988
989
  return ((r = t.value.css) == null ? void 0 : r.class) || `c_${t.id}`;
989
- }, Wu = (t, e) => {
990
+ }, Ju = (t, e) => {
990
991
  const r = t.split(".");
991
992
  let n, o = e;
992
993
  return r.forEach((a) => {
@@ -997,16 +998,16 @@ ${mn("$U_STATE", {
997
998
  ...t
998
999
  };
999
1000
  return r.__proto__ = e, r;
1000
- }, Ju = {}, _n = (t) => {
1001
+ }, Wu = {}, _n = (t) => {
1001
1002
  let e;
1002
1003
  const r = /* @__PURE__ */ new Set(), n = (d, f) => {
1003
1004
  const l = typeof d == "function" ? d(e) : d;
1004
1005
  if (!Object.is(l, e)) {
1005
1006
  const h = e;
1006
- e = f ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), r.forEach((g) => g(e, h));
1007
+ e = f ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), r.forEach((v) => v(e, h));
1007
1008
  }
1008
1009
  }, o = () => e, c = { setState: n, getState: o, getInitialState: () => u, subscribe: (d) => (r.add(d), () => r.delete(d)), destroy: () => {
1009
- (Ju ? "production" : void 0) !== "production" && console.warn(
1010
+ (Wu ? "production" : void 0) !== "production" && console.warn(
1010
1011
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
1011
1012
  ), r.clear();
1012
1013
  } }, u = e = t(n, o, c);
@@ -1014,7 +1015,7 @@ ${mn("$U_STATE", {
1014
1015
  }, qu = (t) => t ? _n(t) : _n;
1015
1016
  class Ku {
1016
1017
  constructor() {
1017
- w(this, "storeMap", /* @__PURE__ */ new Map());
1018
+ $(this, "storeMap", /* @__PURE__ */ new Map());
1018
1019
  }
1019
1020
  addStore(e, r) {
1020
1021
  const n = qu(r);
@@ -1065,7 +1066,7 @@ class Ku {
1065
1066
  }
1066
1067
  class Qu {
1067
1068
  constructor() {
1068
- w(this, "varSpace", /* @__PURE__ */ new Map());
1069
+ $(this, "varSpace", /* @__PURE__ */ new Map());
1069
1070
  }
1070
1071
  get(e) {
1071
1072
  return this.varSpace.get(e);
@@ -1088,7 +1089,7 @@ class Qu {
1088
1089
  }
1089
1090
  class Do {
1090
1091
  constructor() {
1091
- w(this, "refMap", /* @__PURE__ */ new Map());
1092
+ $(this, "refMap", /* @__PURE__ */ new Map());
1092
1093
  }
1093
1094
  get(e) {
1094
1095
  return this.refMap.get(e);
@@ -1103,7 +1104,7 @@ class Do {
1103
1104
  this.refMap.clear();
1104
1105
  }
1105
1106
  }
1106
- var Yu = Object.defineProperty, Xu = (t, e, r) => e in t ? Yu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, C = (t, e, r) => Xu(t, typeof e != "symbol" ? e + "" : e, r), Lo = typeof global == "object" && global && global.Object === Object && global, Zu = typeof self == "object" && self && self.Object === Object && self, Z = Lo || Zu || Function("return this")(), W = Z.Symbol, Fo = Object.prototype, tl = Fo.hasOwnProperty, el = Fo.toString, Ht = W ? W.toStringTag : void 0;
1107
+ var Yu = Object.defineProperty, Xu = (t, e, r) => e in t ? Yu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, C = (t, e, r) => Xu(t, typeof e != "symbol" ? e + "" : e, r), Lo = typeof global == "object" && global && global.Object === Object && global, Zu = typeof self == "object" && self && self.Object === Object && self, Z = Lo || Zu || Function("return this")(), J = Z.Symbol, Fo = Object.prototype, tl = Fo.hasOwnProperty, el = Fo.toString, Ht = J ? J.toStringTag : void 0;
1107
1108
  function rl(t) {
1108
1109
  var e = tl.call(t, Ht), r = t[Ht];
1109
1110
  try {
@@ -1118,7 +1119,7 @@ var nl = Object.prototype, ol = nl.toString;
1118
1119
  function al(t) {
1119
1120
  return ol.call(t);
1120
1121
  }
1121
- var sl = "[object Null]", il = "[object Undefined]", Sn = W ? W.toStringTag : void 0;
1122
+ var sl = "[object Null]", il = "[object Undefined]", Sn = J ? J.toStringTag : void 0;
1122
1123
  function Nt(t) {
1123
1124
  return t == null ? t === void 0 ? il : sl : Sn && Sn in Object(t) ? rl(t) : al(t);
1124
1125
  }
@@ -1134,7 +1135,7 @@ function mr(t, e) {
1134
1135
  o[r] = e(t[r], r, t);
1135
1136
  return o;
1136
1137
  }
1137
- var L = Array.isArray, On = W ? W.prototype : void 0, En = On ? On.toString : void 0;
1138
+ var L = Array.isArray, On = J ? J.prototype : void 0, En = On ? On.toString : void 0;
1138
1139
  function Vo(t) {
1139
1140
  if (typeof t == "string")
1140
1141
  return t;
@@ -1159,12 +1160,12 @@ function br(t) {
1159
1160
  var e = Nt(t);
1160
1161
  return e == ll || e == fl || e == ul || e == dl;
1161
1162
  }
1162
- var De = Z["__core-js_shared__"], wn = function() {
1163
+ var De = Z["__core-js_shared__"], $n = function() {
1163
1164
  var t = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
1164
1165
  return t ? "Symbol(src)_1." + t : "";
1165
1166
  }();
1166
1167
  function pl(t) {
1167
- return !!wn && wn in t;
1168
+ return !!$n && $n in t;
1168
1169
  }
1169
1170
  var hl = Function.prototype, gl = hl.toString;
1170
1171
  function jt(t) {
@@ -1189,21 +1190,21 @@ function El(t) {
1189
1190
  var e = br(t) ? Ol : ml;
1190
1191
  return e.test(jt(t));
1191
1192
  }
1192
- function wl(t, e) {
1193
+ function $l(t, e) {
1193
1194
  return t == null ? void 0 : t[e];
1194
1195
  }
1195
1196
  function xt(t, e) {
1196
- var r = wl(t, e);
1197
+ var r = $l(t, e);
1197
1198
  return El(r) ? r : void 0;
1198
1199
  }
1199
- var Xe = xt(Z, "WeakMap"), $n = Object.create, $l = /* @__PURE__ */ function() {
1200
+ var Xe = xt(Z, "WeakMap"), wn = Object.create, wl = /* @__PURE__ */ function() {
1200
1201
  function t() {
1201
1202
  }
1202
1203
  return function(e) {
1203
1204
  if (!Q(e))
1204
1205
  return {};
1205
- if ($n)
1206
- return $n(e);
1206
+ if (wn)
1207
+ return wn(e);
1207
1208
  t.prototype = e;
1208
1209
  var r = new t();
1209
1210
  return t.prototype = void 0, r;
@@ -1290,7 +1291,7 @@ function Vl(t, e) {
1290
1291
  return !!r && Fl(t, e, 0) > -1;
1291
1292
  }
1292
1293
  var Ul = 9007199254740991, Bl = /^(?:0|[1-9]\d*)$/;
1293
- function $e(t, e) {
1294
+ function we(t, e) {
1294
1295
  var r = typeof t;
1295
1296
  return e = e ?? Ul, !!e && (r == "number" || r != "symbol" && Bl.test(t)) && t > -1 && t % 1 == 0 && t < e;
1296
1297
  }
@@ -1344,9 +1345,9 @@ function Hl(t, e, r) {
1344
1345
  if (!Q(r))
1345
1346
  return !1;
1346
1347
  var n = typeof e;
1347
- return (n == "number" ? Ce(r) && $e(e, r.length) : n == "string" && e in r) ? ie(r[e], t) : !1;
1348
+ return (n == "number" ? Ce(r) && we(e, r.length) : n == "string" && e in r) ? ie(r[e], t) : !1;
1348
1349
  }
1349
- function Wl(t) {
1350
+ function Jl(t) {
1350
1351
  return zo(function(e, r) {
1351
1352
  var n = -1, o = r.length, a = o > 1 ? r[o - 1] : void 0, s = o > 2 ? r[2] : void 0;
1352
1353
  for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, s && Hl(r[0], r[1], s) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
@@ -1356,9 +1357,9 @@ function Wl(t) {
1356
1357
  return e;
1357
1358
  });
1358
1359
  }
1359
- var Jl = Object.prototype;
1360
+ var Wl = Object.prototype;
1360
1361
  function Er(t) {
1361
- var e = t && t.constructor, r = typeof e == "function" && e.prototype || Jl;
1362
+ var e = t && t.constructor, r = typeof e == "function" && e.prototype || Wl;
1362
1363
  return t === r;
1363
1364
  }
1364
1365
  function ql(t, e) {
@@ -1378,32 +1379,32 @@ var ko = Object.prototype, Ql = ko.hasOwnProperty, Yl = ko.propertyIsEnumerable,
1378
1379
  function Xl() {
1379
1380
  return !1;
1380
1381
  }
1381
- var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, jn = Ho && typeof module == "object" && module && !module.nodeType && module, Zl = jn && jn.exports === Ho, xn = Zl ? Z.Buffer : void 0, tf = xn ? xn.isBuffer : void 0, Zt = tf || Xl, ef = "[object Arguments]", rf = "[object Array]", nf = "[object Boolean]", of = "[object Date]", af = "[object Error]", sf = "[object Function]", cf = "[object Map]", uf = "[object Number]", lf = "[object Object]", ff = "[object RegExp]", df = "[object Set]", pf = "[object String]", hf = "[object WeakMap]", gf = "[object ArrayBuffer]", vf = "[object DataView]", mf = "[object Float32Array]", yf = "[object Float64Array]", bf = "[object Int8Array]", _f = "[object Int16Array]", Sf = "[object Int32Array]", Of = "[object Uint8Array]", Ef = "[object Uint8ClampedArray]", wf = "[object Uint16Array]", $f = "[object Uint32Array]", P = {};
1382
- P[mf] = P[yf] = P[bf] = P[_f] = P[Sf] = P[Of] = P[Ef] = P[wf] = P[$f] = !0;
1382
+ var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, jn = Ho && typeof module == "object" && module && !module.nodeType && module, Zl = jn && jn.exports === Ho, xn = Zl ? Z.Buffer : void 0, tf = xn ? xn.isBuffer : void 0, Zt = tf || Xl, ef = "[object Arguments]", rf = "[object Array]", nf = "[object Boolean]", of = "[object Date]", af = "[object Error]", sf = "[object Function]", cf = "[object Map]", uf = "[object Number]", lf = "[object Object]", ff = "[object RegExp]", df = "[object Set]", pf = "[object String]", hf = "[object WeakMap]", gf = "[object ArrayBuffer]", vf = "[object DataView]", mf = "[object Float32Array]", yf = "[object Float64Array]", bf = "[object Int8Array]", _f = "[object Int16Array]", Sf = "[object Int32Array]", Of = "[object Uint8Array]", Ef = "[object Uint8ClampedArray]", $f = "[object Uint16Array]", wf = "[object Uint32Array]", P = {};
1383
+ P[mf] = P[yf] = P[bf] = P[_f] = P[Sf] = P[Of] = P[Ef] = P[$f] = P[wf] = !0;
1383
1384
  P[ef] = P[rf] = P[gf] = P[nf] = P[vf] = P[of] = P[af] = P[sf] = P[cf] = P[uf] = P[lf] = P[ff] = P[df] = P[pf] = P[hf] = !1;
1384
1385
  function Cf(t) {
1385
1386
  return Y(t) && Or(t.length) && !!P[Nt(t)];
1386
1387
  }
1387
- function wr(t) {
1388
+ function $r(t) {
1388
1389
  return function(e) {
1389
1390
  return t(e);
1390
1391
  };
1391
1392
  }
1392
- var Wo = typeof exports == "object" && exports && !exports.nodeType && exports, Jt = Wo && typeof module == "object" && module && !module.nodeType && module, Nf = Jt && Jt.exports === Wo, Le = Nf && Lo.process, Mt = function() {
1393
+ var Jo = typeof exports == "object" && exports && !exports.nodeType && exports, Wt = Jo && typeof module == "object" && module && !module.nodeType && module, Nf = Wt && Wt.exports === Jo, Le = Nf && Lo.process, Mt = function() {
1393
1394
  try {
1394
- var t = Jt && Jt.require && Jt.require("util").types;
1395
+ var t = Wt && Wt.require && Wt.require("util").types;
1395
1396
  return t || Le && Le.binding && Le.binding("util");
1396
1397
  } catch {
1397
1398
  }
1398
- }(), An = Mt && Mt.isTypedArray, $r = An ? wr(An) : Cf, jf = Object.prototype, xf = jf.hasOwnProperty;
1399
- function Jo(t, e) {
1400
- var r = L(t), n = !r && Xt(t), o = !r && !n && Zt(t), a = !r && !n && !o && $r(t), s = r || n || o || a, i = s ? ql(t.length, String) : [], c = i.length;
1399
+ }(), An = Mt && Mt.isTypedArray, wr = An ? $r(An) : Cf, jf = Object.prototype, xf = jf.hasOwnProperty;
1400
+ function Wo(t, e) {
1401
+ var r = L(t), n = !r && Xt(t), o = !r && !n && Zt(t), a = !r && !n && !o && wr(t), s = r || n || o || a, i = s ? ql(t.length, String) : [], c = i.length;
1401
1402
  for (var u in t)
1402
1403
  (e || xf.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1403
1404
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1404
1405
  o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1405
1406
  a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
1406
- $e(u, c))) && i.push(u);
1407
+ we(u, c))) && i.push(u);
1407
1408
  return i;
1408
1409
  }
1409
1410
  function qo(t, e) {
@@ -1421,7 +1422,7 @@ function Mf(t) {
1421
1422
  return e;
1422
1423
  }
1423
1424
  function Ne(t) {
1424
- return Ce(t) ? Jo(t) : Mf(t);
1425
+ return Ce(t) ? Wo(t) : Mf(t);
1425
1426
  }
1426
1427
  function Pf(t) {
1427
1428
  var e = [];
@@ -1440,7 +1441,7 @@ function Lf(t) {
1440
1441
  return r;
1441
1442
  }
1442
1443
  function ce(t) {
1443
- return Ce(t) ? Jo(t, !0) : Lf(t);
1444
+ return Ce(t) ? Wo(t, !0) : Lf(t);
1444
1445
  }
1445
1446
  var Ff = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Vf = /^\w*$/;
1446
1447
  function Cr(t, e) {
@@ -1466,10 +1467,10 @@ function Hf(t) {
1466
1467
  }
1467
1468
  return kf.call(e, t) ? e[t] : void 0;
1468
1469
  }
1469
- var Wf = Object.prototype, Jf = Wf.hasOwnProperty;
1470
+ var Jf = Object.prototype, Wf = Jf.hasOwnProperty;
1470
1471
  function qf(t) {
1471
1472
  var e = this.__data__;
1472
- return te ? e[t] !== void 0 : Jf.call(e, t);
1473
+ return te ? e[t] !== void 0 : Wf.call(e, t);
1473
1474
  }
1474
1475
  var Kf = "__lodash_hash_undefined__";
1475
1476
  function Qf(t, e) {
@@ -1624,7 +1625,7 @@ function jr(t, e) {
1624
1625
  t[o + r] = e[r];
1625
1626
  return t;
1626
1627
  }
1627
- var Tn = W ? W.isConcatSpreadable : void 0;
1628
+ var Tn = J ? J.isConcatSpreadable : void 0;
1628
1629
  function md(t) {
1629
1630
  return L(t) || Xt(t) || !!(Tn && t && t[Tn]);
1630
1631
  }
@@ -1643,17 +1644,17 @@ function yd(t) {
1643
1644
  function bd(t) {
1644
1645
  return Bo(Go(t, void 0, yd), t + "");
1645
1646
  }
1646
- var xr = qo(Object.getPrototypeOf, Object), _d = "[object Object]", Sd = Function.prototype, Od = Object.prototype, Yo = Sd.toString, Ed = Od.hasOwnProperty, wd = Yo.call(Object);
1647
- function U(t) {
1647
+ var xr = qo(Object.getPrototypeOf, Object), _d = "[object Object]", Sd = Function.prototype, Od = Object.prototype, Yo = Sd.toString, Ed = Od.hasOwnProperty, $d = Yo.call(Object);
1648
+ function B(t) {
1648
1649
  if (!Y(t) || Nt(t) != _d)
1649
1650
  return !1;
1650
1651
  var e = xr(t);
1651
1652
  if (e === null)
1652
1653
  return !0;
1653
1654
  var r = Ed.call(e, "constructor") && e.constructor;
1654
- return typeof r == "function" && r instanceof r && Yo.call(r) == wd;
1655
+ return typeof r == "function" && r instanceof r && Yo.call(r) == $d;
1655
1656
  }
1656
- function $d(t, e, r) {
1657
+ function wd(t, e, r) {
1657
1658
  var n = -1, o = t.length;
1658
1659
  e < 0 && (e = -e > o ? 0 : o + e), r = r > o ? o : r, r < 0 && (r += o), o = e > r ? 0 : r - e >>> 0, e >>>= 0;
1659
1660
  for (var a = Array(o); ++n < o; )
@@ -1742,8 +1743,8 @@ function Ze(t) {
1742
1743
  function Tr(t) {
1743
1744
  return ra(t, ce, ea);
1744
1745
  }
1745
- var tr = xt(Z, "DataView"), er = xt(Z, "Promise"), Tt = xt(Z, "Set"), Dn = "[object Map]", Bd = "[object Object]", Ln = "[object Promise]", Fn = "[object Set]", Vn = "[object WeakMap]", Un = "[object DataView]", Gd = jt(tr), zd = jt(ee), kd = jt(er), Hd = jt(Tt), Wd = jt(Xe), J = Nt;
1746
- (tr && J(new tr(new ArrayBuffer(1))) != Un || ee && J(new ee()) != Dn || er && J(er.resolve()) != Ln || Tt && J(new Tt()) != Fn || Xe && J(new Xe()) != Vn) && (J = function(t) {
1746
+ var tr = xt(Z, "DataView"), er = xt(Z, "Promise"), Tt = xt(Z, "Set"), Dn = "[object Map]", Bd = "[object Object]", Ln = "[object Promise]", Fn = "[object Set]", Vn = "[object WeakMap]", Un = "[object DataView]", Gd = jt(tr), zd = jt(ee), kd = jt(er), Hd = jt(Tt), Jd = jt(Xe), W = Nt;
1747
+ (tr && W(new tr(new ArrayBuffer(1))) != Un || ee && W(new ee()) != Dn || er && W(er.resolve()) != Ln || Tt && W(new Tt()) != Fn || Xe && W(new Xe()) != Vn) && (W = function(t) {
1747
1748
  var e = Nt(t), r = e == Bd ? t.constructor : void 0, n = r ? jt(r) : "";
1748
1749
  if (n)
1749
1750
  switch (n) {
@@ -1755,12 +1756,12 @@ var tr = xt(Z, "DataView"), er = xt(Z, "Promise"), Tt = xt(Z, "Set"), Dn = "[obj
1755
1756
  return Ln;
1756
1757
  case Hd:
1757
1758
  return Fn;
1758
- case Wd:
1759
+ case Jd:
1759
1760
  return Vn;
1760
1761
  }
1761
1762
  return e;
1762
1763
  });
1763
- var Jd = Object.prototype, qd = Jd.hasOwnProperty;
1764
+ var Wd = Object.prototype, qd = Wd.hasOwnProperty;
1764
1765
  function Kd(t) {
1765
1766
  var e = t.length, r = new t.constructor(e);
1766
1767
  return e && typeof t[0] == "string" && qd.call(t, "index") && (r.index = t.index, r.input = t.input), r;
@@ -1779,7 +1780,7 @@ function Xd(t) {
1779
1780
  var e = new t.constructor(t.source, Yd.exec(t));
1780
1781
  return e.lastIndex = t.lastIndex, e;
1781
1782
  }
1782
- var Bn = W ? W.prototype : void 0, Gn = Bn ? Bn.valueOf : void 0;
1783
+ var Bn = J ? J.prototype : void 0, Gn = Bn ? Bn.valueOf : void 0;
1783
1784
  function Zd(t) {
1784
1785
  return Gn ? Object(Gn.call(t)) : {};
1785
1786
  }
@@ -1822,18 +1823,18 @@ function bp(t, e, r) {
1822
1823
  }
1823
1824
  }
1824
1825
  function oa(t) {
1825
- return typeof t.constructor == "function" && !Er(t) ? $l(xr(t)) : {};
1826
+ return typeof t.constructor == "function" && !Er(t) ? wl(xr(t)) : {};
1826
1827
  }
1827
1828
  var _p = "[object Map]";
1828
1829
  function Sp(t) {
1829
- return Y(t) && J(t) == _p;
1830
+ return Y(t) && W(t) == _p;
1830
1831
  }
1831
- var zn = Mt && Mt.isMap, Op = zn ? wr(zn) : Sp, Ep = "[object Set]";
1832
- function wp(t) {
1833
- return Y(t) && J(t) == Ep;
1832
+ var zn = Mt && Mt.isMap, Op = zn ? $r(zn) : Sp, Ep = "[object Set]";
1833
+ function $p(t) {
1834
+ return Y(t) && W(t) == Ep;
1834
1835
  }
1835
- var kn = Mt && Mt.isSet, $p = kn ? wr(kn) : wp, Cp = 1, Np = 2, jp = 4, aa = "[object Arguments]", xp = "[object Array]", Ap = "[object Boolean]", Tp = "[object Date]", Rp = "[object Error]", sa = "[object Function]", Mp = "[object GeneratorFunction]", Pp = "[object Map]", Ip = "[object Number]", ia = "[object Object]", Dp = "[object RegExp]", Lp = "[object Set]", Fp = "[object String]", Vp = "[object Symbol]", Up = "[object WeakMap]", Bp = "[object ArrayBuffer]", Gp = "[object DataView]", zp = "[object Float32Array]", kp = "[object Float64Array]", Hp = "[object Int8Array]", Wp = "[object Int16Array]", Jp = "[object Int32Array]", qp = "[object Uint8Array]", Kp = "[object Uint8ClampedArray]", Qp = "[object Uint16Array]", Yp = "[object Uint32Array]", R = {};
1836
- R[aa] = R[xp] = R[Bp] = R[Gp] = R[Ap] = R[Tp] = R[zp] = R[kp] = R[Hp] = R[Wp] = R[Jp] = R[Pp] = R[Ip] = R[ia] = R[Dp] = R[Lp] = R[Fp] = R[Vp] = R[qp] = R[Kp] = R[Qp] = R[Yp] = !0;
1836
+ var kn = Mt && Mt.isSet, wp = kn ? $r(kn) : $p, Cp = 1, Np = 2, jp = 4, aa = "[object Arguments]", xp = "[object Array]", Ap = "[object Boolean]", Tp = "[object Date]", Rp = "[object Error]", sa = "[object Function]", Mp = "[object GeneratorFunction]", Pp = "[object Map]", Ip = "[object Number]", ia = "[object Object]", Dp = "[object RegExp]", Lp = "[object Set]", Fp = "[object String]", Vp = "[object Symbol]", Up = "[object WeakMap]", Bp = "[object ArrayBuffer]", Gp = "[object DataView]", zp = "[object Float32Array]", kp = "[object Float64Array]", Hp = "[object Int8Array]", Jp = "[object Int16Array]", Wp = "[object Int32Array]", qp = "[object Uint8Array]", Kp = "[object Uint8ClampedArray]", Qp = "[object Uint16Array]", Yp = "[object Uint32Array]", R = {};
1837
+ R[aa] = R[xp] = R[Bp] = R[Gp] = R[Ap] = R[Tp] = R[zp] = R[kp] = R[Hp] = R[Jp] = R[Wp] = R[Pp] = R[Ip] = R[ia] = R[Dp] = R[Lp] = R[Fp] = R[Vp] = R[qp] = R[Kp] = R[Qp] = R[Yp] = !0;
1837
1838
  R[Rp] = R[sa] = R[Up] = !1;
1838
1839
  function qt(t, e, r, n, o, a) {
1839
1840
  var s, i = e & Cp, c = e & Np, u = e & jp;
@@ -1846,7 +1847,7 @@ function qt(t, e, r, n, o, a) {
1846
1847
  if (s = Kd(t), !i)
1847
1848
  return Uo(t, s);
1848
1849
  } else {
1849
- var f = J(t), l = f == sa || f == Mp;
1850
+ var f = W(t), l = f == sa || f == Mp;
1850
1851
  if (Zt(t))
1851
1852
  return Zo(t, i);
1852
1853
  if (f == ia || f == aa || l && !o) {
@@ -1862,14 +1863,14 @@ function qt(t, e, r, n, o, a) {
1862
1863
  var h = a.get(t);
1863
1864
  if (h)
1864
1865
  return h;
1865
- a.set(t, s), $p(t) ? t.forEach(function(p) {
1866
+ a.set(t, s), wp(t) ? t.forEach(function(p) {
1866
1867
  s.add(qt(p, e, r, p, t, a));
1867
- }) : Op(t) && t.forEach(function(p, v) {
1868
- s.set(v, qt(p, e, r, v, t, a));
1868
+ }) : Op(t) && t.forEach(function(p, g) {
1869
+ s.set(g, qt(p, e, r, g, t, a));
1869
1870
  });
1870
- var g = u ? c ? Tr : Ze : c ? ce : Ne, b = d ? void 0 : g(t);
1871
- return Pl(b || t, function(p, v) {
1872
- b && (v = p, p = t[v]), Sr(s, v, qt(p, e, r, v, t, a));
1871
+ var v = u ? c ? Tr : Ze : c ? ce : Ne, _ = d ? void 0 : v(t);
1872
+ return Pl(_ || t, function(p, g) {
1873
+ _ && (g = p, p = t[g]), Sr(s, g, qt(p, e, r, g, t, a));
1873
1874
  }), s;
1874
1875
  }
1875
1876
  var Xp = 1, Zp = 4;
@@ -1909,9 +1910,9 @@ function la(t, e, r, n, o, a) {
1909
1910
  return u == e && d == t;
1910
1911
  var f = -1, l = !0, h = r & ah ? new re() : void 0;
1911
1912
  for (a.set(t, e), a.set(e, t); ++f < i; ) {
1912
- var g = t[f], b = e[f];
1913
+ var v = t[f], _ = e[f];
1913
1914
  if (n)
1914
- var p = s ? n(b, g, f, e, t, a) : n(g, b, f, t, e, a);
1915
+ var p = s ? n(_, v, f, e, t, a) : n(v, _, f, t, e, a);
1915
1916
  if (p !== void 0) {
1916
1917
  if (p)
1917
1918
  continue;
@@ -1919,14 +1920,14 @@ function la(t, e, r, n, o, a) {
1919
1920
  break;
1920
1921
  }
1921
1922
  if (h) {
1922
- if (!nh(e, function(v, m) {
1923
- if (!ua(h, m) && (g === v || o(g, v, r, n, a)))
1923
+ if (!nh(e, function(g, m) {
1924
+ if (!ua(h, m) && (v === g || o(v, g, r, n, a)))
1924
1925
  return h.push(m);
1925
1926
  })) {
1926
1927
  l = !1;
1927
1928
  break;
1928
1929
  }
1929
- } else if (!(g === b || o(g, b, r, n, a))) {
1930
+ } else if (!(v === _ || o(v, _, r, n, a))) {
1930
1931
  l = !1;
1931
1932
  break;
1932
1933
  }
@@ -1945,7 +1946,7 @@ function Mr(t) {
1945
1946
  r[++e] = n;
1946
1947
  }), r;
1947
1948
  }
1948
- var ih = 1, ch = 2, uh = "[object Boolean]", lh = "[object Date]", fh = "[object Error]", dh = "[object Map]", ph = "[object Number]", hh = "[object RegExp]", gh = "[object Set]", vh = "[object String]", mh = "[object Symbol]", yh = "[object ArrayBuffer]", bh = "[object DataView]", Hn = W ? W.prototype : void 0, Fe = Hn ? Hn.valueOf : void 0;
1949
+ var ih = 1, ch = 2, uh = "[object Boolean]", lh = "[object Date]", fh = "[object Error]", dh = "[object Map]", ph = "[object Number]", hh = "[object RegExp]", gh = "[object Set]", vh = "[object String]", mh = "[object Symbol]", yh = "[object ArrayBuffer]", bh = "[object DataView]", Hn = J ? J.prototype : void 0, Fe = Hn ? Hn.valueOf : void 0;
1949
1950
  function _h(t, e, r, n, o, a, s) {
1950
1951
  switch (r) {
1951
1952
  case bh:
@@ -1982,7 +1983,7 @@ function _h(t, e, r, n, o, a, s) {
1982
1983
  return !1;
1983
1984
  }
1984
1985
  var Sh = 1, Oh = Object.prototype, Eh = Oh.hasOwnProperty;
1985
- function wh(t, e, r, n, o, a) {
1986
+ function $h(t, e, r, n, o, a) {
1986
1987
  var s = r & Sh, i = Ze(t), c = i.length, u = Ze(e), d = u.length;
1987
1988
  if (c != d && !s)
1988
1989
  return !1;
@@ -1991,32 +1992,32 @@ function wh(t, e, r, n, o, a) {
1991
1992
  if (!(s ? l in e : Eh.call(e, l)))
1992
1993
  return !1;
1993
1994
  }
1994
- var h = a.get(t), g = a.get(e);
1995
- if (h && g)
1996
- return h == e && g == t;
1997
- var b = !0;
1995
+ var h = a.get(t), v = a.get(e);
1996
+ if (h && v)
1997
+ return h == e && v == t;
1998
+ var _ = !0;
1998
1999
  a.set(t, e), a.set(e, t);
1999
2000
  for (var p = s; ++f < c; ) {
2000
2001
  l = i[f];
2001
- var v = t[l], m = e[l];
2002
+ var g = t[l], m = e[l];
2002
2003
  if (n)
2003
- var y = s ? n(m, v, l, e, t, a) : n(v, m, l, t, e, a);
2004
- if (!(y === void 0 ? v === m || o(v, m, r, n, a) : y)) {
2005
- b = !1;
2004
+ var b = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
2005
+ if (!(b === void 0 ? g === m || o(g, m, r, n, a) : b)) {
2006
+ _ = !1;
2006
2007
  break;
2007
2008
  }
2008
2009
  p || (p = l == "constructor");
2009
2010
  }
2010
- if (b && !p) {
2011
- var _ = t.constructor, S = e.constructor;
2012
- _ != S && "constructor" in t && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof S == "function" && S instanceof S) && (b = !1);
2011
+ if (_ && !p) {
2012
+ var y = t.constructor, S = e.constructor;
2013
+ y != S && "constructor" in t && "constructor" in e && !(typeof y == "function" && y instanceof y && typeof S == "function" && S instanceof S) && (_ = !1);
2013
2014
  }
2014
- return a.delete(t), a.delete(e), b;
2015
+ return a.delete(t), a.delete(e), _;
2015
2016
  }
2016
- var $h = 1, Wn = "[object Arguments]", Jn = "[object Array]", fe = "[object Object]", Ch = Object.prototype, qn = Ch.hasOwnProperty;
2017
+ var wh = 1, Jn = "[object Arguments]", Wn = "[object Array]", fe = "[object Object]", Ch = Object.prototype, qn = Ch.hasOwnProperty;
2017
2018
  function Nh(t, e, r, n, o, a) {
2018
- var s = L(t), i = L(e), c = s ? Jn : J(t), u = i ? Jn : J(e);
2019
- c = c == Wn ? fe : c, u = u == Wn ? fe : u;
2019
+ var s = L(t), i = L(e), c = s ? Wn : W(t), u = i ? Wn : W(e);
2020
+ c = c == Jn ? fe : c, u = u == Jn ? fe : u;
2020
2021
  var d = c == fe, f = u == fe, l = c == u;
2021
2022
  if (l && Zt(t)) {
2022
2023
  if (!Zt(e))
@@ -2024,15 +2025,15 @@ function Nh(t, e, r, n, o, a) {
2024
2025
  s = !0, d = !1;
2025
2026
  }
2026
2027
  if (l && !d)
2027
- return a || (a = new q()), s || $r(t) ? la(t, e, r, n, o, a) : _h(t, e, c, r, n, o, a);
2028
- if (!(r & $h)) {
2029
- var h = d && qn.call(t, "__wrapped__"), g = f && qn.call(e, "__wrapped__");
2030
- if (h || g) {
2031
- var b = h ? t.value() : t, p = g ? e.value() : e;
2032
- return a || (a = new q()), o(b, p, r, n, a);
2028
+ return a || (a = new q()), s || wr(t) ? la(t, e, r, n, o, a) : _h(t, e, c, r, n, o, a);
2029
+ if (!(r & wh)) {
2030
+ var h = d && qn.call(t, "__wrapped__"), v = f && qn.call(e, "__wrapped__");
2031
+ if (h || v) {
2032
+ var _ = h ? t.value() : t, p = v ? e.value() : e;
2033
+ return a || (a = new q()), o(_, p, r, n, a);
2033
2034
  }
2034
2035
  }
2035
- return l ? (a || (a = new q()), wh(t, e, r, n, o, a)) : !1;
2036
+ return l ? (a || (a = new q()), $h(t, e, r, n, o, a)) : !1;
2036
2037
  }
2037
2038
  function Pr(t, e, r, n, o) {
2038
2039
  return t === e ? !0 : t == null || e == null || !Y(t) && !Y(e) ? t !== t && e !== e : Nh(t, e, r, n, Pr, o);
@@ -2093,7 +2094,7 @@ function Ph(t, e, r) {
2093
2094
  break;
2094
2095
  t = t[s];
2095
2096
  }
2096
- return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && Or(o) && $e(s, o) && (L(t) || Xt(t)));
2097
+ return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && Or(o) && we(s, o) && (L(t) || Xt(t)));
2097
2098
  }
2098
2099
  function Ih(t, e) {
2099
2100
  return t != null && Ph(t, e, Mh);
@@ -2153,8 +2154,8 @@ function Hh(t, e, r, n, o, a, s) {
2153
2154
  }
2154
2155
  var d = a ? a(i, c, r + "", t, e, s) : void 0, f = d === void 0;
2155
2156
  if (f) {
2156
- var l = L(c), h = !l && Zt(c), g = !l && !h && $r(c);
2157
- d = c, l || h || g ? L(i) ? d = i : nr(i) ? d = Uo(i) : h ? (f = !1, d = Zo(c, !0)) : g ? (f = !1, d = na(c, !0)) : d = [] : U(c) || Xt(c) ? (d = i, Xt(i) ? d = kh(i) : (!Q(i) || br(i)) && (d = oa(c))) : f = !1;
2157
+ var l = L(c), h = !l && Zt(c), v = !l && !h && wr(c);
2158
+ d = c, l || h || v ? L(i) ? d = i : nr(i) ? d = Uo(i) : h ? (f = !1, d = Zo(c, !0)) : v ? (f = !1, d = na(c, !0)) : d = [] : B(c) || Xt(c) ? (d = i, Xt(i) ? d = kh(i) : (!Q(i) || br(i)) && (d = oa(c))) : f = !1;
2158
2159
  }
2159
2160
  f && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), rr(t, r, d);
2160
2161
  }
@@ -2172,15 +2173,15 @@ function ha(t) {
2172
2173
  var e = t == null ? 0 : t.length;
2173
2174
  return e ? t[e - 1] : void 0;
2174
2175
  }
2175
- function Wh(t, e) {
2176
- return e.length < 2 ? t : Ae(t, $d(e, 0, -1));
2176
+ function Jh(t, e) {
2177
+ return e.length < 2 ? t : Ae(t, wd(e, 0, -1));
2177
2178
  }
2178
- var ga = Wl(function(t, e, r) {
2179
+ var ga = Jl(function(t, e, r) {
2179
2180
  pa(t, e, r);
2180
- }), Jh = "Expected a function";
2181
+ }), Wh = "Expected a function";
2181
2182
  function qh(t) {
2182
2183
  if (typeof t != "function")
2183
- throw new TypeError(Jh);
2184
+ throw new TypeError(Wh);
2184
2185
  return function() {
2185
2186
  var e = arguments;
2186
2187
  switch (e.length) {
@@ -2197,10 +2198,10 @@ function qh(t) {
2197
2198
  };
2198
2199
  }
2199
2200
  function Kh(t, e) {
2200
- return e = Ut(e, t), t = Wh(t, e), t == null || delete t[Bt(ha(e))];
2201
+ return e = Ut(e, t), t = Jh(t, e), t == null || delete t[Bt(ha(e))];
2201
2202
  }
2202
2203
  function Qh(t) {
2203
- return U(t) ? void 0 : t;
2204
+ return B(t) ? void 0 : t;
2204
2205
  }
2205
2206
  var Yh = 1, Xh = 2, Zh = 4, va = bd(function(t, e) {
2206
2207
  var r = {};
@@ -2224,7 +2225,7 @@ function tg(t, e, r, n) {
2224
2225
  return t;
2225
2226
  if (o != s) {
2226
2227
  var d = i[c];
2227
- u = void 0, u === void 0 && (u = Q(d) ? d : $e(e[o + 1]) ? [] : {});
2228
+ u = void 0, u === void 0 && (u = Q(d) ? d : we(e[o + 1]) ? [] : {});
2228
2229
  }
2229
2230
  Sr(i, c, u), i = i[c];
2230
2231
  }
@@ -2666,13 +2667,13 @@ const Fr = A({
2666
2667
  main: O(E()),
2667
2668
  cssPaths: O(I(E()))
2668
2669
  }), mg = I(Fr);
2669
- var V = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(V || {}), Vr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Vr || {}), sr = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(sr || {});
2670
- const yg = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Kt(E(), Ur)), !0)), Ur = z([
2670
+ var U = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(U || {}), Vr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Vr || {}), sr = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(sr || {});
2671
+ const yg = () => pt("normalObj", (t) => !B(t) || [U.SLOT, U.EXPRESSION, U.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Kt(E(), Ur)), !0)), Ur = z([
2671
2672
  E(),
2672
2673
  Sa(),
2673
2674
  St(),
2674
2675
  A({
2675
- type: G(V.SLOT),
2676
+ type: G(U.SLOT),
2676
2677
  renderType: ar([sr.FUNC, sr.COMP]),
2677
2678
  // if renderType is Func, params will be useful
2678
2679
  params: O(I(E())),
@@ -2680,15 +2681,15 @@ const yg = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
2680
2681
  value: Pt(() => z([It, I(It)]))
2681
2682
  }),
2682
2683
  A({
2683
- type: G(V.EXPRESSION),
2684
+ type: G(U.EXPRESSION),
2684
2685
  value: E()
2685
2686
  }),
2686
2687
  A({
2687
- type: G(V.FUNCTION),
2688
+ type: G(U.FUNCTION),
2688
2689
  value: E()
2689
2690
  }),
2690
2691
  A({
2691
- type: G(V.ACTION),
2692
+ type: G(U.ACTION),
2692
2693
  /** 暂时不做规则强检验 */
2693
2694
  handler: T()
2694
2695
  }),
@@ -2699,7 +2700,7 @@ const yg = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
2699
2700
  ]);
2700
2701
  var Ea = /* @__PURE__ */ ((t) => (t.COMPONENTS = "COMPONENTS", t))(Ea || {});
2701
2702
  const Qn = A({
2702
- type: G(V.EXPRESSION),
2703
+ type: G(U.EXPRESSION),
2703
2704
  value: E()
2704
2705
  }), It = A({
2705
2706
  id: O(E()),
@@ -2840,7 +2841,7 @@ const Eg = A({
2840
2841
  // 分类
2841
2842
  category: O(E()),
2842
2843
  schema: Lr(ba(It, ["id"]), A({ componentName: O(E()) }))
2843
- }), wg = A({
2844
+ }), $g = A({
2844
2845
  componentName: E(),
2845
2846
  title: E(),
2846
2847
  screenshot: O(E()),
@@ -2898,7 +2899,7 @@ const Eg = A({
2898
2899
  advanceCustom: O(T()),
2899
2900
  // 扩展配置
2900
2901
  extra: O(Kt(T(), T()))
2901
- }), $g = (t) => ({ data: e, message: r, throwError: n }) => {
2902
+ }), wg = (t) => ({ data: e, message: r, throwError: n }) => {
2902
2903
  const o = t({ data: e, message: r, throwError: n });
2903
2904
  if (o.isValidate)
2904
2905
  return o;
@@ -2911,7 +2912,7 @@ const Eg = A({
2911
2912
  data struct format is invalidate`), o;
2912
2913
  }, Br = (t) => {
2913
2914
  const { data: e, message: r, throwError: n, dataStruct: o } = t;
2914
- return $g(({ data: a }) => {
2915
+ return wg(({ data: a }) => {
2915
2916
  try {
2916
2917
  return ya(a, o), {
2917
2918
  isValidate: !0
@@ -2929,7 +2930,7 @@ const Eg = A({
2929
2930
  };
2930
2931
  var rt = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(rt || {});
2931
2932
  const Cg = A({
2932
- type: G(V.FUNCTION),
2933
+ type: G(U.FUNCTION),
2933
2934
  value: E()
2934
2935
  }), Ng = Lr(
2935
2936
  ba(It, ["componentName"]),
@@ -2967,7 +2968,7 @@ const ue = jg(), xg = (t, e) => {
2967
2968
  parent: e,
2968
2969
  materials: o
2969
2970
  })
2970
- ) : U(n) && r.value.push(
2971
+ ) : B(n) && r.value.push(
2971
2972
  new D(n, {
2972
2973
  parent: e,
2973
2974
  materials: o
@@ -2987,7 +2988,7 @@ class Dt {
2987
2988
  const r = this.data, n = (o) => {
2988
2989
  if (o instanceof D)
2989
2990
  return o.export(e);
2990
- if (U(o)) {
2991
+ if (B(o)) {
2991
2992
  const a = {};
2992
2993
  return Object.keys(o || {}).forEach((s) => {
2993
2994
  a[s] = n(o[s]);
@@ -2998,22 +2999,22 @@ class Dt {
2998
2999
  return n(r);
2999
3000
  }
3000
3001
  }
3001
- const wa = (t) => {
3002
+ const $a = (t) => {
3002
3003
  let e = [];
3003
3004
  return t.forEach((r) => {
3004
3005
  const n = r;
3005
- n.type ? n.type === ir.SINGLE ? e.push(n.content) : n.type === ir.GROUP && (e = [...e, ...wa(n.content)]) : e.push(r);
3006
+ n.type ? n.type === ir.SINGLE ? e.push(n.content) : n.type === ir.GROUP && (e = [...e, ...$a(n.content)]) : e.push(r);
3006
3007
  }), e;
3007
3008
  }, cr = (t, e, r) => {
3008
3009
  if (t.type)
3009
- return t.type === V.SLOT ? new Dt(t, { parent: e, materials: r }) : t;
3010
- if (U(t)) {
3010
+ return t.type === U.SLOT ? new Dt(t, { parent: e, materials: r }) : t;
3011
+ if (B(t)) {
3011
3012
  const n = {};
3012
3013
  return Object.keys(t).forEach((o) => {
3013
3014
  n[o] = ur(t[o], e, r);
3014
3015
  }), n;
3015
3016
  } else return Array.isArray(t) ? t.map((n) => cr(n, e, r)) : t;
3016
- }, ur = (t, e, r) => U(t) ? cr(t, e, r) : L(t) ? t.map((n) => cr(n, e, r)) : t;
3017
+ }, ur = (t, e, r) => B(t) ? cr(t, e, r) : L(t) ? t.map((n) => cr(n, e, r)) : t;
3017
3018
  class dt {
3018
3019
  constructor(e, r, n) {
3019
3020
  C(this, "nodeType", "PROP"), C(this, "rawData"), C(this, "parent"), C(this, "emitter", ue), C(this, "data"), C(this, "name"), C(this, "materialsMode");
@@ -3047,7 +3048,7 @@ class dt {
3047
3048
  const e = this.parent;
3048
3049
  if (e instanceof D) {
3049
3050
  const r = e.material;
3050
- return wa((r == null ? void 0 : r.value.props) || []).find((n) => n.name === this.name);
3051
+ return $a((r == null ? void 0 : r.value.props) || []).find((n) => n.name === this.name);
3051
3052
  } else
3052
3053
  return null;
3053
3054
  }
@@ -3057,7 +3058,7 @@ class dt {
3057
3058
  return o.export(e);
3058
3059
  if (L(o))
3059
3060
  return o.map((a) => n(a));
3060
- if (U(o)) {
3061
+ if (B(o)) {
3061
3062
  const a = {};
3062
3063
  return Object.keys(o || {}).forEach((s) => {
3063
3064
  a[s] = n(o[s]);
@@ -3104,7 +3105,7 @@ const Ag = (t) => {
3104
3105
  }), t.children && (Array.isArray(t.children) ? n.children = t.children.map((a) => {
3105
3106
  if (a instanceof D)
3106
3107
  return a;
3107
- if (U(a)) {
3108
+ if (B(a)) {
3108
3109
  const s = a;
3109
3110
  return new D(s, {
3110
3111
  parent: e,
@@ -3244,7 +3245,7 @@ const Xn = (t, e, r) => {
3244
3245
  injectEnvList: t.injectEnvList
3245
3246
  };
3246
3247
  let o = [];
3247
- L(t.children) ? o = t.children.map((s) => s instanceof D ? s : U(s) ? new D(s, { parent: e, materials: r }) : s) : t.children instanceof D ? o.push(t.children) : t.children && U(t.children) && o.push(new D(t.children, { parent: e, materials: r }));
3248
+ L(t.children) ? o = t.children.map((s) => s instanceof D ? s : B(s) ? new D(s, { parent: e, materials: r }) : s) : t.children instanceof D ? o.push(t.children) : t.children && B(t.children) && o.push(new D(t.children, { parent: e, materials: r }));
3248
3249
  const a = Object.keys(t.props || {});
3249
3250
  return a.length && a.forEach((s) => {
3250
3251
  var i;
@@ -3355,7 +3356,7 @@ class ne {
3355
3356
  });
3356
3357
  }
3357
3358
  }
3358
- const mt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, $a = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Tg = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Rg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", lr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Mg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Gr = (t) => ng(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : e == null);
3359
+ const mt = (t) => (t == null ? void 0 : t.type) === U.EXPRESSION, wa = (t) => (t == null ? void 0 : t.type) === U.FUNCTION, Tg = (t) => (t == null ? void 0 : t.type) === U.ACTION, et = () => Math.random().toString(32).slice(3, 9), Rg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", lr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Mg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Gr = (t) => ng(t, (e) => B(e) ? !Object.keys(e).length : L(e) ? !e.length : e == null);
3359
3360
  function Pg(t, e) {
3360
3361
  const r = [t];
3361
3362
  for (; r.length; ) {
@@ -3371,7 +3372,7 @@ function Pg(t, e) {
3371
3372
  a(i.value);
3372
3373
  return;
3373
3374
  }
3374
- if (U(i)) {
3375
+ if (B(i)) {
3375
3376
  const c = i;
3376
3377
  Object.keys(c).forEach((u) => {
3377
3378
  a(c[u]);
@@ -3439,7 +3440,7 @@ const Ue = (t) => {
3439
3440
  t == null || t.forEach((e) => {
3440
3441
  Br({
3441
3442
  data: e,
3442
- dataStruct: wg,
3443
+ dataStruct: $g,
3443
3444
  throwError: !1
3444
3445
  });
3445
3446
  });
@@ -3596,7 +3597,7 @@ class Se {
3596
3597
  return r.value.children.unshift(e), e.parent = r, r.updateValue(), !0;
3597
3598
  if (n === "CHILD_END")
3598
3599
  return r.value.children.push(e), e.parent = r, r.updateValue(), !0;
3599
- if (U(n)) {
3600
+ if (B(n)) {
3600
3601
  const a = n;
3601
3602
  if (a.type === "CHILD") {
3602
3603
  const s = a.pos, i = a.index || 0;
@@ -3734,14 +3735,14 @@ ${f.value}
3734
3735
  h != null && h.then ? s[f.id] = await h : s[f.id] = h;
3735
3736
  }
3736
3737
  if (f.type === "REQUEST_API") {
3737
- const { run: l, afterFailedResponse: h, afterSuccessResponse: g } = Gg(f, e);
3738
+ const { run: l, afterFailedResponse: h, afterSuccessResponse: v } = Gg(f, e);
3738
3739
  try {
3739
- const b = l(...a);
3740
- b != null && b.then ? s[f.id] = await b : s[f.id] = b, f.responseVarName && (e.actionVariableSpace[f.responseVarName] = s[f.id]);
3741
- const p = g(s[f.id], ...a);
3740
+ const _ = l(...a);
3741
+ _ != null && _.then ? s[f.id] = await _ : s[f.id] = _, f.responseVarName && (e.actionVariableSpace[f.responseVarName] = s[f.id]);
3742
+ const p = v(s[f.id], ...a);
3742
3743
  return p != null && p.then ? await p : p;
3743
- } catch (b) {
3744
- const p = await h(b);
3744
+ } catch (_) {
3745
+ const p = await h(_);
3745
3746
  return p != null && p.then ? await p : p;
3746
3747
  }
3747
3748
  }
@@ -3753,8 +3754,8 @@ ${f.value}
3753
3754
  const l = kg(f, e);
3754
3755
  let h = [...a];
3755
3756
  e.$$response !== void 0 && (h = [e.$$response, h]);
3756
- const g = l(...h);
3757
- s[f.id] = await g;
3757
+ const v = l(...h);
3758
+ s[f.id] = await v;
3758
3759
  }
3759
3760
  };
3760
3761
  let c = r[0];
@@ -3777,7 +3778,7 @@ const yt = (t, e) => function(...r) {
3777
3778
  $$response: e.$$response,
3778
3779
  actionVariableSpace: e.actionVariableSpace,
3779
3780
  nodeModel: e.nodeModel
3780
- }) : $a(t) ? se({
3781
+ }) : wa(t) ? se({
3781
3782
  funcName: t.name || "",
3782
3783
  funcBody: t.value,
3783
3784
  nodeContext: e.context,
@@ -3792,16 +3793,16 @@ const yt = (t, e) => function(...r) {
3792
3793
  let s = "";
3793
3794
  t.apiPath && (s = yt(t.apiPath, e)(...a));
3794
3795
  const i = t.body || {};
3795
- Object.keys(i).forEach((g) => {
3796
- i[g] = yt(i[g], e)(...a);
3796
+ Object.keys(i).forEach((v) => {
3797
+ i[v] = yt(i[v], e)(...a);
3797
3798
  });
3798
3799
  const c = t.query || {};
3799
- Object.keys(c).forEach((g) => {
3800
- c[g] = yt(c[g], e)(...a);
3800
+ Object.keys(c).forEach((v) => {
3801
+ c[v] = yt(c[v], e)(...a);
3801
3802
  });
3802
3803
  const u = t.header || {};
3803
- Object.keys(u).forEach((g) => {
3804
- u[g] = yt(u[g], e)(...a);
3804
+ Object.keys(u).forEach((v) => {
3805
+ u[v] = yt(u[v], e)(...a);
3805
3806
  });
3806
3807
  const d = t.method || "GET";
3807
3808
  return (h = (l = e.context).requestAPI) == null ? void 0 : h.call(l, {
@@ -3848,7 +3849,12 @@ const yt = (t, e) => function(...r) {
3848
3849
  var args = arguments;
3849
3850
  var nodeRef = $$context.nodeRefs.get(${JSON.stringify(t.nodeId)});
3850
3851
  if(nodeRef && nodeRef.current) {
3851
- var func = nodeRef.current[${JSON.stringify(t.methodName)}];
3852
+ var func = nodeRef.current[${JSON.stringify(t.methodName)}]?.bind(nodeRef.current);
3853
+ var isDev = Boolean(nodeRef.current?.getTargetComponentRef);
3854
+ if (isDev) {
3855
+ const ins = nodeRef.current.getTargetComponentRef()?.current;
3856
+ func = ins?.[${JSON.stringify(t.methodName)}]?.bind(ins);
3857
+ }
3852
3858
  if (func) {
3853
3859
  func.apply(null, args);
3854
3860
  }
@@ -3886,14 +3892,14 @@ const yt = (t, e) => function(...r) {
3886
3892
  return console.warn("slot value is null, this maybe cause some error, pls check it", t), () => {
3887
3893
  };
3888
3894
  const f = (l) => {
3889
- const h = `${l.id}-${Re}`, g = n(l), b = kr(g, l, {
3895
+ const h = `${l.id}-${Re}`, v = n(l), _ = kr(v, l, {
3890
3896
  ...e
3891
3897
  }), p = u.params || [];
3892
3898
  return {
3893
- component: (...y) => {
3894
- const _ = Po(y, p), S = fr(
3899
+ component: (...b) => {
3900
+ const y = Po(b, p), S = fr(
3895
3901
  {
3896
- params: _,
3902
+ params: y,
3897
3903
  nodeRefs: r.nodeRefs,
3898
3904
  // 使用空函数,避免获取到父节点的方法或者函数
3899
3905
  getProps: function() {
@@ -3903,7 +3909,7 @@ const yt = (t, e) => function(...r) {
3903
3909
  },
3904
3910
  r
3905
3911
  );
3906
- return oe(b, {
3912
+ return oe(_, {
3907
3913
  $$context: S,
3908
3914
  key: h
3909
3915
  });
@@ -3913,15 +3919,15 @@ const yt = (t, e) => function(...r) {
3913
3919
  };
3914
3920
  if (Array.isArray(d)) {
3915
3921
  const l = d == null ? void 0 : d.map((h) => f(h));
3916
- return (...h) => l.map((g) => {
3917
- if (Bu(g.component)) {
3918
- const p = g.component;
3922
+ return (...h) => l.map((v) => {
3923
+ if (Bu(v.component)) {
3924
+ const p = v.component;
3919
3925
  return x.createElement(p, {
3920
3926
  $$context: r,
3921
- key: g.key
3927
+ key: v.key
3922
3928
  });
3923
3929
  } else {
3924
- const p = g.component;
3930
+ const p = v.component;
3925
3931
  return p == null ? void 0 : p(...h);
3926
3932
  }
3927
3933
  });
@@ -3934,7 +3940,7 @@ const yt = (t, e) => function(...r) {
3934
3940
  storeManager: e.storeManager,
3935
3941
  nodeModel: e.nodeModel
3936
3942
  });
3937
- if ($a(c)) {
3943
+ if (wa(c)) {
3938
3944
  const u = c;
3939
3945
  return se({
3940
3946
  funcBody: u.value,
@@ -3973,11 +3979,11 @@ const yt = (t, e) => function(...r) {
3973
3979
  const f = d.value.id;
3974
3980
  let l = null;
3975
3981
  if (r.get(f)) {
3976
- const b = r.get(f);
3977
- l = b == null ? void 0 : b.component;
3982
+ const _ = r.get(f);
3983
+ l = _ == null ? void 0 : _.component;
3978
3984
  } else {
3979
- const b = o(d);
3980
- l = kr(b, d, {
3985
+ const _ = o(d);
3986
+ l = kr(_, d, {
3981
3987
  ...c
3982
3988
  }), !r.get(f) && a !== "design" && r.set(f, {
3983
3989
  component: l
@@ -4007,90 +4013,90 @@ const yt = (t, e) => function(...r) {
4007
4013
  class h extends x.Component {
4008
4014
  constructor(p) {
4009
4015
  super(p);
4010
- w(this, "_CONDITION", !0);
4011
- w(this, "_DESIGN_BOX", !1);
4012
- w(this, "_NODE_MODEL", e);
4013
- w(this, "_NODE_ID", e.id);
4014
- w(this, "UNIQUE_ID", `${e.id}_${et()}`);
4015
- w(this, "targetComponentRef");
4016
- w(this, "listenerHandler", []);
4017
- w(this, "storeState");
4016
+ $(this, "_CONDITION", !0);
4017
+ $(this, "_DESIGN_BOX", !1);
4018
+ $(this, "_NODE_MODEL", e);
4019
+ $(this, "_NODE_ID", e.id);
4020
+ $(this, "UNIQUE_ID", `${e.id}_${et()}`);
4021
+ $(this, "targetComponentRef");
4022
+ $(this, "listenerHandler", []);
4023
+ $(this, "storeState");
4018
4024
  /** 存储清理 store 的监听函数 */
4019
- w(this, "storeListenDisposeList", []);
4025
+ $(this, "storeListenDisposeList", []);
4020
4026
  /** save dom and media css */
4021
- w(this, "domHeader");
4022
- w(this, "mediaStyleDomMap", {});
4027
+ $(this, "domHeader");
4028
+ $(this, "mediaStyleDomMap", {});
4023
4029
  /** 存储当前节点的一些变量和方法,不具有响应性 */
4024
- w(this, "variableSpace");
4025
- w(this, "nodeName");
4026
- w(this, "updateState", (p) => {
4030
+ $(this, "variableSpace");
4031
+ $(this, "nodeName");
4032
+ $(this, "updateState", (p) => {
4027
4033
  e.value.componentName === rt.ROOT_CONTAINER ? this.setState(p) : this.storeState.setState(p);
4028
4034
  });
4029
- w(this, "getStyleDomById", (p) => {
4030
- const v = this.mediaStyleDomMap;
4031
- let m = v[p];
4032
- return m || (m = f.createElement("style"), v[p] = m), m.id = p, m;
4035
+ $(this, "getStyleDomById", (p) => {
4036
+ const g = this.mediaStyleDomMap;
4037
+ let m = g[p];
4038
+ return m || (m = f.createElement("style"), g[p] = m), m.id = p, m;
4033
4039
  });
4034
- w(this, "addMediaCSS", () => {
4040
+ $(this, "addMediaCSS", () => {
4035
4041
  var m;
4036
4042
  let p = this.domHeader;
4037
4043
  if (p || (p = (m = f.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader) {
4038
4044
  console.warn("not found header dom");
4039
4045
  return;
4040
4046
  }
4041
- const v = this._NODE_MODEL.value.css;
4042
- v && v.value.forEach((y) => {
4043
- var N;
4044
- const _ = `${this.UNIQUE_ID}_${y.state}`;
4047
+ const g = this._NODE_MODEL.value.css;
4048
+ g && g.value.forEach((b) => {
4049
+ var j;
4050
+ const y = `${this.UNIQUE_ID}_${b.state}`;
4045
4051
  let S = yn(this._NODE_MODEL);
4046
- if (y.state !== "normal" && (S = `${S}:${y.state}`), y.text) {
4047
- const j = this.getStyleDomById(_);
4048
- j.innerText = `.${S} { ${y.text} }`, p == null || p.appendChild(j);
4052
+ if (b.state !== "normal" && (S = `${S}:${b.state}`), b.text) {
4053
+ const N = this.getStyleDomById(y);
4054
+ N.innerText = `.${S} { ${b.text} }`, p == null || p.appendChild(N);
4049
4055
  }
4050
- (N = y.media) != null && N.length && y.media.forEach((j) => {
4051
- const $ = `${_}_${j.type}_${j.value}`, F = this.getStyleDomById($);
4052
- F.media = `screen and (${j.type}:${j.value}px)`, F.innerHTML = `.${S} { ${j.text} }`, p == null || p.appendChild(F);
4056
+ (j = b.media) != null && j.length && b.media.forEach((N) => {
4057
+ const w = `${y}_${N.type}_${N.value}`, V = this.getStyleDomById(w);
4058
+ V.media = `screen and (${N.type}:${N.value}px)`, V.innerHTML = `.${S} { ${N.text} }`, p == null || p.appendChild(V);
4053
4059
  });
4054
4060
  });
4055
4061
  });
4056
- w(this, "removeMediaCSS", () => {
4062
+ $(this, "removeMediaCSS", () => {
4057
4063
  const p = this.mediaStyleDomMap;
4058
- Object.keys(p).forEach((v) => {
4064
+ Object.keys(p).forEach((g) => {
4059
4065
  var m;
4060
- (m = this.domHeader) == null || m.removeChild(p[v]);
4066
+ (m = this.domHeader) == null || m.removeChild(p[g]);
4061
4067
  }), this.mediaStyleDomMap = {};
4062
4068
  });
4063
- w(this, "rebuildNode", () => {
4069
+ $(this, "rebuildNode", () => {
4064
4070
  this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
4065
4071
  });
4066
4072
  this.targetComponentRef = x.createRef(), this.listenerHandler = [], this.state = e.value.state || {};
4067
- let v = e.value.nodeName || e.id;
4068
- e.value.componentName === rt.ROOT_CONTAINER && (v = "globalState"), this.nodeName = v;
4069
- const m = n.getStore(v);
4073
+ let g = e.value.nodeName || e.id;
4074
+ e.value.componentName === rt.ROOT_CONTAINER && (g = "globalState"), this.nodeName = g;
4075
+ const m = n.getStore(g);
4070
4076
  m ? (this.storeState = m, m.setState({
4071
4077
  ...e.value.state || {}
4072
- })) : this.storeState = n.addStore(v, () => ({
4078
+ })) : this.storeState = n.addStore(g, () => ({
4073
4079
  ...e.value.state || {}
4074
4080
  }));
4075
- const y = this.storeState.subscribe((S) => {
4081
+ const b = this.storeState.subscribe((S) => {
4076
4082
  this.setStateIfChanged(S);
4077
4083
  });
4078
- this.storeListenDisposeList.push(y), this.connectStore();
4079
- const _ = o.get(v);
4080
- _ ? this.variableSpace = _ : (this.variableSpace = {
4084
+ this.storeListenDisposeList.push(b), this.connectStore();
4085
+ const y = o.get(g);
4086
+ y ? this.variableSpace = y : (this.variableSpace = {
4081
4087
  staticVar: {},
4082
4088
  methods: {}
4083
- }, o.add(v, this.variableSpace));
4089
+ }, o.add(g, this.variableSpace));
4084
4090
  }
4085
4091
  /** 如果值和当前 state 一样了就不触发更新 */
4086
4092
  setStateIfChanged(p) {
4087
- e.value.componentName !== rt.ROOT_CONTAINER && this.setState((v) => {
4088
- const m = typeof p == "function" ? p(v) : p;
4089
- return Vu(v, { ...v, ...m }) ? null : m;
4093
+ e.value.componentName !== rt.ROOT_CONTAINER && this.setState((g) => {
4094
+ const m = typeof p == "function" ? p(g) : p;
4095
+ return Vu(g, { ...g, ...m }) ? null : m;
4090
4096
  });
4091
4097
  }
4092
4098
  connectStore() {
4093
- const p = Zn(e.props, (S) => !!mt(S)), v = Zn(
4099
+ const p = Zn(e.props, (S) => !!mt(S)), g = Zn(
4094
4100
  {
4095
4101
  css: e.value.css,
4096
4102
  class: e.value.classNames
@@ -4098,51 +4104,51 @@ const yt = (t, e) => function(...r) {
4098
4104
  (S) => !!mt(S)
4099
4105
  );
4100
4106
  let m = [];
4101
- [...p, ...v].map((S) => {
4102
- const N = S.val, j = [
4107
+ [...p, ...g].map((S) => {
4108
+ const j = S.val, N = [
4103
4109
  // 匹配 $$context.stateManger.xxx.state
4104
4110
  new RegExp(`(?<=context\\.stateManager(?:\\.|\\[["'])?)\\w+(?=(?:["']?\\])?(?:\\.|\\[)?["']?state)`, "gim"),
4105
4111
  // 匹配 $ALL_STATE.xxx;
4106
4112
  /\$ALL_STATE(?:\.|(?:\[\s*["']))(\w+)(?=(?:["']\s*\])?)/gim,
4107
4113
  // 匹配 getStateObj("xxx")
4108
4114
  /getStateObj\(["']([^"']+)["']\)/gim
4109
- ], $ = Hu(N.value, j);
4110
- m = [...m, ...$], /\$CTX\.globalState|\$G_STATE/.test(N.value) && m.push("globalState");
4115
+ ], w = Hu(j.value, N);
4116
+ m = [...m, ...w], /\$CTX\.globalState|\$G_STATE/.test(j.value) && m.push("globalState");
4111
4117
  }).filter(Boolean);
4112
- const y = Array.from(new Set(m)), _ = [];
4113
- y.length && y.forEach((S) => {
4118
+ const b = Array.from(new Set(m)), y = [];
4119
+ b.length && b.forEach((S) => {
4114
4120
  if (!S)
4115
4121
  return;
4116
4122
  n.getStore(S) || (n.addStore(S, () => ({})), console.warn(n, S, "not exits, auto create"));
4117
- const j = n.connect(S, ($) => {
4118
- this.setStateIfChanged($);
4123
+ const N = n.connect(S, (w) => {
4124
+ this.setStateIfChanged(w);
4119
4125
  });
4120
- _.push(j);
4121
- }), this.storeListenDisposeList = _;
4126
+ y.push(N);
4127
+ }), this.storeListenDisposeList = y;
4122
4128
  }
4123
4129
  componentDidMount() {
4124
4130
  var m;
4125
4131
  this.addMediaCSS(), a == null || a(this.targetComponentRef, e, this), s == null || s(this, e);
4126
- const p = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === Na);
4132
+ const p = (m = e.value.eventListener) == null ? void 0 : m.find((b) => b.name === Na);
4127
4133
  p && Rt(p.func, {
4128
4134
  context: this.createCurrentNodeCtx(),
4129
4135
  storeManager: n,
4130
4136
  actionVariableSpace: {},
4131
4137
  nodeModel: e
4132
4138
  })();
4133
- const v = () => {
4139
+ const g = () => {
4134
4140
  n.setStore(e.value.nodeName || e.id, this.storeState), this.storeState.setState({
4135
4141
  ...this.state,
4136
4142
  ...e.value.state || {}
4137
4143
  }), this.rebuildNode();
4138
4144
  };
4139
- e.onChange(v);
4145
+ e.onChange(g);
4140
4146
  }
4141
4147
  componentWillUnmount() {
4142
4148
  var m;
4143
- this.storeListenDisposeList.forEach((y) => y()), this.removeMediaCSS(), i == null || i(this, e);
4144
- const p = ja, v = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === p);
4145
- v && Rt(v.func, {
4149
+ this.storeListenDisposeList.forEach((b) => b()), this.removeMediaCSS(), i == null || i(this, e);
4150
+ const p = ja, g = (m = e.value.eventListener) == null ? void 0 : m.find((b) => b.name === p);
4151
+ g && Rt(g.func, {
4146
4152
  context: this.createCurrentNodeCtx(),
4147
4153
  storeManager: n,
4148
4154
  actionVariableSpace: {},
@@ -4151,40 +4157,40 @@ const yt = (t, e) => function(...r) {
4151
4157
  }
4152
4158
  /** 转换节点的 methods */
4153
4159
  transformMethods(p) {
4154
- const { context: v } = p, m = de(
4160
+ const { context: g } = p, m = de(
4155
4161
  {
4156
4162
  methods: e.value.methods
4157
4163
  },
4158
4164
  {
4159
- $$context: v,
4165
+ $$context: g,
4160
4166
  ...l,
4161
4167
  nodeModel: e
4162
4168
  }
4163
- ), y = e.value.methods || [], _ = m.methods, S = y.reduce((N, j, $) => (N[j.name] = _[$], N), {});
4164
- v.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
4169
+ ), b = e.value.methods || [], y = m.methods, S = b.reduce((j, N, w) => (j[N.name] = y[w], j), {});
4170
+ g.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
4165
4171
  }
4166
4172
  /** 处理根节点的 context */
4167
4173
  processRootContext(p) {
4168
4174
  e.value.componentName === rt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = d, p.getGlobalState = () => this.state);
4169
4175
  }
4170
- processNodeClassName(p, v) {
4171
- var _;
4172
- const m = ((_ = e.value.classNames) == null ? void 0 : _.map((S) => {
4173
- var $;
4174
- const N = S.name;
4175
- return (mt(S.status) ? At((($ = S.status) == null ? void 0 : $.value) || "", {
4176
- nodeContext: v,
4176
+ processNodeClassName(p, g) {
4177
+ var y;
4178
+ const m = ((y = e.value.classNames) == null ? void 0 : y.map((S) => {
4179
+ var w;
4180
+ const j = S.name;
4181
+ return (mt(S.status) ? At(((w = S.status) == null ? void 0 : w.value) || "", {
4182
+ nodeContext: g,
4177
4183
  nodeModel: e,
4178
4184
  storeManager: n
4179
- }) : !1) ? N : "";
4185
+ }) : !1) ? j : "";
4180
4186
  })) || [];
4181
- let y = `${p ?? ""} ${m.join(" ")}`.trim();
4182
- return e.value.css && (y = `${yn(e)} ${y}`.trim()), y;
4187
+ let b = `${p ?? ""} ${m.join(" ")}`.trim();
4188
+ return e.value.css && (b = `${yn(e)} ${b}`.trim()), b;
4183
4189
  }
4184
4190
  processNodeStyle(p) {
4185
4191
  if (!e.value.style)
4186
4192
  return {};
4187
- const v = de(
4193
+ const g = de(
4188
4194
  { style: e.value.style },
4189
4195
  {
4190
4196
  $$context: p,
@@ -4192,39 +4198,39 @@ const yt = (t, e) => function(...r) {
4192
4198
  nodeModel: e
4193
4199
  }
4194
4200
  );
4195
- return ku(v.style || []);
4201
+ return ku(g.style || []);
4196
4202
  }
4197
- processNodeChild(p, v) {
4203
+ processNodeChild(p, g) {
4198
4204
  let m = [];
4199
4205
  if (p !== void 0)
4200
4206
  m = Array.isArray(p) ? p : [p];
4201
4207
  else {
4202
- const y = [];
4203
- e.value.children.forEach((S, N) => {
4204
- const j = Hg(S, {
4205
- $$context: v,
4206
- idx: N,
4208
+ const b = [];
4209
+ e.value.children.forEach((S, j) => {
4210
+ const N = Hg(S, {
4211
+ $$context: g,
4212
+ idx: j,
4207
4213
  ...l
4208
4214
  });
4209
- y.push(j);
4210
- }), m = y;
4215
+ b.push(N);
4216
+ }), m = b;
4211
4217
  }
4212
4218
  return m;
4213
4219
  }
4214
- processNodeConditionAndConfigHook(p, v, m) {
4215
- let y = e.value.condition ?? !0;
4216
- typeof y != "boolean" && (y = At(y.value, {
4220
+ processNodeConditionAndConfigHook(p, g, m) {
4221
+ let b = e.value.condition ?? !0;
4222
+ typeof b != "boolean" && (b = At(b.value, {
4217
4223
  nodeContext: m || {},
4218
4224
  nodeModel: e,
4219
4225
  storeManager: n
4220
4226
  }));
4221
- let _ = {
4222
- condition: y,
4227
+ let y = {
4228
+ condition: b,
4223
4229
  props: p
4224
4230
  };
4225
- u && (_ = u(_, e));
4226
- const S = oe(t, _.props, ...v);
4227
- return this._CONDITION = _.condition, _.condition ? S : x.createElement(
4231
+ u && (y = u(y, e));
4232
+ const S = oe(t, y.props, ...g);
4233
+ return this._CONDITION = y.condition, y.condition ? S : x.createElement(
4228
4234
  "div",
4229
4235
  {
4230
4236
  key: p.key,
@@ -4236,44 +4242,44 @@ const yt = (t, e) => function(...r) {
4236
4242
  );
4237
4243
  }
4238
4244
  processNodeEventListener(p) {
4239
- const v = e.value.eventListener, m = {};
4240
- return v == null || v.forEach((y) => {
4241
- if (Ug.includes(y.name))
4245
+ const g = e.value.eventListener, m = {};
4246
+ return g == null || g.forEach((b) => {
4247
+ if (Ug.includes(b.name))
4242
4248
  return;
4243
- const _ = Rt(y.func, {
4249
+ const y = Rt(b.func, {
4244
4250
  context: p,
4245
4251
  storeManager: n,
4246
4252
  actionVariableSpace: {},
4247
4253
  nodeModel: e
4248
4254
  });
4249
- m[y.name] = _;
4255
+ m[b.name] = y;
4250
4256
  }), m;
4251
4257
  }
4252
4258
  createCurrentNodeCtx() {
4253
- const { $$context: p } = this.props, v = e.value.nodeName || e.id, m = e.id, y = {
4259
+ const { $$context: p } = this.props, g = e.value.nodeName || e.id, m = e.id, b = {
4254
4260
  state: this.state || {},
4255
4261
  staticVar: this.variableSpace.staticVar,
4256
4262
  updateState: this.updateState,
4257
4263
  storeManager: n,
4258
- getState: () => n.getStateObj(v),
4259
- getStateObj: () => n.getStateObj(v),
4264
+ getState: () => n.getStateObj(g),
4265
+ getStateObj: () => n.getStateObj(g),
4260
4266
  getStateObjById: (S) => n.getStateObj(S),
4261
4267
  stateManager: n.getStateSnapshot(),
4262
4268
  getMethods: () => {
4263
- const S = o.get(m).methods, N = c.get(m).current;
4264
- return bn(S, N);
4269
+ const S = o.get(m).methods, j = c.get(m).current;
4270
+ return bn(S, j);
4265
4271
  },
4266
4272
  getMethodsById: (S) => {
4267
- const N = o.get(S).methods, j = c.get(S).current;
4268
- return bn(N, j);
4273
+ const j = o.get(S).methods, N = c.get(S).current;
4274
+ return bn(j, N);
4269
4275
  },
4270
- getStaticVar: () => o.get(v).staticVar,
4276
+ getStaticVar: () => o.get(g).staticVar,
4271
4277
  getStaticVarById: (S) => o.get(S).staticVar,
4272
4278
  /** 获取当前节点的事件函数 */
4273
- callEventMethod: (S, N) => {
4274
- var $, F;
4275
- const j = c.get(m).current;
4276
- (F = j == null ? void 0 : ($ = j.props)[S]) == null || F.call($, N);
4279
+ callEventMethod: (S, j) => {
4280
+ var w, V;
4281
+ const N = c.get(m).current;
4282
+ (V = N == null ? void 0 : (w = N.props)[S]) == null || V.call(w, j);
4277
4283
  },
4278
4284
  /** 获取当前 node 的 props */
4279
4285
  getProps: () => {
@@ -4282,116 +4288,122 @@ const yt = (t, e) => function(...r) {
4282
4288
  },
4283
4289
  nodeRefs: p.nodeRefs
4284
4290
  };
4285
- return this.processRootContext(y), fr(y, p);
4291
+ return this.processRootContext(b), fr(b, p);
4286
4292
  }
4287
4293
  injectEngEnv() {
4288
- const p = {}, v = e.value.injectEnvList || [];
4294
+ const p = {}, g = e.value.injectEnvList || [];
4289
4295
  if (Array.isArray(e.value.injectEnvList)) {
4290
4296
  const m = {
4291
4297
  [Ea.COMPONENTS]: r.components
4292
4298
  };
4293
- v.reduce((y, _) => (y[_] = m[_], y), p);
4299
+ g.reduce((b, y) => (b[y] = m[y], b), p);
4294
4300
  }
4295
4301
  return p;
4296
4302
  }
4297
4303
  renderCore() {
4298
- const { $$context: p, ...v } = this.props, m = {
4304
+ const { $$context: p, ...g } = this.props, m = {
4299
4305
  key: e.id,
4300
4306
  ...e.props,
4301
- ...v
4302
- }, y = this.createCurrentNodeCtx();
4303
- this.transformMethods({ context: y });
4304
- let _ = de(m, {
4305
- $$context: y,
4307
+ ...g
4308
+ }, b = this.createCurrentNodeCtx();
4309
+ this.transformMethods({ context: b });
4310
+ let y = de(m, {
4311
+ $$context: b,
4306
4312
  ...l,
4307
4313
  nodeModel: e
4308
4314
  });
4309
4315
  const S = this.injectEngEnv();
4310
- Object.assign(_, S);
4311
- const N = this.processNodeClassName(_.className, y);
4312
- _.className = N;
4313
- const j = this.processNodeStyle(y);
4314
- _.style = j;
4315
- const { children: $ } = _;
4316
- delete _.children;
4317
- const F = this.processNodeChild($, y);
4318
- if (_.ref = this.targetComponentRef, e.value.eventListener) {
4319
- const gt = this.processNodeEventListener(y);
4320
- _ = {
4321
- ..._,
4316
+ Object.assign(y, S);
4317
+ const j = this.processNodeClassName(y.className, b);
4318
+ y.className = j;
4319
+ const N = this.processNodeStyle(b);
4320
+ y.style = {
4321
+ ...(y == null ? void 0 : y.style) || {},
4322
+ ...N || {}
4323
+ };
4324
+ const { children: w } = y;
4325
+ delete y.children;
4326
+ const V = this.processNodeChild(w, b);
4327
+ if (y.ref = this.targetComponentRef, e.value.eventListener) {
4328
+ const gt = this.processNodeEventListener(b);
4329
+ y = {
4330
+ ...y,
4322
4331
  ...gt
4323
4332
  };
4324
4333
  }
4325
- return this.processNodeConditionAndConfigHook(_, F, y);
4334
+ return this.processNodeConditionAndConfigHook(y, V, b);
4326
4335
  }
4327
4336
  renderLoop() {
4328
- const { $$context: p, ...v } = this.props, m = {
4337
+ const { $$context: p, ...g } = this.props, m = {
4329
4338
  key: e.id,
4330
4339
  ...e.props,
4331
- ...v
4332
- }, y = this.createCurrentNodeCtx();
4333
- this.transformMethods({ context: y });
4334
- const _ = e.value.loop;
4340
+ ...g
4341
+ }, b = this.createCurrentNodeCtx();
4342
+ this.transformMethods({ context: b });
4343
+ const y = e.value.loop;
4335
4344
  let S = [];
4336
- if (_ && _.open) {
4345
+ if (y && y.open) {
4337
4346
  this.targetComponentRef.current = [];
4338
- let N = _.data || [];
4339
- if (mt(_.data)) {
4340
- const j = _.data;
4341
- N = At(j.value, {
4342
- nodeContext: y || {},
4347
+ let j = y.data || [];
4348
+ if (mt(y.data)) {
4349
+ const N = y.data;
4350
+ j = At(N.value, {
4351
+ nodeContext: b || {},
4343
4352
  storeManager: n,
4344
4353
  nodeModel: e
4345
4354
  }) || [];
4346
4355
  }
4347
- return S = N.map((...j) => {
4348
- const $ = j[1], F = [_.forName || "item", _.forIndex || "index"], ht = Po(j, F);
4356
+ return S = j.map((...N) => {
4357
+ const w = N[1], V = [y.forName || "item", y.forIndex || "index"], ht = Po(N, V);
4349
4358
  let gt = "loopData";
4350
- _.name && (gt = `${gt}${_.name}`);
4359
+ y.name && (gt = `${gt}${y.name}`);
4351
4360
  const vt = fr(
4352
4361
  {
4353
4362
  [gt]: ht,
4354
- nodeRefs: y.nodeRefs,
4363
+ nodeRefs: b.nodeRefs,
4355
4364
  // 使用空函数,避免获取到父节点的方法或者函数
4356
4365
  getProps: function() {
4357
4366
  },
4358
4367
  callEventMethod: function() {
4359
4368
  }
4360
4369
  },
4361
- y
4370
+ b
4362
4371
  );
4363
- let B = de(m, {
4372
+ let F = de(m, {
4364
4373
  $$context: vt,
4365
4374
  ...l,
4366
4375
  nodeModel: e
4367
4376
  });
4368
4377
  const Ta = this.injectEngEnv();
4369
- Object.assign(B, Ta);
4370
- const Ra = this.processNodeClassName(B.className, vt);
4371
- B.className = Ra;
4378
+ Object.assign(F, Ta);
4379
+ const Ra = this.processNodeClassName(F.className, vt);
4380
+ F.className = Ra;
4372
4381
  const Ma = this.processNodeStyle(vt);
4373
- B.style = Ma;
4374
- const { children: Pa } = B;
4375
- delete B.children;
4382
+ F.style = {
4383
+ ...(F == null ? void 0 : F.style) || {},
4384
+ ...Ma || {}
4385
+ };
4386
+ const { children: Pa } = F;
4387
+ delete F.children;
4376
4388
  const Ia = this.processNodeChild(Pa, vt);
4377
- if (B.key = `${B.key}-${$}`, mt(_.key)) {
4378
- const zt = _.key, Da = At(zt.value, {
4389
+ if (F.key = `${F.key}-${w}`, mt(y.key)) {
4390
+ const zt = y.key, Da = At(zt.value, {
4379
4391
  nodeContext: vt || {},
4380
4392
  storeManager: n,
4381
4393
  nodeModel: e
4382
4394
  });
4383
- B.key += `-${Da}`;
4395
+ F.key += `-${Da}`;
4384
4396
  }
4385
- if (B.ref = (zt) => {
4386
- this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[$] = zt;
4397
+ if (F.ref = (zt) => {
4398
+ this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[w] = zt;
4387
4399
  }, e.value.eventListener) {
4388
4400
  const zt = this.processNodeEventListener(vt);
4389
- B = {
4390
- ...B,
4401
+ F = {
4402
+ ...F,
4391
4403
  ...zt
4392
4404
  };
4393
4405
  }
4394
- return this.processNodeConditionAndConfigHook(B, Ia, vt);
4406
+ return this.processNodeConditionAndConfigHook(F, Ia, vt);
4395
4407
  }), S;
4396
4408
  }
4397
4409
  }
@@ -4400,27 +4412,27 @@ const yt = (t, e) => function(...r) {
4400
4412
  return p && p.open ? this.renderLoop() : this.renderCore();
4401
4413
  }
4402
4414
  }
4403
- return w(h, "__CP_TYPE__", Re), h.displayName = `${e.value.componentName}Dynamic`, h;
4415
+ return $(h, "__CP_TYPE__", Re), h.displayName = `${e.value.componentName}Dynamic`, h;
4404
4416
  };
4405
- class Wg {
4417
+ class Jg {
4406
4418
  constructor() {
4407
- w(this, "renderMode", "normal");
4408
- w(this, "components", {});
4409
- w(this, "storeManager", new Ku());
4419
+ $(this, "renderMode", "normal");
4420
+ $(this, "components", {});
4421
+ $(this, "storeManager", new Ku());
4410
4422
  // 存储节点的变量或者方法
4411
- w(this, "variableManager", new Qu());
4412
- w(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4413
- w(this, "onGetRef");
4414
- w(this, "onGetComponent");
4415
- w(this, "onComponentMount");
4416
- w(this, "refManager", new Do());
4417
- w(this, "onComponentDestroy");
4423
+ $(this, "variableManager", new Qu());
4424
+ $(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4425
+ $(this, "onGetRef");
4426
+ $(this, "onGetComponent");
4427
+ $(this, "onComponentMount");
4428
+ $(this, "refManager", new Do());
4429
+ $(this, "onComponentDestroy");
4418
4430
  /**
4419
4431
  * 处理 props 钩子, 可以统一拦截 node 的处理,并修改其值
4420
4432
  */
4421
- w(this, "processNodeConfigHook");
4433
+ $(this, "processNodeConfigHook");
4422
4434
  /** 请求 API */
4423
- w(this, "requestAPI", async (e) => {
4435
+ $(this, "requestAPI", async (e) => {
4424
4436
  throw console.log(e), new Error("Need to implement requestAPI for Render");
4425
4437
  });
4426
4438
  }
@@ -4432,7 +4444,7 @@ class Wg {
4432
4444
  getComponent(e) {
4433
4445
  var o;
4434
4446
  const r = e.value.componentName;
4435
- let n = Wu(r, this.components);
4447
+ let n = Ju(r, this.components);
4436
4448
  return Gu(n) || (n = zu(n), this.components[r] = n), this.onGetComponent && (n = (o = this.onGetComponent) == null ? void 0 : o.call(this, n, e)), n;
4437
4449
  }
4438
4450
  pageRender(e, {
@@ -4456,7 +4468,7 @@ class Wg {
4456
4468
  doc: l
4457
4469
  }) {
4458
4470
  this.renderMode = u, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = d, this.refManager = o, this.requestAPI = f;
4459
- const h = e.value.componentsTree, g = this.getComponent(h), b = kr(g, e.value.componentsTree, {
4471
+ const h = e.value.componentsTree, v = this.getComponent(h), _ = kr(v, e.value.componentsTree, {
4460
4472
  storeManager: this.storeManager,
4461
4473
  variableManager: this.variableManager,
4462
4474
  runtimeComponentCache: this.runtimeComponentCache,
@@ -4470,16 +4482,16 @@ class Wg {
4470
4482
  requestAPI: f,
4471
4483
  components: this.components,
4472
4484
  doc: l
4473
- }), p = {}, v = h.props;
4474
- return Object.keys(v).forEach((m) => {
4475
- p[m] = v[m].value;
4476
- }), p.$$context = a, oe(b, p);
4485
+ }), p = {}, g = h.props;
4486
+ return Object.keys(g).forEach((m) => {
4487
+ p[m] = g[m].value;
4488
+ }), p.$$context = a, oe(_, p);
4477
4489
  }
4478
4490
  clear() {
4479
4491
  this.runtimeComponentCache.clear(), this.storeManager.destroy();
4480
4492
  }
4481
4493
  }
4482
- const Nv = za(new Wg()), Jg = [
4494
+ const Nv = za(new Jg()), Wg = [
4483
4495
  "a",
4484
4496
  "abbr",
4485
4497
  "acronym",
@@ -4634,7 +4646,7 @@ const Nv = za(new Wg()), Jg = [
4634
4646
  return t.forEach((r) => {
4635
4647
  e[r.key] = r.value;
4636
4648
  }), e;
4637
- }, qg = Jg.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
4649
+ }, qg = Wg.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
4638
4650
  let a = r;
4639
4651
  Array.isArray(r) || (a = [r]);
4640
4652
  const s = {
@@ -4751,7 +4763,7 @@ const Nv = za(new Wg()), Jg = [
4751
4763
  }), []);
4752
4764
  const i = {
4753
4765
  boxSizing: "border-box",
4754
- ...a.style || {}
4766
+ ...o || {}
4755
4767
  };
4756
4768
  return x.createElement(
4757
4769
  "div",
@@ -4794,14 +4806,14 @@ const Nv = za(new Wg()), Jg = [
4794
4806
  class ov extends x.Component {
4795
4807
  constructor(r) {
4796
4808
  super(r);
4797
- w(this, "refManager");
4809
+ $(this, "refManager");
4798
4810
  // save component instance
4799
- w(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4800
- w(this, "onGetRef", (r, n, o) => {
4811
+ $(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4812
+ $(this, "onGetRef", (r, n, o) => {
4801
4813
  var a, s;
4802
4814
  (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);
4803
4815
  });
4804
- w(this, "rerender", (r) => {
4816
+ $(this, "rerender", (r) => {
4805
4817
  if (this.props.adapter.clear(), (r == null ? void 0 : r.nodeType) === "PAGE" && r)
4806
4818
  this.setState({
4807
4819
  pageModel: r
@@ -4868,7 +4880,7 @@ const jv = () => {
4868
4880
  class av extends x.Component {
4869
4881
  constructor(r) {
4870
4882
  super(r);
4871
- w(this, "onDoubleClick", () => {
4883
+ $(this, "onDoubleClick", () => {
4872
4884
  this.setState({
4873
4885
  hasError: !1,
4874
4886
  error: null
@@ -5104,7 +5116,7 @@ function dv(t) {
5104
5116
  }
5105
5117
  class pv {
5106
5118
  constructor() {
5107
- w(this, "instanceMap", /* @__PURE__ */ new Map());
5119
+ $(this, "instanceMap", /* @__PURE__ */ new Map());
5108
5120
  }
5109
5121
  get(e) {
5110
5122
  return this.instanceMap.get(e);
@@ -5163,11 +5175,11 @@ const hv = (t) => {
5163
5175
  class xv extends x.Component {
5164
5176
  constructor(r) {
5165
5177
  super(r);
5166
- w(this, "instanceManager", new pv());
5167
- w(this, "renderRef");
5168
- w(this, "dropPlaceholder", hv);
5169
- w(this, "_components", {});
5170
- w(this, "onGetComponent", (r, n) => {
5178
+ $(this, "instanceManager", new pv());
5179
+ $(this, "renderRef");
5180
+ $(this, "dropPlaceholder", hv);
5181
+ $(this, "_components", {});
5182
+ $(this, "onGetComponent", (r, n) => {
5171
5183
  var c, u;
5172
5184
  const o = this;
5173
5185
  let a = r;
@@ -5179,13 +5191,13 @@ class xv extends x.Component {
5179
5191
  class i extends x.Component {
5180
5192
  constructor() {
5181
5193
  super(...arguments);
5182
- w(this, "_DESIGN_BOX", !0);
5183
- w(this, "_NODE_MODEL", n);
5184
- w(this, "_NODE_ID", n.id);
5185
- w(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5186
- w(this, "_STATUS");
5187
- w(this, "_design_target_component");
5188
- w(this, "_dom");
5194
+ $(this, "_DESIGN_BOX", !0);
5195
+ $(this, "_NODE_MODEL", n);
5196
+ $(this, "_NODE_ID", n.id);
5197
+ $(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5198
+ $(this, "_STATUS");
5199
+ $(this, "_design_target_component", x.createRef());
5200
+ $(this, "_dom");
5189
5201
  }
5190
5202
  componentDidMount() {
5191
5203
  o.instanceManager.add(n.id, this);
@@ -5197,31 +5209,36 @@ class xv extends x.Component {
5197
5209
  this._STATUS = "DESTROY", o.instanceManager.remove(n.id, this);
5198
5210
  }
5199
5211
  getDom() {
5200
- var h, g;
5201
- return ((g = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : g.autoGetDom) ?? !0 ? dv(this) : this._dom;
5212
+ var h, v;
5213
+ return ((v = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : v.autoGetDom) ?? !0 ? dv(this) : this._dom;
5202
5214
  }
5203
5215
  render() {
5204
- var m, y, _, S;
5205
- const { children: l = [], onlyRenderChild: h, ...g } = this.props;
5206
- let b = l;
5207
- if (ot(l) || (b = [l]), !!!b.filter(Boolean).length && (n.isContainer() || n.value.componentName === rt.ROOT_CONTAINER)) {
5208
- const N = (y = (m = n.material) == null ? void 0 : m.value.advanceCustom) == null ? void 0 : y.dropPlaceholder;
5209
- b.push(
5216
+ var b, y, S, j;
5217
+ const { children: l = [], onlyRenderChild: h, ...v } = this.props, _ = {
5218
+ ...v,
5219
+ ref: (N) => {
5220
+ this._design_target_component.current = N;
5221
+ }
5222
+ };
5223
+ let p = l;
5224
+ if (ot(l) || (p = [l]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === rt.ROOT_CONTAINER)) {
5225
+ const N = (y = (b = n.material) == null ? void 0 : b.value.advanceCustom) == null ? void 0 : y.dropPlaceholder;
5226
+ p.push(
5210
5227
  x.createElement(N || o.dropPlaceholder, {
5211
5228
  node: n
5212
5229
  })
5213
5230
  );
5214
5231
  }
5215
- return h ? b : ((S = (_ = n.material) == null ? void 0 : _.value.advanceCustom) == null ? void 0 : S.autoGetDom) ?? !0 ? x.createElement(a, g, ...b) : x.createElement(
5232
+ return h ? p : ((j = (S = n.material) == null ? void 0 : S.value.advanceCustom) == null ? void 0 : j.autoGetDom) ?? !0 ? x.createElement(a, _, ...p) : x.createElement(
5216
5233
  a,
5217
5234
  {
5218
- ...g,
5235
+ ..._,
5219
5236
  // 注入到组件中, 配合设计器使用
5220
- $SET_DOM: (j) => {
5221
- this._dom = j;
5237
+ $SET_DOM: (w) => {
5238
+ this._dom = w;
5222
5239
  }
5223
5240
  },
5224
- ...b
5241
+ ...p
5225
5242
  );
5226
5243
  }
5227
5244
  }
@@ -5301,12 +5318,12 @@ class xv extends x.Component {
5301
5318
  * @returns
5302
5319
  */
5303
5320
  processNodeConfigHook: (s, i) => {
5304
- var g, b;
5321
+ var v, _;
5305
5322
  if (i.nodeType !== "NODE")
5306
5323
  return s;
5307
5324
  const { props: c, condition: u } = s;
5308
5325
  let d = { ...c };
5309
- const f = ((g = i.value.configure) == null ? void 0 : g.devState) || {}, l = (b = i.material) == null ? void 0 : b.value.fixedProps;
5326
+ const f = ((v = i.value.configure) == null ? void 0 : v.devState) || {}, l = (_ = i.material) == null ? void 0 : _.value.fixedProps;
5310
5327
  if (l !== void 0) {
5311
5328
  if (Ft(l))
5312
5329
  d = {
@@ -5375,82 +5392,82 @@ function vv() {
5375
5392
  }, n = {}, o = {}, a = {};
5376
5393
  function s(l, h) {
5377
5394
  l = l.push ? l : [l];
5378
- var g = [], b = l.length, p = b, v, m, y, _;
5379
- for (v = function(S, N) {
5380
- N.length && g.push(S), p--, p || h(g);
5381
- }; b--; ) {
5382
- if (m = l[b], y = o[m], y) {
5383
- v(m, y);
5395
+ var v = [], _ = l.length, p = _, g, m, b, y;
5396
+ for (g = function(S, j) {
5397
+ j.length && v.push(S), p--, p || h(v);
5398
+ }; _--; ) {
5399
+ if (m = l[_], b = o[m], b) {
5400
+ g(m, b);
5384
5401
  continue;
5385
5402
  }
5386
- _ = a[m] = a[m] || [], _.push(v);
5403
+ y = a[m] = a[m] || [], y.push(g);
5387
5404
  }
5388
5405
  }
5389
5406
  function i(l, h) {
5390
5407
  if (l) {
5391
- var g = a[l];
5392
- if (o[l] = h, !!g)
5393
- for (; g.length; )
5394
- g[0](l, h), g.splice(0, 1);
5408
+ var v = a[l];
5409
+ if (o[l] = h, !!v)
5410
+ for (; v.length; )
5411
+ v[0](l, h), v.splice(0, 1);
5395
5412
  }
5396
5413
  }
5397
5414
  function c(l, h) {
5398
5415
  l.call && (l = { success: l }), h.length ? (l.error || r)(h) : (l.success || r)(l);
5399
5416
  }
5400
- function u(l, h, g, b) {
5401
- var p = document, v = g.async, m = (g.numRetries || 0) + 1, y = g.before || r, _ = l.replace(/[\?|#].*$/, ""), S = l.replace(/^(css|img|module|nomodule)!/, ""), N, j, $;
5402
- if (b = b || 0, /(^css!|\.css$)/.test(_))
5403
- $ = p.createElement("link"), $.rel = "stylesheet", $.href = S, N = "hideFocus" in $, N && $.relList && (N = 0, $.rel = "preload", $.as = "style");
5404
- else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(_))
5405
- $ = p.createElement("img"), $.src = S;
5406
- else if ($ = p.createElement("script"), $.src = S, $.async = v === void 0 ? !0 : v, j = "noModule" in $, /^module!/.test(_)) {
5407
- if (!j) return h(l, "l");
5408
- $.type = "module";
5409
- } else if (/^nomodule!/.test(_) && j) return h(l, "l");
5410
- $.onload = $.onerror = $.onbeforeload = function(F) {
5411
- var ht = F.type[0];
5412
- if (N)
5417
+ function u(l, h, v, _) {
5418
+ var p = document, g = v.async, m = (v.numRetries || 0) + 1, b = v.before || r, y = l.replace(/[\?|#].*$/, ""), S = l.replace(/^(css|img|module|nomodule)!/, ""), j, N, w;
5419
+ if (_ = _ || 0, /(^css!|\.css$)/.test(y))
5420
+ w = p.createElement("link"), w.rel = "stylesheet", w.href = S, j = "hideFocus" in w, j && w.relList && (j = 0, w.rel = "preload", w.as = "style");
5421
+ else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(y))
5422
+ w = p.createElement("img"), w.src = S;
5423
+ else if (w = p.createElement("script"), w.src = S, w.async = g === void 0 ? !0 : g, N = "noModule" in w, /^module!/.test(y)) {
5424
+ if (!N) return h(l, "l");
5425
+ w.type = "module";
5426
+ } else if (/^nomodule!/.test(y) && N) return h(l, "l");
5427
+ w.onload = w.onerror = w.onbeforeload = function(V) {
5428
+ var ht = V.type[0];
5429
+ if (j)
5413
5430
  try {
5414
- $.sheet.cssText.length || (ht = "e");
5431
+ w.sheet.cssText.length || (ht = "e");
5415
5432
  } catch (gt) {
5416
5433
  gt.code != 18 && (ht = "e");
5417
5434
  }
5418
5435
  if (ht == "e") {
5419
- if (b += 1, b < m)
5420
- return u(l, h, g, b);
5421
- } else if ($.rel == "preload" && $.as == "style")
5422
- return $.rel = "stylesheet";
5423
- h(l, ht, F.defaultPrevented);
5424
- }, y(l, $) !== !1 && p.head.appendChild($);
5436
+ if (_ += 1, _ < m)
5437
+ return u(l, h, v, _);
5438
+ } else if (w.rel == "preload" && w.as == "style")
5439
+ return w.rel = "stylesheet";
5440
+ h(l, ht, V.defaultPrevented);
5441
+ }, b(l, w) !== !1 && p.head.appendChild(w);
5425
5442
  }
5426
- function d(l, h, g) {
5443
+ function d(l, h, v) {
5427
5444
  l = l.push ? l : [l];
5428
- var b = l.length, p = b, v = [], m, y;
5429
- for (m = function(_, S, N) {
5430
- if (S == "e" && v.push(_), S == "b")
5431
- if (N) v.push(_);
5445
+ var _ = l.length, p = _, g = [], m, b;
5446
+ for (m = function(y, S, j) {
5447
+ if (S == "e" && g.push(y), S == "b")
5448
+ if (j) g.push(y);
5432
5449
  else return;
5433
- b--, b || h(v);
5434
- }, y = 0; y < p; y++) u(l[y], m, g);
5450
+ _--, _ || h(g);
5451
+ }, b = 0; b < p; b++) u(l[b], m, v);
5435
5452
  }
5436
- function f(l, h, g) {
5437
- var b, p;
5438
- if (h && h.trim && (b = h), p = (b ? g : h) || {}, b) {
5439
- if (b in n)
5453
+ function f(l, h, v) {
5454
+ var _, p;
5455
+ if (h && h.trim && (_ = h), p = (_ ? v : h) || {}, _) {
5456
+ if (_ in n)
5440
5457
  throw "LoadJS";
5441
- n[b] = !0;
5458
+ n[_] = !0;
5442
5459
  }
5443
- function v(m, y) {
5444
- d(l, function(_) {
5445
- c(p, _), m && c({ success: m, error: y }, _), i(b, _);
5460
+ function g(m, b) {
5461
+ d(l, function(y) {
5462
+ c(p, y), m && c({ success: m, error: b }, y), i(_, y);
5446
5463
  }, p);
5447
5464
  }
5448
- if (p.returnPromise) return new Promise(v);
5449
- v();
5465
+ if (p.returnPromise) return new Promise(g);
5466
+ g();
5450
5467
  }
5451
- return f.ready = function(h, g) {
5452
- return s(h, function(b) {
5453
- c(g, b);
5468
+ return f.ready = function(h, v) {
5469
+ return s(h, function(_) {
5470
+ c(v, _);
5454
5471
  }), f;
5455
5472
  }, f.done = function(h) {
5456
5473
  i(h, []);
@@ -5466,11 +5483,11 @@ var mv = vv();
5466
5483
  const no = /* @__PURE__ */ sv(mv);
5467
5484
  class Tv {
5468
5485
  constructor(e, r) {
5469
- w(this, "assets");
5470
- w(this, "loadStatus");
5471
- w(this, "win", window);
5472
- w(this, "_onSuccessList", []);
5473
- w(this, "_onErrorList", []);
5486
+ $(this, "assets");
5487
+ $(this, "loadStatus");
5488
+ $(this, "win", window);
5489
+ $(this, "_onSuccessList", []);
5490
+ $(this, "_onErrorList", []);
5474
5491
  this.assets = JSON.parse(JSON.stringify(e || [])), this.loadStatus = "INIT", r != null && r.window && (this.win = r.window);
5475
5492
  }
5476
5493
  load(e) {
@@ -5511,7 +5528,7 @@ export {
5511
5528
  pv as ComponentInstanceManager,
5512
5529
  Re as DYNAMIC_COMPONENT_TYPE,
5513
5530
  hv as DefaultDropPlaceholder,
5514
- Wg as DefineReactAdapter,
5531
+ Jg as DefineReactAdapter,
5515
5532
  xv as DesignRender,
5516
5533
  Ug as INNER_EVENT_LIST,
5517
5534
  Vg as InnerPropList,
@@ -5524,12 +5541,12 @@ export {
5524
5541
  Ev as collectVariable,
5525
5542
  zu as compWrapper,
5526
5543
  se as convertCodeStringToFunction,
5527
- Wu as findComponentByChainRefer,
5528
- wv as flatObject,
5544
+ Ju as findComponentByChainRefer,
5545
+ $v as flatObject,
5529
5546
  ku as formatSourceStylePropertyName,
5530
5547
  za as getAdapter,
5531
5548
  Ov as getCSSTextValue,
5532
- $v as getComponentsLibs,
5549
+ wv as getComponentsLibs,
5533
5550
  bn as getInheritObj,
5534
5551
  Hu as getMatchVal,
5535
5552
  yn as getNodeCssClassName,