@chamn/render 0.3.4 → 0.3.5

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
@@ -287,12 +287,12 @@ var Qn = typeof exports == "object" && exports && !exports.nodeType && exports,
287
287
  }(), zr = Br && Br.isTypedArray, Yn = zr ? Ys(zr) : Qs;
288
288
  function Xs(t, e) {
289
289
  var r = Ot(t), n = !r && Ie(t), o = !r && !n && Wn(t), a = !r && !n && !o && Yn(t), s = r || n || o || a, i = s ? ys(t.length, String) : [], c = i.length;
290
- for (var f in t)
290
+ for (var u in t)
291
291
  s && // Safari 9 has enumerable `arguments.length` in strict mode.
292
- (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
293
- o && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
294
- a && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
295
- zn(f, c)) || i.push(f);
292
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
293
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
294
+ a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
295
+ zn(u, c)) || i.push(u);
296
296
  return i;
297
297
  }
298
298
  function Zs(t, e) {
@@ -564,17 +564,17 @@ function Sc(t) {
564
564
  return fs(t, Kn(t));
565
565
  }
566
566
  function Cc(t, e, r, n, o, a, s) {
567
- var i = Fe(t, r), c = Fe(e, r), f = s.get(c);
568
- if (f) {
569
- Le(t, r, f);
567
+ var i = Fe(t, r), c = Fe(e, r), u = s.get(c);
568
+ if (u) {
569
+ Le(t, r, u);
570
570
  return;
571
571
  }
572
- var u = a ? a(i, c, r + "", t, e, s) : void 0, d = u === void 0;
573
- if (d) {
574
- var l = Ot(c), h = !l && Wn(c), y = !l && !h && Yn(c);
575
- u = c, l || h || y ? Ot(i) ? u = i : _c(i) ? u = Xa(i) : h ? (d = !1, u = hc(c)) : y ? (d = !1, u = gc(c)) : u = [] : Tt(c) || Ie(c) ? (u = i, Ie(i) ? u = Sc(i) : (!ht(i) || Ze(i)) && (u = vc(c))) : d = !1;
572
+ var f = a ? a(i, c, r + "", t, e, s) : void 0, l = f === void 0;
573
+ if (l) {
574
+ var d = Ot(c), h = !d && Wn(c), y = !d && !h && Yn(c);
575
+ f = c, d || h || y ? Ot(i) ? f = i : _c(i) ? f = Xa(i) : h ? (l = !1, f = hc(c)) : y ? (l = !1, f = gc(c)) : f = [] : Tt(c) || Ie(c) ? (f = i, Ie(i) ? f = Sc(i) : (!ht(i) || Ze(i)) && (f = vc(c))) : l = !1;
576
576
  }
577
- d && (s.set(c, u), o(u, c, n, a, s), s.delete(c)), Le(t, r, u);
577
+ l && (s.set(c, f), o(f, c, n, a, s), s.delete(c)), Le(t, r, f);
578
578
  }
579
579
  function lo(t, e, r, n, o) {
580
580
  t !== e && bc(e, function(a, s) {
@@ -635,11 +635,11 @@ const bt = (t, e) => {
635
635
  actionVariableSpace: s
636
636
  } = t, i = r || "anonymous";
637
637
  return {
638
- [i]: function(...f) {
639
- let u;
640
- const l = Object.keys(s || {}).map((h) => `var ${h}=$$actionVariableSpace[${JSON.stringify(h)}];`);
638
+ [i]: function(...u) {
639
+ let f;
640
+ const d = Object.keys(s || {}).map((h) => `var ${h}=$$actionVariableSpace[${JSON.stringify(h)}];`);
641
641
  try {
642
- return u = `
642
+ return f = `
643
643
  var $$$__args__$$$ = Array.from(arguments);
644
644
  function $$_run_$$() {
645
645
  var extraParams = $$$__args__$$$.pop();
@@ -648,7 +648,7 @@ const bt = (t, e) => {
648
648
  var $$response = extraParams.$$response;
649
649
  var $$actionVariableSpace = extraParams.actionVariableSpace;
650
650
  $$context.stateManager = __$$storeManager__.getStateSnapshot();
651
- ${l.join(`;
651
+ ${d.join(`;
652
652
  `)}
653
653
 
654
654
  var $$_f_$$ = ${e.trim() || "function () {}"};
@@ -656,9 +656,9 @@ const bt = (t, e) => {
656
656
  return $$_f_$$.apply($$_f_$$, $$$__args__$$$);
657
657
  }
658
658
  return $$_run_$$();
659
- `, new Function(u)(...f, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: s });
659
+ `, new Function(f)(...u, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: s });
660
660
  } catch (h) {
661
- console.log(u), console.warn(h);
661
+ console.log(f), console.warn(h);
662
662
  }
663
663
  }
664
664
  }[i];
@@ -725,17 +725,17 @@ const bt = (t, e) => {
725
725
  return r.__proto__ = e, r;
726
726
  }, Rc = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_CJS_TRACE: "true" }, Qr = (t) => {
727
727
  let e;
728
- const r = /* @__PURE__ */ new Set(), n = (u, d) => {
729
- const l = typeof u == "function" ? u(e) : u;
730
- if (!Object.is(l, e)) {
728
+ const r = /* @__PURE__ */ new Set(), n = (f, l) => {
729
+ const d = typeof f == "function" ? f(e) : f;
730
+ if (!Object.is(d, e)) {
731
731
  const h = e;
732
- e = d ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), r.forEach((y) => y(e, h));
732
+ e = l ?? (typeof d != "object" || d === null) ? d : Object.assign({}, e, d), r.forEach((y) => y(e, h));
733
733
  }
734
- }, o = () => e, c = { setState: n, getState: o, getInitialState: () => f, subscribe: (u) => (r.add(u), () => r.delete(u)), destroy: () => {
734
+ }, o = () => e, c = { setState: n, getState: o, getInitialState: () => u, subscribe: (f) => (r.add(f), () => r.delete(f)), destroy: () => {
735
735
  (Rc ? "production" : void 0) !== "production" && console.warn(
736
736
  "[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."
737
737
  ), r.clear();
738
- } }, f = e = t(n, o, c);
738
+ } }, u = e = t(n, o, c);
739
739
  return c;
740
740
  }, Tc = (t) => t ? Qr(t) : Qr;
741
741
  class Ac {
@@ -1124,12 +1124,12 @@ var wo = typeof exports == "object" && exports && !exports.nodeType && exports,
1124
1124
  }(), an = wt && wt.isTypedArray, dr = an ? fr(an) : ul, fl = Object.prototype, dl = fl.hasOwnProperty;
1125
1125
  function jo(t, e) {
1126
1126
  var r = L(t), n = !r && Jt(t), o = !r && !n && qt(t), a = !r && !n && !o && dr(t), s = r || n || o || a, i = s ? Au(t.length, String) : [], c = i.length;
1127
- for (var f in t)
1128
- (e || dl.call(t, f)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1129
- (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1130
- o && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1131
- a && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
1132
- me(f, c))) && i.push(f);
1127
+ for (var u in t)
1128
+ (e || dl.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1129
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1130
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1131
+ a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
1132
+ me(u, c))) && i.push(u);
1133
1133
  return i;
1134
1134
  }
1135
1135
  function Eo(t, e) {
@@ -1563,40 +1563,40 @@ var _n = wt && wt.isSet, ld = _n ? fr(_n) : ud, fd = 1, dd = 2, pd = 4, Lo = "[o
1563
1563
  T[Lo] = T[hd] = T[Ed] = T[Nd] = T[md] = T[gd] = T[$d] = T[xd] = T[Rd] = T[Td] = T[Ad] = T[bd] = T[_d] = T[Vo] = T[Sd] = T[Cd] = T[Od] = T[wd] = T[Md] = T[Id] = T[Pd] = T[Dd] = !0;
1564
1564
  T[vd] = T[Fo] = T[jd] = !1;
1565
1565
  function zt(t, e, r, n, o, a) {
1566
- var s, i = e & fd, c = e & dd, f = e & pd;
1566
+ var s, i = e & fd, c = e & dd, u = e & pd;
1567
1567
  if (r && (s = o ? r(t, n, o, a) : r(t)), s !== void 0)
1568
1568
  return s;
1569
1569
  if (!W(t))
1570
1570
  return t;
1571
- var u = L(t);
1572
- if (u) {
1571
+ var f = L(t);
1572
+ if (f) {
1573
1573
  if (s = If(t), !i)
1574
1574
  return yo(t, s);
1575
1575
  } else {
1576
- var d = H(t), l = d == Fo || d == yd;
1576
+ var l = H(t), d = l == Fo || l == yd;
1577
1577
  if (qt(t))
1578
1578
  return To(t, i);
1579
- if (d == Vo || d == Lo || l && !o) {
1580
- if (s = c || l ? {} : Do(t), !i)
1579
+ if (l == Vo || l == Lo || d && !o) {
1580
+ if (s = c || d ? {} : Do(t), !i)
1581
1581
  return c ? jf(t, yf(s, t)) : Of(t, vf(s, t));
1582
1582
  } else {
1583
- if (!T[d])
1583
+ if (!T[l])
1584
1584
  return o ? t : {};
1585
- s = od(t, d, i);
1585
+ s = od(t, l, i);
1586
1586
  }
1587
1587
  }
1588
1588
  a || (a = new J());
1589
1589
  var h = a.get(t);
1590
1590
  if (h)
1591
1591
  return h;
1592
- a.set(t, s), ld(t) ? t.forEach(function(g) {
1593
- s.add(zt(g, e, r, g, t, a));
1594
- }) : id(t) && t.forEach(function(g, m) {
1595
- s.set(m, zt(g, e, r, m, t, a));
1592
+ a.set(t, s), ld(t) ? t.forEach(function(m) {
1593
+ s.add(zt(m, e, r, m, t, a));
1594
+ }) : id(t) && t.forEach(function(m, g) {
1595
+ s.set(g, zt(m, e, r, g, t, a));
1596
1596
  });
1597
- var y = f ? c ? yr : ke : c ? ee : ve, p = u ? void 0 : y(t);
1598
- return yu(p || t, function(g, m) {
1599
- p && (m = g, g = t[m]), cr(s, m, zt(g, e, r, m, t, a));
1597
+ var y = u ? c ? yr : ke : c ? ee : ve, p = f ? void 0 : y(t);
1598
+ return yu(p || t, function(m, g) {
1599
+ p && (g = m, m = t[g]), cr(s, g, zt(m, e, r, g, t, a));
1600
1600
  }), s;
1601
1601
  }
1602
1602
  var Ld = 1, Fd = 4;
@@ -1631,34 +1631,34 @@ function Bo(t, e, r, n, o, a) {
1631
1631
  var s = r & zd, i = t.length, c = e.length;
1632
1632
  if (i != c && !(s && c > i))
1633
1633
  return !1;
1634
- var f = a.get(t), u = a.get(e);
1635
- if (f && u)
1636
- return f == e && u == t;
1637
- var d = -1, l = !0, h = r & Gd ? new Yt() : void 0;
1638
- for (a.set(t, e), a.set(e, t); ++d < i; ) {
1639
- var y = t[d], p = e[d];
1634
+ var u = a.get(t), f = a.get(e);
1635
+ if (u && f)
1636
+ return u == e && f == t;
1637
+ var l = -1, d = !0, h = r & Gd ? new Yt() : void 0;
1638
+ for (a.set(t, e), a.set(e, t); ++l < i; ) {
1639
+ var y = t[l], p = e[l];
1640
1640
  if (n)
1641
- var g = s ? n(p, y, d, e, t, a) : n(y, p, d, t, e, a);
1642
- if (g !== void 0) {
1643
- if (g)
1641
+ var m = s ? n(p, y, l, e, t, a) : n(y, p, l, t, e, a);
1642
+ if (m !== void 0) {
1643
+ if (m)
1644
1644
  continue;
1645
- l = !1;
1645
+ d = !1;
1646
1646
  break;
1647
1647
  }
1648
1648
  if (h) {
1649
- if (!Bd(e, function(m, v) {
1650
- if (!Uo(h, v) && (y === m || o(y, m, r, n, a)))
1649
+ if (!Bd(e, function(g, v) {
1650
+ if (!Uo(h, v) && (y === g || o(y, g, r, n, a)))
1651
1651
  return h.push(v);
1652
1652
  })) {
1653
- l = !1;
1653
+ d = !1;
1654
1654
  break;
1655
1655
  }
1656
1656
  } else if (!(y === p || o(y, p, r, n, a))) {
1657
- l = !1;
1657
+ d = !1;
1658
1658
  break;
1659
1659
  }
1660
1660
  }
1661
- return a.delete(t), a.delete(e), l;
1661
+ return a.delete(t), a.delete(e), d;
1662
1662
  }
1663
1663
  function Hd(t) {
1664
1664
  var e = -1, r = Array(t.size);
@@ -1696,12 +1696,12 @@ function ap(t, e, r, n, o, a, s) {
1696
1696
  var c = n & Jd;
1697
1697
  if (i || (i = _r), t.size != e.size && !c)
1698
1698
  return !1;
1699
- var f = s.get(t);
1700
- if (f)
1701
- return f == e;
1699
+ var u = s.get(t);
1700
+ if (u)
1701
+ return u == e;
1702
1702
  n |= qd, s.set(t, e);
1703
- var u = Bo(i(t), i(e), n, o, a, s);
1704
- return s.delete(t), u;
1703
+ var f = Bo(i(t), i(e), n, o, a, s);
1704
+ return s.delete(t), f;
1705
1705
  case rp:
1706
1706
  if ($e)
1707
1707
  return $e.call(t) == $e.call(e);
@@ -1710,12 +1710,12 @@ function ap(t, e, r, n, o, a, s) {
1710
1710
  }
1711
1711
  var sp = 1, ip = Object.prototype, cp = ip.hasOwnProperty;
1712
1712
  function up(t, e, r, n, o, a) {
1713
- var s = r & sp, i = ke(t), c = i.length, f = ke(e), u = f.length;
1714
- if (c != u && !s)
1713
+ var s = r & sp, i = ke(t), c = i.length, u = ke(e), f = u.length;
1714
+ if (c != f && !s)
1715
1715
  return !1;
1716
- for (var d = c; d--; ) {
1717
- var l = i[d];
1718
- if (!(s ? l in e : cp.call(e, l)))
1716
+ for (var l = c; l--; ) {
1717
+ var d = i[l];
1718
+ if (!(s ? d in e : cp.call(e, d)))
1719
1719
  return !1;
1720
1720
  }
1721
1721
  var h = a.get(t), y = a.get(e);
@@ -1723,18 +1723,18 @@ function up(t, e, r, n, o, a) {
1723
1723
  return h == e && y == t;
1724
1724
  var p = !0;
1725
1725
  a.set(t, e), a.set(e, t);
1726
- for (var g = s; ++d < c; ) {
1727
- l = i[d];
1728
- var m = t[l], v = e[l];
1726
+ for (var m = s; ++l < c; ) {
1727
+ d = i[l];
1728
+ var g = t[d], v = e[d];
1729
1729
  if (n)
1730
- var S = s ? n(v, m, l, e, t, a) : n(m, v, l, t, e, a);
1731
- if (!(S === void 0 ? m === v || o(m, v, r, n, a) : S)) {
1730
+ var S = s ? n(v, g, d, e, t, a) : n(g, v, d, t, e, a);
1731
+ if (!(S === void 0 ? g === v || o(g, v, r, n, a) : S)) {
1732
1732
  p = !1;
1733
1733
  break;
1734
1734
  }
1735
- g || (g = l == "constructor");
1735
+ m || (m = d == "constructor");
1736
1736
  }
1737
- if (p && !g) {
1737
+ if (p && !m) {
1738
1738
  var C = t.constructor, w = e.constructor;
1739
1739
  C != w && "constructor" in t && "constructor" in e && !(typeof C == "function" && C instanceof C && typeof w == "function" && w instanceof w) && (p = !1);
1740
1740
  }
@@ -1742,24 +1742,24 @@ function up(t, e, r, n, o, a) {
1742
1742
  }
1743
1743
  var lp = 1, Cn = "[object Arguments]", On = "[object Array]", ne = "[object Object]", fp = Object.prototype, wn = fp.hasOwnProperty;
1744
1744
  function dp(t, e, r, n, o, a) {
1745
- var s = L(t), i = L(e), c = s ? On : H(t), f = i ? On : H(e);
1746
- c = c == Cn ? ne : c, f = f == Cn ? ne : f;
1747
- var u = c == ne, d = f == ne, l = c == f;
1748
- if (l && qt(t)) {
1745
+ var s = L(t), i = L(e), c = s ? On : H(t), u = i ? On : H(e);
1746
+ c = c == Cn ? ne : c, u = u == Cn ? ne : u;
1747
+ var f = c == ne, l = u == ne, d = c == u;
1748
+ if (d && qt(t)) {
1749
1749
  if (!qt(e))
1750
1750
  return !1;
1751
- s = !0, u = !1;
1751
+ s = !0, f = !1;
1752
1752
  }
1753
- if (l && !u)
1753
+ if (d && !f)
1754
1754
  return a || (a = new J()), s || dr(t) ? Bo(t, e, r, n, o, a) : ap(t, e, c, r, n, o, a);
1755
1755
  if (!(r & lp)) {
1756
- var h = u && wn.call(t, "__wrapped__"), y = d && wn.call(e, "__wrapped__");
1756
+ var h = f && wn.call(t, "__wrapped__"), y = l && wn.call(e, "__wrapped__");
1757
1757
  if (h || y) {
1758
- var p = h ? t.value() : t, g = y ? e.value() : e;
1759
- return a || (a = new J()), o(p, g, r, n, a);
1758
+ var p = h ? t.value() : t, m = y ? e.value() : e;
1759
+ return a || (a = new J()), o(p, m, r, n, a);
1760
1760
  }
1761
1761
  }
1762
- return l ? (a || (a = new J()), up(t, e, r, n, o, a)) : !1;
1762
+ return d ? (a || (a = new J()), up(t, e, r, n, o, a)) : !1;
1763
1763
  }
1764
1764
  function Sr(t, e, r, n, o) {
1765
1765
  return t === e ? !0 : t == null || e == null || !Y(t) && !Y(e) ? t !== t && e !== e : dp(t, e, r, n, Sr, o);
@@ -1776,13 +1776,13 @@ function mp(t, e, r, n) {
1776
1776
  }
1777
1777
  for (; ++o < a; ) {
1778
1778
  s = r[o];
1779
- var i = s[0], c = t[i], f = s[1];
1779
+ var i = s[0], c = t[i], u = s[1];
1780
1780
  if (s[2]) {
1781
1781
  if (c === void 0 && !(i in t))
1782
1782
  return !1;
1783
1783
  } else {
1784
- var u = new J(), d;
1785
- if (!(d === void 0 ? Sr(f, c, pp | hp, n, u) : d))
1784
+ var f = new J(), l;
1785
+ if (!(l === void 0 ? Sr(u, c, pp | hp, n, f) : l))
1786
1786
  return !1;
1787
1787
  }
1788
1788
  }
@@ -1873,17 +1873,17 @@ function xp(t) {
1873
1873
  return Mt(t, ee(t));
1874
1874
  }
1875
1875
  function Rp(t, e, r, n, o, a, s) {
1876
- var i = He(t, r), c = He(e, r), f = s.get(c);
1877
- if (f) {
1878
- ze(t, r, f);
1876
+ var i = He(t, r), c = He(e, r), u = s.get(c);
1877
+ if (u) {
1878
+ ze(t, r, u);
1879
1879
  return;
1880
1880
  }
1881
- var u = a ? a(i, c, r + "", t, e, s) : void 0, d = u === void 0;
1882
- if (d) {
1883
- var l = L(c), h = !l && qt(c), y = !l && !h && dr(c);
1884
- u = c, l || h || y ? L(i) ? u = i : Ge(i) ? u = yo(i) : h ? (d = !1, u = To(c, !0)) : y ? (d = !1, u = Po(c, !0)) : u = [] : U(c) || Jt(c) ? (u = i, Jt(i) ? u = xp(i) : (!W(i) || sr(i)) && (u = Do(c))) : d = !1;
1881
+ var f = a ? a(i, c, r + "", t, e, s) : void 0, l = f === void 0;
1882
+ if (l) {
1883
+ var d = L(c), h = !d && qt(c), y = !d && !h && dr(c);
1884
+ f = c, d || h || y ? L(i) ? f = i : Ge(i) ? f = yo(i) : h ? (l = !1, f = To(c, !0)) : y ? (l = !1, f = Po(c, !0)) : f = [] : U(c) || Jt(c) ? (f = i, Jt(i) ? f = xp(i) : (!W(i) || sr(i)) && (f = Do(c))) : l = !1;
1885
1885
  }
1886
- d && (s.set(c, u), o(u, c, n, a, s), s.delete(c)), ze(t, r, u);
1886
+ l && (s.set(c, f), o(f, c, n, a, s), s.delete(c)), ze(t, r, f);
1887
1887
  }
1888
1888
  function Ho(t, e, r, n, o) {
1889
1889
  t !== e && $p(e, function(a, s) {
@@ -1946,14 +1946,14 @@ function Vp(t, e, r, n) {
1946
1946
  return t;
1947
1947
  e = It(e, t);
1948
1948
  for (var o = -1, a = e.length, s = a - 1, i = t; i != null && ++o < a; ) {
1949
- var c = Pt(e[o]), f = r;
1949
+ var c = Pt(e[o]), u = r;
1950
1950
  if (c === "__proto__" || c === "constructor" || c === "prototype")
1951
1951
  return t;
1952
1952
  if (o != s) {
1953
- var u = i[c];
1954
- f = void 0, f === void 0 && (f = W(u) ? u : me(e[o + 1]) ? [] : {});
1953
+ var f = i[c];
1954
+ u = void 0, u === void 0 && (u = W(f) ? f : me(e[o + 1]) ? [] : {});
1955
1955
  }
1956
- cr(i, c, f), i = i[c];
1956
+ cr(i, c, u), i = i[c];
1957
1957
  }
1958
1958
  return t;
1959
1959
  }
@@ -1983,21 +1983,21 @@ var zp = 1 / 0, Gp = _t && 1 / _r(new _t([, -0]))[1] == zp ? function(t) {
1983
1983
  function Jp(t, e, r) {
1984
1984
  var n = -1, o = Ou, a = t.length, s = !0, i = [], c = i;
1985
1985
  if (a >= Hp) {
1986
- var f = e ? null : Gp(t);
1987
- if (f)
1988
- return _r(f);
1986
+ var u = e ? null : Gp(t);
1987
+ if (u)
1988
+ return _r(u);
1989
1989
  s = !1, o = Uo, c = new Yt();
1990
1990
  } else
1991
1991
  c = e ? [] : i;
1992
1992
  t:
1993
1993
  for (; ++n < a; ) {
1994
- var u = t[n], d = e ? e(u) : u;
1995
- if (u = u !== 0 ? u : 0, s && d === d) {
1996
- for (var l = c.length; l--; )
1997
- if (c[l] === d)
1994
+ var f = t[n], l = e ? e(f) : f;
1995
+ if (f = f !== 0 ? f : 0, s && l === l) {
1996
+ for (var d = c.length; d--; )
1997
+ if (c[d] === l)
1998
1998
  continue t;
1999
- e && c.push(d), i.push(u);
2000
- } else o(c, d, r) || (c !== i && c.push(d), i.push(u));
1999
+ e && c.push(l), i.push(f);
2000
+ } else o(c, l, r) || (c !== i && c.push(l), i.push(f));
2001
2001
  }
2002
2002
  return i;
2003
2003
  }
@@ -2078,24 +2078,24 @@ function* Or(t, e, r) {
2078
2078
  branch: o
2079
2079
  };
2080
2080
  if (a && (t = e.coercer(t, i), s && e.type !== "type" && q(e.schema) && q(t) && !Array.isArray(t)))
2081
- for (const f in t)
2082
- e.schema[f] === void 0 && delete t[f];
2081
+ for (const u in t)
2082
+ e.schema[u] === void 0 && delete t[u];
2083
2083
  let c = "valid";
2084
- for (const f of e.validator(t, i))
2085
- c = "not_valid", yield [f, void 0];
2086
- for (let [f, u, d] of e.entries(t, i)) {
2087
- const l = Or(u, d, {
2088
- path: f === void 0 ? n : [...n, f],
2089
- branch: f === void 0 ? o : [...o, u],
2084
+ for (const u of e.validator(t, i))
2085
+ c = "not_valid", yield [u, void 0];
2086
+ for (let [u, f, l] of e.entries(t, i)) {
2087
+ const d = Or(f, l, {
2088
+ path: u === void 0 ? n : [...n, u],
2089
+ branch: u === void 0 ? o : [...o, f],
2090
2090
  coerce: a,
2091
2091
  mask: s
2092
2092
  });
2093
- for (const h of l)
2094
- h[0] ? (c = h[0].refinement != null ? "not_refined" : "not_valid", yield [h[0], void 0]) : a && (u = h[1], f === void 0 ? t = u : t instanceof Map ? t.set(f, u) : t instanceof Set ? t.add(u) : q(t) && (u !== void 0 || f in t) && (t[f] = u));
2093
+ for (const h of d)
2094
+ h[0] ? (c = h[0].refinement != null ? "not_refined" : "not_valid", yield [h[0], void 0]) : a && (f = h[1], u === void 0 ? t = f : t instanceof Map ? t.set(u, f) : t instanceof Set ? t.add(f) : q(t) && (f !== void 0 || u in t) && (t[u] = f));
2095
2095
  }
2096
2096
  if (c !== "not_valid")
2097
- for (const f of e.refiner(t, i))
2098
- c = "not_refined", yield [f, void 0];
2097
+ for (const u of e.refiner(t, i))
2098
+ c = "not_refined", yield [u, void 0];
2099
2099
  c === "valid" && (yield [void 0, t]);
2100
2100
  }
2101
2101
  class X {
@@ -2110,12 +2110,12 @@ class X {
2110
2110
  entries: i = function* () {
2111
2111
  }
2112
2112
  } = e;
2113
- this.type = r, this.schema = n, this.entries = i, this.coercer = s, o ? this.validator = (c, f) => {
2114
- const u = o(c, f);
2115
- return jn(u, f, this, c);
2116
- } : this.validator = () => [], a ? this.refiner = (c, f) => {
2117
- const u = a(c, f);
2118
- return jn(u, f, this, c);
2113
+ this.type = r, this.schema = n, this.entries = i, this.coercer = s, o ? this.validator = (c, u) => {
2114
+ const f = o(c, u);
2115
+ return jn(f, u, this, c);
2116
+ } : this.validator = () => [], a ? this.refiner = (c, u) => {
2117
+ const f = a(c, u);
2118
+ return jn(f, u, this, c);
2119
2119
  } : this.refiner = () => [];
2120
2120
  }
2121
2121
  /**
@@ -2935,29 +2935,29 @@ class P {
2935
2935
  if (typeof n == "string")
2936
2936
  return n;
2937
2937
  const o = {};
2938
- Object.keys(n.props || {}).forEach((d) => {
2939
- o[d] = n.props[d].export(e);
2938
+ Object.keys(n.props || {}).forEach((l) => {
2939
+ o[l] = n.props[l].export(e);
2940
2940
  });
2941
- const a = (r = n.children) == null ? void 0 : r.map((d) => d instanceof P ? d.export(e) : d), s = n.configure || {}, i = s.propsSetter || {}, c = {};
2942
- Object.keys(i).forEach((d) => {
2943
- const l = No(i, d, !1);
2944
- l && (c[d] = l);
2941
+ const a = (r = n.children) == null ? void 0 : r.map((l) => l instanceof P ? l.export(e) : l), s = n.configure || {}, i = s.propsSetter || {}, c = {};
2942
+ Object.keys(i).forEach((l) => {
2943
+ const d = No(i, l, !1);
2944
+ d && (c[l] = d);
2945
2945
  }), s.propsSetter = c;
2946
- const f = this.materialsModel.usedMaterials.find(
2947
- (d) => {
2948
- var l;
2949
- return d.componentName === ((l = this.material) == null ? void 0 : l.componentName);
2946
+ const u = this.materialsModel.usedMaterials.find(
2947
+ (l) => {
2948
+ var d;
2949
+ return l.componentName === ((d = this.material) == null ? void 0 : d.componentName);
2950
2950
  }
2951
2951
  );
2952
- this.material && !f && this.materialsModel.usedMaterials.push(this.material);
2953
- let u = {
2952
+ this.material && !u && this.materialsModel.usedMaterials.push(this.material);
2953
+ let f = {
2954
2954
  ...n,
2955
2955
  configure: s,
2956
2956
  props: o,
2957
2957
  children: a,
2958
2958
  condition: n.condition
2959
2959
  };
2960
- return e === "design" && delete u.id, u = xr(u), u;
2960
+ return e === "design" && delete f.id, f = xr(f), f;
2961
2961
  }
2962
2962
  }
2963
2963
  const $n = (t, e, r) => {
@@ -3053,8 +3053,8 @@ class Kt {
3053
3053
  o[c] = n.props[c].export(e);
3054
3054
  });
3055
3055
  const a = ((r = n.children) == null ? void 0 : r.map((c) => {
3056
- var f;
3057
- return (f = c == null ? void 0 : c.export) == null ? void 0 : f.call(c, e);
3056
+ var u;
3057
+ return (u = c == null ? void 0 : c.export) == null ? void 0 : u.call(c, e);
3058
3058
  })) || [], s = {
3059
3059
  ...n,
3060
3060
  props: o,
@@ -3102,8 +3102,8 @@ function _h(t, e) {
3102
3102
  }
3103
3103
  if (U(i)) {
3104
3104
  const c = i;
3105
- Object.keys(c).forEach((f) => {
3106
- a(c[f]);
3105
+ Object.keys(c).forEach((u) => {
3106
+ a(c[u]);
3107
3107
  });
3108
3108
  return;
3109
3109
  }
@@ -3219,22 +3219,22 @@ class pt {
3219
3219
  default: []
3220
3220
  }, c = n[a];
3221
3221
  if (c.length !== 0) {
3222
- c.forEach((d) => {
3223
- const l = d.category || "default";
3224
- s.includes(l) || (s.push(l), i[l] = []), i[l].push(d);
3222
+ c.forEach((l) => {
3223
+ const d = l.category || "default";
3224
+ s.includes(d) || (s.push(d), i[d] = []), i[d].push(l);
3225
3225
  });
3226
- const f = [];
3227
- s.forEach((d) => {
3228
- i[d].length && f.push({
3229
- name: d,
3230
- list: i[d]
3226
+ const u = [];
3227
+ s.forEach((l) => {
3228
+ i[l].length && u.push({
3229
+ name: l,
3230
+ list: i[l]
3231
3231
  });
3232
3232
  });
3233
- const u = {
3233
+ const f = {
3234
3234
  name: a,
3235
- list: f
3235
+ list: u
3236
3236
  };
3237
- o.push(u);
3237
+ o.push(f);
3238
3238
  }
3239
3239
  }), o = o.sort((a, s) => (a.name || "") > (s.name || "") ? 1 : -1), o;
3240
3240
  }
@@ -3320,7 +3320,7 @@ class le {
3320
3320
  if (a instanceof st)
3321
3321
  return console.warn("CProp can not add node"), !1;
3322
3322
  if (a instanceof Nt) {
3323
- const i = a.value.value, c = i.findIndex((f) => f === r) ?? -1;
3323
+ const i = a.value.value, c = i.findIndex((u) => u === r) ?? -1;
3324
3324
  return c >= 0 ? (n === "BEFORE" ? i.splice(c, 0, e) : i.splice(c + 1, 0, e), e.parent = a, (o = a.parent) == null || o.updateValue(), !0) : !1;
3325
3325
  }
3326
3326
  if (a instanceof le)
@@ -3397,11 +3397,11 @@ class le {
3397
3397
  export(e = Er.SAVE) {
3398
3398
  var r;
3399
3399
  const n = this.data.componentsTree.export(e), o = this.assetPackagesList, a = [], s = this.materialsModel.usedMaterials.map((c) => {
3400
- const f = o.find((u) => {
3401
- var d;
3402
- return u.package === ((d = c.value.npm) == null ? void 0 : d.package);
3400
+ const u = o.find((f) => {
3401
+ var l;
3402
+ return f.package === ((l = c.value.npm) == null ? void 0 : l.package);
3403
3403
  });
3404
- return f && a.push(f), {
3404
+ return u && a.push(u), {
3405
3405
  componentName: c.componentName,
3406
3406
  ...ko(c.value.npm || {})
3407
3407
  };
@@ -3415,8 +3415,8 @@ class le {
3415
3415
  assets: []
3416
3416
  };
3417
3417
  return (r = this.data.thirdLibs) == null || r.forEach((c) => {
3418
- const f = o.find((u) => c.package === u.package);
3419
- f && a.push(f);
3418
+ const u = o.find((f) => c.package === f.package);
3419
+ u && a.push(u);
3420
3420
  }), i.assets = qp(a, (c) => c.package), i = Wo(i, ["id"]), JSON.parse(JSON.stringify(i));
3421
3421
  }
3422
3422
  getRootNode() {
@@ -3448,51 +3448,55 @@ const Ce = "DYNAMIC", jh = ["$$context", "$$nodeModel"], oa = "ON_DID_RENDER", a
3448
3448
  const r = t.handler, { context: n, storeManager: o } = e;
3449
3449
  return e.actionVariableSpace || (e.actionVariableSpace = {}), async function(...a) {
3450
3450
  const s = {}, i = async (f) => {
3451
- const u = f;
3452
- if (u.type === "RUN_CODE") {
3451
+ const l = f;
3452
+ if (l.type === "RUN_CODE") {
3453
3453
  const d = he({
3454
3454
  funcName: "",
3455
3455
  funcBody: `function() {
3456
- ${u.value} }`,
3456
+ ${l.value} }`,
3457
3457
  nodeContext: n,
3458
3458
  storeManager: o,
3459
3459
  $$response: e.$$response,
3460
3460
  actionVariableSpace: e.actionVariableSpace
3461
3461
  });
3462
- let l;
3463
- e.$$response !== void 0 ? l = d(e.$$response, ...a) : l = d(...a), l != null && l.then ? s[u.id] = await l : s[u.id] = l;
3462
+ let h;
3463
+ e.$$response !== void 0 ? h = d(e.$$response, ...a) : h = d(...a), h != null && h.then ? s[l.id] = await h : s[l.id] = h;
3464
3464
  }
3465
- if (u.type === "JUMP_LINK") {
3466
- const l = Nh(u, e)(...a);
3467
- l != null && l.then ? s[u.id] = await l : s[u.id] = l;
3465
+ if (l.type === "JUMP_LINK") {
3466
+ const h = Nh(l, e)(...a);
3467
+ h != null && h.then ? s[l.id] = await h : s[l.id] = h;
3468
3468
  }
3469
- if (u.type === "REQUEST_API") {
3470
- const { run: d, afterFailedResponse: l, afterSuccessResponse: h } = $h(u, e);
3469
+ if (l.type === "REQUEST_API") {
3470
+ const { run: d, afterFailedResponse: h, afterSuccessResponse: y } = $h(l, e);
3471
3471
  try {
3472
- const y = d(...a);
3473
- y != null && y.then ? s[u.id] = await y : s[u.id] = y, u.responseVarName && (e.actionVariableSpace[u.responseVarName] = s[u.id]);
3474
- const p = h(s[u.id], ...a);
3475
- return p != null && p.then ? await p : p;
3476
- } catch (y) {
3477
- const p = await l(y);
3478
- return p != null && p.then ? await p : p;
3472
+ const p = d(...a);
3473
+ p != null && p.then ? s[l.id] = await p : s[l.id] = p, l.responseVarName && (e.actionVariableSpace[l.responseVarName] = s[l.id]);
3474
+ const m = y(s[l.id], ...a);
3475
+ return m != null && m.then ? await m : m;
3476
+ } catch (p) {
3477
+ const m = await h(p);
3478
+ return m != null && m.then ? await m : m;
3479
3479
  }
3480
3480
  }
3481
- if (u.type === "CALL_NODE_METHOD") {
3482
- const l = xh(u, e)(...a);
3483
- l != null && l.then ? s[u.id] = await l : s[u.id] = l, u.returnVarName && (e.actionVariableSpace[u.returnVarName] = s[u.id]);
3481
+ if (l.type === "CALL_NODE_METHOD") {
3482
+ const h = xh(l, e)(...a);
3483
+ h != null && h.then ? s[l.id] = await h : s[l.id] = h, l.returnVarName && (e.actionVariableSpace[l.returnVarName] = s[l.id]);
3484
3484
  }
3485
- if (u.type === "ASSIGN_VALUE") {
3486
- const d = Rh(u, e);
3487
- let l = [...a];
3488
- e.$$response !== void 0 && (l = [e.$$response, l]);
3489
- const h = d(...l);
3490
- s[u.id] = await h;
3485
+ if (l.type === "ASSIGN_VALUE") {
3486
+ const d = Rh(l, e);
3487
+ let h = [...a];
3488
+ e.$$response !== void 0 && (h = [e.$$response, h]);
3489
+ const y = d(...h);
3490
+ s[l.id] = await y;
3491
3491
  }
3492
3492
  };
3493
3493
  let c = r[0];
3494
- for (; c; )
3495
- await i(c), c = r.find((u) => (c == null ? void 0 : c.next) && u.id === (c == null ? void 0 : c.next));
3494
+ const u = /* @__PURE__ */ new Set();
3495
+ for (; c; ) {
3496
+ if (u.has(c.id))
3497
+ return;
3498
+ await i(c), u.add(c.id), c = r.find((l) => (c == null ? void 0 : c.next) && l.id === (c == null ? void 0 : c.next));
3499
+ }
3496
3500
  };
3497
3501
  };
3498
3502
  function Nh(t, e) {
@@ -3515,7 +3519,7 @@ const ut = (t, e) => function(...r) {
3515
3519
  })(...r) : t;
3516
3520
  }, $h = (t, e) => ({
3517
3521
  run: function(...a) {
3518
- var l, h;
3522
+ var d, h;
3519
3523
  let s = "";
3520
3524
  t.apiPath && (s = ut(t.apiPath, e)(...a));
3521
3525
  const i = t.body || {};
@@ -3526,15 +3530,15 @@ const ut = (t, e) => function(...r) {
3526
3530
  Object.keys(c).forEach((y) => {
3527
3531
  c[y] = ut(c[y], e)(...a);
3528
3532
  });
3529
- const f = t.header || {};
3530
- Object.keys(f).forEach((y) => {
3531
- f[y] = ut(f[y], e)(...a);
3533
+ const u = t.header || {};
3534
+ Object.keys(u).forEach((y) => {
3535
+ u[y] = ut(u[y], e)(...a);
3532
3536
  });
3533
- const u = t.method || "GET";
3534
- return (h = (l = e.context).requestAPI) == null ? void 0 : h.call(l, {
3537
+ const f = t.method || "GET";
3538
+ return (h = (d = e.context).requestAPI) == null ? void 0 : h.call(d, {
3535
3539
  url: s,
3536
- method: u,
3537
- header: f,
3540
+ method: f,
3541
+ header: u,
3538
3542
  body: i,
3539
3543
  query: c
3540
3544
  });
@@ -3603,36 +3607,36 @@ const ut = (t, e) => function(...r) {
3603
3607
  } else t.valueType === "MEMORY" && (e.actionVariableSpace[t.targetValueName] = a);
3604
3608
  return a;
3605
3609
  }, oe = (t = {}, e) => {
3606
- const { $$context: r, runtimeComponentCache: n, getComponent: o, storeManager: a } = e, s = t, i = (f) => {
3607
- if (Array.isArray(f))
3608
- return f.map((u) => i(u));
3609
- if (Ke(f))
3610
- return i(f.value);
3611
- if (bh(f)) {
3612
- const u = f.value, d = u.value;
3613
- if (!d)
3610
+ const { $$context: r, runtimeComponentCache: n, getComponent: o, storeManager: a } = e, s = t, i = (u) => {
3611
+ if (Array.isArray(u))
3612
+ return u.map((f) => i(f));
3613
+ if (Ke(u))
3614
+ return i(u.value);
3615
+ if (bh(u)) {
3616
+ const f = u.value, l = f.value;
3617
+ if (!l)
3614
3618
  return console.warn("slot value is null, this maybe cause some error, pls check it", t), () => {
3615
3619
  };
3616
- const l = (h) => {
3620
+ const d = (h) => {
3617
3621
  const y = `${h.id}-${Ce}`;
3618
3622
  if (n.get(h.id))
3619
3623
  return {
3620
3624
  key: y,
3621
3625
  component: n.get(h.id)
3622
3626
  };
3623
- const p = o(h), g = Tr(p, h, {
3627
+ const p = o(h), m = Tr(p, h, {
3624
3628
  ...e
3625
- }), m = u.params || [];
3629
+ }), g = f.params || [];
3626
3630
  return {
3627
3631
  component: (...C) => {
3628
- const w = fo(C, m), j = Xe(
3632
+ const w = fo(C, g), j = Xe(
3629
3633
  {
3630
3634
  params: w,
3631
3635
  nodeRefs: r.nodeRefs
3632
3636
  },
3633
3637
  r
3634
3638
  );
3635
- return Xt(g, {
3639
+ return Xt(m, {
3636
3640
  $$context: j,
3637
3641
  key: y
3638
3642
  });
@@ -3640,74 +3644,74 @@ const ut = (t, e) => function(...r) {
3640
3644
  key: y
3641
3645
  };
3642
3646
  };
3643
- if (Array.isArray(d)) {
3644
- const h = d == null ? void 0 : d.map((y) => l(y));
3647
+ if (Array.isArray(l)) {
3648
+ const h = l == null ? void 0 : l.map((y) => d(y));
3645
3649
  return (...y) => h.map((p) => {
3646
3650
  if (wc(p.component)) {
3647
- const m = p.component;
3648
- return N.createElement(m, {
3651
+ const g = p.component;
3652
+ return N.createElement(g, {
3649
3653
  $$context: r,
3650
3654
  key: p.key
3651
3655
  });
3652
3656
  } else {
3653
- const m = p.component;
3654
- return m == null ? void 0 : m(...y);
3657
+ const g = p.component;
3658
+ return g == null ? void 0 : g(...y);
3655
3659
  }
3656
3660
  });
3657
3661
  } else
3658
- return l(d).component;
3662
+ return d(l).component;
3659
3663
  } else {
3660
- if (ct(f))
3661
- return bt(f.value, r || {});
3662
- if (ra(f)) {
3663
- const u = f;
3664
+ if (ct(u))
3665
+ return bt(u.value, r || {});
3666
+ if (ra(u)) {
3667
+ const f = u;
3664
3668
  return he({
3665
- funcBody: u.value,
3666
- funcName: u.name || "",
3669
+ funcBody: f.value,
3670
+ funcName: f.name || "",
3667
3671
  nodeContext: r,
3668
3672
  storeManager: a
3669
3673
  });
3670
3674
  } else {
3671
- if (vh(f))
3672
- return St(f, {
3675
+ if (vh(u))
3676
+ return St(u, {
3673
3677
  context: r,
3674
3678
  storeManager: a,
3675
3679
  actionVariableSpace: {}
3676
3680
  });
3677
- if (Tt(f)) {
3678
- let u = f;
3679
- Ke(f) && (u = f.value);
3680
- const d = u, l = {};
3681
- return Object.keys(u).forEach((h) => {
3682
- l[h] = i(d[h]);
3683
- }), l;
3681
+ if (Tt(u)) {
3682
+ let f = u;
3683
+ Ke(u) && (f = u.value);
3684
+ const l = f, d = {};
3685
+ return Object.keys(f).forEach((h) => {
3686
+ d[h] = i(l[h]);
3687
+ }), d;
3684
3688
  } else
3685
- return f;
3689
+ return u;
3686
3690
  }
3687
3691
  }
3688
3692
  }, c = {};
3689
- return Object.keys(s).forEach((f) => {
3690
- const u = s[f];
3691
- c[f] = i(u);
3693
+ return Object.keys(s).forEach((u) => {
3694
+ const f = s[u];
3695
+ c[u] = i(f);
3692
3696
  }), c;
3693
3697
  }, Th = (t, e) => {
3694
3698
  const { runtimeComponentCache: r, $$context: n = {}, getComponent: o, renderMode: a } = e, { $$context: s, idx: i, ...c } = e;
3695
- return typeof t == "string" ? Xt(t) : yh(t) ? (({ currentNode: u }) => {
3696
- const d = u.value.id;
3697
- let l = null;
3698
- if (r.get(d)) {
3699
- const p = r.get(d);
3700
- l = p == null ? void 0 : p.component;
3699
+ return typeof t == "string" ? Xt(t) : yh(t) ? (({ currentNode: f }) => {
3700
+ const l = f.value.id;
3701
+ let d = null;
3702
+ if (r.get(l)) {
3703
+ const p = r.get(l);
3704
+ d = p == null ? void 0 : p.component;
3701
3705
  } else {
3702
- const p = o(u);
3703
- l = Tr(p, u, {
3706
+ const p = o(f);
3707
+ d = Tr(p, f, {
3704
3708
  ...c
3705
- }), !r.get(d) && a !== "design" && r.set(d, {
3706
- component: l
3709
+ }), !r.get(l) && a !== "design" && r.set(l, {
3710
+ component: d
3707
3711
  });
3708
3712
  }
3709
- const h = `${d}-${Ce}`;
3710
- return Xt(l, {
3713
+ const h = `${l}-${Ce}`;
3714
+ return Xt(d, {
3711
3715
  $$context: n,
3712
3716
  $$nodeModel: t,
3713
3717
  key: h
@@ -3723,10 +3727,10 @@ const ut = (t, e) => function(...r) {
3723
3727
  onComponentMount: s,
3724
3728
  onComponentDestroy: i,
3725
3729
  refManager: c,
3726
- processNodeConfigHook: f,
3727
- requestAPI: u
3728
- } = r, { ...d } = r;
3729
- class l extends N.Component {
3730
+ processNodeConfigHook: u,
3731
+ requestAPI: f
3732
+ } = r, { ...l } = r;
3733
+ class d extends N.Component {
3730
3734
  constructor(p) {
3731
3735
  super(p);
3732
3736
  O(this, "_CONDITION", !0);
@@ -3748,17 +3752,17 @@ const ut = (t, e) => function(...r) {
3748
3752
  this.storeState.setState(p);
3749
3753
  });
3750
3754
  O(this, "getStyleDomById", (p) => {
3751
- const g = this.mediaStyleDomMap;
3752
- let m = g[p];
3753
- return m || (m = document.createElement("style"), g[p] = m), m.id = p, m;
3755
+ const m = this.mediaStyleDomMap;
3756
+ let g = m[p];
3757
+ return g || (g = document.createElement("style"), m[p] = g), g.id = p, g;
3754
3758
  });
3755
3759
  O(this, "addMediaCSS", () => {
3756
- var m;
3760
+ var g;
3757
3761
  let p = this.domHeader;
3758
- if (p || (p = (m = document.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader)
3762
+ if (p || (p = (g = document.getElementsByTagName("head")) == null ? void 0 : g[0], this.domHeader = p), !this.domHeader)
3759
3763
  return;
3760
- const g = this._NODE_MODEL.value.css;
3761
- g && g.value.forEach((v) => {
3764
+ const m = this._NODE_MODEL.value.css;
3765
+ m && m.value.forEach((v) => {
3762
3766
  var w;
3763
3767
  const S = `${this.UNIQUE_ID}_${v.state}`;
3764
3768
  let C = qr(this._NODE_MODEL);
@@ -3774,43 +3778,43 @@ const ut = (t, e) => function(...r) {
3774
3778
  });
3775
3779
  O(this, "removeMediaCSS", () => {
3776
3780
  const p = this.mediaStyleDomMap;
3777
- Object.keys(p).forEach((g) => {
3778
- var m;
3779
- (m = this.domHeader) == null || m.removeChild(p[g]);
3781
+ Object.keys(p).forEach((m) => {
3782
+ var g;
3783
+ (g = this.domHeader) == null || g.removeChild(p[m]);
3780
3784
  }), this.mediaStyleDomMap = {};
3781
3785
  });
3782
3786
  O(this, "rebuildNode", () => {
3783
3787
  this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
3784
3788
  });
3785
3789
  this.targetComponentRef = N.createRef(), this.state = e.value.state || {};
3786
- const g = e.value.nodeName || e.id;
3787
- this.nodeName = g;
3788
- const m = n.getStore(g);
3789
- m ? (this.storeState = m, m.setState({
3790
+ const m = e.value.nodeName || e.id;
3791
+ this.nodeName = m;
3792
+ const g = n.getStore(m);
3793
+ g ? (this.storeState = g, g.setState({
3790
3794
  ...e.value.state || {}
3791
- })) : this.storeState = n.addStore(g, () => ({
3795
+ })) : this.storeState = n.addStore(m, () => ({
3792
3796
  ...e.value.state || {}
3793
3797
  })), this.storeState.subscribe((S) => {
3794
3798
  this.setState({
3795
3799
  ...S
3796
3800
  });
3797
3801
  }), this.connectStore();
3798
- const v = o.get(g);
3802
+ const v = o.get(m);
3799
3803
  v ? this.variableSpace = v : (this.variableSpace = {
3800
3804
  staticVar: {},
3801
3805
  methods: {}
3802
- }, o.add(g, this.variableSpace));
3806
+ }, o.add(m, this.variableSpace));
3803
3807
  }
3804
3808
  connectStore() {
3805
- const p = xn(e.props, (C) => !!ct(C)), g = xn(
3809
+ const p = xn(e.props, (C) => !!ct(C)), m = xn(
3806
3810
  {
3807
3811
  css: e.value.css,
3808
3812
  class: e.value.classNames
3809
3813
  },
3810
3814
  (C) => !!ct(C)
3811
3815
  );
3812
- let m = [];
3813
- [...p, ...g].map((C) => {
3816
+ let g = [];
3817
+ [...p, ...m].map((C) => {
3814
3818
  const w = C.val, j = [
3815
3819
  /\$\$context.stateManager\.(.+?)\./gim,
3816
3820
  /\$\$context.stateManager\["(.+?)"\]/gim,
@@ -3820,9 +3824,9 @@ const ut = (t, e) => function(...r) {
3820
3824
  /getStateById\('(.+?)'\)/gim,
3821
3825
  /getStateById\("(.+?)"\)/gim
3822
3826
  ], D = $c(w.value, j);
3823
- m = [...m, ...D];
3827
+ g = [...g, ...D];
3824
3828
  }).filter(Boolean);
3825
- const v = Array.from(new Set(m)), S = [];
3829
+ const v = Array.from(new Set(g)), S = [];
3826
3830
  v.length && v.forEach((C) => {
3827
3831
  n.getStore(C) || (n.addStore(C, () => ({})), console.warn(n, C, "not exits"));
3828
3832
  const j = n.connect(C, (D) => {
@@ -3841,18 +3845,18 @@ const ut = (t, e) => function(...r) {
3841
3845
  ...this.state,
3842
3846
  ...e.value.state || {}
3843
3847
  }), this.rebuildNode();
3844
- }, g = oa, m = (v = e.value.eventListener) == null ? void 0 : v.find((S) => S.name === g);
3845
- m && St(m.func, {
3848
+ }, m = oa, g = (v = e.value.eventListener) == null ? void 0 : v.find((S) => S.name === m);
3849
+ g && St(g.func, {
3846
3850
  context: this.createCurrentNodeCtx(),
3847
3851
  storeManager: n,
3848
3852
  actionVariableSpace: {}
3849
3853
  })(), e.onChange(p);
3850
3854
  }
3851
3855
  componentWillUnmount() {
3852
- var m;
3856
+ var g;
3853
3857
  this.storeListenDisposeList.forEach((v) => v()), this.removeMediaCSS(), i == null || i(this, e);
3854
- const p = aa, g = (m = e.value.eventListener) == null ? void 0 : m.find((v) => v.name === p);
3855
- g && St(g.func, {
3858
+ const p = aa, m = (g = e.value.eventListener) == null ? void 0 : g.find((v) => v.name === p);
3859
+ m && St(m.func, {
3856
3860
  context: this.createCurrentNodeCtx(),
3857
3861
  storeManager: n,
3858
3862
  actionVariableSpace: {}
@@ -3860,69 +3864,69 @@ const ut = (t, e) => function(...r) {
3860
3864
  }
3861
3865
  /** 转换节点的 methods */
3862
3866
  transformMethods(p) {
3863
- const { context: g } = p, m = oe(
3867
+ const { context: m } = p, g = oe(
3864
3868
  {
3865
3869
  methods: e.value.methods
3866
3870
  },
3867
3871
  {
3868
- $$context: g,
3869
- ...d
3872
+ $$context: m,
3873
+ ...l
3870
3874
  }
3871
- ), v = e.value.methods || [], S = m.methods, C = v.reduce((w, j, D) => (w[j.name] = S[D], w), {});
3872
- g.methods = C, this.variableSpace.methods = Object.assign(this.variableSpace.methods, C);
3875
+ ), v = e.value.methods || [], S = g.methods, C = v.reduce((w, j, D) => (w[j.name] = S[D], w), {});
3876
+ m.methods = C, this.variableSpace.methods = Object.assign(this.variableSpace.methods, C);
3873
3877
  }
3874
3878
  /** 处理根节点的 context */
3875
3879
  processRootContext(p) {
3876
- e.value.componentName === Lt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = u, p.getGlobalState = () => this.state);
3880
+ e.value.componentName === Lt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = f, p.getGlobalState = () => this.state);
3877
3881
  }
3878
- processNodeClassName(p, g) {
3882
+ processNodeClassName(p, m) {
3879
3883
  var S;
3880
- const m = ((S = e.value.classNames) == null ? void 0 : S.map((C) => {
3884
+ const g = ((S = e.value.classNames) == null ? void 0 : S.map((C) => {
3881
3885
  var D;
3882
3886
  const w = C.name;
3883
- return (ct(C.status) ? bt(((D = C.status) == null ? void 0 : D.value) || "", g) : !1) ? w : "";
3887
+ return (ct(C.status) ? bt(((D = C.status) == null ? void 0 : D.value) || "", m) : !1) ? w : "";
3884
3888
  })) || [];
3885
- let v = `${p ?? ""} ${m.join(" ")}`.trim();
3889
+ let v = `${p ?? ""} ${g.join(" ")}`.trim();
3886
3890
  return e.value.css && (v = `${qr(e)} ${v}`.trim()), v;
3887
3891
  }
3888
3892
  processNodeStyle(p) {
3889
3893
  if (!e.value.style)
3890
3894
  return {};
3891
- const g = oe(
3895
+ const m = oe(
3892
3896
  { style: e.value.style },
3893
3897
  {
3894
3898
  $$context: p,
3895
- ...d
3899
+ ...l
3896
3900
  }
3897
3901
  );
3898
- return Nc(g.style || []);
3902
+ return Nc(m.style || []);
3899
3903
  }
3900
- processNodeChild(p, g) {
3901
- let m = [];
3904
+ processNodeChild(p, m) {
3905
+ let g = [];
3902
3906
  if (p !== void 0)
3903
- m = Array.isArray(p) ? p : [p];
3907
+ g = Array.isArray(p) ? p : [p];
3904
3908
  else {
3905
3909
  const v = [];
3906
3910
  e.value.children.forEach((C, w) => {
3907
3911
  const j = Th(C, {
3908
- $$context: g,
3912
+ $$context: m,
3909
3913
  idx: w,
3910
- ...d
3914
+ ...l
3911
3915
  });
3912
3916
  v.push(j);
3913
- }), m = v;
3917
+ }), g = v;
3914
3918
  }
3915
- return m;
3919
+ return g;
3916
3920
  }
3917
- processNodeConditionAndConfigHook(p, g, m) {
3921
+ processNodeConditionAndConfigHook(p, m, g) {
3918
3922
  let v = e.value.condition ?? !0;
3919
- typeof v != "boolean" && (v = bt(v.value, m || {}));
3923
+ typeof v != "boolean" && (v = bt(v.value, g || {}));
3920
3924
  let S = {
3921
3925
  condition: v,
3922
3926
  props: p
3923
3927
  };
3924
- f && (S = f(S, e));
3925
- const C = Xt(t, S.props, ...g);
3928
+ u && (S = u(S, e));
3929
+ const C = Xt(t, S.props, ...m);
3926
3930
  return this._CONDITION = S.condition, S.condition ? C : N.createElement(
3927
3931
  "div",
3928
3932
  {
@@ -3934,8 +3938,8 @@ const ut = (t, e) => function(...r) {
3934
3938
  );
3935
3939
  }
3936
3940
  processNodeEventListener(p) {
3937
- const g = e.value.eventListener, m = {};
3938
- return g == null || g.forEach((v) => {
3941
+ const m = e.value.eventListener, g = {};
3942
+ return m == null || m.forEach((v) => {
3939
3943
  if (Eh.includes(v.name))
3940
3944
  return;
3941
3945
  const S = St(v.func, {
@@ -3943,43 +3947,43 @@ const ut = (t, e) => function(...r) {
3943
3947
  storeManager: n,
3944
3948
  actionVariableSpace: {}
3945
3949
  });
3946
- m[v.name] = S;
3947
- }), m;
3950
+ g[v.name] = S;
3951
+ }), g;
3948
3952
  }
3949
3953
  createCurrentNodeCtx() {
3950
- const { $$context: p } = this.props, g = e.value.nodeName || e.id, m = e.id, v = {
3954
+ const { $$context: p } = this.props, m = e.value.nodeName || e.id, g = e.id, v = {
3951
3955
  state: this.state || {},
3952
3956
  staticVar: this.variableSpace.staticVar,
3953
3957
  updateState: this.updateState,
3954
3958
  storeManager: n,
3955
- getState: () => n.getStateObj(g),
3956
- getStateObj: () => n.getStateObj(g),
3959
+ getState: () => n.getStateObj(m),
3960
+ getStateObj: () => n.getStateObj(m),
3957
3961
  getStateObjById: (C) => n.getStateObj(C),
3958
3962
  stateManager: n.getStateSnapshot(),
3959
3963
  getMethods: () => {
3960
- const C = o.get(m).methods, w = c.get(m).current;
3964
+ const C = o.get(g).methods, w = c.get(g).current;
3961
3965
  return Wr(C, w);
3962
3966
  },
3963
3967
  getMethodsById: (C) => {
3964
3968
  const w = o.get(C).methods, j = c.get(C).current;
3965
3969
  return Wr(w, j);
3966
3970
  },
3967
- getStaticVar: () => o.get(g).staticVar,
3971
+ getStaticVar: () => o.get(m).staticVar,
3968
3972
  getStaticVarById: (C) => o.get(C).staticVar,
3969
3973
  nodeRefs: p.nodeRefs
3970
3974
  };
3971
3975
  return this.processRootContext(v), Xe(v, p);
3972
3976
  }
3973
3977
  renderCore() {
3974
- const { $$context: p, ...g } = this.props, m = {
3978
+ const { $$context: p, ...m } = this.props, g = {
3975
3979
  key: e.id,
3976
3980
  ...e.props,
3977
- ...g
3981
+ ...m
3978
3982
  }, v = this.createCurrentNodeCtx();
3979
3983
  this.transformMethods({ context: v });
3980
- let S = oe(m, {
3984
+ let S = oe(g, {
3981
3985
  $$context: v,
3982
- ...d
3986
+ ...l
3983
3987
  });
3984
3988
  const C = this.processNodeClassName(S.className, v);
3985
3989
  S.className = C;
@@ -3998,10 +4002,10 @@ const ut = (t, e) => function(...r) {
3998
4002
  return this.processNodeConditionAndConfigHook(S, D, v);
3999
4003
  }
4000
4004
  renderLoop() {
4001
- const { $$context: p, ...g } = this.props, m = {
4005
+ const { $$context: p, ...m } = this.props, g = {
4002
4006
  key: e.id,
4003
4007
  ...e.props,
4004
- ...g
4008
+ ...m
4005
4009
  }, v = this.createCurrentNodeCtx();
4006
4010
  this.transformMethods({ context: v });
4007
4011
  const S = e.value.loop;
@@ -4023,9 +4027,9 @@ const ut = (t, e) => function(...r) {
4023
4027
  nodeRefs: v.nodeRefs
4024
4028
  },
4025
4029
  v
4026
- ), Q = oe(m, {
4030
+ ), Q = oe(g, {
4027
4031
  $$context: at,
4028
- ...d
4032
+ ...l
4029
4033
  }), ca = this.processNodeClassName(Q.className, at);
4030
4034
  Q.className = ca;
4031
4035
  const ua = this.processNodeStyle(at);
@@ -4048,7 +4052,7 @@ const ut = (t, e) => function(...r) {
4048
4052
  return p && p.open ? this.renderLoop() : this.renderCore();
4049
4053
  }
4050
4054
  }
4051
- return O(l, "__CP_TYPE__", Ce), l.displayName = `${e.value.componentName}Dynamic`, l;
4055
+ return O(d, "__CP_TYPE__", Ce), d.displayName = `${e.value.componentName}Dynamic`, d;
4052
4056
  };
4053
4057
  class Ah {
4054
4058
  constructor() {
@@ -4093,26 +4097,26 @@ class Ah {
4093
4097
  onGetComponent: s,
4094
4098
  onComponentMount: i,
4095
4099
  onComponentDestroy: c,
4096
- renderMode: f,
4097
- processNodeConfigHook: u,
4098
- requestAPI: d
4100
+ renderMode: u,
4101
+ processNodeConfigHook: f,
4102
+ requestAPI: l
4099
4103
  }) {
4100
- this.renderMode = f, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = u, this.refManager = o, this.requestAPI = d;
4101
- const l = e.value.componentsTree, h = this.getComponent(l), y = Tr(h, e.value.componentsTree, {
4104
+ this.renderMode = u, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = f, this.refManager = o, this.requestAPI = l;
4105
+ const d = e.value.componentsTree, h = this.getComponent(d), y = Tr(h, e.value.componentsTree, {
4102
4106
  storeManager: this.storeManager,
4103
4107
  variableManager: this.variableManager,
4104
4108
  runtimeComponentCache: this.runtimeComponentCache,
4105
4109
  getComponent: this.getComponent.bind(this),
4106
4110
  refManager: this.refManager,
4107
4111
  onGetRef: this.onGetRef,
4108
- processNodeConfigHook: u,
4112
+ processNodeConfigHook: f,
4109
4113
  onComponentMount: i,
4110
4114
  onComponentDestroy: c,
4111
- renderMode: f,
4112
- requestAPI: d
4113
- }), p = {}, g = l.props;
4114
- return Object.keys(g).forEach((m) => {
4115
- p[m] = g[m].value;
4115
+ renderMode: u,
4116
+ requestAPI: l
4117
+ }), p = {}, m = d.props;
4118
+ return Object.keys(m).forEach((g) => {
4119
+ p[g] = m[g].value;
4116
4120
  }), p.$$context = a, Xt(y, p);
4117
4121
  }
4118
4122
  clear() {
@@ -4138,12 +4142,12 @@ function Ih() {
4138
4142
  if (Rn) return kt;
4139
4143
  Rn = 1;
4140
4144
  var t = N, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
4141
- function s(i, c, f) {
4142
- var u, d = {}, l = null, h = null;
4143
- f !== void 0 && (l = "" + f), c.key !== void 0 && (l = "" + c.key), c.ref !== void 0 && (h = c.ref);
4144
- for (u in c) n.call(c, u) && !a.hasOwnProperty(u) && (d[u] = c[u]);
4145
- if (i && i.defaultProps) for (u in c = i.defaultProps, c) d[u] === void 0 && (d[u] = c[u]);
4146
- return { $$typeof: e, type: i, key: l, ref: h, props: d, _owner: o.current };
4145
+ function s(i, c, u) {
4146
+ var f, l = {}, d = null, h = null;
4147
+ u !== void 0 && (d = "" + u), c.key !== void 0 && (d = "" + c.key), c.ref !== void 0 && (h = c.ref);
4148
+ for (f in c) n.call(c, f) && !a.hasOwnProperty(f) && (l[f] = c[f]);
4149
+ if (i && i.defaultProps) for (f in c = i.defaultProps, c) l[f] === void 0 && (l[f] = c[f]);
4150
+ return { $$typeof: e, type: i, key: d, ref: h, props: l, _owner: o.current };
4147
4151
  }
4148
4152
  return kt.Fragment = r, kt.jsx = s, kt.jsxs = s, kt;
4149
4153
  }
@@ -4319,7 +4323,7 @@ const Lh = [
4319
4323
  );
4320
4324
  }, t), {}), kh = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
4321
4325
  let a = t;
4322
- Array.isArray(t) || (a = [t]), a = a.filter((f) => f !== void 0);
4326
+ Array.isArray(t) || (a = [t]), a = a.filter((u) => u !== void 0);
4323
4327
  const { style: s = {}, ...i } = nt(n), c = {
4324
4328
  height: r,
4325
4329
  width: e,
@@ -4455,7 +4459,7 @@ class Qh extends N.Component {
4455
4459
  const c = {
4456
4460
  ...Wh,
4457
4461
  ...r.components
4458
- }, f = this.props.$$context || {};
4462
+ }, u = this.props.$$context || {};
4459
4463
  return n.pageRender(i, {
4460
4464
  libs: {},
4461
4465
  components: c,
@@ -4465,7 +4469,7 @@ class Qh extends N.Component {
4465
4469
  onComponentMount: s,
4466
4470
  onComponentDestroy: a,
4467
4471
  $$context: {
4468
- ...f,
4472
+ ...u,
4469
4473
  nodeRefs: this.refManager
4470
4474
  },
4471
4475
  renderMode: r.renderMode,
@@ -4594,54 +4598,54 @@ function Kh() {
4594
4598
  if (i = e(s), i === null) throw Error(t(188));
4595
4599
  return i !== s ? null : s;
4596
4600
  }
4597
- for (var c = s, f = i; ; ) {
4598
- var u = c.return;
4599
- if (u === null) break;
4600
- var d = u.alternate;
4601
- if (d === null) {
4602
- if (f = u.return, f !== null) {
4603
- c = f;
4601
+ for (var c = s, u = i; ; ) {
4602
+ var f = c.return;
4603
+ if (f === null) break;
4604
+ var l = f.alternate;
4605
+ if (l === null) {
4606
+ if (u = f.return, u !== null) {
4607
+ c = u;
4604
4608
  continue;
4605
4609
  }
4606
4610
  break;
4607
4611
  }
4608
- if (u.child === d.child) {
4609
- for (d = u.child; d; ) {
4610
- if (d === c) return r(u), s;
4611
- if (d === f) return r(u), i;
4612
- d = d.sibling;
4612
+ if (f.child === l.child) {
4613
+ for (l = f.child; l; ) {
4614
+ if (l === c) return r(f), s;
4615
+ if (l === u) return r(f), i;
4616
+ l = l.sibling;
4613
4617
  }
4614
4618
  throw Error(t(188));
4615
4619
  }
4616
- if (c.return !== f.return) c = u, f = d;
4620
+ if (c.return !== u.return) c = f, u = l;
4617
4621
  else {
4618
- for (var l = !1, h = u.child; h; ) {
4622
+ for (var d = !1, h = f.child; h; ) {
4619
4623
  if (h === c) {
4620
- l = !0, c = u, f = d;
4624
+ d = !0, c = f, u = l;
4621
4625
  break;
4622
4626
  }
4623
- if (h === f) {
4624
- l = !0, f = u, c = d;
4627
+ if (h === u) {
4628
+ d = !0, u = f, c = l;
4625
4629
  break;
4626
4630
  }
4627
4631
  h = h.sibling;
4628
4632
  }
4629
- if (!l) {
4630
- for (h = d.child; h; ) {
4633
+ if (!d) {
4634
+ for (h = l.child; h; ) {
4631
4635
  if (h === c) {
4632
- l = !0, c = d, f = u;
4636
+ d = !0, c = l, u = f;
4633
4637
  break;
4634
4638
  }
4635
- if (h === f) {
4636
- l = !0, f = d, c = u;
4639
+ if (h === u) {
4640
+ d = !0, u = l, c = f;
4637
4641
  break;
4638
4642
  }
4639
4643
  h = h.sibling;
4640
4644
  }
4641
- if (!l) throw Error(t(189));
4645
+ if (!d) throw Error(t(189));
4642
4646
  }
4643
4647
  }
4644
- if (c.alternate !== f) throw Error(t(190));
4648
+ if (c.alternate !== u) throw Error(t(190));
4645
4649
  }
4646
4650
  if (c.tag !== 3) throw Error(t(188));
4647
4651
  return c.stateNode.current === c ? s : i;
@@ -4782,10 +4786,10 @@ class bm extends N.Component {
4782
4786
  O(this, "dropPlaceholder", om);
4783
4787
  O(this, "_components", {});
4784
4788
  O(this, "onGetComponent", (r, n) => {
4785
- var c, f;
4789
+ var c, u;
4786
4790
  const o = this;
4787
4791
  let a = r;
4788
- const s = (f = (c = n.material) == null ? void 0 : c.value.advanceCustom) == null ? void 0 : f.wrapComponent;
4792
+ const s = (u = (c = n.material) == null ? void 0 : c.value.advanceCustom) == null ? void 0 : u.wrapComponent;
4789
4793
  s && (a = s(r, {
4790
4794
  node: n,
4791
4795
  ctx: window.__C_ENGINE_DESIGNER_PLUGIN_CTX__
@@ -4816,9 +4820,9 @@ class bm extends N.Component {
4816
4820
  }
4817
4821
  render() {
4818
4822
  var v, S, C, w;
4819
- const { children: l = [], onlyRenderChild: h, ...y } = this.props;
4820
- let p = l;
4821
- if (Ot(l) || (p = [l]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === Lt.ROOT_CONTAINER)) {
4823
+ const { children: d = [], onlyRenderChild: h, ...y } = this.props;
4824
+ let p = d;
4825
+ if (Ot(d) || (p = [d]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === Lt.ROOT_CONTAINER)) {
4822
4826
  const j = (S = (v = n.material) == null ? void 0 : v.value.advanceCustom) == null ? void 0 : S.dropPlaceholder;
4823
4827
  p.push(
4824
4828
  N.createElement(j || o.dropPlaceholder, {
@@ -4839,7 +4843,7 @@ class bm extends N.Component {
4839
4843
  );
4840
4844
  }
4841
4845
  }
4842
- return N.forwardRef(function(d, l) {
4846
+ return N.forwardRef(function(l, d) {
4843
4847
  return N.createElement(
4844
4848
  Yh,
4845
4849
  {
@@ -4847,8 +4851,8 @@ class bm extends N.Component {
4847
4851
  targetComponent: i
4848
4852
  },
4849
4853
  N.createElement(i, {
4850
- ref: l,
4851
- ...d
4854
+ ref: d,
4855
+ ...l
4852
4856
  })
4853
4857
  );
4854
4858
  });
@@ -4890,8 +4894,8 @@ class bm extends N.Component {
4890
4894
  const i = s.getDom();
4891
4895
  if (i && !(i instanceof Text))
4892
4896
  if (n) {
4893
- const f = Array.from(((c = i.querySelectorAll) == null ? void 0 : c.call(i, n)) || []);
4894
- a.push(...f);
4897
+ const u = Array.from(((c = i.querySelectorAll) == null ? void 0 : c.call(i, n)) || []);
4898
+ a.push(...u);
4895
4899
  } else
4896
4900
  a.push(i);
4897
4901
  }), a;
@@ -4918,26 +4922,26 @@ class bm extends N.Component {
4918
4922
  var y, p;
4919
4923
  if (i.nodeType !== "NODE")
4920
4924
  return s;
4921
- const { props: c, condition: f } = s;
4922
- let u = { ...c };
4923
- const d = ((y = i.value.configure) == null ? void 0 : y.devState) || {}, l = (p = i.material) == null ? void 0 : p.value.fixedProps;
4924
- if (l !== void 0) {
4925
- if (Tt(l))
4926
- u = {
4927
- ...u,
4928
- ...l
4925
+ const { props: c, condition: u } = s;
4926
+ let f = { ...c };
4927
+ const l = ((y = i.value.configure) == null ? void 0 : y.devState) || {}, d = (p = i.material) == null ? void 0 : p.value.fixedProps;
4928
+ if (d !== void 0) {
4929
+ if (Tt(d))
4930
+ f = {
4931
+ ...f,
4932
+ ...d
4929
4933
  };
4930
- else if (typeof l == "function") {
4931
- const g = l(u);
4932
- u = {
4933
- ...u,
4934
- ...g
4934
+ else if (typeof d == "function") {
4935
+ const m = d(f);
4936
+ f = {
4937
+ ...f,
4938
+ ...m
4935
4939
  };
4936
4940
  }
4937
4941
  }
4938
- let h = f;
4939
- return d.condition === !1 && (h = d.condition), {
4940
- props: Oc(u, d.props || {}),
4942
+ let h = u;
4943
+ return l.condition === !1 && (h = l.condition), {
4944
+ props: Oc(f, l.props || {}),
4941
4945
  condition: h
4942
4946
  };
4943
4947
  },
@@ -4987,40 +4991,40 @@ function sm() {
4987
4991
  })(am, function() {
4988
4992
  var r = function() {
4989
4993
  }, n = {}, o = {}, a = {};
4990
- function s(l, h) {
4991
- l = l.push ? l : [l];
4992
- var y = [], p = l.length, g = p, m, v, S, C;
4993
- for (m = function(w, j) {
4994
- j.length && y.push(w), g--, g || h(y);
4994
+ function s(d, h) {
4995
+ d = d.push ? d : [d];
4996
+ var y = [], p = d.length, m = p, g, v, S, C;
4997
+ for (g = function(w, j) {
4998
+ j.length && y.push(w), m--, m || h(y);
4995
4999
  }; p--; ) {
4996
- if (v = l[p], S = o[v], S) {
4997
- m(v, S);
5000
+ if (v = d[p], S = o[v], S) {
5001
+ g(v, S);
4998
5002
  continue;
4999
5003
  }
5000
- C = a[v] = a[v] || [], C.push(m);
5004
+ C = a[v] = a[v] || [], C.push(g);
5001
5005
  }
5002
5006
  }
5003
- function i(l, h) {
5004
- if (l) {
5005
- var y = a[l];
5006
- if (o[l] = h, !!y)
5007
+ function i(d, h) {
5008
+ if (d) {
5009
+ var y = a[d];
5010
+ if (o[d] = h, !!y)
5007
5011
  for (; y.length; )
5008
- y[0](l, h), y.splice(0, 1);
5012
+ y[0](d, h), y.splice(0, 1);
5009
5013
  }
5010
5014
  }
5011
- function c(l, h) {
5012
- l.call && (l = { success: l }), h.length ? (l.error || r)(h) : (l.success || r)(l);
5015
+ function c(d, h) {
5016
+ d.call && (d = { success: d }), h.length ? (d.error || r)(h) : (d.success || r)(d);
5013
5017
  }
5014
- function f(l, h, y, p) {
5015
- var g = document, m = y.async, v = (y.numRetries || 0) + 1, S = y.before || r, C = l.replace(/[\?|#].*$/, ""), w = l.replace(/^(css|img|module|nomodule)!/, ""), j, D, $;
5018
+ function u(d, h, y, p) {
5019
+ var m = document, g = y.async, v = (y.numRetries || 0) + 1, S = y.before || r, C = d.replace(/[\?|#].*$/, ""), w = d.replace(/^(css|img|module|nomodule)!/, ""), j, D, $;
5016
5020
  if (p = p || 0, /(^css!|\.css$)/.test(C))
5017
- $ = g.createElement("link"), $.rel = "stylesheet", $.href = w, j = "hideFocus" in $, j && $.relList && (j = 0, $.rel = "preload", $.as = "style");
5021
+ $ = m.createElement("link"), $.rel = "stylesheet", $.href = w, j = "hideFocus" in $, j && $.relList && (j = 0, $.rel = "preload", $.as = "style");
5018
5022
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(C))
5019
- $ = g.createElement("img"), $.src = w;
5020
- else if ($ = g.createElement("script"), $.src = w, $.async = m === void 0 ? !0 : m, D = "noModule" in $, /^module!/.test(C)) {
5021
- if (!D) return h(l, "l");
5023
+ $ = m.createElement("img"), $.src = w;
5024
+ else if ($ = m.createElement("script"), $.src = w, $.async = g === void 0 ? !0 : g, D = "noModule" in $, /^module!/.test(C)) {
5025
+ if (!D) return h(d, "l");
5022
5026
  $.type = "module";
5023
- } else if (/^nomodule!/.test(C) && D) return h(l, "l");
5027
+ } else if (/^nomodule!/.test(C) && D) return h(d, "l");
5024
5028
  $.onload = $.onerror = $.onbeforeload = function(yt) {
5025
5029
  var ot = yt.type[0];
5026
5030
  if (j)
@@ -5031,48 +5035,48 @@ function sm() {
5031
5035
  }
5032
5036
  if (ot == "e") {
5033
5037
  if (p += 1, p < v)
5034
- return f(l, h, y, p);
5038
+ return u(d, h, y, p);
5035
5039
  } else if ($.rel == "preload" && $.as == "style")
5036
5040
  return $.rel = "stylesheet";
5037
- h(l, ot, yt.defaultPrevented);
5038
- }, S(l, $) !== !1 && g.head.appendChild($);
5041
+ h(d, ot, yt.defaultPrevented);
5042
+ }, S(d, $) !== !1 && m.head.appendChild($);
5039
5043
  }
5040
- function u(l, h, y) {
5041
- l = l.push ? l : [l];
5042
- var p = l.length, g = p, m = [], v, S;
5044
+ function f(d, h, y) {
5045
+ d = d.push ? d : [d];
5046
+ var p = d.length, m = p, g = [], v, S;
5043
5047
  for (v = function(C, w, j) {
5044
- if (w == "e" && m.push(C), w == "b")
5045
- if (j) m.push(C);
5048
+ if (w == "e" && g.push(C), w == "b")
5049
+ if (j) g.push(C);
5046
5050
  else return;
5047
- p--, p || h(m);
5048
- }, S = 0; S < g; S++) f(l[S], v, y);
5051
+ p--, p || h(g);
5052
+ }, S = 0; S < m; S++) u(d[S], v, y);
5049
5053
  }
5050
- function d(l, h, y) {
5051
- var p, g;
5052
- if (h && h.trim && (p = h), g = (p ? y : h) || {}, p) {
5054
+ function l(d, h, y) {
5055
+ var p, m;
5056
+ if (h && h.trim && (p = h), m = (p ? y : h) || {}, p) {
5053
5057
  if (p in n)
5054
5058
  throw "LoadJS";
5055
5059
  n[p] = !0;
5056
5060
  }
5057
- function m(v, S) {
5058
- u(l, function(C) {
5059
- c(g, C), v && c({ success: v, error: S }, C), i(p, C);
5060
- }, g);
5061
+ function g(v, S) {
5062
+ f(d, function(C) {
5063
+ c(m, C), v && c({ success: v, error: S }, C), i(p, C);
5064
+ }, m);
5061
5065
  }
5062
- if (g.returnPromise) return new Promise(m);
5063
- m();
5066
+ if (m.returnPromise) return new Promise(g);
5067
+ g();
5064
5068
  }
5065
- return d.ready = function(h, y) {
5069
+ return l.ready = function(h, y) {
5066
5070
  return s(h, function(p) {
5067
5071
  c(y, p);
5068
- }), d;
5069
- }, d.done = function(h) {
5072
+ }), l;
5073
+ }, l.done = function(h) {
5070
5074
  i(h, []);
5071
- }, d.reset = function() {
5075
+ }, l.reset = function() {
5072
5076
  n = {}, o = {}, a = {};
5073
- }, d.isDefined = function(h) {
5077
+ }, l.isDefined = function(h) {
5074
5078
  return h in n;
5075
- }, d;
5079
+ }, l;
5076
5080
  });
5077
5081
  }(ae)), ae.exports;
5078
5082
  }