oolong-engine 0.0.2-t.1 → 0.0.2-t.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/engine.js CHANGED
@@ -18,7 +18,7 @@ class mn {
18
18
  t.reverseLog = this.reverseLog(n, e), this.execData(n, e);
19
19
  }
20
20
  }
21
- var Oe = /* @__PURE__ */ ((l) => (l[l.Start = 0] = "Start", l[l.End = 1] = "End", l[l.AddNode = 2] = "AddNode", l[l.RemoveNode = 3] = "RemoveNode", l[l.UpdateNode = 4] = "UpdateNode", l[l.SelectNode = 5] = "SelectNode", l[l.TextFocus = 6] = "TextFocus", l))(Oe || {});
21
+ var ze = /* @__PURE__ */ ((l) => (l[l.Start = 0] = "Start", l[l.End = 1] = "End", l[l.AddNode = 2] = "AddNode", l[l.RemoveNode = 3] = "RemoveNode", l[l.UpdateNode = 4] = "UpdateNode", l[l.SelectNode = 5] = "SelectNode", l[l.TextFocus = 6] = "TextFocus", l))(ze || {});
22
22
  class m {
23
23
  constructor(t = 0, e = 0) {
24
24
  p(this, "x");
@@ -478,7 +478,7 @@ class Ve extends ct {
478
478
  n !== void 0 && (this.points = n), o !== void 0 && (this.auto = o);
479
479
  }
480
480
  }
481
- class zt extends ct {
481
+ class Ot extends ct {
482
482
  constructor() {
483
483
  super(...arguments);
484
484
  p(this, "type", I.Connect);
@@ -486,11 +486,11 @@ class zt extends ct {
486
486
  p(this, "end", null);
487
487
  }
488
488
  static from(e) {
489
- const n = new zt();
489
+ const n = new Ot();
490
490
  return n.start = e.start, n.end = e.end, n;
491
491
  }
492
492
  clone() {
493
- const e = new zt();
493
+ const e = new Ot();
494
494
  return e.start = this.start, e.end = this.end, e;
495
495
  }
496
496
  update(e) {
@@ -555,7 +555,7 @@ class Te {
555
555
  this.prop = t;
556
556
  }
557
557
  }
558
- const Gt = "#FFFFFF", ni = "#000000", Jt = "#647ee5", Ze = "#545DE7", gr = "#32a8f2", Ka = "#3370FF", Qa = 8, Za = 18, qa = 5, oi = 11, Ja = "#CCCCCC", ec = "#B7BEF5", tc = "#DADEFA";
558
+ const Gt = "#FFFFFF", ni = "#000000", qt = "#647ee5", Ze = "#545DE7", gr = "#32a8f2", Ka = "#3370FF", Qa = 8, Za = 18, qa = 5, oi = 11, Ja = "#CCCCCC", ec = "#B7BEF5", tc = "#DADEFA";
559
559
  class nc extends Te {
560
560
  constructor() {
561
561
  super(...arguments);
@@ -563,7 +563,7 @@ class nc extends Te {
563
563
  }
564
564
  draw(e, n) {
565
565
  const { node: o, transform: s } = this.prop;
566
- e.save(), e.strokeStyle = Jt, e.lineWidth = 2 / n, e.globalAlpha = 1;
566
+ e.save(), e.strokeStyle = qt, e.lineWidth = 2 / n, e.globalAlpha = 1;
567
567
  const { x: r, y: i, width: a, height: c } = o.baseProps, { a: h, b: d, c: u, d: f, e: g, f: x } = s;
568
568
  e.transform(h, d, u, f, g, x), e.beginPath(), e.strokeRect(0, 0, a, c), e.restore();
569
569
  }
@@ -757,7 +757,7 @@ class gc extends Te {
757
757
  const { node: o, transform: s } = this.prop;
758
758
  e.save();
759
759
  const { a: r, b: i, c: a, d: c, e: h, f: d } = s;
760
- e.transform(r, i, a, c, h, d), e.strokeStyle = Jt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.beginPath(), o.drawer.draw(o, e), e.restore();
760
+ e.transform(r, i, a, c, h, d), e.strokeStyle = qt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.beginPath(), o.drawer.draw(o, e), e.restore();
761
761
  }
762
762
  }
763
763
  class xc extends Te {
@@ -779,7 +779,7 @@ class yc extends Te {
779
779
  }
780
780
  draw(e, n) {
781
781
  const { point: o } = this.prop, s = 4 / n;
782
- e.save(), e.fillStyle = Jt, e.strokeStyle = Jt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.beginPath(), e.arc(o.x, o.y, s, 0, 2 * Math.PI), e.fill(), e.restore();
782
+ e.save(), e.fillStyle = qt, e.strokeStyle = qt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.beginPath(), e.arc(o.x, o.y, s, 0, 2 * Math.PI), e.fill(), e.restore();
783
783
  }
784
784
  }
785
785
  class wc extends Te {
@@ -810,7 +810,7 @@ class mc extends Te {
810
810
  if (!o.canBeConnected())
811
811
  return;
812
812
  const r = 6 / n, { a: i, b: a, c, d: h, e: d, f: u } = o.globalTransform();
813
- e.save(), e.transform(i, a, c, h, d, u), e.fillStyle = Jt, e.beginPath(), e.arc(s.x, s.y, r, 0, 2 * Math.PI), e.fill(), e.stroke(), e.restore();
813
+ e.save(), e.transform(i, a, c, h, d, u), e.fillStyle = qt, e.beginPath(), e.arc(s.x, s.y, r, 0, 2 * Math.PI), e.fill(), e.stroke(), e.restore();
814
814
  }
815
815
  }
816
816
  const C = 22;
@@ -911,7 +911,7 @@ class Tc extends Te {
911
911
  }
912
912
  draw(e, n) {
913
913
  const { node: o } = this.prop;
914
- e.save(), e.strokeStyle = Jt, e.lineWidth = 2 / n, e.globalAlpha = 1;
914
+ e.save(), e.strokeStyle = qt, e.lineWidth = 2 / n, e.globalAlpha = 1;
915
915
  const { width: s, height: r } = o.baseProps, { a: i, b: a, c, d: h, e: d, f: u } = o.globalTransform();
916
916
  e.transform(i, a, c, h, d, u), e.beginPath(), e.strokeRect(0, 0, s, r), e.restore();
917
917
  }
@@ -989,7 +989,7 @@ class Bc extends Te {
989
989
  }
990
990
  draw(e, n) {
991
991
  const { node: o } = this.prop;
992
- e.save(), e.strokeStyle = Jt, e.lineWidth = 1 / n, e.globalAlpha = 1;
992
+ e.save(), e.strokeStyle = qt, e.lineWidth = 1 / n, e.globalAlpha = 1;
993
993
  const { width: s, height: r } = o.baseProps, { a: i, b: a, c, d: h, e: d, f: u } = o.nameGlobalTransform();
994
994
  e.transform(i, a, c, h, d, u), e.beginPath(), e.strokeRect(0, 0, s, r), e.restore();
995
995
  }
@@ -1026,7 +1026,7 @@ class Hc extends Te {
1026
1026
  }
1027
1027
  draw(e, n) {
1028
1028
  const { x: o, y1: s, y0: r } = this.prop;
1029
- e.save(), e.strokeStyle = Jt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.moveTo(o, r), e.lineTo(o, s), e.stroke(), e.restore();
1029
+ e.save(), e.strokeStyle = qt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.moveTo(o, r), e.lineTo(o, s), e.stroke(), e.restore();
1030
1030
  }
1031
1031
  }
1032
1032
  class Dc extends Te {
@@ -1036,7 +1036,7 @@ class Dc extends Te {
1036
1036
  }
1037
1037
  draw(e, n) {
1038
1038
  const { x0: o, x1: s, y: r } = this.prop;
1039
- e.save(), e.strokeStyle = Jt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.moveTo(o, r), e.lineTo(s, r), e.stroke(), e.restore();
1039
+ e.save(), e.strokeStyle = qt, e.lineWidth = 2 / n, e.globalAlpha = 1, e.moveTo(o, r), e.lineTo(s, r), e.stroke(), e.restore();
1040
1040
  }
1041
1041
  }
1042
1042
  class Xc extends Te {
@@ -1051,7 +1051,7 @@ class Xc extends Te {
1051
1051
  e.strokeStyle = Gt, e.lineWidth = 2.5 / n, e.lineCap = "square", e.beginPath(), e.moveTo(o.x - r, o.y), e.lineTo(o.x + r, o.y), e.moveTo(o.x, o.y - r), e.lineTo(o.x, o.y + r), e.stroke(), e.restore();
1052
1052
  }
1053
1053
  }
1054
- class Oc extends Te {
1054
+ class zc extends Te {
1055
1055
  constructor() {
1056
1056
  super(...arguments);
1057
1057
  p(this, "auxiliaryType", N.SelectSlideGapInsertPoint);
@@ -1109,9 +1109,9 @@ p(si, "constructorMap", {
1109
1109
  [N.HoverInsertSlide]: Hc,
1110
1110
  [N.HoverInsertHorizonSlide]: Dc,
1111
1111
  [N.HoverSlideGapInsertPoint]: Xc,
1112
- [N.SelectSlideGapInsertPoint]: Oc
1112
+ [N.SelectSlideGapInsertPoint]: zc
1113
1113
  });
1114
- class zc {
1114
+ class Oc {
1115
1115
  constructor() {
1116
1116
  p(this, "isWorking", !1);
1117
1117
  p(this, "idList", []);
@@ -1196,7 +1196,7 @@ class Fc extends vt {
1196
1196
  });
1197
1197
  }
1198
1198
  }
1199
- var ze = /* @__PURE__ */ ((l) => (l[l.Scale = 0] = "Scale", l[l.Focus = 1] = "Focus", l[l.FocusPropsChange = 2] = "FocusPropsChange", l[l.ToolChange = 3] = "ToolChange", l[l.QuickCreate = 4] = "QuickCreate", l[l.ClickImg = 5] = "ClickImg", l[l.ImgUrls = 6] = "ImgUrls", l[l.ContextMenu = 7] = "ContextMenu", l[l.ExitCrop = 8] = "ExitCrop", l[l.DocMode = 9] = "DocMode", l[l.SlideCovers = 10] = "SlideCovers", l[l.SlideIndex = 11] = "SlideIndex", l))(ze || {});
1199
+ var Oe = /* @__PURE__ */ ((l) => (l[l.Scale = 0] = "Scale", l[l.Focus = 1] = "Focus", l[l.FocusPropsChange = 2] = "FocusPropsChange", l[l.ToolChange = 3] = "ToolChange", l[l.QuickCreate = 4] = "QuickCreate", l[l.ClickImg = 5] = "ClickImg", l[l.ImgUrls = 6] = "ImgUrls", l[l.ContextMenu = 7] = "ContextMenu", l[l.ExitCrop = 8] = "ExitCrop", l[l.DocMode = 9] = "DocMode", l[l.SlideCovers = 10] = "SlideCovers", l[l.SlideIndex = 11] = "SlideIndex", l))(Oe || {});
1200
1200
  class Gc {
1201
1201
  constructor() {
1202
1202
  p(this, "slotMap", /* @__PURE__ */ new Map());
@@ -1514,7 +1514,7 @@ class ol {
1514
1514
  new Yc(),
1515
1515
  new Fc()
1516
1516
  ]);
1517
- this.auxiliaryManager = e, this.optionHelper = new zc(), this.cropManager = n, this.docState = o;
1517
+ this.auxiliaryManager = e, this.optionHelper = new Oc(), this.cropManager = n, this.docState = o;
1518
1518
  }
1519
1519
  register(t) {
1520
1520
  this.inputManager = t;
@@ -1545,7 +1545,7 @@ class ol {
1545
1545
  return M.getBounds(t, "selectBounds");
1546
1546
  }
1547
1547
  set(t) {
1548
- this.selectNodes = t, this.optionHelper.selectChange(t), this.auxiliaryManager.slotManager.addSlotState(ze.Focus, [...t]), this.auxiliaryManager.slotManager.addSlotState(ze.FocusPropsChange, !0), this.refreshSelectStatus();
1548
+ this.selectNodes = t, this.optionHelper.selectChange(t), this.auxiliaryManager.slotManager.addSlotState(Oe.Focus, [...t]), this.auxiliaryManager.slotManager.addSlotState(Oe.FocusPropsChange, !0), this.refreshSelectStatus();
1549
1549
  }
1550
1550
  startOptWorking(t, e, n) {
1551
1551
  this.optionHelper.startWorking(t, e, n);
@@ -1673,22 +1673,22 @@ class Fn extends ct {
1673
1673
  n !== void 0 && (this.cropInfo = n), o !== void 0 && (this.cropType = o);
1674
1674
  }
1675
1675
  }
1676
- class an extends ct {
1676
+ class rn extends ct {
1677
1677
  constructor() {
1678
1678
  super(...arguments);
1679
1679
  p(this, "type", I.CheckStatus);
1680
1680
  p(this, "checkStatus", !1);
1681
1681
  }
1682
1682
  static create(e) {
1683
- const n = new an();
1683
+ const n = new rn();
1684
1684
  return n.update(e), n;
1685
1685
  }
1686
1686
  static from(e) {
1687
- const n = new an();
1687
+ const n = new rn();
1688
1688
  return n.checkStatus = e.checkStatus, n;
1689
1689
  }
1690
1690
  clone() {
1691
- const e = new an();
1691
+ const e = new rn();
1692
1692
  return e.checkStatus = this.checkStatus, e;
1693
1693
  }
1694
1694
  update(e) {
@@ -1696,22 +1696,22 @@ class an extends ct {
1696
1696
  n !== void 0 && (this.checkStatus = n);
1697
1697
  }
1698
1698
  }
1699
- class zn extends ct {
1699
+ class On extends ct {
1700
1700
  constructor() {
1701
1701
  super(...arguments);
1702
1702
  p(this, "type", I.CheckSize);
1703
1703
  p(this, "size", 16);
1704
1704
  }
1705
1705
  static create(e) {
1706
- const n = new zn();
1706
+ const n = new On();
1707
1707
  return n.update(e), n;
1708
1708
  }
1709
1709
  static from(e) {
1710
- const n = new zn();
1710
+ const n = new On();
1711
1711
  return n.size = e.size, n;
1712
1712
  }
1713
1713
  clone() {
1714
- const e = new zn();
1714
+ const e = new On();
1715
1715
  return e.size = this.size, e;
1716
1716
  }
1717
1717
  update(e) {
@@ -1736,22 +1736,22 @@ const As = {
1736
1736
  [V.Star]: we.Decision
1737
1737
  };
1738
1738
  var Qt = /* @__PURE__ */ ((l) => (l[l.TOP_RIGHT = 0] = "TOP_RIGHT", l[l.TOP_LEFT = 1] = "TOP_LEFT", l[l.BOTTOM_RIGHT = 2] = "BOTTOM_RIGHT", l[l.BOTTOM_LEFT = 3] = "BOTTOM_LEFT", l))(Qt || {});
1739
- class cn extends ct {
1739
+ class an extends ct {
1740
1740
  constructor() {
1741
1741
  super(...arguments);
1742
1742
  p(this, "type", I.TextParagraph);
1743
1743
  p(this, "paragraphStyles", []);
1744
1744
  }
1745
1745
  static create(e) {
1746
- const n = new cn();
1746
+ const n = new an();
1747
1747
  return n.update(e), n;
1748
1748
  }
1749
1749
  static from(e) {
1750
- const n = new cn();
1750
+ const n = new an();
1751
1751
  return n.paragraphStyles = e.paragraphStyles, n;
1752
1752
  }
1753
1753
  clone() {
1754
- const e = new cn();
1754
+ const e = new an();
1755
1755
  return e.paragraphStyles = JSON.parse(JSON.stringify(this.paragraphStyles)), e;
1756
1756
  }
1757
1757
  update(e) {
@@ -1995,7 +1995,7 @@ class M {
1995
1995
  textParagraphQuoteProps: w,
1996
1996
  slideProps: T
1997
1997
  } = t;
1998
- return o && e.push(ke.from(o)), r && e.push(nt.from(r)), i && e.push(Ge.from(i)), n && e.push(re.from(n)), s && e.push(De.from(s)), a && e.push(Ve.from(a)), c && e.push(zt.from(c)), h && e.push(at.from(h)), d && e.push(Ht.from(d)), u && e.push(Yn.from(u)), f && e.push(lo.from(f)), g && e.push(Fn.from(g)), x && e.push(an.from(x)), P && e.push(zn.from(P)), b && e.push(cn.from(b)), w && e.push(Wt.from(w)), T && e.push(Pt.from(T)), e;
1998
+ return o && e.push(ke.from(o)), r && e.push(nt.from(r)), i && e.push(Ge.from(i)), n && e.push(re.from(n)), s && e.push(De.from(s)), a && e.push(Ve.from(a)), c && e.push(Ot.from(c)), h && e.push(at.from(h)), d && e.push(Ht.from(d)), u && e.push(Yn.from(u)), f && e.push(lo.from(f)), g && e.push(Fn.from(g)), x && e.push(rn.from(x)), P && e.push(On.from(P)), b && e.push(an.from(b)), w && e.push(Wt.from(w)), T && e.push(Pt.from(T)), e;
1999
1999
  }
2000
2000
  /**
2001
2001
  * 获取中心点
@@ -5538,20 +5538,20 @@ class Y {
5538
5538
  b.x - E.x - Ue * A.x - Ue * Ue * T.x - Ue * Ue * Ue * w.x
5539
5539
  );
5540
5540
  kn.simplifyEquals();
5541
- const Nn = kn.getRoots(), on = new Fe(
5541
+ const Nn = kn.getRoots(), nn = new Fe(
5542
5542
  g.y,
5543
5543
  x.y,
5544
5544
  P.y,
5545
5545
  b.y - E.y - Ue * A.y - Ue * Ue * T.y - Ue * Ue * Ue * w.y
5546
5546
  );
5547
- on.simplifyEquals();
5548
- const At = on.getRoots();
5547
+ nn.simplifyEquals();
5548
+ const At = nn.getRoots();
5549
5549
  if (Nn.length > 0 && At.length > 0) {
5550
5550
  e:
5551
5551
  for (const An of Nn)
5552
5552
  if (0 <= An && An <= 1) {
5553
- for (let sn = 0; sn < At.length; sn++)
5554
- if (Math.abs(An - At[sn]) < 1e-4) {
5553
+ for (let on = 0; on < At.length; on++)
5554
+ if (Math.abs(An - At[on]) < 1e-4) {
5555
5555
  f.points.push(
5556
5556
  w.multiply(Ue * Ue * Ue).add(T.multiply(Ue * Ue).add(A.multiply(Ue).add(E)))
5557
5557
  );
@@ -6973,7 +6973,7 @@ function Ml(l) {
6973
6973
  var t = l.tag & 1;
6974
6974
  return l.tag >>>= 1, t;
6975
6975
  }
6976
- function Ot(l, t, e) {
6976
+ function zt(l, t, e) {
6977
6977
  if (!t)
6978
6978
  return e;
6979
6979
  for (; l.bitcount < 24; )
@@ -6992,9 +6992,9 @@ function Ss(l, t) {
6992
6992
  }
6993
6993
  function Sl(l, t, e) {
6994
6994
  var n, o, s, r, i, a;
6995
- for (n = Ot(l, 5, 257), o = Ot(l, 5, 1), s = Ot(l, 4, 4), r = 0; r < 19; ++r) Xt[r] = 0;
6995
+ for (n = zt(l, 5, 257), o = zt(l, 5, 1), s = zt(l, 4, 4), r = 0; r < 19; ++r) Xt[r] = 0;
6996
6996
  for (r = 0; r < s; ++r) {
6997
- var c = Ot(l, 3, 0);
6997
+ var c = zt(l, 3, 0);
6998
6998
  Xt[Pl[r]] = c;
6999
6999
  }
7000
7000
  for (ds(Sr, Xt, 0, 19), i = 0; i < n + o; ) {
@@ -7002,15 +7002,15 @@ function Sl(l, t, e) {
7002
7002
  switch (h) {
7003
7003
  case 16:
7004
7004
  var d = Xt[i - 1];
7005
- for (a = Ot(l, 2, 3); a; --a)
7005
+ for (a = zt(l, 2, 3); a; --a)
7006
7006
  Xt[i++] = d;
7007
7007
  break;
7008
7008
  case 17:
7009
- for (a = Ot(l, 3, 3); a; --a)
7009
+ for (a = zt(l, 3, 3); a; --a)
7010
7010
  Xt[i++] = 0;
7011
7011
  break;
7012
7012
  case 18:
7013
- for (a = Ot(l, 7, 11); a; --a)
7013
+ for (a = zt(l, 7, 11); a; --a)
7014
7014
  Xt[i++] = 0;
7015
7015
  break;
7016
7016
  default:
@@ -7029,7 +7029,7 @@ function Ir(l, t, e) {
7029
7029
  l.dest[l.destLen++] = n;
7030
7030
  else {
7031
7031
  var o, s, r, i;
7032
- for (n -= 257, o = Ot(l, Hs[n], Ds[n]), s = Ss(l, e), r = l.destLen - Ot(l, pi[s], fi[s]), i = r; i < r + o; ++i)
7032
+ for (n -= 257, o = zt(l, Hs[n], Ds[n]), s = Ss(l, e), r = l.destLen - zt(l, pi[s], fi[s]), i = r; i < r + o; ++i)
7033
7033
  l.dest[l.destLen++] = l.dest[i];
7034
7034
  }
7035
7035
  }
@@ -7046,7 +7046,7 @@ function vl(l) {
7046
7046
  function Il(l, t) {
7047
7047
  var e = new ml(l, t), n, o, s;
7048
7048
  do {
7049
- switch (n = Ml(e), o = Ot(e, 2, 0), o) {
7049
+ switch (n = Ml(e), o = zt(e, 2, 0), o) {
7050
7050
  case 0:
7051
7051
  s = vl(e);
7052
7052
  break;
@@ -7083,7 +7083,7 @@ const Ll = new Uint8Array(new Uint32Array([305419896]).buffer)[0] === 18, Tr = (
7083
7083
  var Nl = {
7084
7084
  swap32LE: kl
7085
7085
  };
7086
- const Lr = Tl, { swap32LE: Al } = Nl, Xs = 11, yn = 5, Bl = Xs - yn, Rl = 65536 >> Xs, El = 1 << Bl, Hl = El - 1, To = 2, Dl = 1 << yn, us = Dl - 1, xi = 65536 >> yn, Xl = 1024 >> yn, Ol = xi + Xl, zl = Ol, Wl = 32, Yl = zl + Wl, Fl = 1 << To;
7086
+ const Lr = Tl, { swap32LE: Al } = Nl, Xs = 11, yn = 5, Bl = Xs - yn, Rl = 65536 >> Xs, El = 1 << Bl, Hl = El - 1, To = 2, Dl = 1 << yn, us = Dl - 1, xi = 65536 >> yn, Xl = 1024 >> yn, zl = xi + Xl, Ol = zl, Wl = 32, Yl = Ol + Wl, Fl = 1 << To;
7087
7087
  class Gl {
7088
7088
  constructor(t) {
7089
7089
  const e = typeof t.readUInt32BE == "function" && typeof t.slice == "function";
@@ -8425,7 +8425,7 @@ class ah {
8425
8425
  }
8426
8426
  }
8427
8427
  const Rr = new ah();
8428
- class ln {
8428
+ class cn {
8429
8429
  constructor() {
8430
8430
  p(this, "text");
8431
8431
  //表示块中所需要绘制的文字
@@ -8452,7 +8452,7 @@ class ln {
8452
8452
  * @param block
8453
8453
  */
8454
8454
  static create(t) {
8455
- const e = new ln();
8455
+ const e = new cn();
8456
8456
  e.fontSize = t.fontSize, e.fontFamily = t.fontFamily, e.fontColor = t.fontColor, e.fontBgColor = t.fontBgColor, e.bold = t.bold, e.italic = t.italic, e.underline = t.underline, e.strikethrough = t.strikethrough;
8457
8457
  const n = t.characters || [];
8458
8458
  let o = "";
@@ -8466,7 +8466,7 @@ class ln {
8466
8466
  * @param characters
8467
8467
  */
8468
8468
  static createByStyleAndCharacter(t, e = []) {
8469
- const n = new ln();
8469
+ const n = new cn();
8470
8470
  n.fontSize = t.fontSize, n.fontFamily = t.fontFamily, n.fontColor = t.fontColor, n.fontBgColor = t.fontBgColor, n.bold = t.bold, n.italic = t.italic, n.underline = t.underline, n.strikethrough = t.strikethrough;
8471
8471
  let o = "";
8472
8472
  for (const s of e)
@@ -8554,13 +8554,13 @@ class ch {
8554
8554
  o.push(r), s += r.width;
8555
8555
  else {
8556
8556
  if (o.length > 0) {
8557
- const i = ln.createByStyleAndCharacter(t, o);
8557
+ const i = cn.createByStyleAndCharacter(t, o);
8558
8558
  n.line.addTextBlock(i);
8559
8559
  }
8560
8560
  n.paragraph.addLine(n.line), o = [], n.line = new to(), o.push(r), s = r.width;
8561
8561
  }
8562
8562
  if (o.length > 0) {
8563
- const r = ln.createByStyleAndCharacter(t, o);
8563
+ const r = cn.createByStyleAndCharacter(t, o);
8564
8564
  n.line.addTextBlock(r);
8565
8565
  }
8566
8566
  }
@@ -8628,7 +8628,7 @@ class Do {
8628
8628
  return t.detect(h);
8629
8629
  }
8630
8630
  }
8631
- const Dy = "pingfang", ce = 5, Xy = 2, Oy = 5, zy = 50, Wy = "main_text_id", Yy = 14, Fy = 10, hh = 8, gs = 2, dh = 0.4;
8631
+ const Dy = "pingfang", ce = 5, Xy = 2, zy = 5, Oy = 50, Wy = "main_text_id", Yy = 14, Fy = 10, hh = 8, gs = 2, dh = 0.4;
8632
8632
  class uh {
8633
8633
  computeStyle(t, e, n, o, s) {
8634
8634
  if (!s) {
@@ -8793,7 +8793,7 @@ class Xo {
8793
8793
  p(this, "height", 0);
8794
8794
  //文本属性
8795
8795
  p(this, "textProps", new Ge());
8796
- p(this, "paragraphProps", new cn());
8796
+ p(this, "paragraphProps", new an());
8797
8797
  p(this, "paragraphQuoteProps", new Wt());
8798
8798
  //布局位置
8799
8799
  p(this, "rect", new D());
@@ -8929,7 +8929,7 @@ class Xo {
8929
8929
  line: r
8930
8930
  };
8931
8931
  for (let c = 0; c < e.textBlocks.length; c++) {
8932
- const h = e.textBlocks[c], d = c === e.textBlocks.length - 1 ? null : e.textBlocks[c + 1], u = ln.create(h);
8932
+ const h = e.textBlocks[c], d = c === e.textBlocks.length - 1 ? null : e.textBlocks[c + 1], u = cn.create(h);
8933
8933
  if (u.characters.length === 0) {
8934
8934
  const { fontSize: f, fontFamily: g, bold: x, italic: P } = u, { height: b } = M.measureTextByFont(t, "1", f, g, x, P);
8935
8935
  u.height = b;
@@ -8949,9 +8949,9 @@ class Xo {
8949
8949
  if (r.length === 0 || i < 0)
8950
8950
  s.line.textBlocks.length > 0 && (s.paragraph.addLine(s.line), s.line = new to()), lh.work(t, n, s);
8951
8951
  else {
8952
- const a = t.characters.slice(0, i), c = ln.createByStyleAndCharacter(t, a);
8952
+ const a = t.characters.slice(0, i), c = cn.createByStyleAndCharacter(t, a);
8953
8953
  s.line.addTextBlock(c), s.paragraph.addLine(s.line), s.line = new to();
8954
- const h = t.characters.slice(i, t.characters.length), d = ln.createByStyleAndCharacter(t, h);
8954
+ const h = t.characters.slice(i, t.characters.length), d = cn.createByStyleAndCharacter(t, h);
8955
8955
  this.lineAddTextBlock(d, e, n, o, s);
8956
8956
  return;
8957
8957
  }
@@ -9096,7 +9096,7 @@ class fh {
9096
9096
  this.characters.push(t), this.width = this.width + t.width;
9097
9097
  }
9098
9098
  }
9099
- class Os {
9099
+ class zs {
9100
9100
  handle(t, e) {
9101
9101
  const n = this.layoutToPoints(t, e);
9102
9102
  return this.getUpdateNodeData(t.id, n);
@@ -9112,7 +9112,7 @@ class Os {
9112
9112
  }] };
9113
9113
  }
9114
9114
  }
9115
- class Co extends Os {
9115
+ class Co extends zs {
9116
9116
  enable(t) {
9117
9117
  return t.shapeType === de.Line;
9118
9118
  }
@@ -9147,7 +9147,7 @@ function xh(l) {
9147
9147
  }
9148
9148
  return t.every((e) => e === t[0]);
9149
9149
  }
9150
- class Oo {
9150
+ class zo {
9151
9151
  splitCurve(t) {
9152
9152
  const e = t.getHalfTPos();
9153
9153
  return this.computeCurveControlPoint(t.p0, e, t.p3);
@@ -9227,10 +9227,10 @@ class Oo {
9227
9227
  return xh([n, t, P, b]) ? { lP: P, midPoint: e, rP: b } : { lP: b, midPoint: e, rP: P };
9228
9228
  }
9229
9229
  }
9230
- class fo extends Os {
9230
+ class fo extends zs {
9231
9231
  constructor() {
9232
9232
  super(...arguments);
9233
- p(this, "bezierWorker", new Oo());
9233
+ p(this, "bezierWorker", new zo());
9234
9234
  }
9235
9235
  enable(e) {
9236
9236
  return e.shapeType === de.Curve;
@@ -10846,7 +10846,7 @@ class bn extends Ut {
10846
10846
  return o && this.stop(e, n), o;
10847
10847
  }
10848
10848
  }
10849
- class en {
10849
+ class Jt {
10850
10850
  constructor() {
10851
10851
  p(this, "downHandlers", []);
10852
10852
  p(this, "upHandlers", []);
@@ -11036,7 +11036,7 @@ class Xh extends qe {
11036
11036
  return a.length === 0 ? (this.result = null, !1) : (a = M.sortGraphics(a), a.reverse(), this.result = a, !0);
11037
11037
  }
11038
11038
  }
11039
- class Oh extends qe {
11039
+ class zh extends qe {
11040
11040
  onDetect(t, e) {
11041
11041
  const n = e.detect(W.Node, t);
11042
11042
  if (!n)
@@ -11073,14 +11073,14 @@ const Ao = class Ao extends qe {
11073
11073
  };
11074
11074
  p(Ao, "HOT_DISTANCE", 8);
11075
11075
  let Ts = Ao;
11076
- class zh extends lt {
11076
+ class Oh extends lt {
11077
11077
  constructor() {
11078
11078
  super(...arguments);
11079
11079
  p(this, "start", null);
11080
11080
  }
11081
11081
  onStart(e, n) {
11082
11082
  const { renderText: o, node: s } = n.inputManager.editTextInfo, r = s.toLocal(e.globalPoint), i = o.detect(r);
11083
- n.setCursor("text"), this.start = i, n.execAction(new z());
11083
+ n.setCursor("text"), this.start = i, n.execAction(new O());
11084
11084
  }
11085
11085
  onMove(e, n) {
11086
11086
  const { renderText: o, node: s } = n.inputManager.editTextInfo, r = s.toLocal(e.globalPoint), i = o.detect(r);
@@ -11088,12 +11088,12 @@ class zh extends lt {
11088
11088
  }
11089
11089
  onUp(e, n) {
11090
11090
  const { renderText: o, node: s } = n.inputManager.editTextInfo, r = s.toLocal(e.globalPoint), i = o.detect(r);
11091
- this.start.equal(i) ? n.execAction(J.focus(s.id, this.start)) : n.execAction(J.selection(s.id, this.start, i)), n.execAction(new O());
11091
+ this.start.equal(i) ? n.execAction(J.focus(s.id, this.start)) : n.execAction(J.selection(s.id, this.start, i)), n.execAction(new z());
11092
11092
  }
11093
11093
  }
11094
11094
  class Wh extends pt {
11095
11095
  constructor() {
11096
- super([new zh()]);
11096
+ super([new Oh()]);
11097
11097
  }
11098
11098
  streamEnable(t, e) {
11099
11099
  const n = e.inputManager.editTextInfo;
@@ -11103,7 +11103,7 @@ class Wh extends pt {
11103
11103
  return !!M.rectContains(i, r);
11104
11104
  }
11105
11105
  }
11106
- class tn {
11106
+ class en {
11107
11107
  constructor() {
11108
11108
  p(this, "parentGroupSet", /* @__PURE__ */ new Set());
11109
11109
  }
@@ -11178,12 +11178,12 @@ class Fh extends hn {
11178
11178
  return null;
11179
11179
  }
11180
11180
  }
11181
- class zo extends Fh {
11181
+ class Oo extends Fh {
11182
11182
  get checkStatus() {
11183
11183
  return this.getProp(I.CheckStatus).checkStatus;
11184
11184
  }
11185
11185
  constructor(t, e) {
11186
- super(t, e), this.props.set(I.Base, new re()), this.props.set(I.Border, new ke()), this.props.set(I.CheckStatus, new an()), this.props.set(I.Color, new nt()), this.props.set(I.Shape, new De());
11186
+ super(t, e), this.props.set(I.Base, new re()), this.props.set(I.Border, new ke()), this.props.set(I.CheckStatus, new rn()), this.props.set(I.Color, new nt()), this.props.set(I.Shape, new De());
11187
11187
  }
11188
11188
  drawOnGLCtx(t) {
11189
11189
  this.drawCheckboxBorder(t), this.drawCheckboxIcon(t);
@@ -11219,17 +11219,17 @@ class zo extends Fh {
11219
11219
  return !0;
11220
11220
  }
11221
11221
  static load(t, e, n, o, s, r) {
11222
- const i = new zo(t, r);
11222
+ const i = new Oo(t, r);
11223
11223
  return i.type = e, i.zIndex = n, i.setParent(s), i.updateProps(o), i;
11224
11224
  }
11225
11225
  }
11226
11226
  const Hr = 1;
11227
- class jn extends zo {
11227
+ class jn extends Oo {
11228
11228
  constructor(e, n) {
11229
11229
  super(e, n);
11230
11230
  p(this, "renderText");
11231
11231
  p(this, "checkboxTopPadding", Hr);
11232
- this.props.set(I.Text, new Ge()), this.props.set(I.CheckSize, new zn()), this.renderText = new Xo();
11232
+ this.props.set(I.Text, new Ge()), this.props.set(I.CheckSize, new On()), this.renderText = new Xo();
11233
11233
  }
11234
11234
  get textProps() {
11235
11235
  return this.props.get(I.Text);
@@ -11299,7 +11299,7 @@ class jn extends zo {
11299
11299
  return a.type = n, a.zIndex = o, a.setParent(r), a.updateProps(s), a;
11300
11300
  }
11301
11301
  }
11302
- class zs extends lt {
11302
+ class Os extends lt {
11303
11303
  constructor() {
11304
11304
  super(...arguments);
11305
11305
  //最小拉伸尺寸
@@ -11319,7 +11319,7 @@ class zs extends lt {
11319
11319
  p(this, "relatedLines", /* @__PURE__ */ new Set());
11320
11320
  p(this, "layoutWorker", new vn());
11321
11321
  p(this, "cropStretchHandler", new Yh());
11322
- p(this, "groupBaseWorker", new tn());
11322
+ p(this, "groupBaseWorker", new en());
11323
11323
  }
11324
11324
  recordNodePropInfo(e) {
11325
11325
  const { x: n, y: o, width: s, height: r } = e.globalBaseProps, i = this.originTransform.crossPoint({ x: n, y: o }), a = {
@@ -11419,7 +11419,7 @@ class zs extends lt {
11419
11419
  this.target = n.detect(W.Stretch, e);
11420
11420
  }
11421
11421
  onStart(e, n) {
11422
- this.computeTarget(e, n), this.originStretchRect = this.getStretchRect(n), this.originWidthHeightRatio = this.originStretchRect.width / this.originStretchRect.height, this.computeOriginTransform(n), this.minStretchSize = this.getMiniSize(n), this.judgeUniform(n), this.originPos = this.originTransform.crossPoint(e.globalPoint), this.recordPropsMap(n), this.relatedLines.clear(), this.batchCollectNodeLinks(this.target.nodes, n, this.relatedLines), this.groupBaseWorker.start(this.target.nodes), this.viewBounds = n.gmlRender.getViewPortBounds(), n.actionManager.execAction(new z());
11422
+ this.computeTarget(e, n), this.originStretchRect = this.getStretchRect(n), this.originWidthHeightRatio = this.originStretchRect.width / this.originStretchRect.height, this.computeOriginTransform(n), this.minStretchSize = this.getMiniSize(n), this.judgeUniform(n), this.originPos = this.originTransform.crossPoint(e.globalPoint), this.recordPropsMap(n), this.relatedLines.clear(), this.batchCollectNodeLinks(this.target.nodes, n, this.relatedLines), this.groupBaseWorker.start(this.target.nodes), this.viewBounds = n.gmlRender.getViewPortBounds(), n.actionManager.execAction(new O());
11423
11423
  const o = [];
11424
11424
  for (const s of this.target.nodes)
11425
11425
  (s.type === v.CheckboxText || s instanceof Mt && s.shapeType === V.PureText) && (this.target.type === j.RIGHT || this.target.type === j.LEFT) && o.push({
@@ -11445,7 +11445,7 @@ class zs extends lt {
11445
11445
  n.auxiliaryManager.removeAlignGraphics(), this.stretchNode(e, n, !0);
11446
11446
  }
11447
11447
  onUp(e, n) {
11448
- this.stretchNode(e, n, !1), n.actionManager.execAction(new O()), n.auxiliaryManager.removeAlignGraphics();
11448
+ this.stretchNode(e, n, !1), n.actionManager.execAction(new z()), n.auxiliaryManager.removeAlignGraphics();
11449
11449
  }
11450
11450
  alignStretchGlobalPoint(e, n) {
11451
11451
  const o = new Set(this.target.nodes), s = !M.pressMeta(e);
@@ -11671,7 +11671,7 @@ class Ni extends dn {
11671
11671
  ];
11672
11672
  }
11673
11673
  }
11674
- class Uh extends zs {
11674
+ class Uh extends Os {
11675
11675
  constructor() {
11676
11676
  super(...arguments);
11677
11677
  p(this, "handlers", [
@@ -12599,7 +12599,7 @@ class Xi {
12599
12599
  }
12600
12600
  }
12601
12601
  }
12602
- class Oi extends Xi {
12602
+ class zi extends Xi {
12603
12603
  constructor() {
12604
12604
  super(...arguments);
12605
12605
  p(this, "propsHandler", [new Ri(), new Ei(), new Hi()]);
@@ -12608,7 +12608,7 @@ class Oi extends Xi {
12608
12608
  class Fs {
12609
12609
  constructor() {
12610
12610
  p(this, "copyWorker", new Ys());
12611
- p(this, "pasteWorker", new Oi());
12611
+ p(this, "pasteWorker", new zi());
12612
12612
  }
12613
12613
  work(t, e) {
12614
12614
  var d;
@@ -12704,7 +12704,7 @@ class Fs {
12704
12704
  return null;
12705
12705
  }
12706
12706
  }
12707
- class zi extends Ws {
12707
+ class Oi extends Ws {
12708
12708
  enable(t) {
12709
12709
  return t.type === v.Group;
12710
12710
  }
@@ -12805,10 +12805,10 @@ class Jh extends lt {
12805
12805
  p(this, "alignWorker", new Pn());
12806
12806
  p(this, "layoutWorker", new vn());
12807
12807
  p(this, "duplicateWorker", new Fs());
12808
- p(this, "groupBaseWorker", new tn());
12808
+ p(this, "groupBaseWorker", new en());
12809
12809
  p(this, "handlerCtx", new Wi([
12810
12810
  new Ai(),
12811
- new zi(),
12811
+ new Oi(),
12812
12812
  new Bi()
12813
12813
  ]));
12814
12814
  }
@@ -12842,7 +12842,7 @@ class Jh extends lt {
12842
12842
  return n;
12843
12843
  }
12844
12844
  onStart(e, n) {
12845
- n.actionManager.execAction(new z()), this.targetNodes = this.computeMoveNodes(e, n), this.targetNodes.length !== 0 && (this.lastPos = e.globalPoint.clone(), this.moveRect = n.auxiliaryManager.selectManager.getSelectBounds(), this.lastMoveRectPos = new m(this.moveRect.minX, this.moveRect.minY), n.inputManager.editTextInfo && n.execAction(J.blur(n.inputManager.editTextInfo.node.id)), this.groupBaseWorker.start(this.targetNodes));
12845
+ n.actionManager.execAction(new O()), this.targetNodes = this.computeMoveNodes(e, n), this.targetNodes.length !== 0 && (this.lastPos = e.globalPoint.clone(), this.moveRect = n.auxiliaryManager.selectManager.getSelectBounds(), this.lastMoveRectPos = new m(this.moveRect.minX, this.moveRect.minY), n.inputManager.editTextInfo && n.execAction(J.blur(n.inputManager.editTextInfo.node.id)), this.groupBaseWorker.start(this.targetNodes));
12846
12846
  }
12847
12847
  onMove(e, n) {
12848
12848
  if (n.auxiliaryManager.removeAlignGraphics(), this.targetNodes.length === 0)
@@ -12859,7 +12859,7 @@ class Jh extends lt {
12859
12859
  return s && (i = n.nodeManager.getNode(s.objectId)), r && (a = n.nodeManager.getNode(r.objectId)), i ? !!(!a || o.has(a)) : a ? !!o.has(a) : !1;
12860
12860
  }
12861
12861
  onUp(e, n) {
12862
- this.targetNodes.length !== 0 && (this.moveNode(e, n, !1), this.changeNodesRelation(e, n), n.actionManager.execAction(new O()), n.auxiliaryManager.removeAlignGraphics());
12862
+ this.targetNodes.length !== 0 && (this.moveNode(e, n, !1), this.changeNodesRelation(e, n), n.actionManager.execAction(new z()), n.auxiliaryManager.removeAlignGraphics());
12863
12863
  }
12864
12864
  changeNodesRelation(e, n) {
12865
12865
  const o = this.hoverOnContainer(e, n) || n.nodeManager.root, s = n.getSelectNodes(), r = /* @__PURE__ */ new Set();
@@ -12980,7 +12980,7 @@ class od extends lt {
12980
12980
  p(this, "handlers", [new td(), new nd()]);
12981
12981
  }
12982
12982
  onStart(e, n) {
12983
- this.startPoint = e.globalPoint, n.actionManager.execAction(new z()), n.inputManager.editTextInfo && n.execAction(J.blur(n.inputManager.editTextInfo.node.id)), n.actionManager.execAction(xe.create([]));
12983
+ this.startPoint = e.globalPoint, n.actionManager.execAction(new O()), n.inputManager.editTextInfo && n.execAction(J.blur(n.inputManager.editTextInfo.node.id)), n.actionManager.execAction(xe.create([]));
12984
12984
  }
12985
12985
  onMove(e, n) {
12986
12986
  if (!this.startPoint)
@@ -13001,7 +13001,7 @@ class od extends lt {
13001
13001
  n.actionManager.execAction(xe.create(g));
13002
13002
  }
13003
13003
  onUp(e, n) {
13004
- n.actionManager.execAction(new O()), n.removeAuxGraphic(N.SelectGroup), this.startPoint = null;
13004
+ n.actionManager.execAction(new z()), n.removeAuxGraphic(N.SelectGroup), this.startPoint = null;
13005
13005
  }
13006
13006
  }
13007
13007
  class Fi extends pt {
@@ -13023,25 +13023,25 @@ class Yo {
13023
13023
  const e = t.getSelectNodes();
13024
13024
  if (e.size === 0)
13025
13025
  return;
13026
- t.execAction(new z());
13026
+ t.execAction(new O());
13027
13027
  const n = M.sortGraphics([...e]).reverse();
13028
13028
  for (const o of n) {
13029
13029
  const s = this.moveNodeForward(o);
13030
13030
  s && t.execAction(s);
13031
13031
  }
13032
- t.execAction(new O());
13032
+ t.execAction(new z());
13033
13033
  }
13034
13034
  moveBackward(t) {
13035
13035
  const e = t.getSelectNodes();
13036
13036
  if (e.size === 0)
13037
13037
  return;
13038
- t.execAction(new z());
13038
+ t.execAction(new O());
13039
13039
  const n = M.sortGraphics([...e]);
13040
13040
  for (const o of n) {
13041
13041
  const s = this.moveNodeBackward(o);
13042
13042
  s && t.execAction(s);
13043
13043
  }
13044
- t.execAction(new O());
13044
+ t.execAction(new z());
13045
13045
  }
13046
13046
  moveToUp(t) {
13047
13047
  const e = t.getSelectNodes();
@@ -13052,12 +13052,12 @@ class Yo {
13052
13052
  const s = o.parent, r = n.get(s);
13053
13053
  r ? r.push(o) : n.set(s, [o]);
13054
13054
  }
13055
- t.execAction(new z());
13055
+ t.execAction(new O());
13056
13056
  for (const [o, s] of n) {
13057
13057
  const r = this.moveNodesToUp(s, o);
13058
13058
  r && t.execAction(r);
13059
13059
  }
13060
- t.execAction(new O());
13060
+ t.execAction(new z());
13061
13061
  }
13062
13062
  moveToBack(t) {
13063
13063
  const e = t.getSelectNodes();
@@ -13068,12 +13068,12 @@ class Yo {
13068
13068
  const s = o.parent, r = n.get(s);
13069
13069
  r ? r.push(o) : n.set(s, [o]);
13070
13070
  }
13071
- t.execAction(new z());
13071
+ t.execAction(new O());
13072
13072
  for (const [o, s] of n) {
13073
13073
  const r = this.moveNodesToBack(s, o);
13074
13074
  r && t.execAction(r);
13075
13075
  }
13076
- t.execAction(new O());
13076
+ t.execAction(new z());
13077
13077
  }
13078
13078
  moveNodesToUp(t, e) {
13079
13079
  if (t.length === 0)
@@ -13248,7 +13248,7 @@ class Gi extends Je {
13248
13248
  if (!this.node)
13249
13249
  return;
13250
13250
  const s = [...M.computeSelectNode(n, this.node)].map((r) => r.id);
13251
- n.actionManager.execAction(new z()), un.blurText(n), n.actionManager.execAction(xe.create([...s])), n.actionManager.execAction(new O());
13251
+ n.actionManager.execAction(new O()), un.blurText(n), n.actionManager.execAction(xe.create([...s])), n.actionManager.execAction(new z());
13252
13252
  }
13253
13253
  }
13254
13254
  class Ui extends Je {
@@ -13264,7 +13264,7 @@ class Ui extends Je {
13264
13264
  return s ? n.auxiliaryManager.selectManager.include(s) || !this.canEnable(s) ? !1 : (this.node = s, !0) : !1;
13265
13265
  }
13266
13266
  handle(e, n) {
13267
- this.node && (n.actionManager.execAction(new z()), un.blurText(n), n.actionManager.execAction(xe.create([this.node.id])), n.actionManager.execAction(new O()), this.node.type === v.IMG && n.setCursor("zoom-in"));
13267
+ this.node && (n.actionManager.execAction(new O()), un.blurText(n), n.actionManager.execAction(xe.create([this.node.id])), n.actionManager.execAction(new z()), this.node.type === v.IMG && n.setCursor("zoom-in"));
13268
13268
  }
13269
13269
  }
13270
13270
  class $i extends Ui {
@@ -13303,13 +13303,13 @@ class sd extends Je {
13303
13303
  if (!this.res)
13304
13304
  return;
13305
13305
  const { node: o, relativePos: s } = this.res, r = o.renderText.detect(s);
13306
- this.shiftTextClick(e, n, r) || (n.execAction(new z()), n.execAction(J.focus(o.id, r)), n.execAction(new O()));
13306
+ this.shiftTextClick(e, n, r) || (n.execAction(new O()), n.execAction(J.focus(o.id, r)), n.execAction(new z()));
13307
13307
  }
13308
13308
  shiftTextClick(e, n, o) {
13309
13309
  if (!e.originEvent.shiftKey)
13310
13310
  return !1;
13311
13311
  const s = n.inputManager.editTextInfo, { node: r } = this.res;
13312
- return s && !n.inputManager.selectionManager.selectionInfo && !s.textCursorPosition.equal(o) ? (n.execAction(new z()), n.execAction(J.selection(r.id, o, s.textCursorPosition)), n.execAction(new O()), !0) : !1;
13312
+ return s && !n.inputManager.selectionManager.selectionInfo && !s.textCursorPosition.equal(o) ? (n.execAction(new O()), n.execAction(J.selection(r.id, o, s.textCursorPosition)), n.execAction(new z()), !0) : !1;
13313
13313
  }
13314
13314
  }
13315
13315
  class _i extends Je {
@@ -13332,7 +13332,7 @@ class _i extends Je {
13332
13332
  if (!this.node)
13333
13333
  return;
13334
13334
  const o = n.getSelectNodes(), s = /* @__PURE__ */ new Set();
13335
- o.forEach((r) => s.add(r.id)), s.delete(this.node.id), n.actionManager.execAction(new z()), un.blurText(n), n.actionManager.execAction(xe.create([...s])), n.actionManager.execAction(new O());
13335
+ o.forEach((r) => s.add(r.id)), s.delete(this.node.id), n.actionManager.execAction(new O()), un.blurText(n), n.actionManager.execAction(xe.create([...s])), n.actionManager.execAction(new z());
13336
13336
  }
13337
13337
  }
13338
13338
  class ji extends Je {
@@ -13341,19 +13341,19 @@ class ji extends Je {
13341
13341
  }
13342
13342
  handle(t, e) {
13343
13343
  if (e.getSelectNodes().size === 0) {
13344
- e.slotManager.addSlotState(ze.QuickCreate, {
13344
+ e.slotManager.addSlotState(Oe.QuickCreate, {
13345
13345
  show: !1
13346
13346
  });
13347
13347
  return;
13348
13348
  }
13349
- if (e.execAction(new z()), e.inputManager.editTextInfo) {
13349
+ if (e.execAction(new O()), e.inputManager.editTextInfo) {
13350
13350
  const n = e.inputManager.editTextInfo.node;
13351
13351
  if (e.execAction(J.blur(e.inputManager.editTextInfo.node.id)), n.type === v.Shape && n.shapeType === V.PureText && n.getProp(I.Text) && n.isEmptyText()) {
13352
- e.execAction(xe.create([])), e.execAction(Dt.create([n.id])), e.execAction(new O());
13352
+ e.execAction(xe.create([])), e.execAction(Dt.create([n.id])), e.execAction(new z());
13353
13353
  return;
13354
13354
  }
13355
13355
  }
13356
- e.execAction(xe.create([])), e.execAction(new O());
13356
+ e.execAction(xe.create([])), e.execAction(new z());
13357
13357
  }
13358
13358
  }
13359
13359
  class rd extends Je {
@@ -13381,9 +13381,9 @@ class rd extends Je {
13381
13381
  }
13382
13382
  ]
13383
13383
  };
13384
- n.execAction(new z()), un.blurText(n), n.execAction(new G(r));
13384
+ n.execAction(new O()), un.blurText(n), n.execAction(new G(r));
13385
13385
  const i = [...n.nodeManager.getNodeLinks(o)];
13386
- this.layoutWorker.work(i, n, !1), n.execAction(new O());
13386
+ this.layoutWorker.work(i, n, !1), n.execAction(new z());
13387
13387
  }
13388
13388
  }
13389
13389
  class Vi extends Ui {
@@ -13410,7 +13410,7 @@ class id extends Je {
13410
13410
  fileKey: o,
13411
13411
  blobUrl: n.resourceManager.getBlobUrl(o)
13412
13412
  };
13413
- n.slotManager.addSlotState(ze.ClickImg, s);
13413
+ n.slotManager.addSlotState(Oe.ClickImg, s);
13414
13414
  }
13415
13415
  getFileKey(e) {
13416
13416
  return e.type === v.SVG ? e.svgUrl : e.type === v.IMG ? e.imgSrc : "";
@@ -13419,7 +13419,7 @@ class id extends Je {
13419
13419
  class Ki {
13420
13420
  checkbox(t, e, n) {
13421
13421
  const o = t.checkStatus;
13422
- n.execAction(new z()), un.blurText(n), n.execAction(
13422
+ n.execAction(new O()), un.blurText(n), n.execAction(
13423
13423
  G.create(t.id, [
13424
13424
  {
13425
13425
  type: I.CheckStatus,
@@ -13433,7 +13433,7 @@ class Ki {
13433
13433
  strikethrough: !o
13434
13434
  }
13435
13435
  ])
13436
- ), n.execAction(new O());
13436
+ ), n.execAction(new z());
13437
13437
  }
13438
13438
  }
13439
13439
  const ad = /* @__PURE__ */ new Set([v.Checkbox, v.CheckboxText]);
@@ -13466,9 +13466,9 @@ class ld extends Je {
13466
13466
  if (!a || !a.ids || a.ids.length === 0)
13467
13467
  return;
13468
13468
  const c = this.getGlobalIndex(i, s, r > 0 ? r - 1 : 0), h = r > 0;
13469
- e.execAction(new z());
13469
+ e.execAction(new O());
13470
13470
  const d = e.slideManager.insertSlide(o, c, h, e);
13471
- d && e.execAction(xe.create([d.id])), e.execAction(new O());
13471
+ d && e.execAction(xe.create([d.id])), e.execAction(new z());
13472
13472
  }
13473
13473
  /**
13474
13474
  * 将行列位置转换为展平的全局索引
@@ -13496,7 +13496,7 @@ class hd extends Je {
13496
13496
  if (!n)
13497
13497
  return;
13498
13498
  const { slideContainer: o, rect: s } = n;
13499
- e.execAction(new z());
13499
+ e.execAction(new O());
13500
13500
  const r = Fo[Dn.S16_9], i = r.width, a = r.height, d = [
13501
13501
  re.create({
13502
13502
  x: tt,
@@ -13533,10 +13533,10 @@ class hd extends Je {
13533
13533
  height: b
13534
13534
  }
13535
13535
  ]
13536
- }), e.execAction(new G({ infos: x })), e.execAction(xe.create([u])), e.execAction(new O());
13536
+ }), e.execAction(new G({ infos: x })), e.execAction(xe.create([u])), e.execAction(new z());
13537
13537
  }
13538
13538
  }
13539
- class dd extends en {
13539
+ class dd extends Jt {
13540
13540
  constructor() {
13541
13541
  super(), this.registerDownHandler(new hd()), this.registerDownHandler(new ld()), this.registerDownHandler(new rd()), this.registerDownHandler(new Gi()), this.registerDownHandler(new $i()), this.registerUpHandler(new _i()), this.registerUpHandler(new Vi()), this.registerUpHandler(new sd()), this.registerUpHandler(new cd()), this.registerUpHandler(new id()), this.registerUpHandler(new ji());
13542
13542
  }
@@ -13681,7 +13681,7 @@ class gd {
13681
13681
  this.nodeManager = t, this.inputManager = e, this.slotManager = n, this.cursorManager = o;
13682
13682
  }
13683
13683
  setCurrentTool(t, e = 0, n = !1) {
13684
- this.currentTool = t, this.shapeType = e, this.grab = n, this.slotManager.addSlotState(ze.ToolChange, { tool: t, shapeType: e }), t === ge.DEFAULT && this.cursorManager.setCursor("default");
13684
+ this.currentTool = t, this.shapeType = e, this.grab = n, this.slotManager.addSlotState(Oe.ToolChange, { tool: t, shapeType: e }), t === ge.DEFAULT && this.cursorManager.setCursor("default");
13685
13685
  }
13686
13686
  resetTool() {
13687
13687
  this.creatingLine || this.setCurrentTool(ge.DEFAULT);
@@ -13943,7 +13943,7 @@ class Ad extends dn {
13943
13943
  return [];
13944
13944
  }
13945
13945
  }
13946
- class Bd extends zs {
13946
+ class Bd extends Os {
13947
13947
  constructor() {
13948
13948
  super(...arguments);
13949
13949
  p(this, "handlers", [
@@ -14157,7 +14157,7 @@ class Hd extends Us {
14157
14157
  class Dd extends Us {
14158
14158
  constructor() {
14159
14159
  super(...arguments);
14160
- p(this, "bezierWorker", new Oo());
14160
+ p(this, "bezierWorker", new zo());
14161
14161
  }
14162
14162
  enable(e) {
14163
14163
  return e.shapeType === de.Curve;
@@ -14276,7 +14276,7 @@ class Xd extends lt {
14276
14276
  p(this, "res", null);
14277
14277
  p(this, "connectEndProp");
14278
14278
  p(this, "alignWorker", new Pn());
14279
- p(this, "groupBaseWorker", new tn());
14279
+ p(this, "groupBaseWorker", new en());
14280
14280
  p(this, "lineTextWorker", new Vn());
14281
14281
  p(this, "handlers", [
14282
14282
  new Ed(),
@@ -14305,7 +14305,7 @@ class Xd extends lt {
14305
14305
  }
14306
14306
  }
14307
14307
  onStart(e, n) {
14308
- this.computeConnectProp(e, n), this.selectHandler(), n.execAction(new z()), this.removeConnectInfoAndSendMsg(e, n), this.groupBaseWorker.start([this.res.line]), this.lineTextWorker.init(this.res.line);
14308
+ this.computeConnectProp(e, n), this.selectHandler(), n.execAction(new O()), this.removeConnectInfoAndSendMsg(e, n), this.groupBaseWorker.start([this.res.line]), this.lineTextWorker.init(this.res.line);
14309
14309
  }
14310
14310
  onMove(e, n) {
14311
14311
  if (!this.res)
@@ -14317,7 +14317,7 @@ class Xd extends lt {
14317
14317
  if (!this.res)
14318
14318
  return;
14319
14319
  const o = this.addConnectInfoAndSendMsg(e, n), s = this.getConnectInfo(e, n), r = this.currentHandler.handleUp(s, this.res, n, o);
14320
- n.execAction(new G({ infos: [r] }, { streaming: !1 })), this.lineTextWorker.work(this.res.line, n, !1), this.groupBaseWorker.work(n, !1), n.execAction(new O());
14320
+ n.execAction(new G({ infos: [r] }, { streaming: !1 })), this.lineTextWorker.work(this.res.line, n, !1), this.groupBaseWorker.work(n, !1), n.execAction(new z());
14321
14321
  }
14322
14322
  getConnectInfo(e, n) {
14323
14323
  const o = this.res.line, s = this.res.isStart, r = M.dealWithShiftLineInteractEvent(e, o, !s), i = !M.pressMeta(e), c = {
@@ -14396,7 +14396,7 @@ class _o {
14396
14396
  });
14397
14397
  }
14398
14398
  }
14399
- class Od extends pt {
14399
+ class zd extends pt {
14400
14400
  constructor() {
14401
14401
  super(
14402
14402
  [new Xd()],
@@ -14412,7 +14412,7 @@ class jo {
14412
14412
  t ? (e.y = o.y, n.y = o.y) : (e.x = o.x, n.x = o.x);
14413
14413
  }
14414
14414
  }
14415
- class zd extends jo {
14415
+ class Od extends jo {
14416
14416
  enable(t) {
14417
14417
  const { rIndex: e, lIndex: n, line: o } = t, s = [...o.points];
14418
14418
  return n > 0 && e < s.length - 1;
@@ -14500,7 +14500,7 @@ class Gd extends lt {
14500
14500
  super(...arguments);
14501
14501
  p(this, "res");
14502
14502
  p(this, "handlers", [
14503
- new zd(),
14503
+ new Od(),
14504
14504
  new Wd(),
14505
14505
  new Yd(),
14506
14506
  new Fd()
@@ -14508,7 +14508,7 @@ class Gd extends lt {
14508
14508
  p(this, "lineTextWorker", new Vn());
14509
14509
  }
14510
14510
  onStart(e, n) {
14511
- this.res = n.detect(W.PolyControlPoint, e), n.execAction(new z()), this.lineTextWorker.init(this.res.line);
14511
+ this.res = n.detect(W.PolyControlPoint, e), n.execAction(new O()), this.lineTextWorker.init(this.res.line);
14512
14512
  }
14513
14513
  onMove(e, n) {
14514
14514
  const { line: o } = this.res, s = this.computeLinePoints(e, n), r = D.rectNode2Rect(M.getBoundsByPoints(s)), i = {
@@ -14550,7 +14550,7 @@ class Gd extends lt {
14550
14550
  }
14551
14551
  ]
14552
14552
  };
14553
- n.execAction(new G(c, { streaming: !1 })), this.lineTextWorker.work(this.res.line, n, !1), n.execAction(new O());
14553
+ n.execAction(new G(c, { streaming: !1 })), this.lineTextWorker.work(this.res.line, n, !1), n.execAction(new z());
14554
14554
  }
14555
14555
  computeLinePoints(e, n) {
14556
14556
  for (const o of this.handlers)
@@ -14617,7 +14617,7 @@ class $d extends lt {
14617
14617
  parentId: "",
14618
14618
  props: s
14619
14619
  };
14620
- n.actionManager.execAction(new z());
14620
+ n.actionManager.execAction(new O());
14621
14621
  const b = Le.create(P);
14622
14622
  n.actionManager.execAction(b), this.target = n.nodeManager.nodeMap.get(x), n.actionManager.execAction(xe.create([this.target.id])), n.setCursor("crosshair");
14623
14623
  }
@@ -14687,9 +14687,9 @@ class $d extends lt {
14687
14687
  show: !0,
14688
14688
  lineId: this.target.id
14689
14689
  };
14690
- n.slotManager.addSlotState(ze.QuickCreate, d);
14690
+ n.slotManager.addSlotState(Oe.QuickCreate, d);
14691
14691
  }
14692
- n.execAction(new O()), n.setCursor("default");
14692
+ n.execAction(new z()), n.setCursor("default");
14693
14693
  }
14694
14694
  }
14695
14695
  class _d extends pt {
@@ -14789,7 +14789,7 @@ class Zd extends lt {
14789
14789
  p(this, "matrix", se.generateMatrix());
14790
14790
  p(this, "reverseMatrix", se.generateMatrix());
14791
14791
  p(this, "layoutWorker", new vn());
14792
- p(this, "groupBaseWorker", new tn());
14792
+ p(this, "groupBaseWorker", new en());
14793
14793
  p(this, "handlers", [new Vd(), new Qd(), new Kd()]);
14794
14794
  }
14795
14795
  onStart(e, n) {
@@ -14797,13 +14797,13 @@ class Zd extends lt {
14797
14797
  const o = Qe.trimPoint(e.globalPoint), s = this.rotateInfo.rotateCenter, r = this.rotateInfo.nodes;
14798
14798
  r.length === 1 ? this.originNodeAngle = r[0].baseProps.angle : this.originNodeAngle = 0, this.lastAngle = Qe.calculateAngle(s, o), this.originAngle = this.lastAngle;
14799
14799
  const i = se.generateMatrix().translate(-s.x, -s.y);
14800
- this.matrix = i, this.reverseMatrix = i.inverseMatrix(), n.actionManager.execAction(new z()), n.inputManager.editTextInfo && n.execAction(J.blur(n.inputManager.editTextInfo.node.id)), this.groupBaseWorker.start(this.rotateInfo.nodes);
14800
+ this.matrix = i, this.reverseMatrix = i.inverseMatrix(), n.actionManager.execAction(new O()), n.inputManager.editTextInfo && n.execAction(J.blur(n.inputManager.editTextInfo.node.id)), this.groupBaseWorker.start(this.rotateInfo.nodes);
14801
14801
  }
14802
14802
  onMove(e, n) {
14803
14803
  this.rotateNode(e, n, !0), this.removeAuxiliaryGraphics(n);
14804
14804
  }
14805
14805
  onUp(e, n) {
14806
- this.rotateNode(e, n, !1), n.auxiliaryManager.selectManager.refreshSelectStatus(), n.setCursor("default"), n.actionManager.execAction(new O()), this.rotateInfo = null;
14806
+ this.rotateNode(e, n, !1), n.auxiliaryManager.selectManager.refreshSelectStatus(), n.setCursor("default"), n.actionManager.execAction(new z()), this.rotateInfo = null;
14807
14807
  }
14808
14808
  removeAuxiliaryGraphics(e) {
14809
14809
  e.removeAuxGraphic(N.HighlightRects), e.removeAuxGraphic(N.MultiSelectBound), e.removeAuxGraphic(N.SingleSelectBound), e.removeAuxGraphic(N.StretchRect), e.removeAuxGraphic(N.ExpandShape), e.removeAuxGraphic(N.SelectConnectAnchor);
@@ -15024,9 +15024,9 @@ class Jd extends Je {
15024
15024
  */
15025
15025
  handleCreateLineAndLink(e, n, o) {
15026
15026
  const s = o.detect(W.HoverConnectAnchor, n), r = s.node, i = s.relative;
15027
- o.execAction(new z());
15027
+ o.execAction(new O());
15028
15028
  const a = this.handleCreateLine(r, i, e, o);
15029
- o.execAction(xe.create([a])), un.blurText(o), o.execAction(new O());
15029
+ o.execAction(xe.create([a])), un.blurText(o), o.execAction(new z());
15030
15030
  }
15031
15031
  /**
15032
15032
  * 创建节点和连线,同时连接
@@ -15035,7 +15035,7 @@ class Jd extends Je {
15035
15035
  */
15036
15036
  handleCreateNode(e, n) {
15037
15037
  const o = n.detect(W.HoverConnectAnchor, e), s = o.node, r = o.relative, i = this.createWorker.computePreviewNodePos(s, r, n), a = this.isParentRoot(s, i, n), c = this.makeupNodeProps(s, i, a), h = n.idGenerator.genId(v.Shape);
15038
- n.execAction(new z()), n.execAction(
15038
+ n.execAction(new O()), n.execAction(
15039
15039
  Le.create({
15040
15040
  id: h,
15041
15041
  zIndex: ve.genZIndex(n.nodeManager.root),
@@ -15052,7 +15052,7 @@ class Jd extends Je {
15052
15052
  );
15053
15053
  } else
15054
15054
  n.execAction(J.focus(h));
15055
- n.execAction(new O());
15055
+ n.execAction(new z());
15056
15056
  }
15057
15057
  makeupNodeProps(e, n, o) {
15058
15058
  const s = e.baseProps, r = e.shapeType;
@@ -15099,7 +15099,7 @@ class Jd extends Je {
15099
15099
  ];
15100
15100
  }
15101
15101
  }
15102
- class eu extends en {
15102
+ class eu extends Jt {
15103
15103
  constructor() {
15104
15104
  super(), this.registerUpHandler(new Jd());
15105
15105
  }
@@ -15131,7 +15131,7 @@ class oa extends Je {
15131
15131
  if (this.group) {
15132
15132
  for (const o of this.group.children)
15133
15133
  if (o.contains(e.globalPoint)) {
15134
- n.execAction(new z()), n.execAction(xe.create([o.id])), n.execAction(new O());
15134
+ n.execAction(new O()), n.execAction(xe.create([o.id])), n.execAction(new z());
15135
15135
  return;
15136
15136
  }
15137
15137
  }
@@ -15164,7 +15164,7 @@ class nu extends Je {
15164
15164
  const { node: o, relativePos: s } = this.res;
15165
15165
  if (o.isEmptyText()) {
15166
15166
  const r = o.renderText.detect(s);
15167
- if (n.execAction(new z()), o instanceof kt && o.renderText.isEmptyText()) {
15167
+ if (n.execAction(new O()), o instanceof kt && o.renderText.isEmptyText()) {
15168
15168
  const { height: a } = o.renderText, c = o.baseProps, h = M.computePointByT(o, 0.5), d = h.x - 0.5 * 20, u = h.y - 0.5 * a, f = new D(d, u, 20, a);
15169
15169
  n.execAction(
15170
15170
  G.create(o.id, [
@@ -15182,12 +15182,12 @@ class nu extends Je {
15182
15182
  ])
15183
15183
  );
15184
15184
  }
15185
- n.execAction(J.focus(o.id, r)), n.execAction(new O());
15185
+ n.execAction(J.focus(o.id, r)), n.execAction(new z());
15186
15186
  return;
15187
15187
  }
15188
- n.execAction(new z()), n.execAction(
15188
+ n.execAction(new O()), n.execAction(
15189
15189
  J.selection(o.id, We.head(), o.renderText.tailTextCursorPosition())
15190
- ), n.execAction(new O());
15190
+ ), n.execAction(new z());
15191
15191
  }
15192
15192
  }
15193
15193
  const ou = /* @__PURE__ */ new Set([v.Checkbox, v.CheckboxText]);
@@ -15208,7 +15208,7 @@ class su extends Je {
15208
15208
  this.node && this.checkboxWorker.checkbox(this.node, e, n);
15209
15209
  }
15210
15210
  }
15211
- class ru extends en {
15211
+ class ru extends Jt {
15212
15212
  constructor() {
15213
15213
  super(), this.registerDownHandler(new oa()), this.registerDownHandler(new nu()), this.registerDownHandler(new su());
15214
15214
  }
@@ -15235,25 +15235,25 @@ class au extends Je {
15235
15235
  show: !0,
15236
15236
  hasFocus: n.getSelectNodes().size > 0
15237
15237
  };
15238
- n.slotManager.addSlotState(ze.ContextMenu, i);
15238
+ n.slotManager.addSlotState(Oe.ContextMenu, i);
15239
15239
  return;
15240
15240
  }
15241
15241
  }
15242
15242
  const o = n.detect(W.Node, e);
15243
15243
  if (o && o.length > 0) {
15244
15244
  const r = o[0];
15245
- n.auxiliaryManager.selectManager.include(r) || (n.execAction(new z()), n.execAction(xe.create([r.id])), n.execAction(new O()));
15245
+ n.auxiliaryManager.selectManager.include(r) || (n.execAction(new O()), n.execAction(xe.create([r.id])), n.execAction(new z()));
15246
15246
  } else
15247
- n.execAction(new z()), n.execAction(xe.create([])), n.execAction(new O());
15247
+ n.execAction(new O()), n.execAction(xe.create([])), n.execAction(new z());
15248
15248
  const s = {
15249
15249
  clientPoint: e.clientPoint,
15250
15250
  show: !0,
15251
15251
  hasFocus: n.getSelectNodes().size > 0
15252
15252
  };
15253
- n.slotManager.addSlotState(ze.ContextMenu, s);
15253
+ n.slotManager.addSlotState(Oe.ContextMenu, s);
15254
15254
  }
15255
15255
  }
15256
- class cu extends en {
15256
+ class cu extends Jt {
15257
15257
  constructor() {
15258
15258
  super(), this.registerUpHandler(new au());
15259
15259
  }
@@ -15297,7 +15297,7 @@ class du extends lt {
15297
15297
  constructor() {
15298
15298
  super(...arguments);
15299
15299
  p(this, "line");
15300
- p(this, "bezierWorker", new Oo());
15300
+ p(this, "bezierWorker", new zo());
15301
15301
  p(this, "startPoint");
15302
15302
  p(this, "endPoint");
15303
15303
  p(this, "leftPoints", []);
@@ -15310,7 +15310,7 @@ class du extends lt {
15310
15310
  const { lP: c, rP: h, midPoint: d } = this.bezierWorker.splitCurve(i), u = JSON.parse(JSON.stringify(o.points));
15311
15311
  this.leftPoints = u.slice(0, a), this.rightPoints = u.slice(a + 4);
15312
15312
  const g = 0.4 * M.distance(this.startPoint, e.globalPoint), x = new m(this.startPoint.x + g, this.startPoint.y), P = i.p3, w = 0.4 * M.distance(P, d), T = new m(P.x - w, P.y), A = [...this.leftPoints, s, x, c, d, h, T, r, ...this.rightPoints];
15313
- this.lineTextWorker.init(o), n.execAction(new z());
15313
+ this.lineTextWorker.init(o), n.execAction(new O());
15314
15314
  const E = this.bezierWorker.computeCurvePointsForLine(o, n.nodeManager, A);
15315
15315
  n.execAction(
15316
15316
  G.create(this.line.id, [{ type: I.Line, points: E }])
@@ -15320,7 +15320,7 @@ class du extends lt {
15320
15320
  this.onWork(e, n, !0);
15321
15321
  }
15322
15322
  onUp(e, n) {
15323
- this.onWork(e, n, !1), n.execAction(new O());
15323
+ this.onWork(e, n, !1), n.execAction(new z());
15324
15324
  }
15325
15325
  onWork(e, n, o) {
15326
15326
  const s = e.globalPoint, i = 0.4 * M.distance(this.startPoint, s), a = new m(this.startPoint.x + i, this.startPoint.y), c = this.endPoint, d = 0.4 * M.distance(c, e.globalPoint), u = new m(c.x - d, c.y), { lP: f, rP: g, midPoint: x } = this.bezierWorker.computeCurveControlPoint(a, s, u), P = this.startPoint, b = this.endPoint, w = [...this.leftPoints, P, a, f, x, g, u, b, ...this.rightPoints], T = this.bezierWorker.computeCurvePointsForLine(this.line, n.nodeManager, w);
@@ -15344,18 +15344,18 @@ class pu extends lt {
15344
15344
  super(...arguments);
15345
15345
  p(this, "line");
15346
15346
  p(this, "dragIndex");
15347
- p(this, "bezierWorker", new Oo());
15347
+ p(this, "bezierWorker", new zo());
15348
15348
  p(this, "lineTextWorker", new Vn());
15349
15349
  }
15350
15350
  onStart(e, n) {
15351
15351
  const { line: o, index: s } = n.detect(W.CurveEndPoint, e);
15352
- this.line = o, this.dragIndex = s, n.execAction(new z()), this.lineTextWorker.init(o);
15352
+ this.line = o, this.dragIndex = s, n.execAction(new O()), this.lineTextWorker.init(o);
15353
15353
  }
15354
15354
  onMove(e, n) {
15355
15355
  this.onWork(e, n, !0);
15356
15356
  }
15357
15357
  onUp(e, n) {
15358
- this.onWork(e, n, !1), n.execAction(new O());
15358
+ this.onWork(e, n, !1), n.execAction(new z());
15359
15359
  }
15360
15360
  onWork(e, n, o) {
15361
15361
  const s = this.line, r = [...s.points];
@@ -15518,13 +15518,13 @@ class wu extends lt {
15518
15518
  }
15519
15519
  onStart(e, n) {
15520
15520
  const { line: o } = n.detect(W.DragLineText, e);
15521
- this.line = o, this.selectHandler(o), n.execAction(new z());
15521
+ this.line = o, this.selectHandler(o), n.execAction(new O());
15522
15522
  }
15523
15523
  onMove(e, n) {
15524
15524
  this.onWork(e, n, !0);
15525
15525
  }
15526
15526
  onUp(e, n) {
15527
- this.onWork(e, n, !1), n.execAction(new O());
15527
+ this.onWork(e, n, !1), n.execAction(new z());
15528
15528
  }
15529
15529
  onWork(e, n, o) {
15530
15530
  if (!this.currentHandler)
@@ -15612,7 +15612,7 @@ class Pu extends lt {
15612
15612
  const i = /* @__PURE__ */ new Set();
15613
15613
  M.getAllChildren(s, i);
15614
15614
  const a = M.sortGraphics([s, ...i]);
15615
- this.originDragNodes = a, this.computeRowNodes(n), n.execAction(new z());
15615
+ this.originDragNodes = a, this.computeRowNodes(n), n.execAction(new O());
15616
15616
  }
15617
15617
  onMove(e, n) {
15618
15618
  const o = e.globalPoint, s = this.originPos, r = o.x - s.x, i = o.y - s.y;
@@ -15842,7 +15842,7 @@ class Pu extends lt {
15842
15842
  ],
15843
15843
  { streaming: !1 }
15844
15844
  )
15845
- ), n.execAction(new O());
15845
+ ), n.execAction(new z());
15846
15846
  return;
15847
15847
  }
15848
15848
  const c = this.dragNode.parent.slideProps.children.map((g) => ({
@@ -15878,7 +15878,7 @@ class Pu extends lt {
15878
15878
  ])
15879
15879
  );
15880
15880
  }
15881
- n.execAction(new O());
15881
+ n.execAction(new z());
15882
15882
  }
15883
15883
  }
15884
15884
  class bu extends pt {
@@ -15905,7 +15905,7 @@ class Mu extends Mn {
15905
15905
  new _d(),
15906
15906
  new Ud(),
15907
15907
  new uu(),
15908
- new Od(),
15908
+ new zd(),
15909
15909
  new fu(),
15910
15910
  new mu(),
15911
15911
  // new ConnectLineMode(),
@@ -16040,7 +16040,7 @@ class js extends lt {
16040
16040
  parentId: s.id,
16041
16041
  props: c
16042
16042
  };
16043
- n.actionManager.execAction(new z());
16043
+ n.actionManager.execAction(new O());
16044
16044
  const d = Le.create(h);
16045
16045
  n.actionManager.execAction(d), this.target = n.nodeManager.nodeMap.get(a);
16046
16046
  const u = D.baseProps2Rect(this.target.baseProps);
@@ -16098,7 +16098,7 @@ class js extends lt {
16098
16098
  const d = [r];
16099
16099
  this.dealWithUpUpdateProps(h, d);
16100
16100
  const u = G.create(this.target.id, d);
16101
- n.actionManager.execAction(u), n.actionManager.execAction(xe.create([this.target.id])), this.autoFocus() && n.actionManager.execAction(J.focus(this.target.id)), n.actionManager.execAction(new O()), this.target = null, n.toolManager.resetTool(), n.removeAuxGraphic(N.CreateRectBound), n.auxiliaryManager.removeAlignGraphics(), n.setCursor("default");
16101
+ n.actionManager.execAction(u), n.actionManager.execAction(xe.create([this.target.id])), this.autoFocus() && n.actionManager.execAction(J.focus(this.target.id)), n.actionManager.execAction(new z()), this.target = null, n.toolManager.resetTool(), n.removeAuxGraphic(N.CreateRectBound), n.auxiliaryManager.removeAlignGraphics(), n.setCursor("default");
16102
16102
  }
16103
16103
  dealWithUpUpdateProps(e, n) {
16104
16104
  }
@@ -16226,9 +16226,9 @@ class Au extends Je {
16226
16226
  parentId: r.id,
16227
16227
  props: a
16228
16228
  };
16229
- n.actionManager.execAction(new z());
16229
+ n.actionManager.execAction(new O());
16230
16230
  const h = Le.create(c);
16231
- n.actionManager.execAction(h), n.actionManager.execAction(xe.create([o])), n.actionManager.execAction(J.focus(o)), n.actionManager.execAction(new O()), n.toolManager.resetTool();
16231
+ n.actionManager.execAction(h), n.actionManager.execAction(xe.create([o])), n.actionManager.execAction(J.focus(o)), n.actionManager.execAction(new z()), n.toolManager.resetTool();
16232
16232
  }
16233
16233
  makeupDefaultProps(e) {
16234
16234
  return [
@@ -16266,10 +16266,10 @@ class Bu extends Je {
16266
16266
  return;
16267
16267
  n.toolManager.resetTool();
16268
16268
  const { node: o, relativePos: s } = this.res, r = o.renderText.detect(s);
16269
- n.execAction(new z()), n.execAction(xe.create([o.id])), n.execAction(J.focus(o.id, r)), n.execAction(new O());
16269
+ n.execAction(new O()), n.execAction(xe.create([o.id])), n.execAction(J.focus(o.id, r)), n.execAction(new z());
16270
16270
  }
16271
16271
  }
16272
- class Ru extends en {
16272
+ class Ru extends Jt {
16273
16273
  constructor() {
16274
16274
  super(), this.registerUpHandler(new Au()), this.registerUpHandler(new Bu());
16275
16275
  }
@@ -16351,9 +16351,9 @@ class Sn {
16351
16351
  handle(t, e, n) {
16352
16352
  this.makeupAddNodeInfo(t, e, n).then((o) => {
16353
16353
  const s = o.id;
16354
- t.actionManager.execAction(new z());
16354
+ t.actionManager.execAction(new O());
16355
16355
  const r = Le.create(o);
16356
- t.actionManager.execAction(r), t.actionManager.execAction(xe.create([s])), this.autoFocus() && t.actionManager.execAction(J.focus(s)), t.actionManager.execAction(new O()), t.toolManager.resetTool(), t.previewManager.resetPreviewNode(t), t.auxiliaryManager.removeAlignGraphics();
16356
+ t.actionManager.execAction(r), t.actionManager.execAction(xe.create([s])), this.autoFocus() && t.actionManager.execAction(J.focus(s)), t.actionManager.execAction(new z()), t.toolManager.resetTool(), t.previewManager.resetPreviewNode(t), t.auxiliaryManager.removeAlignGraphics();
16357
16357
  });
16358
16358
  }
16359
16359
  detectParentContainer(t, e) {
@@ -16380,7 +16380,7 @@ class Xu extends Sn {
16380
16380
  return !0;
16381
16381
  }
16382
16382
  }
16383
- class Ou extends Sn {
16383
+ class zu extends Sn {
16384
16384
  enable(t) {
16385
16385
  return t === ge.SECTION;
16386
16386
  }
@@ -16398,11 +16398,11 @@ class Ou extends Sn {
16398
16398
  return !1;
16399
16399
  }
16400
16400
  }
16401
- const zu = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
16401
+ const Ou = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
16402
16402
  let Vo = (l = 21) => {
16403
16403
  let t = "", e = crypto.getRandomValues(new Uint8Array(l |= 0));
16404
16404
  for (; l--; )
16405
- t += zu[e[l] & 63];
16405
+ t += Ou[e[l] & 63];
16406
16406
  return t;
16407
16407
  };
16408
16408
  class Vs {
@@ -16411,7 +16411,7 @@ class Vs {
16411
16411
  return { url: a, addNodeInfo: c };
16412
16412
  }
16413
16413
  computeAddSvgNode(t, e, n, o, s = o.nodeManager.root) {
16414
- const r = Zt.trimSvgCode(t), i = [
16414
+ const r = ln.trimSvgCode(t), i = [
16415
16415
  {
16416
16416
  type: I.Base,
16417
16417
  x: n.x,
@@ -16531,7 +16531,7 @@ class ca {
16531
16531
  p(this, "handlers", [
16532
16532
  new Wu(),
16533
16533
  new Xu(),
16534
- new Ou(),
16534
+ new zu(),
16535
16535
  new Gu(),
16536
16536
  new Yu(),
16537
16537
  new Fu(),
@@ -16765,7 +16765,7 @@ class tp extends qe {
16765
16765
  return !1;
16766
16766
  }
16767
16767
  }
16768
- class np extends en {
16768
+ class np extends Jt {
16769
16769
  constructor() {
16770
16770
  super(), this.registerDownHandler(new Gi()), this.registerDownHandler(new $i()), this.registerUpHandler(new _i()), this.registerUpHandler(new Vi()), this.registerUpHandler(new ji());
16771
16771
  }
@@ -16775,7 +16775,7 @@ class op extends bn {
16775
16775
  super([new np()]);
16776
16776
  }
16777
16777
  }
16778
- class sp extends en {
16778
+ class sp extends Jt {
16779
16779
  constructor() {
16780
16780
  super(), this.registerDownHandler(new oa());
16781
16781
  }
@@ -16937,7 +16937,7 @@ class wp extends lt {
16937
16937
  const c = se.generateMatrix().rotate(a.angle), d = se.generateMatrix().translate(i.x, i.y).crossProduct(c);
16938
16938
  this.transform = d.inverseMatrix(), this.lastPoint = this.transform.crossPoint(e.globalPoint);
16939
16939
  const u = new m(a.x, a.y), f = this.transform.crossPoint(u);
16940
- this.stretchRect = new D(f.x, f.y, a.width, a.height), n.execAction(new z());
16940
+ this.stretchRect = new D(f.x, f.y, a.width, a.height), n.execAction(new O());
16941
16941
  }
16942
16942
  onCropNode(e, n, o) {
16943
16943
  const s = this.transform.crossPoint(e.globalPoint), r = new m(s.x - this.lastPoint.x, s.y - this.lastPoint.y);
@@ -17006,7 +17006,7 @@ class wp extends lt {
17006
17006
  return n.width < 10 && (n.width = 10), n.height < 10 && (n.height = 10), e.x < 0 ? (n.x = 0, n.width = e.x + e.width) : e.x + e.width > this.limitBounds.width && (n.width = this.limitBounds.width - e.x), e.y < 0 ? (n.y = 0, n.height = e.y + e.height) : e.y + e.height > this.limitBounds.height && (n.height = this.limitBounds.height - e.y), n;
17007
17007
  }
17008
17008
  onUp(e, n) {
17009
- this.onCropNode(e, n, !1), n.execAction(new O());
17009
+ this.onCropNode(e, n, !1), n.execAction(new z());
17010
17010
  }
17011
17011
  }
17012
17012
  class mp extends pt {
@@ -17042,7 +17042,7 @@ class Pp extends dn {
17042
17042
  ];
17043
17043
  }
17044
17044
  }
17045
- class bp extends zs {
17045
+ class bp extends Os {
17046
17046
  constructor() {
17047
17047
  super(...arguments);
17048
17048
  p(this, "handlers", [new Pp()]);
@@ -17190,13 +17190,13 @@ class Sp extends lt {
17190
17190
  x: o.x,
17191
17191
  y: o.y
17192
17192
  });
17193
- this.dragRect = new D(c.x, c.y, o.width, o.height), this.lastPoint = this.transform.crossPoint(e.globalPoint), n.execAction(new z());
17193
+ this.dragRect = new D(c.x, c.y, o.width, o.height), this.lastPoint = this.transform.crossPoint(e.globalPoint), n.execAction(new O());
17194
17194
  }
17195
17195
  onMove(e, n) {
17196
17196
  this.dragCrop(e, n, !0);
17197
17197
  }
17198
17198
  onUp(e, n) {
17199
- this.dragCrop(e, n, !1), n.execAction(new O());
17199
+ this.dragCrop(e, n, !1), n.execAction(new z());
17200
17200
  }
17201
17201
  dragCrop(e, n, o) {
17202
17202
  const s = this.imgNode.cropProps.cropInfo, r = this.modifyCropBasePos(e, n), i = this.imgNode.parent.toLocal(r), a = [
@@ -17250,7 +17250,7 @@ class co {
17250
17250
  const s = n.cropProps;
17251
17251
  if (!s.cropInfo || s.cropType === xt.None) {
17252
17252
  const { width: r, height: i } = n.baseProps;
17253
- t.execAction(new z()), t.execAction(
17253
+ t.execAction(new O()), t.execAction(
17254
17254
  G.create(n.id, [
17255
17255
  {
17256
17256
  cropType: xt.Rect,
@@ -17263,7 +17263,7 @@ class co {
17263
17263
  type: I.Crop
17264
17264
  }
17265
17265
  ])
17266
- ), t.execAction(new O());
17266
+ ), t.execAction(new z());
17267
17267
  }
17268
17268
  }
17269
17269
  exitCrop(t) {
@@ -17283,7 +17283,7 @@ class co {
17283
17283
  if (!s.cropInfo || s.cropType === xt.None)
17284
17284
  return;
17285
17285
  const r = n.getOriginImageRect(), i = new m(r.x, r.y), a = n.toGlobal(i), c = n.parent.toLocal(a);
17286
- t.execAction(new z()), t.execAction(
17286
+ t.execAction(new O()), t.execAction(
17287
17287
  G.create(n.id, [
17288
17288
  {
17289
17289
  cropType: xt.None,
@@ -17297,7 +17297,7 @@ class co {
17297
17297
  height: r.height
17298
17298
  }
17299
17299
  ])
17300
- ), t.execAction(new O()), t.cropManager.exitCrop(), t.auxiliaryManager.selectManager.refreshSelectStatus();
17300
+ ), t.execAction(new z()), t.cropManager.exitCrop(), t.auxiliaryManager.selectManager.refreshSelectStatus();
17301
17301
  }
17302
17302
  }
17303
17303
  class Ip extends Je {
@@ -17313,10 +17313,10 @@ class Ip extends Je {
17313
17313
  return n.detect(W.ImageOriginBounds, e) ? !1 : !M.rectContains(r, i);
17314
17314
  }
17315
17315
  handle(e, n) {
17316
- this.worker.exitCrop(n), n.auxiliaryManager.slotManager.addSlotState(ze.ExitCrop, !0);
17316
+ this.worker.exitCrop(n), n.auxiliaryManager.slotManager.addSlotState(Oe.ExitCrop, !0);
17317
17317
  }
17318
17318
  }
17319
- class Tp extends en {
17319
+ class Tp extends Jt {
17320
17320
  constructor() {
17321
17321
  super(), this.registerDownHandler(new Ip());
17322
17322
  }
@@ -17386,7 +17386,7 @@ class Ks {
17386
17386
  endType: M.computeNodeConnectEnd(i.relativePos, i.node.baseProps.angle)
17387
17387
  }, r.push(x);
17388
17388
  } else
17389
- r.push(new zt());
17389
+ r.push(new Ot());
17390
17390
  const a = {
17391
17391
  point: new m(t.point.x + 1, t.point.y + 1)
17392
17392
  }, c = this.layoutHandler.layoutToPointsPro(t, a), h = o.globalTransform().inverseMatrix(), d = c.map((x) => h.crossPoint(x)), u = Ve.create(d), f = D.rectNode2Rect(M.getBoundsByPoints(d)), g = re.create({
@@ -17516,7 +17516,7 @@ class Np extends lt {
17516
17516
  parentId: s.id,
17517
17517
  props: r
17518
17518
  };
17519
- n.actionManager.execAction(new z());
17519
+ n.actionManager.execAction(new O());
17520
17520
  const c = Le.create(a);
17521
17521
  n.actionManager.execAction(c), this.target = n.nodeManager.nodeMap.get(i), n.actionManager.execAction(xe.create([this.target.id]));
17522
17522
  }
@@ -17524,7 +17524,7 @@ class Np extends lt {
17524
17524
  this.currentHandler.computeMoveProps(this.startConnectInfo, e, n, this.target);
17525
17525
  }
17526
17526
  onUp(e, n) {
17527
- this.currentHandler.computeUpProps(this.startConnectInfo, e, n, this.target), n.execAction(new O()), n.setCursor("default"), n.toolManager.resetTool();
17527
+ this.currentHandler.computeUpProps(this.startConnectInfo, e, n, this.target), n.execAction(new z()), n.setCursor("default"), n.toolManager.resetTool();
17528
17528
  }
17529
17529
  }
17530
17530
  class Ap extends pt {
@@ -17557,7 +17557,7 @@ class Bp extends Je {
17557
17557
  parentId: "",
17558
17558
  props: s
17559
17559
  };
17560
- n.actionManager.execAction(new z());
17560
+ n.actionManager.execAction(new O());
17561
17561
  const i = Le.create(r);
17562
17562
  n.actionManager.execAction(i);
17563
17563
  const a = n.nodeManager.getNode(o);
@@ -17583,7 +17583,7 @@ class Rp extends Je {
17583
17583
  const o = n.toolManager.creatingLine, s = this.getStartConnectInfo(o, n);
17584
17584
  for (const r of this.handlers)
17585
17585
  r.enable(o.shapeType) && r.computeUpProps(s, e, n, o);
17586
- n.execAction(new O()), n.toolManager.setInCreatingLine(null), n.toolManager.resetTool(), n.setCursor("default");
17586
+ n.execAction(new z()), n.toolManager.setInCreatingLine(null), n.toolManager.resetTool(), n.setCursor("default");
17587
17587
  }
17588
17588
  getStartConnectInfo(e, n) {
17589
17589
  const o = e.points, { start: s } = e.connectProps, r = {
@@ -17599,7 +17599,7 @@ class Rp extends Je {
17599
17599
  return r;
17600
17600
  }
17601
17601
  }
17602
- class Ep extends en {
17602
+ class Ep extends Jt {
17603
17603
  constructor() {
17604
17604
  super(), this.registerDownHandler(new Rp()), this.registerUpHandler(new Bp());
17605
17605
  }
@@ -17640,7 +17640,7 @@ class Dp {
17640
17640
  }
17641
17641
  }
17642
17642
  const Xp = /* @__PURE__ */ new Set([ge.LINE]);
17643
- class Op extends Mn {
17643
+ class zp extends Mn {
17644
17644
  constructor() {
17645
17645
  super([
17646
17646
  /** 创建相关交互 */
@@ -17661,7 +17661,7 @@ class Op extends Mn {
17661
17661
  return Xp.has(e.toolManager.currentTool);
17662
17662
  }
17663
17663
  }
17664
- class zp extends qe {
17664
+ class Op extends qe {
17665
17665
  onDetect(t, e) {
17666
17666
  const n = e.auxiliaryManager.selectManager.selectNodes;
17667
17667
  if (n.size !== 1)
@@ -17835,10 +17835,10 @@ class Xr extends Dh {
17835
17835
  p(this, "detectors", /* @__PURE__ */ new Map([
17836
17836
  [W.Node, new Xh()],
17837
17837
  // [DetectorEnum.Stretch,new OolongStretchDetector()],
17838
- [W.HoverNode, new Oh()],
17838
+ [W.HoverNode, new zh()],
17839
17839
  // [DetectorEnum.ParagraphHead,new ParagraphHeadDetector()],
17840
17840
  [W.PolyControlPoint, new Zu()],
17841
- [W.CurveControlPoint, new zp()],
17841
+ [W.CurveControlPoint, new Op()],
17842
17842
  // [DetectorEnum.CurveControlPoint,new CurveControlPointDetector()],
17843
17843
  // [DetectorEnum.LineEndPoint,new LineEndPointDetector()],
17844
17844
  // [DetectorEnum.ConnectorPoint,new ConnectorPointDetector()],
@@ -17864,7 +17864,7 @@ class Xr extends Dh {
17864
17864
  new fp(),
17865
17865
  new lp(),
17866
17866
  new Cp(),
17867
- new Op(),
17867
+ new zp(),
17868
17868
  new _u(),
17869
17869
  new Mu()
17870
17870
  ]);
@@ -17917,7 +17917,7 @@ const _y = {
17917
17917
  [V.RightKuohao]: "#F98E8B",
17918
17918
  [V.LeftKuohao]: "#F98E8B"
17919
17919
  }, Vy = (l, { x: t, y: e, width: n, height: o }) => l.x >= t && l.x <= t + n && l.y >= e && l.y <= e + o;
17920
- class Ft extends Os {
17920
+ class Ft extends zs {
17921
17921
  enable(t) {
17922
17922
  return t.isPolyLine();
17923
17923
  }
@@ -18079,7 +18079,7 @@ class vn {
18079
18079
  class jp {
18080
18080
  constructor() {
18081
18081
  p(this, "layoutWorker", new vn());
18082
- p(this, "groupBaseWorker", new tn());
18082
+ p(this, "groupBaseWorker", new en());
18083
18083
  }
18084
18084
  work(t, e, n) {
18085
18085
  let o = !1;
@@ -18133,7 +18133,7 @@ class qo {
18133
18133
  p(this, "nextStringBuilder", { text: "" });
18134
18134
  p(this, "currentbuilder", this.prevStringBuilder);
18135
18135
  p(this, "layoutWorker", new vn());
18136
- p(this, "groupBaseWorker", new tn());
18136
+ p(this, "groupBaseWorker", new en());
18137
18137
  p(this, "nodeModifyBaseWorker", new jp());
18138
18138
  p(this, "lineModifyWorker", new Vp());
18139
18139
  }
@@ -18213,7 +18213,7 @@ var Ct = /* @__PURE__ */ ((l) => (l[l.Focus = 0] = "Focus", l[l.Selection = 1] =
18213
18213
  class J extends In {
18214
18214
  constructor() {
18215
18215
  super(...arguments);
18216
- p(this, "type", Oe.TextFocus);
18216
+ p(this, "type", ze.TextFocus);
18217
18217
  }
18218
18218
  static focus(e, n = We.head()) {
18219
18219
  return new J({
@@ -18247,7 +18247,7 @@ class la {
18247
18247
  let a = r;
18248
18248
  for (let c = 0; c < n; c++)
18249
18249
  a = this.cursorMoveWorker.moveLeft(s, a);
18250
- e.execAction(new z()), e.execAction(G.create(o.id, [i])), e.execAction(J.focus(o.id, a)), e.execAction(new O());
18250
+ e.execAction(new O()), e.execAction(G.create(o.id, [i])), e.execAction(J.focus(o.id, a)), e.execAction(new z());
18251
18251
  }
18252
18252
  computeUpdateTextProps(t, e) {
18253
18253
  const { renderText: n, textCursorPosition: o } = t, s = this.deleteText(n, o, e);
@@ -18456,7 +18456,7 @@ class qp {
18456
18456
  return Array.from(this.segmentWorker.segment(t)).map((n) => n.segment);
18457
18457
  }
18458
18458
  }
18459
- const Qy = new qp(), Ee = 16, Ne = 16, Or = [
18459
+ const Qy = new qp(), Ee = 16, Ne = 16, zr = [
18460
18460
  { x: 0, y: 0 },
18461
18461
  { x: Ee, y: 0 },
18462
18462
  { x: Ee, y: Ne },
@@ -18514,7 +18514,7 @@ class rf extends Tn {
18514
18514
  t.arc(s, r, o, 0, 2 * Math.PI), t.stroke();
18515
18515
  }
18516
18516
  }
18517
- const rn = class rn extends hn {
18517
+ const sn = class sn extends hn {
18518
18518
  constructor(e, n) {
18519
18519
  super(e, n);
18520
18520
  p(this, "type", v.Line);
@@ -18523,7 +18523,7 @@ const rn = class rn extends hn {
18523
18523
  p(this, "rArrowMatrix", se.generateMatrix());
18524
18524
  //缓存,避免重复计算
18525
18525
  p(this, "lArrowMatrix", se.generateMatrix());
18526
- this.props.set(I.Base, new re()), this.props.set(I.Border, new ke()), this.props.set(I.Shape, new De()), this.props.set(I.Line, new Ve()), this.props.set(I.Arrow, new at()), this.props.set(I.Connect, new zt()), this.props.set(I.Text, Ge.create({ sizeMode: Ye.autoWidth })), this.props.set(I.LineTextRect, new Ht()), this.props.set(I.TextParagraph, new cn()), this.props.set(I.TextParagraphQuote, new Wt()), this.renderText = new Xo();
18526
+ this.props.set(I.Base, new re()), this.props.set(I.Border, new ke()), this.props.set(I.Shape, new De()), this.props.set(I.Line, new Ve()), this.props.set(I.Arrow, new at()), this.props.set(I.Connect, new Ot()), this.props.set(I.Text, Ge.create({ sizeMode: Ye.autoWidth })), this.props.set(I.LineTextRect, new Ht()), this.props.set(I.TextParagraph, new an()), this.props.set(I.TextParagraphQuote, new Wt()), this.renderText = new Xo();
18527
18527
  }
18528
18528
  get globalPos() {
18529
18529
  const e = this.pos;
@@ -18565,8 +18565,8 @@ const rn = class rn extends hn {
18565
18565
  }
18566
18566
  get drawer() {
18567
18567
  const e = this.shapeType;
18568
- let n = rn.drawerMap.get(e);
18569
- return n || (console.error("取不到drawer,使用line兜底!"), n = rn.drawerMap.get(de.Line)), n;
18568
+ let n = sn.drawerMap.get(e);
18569
+ return n || (console.error("取不到drawer,使用line兜底!"), n = sn.drawerMap.get(de.Line)), n;
18570
18570
  }
18571
18571
  canBeConnected() {
18572
18572
  return !1;
@@ -18615,7 +18615,7 @@ const rn = class rn extends hn {
18615
18615
  }
18616
18616
  }
18617
18617
  getArrowDrawer(e) {
18618
- const n = rn.arrowDrawerMap.get(e);
18618
+ const n = sn.arrowDrawerMap.get(e);
18619
18619
  return n || null;
18620
18620
  }
18621
18621
  draw() {
@@ -18628,10 +18628,10 @@ const rn = class rn extends hn {
18628
18628
  getRectNode() {
18629
18629
  const e = [...this.points], { lArrow: n, rArrow: o } = this.arrowProps;
18630
18630
  if (n)
18631
- for (const c of Or)
18631
+ for (const c of zr)
18632
18632
  e.push(this.lArrowMatrix.crossPoint(c));
18633
18633
  if (o)
18634
- for (const c of Or)
18634
+ for (const c of zr)
18635
18635
  e.push(this.rArrowMatrix.crossPoint(c));
18636
18636
  const s = this.globalTransform(), r = e.map((c) => s.crossPoint(c)), i = M.getBoundsByPoints(r), a = this.borderProps;
18637
18637
  return i.minX = i.minX - a.width, i.minY = i.minY - a.width, i.maxX = i.maxX + 2 * a.width, i.maxY = i.maxY + 2 * a.width, i.id = this.id, i;
@@ -18706,7 +18706,7 @@ const rn = class rn extends hn {
18706
18706
  return { a, b: c };
18707
18707
  }
18708
18708
  static load(e, n, o, s, r, i) {
18709
- const a = new rn(e, i);
18709
+ const a = new sn(e, i);
18710
18710
  return a.type = n, a.zIndex = o, a.setParent(r), a.updateProps(s), a;
18711
18711
  }
18712
18712
  contains(e, n = 1) {
@@ -18772,7 +18772,7 @@ const rn = class rn extends hn {
18772
18772
  return M.distance(n, o);
18773
18773
  }
18774
18774
  };
18775
- p(rn, "arrowDrawerMap", /* @__PURE__ */ new Map([
18775
+ p(sn, "arrowDrawerMap", /* @__PURE__ */ new Map([
18776
18776
  [rt.Arrow, new Jp()],
18777
18777
  [rt.Triangle, new ef()],
18778
18778
  [rt.EmptyTriangle, new tf()],
@@ -18780,13 +18780,13 @@ p(rn, "arrowDrawerMap", /* @__PURE__ */ new Map([
18780
18780
  [rt.EmptyDiamond, new of()],
18781
18781
  [rt.Circle, new sf()],
18782
18782
  [rt.EmptyCircle, new rf()]
18783
- ])), p(rn, "drawerMap", /* @__PURE__ */ new Map([
18783
+ ])), p(sn, "drawerMap", /* @__PURE__ */ new Map([
18784
18784
  [de.Curve, new gl()],
18785
18785
  [de.RoundPolyLine, new xl()],
18786
18786
  [de.PolyLine, new fl()],
18787
18787
  [de.Line, new pl()]
18788
18788
  ]));
18789
- let kt = rn;
18789
+ let kt = sn;
18790
18790
  class bt {
18791
18791
  buildPath(t, e) {
18792
18792
  }
@@ -19282,7 +19282,7 @@ const Rt = class Rt extends hn {
19282
19282
  p(this, "type", v.Shape);
19283
19283
  p(this, "transform", se.generateMatrix());
19284
19284
  p(this, "renderText");
19285
- this.props.set(I.Base, new re()), this.props.set(I.Shape, new De()), this.props.set(I.Color, new nt()), this.props.set(I.Border, new ke()), this.props.set(I.Text, new Ge()), this.props.set(I.TextParagraph, new cn()), this.props.set(I.TextParagraphQuote, new Wt()), this.renderText = new Xo();
19285
+ this.props.set(I.Base, new re()), this.props.set(I.Shape, new De()), this.props.set(I.Color, new nt()), this.props.set(I.Border, new ke()), this.props.set(I.Text, new Ge()), this.props.set(I.TextParagraph, new an()), this.props.set(I.TextParagraphQuote, new Wt()), this.renderText = new Xo();
19286
19286
  }
19287
19287
  validShapeCode(e) {
19288
19288
  return !!Rt.drawerMap.get(e);
@@ -19448,7 +19448,7 @@ class go extends Gn {
19448
19448
  return a.type = n, a.zIndex = o, a.setParent(r), a.updateProps(s), a;
19449
19449
  }
19450
19450
  }
19451
- class Zt {
19451
+ class ln {
19452
19452
  static getNumFromString(t) {
19453
19453
  try {
19454
19454
  const e = t.match(/(\d+)/);
@@ -19612,7 +19612,7 @@ const Eo = class Eo {
19612
19612
  case v.Group:
19613
19613
  return Jo.load(t, e, n, o, s, r);
19614
19614
  case v.Checkbox:
19615
- return zo.load(t, e, n, o, s, r);
19615
+ return Oo.load(t, e, n, o, s, r);
19616
19616
  case v.CheckboxText:
19617
19617
  return jn.load(t, e, n, o, s, r);
19618
19618
  case v.SlideContainer:
@@ -19629,7 +19629,7 @@ const Eo = class Eo {
19629
19629
  };
19630
19630
  p(Eo, "instance", null);
19631
19631
  let St = Eo;
19632
- class zr extends hn {
19632
+ class Or extends hn {
19633
19633
  constructor(e) {
19634
19634
  const o = document.createElement("canvas").getContext("2d");
19635
19635
  super(e, o);
@@ -19669,7 +19669,7 @@ class Mf {
19669
19669
  class Dt extends In {
19670
19670
  constructor() {
19671
19671
  super(...arguments);
19672
- p(this, "type", Oe.RemoveNode);
19672
+ p(this, "type", ze.RemoveNode);
19673
19673
  }
19674
19674
  static create(e) {
19675
19675
  return new Dt({ idList: e });
@@ -19716,12 +19716,12 @@ let vf = class extends qs {
19716
19716
  return;
19717
19717
  const s = t;
19718
19718
  if (s.svgProps.useCode) {
19719
- const r = Zt.trimSvgCode(s.svgProps.code);
19719
+ const r = ln.trimSvgCode(s.svgProps.code);
19720
19720
  s.setSvgCode(r.svgCode), n.asyncRenderNodeManager.addRenderNode(s);
19721
19721
  return;
19722
19722
  }
19723
19723
  n.resourceManager.loadSvgUrl(o.url).then((r) => {
19724
- const i = Zt.trimSvgCode(r);
19724
+ const i = ln.trimSvgCode(r);
19725
19725
  s.setSvgCode(i.svgCode), n.asyncRenderNodeManager.addRenderNode(s);
19726
19726
  }).catch((r) => {
19727
19727
  console.error("加载图片出现问题", r), s.setBroken(), n.renderManager.dirtyDraw(t.getBounds());
@@ -19731,7 +19731,7 @@ let vf = class extends qs {
19731
19731
  class If extends mn {
19732
19732
  constructor() {
19733
19733
  super(...arguments);
19734
- p(this, "type", Oe.AddNode);
19734
+ p(this, "type", ze.AddNode);
19735
19735
  p(this, "handlers", [new ua(), new Sf(), new vf()]);
19736
19736
  }
19737
19737
  execData(e, n) {
@@ -19761,7 +19761,7 @@ class If extends mn {
19761
19761
  class Le extends In {
19762
19762
  constructor() {
19763
19763
  super(...arguments);
19764
- p(this, "type", Oe.AddNode);
19764
+ p(this, "type", ze.AddNode);
19765
19765
  }
19766
19766
  static create(e) {
19767
19767
  return new Le({ nodes: [e] });
@@ -19774,7 +19774,7 @@ class Le extends In {
19774
19774
  class Tf extends mn {
19775
19775
  constructor() {
19776
19776
  super(...arguments);
19777
- p(this, "type", Oe.RemoveNode);
19777
+ p(this, "type", ze.RemoveNode);
19778
19778
  }
19779
19779
  execData(e, n) {
19780
19780
  for (const o of e.idList)
@@ -19805,7 +19805,7 @@ class Tf extends mn {
19805
19805
  class G extends In {
19806
19806
  constructor() {
19807
19807
  super(...arguments);
19808
- p(this, "type", Oe.UpdateNode);
19808
+ p(this, "type", ze.UpdateNode);
19809
19809
  }
19810
19810
  static create(e, n, o) {
19811
19811
  const s = {
@@ -19822,7 +19822,7 @@ class G extends In {
19822
19822
  class Lf extends mn {
19823
19823
  constructor() {
19824
19824
  super(...arguments);
19825
- p(this, "type", Oe.UpdateNode);
19825
+ p(this, "type", ze.UpdateNode);
19826
19826
  p(this, "handlers", [new ua()]);
19827
19827
  }
19828
19828
  execData(e, n) {
@@ -19841,7 +19841,7 @@ class Lf extends mn {
19841
19841
  for (const c of this.handlers)
19842
19842
  c.handle(a, r, n);
19843
19843
  }
19844
- this.addIndexNode(a, n), n.auxiliaryManager.selectManager.include(a) && (n.auxiliaryManager.selectManager.refreshSelectStatus(), n.renderManager.addAuxiliaryDrawTask(), n.auxiliaryManager.slotManager.addSlotState(ze.FocusPropsChange, !0));
19844
+ this.addIndexNode(a, n), n.auxiliaryManager.selectManager.include(a) && (n.auxiliaryManager.selectManager.refreshSelectStatus(), n.renderManager.addAuxiliaryDrawTask(), n.auxiliaryManager.slotManager.addSlotState(Oe.FocusPropsChange, !0));
19845
19845
  }
19846
19846
  changeParent(e, n, o) {
19847
19847
  if (o === void 0 || o === e.parent.id)
@@ -19874,7 +19874,7 @@ class Lf extends mn {
19874
19874
  class xe extends In {
19875
19875
  constructor() {
19876
19876
  super(...arguments);
19877
- p(this, "type", Oe.SelectNode);
19877
+ p(this, "type", ze.SelectNode);
19878
19878
  }
19879
19879
  static create(e) {
19880
19880
  return new xe({ idList: e });
@@ -19887,64 +19887,64 @@ class xe extends In {
19887
19887
  class Cf extends mn {
19888
19888
  constructor() {
19889
19889
  super(...arguments);
19890
- p(this, "type", Oe.SelectNode);
19890
+ p(this, "type", ze.SelectNode);
19891
19891
  }
19892
19892
  execData(e, n) {
19893
19893
  const o = e.idList, s = /* @__PURE__ */ new Set();
19894
19894
  o.forEach((r) => {
19895
19895
  const i = n.nodeManager.getNode(r);
19896
19896
  i && s.add(i);
19897
- }), n.auxiliaryManager.selectManager.set(s), n.renderManager.addAuxiliaryDrawTask(), n.auxiliaryManager.slotManager.addSlotState(ze.FocusPropsChange, !0);
19897
+ }), n.auxiliaryManager.selectManager.set(s), n.renderManager.addAuxiliaryDrawTask(), n.auxiliaryManager.slotManager.addSlotState(Oe.FocusPropsChange, !0);
19898
19898
  }
19899
19899
  reverseLog(e, n) {
19900
19900
  const s = n.auxiliaryManager.selectManager.getSelectNodes().map((r) => r.id);
19901
19901
  return new xe({ idList: s });
19902
19902
  }
19903
19903
  }
19904
- class O extends In {
19904
+ class z extends In {
19905
19905
  constructor() {
19906
19906
  super(null);
19907
- p(this, "type", Oe.End);
19907
+ p(this, "type", ze.End);
19908
19908
  }
19909
19909
  clone() {
19910
- return new O();
19910
+ return new z();
19911
19911
  }
19912
19912
  }
19913
19913
  class kf extends mn {
19914
19914
  constructor() {
19915
19915
  super(...arguments);
19916
- p(this, "type", Oe.Start);
19916
+ p(this, "type", ze.Start);
19917
19917
  }
19918
19918
  execData(e, n) {
19919
19919
  }
19920
19920
  reverseLog(e, n) {
19921
- return new O();
19921
+ return new z();
19922
19922
  }
19923
19923
  }
19924
- class z extends In {
19924
+ class O extends In {
19925
19925
  constructor() {
19926
19926
  super(null);
19927
- p(this, "type", Oe.Start);
19927
+ p(this, "type", ze.Start);
19928
19928
  }
19929
19929
  clone() {
19930
- return new z();
19930
+ return new O();
19931
19931
  }
19932
19932
  }
19933
19933
  class Nf extends mn {
19934
19934
  constructor() {
19935
19935
  super(...arguments);
19936
- p(this, "type", Oe.End);
19936
+ p(this, "type", ze.End);
19937
19937
  }
19938
19938
  execData(e, n) {
19939
19939
  }
19940
19940
  reverseLog(e, n) {
19941
- return new z();
19941
+ return new O();
19942
19942
  }
19943
19943
  }
19944
19944
  class Af extends mn {
19945
19945
  constructor() {
19946
19946
  super(...arguments);
19947
- p(this, "type", Oe.TextFocus);
19947
+ p(this, "type", ze.TextFocus);
19948
19948
  }
19949
19949
  checkValidNode(e, n) {
19950
19950
  const o = n.nodeManager.getNode(e);
@@ -19973,7 +19973,7 @@ class Af extends mn {
19973
19973
  g && (n.auxiliaryManager.addOrUpdate(N.TextSelection, {
19974
19974
  selectionList: g,
19975
19975
  node: u
19976
- }), n.renderManager.addAuxiliaryDrawTask()), n.auxiliaryManager.remove(N.PlaceHolder), n.auxiliaryManager.slotManager.addSlotState(ze.FocusPropsChange, !0);
19976
+ }), n.renderManager.addAuxiliaryDrawTask()), n.auxiliaryManager.remove(N.PlaceHolder), n.auxiliaryManager.slotManager.addSlotState(Oe.FocusPropsChange, !0);
19977
19977
  return;
19978
19978
  }
19979
19979
  if (o === Ct.Blur) {
@@ -20023,7 +20023,7 @@ class Rf extends pa {
20023
20023
  }
20024
20024
  handleUpdateLog(e, n, o) {
20025
20025
  var s;
20026
- if (e.type === Oe.UpdateNode) {
20026
+ if (e.type === ze.UpdateNode) {
20027
20027
  const r = e.data;
20028
20028
  for (const i of r.infos) {
20029
20029
  const a = n.nodeManager.getNode(i.id);
@@ -20067,7 +20067,7 @@ class Rf extends pa {
20067
20067
  return null;
20068
20068
  }
20069
20069
  handleAddLog(e, n, o) {
20070
- if (e.type === Oe.AddNode) {
20070
+ if (e.type === ze.AddNode) {
20071
20071
  const s = e.data;
20072
20072
  for (const r of s.nodes) {
20073
20073
  const i = n.nodeManager.getNode(r.parentId);
@@ -20079,7 +20079,7 @@ class Rf extends pa {
20079
20079
  }
20080
20080
  }
20081
20081
  handleRemoveLog(e, n, o) {
20082
- if (e.type === Oe.RemoveNode) {
20082
+ if (e.type === ze.RemoveNode) {
20083
20083
  const s = e.data;
20084
20084
  for (const r of s.idList) {
20085
20085
  const i = n.nodeManager.getNode(r);
@@ -20106,7 +20106,7 @@ class Ef extends pa {
20106
20106
  this.slideContainer && this.handleUpdateLog(e, n, this.slideContainer);
20107
20107
  }
20108
20108
  handleUpdateLog(e, n, o) {
20109
- if (e.type === Oe.UpdateNode) {
20109
+ if (e.type === ze.UpdateNode) {
20110
20110
  const s = e.data;
20111
20111
  for (const r of s.infos) {
20112
20112
  const i = n.nodeManager.getNode(r.id);
@@ -20187,7 +20187,7 @@ class Xf {
20187
20187
  p(this, "duringGroup", !1);
20188
20188
  }
20189
20189
  add(t) {
20190
- t.type === Oe.Start && (this.duringGroup = !0), this.cacheLogs.push(t), t.type === Oe.End && (this.duringGroup = !1);
20190
+ t.type === ze.Start && (this.duringGroup = !0), this.cacheLogs.push(t), t.type === ze.End && (this.duringGroup = !1);
20191
20191
  }
20192
20192
  getActionGroup() {
20193
20193
  if (this.duringGroup)
@@ -20197,12 +20197,12 @@ class Xf {
20197
20197
  }
20198
20198
  }
20199
20199
  const Wr = /* @__PURE__ */ new Set([
20200
- Oe.Start,
20201
- Oe.End,
20202
- Oe.SelectNode,
20203
- Oe.TextFocus
20200
+ ze.Start,
20201
+ ze.End,
20202
+ ze.SelectNode,
20203
+ ze.TextFocus
20204
20204
  ]);
20205
- class Of {
20205
+ class zf {
20206
20206
  constructor(t, e, n, o, s, r, i, a, c, h, d, u) {
20207
20207
  /**
20208
20208
  * executor Ctx
@@ -20265,7 +20265,7 @@ class Of {
20265
20265
  }
20266
20266
  }
20267
20267
  function qy(l) {
20268
- return l.type === Oe.AddNode ? {
20268
+ return l.type === ze.AddNode ? {
20269
20269
  addNodeData: { data: l.data.nodes.map((n) => {
20270
20270
  const o = n.props, s = /* @__PURE__ */ new Map();
20271
20271
  o.forEach((a) => s.set(a.type, a));
@@ -20278,7 +20278,7 @@ function qy(l) {
20278
20278
  capInfo: r
20279
20279
  };
20280
20280
  }) }
20281
- } : l.type === Oe.UpdateNode ? {
20281
+ } : l.type === ze.UpdateNode ? {
20282
20282
  updateNodeData: { data: l.data.infos.map((n) => {
20283
20283
  const o = n.props, s = /* @__PURE__ */ new Map();
20284
20284
  o.forEach((a) => s.set(a.type, a));
@@ -20324,7 +20324,7 @@ function Jy(l) {
20324
20324
  throw new Error("类型转换错误!");
20325
20325
  }
20326
20326
  const Yr = 0.04, Fr = 4;
20327
- class zf {
20327
+ class Of {
20328
20328
  /**
20329
20329
  * 检测是否为移动端(包括H5)
20330
20330
  */
@@ -20343,7 +20343,7 @@ class Ff {
20343
20343
  let s = t;
20344
20344
  o * t > Fr && (s = Fr / o), o * t < Yr && (s = Yr / o), this.zoomToScale(s, e, n.gmlRender), this.zoomToScale(s, e, n.auxiliaryManager.gmlRender);
20345
20345
  const r = n.getScale();
20346
- n.slotManager.addSlotState(ze.Scale, r), n.addContentRenderTask(), n.addAuxiliaryDrawTask();
20346
+ n.slotManager.addSlotState(Oe.Scale, r), n.addContentRenderTask(), n.addAuxiliaryDrawTask();
20347
20347
  }
20348
20348
  zoomToSelect(t) {
20349
20349
  if (t.auxiliaryManager.selectManager.getSelectNodes().length === 0)
@@ -20366,16 +20366,16 @@ class Ff {
20366
20366
  ), c = new m(-a.x * r + i.x, -a.y * r + i.y);
20367
20367
  this.zoomToMatrix(r, c.x, c.y, t.gmlRender), this.zoomToMatrix(r, c.x, c.y, t.auxiliaryManager.gmlRender);
20368
20368
  const h = t.getScale();
20369
- t.slotManager.addSlotState(ze.Scale, h), t.addContentRenderTask(), t.addAuxiliaryDrawTask();
20369
+ t.slotManager.addSlotState(Oe.Scale, h), t.addContentRenderTask(), t.addAuxiliaryDrawTask();
20370
20370
  }
20371
20371
  zoomToBounds(t, e, n) {
20372
- const o = zf.isMobile() ? Yf : Wf, s = n !== void 0 ? n : o, r = D.rectNode2Rect(t), i = e.gmlRender.canvas.getBoundingClientRect(), a = window.devicePixelRatio, c = i.width - s * 2 * a, h = i.height - s * 2 * a, d = c / r.width, u = h / r.height, f = Math.min(d, u) * a, g = new m(0.5 * a * i.width, 0.5 * a * i.height), x = new m(
20372
+ const o = Of.isMobile() ? Yf : Wf, s = n !== void 0 ? n : o, r = D.rectNode2Rect(t), i = e.gmlRender.canvas.getBoundingClientRect(), a = window.devicePixelRatio, c = i.width - s * 2 * a, h = i.height - s * 2 * a, d = c / r.width, u = h / r.height, f = Math.min(d, u) * a, g = new m(0.5 * a * i.width, 0.5 * a * i.height), x = new m(
20373
20373
  0.5 * (t.minX + t.maxX),
20374
20374
  0.5 * (t.minY + t.maxY)
20375
20375
  ), P = new m(-x.x * f + g.x, -x.y * f + g.y);
20376
20376
  this.zoomToMatrix(f, P.x, P.y, e.gmlRender), this.zoomToMatrix(f, P.x, P.y, e.auxiliaryManager.gmlRender);
20377
20377
  const b = e.getScale();
20378
- e.slotManager.addSlotState(ze.Scale, b), e.addContentRenderTask(), e.addAuxiliaryDrawTask();
20378
+ e.slotManager.addSlotState(Oe.Scale, b), e.addContentRenderTask(), e.addAuxiliaryDrawTask();
20379
20379
  }
20380
20380
  zoomToScale(t, e, n) {
20381
20381
  n.scale(t, t, e);
@@ -20611,7 +20611,7 @@ const bo = {
20611
20611
  [we.Line]: "",
20612
20612
  [we.Check]: "#B4B9F3",
20613
20613
  [we.Resource]: ""
20614
- }, nn = {
20614
+ }, tn = {
20615
20615
  [we.Status]: "#DEE0E3",
20616
20616
  [we.Data]: "#8EE085",
20617
20617
  [we.Operation]: "#82A7FC",
@@ -20625,7 +20625,7 @@ const bo = {
20625
20625
  };
20626
20626
  class _f extends Kn {
20627
20627
  makeupProps(t, e, n, o, s) {
20628
- const r = As[e], i = bo[r], a = nn[r], c = s ? s.toLocal(n) : n, { width: h, height: d } = this.computeDefaultSize();
20628
+ const r = As[e], i = bo[r], a = tn[r], c = s ? s.toLocal(n) : n, { width: h, height: d } = this.computeDefaultSize();
20629
20629
  return [
20630
20630
  re.create({ x: c.x, y: c.y, width: h, height: d }),
20631
20631
  Ge.create({
@@ -20645,7 +20645,7 @@ class _f extends Kn {
20645
20645
  }
20646
20646
  class jf extends Kn {
20647
20647
  makeupProps(t, e, n, o, s) {
20648
- const r = Fo[e], i = we.Section, a = bo[i], c = nn[i], h = s ? s.toLocal(n) : n;
20648
+ const r = Fo[e], i = we.Section, a = bo[i], c = tn[i], h = s ? s.toLocal(n) : n;
20649
20649
  return [
20650
20650
  re.create({
20651
20651
  x: h.x,
@@ -20660,7 +20660,7 @@ class jf extends Kn {
20660
20660
  }
20661
20661
  class Vf extends Kn {
20662
20662
  makeupProps(t, e, n, o, s) {
20663
- const r = M.computeShapeCategory(v.Line, e), i = nn[r], a = s ? s.toLocal(n) : n, c = this.makeupLinePoints(a, e), h = D.rectNode2Rect(M.getBoundsByPoints(c));
20663
+ const r = M.computeShapeCategory(v.Line, e), i = tn[r], a = s ? s.toLocal(n) : n, c = this.makeupLinePoints(a, e), h = D.rectNode2Rect(M.getBoundsByPoints(c));
20664
20664
  return [
20665
20665
  re.create({
20666
20666
  x: h.x,
@@ -20688,18 +20688,18 @@ class Vf extends Kn {
20688
20688
  }
20689
20689
  class Kf extends Kn {
20690
20690
  makeupProps(t, e, n, o, s) {
20691
- const a = s ? s.toLocal(n) : n, c = M.computeShapeCategory(v.CheckboxText), h = nn[c], d = bo[c];
20691
+ const a = s ? s.toLocal(n) : n, c = M.computeShapeCategory(v.CheckboxText), h = tn[c], d = bo[c];
20692
20692
  return [
20693
20693
  re.create({ x: a.x, y: a.y, width: 16, height: 16 }),
20694
20694
  nt.create({ color: d, alpha: o }),
20695
20695
  ke.create({ color: h, alpha: o }),
20696
- an.create({ checkStatus: !0 })
20696
+ rn.create({ checkStatus: !0 })
20697
20697
  ];
20698
20698
  }
20699
20699
  }
20700
20700
  class Qf extends Kn {
20701
20701
  makeupProps(t, e, n, o, s) {
20702
- const a = s ? s.toLocal(n) : n, c = M.computeShapeCategory(v.CheckboxText), h = nn[c], d = bo[c];
20702
+ const a = s ? s.toLocal(n) : n, c = M.computeShapeCategory(v.CheckboxText), h = tn[c], d = bo[c];
20703
20703
  return [
20704
20704
  re.create({ x: a.x, y: a.y, width: 102, height: 32 }),
20705
20705
  nt.create({ color: d, alpha: o }),
@@ -20712,7 +20712,7 @@ class Qf extends Kn {
20712
20712
  horizonAlign: it.Top,
20713
20713
  verticalAlign: it.Top
20714
20714
  }),
20715
- new an()
20715
+ new rn()
20716
20716
  ];
20717
20717
  }
20718
20718
  }
@@ -20786,7 +20786,7 @@ class eg extends Qn {
20786
20786
  handle(t, e) {
20787
20787
  t.docState.resetSlideCovers();
20788
20788
  const n = t.docState;
20789
- n.docMode = ue.SLIDE_EDIT, n.slideStatus.slideContainer = e, n.slideStatus.currentIndex = 0, t.slotManager.addSlotState(ze.DocMode, {
20789
+ n.docMode = ue.SLIDE_EDIT, n.slideStatus.slideContainer = e, n.slideStatus.currentIndex = 0, t.slotManager.addSlotState(Oe.DocMode, {
20790
20790
  docMode: ue.SLIDE_EDIT
20791
20791
  });
20792
20792
  const s = n.slideStatus.slideContainer.slideProps.children[0].ids[0];
@@ -20803,7 +20803,7 @@ class eg extends Qn {
20803
20803
  if (!i)
20804
20804
  continue;
20805
20805
  const a = await M.getSlideInfo(i, e);
20806
- e.docState.slideStatus.slideCoverList.push(a), e.slotManager.addSlotState(ze.SlideCovers, {
20806
+ e.docState.slideStatus.slideCoverList.push(a), e.slotManager.addSlotState(Oe.SlideCovers, {
20807
20807
  covers: e.docState.slideStatus.slideCoverList
20808
20808
  });
20809
20809
  }
@@ -20812,7 +20812,7 @@ class eg extends Qn {
20812
20812
  class tg extends Qn {
20813
20813
  handle(t, e) {
20814
20814
  const n = t.docState;
20815
- n.docMode = ue.SLIDE_PLAY, n.slideStatus.slideContainer = e, n.slideStatus.currentIndex = 0, t.docState.changePermission({ canEdit: !1 }), t.slotManager.addSlotState(ze.DocMode, {
20815
+ n.docMode = ue.SLIDE_PLAY, n.slideStatus.slideContainer = e, n.slideStatus.currentIndex = 0, t.docState.changePermission({ canEdit: !1 }), t.slotManager.addSlotState(Oe.DocMode, {
20816
20816
  docMode: ue.SLIDE_PLAY
20817
20817
  });
20818
20818
  const s = n.slideStatus.slideContainer.slideProps.children[0].ids[0];
@@ -20823,7 +20823,7 @@ class ng extends Qn {
20823
20823
  handle(t) {
20824
20824
  t.docState.resetSlideCovers();
20825
20825
  const e = t.docState;
20826
- e.docMode = ue.SLIDE_EDIT, t.docState.changePermission({ canEdit: !0 }), t.slotManager.addSlotState(ze.DocMode, {
20826
+ e.docMode = ue.SLIDE_EDIT, t.docState.changePermission({ canEdit: !0 }), t.slotManager.addSlotState(Oe.DocMode, {
20827
20827
  docMode: ue.SLIDE_EDIT
20828
20828
  });
20829
20829
  const n = e.slideStatus.slideContainer;
@@ -20838,7 +20838,7 @@ class ng extends Qn {
20838
20838
  class og extends Qn {
20839
20839
  handle(t, e) {
20840
20840
  const n = t.docState;
20841
- n.docMode = ue.BOARD, n.slideStatus.slideContainer = null, n.slideStatus.currentIndex = 0, t.docState.changePermission({ canEdit: !0 }), t.slotManager.addSlotState(ze.DocMode, {
20841
+ n.docMode = ue.BOARD, n.slideStatus.slideContainer = null, n.slideStatus.currentIndex = 0, t.docState.changePermission({ canEdit: !0 }), t.slotManager.addSlotState(Oe.DocMode, {
20842
20842
  docMode: ue.BOARD
20843
20843
  }), t.focus();
20844
20844
  }
@@ -20846,7 +20846,7 @@ class og extends Qn {
20846
20846
  class sg extends Qn {
20847
20847
  handle(t) {
20848
20848
  const e = t.docState;
20849
- e.docMode = ue.SLIDE_PLAY, e.slideStatus.currentIndex = 0, t.slotManager.addSlotState(ze.DocMode, {
20849
+ e.docMode = ue.SLIDE_PLAY, e.slideStatus.currentIndex = 0, t.slotManager.addSlotState(Oe.DocMode, {
20850
20850
  docMode: ue.SLIDE_PLAY
20851
20851
  }), t.docState.changePermission({ canEdit: !1 });
20852
20852
  const n = e.slideStatus.slideContainer;
@@ -20859,7 +20859,7 @@ class sg extends Qn {
20859
20859
  class rg extends Qn {
20860
20860
  handle(t, e) {
20861
20861
  const n = t.docState;
20862
- n.docMode = ue.BOARD, n.slideStatus.slideContainer = null, n.slideStatus.currentIndex = 0, t.slotManager.addSlotState(ze.DocMode, {
20862
+ n.docMode = ue.BOARD, n.slideStatus.slideContainer = null, n.slideStatus.currentIndex = 0, t.slotManager.addSlotState(Oe.DocMode, {
20863
20863
  docMode: ue.BOARD
20864
20864
  }), t.focus(), t.docState.resetSlideCovers();
20865
20865
  }
@@ -20980,7 +20980,7 @@ class ag {
20980
20980
  }
20981
20981
  } else {
20982
20982
  const o = this.docState.slideStatus.slideContainer;
20983
- o ? (this.execAction(new z()), this.execAction(xe.create([o.id])), this.execAction(new O()), this.renderManager.zoomToSelect()) : this.renderManager.zoomToFit(), this.renderManager.focusId = void 0;
20983
+ o ? (this.execAction(new O()), this.execAction(xe.create([o.id])), this.execAction(new z()), this.renderManager.zoomToSelect()) : this.renderManager.zoomToFit(), this.renderManager.focusId = void 0;
20984
20984
  }
20985
20985
  this.renderManager.addContentRenderTask(), this.renderManager.addAuxiliaryDrawTask();
20986
20986
  }
@@ -21007,9 +21007,9 @@ class ga {
21007
21007
  parentId: "",
21008
21008
  props: r
21009
21009
  };
21010
- s.execAction(new z());
21010
+ s.execAction(new O());
21011
21011
  const c = Le.create(a);
21012
- s.execAction(c), s.execAction(xe.create([i])), s.execAction(new O());
21012
+ s.execAction(c), s.execAction(xe.create([i])), s.execAction(new z());
21013
21013
  }
21014
21014
  }
21015
21015
  const Xn = class Xn {
@@ -21221,11 +21221,11 @@ class ug extends Xi {
21221
21221
  }
21222
21222
  class xa {
21223
21223
  }
21224
- var qt = /* @__PURE__ */ ((l) => (l[l.Normal = 0] = "Normal", l[l.EmptyPlace = 1] = "EmptyPlace", l))(qt || {});
21224
+ var Zt = /* @__PURE__ */ ((l) => (l[l.Normal = 0] = "Normal", l[l.EmptyPlace = 1] = "EmptyPlace", l))(Zt || {});
21225
21225
  class pg extends xa {
21226
21226
  constructor() {
21227
21227
  super(...arguments);
21228
- p(this, "posPasteType", qt.Normal);
21228
+ p(this, "posPasteType", Zt.Normal);
21229
21229
  }
21230
21230
  handlePos(e, n) {
21231
21231
  return n.lastInteractiveEvent.globalPoint;
@@ -21234,7 +21234,7 @@ class pg extends xa {
21234
21234
  class fg extends xa {
21235
21235
  constructor() {
21236
21236
  super(...arguments);
21237
- p(this, "posPasteType", qt.EmptyPlace);
21237
+ p(this, "posPasteType", Zt.EmptyPlace);
21238
21238
  }
21239
21239
  handlePos(e, n) {
21240
21240
  const o = e.bounds, s = 20, r = n.renderManager.gmlRender.getViewPortBounds(), i = n.nodeManager.searchNodesByRectNode(r);
@@ -21255,16 +21255,16 @@ class fg extends xa {
21255
21255
  }
21256
21256
  class er {
21257
21257
  constructor() {
21258
- p(this, "pasteWorker", new Oi());
21258
+ p(this, "pasteWorker", new zi());
21259
21259
  p(this, "crossPagePasteWorker", new ug());
21260
21260
  //跨doc复制
21261
21261
  //粘贴到某个位置
21262
21262
  p(this, "pastePosHandlerMap", /* @__PURE__ */ new Map([
21263
- [qt.Normal, new pg()],
21264
- [qt.EmptyPlace, new fg()]
21263
+ [Zt.Normal, new pg()],
21264
+ [Zt.EmptyPlace, new fg()]
21265
21265
  ]));
21266
21266
  }
21267
- handle(t, e, n = qt.Normal) {
21267
+ handle(t, e, n = Zt.Normal) {
21268
21268
  const o = e.docState.docId;
21269
21269
  return t.meta.docId !== o ? this.handleCrossPaste(t, e, n) : this.handlePaste(t, e, n);
21270
21270
  }
@@ -21282,13 +21282,13 @@ class er {
21282
21282
  }
21283
21283
  normalPaste(t, e, n, o, s) {
21284
21284
  const r = t.nodes, i = t.bounds, a = this.computePastePos(o, t, e), c = new m(a.x - i.x, a.y - i.y);
21285
- e.execAction(new z());
21285
+ e.execAction(new O());
21286
21286
  const { addNodeData: h, nextFocusIds: d } = n.work(e, r, c, s);
21287
- e.execAction(new Le(h)), e.execAction(xe.create(d)), e.execAction(new O());
21287
+ e.execAction(new Le(h)), e.execAction(xe.create(d)), e.execAction(new z());
21288
21288
  }
21289
21289
  computePastePos(t, e, n) {
21290
21290
  const o = this.pastePosHandlerMap.get(t);
21291
- return o ? o.handlePos(e, n) : this.pastePosHandlerMap.get(qt.Normal).handlePos(e, n);
21291
+ return o ? o.handlePos(e, n) : this.pastePosHandlerMap.get(Zt.Normal).handlePos(e, n);
21292
21292
  }
21293
21293
  async pasteResourceInfo(t, e, n) {
21294
21294
  return t.length === 0 ? {
@@ -21310,7 +21310,7 @@ class gg {
21310
21310
  return !1;
21311
21311
  const r = JSON.parse(s);
21312
21312
  for (const i of this.handlers)
21313
- if (i.handle(r, e, qt.Normal))
21313
+ if (i.handle(r, e, Zt.Normal))
21314
21314
  return !0;
21315
21315
  return !1;
21316
21316
  }
@@ -21323,7 +21323,7 @@ class xg {
21323
21323
  const s = this.getSvgCode(o);
21324
21324
  if (s === null)
21325
21325
  return !1;
21326
- const r = e.docState.docId, i = Vo(10), a = `${r}/${i}`, c = Zt.trimSvgCode(s);
21326
+ const r = e.docState.docId, i = Vo(10), a = `${r}/${i}`, c = ln.trimSvgCode(s);
21327
21327
  return e.resourceManager.uploadSvgString(a, c.svgCode).then((h) => {
21328
21328
  this.addSvgNode(e, c, h);
21329
21329
  }), !0;
@@ -21350,9 +21350,9 @@ class xg {
21350
21350
  parentId: "",
21351
21351
  props: s
21352
21352
  };
21353
- t.execAction(new z());
21353
+ t.execAction(new O());
21354
21354
  const a = Le.create(i);
21355
- t.execAction(a), t.execAction(xe.create([r])), t.execAction(new O());
21355
+ t.execAction(a), t.execAction(xe.create([r])), t.execAction(new z());
21356
21356
  }
21357
21357
  getSvgCode(t) {
21358
21358
  const e = t.indexOf("<svg"), n = t.indexOf("svg>");
@@ -21439,7 +21439,7 @@ class bg {
21439
21439
  */
21440
21440
  addTemplateNodes(t) {
21441
21441
  const e = wn.convertDocumentInfoToPasteData(t, Wo.Template), n = new er(), o = this.app.appContext;
21442
- n.asyncHandleCrossPaste(e, o, qt.EmptyPlace).then((s) => {
21442
+ n.asyncHandleCrossPaste(e, o, Zt.EmptyPlace).then((s) => {
21443
21443
  if (s)
21444
21444
  o.renderManager.zoomToSelect();
21445
21445
  else
@@ -21448,7 +21448,7 @@ class bg {
21448
21448
  }
21449
21449
  addNode(t, e) {
21450
21450
  const n = this.app.appContext, o = M.getViewportBoundCenter(n), s = 100, r = 100, i = new m(o.x - s / 2, o.y - r / 2), a = n.createWorker.makeupDefaultProps(t, n, e, i), c = n.idGenerator.genId(t);
21451
- n.execAction(new z()), n.execAction(
21451
+ n.execAction(new O()), n.execAction(
21452
21452
  Le.create({
21453
21453
  id: c,
21454
21454
  props: a,
@@ -21456,7 +21456,7 @@ class bg {
21456
21456
  type: t,
21457
21457
  zIndex: ve.genZIndex(n.nodeManager.root)
21458
21458
  })
21459
- ), n.execAction(xe.create([c])), Pg.has(t) && n.execAction(J.focus(c)), n.execAction(new O());
21459
+ ), n.execAction(xe.create([c])), Pg.has(t) && n.execAction(J.focus(c)), n.execAction(new z());
21460
21460
  }
21461
21461
  addSvgNodeBySvgCode(t) {
21462
21462
  const e = this.app.docState.docId, n = Vo(10), o = `${e}/${n}`;
@@ -21471,9 +21471,9 @@ class bg {
21471
21471
  */
21472
21472
  addSvgNode(t, e) {
21473
21473
  const n = this.app.appContext, o = n.renderManager.gmlRender.getViewPortBounds(), s = new m(0.5 * (o.minX + o.maxX), 0.5 * (o.minY + o.maxY)), i = new Vs().computeAddSvgNode(t, e, s, this.app.appContext), a = i.id;
21474
- n.execAction(new z());
21474
+ n.execAction(new O());
21475
21475
  const c = Le.create(i);
21476
- n.execAction(c), n.execAction(xe.create([a])), n.execAction(new O());
21476
+ n.execAction(c), n.execAction(xe.create([a])), n.execAction(new z());
21477
21477
  }
21478
21478
  /**
21479
21479
  * 添加图片节点,默认添加到视口中间
@@ -21498,7 +21498,7 @@ class bg {
21498
21498
  const i = r.baseProps, c = o.lineProps.points, h = c[c.length - 1], d = c[c.length - 2], u = Mt.drawerMap.get(t).getConnectAnchor(), f = M.judgeHorizon(d, h);
21499
21499
  let g;
21500
21500
  f ? h.x > d.x ? g = u[he.Left] : g = u[he.Right] : h.y > d.y ? g = u[he.Top] : g = u[he.Bottom];
21501
- const x = i.width * g.x, P = i.height * g.y, b = h.x - x, w = h.y - P, T = this.app.appContext, A = As[t], E = bo[A], R = nn[A], X = [
21501
+ const x = i.width * g.x, P = i.height * g.y, b = h.x - x, w = h.y - P, T = this.app.appContext, A = As[t], E = bo[A], R = tn[A], X = [
21502
21502
  {
21503
21503
  type: I.Base,
21504
21504
  x: b,
@@ -21516,18 +21516,18 @@ class bg {
21516
21516
  parentId: "",
21517
21517
  props: X
21518
21518
  };
21519
- T.execAction(new z());
21519
+ T.execAction(new O());
21520
21520
  const oe = Le.create(Q);
21521
21521
  T.execAction(oe);
21522
21522
  const te = o.connectProps.clone();
21523
- te.end = { objectId: $, x: g.x, y: g.y }, T.execAction(G.create(e, [te])), T.execAction(xe.create([$])), T.execAction(J.focus($)), T.execAction(new O());
21523
+ te.end = { objectId: $, x: g.x, y: g.y }, T.execAction(G.create(e, [te])), T.execAction(xe.create([$])), T.execAction(J.focus($)), T.execAction(new z());
21524
21524
  }
21525
21525
  makeupToSlidesBySelective() {
21526
21526
  this.makeupToSlides([...this.app.appContext.getSelectNodes()]);
21527
21527
  }
21528
21528
  makeupToSlides(t) {
21529
21529
  const e = t.filter(($) => !(!($ instanceof es) || $.parent && $.parent.type === v.SlideContainer)), n = this.app.appContext;
21530
- n.execAction(new z()), n.execAction(xe.create([]));
21530
+ n.execAction(new O()), n.execAction(xe.create([]));
21531
21531
  const o = tt, s = mt, r = this.sortSectionsByPosition(e), i = e.length, a = Math.ceil(Math.sqrt(i)), c = [];
21532
21532
  for (let $ = 0; $ < r.length; $ += a) {
21533
21533
  const Q = r.slice($, $ + a);
@@ -21571,7 +21571,7 @@ class bg {
21571
21571
  width: E,
21572
21572
  height: R
21573
21573
  });
21574
- n.execAction(G.create(h, [X])), n.execAction(xe.create([h])), n.execAction(new O());
21574
+ n.execAction(G.create(h, [X])), n.execAction(xe.create([h])), n.execAction(new z());
21575
21575
  }
21576
21576
  /**
21577
21577
  * 按照位置排序 sections:先找最左上角的节点,然后按行排序
@@ -21603,13 +21603,13 @@ class bg {
21603
21603
  }
21604
21604
  class ko {
21605
21605
  constructor() {
21606
- p(this, "groupBaseWorker", new tn());
21606
+ p(this, "groupBaseWorker", new en());
21607
21607
  }
21608
21608
  group(t, e) {
21609
21609
  const n = M.filterToGroupNodes(t);
21610
21610
  if (n.length < 2)
21611
21611
  return;
21612
- e.execAction(new z());
21612
+ e.execAction(new O());
21613
21613
  const o = e.idGenerator.genId(v.Group), s = [], r = M.sortGraphics(n), i = r[r.length - 1].parent;
21614
21614
  for (const b of r)
21615
21615
  s.push(b.getBounds());
@@ -21640,10 +21640,10 @@ class ko {
21640
21640
  }
21641
21641
  g.push(M.computeRelationChangeUpdateNodeInfo(b, f, x, o)), x++;
21642
21642
  }
21643
- e.execAction(new G({ infos: g })), this.groupBaseWorker.work(e, !1), e.execAction(xe.create([f.id])), e.execAction(new O());
21643
+ e.execAction(new G({ infos: g })), this.groupBaseWorker.work(e, !1), e.execAction(xe.create([f.id])), e.execAction(new z());
21644
21644
  }
21645
21645
  unGroup(t, e) {
21646
- e.execAction(new z());
21646
+ e.execAction(new O());
21647
21647
  const n = t.parent, o = [...t.children];
21648
21648
  o.sort((c, h) => c.zIndex - h.zIndex);
21649
21649
  const s = [];
@@ -21657,7 +21657,7 @@ class ko {
21657
21657
  }
21658
21658
  s.push(M.computeRelationChangeUpdateNodeInfo(c, t, i + r, n.id)), r++, a.push(c.id);
21659
21659
  }
21660
- e.execAction(new G({ infos: s })), e.execAction(Dt.create([t.id])), e.execAction(xe.create(a)), e.execAction(new O());
21660
+ e.execAction(new G({ infos: s })), e.execAction(Dt.create([t.id])), e.execAction(xe.create(a)), e.execAction(new z());
21661
21661
  }
21662
21662
  }
21663
21663
  class Mg {
@@ -21675,7 +21675,7 @@ class Mg {
21675
21675
  return;
21676
21676
  const { angle: s } = o.baseProps, r = o.globalPos, i = D.rectNode2Rect(o.getBounds()), a = new m(i.x + 0.5 * i.width, i.y + 0.5 * i.height), c = se.generateMatrix().translate(a.x, a.y), h = se.generateMatrix().rotate(e), u = c.crossProduct(h).crossProduct(c.inverseMatrix()).crossPoint(r);
21677
21677
  let f;
21678
- o.parent.type === v.Group ? f = o.parent.globalTransform().inverseMatrix().crossPoint(u) : f = o.parent.toLocal(u), n.execAction(new z()), n.execAction(
21678
+ o.parent.type === v.Group ? f = o.parent.globalTransform().inverseMatrix().crossPoint(u) : f = o.parent.toLocal(u), n.execAction(new O()), n.execAction(
21679
21679
  G.create(t, [
21680
21680
  {
21681
21681
  type: I.Base,
@@ -21684,7 +21684,7 @@ class Mg {
21684
21684
  angle: s + e
21685
21685
  }
21686
21686
  ])
21687
- ), n.execAction(new O());
21687
+ ), n.execAction(new z());
21688
21688
  }
21689
21689
  getNodeIdByBlobUrl(t) {
21690
21690
  const e = this.app.appContext;
@@ -21762,7 +21762,7 @@ class yo {
21762
21762
  const o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
21763
21763
  for (const i of n)
21764
21764
  o.add(i.id), t.nodeManager.getNodeLinks(i).forEach((c) => o.add(c.id)), this.addAllChildren(i, o), ((r = i.parent) == null ? void 0 : r.type) === v.SlideContainer && s.add(i.parent);
21765
- t.actionManager.execAction(new z()), t.actionManager.execAction(xe.create([])), t.actionManager.execAction(Dt.create([...o])), s.size > 0 && t.slideManager.updateSlideContainers(s, o, t), t.actionManager.execAction(new O());
21765
+ t.actionManager.execAction(new O()), t.actionManager.execAction(xe.create([])), t.actionManager.execAction(Dt.create([...o])), s.size > 0 && t.slideManager.updateSlideContainers(s, o, t), t.actionManager.execAction(new z());
21766
21766
  }
21767
21767
  addAllChildren(t, e) {
21768
21768
  e.add(t.id);
@@ -21800,7 +21800,7 @@ class Ig {
21800
21800
  id: i.id,
21801
21801
  props: [{ type: I.Shape, shapeCode: t }]
21802
21802
  });
21803
- r.length > 0 && (e.execAction(new z()), e.execAction(new G({ infos: r })), e.execAction(new O()));
21803
+ r.length > 0 && (e.execAction(new O()), e.execAction(new G({ infos: r })), e.execAction(new z()));
21804
21804
  }
21805
21805
  }
21806
21806
  switchLineShape(t) {
@@ -21835,9 +21835,9 @@ class Ig {
21835
21835
  props: a
21836
21836
  });
21837
21837
  }
21838
- s.length > 0 && (e.execAction(new z()), s.forEach((r) => {
21838
+ s.length > 0 && (e.execAction(new O()), s.forEach((r) => {
21839
21839
  e.execAction(new G({ infos: [r] })), this.lineTextWorker.work(this.app.nodeManager.getNode(r.id), e, !1);
21840
- }), e.execAction(new O()));
21840
+ }), e.execAction(new z()));
21841
21841
  }
21842
21842
  }
21843
21843
  modifyLinePoints(t, e, n, o) {
@@ -21864,7 +21864,7 @@ class Tg {
21864
21864
  class Lg {
21865
21865
  constructor(t) {
21866
21866
  p(this, "app");
21867
- p(this, "groupBaseWorker", new tn());
21867
+ p(this, "groupBaseWorker", new en());
21868
21868
  this.app = t;
21869
21869
  }
21870
21870
  alignLeft() {
@@ -21876,7 +21876,7 @@ class Lg {
21876
21876
  const r = s.globalPos, i = s.parent.toLocal({ x: n, y: r.y }), a = s.baseProps, c = i.x - a.x;
21877
21877
  this.dealNodePos(s, o, c, 0);
21878
21878
  }
21879
- t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O());
21879
+ t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z());
21880
21880
  }
21881
21881
  alignRight() {
21882
21882
  const t = this.app.appContext, e = this.getAlignNodes();
@@ -21895,7 +21895,7 @@ class Lg {
21895
21895
  }), a = s.baseProps, c = i.x - a.x;
21896
21896
  this.dealNodePos(s, o, c, 0);
21897
21897
  }
21898
- t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O());
21898
+ t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z());
21899
21899
  }
21900
21900
  alignHorizontalCenter() {
21901
21901
  const t = this.app.appContext, e = this.getAlignNodes();
@@ -21909,7 +21909,7 @@ class Lg {
21909
21909
  }), h = i.baseProps, d = c.x - h.x;
21910
21910
  this.dealNodePos(i, r, d, 0);
21911
21911
  }
21912
- t.execAction(new z()), t.execAction(new G({ infos: r })), t.execAction(new O());
21912
+ t.execAction(new O()), t.execAction(new G({ infos: r })), t.execAction(new z());
21913
21913
  }
21914
21914
  dealNodePos(t, e, n, o) {
21915
21915
  const s = t.baseProps, r = s.x + n, i = s.y + o;
@@ -21956,7 +21956,7 @@ class Lg {
21956
21956
  }), a = s.baseProps, c = i.y - a.y;
21957
21957
  this.dealNodePos(s, o, 0, c);
21958
21958
  }
21959
- t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O());
21959
+ t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z());
21960
21960
  }
21961
21961
  alignBottom() {
21962
21962
  const t = this.app.appContext, e = this.getAlignNodes();
@@ -21970,7 +21970,7 @@ class Lg {
21970
21970
  }), a = s.baseProps, c = i.y - a.y;
21971
21971
  this.dealNodePos(s, o, 0, c);
21972
21972
  }
21973
- t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O());
21973
+ t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z());
21974
21974
  }
21975
21975
  alignVerticalCenter() {
21976
21976
  const t = this.app.appContext, e = this.getAlignNodes();
@@ -21984,7 +21984,7 @@ class Lg {
21984
21984
  }), h = i.baseProps, d = c.y - h.y;
21985
21985
  this.dealNodePos(i, r, 0, d);
21986
21986
  }
21987
- t.execAction(new z()), t.execAction(new G({ infos: r })), t.execAction(new O());
21987
+ t.execAction(new O()), t.execAction(new G({ infos: r })), t.execAction(new z());
21988
21988
  }
21989
21989
  distributeHorizontal() {
21990
21990
  const t = this.app.appContext, e = this.getAlignNodes();
@@ -21999,7 +21999,7 @@ class Lg {
21999
21999
  }), b = g.baseProps, w = P.x - b.x;
22000
22000
  this.dealNodePos(g, d, w, 0), u += g.baseProps.width + h;
22001
22001
  }
22002
- t.execAction(new z()), t.execAction(new G({ infos: d })), t.execAction(new O());
22002
+ t.execAction(new O()), t.execAction(new G({ infos: d })), t.execAction(new z());
22003
22003
  }
22004
22004
  distributeVertical() {
22005
22005
  const t = this.app.appContext, e = this.getAlignNodes();
@@ -22014,7 +22014,7 @@ class Lg {
22014
22014
  }), b = g.baseProps, w = P.y - b.y;
22015
22015
  this.dealNodePos(g, d, 0, w), u += g.baseProps.height + h;
22016
22016
  }
22017
- t.execAction(new z()), t.execAction(new G({ infos: d })), t.execAction(new O());
22017
+ t.execAction(new O()), t.execAction(new G({ infos: d })), t.execAction(new z());
22018
22018
  }
22019
22019
  getAlignNodes() {
22020
22020
  return [...this.app.appContext.getSelectNodes()].filter((o) => {
@@ -22071,7 +22071,7 @@ class Cg {
22071
22071
  const n = [...t.getSelectNodes()].filter((s) => s.type === v.Shape || s.type === v.Line), o = [];
22072
22072
  for (const s of n)
22073
22073
  o.push(this.toUnOrderByNotEditing(s));
22074
- o.length > 0 && (t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O()));
22074
+ o.length > 0 && (t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z()));
22075
22075
  }
22076
22076
  toUnOrderBySelection(t, e, n) {
22077
22077
  const { start: o, end: s } = e, r = t.getProp(I.TextParagraph).clone(), i = o.paragraphIndex, a = s.paragraphIndex;
@@ -22086,7 +22086,7 @@ class Cg {
22086
22086
  }
22087
22087
  ]
22088
22088
  }];
22089
- h.length > 0 && (n.execAction(new z()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: h })), n.execAction(J.selection(t.id, o, s)), n.execAction(new O()));
22089
+ h.length > 0 && (n.execAction(new O()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: h })), n.execAction(J.selection(t.id, o, s)), n.execAction(new z()));
22090
22090
  }
22091
22091
  toUnOrderByEditing(t, e, n) {
22092
22092
  const { textCursorPosition: o } = e, s = t.getProp(I.TextParagraph).clone(), r = o.paragraphIndex;
@@ -22100,7 +22100,7 @@ class Cg {
22100
22100
  }
22101
22101
  ]
22102
22102
  }];
22103
- a.length > 0 && (n.execAction(new z()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: a })), n.execAction(J.focus(t.id, o)), n.execAction(new O()));
22103
+ a.length > 0 && (n.execAction(new O()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: a })), n.execAction(J.focus(t.id, o)), n.execAction(new z()));
22104
22104
  }
22105
22105
  toUnOrderWithPara(t, e) {
22106
22106
  const n = e.paragraphStyles.findIndex((s) => s.paraIndex === t), o = M.getParaStyle(e, t - 1);
@@ -22156,7 +22156,7 @@ class kg {
22156
22156
  const n = [...t.getSelectNodes()].filter((s) => s.type === v.Shape || s.type === v.Line), o = [];
22157
22157
  for (const s of n)
22158
22158
  o.push(this.toOrderByNotEditing(s));
22159
- o.length > 0 && (t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O()));
22159
+ o.length > 0 && (t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z()));
22160
22160
  }
22161
22161
  toOrderBySelection(t, e, n) {
22162
22162
  const { start: o, end: s } = e, r = t.getProp(I.TextParagraph).clone(), i = o.paragraphIndex, a = s.paragraphIndex;
@@ -22171,7 +22171,7 @@ class kg {
22171
22171
  }
22172
22172
  ]
22173
22173
  }];
22174
- h.length > 0 && (n.execAction(new z()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: h })), n.execAction(J.selection(t.id, o, s)), n.execAction(new O()));
22174
+ h.length > 0 && (n.execAction(new O()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: h })), n.execAction(J.selection(t.id, o, s)), n.execAction(new z()));
22175
22175
  }
22176
22176
  toOrderByEditing(t, e, n) {
22177
22177
  const { textCursorPosition: o } = e, s = t.getProp(I.TextParagraph).clone(), r = o.paragraphIndex;
@@ -22185,7 +22185,7 @@ class kg {
22185
22185
  }
22186
22186
  ]
22187
22187
  }];
22188
- a.length > 0 && (n.execAction(new z()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: a })), n.execAction(J.focus(t.id, o)), n.execAction(new O()));
22188
+ a.length > 0 && (n.execAction(new O()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: a })), n.execAction(J.focus(t.id, o)), n.execAction(new z()));
22189
22189
  }
22190
22190
  toOrderWithPara(t, e) {
22191
22191
  const n = e.paragraphStyles.findIndex((s) => s.paraIndex === t), o = M.getParaStyle(e, t - 1);
@@ -22260,7 +22260,7 @@ class Ng {
22260
22260
  const n = [...t.getSelectNodes()].filter((s) => s.type === v.Shape || s.type === v.Line), o = [];
22261
22261
  for (const s of n)
22262
22262
  o.push(this.toQuoteByNotEditing(s));
22263
- o.length > 0 && (t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O()));
22263
+ o.length > 0 && (t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z()));
22264
22264
  }
22265
22265
  toQuoteBySelection(t, e, n) {
22266
22266
  var u;
@@ -22291,7 +22291,7 @@ class Ng {
22291
22291
  }
22292
22292
  ]
22293
22293
  }];
22294
- d.length > 0 && (n.execAction(new z()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: d })), n.execAction(J.selection(t.id, o, s)), n.execAction(new O()));
22294
+ d.length > 0 && (n.execAction(new O()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: d })), n.execAction(J.selection(t.id, o, s)), n.execAction(new z()));
22295
22295
  }
22296
22296
  toQuoteByEditing(t, e, n) {
22297
22297
  var c;
@@ -22306,7 +22306,7 @@ class Ng {
22306
22306
  }
22307
22307
  ]
22308
22308
  }];
22309
- a.length > 0 && (n.execAction(new z()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: a })), n.execAction(J.focus(t.id, o)), n.execAction(new O()));
22309
+ a.length > 0 && (n.execAction(new O()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: a })), n.execAction(J.focus(t.id, o)), n.execAction(new z()));
22310
22310
  }
22311
22311
  toQuoteWithPara(t, e) {
22312
22312
  const n = e.paraQuoteStyles.findIndex((o) => o.paraIndex === t);
@@ -22353,7 +22353,7 @@ class Ag {
22353
22353
  const r = this.toNormalByNotEditing(s);
22354
22354
  r && o.push(r);
22355
22355
  }
22356
- o.length > 0 && (t.execAction(new z()), t.execAction(new G({ infos: o })), t.execAction(new O()));
22356
+ o.length > 0 && (t.execAction(new O()), t.execAction(new G({ infos: o })), t.execAction(new z()));
22357
22357
  }
22358
22358
  toNormalBySelection(t, e, n) {
22359
22359
  var d;
@@ -22375,7 +22375,7 @@ class Ag {
22375
22375
  };
22376
22376
  c.push(u);
22377
22377
  }
22378
- c.length > 0 && (n.execAction(new z()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: c })), n.execAction(J.selection(t.id, o, s)), n.execAction(new O()));
22378
+ c.length > 0 && (n.execAction(new O()), n.execAction(J.selection(t.id, o, s)), n.execAction(new G({ infos: c })), n.execAction(J.selection(t.id, o, s)), n.execAction(new z()));
22379
22379
  }
22380
22380
  toNormalByEditing(t, e, n) {
22381
22381
  var c;
@@ -22394,7 +22394,7 @@ class Ag {
22394
22394
  };
22395
22395
  i.push(h);
22396
22396
  }
22397
- i.length > 0 && (n.execAction(new z()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: i })), n.execAction(J.focus(t.id, o)), n.execAction(new O()));
22397
+ i.length > 0 && (n.execAction(new O()), n.execAction(J.focus(t.id, o)), n.execAction(new G({ infos: i })), n.execAction(J.focus(t.id, o)), n.execAction(new z()));
22398
22398
  }
22399
22399
  toNormalByNotEditing(t) {
22400
22400
  const e = t.renderText;
@@ -22412,9 +22412,9 @@ class Ag {
22412
22412
  class tr {
22413
22413
  work(t, e, n) {
22414
22414
  const { node: o, renderText: s, textCursorPosition: r } = t, { updateTextProps: i } = this.computeUpdateTextProps(t, n);
22415
- e.execAction(new z()), e.execAction(G.create(o.id, [i]));
22415
+ e.execAction(new O()), e.execAction(G.create(o.id, [i]));
22416
22416
  const a = s.nextCursorPos(r, n.length);
22417
- e.execAction(J.focus(o.id, a)), e.execAction(new O());
22417
+ e.execAction(J.focus(o.id, a)), e.execAction(new z());
22418
22418
  }
22419
22419
  computeUpdateTextProps(t, e) {
22420
22420
  const { renderText: n, textCursorPosition: o } = t, s = this.editText(n, o, e);
@@ -22652,11 +22652,11 @@ class Ln {
22652
22652
  id: r.id,
22653
22653
  props: [this.textProp(t)]
22654
22654
  });
22655
- s.length > 0 && (e.execAction(new z()), e.execAction(new G({ infos: s })), e.execAction(new O()));
22655
+ s.length > 0 && (e.execAction(new O()), e.execAction(new G({ infos: s })), e.execAction(new z()));
22656
22656
  }
22657
22657
  changeFontPropBySelection(t, e, n, o) {
22658
22658
  const { renderText: s, node: r } = e, { start: i, end: a } = n, c = this.inputWorker.applyStyleToSelection(s, i, a, this.richStyle(t));
22659
- o.execAction(new z()), o.execAction(J.selection(r.id, i, a)), o.execAction(G.create(r.id, [{ type: I.Text, richText: c }])), o.execAction(J.selection(r.id, i, a)), o.execAction(new O());
22659
+ o.execAction(new O()), o.execAction(J.selection(r.id, i, a)), o.execAction(G.create(r.id, [{ type: I.Text, richText: c }])), o.execAction(J.selection(r.id, i, a)), o.execAction(new z());
22660
22660
  }
22661
22661
  }
22662
22662
  class Bg extends Ln {
@@ -22740,7 +22740,7 @@ class Xg extends Ln {
22740
22740
  }
22741
22741
  class ya {
22742
22742
  }
22743
- class Og extends ya {
22743
+ class zg extends ya {
22744
22744
  enable(t) {
22745
22745
  return t.type === v.CheckboxText;
22746
22746
  }
@@ -22760,7 +22760,7 @@ class Og extends ya {
22760
22760
  };
22761
22761
  }
22762
22762
  }
22763
- class zg extends ya {
22763
+ class Og extends ya {
22764
22764
  enable(t) {
22765
22765
  return !0;
22766
22766
  }
@@ -22782,8 +22782,8 @@ class Wg extends Ln {
22782
22782
  super(...arguments);
22783
22783
  p(this, "editTextWorker", new qo());
22784
22784
  p(this, "fontSizeHandlers", [
22785
- new Og(),
22786
- new zg()
22785
+ new zg(),
22786
+ new Og()
22787
22787
  ]);
22788
22788
  }
22789
22789
  richStyle(e) {
@@ -22799,7 +22799,7 @@ class Wg extends Ln {
22799
22799
  }
22800
22800
  changeFontPropBySelection(e, n, o, s) {
22801
22801
  const { renderText: r, node: i } = n, { start: a, end: c } = o, h = this.inputWorker.applyStyleToSelection(r, a, c, this.richStyle(e));
22802
- s.execAction(new z()), s.execAction(J.selection(i.id, a, c)), s.execAction(G.create(i.id, [{ type: I.Text, richText: h }])), r && (r.textProps.sizeMode === Ye.autoWidth || r.textProps.sizeMode === Ye.autoHeight) && this.editTextWorker.modifyBaseProps(i.renderText, i, s), s.execAction(J.selection(i.id, a, c)), s.execAction(new O());
22802
+ s.execAction(new O()), s.execAction(J.selection(i.id, a, c)), s.execAction(G.create(i.id, [{ type: I.Text, richText: h }])), r && (r.textProps.sizeMode === Ye.autoWidth || r.textProps.sizeMode === Ye.autoHeight) && this.editTextWorker.modifyBaseProps(i.renderText, i, s), s.execAction(J.selection(i.id, a, c)), s.execAction(new z());
22803
22803
  }
22804
22804
  changeFontPropForWhole(e, n) {
22805
22805
  const s = [...n.getSelectNodes()].filter((a) => a.getProp(I.Text) !== null), r = [], i = /* @__PURE__ */ new Set();
@@ -22813,10 +22813,10 @@ class Wg extends Ln {
22813
22813
  }
22814
22814
  }
22815
22815
  if (r.length !== 0) {
22816
- n.execAction(new z()), n.execAction(new G({ infos: r }));
22816
+ n.execAction(new O()), n.execAction(new G({ infos: r }));
22817
22817
  for (const a of i)
22818
22818
  this.editTextWorker.modifyBaseProps(a.renderText, a, n);
22819
- n.execAction(new O());
22819
+ n.execAction(new z());
22820
22820
  }
22821
22821
  }
22822
22822
  }
@@ -22949,7 +22949,7 @@ class Fg {
22949
22949
  parentId: "",
22950
22950
  props: r
22951
22951
  };
22952
- t.execAction(new z()), t.execAction(Le.create(i)), t.execAction(xe.create([s])), t.execAction(new O());
22952
+ t.execAction(new O()), t.execAction(Le.create(i)), t.execAction(xe.create([s])), t.execAction(new z());
22953
22953
  }
22954
22954
  refocusSlide(t = 0) {
22955
22955
  const e = this.app.appContext;
@@ -23000,7 +23000,7 @@ class Fg {
23000
23000
  if (e.docState.docMode !== ue.SLIDE_EDIT)
23001
23001
  return;
23002
23002
  const o = e.docState.slideStatus.slideContainer;
23003
- o && (e.execAction(new z()), t === 0 ? e.slideManager.insertSlide(o, 0, !1, e) : e.slideManager.insertSlide(o, t - 1, !0, e), e.execAction(xe.create([])), e.slideManager.jumpToWhenEditing(t, e), e.execAction(new O()));
23003
+ o && (e.execAction(new O()), t === 0 ? e.slideManager.insertSlide(o, 0, !1, e) : e.slideManager.insertSlide(o, t - 1, !0, e), e.execAction(xe.create([])), e.slideManager.jumpToWhenEditing(t, e), e.execAction(new z()));
23004
23004
  }
23005
23005
  deleteSlideByEditingMode(t) {
23006
23006
  const e = this.app.appContext;
@@ -23089,6 +23089,15 @@ class Gg {
23089
23089
  }
23090
23090
  exportAllNodesImg(t, e = "") {
23091
23091
  const n = this.app.nodeManager.getNodeBounds();
23092
+ if (this.app.nodeManager.nodeMap.size === 0) {
23093
+ const o = {
23094
+ minX: 0,
23095
+ minY: 0,
23096
+ maxX: 600,
23097
+ maxY: 600
23098
+ };
23099
+ return this.app.renderManager.exportOfflineCanvas(o, t, e);
23100
+ }
23092
23101
  return this.app.renderManager.exportOfflineCanvas(n, t, e);
23093
23102
  }
23094
23103
  scroll(t, e) {
@@ -23120,11 +23129,11 @@ class Gg {
23120
23129
  if (this.app.auxiliaryManager.selectManager.getSelectNodes().length === 0)
23121
23130
  return;
23122
23131
  const t = this.app.appContext;
23123
- if (t.execAction(new z()), t.inputManager.editTextInfo) {
23132
+ if (t.execAction(new O()), t.inputManager.editTextInfo) {
23124
23133
  const { node: e } = t.inputManager.editTextInfo;
23125
23134
  t.execAction(J.blur(e.id));
23126
23135
  }
23127
- t.execAction(xe.create([])), t.execAction(new O());
23136
+ t.execAction(xe.create([])), t.execAction(new z());
23128
23137
  }
23129
23138
  makeGroup() {
23130
23139
  const t = [...this.app.appContext.getSelectNodes()];
@@ -23223,7 +23232,7 @@ class Ug {
23223
23232
  zIndex: t.zIndex ?? ve.genZIndex(o),
23224
23233
  props: r
23225
23234
  };
23226
- return e.execAction(new z()), e.execAction(new Le({ nodes: [i] })), e.execAction(new O()), { code: 200, id: n };
23235
+ return e.execAction(new O()), e.execAction(new Le({ nodes: [i] })), e.execAction(new z()), { code: 200, id: n };
23227
23236
  } catch (e) {
23228
23237
  return console.error("[AINodeAPI] addNode 失败:", e), {
23229
23238
  code: 500,
@@ -23247,7 +23256,7 @@ class Ug {
23247
23256
  return n.length === 0 ? {
23248
23257
  code: 404,
23249
23258
  msg: `所有节点都不存在: ${o.join(", ")}`
23250
- } : (e.execAction(new z()), e.execAction(Dt.create(n)), e.execAction(new O()), o.length > 0 ? {
23259
+ } : (e.execAction(new O()), e.execAction(Dt.create(n)), e.execAction(new z()), o.length > 0 ? {
23251
23260
  code: 200,
23252
23261
  msg: `部分节点删除成功,以下节点不存在: ${o.join(", ")}`
23253
23262
  } : { code: 200 });
@@ -23282,11 +23291,11 @@ class Ug {
23282
23291
  fontColor: t.fontColor
23283
23292
  }), t.shapeCode !== void 0 && n.push(new De(t.shapeCode)), n.length === 0)
23284
23293
  return { code: 400, msg: "没有提供任何更新属性" };
23285
- if (e.execAction(new z()), t.zIndex !== void 0) {
23294
+ if (e.execAction(new O()), t.zIndex !== void 0) {
23286
23295
  const i = e.nodeManager.getNode(t.id);
23287
23296
  i && (i.zIndex = t.zIndex);
23288
23297
  }
23289
- return e.execAction(G.create(t.id, n)), e.execAction(new O()), { code: 200 };
23298
+ return e.execAction(G.create(t.id, n)), e.execAction(new z()), { code: 200 };
23290
23299
  } catch (e) {
23291
23300
  return console.error("[AINodeAPI] updateNode 失败:", e), {
23292
23301
  code: 500,
@@ -23308,7 +23317,7 @@ class Ug {
23308
23317
  return { code: 400, msg: "nodes 数组不能为空" };
23309
23318
  const n = [];
23310
23319
  let o = 0;
23311
- e.execAction(new z());
23320
+ e.execAction(new O());
23312
23321
  for (let s = 0; s < t.nodes.length; s++) {
23313
23322
  const r = t.nodes[s];
23314
23323
  try {
@@ -23357,7 +23366,7 @@ class Ug {
23357
23366
  });
23358
23367
  }
23359
23368
  }
23360
- return e.execAction(new O()), n.length === 0 ? {
23369
+ return e.execAction(new z()), n.length === 0 ? {
23361
23370
  code: 200,
23362
23371
  successCount: o
23363
23372
  } : o === 0 ? {
@@ -23561,7 +23570,7 @@ class Ug {
23561
23570
  }),
23562
23571
  new De(t.shapeCode ?? 0),
23563
23572
  Ve.create(t.points, !0),
23564
- new zt(),
23573
+ new Ot(),
23565
23574
  at.create({
23566
23575
  lArrow: t.lArrow ?? 0,
23567
23576
  rArrow: t.rArrow ?? 0
@@ -23578,7 +23587,7 @@ class Ug {
23578
23587
  zIndex: t.zIndex ?? ve.genZIndex(o),
23579
23588
  props: c
23580
23589
  };
23581
- return e.execAction(new z()), e.execAction(new Le({ nodes: [d] })), e.execAction(new O()), { code: 200, id: n };
23590
+ return e.execAction(new O()), e.execAction(new Le({ nodes: [d] })), e.execAction(new z()), { code: 200, id: n };
23582
23591
  } catch (e) {
23583
23592
  return console.error("[AINodeAPI] addLine 失败:", e), {
23584
23593
  code: 500,
@@ -23627,7 +23636,7 @@ class Ug {
23627
23636
  zIndex: ve.genZIndex(o),
23628
23637
  props: r
23629
23638
  };
23630
- return e.execAction(new z()), e.execAction(new Le({ nodes: [i] })), e.execAction(new O()), { code: 200, id: n };
23639
+ return e.execAction(new O()), e.execAction(new Le({ nodes: [i] })), e.execAction(new z()), { code: 200, id: n };
23631
23640
  } catch (e) {
23632
23641
  return console.error("[AINodeAPI] addSvg 失败:", e), {
23633
23642
  code: 500,
@@ -23698,7 +23707,7 @@ class Ug {
23698
23707
  };
23699
23708
  o.push(h);
23700
23709
  }
23701
- return e.execAction(new z()), e.execAction(new Le({ nodes: o })), e.execAction(new O()), { code: 200, ids: s, count: s.length };
23710
+ return e.execAction(new O()), e.execAction(new Le({ nodes: o })), e.execAction(new z()), { code: 200, ids: s, count: s.length };
23702
23711
  } catch (e) {
23703
23712
  return console.error("[AINodeAPI] batchAddNodes 失败:", e), {
23704
23713
  code: 500,
@@ -23764,7 +23773,7 @@ class Ug {
23764
23773
  }),
23765
23774
  new De(r.shapeCode ?? 0),
23766
23775
  Ve.create(r.points, !0),
23767
- new zt(),
23776
+ new Ot(),
23768
23777
  at.create({
23769
23778
  lArrow: r.lArrow ?? 0,
23770
23779
  rArrow: r.rArrow ?? 0
@@ -23783,7 +23792,7 @@ class Ug {
23783
23792
  };
23784
23793
  o.push(g);
23785
23794
  }
23786
- return e.execAction(new z()), e.execAction(new Le({ nodes: o })), e.execAction(new O()), { code: 200, ids: s, count: s.length };
23795
+ return e.execAction(new O()), e.execAction(new Le({ nodes: o })), e.execAction(new z()), { code: 200, ids: s, count: s.length };
23787
23796
  } catch (e) {
23788
23797
  return console.error("[AINodeAPI] batchAddLines 失败:", e), {
23789
23798
  code: 500,
@@ -23945,7 +23954,7 @@ class Ug {
23945
23954
  lArrow: t.lArrow ?? 0,
23946
23955
  rArrow: t.rArrow ?? 0
23947
23956
  })
23948
- ], T = new zt();
23957
+ ], T = new Ot();
23949
23958
  if (t.startInfo && n) {
23950
23959
  const X = n.drawer.getConnectAnchor()[t.startInfo.endType];
23951
23960
  T.start = {
@@ -23977,7 +23986,7 @@ class Ug {
23977
23986
  zIndex: t.zIndex ?? ve.genZIndex(x),
23978
23987
  props: w
23979
23988
  };
23980
- return e.execAction(new z()), e.execAction(new Le({ nodes: [E] })), e.execAction(new O()), { code: 200, id: g };
23989
+ return e.execAction(new O()), e.execAction(new Le({ nodes: [E] })), e.execAction(new z()), { code: 200, id: g };
23981
23990
  } catch (e) {
23982
23991
  return console.error("[AINodeAPI] connectLine 失败:", e), console.error("[AINodeAPI] connectLine 失败:", e), {
23983
23992
  code: 500,
@@ -24006,7 +24015,7 @@ class Ug {
24006
24015
  };
24007
24016
  const u = [];
24008
24017
  let f = 0, g = 0;
24009
- d.execAction(new z());
24018
+ d.execAction(new O());
24010
24019
  for (let x = 0; x < t.connections.length; x++) {
24011
24020
  const P = t.connections[x], b = {
24012
24021
  startInfo: P.startInfo,
@@ -24148,7 +24157,7 @@ class Ug {
24148
24157
  lArrow: b.lArrow,
24149
24158
  rArrow: b.rArrow
24150
24159
  })
24151
- ], Pe = new zt();
24160
+ ], Pe = new Ot();
24152
24161
  if (b.startInfo && w) {
24153
24162
  const F = w.drawer.getConnectAnchor()[b.startInfo.endType];
24154
24163
  Pe.start = {
@@ -24194,7 +24203,7 @@ class Ug {
24194
24203
  }), g++;
24195
24204
  }
24196
24205
  }
24197
- return d.execAction(new O()), {
24206
+ return d.execAction(new z()), {
24198
24207
  code: 200,
24199
24208
  successCount: f,
24200
24209
  failedCount: g,
@@ -24952,7 +24961,7 @@ class lx extends ex {
24952
24961
  p(this, "tree");
24953
24962
  //连接关系 line, connect-info
24954
24963
  p(this, "linkMap");
24955
- this.nodeMap = /* @__PURE__ */ new Map(), this.tree = new ox(), this.root = new zr(Wn), this.previewRoot = new zr(Va), this.linkMap = /* @__PURE__ */ new Map();
24964
+ this.nodeMap = /* @__PURE__ */ new Map(), this.tree = new ox(), this.root = new Or(Wn), this.previewRoot = new Or(Va), this.linkMap = /* @__PURE__ */ new Map();
24956
24965
  }
24957
24966
  clear() {
24958
24967
  this.tree.clear(), this.nodeMap.clear();
@@ -25048,7 +25057,7 @@ class lx extends ex {
25048
25057
  return n;
25049
25058
  }
25050
25059
  }
25051
- const On = class On {
25060
+ const zn = class zn {
25052
25061
  constructor() {
25053
25062
  /**
25054
25063
  * 创建过程中的预览对象
@@ -25093,7 +25102,7 @@ const On = class On {
25093
25102
  endType: M.computeNodeConnectEnd(i, t.baseProps.angle)
25094
25103
  }
25095
25104
  }, u = this.makeupLineProps(h, d), f = St.getInstance().create(
25096
- On.PREVIEW_LINE_ID,
25105
+ zn.PREVIEW_LINE_ID,
25097
25106
  v.Line,
25098
25107
  0,
25099
25108
  u,
@@ -25104,7 +25113,7 @@ const On = class On {
25104
25113
  }
25105
25114
  computeDrawLineAndNode(t, e, n) {
25106
25115
  const o = this.createWorker.computePreviewNodePos(t, e, n), s = this.makeupNodeProps(t, o), r = St.getInstance().create(
25107
- On.PREVIEW_ID,
25116
+ zn.PREVIEW_ID,
25108
25117
  v.Shape,
25109
25118
  0,
25110
25119
  s,
@@ -25159,8 +25168,8 @@ const On = class On {
25159
25168
  ];
25160
25169
  }
25161
25170
  };
25162
- p(On, "PREVIEW_ID", "quick_preview"), p(On, "PREVIEW_LINE_ID", "quick_preview_line");
25163
- let No = On;
25171
+ p(zn, "PREVIEW_ID", "quick_preview"), p(zn, "PREVIEW_LINE_ID", "quick_preview_line");
25172
+ let No = zn;
25164
25173
  class Cn {
25165
25174
  computePreviewPos(t, e, n) {
25166
25175
  var a;
@@ -25252,11 +25261,11 @@ class ux extends Cn {
25252
25261
  r.props,
25253
25262
  n.nodeManager.previewRoot,
25254
25263
  n.gmlRender.glCtx
25255
- ), a = Zt.trimSvgCode(s);
25264
+ ), a = ln.trimSvgCode(s);
25256
25265
  return i.setSvgCode(a.svgCode), await new Pa().work(i, a.svgCode, n.renderManager, n.resourceManager), i;
25257
25266
  }
25258
25267
  makeupShapeDefaultProps(e, n, o) {
25259
- const s = we.Resource, r = nn[s], i = 100, a = 100, c = o ? n.x - 0.5 * i : n.x, h = o ? n.y - 0.5 * a : n.y;
25268
+ const s = we.Resource, r = tn[s], i = 100, a = 100, c = o ? n.x - 0.5 * i : n.x, h = o ? n.y - 0.5 * a : n.y;
25260
25269
  return [re.create({ x: c, y: h, width: i, height: a }), ke.create({ color: r, alpha: 0.5 })];
25261
25270
  }
25262
25271
  }
@@ -25294,7 +25303,7 @@ class fx extends Cn {
25294
25303
  }
25295
25304
  class ts {
25296
25305
  makeupLineDefaultProps(t, e) {
25297
- const s = e.x, r = e.y, i = M.computeShapeCategory(v.Line, t), a = nn[i], c = this.makeupLinePoints(s, r, 100, -100), h = D.rectNode2Rect(M.getBoundsByPoints(c));
25306
+ const s = e.x, r = e.y, i = M.computeShapeCategory(v.Line, t), a = tn[i], c = this.makeupLinePoints(s, r, 100, -100), h = D.rectNode2Rect(M.getBoundsByPoints(c));
25298
25307
  return [
25299
25308
  re.create({
25300
25309
  x: h.x,
@@ -25311,7 +25320,7 @@ class ts {
25311
25320
  }
25312
25321
  class gx extends ts {
25313
25322
  makeupLineDefaultProps(t, e) {
25314
- const s = e.x, r = e.y, i = M.computeShapeCategory(v.Line, t), a = nn[i], c = [
25323
+ const s = e.x, r = e.y, i = M.computeShapeCategory(v.Line, t), a = tn[i], c = [
25315
25324
  { x: s, y: r },
25316
25325
  { x: s + 100, y: r + -100 }
25317
25326
  ], h = D.rectNode2Rect(M.getBoundsByPoints(c));
@@ -25600,7 +25609,7 @@ class Tx {
25600
25609
  });
25601
25610
  p(this, "onTicker", async () => {
25602
25611
  const t = this.tasks.pop();
25603
- t && (t.type === io.Svg && await this.genSvgTexture(t), t.type === io.Img && (await this.genImgTexture(t), this.renderManager.slotManager.addSlotState(ze.ImgUrls, this.resourceManager.getImgUrls())));
25612
+ t && (t.type === io.Svg && await this.genSvgTexture(t), t.type === io.Img && (await this.genImgTexture(t), this.renderManager.slotManager.addSlotState(Oe.ImgUrls, this.resourceManager.getImgUrls())));
25604
25613
  });
25605
25614
  this.resourceManager = t, this.nodeManager = e, this.renderManager = n;
25606
25615
  }
@@ -25705,7 +25714,7 @@ class kx {
25705
25714
  if (e.length !== 1)
25706
25715
  return;
25707
25716
  const n = e[0];
25708
- n instanceof xo && (t.execAction(new z()), t.execAction(xe.create([])), t.execAction(new O()), t.docModeManager.switchMode(ue.SLIDE_EDIT, t, {
25717
+ n instanceof xo && (t.execAction(new O()), t.execAction(xe.create([])), t.execAction(new z()), t.docModeManager.switchMode(ue.SLIDE_EDIT, t, {
25709
25718
  slideContainer: n
25710
25719
  }));
25711
25720
  }
@@ -25722,10 +25731,10 @@ class kx {
25722
25731
  }
25723
25732
  jumpToWhenEditing(t, e) {
25724
25733
  const n = this.jumpTo(e.docState, t);
25725
- n && (e.focus(n, 0, 50), e.slotManager.addSlotState(ze.SlideIndex, { index: t }));
25734
+ n && (e.focus(n, 0, 50), e.slotManager.addSlotState(Oe.SlideIndex, { index: t }));
25726
25735
  }
25727
25736
  enterPlayBySlideContainer(t, e) {
25728
- t.execAction(new z()), t.execAction(xe.create([])), t.execAction(new O()), t.docState.changePermission({ canEdit: !1 }), t.docModeManager.switchMode(ue.SLIDE_PLAY, t, {
25737
+ t.execAction(new O()), t.execAction(xe.create([])), t.execAction(new z()), t.docState.changePermission({ canEdit: !1 }), t.docModeManager.switchMode(ue.SLIDE_PLAY, t, {
25729
25738
  slideContainer: e
25730
25739
  });
25731
25740
  }
@@ -25885,7 +25894,7 @@ class kx {
25885
25894
  const n = t.globalBaseProps, o = n.x, s = n.y, r = Array.from(t.children);
25886
25895
  if (r.length === 0)
25887
25896
  return;
25888
- e.execAction(new z());
25897
+ e.execAction(new O());
25889
25898
  const i = r.map((c) => {
25890
25899
  const h = c.baseProps, d = o + h.x, u = s + h.y;
25891
25900
  return {
@@ -25905,7 +25914,7 @@ class kx {
25905
25914
  });
25906
25915
  i.length > 0 && e.execAction(new G({ infos: i })), e.execAction(Dt.create([t.id]));
25907
25916
  const a = r.map((c) => c.id);
25908
- e.execAction(xe.create(a)), e.execAction(new O());
25917
+ e.execAction(xe.create(a)), e.execAction(new z());
25909
25918
  }
25910
25919
  getChildIdByIndex(t, e) {
25911
25920
  let n = 0;
@@ -25940,7 +25949,7 @@ class kx {
25940
25949
  const o = e.docState.slideStatus.slideCoverList.findIndex((s) => s.id === t.id);
25941
25950
  if (o > -1) {
25942
25951
  const s = e.docState.slideStatus.slideCoverList[o];
25943
- URL.revokeObjectURL(s.blobUrl), e.docState.slideStatus.slideCoverList.splice(o, 1, n), e.slotManager.addSlotState(ze.SlideCovers, {
25952
+ URL.revokeObjectURL(s.blobUrl), e.docState.slideStatus.slideCoverList.splice(o, 1, n), e.slotManager.addSlotState(Oe.SlideCovers, {
25944
25953
  covers: e.docState.slideStatus.slideCoverList
25945
25954
  });
25946
25955
  } else
@@ -25969,7 +25978,7 @@ class kx {
25969
25978
  }
25970
25979
  for (const i of o.values())
25971
25980
  URL.revokeObjectURL(i.blobUrl);
25972
- t.docState.slideStatus.slideCoverList = r, t.slotManager.addSlotState(ze.SlideCovers, {
25981
+ t.docState.slideStatus.slideCoverList = r, t.slotManager.addSlotState(Oe.SlideCovers, {
25973
25982
  covers: t.docState.slideStatus.slideCoverList
25974
25983
  });
25975
25984
  }
@@ -26073,7 +26082,7 @@ class _r {
26073
26082
  this.resourceManager,
26074
26083
  this.nodeManager,
26075
26084
  this.renderManager
26076
- ), this.actionManager = new Of(
26085
+ ), this.actionManager = new zf(
26077
26086
  this.nodeManager,
26078
26087
  this.inputManager,
26079
26088
  this.gmlRender,
@@ -26134,22 +26143,22 @@ class _r {
26134
26143
  * 异步加载文档数据,等待所有资源(包括图片和SVG)完全加载完成后返回
26135
26144
  * 适用于缩略图渲染等需要确保所有节点完全渲染的场景
26136
26145
  * @param documentInfo 文档信息
26137
- * @param resourceMap 可选的资源映射,key 是图片节点的原始 url,value 是预处理好的 blobUrl
26146
+ * @param resourceMap 可选的资源映射,key 是图片/SVG节点的原始 url,value 是预处理好的 ImageBitmap
26138
26147
  * @returns Promise<number> 返回文档序列号
26139
26148
  */
26140
- async asyncLoad(t, e) {
26141
- return await this.asyncLoadDocumentInfo(t, e);
26149
+ asyncLoad(t, e) {
26150
+ return this.asyncLoadDocumentInfo(t, e);
26142
26151
  }
26143
26152
  /**
26144
26153
  * 异步加载文档信息,等待所有资源完全加载
26145
- * @param resourceMap 可选的资源映射,key 是图片节点的原始 url,value 是预处理好的 blobUrl
26154
+ * @param resourceMap 可选的资源映射,key 是图片/SVG节点的原始 url,value 是预处理好的 ImageBitmap
26146
26155
  */
26147
- async asyncLoadDocumentInfo(t, e) {
26156
+ asyncLoadDocumentInfo(t, e) {
26148
26157
  const n = Gr();
26149
26158
  this.docState.load(n);
26150
26159
  try {
26151
26160
  const o = this.initData(t);
26152
- await this.asyncAfterInit(o, e), this.renderManager.zoomToFit(), this.renderManager.addContentRenderTask();
26161
+ this.asyncAfterInit(o, e), this.renderManager.zoomToFit(), this.renderManager.addContentRenderTask();
26153
26162
  } catch (o) {
26154
26163
  console.error("初始化过程中出现错误;", o);
26155
26164
  }
@@ -26203,12 +26212,12 @@ class _r {
26203
26212
  try {
26204
26213
  let n = "";
26205
26214
  if (e.svgProps.useCode)
26206
- n = Zt.trimSvgCode(e.svgProps.code).svgCode;
26215
+ n = ln.trimSvgCode(e.svgProps.code).svgCode;
26207
26216
  else {
26208
26217
  const s = e.svgUrl;
26209
26218
  n = await this.resourceManager.loadSvgUrl(s);
26210
26219
  }
26211
- const o = Zt.trimSvgCode(n);
26220
+ const o = ln.trimSvgCode(n);
26212
26221
  e.setSvgCode(o.svgCode), this.asyncRenderNodeManager.addRenderNode(e);
26213
26222
  } catch (n) {
26214
26223
  console.error("加载svg图片出现问题", n), e.setBroken();
@@ -26219,9 +26228,9 @@ class _r {
26219
26228
  * 异步初始化后处理,支持从 resourceMap 直接加载图片资源
26220
26229
  * 所有资源都在此方法中同步等待完成,不再添加到异步渲染队列
26221
26230
  * @param graphics 图形节点列表
26222
- * @param resourceMap 可选的资源映射,key 是图片节点的原始 url,value 是预处理好的 blobUrl
26231
+ * @param resourceMap 可选的资源映射,key 是图片/SVG节点的原始 url,value 是预处理好的 ImageBitmap
26223
26232
  */
26224
- async asyncAfterInit(t, e) {
26233
+ asyncAfterInit(t, e) {
26225
26234
  for (const n of t) {
26226
26235
  if (n instanceof kt) {
26227
26236
  const { start: o, end: s } = n.connectProps;
@@ -26238,8 +26247,8 @@ class _r {
26238
26247
  const o = n, s = o.imgSrc;
26239
26248
  if (e && e.has(s))
26240
26249
  try {
26241
- const r = e.get(s), i = await this.loadImageBitmapFromUrl(r);
26242
- o.setImageBitmap(i);
26250
+ const r = e.get(s);
26251
+ o.setImageBitmap(r);
26243
26252
  } catch (r) {
26244
26253
  console.error("从 resourceMap 加载图片出现问题", r), o.setBroken();
26245
26254
  }
@@ -26250,61 +26259,30 @@ class _r {
26250
26259
  }
26251
26260
  if (n instanceof go)
26252
26261
  try {
26253
- let o = "";
26254
- if (n.svgProps.useCode)
26255
- o = Zt.trimSvgCode(n.svgProps.code).svgCode;
26256
- else {
26257
- const r = n.svgUrl;
26258
- if (e && e.has(r))
26259
- o = e.get(r);
26260
- else {
26261
- console.warn("SVG 资源未在 resourceMap 中找到:", r), n.setBroken();
26262
+ if (n.svgProps.useCode) {
26263
+ const s = ln.trimSvgCode(n.svgProps.code).svgCode;
26264
+ if (n.setSvgCode(s), e && e.has(s)) {
26265
+ const r = e.get(s);
26266
+ n.setImageBitmap(r);
26267
+ } else {
26268
+ console.warn("SVG useCode 资源未在 resourceMap 中找到"), n.setBroken();
26269
+ continue;
26270
+ }
26271
+ } else {
26272
+ const o = n.svgUrl;
26273
+ if (e && e.has(o)) {
26274
+ const s = e.get(o);
26275
+ n.setImageBitmap(s);
26276
+ } else {
26277
+ console.warn("SVG 资源未在 resourceMap 中找到:", o), n.setBroken();
26262
26278
  continue;
26263
26279
  }
26264
26280
  }
26265
- const s = Zt.trimSvgCode(o);
26266
- n.setSvgCode(s.svgCode), await this.genSvgBitmap(n, s.svgCode);
26267
26281
  } catch (o) {
26268
26282
  console.error("加载svg图片出现问题", o), n.setBroken();
26269
26283
  }
26270
26284
  }
26271
26285
  }
26272
- /**
26273
- * 生成 SVG 节点的 ImageBitmap
26274
- * @param svgNode SVG 节点
26275
- * @param svgCode SVG 代码
26276
- */
26277
- async genSvgBitmap(t, e) {
26278
- const n = this.renderManager.getScale();
26279
- try {
26280
- const o = t.baseProps, s = n * o.width, r = n * o.height;
26281
- let i;
26282
- const a = this.resourceManager.getSVGBlobUrl(e, s, r);
26283
- if (a)
26284
- i = a.imageBitmap;
26285
- else {
26286
- const c = new Blob([e], { type: "image/svg+xml" }), h = URL.createObjectURL(c), d = new Image();
26287
- d.width = 2 * s, d.height = 2 * r, await new Promise((x, P) => {
26288
- d.onload = () => x(), d.onerror = P, d.src = h;
26289
- });
26290
- const u = new OffscreenCanvas(2 * s, 2 * r);
26291
- u.getContext("2d").drawImage(d, 0, 0, 2 * s, 2 * r);
26292
- const g = u.transferToImageBitmap();
26293
- i = g, this.resourceManager.setSvgInfo(e, { imageBitmap: g }, s, r), URL.revokeObjectURL(h);
26294
- }
26295
- t.setImageBitmap(i);
26296
- } catch (o) {
26297
- console.error("生成 SVG 纹理出现问题", o), t.setBroken();
26298
- }
26299
- }
26300
- /**
26301
- * 从 URL 加载 ImageBitmap
26302
- * @param url 图片 URL(可以是 blobUrl 或普通 URL)
26303
- */
26304
- async loadImageBitmapFromUrl(t) {
26305
- const n = await (await fetch(t)).blob();
26306
- return await createImageBitmap(n);
26307
- }
26308
26286
  }
26309
26287
  const ew = {
26310
26288
  width: 595,
@@ -26595,7 +26573,7 @@ function Ax() {
26595
26573
  var K = k.prototype;
26596
26574
  return !!(K && K.isReactComponent);
26597
26575
  }
26598
- function on(k, K, ne) {
26576
+ function nn(k, K, ne) {
26599
26577
  if (k == null)
26600
26578
  return "";
26601
26579
  if (typeof k == "function")
@@ -26613,11 +26591,11 @@ function Ax() {
26613
26591
  case a:
26614
26592
  return kn(k.render);
26615
26593
  case d:
26616
- return on(k.type, K, ne);
26594
+ return nn(k.type, K, ne);
26617
26595
  case u: {
26618
26596
  var ye = k, He = ye._payload, Xe = ye._init;
26619
26597
  try {
26620
- return on(Xe(He), K, ne);
26598
+ return nn(Xe(He), K, ne);
26621
26599
  } catch {
26622
26600
  }
26623
26601
  }
@@ -26625,9 +26603,9 @@ function Ax() {
26625
26603
  return "";
26626
26604
  }
26627
26605
  var At = Object.prototype.hasOwnProperty, ss = {}, An = b.ReactDebugCurrentFrame;
26628
- function sn(k) {
26606
+ function on(k) {
26629
26607
  if (k) {
26630
- var K = k._owner, ne = on(k.type, k._source, K ? K.type : null);
26608
+ var K = k._owner, ne = nn(k.type, k._source, K ? K.type : null);
26631
26609
  An.setExtraStackFrame(ne);
26632
26610
  } else
26633
26611
  An.setExtraStackFrame(null);
@@ -26647,7 +26625,7 @@ function Ax() {
26647
26625
  } catch (je) {
26648
26626
  Ie = je;
26649
26627
  }
26650
- Ie && !(Ie instanceof Error) && (sn(He), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ye || "React class", ne, Ce, typeof Ie), sn(null)), Ie instanceof Error && !(Ie.message in ss) && (ss[Ie.message] = !0, sn(He), w("Failed %s type: %s", ne, Ie.message), sn(null));
26628
+ Ie && !(Ie instanceof Error) && (on(He), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ye || "React class", ne, Ce, typeof Ie), on(null)), Ie instanceof Error && !(Ie.message in ss) && (ss[Ie.message] = !0, on(He), w("Failed %s type: %s", ne, Ie.message), on(null));
26651
26629
  }
26652
26630
  }
26653
26631
  }
@@ -26772,7 +26750,7 @@ function Ax() {
26772
26750
  var is = b.ReactCurrentOwner, cr = b.ReactDebugCurrentFrame;
26773
26751
  function Bn(k) {
26774
26752
  if (k) {
26775
- var K = k._owner, ne = on(k.type, k._source, K ? K.type : null);
26753
+ var K = k._owner, ne = nn(k.type, k._source, K ? K.type : null);
26776
26754
  cr.setExtraStackFrame(ne);
26777
26755
  } else
26778
26756
  cr.setExtraStackFrame(null);
@@ -26867,7 +26845,7 @@ Check the top-level render call using <` + ne + ">.");
26867
26845
  typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
26868
26846
  }
26869
26847
  }
26870
- function Oa(k) {
26848
+ function za(k) {
26871
26849
  {
26872
26850
  for (var K = Object.keys(k.props), ne = 0; ne < K.length; ne++) {
26873
26851
  var ye = K[ne];
@@ -26921,16 +26899,16 @@ React keys must be passed directly to JSX without using spread:
26921
26899
  <%s key={someKey} {...props} />`, ls, fn, Ga, fn), pr[fn + ls] = !0;
26922
26900
  }
26923
26901
  }
26924
- return k === n ? Oa(Ke) : Xa(Ke), Ke;
26902
+ return k === n ? za(Ke) : Xa(Ke), Ke;
26925
26903
  }
26926
26904
  }
26927
- function za(k, K, ne) {
26905
+ function Oa(k, K, ne) {
26928
26906
  return fr(k, K, ne, !0);
26929
26907
  }
26930
26908
  function Wa(k, K, ne) {
26931
26909
  return fr(k, K, ne, !1);
26932
26910
  }
26933
- var Ya = Wa, Fa = za;
26911
+ var Ya = Wa, Fa = Oa;
26934
26912
  eo.Fragment = n, eo.jsx = Ya, eo.jsxs = Fa;
26935
26913
  }()), eo;
26936
26914
  }
@@ -26967,7 +26945,7 @@ class nr {
26967
26945
  }
26968
26946
  handle(t, e, n, o) {
26969
26947
  const { node: s, renderText: r, textCursorPosition: i } = t;
26970
- e.execAction(new z());
26948
+ e.execAction(new O());
26971
26949
  const a = e.inputManager.selectionManager.selectionInfo;
26972
26950
  if (a) {
26973
26951
  this.selectionDeleteWorker.work(t, a, e);
@@ -26978,7 +26956,7 @@ class nr {
26978
26956
  const { updateTextProps: c, index: h } = this.computeUpdateTextProps(t, n, o);
26979
26957
  e.execAction(G.create(s.id, [c])), this.editTextWorker.modifyBaseProps(r, s, e);
26980
26958
  const d = this.computeNextCursorIndex(h, n), u = r.getTextCursorPosByIndex(d);
26981
- e.execAction(J.focus(s.id, u)), e.execAction(new O());
26959
+ e.execAction(J.focus(s.id, u)), e.execAction(new z());
26982
26960
  }
26983
26961
  }
26984
26962
  class Bx extends nr {
@@ -27208,9 +27186,9 @@ class Dx {
27208
27186
  }
27209
27187
  work(t, e) {
27210
27188
  const { node: n, renderText: o, textCursorPosition: s } = t, { updateTextProps: r } = this.computeUpdateTextProps(t);
27211
- e.execAction(new z()), e.execAction(G.create(n.id, [r]));
27189
+ e.execAction(new O()), e.execAction(G.create(n.id, [r]));
27212
27190
  const i = this.cursorMoveWorker.moveRight(o, s);
27213
- e.execAction(J.focus(n.id, i)), e.execAction(new O());
27191
+ e.execAction(J.focus(n.id, i)), e.execAction(new z());
27214
27192
  }
27215
27193
  computeUpdateTextProps(t) {
27216
27194
  const { renderText: e, textCursorPosition: n } = t, o = this.lineBreak(e, n);
@@ -27263,7 +27241,7 @@ class Xx {
27263
27241
  }
27264
27242
  }
27265
27243
  }
27266
- let Ox = class extends me {
27244
+ let zx = class extends me {
27267
27245
  constructor() {
27268
27246
  super(...arguments);
27269
27247
  p(this, "styleWorker", new Xx());
@@ -27282,7 +27260,7 @@ let Ox = class extends me {
27282
27260
  const { node: s, renderText: r } = o;
27283
27261
  let i = o.textCursorPosition;
27284
27262
  const a = n.inputManager.selectionManager.selectionInfo;
27285
- n.execAction(new z()), a ? (this.selectionDeleteWorker.work(o, a, n), i = n.inputManager.editTextInfo.textCursorPosition) : n.execAction(J.focus(s.id, i));
27263
+ n.execAction(new O()), a ? (this.selectionDeleteWorker.work(o, a, n), i = n.inputManager.editTextInfo.textCursorPosition) : n.execAction(J.focus(s.id, i));
27286
27264
  const c = i.paragraphIndex;
27287
27265
  this.styleWorker.addParagraph(s, c, n);
27288
27266
  const h = this.lineBreakWorker.lineBreak(r, i), d = r.getIndexByTextCursorPos(i), u = {
@@ -27291,10 +27269,10 @@ let Ox = class extends me {
27291
27269
  };
27292
27270
  n.execAction(G.create(s.id, [u])), this.editTextWorker.modifyBaseProps(r, s, n);
27293
27271
  const f = d + 1, g = r.getTextCursorPosByIndex(f);
27294
- n.execAction(J.focus(s.id, g)), n.execAction(new O());
27272
+ n.execAction(J.focus(s.id, g)), n.execAction(new z());
27295
27273
  }
27296
27274
  };
27297
- class zx extends me {
27275
+ class Ox extends me {
27298
27276
  constructor() {
27299
27277
  super(...arguments);
27300
27278
  p(this, "type", q.Backspace);
@@ -27311,7 +27289,7 @@ class zx extends me {
27311
27289
  return;
27312
27290
  const s = n.inputManager.selectionManager.selectionInfo;
27313
27291
  if (s) {
27314
- n.execAction(new z()), this.selectionDeleteWorker.work(o, s, n), n.execAction(new O());
27292
+ n.execAction(new O()), this.selectionDeleteWorker.work(o, s, n), n.execAction(new z());
27315
27293
  return;
27316
27294
  }
27317
27295
  const { node: r, renderText: i, textCursorPosition: a } = o, c = a.paragraphIndex;
@@ -27319,25 +27297,25 @@ class zx extends me {
27319
27297
  const P = r.getProp(I.TextParagraph).clone(), b = M.getParaStyle(P, c), w = P.paragraphStyles;
27320
27298
  if (b) {
27321
27299
  if (b.level > 0) {
27322
- b.level--, n.execAction(new z()), n.execAction(
27300
+ b.level--, n.execAction(new O()), n.execAction(
27323
27301
  G.create(r.id, [
27324
27302
  {
27325
27303
  type: I.TextParagraph,
27326
27304
  paragraphStyles: w
27327
27305
  }
27328
27306
  ])
27329
- ), n.execAction(J.focus(r.id, a)), n.execAction(new O());
27307
+ ), n.execAction(J.focus(r.id, a)), n.execAction(new z());
27330
27308
  return;
27331
27309
  }
27332
27310
  const T = w.findIndex((A) => A === b);
27333
- w.splice(T, 1), n.execAction(new z()), n.execAction(
27311
+ w.splice(T, 1), n.execAction(new O()), n.execAction(
27334
27312
  G.create(r.id, [
27335
27313
  {
27336
27314
  type: I.TextParagraph,
27337
27315
  paragraphStyles: w
27338
27316
  }
27339
27317
  ])
27340
- ), n.execAction(J.focus(r.id, a)), n.execAction(new O());
27318
+ ), n.execAction(J.focus(r.id, a)), n.execAction(new z());
27341
27319
  return;
27342
27320
  }
27343
27321
  }
@@ -27345,9 +27323,9 @@ class zx extends me {
27345
27323
  type: I.Text,
27346
27324
  richText: d
27347
27325
  }, f = i.getIndexByTextCursorPos(a);
27348
- n.execAction(new z()), n.execAction(J.focus(r.id, a)), n.execAction(G.create(r.id, [u])), this.editTextWorker.modifyBaseProps(i, r, n);
27326
+ n.execAction(new O()), n.execAction(J.focus(r.id, a)), n.execAction(G.create(r.id, [u])), this.editTextWorker.modifyBaseProps(i, r, n);
27349
27327
  const g = f - 1, x = i.getTextCursorPosByIndex(g);
27350
- n.execAction(J.focus(r.id, x)), n.execAction(new O());
27328
+ n.execAction(J.focus(r.id, x)), n.execAction(new z());
27351
27329
  }
27352
27330
  }
27353
27331
  class ns extends me {
@@ -27363,7 +27341,7 @@ class ns extends me {
27363
27341
  if (!o)
27364
27342
  return;
27365
27343
  const { renderText: s, textCursorPosition: r, node: i } = o, a = this.moveCursor(s, r, n);
27366
- n.execAction(new z()), n.execAction(J.focus(i.id, a)), n.execAction(new O());
27344
+ n.execAction(new O()), n.execAction(J.focus(i.id, a)), n.execAction(new z());
27367
27345
  }
27368
27346
  }
27369
27347
  let Wx = class extends ns {
@@ -27441,9 +27419,9 @@ let Ux = class extends me {
27441
27419
  if (!o)
27442
27420
  return;
27443
27421
  const { node: s, textCursorPosition: r, renderText: i } = o;
27444
- n.execAction(new z()), n.execAction(
27422
+ n.execAction(new O()), n.execAction(
27445
27423
  J.selection(s.id, i.headTextCursorPosition(), i.tailTextCursorPosition())
27446
- ), n.execAction(new O());
27424
+ ), n.execAction(new z());
27447
27425
  }
27448
27426
  };
27449
27427
  class $x extends me {
@@ -27463,14 +27441,14 @@ class $x extends me {
27463
27441
  return;
27464
27442
  c.level++;
27465
27443
  const h = a.paragraphStyles;
27466
- n.execAction(new z()), n.execAction(J.focus(s.id, r)), n.execAction(
27444
+ n.execAction(new O()), n.execAction(J.focus(s.id, r)), n.execAction(
27467
27445
  G.create(s.id, [
27468
27446
  {
27469
27447
  type: I.TextParagraph,
27470
27448
  paragraphStyles: h
27471
27449
  }
27472
27450
  ])
27473
- ), n.execAction(J.focus(s.id, r)), n.execAction(new O());
27451
+ ), n.execAction(J.focus(s.id, r)), n.execAction(new z());
27474
27452
  }
27475
27453
  }
27476
27454
  let _x = class extends me {
@@ -27483,13 +27461,13 @@ let _x = class extends me {
27483
27461
  }
27484
27462
  work(e, n) {
27485
27463
  const { editTextInfo: o } = n.inputManager;
27486
- o && (n.execAction(new z()), n.execAction(J.blur(o.node.id)), n.execAction(new O()), n.auxiliaryManager.selectManager.refreshSelectStatus());
27464
+ o && (n.execAction(new O()), n.execAction(J.blur(o.node.id)), n.execAction(new z()), n.auxiliaryManager.selectManager.refreshSelectStatus());
27487
27465
  }
27488
27466
  };
27489
27467
  const jx = /* @__PURE__ */ new Map([
27490
- [q.Enter, [new Ox()]],
27468
+ [q.Enter, [new zx()]],
27491
27469
  [q.Escape, [new _x()]],
27492
- [q.Backspace, [new zx()]],
27470
+ [q.Backspace, [new Ox()]],
27493
27471
  [q.ArrowRight, [new Wx()]],
27494
27472
  [q.ArrowLeft, [new Yx()]],
27495
27473
  [q.ArrowUp, [new Fx()]],
@@ -27637,7 +27615,7 @@ class sy extends me {
27637
27615
  return this.isPressMetaKey(e, n);
27638
27616
  }
27639
27617
  work(e, n) {
27640
- e.preventDefault(), n.execAction(new z()), this.duplicateWorker.work(n), n.execAction(new O());
27618
+ e.preventDefault(), n.execAction(new O()), this.duplicateWorker.work(n), n.execAction(new z());
27641
27619
  }
27642
27620
  }
27643
27621
  class ry extends me {
@@ -27653,7 +27631,7 @@ class ry extends me {
27653
27631
  if (o.length === 0)
27654
27632
  return;
27655
27633
  const s = o.map((r) => r.id);
27656
- n.execAction(new z()), n.execAction(xe.create(s)), n.execAction(new O());
27634
+ n.execAction(new O()), n.execAction(xe.create(s)), n.execAction(new z());
27657
27635
  }
27658
27636
  }
27659
27637
  class iy extends me {
@@ -27862,11 +27840,11 @@ class Jr extends me {
27862
27840
  }
27863
27841
  class os {
27864
27842
  constructor() {
27865
- p(this, "groupBaseWorker", new tn());
27843
+ p(this, "groupBaseWorker", new en());
27866
27844
  p(this, "layoutWorker", new vn());
27867
27845
  p(this, "handlerCtx", new Wi([
27868
27846
  new Ai(),
27869
- new zi(),
27847
+ new Oi(),
27870
27848
  new Bi()
27871
27849
  ]));
27872
27850
  }
@@ -27882,13 +27860,13 @@ class os {
27882
27860
  return;
27883
27861
  this.groupBaseWorker.start(o);
27884
27862
  const s = /* @__PURE__ */ new Set();
27885
- this.batchCollectNodeLinks(o, t, s), t.execAction(new z());
27863
+ this.batchCollectNodeLinks(o, t, s), t.execAction(new O());
27886
27864
  const r = { x: e, y: n }, i = [];
27887
27865
  for (const a of o) {
27888
27866
  const c = this.handlerCtx.handle(a, r);
27889
27867
  i.push(...c);
27890
27868
  }
27891
- t.execAction(new G({ infos: i })), this.groupBaseWorker.work(t, !1), this.layoutWorker.work([...s], t, !1), t.execAction(new O());
27869
+ t.execAction(new G({ infos: i })), this.groupBaseWorker.work(t, !1), this.layoutWorker.work([...s], t, !1), t.execAction(new z());
27892
27870
  }
27893
27871
  batchCollectNodeLinks(t, e, n) {
27894
27872
  const o = e.getSelectNodes();
@@ -28022,21 +28000,21 @@ class vy extends me {
28022
28000
  const s = o[0];
28023
28001
  if (s.type === v.SlideContainer || s.type === v.Section) {
28024
28002
  const i = [...s.children].map((a) => a.id);
28025
- n.execAction(new z()), n.execAction(xe.create(i)), n.execAction(new O());
28003
+ n.execAction(new O()), n.execAction(xe.create(i)), n.execAction(new z());
28026
28004
  return;
28027
28005
  }
28028
28006
  (s.type === v.Shape || s.type === v.CheckboxText) && this.focusSelectionText(s, n);
28029
28007
  }
28030
28008
  focusSelectionText(e, n) {
28031
28009
  if (e.isEmptyText()) {
28032
- n.execAction(new z());
28010
+ n.execAction(new O());
28033
28011
  const o = We.head();
28034
- n.execAction(J.focus(e.id, o)), n.execAction(new O());
28012
+ n.execAction(J.focus(e.id, o)), n.execAction(new z());
28035
28013
  return;
28036
28014
  }
28037
- n.execAction(new z()), n.execAction(
28015
+ n.execAction(new O()), n.execAction(
28038
28016
  J.selection(e.id, We.head(), e.renderText.tailTextCursorPosition())
28039
- ), n.execAction(new O());
28017
+ ), n.execAction(new z());
28040
28018
  }
28041
28019
  }
28042
28020
  const Iy = /* @__PURE__ */ new Map([
@@ -28163,14 +28141,14 @@ export {
28163
28141
  ct as AbsProps,
28164
28142
  Sx as AbsResourceInstance,
28165
28143
  vt as AbsStatusHandler,
28166
- zs as AbsStretchProcessor,
28144
+ Os as AbsStretchProcessor,
28167
28145
  Ut as AbsSubMode,
28168
28146
  Zs as AbsTextSelectionHandler,
28169
28147
  Xf as ActionCache,
28170
28148
  Js as ActionLogGroup,
28171
- Of as ActionManager,
28149
+ zf as ActionManager,
28172
28150
  Kp as ActionMeta,
28173
- Oe as ActionType,
28151
+ ze as ActionType,
28174
28152
  If as AddExecutor,
28175
28153
  Le as AddNodeLog,
28176
28154
  se as AffineMatrix,
@@ -28203,17 +28181,17 @@ export {
28203
28181
  tw as CanvasContainer,
28204
28182
  nw as CanvasInput,
28205
28183
  Ur as CanvasRender,
28206
- zn as CheckSizeProps,
28207
- an as CheckStatusProps,
28184
+ On as CheckSizeProps,
28185
+ rn as CheckStatusProps,
28208
28186
  ji as ClearFocusNodeHandler,
28209
28187
  rd as ClickExpandShapeHandler,
28210
28188
  Je as ClickHandler,
28211
28189
  bn as ClickMode,
28212
- en as ClickProcessor,
28190
+ Jt as ClickProcessor,
28213
28191
  sd as ClickTextHandler,
28214
28192
  Hy as CollaborationManager,
28215
28193
  nt as ColorProps,
28216
- zt as ConnectProps,
28194
+ Ot as ConnectProps,
28217
28195
  Ay as ConnectorPoint,
28218
28196
  By as ControlPoint,
28219
28197
  wg as CopyPasteManager,
@@ -28244,13 +28222,13 @@ export {
28244
28222
  ed as DragMode,
28245
28223
  Jh as DragProcessor,
28246
28224
  Wh as DragSelectTextMode,
28247
- zh as DragSelectTextProcessor,
28225
+ Oh as DragSelectTextProcessor,
28248
28226
  qo as EditTextWorker,
28249
28227
  dw as EmptyNetworkPlugin,
28250
28228
  fg as EmptyPlacePosHandler,
28251
28229
  Nf as EndExecutor,
28252
- O as EndLog,
28253
- Ox as EnterHotKey,
28230
+ z as EndLog,
28231
+ zx as EnterHotKey,
28254
28232
  Qx as EscKey,
28255
28233
  Hf as ExecutorManager,
28256
28234
  Su as ExpandDetector,
@@ -28264,13 +28242,13 @@ export {
28264
28242
  Fi as GroupMode,
28265
28243
  od as GroupProcessor,
28266
28244
  tc as HOVER_ANCHOR_COLOR,
28267
- Jt as HOVER_BOUND_COLOR,
28245
+ qt as HOVER_BOUND_COLOR,
28268
28246
  rc as HighlightRects,
28269
28247
  me as HotKey,
28270
28248
  qr as HotKeyConfig,
28271
28249
  Ty as HotKeyManager,
28272
28250
  nc as HoverBound,
28273
- Oh as HoverNodeDetector,
28251
+ zh as HoverNodeDetector,
28274
28252
  fd as HoverProcessor,
28275
28253
  Mf as ImageUtils,
28276
28254
  Ex as InputCompositionEndHandler,
@@ -28298,7 +28276,7 @@ export {
28298
28276
  bi as MOVE_ALIGN_BUFFER,
28299
28277
  Wy as MainTextId,
28300
28278
  Ky as MeasureWorker,
28301
- zf as MobileUtils,
28279
+ Of as MobileUtils,
28302
28280
  Yo as MoveLayerWorker,
28303
28281
  sc as MultiSelectBound,
28304
28282
  Fc as MultiSelectHandler,
@@ -28319,16 +28297,16 @@ export {
28319
28297
  kt as OolongLine,
28320
28298
  Mt as OolongNode,
28321
28299
  go as OolongSVGNode,
28322
- Zt as OolongSVGUtils,
28323
- zc as OptionHelper,
28300
+ ln as OolongSVGUtils,
28301
+ Oc as OptionHelper,
28324
28302
  Va as PREVIEW_ROOT_ID,
28325
- Oy as ParagraphSpacing,
28303
+ zy as ParagraphSpacing,
28326
28304
  er as PasteNodeHandler,
28327
28305
  qg as Permission,
28328
28306
  m as Point,
28329
28307
  Is as PointerEventPlugin,
28330
28308
  Zu as PolyLineControlPointDetector,
28331
- qt as PosPasteType,
28309
+ Zt as PosPasteType,
28332
28310
  I as PropType,
28333
28311
  Ry as QuadBezierCurve,
28334
28312
  Kx as RKey,
@@ -28343,7 +28321,7 @@ export {
28343
28321
  Wo as ResourceEnumType,
28344
28322
  Ix as ResourceManager,
28345
28323
  ho as ResourceType,
28346
- zr as RootNode,
28324
+ Or as RootNode,
28347
28325
  Cs as RotateDetector,
28348
28326
  qd as RotateMode,
28349
28327
  Zd as RotateProcessor,
@@ -28369,10 +28347,10 @@ export {
28369
28347
  Yc as SingleStatusHandler,
28370
28348
  $h as SingleStretchMode,
28371
28349
  Uh as SingleStretchProcessorV2,
28372
- ze as SlotKeyType,
28350
+ Oe as SlotKeyType,
28373
28351
  Gc as SlotManager,
28374
28352
  kf as StartExecutor,
28375
- z as StartLog,
28353
+ O as StartLog,
28376
28354
  _n as StreamMode,
28377
28355
  lt as StreamProcessor,
28378
28356
  $e as StretchAlignType,
@@ -28392,12 +28370,12 @@ export {
28392
28370
  ku as TextCreateDragProcessor,
28393
28371
  Do as TextCursorMoveWorker,
28394
28372
  We as TextCursorPosition,
28395
- zx as TextDeleteKey,
28373
+ Ox as TextDeleteKey,
28396
28374
  Af as TextFocusExecutor,
28397
28375
  J as TextFocusLog,
28398
28376
  to as TextLine,
28399
28377
  Mr as TextParagraph,
28400
- cn as TextParagraphProps,
28378
+ an as TextParagraphProps,
28401
28379
  Wt as TextParagraphQuoteProps,
28402
28380
  Ge as TextProps,
28403
28381
  ac as TextSelection,
@@ -28426,7 +28404,7 @@ export {
28426
28404
  Ms as graphemeSplitter,
28427
28405
  Qy as intlSplitter,
28428
28406
  Vy as isContains,
28429
- zy as limitLineWidth,
28407
+ Oy as limitLineWidth,
28430
28408
  Iy as normalKeyMap,
28431
28409
  jx as textKeyMap
28432
28410
  };