@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21

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 (71) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
  2. package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
  3. package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
  4. package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
  5. package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
  6. package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
  7. package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
  8. package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
  9. package/dist/assets/worker-BldghCZh.js +3752 -0
  10. package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
  11. package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
  12. package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
  13. package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
  14. package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
  15. package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
  16. package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
  17. package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
  18. package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
  19. package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
  20. package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
  21. package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
  22. package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
  23. package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
  24. package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
  25. package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
  26. package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
  27. package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
  28. package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
  30. package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
  31. package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
  32. package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
  33. package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
  34. package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
  35. package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
  36. package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
  37. package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
  38. package/dist/index-pBmAzQJl.js +235 -0
  39. package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
  40. package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
  41. package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
  42. package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
  43. package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
  44. package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
  45. package/dist/main.js +1 -1
  46. package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
  47. package/dist/min-CYaGuxZ4.js +80 -0
  48. package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
  49. package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
  50. package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
  51. package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
  52. package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
  53. package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
  54. package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
  55. package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
  56. package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
  57. package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
  58. package/dist/style.css +1 -1
  59. package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
  60. package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
  61. package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
  62. package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
  63. package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
  64. package/package.json +37 -37
  65. package/dist/assets/worker-Dz6PPEGc.js +0 -4115
  66. package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
  67. package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
  68. package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
  69. package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
  70. package/dist/min-CQBZldos.js +0 -80
  71. package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
@@ -1,37 +1,37 @@
1
- import { _ as nt, g as qe, s as Je, a as Qe, b as Ke, t as je, q as _e, K as tr, T as er, z as rr, l as Pe, a4 as Le, c as ge, ak as me, d as ir, H as ar, al as nr, am as or } from "./mermaid-DCIbF0Rd.js";
2
- import { p as sr } from "./chunk-4BMEZGHF-CKIxJWxP.js";
3
- import { I as lr } from "./chunk-XZIHB7SX-Bwue5JjE.js";
4
- import { p as hr } from "./radar-MK3ICKWK-BMSp8zaN.js";
1
+ import { _ as nt, g as Je, s as Qe, a as Ke, b as je, t as _e, q as tr, K as er, V as rr, F as ir, G as ar, H as nr, z as or, l as Pe, a5 as Ne, c as Le, an as Ee, d as sr, ao as lr, ap as hr } from "./mermaid-CRRCnedu.js";
2
+ import { p as fr } from "./chunk-353BL4L5-DE1uUKLI.js";
3
+ import { I as cr } from "./chunk-AACKK3MU-DAmuROVD.js";
4
+ import { p as gr } from "./treemap-FKARHQ26-BOli4yXg.js";
5
5
  import { c as Ge } from "./cytoscape.esm-CCQ3SVU1.js";
6
- import { S as fr } from "./main-DLuap1gp.js";
7
- var he = { exports: {} }, fe = { exports: {} }, ce = { exports: {} }, cr = ce.exports, xe;
8
- function ur() {
9
- return xe || (xe = 1, function(A, Y) {
6
+ import { T as ur } from "./main-D9-48wlP.js";
7
+ var he = { exports: {} }, fe = { exports: {} }, ce = { exports: {} }, dr = ce.exports, xe;
8
+ function vr() {
9
+ return xe || (xe = 1, function(C, X) {
10
10
  (function(P, L) {
11
- A.exports = L();
12
- })(cr, function() {
11
+ C.exports = L();
12
+ })(dr, function() {
13
13
  return (
14
14
  /******/
15
15
  function(M) {
16
16
  var P = {};
17
- function L(u) {
18
- if (P[u])
19
- return P[u].exports;
20
- var h = P[u] = {
17
+ function L(g) {
18
+ if (P[g])
19
+ return P[g].exports;
20
+ var h = P[g] = {
21
21
  /******/
22
- i: u,
22
+ i: g,
23
23
  /******/
24
24
  l: false,
25
25
  /******/
26
26
  exports: {}
27
27
  /******/
28
28
  };
29
- return M[u].call(h.exports, h, h.exports, L), h.l = true, h.exports;
29
+ return M[g].call(h.exports, h, h.exports, L), h.l = true, h.exports;
30
30
  }
31
- return L.m = M, L.c = P, L.i = function(u) {
32
- return u;
33
- }, L.d = function(u, h, a) {
34
- L.o(u, h) || Object.defineProperty(u, h, {
31
+ return L.m = M, L.c = P, L.i = function(g) {
32
+ return g;
33
+ }, L.d = function(g, h, a) {
34
+ L.o(g, h) || Object.defineProperty(g, h, {
35
35
  /******/
36
36
  configurable: false,
37
37
  /******/
@@ -40,40 +40,40 @@ function ur() {
40
40
  get: a
41
41
  /******/
42
42
  });
43
- }, L.n = function(u) {
44
- var h = u && u.__esModule ? (
43
+ }, L.n = function(g) {
44
+ var h = g && g.__esModule ? (
45
45
  /******/
46
46
  function() {
47
- return u.default;
47
+ return g.default;
48
48
  }
49
49
  ) : (
50
50
  /******/
51
51
  function() {
52
- return u;
52
+ return g;
53
53
  }
54
54
  );
55
55
  return L.d(h, "a", h), h;
56
- }, L.o = function(u, h) {
57
- return Object.prototype.hasOwnProperty.call(u, h);
56
+ }, L.o = function(g, h) {
57
+ return Object.prototype.hasOwnProperty.call(g, h);
58
58
  }, L.p = "", L(L.s = 28);
59
59
  }([
60
60
  /* 0 */
61
61
  /***/
62
62
  function(M, P, L) {
63
- function u() {
63
+ function g() {
64
64
  }
65
- u.QUALITY = 1, u.DEFAULT_CREATE_BENDS_AS_NEEDED = false, u.DEFAULT_INCREMENTAL = false, u.DEFAULT_ANIMATION_ON_LAYOUT = true, u.DEFAULT_ANIMATION_DURING_LAYOUT = false, u.DEFAULT_ANIMATION_PERIOD = 50, u.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false, u.DEFAULT_GRAPH_MARGIN = 15, u.NODE_DIMENSIONS_INCLUDE_LABELS = false, u.SIMPLE_NODE_SIZE = 40, u.SIMPLE_NODE_HALF_SIZE = u.SIMPLE_NODE_SIZE / 2, u.EMPTY_COMPOUND_NODE_SIZE = 40, u.MIN_EDGE_LENGTH = 1, u.WORLD_BOUNDARY = 1e6, u.INITIAL_WORLD_BOUNDARY = u.WORLD_BOUNDARY / 1e3, u.WORLD_CENTER_X = 1200, u.WORLD_CENTER_Y = 900, M.exports = u;
65
+ g.QUALITY = 1, g.DEFAULT_CREATE_BENDS_AS_NEEDED = false, g.DEFAULT_INCREMENTAL = false, g.DEFAULT_ANIMATION_ON_LAYOUT = true, g.DEFAULT_ANIMATION_DURING_LAYOUT = false, g.DEFAULT_ANIMATION_PERIOD = 50, g.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false, g.DEFAULT_GRAPH_MARGIN = 15, g.NODE_DIMENSIONS_INCLUDE_LABELS = false, g.SIMPLE_NODE_SIZE = 40, g.SIMPLE_NODE_HALF_SIZE = g.SIMPLE_NODE_SIZE / 2, g.EMPTY_COMPOUND_NODE_SIZE = 40, g.MIN_EDGE_LENGTH = 1, g.WORLD_BOUNDARY = 1e6, g.INITIAL_WORLD_BOUNDARY = g.WORLD_BOUNDARY / 1e3, g.WORLD_CENTER_X = 1200, g.WORLD_CENTER_Y = 900, M.exports = g;
66
66
  },
67
67
  /* 1 */
68
68
  /***/
69
69
  function(M, P, L) {
70
- var u = L(2), h = L(8), a = L(9);
70
+ var g = L(2), h = L(8), a = L(9);
71
71
  function r(f, i, v) {
72
- u.call(this, v), this.isOverlapingSourceAndTarget = false, this.vGraphObject = v, this.bendpoints = [], this.source = f, this.target = i;
72
+ g.call(this, v), this.isOverlapingSourceAndTarget = false, this.vGraphObject = v, this.bendpoints = [], this.source = f, this.target = i;
73
73
  }
74
- r.prototype = Object.create(u.prototype);
75
- for (var e in u)
76
- r[e] = u[e];
74
+ r.prototype = Object.create(g.prototype);
75
+ for (var e in g)
76
+ r[e] = g[e];
77
77
  r.prototype.getSource = function() {
78
78
  return this.source;
79
79
  }, r.prototype.getTarget = function() {
@@ -117,21 +117,21 @@ function ur() {
117
117
  /* 2 */
118
118
  /***/
119
119
  function(M, P, L) {
120
- function u(h) {
120
+ function g(h) {
121
121
  this.vGraphObject = h;
122
122
  }
123
- M.exports = u;
123
+ M.exports = g;
124
124
  },
125
125
  /* 3 */
126
126
  /***/
127
127
  function(M, P, L) {
128
- var u = L(2), h = L(10), a = L(13), r = L(0), e = L(16), f = L(5);
128
+ var g = L(2), h = L(10), a = L(13), r = L(0), e = L(16), f = L(5);
129
129
  function i(t, o, s, c) {
130
- s == null && c == null && (c = o), u.call(this, c), t.graphManager != null && (t = t.graphManager), this.estimatedSize = h.MIN_VALUE, this.inclusionTreeDepth = h.MAX_VALUE, this.vGraphObject = c, this.edges = [], this.graphManager = t, s != null && o != null ? this.rect = new a(o.x, o.y, s.width, s.height) : this.rect = new a();
130
+ s == null && c == null && (c = o), g.call(this, c), t.graphManager != null && (t = t.graphManager), this.estimatedSize = h.MIN_VALUE, this.inclusionTreeDepth = h.MAX_VALUE, this.vGraphObject = c, this.edges = [], this.graphManager = t, s != null && o != null ? this.rect = new a(o.x, o.y, s.width, s.height) : this.rect = new a();
131
131
  }
132
- i.prototype = Object.create(u.prototype);
133
- for (var v in u)
134
- i[v] = u[v];
132
+ i.prototype = Object.create(g.prototype);
133
+ for (var v in g)
134
+ i[v] = g[v];
135
135
  i.prototype.getEdges = function() {
136
136
  return this.edges;
137
137
  }, i.prototype.getChild = function() {
@@ -256,45 +256,45 @@ function ur() {
256
256
  /* 4 */
257
257
  /***/
258
258
  function(M, P, L) {
259
- var u = L(0);
259
+ var g = L(0);
260
260
  function h() {
261
261
  }
262
- for (var a in u)
263
- h[a] = u[a];
262
+ for (var a in g)
263
+ h[a] = g[a];
264
264
  h.MAX_ITERATIONS = 2500, h.DEFAULT_EDGE_LENGTH = 50, h.DEFAULT_SPRING_STRENGTH = 0.45, h.DEFAULT_REPULSION_STRENGTH = 4500, h.DEFAULT_GRAVITY_STRENGTH = 0.4, h.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, h.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = true, h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = true, h.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, h.COOLING_ADAPTATION_FACTOR = 0.33, h.ADAPTATION_LOWER_NODE_LIMIT = 1e3, h.ADAPTATION_UPPER_NODE_LIMIT = 5e3, h.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, h.MAX_NODE_DISPLACEMENT = h.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, h.MIN_REPULSION_DIST = h.DEFAULT_EDGE_LENGTH / 10, h.CONVERGENCE_CHECK_PERIOD = 100, h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, h.MIN_EDGE_LENGTH = 1, h.GRID_CALCULATION_CHECK_PERIOD = 10, M.exports = h;
265
265
  },
266
266
  /* 5 */
267
267
  /***/
268
268
  function(M, P, L) {
269
- function u(h, a) {
269
+ function g(h, a) {
270
270
  h == null && a == null ? (this.x = 0, this.y = 0) : (this.x = h, this.y = a);
271
271
  }
272
- u.prototype.getX = function() {
272
+ g.prototype.getX = function() {
273
273
  return this.x;
274
- }, u.prototype.getY = function() {
274
+ }, g.prototype.getY = function() {
275
275
  return this.y;
276
- }, u.prototype.setX = function(h) {
276
+ }, g.prototype.setX = function(h) {
277
277
  this.x = h;
278
- }, u.prototype.setY = function(h) {
278
+ }, g.prototype.setY = function(h) {
279
279
  this.y = h;
280
- }, u.prototype.getDifference = function(h) {
280
+ }, g.prototype.getDifference = function(h) {
281
281
  return new DimensionD(this.x - h.x, this.y - h.y);
282
- }, u.prototype.getCopy = function() {
283
- return new u(this.x, this.y);
284
- }, u.prototype.translate = function(h) {
282
+ }, g.prototype.getCopy = function() {
283
+ return new g(this.x, this.y);
284
+ }, g.prototype.translate = function(h) {
285
285
  return this.x += h.width, this.y += h.height, this;
286
- }, M.exports = u;
286
+ }, M.exports = g;
287
287
  },
288
288
  /* 6 */
289
289
  /***/
290
290
  function(M, P, L) {
291
- var u = L(2), h = L(10), a = L(0), r = L(7), e = L(3), f = L(1), i = L(13), v = L(12), t = L(11);
291
+ var g = L(2), h = L(10), a = L(0), r = L(7), e = L(3), f = L(1), i = L(13), v = L(12), t = L(11);
292
292
  function o(c, l, T) {
293
- u.call(this, T), this.estimatedSize = h.MIN_VALUE, this.margin = a.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = false, this.parent = c, l != null && l instanceof r ? this.graphManager = l : l != null && l instanceof Layout && (this.graphManager = l.graphManager);
293
+ g.call(this, T), this.estimatedSize = h.MIN_VALUE, this.margin = a.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = false, this.parent = c, l != null && l instanceof r ? this.graphManager = l : l != null && l instanceof Layout && (this.graphManager = l.graphManager);
294
294
  }
295
- o.prototype = Object.create(u.prototype);
296
- for (var s in u)
297
- o[s] = u[s];
295
+ o.prototype = Object.create(g.prototype);
296
+ for (var s in g)
297
+ o[s] = g[s];
298
298
  o.prototype.getNodes = function() {
299
299
  return this.nodes;
300
300
  }, o.prototype.getEdges = function() {
@@ -315,12 +315,12 @@ function ur() {
315
315
  return this.isConnected;
316
316
  }, o.prototype.add = function(c, l, T) {
317
317
  if (l == null && T == null) {
318
- var g = c;
318
+ var u = c;
319
319
  if (this.graphManager == null)
320
320
  throw "Graph has no graph mgr!";
321
- if (this.getNodes().indexOf(g) > -1)
321
+ if (this.getNodes().indexOf(u) > -1)
322
322
  throw "Node already in graph!";
323
- return g.owner = this, this.getNodes().push(g), g;
323
+ return u.owner = this, this.getNodes().push(u), u;
324
324
  } else {
325
325
  var d = c;
326
326
  if (!(this.getNodes().indexOf(l) > -1 && this.getNodes().indexOf(T) > -1))
@@ -338,48 +338,48 @@ function ur() {
338
338
  throw "Owner graph is invalid!";
339
339
  if (this.graphManager == null)
340
340
  throw "Owner graph manager is invalid!";
341
- for (var T = l.edges.slice(), g, d = T.length, N = 0; N < d; N++)
342
- g = T[N], g.isInterGraph ? this.graphManager.remove(g) : g.source.owner.remove(g);
341
+ for (var T = l.edges.slice(), u, d = T.length, N = 0; N < d; N++)
342
+ u = T[N], u.isInterGraph ? this.graphManager.remove(u) : u.source.owner.remove(u);
343
343
  var F = this.nodes.indexOf(l);
344
344
  if (F == -1)
345
345
  throw "Node not in owner node list!";
346
346
  this.nodes.splice(F, 1);
347
347
  } else if (c instanceof f) {
348
- var g = c;
349
- if (g == null)
348
+ var u = c;
349
+ if (u == null)
350
350
  throw "Edge is null!";
351
- if (!(g.source != null && g.target != null))
351
+ if (!(u.source != null && u.target != null))
352
352
  throw "Source and/or target is null!";
353
- if (!(g.source.owner != null && g.target.owner != null && g.source.owner == this && g.target.owner == this))
353
+ if (!(u.source.owner != null && u.target.owner != null && u.source.owner == this && u.target.owner == this))
354
354
  throw "Source and/or target owner is invalid!";
355
- var C = g.source.edges.indexOf(g), G = g.target.edges.indexOf(g);
356
- if (!(C > -1 && G > -1))
355
+ var A = u.source.edges.indexOf(u), G = u.target.edges.indexOf(u);
356
+ if (!(A > -1 && G > -1))
357
357
  throw "Source and/or target doesn't know this edge!";
358
- g.source.edges.splice(C, 1), g.target != g.source && g.target.edges.splice(G, 1);
359
- var F = g.source.owner.getEdges().indexOf(g);
358
+ u.source.edges.splice(A, 1), u.target != u.source && u.target.edges.splice(G, 1);
359
+ var F = u.source.owner.getEdges().indexOf(u);
360
360
  if (F == -1)
361
361
  throw "Not in owner's edge list!";
362
- g.source.owner.getEdges().splice(F, 1);
362
+ u.source.owner.getEdges().splice(F, 1);
363
363
  }
364
364
  }, o.prototype.updateLeftTop = function() {
365
- for (var c = h.MAX_VALUE, l = h.MAX_VALUE, T, g, d, N = this.getNodes(), F = N.length, C = 0; C < F; C++) {
366
- var G = N[C];
367
- T = G.getTop(), g = G.getLeft(), c > T && (c = T), l > g && (l = g);
365
+ for (var c = h.MAX_VALUE, l = h.MAX_VALUE, T, u, d, N = this.getNodes(), F = N.length, A = 0; A < F; A++) {
366
+ var G = N[A];
367
+ T = G.getTop(), u = G.getLeft(), c > T && (c = T), l > u && (l = u);
368
368
  }
369
369
  return c == h.MAX_VALUE ? null : (N[0].getParent().paddingLeft != null ? d = N[0].getParent().paddingLeft : d = this.margin, this.left = l - d, this.top = c - d, new v(this.left, this.top));
370
370
  }, o.prototype.updateBounds = function(c) {
371
- for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, g = h.MAX_VALUE, d = -h.MAX_VALUE, N, F, C, G, B, U = this.nodes, K = U.length, D = 0; D < K; D++) {
371
+ for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, u = h.MAX_VALUE, d = -h.MAX_VALUE, N, F, A, G, B, U = this.nodes, K = U.length, D = 0; D < K; D++) {
372
372
  var at = U[D];
373
- c && at.child != null && at.updateBounds(), N = at.getLeft(), F = at.getRight(), C = at.getTop(), G = at.getBottom(), l > N && (l = N), T < F && (T = F), g > C && (g = C), d < G && (d = G);
373
+ c && at.child != null && at.updateBounds(), N = at.getLeft(), F = at.getRight(), A = at.getTop(), G = at.getBottom(), l > N && (l = N), T < F && (T = F), u > A && (u = A), d < G && (d = G);
374
374
  }
375
- var n = new i(l, g, T - l, d - g);
375
+ var n = new i(l, u, T - l, d - u);
376
376
  l == h.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), U[0].getParent().paddingLeft != null ? B = U[0].getParent().paddingLeft : B = this.margin, this.left = n.x - B, this.right = n.x + n.width + B, this.top = n.y - B, this.bottom = n.y + n.height + B;
377
377
  }, o.calculateBounds = function(c) {
378
- for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, g = h.MAX_VALUE, d = -h.MAX_VALUE, N, F, C, G, B = c.length, U = 0; U < B; U++) {
378
+ for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, u = h.MAX_VALUE, d = -h.MAX_VALUE, N, F, A, G, B = c.length, U = 0; U < B; U++) {
379
379
  var K = c[U];
380
- N = K.getLeft(), F = K.getRight(), C = K.getTop(), G = K.getBottom(), l > N && (l = N), T < F && (T = F), g > C && (g = C), d < G && (d = G);
380
+ N = K.getLeft(), F = K.getRight(), A = K.getTop(), G = K.getBottom(), l > N && (l = N), T < F && (T = F), u > A && (u = A), d < G && (d = G);
381
381
  }
382
- var D = new i(l, g, T - l, d - g);
382
+ var D = new i(l, u, T - l, d - u);
383
383
  return D;
384
384
  }, o.prototype.getInclusionTreeDepth = function() {
385
385
  return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
@@ -388,8 +388,8 @@ function ur() {
388
388
  throw "assert failed";
389
389
  return this.estimatedSize;
390
390
  }, o.prototype.calcEstimatedSize = function() {
391
- for (var c = 0, l = this.nodes, T = l.length, g = 0; g < T; g++) {
392
- var d = l[g];
391
+ for (var c = 0, l = this.nodes, T = l.length, u = 0; u < T; u++) {
392
+ var d = l[u];
393
393
  c += d.calcEstimatedSize();
394
394
  }
395
395
  return c == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = c / Math.sqrt(this.nodes.length), this.estimatedSize;
@@ -399,14 +399,14 @@ function ur() {
399
399
  this.isConnected = true;
400
400
  return;
401
401
  }
402
- var l = new t(), T = /* @__PURE__ */ new Set(), g = this.nodes[0], d, N, F = g.withChildren();
402
+ var l = new t(), T = /* @__PURE__ */ new Set(), u = this.nodes[0], d, N, F = u.withChildren();
403
403
  for (F.forEach(function(D) {
404
404
  l.push(D), T.add(D);
405
405
  }); l.length !== 0; ) {
406
- g = l.shift(), d = g.getEdges();
407
- for (var C = d.length, G = 0; G < C; G++) {
406
+ u = l.shift(), d = u.getEdges();
407
+ for (var A = d.length, G = 0; G < A; G++) {
408
408
  var B = d[G];
409
- if (N = B.getOtherEndInGraph(g, this), N != null && !T.has(N)) {
409
+ if (N = B.getOtherEndInGraph(u, this), N != null && !T.has(N)) {
410
410
  var U = N.withChildren();
411
411
  U.forEach(function(D) {
412
412
  l.push(D), T.add(D);
@@ -425,9 +425,9 @@ function ur() {
425
425
  /* 7 */
426
426
  /***/
427
427
  function(M, P, L) {
428
- var u, h = L(1);
428
+ var g, h = L(1);
429
429
  function a(r) {
430
- u = L(6), this.layout = r, this.graphs = [], this.edges = [];
430
+ g = L(6), this.layout = r, this.graphs = [], this.edges = [];
431
431
  }
432
432
  a.prototype.addRoot = function() {
433
433
  var r = this.layout.newGraph(), e = this.layout.newNode(null), f = this.add(r, e);
@@ -463,7 +463,7 @@ function ur() {
463
463
  return f.source.edges.push(f), f.target.edges.push(f), f;
464
464
  }
465
465
  }, a.prototype.remove = function(r) {
466
- if (r instanceof u) {
466
+ if (r instanceof g) {
467
467
  var e = r;
468
468
  if (e.getGraphManager() != this)
469
469
  throw "Graph not in this graph mgr";
@@ -621,7 +621,7 @@ function ur() {
621
621
  /* 8 */
622
622
  /***/
623
623
  function(M, P, L) {
624
- var u = L(12);
624
+ var g = L(12);
625
625
  function h() {
626
626
  }
627
627
  h.calcSeparationAmount = function(a, r, e, f) {
@@ -639,12 +639,12 @@ function ur() {
639
639
  var f = a.getCenterX(), i = a.getCenterY(), v = r.getCenterX(), t = r.getCenterY();
640
640
  if (a.intersects(r))
641
641
  return e[0] = f, e[1] = i, e[2] = v, e[3] = t, true;
642
- var o = a.getX(), s = a.getY(), c = a.getRight(), l = a.getX(), T = a.getBottom(), g = a.getRight(), d = a.getWidthHalf(), N = a.getHeightHalf(), F = r.getX(), C = r.getY(), G = r.getRight(), B = r.getX(), U = r.getBottom(), K = r.getRight(), D = r.getWidthHalf(), at = r.getHeightHalf(), n = false, m = false;
642
+ var o = a.getX(), s = a.getY(), c = a.getRight(), l = a.getX(), T = a.getBottom(), u = a.getRight(), d = a.getWidthHalf(), N = a.getHeightHalf(), F = r.getX(), A = r.getY(), G = r.getRight(), B = r.getX(), U = r.getBottom(), K = r.getRight(), D = r.getWidthHalf(), at = r.getHeightHalf(), n = false, m = false;
643
643
  if (f === v) {
644
644
  if (i > t)
645
645
  return e[0] = f, e[1] = s, e[2] = v, e[3] = U, false;
646
646
  if (i < t)
647
- return e[0] = f, e[1] = T, e[2] = v, e[3] = C, false;
647
+ return e[0] = f, e[1] = T, e[2] = v, e[3] = A, false;
648
648
  } else if (i === t) {
649
649
  if (f > v)
650
650
  return e[0] = o, e[1] = i, e[2] = G, e[3] = t, false;
@@ -652,7 +652,7 @@ function ur() {
652
652
  return e[0] = c, e[1] = i, e[2] = F, e[3] = t, false;
653
653
  } else {
654
654
  var p = a.height / a.width, E = r.height / r.width, y = (t - i) / (v - f), I = void 0, w = void 0, R = void 0, W = void 0, x = void 0, q = void 0;
655
- if (-p === y ? f > v ? (e[0] = l, e[1] = T, n = true) : (e[0] = c, e[1] = s, n = true) : p === y && (f > v ? (e[0] = o, e[1] = s, n = true) : (e[0] = g, e[1] = T, n = true)), -E === y ? v > f ? (e[2] = B, e[3] = U, m = true) : (e[2] = G, e[3] = C, m = true) : E === y && (v > f ? (e[2] = F, e[3] = C, m = true) : (e[2] = K, e[3] = U, m = true)), n && m)
655
+ if (-p === y ? f > v ? (e[0] = l, e[1] = T, n = true) : (e[0] = c, e[1] = s, n = true) : p === y && (f > v ? (e[0] = o, e[1] = s, n = true) : (e[0] = u, e[1] = T, n = true)), -E === y ? v > f ? (e[2] = B, e[3] = U, m = true) : (e[2] = G, e[3] = A, m = true) : E === y && (v > f ? (e[2] = F, e[3] = A, m = true) : (e[2] = K, e[3] = U, m = true)), n && m)
656
656
  return false;
657
657
  if (f > v ? i > t ? (I = this.getCardinalDirection(p, y, 4), w = this.getCardinalDirection(E, y, 2)) : (I = this.getCardinalDirection(-p, y, 3), w = this.getCardinalDirection(-E, y, 1)) : i > t ? (I = this.getCardinalDirection(-p, y, 1), w = this.getCardinalDirection(-E, y, 3)) : (I = this.getCardinalDirection(p, y, 2), w = this.getCardinalDirection(E, y, 4)), !n)
658
658
  switch (I) {
@@ -660,7 +660,7 @@ function ur() {
660
660
  W = s, R = f + -N / y, e[0] = R, e[1] = W;
661
661
  break;
662
662
  case 2:
663
- R = g, W = i + d * y, e[0] = R, e[1] = W;
663
+ R = u, W = i + d * y, e[0] = R, e[1] = W;
664
664
  break;
665
665
  case 3:
666
666
  W = T, R = f + N / y, e[0] = R, e[1] = W;
@@ -672,7 +672,7 @@ function ur() {
672
672
  if (!m)
673
673
  switch (w) {
674
674
  case 1:
675
- q = C, x = v + -at / y, e[2] = x, e[3] = q;
675
+ q = A, x = v + -at / y, e[2] = x, e[3] = q;
676
676
  break;
677
677
  case 2:
678
678
  x = K, q = t + D * y, e[2] = x, e[3] = q;
@@ -691,49 +691,49 @@ function ur() {
691
691
  }, h.getIntersection = function(a, r, e, f) {
692
692
  if (f == null)
693
693
  return this.getIntersection2(a, r, e);
694
- var i = a.x, v = a.y, t = r.x, o = r.y, s = e.x, c = e.y, l = f.x, T = f.y, g = void 0, d = void 0, N = void 0, F = void 0, C = void 0, G = void 0, B = void 0, U = void 0, K = void 0;
695
- return N = o - v, C = i - t, B = t * v - i * o, F = T - c, G = s - l, U = l * c - s * T, K = N * G - F * C, K === 0 ? null : (g = (C * U - G * B) / K, d = (F * B - N * U) / K, new u(g, d));
694
+ var i = a.x, v = a.y, t = r.x, o = r.y, s = e.x, c = e.y, l = f.x, T = f.y, u = void 0, d = void 0, N = void 0, F = void 0, A = void 0, G = void 0, B = void 0, U = void 0, K = void 0;
695
+ return N = o - v, A = i - t, B = t * v - i * o, F = T - c, G = s - l, U = l * c - s * T, K = N * G - F * A, K === 0 ? null : (u = (A * U - G * B) / K, d = (F * B - N * U) / K, new g(u, d));
696
696
  }, h.angleOfVector = function(a, r, e, f) {
697
697
  var i = void 0;
698
698
  return a !== e ? (i = Math.atan((f - r) / (e - a)), e < a ? i += Math.PI : f < r && (i += this.TWO_PI)) : f < r ? i = this.ONE_AND_HALF_PI : i = this.HALF_PI, i;
699
699
  }, h.doIntersect = function(a, r, e, f) {
700
- var i = a.x, v = a.y, t = r.x, o = r.y, s = e.x, c = e.y, l = f.x, T = f.y, g = (t - i) * (T - c) - (l - s) * (o - v);
701
- if (g === 0)
700
+ var i = a.x, v = a.y, t = r.x, o = r.y, s = e.x, c = e.y, l = f.x, T = f.y, u = (t - i) * (T - c) - (l - s) * (o - v);
701
+ if (u === 0)
702
702
  return false;
703
- var d = ((T - c) * (l - i) + (s - l) * (T - v)) / g, N = ((v - o) * (l - i) + (t - i) * (T - v)) / g;
703
+ var d = ((T - c) * (l - i) + (s - l) * (T - v)) / u, N = ((v - o) * (l - i) + (t - i) * (T - v)) / u;
704
704
  return 0 < d && d < 1 && 0 < N && N < 1;
705
705
  }, h.findCircleLineIntersections = function(a, r, e, f, i, v, t) {
706
706
  var o = (e - a) * (e - a) + (f - r) * (f - r), s = 2 * ((a - i) * (e - a) + (r - v) * (f - r)), c = (a - i) * (a - i) + (r - v) * (r - v) - t * t, l = s * s - 4 * o * c;
707
707
  if (l >= 0) {
708
- var T = (-s + Math.sqrt(s * s - 4 * o * c)) / (2 * o), g = (-s - Math.sqrt(s * s - 4 * o * c)) / (2 * o), d = null;
709
- return T >= 0 && T <= 1 ? [T] : g >= 0 && g <= 1 ? [g] : d;
708
+ var T = (-s + Math.sqrt(s * s - 4 * o * c)) / (2 * o), u = (-s - Math.sqrt(s * s - 4 * o * c)) / (2 * o), d = null;
709
+ return T >= 0 && T <= 1 ? [T] : u >= 0 && u <= 1 ? [u] : d;
710
710
  } else return null;
711
711
  }, h.HALF_PI = 0.5 * Math.PI, h.ONE_AND_HALF_PI = 1.5 * Math.PI, h.TWO_PI = 2 * Math.PI, h.THREE_PI = 3 * Math.PI, M.exports = h;
712
712
  },
713
713
  /* 9 */
714
714
  /***/
715
715
  function(M, P, L) {
716
- function u() {
716
+ function g() {
717
717
  }
718
- u.sign = function(h) {
718
+ g.sign = function(h) {
719
719
  return h > 0 ? 1 : h < 0 ? -1 : 0;
720
- }, u.floor = function(h) {
720
+ }, g.floor = function(h) {
721
721
  return h < 0 ? Math.ceil(h) : Math.floor(h);
722
- }, u.ceil = function(h) {
722
+ }, g.ceil = function(h) {
723
723
  return h < 0 ? Math.floor(h) : Math.ceil(h);
724
- }, M.exports = u;
724
+ }, M.exports = g;
725
725
  },
726
726
  /* 10 */
727
727
  /***/
728
728
  function(M, P, L) {
729
- function u() {
729
+ function g() {
730
730
  }
731
- u.MAX_VALUE = 2147483647, u.MIN_VALUE = -2147483648, M.exports = u;
731
+ g.MAX_VALUE = 2147483647, g.MIN_VALUE = -2147483648, M.exports = g;
732
732
  },
733
733
  /* 11 */
734
734
  /***/
735
735
  function(M, P, L) {
736
- var u = /* @__PURE__ */ function() {
736
+ var g = /* @__PURE__ */ function() {
737
737
  function i(v, t) {
738
738
  for (var o = 0; o < t.length; o++) {
739
739
  var s = t[o];
@@ -762,7 +762,7 @@ function ur() {
762
762
  return t.push(o);
763
763
  });
764
764
  }
765
- return u(i, [{
765
+ return g(i, [{
766
766
  key: "size",
767
767
  value: function() {
768
768
  return this.length;
@@ -847,81 +847,81 @@ function ur() {
847
847
  /* 12 */
848
848
  /***/
849
849
  function(M, P, L) {
850
- function u(h, a, r) {
850
+ function g(h, a, r) {
851
851
  this.x = null, this.y = null, h == null && a == null && r == null ? (this.x = 0, this.y = 0) : typeof h == "number" && typeof a == "number" && r == null ? (this.x = h, this.y = a) : h.constructor.name == "Point" && a == null && r == null && (r = h, this.x = r.x, this.y = r.y);
852
852
  }
853
- u.prototype.getX = function() {
853
+ g.prototype.getX = function() {
854
854
  return this.x;
855
- }, u.prototype.getY = function() {
855
+ }, g.prototype.getY = function() {
856
856
  return this.y;
857
- }, u.prototype.getLocation = function() {
858
- return new u(this.x, this.y);
859
- }, u.prototype.setLocation = function(h, a, r) {
857
+ }, g.prototype.getLocation = function() {
858
+ return new g(this.x, this.y);
859
+ }, g.prototype.setLocation = function(h, a, r) {
860
860
  h.constructor.name == "Point" && a == null && r == null ? (r = h, this.setLocation(r.x, r.y)) : typeof h == "number" && typeof a == "number" && r == null && (parseInt(h) == h && parseInt(a) == a ? this.move(h, a) : (this.x = Math.floor(h + 0.5), this.y = Math.floor(a + 0.5)));
861
- }, u.prototype.move = function(h, a) {
861
+ }, g.prototype.move = function(h, a) {
862
862
  this.x = h, this.y = a;
863
- }, u.prototype.translate = function(h, a) {
863
+ }, g.prototype.translate = function(h, a) {
864
864
  this.x += h, this.y += a;
865
- }, u.prototype.equals = function(h) {
865
+ }, g.prototype.equals = function(h) {
866
866
  if (h.constructor.name == "Point") {
867
867
  var a = h;
868
868
  return this.x == a.x && this.y == a.y;
869
869
  }
870
870
  return this == h;
871
- }, u.prototype.toString = function() {
872
- return new u().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
873
- }, M.exports = u;
871
+ }, g.prototype.toString = function() {
872
+ return new g().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
873
+ }, M.exports = g;
874
874
  },
875
875
  /* 13 */
876
876
  /***/
877
877
  function(M, P, L) {
878
- function u(h, a, r, e) {
878
+ function g(h, a, r, e) {
879
879
  this.x = 0, this.y = 0, this.width = 0, this.height = 0, h != null && a != null && r != null && e != null && (this.x = h, this.y = a, this.width = r, this.height = e);
880
880
  }
881
- u.prototype.getX = function() {
881
+ g.prototype.getX = function() {
882
882
  return this.x;
883
- }, u.prototype.setX = function(h) {
883
+ }, g.prototype.setX = function(h) {
884
884
  this.x = h;
885
- }, u.prototype.getY = function() {
885
+ }, g.prototype.getY = function() {
886
886
  return this.y;
887
- }, u.prototype.setY = function(h) {
887
+ }, g.prototype.setY = function(h) {
888
888
  this.y = h;
889
- }, u.prototype.getWidth = function() {
889
+ }, g.prototype.getWidth = function() {
890
890
  return this.width;
891
- }, u.prototype.setWidth = function(h) {
891
+ }, g.prototype.setWidth = function(h) {
892
892
  this.width = h;
893
- }, u.prototype.getHeight = function() {
893
+ }, g.prototype.getHeight = function() {
894
894
  return this.height;
895
- }, u.prototype.setHeight = function(h) {
895
+ }, g.prototype.setHeight = function(h) {
896
896
  this.height = h;
897
- }, u.prototype.getRight = function() {
897
+ }, g.prototype.getRight = function() {
898
898
  return this.x + this.width;
899
- }, u.prototype.getBottom = function() {
899
+ }, g.prototype.getBottom = function() {
900
900
  return this.y + this.height;
901
- }, u.prototype.intersects = function(h) {
901
+ }, g.prototype.intersects = function(h) {
902
902
  return !(this.getRight() < h.x || this.getBottom() < h.y || h.getRight() < this.x || h.getBottom() < this.y);
903
- }, u.prototype.getCenterX = function() {
903
+ }, g.prototype.getCenterX = function() {
904
904
  return this.x + this.width / 2;
905
- }, u.prototype.getMinX = function() {
905
+ }, g.prototype.getMinX = function() {
906
906
  return this.getX();
907
- }, u.prototype.getMaxX = function() {
907
+ }, g.prototype.getMaxX = function() {
908
908
  return this.getX() + this.width;
909
- }, u.prototype.getCenterY = function() {
909
+ }, g.prototype.getCenterY = function() {
910
910
  return this.y + this.height / 2;
911
- }, u.prototype.getMinY = function() {
911
+ }, g.prototype.getMinY = function() {
912
912
  return this.getY();
913
- }, u.prototype.getMaxY = function() {
913
+ }, g.prototype.getMaxY = function() {
914
914
  return this.getY() + this.height;
915
- }, u.prototype.getWidthHalf = function() {
915
+ }, g.prototype.getWidthHalf = function() {
916
916
  return this.width / 2;
917
- }, u.prototype.getHeightHalf = function() {
917
+ }, g.prototype.getHeightHalf = function() {
918
918
  return this.height / 2;
919
- }, M.exports = u;
919
+ }, M.exports = g;
920
920
  },
921
921
  /* 14 */
922
922
  /***/
923
923
  function(M, P, L) {
924
- var u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
924
+ var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
925
925
  return typeof a;
926
926
  } : function(a) {
927
927
  return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
@@ -933,14 +933,14 @@ function ur() {
933
933
  }, h.getString = function(a) {
934
934
  return a == null && (a = h.lastID), "Object#" + a;
935
935
  }, h.isPrimitive = function(a) {
936
- var r = typeof a > "u" ? "undefined" : u(a);
936
+ var r = typeof a > "u" ? "undefined" : g(a);
937
937
  return a == null || r != "object" && r != "function";
938
938
  }, M.exports = h;
939
939
  },
940
940
  /* 15 */
941
941
  /***/
942
942
  function(M, P, L) {
943
- function u(s) {
943
+ function g(s) {
944
944
  if (Array.isArray(s)) {
945
945
  for (var c = 0, l = Array(s.length); c < s.length; c++)
946
946
  l[c] = s[c];
@@ -994,8 +994,8 @@ function ur() {
994
994
  for (var l = c.getChild().getNodes(), T = 0; T < l.length; T++)
995
995
  update(l[T]);
996
996
  if (c.vGraphObject != null) {
997
- var g = c.vGraphObject;
998
- g.update(c);
997
+ var u = c.vGraphObject;
998
+ u.update(c);
999
999
  }
1000
1000
  } else if (s instanceof e) {
1001
1001
  var d = s;
@@ -1006,8 +1006,8 @@ function ur() {
1006
1006
  } else if (s instanceof f) {
1007
1007
  var F = s;
1008
1008
  if (F.vGraphObject != null) {
1009
- var C = F.vGraphObject;
1010
- C.update(F);
1009
+ var A = F.vGraphObject;
1010
+ A.update(F);
1011
1011
  }
1012
1012
  }
1013
1013
  }, o.prototype.initParameters = function() {
@@ -1019,28 +1019,28 @@ function ur() {
1019
1019
  var c = new v(), l = this.graphManager.getRoot().updateLeftTop();
1020
1020
  if (l != null) {
1021
1021
  c.setWorldOrgX(s.x), c.setWorldOrgY(s.y), c.setDeviceOrgX(l.x), c.setDeviceOrgY(l.y);
1022
- for (var T = this.getAllNodes(), g, d = 0; d < T.length; d++)
1023
- g = T[d], g.transform(c);
1022
+ for (var T = this.getAllNodes(), u, d = 0; d < T.length; d++)
1023
+ u = T[d], u.transform(c);
1024
1024
  }
1025
1025
  }
1026
1026
  }, o.prototype.positionNodesRandomly = function(s) {
1027
1027
  if (s == null)
1028
1028
  this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(true);
1029
1029
  else
1030
- for (var c, l, T = s.getNodes(), g = 0; g < T.length; g++)
1031
- c = T[g], l = c.getChild(), l == null || l.getNodes().length == 0 ? c.scatter() : (this.positionNodesRandomly(l), c.updateBounds());
1030
+ for (var c, l, T = s.getNodes(), u = 0; u < T.length; u++)
1031
+ c = T[u], l = c.getChild(), l == null || l.getNodes().length == 0 ? c.scatter() : (this.positionNodesRandomly(l), c.updateBounds());
1032
1032
  }, o.prototype.getFlatForest = function() {
1033
- for (var s = [], c = true, l = this.graphManager.getRoot().getNodes(), T = true, g = 0; g < l.length; g++)
1034
- l[g].getChild() != null && (T = false);
1033
+ for (var s = [], c = true, l = this.graphManager.getRoot().getNodes(), T = true, u = 0; u < l.length; u++)
1034
+ l[u].getChild() != null && (T = false);
1035
1035
  if (!T)
1036
1036
  return s;
1037
- var d = /* @__PURE__ */ new Set(), N = [], F = /* @__PURE__ */ new Map(), C = [];
1038
- for (C = C.concat(l); C.length > 0 && c; ) {
1039
- for (N.push(C[0]); N.length > 0 && c; ) {
1037
+ var d = /* @__PURE__ */ new Set(), N = [], F = /* @__PURE__ */ new Map(), A = [];
1038
+ for (A = A.concat(l); A.length > 0 && c; ) {
1039
+ for (N.push(A[0]); N.length > 0 && c; ) {
1040
1040
  var G = N[0];
1041
1041
  N.splice(0, 1), d.add(G);
1042
- for (var B = G.getEdges(), g = 0; g < B.length; g++) {
1043
- var U = B[g].getOtherEnd(G);
1042
+ for (var B = G.getEdges(), u = 0; u < B.length; u++) {
1043
+ var U = B[u].getOtherEnd(G);
1044
1044
  if (F.get(G) != U)
1045
1045
  if (!d.has(U))
1046
1046
  N.push(U), F.set(U, G);
@@ -1053,18 +1053,18 @@ function ur() {
1053
1053
  if (!c)
1054
1054
  s = [];
1055
1055
  else {
1056
- var K = [].concat(u(d));
1056
+ var K = [].concat(g(d));
1057
1057
  s.push(K);
1058
- for (var g = 0; g < K.length; g++) {
1059
- var D = K[g], at = C.indexOf(D);
1060
- at > -1 && C.splice(at, 1);
1058
+ for (var u = 0; u < K.length; u++) {
1059
+ var D = K[u], at = A.indexOf(D);
1060
+ at > -1 && A.splice(at, 1);
1061
1061
  }
1062
1062
  d = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Map();
1063
1063
  }
1064
1064
  }
1065
1065
  return s;
1066
1066
  }, o.prototype.createDummyNodesForBendpoints = function(s) {
1067
- for (var c = [], l = s.source, T = this.graphManager.calcLowestCommonAncestor(s.source, s.target), g = 0; g < s.bendpoints.length; g++) {
1067
+ for (var c = [], l = s.source, T = this.graphManager.calcLowestCommonAncestor(s.source, s.target), u = 0; u < s.bendpoints.length; u++) {
1068
1068
  var d = this.newNode(null);
1069
1069
  d.setRect(new Point(0, 0), new Dimension(1, 1)), T.add(d);
1070
1070
  var N = this.newEdge(null);
@@ -1074,12 +1074,12 @@ function ur() {
1074
1074
  return this.graphManager.add(N, l, s.target), this.edgeToDummyNodes.set(s, c), s.isInterGraph() ? this.graphManager.remove(s) : T.remove(s), c;
1075
1075
  }, o.prototype.createBendpointsFromDummyNodes = function() {
1076
1076
  var s = [];
1077
- s = s.concat(this.graphManager.getAllEdges()), s = [].concat(u(this.edgeToDummyNodes.keys())).concat(s);
1077
+ s = s.concat(this.graphManager.getAllEdges()), s = [].concat(g(this.edgeToDummyNodes.keys())).concat(s);
1078
1078
  for (var c = 0; c < s.length; c++) {
1079
1079
  var l = s[c];
1080
1080
  if (l.bendpoints.length > 0) {
1081
- for (var T = this.edgeToDummyNodes.get(l), g = 0; g < T.length; g++) {
1082
- var d = T[g], N = new i(d.getCenterX(), d.getCenterY()), F = l.bendpoints.get(g);
1081
+ for (var T = this.edgeToDummyNodes.get(l), u = 0; u < T.length; u++) {
1082
+ var d = T[u], N = new i(d.getCenterX(), d.getCenterY()), F = l.bendpoints.get(u);
1083
1083
  F.x = N.x, F.y = N.y, d.getOwner().remove(d);
1084
1084
  }
1085
1085
  this.graphManager.add(l, l.source, l.target);
@@ -1087,30 +1087,30 @@ function ur() {
1087
1087
  }
1088
1088
  }, o.transform = function(s, c, l, T) {
1089
1089
  if (l != null && T != null) {
1090
- var g = c;
1090
+ var u = c;
1091
1091
  if (s <= 50) {
1092
1092
  var d = c / l;
1093
- g -= (c - d) / 50 * (50 - s);
1093
+ u -= (c - d) / 50 * (50 - s);
1094
1094
  } else {
1095
1095
  var N = c * T;
1096
- g += (N - c) / 50 * (s - 50);
1096
+ u += (N - c) / 50 * (s - 50);
1097
1097
  }
1098
- return g;
1098
+ return u;
1099
1099
  } else {
1100
- var F, C;
1101
- return s <= 50 ? (F = 9 * c / 500, C = c / 10) : (F = 9 * c / 50, C = -8 * c), F * s + C;
1100
+ var F, A;
1101
+ return s <= 50 ? (F = 9 * c / 500, A = c / 10) : (F = 9 * c / 50, A = -8 * c), F * s + A;
1102
1102
  }
1103
1103
  }, o.findCenterOfTree = function(s) {
1104
1104
  var c = [];
1105
1105
  c = c.concat(s);
1106
- var l = [], T = /* @__PURE__ */ new Map(), g = false, d = null;
1107
- (c.length == 1 || c.length == 2) && (g = true, d = c[0]);
1106
+ var l = [], T = /* @__PURE__ */ new Map(), u = false, d = null;
1107
+ (c.length == 1 || c.length == 2) && (u = true, d = c[0]);
1108
1108
  for (var N = 0; N < c.length; N++) {
1109
- var F = c[N], C = F.getNeighborsList().size;
1110
- T.set(F, F.getNeighborsList().size), C == 1 && l.push(F);
1109
+ var F = c[N], A = F.getNeighborsList().size;
1110
+ T.set(F, F.getNeighborsList().size), A == 1 && l.push(F);
1111
1111
  }
1112
1112
  var G = [];
1113
- for (G = G.concat(l); !g; ) {
1113
+ for (G = G.concat(l); !u; ) {
1114
1114
  var B = [];
1115
1115
  B = B.concat(G), G = [];
1116
1116
  for (var N = 0; N < c.length; N++) {
@@ -1124,7 +1124,7 @@ function ur() {
1124
1124
  }
1125
1125
  });
1126
1126
  }
1127
- l = l.concat(G), (c.length == 1 || c.length == 2) && (g = true, d = c[0]);
1127
+ l = l.concat(G), (c.length == 1 || c.length == 2) && (u = true, d = c[0]);
1128
1128
  }
1129
1129
  return d;
1130
1130
  }, o.prototype.setGraphManager = function(s) {
@@ -1134,16 +1134,16 @@ function ur() {
1134
1134
  /* 16 */
1135
1135
  /***/
1136
1136
  function(M, P, L) {
1137
- function u() {
1137
+ function g() {
1138
1138
  }
1139
- u.seed = 1, u.x = 0, u.nextDouble = function() {
1140
- return u.x = Math.sin(u.seed++) * 1e4, u.x - Math.floor(u.x);
1141
- }, M.exports = u;
1139
+ g.seed = 1, g.x = 0, g.nextDouble = function() {
1140
+ return g.x = Math.sin(g.seed++) * 1e4, g.x - Math.floor(g.x);
1141
+ }, M.exports = g;
1142
1142
  },
1143
1143
  /* 17 */
1144
1144
  /***/
1145
1145
  function(M, P, L) {
1146
- var u = L(5);
1146
+ var g = L(5);
1147
1147
  function h(a, r) {
1148
1148
  this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1149
1149
  }
@@ -1192,14 +1192,14 @@ function ur() {
1192
1192
  var r = 0, e = this.ldeviceExtY;
1193
1193
  return e != 0 && (r = this.lworldOrgY + (a - this.ldeviceOrgY) * this.lworldExtY / e), r;
1194
1194
  }, h.prototype.inverseTransformPoint = function(a) {
1195
- var r = new u(this.inverseTransformX(a.x), this.inverseTransformY(a.y));
1195
+ var r = new g(this.inverseTransformX(a.x), this.inverseTransformY(a.y));
1196
1196
  return r;
1197
1197
  }, M.exports = h;
1198
1198
  },
1199
1199
  /* 18 */
1200
1200
  /***/
1201
1201
  function(M, P, L) {
1202
- function u(t) {
1202
+ function g(t) {
1203
1203
  if (Array.isArray(t)) {
1204
1204
  for (var o = 0, s = Array(t.length); o < t.length; o++)
1205
1205
  s[o] = t[o];
@@ -1217,8 +1217,8 @@ function ur() {
1217
1217
  i.prototype.initParameters = function() {
1218
1218
  h.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1219
1219
  }, i.prototype.calcIdealEdgeLengths = function() {
1220
- for (var t, o, s, c, l, T, g, d = this.getGraphManager().getAllEdges(), N = 0; N < d.length; N++)
1221
- t = d[N], o = t.idealLength, t.isInterGraph && (c = t.getSource(), l = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), g = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + g - 2 * r.SIMPLE_NODE_SIZE), s = t.getLca().getInclusionTreeDepth(), t.idealLength += o * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + l.getInclusionTreeDepth() - 2 * s));
1220
+ for (var t, o, s, c, l, T, u, d = this.getGraphManager().getAllEdges(), N = 0; N < d.length; N++)
1221
+ t = d[N], o = t.idealLength, t.isInterGraph && (c = t.getSource(), l = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), u = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + u - 2 * r.SIMPLE_NODE_SIZE), s = t.getLca().getInclusionTreeDepth(), t.idealLength += o * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + l.getInclusionTreeDepth() - 2 * s));
1222
1222
  }, i.prototype.initSpringEmbedder = function() {
1223
1223
  var t = this.getAllNodes().length;
1224
1224
  this.incremental ? (t > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (t - 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) : (t > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (t - 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.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
@@ -1226,14 +1226,14 @@ function ur() {
1226
1226
  for (var t = this.getAllEdges(), o, s = 0; s < t.length; s++)
1227
1227
  o = t[s], this.calcSpringForce(o, o.idealLength);
1228
1228
  }, i.prototype.calcRepulsionForces = function() {
1229
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, s, c, l, T, g = this.getAllNodes(), d;
1229
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, s, c, l, T, u = this.getAllNodes(), d;
1230
1230
  if (this.useFRGridVariant)
1231
- for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && t && this.updateGrid(), d = /* @__PURE__ */ new Set(), s = 0; s < g.length; s++)
1232
- l = g[s], this.calculateRepulsionForceOfANode(l, d, t, o), d.add(l);
1231
+ for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && t && this.updateGrid(), d = /* @__PURE__ */ new Set(), s = 0; s < u.length; s++)
1232
+ l = u[s], this.calculateRepulsionForceOfANode(l, d, t, o), d.add(l);
1233
1233
  else
1234
- for (s = 0; s < g.length; s++)
1235
- for (l = g[s], c = s + 1; c < g.length; c++)
1236
- T = g[c], l.getOwner() == T.getOwner() && this.calcRepulsionForce(l, T);
1234
+ for (s = 0; s < u.length; s++)
1235
+ for (l = u[s], c = s + 1; c < u.length; c++)
1236
+ T = u[c], l.getOwner() == T.getOwner() && this.calcRepulsionForce(l, T);
1237
1237
  }, i.prototype.calcGravitationalForces = function() {
1238
1238
  for (var t, o = this.getAllNodesToApplyGravitation(), s = 0; s < o.length; s++)
1239
1239
  t = o[s], this.calcGravitationalForce(t);
@@ -1241,23 +1241,23 @@ function ur() {
1241
1241
  for (var t = this.getAllNodes(), o, s = 0; s < t.length; s++)
1242
1242
  o = t[s], o.move();
1243
1243
  }, i.prototype.calcSpringForce = function(t, o) {
1244
- var s = t.getSource(), c = t.getTarget(), l, T, g, d;
1244
+ var s = t.getSource(), c = t.getTarget(), l, T, u, d;
1245
1245
  if (this.uniformLeafNodeSizes && s.getChild() == null && c.getChild() == null)
1246
1246
  t.updateLengthSimple();
1247
1247
  else if (t.updateLength(), t.isOverlapingSourceAndTarget)
1248
1248
  return;
1249
- l = t.getLength(), l != 0 && (T = t.edgeElasticity * (l - o), g = T * (t.lengthX / l), d = T * (t.lengthY / l), s.springForceX += g, s.springForceY += d, c.springForceX -= g, c.springForceY -= d);
1249
+ l = t.getLength(), l != 0 && (T = t.edgeElasticity * (l - o), u = T * (t.lengthX / l), d = T * (t.lengthY / l), s.springForceX += u, s.springForceY += d, c.springForceX -= u, c.springForceY -= d);
1250
1250
  }, i.prototype.calcRepulsionForce = function(t, o) {
1251
- var s = t.getRect(), c = o.getRect(), l = new Array(2), T = new Array(4), g, d, N, F, C, G, B;
1251
+ var s = t.getRect(), c = o.getRect(), l = new Array(2), T = new Array(4), u, d, N, F, A, G, B;
1252
1252
  if (s.intersects(c)) {
1253
1253
  e.calcSeparationAmount(s, c, l, a.DEFAULT_EDGE_LENGTH / 2), G = 2 * l[0], B = 2 * l[1];
1254
1254
  var U = t.noOfChildren * o.noOfChildren / (t.noOfChildren + o.noOfChildren);
1255
1255
  t.repulsionForceX -= U * G, t.repulsionForceY -= U * B, o.repulsionForceX += U * G, o.repulsionForceY += U * B;
1256
1256
  } else
1257
- this.uniformLeafNodeSizes && t.getChild() == null && o.getChild() == null ? (g = c.getCenterX() - s.getCenterX(), d = c.getCenterY() - s.getCenterY()) : (e.getIntersection(s, c, T), g = T[2] - T[0], d = T[3] - T[1]), Math.abs(g) < a.MIN_REPULSION_DIST && (g = f.sign(g) * a.MIN_REPULSION_DIST), Math.abs(d) < a.MIN_REPULSION_DIST && (d = f.sign(d) * a.MIN_REPULSION_DIST), N = g * g + d * d, F = Math.sqrt(N), C = (t.nodeRepulsion / 2 + o.nodeRepulsion / 2) * t.noOfChildren * o.noOfChildren / N, G = C * g / F, B = C * d / F, t.repulsionForceX -= G, t.repulsionForceY -= B, o.repulsionForceX += G, o.repulsionForceY += B;
1257
+ this.uniformLeafNodeSizes && t.getChild() == null && o.getChild() == null ? (u = c.getCenterX() - s.getCenterX(), d = c.getCenterY() - s.getCenterY()) : (e.getIntersection(s, c, T), u = T[2] - T[0], d = T[3] - T[1]), Math.abs(u) < a.MIN_REPULSION_DIST && (u = f.sign(u) * a.MIN_REPULSION_DIST), Math.abs(d) < a.MIN_REPULSION_DIST && (d = f.sign(d) * a.MIN_REPULSION_DIST), N = u * u + d * d, F = Math.sqrt(N), A = (t.nodeRepulsion / 2 + o.nodeRepulsion / 2) * t.noOfChildren * o.noOfChildren / N, G = A * u / F, B = A * d / F, t.repulsionForceX -= G, t.repulsionForceY -= B, o.repulsionForceX += G, o.repulsionForceY += B;
1258
1258
  }, i.prototype.calcGravitationalForce = function(t) {
1259
- var o, s, c, l, T, g, d, N;
1260
- o = t.getOwner(), s = (o.getRight() + o.getLeft()) / 2, c = (o.getTop() + o.getBottom()) / 2, l = t.getCenterX() - s, T = t.getCenterY() - c, g = Math.abs(l) + t.getWidth() / 2, d = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (N = o.getEstimatedSize() * this.gravityRangeFactor, (g > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l, t.gravitationForceY = -this.gravityConstant * T)) : (N = o.getEstimatedSize() * this.compoundGravityRangeFactor, (g > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant));
1259
+ var o, s, c, l, T, u, d, N;
1260
+ o = t.getOwner(), s = (o.getRight() + o.getLeft()) / 2, c = (o.getTop() + o.getBottom()) / 2, l = t.getCenterX() - s, T = t.getCenterY() - c, u = Math.abs(l) + t.getWidth() / 2, d = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (N = o.getEstimatedSize() * this.gravityRangeFactor, (u > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l, t.gravitationForceY = -this.gravityConstant * T)) : (N = o.getEstimatedSize() * this.compoundGravityRangeFactor, (u > N || d > N) && (t.gravitationForceX = -this.gravityConstant * l * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant));
1261
1261
  }, i.prototype.isConverged = function() {
1262
1262
  var t, o = false;
1263
1263
  return this.totalIterations > this.maxIterations / 3 && (o = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), t = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, t || o;
@@ -1276,11 +1276,11 @@ function ur() {
1276
1276
  c[l][T] = new Array();
1277
1277
  return c;
1278
1278
  }, i.prototype.addNodeToGrid = function(t, o, s) {
1279
- var c = 0, l = 0, T = 0, g = 0;
1280
- c = parseInt(Math.floor((t.getRect().x - o) / this.repulsionRange)), l = parseInt(Math.floor((t.getRect().width + t.getRect().x - o) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - s) / this.repulsionRange)), g = parseInt(Math.floor((t.getRect().height + t.getRect().y - s) / this.repulsionRange));
1279
+ var c = 0, l = 0, T = 0, u = 0;
1280
+ c = parseInt(Math.floor((t.getRect().x - o) / this.repulsionRange)), l = parseInt(Math.floor((t.getRect().width + t.getRect().x - o) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - s) / this.repulsionRange)), u = parseInt(Math.floor((t.getRect().height + t.getRect().y - s) / this.repulsionRange));
1281
1281
  for (var d = c; d <= l; d++)
1282
- for (var N = T; N <= g; N++)
1283
- this.grid[d][N].push(t), t.setGridCoordinates(c, l, T, g);
1282
+ for (var N = T; N <= u; N++)
1283
+ this.grid[d][N].push(t), t.setGridCoordinates(c, l, T, u);
1284
1284
  }, i.prototype.updateGrid = function() {
1285
1285
  var t, o, s = this.getAllNodes();
1286
1286
  for (this.grid = this.calcGrid(this.graphManager.getRoot()), t = 0; t < s.length; t++)
@@ -1289,16 +1289,16 @@ function ur() {
1289
1289
  if (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && s || c) {
1290
1290
  var l = /* @__PURE__ */ new Set();
1291
1291
  t.surrounding = new Array();
1292
- for (var T, g = this.grid, d = t.startX - 1; d < t.finishX + 2; d++)
1292
+ for (var T, u = this.grid, d = t.startX - 1; d < t.finishX + 2; d++)
1293
1293
  for (var N = t.startY - 1; N < t.finishY + 2; N++)
1294
- if (!(d < 0 || N < 0 || d >= g.length || N >= g[0].length)) {
1295
- for (var F = 0; F < g[d][N].length; F++)
1296
- if (T = g[d][N][F], !(t.getOwner() != T.getOwner() || t == T) && !o.has(T) && !l.has(T)) {
1297
- var C = Math.abs(t.getCenterX() - T.getCenterX()) - (t.getWidth() / 2 + T.getWidth() / 2), G = Math.abs(t.getCenterY() - T.getCenterY()) - (t.getHeight() / 2 + T.getHeight() / 2);
1298
- C <= this.repulsionRange && G <= this.repulsionRange && l.add(T);
1294
+ if (!(d < 0 || N < 0 || d >= u.length || N >= u[0].length)) {
1295
+ for (var F = 0; F < u[d][N].length; F++)
1296
+ if (T = u[d][N][F], !(t.getOwner() != T.getOwner() || t == T) && !o.has(T) && !l.has(T)) {
1297
+ var A = Math.abs(t.getCenterX() - T.getCenterX()) - (t.getWidth() / 2 + T.getWidth() / 2), G = Math.abs(t.getCenterY() - T.getCenterY()) - (t.getHeight() / 2 + T.getHeight() / 2);
1298
+ A <= this.repulsionRange && G <= this.repulsionRange && l.add(T);
1299
1299
  }
1300
1300
  }
1301
- t.surrounding = [].concat(u(l));
1301
+ t.surrounding = [].concat(g(l));
1302
1302
  }
1303
1303
  for (d = 0; d < t.surrounding.length; d++)
1304
1304
  this.calcRepulsionForce(t, t.surrounding[d]);
@@ -1309,25 +1309,25 @@ function ur() {
1309
1309
  /* 19 */
1310
1310
  /***/
1311
1311
  function(M, P, L) {
1312
- var u = L(1), h = L(4);
1312
+ var g = L(1), h = L(4);
1313
1313
  function a(e, f, i) {
1314
- u.call(this, e, f, i), this.idealLength = h.DEFAULT_EDGE_LENGTH, this.edgeElasticity = h.DEFAULT_SPRING_STRENGTH;
1314
+ g.call(this, e, f, i), this.idealLength = h.DEFAULT_EDGE_LENGTH, this.edgeElasticity = h.DEFAULT_SPRING_STRENGTH;
1315
1315
  }
1316
- a.prototype = Object.create(u.prototype);
1317
- for (var r in u)
1318
- a[r] = u[r];
1316
+ a.prototype = Object.create(g.prototype);
1317
+ for (var r in g)
1318
+ a[r] = g[r];
1319
1319
  M.exports = a;
1320
1320
  },
1321
1321
  /* 20 */
1322
1322
  /***/
1323
1323
  function(M, P, L) {
1324
- var u = L(3), h = L(4);
1324
+ var g = L(3), h = L(4);
1325
1325
  function a(e, f, i, v) {
1326
- u.call(this, e, f, i, v), this.nodeRepulsion = h.DEFAULT_REPULSION_STRENGTH, this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0, this.startX = 0, this.finishX = 0, this.startY = 0, this.finishY = 0, this.surrounding = [];
1326
+ g.call(this, e, f, i, v), this.nodeRepulsion = h.DEFAULT_REPULSION_STRENGTH, this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0, this.startX = 0, this.finishX = 0, this.startY = 0, this.finishY = 0, this.surrounding = [];
1327
1327
  }
1328
- a.prototype = Object.create(u.prototype);
1329
- for (var r in u)
1330
- a[r] = u[r];
1328
+ a.prototype = Object.create(g.prototype);
1329
+ for (var r in g)
1330
+ a[r] = g[r];
1331
1331
  a.prototype.setGridCoordinates = function(e, f, i, v) {
1332
1332
  this.startX = e, this.finishX = f, this.startY = i, this.finishY = v;
1333
1333
  }, M.exports = a;
@@ -1335,33 +1335,33 @@ function ur() {
1335
1335
  /* 21 */
1336
1336
  /***/
1337
1337
  function(M, P, L) {
1338
- function u(h, a) {
1338
+ function g(h, a) {
1339
1339
  this.width = 0, this.height = 0, h !== null && a !== null && (this.height = a, this.width = h);
1340
1340
  }
1341
- u.prototype.getWidth = function() {
1341
+ g.prototype.getWidth = function() {
1342
1342
  return this.width;
1343
- }, u.prototype.setWidth = function(h) {
1343
+ }, g.prototype.setWidth = function(h) {
1344
1344
  this.width = h;
1345
- }, u.prototype.getHeight = function() {
1345
+ }, g.prototype.getHeight = function() {
1346
1346
  return this.height;
1347
- }, u.prototype.setHeight = function(h) {
1347
+ }, g.prototype.setHeight = function(h) {
1348
1348
  this.height = h;
1349
- }, M.exports = u;
1349
+ }, M.exports = g;
1350
1350
  },
1351
1351
  /* 22 */
1352
1352
  /***/
1353
1353
  function(M, P, L) {
1354
- var u = L(14);
1354
+ var g = L(14);
1355
1355
  function h() {
1356
1356
  this.map = {}, this.keys = [];
1357
1357
  }
1358
1358
  h.prototype.put = function(a, r) {
1359
- var e = u.createID(a);
1359
+ var e = g.createID(a);
1360
1360
  this.contains(e) || (this.map[e] = r, this.keys.push(a));
1361
1361
  }, h.prototype.contains = function(a) {
1362
- return u.createID(a), this.map[a] != null;
1362
+ return g.createID(a), this.map[a] != null;
1363
1363
  }, h.prototype.get = function(a) {
1364
- var r = u.createID(a);
1364
+ var r = g.createID(a);
1365
1365
  return this.map[r];
1366
1366
  }, h.prototype.keySet = function() {
1367
1367
  return this.keys;
@@ -1370,19 +1370,19 @@ function ur() {
1370
1370
  /* 23 */
1371
1371
  /***/
1372
1372
  function(M, P, L) {
1373
- var u = L(14);
1373
+ var g = L(14);
1374
1374
  function h() {
1375
1375
  this.set = {};
1376
1376
  }
1377
1377
  h.prototype.add = function(a) {
1378
- var r = u.createID(a);
1378
+ var r = g.createID(a);
1379
1379
  this.contains(r) || (this.set[r] = a);
1380
1380
  }, h.prototype.remove = function(a) {
1381
- delete this.set[u.createID(a)];
1381
+ delete this.set[g.createID(a)];
1382
1382
  }, h.prototype.clear = function() {
1383
1383
  this.set = {};
1384
1384
  }, h.prototype.contains = function(a) {
1385
- return this.set[u.createID(a)] == a;
1385
+ return this.set[g.createID(a)] == a;
1386
1386
  }, h.prototype.isEmpty = function() {
1387
1387
  return this.size() === 0;
1388
1388
  }, h.prototype.size = function() {
@@ -1402,9 +1402,9 @@ function ur() {
1402
1402
  /* 24 */
1403
1403
  /***/
1404
1404
  function(M, P, L) {
1405
- function u() {
1405
+ function g() {
1406
1406
  }
1407
- u.multMat = function(h, a) {
1407
+ g.multMat = function(h, a) {
1408
1408
  for (var r = [], e = 0; e < h.length; e++) {
1409
1409
  r[e] = [];
1410
1410
  for (var f = 0; f < a[0].length; f++) {
@@ -1414,39 +1414,39 @@ function ur() {
1414
1414
  }
1415
1415
  }
1416
1416
  return r;
1417
- }, u.transpose = function(h) {
1417
+ }, g.transpose = function(h) {
1418
1418
  for (var a = [], r = 0; r < h[0].length; r++) {
1419
1419
  a[r] = [];
1420
1420
  for (var e = 0; e < h.length; e++)
1421
1421
  a[r][e] = h[e][r];
1422
1422
  }
1423
1423
  return a;
1424
- }, u.multCons = function(h, a) {
1424
+ }, g.multCons = function(h, a) {
1425
1425
  for (var r = [], e = 0; e < h.length; e++)
1426
1426
  r[e] = h[e] * a;
1427
1427
  return r;
1428
- }, u.minusOp = function(h, a) {
1428
+ }, g.minusOp = function(h, a) {
1429
1429
  for (var r = [], e = 0; e < h.length; e++)
1430
1430
  r[e] = h[e] - a[e];
1431
1431
  return r;
1432
- }, u.dotProduct = function(h, a) {
1432
+ }, g.dotProduct = function(h, a) {
1433
1433
  for (var r = 0, e = 0; e < h.length; e++)
1434
1434
  r += h[e] * a[e];
1435
1435
  return r;
1436
- }, u.mag = function(h) {
1436
+ }, g.mag = function(h) {
1437
1437
  return Math.sqrt(this.dotProduct(h, h));
1438
- }, u.normalize = function(h) {
1438
+ }, g.normalize = function(h) {
1439
1439
  for (var a = [], r = this.mag(h), e = 0; e < h.length; e++)
1440
1440
  a[e] = h[e] / r;
1441
1441
  return a;
1442
- }, u.multGamma = function(h) {
1442
+ }, g.multGamma = function(h) {
1443
1443
  for (var a = [], r = 0, e = 0; e < h.length; e++)
1444
1444
  r += h[e];
1445
1445
  r *= -1 / h.length;
1446
1446
  for (var f = 0; f < h.length; f++)
1447
1447
  a[f] = r + h[f];
1448
1448
  return a;
1449
- }, u.multL = function(h, a, r) {
1449
+ }, g.multL = function(h, a, r) {
1450
1450
  for (var e = [], f = [], i = [], v = 0; v < a[0].length; v++) {
1451
1451
  for (var t = 0, o = 0; o < a.length; o++)
1452
1452
  t += -0.5 * a[o][v] * h[o];
@@ -1458,17 +1458,17 @@ function ur() {
1458
1458
  i[s] = c;
1459
1459
  }
1460
1460
  for (var T = 0; T < a.length; T++) {
1461
- for (var g = 0, d = 0; d < a[0].length; d++)
1462
- g += a[T][d] * i[d];
1463
- e[T] = g;
1461
+ for (var u = 0, d = 0; d < a[0].length; d++)
1462
+ u += a[T][d] * i[d];
1463
+ e[T] = u;
1464
1464
  }
1465
1465
  return e;
1466
- }, M.exports = u;
1466
+ }, M.exports = g;
1467
1467
  },
1468
1468
  /* 25 */
1469
1469
  /***/
1470
1470
  function(M, P, L) {
1471
- var u = /* @__PURE__ */ function() {
1471
+ var g = /* @__PURE__ */ function() {
1472
1472
  function e(f, i) {
1473
1473
  for (var v = 0; v < i.length; v++) {
1474
1474
  var t = i[v];
@@ -1489,7 +1489,7 @@ function ur() {
1489
1489
  var v = void 0;
1490
1490
  f instanceof a ? v = f.size() : v = f.length, this._quicksort(f, 0, v - 1);
1491
1491
  }
1492
- return u(e, [{
1492
+ return g(e, [{
1493
1493
  key: "_quicksort",
1494
1494
  value: function(i, v, t) {
1495
1495
  if (v < t) {
@@ -1538,47 +1538,47 @@ function ur() {
1538
1538
  /* 26 */
1539
1539
  /***/
1540
1540
  function(M, P, L) {
1541
- function u() {
1541
+ function g() {
1542
1542
  }
1543
- u.svd = function(h) {
1543
+ g.svd = function(h) {
1544
1544
  this.U = null, this.V = null, this.s = null, this.m = 0, this.n = 0, this.m = h.length, this.n = h[0].length;
1545
1545
  var a = Math.min(this.m, this.n);
1546
1546
  this.s = function(Nt) {
1547
- for (var Ct = []; Nt-- > 0; )
1548
- Ct.push(0);
1549
- return Ct;
1547
+ for (var At = []; Nt-- > 0; )
1548
+ At.push(0);
1549
+ return At;
1550
1550
  }(Math.min(this.m + 1, this.n)), this.U = function(Nt) {
1551
- var Ct = function kt(Gt) {
1551
+ var At = function Zt(Gt) {
1552
1552
  if (Gt.length == 0)
1553
1553
  return 0;
1554
1554
  for (var $t = [], Ft = 0; Ft < Gt[0]; Ft++)
1555
- $t.push(kt(Gt.slice(1)));
1555
+ $t.push(Zt(Gt.slice(1)));
1556
1556
  return $t;
1557
1557
  };
1558
- return Ct(Nt);
1558
+ return At(Nt);
1559
1559
  }([this.m, a]), this.V = function(Nt) {
1560
- var Ct = function kt(Gt) {
1560
+ var At = function Zt(Gt) {
1561
1561
  if (Gt.length == 0)
1562
1562
  return 0;
1563
1563
  for (var $t = [], Ft = 0; Ft < Gt[0]; Ft++)
1564
- $t.push(kt(Gt.slice(1)));
1564
+ $t.push(Zt(Gt.slice(1)));
1565
1565
  return $t;
1566
1566
  };
1567
- return Ct(Nt);
1567
+ return At(Nt);
1568
1568
  }([this.n, this.n]);
1569
1569
  for (var r = function(Nt) {
1570
- for (var Ct = []; Nt-- > 0; )
1571
- Ct.push(0);
1572
- return Ct;
1570
+ for (var At = []; Nt-- > 0; )
1571
+ At.push(0);
1572
+ return At;
1573
1573
  }(this.n), e = function(Nt) {
1574
- for (var Ct = []; Nt-- > 0; )
1575
- Ct.push(0);
1576
- return Ct;
1574
+ for (var At = []; Nt-- > 0; )
1575
+ At.push(0);
1576
+ return At;
1577
1577
  }(this.m), f = true, i = Math.min(this.m - 1, this.n), v = Math.max(0, Math.min(this.n - 2, this.m)), t = 0; t < Math.max(i, v); t++) {
1578
1578
  if (t < i) {
1579
1579
  this.s[t] = 0;
1580
1580
  for (var o = t; o < this.m; o++)
1581
- this.s[t] = u.hypot(this.s[t], h[o][t]);
1581
+ this.s[t] = g.hypot(this.s[t], h[o][t]);
1582
1582
  if (this.s[t] !== 0) {
1583
1583
  h[t][t] < 0 && (this.s[t] = -this.s[t]);
1584
1584
  for (var s = t; s < this.m; s++)
@@ -1588,37 +1588,37 @@ function ur() {
1588
1588
  this.s[t] = -this.s[t];
1589
1589
  }
1590
1590
  for (var c = t + 1; c < this.n; c++) {
1591
- if (/* @__PURE__ */ function(Nt, Ct) {
1592
- return Nt && Ct;
1591
+ if (/* @__PURE__ */ function(Nt, At) {
1592
+ return Nt && At;
1593
1593
  }(t < i, this.s[t] !== 0)) {
1594
1594
  for (var l = 0, T = t; T < this.m; T++)
1595
1595
  l += h[T][t] * h[T][c];
1596
1596
  l = -l / h[t][t];
1597
- for (var g = t; g < this.m; g++)
1598
- h[g][c] += l * h[g][t];
1597
+ for (var u = t; u < this.m; u++)
1598
+ h[u][c] += l * h[u][t];
1599
1599
  }
1600
1600
  r[c] = h[t][c];
1601
1601
  }
1602
- if (/* @__PURE__ */ function(Nt, Ct) {
1603
- return Ct;
1602
+ if (/* @__PURE__ */ function(Nt, At) {
1603
+ return At;
1604
1604
  }(f, t < i))
1605
1605
  for (var d = t; d < this.m; d++)
1606
1606
  this.U[d][t] = h[d][t];
1607
1607
  if (t < v) {
1608
1608
  r[t] = 0;
1609
1609
  for (var N = t + 1; N < this.n; N++)
1610
- r[t] = u.hypot(r[t], r[N]);
1610
+ r[t] = g.hypot(r[t], r[N]);
1611
1611
  if (r[t] !== 0) {
1612
1612
  r[t + 1] < 0 && (r[t] = -r[t]);
1613
1613
  for (var F = t + 1; F < this.n; F++)
1614
1614
  r[F] /= r[t];
1615
1615
  r[t + 1] += 1;
1616
1616
  }
1617
- if (r[t] = -r[t], /* @__PURE__ */ function(Nt, Ct) {
1618
- return Nt && Ct;
1617
+ if (r[t] = -r[t], /* @__PURE__ */ function(Nt, At) {
1618
+ return Nt && At;
1619
1619
  }(t + 1 < this.m, r[t] !== 0)) {
1620
- for (var C = t + 1; C < this.m; C++)
1621
- e[C] = 0;
1620
+ for (var A = t + 1; A < this.m; A++)
1621
+ e[A] = 0;
1622
1622
  for (var G = t + 1; G < this.n; G++)
1623
1623
  for (var B = t + 1; B < this.m; B++)
1624
1624
  e[B] += r[G] * h[B][G];
@@ -1659,15 +1659,15 @@ function ur() {
1659
1659
  }
1660
1660
  }
1661
1661
  for (var V = this.n - 1; V >= 0; V--) {
1662
- if (/* @__PURE__ */ function(Nt, Ct) {
1663
- return Nt && Ct;
1662
+ if (/* @__PURE__ */ function(Nt, At) {
1663
+ return Nt && At;
1664
1664
  }(V < v, r[V] !== 0))
1665
- for (var X = V + 1; X < a; X++) {
1665
+ for (var Y = V + 1; Y < a; Y++) {
1666
1666
  for (var et = 0, z = V + 1; z < this.n; z++)
1667
- et += this.V[z][V] * this.V[z][X];
1667
+ et += this.V[z][V] * this.V[z][Y];
1668
1668
  et = -et / this.V[V + 1][V];
1669
1669
  for (var O = V + 1; O < this.n; O++)
1670
- this.V[O][X] += et * this.V[O][V];
1670
+ this.V[O][Y] += et * this.V[O][V];
1671
1671
  }
1672
1672
  for (var H = 0; H < this.n; H++)
1673
1673
  this.V[H][V] = 0;
@@ -1698,11 +1698,11 @@ function ur() {
1698
1698
  {
1699
1699
  var rt = r[n - 2];
1700
1700
  r[n - 2] = 0;
1701
- for (var gt = n - 2; gt >= J; gt--) {
1702
- var Tt = u.hypot(this.s[gt], rt), Mt = this.s[gt] / Tt, Dt = rt / Tt;
1703
- this.s[gt] = Tt, gt !== J && (rt = -Dt * r[gt - 1], r[gt - 1] = Mt * r[gt - 1]);
1701
+ for (var ut = n - 2; ut >= J; ut--) {
1702
+ var Tt = g.hypot(this.s[ut], rt), Mt = this.s[ut] / Tt, Dt = rt / Tt;
1703
+ this.s[ut] = Tt, ut !== J && (rt = -Dt * r[ut - 1], r[ut - 1] = Mt * r[ut - 1]);
1704
1704
  for (var mt = 0; mt < this.n; mt++)
1705
- Tt = Mt * this.V[mt][gt] + Dt * this.V[mt][n - 1], this.V[mt][n - 1] = -Dt * this.V[mt][gt] + Mt * this.V[mt][n - 1], this.V[mt][gt] = Tt;
1705
+ Tt = Mt * this.V[mt][ut] + Dt * this.V[mt][n - 1], this.V[mt][n - 1] = -Dt * this.V[mt][ut] + Mt * this.V[mt][n - 1], this.V[mt][ut] = Tt;
1706
1706
  }
1707
1707
  }
1708
1708
  break;
@@ -1711,7 +1711,7 @@ function ur() {
1711
1711
  var xt = r[J - 1];
1712
1712
  r[J - 1] = 0;
1713
1713
  for (var St = J; St < n; St++) {
1714
- var Vt = u.hypot(this.s[St], xt), Xt = this.s[St] / Vt, Ut = xt / Vt;
1714
+ var Vt = g.hypot(this.s[St], xt), Xt = this.s[St] / Vt, Ut = xt / Vt;
1715
1715
  this.s[St] = Vt, xt = -Ut * r[St], r[St] = Xt * r[St];
1716
1716
  for (var bt = 0; bt < this.m; bt++)
1717
1717
  Vt = Xt * this.U[bt][St] + Ut * this.U[bt][J - 1], this.U[bt][J - 1] = -Ut * this.U[bt][St] + Xt * this.U[bt][J - 1], this.U[bt][St] = Vt;
@@ -1720,16 +1720,16 @@ function ur() {
1720
1720
  break;
1721
1721
  case 3:
1722
1722
  {
1723
- var Ht = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(r[n - 2])), Math.abs(this.s[J])), Math.abs(r[J])), Bt = this.s[n - 1] / Ht, S = this.s[n - 2] / Ht, b = r[n - 2] / Ht, k = this.s[J] / Ht, Q = r[J] / Ht, Z = ((S + Bt) * (S - Bt) + b * b) / 2, it = Bt * b * (Bt * b), ut = 0;
1724
- /* @__PURE__ */ (function(Nt, Ct) {
1725
- return Nt || Ct;
1726
- })(Z !== 0, it !== 0) && (ut = Math.sqrt(Z * Z + it), Z < 0 && (ut = -ut), ut = it / (Z + ut));
1727
- for (var ot = (k + Bt) * (k - Bt) + ut, tt = k * Q, j = J; j < n - 1; j++) {
1728
- var dt = u.hypot(ot, tt), wt = ot / dt, yt = tt / dt;
1723
+ var Ht = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(r[n - 2])), Math.abs(this.s[J])), Math.abs(r[J])), Bt = this.s[n - 1] / Ht, S = this.s[n - 2] / Ht, b = r[n - 2] / Ht, Z = this.s[J] / Ht, Q = r[J] / Ht, k = ((S + Bt) * (S - Bt) + b * b) / 2, it = Bt * b * (Bt * b), gt = 0;
1724
+ /* @__PURE__ */ (function(Nt, At) {
1725
+ return Nt || At;
1726
+ })(k !== 0, it !== 0) && (gt = Math.sqrt(k * k + it), k < 0 && (gt = -gt), gt = it / (k + gt));
1727
+ for (var ot = (Z + Bt) * (Z - Bt) + gt, tt = Z * Q, j = J; j < n - 1; j++) {
1728
+ var dt = g.hypot(ot, tt), wt = ot / dt, yt = tt / dt;
1729
1729
  j !== J && (r[j - 1] = dt), ot = wt * this.s[j] + yt * r[j], r[j] = wt * r[j] - yt * this.s[j], tt = yt * this.s[j + 1], this.s[j + 1] = wt * this.s[j + 1];
1730
1730
  for (var It = 0; It < this.n; It++)
1731
1731
  dt = wt * this.V[It][j] + yt * this.V[It][j + 1], this.V[It][j + 1] = -yt * this.V[It][j] + wt * this.V[It][j + 1], this.V[It][j] = dt;
1732
- if (dt = u.hypot(ot, tt), wt = ot / dt, yt = tt / dt, this.s[j] = dt, ot = wt * r[j] + yt * this.s[j + 1], this.s[j + 1] = -yt * r[j] + wt * this.s[j + 1], tt = yt * r[j + 1], r[j + 1] = wt * r[j + 1], j < this.m - 1)
1732
+ if (dt = g.hypot(ot, tt), wt = ot / dt, yt = tt / dt, this.s[j] = dt, ot = wt * r[j] + yt * this.s[j + 1], this.s[j + 1] = -yt * r[j] + wt * this.s[j + 1], tt = yt * r[j + 1], r[j + 1] = wt * r[j + 1], j < this.m - 1)
1733
1733
  for (var ft = 0; ft < this.m; ft++)
1734
1734
  dt = wt * this.U[ft][j] + yt * this.U[ft][j + 1], this.U[ft][j + 1] = -yt * this.U[ft][j] + wt * this.U[ft][j + 1], this.U[ft][j] = dt;
1735
1735
  }
@@ -1744,13 +1744,13 @@ function ur() {
1744
1744
  this.V[st][J] = -this.V[st][J];
1745
1745
  }
1746
1746
  for (; J < $ && !(this.s[J] >= this.s[J + 1]); ) {
1747
- var At = this.s[J];
1748
- if (this.s[J] = this.s[J + 1], this.s[J + 1] = At, J < this.n - 1)
1747
+ var Ct = this.s[J];
1748
+ if (this.s[J] = this.s[J + 1], this.s[J + 1] = Ct, J < this.n - 1)
1749
1749
  for (var ct = 0; ct < this.n; ct++)
1750
- At = this.V[ct][J + 1], this.V[ct][J + 1] = this.V[ct][J], this.V[ct][J] = At;
1750
+ Ct = this.V[ct][J + 1], this.V[ct][J + 1] = this.V[ct][J], this.V[ct][J] = Ct;
1751
1751
  if (J < this.m - 1)
1752
1752
  for (var lt = 0; lt < this.m; lt++)
1753
- At = this.U[lt][J + 1], this.U[lt][J + 1] = this.U[lt][J], this.U[lt][J] = At;
1753
+ Ct = this.U[lt][J + 1], this.U[lt][J + 1] = this.U[lt][J], this.U[lt][J] = Ct;
1754
1754
  J++;
1755
1755
  }
1756
1756
  n--;
@@ -1760,15 +1760,15 @@ function ur() {
1760
1760
  }
1761
1761
  var Wt = { U: this.U, V: this.V, S: this.s };
1762
1762
  return Wt;
1763
- }, u.hypot = function(h, a) {
1763
+ }, g.hypot = function(h, a) {
1764
1764
  var r = void 0;
1765
1765
  return Math.abs(h) > Math.abs(a) ? (r = a / h, r = Math.abs(h) * Math.sqrt(1 + r * r)) : a != 0 ? (r = h / a, r = Math.abs(a) * Math.sqrt(1 + r * r)) : r = 0, r;
1766
- }, M.exports = u;
1766
+ }, M.exports = g;
1767
1767
  },
1768
1768
  /* 27 */
1769
1769
  /***/
1770
1770
  function(M, P, L) {
1771
- var u = /* @__PURE__ */ function() {
1771
+ var g = /* @__PURE__ */ function() {
1772
1772
  function r(e, f) {
1773
1773
  for (var i = 0; i < f.length; i++) {
1774
1774
  var v = f[i];
@@ -1800,7 +1800,7 @@ function ur() {
1800
1800
  }
1801
1801
  this.alignments = [], this.score = -1, this.computeGrids();
1802
1802
  }
1803
- return u(r, [{
1803
+ return g(r, [{
1804
1804
  key: "getScore",
1805
1805
  value: function() {
1806
1806
  return this.score;
@@ -1877,17 +1877,17 @@ function ur() {
1877
1877
  /* 28 */
1878
1878
  /***/
1879
1879
  function(M, P, L) {
1880
- var u = function() {
1880
+ var g = function() {
1881
1881
  };
1882
- u.FDLayout = L(18), u.FDLayoutConstants = L(4), u.FDLayoutEdge = L(19), u.FDLayoutNode = L(20), u.DimensionD = L(21), u.HashMap = L(22), u.HashSet = L(23), u.IGeometry = L(8), u.IMath = L(9), u.Integer = L(10), u.Point = L(12), u.PointD = L(5), u.RandomSeed = L(16), u.RectangleD = L(13), u.Transform = L(17), u.UniqueIDGeneretor = L(14), u.Quicksort = L(25), u.LinkedList = L(11), u.LGraphObject = L(2), u.LGraph = L(6), u.LEdge = L(1), u.LGraphManager = L(7), u.LNode = L(3), u.Layout = L(15), u.LayoutConstants = L(0), u.NeedlemanWunsch = L(27), u.Matrix = L(24), u.SVD = L(26), M.exports = u;
1882
+ g.FDLayout = L(18), g.FDLayoutConstants = L(4), g.FDLayoutEdge = L(19), g.FDLayoutNode = L(20), g.DimensionD = L(21), g.HashMap = L(22), g.HashSet = L(23), g.IGeometry = L(8), g.IMath = L(9), g.Integer = L(10), g.Point = L(12), g.PointD = L(5), g.RandomSeed = L(16), g.RectangleD = L(13), g.Transform = L(17), g.UniqueIDGeneretor = L(14), g.Quicksort = L(25), g.LinkedList = L(11), g.LGraphObject = L(2), g.LGraph = L(6), g.LEdge = L(1), g.LGraphManager = L(7), g.LNode = L(3), g.Layout = L(15), g.LayoutConstants = L(0), g.NeedlemanWunsch = L(27), g.Matrix = L(24), g.SVD = L(26), M.exports = g;
1883
1883
  },
1884
1884
  /* 29 */
1885
1885
  /***/
1886
1886
  function(M, P, L) {
1887
- function u() {
1887
+ function g() {
1888
1888
  this.listeners = [];
1889
1889
  }
1890
- var h = u.prototype;
1890
+ var h = g.prototype;
1891
1891
  h.addListener = function(a, r) {
1892
1892
  this.listeners.push({
1893
1893
  event: a,
@@ -1903,7 +1903,7 @@ function ur() {
1903
1903
  var f = this.listeners[e];
1904
1904
  a === f.event && f.callback(r);
1905
1905
  }
1906
- }, M.exports = u;
1906
+ }, M.exports = g;
1907
1907
  }
1908
1908
  /******/
1909
1909
  ])
@@ -1911,12 +1911,12 @@ function ur() {
1911
1911
  });
1912
1912
  }(ce)), ce.exports;
1913
1913
  }
1914
- var gr = fe.exports, Ie;
1915
- function dr() {
1916
- return Ie || (Ie = 1, function(A, Y) {
1914
+ var pr = fe.exports, Ie;
1915
+ function yr() {
1916
+ return Ie || (Ie = 1, function(C, X) {
1917
1917
  (function(P, L) {
1918
- A.exports = L(ur());
1919
- })(gr, function(M) {
1918
+ C.exports = L(vr());
1919
+ })(pr, function(M) {
1920
1920
  return (
1921
1921
  /******/
1922
1922
  (() => {
@@ -1987,7 +1987,7 @@ function dr() {
1987
1987
  765: (
1988
1988
  /***/
1989
1989
  (a, r, e) => {
1990
- var f = e(551).FDLayout, i = e(578), v = e(880), t = e(991), o = e(767), s = e(806), c = e(902), l = e(551).FDLayoutConstants, T = e(551).LayoutConstants, g = e(551).Point, d = e(551).PointD, N = e(551).DimensionD, F = e(551).Layout, C = e(551).Integer, G = e(551).IGeometry, B = e(551).LGraph, U = e(551).Transform, K = e(551).LinkedList;
1990
+ var f = e(551).FDLayout, i = e(578), v = e(880), t = e(991), o = e(767), s = e(806), c = e(902), l = e(551).FDLayoutConstants, T = e(551).LayoutConstants, u = e(551).Point, d = e(551).PointD, N = e(551).DimensionD, F = e(551).Layout, A = e(551).Integer, G = e(551).IGeometry, B = e(551).LGraph, U = e(551).Transform, K = e(551).LinkedList;
1991
1991
  function D() {
1992
1992
  f.call(this), this.toBeTiled = {}, this.constraints = {};
1993
1993
  }
@@ -2157,15 +2157,15 @@ function dr() {
2157
2157
  V.has(_) ? V.get(_).push(ht) : V.set(_, [ht]), V.has(ht) ? V.get(ht).push(_) : V.set(ht, [_]);
2158
2158
  }
2159
2159
  });
2160
- var X = function(H, $) {
2160
+ var Y = function(H, $) {
2161
2161
  var _ = [], ht = [], J = new K(), Rt = /* @__PURE__ */ new Set(), Lt = 0;
2162
2162
  return H.forEach(function(vt, rt) {
2163
2163
  if (!Rt.has(rt)) {
2164
2164
  _[Lt] = [], ht[Lt] = false;
2165
- var gt = rt;
2166
- for (J.push(gt), Rt.add(gt), _[Lt].push(gt); J.length != 0; ) {
2167
- gt = J.shift(), $.has(gt) && (ht[Lt] = true);
2168
- var Tt = H.get(gt);
2165
+ var ut = rt;
2166
+ for (J.push(ut), Rt.add(ut), _[Lt].push(ut); J.length != 0; ) {
2167
+ ut = J.shift(), $.has(ut) && (ht[Lt] = true);
2168
+ var Tt = H.get(ut);
2169
2169
  Tt.forEach(function(Mt) {
2170
2170
  Rt.has(Mt) || (J.push(Mt), Rt.add(Mt), _[Lt].push(Mt));
2171
2171
  });
@@ -2173,9 +2173,9 @@ function dr() {
2173
2173
  Lt++;
2174
2174
  }
2175
2175
  }), { components: _, isFixed: ht };
2176
- }, et = X(q, n.fixedNodesOnHorizontal);
2176
+ }, et = Y(q, n.fixedNodesOnHorizontal);
2177
2177
  this.componentsOnHorizontal = et.components, this.fixedComponentsOnHorizontal = et.isFixed;
2178
- var z = X(V, n.fixedNodesOnVertical);
2178
+ var z = Y(V, n.fixedNodesOnVertical);
2179
2179
  this.componentsOnVertical = z.components, this.fixedComponentsOnVertical = z.isFixed;
2180
2180
  }
2181
2181
  }
@@ -2254,8 +2254,8 @@ function dr() {
2254
2254
  else {
2255
2255
  for (var q = 0, V = 0, y = 0; y < x.length; y++)
2256
2256
  if (this.dummyToNodeForVerticalAlignment.has(x[y])) {
2257
- var X = this.dummyToNodeForVerticalAlignment.get(x[y]);
2258
- q += X.length * this.idToNodeMap.get(X[0]).displacementX, V += X.length;
2257
+ var Y = this.dummyToNodeForVerticalAlignment.get(x[y]);
2258
+ q += Y.length * this.idToNodeMap.get(Y[0]).displacementX, V += Y.length;
2259
2259
  } else
2260
2260
  q += this.idToNodeMap.get(x[y]).displacementX, V++;
2261
2261
  for (var et = q / V, y = 0; y < x.length; y++)
@@ -2274,8 +2274,8 @@ function dr() {
2274
2274
  else {
2275
2275
  for (var q = 0, V = 0, y = 0; y < x.length; y++)
2276
2276
  if (this.dummyToNodeForHorizontalAlignment.has(x[y])) {
2277
- var X = this.dummyToNodeForHorizontalAlignment.get(x[y]);
2278
- q += X.length * this.idToNodeMap.get(X[0]).displacementY, V += X.length;
2277
+ var Y = this.dummyToNodeForHorizontalAlignment.get(x[y]);
2278
+ q += Y.length * this.idToNodeMap.get(Y[0]).displacementY, V += Y.length;
2279
2279
  } else
2280
2280
  q += this.idToNodeMap.get(x[y]).displacementY, V++;
2281
2281
  for (var et = q / V, y = 0; y < x.length; y++)
@@ -2320,7 +2320,7 @@ function dr() {
2320
2320
  break;
2321
2321
  }
2322
2322
  }, D.prototype.positionNodesRadially = function(n) {
2323
- for (var m = new g(0, 0), p = Math.ceil(Math.sqrt(n.length)), E = 0, y = 0, I = 0, w = new d(0, 0), R = 0; R < n.length; R++) {
2323
+ for (var m = new u(0, 0), p = Math.ceil(Math.sqrt(n.length)), E = 0, y = 0, I = 0, w = new d(0, 0), R = 0; R < n.length; R++) {
2324
2324
  R % p == 0 && (I = 0, y = E, R != 0 && (y += s.DEFAULT_COMPONENT_SEPERATION), E = 0);
2325
2325
  var W = n[R], x = F.findCenterOfTree(W);
2326
2326
  m.x = I, m.y = y, w = D.radialLayout(W, x, m), w.y > E && (E = Math.floor(w.y)), I = Math.floor(w.x + s.DEFAULT_COMPONENT_SEPERATION);
@@ -2344,16 +2344,16 @@ function dr() {
2344
2344
  n.setCenter(x, q);
2345
2345
  var V = [];
2346
2346
  V = V.concat(n.getEdges());
2347
- var X = V.length;
2348
- m != null && X--;
2347
+ var Y = V.length;
2348
+ m != null && Y--;
2349
2349
  for (var et = 0, z = V.length, O, H = n.getEdgesBetween(m); H.length > 1; ) {
2350
2350
  var $ = H[0];
2351
2351
  H.splice(0, 1);
2352
2352
  var _ = V.indexOf($);
2353
- _ >= 0 && V.splice(_, 1), z--, X--;
2353
+ _ >= 0 && V.splice(_, 1), z--, Y--;
2354
2354
  }
2355
2355
  m != null ? O = (V.indexOf(H[0]) + 1) % z : O = 0;
2356
- for (var ht = Math.abs(E - p) / X, J = O; et != X; J = ++J % z) {
2356
+ for (var ht = Math.abs(E - p) / Y, J = O; et != Y; J = ++J % z) {
2357
2357
  var Rt = V[J].getOtherEnd(n);
2358
2358
  if (Rt != m) {
2359
2359
  var Lt = (p + et * ht) % 360, vt = (Lt + ht) % 360;
@@ -2361,7 +2361,7 @@ function dr() {
2361
2361
  }
2362
2362
  }
2363
2363
  }, D.maxDiagonalInTree = function(n) {
2364
- for (var m = C.MIN_VALUE, p = 0; p < n.length; p++) {
2364
+ for (var m = A.MIN_VALUE, p = 0; p < n.length; p++) {
2365
2365
  var E = n[p], y = E.getDiagonal();
2366
2366
  y > m && (m = y);
2367
2367
  }
@@ -2385,11 +2385,11 @@ function dr() {
2385
2385
  n.memberGroups[x] = m[W];
2386
2386
  var q = m[W][0].getParent(), V = new t(n.graphManager);
2387
2387
  V.id = x, V.paddingLeft = q.paddingLeft || 0, V.paddingRight = q.paddingRight || 0, V.paddingBottom = q.paddingBottom || 0, V.paddingTop = q.paddingTop || 0, n.idToDummyNode[x] = V;
2388
- var X = n.getGraphManager().add(n.newGraph(), V), et = q.getChild();
2388
+ var Y = n.getGraphManager().add(n.newGraph(), V), et = q.getChild();
2389
2389
  et.add(V);
2390
2390
  for (var z = 0; z < m[W].length; z++) {
2391
2391
  var O = m[W][z];
2392
- et.remove(O), X.add(O);
2392
+ et.remove(O), Y.add(O);
2393
2393
  }
2394
2394
  }
2395
2395
  });
@@ -2467,8 +2467,8 @@ function dr() {
2467
2467
  var x = n.rows[W];
2468
2468
  m = R;
2469
2469
  for (var q = 0, V = 0; V < x.length; V++) {
2470
- var X = x[V];
2471
- X.rect.x = m, X.rect.y = p, m += X.rect.width + n.horizontalPadding, X.rect.height > q && (q = X.rect.height);
2470
+ var Y = x[V];
2471
+ Y.rect.x = m, Y.rect.y = p, m += Y.rect.width + n.horizontalPadding, Y.rect.height > q && (q = Y.rect.height);
2472
2472
  }
2473
2473
  p += q + n.verticalPadding;
2474
2474
  }
@@ -2492,9 +2492,9 @@ function dr() {
2492
2492
  n.forEach(function(z) {
2493
2493
  I += z.getWidth(), w += z.getHeight(), z.getWidth() > R && (R = z.getWidth());
2494
2494
  });
2495
- var W = I / y, x = w / y, q = Math.pow(p - E, 2) + 4 * (W + E) * (x + p) * y, V = (E - p + Math.sqrt(q)) / (2 * (W + E)), X;
2496
- m ? (X = Math.ceil(V), X == V && X++) : X = Math.floor(V);
2497
- var et = X * (W + E) - E;
2495
+ var W = I / y, x = w / y, q = Math.pow(p - E, 2) + 4 * (W + E) * (x + p) * y, V = (E - p + Math.sqrt(q)) / (2 * (W + E)), Y;
2496
+ m ? (Y = Math.ceil(V), Y == V && Y++) : Y = Math.floor(V);
2497
+ var et = Y * (W + E) - E;
2498
2498
  return R > et && (et = R), et += E * 2, et;
2499
2499
  }, D.prototype.tileNodesByFavoringDim = function(n, m, p) {
2500
2500
  var E = s.TILING_PADDING_VERTICAL, y = s.TILING_PADDING_HORIZONTAL, I = s.TILING_COMPARE_BY, w = {
@@ -2520,19 +2520,19 @@ function dr() {
2520
2520
  return w.idealRowWidth ? (H = I, H(z.id, O.id)) : H(z, O);
2521
2521
  });
2522
2522
  for (var x = 0, q = 0, V = 0; V < n.length; V++) {
2523
- var X = n[V];
2524
- x += X.getCenterX(), q += X.getCenterY();
2523
+ var Y = n[V];
2524
+ x += Y.getCenterX(), q += Y.getCenterY();
2525
2525
  }
2526
2526
  w.centerX = x / n.length, w.centerY = q / n.length;
2527
2527
  for (var V = 0; V < n.length; V++) {
2528
- var X = n[V];
2528
+ var Y = n[V];
2529
2529
  if (w.rows.length == 0)
2530
- this.insertNodeToRow(w, X, 0, m);
2531
- else if (this.canAddHorizontal(w, X.rect.width, X.rect.height)) {
2530
+ this.insertNodeToRow(w, Y, 0, m);
2531
+ else if (this.canAddHorizontal(w, Y.rect.width, Y.rect.height)) {
2532
2532
  var et = w.rows.length - 1;
2533
- w.idealRowWidth || (et = this.getShortestRowIndex(w)), this.insertNodeToRow(w, X, et, m);
2533
+ w.idealRowWidth || (et = this.getShortestRowIndex(w)), this.insertNodeToRow(w, Y, et, m);
2534
2534
  } else
2535
- this.insertNodeToRow(w, X, w.rows.length, m);
2535
+ this.insertNodeToRow(w, Y, w.rows.length, m);
2536
2536
  this.shiftToLastRow(w);
2537
2537
  }
2538
2538
  return w;
@@ -2617,26 +2617,26 @@ function dr() {
2617
2617
  if (E == n[1].source ? p = n[1].target : p = n[1].source, s.PURE_INCREMENTAL)
2618
2618
  E.setCenter(p.getCenterX() + n[3].getWidth(), p.getCenterY() + n[3].getHeight());
2619
2619
  else {
2620
- var y = p.startX, I = p.finishX, w = p.startY, R = p.finishY, W = 0, x = 0, q = 0, V = 0, X = [W, q, x, V];
2620
+ var y = p.startX, I = p.finishX, w = p.startY, R = p.finishY, W = 0, x = 0, q = 0, V = 0, Y = [W, q, x, V];
2621
2621
  if (w > 0)
2622
2622
  for (var et = y; et <= I; et++)
2623
- X[0] += this.grid[et][w - 1].length + this.grid[et][w].length - 1;
2623
+ Y[0] += this.grid[et][w - 1].length + this.grid[et][w].length - 1;
2624
2624
  if (I < this.grid.length - 1)
2625
2625
  for (var et = w; et <= R; et++)
2626
- X[1] += this.grid[I + 1][et].length + this.grid[I][et].length - 1;
2626
+ Y[1] += this.grid[I + 1][et].length + this.grid[I][et].length - 1;
2627
2627
  if (R < this.grid[0].length - 1)
2628
2628
  for (var et = y; et <= I; et++)
2629
- X[2] += this.grid[et][R + 1].length + this.grid[et][R].length - 1;
2629
+ Y[2] += this.grid[et][R + 1].length + this.grid[et][R].length - 1;
2630
2630
  if (y > 0)
2631
2631
  for (var et = w; et <= R; et++)
2632
- X[3] += this.grid[y - 1][et].length + this.grid[y][et].length - 1;
2633
- for (var z = C.MAX_VALUE, O, H, $ = 0; $ < X.length; $++)
2634
- X[$] < z ? (z = X[$], O = 1, H = $) : X[$] == z && O++;
2632
+ Y[3] += this.grid[y - 1][et].length + this.grid[y][et].length - 1;
2633
+ for (var z = A.MAX_VALUE, O, H, $ = 0; $ < Y.length; $++)
2634
+ Y[$] < z ? (z = Y[$], O = 1, H = $) : Y[$] == z && O++;
2635
2635
  if (O == 3 && z == 0)
2636
- X[0] == 0 && X[1] == 0 && X[2] == 0 ? m = 1 : X[0] == 0 && X[1] == 0 && X[3] == 0 ? m = 0 : X[0] == 0 && X[2] == 0 && X[3] == 0 ? m = 3 : X[1] == 0 && X[2] == 0 && X[3] == 0 && (m = 2);
2636
+ Y[0] == 0 && Y[1] == 0 && Y[2] == 0 ? m = 1 : Y[0] == 0 && Y[1] == 0 && Y[3] == 0 ? m = 0 : Y[0] == 0 && Y[2] == 0 && Y[3] == 0 ? m = 3 : Y[1] == 0 && Y[2] == 0 && Y[3] == 0 && (m = 2);
2637
2637
  else if (O == 2 && z == 0) {
2638
2638
  var _ = Math.floor(Math.random() * 2);
2639
- X[0] == 0 && X[1] == 0 ? _ == 0 ? m = 0 : m = 1 : X[0] == 0 && X[2] == 0 ? _ == 0 ? m = 0 : m = 2 : X[0] == 0 && X[3] == 0 ? _ == 0 ? m = 0 : m = 3 : X[1] == 0 && X[2] == 0 ? _ == 0 ? m = 1 : m = 2 : X[1] == 0 && X[3] == 0 ? _ == 0 ? m = 1 : m = 3 : _ == 0 ? m = 2 : m = 3;
2639
+ Y[0] == 0 && Y[1] == 0 ? _ == 0 ? m = 0 : m = 1 : Y[0] == 0 && Y[2] == 0 ? _ == 0 ? m = 0 : m = 2 : Y[0] == 0 && Y[3] == 0 ? _ == 0 ? m = 0 : m = 3 : Y[1] == 0 && Y[2] == 0 ? _ == 0 ? m = 1 : m = 2 : Y[1] == 0 && Y[3] == 0 ? _ == 0 ? m = 1 : m = 3 : _ == 0 ? m = 2 : m = 3;
2640
2640
  } else if (O == 4 && z == 0) {
2641
2641
  var _ = Math.floor(Math.random() * 4);
2642
2642
  m = _;
@@ -2702,27 +2702,27 @@ function dr() {
2702
2702
  s.handleConstraints = function(c) {
2703
2703
  var l = {};
2704
2704
  l.fixedNodeConstraint = c.constraints.fixedNodeConstraint, l.alignmentConstraint = c.constraints.alignmentConstraint, l.relativePlacementConstraint = c.constraints.relativePlacementConstraint;
2705
- for (var T = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), d = [], N = [], F = c.getAllNodes(), C = 0, G = 0; G < F.length; G++) {
2705
+ for (var T = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = [], N = [], F = c.getAllNodes(), A = 0, G = 0; G < F.length; G++) {
2706
2706
  var B = F[G];
2707
- B.getChild() == null && (g.set(B.id, C++), d.push(B.getCenterX()), N.push(B.getCenterY()), T.set(B.id, B));
2707
+ B.getChild() == null && (u.set(B.id, A++), d.push(B.getCenterX()), N.push(B.getCenterY()), T.set(B.id, B));
2708
2708
  }
2709
2709
  l.relativePlacementConstraint && l.relativePlacementConstraint.forEach(function(S) {
2710
2710
  !S.gap && S.gap != 0 && (S.left ? S.gap = i.DEFAULT_EDGE_LENGTH + T.get(S.left).getWidth() / 2 + T.get(S.right).getWidth() / 2 : S.gap = i.DEFAULT_EDGE_LENGTH + T.get(S.top).getHeight() / 2 + T.get(S.bottom).getHeight() / 2);
2711
2711
  });
2712
- var U = function(b, k) {
2713
- return { x: b.x - k.x, y: b.y - k.y };
2712
+ var U = function(b, Z) {
2713
+ return { x: b.x - Z.x, y: b.y - Z.y };
2714
2714
  }, K = function(b) {
2715
- var k = 0, Q = 0;
2716
- return b.forEach(function(Z) {
2717
- k += d[g.get(Z)], Q += N[g.get(Z)];
2718
- }), { x: k / b.size, y: Q / b.size };
2719
- }, D = function(b, k, Q, Z, it) {
2720
- function ut(ft, st) {
2721
- var At = new Set(ft), ct = true, lt = false, Wt = void 0;
2715
+ var Z = 0, Q = 0;
2716
+ return b.forEach(function(k) {
2717
+ Z += d[u.get(k)], Q += N[u.get(k)];
2718
+ }), { x: Z / b.size, y: Q / b.size };
2719
+ }, D = function(b, Z, Q, k, it) {
2720
+ function gt(ft, st) {
2721
+ var Ct = new Set(ft), ct = true, lt = false, Wt = void 0;
2722
2722
  try {
2723
- for (var Nt = st[Symbol.iterator](), Ct; !(ct = (Ct = Nt.next()).done); ct = true) {
2724
- var kt = Ct.value;
2725
- At.add(kt);
2723
+ for (var Nt = st[Symbol.iterator](), At; !(ct = (At = Nt.next()).done); ct = true) {
2724
+ var Zt = At.value;
2725
+ Ct.add(Zt);
2726
2726
  }
2727
2727
  } catch (Gt) {
2728
2728
  lt = true, Wt = Gt;
@@ -2734,46 +2734,46 @@ function dr() {
2734
2734
  throw Wt;
2735
2735
  }
2736
2736
  }
2737
- return At;
2737
+ return Ct;
2738
2738
  }
2739
2739
  var ot = /* @__PURE__ */ new Map();
2740
2740
  b.forEach(function(ft, st) {
2741
2741
  ot.set(st, 0);
2742
2742
  }), b.forEach(function(ft, st) {
2743
- ft.forEach(function(At) {
2744
- ot.set(At.id, ot.get(At.id) + 1);
2743
+ ft.forEach(function(Ct) {
2744
+ ot.set(Ct.id, ot.get(Ct.id) + 1);
2745
2745
  });
2746
2746
  });
2747
2747
  var tt = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), dt = new v();
2748
2748
  ot.forEach(function(ft, st) {
2749
- ft == 0 ? (dt.push(st), Q || (k == "horizontal" ? tt.set(st, g.has(st) ? d[g.get(st)] : Z.get(st)) : tt.set(st, g.has(st) ? N[g.get(st)] : Z.get(st)))) : tt.set(st, Number.NEGATIVE_INFINITY), Q && j.set(st, /* @__PURE__ */ new Set([st]));
2749
+ ft == 0 ? (dt.push(st), Q || (Z == "horizontal" ? tt.set(st, u.has(st) ? d[u.get(st)] : k.get(st)) : tt.set(st, u.has(st) ? N[u.get(st)] : k.get(st)))) : tt.set(st, Number.NEGATIVE_INFINITY), Q && j.set(st, /* @__PURE__ */ new Set([st]));
2750
2750
  }), Q && it.forEach(function(ft) {
2751
2751
  var st = [];
2752
2752
  if (ft.forEach(function(lt) {
2753
2753
  Q.has(lt) && st.push(lt);
2754
2754
  }), st.length > 0) {
2755
- var At = 0;
2755
+ var Ct = 0;
2756
2756
  st.forEach(function(lt) {
2757
- k == "horizontal" ? (tt.set(lt, g.has(lt) ? d[g.get(lt)] : Z.get(lt)), At += tt.get(lt)) : (tt.set(lt, g.has(lt) ? N[g.get(lt)] : Z.get(lt)), At += tt.get(lt));
2758
- }), At = At / st.length, ft.forEach(function(lt) {
2759
- Q.has(lt) || tt.set(lt, At);
2757
+ Z == "horizontal" ? (tt.set(lt, u.has(lt) ? d[u.get(lt)] : k.get(lt)), Ct += tt.get(lt)) : (tt.set(lt, u.has(lt) ? N[u.get(lt)] : k.get(lt)), Ct += tt.get(lt));
2758
+ }), Ct = Ct / st.length, ft.forEach(function(lt) {
2759
+ Q.has(lt) || tt.set(lt, Ct);
2760
2760
  });
2761
2761
  } else {
2762
2762
  var ct = 0;
2763
2763
  ft.forEach(function(lt) {
2764
- k == "horizontal" ? ct += g.has(lt) ? d[g.get(lt)] : Z.get(lt) : ct += g.has(lt) ? N[g.get(lt)] : Z.get(lt);
2764
+ Z == "horizontal" ? ct += u.has(lt) ? d[u.get(lt)] : k.get(lt) : ct += u.has(lt) ? N[u.get(lt)] : k.get(lt);
2765
2765
  }), ct = ct / ft.length, ft.forEach(function(lt) {
2766
2766
  tt.set(lt, ct);
2767
2767
  });
2768
2768
  }
2769
2769
  });
2770
2770
  for (var wt = function() {
2771
- var st = dt.shift(), At = b.get(st);
2772
- At.forEach(function(ct) {
2771
+ var st = dt.shift(), Ct = b.get(st);
2772
+ Ct.forEach(function(ct) {
2773
2773
  if (tt.get(ct.id) < tt.get(st) + ct.gap)
2774
2774
  if (Q && Q.has(ct.id)) {
2775
2775
  var lt = void 0;
2776
- if (k == "horizontal" ? lt = g.has(ct.id) ? d[g.get(ct.id)] : Z.get(ct.id) : lt = g.has(ct.id) ? N[g.get(ct.id)] : Z.get(ct.id), tt.set(ct.id, lt), lt < tt.get(st) + ct.gap) {
2776
+ if (Z == "horizontal" ? lt = u.has(ct.id) ? d[u.get(ct.id)] : k.get(ct.id) : lt = u.has(ct.id) ? N[u.get(ct.id)] : k.get(ct.id), tt.set(ct.id, lt), lt < tt.get(st) + ct.gap) {
2777
2777
  var Wt = tt.get(st) + ct.gap - lt;
2778
2778
  j.get(st).forEach(function(Nt) {
2779
2779
  tt.set(Nt, tt.get(Nt) - Wt);
@@ -2781,7 +2781,7 @@ function dr() {
2781
2781
  }
2782
2782
  } else
2783
2783
  tt.set(ct.id, tt.get(st) + ct.gap);
2784
- ot.set(ct.id, ot.get(ct.id) - 1), ot.get(ct.id) == 0 && dt.push(ct.id), Q && j.set(ct.id, ut(j.get(st), j.get(ct.id)));
2784
+ ot.set(ct.id, ot.get(ct.id) - 1), ot.get(ct.id) == 0 && dt.push(ct.id), Q && j.set(ct.id, gt(j.get(st), j.get(ct.id)));
2785
2785
  });
2786
2786
  }; dt.length != 0; )
2787
2787
  wt();
@@ -2793,11 +2793,11 @@ function dr() {
2793
2793
  var It = [];
2794
2794
  j.forEach(function(ft, st) {
2795
2795
  if (yt.has(st)) {
2796
- var At = false, ct = true, lt = false, Wt = void 0;
2796
+ var Ct = false, ct = true, lt = false, Wt = void 0;
2797
2797
  try {
2798
- for (var Nt = ft[Symbol.iterator](), Ct; !(ct = (Ct = Nt.next()).done); ct = true) {
2799
- var kt = Ct.value;
2800
- Q.has(kt) && (At = true);
2798
+ for (var Nt = ft[Symbol.iterator](), At; !(ct = (At = Nt.next()).done); ct = true) {
2799
+ var Zt = At.value;
2800
+ Q.has(Zt) && (Ct = true);
2801
2801
  }
2802
2802
  } catch (Ft) {
2803
2803
  lt = true, Wt = Ft;
@@ -2809,7 +2809,7 @@ function dr() {
2809
2809
  throw Wt;
2810
2810
  }
2811
2811
  }
2812
- if (!At) {
2812
+ if (!Ct) {
2813
2813
  var Gt = false, $t = void 0;
2814
2814
  It.forEach(function(Ft, qt) {
2815
2815
  Ft.has([].concat(f(ft))[0]) && (Gt = true, $t = qt);
@@ -2819,29 +2819,29 @@ function dr() {
2819
2819
  }
2820
2820
  }
2821
2821
  }), It.forEach(function(ft, st) {
2822
- var At = Number.POSITIVE_INFINITY, ct = Number.POSITIVE_INFINITY, lt = Number.NEGATIVE_INFINITY, Wt = Number.NEGATIVE_INFINITY, Nt = true, Ct = false, kt = void 0;
2822
+ var Ct = Number.POSITIVE_INFINITY, ct = Number.POSITIVE_INFINITY, lt = Number.NEGATIVE_INFINITY, Wt = Number.NEGATIVE_INFINITY, Nt = true, At = false, Zt = void 0;
2823
2823
  try {
2824
2824
  for (var Gt = ft[Symbol.iterator](), $t; !(Nt = ($t = Gt.next()).done); Nt = true) {
2825
2825
  var Ft = $t.value, qt = void 0;
2826
- k == "horizontal" ? qt = g.has(Ft) ? d[g.get(Ft)] : Z.get(Ft) : qt = g.has(Ft) ? N[g.get(Ft)] : Z.get(Ft);
2826
+ Z == "horizontal" ? qt = u.has(Ft) ? d[u.get(Ft)] : k.get(Ft) : qt = u.has(Ft) ? N[u.get(Ft)] : k.get(Ft);
2827
2827
  var _t = tt.get(Ft);
2828
- qt < At && (At = qt), qt > lt && (lt = qt), _t < ct && (ct = _t), _t > Wt && (Wt = _t);
2828
+ qt < Ct && (Ct = qt), qt > lt && (lt = qt), _t < ct && (ct = _t), _t > Wt && (Wt = _t);
2829
2829
  }
2830
2830
  } catch (ie) {
2831
- Ct = true, kt = ie;
2831
+ At = true, Zt = ie;
2832
2832
  } finally {
2833
2833
  try {
2834
2834
  !Nt && Gt.return && Gt.return();
2835
2835
  } finally {
2836
- if (Ct)
2837
- throw kt;
2836
+ if (At)
2837
+ throw Zt;
2838
2838
  }
2839
2839
  }
2840
- var de = (At + lt) / 2 - (ct + Wt) / 2, Kt = true, te = false, ee = void 0;
2840
+ var ue = (Ct + lt) / 2 - (ct + Wt) / 2, Kt = true, te = false, ee = void 0;
2841
2841
  try {
2842
2842
  for (var jt = ft[Symbol.iterator](), se; !(Kt = (se = jt.next()).done); Kt = true) {
2843
2843
  var re = se.value;
2844
- tt.set(re, tt.get(re) + de);
2844
+ tt.set(re, tt.get(re) + ue);
2845
2845
  }
2846
2846
  } catch (ie) {
2847
2847
  te = true, ee = ie;
@@ -2857,52 +2857,52 @@ function dr() {
2857
2857
  }
2858
2858
  return tt;
2859
2859
  }, at = function(b) {
2860
- var k = 0, Q = 0, Z = 0, it = 0;
2860
+ var Z = 0, Q = 0, k = 0, it = 0;
2861
2861
  if (b.forEach(function(j) {
2862
- j.left ? d[g.get(j.left)] - d[g.get(j.right)] >= 0 ? k++ : Q++ : N[g.get(j.top)] - N[g.get(j.bottom)] >= 0 ? Z++ : it++;
2863
- }), k > Q && Z > it)
2864
- for (var ut = 0; ut < g.size; ut++)
2865
- d[ut] = -1 * d[ut], N[ut] = -1 * N[ut];
2866
- else if (k > Q)
2867
- for (var ot = 0; ot < g.size; ot++)
2862
+ j.left ? d[u.get(j.left)] - d[u.get(j.right)] >= 0 ? Z++ : Q++ : N[u.get(j.top)] - N[u.get(j.bottom)] >= 0 ? k++ : it++;
2863
+ }), Z > Q && k > it)
2864
+ for (var gt = 0; gt < u.size; gt++)
2865
+ d[gt] = -1 * d[gt], N[gt] = -1 * N[gt];
2866
+ else if (Z > Q)
2867
+ for (var ot = 0; ot < u.size; ot++)
2868
2868
  d[ot] = -1 * d[ot];
2869
- else if (Z > it)
2870
- for (var tt = 0; tt < g.size; tt++)
2869
+ else if (k > it)
2870
+ for (var tt = 0; tt < u.size; tt++)
2871
2871
  N[tt] = -1 * N[tt];
2872
2872
  }, n = function(b) {
2873
- var k = [], Q = new v(), Z = /* @__PURE__ */ new Set(), it = 0;
2874
- return b.forEach(function(ut, ot) {
2875
- if (!Z.has(ot)) {
2876
- k[it] = [];
2873
+ var Z = [], Q = new v(), k = /* @__PURE__ */ new Set(), it = 0;
2874
+ return b.forEach(function(gt, ot) {
2875
+ if (!k.has(ot)) {
2876
+ Z[it] = [];
2877
2877
  var tt = ot;
2878
- for (Q.push(tt), Z.add(tt), k[it].push(tt); Q.length != 0; ) {
2878
+ for (Q.push(tt), k.add(tt), Z[it].push(tt); Q.length != 0; ) {
2879
2879
  tt = Q.shift();
2880
2880
  var j = b.get(tt);
2881
2881
  j.forEach(function(dt) {
2882
- Z.has(dt.id) || (Q.push(dt.id), Z.add(dt.id), k[it].push(dt.id));
2882
+ k.has(dt.id) || (Q.push(dt.id), k.add(dt.id), Z[it].push(dt.id));
2883
2883
  });
2884
2884
  }
2885
2885
  it++;
2886
2886
  }
2887
- }), k;
2887
+ }), Z;
2888
2888
  }, m = function(b) {
2889
- var k = /* @__PURE__ */ new Map();
2890
- return b.forEach(function(Q, Z) {
2891
- k.set(Z, []);
2892
- }), b.forEach(function(Q, Z) {
2889
+ var Z = /* @__PURE__ */ new Map();
2890
+ return b.forEach(function(Q, k) {
2891
+ Z.set(k, []);
2892
+ }), b.forEach(function(Q, k) {
2893
2893
  Q.forEach(function(it) {
2894
- k.get(Z).push(it), k.get(it.id).push({ id: Z, gap: it.gap, direction: it.direction });
2894
+ Z.get(k).push(it), Z.get(it.id).push({ id: k, gap: it.gap, direction: it.direction });
2895
2895
  });
2896
- }), k;
2896
+ }), Z;
2897
2897
  }, p = function(b) {
2898
- var k = /* @__PURE__ */ new Map();
2899
- return b.forEach(function(Q, Z) {
2900
- k.set(Z, []);
2901
- }), b.forEach(function(Q, Z) {
2898
+ var Z = /* @__PURE__ */ new Map();
2899
+ return b.forEach(function(Q, k) {
2900
+ Z.set(k, []);
2901
+ }), b.forEach(function(Q, k) {
2902
2902
  Q.forEach(function(it) {
2903
- k.get(it.id).push({ id: Z, gap: it.gap, direction: it.direction });
2903
+ Z.get(it.id).push({ id: k, gap: it.gap, direction: it.direction });
2904
2904
  });
2905
- }), k;
2905
+ }), Z;
2906
2906
  }, E = [], y = [], I = false, w = false, R = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), q = [];
2907
2907
  if (l.fixedNodeConstraint && l.fixedNodeConstraint.forEach(function(S) {
2908
2908
  R.add(S.nodeId);
@@ -2911,13 +2911,13 @@ function dr() {
2911
2911
  }), x = m(W), q = n(x)), i.TRANSFORM_ON_CONSTRAINT_HANDLING) {
2912
2912
  if (l.fixedNodeConstraint && l.fixedNodeConstraint.length > 1)
2913
2913
  l.fixedNodeConstraint.forEach(function(S, b) {
2914
- E[b] = [S.position.x, S.position.y], y[b] = [d[g.get(S.nodeId)], N[g.get(S.nodeId)]];
2914
+ E[b] = [S.position.x, S.position.y], y[b] = [d[u.get(S.nodeId)], N[u.get(S.nodeId)]];
2915
2915
  }), I = true;
2916
2916
  else if (l.alignmentConstraint)
2917
2917
  (function() {
2918
2918
  var S = 0;
2919
2919
  if (l.alignmentConstraint.vertical) {
2920
- for (var b = l.alignmentConstraint.vertical, k = function(tt) {
2920
+ for (var b = l.alignmentConstraint.vertical, Z = function(tt) {
2921
2921
  var j = /* @__PURE__ */ new Set();
2922
2922
  b[tt].forEach(function(yt) {
2923
2923
  j.add(yt);
@@ -2925,46 +2925,46 @@ function dr() {
2925
2925
  var dt = new Set([].concat(f(j)).filter(function(yt) {
2926
2926
  return R.has(yt);
2927
2927
  })), wt = void 0;
2928
- dt.size > 0 ? wt = d[g.get(dt.values().next().value)] : wt = K(j).x, b[tt].forEach(function(yt) {
2929
- E[S] = [wt, N[g.get(yt)]], y[S] = [d[g.get(yt)], N[g.get(yt)]], S++;
2928
+ dt.size > 0 ? wt = d[u.get(dt.values().next().value)] : wt = K(j).x, b[tt].forEach(function(yt) {
2929
+ E[S] = [wt, N[u.get(yt)]], y[S] = [d[u.get(yt)], N[u.get(yt)]], S++;
2930
2930
  });
2931
2931
  }, Q = 0; Q < b.length; Q++)
2932
- k(Q);
2932
+ Z(Q);
2933
2933
  I = true;
2934
2934
  }
2935
2935
  if (l.alignmentConstraint.horizontal) {
2936
- for (var Z = l.alignmentConstraint.horizontal, it = function(tt) {
2936
+ for (var k = l.alignmentConstraint.horizontal, it = function(tt) {
2937
2937
  var j = /* @__PURE__ */ new Set();
2938
- Z[tt].forEach(function(yt) {
2938
+ k[tt].forEach(function(yt) {
2939
2939
  j.add(yt);
2940
2940
  });
2941
2941
  var dt = new Set([].concat(f(j)).filter(function(yt) {
2942
2942
  return R.has(yt);
2943
2943
  })), wt = void 0;
2944
- dt.size > 0 ? wt = d[g.get(dt.values().next().value)] : wt = K(j).y, Z[tt].forEach(function(yt) {
2945
- E[S] = [d[g.get(yt)], wt], y[S] = [d[g.get(yt)], N[g.get(yt)]], S++;
2944
+ dt.size > 0 ? wt = d[u.get(dt.values().next().value)] : wt = K(j).y, k[tt].forEach(function(yt) {
2945
+ E[S] = [d[u.get(yt)], wt], y[S] = [d[u.get(yt)], N[u.get(yt)]], S++;
2946
2946
  });
2947
- }, ut = 0; ut < Z.length; ut++)
2948
- it(ut);
2947
+ }, gt = 0; gt < k.length; gt++)
2948
+ it(gt);
2949
2949
  I = true;
2950
2950
  }
2951
2951
  l.relativePlacementConstraint && (w = true);
2952
2952
  })();
2953
2953
  else if (l.relativePlacementConstraint) {
2954
- for (var V = 0, X = 0, et = 0; et < q.length; et++)
2955
- q[et].length > V && (V = q[et].length, X = et);
2954
+ for (var V = 0, Y = 0, et = 0; et < q.length; et++)
2955
+ q[et].length > V && (V = q[et].length, Y = et);
2956
2956
  if (V < x.size / 2)
2957
2957
  at(l.relativePlacementConstraint), I = false, w = false;
2958
2958
  else {
2959
2959
  var z = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), H = [];
2960
- q[X].forEach(function(S) {
2960
+ q[Y].forEach(function(S) {
2961
2961
  W.get(S).forEach(function(b) {
2962
2962
  b.direction == "horizontal" ? (z.has(S) ? z.get(S).push(b) : z.set(S, [b]), z.has(b.id) || z.set(b.id, []), H.push({ left: S, right: b.id })) : (O.has(S) ? O.get(S).push(b) : O.set(S, [b]), O.has(b.id) || O.set(b.id, []), H.push({ top: S, bottom: b.id }));
2963
2963
  });
2964
2964
  }), at(H), w = false;
2965
2965
  var $ = D(z, "horizontal"), _ = D(O, "vertical");
2966
- q[X].forEach(function(S, b) {
2967
- y[b] = [d[g.get(S)], N[g.get(S)]], E[b] = [], $.has(S) ? E[b][0] = $.get(S) : E[b][0] = d[g.get(S)], _.has(S) ? E[b][1] = _.get(S) : E[b][1] = N[g.get(S)];
2966
+ q[Y].forEach(function(S, b) {
2967
+ y[b] = [d[u.get(S)], N[u.get(S)]], E[b] = [], $.has(S) ? E[b][0] = $.get(S) : E[b][0] = d[u.get(S)], _.has(S) ? E[b][1] = _.get(S) : E[b][1] = N[u.get(S)];
2968
2968
  }), I = true;
2969
2969
  }
2970
2970
  }
@@ -2973,9 +2973,9 @@ function dr() {
2973
2973
  J[Lt] = t.multGamma(J[Lt]), Rt[Lt] = t.multGamma(Rt[Lt]);
2974
2974
  var vt = t.multMat(J, t.transpose(Rt)), rt = o.svd(vt);
2975
2975
  ht = t.multMat(rt.V, t.transpose(rt.U));
2976
- for (var gt = 0; gt < g.size; gt++) {
2977
- var Tt = [d[gt], N[gt]], Mt = [ht[0][0], ht[1][0]], Dt = [ht[0][1], ht[1][1]];
2978
- d[gt] = t.dotProduct(Tt, Mt), N[gt] = t.dotProduct(Tt, Dt);
2976
+ for (var ut = 0; ut < u.size; ut++) {
2977
+ var Tt = [d[ut], N[ut]], Mt = [ht[0][0], ht[1][0]], Dt = [ht[0][1], ht[1][1]];
2978
+ d[ut] = t.dotProduct(Tt, Mt), N[ut] = t.dotProduct(Tt, Dt);
2979
2979
  }
2980
2980
  w && at(l.relativePlacementConstraint);
2981
2981
  }
@@ -2984,76 +2984,76 @@ function dr() {
2984
2984
  if (l.fixedNodeConstraint && l.fixedNodeConstraint.length > 0) {
2985
2985
  var mt = { x: 0, y: 0 };
2986
2986
  l.fixedNodeConstraint.forEach(function(S, b) {
2987
- var k = { x: d[g.get(S.nodeId)], y: N[g.get(S.nodeId)] }, Q = S.position, Z = U(Q, k);
2988
- mt.x += Z.x, mt.y += Z.y;
2987
+ var Z = { x: d[u.get(S.nodeId)], y: N[u.get(S.nodeId)] }, Q = S.position, k = U(Q, Z);
2988
+ mt.x += k.x, mt.y += k.y;
2989
2989
  }), mt.x /= l.fixedNodeConstraint.length, mt.y /= l.fixedNodeConstraint.length, d.forEach(function(S, b) {
2990
2990
  d[b] += mt.x;
2991
2991
  }), N.forEach(function(S, b) {
2992
2992
  N[b] += mt.y;
2993
2993
  }), l.fixedNodeConstraint.forEach(function(S) {
2994
- d[g.get(S.nodeId)] = S.position.x, N[g.get(S.nodeId)] = S.position.y;
2994
+ d[u.get(S.nodeId)] = S.position.x, N[u.get(S.nodeId)] = S.position.y;
2995
2995
  });
2996
2996
  }
2997
2997
  if (l.alignmentConstraint) {
2998
2998
  if (l.alignmentConstraint.vertical)
2999
2999
  for (var xt = l.alignmentConstraint.vertical, St = function(b) {
3000
- var k = /* @__PURE__ */ new Set();
3000
+ var Z = /* @__PURE__ */ new Set();
3001
3001
  xt[b].forEach(function(it) {
3002
- k.add(it);
3002
+ Z.add(it);
3003
3003
  });
3004
- var Q = new Set([].concat(f(k)).filter(function(it) {
3004
+ var Q = new Set([].concat(f(Z)).filter(function(it) {
3005
3005
  return R.has(it);
3006
- })), Z = void 0;
3007
- Q.size > 0 ? Z = d[g.get(Q.values().next().value)] : Z = K(k).x, k.forEach(function(it) {
3008
- R.has(it) || (d[g.get(it)] = Z);
3006
+ })), k = void 0;
3007
+ Q.size > 0 ? k = d[u.get(Q.values().next().value)] : k = K(Z).x, Z.forEach(function(it) {
3008
+ R.has(it) || (d[u.get(it)] = k);
3009
3009
  });
3010
3010
  }, Vt = 0; Vt < xt.length; Vt++)
3011
3011
  St(Vt);
3012
3012
  if (l.alignmentConstraint.horizontal)
3013
3013
  for (var Xt = l.alignmentConstraint.horizontal, Ut = function(b) {
3014
- var k = /* @__PURE__ */ new Set();
3014
+ var Z = /* @__PURE__ */ new Set();
3015
3015
  Xt[b].forEach(function(it) {
3016
- k.add(it);
3016
+ Z.add(it);
3017
3017
  });
3018
- var Q = new Set([].concat(f(k)).filter(function(it) {
3018
+ var Q = new Set([].concat(f(Z)).filter(function(it) {
3019
3019
  return R.has(it);
3020
- })), Z = void 0;
3021
- Q.size > 0 ? Z = N[g.get(Q.values().next().value)] : Z = K(k).y, k.forEach(function(it) {
3022
- R.has(it) || (N[g.get(it)] = Z);
3020
+ })), k = void 0;
3021
+ Q.size > 0 ? k = N[u.get(Q.values().next().value)] : k = K(Z).y, Z.forEach(function(it) {
3022
+ R.has(it) || (N[u.get(it)] = k);
3023
3023
  });
3024
3024
  }, bt = 0; bt < Xt.length; bt++)
3025
3025
  Ut(bt);
3026
3026
  }
3027
3027
  l.relativePlacementConstraint && function() {
3028
- var S = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Map(), ut = /* @__PURE__ */ new Set(), ot = /* @__PURE__ */ new Set();
3028
+ var S = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Set(), ot = /* @__PURE__ */ new Set();
3029
3029
  if (R.forEach(function(Yt) {
3030
- ut.add(Yt), ot.add(Yt);
3030
+ gt.add(Yt), ot.add(Yt);
3031
3031
  }), l.alignmentConstraint) {
3032
3032
  if (l.alignmentConstraint.vertical)
3033
3033
  for (var tt = l.alignmentConstraint.vertical, j = function(Et) {
3034
- k.set("dummy" + Et, []), tt[Et].forEach(function(Ot) {
3035
- S.set(Ot, "dummy" + Et), k.get("dummy" + Et).push(Ot), R.has(Ot) && ut.add("dummy" + Et);
3036
- }), Z.set("dummy" + Et, d[g.get(tt[Et][0])]);
3034
+ Z.set("dummy" + Et, []), tt[Et].forEach(function(Ot) {
3035
+ S.set(Ot, "dummy" + Et), Z.get("dummy" + Et).push(Ot), R.has(Ot) && gt.add("dummy" + Et);
3036
+ }), k.set("dummy" + Et, d[u.get(tt[Et][0])]);
3037
3037
  }, dt = 0; dt < tt.length; dt++)
3038
3038
  j(dt);
3039
3039
  if (l.alignmentConstraint.horizontal)
3040
3040
  for (var wt = l.alignmentConstraint.horizontal, yt = function(Et) {
3041
3041
  Q.set("dummy" + Et, []), wt[Et].forEach(function(Ot) {
3042
3042
  b.set(Ot, "dummy" + Et), Q.get("dummy" + Et).push(Ot), R.has(Ot) && ot.add("dummy" + Et);
3043
- }), it.set("dummy" + Et, N[g.get(wt[Et][0])]);
3043
+ }), it.set("dummy" + Et, N[u.get(wt[Et][0])]);
3044
3044
  }, It = 0; It < wt.length; It++)
3045
3045
  yt(It);
3046
3046
  }
3047
- var ft = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map(), At = function(Et) {
3047
+ var ft = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map(), Ct = function(Et) {
3048
3048
  W.get(Et).forEach(function(Ot) {
3049
- var Jt = void 0, Zt = void 0;
3050
- Ot.direction == "horizontal" ? (Jt = S.get(Et) ? S.get(Et) : Et, S.get(Ot.id) ? Zt = { id: S.get(Ot.id), gap: Ot.gap, direction: Ot.direction } : Zt = Ot, ft.has(Jt) ? ft.get(Jt).push(Zt) : ft.set(Jt, [Zt]), ft.has(Zt.id) || ft.set(Zt.id, [])) : (Jt = b.get(Et) ? b.get(Et) : Et, b.get(Ot.id) ? Zt = { id: b.get(Ot.id), gap: Ot.gap, direction: Ot.direction } : Zt = Ot, st.has(Jt) ? st.get(Jt).push(Zt) : st.set(Jt, [Zt]), st.has(Zt.id) || st.set(Zt.id, []));
3049
+ var Jt = void 0, kt = void 0;
3050
+ Ot.direction == "horizontal" ? (Jt = S.get(Et) ? S.get(Et) : Et, S.get(Ot.id) ? kt = { id: S.get(Ot.id), gap: Ot.gap, direction: Ot.direction } : kt = Ot, ft.has(Jt) ? ft.get(Jt).push(kt) : ft.set(Jt, [kt]), ft.has(kt.id) || ft.set(kt.id, [])) : (Jt = b.get(Et) ? b.get(Et) : Et, b.get(Ot.id) ? kt = { id: b.get(Ot.id), gap: Ot.gap, direction: Ot.direction } : kt = Ot, st.has(Jt) ? st.get(Jt).push(kt) : st.set(Jt, [kt]), st.has(kt.id) || st.set(kt.id, []));
3051
3051
  });
3052
3052
  }, ct = true, lt = false, Wt = void 0;
3053
3053
  try {
3054
- for (var Nt = W.keys()[Symbol.iterator](), Ct; !(ct = (Ct = Nt.next()).done); ct = true) {
3055
- var kt = Ct.value;
3056
- At(kt);
3054
+ for (var Nt = W.keys()[Symbol.iterator](), At; !(ct = (At = Nt.next()).done); ct = true) {
3055
+ var Zt = At.value;
3056
+ Ct(Zt);
3057
3057
  }
3058
3058
  } catch (Yt) {
3059
3059
  lt = true, Wt = Yt;
@@ -3065,51 +3065,51 @@ function dr() {
3065
3065
  throw Wt;
3066
3066
  }
3067
3067
  }
3068
- var Gt = m(ft), $t = m(st), Ft = n(Gt), qt = n($t), _t = p(ft), de = p(st), Kt = [], te = [];
3068
+ var Gt = m(ft), $t = m(st), Ft = n(Gt), qt = n($t), _t = p(ft), ue = p(st), Kt = [], te = [];
3069
3069
  Ft.forEach(function(Yt, Et) {
3070
3070
  Kt[Et] = [], Yt.forEach(function(Ot) {
3071
3071
  _t.get(Ot).length == 0 && Kt[Et].push(Ot);
3072
3072
  });
3073
3073
  }), qt.forEach(function(Yt, Et) {
3074
3074
  te[Et] = [], Yt.forEach(function(Ot) {
3075
- de.get(Ot).length == 0 && te[Et].push(Ot);
3075
+ ue.get(Ot).length == 0 && te[Et].push(Ot);
3076
3076
  });
3077
3077
  });
3078
- var ee = D(ft, "horizontal", ut, Z, Kt), jt = D(st, "vertical", ot, it, te), se = function(Et) {
3079
- k.get(Et) ? k.get(Et).forEach(function(Ot) {
3080
- d[g.get(Ot)] = ee.get(Et);
3081
- }) : d[g.get(Et)] = ee.get(Et);
3082
- }, re = true, ie = false, Ce = void 0;
3078
+ var ee = D(ft, "horizontal", gt, k, Kt), jt = D(st, "vertical", ot, it, te), se = function(Et) {
3079
+ Z.get(Et) ? Z.get(Et).forEach(function(Ot) {
3080
+ d[u.get(Ot)] = ee.get(Et);
3081
+ }) : d[u.get(Et)] = ee.get(Et);
3082
+ }, re = true, ie = false, Ae = void 0;
3083
3083
  try {
3084
- for (var ve = ee.keys()[Symbol.iterator](), Me; !(re = (Me = ve.next()).done); re = true) {
3085
- var pe = Me.value;
3086
- se(pe);
3084
+ for (var de = ee.keys()[Symbol.iterator](), Me; !(re = (Me = de.next()).done); re = true) {
3085
+ var ve = Me.value;
3086
+ se(ve);
3087
3087
  }
3088
3088
  } catch (Yt) {
3089
- ie = true, Ce = Yt;
3089
+ ie = true, Ae = Yt;
3090
3090
  } finally {
3091
3091
  try {
3092
- !re && ve.return && ve.return();
3092
+ !re && de.return && de.return();
3093
3093
  } finally {
3094
3094
  if (ie)
3095
- throw Ce;
3095
+ throw Ae;
3096
3096
  }
3097
3097
  }
3098
- var Ze = function(Et) {
3098
+ var qe = function(Et) {
3099
3099
  Q.get(Et) ? Q.get(Et).forEach(function(Ot) {
3100
- N[g.get(Ot)] = jt.get(Et);
3101
- }) : N[g.get(Et)] = jt.get(Et);
3102
- }, ye = true, we = false, Oe = void 0;
3100
+ N[u.get(Ot)] = jt.get(Et);
3101
+ }) : N[u.get(Et)] = jt.get(Et);
3102
+ }, pe = true, we = false, Oe = void 0;
3103
3103
  try {
3104
- for (var Ee = jt.keys()[Symbol.iterator](), De; !(ye = (De = Ee.next()).done); ye = true) {
3105
- var pe = De.value;
3106
- Ze(pe);
3104
+ for (var ye = jt.keys()[Symbol.iterator](), De; !(pe = (De = ye.next()).done); pe = true) {
3105
+ var ve = De.value;
3106
+ qe(ve);
3107
3107
  }
3108
3108
  } catch (Yt) {
3109
3109
  we = true, Oe = Yt;
3110
3110
  } finally {
3111
3111
  try {
3112
- !ye && Ee.return && Ee.return();
3112
+ !pe && ye.return && ye.return();
3113
3113
  } finally {
3114
3114
  if (we)
3115
3115
  throw Oe;
@@ -3119,7 +3119,7 @@ function dr() {
3119
3119
  }
3120
3120
  for (var Ht = 0; Ht < F.length; Ht++) {
3121
3121
  var Bt = F[Ht];
3122
- Bt.getChild() == null && Bt.setCenter(d[g.get(Bt.id)], N[g.get(Bt.id)]);
3122
+ Bt.getChild() == null && Bt.setCenter(d[u.get(Bt.id)], N[u.get(Bt.id)]);
3123
3123
  }
3124
3124
  }, a.exports = s;
3125
3125
  }
@@ -3133,7 +3133,7 @@ function dr() {
3133
3133
  )
3134
3134
  /******/
3135
3135
  }, L = {};
3136
- function u(a) {
3136
+ function g(a) {
3137
3137
  var r = L[a];
3138
3138
  if (r !== void 0)
3139
3139
  return r.exports;
@@ -3146,21 +3146,21 @@ function dr() {
3146
3146
  exports: {}
3147
3147
  /******/
3148
3148
  };
3149
- return P[a](e, e.exports, u), e.exports;
3149
+ return P[a](e, e.exports, g), e.exports;
3150
3150
  }
3151
- var h = u(45);
3151
+ var h = g(45);
3152
3152
  return h;
3153
3153
  })()
3154
3154
  );
3155
3155
  });
3156
3156
  }(fe)), fe.exports;
3157
3157
  }
3158
- var vr = he.exports, Re;
3159
- function pr() {
3160
- return Re || (Re = 1, function(A, Y) {
3158
+ var Er = he.exports, Re;
3159
+ function mr() {
3160
+ return Re || (Re = 1, function(C, X) {
3161
3161
  (function(P, L) {
3162
- A.exports = L(dr());
3163
- })(vr, function(M) {
3162
+ C.exports = L(yr());
3163
+ })(Er, function(M) {
3164
3164
  return (
3165
3165
  /******/
3166
3166
  (() => {
@@ -3186,17 +3186,17 @@ function pr() {
3186
3186
  (a, r, e) => {
3187
3187
  var f = /* @__PURE__ */ function() {
3188
3188
  function t(o, s) {
3189
- var c = [], l = true, T = false, g = void 0;
3189
+ var c = [], l = true, T = false, u = void 0;
3190
3190
  try {
3191
3191
  for (var d = o[Symbol.iterator](), N; !(l = (N = d.next()).done) && (c.push(N.value), !(s && c.length === s)); l = true)
3192
3192
  ;
3193
3193
  } catch (F) {
3194
- T = true, g = F;
3194
+ T = true, u = F;
3195
3195
  } finally {
3196
3196
  try {
3197
3197
  !l && d.return && d.return();
3198
3198
  } finally {
3199
- if (T) throw g;
3199
+ if (T) throw u;
3200
3200
  }
3201
3201
  }
3202
3202
  return c;
@@ -3214,20 +3214,20 @@ function pr() {
3214
3214
  o[t[s].id()] = true;
3215
3215
  var c = t.filter(function(l, T) {
3216
3216
  typeof l == "number" && (l = T);
3217
- for (var g = l.parent()[0]; g != null; ) {
3218
- if (o[g.id()])
3217
+ for (var u = l.parent()[0]; u != null; ) {
3218
+ if (o[u.id()])
3219
3219
  return false;
3220
- g = g.parent()[0];
3220
+ u = u.parent()[0];
3221
3221
  }
3222
3222
  return true;
3223
3223
  });
3224
3224
  return c;
3225
3225
  }, v.connectComponents = function(t, o, s, c) {
3226
- var l = new i(), T = /* @__PURE__ */ new Set(), g = [], d = void 0, N = void 0, F = void 0, C = false, G = 1, B = [], U = [], K = function() {
3226
+ var l = new i(), T = /* @__PURE__ */ new Set(), u = [], d = void 0, N = void 0, F = void 0, A = false, G = 1, B = [], U = [], K = function() {
3227
3227
  var at = t.collection();
3228
3228
  U.push(at);
3229
3229
  var n = s[0], m = t.collection();
3230
- m.merge(n).merge(n.descendants().intersection(o)), g.push(n), m.forEach(function(y) {
3230
+ m.merge(n).merge(n.descendants().intersection(o)), u.push(n), m.forEach(function(y) {
3231
3231
  l.push(y), T.add(y), at.merge(y);
3232
3232
  });
3233
3233
  for (var p = function() {
@@ -3241,7 +3241,7 @@ function pr() {
3241
3241
  if (d = s.intersection(R.union(R.ancestors())), d != null && !T.has(d[0])) {
3242
3242
  var W = d.union(d.descendants());
3243
3243
  W.forEach(function(x) {
3244
- l.push(x), T.add(x), at.merge(x), s.has(x) && g.push(x);
3244
+ l.push(x), T.add(x), at.merge(x), s.has(x) && u.push(x);
3245
3245
  });
3246
3246
  }
3247
3247
  }
@@ -3251,44 +3251,44 @@ function pr() {
3251
3251
  o.intersection(y.connectedEdges()).forEach(function(I) {
3252
3252
  at.has(I.source()) && at.has(I.target()) && at.merge(I);
3253
3253
  });
3254
- }), g.length == s.length && (C = true), !C || C && G > 1) {
3255
- N = g[0], F = N.connectedEdges().length, g.forEach(function(y) {
3254
+ }), u.length == s.length && (A = true), !A || A && G > 1) {
3255
+ N = u[0], F = N.connectedEdges().length, u.forEach(function(y) {
3256
3256
  y.connectedEdges().length < F && (F = y.connectedEdges().length, N = y);
3257
3257
  }), B.push(N.id());
3258
3258
  var E = t.collection();
3259
- E.merge(g[0]), g.forEach(function(y) {
3259
+ E.merge(u[0]), u.forEach(function(y) {
3260
3260
  E.merge(y);
3261
- }), g = [], s = s.difference(E), G++;
3261
+ }), u = [], s = s.difference(E), G++;
3262
3262
  }
3263
3263
  };
3264
3264
  do
3265
3265
  K();
3266
- while (!C);
3266
+ while (!A);
3267
3267
  return c && B.length > 0 && c.set("dummy" + (c.size + 1), B), U;
3268
3268
  }, v.relocateComponent = function(t, o, s) {
3269
3269
  if (!s.fixedNodeConstraint) {
3270
- var c = Number.POSITIVE_INFINITY, l = Number.NEGATIVE_INFINITY, T = Number.POSITIVE_INFINITY, g = Number.NEGATIVE_INFINITY;
3270
+ var c = Number.POSITIVE_INFINITY, l = Number.NEGATIVE_INFINITY, T = Number.POSITIVE_INFINITY, u = Number.NEGATIVE_INFINITY;
3271
3271
  if (s.quality == "draft") {
3272
3272
  var d = true, N = false, F = void 0;
3273
3273
  try {
3274
- for (var C = o.nodeIndexes[Symbol.iterator](), G; !(d = (G = C.next()).done); d = true) {
3274
+ for (var A = o.nodeIndexes[Symbol.iterator](), G; !(d = (G = A.next()).done); d = true) {
3275
3275
  var B = G.value, U = f(B, 2), K = U[0], D = U[1], at = s.cy.getElementById(K);
3276
3276
  if (at) {
3277
3277
  var n = at.boundingBox(), m = o.xCoords[D] - n.w / 2, p = o.xCoords[D] + n.w / 2, E = o.yCoords[D] - n.h / 2, y = o.yCoords[D] + n.h / 2;
3278
- m < c && (c = m), p > l && (l = p), E < T && (T = E), y > g && (g = y);
3278
+ m < c && (c = m), p > l && (l = p), E < T && (T = E), y > u && (u = y);
3279
3279
  }
3280
3280
  }
3281
3281
  } catch (x) {
3282
3282
  N = true, F = x;
3283
3283
  } finally {
3284
3284
  try {
3285
- !d && C.return && C.return();
3285
+ !d && A.return && A.return();
3286
3286
  } finally {
3287
3287
  if (N)
3288
3288
  throw F;
3289
3289
  }
3290
3290
  }
3291
- var I = t.x - (l + c) / 2, w = t.y - (g + T) / 2;
3291
+ var I = t.x - (l + c) / 2, w = t.y - (u + T) / 2;
3292
3292
  o.xCoords = o.xCoords.map(function(x) {
3293
3293
  return x + I;
3294
3294
  }), o.yCoords = o.yCoords.map(function(x) {
@@ -3296,10 +3296,10 @@ function pr() {
3296
3296
  });
3297
3297
  } else {
3298
3298
  Object.keys(o).forEach(function(x) {
3299
- var q = o[x], V = q.getRect().x, X = q.getRect().x + q.getRect().width, et = q.getRect().y, z = q.getRect().y + q.getRect().height;
3300
- V < c && (c = V), X > l && (l = X), et < T && (T = et), z > g && (g = z);
3299
+ var q = o[x], V = q.getRect().x, Y = q.getRect().x + q.getRect().width, et = q.getRect().y, z = q.getRect().y + q.getRect().height;
3300
+ V < c && (c = V), Y > l && (l = Y), et < T && (T = et), z > u && (u = z);
3301
3301
  });
3302
- var R = t.x - (l + c) / 2, W = t.y - (g + T) / 2;
3302
+ var R = t.x - (l + c) / 2, W = t.y - (u + T) / 2;
3303
3303
  Object.keys(o).forEach(function(x) {
3304
3304
  var q = o[x];
3305
3305
  q.setCenter(q.getCenterX() + R, q.getCenterY() + W);
@@ -3307,12 +3307,12 @@ function pr() {
3307
3307
  }
3308
3308
  }
3309
3309
  }, v.calcBoundingBox = function(t, o, s, c) {
3310
- for (var l = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, g = Number.MAX_SAFE_INTEGER, d = Number.MIN_SAFE_INTEGER, N = void 0, F = void 0, C = void 0, G = void 0, B = t.descendants().not(":parent"), U = B.length, K = 0; K < U; K++) {
3310
+ for (var l = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, u = Number.MAX_SAFE_INTEGER, d = Number.MIN_SAFE_INTEGER, N = void 0, F = void 0, A = void 0, G = void 0, B = t.descendants().not(":parent"), U = B.length, K = 0; K < U; K++) {
3311
3311
  var D = B[K];
3312
- N = o[c.get(D.id())] - D.width() / 2, F = o[c.get(D.id())] + D.width() / 2, C = s[c.get(D.id())] - D.height() / 2, G = s[c.get(D.id())] + D.height() / 2, l > N && (l = N), T < F && (T = F), g > C && (g = C), d < G && (d = G);
3312
+ N = o[c.get(D.id())] - D.width() / 2, F = o[c.get(D.id())] + D.width() / 2, A = s[c.get(D.id())] - D.height() / 2, G = s[c.get(D.id())] + D.height() / 2, l > N && (l = N), T < F && (T = F), u > A && (u = A), d < G && (d = G);
3313
3313
  }
3314
3314
  var at = {};
3315
- return at.topLeftX = l, at.topLeftY = g, at.width = T - l, at.height = d - g, at;
3315
+ return at.topLeftX = l, at.topLeftY = u, at.width = T - l, at.height = d - u, at;
3316
3316
  }, v.calcParentsWithoutChildren = function(t, o) {
3317
3317
  var s = t.collection();
3318
3318
  return o.nodes(":parent").forEach(function(c) {
@@ -3329,21 +3329,21 @@ function pr() {
3329
3329
  /***/
3330
3330
  (a, r, e) => {
3331
3331
  var f = e(548), i = e(140).CoSELayout, v = e(140).CoSENode, t = e(140).layoutBase.PointD, o = e(140).layoutBase.DimensionD, s = e(140).layoutBase.LayoutConstants, c = e(140).layoutBase.FDLayoutConstants, l = e(140).CoSEConstants, T = function(d, N) {
3332
- var F = d.cy, C = d.eles, G = C.nodes(), B = C.edges(), U = void 0, K = void 0, D = void 0, at = {};
3332
+ var F = d.cy, A = d.eles, G = A.nodes(), B = A.edges(), U = void 0, K = void 0, D = void 0, at = {};
3333
3333
  d.randomize && (U = N.nodeIndexes, K = N.xCoords, D = N.yCoords);
3334
3334
  var n = function(x) {
3335
3335
  return typeof x == "function";
3336
3336
  }, m = function(x, q) {
3337
3337
  return n(x) ? x(q) : x;
3338
- }, p = f.calcParentsWithoutChildren(F, C), E = function W(x, q, V, X) {
3338
+ }, p = f.calcParentsWithoutChildren(F, A), E = function W(x, q, V, Y) {
3339
3339
  for (var et = q.length, z = 0; z < et; z++) {
3340
3340
  var O = q[z], H = null;
3341
3341
  O.intersection(p).length == 0 && (H = O.children());
3342
3342
  var $ = void 0, _ = O.layoutDimensions({
3343
- nodeDimensionsIncludeLabels: X.nodeDimensionsIncludeLabels
3343
+ nodeDimensionsIncludeLabels: Y.nodeDimensionsIncludeLabels
3344
3344
  });
3345
3345
  if (O.outerWidth() != null && O.outerHeight() != null)
3346
- if (X.randomize)
3346
+ if (Y.randomize)
3347
3347
  if (!O.isParent())
3348
3348
  $ = x.add(new v(V.graphManager, new t(K[U.get(O.id())] - _.w / 2, D[U.get(O.id())] - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h))));
3349
3349
  else {
@@ -3354,20 +3354,20 @@ function pr() {
3354
3354
  $ = x.add(new v(V.graphManager, new t(O.position("x") - _.w / 2, O.position("y") - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h))));
3355
3355
  else
3356
3356
  $ = x.add(new v(this.graphManager));
3357
- if ($.id = O.data("id"), $.nodeRepulsion = m(X.nodeRepulsion, O), $.paddingLeft = parseInt(O.css("padding")), $.paddingTop = parseInt(O.css("padding")), $.paddingRight = parseInt(O.css("padding")), $.paddingBottom = parseInt(O.css("padding")), X.nodeDimensionsIncludeLabels && ($.labelWidth = O.boundingBox({ includeLabels: true, includeNodes: false, includeOverlays: false }).w, $.labelHeight = O.boundingBox({ includeLabels: true, includeNodes: false, includeOverlays: false }).h, $.labelPosVertical = O.css("text-valign"), $.labelPosHorizontal = O.css("text-halign")), at[O.data("id")] = $, isNaN($.rect.x) && ($.rect.x = 0), isNaN($.rect.y) && ($.rect.y = 0), H != null && H.length > 0) {
3357
+ if ($.id = O.data("id"), $.nodeRepulsion = m(Y.nodeRepulsion, O), $.paddingLeft = parseInt(O.css("padding")), $.paddingTop = parseInt(O.css("padding")), $.paddingRight = parseInt(O.css("padding")), $.paddingBottom = parseInt(O.css("padding")), Y.nodeDimensionsIncludeLabels && ($.labelWidth = O.boundingBox({ includeLabels: true, includeNodes: false, includeOverlays: false }).w, $.labelHeight = O.boundingBox({ includeLabels: true, includeNodes: false, includeOverlays: false }).h, $.labelPosVertical = O.css("text-valign"), $.labelPosHorizontal = O.css("text-halign")), at[O.data("id")] = $, isNaN($.rect.x) && ($.rect.x = 0), isNaN($.rect.y) && ($.rect.y = 0), H != null && H.length > 0) {
3358
3358
  var J = void 0;
3359
- J = V.getGraphManager().add(V.newGraph(), $), W(J, H, V, X);
3359
+ J = V.getGraphManager().add(V.newGraph(), $), W(J, H, V, Y);
3360
3360
  }
3361
3361
  }
3362
3362
  }, y = function(x, q, V) {
3363
- for (var X = 0, et = 0, z = 0; z < V.length; z++) {
3363
+ for (var Y = 0, et = 0, z = 0; z < V.length; z++) {
3364
3364
  var O = V[z], H = at[O.data("source")], $ = at[O.data("target")];
3365
3365
  if (H && $ && H !== $ && H.getEdgesBetween($).length == 0) {
3366
3366
  var _ = q.add(x.newEdge(), H, $);
3367
- _.id = O.id(), _.idealLength = m(d.idealEdgeLength, O), _.edgeElasticity = m(d.edgeElasticity, O), X += _.idealLength, et++;
3367
+ _.id = O.id(), _.idealLength = m(d.idealEdgeLength, O), _.edgeElasticity = m(d.edgeElasticity, O), Y += _.idealLength, et++;
3368
3368
  }
3369
3369
  }
3370
- d.idealEdgeLength != null && (et > 0 ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = X / et : n(d.idealEdgeLength) ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = d.idealEdgeLength, l.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, l.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH);
3370
+ d.idealEdgeLength != null && (et > 0 ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = Y / et : n(d.idealEdgeLength) ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = d.idealEdgeLength, l.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, l.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH);
3371
3371
  }, I = function(x, q) {
3372
3372
  q.fixedNodeConstraint && (x.constraints.fixedNodeConstraint = q.fixedNodeConstraint), q.alignmentConstraint && (x.constraints.alignmentConstraint = q.alignmentConstraint), q.relativePlacementConstraint && (x.constraints.relativePlacementConstraint = q.relativePlacementConstraint);
3373
3373
  };
@@ -3384,13 +3384,13 @@ function pr() {
3384
3384
  (a, r, e) => {
3385
3385
  var f = /* @__PURE__ */ function() {
3386
3386
  function d(N, F) {
3387
- for (var C = 0; C < F.length; C++) {
3388
- var G = F[C];
3387
+ for (var A = 0; A < F.length; A++) {
3388
+ var G = F[A];
3389
3389
  G.enumerable = G.enumerable || false, G.configurable = true, "value" in G && (G.writable = true), Object.defineProperty(N, G.key, G);
3390
3390
  }
3391
3391
  }
3392
- return function(N, F, C) {
3393
- return F && d(N.prototype, F), C && d(N, C), N;
3392
+ return function(N, F, A) {
3393
+ return F && d(N.prototype, F), A && d(N, A), N;
3394
3394
  };
3395
3395
  }();
3396
3396
  function i(d, N) {
@@ -3486,47 +3486,47 @@ function pr() {
3486
3486
  stop: function() {
3487
3487
  }
3488
3488
  // on layoutstop
3489
- }), g = function() {
3489
+ }), u = function() {
3490
3490
  function d(N) {
3491
3491
  i(this, d), this.options = v({}, T, N);
3492
3492
  }
3493
3493
  return f(d, [{
3494
3494
  key: "run",
3495
3495
  value: function() {
3496
- var F = this, C = this.options, G = C.cy, B = C.eles, U = [], K = [], D = void 0, at = [];
3497
- C.fixedNodeConstraint && (!Array.isArray(C.fixedNodeConstraint) || C.fixedNodeConstraint.length == 0) && (C.fixedNodeConstraint = void 0), C.alignmentConstraint && (C.alignmentConstraint.vertical && (!Array.isArray(C.alignmentConstraint.vertical) || C.alignmentConstraint.vertical.length == 0) && (C.alignmentConstraint.vertical = void 0), C.alignmentConstraint.horizontal && (!Array.isArray(C.alignmentConstraint.horizontal) || C.alignmentConstraint.horizontal.length == 0) && (C.alignmentConstraint.horizontal = void 0)), C.relativePlacementConstraint && (!Array.isArray(C.relativePlacementConstraint) || C.relativePlacementConstraint.length == 0) && (C.relativePlacementConstraint = void 0);
3498
- var n = C.fixedNodeConstraint || C.alignmentConstraint || C.relativePlacementConstraint;
3499
- n && (C.tile = false, C.packComponents = false);
3496
+ var F = this, A = this.options, G = A.cy, B = A.eles, U = [], K = [], D = void 0, at = [];
3497
+ A.fixedNodeConstraint && (!Array.isArray(A.fixedNodeConstraint) || A.fixedNodeConstraint.length == 0) && (A.fixedNodeConstraint = void 0), A.alignmentConstraint && (A.alignmentConstraint.vertical && (!Array.isArray(A.alignmentConstraint.vertical) || A.alignmentConstraint.vertical.length == 0) && (A.alignmentConstraint.vertical = void 0), A.alignmentConstraint.horizontal && (!Array.isArray(A.alignmentConstraint.horizontal) || A.alignmentConstraint.horizontal.length == 0) && (A.alignmentConstraint.horizontal = void 0)), A.relativePlacementConstraint && (!Array.isArray(A.relativePlacementConstraint) || A.relativePlacementConstraint.length == 0) && (A.relativePlacementConstraint = void 0);
3498
+ var n = A.fixedNodeConstraint || A.alignmentConstraint || A.relativePlacementConstraint;
3499
+ n && (A.tile = false, A.packComponents = false);
3500
3500
  var m = void 0, p = false;
3501
- if (G.layoutUtilities && C.packComponents && (m = G.layoutUtilities("get"), m || (m = G.layoutUtilities()), p = true), B.nodes().length > 0)
3501
+ if (G.layoutUtilities && A.packComponents && (m = G.layoutUtilities("get"), m || (m = G.layoutUtilities()), p = true), B.nodes().length > 0)
3502
3502
  if (p) {
3503
- var I = t.getTopMostNodes(C.eles.nodes());
3504
- if (D = t.connectComponents(G, C.eles, I), D.forEach(function(vt) {
3503
+ var I = t.getTopMostNodes(A.eles.nodes());
3504
+ if (D = t.connectComponents(G, A.eles, I), D.forEach(function(vt) {
3505
3505
  var rt = vt.boundingBox();
3506
3506
  at.push({ x: rt.x1 + rt.w / 2, y: rt.y1 + rt.h / 2 });
3507
- }), C.randomize && D.forEach(function(vt) {
3508
- C.eles = vt, U.push(s(C));
3509
- }), C.quality == "default" || C.quality == "proof") {
3507
+ }), A.randomize && D.forEach(function(vt) {
3508
+ A.eles = vt, U.push(s(A));
3509
+ }), A.quality == "default" || A.quality == "proof") {
3510
3510
  var w = G.collection();
3511
- if (C.tile) {
3512
- var R = /* @__PURE__ */ new Map(), W = [], x = [], q = 0, V = { nodeIndexes: R, xCoords: W, yCoords: x }, X = [];
3511
+ if (A.tile) {
3512
+ var R = /* @__PURE__ */ new Map(), W = [], x = [], q = 0, V = { nodeIndexes: R, xCoords: W, yCoords: x }, Y = [];
3513
3513
  if (D.forEach(function(vt, rt) {
3514
- vt.edges().length == 0 && (vt.nodes().forEach(function(gt, Tt) {
3515
- w.merge(vt.nodes()[Tt]), gt.isParent() || (V.nodeIndexes.set(vt.nodes()[Tt].id(), q++), V.xCoords.push(vt.nodes()[0].position().x), V.yCoords.push(vt.nodes()[0].position().y));
3516
- }), X.push(rt));
3514
+ vt.edges().length == 0 && (vt.nodes().forEach(function(ut, Tt) {
3515
+ w.merge(vt.nodes()[Tt]), ut.isParent() || (V.nodeIndexes.set(vt.nodes()[Tt].id(), q++), V.xCoords.push(vt.nodes()[0].position().x), V.yCoords.push(vt.nodes()[0].position().y));
3516
+ }), Y.push(rt));
3517
3517
  }), w.length > 1) {
3518
3518
  var et = w.boundingBox();
3519
3519
  at.push({ x: et.x1 + et.w / 2, y: et.y1 + et.h / 2 }), D.push(w), U.push(V);
3520
- for (var z = X.length - 1; z >= 0; z--)
3521
- D.splice(X[z], 1), U.splice(X[z], 1), at.splice(X[z], 1);
3520
+ for (var z = Y.length - 1; z >= 0; z--)
3521
+ D.splice(Y[z], 1), U.splice(Y[z], 1), at.splice(Y[z], 1);
3522
3522
  }
3523
3523
  }
3524
3524
  D.forEach(function(vt, rt) {
3525
- C.eles = vt, K.push(l(C, U[rt])), t.relocateComponent(at[rt], K[rt], C);
3525
+ A.eles = vt, K.push(l(A, U[rt])), t.relocateComponent(at[rt], K[rt], A);
3526
3526
  });
3527
3527
  } else
3528
3528
  D.forEach(function(vt, rt) {
3529
- t.relocateComponent(at[rt], U[rt], C);
3529
+ t.relocateComponent(at[rt], U[rt], A);
3530
3530
  });
3531
3531
  var O = /* @__PURE__ */ new Set();
3532
3532
  if (D.length > 1) {
@@ -3534,17 +3534,17 @@ function pr() {
3534
3534
  return vt.css("display") == "none";
3535
3535
  });
3536
3536
  D.forEach(function(vt, rt) {
3537
- var gt = void 0;
3538
- if (C.quality == "draft" && (gt = U[rt].nodeIndexes), vt.nodes().not($).length > 0) {
3537
+ var ut = void 0;
3538
+ if (A.quality == "draft" && (ut = U[rt].nodeIndexes), vt.nodes().not($).length > 0) {
3539
3539
  var Tt = {};
3540
3540
  Tt.edges = [], Tt.nodes = [];
3541
3541
  var Mt = void 0;
3542
3542
  vt.nodes().not($).forEach(function(Dt) {
3543
- if (C.quality == "draft")
3543
+ if (A.quality == "draft")
3544
3544
  if (!Dt.isParent())
3545
- Mt = gt.get(Dt.id()), Tt.nodes.push({ x: U[rt].xCoords[Mt] - Dt.boundingbox().w / 2, y: U[rt].yCoords[Mt] - Dt.boundingbox().h / 2, width: Dt.boundingbox().w, height: Dt.boundingbox().h });
3545
+ Mt = ut.get(Dt.id()), Tt.nodes.push({ x: U[rt].xCoords[Mt] - Dt.boundingbox().w / 2, y: U[rt].yCoords[Mt] - Dt.boundingbox().h / 2, width: Dt.boundingbox().w, height: Dt.boundingbox().h });
3546
3546
  else {
3547
- var mt = t.calcBoundingBox(Dt, U[rt].xCoords, U[rt].yCoords, gt);
3547
+ var mt = t.calcBoundingBox(Dt, U[rt].xCoords, U[rt].yCoords, ut);
3548
3548
  Tt.nodes.push({ x: mt.topLeftX, y: mt.topLeftY, width: mt.width, height: mt.height });
3549
3549
  }
3550
3550
  else
@@ -3552,15 +3552,15 @@ function pr() {
3552
3552
  }), vt.edges().forEach(function(Dt) {
3553
3553
  var mt = Dt.source(), xt = Dt.target();
3554
3554
  if (mt.css("display") != "none" && xt.css("display") != "none")
3555
- if (C.quality == "draft") {
3556
- var St = gt.get(mt.id()), Vt = gt.get(xt.id()), Xt = [], Ut = [];
3555
+ if (A.quality == "draft") {
3556
+ var St = ut.get(mt.id()), Vt = ut.get(xt.id()), Xt = [], Ut = [];
3557
3557
  if (mt.isParent()) {
3558
- var bt = t.calcBoundingBox(mt, U[rt].xCoords, U[rt].yCoords, gt);
3558
+ var bt = t.calcBoundingBox(mt, U[rt].xCoords, U[rt].yCoords, ut);
3559
3559
  Xt.push(bt.topLeftX + bt.width / 2), Xt.push(bt.topLeftY + bt.height / 2);
3560
3560
  } else
3561
3561
  Xt.push(U[rt].xCoords[St]), Xt.push(U[rt].yCoords[St]);
3562
3562
  if (xt.isParent()) {
3563
- var Ht = t.calcBoundingBox(xt, U[rt].xCoords, U[rt].yCoords, gt);
3563
+ var Ht = t.calcBoundingBox(xt, U[rt].xCoords, U[rt].yCoords, ut);
3564
3564
  Ut.push(Ht.topLeftX + Ht.width / 2), Ut.push(Ht.topLeftY + Ht.height / 2);
3565
3565
  } else
3566
3566
  Ut.push(U[rt].xCoords[Vt]), Ut.push(U[rt].yCoords[Vt]);
@@ -3570,41 +3570,41 @@ function pr() {
3570
3570
  }), Tt.nodes.length > 0 && (H.push(Tt), O.add(rt));
3571
3571
  }
3572
3572
  });
3573
- var _ = m.packComponents(H, C.randomize).shifts;
3574
- if (C.quality == "draft")
3573
+ var _ = m.packComponents(H, A.randomize).shifts;
3574
+ if (A.quality == "draft")
3575
3575
  U.forEach(function(vt, rt) {
3576
- var gt = vt.xCoords.map(function(Mt) {
3576
+ var ut = vt.xCoords.map(function(Mt) {
3577
3577
  return Mt + _[rt].dx;
3578
3578
  }), Tt = vt.yCoords.map(function(Mt) {
3579
3579
  return Mt + _[rt].dy;
3580
3580
  });
3581
- vt.xCoords = gt, vt.yCoords = Tt;
3581
+ vt.xCoords = ut, vt.yCoords = Tt;
3582
3582
  });
3583
3583
  else {
3584
3584
  var ht = 0;
3585
3585
  O.forEach(function(vt) {
3586
3586
  Object.keys(K[vt]).forEach(function(rt) {
3587
- var gt = K[vt][rt];
3588
- gt.setCenter(gt.getCenterX() + _[ht].dx, gt.getCenterY() + _[ht].dy);
3587
+ var ut = K[vt][rt];
3588
+ ut.setCenter(ut.getCenterX() + _[ht].dx, ut.getCenterY() + _[ht].dy);
3589
3589
  }), ht++;
3590
3590
  });
3591
3591
  }
3592
3592
  }
3593
3593
  } else {
3594
- var E = C.eles.boundingBox();
3595
- if (at.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), C.randomize) {
3596
- var y = s(C);
3594
+ var E = A.eles.boundingBox();
3595
+ if (at.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), A.randomize) {
3596
+ var y = s(A);
3597
3597
  U.push(y);
3598
3598
  }
3599
- C.quality == "default" || C.quality == "proof" ? (K.push(l(C, U[0])), t.relocateComponent(at[0], K[0], C)) : t.relocateComponent(at[0], U[0], C);
3599
+ A.quality == "default" || A.quality == "proof" ? (K.push(l(A, U[0])), t.relocateComponent(at[0], K[0], A)) : t.relocateComponent(at[0], U[0], A);
3600
3600
  }
3601
- var J = function(rt, gt) {
3602
- if (C.quality == "default" || C.quality == "proof") {
3603
- typeof rt == "number" && (rt = gt);
3601
+ var J = function(rt, ut) {
3602
+ if (A.quality == "default" || A.quality == "proof") {
3603
+ typeof rt == "number" && (rt = ut);
3604
3604
  var Tt = void 0, Mt = void 0, Dt = rt.data("id");
3605
3605
  return K.forEach(function(xt) {
3606
3606
  Dt in xt && (Tt = { x: xt[Dt].getRect().getCenterX(), y: xt[Dt].getRect().getCenterY() }, Mt = xt[Dt]);
3607
- }), C.nodeDimensionsIncludeLabels && (Mt.labelWidth && (Mt.labelPosHorizontal == "left" ? Tt.x += Mt.labelWidth / 2 : Mt.labelPosHorizontal == "right" && (Tt.x -= Mt.labelWidth / 2)), Mt.labelHeight && (Mt.labelPosVertical == "top" ? Tt.y += Mt.labelHeight / 2 : Mt.labelPosVertical == "bottom" && (Tt.y -= Mt.labelHeight / 2))), Tt == null && (Tt = { x: rt.position("x"), y: rt.position("y") }), {
3607
+ }), A.nodeDimensionsIncludeLabels && (Mt.labelWidth && (Mt.labelPosHorizontal == "left" ? Tt.x += Mt.labelWidth / 2 : Mt.labelPosHorizontal == "right" && (Tt.x -= Mt.labelWidth / 2)), Mt.labelHeight && (Mt.labelPosVertical == "top" ? Tt.y += Mt.labelHeight / 2 : Mt.labelPosVertical == "bottom" && (Tt.y -= Mt.labelHeight / 2))), Tt == null && (Tt = { x: rt.position("x"), y: rt.position("y") }), {
3608
3608
  x: Tt.x,
3609
3609
  y: Tt.y
3610
3610
  };
@@ -3619,11 +3619,11 @@ function pr() {
3619
3619
  };
3620
3620
  }
3621
3621
  };
3622
- if (C.quality == "default" || C.quality == "proof" || C.randomize) {
3622
+ if (A.quality == "default" || A.quality == "proof" || A.randomize) {
3623
3623
  var Rt = t.calcParentsWithoutChildren(G, B), Lt = B.filter(function(vt) {
3624
3624
  return vt.css("display") == "none";
3625
3625
  });
3626
- C.eles = B.not(Lt), B.nodes().not(":parent").not(Lt).layoutPositions(F, C, J), Rt.length > 0 && Rt.forEach(function(vt) {
3626
+ A.eles = B.not(Lt), B.nodes().not(":parent").not(Lt).layoutPositions(F, A, J), Rt.length > 0 && Rt.forEach(function(vt) {
3627
3627
  vt.position(J(vt));
3628
3628
  });
3629
3629
  } else
@@ -3631,7 +3631,7 @@ function pr() {
3631
3631
  }
3632
3632
  }]), d;
3633
3633
  }();
3634
- a.exports = g;
3634
+ a.exports = u;
3635
3635
  }
3636
3636
  ),
3637
3637
  /***/
@@ -3639,67 +3639,67 @@ function pr() {
3639
3639
  /***/
3640
3640
  (a, r, e) => {
3641
3641
  var f = e(548), i = e(140).layoutBase.Matrix, v = e(140).layoutBase.SVD, t = function(s) {
3642
- var c = s.cy, l = s.eles, T = l.nodes(), g = l.nodes(":parent"), d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), C = [], G = [], B = [], U = [], K = [], D = [], at = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = s.piTol, I = s.samplingType, w = s.nodeSeparation, R = void 0, W = function() {
3643
- for (var b = 0, k = 0, Q = false; k < R; ) {
3642
+ var c = s.cy, l = s.eles, T = l.nodes(), u = l.nodes(":parent"), d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), A = [], G = [], B = [], U = [], K = [], D = [], at = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = s.piTol, I = s.samplingType, w = s.nodeSeparation, R = void 0, W = function() {
3643
+ for (var b = 0, Z = 0, Q = false; Z < R; ) {
3644
3644
  b = Math.floor(Math.random() * m), Q = false;
3645
- for (var Z = 0; Z < k; Z++)
3646
- if (U[Z] == b) {
3645
+ for (var k = 0; k < Z; k++)
3646
+ if (U[k] == b) {
3647
3647
  Q = true;
3648
3648
  break;
3649
3649
  }
3650
3650
  if (!Q)
3651
- U[k] = b, k++;
3651
+ U[Z] = b, Z++;
3652
3652
  else
3653
3653
  continue;
3654
3654
  }
3655
- }, x = function(b, k, Q) {
3656
- for (var Z = [], it = 0, ut = 0, ot = 0, tt = void 0, j = [], dt = 0, wt = 1, yt = 0; yt < m; yt++)
3655
+ }, x = function(b, Z, Q) {
3656
+ for (var k = [], it = 0, gt = 0, ot = 0, tt = void 0, j = [], dt = 0, wt = 1, yt = 0; yt < m; yt++)
3657
3657
  j[yt] = p;
3658
- for (Z[ut] = b, j[b] = 0; ut >= it; ) {
3659
- ot = Z[it++];
3660
- for (var It = C[ot], ft = 0; ft < It.length; ft++)
3661
- tt = N.get(It[ft]), j[tt] == p && (j[tt] = j[ot] + 1, Z[++ut] = tt);
3662
- D[ot][k] = j[ot] * w;
3658
+ for (k[gt] = b, j[b] = 0; gt >= it; ) {
3659
+ ot = k[it++];
3660
+ for (var It = A[ot], ft = 0; ft < It.length; ft++)
3661
+ tt = N.get(It[ft]), j[tt] == p && (j[tt] = j[ot] + 1, k[++gt] = tt);
3662
+ D[ot][Z] = j[ot] * w;
3663
3663
  }
3664
3664
  if (Q) {
3665
3665
  for (var st = 0; st < m; st++)
3666
- D[st][k] < K[st] && (K[st] = D[st][k]);
3667
- for (var At = 0; At < m; At++)
3668
- K[At] > dt && (dt = K[At], wt = At);
3666
+ D[st][Z] < K[st] && (K[st] = D[st][Z]);
3667
+ for (var Ct = 0; Ct < m; Ct++)
3668
+ K[Ct] > dt && (dt = K[Ct], wt = Ct);
3669
3669
  }
3670
3670
  return wt;
3671
3671
  }, q = function(b) {
3672
- var k = void 0;
3672
+ var Z = void 0;
3673
3673
  if (b) {
3674
- k = Math.floor(Math.random() * m);
3675
- for (var Z = 0; Z < m; Z++)
3676
- K[Z] = p;
3674
+ Z = Math.floor(Math.random() * m);
3675
+ for (var k = 0; k < m; k++)
3676
+ K[k] = p;
3677
3677
  for (var it = 0; it < R; it++)
3678
- U[it] = k, k = x(k, it, b);
3678
+ U[it] = Z, Z = x(Z, it, b);
3679
3679
  } else {
3680
3680
  W();
3681
3681
  for (var Q = 0; Q < R; Q++)
3682
3682
  x(U[Q], Q, b);
3683
3683
  }
3684
- for (var ut = 0; ut < m; ut++)
3684
+ for (var gt = 0; gt < m; gt++)
3685
3685
  for (var ot = 0; ot < R; ot++)
3686
- D[ut][ot] *= D[ut][ot];
3686
+ D[gt][ot] *= D[gt][ot];
3687
3687
  for (var tt = 0; tt < R; tt++)
3688
3688
  at[tt] = [];
3689
3689
  for (var j = 0; j < R; j++)
3690
3690
  for (var dt = 0; dt < R; dt++)
3691
3691
  at[j][dt] = D[U[dt]][j];
3692
3692
  }, V = function() {
3693
- for (var b = v.svd(at), k = b.S, Q = b.U, Z = b.V, it = k[0] * k[0] * k[0], ut = [], ot = 0; ot < R; ot++) {
3694
- ut[ot] = [];
3693
+ for (var b = v.svd(at), Z = b.S, Q = b.U, k = b.V, it = Z[0] * Z[0] * Z[0], gt = [], ot = 0; ot < R; ot++) {
3694
+ gt[ot] = [];
3695
3695
  for (var tt = 0; tt < R; tt++)
3696
- ut[ot][tt] = 0, ot == tt && (ut[ot][tt] = k[ot] / (k[ot] * k[ot] + it / (k[ot] * k[ot])));
3696
+ gt[ot][tt] = 0, ot == tt && (gt[ot][tt] = Z[ot] / (Z[ot] * Z[ot] + it / (Z[ot] * Z[ot])));
3697
3697
  }
3698
- n = i.multMat(i.multMat(Z, ut), i.transpose(Q));
3699
- }, X = function() {
3700
- for (var b = void 0, k = void 0, Q = [], Z = [], it = [], ut = [], ot = 0; ot < m; ot++)
3701
- Q[ot] = Math.random(), Z[ot] = Math.random();
3702
- Q = i.normalize(Q), Z = i.normalize(Z);
3698
+ n = i.multMat(i.multMat(k, gt), i.transpose(Q));
3699
+ }, Y = function() {
3700
+ for (var b = void 0, Z = void 0, Q = [], k = [], it = [], gt = [], ot = 0; ot < m; ot++)
3701
+ Q[ot] = Math.random(), k[ot] = Math.random();
3702
+ Q = i.normalize(Q), k = i.normalize(k);
3703
3703
  for (var tt = E, j = E, dt = void 0; ; ) {
3704
3704
  for (var wt = 0; wt < m; wt++)
3705
3705
  it[wt] = Q[wt];
@@ -3711,16 +3711,16 @@ function pr() {
3711
3711
  it[yt] = Q[yt];
3712
3712
  for (j = E; ; ) {
3713
3713
  for (var It = 0; It < m; It++)
3714
- ut[It] = Z[It];
3715
- if (ut = i.minusOp(ut, i.multCons(it, i.dotProduct(it, ut))), Z = i.multGamma(i.multL(i.multGamma(ut), D, n)), k = i.dotProduct(ut, Z), Z = i.normalize(Z), tt = i.dotProduct(ut, Z), dt = Math.abs(tt / j), dt <= 1 + y && dt >= 1)
3714
+ gt[It] = k[It];
3715
+ if (gt = i.minusOp(gt, i.multCons(it, i.dotProduct(it, gt))), k = i.multGamma(i.multL(i.multGamma(gt), D, n)), Z = i.dotProduct(gt, k), k = i.normalize(k), tt = i.dotProduct(gt, k), dt = Math.abs(tt / j), dt <= 1 + y && dt >= 1)
3716
3716
  break;
3717
3717
  j = tt;
3718
3718
  }
3719
3719
  for (var ft = 0; ft < m; ft++)
3720
- ut[ft] = Z[ft];
3721
- G = i.multCons(it, Math.sqrt(Math.abs(b))), B = i.multCons(ut, Math.sqrt(Math.abs(k)));
3720
+ gt[ft] = k[ft];
3721
+ G = i.multCons(it, Math.sqrt(Math.abs(b))), B = i.multCons(gt, Math.sqrt(Math.abs(Z)));
3722
3722
  };
3723
- f.connectComponents(c, l, f.getTopMostNodes(T), d), g.forEach(function(S) {
3723
+ f.connectComponents(c, l, f.getTopMostNodes(T), d), u.forEach(function(S) {
3724
3724
  f.connectComponents(c, l, f.getTopMostNodes(S.descendants().intersection(l)), d);
3725
3725
  });
3726
3726
  for (var et = 0, z = 0; z < T.length; z++)
@@ -3742,39 +3742,39 @@ function pr() {
3742
3742
  }
3743
3743
  }
3744
3744
  for (var Rt = 0; Rt < N.size; Rt++)
3745
- C[Rt] = [];
3746
- g.forEach(function(S) {
3745
+ A[Rt] = [];
3746
+ u.forEach(function(S) {
3747
3747
  for (var b = S.children().intersection(l); b.nodes(":childless").length == 0; )
3748
3748
  b = b.nodes()[0].children().intersection(l);
3749
- var k = 0, Q = b.nodes(":childless")[0].connectedEdges().length;
3750
- b.nodes(":childless").forEach(function(Z, it) {
3751
- Z.connectedEdges().length < Q && (Q = Z.connectedEdges().length, k = it);
3752
- }), F.set(S.id(), b.nodes(":childless")[k].id());
3749
+ var Z = 0, Q = b.nodes(":childless")[0].connectedEdges().length;
3750
+ b.nodes(":childless").forEach(function(k, it) {
3751
+ k.connectedEdges().length < Q && (Q = k.connectedEdges().length, Z = it);
3752
+ }), F.set(S.id(), b.nodes(":childless")[Z].id());
3753
3753
  }), T.forEach(function(S) {
3754
3754
  var b = void 0;
3755
- S.isParent() ? b = N.get(F.get(S.id())) : b = N.get(S.id()), S.neighborhood().nodes().forEach(function(k) {
3756
- l.intersection(S.edgesWith(k)).length > 0 && (k.isParent() ? C[b].push(F.get(k.id())) : C[b].push(k.id()));
3755
+ S.isParent() ? b = N.get(F.get(S.id())) : b = N.get(S.id()), S.neighborhood().nodes().forEach(function(Z) {
3756
+ l.intersection(S.edgesWith(Z)).length > 0 && (Z.isParent() ? A[b].push(F.get(Z.id())) : A[b].push(Z.id()));
3757
3757
  });
3758
3758
  });
3759
3759
  var Lt = function(b) {
3760
- var k = N.get(b), Q = void 0;
3761
- d.get(b).forEach(function(Z) {
3762
- c.getElementById(Z).isParent() ? Q = F.get(Z) : Q = Z, C[k].push(Q), C[N.get(Q)].push(b);
3760
+ var Z = N.get(b), Q = void 0;
3761
+ d.get(b).forEach(function(k) {
3762
+ c.getElementById(k).isParent() ? Q = F.get(k) : Q = k, A[Z].push(Q), A[N.get(Q)].push(b);
3763
3763
  });
3764
- }, vt = true, rt = false, gt = void 0;
3764
+ }, vt = true, rt = false, ut = void 0;
3765
3765
  try {
3766
3766
  for (var Tt = d.keys()[Symbol.iterator](), Mt; !(vt = (Mt = Tt.next()).done); vt = true) {
3767
3767
  var Dt = Mt.value;
3768
3768
  Lt(Dt);
3769
3769
  }
3770
3770
  } catch (S) {
3771
- rt = true, gt = S;
3771
+ rt = true, ut = S;
3772
3772
  } finally {
3773
3773
  try {
3774
3774
  !vt && Tt.return && Tt.return();
3775
3775
  } finally {
3776
3776
  if (rt)
3777
- throw gt;
3777
+ throw ut;
3778
3778
  }
3779
3779
  }
3780
3780
  m = N.size;
@@ -3785,7 +3785,7 @@ function pr() {
3785
3785
  D[xt] = [];
3786
3786
  for (var St = 0; St < R; St++)
3787
3787
  n[St] = [];
3788
- return s.quality == "draft" || s.step == "all" ? (q(I), V(), X(), mt = { nodeIndexes: N, xCoords: G, yCoords: B }) : (N.forEach(function(S, b) {
3788
+ return s.quality == "draft" || s.step == "all" ? (q(I), V(), Y(), mt = { nodeIndexes: N, xCoords: G, yCoords: B }) : (N.forEach(function(S, b) {
3789
3789
  G.push(c.getElementById(b).position("x")), B.push(c.getElementById(b).position("y"));
3790
3790
  }), mt = { nodeIndexes: N, xCoords: G, yCoords: B }), mt;
3791
3791
  } else {
@@ -3819,7 +3819,7 @@ function pr() {
3819
3819
  )
3820
3820
  /******/
3821
3821
  }, L = {};
3822
- function u(a) {
3822
+ function g(a) {
3823
3823
  var r = L[a];
3824
3824
  if (r !== void 0)
3825
3825
  return r.exports;
@@ -3832,66 +3832,66 @@ function pr() {
3832
3832
  exports: {}
3833
3833
  /******/
3834
3834
  };
3835
- return P[a](e, e.exports, u), e.exports;
3835
+ return P[a](e, e.exports, g), e.exports;
3836
3836
  }
3837
- var h = u(579);
3837
+ var h = g(579);
3838
3838
  return h;
3839
3839
  })()
3840
3840
  );
3841
3841
  });
3842
3842
  }(he)), he.exports;
3843
3843
  }
3844
- var yr = pr();
3845
- const Er = /* @__PURE__ */ fr(yr);
3844
+ var Tr = mr();
3845
+ const Nr = /* @__PURE__ */ ur(Tr);
3846
3846
  var Se = {
3847
3847
  L: "left",
3848
3848
  R: "right",
3849
3849
  T: "top",
3850
3850
  B: "bottom"
3851
3851
  }, Fe = {
3852
- L: /* @__PURE__ */ nt((A) => `${A},${A / 2} 0,${A} 0,0`, "L"),
3853
- R: /* @__PURE__ */ nt((A) => `0,${A / 2} ${A},0 ${A},${A}`, "R"),
3854
- T: /* @__PURE__ */ nt((A) => `0,0 ${A},0 ${A / 2},${A}`, "T"),
3855
- B: /* @__PURE__ */ nt((A) => `${A / 2},0 ${A},${A} 0,${A}`, "B")
3852
+ L: /* @__PURE__ */ nt((C) => `${C},${C / 2} 0,${C} 0,0`, "L"),
3853
+ R: /* @__PURE__ */ nt((C) => `0,${C / 2} ${C},0 ${C},${C}`, "R"),
3854
+ T: /* @__PURE__ */ nt((C) => `0,0 ${C},0 ${C / 2},${C}`, "T"),
3855
+ B: /* @__PURE__ */ nt((C) => `${C / 2},0 ${C},${C} 0,${C}`, "B")
3856
3856
  }, le = {
3857
- L: /* @__PURE__ */ nt((A, Y) => A - Y + 2, "L"),
3858
- R: /* @__PURE__ */ nt((A, Y) => A - 2, "R"),
3859
- T: /* @__PURE__ */ nt((A, Y) => A - Y + 2, "T"),
3860
- B: /* @__PURE__ */ nt((A, Y) => A - 2, "B")
3861
- }, mr = /* @__PURE__ */ nt(function(A) {
3862
- return zt(A) ? A === "L" ? "R" : "L" : A === "T" ? "B" : "T";
3863
- }, "getOppositeArchitectureDirection"), be = /* @__PURE__ */ nt(function(A) {
3864
- const Y = A;
3865
- return Y === "L" || Y === "R" || Y === "T" || Y === "B";
3866
- }, "isArchitectureDirection"), zt = /* @__PURE__ */ nt(function(A) {
3867
- const Y = A;
3868
- return Y === "L" || Y === "R";
3869
- }, "isArchitectureDirectionX"), Qt = /* @__PURE__ */ nt(function(A) {
3870
- const Y = A;
3871
- return Y === "T" || Y === "B";
3872
- }, "isArchitectureDirectionY"), Ae = /* @__PURE__ */ nt(function(A, Y) {
3873
- const M = zt(A) && Qt(Y), P = Qt(A) && zt(Y);
3857
+ L: /* @__PURE__ */ nt((C, X) => C - X + 2, "L"),
3858
+ R: /* @__PURE__ */ nt((C, X) => C - 2, "R"),
3859
+ T: /* @__PURE__ */ nt((C, X) => C - X + 2, "T"),
3860
+ B: /* @__PURE__ */ nt((C, X) => C - 2, "B")
3861
+ }, Lr = /* @__PURE__ */ nt(function(C) {
3862
+ return zt(C) ? C === "L" ? "R" : "L" : C === "T" ? "B" : "T";
3863
+ }, "getOppositeArchitectureDirection"), be = /* @__PURE__ */ nt(function(C) {
3864
+ const X = C;
3865
+ return X === "L" || X === "R" || X === "T" || X === "B";
3866
+ }, "isArchitectureDirection"), zt = /* @__PURE__ */ nt(function(C) {
3867
+ const X = C;
3868
+ return X === "L" || X === "R";
3869
+ }, "isArchitectureDirectionX"), Qt = /* @__PURE__ */ nt(function(C) {
3870
+ const X = C;
3871
+ return X === "T" || X === "B";
3872
+ }, "isArchitectureDirectionY"), Ce = /* @__PURE__ */ nt(function(C, X) {
3873
+ const M = zt(C) && Qt(X), P = Qt(C) && zt(X);
3874
3874
  return M || P;
3875
- }, "isArchitectureDirectionXY"), Tr = /* @__PURE__ */ nt(function(A) {
3876
- const Y = A[0], M = A[1], P = zt(Y) && Qt(M), L = Qt(Y) && zt(M);
3875
+ }, "isArchitectureDirectionXY"), Cr = /* @__PURE__ */ nt(function(C) {
3876
+ const X = C[0], M = C[1], P = zt(X) && Qt(M), L = Qt(X) && zt(M);
3877
3877
  return P || L;
3878
- }, "isArchitecturePairXY"), Nr = /* @__PURE__ */ nt(function(A) {
3879
- return A !== "LL" && A !== "RR" && A !== "TT" && A !== "BB";
3880
- }, "isValidArchitectureDirectionPair"), Te = /* @__PURE__ */ nt(function(A, Y) {
3881
- const M = `${A}${Y}`;
3882
- return Nr(M) ? M : void 0;
3883
- }, "getArchitectureDirectionPair"), Lr = /* @__PURE__ */ nt(function([A, Y], M) {
3878
+ }, "isArchitecturePairXY"), Ar = /* @__PURE__ */ nt(function(C) {
3879
+ return C !== "LL" && C !== "RR" && C !== "TT" && C !== "BB";
3880
+ }, "isValidArchitectureDirectionPair"), me = /* @__PURE__ */ nt(function(C, X) {
3881
+ const M = `${C}${X}`;
3882
+ return Ar(M) ? M : void 0;
3883
+ }, "getArchitectureDirectionPair"), Mr = /* @__PURE__ */ nt(function([C, X], M) {
3884
3884
  const P = M[0], L = M[1];
3885
- return zt(P) ? Qt(L) ? [A + (P === "L" ? -1 : 1), Y + (L === "T" ? 1 : -1)] : [A + (P === "L" ? -1 : 1), Y] : zt(L) ? [A + (L === "L" ? 1 : -1), Y + (P === "T" ? 1 : -1)] : [A, Y + (P === "T" ? 1 : -1)];
3886
- }, "shiftPositionByArchitectureDirectionPair"), Ar = /* @__PURE__ */ nt(function(A) {
3887
- return A === "LT" || A === "TL" ? [1, 1] : A === "BL" || A === "LB" ? [1, -1] : A === "BR" || A === "RB" ? [-1, -1] : [-1, 1];
3888
- }, "getArchitectureDirectionXYFactors"), Cr = /* @__PURE__ */ nt(function(A, Y) {
3889
- return Ae(A, Y) ? "bend" : zt(A) ? "horizontal" : "vertical";
3890
- }, "getArchitectureDirectionAlignment"), Mr = /* @__PURE__ */ nt(function(A) {
3891
- return A.type === "service";
3892
- }, "isArchitectureService"), wr = /* @__PURE__ */ nt(function(A) {
3893
- return A.type === "junction";
3894
- }, "isArchitectureJunction"), Ue = /* @__PURE__ */ nt((A) => A.data(), "edgeData"), ne = /* @__PURE__ */ nt((A) => A.data(), "nodeData"), Ye = ar.architecture, pt = new lr(() => ({
3885
+ return zt(P) ? Qt(L) ? [C + (P === "L" ? -1 : 1), X + (L === "T" ? 1 : -1)] : [C + (P === "L" ? -1 : 1), X] : zt(L) ? [C + (L === "L" ? 1 : -1), X + (P === "T" ? 1 : -1)] : [C, X + (P === "T" ? 1 : -1)];
3886
+ }, "shiftPositionByArchitectureDirectionPair"), wr = /* @__PURE__ */ nt(function(C) {
3887
+ return C === "LT" || C === "TL" ? [1, 1] : C === "BL" || C === "LB" ? [1, -1] : C === "BR" || C === "RB" ? [-1, -1] : [-1, 1];
3888
+ }, "getArchitectureDirectionXYFactors"), Or = /* @__PURE__ */ nt(function(C, X) {
3889
+ return Ce(C, X) ? "bend" : zt(C) ? "horizontal" : "vertical";
3890
+ }, "getArchitectureDirectionAlignment"), Dr = /* @__PURE__ */ nt(function(C) {
3891
+ return C.type === "service";
3892
+ }, "isArchitectureService"), xr = /* @__PURE__ */ nt(function(C) {
3893
+ return C.type === "junction";
3894
+ }, "isArchitectureJunction"), Ue = /* @__PURE__ */ nt((C) => C.data(), "edgeData"), ne = /* @__PURE__ */ nt((C) => C.data(), "nodeData"), Ye = nr.architecture, pt = new cr(() => ({
3895
3895
  nodes: {},
3896
3896
  groups: {},
3897
3897
  edges: [],
@@ -3899,143 +3899,143 @@ var Se = {
3899
3899
  config: Ye,
3900
3900
  dataStructures: void 0,
3901
3901
  elements: {}
3902
- })), Or = /* @__PURE__ */ nt(() => {
3903
- pt.reset(), rr();
3904
- }, "clear"), Dr = /* @__PURE__ */ nt(function({
3905
- id: A,
3906
- icon: Y,
3902
+ })), Ir = /* @__PURE__ */ nt(() => {
3903
+ pt.reset(), or();
3904
+ }, "clear"), Rr = /* @__PURE__ */ nt(function({
3905
+ id: C,
3906
+ icon: X,
3907
3907
  in: M,
3908
3908
  title: P,
3909
3909
  iconText: L
3910
3910
  }) {
3911
- if (pt.records.registeredIds[A] !== void 0)
3911
+ if (pt.records.registeredIds[C] !== void 0)
3912
3912
  throw new Error(
3913
- `The service id [${A}] is already in use by another ${pt.records.registeredIds[A]}`
3913
+ `The service id [${C}] is already in use by another ${pt.records.registeredIds[C]}`
3914
3914
  );
3915
3915
  if (M !== void 0) {
3916
- if (A === M)
3917
- throw new Error(`The service [${A}] cannot be placed within itself`);
3916
+ if (C === M)
3917
+ throw new Error(`The service [${C}] cannot be placed within itself`);
3918
3918
  if (pt.records.registeredIds[M] === void 0)
3919
3919
  throw new Error(
3920
- `The service [${A}]'s parent does not exist. Please make sure the parent is created before this service`
3920
+ `The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`
3921
3921
  );
3922
3922
  if (pt.records.registeredIds[M] === "node")
3923
- throw new Error(`The service [${A}]'s parent is not a group`);
3923
+ throw new Error(`The service [${C}]'s parent is not a group`);
3924
3924
  }
3925
- pt.records.registeredIds[A] = "node", pt.records.nodes[A] = {
3926
- id: A,
3925
+ pt.records.registeredIds[C] = "node", pt.records.nodes[C] = {
3926
+ id: C,
3927
3927
  type: "service",
3928
- icon: Y,
3928
+ icon: X,
3929
3929
  iconText: L,
3930
3930
  title: P,
3931
3931
  edges: [],
3932
3932
  in: M
3933
3933
  };
3934
- }, "addService"), xr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes).filter(Mr), "getServices"), Ir = /* @__PURE__ */ nt(function({ id: A, in: Y }) {
3935
- pt.records.registeredIds[A] = "node", pt.records.nodes[A] = {
3936
- id: A,
3934
+ }, "addService"), Sr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes).filter(Dr), "getServices"), Fr = /* @__PURE__ */ nt(function({ id: C, in: X }) {
3935
+ pt.records.registeredIds[C] = "node", pt.records.nodes[C] = {
3936
+ id: C,
3937
3937
  type: "junction",
3938
3938
  edges: [],
3939
- in: Y
3939
+ in: X
3940
3940
  };
3941
- }, "addJunction"), Rr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes).filter(wr), "getJunctions"), Sr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes), "getNodes"), Ne = /* @__PURE__ */ nt((A) => pt.records.nodes[A], "getNode"), Fr = /* @__PURE__ */ nt(function({ id: A, icon: Y, in: M, title: P }) {
3942
- if (pt.records.registeredIds[A] !== void 0)
3941
+ }, "addJunction"), br = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes).filter(xr), "getJunctions"), Pr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes), "getNodes"), Te = /* @__PURE__ */ nt((C) => pt.records.nodes[C], "getNode"), Gr = /* @__PURE__ */ nt(function({ id: C, icon: X, in: M, title: P }) {
3942
+ if (pt.records.registeredIds[C] !== void 0)
3943
3943
  throw new Error(
3944
- `The group id [${A}] is already in use by another ${pt.records.registeredIds[A]}`
3944
+ `The group id [${C}] is already in use by another ${pt.records.registeredIds[C]}`
3945
3945
  );
3946
3946
  if (M !== void 0) {
3947
- if (A === M)
3948
- throw new Error(`The group [${A}] cannot be placed within itself`);
3947
+ if (C === M)
3948
+ throw new Error(`The group [${C}] cannot be placed within itself`);
3949
3949
  if (pt.records.registeredIds[M] === void 0)
3950
3950
  throw new Error(
3951
- `The group [${A}]'s parent does not exist. Please make sure the parent is created before this group`
3951
+ `The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`
3952
3952
  );
3953
3953
  if (pt.records.registeredIds[M] === "node")
3954
- throw new Error(`The group [${A}]'s parent is not a group`);
3954
+ throw new Error(`The group [${C}]'s parent is not a group`);
3955
3955
  }
3956
- pt.records.registeredIds[A] = "group", pt.records.groups[A] = {
3957
- id: A,
3958
- icon: Y,
3956
+ pt.records.registeredIds[C] = "group", pt.records.groups[C] = {
3957
+ id: C,
3958
+ icon: X,
3959
3959
  title: P,
3960
3960
  in: M
3961
3961
  };
3962
- }, "addGroup"), br = /* @__PURE__ */ nt(() => Object.values(pt.records.groups), "getGroups"), Pr = /* @__PURE__ */ nt(function({
3963
- lhsId: A,
3964
- rhsId: Y,
3962
+ }, "addGroup"), Ur = /* @__PURE__ */ nt(() => Object.values(pt.records.groups), "getGroups"), Yr = /* @__PURE__ */ nt(function({
3963
+ lhsId: C,
3964
+ rhsId: X,
3965
3965
  lhsDir: M,
3966
3966
  rhsDir: P,
3967
3967
  lhsInto: L,
3968
- rhsInto: u,
3968
+ rhsInto: g,
3969
3969
  lhsGroup: h,
3970
3970
  rhsGroup: a,
3971
3971
  title: r
3972
3972
  }) {
3973
3973
  if (!be(M))
3974
3974
  throw new Error(
3975
- `Invalid direction given for left hand side of edge ${A}--${Y}. Expected (L,R,T,B) got ${M}`
3975
+ `Invalid direction given for left hand side of edge ${C}--${X}. Expected (L,R,T,B) got ${M}`
3976
3976
  );
3977
3977
  if (!be(P))
3978
3978
  throw new Error(
3979
- `Invalid direction given for right hand side of edge ${A}--${Y}. Expected (L,R,T,B) got ${P}`
3979
+ `Invalid direction given for right hand side of edge ${C}--${X}. Expected (L,R,T,B) got ${P}`
3980
3980
  );
3981
- if (pt.records.nodes[A] === void 0 && pt.records.groups[A] === void 0)
3981
+ if (pt.records.nodes[C] === void 0 && pt.records.groups[C] === void 0)
3982
3982
  throw new Error(
3983
- `The left-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`
3983
+ `The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`
3984
3984
  );
3985
- if (pt.records.nodes[Y] === void 0 && pt.records.groups[A] === void 0)
3985
+ if (pt.records.nodes[X] === void 0 && pt.records.groups[C] === void 0)
3986
3986
  throw new Error(
3987
- `The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`
3987
+ `The right-hand id [${X}] does not yet exist. Please create the service/group before declaring an edge to it.`
3988
3988
  );
3989
- const e = pt.records.nodes[A].in, f = pt.records.nodes[Y].in;
3989
+ const e = pt.records.nodes[C].in, f = pt.records.nodes[X].in;
3990
3990
  if (h && e && f && e == f)
3991
3991
  throw new Error(
3992
- `The left-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
3992
+ `The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
3993
3993
  );
3994
3994
  if (a && e && f && e == f)
3995
3995
  throw new Error(
3996
- `The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
3996
+ `The right-hand id [${X}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
3997
3997
  );
3998
3998
  const i = {
3999
- lhsId: A,
3999
+ lhsId: C,
4000
4000
  lhsDir: M,
4001
4001
  lhsInto: L,
4002
4002
  lhsGroup: h,
4003
- rhsId: Y,
4003
+ rhsId: X,
4004
4004
  rhsDir: P,
4005
- rhsInto: u,
4005
+ rhsInto: g,
4006
4006
  rhsGroup: a,
4007
4007
  title: r
4008
4008
  };
4009
- pt.records.edges.push(i), pt.records.nodes[A] && pt.records.nodes[Y] && (pt.records.nodes[A].edges.push(pt.records.edges[pt.records.edges.length - 1]), pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length - 1]));
4010
- }, "addEdge"), Gr = /* @__PURE__ */ nt(() => pt.records.edges, "getEdges"), Ur = /* @__PURE__ */ nt(() => {
4009
+ pt.records.edges.push(i), pt.records.nodes[C] && pt.records.nodes[X] && (pt.records.nodes[C].edges.push(pt.records.edges[pt.records.edges.length - 1]), pt.records.nodes[X].edges.push(pt.records.edges[pt.records.edges.length - 1]));
4010
+ }, "addEdge"), Xr = /* @__PURE__ */ nt(() => pt.records.edges, "getEdges"), Hr = /* @__PURE__ */ nt(() => {
4011
4011
  if (pt.records.dataStructures === void 0) {
4012
- const A = {}, Y = Object.entries(pt.records.nodes).reduce((a, [r, e]) => (a[r] = e.edges.reduce((f, i) => {
4012
+ const C = {}, X = Object.entries(pt.records.nodes).reduce((a, [r, e]) => (a[r] = e.edges.reduce((f, i) => {
4013
4013
  var _a, _b;
4014
- const v = (_a = Ne(i.lhsId)) == null ? void 0 : _a.in, t = (_b = Ne(i.rhsId)) == null ? void 0 : _b.in;
4014
+ const v = (_a = Te(i.lhsId)) == null ? void 0 : _a.in, t = (_b = Te(i.rhsId)) == null ? void 0 : _b.in;
4015
4015
  if (v && t && v !== t) {
4016
- const o = Cr(i.lhsDir, i.rhsDir);
4017
- o !== "bend" && (A[v] ?? (A[v] = {}), A[v][t] = o, A[t] ?? (A[t] = {}), A[t][v] = o);
4016
+ const o = Or(i.lhsDir, i.rhsDir);
4017
+ o !== "bend" && (C[v] ?? (C[v] = {}), C[v][t] = o, C[t] ?? (C[t] = {}), C[t][v] = o);
4018
4018
  }
4019
4019
  if (i.lhsId === r) {
4020
- const o = Te(i.lhsDir, i.rhsDir);
4020
+ const o = me(i.lhsDir, i.rhsDir);
4021
4021
  o && (f[o] = i.rhsId);
4022
4022
  } else {
4023
- const o = Te(i.rhsDir, i.lhsDir);
4023
+ const o = me(i.rhsDir, i.lhsDir);
4024
4024
  o && (f[o] = i.lhsId);
4025
4025
  }
4026
4026
  return f;
4027
- }, {}), a), {}), M = Object.keys(Y)[0], P = { [M]: 1 }, L = Object.keys(Y).reduce(
4027
+ }, {}), a), {}), M = Object.keys(X)[0], P = { [M]: 1 }, L = Object.keys(X).reduce(
4028
4028
  (a, r) => r === M ? a : { ...a, [r]: 1 },
4029
4029
  {}
4030
- ), u = /* @__PURE__ */ nt((a) => {
4030
+ ), g = /* @__PURE__ */ nt((a) => {
4031
4031
  const r = { [a]: [0, 0] }, e = [a];
4032
4032
  for (; e.length > 0; ) {
4033
4033
  const f = e.shift();
4034
4034
  if (f) {
4035
4035
  P[f] = 1, delete L[f];
4036
- const i = Y[f], [v, t] = r[f];
4036
+ const i = X[f], [v, t] = r[f];
4037
4037
  Object.entries(i).forEach(([o, s]) => {
4038
- P[s] || (r[s] = Lr(
4038
+ P[s] || (r[s] = Mr(
4039
4039
  [v, t],
4040
4040
  o
4041
4041
  ), e.push(s));
@@ -4043,67 +4043,70 @@ var Se = {
4043
4043
  }
4044
4044
  }
4045
4045
  return r;
4046
- }, "BFS"), h = [u(M)];
4046
+ }, "BFS"), h = [g(M)];
4047
4047
  for (; Object.keys(L).length > 0; )
4048
- h.push(u(Object.keys(L)[0]));
4048
+ h.push(g(Object.keys(L)[0]));
4049
4049
  pt.records.dataStructures = {
4050
- adjList: Y,
4050
+ adjList: X,
4051
4051
  spatialMaps: h,
4052
- groupAlignments: A
4052
+ groupAlignments: C
4053
4053
  };
4054
4054
  }
4055
4055
  return pt.records.dataStructures;
4056
- }, "getDataStructures"), Yr = /* @__PURE__ */ nt((A, Y) => {
4057
- pt.records.elements[A] = Y;
4058
- }, "setElementForId"), Xr = /* @__PURE__ */ nt((A) => pt.records.elements[A], "getElementById"), ue = {
4059
- clear: Or,
4060
- setDiagramTitle: _e,
4061
- getDiagramTitle: je,
4062
- setAccTitle: Ke,
4063
- getAccTitle: Qe,
4064
- setAccDescription: Je,
4065
- getAccDescription: qe,
4066
- addService: Dr,
4067
- getServices: xr,
4068
- addJunction: Ir,
4069
- getJunctions: Rr,
4070
- getNodes: Sr,
4071
- getNode: Ne,
4072
- addGroup: Fr,
4073
- getGroups: br,
4074
- addEdge: Pr,
4075
- getEdges: Gr,
4076
- setElementForId: Yr,
4077
- getElementById: Xr,
4078
- getDataStructures: Ur
4056
+ }, "getDataStructures"), Wr = /* @__PURE__ */ nt((C, X) => {
4057
+ pt.records.elements[C] = X;
4058
+ }, "setElementForId"), Vr = /* @__PURE__ */ nt((C) => pt.records.elements[C], "getElementById"), Xe = /* @__PURE__ */ nt(() => ir({
4059
+ ...Ye,
4060
+ ...ar().architecture
4061
+ }), "getConfig"), ge = {
4062
+ clear: Ir,
4063
+ setDiagramTitle: tr,
4064
+ getDiagramTitle: _e,
4065
+ setAccTitle: je,
4066
+ getAccTitle: Ke,
4067
+ setAccDescription: Qe,
4068
+ getAccDescription: Je,
4069
+ getConfig: Xe,
4070
+ addService: Rr,
4071
+ getServices: Sr,
4072
+ addJunction: Fr,
4073
+ getJunctions: br,
4074
+ getNodes: Pr,
4075
+ getNode: Te,
4076
+ addGroup: Gr,
4077
+ getGroups: Ur,
4078
+ addEdge: Yr,
4079
+ getEdges: Xr,
4080
+ setElementForId: Wr,
4081
+ getElementById: Vr,
4082
+ getDataStructures: Hr
4079
4083
  };
4080
- function Pt(A) {
4081
- const Y = ge().architecture;
4082
- return (Y == null ? void 0 : Y[A]) ? Y[A] : Ye[A];
4084
+ function Pt(C) {
4085
+ return Xe()[C];
4083
4086
  }
4084
4087
  nt(Pt, "getConfigField");
4085
- var Hr = /* @__PURE__ */ nt((A, Y) => {
4086
- sr(A, Y), A.groups.map(Y.addGroup), A.services.map((M) => Y.addService({ ...M, type: "service" })), A.junctions.map((M) => Y.addJunction({ ...M, type: "junction" })), A.edges.map(Y.addEdge);
4087
- }, "populateDb"), Wr = {
4088
- parse: /* @__PURE__ */ nt(async (A) => {
4089
- const Y = await hr("architecture", A);
4090
- Pe.debug(Y), Hr(Y, ue);
4088
+ var zr = /* @__PURE__ */ nt((C, X) => {
4089
+ fr(C, X), C.groups.map(X.addGroup), C.services.map((M) => X.addService({ ...M, type: "service" })), C.junctions.map((M) => X.addJunction({ ...M, type: "junction" })), C.edges.map(X.addEdge);
4090
+ }, "populateDb"), Br = {
4091
+ parse: /* @__PURE__ */ nt(async (C) => {
4092
+ const X = await gr("architecture", C);
4093
+ Pe.debug(X), zr(X, ge);
4091
4094
  }, "parse")
4092
- }, Vr = /* @__PURE__ */ nt((A) => `
4095
+ }, $r = /* @__PURE__ */ nt((C) => `
4093
4096
  .edge {
4094
- stroke-width: ${A.archEdgeWidth};
4095
- stroke: ${A.archEdgeColor};
4097
+ stroke-width: ${C.archEdgeWidth};
4098
+ stroke: ${C.archEdgeColor};
4096
4099
  fill: none;
4097
4100
  }
4098
4101
 
4099
4102
  .arrow {
4100
- fill: ${A.archEdgeArrowColor};
4103
+ fill: ${C.archEdgeArrowColor};
4101
4104
  }
4102
4105
 
4103
4106
  .node-bkg {
4104
4107
  fill: none;
4105
- stroke: ${A.archGroupBorderColor};
4106
- stroke-width: ${A.archGroupBorderWidth};
4108
+ stroke: ${C.archGroupBorderColor};
4109
+ stroke-width: ${C.archGroupBorderWidth};
4107
4110
  stroke-dasharray: 8;
4108
4111
  }
4109
4112
  .node-icon-text {
@@ -4120,7 +4123,7 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4120
4123
  display: -webkit-box;
4121
4124
  -webkit-box-orient: vertical;
4122
4125
  }
4123
- `, "getStyles"), zr = Vr, ae = /* @__PURE__ */ nt((A) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${A}</g>`, "wrapIcon"), oe = {
4126
+ `, "getStyles"), Zr = $r, ae = /* @__PURE__ */ nt((C) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${C}</g>`, "wrapIcon"), oe = {
4124
4127
  prefix: "mermaid-architecture",
4125
4128
  height: 80,
4126
4129
  width: 80,
@@ -4150,15 +4153,15 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4150
4153
  '<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>'
4151
4154
  )
4152
4155
  },
4153
- unknown: or,
4156
+ unknown: hr,
4154
4157
  blank: {
4155
4158
  body: ae("")
4156
4159
  }
4157
4160
  }
4158
- }, Br = /* @__PURE__ */ nt(async function(A, Y) {
4159
- const M = Pt("padding"), P = Pt("iconSize"), L = P / 2, u = P / 6, h = u / 2;
4161
+ }, kr = /* @__PURE__ */ nt(async function(C, X) {
4162
+ const M = Pt("padding"), P = Pt("iconSize"), L = P / 2, g = P / 6, h = g / 2;
4160
4163
  await Promise.all(
4161
- Y.edges().map(async (a) => {
4164
+ X.edges().map(async (a) => {
4162
4165
  var _a, _b;
4163
4166
  const {
4164
4167
  source: r,
@@ -4172,25 +4175,25 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4172
4175
  label: c
4173
4176
  } = Ue(a);
4174
4177
  let { x: l, y: T } = a[0].sourceEndpoint();
4175
- const { x: g, y: d } = a[0].midpoint();
4178
+ const { x: u, y: d } = a[0].midpoint();
4176
4179
  let { x: N, y: F } = a[0].targetEndpoint();
4177
- const C = M + 4;
4178
- if (i && (zt(e) ? l += e === "L" ? -C : C : T += e === "T" ? -C : C + 18), s && (zt(t) ? N += t === "L" ? -C : C : F += t === "T" ? -C : C + 18), !i && ((_a = ue.getNode(r)) == null ? void 0 : _a.type) === "junction" && (zt(e) ? l += e === "L" ? L : -L : T += e === "T" ? L : -L), !s && ((_b = ue.getNode(v)) == null ? void 0 : _b.type) === "junction" && (zt(t) ? N += t === "L" ? L : -L : F += t === "T" ? L : -L), a[0]._private.rscratch) {
4179
- const G = A.insert("g");
4180
- if (G.insert("path").attr("d", `M ${l},${T} L ${g},${d} L${N},${F} `).attr("class", "edge"), f) {
4181
- const B = zt(e) ? le[e](l, u) : l - h, U = Qt(e) ? le[e](T, u) : T - h;
4182
- G.insert("polygon").attr("points", Fe[e](u)).attr("transform", `translate(${B},${U})`).attr("class", "arrow");
4180
+ const A = M + 4;
4181
+ if (i && (zt(e) ? l += e === "L" ? -A : A : T += e === "T" ? -A : A + 18), s && (zt(t) ? N += t === "L" ? -A : A : F += t === "T" ? -A : A + 18), !i && ((_a = ge.getNode(r)) == null ? void 0 : _a.type) === "junction" && (zt(e) ? l += e === "L" ? L : -L : T += e === "T" ? L : -L), !s && ((_b = ge.getNode(v)) == null ? void 0 : _b.type) === "junction" && (zt(t) ? N += t === "L" ? L : -L : F += t === "T" ? L : -L), a[0]._private.rscratch) {
4182
+ const G = C.insert("g");
4183
+ if (G.insert("path").attr("d", `M ${l},${T} L ${u},${d} L${N},${F} `).attr("class", "edge"), f) {
4184
+ const B = zt(e) ? le[e](l, g) : l - h, U = Qt(e) ? le[e](T, g) : T - h;
4185
+ G.insert("polygon").attr("points", Fe[e](g)).attr("transform", `translate(${B},${U})`).attr("class", "arrow");
4183
4186
  }
4184
4187
  if (o) {
4185
- const B = zt(t) ? le[t](N, u) : N - h, U = Qt(t) ? le[t](F, u) : F - h;
4186
- G.insert("polygon").attr("points", Fe[t](u)).attr("transform", `translate(${B},${U})`).attr("class", "arrow");
4188
+ const B = zt(t) ? le[t](N, g) : N - h, U = Qt(t) ? le[t](F, g) : F - h;
4189
+ G.insert("polygon").attr("points", Fe[t](g)).attr("transform", `translate(${B},${U})`).attr("class", "arrow");
4187
4190
  }
4188
4191
  if (c) {
4189
- const B = Ae(e, t) ? "XY" : zt(e) ? "X" : "Y";
4192
+ const B = Ce(e, t) ? "XY" : zt(e) ? "X" : "Y";
4190
4193
  let U = 0;
4191
4194
  B === "X" ? U = Math.abs(l - N) : B === "Y" ? U = Math.abs(T - F) / 1.5 : U = Math.abs(l - N) / 2;
4192
4195
  const K = G.append("g");
4193
- if (await Le(
4196
+ if (await Ne(
4194
4197
  K,
4195
4198
  c,
4196
4199
  {
@@ -4198,21 +4201,21 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4198
4201
  width: U,
4199
4202
  classes: "architecture-service-label"
4200
4203
  },
4201
- ge()
4204
+ Le()
4202
4205
  ), K.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), B === "X")
4203
- K.attr("transform", "translate(" + g + ", " + d + ")");
4206
+ K.attr("transform", "translate(" + u + ", " + d + ")");
4204
4207
  else if (B === "Y")
4205
- K.attr("transform", "translate(" + g + ", " + d + ") rotate(-90)");
4208
+ K.attr("transform", "translate(" + u + ", " + d + ") rotate(-90)");
4206
4209
  else if (B === "XY") {
4207
- const D = Te(e, t);
4208
- if (D && Tr(D)) {
4209
- const at = K.node().getBoundingClientRect(), [n, m] = Ar(D);
4210
+ const D = me(e, t);
4211
+ if (D && Cr(D)) {
4212
+ const at = K.node().getBoundingClientRect(), [n, m] = wr(D);
4210
4213
  K.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * n * m * 45})`);
4211
4214
  const p = K.node().getBoundingClientRect();
4212
4215
  K.attr(
4213
4216
  "transform",
4214
4217
  `
4215
- translate(${g}, ${d - at.height / 2})
4218
+ translate(${u}, ${d - at.height / 2})
4216
4219
  translate(${n * p.width / 2}, ${m * p.height / 2})
4217
4220
  rotate(${-1 * n * m * 45}, 0, ${at.height / 2})
4218
4221
  `
@@ -4223,20 +4226,20 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4223
4226
  }
4224
4227
  })
4225
4228
  );
4226
- }, "drawEdges"), $r = /* @__PURE__ */ nt(async function(A, Y) {
4229
+ }, "drawEdges"), qr = /* @__PURE__ */ nt(async function(C, X) {
4227
4230
  const P = Pt("padding") * 0.75, L = Pt("fontSize"), h = Pt("iconSize") / 2;
4228
4231
  await Promise.all(
4229
- Y.nodes().map(async (a) => {
4232
+ X.nodes().map(async (a) => {
4230
4233
  const r = ne(a);
4231
4234
  if (r.type === "group") {
4232
4235
  const { h: e, w: f, x1: i, y1: v } = a.boundingBox();
4233
- A.append("rect").attr("x", i + h).attr("y", v + h).attr("width", f).attr("height", e).attr("class", "node-bkg");
4234
- const t = A.append("g");
4236
+ C.append("rect").attr("x", i + h).attr("y", v + h).attr("width", f).attr("height", e).attr("class", "node-bkg");
4237
+ const t = C.append("g");
4235
4238
  let o = i, s = v;
4236
4239
  if (r.icon) {
4237
4240
  const c = t.append("g");
4238
4241
  c.html(
4239
- `<g>${await me(r.icon, { height: P, width: P, fallbackPrefix: oe.prefix })}</g>`
4242
+ `<g>${await Ee(r.icon, { height: P, width: P, fallbackPrefix: oe.prefix })}</g>`
4240
4243
  ), c.attr(
4241
4244
  "transform",
4242
4245
  "translate(" + (o + h + 1) + ", " + (s + h + 1) + ")"
@@ -4244,7 +4247,7 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4244
4247
  }
4245
4248
  if (r.label) {
4246
4249
  const c = t.append("g");
4247
- await Le(
4250
+ await Ne(
4248
4251
  c,
4249
4252
  r.label,
4250
4253
  {
@@ -4252,7 +4255,7 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4252
4255
  width: f,
4253
4256
  classes: "architecture-service-label"
4254
4257
  },
4255
- ge()
4258
+ Le()
4256
4259
  ), c.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), c.attr(
4257
4260
  "transform",
4258
4261
  "translate(" + (o + h + 4) + ", " + (s + h + 2) + ")"
@@ -4261,63 +4264,63 @@ var Hr = /* @__PURE__ */ nt((A, Y) => {
4261
4264
  }
4262
4265
  })
4263
4266
  );
4264
- }, "drawGroups"), kr = /* @__PURE__ */ nt(async function(A, Y, M) {
4267
+ }, "drawGroups"), Jr = /* @__PURE__ */ nt(async function(C, X, M) {
4265
4268
  for (const P of M) {
4266
- const L = Y.append("g"), u = Pt("iconSize");
4269
+ const L = X.append("g"), g = Pt("iconSize");
4267
4270
  if (P.title) {
4268
4271
  const e = L.append("g");
4269
- await Le(
4272
+ await Ne(
4270
4273
  e,
4271
4274
  P.title,
4272
4275
  {
4273
4276
  useHtmlLabels: false,
4274
- width: u * 1.5,
4277
+ width: g * 1.5,
4275
4278
  classes: "architecture-service-label"
4276
4279
  },
4277
- ge()
4278
- ), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + u / 2 + ", " + u + ")");
4280
+ Le()
4281
+ ), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + g / 2 + ", " + g + ")");
4279
4282
  }
4280
4283
  const h = L.append("g");
4281
4284
  if (P.icon)
4282
4285
  h.html(
4283
- `<g>${await me(P.icon, { height: u, width: u, fallbackPrefix: oe.prefix })}</g>`
4286
+ `<g>${await Ee(P.icon, { height: g, width: g, fallbackPrefix: oe.prefix })}</g>`
4284
4287
  );
4285
4288
  else if (P.iconText) {
4286
4289
  h.html(
4287
- `<g>${await me("blank", { height: u, width: u, fallbackPrefix: oe.prefix })}</g>`
4290
+ `<g>${await Ee("blank", { height: g, width: g, fallbackPrefix: oe.prefix })}</g>`
4288
4291
  );
4289
- const i = h.append("g").append("foreignObject").attr("width", u).attr("height", u).append("div").attr("class", "node-icon-text").attr("style", `height: ${u}px;`).append("div").html(P.iconText), v = parseInt(
4292
+ const i = h.append("g").append("foreignObject").attr("width", g).attr("height", g).append("div").attr("class", "node-icon-text").attr("style", `height: ${g}px;`).append("div").html(P.iconText), v = parseInt(
4290
4293
  window.getComputedStyle(i.node(), null).getPropertyValue("font-size").replace(/\D/g, "")
4291
4294
  ) ?? 16;
4292
- i.attr("style", `-webkit-line-clamp: ${Math.floor((u - 2) / v)};`);
4295
+ i.attr("style", `-webkit-line-clamp: ${Math.floor((g - 2) / v)};`);
4293
4296
  } else
4294
4297
  h.append("path").attr("class", "node-bkg").attr("id", "node-" + P.id).attr(
4295
4298
  "d",
4296
- `M0 ${u} v${-u} q0,-5 5,-5 h${u} q5,0 5,5 v${u} H0 Z`
4299
+ `M0 ${g} v${-g} q0,-5 5,-5 h${g} q5,0 5,5 v${g} H0 Z`
4297
4300
  );
4298
4301
  L.attr("class", "architecture-service");
4299
4302
  const { width: a, height: r } = L._groups[0][0].getBBox();
4300
- P.width = a, P.height = r, A.setElementForId(P.id, L);
4303
+ P.width = a, P.height = r, C.setElementForId(P.id, L);
4301
4304
  }
4302
4305
  return 0;
4303
- }, "drawServices"), Zr = /* @__PURE__ */ nt(function(A, Y, M) {
4306
+ }, "drawServices"), Qr = /* @__PURE__ */ nt(function(C, X, M) {
4304
4307
  M.forEach((P) => {
4305
- const L = Y.append("g"), u = Pt("iconSize");
4306
- L.append("g").append("rect").attr("id", "node-" + P.id).attr("fill-opacity", "0").attr("width", u).attr("height", u), L.attr("class", "architecture-junction");
4308
+ const L = X.append("g"), g = Pt("iconSize");
4309
+ L.append("g").append("rect").attr("id", "node-" + P.id).attr("fill-opacity", "0").attr("width", g).attr("height", g), L.attr("class", "architecture-junction");
4307
4310
  const { width: a, height: r } = L._groups[0][0].getBBox();
4308
- L.width = a, L.height = r, A.setElementForId(P.id, L);
4311
+ L.width = a, L.height = r, C.setElementForId(P.id, L);
4309
4312
  });
4310
4313
  }, "drawJunctions");
4311
- nr([
4314
+ lr([
4312
4315
  {
4313
4316
  name: oe.prefix,
4314
4317
  icons: oe
4315
4318
  }
4316
4319
  ]);
4317
- Ge.use(Er);
4318
- function Xe(A, Y) {
4319
- A.forEach((M) => {
4320
- Y.add({
4320
+ Ge.use(Nr);
4321
+ function He(C, X) {
4322
+ C.forEach((M) => {
4323
+ X.add({
4321
4324
  group: "nodes",
4322
4325
  data: {
4323
4326
  type: "service",
@@ -4332,10 +4335,10 @@ function Xe(A, Y) {
4332
4335
  });
4333
4336
  });
4334
4337
  }
4335
- nt(Xe, "addServices");
4336
- function He(A, Y) {
4337
- A.forEach((M) => {
4338
- Y.add({
4338
+ nt(He, "addServices");
4339
+ function We(C, X) {
4340
+ C.forEach((M) => {
4341
+ X.add({
4339
4342
  group: "nodes",
4340
4343
  data: {
4341
4344
  type: "junction",
@@ -4348,19 +4351,19 @@ function He(A, Y) {
4348
4351
  });
4349
4352
  });
4350
4353
  }
4351
- nt(He, "addJunctions");
4352
- function We(A, Y) {
4353
- Y.nodes().map((M) => {
4354
+ nt(We, "addJunctions");
4355
+ function Ve(C, X) {
4356
+ X.nodes().map((M) => {
4354
4357
  const P = ne(M);
4355
4358
  if (P.type === "group")
4356
4359
  return;
4357
- P.x = M.position().x, P.y = M.position().y, A.getElementById(P.id).attr("transform", "translate(" + (P.x || 0) + "," + (P.y || 0) + ")");
4360
+ P.x = M.position().x, P.y = M.position().y, C.getElementById(P.id).attr("transform", "translate(" + (P.x || 0) + "," + (P.y || 0) + ")");
4358
4361
  });
4359
4362
  }
4360
- nt(We, "positionNodes");
4361
- function Ve(A, Y) {
4362
- A.forEach((M) => {
4363
- Y.add({
4363
+ nt(Ve, "positionNodes");
4364
+ function ze(C, X) {
4365
+ C.forEach((M) => {
4366
+ X.add({
4364
4367
  group: "nodes",
4365
4368
  data: {
4366
4369
  type: "group",
@@ -4373,15 +4376,15 @@ function Ve(A, Y) {
4373
4376
  });
4374
4377
  });
4375
4378
  }
4376
- nt(Ve, "addGroups");
4377
- function ze(A, Y) {
4378
- A.forEach((M) => {
4379
- const { lhsId: P, rhsId: L, lhsInto: u, lhsGroup: h, rhsInto: a, lhsDir: r, rhsDir: e, rhsGroup: f, title: i } = M, v = Ae(M.lhsDir, M.rhsDir) ? "segments" : "straight", t = {
4379
+ nt(ze, "addGroups");
4380
+ function Be(C, X) {
4381
+ C.forEach((M) => {
4382
+ const { lhsId: P, rhsId: L, lhsInto: g, lhsGroup: h, rhsInto: a, lhsDir: r, rhsDir: e, rhsGroup: f, title: i } = M, v = Ce(M.lhsDir, M.rhsDir) ? "segments" : "straight", t = {
4380
4383
  id: `${P}-${L}`,
4381
4384
  label: i,
4382
4385
  source: P,
4383
4386
  sourceDir: r,
4384
- sourceArrow: u,
4387
+ sourceArrow: g,
4385
4388
  sourceGroup: h,
4386
4389
  sourceEndpoint: r === "L" ? "0 50%" : r === "R" ? "100% 50%" : r === "T" ? "50% 0" : "50% 100%",
4387
4390
  target: L,
@@ -4390,15 +4393,15 @@ function ze(A, Y) {
4390
4393
  targetGroup: f,
4391
4394
  targetEndpoint: e === "L" ? "0 50%" : e === "R" ? "100% 50%" : e === "T" ? "50% 0" : "50% 100%"
4392
4395
  };
4393
- Y.add({
4396
+ X.add({
4394
4397
  group: "edges",
4395
4398
  data: t,
4396
4399
  classes: v
4397
4400
  });
4398
4401
  });
4399
4402
  }
4400
- nt(ze, "addEdges");
4401
- function Be(A, Y, M) {
4403
+ nt(Be, "addEdges");
4404
+ function $e(C, X, M) {
4402
4405
  const P = /* @__PURE__ */ nt((a, r) => Object.entries(a).reduce(
4403
4406
  (e, [f, i]) => {
4404
4407
  var _a;
@@ -4408,26 +4411,26 @@ function Be(A, Y, M) {
4408
4411
  return e[f] = t[0][1], e;
4409
4412
  for (let o = 0; o < t.length - 1; o++)
4410
4413
  for (let s = o + 1; s < t.length; s++) {
4411
- const [c, l] = t[o], [T, g] = t[s];
4414
+ const [c, l] = t[o], [T, u] = t[s];
4412
4415
  if (((_a = M[c]) == null ? void 0 : _a[T]) === r)
4413
- e[f] ?? (e[f] = []), e[f] = [...e[f], ...l, ...g];
4416
+ e[f] ?? (e[f] = []), e[f] = [...e[f], ...l, ...u];
4414
4417
  else if (c === "default" || T === "default")
4415
- e[f] ?? (e[f] = []), e[f] = [...e[f], ...l, ...g];
4418
+ e[f] ?? (e[f] = []), e[f] = [...e[f], ...l, ...u];
4416
4419
  else {
4417
4420
  const N = `${f}-${v++}`;
4418
4421
  e[N] = l;
4419
4422
  const F = `${f}-${v++}`;
4420
- e[F] = g;
4423
+ e[F] = u;
4421
4424
  }
4422
4425
  }
4423
4426
  return e;
4424
4427
  },
4425
4428
  {}
4426
- ), "flattenAlignments"), L = Y.map((a) => {
4429
+ ), "flattenAlignments"), L = X.map((a) => {
4427
4430
  const r = {}, e = {};
4428
4431
  return Object.entries(a).forEach(([f, [i, v]]) => {
4429
4432
  var _a, _b, _c;
4430
- const t = ((_a = A.getNode(f)) == null ? void 0 : _a.in) ?? "default";
4433
+ const t = ((_a = C.getNode(f)) == null ? void 0 : _a.in) ?? "default";
4431
4434
  r[v] ?? (r[v] = {}), (_b = r[v])[t] ?? (_b[t] = []), r[v][t].push(f), e[i] ?? (e[i] = {}), (_c = e[i])[t] ?? (_c[t] = []), e[i][t].push(f);
4432
4435
  }), {
4433
4436
  horiz: Object.values(P(r, "horizontal")).filter(
@@ -4437,7 +4440,7 @@ function Be(A, Y, M) {
4437
4440
  (f) => f.length > 1
4438
4441
  )
4439
4442
  };
4440
- }), [u, h] = L.reduce(
4443
+ }), [g, h] = L.reduce(
4441
4444
  ([a, r], { horiz: e, vert: f }) => [
4442
4445
  [...a, ...e],
4443
4446
  [...r, ...f]
@@ -4445,15 +4448,15 @@ function Be(A, Y, M) {
4445
4448
  [[], []]
4446
4449
  );
4447
4450
  return {
4448
- horizontal: u,
4451
+ horizontal: g,
4449
4452
  vertical: h
4450
4453
  };
4451
4454
  }
4452
- nt(Be, "getAlignments");
4453
- function $e(A) {
4454
- const Y = [], M = /* @__PURE__ */ nt((L) => `${L[0]},${L[1]}`, "posToStr"), P = /* @__PURE__ */ nt((L) => L.split(",").map((u) => parseInt(u)), "strToPos");
4455
- return A.forEach((L) => {
4456
- const u = Object.fromEntries(
4455
+ nt($e, "getAlignments");
4456
+ function Ze(C) {
4457
+ const X = [], M = /* @__PURE__ */ nt((L) => `${L[0]},${L[1]}`, "posToStr"), P = /* @__PURE__ */ nt((L) => L.split(",").map((g) => parseInt(g)), "strToPos");
4458
+ return C.forEach((L) => {
4459
+ const g = Object.fromEntries(
4457
4460
  Object.entries(L).map(([e, f]) => [M(f), e])
4458
4461
  ), h = [M([0, 0])], a = {}, r = {
4459
4462
  L: [-1, 0],
@@ -4465,26 +4468,26 @@ function $e(A) {
4465
4468
  const e = h.shift();
4466
4469
  if (e) {
4467
4470
  a[e] = 1;
4468
- const f = u[e];
4471
+ const f = g[e];
4469
4472
  if (f) {
4470
4473
  const i = P(e);
4471
4474
  Object.entries(r).forEach(([v, t]) => {
4472
- const o = M([i[0] + t[0], i[1] + t[1]]), s = u[o];
4473
- s && !a[o] && (h.push(o), Y.push({
4475
+ const o = M([i[0] + t[0], i[1] + t[1]]), s = g[o];
4476
+ s && !a[o] && (h.push(o), X.push({
4474
4477
  [Se[v]]: s,
4475
- [Se[mr(v)]]: f,
4478
+ [Se[Lr(v)]]: f,
4476
4479
  gap: 1.5 * Pt("iconSize")
4477
4480
  }));
4478
4481
  });
4479
4482
  }
4480
4483
  }
4481
4484
  }
4482
- }), Y;
4485
+ }), X;
4483
4486
  }
4484
- nt($e, "getRelativeConstraints");
4485
- function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4487
+ nt(Ze, "getRelativeConstraints");
4488
+ function ke(C, X, M, P, L, { spatialMaps: g, groupAlignments: h }) {
4486
4489
  return new Promise((a) => {
4487
- const r = ir("body").append("div").attr("id", "cy").attr("style", "display:none"), e = Ge({
4490
+ const r = sr("body").append("div").attr("id", "cy").attr("style", "display:none"), e = Ge({
4488
4491
  container: document.getElementById("cy"),
4489
4492
  style: [
4490
4493
  {
@@ -4547,8 +4550,8 @@ function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4547
4550
  }
4548
4551
  ]
4549
4552
  });
4550
- r.remove(), Ve(M, e), Xe(A, e), He(Y, e), ze(P, e);
4551
- const f = Be(L, u, h), i = $e(u), v = e.layout({
4553
+ r.remove(), ze(M, e), He(C, e), We(X, e), Be(P, e);
4554
+ const f = $e(L, g, h), i = Ze(g), v = e.layout({
4552
4555
  name: "fcose",
4553
4556
  quality: "proof",
4554
4557
  styleEnabled: false,
@@ -4570,12 +4573,12 @@ function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4570
4573
  v.one("layoutstop", () => {
4571
4574
  var _a;
4572
4575
  function t(o, s, c, l) {
4573
- let T, g;
4574
- const { x: d, y: N } = o, { x: F, y: C } = s;
4575
- g = (l - N + (d - c) * (N - C) / (d - F)) / Math.sqrt(1 + Math.pow((N - C) / (d - F), 2)), T = Math.sqrt(Math.pow(l - N, 2) + Math.pow(c - d, 2) - Math.pow(g, 2));
4576
- const G = Math.sqrt(Math.pow(F - d, 2) + Math.pow(C - N, 2));
4576
+ let T, u;
4577
+ const { x: d, y: N } = o, { x: F, y: A } = s;
4578
+ u = (l - N + (d - c) * (N - A) / (d - F)) / Math.sqrt(1 + Math.pow((N - A) / (d - F), 2)), T = Math.sqrt(Math.pow(l - N, 2) + Math.pow(c - d, 2) - Math.pow(u, 2));
4579
+ const G = Math.sqrt(Math.pow(F - d, 2) + Math.pow(A - N, 2));
4577
4580
  T = T / G;
4578
- let B = (F - d) * (l - N) - (C - N) * (c - d);
4581
+ let B = (F - d) * (l - N) - (A - N) * (c - d);
4579
4582
  switch (true) {
4580
4583
  case B >= 0:
4581
4584
  B = 1;
@@ -4584,7 +4587,7 @@ function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4584
4587
  B = -1;
4585
4588
  break;
4586
4589
  }
4587
- let U = (F - d) * (c - d) + (C - N) * (l - N);
4590
+ let U = (F - d) * (c - d) + (A - N) * (l - N);
4588
4591
  switch (true) {
4589
4592
  case U >= 0:
4590
4593
  U = 1;
@@ -4593,8 +4596,8 @@ function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4593
4596
  U = -1;
4594
4597
  break;
4595
4598
  }
4596
- return g = Math.abs(g) * B, T = T * U, {
4597
- distances: g,
4599
+ return u = Math.abs(u) * B, T = T * U, {
4600
+ distances: u,
4598
4601
  weights: T
4599
4602
  };
4600
4603
  }
@@ -4603,7 +4606,7 @@ function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4603
4606
  if ((_a = o.data) == null ? void 0 : _a.call(o)) {
4604
4607
  const { x: s, y: c } = o.source().position(), { x: l, y: T } = o.target().position();
4605
4608
  if (s !== l && c !== T) {
4606
- const g = o.sourceEndpoint(), d = o.targetEndpoint(), { sourceDir: N } = Ue(o), [F, C] = Qt(N) ? [g.x, d.y] : [d.x, g.y], { weights: G, distances: B } = t(g, d, F, C);
4609
+ const u = o.sourceEndpoint(), d = o.targetEndpoint(), { sourceDir: N } = Ue(o), [F, A] = Qt(N) ? [u.x, d.y] : [d.x, u.y], { weights: G, distances: B } = t(u, d, F, A);
4607
4610
  o.style("segment-distances", B), o.style("segment-weights", G);
4608
4611
  }
4609
4612
  }
@@ -4614,21 +4617,21 @@ function ke(A, Y, M, P, L, { spatialMaps: u, groupAlignments: h }) {
4614
4617
  });
4615
4618
  }
4616
4619
  nt(ke, "layoutArchitecture");
4617
- var qr = /* @__PURE__ */ nt(async (A, Y, M, P) => {
4618
- const L = P.db, u = L.getServices(), h = L.getJunctions(), a = L.getGroups(), r = L.getEdges(), e = L.getDataStructures(), f = tr(Y), i = f.append("g");
4620
+ var Kr = /* @__PURE__ */ nt(async (C, X, M, P) => {
4621
+ const L = P.db, g = L.getServices(), h = L.getJunctions(), a = L.getGroups(), r = L.getEdges(), e = L.getDataStructures(), f = er(X), i = f.append("g");
4619
4622
  i.attr("class", "architecture-edges");
4620
4623
  const v = f.append("g");
4621
4624
  v.attr("class", "architecture-services");
4622
4625
  const t = f.append("g");
4623
- t.attr("class", "architecture-groups"), await kr(L, v, u), Zr(L, v, h);
4624
- const o = await ke(u, h, a, r, L, e);
4625
- await Br(i, o), await $r(t, o), We(L, o), er(void 0, f, Pt("padding"), Pt("useMaxWidth"));
4626
- }, "draw"), Jr = { draw: qr }, ri = {
4627
- parser: Wr,
4628
- db: ue,
4629
- renderer: Jr,
4630
- styles: zr
4626
+ t.attr("class", "architecture-groups"), await Jr(L, v, g), Qr(L, v, h);
4627
+ const o = await ke(g, h, a, r, L, e);
4628
+ await kr(i, o), await qr(t, o), Ve(L, o), rr(void 0, f, Pt("padding"), Pt("useMaxWidth"));
4629
+ }, "draw"), jr = { draw: Kr }, ni = {
4630
+ parser: Br,
4631
+ db: ge,
4632
+ renderer: jr,
4633
+ styles: Zr
4631
4634
  };
4632
4635
  export {
4633
- ri as diagram
4636
+ ni as diagram
4634
4637
  };