@chamn/render 0.0.20 → 0.0.21

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.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  var na = Object.defineProperty;
2
2
  var oa = (t, e, r) => e in t ? na(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var y = (t, e, r) => (oa(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import O, { Component as aa, createElement as sa, useEffect as ia, useRef as In, useMemo as ca } from "react";
4
+ import O, { Component as aa, createElement as sa, useEffect as ia, useRef as Rn, useMemo as ca } from "react";
5
5
  import * as ua from "react-dom";
6
6
  const la = (t) => () => {
7
7
  console.warn(`${t} need to be implement getComponent`);
8
- }, fa = ["customPageRootRender"], Ir = [
8
+ }, fa = ["customPageRootRender"], Rr = [
9
9
  // 页面渲染
10
10
  "pageRender",
11
11
  // 渲染一个组件
@@ -22,17 +22,17 @@ const la = (t) => () => {
22
22
  "transformGlobalData",
23
23
  "errorCatch",
24
24
  "clear"
25
- ], pa = (t) => [...Ir, ...fa].reduce((r, n) => {
25
+ ], pa = (t) => [...Rr, ...fa].reduce((r, n) => {
26
26
  var o;
27
- return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Ir.includes(n) && (r[n] = la), r;
27
+ return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Rr.includes(n) && (r[n] = la), r;
28
28
  }, {});
29
29
  var da = Object.defineProperty, ha = (t, e, r) => e in t ? da(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e, r) => (ha(t, typeof e != "symbol" ? e + "" : e, r), r), ma = typeof global == "object" && global && global.Object === Object && global;
30
30
  const Dn = ma;
31
31
  var va = typeof self == "object" && self && self.Object === Object && self, ga = Dn || va || Function("return this")();
32
32
  const K = ga;
33
33
  var ya = K.Symbol;
34
- const z = ya;
35
- var Ln = Object.prototype, ba = Ln.hasOwnProperty, _a = Ln.toString, Ut = z ? z.toStringTag : void 0;
34
+ const G = ya;
35
+ var Ln = Object.prototype, ba = Ln.hasOwnProperty, _a = Ln.toString, Ut = G ? G.toStringTag : void 0;
36
36
  function Sa(t) {
37
37
  var e = ba.call(t, Ut), r = t[Ut];
38
38
  try {
@@ -47,7 +47,7 @@ var ja = Object.prototype, Oa = ja.toString;
47
47
  function wa(t) {
48
48
  return Oa.call(t);
49
49
  }
50
- var Ca = "[object Null]", Ea = "[object Undefined]", Dr = z ? z.toStringTag : void 0;
50
+ var Ca = "[object Null]", Ea = "[object Undefined]", Dr = G ? G.toStringTag : void 0;
51
51
  function ht(t) {
52
52
  return t == null ? t === void 0 ? Ea : Ca : Dr && Dr in Object(t) ? Sa(t) : wa(t);
53
53
  }
@@ -65,7 +65,7 @@ function er(t, e) {
65
65
  }
66
66
  var xa = Array.isArray;
67
67
  const P = xa;
68
- var $a = 1 / 0, Lr = z ? z.prototype : void 0, Fr = Lr ? Lr.toString : void 0;
68
+ var $a = 1 / 0, Lr = G ? G.prototype : void 0, Fr = Lr ? Lr.toString : void 0;
69
69
  function Fn(t) {
70
70
  if (typeof t == "string")
71
71
  return t;
@@ -90,13 +90,13 @@ function nr(t) {
90
90
  var e = ht(t);
91
91
  return e == Ma || e == Aa || e == Ta || e == Pa;
92
92
  }
93
- var Ra = K["__core-js_shared__"];
94
- const $e = Ra;
93
+ var Ia = K["__core-js_shared__"];
94
+ const $e = Ia;
95
95
  var Br = function() {
96
96
  var t = /[^.]+$/.exec($e && $e.keys && $e.keys.IE_PROTO || "");
97
97
  return t ? "Symbol(src)_1." + t : "";
98
98
  }();
99
- function Ia(t) {
99
+ function Ra(t) {
100
100
  return !!Br && Br in t;
101
101
  }
102
102
  var Da = Function.prototype, La = Da.toString;
@@ -113,13 +113,13 @@ function mt(t) {
113
113
  }
114
114
  return "";
115
115
  }
116
- var Fa = /[\\^$.*+?()[\]{}|]/g, Ba = /^\[object .+?Constructor\]$/, Ua = Function.prototype, ka = Object.prototype, Va = Ua.toString, za = ka.hasOwnProperty, Ga = RegExp(
117
- "^" + Va.call(za).replace(Fa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
116
+ var Fa = /[\\^$.*+?()[\]{}|]/g, Ba = /^\[object .+?Constructor\]$/, Ua = Function.prototype, ka = Object.prototype, Va = Ua.toString, Ga = ka.hasOwnProperty, za = RegExp(
117
+ "^" + Va.call(Ga).replace(Fa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
118
118
  );
119
119
  function Ha(t) {
120
- if (!W(t) || Ia(t))
120
+ if (!W(t) || Ra(t))
121
121
  return !1;
122
- var e = nr(t) ? Ga : Ba;
122
+ var e = nr(t) ? za : Ba;
123
123
  return e.test(mt(t));
124
124
  }
125
125
  function Ja(t, e) {
@@ -311,7 +311,7 @@ var js = "[object Arguments]";
311
311
  function Vr(t) {
312
312
  return Y(t) && ht(t) == js;
313
313
  }
314
- var zn = Object.prototype, Os = zn.hasOwnProperty, ws = zn.propertyIsEnumerable, Cs = Vr(function() {
314
+ var Gn = Object.prototype, Os = Gn.hasOwnProperty, ws = Gn.propertyIsEnumerable, Cs = Vr(function() {
315
315
  return arguments;
316
316
  }()) ? Vr : function(t) {
317
317
  return Y(t) && Os.call(t, "callee") && !ws.call(t, "callee");
@@ -320,11 +320,11 @@ const Jt = Cs;
320
320
  function Es() {
321
321
  return !1;
322
322
  }
323
- var Gn = typeof exports == "object" && exports && !exports.nodeType && exports, zr = Gn && typeof module == "object" && module && !module.nodeType && module, Ns = zr && zr.exports === Gn, Gr = Ns ? K.Buffer : void 0, xs = Gr ? Gr.isBuffer : void 0, $s = xs || Es;
323
+ var zn = typeof exports == "object" && exports && !exports.nodeType && exports, Gr = zn && typeof module == "object" && module && !module.nodeType && module, Ns = Gr && Gr.exports === zn, zr = Ns ? K.Buffer : void 0, xs = zr ? zr.isBuffer : void 0, $s = xs || Es;
324
324
  const Wt = $s;
325
- var Ts = "[object Arguments]", Ms = "[object Array]", As = "[object Boolean]", Ps = "[object Date]", Rs = "[object Error]", Is = "[object Function]", Ds = "[object Map]", Ls = "[object Number]", Fs = "[object Object]", Bs = "[object RegExp]", Us = "[object Set]", ks = "[object String]", Vs = "[object WeakMap]", zs = "[object ArrayBuffer]", Gs = "[object DataView]", Hs = "[object Float32Array]", Js = "[object Float64Array]", Ws = "[object Int8Array]", Qs = "[object Int16Array]", qs = "[object Int32Array]", Ys = "[object Uint8Array]", Ks = "[object Uint8ClampedArray]", Xs = "[object Uint16Array]", Zs = "[object Uint32Array]", N = {};
325
+ var Ts = "[object Arguments]", Ms = "[object Array]", As = "[object Boolean]", Ps = "[object Date]", Is = "[object Error]", Rs = "[object Function]", Ds = "[object Map]", Ls = "[object Number]", Fs = "[object Object]", Bs = "[object RegExp]", Us = "[object Set]", ks = "[object String]", Vs = "[object WeakMap]", Gs = "[object ArrayBuffer]", zs = "[object DataView]", Hs = "[object Float32Array]", Js = "[object Float64Array]", Ws = "[object Int8Array]", Qs = "[object Int16Array]", qs = "[object Int32Array]", Ys = "[object Uint8Array]", Ks = "[object Uint8ClampedArray]", Xs = "[object Uint16Array]", Zs = "[object Uint32Array]", N = {};
326
326
  N[Hs] = N[Js] = N[Ws] = N[Qs] = N[qs] = N[Ys] = N[Ks] = N[Xs] = N[Zs] = !0;
327
- N[Ts] = N[Ms] = N[zs] = N[As] = N[Gs] = N[Ps] = N[Rs] = N[Is] = N[Ds] = N[Ls] = N[Fs] = N[Bs] = N[Us] = N[ks] = N[Vs] = !1;
327
+ N[Ts] = N[Ms] = N[Gs] = N[As] = N[zs] = N[Ps] = N[Is] = N[Rs] = N[Ds] = N[Ls] = N[Fs] = N[Bs] = N[Us] = N[ks] = N[Vs] = !1;
328
328
  function ti(t) {
329
329
  return Y(t) && sr(t.length) && !!N[ht(t)];
330
330
  }
@@ -460,10 +460,10 @@ function Pi(t) {
460
460
  var e = this.__data__, r = ye(e, t);
461
461
  return r < 0 ? void 0 : e[r][1];
462
462
  }
463
- function Ri(t) {
463
+ function Ii(t) {
464
464
  return ye(this.__data__, t) > -1;
465
465
  }
466
- function Ii(t, e) {
466
+ function Ri(t, e) {
467
467
  var r = this.__data__, n = ye(r, t);
468
468
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
469
469
  }
@@ -477,8 +477,8 @@ function tt(t) {
477
477
  tt.prototype.clear = $i;
478
478
  tt.prototype.delete = Ai;
479
479
  tt.prototype.get = Pi;
480
- tt.prototype.has = Ri;
481
- tt.prototype.set = Ii;
480
+ tt.prototype.has = Ii;
481
+ tt.prototype.set = Ri;
482
482
  var Di = vt(K, "Map");
483
483
  const qt = Di;
484
484
  function Li() {
@@ -522,10 +522,10 @@ et.prototype.delete = Bi;
522
522
  et.prototype.get = Ui;
523
523
  et.prototype.has = ki;
524
524
  et.prototype.set = Vi;
525
- var zi = "Expected a function";
525
+ var Gi = "Expected a function";
526
526
  function fr(t, e) {
527
527
  if (typeof t != "function" || e != null && typeof e != "function")
528
- throw new TypeError(zi);
528
+ throw new TypeError(Gi);
529
529
  var r = function() {
530
530
  var n = arguments, o = e ? e.apply(this, n) : n[0], a = r.cache;
531
531
  if (a.has(o))
@@ -536,10 +536,10 @@ function fr(t, e) {
536
536
  return r.cache = new (fr.Cache || et)(), r;
537
537
  }
538
538
  fr.Cache = et;
539
- var Gi = 500;
539
+ var zi = 500;
540
540
  function Hi(t) {
541
541
  var e = fr(t, function(n) {
542
- return r.size === Gi && r.clear(), n;
542
+ return r.size === zi && r.clear(), n;
543
543
  }), r = e.cache;
544
544
  return e;
545
545
  }
@@ -578,7 +578,7 @@ function pr(t, e) {
578
578
  t[o + r] = e[r];
579
579
  return t;
580
580
  }
581
- var Jr = z ? z.isConcatSpreadable : void 0;
581
+ var Jr = G ? G.isConcatSpreadable : void 0;
582
582
  function Xi(t) {
583
583
  return P(t) || Jt(t) || !!(Jr && t && t[Jr]);
584
584
  }
@@ -725,10 +725,10 @@ var Kr = "[object Map]", xc = "[object Object]", Xr = "[object Promise]", Zr = "
725
725
  return e;
726
726
  });
727
727
  const Yt = ut;
728
- var Rc = Object.prototype, Ic = Rc.hasOwnProperty;
728
+ var Ic = Object.prototype, Rc = Ic.hasOwnProperty;
729
729
  function Dc(t) {
730
730
  var e = t.length, r = new t.constructor(e);
731
- return e && typeof t[0] == "string" && Ic.call(t, "index") && (r.index = t.index, r.input = t.input), r;
731
+ return e && typeof t[0] == "string" && Rc.call(t, "index") && (r.index = t.index, r.input = t.input), r;
732
732
  }
733
733
  var Lc = K.Uint8Array;
734
734
  const fe = Lc;
@@ -745,7 +745,7 @@ function Uc(t) {
745
745
  var e = new t.constructor(t.source, Bc.exec(t));
746
746
  return e.lastIndex = t.lastIndex, e;
747
747
  }
748
- var rn = z ? z.prototype : void 0, nn = rn ? rn.valueOf : void 0;
748
+ var rn = G ? G.prototype : void 0, nn = rn ? rn.valueOf : void 0;
749
749
  function kc(t) {
750
750
  return nn ? Object(nn.call(t)) : {};
751
751
  }
@@ -753,14 +753,14 @@ function eo(t, e) {
753
753
  var r = e ? gr(t.buffer) : t.buffer;
754
754
  return new t.constructor(r, t.byteOffset, t.length);
755
755
  }
756
- var Vc = "[object Boolean]", zc = "[object Date]", Gc = "[object Map]", Hc = "[object Number]", Jc = "[object RegExp]", Wc = "[object Set]", Qc = "[object String]", qc = "[object Symbol]", Yc = "[object ArrayBuffer]", Kc = "[object DataView]", Xc = "[object Float32Array]", Zc = "[object Float64Array]", tu = "[object Int8Array]", eu = "[object Int16Array]", ru = "[object Int32Array]", nu = "[object Uint8Array]", ou = "[object Uint8ClampedArray]", au = "[object Uint16Array]", su = "[object Uint32Array]";
756
+ var Vc = "[object Boolean]", Gc = "[object Date]", zc = "[object Map]", Hc = "[object Number]", Jc = "[object RegExp]", Wc = "[object Set]", Qc = "[object String]", qc = "[object Symbol]", Yc = "[object ArrayBuffer]", Kc = "[object DataView]", Xc = "[object Float32Array]", Zc = "[object Float64Array]", tu = "[object Int8Array]", eu = "[object Int16Array]", ru = "[object Int32Array]", nu = "[object Uint8Array]", ou = "[object Uint8ClampedArray]", au = "[object Uint16Array]", su = "[object Uint32Array]";
757
757
  function iu(t, e, r) {
758
758
  var n = t.constructor;
759
759
  switch (e) {
760
760
  case Yc:
761
761
  return gr(t);
762
762
  case Vc:
763
- case zc:
763
+ case Gc:
764
764
  return new n(+t);
765
765
  case Kc:
766
766
  return Fc(t, r);
@@ -774,7 +774,7 @@ function iu(t, e, r) {
774
774
  case au:
775
775
  case su:
776
776
  return eo(t, r);
777
- case Gc:
777
+ case zc:
778
778
  return new n();
779
779
  case Hc:
780
780
  case Qc:
@@ -802,10 +802,10 @@ function du(t) {
802
802
  }
803
803
  var an = St && St.isSet, hu = an ? cr(an) : du;
804
804
  const mu = hu;
805
- var vu = 1, gu = 2, yu = 4, no = "[object Arguments]", bu = "[object Array]", _u = "[object Boolean]", Su = "[object Date]", ju = "[object Error]", oo = "[object Function]", Ou = "[object GeneratorFunction]", wu = "[object Map]", Cu = "[object Number]", ao = "[object Object]", Eu = "[object RegExp]", Nu = "[object Set]", xu = "[object String]", $u = "[object Symbol]", Tu = "[object WeakMap]", Mu = "[object ArrayBuffer]", Au = "[object DataView]", Pu = "[object Float32Array]", Ru = "[object Float64Array]", Iu = "[object Int8Array]", Du = "[object Int16Array]", Lu = "[object Int32Array]", Fu = "[object Uint8Array]", Bu = "[object Uint8ClampedArray]", Uu = "[object Uint16Array]", ku = "[object Uint32Array]", E = {};
806
- E[no] = E[bu] = E[Mu] = E[Au] = E[_u] = E[Su] = E[Pu] = E[Ru] = E[Iu] = E[Du] = E[Lu] = E[wu] = E[Cu] = E[ao] = E[Eu] = E[Nu] = E[xu] = E[$u] = E[Fu] = E[Bu] = E[Uu] = E[ku] = !0;
805
+ var vu = 1, gu = 2, yu = 4, no = "[object Arguments]", bu = "[object Array]", _u = "[object Boolean]", Su = "[object Date]", ju = "[object Error]", oo = "[object Function]", Ou = "[object GeneratorFunction]", wu = "[object Map]", Cu = "[object Number]", ao = "[object Object]", Eu = "[object RegExp]", Nu = "[object Set]", xu = "[object String]", $u = "[object Symbol]", Tu = "[object WeakMap]", Mu = "[object ArrayBuffer]", Au = "[object DataView]", Pu = "[object Float32Array]", Iu = "[object Float64Array]", Ru = "[object Int8Array]", Du = "[object Int16Array]", Lu = "[object Int32Array]", Fu = "[object Uint8Array]", Bu = "[object Uint8ClampedArray]", Uu = "[object Uint16Array]", ku = "[object Uint32Array]", E = {};
806
+ E[no] = E[bu] = E[Mu] = E[Au] = E[_u] = E[Su] = E[Pu] = E[Iu] = E[Ru] = E[Du] = E[Lu] = E[wu] = E[Cu] = E[ao] = E[Eu] = E[Nu] = E[xu] = E[$u] = E[Fu] = E[Bu] = E[Uu] = E[ku] = !0;
807
807
  E[ju] = E[oo] = E[Tu] = !1;
808
- function zt(t, e, r, n, o, a) {
808
+ function Gt(t, e, r, n, o, a) {
809
809
  var i, s = e & vu, c = e & gu, u = e & yu;
810
810
  if (r && (i = o ? r(t, n, o, a) : r(t)), i !== void 0)
811
811
  return i;
@@ -833,22 +833,22 @@ function zt(t, e, r, n, o, a) {
833
833
  if (d)
834
834
  return d;
835
835
  a.set(t, i), mu(t) ? t.forEach(function(b) {
836
- i.add(zt(b, e, r, b, t, a));
836
+ i.add(Gt(b, e, r, b, t, a));
837
837
  }) : fu(t) && t.forEach(function(b, S) {
838
- i.set(S, zt(b, e, r, S, t, a));
838
+ i.set(S, Gt(b, e, r, S, t, a));
839
839
  });
840
840
  var m = u ? c ? vr : Fe : c ? ee : ge, g = l ? void 0 : m(t);
841
841
  return is(g || t, function(b, S) {
842
- g && (S = b, b = t[S]), ar(i, S, zt(b, e, r, S, t, a));
842
+ g && (S = b, b = t[S]), ar(i, S, Gt(b, e, r, S, t, a));
843
843
  }), i;
844
844
  }
845
- var Vu = 1, zu = 4;
845
+ var Vu = 1, Gu = 4;
846
846
  function so(t) {
847
- return zt(t, Vu | zu);
847
+ return Gt(t, Vu | Gu);
848
848
  }
849
- var Gu = "__lodash_hash_undefined__";
849
+ var zu = "__lodash_hash_undefined__";
850
850
  function Hu(t) {
851
- return this.__data__.set(t, Gu), this;
851
+ return this.__data__.set(t, zu), this;
852
852
  }
853
853
  function Ju(t) {
854
854
  return this.__data__.has(t);
@@ -915,7 +915,7 @@ function yr(t) {
915
915
  r[++e] = n;
916
916
  }), r;
917
917
  }
918
- var Ku = 1, Xu = 2, Zu = "[object Boolean]", tl = "[object Date]", el = "[object Error]", rl = "[object Map]", nl = "[object Number]", ol = "[object RegExp]", al = "[object Set]", sl = "[object String]", il = "[object Symbol]", cl = "[object ArrayBuffer]", ul = "[object DataView]", sn = z ? z.prototype : void 0, Me = sn ? sn.valueOf : void 0;
918
+ var Ku = 1, Xu = 2, Zu = "[object Boolean]", tl = "[object Date]", el = "[object Error]", rl = "[object Map]", nl = "[object Number]", ol = "[object RegExp]", al = "[object Set]", sl = "[object String]", il = "[object Symbol]", cl = "[object ArrayBuffer]", ul = "[object DataView]", sn = G ? G.prototype : void 0, Me = sn ? sn.valueOf : void 0;
919
919
  function ll(t, e, r, n, o, a, i) {
920
920
  switch (r) {
921
921
  case ul:
@@ -1104,22 +1104,22 @@ function Al(t) {
1104
1104
  };
1105
1105
  }
1106
1106
  var Pl = Al();
1107
- const Rl = Pl;
1107
+ const Il = Pl;
1108
1108
  function ke(t, e, r) {
1109
1109
  (r !== void 0 && !te(t[e], r) || r === void 0 && !(e in t)) && or(t, e, r);
1110
1110
  }
1111
1111
  function Ve(t) {
1112
1112
  return Y(t) && ve(t);
1113
1113
  }
1114
- function ze(t, e) {
1114
+ function Ge(t, e) {
1115
1115
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
1116
1116
  return t[e];
1117
1117
  }
1118
- function Il(t) {
1118
+ function Rl(t) {
1119
1119
  return xt(t, ee(t));
1120
1120
  }
1121
1121
  function Dl(t, e, r, n, o, a, i) {
1122
- var s = ze(t, r), c = ze(e, r), u = i.get(c);
1122
+ var s = Ge(t, r), c = Ge(e, r), u = i.get(c);
1123
1123
  if (u) {
1124
1124
  ke(t, r, u);
1125
1125
  return;
@@ -1127,16 +1127,16 @@ function Dl(t, e, r, n, o, a, i) {
1127
1127
  var l = a ? a(s, c, r + "", t, e, i) : void 0, p = l === void 0;
1128
1128
  if (p) {
1129
1129
  var f = P(c), d = !f && Wt(c), m = !f && !d && ur(c);
1130
- l = c, f || d || m ? P(s) ? l = s : Ve(s) ? l = Bn(s) : d ? (p = !1, l = Kn(c, !0)) : m ? (p = !1, l = eo(c, !0)) : l = [] : B(c) || Jt(c) ? (l = s, Jt(s) ? l = Il(s) : (!W(s) || nr(s)) && (l = ro(c))) : p = !1;
1130
+ l = c, f || d || m ? P(s) ? l = s : Ve(s) ? l = Bn(s) : d ? (p = !1, l = Kn(c, !0)) : m ? (p = !1, l = eo(c, !0)) : l = [] : B(c) || Jt(c) ? (l = s, Jt(s) ? l = Rl(s) : (!W(s) || nr(s)) && (l = ro(c))) : p = !1;
1131
1131
  }
1132
1132
  p && (i.set(c, l), o(l, c, n, a, i), i.delete(c)), ke(t, r, l);
1133
1133
  }
1134
1134
  function fo(t, e, r, n, o) {
1135
- t !== e && Rl(e, function(a, i) {
1135
+ t !== e && Il(e, function(a, i) {
1136
1136
  if (o || (o = new H()), W(a))
1137
1137
  Dl(t, e, i, r, fo, n, o);
1138
1138
  else {
1139
- var s = n ? n(ze(t, i), a, i + "", t, e, o) : void 0;
1139
+ var s = n ? n(Ge(t, i), a, i + "", t, e, o) : void 0;
1140
1140
  s === void 0 && (s = a), ke(t, i, s);
1141
1141
  }
1142
1142
  }, ee);
@@ -1180,17 +1180,17 @@ function kl(t) {
1180
1180
  function Vl(t, e) {
1181
1181
  return e = $t(e, t), t = Fl(t, e), t == null || delete t[Tt(po(e))];
1182
1182
  }
1183
- function zl(t) {
1183
+ function Gl(t) {
1184
1184
  return B(t) ? void 0 : t;
1185
1185
  }
1186
- var Gl = 1, Hl = 2, Jl = 4, Wl = tc(function(t, e) {
1186
+ var zl = 1, Hl = 2, Jl = 4, Wl = tc(function(t, e) {
1187
1187
  var r = {};
1188
1188
  if (t == null)
1189
1189
  return r;
1190
1190
  var n = !1;
1191
1191
  e = er(e, function(a) {
1192
1192
  return a = $t(a, t), n || (n = a.length > 1), a;
1193
- }), xt(t, vr(t), r), n && (r = zt(r, Gl | Hl | Jl, zl));
1193
+ }), xt(t, vr(t), r), n && (r = Gt(r, zl | Hl | Jl, Gl));
1194
1194
  for (var o = e.length; o--; )
1195
1195
  Vl(r, e[o]);
1196
1196
  return r;
@@ -1498,7 +1498,7 @@ function yo(t, e) {
1498
1498
  return w(n);
1499
1499
  }
1500
1500
  }
1501
- function I() {
1501
+ function R() {
1502
1502
  return st("any", () => !0);
1503
1503
  }
1504
1504
  function M(t) {
@@ -1521,7 +1521,7 @@ function M(t) {
1521
1521
  function lt() {
1522
1522
  return st("boolean", (t) => typeof t == "boolean");
1523
1523
  }
1524
- function Ge(t) {
1524
+ function ze(t) {
1525
1525
  const e = {}, r = t.map((n) => U(n)).join();
1526
1526
  for (const n of t)
1527
1527
  e[n] = n;
@@ -1583,7 +1583,7 @@ function v(t) {
1583
1583
  refiner: (e, r) => e === void 0 || t.refiner(e, r)
1584
1584
  });
1585
1585
  }
1586
- function Gt(t, e) {
1586
+ function zt(t, e) {
1587
1587
  return new X({
1588
1588
  type: "record",
1589
1589
  schema: null,
@@ -1667,13 +1667,13 @@ const Or = w({
1667
1667
  "CNativeTag"
1668
1668
  ];
1669
1669
  var V = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t))(V || {}), wr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(wr || {}), He = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(He || {});
1670
- const vf = () => st("normalObj", (t) => !B(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Mt(t, Gt(h(), Cr)), !0)), Cr = L([
1670
+ const vf = () => st("normalObj", (t) => !B(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Mt(t, zt(h(), Cr)), !0)), Cr = L([
1671
1671
  h(),
1672
1672
  _o(),
1673
1673
  lt(),
1674
1674
  w({
1675
1675
  type: F(V.SLOT),
1676
- renderType: Ge([He.FUNC, He.COMP]),
1676
+ renderType: ze([He.FUNC, He.COMP]),
1677
1677
  // if renderType is Func, params will be useful
1678
1678
  params: v(M(h())),
1679
1679
  // here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
@@ -1698,29 +1698,29 @@ const vf = () => st("normalObj", (t) => !B(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
1698
1698
  id: v(h()),
1699
1699
  title: v(h()),
1700
1700
  componentName: h(),
1701
- props: v(Gt(h(), Cr)),
1701
+ props: v(zt(h(), Cr)),
1702
1702
  nodeName: v(h()),
1703
- state: v(Gt(h(), I())),
1703
+ state: v(zt(h(), R())),
1704
1704
  children: jt(() => v(M(L([h(), Ot])))),
1705
- configure: v(I()),
1706
- css: v(I()),
1707
- style: v(I()),
1708
- classNames: v(M(I())),
1705
+ configure: v(R()),
1706
+ css: v(R()),
1707
+ style: v(R()),
1708
+ classNames: v(M(R())),
1709
1709
  refId: v(h()),
1710
- extra: v(Gt(I(), I())),
1710
+ extra: v(zt(R(), R())),
1711
1711
  condition: v(L([lt(), pn])),
1712
1712
  loop: v(
1713
1713
  w({
1714
1714
  open: lt(),
1715
- data: L([M(I()), pn]),
1715
+ data: L([M(R()), pn]),
1716
1716
  args: v(M(h())),
1717
1717
  forName: v(h()),
1718
1718
  forIndex: v(h()),
1719
- key: v(I()),
1719
+ key: v(R()),
1720
1720
  name: v(h())
1721
1721
  })
1722
1722
  ),
1723
- methods: v(M(I()))
1723
+ methods: v(M(R()))
1724
1724
  }), pe = L([
1725
1725
  h(),
1726
1726
  w({
@@ -1760,7 +1760,7 @@ const bf = w({
1760
1760
  ),
1761
1761
  value: jt(() => M(Se))
1762
1762
  }), Se = L([
1763
- Ge([
1763
+ ze([
1764
1764
  "array",
1765
1765
  "boolean",
1766
1766
  "number",
@@ -1768,7 +1768,7 @@ const bf = w({
1768
1768
  "string"
1769
1769
  /* STRING */
1770
1770
  ]),
1771
- Ge([
1771
+ ze([
1772
1772
  "component",
1773
1773
  "expression",
1774
1774
  "function"
@@ -1781,10 +1781,10 @@ const bf = w({
1781
1781
  h(),
1782
1782
  w({
1783
1783
  componentName: h(),
1784
- props: v(I()),
1784
+ props: v(R()),
1785
1785
  /** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
1786
- initialValue: v(I()),
1787
- component: v(I())
1786
+ initialValue: v(R()),
1787
+ component: v(R())
1788
1788
  })
1789
1789
  ]), Ae = w({
1790
1790
  name: h(),
@@ -1792,7 +1792,7 @@ const bf = w({
1792
1792
  // 描述 name 对应值的类型
1793
1793
  valueType: Se,
1794
1794
  description: v(h()),
1795
- defaultValue: I(),
1795
+ defaultValue: R(),
1796
1796
  //用于产生 valueType 类型的值
1797
1797
  setters: v(M(_f)),
1798
1798
  condition: v(bo())
@@ -1816,7 +1816,7 @@ L([
1816
1816
  const Sf = w({
1817
1817
  id: v(h()),
1818
1818
  title: h(),
1819
- snapshot: L([h(), I()]),
1819
+ snapshot: L([h(), R()]),
1820
1820
  snapshotText: v(h()),
1821
1821
  description: v(h()),
1822
1822
  // 组件分类,用于搜索
@@ -1862,7 +1862,7 @@ const Sf = w({
1862
1862
  })
1863
1863
  ])
1864
1864
  ),
1865
- fixedProps: v(I()),
1865
+ fixedProps: v(R()),
1866
1866
  // 可以拖入组件
1867
1867
  isContainer: v(
1868
1868
  L([
@@ -1879,9 +1879,9 @@ const Sf = w({
1879
1879
  isLayout: v(lt()),
1880
1880
  rootSelector: v(h()),
1881
1881
  // selectionToolBarView: optional(func()),
1882
- advanceCustom: v(I()),
1882
+ advanceCustom: v(R()),
1883
1883
  // 扩展配置
1884
- extra: v(Gt(I(), I()))
1884
+ extra: v(zt(R(), R()))
1885
1885
  }), Of = (t) => ({ data: e, message: r, throwError: n }) => {
1886
1886
  const o = t({ data: e, message: r, throwError: n });
1887
1887
  if (o.isValidate)
@@ -2375,7 +2375,7 @@ const Pf = (t) => {
2375
2375
  }
2376
2376
  })), e;
2377
2377
  };
2378
- class Rf {
2378
+ class If {
2379
2379
  constructor(e) {
2380
2380
  _(this, "rawData"), _(this, "data"), this.rawData = e, this.data = Pf(e);
2381
2381
  }
@@ -2395,10 +2395,10 @@ class Rf {
2395
2395
  return this.data.snippets.find((r) => r.id === e);
2396
2396
  }
2397
2397
  }
2398
- const If = (t) => {
2398
+ const Rf = (t) => {
2399
2399
  if (!P(t))
2400
2400
  throw new Error("Materials must be a array");
2401
- return t.map((e) => new Rf(e));
2401
+ return t.map((e) => new If(e));
2402
2402
  }, Df = (t) => {
2403
2403
  t == null || t.forEach((e) => {
2404
2404
  Er({
@@ -2410,7 +2410,7 @@ const If = (t) => {
2410
2410
  };
2411
2411
  class pt {
2412
2412
  constructor(e) {
2413
- _(this, "rawData"), _(this, "data"), _(this, "usedMaterials", []), this.rawData = e, Df(e), this.data = If(e);
2413
+ _(this, "rawData"), _(this, "data"), _(this, "usedMaterials", []), this.rawData = e, Df(e), this.data = Rf(e);
2414
2414
  }
2415
2415
  findByComponentName(e) {
2416
2416
  return this.data.find((r) => r.componentName === e);
@@ -2487,12 +2487,12 @@ const Lf = w({
2487
2487
  ),
2488
2488
  thirdLibs: v(hf),
2489
2489
  componentsTree: Cf,
2490
- assets: v(M(I()))
2490
+ assets: v(M(R()))
2491
2491
  }), Oo = (t) => (Er({
2492
2492
  data: t,
2493
2493
  dataStruct: Lf,
2494
2494
  throwError: !1
2495
- }), t), Re = (t, e, r) => ({
2495
+ }), t), Ie = (t, e, r) => ({
2496
2496
  ...t,
2497
2497
  componentsTree: new Xt(t.componentsTree, {
2498
2498
  parent: e,
@@ -2501,11 +2501,11 @@ const Lf = w({
2501
2501
  });
2502
2502
  class de {
2503
2503
  constructor(e, r) {
2504
- _(this, "nodeType", "PAGE"), _(this, "rawData"), _(this, "emitter", re), _(this, "data"), _(this, "parent"), _(this, "materialsModel"), _(this, "assetPackagesList"), Oo(e), this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new pt((r == null ? void 0 : r.materials) || []), this.data = Re(e, this, this.materialsModel), this.assetPackagesList = [...(r == null ? void 0 : r.assetPackagesList) || [], ...this.data.assets || []];
2504
+ _(this, "nodeType", "PAGE"), _(this, "rawData"), _(this, "emitter", re), _(this, "data"), _(this, "parent"), _(this, "materialsModel"), _(this, "assetPackagesList"), Oo(e), this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new pt((r == null ? void 0 : r.materials) || []), this.data = Ie(e, this, this.materialsModel), this.assetPackagesList = [...(r == null ? void 0 : r.assetPackagesList) || [], ...this.data.assets || []];
2505
2505
  }
2506
2506
  updatePage(e) {
2507
2507
  const r = this.data;
2508
- this.rawData = JSON.parse(JSON.stringify(e)), this.data = Re(e, this, this.materialsModel), this.emitter.emit("onPageChange", {
2508
+ this.rawData = JSON.parse(JSON.stringify(e)), this.data = Ie(e, this, this.materialsModel), this.emitter.emit("onPageChange", {
2509
2509
  value: this.data,
2510
2510
  preValue: r,
2511
2511
  node: this
@@ -2513,7 +2513,7 @@ class de {
2513
2513
  }
2514
2514
  reloadPage(e) {
2515
2515
  const r = this.data;
2516
- this.rawData = JSON.parse(JSON.stringify(e)), this.data = Re(e, this, this.materialsModel), this.emitter.emit("onReloadPage", {
2516
+ this.rawData = JSON.parse(JSON.stringify(e)), this.data = Ie(e, this, this.materialsModel), this.emitter.emit("onReloadPage", {
2517
2517
  value: this.data,
2518
2518
  preValue: r,
2519
2519
  node: this
@@ -2649,15 +2649,15 @@ var Bf = typeof self == "object" && self && self.Object === Object && self, Uf =
2649
2649
  const Pt = Uf;
2650
2650
  var kf = Pt.Symbol;
2651
2651
  const Ct = kf;
2652
- var Co = Object.prototype, Vf = Co.hasOwnProperty, zf = Co.toString, kt = Ct ? Ct.toStringTag : void 0;
2653
- function Gf(t) {
2652
+ var Co = Object.prototype, Vf = Co.hasOwnProperty, Gf = Co.toString, kt = Ct ? Ct.toStringTag : void 0;
2653
+ function zf(t) {
2654
2654
  var e = Vf.call(t, kt), r = t[kt];
2655
2655
  try {
2656
2656
  t[kt] = void 0;
2657
2657
  var n = !0;
2658
2658
  } catch {
2659
2659
  }
2660
- var o = zf.call(t);
2660
+ var o = Gf.call(t);
2661
2661
  return n && (e ? t[kt] = r : delete t[kt]), o;
2662
2662
  }
2663
2663
  var Hf = Object.prototype, Jf = Hf.toString;
@@ -2666,14 +2666,14 @@ function Wf(t) {
2666
2666
  }
2667
2667
  var Qf = "[object Null]", qf = "[object Undefined]", mn = Ct ? Ct.toStringTag : void 0;
2668
2668
  function ne(t) {
2669
- return t == null ? t === void 0 ? qf : Qf : mn && mn in Object(t) ? Gf(t) : Wf(t);
2669
+ return t == null ? t === void 0 ? qf : Qf : mn && mn in Object(t) ? zf(t) : Wf(t);
2670
2670
  }
2671
- function Rt(t) {
2671
+ function It(t) {
2672
2672
  return t != null && typeof t == "object";
2673
2673
  }
2674
2674
  var Yf = "[object Symbol]";
2675
2675
  function Kf(t) {
2676
- return typeof t == "symbol" || Rt(t) && ne(t) == Yf;
2676
+ return typeof t == "symbol" || It(t) && ne(t) == Yf;
2677
2677
  }
2678
2678
  function Xf(t, e) {
2679
2679
  for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
@@ -2708,9 +2708,9 @@ function $r(t) {
2708
2708
  return e == rp || e == np || e == ep || e == op;
2709
2709
  }
2710
2710
  var ap = Pt["__core-js_shared__"];
2711
- const Ie = ap;
2711
+ const Re = ap;
2712
2712
  var yn = function() {
2713
- var t = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
2713
+ var t = /[^.]+$/.exec(Re && Re.keys && Re.keys.IE_PROTO || "");
2714
2714
  return t ? "Symbol(src)_1." + t : "";
2715
2715
  }();
2716
2716
  function sp(t) {
@@ -2816,10 +2816,10 @@ var $p = he ? function(t, e) {
2816
2816
  const Tp = $p;
2817
2817
  var Mp = Ep(Tp);
2818
2818
  const Ap = Mp;
2819
- var Pp = 9007199254740991, Rp = /^(?:0|[1-9]\d*)$/;
2819
+ var Pp = 9007199254740991, Ip = /^(?:0|[1-9]\d*)$/;
2820
2820
  function xo(t, e) {
2821
2821
  var r = typeof t;
2822
- return e = e ?? Pp, !!e && (r == "number" || r != "symbol" && Rp.test(t)) && t > -1 && t % 1 == 0 && t < e;
2822
+ return e = e ?? Pp, !!e && (r == "number" || r != "symbol" && Ip.test(t)) && t > -1 && t % 1 == 0 && t < e;
2823
2823
  }
2824
2824
  function Mr(t, e, r) {
2825
2825
  e == "__proto__" && he ? he(t, e, {
@@ -2832,7 +2832,7 @@ function Mr(t, e, r) {
2832
2832
  function je(t, e) {
2833
2833
  return t === e || t !== t && e !== e;
2834
2834
  }
2835
- var Ip = Object.prototype, Dp = Ip.hasOwnProperty;
2835
+ var Rp = Object.prototype, Dp = Rp.hasOwnProperty;
2836
2836
  function Lp(t, e, r) {
2837
2837
  var n = t[e];
2838
2838
  (!(Dp.call(t, e) && je(n, r)) || r === void 0 && !(e in t)) && Mr(t, e, r);
@@ -2873,7 +2873,7 @@ function Vp(t, e, r) {
2873
2873
  var n = typeof e;
2874
2874
  return (n == "number" ? Ar(r) && xo(e, r.length) : n == "string" && e in r) ? je(r[e], t) : !1;
2875
2875
  }
2876
- function zp(t) {
2876
+ function Gp(t) {
2877
2877
  return Up(function(e, r) {
2878
2878
  var n = -1, o = r.length, a = o > 1 ? r[o - 1] : void 0, i = o > 2 ? r[2] : void 0;
2879
2879
  for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, i && Vp(r[0], r[1], i) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
@@ -2883,9 +2883,9 @@ function zp(t) {
2883
2883
  return e;
2884
2884
  });
2885
2885
  }
2886
- var Gp = Object.prototype;
2886
+ var zp = Object.prototype;
2887
2887
  function To(t) {
2888
- var e = t && t.constructor, r = typeof e == "function" && e.prototype || Gp;
2888
+ var e = t && t.constructor, r = typeof e == "function" && e.prototype || zp;
2889
2889
  return t === r;
2890
2890
  }
2891
2891
  function Hp(t, e) {
@@ -2895,12 +2895,12 @@ function Hp(t, e) {
2895
2895
  }
2896
2896
  var Jp = "[object Arguments]";
2897
2897
  function Sn(t) {
2898
- return Rt(t) && ne(t) == Jp;
2898
+ return It(t) && ne(t) == Jp;
2899
2899
  }
2900
2900
  var Mo = Object.prototype, Wp = Mo.hasOwnProperty, Qp = Mo.propertyIsEnumerable, qp = Sn(function() {
2901
2901
  return arguments;
2902
2902
  }()) ? Sn : function(t) {
2903
- return Rt(t) && Wp.call(t, "callee") && !Qp.call(t, "callee");
2903
+ return It(t) && Wp.call(t, "callee") && !Qp.call(t, "callee");
2904
2904
  };
2905
2905
  const qe = qp;
2906
2906
  function Yp() {
@@ -2912,14 +2912,14 @@ var td = "[object Arguments]", ed = "[object Array]", rd = "[object Boolean]", n
2912
2912
  x[md] = x[vd] = x[gd] = x[yd] = x[bd] = x[_d] = x[Sd] = x[jd] = x[Od] = !0;
2913
2913
  x[td] = x[ed] = x[dd] = x[rd] = x[hd] = x[nd] = x[od] = x[ad] = x[sd] = x[id] = x[cd] = x[ud] = x[ld] = x[fd] = x[pd] = !1;
2914
2914
  function wd(t) {
2915
- return Rt(t) && $o(t.length) && !!x[ne(t)];
2915
+ return It(t) && $o(t.length) && !!x[ne(t)];
2916
2916
  }
2917
2917
  function Cd(t) {
2918
2918
  return function(e) {
2919
2919
  return t(e);
2920
2920
  };
2921
2921
  }
2922
- var Ro = typeof exports == "object" && exports && !exports.nodeType && exports, Ht = Ro && typeof module == "object" && module && !module.nodeType && module, Ed = Ht && Ht.exports === Ro, De = Ed && wo.process, Nd = function() {
2922
+ var Io = typeof exports == "object" && exports && !exports.nodeType && exports, Ht = Io && typeof module == "object" && module && !module.nodeType && module, Ed = Ht && Ht.exports === Io, De = Ed && wo.process, Nd = function() {
2923
2923
  try {
2924
2924
  var t = Ht && Ht.require && Ht.require("util").types;
2925
2925
  return t || De && De.binding && De.binding("util");
@@ -2928,10 +2928,10 @@ var Ro = typeof exports == "object" && exports && !exports.nodeType && exports,
2928
2928
  }();
2929
2929
  const wn = Nd;
2930
2930
  var Cn = wn && wn.isTypedArray, xd = Cn ? Cd(Cn) : wd;
2931
- const Io = xd;
2931
+ const Ro = xd;
2932
2932
  var $d = Object.prototype, Td = $d.hasOwnProperty;
2933
2933
  function Md(t, e) {
2934
- var r = Et(t), n = !r && qe(t), o = !r && !n && Po(t), a = !r && !n && !o && Io(t), i = r || n || o || a, s = i ? Hp(t.length, String) : [], c = s.length;
2934
+ var r = Et(t), n = !r && qe(t), o = !r && !n && Po(t), a = !r && !n && !o && Ro(t), i = r || n || o || a, s = i ? Hp(t.length, String) : [], c = s.length;
2935
2935
  for (var u in t)
2936
2936
  (e || Td.call(t, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
2937
2937
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -2952,13 +2952,13 @@ function Pd(t) {
2952
2952
  e.push(r);
2953
2953
  return e;
2954
2954
  }
2955
- var Rd = Object.prototype, Id = Rd.hasOwnProperty;
2955
+ var Id = Object.prototype, Rd = Id.hasOwnProperty;
2956
2956
  function Dd(t) {
2957
2957
  if (!gt(t))
2958
2958
  return Pd(t);
2959
2959
  var e = To(t), r = [];
2960
2960
  for (var n in t)
2961
- n == "constructor" && (e || !Id.call(t, n)) || r.push(n);
2961
+ n == "constructor" && (e || !Rd.call(t, n)) || r.push(n);
2962
2962
  return r;
2963
2963
  }
2964
2964
  function Do(t) {
@@ -2974,7 +2974,7 @@ function Bd(t) {
2974
2974
  return this.size -= e ? 1 : 0, e;
2975
2975
  }
2976
2976
  var Ud = "__lodash_hash_undefined__", kd = Object.prototype, Vd = kd.hasOwnProperty;
2977
- function zd(t) {
2977
+ function Gd(t) {
2978
2978
  var e = this.__data__;
2979
2979
  if (Zt) {
2980
2980
  var r = e[t];
@@ -2982,7 +2982,7 @@ function zd(t) {
2982
2982
  }
2983
2983
  return Vd.call(e, t) ? e[t] : void 0;
2984
2984
  }
2985
- var Gd = Object.prototype, Hd = Gd.hasOwnProperty;
2985
+ var zd = Object.prototype, Hd = zd.hasOwnProperty;
2986
2986
  function Jd(t) {
2987
2987
  var e = this.__data__;
2988
2988
  return Zt ? e[t] !== void 0 : Hd.call(e, t);
@@ -3001,7 +3001,7 @@ function dt(t) {
3001
3001
  }
3002
3002
  dt.prototype.clear = Fd;
3003
3003
  dt.prototype.delete = Bd;
3004
- dt.prototype.get = zd;
3004
+ dt.prototype.get = Gd;
3005
3005
  dt.prototype.has = Jd;
3006
3006
  dt.prototype.set = Qd;
3007
3007
  function qd() {
@@ -3075,18 +3075,18 @@ function ch(t, e) {
3075
3075
  var r = we(this, t), n = r.size;
3076
3076
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
3077
3077
  }
3078
- function It(t) {
3078
+ function Rt(t) {
3079
3079
  var e = -1, r = t == null ? 0 : t.length;
3080
3080
  for (this.clear(); ++e < r; ) {
3081
3081
  var n = t[e];
3082
3082
  this.set(n[0], n[1]);
3083
3083
  }
3084
3084
  }
3085
- It.prototype.clear = nh;
3086
- It.prototype.delete = ah;
3087
- It.prototype.get = sh;
3088
- It.prototype.has = ih;
3089
- It.prototype.set = ch;
3085
+ Rt.prototype.clear = nh;
3086
+ Rt.prototype.delete = ah;
3087
+ Rt.prototype.get = sh;
3088
+ Rt.prototype.has = ih;
3089
+ Rt.prototype.set = ch;
3090
3090
  function Fo(t) {
3091
3091
  return t == null ? "" : Eo(t);
3092
3092
  }
@@ -3094,7 +3094,7 @@ var uh = Ad(Object.getPrototypeOf, Object);
3094
3094
  const Bo = uh;
3095
3095
  var lh = "[object Object]", fh = Function.prototype, ph = Object.prototype, Uo = fh.toString, dh = ph.hasOwnProperty, hh = Uo.call(Object);
3096
3096
  function Nt(t) {
3097
- if (!Rt(t) || ne(t) != lh)
3097
+ if (!It(t) || ne(t) != lh)
3098
3098
  return !1;
3099
3099
  var e = Bo(t);
3100
3100
  if (e === null)
@@ -3120,7 +3120,7 @@ function ko(t) {
3120
3120
  function Ch(t) {
3121
3121
  return t.split("");
3122
3122
  }
3123
- var Vo = "\\ud800-\\udfff", Eh = "\\u0300-\\u036f", Nh = "\\ufe20-\\ufe2f", xh = "\\u20d0-\\u20ff", $h = Eh + Nh + xh, Th = "\\ufe0e\\ufe0f", Mh = "[" + Vo + "]", Ye = "[" + $h + "]", Ke = "\\ud83c[\\udffb-\\udfff]", Ah = "(?:" + Ye + "|" + Ke + ")", zo = "[^" + Vo + "]", Go = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ho = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ph = "\\u200d", Jo = Ah + "?", Wo = "[" + Th + "]?", Rh = "(?:" + Ph + "(?:" + [zo, Go, Ho].join("|") + ")" + Wo + Jo + ")*", Ih = Wo + Jo + Rh, Dh = "(?:" + [zo + Ye + "?", Ye, Go, Ho, Mh].join("|") + ")", Lh = RegExp(Ke + "(?=" + Ke + ")|" + Dh + Ih, "g");
3123
+ var Vo = "\\ud800-\\udfff", Eh = "\\u0300-\\u036f", Nh = "\\ufe20-\\ufe2f", xh = "\\u20d0-\\u20ff", $h = Eh + Nh + xh, Th = "\\ufe0e\\ufe0f", Mh = "[" + Vo + "]", Ye = "[" + $h + "]", Ke = "\\ud83c[\\udffb-\\udfff]", Ah = "(?:" + Ye + "|" + Ke + ")", Go = "[^" + Vo + "]", zo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ho = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ph = "\\u200d", Jo = Ah + "?", Wo = "[" + Th + "]?", Ih = "(?:" + Ph + "(?:" + [Go, zo, Ho].join("|") + ")" + Wo + Jo + ")*", Rh = Wo + Jo + Ih, Dh = "(?:" + [Go + Ye + "?", Ye, zo, Ho, Mh].join("|") + ")", Lh = RegExp(Ke + "(?=" + Ke + ")|" + Dh + Rh, "g");
3124
3124
  function Fh(t) {
3125
3125
  return t.match(Lh) || [];
3126
3126
  }
@@ -3136,10 +3136,10 @@ function Uh(t) {
3136
3136
  }
3137
3137
  var kh = Uh("toUpperCase");
3138
3138
  const Vh = kh;
3139
- function zh(t) {
3139
+ function Gh(t) {
3140
3140
  return Vh(Fo(t).toLowerCase());
3141
3141
  }
3142
- function Gh() {
3142
+ function zh() {
3143
3143
  this.__data__ = new rt(), this.size = 0;
3144
3144
  }
3145
3145
  function Hh(t) {
@@ -3159,7 +3159,7 @@ function qh(t, e) {
3159
3159
  var n = r.__data__;
3160
3160
  if (!Lo || n.length < Qh - 1)
3161
3161
  return n.push([t, e]), this.size = ++r.size, this;
3162
- r = this.__data__ = new It(n);
3162
+ r = this.__data__ = new Rt(n);
3163
3163
  }
3164
3164
  return r.set(t, e), this.size = r.size, this;
3165
3165
  }
@@ -3167,7 +3167,7 @@ function Dt(t) {
3167
3167
  var e = this.__data__ = new rt(t);
3168
3168
  this.size = e.size;
3169
3169
  }
3170
- Dt.prototype.clear = Gh;
3170
+ Dt.prototype.clear = zh;
3171
3171
  Dt.prototype.delete = Hh;
3172
3172
  Dt.prototype.get = Jh;
3173
3173
  Dt.prototype.has = Wh;
@@ -3208,7 +3208,7 @@ function Xe(t, e, r) {
3208
3208
  (r !== void 0 && !je(t[e], r) || r === void 0 && !(e in t)) && Mr(t, e, r);
3209
3209
  }
3210
3210
  function am(t) {
3211
- return Rt(t) && Ar(t);
3211
+ return It(t) && Ar(t);
3212
3212
  }
3213
3213
  function Ze(t, e) {
3214
3214
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
@@ -3225,7 +3225,7 @@ function im(t, e, r, n, o, a, i) {
3225
3225
  }
3226
3226
  var l = a ? a(s, c, r + "", t, e, i) : void 0, p = l === void 0;
3227
3227
  if (p) {
3228
- var f = Et(c), d = !f && Po(c), m = !f && !d && Io(c);
3228
+ var f = Et(c), d = !f && Po(c), m = !f && !d && Ro(c);
3229
3229
  l = c, f || d || m ? Et(s) ? l = s : am(s) ? l = jp(s) : d ? (p = !1, l = Kh(c, !0)) : m ? (p = !1, l = tm(c, !0)) : l = [] : Nt(c) || qe(c) ? (l = s, qe(s) ? l = sm(s) : (!gt(s) || $r(s)) && (l = em(c))) : p = !1;
3230
3230
  }
3231
3231
  p && (i.set(c, l), o(l, c, n, a, i), i.delete(c)), Xe(t, r, l);
@@ -3240,7 +3240,7 @@ function qo(t, e, r, n, o) {
3240
3240
  }
3241
3241
  }, Do);
3242
3242
  }
3243
- var cm = zp(function(t, e, r) {
3243
+ var cm = Gp(function(t, e, r) {
3244
3244
  qo(t, e, r);
3245
3245
  });
3246
3246
  const um = cm, Vm = function(t) {
@@ -3307,14 +3307,14 @@ const bt = (t, e) => {
3307
3307
  let n = r.replace("-webkit", "Webkit");
3308
3308
  n = n.replace("-ms", "ms"), n = n.replace("-moz", "Moz"), n = n.replace("-o", "O");
3309
3309
  let o = n.split("-");
3310
- o.length >= 2 && (o = o.map((a, i) => i !== 0 ? zh(a) : a)), e[o.join("")] = t[r];
3310
+ o.length >= 2 && (o = o.map((a, i) => i !== 0 ? Gh(a) : a)), e[o.join("")] = t[r];
3311
3311
  }), e;
3312
3312
  }, An = (t) => {
3313
3313
  let e = "";
3314
3314
  return Object.keys(t).forEach((r) => {
3315
3315
  e += `${r}:${t[r]};`;
3316
3316
  }), e;
3317
- }, zm = (t, e) => {
3317
+ }, Gm = (t, e) => {
3318
3318
  const r = {};
3319
3319
  return t.forEach((n) => {
3320
3320
  if (n.globalName) {
@@ -3322,7 +3322,7 @@ const bt = (t, e) => {
3322
3322
  o && (r[n.globalName] = o);
3323
3323
  }
3324
3324
  }), r;
3325
- }, Gm = (t, e = 1) => {
3325
+ }, zm = (t, e = 1) => {
3326
3326
  let r = 0, n = t, o = {}, a = {};
3327
3327
  for (; r < e; )
3328
3328
  Object.keys(n).forEach((i) => {
@@ -3688,12 +3688,12 @@ class bm {
3688
3688
  storeManager: n.storeManager,
3689
3689
  getState: () => n.storeManager.getStateObj(u),
3690
3690
  getStateObj: () => n.storeManager.getStateObj(u),
3691
- getStateObjById: (R) => n.storeManager.getStateObj(R),
3691
+ getStateObjById: (I) => n.storeManager.getStateObj(I),
3692
3692
  stateManager: n.storeManager.getStateSnapshot(),
3693
3693
  getMethods: () => n.variableManager.get(u).methods,
3694
- getMethodsById: (R) => n.variableManager.get(R).methods,
3694
+ getMethodsById: (I) => n.variableManager.get(I).methods,
3695
3695
  getStaticVar: () => n.variableManager.get(u).staticVar,
3696
- getStaticVarById: (R) => n.variableManager.get(R).staticVar
3696
+ getStaticVarById: (I) => n.variableManager.get(I).staticVar
3697
3697
  };
3698
3698
  r.value.componentName === At.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState);
3699
3699
  const f = n.getContext(p, s), g = n.transformProps(
@@ -3703,18 +3703,18 @@ class bm {
3703
3703
  {
3704
3704
  $$context: f
3705
3705
  }
3706
- ).methods.reduce((R, Q) => (R[Q.name] = Q.define, R), {});
3706
+ ).methods.reduce((I, Q) => (I[Q.name] = Q.define, I), {});
3707
3707
  f.methods = g, this.variableSpace.methods = Object.assign(this.variableSpace.methods, g);
3708
3708
  const b = r.value.loop;
3709
3709
  let S = [];
3710
3710
  if (b && b.open) {
3711
3711
  this.targetComponentRef.current = [];
3712
- let R = b.data || [];
3712
+ let I = b.data || [];
3713
3713
  if (ct(b.data)) {
3714
3714
  const Q = b.data;
3715
- R = bt(Q.value, f || {});
3715
+ I = bt(Q.value, f || {});
3716
3716
  }
3717
- return S = R.map((...Q) => {
3717
+ return S = I.map((...Q) => {
3718
3718
  var Pr;
3719
3719
  const Ft = Q[1], yt = [b.forName || "item", b.forIndex || "index"], Ce = Tn(Q, yt);
3720
3720
  let Ee = "loopData";
@@ -3726,10 +3726,10 @@ class bm {
3726
3726
  f
3727
3727
  ), q = n.transformProps(l, {
3728
3728
  $$context: Bt
3729
- }), ta = ((Pr = r.value.classNames) == null ? void 0 : Pr.map((G) => {
3729
+ }), ta = ((Pr = r.value.classNames) == null ? void 0 : Pr.map((z) => {
3730
3730
  var ie;
3731
- const se = G.name;
3732
- return (ct(G.status) ? bt(String(((ie = G.status) == null ? void 0 : ie.value) || ""), Bt) : !1) ? se : "";
3731
+ const se = z.name;
3732
+ return (ct(z.status) ? bt(String(((ie = z.status) == null ? void 0 : ie.value) || ""), Bt) : !1) ? se : "";
3733
3733
  })) || [];
3734
3734
  let Ne = `${q.className ?? ""} ${ta.join(" ")}`.trim();
3735
3735
  r.value.css && (Ne = `${r.value.css.class} ${Ne}`.trim()), q.className = Ne;
@@ -3742,21 +3742,21 @@ class bm {
3742
3742
  if (ae !== void 0)
3743
3743
  delete q.children, xe = Array.isArray(ae) ? ae : [ae];
3744
3744
  else {
3745
- const G = [];
3746
- r.value.children.forEach((Rr, ie) => {
3747
- const ra = n.buildComponent(Rr, {
3745
+ const z = [];
3746
+ r.value.children.forEach((Ir, ie) => {
3747
+ const ra = n.buildComponent(Ir, {
3748
3748
  $$context: Bt,
3749
3749
  idx: ie
3750
3750
  });
3751
- G.push(ra);
3752
- }), xe = G;
3751
+ z.push(ra);
3752
+ }), xe = z;
3753
3753
  }
3754
3754
  if (q.key = `${q.key}-${Ft}`, ct(b.key)) {
3755
- const G = b.key, se = bt(G.value, Bt || {});
3755
+ const z = b.key, se = bt(z.value, Bt || {});
3756
3756
  q.key += `-${se}`;
3757
3757
  }
3758
- return q.ref = (G) => {
3759
- this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[Ft] = G;
3758
+ return q.ref = (z) => {
3759
+ this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[Ft] = z;
3760
3760
  }, n.render(e, q, ...xe);
3761
3761
  }), S;
3762
3762
  }
@@ -3767,20 +3767,20 @@ class bm {
3767
3767
  if (A !== void 0)
3768
3768
  delete j.children, T = Array.isArray(A) ? A : [A];
3769
3769
  else {
3770
- const R = [];
3770
+ const I = [];
3771
3771
  r.value.children.forEach((Ft, yt) => {
3772
3772
  const Ce = n.buildComponent(Ft, {
3773
3773
  $$context: f,
3774
3774
  idx: yt
3775
3775
  });
3776
- R.push(Ce);
3777
- }), T = R;
3776
+ I.push(Ce);
3777
+ }), T = I;
3778
3778
  }
3779
3779
  j.ref = this.targetComponentRef;
3780
- const D = ((oe = r.value.classNames) == null ? void 0 : oe.map((R) => {
3780
+ const D = ((oe = r.value.classNames) == null ? void 0 : oe.map((I) => {
3781
3781
  var yt;
3782
- const Q = R.name;
3783
- return (ct(R.status) ? bt(((yt = R.status) == null ? void 0 : yt.value) || "", f) : !1) ? Q : "";
3782
+ const Q = I.name;
3783
+ return (ct(I.status) ? bt(((yt = I.status) == null ? void 0 : yt.value) || "", f) : !1) ? Q : "";
3784
3784
  })) || [];
3785
3785
  let k = `${j.className ?? ""} ${D.join(" ")}`.trim();
3786
3786
  r.value.css && (k = `${r.value.css.class} ${k}`.trim()), j.className = k;
@@ -4203,7 +4203,7 @@ class Pm extends O.Component {
4203
4203
  }
4204
4204
  }
4205
4205
  const Qm = () => {
4206
- const t = In(null);
4206
+ const t = Rn(null);
4207
4207
  return {
4208
4208
  ref: t,
4209
4209
  rerender: function(...e) {
@@ -4211,7 +4211,7 @@ const Qm = () => {
4211
4211
  }
4212
4212
  };
4213
4213
  };
4214
- class Rm extends O.Component {
4214
+ class Im extends O.Component {
4215
4215
  constructor(r) {
4216
4216
  super(r);
4217
4217
  y(this, "onDoubleClick", () => {
@@ -4278,7 +4278,7 @@ class Rm extends O.Component {
4278
4278
  return this.props.children;
4279
4279
  }
4280
4280
  }
4281
- class Im {
4281
+ class Rm {
4282
4282
  constructor() {
4283
4283
  y(this, "instanceMap", /* @__PURE__ */ new Map());
4284
4284
  }
@@ -4337,7 +4337,7 @@ const Dm = (t) => {
4337
4337
  class qm extends O.Component {
4338
4338
  constructor(r) {
4339
4339
  super(r);
4340
- y(this, "instanceManager", new Im());
4340
+ y(this, "instanceManager", new Rm());
4341
4341
  y(this, "renderRef");
4342
4342
  y(this, "dropPlaceholder", Dm);
4343
4343
  y(this, "onGetComponent", (r, n) => {
@@ -4345,7 +4345,10 @@ class qm extends O.Component {
4345
4345
  const o = this;
4346
4346
  let a = r;
4347
4347
  const i = (u = (c = n.material) == null ? void 0 : c.value.advanceCustom) == null ? void 0 : u.wrapComponent;
4348
- i && (a = i(r));
4348
+ i && (a = i(r, {
4349
+ node: n,
4350
+ ctx: window.__C_ENGINE_DESIGNER_PLUGIN_CTX__
4351
+ }));
4349
4352
  class s extends O.Component {
4350
4353
  constructor() {
4351
4354
  super(...arguments);
@@ -4373,7 +4376,7 @@ class qm extends O.Component {
4373
4376
  }
4374
4377
  return O.forwardRef(function(p, f) {
4375
4378
  return O.createElement(
4376
- Rm,
4379
+ Im,
4377
4380
  {
4378
4381
  node: n,
4379
4382
  targetComponent: s
@@ -4475,7 +4478,7 @@ const Ko = (t) => {
4475
4478
  var e;
4476
4479
  return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : Xo(t.return) : null;
4477
4480
  }, Ym = () => {
4478
- const t = In(null);
4481
+ const t = Rn(null);
4479
4482
  return {
4480
4483
  ref: t,
4481
4484
  rerender: function(...e) {
@@ -4605,7 +4608,7 @@ var Zo = { exports: {} };
4605
4608
  });
4606
4609
  })(Zo);
4607
4610
  var Bm = Zo.exports;
4608
- const Rn = /* @__PURE__ */ Fm(Bm);
4611
+ const In = /* @__PURE__ */ Fm(Bm);
4609
4612
  class Km {
4610
4613
  constructor(e, r) {
4611
4614
  y(this, "assets");
@@ -4621,7 +4624,7 @@ class Km {
4621
4624
  const o = e[n];
4622
4625
  o.id || (o.id = Z()), r.push(o.id);
4623
4626
  const a = o.resources.map((i) => i.src);
4624
- Rn(a, o.id, {
4627
+ a.length && In(a, o.id, {
4625
4628
  async: !1,
4626
4629
  before: (i, s) => (this.win.document.body.appendChild(s), !1)
4627
4630
  });
@@ -4631,7 +4634,7 @@ class Km {
4631
4634
  this._onSuccessList.forEach((a) => a()), n("");
4632
4635
  return;
4633
4636
  }
4634
- Rn.ready(r, {
4637
+ In.ready(r, {
4635
4638
  success: () => {
4636
4639
  this._onSuccessList.forEach((a) => a()), n("");
4637
4640
  },
@@ -4650,17 +4653,17 @@ class Km {
4650
4653
  }
4651
4654
  export {
4652
4655
  Km as AssetLoader,
4653
- Im as ComponentInstanceManager,
4656
+ Rm as ComponentInstanceManager,
4654
4657
  Dm as DefaultDropPlaceholder,
4655
4658
  bm as DefineReactAdapter,
4656
4659
  qm as DesignRender,
4657
4660
  Wm as ReactAdapter,
4658
4661
  Pm as Render,
4659
4662
  fm as canAcceptsRef,
4660
- zm as collectVariable,
4663
+ Gm as collectVariable,
4661
4664
  pm as compWrapper,
4662
4665
  dm as convertCodeStringToFunction,
4663
- Gm as flatObject,
4666
+ zm as flatObject,
4664
4667
  Mn as formatSourceStylePropertyName,
4665
4668
  pa as getAdapter,
4666
4669
  An as getCSSTextValue,