@g1cloud/bpmn-modeler-next 5.0.0-alpha.47 → 5.0.0-alpha.49
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/dist/agent/geometryAudit.d.ts +14 -0
- package/dist/bpmn-modeler.js +296 -295
- package/dist/bpmn-modeler.umd.cjs +11 -11
- package/package.json +1 -1
package/dist/bpmn-modeler.js
CHANGED
|
@@ -1027,16 +1027,16 @@ function ay(e) {
|
|
|
1027
1027
|
if (!this)
|
|
1028
1028
|
return new ay(e);
|
|
1029
1029
|
var t = e && e.proxy, n, i, r, o, a = w0, s, c, u, l, p = Za, f = !1, d = !1, g = "", h = !1, m = !1, S = null, y = !1, _, E, P, C;
|
|
1030
|
-
function O
|
|
1031
|
-
|
|
1030
|
+
function D(O) {
|
|
1031
|
+
O instanceof Error || (O = zi(O)), S = O, a(O, p);
|
|
1032
1032
|
}
|
|
1033
|
-
function A(
|
|
1034
|
-
s && (
|
|
1033
|
+
function A(O) {
|
|
1034
|
+
s && (O instanceof Error || (O = zi(O)), s(O, p));
|
|
1035
1035
|
}
|
|
1036
|
-
this.on = function(
|
|
1036
|
+
this.on = function(O, $) {
|
|
1037
1037
|
if (typeof $ != "function")
|
|
1038
1038
|
throw zi("required args <name, cb>");
|
|
1039
|
-
switch (
|
|
1039
|
+
switch (O) {
|
|
1040
1040
|
case "openTag":
|
|
1041
1041
|
i = $;
|
|
1042
1042
|
break;
|
|
@@ -1067,36 +1067,36 @@ function ay(e) {
|
|
|
1067
1067
|
c = $;
|
|
1068
1068
|
break;
|
|
1069
1069
|
default:
|
|
1070
|
-
throw zi("unsupported event: " +
|
|
1070
|
+
throw zi("unsupported event: " + O);
|
|
1071
1071
|
}
|
|
1072
1072
|
return this;
|
|
1073
|
-
}, this.ns = function(
|
|
1074
|
-
if (typeof
|
|
1073
|
+
}, this.ns = function(O) {
|
|
1074
|
+
if (typeof O > "u" && (O = {}), typeof O != "object")
|
|
1075
1075
|
throw zi("required args <nsMap={}>");
|
|
1076
1076
|
var $ = /* @__PURE__ */ Object.create(null), ie;
|
|
1077
|
-
for (ie in
|
|
1078
|
-
$[ie] =
|
|
1077
|
+
for (ie in O)
|
|
1078
|
+
$[ie] = O[ie];
|
|
1079
1079
|
return m = !0, C = $, this;
|
|
1080
1080
|
};
|
|
1081
1081
|
function N() {
|
|
1082
1082
|
_ = m ? [] : null, E = m ? x0(C) : null, P = [], p = Za, y = !1, S = null, d = !1, g = "";
|
|
1083
1083
|
}
|
|
1084
|
-
this.parse = function(
|
|
1085
|
-
if (typeof
|
|
1084
|
+
this.parse = function(O) {
|
|
1085
|
+
if (typeof O != "string")
|
|
1086
1086
|
throw zi("required args <xml=string>");
|
|
1087
1087
|
if (f)
|
|
1088
1088
|
throw zi("parse during stream; call end() first");
|
|
1089
|
-
return N(), k(
|
|
1090
|
-
}, this.write = function(
|
|
1091
|
-
if (typeof
|
|
1089
|
+
return N(), k(O), p = Za, y = !1, S;
|
|
1090
|
+
}, this.write = function(O) {
|
|
1091
|
+
if (typeof O != "string")
|
|
1092
1092
|
throw zi("required args <xml=string>");
|
|
1093
|
-
return f || (N(), f = !0), S || (g = k(g +
|
|
1093
|
+
return f || (N(), f = !0), S || (g = k(g + O, !0) || ""), this;
|
|
1094
1094
|
}, this.end = function() {
|
|
1095
1095
|
return f || N(), f = !1, S || k(g), g = "", p = Za, y = !1, S;
|
|
1096
1096
|
}, this.stop = function() {
|
|
1097
1097
|
y = !0;
|
|
1098
1098
|
};
|
|
1099
|
-
function k(
|
|
1099
|
+
function k(O, $ = !1) {
|
|
1100
1100
|
var ie = null, ge = null, Ve, q = 0, ue = !1, he = !1, ae = 0, be = 0, ne, U, V, Z, $e, wt, T, x, v, B = "", z = 0, K;
|
|
1101
1101
|
function me(it, At) {
|
|
1102
1102
|
var St = it.indexOf(":");
|
|
@@ -1168,9 +1168,9 @@ function ay(e) {
|
|
|
1168
1168
|
return K = _i;
|
|
1169
1169
|
}
|
|
1170
1170
|
function Ke() {
|
|
1171
|
-
for (var it = /(\r\n|\r|\n)/g, At = 0, St = 0, fn = 0, ut = be, Bt, on; ae >= fn && (Bt = it.exec(
|
|
1171
|
+
for (var it = /(\r\n|\r|\n)/g, At = 0, St = 0, fn = 0, ut = be, Bt, on; ae >= fn && (Bt = it.exec(O), !(!Bt || (ut = Bt[0].length + Bt.index, ut > ae))); )
|
|
1172
1172
|
At += 1, fn = ut;
|
|
1173
|
-
return ae == -1 ? (St = ut, on =
|
|
1173
|
+
return ae == -1 ? (St = ut, on = O.substring(be)) : be === 0 ? on = O.substring(be, ae) : (St = ae - fn, on = be == -1 ? O.substring(ae) : O.substring(ae, be + 1)), {
|
|
1174
1174
|
data: on,
|
|
1175
1175
|
line: At,
|
|
1176
1176
|
column: St
|
|
@@ -1188,85 +1188,85 @@ function ay(e) {
|
|
|
1188
1188
|
return E;
|
|
1189
1189
|
})
|
|
1190
1190
|
})); be !== -1; ) {
|
|
1191
|
-
if (
|
|
1191
|
+
if (O.charCodeAt(be) === 60 ? ae = be : ae = O.indexOf("<", be), ae === -1) {
|
|
1192
1192
|
if ($)
|
|
1193
|
-
return
|
|
1193
|
+
return O.substring(be);
|
|
1194
1194
|
if (P.length)
|
|
1195
|
-
return
|
|
1195
|
+
return D("unexpected end of file");
|
|
1196
1196
|
if (!d)
|
|
1197
|
-
return
|
|
1198
|
-
be <
|
|
1197
|
+
return D("missing start tag");
|
|
1198
|
+
be < O.length && O.substring(be).trim() && A(Sd);
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
1201
|
if (d || (d = !0), be !== ae) {
|
|
1202
1202
|
if (P.length) {
|
|
1203
|
-
if (n && (n(
|
|
1203
|
+
if (n && (n(O.substring(be, ae), Ar, p), y))
|
|
1204
1204
|
return;
|
|
1205
|
-
} else if (
|
|
1205
|
+
} else if (O.substring(be, ae).trim() && (A(Sd), y))
|
|
1206
1206
|
return;
|
|
1207
1207
|
}
|
|
1208
|
-
if (Z =
|
|
1209
|
-
if (V =
|
|
1210
|
-
if (be =
|
|
1211
|
-
return $ ?
|
|
1212
|
-
if (o && (o(
|
|
1208
|
+
if (Z = O.charCodeAt(ae + 1), Z === 33) {
|
|
1209
|
+
if (V = O.charCodeAt(ae + 2), V === 91 && O.substr(ae + 3, 6) === "CDATA[") {
|
|
1210
|
+
if (be = O.indexOf("]]>", ae), be === -1)
|
|
1211
|
+
return $ ? O.substring(ae) : D("unclosed cdata");
|
|
1212
|
+
if (o && (o(O.substring(ae + 9, be), p), y))
|
|
1213
1213
|
return;
|
|
1214
1214
|
be += 3;
|
|
1215
1215
|
continue;
|
|
1216
1216
|
}
|
|
1217
|
-
if (V === 45 &&
|
|
1218
|
-
if (be =
|
|
1219
|
-
return $ ?
|
|
1220
|
-
if (c && (c(
|
|
1217
|
+
if (V === 45 && O.charCodeAt(ae + 3) === 45) {
|
|
1218
|
+
if (be = O.indexOf("-->", ae), be === -1)
|
|
1219
|
+
return $ ? O.substring(ae) : D("unclosed comment");
|
|
1220
|
+
if (c && (c(O.substring(ae + 4, be), Ar, p), y))
|
|
1221
1221
|
return;
|
|
1222
1222
|
be += 3;
|
|
1223
1223
|
continue;
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
if (Z === 63) {
|
|
1227
|
-
if (be =
|
|
1228
|
-
return $ ?
|
|
1229
|
-
if (u && (u(
|
|
1227
|
+
if (be = O.indexOf("?>", ae), be === -1)
|
|
1228
|
+
return $ ? O.substring(ae) : D("unclosed question");
|
|
1229
|
+
if (u && (u(O.substring(ae, be + 2), p), y))
|
|
1230
1230
|
return;
|
|
1231
1231
|
be += 2;
|
|
1232
1232
|
continue;
|
|
1233
1233
|
}
|
|
1234
1234
|
for (ne = ae + 1; ; ne++) {
|
|
1235
|
-
if ($e =
|
|
1236
|
-
return $ ?
|
|
1235
|
+
if ($e = O.charCodeAt(ne), isNaN($e))
|
|
1236
|
+
return $ ? O.substring(ae) : (be = -1, D("unclosed tag"));
|
|
1237
1237
|
if ($e === 34)
|
|
1238
|
-
V =
|
|
1238
|
+
V = O.indexOf('"', ne + 1), ne = V !== -1 ? V : ne;
|
|
1239
1239
|
else if ($e === 39)
|
|
1240
|
-
V =
|
|
1240
|
+
V = O.indexOf("'", ne + 1), ne = V !== -1 ? V : ne;
|
|
1241
1241
|
else if ($e === 62) {
|
|
1242
1242
|
be = ne;
|
|
1243
1243
|
break;
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
if (Z === 33) {
|
|
1247
|
-
if (l && (l(
|
|
1247
|
+
if (l && (l(O.substring(ae, be + 1), Ar, p), y))
|
|
1248
1248
|
return;
|
|
1249
1249
|
be += 1;
|
|
1250
1250
|
continue;
|
|
1251
1251
|
}
|
|
1252
1252
|
if (K = {}, Z === 47) {
|
|
1253
1253
|
if (ue = !1, he = !0, !P.length)
|
|
1254
|
-
return
|
|
1255
|
-
if (ne = T = P.pop(), V = ae + 2 + ne.length,
|
|
1256
|
-
return
|
|
1254
|
+
return D("missing open tag");
|
|
1255
|
+
if (ne = T = P.pop(), V = ae + 2 + ne.length, O.substring(ae + 2, V) !== ne)
|
|
1256
|
+
return D("closing tag mismatch");
|
|
1257
1257
|
for (; V < be; V++)
|
|
1258
|
-
if (Z =
|
|
1259
|
-
return
|
|
1258
|
+
if (Z = O.charCodeAt(V), !(Z === 32 || Z > 8 && Z < 14))
|
|
1259
|
+
return D("close tag");
|
|
1260
1260
|
} else {
|
|
1261
|
-
if (
|
|
1262
|
-
return
|
|
1261
|
+
if (O.charCodeAt(be - 1) === 47 ? (ne = T = O.substring(ae + 1, be - 1), ue = !0, he = !0) : (ne = T = O.substring(ae + 1, be), ue = !0, he = !1), !(Z > 96 && Z < 123 || Z > 64 && Z < 91 || Z === 95 || Z === 58))
|
|
1262
|
+
return D("illegal first char nodeName");
|
|
1263
1263
|
for (V = 1, U = ne.length; V < U; V++)
|
|
1264
1264
|
if (Z = ne.charCodeAt(V), !(Z > 96 && Z < 123 || Z > 64 && Z < 91 || Z > 47 && Z < 59 || Z === 45 || Z === 95 || Z == 46)) {
|
|
1265
1265
|
if (Z === 32 || Z < 14 && Z > 8) {
|
|
1266
1266
|
T = ne.substring(0, V), K = null;
|
|
1267
1267
|
break;
|
|
1268
1268
|
}
|
|
1269
|
-
return
|
|
1269
|
+
return D("invalid nodeName");
|
|
1270
1270
|
}
|
|
1271
1271
|
he || P.push(T);
|
|
1272
1272
|
}
|
|
@@ -1278,7 +1278,7 @@ function ay(e) {
|
|
|
1278
1278
|
else {
|
|
1279
1279
|
if (Z = T.indexOf(":"), Z !== -1) {
|
|
1280
1280
|
if (wt = E[T.substring(0, Z)], !wt)
|
|
1281
|
-
return
|
|
1281
|
+
return D("missing namespace on <" + x + ">");
|
|
1282
1282
|
T = T.substr(Z + 1);
|
|
1283
1283
|
} else
|
|
1284
1284
|
wt = E.xmlns;
|
|
@@ -1528,14 +1528,14 @@ Gl.prototype.fromXML = function(e, t, n) {
|
|
|
1528
1528
|
t instanceof hn ? (i = t, t = {}) : typeof t == "string" ? (i = this.handler(t), t = {}) : typeof i == "string" && (i = this.handler(i));
|
|
1529
1529
|
var r = this.model, o = this.lax, a = new P0(F({}, t, { rootHandler: i })), s = new ay({ proxy: !0 }), c = A0();
|
|
1530
1530
|
i.context = a, c.push(i);
|
|
1531
|
-
function u(P, C,
|
|
1532
|
-
var A = C(), N = A.line, k = A.column,
|
|
1533
|
-
|
|
1534
|
-
var $ = "unparsable content " + (
|
|
1531
|
+
function u(P, C, D) {
|
|
1532
|
+
var A = C(), N = A.line, k = A.column, O = A.data;
|
|
1533
|
+
O.charAt(0) === "<" && O.indexOf(" ") !== -1 && (O = O.slice(0, O.indexOf(" ")) + ">");
|
|
1534
|
+
var $ = "unparsable content " + (O ? O + " " : "") + `detected
|
|
1535
1535
|
line: ` + N + `
|
|
1536
1536
|
column: ` + k + `
|
|
1537
1537
|
nested error: ` + P.message;
|
|
1538
|
-
if (
|
|
1538
|
+
if (D)
|
|
1539
1539
|
return a.addWarning({
|
|
1540
1540
|
message: $,
|
|
1541
1541
|
error: P
|
|
@@ -1546,19 +1546,19 @@ Gl.prototype.fromXML = function(e, t, n) {
|
|
|
1546
1546
|
return u(P, C, !0);
|
|
1547
1547
|
}
|
|
1548
1548
|
function p() {
|
|
1549
|
-
var P = a.elementsById, C = a.references,
|
|
1550
|
-
for (
|
|
1551
|
-
var N = A.element, k = P[A.id],
|
|
1549
|
+
var P = a.elementsById, C = a.references, D, A;
|
|
1550
|
+
for (D = 0; A = C[D]; D++) {
|
|
1551
|
+
var N = A.element, k = P[A.id], O = Ci(N).propertiesByName[A.property];
|
|
1552
1552
|
if (k || a.addWarning({
|
|
1553
1553
|
message: "unresolved reference <" + A.id + ">",
|
|
1554
1554
|
element: A.element,
|
|
1555
1555
|
property: A.property,
|
|
1556
1556
|
value: A.id
|
|
1557
|
-
}),
|
|
1558
|
-
var $ = N.get(
|
|
1557
|
+
}), O.isMany) {
|
|
1558
|
+
var $ = N.get(O.name), ie = $.indexOf(A);
|
|
1559
1559
|
ie === -1 && (ie = $.length), k ? $[ie] = k : $.splice(ie, 1);
|
|
1560
1560
|
} else
|
|
1561
|
-
N.set(
|
|
1561
|
+
N.set(O.name, k);
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
function f() {
|
|
@@ -1567,16 +1567,16 @@ Gl.prototype.fromXML = function(e, t, n) {
|
|
|
1567
1567
|
var d = /^<\?xml /i, g = / encoding="([^"]+)"/i, h = /^utf-8$/i;
|
|
1568
1568
|
function m(P) {
|
|
1569
1569
|
if (d.test(P)) {
|
|
1570
|
-
var C = g.exec(P),
|
|
1571
|
-
!
|
|
1572
|
-
message: "unsupported document encoding <" +
|
|
1570
|
+
var C = g.exec(P), D = C && C[1];
|
|
1571
|
+
!D || h.test(D) || a.addWarning({
|
|
1572
|
+
message: "unsupported document encoding <" + D + ">, falling back to UTF-8"
|
|
1573
1573
|
});
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
1576
|
function S(P, C) {
|
|
1577
|
-
var
|
|
1577
|
+
var D = c.peek();
|
|
1578
1578
|
try {
|
|
1579
|
-
c.push(
|
|
1579
|
+
c.push(D.handleNode(P));
|
|
1580
1580
|
} catch (A) {
|
|
1581
1581
|
u(A, C, o) && c.push(new Fl());
|
|
1582
1582
|
}
|
|
@@ -1584,8 +1584,8 @@ Gl.prototype.fromXML = function(e, t, n) {
|
|
|
1584
1584
|
function y(P, C) {
|
|
1585
1585
|
try {
|
|
1586
1586
|
c.peek().handleText(P);
|
|
1587
|
-
} catch (
|
|
1588
|
-
l(
|
|
1587
|
+
} catch (D) {
|
|
1588
|
+
l(D, C);
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
1591
|
function _(P, C) {
|
|
@@ -1593,35 +1593,35 @@ Gl.prototype.fromXML = function(e, t, n) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
var E = r.getPackages().reduce(function(P, C) {
|
|
1595
1595
|
return P[C.uri] = C.prefix, P;
|
|
1596
|
-
}, Object.entries(nl).reduce(function(P, [C,
|
|
1597
|
-
return P[
|
|
1596
|
+
}, Object.entries(nl).reduce(function(P, [C, D]) {
|
|
1597
|
+
return P[D] = C, P;
|
|
1598
1598
|
}, r.config && r.config.nsMap || {}));
|
|
1599
|
-
return s.ns(E).on("openTag", function(P, C,
|
|
1599
|
+
return s.ns(E).on("openTag", function(P, C, D, A) {
|
|
1600
1600
|
var N = P.attrs || {}, k = Object.keys(N).reduce(function($, ie) {
|
|
1601
1601
|
var ge = C(N[ie]);
|
|
1602
1602
|
return $[ie] = ge, $;
|
|
1603
|
-
}, {}),
|
|
1603
|
+
}, {}), O = {
|
|
1604
1604
|
name: P.name,
|
|
1605
1605
|
originalName: P.originalName,
|
|
1606
1606
|
attributes: k,
|
|
1607
1607
|
ns: P.ns
|
|
1608
1608
|
};
|
|
1609
|
-
S(
|
|
1610
|
-
}).on("question", m).on("closeTag", f).on("cdata", y).on("text", function(P, C,
|
|
1611
|
-
_(C(P),
|
|
1609
|
+
S(O, A);
|
|
1610
|
+
}).on("question", m).on("closeTag", f).on("cdata", y).on("text", function(P, C, D) {
|
|
1611
|
+
_(C(P), D);
|
|
1612
1612
|
}).on("error", u).on("warn", l), new Promise(function(P, C) {
|
|
1613
|
-
var
|
|
1613
|
+
var D;
|
|
1614
1614
|
try {
|
|
1615
1615
|
s.parse(e), p();
|
|
1616
1616
|
} catch ($) {
|
|
1617
|
-
|
|
1617
|
+
D = $;
|
|
1618
1618
|
}
|
|
1619
1619
|
var A = i.element;
|
|
1620
|
-
!
|
|
1621
|
-
var N = a.warnings, k = a.references,
|
|
1622
|
-
return
|
|
1620
|
+
!D && !A && (D = Ji("failed to parse document as <" + i.type.$descriptor.name + ">"));
|
|
1621
|
+
var N = a.warnings, k = a.references, O = a.elementsById;
|
|
1622
|
+
return D ? (D.warnings = N, C(D)) : P({
|
|
1623
1623
|
rootElement: A,
|
|
1624
|
-
elementsById:
|
|
1624
|
+
elementsById: O,
|
|
1625
1625
|
references: k,
|
|
1626
1626
|
warnings: N
|
|
1627
1627
|
});
|
|
@@ -5837,7 +5837,7 @@ function er(e) {
|
|
|
5837
5837
|
case "annotation-over-label":
|
|
5838
5838
|
return `a|${e.annotation}|${e.label}`;
|
|
5839
5839
|
case "group-overlap-unintended":
|
|
5840
|
-
return `g|${e.groups[0]}|${e.groups[1]}`;
|
|
5840
|
+
return `g|${e.groups[0]}|${e.groups[1]}${e.container ? `|⊃${e.container}` : ""}`;
|
|
5841
5841
|
case "group-overlap-unreadable":
|
|
5842
5842
|
return e.reason === "minority" ? `gu*|${e.group}|${e.shapes.join(",")}` : e.reason === "throughpass" ? `gu>|${e.group}|${e.shapes.join(",")}` : `gu|${e.groups[0]}|${e.groups[1]}|${e.shapes.join(",")}`;
|
|
5843
5843
|
case "group-stack-unreadable":
|
|
@@ -6135,17 +6135,18 @@ function ir(e) {
|
|
|
6135
6135
|
const S = r[h], y = r[m], _ = Math.min(S.x + S.width, y.x + y.width) - Math.max(S.x, y.x), E = Math.min(S.y + S.height, y.y + y.height) - Math.max(S.y, y.y);
|
|
6136
6136
|
if (_ <= Qa || E <= Qa) continue;
|
|
6137
6137
|
const P = S.id < y.id ? [S.id, y.id] : [y.id, S.id], C = new Set(y.members);
|
|
6138
|
-
if (S.members.some((
|
|
6139
|
-
const
|
|
6138
|
+
if (S.members.some((A) => C.has(A))) {
|
|
6139
|
+
const A = Td(e, r, {
|
|
6140
6140
|
x: Math.max(S.x, y.x),
|
|
6141
6141
|
y: Math.max(S.y, y.y),
|
|
6142
6142
|
right: Math.min(S.x + S.width, y.x + y.width),
|
|
6143
6143
|
bottom: Math.min(S.y + S.height, y.y + y.height)
|
|
6144
6144
|
});
|
|
6145
|
-
|
|
6145
|
+
A.length && t.push({ kind: "group-overlap-unreadable", reason: "orphan", groups: P, shapes: A });
|
|
6146
6146
|
continue;
|
|
6147
6147
|
}
|
|
6148
|
-
|
|
6148
|
+
const D = S.x <= y.x && S.y <= y.y && S.x + S.width >= y.x + y.width && S.y + S.height >= y.y + y.height ? S.id : y.x <= S.x && y.y <= S.y && y.x + y.width >= S.x + S.width && y.y + y.height >= S.y + S.height ? y.id : void 0;
|
|
6149
|
+
t.push({ kind: "group-overlap-unintended", groups: P, ...D ? { container: D } : {} });
|
|
6149
6150
|
}
|
|
6150
6151
|
const o = new Set(r.flatMap((h) => [...h.members])), a = (h) => e.shapes.filter(
|
|
6151
6152
|
(m) => !m.container && !il.has(m.type) && m.x >= h.x && m.y >= h.y && m.x + m.width <= h.x + h.width && m.y + m.height <= h.y + h.height
|
|
@@ -6167,8 +6168,8 @@ function ir(e) {
|
|
|
6167
6168
|
let _ = !1, E = !1, P = !1;
|
|
6168
6169
|
for (const C of e.edges) {
|
|
6169
6170
|
if (C.type !== "bpmn:SequenceFlow" || !C.source || !C.target) continue;
|
|
6170
|
-
const
|
|
6171
|
-
!
|
|
6171
|
+
const D = y.has(C.source), A = y.has(C.target);
|
|
6172
|
+
!D && A && !m.has(C.source) ? _ = !0 : D && !A && !m.has(C.target) ? E = !0 : D && A && (P = !0);
|
|
6172
6173
|
}
|
|
6173
6174
|
_ && E && P && t.push({
|
|
6174
6175
|
kind: "group-overlap-unreadable",
|
|
@@ -6203,12 +6204,12 @@ function ir(e) {
|
|
|
6203
6204
|
["right", h.x + h.width, "v", h.y, h.y + h.height]
|
|
6204
6205
|
];
|
|
6205
6206
|
for (const [y, _, E, P, C] of S) {
|
|
6206
|
-
const
|
|
6207
|
-
if (!(
|
|
6207
|
+
const D = E === "h" ? m.x : m.y, A = E === "h" ? m.x + m.width : m.y + m.height;
|
|
6208
|
+
if (!(D < C && P < A)) continue;
|
|
6208
6209
|
const N = E === "h" ? m.y : m.x, k = E === "h" ? m.y + m.height : m.x + m.width;
|
|
6209
6210
|
if (!(N < _ && _ < k)) continue;
|
|
6210
|
-
const
|
|
6211
|
-
|
|
6211
|
+
const O = Math.min(_ - N, k - _);
|
|
6212
|
+
O < tE || t.push({ kind: "group-cuts-shape", group: h.id, shape: m.id, side: y, depth: O });
|
|
6212
6213
|
}
|
|
6213
6214
|
}
|
|
6214
6215
|
const c = e.shapes.filter((h) => h.container && h.type !== "bpmn:Group" && h.type !== "bpmn:Lane");
|
|
@@ -6220,8 +6221,8 @@ function ir(e) {
|
|
|
6220
6221
|
["left", h.x, m.x, y],
|
|
6221
6222
|
["right", h.x + h.width, m.x + m.width, y]
|
|
6222
6223
|
];
|
|
6223
|
-
for (const [E, P, C,
|
|
6224
|
-
|
|
6224
|
+
for (const [E, P, C, D] of _)
|
|
6225
|
+
D && Math.abs(P - C) <= Cd && t.push({ kind: "group-on-container-boundary", group: h.id, container: m.id, side: E });
|
|
6225
6226
|
}
|
|
6226
6227
|
const u = e.shapes.filter((h) => h.type === "bpmn:Group");
|
|
6227
6228
|
for (let h = 0; h < u.length; h++)
|
|
@@ -6232,8 +6233,8 @@ function ir(e) {
|
|
|
6232
6233
|
["y", S.y + S.height, y.y, _],
|
|
6233
6234
|
["y", y.y + y.height, S.y, _]
|
|
6234
6235
|
];
|
|
6235
|
-
for (const [C,
|
|
6236
|
-
if (N && Math.abs(
|
|
6236
|
+
for (const [C, D, A, N] of P)
|
|
6237
|
+
if (N && Math.abs(D - A) <= Cd) {
|
|
6237
6238
|
t.push({
|
|
6238
6239
|
kind: "group-on-group-boundary",
|
|
6239
6240
|
groups: S.id < y.id ? [S.id, y.id] : [y.id, S.id],
|
|
@@ -6342,7 +6343,7 @@ function _E(e) {
|
|
|
6342
6343
|
if (!S) continue;
|
|
6343
6344
|
const y = typeof (m == null ? void 0 : m.$type) == "string" ? m.$type : "", _ = dt(h.bounds);
|
|
6344
6345
|
if (_) {
|
|
6345
|
-
const P = h.isExpanded === !1 && y !== "bpmn:Participant", C = dt((u = dt(h.label)) == null ? void 0 : u.bounds),
|
|
6346
|
+
const P = h.isExpanded === !1 && y !== "bpmn:Participant", C = dt((u = dt(h.label)) == null ? void 0 : u.bounds), D = {
|
|
6346
6347
|
id: S,
|
|
6347
6348
|
type: y,
|
|
6348
6349
|
x: _t(_.x),
|
|
@@ -6355,7 +6356,7 @@ function _E(e) {
|
|
|
6355
6356
|
...C ? { label: { x: _t(C.x), y: _t(C.y), width: _t(C.width), height: _t(C.height) } } : {},
|
|
6356
6357
|
...y === "bpmn:Group" ? Cy(Ry(m)) : {}
|
|
6357
6358
|
}, A = h.isHorizontal !== !1, N = typeof (m == null ? void 0 : m.name) == "string" ? m.name : "";
|
|
6358
|
-
o.has(S) && A && N && (
|
|
6359
|
+
o.has(S) && A && N && (D.label = xy(D, N)), t.push(D);
|
|
6359
6360
|
continue;
|
|
6360
6361
|
}
|
|
6361
6362
|
const E = h.waypoint;
|
|
@@ -6365,8 +6366,8 @@ function _E(e) {
|
|
|
6365
6366
|
id: S,
|
|
6366
6367
|
type: y,
|
|
6367
6368
|
waypoints: E.map((C) => {
|
|
6368
|
-
var
|
|
6369
|
-
return { x: _t((
|
|
6369
|
+
var D, A;
|
|
6370
|
+
return { x: _t((D = dt(C)) == null ? void 0 : D.x), y: _t((A = dt(C)) == null ? void 0 : A.y) };
|
|
6370
6371
|
}),
|
|
6371
6372
|
endpoints: yE(m),
|
|
6372
6373
|
...vE(m),
|
|
@@ -6619,15 +6620,15 @@ function LE(e, t) {
|
|
|
6619
6620
|
if (!l.length) return null;
|
|
6620
6621
|
const p = l[0], f = l[l.length - 1], d = (c.y + c.height + p.y) / 2, g = (f.y + f.height + u.y) / 2, h = s ? d : g, m = s ? g : d, S = e.waypoints[0], y = e.waypoints[e.waypoints.length - 1], _ = Pi(t), E = t.edges.filter(($) => $.id !== e.id), P = nr(e, E), C = ti(e, _).length;
|
|
6621
6622
|
if (P === 0 && C === 0 || C === 0 && e.waypoints.length === 2) return null;
|
|
6622
|
-
const
|
|
6623
|
-
let
|
|
6624
|
-
for (let $ =
|
|
6623
|
+
const D = Math.min(...l.map(($) => $.x)), A = Math.max(...l.map(($) => $.x + $.width)), N = (S.x + y.x) / 2, k = ($) => $.filter((ie, ge) => ge === 0 || !(Ot(ie.x, $[ge - 1].x) && Ot(ie.y, $[ge - 1].y)));
|
|
6624
|
+
let O;
|
|
6625
|
+
for (let $ = D; $ <= A; $ += DE) {
|
|
6625
6626
|
const ie = k([S, { x: S.x, y: h }, { x: $, y: h }, { x: $, y: m }, { x: y.x, y: m }, y]), ge = { ...e, waypoints: ie };
|
|
6626
6627
|
if (ti(ge, _).length > 0) continue;
|
|
6627
6628
|
const Ve = nr(ge, E), q = Math.abs($ - N);
|
|
6628
|
-
(!
|
|
6629
|
+
(!O || Ve < O.cross || Ve === O.cross && q < O.detour) && (O = { pts: ie, cross: Ve, detour: q });
|
|
6629
6630
|
}
|
|
6630
|
-
return
|
|
6631
|
+
return O && (C > 0 ? O.cross <= P : O.cross < P) ? O.pts : null;
|
|
6631
6632
|
}
|
|
6632
6633
|
function IE(e, t) {
|
|
6633
6634
|
const { elementRegistry: n } = e, i = e.modeling, r = Ct(n);
|
|
@@ -6716,44 +6717,44 @@ function BE(e, t) {
|
|
|
6716
6717
|
if (e.type !== "bpmn:SequenceFlow") return null;
|
|
6717
6718
|
const n = t.shapes.filter((C) => C.container), i = new Map(t.shapes.map((C) => [C.id, C])), r = Pi(t), o = t.edges.filter((C) => C.id !== e.id), a = tr(e, o), s = nr(e, o), c = (C) => NE(C, t.shapes, e.endpoints) + (Dd(C, n) ? 1 : 0), u = c(e.waypoints), l = (C) => {
|
|
6718
6719
|
if (!C) return;
|
|
6719
|
-
const
|
|
6720
|
-
return n.find((N) => N.type === "bpmn:Lane" &&
|
|
6720
|
+
const D = C.x + C.width / 2, A = C.y + C.height / 2;
|
|
6721
|
+
return n.find((N) => N.type === "bpmn:Lane" && D >= N.x && D <= N.x + N.width && A >= N.y && A <= N.y + N.height);
|
|
6721
6722
|
}, p = l(i.get(e.endpoints[0] ?? "")), f = l(i.get(e.endpoints[1] ?? "")), d = !!p && !!f && p.id !== f.id, g = (C) => {
|
|
6722
6723
|
if (!d || !f) return !1;
|
|
6723
|
-
for (let
|
|
6724
|
-
const A = C[
|
|
6724
|
+
for (let D = 1; D < C.length - 2; D++) {
|
|
6725
|
+
const A = C[D], N = C[D + 1];
|
|
6725
6726
|
if (Ot(A.y, N.y) && !Ot(A.x, N.x) && A.y > f.y && A.y < f.y + f.height) return !0;
|
|
6726
6727
|
}
|
|
6727
6728
|
return !1;
|
|
6728
6729
|
}, h = g(e.waypoints), S = ((C) => {
|
|
6729
6730
|
if (!C) return;
|
|
6730
|
-
const
|
|
6731
|
-
return n.filter((N) => N.type === "bpmn:Participant" &&
|
|
6731
|
+
const D = C.x + C.width / 2, A = C.y + C.height / 2;
|
|
6732
|
+
return n.filter((N) => N.type === "bpmn:Participant" && D >= N.x && D <= N.x + N.width && A >= N.y && A <= N.y + N.height).sort((N, k) => N.width * N.height - k.width * k.height)[0];
|
|
6732
6733
|
})(i.get(e.endpoints[0] ?? "")), y = (C) => {
|
|
6733
6734
|
if (!S) return 0;
|
|
6734
|
-
let
|
|
6735
|
+
let D = 0;
|
|
6735
6736
|
for (let A = 1; A < C.length - 1; A++) {
|
|
6736
6737
|
const N = C[A];
|
|
6737
|
-
(N.x < S.x || N.x > S.x + S.width || N.y < S.y || N.y > S.y + S.height) &&
|
|
6738
|
+
(N.x < S.x || N.x > S.x + S.width || N.y < S.y || N.y > S.y + S.height) && D++;
|
|
6738
6739
|
}
|
|
6739
|
-
return
|
|
6740
|
+
return D;
|
|
6740
6741
|
}, _ = y(e.waypoints);
|
|
6741
6742
|
if (!Dd(e.waypoints, n) && !(d && !h) && _ === 0) return null;
|
|
6742
|
-
const E = (C) => C.reduce((
|
|
6743
|
+
const E = (C) => C.reduce((D, A, N) => N ? D + Math.abs(A.x - C[N - 1].x) + Math.abs(A.y - C[N - 1].y) : 0, 0);
|
|
6743
6744
|
let P;
|
|
6744
|
-
for (const { pts: C, cost:
|
|
6745
|
+
for (const { pts: C, cost: D } of Ty(e, i)) {
|
|
6745
6746
|
const A = { ...e, waypoints: C };
|
|
6746
6747
|
if (ti(A, r).length > 0) continue;
|
|
6747
6748
|
const N = tr(A, o);
|
|
6748
6749
|
if (N > a) continue;
|
|
6749
6750
|
const k = y(C);
|
|
6750
6751
|
if (k > _) continue;
|
|
6751
|
-
const
|
|
6752
|
-
if (!
|
|
6752
|
+
const O = k < _ && N === 0;
|
|
6753
|
+
if (!O && nr(A, o) > s) continue;
|
|
6753
6754
|
const $ = c(C), ie = g(C);
|
|
6754
|
-
if (!
|
|
6755
|
+
if (!O && !(ie && !h) && $ >= u) continue;
|
|
6755
6756
|
const Ve = ie ? 0 : 1, q = E(C);
|
|
6756
|
-
(!P || k < P.out || k === P.out && (Ve < P.lane || Ve === P.lane && (N < P.opp || N === P.opp && ($ < P.sc || $ === P.sc && (
|
|
6757
|
+
(!P || k < P.out || k === P.out && (Ve < P.lane || Ve === P.lane && (N < P.opp || N === P.opp && ($ < P.sc || $ === P.sc && (D < P.cost || D === P.cost && q < P.len))))) && (P = { pts: C, out: k, sc: $, lane: Ve, opp: N, cost: D, len: q });
|
|
6757
6758
|
}
|
|
6758
6759
|
return (P == null ? void 0 : P.pts) ?? null;
|
|
6759
6760
|
}
|
|
@@ -7359,11 +7360,11 @@ const Js = {
|
|
|
7359
7360
|
left: [-1, 0]
|
|
7360
7361
|
}, Jt = 10, Nd = 40, n1 = 10;
|
|
7361
7362
|
function ol(e, t, n, i, r) {
|
|
7362
|
-
const o = n, a = (k,
|
|
7363
|
+
const o = n, a = (k, O) => {
|
|
7363
7364
|
const [$, ie] = Js[k];
|
|
7364
7365
|
let ge = {
|
|
7365
|
-
x: t.x + t.width / 2 + $ * (t.width / 2 + o.width / 2 +
|
|
7366
|
-
y: t.y + t.height / 2 + ie * (t.height / 2 + o.height / 2 +
|
|
7366
|
+
x: t.x + t.width / 2 + $ * (t.width / 2 + o.width / 2 + O),
|
|
7367
|
+
y: t.y + t.height / 2 + ie * (t.height / 2 + o.height / 2 + O)
|
|
7367
7368
|
};
|
|
7368
7369
|
const Ve = i.x + Jt + o.width / 2, q = i.x + i.width - Jt - o.width / 2, ue = i.y + Jt + o.height / 2, he = i.y + i.height - Jt - o.height / 2, ae = { x: Math.min(q, Math.max(Ve, ge.x)), y: Math.min(he, Math.max(ue, ge.y)) };
|
|
7369
7370
|
return (ae.x !== ge.x || ae.y !== ge.y) && (ge = Math.abs(ae.x - (t.x + t.width / 2)) < (t.width + o.width) / 2 + Jt && Math.abs(ae.y - (t.y + t.height / 2)) < (t.height + o.height) / 2 + Jt ? { x: t.x + t.width + Jt + o.width / 2, y: ae.y } : ae), ge;
|
|
@@ -7372,37 +7373,37 @@ function ol(e, t, n, i, r) {
|
|
|
7372
7373
|
), c = Ct(e), u = (k) => {
|
|
7373
7374
|
var $, ie;
|
|
7374
7375
|
if (!r.selfId) return !1;
|
|
7375
|
-
const
|
|
7376
|
-
return !!
|
|
7376
|
+
const O = e.get(k);
|
|
7377
|
+
return !!O && ((($ = O.source) == null ? void 0 : $.id) === r.selfId || ((ie = O.target) == null ? void 0 : ie.id) === r.selfId);
|
|
7377
7378
|
}, l = c.edges.filter((k) => !u(k.id)).flatMap(bn), p = oa(c).filter((k) => k.owner !== r.selfId).map((k) => k.rect), f = (k) => ({
|
|
7378
7379
|
x0: k.x - o.width / 2 - Jt,
|
|
7379
7380
|
x1: k.x + o.width / 2 + Jt,
|
|
7380
7381
|
y0: k.y - o.height / 2 - Jt,
|
|
7381
7382
|
y1: k.y + o.height / 2 + Jt
|
|
7382
7383
|
}), d = (k) => {
|
|
7383
|
-
const
|
|
7384
|
-
return s.some(($) =>
|
|
7384
|
+
const O = f(k);
|
|
7385
|
+
return s.some(($) => O.x0 < $.x + $.width && O.x1 > $.x && O.y0 < $.y + $.height && O.y1 > $.y);
|
|
7385
7386
|
}, g = (k) => {
|
|
7386
|
-
const
|
|
7387
|
+
const O = f(k);
|
|
7387
7388
|
return l.some(
|
|
7388
|
-
($) => $.axis === "h" ? $.at >
|
|
7389
|
+
($) => $.axis === "h" ? $.at > O.y0 && $.at < O.y1 && $.lo < O.x1 && $.hi > O.x0 : $.at > O.x0 && $.at < O.x1 && $.lo < O.y1 && $.hi > O.y0
|
|
7389
7390
|
);
|
|
7390
7391
|
}, h = (k) => {
|
|
7391
|
-
const
|
|
7392
|
-
return p.some(($) =>
|
|
7392
|
+
const O = f(k);
|
|
7393
|
+
return p.some(($) => O.x0 < $.x + $.width && O.x1 > $.x && O.y0 < $.y + $.height && O.y1 > $.y);
|
|
7393
7394
|
}, m = c.shapes.filter((k) => k.type === "bpmn:Group").flatMap((k) => [
|
|
7394
7395
|
{ axis: "h", at: k.y, lo: k.x, hi: k.x + k.width },
|
|
7395
7396
|
{ axis: "h", at: k.y + k.height, lo: k.x, hi: k.x + k.width },
|
|
7396
7397
|
{ axis: "v", at: k.x, lo: k.y, hi: k.y + k.height },
|
|
7397
7398
|
{ axis: "v", at: k.x + k.width, lo: k.y, hi: k.y + k.height }
|
|
7398
7399
|
]), S = (k) => {
|
|
7399
|
-
const
|
|
7400
|
+
const O = f(k);
|
|
7400
7401
|
return m.some(
|
|
7401
|
-
($) => $.axis === "h" ? $.at >
|
|
7402
|
+
($) => $.axis === "h" ? $.at > O.y0 && $.at < O.y1 && $.lo < O.x1 && $.hi > O.x0 : $.at > O.x0 && $.at < O.x1 && $.lo < O.y1 && $.hi > O.y0
|
|
7402
7403
|
);
|
|
7403
7404
|
}, y = (k) => d(k) || g(k) || h(k) || S(k), _ = (k) => k.x - o.width / 2 >= i.x && k.x + o.width / 2 <= i.x + i.width && k.y - o.height / 2 >= i.y && k.y + o.height / 2 <= i.y + i.height;
|
|
7404
7405
|
if (r.placement) {
|
|
7405
|
-
const k = (q) => q.startsWith("top") ? q.replace(/^top/, "bottom") : q.replace(/^bottom/, "top"),
|
|
7406
|
+
const k = (q) => q.startsWith("top") ? q.replace(/^top/, "bottom") : q.replace(/^bottom/, "top"), O = (q) => q.endsWith("left") ? q.replace(/left$/, "right") : q.replace(/right$/, "left"), $ = r.placement.side, ie = [$, k($), O($), k(O($)), "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"], ge = r.placement.offset ?? 50;
|
|
7406
7407
|
let Ve = a($, ge);
|
|
7407
7408
|
if (y(Ve)) {
|
|
7408
7409
|
const q = /* @__PURE__ */ new Set();
|
|
@@ -7418,8 +7419,8 @@ function ol(e, t, n, i, r) {
|
|
|
7418
7419
|
}
|
|
7419
7420
|
return Ve;
|
|
7420
7421
|
}
|
|
7421
|
-
const E = r.from, P = i.x + Jt + o.width / 2, C = i.x + i.width - Jt - o.width / 2,
|
|
7422
|
-
let N = { x: Math.min(C, Math.max(P, E.x)), y: Math.min(A, Math.max(
|
|
7422
|
+
const E = r.from, P = i.x + Jt + o.width / 2, C = i.x + i.width - Jt - o.width / 2, D = i.y + Jt + o.height / 2, A = i.y + i.height - Jt - o.height / 2;
|
|
7423
|
+
let N = { x: Math.min(C, Math.max(P, E.x)), y: Math.min(A, Math.max(D, E.y)) };
|
|
7423
7424
|
if (y(N)) {
|
|
7424
7425
|
const k = (t.width + o.width) / 2 + Jt, $ = [
|
|
7425
7426
|
{ x: N.x + k, y: N.y },
|
|
@@ -7451,7 +7452,7 @@ function i1(e, t) {
|
|
|
7451
7452
|
(R) => !("waypoints" in R && R.waypoints) && R.type !== "bpmn:Lane" && R.type !== "label" && typeof R.x == "number"
|
|
7452
7453
|
))
|
|
7453
7454
|
d.set(w.id, { x: w.x, y: w.y });
|
|
7454
|
-
const g = Ut(e, "participant.add"), h = Ut(e, "node.add"), m = Ut(e, "sequenceFlow.add"), S = Ut(e, "messageFlow.add"), y = Ut(e, "dataStore.add"), _ = Ut(e, "dataAssociation.add"), E = Ut(e, "annotation.add"), P = Ut(e, "group.add"), C = new Map(h.map((w) => [w.node.id, w])),
|
|
7455
|
+
const g = Ut(e, "participant.add"), h = Ut(e, "node.add"), m = Ut(e, "sequenceFlow.add"), S = Ut(e, "messageFlow.add"), y = Ut(e, "dataStore.add"), _ = Ut(e, "dataAssociation.add"), E = Ut(e, "annotation.add"), P = Ut(e, "group.add"), C = new Map(h.map((w) => [w.node.id, w])), D = (w, R, M) => {
|
|
7455
7456
|
var G;
|
|
7456
7457
|
const j = w.businessObject, H = (((G = j.extensionElements) == null ? void 0 : G.values) ?? []).filter((W) => W.$type !== R), I = M ? [...H, i.create(R, M)] : H;
|
|
7457
7458
|
if (!I.length) {
|
|
@@ -7498,7 +7499,7 @@ function i1(e, t) {
|
|
|
7498
7499
|
n.updateProperties(Y, { id: H.id, name: H.name });
|
|
7499
7500
|
});
|
|
7500
7501
|
}
|
|
7501
|
-
const k = 150,
|
|
7502
|
+
const k = 150, O = 130, $ = 80, ie = 90, ge = 180, Ve = 30, q = (w, R, M, j, H) => {
|
|
7502
7503
|
const I = M - R.width / 2, Y = j - R.height / 2;
|
|
7503
7504
|
return (w.children ?? []).find(
|
|
7504
7505
|
(G) => !("waypoints" in G && G.waypoints) && G.type !== "bpmn:Lane" && G.type !== "label" && !(H != null && H.has(G.id)) && typeof G.x == "number" && I < G.x + G.width + Ve && I + R.width + Ve > G.x && Y < G.y + G.height && Y + R.height > G.y
|
|
@@ -7730,14 +7731,14 @@ function i1(e, t) {
|
|
|
7730
7731
|
for (let oe = 0; oe < 64; oe++) {
|
|
7731
7732
|
const ve = q(ce, xe, te, X);
|
|
7732
7733
|
if (!ve) break;
|
|
7733
|
-
te = ve.x + ve.width +
|
|
7734
|
+
te = ve.x + ve.width + O + xe.width / 2;
|
|
7734
7735
|
}
|
|
7735
7736
|
return { x: te, y: X };
|
|
7736
7737
|
}, Ee = new Set(R.flows.map((ce) => ce.flow.target)), re = /* @__PURE__ */ new Map();
|
|
7737
7738
|
for (const ce of R.nodes) {
|
|
7738
7739
|
if (Ee.has(ce.node.id)) continue;
|
|
7739
7740
|
const xe = Ke(ce.node, ce.band), Le = ne(ce), nt = ce.node.lane ? `${ce.node.lane}|${Le ?? ""}` : Le !== void 0 ? `band:${Le}` : "", pt = se(ce.node), Je = _e(pt, xe, ce.node.lane, Le, re.get(nt) ?? j, H);
|
|
7740
|
-
n.createShape(xe, Je, pt), re.set(nt, Je.x + xe.width +
|
|
7741
|
+
n.createShape(xe, Je, pt), re.set(nt, Je.x + xe.width + O), !ce.node.lane && Le === void 0 && (H += 160);
|
|
7741
7742
|
}
|
|
7742
7743
|
const Ce = /* @__PURE__ */ new Set(), le = /* @__PURE__ */ new Map(), ye = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map();
|
|
7743
7744
|
if (w && ue.has(`pool:${w}`)) {
|
|
@@ -7888,7 +7889,7 @@ function i1(e, t) {
|
|
|
7888
7889
|
if (!Xt && X) {
|
|
7889
7890
|
const te = Ke(X.node, X.band), oe = V(X);
|
|
7890
7891
|
if (X.node.lane || oe !== void 0) {
|
|
7891
|
-
const ve = se(X.node), Xe = jt, ze = Xe.x + (rt.get(Je.source) ?? 0) + Xe.width +
|
|
7892
|
+
const ve = se(X.node), Xe = jt, ze = Xe.x + (rt.get(Je.source) ?? 0) + Xe.width + O, Me = le.get(Je.target) ?? ye.get(Je.target), Ge = _e(
|
|
7892
7893
|
ve,
|
|
7893
7894
|
te,
|
|
7894
7895
|
Me ? Me.lane : X.node.lane,
|
|
@@ -8227,7 +8228,7 @@ function i1(e, t) {
|
|
|
8227
8228
|
if (!Ye(w.flow.id)) continue;
|
|
8228
8229
|
const R = l(w.flow.target);
|
|
8229
8230
|
if (!R) continue;
|
|
8230
|
-
const M = p(C.get(w.flow.target).node.participant), j = St(w.flow.target, (G) => G.x >= R.x), H = R.width +
|
|
8231
|
+
const M = p(C.get(w.flow.target).node.participant), j = St(w.flow.target, (G) => G.x >= R.x), H = R.width + O, I = Qt(w.flow.id), Y = tt(w.flow.id);
|
|
8231
8232
|
for (let G = 1; G <= Qn; G++) {
|
|
8232
8233
|
const W = () => Qt(w.flow.id) < I && tt(w.flow.id) >= Y;
|
|
8233
8234
|
if (Ff(j, M, H * G, W)) break;
|
|
@@ -8246,7 +8247,7 @@ function i1(e, t) {
|
|
|
8246
8247
|
const _e = [...C.values()].filter((ce) => ce.node.participant === W).map((ce) => ce.node.id), Ee = (ce) => ce.map((xe) => l(xe)).filter((xe) => !!xe), Ce = [fn(G.id, (ce) => {
|
|
8247
8248
|
var xe;
|
|
8248
8249
|
return ((xe = C.get(ce.id)) == null ? void 0 : xe.node.participant) === W;
|
|
8249
|
-
}), Ee(_e)].filter((ce) => ce.length), le = G.width +
|
|
8250
|
+
}), Ee(_e)].filter((ce) => ce.length), le = G.width + O, ye = Qt(w.flow.id), rt = tt(w.flow.id), Re = () => Qt(w.flow.id) < ye && tt(w.flow.id) >= rt;
|
|
8250
8251
|
let Be = !1;
|
|
8251
8252
|
for (const ce of Ce) {
|
|
8252
8253
|
for (let xe = 1; xe <= Qn; xe++)
|
|
@@ -8302,15 +8303,15 @@ function i1(e, t) {
|
|
|
8302
8303
|
const j = m.filter((Y) => Y.flow.target === M);
|
|
8303
8304
|
if (j.length !== 1) continue;
|
|
8304
8305
|
const H = l(j[0].flow.source), I = l(M);
|
|
8305
|
-
!H || !I || !C.has(H.id) || Math.abs(w(H) - w(I)) > 1 || I.x - (H.x + H.width) <=
|
|
8306
|
+
!H || !I || !C.has(H.id) || Math.abs(w(H) - w(I)) > 1 || I.x - (H.x + H.width) <= O + 1 || R.push({ id: M, pred: H, node: I });
|
|
8306
8307
|
}
|
|
8307
8308
|
R.sort((M, j) => M.node.x - j.node.x);
|
|
8308
8309
|
for (const { id: M } of R) {
|
|
8309
8310
|
const j = C.get(M), H = l(M), I = l(m.find((re) => re.flow.target === M).flow.source);
|
|
8310
8311
|
if (!H || !I) continue;
|
|
8311
8312
|
const Y = H.x - (I.x + I.width);
|
|
8312
|
-
if (Y <=
|
|
8313
|
-
const G = p(j.node.participant), W = St(M, (re) => re.x >= H.x), se = xi(), _e = xx(W, G, -(Y -
|
|
8313
|
+
if (Y <= O + 1) continue;
|
|
8314
|
+
const G = p(j.node.participant), W = St(M, (re) => re.x >= H.x), se = xi(), _e = xx(W, G, -(Y - O));
|
|
8314
8315
|
if (!_e) continue;
|
|
8315
8316
|
const Ee = xi();
|
|
8316
8317
|
(Ee.bad > se.bad || Ee.crossings >= se.crossings || Ee.straight < se.straight) && _e();
|
|
@@ -8395,7 +8396,7 @@ function i1(e, t) {
|
|
|
8395
8396
|
{ x: M.x + M.width / 2, y: M.y + M.height / 2 },
|
|
8396
8397
|
u()
|
|
8397
8398
|
);
|
|
8398
|
-
w.group.name && n.updateLabel(j, w.group.name), (od = w.group.members) != null && od.length &&
|
|
8399
|
+
w.group.name && n.updateLabel(j, w.group.name), (od = w.group.members) != null && od.length && D(j, "bwl:Members", { refs: w.group.members.join(" ") });
|
|
8399
8400
|
}
|
|
8400
8401
|
{
|
|
8401
8402
|
const w = o.filter((H) => !!H.waypoints), R = /* @__PURE__ */ new Map(), M = (H, I) => {
|
|
@@ -8608,7 +8609,7 @@ function i1(e, t) {
|
|
|
8608
8609
|
} : { type: "bpmn:Association" }
|
|
8609
8610
|
);
|
|
8610
8611
|
}
|
|
8611
|
-
w.placement &&
|
|
8612
|
+
w.placement && D(se, "bwl:Placement", A(w.placement));
|
|
8612
8613
|
}
|
|
8613
8614
|
for (const w of Ut(e, "association.add")) {
|
|
8614
8615
|
const R = w.association;
|
|
@@ -8646,20 +8647,20 @@ function i1(e, t) {
|
|
|
8646
8647
|
for (const w of Ut(e, "annotation.update")) {
|
|
8647
8648
|
const R = p(w.id);
|
|
8648
8649
|
if (w.text !== void 0 && n.updateProperties(R, { text: w.text }), w.placement === null)
|
|
8649
|
-
|
|
8650
|
+
D(R, "bwl:Placement", null);
|
|
8650
8651
|
else if (w.placement) {
|
|
8651
8652
|
const M = p(w.placement.anchor), j = Yf(M), H = f(M) ?? u(), I = typeof H.x == "number" && typeof H.width == "number" && H.type === "bpmn:Participant", [Y, G] = Js[w.placement.side], W = w.placement.offset ?? 50, se = {
|
|
8652
8653
|
x: j.x + j.width / 2 + Y * (j.width / 2 + R.width / 2 + W),
|
|
8653
8654
|
y: j.y + j.height / 2 + G * (j.height / 2 + R.height / 2 + W)
|
|
8654
8655
|
}, _e = I ? ol(o, j, { width: R.width, height: R.height }, H, { placement: w.placement, selfId: w.id }) : se;
|
|
8655
|
-
n.moveElements([R], { x: _e.x - (R.x + R.width / 2), y: _e.y - (R.y + R.height / 2) }),
|
|
8656
|
+
n.moveElements([R], { x: _e.x - (R.x + R.width / 2), y: _e.y - (R.y + R.height / 2) }), D(R, "bwl:Placement", A(w.placement));
|
|
8656
8657
|
}
|
|
8657
8658
|
}
|
|
8658
8659
|
for (const w of Ut(e, "group.update")) {
|
|
8659
8660
|
const R = p(w.id);
|
|
8660
8661
|
if (w.name !== void 0 && n.updateLabel(R, w.name ?? ""), w.members) {
|
|
8661
8662
|
const M = w.members.map(l).filter((j) => !!j);
|
|
8662
|
-
M.length && n.resizeShape(R, wu(M, w.id)),
|
|
8663
|
+
M.length && n.resizeShape(R, wu(M, w.id)), D(R, "bwl:Members", { refs: w.members.join(" ") });
|
|
8663
8664
|
}
|
|
8664
8665
|
}
|
|
8665
8666
|
}
|
|
@@ -8710,26 +8711,26 @@ function r1(e, t, n) {
|
|
|
8710
8711
|
(ge) => ge.type === "bpmn:Association"
|
|
8711
8712
|
), _ = (S != null && S.anchor ? i.get(S.anchor) : void 0) ?? (y ? ((p = y.source) == null ? void 0 : p.id) === f ? y.target : y.source : void 0);
|
|
8712
8713
|
if (!_) continue;
|
|
8713
|
-
const E = _.waypoints, P = E != null && E.length ? { x: E[Math.floor((E.length - 1) / 2)].x, y: E[Math.floor((E.length - 1) / 2)].y, width: 0, height: 0 } : { x: _.x, y: _.y, width: _.width, height: _.height }, C = { width: d.width, height: d.height },
|
|
8714
|
+
const E = _.waypoints, P = E != null && E.length ? { x: E[Math.floor((E.length - 1) / 2)].x, y: E[Math.floor((E.length - 1) / 2)].y, width: 0, height: 0 } : { x: _.x, y: _.y, width: _.width, height: _.height }, C = { width: d.width, height: d.height }, D = { x: d.x + d.width / 2, y: d.y + d.height / 2 }, A = S == null ? void 0 : S.side, N = [];
|
|
8714
8715
|
A && A in Js && N.push(ol(i, P, C, h, { placement: { side: A, offset: (S == null ? void 0 : S.offset) ?? null }, selfId: f }));
|
|
8715
8716
|
for (const [ge, Ve] of [[-1, 0], [1, 0], [0, -1], [0, 1]])
|
|
8716
8717
|
for (let q = 1; q <= n1; q++)
|
|
8717
|
-
N.push({ x:
|
|
8718
|
-
const k = { ...s, edges: s.edges.filter((ge) => ge.id !== (y == null ? void 0 : y.id)) },
|
|
8718
|
+
N.push({ x: D.x + ge * Nd * q, y: D.y + Ve * Nd * q });
|
|
8719
|
+
const k = { ...s, edges: s.edges.filter((ge) => ge.id !== (y == null ? void 0 : y.id)) }, O = o(k), $ = O.filter((ge) => Ru(ge).includes(f)).length;
|
|
8719
8720
|
if (!$) continue;
|
|
8720
8721
|
let ie;
|
|
8721
8722
|
for (const ge of N) {
|
|
8722
|
-
const Ve = ge.x -
|
|
8723
|
+
const Ve = ge.x - D.x, q = ge.y - D.y;
|
|
8723
8724
|
if (!Ve && !q || ge.x - C.width / 2 < h.x || ge.x + C.width / 2 > h.x + h.width || ge.y - C.height / 2 < h.y || ge.y + C.height / 2 > h.y + h.height) continue;
|
|
8724
8725
|
const ue = {
|
|
8725
8726
|
...k,
|
|
8726
8727
|
shapes: k.shapes.map((ne) => ne.id === f ? { ...ne, x: ne.x + Ve, y: ne.y + q } : ne)
|
|
8727
8728
|
}, he = o(ue), ae = he.filter((ne) => Ru(ne).includes(f)).length;
|
|
8728
|
-
if (ae >= $ || he.length >
|
|
8729
|
+
if (ae >= $ || he.length > O.length) continue;
|
|
8729
8730
|
const be = Math.abs(Ve) + Math.abs(q);
|
|
8730
|
-
if ((!ie || ae < ie.mine || ae === ie.mine && (he.length < ie.all || he.length === ie.all && be < ie.dist)) && (ie = { x: ge.x, y: ge.y, mine: ae, all: he.length, dist: be }), ie.mine === 0 && ie.all <
|
|
8731
|
+
if ((!ie || ae < ie.mine || ae === ie.mine && (he.length < ie.all || he.length === ie.all && be < ie.dist)) && (ie = { x: ge.x, y: ge.y, mine: ae, all: he.length, dist: be }), ie.mine === 0 && ie.all < O.length) break;
|
|
8731
8732
|
}
|
|
8732
|
-
ie && r.moveElements([d], { x: ie.x -
|
|
8733
|
+
ie && r.moveElements([d], { x: ie.x - D.x, y: ie.y - D.y });
|
|
8733
8734
|
}
|
|
8734
8735
|
}
|
|
8735
8736
|
function o1(e, t, n = i1) {
|
|
@@ -8808,7 +8809,7 @@ function u1(e) {
|
|
|
8808
8809
|
}, C = (q) => {
|
|
8809
8810
|
const ue = $d(q, "bwl:Members"), he = typeof (ue == null ? void 0 : ue.refs) == "string" ? ue.refs.split(/\s+/).filter(Boolean) : [];
|
|
8810
8811
|
he.length && m.push({ owner: q.id, refs: he });
|
|
8811
|
-
},
|
|
8812
|
+
}, D = (q) => {
|
|
8812
8813
|
var ue;
|
|
8813
8814
|
for (const he of q)
|
|
8814
8815
|
switch (_(he.id), he.$type) {
|
|
@@ -8885,7 +8886,7 @@ function u1(e) {
|
|
|
8885
8886
|
target: ne.id
|
|
8886
8887
|
});
|
|
8887
8888
|
}
|
|
8888
|
-
|
|
8889
|
+
D(q.artifacts ?? []);
|
|
8889
8890
|
};
|
|
8890
8891
|
if (n) {
|
|
8891
8892
|
const q = /* @__PURE__ */ new Set();
|
|
@@ -8912,12 +8913,12 @@ function u1(e) {
|
|
|
8912
8913
|
target: ii(ue.targetRef),
|
|
8913
8914
|
...typeof ue.name == "string" && ue.name ? { name: ue.name } : {}
|
|
8914
8915
|
});
|
|
8915
|
-
|
|
8916
|
+
D(n.artifacts ?? []);
|
|
8916
8917
|
for (const [ue, he] of i)
|
|
8917
8918
|
!q.has(ue) && (he.flowElements ?? []).length > 0 && u.push({ id: ue, type: he.$type, reason: "unreachable-process" });
|
|
8918
8919
|
} else
|
|
8919
8920
|
for (const q of i.values()) A(q);
|
|
8920
|
-
const N = [], k = [],
|
|
8921
|
+
const N = [], k = [], O = [], $ = [], ie = (q, ue) => !!q && !!ue && y.has(q) && y.has(ue);
|
|
8921
8922
|
for (const q of p) {
|
|
8922
8923
|
if (!ie(q.source, q.target)) {
|
|
8923
8924
|
u.push({ id: q.id, type: "bpmn:SequenceFlow", reason: "endpoint-outside-mvp" });
|
|
@@ -8944,7 +8945,7 @@ function u1(e) {
|
|
|
8944
8945
|
u.push({ id: q.id ?? "", type: q.type, reason: "endpoint-outside-mvp" });
|
|
8945
8946
|
continue;
|
|
8946
8947
|
}
|
|
8947
|
-
|
|
8948
|
+
O.push({ ...q.id ? { id: q.id } : {}, source: q.source, target: q.target });
|
|
8948
8949
|
}
|
|
8949
8950
|
const ge = new Map(c.map((q) => [q.id, q]));
|
|
8950
8951
|
for (const { owner: q, refs: ue } of m) {
|
|
@@ -8961,7 +8962,7 @@ function u1(e) {
|
|
|
8961
8962
|
...a.length ? { dataStores: a } : {},
|
|
8962
8963
|
...$.length ? { dataAssociations: $ } : {},
|
|
8963
8964
|
...s.length ? { annotations: s } : {},
|
|
8964
|
-
...
|
|
8965
|
+
...O.length ? { associations: O } : {},
|
|
8965
8966
|
...c.length ? { groups: c } : {}
|
|
8966
8967
|
}, hints: l, omitted: u };
|
|
8967
8968
|
}
|
|
@@ -9607,7 +9608,7 @@ function By(e, t) {
|
|
|
9607
9608
|
_ = Ls(_.slice());
|
|
9608
9609
|
else
|
|
9609
9610
|
throw s(`Cannot invoke "${_}". Expected a function!`);
|
|
9610
|
-
const C = (_.$inject || F1(_)).map((
|
|
9611
|
+
const C = (_.$inject || F1(_)).map((D) => Tu(E, D) ? E[D] : c(D));
|
|
9611
9612
|
return {
|
|
9612
9613
|
fn: _,
|
|
9613
9614
|
dependencies: C
|
|
@@ -9623,19 +9624,19 @@ function By(e, t) {
|
|
|
9623
9624
|
function p(_, E, P) {
|
|
9624
9625
|
const {
|
|
9625
9626
|
fn: C,
|
|
9626
|
-
dependencies:
|
|
9627
|
+
dependencies: D
|
|
9627
9628
|
} = u(_, P);
|
|
9628
|
-
return C.apply(E,
|
|
9629
|
+
return C.apply(E, D);
|
|
9629
9630
|
}
|
|
9630
9631
|
function f(_) {
|
|
9631
9632
|
return Ls((E) => _.get(E));
|
|
9632
9633
|
}
|
|
9633
9634
|
function d(_, E) {
|
|
9634
9635
|
if (E && E.length) {
|
|
9635
|
-
const P = /* @__PURE__ */ Object.create(null), C = /* @__PURE__ */ Object.create(null),
|
|
9636
|
-
let k,
|
|
9636
|
+
const P = /* @__PURE__ */ Object.create(null), C = /* @__PURE__ */ Object.create(null), D = [], A = [], N = [];
|
|
9637
|
+
let k, O, $, ie;
|
|
9637
9638
|
for (let ge in r)
|
|
9638
|
-
k = r[ge], E.indexOf(ge) !== -1 && (k[2] === "private" ? (
|
|
9639
|
+
k = r[ge], E.indexOf(ge) !== -1 && (k[2] === "private" ? (O = D.indexOf(k[3]), O === -1 ? ($ = k[3].createChild([], E), ie = f($), D.push(k[3]), A.push($), N.push(ie), P[ge] = [ie, ge, "private", $]) : P[ge] = [N[O], ge, "private", A[O]]) : P[ge] = [k[2], k[1]], C[ge] = !0), (k[2] === "factory" || k[2] === "type") && k[1].$scope && E.forEach((Ve) => {
|
|
9639
9640
|
k[1].$scope.indexOf(Ve) !== -1 && (P[ge] = [k[2], k[1]], C[Ve] = !0);
|
|
9640
9641
|
});
|
|
9641
9642
|
E.forEach((ge) => {
|
|
@@ -9663,11 +9664,11 @@ function By(e, t) {
|
|
|
9663
9664
|
function m(_) {
|
|
9664
9665
|
const E = _.__exports__;
|
|
9665
9666
|
if (E) {
|
|
9666
|
-
const P = _.__modules__, C = Object.keys(_).reduce((
|
|
9667
|
-
return A.get(
|
|
9667
|
+
const P = _.__modules__, C = Object.keys(_).reduce((O, $) => ($ !== "__exports__" && $ !== "__modules__" && $ !== "__init__" && $ !== "__depends__" && (O[$] = _[$]), O), /* @__PURE__ */ Object.create(null)), D = (P || []).concat(C), A = d(D), N = Ls(function(O) {
|
|
9668
|
+
return A.get(O);
|
|
9668
9669
|
});
|
|
9669
|
-
E.forEach(function(
|
|
9670
|
-
r[
|
|
9670
|
+
E.forEach(function(O) {
|
|
9671
|
+
r[O] = [N, O, "private", A];
|
|
9671
9672
|
});
|
|
9672
9673
|
const k = (_.__init__ || []).slice();
|
|
9673
9674
|
return k.unshift(function() {
|
|
@@ -9687,8 +9688,8 @@ function By(e, t) {
|
|
|
9687
9688
|
r[P] = C;
|
|
9688
9689
|
return;
|
|
9689
9690
|
}
|
|
9690
|
-
const
|
|
9691
|
-
r[P] = [g[
|
|
9691
|
+
const D = C[0], A = C[1];
|
|
9692
|
+
r[P] = [g[D], H1(D, A), D];
|
|
9692
9693
|
}), h(_, a);
|
|
9693
9694
|
}
|
|
9694
9695
|
function S(_, E) {
|
|
@@ -10122,11 +10123,11 @@ function lS(e, t, n) {
|
|
|
10122
10123
|
h = Kd(...t, d / c), l[d] = { x: h.x, y: h.y, t: d / c };
|
|
10123
10124
|
for (d = 0; d < s; d++)
|
|
10124
10125
|
for (g = 0; g < c; g++) {
|
|
10125
|
-
var m = u[d], S = u[d + 1], y = l[g], _ = l[g + 1], E = Xi(S.x - m.x) < 0.01 ? "y" : "x", P = Xi(_.x - y.x) < 0.01 ? "y" : "x", C = uS(m.x, m.y, S.x, S.y, y.x, y.y, _.x, _.y),
|
|
10126
|
+
var m = u[d], S = u[d + 1], y = l[g], _ = l[g + 1], E = Xi(S.x - m.x) < 0.01 ? "y" : "x", P = Xi(_.x - y.x) < 0.01 ? "y" : "x", C = uS(m.x, m.y, S.x, S.y, y.x, y.y, _.x, _.y), D;
|
|
10126
10127
|
if (C) {
|
|
10127
|
-
if (
|
|
10128
|
+
if (D = C.x.toFixed(9) + "#" + C.y.toFixed(9), p[D])
|
|
10128
10129
|
continue;
|
|
10129
|
-
p[
|
|
10130
|
+
p[D] = !0;
|
|
10130
10131
|
var A = m.t + Xi((C[E] - m[E]) / (S[E] - m[E])) * (S.t - m.t), N = y.t + Xi((C[P] - y[P]) / (_[P] - y[P])) * (_.t - y.t);
|
|
10131
10132
|
A >= 0 && A <= 1 && N >= 0 && N <= 1 && f.push({
|
|
10132
10133
|
x: C.x,
|
|
@@ -10241,21 +10242,21 @@ function Hy(e, t, n, i, r, o, a, s, c, u) {
|
|
|
10241
10242
|
return { x: B, y: z };
|
|
10242
10243
|
});
|
|
10243
10244
|
if (u)
|
|
10244
|
-
|
|
10245
|
+
D = u[0], A = u[1], P = u[2], C = u[3];
|
|
10245
10246
|
else {
|
|
10246
10247
|
d = g(e, t, -p), e = d.x, t = d.y, d = g(s, c, -p), s = d.x, c = d.y;
|
|
10247
10248
|
var h = (e - s) / 2, m = (t - c) / 2, S = h * h / (n * n) + m * m / (i * i);
|
|
10248
10249
|
S > 1 && (S = Mt.sqrt(S), n = S * n, i = S * i);
|
|
10249
|
-
var y = n * n, _ = i * i, E = (o == a ? -1 : 1) * Mt.sqrt(Xi((y * _ - y * m * m - _ * h * h) / (y * m * m + _ * h * h))), P = E * n * m / i + (e + s) / 2, C = E * -i * h / n + (t + c) / 2,
|
|
10250
|
-
|
|
10250
|
+
var y = n * n, _ = i * i, E = (o == a ? -1 : 1) * Mt.sqrt(Xi((y * _ - y * m * m - _ * h * h) / (y * m * m + _ * h * h))), P = E * n * m / i + (e + s) / 2, C = E * -i * h / n + (t + c) / 2, D = Mt.asin(((t - C) / i).toFixed(9)), A = Mt.asin(((c - C) / i).toFixed(9));
|
|
10251
|
+
D = e < P ? Gi - D : D, A = s < P ? Gi - A : A, D < 0 && (D = Gi * 2 + D), A < 0 && (A = Gi * 2 + A), a && D > A && (D = D - Gi * 2), !a && A > D && (A = A - Gi * 2);
|
|
10251
10252
|
}
|
|
10252
|
-
var N = A -
|
|
10253
|
+
var N = A - D;
|
|
10253
10254
|
if (Xi(N) > l) {
|
|
10254
|
-
var k = A,
|
|
10255
|
-
A =
|
|
10255
|
+
var k = A, O = s, $ = c;
|
|
10256
|
+
A = D + l * (a && A > D ? 1 : -1), s = P + n * Mt.cos(A), c = C + i * Mt.sin(A), f = Hy(s, c, n, i, r, 0, a, O, $, [A, k, P, C]);
|
|
10256
10257
|
}
|
|
10257
|
-
N = A -
|
|
10258
|
-
var ie = Mt.cos(
|
|
10258
|
+
N = A - D;
|
|
10259
|
+
var ie = Mt.cos(D), ge = Mt.sin(D), Ve = Mt.cos(A), q = Mt.sin(A), ue = Mt.tan(N / 4), he = 4 / 3 * n * ue, ae = 4 / 3 * i * ue, be = [e, t], ne = [e + he * ge, t - ae * ie], U = [s + he * q, c - ae * Ve], V = [s, c];
|
|
10259
10260
|
if (ne[0] = 2 * be[0] - ne[0], ne[1] = 2 * be[1] - ne[1], u)
|
|
10260
10261
|
return [ne, U, V].concat(f);
|
|
10261
10262
|
f = [ne, U, V].concat(f).join().split(",");
|
|
@@ -11446,14 +11447,14 @@ function FS(e) {
|
|
|
11446
11447
|
function C(U, V) {
|
|
11447
11448
|
u(U, V);
|
|
11448
11449
|
}
|
|
11449
|
-
function
|
|
11450
|
+
function D(U, V) {
|
|
11450
11451
|
u(U, V);
|
|
11451
11452
|
}
|
|
11452
11453
|
function A(U, V) {
|
|
11453
11454
|
L(U, function(Z) {
|
|
11454
11455
|
yn(Z, "bpmn:Association") ? n.push(function() {
|
|
11455
|
-
|
|
11456
|
-
}) :
|
|
11456
|
+
D(Z, V);
|
|
11457
|
+
}) : D(Z, V);
|
|
11457
11458
|
});
|
|
11458
11459
|
}
|
|
11459
11460
|
function N(U, V) {
|
|
@@ -11462,7 +11463,7 @@ function FS(e) {
|
|
|
11462
11463
|
var k = this.handleSubProcess = function(V, Z) {
|
|
11463
11464
|
ue(V, Z), A(V.artifacts, Z);
|
|
11464
11465
|
};
|
|
11465
|
-
function
|
|
11466
|
+
function O(U, V) {
|
|
11466
11467
|
var Z = u(U, V);
|
|
11467
11468
|
yn(U, "bpmn:SubProcess") && k(U, Z || V), yn(U, "bpmn:Activity") && N(U.ioSpecification, V), n.push(function() {
|
|
11468
11469
|
L(U.dataInputAssociations, r(E, V)), L(U.dataOutputAssociations, r(E, V));
|
|
@@ -11494,8 +11495,8 @@ function FS(e) {
|
|
|
11494
11495
|
yn(Z, "bpmn:SequenceFlow") ? n.push(function() {
|
|
11495
11496
|
$(Z, V);
|
|
11496
11497
|
}) : yn(Z, "bpmn:BoundaryEvent") ? n.unshift(function() {
|
|
11497
|
-
|
|
11498
|
-
}) : yn(Z, "bpmn:FlowNode") ?
|
|
11498
|
+
O(Z, V);
|
|
11499
|
+
}) : yn(Z, "bpmn:FlowNode") ? O(Z, V) : yn(Z, "bpmn:DataObject") || (yn(Z, "bpmn:DataStoreReference") || yn(Z, "bpmn:DataObjectReference") ? ie(Z, V) : l(
|
|
11499
11500
|
`unrecognized flowElement ${sn(Z)} in context ${sn(V && V.businessObject)}`,
|
|
11500
11501
|
{
|
|
11501
11502
|
element: Z,
|
|
@@ -12293,7 +12294,7 @@ function Ur(e, t, n, i, r, o, a) {
|
|
|
12293
12294
|
function C(T) {
|
|
12294
12295
|
return wt[T];
|
|
12295
12296
|
}
|
|
12296
|
-
function
|
|
12297
|
+
function D(T) {
|
|
12297
12298
|
return function(x, v, B) {
|
|
12298
12299
|
return C(T)(x, v, B);
|
|
12299
12300
|
};
|
|
@@ -12645,7 +12646,7 @@ function Ur(e, t, n, i, r, o, a) {
|
|
|
12645
12646
|
});
|
|
12646
12647
|
}
|
|
12647
12648
|
};
|
|
12648
|
-
function
|
|
12649
|
+
function O(T, x, v, B) {
|
|
12649
12650
|
k[T](x, v, B);
|
|
12650
12651
|
}
|
|
12651
12652
|
function $(T, x, v = [], B = {}) {
|
|
@@ -12681,7 +12682,7 @@ function Ur(e, t, n, i, r, o, a) {
|
|
|
12681
12682
|
}), De === void 0 && v.push("LoopMarker"), De === !1 && v.push("ParallelMarker"), De === !0 && v.push("SequentialMarker")), v.includes("CompensationMarker") && v.length === 1 && F(B, {
|
|
12682
12683
|
compensation: -8
|
|
12683
12684
|
}), L(v, function(Ke) {
|
|
12684
|
-
|
|
12685
|
+
O(Ke, T, x, B);
|
|
12685
12686
|
});
|
|
12686
12687
|
}
|
|
12687
12688
|
function ie(T, x, v = {}) {
|
|
@@ -12980,7 +12981,7 @@ function Ur(e, t, n, i, r, o, a) {
|
|
|
12980
12981
|
"stroke"
|
|
12981
12982
|
]), ae(T, x, v);
|
|
12982
12983
|
},
|
|
12983
|
-
"bpmn:DataObjectReference":
|
|
12984
|
+
"bpmn:DataObjectReference": D("bpmn:DataObject"),
|
|
12984
12985
|
"bpmn:DataOutput": function(T, x, v = {}) {
|
|
12985
12986
|
v = Ze(v, [
|
|
12986
12987
|
"fill",
|
|
@@ -13159,8 +13160,8 @@ function Ur(e, t, n, i, r, o, a) {
|
|
|
13159
13160
|
strokeWidth: 1.5
|
|
13160
13161
|
}), B && N(x, T, v), z;
|
|
13161
13162
|
},
|
|
13162
|
-
"bpmn:IntermediateCatchEvent":
|
|
13163
|
-
"bpmn:IntermediateThrowEvent":
|
|
13163
|
+
"bpmn:IntermediateCatchEvent": D("bpmn:IntermediateEvent"),
|
|
13164
|
+
"bpmn:IntermediateThrowEvent": D("bpmn:IntermediateEvent"),
|
|
13164
13165
|
"bpmn:Lane": function(T, x, v = {}) {
|
|
13165
13166
|
return v = Ze(v, [
|
|
13166
13167
|
"fill",
|
|
@@ -13290,7 +13291,7 @@ function Ur(e, t, n, i, r, o, a) {
|
|
|
13290
13291
|
Ns(it, 0, -At, 270);
|
|
13291
13292
|
}
|
|
13292
13293
|
}
|
|
13293
|
-
return me.get("participantMultiplicity") &&
|
|
13294
|
+
return me.get("participantMultiplicity") && O("ParticipantMultiplicityMarker", T, x, v), B;
|
|
13294
13295
|
},
|
|
13295
13296
|
"bpmn:ReceiveTask": function(T, x, v = {}) {
|
|
13296
13297
|
v = Ze(v, [
|
|
@@ -17594,8 +17595,8 @@ function ub(e, t, n) {
|
|
|
17594
17595
|
var i = this;
|
|
17595
17596
|
function r(A, N, k) {
|
|
17596
17597
|
if (!s(A, N)) {
|
|
17597
|
-
var
|
|
17598
|
-
k ? $ = t.getGraphics(k) : (
|
|
17598
|
+
var O, $, ie;
|
|
17599
|
+
k ? $ = t.getGraphics(k) : (O = N.delegateTarget || N.target, O && ($ = O, k = t.get($))), !(!$ || !k) && (ie = e.fire(A, {
|
|
17599
17600
|
element: k,
|
|
17600
17601
|
gfx: $,
|
|
17601
17602
|
originalEvent: N
|
|
@@ -17627,21 +17628,21 @@ function ub(e, t, n) {
|
|
|
17627
17628
|
"element.dblclick": gs
|
|
17628
17629
|
};
|
|
17629
17630
|
function l(A, N, k) {
|
|
17630
|
-
var
|
|
17631
|
-
if (!
|
|
17631
|
+
var O = c[A];
|
|
17632
|
+
if (!O)
|
|
17632
17633
|
throw new Error("unmapped DOM event name <" + A + ">");
|
|
17633
|
-
return r(
|
|
17634
|
+
return r(O, N, k);
|
|
17634
17635
|
}
|
|
17635
17636
|
var p = "svg, .djs-element";
|
|
17636
|
-
function f(A, N, k,
|
|
17637
|
+
function f(A, N, k, O) {
|
|
17637
17638
|
var $ = o[k] = function(ie) {
|
|
17638
17639
|
r(k, ie);
|
|
17639
17640
|
};
|
|
17640
|
-
|
|
17641
|
+
O && (u[k] = O), $.$delegate = Rn.bind(A, p, N, $);
|
|
17641
17642
|
}
|
|
17642
17643
|
function d(A, N, k) {
|
|
17643
|
-
var
|
|
17644
|
-
|
|
17644
|
+
var O = a(k);
|
|
17645
|
+
O && Rn.unbind(A, N, O.$delegate);
|
|
17645
17646
|
}
|
|
17646
17647
|
function g(A) {
|
|
17647
17648
|
L(c, function(N, k) {
|
|
@@ -17691,28 +17692,28 @@ function ub(e, t, n) {
|
|
|
17691
17692
|
throw new Error("invalid hit type <" + N + ">");
|
|
17692
17693
|
return fe(A, k), A;
|
|
17693
17694
|
}
|
|
17694
|
-
function
|
|
17695
|
+
function D(A, N) {
|
|
17695
17696
|
Ie(A, N);
|
|
17696
17697
|
}
|
|
17697
17698
|
this.removeHits = function(A) {
|
|
17698
17699
|
var N = ec(".djs-hit", A);
|
|
17699
17700
|
L(N, Wt);
|
|
17700
17701
|
}, this.createDefaultHit = function(A, N) {
|
|
17701
|
-
var k = A.waypoints,
|
|
17702
|
-
return k ? this.createWaypointsHit(N, k) : ($ =
|
|
17702
|
+
var k = A.waypoints, O = A.isFrame, $;
|
|
17703
|
+
return k ? this.createWaypointsHit(N, k) : ($ = O ? "stroke" : "all", this.createBoxHit(N, $, {
|
|
17703
17704
|
width: A.width,
|
|
17704
17705
|
height: A.height
|
|
17705
17706
|
}));
|
|
17706
17707
|
}, this.createWaypointsHit = function(A, N) {
|
|
17707
17708
|
var k = ba(N);
|
|
17708
|
-
return C(k, "stroke"),
|
|
17709
|
+
return C(k, "stroke"), D(A, k), k;
|
|
17709
17710
|
}, this.createBoxHit = function(A, N, k) {
|
|
17710
17711
|
k = F({
|
|
17711
17712
|
x: 0,
|
|
17712
17713
|
y: 0
|
|
17713
17714
|
}, k);
|
|
17714
|
-
var
|
|
17715
|
-
return C(
|
|
17715
|
+
var O = we("rect");
|
|
17716
|
+
return C(O, N), fe(O, k), D(A, O), O;
|
|
17716
17717
|
}, this.updateDefaultHit = function(A, N) {
|
|
17717
17718
|
var k = ot(".djs-hit", N);
|
|
17718
17719
|
if (k)
|
|
@@ -17937,7 +17938,7 @@ function mb(e, t, n, i) {
|
|
|
17937
17938
|
E.length && n.select(E);
|
|
17938
17939
|
}
|
|
17939
17940
|
function u(_, E) {
|
|
17940
|
-
var P = o.payload, C = o.displacement,
|
|
17941
|
+
var P = o.payload, C = o.displacement, D = o.globalStart, A = jr(_), N = Jn(A, D), k = o.localStart, O = a(A), $ = Jn(O, k);
|
|
17941
17942
|
if (!o.active && (E || xA(N) > o.threshold)) {
|
|
17942
17943
|
if (F(P, {
|
|
17943
17944
|
x: io(k.x + C.x),
|
|
@@ -17949,8 +17950,8 @@ function mb(e, t, n, i) {
|
|
|
17949
17950
|
o.active = !0, o.keepSelection || (P.previousSelection = n.get(), n.select(null)), o.cursor && $c(o.cursor), t.addMarker(t.getRootElement(), Uh);
|
|
17950
17951
|
}
|
|
17951
17952
|
Ou(_), o.active && (F(P, {
|
|
17952
|
-
x: io(
|
|
17953
|
-
y: io(
|
|
17953
|
+
x: io(O.x + C.x),
|
|
17954
|
+
y: io(O.y + C.y),
|
|
17954
17955
|
dx: io($.x),
|
|
17955
17956
|
dy: io($.y)
|
|
17956
17957
|
}, { originalEvent: _ }), s("move"));
|
|
@@ -17993,16 +17994,16 @@ function mb(e, t, n, i) {
|
|
|
17993
17994
|
}
|
|
17994
17995
|
function y(_, E, P, C) {
|
|
17995
17996
|
o && m(!1), typeof E == "string" && (C = P, P = E, E = null), C = F({}, r, C || {});
|
|
17996
|
-
var
|
|
17997
|
-
if (C.trapClick ?
|
|
17997
|
+
var D = C.data || {}, A, N, k, O, $;
|
|
17998
|
+
if (C.trapClick ? O = f : O = l, _ ? (A = Ro(_) || _, N = jr(_), Ou(_), A.type === "dragstart" && Mr(A)) : (A = null, N = { x: 0, y: 0 }), k = a(N), E || (E = k), $ = _A(A), o = F({
|
|
17998
17999
|
prefix: P,
|
|
17999
|
-
data:
|
|
18000
|
+
data: D,
|
|
18000
18001
|
payload: {},
|
|
18001
18002
|
globalStart: N,
|
|
18002
18003
|
displacement: Jn(E, k),
|
|
18003
18004
|
localStart: k,
|
|
18004
18005
|
isTouch: $
|
|
18005
|
-
}, C), C.manual || ($ ? (Oe.bind(document, "touchstart", d, !0), Oe.bind(document, "touchcancel", m, !0), Oe.bind(document, "touchmove", u, !0), Oe.bind(document, "touchend", l, !0)) : (Oe.bind(document, "mousemove", u), Oe.bind(document, "dragstart", Mr), Oe.bind(document, "selectstart", Mr), Oe.bind(document, "mousedown",
|
|
18006
|
+
}, C), C.manual || ($ ? (Oe.bind(document, "touchstart", d, !0), Oe.bind(document, "touchcancel", m, !0), Oe.bind(document, "touchmove", u, !0), Oe.bind(document, "touchend", l, !0)) : (Oe.bind(document, "mousemove", u), Oe.bind(document, "dragstart", Mr), Oe.bind(document, "selectstart", Mr), Oe.bind(document, "mousedown", O, !0), Oe.bind(document, "mouseup", O, !0)), Oe.bind(document, "keyup", p), e.on("element.hover", g), e.on("element.out", h)), s("init") === !1)
|
|
18006
18007
|
return m(), !1;
|
|
18007
18008
|
C.autoActivate && u(_, !0);
|
|
18008
18009
|
}
|
|
@@ -19187,12 +19188,12 @@ function XA(e, t, n, i, r) {
|
|
|
19187
19188
|
return !st($) && !je($) && !l.has($) && !p.has($);
|
|
19188
19189
|
}), S = He(g, function($) {
|
|
19189
19190
|
return !st($) && !je($) && l.has($);
|
|
19190
|
-
}), y, _, E, P = [], C = [],
|
|
19191
|
+
}), y, _, E, P = [], C = [], D, A, N, k;
|
|
19191
19192
|
m.length && (_ = rm(Se(Lt(m))), y = i - h[qi[n]] + _[qi[n]], n === "n" ? s.bottom = u = ke(u) ? Math.min(u, y) : y : n === "w" ? s.right = u = ke(u) ? Math.min(u, y) : y : n === "s" ? s.top = c = ke(c) ? Math.max(c, y) : y : n === "e" && (s.left = c = ke(c) ? Math.max(c, y) : y)), S.length && (E = rm(Se(Lt(S))), y = i - E[qi[vs[n]]] + h[qi[vs[n]]], n === "n" ? s.bottom = u = ke(u) ? Math.min(u, y) : y : n === "w" ? s.right = u = ke(u) ? Math.min(u, y) : y : n === "s" ? s.top = c = ke(c) ? Math.max(c, y) : y : n === "e" && (s.left = c = ke(c) ? Math.max(c, y) : y)), d && d.length && (d.forEach(function($) {
|
|
19192
19193
|
l.has($) ? P.push($) : C.push($);
|
|
19193
|
-
}), P.length && (
|
|
19194
|
-
var
|
|
19195
|
-
|
|
19194
|
+
}), P.length && (D = Se(Lt(P.map(Pe))), A = h[qi[vs[n]]] - (D[qi[vs[n]]] - i)), C.length && (N = Se(Lt(C.map(Pe))), k = N[qi[n]] - (h[qi[n]] - i)), n === "n" ? (y = Math.min(A || 1 / 0, k || 1 / 0), s.bottom = u = ke(u) ? Math.min(u, y) : y) : n === "w" ? (y = Math.min(A || 1 / 0, k || 1 / 0), s.right = u = ke(u) ? Math.min(u, y) : y) : n === "s" ? (y = Math.max(A || -1 / 0, k || -1 / 0), s.top = c = ke(c) ? Math.max(c, y) : y) : n === "e" && (y = Math.max(A || -1 / 0, k || -1 / 0), s.left = c = ke(c) ? Math.max(c, y) : y));
|
|
19195
|
+
var O = r && r[f.id];
|
|
19196
|
+
O && (n === "n" ? (y = i + f[wi[t]] - O[wi[t]], s.bottom = u = ke(u) ? Math.min(u, y) : y) : n === "w" ? (y = i + f[wi[t]] - O[wi[t]], s.right = u = ke(u) ? Math.min(u, y) : y) : n === "s" ? (y = i - f[wi[t]] + O[wi[t]], s.top = c = ke(c) ? Math.max(c, y) : y) : n === "e" && (y = i - f[wi[t]] + O[wi[t]], s.left = c = ke(c) ? Math.max(c, y) : y));
|
|
19196
19197
|
}), s;
|
|
19197
19198
|
}
|
|
19198
19199
|
}
|
|
@@ -19236,8 +19237,8 @@ function Sb(e, t, n, i, r) {
|
|
|
19236
19237
|
});
|
|
19237
19238
|
var h = /* @__PURE__ */ new Set(), m = s.movingConnections = [];
|
|
19238
19239
|
g.forEach(function(C) {
|
|
19239
|
-
L(C.outgoing, function(
|
|
19240
|
-
h.has(
|
|
19240
|
+
L(C.outgoing, function(D) {
|
|
19241
|
+
h.has(D) || !st(D) || !g.has(D.target) || (h.add(D), m.push(D));
|
|
19241
19242
|
});
|
|
19242
19243
|
}), o(m, d), s.dragGroup = d;
|
|
19243
19244
|
}
|
|
@@ -19246,9 +19247,9 @@ function Sb(e, t, n, i, r) {
|
|
|
19246
19247
|
fe(S, i.cls("djs-frame-group", ["no-events"])), Ie(n.getActiveLayer(), S);
|
|
19247
19248
|
var y = [];
|
|
19248
19249
|
L(p, function(C) {
|
|
19249
|
-
var
|
|
19250
|
+
var D = r.addFrame(C, S), A = D.getBBox();
|
|
19250
19251
|
y.push({
|
|
19251
|
-
element:
|
|
19252
|
+
element: D,
|
|
19252
19253
|
initialBounds: A
|
|
19253
19254
|
}), n.addMarker(C, am);
|
|
19254
19255
|
}), s.frameGroup = S, s.frames = y;
|
|
@@ -19260,15 +19261,15 @@ function Sb(e, t, n, i, r) {
|
|
|
19260
19261
|
fe(c, { d: _[u] });
|
|
19261
19262
|
var E = { x: "y", y: "x" }, P = { x: a.dx, y: a.dy };
|
|
19262
19263
|
P[E[s.axis]] = 0, en(s.dragGroup, P.x, P.y), L(s.frames, function(C) {
|
|
19263
|
-
var
|
|
19264
|
-
s.direction === "e" ? fe(
|
|
19264
|
+
var D = C.element, A = C.initialBounds, N, k;
|
|
19265
|
+
s.direction === "e" ? fe(D, {
|
|
19265
19266
|
width: _s(A.width + P.x, 5)
|
|
19266
|
-
}) : (N = _s(A.width - P.x, 5), fe(
|
|
19267
|
+
}) : (N = _s(A.width - P.x, 5), fe(D, {
|
|
19267
19268
|
width: N,
|
|
19268
19269
|
x: A.x + A.width - N
|
|
19269
|
-
})), s.direction === "s" ? fe(
|
|
19270
|
+
})), s.direction === "s" ? fe(D, {
|
|
19270
19271
|
height: _s(A.height + P.y, 5)
|
|
19271
|
-
}) : (k = _s(A.height - P.y, 5), fe(
|
|
19272
|
+
}) : (k = _s(A.height - P.y, 5), fe(D, {
|
|
19272
19273
|
height: k,
|
|
19273
19274
|
y: A.y + A.height - k
|
|
19274
19275
|
}));
|
|
@@ -21346,8 +21347,8 @@ $a.prototype._computeUpdates = function(e, t) {
|
|
|
21346
21347
|
var E = $u(y), P = f.get(E) || [], C = lo(
|
|
21347
21348
|
P,
|
|
21348
21349
|
y
|
|
21349
|
-
),
|
|
21350
|
-
|
|
21350
|
+
), D = Object.keys(C).length > 0;
|
|
21351
|
+
D && (_ = l(y));
|
|
21351
21352
|
}
|
|
21352
21353
|
s(y, _, !0);
|
|
21353
21354
|
}), t.forEach(function(y) {
|
|
@@ -21360,19 +21361,19 @@ $a.prototype._computeUpdates = function(e, t) {
|
|
|
21360
21361
|
var E = y.present;
|
|
21361
21362
|
if (E) {
|
|
21362
21363
|
var P = m.get(E.root) || [], C = lo(P, _);
|
|
21363
|
-
P.forEach(function(
|
|
21364
|
-
if (C[
|
|
21365
|
-
var A = h.get(
|
|
21366
|
-
A || (A = /* @__PURE__ */ new Set(), h.set(
|
|
21364
|
+
P.forEach(function(D) {
|
|
21365
|
+
if (C[D.id]) {
|
|
21366
|
+
var A = h.get(D);
|
|
21367
|
+
A || (A = /* @__PURE__ */ new Set(), h.set(D, A)), A.add(E.categoryValue);
|
|
21367
21368
|
}
|
|
21368
21369
|
});
|
|
21369
21370
|
}
|
|
21370
21371
|
});
|
|
21371
21372
|
var S = d.reduce(function(y, _) {
|
|
21372
|
-
var E = r.get(_), P = E.get(ff), C = new Set(P),
|
|
21373
|
+
var E = r.get(_), P = E.get(ff), C = new Set(P), D = h.get(_) || /* @__PURE__ */ new Set(), A = Array.from(D).filter(function(k) {
|
|
21373
21374
|
return !C.has(k);
|
|
21374
21375
|
}), N = P.filter(function(k) {
|
|
21375
|
-
return g.has(k) && !
|
|
21376
|
+
return g.has(k) && !D.has(k);
|
|
21376
21377
|
});
|
|
21377
21378
|
return (A.length || N.length) && y.push({
|
|
21378
21379
|
businessObject: E,
|
|
@@ -23717,7 +23718,7 @@ function Lm(e) {
|
|
|
23717
23718
|
};
|
|
23718
23719
|
}
|
|
23719
23720
|
function Rf(e, t, n, i, r, o, a, s, c, u) {
|
|
23720
|
-
var l, p, f, d, g, h, m, S, y, _, E, P, C,
|
|
23721
|
+
var l, p, f, d, g, h, m, S, y, _, E, P, C, D, A, N, k = t.type;
|
|
23721
23722
|
if (t.constructor !== void 0) return null;
|
|
23722
23723
|
128 & n.__u && (c = !!(32 & n.__u), o = [s = t.__e = n.__e]), (l = gt.__b) && l(t);
|
|
23723
23724
|
e: if (typeof k == "function") {
|
|
@@ -23726,8 +23727,8 @@ function Rf(e, t, n, i, r, o, a, s, c, u) {
|
|
|
23726
23727
|
if (y = t.props, _ = k.prototype && k.prototype.render, E = (l = k.contextType) && i[l.__c], P = l ? E ? E.props.value : l.__ : i, n.__c ? S = (f = t.__c = n.__c).__ = f.__E : (_ ? t.__c = f = new k(y, P) : (t.__c = f = new Us(y, P), f.constructor = k, f.render = y2), E && E.sub(f), f.state || (f.state = {}), f.__n = i, d = f.__d = !0, f.__h = [], f._sb = []), _ && f.__s == null && (f.__s = f.state), _ && k.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = Ri({}, f.__s)), Ri(f.__s, k.getDerivedStateFromProps(y, f.__s))), g = f.props, h = f.state, f.__v = t, d) _ && k.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), _ && f.componentDidMount != null && f.__h.push(f.componentDidMount);
|
|
23727
23728
|
else {
|
|
23728
23729
|
if (_ && k.getDerivedStateFromProps == null && y !== g && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, P), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && f.shouldComponentUpdate(y, f.__s, P) === !1) {
|
|
23729
|
-
t.__v != n.__v && (f.props = y, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(
|
|
23730
|
-
|
|
23730
|
+
t.__v != n.__v && (f.props = y, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(O) {
|
|
23731
|
+
O && (O.__ = t);
|
|
23731
23732
|
}), lc.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && a.push(f), s = Fr(n);
|
|
23732
23733
|
break e;
|
|
23733
23734
|
}
|
|
@@ -23735,19 +23736,19 @@ function Rf(e, t, n, i, r, o, a, s, c, u) {
|
|
|
23735
23736
|
f.componentDidUpdate(g, h, m);
|
|
23736
23737
|
});
|
|
23737
23738
|
}
|
|
23738
|
-
if (f.context = P, f.props = y, f.__P = e, f.__e = !1, C = gt.__r,
|
|
23739
|
+
if (f.context = P, f.props = y, f.__P = e, f.__e = !1, C = gt.__r, D = 0, _) f.state = f.__s, f.__d = !1, C && C(t), l = f.render(f.props, f.state, f.context), lc.push.apply(f.__h, f._sb), f._sb = [];
|
|
23739
23740
|
else do
|
|
23740
23741
|
f.__d = !1, C && C(t), l = f.render(f.props, f.state, f.context), f.state = f.__s;
|
|
23741
|
-
while (f.__d && ++
|
|
23742
|
+
while (f.__d && ++D < 25);
|
|
23742
23743
|
f.state = f.__s, f.getChildContext != null && (i = Ri(Ri({}, i), f.getChildContext())), _ && !d && f.getSnapshotBeforeUpdate != null && (m = f.getSnapshotBeforeUpdate(g, h)), A = l != null && l.type === au && l.key == null ? b_(l.props.children) : l, s = m_(e, ou(A) ? A : [A], t, n, i, r, o, a, s, c, u), f.base = t.__e, t.__u &= -161, f.__h.length && a.push(f), S && (f.__E = f.__ = null);
|
|
23743
|
-
} catch (
|
|
23744
|
+
} catch (O) {
|
|
23744
23745
|
if (a.length = p, t.__v = null, c || o != null) {
|
|
23745
|
-
if (
|
|
23746
|
+
if (O.then) {
|
|
23746
23747
|
for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
23747
23748
|
o != null && (o[o.indexOf(s)] = null), t.__e = s;
|
|
23748
23749
|
} else if (o != null) for (N = o.length; N--; ) Sf(o[N]);
|
|
23749
23750
|
} else t.__e = n.__e;
|
|
23750
|
-
t.__k == null && (t.__k = n.__k || []),
|
|
23751
|
+
t.__k == null && (t.__k = n.__k || []), O.then || y_(t), gt.__e(O, t, n);
|
|
23751
23752
|
}
|
|
23752
23753
|
} else o == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = g2(n.__e, t, n, i, r, o, a, c, u);
|
|
23753
23754
|
return (l = gt.diffed) && l(t), 128 & t.__u ? void 0 : s;
|
|
@@ -24295,17 +24296,17 @@ function M2(e) {
|
|
|
24295
24296
|
S,
|
|
24296
24297
|
{ keys: ["label", "search", "description"] }
|
|
24297
24298
|
).map(({ item: V }) => V) : U.filter(({ rank: V = 0 }) => V >= 0) : U;
|
|
24298
|
-
}, [P, _, E, S, p, h, f]),
|
|
24299
|
+
}, [P, _, E, S, p, h, f]), D = Ei(() => _ ? C.length ? [{ id: "default", entries: C }] : [] : L2(C), [C, _]), [A, N] = Vu(C[0]), k = fc(null), O = fc(!1), $ = Ei(() => T2.next(), []), ie = `${$}-results`, ge = A && C_($, A);
|
|
24299
24300
|
qs(() => {
|
|
24300
24301
|
const U = k.current;
|
|
24301
24302
|
U && C.includes(U) ? N(U) : N(C[0]), k.current = null;
|
|
24302
24303
|
}, [C]);
|
|
24303
24304
|
const Ve = Uo((U) => {
|
|
24304
|
-
const V = O2(
|
|
24305
|
+
const V = O2(D);
|
|
24305
24306
|
let $e = V.indexOf(A) + U;
|
|
24306
|
-
$e < 0 && ($e = V.length - 1), $e >= V.length && ($e = 0),
|
|
24307
|
-
}, [
|
|
24308
|
-
U > 0 && A && A.entries && (
|
|
24307
|
+
$e < 0 && ($e = V.length - 1), $e >= V.length && ($e = 0), O.current = !0, N(V[$e]);
|
|
24308
|
+
}, [D, A]), q = Uo((U) => {
|
|
24309
|
+
U > 0 && A && A.entries && (O.current = !0, m((V) => [...V, A])), U < 0 && h.length > 0 && (O.current = !0, k.current = h[h.length + U], m((V) => V.slice(0, U)));
|
|
24309
24310
|
}, [A, h]), ue = Uo((U, V, Z) => {
|
|
24310
24311
|
if (!(!V || V.disabled))
|
|
24311
24312
|
return V.entries ? (U.preventDefault(), q(1)) : n(U, V, Z);
|
|
@@ -24388,10 +24389,10 @@ function M2(e) {
|
|
|
24388
24389
|
`}
|
|
24389
24390
|
|
|
24390
24391
|
<${P2}
|
|
24391
|
-
groupedEntries=${
|
|
24392
|
+
groupedEntries=${D}
|
|
24392
24393
|
selectedEntry=${A}
|
|
24393
24394
|
setSelectedEntry=${N}
|
|
24394
|
-
keyboardSelection=${
|
|
24395
|
+
keyboardSelection=${O}
|
|
24395
24396
|
onAction=${ue}
|
|
24396
24397
|
idPrefix=${$}
|
|
24397
24398
|
id=${ie}
|
|
@@ -25322,22 +25323,22 @@ function tk(e, t) {
|
|
|
25322
25323
|
}
|
|
25323
25324
|
function I_(e, t, n, i, r) {
|
|
25324
25325
|
function o(_, E, P) {
|
|
25325
|
-
var C = _.index,
|
|
25326
|
-
return C <= 0 || _.bendpoint ? !1 : (A = E[C - 1], N = E[C], k = ul(A, N),
|
|
25326
|
+
var C = _.index, D = _.point, A, N, k, O, $, ie;
|
|
25327
|
+
return C <= 0 || _.bendpoint ? !1 : (A = E[C - 1], N = E[C], k = ul(A, N), O = Si(A, N), $ = Math.abs(D.x - k.x), ie = Math.abs(D.y - k.y), O && $ <= P && ie <= P);
|
|
25327
25328
|
}
|
|
25328
25329
|
function a(_, E) {
|
|
25329
|
-
var P = _.waypoints, C,
|
|
25330
|
+
var P = _.waypoints, C, D, A, N;
|
|
25330
25331
|
return E.index <= 0 || E.bendpoint || (C = {
|
|
25331
25332
|
start: P[E.index - 1],
|
|
25332
25333
|
end: P[E.index]
|
|
25333
|
-
},
|
|
25334
|
+
}, D = Si(C.start, C.end), !D) ? null : (D === "h" ? A = C.end.x - C.start.x : A = C.end.y - C.start.y, N = kl(A) / 2, N);
|
|
25334
25335
|
}
|
|
25335
25336
|
function s(_, E) {
|
|
25336
|
-
var P = E.waypoints, C = Tl(t, P, _),
|
|
25337
|
+
var P = E.waypoints, C = Tl(t, P, _), D;
|
|
25337
25338
|
if (C) {
|
|
25338
|
-
|
|
25339
|
+
D = a(E, C);
|
|
25339
25340
|
var A;
|
|
25340
|
-
if (o(C, P,
|
|
25341
|
+
if (o(C, P, D) ? A = r.start(_, E, C.index) : A = i.start(_, E, C.index, !C.bendpoint), A !== !1)
|
|
25341
25342
|
return !0;
|
|
25342
25343
|
}
|
|
25343
25344
|
}
|
|
@@ -25358,13 +25359,13 @@ function I_(e, t, n, i, r) {
|
|
|
25358
25359
|
}
|
|
25359
25360
|
function p(_, E) {
|
|
25360
25361
|
E.waypoints.forEach(function(P, C) {
|
|
25361
|
-
var
|
|
25362
|
-
Ie(_,
|
|
25362
|
+
var D = Ml(_);
|
|
25363
|
+
Ie(_, D), en(D, P.x, P.y);
|
|
25363
25364
|
}), Ml(_, "floating");
|
|
25364
25365
|
}
|
|
25365
25366
|
function f(_, E) {
|
|
25366
|
-
for (var P = E.waypoints, C,
|
|
25367
|
-
C = P[N - 1],
|
|
25367
|
+
for (var P = E.waypoints, C, D, A, N = 1; N < P.length; N++)
|
|
25368
|
+
C = P[N - 1], D = P[N], Si(C, D) && (A = L_(_, C, D), fe(A, { "data-segment-idx": N }), c(A, "mousemove", E));
|
|
25368
25369
|
}
|
|
25369
25370
|
function d(_) {
|
|
25370
25371
|
L(ec("." + O_, _), function(E) {
|
|
@@ -25389,11 +25390,11 @@ function I_(e, t, n, i, r) {
|
|
|
25389
25390
|
P && (en(P, C.x, C.y), qe(P).add("positioned"));
|
|
25390
25391
|
}
|
|
25391
25392
|
function y(_, E, P) {
|
|
25392
|
-
var C = l(E.index, _),
|
|
25393
|
+
var C = l(E.index, _), D = P[E.index - 1], A = P[E.index], N = E.point, k = ul(D, A), O = Si(D, A), $, ie;
|
|
25393
25394
|
C && ($ = nk(C), ie = {
|
|
25394
25395
|
x: N.x - k.x,
|
|
25395
25396
|
y: N.y - k.y
|
|
25396
|
-
},
|
|
25397
|
+
}, O === "v" && (ie = {
|
|
25397
25398
|
x: ie.y,
|
|
25398
25399
|
y: ie.x
|
|
25399
25400
|
}), en($, ie.x, ie.y));
|
|
@@ -25407,11 +25408,11 @@ function I_(e, t, n, i, r) {
|
|
|
25407
25408
|
var E = _.element, P;
|
|
25408
25409
|
E.waypoints && (P = h(E), _.add ? qe(P).add(_.marker) : qe(P).remove(_.marker));
|
|
25409
25410
|
}), e.on("element.mousemove", function(_) {
|
|
25410
|
-
var E = _.element, P = E.waypoints, C,
|
|
25411
|
+
var E = _.element, P = E.waypoints, C, D;
|
|
25411
25412
|
if (P) {
|
|
25412
|
-
if (C = u(E, !0),
|
|
25413
|
+
if (C = u(E, !0), D = Tl(t, P, _.originalEvent), !D)
|
|
25413
25414
|
return;
|
|
25414
|
-
S(C,
|
|
25415
|
+
S(C, D), D.bendpoint || y(C, D, P);
|
|
25415
25416
|
}
|
|
25416
25417
|
}), e.on("element.mousedown", function(_) {
|
|
25417
25418
|
if (fr(_)) {
|
|
@@ -25603,9 +25604,9 @@ function ag(e, t, n) {
|
|
|
25603
25604
|
function $_(e, t, n, i, r, o) {
|
|
25604
25605
|
var a = e.get("connectionDocking", !1);
|
|
25605
25606
|
this.start = function(p, f, d) {
|
|
25606
|
-
var g, h = n.getGraphics(f), m = d - 1, S = d, y = f.waypoints, _ = y[m], E = y[S], P = Tl(n, y, p), C,
|
|
25607
|
+
var g, h = n.getGraphics(f), m = d - 1, S = d, y = f.waypoints, _ = y[m], E = y[S], P = Tl(n, y, p), C, D, A;
|
|
25607
25608
|
if (C = Si(_, E), !!C)
|
|
25608
|
-
return
|
|
25609
|
+
return D = C === "v" ? "x" : "y", m === 0 && (_ = ag(_, f.source, D)), S === y.length - 1 && (E = ag(E, f.target, D)), P ? A = P.point : A = {
|
|
25609
25610
|
x: (_.x + E.x) / 2,
|
|
25610
25611
|
y: (_.y + E.y) / 2
|
|
25611
25612
|
}, g = {
|
|
@@ -25614,10 +25615,10 @@ function $_(e, t, n, i, r, o) {
|
|
|
25614
25615
|
segmentEndIndex: S,
|
|
25615
25616
|
segmentStart: _,
|
|
25616
25617
|
segmentEnd: E,
|
|
25617
|
-
axis:
|
|
25618
|
+
axis: D,
|
|
25618
25619
|
dragPosition: A
|
|
25619
25620
|
}, i.init(p, A, "connectionSegment.move", {
|
|
25620
|
-
cursor:
|
|
25621
|
+
cursor: D === "x" ? "resize-ew" : "resize-ns",
|
|
25621
25622
|
data: {
|
|
25622
25623
|
connection: f,
|
|
25623
25624
|
connectionGfx: h,
|
|
@@ -25651,10 +25652,10 @@ function $_(e, t, n, i, r, o) {
|
|
|
25651
25652
|
var f = p.context, d = p.connection, g = n.getLayer("overlays");
|
|
25652
25653
|
f.originalWaypoints = d.waypoints.slice(), f.draggerGfx = L_(g, f.segmentStart, f.segmentEnd), qe(f.draggerGfx).add("djs-dragging"), n.addMarker(d, rg);
|
|
25653
25654
|
}), t.on("connectionSegment.move.move", function(p) {
|
|
25654
|
-
var f = p.context, d = f.connection, g = f.segmentStartIndex, h = f.segmentEndIndex, m = f.segmentStart, S = f.segmentEnd, y = f.axis, _ = f.originalWaypoints.slice(), E = og(m, y, p["d" + y]), P = og(S, y, p["d" + y]), C = _.length,
|
|
25655
|
+
var f = p.context, d = f.connection, g = f.segmentStartIndex, h = f.segmentEndIndex, m = f.segmentStart, S = f.segmentEnd, y = f.axis, _ = f.originalWaypoints.slice(), E = og(m, y, p["d" + y]), P = og(S, y, p["d" + y]), C = _.length, D = 0;
|
|
25655
25656
|
_[g] = E, _[h] = P;
|
|
25656
25657
|
var A, N;
|
|
25657
|
-
g < 2 && (A = tn(d.source, E), g === 1 ? A === "intersect" && (_.shift(), _[0] = E,
|
|
25658
|
+
g < 2 && (A = tn(d.source, E), g === 1 ? A === "intersect" && (_.shift(), _[0] = E, D--) : A !== "intersect" && (_.unshift(m), D++)), h > C - 3 && (N = tn(d.target, P), h === C - 2 ? N === "intersect" && (_.pop(), _[_.length - 1] = P) : N !== "intersect" && _.push(S)), f.newWaypoints = d.waypoints = s(d, _), u(f, D, p), f.newSegmentStartIndex = g + D, c(p);
|
|
25658
25659
|
}), t.on("connectionSegment.move.hover", function(p) {
|
|
25659
25660
|
p.context.hover = p.hover, n.addMarker(p.hover, ig);
|
|
25660
25661
|
}), t.on([
|
|
@@ -27497,24 +27498,24 @@ Ha.prototype.getContextPadEntries = function(e) {
|
|
|
27497
27498
|
};
|
|
27498
27499
|
}
|
|
27499
27500
|
function h(_) {
|
|
27500
|
-
var E = 5, P = t.getPad(_).html, C = P.getBoundingClientRect(),
|
|
27501
|
+
var E = 5, P = t.getPad(_).html, C = P.getBoundingClientRect(), D = {
|
|
27501
27502
|
x: C.left,
|
|
27502
27503
|
y: C.bottom + E
|
|
27503
27504
|
};
|
|
27504
|
-
return
|
|
27505
|
+
return D;
|
|
27505
27506
|
}
|
|
27506
27507
|
function m(_, E, P, C) {
|
|
27507
|
-
function
|
|
27508
|
+
function D(k, O) {
|
|
27508
27509
|
var $ = i.createShape(F({ type: _ }, C));
|
|
27509
27510
|
o.start(k, $, {
|
|
27510
|
-
source:
|
|
27511
|
+
source: O
|
|
27511
27512
|
});
|
|
27512
27513
|
}
|
|
27513
|
-
var A = s ? function(k,
|
|
27514
|
+
var A = s ? function(k, O) {
|
|
27514
27515
|
var $ = i.createShape(F({ type: _ }, C));
|
|
27515
|
-
s.append(
|
|
27516
|
-
} :
|
|
27517
|
-
return u.create(
|
|
27516
|
+
s.append(O, $);
|
|
27517
|
+
} : D, N = s ? function(k, O) {
|
|
27518
|
+
return u.create(O, _, C), () => {
|
|
27518
27519
|
u.cleanUp();
|
|
27519
27520
|
};
|
|
27520
27521
|
} : null;
|
|
@@ -27523,7 +27524,7 @@ Ha.prototype.getContextPadEntries = function(e) {
|
|
|
27523
27524
|
className: E,
|
|
27524
27525
|
title: P,
|
|
27525
27526
|
action: {
|
|
27526
|
-
dragstart:
|
|
27527
|
+
dragstart: D,
|
|
27527
27528
|
click: A,
|
|
27528
27529
|
hover: N
|
|
27529
27530
|
}
|
|
@@ -28832,11 +28833,11 @@ Wa.prototype.getEditingBBox = function(e) {
|
|
|
28832
28833
|
y: E.y,
|
|
28833
28834
|
width: 0,
|
|
28834
28835
|
height: 0
|
|
28835
|
-
}), C = u,
|
|
28836
|
+
}), C = u, D = $r.width * a + 2 * y;
|
|
28836
28837
|
F(o, {
|
|
28837
|
-
width:
|
|
28838
|
+
width: D,
|
|
28838
28839
|
height: C + 2 * y,
|
|
28839
|
-
x: P.x -
|
|
28840
|
+
x: P.x - D / 2,
|
|
28840
28841
|
y: P.y - C / 2 - y
|
|
28841
28842
|
}), F(d, {
|
|
28842
28843
|
fontSize: u + "px",
|