@kong-ui-public/documentation 1.5.78 → 1.6.0

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 (63) hide show
  1. package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
  2. package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
  3. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
  4. package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
  5. package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
  6. package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
  7. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
  8. package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
  9. package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
  10. package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
  11. package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
  12. package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
  13. package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
  14. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
  15. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
  16. package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
  17. package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
  18. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
  19. package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
  20. package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
  21. package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
  22. package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
  23. package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
  24. package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
  25. package/dist/documentation.es.js +1 -1
  26. package/dist/documentation.umd.js +374 -374
  27. package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
  28. package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
  29. package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
  30. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
  31. package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
  32. package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
  33. package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
  34. package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
  35. package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
  36. package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
  37. package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
  38. package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
  39. package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
  40. package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
  41. package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
  42. package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
  43. package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
  44. package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
  45. package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
  46. package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
  47. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
  48. package/dist/style.css +1 -1
  49. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
  50. package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
  51. package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
  52. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
  53. package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
  54. package/package.json +4 -4
  55. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
  56. package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
  57. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
  58. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
  59. package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
  60. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
  61. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
  62. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
  63. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
@@ -185,12 +185,12 @@ var Qd = Je(""), Ju = Je({}), Jd = Je(function() {
185
185
  }, sh = function() {
186
186
  return vs && vs.userAgent.match(/msie|trident|edge/i);
187
187
  }, Hr = function(e, t) {
188
- t || (t = function() {
188
+ t ||= function() {
189
189
  if (arguments.length === 1) return arguments[0];
190
190
  if (arguments.length === 0) return "undefined";
191
191
  for (var n = [], a = 0; a < arguments.length; a++) n.push(arguments[a]);
192
192
  return n.join("$");
193
- });
193
+ };
194
194
  var r = function() {
195
195
  var n = this, a = arguments, i, o = t.apply(n, a), u = r.cache;
196
196
  return (i = u[o]) || (i = u[o] = e.apply(n, a)), i;
@@ -1220,7 +1220,7 @@ var Mn = /* @__PURE__ */ Rn(Sh()), oi = Ze ? Ze.performance : null, lc = oi && o
1220
1220
  return oi.now();
1221
1221
  } : function() {
1222
1222
  return Date.now();
1223
- }, Dh = function() {
1223
+ }, Dh = (function() {
1224
1224
  if (Ze) {
1225
1225
  if (Ze.requestAnimationFrame) return function(e) {
1226
1226
  Ze.requestAnimationFrame(e);
@@ -1240,7 +1240,7 @@ var Mn = /* @__PURE__ */ Rn(Sh()), oi = Ze ? Ze.performance : null, lc = oi && o
1240
1240
  e(lc());
1241
1241
  }, 1e3 / 60);
1242
1242
  };
1243
- }(), Ca = function(e) {
1243
+ })(), Ca = function(e) {
1244
1244
  return Dh(e);
1245
1245
  }, Ut = lc, kr = 9261, uc = 65599, Xr = 5381, cc = function(e) {
1246
1246
  for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : kr, r; r = e.next(), !r.done; ) t = t * uc + r.value | 0;
@@ -1331,7 +1331,7 @@ var _s = !0, Nh = console.warn != null, Lh = console.trace != null, ts = 2 ** 53
1331
1331
  var t = Object.keys(e);
1332
1332
  return function(r) {
1333
1333
  for (var n = {}, a = 0; a < t.length; a++) {
1334
- var i = t[a], o = r == null ? void 0 : r[i];
1334
+ var i = t[a], o = r?.[i];
1335
1335
  n[i] = o === void 0 ? e[i] : o;
1336
1336
  }
1337
1337
  return n;
@@ -1349,7 +1349,7 @@ var _s = !0, Nh = console.warn != null, Lh = console.trace != null, ts = 2 ** 53
1349
1349
  return r && (t = rc(r, t)), e[t];
1350
1350
  }, Ft = function(e, t, r, n) {
1351
1351
  r && (t = rc(r, t)), e[t] = n;
1352
- }, Wt = typeof Map < "u" ? Map : /* @__PURE__ */ function() {
1352
+ }, Wt = typeof Map < "u" ? Map : /* @__PURE__ */ (function() {
1353
1353
  function e() {
1354
1354
  dr(this, e), this._obj = {};
1355
1355
  }
@@ -1385,7 +1385,7 @@ var _s = !0, Nh = console.warn != null, Lh = console.trace != null, ts = 2 ** 53
1385
1385
  }
1386
1386
  }
1387
1387
  ]);
1388
- }(), Xh = "undefined", Yh = /* @__PURE__ */ function() {
1388
+ })(), Xh = "undefined", Yh = /* @__PURE__ */ (function() {
1389
1389
  function e(t) {
1390
1390
  if (dr(this, e), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, t != null) for (var r = t.instanceString != null && t.instanceString() === this.instanceString() ? t.toArray() : t, n = 0; n < r.length; n++) this.add(r[n]);
1391
1391
  }
@@ -1438,14 +1438,14 @@ var _s = !0, Nh = console.warn != null, Lh = console.trace != null, ts = 2 ** 53
1438
1438
  }
1439
1439
  }
1440
1440
  ]);
1441
- }(), Zr = (typeof Set > "u" ? "undefined" : Je(Set)) === Xh ? Yh : Set, La = function(e, t) {
1441
+ })(), Zr = (typeof Set > "u" ? "undefined" : Je(Set)) === Xh ? Yh : Set, La = function(e, t) {
1442
1442
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
1443
1443
  if (e === void 0 || t === void 0 || !Qo(e)) {
1444
1444
  Ye("An element must have a core reference and parameters set");
1445
1445
  return;
1446
1446
  }
1447
1447
  var n = t.group;
1448
- if (n ?? (n = t.data && t.data.source != null && t.data.target != null ? "edges" : "nodes"), n !== "nodes" && n !== "edges") {
1448
+ if (n ??= t.data && t.data.source != null && t.data.target != null ? "edges" : "nodes", n !== "nodes" && n !== "edges") {
1449
1449
  Ye("An element must be of type `nodes` or `edges`; you specified `" + n + "`");
1450
1450
  return;
1451
1451
  }
@@ -1570,30 +1570,30 @@ var _s = !0, Nh = console.warn != null, Lh = console.trace != null, ts = 2 ** 53
1570
1570
  hn.bfs = hn.breadthFirstSearch, hn.dfs = hn.depthFirstSearch;
1571
1571
  var ia = { exports: {} }, qh = ia.exports, Ls;
1572
1572
  function jh() {
1573
- return Ls || (Ls = 1, function(e, t) {
1573
+ return Ls || (Ls = 1, (function(e, t) {
1574
1574
  (function() {
1575
1575
  var r, n, a = Math.floor, i, o, u, s, l, c, d = Math.min, h, f, p, v, y;
1576
1576
  n = function(g, m) {
1577
1577
  return g < m ? -1 : +(g > m);
1578
1578
  }, c = function(g, m, b, x, B) {
1579
1579
  var k;
1580
- if (b ?? (b = 0), B ?? (B = n), b < 0) throw Error("lo must be non-negative");
1581
- for (x ?? (x = g.length); b < x; ) k = a((b + x) / 2), B(m, g[k]) < 0 ? x = k : b = k + 1;
1580
+ if (b ??= 0, B ??= n, b < 0) throw Error("lo must be non-negative");
1581
+ for (x ??= g.length; b < x; ) k = a((b + x) / 2), B(m, g[k]) < 0 ? x = k : b = k + 1;
1582
1582
  return [].splice.apply(g, [b, b - b].concat(m)), m;
1583
1583
  }, u = function(g, m, b) {
1584
- return b ?? (b = n), g.push(m), v(g, 0, g.length - 1, b);
1584
+ return b ??= n, g.push(m), v(g, 0, g.length - 1, b);
1585
1585
  }, o = function(g, m) {
1586
1586
  var b, x;
1587
- return m ?? (m = n), b = g.pop(), g.length ? (x = g[0], g[0] = b, y(g, 0, m)) : x = b, x;
1587
+ return m ??= n, b = g.pop(), g.length ? (x = g[0], g[0] = b, y(g, 0, m)) : x = b, x;
1588
1588
  }, l = function(g, m, b) {
1589
1589
  var x;
1590
- return b ?? (b = n), x = g[0], g[0] = m, y(g, 0, b), x;
1590
+ return b ??= n, x = g[0], g[0] = m, y(g, 0, b), x;
1591
1591
  }, s = function(g, m, b) {
1592
1592
  var x;
1593
- return b ?? (b = n), g.length && b(g[0], m) < 0 && (x = [g[0], m], m = x[0], g[0] = x[1], y(g, 0, b)), m;
1593
+ return b ??= n, g.length && b(g[0], m) < 0 && (x = [g[0], m], m = x[0], g[0] = x[1], y(g, 0, b)), m;
1594
1594
  }, i = function(g, m) {
1595
1595
  var b, x, B, k, w, S;
1596
- for (m ?? (m = n), k = (function() {
1596
+ for (m ??= n, k = (function() {
1597
1597
  S = [];
1598
1598
  for (var E = 0, P = a(g.length / 2); 0 <= P ? E < P : E > P; 0 <= P ? E++ : E--) S.push(E);
1599
1599
  return S;
@@ -1601,15 +1601,15 @@ function jh() {
1601
1601
  return w;
1602
1602
  }, p = function(g, m, b) {
1603
1603
  var x;
1604
- if (b ?? (b = n), x = g.indexOf(m), x !== -1) return v(g, 0, x, b), y(g, x, b);
1604
+ if (b ??= n, x = g.indexOf(m), x !== -1) return v(g, 0, x, b), y(g, x, b);
1605
1605
  }, h = function(g, m, b) {
1606
1606
  var x, B, k, w, S;
1607
- if (b ?? (b = n), B = g.slice(0, m), !B.length) return B;
1607
+ if (b ??= n, B = g.slice(0, m), !B.length) return B;
1608
1608
  for (i(B, b), S = g.slice(m), k = 0, w = S.length; k < w; k++) x = S[k], s(B, x, b);
1609
1609
  return B.sort(b).reverse();
1610
1610
  }, f = function(g, m, b) {
1611
1611
  var x, B, k, w, S, E, P, C, A;
1612
- if (b ?? (b = n), m * 10 <= g.length) {
1612
+ if (b ??= n, m * 10 <= g.length) {
1613
1613
  if (k = g.slice(0, m).sort(b), !k.length) return k;
1614
1614
  for (B = k[k.length - 1], P = g.slice(m), w = 0, E = P.length; w < E; w++) x = P[w], b(x, B) < 0 && (c(k, x, 0, null, b), k.pop(), B = k[k.length - 1]);
1615
1615
  return k;
@@ -1618,7 +1618,7 @@ function jh() {
1618
1618
  return A;
1619
1619
  }, v = function(g, m, b, x) {
1620
1620
  var B, k, w;
1621
- for (x ?? (x = n), B = g[b]; b > m; ) {
1621
+ for (x ??= n, B = g[b]; b > m; ) {
1622
1622
  if (w = b - 1 >> 1, k = g[w], x(B, k) < 0) {
1623
1623
  g[b] = k, b = w;
1624
1624
  continue;
@@ -1628,9 +1628,9 @@ function jh() {
1628
1628
  return g[b] = B;
1629
1629
  }, y = function(g, m, b) {
1630
1630
  var x, B, k, w, S;
1631
- for (b ?? (b = n), B = g.length, S = m, k = g[m], x = 2 * m + 1; x < B; ) w = x + 1, w < B && !(b(g[x], g[w]) < 0) && (x = w), g[m] = g[x], m = x, x = 2 * m + 1;
1631
+ for (b ??= n, B = g.length, S = m, k = g[m], x = 2 * m + 1; x < B; ) w = x + 1, w < B && !(b(g[x], g[w]) < 0) && (x = w), g[m] = g[x], m = x, x = 2 * m + 1;
1632
1632
  return g[m] = k, v(g, S, m, b);
1633
- }, r = function() {
1633
+ }, r = (function() {
1634
1634
  g.push = u, g.pop = o, g.replace = l, g.pushpop = s, g.heapify = i, g.updateItem = p, g.nlargest = h, g.nsmallest = f;
1635
1635
  function g(m) {
1636
1636
  this.cmp = m ?? n, this.nodes = [];
@@ -1663,13 +1663,13 @@ function jh() {
1663
1663
  }, g.prototype.toArray = function() {
1664
1664
  return this.nodes.slice(0);
1665
1665
  }, g.prototype.insert = g.prototype.push, g.prototype.top = g.prototype.peek, g.prototype.front = g.prototype.peek, g.prototype.has = g.prototype.contains, g.prototype.copy = g.prototype.clone, g;
1666
- }(), function(g, m) {
1666
+ })(), (function(g, m) {
1667
1667
  return e.exports = m();
1668
- }(this, function() {
1668
+ })(this, function() {
1669
1669
  return r;
1670
1670
  });
1671
1671
  }).call(qh);
1672
- }(ia)), ia.exports;
1672
+ })(ia)), ia.exports;
1673
1673
  }
1674
1674
  var si, zs;
1675
1675
  function Wh() {
@@ -1737,9 +1737,9 @@ var Nn = /* @__PURE__ */ Rn(Wh()), Uh = lt({
1737
1737
  }
1738
1738
  };
1739
1739
  } }, $h = { kruskal: function(e) {
1740
- e || (e = function(m) {
1740
+ e ||= function(m) {
1741
1741
  return 1;
1742
- });
1742
+ };
1743
1743
  for (var t = this.byGroup(), r = t.nodes, n = t.edges, a = r.length, i = Array(a), o = r, u = function(m) {
1744
1744
  for (var b = 0; b < i.length; b++) if (i[b].has(m)) return b;
1745
1745
  }, s = 0; s < a; s++) i[s] = this.spawn(r[s]);
@@ -1895,11 +1895,11 @@ var Nn = /* @__PURE__ */ Rn(Wh()), Uh = lt({
1895
1895
  }
1896
1896
  if (S) for (var L = [], V = 0; V < y; V++) {
1897
1897
  var F = c[V], q = F.source(), j = F.target(), H = o(F), W = g(q).dist, K = g(j).dist;
1898
- if (W + H < K || !a && K + H < W) if (p || (p = (Re("Graph contains a negative weight cycle for Bellman-Ford"), !0)), e.findNegativeWeightCycles !== !1) {
1898
+ if (W + H < K || !a && K + H < W) if (p ||= (Re("Graph contains a negative weight cycle for Bellman-Ford"), !0), e.findNegativeWeightCycles !== !1) {
1899
1899
  var ee = [];
1900
1900
  W + H < K && ee.push(q), !a && K + H < W && ee.push(j);
1901
- for (var Z = ee.length, O = 0; O < Z; O++) {
1902
- var N = ee[O], X = [N];
1901
+ for (var Z = ee.length, z = 0; z < Z; z++) {
1902
+ var N = ee[z], X = [N];
1903
1903
  X.push(g(N).edge);
1904
1904
  for (var J = g(N).pred; X.indexOf(J) === -1; ) X.push(J), X.push(g(J).edge), J = g(J).pred;
1905
1905
  X = X.slice(X.indexOf(J));
@@ -2062,7 +2062,7 @@ var Nn = /* @__PURE__ */ Rn(Wh()), Uh = lt({
2062
2062
  x: a.x / i,
2063
2063
  y: a.y / i
2064
2064
  };
2065
- return r ?? (r = 0), n ?? (n = r * i), {
2065
+ return r ??= 0, n ??= r * i, {
2066
2066
  x: e.x + o.x * n,
2067
2067
  y: e.y + o.y * n
2068
2068
  };
@@ -2487,8 +2487,8 @@ var Af = lt({
2487
2487
  }
2488
2488
  df(L), V = _, _ = L, L = V;
2489
2489
  for (var ee = 0, Z = 0; Z < c; Z++) {
2490
- var O = V[Z] - _[Z];
2491
- ee += O * O;
2490
+ var z = V[Z] - _[Z];
2491
+ ee += z * z;
2492
2492
  }
2493
2493
  if (ee < n) break;
2494
2494
  }
@@ -3086,12 +3086,12 @@ var $f = lt({
3086
3086
  if (H === o) break;
3087
3087
  }
3088
3088
  }
3089
- for (var ee = hp(o, c, d), Z = fp(o, s, ee), O = {}, N = 0; N < ee.length; N++) O[ee[N]] = [];
3089
+ for (var ee = hp(o, c, d), Z = fp(o, s, ee), z = {}, N = 0; N < ee.length; N++) z[ee[N]] = [];
3090
3090
  for (var X = 0; X < r.length; X++) {
3091
3091
  var J = Z[a[r[X].id()]];
3092
- J != null && O[J].push(r[X]);
3092
+ J != null && z[J].push(r[X]);
3093
3093
  }
3094
- for (var oe = Array(ee.length), ge = 0; ge < ee.length; ge++) oe[ge] = t.collection(O[ee[ge]]);
3094
+ for (var oe = Array(ee.length), ge = 0; ge < ee.length; ge++) oe[ge] = t.collection(z[ee[ge]]);
3095
3095
  return oe;
3096
3096
  }, pp = {
3097
3097
  affinityPropagation: Qs,
@@ -3134,9 +3134,9 @@ var $f = lt({
3134
3134
  l = s;
3135
3135
  } else {
3136
3136
  if (l && s != l && u != l) return h;
3137
- l || (l = s);
3137
+ l ||= s;
3138
3138
  }
3139
- else l || (l = i[0].id());
3139
+ else l ||= i[0].id();
3140
3140
  var f = function(g) {
3141
3141
  for (var m = g, b = [g], x, B, k; c[m].length; ) x = c[m].shift(), B = d[x][0], k = d[x][1], m == k ? !a && m != B && (c[B] = c[B].filter(function(w) {
3142
3142
  return w != x;
@@ -3587,10 +3587,10 @@ var vi, ol;
3587
3587
  function kp() {
3588
3588
  if (ol) return vi;
3589
3589
  ol = 1;
3590
- var e = Ep(), t = function() {
3590
+ var e = Ep(), t = (function() {
3591
3591
  var n = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
3592
3592
  return n ? "Symbol(src)_1." + n : "";
3593
- }();
3593
+ })();
3594
3594
  function r(n) {
3595
3595
  return !!t && t in n;
3596
3596
  }
@@ -3631,7 +3631,7 @@ function Pp() {
3631
3631
  if (ul) return bi;
3632
3632
  ul = 1;
3633
3633
  function e(t, r) {
3634
- return t == null ? void 0 : t[r];
3634
+ return t?.[r];
3635
3635
  }
3636
3636
  return bi = e, bi;
3637
3637
  }
@@ -4028,13 +4028,13 @@ function Jp() {
4028
4028
  if (Wl) return to;
4029
4029
  Wl = 1;
4030
4030
  var e = ss();
4031
- return to = function() {
4031
+ return to = (function() {
4032
4032
  try {
4033
4033
  var t = e(Object, "defineProperty");
4034
4034
  return t({}, "", {}), t;
4035
4035
  } catch {
4036
4036
  }
4037
- }(), to;
4037
+ })(), to;
4038
4038
  }
4039
4039
  var ro, Ul;
4040
4040
  function eg() {
@@ -4069,7 +4069,7 @@ function rg() {
4069
4069
  var e = 9007199254740991, t = /^(?:0|[1-9]\d*)$/;
4070
4070
  function r(n, a) {
4071
4071
  var i = typeof n;
4072
- return a ?? (a = e), !!a && (i == "number" || i != "symbol" && t.test(n)) && n > -1 && n % 1 == 0 && n < a;
4072
+ return a ??= e, !!a && (i == "number" || i != "symbol" && t.test(n)) && n > -1 && n % 1 == 0 && n < a;
4073
4073
  }
4074
4074
  return ao = r, ao;
4075
4075
  }
@@ -4110,7 +4110,7 @@ function og() {
4110
4110
  Zl = 1;
4111
4111
  function e(t, r) {
4112
4112
  var n = -1, a = t.length;
4113
- for (r || (r = Array(a)); ++n < a; ) r[n] = t[n];
4113
+ for (r ||= Array(a); ++n < a; ) r[n] = t[n];
4114
4114
  return r;
4115
4115
  }
4116
4116
  return so = e, so;
@@ -4250,7 +4250,7 @@ var dg = {
4250
4250
  break;
4251
4251
  }
4252
4252
  }
4253
- l || (l = s.size !== e.length), l && (u.classes = a, n.push(o));
4253
+ l ||= s.size !== e.length, l && (u.classes = a, n.push(o));
4254
4254
  }
4255
4255
  return n.length > 0 && this.spawn(n).updateStyle().emit("class"), t;
4256
4256
  },
@@ -4297,11 +4297,11 @@ var Pe = {
4297
4297
  directedEdge: "\\s+->\\s+",
4298
4298
  undirectedEdge: "\\s+<->\\s+"
4299
4299
  };
4300
- Pe.variable = "(?:[\\w-.]|(?:\\\\" + Pe.metaChar + "))+", Pe.className = "(?:[\\w-]|(?:\\\\" + Pe.metaChar + "))+", Pe.value = Pe.string + "|" + Pe.number, Pe.id = Pe.variable, function() {
4300
+ Pe.variable = "(?:[\\w-.]|(?:\\\\" + Pe.metaChar + "))+", Pe.className = "(?:[\\w-]|(?:\\\\" + Pe.metaChar + "))+", Pe.value = Pe.string + "|" + Pe.number, Pe.id = Pe.variable, (function() {
4301
4301
  var e = Pe.comparatorOp.split("|"), t, r;
4302
4302
  for (r = 0; r < e.length; r++) t = e[r], Pe.comparatorOp += "|@" + t;
4303
4303
  for (e = Pe.comparatorOp.split("|"), r = 0; r < e.length; r++) t = e[r], !(t.indexOf("!") >= 0) && t !== "=" && (Pe.comparatorOp += "|\\!" + t);
4304
- }();
4304
+ })();
4305
4305
  var Ne = function() {
4306
4306
  return { checks: [] };
4307
4307
  }, ae = {
@@ -4503,10 +4503,10 @@ var Ne = function() {
4503
4503
  }
4504
4504
  ].sort(function(e, t) {
4505
4505
  return ph(e.selector, t.selector);
4506
- }), hg = function() {
4506
+ }), hg = (function() {
4507
4507
  for (var e = {}, t, r = 0; r < _o.length; r++) t = _o[r], e[t.selector] = t.matches;
4508
4508
  return e;
4509
- }(), fg = function(e, t) {
4509
+ })(), fg = function(e, t) {
4510
4510
  return hg[e](t);
4511
4511
  }, pg = "(" + _o.map(function(e) {
4512
4512
  return e.selector;
@@ -5102,7 +5102,7 @@ var Pt = function(e, t) {
5102
5102
  commonAncestors: function(e) {
5103
5103
  for (var t, r = 0; r < this.length; r++) {
5104
5104
  var n = this[r].parents();
5105
- t || (t = n), t = t.intersect(n);
5105
+ t ||= n, t = t.intersect(n);
5106
5106
  }
5107
5107
  return t.filter(e);
5108
5108
  },
@@ -5604,8 +5604,8 @@ var Ct = function(e) {
5604
5604
  x: ge * j - be * H + W,
5605
5605
  y: ge * H + be * j + K
5606
5606
  };
5607
- }, Z = ee(S, P), O = ee(S, C), N = ee(E, P), X = ee(E, C);
5608
- S = Math.min(Z.x, O.x, N.x, X.x), E = Math.max(Z.x, O.x, N.x, X.x), P = Math.min(Z.y, O.y, N.y, X.y), C = Math.max(Z.y, O.y, N.y, X.y);
5607
+ }, Z = ee(S, P), z = ee(S, C), N = ee(E, P), X = ee(E, C);
5608
+ S = Math.min(Z.x, z.x, N.x, X.x), E = Math.max(Z.x, z.x, N.x, X.x), P = Math.min(Z.y, z.y, N.y, X.y), C = Math.max(Z.y, z.y, N.y, X.y);
5609
5609
  }
5610
5610
  var J = M + "Rot", oe = _[J] = _[J] || {};
5611
5611
  oe.x1 = S, oe.y1 = P, oe.x2 = E, oe.y2 = C, oe.w = E - S, oe.h = C - P, At(e, S, P, E, C), At(a.labelBounds.all, S, P, E, C);
@@ -5704,8 +5704,8 @@ var Ct = function(e) {
5704
5704
  Os(ee, i), sa(ee, y), oa(ee, 1), n && (l = i.x1, c = i.x2, d = i.y1, h = i.y2, At(i, l - w, d - w, c + w, h + w));
5705
5705
  var Z = o.overlayBounds = o.overlayBounds || {};
5706
5706
  Os(Z, i), sa(Z, y), oa(Z, 1);
5707
- var O = o.labelBounds = o.labelBounds || {};
5708
- O.all == null ? O.all = vt() : pf(O.all), n && t.includeLabels && (t.includeMainLabels && ho(i, e, null), s && (t.includeSourceLabels && ho(i, e, "source"), t.includeTargetLabels && ho(i, e, "target")));
5707
+ var z = o.labelBounds = o.labelBounds || {};
5708
+ z.all == null ? z.all = vt() : pf(z.all), n && t.includeLabels && (t.includeMainLabels && ho(i, e, null), s && (t.includeSourceLabels && ho(i, e, "source"), t.includeTargetLabels && ho(i, e, "target")));
5709
5709
  }
5710
5710
  return i.x1 = Ct(i.x1), i.y1 = Ct(i.y1), i.x2 = Ct(i.x2), i.y2 = Ct(i.y2), i.w = Ct(i.x2 - i.x1), i.h = Ct(i.y2 - i.y1), i.w > 0 && i.h > 0 && m && (sa(i, y), oa(i, 1)), i;
5711
5711
  }, Yc = function(e) {
@@ -5757,7 +5757,7 @@ sr.boundingBox = function(e) {
5757
5757
  });
5758
5758
  if (r && this.length === 1 && !n(this[0])) e = e === void 0 ? Pn : au(e), t = ru(this[0], e);
5759
5759
  else {
5760
- t = vt(), e || (e = Pn);
5760
+ t = vt(), e ||= Pn;
5761
5761
  var a = au(e), i = this, o = i.cy().styleEnabled();
5762
5762
  this.edges().forEach(n), this.nodes().forEach(n), o && this.recalculateRenderedStyle(r), this.updateCompoundBounds(!r);
5763
5763
  for (var u = 0; u < i.length; u++) {
@@ -5797,12 +5797,7 @@ var Bg = sr, Gn = xn = {}, xn, iu = function(e) {
5797
5797
  if (t) if (n) {
5798
5798
  if (t.isParent()) return t.updateCompoundBounds(), r[e.autoName] || 0;
5799
5799
  var a = t.pstyle(e.name);
5800
- switch (a.strValue) {
5801
- case "label":
5802
- return t.recalculateRenderedStyle(), r.rstyle[e.labelName] || 0;
5803
- default:
5804
- return a.pfValue;
5805
- }
5800
+ return a.strValue === "label" ? (t.recalculateRenderedStyle(), r.rstyle[e.labelName] || 0) : a.pfValue;
5806
5801
  } else return 1;
5807
5802
  }, Gn["outer" + e.uppercaseName] = function() {
5808
5803
  var t = this[0], r = t._private.cy._private.styleEnabled;
@@ -6060,7 +6055,7 @@ var zg = {
6060
6055
  createEmitter: function() {
6061
6056
  for (var e = 0; e < this.length; e++) {
6062
6057
  var t = this[e], r = t._private;
6063
- r.emitter || (r.emitter = new qa(zg, t));
6058
+ r.emitter ||= new qa(zg, t);
6064
6059
  }
6065
6060
  return this;
6066
6061
  },
@@ -6349,7 +6344,7 @@ var Og = {
6349
6344
  },
6350
6345
  slice: function(e, t) {
6351
6346
  var r = [], n = this.length;
6352
- t ?? (t = n), e ?? (e = 0), e < 0 && (e = n + e), t < 0 && (t = n + t);
6347
+ t ??= n, e ??= 0, e < 0 && (e = n + e), t < 0 && (t = n + t);
6353
6348
  for (var a = e; a >= 0 && a < t && a < n; a++) r.push(this[a]);
6354
6349
  return this.spawn(r);
6355
6350
  },
@@ -6393,7 +6388,7 @@ var Og = {
6393
6388
  }
6394
6389
  }
6395
6390
  };
6396
- ua.each = ua.forEach, function() {
6391
+ ua.each = ua.forEach, (function() {
6397
6392
  var e = "undefined";
6398
6393
  (typeof Symbol > "u" ? "undefined" : Je(Symbol)) != e && Je(Symbol.iterator) != e && (ua[Symbol.iterator] = function() {
6399
6394
  var t = this, r = {
@@ -6406,7 +6401,7 @@ ua.each = ua.forEach, function() {
6406
6401
  return this;
6407
6402
  });
6408
6403
  });
6409
- }();
6404
+ })();
6410
6405
  var Vg = lt({ nodeDimensionsIncludeLabels: !1 }), ca = {
6411
6406
  layoutDimensions: function(e) {
6412
6407
  e = Vg(e);
@@ -6449,14 +6444,14 @@ var Vg = lt({ nodeDimensionsIncludeLabels: !1 }), ca = {
6449
6444
  x: B.x + k.x,
6450
6445
  y: B.y + k.y
6451
6446
  };
6452
- }, l = t.spacingFactor && t.spacingFactor !== 1, c = function() {
6447
+ }, l = t.spacingFactor && t.spacingFactor !== 1, c = (function() {
6453
6448
  if (!l) return null;
6454
6449
  for (var m = vt(), b = 0; b < n.length; b++) {
6455
6450
  var x = n[b], B = u(x, b);
6456
6451
  yc(m, B.x, B.y);
6457
6452
  }
6458
6453
  return m;
6459
- }(), d = Hr(function(m, b) {
6454
+ })(), d = Hr(function(m, b) {
6460
6455
  var x = u(m, b);
6461
6456
  return l && (x = s(Math.abs(t.spacingFactor), c, x)), t.transform != null && (x = t.transform(m, x)), x;
6462
6457
  }, o);
@@ -6973,7 +6968,7 @@ var st = function(e, t) {
6973
6968
  i = !0;
6974
6969
  for (var o = [], u = new Zr(), s = 0, l = t.length; s < l; s++) {
6975
6970
  var c = t[s];
6976
- c.data ?? (c.data = {});
6971
+ c.data ??= {};
6977
6972
  var d = c.data;
6978
6973
  if (d.id == null) d.id = pc();
6979
6974
  else if (e.hasElementWithId(d.id) || u.has(d.id)) continue;
@@ -7123,7 +7118,7 @@ Ve.instanceString = function() {
7123
7118
  var y = v.id;
7124
7119
  if (f.isNode()) {
7125
7120
  var g = p.position;
7126
- g.x ?? (g.x = 0), g.y ?? (g.y = 0);
7121
+ g.x ??= 0, g.y ??= 0;
7127
7122
  }
7128
7123
  if (f.isEdge()) {
7129
7124
  for (var m = f, b = ["source", "target"], x = b.length, B = !1, k = 0; k < x; k++) {
@@ -7391,7 +7386,7 @@ function Xg(e, t, r, n) {
7391
7386
  return E;
7392
7387
  }, S;
7393
7388
  }
7394
- var Yg = /* @__PURE__ */ function() {
7389
+ var Yg = /* @__PURE__ */ (function() {
7395
7390
  function e(n) {
7396
7391
  return -n.tension * n.x - n.friction * n.v;
7397
7392
  }
@@ -7421,12 +7416,12 @@ var Yg = /* @__PURE__ */ function() {
7421
7416
  tension: null,
7422
7417
  friction: null
7423
7418
  }, s = [0], l = 0, c = 1 / 1e4, d = 16 / 1e3, h, f, p;
7424
- for (a = parseFloat(a) || 500, i = parseFloat(i) || 20, o || (o = null), u.tension = a, u.friction = i, h = o !== null, h ? (l = n(a, i), f = l / o * d) : f = d; p = r(p || u, f), s.push(1 + p.x), l += 16, Math.abs(p.x) > c && Math.abs(p.v) > c; ) ;
7419
+ for (a = parseFloat(a) || 500, i = parseFloat(i) || 20, o ||= null, u.tension = a, u.friction = i, h = o !== null, h ? (l = n(a, i), f = l / o * d) : f = d; p = r(p || u, f), s.push(1 + p.x), l += 16, Math.abs(p.x) > c && Math.abs(p.v) > c; ) ;
7425
7420
  return h ? function(v) {
7426
7421
  return s[v * (s.length - 1) | 0];
7427
7422
  } : l;
7428
7423
  };
7429
- }(), Fe = function(e, t, r, n) {
7424
+ })(), Fe = function(e, t, r, n) {
7430
7425
  var a = Xg(e, t, r, n);
7431
7426
  return function(i, o, u) {
7432
7427
  return i + (o - i) * a(u);
@@ -7551,13 +7546,13 @@ function bu(e, t) {
7551
7546
  f.splice(m, 1), x.hooked = !1, x.playing = !1, x.started = !1, g(x.frames);
7552
7547
  continue;
7553
7548
  }
7554
- !x.playing && !x.applying || (x.playing && x.applying && (x.applying = !1), x.started || jg(c, b, e), qg(c, b, e, d), x.applying && (x.applying = !1), g(x.frames), x.step != null && x.step(e), b.completed() && (f.splice(m, 1), x.hooked = !1, x.playing = !1, x.started = !1, g(x.completes)), v = !0);
7549
+ !x.playing && !x.applying || (x.playing && x.applying && (x.applying = !1), x.started || jg(c, b, e), qg(c, b, e, d), x.applying &&= !1, g(x.frames), x.step != null && x.step(e), b.completed() && (f.splice(m, 1), x.hooked = !1, x.playing = !1, x.started = !1, g(x.completes)), v = !0);
7555
7550
  }
7556
7551
  return !d && f.length === 0 && p.length === 0 && n.push(c), v;
7557
7552
  }
7558
7553
  for (var i = !1, o = 0; o < r.length; o++) {
7559
7554
  var u = r[o], s = a(u);
7560
- i || (i = s);
7555
+ i ||= s;
7561
7556
  }
7562
7557
  var l = a(t, !0);
7563
7558
  (i || l) && (r.length > 0 ? t.notify("draw", r) : t.notify("draw")), r.unmerge(n), t.emit("step");
@@ -7609,7 +7604,7 @@ var Wg = {
7609
7604
  }, Zc = {
7610
7605
  createEmitter: function() {
7611
7606
  var e = this._private;
7612
- return e.emitter || (e.emitter = new qa(Ug, this)), this;
7607
+ return e.emitter ||= new qa(Ug, this), this;
7613
7608
  },
7614
7609
  emitter: function() {
7615
7610
  return this._private.emitter;
@@ -7640,11 +7635,11 @@ Ae.eventAliasesOn(Zc);
7640
7635
  var No = {
7641
7636
  png: function(e) {
7642
7637
  var t = this._private.renderer;
7643
- return e || (e = {}), t.png(e);
7638
+ return e ||= {}, t.png(e);
7644
7639
  },
7645
7640
  jpg: function(e) {
7646
7641
  var t = this._private.renderer;
7647
- return e || (e = {}), e.bg = e.bg || "#fff", t.jpg(e);
7642
+ return e ||= {}, e.bg = e.bg || "#fff", t.jpg(e);
7648
7643
  }
7649
7644
  };
7650
7645
  No.jpeg = No.jpg;
@@ -7695,7 +7690,7 @@ var Gg = {
7695
7690
  },
7696
7691
  startBatch: function() {
7697
7692
  var e = this._private;
7698
- return e.batchCount ?? (e.batchCount = 0), e.batchCount === 0 && (e.batchStyleEles = this.collection(), e.batchNotifications = {}), e.batchCount++, this;
7693
+ return e.batchCount ??= 0, e.batchCount === 0 && (e.batchStyleEles = this.collection(), e.batchNotifications = {}), e.batchCount++, this;
7699
7694
  },
7700
7695
  endBatch: function() {
7701
7696
  var e = this._private;
@@ -7789,7 +7784,7 @@ var Gg = {
7789
7784
  Lo.invalidateDimensions = Lo.resize;
7790
7785
  var pa = {
7791
7786
  collection: function(e, t) {
7792
- return ce(e) ? this.$(e) : kt(e) ? e.collection() : ze(e) ? (t || (t = {}), new st(this, e, t.unique, t.removed)) : new st(this);
7787
+ return ce(e) ? this.$(e) : kt(e) ? e.collection() : ze(e) ? (t ||= {}, new st(this, e, t.unique, t.removed)) : new st(this);
7793
7788
  },
7794
7789
  nodes: function(e) {
7795
7790
  var t = this.$(function(r) {
@@ -7883,8 +7878,8 @@ tt.apply = function(e) {
7883
7878
  }
7884
7879
  return { diffProps: i };
7885
7880
  }, tt.updateStyleHints = function(e) {
7886
- var t = e._private, r = this, n = r.propertyGroupNames, a = r.propertyGroupKeys, i = function(O, N, X) {
7887
- return r.getPropertiesHash(O, N, X);
7881
+ var t = e._private, r = this, n = r.propertyGroupNames, a = r.propertyGroupKeys, i = function(z, N, X) {
7882
+ return r.getPropertiesHash(z, N, X);
7888
7883
  }, o = t.styleKey;
7889
7884
  if (e.removed()) return !1;
7890
7885
  var u = t.group === "nodes", s = e._private.style;
@@ -7893,19 +7888,19 @@ tt.apply = function(e) {
7893
7888
  var c = a[l];
7894
7889
  t.styleKeys[c] = [kr, Xr];
7895
7890
  }
7896
- for (var d = function(O, N) {
7897
- return t.styleKeys[N][0] = kn(O, t.styleKeys[N][0]);
7898
- }, h = function(O, N) {
7899
- return t.styleKeys[N][1] = Tn(O, t.styleKeys[N][1]);
7900
- }, f = function(O, N) {
7901
- d(O, N), h(O, N);
7902
- }, p = function(O, N) {
7903
- for (var X = 0; X < O.length; X++) {
7904
- var J = O.charCodeAt(X);
7891
+ for (var d = function(z, N) {
7892
+ return t.styleKeys[N][0] = kn(z, t.styleKeys[N][0]);
7893
+ }, h = function(z, N) {
7894
+ return t.styleKeys[N][1] = Tn(z, t.styleKeys[N][1]);
7895
+ }, f = function(z, N) {
7896
+ d(z, N), h(z, N);
7897
+ }, p = function(z, N) {
7898
+ for (var X = 0; X < z.length; X++) {
7899
+ var J = z.charCodeAt(X);
7905
7900
  d(J, N), h(J, N);
7906
7901
  }
7907
- }, v = 2e9, y = function(O) {
7908
- return -128 < O && O < 128 && Math.floor(O) !== O ? v - (O * 1024 | 0) : O;
7902
+ }, v = 2e9, y = function(z) {
7903
+ return -128 < z && z < 128 && Math.floor(z) !== z ? v - (z * 1024 | 0) : z;
7909
7904
  }, g = 0; g < n.length; g++) {
7910
7905
  var m = n[g], b = s[m];
7911
7906
  if (b != null) {
@@ -7939,8 +7934,8 @@ tt.apply = function(e) {
7939
7934
  K,
7940
7935
  ee,
7941
7936
  Z
7942
- ].filter(function(O) {
7943
- return O != null;
7937
+ ].filter(function(z) {
7938
+ return z != null;
7944
7939
  }).reduce(Fn, [kr, Xr])), t.hasPie = ee != null && ee[0] !== kr && ee[1] !== Xr, t.hasStripe = Z != null && Z[0] !== kr && Z[1] !== Xr;
7945
7940
  }
7946
7941
  return o !== t.styleKey;
@@ -8046,7 +8041,7 @@ tt.apply = function(e) {
8046
8041
  }).then(function() {
8047
8042
  r.removeBypasses(e, a), e.emitAndNotify("style"), n.transitioning = !1;
8048
8043
  });
8049
- } else n.transitioning && (n.transitioning = (this.removeBypasses(e, a), e.emitAndNotify("style"), !1));
8044
+ } else n.transitioning &&= (this.removeBypasses(e, a), e.emitAndNotify("style"), !1);
8050
8045
  }, tt.checkTrigger = function(e, t, r, n, a, i) {
8051
8046
  var o = this.properties[t], u = a(o);
8052
8047
  e.removed() || u != null && u(r, n, e) && i(o);
@@ -9689,12 +9684,12 @@ var Ge = {};
9689
9684
  V[W.name] = W;
9690
9685
  }
9691
9686
  for (var K = 0; K < j.length; K++) {
9692
- var ee = j[K], Z = V[ee.pointsTo], O = {
9687
+ var ee = j[K], Z = V[ee.pointsTo], z = {
9693
9688
  name: ee.name,
9694
9689
  alias: !0,
9695
9690
  pointsTo: Z
9696
9691
  };
9697
- V.push(O), V[ee.name] = O;
9692
+ V.push(z), V[ee.name] = z;
9698
9693
  }
9699
9694
  })(), Ge.getDefaultProperty = function(e) {
9700
9695
  return this.getDefaultProperties()[e];
@@ -10044,7 +10039,7 @@ va.parse = function(e, t, r, n) {
10044
10039
  if (l.evenMultiple && m.length % 2 != 0) return null;
10045
10040
  for (var b = [], x = [], B = [], k = "", w = !1, S = 0; S < m.length; S++) {
10046
10041
  var E = a.parse(e, m[S], r, "multiple");
10047
- w || (w = ce(E.value)), b.push(E.value), B.push(E.pfValue == null ? E.value : E.pfValue), x.push(E.units), k += (S > 0 ? " " : "") + E.strValue;
10042
+ w ||= ce(E.value), b.push(E.value), B.push(E.pfValue == null ? E.value : E.pfValue), x.push(E.units), k += (S > 0 ? " " : "") + E.strValue;
10048
10043
  }
10049
10044
  return l.validate && !l.validate(b, x) ? null : l.singleEnum && w ? b.length === 1 && ce(b[0]) ? {
10050
10045
  name: e,
@@ -10228,7 +10223,7 @@ var Hg = {
10228
10223
  },
10229
10224
  selectionType: function(e) {
10230
10225
  var t = this._private;
10231
- if (t.selectionType ?? (t.selectionType = Zg), e !== void 0) (e === "additive" || e === "single") && (t.selectionType = e);
10226
+ if (t.selectionType ??= Zg, e !== void 0) (e === "additive" || e === "single") && (t.selectionType = e);
10232
10227
  else return t.selectionType;
10233
10228
  return this;
10234
10229
  },
@@ -10316,7 +10311,7 @@ var Hg = {
10316
10311
  }, r.w = r.x2 - r.x1, r.h = r.y2 - r.y1;
10317
10312
  } else kt(e) || (e = this.mutableElements());
10318
10313
  if (!(kt(e) && e.empty())) {
10319
- r || (r = e.boundingBox());
10314
+ r ||= e.boundingBox();
10320
10315
  var i = this.width(), o = this.height(), u;
10321
10316
  if (t = te(t) ? t : 0, !isNaN(i) && !isNaN(o) && i > 0 && o > 0 && !isNaN(r.w) && !isNaN(r.h) && r.w > 0 && r.h > 0) {
10322
10317
  u = Math.min((i - 2 * t) / r.w, (o - 2 * t) / r.h), u = u > this._private.maxZoom ? this._private.maxZoom : u, u = u < this._private.minZoom ? this._private.minZoom : u;
@@ -10418,7 +10413,7 @@ var Hg = {
10418
10413
  },
10419
10414
  size: function() {
10420
10415
  var e = this._private, t = e.container, r = this;
10421
- return e.sizeCache = e.sizeCache || (t ? function() {
10416
+ return e.sizeCache = e.sizeCache || (t ? (function() {
10422
10417
  var n = r.window().getComputedStyle(t), a = function(i) {
10423
10418
  return parseFloat(n.getPropertyValue(i));
10424
10419
  };
@@ -10426,7 +10421,7 @@ var Hg = {
10426
10421
  width: t.clientWidth - a("padding-left") - a("padding-right"),
10427
10422
  height: t.clientHeight - a("padding-top") - a("padding-bottom")
10428
10423
  };
10429
- }() : {
10424
+ })() : {
10430
10425
  width: 1,
10431
10426
  height: 1
10432
10427
  });
@@ -10509,7 +10504,7 @@ var Bn = function(e) {
10509
10504
  var r = e.container;
10510
10505
  r && !Ta(r) && Ta(r[0]) && (r = r[0]);
10511
10506
  var n = r ? r._cyreg : null;
10512
- n || (n = {}), n && n.cy && (n.cy.destroy(), n = {});
10507
+ n ||= {}, n && n.cy && (n.cy.destroy(), n = {});
10513
10508
  var a = n.readies = n.readies || [];
10514
10509
  r && (r._cyreg = n), n.cy = t;
10515
10510
  var i = Ze !== void 0 && r !== void 0 && !e.headless, o = e;
@@ -10885,20 +10880,20 @@ Qc.prototype.run = function() {
10885
10880
  e.depthSort !== void 0 && (H = e.depthSort);
10886
10881
  for (var W = g.length, K = 0; K < W; K++) g[K].sort(H), S(K);
10887
10882
  for (var ee = [], Z = 0; Z < B.length; Z++) ee.push(B[Z]);
10888
- ee.length && (g.unshift(ee), W = g.length, function() {
10883
+ ee.length && (g.unshift(ee), W = g.length, (function() {
10889
10884
  for (var $ = 0; $ < W; $++) S($);
10890
- }());
10891
- for (var O = 0, N = 0; N < W; N++) O = Math.max(g[N].length, O);
10885
+ })());
10886
+ for (var z = 0, N = 0; N < W; N++) z = Math.max(g[N].length, z);
10892
10887
  var X = {
10893
10888
  x: s.x1 + s.w / 2,
10894
10889
  y: s.y1 + s.h / 2
10895
10890
  }, J = n.reduce(function($, le) {
10896
- return function(se) {
10891
+ return (function(se) {
10897
10892
  return {
10898
10893
  w: $.w === -1 ? se.w : ($.w + se.w) / 2,
10899
10894
  h: $.h === -1 ? se.h : ($.h + se.h) / 2
10900
10895
  };
10901
- }(le.boundingBox({ includeLabels: e.nodeDimensionsIncludeLabels }));
10896
+ })(le.boundingBox({ includeLabels: e.nodeDimensionsIncludeLabels }));
10902
10897
  }, {
10903
10898
  w: -1,
10904
10899
  h: -1
@@ -11074,11 +11069,11 @@ ed.prototype.run = function() {
11074
11069
  }
11075
11070
  }
11076
11071
  for (var F = {}, q = 0; q < y.length; q++) for (var j = y[q], H = j.dTheta, W = j.r, K = 0; K < j.length; K++) {
11077
- var ee = j[K], Z = t.startAngle + (r ? 1 : -1) * H * K, O = {
11072
+ var ee = j[K], Z = t.startAngle + (r ? 1 : -1) * H * K, z = {
11078
11073
  x: u.x + W * Math.cos(Z),
11079
11074
  y: u.y + W * Math.sin(Z)
11080
11075
  };
11081
- F[ee.node.id()] = O;
11076
+ F[ee.node.id()] = z;
11082
11077
  }
11083
11078
  return a.nodes().layoutPositions(this, t, function(N) {
11084
11079
  return F[N.id()];
@@ -12006,12 +12001,12 @@ wr.projectIntoViewport = function(e, t) {
12006
12001
  x: X * H - J * W + R,
12007
12002
  y: X * W + J * H + I
12008
12003
  };
12009
- }, ee = K(V, q), Z = K(V, j), O = K(F, q), N = K(F, j);
12004
+ }, ee = K(V, q), Z = K(V, j), z = K(F, q), N = K(F, j);
12010
12005
  if (xt(e, t, [
12011
12006
  ee.x + _,
12012
12007
  ee.y + L,
12013
- O.x + _,
12014
- O.y + L,
12008
+ z.x + _,
12009
+ z.y + L,
12015
12010
  N.x + _,
12016
12011
  N.y + L,
12017
12012
  Z.x + _,
@@ -12184,7 +12179,7 @@ wr.projectIntoViewport = function(e, t) {
12184
12179
  }]), !H || H.length < 2) continue;
12185
12180
  for (var W = 0; W < H.length - 1; W++) {
12186
12181
  for (var K = H[W], ee = H[W + 1], Z = 0; Z < f.length; Z++) {
12187
- var O = $e(f[Z], 2), N = O[0], X = O[1];
12182
+ var z = $e(f[Z], 2), N = z[0], X = z[1];
12188
12183
  if (y(K, ee, N, X)) {
12189
12184
  o.push(D), F = !0;
12190
12185
  break;
@@ -12428,8 +12423,8 @@ dt.findMidptPtsEtc = function(e, t) {
12428
12423
  ];
12429
12424
  } else r.segpts = [c.x1, c.y2];
12430
12425
  } else {
12431
- var O = Math.abs(_) <= d / 2, N = Math.abs(P) <= p / 2;
12432
- if (O) {
12426
+ var z = Math.abs(_) <= d / 2, N = Math.abs(P) <= p / 2;
12427
+ if (z) {
12433
12428
  var X = (c.y1 + c.y2) / 2;
12434
12429
  r.segpts = [
12435
12430
  c.x1,
@@ -12622,8 +12617,8 @@ dt.findMidptPtsEtc = function(e, t) {
12622
12617
  northeast: 0,
12623
12618
  southeast: 0
12624
12619
  };
12625
- for (var O = 0; O < E.eles.length; O++) {
12626
- var N = E.eles[O], X = N[0]._private.rscratch, J = N.pstyle("curve-style").value, oe = J === "unbundled-bezier" || nr(J, "segments") || nr(J, "taxi"), ge = !D.same(N.source());
12620
+ for (var z = 0; z < E.eles.length; z++) {
12621
+ var N = E.eles[z], X = N[0]._private.rscratch, J = N.pstyle("curve-style").value, oe = J === "unbundled-bezier" || nr(J, "segments") || nr(J, "taxi"), ge = !D.same(N.source());
12627
12622
  if (!E.calculatedIntersection && D !== R && (E.hasBezier || E.hasUnbundled)) {
12628
12623
  E.calculatedIntersection = !0;
12629
12624
  var be = j.intersectLine(M.x, M.y, L, V, _.x, _.y, 0, W, Z), Le = E.srcIntn = be, $ = H.intersectLine(_.x, _.y, F, q, M.x, M.y, 0, K, ee), le = E.tgtIntn = $, se = E.intersectionPts = {
@@ -12694,7 +12689,7 @@ dt.findMidptPtsEtc = function(e, t) {
12694
12689
  };
12695
12690
  }
12696
12691
  var De = ge ? P : E;
12697
- X.nodesOverlap = De.nodesOverlap, X.srcIntn = De.srcIntn, X.tgtIntn = De.tgtIntn, X.isRound = J.startsWith("round"), n && (D.isParent() || D.isChild() || R.isParent() || R.isChild()) && (D.parents().anySame(R) || R.parents().anySame(D) || D.same(R) && D.isParent()) ? t.findCompoundLoopPoints(N, De, O, oe) : D === R ? t.findLoopPoints(N, De, O, oe) : J.endsWith("segments") ? t.findSegmentsPoints(N, De) : J.endsWith("taxi") ? t.findTaxiPoints(N, De) : J === "straight" || !oe && E.eles.length % 2 == 1 && O === Math.floor(E.eles.length / 2) ? t.findStraightEdgePoints(N) : t.findBezierPoints(N, De, O, oe, ge), t.findEndpoints(N), t.tryToCorrectInvalidPoints(N, De), t.checkForInvalidEdgeWarning(N), t.storeAllpts(N), t.storeEdgeProjections(N), t.calculateArrowAngles(N), t.recalculateEdgeLabelProjections(N), t.calculateLabelAngles(N);
12692
+ X.nodesOverlap = De.nodesOverlap, X.srcIntn = De.srcIntn, X.tgtIntn = De.tgtIntn, X.isRound = J.startsWith("round"), n && (D.isParent() || D.isChild() || R.isParent() || R.isChild()) && (D.parents().anySame(R) || R.parents().anySame(D) || D.same(R) && D.isParent()) ? t.findCompoundLoopPoints(N, De, z, oe) : D === R ? t.findLoopPoints(N, De, z, oe) : J.endsWith("segments") ? t.findSegmentsPoints(N, De) : J.endsWith("taxi") ? t.findTaxiPoints(N, De) : J === "straight" || !oe && E.eles.length % 2 == 1 && z === Math.floor(E.eles.length / 2) ? t.findStraightEdgePoints(N) : t.findBezierPoints(N, De, z, oe, ge), t.findEndpoints(N), t.tryToCorrectInvalidPoints(N, De), t.checkForInvalidEdgeWarning(N), t.storeAllpts(N), t.storeEdgeProjections(N), t.calculateArrowAngles(N), t.recalculateEdgeLabelProjections(N), t.calculateLabelAngles(N);
12698
12693
  }
12699
12694
  }, x = 0; x < o.length; x++) b();
12700
12695
  this.findHaystackPoints(u);
@@ -12755,19 +12750,19 @@ yn.manualEndptToPx = function(e, t) {
12755
12750
  else if (D.units) a = this.manualEndptToPx(o, D);
12756
12751
  else if (R === "outside-to-line") a = y.tgtIntn;
12757
12752
  else if (R === "outside-to-node" || R === "outside-to-node-or-label" ? L = M : (R === "outside-to-line" || R === "outside-to-line-or-label") && (L = [u.x, u.y]), a = n.nodeShapes[this.getNodeShape(o)].intersectLine(s.x, s.y, o.outerWidth(), o.outerHeight(), L[0], L[1], 0, I, p), R === "outside-to-node-or-label" || R === "outside-to-line-or-label") {
12758
- var W = o._private.rscratch, K = W.labelWidth, ee = W.labelHeight, Z = W.labelX, O = W.labelY, N = K / 2, X = ee / 2, J = o.pstyle("text-valign").value;
12759
- J === "top" ? O -= X : J === "bottom" && (O += X);
12753
+ var W = o._private.rscratch, K = W.labelWidth, ee = W.labelHeight, Z = W.labelX, z = W.labelY, N = K / 2, X = ee / 2, J = o.pstyle("text-valign").value;
12754
+ J === "top" ? z -= X : J === "bottom" && (z += X);
12760
12755
  var oe = o.pstyle("text-halign").value;
12761
12756
  oe === "left" ? Z -= N : oe === "right" && (Z += N);
12762
12757
  var ge = bn(L[0], L[1], [
12763
12758
  Z - N,
12764
- O - X,
12759
+ z - X,
12765
12760
  Z + N,
12766
- O - X,
12761
+ z - X,
12767
12762
  Z + N,
12768
- O + X,
12763
+ z + X,
12769
12764
  Z - N,
12770
- O + X
12765
+ z + X
12771
12766
  ], s.x, s.y);
12772
12767
  if (ge.length > 0) {
12773
12768
  var be = u, Le = br(be, Wr(a)), $ = br(be, Wr(ge)), le = Le;
@@ -12797,8 +12792,8 @@ yn.manualEndptToPx = function(e, t) {
12797
12792
  Ie + De
12798
12793
  ], u.x, u.y);
12799
12794
  if (pe.length > 0) {
12800
- var T = s, z = br(T, Wr(a)), Y = br(T, Wr(pe)), G = z;
12801
- Y < z && (a = [pe[0], pe[1]], G = Y), pe.length > 2 && br(T, {
12795
+ var T = s, O = br(T, Wr(a)), Y = br(T, Wr(pe)), G = O;
12796
+ Y < O && (a = [pe[0], pe[1]], G = Y), pe.length > 2 && br(T, {
12802
12797
  x: pe[2],
12803
12798
  y: pe[3]
12804
12799
  }) < G && (a = [pe[2], pe[3]]);
@@ -12808,32 +12803,22 @@ yn.manualEndptToPx = function(e, t) {
12808
12803
  y.startX = Q[0], y.startY = Q[1], y.arrowStartX = U[0], y.arrowStartY = U[1], S && (!te(y.startX) || !te(y.startY) || !te(y.endX) || !te(y.endY) ? y.badLine = !0 : y.badLine = !1);
12809
12804
  }, yn.getSourceEndpoint = function(e) {
12810
12805
  var t = e[0]._private.rscratch;
12811
- switch (this.recalculateRenderedStyle(e), t.edgeType) {
12812
- case "haystack":
12813
- return {
12814
- x: t.haystackPts[0],
12815
- y: t.haystackPts[1]
12816
- };
12817
- default:
12818
- return {
12819
- x: t.arrowStartX,
12820
- y: t.arrowStartY
12821
- };
12822
- }
12806
+ return (this.recalculateRenderedStyle(e), t.edgeType) === "haystack" ? {
12807
+ x: t.haystackPts[0],
12808
+ y: t.haystackPts[1]
12809
+ } : {
12810
+ x: t.arrowStartX,
12811
+ y: t.arrowStartY
12812
+ };
12823
12813
  }, yn.getTargetEndpoint = function(e) {
12824
12814
  var t = e[0]._private.rscratch;
12825
- switch (this.recalculateRenderedStyle(e), t.edgeType) {
12826
- case "haystack":
12827
- return {
12828
- x: t.haystackPts[2],
12829
- y: t.haystackPts[3]
12830
- };
12831
- default:
12832
- return {
12833
- x: t.arrowEndX,
12834
- y: t.arrowEndY
12835
- };
12836
- }
12815
+ return (this.recalculateRenderedStyle(e), t.edgeType) === "haystack" ? {
12816
+ x: t.haystackPts[2],
12817
+ y: t.haystackPts[3]
12818
+ } : {
12819
+ x: t.arrowEndX,
12820
+ y: t.arrowEndY
12821
+ };
12837
12822
  };
12838
12823
  var Wo = {};
12839
12824
  function Cv(e, t, r) {
@@ -13100,7 +13085,7 @@ zt.recalculateEdgeLabelProjections = function(e) {
13100
13085
  var fd = {}, Ru = 28, Bv = !1;
13101
13086
  fd.getNodeShape = function(e) {
13102
13087
  var t = this, r = e.pstyle("shape").value;
13103
- if (r === "cutrectangle" && (e.width() < Ru || e.height() < Ru)) return Bv || (Bv = (Re("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), !0)), "rectangle";
13088
+ if (r === "cutrectangle" && (e.width() < Ru || e.height() < Ru)) return Bv ||= (Re("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), !0), "rectangle";
13104
13089
  if (e.isParent()) return r === "rectangle" || r === "roundrectangle" || r === "round-rectangle" || r === "cutrectangle" || r === "cut-rectangle" || r === "barrel" ? r : "rectangle";
13105
13090
  if (r === "polygon") {
13106
13091
  var n = e.pstyle("shape-polygon-points").value;
@@ -13281,12 +13266,12 @@ jr.registerBinding = function(e, t, r, n) {
13281
13266
  var e = this, t = e.cy.window(), r = function(T) {
13282
13267
  return T.selected();
13283
13268
  }, n = function(T) {
13284
- var z = T.getRootNode();
13285
- if (z && z.nodeType === 11 && z.host !== void 0) return z;
13286
- }, a = function(T, z, Y, G) {
13287
- T ?? (T = e.cy);
13288
- for (var U = 0; U < z.length; U++) {
13289
- var Q = z[U];
13269
+ var O = T.getRootNode();
13270
+ if (O && O.nodeType === 11 && O.host !== void 0) return O;
13271
+ }, a = function(T, O, Y, G) {
13272
+ T ??= e.cy;
13273
+ for (var U = 0; U < O.length; U++) {
13274
+ var Q = O[U];
13290
13275
  T.emit({
13291
13276
  originalEvent: Y,
13292
13277
  type: Q,
@@ -13295,10 +13280,10 @@ jr.registerBinding = function(e, t, r, n) {
13295
13280
  }
13296
13281
  }, i = function(T) {
13297
13282
  return T.shiftKey || T.metaKey || T.ctrlKey;
13298
- }, o = function(T, z) {
13283
+ }, o = function(T, O) {
13299
13284
  var Y = !0;
13300
- if (e.cy.hasCompoundNodes() && T && T.pannable()) for (var G = 0; z && G < z.length; G++) {
13301
- var T = z[G];
13285
+ if (e.cy.hasCompoundNodes() && T && T.pannable()) for (var G = 0; O && G < O.length; G++) {
13286
+ var T = O[G];
13302
13287
  if (T.isNode() && T.isParent() && !T.pannable()) {
13303
13288
  Y = !1;
13304
13289
  break;
@@ -13314,33 +13299,33 @@ jr.registerBinding = function(e, t, r, n) {
13314
13299
  T[0]._private.rscratch.isGrabTarget = !0;
13315
13300
  }, c = function(T) {
13316
13301
  T[0]._private.rscratch.isGrabTarget = !1;
13317
- }, d = function(T, z) {
13318
- var Y = z.addToList;
13302
+ }, d = function(T, O) {
13303
+ var Y = O.addToList;
13319
13304
  !Y.has(T) && T.grabbable() && !T.locked() && (Y.merge(T), Sv(T));
13320
- }, h = function(T, z) {
13321
- if (T.cy().hasCompoundNodes() && !(z.inDragLayer == null && z.addToList == null)) {
13305
+ }, h = function(T, O) {
13306
+ if (T.cy().hasCompoundNodes() && !(O.inDragLayer == null && O.addToList == null)) {
13322
13307
  var Y = T.descendants();
13323
- z.inDragLayer && (Y.forEach(u), Y.connectedEdges().forEach(u)), z.addToList && d(Y, z);
13308
+ O.inDragLayer && (Y.forEach(u), Y.connectedEdges().forEach(u)), O.addToList && d(Y, O);
13324
13309
  }
13325
- }, f = function(T, z) {
13326
- z || (z = {});
13310
+ }, f = function(T, O) {
13311
+ O ||= {};
13327
13312
  var Y = T.cy().hasCompoundNodes();
13328
- z.inDragLayer && (T.forEach(u), T.neighborhood().stdFilter(function(G) {
13313
+ O.inDragLayer && (T.forEach(u), T.neighborhood().stdFilter(function(G) {
13329
13314
  return !Y || G.isEdge();
13330
- }).forEach(u)), z.addToList && T.forEach(function(G) {
13331
- d(G, z);
13332
- }), h(T, z), y(T, { inDragLayer: z.inDragLayer }), e.updateCachedGrabbedEles();
13315
+ }).forEach(u)), O.addToList && T.forEach(function(G) {
13316
+ d(G, O);
13317
+ }), h(T, O), y(T, { inDragLayer: O.inDragLayer }), e.updateCachedGrabbedEles();
13333
13318
  }, p = f, v = function(T) {
13334
- T && (e.getCachedZSortedEles().forEach(function(z) {
13335
- Dv(z), s(z), c(z);
13319
+ T && (e.getCachedZSortedEles().forEach(function(O) {
13320
+ Dv(O), s(O), c(O);
13336
13321
  }), e.updateCachedGrabbedEles());
13337
- }, y = function(T, z) {
13338
- if (!(z.inDragLayer == null && z.addToList == null) && T.cy().hasCompoundNodes()) {
13322
+ }, y = function(T, O) {
13323
+ if (!(O.inDragLayer == null && O.addToList == null) && T.cy().hasCompoundNodes()) {
13339
13324
  var Y = T.ancestors().orphans();
13340
13325
  if (!Y.same(T)) {
13341
13326
  var G = Y.descendants().spawnSelf().merge(Y).unmerge(T).unmerge(T.descendants()), U = G.connectedEdges();
13342
- z.inDragLayer && (U.forEach(u), G.forEach(u)), z.addToList && G.forEach(function(Q) {
13343
- d(Q, z);
13327
+ O.inDragLayer && (U.forEach(u), G.forEach(u)), O.addToList && G.forEach(function(Q) {
13328
+ d(Q, O);
13344
13329
  });
13345
13330
  }
13346
13331
  }
@@ -13348,8 +13333,8 @@ jr.registerBinding = function(e, t, r, n) {
13348
13333
  document.activeElement != null && document.activeElement.blur != null && document.activeElement.blur();
13349
13334
  }, m = typeof MutationObserver < "u", b = typeof ResizeObserver < "u";
13350
13335
  m ? (e.removeObserver = new MutationObserver(function(T) {
13351
- for (var z = 0; z < T.length; z++) {
13352
- var Y = T[z].removedNodes;
13336
+ for (var O = 0; O < T.length; O++) {
13337
+ var Y = T[O].removedNodes;
13353
13338
  if (Y) {
13354
13339
  for (var G = 0; G < Y.length; G++) if (Y[G] === e.container) {
13355
13340
  e.destroy();
@@ -13364,8 +13349,8 @@ jr.registerBinding = function(e, t, r, n) {
13364
13349
  e.cy.resize();
13365
13350
  }, 100);
13366
13351
  m && (e.styleObserver = new MutationObserver(x), e.styleObserver.observe(e.container, { attributes: !0 })), e.registerBinding(t, "resize", x), b && (e.resizeObserver = new ResizeObserver(x), e.resizeObserver.observe(e.container));
13367
- var B = function(T, z) {
13368
- for (; T != null; ) z(T), T = T.parentNode;
13352
+ var B = function(T, O) {
13353
+ for (; T != null; ) O(T), T = T.parentNode;
13369
13354
  }, k = function() {
13370
13355
  e.invalidateContainerClientCoordsCache();
13371
13356
  };
@@ -13377,7 +13362,7 @@ jr.registerBinding = function(e, t, r, n) {
13377
13362
  var w = function() {
13378
13363
  return e.selection[4] !== 0;
13379
13364
  }, S = function(T) {
13380
- for (var z = e.findContainerClientCoords(), Y = z[0], G = z[1], U = z[2], Q = z[3], re = T.touches ? T.touches : [T], de = !1, ne = 0; ne < re.length; ne++) {
13365
+ for (var O = e.findContainerClientCoords(), Y = O[0], G = O[1], U = O[2], Q = O[3], re = T.touches ? T.touches : [T], de = !1, ne = 0; ne < re.length; ne++) {
13381
13366
  var Ee = re[ne];
13382
13367
  if (Y <= Ee.clientX && Ee.clientX <= Y + U && G <= Ee.clientY && Ee.clientY <= G + Q) {
13383
13368
  de = !0;
@@ -13397,7 +13382,7 @@ jr.registerBinding = function(e, t, r, n) {
13397
13382
  e.registerBinding(e.container, "mousedown", function(T) {
13398
13383
  if (S(T) && !(e.hoverData.which === 1 && T.which !== 1)) {
13399
13384
  T.preventDefault(), g(), e.hoverData.capture = !0, e.hoverData.which = T.which;
13400
- var z = e.cy, Y = [T.clientX, T.clientY], G = e.projectIntoViewport(Y[0], Y[1]), U = e.selection, Q = e.findNearestElements(G[0], G[1], !0, !1), re = Q[0], de = e.dragData.possibleDragElements;
13385
+ var O = e.cy, Y = [T.clientX, T.clientY], G = e.projectIntoViewport(Y[0], Y[1]), U = e.selection, Q = e.findNearestElements(G[0], G[1], !0, !1), re = Q[0], de = e.dragData.possibleDragElements;
13401
13386
  e.hoverData.mdownPos = G, e.hoverData.mdownGPos = Y;
13402
13387
  var ne = function(Ce) {
13403
13388
  return {
@@ -13412,7 +13397,7 @@ jr.registerBinding = function(e, t, r, n) {
13412
13397
  e.hoverData.tapholdCancelled = !1, clearTimeout(e.hoverData.tapholdTimeout), e.hoverData.tapholdTimeout = setTimeout(function() {
13413
13398
  if (!e.hoverData.tapholdCancelled) {
13414
13399
  var Ce = e.hoverData.down;
13415
- Ce ? Ce.emit(ne("taphold")) : z.emit(ne("taphold"));
13400
+ Ce ? Ce.emit(ne("taphold")) : O.emit(ne("taphold"));
13416
13401
  }
13417
13402
  }, e.tapholdDuration);
13418
13403
  };
@@ -13426,16 +13411,16 @@ jr.registerBinding = function(e, t, r, n) {
13426
13411
  y: G[1]
13427
13412
  }
13428
13413
  };
13429
- re ? (re.activate(), re.emit(Oe), e.hoverData.down = re) : z.emit(Oe), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
13414
+ re ? (re.activate(), re.emit(Oe), e.hoverData.down = re) : O.emit(Oe), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
13430
13415
  } else if (T.which == 1) {
13431
13416
  if (re && re.activate(), re != null && e.nodeIsGrabbable(re)) {
13432
13417
  var ie = function(Ce) {
13433
13418
  Ce.emit(ne("grab"));
13434
13419
  };
13435
- if (l(re), !re.selected()) de = e.dragData.possibleDragElements = z.collection(), p(re, { addToList: de }), re.emit(ne("grabon")).emit(ne("grab"));
13420
+ if (l(re), !re.selected()) de = e.dragData.possibleDragElements = O.collection(), p(re, { addToList: de }), re.emit(ne("grabon")).emit(ne("grab"));
13436
13421
  else {
13437
- de = e.dragData.possibleDragElements = z.collection();
13438
- var ve = z.$(function(Ce) {
13422
+ de = e.dragData.possibleDragElements = O.collection();
13423
+ var ve = O.$(function(Ce) {
13439
13424
  return Ce.isNode() && Ce.selected() && e.nodeIsGrabbable(Ce);
13440
13425
  });
13441
13426
  f(ve, { addToList: de }), re.emit(ne("grabon")), ve.forEach(ie);
@@ -13460,7 +13445,7 @@ jr.registerBinding = function(e, t, r, n) {
13460
13445
  var E = n(e.container);
13461
13446
  e.registerBinding([t, E], "mousemove", function(T) {
13462
13447
  if (!(!e.hoverData.capture && !S(T))) {
13463
- var z = !1, Y = e.cy, G = Y.zoom(), U = [T.clientX, T.clientY], Q = e.projectIntoViewport(U[0], U[1]), re = e.hoverData.mdownPos, de = e.hoverData.mdownGPos, ne = e.selection, Ee = null;
13448
+ var O = !1, Y = e.cy, G = Y.zoom(), U = [T.clientX, T.clientY], Q = e.projectIntoViewport(U[0], U[1]), re = e.hoverData.mdownPos, de = e.hoverData.mdownGPos, ne = e.selection, Ee = null;
13464
13449
  !e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (Ee = e.findNearestElement(Q[0], Q[1], !0, !1));
13465
13450
  var Oe = e.hoverData.last, ie = e.hoverData.down, ve = [Q[0] - ne[2], Q[1] - ne[3]], Ce = e.dragData.possibleDragElements, Me;
13466
13451
  if (de) {
@@ -13473,7 +13458,7 @@ jr.registerBinding = function(e, t, r, n) {
13473
13458
  var It = e.hoverData.dragDelta = e.hoverData.dragDelta || [];
13474
13459
  It.length === 0 ? (It.push(ve[0]), It.push(ve[1])) : (It[0] += ve[0], It[1] += ve[1]);
13475
13460
  };
13476
- z = !0, a(Ee, [
13461
+ O = !0, a(Ee, [
13477
13462
  "mousemove",
13478
13463
  "vmousemove",
13479
13464
  "tapdrag"
@@ -13499,7 +13484,7 @@ jr.registerBinding = function(e, t, r, n) {
13499
13484
  ie ? ie.emit(Ln) : Y.emit(Ln), e.hoverData.cxtDragged = !0, (!e.hoverData.cxtOver || Ee !== e.hoverData.cxtOver) && (e.hoverData.cxtOver && e.hoverData.cxtOver.emit(ft("cxtdragout")), e.hoverData.cxtOver = Ee, Ee && Ee.emit(ft("cxtdragover")));
13500
13485
  }
13501
13486
  } else if (e.hoverData.dragging) {
13502
- if (z = !0, Y.panningEnabled() && Y.userPanningEnabled()) {
13487
+ if (O = !0, Y.panningEnabled() && Y.userPanningEnabled()) {
13503
13488
  var Sr;
13504
13489
  if (e.hoverData.justStartedPan) {
13505
13490
  var Gt = e.hoverData.mdownPos;
@@ -13538,16 +13523,16 @@ jr.registerBinding = function(e, t, r, n) {
13538
13523
  e.hoverData.draggingEles = !0, Ce.silentShift(ut).emit(ft("position")).emit(ft("drag")), e.redrawHint("drag", !0), e.redraw();
13539
13524
  }
13540
13525
  } else Et();
13541
- z = !0;
13526
+ O = !0;
13542
13527
  }
13543
- if (ne[2] = Q[0], ne[3] = Q[1], z) return T.stopPropagation && T.stopPropagation(), T.preventDefault && T.preventDefault(), !1;
13528
+ if (ne[2] = Q[0], ne[3] = Q[1], O) return T.stopPropagation && T.stopPropagation(), T.preventDefault && T.preventDefault(), !1;
13544
13529
  }
13545
13530
  }, !1);
13546
13531
  var P, C, A;
13547
13532
  e.registerBinding(t, "mouseup", function(T) {
13548
13533
  if (!(e.hoverData.which === 1 && T.which !== 1 && e.hoverData.capture) && e.hoverData.capture) {
13549
13534
  e.hoverData.capture = !1;
13550
- var z = e.cy, Y = e.projectIntoViewport(T.clientX, T.clientY), G = e.selection, U = e.findNearestElement(Y[0], Y[1], !0, !1), Q = e.dragData.possibleDragElements, re = e.hoverData.down, de = i(T);
13535
+ var O = e.cy, Y = e.projectIntoViewport(T.clientX, T.clientY), G = e.selection, U = e.findNearestElement(Y[0], Y[1], !0, !1), Q = e.dragData.possibleDragElements, re = e.hoverData.down, de = i(T);
13551
13536
  e.data.bgActivePosistion && (e.redrawHint("select", !0), e.redraw()), e.hoverData.tapholdCancelled = !0, e.data.bgActivePosistion = void 0, re && re.unactivate();
13552
13537
  var ne = function(Ce) {
13553
13538
  return {
@@ -13561,9 +13546,9 @@ jr.registerBinding = function(e, t, r, n) {
13561
13546
  };
13562
13547
  if (e.hoverData.which === 3) {
13563
13548
  var Ee = ne("cxttapend");
13564
- if (re ? re.emit(Ee) : z.emit(Ee), !e.hoverData.cxtDragged) {
13549
+ if (re ? re.emit(Ee) : O.emit(Ee), !e.hoverData.cxtDragged) {
13565
13550
  var Oe = ne("cxttap");
13566
- re ? re.emit(Oe) : z.emit(Oe);
13551
+ re ? re.emit(Oe) : O.emit(Oe);
13567
13552
  }
13568
13553
  e.hoverData.cxtDragged = !1, e.hoverData.which = null;
13569
13554
  } else if (e.hoverData.which === 1) {
@@ -13581,7 +13566,7 @@ jr.registerBinding = function(e, t, r, n) {
13581
13566
  ], T, {
13582
13567
  x: Y[0],
13583
13568
  y: Y[1]
13584
- }), C = !1, T.timeStamp - A <= z.multiClickDebounceTime() ? (P && clearTimeout(P), C = !0, A = null, a(re, [
13569
+ }), C = !1, T.timeStamp - A <= O.multiClickDebounceTime() ? (P && clearTimeout(P), C = !0, A = null, a(re, [
13585
13570
  "dblclick",
13586
13571
  "dbltap",
13587
13572
  "vdblclick"
@@ -13597,9 +13582,9 @@ jr.registerBinding = function(e, t, r, n) {
13597
13582
  x: Y[0],
13598
13583
  y: Y[1]
13599
13584
  });
13600
- }, z.multiClickDebounceTime()), A = T.timeStamp)), re == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !i(T) && (z.$(r).unselect(["tapunselect"]), Q.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = Q = z.collection()), U == re && !e.dragData.didDrag && !e.hoverData.selecting && U != null && U._private.selectable && (e.hoverData.dragging || (z.selectionType() === "additive" || de ? U.selected() ? U.unselect(["tapunselect"]) : U.select(["tapselect"]) : de || (z.$(r).unmerge(U).unselect(["tapunselect"]), U.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
13601
- var ie = z.collection(e.getAllInBox(G[0], G[1], G[2], G[3]));
13602
- e.redrawHint("select", !0), ie.length > 0 && e.redrawHint("eles", !0), z.emit(ne("boxend")), z.selectionType() === "additive" || de || z.$(r).unmerge(ie).unselect(), ie.emit(ne("box")).stdFilter(function(Ce) {
13585
+ }, O.multiClickDebounceTime()), A = T.timeStamp)), re == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !i(T) && (O.$(r).unselect(["tapunselect"]), Q.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = Q = O.collection()), U == re && !e.dragData.didDrag && !e.hoverData.selecting && U != null && U._private.selectable && (e.hoverData.dragging || (O.selectionType() === "additive" || de ? U.selected() ? U.unselect(["tapunselect"]) : U.select(["tapselect"]) : de || (O.$(r).unmerge(U).unselect(["tapunselect"]), U.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
13586
+ var ie = O.collection(e.getAllInBox(G[0], G[1], G[2], G[3]));
13587
+ e.redrawHint("select", !0), ie.length > 0 && e.redrawHint("eles", !0), O.emit(ne("boxend")), O.selectionType() === "additive" || de || O.$(r).unmerge(ie).unselect(), ie.emit(ne("box")).stdFilter(function(Ce) {
13603
13588
  return Ce.selectable() && !Ce.selected();
13604
13589
  }).select().emit(ne("boxselect")), e.redraw();
13605
13590
  }
@@ -13612,14 +13597,14 @@ jr.registerBinding = function(e, t, r, n) {
13612
13597
  G[4] = 0, e.hoverData.down = null, e.hoverData.cxtStarted = !1, e.hoverData.draggingEles = !1, e.hoverData.selecting = !1, e.hoverData.isOverThresholdDrag = !1, e.dragData.didDrag = !1, e.hoverData.dragged = !1, e.hoverData.dragDelta = [], e.hoverData.mdownPos = null, e.hoverData.mdownGPos = null, e.hoverData.which = null;
13613
13598
  }
13614
13599
  }, !1);
13615
- var D = [], R = 4, I, M = 1e5, _ = function(T, z) {
13616
- for (var Y = 0; Y < T.length; Y++) if (T[Y] % z !== 0) return !1;
13600
+ var D = [], R = 4, I, M = 1e5, _ = function(T, O) {
13601
+ for (var Y = 0; Y < T.length; Y++) if (T[Y] % O !== 0) return !1;
13617
13602
  return !0;
13618
13603
  }, L = function(T) {
13619
- for (var z = Math.abs(T[0]), Y = 1; Y < T.length; Y++) if (Math.abs(T[Y]) !== z) return !1;
13604
+ for (var O = Math.abs(T[0]), Y = 1; Y < T.length; Y++) if (Math.abs(T[Y]) !== O) return !1;
13620
13605
  return !0;
13621
13606
  }, V = function(T) {
13622
- var z = !1, Y = T.deltaY;
13607
+ var O = !1, Y = T.deltaY;
13623
13608
  if (Y ?? (T.wheelDeltaY == null ? T.wheelDelta != null && (Y = T.wheelDelta / 4) : Y = T.wheelDeltaY / 4), Y !== 0) {
13624
13609
  if (I == null) if (D.length >= R) {
13625
13610
  var G = D;
@@ -13628,7 +13613,7 @@ jr.registerBinding = function(e, t, r, n) {
13628
13613
  I = L(G) && U > 5;
13629
13614
  }
13630
13615
  if (I) for (var Q = 0; Q < G.length; Q++) M = Math.min(Math.abs(G[Q]), M);
13631
- } else D.push(Y), z = !0;
13616
+ } else D.push(Y), O = !0;
13632
13617
  else I && (M = Math.min(Math.abs(Y), M));
13633
13618
  if (!e.scrollingPage) {
13634
13619
  var re = e.cy, de = re.zoom(), ne = re.pan(), Ee = e.projectIntoViewport(T.clientX, T.clientY), Oe = [Ee[0] * de + ne.x, Ee[1] * de + ne.y];
@@ -13641,7 +13626,7 @@ jr.registerBinding = function(e, t, r, n) {
13641
13626
  e.data.wheelZooming = !1, e.redrawHint("eles", !0), e.redraw();
13642
13627
  }, 150);
13643
13628
  var ie;
13644
- z && Math.abs(Y) > 5 && (Y = Po(Y) * 5), ie = Y / -250, I && (ie /= M, ie *= 3), ie *= e.wheelSensitivity, T.deltaMode === 1 && (ie *= 33);
13629
+ O && Math.abs(Y) > 5 && (Y = Po(Y) * 5), ie = Y / -250, I && (ie /= M, ie *= 3), ie *= e.wheelSensitivity, T.deltaMode === 1 && (ie *= 33);
13645
13630
  var ve = re.zoom() * 10 ** ie;
13646
13631
  T.type === "gesturechange" && (ve = e.gestureStartZoom * T.scale), re.zoom({
13647
13632
  level: ve,
@@ -13670,35 +13655,35 @@ jr.registerBinding = function(e, t, r, n) {
13670
13655
  }, !0), e.registerBinding(e.container, "gesturechange", function(T) {
13671
13656
  e.hasTouchStarted || V(T);
13672
13657
  }, !0), e.registerBinding(e.container, "mouseout", function(T) {
13673
- var z = e.projectIntoViewport(T.clientX, T.clientY);
13658
+ var O = e.projectIntoViewport(T.clientX, T.clientY);
13674
13659
  e.cy.emit({
13675
13660
  originalEvent: T,
13676
13661
  type: "mouseout",
13677
13662
  position: {
13678
- x: z[0],
13679
- y: z[1]
13663
+ x: O[0],
13664
+ y: O[1]
13680
13665
  }
13681
13666
  });
13682
13667
  }, !1), e.registerBinding(e.container, "mouseover", function(T) {
13683
- var z = e.projectIntoViewport(T.clientX, T.clientY);
13668
+ var O = e.projectIntoViewport(T.clientX, T.clientY);
13684
13669
  e.cy.emit({
13685
13670
  originalEvent: T,
13686
13671
  type: "mouseover",
13687
13672
  position: {
13688
- x: z[0],
13689
- y: z[1]
13673
+ x: O[0],
13674
+ y: O[1]
13690
13675
  }
13691
13676
  });
13692
13677
  }, !1);
13693
- var F, q, j, H, W, K, ee, Z, O, N, X, J, oe, ge = function(T, z, Y, G) {
13694
- return Math.sqrt((Y - T) * (Y - T) + (G - z) * (G - z));
13695
- }, be = function(T, z, Y, G) {
13696
- return (Y - T) * (Y - T) + (G - z) * (G - z);
13678
+ var F, q, j, H, W, K, ee, Z, z, N, X, J, oe, ge = function(T, O, Y, G) {
13679
+ return Math.sqrt((Y - T) * (Y - T) + (G - O) * (G - O));
13680
+ }, be = function(T, O, Y, G) {
13681
+ return (Y - T) * (Y - T) + (G - O) * (G - O);
13697
13682
  }, Le;
13698
13683
  e.registerBinding(e.container, "touchstart", Le = function(T) {
13699
13684
  if (e.hasTouchStarted = !0, S(T)) {
13700
13685
  g(), e.touchData.capture = !0, e.data.bgActivePosistion = void 0;
13701
- var z = e.cy, Y = e.touchData.now, G = e.touchData.earlier;
13686
+ var O = e.cy, Y = e.touchData.now, G = e.touchData.earlier;
13702
13687
  if (T.touches[0]) {
13703
13688
  var U = e.projectIntoViewport(T.touches[0].clientX, T.touches[0].clientY);
13704
13689
  Y[0] = U[0], Y[1] = U[1];
@@ -13724,22 +13709,22 @@ jr.registerBinding = function(e, t, r, n) {
13724
13709
  if (T.touches[1]) {
13725
13710
  e.touchData.singleTouchMoved = !0, v(e.dragData.touchDragEles);
13726
13711
  var re = e.findContainerClientCoords();
13727
- O = re[0], N = re[1], X = re[2], J = re[3], F = T.touches[0].clientX - O, q = T.touches[0].clientY - N, j = T.touches[1].clientX - O, H = T.touches[1].clientY - N, oe = 0 <= F && F <= X && 0 <= j && j <= X && 0 <= q && q <= J && 0 <= H && H <= J;
13728
- var de = z.pan(), ne = z.zoom();
13712
+ z = re[0], N = re[1], X = re[2], J = re[3], F = T.touches[0].clientX - z, q = T.touches[0].clientY - N, j = T.touches[1].clientX - z, H = T.touches[1].clientY - N, oe = 0 <= F && F <= X && 0 <= j && j <= X && 0 <= q && q <= J && 0 <= H && H <= J;
13713
+ var de = O.pan(), ne = O.zoom();
13729
13714
  W = ge(F, q, j, H), K = be(F, q, j, H), ee = [(F + j) / 2, (q + H) / 2], Z = [(ee[0] - de.x) / ne, (ee[1] - de.y) / ne];
13730
13715
  var Ee = 200, Oe = Ee * Ee;
13731
13716
  if (K < Oe && !T.touches[2]) {
13732
13717
  var ie = e.findNearestElement(Y[0], Y[1], !0, !0), ve = e.findNearestElement(Y[2], Y[3], !0, !0);
13733
- ie && ie.isNode() ? (ie.activate().emit(Q("cxttapstart")), e.touchData.start = ie) : ve && ve.isNode() ? (ve.activate().emit(Q("cxttapstart")), e.touchData.start = ve) : z.emit(Q("cxttapstart")), e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxt = !0, e.touchData.cxtDragged = !1, e.data.bgActivePosistion = void 0, e.redraw();
13718
+ ie && ie.isNode() ? (ie.activate().emit(Q("cxttapstart")), e.touchData.start = ie) : ve && ve.isNode() ? (ve.activate().emit(Q("cxttapstart")), e.touchData.start = ve) : O.emit(Q("cxttapstart")), e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxt = !0, e.touchData.cxtDragged = !1, e.data.bgActivePosistion = void 0, e.redraw();
13734
13719
  return;
13735
13720
  }
13736
13721
  }
13737
- if (T.touches[2]) z.boxSelectionEnabled() && T.preventDefault();
13722
+ if (T.touches[2]) O.boxSelectionEnabled() && T.preventDefault();
13738
13723
  else if (!T.touches[1] && T.touches[0]) {
13739
13724
  var Ce = e.findNearestElements(Y[0], Y[1], !0, !0), Me = Ce[0];
13740
13725
  if (Me != null && (Me.activate(), e.touchData.start = Me, e.touchData.starts = Ce, e.nodeIsGrabbable(Me))) {
13741
- var et = e.dragData.touchDragEles = z.collection(), Ke = null;
13742
- e.redrawHint("eles", !0), e.redrawHint("drag", !0), Me.selected() ? (Ke = z.$(function(Et) {
13726
+ var et = e.dragData.touchDragEles = O.collection(), Ke = null;
13727
+ e.redrawHint("eles", !0), e.redrawHint("drag", !0), Me.selected() ? (Ke = O.$(function(Et) {
13743
13728
  return Et.selected() && e.nodeIsGrabbable(Et);
13744
13729
  }), f(Ke, { addToList: et })) : p(Me, { addToList: et }), l(Me), Me.emit(Q("grabon")), Ke ? Ke.forEach(function(Et) {
13745
13730
  Et.emit(Q("grab"));
@@ -13778,8 +13763,8 @@ jr.registerBinding = function(e, t, r, n) {
13778
13763
  }, !1);
13779
13764
  var $;
13780
13765
  e.registerBinding(t, "touchmove", $ = function(T) {
13781
- var z = e.touchData.capture;
13782
- if (!(!z && !S(T))) {
13766
+ var O = e.touchData.capture;
13767
+ if (!(!O && !S(T))) {
13783
13768
  var Y = e.selection, G = e.cy, U = e.touchData.now, Q = e.touchData.earlier, re = G.zoom();
13784
13769
  if (T.touches[0]) {
13785
13770
  var de = e.projectIntoViewport(T.touches[0].clientX, T.touches[0].clientY);
@@ -13803,27 +13788,27 @@ jr.registerBinding = function(e, t, r, n) {
13803
13788
  }
13804
13789
  };
13805
13790
  }, Ee = e.touchData.startGPosition, Oe;
13806
- if (z && T.touches[0] && Ee) {
13791
+ if (O && T.touches[0] && Ee) {
13807
13792
  for (var ie = [], ve = 0; ve < U.length; ve++) ie[ve] = U[ve] - Q[ve];
13808
13793
  var Ce = T.touches[0].clientX - Ee[0], Me = Ce * Ce, et = T.touches[0].clientY - Ee[1];
13809
13794
  Oe = Me + et * et >= e.touchTapThreshold2;
13810
13795
  }
13811
- if (z && e.touchData.cxt) {
13796
+ if (O && e.touchData.cxt) {
13812
13797
  T.preventDefault();
13813
- var Ke = T.touches[0].clientX - O, at = T.touches[0].clientY - N, je = T.touches[1].clientX - O, Ue = T.touches[1].clientY - N, Et = be(Ke, at, je, Ue), ft = Et / K, fr = 150, Ln = fr * fr, Sr = 1.5;
13798
+ var Ke = T.touches[0].clientX - z, at = T.touches[0].clientY - N, je = T.touches[1].clientX - z, Ue = T.touches[1].clientY - N, Et = be(Ke, at, je, Ue), ft = Et / K, fr = 150, Ln = fr * fr, Sr = 1.5;
13814
13799
  if (ft >= Sr * Sr || Et >= Ln) {
13815
13800
  e.touchData.cxt = !1, e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13816
13801
  var Gt = ne("cxttapend");
13817
13802
  e.touchData.start ? (e.touchData.start.unactivate().emit(Gt), e.touchData.start = null) : G.emit(Gt);
13818
13803
  }
13819
13804
  }
13820
- if (z && e.touchData.cxt) {
13805
+ if (O && e.touchData.cxt) {
13821
13806
  var Gt = ne("cxtdrag");
13822
13807
  e.data.bgActivePosistion = void 0, e.redrawHint("select", !0), e.touchData.start ? e.touchData.start.emit(Gt) : G.emit(Gt), e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxtDragged = !0;
13823
13808
  var yt = e.findNearestElement(U[0], U[1], !0, !0);
13824
13809
  (!e.touchData.cxtOver || yt !== e.touchData.cxtOver) && (e.touchData.cxtOver && e.touchData.cxtOver.emit(ne("cxtdragout")), e.touchData.cxtOver = yt, yt && yt.emit(ne("cxtdragover")));
13825
- } else if (z && T.touches[2] && G.boxSelectionEnabled()) T.preventDefault(), e.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), e.touchData.selecting || G.emit(ne("boxstart")), e.touchData.selecting = !0, e.touchData.didSelect = !0, Y[4] = 1, !Y || Y.length === 0 || Y[0] === void 0 ? (Y[0] = (U[0] + U[2] + U[4]) / 3, Y[1] = (U[1] + U[3] + U[5]) / 3, Y[2] = (U[0] + U[2] + U[4]) / 3 + 1, Y[3] = (U[1] + U[3] + U[5]) / 3 + 1) : (Y[2] = (U[0] + U[2] + U[4]) / 3, Y[3] = (U[1] + U[3] + U[5]) / 3), e.redrawHint("select", !0), e.redraw();
13826
- else if (z && T.touches[1] && !e.touchData.didSelect && G.zoomingEnabled() && G.panningEnabled() && G.userZoomingEnabled() && G.userPanningEnabled()) {
13810
+ } else if (O && T.touches[2] && G.boxSelectionEnabled()) T.preventDefault(), e.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), e.touchData.selecting || G.emit(ne("boxstart")), e.touchData.selecting = !0, e.touchData.didSelect = !0, Y[4] = 1, !Y || Y.length === 0 || Y[0] === void 0 ? (Y[0] = (U[0] + U[2] + U[4]) / 3, Y[1] = (U[1] + U[3] + U[5]) / 3, Y[2] = (U[0] + U[2] + U[4]) / 3 + 1, Y[3] = (U[1] + U[3] + U[5]) / 3 + 1) : (Y[2] = (U[0] + U[2] + U[4]) / 3, Y[3] = (U[1] + U[3] + U[5]) / 3), e.redrawHint("select", !0), e.redraw();
13811
+ else if (O && T.touches[1] && !e.touchData.didSelect && G.zoomingEnabled() && G.panningEnabled() && G.userZoomingEnabled() && G.userPanningEnabled()) {
13827
13812
  T.preventDefault(), e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13828
13813
  var ut = e.dragData.touchDragEles;
13829
13814
  if (ut) {
@@ -13833,7 +13818,7 @@ jr.registerBinding = function(e, t, r, n) {
13833
13818
  It.grabbed = !1, It.rscratch.inDragLayer = !1;
13834
13819
  }
13835
13820
  }
13836
- var zn = e.touchData.start, Ke = T.touches[0].clientX - O, at = T.touches[0].clientY - N, je = T.touches[1].clientX - O, Ue = T.touches[1].clientY - N, hs = ge(Ke, at, je, Ue), Nd = hs / W;
13821
+ var zn = e.touchData.start, Ke = T.touches[0].clientX - z, at = T.touches[0].clientY - N, je = T.touches[1].clientX - z, Ue = T.touches[1].clientY - N, hs = ge(Ke, at, je, Ue), Nd = hs / W;
13837
13822
  if (oe) {
13838
13823
  var Ld = Ke - F, zd = at - q, Od = je - j, Vd = Ue - H, Fd = (Ld + Od) / 2, Xd = (zd + Vd) / 2, Jr = G.zoom(), ja = Jr * Nd, On = G.pan(), fs = Z[0] * Jr + On.x, ps = Z[1] * Jr + On.y, Yd = {
13839
13824
  x: -ja / Jr * (fs - On.x - Fd) + fs,
@@ -13863,7 +13848,7 @@ jr.registerBinding = function(e, t, r, n) {
13863
13848
  }
13864
13849
  } else if (T.touches[0] && !e.touchData.didSelect) {
13865
13850
  var Bt = e.touchData.start, Wa = e.touchData.last, yt;
13866
- if (!e.hoverData.draggingEles && !e.swipePanning && (yt = e.findNearestElement(U[0], U[1], !0, !0)), z && Bt != null && T.preventDefault(), z && Bt != null && e.nodeIsDraggable(Bt)) if (Oe) {
13851
+ if (!e.hoverData.draggingEles && !e.swipePanning && (yt = e.findNearestElement(U[0], U[1], !0, !0)), O && Bt != null && T.preventDefault(), O && Bt != null && e.nodeIsDraggable(Bt)) if (Oe) {
13867
13852
  var ut = e.dragData.touchDragEles, gs = !e.dragData.didDrag;
13868
13853
  gs && f(ut, { inDragLayer: !0 }), e.dragData.didDrag = !0;
13869
13854
  var en = {
@@ -13887,8 +13872,8 @@ jr.registerBinding = function(e, t, r, n) {
13887
13872
  ], T, {
13888
13873
  x: U[0],
13889
13874
  y: U[1]
13890
- }), (!Bt || !Bt.grabbed()) && yt != Wa && (Wa && Wa.emit(ne("tapdragout")), yt && yt.emit(ne("tapdragover"))), e.touchData.last = yt, z) for (var mt = 0; mt < U.length; mt++) U[mt] && e.touchData.startPosition[mt] && Oe && (e.touchData.singleTouchMoved = !0);
13891
- if (z && (Bt == null || Bt.pannable()) && G.panningEnabled() && G.userPanningEnabled()) {
13875
+ }), (!Bt || !Bt.grabbed()) && yt != Wa && (Wa && Wa.emit(ne("tapdragout")), yt && yt.emit(ne("tapdragover"))), e.touchData.last = yt, O) for (var mt = 0; mt < U.length; mt++) U[mt] && e.touchData.startPosition[mt] && Oe && (e.touchData.singleTouchMoved = !0);
13876
+ if (O && (Bt == null || Bt.pannable()) && G.panningEnabled() && G.userPanningEnabled()) {
13892
13877
  o(Bt, e.touchData.starts) && (T.preventDefault(), e.data.bgActivePosistion || (e.data.bgActivePosistion = Wr(e.touchData.startPosition)), e.swipePanning ? (G.panBy({
13893
13878
  x: ie[0] * re,
13894
13879
  y: ie[1] * re
@@ -13901,17 +13886,17 @@ jr.registerBinding = function(e, t, r, n) {
13901
13886
  }
13902
13887
  }
13903
13888
  for (var ve = 0; ve < U.length; ve++) Q[ve] = U[ve];
13904
- z && T.touches.length > 0 && !e.hoverData.draggingEles && !e.swipePanning && e.data.bgActivePosistion != null && (e.data.bgActivePosistion = void 0, e.redrawHint("select", !0), e.redraw());
13889
+ O && T.touches.length > 0 && !e.hoverData.draggingEles && !e.swipePanning && e.data.bgActivePosistion != null && (e.data.bgActivePosistion = void 0, e.redrawHint("select", !0), e.redraw());
13905
13890
  }
13906
13891
  }, !1);
13907
13892
  var le;
13908
13893
  e.registerBinding(t, "touchcancel", le = function(T) {
13909
- var z = e.touchData.start;
13910
- e.touchData.capture = !1, z && z.unactivate();
13894
+ var O = e.touchData.start;
13895
+ e.touchData.capture = !1, O && O.unactivate();
13911
13896
  });
13912
13897
  var se, ye, fe, ke;
13913
13898
  if (e.registerBinding(t, "touchend", se = function(T) {
13914
- var z = e.touchData.start;
13899
+ var O = e.touchData.start;
13915
13900
  if (e.touchData.capture) T.touches.length === 0 && (e.touchData.capture = !1), T.preventDefault();
13916
13901
  else return;
13917
13902
  var Y = e.selection;
@@ -13939,12 +13924,12 @@ jr.registerBinding = function(e, t, r, n) {
13939
13924
  }
13940
13925
  };
13941
13926
  };
13942
- z && z.unactivate();
13927
+ O && O.unactivate();
13943
13928
  var Ee;
13944
13929
  if (e.touchData.cxt) {
13945
- if (Ee = ne("cxttapend"), z ? z.emit(Ee) : G.emit(Ee), !e.touchData.cxtDragged) {
13930
+ if (Ee = ne("cxttapend"), O ? O.emit(Ee) : G.emit(Ee), !e.touchData.cxtDragged) {
13946
13931
  var Oe = ne("cxttap");
13947
- z ? z.emit(Oe) : G.emit(Oe);
13932
+ O ? O.emit(Oe) : G.emit(Oe);
13948
13933
  }
13949
13934
  e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxt = !1, e.touchData.start = null, e.redraw();
13950
13935
  return;
@@ -13956,13 +13941,13 @@ jr.registerBinding = function(e, t, r, n) {
13956
13941
  return Ue.selectable() && !Ue.selected();
13957
13942
  }).select().emit(ne("boxselect")), ie.nonempty() && e.redrawHint("eles", !0), e.redraw();
13958
13943
  }
13959
- if (z == null || z.unactivate(), T.touches[2]) e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13944
+ if (O?.unactivate(), T.touches[2]) e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13960
13945
  else if (!T.touches[1] && !T.touches[0] && !T.touches[0]) {
13961
13946
  e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13962
13947
  var ve = e.dragData.touchDragEles;
13963
- if (z != null) {
13964
- var Ce = z._private.grabbed;
13965
- v(ve), e.redrawHint("drag", !0), e.redrawHint("eles", !0), Ce && (z.emit(ne("freeon")), ve.emit(ne("free")), e.dragData.didDrag && (z.emit(ne("dragfreeon")), ve.emit(ne("dragfree")))), a(z, [
13948
+ if (O != null) {
13949
+ var Ce = O._private.grabbed;
13950
+ v(ve), e.redrawHint("drag", !0), e.redrawHint("eles", !0), Ce && (O.emit(ne("freeon")), ve.emit(ne("free")), e.dragData.didDrag && (O.emit(ne("dragfreeon")), ve.emit(ne("dragfree")))), a(O, [
13966
13951
  "touchend",
13967
13952
  "tapend",
13968
13953
  "vmouseup",
@@ -13970,7 +13955,7 @@ jr.registerBinding = function(e, t, r, n) {
13970
13955
  ], T, {
13971
13956
  x: Q[0],
13972
13957
  y: Q[1]
13973
- }), z.unactivate(), e.touchData.start = null;
13958
+ }), O.unactivate(), e.touchData.start = null;
13974
13959
  } else a(e.findNearestElement(Q[0], Q[1], !0, !0), [
13975
13960
  "touchend",
13976
13961
  "tapend",
@@ -13981,18 +13966,18 @@ jr.registerBinding = function(e, t, r, n) {
13981
13966
  y: Q[1]
13982
13967
  });
13983
13968
  var Me = e.touchData.startPosition[0] - Q[0], et = Me * Me, Ke = e.touchData.startPosition[1] - Q[1], at = (et + Ke * Ke) * U * U;
13984
- e.touchData.singleTouchMoved || (z || G.$(":selected").unselect(["tapunselect"]), a(z, ["tap", "vclick"], T, {
13969
+ e.touchData.singleTouchMoved || (O || G.$(":selected").unselect(["tapunselect"]), a(O, ["tap", "vclick"], T, {
13985
13970
  x: Q[0],
13986
13971
  y: Q[1]
13987
- }), ye = !1, T.timeStamp - ke <= G.multiClickDebounceTime() ? (fe && clearTimeout(fe), ye = !0, ke = null, a(z, ["dbltap", "vdblclick"], T, {
13972
+ }), ye = !1, T.timeStamp - ke <= G.multiClickDebounceTime() ? (fe && clearTimeout(fe), ye = !0, ke = null, a(O, ["dbltap", "vdblclick"], T, {
13988
13973
  x: Q[0],
13989
13974
  y: Q[1]
13990
13975
  })) : (fe = setTimeout(function() {
13991
- ye || a(z, ["onetap", "voneclick"], T, {
13976
+ ye || a(O, ["onetap", "voneclick"], T, {
13992
13977
  x: Q[0],
13993
13978
  y: Q[1]
13994
13979
  });
13995
- }, G.multiClickDebounceTime()), ke = T.timeStamp)), z != null && !e.dragData.didDrag && z._private.selectable && at < e.touchTapThreshold2 && !e.pinching && (G.selectionType() === "single" ? (G.$(r).unmerge(z).unselect(["tapunselect"]), z.select(["tapselect"])) : z.selected() ? z.unselect(["tapunselect"]) : z.select(["tapselect"]), e.redrawHint("eles", !0)), e.touchData.singleTouchMoved = !0;
13980
+ }, G.multiClickDebounceTime()), ke = T.timeStamp)), O != null && !e.dragData.didDrag && O._private.selectable && at < e.touchTapThreshold2 && !e.pinching && (G.selectionType() === "single" ? (G.$(r).unmerge(O).unselect(["tapunselect"]), O.select(["tapselect"])) : O.selected() ? O.unselect(["tapunselect"]) : O.select(["tapselect"]), e.redrawHint("eles", !0)), e.touchData.singleTouchMoved = !0;
13996
13981
  }
13997
13982
  for (var je = 0; je < Q.length; je++) re[je] = Q[je];
13998
13983
  e.dragData.didDrag = !1, T.touches.length === 0 && (e.touchData.dragDelta = [], e.touchData.startPosition = [
@@ -14026,18 +14011,18 @@ jr.registerBinding = function(e, t, r, n) {
14026
14011
  }, _e = function(T) {
14027
14012
  xe.push(Ie(T));
14028
14013
  }, De = function(T) {
14029
- for (var z = 0; z < xe.length; z++) if (xe[z].event.pointerId === T.pointerId) {
14030
- xe.splice(z, 1);
14014
+ for (var O = 0; O < xe.length; O++) if (xe[O].event.pointerId === T.pointerId) {
14015
+ xe.splice(O, 1);
14031
14016
  return;
14032
14017
  }
14033
14018
  }, ue = function(T) {
14034
- var z = xe.filter(function(Y) {
14019
+ var O = xe.filter(function(Y) {
14035
14020
  return Y.event.pointerId === T.pointerId;
14036
14021
  })[0];
14037
- z.event = T, z.touch = Te(T);
14022
+ O.event = T, O.touch = Te(T);
14038
14023
  }, me = function(T) {
14039
- T.touches = xe.map(function(z) {
14040
- return z.touch;
14024
+ T.touches = xe.map(function(O) {
14025
+ return O.touch;
14041
14026
  });
14042
14027
  }, pe = function(T) {
14043
14028
  return T.pointerType === "mouse" || T.pointerType === 4;
@@ -14416,7 +14401,7 @@ var wn = {};
14416
14401
  wn.timeToRender = function() {
14417
14402
  return this.redrawTotalTime / this.redrawCount;
14418
14403
  }, wn.redraw = function(e) {
14419
- e || (e = gc());
14404
+ e ||= gc();
14420
14405
  var t = this;
14421
14406
  t.averageRedrawTime === void 0 && (t.averageRedrawTime = 0), t.lastRedrawTime === void 0 && (t.lastRedrawTime = 0), t.lastDrawTime === void 0 && (t.lastDrawTime = 0), t.requestedFrame = !0, t.renderOptions = e;
14422
14407
  }, wn.beforeRender = function(e, t) {
@@ -14597,7 +14582,7 @@ var go = 1e3 / 60, md = { setupDequeueing: function(e) {
14597
14582
  r.beforeRender(a, i(t));
14598
14583
  }
14599
14584
  };
14600
- } }, Av = /* @__PURE__ */ function() {
14585
+ } }, Av = /* @__PURE__ */ (function() {
14601
14586
  function e(t) {
14602
14587
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Pa;
14603
14588
  dr(this, e), this.idsByKey = new Wt(), this.keyForId = new Wt(), this.cachesByLvl = new Wt(), this.lvls = [], this.getKey = t, this.doesEleInvalidateKey = r;
@@ -14741,7 +14726,7 @@ var go = 1e3 / 60, md = { setupDequeueing: function(e) {
14741
14726
  }
14742
14727
  }
14743
14728
  ]);
14744
- }(), _u = 25, ea = 50, ta = -4, vo = 3, bd = 7.99, Rv = 8, Iv = 1024, _v = 1024, Mv = 1024, Nv = 0.2, Lv = 0.8, zv = 10, Ov = 0.15, Vv = 0.1, Fv = 0.9, Xv = 0.9, Yv = 100, qv = 1, Lr = {
14729
+ })(), _u = 25, ea = 50, ta = -4, vo = 3, bd = 7.99, Rv = 8, Iv = 1024, _v = 1024, Mv = 1024, Nv = 0.2, Lv = 0.8, zv = 10, Ov = 0.15, Vv = 0.1, Fv = 0.9, Xv = 0.9, Yv = 100, qv = 1, Lr = {
14745
14730
  dequeue: "dequeue",
14746
14731
  downscale: "downscale",
14747
14732
  highQuality: "highQuality"
@@ -14778,7 +14763,7 @@ He.reasons = Lr, He.getTextureQueue = function(e) {
14778
14763
  }, He.getElement = function(e, t, r, n, a) {
14779
14764
  var i = this, o = this.renderer, u = o.cy.zoom(), s = this.lookup;
14780
14765
  if (!t || t.w === 0 || t.h === 0 || isNaN(t.w) || isNaN(t.h) || !e.visible() || e.removed() || !i.allowEdgeTxrCaching && e.isEdge() || !i.allowParentTxrCaching && e.isParent()) return null;
14781
- if (n ?? (n = Math.ceil(ns(u * r))), n < ta) n = ta;
14766
+ if (n ??= Math.ceil(ns(u * r)), n < ta) n = ta;
14782
14767
  else if (u >= bd || n > vo) return null;
14783
14768
  var l = 2 ** n, c = t.h * l, d = t.w * l, h = o.eleTextBiggerThanMin(e, l);
14784
14769
  if (!this.isVisible(e, h)) return null;
@@ -14789,7 +14774,7 @@ He.reasons = Lr, He.getTextureQueue = function(e) {
14789
14774
  var v = i.getTextureQueue(p), y = v[v.length - 2], g = function() {
14790
14775
  return i.recycleTexture(p, d) || i.addTexture(p, d);
14791
14776
  };
14792
- y || (y = v[v.length - 1]), y || (y = g()), y.width - y.usedWidth < d && (y = g());
14777
+ y ||= v[v.length - 1], y ||= g(), y.width - y.usedWidth < d && (y = g());
14793
14778
  for (var m = function(I) {
14794
14779
  return I && I.scaledLabelShown === h;
14795
14780
  }, b = a && a === Lr.dequeue, x = a && a === Lr.highQuality, B = a && a === Lr.downscale, k, w = n + 1; w <= vo; w++) {
@@ -14968,7 +14953,7 @@ it.makeLayer = function(e, t) {
14968
14953
  }
14969
14954
  return l;
14970
14955
  }, p = function(w) {
14971
- w || (w = {});
14956
+ w ||= {};
14972
14957
  var S = w.after;
14973
14958
  f();
14974
14959
  var E = Math.ceil(l.w * u), P = Math.ceil(l.h * u);
@@ -15158,14 +15143,14 @@ function sy(e, t, r, n) {
15158
15143
  e.arc(t, r, n, 0, Math.PI * 2, !1);
15159
15144
  }
15160
15145
  wd.arrowShapeImpl = function(e) {
15161
- return (ny || (ny = {
15146
+ return (ny ||= {
15162
15147
  polygon: ay,
15163
15148
  "triangle-backcurve": iy,
15164
15149
  "triangle-tee": zu,
15165
15150
  "circle-triangle": oy,
15166
15151
  "triangle-cross": zu,
15167
15152
  circle: sy
15168
- }))[e];
15153
+ })[e];
15169
15154
  };
15170
15155
  var Ot = {};
15171
15156
  Ot.drawElement = function(e, t, r, n, a, i) {
@@ -15503,17 +15488,17 @@ Cr.getTextAngle = function(e, t) {
15503
15488
  }
15504
15489
  var ee = 2 * t.pstyle("text-outline-width").pfValue;
15505
15490
  if (ee > 0 && (e.lineWidth = ee), t.pstyle("text-wrap").value === "wrap") {
15506
- var Z = bt(i, "labelWrapCachedLines", r), O = bt(i, "labelLineHeight", r), N = f / 2, X = this.getLabelJustification(t);
15491
+ var Z = bt(i, "labelWrapCachedLines", r), z = bt(i, "labelLineHeight", r), N = f / 2, X = this.getLabelJustification(t);
15507
15492
  switch (X === "auto" || (m === "left" ? X === "left" ? u += -f : X === "center" && (u += -N) : m === "center" ? X === "left" ? u += -N : X === "right" && (u += N) : m === "right" && (X === "center" ? u += N : X === "right" && (u += f))), b) {
15508
15493
  case "top":
15509
- s -= (Z.length - 1) * O;
15494
+ s -= (Z.length - 1) * z;
15510
15495
  break;
15511
15496
  case "center":
15512
15497
  case "bottom":
15513
- s -= (Z.length - 1) * O;
15498
+ s -= (Z.length - 1) * z;
15514
15499
  break;
15515
15500
  }
15516
- for (var J = 0; J < Z.length; J++) ee > 0 && e.strokeText(Z[J], u, s), e.fillText(Z[J], u, s), s += O;
15501
+ for (var J = 0; J < Z.length; J++) ee > 0 && e.strokeText(Z[J], u, s), e.fillText(Z[J], u, s), s += z;
15517
15502
  } else ee > 0 && e.strokeText(d, u, s), e.fillText(d, u, s);
15518
15503
  x !== 0 && (e.rotate(-x), e.translate(-l, -c));
15519
15504
  }
@@ -15544,12 +15529,12 @@ er.drawNode = function(e, t, r) {
15544
15529
  }, Z = function() {
15545
15530
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : V;
15546
15531
  o.colorStrokeStyle(e, A[0], A[1], A[2], ue);
15547
- }, O = function() {
15532
+ }, z = function() {
15548
15533
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : H;
15549
15534
  o.colorStrokeStyle(e, q[0], q[1], q[2], ue);
15550
15535
  }, N = function(ue, me, pe, T) {
15551
- var z = o.nodePathCache = o.nodePathCache || [], Y = dc(pe === "polygon" ? pe + "," + T.join(",") : pe, "" + me, "" + ue, "" + K), G = z[Y], U, Q = !1;
15552
- return G == null ? (U = new Path2D(), z[Y] = c.pathCache = U) : (U = G, Q = !0, c.pathCache = U), {
15536
+ var O = o.nodePathCache = o.nodePathCache || [], Y = dc(pe === "polygon" ? pe + "," + T.join(",") : pe, "" + me, "" + ue, "" + K), G = O[Y], U, Q = !1;
15537
+ return G == null ? (U = new Path2D(), O[Y] = c.pathCache = U) : (U = G, Q = !0, c.pathCache = U), {
15553
15538
  path: U,
15554
15539
  cacheHit: Q
15555
15540
  };
@@ -15569,13 +15554,13 @@ er.drawNode = function(e, t, r) {
15569
15554
  }
15570
15555
  f ? e.fill(p) : e.fill();
15571
15556
  }, be = function() {
15572
- for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : h, me = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, pe = l.backgrounding, T = 0, z = 0; z < x.length; z++) {
15573
- var Y = t.cy().style().getIndexedStyle(t, "background-image-containment", "value", z);
15557
+ for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : h, me = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, pe = l.backgrounding, T = 0, O = 0; O < x.length; O++) {
15558
+ var Y = t.cy().style().getIndexedStyle(t, "background-image-containment", "value", O);
15574
15559
  if (me && Y === "over" || !me && Y === "inside") {
15575
15560
  T++;
15576
15561
  continue;
15577
15562
  }
15578
- b[z] && x[z].complete && !x[z].error && (T++, o.drawInscribedImage(e, x[z], t, z, ue));
15563
+ b[O] && x[O].complete && !x[O].error && (T++, o.drawInscribedImage(e, x[O], t, O, ue));
15579
15564
  }
15580
15565
  l.backgrounding = T !== B, pe !== l.backgrounding && t.updateStyle(!1);
15581
15566
  }, Le = function() {
@@ -15637,7 +15622,7 @@ er.drawNode = function(e, t, r) {
15637
15622
  });
15638
15623
  var me = o.getNodeShape(t), pe = P;
15639
15624
  M === "inside" && (pe = 0), M === "outside" && (pe *= 2);
15640
- var T = (u + pe + (F + W)) / u, z = (s + pe + (F + W)) / s, Y = u * T, G = s * z, U = o.nodeShapes[me].points, Q;
15625
+ var T = (u + pe + (F + W)) / u, O = (s + pe + (F + W)) / s, Y = u * T, G = s * O, U = o.nodeShapes[me].points, Q;
15641
15626
  if (f && (Q = N(Y, G, me, U).path), me === "ellipse") o.drawEllipsePath(Q || e, ue.x, ue.y, Y, G);
15642
15627
  else if ([
15643
15628
  "round-diamond",
@@ -15650,14 +15635,14 @@ er.drawNode = function(e, t, r) {
15650
15635
  "round-tag"
15651
15636
  ].includes(me)) {
15652
15637
  var re = 0, de = 0, ne = 0;
15653
- me === "round-diamond" ? re = (pe + W + F) * 1.4 : me === "round-heptagon" ? (re = (pe + W + F) * 1.075, ne = -(pe / 2 + W + F) / 35) : me === "round-hexagon" ? re = (pe + W + F) * 1.12 : me === "round-pentagon" ? (re = (pe + W + F) * 1.13, ne = -(pe / 2 + W + F) / 15) : me === "round-tag" ? (re = (pe + W + F) * 1.12, de = (pe / 2 + F + W) * 0.07) : me === "round-triangle" && (re = (pe + W + F) * (Math.PI / 2), ne = -(pe + W / 2 + F) / Math.PI), re !== 0 && (T = (u + re) / u, Y = u * T, ["round-hexagon", "round-tag"].includes(me) || (z = (s + re) / s, G = s * z)), K = K === "auto" ? xc(Y, G) : K;
15638
+ me === "round-diamond" ? re = (pe + W + F) * 1.4 : me === "round-heptagon" ? (re = (pe + W + F) * 1.075, ne = -(pe / 2 + W + F) / 35) : me === "round-hexagon" ? re = (pe + W + F) * 1.12 : me === "round-pentagon" ? (re = (pe + W + F) * 1.13, ne = -(pe / 2 + W + F) / 15) : me === "round-tag" ? (re = (pe + W + F) * 1.12, de = (pe / 2 + F + W) * 0.07) : me === "round-triangle" && (re = (pe + W + F) * (Math.PI / 2), ne = -(pe + W / 2 + F) / Math.PI), re !== 0 && (T = (u + re) / u, Y = u * T, ["round-hexagon", "round-tag"].includes(me) || (O = (s + re) / s, G = s * O)), K = K === "auto" ? xc(Y, G) : K;
15654
15639
  for (var Ee = Y / 2, Oe = G / 2, ie = K + (pe + F + W) / 2, ve = Array(U.length / 2), Ce = Array(U.length / 2), Me = 0; Me < U.length / 2; Me++) ve[Me] = {
15655
15640
  x: ue.x + de + Ee * U[Me * 2],
15656
15641
  y: ue.y + ne + Oe * U[Me * 2 + 1]
15657
15642
  };
15658
15643
  var et, Ke, at, je, Ue = ve.length;
15659
15644
  for (Ke = ve[Ue - 1], et = 0; et < Ue; et++) at = ve[et % Ue], je = ve[(et + 1) % Ue], Ce[et] = cs(Ke, at, je, ie), Ke = at, at = je;
15660
- o.drawRoundPolygonPath(Q || e, ue.x + de, ue.y + ne, u * T, s * z, U, Ce);
15645
+ o.drawRoundPolygonPath(Q || e, ue.x + de, ue.y + ne, u * T, s * O, U, Ce);
15661
15646
  } else if (["roundrectangle", "round-rectangle"].includes(me)) K = K === "auto" ? ur(Y, G) : K, o.drawRoundRectanglePath(Q || e, ue.x, ue.y, Y, G, K + (pe + F + W) / 2);
15662
15647
  else if (["cutrectangle", "cut-rectangle"].includes(me)) K = K === "auto" ? is() : K, o.drawCutRectanglePath(Q || e, ue.x, ue.y, Y, G, null, K + (pe + F + W) / 4);
15663
15648
  else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(me)) K = K === "auto" ? ur(Y, G) : K, o.drawBottomRoundRectanglePath(Q || e, ue.x, ue.y, Y, G, K + (pe + F + W) / 2);
@@ -15691,9 +15676,9 @@ er.drawNode = function(e, t, r) {
15691
15676
  };
15692
15677
  if (t.pstyle("ghost").value === "yes") {
15693
15678
  var Te = t.pstyle("ghost-offset-x").pfValue, Ie = t.pstyle("ghost-offset-y").pfValue, _e = t.pstyle("ghost-opacity").value, De = _e * h;
15694
- e.translate(Te, Ie), O(), ye(), ee(_e * C), ge(), be(De, !0), Z(_e * V), se(), Le(E !== 0 || P !== 0), $(E !== 0 || P !== 0), be(De, !1), le(De), e.translate(-Te, -Ie);
15679
+ e.translate(Te, Ie), z(), ye(), ee(_e * C), ge(), be(De, !0), Z(_e * V), se(), Le(E !== 0 || P !== 0), $(E !== 0 || P !== 0), be(De, !1), le(De), e.translate(-Te, -Ie);
15695
15680
  }
15696
- f && e.translate(-d.x, -d.y), ke(), f && e.translate(d.x, d.y), O(), ye(), ee(), ge(), be(h, !0), Z(), se(), Le(E !== 0 || P !== 0), $(E !== 0 || P !== 0), be(h, !1), le(), f && e.translate(-d.x, -d.y), xe(), fe(), r && e.translate(g.x1, g.y1);
15681
+ f && e.translate(-d.x, -d.y), ke(), f && e.translate(d.x, d.y), z(), ye(), ee(), ge(), be(h, !0), Z(), se(), Le(E !== 0 || P !== 0), $(E !== 0 || P !== 0), be(h, !1), le(), f && e.translate(-d.x, -d.y), xe(), fe(), r && e.translate(g.x1, g.y1);
15697
15682
  }
15698
15683
  };
15699
15684
  var Fu = function(e) {
@@ -15703,7 +15688,7 @@ var Fu = function(e) {
15703
15688
  if (r.visible()) {
15704
15689
  var u = r.pstyle(`${e}-padding`).pfValue, s = r.pstyle(`${e}-opacity`).value, l = r.pstyle(`${e}-color`).value, c = r.pstyle(`${e}-shape`).value, d = r.pstyle(`${e}-corner-radius`).value;
15705
15690
  if (s > 0) {
15706
- if (n || (n = r.position()), a == null || i == null) {
15691
+ if (n ||= r.position(), a == null || i == null) {
15707
15692
  var h = r.padding();
15708
15693
  a = r.width() + 2 * h, i = r.height() + 2 * h;
15709
15694
  }
@@ -15717,7 +15702,7 @@ er.drawNodeOverlay = Fu("overlay"), er.drawNodeUnderlay = Fu("underlay"), er.has
15717
15702
  }, er.hasStripe = function(e) {
15718
15703
  return e = e[0], e._private.hasStripe;
15719
15704
  }, er.drawPie = function(e, t, r, n) {
15720
- t = t[0], n || (n = t.position());
15705
+ t = t[0], n ||= t.position();
15721
15706
  var a = t.cy().style(), i = t.pstyle("pie-size"), o = t.pstyle("pie-hole"), u = t.pstyle("pie-start-angle").pfValue, s = n.x, l = n.y, c = t.width(), d = t.height(), h = Math.min(c, d) / 2, f, p = 0;
15722
15707
  if (this.usePaths() && (s = 0, l = 0), i.units === "%" ? h *= i.pfValue : i.pfValue !== void 0 && (h = i.pfValue / 2), o.units === "%" ? f = h * o.pfValue : o.pfValue !== void 0 && (f = o.pfValue / 2), !(f >= h)) for (var v = 1; v <= a.pieBackgroundN; v++) {
15723
15708
  var y = t.pstyle("pie-" + v + "-background-size").value, g = t.pstyle("pie-" + v + "-background-color").value, m = t.pstyle("pie-" + v + "-background-opacity").value * r, b = y / 100;
@@ -15728,7 +15713,7 @@ er.drawNodeOverlay = Fu("overlay"), er.drawNodeUnderlay = Fu("underlay"), er.has
15728
15713
  y === 0 || p >= 1 || p + b > 1 || (f === 0 ? (e.beginPath(), e.moveTo(s, l), e.arc(s, l, h, x, k), e.closePath()) : (e.beginPath(), e.arc(s, l, h, x, k), e.arc(s, l, f, k, x, !0), e.closePath()), this.colorFillStyle(e, g[0], g[1], g[2], m), e.fill(), p += b);
15729
15714
  }
15730
15715
  }, er.drawStripe = function(e, t, r, n) {
15731
- t = t[0], n || (n = t.position());
15716
+ t = t[0], n ||= t.position();
15732
15717
  var a = t.cy().style(), i = n.x, o = n.y, u = t.width(), s = t.height(), l = 0, c = this.usePaths();
15733
15718
  e.save();
15734
15719
  var d = t.pstyle("stripe-direction").value, h = t.pstyle("stripe-size");
@@ -15867,11 +15852,11 @@ gt.getPixelRatio = function() {
15867
15852
  r(t.contexts[e.NODE]), r(t.contexts[e.DRAG]);
15868
15853
  }, gt.render = function(e) {
15869
15854
  var t = this;
15870
- e || (e = gc());
15855
+ e ||= gc();
15871
15856
  var r = t.cy, n = e.forcedContext, a = e.drawAllLayers, i = e.drawOnlyNodeLayer, o = e.forcedZoom, u = e.forcedPan, s = e.forcedPxRatio === void 0 ? this.getPixelRatio() : e.forcedPxRatio, l = t.data, c = l.canvasNeedsRedraw, d = t.textureOnViewport && !n && (t.pinching || t.hoverData.dragging || t.swipePanning || t.data.wheelZooming), h = e.motionBlur === void 0 ? t.motionBlur : e.motionBlur, f = t.motionBlurPxRatio, p = r.hasCompoundNodes(), v = t.hoverData.draggingEles, y = !!(t.hoverData.selecting || t.touchData.selecting);
15872
15857
  h = h && !n && t.motionBlurEnabled && !y;
15873
15858
  var g = h;
15874
- n || (t.prevPxRatio !== s && (t.invalidateContainerClientCoordsCache(), t.matchCanvasSize(t.container), t.redrawHint("eles", !0), t.redrawHint("drag", !0)), t.prevPxRatio = s), !n && t.motionBlurTimeout && clearTimeout(t.motionBlurTimeout), h && (t.mbFrames ?? (t.mbFrames = 0), t.mbFrames++, t.mbFrames < 3 && (g = !1), t.mbFrames > t.minMbLowQualFrames && (t.motionBlurPxRatio = t.mbPxRBlurry)), t.clearingMotionBlur && (t.motionBlurPxRatio = 1), t.textureDrawLastFrame && !d && (c[t.NODE] = !0, c[t.SELECT_BOX] = !0);
15859
+ n || (t.prevPxRatio !== s && (t.invalidateContainerClientCoordsCache(), t.matchCanvasSize(t.container), t.redrawHint("eles", !0), t.redrawHint("drag", !0)), t.prevPxRatio = s), !n && t.motionBlurTimeout && clearTimeout(t.motionBlurTimeout), h && (t.mbFrames ??= 0, t.mbFrames++, t.mbFrames < 3 && (g = !1), t.mbFrames > t.minMbLowQualFrames && (t.motionBlurPxRatio = t.mbPxRBlurry)), t.clearingMotionBlur && (t.motionBlurPxRatio = 1), t.textureDrawLastFrame && !d && (c[t.NODE] = !0, c[t.SELECT_BOX] = !0);
15875
15860
  var m = r.style(), b = r.zoom(), x = o === void 0 ? b : o, B = r.pan(), k = {
15876
15861
  x: B.x,
15877
15862
  y: B.y
@@ -15884,16 +15869,16 @@ gt.getPixelRatio = function() {
15884
15869
  }, S = t.prevViewport;
15885
15870
  !(S === void 0 || w.zoom !== S.zoom || w.pan.x !== S.pan.x || w.pan.y !== S.pan.y) && !(v && !p) && (t.motionBlurPxRatio = 1), u && (k = u), x *= s, k.x *= s, k.y *= s;
15886
15871
  var E = t.getCachedZSortedEles();
15887
- function P(Z, O, N, X, J) {
15872
+ function P(Z, z, N, X, J) {
15888
15873
  var oe = Z.globalCompositeOperation;
15889
- Z.globalCompositeOperation = "destination-out", t.colorFillStyle(Z, 255, 255, 255, t.motionBlurTransparency), Z.fillRect(O, N, X, J), Z.globalCompositeOperation = oe;
15874
+ Z.globalCompositeOperation = "destination-out", t.colorFillStyle(Z, 255, 255, 255, t.motionBlurTransparency), Z.fillRect(z, N, X, J), Z.globalCompositeOperation = oe;
15890
15875
  }
15891
- function C(Z, O) {
15876
+ function C(Z, z) {
15892
15877
  var N, X, J, oe;
15893
15878
  !t.clearingMotionBlur && (Z === l.bufferContexts[t.MOTIONBLUR_BUFFER_NODE] || Z === l.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]) ? (N = {
15894
15879
  x: B.x * f,
15895
15880
  y: B.y * f
15896
- }, X = b * f, J = t.canvasWidth * f, oe = t.canvasHeight * f) : (N = k, X = x, J = t.canvasWidth, oe = t.canvasHeight), Z.setTransform(1, 0, 0, 1, 0, 0), O === "motionBlur" ? P(Z, 0, 0, J, oe) : !n && (O === void 0 || O) && Z.clearRect(0, 0, J, oe), a || (Z.translate(N.x, N.y), Z.scale(X, X)), u && Z.translate(u.x, u.y), o && Z.scale(o, o);
15881
+ }, X = b * f, J = t.canvasWidth * f, oe = t.canvasHeight * f) : (N = k, X = x, J = t.canvasWidth, oe = t.canvasHeight), Z.setTransform(1, 0, 0, 1, 0, 0), z === "motionBlur" ? P(Z, 0, 0, J, oe) : !n && (z === void 0 || z) && Z.clearRect(0, 0, J, oe), a || (Z.translate(N.x, N.y), Z.scale(X, X)), u && Z.translate(u.x, u.y), o && Z.scale(o, o);
15897
15882
  }
15898
15883
  if (d || (t.textureDrawLastFrame = !1), d) {
15899
15884
  if (t.textureDrawLastFrame = !0, !t.textureCache) {
@@ -15933,10 +15918,10 @@ gt.getPixelRatio = function() {
15933
15918
  C(D, h && !q ? "motionBlur" : void 0), V ? t.drawCachedNodes(D, E.drag, s, _) : t.drawCachedElements(D, E.drag, s, _), t.debug && t.drawDebugPoints(D, E.drag), !a && !h && (c[t.DRAG] = !1);
15934
15919
  }
15935
15920
  if (this.drawSelectionRectangle(e, C), h && f !== 1) {
15936
- var j = l.contexts[t.NODE], H = t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE], W = l.contexts[t.DRAG], K = t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG], ee = function(Z, O, N) {
15921
+ var j = l.contexts[t.NODE], H = t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE], W = l.contexts[t.DRAG], K = t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG], ee = function(Z, z, N) {
15937
15922
  Z.setTransform(1, 0, 0, 1, 0, 0), N || !g ? Z.clearRect(0, 0, t.canvasWidth, t.canvasHeight) : P(Z, 0, 0, t.canvasWidth, t.canvasHeight);
15938
15923
  var X = f;
15939
- Z.drawImage(O, 0, 0, t.canvasWidth * X, t.canvasHeight * X, 0, 0, t.canvasWidth, t.canvasHeight);
15924
+ Z.drawImage(z, 0, 0, t.canvasWidth * X, t.canvasHeight * X, 0, 0, t.canvasWidth, t.canvasHeight);
15940
15925
  };
15941
15926
  (c[t.NODE] || F[t.NODE]) && (ee(j, H, F[t.NODE]), c[t.NODE] = !1), (c[t.DRAG] || F[t.DRAG]) && (ee(W, K, F[t.DRAG]), c[t.DRAG] = !1);
15942
15927
  }
@@ -15961,7 +15946,7 @@ gt.drawSelectionRectangle = function(e, t) {
15961
15946
  if (r.showFps && p) {
15962
15947
  p = Math.round(p);
15963
15948
  var v = Math.round(1e3 / p), y = "1 frame = " + p + " ms = " + v + " fps";
15964
- c.setTransform(1, 0, 0, 1, 0, 0), c.fillStyle = "rgba(255, 0, 0, 0.75)", c.strokeStyle = "rgba(255, 0, 0, 0.75)", c.font = "30px Arial", na || (na = c.measureText(y).actualBoundingBoxAscent), c.fillText(y, 0, na), c.strokeRect(0, na + 10, 250, 20), c.fillRect(0, na + 10, 250 * Math.min(v / 60, 1), 20);
15949
+ c.setTransform(1, 0, 0, 1, 0, 0), c.fillStyle = "rgba(255, 0, 0, 0.75)", c.strokeStyle = "rgba(255, 0, 0, 0.75)", c.font = "30px Arial", na ||= c.measureText(y).actualBoundingBoxAscent, c.fillText(y, 0, na), c.strokeRect(0, na + 10, 250, 20), c.fillRect(0, na + 10, 250 * Math.min(v / 60, 1), 20);
15965
15950
  }
15966
15951
  u || (s[r.SELECT_BOX] = !1);
15967
15952
  }
@@ -16169,7 +16154,7 @@ function Go(e, t, r) {
16169
16154
  function Sy(e, t, r) {
16170
16155
  return e[0] = 2 / t, e[1] = 0, e[2] = 0, e[3] = 0, e[4] = -2 / r, e[5] = 0, e[6] = -1, e[7] = 1, e[8] = 1, e;
16171
16156
  }
16172
- var Dy = /* @__PURE__ */ function() {
16157
+ var Dy = /* @__PURE__ */ (function() {
16173
16158
  function e(t, r, n, a) {
16174
16159
  dr(this, e), this.debugID = Math.floor(Math.random() * 1e4), this.r = t, this.texSize = r, this.texRows = n, this.texHeight = Math.floor(r / n), this.enableWrapping = !0, this.locked = !1, this.texture = null, this.needsBuffer = !0, this.freePointer = {
16175
16160
  x: 0,
@@ -16276,17 +16261,17 @@ var Dy = /* @__PURE__ */ function() {
16276
16261
  {
16277
16262
  key: "bufferIfNeeded",
16278
16263
  value: function(t) {
16279
- this.texture || (this.texture = Ey(t, this.debugID)), this.needsBuffer && (this.texture.buffer(this.canvas), this.needsBuffer = !1, this.locked && (this.canvas = null, this.scratch = null));
16264
+ this.texture ||= Ey(t, this.debugID), this.needsBuffer && (this.texture.buffer(this.canvas), this.needsBuffer = !1, this.locked && (this.canvas = null, this.scratch = null));
16280
16265
  }
16281
16266
  },
16282
16267
  {
16283
16268
  key: "dispose",
16284
16269
  value: function() {
16285
- this.texture && (this.texture = (this.texture.deleteTexture(), null)), this.canvas = null, this.scratch = null, this.locked = !0;
16270
+ this.texture &&= (this.texture.deleteTexture(), null), this.canvas = null, this.scratch = null, this.locked = !0;
16286
16271
  }
16287
16272
  }
16288
16273
  ]);
16289
- }(), Ay = /* @__PURE__ */ function() {
16274
+ })(), Ay = /* @__PURE__ */ (function() {
16290
16275
  function e(t, r, n, a) {
16291
16276
  dr(this, e), this.r = t, this.texSize = r, this.texRows = n, this.createTextureCanvas = a, this.atlases = [], this.styleKeyToAtlas = /* @__PURE__ */ new Map(), this.markedKeys = /* @__PURE__ */ new Set();
16292
16277
  }
@@ -16413,13 +16398,13 @@ var Dy = /* @__PURE__ */ function() {
16413
16398
  }
16414
16399
  }
16415
16400
  ]);
16416
- }();
16401
+ })();
16417
16402
  function Ry(e, t) {
16418
16403
  return e.intersection ? e.intersection(t) : new Set(ka(e).filter(function(r) {
16419
16404
  return t.has(r);
16420
16405
  }));
16421
16406
  }
16422
- var Iy = /* @__PURE__ */ function() {
16407
+ var Iy = /* @__PURE__ */ (function() {
16423
16408
  function e(t, r) {
16424
16409
  dr(this, e), this.r = t, this.globalOptions = r, this.atlasSize = r.webglTexSize, this.maxAtlasesPerBatch = r.webglTexPerBatch, this.renderTypes = /* @__PURE__ */ new Map(), this.collections = /* @__PURE__ */ new Map(), this.typeAndIdToKey = /* @__PURE__ */ new Map();
16425
16410
  }
@@ -16585,7 +16570,7 @@ var Iy = /* @__PURE__ */ function() {
16585
16570
  }
16586
16571
  }
16587
16572
  ]);
16588
- }(), _y = /* @__PURE__ */ function() {
16573
+ })(), _y = /* @__PURE__ */ (function() {
16589
16574
  function e(t) {
16590
16575
  dr(this, e), this.globalOptions = t, this.atlasSize = t.webglTexSize, this.maxAtlasesPerBatch = t.webglTexPerBatch, this.batchAtlases = [];
16591
16576
  }
@@ -16646,7 +16631,7 @@ var Iy = /* @__PURE__ */ function() {
16646
16631
  }
16647
16632
  }
16648
16633
  ]);
16649
- }(), My = `
16634
+ })(), My = `
16650
16635
  float circleSD(vec2 p, float r) {
16651
16636
  return distance(vec2(0), p) - r; // signed distance
16652
16637
  }
@@ -16694,7 +16679,7 @@ var Iy = /* @__PURE__ */ function() {
16694
16679
  }, Ia = {
16695
16680
  IGNORE: 1,
16696
16681
  USE_BB: 2
16697
- }, bo = 0, Wu = 1, Uu = 2, xo = 3, Or = 4, aa = 5, cn = 6, dn = 7, Oy = /* @__PURE__ */ function() {
16682
+ }, bo = 0, Wu = 1, Uu = 2, xo = 3, Or = 4, aa = 5, cn = 6, dn = 7, Oy = /* @__PURE__ */ (function() {
16698
16683
  function e(t, r, n) {
16699
16684
  dr(this, e), this.r = t, this.gl = r, this.maxInstances = n.webglBatchSize, this.atlasSize = n.webglTexSize, this.bgColor = n.bgColor, this.debug = n.webglDebug, this.batchDebugInfo = [], n.enableWrapping = !0, n.createTextureCanvas = vy, this.atlasManager = new Iy(t, n), this.batchManager = new _y(n), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(En.SCREEN), this.pickingProgram = this._createShaderProgram(En.PICKING), this.vao = this._createVAO();
16700
16685
  }
@@ -17052,11 +17037,11 @@ var Iy = /* @__PURE__ */ function() {
17052
17037
  key: "buffers",
17053
17038
  get: function() {
17054
17039
  var t = this;
17055
- return this._buffers || (this._buffers = Object.keys(this).filter(function(r) {
17040
+ return this._buffers ||= Object.keys(this).filter(function(r) {
17056
17041
  return nr(r, "Buffer");
17057
17042
  }).map(function(r) {
17058
17043
  return t[r];
17059
- })), this._buffers;
17044
+ }), this._buffers;
17060
17045
  }
17061
17046
  },
17062
17047
  {
@@ -17387,7 +17372,7 @@ var Iy = /* @__PURE__ */ function() {
17387
17372
  }
17388
17373
  }
17389
17374
  ]);
17390
- }(), Td = {};
17375
+ })(), Td = {};
17391
17376
  Td.initWebgl = function(e, t) {
17392
17377
  var r = this, n = r.data.contexts[r.WEBGL];
17393
17378
  e.bgColor = Vy(r), e.webglTexSize = Math.min(e.webglTexSize, n.getParameter(n.MAX_TEXTURE_SIZE)), e.webglTexRows = Math.min(e.webglTexRows, 54), e.webglTexRowsNodes = Math.min(e.webglTexRowsNodes, 54), e.webglBatchSize = Math.min(e.webglBatchSize, 16384), e.webglTexPerBatch = Math.min(e.webglTexPerBatch, n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)), r.webglDebug = e.webglDebug, r.webglDebugShowAtlases = e.webglDebugShowAtlases, r.pickingFrameBuffer = Py(n), r.pickingFrameBuffer.needsDraw = !0, r.drawing = new Oy(r, n, e);
@@ -17529,7 +17514,7 @@ var wo = function(e, t) {
17529
17514
  function Fy(e) {
17530
17515
  var t = e.render;
17531
17516
  e.render = function(i) {
17532
- i || (i = {});
17517
+ i ||= {};
17533
17518
  var o = e.cy;
17534
17519
  e.webgl && (o.zoom() > bd ? (Xy(e), t.call(e, i)) : (Yy(e), Bd(e, i, En.SCREEN)));
17535
17520
  };
@@ -17813,82 +17798,82 @@ function Ad(e) {
17813
17798
  sh() && (u["-ms-touch-action"] = "none", u["touch-action"] = "none");
17814
17799
  for (var s = 0; s < we.CANVAS_LAYERS; s++) {
17815
17800
  var l = t.data.canvases[s] = r.createElement("canvas"), c = we.CANVAS_TYPES[s];
17816
- t.data.contexts[s] = l.getContext(c), t.data.contexts[s] || Ye("Could not create canvas of type " + c), Object.keys(u).forEach(function(O) {
17817
- l.style[O] = u[O];
17801
+ t.data.contexts[s] = l.getContext(c), t.data.contexts[s] || Ye("Could not create canvas of type " + c), Object.keys(u).forEach(function(z) {
17802
+ l.style[z] = u[z];
17818
17803
  }), l.style.position = "absolute", l.setAttribute("data-id", "layer" + s), l.style.zIndex = String(we.CANVAS_LAYERS - s), t.data.canvasContainer.appendChild(l), t.data.canvasNeedsRedraw[s] = !1;
17819
17804
  }
17820
17805
  t.data.topCanvas = t.data.canvases[0], t.data.canvases[we.NODE].setAttribute("data-id", "layer" + we.NODE + "-node"), t.data.canvases[we.SELECT_BOX].setAttribute("data-id", "layer" + we.SELECT_BOX + "-selectbox"), t.data.canvases[we.DRAG].setAttribute("data-id", "layer" + we.DRAG + "-drag"), t.data.canvases[we.WEBGL] && t.data.canvases[we.WEBGL].setAttribute("data-id", "layer" + we.WEBGL + "-webgl");
17821
17806
  for (var s = 0; s < we.BUFFER_COUNT; s++) t.data.bufferCanvases[s] = r.createElement("canvas"), t.data.bufferContexts[s] = t.data.bufferCanvases[s].getContext("2d"), t.data.bufferCanvases[s].style.position = "absolute", t.data.bufferCanvases[s].setAttribute("data-id", "buffer" + s), t.data.bufferCanvases[s].style.zIndex = String(-s - 1), t.data.bufferCanvases[s].style.visibility = "hidden";
17822
17807
  t.pathsEnabled = !0;
17823
- var d = vt(), h = function(O) {
17808
+ var d = vt(), h = function(z) {
17824
17809
  return {
17825
- x: (O.x1 + O.x2) / 2,
17826
- y: (O.y1 + O.y2) / 2
17810
+ x: (z.x1 + z.x2) / 2,
17811
+ y: (z.y1 + z.y2) / 2
17827
17812
  };
17828
- }, f = function(O) {
17813
+ }, f = function(z) {
17829
17814
  return {
17830
- x: -O.w / 2,
17831
- y: -O.h / 2
17815
+ x: -z.w / 2,
17816
+ y: -z.h / 2
17832
17817
  };
17833
- }, p = function(O) {
17834
- var N = O[0]._private;
17818
+ }, p = function(z) {
17819
+ var N = z[0]._private;
17835
17820
  return N.oldBackgroundTimestamp !== N.backgroundTimestamp;
17836
- }, v = function(O) {
17837
- return O[0]._private.nodeKey;
17838
- }, y = function(O) {
17839
- return O[0]._private.labelStyleKey;
17840
- }, g = function(O) {
17841
- return O[0]._private.sourceLabelStyleKey;
17842
- }, m = function(O) {
17843
- return O[0]._private.targetLabelStyleKey;
17844
- }, b = function(O, N, X, J, oe) {
17845
- return t.drawElement(O, N, X, !1, !1, oe);
17846
- }, x = function(O, N, X, J, oe) {
17847
- return t.drawElementText(O, N, X, J, "main", oe);
17848
- }, B = function(O, N, X, J, oe) {
17849
- return t.drawElementText(O, N, X, J, "source", oe);
17850
- }, k = function(O, N, X, J, oe) {
17851
- return t.drawElementText(O, N, X, J, "target", oe);
17852
- }, w = function(O) {
17853
- return O.boundingBox(), O[0]._private.bodyBounds;
17854
- }, S = function(O) {
17855
- return O.boundingBox(), O[0]._private.labelBounds.main || d;
17856
- }, E = function(O) {
17857
- return O.boundingBox(), O[0]._private.labelBounds.source || d;
17858
- }, P = function(O) {
17859
- return O.boundingBox(), O[0]._private.labelBounds.target || d;
17860
- }, C = function(O, N) {
17821
+ }, v = function(z) {
17822
+ return z[0]._private.nodeKey;
17823
+ }, y = function(z) {
17824
+ return z[0]._private.labelStyleKey;
17825
+ }, g = function(z) {
17826
+ return z[0]._private.sourceLabelStyleKey;
17827
+ }, m = function(z) {
17828
+ return z[0]._private.targetLabelStyleKey;
17829
+ }, b = function(z, N, X, J, oe) {
17830
+ return t.drawElement(z, N, X, !1, !1, oe);
17831
+ }, x = function(z, N, X, J, oe) {
17832
+ return t.drawElementText(z, N, X, J, "main", oe);
17833
+ }, B = function(z, N, X, J, oe) {
17834
+ return t.drawElementText(z, N, X, J, "source", oe);
17835
+ }, k = function(z, N, X, J, oe) {
17836
+ return t.drawElementText(z, N, X, J, "target", oe);
17837
+ }, w = function(z) {
17838
+ return z.boundingBox(), z[0]._private.bodyBounds;
17839
+ }, S = function(z) {
17840
+ return z.boundingBox(), z[0]._private.labelBounds.main || d;
17841
+ }, E = function(z) {
17842
+ return z.boundingBox(), z[0]._private.labelBounds.source || d;
17843
+ }, P = function(z) {
17844
+ return z.boundingBox(), z[0]._private.labelBounds.target || d;
17845
+ }, C = function(z, N) {
17861
17846
  return N;
17862
- }, A = function(O) {
17863
- return h(w(O));
17864
- }, D = function(O, N, X) {
17865
- var J = O ? O + "-" : "";
17847
+ }, A = function(z) {
17848
+ return h(w(z));
17849
+ }, D = function(z, N, X) {
17850
+ var J = z ? z + "-" : "";
17866
17851
  return {
17867
17852
  x: N.x + X.pstyle(J + "text-margin-x").pfValue,
17868
17853
  y: N.y + X.pstyle(J + "text-margin-y").pfValue
17869
17854
  };
17870
- }, R = function(O, N, X) {
17871
- var J = O[0]._private.rscratch;
17855
+ }, R = function(z, N, X) {
17856
+ var J = z[0]._private.rscratch;
17872
17857
  return {
17873
17858
  x: J[N],
17874
17859
  y: J[X]
17875
17860
  };
17876
- }, I = function(O) {
17877
- return D("", R(O, "labelX", "labelY"), O);
17878
- }, M = function(O) {
17879
- return D("source", R(O, "sourceLabelX", "sourceLabelY"), O);
17880
- }, _ = function(O) {
17881
- return D("target", R(O, "targetLabelX", "targetLabelY"), O);
17882
- }, L = function(O) {
17883
- return f(w(O));
17884
- }, V = function(O) {
17885
- return f(E(O));
17886
- }, F = function(O) {
17887
- return f(P(O));
17888
- }, q = function(O) {
17889
- var N = S(O), X = f(S(O));
17890
- if (O.isNode()) {
17891
- switch (O.pstyle("text-halign").value) {
17861
+ }, I = function(z) {
17862
+ return D("", R(z, "labelX", "labelY"), z);
17863
+ }, M = function(z) {
17864
+ return D("source", R(z, "sourceLabelX", "sourceLabelY"), z);
17865
+ }, _ = function(z) {
17866
+ return D("target", R(z, "targetLabelX", "targetLabelY"), z);
17867
+ }, L = function(z) {
17868
+ return f(w(z));
17869
+ }, V = function(z) {
17870
+ return f(E(z));
17871
+ }, F = function(z) {
17872
+ return f(P(z));
17873
+ }, q = function(z) {
17874
+ var N = S(z), X = f(S(z));
17875
+ if (z.isNode()) {
17876
+ switch (z.pstyle("text-halign").value) {
17892
17877
  case "left":
17893
17878
  X.x = -N.w - (N.leftPad || 0);
17894
17879
  break;
@@ -17896,7 +17881,7 @@ function Ad(e) {
17896
17881
  X.x = -(N.rightPad || 0);
17897
17882
  break;
17898
17883
  }
17899
- switch (O.pstyle("text-valign").value) {
17884
+ switch (z.pstyle("text-valign").value) {
17900
17885
  case "top":
17901
17886
  X.y = -N.h - (N.topPad || 0);
17902
17887
  break;
@@ -17937,15 +17922,15 @@ function Ad(e) {
17937
17922
  getRotationOffset: F,
17938
17923
  isVisible: C
17939
17924
  }), ee = t.data.lyrTxrCache = new xd(t);
17940
- t.onUpdateEleCalcs(function(O, N) {
17925
+ t.onUpdateEleCalcs(function(z, N) {
17941
17926
  j.invalidateElements(N), H.invalidateElements(N), W.invalidateElements(N), K.invalidateElements(N), ee.invalidateElements(N);
17942
17927
  for (var X = 0; X < N.length; X++) {
17943
17928
  var J = N[X]._private;
17944
17929
  J.oldBackgroundTimestamp = J.backgroundTimestamp;
17945
17930
  }
17946
17931
  });
17947
- var Z = function(O) {
17948
- for (var N = 0; N < O.length; N++) ee.enqueueElementRefinement(O[N].ele);
17932
+ var Z = function(z) {
17933
+ for (var N = 0; N < z.length; N++) ee.enqueueElementRefinement(z[N].ele);
17949
17934
  };
17950
17935
  j.onDequeue(Z), H.onDequeue(Z), W.onDequeue(Z), K.onDequeue(Z), e.webgl && t.initWebgl(e, {
17951
17936
  getStyleKey: v,
@@ -18067,9 +18052,9 @@ function _d(e, t, r) {
18067
18052
  if (w) for (var S = 0; S < w.length; S++) w[S].stop();
18068
18053
  }
18069
18054
  return c ? c.call(this) : this.emit("layoutstop"), this;
18070
- }, o.destroy || (o.destroy = function() {
18055
+ }, o.destroy ||= function() {
18071
18056
  return this;
18072
- }), o.cy = function() {
18057
+ }, o.cy = function() {
18073
18058
  return this._private.cy;
18074
18059
  };
18075
18060
  var d = function(k) {