@antdv-next/x 1.2.1-beta.1 → 1.2.1

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.
Files changed (100) hide show
  1. package/dist/attachments/index.js +1 -2
  2. package/dist/code-highlighter/style/index.d.ts +51 -19
  3. package/dist/code-highlighter/style/index.js +44 -31
  4. package/dist/index.umd.js +54 -44
  5. package/dist/package.js +1 -1
  6. package/dist/sender/hooks/use-speech.js +1 -2
  7. package/dist/suggestion/useActive.js +2 -0
  8. package/dist/theme/util/alias.js +5 -5
  9. package/dist/think/Think.js +2 -3
  10. package/dist/thought-chain/Node.js +2 -3
  11. package/dist/x-provider/index.js +2 -3
  12. package/es/{_basePickBy-CrbncDqR.js → _basePickBy-BL4DHvHb.js} +1 -1
  13. package/es/{_baseUniq-B-qU_Imh.js → _baseUniq-CyFYmJd-.js} +7 -7
  14. package/es/antdv-next-x.esm.js +253 -245
  15. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  16. package/es/{architectureDiagram-2XIMDMQ5-OvuktNfv.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +99 -89
  17. package/es/{blockDiagram-WCTKOSBZ-CS-kh74L.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +36 -33
  18. package/es/{c4Diagram-IC4MRINW-BZGIF4Dk.js → c4Diagram-IC4MRINW-B7y07WFn.js} +24 -16
  19. package/es/{channel-DrSSYyxp.js → channel-CxLj88Pg.js} +1 -1
  20. package/es/{chunk-4BX2VUAB-Rm8-te6i.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  21. package/es/{chunk-55IACEB6-Tre45n-8.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  22. package/es/{chunk-7R4GIKGN-scch4dXY.js → chunk-7R4GIKGN-mKY502R8.js} +6 -4
  23. package/es/{chunk-FMBD7UC4-JmekSPZP.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  24. package/es/{chunk-GEFDOKGD-BEzc6NZw.js → chunk-GEFDOKGD-oBEpn5hN.js} +67 -27
  25. package/es/chunk-GLR3WWYH-B2D9kjtF.js +41 -0
  26. package/es/chunk-HHEYEP7N-DcZkCke2.js +9 -0
  27. package/es/{chunk-JSJVCQXG-_l_UVbaa.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  28. package/es/{chunk-KX2RTZJC-BUWM8pJz.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  29. package/es/{chunk-KYZI473N-BSgb_E0Q.js → chunk-KYZI473N-33-uii7Y.js} +10 -10
  30. package/es/{chunk-MX3YWQON-D602L8pU.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  31. package/es/{chunk-NQ4KR5QH-BPQV0i93.js → chunk-NQ4KR5QH-CprADZhD.js} +44 -40
  32. package/es/{chunk-O4XLMI2P-BMqc3iYa.js → chunk-O4XLMI2P-DBAvycZ-.js} +13 -14
  33. package/es/{chunk-PQ6SQG4A-DcYrzB1X.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  34. package/es/{chunk-PU5JKC2W-TuGY6X1n.js → chunk-PU5JKC2W-DIl8TkGX.js} +22 -26
  35. package/es/{chunk-QZHKN3VN-CKbD02cl.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  36. package/es/{chunk-WL4C6EOR-B31ErTFp.js → chunk-WL4C6EOR-Bhp_3T_o.js} +15 -15
  37. package/es/chunk-XPW4576I-255j2Rgd.js +1146 -0
  38. package/es/{chunk-XZSTWKYB-DYKLwCEy.js → chunk-XZSTWKYB-kjAdbx6i.js} +266 -321
  39. package/es/{chunk-YBOYWFTD-CRiKEIiS.js → chunk-YBOYWFTD-C2IdGsg8.js} +5 -5
  40. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  41. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  42. package/es/{clone-yzFtXY5G.js → clone-DIGEZsKS.js} +1 -1
  43. package/es/{cose-bilkent-S5V4N54A-BM90wTBk.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +36 -31
  44. package/es/{cytoscape.esm-B_-hKv4-.js → cytoscape.esm-DBPri10E.js} +197 -155
  45. package/es/{dagre-DCYVBij1.js → dagre-BHOjJWBG.js} +26 -24
  46. package/es/{dagre-KLK3FWXG-Ced70SgJ.js → dagre-KLK3FWXG-CnJPDj7X.js} +17 -18
  47. package/es/{defaultLocale-yzzuPw6P.js → defaultLocale-aSMWOJHq.js} +4 -1
  48. package/es/{diagram-E7M64L7V-xZCloH_i.js → diagram-E7M64L7V-CBOCgbMd.js} +22 -24
  49. package/es/{diagram-IFDJBPK2-BTmFZhvz.js → diagram-IFDJBPK2-BtubJp0H.js} +11 -11
  50. package/es/{diagram-P4PSJMXO-DX_3B0LB.js → diagram-P4PSJMXO-CI30BBYG.js} +10 -10
  51. package/es/{dist-h4ggShny.js → dist-BpM0Gz7z.js} +1 -1
  52. package/es/{erDiagram-INFDFZHY-MJ_HVY-7.js → erDiagram-INFDFZHY-C8hYuPxm.js} +21 -21
  53. package/es/{flowDiagram-PKNHOUZH-CQIRy1sx.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +40 -33
  54. package/es/{ganttDiagram-A5KZAMGK-Dw9bjWjx.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +33 -21
  55. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  56. package/es/{gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +7 -7
  57. package/es/{graphlib-BMvIh7N7.js → graphlib-DqWOhV4K.js} +2 -2
  58. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  59. package/es/{infoDiagram-LFFYTUFH-CS64-uil.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +4 -4
  60. package/es/{init-sjaVZO3f.js → init-Co4dhKfe.js} +3 -1
  61. package/es/isEmpty-BJdINx-6.js +35 -0
  62. package/es/{ishikawaDiagram-PHBUUO56-C_Hw5UnV.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +12 -12
  63. package/es/{journeyDiagram-4ABVD52K-CFFyM4Ar.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +11 -11
  64. package/es/{kanban-definition-K7BYSVSG-B_R-mA10.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +27 -26
  65. package/es/{katex-C-qdUNlg.js → katex-olkKUfKs.js} +52 -62
  66. package/es/{line-D05MESIS.js → line-Cm2n2y9Z.js} +1 -1
  67. package/es/{linear-B8tPH2Pw.js → linear-D-yDc6KG.js} +6 -4
  68. package/es/{mermaid-parser.core-C_69nk7j.js → mermaid-parser.core-DFgQn74w.js} +8 -8
  69. package/es/mermaid.core-BzgA0NbC.js +680 -0
  70. package/es/{mindmap-definition-YRQLILUH-qgGUYYe3.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +26 -24
  71. package/es/{ordinal-CNQzPcrr.js → ordinal-95c16pGC.js} +1 -1
  72. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  73. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  74. package/es/{pieDiagram-SKSYHLDU-B8-AVOmP.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +11 -11
  75. package/es/{quadrantDiagram-337W2JSQ-C2Z0CN4Z.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +9 -9
  76. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  77. package/es/{requirementDiagram-Z7DCOOCP-Cdj7PwWC.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +18 -18
  78. package/es/{rolldown-runtime-CEY2VRuR.js → rolldown-runtime-Dv1pqm0U.js} +2 -2
  79. package/es/{sankeyDiagram-WA2Y5GQK-BNmU-dM1.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +9 -9
  80. package/es/{sequenceDiagram-2WXFIKYE-pj0uPf22.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +46 -34
  81. package/es/{shiki-runtime-7QG17np_.js → shiki-runtime-BlKUZiZP.js} +41 -44
  82. package/es/{src-Dynw_Lub.js → src-3T61hYex.js} +1 -1
  83. package/es/{stateDiagram-RAJIS63D-BgCfMnGb.js → stateDiagram-RAJIS63D-153LjStx.js} +18 -18
  84. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  85. package/es/{timeline-definition-YZTLITO2-Bj5QKnBI.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +8 -8
  86. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  87. package/es/{vennDiagram-LZ73GAT5-lpWcIvN6.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +13 -13
  88. package/es/{xychartDiagram-JWTSCODW-De1M-7Yz.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +29 -25
  89. package/package.json +1 -1
  90. package/es/architecture-PBZL5I3N-BRGGaMu3.js +0 -3
  91. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +0 -29
  92. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +0 -29
  93. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +0 -3
  94. package/es/info-3K5VOQVL-0F-ZLEMx.js +0 -3
  95. package/es/mermaid.core-BVGVwWcu.js +0 -1914
  96. package/es/packet-RMMSAZCW-CeqtQQ_e.js +0 -3
  97. package/es/pie-UPGHQEXC-BI60FhK4.js +0 -3
  98. package/es/radar-KQ55EAFF-CRwOOFw0.js +0 -3
  99. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +0 -27
  100. package/es/treemap-KZPCXAKY-BlOAFUbR.js +0 -3
@@ -1,6 +1,6 @@
1
- import { h as e } from "./src-Dynw_Lub.js";
2
- import { f as t } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
- import { b as n, d as r } from "./chunk-7R4GIKGN-scch4dXY.js";
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import { f as t } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { b as n, d as r } from "./chunk-7R4GIKGN-mKY502R8.js";
4
4
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YBOYWFTD.mjs
5
5
  var i = /* @__PURE__ */ e(({ flowchart: e }) => {
6
6
  let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
@@ -17,8 +17,8 @@ async function a(i, a) {
17
17
  await Promise.all([...o].map((i) => new Promise((a) => {
18
18
  function o() {
19
19
  if (i.style.display = "flex", i.style.flexDirection = "column", s) {
20
- let e = n().fontSize ? n().fontSize : window.getComputedStyle(document.body).fontSize, [a = r.fontSize] = t(e), o = a * 5 + "px";
21
- i.style.minWidth = o, i.style.maxWidth = o;
20
+ let [e = r.fontSize] = t(n().fontSize ? n().fontSize : window.getComputedStyle(document.body).fontSize), a = e * 5 + "px";
21
+ i.style.minWidth = a, i.style.maxWidth = a;
22
22
  } else i.style.width = "100%";
23
23
  a(i);
24
24
  }
@@ -0,0 +1,29 @@
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import "./chunk-PU5JKC2W-DIl8TkGX.js";
5
+ import "./chunk-FMBD7UC4-B88neS61.js";
6
+ import "./chunk-MX3YWQON-D4cz36rq.js";
7
+ import "./chunk-YBOYWFTD-C2IdGsg8.js";
8
+ import "./chunk-JSJVCQXG-BbVOaXjl.js";
9
+ import "./chunk-55IACEB6-BpkEkHy8.js";
10
+ import "./chunk-KX2RTZJC-Dw3D7Wrw.js";
11
+ import "./chunk-PQ6SQG4A-BITIwHAS.js";
12
+ import "./chunk-KYZI473N-33-uii7Y.js";
13
+ import "./chunk-O4XLMI2P-DBAvycZ-.js";
14
+ import "./chunk-GLR3WWYH-B2D9kjtF.js";
15
+ import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-Bhp_3T_o.js";
16
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-VBA2DB6C.mjs
17
+ var a = {
18
+ parser: n,
19
+ get db() {
20
+ return new i();
21
+ },
22
+ renderer: r,
23
+ styles: t,
24
+ init: /* @__PURE__ */ e((e) => {
25
+ e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
+ }, "init")
27
+ };
28
+ //#endregion
29
+ export { a as diagram };
@@ -0,0 +1,29 @@
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import "./chunk-PU5JKC2W-DIl8TkGX.js";
5
+ import "./chunk-FMBD7UC4-B88neS61.js";
6
+ import "./chunk-MX3YWQON-D4cz36rq.js";
7
+ import "./chunk-YBOYWFTD-C2IdGsg8.js";
8
+ import "./chunk-JSJVCQXG-BbVOaXjl.js";
9
+ import "./chunk-55IACEB6-BpkEkHy8.js";
10
+ import "./chunk-KX2RTZJC-Dw3D7Wrw.js";
11
+ import "./chunk-PQ6SQG4A-BITIwHAS.js";
12
+ import "./chunk-KYZI473N-33-uii7Y.js";
13
+ import "./chunk-O4XLMI2P-DBAvycZ-.js";
14
+ import "./chunk-GLR3WWYH-B2D9kjtF.js";
15
+ import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-Bhp_3T_o.js";
16
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-RAHNMMFH.mjs
17
+ var a = {
18
+ parser: n,
19
+ get db() {
20
+ return new i();
21
+ },
22
+ renderer: r,
23
+ styles: t,
24
+ init: /* @__PURE__ */ e((e) => {
25
+ e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
+ }, "init")
27
+ };
28
+ //#endregion
29
+ export { a as diagram };
@@ -1,4 +1,4 @@
1
- import { y as e } from "./_baseUniq-B-qU_Imh.js";
1
+ import { y as e } from "./_baseUniq-CyFYmJd-.js";
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/clone.js
3
3
  var t = 4;
4
4
  function n(n) {
@@ -1,6 +1,6 @@
1
- import { o as e, t } from "./rolldown-runtime-CEY2VRuR.js";
2
- import { g as n, h as r, p as i } from "./src-Dynw_Lub.js";
3
- import { t as a } from "./cytoscape.esm-B_-hKv4-.js";
1
+ import { o as e, t } from "./rolldown-runtime-Dv1pqm0U.js";
2
+ import { g as n, h as r, p as i } from "./src-3T61hYex.js";
3
+ import { t as a } from "./cytoscape.esm-DBPri10E.js";
4
4
  //#region ../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js
5
5
  var o = /* @__PURE__ */ t(((e, t) => {
6
6
  (function(n, r) {
@@ -96,7 +96,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
96
96
  (function(e, t, n) {
97
97
  var r = n(2), i = n(10), a = n(13), o = n(0), s = n(16), c = n(4);
98
98
  function l(e, t, n, o) {
99
- n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, this.rect = n != null && t != null ? new a(t.x, t.y, n.width, n.height) : new a();
99
+ n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, n != null && t != null ? this.rect = new a(t.x, t.y, n.width, n.height) : this.rect = new a();
100
100
  }
101
101
  for (var u in l.prototype = Object.create(r.prototype), r) l[u] = r[u];
102
102
  l.prototype.getEdges = function() {
@@ -260,11 +260,12 @@ var o = /* @__PURE__ */ t(((e, t) => {
260
260
  if (this.graphManager == null) throw "Graph has no graph mgr!";
261
261
  if (this.getNodes().indexOf(r) > -1) throw "Node already in graph!";
262
262
  return r.owner = this, this.getNodes().push(r), r;
263
+ } else {
264
+ var i = e;
265
+ if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
266
+ if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
267
+ return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
263
268
  }
264
- var i = e;
265
- if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
266
- if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
267
- return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
268
269
  }, f.prototype.remove = function(e) {
269
270
  var t = e;
270
271
  if (e instanceof s) {
@@ -316,7 +317,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
316
317
  var i = t[r];
317
318
  e += i.calcEstimatedSize();
318
319
  }
319
- return this.estimatedSize = e == 0 ? a.EMPTY_COMPOUND_NODE_SIZE : e / Math.sqrt(this.nodes.length), this.estimatedSize;
320
+ return e == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = e / Math.sqrt(this.nodes.length), this.estimatedSize;
320
321
  }, f.prototype.updateConnected = function() {
321
322
  var e = this;
322
323
  if (this.nodes.length == 0) {
@@ -356,16 +357,17 @@ var o = /* @__PURE__ */ t(((e, t) => {
356
357
  if (this.graphs.push(e), e.parent != null) throw "Already has a parent!";
357
358
  if (t.child != null) throw "Already has a child!";
358
359
  return e.parent = t, t.child = e, e;
360
+ } else {
361
+ i = n, r = t, n = e;
362
+ var a = r.getOwner(), o = i.getOwner();
363
+ if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
364
+ if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
365
+ if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
366
+ if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
367
+ if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
368
+ if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
369
+ return n.source.edges.push(n), n.target.edges.push(n), n;
359
370
  }
360
- i = n, r = t, n = e;
361
- var a = r.getOwner(), o = i.getOwner();
362
- if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
363
- if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
364
- if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
365
- if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
366
- if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
367
- if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
368
- return n.source.edges.push(n), n.target.edges.push(n), n;
369
371
  }, a.prototype.remove = function(e) {
370
372
  if (e instanceof r) {
371
373
  var t = e;
@@ -506,7 +508,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
506
508
  var o = a * n[0], s = n[1] / a;
507
509
  n[0] < s ? s = n[0] : o = n[1], n[0] = -1 * i[0] * (s / 2 + r), n[1] = -1 * i[1] * (o / 2 + r);
508
510
  }, i.decideDirectionsForOverlappingNodes = function(e, t, n) {
509
- n[0] = e.getCenterX() < t.getCenterX() ? -1 : 1, n[1] = e.getCenterY() < t.getCenterY() ? -1 : 1;
511
+ e.getCenterX() < t.getCenterX() ? n[0] = -1 : n[0] = 1, e.getCenterY() < t.getCenterY() ? n[1] = -1 : n[1] = 1;
510
512
  }, i.getIntersection2 = function(e, t, n) {
511
513
  var r = e.getCenterX(), i = e.getCenterY(), a = t.getCenterX(), o = t.getCenterY();
512
514
  if (e.intersects(t)) return n[0] = r, n[1] = i, n[2] = a, n[3] = o, !0;
@@ -530,7 +532,9 @@ var o = /* @__PURE__ */ t(((e, t) => {
530
532
  case 3:
531
533
  j = d, A = r + m / D, n[0] = A, n[1] = j;
532
534
  break;
533
- case 4: A = u, j = i + -p * D, n[0] = A, n[1] = j;
535
+ case 4:
536
+ A = u, j = i + -p * D, n[0] = A, n[1] = j;
537
+ break;
534
538
  }
535
539
  if (!w) switch (k) {
536
540
  case 1:
@@ -542,7 +546,9 @@ var o = /* @__PURE__ */ t(((e, t) => {
542
546
  case 3:
543
547
  N = y, M = a + S / D, n[2] = M, n[3] = N;
544
548
  break;
545
- case 4: M = v, N = o + -x * D, n[2] = M, n[3] = N;
549
+ case 4:
550
+ M = v, N = o + -x * D, n[2] = M, n[3] = N;
551
+ break;
546
552
  }
547
553
  }
548
554
  return !1;
@@ -795,8 +801,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
795
801
  if (Array.isArray(e)) {
796
802
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
797
803
  return n;
798
- }
799
- return Array.from(e);
804
+ } else return Array.from(e);
800
805
  }
801
806
  var i = n(0), a = n(6), o = n(3), s = n(1), c = n(5), l = n(4), u = n(17), d = n(27);
802
807
  function f(e) {
@@ -824,7 +829,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
824
829
  }, f.prototype.runLayout = function() {
825
830
  this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
826
831
  var e = !this.checkLayoutSuccess() && this.layout();
827
- return i.ANIMATE !== "during" && (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
832
+ return i.ANIMATE === "during" ? !1 : (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
828
833
  }, f.prototype.doPostLayout = function() {
829
834
  this.incremental || this.transform(), this.update();
830
835
  }, f.prototype.update2 = function() {
@@ -922,9 +927,10 @@ var o = /* @__PURE__ */ t(((e, t) => {
922
927
  i += (o - t) / 50 * (e - 50);
923
928
  }
924
929
  return i;
930
+ } else {
931
+ var s, c;
932
+ return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
925
933
  }
926
- var s, c;
927
- return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
928
934
  }, f.findCenterOfTree = function(e) {
929
935
  var t = [];
930
936
  t = t.concat(e);
@@ -1018,8 +1024,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1018
1024
  if (Array.isArray(e)) {
1019
1025
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
1020
1026
  return n;
1021
- }
1022
- return Array.from(e);
1027
+ } else return Array.from(e);
1023
1028
  }
1024
1029
  var i = n(15), a = n(7), o = n(0), s = n(8), c = n(9);
1025
1030
  function l() {
@@ -1032,7 +1037,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1032
1037
  for (var e, t, n, r, i, s, c = this.getGraphManager().getAllEdges(), l = 0; l < c.length; l++) e = c[l], e.idealLength = this.idealEdgeLength, e.isInterGraph && (n = e.getSource(), r = e.getTarget(), i = e.getSourceInLca().getEstimatedSize(), s = e.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (e.idealLength += i + s - 2 * o.SIMPLE_NODE_SIZE), t = e.getLca().getInclusionTreeDepth(), e.idealLength += a.DEFAULT_EDGE_LENGTH * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (n.getInclusionTreeDepth() + r.getInclusionTreeDepth() - 2 * t));
1033
1038
  }, l.prototype.initSpringEmbedder = function() {
1034
1039
  var e = this.getAllNodes().length;
1035
- this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (this.coolingFactor = e > a.ADAPTATION_LOWER_NODE_LIMIT ? Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1040
+ this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (e > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1036
1041
  }, l.prototype.calcSpringForces = function() {
1037
1042
  for (var e = this.getAllEdges(), t, n = 0; n < e.length; n++) t = e[n], this.calcSpringForce(t, t.idealLength);
1038
1043
  }, l.prototype.calcRepulsionForces = function() {
@@ -1510,7 +1515,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1510
1515
  }, v.prototype.newEdge = function(e) {
1511
1516
  return new s(null, null, e);
1512
1517
  }, v.prototype.initParameters = function() {
1513
- r.prototype.initParameters.call(this, arguments), this.isSubLayout || (this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH < 10 ? 10 : c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = l.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = l.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = l.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = l.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / l.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = l.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
1518
+ r.prototype.initParameters.call(this, arguments), this.isSubLayout || (c.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = l.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = l.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = l.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = l.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / l.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = l.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
1514
1519
  }, v.prototype.layout = function() {
1515
1520
  return u.DEFAULT_CREATE_BENDS_AS_NEEDED && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
1516
1521
  }, v.prototype.classicLayout = function() {
@@ -1933,7 +1938,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1933
1938
  this.options = d(u, e), p(this.options);
1934
1939
  }
1935
1940
  var p = function(e) {
1936
- e.nodeRepulsion != null && (a.DEFAULT_REPULSION_STRENGTH = i.DEFAULT_REPULSION_STRENGTH = e.nodeRepulsion), e.idealEdgeLength != null && (a.DEFAULT_EDGE_LENGTH = i.DEFAULT_EDGE_LENGTH = e.idealEdgeLength), e.edgeElasticity != null && (a.DEFAULT_SPRING_STRENGTH = i.DEFAULT_SPRING_STRENGTH = e.edgeElasticity), e.nestingFactor != null && (a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (a.DEFAULT_GRAVITY_STRENGTH = i.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (a.MAX_ITERATIONS = i.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (a.DEFAULT_GRAVITY_RANGE_FACTOR = i.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (a.DEFAULT_COMPOUND_GRAVITY_STRENGTH = i.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (a.DEFAULT_COOLING_FACTOR_INCREMENTAL = i.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), r.QUALITY = e.quality == "draft" ? 0 : e.quality == "proof" ? 2 : 1, a.NODE_DIMENSIONS_INCLUDE_LABELS = i.NODE_DIMENSIONS_INCLUDE_LABELS = r.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, a.DEFAULT_INCREMENTAL = i.DEFAULT_INCREMENTAL = r.DEFAULT_INCREMENTAL = !e.randomize, a.ANIMATE = i.ANIMATE = r.ANIMATE = e.animate, a.TILE = e.tile, a.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, a.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal;
1941
+ e.nodeRepulsion != null && (a.DEFAULT_REPULSION_STRENGTH = i.DEFAULT_REPULSION_STRENGTH = e.nodeRepulsion), e.idealEdgeLength != null && (a.DEFAULT_EDGE_LENGTH = i.DEFAULT_EDGE_LENGTH = e.idealEdgeLength), e.edgeElasticity != null && (a.DEFAULT_SPRING_STRENGTH = i.DEFAULT_SPRING_STRENGTH = e.edgeElasticity), e.nestingFactor != null && (a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (a.DEFAULT_GRAVITY_STRENGTH = i.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (a.MAX_ITERATIONS = i.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (a.DEFAULT_GRAVITY_RANGE_FACTOR = i.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (a.DEFAULT_COMPOUND_GRAVITY_STRENGTH = i.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (a.DEFAULT_COOLING_FACTOR_INCREMENTAL = i.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.quality == "draft" ? r.QUALITY = 0 : e.quality == "proof" ? r.QUALITY = 2 : r.QUALITY = 1, a.NODE_DIMENSIONS_INCLUDE_LABELS = i.NODE_DIMENSIONS_INCLUDE_LABELS = r.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, a.DEFAULT_INCREMENTAL = i.DEFAULT_INCREMENTAL = r.DEFAULT_INCREMENTAL = !e.randomize, a.ANIMATE = i.ANIMATE = r.ANIMATE = e.animate, a.TILE = e.tile, a.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, a.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal;
1937
1942
  };
1938
1943
  f.prototype.run = function() {
1939
1944
  var e, t, n = this.options;