@kong-ui-public/documentation 1.5.78 → 1.7.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 +7 -7
  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
@@ -1,11 +1,11 @@
1
- import { p as y, Q as ea, Z as Q, q as Xt, g as rt, A as aa, B as ra, a as A, U as ke, G as sa, f as ia, W as oa, K as na, i as la, j as ca, z as da, H as ha, c as vt, N as X, ak as Z, al as Pt, h as pa, a1 as ve, o as Yt, am as Ta, an as Be } from "./index-Dpyqhws4.js";
2
- import { o as Ea, d as ee, u as ht, a as ga, l as ae, c as re } from "./chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js";
3
- import { t as ua } from "./chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js";
4
- var Ye = pa(), Zt = function() {
1
+ import { p as y, Q as ea, Z, q as Xt, g as at, A as aa, B as ra, a as w, U as ke, G as sa, f as ia, W as oa, K as na, i as la, j as ca, z as da, H as ha, c as vt, N as G, ak as X, al as Pt, h as pa, a1 as ve, o as Yt, am as Ta, an as Be } from "./index-DfVKdDwj.js";
2
+ import { o as Ea, d as ee, u as ht, a as ga, l as ae, c as re } from "./chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js";
3
+ import { t as ua } from "./chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js";
4
+ var Ye = pa(), Zt = (function() {
5
5
  var e = /* @__PURE__ */ y(function(N, M, C, b) {
6
- for (C || (C = {}), b = N.length; b--; C[N[b]] = M) ;
6
+ for (C ||= {}, b = N.length; b--; C[N[b]] = M) ;
7
7
  return C;
8
- }, "o"), t = [1, 2], r = [1, 3], a = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], l = [1, 12], g = [1, 14], h = [1, 15], n = [1, 17], x = [1, 18], u = [1, 19], I = [1, 25], T = [1, 26], E = [1, 27], O = [1, 28], _ = [1, 29], f = [1, 30], L = [1, 31], S = [1, 32], w = [1, 33], P = [1, 34], Y = [1, 35], B = [1, 36], U = [1, 37], K = [1, 38], q = [1, 39], j = [1, 40], J = [1, 42], H = [1, 43], st = [1, 44], tt = [1, 45], it = [1, 46], $ = [1, 47], k = [
8
+ }, "o"), t = [1, 2], r = [1, 3], a = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], g = [1, 14], h = [1, 15], n = [1, 17], x = [1, 18], u = [1, 19], I = [1, 25], T = [1, 26], E = [1, 27], O = [1, 28], _ = [1, 29], f = [1, 30], L = [1, 31], S = [1, 32], A = [1, 33], P = [1, 34], q = [1, 35], $ = [1, 36], V = [1, 37], z = [1, 38], U = [1, 39], J = [1, 40], Q = [1, 42], K = [1, 43], rt = [1, 44], tt = [1, 45], st = [1, 46], B = [1, 47], k = [
9
9
  1,
10
10
  4,
11
11
  5,
@@ -41,7 +41,7 @@ var Ye = pa(), Zt = function() {
41
41
  63,
42
42
  64,
43
43
  73
44
- ], wt = [1, 74], R = [1, 80], D = [1, 81], et = [1, 82], at = [1, 83], V = [1, 84], se = [1, 85], ie = [1, 86], oe = [1, 87], ne = [1, 88], le = [1, 89], ce = [1, 90], de = [1, 91], he = [1, 92], pe = [1, 93], Te = [1, 94], Ee = [1, 95], ge = [1, 96], ue = [1, 97], ye = [1, 98], Oe = [1, 99], _e = [1, 100], be = [1, 101], xe = [1, 102], me = [1, 103], Ie = [1, 104], fe = [1, 105], Re = [2, 78], Lt = [
44
+ ], wt = [1, 74], R = [1, 80], D = [1, 81], ct = [1, 82], et = [1, 83], Y = [1, 84], se = [1, 85], ie = [1, 86], oe = [1, 87], ne = [1, 88], le = [1, 89], ce = [1, 90], de = [1, 91], he = [1, 92], pe = [1, 93], Te = [1, 94], Ee = [1, 95], ge = [1, 96], ue = [1, 97], ye = [1, 98], Oe = [1, 99], _e = [1, 100], be = [1, 101], xe = [1, 102], me = [1, 103], Ie = [1, 104], fe = [1, 105], Re = [2, 78], Lt = [
45
45
  4,
46
46
  5,
47
47
  17,
@@ -184,7 +184,7 @@ var Ye = pa(), Zt = function() {
184
184
  71,
185
185
  72,
186
186
  73
187
- ], nt = [1, 151], Ht = {
187
+ ], ot = [1, 151], Ht = {
188
188
  trace: /* @__PURE__ */ y(function() {
189
189
  }, "trace"),
190
190
  yy: {},
@@ -484,24 +484,24 @@ var Ye = pa(), Zt = function() {
484
484
  [69, 1],
485
485
  [58, 1]
486
486
  ],
487
- performAction: /* @__PURE__ */ y(function(N, M, C, b, z, c, Nt) {
488
- var p = c.length - 1;
489
- switch (z) {
487
+ performAction: /* @__PURE__ */ y(function(N, M, C, b, H, l, Nt) {
488
+ var p = l.length - 1;
489
+ switch (H) {
490
490
  case 3:
491
- return b.apply(c[p]), c[p];
491
+ return b.apply(l[p]), l[p];
492
492
  case 4:
493
493
  case 10:
494
494
  this.$ = [];
495
495
  break;
496
496
  case 5:
497
497
  case 11:
498
- c[p - 1].push(c[p]), this.$ = c[p - 1];
498
+ l[p - 1].push(l[p]), this.$ = l[p - 1];
499
499
  break;
500
500
  case 6:
501
501
  case 7:
502
502
  case 12:
503
503
  case 13:
504
- this.$ = c[p];
504
+ this.$ = l[p];
505
505
  break;
506
506
  case 8:
507
507
  case 9:
@@ -509,22 +509,22 @@ var Ye = pa(), Zt = function() {
509
509
  this.$ = [];
510
510
  break;
511
511
  case 16:
512
- c[p].type = "createParticipant", this.$ = c[p];
512
+ l[p].type = "createParticipant", this.$ = l[p];
513
513
  break;
514
514
  case 17:
515
- c[p - 1].unshift({
515
+ l[p - 1].unshift({
516
516
  type: "boxStart",
517
- boxData: b.parseBoxData(c[p - 2])
518
- }), c[p - 1].push({
517
+ boxData: b.parseBoxData(l[p - 2])
518
+ }), l[p - 1].push({
519
519
  type: "boxEnd",
520
- boxText: c[p - 2]
521
- }), this.$ = c[p - 1];
520
+ boxText: l[p - 2]
521
+ }), this.$ = l[p - 1];
522
522
  break;
523
523
  case 19:
524
524
  this.$ = {
525
525
  type: "sequenceIndex",
526
- sequenceIndex: Number(c[p - 2]),
527
- sequenceIndexStep: Number(c[p - 1]),
526
+ sequenceIndex: Number(l[p - 2]),
527
+ sequenceIndexStep: Number(l[p - 1]),
528
528
  sequenceVisible: !0,
529
529
  signalType: b.LINETYPE.AUTONUMBER
530
530
  };
@@ -532,7 +532,7 @@ var Ye = pa(), Zt = function() {
532
532
  case 20:
533
533
  this.$ = {
534
534
  type: "sequenceIndex",
535
- sequenceIndex: Number(c[p - 1]),
535
+ sequenceIndex: Number(l[p - 1]),
536
536
  sequenceIndexStep: 1,
537
537
  sequenceVisible: !0,
538
538
  signalType: b.LINETYPE.AUTONUMBER
@@ -556,208 +556,208 @@ var Ye = pa(), Zt = function() {
556
556
  this.$ = {
557
557
  type: "activeStart",
558
558
  signalType: b.LINETYPE.ACTIVE_START,
559
- actor: c[p - 1].actor
559
+ actor: l[p - 1].actor
560
560
  };
561
561
  break;
562
562
  case 24:
563
563
  this.$ = {
564
564
  type: "activeEnd",
565
565
  signalType: b.LINETYPE.ACTIVE_END,
566
- actor: c[p - 1].actor
566
+ actor: l[p - 1].actor
567
567
  };
568
568
  break;
569
569
  case 30:
570
- b.setDiagramTitle(c[p].substring(6)), this.$ = c[p].substring(6);
570
+ b.setDiagramTitle(l[p].substring(6)), this.$ = l[p].substring(6);
571
571
  break;
572
572
  case 31:
573
- b.setDiagramTitle(c[p].substring(7)), this.$ = c[p].substring(7);
573
+ b.setDiagramTitle(l[p].substring(7)), this.$ = l[p].substring(7);
574
574
  break;
575
575
  case 32:
576
- this.$ = c[p].trim(), b.setAccTitle(this.$);
576
+ this.$ = l[p].trim(), b.setAccTitle(this.$);
577
577
  break;
578
578
  case 33:
579
579
  case 34:
580
- this.$ = c[p].trim(), b.setAccDescription(this.$);
580
+ this.$ = l[p].trim(), b.setAccDescription(this.$);
581
581
  break;
582
582
  case 35:
583
- c[p - 1].unshift({
583
+ l[p - 1].unshift({
584
584
  type: "loopStart",
585
- loopText: b.parseMessage(c[p - 2]),
585
+ loopText: b.parseMessage(l[p - 2]),
586
586
  signalType: b.LINETYPE.LOOP_START
587
- }), c[p - 1].push({
587
+ }), l[p - 1].push({
588
588
  type: "loopEnd",
589
- loopText: c[p - 2],
589
+ loopText: l[p - 2],
590
590
  signalType: b.LINETYPE.LOOP_END
591
- }), this.$ = c[p - 1];
591
+ }), this.$ = l[p - 1];
592
592
  break;
593
593
  case 36:
594
- c[p - 1].unshift({
594
+ l[p - 1].unshift({
595
595
  type: "rectStart",
596
- color: b.parseMessage(c[p - 2]),
596
+ color: b.parseMessage(l[p - 2]),
597
597
  signalType: b.LINETYPE.RECT_START
598
- }), c[p - 1].push({
598
+ }), l[p - 1].push({
599
599
  type: "rectEnd",
600
- color: b.parseMessage(c[p - 2]),
600
+ color: b.parseMessage(l[p - 2]),
601
601
  signalType: b.LINETYPE.RECT_END
602
- }), this.$ = c[p - 1];
602
+ }), this.$ = l[p - 1];
603
603
  break;
604
604
  case 37:
605
- c[p - 1].unshift({
605
+ l[p - 1].unshift({
606
606
  type: "optStart",
607
- optText: b.parseMessage(c[p - 2]),
607
+ optText: b.parseMessage(l[p - 2]),
608
608
  signalType: b.LINETYPE.OPT_START
609
- }), c[p - 1].push({
609
+ }), l[p - 1].push({
610
610
  type: "optEnd",
611
- optText: b.parseMessage(c[p - 2]),
611
+ optText: b.parseMessage(l[p - 2]),
612
612
  signalType: b.LINETYPE.OPT_END
613
- }), this.$ = c[p - 1];
613
+ }), this.$ = l[p - 1];
614
614
  break;
615
615
  case 38:
616
- c[p - 1].unshift({
616
+ l[p - 1].unshift({
617
617
  type: "altStart",
618
- altText: b.parseMessage(c[p - 2]),
618
+ altText: b.parseMessage(l[p - 2]),
619
619
  signalType: b.LINETYPE.ALT_START
620
- }), c[p - 1].push({
620
+ }), l[p - 1].push({
621
621
  type: "altEnd",
622
622
  signalType: b.LINETYPE.ALT_END
623
- }), this.$ = c[p - 1];
623
+ }), this.$ = l[p - 1];
624
624
  break;
625
625
  case 39:
626
- c[p - 1].unshift({
626
+ l[p - 1].unshift({
627
627
  type: "parStart",
628
- parText: b.parseMessage(c[p - 2]),
628
+ parText: b.parseMessage(l[p - 2]),
629
629
  signalType: b.LINETYPE.PAR_START
630
- }), c[p - 1].push({
630
+ }), l[p - 1].push({
631
631
  type: "parEnd",
632
632
  signalType: b.LINETYPE.PAR_END
633
- }), this.$ = c[p - 1];
633
+ }), this.$ = l[p - 1];
634
634
  break;
635
635
  case 40:
636
- c[p - 1].unshift({
636
+ l[p - 1].unshift({
637
637
  type: "parStart",
638
- parText: b.parseMessage(c[p - 2]),
638
+ parText: b.parseMessage(l[p - 2]),
639
639
  signalType: b.LINETYPE.PAR_OVER_START
640
- }), c[p - 1].push({
640
+ }), l[p - 1].push({
641
641
  type: "parEnd",
642
642
  signalType: b.LINETYPE.PAR_END
643
- }), this.$ = c[p - 1];
643
+ }), this.$ = l[p - 1];
644
644
  break;
645
645
  case 41:
646
- c[p - 1].unshift({
646
+ l[p - 1].unshift({
647
647
  type: "criticalStart",
648
- criticalText: b.parseMessage(c[p - 2]),
648
+ criticalText: b.parseMessage(l[p - 2]),
649
649
  signalType: b.LINETYPE.CRITICAL_START
650
- }), c[p - 1].push({
650
+ }), l[p - 1].push({
651
651
  type: "criticalEnd",
652
652
  signalType: b.LINETYPE.CRITICAL_END
653
- }), this.$ = c[p - 1];
653
+ }), this.$ = l[p - 1];
654
654
  break;
655
655
  case 42:
656
- c[p - 1].unshift({
656
+ l[p - 1].unshift({
657
657
  type: "breakStart",
658
- breakText: b.parseMessage(c[p - 2]),
658
+ breakText: b.parseMessage(l[p - 2]),
659
659
  signalType: b.LINETYPE.BREAK_START
660
- }), c[p - 1].push({
660
+ }), l[p - 1].push({
661
661
  type: "breakEnd",
662
- optText: b.parseMessage(c[p - 2]),
662
+ optText: b.parseMessage(l[p - 2]),
663
663
  signalType: b.LINETYPE.BREAK_END
664
- }), this.$ = c[p - 1];
664
+ }), this.$ = l[p - 1];
665
665
  break;
666
666
  case 44:
667
- this.$ = c[p - 3].concat([{
667
+ this.$ = l[p - 3].concat([{
668
668
  type: "option",
669
- optionText: b.parseMessage(c[p - 1]),
669
+ optionText: b.parseMessage(l[p - 1]),
670
670
  signalType: b.LINETYPE.CRITICAL_OPTION
671
- }, c[p]]);
671
+ }, l[p]]);
672
672
  break;
673
673
  case 46:
674
- this.$ = c[p - 3].concat([{
674
+ this.$ = l[p - 3].concat([{
675
675
  type: "and",
676
- parText: b.parseMessage(c[p - 1]),
676
+ parText: b.parseMessage(l[p - 1]),
677
677
  signalType: b.LINETYPE.PAR_AND
678
- }, c[p]]);
678
+ }, l[p]]);
679
679
  break;
680
680
  case 48:
681
- this.$ = c[p - 3].concat([{
681
+ this.$ = l[p - 3].concat([{
682
682
  type: "else",
683
- altText: b.parseMessage(c[p - 1]),
683
+ altText: b.parseMessage(l[p - 1]),
684
684
  signalType: b.LINETYPE.ALT_ELSE
685
- }, c[p]]);
685
+ }, l[p]]);
686
686
  break;
687
687
  case 49:
688
- c[p - 3].draw = "participant", c[p - 3].type = "addParticipant", c[p - 3].description = b.parseMessage(c[p - 1]), this.$ = c[p - 3];
688
+ l[p - 3].draw = "participant", l[p - 3].type = "addParticipant", l[p - 3].description = b.parseMessage(l[p - 1]), this.$ = l[p - 3];
689
689
  break;
690
690
  case 50:
691
- c[p - 1].draw = "participant", c[p - 1].type = "addParticipant", this.$ = c[p - 1];
691
+ l[p - 1].draw = "participant", l[p - 1].type = "addParticipant", this.$ = l[p - 1];
692
692
  break;
693
693
  case 51:
694
- c[p - 3].draw = "actor", c[p - 3].type = "addParticipant", c[p - 3].description = b.parseMessage(c[p - 1]), this.$ = c[p - 3];
694
+ l[p - 3].draw = "actor", l[p - 3].type = "addParticipant", l[p - 3].description = b.parseMessage(l[p - 1]), this.$ = l[p - 3];
695
695
  break;
696
696
  case 52:
697
697
  case 57:
698
- c[p - 1].draw = "actor", c[p - 1].type = "addParticipant", this.$ = c[p - 1];
698
+ l[p - 1].draw = "actor", l[p - 1].type = "addParticipant", this.$ = l[p - 1];
699
699
  break;
700
700
  case 53:
701
- c[p - 1].type = "destroyParticipant", this.$ = c[p - 1];
701
+ l[p - 1].type = "destroyParticipant", this.$ = l[p - 1];
702
702
  break;
703
703
  case 54:
704
- c[p - 3].draw = "participant", c[p - 3].type = "addParticipant", c[p - 3].description = b.parseMessage(c[p - 1]), this.$ = c[p - 3];
704
+ l[p - 3].draw = "participant", l[p - 3].type = "addParticipant", l[p - 3].description = b.parseMessage(l[p - 1]), this.$ = l[p - 3];
705
705
  break;
706
706
  case 55:
707
- c[p - 1].draw = "participant", c[p - 1].type = "addParticipant", this.$ = c[p - 1];
707
+ l[p - 1].draw = "participant", l[p - 1].type = "addParticipant", this.$ = l[p - 1];
708
708
  break;
709
709
  case 56:
710
- c[p - 3].draw = "actor", c[p - 3].type = "addParticipant", c[p - 3].description = b.parseMessage(c[p - 1]), this.$ = c[p - 3];
710
+ l[p - 3].draw = "actor", l[p - 3].type = "addParticipant", l[p - 3].description = b.parseMessage(l[p - 1]), this.$ = l[p - 3];
711
711
  break;
712
712
  case 58:
713
- this.$ = [c[p - 1], {
713
+ this.$ = [l[p - 1], {
714
714
  type: "addNote",
715
- placement: c[p - 2],
716
- actor: c[p - 1].actor,
717
- text: c[p]
715
+ placement: l[p - 2],
716
+ actor: l[p - 1].actor,
717
+ text: l[p]
718
718
  }];
719
719
  break;
720
720
  case 59:
721
- c[p - 2] = [].concat(c[p - 1], c[p - 1]).slice(0, 2), c[p - 2][0] = c[p - 2][0].actor, c[p - 2][1] = c[p - 2][1].actor, this.$ = [c[p - 1], {
721
+ l[p - 2] = [].concat(l[p - 1], l[p - 1]).slice(0, 2), l[p - 2][0] = l[p - 2][0].actor, l[p - 2][1] = l[p - 2][1].actor, this.$ = [l[p - 1], {
722
722
  type: "addNote",
723
723
  placement: b.PLACEMENT.OVER,
724
- actor: c[p - 2].slice(0, 2),
725
- text: c[p]
724
+ actor: l[p - 2].slice(0, 2),
725
+ text: l[p]
726
726
  }];
727
727
  break;
728
728
  case 60:
729
- this.$ = [c[p - 1], {
729
+ this.$ = [l[p - 1], {
730
730
  type: "addLinks",
731
- actor: c[p - 1].actor,
732
- text: c[p]
731
+ actor: l[p - 1].actor,
732
+ text: l[p]
733
733
  }];
734
734
  break;
735
735
  case 61:
736
- this.$ = [c[p - 1], {
736
+ this.$ = [l[p - 1], {
737
737
  type: "addALink",
738
- actor: c[p - 1].actor,
739
- text: c[p]
738
+ actor: l[p - 1].actor,
739
+ text: l[p]
740
740
  }];
741
741
  break;
742
742
  case 62:
743
- this.$ = [c[p - 1], {
743
+ this.$ = [l[p - 1], {
744
744
  type: "addProperties",
745
- actor: c[p - 1].actor,
746
- text: c[p]
745
+ actor: l[p - 1].actor,
746
+ text: l[p]
747
747
  }];
748
748
  break;
749
749
  case 63:
750
- this.$ = [c[p - 1], {
750
+ this.$ = [l[p - 1], {
751
751
  type: "addDetails",
752
- actor: c[p - 1].actor,
753
- text: c[p]
752
+ actor: l[p - 1].actor,
753
+ text: l[p]
754
754
  }];
755
755
  break;
756
756
  case 66:
757
- this.$ = [c[p - 2], c[p]];
757
+ this.$ = [l[p - 2], l[p]];
758
758
  break;
759
759
  case 67:
760
- this.$ = c[p];
760
+ this.$ = l[p];
761
761
  break;
762
762
  case 68:
763
763
  this.$ = b.PLACEMENT.LEFTOF;
@@ -767,133 +767,133 @@ var Ye = pa(), Zt = function() {
767
767
  break;
768
768
  case 70:
769
769
  this.$ = [
770
- c[p - 4],
771
- c[p - 1],
770
+ l[p - 4],
771
+ l[p - 1],
772
772
  {
773
773
  type: "addMessage",
774
- from: c[p - 4].actor,
775
- to: c[p - 1].actor,
776
- signalType: c[p - 3],
777
- msg: c[p],
774
+ from: l[p - 4].actor,
775
+ to: l[p - 1].actor,
776
+ signalType: l[p - 3],
777
+ msg: l[p],
778
778
  activate: !0
779
779
  },
780
780
  {
781
781
  type: "activeStart",
782
782
  signalType: b.LINETYPE.ACTIVE_START,
783
- actor: c[p - 1].actor
783
+ actor: l[p - 1].actor
784
784
  }
785
785
  ];
786
786
  break;
787
787
  case 71:
788
788
  this.$ = [
789
- c[p - 4],
790
- c[p - 1],
789
+ l[p - 4],
790
+ l[p - 1],
791
791
  {
792
792
  type: "addMessage",
793
- from: c[p - 4].actor,
794
- to: c[p - 1].actor,
795
- signalType: c[p - 3],
796
- msg: c[p]
793
+ from: l[p - 4].actor,
794
+ to: l[p - 1].actor,
795
+ signalType: l[p - 3],
796
+ msg: l[p]
797
797
  },
798
798
  {
799
799
  type: "activeEnd",
800
800
  signalType: b.LINETYPE.ACTIVE_END,
801
- actor: c[p - 4].actor
801
+ actor: l[p - 4].actor
802
802
  }
803
803
  ];
804
804
  break;
805
805
  case 72:
806
806
  this.$ = [
807
- c[p - 4],
808
- c[p - 1],
807
+ l[p - 4],
808
+ l[p - 1],
809
809
  {
810
810
  type: "addMessage",
811
- from: c[p - 4].actor,
812
- to: c[p - 1].actor,
813
- signalType: c[p - 3],
814
- msg: c[p],
811
+ from: l[p - 4].actor,
812
+ to: l[p - 1].actor,
813
+ signalType: l[p - 3],
814
+ msg: l[p],
815
815
  activate: !0,
816
816
  centralConnection: b.LINETYPE.CENTRAL_CONNECTION
817
817
  },
818
818
  {
819
819
  type: "centralConnection",
820
820
  signalType: b.LINETYPE.CENTRAL_CONNECTION,
821
- actor: c[p - 1].actor
821
+ actor: l[p - 1].actor
822
822
  }
823
823
  ];
824
824
  break;
825
825
  case 73:
826
826
  this.$ = [
827
- c[p - 4],
828
- c[p - 1],
827
+ l[p - 4],
828
+ l[p - 1],
829
829
  {
830
830
  type: "addMessage",
831
- from: c[p - 4].actor,
832
- to: c[p - 1].actor,
833
- signalType: c[p - 2],
834
- msg: c[p],
831
+ from: l[p - 4].actor,
832
+ to: l[p - 1].actor,
833
+ signalType: l[p - 2],
834
+ msg: l[p],
835
835
  activate: !1,
836
836
  centralConnection: b.LINETYPE.CENTRAL_CONNECTION_REVERSE
837
837
  },
838
838
  {
839
839
  type: "centralConnectionReverse",
840
840
  signalType: b.LINETYPE.CENTRAL_CONNECTION_REVERSE,
841
- actor: c[p - 4].actor
841
+ actor: l[p - 4].actor
842
842
  }
843
843
  ];
844
844
  break;
845
845
  case 74:
846
846
  this.$ = [
847
- c[p - 5],
848
- c[p - 1],
847
+ l[p - 5],
848
+ l[p - 1],
849
849
  {
850
850
  type: "addMessage",
851
- from: c[p - 5].actor,
852
- to: c[p - 1].actor,
853
- signalType: c[p - 3],
854
- msg: c[p],
851
+ from: l[p - 5].actor,
852
+ to: l[p - 1].actor,
853
+ signalType: l[p - 3],
854
+ msg: l[p],
855
855
  activate: !0,
856
856
  centralConnection: b.LINETYPE.CENTRAL_CONNECTION_DUAL
857
857
  },
858
858
  {
859
859
  type: "centralConnection",
860
860
  signalType: b.LINETYPE.CENTRAL_CONNECTION,
861
- actor: c[p - 1].actor
861
+ actor: l[p - 1].actor
862
862
  },
863
863
  {
864
864
  type: "centralConnectionReverse",
865
865
  signalType: b.LINETYPE.CENTRAL_CONNECTION_REVERSE,
866
- actor: c[p - 5].actor
866
+ actor: l[p - 5].actor
867
867
  }
868
868
  ];
869
869
  break;
870
870
  case 75:
871
871
  this.$ = [
872
- c[p - 3],
873
- c[p - 1],
872
+ l[p - 3],
873
+ l[p - 1],
874
874
  {
875
875
  type: "addMessage",
876
- from: c[p - 3].actor,
877
- to: c[p - 1].actor,
878
- signalType: c[p - 2],
879
- msg: c[p]
876
+ from: l[p - 3].actor,
877
+ to: l[p - 1].actor,
878
+ signalType: l[p - 2],
879
+ msg: l[p]
880
880
  }
881
881
  ];
882
882
  break;
883
883
  case 76:
884
884
  this.$ = {
885
885
  type: "addParticipant",
886
- actor: c[p - 1],
887
- config: c[p]
886
+ actor: l[p - 1],
887
+ config: l[p]
888
888
  };
889
889
  break;
890
890
  case 77:
891
- this.$ = c[p - 1].trim();
891
+ this.$ = l[p - 1].trim();
892
892
  break;
893
893
  case 78:
894
894
  this.$ = {
895
895
  type: "addParticipant",
896
- actor: c[p]
896
+ actor: l[p]
897
897
  };
898
898
  break;
899
899
  case 79:
@@ -975,7 +975,7 @@ var Ye = pa(), Zt = function() {
975
975
  this.$ = b.LINETYPE.DOTTED_POINT;
976
976
  break;
977
977
  case 105:
978
- this.$ = b.parseMessage(c[p].trim().substring(1));
978
+ this.$ = b.parseMessage(l[p].trim().substring(1));
979
979
  break;
980
980
  }
981
981
  }, "anonymous"),
@@ -1040,7 +1040,7 @@ var Ye = pa(), Zt = function() {
1040
1040
  5: s,
1041
1041
  8: 8,
1042
1042
  9: 10,
1043
- 10: l,
1043
+ 10: c,
1044
1044
  13: 13,
1045
1045
  14: g,
1046
1046
  15: h,
@@ -1062,20 +1062,20 @@ var Ye = pa(), Zt = function() {
1062
1062
  37: f,
1063
1063
  38: L,
1064
1064
  39: S,
1065
- 40: w,
1065
+ 40: A,
1066
1066
  42: P,
1067
- 44: Y,
1068
- 45: B,
1069
- 47: U,
1070
- 51: K,
1071
- 53: q,
1072
- 54: j,
1073
- 56: J,
1074
- 61: H,
1075
- 62: st,
1067
+ 44: q,
1068
+ 45: $,
1069
+ 47: V,
1070
+ 51: z,
1071
+ 53: U,
1072
+ 54: J,
1073
+ 56: Q,
1074
+ 61: K,
1075
+ 62: rt,
1076
1076
  63: tt,
1077
- 64: it,
1078
- 73: $
1077
+ 64: st,
1078
+ 73: B
1079
1079
  },
1080
1080
  e(k, [2, 5]),
1081
1081
  {
@@ -1101,20 +1101,20 @@ var Ye = pa(), Zt = function() {
1101
1101
  37: f,
1102
1102
  38: L,
1103
1103
  39: S,
1104
- 40: w,
1104
+ 40: A,
1105
1105
  42: P,
1106
- 44: Y,
1107
- 45: B,
1108
- 47: U,
1109
- 51: K,
1110
- 53: q,
1111
- 54: j,
1112
- 56: J,
1113
- 61: H,
1114
- 62: st,
1106
+ 44: q,
1107
+ 45: $,
1108
+ 47: V,
1109
+ 51: z,
1110
+ 53: U,
1111
+ 54: J,
1112
+ 56: Q,
1113
+ 61: K,
1114
+ 62: rt,
1115
1115
  63: tt,
1116
- 64: it,
1117
- 73: $
1116
+ 64: st,
1117
+ 73: B
1118
1118
  },
1119
1119
  e(k, [2, 7]),
1120
1120
  e(k, [2, 8]),
@@ -1122,9 +1122,9 @@ var Ye = pa(), Zt = function() {
1122
1122
  e(k, [2, 15]),
1123
1123
  {
1124
1124
  13: 49,
1125
- 51: K,
1126
- 53: q,
1127
- 54: j
1125
+ 51: z,
1126
+ 53: U,
1127
+ 54: J
1128
1128
  },
1129
1129
  { 16: [1, 50] },
1130
1130
  { 5: [1, 51] },
@@ -1135,11 +1135,11 @@ var Ye = pa(), Zt = function() {
1135
1135
  },
1136
1136
  {
1137
1137
  23: 55,
1138
- 73: $
1138
+ 73: B
1139
1139
  },
1140
1140
  {
1141
1141
  23: 56,
1142
- 73: $
1142
+ 73: B
1143
1143
  },
1144
1144
  { 5: [1, 57] },
1145
1145
  { 5: [1, 58] },
@@ -1171,16 +1171,16 @@ var Ye = pa(), Zt = function() {
1171
1171
  },
1172
1172
  {
1173
1173
  23: 77,
1174
- 73: $
1174
+ 73: B
1175
1175
  },
1176
1176
  {
1177
1177
  69: 78,
1178
1178
  72: [1, 79],
1179
1179
  78: R,
1180
1180
  79: D,
1181
- 80: et,
1182
- 81: at,
1183
- 82: V,
1181
+ 80: ct,
1182
+ 81: et,
1183
+ 82: Y,
1184
1184
  83: se,
1185
1185
  84: ie,
1186
1186
  85: oe,
@@ -1211,19 +1211,19 @@ var Ye = pa(), Zt = function() {
1211
1211
  },
1212
1212
  {
1213
1213
  23: 110,
1214
- 73: $
1214
+ 73: B
1215
1215
  },
1216
1216
  {
1217
1217
  23: 111,
1218
- 73: $
1218
+ 73: B
1219
1219
  },
1220
1220
  {
1221
1221
  23: 112,
1222
- 73: $
1222
+ 73: B
1223
1223
  },
1224
1224
  {
1225
1225
  23: 113,
1226
- 73: $
1226
+ 73: B
1227
1227
  },
1228
1228
  e([
1229
1229
  5,
@@ -1322,15 +1322,15 @@ var Ye = pa(), Zt = function() {
1322
1322
  70: [1, 142],
1323
1323
  71: [1, 143],
1324
1324
  72: [1, 144],
1325
- 73: $
1325
+ 73: B
1326
1326
  },
1327
1327
  {
1328
1328
  69: 146,
1329
1329
  78: R,
1330
1330
  79: D,
1331
- 80: et,
1332
- 81: at,
1333
- 82: V,
1331
+ 80: ct,
1332
+ 81: et,
1333
+ 82: Y,
1334
1334
  83: se,
1335
1335
  84: ie,
1336
1336
  85: oe,
@@ -1381,30 +1381,30 @@ var Ye = pa(), Zt = function() {
1381
1381
  e(W, [2, 104]),
1382
1382
  {
1383
1383
  23: 147,
1384
- 73: $
1384
+ 73: B
1385
1385
  },
1386
1386
  {
1387
1387
  23: 149,
1388
1388
  60: 148,
1389
- 73: $
1389
+ 73: B
1390
1390
  },
1391
1391
  { 73: [2, 68] },
1392
1392
  { 73: [2, 69] },
1393
1393
  {
1394
1394
  58: 150,
1395
- 104: nt
1395
+ 104: ot
1396
1396
  },
1397
1397
  {
1398
1398
  58: 152,
1399
- 104: nt
1399
+ 104: ot
1400
1400
  },
1401
1401
  {
1402
1402
  58: 153,
1403
- 104: nt
1403
+ 104: ot
1404
1404
  },
1405
1405
  {
1406
1406
  58: 154,
1407
- 104: nt
1407
+ 104: ot
1408
1408
  },
1409
1409
  {
1410
1410
  4: [1, 157],
@@ -1412,9 +1412,9 @@ var Ye = pa(), Zt = function() {
1412
1412
  12: 156,
1413
1413
  13: 158,
1414
1414
  17: [1, 155],
1415
- 51: K,
1416
- 53: q,
1417
- 54: j
1415
+ 51: z,
1416
+ 53: U,
1417
+ 54: J
1418
1418
  },
1419
1419
  { 5: [1, 160] },
1420
1420
  e(k, [2, 20]),
@@ -1426,7 +1426,7 @@ var Ye = pa(), Zt = function() {
1426
1426
  5: s,
1427
1427
  8: 8,
1428
1428
  9: 10,
1429
- 10: l,
1429
+ 10: c,
1430
1430
  13: 13,
1431
1431
  14: g,
1432
1432
  15: h,
@@ -1449,27 +1449,27 @@ var Ye = pa(), Zt = function() {
1449
1449
  37: f,
1450
1450
  38: L,
1451
1451
  39: S,
1452
- 40: w,
1452
+ 40: A,
1453
1453
  42: P,
1454
- 44: Y,
1455
- 45: B,
1456
- 47: U,
1457
- 51: K,
1458
- 53: q,
1459
- 54: j,
1460
- 56: J,
1461
- 61: H,
1462
- 62: st,
1454
+ 44: q,
1455
+ 45: $,
1456
+ 47: V,
1457
+ 51: z,
1458
+ 53: U,
1459
+ 54: J,
1460
+ 56: Q,
1461
+ 61: K,
1462
+ 62: rt,
1463
1463
  63: tt,
1464
- 64: it,
1465
- 73: $
1464
+ 64: st,
1465
+ 73: B
1466
1466
  },
1467
1467
  {
1468
1468
  4: o,
1469
1469
  5: s,
1470
1470
  8: 8,
1471
1471
  9: 10,
1472
- 10: l,
1472
+ 10: c,
1473
1473
  13: 13,
1474
1474
  14: g,
1475
1475
  15: h,
@@ -1492,27 +1492,27 @@ var Ye = pa(), Zt = function() {
1492
1492
  37: f,
1493
1493
  38: L,
1494
1494
  39: S,
1495
- 40: w,
1495
+ 40: A,
1496
1496
  42: P,
1497
- 44: Y,
1498
- 45: B,
1499
- 47: U,
1500
- 51: K,
1501
- 53: q,
1502
- 54: j,
1503
- 56: J,
1504
- 61: H,
1505
- 62: st,
1497
+ 44: q,
1498
+ 45: $,
1499
+ 47: V,
1500
+ 51: z,
1501
+ 53: U,
1502
+ 54: J,
1503
+ 56: Q,
1504
+ 61: K,
1505
+ 62: rt,
1506
1506
  63: tt,
1507
- 64: it,
1508
- 73: $
1507
+ 64: st,
1508
+ 73: B
1509
1509
  },
1510
1510
  {
1511
1511
  4: o,
1512
1512
  5: s,
1513
1513
  8: 8,
1514
1514
  9: 10,
1515
- 10: l,
1515
+ 10: c,
1516
1516
  13: 13,
1517
1517
  14: g,
1518
1518
  15: h,
@@ -1535,20 +1535,20 @@ var Ye = pa(), Zt = function() {
1535
1535
  37: f,
1536
1536
  38: L,
1537
1537
  39: S,
1538
- 40: w,
1538
+ 40: A,
1539
1539
  42: P,
1540
- 44: Y,
1541
- 45: B,
1542
- 47: U,
1543
- 51: K,
1544
- 53: q,
1545
- 54: j,
1546
- 56: J,
1547
- 61: H,
1548
- 62: st,
1540
+ 44: q,
1541
+ 45: $,
1542
+ 47: V,
1543
+ 51: z,
1544
+ 53: U,
1545
+ 54: J,
1546
+ 56: Q,
1547
+ 61: K,
1548
+ 62: rt,
1549
1549
  63: tt,
1550
- 64: it,
1551
- 73: $
1550
+ 64: st,
1551
+ 73: B
1552
1552
  },
1553
1553
  { 17: [1, 164] },
1554
1554
  {
@@ -1556,7 +1556,7 @@ var Ye = pa(), Zt = function() {
1556
1556
  5: s,
1557
1557
  8: 8,
1558
1558
  9: 10,
1559
- 10: l,
1559
+ 10: c,
1560
1560
  13: 13,
1561
1561
  14: g,
1562
1562
  15: h,
@@ -1579,21 +1579,21 @@ var Ye = pa(), Zt = function() {
1579
1579
  37: f,
1580
1580
  38: L,
1581
1581
  39: S,
1582
- 40: w,
1582
+ 40: A,
1583
1583
  42: P,
1584
- 44: Y,
1585
- 45: B,
1586
- 47: U,
1584
+ 44: q,
1585
+ 45: $,
1586
+ 47: V,
1587
1587
  50: [1, 165],
1588
- 51: K,
1589
- 53: q,
1590
- 54: j,
1591
- 56: J,
1592
- 61: H,
1593
- 62: st,
1588
+ 51: z,
1589
+ 53: U,
1590
+ 54: J,
1591
+ 56: Q,
1592
+ 61: K,
1593
+ 62: rt,
1594
1594
  63: tt,
1595
- 64: it,
1596
- 73: $
1595
+ 64: st,
1596
+ 73: B
1597
1597
  },
1598
1598
  { 17: [1, 166] },
1599
1599
  {
@@ -1601,7 +1601,7 @@ var Ye = pa(), Zt = function() {
1601
1601
  5: s,
1602
1602
  8: 8,
1603
1603
  9: 10,
1604
- 10: l,
1604
+ 10: c,
1605
1605
  13: 13,
1606
1606
  14: g,
1607
1607
  15: h,
@@ -1624,21 +1624,21 @@ var Ye = pa(), Zt = function() {
1624
1624
  37: f,
1625
1625
  38: L,
1626
1626
  39: S,
1627
- 40: w,
1627
+ 40: A,
1628
1628
  42: P,
1629
- 44: Y,
1630
- 45: B,
1631
- 47: U,
1629
+ 44: q,
1630
+ 45: $,
1631
+ 47: V,
1632
1632
  49: [1, 167],
1633
- 51: K,
1634
- 53: q,
1635
- 54: j,
1636
- 56: J,
1637
- 61: H,
1638
- 62: st,
1633
+ 51: z,
1634
+ 53: U,
1635
+ 54: J,
1636
+ 56: Q,
1637
+ 61: K,
1638
+ 62: rt,
1639
1639
  63: tt,
1640
- 64: it,
1641
- 73: $
1640
+ 64: st,
1641
+ 73: B
1642
1642
  },
1643
1643
  { 17: [1, 168] },
1644
1644
  { 17: [1, 169] },
@@ -1647,7 +1647,7 @@ var Ye = pa(), Zt = function() {
1647
1647
  5: s,
1648
1648
  8: 8,
1649
1649
  9: 10,
1650
- 10: l,
1650
+ 10: c,
1651
1651
  13: 13,
1652
1652
  14: g,
1653
1653
  15: h,
@@ -1670,28 +1670,28 @@ var Ye = pa(), Zt = function() {
1670
1670
  37: f,
1671
1671
  38: L,
1672
1672
  39: S,
1673
- 40: w,
1673
+ 40: A,
1674
1674
  42: P,
1675
- 44: Y,
1676
- 45: B,
1677
- 47: U,
1675
+ 44: q,
1676
+ 45: $,
1677
+ 47: V,
1678
1678
  48: [1, 170],
1679
- 51: K,
1680
- 53: q,
1681
- 54: j,
1682
- 56: J,
1683
- 61: H,
1684
- 62: st,
1679
+ 51: z,
1680
+ 53: U,
1681
+ 54: J,
1682
+ 56: Q,
1683
+ 61: K,
1684
+ 62: rt,
1685
1685
  63: tt,
1686
- 64: it,
1687
- 73: $
1686
+ 64: st,
1687
+ 73: B
1688
1688
  },
1689
1689
  {
1690
1690
  4: o,
1691
1691
  5: s,
1692
1692
  8: 8,
1693
1693
  9: 10,
1694
- 10: l,
1694
+ 10: c,
1695
1695
  13: 13,
1696
1696
  14: g,
1697
1697
  15: h,
@@ -1714,20 +1714,20 @@ var Ye = pa(), Zt = function() {
1714
1714
  37: f,
1715
1715
  38: L,
1716
1716
  39: S,
1717
- 40: w,
1717
+ 40: A,
1718
1718
  42: P,
1719
- 44: Y,
1720
- 45: B,
1721
- 47: U,
1722
- 51: K,
1723
- 53: q,
1724
- 54: j,
1725
- 56: J,
1726
- 61: H,
1727
- 62: st,
1719
+ 44: q,
1720
+ 45: $,
1721
+ 47: V,
1722
+ 51: z,
1723
+ 53: U,
1724
+ 54: J,
1725
+ 56: Q,
1726
+ 61: K,
1727
+ 62: rt,
1728
1728
  63: tt,
1729
- 64: it,
1730
- 73: $
1729
+ 64: st,
1730
+ 73: B
1731
1731
  },
1732
1732
  { 16: [1, 172] },
1733
1733
  e(k, [2, 50]),
@@ -1742,32 +1742,32 @@ var Ye = pa(), Zt = function() {
1742
1742
  e(k, [2, 53]),
1743
1743
  {
1744
1744
  23: 177,
1745
- 73: $
1745
+ 73: B
1746
1746
  },
1747
1747
  {
1748
1748
  23: 178,
1749
- 73: $
1749
+ 73: B
1750
1750
  },
1751
1751
  {
1752
1752
  23: 179,
1753
- 73: $
1753
+ 73: B
1754
1754
  },
1755
1755
  {
1756
1756
  58: 180,
1757
- 104: nt
1757
+ 104: ot
1758
1758
  },
1759
1759
  {
1760
1760
  23: 181,
1761
1761
  72: [1, 182],
1762
- 73: $
1762
+ 73: B
1763
1763
  },
1764
1764
  {
1765
1765
  58: 183,
1766
- 104: nt
1766
+ 104: ot
1767
1767
  },
1768
1768
  {
1769
1769
  58: 184,
1770
- 104: nt
1770
+ 104: ot
1771
1771
  },
1772
1772
  {
1773
1773
  66: [1, 185],
@@ -1782,9 +1782,9 @@ var Ye = pa(), Zt = function() {
1782
1782
  e(Lt, [2, 11]),
1783
1783
  {
1784
1784
  13: 186,
1785
- 51: K,
1786
- 53: q,
1787
- 54: j
1785
+ 51: z,
1786
+ 53: U,
1787
+ 54: J
1788
1788
  },
1789
1789
  e(Lt, [2, 13]),
1790
1790
  e(Lt, [2, 14]),
@@ -1807,30 +1807,30 @@ var Ye = pa(), Zt = function() {
1807
1807
  { 5: [1, 194] },
1808
1808
  {
1809
1809
  58: 195,
1810
- 104: nt
1810
+ 104: ot
1811
1811
  },
1812
1812
  {
1813
1813
  58: 196,
1814
- 104: nt
1814
+ 104: ot
1815
1815
  },
1816
1816
  {
1817
1817
  58: 197,
1818
- 104: nt
1818
+ 104: ot
1819
1819
  },
1820
1820
  { 5: [2, 75] },
1821
1821
  {
1822
1822
  58: 198,
1823
- 104: nt
1823
+ 104: ot
1824
1824
  },
1825
1825
  {
1826
1826
  23: 199,
1827
- 73: $
1827
+ 73: B
1828
1828
  },
1829
1829
  { 5: [2, 58] },
1830
1830
  { 5: [2, 59] },
1831
1831
  {
1832
1832
  23: 200,
1833
- 73: $
1833
+ 73: B
1834
1834
  },
1835
1835
  e(Lt, [2, 12]),
1836
1836
  e(Le, i, {
@@ -1856,7 +1856,7 @@ var Ye = pa(), Zt = function() {
1856
1856
  { 5: [2, 73] },
1857
1857
  {
1858
1858
  58: 204,
1859
- 104: nt
1859
+ 104: ot
1860
1860
  },
1861
1861
  { 104: [2, 66] },
1862
1862
  { 17: [2, 48] },
@@ -1895,57 +1895,57 @@ var Ye = pa(), Zt = function() {
1895
1895
  }
1896
1896
  }, "parseError"),
1897
1897
  parse: /* @__PURE__ */ y(function(N) {
1898
- var M = this, C = [0], b = [], z = [null], c = [], Nt = this.table, p = "", kt = 0, Se = 0, Xe = 0, Je = 2, Pe = 1, Ze = c.slice.call(arguments, 1), G = Object.create(this.lexer), yt = { yy: {} };
1898
+ var M = this, C = [0], b = [], H = [null], l = [], Nt = this.table, p = "", kt = 0, Se = 0, Xe = 0, Je = 2, Pe = 1, Ze = l.slice.call(arguments, 1), j = Object.create(this.lexer), yt = { yy: {} };
1899
1899
  for (var zt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, zt) && (yt.yy[zt] = this.yy[zt]);
1900
- G.setInput(N, yt.yy), yt.yy.lexer = G, yt.yy.parser = this, G.yylloc === void 0 && (G.yylloc = {});
1901
- var Ut = G.yylloc;
1902
- c.push(Ut);
1903
- var Qe = G.options && G.options.ranges;
1900
+ j.setInput(N, yt.yy), yt.yy.lexer = j, yt.yy.parser = this, j.yylloc === void 0 && (j.yylloc = {});
1901
+ var Ut = j.yylloc;
1902
+ l.push(Ut);
1903
+ var Qe = j.options && j.options.ranges;
1904
1904
  typeof yt.yy.parseError == "function" ? this.parseError = yt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1905
- function ta(ct) {
1906
- C.length -= 2 * ct, z.length -= ct, c.length -= ct;
1905
+ function ta(lt) {
1906
+ C.length -= 2 * lt, H.length -= lt, l.length -= lt;
1907
1907
  }
1908
1908
  y(ta, "popStack");
1909
1909
  function we() {
1910
- var ct = b.pop() || G.lex() || Pe;
1911
- return typeof ct != "number" && (ct instanceof Array && (b = ct, ct = b.pop()), ct = M.symbols_[ct] || ct), ct;
1910
+ var lt = b.pop() || j.lex() || Pe;
1911
+ return typeof lt != "number" && (lt instanceof Array && (b = lt, lt = b.pop()), lt = M.symbols_[lt] || lt), lt;
1912
1912
  }
1913
1913
  y(we, "lex");
1914
- for (var ot, jt, Ot, lt, Gt, mt = {}, Ct, pt, Ae, Mt; ; ) {
1915
- if (Ot = C[C.length - 1], this.defaultActions[Ot] ? lt = this.defaultActions[Ot] : (ot ?? (ot = we()), lt = Nt[Ot] && Nt[Ot][ot]), lt === void 0 || !lt.length || !lt[0]) {
1914
+ for (var it, jt, Ot, nt, Gt, mt = {}, Ct, pt, Ae, Mt; ; ) {
1915
+ if (Ot = C[C.length - 1], this.defaultActions[Ot] ? nt = this.defaultActions[Ot] : (it ??= we(), nt = Nt[Ot] && Nt[Ot][it]), nt === void 0 || !nt.length || !nt[0]) {
1916
1916
  var De = "";
1917
1917
  for (Ct in Mt = [], Nt[Ot]) this.terminals_[Ct] && Ct > Je && Mt.push("'" + this.terminals_[Ct] + "'");
1918
- De = G.showPosition ? "Parse error on line " + (kt + 1) + `:
1919
- ` + G.showPosition() + `
1920
- Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "Parse error on line " + (kt + 1) + ": Unexpected " + (ot == Pe ? "end of input" : "'" + (this.terminals_[ot] || ot) + "'"), this.parseError(De, {
1921
- text: G.match,
1922
- token: this.terminals_[ot] || ot,
1923
- line: G.yylineno,
1918
+ De = j.showPosition ? "Parse error on line " + (kt + 1) + `:
1919
+ ` + j.showPosition() + `
1920
+ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[it] || it) + "'" : "Parse error on line " + (kt + 1) + ": Unexpected " + (it == Pe ? "end of input" : "'" + (this.terminals_[it] || it) + "'"), this.parseError(De, {
1921
+ text: j.match,
1922
+ token: this.terminals_[it] || it,
1923
+ line: j.yylineno,
1924
1924
  loc: Ut,
1925
1925
  expected: Mt
1926
1926
  });
1927
1927
  }
1928
- if (lt[0] instanceof Array && lt.length > 1) throw Error("Parse Error: multiple actions possible at state: " + Ot + ", token: " + ot);
1929
- switch (lt[0]) {
1928
+ if (nt[0] instanceof Array && nt.length > 1) throw Error("Parse Error: multiple actions possible at state: " + Ot + ", token: " + it);
1929
+ switch (nt[0]) {
1930
1930
  case 1:
1931
- C.push(ot), z.push(G.yytext), c.push(G.yylloc), C.push(lt[1]), ot = null, jt ? (ot = jt, jt = null) : (Se = G.yyleng, p = G.yytext, kt = G.yylineno, Ut = G.yylloc, Xe > 0);
1931
+ C.push(it), H.push(j.yytext), l.push(j.yylloc), C.push(nt[1]), it = null, jt ? (it = jt, jt = null) : (Se = j.yyleng, p = j.yytext, kt = j.yylineno, Ut = j.yylloc, Xe > 0);
1932
1932
  break;
1933
1933
  case 2:
1934
- if (pt = this.productions_[lt[1]][1], mt.$ = z[z.length - pt], mt._$ = {
1935
- first_line: c[c.length - (pt || 1)].first_line,
1936
- last_line: c[c.length - 1].last_line,
1937
- first_column: c[c.length - (pt || 1)].first_column,
1938
- last_column: c[c.length - 1].last_column
1939
- }, Qe && (mt._$.range = [c[c.length - (pt || 1)].range[0], c[c.length - 1].range[1]]), Gt = this.performAction.apply(mt, [
1934
+ if (pt = this.productions_[nt[1]][1], mt.$ = H[H.length - pt], mt._$ = {
1935
+ first_line: l[l.length - (pt || 1)].first_line,
1936
+ last_line: l[l.length - 1].last_line,
1937
+ first_column: l[l.length - (pt || 1)].first_column,
1938
+ last_column: l[l.length - 1].last_column
1939
+ }, Qe && (mt._$.range = [l[l.length - (pt || 1)].range[0], l[l.length - 1].range[1]]), Gt = this.performAction.apply(mt, [
1940
1940
  p,
1941
1941
  Se,
1942
1942
  kt,
1943
1943
  yt.yy,
1944
- lt[1],
1945
- z,
1946
- c
1944
+ nt[1],
1945
+ H,
1946
+ l
1947
1947
  ].concat(Ze)), Gt !== void 0) return Gt;
1948
- pt && (C = C.slice(0, -1 * pt * 2), z = z.slice(0, -1 * pt), c = c.slice(0, -1 * pt)), C.push(this.productions_[lt[1]][0]), z.push(mt.$), c.push(mt._$), Ae = Nt[C[C.length - 2]][C[C.length - 1]], C.push(Ae);
1948
+ pt && (C = C.slice(0, -1 * pt * 2), H = H.slice(0, -1 * pt), l = l.slice(0, -1 * pt)), C.push(this.productions_[nt[1]][0]), H.push(mt.$), l.push(mt._$), Ae = Nt[C[C.length - 2]][C[C.length - 1]], C.push(Ae);
1949
1949
  break;
1950
1950
  case 3:
1951
1951
  return !0;
@@ -1954,7 +1954,7 @@ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "P
1954
1954
  return !0;
1955
1955
  }, "parse")
1956
1956
  };
1957
- Ht.lexer = /* @__PURE__ */ function() {
1957
+ Ht.lexer = /* @__PURE__ */ (function() {
1958
1958
  return {
1959
1959
  EOF: 1,
1960
1960
  parseError: /* @__PURE__ */ y(function(N, M) {
@@ -1978,13 +1978,13 @@ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "P
1978
1978
  this._input = N + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - M), this.offset -= M;
1979
1979
  var b = this.match.split(/(?:\r\n?|\n)/g);
1980
1980
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
1981
- var z = this.yylloc.range;
1981
+ var H = this.yylloc.range;
1982
1982
  return this.yylloc = {
1983
1983
  first_line: this.yylloc.first_line,
1984
1984
  last_line: this.yylineno + 1,
1985
1985
  first_column: this.yylloc.first_column,
1986
1986
  last_column: C ? (C.length === b.length ? this.yylloc.first_column : 0) + b[b.length - C.length].length - C[0].length : this.yylloc.first_column - M
1987
- }, this.options.ranges && (this.yylloc.range = [z[0], z[0] + this.yyleng - M]), this.yyleng = this.yytext.length, this;
1987
+ }, this.options.ranges && (this.yylloc.range = [H[0], H[0] + this.yyleng - M]), this.yyleng = this.yytext.length, this;
1988
1988
  }, "unput"),
1989
1989
  more: /* @__PURE__ */ y(function() {
1990
1990
  return this._more = !0, this;
@@ -2016,8 +2016,8 @@ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "P
2016
2016
  ` + M + "^";
2017
2017
  }, "showPosition"),
2018
2018
  test_match: /* @__PURE__ */ y(function(N, M) {
2019
- var C, b, z;
2020
- if (this.options.backtrack_lexer && (z = {
2019
+ var C, b, H;
2020
+ if (this.options.backtrack_lexer && (H = {
2021
2021
  yylineno: this.yylineno,
2022
2022
  yylloc: {
2023
2023
  first_line: this.yylloc.first_line,
@@ -2036,14 +2036,14 @@ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "P
2036
2036
  yy: this.yy,
2037
2037
  conditionStack: this.conditionStack.slice(0),
2038
2038
  done: this.done
2039
- }, this.options.ranges && (z.yylloc.range = this.yylloc.range.slice(0))), b = N[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
2039
+ }, this.options.ranges && (H.yylloc.range = this.yylloc.range.slice(0))), b = N[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
2040
2040
  first_line: this.yylloc.last_line,
2041
2041
  last_line: this.yylineno + 1,
2042
2042
  first_column: this.yylloc.last_column,
2043
2043
  last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + N[0].length
2044
2044
  }, this.yytext += N[0], this.match += N[0], this.matches = N, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(N[0].length), this.matched += N[0], C = this.performAction.call(this, this.yy, this, M, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
2045
2045
  if (this._backtrack) {
2046
- for (var c in z) this[c] = z[c];
2046
+ for (var l in H) this[l] = H[l];
2047
2047
  return !1;
2048
2048
  }
2049
2049
  return !1;
@@ -2053,16 +2053,16 @@ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "P
2053
2053
  this._input || (this.done = !0);
2054
2054
  var N, M, C, b;
2055
2055
  this._more || (this.yytext = "", this.match = "");
2056
- for (var z = this._currentRules(), c = 0; c < z.length; c++) if (C = this._input.match(this.rules[z[c]]), C && (!M || C[0].length > M[0].length)) {
2057
- if (M = C, b = c, this.options.backtrack_lexer) {
2058
- if (N = this.test_match(C, z[c]), N !== !1) return N;
2056
+ for (var H = this._currentRules(), l = 0; l < H.length; l++) if (C = this._input.match(this.rules[H[l]]), C && (!M || C[0].length > M[0].length)) {
2057
+ if (M = C, b = l, this.options.backtrack_lexer) {
2058
+ if (N = this.test_match(C, H[l]), N !== !1) return N;
2059
2059
  if (this._backtrack) {
2060
2060
  M = !1;
2061
2061
  continue;
2062
2062
  } else return !1;
2063
2063
  } else if (!this.options.flex) break;
2064
2064
  }
2065
- return M ? (N = this.test_match(M, z[b]), N === !1 ? !1 : N) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
2065
+ return M ? (N = this.test_match(M, H[b]), N === !1 ? !1 : N) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
2066
2066
  ` + this.showPosition(), {
2067
2067
  text: "",
2068
2068
  token: null,
@@ -2520,12 +2520,12 @@ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[ot] || ot) + "'" : "P
2520
2520
  }
2521
2521
  }
2522
2522
  };
2523
- }();
2523
+ })();
2524
2524
  function Dt() {
2525
2525
  this.yy = {};
2526
2526
  }
2527
2527
  return y(Dt, "Parser"), Dt.prototype = Ht, Ht.Parser = Dt, new Dt();
2528
- }();
2528
+ })();
2529
2529
  Zt.parser = Zt;
2530
2530
  var ya = Zt, Oa = {
2531
2531
  SOLID: 0,
@@ -2606,7 +2606,7 @@ var ya = Zt, Oa = {
2606
2606
  currentBox: void 0,
2607
2607
  lastCreated: void 0,
2608
2608
  lastDestroyed: void 0
2609
- })), this.setAccTitle = ke, this.setAccDescription = sa, this.setDiagramTitle = ia, this.getAccTitle = oa, this.getAccDescription = na, this.getDiagramTitle = la, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(Q().wrap), this.LINETYPE = Oa, this.ARROWTYPE = _a, this.PLACEMENT = ba;
2609
+ })), this.setAccTitle = ke, this.setAccDescription = sa, this.setDiagramTitle = ia, this.getAccTitle = oa, this.getAccDescription = na, this.getDiagramTitle = la, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(Z().wrap), this.LINETYPE = Oa, this.ARROWTYPE = _a, this.PLACEMENT = ba;
2610
2610
  }
2611
2611
  addBox(t) {
2612
2612
  this.state.records.boxes.push({
@@ -2617,18 +2617,18 @@ var ya = Zt, Oa = {
2617
2617
  }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2618
2618
  }
2619
2619
  addActor(t, r, a, i, o) {
2620
- let s = this.state.records.currentBox, l;
2620
+ let s = this.state.records.currentBox, c;
2621
2621
  if (o !== void 0) {
2622
2622
  let h;
2623
2623
  h = o.includes(`
2624
2624
  `) ? o + `
2625
2625
  ` : `{
2626
2626
  ` + o + `
2627
- }`, l = ca(h, { schema: da });
2627
+ }`, c = ca(h, { schema: da });
2628
2628
  }
2629
- i = (l == null ? void 0 : l.type) ?? i, l != null && l.alias && (!a || a.text === r) && (a = {
2630
- text: l.alias,
2631
- wrap: a == null ? void 0 : a.wrap,
2629
+ i = c?.type ?? i, c?.alias && (!a || a.text === r) && (a = {
2630
+ text: c.alias,
2631
+ wrap: a?.wrap,
2632
2632
  type: i
2633
2633
  });
2634
2634
  let g = this.state.records.actors.get(t);
@@ -2636,7 +2636,7 @@ var ya = Zt, Oa = {
2636
2636
  if (this.state.records.currentBox && g.box && this.state.records.currentBox !== g.box) throw Error(`A same participant should only be defined in one Box: ${g.name} can't be in '${g.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2637
2637
  if (s = g.box ? g.box : this.state.records.currentBox, g.box = s, g && r === g.name && a == null) return;
2638
2638
  }
2639
- if ((a == null ? void 0 : a.text) ?? (a = {
2639
+ if (a?.text ?? (a = {
2640
2640
  text: r,
2641
2641
  type: i
2642
2642
  }), (i == null || a.text == null) && (a = {
@@ -2677,8 +2677,8 @@ var ya = Zt, Oa = {
2677
2677
  }
2678
2678
  addSignal(t, r, a, i, o = !1, s) {
2679
2679
  if (i === this.LINETYPE.ACTIVE_END && this.activationCount(t ?? "") < 1) {
2680
- let l = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + t + ")");
2681
- throw l.hash = {
2680
+ let c = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + t + ")");
2681
+ throw c.hash = {
2682
2682
  text: "->>-",
2683
2683
  token: "->>-",
2684
2684
  line: "1",
@@ -2689,14 +2689,14 @@ var ya = Zt, Oa = {
2689
2689
  last_column: 1
2690
2690
  },
2691
2691
  expected: ["'ACTIVE_PARTICIPANT'"]
2692
- }, l;
2692
+ }, c;
2693
2693
  }
2694
2694
  return this.state.records.messages.push({
2695
2695
  id: this.state.records.messages.length.toString(),
2696
2696
  from: t,
2697
2697
  to: r,
2698
- message: (a == null ? void 0 : a.text) ?? "",
2699
- wrap: (a == null ? void 0 : a.wrap) ?? this.autoWrap(),
2698
+ message: a?.text ?? "",
2699
+ wrap: a?.wrap ?? this.autoWrap(),
2700
2700
  type: i,
2701
2701
  activate: o,
2702
2702
  centralConnection: s ?? 0
@@ -2751,8 +2751,7 @@ var ya = Zt, Oa = {
2751
2751
  };
2752
2752
  }
2753
2753
  autoWrap() {
2754
- var t;
2755
- return this.state.records.wrapEnabled === void 0 ? ((t = Q().sequence) == null ? void 0 : t.wrap) ?? !1 : this.state.records.wrapEnabled;
2754
+ return this.state.records.wrapEnabled === void 0 ? Z().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2756
2755
  }
2757
2756
  clear() {
2758
2757
  this.state.reset(), ha();
@@ -2762,18 +2761,18 @@ var ya = Zt, Oa = {
2762
2761
  text: i,
2763
2762
  wrap: a
2764
2763
  };
2765
- return rt.debug(`parseMessage: ${JSON.stringify(o)}`), o;
2764
+ return at.debug(`parseMessage: ${JSON.stringify(o)}`), o;
2766
2765
  }
2767
2766
  parseBoxData(t) {
2768
- let r = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t), a = r != null && r[1] ? r[1].trim() : "transparent", i = r != null && r[2] ? r[2].trim() : void 0;
2769
- if (window != null && window.CSS) window.CSS.supports("color", a) || (a = "transparent", i = t.trim());
2767
+ let r = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t), a = r?.[1] ? r[1].trim() : "transparent", i = r?.[2] ? r[2].trim() : void 0;
2768
+ if (window?.CSS) window.CSS.supports("color", a) || (a = "transparent", i = t.trim());
2770
2769
  else {
2771
- let l = new Option().style;
2772
- l.color = a, l.color !== a && (a = "transparent", i = t.trim());
2770
+ let c = new Option().style;
2771
+ c.color = a, c.color !== a && (a = "transparent", i = t.trim());
2773
2772
  }
2774
2773
  let { wrap: o, cleanedText: s } = this.extractWrap(i);
2775
2774
  return {
2776
- text: s ? vt(s, Q()) : void 0,
2775
+ text: s ? vt(s, Z()) : void 0,
2777
2776
  color: a,
2778
2777
  wrap: o
2779
2778
  };
@@ -2798,23 +2797,23 @@ var ya = Zt, Oa = {
2798
2797
  addLinks(t, r) {
2799
2798
  let a = this.getActor(t);
2800
2799
  try {
2801
- let i = vt(r.text, Q());
2800
+ let i = vt(r.text, Z());
2802
2801
  i = i.replace(/&equals;/g, "="), i = i.replace(/&amp;/g, "&");
2803
2802
  let o = JSON.parse(i);
2804
2803
  this.insertLinks(a, o);
2805
2804
  } catch (i) {
2806
- rt.error("error while parsing actor link text", i);
2805
+ at.error("error while parsing actor link text", i);
2807
2806
  }
2808
2807
  }
2809
2808
  addALink(t, r) {
2810
2809
  let a = this.getActor(t);
2811
2810
  try {
2812
- let i = {}, o = vt(r.text, Q()), s = o.indexOf("@");
2811
+ let i = {}, o = vt(r.text, Z()), s = o.indexOf("@");
2813
2812
  o = o.replace(/&equals;/g, "="), o = o.replace(/&amp;/g, "&");
2814
- let l = o.slice(0, s - 1).trim();
2815
- i[l] = o.slice(s + 1).trim(), this.insertLinks(a, i);
2813
+ let c = o.slice(0, s - 1).trim();
2814
+ i[c] = o.slice(s + 1).trim(), this.insertLinks(a, i);
2816
2815
  } catch (i) {
2817
- rt.error("error while parsing actor link text", i);
2816
+ at.error("error while parsing actor link text", i);
2818
2817
  }
2819
2818
  }
2820
2819
  insertLinks(t, r) {
@@ -2824,10 +2823,10 @@ var ya = Zt, Oa = {
2824
2823
  addProperties(t, r) {
2825
2824
  let a = this.getActor(t);
2826
2825
  try {
2827
- let i = vt(r.text, Q()), o = JSON.parse(i);
2826
+ let i = vt(r.text, Z()), o = JSON.parse(i);
2828
2827
  this.insertProperties(a, o);
2829
2828
  } catch (i) {
2830
- rt.error("error while parsing actor properties text", i);
2829
+ at.error("error while parsing actor properties text", i);
2831
2830
  }
2832
2831
  }
2833
2832
  insertProperties(t, r) {
@@ -2843,11 +2842,11 @@ var ya = Zt, Oa = {
2843
2842
  let o = i.innerHTML, s = JSON.parse(o);
2844
2843
  s.properties && this.insertProperties(a, s.properties), s.links && this.insertLinks(a, s.links);
2845
2844
  } catch (o) {
2846
- rt.error("error while parsing actor details text", o);
2845
+ at.error("error while parsing actor details text", o);
2847
2846
  }
2848
2847
  }
2849
2848
  getActorProperty(t, r) {
2850
- if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[r];
2849
+ if (t?.properties !== void 0) return t.properties[r];
2851
2850
  }
2852
2851
  apply(t) {
2853
2852
  if (Array.isArray(t)) t.forEach((r) => {
@@ -2978,10 +2977,10 @@ var ya = Zt, Oa = {
2978
2977
  }
2979
2978
  }
2980
2979
  getConfig() {
2981
- return Q().sequence;
2980
+ return Z().sequence;
2982
2981
  }
2983
2982
  }, y(ft, "SequenceDB"), ft), ma = /* @__PURE__ */ y((e) => {
2984
- let t = e.dropShadow ?? "none", { look: r } = Q();
2983
+ let t = e.dropShadow ?? "none", { look: r } = Z();
2985
2984
  return `.actor {
2986
2985
  stroke: ${e.actorBorder};
2987
2986
  fill: ${e.actorBkg};
@@ -3130,23 +3129,23 @@ var ya = Zt, Oa = {
3130
3129
  height: 0,
3131
3130
  width: 0
3132
3131
  };
3133
- let o = t.links, s = t.actorCnt, l = t.rectData;
3132
+ let o = t.links, s = t.actorCnt, c = t.rectData;
3134
3133
  var g = "none";
3135
3134
  i && (g = "block !important");
3136
3135
  let h = e.append("g");
3137
3136
  h.attr("id", "actor" + s + "_popup"), h.attr("class", "actorPopupMenu"), h.attr("display", g);
3138
3137
  var n = "";
3139
- l.class !== void 0 && (n = " " + l.class);
3140
- let x = l.width > r ? l.width : r, u = h.append("rect");
3141
- if (u.attr("class", "actorPopupMenuPanel" + n), u.attr("x", l.x), u.attr("y", l.height), u.attr("fill", l.fill), u.attr("stroke", l.stroke), u.attr("width", x), u.attr("height", l.height), u.attr("rx", l.rx), u.attr("ry", l.ry), o != null) {
3138
+ c.class !== void 0 && (n = " " + c.class);
3139
+ let x = c.width > r ? c.width : r, u = h.append("rect");
3140
+ if (u.attr("class", "actorPopupMenuPanel" + n), u.attr("x", c.x), u.attr("y", c.height), u.attr("fill", c.fill), u.attr("stroke", c.stroke), u.attr("width", x), u.attr("height", c.height), u.attr("rx", c.rx), u.attr("ry", c.ry), o != null) {
3142
3141
  var I = 20;
3143
3142
  for (let O in o) {
3144
3143
  var T = h.append("a"), E = (0, Ye.sanitizeUrl)(o[O]);
3145
- T.attr("xlink:href", E), T.attr("target", "_blank"), za(a)(O, T, l.x + 10, l.height + I, x, 20, { class: "actor" }, a), I += 30;
3144
+ T.attr("xlink:href", E), T.attr("target", "_blank"), za(a)(O, T, c.x + 10, c.height + I, x, 20, { class: "actor" }, a), I += 30;
3146
3145
  }
3147
3146
  }
3148
3147
  return u.attr("height", I), {
3149
- height: l.height + I,
3148
+ height: c.height + I,
3150
3149
  width: x
3151
3150
  };
3152
3151
  }, "drawPopup"), Wt = /* @__PURE__ */ y(function(e) {
@@ -3156,19 +3155,19 @@ var ya = Zt, Oa = {
3156
3155
  if (a.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
3157
3156
  let s = e.node().firstChild;
3158
3157
  s.setAttribute("height", o.height + 2 * t.textMargin);
3159
- let l = s.getBBox();
3160
- a.attr("x", Math.round(l.x + l.width / 2 - o.width / 2)).attr("y", Math.round(l.y + l.height / 2 - o.height / 2));
3158
+ let c = s.getBBox();
3159
+ a.attr("x", Math.round(c.x + c.width / 2 - o.width / 2)).attr("y", Math.round(c.y + c.height / 2 - o.height / 2));
3161
3160
  } else if (r) {
3162
- let { startx: s, stopx: l, starty: g } = r;
3163
- if (s > l) {
3161
+ let { startx: s, stopx: c, starty: g } = r;
3162
+ if (s > c) {
3164
3163
  let h = s;
3165
- s = l, l = h;
3164
+ s = c, c = h;
3166
3165
  }
3167
- a.attr("x", Math.round(s + Math.abs(s - l) / 2 - o.width / 2)), t.class === "loopText" ? a.attr("y", Math.round(g)) : a.attr("y", Math.round(g - o.height));
3166
+ a.attr("x", Math.round(s + Math.abs(s - c) / 2 - o.width / 2)), t.class === "loopText" ? a.attr("y", Math.round(g)) : a.attr("y", Math.round(g - o.height));
3168
3167
  }
3169
3168
  return [a];
3170
3169
  }, "drawKatex"), Rt = /* @__PURE__ */ y(function(e, t) {
3171
- let r = 0, a = 0, i = t.text.split(A.lineBreakRegex), [o, s] = ve(t.fontSize), l = [], g = 0, h = /* @__PURE__ */ y(() => t.y, "yfunc");
3170
+ let r = 0, a = 0, i = t.text.split(w.lineBreakRegex), [o, s] = ve(t.fontSize), c = [], g = 0, h = /* @__PURE__ */ y(() => t.y, "yfunc");
3172
3171
  if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0) switch (t.valign) {
3173
3172
  case "top":
3174
3173
  case "start":
@@ -3206,12 +3205,12 @@ var ya = Zt, Oa = {
3206
3205
  let T = u.append("tspan");
3207
3206
  T.attr("x", t.x), t.fill !== void 0 && T.attr("fill", t.fill), T.text(I);
3208
3207
  } else u.text(I);
3209
- t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (a += (u._groups || u)[0][0].getBBox().height, r = a), l.push(u);
3208
+ t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (a += (u._groups || u)[0][0].getBBox().height, r = a), c.push(u);
3210
3209
  }
3211
- return l;
3210
+ return c;
3212
3211
  }, "drawText"), $e = /* @__PURE__ */ y(function(e, t) {
3213
- function r(i, o, s, l, g) {
3214
- return i + "," + o + " " + (i + s) + "," + o + " " + (i + s) + "," + (o + l - g) + " " + (i + s - g * 1.2) + "," + (o + l) + " " + i + "," + (o + l);
3212
+ function r(i, o, s, c, g) {
3213
+ return i + "," + o + " " + (i + s) + "," + o + " " + (i + s) + "," + (o + c - g) + " " + (i + s - g * 1.2) + "," + (o + c) + " " + i + "," + (o + c);
3215
3214
  }
3216
3215
  y(r, "genPoints");
3217
3216
  let a = e.append("polygon");
@@ -3222,33 +3221,31 @@ var ya = Zt, Oa = {
3222
3221
  !a.mirrorActors && o.stopy ? s.attr("y2", o.stopy + o.height / 2) : a.mirrorActors && s.attr("y2", o.stopy);
3223
3222
  });
3224
3223
  }, "fixLifeLineHeights"), fa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3225
- var S, w;
3226
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower();
3224
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower();
3227
3225
  var T = I;
3228
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), g === "neo" && T.attr("data-look", "neo"));
3226
+ a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), g === "neo" && T.attr("data-look", "neo"));
3229
3227
  let E = ht();
3230
3228
  var O = "actor";
3231
- (S = t.properties) != null && S.class ? O = t.properties.class : E.fill = "#eaeaea", a ? O += ` ${ut}` : O += ` ${gt}`, E.x = t.x, E.y = o, E.width = t.width, E.height = t.height, E.class = O, E.rx = 3, E.ry = 3, E.name = t.name, g === "neo" && (E.rx = 6, E.ry = 6);
3229
+ t.properties?.class ? O = t.properties.class : E.fill = "#eaeaea", a ? O += ` ${ut}` : O += ` ${gt}`, E.x = t.x, E.y = o, E.width = t.width, E.height = t.height, E.class = O, E.rx = 3, E.ry = 3, E.name = t.name, g === "neo" && (E.rx = 6, E.ry = 6);
3232
3230
  let _ = St(T, E), f = i.get(t.name) ?? 0;
3233
- if (Tt.has(h) && (_.style("stroke", u[f % u.length]), _.style("fill", x[f % u.length])), g === "neo" && _.attr("filter", "url(#drop-shadow)"), t.rectData = E, (w = t.properties) == null ? void 0 : w.icon) {
3234
- let P = t.properties.icon.trim();
3235
- P.charAt(0) === "@" ? ae(T, E.x + E.width - 20, E.y + 10, P.substr(1)) : re(T, E.x + E.width - 20, E.y + 10, P);
3231
+ if (Tt.has(h) && (_.style("stroke", u[f % u.length]), _.style("fill", x[f % u.length])), g === "neo" && _.attr("filter", "url(#drop-shadow)"), t.rectData = E, t.properties?.icon) {
3232
+ let S = t.properties.icon.trim();
3233
+ S.charAt(0) === "@" ? ae(T, E.x + E.width - 20, E.y + 10, S.substr(1)) : re(T, E.x + E.width - 20, E.y + 10, S);
3236
3234
  }
3237
- a || (T.attr("data-et", "participant"), T.attr("data-type", "participant"), T.attr("data-id", t.name)), Et(r, Z(t.description))(t.description, T, E.x, E.y, E.width, E.height, { class: `actor ${Vt}` }, r);
3235
+ a || (T.attr("data-et", "participant"), T.attr("data-type", "participant"), T.attr("data-id", t.name)), Et(r, X(t.description))(t.description, T, E.x, E.y, E.width, E.height, { class: `actor ${Vt}` }, r);
3238
3236
  let L = t.height;
3239
3237
  if (_.node) {
3240
- let P = _.node().getBBox();
3241
- t.height = P.height, L = P.height;
3238
+ let S = _.node().getBBox();
3239
+ t.height = S.height, L = S.height;
3242
3240
  }
3243
3241
  return L;
3244
3242
  }, "drawActorTypeParticipant"), Ra = /* @__PURE__ */ y(function(e, t, r, a, i) {
3245
- var P, Y;
3246
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower();
3243
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower();
3247
3244
  var T = I;
3248
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), g === "neo" && T.attr("data-look", "neo"));
3245
+ a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), g === "neo" && T.attr("data-look", "neo"));
3249
3246
  let E = ht();
3250
3247
  var O = "actor";
3251
- (P = t.properties) != null && P.class ? O = t.properties.class : E.fill = "#eaeaea", a ? O += ` ${ut}` : O += ` ${gt}`, E.x = t.x, E.y = o, E.width = t.width, E.height = t.height, E.class = O, E.name = t.name;
3248
+ t.properties?.class ? O = t.properties.class : E.fill = "#eaeaea", a ? O += ` ${ut}` : O += ` ${gt}`, E.x = t.x, E.y = o, E.width = t.width, E.height = t.height, E.class = O, E.name = t.name;
3252
3249
  let _ = {
3253
3250
  ...E,
3254
3251
  x: E.x + -6,
@@ -3257,98 +3254,94 @@ var ya = Zt, Oa = {
3257
3254
  }, f = St(T, E), L = St(T, _);
3258
3255
  t.rectData = E, g === "neo" && T.attr("filter", "url(#drop-shadow)");
3259
3256
  let S = i.get(t.name) ?? 0;
3260
- if (Tt.has(h) && (f.style("stroke", u[S % u.length]), f.style("fill", x[S % u.length]), L.style("stroke", u[S % u.length]), L.style("fill", x[S % u.length])), (Y = t.properties) == null ? void 0 : Y.icon) {
3261
- let B = t.properties.icon.trim();
3262
- B.charAt(0) === "@" ? ae(T, E.x + E.width - 20, E.y + 10, B.substr(1)) : re(T, E.x + E.width - 20, E.y + 10, B);
3257
+ if (Tt.has(h) && (f.style("stroke", u[S % u.length]), f.style("fill", x[S % u.length]), L.style("stroke", u[S % u.length]), L.style("fill", x[S % u.length])), t.properties?.icon) {
3258
+ let P = t.properties.icon.trim();
3259
+ P.charAt(0) === "@" ? ae(T, E.x + E.width - 20, E.y + 10, P.substr(1)) : re(T, E.x + E.width - 20, E.y + 10, P);
3263
3260
  }
3264
- Et(r, Z(t.description))(t.description, T, E.x - 6, E.y + 6, E.width, E.height, { class: `actor ${Vt}` }, r);
3265
- let w = t.height;
3261
+ Et(r, X(t.description))(t.description, T, E.x - 6, E.y + 6, E.width, E.height, { class: `actor ${Vt}` }, r);
3262
+ let A = t.height;
3266
3263
  if (f.node) {
3267
- let B = f.node().getBBox();
3268
- t.height = B.height, w = B.height;
3264
+ let P = f.node().getBBox();
3265
+ t.height = P.height, A = P.height;
3269
3266
  }
3270
- return a || (T.attr("data-et", "participant"), T.attr("data-type", "collections"), T.attr("data-id", t.name)), w;
3267
+ return a || (T.attr("data-et", "participant"), T.attr("data-type", "collections"), T.attr("data-id", t.name)), A;
3271
3268
  }, "drawActorTypeCollections"), La = /* @__PURE__ */ y(function(e, t, r, a, i) {
3272
- var U, K;
3273
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower(), T = I;
3274
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), g === "neo" && T.attr("data-look", "neo"));
3269
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower(), T = I;
3270
+ a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && T.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = I.append("g"), t.actorCnt = v, t.links != null && T.attr("id", "root-" + v), g === "neo" && T.attr("data-look", "neo"));
3275
3271
  let E = ht(), O = "actor";
3276
- (U = t.properties) != null && U.class ? O = t.properties.class : E.fill = "#eaeaea", a ? O += ` ${ut}` : O += ` ${gt}`, T.attr("class", O), E.x = t.x, E.y = o, E.width = t.width, E.height = t.height, E.name = t.name;
3277
- let _ = E.height / 2, f = _ / (2.5 + E.height / 50), L = T.append("g"), S = T.append("g"), w = `M ${E.x},${E.y + _}
3272
+ t.properties?.class ? O = t.properties.class : E.fill = "#eaeaea", a ? O += ` ${ut}` : O += ` ${gt}`, T.attr("class", O), E.x = t.x, E.y = o, E.width = t.width, E.height = t.height, E.name = t.name;
3273
+ let _ = E.height / 2, f = _ / (2.5 + E.height / 50), L = T.append("g"), S = T.append("g"), A = `M ${E.x},${E.y + _}
3278
3274
  a ${f},${_} 0 0 0 0,${E.height}
3279
3275
  h ${E.width - 2 * f}
3280
3276
  a ${f},${_} 0 0 0 0,-${E.height}
3281
3277
  Z
3282
3278
  `;
3283
- L.append("path").attr("d", w), S.append("path").attr("d", `M ${E.x},${E.y + _}
3279
+ L.append("path").attr("d", A), S.append("path").attr("d", `M ${E.x},${E.y + _}
3284
3280
  a ${f},${_} 0 0 0 0,${E.height}`), L.attr("transform", `translate(${f}, ${-(E.height / 2)})`), S.attr("transform", `translate(${E.width - f}, ${-E.height / 2})`), t.rectData = E, g === "neo" && L.attr("filter", "url(#drop-shadow)");
3285
3281
  let P = i.get(t.name) ?? 0;
3286
- if (Tt.has(h) && (L.style("stroke", u[P % u.length]), L.style("fill", x[P % u.length]), S.style("stroke", u[P % u.length]), S.style("fill", x[P % u.length])), (K = t.properties) == null ? void 0 : K.icon) {
3287
- let q = t.properties.icon.trim(), j = E.x + E.width - 20, J = E.y + 10;
3288
- q.charAt(0) === "@" ? ae(T, j, J, q.substr(1)) : re(T, j, J, q);
3282
+ if (Tt.has(h) && (L.style("stroke", u[P % u.length]), L.style("fill", x[P % u.length]), S.style("stroke", u[P % u.length]), S.style("fill", x[P % u.length])), t.properties?.icon) {
3283
+ let V = t.properties.icon.trim(), z = E.x + E.width - 20, U = E.y + 10;
3284
+ V.charAt(0) === "@" ? ae(T, z, U, V.substr(1)) : re(T, z, U, V);
3289
3285
  }
3290
- Et(r, Z(t.description))(t.description, T, E.x, E.y, E.width, E.height, { class: `actor ${Vt}` }, r);
3291
- let Y = t.height, B = L.select("path:last-child");
3292
- if (B.node()) {
3293
- let q = B.node().getBBox();
3294
- t.height = q.height, Y = q.height;
3286
+ Et(r, X(t.description))(t.description, T, E.x, E.y, E.width, E.height, { class: `actor ${Vt}` }, r);
3287
+ let q = t.height, $ = L.select("path:last-child");
3288
+ if ($.node()) {
3289
+ let V = $.node().getBBox();
3290
+ t.height = V.height, q = V.height;
3295
3291
  }
3296
- return a || (T.attr("data-et", "participant"), T.attr("data-type", "queue"), T.attr("data-id", t.name)), Y;
3292
+ return a || (T.attr("data-et", "participant"), T.attr("data-type", "queue"), T.attr("data-id", t.name)), q;
3297
3293
  }, "drawActorTypeQueue"), Na = /* @__PURE__ */ y(function(e, t, r, a, i, o) {
3298
- var Y;
3299
- let s = a ? t.stopy : t.starty, l = t.x + t.width / 2, g = s + 75, { look: h, theme: n, themeVariables: x } = r, { bkgColorArray: u, borderColorArray: I, actorBorder: T, actorBkg: E } = x, O = e.append("g").lower();
3300
- a || (v++, O.append("line").attr("id", "actor" + v).attr("x1", l).attr("y1", g).attr("x2", l).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3294
+ let s = a ? t.stopy : t.starty, c = t.x + t.width / 2, g = s + 75, { look: h, theme: n, themeVariables: x } = r, { bkgColorArray: u, borderColorArray: I, actorBorder: T, actorBkg: E } = x, O = e.append("g").lower();
3295
+ a || (v++, O.append("line").attr("id", "actor" + v).attr("x1", c).attr("y1", g).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3301
3296
  let _ = e.append("g"), f = bt;
3302
3297
  a ? f += ` ${ut}` : f += ` ${gt}`, _.attr("class", f), _.attr("name", t.name);
3303
3298
  let L = ht();
3304
3299
  L.x = t.x, L.y = s, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor";
3305
- let S = t.x + t.width / 2, w = s + 32;
3306
- _.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), _.append("circle").attr("cx", S).attr("cy", w).attr("r", 22).attr("filter", `${h === "neo" ? "url(#drop-shadow)" : ""}`), _.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${w - 22})`);
3300
+ let S = t.x + t.width / 2, A = s + 32;
3301
+ _.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), _.append("circle").attr("cx", S).attr("cy", A).attr("r", 22).attr("filter", `${h === "neo" ? "url(#drop-shadow)" : ""}`), _.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${A - 22})`);
3307
3302
  let P = o.get(t.name) ?? 0;
3308
- return Tt.has(n) ? (_.style("stroke", I[P % I.length]), _.style("fill", u[P % I.length])) : (_.style("stroke", T), _.style("fill", E)), t.height = _.node().getBBox().height + 2 * (((Y = r == null ? void 0 : r.sequence) == null ? void 0 : Y.labelBoxHeight) ?? 0), Et(r, Z(t.description))(t.description, _, L.x, L.y + 22 + (a ? 5 : 12), L.width, L.height, { class: `actor ${bt}` }, r), a || (_.attr("data-et", "participant"), _.attr("data-type", "control"), _.attr("data-id", t.name)), t.height;
3303
+ return Tt.has(n) ? (_.style("stroke", I[P % I.length]), _.style("fill", u[P % I.length])) : (_.style("stroke", T), _.style("fill", E)), t.height = _.node().getBBox().height + 2 * (r?.sequence?.labelBoxHeight ?? 0), Et(r, X(t.description))(t.description, _, L.x, L.y + 22 + (a ? 5 : 12), L.width, L.height, { class: `actor ${bt}` }, r), a || (_.attr("data-et", "participant"), _.attr("data-type", "control"), _.attr("data-id", t.name)), t.height;
3309
3304
  }, "drawActorTypeControl"), Sa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3310
- var S;
3311
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + 75, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower(), T = e.append("g"), E = "actor";
3305
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u } = n, I = e.append("g").lower(), T = e.append("g"), E = "actor";
3312
3306
  a ? E += ` ${ut}` : E += ` ${gt}`, T.attr("class", E), T.attr("name", t.name);
3313
3307
  let O = ht();
3314
3308
  O.x = t.x, O.y = o, O.fill = "#eaeaea", O.width = t.width, O.height = t.height, O.class = "actor";
3315
3309
  let _ = t.x + t.width / 2, f = o + (a ? 10 : 25);
3316
3310
  T.append("circle").attr("cx", _).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), T.append("line").attr("x1", _ - 22).attr("x2", _ + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), g === "neo" && T.attr("filter", "url(#drop-shadow)");
3317
3311
  let L = i.get(t.name) ?? 0;
3318
- return Tt.has(h) && (T.style("stroke", u[L % u.length]), T.style("fill", x[L % u.length])), t.height = T.node().getBBox().height + (((S = r == null ? void 0 : r.sequence) == null ? void 0 : S.labelBoxHeight) ?? 0), a || (v++, I.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v), Et(r, Z(t.description))(t.description, T, O.x, O.y + (a ? 15 : 30), O.width, O.height, { class: `actor ${bt}` }, r), a ? T.attr("transform", "translate(0, 22)") : (T.attr("transform", `translate(0, ${22 / 2 - 5})`), T.attr("data-et", "participant"), T.attr("data-type", "entity"), T.attr("data-id", t.name)), t.height;
3312
+ return Tt.has(h) && (T.style("stroke", u[L % u.length]), T.style("fill", x[L % u.length])), t.height = T.node().getBBox().height + (r?.sequence?.labelBoxHeight ?? 0), a || (v++, I.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v), Et(r, X(t.description))(t.description, T, O.x, O.y + (a ? 15 : 30), O.width, O.height, { class: `actor ${bt}` }, r), a ? T.attr("transform", "translate(0, 22)") : (T.attr("transform", `translate(0, ${22 / 2 - 5})`), T.attr("data-et", "participant"), T.attr("data-type", "entity"), T.attr("data-id", t.name)), t.height;
3319
3313
  }, "drawActorTypeEntity"), Pa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3320
- var K;
3321
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + t.height + 2 * r.boxTextMargin, { theme: g, themeVariables: h, look: n } = r, { bkgColorArray: x, borderColorArray: u, actorBorder: I } = h, T = e.append("g").lower(), E = T;
3322
- a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && E.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), E.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), E = T.append("g"), t.actorCnt = v, t.links != null && E.attr("id", "root-" + v), n === "neo" && E.attr("data-look", "neo"));
3314
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height + 2 * r.boxTextMargin, { theme: g, themeVariables: h, look: n } = r, { bkgColorArray: x, borderColorArray: u, actorBorder: I } = h, T = e.append("g").lower(), E = T;
3315
+ a || (v++, Object.keys(t.links || {}).length && !r.forceMenus && E.attr("onclick", Wt(`actor${v}_popup`)).attr("cursor", "pointer"), E.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), E = T.append("g"), t.actorCnt = v, t.links != null && E.attr("id", "root-" + v), n === "neo" && E.attr("data-look", "neo"));
3323
3316
  let O = ht(), _ = "actor";
3324
- (K = t.properties) != null && K.class ? _ = t.properties.class : O.fill = "#eaeaea", a ? _ += ` ${ut}` : _ += ` ${gt}`, O.x = t.x, O.y = o, O.width = t.width, O.height = t.height, O.class = _, O.name = t.name, O.x = t.x, O.y = o;
3325
- let f = O.width / 3, L = O.width / 3, S = f / 2, w = S / (2.5 + f / 50), P = E.append("g");
3317
+ t.properties?.class ? _ = t.properties.class : O.fill = "#eaeaea", a ? _ += ` ${ut}` : _ += ` ${gt}`, O.x = t.x, O.y = o, O.width = t.width, O.height = t.height, O.class = _, O.name = t.name, O.x = t.x, O.y = o;
3318
+ let f = O.width / 3, L = O.width / 3, S = f / 2, A = S / (2.5 + f / 50), P = E.append("g");
3326
3319
  P.attr("class", _);
3327
- let Y = `
3328
- M ${O.x},${O.y + w}
3329
- a ${S},${w} 0 0 0 ${f},0
3330
- a ${S},${w} 0 0 0 -${f},0
3331
- l 0,${L - 2 * w}
3332
- a ${S},${w} 0 0 0 ${f},0
3333
- l 0,-${L - 2 * w}
3320
+ let q = `
3321
+ M ${O.x},${O.y + A}
3322
+ a ${S},${A} 0 0 0 ${f},0
3323
+ a ${S},${A} 0 0 0 -${f},0
3324
+ l 0,${L - 2 * A}
3325
+ a ${S},${A} 0 0 0 ${f},0
3326
+ l 0,-${L - 2 * A}
3334
3327
  `;
3335
- P.append("path").attr("d", Y), n === "neo" && P.attr("filter", "url(#drop-shadow)");
3336
- let B = i.get(t.name) ?? 0;
3337
- Tt.has(g) ? (P.style("stroke", u[B % u.length]), P.style("fill", x[B % u.length])) : P.style("stroke", I), P.attr("transform", `translate(${f}, ${w})`), t.rectData = O, Et(r, Z(t.description))(t.description, E, O.x, O.y + 35, O.width, O.height, { class: `actor ${Vt}` }, r);
3338
- let U = P.select("path:last-child");
3339
- return U.node() && (t.height = U.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0)), a || (E.attr("data-et", "participant"), E.attr("data-type", "database"), E.attr("data-id", t.name)), t.height;
3328
+ P.append("path").attr("d", q), n === "neo" && P.attr("filter", "url(#drop-shadow)");
3329
+ let $ = i.get(t.name) ?? 0;
3330
+ Tt.has(g) ? (P.style("stroke", u[$ % u.length]), P.style("fill", x[$ % u.length])) : P.style("stroke", I), P.attr("transform", `translate(${f}, ${A})`), t.rectData = O, Et(r, X(t.description))(t.description, E, O.x, O.y + 35, O.width, O.height, { class: `actor ${Vt}` }, r);
3331
+ let V = P.select("path:last-child");
3332
+ return V.node() && (t.height = V.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0)), a || (E.attr("data-et", "participant"), E.attr("data-type", "database"), E.attr("data-id", t.name)), t.height;
3340
3333
  }, "drawActorTypeDatabase"), wa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3341
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + 80, g = e.append("g").lower(), { look: h, theme: n, themeVariables: x } = r, { bkgColorArray: u, borderColorArray: I, actorBorder: T } = x;
3342
- a || (v++, g.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3334
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, g = e.append("g").lower(), { look: h, theme: n, themeVariables: x } = r, { bkgColorArray: u, borderColorArray: I, actorBorder: T } = x;
3335
+ a || (v++, g.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3343
3336
  let E = e.append("g"), O = bt;
3344
3337
  a ? O += ` ${ut}` : O += ` ${gt}`, E.attr("class", O), E.attr("name", t.name);
3345
3338
  let _ = ht();
3346
3339
  _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor", E.append("line").attr("id", "actor-man-torso" + v).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), E.append("line").attr("id", "actor-man-arms" + v).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", o + 22), E.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", 22), h === "neo" && E.attr("filter", "url(#drop-shadow)");
3347
3340
  let f = i.get(t.name) ?? 0;
3348
- return Tt.has(n) ? (E.style("stroke", I[f % I.length]), E.style("fill", u[f % I.length])) : E.style("stroke", T), t.height = E.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0), Et(r, Z(t.description))(t.description, E, _.x, _.y + 15, _.width, _.height, { class: `actor ${bt}` }, r), E.attr("transform", "translate(0,21)"), a || (E.attr("data-et", "participant"), E.attr("data-type", "boundary"), E.attr("data-id", t.name)), t.height;
3341
+ return Tt.has(n) ? (E.style("stroke", I[f % I.length]), E.style("fill", u[f % I.length])) : E.style("stroke", T), t.height = E.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0), Et(r, X(t.description))(t.description, E, _.x, _.y + 15, _.width, _.height, { class: `actor ${bt}` }, r), E.attr("transform", "translate(0,21)"), a || (E.attr("data-et", "participant"), E.attr("data-type", "boundary"), E.attr("data-id", t.name)), t.height;
3349
3342
  }, "drawActorTypeBoundary"), Aa = /* @__PURE__ */ y(function(e, t, r, a, i) {
3350
- let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, l = o + 80, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u, actorBorder: I } = n, T = e.append("g").lower();
3351
- a || (v++, T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3343
+ let o = a ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: g, theme: h, themeVariables: n } = r, { bkgColorArray: x, borderColorArray: u, actorBorder: I } = n, T = e.append("g").lower();
3344
+ a || (v++, T.append("line").attr("id", "actor" + v).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = v);
3352
3345
  let E = e.append("g"), O = bt;
3353
3346
  a ? O += ` ${ut}` : O += ` ${gt}`, E.attr("class", O), E.attr("name", t.name), a || E.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3354
3347
  let _ = g === "neo" ? 0.5 : 1, f = g === "neo" ? o + (1 - _) * 30 : o;
@@ -3357,27 +3350,27 @@ var ya = Zt, Oa = {
3357
3350
  L.attr("cx", t.x + t.width / 2), L.attr("cy", f + 10 * _), L.attr("r", 15 * _), L.attr("width", t.width * _), L.attr("height", t.height * _), t.height = E.node().getBBox().height;
3358
3351
  let S = ht();
3359
3352
  S.x = t.x, S.y = f, S.fill = "#eaeaea", S.width = t.width, S.height = t.height / _, S.class = "actor", S.rx = 3, S.ry = 3;
3360
- let w = i.get(t.name) ?? 0;
3361
- return Tt.has(h) ? (E.style("stroke", u[w % u.length]), E.style("fill", x[w % u.length])) : E.style("stroke", I), Et(r, Z(t.description))(t.description, E, S.x, f + 35 * _ - (g === "neo" ? 10 : 0), S.width, S.height, { class: `actor ${bt}` }, r), t.height;
3353
+ let A = i.get(t.name) ?? 0;
3354
+ return Tt.has(h) ? (E.style("stroke", u[A % u.length]), E.style("fill", x[A % u.length])) : E.style("stroke", I), Et(r, X(t.description))(t.description, E, S.x, f + 35 * _ - (g === "neo" ? 10 : 0), S.width, S.height, { class: `actor ${bt}` }, r), t.height;
3362
3355
  }, "drawActorTypeActor"), Da = /* @__PURE__ */ y(async function(e, t, r, a, i, o, s) {
3363
- let l = s ?? new Map([...o.db.getActors().values()].map((g, h) => [g.name, h]));
3356
+ let c = s ?? new Map([...o.db.getActors().values()].map((g, h) => [g.name, h]));
3364
3357
  switch (t.type) {
3365
3358
  case "actor":
3366
- return await Aa(e, t, r, a, l);
3359
+ return await Aa(e, t, r, a, c);
3367
3360
  case "participant":
3368
- return await fa(e, t, r, a, l);
3361
+ return await fa(e, t, r, a, c);
3369
3362
  case "boundary":
3370
- return await wa(e, t, r, a, l);
3363
+ return await wa(e, t, r, a, c);
3371
3364
  case "control":
3372
- return await Na(e, t, r, a, i, l);
3365
+ return await Na(e, t, r, a, i, c);
3373
3366
  case "entity":
3374
- return await Sa(e, t, r, a, l);
3367
+ return await Sa(e, t, r, a, c);
3375
3368
  case "database":
3376
- return await Pa(e, t, r, a, l);
3369
+ return await Pa(e, t, r, a, c);
3377
3370
  case "collections":
3378
- return await Ra(e, t, r, a, l);
3371
+ return await Ra(e, t, r, a, c);
3379
3372
  case "queue":
3380
- return await La(e, t, r, a, l);
3373
+ return await La(e, t, r, a, c);
3381
3374
  }
3382
3375
  }, "drawActor"), ka = /* @__PURE__ */ y(function(e, t, r) {
3383
3376
  let a = e.append("g");
@@ -3385,23 +3378,23 @@ var ya = Zt, Oa = {
3385
3378
  }, "drawBox"), Ca = /* @__PURE__ */ y(function(e) {
3386
3379
  return e.append("g");
3387
3380
  }, "anchorElement"), Ma = /* @__PURE__ */ y(function(e, t, r, a, i, o, s) {
3388
- let { theme: l, themeVariables: g } = a, { bkgColorArray: h, borderColorArray: n, mainBkg: x } = g, u = ht(), I = t.anchored, T = t.actor;
3381
+ let { theme: c, themeVariables: g } = a, { bkgColorArray: h, borderColorArray: n, mainBkg: x } = g, u = ht(), I = t.anchored, T = t.actor;
3389
3382
  u.x = t.startx, u.y = t.starty, u.class = "activation" + i % 3, u.width = t.stopx - t.startx, u.height = r - t.starty;
3390
3383
  let E = St(I, u), O = (s ?? new Map([...o.db.getActors().values()].map((_, f) => [_.name, f]))).get(T) ?? 0;
3391
- Tt.has(l) && (E.style("stroke", n[O % n.length]), E.style("fill", h[O % n.length] ?? x));
3384
+ Tt.has(c) && (E.style("stroke", n[O % n.length]), E.style("fill", h[O % n.length] ?? x));
3392
3385
  }, "drawActivation"), va = /* @__PURE__ */ y(async function(e, t, r, a, i) {
3393
- let { boxMargin: o, boxTextMargin: s, labelBoxHeight: l, labelBoxWidth: g, messageFontFamily: h, messageFontSize: n, messageFontWeight: x } = a, u = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), I = /* @__PURE__ */ y(function(O, _, f, L) {
3386
+ let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: g, messageFontFamily: h, messageFontSize: n, messageFontWeight: x } = a, u = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), I = /* @__PURE__ */ y(function(O, _, f, L) {
3394
3387
  return u.append("line").attr("x1", O).attr("y1", _).attr("x2", f).attr("y2", L).attr("class", "loopLine");
3395
3388
  }, "drawLoopLine");
3396
3389
  I(t.startx, t.starty, t.stopx, t.starty), I(t.stopx, t.starty, t.stopx, t.stopy), I(t.startx, t.stopy, t.stopx, t.stopy), I(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(O) {
3397
3390
  I(t.startx, O.y, t.stopx, O.y).style("stroke-dasharray", "3, 3");
3398
3391
  });
3399
3392
  let T = ee();
3400
- T.text = r, T.x = t.startx, T.y = t.starty, T.fontFamily = h, T.fontSize = n, T.fontWeight = x, T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.width = Math.max(g ?? 0, 50), T.height = l + (a.look === "neo" ? 15 : 0) || 20, T.textMargin = s, T.class = "labelText", $e(u, T), T = Fe(), T.text = t.title, T.x = t.startx + g / 2 + (t.stopx - t.startx) / 2, T.y = t.starty + o + s, T.anchor = "middle", T.valign = "middle", T.textMargin = s, T.class = "loopText", T.fontFamily = h, T.fontSize = n, T.fontWeight = x, T.wrap = !0;
3401
- let E = Z(T.text) ? await $t(u, T, t) : Rt(u, T);
3393
+ T.text = r, T.x = t.startx, T.y = t.starty, T.fontFamily = h, T.fontSize = n, T.fontWeight = x, T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.width = Math.max(g ?? 0, 50), T.height = c + (a.look === "neo" ? 15 : 0) || 20, T.textMargin = s, T.class = "labelText", $e(u, T), T = Fe(), T.text = t.title, T.x = t.startx + g / 2 + (t.stopx - t.startx) / 2, T.y = t.starty + o + s, T.anchor = "middle", T.valign = "middle", T.textMargin = s, T.class = "loopText", T.fontFamily = h, T.fontSize = n, T.fontWeight = x, T.wrap = !0;
3394
+ let E = X(T.text) ? await $t(u, T, t) : Rt(u, T);
3402
3395
  if (t.sectionTitles !== void 0) {
3403
3396
  for (let [O, _] of Object.entries(t.sectionTitles)) if (_.message) {
3404
- T.text = _.message, T.x = t.startx + (t.stopx - t.startx) / 2, T.y = t.sections[O].y + o + s, T.class = "sectionTitle", T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.fontFamily = h, T.fontSize = n, T.fontWeight = x, T.wrap = t.wrap, Z(T.text) ? (t.starty = t.sections[O].y, await $t(u, T, t)) : Rt(u, T);
3397
+ T.text = _.message, T.x = t.startx + (t.stopx - t.startx) / 2, T.y = t.sections[O].y + o + s, T.class = "sectionTitle", T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.fontFamily = h, T.fontSize = n, T.fontWeight = x, T.wrap = t.wrap, X(T.text) ? (t.starty = t.sections[O].y, await $t(u, T, t)) : Rt(u, T);
3405
3398
  let f = Math.round(E.map((L) => (L._groups || L)[0][0].getBBox().height).reduce((L, S) => L + S));
3406
3399
  t.sections[O].height += f - (o + s);
3407
3400
  }
@@ -3453,51 +3446,51 @@ var ya = Zt, Oa = {
3453
3446
  rx: 0,
3454
3447
  ry: 0
3455
3448
  };
3456
- }, "getNoteRect"), Et = /* @__PURE__ */ function() {
3457
- function e(o, s, l, g, h, n, x) {
3458
- i(s.append("text").attr("x", l + h / 2).attr("y", g + n / 2 + 5).style("text-anchor", "middle").text(o), x);
3449
+ }, "getNoteRect"), Et = /* @__PURE__ */ (function() {
3450
+ function e(o, s, c, g, h, n, x) {
3451
+ i(s.append("text").attr("x", c + h / 2).attr("y", g + n / 2 + 5).style("text-anchor", "middle").text(o), x);
3459
3452
  }
3460
3453
  y(e, "byText");
3461
- function t(o, s, l, g, h, n, x, u) {
3462
- let { actorFontSize: I, actorFontFamily: T, actorFontWeight: E } = u, [O, _] = ve(I), f = o.split(A.lineBreakRegex);
3454
+ function t(o, s, c, g, h, n, x, u) {
3455
+ let { actorFontSize: I, actorFontFamily: T, actorFontWeight: E } = u, [O, _] = ve(I), f = o.split(w.lineBreakRegex);
3463
3456
  for (let L = 0; L < f.length; L++) {
3464
- let S = L * O - O * (f.length - 1) / 2, w = s.append("text").attr("x", l + h / 2).attr("y", g).style("text-anchor", "middle").style("font-size", _).style("font-weight", E).style("font-family", T);
3465
- w.append("tspan").attr("x", l + h / 2).attr("dy", S).text(f[L]), w.attr("y", g + n / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(w, x);
3457
+ let S = L * O - O * (f.length - 1) / 2, A = s.append("text").attr("x", c + h / 2).attr("y", g).style("text-anchor", "middle").style("font-size", _).style("font-weight", E).style("font-family", T);
3458
+ A.append("tspan").attr("x", c + h / 2).attr("dy", S).text(f[L]), A.attr("y", g + n / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(A, x);
3466
3459
  }
3467
3460
  }
3468
3461
  y(t, "byTspan");
3469
- function r(o, s, l, g, h, n, x, u) {
3470
- let I = s.append("switch"), T = I.append("foreignObject").attr("x", l).attr("y", g).attr("width", h).attr("height", n).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3471
- T.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(o), t(o, I, l, g, h, n, x, u), i(T, x);
3462
+ function r(o, s, c, g, h, n, x, u) {
3463
+ let I = s.append("switch"), T = I.append("foreignObject").attr("x", c).attr("y", g).attr("width", h).attr("height", n).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3464
+ T.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(o), t(o, I, c, g, h, n, x, u), i(T, x);
3472
3465
  }
3473
3466
  y(r, "byFo");
3474
- async function a(o, s, l, g, h, n, x, u) {
3475
- let I = await Pt(o, Yt()), T = s.append("switch"), E = T.append("foreignObject").attr("x", l + h / 2 - I.width / 2).attr("y", g + n / 2 - I.height / 2).attr("width", I.width).attr("height", I.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3476
- E.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(o, Yt())), t(o, T, l, g, h, n, x, u), i(E, x);
3467
+ async function a(o, s, c, g, h, n, x, u) {
3468
+ let I = await Pt(o, Yt()), T = s.append("switch"), E = T.append("foreignObject").attr("x", c + h / 2 - I.width / 2).attr("y", g + n / 2 - I.height / 2).attr("width", I.width).attr("height", I.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3469
+ E.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(o, Yt())), t(o, T, c, g, h, n, x, u), i(E, x);
3477
3470
  }
3478
3471
  y(a, "byKatex");
3479
3472
  function i(o, s) {
3480
- for (let l in s) s.hasOwnProperty(l) && o.attr(l, s[l]);
3473
+ for (let c in s) s.hasOwnProperty(c) && o.attr(c, s[c]);
3481
3474
  }
3482
3475
  return y(i, "_setTextAttrs"), function(o, s = !1) {
3483
3476
  return s ? a : o.textPlacement === "fo" ? r : o.textPlacement === "old" ? e : t;
3484
3477
  };
3485
- }(), za = /* @__PURE__ */ function() {
3486
- function e(i, o, s, l, g, h, n) {
3487
- a(o.append("text").attr("x", s).attr("y", l).style("text-anchor", "start").text(i), n);
3478
+ })(), za = /* @__PURE__ */ (function() {
3479
+ function e(i, o, s, c, g, h, n) {
3480
+ a(o.append("text").attr("x", s).attr("y", c).style("text-anchor", "start").text(i), n);
3488
3481
  }
3489
3482
  y(e, "byText");
3490
- function t(i, o, s, l, g, h, n, x) {
3491
- let { actorFontSize: u, actorFontFamily: I, actorFontWeight: T } = x, E = i.split(A.lineBreakRegex);
3483
+ function t(i, o, s, c, g, h, n, x) {
3484
+ let { actorFontSize: u, actorFontFamily: I, actorFontWeight: T } = x, E = i.split(w.lineBreakRegex);
3492
3485
  for (let O = 0; O < E.length; O++) {
3493
- let _ = O * u - u * (E.length - 1) / 2, f = o.append("text").attr("x", s).attr("y", l).style("text-anchor", "start").style("font-size", u).style("font-weight", T).style("font-family", I);
3494
- f.append("tspan").attr("x", s).attr("dy", _).text(E[O]), f.attr("y", l + h / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(f, n);
3486
+ let _ = O * u - u * (E.length - 1) / 2, f = o.append("text").attr("x", s).attr("y", c).style("text-anchor", "start").style("font-size", u).style("font-weight", T).style("font-family", I);
3487
+ f.append("tspan").attr("x", s).attr("dy", _).text(E[O]), f.attr("y", c + h / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(f, n);
3495
3488
  }
3496
3489
  }
3497
3490
  y(t, "byTspan");
3498
- function r(i, o, s, l, g, h, n, x) {
3499
- let u = o.append("switch"), I = u.append("foreignObject").attr("x", s).attr("y", l).attr("width", g).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3500
- I.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, u, s, l, g, h, n, x), a(I, n);
3491
+ function r(i, o, s, c, g, h, n, x) {
3492
+ let u = o.append("switch"), I = u.append("foreignObject").attr("x", s).attr("y", c).attr("width", g).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3493
+ I.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, u, s, c, g, h, n, x), a(I, n);
3501
3494
  }
3502
3495
  y(r, "byFo");
3503
3496
  function a(i, o) {
@@ -3506,7 +3499,7 @@ var ya = Zt, Oa = {
3506
3499
  return y(a, "_setTextAttrs"), function(i) {
3507
3500
  return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? e : t;
3508
3501
  };
3509
- }(), F = {
3502
+ })(), F = {
3510
3503
  drawRect: St,
3511
3504
  drawText: Rt,
3512
3505
  drawLabel: $e,
@@ -3597,25 +3590,25 @@ var ya = Zt, Oa = {
3597
3590
  stopx: void 0,
3598
3591
  starty: void 0,
3599
3592
  stopy: void 0
3600
- }, this.verticalPos = 0, He(Q());
3593
+ }, this.verticalPos = 0, He(Z());
3601
3594
  }, "init"),
3602
3595
  updateVal: /* @__PURE__ */ y(function(e, t, r, a) {
3603
3596
  e[t] === void 0 ? e[t] = r : e[t] = a(r, e[t]);
3604
3597
  }, "updateVal"),
3605
3598
  updateBounds: /* @__PURE__ */ y(function(e, t, r, a) {
3606
3599
  let i = this, o = 0;
3607
- function s(l) {
3600
+ function s(c) {
3608
3601
  return /* @__PURE__ */ y(function(g) {
3609
3602
  o++;
3610
3603
  let h = i.sequenceItems.length - o + 1;
3611
- i.updateVal(g, "starty", t - h * d.boxMargin, Math.min), i.updateVal(g, "stopy", a + h * d.boxMargin, Math.max), i.updateVal(m.data, "startx", e - h * d.boxMargin, Math.min), i.updateVal(m.data, "stopx", r + h * d.boxMargin, Math.max), l !== "activation" && (i.updateVal(g, "startx", e - h * d.boxMargin, Math.min), i.updateVal(g, "stopx", r + h * d.boxMargin, Math.max), i.updateVal(m.data, "starty", t - h * d.boxMargin, Math.min), i.updateVal(m.data, "stopy", a + h * d.boxMargin, Math.max));
3604
+ i.updateVal(g, "starty", t - h * d.boxMargin, Math.min), i.updateVal(g, "stopy", a + h * d.boxMargin, Math.max), i.updateVal(m.data, "startx", e - h * d.boxMargin, Math.min), i.updateVal(m.data, "stopx", r + h * d.boxMargin, Math.max), c !== "activation" && (i.updateVal(g, "startx", e - h * d.boxMargin, Math.min), i.updateVal(g, "stopx", r + h * d.boxMargin, Math.max), i.updateVal(m.data, "starty", t - h * d.boxMargin, Math.min), i.updateVal(m.data, "stopy", a + h * d.boxMargin, Math.max));
3612
3605
  }, "updateItemBounds");
3613
3606
  }
3614
3607
  y(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3615
3608
  }, "updateBounds"),
3616
3609
  insert: /* @__PURE__ */ y(function(e, t, r, a) {
3617
- let i = A.getMin(e, r), o = A.getMax(e, r), s = A.getMin(t, a), l = A.getMax(t, a);
3618
- this.updateVal(m.data, "startx", i, Math.min), this.updateVal(m.data, "starty", s, Math.min), this.updateVal(m.data, "stopx", o, Math.max), this.updateVal(m.data, "stopy", l, Math.max), this.updateBounds(i, s, o, l);
3610
+ let i = w.getMin(e, r), o = w.getMax(e, r), s = w.getMin(t, a), c = w.getMax(t, a);
3611
+ this.updateVal(m.data, "startx", i, Math.min), this.updateVal(m.data, "starty", s, Math.min), this.updateVal(m.data, "stopx", o, Math.max), this.updateVal(m.data, "stopy", c, Math.max), this.updateBounds(i, s, o, c);
3619
3612
  }, "insert"),
3620
3613
  newActivation: /* @__PURE__ */ y(function(e, t, r) {
3621
3614
  let a = r.get(e.from), i = Ft(e.from).length || 0, o = a.x + a.width / 2 + (i - 1) * d.activationWidth / 2;
@@ -3678,7 +3671,7 @@ var ya = Zt, Oa = {
3678
3671
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3679
3672
  }, "resetVerticalPos"),
3680
3673
  bumpVerticalPos: /* @__PURE__ */ y(function(e) {
3681
- this.verticalPos += e, this.data.stopy = A.getMax(this.data.stopy, this.verticalPos);
3674
+ this.verticalPos += e, this.data.stopy = w.getMax(this.data.stopy, this.verticalPos);
3682
3675
  }, "bumpVerticalPos"),
3683
3676
  getVerticalPos: /* @__PURE__ */ y(function() {
3684
3677
  return this.verticalPos;
@@ -3697,15 +3690,15 @@ var ya = Zt, Oa = {
3697
3690
  i.attr("data-et", "note"), i.attr("data-id", "i" + r);
3698
3691
  let o = F.drawRect(i, a), s = ee();
3699
3692
  s.x = t.startx, s.y = t.starty, s.width = a.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = d.noteFontFamily, s.fontSize = d.noteFontSize, s.fontWeight = d.noteFontWeight, s.anchor = d.noteAlign, s.textMargin = d.noteMargin, s.valign = "center";
3700
- let l = Z(s.text) ? await $t(i, s) : Rt(i, s), g = Math.round(l.map((h) => (h._groups || h)[0][0].getBBox().height).reduce((h, n) => h + n));
3693
+ let c = X(s.text) ? await $t(i, s) : Rt(i, s), g = Math.round(c.map((h) => (h._groups || h)[0][0].getBBox().height).reduce((h, n) => h + n));
3701
3694
  o.attr("height", g + 2 * d.noteMargin), t.height += g + 2 * d.noteMargin, m.bumpVerticalPos(g + 2 * d.noteMargin), t.stopy = t.starty + g + 2 * d.noteMargin, t.stopx = t.startx + a.width, m.insert(t.startx, t.starty, t.stopx, t.stopy), m.models.addNote(t);
3702
3695
  }, "drawNote"), Ce = /* @__PURE__ */ y(function(e, t, r, a, i, o, s) {
3703
- let l = a.db.getActors(), g = l.get(t.from), h = l.get(t.to), n = r.sequenceVisible, x = g.x + g.width / 2, u = h.x + h.width / 2, I = x <= u, T = Ge(t, a), E = e.append("g"), O = 16.5, _ = /* @__PURE__ */ y((P, Y) => {
3704
- let B = P ? O : -O;
3705
- return Y ? -B : B;
3696
+ let c = a.db.getActors(), g = c.get(t.from), h = c.get(t.to), n = r.sequenceVisible, x = g.x + g.width / 2, u = h.x + h.width / 2, I = x <= u, T = Ge(t, a), E = e.append("g"), O = 16.5, _ = /* @__PURE__ */ y((P, q) => {
3697
+ let $ = P ? O : -O;
3698
+ return q ? -$ : $;
3706
3699
  }, "getCircleOffset"), f = /* @__PURE__ */ y((P) => {
3707
3700
  E.append("circle").attr("cx", P).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3708
- }, "drawCircle"), { CENTRAL_CONNECTION: L, CENTRAL_CONNECTION_REVERSE: S, CENTRAL_CONNECTION_DUAL: w } = a.db.LINETYPE;
3701
+ }, "drawCircle"), { CENTRAL_CONNECTION: L, CENTRAL_CONNECTION_REVERSE: S, CENTRAL_CONNECTION_DUAL: A } = a.db.LINETYPE;
3709
3702
  if (n) switch (t.centralConnection) {
3710
3703
  case L:
3711
3704
  T && (u += _(I, !0));
@@ -3713,7 +3706,7 @@ var ya = Zt, Oa = {
3713
3706
  case S:
3714
3707
  T || (x += _(I, !1));
3715
3708
  break;
3716
- case w:
3709
+ case A:
3717
3710
  T ? u += _(I, !0) : x += _(I, !1);
3718
3711
  break;
3719
3712
  }
@@ -3724,7 +3717,7 @@ var ya = Zt, Oa = {
3724
3717
  case S:
3725
3718
  f(x);
3726
3719
  break;
3727
- case w:
3720
+ case A:
3728
3721
  f(x), f(u);
3729
3722
  break;
3730
3723
  }
@@ -3743,69 +3736,69 @@ var ya = Zt, Oa = {
3743
3736
  }), "actorFont");
3744
3737
  async function Ke(e, t) {
3745
3738
  m.bumpVerticalPos(10);
3746
- let { startx: r, stopx: a, message: i } = t, o = A.splitBreaks(i).length, s = Z(i), l = s ? await Pt(i, Q()) : X.calculateTextDimensions(i, xt(d));
3739
+ let { startx: r, stopx: a, message: i } = t, o = w.splitBreaks(i).length, s = X(i), c = s ? await Pt(i, Z()) : G.calculateTextDimensions(i, xt(d));
3747
3740
  if (!s) {
3748
- let x = l.height / o;
3741
+ let x = c.height / o;
3749
3742
  t.height += x, m.bumpVerticalPos(x);
3750
3743
  }
3751
- let g, h = l.height - 10, n = l.width;
3744
+ let g, h = c.height - 10, n = c.width;
3752
3745
  if (r === a) {
3753
3746
  g = m.getVerticalPos() + h, d.rightAngles || (h += d.boxMargin, g = m.getVerticalPos() + h), h += 30;
3754
- let x = A.getMax(n / 2, d.width / 2);
3747
+ let x = w.getMax(n / 2, d.width / 2);
3755
3748
  m.insert(r - x, m.getVerticalPos() - 10 + h, a + x, m.getVerticalPos() + 30 + h);
3756
3749
  } else h += d.boxMargin, g = m.getVerticalPos() + h, m.insert(r, g - 10, a, g);
3757
3750
  return m.bumpVerticalPos(h), t.height += h, t.stopy = t.starty + t.height, m.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), g;
3758
3751
  }
3759
3752
  y(Ke, "boundMessage");
3760
3753
  var ja = /* @__PURE__ */ y(async function(e, t, r, a, i, o) {
3761
- let { startx: s, stopx: l, starty: g, message: h, type: n, sequenceIndex: x, sequenceVisible: u } = t, I = X.calculateTextDimensions(h, xt(d)), T = ee();
3762
- T.x = Math.min(s, l), T.y = g + 10, T.width = Math.abs(l - s), T.class = "messageText", T.dy = "1em", T.text = h, T.fontFamily = d.messageFontFamily, T.fontSize = d.messageFontSize, T.fontWeight = d.messageFontWeight, T.anchor = d.messageAlign, T.valign = "center", T.textMargin = d.wrapPadding, T.tspan = !1, Z(T.text) ? await $t(e, T, {
3754
+ let { startx: s, stopx: c, starty: g, message: h, type: n, sequenceIndex: x, sequenceVisible: u } = t, I = G.calculateTextDimensions(h, xt(d)), T = ee();
3755
+ T.x = Math.min(s, c), T.y = g + 10, T.width = Math.abs(c - s), T.class = "messageText", T.dy = "1em", T.text = h, T.fontFamily = d.messageFontFamily, T.fontSize = d.messageFontSize, T.fontWeight = d.messageFontWeight, T.anchor = d.messageAlign, T.valign = "center", T.textMargin = d.wrapPadding, T.tspan = !1, X(T.text) ? await $t(e, T, {
3763
3756
  startx: s,
3764
- stopx: l,
3757
+ stopx: c,
3765
3758
  starty: r
3766
3759
  }) : Rt(e, T);
3767
3760
  let E = I.width, O;
3768
- if (s === l) {
3769
- let f = u || d.showSequenceNumbers, L = Ge(i, a), S = er(i, a), w = s + (f && (L || S) ? 10 : 0);
3770
- O = d.rightAngles ? e.append("path").attr("d", `M ${w},${r} H ${s + A.getMax(d.width / 2, E / 2)} V ${r + 25} H ${s}`) : e.append("path").attr("d", "M " + w + "," + r + " C " + (w + 60) + "," + (r - 10) + " " + (s + 60) + "," + (r + 30) + " " + s + "," + (r + 20)), Jt(i, a) && Ce(e, i, t, a, s, l, r);
3771
- } else O = e.append("line"), O.attr("x1", s), O.attr("y1", r), O.attr("x2", l), O.attr("y2", r), Jt(i, a) && Ce(e, i, t, a, s, l, r);
3761
+ if (s === c) {
3762
+ let f = u || d.showSequenceNumbers, L = Ge(i, a), S = er(i, a), A = s + (f && (L || S) ? 10 : 0);
3763
+ O = d.rightAngles ? e.append("path").attr("d", `M ${A},${r} H ${s + w.getMax(d.width / 2, E / 2)} V ${r + 25} H ${s}`) : e.append("path").attr("d", "M " + A + "," + r + " C " + (A + 60) + "," + (r - 10) + " " + (s + 60) + "," + (r + 30) + " " + s + "," + (r + 20)), Jt(i, a) && Ce(e, i, t, a, s, c, r);
3764
+ } else O = e.append("line"), O.attr("x1", s), O.attr("y1", r), O.attr("x2", c), O.attr("y2", r), Jt(i, a) && Ce(e, i, t, a, s, c, r);
3772
3765
  n === a.db.LINETYPE.DOTTED || n === a.db.LINETYPE.DOTTED_CROSS || n === a.db.LINETYPE.DOTTED_POINT || n === a.db.LINETYPE.DOTTED_OPEN || n === a.db.LINETYPE.BIDIRECTIONAL_DOTTED || n === a.db.LINETYPE.SOLID_TOP_DOTTED || n === a.db.LINETYPE.SOLID_BOTTOM_DOTTED || n === a.db.LINETYPE.STICK_TOP_DOTTED || n === a.db.LINETYPE.STICK_BOTTOM_DOTTED || n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (O.style("stroke-dasharray", "3, 3"), O.attr("class", "messageLine1")) : O.attr("class", "messageLine0"), O.attr("data-et", "message"), O.attr("data-id", "i" + t.id), O.attr("data-from", t.from), O.attr("data-to", t.to);
3773
3766
  let _ = "";
3774
3767
  if (d.arrowMarkerAbsolute && (_ = Ta(!0)), O.attr("stroke-width", 2), O.attr("stroke", "none"), O.style("fill", "none"), (n === a.db.LINETYPE.SOLID_TOP || n === a.db.LINETYPE.SOLID_TOP_DOTTED) && O.attr("marker-end", "url(" + _ + "#" + o + "-solidTopArrowHead)"), (n === a.db.LINETYPE.SOLID_BOTTOM || n === a.db.LINETYPE.SOLID_BOTTOM_DOTTED) && O.attr("marker-end", "url(" + _ + "#" + o + "-solidBottomArrowHead)"), (n === a.db.LINETYPE.STICK_TOP || n === a.db.LINETYPE.STICK_TOP_DOTTED) && O.attr("marker-end", "url(" + _ + "#" + o + "-stickTopArrowHead)"), (n === a.db.LINETYPE.STICK_BOTTOM || n === a.db.LINETYPE.STICK_BOTTOM_DOTTED) && O.attr("marker-end", "url(" + _ + "#" + o + "-stickBottomArrowHead)"), (n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && O.attr("marker-start", "url(" + _ + "#" + o + "-solidBottomArrowHead)"), (n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && O.attr("marker-start", "url(" + _ + "#" + o + "-solidTopArrowHead)"), (n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE || n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && O.attr("marker-start", "url(" + _ + "#" + o + "-stickBottomArrowHead)"), (n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && O.attr("marker-start", "url(" + _ + "#" + o + "-stickTopArrowHead)"), (n === a.db.LINETYPE.SOLID || n === a.db.LINETYPE.DOTTED) && O.attr("marker-end", "url(" + _ + "#" + o + "-arrowhead)"), (n === a.db.LINETYPE.BIDIRECTIONAL_SOLID || n === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (O.attr("marker-start", "url(" + _ + "#" + o + "-arrowhead)"), O.attr("marker-end", "url(" + _ + "#" + o + "-arrowhead)")), (n === a.db.LINETYPE.SOLID_POINT || n === a.db.LINETYPE.DOTTED_POINT) && O.attr("marker-end", "url(" + _ + "#" + o + "-filled-head)"), (n === a.db.LINETYPE.SOLID_CROSS || n === a.db.LINETYPE.DOTTED_CROSS) && O.attr("marker-end", "url(" + _ + "#" + o + "-crosshead)"), u || d.showSequenceNumbers) {
3775
- let f = n === a.db.LINETYPE.BIDIRECTIONAL_SOLID || n === a.db.LINETYPE.BIDIRECTIONAL_DOTTED, L = n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE || n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, S = Jt(i, a), w = s, P = l;
3776
- f ? (s < l ? w = s + 12 : (w = s - 6 + (S ? -5 : 0), w += (i == null ? void 0 : i.centralConnection) === a.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (i == null ? void 0 : i.centralConnection) === a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), O.attr("x1", w)) : L ? (l > s ? P = l - 12 : (P = l - 6, w += (i == null ? void 0 : i.centralConnection) === a.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (i == null ? void 0 : i.centralConnection) === a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), P += S ? 15 : 0, O.attr("x2", P), O.attr("x1", w)) : O.attr("x1", s + 6);
3777
- let Y = 0, B = s === l, U = s <= l;
3778
- Y = B ? t.fromBounds + 1 : L ? U ? t.toBounds - 1 : t.fromBounds + 1 : U ? t.fromBounds + 1 : t.toBounds - 1;
3779
- let K = "12px", q = x.toString().length;
3780
- q > 5 ? K = "7px" : q > 3 && (K = "9px"), e.append("line").attr("x1", Y).attr("y1", r).attr("x2", Y).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + _ + "#" + o + "-sequencenumber)"), e.append("text").attr("x", Y).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", K).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(x);
3768
+ let f = n === a.db.LINETYPE.BIDIRECTIONAL_SOLID || n === a.db.LINETYPE.BIDIRECTIONAL_DOTTED, L = n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || n === a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || n === a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE || n === a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || n === a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, S = Jt(i, a), A = s, P = c;
3769
+ f ? (s < c ? A = s + 12 : (A = s - 6 + (S ? -5 : 0), A += i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), O.attr("x1", A)) : L ? (c > s ? P = c - 12 : (P = c - 6, A += i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), P += S ? 15 : 0, O.attr("x2", P), O.attr("x1", A)) : O.attr("x1", s + 6);
3770
+ let q = 0, $ = s === c, V = s <= c;
3771
+ q = $ ? t.fromBounds + 1 : L ? V ? t.toBounds - 1 : t.fromBounds + 1 : V ? t.fromBounds + 1 : t.toBounds - 1;
3772
+ let z = "12px", U = x.toString().length;
3773
+ U > 5 ? z = "7px" : U > 3 && (z = "9px"), e.append("line").attr("x1", q).attr("y1", r).attr("x2", q).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + _ + "#" + o + "-sequencenumber)"), e.append("text").attr("x", q).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", z).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(x);
3781
3774
  }
3782
3775
  }, "drawMessage"), Ga = /* @__PURE__ */ y(function(e, t, r, a, i, o, s) {
3783
- let l = 0, g = 0, h, n = 0;
3776
+ let c = 0, g = 0, h, n = 0;
3784
3777
  for (let x of a) {
3785
3778
  let u = t.get(x), I = u.box;
3786
- h && h != I && (s || m.models.addBox(h), g += d.boxMargin + h.margin), I && I != h && (s || (I.x = l + g, I.y = i), g += I.margin), u.width = A.getMax(u.width || d.width, d.width), u.height = A.getMax(u.height || d.height, d.height), u.margin = u.margin || d.actorMargin, n = A.getMax(n, u.height), r.get(u.name) && (g += u.width / 2), u.x = l + g, u.starty = m.getVerticalPos(), m.insert(u.x, i, u.x + u.width, u.height), l += u.width + g, u.box && (u.box.width = l + I.margin - u.box.x), g = u.margin, h = u.box, m.models.addActor(u);
3779
+ h && h != I && (s || m.models.addBox(h), g += d.boxMargin + h.margin), I && I != h && (s || (I.x = c + g, I.y = i), g += I.margin), u.width = w.getMax(u.width || d.width, d.width), u.height = w.getMax(u.height || d.height, d.height), u.margin = u.margin || d.actorMargin, n = w.getMax(n, u.height), r.get(u.name) && (g += u.width / 2), u.x = c + g, u.starty = m.getVerticalPos(), m.insert(u.x, i, u.x + u.width, u.height), c += u.width + g, u.box && (u.box.width = c + I.margin - u.box.x), g = u.margin, h = u.box, m.models.addActor(u);
3787
3780
  }
3788
3781
  h && !s && m.models.addBox(h), m.bumpVerticalPos(n);
3789
3782
  }, "addActorRenderingData"), te = /* @__PURE__ */ y(async function(e, t, r, a, i, o, s) {
3790
3783
  if (a) {
3791
- let l = 0;
3784
+ let c = 0;
3792
3785
  m.bumpVerticalPos(d.boxMargin * 2);
3793
3786
  for (let g of r) {
3794
3787
  let h = t.get(g);
3795
- h.stopy || (h.stopy = m.getVerticalPos());
3788
+ h.stopy ||= m.getVerticalPos();
3796
3789
  let n = await F.drawActor(e, h, d, !0, i, o, s);
3797
- l = A.getMax(l, n);
3790
+ c = w.getMax(c, n);
3798
3791
  }
3799
- m.bumpVerticalPos(l + d.boxMargin);
3800
- } else for (let l of r) {
3801
- let g = t.get(l);
3792
+ m.bumpVerticalPos(c + d.boxMargin);
3793
+ } else for (let c of r) {
3794
+ let g = t.get(c);
3802
3795
  await F.drawActor(e, g, d, !1, i, o, s);
3803
3796
  }
3804
3797
  }, "drawActors"), qe = /* @__PURE__ */ y(function(e, t, r, a) {
3805
3798
  let i = 0, o = 0;
3806
3799
  for (let s of r) {
3807
- let l = t.get(s), g = Ja(l), h = F.drawPopup(e, l, g, d, d.forceMenus, a);
3808
- h.height > i && (i = h.height), h.width + l.x > o && (o = h.width + l.x);
3800
+ let c = t.get(s), g = Ja(c), h = F.drawPopup(e, c, g, d, d.forceMenus, a);
3801
+ h.height > i && (i = h.height), h.width + c.x > o && (o = h.width + c.x);
3809
3802
  }
3810
3803
  return {
3811
3804
  maxHeight: i,
@@ -3820,28 +3813,28 @@ var ja = /* @__PURE__ */ y(async function(e, t, r, a, i, o) {
3820
3813
  }, "actorActivations"), Me = /* @__PURE__ */ y(function(e, t) {
3821
3814
  let r = t.get(e), a = Ft(e);
3822
3815
  return [a.reduce(function(i, o) {
3823
- return A.getMin(i, o.startx);
3816
+ return w.getMin(i, o.startx);
3824
3817
  }, r.x + r.width / 2 - 1), a.reduce(function(i, o) {
3825
- return A.getMax(i, o.stopx);
3818
+ return w.getMax(i, o.stopx);
3826
3819
  }, r.x + r.width / 2 + 1)];
3827
3820
  }, "activationBounds");
3828
3821
  function dt(e, t, r, a, i) {
3829
3822
  m.bumpVerticalPos(r);
3830
3823
  let o = a;
3831
3824
  if (t.id && t.message && e[t.id]) {
3832
- let s = e[t.id].width, l = xt(d);
3833
- t.message = X.wrapLabel(`[${t.message}]`, s - 2 * d.wrapPadding, l), t.width = s, t.wrap = !0;
3834
- let g = X.calculateTextDimensions(t.message, l), h = A.getMax(g.height, d.labelBoxHeight);
3835
- o = a + h, rt.debug(`${h} - ${t.message}`);
3825
+ let s = e[t.id].width, c = xt(d);
3826
+ t.message = G.wrapLabel(`[${t.message}]`, s - 2 * d.wrapPadding, c), t.width = s, t.wrap = !0;
3827
+ let g = G.calculateTextDimensions(t.message, c), h = w.getMax(g.height, d.labelBoxHeight);
3828
+ o = a + h, at.debug(`${h} - ${t.message}`);
3836
3829
  }
3837
3830
  i(t), m.bumpVerticalPos(o);
3838
3831
  }
3839
3832
  y(dt, "adjustLoopHeightForWrap");
3840
3833
  function ze(e, t, r, a, i, o, s) {
3841
- function l(n, x) {
3834
+ function c(n, x) {
3842
3835
  n.x < i.get(e.from).x ? (m.insert(t.stopx - x, t.starty, t.startx, t.stopy + n.height / 2 + d.noteMargin), t.stopx += x) : (m.insert(t.startx, t.starty, t.stopx + x, t.stopy + n.height / 2 + d.noteMargin), t.stopx -= x);
3843
3836
  }
3844
- y(l, "receiverAdjustment");
3837
+ y(c, "receiverAdjustment");
3845
3838
  function g(n, x) {
3846
3839
  n.x < i.get(e.to).x ? (m.insert(t.startx - x, t.starty, t.stopx, t.stopy + n.height / 2 + d.noteMargin), t.startx += x) : (m.insert(t.stopx, t.starty, t.startx + x, t.stopy + n.height / 2 + d.noteMargin), t.startx -= x);
3847
3840
  }
@@ -3854,23 +3847,23 @@ function ze(e, t, r, a, i, o, s) {
3854
3847
  ];
3855
3848
  if (o.get(e.to) == a) {
3856
3849
  let n = i.get(e.to);
3857
- l(n, h.includes(n.type) ? _t / 2 + 3 : n.width / 2 + 3), n.starty = r - n.height / 2, m.bumpVerticalPos(n.height / 2);
3850
+ c(n, h.includes(n.type) ? _t / 2 + 3 : n.width / 2 + 3), n.starty = r - n.height / 2, m.bumpVerticalPos(n.height / 2);
3858
3851
  } else if (s.get(e.from) == a) {
3859
3852
  let n = i.get(e.from);
3860
3853
  d.mirrorActors && g(n, h.includes(n.type) ? _t / 2 : n.width / 2), n.stopy = r - n.height / 2, m.bumpVerticalPos(n.height / 2);
3861
3854
  } else if (s.get(e.to) == a) {
3862
3855
  let n = i.get(e.to);
3863
- d.mirrorActors && l(n, h.includes(n.type) ? _t / 2 + 3 : n.width / 2 + 3), n.stopy = r - n.height / 2, m.bumpVerticalPos(n.height / 2);
3856
+ d.mirrorActors && c(n, h.includes(n.type) ? _t / 2 + 3 : n.width / 2 + 3), n.stopy = r - n.height / 2, m.bumpVerticalPos(n.height / 2);
3864
3857
  }
3865
3858
  }
3866
3859
  y(ze, "adjustCreatedDestroyedData");
3867
3860
  var Xa = /* @__PURE__ */ y(async function(e, t, r, a) {
3868
- let { securityLevel: i, sequence: o, look: s } = Q();
3861
+ let { securityLevel: i, sequence: o, look: s } = Z();
3869
3862
  d = o;
3870
- let l;
3871
- i === "sandbox" && (l = Xt("#i" + t));
3872
- let g = Xt(i === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), h = i === "sandbox" ? l.nodes()[0].contentDocument : document;
3873
- m.init(), rt.debug(a.db);
3863
+ let c;
3864
+ i === "sandbox" && (c = Xt("#i" + t));
3865
+ let g = Xt(i === "sandbox" ? c.nodes()[0].contentDocument.body : "body"), h = i === "sandbox" ? c.nodes()[0].contentDocument : document;
3866
+ m.init(), at.debug(a.db);
3874
3867
  let n = i === "sandbox" ? g.select(`[id="${t}"]`) : Xt(`[id="${t}"]`), x = a.db.getActors(), u = a.db.getCreatedActors(), I = a.db.getDestroyedActors(), T = a.db.getBoxes(), E = a.db.getActorKeys(), O = a.db.getMessages(), _ = a.db.getDiagramTitle(), f = a.db.hasAtLeastOneBox(), L = a.db.hasAtLeastOneBoxWithTitle(), S = await Ue(x, O, a);
3875
3868
  if (d.height = await je(x, S, T), F.insertComputerIcon(n, t), F.insertDatabaseIcon(n, t), F.insertClockIcon(n, t), f && (m.bumpVerticalPos(d.boxMargin), L && m.bumpVerticalPos(T[0].textMaxHeight)), d.hideUnusedParticipants === !0) {
3876
3869
  let R = /* @__PURE__ */ new Set();
@@ -3878,24 +3871,21 @@ var Xa = /* @__PURE__ */ y(async function(e, t, r, a) {
3878
3871
  R.add(D.from), R.add(D.to);
3879
3872
  }), E = E.filter((D) => R.has(D));
3880
3873
  }
3881
- let w = new Map(E.map((R, D) => {
3882
- var et;
3883
- return [((et = x.get(R)) == null ? void 0 : et.name) ?? R, D];
3884
- }));
3874
+ let A = new Map(E.map((R, D) => [x.get(R)?.name ?? R, D]));
3885
3875
  Ga(n, x, u, E, 0, O, !1);
3886
3876
  let P = await rr(O, x, S, a);
3887
3877
  F.insertArrowHead(n, t), F.insertArrowCrossHead(n, t), F.insertArrowFilledHead(n, t), F.insertSequenceNumber(n, t), F.insertSolidTopArrowHead(n, t), F.insertSolidBottomArrowHead(n, t), F.insertStickTopArrowHead(n, t), F.insertStickBottomArrowHead(n, t), s === "neo" && F.insertDropShadow(n, d);
3888
- function Y(R, D) {
3889
- let et = m.endActivation(R);
3890
- et.starty + 18 > D && (et.starty = D - 6, D += 12), F.drawActivation(n, et, D, d, Ft(R.from).length, a, w), m.insert(et.startx, D - 10, et.stopx, D);
3878
+ function q(R, D) {
3879
+ let ct = m.endActivation(R);
3880
+ ct.starty + 18 > D && (ct.starty = D - 6, D += 12), F.drawActivation(n, ct, D, d, Ft(R.from).length, a, A), m.insert(ct.startx, D - 10, ct.stopx, D);
3891
3881
  }
3892
- y(Y, "activeEnd");
3893
- let B = 1, U = 1, K = [], q = [], j = 0;
3882
+ y(q, "activeEnd");
3883
+ let $ = 1, V = 1, z = [], U = [], J = 0;
3894
3884
  for (let R of O) {
3895
- let D, et, at;
3885
+ let D, ct, et;
3896
3886
  switch (R.type) {
3897
3887
  case a.db.LINETYPE.NOTE:
3898
- m.resetVerticalPos(), et = R.noteModel, await Ua(n, et, R.id);
3888
+ m.resetVerticalPos(), ct = R.noteModel, await Ua(n, ct, R.id);
3899
3889
  break;
3900
3890
  case a.db.LINETYPE.ACTIVE_START:
3901
3891
  m.newActivation(R, n, x);
@@ -3907,74 +3897,74 @@ var Xa = /* @__PURE__ */ y(async function(e, t, r, a) {
3907
3897
  m.newActivation(R, n, x);
3908
3898
  break;
3909
3899
  case a.db.LINETYPE.ACTIVE_END:
3910
- Y(R, m.getVerticalPos());
3900
+ q(R, m.getVerticalPos());
3911
3901
  break;
3912
3902
  case a.db.LINETYPE.LOOP_START:
3913
- dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (V) => m.newLoop(V));
3903
+ dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (Y) => m.newLoop(Y));
3914
3904
  break;
3915
3905
  case a.db.LINETYPE.LOOP_END:
3916
3906
  D = m.endLoop(), await F.drawLoop(n, D, "loop", d, R), m.bumpVerticalPos(D.stopy - m.getVerticalPos()), m.models.addLoop(D);
3917
3907
  break;
3918
3908
  case a.db.LINETYPE.RECT_START:
3919
- dt(P, R, d.boxMargin, d.boxMargin, (V) => m.newLoop(void 0, V.message));
3909
+ dt(P, R, d.boxMargin, d.boxMargin, (Y) => m.newLoop(void 0, Y.message));
3920
3910
  break;
3921
3911
  case a.db.LINETYPE.RECT_END:
3922
- D = m.endLoop(), q.push(D), m.models.addLoop(D), m.bumpVerticalPos(D.stopy - m.getVerticalPos());
3912
+ D = m.endLoop(), U.push(D), m.models.addLoop(D), m.bumpVerticalPos(D.stopy - m.getVerticalPos());
3923
3913
  break;
3924
3914
  case a.db.LINETYPE.OPT_START:
3925
- dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (V) => m.newLoop(V));
3915
+ dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (Y) => m.newLoop(Y));
3926
3916
  break;
3927
3917
  case a.db.LINETYPE.OPT_END:
3928
3918
  D = m.endLoop(), await F.drawLoop(n, D, "opt", d, R), m.bumpVerticalPos(D.stopy - m.getVerticalPos()), m.models.addLoop(D);
3929
3919
  break;
3930
3920
  case a.db.LINETYPE.ALT_START:
3931
- dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (V) => m.newLoop(V));
3921
+ dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (Y) => m.newLoop(Y));
3932
3922
  break;
3933
3923
  case a.db.LINETYPE.ALT_ELSE:
3934
- dt(P, R, d.boxMargin + d.boxTextMargin, d.boxMargin, (V) => m.addSectionToLoop(V));
3924
+ dt(P, R, d.boxMargin + d.boxTextMargin, d.boxMargin, (Y) => m.addSectionToLoop(Y));
3935
3925
  break;
3936
3926
  case a.db.LINETYPE.ALT_END:
3937
3927
  D = m.endLoop(), await F.drawLoop(n, D, "alt", d, R), m.bumpVerticalPos(D.stopy - m.getVerticalPos()), m.models.addLoop(D);
3938
3928
  break;
3939
3929
  case a.db.LINETYPE.PAR_START:
3940
3930
  case a.db.LINETYPE.PAR_OVER_START:
3941
- dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (V) => m.newLoop(V)), m.saveVerticalPos();
3931
+ dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (Y) => m.newLoop(Y)), m.saveVerticalPos();
3942
3932
  break;
3943
3933
  case a.db.LINETYPE.PAR_AND:
3944
- dt(P, R, d.boxMargin + d.boxTextMargin, d.boxMargin, (V) => m.addSectionToLoop(V));
3934
+ dt(P, R, d.boxMargin + d.boxTextMargin, d.boxMargin, (Y) => m.addSectionToLoop(Y));
3945
3935
  break;
3946
3936
  case a.db.LINETYPE.PAR_END:
3947
3937
  D = m.endLoop(), await F.drawLoop(n, D, "par", d, R), m.bumpVerticalPos(D.stopy - m.getVerticalPos()), m.models.addLoop(D);
3948
3938
  break;
3949
3939
  case a.db.LINETYPE.AUTONUMBER:
3950
- B = R.message.start || B, U = R.message.step || U, R.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
3940
+ $ = R.message.start || $, V = R.message.step || V, R.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
3951
3941
  break;
3952
3942
  case a.db.LINETYPE.CRITICAL_START:
3953
- dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (V) => m.newLoop(V));
3943
+ dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (Y) => m.newLoop(Y));
3954
3944
  break;
3955
3945
  case a.db.LINETYPE.CRITICAL_OPTION:
3956
- dt(P, R, d.boxMargin + d.boxTextMargin, d.boxMargin, (V) => m.addSectionToLoop(V));
3946
+ dt(P, R, d.boxMargin + d.boxTextMargin, d.boxMargin, (Y) => m.addSectionToLoop(Y));
3957
3947
  break;
3958
3948
  case a.db.LINETYPE.CRITICAL_END:
3959
3949
  D = m.endLoop(), await F.drawLoop(n, D, "critical", d, R), m.bumpVerticalPos(D.stopy - m.getVerticalPos()), m.models.addLoop(D);
3960
3950
  break;
3961
3951
  case a.db.LINETYPE.BREAK_START:
3962
- dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (V) => m.newLoop(V));
3952
+ dt(P, R, d.boxMargin, d.boxMargin + d.boxTextMargin, (Y) => m.newLoop(Y));
3963
3953
  break;
3964
3954
  case a.db.LINETYPE.BREAK_END:
3965
3955
  D = m.endLoop(), await F.drawLoop(n, D, "break", d, R), m.bumpVerticalPos(D.stopy - m.getVerticalPos()), m.models.addLoop(D);
3966
3956
  break;
3967
3957
  default:
3968
3958
  try {
3969
- at = R.msgModel, at.starty = m.getVerticalPos(), at.sequenceIndex = B, at.sequenceVisible = a.db.showSequenceNumbers(), at.id = R.id, at.from = R.from, at.to = R.to;
3970
- let V = await Ke(n, at);
3971
- ze(R, at, V, j, x, u, I), K.push({
3972
- messageModel: at,
3973
- lineStartY: V,
3959
+ et = R.msgModel, et.starty = m.getVerticalPos(), et.sequenceIndex = $, et.sequenceVisible = a.db.showSequenceNumbers(), et.id = R.id, et.from = R.from, et.to = R.to;
3960
+ let Y = await Ke(n, et);
3961
+ ze(R, et, Y, J, x, u, I), z.push({
3962
+ messageModel: et,
3963
+ lineStartY: Y,
3974
3964
  msg: R
3975
- }), m.models.addMessage(at);
3976
- } catch (V) {
3977
- rt.error("error while drawing message", V);
3965
+ }), m.models.addMessage(et);
3966
+ } catch (Y) {
3967
+ at.error("error while drawing message", Y);
3978
3968
  }
3979
3969
  }
3980
3970
  [
@@ -4004,45 +3994,45 @@ var Xa = /* @__PURE__ */ y(async function(e, t, r, a) {
4004
3994
  a.db.LINETYPE.DOTTED_POINT,
4005
3995
  a.db.LINETYPE.BIDIRECTIONAL_SOLID,
4006
3996
  a.db.LINETYPE.BIDIRECTIONAL_DOTTED
4007
- ].includes(R.type) && (B = Math.round((B + U) * 100) / 100), j++;
3997
+ ].includes(R.type) && ($ = Math.round(($ + V) * 100) / 100), J++;
4008
3998
  }
4009
- rt.debug("createdActors", u), rt.debug("destroyedActors", I), await te(n, x, E, !1, t, a, w);
4010
- for (let R of K) await ja(n, R.messageModel, R.lineStartY, a, R.msg, t);
4011
- d.mirrorActors && await te(n, x, E, !0, t, a, w), q.forEach((R) => F.drawBackgroundRect(n, R)), Ve(n, x, E, d);
3999
+ at.debug("createdActors", u), at.debug("destroyedActors", I), await te(n, x, E, !1, t, a, A);
4000
+ for (let R of z) await ja(n, R.messageModel, R.lineStartY, a, R.msg, t);
4001
+ d.mirrorActors && await te(n, x, E, !0, t, a, A), U.forEach((R) => F.drawBackgroundRect(n, R)), Ve(n, x, E, d);
4012
4002
  for (let R of m.models.boxes) {
4013
4003
  R.height = m.getVerticalPos() - R.y, m.insert(R.x, R.y, R.x + R.width, R.height);
4014
4004
  let D = d.boxMargin * 2;
4015
4005
  R.startx = R.x - D, R.starty = R.y - D * 0.25, R.stopx = R.startx + R.width + 2 * D, R.stopy = R.starty + R.height + D * 0.75, R.stroke = "rgb(0,0,0, 0.5)", F.drawBox(n, R, d);
4016
4006
  }
4017
4007
  f && m.bumpVerticalPos(d.boxMargin);
4018
- let J = qe(n, x, E, h), { bounds: H } = m.getBounds();
4019
- H.startx === void 0 && (H.startx = 0), H.starty === void 0 && (H.starty = 0), H.stopx === void 0 && (H.stopx = 0), H.stopy === void 0 && (H.stopy = 0);
4020
- let st = H.stopy - H.starty;
4021
- st < J.maxHeight && (st = J.maxHeight);
4022
- let tt = st + 2 * d.diagramMarginY;
4008
+ let Q = qe(n, x, E, h), { bounds: K } = m.getBounds();
4009
+ K.startx === void 0 && (K.startx = 0), K.starty === void 0 && (K.starty = 0), K.stopx === void 0 && (K.stopx = 0), K.stopy === void 0 && (K.stopy = 0);
4010
+ let rt = K.stopy - K.starty;
4011
+ rt < Q.maxHeight && (rt = Q.maxHeight);
4012
+ let tt = rt + 2 * d.diagramMarginY;
4023
4013
  d.mirrorActors && (tt = tt - d.boxMargin + d.bottomMarginAdj);
4024
- let it = H.stopx - H.startx;
4025
- it < J.maxWidth && (it = J.maxWidth);
4026
- let $ = it + 2 * d.diagramMarginX;
4027
- _ && n.append("text").text(_).attr("x", (H.stopx - H.startx) / 2 - 2 * d.diagramMarginX).attr("y", -25), aa(n, tt, $, d.useMaxWidth);
4014
+ let st = K.stopx - K.startx;
4015
+ st < Q.maxWidth && (st = Q.maxWidth);
4016
+ let B = st + 2 * d.diagramMarginX;
4017
+ _ && n.append("text").text(_).attr("x", (K.stopx - K.startx) / 2 - 2 * d.diagramMarginX).attr("y", -25), aa(n, tt, B, d.useMaxWidth);
4028
4018
  let k = _ ? 40 : 0, wt = x.size && s === "neo" ? 30 : 0;
4029
- n.attr("viewBox", H.startx - d.diagramMarginX + " -" + (d.diagramMarginY + k) + " " + $ + " " + (tt + k + wt)), rt.debug("models:", m.models);
4019
+ n.attr("viewBox", K.startx - d.diagramMarginX + " -" + (d.diagramMarginY + k) + " " + B + " " + (tt + k + wt)), at.debug("models:", m.models);
4030
4020
  }, "draw");
4031
4021
  async function Ue(e, t, r) {
4032
4022
  let a = {};
4033
4023
  for (let i of t) if (e.get(i.to) && e.get(i.from)) {
4034
4024
  let o = e.get(i.to);
4035
4025
  if (i.placement === r.db.PLACEMENT.LEFTOF && !o.prevActor || i.placement === r.db.PLACEMENT.RIGHTOF && !o.nextActor) continue;
4036
- let s = i.placement !== void 0, l = !s, g = s ? It(d) : xt(d), h = i.wrap ? X.wrapLabel(i.message, d.width - 2 * d.wrapPadding, g) : i.message, n = (Z(h) ? await Pt(i.message, Q()) : X.calculateTextDimensions(h, g)).width + 2 * d.wrapPadding;
4037
- l && i.from === o.nextActor ? a[i.to] = A.getMax(a[i.to] || 0, n) : l && i.from === o.prevActor ? a[i.from] = A.getMax(a[i.from] || 0, n) : l && i.from === i.to ? (a[i.from] = A.getMax(a[i.from] || 0, n / 2), a[i.to] = A.getMax(a[i.to] || 0, n / 2)) : i.placement === r.db.PLACEMENT.RIGHTOF ? a[i.from] = A.getMax(a[i.from] || 0, n) : i.placement === r.db.PLACEMENT.LEFTOF ? a[o.prevActor] = A.getMax(a[o.prevActor] || 0, n) : i.placement === r.db.PLACEMENT.OVER && (o.prevActor && (a[o.prevActor] = A.getMax(a[o.prevActor] || 0, n / 2)), o.nextActor && (a[i.from] = A.getMax(a[i.from] || 0, n / 2)));
4026
+ let s = i.placement !== void 0, c = !s, g = s ? It(d) : xt(d), h = i.wrap ? G.wrapLabel(i.message, d.width - 2 * d.wrapPadding, g) : i.message, n = (X(h) ? await Pt(i.message, Z()) : G.calculateTextDimensions(h, g)).width + 2 * d.wrapPadding;
4027
+ c && i.from === o.nextActor ? a[i.to] = w.getMax(a[i.to] || 0, n) : c && i.from === o.prevActor ? a[i.from] = w.getMax(a[i.from] || 0, n) : c && i.from === i.to ? (a[i.from] = w.getMax(a[i.from] || 0, n / 2), a[i.to] = w.getMax(a[i.to] || 0, n / 2)) : i.placement === r.db.PLACEMENT.RIGHTOF ? a[i.from] = w.getMax(a[i.from] || 0, n) : i.placement === r.db.PLACEMENT.LEFTOF ? a[o.prevActor] = w.getMax(a[o.prevActor] || 0, n) : i.placement === r.db.PLACEMENT.OVER && (o.prevActor && (a[o.prevActor] = w.getMax(a[o.prevActor] || 0, n / 2)), o.nextActor && (a[i.from] = w.getMax(a[i.from] || 0, n / 2)));
4038
4028
  }
4039
- return rt.debug("maxMessageWidthPerActor:", a), a;
4029
+ return at.debug("maxMessageWidthPerActor:", a), a;
4040
4030
  }
4041
4031
  y(Ue, "getMaxMessageWidthPerActor");
4042
4032
  var Ja = /* @__PURE__ */ y(function(e) {
4043
4033
  let t = 0, r = Qt(d);
4044
4034
  for (let a in e.links) {
4045
- let i = X.calculateTextDimensions(a, r).width + 2 * d.wrapPadding + 2 * d.boxMargin;
4035
+ let i = G.calculateTextDimensions(a, r).width + 2 * d.wrapPadding + 2 * d.boxMargin;
4046
4036
  t < i && (t = i);
4047
4037
  }
4048
4038
  return t;
@@ -4051,39 +4041,39 @@ async function je(e, t, r) {
4051
4041
  let a = 0;
4052
4042
  for (let o of e.keys()) {
4053
4043
  let s = e.get(o);
4054
- s.wrap && (s.description = X.wrapLabel(s.description, d.width - 2 * d.wrapPadding, Qt(d)));
4055
- let l = Z(s.description) ? await Pt(s.description, Q()) : X.calculateTextDimensions(s.description, Qt(d));
4056
- s.width = s.wrap ? d.width : A.getMax(d.width, l.width + 2 * d.wrapPadding), s.height = s.wrap ? A.getMax(l.height, d.height) : d.height, a = A.getMax(a, s.height);
4044
+ s.wrap && (s.description = G.wrapLabel(s.description, d.width - 2 * d.wrapPadding, Qt(d)));
4045
+ let c = X(s.description) ? await Pt(s.description, Z()) : G.calculateTextDimensions(s.description, Qt(d));
4046
+ s.width = s.wrap ? d.width : w.getMax(d.width, c.width + 2 * d.wrapPadding), s.height = s.wrap ? w.getMax(c.height, d.height) : d.height, a = w.getMax(a, s.height);
4057
4047
  }
4058
4048
  for (let o in t) {
4059
4049
  let s = e.get(o);
4060
4050
  if (!s) continue;
4061
- let l = e.get(s.nextActor);
4062
- if (!l) {
4051
+ let c = e.get(s.nextActor);
4052
+ if (!c) {
4063
4053
  let h = t[o] + d.actorMargin - s.width / 2;
4064
- s.margin = A.getMax(h, d.actorMargin);
4054
+ s.margin = w.getMax(h, d.actorMargin);
4065
4055
  continue;
4066
4056
  }
4067
- let g = t[o] + d.actorMargin - s.width / 2 - l.width / 2;
4068
- s.margin = A.getMax(g, d.actorMargin);
4057
+ let g = t[o] + d.actorMargin - s.width / 2 - c.width / 2;
4058
+ s.margin = w.getMax(g, d.actorMargin);
4069
4059
  }
4070
4060
  let i = 0;
4071
4061
  return r.forEach((o) => {
4072
- let s = xt(d), l = o.actorKeys.reduce((x, u) => x += e.get(u).width + (e.get(u).margin || 0), 0), g = d.boxMargin * 8;
4073
- l += g, l -= 2 * d.boxTextMargin, o.wrap && (o.name = X.wrapLabel(o.name, l - 2 * d.wrapPadding, s));
4074
- let h = X.calculateTextDimensions(o.name, s);
4075
- i = A.getMax(h.height, i);
4076
- let n = A.getMax(l, h.width + 2 * d.wrapPadding);
4077
- if (o.margin = d.boxTextMargin, l < n) {
4078
- let x = (n - l) / 2;
4062
+ let s = xt(d), c = o.actorKeys.reduce((x, u) => x += e.get(u).width + (e.get(u).margin || 0), 0), g = d.boxMargin * 8;
4063
+ c += g, c -= 2 * d.boxTextMargin, o.wrap && (o.name = G.wrapLabel(o.name, c - 2 * d.wrapPadding, s));
4064
+ let h = G.calculateTextDimensions(o.name, s);
4065
+ i = w.getMax(h.height, i);
4066
+ let n = w.getMax(c, h.width + 2 * d.wrapPadding);
4067
+ if (o.margin = d.boxTextMargin, c < n) {
4068
+ let x = (n - c) / 2;
4079
4069
  o.margin += x;
4080
4070
  }
4081
- }), r.forEach((o) => o.textMaxHeight = i), A.getMax(a, d.height);
4071
+ }), r.forEach((o) => o.textMaxHeight = i), w.getMax(a, d.height);
4082
4072
  }
4083
4073
  y(je, "calculateActorMargins");
4084
4074
  var Za = /* @__PURE__ */ y(async function(e, t, r) {
4085
- let a = t.get(e.from), i = t.get(e.to), o = a.x, s = i.x, l = e.wrap && e.message, g = Z(e.message) ? await Pt(e.message, Q()) : X.calculateTextDimensions(l ? X.wrapLabel(e.message, d.width, It(d)) : e.message, It(d)), h = {
4086
- width: l ? d.width : A.getMax(d.width, g.width + 2 * d.noteMargin),
4075
+ let a = t.get(e.from), i = t.get(e.to), o = a.x, s = i.x, c = e.wrap && e.message, g = X(e.message) ? await Pt(e.message, Z()) : G.calculateTextDimensions(c ? G.wrapLabel(e.message, d.width, It(d)) : e.message, It(d)), h = {
4076
+ width: c ? d.width : w.getMax(d.width, g.width + 2 * d.noteMargin),
4087
4077
  height: 0,
4088
4078
  startx: a.x,
4089
4079
  stopx: 0,
@@ -4091,7 +4081,7 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4091
4081
  stopy: 0,
4092
4082
  message: e.message
4093
4083
  };
4094
- return e.placement === r.db.PLACEMENT.RIGHTOF ? (h.width = l ? A.getMax(d.width, g.width) : A.getMax(a.width / 2 + i.width / 2, g.width + 2 * d.noteMargin), h.startx = o + (a.width + d.actorMargin) / 2) : e.placement === r.db.PLACEMENT.LEFTOF ? (h.width = l ? A.getMax(d.width, g.width + 2 * d.noteMargin) : A.getMax(a.width / 2 + i.width / 2, g.width + 2 * d.noteMargin), h.startx = o - h.width + (a.width - d.actorMargin) / 2) : e.to === e.from ? (g = X.calculateTextDimensions(l ? X.wrapLabel(e.message, A.getMax(d.width, a.width), It(d)) : e.message, It(d)), h.width = l ? A.getMax(d.width, a.width) : A.getMax(a.width, d.width, g.width + 2 * d.noteMargin), h.startx = o + (a.width - h.width) / 2) : (h.width = Math.abs(o + a.width / 2 - (s + i.width / 2)) + d.actorMargin, h.startx = o < s ? o + a.width / 2 - d.actorMargin / 2 : s + i.width / 2 - d.actorMargin / 2), l && (h.message = X.wrapLabel(e.message, h.width - 2 * d.wrapPadding, It(d))), rt.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${e.message}]`), h;
4084
+ return e.placement === r.db.PLACEMENT.RIGHTOF ? (h.width = c ? w.getMax(d.width, g.width) : w.getMax(a.width / 2 + i.width / 2, g.width + 2 * d.noteMargin), h.startx = o + (a.width + d.actorMargin) / 2) : e.placement === r.db.PLACEMENT.LEFTOF ? (h.width = c ? w.getMax(d.width, g.width + 2 * d.noteMargin) : w.getMax(a.width / 2 + i.width / 2, g.width + 2 * d.noteMargin), h.startx = o - h.width + (a.width - d.actorMargin) / 2) : e.to === e.from ? (g = G.calculateTextDimensions(c ? G.wrapLabel(e.message, w.getMax(d.width, a.width), It(d)) : e.message, It(d)), h.width = c ? w.getMax(d.width, a.width) : w.getMax(a.width, d.width, g.width + 2 * d.noteMargin), h.startx = o + (a.width - h.width) / 2) : (h.width = Math.abs(o + a.width / 2 - (s + i.width / 2)) + d.actorMargin, h.startx = o < s ? o + a.width / 2 - d.actorMargin / 2 : s + i.width / 2 - d.actorMargin / 2), c && (h.message = G.wrapLabel(e.message, h.width - 2 * d.wrapPadding, It(d))), at.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${e.message}]`), h;
4095
4085
  }, "buildNoteModel"), Qa = 4, Jt = /* @__PURE__ */ y(function(e, t) {
4096
4086
  let { CENTRAL_CONNECTION: r, CENTRAL_CONNECTION_REVERSE: a, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
4097
4087
  return [
@@ -4100,17 +4090,17 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4100
4090
  i
4101
4091
  ].includes(e.centralConnection);
4102
4092
  }, "hasCentralConnection"), tr = /* @__PURE__ */ y(function(e, t, r) {
4103
- let { CENTRAL_CONNECTION_REVERSE: a, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: o, BIDIRECTIONAL_DOTTED: s } = t.db.LINETYPE, l = 0;
4104
- return (e.centralConnection === a || e.centralConnection === i) && (l += Qa), (e.centralConnection === a || e.centralConnection === i) && (e.type === o || e.type === s) && (l += r ? 0 : -6), l;
4093
+ let { CENTRAL_CONNECTION_REVERSE: a, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: o, BIDIRECTIONAL_DOTTED: s } = t.db.LINETYPE, c = 0;
4094
+ return (e.centralConnection === a || e.centralConnection === i) && (c += Qa), (e.centralConnection === a || e.centralConnection === i) && (e.type === o || e.type === s) && (c += r ? 0 : -6), c;
4105
4095
  }, "calculateCentralConnectionOffset"), Ge = /* @__PURE__ */ y(function(e, t) {
4106
- let { SOLID_ARROW_TOP_REVERSE: r, SOLID_ARROW_TOP_REVERSE_DOTTED: a, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: o, STICK_ARROW_TOP_REVERSE: s, STICK_ARROW_TOP_REVERSE_DOTTED: l, STICK_ARROW_BOTTOM_REVERSE: g, STICK_ARROW_BOTTOM_REVERSE_DOTTED: h } = t.db.LINETYPE;
4096
+ let { SOLID_ARROW_TOP_REVERSE: r, SOLID_ARROW_TOP_REVERSE_DOTTED: a, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: o, STICK_ARROW_TOP_REVERSE: s, STICK_ARROW_TOP_REVERSE_DOTTED: c, STICK_ARROW_BOTTOM_REVERSE: g, STICK_ARROW_BOTTOM_REVERSE_DOTTED: h } = t.db.LINETYPE;
4107
4097
  return [
4108
4098
  r,
4109
4099
  a,
4110
4100
  i,
4111
4101
  o,
4112
4102
  s,
4113
- l,
4103
+ c,
4114
4104
  g,
4115
4105
  h
4116
4106
  ].includes(e.type);
@@ -4118,7 +4108,7 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4118
4108
  let { BIDIRECTIONAL_SOLID: r, BIDIRECTIONAL_DOTTED: a } = t.db.LINETYPE;
4119
4109
  return [r, a].includes(e.type);
4120
4110
  }, "isBidirectionalArrowType"), ar = /* @__PURE__ */ y(function(e, t, r) {
4121
- let { look: a } = Q();
4111
+ let { look: a } = Z();
4122
4112
  if (![
4123
4113
  r.db.LINETYPE.SOLID_OPEN,
4124
4114
  r.db.LINETYPE.DOTTED_OPEN,
@@ -4147,9 +4137,9 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4147
4137
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4148
4138
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4149
4139
  ].includes(e.type)) return {};
4150
- let [i, o] = Me(e.from, t), [s, l] = Me(e.to, t), g = i <= s, h = g ? o : i, n = g ? s : l;
4140
+ let [i, o] = Me(e.from, t), [s, c] = Me(e.to, t), g = i <= s, h = g ? o : i, n = g ? s : c;
4151
4141
  a === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (n += g ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (h += g ? 3 : -3)), h += tr(e, r, g);
4152
- let x = Math.abs(s - l) > 2, u = /* @__PURE__ */ y((O) => g ? -O : O, "adjustValue");
4142
+ let x = Math.abs(s - c) > 2, u = /* @__PURE__ */ y((O) => g ? -O : O, "adjustValue");
4153
4143
  e.from === e.to ? n = h : (e.activate && !x && (n += u(d.activationWidth / 2 - 1)), [
4154
4144
  r.db.LINETYPE.SOLID_OPEN,
4155
4145
  r.db.LINETYPE.DOTTED_OPEN,
@@ -4177,12 +4167,12 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4177
4167
  i,
4178
4168
  o,
4179
4169
  s,
4180
- l
4170
+ c
4181
4171
  ], T = Math.abs(h - n);
4182
- e.wrap && e.message && (e.message = X.wrapLabel(e.message, A.getMax(T + 2 * d.wrapPadding, d.width), xt(d)));
4183
- let E = X.calculateTextDimensions(e.message, xt(d));
4172
+ e.wrap && e.message && (e.message = G.wrapLabel(e.message, w.getMax(T + 2 * d.wrapPadding, d.width), xt(d)));
4173
+ let E = G.calculateTextDimensions(e.message, xt(d));
4184
4174
  return {
4185
- width: A.getMax(e.wrap ? 0 : E.width + 2 * d.wrapPadding, T + 2 * d.wrapPadding, d.width),
4175
+ width: w.getMax(e.wrap ? 0 : E.width + 2 * d.wrapPadding, T + 2 * d.wrapPadding, d.width),
4186
4176
  height: 0,
4187
4177
  startx: h,
4188
4178
  stopx: n,
@@ -4195,7 +4185,7 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4195
4185
  toBounds: Math.max.apply(null, I)
4196
4186
  };
4197
4187
  }, "buildMessageModel"), rr = /* @__PURE__ */ y(async function(e, t, r, a) {
4198
- let i = {}, o = [], s, l, g;
4188
+ let i = {}, o = [], s, c, g;
4199
4189
  for (let h of e) {
4200
4190
  switch (h.type) {
4201
4191
  case a.db.LINETYPE.LOOP_START:
@@ -4247,13 +4237,13 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4247
4237
  h.placement === void 0 ? (g = ar(h, t, a), h.msgModel = g, g.startx && g.stopx && o.length > 0 && o.forEach((n) => {
4248
4238
  if (s = n, g.startx === g.stopx) {
4249
4239
  let x = t.get(h.from), u = t.get(h.to);
4250
- s.from = A.getMin(x.x - g.width / 2, x.x - x.width / 2, s.from), s.to = A.getMax(u.x + g.width / 2, u.x + x.width / 2, s.to), s.width = A.getMax(s.width, Math.abs(s.to - s.from)) - d.labelBoxWidth;
4251
- } else s.from = A.getMin(g.startx, s.from), s.to = A.getMax(g.stopx, s.to), s.width = A.getMax(s.width, g.width) - d.labelBoxWidth;
4252
- })) : (l = await Za(h, t, a), h.noteModel = l, o.forEach((n) => {
4253
- s = n, s.from = A.getMin(s.from, l.startx), s.to = A.getMax(s.to, l.startx + l.width), s.width = A.getMax(s.width, Math.abs(s.from - s.to)) - d.labelBoxWidth;
4240
+ s.from = w.getMin(x.x - g.width / 2, x.x - x.width / 2, s.from), s.to = w.getMax(u.x + g.width / 2, u.x + x.width / 2, s.to), s.width = w.getMax(s.width, Math.abs(s.to - s.from)) - d.labelBoxWidth;
4241
+ } else s.from = w.getMin(g.startx, s.from), s.to = w.getMax(g.stopx, s.to), s.width = w.getMax(s.width, g.width) - d.labelBoxWidth;
4242
+ })) : (c = await Za(h, t, a), h.noteModel = c, o.forEach((n) => {
4243
+ s = n, s.from = w.getMin(s.from, c.startx), s.to = w.getMax(s.to, c.startx + c.width), s.width = w.getMax(s.width, Math.abs(s.from - s.to)) - d.labelBoxWidth;
4254
4244
  }));
4255
4245
  }
4256
- return m.activations = [], rt.debug("Loop type widths:", i), i;
4246
+ return m.activations = [], at.debug("Loop type widths:", i), i;
4257
4247
  }, "calculateLoopBounds"), nr = {
4258
4248
  parser: ya,
4259
4249
  get db() {
@@ -4268,7 +4258,7 @@ var Za = /* @__PURE__ */ y(async function(e, t, r) {
4268
4258
  },
4269
4259
  styles: ma,
4270
4260
  init: /* @__PURE__ */ y((e) => {
4271
- e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, ea({ sequence: { wrap: e.wrap } }));
4261
+ e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, ea({ sequence: { wrap: e.wrap } }));
4272
4262
  }, "init")
4273
4263
  };
4274
4264
  export {