@tumaet/apollon 5.0.1 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -3
- package/dist/assets/style.css +1 -1
- package/dist/export.d.ts +6 -3
- package/dist/export.js +82 -81
- package/dist/exportStyles--jC4D4Tn.js +5 -0
- package/dist/index.d.ts +455 -36
- package/dist/index.js +8164 -6668
- package/dist/internals.d.ts +250 -5
- package/dist/internals.js +3 -3
- package/dist/{versionConverter-C-s36Ory.js → yjsSync-BeQGvR_C.js} +572 -560
- package/package.json +14 -6
- package/dist/exportStyles-sXOp3rln.js +0 -5
|
@@ -28,7 +28,7 @@ var C = {
|
|
|
28
28
|
return e.Modelling = "Modelling", e.Exporting = "Exporting", e.Assessment = "Assessment", e;
|
|
29
29
|
}({}), E = /* @__PURE__ */ function(e) {
|
|
30
30
|
return e.Modelling = "Modelling", e.Exporting = "Exporting", e.Highlight = "Highlight", e;
|
|
31
|
-
}({}), D = ({ children: t, fill: n = "var(--apollon-
|
|
31
|
+
}({}), D = ({ children: t, fill: n = "var(--apollon-foreground, #000000)", x: r = "50%", y: i = "50%", dominantBaseline: a = "central", textAnchor: o = "middle", fontWeight: c = "400", fontFamily: l = e, pointerEvents: u = "none", noX: d = !1, noY: f = !1, ...p }) => {
|
|
32
32
|
let m = {};
|
|
33
33
|
return d || (m.x = r), f || (m.y = i), /* @__PURE__ */ s("text", {
|
|
34
34
|
...m,
|
|
@@ -41,8 +41,8 @@ var C = {
|
|
|
41
41
|
...p,
|
|
42
42
|
children: t
|
|
43
43
|
});
|
|
44
|
-
},
|
|
45
|
-
let t = e.fontWeight ?? 400, n = e.fontStyle ?? "normal", r = e.fontFamily ??
|
|
44
|
+
}, ee = e, O = (e) => {
|
|
45
|
+
let t = e.fontWeight ?? 400, n = e.fontStyle ?? "normal", r = e.fontFamily ?? ee;
|
|
46
46
|
return `${n} ${t} ${e.fontSize}px ${r}`;
|
|
47
47
|
}, k = /* @__PURE__ */ new Map(), te = 256, ne = (e, t, n) => {
|
|
48
48
|
let r = `${n}${t}${e}`, i = k.get(r);
|
|
@@ -64,7 +64,7 @@ var ie = (e, t, n, r = {}) => {
|
|
|
64
64
|
maxLineWidth: 0,
|
|
65
65
|
overflow: !1
|
|
66
66
|
};
|
|
67
|
-
let a = typeof n == "string" ? n :
|
|
67
|
+
let a = typeof n == "string" ? n : O(n), o = r.lineHeight ?? (typeof n == "string" ? 16 : Math.round(n.fontSize * 1.2)), s = r.whiteSpace ?? "pre-wrap", c = Math.max(1, t);
|
|
68
68
|
try {
|
|
69
69
|
let e = u(ne(i, a, s), c, o), t = e.lines.map((e) => e.text), n = e.lines.reduce((e, t) => Math.max(e, t.width), 0), l = !1;
|
|
70
70
|
return r.maxLines !== void 0 && t.length > r.maxLines && (t = t.slice(0, r.maxLines), n = e.lines.slice(0, r.maxLines).reduce((e, t) => Math.max(e, t.width), 0), l = !0), {
|
|
@@ -86,7 +86,7 @@ var ie = (e, t, n, r = {}) => {
|
|
|
86
86
|
let r = 1 - Math.min(Math.abs(e), t) / t;
|
|
87
87
|
return 2 * n * Math.max(0, r);
|
|
88
88
|
}, se = "…", ce = (e, t, n, r, i, a, o) => {
|
|
89
|
-
let s = typeof r == "string" ? r :
|
|
89
|
+
let s = typeof r == "string" ? r : O(r), c = o.paddingX ?? 0, u = o.paddingY ?? 0, p = o.maxLines ?? 32, m = o.whiteSpace ?? "pre-wrap", h = {
|
|
90
90
|
lines: [],
|
|
91
91
|
lineHeight: i,
|
|
92
92
|
lineOffsets: [],
|
|
@@ -164,18 +164,18 @@ var ie = (e, t, n, r = {}) => {
|
|
|
164
164
|
graphemeIndex: 0
|
|
165
165
|
}, E);
|
|
166
166
|
if (!D) return h;
|
|
167
|
-
let
|
|
167
|
+
let ee = d(b, D);
|
|
168
168
|
return {
|
|
169
169
|
lines: [{
|
|
170
|
-
text:
|
|
171
|
-
width:
|
|
170
|
+
text: ee.text,
|
|
171
|
+
width: ee.width
|
|
172
172
|
}],
|
|
173
173
|
lineHeight: i,
|
|
174
174
|
lineOffsets: [0],
|
|
175
175
|
blockHeight: i,
|
|
176
176
|
overflow: !C(D.end)
|
|
177
177
|
};
|
|
178
|
-
}, le = (e, t, n, r, i, a = {}) => ce(e, t, n, r, i, ae, a), ue = (e, t, n, r, i, a = {}) => ce(e, t, n, r, i, oe, a), de = e, j = ({ text: e, x: t, y: n, maxWidth: r, fontSize: a, fontWeight: o = 400, fontFamily: c = de, fontStyle: l, lineHeight: u, verticalAnchor: d = "middle", textAnchor: f = "middle", fill: p = "var(--apollon-
|
|
178
|
+
}, le = (e, t, n, r, i, a = {}) => ce(e, t, n, r, i, ae, a), ue = (e, t, n, r, i, a = {}) => ce(e, t, n, r, i, oe, a), de = e, j = ({ text: e, x: t, y: n, maxWidth: r, fontSize: a, fontWeight: o = 400, fontFamily: c = de, fontStyle: l, lineHeight: u, verticalAnchor: d = "middle", textAnchor: f = "middle", fill: p = "var(--apollon-foreground, #000000)", maxLines: m, pointerEvents: h = "none", ...g }) => {
|
|
179
179
|
let _ = u ?? Math.round(a * 1.2), v = i(() => ({
|
|
180
180
|
fontSize: a,
|
|
181
181
|
fontWeight: o,
|
|
@@ -274,11 +274,11 @@ var ie = (e, t, n, r = {}) => {
|
|
|
274
274
|
});
|
|
275
275
|
}, we = (e, t) => {
|
|
276
276
|
let n = e + 2 * t;
|
|
277
|
-
return Math.ceil(n /
|
|
277
|
+
return Math.ceil(n / K.EXTRA_SPACE_FOR_EXTENSION) * K.EXTRA_SPACE_FOR_EXTENSION;
|
|
278
278
|
}, Te = (e, t, n, r, i) => {
|
|
279
279
|
let a = e + t * r + n * i;
|
|
280
|
-
return Math.ceil(a /
|
|
281
|
-
}, Ee = "var(--apollon-
|
|
280
|
+
return Math.ceil(a / K.EXTRA_SPACE_FOR_EXTENSION) * K.EXTRA_SPACE_FOR_EXTENSION;
|
|
281
|
+
}, Ee = "var(--apollon-foreground, #000000)", De = "var(--apollon-background, #ffffff)", F = (e) => ({
|
|
282
282
|
strokeColor: e.strokeColor || Ee,
|
|
283
283
|
fillColor: e.fillColor || De,
|
|
284
284
|
textColor: e.textColor || Ee
|
|
@@ -385,7 +385,7 @@ var ie = (e, t, n, r = {}) => {
|
|
|
385
385
|
children: e
|
|
386
386
|
});
|
|
387
387
|
}, I = /* @__PURE__ */ function(e) {
|
|
388
|
-
return e.
|
|
388
|
+
return e.Interface = "interface", e.Enumeration = "enumeration", e;
|
|
389
389
|
}({}), Me = () => {}, L = {
|
|
390
390
|
error: Me,
|
|
391
391
|
warn: Me,
|
|
@@ -426,30 +426,30 @@ var Fe = {
|
|
|
426
426
|
x: t / 2,
|
|
427
427
|
y: 22,
|
|
428
428
|
maxWidth: t - 24,
|
|
429
|
-
fontSize:
|
|
429
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
430
430
|
fontWeight: "600",
|
|
431
431
|
fill: g,
|
|
432
432
|
verticalAnchor: "top",
|
|
433
|
-
maxLines: A(n - 28,
|
|
433
|
+
maxLines: A(n - 28, J.NAME_LINE_HEIGHT)
|
|
434
434
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
435
435
|
x: t - 15,
|
|
436
436
|
y: -15,
|
|
437
437
|
score: u
|
|
438
438
|
})]
|
|
439
439
|
});
|
|
440
|
-
}, z = ({ y: e, width: t, strokeColor: n = "var(--apollon-
|
|
440
|
+
}, z = ({ y: e, width: t, strokeColor: n = "var(--apollon-foreground, #000000)" }) => /* @__PURE__ */ s("line", {
|
|
441
441
|
x1: "0",
|
|
442
442
|
x2: t,
|
|
443
443
|
y1: e,
|
|
444
444
|
y2: e,
|
|
445
445
|
stroke: n,
|
|
446
|
-
strokeWidth:
|
|
447
|
-
}), Le = ({ showStereotype: e, stereotype: t, name: n, width: r, headerHeight: i, isUnderlined: a = !1,
|
|
448
|
-
x:
|
|
449
|
-
y:
|
|
450
|
-
width: r -
|
|
451
|
-
height: i -
|
|
452
|
-
fill:
|
|
446
|
+
strokeWidth: J.LINE_WIDTH
|
|
447
|
+
}), Le = ({ showStereotype: e, stereotype: t, name: n, width: r, headerHeight: i, isUnderlined: a = !1, isAbstract: l = !1, textColor: u, fill: d = "var(--apollon-background, white)" }) => /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("rect", {
|
|
448
|
+
x: J.LINE_WIDTH / 2,
|
|
449
|
+
y: J.LINE_WIDTH / 2,
|
|
450
|
+
width: r - J.LINE_WIDTH,
|
|
451
|
+
height: i - J.LINE_WIDTH / 2,
|
|
452
|
+
fill: d
|
|
453
453
|
}), /* @__PURE__ */ c(D, {
|
|
454
454
|
x: r / 2,
|
|
455
455
|
y: i / 2,
|
|
@@ -457,16 +457,16 @@ var Fe = {
|
|
|
457
457
|
textAnchor: "middle",
|
|
458
458
|
fontWeight: "bold",
|
|
459
459
|
textDecoration: a ? "underline" : "normal",
|
|
460
|
-
fill:
|
|
461
|
-
children: [e && /* @__PURE__ */ s("tspan", {
|
|
460
|
+
fill: u,
|
|
461
|
+
children: [e && t && /* @__PURE__ */ s("tspan", {
|
|
462
462
|
x: r / 2,
|
|
463
463
|
dy: "-8",
|
|
464
464
|
fontSize: "85%",
|
|
465
|
-
children:
|
|
465
|
+
children: Zt(t)
|
|
466
466
|
}), /* @__PURE__ */ s("tspan", {
|
|
467
467
|
x: r / 2,
|
|
468
|
-
dy: e ? "18" : "0",
|
|
469
|
-
fontStyle:
|
|
468
|
+
dy: e && t ? "18" : "0",
|
|
469
|
+
fontStyle: l ? "italic" : "normal",
|
|
470
470
|
children: n
|
|
471
471
|
})]
|
|
472
472
|
})] }), Re = ({ elementId: e, width: t, itemHeight: n, yOffset: r = 0, children: i }) => {
|
|
@@ -501,9 +501,9 @@ var Fe = {
|
|
|
501
501
|
y: r,
|
|
502
502
|
width: t,
|
|
503
503
|
height: n,
|
|
504
|
-
fill:
|
|
504
|
+
fill: gn,
|
|
505
505
|
fillOpacity: .18,
|
|
506
|
-
stroke:
|
|
506
|
+
stroke: gn,
|
|
507
507
|
strokeWidth: 2,
|
|
508
508
|
rx: 2,
|
|
509
509
|
pointerEvents: "none"
|
|
@@ -524,8 +524,8 @@ var Fe = {
|
|
|
524
524
|
y: r,
|
|
525
525
|
width: t,
|
|
526
526
|
height: n,
|
|
527
|
-
fill: f ?
|
|
528
|
-
stroke: f ?
|
|
527
|
+
fill: f ? _n : vn,
|
|
528
|
+
stroke: f ? gn : yn,
|
|
529
529
|
strokeWidth: f ? 2 : 1,
|
|
530
530
|
rx: 2,
|
|
531
531
|
pointerEvents: "none"
|
|
@@ -549,10 +549,10 @@ var Fe = {
|
|
|
549
549
|
elementId: e.id,
|
|
550
550
|
elementType: o,
|
|
551
551
|
children: [/* @__PURE__ */ s("rect", {
|
|
552
|
-
x:
|
|
553
|
-
y: l +
|
|
554
|
-
width: i -
|
|
555
|
-
height: n -
|
|
552
|
+
x: J.LINE_WIDTH / 2,
|
|
553
|
+
y: l + J.LINE_WIDTH / 2,
|
|
554
|
+
width: i - J.LINE_WIDTH,
|
|
555
|
+
height: n - J.LINE_WIDTH,
|
|
556
556
|
fill: f
|
|
557
557
|
}), /* @__PURE__ */ s(D, {
|
|
558
558
|
x: t,
|
|
@@ -560,6 +560,7 @@ var Fe = {
|
|
|
560
560
|
dominantBaseline: "middle",
|
|
561
561
|
textAnchor: "start",
|
|
562
562
|
fill: p,
|
|
563
|
+
fontStyle: e.isAbstract ? "italic" : "normal",
|
|
563
564
|
children: e.name
|
|
564
565
|
})]
|
|
565
566
|
}), a && typeof e.score == "number" && /* @__PURE__ */ s(P, {
|
|
@@ -569,29 +570,29 @@ var Fe = {
|
|
|
569
570
|
})]
|
|
570
571
|
}, e.id);
|
|
571
572
|
})
|
|
572
|
-
}), V = ({ stroke: e = "var(--apollon-
|
|
573
|
+
}), V = ({ stroke: e = "var(--apollon-foreground, #000000)", fill: t = "var(--apollon-background, white)", ...n }) => /* @__PURE__ */ s("rect", {
|
|
573
574
|
stroke: e,
|
|
574
575
|
fill: t,
|
|
575
|
-
strokeWidth:
|
|
576
|
+
strokeWidth: J.LINE_WIDTH,
|
|
576
577
|
...n
|
|
577
578
|
}), H = ({ id: e, width: t, height: n, SIDEBAR_PREVIEW_SCALE: r, svgAttributes: i, showAssessmentResults: a = !1, data: l }) => {
|
|
578
|
-
let { attributes: u, methods: d, name: f, stereotype: p } = l,
|
|
579
|
-
let t =
|
|
579
|
+
let { attributes: u, methods: d, name: f, stereotype: p, isAbstract: m } = l, g = !!p, _ = g ? J.DEFAULT_HEADER_HEIGHT_WITH_STEREOTYPE : J.DEFAULT_HEADER_HEIGHT, v = J.DEFAULT_ATTRIBUTE_HEIGHT, y = J.DEFAULT_METHOD_HEIGHT, b = J.DEFAULT_PADDING, x = M(h((e) => e.assessments)), S = (e) => e.map((e) => {
|
|
580
|
+
let t = x[e.id]?.score;
|
|
580
581
|
return {
|
|
581
582
|
...e,
|
|
582
583
|
score: t
|
|
583
584
|
};
|
|
584
|
-
}),
|
|
585
|
+
}), C = S(u), w = S(d), T = x[e]?.score, E = t * (r ?? 1), D = n * (r ?? 1), { fillColor: ee, strokeColor: O, textColor: k } = F(l);
|
|
585
586
|
return /* @__PURE__ */ s("svg", {
|
|
586
|
-
width:
|
|
587
|
-
height:
|
|
587
|
+
width: E,
|
|
588
|
+
height: D,
|
|
588
589
|
viewBox: `0 0 ${t} ${n}`,
|
|
589
590
|
overflow: "visible",
|
|
590
591
|
...i,
|
|
591
592
|
children: /* @__PURE__ */ c(Re, {
|
|
592
593
|
elementId: e,
|
|
593
594
|
width: t,
|
|
594
|
-
itemHeight:
|
|
595
|
+
itemHeight: _,
|
|
595
596
|
yOffset: 0,
|
|
596
597
|
children: [
|
|
597
598
|
/* @__PURE__ */ s(V, {
|
|
@@ -602,42 +603,43 @@ var Fe = {
|
|
|
602
603
|
stroke: O
|
|
603
604
|
}),
|
|
604
605
|
/* @__PURE__ */ s(Le, {
|
|
605
|
-
showStereotype:
|
|
606
|
+
showStereotype: g,
|
|
606
607
|
stereotype: p,
|
|
607
608
|
name: f,
|
|
608
609
|
width: t,
|
|
609
|
-
headerHeight:
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
headerHeight: _,
|
|
611
|
+
isAbstract: m,
|
|
612
|
+
textColor: k,
|
|
613
|
+
fill: ee
|
|
612
614
|
}),
|
|
613
615
|
u.length >= 0 && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(z, {
|
|
614
|
-
y:
|
|
616
|
+
y: _,
|
|
615
617
|
width: t,
|
|
616
618
|
strokeColor: O
|
|
617
619
|
}), /* @__PURE__ */ s(B, {
|
|
618
|
-
items:
|
|
619
|
-
padding:
|
|
620
|
-
itemHeight:
|
|
620
|
+
items: C,
|
|
621
|
+
padding: b,
|
|
622
|
+
itemHeight: v,
|
|
621
623
|
width: t,
|
|
622
|
-
offsetFromTop:
|
|
624
|
+
offsetFromTop: _,
|
|
623
625
|
showAssessmentResults: a,
|
|
624
626
|
itemElementType: "attribute"
|
|
625
627
|
})] }),
|
|
626
628
|
d.length >= 0 && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(z, {
|
|
627
|
-
y:
|
|
629
|
+
y: _ + u.length * v,
|
|
628
630
|
width: t,
|
|
629
631
|
strokeColor: O
|
|
630
632
|
}), /* @__PURE__ */ s(B, {
|
|
631
|
-
items:
|
|
632
|
-
padding:
|
|
633
|
-
itemHeight:
|
|
633
|
+
items: w,
|
|
634
|
+
padding: b,
|
|
635
|
+
itemHeight: y,
|
|
634
636
|
width: t,
|
|
635
|
-
offsetFromTop:
|
|
637
|
+
offsetFromTop: _ + u.length * y,
|
|
636
638
|
showAssessmentResults: a,
|
|
637
639
|
itemElementType: "method"
|
|
638
640
|
})] }),
|
|
639
641
|
a && /* @__PURE__ */ s(P, {
|
|
640
|
-
score:
|
|
642
|
+
score: T,
|
|
641
643
|
x: t - 15,
|
|
642
644
|
y: -15
|
|
643
645
|
})
|
|
@@ -648,7 +650,7 @@ var Fe = {
|
|
|
648
650
|
//#endregion
|
|
649
651
|
//#region lib/components/svgs/nodes/classDiagram/ColorDescriptionSVG.tsx
|
|
650
652
|
function ze({ width: e, height: t, data: n, svgAttributes: r, SIDEBAR_PREVIEW_SCALE: i }) {
|
|
651
|
-
let a =
|
|
653
|
+
let a = J.LINE_WIDTH, o = e * (i ?? 1), l = t * (i ?? 1), { name: u } = n, { strokeColor: d, fillColor: f, textColor: p } = F(n);
|
|
652
654
|
return /* @__PURE__ */ s("svg", {
|
|
653
655
|
width: o,
|
|
654
656
|
height: l,
|
|
@@ -675,10 +677,10 @@ function ze({ width: e, height: t, data: n, svgAttributes: r, SIDEBAR_PREVIEW_SC
|
|
|
675
677
|
x: e / 2,
|
|
676
678
|
y: t / 2,
|
|
677
679
|
maxWidth: e - 24,
|
|
678
|
-
fontSize:
|
|
680
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
679
681
|
fontWeight: "600",
|
|
680
682
|
fill: p,
|
|
681
|
-
maxLines: A(t - 16,
|
|
683
|
+
maxLines: A(t - 16, J.NAME_LINE_HEIGHT)
|
|
682
684
|
})
|
|
683
685
|
] })
|
|
684
686
|
});
|
|
@@ -686,7 +688,7 @@ function ze({ width: e, height: t, data: n, svgAttributes: r, SIDEBAR_PREVIEW_SC
|
|
|
686
688
|
//#endregion
|
|
687
689
|
//#region lib/components/svgs/nodes/classDiagram/PackageSVG.tsx
|
|
688
690
|
var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVIEW_SCALE: a, showAssessmentResults: o = !1 }) => {
|
|
689
|
-
let { name: l } = r, u = M(h((e) => e.assessments))[e]?.score, d = t * (a ?? 1), f = n * (a ?? 1), p = r.strokeColor || "var(--apollon-
|
|
691
|
+
let { name: l } = r, u = M(h((e) => e.assessments))[e]?.score, d = t * (a ?? 1), f = n * (a ?? 1), p = r.strokeColor || "var(--apollon-foreground, #000000)", m = r.fillColor || "var(--apollon-background, white)", g = r.textColor || "var(--apollon-foreground, #000000)";
|
|
690
692
|
return /* @__PURE__ */ c("svg", {
|
|
691
693
|
width: d,
|
|
692
694
|
height: f,
|
|
@@ -699,7 +701,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
699
701
|
y: 0,
|
|
700
702
|
width: 40,
|
|
701
703
|
height: Be,
|
|
702
|
-
strokeWidth:
|
|
704
|
+
strokeWidth: J.LINE_WIDTH,
|
|
703
705
|
stroke: p,
|
|
704
706
|
fill: m
|
|
705
707
|
}),
|
|
@@ -708,7 +710,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
708
710
|
y: Be,
|
|
709
711
|
width: t,
|
|
710
712
|
height: n - Be,
|
|
711
|
-
strokeWidth:
|
|
713
|
+
strokeWidth: J.LINE_WIDTH,
|
|
712
714
|
stroke: p,
|
|
713
715
|
fill: m
|
|
714
716
|
}),
|
|
@@ -717,11 +719,11 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
717
719
|
x: t / 2,
|
|
718
720
|
y: 22,
|
|
719
721
|
maxWidth: t - 24,
|
|
720
|
-
fontSize:
|
|
722
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
721
723
|
fontWeight: "600",
|
|
722
724
|
fill: g,
|
|
723
725
|
verticalAnchor: "top",
|
|
724
|
-
maxLines: A(n - Be - Ve - 16,
|
|
726
|
+
maxLines: A(n - Be - Ve - 16, J.NAME_LINE_HEIGHT)
|
|
725
727
|
})
|
|
726
728
|
] }), o && /* @__PURE__ */ s(P, {
|
|
727
729
|
x: t - 15,
|
|
@@ -730,7 +732,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
730
732
|
})]
|
|
731
733
|
});
|
|
732
734
|
}, Ue = ({ id: e, width: t, height: n, data: r, SIDEBAR_PREVIEW_SCALE: i, svgAttributes: a, showAssessmentResults: l = !1 }) => {
|
|
733
|
-
let { name: u, attributes: d, methods: f } = r, p =
|
|
735
|
+
let { name: u, attributes: d, methods: f } = r, p = J.DEFAULT_HEADER_HEIGHT, m = J.DEFAULT_ATTRIBUTE_HEIGHT, g = J.DEFAULT_METHOD_HEIGHT, _ = J.DEFAULT_PADDING, v = M(h((e) => e.assessments)), y = (e) => e.map((e) => {
|
|
734
736
|
let t = v[e.id]?.score;
|
|
735
737
|
return {
|
|
736
738
|
...e,
|
|
@@ -806,7 +808,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
806
808
|
cx: i / 2,
|
|
807
809
|
cy: a / 2,
|
|
808
810
|
r: i / 2,
|
|
809
|
-
fill: "var(--apollon-
|
|
811
|
+
fill: "var(--apollon-foreground, #000000)"
|
|
810
812
|
}), r && /* @__PURE__ */ s(P, {
|
|
811
813
|
x: i - 15,
|
|
812
814
|
y: -15,
|
|
@@ -826,15 +828,15 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
826
828
|
cx: i / 2,
|
|
827
829
|
cy: a / 2,
|
|
828
830
|
r: i / 2,
|
|
829
|
-
fill: "var(--apollon-
|
|
831
|
+
fill: "var(--apollon-foreground, #000000)"
|
|
830
832
|
}),
|
|
831
833
|
/* @__PURE__ */ s("circle", {
|
|
832
834
|
cx: i / 2,
|
|
833
835
|
cy: a / 2,
|
|
834
836
|
r: i / 2 * .8,
|
|
835
|
-
fill: "var(--apollon-
|
|
837
|
+
fill: "var(--apollon-foreground, #000000)",
|
|
836
838
|
stroke: "var(--apollon-background, white)",
|
|
837
|
-
strokeWidth:
|
|
839
|
+
strokeWidth: J.LINE_WIDTH
|
|
838
840
|
}),
|
|
839
841
|
r && /* @__PURE__ */ s(P, {
|
|
840
842
|
x: i - 15,
|
|
@@ -865,10 +867,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
865
867
|
x: t / 2,
|
|
866
868
|
y: n / 2,
|
|
867
869
|
maxWidth: t - 16,
|
|
868
|
-
fontSize:
|
|
870
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
869
871
|
fontWeight: "bold",
|
|
870
872
|
fill: g,
|
|
871
|
-
maxLines: A(n - 16,
|
|
873
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
872
874
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
873
875
|
x: t - 15,
|
|
874
876
|
y: -15,
|
|
@@ -895,10 +897,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
895
897
|
x: t / 2,
|
|
896
898
|
y: n / 2,
|
|
897
899
|
maxWidth: t - 16,
|
|
898
|
-
fontSize:
|
|
900
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
899
901
|
fontWeight: "bold",
|
|
900
902
|
fill: g,
|
|
901
|
-
maxLines: A(n - 16,
|
|
903
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
902
904
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
903
905
|
x: t - 15,
|
|
904
906
|
y: -15,
|
|
@@ -932,7 +934,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
932
934
|
${t / 2},0`,
|
|
933
935
|
fill: m,
|
|
934
936
|
stroke: g,
|
|
935
|
-
strokeWidth:
|
|
937
|
+
strokeWidth: J.LINE_WIDTH
|
|
936
938
|
}), v.lines.length > 0 && /* @__PURE__ */ s(D, {
|
|
937
939
|
x: y,
|
|
938
940
|
y: b,
|
|
@@ -953,7 +955,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
953
955
|
})]
|
|
954
956
|
});
|
|
955
957
|
}, et = ({ id: e, width: t, height: n, svgAttributes: r, data: i, SIDEBAR_PREVIEW_SCALE: a, showAssessmentResults: o = !1 }) => {
|
|
956
|
-
let l = M(h((e) => e.assessments))[e]?.score, u = t * (a ?? 1), d = n * (a ?? 1), f = i.fillColor || "var(--apollon-
|
|
958
|
+
let l = M(h((e) => e.assessments))[e]?.score, u = t * (a ?? 1), d = n * (a ?? 1), f = i.fillColor || "var(--apollon-foreground, #000000)";
|
|
957
959
|
return /* @__PURE__ */ c("svg", {
|
|
958
960
|
width: u,
|
|
959
961
|
height: d,
|
|
@@ -973,7 +975,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
973
975
|
})]
|
|
974
976
|
});
|
|
975
977
|
}, tt = ({ id: e, width: t, height: n, svgAttributes: r, SIDEBAR_PREVIEW_SCALE: i, showAssessmentResults: a = !1, data: o }) => {
|
|
976
|
-
let l = M(h((e) => e.assessments))[e]?.score, u = t * (i ?? 1), d = n * (i ?? 1), f = o.fillColor || "var(--apollon-
|
|
978
|
+
let l = M(h((e) => e.assessments))[e]?.score, u = t * (i ?? 1), d = n * (i ?? 1), f = o.fillColor || "var(--apollon-foreground, #000000)";
|
|
977
979
|
return /* @__PURE__ */ c("svg", {
|
|
978
980
|
width: u,
|
|
979
981
|
height: d,
|
|
@@ -993,7 +995,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
993
995
|
})]
|
|
994
996
|
});
|
|
995
997
|
}, nt = ({ width: e, height: t, data: n, svgAttributes: r, SIDEBAR_PREVIEW_SCALE: i, id: a, showAssessmentResults: o = !1 }) => {
|
|
996
|
-
let l = n.lanes ?? [], u = (n.orientation ?? "vertical") === "vertical", d = M(h((e) => e.assessments))[a]?.score, f = e * (i ?? 1), p = t * (i ?? 1), { fillColor: m, strokeColor: g, textColor: _ } = F(n), v =
|
|
998
|
+
let l = n.lanes ?? [], u = (n.orientation ?? "vertical") === "vertical", d = M(h((e) => e.assessments))[a]?.score, f = e * (i ?? 1), p = t * (i ?? 1), { fillColor: m, strokeColor: g, textColor: _ } = F(n), v = Qt(l, u ? e : t);
|
|
997
999
|
return /* @__PURE__ */ c("svg", {
|
|
998
1000
|
width: f,
|
|
999
1001
|
height: p,
|
|
@@ -1015,14 +1017,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1015
1017
|
x2: e,
|
|
1016
1018
|
y2: 30,
|
|
1017
1019
|
stroke: g,
|
|
1018
|
-
strokeWidth:
|
|
1020
|
+
strokeWidth: J.LINE_WIDTH
|
|
1019
1021
|
}) : /* @__PURE__ */ s("line", {
|
|
1020
1022
|
x1: 30,
|
|
1021
1023
|
y1: 0,
|
|
1022
1024
|
x2: 30,
|
|
1023
1025
|
y2: t,
|
|
1024
1026
|
stroke: g,
|
|
1025
|
-
strokeWidth:
|
|
1027
|
+
strokeWidth: J.LINE_WIDTH
|
|
1026
1028
|
}),
|
|
1027
1029
|
l.map((n, r) => {
|
|
1028
1030
|
let { start: i, extent: a } = v[r], o = i + a / 2;
|
|
@@ -1032,21 +1034,21 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1032
1034
|
x2: i,
|
|
1033
1035
|
y2: t,
|
|
1034
1036
|
stroke: g,
|
|
1035
|
-
strokeWidth:
|
|
1037
|
+
strokeWidth: J.LINE_WIDTH
|
|
1036
1038
|
}) : /* @__PURE__ */ s("line", {
|
|
1037
1039
|
x1: 0,
|
|
1038
1040
|
y1: i,
|
|
1039
1041
|
x2: e,
|
|
1040
1042
|
y2: i,
|
|
1041
1043
|
stroke: g,
|
|
1042
|
-
strokeWidth:
|
|
1044
|
+
strokeWidth: J.LINE_WIDTH
|
|
1043
1045
|
})), u ? /* @__PURE__ */ s(j, {
|
|
1044
1046
|
text: n.name,
|
|
1045
1047
|
x: o,
|
|
1046
1048
|
y: 30 / 2,
|
|
1047
1049
|
maxWidth: a - 8,
|
|
1048
1050
|
maxLines: 1,
|
|
1049
|
-
fontSize:
|
|
1051
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1050
1052
|
fill: _
|
|
1051
1053
|
}) : /* @__PURE__ */ s(j, {
|
|
1052
1054
|
text: n.name,
|
|
@@ -1054,7 +1056,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1054
1056
|
y: o,
|
|
1055
1057
|
maxWidth: a - 8,
|
|
1056
1058
|
maxLines: 1,
|
|
1057
|
-
fontSize:
|
|
1059
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1058
1060
|
fill: _,
|
|
1059
1061
|
transform: `rotate(-90, ${30 / 2}, ${o})`
|
|
1060
1062
|
})] }, n.id);
|
|
@@ -1077,7 +1079,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1077
1079
|
children: [
|
|
1078
1080
|
/* @__PURE__ */ c("g", {
|
|
1079
1081
|
transform: `translate(${_}, 0)`,
|
|
1080
|
-
strokeWidth:
|
|
1082
|
+
strokeWidth: J.LINE_WIDTH,
|
|
1081
1083
|
stroke: m,
|
|
1082
1084
|
children: [
|
|
1083
1085
|
/* @__PURE__ */ s("circle", {
|
|
@@ -1151,11 +1153,11 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1151
1153
|
x: t / 2,
|
|
1152
1154
|
y: 22,
|
|
1153
1155
|
maxWidth: t - 24,
|
|
1154
|
-
fontSize:
|
|
1156
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1155
1157
|
fontWeight: "600",
|
|
1156
1158
|
fill: g,
|
|
1157
1159
|
verticalAnchor: "top",
|
|
1158
|
-
maxLines: A(n - 28,
|
|
1160
|
+
maxLines: A(n - 28, J.NAME_LINE_HEIGHT)
|
|
1159
1161
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
1160
1162
|
x: t - 15,
|
|
1161
1163
|
y: -15,
|
|
@@ -1187,7 +1189,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1187
1189
|
ry: n / 2,
|
|
1188
1190
|
fill: m,
|
|
1189
1191
|
stroke: g,
|
|
1190
|
-
strokeWidth:
|
|
1192
|
+
strokeWidth: J.LINE_WIDTH
|
|
1191
1193
|
}), v.lines.length > 0 && /* @__PURE__ */ s(D, {
|
|
1192
1194
|
x: y,
|
|
1193
1195
|
y: b,
|
|
@@ -1228,19 +1230,19 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1228
1230
|
transform: `translate(${t - 32}, 8)`,
|
|
1229
1231
|
children: [/* @__PURE__ */ s("path", {
|
|
1230
1232
|
d: "M 4.8 0 L 24 0 L 24 24 L 4.8 24 L 4.8 19.2 L 0 19.2 L 0 14.4 L 4.8 14.4 L 4.8 9.6 L 0 9.6 L 0 4.8 L 4.8 4.8 Z",
|
|
1231
|
-
strokeWidth:
|
|
1233
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1232
1234
|
strokeMiterlimit: "10",
|
|
1233
1235
|
stroke: g,
|
|
1234
1236
|
fill: "none"
|
|
1235
1237
|
}), /* @__PURE__ */ s("path", {
|
|
1236
1238
|
d: "M 4.8 4.8 L 9.6 4.8 L 9.6 9.6 L 4.8 9.6 M 4.8 14.4 L 9.6 14.4 L 9.6 19.2 L 4.8 19.2",
|
|
1237
|
-
strokeWidth:
|
|
1239
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1238
1240
|
strokeMiterlimit: "10",
|
|
1239
1241
|
stroke: g,
|
|
1240
1242
|
fill: "none"
|
|
1241
1243
|
})]
|
|
1242
1244
|
}),
|
|
1243
|
-
/* @__PURE__ */ s(
|
|
1245
|
+
/* @__PURE__ */ s($, {
|
|
1244
1246
|
name: f,
|
|
1245
1247
|
stereotype: "component",
|
|
1246
1248
|
showStereotype: !!p,
|
|
@@ -1256,7 +1258,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1256
1258
|
});
|
|
1257
1259
|
}, ht = 1e5, gt = ({ name: e, width: t, height: n, fill: r, side: i = "bottom" }) => {
|
|
1258
1260
|
if (!e) return null;
|
|
1259
|
-
let a =
|
|
1261
|
+
let a = J.DEFAULT_PADDING / 2, o = J.NAME_LINE_HEIGHT / 2, c = t / 2, l = n / 2, u = t / 2, d = u + a, f = u + a, p = {
|
|
1260
1262
|
bottom: {
|
|
1261
1263
|
x: c,
|
|
1262
1264
|
y: l + f + o,
|
|
@@ -1313,8 +1315,8 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1313
1315
|
verticalAnchor: p.verticalAnchor,
|
|
1314
1316
|
textAnchor: p.textAnchor,
|
|
1315
1317
|
maxWidth: ht,
|
|
1316
|
-
fontSize:
|
|
1317
|
-
lineHeight:
|
|
1318
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1319
|
+
lineHeight: J.NAME_LINE_HEIGHT,
|
|
1318
1320
|
fontWeight: "bold",
|
|
1319
1321
|
fill: r
|
|
1320
1322
|
});
|
|
@@ -1330,7 +1332,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1330
1332
|
cx: t / 2,
|
|
1331
1333
|
cy: n / 2,
|
|
1332
1334
|
r: t / 2,
|
|
1333
|
-
strokeWidth:
|
|
1335
|
+
strokeWidth: J.LINE_WIDTH_EDGE,
|
|
1334
1336
|
stroke: g,
|
|
1335
1337
|
fill: m
|
|
1336
1338
|
}), /* @__PURE__ */ s(gt, {
|
|
@@ -1366,19 +1368,19 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1366
1368
|
transform: `translate(${t - 32}, 8)`,
|
|
1367
1369
|
children: [/* @__PURE__ */ s("path", {
|
|
1368
1370
|
d: "M 4.8 0 L 24 0 L 24 24 L 4.8 24 L 4.8 19.2 L 0 19.2 L 0 14.4 L 4.8 14.4 L 4.8 9.6 L 0 9.6 L 0 4.8 L 4.8 4.8 Z",
|
|
1369
|
-
strokeWidth:
|
|
1371
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1370
1372
|
strokeMiterlimit: "10",
|
|
1371
1373
|
stroke: g,
|
|
1372
1374
|
fill: "none"
|
|
1373
1375
|
}), /* @__PURE__ */ s("path", {
|
|
1374
1376
|
d: "M 4.8 4.8 L 9.6 4.8 L 9.6 9.6 L 4.8 9.6 M 4.8 14.4 L 9.6 14.4 L 9.6 19.2 L 4.8 19.2",
|
|
1375
|
-
strokeWidth:
|
|
1377
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1376
1378
|
strokeMiterlimit: "10",
|
|
1377
1379
|
stroke: g,
|
|
1378
1380
|
fill: "none"
|
|
1379
1381
|
})]
|
|
1380
1382
|
}),
|
|
1381
|
-
/* @__PURE__ */ s(
|
|
1383
|
+
/* @__PURE__ */ s($, {
|
|
1382
1384
|
name: l,
|
|
1383
1385
|
stereotype: "subsystem",
|
|
1384
1386
|
showStereotype: !!u,
|
|
@@ -1416,10 +1418,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1416
1418
|
x: t / 2,
|
|
1417
1419
|
y: n / 2,
|
|
1418
1420
|
maxWidth: t - 24,
|
|
1419
|
-
fontSize:
|
|
1421
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1420
1422
|
fontWeight: "600",
|
|
1421
1423
|
fill: g,
|
|
1422
|
-
maxLines: A(n - 16,
|
|
1424
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
1423
1425
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
1424
1426
|
x: t - 15,
|
|
1425
1427
|
y: -15,
|
|
@@ -1446,10 +1448,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1446
1448
|
x: t / 2,
|
|
1447
1449
|
y: n / 2,
|
|
1448
1450
|
maxWidth: t - 16,
|
|
1449
|
-
fontSize:
|
|
1451
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1450
1452
|
fontWeight: "600",
|
|
1451
1453
|
fill: g,
|
|
1452
|
-
maxLines: A(n - 16,
|
|
1454
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
1453
1455
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
1454
1456
|
x: t - 15,
|
|
1455
1457
|
y: -15,
|
|
@@ -1478,7 +1480,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1478
1480
|
points: `${t / 2},0 ${t},${n / 2} ${t / 2},${n} 0,${n / 2}`,
|
|
1479
1481
|
stroke: g,
|
|
1480
1482
|
fill: m,
|
|
1481
|
-
strokeWidth:
|
|
1483
|
+
strokeWidth: J.LINE_WIDTH
|
|
1482
1484
|
}), v.lines.length > 0 && /* @__PURE__ */ s(D, {
|
|
1483
1485
|
x: y,
|
|
1484
1486
|
y: b,
|
|
@@ -1508,7 +1510,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1508
1510
|
...i,
|
|
1509
1511
|
children: [/* @__PURE__ */ c("g", { children: [/* @__PURE__ */ s("path", {
|
|
1510
1512
|
d: `M20,0 L${t},0 L${t - 20},${n} L0,${n} Z`,
|
|
1511
|
-
strokeWidth:
|
|
1513
|
+
strokeWidth: J.LINE_WIDTH,
|
|
1512
1514
|
stroke: m,
|
|
1513
1515
|
fill: p
|
|
1514
1516
|
}), /* @__PURE__ */ s(j, {
|
|
@@ -1516,10 +1518,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1516
1518
|
x: t / 2,
|
|
1517
1519
|
y: n / 2,
|
|
1518
1520
|
maxWidth: t - 48,
|
|
1519
|
-
fontSize:
|
|
1521
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1520
1522
|
fontWeight: "600",
|
|
1521
1523
|
fill: g,
|
|
1522
|
-
maxLines: A(n - 16,
|
|
1524
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
1523
1525
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
1524
1526
|
x: t - 15,
|
|
1525
1527
|
y: -15,
|
|
@@ -1549,7 +1551,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1549
1551
|
x2: 10,
|
|
1550
1552
|
y2: n,
|
|
1551
1553
|
stroke: m,
|
|
1552
|
-
strokeWidth:
|
|
1554
|
+
strokeWidth: J.LINE_WIDTH
|
|
1553
1555
|
}),
|
|
1554
1556
|
/* @__PURE__ */ s("line", {
|
|
1555
1557
|
x1: t - 10,
|
|
@@ -1557,17 +1559,17 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1557
1559
|
x2: t - 10,
|
|
1558
1560
|
y2: n,
|
|
1559
1561
|
stroke: m,
|
|
1560
|
-
strokeWidth:
|
|
1562
|
+
strokeWidth: J.LINE_WIDTH
|
|
1561
1563
|
}),
|
|
1562
1564
|
/* @__PURE__ */ s(j, {
|
|
1563
1565
|
text: l,
|
|
1564
1566
|
x: t / 2,
|
|
1565
1567
|
y: n / 2,
|
|
1566
1568
|
maxWidth: t - 36,
|
|
1567
|
-
fontSize:
|
|
1569
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1568
1570
|
fontWeight: "600",
|
|
1569
1571
|
fill: g,
|
|
1570
|
-
maxLines: A(n - 16,
|
|
1572
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
1571
1573
|
})
|
|
1572
1574
|
] }), o && /* @__PURE__ */ s(P, {
|
|
1573
1575
|
x: t - 15,
|
|
@@ -1586,13 +1588,13 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1586
1588
|
children: [/* @__PURE__ */ c("g", { children: [/* @__PURE__ */ c("g", { children: [
|
|
1587
1589
|
/* @__PURE__ */ s("path", {
|
|
1588
1590
|
d: `M 0 8 l 8 -8 H ${t} l -8 8 Z`,
|
|
1589
|
-
strokeWidth:
|
|
1591
|
+
strokeWidth: J.LINE_WIDTH,
|
|
1590
1592
|
stroke: v,
|
|
1591
1593
|
fill: _
|
|
1592
1594
|
}),
|
|
1593
1595
|
/* @__PURE__ */ s("path", {
|
|
1594
1596
|
d: `M ${t} 0 V ${n - 8} l -8 8 V 8 Z`,
|
|
1595
|
-
strokeWidth:
|
|
1597
|
+
strokeWidth: J.LINE_WIDTH,
|
|
1596
1598
|
stroke: v,
|
|
1597
1599
|
fill: _
|
|
1598
1600
|
}),
|
|
@@ -1604,7 +1606,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1604
1606
|
stroke: v,
|
|
1605
1607
|
fill: _
|
|
1606
1608
|
})
|
|
1607
|
-
] }), /* @__PURE__ */ s(
|
|
1609
|
+
] }), /* @__PURE__ */ s($, {
|
|
1608
1610
|
name: l,
|
|
1609
1611
|
stereotype: u,
|
|
1610
1612
|
showStereotype: f,
|
|
@@ -1641,19 +1643,19 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1641
1643
|
transform: `translate(${t - 32}, 8)`,
|
|
1642
1644
|
children: [/* @__PURE__ */ s("path", {
|
|
1643
1645
|
d: "M 4.8 0 L 24 0 L 24 24 L 4.8 24 L 4.8 19.2 L 0 19.2 L 0 14.4 L 4.8 14.4 L 4.8 9.6 L 0 9.6 L 0 4.8 L 4.8 4.8 Z",
|
|
1644
|
-
strokeWidth:
|
|
1646
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1645
1647
|
strokeMiterlimit: "10",
|
|
1646
1648
|
stroke: g,
|
|
1647
1649
|
fill: m
|
|
1648
1650
|
}), /* @__PURE__ */ s("path", {
|
|
1649
1651
|
d: "M 4.8 4.8 L 9.6 4.8 L 9.6 9.6 L 4.8 9.6 M 4.8 14.4 L 9.6 14.4 L 9.6 19.2 L 4.8 19.2",
|
|
1650
|
-
strokeWidth:
|
|
1652
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1651
1653
|
strokeMiterlimit: "10",
|
|
1652
1654
|
stroke: g,
|
|
1653
1655
|
fill: "none"
|
|
1654
1656
|
})]
|
|
1655
1657
|
}),
|
|
1656
|
-
/* @__PURE__ */ s(
|
|
1658
|
+
/* @__PURE__ */ s($, {
|
|
1657
1659
|
name: l,
|
|
1658
1660
|
stereotype: "component",
|
|
1659
1661
|
showStereotype: !!u,
|
|
@@ -1688,13 +1690,13 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1688
1690
|
transform: `translate(${t - 25}, 7)`,
|
|
1689
1691
|
children: [/* @__PURE__ */ s("path", {
|
|
1690
1692
|
d: "M 0 0 L 13 0 L 19.2 7.25 L 19.2 24 L 0 24 L 0 0 Z",
|
|
1691
|
-
strokeWidth:
|
|
1693
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1692
1694
|
strokeMiterlimit: "10",
|
|
1693
1695
|
stroke: m,
|
|
1694
1696
|
fill: p
|
|
1695
1697
|
}), /* @__PURE__ */ s("path", {
|
|
1696
1698
|
d: "M 13 0 L 13 7.25 L 19.2 7.25",
|
|
1697
|
-
strokeWidth:
|
|
1699
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1698
1700
|
strokeMiterlimit: "10",
|
|
1699
1701
|
stroke: m,
|
|
1700
1702
|
fill: "none"
|
|
@@ -1705,11 +1707,11 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1705
1707
|
x: t / 2,
|
|
1706
1708
|
y: 25,
|
|
1707
1709
|
maxWidth: t - 60,
|
|
1708
|
-
fontSize:
|
|
1710
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1709
1711
|
fontWeight: "bold",
|
|
1710
1712
|
fill: g,
|
|
1711
1713
|
verticalAnchor: "top",
|
|
1712
|
-
maxLines: A(n - 16,
|
|
1714
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
1713
1715
|
})
|
|
1714
1716
|
] }), a && /* @__PURE__ */ s(P, {
|
|
1715
1717
|
x: t - 15,
|
|
@@ -1729,7 +1731,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1729
1731
|
cx: t / 2,
|
|
1730
1732
|
cy: n / 2,
|
|
1731
1733
|
r: t / 2,
|
|
1732
|
-
strokeWidth:
|
|
1734
|
+
strokeWidth: J.LINE_WIDTH_EDGE,
|
|
1733
1735
|
stroke: g,
|
|
1734
1736
|
fill: m
|
|
1735
1737
|
}), /* @__PURE__ */ s(gt, {
|
|
@@ -1755,12 +1757,12 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1755
1757
|
r: 4,
|
|
1756
1758
|
fill: "none",
|
|
1757
1759
|
stroke: _,
|
|
1758
|
-
strokeWidth:
|
|
1760
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
1759
1761
|
}), /* @__PURE__ */ s("polyline", {
|
|
1760
1762
|
points: "4 16, 4 11, 16 11, 16 16",
|
|
1761
1763
|
fill: "none",
|
|
1762
1764
|
stroke: _,
|
|
1763
|
-
strokeWidth:
|
|
1765
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
1764
1766
|
})]
|
|
1765
1767
|
});
|
|
1766
1768
|
case "send": return /* @__PURE__ */ c("g", {
|
|
@@ -1769,14 +1771,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1769
1771
|
points: "0.2 3, 19.8 3, 10 11, 0.2 3",
|
|
1770
1772
|
fill: _,
|
|
1771
1773
|
stroke: _,
|
|
1772
|
-
strokeWidth:
|
|
1774
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1773
1775
|
strokeLinecap: "round",
|
|
1774
1776
|
strokeLinejoin: "round"
|
|
1775
1777
|
}), /* @__PURE__ */ s("polyline", {
|
|
1776
1778
|
points: "0 5.5, 0 17, 20 17, 20 5.5, 10 13.5, 0 5.5",
|
|
1777
1779
|
fill: _,
|
|
1778
1780
|
stroke: _,
|
|
1779
|
-
strokeWidth:
|
|
1781
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1780
1782
|
strokeLinecap: "round",
|
|
1781
1783
|
strokeLinejoin: "round"
|
|
1782
1784
|
})]
|
|
@@ -1787,7 +1789,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1787
1789
|
points: "0 3, 0 17, 20 17, 20 3, 10 11, 0 3, 20 3",
|
|
1788
1790
|
fill: "none",
|
|
1789
1791
|
stroke: _,
|
|
1790
|
-
strokeWidth:
|
|
1792
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1791
1793
|
strokeLinecap: "round",
|
|
1792
1794
|
strokeLinejoin: "round"
|
|
1793
1795
|
})
|
|
@@ -1798,7 +1800,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1798
1800
|
d: "M5 1.5C5 2.5 5 8 5 8M5 1.5C5 0.499993 7 0.500007 7 1.5M5 1.5C5 1.5 5 4.00001 5 3.00001C5 2 3 1.93337 3 3.00001C3 4.06664 3 10 3 10C3 10 3 8.25001 3 7.25001C3 6.25 1 6.25 1 7.25001C1 8.25001 1 12 1 12L3 14V16H9V14L11 12V8.56252C11 8.56252 11 5 11 4C11 3 9 3 9 4C9 5 9 3.00001 9 3.00001M7 1.5C7 2.49999 7 8 7 8M7 1.5C7 1.5 7 4.00001 7 3.00001C7 2.00001 9 2.00001 9 3.00001M9 3.00001V8",
|
|
1799
1801
|
fill: "none",
|
|
1800
1802
|
stroke: _,
|
|
1801
|
-
strokeWidth:
|
|
1803
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1802
1804
|
strokeLinejoin: "round"
|
|
1803
1805
|
})
|
|
1804
1806
|
});
|
|
@@ -1812,7 +1814,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1812
1814
|
height: 16,
|
|
1813
1815
|
fill: "none",
|
|
1814
1816
|
stroke: _,
|
|
1815
|
-
strokeWidth:
|
|
1817
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1816
1818
|
strokeLinejoin: "round"
|
|
1817
1819
|
}),
|
|
1818
1820
|
/* @__PURE__ */ s("rect", {
|
|
@@ -1822,27 +1824,27 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1822
1824
|
height: 4,
|
|
1823
1825
|
fill: "currentColor",
|
|
1824
1826
|
stroke: _,
|
|
1825
|
-
strokeWidth:
|
|
1827
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1826
1828
|
strokeLinejoin: "round"
|
|
1827
1829
|
}),
|
|
1828
1830
|
/* @__PURE__ */ s("polyline", {
|
|
1829
1831
|
points: "2 10, 18 10",
|
|
1830
1832
|
stroke: _,
|
|
1831
|
-
strokeWidth:
|
|
1833
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1832
1834
|
strokeLinecap: "round",
|
|
1833
1835
|
strokeLinejoin: "round"
|
|
1834
1836
|
}),
|
|
1835
1837
|
/* @__PURE__ */ s("polyline", {
|
|
1836
1838
|
points: "2 14, 18 14",
|
|
1837
1839
|
stroke: _,
|
|
1838
|
-
strokeWidth:
|
|
1840
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1839
1841
|
strokeLinecap: "round",
|
|
1840
1842
|
strokeLinejoin: "round"
|
|
1841
1843
|
}),
|
|
1842
1844
|
/* @__PURE__ */ s("polyline", {
|
|
1843
1845
|
points: "6 2, 6 18",
|
|
1844
1846
|
stroke: _,
|
|
1845
|
-
strokeWidth:
|
|
1847
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1846
1848
|
strokeLinecap: "round",
|
|
1847
1849
|
strokeLinejoin: "round"
|
|
1848
1850
|
})
|
|
@@ -1858,14 +1860,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1858
1860
|
height: 16,
|
|
1859
1861
|
fill: "none",
|
|
1860
1862
|
stroke: _,
|
|
1861
|
-
strokeWidth:
|
|
1863
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1862
1864
|
strokeLinejoin: "round"
|
|
1863
1865
|
}),
|
|
1864
1866
|
/* @__PURE__ */ s("polyline", {
|
|
1865
1867
|
points: "6 6, 12 6",
|
|
1866
1868
|
fill: "none",
|
|
1867
1869
|
stroke: _,
|
|
1868
|
-
strokeWidth:
|
|
1870
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1869
1871
|
strokeLinecap: "round",
|
|
1870
1872
|
strokeLinejoin: "round"
|
|
1871
1873
|
}),
|
|
@@ -1873,7 +1875,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1873
1875
|
points: "6 10, 14 10",
|
|
1874
1876
|
fill: "none",
|
|
1875
1877
|
stroke: _,
|
|
1876
|
-
strokeWidth:
|
|
1878
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1877
1879
|
strokeLinecap: "round",
|
|
1878
1880
|
strokeLinejoin: "round"
|
|
1879
1881
|
}),
|
|
@@ -1881,7 +1883,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1881
1883
|
points: "6 14, 10 14",
|
|
1882
1884
|
fill: "none",
|
|
1883
1885
|
stroke: _,
|
|
1884
|
-
strokeWidth:
|
|
1886
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1885
1887
|
strokeLinecap: "round",
|
|
1886
1888
|
strokeLinejoin: "round"
|
|
1887
1889
|
})
|
|
@@ -1897,21 +1899,21 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1897
1899
|
/* @__PURE__ */ s("polyline", {
|
|
1898
1900
|
points: "3 3, 3 11",
|
|
1899
1901
|
stroke: _,
|
|
1900
|
-
strokeWidth:
|
|
1902
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1901
1903
|
strokeLinecap: "round",
|
|
1902
1904
|
strokeLinejoin: "round"
|
|
1903
1905
|
}),
|
|
1904
1906
|
/* @__PURE__ */ s("polyline", {
|
|
1905
1907
|
points: "7 3, 7 11",
|
|
1906
1908
|
stroke: _,
|
|
1907
|
-
strokeWidth:
|
|
1909
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1908
1910
|
strokeLinecap: "round",
|
|
1909
1911
|
strokeLinejoin: "round"
|
|
1910
1912
|
}),
|
|
1911
1913
|
/* @__PURE__ */ s("polyline", {
|
|
1912
1914
|
points: "11 3, 11 11",
|
|
1913
1915
|
stroke: _,
|
|
1914
|
-
strokeWidth:
|
|
1916
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1915
1917
|
strokeLinecap: "round",
|
|
1916
1918
|
strokeLinejoin: "round"
|
|
1917
1919
|
})
|
|
@@ -1923,21 +1925,21 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1923
1925
|
/* @__PURE__ */ s("polyline", {
|
|
1924
1926
|
points: "3 3, 11 3",
|
|
1925
1927
|
stroke: _,
|
|
1926
|
-
strokeWidth:
|
|
1928
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1927
1929
|
strokeLinecap: "round",
|
|
1928
1930
|
strokeLinejoin: "round"
|
|
1929
1931
|
}),
|
|
1930
1932
|
/* @__PURE__ */ s("polyline", {
|
|
1931
1933
|
points: "3 7, 11 7",
|
|
1932
1934
|
stroke: _,
|
|
1933
|
-
strokeWidth:
|
|
1935
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1934
1936
|
strokeLinecap: "round",
|
|
1935
1937
|
strokeLinejoin: "round"
|
|
1936
1938
|
}),
|
|
1937
1939
|
/* @__PURE__ */ s("polyline", {
|
|
1938
1940
|
points: "3 11, 11 11",
|
|
1939
1941
|
stroke: _,
|
|
1940
|
-
strokeWidth:
|
|
1942
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1941
1943
|
strokeLinecap: "round",
|
|
1942
1944
|
strokeLinejoin: "round"
|
|
1943
1945
|
})
|
|
@@ -1949,14 +1951,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1949
1951
|
d: "M7,3 A 4 4 30 1 1 3.535 5",
|
|
1950
1952
|
fill: "none",
|
|
1951
1953
|
stroke: _,
|
|
1952
|
-
strokeWidth:
|
|
1954
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1953
1955
|
strokeLinecap: "round",
|
|
1954
1956
|
strokeLinejoin: "round"
|
|
1955
1957
|
}), /* @__PURE__ */ s("path", {
|
|
1956
1958
|
d: "M9.5,1.5 L7,3 L8,6",
|
|
1957
1959
|
fill: "none",
|
|
1958
1960
|
stroke: _,
|
|
1959
|
-
strokeWidth:
|
|
1961
|
+
strokeWidth: J.ICON_LINE_WIDTH,
|
|
1960
1962
|
strokeLinecap: "round",
|
|
1961
1963
|
strokeLinejoin: "round"
|
|
1962
1964
|
})]
|
|
@@ -1987,7 +1989,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
1987
1989
|
x: t / 2,
|
|
1988
1990
|
y: n / 2,
|
|
1989
1991
|
maxWidth: t - 16,
|
|
1990
|
-
fontSize:
|
|
1992
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
1991
1993
|
fontWeight: "bold",
|
|
1992
1994
|
fill: v,
|
|
1993
1995
|
maxLines: A(n - (u ? 30 : 8) - (d ? 20 : 8), 19)
|
|
@@ -2010,7 +2012,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2010
2012
|
points: "0 3, 0 17, 20 17, 20 3, 10 11, 0 3, 20 3",
|
|
2011
2013
|
fill: "none",
|
|
2012
2014
|
stroke: b,
|
|
2013
|
-
strokeWidth:
|
|
2015
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2014
2016
|
})
|
|
2015
2017
|
});
|
|
2016
2018
|
case "timer": return /* @__PURE__ */ c("g", {
|
|
@@ -2021,14 +2023,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2021
2023
|
r: 10,
|
|
2022
2024
|
fill: "none",
|
|
2023
2025
|
stroke: b,
|
|
2024
|
-
strokeWidth:
|
|
2026
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2025
2027
|
}), /* @__PURE__ */ s("polyline", {
|
|
2026
2028
|
points: "10 4, 10 10, 13 13",
|
|
2027
2029
|
strokeLinecap: "round",
|
|
2028
2030
|
strokeLinejoin: "round",
|
|
2029
2031
|
fill: "none",
|
|
2030
2032
|
stroke: b,
|
|
2031
|
-
strokeWidth:
|
|
2033
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2032
2034
|
})]
|
|
2033
2035
|
});
|
|
2034
2036
|
case "conditional": return /* @__PURE__ */ c("g", {
|
|
@@ -2041,17 +2043,17 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2041
2043
|
height: 16,
|
|
2042
2044
|
fill: "none",
|
|
2043
2045
|
stroke: b,
|
|
2044
|
-
strokeWidth:
|
|
2046
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2045
2047
|
}),
|
|
2046
2048
|
/* @__PURE__ */ s("polyline", {
|
|
2047
2049
|
points: "6 7, 14 7",
|
|
2048
2050
|
stroke: b,
|
|
2049
|
-
strokeWidth:
|
|
2051
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2050
2052
|
}),
|
|
2051
2053
|
/* @__PURE__ */ s("polyline", {
|
|
2052
2054
|
points: "6 13, 14 13",
|
|
2053
2055
|
stroke: b,
|
|
2054
|
-
strokeWidth:
|
|
2056
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2055
2057
|
})
|
|
2056
2058
|
]
|
|
2057
2059
|
});
|
|
@@ -2061,7 +2063,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2061
2063
|
points: "10 3, 3 15, 17 15, 10 3",
|
|
2062
2064
|
fill: "none",
|
|
2063
2065
|
stroke: b,
|
|
2064
|
-
strokeWidth:
|
|
2066
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2065
2067
|
})
|
|
2066
2068
|
});
|
|
2067
2069
|
}
|
|
@@ -2072,7 +2074,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2072
2074
|
points: "0 3, 0 17, 20 17, 20 3, 10 11, 0 3, 20 3",
|
|
2073
2075
|
fill: "none",
|
|
2074
2076
|
stroke: b,
|
|
2075
|
-
strokeWidth:
|
|
2077
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2076
2078
|
})
|
|
2077
2079
|
});
|
|
2078
2080
|
case "message-throw": return /* @__PURE__ */ c("g", {
|
|
@@ -2081,12 +2083,12 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2081
2083
|
points: "0.2 3, 19.8 3, 10 11, 0.2 3",
|
|
2082
2084
|
fill: b,
|
|
2083
2085
|
stroke: b,
|
|
2084
|
-
strokeWidth:
|
|
2086
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2085
2087
|
}), /* @__PURE__ */ s("polyline", {
|
|
2086
2088
|
points: "0 5.5, 0 17, 20 17, 20 5.5, 10 13.5, 0 5.5",
|
|
2087
2089
|
fill: b,
|
|
2088
2090
|
stroke: b,
|
|
2089
|
-
strokeWidth:
|
|
2091
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2090
2092
|
})]
|
|
2091
2093
|
});
|
|
2092
2094
|
case "timer-catch": return /* @__PURE__ */ c("g", {
|
|
@@ -2097,14 +2099,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2097
2099
|
r: 10,
|
|
2098
2100
|
fill: "none",
|
|
2099
2101
|
stroke: b,
|
|
2100
|
-
strokeWidth:
|
|
2102
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2101
2103
|
}), /* @__PURE__ */ s("polyline", {
|
|
2102
2104
|
points: "10 4, 10 10, 13 13",
|
|
2103
2105
|
strokeLinecap: "round",
|
|
2104
2106
|
strokeLinejoin: "round",
|
|
2105
2107
|
fill: "none",
|
|
2106
2108
|
stroke: b,
|
|
2107
|
-
strokeWidth:
|
|
2109
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2108
2110
|
})]
|
|
2109
2111
|
});
|
|
2110
2112
|
case "escalation-throw": return /* @__PURE__ */ s("g", {
|
|
@@ -2113,7 +2115,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2113
2115
|
points: "10 3, 4 15, 10 12, 16 15, 10 3",
|
|
2114
2116
|
stroke: b,
|
|
2115
2117
|
fill: b,
|
|
2116
|
-
strokeWidth:
|
|
2118
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2117
2119
|
})
|
|
2118
2120
|
});
|
|
2119
2121
|
case "conditional-catch": return /* @__PURE__ */ c("g", {
|
|
@@ -2126,17 +2128,17 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2126
2128
|
height: 16,
|
|
2127
2129
|
fill: "none",
|
|
2128
2130
|
stroke: b,
|
|
2129
|
-
strokeWidth:
|
|
2131
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2130
2132
|
}),
|
|
2131
2133
|
/* @__PURE__ */ s("polyline", {
|
|
2132
2134
|
points: "6 7, 14 7",
|
|
2133
2135
|
stroke: b,
|
|
2134
|
-
strokeWidth:
|
|
2136
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2135
2137
|
}),
|
|
2136
2138
|
/* @__PURE__ */ s("polyline", {
|
|
2137
2139
|
points: "6 13, 14 13",
|
|
2138
2140
|
stroke: b,
|
|
2139
|
-
strokeWidth:
|
|
2141
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2140
2142
|
})
|
|
2141
2143
|
]
|
|
2142
2144
|
});
|
|
@@ -2146,7 +2148,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2146
2148
|
points: "3 7, 13 7, 13 4, 18 10, 13 16, 13 13, 3 13, 3 7",
|
|
2147
2149
|
fill: "none",
|
|
2148
2150
|
stroke: b,
|
|
2149
|
-
strokeWidth:
|
|
2151
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2150
2152
|
})
|
|
2151
2153
|
});
|
|
2152
2154
|
case "link-throw": return /* @__PURE__ */ s("g", {
|
|
@@ -2155,7 +2157,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2155
2157
|
points: "3 7, 13 7, 13 4, 18 10, 13 16, 13 13, 3 13, 3 7",
|
|
2156
2158
|
fill: b,
|
|
2157
2159
|
stroke: b,
|
|
2158
|
-
strokeWidth:
|
|
2160
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2159
2161
|
})
|
|
2160
2162
|
});
|
|
2161
2163
|
case "compensation-throw": return /* @__PURE__ */ c("g", {
|
|
@@ -2164,12 +2166,12 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2164
2166
|
points: "3 10, 9 6, 9 14, 3 10",
|
|
2165
2167
|
fill: b,
|
|
2166
2168
|
stroke: b,
|
|
2167
|
-
strokeWidth:
|
|
2169
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2168
2170
|
}), /* @__PURE__ */ s("polyline", {
|
|
2169
2171
|
points: "10 10, 16 6, 16 14, 10 10",
|
|
2170
2172
|
fill: b,
|
|
2171
2173
|
stroke: b,
|
|
2172
|
-
strokeWidth:
|
|
2174
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2173
2175
|
})]
|
|
2174
2176
|
});
|
|
2175
2177
|
case "signal-catch": return /* @__PURE__ */ s("g", {
|
|
@@ -2178,7 +2180,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2178
2180
|
points: "10 3, 3 15, 17 15, 10 3",
|
|
2179
2181
|
fill: "none",
|
|
2180
2182
|
stroke: b,
|
|
2181
|
-
strokeWidth:
|
|
2183
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2182
2184
|
})
|
|
2183
2185
|
});
|
|
2184
2186
|
case "signal-throw": return /* @__PURE__ */ s("g", {
|
|
@@ -2187,7 +2189,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2187
2189
|
points: "10 3, 3 15, 17 15, 10 3",
|
|
2188
2190
|
fill: b,
|
|
2189
2191
|
stroke: b,
|
|
2190
|
-
strokeWidth:
|
|
2192
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2191
2193
|
})
|
|
2192
2194
|
});
|
|
2193
2195
|
}
|
|
@@ -2198,12 +2200,12 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2198
2200
|
points: "0.2 3, 19.8 3, 10 11, 0.2 3",
|
|
2199
2201
|
fill: b,
|
|
2200
2202
|
stroke: b,
|
|
2201
|
-
strokeWidth:
|
|
2203
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2202
2204
|
}), /* @__PURE__ */ s("polyline", {
|
|
2203
2205
|
points: "0 5.5, 0 17, 20 17, 20 5.5, 10 13.5, 0 5.5",
|
|
2204
2206
|
fill: b,
|
|
2205
2207
|
stroke: b,
|
|
2206
|
-
strokeWidth:
|
|
2208
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2207
2209
|
})]
|
|
2208
2210
|
});
|
|
2209
2211
|
case "escalation": return /* @__PURE__ */ s("g", {
|
|
@@ -2212,7 +2214,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2212
2214
|
points: "10 3, 4 15, 10 12, 16 15, 10 3",
|
|
2213
2215
|
stroke: b,
|
|
2214
2216
|
fill: b,
|
|
2215
|
-
strokeWidth:
|
|
2217
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2216
2218
|
})
|
|
2217
2219
|
});
|
|
2218
2220
|
case "error": return /* @__PURE__ */ s("g", {
|
|
@@ -2221,7 +2223,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2221
2223
|
points: "3 16, 6 4, 13 11, 17 4, 14 16, 7 10, 3 16",
|
|
2222
2224
|
fill: b,
|
|
2223
2225
|
stroke: b,
|
|
2224
|
-
strokeWidth:
|
|
2226
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2225
2227
|
})
|
|
2226
2228
|
});
|
|
2227
2229
|
case "compensation": return /* @__PURE__ */ c("g", {
|
|
@@ -2230,12 +2232,12 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2230
2232
|
points: "3 10, 9 6, 9 14, 3 10",
|
|
2231
2233
|
fill: b,
|
|
2232
2234
|
stroke: b,
|
|
2233
|
-
strokeWidth:
|
|
2235
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2234
2236
|
}), /* @__PURE__ */ s("polyline", {
|
|
2235
2237
|
points: "10 10, 16 6, 16 14, 10 10",
|
|
2236
2238
|
fill: b,
|
|
2237
2239
|
stroke: b,
|
|
2238
|
-
strokeWidth:
|
|
2240
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2239
2241
|
})]
|
|
2240
2242
|
});
|
|
2241
2243
|
case "signal": return /* @__PURE__ */ s("g", {
|
|
@@ -2244,7 +2246,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2244
2246
|
points: "10 3, 3 15, 17 15, 10 3",
|
|
2245
2247
|
fill: b,
|
|
2246
2248
|
stroke: b,
|
|
2247
|
-
strokeWidth:
|
|
2249
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2248
2250
|
})
|
|
2249
2251
|
});
|
|
2250
2252
|
case "terminate": return /* @__PURE__ */ s("g", {
|
|
@@ -2255,7 +2257,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2255
2257
|
r: 8,
|
|
2256
2258
|
fill: b,
|
|
2257
2259
|
stroke: b,
|
|
2258
|
-
strokeWidth:
|
|
2260
|
+
strokeWidth: J.ICON_LINE_WIDTH
|
|
2259
2261
|
})
|
|
2260
2262
|
});
|
|
2261
2263
|
}
|
|
@@ -2272,7 +2274,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2272
2274
|
cx: e / 2,
|
|
2273
2275
|
cy: t / 2,
|
|
2274
2276
|
r: g,
|
|
2275
|
-
strokeWidth: v ?
|
|
2277
|
+
strokeWidth: v ? J.LINE_WIDTH * 2 : J.LINE_WIDTH,
|
|
2276
2278
|
stroke: b,
|
|
2277
2279
|
fill: y
|
|
2278
2280
|
}),
|
|
@@ -2281,7 +2283,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2281
2283
|
cy: t / 2,
|
|
2282
2284
|
r: g - 3.5,
|
|
2283
2285
|
stroke: b,
|
|
2284
|
-
strokeWidth:
|
|
2286
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2285
2287
|
fill: y
|
|
2286
2288
|
}),
|
|
2287
2289
|
S,
|
|
@@ -2318,7 +2320,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2318
2320
|
children: [
|
|
2319
2321
|
/* @__PURE__ */ s("polygon", {
|
|
2320
2322
|
points: v,
|
|
2321
|
-
strokeWidth:
|
|
2323
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2322
2324
|
stroke: b,
|
|
2323
2325
|
fill: y
|
|
2324
2326
|
}),
|
|
@@ -2328,14 +2330,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2328
2330
|
x2: e - 13,
|
|
2329
2331
|
y2: t - 13,
|
|
2330
2332
|
stroke: b,
|
|
2331
|
-
strokeWidth:
|
|
2333
|
+
strokeWidth: J.LINE_WIDTH
|
|
2332
2334
|
}), /* @__PURE__ */ s("line", {
|
|
2333
2335
|
x1: 13,
|
|
2334
2336
|
y1: t - 13,
|
|
2335
2337
|
x2: e - 13,
|
|
2336
2338
|
y2: 13,
|
|
2337
2339
|
stroke: b,
|
|
2338
|
-
strokeWidth:
|
|
2340
|
+
strokeWidth: J.LINE_WIDTH
|
|
2339
2341
|
})] }),
|
|
2340
2342
|
u === "parallel" && /* @__PURE__ */ c("g", { children: [/* @__PURE__ */ s("line", {
|
|
2341
2343
|
x1: e / 2,
|
|
@@ -2343,14 +2345,14 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2343
2345
|
x2: e / 2,
|
|
2344
2346
|
y2: t - 10,
|
|
2345
2347
|
stroke: b,
|
|
2346
|
-
strokeWidth:
|
|
2348
|
+
strokeWidth: J.LINE_WIDTH
|
|
2347
2349
|
}), /* @__PURE__ */ s("line", {
|
|
2348
2350
|
x1: 10,
|
|
2349
2351
|
y1: t / 2,
|
|
2350
2352
|
x2: e - 10,
|
|
2351
2353
|
y2: t / 2,
|
|
2352
2354
|
stroke: b,
|
|
2353
|
-
strokeWidth:
|
|
2355
|
+
strokeWidth: J.LINE_WIDTH
|
|
2354
2356
|
})] }),
|
|
2355
2357
|
u === "inclusive" && /* @__PURE__ */ s("circle", {
|
|
2356
2358
|
cx: e / 2,
|
|
@@ -2358,7 +2360,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2358
2360
|
r: Math.min(e, t) / 2 - 12,
|
|
2359
2361
|
fill: "none",
|
|
2360
2362
|
stroke: b,
|
|
2361
|
-
strokeWidth:
|
|
2363
|
+
strokeWidth: J.LINE_WIDTH
|
|
2362
2364
|
}),
|
|
2363
2365
|
u === "event-based" && /* @__PURE__ */ c("g", { children: [
|
|
2364
2366
|
/* @__PURE__ */ s("circle", {
|
|
@@ -2367,7 +2369,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2367
2369
|
r: Math.min(e, t) / 2 - 9,
|
|
2368
2370
|
fill: "none",
|
|
2369
2371
|
stroke: b,
|
|
2370
|
-
strokeWidth:
|
|
2372
|
+
strokeWidth: J.LINE_WIDTH
|
|
2371
2373
|
}),
|
|
2372
2374
|
/* @__PURE__ */ s("circle", {
|
|
2373
2375
|
cx: e / 2,
|
|
@@ -2375,13 +2377,13 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2375
2377
|
r: Math.min(e, t) / 2 - 12,
|
|
2376
2378
|
fill: "none",
|
|
2377
2379
|
stroke: b,
|
|
2378
|
-
strokeWidth:
|
|
2380
|
+
strokeWidth: J.LINE_WIDTH
|
|
2379
2381
|
}),
|
|
2380
2382
|
/* @__PURE__ */ s("path", {
|
|
2381
2383
|
d: `M${e / 2} ${t / 2 - 4} L${e / 2 + 3.5} ${t / 2 - 1} L${e / 2 + 2} ${t / 2 + 3.5} L${e / 2 - 2} ${t / 2 + 3.5} L${e / 2 - 3.5} ${t / 2 - 1} Z`,
|
|
2382
2384
|
fill: "none",
|
|
2383
2385
|
stroke: b,
|
|
2384
|
-
strokeWidth:
|
|
2386
|
+
strokeWidth: J.LINE_WIDTH
|
|
2385
2387
|
})
|
|
2386
2388
|
] }),
|
|
2387
2389
|
u === "complex" && /* @__PURE__ */ c("g", { children: [
|
|
@@ -2391,7 +2393,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2391
2393
|
x2: e - 13,
|
|
2392
2394
|
y2: t - 13,
|
|
2393
2395
|
stroke: b,
|
|
2394
|
-
strokeWidth:
|
|
2396
|
+
strokeWidth: J.LINE_WIDTH
|
|
2395
2397
|
}),
|
|
2396
2398
|
/* @__PURE__ */ s("line", {
|
|
2397
2399
|
x1: 13,
|
|
@@ -2399,7 +2401,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2399
2401
|
x2: e - 13,
|
|
2400
2402
|
y2: 13,
|
|
2401
2403
|
stroke: b,
|
|
2402
|
-
strokeWidth:
|
|
2404
|
+
strokeWidth: J.LINE_WIDTH
|
|
2403
2405
|
}),
|
|
2404
2406
|
/* @__PURE__ */ s("line", {
|
|
2405
2407
|
x1: e / 2,
|
|
@@ -2407,7 +2409,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2407
2409
|
x2: e / 2,
|
|
2408
2410
|
y2: t - 10,
|
|
2409
2411
|
stroke: b,
|
|
2410
|
-
strokeWidth:
|
|
2412
|
+
strokeWidth: J.LINE_WIDTH
|
|
2411
2413
|
}),
|
|
2412
2414
|
/* @__PURE__ */ s("line", {
|
|
2413
2415
|
x1: 10,
|
|
@@ -2415,7 +2417,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2415
2417
|
x2: e - 10,
|
|
2416
2418
|
y2: t / 2,
|
|
2417
2419
|
stroke: b,
|
|
2418
|
-
strokeWidth:
|
|
2420
|
+
strokeWidth: J.LINE_WIDTH
|
|
2419
2421
|
})
|
|
2420
2422
|
] }),
|
|
2421
2423
|
l && /* @__PURE__ */ s(D, {
|
|
@@ -2467,7 +2469,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2467
2469
|
y: 0,
|
|
2468
2470
|
width: e,
|
|
2469
2471
|
height: t,
|
|
2470
|
-
strokeWidth:
|
|
2472
|
+
strokeWidth: J.LINE_WIDTH * 3,
|
|
2471
2473
|
rx: 10,
|
|
2472
2474
|
ry: 10,
|
|
2473
2475
|
fill: y,
|
|
@@ -2491,7 +2493,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2491
2493
|
height: 14,
|
|
2492
2494
|
fill: "none",
|
|
2493
2495
|
stroke: b,
|
|
2494
|
-
strokeWidth:
|
|
2496
|
+
strokeWidth: J.LINE_WIDTH
|
|
2495
2497
|
}),
|
|
2496
2498
|
/* @__PURE__ */ s("line", {
|
|
2497
2499
|
x1: e / 2 - 4,
|
|
@@ -2499,7 +2501,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2499
2501
|
x2: e / 2 + 4,
|
|
2500
2502
|
y2: t - 7,
|
|
2501
2503
|
stroke: b,
|
|
2502
|
-
strokeWidth:
|
|
2504
|
+
strokeWidth: J.LINE_WIDTH
|
|
2503
2505
|
}),
|
|
2504
2506
|
/* @__PURE__ */ s("line", {
|
|
2505
2507
|
x1: e / 2,
|
|
@@ -2507,7 +2509,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2507
2509
|
x2: e / 2,
|
|
2508
2510
|
y2: t - 3,
|
|
2509
2511
|
stroke: b,
|
|
2510
|
-
strokeWidth:
|
|
2512
|
+
strokeWidth: J.LINE_WIDTH
|
|
2511
2513
|
})
|
|
2512
2514
|
] }),
|
|
2513
2515
|
/* @__PURE__ */ s(j, {
|
|
@@ -2515,10 +2517,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2515
2517
|
x: e / 2,
|
|
2516
2518
|
y: t / 2,
|
|
2517
2519
|
maxWidth: e - 16,
|
|
2518
|
-
fontSize:
|
|
2520
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
2519
2521
|
fontWeight: "bold",
|
|
2520
2522
|
fill: x,
|
|
2521
|
-
maxLines: A(t - (v ? 28 : 16),
|
|
2523
|
+
maxLines: A(t - (v ? 28 : 16), J.NAME_LINE_HEIGHT)
|
|
2522
2524
|
}),
|
|
2523
2525
|
l && /* @__PURE__ */ s(P, {
|
|
2524
2526
|
x: e - 15,
|
|
@@ -2538,7 +2540,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2538
2540
|
children: [
|
|
2539
2541
|
/* @__PURE__ */ s("path", {
|
|
2540
2542
|
d: `M20,0 L10,0 A 10 10 280 0 0 0 10 L0,${t - 10} A 10 10 180 0 0 10 ${t} L20, ${t}`,
|
|
2541
|
-
strokeWidth:
|
|
2543
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2542
2544
|
stroke: p,
|
|
2543
2545
|
fill: g
|
|
2544
2546
|
}),
|
|
@@ -2556,10 +2558,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2556
2558
|
x: (e + 20) / 2,
|
|
2557
2559
|
y: t / 2,
|
|
2558
2560
|
maxWidth: e - 28,
|
|
2559
|
-
fontSize:
|
|
2561
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
2560
2562
|
fontWeight: "bold",
|
|
2561
2563
|
fill: m,
|
|
2562
|
-
maxLines: A(t - 16,
|
|
2564
|
+
maxLines: A(t - 16, J.NAME_LINE_HEIGHT)
|
|
2563
2565
|
}),
|
|
2564
2566
|
o && /* @__PURE__ */ s(P, {
|
|
2565
2567
|
x: e - 15,
|
|
@@ -2579,7 +2581,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2579
2581
|
children: [
|
|
2580
2582
|
/* @__PURE__ */ s("path", {
|
|
2581
2583
|
d: `M0,0 L0,${t} L${e},${t} L${e},15 L${e - 15},0 L${e - 15},15 L${e},15 L${e - 15},0 L0,0`,
|
|
2582
|
-
strokeWidth:
|
|
2584
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2583
2585
|
stroke: m,
|
|
2584
2586
|
fill: p
|
|
2585
2587
|
}),
|
|
@@ -2610,26 +2612,26 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2610
2612
|
children: [
|
|
2611
2613
|
/* @__PURE__ */ s("path", {
|
|
2612
2614
|
d: `M 0 10 L 0 ${t - 10} A ${e / 2} 10 0 0 0 ${e} ${t - 10} L ${e} 10 A ${e / 2} 10 180 0 0 0 10`,
|
|
2613
|
-
strokeWidth:
|
|
2615
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2614
2616
|
stroke: m,
|
|
2615
2617
|
fill: p
|
|
2616
2618
|
}),
|
|
2617
2619
|
/* @__PURE__ */ s("path", {
|
|
2618
2620
|
d: `M 0 30 A ${e / 2} 10 0 0 0 ${e} 30`,
|
|
2619
|
-
strokeWidth:
|
|
2621
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2620
2622
|
stroke: m,
|
|
2621
2623
|
fill: "none"
|
|
2622
2624
|
}),
|
|
2623
2625
|
/* @__PURE__ */ s("path", {
|
|
2624
2626
|
d: `M 0 20 A ${e / 2} 10 0 0 0 ${e} 20`,
|
|
2625
2627
|
stroke: m,
|
|
2626
|
-
strokeWidth:
|
|
2628
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2627
2629
|
fill: "none"
|
|
2628
2630
|
}),
|
|
2629
2631
|
/* @__PURE__ */ s("path", {
|
|
2630
2632
|
d: `M 0 10 A ${e / 2} 10 0 0 0 ${e} 10`,
|
|
2631
2633
|
stroke: m,
|
|
2632
|
-
strokeWidth:
|
|
2634
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2633
2635
|
fill: "none"
|
|
2634
2636
|
}),
|
|
2635
2637
|
/* @__PURE__ */ s(D, {
|
|
@@ -2671,7 +2673,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2671
2673
|
x2: 40,
|
|
2672
2674
|
y2: t,
|
|
2673
2675
|
stroke: m,
|
|
2674
|
-
strokeWidth:
|
|
2676
|
+
strokeWidth: J.LINE_WIDTH
|
|
2675
2677
|
}),
|
|
2676
2678
|
/* @__PURE__ */ s(D, {
|
|
2677
2679
|
x: 40 / 2,
|
|
@@ -2703,7 +2705,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2703
2705
|
width: e,
|
|
2704
2706
|
height: t,
|
|
2705
2707
|
stroke: p,
|
|
2706
|
-
strokeWidth:
|
|
2708
|
+
strokeWidth: J.LINE_WIDTH,
|
|
2707
2709
|
fill: g,
|
|
2708
2710
|
strokeDasharray: "10",
|
|
2709
2711
|
rx: 10,
|
|
@@ -2714,10 +2716,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2714
2716
|
x: e / 2,
|
|
2715
2717
|
y: t / 2,
|
|
2716
2718
|
maxWidth: e - 16,
|
|
2717
|
-
fontSize:
|
|
2719
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
2718
2720
|
fontWeight: "bold",
|
|
2719
2721
|
fill: m,
|
|
2720
|
-
maxLines: A(t - 16,
|
|
2722
|
+
maxLines: A(t - 16, J.NAME_LINE_HEIGHT)
|
|
2721
2723
|
}),
|
|
2722
2724
|
o && /* @__PURE__ */ s(P, {
|
|
2723
2725
|
x: e - 15,
|
|
@@ -2748,10 +2750,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2748
2750
|
x: t / 2,
|
|
2749
2751
|
y: n / 2,
|
|
2750
2752
|
maxWidth: t - 16,
|
|
2751
|
-
fontSize:
|
|
2753
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
2752
2754
|
fontWeight: "bold",
|
|
2753
2755
|
fill: g,
|
|
2754
|
-
maxLines: A(n - 16,
|
|
2756
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
2755
2757
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
2756
2758
|
x: t - 15,
|
|
2757
2759
|
y: -15,
|
|
@@ -2778,10 +2780,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2778
2780
|
x: t / 2,
|
|
2779
2781
|
y: n / 2,
|
|
2780
2782
|
maxWidth: t - 16,
|
|
2781
|
-
fontSize:
|
|
2783
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
2782
2784
|
fontWeight: "bold",
|
|
2783
2785
|
fill: g,
|
|
2784
|
-
maxLines: A(n - 16,
|
|
2786
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
2785
2787
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
2786
2788
|
x: t - 15,
|
|
2787
2789
|
y: -15,
|
|
@@ -2789,7 +2791,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2789
2791
|
})]
|
|
2790
2792
|
});
|
|
2791
2793
|
}, Ut = ({ id: e, width: t, height: n, data: r, SIDEBAR_PREVIEW_SCALE: i, svgAttributes: a, showAssessmentResults: l = !1 }) => {
|
|
2792
|
-
let { name: u, attributes: d = [], methods: f = [] } = r, p =
|
|
2794
|
+
let { name: u, attributes: d = [], methods: f = [] } = r, p = J.DEFAULT_HEADER_HEIGHT, m = J.DEFAULT_ATTRIBUTE_HEIGHT, g = J.DEFAULT_METHOD_HEIGHT, _ = J.DEFAULT_PADDING, v = M(h((e) => e.assessments)), y = (e) => e.map((e) => {
|
|
2793
2795
|
let t = v[e.id]?.score;
|
|
2794
2796
|
return {
|
|
2795
2797
|
...e,
|
|
@@ -2854,7 +2856,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2854
2856
|
] })
|
|
2855
2857
|
});
|
|
2856
2858
|
}, Wt = ({ id: e, svgAttributes: t, SIDEBAR_PREVIEW_SCALE: n, showAssessmentResults: r = !1, data: i, width: a, height: o }) => {
|
|
2857
|
-
let { name: l, tokens: u, capacity: d } = i, f = M(h((e) => e.assessments))[e]?.score, p = n ?? 1, m = a * p, g = o * p, _ =
|
|
2859
|
+
let { name: l, tokens: u, capacity: d } = i, f = M(h((e) => e.assessments))[e]?.score, p = n ?? 1, m = a * p, g = o * p, _ = J.DEFAULT_ATTRIBUTE_HEIGHT, v = _ * p, y = o + _, b = g + v, x = a / 2, S = o / 2, { fillColor: C, strokeColor: w, textColor: T } = F(i), E = () => {
|
|
2858
2860
|
if (u === 0) return null;
|
|
2859
2861
|
if (u <= 5) {
|
|
2860
2862
|
let e = [];
|
|
@@ -2930,7 +2932,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2930
2932
|
r: a / 2,
|
|
2931
2933
|
fill: C,
|
|
2932
2934
|
stroke: w,
|
|
2933
|
-
strokeWidth:
|
|
2935
|
+
strokeWidth: J.LINE_WIDTH
|
|
2934
2936
|
}),
|
|
2935
2937
|
typeof d == "number" && /* @__PURE__ */ c(D, {
|
|
2936
2938
|
x: a + 8,
|
|
@@ -2957,7 +2959,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
2957
2959
|
]
|
|
2958
2960
|
});
|
|
2959
2961
|
}, Gt = ({ id: e, svgAttributes: t, SIDEBAR_PREVIEW_SCALE: n, showAssessmentResults: r = !1, width: i, height: a, data: o }) => {
|
|
2960
|
-
let { name: l } = o, u = M(h((e) => e.assessments))[e]?.score, d = n ?? 1, f = i * d, p = a * d, m =
|
|
2962
|
+
let { name: l } = o, u = M(h((e) => e.assessments))[e]?.score, d = n ?? 1, f = i * d, p = a * d, m = J.DEFAULT_ATTRIBUTE_HEIGHT, g = m * d, _ = a + m, v = p + g, { fillColor: y, strokeColor: b, textColor: x } = F(o);
|
|
2961
2963
|
return /* @__PURE__ */ c("svg", {
|
|
2962
2964
|
width: f,
|
|
2963
2965
|
height: v,
|
|
@@ -3013,17 +3015,17 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3013
3015
|
height: t - 10,
|
|
3014
3016
|
fill: "none",
|
|
3015
3017
|
stroke: d,
|
|
3016
|
-
strokeWidth:
|
|
3018
|
+
strokeWidth: J.LINE_WIDTH
|
|
3017
3019
|
}),
|
|
3018
3020
|
/* @__PURE__ */ s(j, {
|
|
3019
3021
|
text: a,
|
|
3020
3022
|
x: e / 2,
|
|
3021
3023
|
y: t / 2,
|
|
3022
3024
|
maxWidth: e - 16,
|
|
3023
|
-
fontSize:
|
|
3025
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
3024
3026
|
fontWeight: "600",
|
|
3025
3027
|
fill: f,
|
|
3026
|
-
maxLines: A(t - 16,
|
|
3028
|
+
maxLines: A(t - 16, J.NAME_LINE_HEIGHT)
|
|
3027
3029
|
})
|
|
3028
3030
|
]
|
|
3029
3031
|
});
|
|
@@ -3047,10 +3049,10 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3047
3049
|
x: t / 2,
|
|
3048
3050
|
y: n / 2,
|
|
3049
3051
|
maxWidth: t - 16,
|
|
3050
|
-
fontSize:
|
|
3052
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
3051
3053
|
fontWeight: "600",
|
|
3052
3054
|
fill: g,
|
|
3053
|
-
maxLines: A(n - 16,
|
|
3055
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
3054
3056
|
})] }), o && /* @__PURE__ */ s(P, {
|
|
3055
3057
|
x: t - 15,
|
|
3056
3058
|
y: -15,
|
|
@@ -3078,7 +3080,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3078
3080
|
points: `8,${u} 8,${u + 20} 28,${u + 10} 8,${u}`,
|
|
3079
3081
|
fill: d,
|
|
3080
3082
|
stroke: f,
|
|
3081
|
-
strokeWidth:
|
|
3083
|
+
strokeWidth: J.LINE_WIDTH,
|
|
3082
3084
|
strokeLinejoin: "miter"
|
|
3083
3085
|
}),
|
|
3084
3086
|
/* @__PURE__ */ s("text", {
|
|
@@ -3092,7 +3094,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3092
3094
|
]
|
|
3093
3095
|
});
|
|
3094
3096
|
}, Yt = ({ width: e, height: t, data: n, svgAttributes: r, SIDEBAR_PREVIEW_SCALE: i }) => {
|
|
3095
|
-
let { name: a, showHint: o } = n, l = i ?? 1, u = e * l, d = t * l, f =
|
|
3097
|
+
let { name: a, showHint: o } = n, l = i ?? 1, u = e * l, d = t * l, f = J.DEFAULT_ATTRIBUTE_HEIGHT, p = f * l, m = t + f, h = d + p, g = e / 2, _ = t / 2, v = Math.min(e, t) / 2, { strokeColor: y } = F(n), b = n.fillColor || "var(--apollon-foreground, #000000)";
|
|
3096
3098
|
return /* @__PURE__ */ c("svg", {
|
|
3097
3099
|
width: u,
|
|
3098
3100
|
height: h,
|
|
@@ -3105,7 +3107,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3105
3107
|
r: v,
|
|
3106
3108
|
fill: b,
|
|
3107
3109
|
stroke: y,
|
|
3108
|
-
strokeWidth:
|
|
3110
|
+
strokeWidth: J.LINE_WIDTH
|
|
3109
3111
|
}), o && /* @__PURE__ */ s(D, {
|
|
3110
3112
|
x: g,
|
|
3111
3113
|
y: t + f / 2,
|
|
@@ -3137,7 +3139,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3137
3139
|
x2: e,
|
|
3138
3140
|
y2: t,
|
|
3139
3141
|
stroke: f,
|
|
3140
|
-
strokeWidth:
|
|
3142
|
+
strokeWidth: J.LINE_WIDTH
|
|
3141
3143
|
}, t)),
|
|
3142
3144
|
a.map((n, r) => {
|
|
3143
3145
|
let i = r * 30;
|
|
@@ -3151,7 +3153,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3151
3153
|
height: 30,
|
|
3152
3154
|
fill: a,
|
|
3153
3155
|
stroke: n.strokeColor ?? f,
|
|
3154
|
-
strokeWidth:
|
|
3156
|
+
strokeWidth: J.LINE_WIDTH
|
|
3155
3157
|
}),
|
|
3156
3158
|
/* @__PURE__ */ s(D, {
|
|
3157
3159
|
x: 15,
|
|
@@ -3181,7 +3183,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3181
3183
|
x2: 30,
|
|
3182
3184
|
y2: t,
|
|
3183
3185
|
stroke: f,
|
|
3184
|
-
strokeWidth:
|
|
3186
|
+
strokeWidth: J.LINE_WIDTH
|
|
3185
3187
|
})
|
|
3186
3188
|
]
|
|
3187
3189
|
});
|
|
@@ -3199,7 +3201,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3199
3201
|
for (let e of Object.keys(r)) r[e] !== void 0 && i.add(e);
|
|
3200
3202
|
for (let e of i) if (!G(n[e], r[e])) return !1;
|
|
3201
3203
|
return !0;
|
|
3202
|
-
}, Zt = (e, t) => {
|
|
3204
|
+
}, Zt = (e) => `«${e}»`, Qt = (e, t) => {
|
|
3203
3205
|
let n = e.length;
|
|
3204
3206
|
if (n === 0) return [];
|
|
3205
3207
|
let r;
|
|
@@ -3221,18 +3223,18 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3221
3223
|
extent: e
|
|
3222
3224
|
};
|
|
3223
3225
|
});
|
|
3224
|
-
},
|
|
3225
|
-
let n =
|
|
3226
|
+
}, $t = (e, t) => {
|
|
3227
|
+
let n = Qt(e, t);
|
|
3226
3228
|
return e.map((e, t) => ({
|
|
3227
3229
|
...e,
|
|
3228
3230
|
size: n[t].extent
|
|
3229
3231
|
}));
|
|
3230
|
-
},
|
|
3232
|
+
}, en = (e, t) => {
|
|
3231
3233
|
for (let n = 0; n < e.length; n++) if (t < e[n].start + e[n].extent) return n;
|
|
3232
3234
|
return Math.max(e.length - 1, 0);
|
|
3233
|
-
},
|
|
3235
|
+
}, tn = (e, t, n, r, i = 0) => {
|
|
3234
3236
|
if (t < 0 || t >= e.length - 1) return e;
|
|
3235
|
-
let a =
|
|
3237
|
+
let a = Qt(e, r), o = a.map((e) => e.extent), s = n;
|
|
3236
3238
|
if (i > 0) {
|
|
3237
3239
|
let e = a[t + 1].start + s;
|
|
3238
3240
|
s = Math.round(e / i) * i - a[t + 1].start;
|
|
@@ -3241,13 +3243,13 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3241
3243
|
...e,
|
|
3242
3244
|
size: o[t]
|
|
3243
3245
|
}));
|
|
3244
|
-
},
|
|
3246
|
+
}, nn = (e, t, n) => {
|
|
3245
3247
|
let r = e.width ?? 0, i = e.height ?? 0;
|
|
3246
3248
|
return {
|
|
3247
3249
|
x: Math.min(Math.max(e.position.y, 0), Math.max(t - r, 0)),
|
|
3248
3250
|
y: Math.min(Math.max(e.position.x, 0), Math.max(n - i, 0))
|
|
3249
3251
|
};
|
|
3250
|
-
},
|
|
3252
|
+
}, rn = [
|
|
3251
3253
|
"Swift",
|
|
3252
3254
|
"Bold",
|
|
3253
3255
|
"Clever",
|
|
@@ -3256,7 +3258,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3256
3258
|
"Eager",
|
|
3257
3259
|
"Kind",
|
|
3258
3260
|
"Noble"
|
|
3259
|
-
],
|
|
3261
|
+
], an = [
|
|
3260
3262
|
"Falcon",
|
|
3261
3263
|
"Otter",
|
|
3262
3264
|
"Panda",
|
|
@@ -3265,11 +3267,11 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3265
3267
|
"Owl",
|
|
3266
3268
|
"Fox",
|
|
3267
3269
|
"Crane"
|
|
3268
|
-
],
|
|
3270
|
+
], on = () => `${rn[Math.floor(Math.random() * rn.length)]} ${an[Math.floor(Math.random() * an.length)]}`, sn = (e) => {
|
|
3269
3271
|
let t = 0;
|
|
3270
3272
|
for (let n = 0; n < e.length; n += 1) t = (t << 5) - t + e.charCodeAt(n), t |= 0;
|
|
3271
|
-
return
|
|
3272
|
-
},
|
|
3273
|
+
return xn[Math.abs(t) % xn.length];
|
|
3274
|
+
}, cn = (e) => {
|
|
3273
3275
|
if (typeof e != "object" || !e) return null;
|
|
3274
3276
|
let { x: t, y: n, zoom: r } = e;
|
|
3275
3277
|
return !Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || r <= 0 ? null : {
|
|
@@ -3277,7 +3279,7 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3277
3279
|
y: n,
|
|
3278
3280
|
zoom: r
|
|
3279
3281
|
};
|
|
3280
|
-
},
|
|
3282
|
+
}, ln = (e) => {
|
|
3281
3283
|
if (!Array.isArray(e)) return null;
|
|
3282
3284
|
let t = [];
|
|
3283
3285
|
for (let n of e) {
|
|
@@ -3296,20 +3298,20 @@ var Be = 10, Ve = 5, He = ({ id: e, width: t, height: n, data: r, svgAttributes:
|
|
|
3296
3298
|
(i === null || Number.isFinite(i)) && (c.width = i), (a === null || Number.isFinite(a)) && (c.height = a), t.push(c);
|
|
3297
3299
|
}
|
|
3298
3300
|
return t;
|
|
3299
|
-
},
|
|
3300
|
-
function
|
|
3301
|
+
}, un = 10;
|
|
3302
|
+
function dn(e, t) {
|
|
3301
3303
|
let n = 1 / Math.SQRT2;
|
|
3302
3304
|
return {
|
|
3303
3305
|
x: e - e * n,
|
|
3304
3306
|
y: t - t * n
|
|
3305
3307
|
};
|
|
3306
3308
|
}
|
|
3307
|
-
function
|
|
3309
|
+
function fn(e, t, n, r) {
|
|
3308
3310
|
let i = Math.cos(Math.PI / 4), a = Math.sin(Math.PI / 4), o = (t, n) => Math.round(e + t * i - n * a), s = (e, n) => Math.round(t + e * a + n * i), c = r / 2, l = o(0, 0), u = s(0, 0);
|
|
3309
3311
|
return `M${o(-n, -c)},${s(-n, -c)} L${l},${u} L${o(-n, c)},${s(-n, c)}`;
|
|
3310
3312
|
}
|
|
3311
|
-
var
|
|
3312
|
-
let { name: u, isInitialMarking: d } = r, f = M(h((e) => e.assessments))[e]?.score, p = t * (a ?? 1), m = n * (a ?? 1), { fillColor: g, strokeColor: _, textColor: v } = F(r), y =
|
|
3313
|
+
var pn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVIEW_SCALE: a, showAssessmentResults: l = !1 }) => {
|
|
3314
|
+
let { name: u, isInitialMarking: d } = r, f = M(h((e) => e.assessments))[e]?.score, p = t * (a ?? 1), m = n * (a ?? 1), { fillColor: g, strokeColor: _, textColor: v } = F(r), y = dn(un, un), b = jn.STROKE_WIDTH.arrow;
|
|
3313
3315
|
return /* @__PURE__ */ c("svg", {
|
|
3314
3316
|
width: p,
|
|
3315
3317
|
height: m,
|
|
@@ -3322,8 +3324,8 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3322
3324
|
y: 0,
|
|
3323
3325
|
width: t,
|
|
3324
3326
|
height: n,
|
|
3325
|
-
rx:
|
|
3326
|
-
ry:
|
|
3327
|
+
rx: un,
|
|
3328
|
+
ry: un,
|
|
3327
3329
|
fill: g,
|
|
3328
3330
|
stroke: _
|
|
3329
3331
|
}),
|
|
@@ -3332,20 +3334,20 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3332
3334
|
x: t / 2,
|
|
3333
3335
|
y: n / 2,
|
|
3334
3336
|
maxWidth: t - 16,
|
|
3335
|
-
fontSize:
|
|
3337
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
3336
3338
|
fontWeight: "600",
|
|
3337
3339
|
fill: v,
|
|
3338
|
-
maxLines: A(n - 16,
|
|
3340
|
+
maxLines: A(n - 16, J.NAME_LINE_HEIGHT)
|
|
3339
3341
|
}),
|
|
3340
3342
|
d && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("line", {
|
|
3341
3343
|
x1: -50,
|
|
3342
3344
|
y1: -50,
|
|
3343
3345
|
x2: y.x,
|
|
3344
3346
|
y2: y.y,
|
|
3345
|
-
strokeWidth:
|
|
3347
|
+
strokeWidth: J.LINE_WIDTH_EDGE,
|
|
3346
3348
|
stroke: _
|
|
3347
3349
|
}), /* @__PURE__ */ s("path", {
|
|
3348
|
-
d:
|
|
3350
|
+
d: fn(y.x, y.y, 18, 15.588),
|
|
3349
3351
|
fill: "none",
|
|
3350
3352
|
stroke: _,
|
|
3351
3353
|
strokeWidth: b,
|
|
@@ -3358,20 +3360,18 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3358
3360
|
score: f
|
|
3359
3361
|
})]
|
|
3360
3362
|
});
|
|
3361
|
-
},
|
|
3363
|
+
}, K = Object.freeze({
|
|
3362
3364
|
MIN_SCALE_TO_ZOOM_OUT: .4,
|
|
3363
3365
|
MAX_SCALE_TO_ZOOM_IN: 2.5,
|
|
3364
3366
|
MOUSE_UP_OFFSET_PX: 5,
|
|
3365
3367
|
SNAP_TO_GRID_PX: 5,
|
|
3366
3368
|
EXTRA_SPACE_FOR_EXTENSION: 10,
|
|
3367
3369
|
PASTE_OFFSET_PX: 20
|
|
3368
|
-
}),
|
|
3370
|
+
}), q = Object.freeze({
|
|
3369
3371
|
"--apollon-primary": "#3e8acc",
|
|
3370
|
-
"--apollon-primary-
|
|
3372
|
+
"--apollon-primary-foreground": "#ffffff",
|
|
3373
|
+
"--apollon-foreground": "#000000",
|
|
3371
3374
|
"--apollon-secondary": "#6c757d",
|
|
3372
|
-
"--apollon-alert-warning-yellow": "#ffc107",
|
|
3373
|
-
"--apollon-alert-warning-background": "#fff3cd",
|
|
3374
|
-
"--apollon-alert-warning-border": "#ffeeba",
|
|
3375
3375
|
"--apollon-interactive-selection": "#f39c12",
|
|
3376
3376
|
"--apollon-dropzone-accent": "#0064ff",
|
|
3377
3377
|
"--apollon-on-collaboration-cursor": "#ffffff",
|
|
@@ -3392,20 +3392,13 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3392
3392
|
"--apollon-guide-vertical": "#d63031",
|
|
3393
3393
|
"--apollon-guide-horizontal": "#0984e3",
|
|
3394
3394
|
"--apollon-background": "#ffffff",
|
|
3395
|
-
"--apollon-background-inverse": "#000000",
|
|
3396
3395
|
"--apollon-background-variant": "#f8f9fa",
|
|
3397
|
-
"--apollon-hover-neutral": "color-mix(in srgb, var(--apollon-
|
|
3396
|
+
"--apollon-hover-neutral": "color-mix(in srgb, var(--apollon-foreground, #000000) 7.5%, transparent)",
|
|
3398
3397
|
"--apollon-gray": "#e9ecef",
|
|
3399
3398
|
"--apollon-grid": "rgba(36, 39, 36, 0.1)",
|
|
3400
3399
|
"--apollon-gray-variant": "#495057",
|
|
3401
|
-
"--apollon-
|
|
3402
|
-
|
|
3403
|
-
"--apollon-alert-danger-border": "#f5c6cb",
|
|
3404
|
-
"--apollon-switch-box-border-color": "#dee2e6",
|
|
3405
|
-
"--apollon-list-group-color": "#ffffff",
|
|
3406
|
-
"--apollon-btn-outline-secondary-color": "#6c757d",
|
|
3407
|
-
"--apollon-modal-bottom-border": "#e9ecef"
|
|
3408
|
-
}), fn = J["--apollon-primary-contrast"], pn = J["--apollon-background"], mn = `var(--apollon-interactive-selection, ${J["--apollon-interactive-selection"]})`, hn = `color-mix(in srgb, var(--apollon-interactive-selection, ${J["--apollon-interactive-selection"]}) 18%, transparent)`, gn = `color-mix(in srgb, var(--apollon-interactive-selection, ${J["--apollon-interactive-selection"]}) 10%, transparent)`, _n = `color-mix(in srgb, var(--apollon-interactive-selection, ${J["--apollon-interactive-selection"]}) 50%, transparent)`, vn = `color-mix(in srgb, var(--apollon-interactive-selection, ${J["--apollon-interactive-selection"]}) 50%, transparent)`, yn = Object.freeze(Array.from({ length: 8 }, (e, t) => `var(--apollon-collaboration-color-${t + 1}, ${J[`--apollon-collaboration-color-${t + 1}`]})`)), Y = Object.freeze({
|
|
3400
|
+
"--apollon-danger": "#721c24"
|
|
3401
|
+
}), mn = q["--apollon-foreground"], hn = q["--apollon-background"], gn = `var(--apollon-interactive-selection, ${q["--apollon-interactive-selection"]})`, _n = `color-mix(in srgb, var(--apollon-interactive-selection, ${q["--apollon-interactive-selection"]}) 18%, transparent)`, vn = `color-mix(in srgb, var(--apollon-interactive-selection, ${q["--apollon-interactive-selection"]}) 10%, transparent)`, yn = `color-mix(in srgb, var(--apollon-interactive-selection, ${q["--apollon-interactive-selection"]}) 50%, transparent)`, bn = `color-mix(in srgb, var(--apollon-interactive-selection, ${q["--apollon-interactive-selection"]}) 50%, transparent)`, xn = Object.freeze(Array.from({ length: 8 }, (e, t) => `var(--apollon-collaboration-color-${t + 1}, ${q[`--apollon-collaboration-color-${t + 1}`]})`)), J = Object.freeze({
|
|
3409
3402
|
DEFAULT_FONT: `400 16px ${e}`,
|
|
3410
3403
|
DEFAULT_HEADER_HEIGHT: 40,
|
|
3411
3404
|
DEFAULT_HEADER_HEIGHT_WITH_STEREOTYPE: 50,
|
|
@@ -3420,17 +3413,17 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3420
3413
|
NAME_LINE_HEIGHT: 19,
|
|
3421
3414
|
STEREOTYPE_LINE_HEIGHT: 15,
|
|
3422
3415
|
STEREOTYPE_NAME_GAP: 4
|
|
3423
|
-
}),
|
|
3416
|
+
}), Sn = "(max-width: 767.95px), (max-width: 950px) and (max-height: 500px)", Y = () => {
|
|
3424
3417
|
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
3425
3418
|
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
|
|
3426
3419
|
let t = Array.from(e, (e) => e.toString(16).padStart(2, "0"));
|
|
3427
3420
|
return `${t.slice(0, 4).join("")}-${t.slice(4, 6).join("")}-${t.slice(6, 8).join("")}-${t.slice(8, 10).join("")}-${t.slice(10, 16).join("")}`;
|
|
3428
|
-
},
|
|
3429
|
-
SIZE:
|
|
3430
|
-
RADIUS:
|
|
3421
|
+
}, X = 30, Cn = X / 2, Z = Object.freeze({
|
|
3422
|
+
SIZE: X,
|
|
3423
|
+
RADIUS: Cn,
|
|
3431
3424
|
STROKE_WIDTH: 2,
|
|
3432
3425
|
SOCKET_GAP: 4
|
|
3433
|
-
}),
|
|
3426
|
+
}), wn = 11, Tn = 24, En = .618, Dn = Object.freeze({
|
|
3434
3427
|
MARKER_PADDING: -3,
|
|
3435
3428
|
SOURCE_CONNECTION_POINT_PADDING: 3,
|
|
3436
3429
|
STEP_BORDER_RADIUS: 0,
|
|
@@ -3444,13 +3437,13 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3444
3437
|
BEND_HANDLE_MIN_SEGMENT_SCREEN_PX: 54,
|
|
3445
3438
|
BEND_HANDLE_SAFE_AREA_PX: 25,
|
|
3446
3439
|
ENDPOINT_HIT_TARGET_SIZE: 24,
|
|
3447
|
-
BEND_SNAP_GRID_PX:
|
|
3440
|
+
BEND_SNAP_GRID_PX: K.SNAP_TO_GRID_PX,
|
|
3448
3441
|
ORTHOGONAL_DOGLEG_TOLERANCE_PX: 2,
|
|
3449
3442
|
ORTHOGONAL_ARM_OVERLAP_PX: 10,
|
|
3450
3443
|
LABEL_GAP: 14,
|
|
3451
3444
|
LABEL_LINE_HEIGHT: 14,
|
|
3452
3445
|
LABEL_NOMINAL_HALF_EXTENT: 40
|
|
3453
|
-
}),
|
|
3446
|
+
}), On = Object.freeze({
|
|
3454
3447
|
BASE: 0,
|
|
3455
3448
|
HEADER_SWITCH: 1,
|
|
3456
3449
|
DRAGGABLE_GHOST: 2,
|
|
@@ -3460,20 +3453,20 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3460
3453
|
LABEL: 9998,
|
|
3461
3454
|
DRAGGABLE_ELEMENT: 9999,
|
|
3462
3455
|
TOOLTIP: 1e4
|
|
3463
|
-
}),
|
|
3456
|
+
}), kn = Cn, An = Object.freeze({
|
|
3464
3457
|
"black-rhombus": {
|
|
3465
3458
|
type: "rhombus",
|
|
3466
3459
|
filled: !0,
|
|
3467
|
-
size:
|
|
3460
|
+
size: Tn,
|
|
3468
3461
|
widthFactor: 1,
|
|
3469
|
-
heightFactor:
|
|
3462
|
+
heightFactor: En
|
|
3470
3463
|
},
|
|
3471
3464
|
"white-rhombus": {
|
|
3472
3465
|
type: "rhombus",
|
|
3473
3466
|
filled: !1,
|
|
3474
|
-
size:
|
|
3467
|
+
size: Tn,
|
|
3475
3468
|
widthFactor: 1,
|
|
3476
|
-
heightFactor:
|
|
3469
|
+
heightFactor: En
|
|
3477
3470
|
},
|
|
3478
3471
|
"white-triangle": {
|
|
3479
3472
|
type: "triangle",
|
|
@@ -3499,7 +3492,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3499
3492
|
"required-interface": {
|
|
3500
3493
|
type: "semicircle",
|
|
3501
3494
|
filled: !1,
|
|
3502
|
-
size:
|
|
3495
|
+
size: kn,
|
|
3503
3496
|
widthFactor: 1,
|
|
3504
3497
|
heightFactor: 1,
|
|
3505
3498
|
arcSpanDegrees: 150
|
|
@@ -3507,7 +3500,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3507
3500
|
"required-interface-quarter": {
|
|
3508
3501
|
type: "semicircle",
|
|
3509
3502
|
filled: !1,
|
|
3510
|
-
size:
|
|
3503
|
+
size: kn,
|
|
3511
3504
|
widthFactor: 1,
|
|
3512
3505
|
heightFactor: 1,
|
|
3513
3506
|
arcSpanDegrees: 90
|
|
@@ -3515,7 +3508,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3515
3508
|
"required-interface-threequarter": {
|
|
3516
3509
|
type: "semicircle",
|
|
3517
3510
|
filled: !1,
|
|
3518
|
-
size:
|
|
3511
|
+
size: kn,
|
|
3519
3512
|
widthFactor: 1,
|
|
3520
3513
|
heightFactor: 1,
|
|
3521
3514
|
arcSpanDegrees: 270
|
|
@@ -3523,61 +3516,61 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3523
3516
|
"bpmn-white-triangle": {
|
|
3524
3517
|
type: "triangle",
|
|
3525
3518
|
filled: !1,
|
|
3526
|
-
size:
|
|
3519
|
+
size: wn,
|
|
3527
3520
|
widthFactor: 1,
|
|
3528
3521
|
heightFactor: .866
|
|
3529
3522
|
},
|
|
3530
3523
|
"bpmn-black-triangle": {
|
|
3531
3524
|
type: "triangle",
|
|
3532
3525
|
filled: !0,
|
|
3533
|
-
size:
|
|
3526
|
+
size: wn,
|
|
3534
3527
|
widthFactor: 1,
|
|
3535
3528
|
heightFactor: .866
|
|
3536
3529
|
},
|
|
3537
3530
|
"bpmn-white-circle": {
|
|
3538
3531
|
type: "circle",
|
|
3539
3532
|
filled: !1,
|
|
3540
|
-
size:
|
|
3533
|
+
size: wn,
|
|
3541
3534
|
widthFactor: 1,
|
|
3542
3535
|
heightFactor: 1
|
|
3543
3536
|
},
|
|
3544
3537
|
"bpmn-arrow": {
|
|
3545
3538
|
type: "arrow",
|
|
3546
3539
|
filled: !1,
|
|
3547
|
-
size:
|
|
3540
|
+
size: wn,
|
|
3548
3541
|
widthFactor: 1,
|
|
3549
3542
|
heightFactor: .866
|
|
3550
3543
|
}
|
|
3551
|
-
}),
|
|
3544
|
+
}), jn = Object.freeze({ STROKE_WIDTH: Object.freeze({
|
|
3552
3545
|
triangle: 1.3,
|
|
3553
3546
|
arrow: 1.5,
|
|
3554
3547
|
rhombus: 1.3,
|
|
3555
3548
|
circle: 1.3,
|
|
3556
3549
|
semicircle: 2
|
|
3557
|
-
}) }),
|
|
3550
|
+
}) }), Q = Object.freeze({
|
|
3558
3551
|
SIDEBAR_PREVIEW_SCALE: .8,
|
|
3559
3552
|
DEFAULT_ELEMENT_WIDTH: 160
|
|
3560
|
-
}),
|
|
3553
|
+
}), Mn = Object.freeze({
|
|
3561
3554
|
[C.ClassDiagram]: [
|
|
3562
3555
|
{
|
|
3563
3556
|
type: "package",
|
|
3564
|
-
width:
|
|
3557
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3565
3558
|
height: 120,
|
|
3566
3559
|
defaultData: { name: "Package" },
|
|
3567
3560
|
svg: He
|
|
3568
3561
|
},
|
|
3569
3562
|
{
|
|
3570
3563
|
type: "class",
|
|
3571
|
-
width:
|
|
3564
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3572
3565
|
height: 100,
|
|
3573
3566
|
defaultData: {
|
|
3574
3567
|
name: "Class",
|
|
3575
3568
|
methods: [{
|
|
3576
|
-
id:
|
|
3569
|
+
id: Y(),
|
|
3577
3570
|
name: "+ method()"
|
|
3578
3571
|
}],
|
|
3579
3572
|
attributes: [{
|
|
3580
|
-
id:
|
|
3573
|
+
id: Y(),
|
|
3581
3574
|
name: "+ attribute: Type"
|
|
3582
3575
|
}]
|
|
3583
3576
|
},
|
|
@@ -3585,17 +3578,17 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3585
3578
|
},
|
|
3586
3579
|
{
|
|
3587
3580
|
type: "class",
|
|
3588
|
-
width:
|
|
3589
|
-
height:
|
|
3581
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3582
|
+
height: 100,
|
|
3590
3583
|
defaultData: {
|
|
3591
3584
|
name: "Abstract",
|
|
3592
|
-
|
|
3585
|
+
isAbstract: !0,
|
|
3593
3586
|
methods: [{
|
|
3594
|
-
id:
|
|
3587
|
+
id: Y(),
|
|
3595
3588
|
name: "+ method()"
|
|
3596
3589
|
}],
|
|
3597
3590
|
attributes: [{
|
|
3598
|
-
id:
|
|
3591
|
+
id: Y(),
|
|
3599
3592
|
name: "+ attribute: Type"
|
|
3600
3593
|
}]
|
|
3601
3594
|
},
|
|
@@ -3603,7 +3596,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3603
3596
|
},
|
|
3604
3597
|
{
|
|
3605
3598
|
type: "class",
|
|
3606
|
-
width:
|
|
3599
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3607
3600
|
height: 140,
|
|
3608
3601
|
defaultData: {
|
|
3609
3602
|
name: "Enumeration",
|
|
@@ -3611,15 +3604,15 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3611
3604
|
methods: [],
|
|
3612
3605
|
attributes: [
|
|
3613
3606
|
{
|
|
3614
|
-
id:
|
|
3607
|
+
id: Y(),
|
|
3615
3608
|
name: "Case 1"
|
|
3616
3609
|
},
|
|
3617
3610
|
{
|
|
3618
|
-
id:
|
|
3611
|
+
id: Y(),
|
|
3619
3612
|
name: "Case 2"
|
|
3620
3613
|
},
|
|
3621
3614
|
{
|
|
3622
|
-
id:
|
|
3615
|
+
id: Y(),
|
|
3623
3616
|
name: "Case 3"
|
|
3624
3617
|
}
|
|
3625
3618
|
]
|
|
@@ -3628,17 +3621,17 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3628
3621
|
},
|
|
3629
3622
|
{
|
|
3630
3623
|
type: "class",
|
|
3631
|
-
width:
|
|
3624
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3632
3625
|
height: 110,
|
|
3633
3626
|
defaultData: {
|
|
3634
3627
|
name: "Interface",
|
|
3635
3628
|
stereotype: I.Interface,
|
|
3636
3629
|
methods: [{
|
|
3637
|
-
id:
|
|
3630
|
+
id: Y(),
|
|
3638
3631
|
name: "+ method()"
|
|
3639
3632
|
}],
|
|
3640
3633
|
attributes: [{
|
|
3641
|
-
id:
|
|
3634
|
+
id: Y(),
|
|
3642
3635
|
name: "+ attribute: Type"
|
|
3643
3636
|
}]
|
|
3644
3637
|
},
|
|
@@ -3647,12 +3640,12 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3647
3640
|
],
|
|
3648
3641
|
[C.ObjectDiagram]: [{
|
|
3649
3642
|
type: "objectName",
|
|
3650
|
-
width:
|
|
3643
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3651
3644
|
height: 70,
|
|
3652
3645
|
defaultData: {
|
|
3653
3646
|
name: "Object",
|
|
3654
3647
|
attributes: [{
|
|
3655
|
-
id:
|
|
3648
|
+
id: Y(),
|
|
3656
3649
|
name: "attribute = value"
|
|
3657
3650
|
}],
|
|
3658
3651
|
methods: []
|
|
@@ -3662,7 +3655,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3662
3655
|
[C.ActivityDiagram]: [
|
|
3663
3656
|
{
|
|
3664
3657
|
type: "activity",
|
|
3665
|
-
width:
|
|
3658
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3666
3659
|
height: 120,
|
|
3667
3660
|
defaultData: { name: "Activity" },
|
|
3668
3661
|
svg: Ie
|
|
@@ -3683,21 +3676,21 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3683
3676
|
},
|
|
3684
3677
|
{
|
|
3685
3678
|
type: "activityActionNode",
|
|
3686
|
-
width:
|
|
3679
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3687
3680
|
height: 120,
|
|
3688
3681
|
defaultData: { name: "Action" },
|
|
3689
3682
|
svg: Ke
|
|
3690
3683
|
},
|
|
3691
3684
|
{
|
|
3692
3685
|
type: "activityObjectNode",
|
|
3693
|
-
width:
|
|
3686
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3694
3687
|
height: 120,
|
|
3695
3688
|
defaultData: { name: "Object" },
|
|
3696
3689
|
svg: qe
|
|
3697
3690
|
},
|
|
3698
3691
|
{
|
|
3699
3692
|
type: "activityMergeNode",
|
|
3700
|
-
width:
|
|
3693
|
+
width: Q.DEFAULT_ELEMENT_WIDTH,
|
|
3701
3694
|
height: 120,
|
|
3702
3695
|
defaultData: { name: "Condition" },
|
|
3703
3696
|
svg: $e
|
|
@@ -3767,7 +3760,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3767
3760
|
name: "Object",
|
|
3768
3761
|
methods: [],
|
|
3769
3762
|
attributes: [{
|
|
3770
|
-
id:
|
|
3763
|
+
id: Y(),
|
|
3771
3764
|
name: "attribute = value"
|
|
3772
3765
|
}]
|
|
3773
3766
|
},
|
|
@@ -3796,8 +3789,8 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3796
3789
|
},
|
|
3797
3790
|
{
|
|
3798
3791
|
type: "componentInterface",
|
|
3799
|
-
width:
|
|
3800
|
-
height:
|
|
3792
|
+
width: X,
|
|
3793
|
+
height: X,
|
|
3801
3794
|
defaultData: { name: "Interface" },
|
|
3802
3795
|
svg: _t,
|
|
3803
3796
|
marginTop: 10
|
|
@@ -3834,8 +3827,8 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3834
3827
|
},
|
|
3835
3828
|
{
|
|
3836
3829
|
type: "deploymentInterface",
|
|
3837
|
-
width:
|
|
3838
|
-
height:
|
|
3830
|
+
width: X,
|
|
3831
|
+
height: X,
|
|
3839
3832
|
defaultData: { name: "Interface" },
|
|
3840
3833
|
svg: Nt,
|
|
3841
3834
|
marginTop: 10
|
|
@@ -3874,7 +3867,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3874
3867
|
width: 160,
|
|
3875
3868
|
height: 120,
|
|
3876
3869
|
defaultData: { name: "Marking" },
|
|
3877
|
-
svg:
|
|
3870
|
+
svg: pn
|
|
3878
3871
|
}],
|
|
3879
3872
|
[C.Flowchart]: [
|
|
3880
3873
|
{
|
|
@@ -3902,7 +3895,7 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
3902
3895
|
type: "flowchartInputOutput",
|
|
3903
3896
|
width: 140,
|
|
3904
3897
|
height: 70,
|
|
3905
|
-
defaultData: { name: "Input/Output" },
|
|
3898
|
+
defaultData: { name: "Input / Output" },
|
|
3906
3899
|
svg: Ot
|
|
3907
3900
|
},
|
|
3908
3901
|
{
|
|
@@ -4070,20 +4063,20 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
4070
4063
|
svg: Xt
|
|
4071
4064
|
}
|
|
4072
4065
|
]
|
|
4073
|
-
}),
|
|
4066
|
+
}), Nn = Object.freeze({
|
|
4074
4067
|
type: "colorDescription",
|
|
4075
4068
|
width: 160,
|
|
4076
4069
|
height: 50,
|
|
4077
4070
|
defaultData: { name: "Color Description" },
|
|
4078
4071
|
svg: ze
|
|
4079
|
-
}),
|
|
4080
|
-
let h = l ??
|
|
4072
|
+
}), $ = ({ name: e, stereotype: t, showStereotype: n, width: r, height: a, sideReserve: l, verticalAnchor: u = "center", topAnchorY: d = 30, nameTextDecoration: f, fontWeight: p = "bold", fill: m }) => {
|
|
4073
|
+
let h = l ?? J.DEFAULT_PADDING * 2, g = r / 2, _ = Math.max(1, r - h), v = A(u === "top" ? a - d - J.NAME_LINE_HEIGHT : n ? a - J.STEREOTYPE_LINE_HEIGHT - J.STEREOTYPE_NAME_GAP - 8 : a - 16, J.NAME_LINE_HEIGHT), y = i(() => {
|
|
4081
4074
|
if (!e) return 0;
|
|
4082
4075
|
let t = ie(e, _, {
|
|
4083
|
-
fontSize:
|
|
4076
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
4084
4077
|
fontWeight: p
|
|
4085
4078
|
}, {
|
|
4086
|
-
lineHeight:
|
|
4079
|
+
lineHeight: J.NAME_LINE_HEIGHT,
|
|
4087
4080
|
maxLines: v
|
|
4088
4081
|
});
|
|
4089
4082
|
return Math.max(1, t.lines.length);
|
|
@@ -4094,13 +4087,13 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
4094
4087
|
p
|
|
4095
4088
|
]), { stereotypeCenterY: b, nameFirstLineCenterY: x } = (() => {
|
|
4096
4089
|
if (u === "top") return {
|
|
4097
|
-
stereotypeCenterY: d -
|
|
4098
|
-
nameFirstLineCenterY: n ? d +
|
|
4090
|
+
stereotypeCenterY: d - J.STEREOTYPE_LINE_HEIGHT / 2,
|
|
4091
|
+
nameFirstLineCenterY: n ? d + J.STEREOTYPE_LINE_HEIGHT - J.STEREOTYPE_NAME_GAP : d
|
|
4099
4092
|
};
|
|
4100
|
-
let e = n ?
|
|
4093
|
+
let e = n ? J.STEREOTYPE_LINE_HEIGHT + J.STEREOTYPE_NAME_GAP + y * J.NAME_LINE_HEIGHT : y * J.NAME_LINE_HEIGHT, t = a / 2 - e / 2;
|
|
4101
4094
|
return {
|
|
4102
|
-
stereotypeCenterY: t +
|
|
4103
|
-
nameFirstLineCenterY: n ? t +
|
|
4095
|
+
stereotypeCenterY: t + J.STEREOTYPE_LINE_HEIGHT / 2,
|
|
4096
|
+
nameFirstLineCenterY: n ? t + J.STEREOTYPE_LINE_HEIGHT + J.STEREOTYPE_NAME_GAP + J.NAME_LINE_HEIGHT / 2 : t + J.NAME_LINE_HEIGHT / 2
|
|
4104
4097
|
};
|
|
4105
4098
|
})();
|
|
4106
4099
|
return /* @__PURE__ */ c(o, { children: [n && t && t.length > 0 && /* @__PURE__ */ s(D, {
|
|
@@ -4111,204 +4104,24 @@ var dn = ({ id: e, width: t, height: n, data: r, svgAttributes: i, SIDEBAR_PREVI
|
|
|
4111
4104
|
dominantBaseline: "middle",
|
|
4112
4105
|
fill: m,
|
|
4113
4106
|
fontSize: "0.8em",
|
|
4114
|
-
children:
|
|
4107
|
+
children: Zt(t)
|
|
4115
4108
|
}), /* @__PURE__ */ s(j, {
|
|
4116
4109
|
text: e,
|
|
4117
4110
|
x: g,
|
|
4118
4111
|
y: x,
|
|
4119
4112
|
maxWidth: _,
|
|
4120
|
-
fontSize:
|
|
4121
|
-
lineHeight:
|
|
4113
|
+
fontSize: J.NAME_FONT_SIZE,
|
|
4114
|
+
lineHeight: J.NAME_LINE_HEIGHT,
|
|
4122
4115
|
fontWeight: p,
|
|
4123
4116
|
fill: m,
|
|
4124
4117
|
verticalAnchor: "top",
|
|
4125
4118
|
maxLines: v,
|
|
4126
4119
|
textDecoration: f
|
|
4127
4120
|
})] });
|
|
4128
|
-
}, An = "store", jn = (e) => e.getMap("nodes"), Mn = (e) => e.getMap("edges"), Nn = (e) => e.getMap("assessments"), Pn = (e) => e.getMap("diagramMetadata"), Fn = (e, t) => {
|
|
4129
|
-
let n = new Map(Array.from(t, ([e, t]) => [e, t]));
|
|
4130
|
-
for (let t of Array.from(e.keys())) n.has(t) || e.delete(t);
|
|
4131
|
-
for (let [t, r] of n) (!e.has(t) || !G(e.get(t), r)) && e.set(t, r);
|
|
4132
|
-
}, In = /* @__PURE__ */ function(e) {
|
|
4133
|
-
return e[e.YjsSYNC = 0] = "YjsSYNC", e[e.YjsUpdate = 1] = "YjsUpdate", e[e.AwarenessSync = 2] = "AwarenessSync", e[e.AwarenessUpdate = 3] = "AwarenessUpdate", e;
|
|
4134
|
-
}({}), Ln = class e {
|
|
4135
|
-
stopYjsObserver;
|
|
4136
|
-
sendBroadcastMessage = null;
|
|
4137
|
-
ydoc;
|
|
4138
|
-
diagramStore;
|
|
4139
|
-
metadataStore;
|
|
4140
|
-
awareness;
|
|
4141
|
-
constructor(e, t, n) {
|
|
4142
|
-
this.ydoc = e, this.diagramStore = t, this.metadataStore = n, this.awareness = new b(this.ydoc), this.stopYjsObserver = this.startYjsObserver(), this.diagramStore.getState().setDraggingNodesPublisher(this.setLocalAwarenessDraggingNodes);
|
|
4143
|
-
}
|
|
4144
|
-
stopSync() {
|
|
4145
|
-
this.stopYjsObserver();
|
|
4146
|
-
}
|
|
4147
|
-
broadcastFullState = () => {
|
|
4148
|
-
if (!this.sendBroadcastMessage) return;
|
|
4149
|
-
let e = y.encodeStateAsUpdate(this.ydoc);
|
|
4150
|
-
this.sendFramedMessage(1, e);
|
|
4151
|
-
};
|
|
4152
|
-
setSendBroadcastMessage = (e) => {
|
|
4153
|
-
if (this.sendBroadcastMessage = e, this.awareness.getLocalState()) {
|
|
4154
|
-
let e = S(this.awareness, [this.awareness.clientID]);
|
|
4155
|
-
this.sendFramedMessage(3, e);
|
|
4156
|
-
}
|
|
4157
|
-
};
|
|
4158
|
-
setLocalAwarenessUser = (e) => {
|
|
4159
|
-
this.awareness.setLocalStateField("user", e);
|
|
4160
|
-
};
|
|
4161
|
-
setLocalAwarenessCursor = (e) => {
|
|
4162
|
-
this.awareness.setLocalStateField("cursor", e);
|
|
4163
|
-
};
|
|
4164
|
-
setLocalAwarenessViewport = (e) => {
|
|
4165
|
-
this.awareness.setLocalStateField("viewport", e);
|
|
4166
|
-
};
|
|
4167
|
-
setLocalAwarenessFollowing = (e) => {
|
|
4168
|
-
this.awareness.setLocalStateField("followingClientId", e);
|
|
4169
|
-
};
|
|
4170
|
-
setLocalAwarenessSelectedElement = (e) => {
|
|
4171
|
-
this.awareness.setLocalStateField("selectedElementId", e);
|
|
4172
|
-
};
|
|
4173
|
-
setLocalAwarenessDraggingNodes = (e) => {
|
|
4174
|
-
this.awareness.setLocalStateField("draggingNodes", e);
|
|
4175
|
-
};
|
|
4176
|
-
setLocalAwarenessState = (e) => {
|
|
4177
|
-
let t = this.awareness.getLocalState();
|
|
4178
|
-
this.awareness.setLocalState({
|
|
4179
|
-
...t,
|
|
4180
|
-
...e
|
|
4181
|
-
});
|
|
4182
|
-
};
|
|
4183
|
-
subscribeToAwarenessChanges = (e) => {
|
|
4184
|
-
let t = () => e(this.getTypedStates());
|
|
4185
|
-
return this.awareness.on("change", t), () => {
|
|
4186
|
-
this.awareness.off("change", t);
|
|
4187
|
-
};
|
|
4188
|
-
};
|
|
4189
|
-
getAwarenessStates = () => this.getTypedStates();
|
|
4190
|
-
getCollaborators = () => {
|
|
4191
|
-
let e = this.getTypedStates(), t = this.awareness.clientID, n = /* @__PURE__ */ new Map();
|
|
4192
|
-
for (let [r, i] of e.entries()) {
|
|
4193
|
-
let e = i.user;
|
|
4194
|
-
if (!e) continue;
|
|
4195
|
-
let a = e.id ?? `__client_${r}`, o = n.get(a);
|
|
4196
|
-
o ? (o.clientIds.push(r), r === t && (o.isLocal = !0)) : n.set(a, {
|
|
4197
|
-
id: a,
|
|
4198
|
-
name: e.name,
|
|
4199
|
-
color: e.color,
|
|
4200
|
-
imageUrl: e.imageUrl,
|
|
4201
|
-
clientIds: [r],
|
|
4202
|
-
isLocal: r === t
|
|
4203
|
-
});
|
|
4204
|
-
}
|
|
4205
|
-
return Array.from(n.values());
|
|
4206
|
-
};
|
|
4207
|
-
subscribeToCollaboratorChanges = (e) => {
|
|
4208
|
-
let t = "", n = ({ added: n, removed: r }) => {
|
|
4209
|
-
let i = this.computeParticipantSignature();
|
|
4210
|
-
n.length === 0 && r.length === 0 && i === t || (t = i, e(this.getCollaborators()));
|
|
4211
|
-
};
|
|
4212
|
-
return this.awareness.on("change", n), () => {
|
|
4213
|
-
this.awareness.off("change", n);
|
|
4214
|
-
};
|
|
4215
|
-
};
|
|
4216
|
-
getLocalAwarenessClientId = () => this.awareness.clientID;
|
|
4217
|
-
static narrowState(e) {
|
|
4218
|
-
if (typeof e != "object" || !e) return null;
|
|
4219
|
-
let t = e, n = t.user;
|
|
4220
|
-
if (n != null && (typeof n != "object" || typeof n.name != "string" || typeof n.color != "string")) return null;
|
|
4221
|
-
let r = { ...t };
|
|
4222
|
-
return t.viewport != null && (r.viewport = sn(t.viewport)), t.draggingNodes != null && (r.draggingNodes = cn(t.draggingNodes)), t.followingClientId != null && typeof t.followingClientId != "number" && (r.followingClientId = null), r;
|
|
4223
|
-
}
|
|
4224
|
-
getTypedStates() {
|
|
4225
|
-
let t = this.awareness.getStates(), n = /* @__PURE__ */ new Map();
|
|
4226
|
-
for (let [r, i] of t.entries()) {
|
|
4227
|
-
let t = e.narrowState(i);
|
|
4228
|
-
t && n.set(r, t);
|
|
4229
|
-
}
|
|
4230
|
-
return n;
|
|
4231
|
-
}
|
|
4232
|
-
computeParticipantSignature = () => {
|
|
4233
|
-
let e = this.getTypedStates(), t = [];
|
|
4234
|
-
for (let [n, r] of e.entries()) {
|
|
4235
|
-
let e = r.user;
|
|
4236
|
-
e && t.push(`${n}:${e.id ?? ""}:${e.name}:${e.color}:${e.imageUrl ?? ""}`);
|
|
4237
|
-
}
|
|
4238
|
-
return t.sort(), t.join("|");
|
|
4239
|
-
};
|
|
4240
|
-
sendFramedMessage = (t, n) => {
|
|
4241
|
-
if (!this.sendBroadcastMessage) return;
|
|
4242
|
-
let r = new Uint8Array(1 + n.length);
|
|
4243
|
-
r[0] = t, r.set(n, 1);
|
|
4244
|
-
let i = e.uint8ToBase64(r);
|
|
4245
|
-
this.sendBroadcastMessage(i);
|
|
4246
|
-
};
|
|
4247
|
-
applyUpdate = (e, t) => {
|
|
4248
|
-
y.applyUpdate(this.ydoc, e, t);
|
|
4249
|
-
};
|
|
4250
|
-
handleReceivedData = (t) => {
|
|
4251
|
-
let n = e.base64ToUint8(t), r = n[0];
|
|
4252
|
-
if (r === 1) {
|
|
4253
|
-
let e = n.slice(1);
|
|
4254
|
-
this.applyUpdate(e, "remote");
|
|
4255
|
-
} else if (r === 0) {
|
|
4256
|
-
let e = y.encodeStateAsUpdate(this.ydoc);
|
|
4257
|
-
this.sendFramedMessage(1, e);
|
|
4258
|
-
} else if (r === 3) {
|
|
4259
|
-
let e = n.slice(1);
|
|
4260
|
-
x(this.awareness, e, "remote");
|
|
4261
|
-
} else if (r === 2) {
|
|
4262
|
-
let e = Array.from(this.awareness.getStates().keys()), t = S(this.awareness, e);
|
|
4263
|
-
this.sendFramedMessage(3, t);
|
|
4264
|
-
}
|
|
4265
|
-
};
|
|
4266
|
-
startYjsObserver = () => {
|
|
4267
|
-
let e = () => this.diagramStore.getState().previewMode === !0, t = (t, n) => {
|
|
4268
|
-
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.diagramStore.getState().updateNodesFromYjs();
|
|
4269
|
-
}, n = (t, n) => {
|
|
4270
|
-
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.diagramStore.getState().updateEdgesFromYjs();
|
|
4271
|
-
}, r = (t, n) => {
|
|
4272
|
-
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.metadataStore.getState().updateMetaDataFromYjs();
|
|
4273
|
-
}, i = (t, n) => {
|
|
4274
|
-
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.diagramStore.getState().updateAssessmentFromYjs();
|
|
4275
|
-
}, a = (e, t, n, r) => {
|
|
4276
|
-
this.sendBroadcastMessage && (r.origin === "store" || this.isUndoRedoTransaction(r)) && this.sendFramedMessage(1, e), this.isUndoRedoTransaction(r) && (this.diagramStore.getState().updateNodesFromYjs(), this.diagramStore.getState().updateEdgesFromYjs(), this.diagramStore.getState().updateAssessmentFromYjs(), this.diagramStore.getState().updateUndoRedoState());
|
|
4277
|
-
}, o = ({ added: e, updated: t, removed: n }, r) => {
|
|
4278
|
-
if (r === "remote") return;
|
|
4279
|
-
let i = [
|
|
4280
|
-
...e,
|
|
4281
|
-
...t,
|
|
4282
|
-
...n
|
|
4283
|
-
];
|
|
4284
|
-
if (i.length === 0) return;
|
|
4285
|
-
let a = S(this.awareness, i);
|
|
4286
|
-
this.sendFramedMessage(3, a);
|
|
4287
|
-
};
|
|
4288
|
-
return jn(this.ydoc).observe(t), Mn(this.ydoc).observe(n), Nn(this.ydoc).observe(i), Pn(this.ydoc).observe(r), this.ydoc.on("update", a), this.awareness.on("update", o), () => {
|
|
4289
|
-
jn(this.ydoc).unobserve(t), Mn(this.ydoc).unobserve(n), Nn(this.ydoc).unobserve(i), Pn(this.ydoc).unobserve(r), this.ydoc.off("update", a), this.awareness.off("update", o);
|
|
4290
|
-
};
|
|
4291
|
-
};
|
|
4292
|
-
isUndoRedoTransaction(e) {
|
|
4293
|
-
let t = this.diagramStore.getState().undoManager;
|
|
4294
|
-
return t ? t === e.origin : !1;
|
|
4295
|
-
}
|
|
4296
|
-
static uint8ToBase64(e) {
|
|
4297
|
-
let t = e.toBase64;
|
|
4298
|
-
if (typeof t == "function") return t.call(e);
|
|
4299
|
-
let n = "";
|
|
4300
|
-
for (let t = 0; t < e.length; t++) n += String.fromCharCode(e[t]);
|
|
4301
|
-
return btoa(n);
|
|
4302
|
-
}
|
|
4303
|
-
static base64ToUint8(e) {
|
|
4304
|
-
let t = atob(e), n = new Uint8Array(t.length);
|
|
4305
|
-
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
4306
|
-
return n;
|
|
4307
|
-
}
|
|
4308
4121
|
};
|
|
4309
4122
|
//#endregion
|
|
4310
4123
|
//#region lib/services/migration/EdgeTransformer.ts
|
|
4311
|
-
function
|
|
4124
|
+
function Pn(e) {
|
|
4312
4125
|
let t = e.data ?? {}, n = Object.prototype.hasOwnProperty.call(t, "computedSegments");
|
|
4313
4126
|
if (e.data != null && !n) return e;
|
|
4314
4127
|
let r = { ...t };
|
|
@@ -4317,8 +4130,8 @@ function Rn(e) {
|
|
|
4317
4130
|
data: r
|
|
4318
4131
|
};
|
|
4319
4132
|
}
|
|
4320
|
-
function
|
|
4321
|
-
let t = e.edges.map(
|
|
4133
|
+
function Fn(e) {
|
|
4134
|
+
let t = e.edges.map(Pn);
|
|
4322
4135
|
return t.some((t, n) => t !== e.edges[n]) ? {
|
|
4323
4136
|
...e,
|
|
4324
4137
|
edges: t
|
|
@@ -4326,21 +4139,21 @@ function zn(e) {
|
|
|
4326
4139
|
}
|
|
4327
4140
|
//#endregion
|
|
4328
4141
|
//#region lib/utils/versionConverter.ts
|
|
4329
|
-
function
|
|
4330
|
-
return !(e === "componentInterface" || e === "deploymentInterface") || n ===
|
|
4142
|
+
function In(e, t, n, r) {
|
|
4143
|
+
return !(e === "componentInterface" || e === "deploymentInterface") || n === Z.SIZE && r === Z.SIZE ? {
|
|
4331
4144
|
position: t,
|
|
4332
4145
|
width: n,
|
|
4333
4146
|
height: r
|
|
4334
4147
|
} : {
|
|
4335
4148
|
position: {
|
|
4336
|
-
x: t.x + (n -
|
|
4337
|
-
y: t.y + (r -
|
|
4149
|
+
x: t.x + (n - Z.SIZE) / 2,
|
|
4150
|
+
y: t.y + (r - Z.SIZE) / 2
|
|
4338
4151
|
},
|
|
4339
|
-
width:
|
|
4340
|
-
height:
|
|
4152
|
+
width: Z.SIZE,
|
|
4153
|
+
height: Z.SIZE
|
|
4341
4154
|
};
|
|
4342
4155
|
}
|
|
4343
|
-
function
|
|
4156
|
+
function Ln(e) {
|
|
4344
4157
|
let t = {
|
|
4345
4158
|
id: "converted-diagram-" + Date.now(),
|
|
4346
4159
|
title: "Converted Diagram",
|
|
@@ -4367,12 +4180,12 @@ function Vn(e) {
|
|
|
4367
4180
|
t.model.relationships[e.id] = e;
|
|
4368
4181
|
}), e.assessments && e.assessments.forEach((e) => {
|
|
4369
4182
|
t.model.assessments[e.modelElementId] = e;
|
|
4370
|
-
}),
|
|
4183
|
+
}), Yn(t);
|
|
4371
4184
|
}
|
|
4372
|
-
function
|
|
4185
|
+
function Rn(e) {
|
|
4373
4186
|
return e && e.version && e.version.startsWith("2.") && e.size && e.type && Array.isArray(e.elements) && Array.isArray(e.relationships) && Array.isArray(e.assessments) && e.interactive && Array.isArray(e.interactive.elements) && Array.isArray(e.interactive.relationships) && !e.model;
|
|
4374
4187
|
}
|
|
4375
|
-
function
|
|
4188
|
+
function zn(e) {
|
|
4376
4189
|
return {
|
|
4377
4190
|
Up: "top",
|
|
4378
4191
|
Right: "right",
|
|
@@ -4392,7 +4205,7 @@ function Un(e) {
|
|
|
4392
4205
|
Bottomleft: "bottom-left"
|
|
4393
4206
|
}[e] || e.toLowerCase();
|
|
4394
4207
|
}
|
|
4395
|
-
function
|
|
4208
|
+
function Bn(e) {
|
|
4396
4209
|
return {
|
|
4397
4210
|
Class: "class",
|
|
4398
4211
|
AbstractClass: "class",
|
|
@@ -4457,7 +4270,7 @@ function Wn(e) {
|
|
|
4457
4270
|
TitleAndDescription: "titleAndDesctiption"
|
|
4458
4271
|
}[e] || e.toLowerCase();
|
|
4459
4272
|
}
|
|
4460
|
-
function
|
|
4273
|
+
function Vn(e, t) {
|
|
4461
4274
|
return e === "BPMNFlow" && t ? {
|
|
4462
4275
|
sequence: "BPMNSequenceFlow",
|
|
4463
4276
|
message: "BPMNMessageFlow",
|
|
@@ -4495,16 +4308,16 @@ function Gn(e, t) {
|
|
|
4495
4308
|
FlowchartFlowline: "FlowChartFlowline"
|
|
4496
4309
|
}[e] || e;
|
|
4497
4310
|
}
|
|
4498
|
-
function
|
|
4311
|
+
function Hn(e, t) {
|
|
4499
4312
|
return {
|
|
4500
4313
|
x: e.bounds.x - t.bounds.x,
|
|
4501
4314
|
y: e.bounds.y - t.bounds.y
|
|
4502
4315
|
};
|
|
4503
4316
|
}
|
|
4504
|
-
function
|
|
4317
|
+
function Un(e) {
|
|
4505
4318
|
return e.sort((e, t) => (e.bounds?.y ?? 0) - (t.bounds?.y ?? 0));
|
|
4506
4319
|
}
|
|
4507
|
-
function
|
|
4320
|
+
function Wn(e, t) {
|
|
4508
4321
|
let n = {
|
|
4509
4322
|
name: e.name,
|
|
4510
4323
|
...e.fillColor && { fillColor: e.fillColor },
|
|
@@ -4519,7 +4332,7 @@ function Jn(e, t) {
|
|
|
4519
4332
|
case "Interface":
|
|
4520
4333
|
case "Enumeration": {
|
|
4521
4334
|
let r = [], i = [];
|
|
4522
|
-
|
|
4335
|
+
Un(Object.values(t)).forEach((t) => {
|
|
4523
4336
|
t.owner === e.id && (t.type === "ClassAttribute" ? r.push({
|
|
4524
4337
|
id: t.id,
|
|
4525
4338
|
name: t.name,
|
|
@@ -4532,17 +4345,18 @@ function Jn(e, t) {
|
|
|
4532
4345
|
...t.textColor && { textColor: t.textColor }
|
|
4533
4346
|
}));
|
|
4534
4347
|
});
|
|
4535
|
-
let a;
|
|
4536
|
-
return e.type === "AbstractClass" ?
|
|
4348
|
+
let a, o = !1;
|
|
4349
|
+
return e.type === "AbstractClass" ? o = !0 : e.type === "Interface" ? a = I.Interface : e.type === "Enumeration" && (a = I.Enumeration), {
|
|
4537
4350
|
...n,
|
|
4538
4351
|
methods: i,
|
|
4539
4352
|
attributes: r,
|
|
4540
|
-
...a && { stereotype: a }
|
|
4353
|
+
...a && { stereotype: a },
|
|
4354
|
+
...o && { isAbstract: !0 }
|
|
4541
4355
|
};
|
|
4542
4356
|
}
|
|
4543
4357
|
case "ObjectName": {
|
|
4544
4358
|
let r = [], i = [];
|
|
4545
|
-
return
|
|
4359
|
+
return Un(Object.values(t)).forEach((t) => {
|
|
4546
4360
|
t.owner === e.id && (t.type === "ObjectAttribute" ? r.push({
|
|
4547
4361
|
id: t.id,
|
|
4548
4362
|
name: t.name,
|
|
@@ -4562,7 +4376,7 @@ function Jn(e, t) {
|
|
|
4562
4376
|
}
|
|
4563
4377
|
case "CommunicationObject": {
|
|
4564
4378
|
let r = [], i = [];
|
|
4565
|
-
return
|
|
4379
|
+
return Un(Object.values(t)).forEach((t) => {
|
|
4566
4380
|
t.owner === e.id && (t.type === "ObjectAttribute" ? r.push({
|
|
4567
4381
|
id: t.id,
|
|
4568
4382
|
name: t.name,
|
|
@@ -4649,23 +4463,23 @@ function Jn(e, t) {
|
|
|
4649
4463
|
default: return n;
|
|
4650
4464
|
}
|
|
4651
4465
|
}
|
|
4652
|
-
function
|
|
4466
|
+
function Gn(e) {
|
|
4653
4467
|
return e ? Array.isArray(e) ? e : typeof e == "object" && e ? Object.values(e).map((e) => ({
|
|
4654
4468
|
text: e.name,
|
|
4655
4469
|
direction: e.direction === "source" ? "target" : "source",
|
|
4656
4470
|
id: e.id
|
|
4657
4471
|
})) : [] : [];
|
|
4658
4472
|
}
|
|
4659
|
-
function
|
|
4660
|
-
let n =
|
|
4473
|
+
function Kn(e, t) {
|
|
4474
|
+
let n = Bn(e.type), r = {
|
|
4661
4475
|
x: e.bounds.x,
|
|
4662
4476
|
y: e.bounds.y
|
|
4663
4477
|
};
|
|
4664
4478
|
if (e.owner) {
|
|
4665
4479
|
let n = t[e.owner];
|
|
4666
|
-
n && (r =
|
|
4480
|
+
n && (r = Hn(e, n));
|
|
4667
4481
|
}
|
|
4668
|
-
let i =
|
|
4482
|
+
let i = Wn(e, t), a = In(n, r, e.bounds.width, e.bounds.height);
|
|
4669
4483
|
return {
|
|
4670
4484
|
id: e.id,
|
|
4671
4485
|
type: n,
|
|
@@ -4680,8 +4494,8 @@ function Xn(e, t) {
|
|
|
4680
4494
|
...e.owner && { parentId: e.owner }
|
|
4681
4495
|
};
|
|
4682
4496
|
}
|
|
4683
|
-
function
|
|
4684
|
-
let t =
|
|
4497
|
+
function qn(e) {
|
|
4498
|
+
let t = Vn(e.type, e.flowType), n = [];
|
|
4685
4499
|
return e.path && e.path.length > 0 && (n = e.path.map((t) => ({
|
|
4686
4500
|
x: t.x + e.bounds.x,
|
|
4687
4501
|
y: t.y + e.bounds.y
|
|
@@ -4690,8 +4504,8 @@ function Zn(e) {
|
|
|
4690
4504
|
source: e.source.element,
|
|
4691
4505
|
target: e.target.element,
|
|
4692
4506
|
type: t,
|
|
4693
|
-
sourceHandle:
|
|
4694
|
-
targetHandle:
|
|
4507
|
+
sourceHandle: zn(e.source.direction || ""),
|
|
4508
|
+
targetHandle: zn(e.target.direction || ""),
|
|
4695
4509
|
data: {
|
|
4696
4510
|
label: e.name || "",
|
|
4697
4511
|
sourceMultiplicity: e.source.multiplicity || "",
|
|
@@ -4699,7 +4513,7 @@ function Zn(e) {
|
|
|
4699
4513
|
sourceRole: e.source.role || "",
|
|
4700
4514
|
targetRole: e.target.role || "",
|
|
4701
4515
|
isManuallyLayouted: e.isManuallyLayouted || !1,
|
|
4702
|
-
messages:
|
|
4516
|
+
messages: Gn(e.messages),
|
|
4703
4517
|
...e.flowType && { flowType: e.flowType },
|
|
4704
4518
|
...e.fillColor && { fillColor: e.fillColor },
|
|
4705
4519
|
...e.strokeColor && { strokeColor: e.strokeColor },
|
|
@@ -4710,7 +4524,7 @@ function Zn(e) {
|
|
|
4710
4524
|
}
|
|
4711
4525
|
};
|
|
4712
4526
|
}
|
|
4713
|
-
function
|
|
4527
|
+
function Jn(e) {
|
|
4714
4528
|
return {
|
|
4715
4529
|
modelElementId: e.modelElementId,
|
|
4716
4530
|
elementType: e.elementType,
|
|
@@ -4722,16 +4536,16 @@ function Qn(e) {
|
|
|
4722
4536
|
...e.correctionStatus && { correctionStatus: e.correctionStatus }
|
|
4723
4537
|
};
|
|
4724
4538
|
}
|
|
4725
|
-
function
|
|
4539
|
+
function Yn(e) {
|
|
4726
4540
|
let t = e.model || e, n = e.id || "converted-diagram-" + Date.now(), r = e.title || "", i = Object.values(t.elements).filter((e) => ![
|
|
4727
4541
|
"ClassAttribute",
|
|
4728
4542
|
"ClassMethod",
|
|
4729
4543
|
"ObjectAttribute",
|
|
4730
4544
|
"ObjectMethod"
|
|
4731
|
-
].includes(e.type)).map((e) =>
|
|
4545
|
+
].includes(e.type)).map((e) => Kn(e, t.elements)), a = Object.values(t.relationships).map((e) => qn(e)), o = {};
|
|
4732
4546
|
return t.assessments && Object.entries(t.assessments).forEach(([e, t]) => {
|
|
4733
4547
|
try {
|
|
4734
|
-
o[e] =
|
|
4548
|
+
o[e] = Jn(t);
|
|
4735
4549
|
} catch (t) {
|
|
4736
4550
|
Fe.warn(`Failed to convert assessment for element ${e}:`, t);
|
|
4737
4551
|
}
|
|
@@ -4749,21 +4563,219 @@ function $n(e) {
|
|
|
4749
4563
|
} : void 0
|
|
4750
4564
|
};
|
|
4751
4565
|
}
|
|
4752
|
-
function
|
|
4566
|
+
function Xn(e) {
|
|
4753
4567
|
let t = e && e.model && e.model.version && typeof e.model.version == "string" && e.model.version.startsWith("3.") && e.model.elements && e.model.relationships && typeof e.model.elements == "object" && typeof e.model.relationships == "object", n = e && e.version && typeof e.version == "string" && e.version.startsWith("3.") && e.elements && e.relationships && typeof e.elements == "object" && typeof e.relationships == "object";
|
|
4754
4568
|
return !!(t || n);
|
|
4755
4569
|
}
|
|
4756
|
-
function
|
|
4570
|
+
function Zn(e) {
|
|
4757
4571
|
return e && e.version && e.version.startsWith("4.") && Array.isArray(e.nodes) && Array.isArray(e.edges) && e.edges.every((e) => typeof e == "object" && !!e && e.data != null && typeof e.data == "object");
|
|
4758
4572
|
}
|
|
4759
|
-
function
|
|
4573
|
+
function Qn(e) {
|
|
4574
|
+
let t = {
|
|
4575
|
+
Interface: I.Interface,
|
|
4576
|
+
Enumeration: I.Enumeration
|
|
4577
|
+
};
|
|
4578
|
+
for (let n of e.nodes) {
|
|
4579
|
+
if (n.type !== "class") continue;
|
|
4580
|
+
let e = n.data, r = e.stereotype;
|
|
4581
|
+
r === "Abstract" ? (e.isAbstract = !0, delete e.stereotype, typeof n.height == "number" && (n.height -= 10), n.measured && typeof n.measured.height == "number" && (n.measured.height -= 10)) : r && r in t && (e.stereotype = t[r]), e.stereotype && e.isAbstract && (e.isAbstract = !1);
|
|
4582
|
+
}
|
|
4583
|
+
return e;
|
|
4584
|
+
}
|
|
4585
|
+
function $n(e) {
|
|
4586
|
+
return Qn(e);
|
|
4587
|
+
}
|
|
4588
|
+
function er(e) {
|
|
4760
4589
|
let t;
|
|
4761
|
-
if (
|
|
4762
|
-
else if (
|
|
4763
|
-
else if (
|
|
4764
|
-
else if (e.model) return
|
|
4590
|
+
if (Zn(e)) t = e;
|
|
4591
|
+
else if (Xn(e)) t = Yn(e);
|
|
4592
|
+
else if (Rn(e)) t = Ln(e);
|
|
4593
|
+
else if (e.model) return er(e.model);
|
|
4765
4594
|
else throw Error("Unsupported diagram format. Only 2.x.x, 3.x.x and 4.x.x formats are supported.");
|
|
4766
|
-
return
|
|
4595
|
+
return Fn($n(t));
|
|
4767
4596
|
}
|
|
4768
4597
|
//#endregion
|
|
4769
|
-
|
|
4598
|
+
//#region lib/sync/ydoc.ts
|
|
4599
|
+
var tr = "store", nr = (e) => e.getMap("nodes"), rr = (e) => e.getMap("edges"), ir = (e) => e.getMap("assessments"), ar = (e) => e.getMap("diagramMetadata"), or = (e, t) => {
|
|
4600
|
+
let n = new Map(Array.from(t, ([e, t]) => [e, t]));
|
|
4601
|
+
for (let t of Array.from(e.keys())) n.has(t) || e.delete(t);
|
|
4602
|
+
for (let [t, r] of n) (!e.has(t) || !G(e.get(t), r)) && e.set(t, r);
|
|
4603
|
+
}, sr = /* @__PURE__ */ function(e) {
|
|
4604
|
+
return e[e.YjsSYNC = 0] = "YjsSYNC", e[e.YjsUpdate = 1] = "YjsUpdate", e[e.AwarenessSync = 2] = "AwarenessSync", e[e.AwarenessUpdate = 3] = "AwarenessUpdate", e;
|
|
4605
|
+
}({}), cr = class e {
|
|
4606
|
+
stopYjsObserver;
|
|
4607
|
+
sendBroadcastMessage = null;
|
|
4608
|
+
ydoc;
|
|
4609
|
+
diagramStore;
|
|
4610
|
+
metadataStore;
|
|
4611
|
+
awareness;
|
|
4612
|
+
constructor(e, t, n) {
|
|
4613
|
+
this.ydoc = e, this.diagramStore = t, this.metadataStore = n, this.awareness = new b(this.ydoc), this.stopYjsObserver = this.startYjsObserver(), this.diagramStore.getState().setDraggingNodesPublisher(this.setLocalAwarenessDraggingNodes);
|
|
4614
|
+
}
|
|
4615
|
+
stopSync() {
|
|
4616
|
+
this.stopYjsObserver();
|
|
4617
|
+
}
|
|
4618
|
+
broadcastFullState = () => {
|
|
4619
|
+
if (!this.sendBroadcastMessage) return;
|
|
4620
|
+
let e = y.encodeStateAsUpdate(this.ydoc);
|
|
4621
|
+
this.sendFramedMessage(1, e);
|
|
4622
|
+
};
|
|
4623
|
+
setSendBroadcastMessage = (e) => {
|
|
4624
|
+
if (this.sendBroadcastMessage = e, this.awareness.getLocalState()) {
|
|
4625
|
+
let e = S(this.awareness, [this.awareness.clientID]);
|
|
4626
|
+
this.sendFramedMessage(3, e);
|
|
4627
|
+
}
|
|
4628
|
+
};
|
|
4629
|
+
setLocalAwarenessUser = (e) => {
|
|
4630
|
+
this.awareness.setLocalStateField("user", e);
|
|
4631
|
+
};
|
|
4632
|
+
setLocalAwarenessCursor = (e) => {
|
|
4633
|
+
this.awareness.setLocalStateField("cursor", e);
|
|
4634
|
+
};
|
|
4635
|
+
setLocalAwarenessViewport = (e) => {
|
|
4636
|
+
this.awareness.setLocalStateField("viewport", e);
|
|
4637
|
+
};
|
|
4638
|
+
setLocalAwarenessFollowing = (e) => {
|
|
4639
|
+
this.awareness.setLocalStateField("followingClientId", e);
|
|
4640
|
+
};
|
|
4641
|
+
setLocalAwarenessSelectedElement = (e) => {
|
|
4642
|
+
this.awareness.setLocalStateField("selectedElementId", e);
|
|
4643
|
+
};
|
|
4644
|
+
setLocalAwarenessDraggingNodes = (e) => {
|
|
4645
|
+
this.awareness.setLocalStateField("draggingNodes", e);
|
|
4646
|
+
};
|
|
4647
|
+
setLocalAwarenessState = (e) => {
|
|
4648
|
+
let t = this.awareness.getLocalState();
|
|
4649
|
+
this.awareness.setLocalState({
|
|
4650
|
+
...t,
|
|
4651
|
+
...e
|
|
4652
|
+
});
|
|
4653
|
+
};
|
|
4654
|
+
subscribeToAwarenessChanges = (e) => {
|
|
4655
|
+
let t = () => e(this.getTypedStates());
|
|
4656
|
+
return this.awareness.on("change", t), () => {
|
|
4657
|
+
this.awareness.off("change", t);
|
|
4658
|
+
};
|
|
4659
|
+
};
|
|
4660
|
+
getAwarenessStates = () => this.getTypedStates();
|
|
4661
|
+
getCollaborators = () => {
|
|
4662
|
+
let e = this.getTypedStates(), t = this.awareness.clientID, n = /* @__PURE__ */ new Map();
|
|
4663
|
+
for (let [r, i] of e.entries()) {
|
|
4664
|
+
let e = i.user;
|
|
4665
|
+
if (!e) continue;
|
|
4666
|
+
let a = e.id ?? `__client_${r}`, o = n.get(a);
|
|
4667
|
+
o ? (o.clientIds.push(r), r === t && (o.isLocal = !0)) : n.set(a, {
|
|
4668
|
+
id: a,
|
|
4669
|
+
name: e.name,
|
|
4670
|
+
color: e.color,
|
|
4671
|
+
imageUrl: e.imageUrl,
|
|
4672
|
+
clientIds: [r],
|
|
4673
|
+
isLocal: r === t
|
|
4674
|
+
});
|
|
4675
|
+
}
|
|
4676
|
+
return Array.from(n.values());
|
|
4677
|
+
};
|
|
4678
|
+
subscribeToCollaboratorChanges = (e) => {
|
|
4679
|
+
let t = "", n = ({ added: n, removed: r }) => {
|
|
4680
|
+
let i = this.computeParticipantSignature();
|
|
4681
|
+
n.length === 0 && r.length === 0 && i === t || (t = i, e(this.getCollaborators()));
|
|
4682
|
+
};
|
|
4683
|
+
return this.awareness.on("change", n), () => {
|
|
4684
|
+
this.awareness.off("change", n);
|
|
4685
|
+
};
|
|
4686
|
+
};
|
|
4687
|
+
getLocalAwarenessClientId = () => this.awareness.clientID;
|
|
4688
|
+
static narrowState(e) {
|
|
4689
|
+
if (typeof e != "object" || !e) return null;
|
|
4690
|
+
let t = e, n = t.user;
|
|
4691
|
+
if (n != null && (typeof n != "object" || typeof n.name != "string" || typeof n.color != "string")) return null;
|
|
4692
|
+
let r = { ...t };
|
|
4693
|
+
return t.viewport != null && (r.viewport = cn(t.viewport)), t.draggingNodes != null && (r.draggingNodes = ln(t.draggingNodes)), t.followingClientId != null && typeof t.followingClientId != "number" && (r.followingClientId = null), r;
|
|
4694
|
+
}
|
|
4695
|
+
getTypedStates() {
|
|
4696
|
+
let t = this.awareness.getStates(), n = /* @__PURE__ */ new Map();
|
|
4697
|
+
for (let [r, i] of t.entries()) {
|
|
4698
|
+
let t = e.narrowState(i);
|
|
4699
|
+
t && n.set(r, t);
|
|
4700
|
+
}
|
|
4701
|
+
return n;
|
|
4702
|
+
}
|
|
4703
|
+
computeParticipantSignature = () => {
|
|
4704
|
+
let e = this.getTypedStates(), t = [];
|
|
4705
|
+
for (let [n, r] of e.entries()) {
|
|
4706
|
+
let e = r.user;
|
|
4707
|
+
e && t.push(`${n}:${e.id ?? ""}:${e.name}:${e.color}:${e.imageUrl ?? ""}`);
|
|
4708
|
+
}
|
|
4709
|
+
return t.sort(), t.join("|");
|
|
4710
|
+
};
|
|
4711
|
+
sendFramedMessage = (t, n) => {
|
|
4712
|
+
if (!this.sendBroadcastMessage) return;
|
|
4713
|
+
let r = new Uint8Array(1 + n.length);
|
|
4714
|
+
r[0] = t, r.set(n, 1);
|
|
4715
|
+
let i = e.uint8ToBase64(r);
|
|
4716
|
+
this.sendBroadcastMessage(i);
|
|
4717
|
+
};
|
|
4718
|
+
applyUpdate = (e, t) => {
|
|
4719
|
+
y.applyUpdate(this.ydoc, e, t);
|
|
4720
|
+
};
|
|
4721
|
+
handleReceivedData = (t) => {
|
|
4722
|
+
let n = e.base64ToUint8(t), r = n[0];
|
|
4723
|
+
if (r === 1) {
|
|
4724
|
+
let e = n.slice(1);
|
|
4725
|
+
this.applyUpdate(e, "remote");
|
|
4726
|
+
} else if (r === 0) {
|
|
4727
|
+
let e = y.encodeStateAsUpdate(this.ydoc);
|
|
4728
|
+
this.sendFramedMessage(1, e);
|
|
4729
|
+
} else if (r === 3) {
|
|
4730
|
+
let e = n.slice(1);
|
|
4731
|
+
x(this.awareness, e, "remote");
|
|
4732
|
+
} else if (r === 2) {
|
|
4733
|
+
let e = Array.from(this.awareness.getStates().keys()), t = S(this.awareness, e);
|
|
4734
|
+
this.sendFramedMessage(3, t);
|
|
4735
|
+
}
|
|
4736
|
+
};
|
|
4737
|
+
startYjsObserver = () => {
|
|
4738
|
+
let e = () => this.diagramStore.getState().previewMode === !0, t = (t, n) => {
|
|
4739
|
+
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.diagramStore.getState().updateNodesFromYjs();
|
|
4740
|
+
}, n = (t, n) => {
|
|
4741
|
+
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.diagramStore.getState().updateEdgesFromYjs();
|
|
4742
|
+
}, r = (t, n) => {
|
|
4743
|
+
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.metadataStore.getState().updateMetaDataFromYjs();
|
|
4744
|
+
}, i = (t, n) => {
|
|
4745
|
+
n.origin !== "store" && !this.isUndoRedoTransaction(n) && !e() && this.diagramStore.getState().updateAssessmentFromYjs();
|
|
4746
|
+
}, a = (e, t, n, r) => {
|
|
4747
|
+
this.sendBroadcastMessage && (r.origin === "store" || this.isUndoRedoTransaction(r)) && this.sendFramedMessage(1, e), this.isUndoRedoTransaction(r) && (this.diagramStore.getState().updateNodesFromYjs(), this.diagramStore.getState().updateEdgesFromYjs(), this.diagramStore.getState().updateAssessmentFromYjs(), this.diagramStore.getState().updateUndoRedoState());
|
|
4748
|
+
}, o = ({ added: e, updated: t, removed: n }, r) => {
|
|
4749
|
+
if (r === "remote") return;
|
|
4750
|
+
let i = [
|
|
4751
|
+
...e,
|
|
4752
|
+
...t,
|
|
4753
|
+
...n
|
|
4754
|
+
];
|
|
4755
|
+
if (i.length === 0) return;
|
|
4756
|
+
let a = S(this.awareness, i);
|
|
4757
|
+
this.sendFramedMessage(3, a);
|
|
4758
|
+
};
|
|
4759
|
+
return nr(this.ydoc).observe(t), rr(this.ydoc).observe(n), ir(this.ydoc).observe(i), ar(this.ydoc).observe(r), this.ydoc.on("update", a), this.awareness.on("update", o), () => {
|
|
4760
|
+
nr(this.ydoc).unobserve(t), rr(this.ydoc).unobserve(n), ir(this.ydoc).unobserve(i), ar(this.ydoc).unobserve(r), this.ydoc.off("update", a), this.awareness.off("update", o);
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
isUndoRedoTransaction(e) {
|
|
4764
|
+
let t = this.diagramStore.getState().undoManager;
|
|
4765
|
+
return t ? t === e.origin : !1;
|
|
4766
|
+
}
|
|
4767
|
+
static uint8ToBase64(e) {
|
|
4768
|
+
let t = e.toBase64;
|
|
4769
|
+
if (typeof t == "function") return t.call(e);
|
|
4770
|
+
let n = "";
|
|
4771
|
+
for (let t = 0; t < e.length; t++) n += String.fromCharCode(e[t]);
|
|
4772
|
+
return btoa(n);
|
|
4773
|
+
}
|
|
4774
|
+
static base64ToUint8(e) {
|
|
4775
|
+
let t = atob(e), n = new Uint8Array(t.length);
|
|
4776
|
+
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
4777
|
+
return n;
|
|
4778
|
+
}
|
|
4779
|
+
};
|
|
4780
|
+
//#endregion
|
|
4781
|
+
export { Gt as $, fe as $t, J as A, et as At, on as B, Ie as Bt, Q as C, _t as Ct, _n as D, ot as Dt, gn as E, st as Et, On as F, We as Ft, tn as G, je as Gt, Qt as H, Pe as Ht, Mn as I, Ue as It, Xt as J, we as Jt, Zt as K, ke as Kt, Y as L, He as Lt, An as M, qe as Mt, Sn as N, Ke as Nt, bn as O, nt as Ot, mn as P, Ge as Pt, Kt as Q, he as Qt, pn as R, ze as Rt, Nn as S, yt as St, hn as T, pt as Tt, en as U, Ne as Ut, nn as V, Fe as Vt, $t as W, I as Wt, Jt as X, P as Xt, Yt as Y, Oe as Yt, qt as Z, ge as Zt, Xn as _, kt as _t, ar as a, be as an, zt as at, K as b, xt as bt, or as c, N as cn, It as ct, zn as d, ie as dn, U as dt, _e as en, Wt as et, Gn as f, T as fn, Pt as ft, Rn as g, At as gt, er as h, C as hn, jt as ht, ir as i, xe as in, Bt as it, jn as j, $e as jt, Z as k, tt as kt, Ln as l, Ce as ln, W as lt, Yn as m, w as mn, Mt as mt, cr as n, ve as nn, Ht as nt, rr as o, M as on, Rt as ot, Bn as p, E as pn, Nt as pt, G as q, Te as qt, tr as r, me as rn, Vt as rt, nr as s, Se as sn, Lt as st, sr as t, pe as tn, Ut as tt, Vn as u, ye as un, Ft as ut, Zn as v, Ot as vt, Dn as w, mt as wt, q as x, bt as xt, $n as y, Dt as yt, sn as z, H as zt };
|