lyflowchart 1.0.73 → 1.0.74

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/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defineComponent as oi, ref as Ne, reactive as Dl, watch as wr, onMounted as go, resolveComponent as we, openBlock as Qe, createBlock as xt, withCtx as ae, createVNode as oe, createTextVNode as nt, createCommentVNode as Fn, inject as Wh, computed as uo, createElementBlock as bn, createElementVNode as St, withDirectives as Uh, vShow as Gh, Fragment as fa, renderList as da, withKeys as ZC, toDisplayString as so, provide as QC, nextTick as Jd, normalizeClass as JC, onBeforeUnmount as eT } from "vue";
1
+ import { defineComponent as oi, ref as Ne, reactive as Dl, watch as wr, onMounted as go, resolveComponent as we, openBlock as Qe, createBlock as xt, withCtx as ae, createVNode as oe, createTextVNode as nt, createCommentVNode as Fn, inject as Wh, computed as uo, createElementBlock as bn, createElementVNode as St, withDirectives as Uh, vShow as Gh, Fragment as fa, renderList as da, withKeys as ZC, toDisplayString as so, provide as QC, nextTick as Qc, normalizeClass as JC, onBeforeUnmount as eT } from "vue";
2
2
  import { SearchOutlined as Vh, SyncOutlined as KE, RedoOutlined as tT, UserOutlined as nT, TeamOutlined as rT, CodeOutlined as iT, PlusOutlined as oT, QuestionCircleOutlined as aT, UploadOutlined as sT, DragOutlined as lT, ZoomInOutlined as uT, ZoomOutOutlined as cT } from "@ant-design/icons-vue";
3
3
  import { Modal as pT, message as fT } from "ant-design-vue";
4
4
  var $c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function ms(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var Cd = { exports: {} }, Iy;
8
+ var Td = { exports: {} }, Iy;
9
9
  function qE() {
10
10
  return Iy || (Iy = 1, function(e, t) {
11
11
  (function(n, r) {
@@ -217,7 +217,7 @@ function qE() {
217
217
  i(g) ? f = g : s = g + p;
218
218
  }
219
219
  }
220
- function Df(i, s, f, p) {
220
+ function kf(i, s, f, p) {
221
221
  if (!i)
222
222
  return p(s, f, "ltr", 0);
223
223
  for (var h = !1, g = 0; g < i.length; ++g) {
@@ -238,7 +238,7 @@ function qE() {
238
238
  }
239
239
  return p ?? Bo;
240
240
  }
241
- var kf = function() {
241
+ var Mf = function() {
242
242
  var i = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN", s = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";
243
243
  function f(A) {
244
244
  return A <= 247 ? i.charAt(A) : 1424 <= A && A <= 1524 ? "R" : 1536 <= A && A <= 1785 ? s.charAt(A - 1536) : 1774 <= A && A <= 2220 ? "r" : 8192 <= A && A <= 8203 ? "w" : A == 8204 ? "b" : "L";
@@ -293,10 +293,10 @@ function qE() {
293
293
  }
294
294
  for (var Tn = [], Yr, cn = 0; cn < Y; )
295
295
  if (E.test(V[cn])) {
296
- var wd = cn;
296
+ var Sd = cn;
297
297
  for (++cn; cn < Y && E.test(V[cn]); ++cn)
298
298
  ;
299
- Tn.push(new S(0, wd, cn));
299
+ Tn.push(new S(0, Sd, cn));
300
300
  } else {
301
301
  var _i = cn, na = Tn.length, ra = B == "rtl" ? 1 : 0;
302
302
  for (++cn; cn < Y && V[cn] != "L"; ++cn)
@@ -317,7 +317,7 @@ function qE() {
317
317
  }();
318
318
  function kr(i, s) {
319
319
  var f = i.order;
320
- return f == null && (f = i.order = kf(i.text, s)), f;
320
+ return f == null && (f = i.order = Mf(i.text, s)), f;
321
321
  }
322
322
  var $o = [], ze = function(i, s, f) {
323
323
  if (i.addEventListener)
@@ -391,7 +391,7 @@ function qE() {
391
391
  var s = i.which;
392
392
  return s == null && (i.button & 1 ? s = 1 : i.button & 2 ? s = 3 : i.button & 4 && (s = 2)), M && i.ctrlKey && s == 1 && (s = 3), s;
393
393
  }
394
- var Mf = function() {
394
+ var Nf = function() {
395
395
  if (c && d < 9)
396
396
  return !1;
397
397
  var i = q("div");
@@ -486,7 +486,7 @@ b`.split(/\n/).length != 3 ? function(i) {
486
486
  return p;
487
487
  }
488
488
  var Vi = {};
489
- function Nf(i, s) {
489
+ function Lf(i, s) {
490
490
  var f = Vi.hasOwnProperty(i) ? Vi[i] : Vi[i] = {};
491
491
  Ge(s, f);
492
492
  }
@@ -904,7 +904,7 @@ b`.split(/\n/).length != 3 ? function(i) {
904
904
  }
905
905
  return p;
906
906
  }
907
- function Lf(i, s) {
907
+ function Of(i, s) {
908
908
  if (s.full)
909
909
  return null;
910
910
  var f = Vr(i, s.from.line) && Pe(i, s.from.line).markedSpans, p = Vr(i, s.to.line) && Pe(i, s.to.line).markedSpans;
@@ -989,7 +989,7 @@ b`.split(/\n/).length != 3 ? function(i) {
989
989
  function Iu(i) {
990
990
  return i.inclusiveRight ? 1 : 0;
991
991
  }
992
- function Of(i, s) {
992
+ function If(i, s) {
993
993
  var f = i.lines.length - s.lines.length;
994
994
  if (f != 0)
995
995
  return f;
@@ -1003,7 +1003,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1003
1003
  var f = mi && i.markedSpans, p;
1004
1004
  if (f)
1005
1005
  for (var h = void 0, g = 0; g < f.length; ++g)
1006
- h = f[g], h.marker.collapsed && (s ? h.from : h.to) == null && (!p || Of(p, h.marker) < 0) && (p = h.marker);
1006
+ h = f[g], h.marker.collapsed && (s ? h.from : h.to) == null && (!p || If(p, h.marker) < 0) && (p = h.marker);
1007
1007
  return p;
1008
1008
  }
1009
1009
  function Zm(i) {
@@ -1017,7 +1017,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1017
1017
  if (f)
1018
1018
  for (var h = 0; h < f.length; ++h) {
1019
1019
  var g = f[h];
1020
- g.marker.collapsed && (g.from == null || g.from < s) && (g.to == null || g.to > s) && (!p || Of(p, g.marker) < 0) && (p = g.marker);
1020
+ g.marker.collapsed && (g.from == null || g.from < s) && (g.to == null || g.to > s) && (!p || If(p, g.marker) < 0) && (p = g.marker);
1021
1021
  }
1022
1022
  return p;
1023
1023
  }
@@ -1048,7 +1048,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1048
1048
  i = s.find(1, !0).line, (f || (f = [])).push(i);
1049
1049
  return f;
1050
1050
  }
1051
- function If(i, s) {
1051
+ function Bf(i, s) {
1052
1052
  var f = Pe(i, s), p = Mr(f);
1053
1053
  return f == p ? s : gt(p);
1054
1054
  }
@@ -1069,20 +1069,20 @@ b`.split(/\n/).length != 3 ? function(i) {
1069
1069
  if (p = f[h], !!p.marker.collapsed) {
1070
1070
  if (p.from == null)
1071
1071
  return !0;
1072
- if (!p.marker.widgetNode && p.from == 0 && p.marker.inclusiveLeft && Bf(i, s, p))
1072
+ if (!p.marker.widgetNode && p.from == 0 && p.marker.inclusiveLeft && Ff(i, s, p))
1073
1073
  return !0;
1074
1074
  }
1075
1075
  }
1076
1076
  }
1077
- function Bf(i, s, f) {
1077
+ function Ff(i, s, f) {
1078
1078
  if (f.to == null) {
1079
1079
  var p = f.marker.find(1, !0);
1080
- return Bf(i, p.line, Fs(p.line.markedSpans, f.marker));
1080
+ return Ff(i, p.line, Fs(p.line.markedSpans, f.marker));
1081
1081
  }
1082
1082
  if (f.marker.inclusiveRight && f.to == s.text.length)
1083
1083
  return !0;
1084
1084
  for (var h = void 0, g = 0; g < s.markedSpans.length; ++g)
1085
- if (h = s.markedSpans[g], h.marker.collapsed && !h.marker.widgetNode && h.from == f.to && (h.to == null || h.to != f.from) && (h.marker.inclusiveLeft || f.marker.inclusiveRight) && Bf(i, s, h))
1085
+ if (h = s.markedSpans[g], h.marker.collapsed && !h.marker.widgetNode && h.from == f.to && (h.to == null || h.to != f.from) && (h.marker.inclusiveLeft || f.marker.inclusiveRight) && Ff(i, s, h))
1086
1086
  return !0;
1087
1087
  }
1088
1088
  function gi(i) {
@@ -1115,7 +1115,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1115
1115
  }
1116
1116
  return s;
1117
1117
  }
1118
- function Ff(i) {
1118
+ function $f(i) {
1119
1119
  var s = i.display, f = i.doc;
1120
1120
  s.maxLine = Pe(f, f.first), s.maxLineLength = Fu(s.maxLine), s.maxLineChanged = !0, f.iter(function(p) {
1121
1121
  var h = Fu(p);
@@ -1252,7 +1252,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1252
1252
  if (Oe.to != null && Oe.to != S && V > Oe.to && (V = Oe.to, se = ""), ot.className && (ne += " " + ot.className), ot.css && (Y = (Y ? Y + ";" : "") + ot.css), ot.startStyle && Oe.from == S && (ve += " " + ot.startStyle), ot.endStyle && Oe.to == V && (Ae || (Ae = [])).push(ot.endStyle, Oe.to), ot.title && ((xe || (xe = {})).title = ot.title), ot.attributes)
1253
1253
  for (var Ct in ot.attributes)
1254
1254
  (xe || (xe = {}))[Ct] = ot.attributes[Ct];
1255
- ot.collapsed && (!ye || Of(ye.marker, ot) < 0) && (ye = Oe);
1255
+ ot.collapsed && (!ye || If(ye.marker, ot) < 0) && (ye = Oe);
1256
1256
  } else
1257
1257
  Oe.from > S && V > Oe.from && (V = Oe.from);
1258
1258
  }
@@ -1362,7 +1362,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1362
1362
  function ig(i, s, f, p) {
1363
1363
  for (var h = 0; h < s.changes.length; h++) {
1364
1364
  var g = s.changes[h];
1365
- g == "text" ? CS(i, s) : g == "gutter" ? ag(i, s, f, p) : g == "class" ? $f(i, s) : g == "widget" && TS(i, s, p);
1365
+ g == "text" ? CS(i, s) : g == "gutter" ? ag(i, s, f, p) : g == "class" ? Hf(i, s) : g == "widget" && TS(i, s, p);
1366
1366
  }
1367
1367
  s.changes = null;
1368
1368
  }
@@ -1384,9 +1384,9 @@ b`.split(/\n/).length != 3 ? function(i) {
1384
1384
  }
1385
1385
  function CS(i, s) {
1386
1386
  var f = s.text.className, p = og(i, s);
1387
- s.text == s.node && (s.node = p.pre), s.text.parentNode.replaceChild(p.pre, s.text), s.text = p.pre, p.bgClass != s.bgClass || p.textClass != s.textClass ? (s.bgClass = p.bgClass, s.textClass = p.textClass, $f(i, s)) : f && (s.text.className = f);
1387
+ s.text == s.node && (s.node = p.pre), s.text.parentNode.replaceChild(p.pre, s.text), s.text = p.pre, p.bgClass != s.bgClass || p.textClass != s.textClass ? (s.bgClass = p.bgClass, s.textClass = p.textClass, Hf(i, s)) : f && (s.text.className = f);
1388
1388
  }
1389
- function $f(i, s) {
1389
+ function Hf(i, s) {
1390
1390
  SS(i, s), s.line.wrapClass ? Hs(s).className = s.line.wrapClass : s.node != s.text && (s.node.className = "");
1391
1391
  var f = s.textClass ? s.textClass + " " + (s.line.textClass || "") : s.line.textClass;
1392
1392
  s.text.className = f || "";
@@ -1431,7 +1431,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1431
1431
  }
1432
1432
  function AS(i, s, f, p) {
1433
1433
  var h = og(i, s);
1434
- return s.text = s.node = h.pre, h.bgClass && (s.bgClass = h.bgClass), h.textClass && (s.textClass = h.textClass), $f(i, s), ag(i, s, f, p), sg(i, s, p), s.node;
1434
+ return s.text = s.node = h.pre, h.bgClass && (s.bgClass = h.bgClass), h.textClass && (s.textClass = h.textClass), Hf(i, s), ag(i, s, f, p), sg(i, s, p), s.node;
1435
1435
  }
1436
1436
  function sg(i, s, f) {
1437
1437
  if (lg(i, s.line, s, f, !0), s.rest)
@@ -1473,7 +1473,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1473
1473
  function Hu(i) {
1474
1474
  return i.lineSpace.offsetTop;
1475
1475
  }
1476
- function Hf(i) {
1476
+ function zf(i) {
1477
1477
  return i.mover.offsetHeight - i.lineSpace.offsetHeight;
1478
1478
  }
1479
1479
  function ug(i) {
@@ -1488,7 +1488,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1488
1488
  function qo(i) {
1489
1489
  return i.display.scroller.clientWidth - Kr(i) - i.display.barWidth;
1490
1490
  }
1491
- function zf(i) {
1491
+ function jf(i) {
1492
1492
  return i.display.scroller.clientHeight - Kr(i) - i.display.barHeight;
1493
1493
  }
1494
1494
  function RS(i, s, f) {
@@ -1527,7 +1527,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1527
1527
  function pg(i, s, f, p) {
1528
1528
  return qr(i, $a(i, s), f, p);
1529
1529
  }
1530
- function jf(i, s) {
1530
+ function Wf(i, s) {
1531
1531
  if (s >= i.display.viewFrom && s < i.display.viewTo)
1532
1532
  return i.display.view[Zo(i, s)];
1533
1533
  var f = i.display.externalMeasured;
@@ -1535,8 +1535,8 @@ b`.split(/\n/).length != 3 ? function(i) {
1535
1535
  return f;
1536
1536
  }
1537
1537
  function $a(i, s) {
1538
- var f = gt(s), p = jf(i, f);
1539
- p && !p.text ? p = null : p && p.changes && (ig(i, p, f, Kf(i)), i.curOp.forceUpdate = !0), p || (p = DS(i, s));
1538
+ var f = gt(s), p = Wf(i, f);
1539
+ p && !p.text ? p = null : p && p.changes && (ig(i, p, f, qf(i)), i.curOp.forceUpdate = !0), p || (p = DS(i, s));
1540
1540
  var h = cg(p, s, f);
1541
1541
  return {
1542
1542
  line: s,
@@ -1644,7 +1644,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1644
1644
  function gg(i) {
1645
1645
  return y && k ? -(i.body.getBoundingClientRect().top - parseInt(getComputedStyle(i.body).marginTop)) : i.defaultView.pageYOffset || (i.documentElement || i.body).scrollTop;
1646
1646
  }
1647
- function Wf(i) {
1647
+ function Uf(i) {
1648
1648
  var s = Mr(i), f = s.widgets, p = 0;
1649
1649
  if (f)
1650
1650
  for (var h = 0; h < f.length; ++h)
@@ -1653,7 +1653,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1653
1653
  }
1654
1654
  function zu(i, s, f, p, h) {
1655
1655
  if (!h) {
1656
- var g = Wf(s);
1656
+ var g = Uf(s);
1657
1657
  f.top += g, f.bottom += g;
1658
1658
  }
1659
1659
  if (p == "line")
@@ -1706,17 +1706,17 @@ b`.split(/\n/).length != 3 ? function(i) {
1706
1706
  var p = Pe(i.doc, s.line), h = gi(p) + Hu(i.display);
1707
1707
  return { left: f, right: f, top: h, bottom: h + p.height };
1708
1708
  }
1709
- function Uf(i, s, f, p, h) {
1709
+ function Gf(i, s, f, p, h) {
1710
1710
  var g = pe(i, s, f);
1711
1711
  return g.xRel = h, p && (g.outside = p), g;
1712
1712
  }
1713
- function Gf(i, s, f) {
1713
+ function Vf(i, s, f) {
1714
1714
  var p = i.doc;
1715
1715
  if (f += i.display.viewOffset, f < 0)
1716
- return Uf(p.first, 0, null, -1, -1);
1716
+ return Gf(p.first, 0, null, -1, -1);
1717
1717
  var h = Gr(p, f), g = p.first + p.size - 1;
1718
1718
  if (h > g)
1719
- return Uf(p.first + p.size - 1, Pe(p, g).text.length, null, 1, 1);
1719
+ return Gf(p.first + p.size - 1, Pe(p, g).text.length, null, 1, 1);
1720
1720
  s < 0 && (s = 0);
1721
1721
  for (var E = Pe(p, h); ; ) {
1722
1722
  var x = LS(i, E, h, s, f), S = lS(E, x.ch + (x.xRel > 0 || x.outside > 0 ? 1 : 0));
@@ -1729,7 +1729,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1729
1729
  }
1730
1730
  }
1731
1731
  function Eg(i, s, f, p) {
1732
- p -= Wf(s);
1732
+ p -= Uf(s);
1733
1733
  var h = s.text.length, g = fi(function(E) {
1734
1734
  return qr(i, f, E - 1).bottom <= p;
1735
1735
  }, h, 0);
@@ -1742,19 +1742,19 @@ b`.split(/\n/).length != 3 ? function(i) {
1742
1742
  var h = zu(i, s, qr(i, f, p), "line").top;
1743
1743
  return Eg(i, s, f, h);
1744
1744
  }
1745
- function Vf(i, s, f, p) {
1745
+ function Kf(i, s, f, p) {
1746
1746
  return i.bottom <= f ? !1 : i.top > f ? !0 : (p ? i.left : i.right) > s;
1747
1747
  }
1748
1748
  function LS(i, s, f, p, h) {
1749
1749
  h -= gi(s);
1750
- var g = $a(i, s), E = Wf(s), x = 0, S = s.text.length, A = !0, B = kr(s, i.doc.direction);
1750
+ var g = $a(i, s), E = Uf(s), x = 0, S = s.text.length, A = !0, B = kr(s, i.doc.direction);
1751
1751
  if (B) {
1752
1752
  var $ = (i.options.lineWrapping ? IS : OS)(i, s, f, g, B, p, h);
1753
1753
  A = $.level != 1, x = A ? $.from : $.to - 1, S = A ? $.to : $.from - 1;
1754
1754
  }
1755
1755
  var Y = null, V = null, ne = fi(function($e) {
1756
1756
  var Oe = qr(i, g, $e);
1757
- return Oe.top += E, Oe.bottom += E, Vf(Oe, p, h, !1) ? (Oe.top <= h && Oe.left <= p && (Y = $e, V = Oe), !0) : !1;
1757
+ return Oe.top += E, Oe.bottom += E, Kf(Oe, p, h, !1) ? (Oe.top <= h && Oe.left <= p && (Y = $e, V = Oe), !0) : !1;
1758
1758
  }, x, S), se, ve, ye = !1;
1759
1759
  if (V) {
1760
1760
  var xe = p - V.left < V.right - p, be = xe == A;
@@ -1764,12 +1764,12 @@ b`.split(/\n/).length != 3 ? function(i) {
1764
1764
  var Ae = Nr(i, pe(f, ne, ve), "line", s, g);
1765
1765
  se = Ae.left, ye = h < Ae.top ? -1 : h >= Ae.bottom ? 1 : 0;
1766
1766
  }
1767
- return ne = Io(s.text, ne, 1), Uf(f, ne, ve, ye, p - se);
1767
+ return ne = Io(s.text, ne, 1), Gf(f, ne, ve, ye, p - se);
1768
1768
  }
1769
1769
  function OS(i, s, f, p, h, g, E) {
1770
1770
  var x = fi(function($) {
1771
1771
  var Y = h[$], V = Y.level != 1;
1772
- return Vf(Nr(
1772
+ return Kf(Nr(
1773
1773
  i,
1774
1774
  pe(f, V ? Y.to : Y.from, V ? "before" : "after"),
1775
1775
  "line",
@@ -1785,7 +1785,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1785
1785
  s,
1786
1786
  p
1787
1787
  );
1788
- Vf(B, g, E, !0) && B.top > E && (S = h[x - 1]);
1788
+ Kf(B, g, E, !0) && B.top > E && (S = h[x - 1]);
1789
1789
  }
1790
1790
  return S;
1791
1791
  }
@@ -1823,20 +1823,20 @@ b`.split(/\n/).length != 3 ? function(i) {
1823
1823
  var p = s.getBoundingClientRect(), h = (p.right - p.left) / 10;
1824
1824
  return h > 2 && (i.cachedCharWidth = h), h || 10;
1825
1825
  }
1826
- function Kf(i) {
1826
+ function qf(i) {
1827
1827
  for (var s = i.display, f = {}, p = {}, h = s.gutters.clientLeft, g = s.gutters.firstChild, E = 0; g; g = g.nextSibling, ++E) {
1828
1828
  var x = i.display.gutterSpecs[E].className;
1829
1829
  f[x] = g.offsetLeft + g.clientLeft + h, p[x] = g.clientWidth;
1830
1830
  }
1831
1831
  return {
1832
- fixedPos: qf(s),
1832
+ fixedPos: Yf(s),
1833
1833
  gutterTotalWidth: s.gutters.offsetWidth,
1834
1834
  gutterLeft: f,
1835
1835
  gutterWidth: p,
1836
1836
  wrapperWidth: s.wrapper.clientWidth
1837
1837
  };
1838
1838
  }
1839
- function qf(i) {
1839
+ function Yf(i) {
1840
1840
  return i.scroller.getBoundingClientRect().left - i.sizer.getBoundingClientRect().left;
1841
1841
  }
1842
1842
  function xg(i) {
@@ -1851,7 +1851,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1851
1851
  return f ? g + (Math.ceil(h.text.length / p) || 1) * s : g + s;
1852
1852
  };
1853
1853
  }
1854
- function Yf(i) {
1854
+ function Xf(i) {
1855
1855
  var s = i.doc, f = xg(i);
1856
1856
  s.iter(function(p) {
1857
1857
  var h = f(p);
@@ -1868,7 +1868,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1868
1868
  } catch {
1869
1869
  return null;
1870
1870
  }
1871
- var S = Gf(i, g, E), A;
1871
+ var S = Vf(i, g, E), A;
1872
1872
  if (p && S.xRel > 0 && (A = Pe(i.doc, S.line).text).length == S.ch) {
1873
1873
  var B = He(A, A.length, i.options.tabSize) - A.length;
1874
1874
  S = pe(S.line, Math.max(0, Math.round((g - ug(i.display).left) / za(i.display)) - B));
@@ -1886,7 +1886,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1886
1886
  s == null && (s = i.doc.first), f == null && (f = i.doc.first + i.doc.size), p || (p = 0);
1887
1887
  var h = i.display;
1888
1888
  if (p && f < h.viewTo && (h.updateLineNumbers == null || h.updateLineNumbers > s) && (h.updateLineNumbers = s), i.curOp.viewChanged = !0, s >= h.viewTo)
1889
- mi && If(i.doc, s) < h.viewTo && Xi(i);
1889
+ mi && Bf(i.doc, s) < h.viewTo && Xi(i);
1890
1890
  else if (f <= h.viewFrom)
1891
1891
  mi && Jm(i.doc, f + p) > h.viewFrom ? Xi(i) : (h.viewFrom += p, h.viewTo += p);
1892
1892
  else if (s <= h.viewFrom && f >= h.viewTo)
@@ -1933,7 +1933,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1933
1933
  g = x - s;
1934
1934
  s += g, f += g;
1935
1935
  }
1936
- for (; If(i.doc, f) != f; ) {
1936
+ for (; Bf(i.doc, f) != f; ) {
1937
1937
  if (h == (p < 0 ? 0 : E.length - 1))
1938
1938
  return null;
1939
1939
  f += p * E[h - (p < 0 ? 1 : 0)].size, h += p;
@@ -1965,15 +1965,15 @@ b`.split(/\n/).length != 3 ? function(i) {
1965
1965
  var A = S.empty();
1966
1966
  if (E) {
1967
1967
  var B = E(i, S);
1968
- B && Xf(i, B, h);
1968
+ B && Zf(i, B, h);
1969
1969
  } else
1970
- (A || i.options.showCursorWhenSelecting) && Xf(i, S.head, h);
1970
+ (A || i.options.showCursorWhenSelecting) && Zf(i, S.head, h);
1971
1971
  A || FS(i, S, g);
1972
1972
  }
1973
1973
  }
1974
1974
  return p;
1975
1975
  }
1976
- function Xf(i, s, f) {
1976
+ function Zf(i, s, f) {
1977
1977
  var p = Nr(i, s, "div", null, null, !i.options.singleCursorHeightPerLine), h = f.appendChild(q("div", " ", "CodeMirror-cursor"));
1978
1978
  if (h.style.left = p.left + "px", h.style.top = p.top + "px", h.style.height = Math.max(0, p.bottom - p.top) * i.options.cursorHeight + "px", /\bcm-fat-cursor\b/.test(i.getWrapperElement().className)) {
1979
1979
  var g = ju(i, s, "div", null, null), E = g.right - g.left;
@@ -2004,14 +2004,14 @@ b`.split(/\n/).length != 3 ? function(i) {
2004
2004
  return Lt(It, Yt)[Yt];
2005
2005
  }
2006
2006
  var Gn = kr(Oe, h.direction);
2007
- return Df(Gn, Ae || 0, $e ?? ot, function(qt, Vn, yn, rn) {
2007
+ return kf(Gn, Ae || 0, $e ?? ot, function(qt, Vn, yn, rn) {
2008
2008
  var Yt = yn == "ltr", It = Lt(qt, Yt ? "left" : "right"), Kn = Lt(Vn - 1, Yt ? "right" : "left"), es = Ae == null && qt == 0, no = $e == null && Vn == ot, Tn = rn == 0, Yr = !Gn || rn == Gn.length - 1;
2009
2009
  if (Kn.top - It.top <= 3) {
2010
- var cn = (A ? es : no) && Tn, wd = (A ? no : es) && Yr, _i = cn ? x : (Yt ? It : Kn).left, na = wd ? S : (Yt ? Kn : It).right;
2010
+ var cn = (A ? es : no) && Tn, Sd = (A ? no : es) && Yr, _i = cn ? x : (Yt ? It : Kn).left, na = Sd ? S : (Yt ? Kn : It).right;
2011
2011
  B(_i, It.top, na - _i, It.bottom);
2012
2012
  } else {
2013
- var ra, In, ts, Sd;
2014
- Yt ? (ra = A && es && Tn ? x : It.left, In = A ? S : nr(qt, yn, "before"), ts = A ? x : nr(Vn, yn, "after"), Sd = A && no && Yr ? S : Kn.right) : (ra = A ? nr(qt, yn, "before") : x, In = !A && es && Tn ? S : It.right, ts = !A && no && Yr ? x : Kn.left, Sd = A ? nr(Vn, yn, "after") : S), B(ra, It.top, In - ra, It.bottom), It.bottom < Kn.top && B(x, It.bottom, null, Kn.top), B(ts, Kn.top, Sd - ts, Kn.bottom);
2013
+ var ra, In, ts, Cd;
2014
+ Yt ? (ra = A && es && Tn ? x : It.left, In = A ? S : nr(qt, yn, "before"), ts = A ? x : nr(Vn, yn, "after"), Cd = A && no && Yr ? S : Kn.right) : (ra = A ? nr(qt, yn, "before") : x, In = !A && es && Tn ? S : It.right, ts = !A && no && Yr ? x : Kn.left, Cd = A ? nr(Vn, yn, "after") : S), B(ra, It.top, In - ra, It.bottom), It.bottom < Kn.top && B(x, It.bottom, null, Kn.top), B(ts, Kn.top, Cd - ts, Kn.bottom);
2015
2015
  }
2016
2016
  (!Ct || Uu(It, Ct) < 0) && (Ct = It), Uu(Kn, Ct) < 0 && (Ct = Kn), (!un || Uu(It, un) < 0) && (un = It), Uu(Kn, un) < 0 && (un = Kn);
2017
2017
  }), { start: Ct, end: un };
@@ -2025,7 +2025,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2025
2025
  }
2026
2026
  f.appendChild(g);
2027
2027
  }
2028
- function Zf(i) {
2028
+ function Qf(i) {
2029
2029
  if (i.state.focused) {
2030
2030
  var s = i.display;
2031
2031
  clearInterval(s.blinker);
@@ -2036,17 +2036,17 @@ b`.split(/\n/).length != 3 ? function(i) {
2036
2036
  }
2037
2037
  }
2038
2038
  function Cg(i) {
2039
- i.hasFocus() || (i.display.input.focus(), i.state.focused || Jf(i));
2039
+ i.hasFocus() || (i.display.input.focus(), i.state.focused || ed(i));
2040
2040
  }
2041
- function Qf(i) {
2041
+ function Jf(i) {
2042
2042
  i.state.delayingBlurEvent = !0, setTimeout(function() {
2043
2043
  i.state.delayingBlurEvent && (i.state.delayingBlurEvent = !1, i.state.focused && ja(i));
2044
2044
  }, 100);
2045
2045
  }
2046
- function Jf(i, s) {
2046
+ function ed(i, s) {
2047
2047
  i.state.delayingBlurEvent && !i.state.draggingText && (i.state.delayingBlurEvent = !1), i.options.readOnly != "nocursor" && (i.state.focused || (Nt(i, "focus", i, s), i.state.focused = !0, T(i.display.wrapper, "CodeMirror-focused"), !i.curOp && i.display.selForContextMenu != i.doc.sel && (i.display.input.reset(), v && setTimeout(function() {
2048
2048
  return i.display.input.reset(!0);
2049
- }, 20)), i.display.input.receivedFocus()), Zf(i));
2049
+ }, 20)), i.display.input.receivedFocus()), Qf(i));
2050
2050
  }
2051
2051
  function ja(i, s) {
2052
2052
  i.state.delayingBlurEvent || (i.state.focused && (Nt(i, "blur", i, s), i.state.focused = !1, ie(i.display.wrapper, "CodeMirror-focused")), clearInterval(i.display.blinker), setTimeout(function() {
@@ -2117,22 +2117,22 @@ b`.split(/\n/).length != 3 ? function(i) {
2117
2117
  right: Math.max(x.left, S.left),
2118
2118
  bottom: Math.max(x.bottom, S.bottom) + p
2119
2119
  };
2120
- var A = ed(i, h), B = i.doc.scrollTop, $ = i.doc.scrollLeft;
2120
+ var A = td(i, h), B = i.doc.scrollTop, $ = i.doc.scrollLeft;
2121
2121
  if (A.scrollTop != null && (Gs(i, A.scrollTop), Math.abs(i.doc.scrollTop - B) > 1 && (E = !0)), A.scrollLeft != null && (Qo(i, A.scrollLeft), Math.abs(i.doc.scrollLeft - $) > 1 && (E = !0)), !E)
2122
2122
  break;
2123
2123
  }
2124
2124
  return h;
2125
2125
  }
2126
2126
  function zS(i, s) {
2127
- var f = ed(i, s);
2127
+ var f = td(i, s);
2128
2128
  f.scrollTop != null && Gs(i, f.scrollTop), f.scrollLeft != null && Qo(i, f.scrollLeft);
2129
2129
  }
2130
- function ed(i, s) {
2130
+ function td(i, s) {
2131
2131
  var f = i.display, p = Ha(i.display);
2132
2132
  s.top < 0 && (s.top = 0);
2133
- var h = i.curOp && i.curOp.scrollTop != null ? i.curOp.scrollTop : f.scroller.scrollTop, g = zf(i), E = {};
2133
+ var h = i.curOp && i.curOp.scrollTop != null ? i.curOp.scrollTop : f.scroller.scrollTop, g = jf(i), E = {};
2134
2134
  s.bottom - s.top > g && (s.bottom = s.top + g);
2135
- var x = i.doc.height + Hf(f), S = s.top < p, A = s.bottom > x - p;
2135
+ var x = i.doc.height + zf(f), S = s.top < p, A = s.bottom > x - p;
2136
2136
  if (s.top < h)
2137
2137
  E.scrollTop = S ? 0 : s.top;
2138
2138
  else if (s.bottom > h + g) {
@@ -2142,7 +2142,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2142
2142
  var $ = i.options.fixedGutter ? 0 : f.gutters.offsetWidth, Y = i.curOp && i.curOp.scrollLeft != null ? i.curOp.scrollLeft : f.scroller.scrollLeft - $, V = qo(i) - f.gutters.offsetWidth, ne = s.right - s.left > V;
2143
2143
  return ne && (s.right = s.left + V), s.left < 10 ? E.scrollLeft = 0 : s.left < Y ? E.scrollLeft = Math.max(0, s.left + $ - (ne ? 0 : 10)) : s.right > V + Y - 3 && (E.scrollLeft = s.right + (ne ? 0 : 10) - V), E;
2144
2144
  }
2145
- function td(i, s) {
2145
+ function nd(i, s) {
2146
2146
  s != null && (Ku(i), i.curOp.scrollTop = (i.curOp.scrollTop == null ? i.doc.scrollTop : i.curOp.scrollTop) + s);
2147
2147
  }
2148
2148
  function Wa(i) {
@@ -2165,7 +2165,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2165
2165
  }
2166
2166
  }
2167
2167
  function Ag(i, s, f, p) {
2168
- var h = ed(i, {
2168
+ var h = td(i, {
2169
2169
  left: Math.min(s.left, f.left),
2170
2170
  top: Math.min(s.top, f.top) - p,
2171
2171
  right: Math.max(s.right, f.right),
@@ -2174,7 +2174,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2174
2174
  Us(i, h.scrollLeft, h.scrollTop);
2175
2175
  }
2176
2176
  function Gs(i, s) {
2177
- Math.abs(i.doc.scrollTop - s) < 2 || (o || rd(i, { top: s }), Pg(i, s, !0), o && rd(i), qs(i, 100));
2177
+ Math.abs(i.doc.scrollTop - s) < 2 || (o || id(i, { top: s }), Pg(i, s, !0), o && id(i), qs(i, 100));
2178
2178
  }
2179
2179
  function Pg(i, s, f) {
2180
2180
  s = Math.max(0, Math.min(i.display.scroller.scrollHeight - i.display.scroller.clientHeight, s)), !(i.display.scroller.scrollTop == s && !f) && (i.doc.scrollTop = s, i.display.scrollbars.setScrollTop(s), i.display.scroller.scrollTop != s && (i.display.scroller.scrollTop = s));
@@ -2183,7 +2183,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2183
2183
  s = Math.max(0, Math.min(s, i.display.scroller.scrollWidth - i.display.scroller.clientWidth)), !((f ? s == i.doc.scrollLeft : Math.abs(i.doc.scrollLeft - s) < 2) && !p) && (i.doc.scrollLeft = s, Ng(i), i.display.scroller.scrollLeft != s && (i.display.scroller.scrollLeft = s), i.display.scrollbars.setScrollLeft(s));
2184
2184
  }
2185
2185
  function Vs(i) {
2186
- var s = i.display, f = s.gutters.offsetWidth, p = Math.round(i.doc.height + Hf(i.display));
2186
+ var s = i.display, f = s.gutters.offsetWidth, p = Math.round(i.doc.height + zf(i.display));
2187
2187
  return {
2188
2188
  clientHeight: s.scroller.clientHeight,
2189
2189
  viewHeight: s.wrapper.clientHeight,
@@ -2328,10 +2328,10 @@ b`.split(/\n/).length != 3 ? function(i) {
2328
2328
  }
2329
2329
  function GS(i) {
2330
2330
  var s = i.cm, f = s.display;
2331
- ZS(s), i.updateMaxLine && Ff(s), i.mustUpdate = i.viewChanged || i.forceUpdate || i.scrollTop != null || i.scrollToPos && (i.scrollToPos.from.line < f.viewFrom || i.scrollToPos.to.line >= f.viewTo) || f.maxLineChanged && s.options.lineWrapping, i.update = i.mustUpdate && new qu(s, i.mustUpdate && { top: i.scrollTop, ensure: i.scrollToPos }, i.forceUpdate);
2331
+ ZS(s), i.updateMaxLine && $f(s), i.mustUpdate = i.viewChanged || i.forceUpdate || i.scrollTop != null || i.scrollToPos && (i.scrollToPos.from.line < f.viewFrom || i.scrollToPos.to.line >= f.viewTo) || f.maxLineChanged && s.options.lineWrapping, i.update = i.mustUpdate && new qu(s, i.mustUpdate && { top: i.scrollTop, ensure: i.scrollToPos }, i.forceUpdate);
2332
2332
  }
2333
2333
  function VS(i) {
2334
- i.updatedDisplay = i.mustUpdate && nd(i.cm, i.update);
2334
+ i.updatedDisplay = i.mustUpdate && rd(i.cm, i.update);
2335
2335
  }
2336
2336
  function KS(i) {
2337
2337
  var s = i.cm, f = s.display;
@@ -2341,7 +2341,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2341
2341
  var s = i.cm;
2342
2342
  i.adjustWidthTo != null && (s.display.sizer.style.minWidth = i.adjustWidthTo + "px", i.maxScrollLeft < s.doc.scrollLeft && Qo(s, Math.min(s.display.scroller.scrollLeft, i.maxScrollLeft), !0), s.display.maxLineChanged = !1);
2343
2343
  var f = i.focus && i.focus == F(X(s));
2344
- i.preparedSelection && s.display.input.showSelection(i.preparedSelection, f), (i.updatedDisplay || i.startHeight != s.doc.height) && Ua(s, i.barMeasure), i.updatedDisplay && od(s, i.barMeasure), i.selectionChanged && Zf(s), s.state.focused && i.updateInput && s.display.input.reset(i.typing), f && Cg(i.cm);
2344
+ i.preparedSelection && s.display.input.showSelection(i.preparedSelection, f), (i.updatedDisplay || i.startHeight != s.doc.height) && Ua(s, i.barMeasure), i.updatedDisplay && ad(s, i.barMeasure), i.selectionChanged && Qf(s), s.state.focused && i.updateInput && s.display.input.reset(i.typing), f && Cg(i.cm);
2345
2345
  }
2346
2346
  function YS(i) {
2347
2347
  var s = i.cm, f = s.display, p = s.doc;
@@ -2438,7 +2438,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2438
2438
  }
2439
2439
  var qu = function(i, s, f) {
2440
2440
  var p = i.display;
2441
- this.viewport = s, this.visible = Vu(p, i.doc, s), this.editorIsHidden = !p.wrapper.offsetWidth, this.wrapperHeight = p.wrapper.clientHeight, this.wrapperWidth = p.wrapper.clientWidth, this.oldDisplayWidth = qo(i), this.force = f, this.dims = Kf(i), this.events = [];
2441
+ this.viewport = s, this.visible = Vu(p, i.doc, s), this.editorIsHidden = !p.wrapper.offsetWidth, this.wrapperHeight = p.wrapper.clientHeight, this.wrapperWidth = p.wrapper.clientWidth, this.oldDisplayWidth = qo(i), this.force = f, this.dims = qf(i), this.events = [];
2442
2442
  };
2443
2443
  qu.prototype.signal = function(i, s) {
2444
2444
  Qn(i, s) && this.events.push(arguments);
@@ -2469,15 +2469,15 @@ b`.split(/\n/).length != 3 ? function(i) {
2469
2469
  p.setEnd(i.anchorNode, i.anchorOffset), p.collapse(!1), f.removeAllRanges(), f.addRange(p), f.extend(i.focusNode, i.focusOffset);
2470
2470
  }
2471
2471
  }
2472
- function nd(i, s) {
2472
+ function rd(i, s) {
2473
2473
  var f = i.display, p = i.doc;
2474
2474
  if (s.editorIsHidden)
2475
2475
  return Xi(i), !1;
2476
2476
  if (!s.force && s.visible.from >= f.viewFrom && s.visible.to <= f.viewTo && (f.updateLineNumbers == null || f.updateLineNumbers >= f.viewTo) && f.renderedView == f.view && wg(i) == 0)
2477
2477
  return !1;
2478
- Lg(i) && (Xi(i), s.dims = Kf(i));
2478
+ Lg(i) && (Xi(i), s.dims = qf(i));
2479
2479
  var h = p.first + p.size, g = Math.max(s.visible.from - i.options.viewportMargin, p.first), E = Math.min(h, s.visible.to + i.options.viewportMargin);
2480
- f.viewFrom < g && g - f.viewFrom < 20 && (g = Math.max(p.first, f.viewFrom)), f.viewTo > E && f.viewTo - E < 20 && (E = Math.min(h, f.viewTo)), mi && (g = If(i.doc, g), E = Jm(i.doc, E));
2480
+ f.viewFrom < g && g - f.viewFrom < 20 && (g = Math.max(p.first, f.viewFrom)), f.viewTo > E && f.viewTo - E < 20 && (E = Math.min(h, f.viewTo)), mi && (g = Bf(i.doc, g), E = Jm(i.doc, E));
2481
2481
  var x = g != f.viewFrom || E != f.viewTo || f.lastWrapHeight != s.wrapperHeight || f.lastWrapWidth != s.wrapperWidth;
2482
2482
  BS(i, g, E), f.viewOffset = gi(Pe(i.doc, f.viewFrom)), i.display.mover.style.top = f.viewOffset + "px";
2483
2483
  var S = wg(i);
@@ -2489,24 +2489,24 @@ b`.split(/\n/).length != 3 ? function(i) {
2489
2489
  function Mg(i, s) {
2490
2490
  for (var f = s.viewport, p = !0; ; p = !1) {
2491
2491
  if (!p || !i.options.lineWrapping || s.oldDisplayWidth == qo(i)) {
2492
- if (f && f.top != null && (f = { top: Math.min(i.doc.height + Hf(i.display) - zf(i), f.top) }), s.visible = Vu(i.display, i.doc, f), s.visible.from >= i.display.viewFrom && s.visible.to <= i.display.viewTo)
2492
+ if (f && f.top != null && (f = { top: Math.min(i.doc.height + zf(i.display) - jf(i), f.top) }), s.visible = Vu(i.display, i.doc, f), s.visible.from >= i.display.viewFrom && s.visible.to <= i.display.viewTo)
2493
2493
  break;
2494
2494
  } else
2495
2495
  p && (s.visible = Vu(i.display, i.doc, f));
2496
- if (!nd(i, s))
2496
+ if (!rd(i, s))
2497
2497
  break;
2498
2498
  Gu(i);
2499
2499
  var h = Vs(i);
2500
- Ws(i), Ua(i, h), od(i, h), s.force = !1;
2500
+ Ws(i), Ua(i, h), ad(i, h), s.force = !1;
2501
2501
  }
2502
2502
  s.signal(i, "update", i), (i.display.viewFrom != i.display.reportedViewFrom || i.display.viewTo != i.display.reportedViewTo) && (s.signal(i, "viewportChange", i, i.display.viewFrom, i.display.viewTo), i.display.reportedViewFrom = i.display.viewFrom, i.display.reportedViewTo = i.display.viewTo);
2503
2503
  }
2504
- function rd(i, s) {
2504
+ function id(i, s) {
2505
2505
  var f = new qu(i, s);
2506
- if (nd(i, f)) {
2506
+ if (rd(i, f)) {
2507
2507
  Gu(i), Mg(i, f);
2508
2508
  var p = Vs(i);
2509
- Ws(i), Ua(i, p), od(i, p), f.finish();
2509
+ Ws(i), Ua(i, p), ad(i, p), f.finish();
2510
2510
  }
2511
2511
  }
2512
2512
  function eC(i, s, f) {
@@ -2532,17 +2532,17 @@ b`.split(/\n/).length != 3 ? function(i) {
2532
2532
  for (; E; )
2533
2533
  E = x(E);
2534
2534
  }
2535
- function id(i) {
2535
+ function od(i) {
2536
2536
  var s = i.gutters.offsetWidth;
2537
2537
  i.sizer.style.marginLeft = s + "px", an(i, "gutterChanged", i);
2538
2538
  }
2539
- function od(i, s) {
2539
+ function ad(i, s) {
2540
2540
  i.display.sizer.style.minHeight = s.docHeight + "px", i.display.heightForcer.style.top = s.docHeight + "px", i.display.gutters.style.height = s.docHeight + i.display.barHeight + Kr(i) + "px";
2541
2541
  }
2542
2542
  function Ng(i) {
2543
2543
  var s = i.display, f = s.view;
2544
2544
  if (!(!s.alignWidgets && (!s.gutters.firstChild || !i.options.fixedGutter))) {
2545
- for (var p = qf(s) - s.scroller.scrollLeft + i.doc.scrollLeft, h = s.gutters.offsetWidth, g = p + "px", E = 0; E < f.length; E++)
2545
+ for (var p = Yf(s) - s.scroller.scrollLeft + i.doc.scrollLeft, h = s.gutters.offsetWidth, g = p + "px", E = 0; E < f.length; E++)
2546
2546
  if (!f[E].hidden) {
2547
2547
  i.options.fixedGutter && (f[E].gutter && (f[E].gutter.style.left = g), f[E].gutterBackground && (f[E].gutterBackground.style.left = g));
2548
2548
  var x = f[E].alignable;
@@ -2563,11 +2563,11 @@ b`.split(/\n/).length != 3 ? function(i) {
2563
2563
  [q("div", f)],
2564
2564
  "CodeMirror-linenumber CodeMirror-gutter-elt"
2565
2565
  )), g = h.firstChild.offsetWidth, E = h.offsetWidth - g;
2566
- return p.lineGutter.style.width = "", p.lineNumInnerWidth = Math.max(g, p.lineGutter.offsetWidth - E) + 1, p.lineNumWidth = p.lineNumInnerWidth + E, p.lineNumChars = p.lineNumInnerWidth ? f.length : -1, p.lineGutter.style.width = p.lineNumWidth + "px", id(i.display), !0;
2566
+ return p.lineGutter.style.width = "", p.lineNumInnerWidth = Math.max(g, p.lineGutter.offsetWidth - E) + 1, p.lineNumWidth = p.lineNumInnerWidth + E, p.lineNumChars = p.lineNumInnerWidth ? f.length : -1, p.lineGutter.style.width = p.lineNumWidth + "px", od(i.display), !0;
2567
2567
  }
2568
2568
  return !1;
2569
2569
  }
2570
- function ad(i, s) {
2570
+ function sd(i, s) {
2571
2571
  for (var f = [], p = !1, h = 0; h < i.length; h++) {
2572
2572
  var g = i[h], E = null;
2573
2573
  if (typeof g != "string" && (E = g.style, g = g.className), g == "CodeMirror-linenumbers")
@@ -2586,7 +2586,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2586
2586
  var h = f[p], g = h.className, E = h.style, x = s.appendChild(q("div", null, "CodeMirror-gutter " + g));
2587
2587
  E && (x.style.cssText = E), g == "CodeMirror-linenumbers" && (i.lineGutter = x, x.style.width = (i.lineNumWidth || 1) + "px");
2588
2588
  }
2589
- s.style.display = f.length ? "" : "none", id(i);
2589
+ s.style.display = f.length ? "" : "none", od(i);
2590
2590
  }
2591
2591
  function Ys(i) {
2592
2592
  Og(i.display), Wn(i), Ng(i);
@@ -2600,7 +2600,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2600
2600
  "position: relative; outline: none"
2601
2601
  );
2602
2602
  var g = ue("div", [h.lineSpace], "CodeMirror-lines");
2603
- h.mover = q("div", [g], null, "position: relative"), h.sizer = q("div", [h.mover], "CodeMirror-sizer"), h.sizerWidth = null, h.heightForcer = q("div", null, null, "position: absolute; height: " + fe + "px; width: 1px;"), h.gutters = q("div", null, "CodeMirror-gutters"), h.lineGutter = null, h.scroller = q("div", [h.sizer, h.heightForcer, h.gutters], "CodeMirror-scroll"), h.scroller.setAttribute("tabIndex", "-1"), h.wrapper = q("div", [h.scrollbarFiller, h.gutterFiller, h.scroller], "CodeMirror"), y && b === 105 && (h.wrapper.style.clipPath = "inset(0px)"), h.wrapper.setAttribute("translate", "no"), c && d < 8 && (h.gutters.style.zIndex = -1, h.scroller.style.paddingRight = 0), !v && !(o && P) && (h.scroller.draggable = !0), i && (i.appendChild ? i.appendChild(h.wrapper) : i(h.wrapper)), h.viewFrom = h.viewTo = s.first, h.reportedViewFrom = h.reportedViewTo = s.first, h.view = [], h.renderedView = null, h.externalMeasured = null, h.viewOffset = 0, h.lastWrapHeight = h.lastWrapWidth = 0, h.updateLineNumbers = null, h.nativeBarWidth = h.barHeight = h.barWidth = 0, h.scrollbarsClipped = !1, h.lineNumWidth = h.lineNumInnerWidth = h.lineNumChars = null, h.alignWidgets = !1, h.cachedCharWidth = h.cachedTextHeight = h.cachedPaddingH = null, h.maxLine = null, h.maxLineLength = 0, h.maxLineChanged = !1, h.wheelDX = h.wheelDY = h.wheelStartX = h.wheelStartY = null, h.shift = !1, h.selForContextMenu = null, h.activeTouch = null, h.gutterSpecs = ad(p.gutters, p.lineNumbers), Og(h), f.init(h);
2603
+ h.mover = q("div", [g], null, "position: relative"), h.sizer = q("div", [h.mover], "CodeMirror-sizer"), h.sizerWidth = null, h.heightForcer = q("div", null, null, "position: absolute; height: " + fe + "px; width: 1px;"), h.gutters = q("div", null, "CodeMirror-gutters"), h.lineGutter = null, h.scroller = q("div", [h.sizer, h.heightForcer, h.gutters], "CodeMirror-scroll"), h.scroller.setAttribute("tabIndex", "-1"), h.wrapper = q("div", [h.scrollbarFiller, h.gutterFiller, h.scroller], "CodeMirror"), y && b === 105 && (h.wrapper.style.clipPath = "inset(0px)"), h.wrapper.setAttribute("translate", "no"), c && d < 8 && (h.gutters.style.zIndex = -1, h.scroller.style.paddingRight = 0), !v && !(o && P) && (h.scroller.draggable = !0), i && (i.appendChild ? i.appendChild(h.wrapper) : i(h.wrapper)), h.viewFrom = h.viewTo = s.first, h.reportedViewFrom = h.reportedViewTo = s.first, h.view = [], h.renderedView = null, h.externalMeasured = null, h.viewOffset = 0, h.lastWrapHeight = h.lastWrapWidth = 0, h.updateLineNumbers = null, h.nativeBarWidth = h.barHeight = h.barWidth = 0, h.scrollbarsClipped = !1, h.lineNumWidth = h.lineNumInnerWidth = h.lineNumChars = null, h.alignWidgets = !1, h.cachedCharWidth = h.cachedTextHeight = h.cachedPaddingH = null, h.maxLine = null, h.maxLineLength = 0, h.maxLineChanged = !1, h.wheelDX = h.wheelDY = h.wheelStartX = h.wheelStartY = null, h.shift = !1, h.selForContextMenu = null, h.activeTouch = null, h.gutterSpecs = sd(p.gutters, p.lineNumbers), Og(h), f.init(h);
2604
2604
  }
2605
2605
  var Yu = 0, bi = null;
2606
2606
  c ? bi = -0.53 : o ? bi = 15 : y ? bi = -0.7 : w && (bi = -1 / 3);
@@ -2635,7 +2635,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2635
2635
  }
2636
2636
  if (h && g != null) {
2637
2637
  var V = h * g, ne = i.doc.scrollTop, se = ne + E.wrapper.clientHeight;
2638
- V < 0 ? ne = Math.max(0, ne + V - 50) : se = Math.min(i.doc.height, se + V + 50), rd(i, { top: ne, bottom: se });
2638
+ V < 0 ? ne = Math.max(0, ne + V - 50) : se = Math.min(i.doc.height, se + V + 50), id(i, { top: ne, bottom: se });
2639
2639
  }
2640
2640
  Yu < 20 && s.deltaMode !== 0 && (E.wheelStartX == null ? (E.wheelStartX = x.scrollLeft, E.wheelStartY = x.scrollTop, E.wheelDX = p, E.wheelDY = h, setTimeout(function() {
2641
2641
  if (E.wheelStartX != null) {
@@ -2720,7 +2720,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2720
2720
  var f = i.line + s.text.length - (s.to.line - s.from.line) - 1, p = i.ch;
2721
2721
  return i.line == s.to.line && (p += Qi(s).ch - s.to.ch), pe(f, p);
2722
2722
  }
2723
- function sd(i, s) {
2723
+ function ld(i, s) {
2724
2724
  for (var f = [], p = 0; p < i.sel.ranges.length; p++) {
2725
2725
  var h = i.sel.ranges[p];
2726
2726
  f.push(new yt(
@@ -2744,7 +2744,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2744
2744
  }
2745
2745
  return new cr(p, i.sel.primIndex);
2746
2746
  }
2747
- function ld(i) {
2747
+ function ud(i) {
2748
2748
  i.doc.mode = Uo(i.options, i.doc.modeOption), Xs(i);
2749
2749
  }
2750
2750
  function Xs(i) {
@@ -2755,7 +2755,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2755
2755
  function Hg(i, s) {
2756
2756
  return s.from.ch == 0 && s.to.ch == 0 && ke(s.text) == "" && (!i.cm || i.cm.options.wholeLineUpdateBefore);
2757
2757
  }
2758
- function ud(i, s, f, p) {
2758
+ function cd(i, s, f, p) {
2759
2759
  function h(xe) {
2760
2760
  return f ? f[xe] : null;
2761
2761
  }
@@ -2805,7 +2805,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2805
2805
  function zg(i, s) {
2806
2806
  if (s.cm)
2807
2807
  throw new Error("This document is already in use.");
2808
- i.doc = s, s.cm = i, Yf(i), ld(i), jg(i), i.options.direction = s.direction, i.options.lineWrapping || Ff(i), i.options.mode = s.modeOption, Wn(i);
2808
+ i.doc = s, s.cm = i, Xf(i), ud(i), jg(i), i.options.direction = s.direction, i.options.lineWrapping || $f(i), i.options.mode = s.modeOption, Wn(i);
2809
2809
  }
2810
2810
  function jg(i) {
2811
2811
  (i.doc.direction == "rtl" ? T : ie)(i.display.lineDiv, "CodeMirror-rtl");
@@ -2818,7 +2818,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2818
2818
  function Xu(i) {
2819
2819
  this.done = [], this.undone = [], this.undoDepth = i ? i.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = i ? i.maxGeneration : 1;
2820
2820
  }
2821
- function cd(i, s) {
2821
+ function pd(i, s) {
2822
2822
  var f = { from: Vo(s.from), to: Qi(s), text: ur(i, s.from, s.to) };
2823
2823
  return Gg(i, f, s.from.line, s.to.line + 1), Ji(i, function(p) {
2824
2824
  return Gg(p, f, s.from.line, s.to.line + 1);
@@ -2846,11 +2846,11 @@ b`.split(/\n/).length != 3 ? function(i) {
2846
2846
  h.undone.length = 0;
2847
2847
  var g = +/* @__PURE__ */ new Date(), E, x;
2848
2848
  if ((h.lastOp == p || h.lastOrigin == s.origin && s.origin && (s.origin.charAt(0) == "+" && h.lastModTime > g - (i.cm ? i.cm.options.historyEventDelay : 500) || s.origin.charAt(0) == "*")) && (E = oC(h, h.lastOp == p)))
2849
- x = ke(E.changes), qe(s.from, s.to) == 0 && qe(s.from, x.to) == 0 ? x.to = Qi(s) : E.changes.push(cd(i, s));
2849
+ x = ke(E.changes), qe(s.from, s.to) == 0 && qe(s.from, x.to) == 0 ? x.to = Qi(s) : E.changes.push(pd(i, s));
2850
2850
  else {
2851
2851
  var S = ke(h.done);
2852
2852
  for ((!S || !S.ranges) && Zu(i.sel, h.done), E = {
2853
- changes: [cd(i, s)],
2853
+ changes: [pd(i, s)],
2854
2854
  generation: h.generation
2855
2855
  }, h.done.push(E); h.done.length > h.undoDepth; )
2856
2856
  h.done.shift(), h.done[0].ranges || h.done.shift();
@@ -2891,7 +2891,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2891
2891
  return p;
2892
2892
  }
2893
2893
  function Vg(i, s) {
2894
- var f = uC(i, s), p = Lf(i, s);
2894
+ var f = uC(i, s), p = Of(i, s);
2895
2895
  if (!f)
2896
2896
  return p;
2897
2897
  if (!p)
@@ -2929,7 +2929,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2929
2929
  }
2930
2930
  return p;
2931
2931
  }
2932
- function pd(i, s, f, p) {
2932
+ function fd(i, s, f, p) {
2933
2933
  if (p) {
2934
2934
  var h = i.anchor;
2935
2935
  if (f) {
@@ -2941,15 +2941,15 @@ b`.split(/\n/).length != 3 ? function(i) {
2941
2941
  return new yt(f || s, s);
2942
2942
  }
2943
2943
  function Qu(i, s, f, p, h) {
2944
- h == null && (h = i.cm && (i.cm.display.shift || i.extend)), Cn(i, new cr([pd(i.sel.primary(), s, f, h)], 0), p);
2944
+ h == null && (h = i.cm && (i.cm.display.shift || i.extend)), Cn(i, new cr([fd(i.sel.primary(), s, f, h)], 0), p);
2945
2945
  }
2946
2946
  function Kg(i, s, f) {
2947
2947
  for (var p = [], h = i.cm && (i.cm.display.shift || i.extend), g = 0; g < i.sel.ranges.length; g++)
2948
- p[g] = pd(i.sel.ranges[g], s[g], null, h);
2948
+ p[g] = fd(i.sel.ranges[g], s[g], null, h);
2949
2949
  var E = Lr(i.cm, p, i.sel.primIndex);
2950
2950
  Cn(i, E, f);
2951
2951
  }
2952
- function fd(i, s, f, p) {
2952
+ function dd(i, s, f, p) {
2953
2953
  var h = i.sel.ranges.slice(0);
2954
2954
  h[s] = f, Cn(i, Lr(i.cm, h, i.sel.primIndex), p);
2955
2955
  }
@@ -3064,11 +3064,11 @@ b`.split(/\n/).length != 3 ? function(i) {
3064
3064
  }
3065
3065
  function ny(i, s) {
3066
3066
  if (!(s.text.length == 1 && s.text[0] == "" && qe(s.from, s.to) == 0)) {
3067
- var f = sd(i, s);
3068
- Ug(i, s, f, i.cm ? i.cm.curOp.id : NaN), Zs(i, s, f, Lf(i, s));
3067
+ var f = ld(i, s);
3068
+ Ug(i, s, f, i.cm ? i.cm.curOp.id : NaN), Zs(i, s, f, Of(i, s));
3069
3069
  var p = [];
3070
3070
  Ji(i, function(h, g) {
3071
- !g && dt(p, h.history) == -1 && (ay(h.history, s), p.push(h.history)), Zs(h, s, null, Lf(h, s));
3071
+ !g && dt(p, h.history) == -1 && (ay(h.history, s), p.push(h.history)), Zs(h, s, null, Of(h, s));
3072
3072
  });
3073
3073
  }
3074
3074
  }
@@ -3096,8 +3096,8 @@ b`.split(/\n/).length != 3 ? function(i) {
3096
3096
  var ve = g.changes[se];
3097
3097
  if (ve.origin = s, $ && !ty(i, ve, !1))
3098
3098
  return x.length = 0, {};
3099
- B.push(cd(i, ve));
3100
- var ye = se ? sd(i, ve) : ke(x);
3099
+ B.push(pd(i, ve));
3100
+ var ye = se ? ld(i, ve) : ke(x);
3101
3101
  Zs(i, ve, ye, Vg(i, ve)), !se && i.cm && i.cm.scrollIntoView({ from: ve.from, to: Qi(ve) });
3102
3102
  var xe = [];
3103
3103
  Ji(i, function(be, Ae) {
@@ -3146,7 +3146,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3146
3146
  to: pe(g, Pe(i, g).text.length),
3147
3147
  text: [s.text[0]],
3148
3148
  origin: s.origin
3149
- }), s.removed = ur(i, s.from, s.to), f || (f = sd(i, s)), i.cm ? pC(i.cm, s, p) : ud(i, s, p), Ju(i, f, Se), i.cantEdit && ec(i, pe(i.firstLine(), 0)) && (i.cantEdit = !1);
3149
+ }), s.removed = ur(i, s.from, s.to), f || (f = ld(i, s)), i.cm ? pC(i.cm, s, p) : cd(i, s, p), Ju(i, f, Se), i.cantEdit && ec(i, pe(i.firstLine(), 0)) && (i.cantEdit = !1);
3150
3150
  }
3151
3151
  }
3152
3152
  function pC(i, s, f) {
@@ -3154,7 +3154,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3154
3154
  i.options.lineWrapping || (S = gt(Mr(Pe(p, g.line))), p.iter(S, E.line + 1, function(V) {
3155
3155
  if (V == h.maxLine)
3156
3156
  return x = !0, !0;
3157
- })), p.sel.contains(s.from, s.to) > -1 && Cu(i), ud(p, s, f, xg(i)), i.options.lineWrapping || (p.iter(S, g.line + s.text.length, function(V) {
3157
+ })), p.sel.contains(s.from, s.to) > -1 && Cu(i), cd(p, s, f, xg(i)), i.options.lineWrapping || (p.iter(S, g.line + s.text.length, function(V) {
3158
3158
  var ne = Fu(V);
3159
3159
  ne > h.maxLineLength && (h.maxLine = V, h.maxLineLength = ne, h.maxLineChanged = !0, x = !1);
3160
3160
  }), x && (i.curOp.updateMaxLine = !0)), br(p, g.line), qs(i, 400);
@@ -3355,7 +3355,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3355
3355
  }));
3356
3356
  }, Ui(tl);
3357
3357
  function sy(i, s, f) {
3358
- gi(s) < (i.curOp && i.curOp.scrollTop || i.doc.scrollTop) && td(i, f);
3358
+ gi(s) < (i.curOp && i.curOp.scrollTop || i.doc.scrollTop) && nd(i, f);
3359
3359
  }
3360
3360
  function fC(i, s, f, p) {
3361
3361
  var h = new tl(i, f, p), g = i.cm;
@@ -3363,7 +3363,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3363
3363
  var x = E.widgets || (E.widgets = []);
3364
3364
  if (h.insertAt == null ? x.push(h) : x.splice(Math.min(x.length, Math.max(0, h.insertAt)), 0, h), h.line = E, g && !qi(i, E)) {
3365
3365
  var S = gi(E) < i.scrollTop;
3366
- tn(E, E.height + zs(h)), S && td(g, h.height), g.curOp.forceUpdate = !0;
3366
+ tn(E, E.height + zs(h)), S && nd(g, h.height), g.curOp.forceUpdate = !0;
3367
3367
  }
3368
3368
  return !0;
3369
3369
  }), g && an(g, "lineWidgetAdded", g, h, typeof s == "number" ? s : gt(s)), h;
@@ -3402,7 +3402,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3402
3402
  }, eo.prototype.changed = function() {
3403
3403
  var i = this, s = this.find(-1, !0), f = this, p = this.doc.cm;
3404
3404
  !s || !p || tr(p, function() {
3405
- var h = s.line, g = gt(s.line), E = jf(p, g);
3405
+ var h = s.line, g = gt(s.line), E = Wf(p, g);
3406
3406
  if (E && (hg(E), p.curOp.selectionChanged = p.curOp.forceUpdate = !0), p.curOp.updateMaxLine = !0, !qi(f.doc, h) && f.height != null) {
3407
3407
  var x = f.height;
3408
3408
  f.height = null;
@@ -3516,7 +3516,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3516
3516
  return new Un(i, s, f, p, h);
3517
3517
  f == null && (f = 0), el.call(this, [new Js([new Ba("", null)])]), this.first = f, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = f;
3518
3518
  var g = pe(f, 0);
3519
- this.sel = Zi(g), this.history = new Xu(null), this.id = ++mC, this.modeOption = s, this.lineSep = p, this.direction = h == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof i == "string" && (i = this.splitLines(i)), ud(this, { from: g, to: g, text: i }), Cn(this, Zi(g), Se);
3519
+ this.sel = Zi(g), this.history = new Xu(null), this.id = ++mC, this.modeOption = s, this.lineSep = p, this.direction = h == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof i == "string" && (i = this.splitLines(i)), cd(this, { from: g, to: g, text: i }), Cn(this, Zi(g), Se);
3520
3520
  };
3521
3521
  Un.prototype = Le(el.prototype, {
3522
3522
  constructor: Un,
@@ -3967,7 +3967,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3967
3967
  var f = Xo(i, s);
3968
3968
  if (f) {
3969
3969
  var p = document.createDocumentFragment();
3970
- Xf(i, f, p), i.display.dragCursor || (i.display.dragCursor = q("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), i.display.lineSpace.insertBefore(i.display.dragCursor, i.display.cursorDiv)), me(i.display.dragCursor, p);
3970
+ Zf(i, f, p), i.display.dragCursor || (i.display.dragCursor = q("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), i.display.lineSpace.insertBefore(i.display.dragCursor, i.display.cursorDiv)), me(i.display.dragCursor, p);
3971
3971
  }
3972
3972
  }
3973
3973
  function py(i) {
@@ -4257,15 +4257,15 @@ b`.split(/\n/).length != 3 ? function(i) {
4257
4257
  Wa(i);
4258
4258
  });
4259
4259
  }
4260
- function dd(i, s, f) {
4260
+ function hd(i, s, f) {
4261
4261
  var p = Io(i.text, s + f, f);
4262
4262
  return p < 0 || p > i.text.length ? null : p;
4263
4263
  }
4264
- function hd(i, s, f) {
4265
- var p = dd(i, s.ch, f);
4264
+ function vd(i, s, f) {
4265
+ var p = hd(i, s.ch, f);
4266
4266
  return p == null ? null : new pe(s.line, p, f < 0 ? "after" : "before");
4267
4267
  }
4268
- function vd(i, s, f, p, h) {
4268
+ function md(i, s, f, p, h) {
4269
4269
  if (i) {
4270
4270
  s.doc.direction == "rtl" && (h = -h);
4271
4271
  var g = kr(f, s.doc.direction);
@@ -4277,7 +4277,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4277
4277
  var $ = qr(s, B, A).top;
4278
4278
  A = fi(function(Y) {
4279
4279
  return qr(s, B, Y).top == $;
4280
- }, h < 0 == (E.level == 1) ? E.from : E.to - 1, A), S == "before" && (A = dd(f, A, 1));
4280
+ }, h < 0 == (E.level == 1) ? E.from : E.to - 1, A), S == "before" && (A = hd(f, A, 1));
4281
4281
  } else
4282
4282
  A = h < 0 ? E.to : E.from;
4283
4283
  return new pe(p, A, S);
@@ -4288,13 +4288,13 @@ b`.split(/\n/).length != 3 ? function(i) {
4288
4288
  function CC(i, s, f, p) {
4289
4289
  var h = kr(s, i.doc.direction);
4290
4290
  if (!h)
4291
- return hd(s, f, p);
4291
+ return vd(s, f, p);
4292
4292
  f.ch >= s.text.length ? (f.ch = s.text.length, f.sticky = "before") : f.ch <= 0 && (f.ch = 0, f.sticky = "after");
4293
4293
  var g = Fo(h, f.ch, f.sticky), E = h[g];
4294
4294
  if (i.doc.direction == "ltr" && E.level % 2 == 0 && (p > 0 ? E.to > f.ch : E.from < f.ch))
4295
- return hd(s, f, p);
4295
+ return vd(s, f, p);
4296
4296
  var x = function(ye, xe) {
4297
- return dd(s, ye instanceof pe ? ye.ch : ye, xe);
4297
+ return hd(s, ye instanceof pe ? ye.ch : ye, xe);
4298
4298
  }, S, A = function(ye) {
4299
4299
  return i.options.lineWrapping ? (S = S || $a(i, s), _g(i, s, S, ye)) : { begin: 0, end: s.text.length };
4300
4300
  }, B = A(f.sticky == "before" ? x(f, -1) : f.ch);
@@ -4552,11 +4552,11 @@ b`.split(/\n/).length != 3 ? function(i) {
4552
4552
  };
4553
4553
  function gy(i, s) {
4554
4554
  var f = Pe(i.doc, s), p = Mr(f);
4555
- return p != f && (s = gt(p)), vd(!0, i, p, s, 1);
4555
+ return p != f && (s = gt(p)), md(!0, i, p, s, 1);
4556
4556
  }
4557
4557
  function TC(i, s) {
4558
4558
  var f = Pe(i.doc, s), p = uS(f);
4559
- return p != f && (s = gt(p)), vd(!0, i, f, s, -1);
4559
+ return p != f && (s = gt(p)), md(!0, i, f, s, -1);
4560
4560
  }
4561
4561
  function yy(i, s) {
4562
4562
  var f = gy(i, s.line), p = Pe(i.doc, f.line), h = kr(p, i.doc.direction);
@@ -4601,7 +4601,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4601
4601
  }
4602
4602
  function by(i, s, f, p) {
4603
4603
  var h = AC(i, s, p);
4604
- return h == "multi" && (i.state.keySeq = s), h == "handled" && an(i, "keyHandled", i, s, f), (h == "handled" || h == "multi") && (gn(f), Zf(i)), !!h;
4604
+ return h == "multi" && (i.state.keySeq = s), h == "handled" && an(i, "keyHandled", i, s, f), (h == "handled" || h == "multi") && (gn(f), Qf(i)), !!h;
4605
4605
  }
4606
4606
  function Ey(i, s) {
4607
4607
  var f = my(s, !0);
@@ -4619,7 +4619,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4619
4619
  return ic(i, p, !0);
4620
4620
  });
4621
4621
  }
4622
- var md = null;
4622
+ var gd = null;
4623
4623
  function _y(i) {
4624
4624
  var s = this;
4625
4625
  if (!(i.target && i.target != s.display.input.getField()) && (s.curOp.focus = F(X(s)), !Ot(s, i))) {
@@ -4627,7 +4627,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4627
4627
  var f = i.keyCode;
4628
4628
  s.display.shift = f == 16 || i.shiftKey;
4629
4629
  var p = Ey(s, i);
4630
- _ && (md = p ? f : null, !p && f == 88 && !Du && (M ? i.metaKey : i.ctrlKey) && s.replaceSelection("", null, "cut")), o && !M && !p && f == 46 && i.shiftKey && !i.ctrlKey && document.execCommand && document.execCommand("cut"), f == 18 && !/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className) && DC(s);
4630
+ _ && (gd = p ? f : null, !p && f == 88 && !Du && (M ? i.metaKey : i.ctrlKey) && s.replaceSelection("", null, "cut")), o && !M && !p && f == 46 && i.shiftKey && !i.ctrlKey && document.execCommand && document.execCommand("cut"), f == 18 && !/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className) && DC(s);
4631
4631
  }
4632
4632
  }
4633
4633
  function DC(i) {
@@ -4645,8 +4645,8 @@ b`.split(/\n/).length != 3 ? function(i) {
4645
4645
  var s = this;
4646
4646
  if (!(i.target && i.target != s.display.input.getField()) && !(yi(s.display, i) || Ot(s, i) || i.ctrlKey && !i.altKey || M && i.metaKey)) {
4647
4647
  var f = i.keyCode, p = i.charCode;
4648
- if (_ && f == md) {
4649
- md = null, gn(i);
4648
+ if (_ && f == gd) {
4649
+ gd = null, gn(i);
4650
4650
  return;
4651
4651
  }
4652
4652
  if (!(_ && (!i.which || i.which < 10) && Ey(s, i))) {
@@ -4655,16 +4655,16 @@ b`.split(/\n/).length != 3 ? function(i) {
4655
4655
  }
4656
4656
  }
4657
4657
  }
4658
- var kC = 400, gd = function(i, s, f) {
4658
+ var kC = 400, yd = function(i, s, f) {
4659
4659
  this.time = i, this.pos = s, this.button = f;
4660
4660
  };
4661
- gd.prototype.compare = function(i, s, f) {
4661
+ yd.prototype.compare = function(i, s, f) {
4662
4662
  return this.time + kC > i && qe(s, this.pos) == 0 && f == this.button;
4663
4663
  };
4664
4664
  var sl, ll;
4665
4665
  function MC(i, s) {
4666
4666
  var f = +/* @__PURE__ */ new Date();
4667
- return ll && ll.compare(f, i, s) ? (sl = ll = null, "triple") : sl && sl.compare(f, i, s) ? (ll = new gd(f, i, s), sl = null, "double") : (sl = new gd(f, i, s), ll = null, "single");
4667
+ return ll && ll.compare(f, i, s) ? (sl = ll = null, "triple") : sl && sl.compare(f, i, s) ? (ll = new yd(f, i, s), sl = null, "double") : (sl = new yd(f, i, s), ll = null, "single");
4668
4668
  }
4669
4669
  function Sy(i) {
4670
4670
  var s = this, f = s.display;
@@ -4675,11 +4675,11 @@ b`.split(/\n/).length != 3 ? function(i) {
4675
4675
  }, 100));
4676
4676
  return;
4677
4677
  }
4678
- if (!yd(s, i)) {
4678
+ if (!bd(s, i)) {
4679
4679
  var p = Xo(s, i), h = Au(i), g = p ? MC(p, h) : "single";
4680
4680
  Ee(s).focus(), h == 1 && s.state.selectingText && s.state.selectingText(i), !(p && NC(s, h, p, g, i)) && (h == 1 ? p ? OC(s, p, g, i) : Gi(i) == f.scroller && gn(i) : h == 2 ? (p && Qu(s.doc, p), setTimeout(function() {
4681
4681
  return f.input.focus();
4682
- }, 20)) : h == 3 && (Q ? s.display.input.onContextMenu(i) : Qf(s)));
4682
+ }, 20)) : h == 3 && (Q ? s.display.input.onContextMenu(i) : Jf(s)));
4683
4683
  }
4684
4684
  }
4685
4685
  }
@@ -4708,11 +4708,11 @@ b`.split(/\n/).length != 3 ? function(i) {
4708
4708
  function OC(i, s, f, p) {
4709
4709
  c ? setTimeout(Be(Cg, i), 0) : i.curOp.focus = F(X(i));
4710
4710
  var h = LC(i, f, p), g = i.doc.sel, E;
4711
- i.options.dragDrop && Mf && !i.isReadOnly() && f == "single" && (E = g.contains(s)) > -1 && (qe((E = g.ranges[E]).from(), s) < 0 || s.xRel > 0) && (qe(E.to(), s) > 0 || s.xRel < 0) ? IC(i, p, s, h) : BC(i, p, s, h);
4711
+ i.options.dragDrop && Nf && !i.isReadOnly() && f == "single" && (E = g.contains(s)) > -1 && (qe((E = g.ranges[E]).from(), s) < 0 || s.xRel > 0) && (qe(E.to(), s) > 0 || s.xRel < 0) ? IC(i, p, s, h) : BC(i, p, s, h);
4712
4712
  }
4713
4713
  function IC(i, s, f, p) {
4714
4714
  var h = i.display, g = !1, E = sn(i, function(A) {
4715
- v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Qf(i)), Nn(h.wrapper.ownerDocument, "mouseup", E), Nn(h.wrapper.ownerDocument, "mousemove", x), Nn(h.scroller, "dragstart", S), Nn(h.scroller, "drop", E), g || (gn(A), p.addNew || Qu(i.doc, f, null, null, p.extend), v && !w || c && d == 9 ? setTimeout(function() {
4715
+ v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Jf(i)), Nn(h.wrapper.ownerDocument, "mouseup", E), Nn(h.wrapper.ownerDocument, "mousemove", x), Nn(h.scroller, "dragstart", S), Nn(h.scroller, "drop", E), g || (gn(A), p.addNew || Qu(i.doc, f, null, null, p.extend), v && !w || c && d == 9 ? setTimeout(function() {
4716
4716
  h.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), h.input.focus();
4717
4717
  }, 20) : h.input.focus());
4718
4718
  }), x = function(A) {
@@ -4735,7 +4735,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4735
4735
  return new yt(p.from, p.to);
4736
4736
  }
4737
4737
  function BC(i, s, f, p) {
4738
- c && Qf(i);
4738
+ c && Jf(i);
4739
4739
  var h = i.display, g = i.doc;
4740
4740
  gn(s);
4741
4741
  var E, x, S = g.sel, A = S.ranges;
@@ -4743,7 +4743,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4743
4743
  p.addNew || (E = new yt(f, f)), f = Xo(i, s, !0, !0), x = -1;
4744
4744
  else {
4745
4745
  var B = Cy(i, f, p.unit);
4746
- p.extend ? E = pd(E, B.anchor, B.head, p.extend) : E = B;
4746
+ p.extend ? E = fd(E, B.anchor, B.head, p.extend) : E = B;
4747
4747
  }
4748
4748
  p.addNew ? x == -1 ? (x = A.length, Cn(
4749
4749
  g,
@@ -4753,7 +4753,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4753
4753
  g,
4754
4754
  Lr(i, A.slice(0, x).concat(A.slice(x + 1)), 0),
4755
4755
  { scroll: !1, origin: "*mouse" }
4756
- ), S = g.sel) : fd(g, x, E, at) : (x = 0, Cn(g, new cr([E], 0), at), S = g.sel);
4756
+ ), S = g.sel) : dd(g, x, E, at) : (x = 0, Cn(g, new cr([E], 0), at), S = g.sel);
4757
4757
  var $ = f;
4758
4758
  function Y(be) {
4759
4759
  if (qe($, be) != 0)
@@ -4847,7 +4847,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4847
4847
  }
4848
4848
  }
4849
4849
  }
4850
- function yd(i, s) {
4850
+ function bd(i, s) {
4851
4851
  return Ty(i, s, "gutterClick", !0);
4852
4852
  }
4853
4853
  function Ay(i, s) {
@@ -4872,8 +4872,8 @@ b`.split(/\n/).length != 3 ? function(i) {
4872
4872
  i.defineOption = f, i.Init = Qa, f("value", "", function(p, h) {
4873
4873
  return p.setValue(h);
4874
4874
  }, !0), f("mode", null, function(p, h) {
4875
- p.doc.modeOption = h, ld(p);
4876
- }, !0), f("indentUnit", 2, ld, !0), f("indentWithTabs", !1), f("smartIndent", !0), f("tabSize", 4, function(p) {
4875
+ p.doc.modeOption = h, ud(p);
4876
+ }, !0), f("indentUnit", 2, ud, !0), f("indentWithTabs", !1), f("smartIndent", !0), f("tabSize", 4, function(p) {
4877
4877
  Xs(p), js(p), Wn(p);
4878
4878
  }, !0), f("lineSeparator", null, function(p, h) {
4879
4879
  if (p.doc.lineSep = h, !!h) {
@@ -4908,15 +4908,15 @@ b`.split(/\n/).length != 3 ? function(i) {
4908
4908
  var E = rc(h), x = g != Qa && rc(g);
4909
4909
  x && x.detach && x.detach(p, E), E.attach && E.attach(p, x || null);
4910
4910
  }), f("extraKeys", null), f("configureMouse", null), f("lineWrapping", !1, jC, !0), f("gutters", [], function(p, h) {
4911
- p.display.gutterSpecs = ad(h, p.options.lineNumbers), Ys(p);
4911
+ p.display.gutterSpecs = sd(h, p.options.lineNumbers), Ys(p);
4912
4912
  }, !0), f("fixedGutter", !0, function(p, h) {
4913
- p.display.gutters.style.left = h ? qf(p.display) + "px" : "0", p.refresh();
4913
+ p.display.gutters.style.left = h ? Yf(p.display) + "px" : "0", p.refresh();
4914
4914
  }, !0), f("coverGutterNextToScrollbar", !1, function(p) {
4915
4915
  return Ua(p);
4916
4916
  }, !0), f("scrollbarStyle", "native", function(p) {
4917
4917
  kg(p), Ua(p), p.display.scrollbars.setScrollTop(p.doc.scrollTop), p.display.scrollbars.setScrollLeft(p.doc.scrollLeft);
4918
4918
  }, !0), f("lineNumbers", !1, function(p, h) {
4919
- p.display.gutterSpecs = ad(p.options.gutters, h), Ys(p);
4919
+ p.display.gutterSpecs = sd(p.options.gutters, h), Ys(p);
4920
4920
  }, !0), f("firstLineNumber", 1, Ys, !0), f("lineNumberFormatter", function(p) {
4921
4921
  return p;
4922
4922
  }, Ys, !0), f("showCursorWhenSelecting", !1, Ws, !0), f("resetSelectionOnContextMenu", !0), f("lineWiseCopyCut", !0), f("pasteLinesPerSelection", !0), f("selectionsMayTouch", !1), f("readOnly", !1, function(p, h) {
@@ -4945,7 +4945,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4945
4945
  }
4946
4946
  }
4947
4947
  function jC(i) {
4948
- i.options.lineWrapping ? (T(i.display.wrapper, "CodeMirror-wrap"), i.display.sizer.style.minWidth = "", i.display.sizerWidth = null) : (ie(i.display.wrapper, "CodeMirror-wrap"), Ff(i)), Yf(i), Wn(i), js(i), setTimeout(function() {
4948
+ i.options.lineWrapping ? (T(i.display.wrapper, "CodeMirror-wrap"), i.display.sizer.style.minWidth = "", i.display.sizerWidth = null) : (ie(i.display.wrapper, "CodeMirror-wrap"), $f(i)), Xf(i), Wn(i), js(i), setTimeout(function() {
4949
4949
  return Ua(i);
4950
4950
  }, 100);
4951
4951
  }
@@ -4982,13 +4982,13 @@ b`.split(/\n/).length != 3 ? function(i) {
4982
4982
  }, s.autofocus && !P && g.input.focus(), c && d < 11 && setTimeout(function() {
4983
4983
  return f.display.input.reset(!0);
4984
4984
  }, 20), WC(this), EC(), ea(this), this.curOp.forceUpdate = !0, zg(this, p), s.autofocus && !P || this.hasFocus() ? setTimeout(function() {
4985
- f.hasFocus() && !f.state.focused && Jf(f);
4985
+ f.hasFocus() && !f.state.focused && ed(f);
4986
4986
  }, 20) : ja(this);
4987
4987
  for (var E in oc)
4988
4988
  oc.hasOwnProperty(E) && oc[E](this, s[E], Qa);
4989
4989
  Lg(this), s.finishInit && s.finishInit(this);
4990
- for (var x = 0; x < bd.length; ++x)
4991
- bd[x](this);
4990
+ for (var x = 0; x < Ed.length; ++x)
4991
+ Ed[x](this);
4992
4992
  ta(this), v && s.lineWrapping && getComputedStyle(g.lineDiv).textRendering == "optimizelegibility" && (g.lineDiv.style.textRendering = "auto");
4993
4993
  }
4994
4994
  At.defaults = Ry, At.optionHandlers = oc;
@@ -4997,7 +4997,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4997
4997
  ze(s.scroller, "mousedown", sn(i, Sy)), c && d < 11 ? ze(s.scroller, "dblclick", sn(i, function(S) {
4998
4998
  if (!Ot(i, S)) {
4999
4999
  var A = Xo(i, S);
5000
- if (!(!A || yd(i, S) || yi(i.display, S))) {
5000
+ if (!(!A || bd(i, S) || yi(i.display, S))) {
5001
5001
  gn(S);
5002
5002
  var B = i.findWordAt(A);
5003
5003
  Qu(i.doc, B.anchor, B.head);
@@ -5029,7 +5029,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5029
5029
  return B * B + $ * $ > 20 * 20;
5030
5030
  }
5031
5031
  ze(s.scroller, "touchstart", function(S) {
5032
- if (!Ot(i, S) && !g(S) && !yd(i, S)) {
5032
+ if (!Ot(i, S) && !g(S) && !bd(i, S)) {
5033
5033
  s.input.ensurePolled(), clearTimeout(f);
5034
5034
  var A = +/* @__PURE__ */ new Date();
5035
5035
  s.activeTouch = {
@@ -5074,14 +5074,14 @@ b`.split(/\n/).length != 3 ? function(i) {
5074
5074
  ze(x, "keyup", function(S) {
5075
5075
  return xy.call(i, S);
5076
5076
  }), ze(x, "keydown", sn(i, _y)), ze(x, "keypress", sn(i, wy)), ze(x, "focus", function(S) {
5077
- return Jf(i, S);
5077
+ return ed(i, S);
5078
5078
  }), ze(x, "blur", function(S) {
5079
5079
  return ja(i, S);
5080
5080
  });
5081
5081
  }
5082
- var bd = [];
5082
+ var Ed = [];
5083
5083
  At.defineInitHook = function(i) {
5084
- return bd.push(i);
5084
+ return Ed.push(i);
5085
5085
  };
5086
5086
  function ul(i, s, f, p) {
5087
5087
  var h = i.doc, g;
@@ -5107,7 +5107,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5107
5107
  var se = h.sel.ranges[ne];
5108
5108
  if (se.head.line == s && se.head.ch < A.length) {
5109
5109
  var ve = pe(s, A.length);
5110
- fd(h, ne, new yt(ve, ve));
5110
+ dd(h, ne, new yt(ve, ve));
5111
5111
  break;
5112
5112
  }
5113
5113
  }
@@ -5116,7 +5116,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5116
5116
  function ac(i) {
5117
5117
  Or = i;
5118
5118
  }
5119
- function Ed(i, s, f, p, h) {
5119
+ function _d(i, s, f, p, h) {
5120
5120
  var g = i.doc;
5121
5121
  i.display.shift = !1, p || (p = g.sel);
5122
5122
  var E = +/* @__PURE__ */ new Date() - 200, x = h == "paste" || i.state.pasteIncoming > E, S = Bs(s), A = null;
@@ -5151,7 +5151,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5151
5151
  var f = i.clipboardData && i.clipboardData.getData("Text");
5152
5152
  if (f)
5153
5153
  return i.preventDefault(), !s.isReadOnly() && !s.options.disableInput && s.hasFocus() && tr(s, function() {
5154
- return Ed(s, f, 0, null, "paste");
5154
+ return _d(s, f, 0, null, "paste");
5155
5155
  }), !0;
5156
5156
  }
5157
5157
  function ky(i, s) {
@@ -5179,7 +5179,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5179
5179
  }
5180
5180
  return { text: s, ranges: f };
5181
5181
  }
5182
- function _d(i, s, f, p) {
5182
+ function xd(i, s, f, p) {
5183
5183
  i.setAttribute("autocorrect", f ? "on" : "off"), i.setAttribute("autocapitalize", p ? "on" : "off"), i.setAttribute("spellcheck", !!s);
5184
5184
  }
5185
5185
  function Ny() {
@@ -5251,7 +5251,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5251
5251
  for (var $ = B; $ < g; ++$)
5252
5252
  ul(this, $, p);
5253
5253
  var Y = this.doc.sel.ranges;
5254
- S.ch == 0 && h.length == Y.length && Y[E].from().ch > 0 && fd(this.doc, E, new yt(S, Y[E].to()), Se);
5254
+ S.ch == 0 && h.length == Y.length && Y[E].from().ch > 0 && dd(this.doc, E, new yt(S, Y[E].to()), Se);
5255
5255
  }
5256
5256
  }
5257
5257
  }),
@@ -5322,7 +5322,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5322
5322
  return ju(this, Xe(this.doc, p), h || "page");
5323
5323
  },
5324
5324
  coordsChar: function(p, h) {
5325
- return p = yg(this, p, h || "page"), Gf(this, p.left, p.top);
5325
+ return p = yg(this, p, h || "page"), Vf(this, p.left, p.top);
5326
5326
  },
5327
5327
  lineAtHeight: function(p, h) {
5328
5328
  return p = yg(this, { top: p, left: 0 }, h || "page").top, Gr(this.doc, p + this.display.viewOffset);
@@ -5371,20 +5371,20 @@ b`.split(/\n/).length != 3 ? function(i) {
5371
5371
  findPosH: function(p, h, g, E) {
5372
5372
  var x = 1;
5373
5373
  h < 0 && (x = -1, h = -h);
5374
- for (var S = Xe(this.doc, p), A = 0; A < h && (S = xd(this.doc, S, x, g, E), !S.hitSide); ++A)
5374
+ for (var S = Xe(this.doc, p), A = 0; A < h && (S = wd(this.doc, S, x, g, E), !S.hitSide); ++A)
5375
5375
  ;
5376
5376
  return S;
5377
5377
  },
5378
5378
  moveH: On(function(p, h) {
5379
5379
  var g = this;
5380
5380
  this.extendSelectionsBy(function(E) {
5381
- return g.display.shift || g.doc.extend || E.empty() ? xd(g.doc, E.head, p, h, g.options.rtlMoveVisually) : p < 0 ? E.from() : E.to();
5381
+ return g.display.shift || g.doc.extend || E.empty() ? wd(g.doc, E.head, p, h, g.options.rtlMoveVisually) : p < 0 ? E.from() : E.to();
5382
5382
  }, ht);
5383
5383
  }),
5384
5384
  deleteH: On(function(p, h) {
5385
5385
  var g = this.doc.sel, E = this.doc;
5386
5386
  g.somethingSelected() ? E.replaceSelection("", null, "+delete") : Za(this, function(x) {
5387
- var S = xd(E, x.head, p, h, !1);
5387
+ var S = wd(E, x.head, p, h, !1);
5388
5388
  return p < 0 ? { from: S, to: x.head } : { from: x.head, to: S };
5389
5389
  });
5390
5390
  }),
@@ -5406,7 +5406,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5406
5406
  var $ = Nr(g, B.head, "div");
5407
5407
  B.goalColumn != null && ($.left = B.goalColumn), x.push($.left);
5408
5408
  var Y = Ly(g, $, p, h);
5409
- return h == "page" && B == E.sel.primary() && td(g, ju(g, Y, "div").top - $.top), Y;
5409
+ return h == "page" && B == E.sel.primary() && nd(g, ju(g, Y, "div").top - $.top), Y;
5410
5410
  }, ht), x.length)
5411
5411
  for (var A = 0; A < E.sel.ranges.length; A++)
5412
5412
  E.sel.ranges[A].goalColumn = x[A];
@@ -5449,7 +5449,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5449
5449
  top: p.scrollTop,
5450
5450
  height: p.scrollHeight - Kr(this) - this.display.barHeight,
5451
5451
  width: p.scrollWidth - Kr(this) - this.display.barWidth,
5452
- clientHeight: zf(this),
5452
+ clientHeight: jf(this),
5453
5453
  clientWidth: qo(this)
5454
5454
  };
5455
5455
  },
@@ -5484,7 +5484,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5484
5484
  },
5485
5485
  refresh: On(function() {
5486
5486
  var p = this.display.cachedTextHeight;
5487
- Wn(this), this.curOp.forceUpdate = !0, js(this), Us(this, this.doc.scrollLeft, this.doc.scrollTop), id(this.display), (p == null || Math.abs(p - Ha(this.display)) > 0.5 || this.options.lineWrapping) && Yf(this), Nt(this, "refresh", this);
5487
+ Wn(this), this.curOp.forceUpdate = !0, js(this), Us(this, this.doc.scrollLeft, this.doc.scrollTop), od(this.display), (p == null || Math.abs(p - Ha(this.display)) > 0.5 || this.options.lineWrapping) && Xf(this), Nt(this, "refresh", this);
5488
5488
  }),
5489
5489
  swapDoc: On(function(p) {
5490
5490
  var h = this.doc;
@@ -5512,7 +5512,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5512
5512
  i.registerHelper(p, h, E), f[p]._global.push({ pred: g, val: E });
5513
5513
  };
5514
5514
  }
5515
- function xd(i, s, f, p, h) {
5515
+ function wd(i, s, f, p, h) {
5516
5516
  var g = s, E = f, x = Pe(i, s.line), S = h && i.direction == "rtl" ? -f : f;
5517
5517
  function A() {
5518
5518
  var xe = s.line + S;
@@ -5529,10 +5529,10 @@ b`.split(/\n/).length != 3 ? function(i) {
5529
5529
  be = new pe(s.line, Math.max(0, Math.min(x.text.length, s.ch + f * ($e ? 2 : 1))), -f);
5530
5530
  }
5531
5531
  } else
5532
- h ? be = CC(i.cm, x, s, f) : be = hd(x, s, f);
5532
+ h ? be = CC(i.cm, x, s, f) : be = vd(x, s, f);
5533
5533
  if (be == null)
5534
5534
  if (!xe && A())
5535
- s = vd(h, i.cm, x, s.line, S);
5535
+ s = md(h, i.cm, x, s.line, S);
5536
5536
  else
5537
5537
  return !1;
5538
5538
  else
@@ -5565,7 +5565,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5565
5565
  E = (f > 0 ? s.bottom : s.top) + f * S;
5566
5566
  } else
5567
5567
  p == "line" && (E = f > 0 ? s.bottom + 3 : s.top - 3);
5568
- for (var A; A = Gf(i, g, E), !!A.outside; ) {
5568
+ for (var A; A = Vf(i, g, E), !!A.outside; ) {
5569
5569
  if (f < 0 ? E <= 0 : E >= h.height) {
5570
5570
  A.hitSide = !0;
5571
5571
  break;
@@ -5579,7 +5579,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5579
5579
  };
5580
5580
  _t.prototype.init = function(i) {
5581
5581
  var s = this, f = this, p = f.cm, h = f.div = i.lineDiv;
5582
- h.contentEditable = !0, _d(h, p.options.spellcheck, p.options.autocorrect, p.options.autocapitalize);
5582
+ h.contentEditable = !0, xd(h, p.options.spellcheck, p.options.autocorrect, p.options.autocapitalize);
5583
5583
  function g(x) {
5584
5584
  for (var S = x.target; S; S = S.parentNode) {
5585
5585
  if (S == h)
@@ -5625,7 +5625,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5625
5625
  }
5626
5626
  }
5627
5627
  var B = Ny(), $ = B.firstChild;
5628
- _d($), p.display.lineSpace.insertBefore(B, p.display.lineSpace.firstChild), $.value = Or.text.join(`
5628
+ xd($), p.display.lineSpace.insertBefore(B, p.display.lineSpace.firstChild), $.value = Or.text.join(`
5629
5629
  `);
5630
5630
  var Y = F(ee(h));
5631
5631
  Z($), setTimeout(function() {
@@ -5777,14 +5777,14 @@ b`.split(/\n/).length != 3 ? function(i) {
5777
5777
  }, _t.prototype.setUneditable = function(i) {
5778
5778
  i.contentEditable = "false";
5779
5779
  }, _t.prototype.onKeyPress = function(i) {
5780
- i.charCode == 0 || this.composing || (i.preventDefault(), this.cm.isReadOnly() || sn(this.cm, Ed)(this.cm, String.fromCharCode(i.charCode == null ? i.keyCode : i.charCode), 0));
5780
+ i.charCode == 0 || this.composing || (i.preventDefault(), this.cm.isReadOnly() || sn(this.cm, _d)(this.cm, String.fromCharCode(i.charCode == null ? i.keyCode : i.charCode), 0));
5781
5781
  }, _t.prototype.readOnlyChanged = function(i) {
5782
5782
  this.div.contentEditable = String(i != "nocursor");
5783
5783
  }, _t.prototype.onContextMenu = function() {
5784
5784
  }, _t.prototype.resetPosition = function() {
5785
5785
  }, _t.prototype.needsContentAttribute = !0;
5786
5786
  function Oy(i, s) {
5787
- var f = jf(i, s.line);
5787
+ var f = Wf(i, s.line);
5788
5788
  if (!f || f.hidden)
5789
5789
  return null;
5790
5790
  var p = Pe(i.doc, s.line), h = cg(f, p, s.line), g = kr(p, i.doc.direction), E = "left";
@@ -5949,7 +5949,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5949
5949
  }, Ft.prototype.createField = function(i) {
5950
5950
  this.wrapper = Ny(), this.textarea = this.wrapper.firstChild;
5951
5951
  var s = this.cm.options;
5952
- _d(this.textarea, s.spellcheck, s.autocorrect, s.autocapitalize);
5952
+ xd(this.textarea, s.spellcheck, s.autocorrect, s.autocapitalize);
5953
5953
  }, Ft.prototype.screenReaderLabelChanged = function(i) {
5954
5954
  i ? this.textarea.setAttribute("aria-label", i) : this.textarea.removeAttribute("aria-label");
5955
5955
  }, Ft.prototype.prepareSelection = function() {
@@ -6025,7 +6025,7 @@ b`.split(/\n/).length != 3 ? function(i) {
6025
6025
  for (var E = 0, x = Math.min(p.length, h.length); E < x && p.charCodeAt(E) == h.charCodeAt(E); )
6026
6026
  ++E;
6027
6027
  return tr(s, function() {
6028
- Ed(
6028
+ _d(
6029
6029
  s,
6030
6030
  h.slice(E),
6031
6031
  p.length - E,
@@ -6119,7 +6119,7 @@ b`.split(/\n/).length != 3 ? function(i) {
6119
6119
  return x;
6120
6120
  }
6121
6121
  function YC(i) {
6122
- i.off = Nn, i.on = ze, i.wheelEventPixels = nC, i.Doc = Un, i.splitLines = Bs, i.countColumn = He, i.findColumn = it, i.isWordChar = ks, i.Pass = he, i.signal = Nt, i.Line = Ba, i.changeEnd = Qi, i.scrollbarModel = Dg, i.Pos = pe, i.cmpPos = qe, i.modes = zo, i.mimeModes = Jn, i.resolveMode = di, i.getMode = Uo, i.modeExtensions = Vi, i.extendMode = Nf, i.copyState = mr, i.startState = hi, i.innerMode = Ln, i.commands = ol, i.keyMap = Ei, i.keyName = my, i.isModifierKey = hy, i.lookupKey = Xa, i.normalizeKeyMap = SC, i.StringStream = Et, i.SharedTextMarker = nl, i.TextMarker = eo, i.LineWidget = tl, i.e_preventDefault = gn, i.e_stopPropagation = Tu, i.e_stop = Ho, i.addClass = T, i.contains = Me, i.rmClass = ie, i.keyNames = to;
6122
+ i.off = Nn, i.on = ze, i.wheelEventPixels = nC, i.Doc = Un, i.splitLines = Bs, i.countColumn = He, i.findColumn = it, i.isWordChar = ks, i.Pass = he, i.signal = Nt, i.Line = Ba, i.changeEnd = Qi, i.scrollbarModel = Dg, i.Pos = pe, i.cmpPos = qe, i.modes = zo, i.mimeModes = Jn, i.resolveMode = di, i.getMode = Uo, i.modeExtensions = Vi, i.extendMode = Lf, i.copyState = mr, i.startState = hi, i.innerMode = Ln, i.commands = ol, i.keyMap = Ei, i.keyName = my, i.isModifierKey = hy, i.lookupKey = Xa, i.normalizeKeyMap = SC, i.StringStream = Et, i.SharedTextMarker = nl, i.TextMarker = eo, i.LineWidget = tl, i.e_preventDefault = gn, i.e_stopPropagation = Tu, i.e_stop = Ho, i.addClass = T, i.contains = Me, i.rmClass = ie, i.keyNames = to;
6123
6123
  }
6124
6124
  HC(At), UC(At);
6125
6125
  var XC = "iter insert remove copy getEditor constructor".split(" ");
@@ -6141,7 +6141,7 @@ b`.split(/\n/).length != 3 ? function(i) {
6141
6141
  Un.prototype[i] = s;
6142
6142
  }, At.fromTextArea = qC, YC(At), At.version = "5.65.20", At;
6143
6143
  });
6144
- }(Cd)), Cd.exports;
6144
+ }(Td)), Td.exports;
6145
6145
  }
6146
6146
  (function(e, t) {
6147
6147
  (function(n) {
@@ -6510,7 +6510,7 @@ ri.prototype.clear = function() {
6510
6510
  for (t in e)
6511
6511
  this.unclaim(t);
6512
6512
  };
6513
- function Qc(e) {
6513
+ function Jc(e) {
6514
6514
  return Array.prototype.concat.apply([], e);
6515
6515
  }
6516
6516
  const zl = Object.prototype.toString, vT = Object.prototype.hasOwnProperty;
@@ -6520,7 +6520,7 @@ function ki(e) {
6520
6520
  function Qt(e) {
6521
6521
  return e !== void 0;
6522
6522
  }
6523
- function Jc(e) {
6523
+ function ep(e) {
6524
6524
  return e == null;
6525
6525
  }
6526
6526
  function et(e) {
@@ -6544,10 +6544,10 @@ function mT(e) {
6544
6544
  throw new Error("must supply array");
6545
6545
  }
6546
6546
  function ei(e, t) {
6547
- return !Jc(e) && vT.call(e, t);
6547
+ return !ep(e) && vT.call(e, t);
6548
6548
  }
6549
6549
  function ft(e, t) {
6550
- const n = Ep(t);
6550
+ const n = _p(t);
6551
6551
  let r;
6552
6552
  return W(e, function(o, a) {
6553
6553
  if (n(o, a))
@@ -6555,7 +6555,7 @@ function ft(e, t) {
6555
6555
  }), r;
6556
6556
  }
6557
6557
  function YE(e, t) {
6558
- const n = Ep(t);
6558
+ const n = _p(t);
6559
6559
  let r = et(e) ? -1 : void 0;
6560
6560
  return W(e, function(o, a) {
6561
6561
  if (n(o, a))
@@ -6563,7 +6563,7 @@ function YE(e, t) {
6563
6563
  }), r;
6564
6564
  }
6565
6565
  function Je(e, t) {
6566
- const n = Ep(t);
6566
+ const n = _p(t);
6567
6567
  let r = [];
6568
6568
  return W(e, function(o, a) {
6569
6569
  n(o, a) && r.push(o);
@@ -6582,7 +6582,7 @@ function gT(e, t) {
6582
6582
  if (ki(e))
6583
6583
  return [];
6584
6584
  mT(e);
6585
- const n = Ep(t);
6585
+ const n = _p(t);
6586
6586
  return e.filter(function(r, o) {
6587
6587
  return !n(r, o);
6588
6588
  });
@@ -6606,11 +6606,11 @@ function dn(e, t) {
6606
6606
  n.push(t(r, o));
6607
6607
  }), n;
6608
6608
  }
6609
- function ep(e) {
6609
+ function tp(e) {
6610
6610
  return e && Object.keys(e) || [];
6611
6611
  }
6612
6612
  function yT(e) {
6613
- return ep(e).length;
6613
+ return tp(e).length;
6614
6614
  }
6615
6615
  function Kh(e) {
6616
6616
  return dn(e, (t) => t);
@@ -6657,7 +6657,7 @@ function Br(e) {
6657
6657
  function qh(e) {
6658
6658
  return _n(e) ? e : (t) => t[e];
6659
6659
  }
6660
- function Ep(e) {
6660
+ function _p(e) {
6661
6661
  return _n(e) ? e : (t) => t === e;
6662
6662
  }
6663
6663
  function ET(e) {
@@ -6704,7 +6704,7 @@ function QE(e, t, n) {
6704
6704
  if (o === "__proto__")
6705
6705
  throw new Error("illegal key: __proto__");
6706
6706
  let l = t[a + 1], u = r[o];
6707
- Qt(l) && Jc(u) && (u = r[o] = isNaN(+l) ? {} : []), ki(l) ? ki(n) ? delete r[o] : r[o] = n : r = u;
6707
+ Qt(l) && ep(u) && (u = r[o] = isNaN(+l) ? {} : []), ki(l) ? ki(n) ? delete r[o] : r[o] = n : r = u;
6708
6708
  }), e;
6709
6709
  }
6710
6710
  function Sr(e, t) {
@@ -6800,7 +6800,7 @@ po.prototype.array = function() {
6800
6800
  po.prototype.has = po.prototype.contains = function(e) {
6801
6801
  return this.list.contains(e);
6802
6802
  };
6803
- function _p(e) {
6803
+ function xp(e) {
6804
6804
  for (var t; t = e.firstChild; )
6805
6805
  e.removeChild(t);
6806
6806
  return e;
@@ -6809,20 +6809,20 @@ function Ni(e, t, n) {
6809
6809
  var r = n ? e : e.parentNode;
6810
6810
  return r && typeof r.closest == "function" && r.closest(t) || null;
6811
6811
  }
6812
- var tp = {}, np, eh, Yh;
6812
+ var np = {}, rp, eh, Yh;
6813
6813
  function JE() {
6814
- np = window.addEventListener ? "addEventListener" : "attachEvent", eh = window.removeEventListener ? "removeEventListener" : "detachEvent", Yh = np !== "addEventListener" ? "on" : "";
6814
+ rp = window.addEventListener ? "addEventListener" : "attachEvent", eh = window.removeEventListener ? "removeEventListener" : "detachEvent", Yh = rp !== "addEventListener" ? "on" : "";
6815
6815
  }
6816
- var kT = tp.bind = function(e, t, n, r) {
6817
- return np || JE(), e[np](Yh + t, n, r || !1), n;
6818
- }, MT = tp.unbind = function(e, t, n, r) {
6816
+ var kT = np.bind = function(e, t, n, r) {
6817
+ return rp || JE(), e[rp](Yh + t, n, r || !1), n;
6818
+ }, MT = np.unbind = function(e, t, n, r) {
6819
6819
  return eh || JE(), e[eh](Yh + t, n, r || !1), n;
6820
6820
  }, je = /* @__PURE__ */ xT({
6821
6821
  __proto__: null,
6822
6822
  bind: kT,
6823
6823
  unbind: MT,
6824
- default: tp
6825
- }, [tp]), e_ = ["focus", "blur"];
6824
+ default: np
6825
+ }, [np]), e_ = ["focus", "blur"];
6826
6826
  function NT(e, t, n, r, o) {
6827
6827
  return e_.indexOf(n) !== -1 && (o = !0), je.bind(e, n, function(a) {
6828
6828
  var l = a.target || a.srcElement;
@@ -7013,7 +7013,7 @@ fo.prototype.array = function() {
7013
7013
  fo.prototype.has = fo.prototype.contains = function(e) {
7014
7014
  return this.list.contains(e);
7015
7015
  };
7016
- function xp(e) {
7016
+ function wp(e) {
7017
7017
  for (var t; t = e.firstChild; )
7018
7018
  e.removeChild(t);
7019
7019
  return e;
@@ -7042,9 +7042,9 @@ function Fe(e, t) {
7042
7042
  var n;
7043
7043
  return e = e.trim(), e.charAt(0) === "<" ? (n = a_(e).firstChild, n = document.importNode(n, !0)) : n = document.createElementNS(Zh.svg, e), t && Ce(n, t), n;
7044
7044
  }
7045
- var Td = null;
7045
+ var Ad = null;
7046
7046
  function rh() {
7047
- return Td === null && (Td = Fe("svg")), Td;
7047
+ return Ad === null && (Ad = Fe("svg")), Ad;
7048
7048
  }
7049
7049
  function $y(e, t) {
7050
7050
  var n, r, o = Object.keys(t);
@@ -7079,7 +7079,7 @@ var Hy = /([&<>]{1})/g, WT = /([&<>\n\r"]{1})/g, UT = {
7079
7079
  ">": "&gt;",
7080
7080
  '"': "'"
7081
7081
  };
7082
- function Ad(e, t) {
7082
+ function Pd(e, t) {
7083
7083
  function n(r, o) {
7084
7084
  return UT[o] || o;
7085
7085
  }
@@ -7089,12 +7089,12 @@ function s_(e, t) {
7089
7089
  var n, r, o, a, l;
7090
7090
  switch (e.nodeType) {
7091
7091
  case 3:
7092
- t.push(Ad(e.textContent, Hy));
7092
+ t.push(Pd(e.textContent, Hy));
7093
7093
  break;
7094
7094
  case 1:
7095
7095
  if (t.push("<", e.tagName), e.hasAttributes())
7096
7096
  for (o = e.attributes, n = 0, r = o.length; n < r; ++n)
7097
- a = o.item(n), t.push(" ", a.name, '="', Ad(a.value, WT), '"');
7097
+ a = o.item(n), t.push(" ", a.name, '="', Pd(a.value, WT), '"');
7098
7098
  if (e.hasChildNodes()) {
7099
7099
  for (t.push(">"), l = e.childNodes, n = 0, r = l.length; n < r; ++n)
7100
7100
  s_(l.item(n), t);
@@ -7103,7 +7103,7 @@ function s_(e, t) {
7103
7103
  t.push("/>");
7104
7104
  break;
7105
7105
  case 8:
7106
- t.push("<!--", Ad(e.nodeValue, Hy), "-->");
7106
+ t.push("<!--", Pd(e.nodeValue, Hy), "-->");
7107
7107
  break;
7108
7108
  case 4:
7109
7109
  t.push("<![CDATA[", e.nodeValue, "]]>");
@@ -7115,7 +7115,7 @@ function s_(e, t) {
7115
7115
  }
7116
7116
  function GT(e, t) {
7117
7117
  var n = a_(t);
7118
- if (xp(e), !!t) {
7118
+ if (wp(e), !!t) {
7119
7119
  KT(n) || (n = n.documentElement);
7120
7120
  for (var r = qT(n.childNodes), o = 0; o < r.length; o++)
7121
7121
  n_(r[o], e);
@@ -7166,7 +7166,7 @@ function QT(e) {
7166
7166
  function Qh(e) {
7167
7167
  return Array.isArray(e);
7168
7168
  }
7169
- function Pd(e, t) {
7169
+ function Rd(e, t) {
7170
7170
  return Object.prototype.hasOwnProperty.call(e, t);
7171
7171
  }
7172
7172
  function Hc(...e) {
@@ -7207,9 +7207,9 @@ function l_(e, t) {
7207
7207
  M = M[P.shift()];
7208
7208
  return M;
7209
7209
  }
7210
- if (Pd(o, D))
7210
+ if (Rd(o, D))
7211
7211
  return o[D];
7212
- if (Pd(r, D)) {
7212
+ if (Rd(r, D)) {
7213
7213
  if (n.indexOf(D) !== -1)
7214
7214
  throw n.push(D), l("Cannot resolve circular dependency!");
7215
7215
  return n.push(D), o[D] = r[D][0](r[D][1]), n.pop(), o[D];
@@ -7222,7 +7222,7 @@ function l_(e, t) {
7222
7222
  D = Hc(D.slice());
7223
7223
  else
7224
7224
  throw l(`Cannot invoke "${D}". Expected a function!`);
7225
- const M = (D.$inject || n2(D)).map((L) => Pd(k, L) ? k[L] : u(L));
7225
+ const M = (D.$inject || n2(D)).map((L) => Rd(k, L) ? k[L] : u(L));
7226
7226
  return {
7227
7227
  fn: D,
7228
7228
  dependencies: M
@@ -7345,7 +7345,7 @@ function Ea(e) {
7345
7345
  function o2(e) {
7346
7346
  return ["M", e.x, e.y];
7347
7347
  }
7348
- function Rd(e) {
7348
+ function Dd(e) {
7349
7349
  return ["L", e.x, e.y];
7350
7350
  }
7351
7351
  function a2(e, t, n) {
@@ -7356,7 +7356,7 @@ function s2(e, t) {
7356
7356
  for (let o = 1; o < n; o++) {
7357
7357
  const a = e[o - 1], l = e[o], u = e[o + 1];
7358
7358
  if (!u || !t) {
7359
- r.push(Rd(l));
7359
+ r.push(Dd(l));
7360
7360
  continue;
7361
7361
  }
7362
7362
  const c = Math.min(
@@ -7365,11 +7365,11 @@ function s2(e, t) {
7365
7365
  ih(u.x - l.x, u.y - l.y)
7366
7366
  );
7367
7367
  if (!c) {
7368
- r.push(Rd(l));
7368
+ r.push(Dd(l));
7369
7369
  continue;
7370
7370
  }
7371
7371
  const d = cc(l, a, c), v = cc(l, a, c * 0.5), m = cc(l, u, c), y = cc(l, u, c * 0.5);
7372
- r.push(Rd(d)), r.push(a2(v, y, m));
7372
+ r.push(Dd(d)), r.push(a2(v, y, m));
7373
7373
  }
7374
7374
  return r;
7375
7375
  }
@@ -7383,7 +7383,7 @@ function cc(e, t, n) {
7383
7383
  function ih(e, t) {
7384
7384
  return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
7385
7385
  }
7386
- function wp(e, t, n) {
7386
+ function Sp(e, t, n) {
7387
7387
  We(t) && (n = t, t = null), t || (t = {});
7388
7388
  const r = Fe("path", t);
7389
7389
  return We(n) && (r.dataset.cornerRadius = String(n)), u_(r, e);
@@ -7394,7 +7394,7 @@ function u_(e, t) {
7394
7394
  d: Ea(s2(t, n))
7395
7395
  }), e;
7396
7396
  }
7397
- function Sp(e) {
7397
+ function Cp(e) {
7398
7398
  return Je(e, function(t) {
7399
7399
  return !ft(e, function(n) {
7400
7400
  return n !== t && c_(t, n);
@@ -7505,7 +7505,7 @@ Eo.prototype.drawShape = function(t, n, r) {
7505
7505
  }), f_(n) ? Ce(o, K({}, this.FRAME_STYLE, r || {})) : Ce(o, K({}, this.SHAPE_STYLE, r || {})), Ue(t, o), o;
7506
7506
  };
7507
7507
  Eo.prototype.drawConnection = function(t, n, r) {
7508
- var o = wp(n.waypoints, K({}, this.CONNECTION_STYLE, r || {}));
7508
+ var o = Sp(n.waypoints, K({}, this.CONNECTION_STYLE, r || {}));
7509
7509
  return Ue(t, o), o;
7510
7510
  };
7511
7511
  Eo.prototype.getShapePath = function(t) {
@@ -7617,7 +7617,7 @@ function oh(e, t) {
7617
7617
  y: Math.round(e.y + (t.y - e.y) / 2)
7618
7618
  };
7619
7619
  }
7620
- var m2 = /,?([a-z]),?/gi, Uy = parseFloat, $t = Math, ro = $t.PI, Zr = $t.min, Qr = $t.max, Gy = $t.pow, lo = $t.abs, g2 = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig, y2 = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig, rp = Array.isArray || function(e) {
7620
+ var m2 = /,?([a-z]),?/gi, Uy = parseFloat, $t = Math, ro = $t.PI, Zr = $t.min, Qr = $t.max, Gy = $t.pow, lo = $t.abs, g2 = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig, y2 = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig, ip = Array.isArray || function(e) {
7621
7621
  return e instanceof Array;
7622
7622
  };
7623
7623
  function tv(e, t) {
@@ -7650,7 +7650,7 @@ function _2(e) {
7650
7650
  if (t.arr)
7651
7651
  return wl(t.arr);
7652
7652
  var n = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, r = [];
7653
- return rp(e) && rp(e[0]) && (r = wl(e)), r.length || String(e).replace(g2, function(o, a, l) {
7653
+ return ip(e) && ip(e[0]) && (r = wl(e)), r.length || String(e).replace(g2, function(o, a, l) {
7654
7654
  var u = [], c = a.toLowerCase();
7655
7655
  for (l.replace(y2, function(d, v) {
7656
7656
  v && u.push(+v);
@@ -7680,15 +7680,15 @@ function ah(e, t, n, r) {
7680
7680
  function d_() {
7681
7681
  return this.join(",").replace(m2, "$1");
7682
7682
  }
7683
- function ip(e) {
7683
+ function op(e) {
7684
7684
  var t = wl(e);
7685
7685
  return t.toString = d_, t;
7686
7686
  }
7687
7687
  function Vy(e, t, n, r, o, a, l, u, c) {
7688
7688
  var d = 1 - c, v = Gy(d, 3), m = Gy(d, 2), y = c * c, b = y * c, _ = v * e + m * 3 * c * n + d * 3 * c * c * o + b * l, w = v * t + m * 3 * c * r + d * 3 * c * c * a + b * u;
7689
7689
  return {
7690
- x: op(_),
7691
- y: op(w)
7690
+ x: ap(_),
7691
+ y: ap(w)
7692
7692
  };
7693
7693
  }
7694
7694
  function Ky(e) {
@@ -7722,13 +7722,13 @@ function w2(e, t, n, r, o, a, l, u) {
7722
7722
  if (!(Qr(e, n) < Zr(o, l) || Zr(e, n) > Qr(o, l) || Qr(t, r) < Zr(a, u) || Zr(t, r) > Qr(a, u))) {
7723
7723
  var c = (e * r - t * n) * (o - l) - (e - n) * (o * u - a * l), d = (e * r - t * n) * (a - u) - (t - r) * (o * u - a * l), v = (e - n) * (a - u) - (t - r) * (o - l);
7724
7724
  if (v) {
7725
- var m = op(c / v), y = op(d / v), b = +m.toFixed(2), _ = +y.toFixed(2);
7725
+ var m = ap(c / v), y = ap(d / v), b = +m.toFixed(2), _ = +y.toFixed(2);
7726
7726
  if (!(b < +Zr(e, n).toFixed(2) || b > +Qr(e, n).toFixed(2) || b < +Zr(o, l).toFixed(2) || b > +Qr(o, l).toFixed(2) || _ < +Zr(t, r).toFixed(2) || _ > +Qr(t, r).toFixed(2) || _ < +Zr(a, u).toFixed(2) || _ > +Qr(a, u).toFixed(2)))
7727
7727
  return { x: m, y };
7728
7728
  }
7729
7729
  }
7730
7730
  }
7731
- function op(e) {
7731
+ function ap(e) {
7732
7732
  return Math.round(e * 1e11) / 1e11;
7733
7733
  }
7734
7734
  function S2(e, t, n) {
@@ -7790,8 +7790,8 @@ function C2(e, t, n) {
7790
7790
  function T2(e) {
7791
7791
  var t = us(e);
7792
7792
  if (t.abs)
7793
- return ip(t.abs);
7794
- if ((!rp(e) || !rp(e && e[0])) && (e = _2(e)), !e || !e.length)
7793
+ return op(t.abs);
7794
+ if ((!ip(e) || !ip(e && e[0])) && (e = _2(e)), !e || !e.length)
7795
7795
  return [["M", 0, 0]];
7796
7796
  var n = [], r = 0, o = 0, a = 0, l = 0, u = 0, c;
7797
7797
  e[0][0] == "M" && (r = +e[0][1], o = +e[0][2], a = r, l = o, u++, n[0] = ["M", r, o]);
@@ -7832,7 +7832,7 @@ function T2(e) {
7832
7832
  r = d[d.length - 2], o = d[d.length - 1];
7833
7833
  }
7834
7834
  }
7835
- return n.toString = d_, t.abs = ip(n), n;
7835
+ return n.toString = d_, t.abs = op(n), n;
7836
7836
  }
7837
7837
  function Xy(e) {
7838
7838
  return e[0] === e[2] && e[1] === e[3] && e[4] === e[6] && e[5] === e[7];
@@ -7908,7 +7908,7 @@ function A2(e, t, n, r, o, a, l, u) {
7908
7908
  function Qy(e) {
7909
7909
  var t = us(e);
7910
7910
  if (t.curve)
7911
- return ip(t.curve);
7911
+ return op(t.curve);
7912
7912
  for (var n = T2(e), r = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }, o = function(b, _, w) {
7913
7913
  var C, O;
7914
7914
  if (!b)
@@ -7955,7 +7955,7 @@ function Qy(e) {
7955
7955
  var m = n[d], y = m.length;
7956
7956
  r.x = m[y - 2], r.y = m[y - 1], r.bx = Uy(m[y - 4]) || r.x, r.by = Uy(m[y - 3]) || r.y;
7957
7957
  }
7958
- return t.curve = ip(n), n;
7958
+ return t.curve = op(n), n;
7959
7959
  }
7960
7960
  var P2 = C2;
7961
7961
  const v_ = /* @__PURE__ */ ms(P2);
@@ -7981,7 +7981,7 @@ function Ie(e) {
7981
7981
  left: e.x
7982
7982
  };
7983
7983
  }
7984
- function Cp(e) {
7984
+ function Tp(e) {
7985
7985
  return {
7986
7986
  x: e.left,
7987
7987
  y: e.top,
@@ -8494,7 +8494,7 @@ fr.prototype._validateId = function(e) {
8494
8494
  if (this._elements[e])
8495
8495
  throw new Error("element with id " + e + " already added");
8496
8496
  };
8497
- var nv = { exports: {} }, Tp = {};
8497
+ var nv = { exports: {} }, Ap = {};
8498
8498
  function H2(e, t, n, r) {
8499
8499
  var o = n.inverse;
8500
8500
  return Object.defineProperty(e, "remove", {
@@ -8523,9 +8523,9 @@ function H2(e, t, n, r) {
8523
8523
  function z2(e) {
8524
8524
  return e.__refs_collection === !0;
8525
8525
  }
8526
- Tp.extend = H2;
8527
- Tp.isExtended = z2;
8528
- var E_ = Tp;
8526
+ Ap.extend = H2;
8527
+ Ap.isExtended = z2;
8528
+ var E_ = Ap;
8529
8529
  function j2(e, t) {
8530
8530
  return Object.prototype.hasOwnProperty.call(e, t.name || t);
8531
8531
  }
@@ -8582,7 +8582,7 @@ ho.prototype.set = function(e, t, n) {
8582
8582
  };
8583
8583
  var U2 = ho;
8584
8584
  nv.exports = U2;
8585
- nv.exports.Collection = Tp;
8585
+ nv.exports.Collection = Ap;
8586
8586
  var G2 = nv.exports;
8587
8587
  const Ul = /* @__PURE__ */ ms(G2);
8588
8588
  var x_ = new Ul({ name: "children", enumerable: !0, collection: !0 }, { name: "parent" }), w_ = new Ul({ name: "labels", enumerable: !0, collection: !0 }, { name: "labelTarget" }), e0 = new Ul({ name: "attachers", collection: !0 }, { name: "host" }), S_ = new Ul({ name: "outgoing", collection: !0 }, { name: "source" }), C_ = new Ul({ name: "incoming", collection: !0 }, { name: "target" });
@@ -8607,10 +8607,10 @@ function T_() {
8607
8607
  ys.call(this);
8608
8608
  }
8609
8609
  De(T_, ys);
8610
- function Ap() {
8610
+ function Pp() {
8611
8611
  ys.call(this), w_.bind(this, "labelTarget");
8612
8612
  }
8613
- De(Ap, ys);
8613
+ De(Pp, ys);
8614
8614
  function A_() {
8615
8615
  Gl.call(this), S_.bind(this, "source"), C_.bind(this, "target");
8616
8616
  }
@@ -8618,7 +8618,7 @@ De(A_, Gl);
8618
8618
  var V2 = {
8619
8619
  connection: A_,
8620
8620
  shape: ys,
8621
- label: Ap,
8621
+ label: Pp,
8622
8622
  root: T_
8623
8623
  };
8624
8624
  function K2(e, t) {
@@ -8645,7 +8645,7 @@ Oi.prototype.createConnection = function(e) {
8645
8645
  Oi.prototype.create = function(e, t) {
8646
8646
  return t = K({}, t || {}), t.id || (t.id = e + "_" + this._uid++), K2(e, t);
8647
8647
  };
8648
- var ap = "__fn", P_ = 1e3, q2 = Array.prototype.slice;
8648
+ var sp = "__fn", P_ = 1e3, q2 = Array.prototype.slice;
8649
8649
  function ar() {
8650
8650
  this._listeners = {}, this.on("diagram.destroy", 1, this._destroy, this);
8651
8651
  }
@@ -8653,7 +8653,7 @@ ar.prototype.on = function(e, t, n, r) {
8653
8653
  if (e = et(e) ? e : [e], _n(t) && (r = n, n = t, t = P_), !We(t))
8654
8654
  throw new Error("priority must be a number");
8655
8655
  var o = n;
8656
- r && (o = Jt(n, r), o[ap] = n[ap] || n);
8656
+ r && (o = Jt(n, r), o[sp] = n[sp] || n);
8657
8657
  var a = this;
8658
8658
  e.forEach(function(l) {
8659
8659
  a._addListener(l, {
@@ -8672,7 +8672,7 @@ ar.prototype.once = function(e, t, n, r) {
8672
8672
  var l = n.apply(r, arguments);
8673
8673
  return o.off(e, a), l;
8674
8674
  }
8675
- a[ap] = n, this.on(e, t, a);
8675
+ a[sp] = n, this.on(e, t, a);
8676
8676
  };
8677
8677
  ar.prototype.off = function(e, t) {
8678
8678
  e = et(e) ? e : [e];
@@ -8752,7 +8752,7 @@ ar.prototype._removeListener = function(e, t) {
8752
8752
  return;
8753
8753
  }
8754
8754
  for (; n; )
8755
- r = n.next, a = n.callback, (a === t || a[ap] === t) && (o ? o.next = r : this._setListeners(e, r)), o = n, n = r;
8755
+ r = n.next, a = n.callback, (a === t || a[sp] === t) && (o ? o.next = r : this._setListeners(e, r)), o = n, n = r;
8756
8756
  };
8757
8757
  function Vl() {
8758
8758
  }
@@ -8768,7 +8768,7 @@ Vl.prototype.init = function(e) {
8768
8768
  function Y2(e, t) {
8769
8769
  return e.apply(null, t);
8770
8770
  }
8771
- function sp(e) {
8771
+ function lp(e) {
8772
8772
  return e.childNodes[0];
8773
8773
  }
8774
8774
  function X2(e) {
@@ -8799,8 +8799,8 @@ dr.prototype._getChildrenContainer = function(e) {
8799
8799
  return e.parent ? (n = X2(t), n || (n = Fe("g"), ut(n).add("djs-children"), Ue(t.parentNode, n))) : n = t, n;
8800
8800
  };
8801
8801
  dr.prototype._clear = function(e) {
8802
- var t = sp(e);
8803
- return _p(t), t;
8802
+ var t = lp(e);
8803
+ return xp(t), t;
8804
8804
  };
8805
8805
  dr.prototype._createContainer = function(e, t, n, r) {
8806
8806
  var o = Fe("g");
@@ -9910,12 +9910,12 @@ function F_(e) {
9910
9910
  var fA = {
9911
9911
  xsi: "http://www.w3.org/2001/XMLSchema-instance",
9912
9912
  xml: "http://www.w3.org/XML/1998/namespace"
9913
- }, Pp = "xsi:type";
9913
+ }, Rp = "xsi:type";
9914
9914
  function $_(e) {
9915
9915
  return e.xml && e.xml.serialize;
9916
9916
  }
9917
9917
  function H_(e) {
9918
- return $_(e) === Pp;
9918
+ return $_(e) === Rp;
9919
9919
  }
9920
9920
  function dA(e) {
9921
9921
  return $_(e) === "property";
@@ -10004,17 +10004,17 @@ sv.prototype.handleEnd = function() {
10004
10004
  var e = this.body || "", t = this.element, n = this.propertyDesc;
10005
10005
  e = ov(n.type, e), n.isMany ? t.get(n.name).push(e) : t.set(n.name, e);
10006
10006
  };
10007
- function Rp() {
10007
+ function Dp() {
10008
10008
  }
10009
- Rp.prototype = Object.create(Es.prototype);
10010
- Rp.prototype.handleNode = function(e) {
10009
+ Dp.prototype = Object.create(Es.prototype);
10010
+ Dp.prototype.handleNode = function(e) {
10011
10011
  var t = this, n = this.element;
10012
10012
  return n ? t = this.handleChild(e) : (n = this.element = this.createElement(e), this.context.addElement(n)), t;
10013
10013
  };
10014
10014
  function zn(e, t, n) {
10015
10015
  this.model = e, this.type = e.getType(t), this.context = n;
10016
10016
  }
10017
- zn.prototype = Object.create(Rp.prototype);
10017
+ zn.prototype = Object.create(Dp.prototype);
10018
10018
  zn.prototype.addReference = function(e) {
10019
10019
  this.context.addReference(e);
10020
10020
  };
@@ -10053,7 +10053,7 @@ zn.prototype.createElement = function(e) {
10053
10053
  zn.prototype.getPropertyForNode = function(e) {
10054
10054
  var t = e.name, n = Hn(t), r = this.type, o = this.model, a = Ri(r), l = n.name, u = a.propertiesByName[l], c, d;
10055
10055
  if (u && !u.isAttr)
10056
- return H_(u) && (c = e.attributes[Pp], c) ? (c = mA(c, o), d = o.getType(c), K({}, u, {
10056
+ return H_(u) && (c = e.attributes[Rp], c) ? (c = mA(c, o), d = o.getType(c), K({}, u, {
10057
10057
  effectiveType: Ri(d).name
10058
10058
  })) : u;
10059
10059
  var v = o.getPackage(n.prefix);
@@ -10105,7 +10105,7 @@ lv.prototype.createElement = function(e) {
10105
10105
  function ps(e, t, n) {
10106
10106
  this.model = e, this.context = n;
10107
10107
  }
10108
- ps.prototype = Object.create(Rp.prototype);
10108
+ ps.prototype = Object.create(Dp.prototype);
10109
10109
  ps.prototype.createElement = function(e) {
10110
10110
  var t = e.name, n = Hn(t), r = n.prefix, o = e.ns[r + "$uri"], a = e.attributes;
10111
10111
  return this.model.createAny(t, o, a);
@@ -10426,7 +10426,7 @@ Rt.prototype.parseNsAttributes = function(e, t) {
10426
10426
  Rt.prototype.parseGenericAttributes = function(e, t) {
10427
10427
  var n = this;
10428
10428
  W(t, function(r) {
10429
- if (r.name !== Pp)
10429
+ if (r.name !== Rp)
10430
10430
  try {
10431
10431
  n.addAttribute(n.nsAttributeName(r.name), r.value);
10432
10432
  } catch (o) {
@@ -10460,7 +10460,7 @@ Rt.prototype.parseContainments = function(e) {
10460
10460
  var c = H_(o), d = dA(o);
10461
10461
  W(a, function(v) {
10462
10462
  var m;
10463
- c ? m = new Dp(t, o) : d ? m = new Rt(t, o) : m = new Rt(t), n.push(m.build(v));
10463
+ c ? m = new kp(t, o) : d ? m = new Rt(t, o) : m = new Rt(t), n.push(m.build(v));
10464
10464
  });
10465
10465
  }
10466
10466
  });
@@ -10526,11 +10526,11 @@ Rt.prototype.serializeTo = function(e) {
10526
10526
  r.serializeTo(e);
10527
10527
  }), n && e.unindent().appendIndent(), e.append("</" + this.tagName + ">")), e.appendNewLine();
10528
10528
  };
10529
- function Dp(e, t) {
10529
+ function kp(e, t) {
10530
10530
  Rt.call(this, e, t);
10531
10531
  }
10532
- W_(Dp, Rt);
10533
- Dp.prototype.parseNsAttributes = function(e) {
10532
+ W_(kp, Rt);
10533
+ kp.prototype.parseNsAttributes = function(e) {
10534
10534
  var t = Rt.prototype.parseNsAttributes.call(this, e), n = e.$descriptor;
10535
10535
  if (n.name === this.propertyDescriptor.type)
10536
10536
  return t;
@@ -10538,11 +10538,11 @@ Dp.prototype.parseNsAttributes = function(e) {
10538
10538
  this.getNamespaces().logUsed(this.typeNs);
10539
10539
  var o = e.$model.getPackage(r.uri), a = o.xml && o.xml.typePrefix || "";
10540
10540
  return this.addAttribute(
10541
- this.nsAttributeName(Pp),
10541
+ this.nsAttributeName(Rp),
10542
10542
  (r.prefix ? r.prefix + ":" : "") + a + n.ns.localName
10543
10543
  ), t;
10544
10544
  };
10545
- Dp.prototype.isLocalNs = function(e) {
10545
+ kp.prototype.isLocalNs = function(e) {
10546
10546
  return e.uri === (this.typeNs || this.ns).uri;
10547
10547
  };
10548
10548
  function LA() {
@@ -10576,16 +10576,16 @@ function IA(e) {
10576
10576
  toXML: t
10577
10577
  };
10578
10578
  }
10579
- function kp(e, t) {
10579
+ function Mp(e, t) {
10580
10580
  zr.call(this, e, t);
10581
10581
  }
10582
- kp.prototype = Object.create(zr.prototype);
10583
- kp.prototype.fromXML = function(e, t, n) {
10582
+ Mp.prototype = Object.create(zr.prototype);
10583
+ Mp.prototype.fromXML = function(e, t, n) {
10584
10584
  Yn(t) || (n = t, t = "bpmn:Definitions");
10585
10585
  var r = new uv(K({ model: this, lax: !0 }, n)), o = r.handler(t);
10586
10586
  return r.fromXML(e, o);
10587
10587
  };
10588
- kp.prototype.toXML = function(e, t) {
10588
+ Mp.prototype.toXML = function(e, t) {
10589
10589
  var n = new IA(t);
10590
10590
  return new Promise(function(r, o) {
10591
10591
  try {
@@ -14188,7 +14188,7 @@ var BA = "BPMN20", FA = "http://www.omg.org/spec/BPMN/20100524/MODEL", $A = "bpm
14188
14188
  };
14189
14189
  function TP(e, t) {
14190
14190
  var n = K({}, CP, e);
14191
- return new kp(n, t);
14191
+ return new Mp(n, t);
14192
14192
  }
14193
14193
  function An(e) {
14194
14194
  return e ? "<" + e.$type + (e.id ? ' id="' + e.id : "") + '" />' : "<null>";
@@ -14786,20 +14786,20 @@ function UP(e) {
14786
14786
  function ir(e) {
14787
14787
  return e && !!Te(e).triggeredByEvent;
14788
14788
  }
14789
- function Mp(e, t) {
14789
+ function Np(e, t) {
14790
14790
  var n = Te(e), r = !1;
14791
14791
  return n.eventDefinitions && W(n.eventDefinitions, function(o) {
14792
14792
  R(o, t) && (r = !0);
14793
14793
  }), r;
14794
14794
  }
14795
14795
  function GP(e) {
14796
- return Mp(e, "bpmn:ErrorEventDefinition");
14796
+ return Np(e, "bpmn:ErrorEventDefinition");
14797
14797
  }
14798
14798
  function VP(e) {
14799
- return Mp(e, "bpmn:EscalationEventDefinition");
14799
+ return Np(e, "bpmn:EscalationEventDefinition");
14800
14800
  }
14801
14801
  function KP(e) {
14802
- return Mp(e, "bpmn:CompensateEventDefinition");
14802
+ return Np(e, "bpmn:CompensateEventDefinition");
14803
14803
  }
14804
14804
  function Z_(e) {
14805
14805
  if (R(e, "bpmn:FlowElement") || R(e, "bpmn:Participant") || R(e, "bpmn:Lane") || R(e, "bpmn:SequenceFlow") || R(e, "bpmn:MessageFlow") || R(e, "bpmn:DataInput") || R(e, "bpmn:DataOutput"))
@@ -14900,7 +14900,7 @@ function tR(e) {
14900
14900
  ];
14901
14901
  return Ea(a);
14902
14902
  }
14903
- var nR = new ri(), Wc = 10, Dd = 3, rs = 0.95, rR = 0.35, iR = 10;
14903
+ var nR = new ri(), Wc = 10, kd = 3, rs = 0.95, rR = 0.35, iR = 10;
14904
14904
  function Sa(e, t, n, r, o, a, l) {
14905
14905
  Li.call(this, t, l);
14906
14906
  var u = e && e.defaultFillColor, c = e && e.defaultStrokeColor, d = e && e.defaultLabelColor, v = nR.next(), m = {};
@@ -15103,7 +15103,7 @@ function Sa(e, t, n, r, o, a, l) {
15103
15103
  }
15104
15104
  function M(F, T, G, Z) {
15105
15105
  G = b(G);
15106
- var le = wp(T, G, Z);
15106
+ var le = Sp(T, G, Z);
15107
15107
  return Ue(F, le), le;
15108
15108
  }
15109
15109
  function L(F, T, G) {
@@ -15429,7 +15429,7 @@ function Sa(e, t, n, r, o, a, l) {
15429
15429
  fill: ct(T, u),
15430
15430
  stroke: _e(T, c)
15431
15431
  });
15432
- return D(F, T.width, T.height, Dd, {
15432
+ return D(F, T.width, T.height, kd, {
15433
15433
  strokeWidth: 1.5,
15434
15434
  fill: ct(T, "none"),
15435
15435
  stroke: _e(T, c)
@@ -15624,7 +15624,7 @@ function Sa(e, t, n, r, o, a, l) {
15624
15624
  stroke: _e(T, c),
15625
15625
  strokeWidth: 1.5
15626
15626
  });
15627
- return k(F, T.width, T.height, Wc - 3, Dd, Z), G;
15627
+ return k(F, T.width, T.height, Wc - 3, kd, Z), G;
15628
15628
  },
15629
15629
  "bpmn:CallActivity": function(F, T) {
15630
15630
  return z("bpmn:SubProcess")(F, T, {
@@ -15908,7 +15908,7 @@ function Sa(e, t, n, r, o, a, l) {
15908
15908
  ...le,
15909
15909
  fill: "none"
15910
15910
  }, Ee = z("bpmn:Event")(F, T, X);
15911
- return D(F, T.width, T.height, Dd, ee), J(T, F), Ee;
15911
+ return D(F, T.width, T.height, kd, ee), J(T, F), Ee;
15912
15912
  },
15913
15913
  "bpmn:Group": function(F, T) {
15914
15914
  return k(F, T.width, T.height, Wc, {
@@ -16212,7 +16212,7 @@ function hR() {
16212
16212
  height: 0
16213
16213
  }), document.body.appendChild(e)), e;
16214
16214
  }
16215
- function Np(e) {
16215
+ function Lp(e) {
16216
16216
  this._config = K({}, {
16217
16217
  size: aR,
16218
16218
  padding: oR,
@@ -16220,13 +16220,13 @@ function Np(e) {
16220
16220
  align: "center-top"
16221
16221
  }, e || {});
16222
16222
  }
16223
- Np.prototype.createText = function(e, t) {
16223
+ Lp.prototype.createText = function(e, t) {
16224
16224
  return this.layoutText(e, t).element;
16225
16225
  };
16226
- Np.prototype.getDimensions = function(e, t) {
16226
+ Lp.prototype.getDimensions = function(e, t) {
16227
16227
  return this.layoutText(e, t).dimensions;
16228
16228
  };
16229
- Np.prototype.layoutText = function(e, t) {
16229
+ Lp.prototype.layoutText = function(e, t) {
16230
16230
  var n = K({}, this._config.size, t.box), r = K({}, this._config.style, t.style), o = sR(t.align || this._config.align), a = lR(t.padding !== void 0 ? t.padding : this._config.padding), l = t.fitBox || !1, u = vR(r), c = e.split(/\u00AD?\r?\n/), d = [], v = n.width - a.left - a.right, m = Fe("text");
16231
16231
  Ce(m, { x: 0, y: 0 }), Ce(m, r);
16232
16232
  var y = hR();
@@ -16277,7 +16277,7 @@ function Q_(e) {
16277
16277
  lineHeight: gR
16278
16278
  }, e && e.defaultStyle || {}), n = parseInt(t.fontSize, 10) - 1, r = K({}, t, {
16279
16279
  fontSize: n
16280
- }, e && e.externalStyle || {}), o = new Np({
16280
+ }, e && e.externalStyle || {}), o = new Lp({
16281
16281
  style: t
16282
16282
  });
16283
16283
  this.getExternalLabelBounds = function(a, l) {
@@ -16601,7 +16601,7 @@ function CR(e, t) {
16601
16601
  return t[r] || "{" + r + "}";
16602
16602
  });
16603
16603
  }
16604
- const Lp = {
16604
+ const Op = {
16605
16605
  translate: ["value", CR]
16606
16606
  };
16607
16607
  var Ml = {
@@ -16611,7 +16611,7 @@ var Ml = {
16611
16611
  function ga(e) {
16612
16612
  return R(e, "bpmn:Event") || R(e, "bpmn:Gateway") || R(e, "bpmn:DataStoreReference") || R(e, "bpmn:DataObjectReference") || R(e, "bpmn:DataInput") || R(e, "bpmn:DataOutput") || R(e, "bpmn:SequenceFlow") || R(e, "bpmn:MessageFlow") || R(e, "bpmn:Group");
16613
16613
  }
16614
- function Op(e) {
16614
+ function Ip(e) {
16615
16615
  return hn(e.label);
16616
16616
  }
16617
16617
  function TR(e) {
@@ -16625,7 +16625,7 @@ function AR(e) {
16625
16625
  y: n.y + (r.y - n.y) / 2
16626
16626
  };
16627
16627
  }
16628
- function Ip(e) {
16628
+ function Bp(e) {
16629
16629
  return e.waypoints ? TR(e.waypoints) : R(e, "bpmn:Group") ? {
16630
16630
  x: e.x + e.width / 2,
16631
16631
  y: e.y + Ml.height / 2
@@ -16642,7 +16642,7 @@ function PR(e, t) {
16642
16642
  }, n = {
16643
16643
  x: o.x + o.width / 2,
16644
16644
  y: o.y + o.height / 2
16645
- }) : (n = Ip(t), r = Ml), K({
16645
+ }) : (n = Bp(t), r = Ml), K({
16646
16646
  x: n.x - r.width / 2,
16647
16647
  y: n.y - r.height / 2
16648
16648
  }, r);
@@ -16766,7 +16766,7 @@ function kR(e) {
16766
16766
  }
16767
16767
  const MR = {
16768
16768
  __depends__: [
16769
- Lp
16769
+ Op
16770
16770
  ],
16771
16771
  bpmnImporter: ["type", Ii]
16772
16772
  }, NR = {
@@ -16781,7 +16781,7 @@ function p0(e) {
16781
16781
  function xs(e) {
16782
16782
  return e.originalEvent || e.srcEvent;
16783
16783
  }
16784
- function kd(e, t) {
16784
+ function Md(e, t) {
16785
16785
  p0(e), p0(xs(e));
16786
16786
  }
16787
16787
  function mo(e) {
@@ -16931,7 +16931,7 @@ function nx(e, t, n) {
16931
16931
  height: H.height
16932
16932
  }));
16933
16933
  }, this.createWaypointsHit = function(H, z) {
16934
- var Q = wp(z);
16934
+ var Q = Sp(z);
16935
16935
  return L(Q, "stroke"), j(H, Q), Q;
16936
16936
  }, this.createBoxHit = function(H, z, Q) {
16937
16937
  Q = K({
@@ -16959,7 +16959,7 @@ const Xl = {
16959
16959
  interactionEvents: ["type", nx]
16960
16960
  };
16961
16961
  var BR = 500;
16962
- function Bp(e, t) {
16962
+ function Fp(e, t) {
16963
16963
  this.offset = 6;
16964
16964
  var n = t.cls("djs-outline", ["no-fill"]), r = this;
16965
16965
  function o(a, l) {
@@ -16980,7 +16980,7 @@ function Bp(e, t) {
16980
16980
  c || (c = o(u)), r.updateConnectionOutline(c, l);
16981
16981
  });
16982
16982
  }
16983
- Bp.prototype.updateShapeOutline = function(e, t) {
16983
+ Fp.prototype.updateShapeOutline = function(e, t) {
16984
16984
  Ce(e, {
16985
16985
  x: -this.offset,
16986
16986
  y: -this.offset,
@@ -16988,7 +16988,7 @@ Bp.prototype.updateShapeOutline = function(e, t) {
16988
16988
  height: t.height + this.offset * 2
16989
16989
  });
16990
16990
  };
16991
- Bp.prototype.updateConnectionOutline = function(e, t) {
16991
+ Fp.prototype.updateConnectionOutline = function(e, t) {
16992
16992
  var n = Wt(t);
16993
16993
  Ce(e, {
16994
16994
  x: n.x - this.offset,
@@ -16997,10 +16997,10 @@ Bp.prototype.updateConnectionOutline = function(e, t) {
16997
16997
  height: n.height + this.offset * 2
16998
16998
  });
16999
16999
  };
17000
- Bp.$inject = ["eventBus", "styles", "elementRegistry"];
17000
+ Fp.$inject = ["eventBus", "styles", "elementRegistry"];
17001
17001
  const rx = {
17002
17002
  __init__: ["outline"],
17003
- outline: ["type", Bp]
17003
+ outline: ["type", Fp]
17004
17004
  };
17005
17005
  function ws(e, t) {
17006
17006
  this._eventBus = e, this._canvas = t, this._selectedElements = [];
@@ -17076,7 +17076,7 @@ fv.$inject = [
17076
17076
  ];
17077
17077
  fv.prototype._updateSelectionOutline = function(e) {
17078
17078
  var t = this._canvas.getLayer("selectionOutline");
17079
- xp(t);
17079
+ wp(t);
17080
17080
  var n = e.length > 1, r = this._canvas.getContainer();
17081
17081
  if (ut(r)[n ? "add" : "remove"]("djs-multi-select"), !!n) {
17082
17082
  var o = FR(Wt(e)), a = Fe("rect");
@@ -17198,13 +17198,13 @@ mn.prototype.isShown = function() {
17198
17198
  return this._overlayRoot.style.display !== "none";
17199
17199
  };
17200
17200
  mn.prototype.show = function() {
17201
- Fp(this._overlayRoot);
17201
+ $p(this._overlayRoot);
17202
17202
  };
17203
17203
  mn.prototype.hide = function() {
17204
- Fp(this._overlayRoot, !1);
17204
+ $p(this._overlayRoot, !1);
17205
17205
  };
17206
17206
  mn.prototype.clear = function() {
17207
- this._overlays = {}, this._overlayContainers = [], _p(this._overlayRoot);
17207
+ this._overlays = {}, this._overlayContainers = [], xp(this._overlayRoot);
17208
17208
  };
17209
17209
  mn.prototype._updateOverlayContainer = function(e) {
17210
17210
  var t = e.element, n = e.html, r = t.x, o = t.y;
@@ -17257,11 +17257,11 @@ mn.prototype._addOverlay = function(e) {
17257
17257
  var t = e.id, n = e.element, r = e.html, o, a;
17258
17258
  r.get && r.constructor.prototype.jquery && (r = r.get(0)), Yn(r) && (r = Tt(r)), a = this._getOverlayContainer(n), o = Tt('<div class="djs-overlay" data-overlay-id="' + t + '">'), En(o, { position: "absolute" }), o.appendChild(r), e.type && vn(o).add("djs-overlay-" + e.type);
17259
17259
  var l = this._canvas.findRoot(n), u = this._canvas.getRootElement();
17260
- Fp(o, l === u), e.htmlContainer = o, a.overlays.push(e), a.html.appendChild(o), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
17260
+ $p(o, l === u), e.htmlContainer = o, a.overlays.push(e), a.html.appendChild(o), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
17261
17261
  };
17262
17262
  mn.prototype._updateOverlayVisibilty = function(e, t) {
17263
17263
  var n = e.show, r = this._canvas.findRoot(e.element), o = n && n.minZoom, a = n && n.maxZoom, l = e.htmlContainer, u = this._canvas.getRootElement(), c = !0;
17264
- (r !== u || n && (Qt(o) && o > t.scale || Qt(a) && a < t.scale)) && (c = !1), Fp(l, c), this._updateOverlayScale(e, t);
17264
+ (r !== u || n && (Qt(o) && o > t.scale || Qt(a) && a < t.scale)) && (c = !1), $p(l, c), this._updateOverlayScale(e, t);
17265
17265
  };
17266
17266
  mn.prototype._updateOverlayScale = function(e, t) {
17267
17267
  var n = e.scale, r, o, a = e.htmlContainer, l, u = "";
@@ -17318,7 +17318,7 @@ function jR(e) {
17318
17318
  function ox(e, t, n) {
17319
17319
  En(e, { left: t + "px", top: n + "px" });
17320
17320
  }
17321
- function Fp(e, t) {
17321
+ function $p(e, t) {
17322
17322
  e.style.display = t === !1 ? "none" : "";
17323
17323
  }
17324
17324
  function ax(e, t) {
@@ -17326,7 +17326,7 @@ function ax(e, t) {
17326
17326
  e.style[n + "transform"] = t;
17327
17327
  });
17328
17328
  }
17329
- const $p = {
17329
+ const Hp = {
17330
17330
  __init__: ["overlays"],
17331
17331
  overlays: ["type", mn]
17332
17332
  };
@@ -17435,7 +17435,7 @@ function Si(e) {
17435
17435
  function oa(e) {
17436
17436
  return ux(e);
17437
17437
  }
17438
- function Md(e) {
17438
+ function Nd(e) {
17439
17439
  var t = vt(e);
17440
17440
  return R(t, "bpmndi:BPMNPlane");
17441
17441
  }
@@ -17621,7 +17621,7 @@ function QR(e) {
17621
17621
  var r = Ie(n.bounds);
17622
17622
  t.top = Math.min(r.top, t.top), t.left = Math.min(r.left, t.left);
17623
17623
  }
17624
- }), Cp(t);
17624
+ }), Tp(t);
17625
17625
  }
17626
17626
  function JR(e, t) {
17627
17627
  var n = e.$parent;
@@ -17708,7 +17708,7 @@ So.$inject = [
17708
17708
  "overlays"
17709
17709
  ];
17710
17710
  const nD = {
17711
- __depends__: [$p, hv, VR],
17711
+ __depends__: [Hp, hv, VR],
17712
17712
  __init__: ["drilldownBreadcrumbs", "drilldownOverlayBehavior", "drilldownCentering", "subprocessCompatibility"],
17713
17713
  drilldownBreadcrumbs: ["type", cx],
17714
17714
  drilldownCentering: ["type", px],
@@ -17721,9 +17721,9 @@ function jr(e) {
17721
17721
  De(jr, Dt);
17722
17722
  jr.prototype._modules = [
17723
17723
  NR,
17724
- Lp,
17724
+ Op,
17725
17725
  si,
17726
- $p,
17726
+ Hp,
17727
17727
  nD
17728
17728
  ];
17729
17729
  jr.prototype._moddleExtensions = {};
@@ -17752,7 +17752,7 @@ function uD(e) {
17752
17752
  function cD(e) {
17753
17753
  return pr(e) && (fn(oD, e) || fn(dx, e) && mv(e));
17754
17754
  }
17755
- var Hp = "keyboard.keydown", pD = "keyboard.keyup", g0 = "input-handle-modified-keys", fD = 1e3;
17755
+ var zp = "keyboard.keydown", pD = "keyboard.keyup", g0 = "input-handle-modified-keys", fD = 1e3;
17756
17756
  function wn(e, t) {
17757
17757
  var n = this;
17758
17758
  this._config = e || {}, this._eventBus = t, this._keydownHandler = this._keydownHandler.bind(this), this._keyupHandler = this._keyupHandler.bind(this), t.on("diagram.destroy", function() {
@@ -17770,7 +17770,7 @@ wn.$inject = [
17770
17770
  "eventBus"
17771
17771
  ];
17772
17772
  wn.prototype._keydownHandler = function(e) {
17773
- this._keyHandler(e, Hp);
17773
+ this._keyHandler(e, zp);
17774
17774
  };
17775
17775
  wn.prototype._keyupHandler = function(e) {
17776
17776
  this._keyHandler(e, pD);
@@ -17781,7 +17781,7 @@ wn.prototype._keyHandler = function(e, t) {
17781
17781
  var r = {
17782
17782
  keyEvent: e
17783
17783
  };
17784
- n = this._eventBus.fire(t || Hp, r), n && e.preventDefault();
17784
+ n = this._eventBus.fire(t || zp, r), n && e.preventDefault();
17785
17785
  }
17786
17786
  };
17787
17787
  wn.prototype._isEventIgnored = function(e) {
@@ -17811,10 +17811,10 @@ wn.prototype._fire = function(e) {
17811
17811
  this._eventBus.fire("keyboard." + e, { node: this._node });
17812
17812
  };
17813
17813
  wn.prototype.addListener = function(e, t, n) {
17814
- _n(e) && (n = t, t = e, e = fD), this._eventBus.on(n || Hp, e, t);
17814
+ _n(e) && (n = t, t = e, e = fD), this._eventBus.on(n || zp, e, t);
17815
17815
  };
17816
17816
  wn.prototype.removeListener = function(e, t) {
17817
- this._eventBus.off(t || Hp, e);
17817
+ this._eventBus.off(t || zp, e);
17818
17818
  };
17819
17819
  wn.prototype.hasModifier = aD;
17820
17820
  wn.prototype.isCmd = pr;
@@ -17957,12 +17957,12 @@ const vx = {
17957
17957
  keyboardMove: ["type", hx]
17958
17958
  };
17959
17959
  var mD = /^djs-cursor-.*$/;
17960
- function zp(e) {
17960
+ function jp(e) {
17961
17961
  var t = vn(document.body);
17962
17962
  t.removeMatching(mD), e && t.add("djs-cursor-" + e);
17963
17963
  }
17964
17964
  function mx() {
17965
- zp(null);
17965
+ jp(null);
17966
17966
  }
17967
17967
  var gD = 5e3;
17968
17968
  function gx(e, t) {
@@ -17994,7 +17994,7 @@ function yx(e, t) {
17994
17994
  });
17995
17995
  function r(l) {
17996
17996
  var u = n.start, c = n.button, d = mo(l), v = Fr(d, u);
17997
- if (!n.dragging && bD(v) > yD && (n.dragging = !0, c === 0 && gx(e), zp("grab")), n.dragging) {
17997
+ if (!n.dragging && bD(v) > yD && (n.dragging = !0, c === 0 && gx(e), jp("grab")), n.dragging) {
17998
17998
  var m = n.last || n.start;
17999
17999
  v = Fr(d, m), t.scroll({
18000
18000
  dx: v.x,
@@ -18296,7 +18296,7 @@ var _x = { exports: {} };
18296
18296
  var Re = U.firstInput, lt = U.firstMultiple, Kt = lt ? lt.center : Re.center, nn = I.center = Ms(te);
18297
18297
  I.timeStamp = v(), I.deltaTime = I.timeStamp - Re.timeStamp, I.angle = fi(Kt, nn), I.distance = Io(Kt, nn), mt(U, I), I.offsetDirection = Na(I.deltaX, I.deltaY);
18298
18298
  var Sn = Su(I.deltaTime, I.deltaX, I.deltaY);
18299
- I.overallVelocityX = Sn.x, I.overallVelocityY = Sn.y, I.overallVelocity = d(Sn.x) > d(Sn.y) ? Sn.x : Sn.y, I.scale = lt ? Bo(lt.pointers, te) : 1, I.rotation = lt ? Df(lt.pointers, te) : 0, I.maxPointers = U.prevInput ? I.pointers.length > U.prevInput.maxPointers ? I.pointers.length : U.prevInput.maxPointers : I.pointers.length, ks(U, I);
18299
+ I.overallVelocityX = Sn.x, I.overallVelocityY = Sn.y, I.overallVelocity = d(Sn.x) > d(Sn.y) ? Sn.x : Sn.y, I.scale = lt ? Bo(lt.pointers, te) : 1, I.rotation = lt ? kf(lt.pointers, te) : 0, I.maxPointers = U.prevInput ? I.pointers.length > U.prevInput.maxPointers ? I.pointers.length : U.prevInput.maxPointers : I.pointers.length, ks(U, I);
18300
18300
  var br = N.element;
18301
18301
  H(I.srcEvent.target, br) && (br = I.srcEvent.target), I.target = br;
18302
18302
  }
@@ -18366,7 +18366,7 @@ var _x = { exports: {} };
18366
18366
  var te = I[U[0]] - N[U[0]], de = I[U[1]] - N[U[1]];
18367
18367
  return Math.atan2(de, te) * 180 / Math.PI;
18368
18368
  }
18369
- function Df(N, I) {
18369
+ function kf(N, I) {
18370
18370
  return fi(I[1], I[0], ke) + fi(N[1], N[0], ke);
18371
18371
  }
18372
18372
  function Bo(N, I) {
@@ -18376,9 +18376,9 @@ var _x = { exports: {} };
18376
18376
  mousedown: Be,
18377
18377
  mousemove: Ge,
18378
18378
  mouseup: He
18379
- }, kf = "mousedown", kr = "mousemove mouseup";
18379
+ }, Mf = "mousedown", kr = "mousemove mouseup";
18380
18380
  function $o() {
18381
- this.evEl = kf, this.evWin = kr, this.pressed = !1, st.apply(this, arguments);
18381
+ this.evEl = Mf, this.evWin = kr, this.pressed = !1, st.apply(this, arguments);
18382
18382
  }
18383
18383
  D($o, st, {
18384
18384
  /**
@@ -18493,7 +18493,7 @@ var _x = { exports: {} };
18493
18493
  Kt
18494
18494
  ];
18495
18495
  }
18496
- var Mf = 2500, La = 25;
18496
+ var Nf = 2500, La = 25;
18497
18497
  function Os() {
18498
18498
  st.apply(this, arguments);
18499
18499
  var N = k(this.handler, this);
@@ -18535,7 +18535,7 @@ var _x = { exports: {} };
18535
18535
  var Re = te.indexOf(U);
18536
18536
  Re > -1 && te.splice(Re, 1);
18537
18537
  };
18538
- setTimeout(de, Mf);
18538
+ setTimeout(de, Nf);
18539
18539
  }
18540
18540
  }
18541
18541
  function Bs(N) {
@@ -18546,7 +18546,7 @@ var _x = { exports: {} };
18546
18546
  }
18547
18547
  return !1;
18548
18548
  }
18549
- var Ru = me(l.style, "touchAction"), Du = Ru !== o, Oa = "compute", ku = "auto", zo = "manipulation", Jn = "none", jo = "pan-x", Wo = "pan-y", di = Nf();
18549
+ var Ru = me(l.style, "touchAction"), Du = Ru !== o, Oa = "compute", ku = "auto", zo = "manipulation", Jn = "none", jo = "pan-x", Wo = "pan-y", di = Lf();
18550
18550
  function Uo(N, I) {
18551
18551
  this.manager = N, this.set(I);
18552
18552
  }
@@ -18607,7 +18607,7 @@ var _x = { exports: {} };
18607
18607
  var I = z(N, jo), U = z(N, Wo);
18608
18608
  return I && U ? Jn : I || U ? I ? jo : Wo : z(N, zo) ? zo : ku;
18609
18609
  }
18610
- function Nf() {
18610
+ function Lf() {
18611
18611
  if (!Du)
18612
18612
  return !1;
18613
18613
  var N = {}, I = t.CSS && t.CSS.supports;
@@ -19318,7 +19318,7 @@ function mc(e, t) {
19318
19318
  function mh(e) {
19319
19319
  e.preventDefault(), typeof e.stopPropagation == "function" ? e.stopPropagation() : e.srcEvent && typeof e.srcEvent.stopPropagation == "function" && e.srcEvent.stopPropagation(), typeof e.stopImmediatePropagation == "function" && e.stopImmediatePropagation();
19320
19320
  }
19321
- function Nd(e) {
19321
+ function Ld(e) {
19322
19322
  function t(d) {
19323
19323
  W(y0, function(v) {
19324
19324
  je.bind(e, v, mh, !0);
@@ -19362,7 +19362,7 @@ function xx(e, t, n, r, o) {
19362
19362
  return _;
19363
19363
  }
19364
19364
  function y(b) {
19365
- d = Nd(b);
19365
+ d = Ld(b);
19366
19366
  function _(O) {
19367
19367
  var D = 0, k = 0;
19368
19368
  function P(L) {
@@ -19400,7 +19400,7 @@ function xx(e, t, n, r, o) {
19400
19400
  D !== b.hover && (b.hover && a.out(b), D && (a.hover({ element: D, gfx: O }), b.hover = D, b.hoverGfx = O));
19401
19401
  }
19402
19402
  }), u && n.on("contextPad.create", function(b) {
19403
- var _ = b.pad.html, w = Nd(_);
19403
+ var _ = b.pad.html, w = Ld(_);
19404
19404
  w.on("panstart", function(C) {
19405
19405
  u.trigger("dragstart", C, !0);
19406
19406
  }), w.on("press", function(C) {
@@ -19409,7 +19409,7 @@ function xx(e, t, n, r, o) {
19409
19409
  u.trigger("click", C);
19410
19410
  });
19411
19411
  }), c && n.on("palette.create", function(b) {
19412
- var _ = b.container, w = Nd(_);
19412
+ var _ = b.container, w = Ld(_);
19413
19413
  w.on("panstart", function(C) {
19414
19414
  c.trigger("dragstart", C, !0);
19415
19415
  }), w.on("press", function(C) {
@@ -19465,7 +19465,7 @@ const AD = {
19465
19465
  AD
19466
19466
  ]
19467
19467
  };
19468
- function Ld(e) {
19468
+ function Od(e) {
19469
19469
  return e && e[e.length - 1];
19470
19470
  }
19471
19471
  function b0(e) {
@@ -19508,7 +19508,7 @@ Ss.prototype._alignmentPosition = function(e, t) {
19508
19508
  if (this._isType(e, ["left", "top"]))
19509
19509
  a[e] = t[0][r];
19510
19510
  else if (this._isType(e, ["right", "bottom"]))
19511
- v = Ld(t), a[e] = v[r] + v[o];
19511
+ v = Od(t), a[e] = v[r] + v[o];
19512
19512
  else if (this._isType(e, ["center", "middle"])) {
19513
19513
  if (W(t, function(y) {
19514
19514
  var b = y[r] + Math.round(y[o] / 2);
@@ -19519,10 +19519,10 @@ Ss.prototype._alignmentPosition = function(e, t) {
19519
19519
  }), c = $r(l, function(y) {
19520
19520
  return y.elements.length > 1 && (u = !0), y.elements.length;
19521
19521
  }), u)
19522
- return a[e] = Ld(c).center, a;
19522
+ return a[e] = Od(c).center, a;
19523
19523
  d = t[0], t = $r(t, function(y) {
19524
19524
  return y[r] + y[o];
19525
- }), v = Ld(t), a[e] = m(d, v);
19525
+ }), v = Od(t), a[e] = m(d, v);
19526
19526
  }
19527
19527
  return a;
19528
19528
  };
@@ -19690,11 +19690,11 @@ function wx(e, t) {
19690
19690
  const xv = {
19691
19691
  __depends__: [
19692
19692
  Xl,
19693
- $p
19693
+ Hp
19694
19694
  ],
19695
19695
  contextPad: ["type", Xn]
19696
19696
  };
19697
- var jp, Pt, Sx, pa, w0, Cx, Tx, Ax, wv, gh, yh, Ol = {}, Px = [], ND = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Wp = Array.isArray;
19697
+ var Wp, Pt, Sx, pa, w0, Cx, Tx, Ax, wv, gh, yh, Ol = {}, Px = [], ND = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Up = Array.isArray;
19698
19698
  function Ai(e, t) {
19699
19699
  for (var n in t)
19700
19700
  e[n] = t[n];
@@ -19707,7 +19707,7 @@ function Rx(e, t, n) {
19707
19707
  var r, o, a, l = {};
19708
19708
  for (a in t)
19709
19709
  a == "key" ? r = t[a] : a == "ref" ? o = t[a] : l[a] = t[a];
19710
- if (arguments.length > 2 && (l.children = arguments.length > 3 ? jp.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
19710
+ if (arguments.length > 2 && (l.children = arguments.length > 3 ? Wp.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
19711
19711
  for (a in e.defaultProps)
19712
19712
  l[a] === void 0 && (l[a] = e.defaultProps[a]);
19713
19713
  return Gc(e, l, r, o, null);
@@ -19716,7 +19716,7 @@ function Gc(e, t, n, r, o) {
19716
19716
  var a = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++Sx, __i: -1, __u: 0 };
19717
19717
  return o == null && Pt.vnode != null && Pt.vnode(a), a;
19718
19718
  }
19719
- function Up(e) {
19719
+ function Gp(e) {
19720
19720
  return e.children;
19721
19721
  }
19722
19722
  function Vc(e, t) {
@@ -19742,12 +19742,12 @@ function Dx(e) {
19742
19742
  }
19743
19743
  }
19744
19744
  function S0(e) {
19745
- (!e.__d && (e.__d = !0) && pa.push(e) && !lp.__r++ || w0 != Pt.debounceRendering) && ((w0 = Pt.debounceRendering) || Cx)(lp);
19745
+ (!e.__d && (e.__d = !0) && pa.push(e) && !up.__r++ || w0 != Pt.debounceRendering) && ((w0 = Pt.debounceRendering) || Cx)(up);
19746
19746
  }
19747
- function lp() {
19747
+ function up() {
19748
19748
  for (var e, t, n, r, o, a, l, u = 1; pa.length; )
19749
19749
  pa.length > u && pa.sort(Tx), e = pa.shift(), u = pa.length, e.__d && (n = void 0, r = void 0, o = (r = (t = e).__v).__e, a = [], l = [], t.__P && ((n = Ai({}, r)).__v = r.__v + 1, Pt.vnode && Pt.vnode(n), Cv(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, a, o ?? fs(r), !!(32 & r.__u), l), n.__v = r.__v, n.__.__k[n.__i] = n, Nx(a, n, l), r.__e = r.__ = null, n.__e != o && Dx(n)));
19750
- lp.__r = 0;
19750
+ up.__r = 0;
19751
19751
  }
19752
19752
  function kx(e, t, n, r, o, a, l, u, c, d, v) {
19753
19753
  var m, y, b, _, w, C, O, D = r && r.__k || Px, k = t.length;
@@ -19758,7 +19758,7 @@ function kx(e, t, n, r, o, a, l, u, c, d, v) {
19758
19758
  function LD(e, t, n, r, o) {
19759
19759
  var a, l, u, c, d, v = n.length, m = v, y = 0;
19760
19760
  for (e.__k = new Array(o), a = 0; a < o; a++)
19761
- (l = t[a]) != null && typeof l != "boolean" && typeof l != "function" ? (c = a + y, (l = e.__k[a] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? Gc(null, l, null, null, null) : Wp(l) ? Gc(Up, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? Gc(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, u = null, (d = l.__i = OD(l, n, c, m)) != -1 && (m--, (u = n[d]) && (u.__u |= 2)), u == null || u.__v == null ? (d == -1 && (o > v ? y-- : o < v && y++), typeof l.type != "function" && (l.__u |= 4)) : d != c && (d == c - 1 ? y-- : d == c + 1 ? y++ : (d > c ? y-- : y++, l.__u |= 4))) : e.__k[a] = null;
19761
+ (l = t[a]) != null && typeof l != "boolean" && typeof l != "function" ? (c = a + y, (l = e.__k[a] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? Gc(null, l, null, null, null) : Up(l) ? Gc(Gp, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? Gc(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, u = null, (d = l.__i = OD(l, n, c, m)) != -1 && (m--, (u = n[d]) && (u.__u |= 2)), u == null || u.__v == null ? (d == -1 && (o > v ? y-- : o < v && y++), typeof l.type != "function" && (l.__u |= 4)) : d != c && (d == c - 1 ? y-- : d == c + 1 ? y++ : (d > c ? y-- : y++, l.__u |= 4))) : e.__k[a] = null;
19762
19762
  if (m)
19763
19763
  for (a = 0; a < v; a++)
19764
19764
  (u = n[a]) != null && !(2 & u.__u) && (u.__e == r && (r = fs(u)), Ox(u, u));
@@ -19862,7 +19862,7 @@ function Cv(e, t, n, r, o, a, l, u, c, d) {
19862
19862
  do
19863
19863
  m.__d = !1, L && L(t), v = m.render(m.props, m.state, m.context), m.state = m.__s;
19864
19864
  while (m.__d && ++j < 25);
19865
- m.state = m.__s, m.getChildContext != null && (r = Ai(Ai({}, r), m.getChildContext())), D && !y && m.getSnapshotBeforeUpdate != null && (w = m.getSnapshotBeforeUpdate(b, _)), z = v, v != null && v.type === Up && v.key == null && (z = Lx(v.props.children)), u = kx(e, Wp(z) ? z : [z], t, n, r, o, a, l, u, c, d), m.base = t.__e, t.__u &= -161, m.__h.length && l.push(m), C && (m.__E = m.__ = null);
19865
+ m.state = m.__s, m.getChildContext != null && (r = Ai(Ai({}, r), m.getChildContext())), D && !y && m.getSnapshotBeforeUpdate != null && (w = m.getSnapshotBeforeUpdate(b, _)), z = v, v != null && v.type === Gp && v.key == null && (z = Lx(v.props.children)), u = kx(e, Up(z) ? z : [z], t, n, r, o, a, l, u, c, d), m.base = t.__e, t.__u &= -161, m.__h.length && l.push(m), C && (m.__E = m.__ = null);
19866
19866
  } catch (ie) {
19867
19867
  if (t.__v = null, c || a != null)
19868
19868
  if (ie.then) {
@@ -19899,7 +19899,7 @@ function Nx(e, t, n) {
19899
19899
  });
19900
19900
  }
19901
19901
  function Lx(e) {
19902
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Wp(e) ? e.map(Lx) : Ai({}, e);
19902
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Up(e) ? e.map(Lx) : Ai({}, e);
19903
19903
  }
19904
19904
  function ID(e, t, n, r, o, a, l, u, c) {
19905
19905
  var d, v, m, y, b, _, w, C = n.props, O = t.props, D = t.type;
@@ -19918,7 +19918,7 @@ function ID(e, t, n, r, o, a, l, u, c) {
19918
19918
  if (D == null)
19919
19919
  C === O || u && e.data == O || (e.data = O);
19920
19920
  else {
19921
- if (a = a && jp.call(e.childNodes), C = n.props || Ol, !u && a != null)
19921
+ if (a = a && Wp.call(e.childNodes), C = n.props || Ol, !u && a != null)
19922
19922
  for (C = {}, d = 0; d < e.attributes.length; d++)
19923
19923
  C[(b = e.attributes[d]).name] = b.value;
19924
19924
  for (d in C)
@@ -19935,7 +19935,7 @@ function ID(e, t, n, r, o, a, l, u, c) {
19935
19935
  b = O[d], d == "children" ? y = b : d == "dangerouslySetInnerHTML" ? v = b : d == "value" ? _ = b : d == "checked" ? w = b : u && typeof b != "function" || C[d] === b || gc(e, d, b, C[d], o);
19936
19936
  if (v)
19937
19937
  u || m && (v.__html == m.__html || v.__html == e.innerHTML) || (e.innerHTML = v.__html), t.__k = [];
19938
- else if (m && (e.innerHTML = ""), kx(t.type == "template" ? e.content : e, Wp(y) ? y : [y], t, n, r, D == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, l, a ? a[0] : n.__k && fs(n, 0), u, c), a != null)
19938
+ else if (m && (e.innerHTML = ""), kx(t.type == "template" ? e.content : e, Up(y) ? y : [y], t, n, r, D == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, l, a ? a[0] : n.__k && fs(n, 0), u, c), a != null)
19939
19939
  for (d = a.length; d--; )
19940
19940
  Sv(a[d]);
19941
19941
  u || (d = "value", D == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || D == "progress" && !_ || D == "option" && _ != C[d]) && gc(e, d, _, C[d], o), d = "checked", w != null && w != e[d] && gc(e, d, w, C[d], o));
@@ -19974,9 +19974,9 @@ function BD(e, t, n) {
19974
19974
  }
19975
19975
  function Ix(e, t, n) {
19976
19976
  var r, o, a, l;
19977
- t == document && (t = document.documentElement), Pt.__ && Pt.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], l = [], Cv(t, e = (!r && n || t).__k = Rx(Up, null, [e]), o || Ol, Ol, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? jp.call(t.childNodes) : null, a, !r && n ? n : o ? o.__e : t.firstChild, r, l), Nx(a, e, l);
19977
+ t == document && (t = document.documentElement), Pt.__ && Pt.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], l = [], Cv(t, e = (!r && n || t).__k = Rx(Gp, null, [e]), o || Ol, Ol, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Wp.call(t.childNodes) : null, a, !r && n ? n : o ? o.__e : t.firstChild, r, l), Nx(a, e, l);
19978
19978
  }
19979
- jp = Px.slice, Pt = { __e: function(e, t, n, r) {
19979
+ Wp = Px.slice, Pt = { __e: function(e, t, n, r) {
19980
19980
  for (var o, a, l; t = t.__; )
19981
19981
  if ((o = t.__c) && !o.__)
19982
19982
  try {
@@ -19991,9 +19991,9 @@ jp = Px.slice, Pt = { __e: function(e, t, n, r) {
19991
19991
  n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Ai({}, this.state), typeof e == "function" && (e = e(Ai({}, n), this.props)), e && Ai(n, e), e != null && this.__v && (t && this._sb.push(t), S0(this));
19992
19992
  }, Vc.prototype.forceUpdate = function(e) {
19993
19993
  this.__v && (this.__e = !0, e && this.__h.push(e), S0(this));
19994
- }, Vc.prototype.render = Up, pa = [], Cx = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Tx = function(e, t) {
19994
+ }, Vc.prototype.render = Gp, pa = [], Cx = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Tx = function(e, t) {
19995
19995
  return e.__v.__b - t.__v.__b;
19996
- }, lp.__r = 0, Ax = /(PointerCapture)$|Capture$/i, wv = 0, gh = T0(!1), yh = T0(!0);
19996
+ }, up.__r = 0, Ax = /(PointerCapture)$|Capture$/i, wv = 0, gh = T0(!1), yh = T0(!0);
19997
19997
  var Bx = function(e, t, n, r) {
19998
19998
  var o;
19999
19999
  t[0] = 0;
@@ -20017,17 +20017,17 @@ function FD(e) {
20017
20017
  return d(), c;
20018
20018
  }(e)), t), arguments, [])).length > 1 ? t : t[0];
20019
20019
  }
20020
- var pn = FD.bind(Rx), ds, Ht, Od, P0, Il = 0, Fx = [], Xt = Pt, R0 = Xt.__b, D0 = Xt.__r, k0 = Xt.diffed, M0 = Xt.__c, N0 = Xt.unmount, L0 = Xt.__;
20021
- function Gp(e, t) {
20020
+ var pn = FD.bind(Rx), ds, Ht, Id, P0, Il = 0, Fx = [], Xt = Pt, R0 = Xt.__b, D0 = Xt.__r, k0 = Xt.diffed, M0 = Xt.__c, N0 = Xt.unmount, L0 = Xt.__;
20021
+ function Vp(e, t) {
20022
20022
  Xt.__h && Xt.__h(Ht, e, Il || t), Il = 0;
20023
20023
  var n = Ht.__H || (Ht.__H = { __: [], __h: [] });
20024
20024
  return e >= n.__.length && n.__.push({}), n.__[e];
20025
20025
  }
20026
- function Id(e) {
20026
+ function Bd(e) {
20027
20027
  return Il = 1, $D($x, e);
20028
20028
  }
20029
20029
  function $D(e, t, n) {
20030
- var r = Gp(ds++, 2);
20030
+ var r = Vp(ds++, 2);
20031
20031
  if (r.t = e, !r.__c && (r.__ = [n ? n(t) : $x(void 0, t), function(u) {
20032
20032
  var c = r.__N ? r.__N[0] : r.__[0], d = r.t(c, u);
20033
20033
  c !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
@@ -20062,12 +20062,12 @@ function $D(e, t, n) {
20062
20062
  }
20063
20063
  return r.__N || r.__;
20064
20064
  }
20065
- function Bd(e, t) {
20066
- var n = Gp(ds++, 3);
20065
+ function Fd(e, t) {
20066
+ var n = Vp(ds++, 3);
20067
20067
  !Xt.__s && Pv(n.__H, t) && (n.__ = e, n.u = t, Ht.__H.__h.push(n));
20068
20068
  }
20069
- function up(e, t) {
20070
- var n = Gp(ds++, 4);
20069
+ function cp(e, t) {
20070
+ var n = Vp(ds++, 4);
20071
20071
  !Xt.__s && Pv(n.__H, t) && (n.__ = e, n.u = t, Ht.__h.push(n));
20072
20072
  }
20073
20073
  function Av(e) {
@@ -20076,7 +20076,7 @@ function Av(e) {
20076
20076
  }, []);
20077
20077
  }
20078
20078
  function Bl(e, t) {
20079
- var n = Gp(ds++, 7);
20079
+ var n = Vp(ds++, 7);
20080
20080
  return Pv(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
20081
20081
  }
20082
20082
  function ss(e, t) {
@@ -20100,15 +20100,15 @@ Xt.__b = function(e) {
20100
20100
  }, Xt.__r = function(e) {
20101
20101
  D0 && D0(e), ds = 0;
20102
20102
  var t = (Ht = e.__c).__H;
20103
- t && (Od === Ht ? (t.__h = [], Ht.__h = [], t.__.forEach(function(n) {
20103
+ t && (Id === Ht ? (t.__h = [], Ht.__h = [], t.__.forEach(function(n) {
20104
20104
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
20105
- })) : (t.__h.forEach(Kc), t.__h.forEach(Eh), t.__h = [], ds = 0)), Od = Ht;
20105
+ })) : (t.__h.forEach(Kc), t.__h.forEach(Eh), t.__h = [], ds = 0)), Id = Ht;
20106
20106
  }, Xt.diffed = function(e) {
20107
20107
  k0 && k0(e);
20108
20108
  var t = e.__c;
20109
20109
  t && t.__H && (t.__H.__h.length && (Fx.push(t) !== 1 && P0 === Xt.requestAnimationFrame || ((P0 = Xt.requestAnimationFrame) || zD)(HD)), t.__H.__.forEach(function(n) {
20110
20110
  n.u && (n.__H = n.u), n.u = void 0;
20111
- })), Od = Ht = null;
20111
+ })), Id = Ht = null;
20112
20112
  }, Xt.__c = function(e, t) {
20113
20113
  t.some(function(n) {
20114
20114
  try {
@@ -20168,7 +20168,7 @@ function Hx(e) {
20168
20168
  e[t] && (r && (r += " "), r += t);
20169
20169
  return r;
20170
20170
  }
20171
- function cp() {
20171
+ function pp() {
20172
20172
  for (var e, t, n = 0, r = ""; n < arguments.length; )
20173
20173
  (e = arguments[n++]) && (t = Hx(e)) && (r && (r += " "), r += t);
20174
20174
  return r;
@@ -20183,7 +20183,7 @@ function jD(e) {
20183
20183
  } = e;
20184
20184
  return pn`
20185
20185
  <li
20186
- class=${cp("entry", { selected: n })}
20186
+ class=${pp("entry", { selected: n })}
20187
20187
  data-id=${t.id}
20188
20188
  title=${t.title || t.label}
20189
20189
  onClick=${a}
@@ -20194,7 +20194,7 @@ function jD(e) {
20194
20194
  >
20195
20195
  <div class="djs-popup-entry-content">
20196
20196
  <span
20197
- class=${cp("djs-popup-entry-name", t.className)}
20197
+ class=${pp("djs-popup-entry-name", t.className)}
20198
20198
  >
20199
20199
  ${t.imageUrl ? pn`
20200
20200
  <img class="djs-popup-entry-icon" src=${t.imageUrl} alt="" />
@@ -20240,7 +20240,7 @@ function WD(e) {
20240
20240
  entries: r,
20241
20241
  ...o
20242
20242
  } = e, a = Av(), l = Bl(() => UD(r), [r]);
20243
- return up(() => {
20243
+ return cp(() => {
20244
20244
  const u = a.current;
20245
20245
  if (!u)
20246
20246
  return;
@@ -20297,7 +20297,7 @@ function VD(e) {
20297
20297
  entries: v,
20298
20298
  onOpened: m,
20299
20299
  onClosed: y
20300
- } = e, b = Bl(() => Qt(d) ? v.length > 5 : !1, [d, v]), _ = Av(), [w, C] = Id(""), O = ss((J, ie) => {
20300
+ } = e, b = Bl(() => Qt(d) ? v.length > 5 : !1, [d, v]), _ = Av(), [w, C] = Bd(""), O = ss((J, ie) => {
20301
20301
  if (!b)
20302
20302
  return J;
20303
20303
  const ce = (me) => {
@@ -20311,12 +20311,12 @@ function VD(e) {
20311
20311
  return ie.toLowerCase().split(/\s/g).every((ue) => q.includes(ue));
20312
20312
  };
20313
20313
  return J.filter(ce);
20314
- }, [b]), [D, k] = Id(O(v, w)), [P, M] = Id(D[0]), L = ss((J) => {
20314
+ }, [b]), [D, k] = Bd(O(v, w)), [P, M] = Bd(D[0]), L = ss((J) => {
20315
20315
  (!P || !J.includes(P)) && M(J[0]), k(J);
20316
20316
  }, [P, k, M]);
20317
- Bd(() => {
20317
+ Fd(() => {
20318
20318
  L(O(v, w));
20319
- }, [w, v]), Bd(() => {
20319
+ }, [w, v]), Fd(() => {
20320
20320
  const J = (ie) => {
20321
20321
  if (ie.key === "Escape")
20322
20322
  return ie.preventDefault(), t();
@@ -20324,7 +20324,7 @@ function VD(e) {
20324
20324
  return document.documentElement.addEventListener("keydown", J), () => {
20325
20325
  document.documentElement.removeEventListener("keydown", J);
20326
20326
  };
20327
- }, []), up(() => {
20327
+ }, []), cp(() => {
20328
20328
  _.current && _.current.focus();
20329
20329
  }, []);
20330
20330
  const j = ss((J) => {
@@ -20340,7 +20340,7 @@ function VD(e) {
20340
20340
  }, [n, t, P, j]), z = ss((J) => {
20341
20341
  Xh(J.target, "input") && C(() => J.target.value);
20342
20342
  }, [C]);
20343
- Bd(() => (m(), () => {
20343
+ Fd(() => (m(), () => {
20344
20344
  y();
20345
20345
  }), []);
20346
20346
  const Q = Bl(() => l || o.length > 0, [l, o]);
@@ -20417,12 +20417,12 @@ function I0(e) {
20417
20417
  } = e, u = Av(), c = ss((d) => {
20418
20418
  Ni(d.target, ".djs-popup", !0) || t();
20419
20419
  }, [t]);
20420
- return up(() => {
20420
+ return cp(() => {
20421
20421
  if (typeof l != "function")
20422
20422
  return;
20423
20423
  const d = u.current, v = l(d);
20424
20424
  d.style.left = `${v.x}px`, d.style.top = `${v.y}px`;
20425
- }, [u.current, l]), up(() => {
20425
+ }, [u.current, l]), cp(() => {
20426
20426
  u.current && u.current.focus();
20427
20427
  }, []), pn`
20428
20428
  <div
@@ -20430,7 +20430,7 @@ function I0(e) {
20430
20430
  onClick=${c}
20431
20431
  >
20432
20432
  <div
20433
- class=${cp("djs-popup", o)}
20433
+ class=${pp("djs-popup", o)}
20434
20434
  style=${KD(e)}
20435
20435
  onKeydown=${n}
20436
20436
  onKeyup=${r}
@@ -20449,7 +20449,7 @@ function KD(e) {
20449
20449
  };
20450
20450
  }
20451
20451
  function qD(e, t) {
20452
- return cp(
20452
+ return pp(
20453
20453
  "entry",
20454
20454
  e.className,
20455
20455
  e.active ? "active" : "",
@@ -20664,7 +20664,7 @@ Bt.prototype._getEntry = function(e) {
20664
20664
  throw new Error("entry not found");
20665
20665
  return t;
20666
20666
  };
20667
- const Vp = {
20667
+ const Kp = {
20668
20668
  __init__: ["popupMenu"],
20669
20669
  popupMenu: ["type", Bt]
20670
20670
  };
@@ -20776,24 +20776,24 @@ sr.prototype.addRule = function(e, t, n) {
20776
20776
  };
20777
20777
  sr.prototype.init = function() {
20778
20778
  };
20779
- function Kp(e) {
20779
+ function qp(e) {
20780
20780
  sr.call(this, e);
20781
20781
  }
20782
- Kp.$inject = ["eventBus"];
20783
- De(Kp, sr);
20784
- Kp.prototype.init = function() {
20782
+ qp.$inject = ["eventBus"];
20783
+ De(qp, sr);
20784
+ qp.prototype.init = function() {
20785
20785
  this.addRule("elements.align", function(e) {
20786
20786
  var t = e.elements, n = Je(t, function(r) {
20787
20787
  return !(r.waypoints || r.host || r.labelTarget);
20788
20788
  });
20789
- return n = Sp(n), n.length < 2 ? !1 : n;
20789
+ return n = Cp(n), n.length < 2 ? !1 : n;
20790
20790
  });
20791
20791
  };
20792
20792
  const ek = {
20793
20793
  __depends__: [
20794
20794
  DD,
20795
20795
  xv,
20796
- Vp
20796
+ Kp
20797
20797
  ],
20798
20798
  __init__: [
20799
20799
  "alignElementsContextPadProvider",
@@ -20802,7 +20802,7 @@ const ek = {
20802
20802
  ],
20803
20803
  alignElementsContextPadProvider: ["type", Cs],
20804
20804
  alignElementsMenuProvider: ["type", Zl],
20805
- bpmnAlignElements: ["type", Kp]
20805
+ bpmnAlignElements: ["type", qp]
20806
20806
  };
20807
20807
  var tk = 10, Wx = 50, nk = 250;
20808
20808
  function Rv(e, t, n, r) {
@@ -20878,12 +20878,12 @@ function ik(e, t) {
20878
20878
  return b.distance || r;
20879
20879
  }
20880
20880
  function ok(e) {
20881
- var t = Fd(e);
20882
- return e.host && (t = t.concat(Fd(e.host))), e.attachers && (t = t.concat(e.attachers.reduce(function(n, r) {
20883
- return n.concat(Fd(r));
20881
+ var t = $d(e);
20882
+ return e.host && (t = t.concat($d(e.host))), e.attachers && (t = t.concat(e.attachers.reduce(function(n, r) {
20883
+ return n.concat($d(r));
20884
20884
  }, []))), t;
20885
20885
  }
20886
- function Fd(e) {
20886
+ function $d(e) {
20887
20887
  return sk(e).concat(ak(e));
20888
20888
  }
20889
20889
  function ak(e) {
@@ -20948,7 +20948,7 @@ const Vx = {
20948
20948
  autoPlace: ["type", Ux],
20949
20949
  autoPlaceSelectionBehavior: ["type", Gx]
20950
20950
  };
20951
- function pp(e, t) {
20951
+ function fp(e, t) {
20952
20952
  for (typeof t == "string" && (t = [t]); e = e.parent; )
20953
20953
  if (rt(e, t))
20954
20954
  return e;
@@ -21031,7 +21031,7 @@ function Fi(e, t, n, r) {
21031
21031
  var l = a.context, u = l.hints || {}, c = l.shape, d = l.parent || l.newParent;
21032
21032
  u.autoResize !== !1 && o._expand([c], d);
21033
21033
  }), this.postExecuted(["elements.move"], function(a) {
21034
- var l = a.context, u = Qc(Kh(l.closure.topLevel)), c = l.hints, d = c ? c.autoResize : !0;
21034
+ var l = a.context, u = Jc(Kh(l.closure.topLevel)), c = l.hints, d = c ? c.autoResize : !0;
21035
21035
  if (d !== !1) {
21036
21036
  var v = gs(u, function(m) {
21037
21037
  return m.parent.id;
@@ -21059,7 +21059,7 @@ Fi.$inject = [
21059
21059
  De(Fi, ge);
21060
21060
  Fi.prototype._getOptimalBounds = function(e, t) {
21061
21061
  var n = this.getOffset(t), r = this.getPadding(t), o = Ie(Wt(e)), a = Ie(t), l = {};
21062
- return o.top - a.top < r.top && (l.top = o.top - n.top), o.left - a.left < r.left && (l.left = o.left - n.left), a.right - o.right < r.right && (l.right = o.right + n.right), a.bottom - o.bottom < r.bottom && (l.bottom = o.bottom + n.bottom), Cp(K({}, a, l));
21062
+ return o.top - a.top < r.top && (l.top = o.top - n.top), o.left - a.left < r.left && (l.left = o.left - n.left), a.right - o.right < r.right && (l.right = o.right + n.right), a.bottom - o.bottom < r.bottom && (l.bottom = o.bottom + n.bottom), Tp(K({}, a, l));
21063
21063
  };
21064
21064
  Fi.prototype._expand = function(e, t) {
21065
21065
  typeof t == "string" && (t = this._elementRegistry.get(t));
@@ -21095,14 +21095,14 @@ function gk(e, t) {
21095
21095
  var n = "";
21096
21096
  return e = Ie(e), t = Ie(t), e.top > t.top && (n = n.concat("n")), e.right < t.right && (n = n.concat("w")), e.bottom < t.bottom && (n = n.concat("s")), e.left > t.left && (n = n.concat("e")), n;
21097
21097
  }
21098
- function qp(e) {
21098
+ function Yp(e) {
21099
21099
  e.invoke(Fi, this);
21100
21100
  }
21101
- qp.$inject = [
21101
+ Yp.$inject = [
21102
21102
  "injector"
21103
21103
  ];
21104
- De(qp, Fi);
21105
- qp.prototype.resize = function(e, t, n) {
21104
+ De(Yp, Fi);
21105
+ Yp.prototype.resize = function(e, t, n) {
21106
21106
  R(e, "bpmn:Participant") ? this._modeling.resizeLane(e, t, null, n) : this._modeling.resizeShape(e, t, null, n);
21107
21107
  };
21108
21108
  function Ql(e) {
@@ -21117,15 +21117,15 @@ De(Ql, sr);
21117
21117
  Ql.prototype.canResize = function(e, t) {
21118
21118
  return !1;
21119
21119
  };
21120
- function Yp(e, t) {
21120
+ function Xp(e, t) {
21121
21121
  Ql.call(this, e), this._modeling = t;
21122
21122
  }
21123
- De(Yp, Ql);
21124
- Yp.$inject = [
21123
+ De(Xp, Ql);
21124
+ Xp.$inject = [
21125
21125
  "eventBus",
21126
21126
  "modeling"
21127
21127
  ];
21128
- Yp.prototype.canResize = function(e, t) {
21128
+ Xp.prototype.canResize = function(e, t) {
21129
21129
  if (R(t.di, "bpmndi:BPMNPlane") || !R(t, "bpmn:Participant") && !R(t, "bpmn:Lane") && !R(t, "bpmn:SubProcess"))
21130
21130
  return !1;
21131
21131
  var n = !0;
@@ -21141,8 +21141,8 @@ const yk = {
21141
21141
  "bpmnAutoResize",
21142
21142
  "bpmnAutoResizeProvider"
21143
21143
  ],
21144
- bpmnAutoResize: ["type", qp],
21145
- bpmnAutoResizeProvider: ["type", Yp]
21144
+ bpmnAutoResize: ["type", Yp],
21145
+ bpmnAutoResizeProvider: ["type", Xp]
21146
21146
  };
21147
21147
  var B0 = 1500;
21148
21148
  function Xx(e, t, n) {
@@ -21239,9 +21239,9 @@ function Zx(e, t, n, r) {
21239
21239
  dy: 0
21240
21240
  }, { originalEvent: k }), u("start") === !1)
21241
21241
  return C();
21242
- a.active = !0, a.keepSelection || (M.previousSelection = n.get(), n.select(null)), a.cursor && zp(a.cursor), t.addMarker(t.getRootElement(), F0);
21242
+ a.active = !0, a.keepSelection || (M.previousSelection = n.get(), n.select(null)), a.cursor && jp(a.cursor), t.addMarker(t.getRootElement(), F0);
21243
21243
  }
21244
- kd(k), a.active && (K(M, {
21244
+ Md(k), a.active && (K(M, {
21245
21245
  x: is(J.x + L.x),
21246
21246
  y: is(J.y + L.y),
21247
21247
  dx: is(ie.x),
@@ -21250,7 +21250,7 @@ function Zx(e, t, n, r) {
21250
21250
  }
21251
21251
  function v(k) {
21252
21252
  var P, M = !0;
21253
- a.active && (k && (a.payload.originalEvent = k, kd(k)), M = u("end")), M === !1 && u("rejected"), P = O(M !== !0), u("ended", P);
21253
+ a.active && (k && (a.payload.originalEvent = k, Md(k)), M = u("end")), M === !1 && u("rejected"), P = O(M !== !0), u("ended", P);
21254
21254
  }
21255
21255
  function m(k) {
21256
21256
  fn("Escape", k) && (sa(k), C());
@@ -21287,7 +21287,7 @@ function Zx(e, t, n, r) {
21287
21287
  function D(k, P, M, L) {
21288
21288
  a && C(!1), typeof P == "string" && (L = M, M = P, P = null), L = K({}, o, L || {});
21289
21289
  var j = L.data || {}, H, z, Q, J, ie;
21290
- L.trapClick ? J = y : J = v, k ? (H = xs(k) || k, z = mo(k), kd(k), H.type === "dragstart" && sa(H)) : (H = null, z = { x: 0, y: 0 }), Q = l(z), P || (P = Q), ie = _k(H), a = K({
21290
+ L.trapClick ? J = y : J = v, k ? (H = xs(k) || k, z = mo(k), Md(k), H.type === "dragstart" && sa(H)) : (H = null, z = { x: 0, y: 0 }), Q = l(z), P || (P = Q), ie = _k(H), a = K({
21291
21291
  prefix: M,
21292
21292
  data: j,
21293
21293
  payload: {},
@@ -21467,7 +21467,7 @@ function ew(e, t) {
21467
21467
  };
21468
21468
  return Jx(r);
21469
21469
  }
21470
- function fp(e, t) {
21470
+ function dp(e, t) {
21471
21471
  return Jx({
21472
21472
  x: e.x - t.x,
21473
21473
  y: e.y - t.y
@@ -21729,7 +21729,7 @@ function Nv(e, t, n, r, o, a) {
21729
21729
  w === fl ? (m ? y.splice(d, 0, O) : y[d] = O, C.bendpointMove = {
21730
21730
  insert: m,
21731
21731
  bendpointIndex: d
21732
- }, y = this.cropWaypoints(v, y), a.updateWaypoints(v, M2(y), C)) : (w === la ? (C.docking = "source", dp(u) && (C.docking = "target", C.newWaypoints = y.reverse())) : w === ua && (C.docking = "target", dp(u) && (C.docking = "source", C.newWaypoints = y.reverse())), a.reconnect(v, b, _, O, C));
21732
+ }, y = this.cropWaypoints(v, y), a.updateWaypoints(v, M2(y), C)) : (w === la ? (C.docking = "source", hp(u) && (C.docking = "target", C.newWaypoints = y.reverse())) : w === ua && (C.docking = "target", hp(u) && (C.docking = "source", C.newWaypoints = y.reverse())), a.reconnect(v, b, _, O, C));
21733
21733
  }, this);
21734
21734
  }
21735
21735
  Nv.$inject = [
@@ -21747,7 +21747,7 @@ Nv.prototype.cropWaypoints = function(e, t) {
21747
21747
  var r = e.waypoints;
21748
21748
  return e.waypoints = t, e.waypoints = n.getCroppedWaypoints(e), t = e.waypoints, e.waypoints = r, t;
21749
21749
  };
21750
- function dp(e) {
21750
+ function hp(e) {
21751
21751
  var t = e.hover, n = e.source, r = e.target, o = e.type;
21752
21752
  if (o === la)
21753
21753
  return t && r && t === r && n !== r;
@@ -21778,7 +21778,7 @@ function ow(e, t, n, r) {
21778
21778
  u && (r.removeMarker(u, j0), r.removeMarker(u, c ? dl : bc));
21779
21779
  }), n.on("bendpoint.move.move", function(a) {
21780
21780
  var l = a.context, u = l.allowed, c = l.bendpointIndex, d = l.draggerGfx, v = l.hover, m = l.type, y = l.connection, b = y.source, _ = y.target, w = y.waypoints.slice(), C = { x: a.x, y: a.y }, O = l.hints || {}, D = {};
21781
- o && (O.connectionStart && (D.connectionStart = O.connectionStart), O.connectionEnd && (D.connectionEnd = O.connectionEnd), m === Fk ? dp(l) ? (D.connectionEnd = D.connectionEnd || C, D.source = _, D.target = v || b, w = w.reverse()) : (D.connectionStart = D.connectionStart || C, D.source = v || b, D.target = _) : m === $k ? dp(l) ? (D.connectionStart = D.connectionStart || C, D.source = v || _, D.target = b, w = w.reverse()) : (D.connectionEnd = D.connectionEnd || C, D.source = b, D.target = v || _) : (D.noCropping = !0, D.noLayout = !0, w[c] = C), m === z0 && (w = e.cropWaypoints(y, w)), D.waypoints = w, o.drawPreview(l, u, D)), rr(d, a.x, a.y);
21781
+ o && (O.connectionStart && (D.connectionStart = O.connectionStart), O.connectionEnd && (D.connectionEnd = O.connectionEnd), m === Fk ? hp(l) ? (D.connectionEnd = D.connectionEnd || C, D.source = _, D.target = v || b, w = w.reverse()) : (D.connectionStart = D.connectionStart || C, D.source = v || b, D.target = _) : m === $k ? hp(l) ? (D.connectionStart = D.connectionStart || C, D.source = v || _, D.target = b, w = w.reverse()) : (D.connectionEnd = D.connectionEnd || C, D.source = b, D.target = v || _) : (D.noCropping = !0, D.noLayout = !0, w[c] = C), m === z0 && (w = e.cropWaypoints(y, w)), D.waypoints = w, o.drawPreview(l, u, D)), rr(d, a.x, a.y);
21782
21782
  }, this), n.on([
21783
21783
  "bendpoint.move.end",
21784
21784
  "bendpoint.move.cancel"
@@ -21952,19 +21952,19 @@ function zt(e, t, n) {
21952
21952
  function cw(e) {
21953
21953
  return e.children || [];
21954
21954
  }
21955
- var Wk = Math.abs, Z0 = Math.round, $d = 10;
21955
+ var Wk = Math.abs, Z0 = Math.round, Hd = 10;
21956
21956
  function pw(e) {
21957
21957
  function t(a, l) {
21958
21958
  if (et(a)) {
21959
21959
  for (var u = a.length; u--; )
21960
- if (Wk(a[u] - l) <= $d)
21960
+ if (Wk(a[u] - l) <= Hd)
21961
21961
  return a[u];
21962
21962
  } else {
21963
21963
  a = +a;
21964
21964
  var c = l % a;
21965
- if (c < $d)
21965
+ if (c < Hd)
21966
21966
  return l - c;
21967
- if (c > a - $d)
21967
+ if (c > a - Hd)
21968
21968
  return l - c + a;
21969
21969
  }
21970
21970
  return l;
@@ -22063,12 +22063,12 @@ function fw(e, t, n, r) {
22063
22063
  }
22064
22064
  e.on("connect.hover", function(l) {
22065
22065
  var u = l.context, c = u.start, d = l.hover, v;
22066
- if (u.hover = d, v = u.canExecute = o(c, d), !Jc(v)) {
22066
+ if (u.hover = d, v = u.canExecute = o(c, d), !ep(v)) {
22067
22067
  if (v !== !1) {
22068
22068
  u.source = c, u.target = d;
22069
22069
  return;
22070
22070
  }
22071
- v = u.canExecute = a(c, d), !Jc(v) && v !== !1 && (u.source = d, u.target = c);
22071
+ v = u.canExecute = a(c, d), !ep(v) && v !== !1 && (u.source = d, u.target = c);
22072
22072
  }
22073
22073
  }), e.on(["connect.out", "connect.cleanup"], function(l) {
22074
22074
  var u = l.context;
@@ -22165,7 +22165,7 @@ Hi.$inject = [
22165
22165
  Hi.prototype.drawPreview = function(e, t, n) {
22166
22166
  n = n || {};
22167
22167
  var r = e.connectionPreviewGfx, o = e.getConnection, a = n.source, l = n.target, u = n.waypoints, c = n.connectionStart, d = n.connectionEnd, v = n.noLayout, m = n.noCropping, y = n.noNoop, b, _ = this;
22168
- if (r || (r = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), xp(r), o || (o = e.getConnection = Yk(function(w, C, O) {
22168
+ if (r || (r = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), wp(r), o || (o = e.getConnection = Yk(function(w, C, O) {
22169
22169
  return _.getConnection(w, C, O);
22170
22170
  })), t && (b = o(t, a, l)), !b) {
22171
22171
  !y && this.drawNoopPreview(r, n);
@@ -22204,7 +22204,7 @@ Hi.prototype.createConnectionPreviewGfx = function() {
22204
22204
  }), ut(e).add(qk), Ue(this._canvas.getActiveLayer(), e), e;
22205
22205
  };
22206
22206
  Hi.prototype.createNoopConnection = function(e, t) {
22207
- return wp([e, t], {
22207
+ return Sp([e, t], {
22208
22208
  stroke: "#333",
22209
22209
  strokeDasharray: [1],
22210
22210
  strokeWidth: 2,
@@ -22226,7 +22226,7 @@ const Zk = {
22226
22226
  connectionPreview: ["type", Hi]
22227
22227
  };
22228
22228
  var eb = Math.min, tb = Math.max;
22229
- function Hd(e) {
22229
+ function zd(e) {
22230
22230
  e.preventDefault();
22231
22231
  }
22232
22232
  function Tl(e) {
@@ -22357,11 +22357,11 @@ Wr.prototype.resizable = function() {
22357
22357
  '<div class="djs-direct-editing-resize-handle"></div>'
22358
22358
  );
22359
22359
  var u, c, d, v, m = function(_) {
22360
- Hd(_), Tl(_), u = _.clientX, c = _.clientY;
22360
+ zd(_), Tl(_), u = _.clientX, c = _.clientY;
22361
22361
  var w = t.getBoundingClientRect();
22362
22362
  d = w.width, v = w.height, je.bind(document, "mousemove", y), je.bind(document, "mouseup", b);
22363
22363
  }, y = function(_) {
22364
- Hd(_), Tl(_);
22364
+ zd(_), Tl(_);
22365
22365
  var w = eb(tb(d + _.clientX - u, r), a), C = eb(tb(v + _.clientY - c, o), l);
22366
22366
  t.style.width = w + "px", t.style.height = C + "px", e.resizeHandler({
22367
22367
  width: d,
@@ -22370,7 +22370,7 @@ Wr.prototype.resizable = function() {
22370
22370
  dy: _.clientY - c
22371
22371
  });
22372
22372
  }, b = function(_) {
22373
- Hd(_), Tl(_), je.unbind(document, "mousemove", y, !1), je.unbind(document, "mouseup", b, !1);
22373
+ zd(_), Tl(_), je.unbind(document, "mousemove", y, !1), je.unbind(document, "mouseup", b, !1);
22374
22374
  };
22375
22375
  je.bind(n, "mousedown", m);
22376
22376
  }
@@ -22515,7 +22515,7 @@ Ta.prototype.getGfx = function(e) {
22515
22515
  Ta.prototype.addDragger = function(e, t, n) {
22516
22516
  n = n || this.getGfx(e);
22517
22517
  var r = o_(n), o = n.getBoundingClientRect();
22518
- return this._cloneMarkers(sp(r)), Ce(r, this._styles.cls("djs-dragger", [], {
22518
+ return this._cloneMarkers(lp(r)), Ce(r, this._styles.cls("djs-dragger", [], {
22519
22519
  x: o.top,
22520
22520
  y: o.left
22521
22521
  })), Ue(t, r), r;
@@ -22729,7 +22729,7 @@ function mw(e, t, n, r, o) {
22729
22729
  var c = Fe("g");
22730
22730
  return l.forEach(function(d) {
22731
22731
  var v;
22732
- d.hidden || (d.waypoints ? (v = n._createContainer("connection", c), n.drawConnection(sp(v), d)) : (v = n._createContainer("shape", c), n.drawShape(sp(v), d), rr(v, d.x, d.y)), r.addDragger(d, u, v));
22732
+ d.hidden || (d.waypoints ? (v = n._createContainer("connection", c), n.drawConnection(lp(v), d)) : (v = n._createContainer("shape", c), n.drawShape(lp(v), d), rr(v, d.x, d.y)), r.addDragger(d, u, v));
22733
22733
  }), u;
22734
22734
  }
22735
22735
  t.on("create.move", cM, function(l) {
@@ -22749,7 +22749,7 @@ mw.$inject = [
22749
22749
  "previewSupport",
22750
22750
  "styles"
22751
22751
  ];
22752
- const Xp = {
22752
+ const Zp = {
22753
22753
  __depends__: [
22754
22754
  $i,
22755
22755
  Jl,
@@ -22829,7 +22829,7 @@ function Ur(e, t, n, r, o, a, l, u) {
22829
22829
  var y = ft(m, function(b) {
22830
22830
  return b === v.parent;
22831
22831
  });
22832
- y && (d.parent = v.parent.id), dM(v) && (d.priority = 2, d.host = v.host.id), Zp(v) && (d.priority = 3, d.source = v.source.id, d.target = v.target.id, d.waypoints = hM(v)), Qp(v) && (d.priority = 4, d.labelTarget = v.labelTarget.id), W(["x", "y", "width", "height"], function(b) {
22832
+ y && (d.parent = v.parent.id), dM(v) && (d.priority = 2, d.host = v.host.id), Qp(v) && (d.priority = 3, d.source = v.source.id, d.target = v.target.id, d.waypoints = hM(v)), Jp(v) && (d.priority = 4, d.labelTarget = v.labelTarget.id), W(["x", "y", "width", "height"], function(b) {
22833
22833
  We(v[b]) && (d[b] = v[b]);
22834
22834
  }), d.hidden = v.hidden, d.collapsed = v.collapsed;
22835
22835
  }), o.on("copyPaste.pasteElements", function(c) {
@@ -22879,7 +22879,7 @@ Ur.prototype._paste = function(e, t, n, r) {
22879
22879
  });
22880
22880
  var o = Wt(e);
22881
22881
  return W(e, function(a) {
22882
- Zp(a) && (a.waypoints = dn(a.waypoints, function(l) {
22882
+ Qp(a) && (a.waypoints = dn(a.waypoints, function(l) {
22883
22883
  return {
22884
22884
  x: l.x - o.x - o.width / 2,
22885
22885
  y: l.y - o.y - o.height / 2
@@ -22900,11 +22900,11 @@ Ur.prototype._createElements = function(e) {
22900
22900
  descriptor: c
22901
22901
  });
22902
22902
  var d;
22903
- if (Zp(c)) {
22903
+ if (Qp(c)) {
22904
22904
  c.source = r[u.source], c.target = r[u.target], d = r[u.id] = t.createConnection(c), o.push(d);
22905
22905
  return;
22906
22906
  }
22907
- if (Qp(c)) {
22907
+ if (Jp(c)) {
22908
22908
  c.labelTarget = r[c.labelTarget], d = r[u.id] = t.createLabel(c), o.push(d);
22909
22909
  return;
22910
22910
  }
@@ -22926,10 +22926,10 @@ Ur.prototype.createShape = function(e) {
22926
22926
  };
22927
22927
  Ur.prototype.hasRelations = function(e, t) {
22928
22928
  var n, r, o;
22929
- return !(Zp(e) && (r = ft(t, Br({ id: e.source.id })), o = ft(t, Br({ id: e.target.id })), !r || !o) || Qp(e) && (n = ft(t, Br({ id: e.labelTarget.id })), !n));
22929
+ return !(Qp(e) && (r = ft(t, Br({ id: e.source.id })), o = ft(t, Br({ id: e.target.id })), !r || !o) || Jp(e) && (n = ft(t, Br({ id: e.labelTarget.id })), !n));
22930
22930
  };
22931
22931
  Ur.prototype.createTree = function(e) {
22932
- var t = this._rules, n = this, r = {}, o = [], a = Sp(e);
22932
+ var t = this._rules, n = this, r = {}, o = [], a = Cp(e);
22933
22933
  function l(d, v) {
22934
22934
  return t.allowed("element.copy", {
22935
22935
  element: d,
@@ -22957,7 +22957,7 @@ Ur.prototype.createTree = function(e) {
22957
22957
  return m !== -1 && v.splice(m, 1), v;
22958
22958
  }
22959
22959
  return _a(a, function(d, v, m) {
22960
- if (Qp(d))
22960
+ if (Jp(d))
22961
22961
  return;
22962
22962
  W(d.labels, function(_) {
22963
22963
  u(_, m);
@@ -23003,10 +23003,10 @@ Ur.prototype.createTree = function(e) {
23003
23003
  function dM(e) {
23004
23004
  return !!e.host;
23005
23005
  }
23006
- function Zp(e) {
23006
+ function Qp(e) {
23007
23007
  return !!e.waypoints;
23008
23008
  }
23009
- function Qp(e) {
23009
+ function Jp(e) {
23010
23010
  return !!e.labelTarget;
23011
23011
  }
23012
23012
  function hM(e) {
@@ -23024,30 +23024,30 @@ function ub(e, t) {
23024
23024
  const vM = {
23025
23025
  __depends__: [
23026
23026
  pM,
23027
- Xp,
23027
+ Zp,
23028
23028
  tu,
23029
23029
  ui
23030
23030
  ],
23031
23031
  __init__: ["copyPaste"],
23032
23032
  copyPaste: ["type", Ur]
23033
23033
  };
23034
- function zd(e, t, n) {
23034
+ function jd(e, t, n) {
23035
23035
  et(n) || (n = [n]), W(n, function(r) {
23036
23036
  ki(e[r]) || (t[r] = e[r]);
23037
23037
  });
23038
23038
  }
23039
- var jd = 750;
23039
+ var Wd = 750;
23040
23040
  function gw(e, t, n) {
23041
23041
  function r(c, d) {
23042
23042
  var v = e.create(c.$type);
23043
23043
  return n.copyElement(c, v, null, d);
23044
23044
  }
23045
- t.on("copyPaste.copyElement", jd, function(c) {
23045
+ t.on("copyPaste.copyElement", Wd, function(c) {
23046
23046
  var d = c.descriptor, v = c.element, m = Te(v);
23047
23047
  if (cb(v))
23048
23048
  return d;
23049
23049
  var y = d.businessObject = r(m, !0), b = d.di = r(vt(v), !0);
23050
- b.bpmnElement = y, zd(y, d, "name"), zd(b, d, "isExpanded"), m.default && (d.default = m.default.id);
23050
+ b.bpmnElement = y, jd(y, d, "name"), jd(b, d, "isExpanded"), m.default && (d.default = m.default.id);
23051
23051
  });
23052
23052
  var o = "-bpmn-js-refs";
23053
23053
  function a(c) {
@@ -23072,11 +23072,11 @@ function gw(e, t, n) {
23072
23072
  v.businessObject = Te(d[v.labelTarget]), v.di = vt(d[v.labelTarget]);
23073
23073
  return;
23074
23074
  }
23075
- m = v.businessObject = r(m), y = v.di = r(y), y.bpmnElement = m, zd(v, m, [
23075
+ m = v.businessObject = r(m), y = v.di = r(y), y.bpmnElement = m, jd(v, m, [
23076
23076
  "isExpanded",
23077
23077
  "name"
23078
23078
  ]), v.type = m.$type;
23079
- }), t.on("copyPaste.copyElement", jd, function(c) {
23079
+ }), t.on("copyPaste.copyElement", Wd, function(c) {
23080
23080
  var d = c.descriptor, v = c.element;
23081
23081
  if (R(v, "bpmn:Participant")) {
23082
23082
  var m = Te(v);
@@ -23085,7 +23085,7 @@ function gw(e, t, n) {
23085
23085
  }), t.on("copyPaste.pasteElement", function(c) {
23086
23086
  var d = c.descriptor, v = d.processRef;
23087
23087
  v && (d.processRef = r(v));
23088
- }), t.on("copyPaste.pasteElement", jd, function(c) {
23088
+ }), t.on("copyPaste.pasteElement", Wd, function(c) {
23089
23089
  var d = c.cache, v = c.descriptor;
23090
23090
  l(
23091
23091
  d,
@@ -24354,7 +24354,7 @@ Tr.prototype._getAdHocEntry = function(e) {
24354
24354
  };
24355
24355
  const IM = {
24356
24356
  __depends__: [
24357
- Vp,
24357
+ Kp,
24358
24358
  _w,
24359
24359
  Yx
24360
24360
  ],
@@ -24363,7 +24363,7 @@ const IM = {
24363
24363
  ],
24364
24364
  replaceMenuProvider: ["type", Tr]
24365
24365
  };
24366
- var hp = Math.max, vp = Math.min, BM = 20;
24366
+ var vp = Math.max, mp = Math.min, BM = 20;
24367
24367
  function ww(e, t) {
24368
24368
  return {
24369
24369
  top: e.top - t.top,
@@ -24391,13 +24391,13 @@ function $M(e, t) {
24391
24391
  }
24392
24392
  function _c(e, t, n) {
24393
24393
  var r = t[e], o = n.min && n.min[e], a = n.max && n.max[e];
24394
- return We(o) && (r = (/top|left/.test(e) ? vp : hp)(r, o)), We(a) && (r = (/top|left/.test(e) ? hp : vp)(r, a)), r;
24394
+ return We(o) && (r = (/top|left/.test(e) ? mp : vp)(r, o)), We(a) && (r = (/top|left/.test(e) ? vp : mp)(r, a)), r;
24395
24395
  }
24396
24396
  function HM(e, t) {
24397
24397
  if (!t)
24398
24398
  return e;
24399
24399
  var n = Ie(e);
24400
- return Cp({
24400
+ return Tp({
24401
24401
  top: _c("top", n, t),
24402
24402
  right: _c("right", n, t),
24403
24403
  bottom: _c("bottom", n, t),
@@ -24411,12 +24411,12 @@ function zM(e, t, n, r) {
24411
24411
  bottom: /s/.test(e) ? o.top + n.height : o.bottom,
24412
24412
  right: /e/.test(e) ? o.left + n.width : o.right
24413
24413
  }, l = r ? Ie(r) : a, u = {
24414
- top: vp(a.top, l.top),
24415
- left: vp(a.left, l.left),
24416
- bottom: hp(a.bottom, l.bottom),
24417
- right: hp(a.right, l.right)
24414
+ top: mp(a.top, l.top),
24415
+ left: mp(a.left, l.left),
24416
+ bottom: vp(a.bottom, l.bottom),
24417
+ right: vp(a.right, l.right)
24418
24418
  };
24419
- return Cp(u);
24419
+ return Tp(u);
24420
24420
  }
24421
24421
  function hl(e, t) {
24422
24422
  return typeof e < "u" ? e : BM;
@@ -24447,9 +24447,9 @@ var GM = [
24447
24447
  "bpmn:Process",
24448
24448
  "bpmn:SubProcess"
24449
24449
  ], ls = 30;
24450
- function Jp(e, t) {
24450
+ function ef(e, t) {
24451
24451
  return t = t || [], e.children.filter(function(n) {
24452
- R(n, "bpmn:Lane") && (Jp(n, t), t.push(n));
24452
+ R(n, "bpmn:Lane") && (ef(n, t), t.push(n));
24453
24453
  }), t;
24454
24454
  }
24455
24455
  function Co(e) {
@@ -24458,10 +24458,10 @@ function Co(e) {
24458
24458
  });
24459
24459
  }
24460
24460
  function Ir(e) {
24461
- return pp(e, GM) || e;
24461
+ return fp(e, GM) || e;
24462
24462
  }
24463
24463
  function VM(e, t) {
24464
- var n = Ir(e), r = R(n, "bpmn:Process") ? [] : [n], o = Jp(n, r), a = Ie(e), l = Ie(t), u = UM(e, t), c = [];
24464
+ var n = Ir(e), r = R(n, "bpmn:Process") ? [] : [n], o = ef(n, r), a = Ie(e), l = Ie(t), u = UM(e, t), c = [];
24465
24465
  return o.forEach(function(d) {
24466
24466
  if (d !== e) {
24467
24467
  var v = 0, m = u.right, y = 0, b = u.left, _ = Ie(d);
@@ -24766,7 +24766,7 @@ const qM = {
24766
24766
  xv,
24767
24767
  si,
24768
24768
  Ov,
24769
- Xp,
24769
+ Zp,
24770
24770
  IM
24771
24771
  ],
24772
24772
  __init__: ["contextPadProvider"],
@@ -24833,7 +24833,7 @@ Gt.prototype._toggleState = function(e) {
24833
24833
  };
24834
24834
  Gt.prototype._update = function() {
24835
24835
  var e = wt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
24836
- _p(e), W(t, function(n, r) {
24836
+ xp(e), W(t, function(n, r) {
24837
24837
  var o = n.group || "default", a = wt("[data-group=" + Nl(o) + "]", e);
24838
24838
  a || (a = Tt('<div class="group"></div>'), $n(a, "data-group", o), e.appendChild(a));
24839
24839
  var l = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), u = Tt(l);
@@ -25609,14 +25609,14 @@ $v.prototype.registerActions = function() {
25609
25609
  }
25610
25610
  ), e && e.register(a);
25611
25611
  };
25612
- function ef(e) {
25612
+ function tf(e) {
25613
25613
  this._injector = e, this._keyboard = this._injector.get("keyboard", !1), this._editorActions = this._injector.get("editorActions", !1), this._keyboard && this._injector.invoke(Bi, this);
25614
25614
  }
25615
- De(ef, Bi);
25616
- ef.$inject = [
25615
+ De(tf, Bi);
25616
+ tf.$inject = [
25617
25617
  "injector"
25618
25618
  ];
25619
- ef.prototype.registerBindings = function() {
25619
+ tf.prototype.registerBindings = function() {
25620
25620
  var e = this._keyboard, t = this._editorActions;
25621
25621
  Bi.prototype.registerBindings.call(this, e, t);
25622
25622
  function n(r, o) {
@@ -25706,16 +25706,16 @@ Aa.prototype._canAutoPlaceElement = (e) => {
25706
25706
  return !(t === "bpmn:BoundaryEvent" || t === "bpmn:SubProcess" && e.triggeredByEvent || t === "bpmn:IntermediateCatchEvent" && e.eventDefinitionType === "bpmn:LinkEventDefinition");
25707
25707
  };
25708
25708
  var gN = 900;
25709
- function tf(e, t, n, r) {
25709
+ function nf(e, t, n, r) {
25710
25710
  e.registerProvider(gN, this), this._contextPad = e, this._popupMenu = t, this._translate = n, this._canvas = r;
25711
25711
  }
25712
- tf.$inject = [
25712
+ nf.$inject = [
25713
25713
  "contextPad",
25714
25714
  "popupMenu",
25715
25715
  "translate",
25716
25716
  "canvas"
25717
25717
  ];
25718
- tf.prototype.getContextPadEntries = function(e) {
25718
+ nf.prototype.getContextPadEntries = function(e) {
25719
25719
  const t = this._popupMenu, n = this._translate, r = this._getAppendMenuPosition.bind(this);
25720
25720
  if (!t.isEmpty(e, "bpmn-append"))
25721
25721
  return {
@@ -25738,21 +25738,21 @@ tf.prototype.getContextPadEntries = function(e) {
25738
25738
  }
25739
25739
  };
25740
25740
  };
25741
- tf.prototype._getAppendMenuPosition = function(e) {
25741
+ nf.prototype._getAppendMenuPosition = function(e) {
25742
25742
  const t = this._contextPad, n = 5, o = t.getPad(e).html.getBoundingClientRect();
25743
25743
  return {
25744
25744
  x: o.right + n,
25745
25745
  y: o.top
25746
25746
  };
25747
25747
  };
25748
- function nf(e) {
25748
+ function rf(e) {
25749
25749
  sr.call(this, e);
25750
25750
  }
25751
- De(nf, sr);
25752
- nf.$inject = [
25751
+ De(rf, sr);
25752
+ rf.$inject = [
25753
25753
  "eventBus"
25754
25754
  ];
25755
- nf.prototype.init = function() {
25755
+ rf.prototype.init = function() {
25756
25756
  this.addRule("shape.append", function(e) {
25757
25757
  var t = e.element;
25758
25758
  const n = Te(t);
@@ -25780,7 +25780,7 @@ function bN(e) {
25780
25780
  const EN = {
25781
25781
  __depends__: [
25782
25782
  Aw,
25783
- Vp,
25783
+ Kp,
25784
25784
  Vx,
25785
25785
  xv
25786
25786
  ],
@@ -25796,10 +25796,10 @@ const EN = {
25796
25796
  createMenuProvider: ["type", ou],
25797
25797
  createPaletteProvider: ["type", Fv],
25798
25798
  createAppendEditorActions: ["type", $v],
25799
- createAppendKeyboardBindings: ["type", ef],
25799
+ createAppendKeyboardBindings: ["type", tf],
25800
25800
  appendMenuProvider: ["type", Aa],
25801
- appendContextPadProvider: ["type", tf],
25802
- appendRules: ["type", nf]
25801
+ appendContextPadProvider: ["type", nf],
25802
+ appendRules: ["type", rf]
25803
25803
  };
25804
25804
  var _N = {
25805
25805
  horizontal: ["x", "width"],
@@ -25856,12 +25856,12 @@ const xN = {
25856
25856
  __init__: ["distributeElements"],
25857
25857
  distributeElements: ["type", zi]
25858
25858
  };
25859
- function rf(e, t, n) {
25859
+ function of(e, t, n) {
25860
25860
  sr.call(this, t);
25861
25861
  }
25862
- rf.$inject = ["distributeElements", "eventBus", "rules"];
25863
- De(rf, sr);
25864
- rf.prototype.init = function() {
25862
+ of.$inject = ["distributeElements", "eventBus", "rules"];
25863
+ De(of, sr);
25864
+ of.prototype.init = function() {
25865
25865
  this.addRule("elements.distribute", function(e) {
25866
25866
  var t = e.elements;
25867
25867
  return t = Je(t, function(n) {
@@ -25876,7 +25876,7 @@ rf.prototype.init = function() {
25876
25876
  "bpmn:TextAnnotation"
25877
25877
  ]);
25878
25878
  return !(n.labelTarget || r);
25879
- }), t = Sp(t), t.length < 3 ? !1 : t;
25879
+ }), t = Cp(t), t.length < 3 ? !1 : t;
25880
25880
  });
25881
25881
  };
25882
25882
  var wN = {
@@ -25925,14 +25925,14 @@ au.prototype._getEntries = function(e) {
25925
25925
  };
25926
25926
  const CN = {
25927
25927
  __depends__: [
25928
- Vp,
25928
+ Kp,
25929
25929
  xN
25930
25930
  ],
25931
25931
  __init__: [
25932
25932
  "bpmnDistributeElements",
25933
25933
  "distributeElementsMenuProvider"
25934
25934
  ],
25935
- bpmnDistributeElements: ["type", rf],
25935
+ bpmnDistributeElements: ["type", of],
25936
25936
  distributeElementsMenuProvider: ["type", au]
25937
25937
  };
25938
25938
  var Rw = "is not a registered action", TN = "is already registered";
@@ -26013,14 +26013,14 @@ const AN = {
26013
26013
  __init__: ["editorActions"],
26014
26014
  editorActions: ["type", Ar]
26015
26015
  };
26016
- function of(e) {
26016
+ function af(e) {
26017
26017
  e.invoke(Ar, this);
26018
26018
  }
26019
- De(of, Ar);
26020
- of.$inject = [
26019
+ De(af, Ar);
26020
+ af.$inject = [
26021
26021
  "injector"
26022
26022
  ];
26023
- of.prototype._registerDefaultActions = function(e) {
26023
+ af.prototype._registerDefaultActions = function(e) {
26024
26024
  Ar.prototype._registerDefaultActions.call(this, e);
26025
26025
  var t = e.get("canvas", !1), n = e.get("elementRegistry", !1), r = e.get("selection", !1), o = e.get("spaceTool", !1), a = e.get("lassoTool", !1), l = e.get("handTool", !1), u = e.get("globalConnect", !1), c = e.get("distributeElements", !1), d = e.get("alignElements", !1), v = e.get("directEditing", !1), m = e.get("searchPad", !1), y = e.get("modeling", !1), b = e.get("contextPad", !1);
26026
26026
  t && n && r && this._registerAction("selectElements", function() {
@@ -26071,7 +26071,7 @@ const PN = {
26071
26071
  __depends__: [
26072
26072
  AN
26073
26073
  ],
26074
- editorActions: ["type", of]
26074
+ editorActions: ["type", af]
26075
26075
  };
26076
26076
  function Dw(e) {
26077
26077
  e.on([
@@ -26088,7 +26088,7 @@ function Dw(e) {
26088
26088
  }
26089
26089
  Dw.$inject = ["eventBus"];
26090
26090
  var qc = 10;
26091
- function Wd(e, t, n) {
26091
+ function Ud(e, t, n) {
26092
26092
  return n || (n = "round"), Math[n](e / t) * t;
26093
26093
  }
26094
26094
  var RN = 1200, DN = 800;
@@ -26133,9 +26133,9 @@ To.prototype.getGridSpacing = function() {
26133
26133
  };
26134
26134
  To.prototype.snapValue = function(e, t) {
26135
26135
  var n = 0;
26136
- t && t.offset && (n = t.offset), e += n, e = Wd(e, qc);
26136
+ t && t.offset && (n = t.offset), e += n, e = Ud(e, qc);
26137
26137
  var r, o;
26138
- return t && t.min && (r = t.min, We(r) && (r = Wd(r + n, qc, "ceil"), e = Math.max(e, r))), t && t.max && (o = t.max, We(o) && (o = Wd(o + n, qc, "floor"), e = Math.min(e, o))), e -= n, e;
26138
+ return t && t.min && (r = t.min, We(r) && (r = Ud(r + n, qc, "ceil"), e = Math.max(e, r))), t && t.max && (o = t.max, We(o) && (o = Ud(o + n, qc, "floor"), e = Math.min(e, o))), e -= n, e;
26139
26139
  };
26140
26140
  To.prototype.isActive = function() {
26141
26141
  return this.active;
@@ -26287,7 +26287,7 @@ Nw.$inject = [
26287
26287
  "gridSnapping"
26288
26288
  ];
26289
26289
  var $N = 3e3;
26290
- function af(e, t, n) {
26290
+ function sf(e, t, n) {
26291
26291
  ge.call(this, e), this._gridSnapping = t;
26292
26292
  var r = this;
26293
26293
  this.postExecuted([
@@ -26298,13 +26298,13 @@ function af(e, t, n) {
26298
26298
  u.connectionStart || u.connectionEnd || u.createElementsBehavior === !1 || HN(c) && n.updateWaypoints(l, r.snapMiddleSegments(c));
26299
26299
  });
26300
26300
  }
26301
- af.$inject = [
26301
+ sf.$inject = [
26302
26302
  "eventBus",
26303
26303
  "gridSnapping",
26304
26304
  "modeling"
26305
26305
  ];
26306
- De(af, ge);
26307
- af.prototype.snapMiddleSegments = function(e) {
26306
+ De(sf, ge);
26307
+ sf.prototype.snapMiddleSegments = function(e) {
26308
26308
  var t = this._gridSnapping, n;
26309
26309
  e = e.slice();
26310
26310
  for (var r = 1; r < e.length - 2; r++)
@@ -26332,7 +26332,7 @@ const UN = {
26332
26332
  ],
26333
26333
  gridSnappingAutoPlaceBehavior: ["type", Mw],
26334
26334
  gridSnappingParticipantBehavior: ["type", Nw],
26335
- gridSnappingLayoutConnectionBehavior: ["type", af]
26335
+ gridSnappingLayoutConnectionBehavior: ["type", sf]
26336
26336
  }, GN = {
26337
26337
  __depends__: [
26338
26338
  ON,
@@ -26393,14 +26393,14 @@ const qN = {
26393
26393
  __init__: ["bpmnInteractionEvents"],
26394
26394
  bpmnInteractionEvents: ["type", su]
26395
26395
  };
26396
- function sf(e) {
26396
+ function lf(e) {
26397
26397
  e.invoke(Bi, this);
26398
26398
  }
26399
- De(sf, Bi);
26400
- sf.$inject = [
26399
+ De(lf, Bi);
26400
+ lf.$inject = [
26401
26401
  "injector"
26402
26402
  ];
26403
- sf.prototype.registerBindings = function(e, t) {
26403
+ lf.prototype.registerBindings = function(e, t) {
26404
26404
  Bi.prototype.registerBindings.call(this, e, t);
26405
26405
  function n(r, o) {
26406
26406
  t.isRegistered(r) && e.addListener(o);
@@ -26444,7 +26444,7 @@ const YN = {
26444
26444
  gv
26445
26445
  ],
26446
26446
  __init__: ["keyboardBindings"],
26447
- keyboardBindings: ["type", sf]
26447
+ keyboardBindings: ["type", lf]
26448
26448
  };
26449
26449
  var XN = {
26450
26450
  moveSpeed: 1,
@@ -26669,7 +26669,7 @@ Ao.prototype.addResizer = function(e) {
26669
26669
  };
26670
26670
  Ao.prototype.removeResizers = function() {
26671
26671
  var e = this._getResizersParent();
26672
- xp(e);
26672
+ wp(e);
26673
26673
  };
26674
26674
  Ao.prototype._getResizersParent = function() {
26675
26675
  return this._canvas.getLayer("resizers");
@@ -26825,8 +26825,8 @@ uu.prototype.getEditingBBox = function(e) {
26825
26825
  lineHeight: v,
26826
26826
  paddingTop: w + "px",
26827
26827
  paddingBottom: C + "px"
26828
- })), ga(n) && !Op(n) && !hn(n)) {
26829
- var O = Ip(e), D = t.getAbsoluteBBox({
26828
+ })), ga(n) && !Ip(n) && !hn(n)) {
26829
+ var O = Bp(e), D = t.getAbsoluteBBox({
26830
26830
  x: O.x,
26831
26831
  y: O.y,
26832
26832
  width: 0,
@@ -26979,7 +26979,7 @@ function Wv(e, t) {
26979
26979
  });
26980
26980
  });
26981
26981
  function n(o) {
26982
- if (Op(o)) {
26982
+ if (Ip(o)) {
26983
26983
  var a = mL(o);
26984
26984
  a && r(o, a);
26985
26985
  }
@@ -27100,7 +27100,7 @@ Gv.$inject = [
27100
27100
  "modeling"
27101
27101
  ];
27102
27102
  var Db = 500;
27103
- function lf(e, t) {
27103
+ function uf(e, t) {
27104
27104
  t.invoke(ge, this), this._bpmnReplace = e;
27105
27105
  var n = this;
27106
27106
  this.postExecuted("elements.create", Db, function(r) {
@@ -27122,12 +27122,12 @@ function lf(e, t) {
27122
27122
  }
27123
27123
  }, !0);
27124
27124
  }
27125
- lf.$inject = [
27125
+ uf.$inject = [
27126
27126
  "bpmnReplace",
27127
27127
  "injector"
27128
27128
  ];
27129
- De(lf, ge);
27130
- lf.prototype.replaceShape = function(e, t) {
27129
+ De(uf, ge);
27130
+ uf.prototype.replaceShape = function(e, t) {
27131
27131
  var n = yL(e), r = {
27132
27132
  type: "bpmn:BoundaryEvent",
27133
27133
  host: t
@@ -27167,7 +27167,7 @@ De(Vv, ge);
27167
27167
  function Kv(e) {
27168
27168
  e.invoke(ge, this), this.preExecute("shape.create", 1500, function(t) {
27169
27169
  var n = t.context, r = n.parent, o = n.shape;
27170
- R(r, "bpmn:Lane") && !R(o, "bpmn:Lane") && (n.parent = pp(r, "bpmn:Participant"));
27170
+ R(r, "bpmn:Lane") && !R(o, "bpmn:Lane") && (n.parent = fp(r, "bpmn:Participant"));
27171
27171
  });
27172
27172
  }
27173
27173
  Kv.$inject = ["injector"];
@@ -27319,20 +27319,20 @@ function Nb(e) {
27319
27319
  return e(t);
27320
27320
  };
27321
27321
  }
27322
- function uf(e) {
27322
+ function cf(e) {
27323
27323
  this._bpmnUpdater = e;
27324
27324
  }
27325
- uf.$inject = ["bpmnUpdater"];
27326
- uf.prototype.execute = function(e) {
27325
+ cf.$inject = ["bpmnUpdater"];
27326
+ cf.prototype.execute = function(e) {
27327
27327
  var t = e.dataStoreBo, n = e.dataStoreDi, r = e.newSemanticParent, o = e.newDiParent;
27328
27328
  e.oldSemanticParent = t.$parent, e.oldDiParent = n.$parent, this._bpmnUpdater.updateSemanticParent(t, r), this._bpmnUpdater.updateDiParent(n, o);
27329
27329
  };
27330
- uf.prototype.revert = function(e) {
27330
+ cf.prototype.revert = function(e) {
27331
27331
  var t = e.dataStoreBo, n = e.dataStoreDi, r = e.oldSemanticParent, o = e.oldDiParent;
27332
27332
  this._bpmnUpdater.updateSemanticParent(t, r), this._bpmnUpdater.updateDiParent(n, o);
27333
27333
  };
27334
27334
  function Zv(e, t, n, r) {
27335
- ge.call(this, r), t.registerHandler("dataStore.updateContainment", uf);
27335
+ ge.call(this, r), t.registerHandler("dataStore.updateContainment", cf);
27336
27336
  function o() {
27337
27337
  return n.filter(function(u) {
27338
27338
  return R(u, "bpmn:Participant") && Te(u).processRef;
@@ -27456,7 +27456,7 @@ Qv.$inject = [
27456
27456
  ];
27457
27457
  De(Qv, ge);
27458
27458
  var Lb = 500;
27459
- function cf(e, t) {
27459
+ function pf(e, t) {
27460
27460
  t.invoke(ge, this), this._bpmnReplace = e;
27461
27461
  var n = this;
27462
27462
  this.postExecuted("elements.create", Lb, function(r) {
@@ -27477,12 +27477,12 @@ function cf(e, t) {
27477
27477
  });
27478
27478
  }, !0);
27479
27479
  }
27480
- cf.$inject = [
27480
+ pf.$inject = [
27481
27481
  "bpmnReplace",
27482
27482
  "injector"
27483
27483
  ];
27484
- De(cf, ge);
27485
- cf.prototype.replaceShape = function(e) {
27484
+ De(pf, ge);
27485
+ pf.prototype.replaceShape = function(e) {
27486
27486
  var t = TL(e), n;
27487
27487
  return t ? n = {
27488
27488
  type: "bpmn:IntermediateCatchEvent",
@@ -27858,7 +27858,7 @@ function BL(e, t, n) {
27858
27858
  return jb(e.x, t.x, n.x) && jb(e.y, t.y, n.y);
27859
27859
  }
27860
27860
  function jb(e, t, n) {
27861
- return e >= Uw(t, n) - mp && e <= LL(t, n) + mp;
27861
+ return e >= Uw(t, n) - gp && e <= LL(t, n) + gp;
27862
27862
  }
27863
27863
  function FL(e, t) {
27864
27864
  return {
@@ -27866,9 +27866,9 @@ function FL(e, t) {
27866
27866
  y: (e.y + t.y) / 2
27867
27867
  };
27868
27868
  }
27869
- var mp = 0.1;
27869
+ var gp = 0.1;
27870
27870
  function Wb(e, t) {
27871
- return Hb(e.x - t.x) <= mp && Hb(e.y - t.y) <= mp;
27871
+ return Hb(e.x - t.x) <= gp && Hb(e.y - t.y) <= gp;
27872
27872
  }
27873
27873
  function $L(e, t, n, r) {
27874
27874
  var o = n.segmentIndex, a = t.length - e.length;
@@ -27931,7 +27931,7 @@ function Gw(e, t, n, r) {
27931
27931
  };
27932
27932
  }
27933
27933
  function Vw(e, t) {
27934
- var n = fp(e[t - 1], e[t]), r = fp(e[t], e[t + 1]), o = n / (n + r);
27934
+ var n = dp(e[t - 1], e[t]), r = dp(e[t], e[t + 1]), o = n / (n + r);
27935
27935
  return o;
27936
27936
  }
27937
27937
  function HL(e, t) {
@@ -27942,7 +27942,7 @@ function Ub(e, t) {
27942
27942
  return [e[t], e[t + 1]];
27943
27943
  }
27944
27944
  function zL(e, t) {
27945
- var n = fp(e[0], e[1]), r = fp(e[0], t);
27945
+ var n = dp(e[0], e[1]), r = dp(e[0], t);
27946
27946
  return n === 0 ? 0 : r / n;
27947
27947
  }
27948
27948
  function jL(e, t, n, r) {
@@ -28046,7 +28046,7 @@ function rm(e, t, n, r) {
28046
28046
  if (u.createElementsBehavior !== !1) {
28047
28047
  var c = l.shape || l.connection, d = c.businessObject;
28048
28048
  if (!(hn(c) || !ga(c)) && Hr(c)) {
28049
- var v = Ip(c), m = r.getExternalLabelBounds(
28049
+ var v = Bp(c), m = r.getExternalLabelBounds(
28050
28050
  qL,
28051
28051
  Hr(c)
28052
28052
  );
@@ -28090,7 +28090,7 @@ function rm(e, t, n, r) {
28090
28090
  d && ga(d) && c.label && u.label && (u.label.x = c.label.x, u.label.y = c.label.y);
28091
28091
  }), this.postExecute("shape.resize", function(a) {
28092
28092
  var l = a.context, u = l.shape, c = l.newBounds, d = l.oldBounds;
28093
- if (Op(u)) {
28093
+ if (Ip(u)) {
28094
28094
  var v = u.label, m = Ke(v), y = ZL(d), b = XL(m, y), _ = YL(b, d, c);
28095
28095
  t.moveShape(v, _);
28096
28096
  }
@@ -28215,20 +28215,20 @@ im.$inject = [
28215
28215
  "eventBus",
28216
28216
  "modeling"
28217
28217
  ];
28218
- function pf(e, t, n) {
28219
- var r = df(e), o = qw(r, t), a = r[0];
28218
+ function ff(e, t, n) {
28219
+ var r = hf(e), o = qw(r, t), a = r[0];
28220
28220
  return o.length ? o[o.length - 1] : cu(a.original || a, n, t);
28221
28221
  }
28222
- function ff(e, t, n) {
28223
- var r = df(e), o = qw(r, t), a = r[r.length - 1];
28222
+ function df(e, t, n) {
28223
+ var r = hf(e), o = qw(r, t), a = r[r.length - 1];
28224
28224
  return o.length ? o[0] : cu(a.original || a, n, t);
28225
28225
  }
28226
28226
  function om(e, t, n) {
28227
- var r = df(e), o = Kw(t, n), a = r[0];
28227
+ var r = hf(e), o = Kw(t, n), a = r[0];
28228
28228
  return cu(a.original || a, o, t);
28229
28229
  }
28230
28230
  function am(e, t, n) {
28231
- var r = df(e), o = Kw(t, n), a = r[r.length - 1];
28231
+ var r = hf(e), o = Kw(t, n), a = r[r.length - 1];
28232
28232
  return cu(a.original || a, o, t);
28233
28233
  }
28234
28234
  function Kw(e, t) {
@@ -28239,7 +28239,7 @@ function Kw(e, t) {
28239
28239
  height: e.height
28240
28240
  };
28241
28241
  }
28242
- function df(e) {
28242
+ function hf(e) {
28243
28243
  var t = e.waypoints;
28244
28244
  if (!t.length)
28245
28245
  throw new Error("connection#" + e.id + ": no waypoints");
@@ -28263,10 +28263,10 @@ function sm(e, t) {
28263
28263
  if (nO(r, o)) {
28264
28264
  var a = rO(r);
28265
28265
  a.incoming.forEach(function(l) {
28266
- var u = ff(l, o, r);
28266
+ var u = df(l, o, r);
28267
28267
  t.reconnectEnd(l, o, u);
28268
28268
  }), a.outgoing.forEach(function(l) {
28269
- var u = pf(l, o, r);
28269
+ var u = ff(l, o, r);
28270
28270
  t.reconnectStart(l, o, u);
28271
28271
  });
28272
28272
  }
@@ -28416,7 +28416,7 @@ pm.$inject = [
28416
28416
  "bpmnRules",
28417
28417
  "injector"
28418
28418
  ];
28419
- function hf(e, t, n, r, o, a) {
28419
+ function vf(e, t, n, r, o, a) {
28420
28420
  r.invoke(ge, this), this._bpmnReplace = e, this._elementRegistry = n, this._selection = a, this.postExecuted(["elements.create"], 500, function(l) {
28421
28421
  var u = l.context, c = u.parent, d = u.elements, v = or(d, function(m, y) {
28422
28422
  var b = t.canReplace([y], y.host || y.parent || c);
@@ -28438,8 +28438,8 @@ function hf(e, t, n, r, o, a) {
28438
28438
  o.unclaimId(c.businessObject.id, c.businessObject), o.updateProperties(d, { id: c.id });
28439
28439
  });
28440
28440
  }
28441
- De(hf, ge);
28442
- hf.prototype.replaceElements = function(e, t) {
28441
+ De(vf, ge);
28442
+ vf.prototype.replaceElements = function(e, t) {
28443
28443
  var n = this._elementRegistry, r = this._bpmnReplace, o = this._selection;
28444
28444
  W(t, function(a) {
28445
28445
  var l = {
@@ -28448,7 +28448,7 @@ hf.prototype.replaceElements = function(e, t) {
28448
28448
  e[c] = r.replaceElement(u, l, { select: !1 });
28449
28449
  }), t && o.select(e);
28450
28450
  };
28451
- hf.$inject = [
28451
+ vf.$inject = [
28452
28452
  "bpmnReplace",
28453
28453
  "bpmnRules",
28454
28454
  "elementRegistry",
@@ -28477,7 +28477,7 @@ function kc(e, t, n) {
28477
28477
  }
28478
28478
  var cO = 20, pO = 50, fO = 20, dO = 20;
28479
28479
  function hO(e, t, n) {
28480
- var r = Ir(e), o = !0, a = !0, l = Jp(r, [r]), u = Ie(e), c = {}, d = {};
28480
+ var r = Ir(e), o = !0, a = !0, l = ef(r, [r]), u = Ie(e), c = {}, d = {};
28481
28481
  /e/.test(t) ? d.right = u.left + ca.width : /w/.test(t) && (d.left = u.right - ca.width), l.forEach(function(m) {
28482
28482
  var y = Ie(m);
28483
28483
  /n/.test(t) && (y.top < u.top - 10 && (o = !1), n && Rc(u.top - y.bottom) < 10 && kc(c, "top", y.top + ca.height), Rc(u.top - y.top) < 5 && Dc(d, "top", y.bottom - ca.height)), /s/.test(t) && (y.bottom > u.bottom + 10 && (a = !1), n && Rc(u.bottom - y.top) < 10 && Dc(c, "bottom", y.bottom - ca.height), Rc(u.bottom - y.bottom) < 5 && kc(d, "bottom", y.top + ca.height));
@@ -28589,7 +28589,7 @@ fm.$inject = [
28589
28589
  De(fm, ge);
28590
28590
  function mO(e, t) {
28591
28591
  return et(t) || (t = [t]), bo(t, function(n) {
28592
- return Mp(e, n);
28592
+ return Np(e, n);
28593
28593
  });
28594
28594
  }
28595
28595
  var gO = Math.max;
@@ -28681,7 +28681,7 @@ function Po(e, t, n, r, o, a, l) {
28681
28681
  if (R(y, "bpmn:SubProcess")) {
28682
28682
  var b = m.properties, _ = m.oldProperties, w = _.id, C = b.id;
28683
28683
  if (w !== C) {
28684
- if (Md(y)) {
28684
+ if (Nd(y)) {
28685
28685
  l.updateId(y, oa(C)), l.updateId(w, C);
28686
28686
  return;
28687
28687
  }
@@ -28694,7 +28694,7 @@ function Po(e, t, n, r, o, a, l) {
28694
28694
  if (R(y, "bpmn:SubProcess")) {
28695
28695
  var b = m.properties, _ = m.oldProperties, w = _.id, C = b.id;
28696
28696
  if (w !== C) {
28697
- if (Md(y)) {
28697
+ if (Nd(y)) {
28698
28698
  l.updateId(y, oa(w)), l.updateId(C, w);
28699
28699
  return;
28700
28700
  }
@@ -28704,7 +28704,7 @@ function Po(e, t, n, r, o, a, l) {
28704
28704
  }
28705
28705
  }, !0), t.on("element.changed", function(m) {
28706
28706
  var y = m.element;
28707
- if (Md(y)) {
28707
+ if (Nd(y)) {
28708
28708
  var b = y, _ = l.get(v0(b));
28709
28709
  !_ || _ === b || t.fire("element.changed", { element: _ });
28710
28710
  }
@@ -28856,7 +28856,7 @@ hm.$inject = [
28856
28856
  "eventBus",
28857
28857
  "modeling"
28858
28858
  ];
28859
- var Ud = 500;
28859
+ var Gd = 500;
28860
28860
  function vm(e, t, n, r) {
28861
28861
  ge.call(this, e);
28862
28862
  function o(u) {
@@ -28876,13 +28876,13 @@ function vm(e, t, n, r) {
28876
28876
  height: c.height
28877
28877
  };
28878
28878
  }
28879
- this.executed(["shape.toggleCollapse"], Ud, function(u) {
28879
+ this.executed(["shape.toggleCollapse"], Gd, function(u) {
28880
28880
  var c = u.context, d = c.shape;
28881
28881
  R(d, "bpmn:SubProcess") && (d.collapsed ? vt(d).isExpanded = !1 : (o(d.children), vt(d).isExpanded = !0));
28882
- }), this.reverted(["shape.toggleCollapse"], Ud, function(u) {
28882
+ }), this.reverted(["shape.toggleCollapse"], Gd, function(u) {
28883
28883
  var c = u.context, d = c.shape;
28884
28884
  d.collapsed ? vt(d).isExpanded = !1 : vt(d).isExpanded = !0;
28885
- }), this.postExecuted(["shape.toggleCollapse"], Ud, function(u) {
28885
+ }), this.postExecuted(["shape.toggleCollapse"], Gd, function(u) {
28886
28886
  var c = u.context.shape, d = t.getDefaultSize(c), v;
28887
28887
  c.collapsed ? v = l(c, d) : v = a(c, d), n.resizeShape(c, v, null, {
28888
28888
  autoResize: c.collapsed ? !1 : "nwse"
@@ -29039,7 +29039,7 @@ const RO = {
29039
29039
  adaptiveLabelPositioningBehavior: ["type", Wv],
29040
29040
  appendBehavior: ["type", Uv],
29041
29041
  associationBehavior: ["type", Gv],
29042
- attachEventBehavior: ["type", lf],
29042
+ attachEventBehavior: ["type", uf],
29043
29043
  boundaryEventBehavior: ["type", Vv],
29044
29044
  createBehavior: ["type", Kv],
29045
29045
  createDataObjectBehavior: ["type", qv],
@@ -29047,7 +29047,7 @@ const RO = {
29047
29047
  dataInputAssociationBehavior: ["type", Xv],
29048
29048
  dataStoreBehavior: ["type", Zv],
29049
29049
  deleteLaneBehavior: ["type", Qv],
29050
- detachEventBehavior: ["type", cf],
29050
+ detachEventBehavior: ["type", pf],
29051
29051
  dropOnFlowBehavior: ["type", Jv],
29052
29052
  eventBasedGatewayBehavior: ["type", em],
29053
29053
  fixHoverBehavior: ["type", zw],
@@ -29062,7 +29062,7 @@ const RO = {
29062
29062
  removeEmbeddedLabelBoundsBehavior: ["type", lm],
29063
29063
  removeParticipantBehavior: ["type", cm],
29064
29064
  replaceConnectionBehavior: ["type", pm],
29065
- replaceElementBehaviour: ["type", hf],
29065
+ replaceElementBehaviour: ["type", vf],
29066
29066
  resizeBehavior: ["type", Qw],
29067
29067
  resizeLaneBehavior: ["type", e1],
29068
29068
  rootElementReferenceBehavior: ["type", fm],
@@ -29110,12 +29110,12 @@ Dn.prototype.init = function() {
29110
29110
  return c1(t, n);
29111
29111
  }), this.addRule("elements.create", function(e) {
29112
29112
  var t = e.elements, n = e.position, r = e.target;
29113
- return Jb(r) && !gp(t, r) ? !1 : yo(t, function(o) {
29113
+ return Jb(r) && !yp(t, r) ? !1 : yo(t, function(o) {
29114
29114
  return Jb(o) ? Xc(o.source, o.target, o) : o.host ? Al(o, o.host, null, n) : Oh(o, r, null);
29115
29115
  });
29116
29116
  }), this.addRule("elements.move", function(e) {
29117
29117
  var t = e.target, n = e.shapes, r = e.position;
29118
- return Al(n, t, null, r) || l1(n, t, r) || u1(n, t) || gp(n, t);
29118
+ return Al(n, t, null, r) || l1(n, t, r) || u1(n, t) || yp(n, t);
29119
29119
  }), this.addRule("shape.create", function(e) {
29120
29120
  return Oh(
29121
29121
  e.shape,
@@ -29143,7 +29143,7 @@ Dn.prototype.canMove = u1;
29143
29143
  Dn.prototype.canAttach = Al;
29144
29144
  Dn.prototype.canReplace = l1;
29145
29145
  Dn.prototype.canDrop = vs;
29146
- Dn.prototype.canInsert = gp;
29146
+ Dn.prototype.canInsert = yp;
29147
29147
  Dn.prototype.canCreate = Oh;
29148
29148
  Dn.prototype.canConnect = Xc;
29149
29149
  Dn.prototype.canResize = c1;
@@ -29347,7 +29347,7 @@ function u1(e, t) {
29347
29347
  }) : !0;
29348
29348
  }
29349
29349
  function Oh(e, t, n, r) {
29350
- return t ? hn(e) || bm(e) ? !0 : kO(n, t) || n && Lh(n, t) ? !1 : vs(e, t) || gp(e, t) : !1;
29350
+ return t ? hn(e) || bm(e) ? !0 : kO(n, t) || n && Lh(n, t) ? !1 : vs(e, t) || yp(e, t) : !1;
29351
29351
  }
29352
29352
  function c1(e, t) {
29353
29353
  return R(e, "bpmn:SubProcess") ? pt(e) && (!t || t.width >= 100 && t.height >= 80) : R(e, "bpmn:Lane") ? !t || t.width >= 130 && t.height >= 60 : R(e, "bpmn:Participant") ? !t || t.width >= 250 && t.height >= 50 : !!(Nh(e) || bm(e));
@@ -29368,7 +29368,7 @@ function d1(e, t) {
29368
29368
  function _m(e, t) {
29369
29369
  return rt(e, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && rt(t, ["bpmn:Activity", "bpmn:ThrowEvent"]) ? { type: "bpmn:DataInputAssociation" } : rt(t, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && rt(e, ["bpmn:Activity", "bpmn:CatchEvent"]) ? { type: "bpmn:DataOutputAssociation" } : !1;
29370
29370
  }
29371
- function gp(e, t, n) {
29371
+ function yp(e, t, n) {
29372
29372
  if (!t)
29373
29373
  return !1;
29374
29374
  if (Array.isArray(e)) {
@@ -29385,7 +29385,7 @@ function h1(e, t) {
29385
29385
  return hn(t) ? !0 : !(R(t, "bpmn:Lane") && !VO(e, t.parent));
29386
29386
  }
29387
29387
  function eE(e) {
29388
- return pp(e, "bpmn:Process") || pp(e, "bpmn:Collaboration");
29388
+ return fp(e, "bpmn:Process") || fp(e, "bpmn:Collaboration");
29389
29389
  }
29390
29390
  const KO = {
29391
29391
  __depends__: [
@@ -29414,7 +29414,7 @@ const YO = {
29414
29414
  ],
29415
29415
  bpmnDiOrdering: ["type", v1]
29416
29416
  };
29417
- function vf(e) {
29417
+ function mf(e) {
29418
29418
  ge.call(this, e);
29419
29419
  var t = this;
29420
29420
  this.preExecute(["shape.create", "connection.create"], function(n) {
@@ -29425,12 +29425,12 @@ function vf(e) {
29425
29425
  l && (l.parent !== void 0 && (r.newParent = l.parent), r.newParentIndex = l.index);
29426
29426
  });
29427
29427
  }
29428
- vf.prototype.getOrdering = function(e, t) {
29428
+ mf.prototype.getOrdering = function(e, t) {
29429
29429
  return null;
29430
29430
  };
29431
- De(vf, ge);
29431
+ De(mf, ge);
29432
29432
  function xm(e, t, n) {
29433
- vf.call(this, e);
29433
+ mf.call(this, e);
29434
29434
  var r = [
29435
29435
  { type: "bpmn:SubProcess", order: { level: 6 } },
29436
29436
  // handle SequenceFlow(s) like message flows and render them always on top
@@ -29527,10 +29527,10 @@ function xm(e, t, n) {
29527
29527
  };
29528
29528
  }
29529
29529
  xm.$inject = ["eventBus", "canvas", "translate"];
29530
- De(xm, vf);
29530
+ De(xm, mf);
29531
29531
  const XO = {
29532
29532
  __depends__: [
29533
- Lp
29533
+ Op
29534
29534
  ],
29535
29535
  __init__: ["bpmnOrderingProvider"],
29536
29536
  bpmnOrderingProvider: ["type", xm]
@@ -29575,7 +29575,7 @@ function QO(e) {
29575
29575
  var t = e.originalEvent && e.originalEvent.target;
29576
29576
  return t && Ni(t, '.group[data-group="tools"]');
29577
29577
  }
29578
- const mf = {
29578
+ const gf = {
29579
29579
  __depends__: [
29580
29580
  $i
29581
29581
  ],
@@ -29645,7 +29645,7 @@ function tI(e, t, n) {
29645
29645
  throw new Error("unknown direction: " + t);
29646
29646
  }
29647
29647
  }
29648
- var Gd = Math.abs, nI = Math.round, xi = {
29648
+ var Vd = Math.abs, nI = Math.round, xi = {
29649
29649
  x: "width",
29650
29650
  y: "height"
29651
29651
  }, m1 = "crosshair", oo = {
@@ -29720,8 +29720,8 @@ Pr.prototype.makeSpace = function(e, t, n, r, o) {
29720
29720
  return this._modeling.createSpace(e, t, n, r, o);
29721
29721
  };
29722
29722
  Pr.prototype.init = function(e, t) {
29723
- var n = Gd(e.dx) > Gd(e.dy) ? "x" : "y", r = e["d" + n], o = e[n] - r;
29724
- if (Gd(r) < 5)
29723
+ var n = Vd(e.dx) > Vd(e.dy) ? "x" : "y", r = e["d" + n], o = e[n] - r;
29724
+ if (Vd(r) < 5)
29725
29725
  return !1;
29726
29726
  r < 0 && (r *= -1), ya(e) && (r *= -1);
29727
29727
  var a = JO(n, r), l = this._canvas.getRootElement(), u = jl(l, !0), c = this.calculateAdjustments(u, n, r, o), d = this._eventBus.fire("spaceTool.getMinDimensions", {
@@ -29739,7 +29739,7 @@ Pr.prototype.init = function(e, t) {
29739
29739
  spaceToolConstraints: v,
29740
29740
  start: o
29741
29741
  }
29742
- ), zp("resize-" + (n === "x" ? "ew" : "ns")), !0;
29742
+ ), jp("resize-" + (n === "x" ? "ew" : "ns")), !0;
29743
29743
  };
29744
29744
  Pr.prototype.calculateAdjustments = function(e, t, n, r) {
29745
29745
  var o = this._rules, a = [], l = [], u = [], c = [];
@@ -29844,11 +29844,11 @@ function Ih(e) {
29844
29844
  function Bh(e) {
29845
29845
  return !!e.labelTarget;
29846
29846
  }
29847
- var Vd = "djs-dragging", rE = "djs-resizing", aI = 250, Lc = Math.max;
29847
+ var Kd = "djs-dragging", rE = "djs-resizing", aI = 250, Lc = Math.max;
29848
29848
  function g1(e, t, n, r, o) {
29849
29849
  function a(l, u) {
29850
29850
  W(l, function(c) {
29851
- o.addDragger(c, u), n.addMarker(c, Vd);
29851
+ o.addDragger(c, u), n.addMarker(c, Kd);
29852
29852
  });
29853
29853
  }
29854
29854
  e.on("spaceTool.selection.start", function(l) {
@@ -29939,9 +29939,9 @@ function g1(e, t, n, r, o) {
29939
29939
  }), e.on("spaceTool.cleanup", function(l) {
29940
29940
  var u = l.context, c = u.movingShapes, d = u.movingConnections, v = u.resizingShapes, m = u.line, y = u.dragGroup, b = u.frameGroup;
29941
29941
  W(c, function(_) {
29942
- n.removeMarker(_, Vd);
29942
+ n.removeMarker(_, Kd);
29943
29943
  }), W(d, function(_) {
29944
- n.removeMarker(_, Vd);
29944
+ n.removeMarker(_, Kd);
29945
29945
  }), y && (jt(m), jt(y)), W(v, function(_) {
29946
29946
  n.removeMarker(_, rE);
29947
29947
  }), b && jt(b);
@@ -29962,21 +29962,21 @@ const lI = {
29962
29962
  __depends__: [
29963
29963
  $i,
29964
29964
  ui,
29965
- mf,
29965
+ gf,
29966
29966
  Jl,
29967
29967
  tu
29968
29968
  ],
29969
29969
  spaceTool: ["type", Pr],
29970
29970
  spaceToolPreview: ["type", g1]
29971
29971
  };
29972
- function gf(e) {
29972
+ function yf(e) {
29973
29973
  e.invoke(Pr, this);
29974
29974
  }
29975
- gf.$inject = [
29975
+ yf.$inject = [
29976
29976
  "injector"
29977
29977
  ];
29978
- De(gf, Pr);
29979
- gf.prototype.calculateAdjustments = function(e, t, n, r) {
29978
+ De(yf, Pr);
29979
+ yf.prototype.calculateAdjustments = function(e, t, n, r) {
29980
29980
  var o = Pr.prototype.calculateAdjustments.call(this, e, t, n, r);
29981
29981
  return o.resizingShapes = o.resizingShapes.filter(function(a) {
29982
29982
  return !R(a, "bpmn:TextAnnotation");
@@ -29984,7 +29984,7 @@ gf.prototype.calculateAdjustments = function(e, t, n, r) {
29984
29984
  };
29985
29985
  const y1 = {
29986
29986
  __depends__: [lI],
29987
- spaceTool: ["type", gf]
29987
+ spaceTool: ["type", yf]
29988
29988
  };
29989
29989
  function kt(e, t) {
29990
29990
  this._handlerMap = {}, this._stack = [], this._stackIdx = -1, this._currentExecution = {
@@ -30143,7 +30143,7 @@ function fI(e, t, n) {
30143
30143
  function wm(e, t) {
30144
30144
  e.style.display = t === !1 ? "none" : "";
30145
30145
  }
30146
- var b1 = "djs-tooltip", Kd = "." + b1;
30146
+ var b1 = "djs-tooltip", qd = "." + b1;
30147
30147
  function Zn(e, t) {
30148
30148
  this._eventBus = e, this._canvas = t, this._ids = cI, this._tooltipDefaults = {
30149
30149
  show: {
@@ -30152,11 +30152,11 @@ function Zn(e, t) {
30152
30152
  }
30153
30153
  }, this._tooltips = {}, this._tooltipRoot = pI(t.getContainer());
30154
30154
  var n = this;
30155
- xr.bind(this._tooltipRoot, Kd, "mousedown", function(r) {
30155
+ xr.bind(this._tooltipRoot, qd, "mousedown", function(r) {
30156
30156
  r.stopPropagation();
30157
- }), xr.bind(this._tooltipRoot, Kd, "mouseover", function(r) {
30157
+ }), xr.bind(this._tooltipRoot, qd, "mouseover", function(r) {
30158
30158
  n.trigger("mouseover", r);
30159
- }), xr.bind(this._tooltipRoot, Kd, "mouseout", function(r) {
30159
+ }), xr.bind(this._tooltipRoot, qd, "mouseout", function(r) {
30160
30160
  n.trigger("mouseout", r);
30161
30161
  }), this._init();
30162
30162
  }
@@ -30397,7 +30397,7 @@ Cm.$inject = [
30397
30397
  "modeling"
30398
30398
  ];
30399
30399
  function Fh(e) {
30400
- return Qc(dn(e, function(t) {
30400
+ return Jc(dn(e, function(t) {
30401
30401
  return t.attachers || [];
30402
30402
  }));
30403
30403
  }
@@ -30606,7 +30606,7 @@ lr.prototype.updateAttachment = function(e) {
30606
30606
  n.attachedToRef = r && r.businessObject;
30607
30607
  };
30608
30608
  lr.prototype.updateParent = function(e, t) {
30609
- if (!(e instanceof Ap) && !(R(e, "bpmn:DataStoreReference") && e.parent && R(e.parent, "bpmn:Collaboration"))) {
30609
+ if (!(e instanceof Pp) && !(R(e, "bpmn:DataStoreReference") && e.parent && R(e.parent, "bpmn:Collaboration"))) {
30610
30610
  var n = e.parent, r = e.businessObject, o = vt(e), a = n && n.businessObject, l = vt(n);
30611
30611
  R(e, "bpmn:FlowNode") && this.updateFlowNodeRefs(r, a, t && t.businessObject), R(e, "bpmn:DataOutputAssociation") && (e.source ? a = e.source.businessObject : a = null), R(e, "bpmn:DataInputAssociation") && (e.target ? a = e.target.businessObject : a = null), this.updateSemanticParent(r, a), R(e, "bpmn:DataObjectReference") && r.dataObjectRef && this.updateSemanticParent(r.dataObjectRef, a), this.updateDiParent(o, l);
30612
30612
  }
@@ -30620,7 +30620,7 @@ lr.prototype.updateBounds = function(e) {
30620
30620
  y: e.y + r.y
30621
30621
  });
30622
30622
  }
30623
- var o = e instanceof Ap ? this._getLabel(t) : t, a = o.bounds;
30623
+ var o = e instanceof Pp ? this._getLabel(t) : t, a = o.bounds;
30624
30624
  a || (a = this._bpmnFactory.createDiBounds(), o.set("bounds", a)), K(a, {
30625
30625
  x: e.x,
30626
30626
  y: e.y,
@@ -30805,11 +30805,11 @@ function CI(e) {
30805
30805
  "bpmndi:BPMNPlane"
30806
30806
  ]);
30807
30807
  }
30808
- function yf(e, t) {
30808
+ function bf(e, t) {
30809
30809
  this._modeling = e, this._canvas = t;
30810
30810
  }
30811
- yf.$inject = ["modeling", "canvas"];
30812
- yf.prototype.preExecute = function(e) {
30811
+ bf.$inject = ["modeling", "canvas"];
30812
+ bf.prototype.preExecute = function(e) {
30813
30813
  var t = this._modeling, n = e.elements, r = e.alignment;
30814
30814
  W(n, function(o) {
30815
30815
  var a = {
@@ -30819,13 +30819,13 @@ yf.prototype.preExecute = function(e) {
30819
30819
  Qt(r.left) ? a.x = r.left - o.x : Qt(r.right) ? a.x = r.right - o.width - o.x : Qt(r.center) ? a.x = r.center - Math.round(o.width / 2) - o.x : Qt(r.top) ? a.y = r.top - o.y : Qt(r.bottom) ? a.y = r.bottom - o.height - o.y : Qt(r.middle) && (a.y = r.middle - Math.round(o.height / 2) - o.y), t.moveElements([o], a, o.parent);
30820
30820
  });
30821
30821
  };
30822
- yf.prototype.postExecute = function(e) {
30822
+ bf.prototype.postExecute = function(e) {
30823
30823
  };
30824
- function bf(e) {
30824
+ function Ef(e) {
30825
30825
  this._modeling = e;
30826
30826
  }
30827
- bf.$inject = ["modeling"];
30828
- bf.prototype.preExecute = function(e) {
30827
+ Ef.$inject = ["modeling"];
30828
+ Ef.prototype.preExecute = function(e) {
30829
30829
  var t = e.source;
30830
30830
  if (!t)
30831
30831
  throw new Error("source required");
@@ -30837,7 +30837,7 @@ bf.prototype.preExecute = function(e) {
30837
30837
  { attach: o.attach }
30838
30838
  ), e.shape = r;
30839
30839
  };
30840
- bf.prototype.postExecute = function(e) {
30840
+ Ef.prototype.postExecute = function(e) {
30841
30841
  var t = e.hints || {};
30842
30842
  TI(e.source, e.shape) || (t.connectionTarget === e.source ? this._modeling.connect(e.shape, e.source, e.connection) : this._modeling.connect(e.source, e.shape, e.connection));
30843
30843
  };
@@ -30846,11 +30846,11 @@ function TI(e, t) {
30846
30846
  return n.target === t;
30847
30847
  });
30848
30848
  }
30849
- function Ef(e, t) {
30849
+ function _f(e, t) {
30850
30850
  this._canvas = e, this._layouter = t;
30851
30851
  }
30852
- Ef.$inject = ["canvas", "layouter"];
30853
- Ef.prototype.execute = function(e) {
30852
+ _f.$inject = ["canvas", "layouter"];
30853
+ _f.prototype.execute = function(e) {
30854
30854
  var t = e.connection, n = e.source, r = e.target, o = e.parent, a = e.parentIndex, l = e.hints;
30855
30855
  if (!n || !r)
30856
30856
  throw new Error("source and target required");
@@ -30858,7 +30858,7 @@ Ef.prototype.execute = function(e) {
30858
30858
  throw new Error("parent required");
30859
30859
  return t.source = n, t.target = r, t.waypoints || (t.waypoints = this._layouter.layoutConnection(t, l)), this._canvas.addConnection(t, o, a), t;
30860
30860
  };
30861
- Ef.prototype.revert = function(e) {
30861
+ _f.prototype.revert = function(e) {
30862
30862
  var t = e.connection;
30863
30863
  return this._canvas.removeConnection(t), t.source = null, t.target = null, t;
30864
30864
  };
@@ -30888,7 +30888,7 @@ Tm.prototype.preExecute = function(e) {
30888
30888
  y: Oc(m.y - c.y - c.height / 2 + o.y)
30889
30889
  });
30890
30890
  });
30891
- var d = Sp(t), v = {};
30891
+ var d = Cp(t), v = {};
30892
30892
  W(t, function(m) {
30893
30893
  if (lE(m)) {
30894
30894
  v[m.id] = We(r) ? l.createConnection(
@@ -31025,15 +31025,15 @@ du.prototype.revert = function(e) {
31025
31025
  function DI(e) {
31026
31026
  return e.waypoints;
31027
31027
  }
31028
- function _f(e) {
31028
+ function xf(e) {
31029
31029
  this._modeling = e;
31030
31030
  }
31031
- _f.$inject = ["modeling"];
31031
+ xf.$inject = ["modeling"];
31032
31032
  var cE = {
31033
31033
  x: "y",
31034
31034
  y: "x"
31035
31035
  };
31036
- _f.prototype.preExecute = function(e) {
31036
+ xf.prototype.preExecute = function(e) {
31037
31037
  var t = this._modeling, n = e.groups, r = e.axis, o = e.dimension;
31038
31038
  function a(C, O) {
31039
31039
  C.range.min = Math.min(O[r], C.range.min), C.range.max = Math.max(O[r] + O[o], C.range.max);
@@ -31075,19 +31075,19 @@ _f.prototype.preExecute = function(e) {
31075
31075
  }));
31076
31076
  });
31077
31077
  };
31078
- _f.prototype.postExecute = function(e) {
31078
+ xf.prototype.postExecute = function(e) {
31079
31079
  };
31080
- function xf(e, t) {
31080
+ function wf(e, t) {
31081
31081
  this._layouter = e, this._canvas = t;
31082
31082
  }
31083
- xf.$inject = ["layouter", "canvas"];
31084
- xf.prototype.execute = function(e) {
31083
+ wf.$inject = ["layouter", "canvas"];
31084
+ wf.prototype.execute = function(e) {
31085
31085
  var t = e.connection, n = t.waypoints;
31086
31086
  return K(e, {
31087
31087
  oldWaypoints: n
31088
31088
  }), t.waypoints = this._layouter.layoutConnection(t, e.hints), t;
31089
31089
  };
31090
- xf.prototype.revert = function(e) {
31090
+ wf.prototype.revert = function(e) {
31091
31091
  var t = e.connection;
31092
31092
  return t.waypoints = e.oldWaypoints, t;
31093
31093
  };
@@ -31139,14 +31139,14 @@ hu.prototype.moveClosure = function(e, t, n, r, o) {
31139
31139
  hu.prototype.getClosure = function(e) {
31140
31140
  return new Rm().addAll(e, !0);
31141
31141
  };
31142
- function wf(e) {
31142
+ function Sf(e) {
31143
31143
  this._helper = new hu(e);
31144
31144
  }
31145
- wf.$inject = ["modeling"];
31146
- wf.prototype.preExecute = function(e) {
31145
+ Sf.$inject = ["modeling"];
31146
+ Sf.prototype.preExecute = function(e) {
31147
31147
  e.closure = this._helper.getClosure(e.shapes);
31148
31148
  };
31149
- wf.prototype.postExecute = function(e) {
31149
+ Sf.prototype.postExecute = function(e) {
31150
31150
  var t = e.hints, n;
31151
31151
  t && t.primaryShape && (n = t.primaryShape, t.oldParent = n.parent), this._helper.moveClosure(
31152
31152
  e.closure,
@@ -31247,7 +31247,7 @@ ji.prototype.preExecute = function(e) {
31247
31247
  C && t.reconnectEnd(
31248
31248
  _,
31249
31249
  u,
31250
- ff(_, u, v),
31250
+ df(_, u, v),
31251
31251
  l
31252
31252
  );
31253
31253
  }), W(b, function(_) {
@@ -31255,7 +31255,7 @@ ji.prototype.preExecute = function(e) {
31255
31255
  C && t.reconnectStart(
31256
31256
  _,
31257
31257
  u,
31258
- pf(_, u, v),
31258
+ ff(_, u, v),
31259
31259
  l
31260
31260
  );
31261
31261
  });
@@ -31305,11 +31305,11 @@ mu.prototype.postExecute = function(e) {
31305
31305
  var t = this._modeling, n = e.shape, r = e.oldBounds, o = e.hints || {};
31306
31306
  o.layout !== !1 && (W(n.incoming, function(a) {
31307
31307
  t.layoutConnection(a, {
31308
- connectionEnd: ff(a, n, r)
31308
+ connectionEnd: df(a, n, r)
31309
31309
  });
31310
31310
  }), W(n.outgoing, function(a) {
31311
31311
  t.layoutConnection(a, {
31312
- connectionStart: pf(a, n, r)
31312
+ connectionStart: ff(a, n, r)
31313
31313
  });
31314
31314
  }));
31315
31315
  };
@@ -31373,11 +31373,11 @@ ko.prototype.updateConnectionWaypoints = function(e, t, n, r, o, a, l) {
31373
31373
  return dE(w, r, n) && (w[b] = w[b] + t[b]), w.original && dE(w.original, r, n) && (w.original[b] = w.original[b] + t[b]), w;
31374
31374
  }), u._modeling.updateWaypoints(d, y, {
31375
31375
  labelBehavior: !1
31376
- })) : (ao(c, v) || ao(c, m)) && (ao(o, v) ? _.connectionStart = om(d, v, t) : ao(o, m) ? _.connectionEnd = am(d, m, t) : ao(a, v) ? _.connectionStart = pf(
31376
+ })) : (ao(c, v) || ao(c, m)) && (ao(o, v) ? _.connectionStart = om(d, v, t) : ao(o, m) ? _.connectionEnd = am(d, m, t) : ao(a, v) ? _.connectionStart = ff(
31377
31377
  d,
31378
31378
  v,
31379
31379
  l[v.id]
31380
- ) : ao(a, m) && (_.connectionEnd = ff(
31380
+ ) : ao(a, m) && (_.connectionEnd = df(
31381
31381
  d,
31382
31382
  m,
31383
31383
  l[m.id]
@@ -31422,17 +31422,17 @@ function MI(e) {
31422
31422
  width: e.width
31423
31423
  };
31424
31424
  }
31425
- function Sf(e) {
31425
+ function Cf(e) {
31426
31426
  this._modeling = e;
31427
31427
  }
31428
- Sf.$inject = ["modeling"];
31429
- Sf.prototype.execute = function(e) {
31428
+ Cf.$inject = ["modeling"];
31429
+ Cf.prototype.execute = function(e) {
31430
31430
  var t = e.shape, n = t.children;
31431
31431
  e.oldChildrenVisibility = x1(n), t.collapsed = !t.collapsed;
31432
31432
  var r = w1(n, t.collapsed);
31433
31433
  return [t].concat(r);
31434
31434
  };
31435
- Sf.prototype.revert = function(e) {
31435
+ Cf.prototype.revert = function(e) {
31436
31436
  var t = e.shape, n = e.oldChildrenVisibility, r = t.children, o = S1(r, n);
31437
31437
  return t.collapsed = !t.collapsed, [t].concat(o);
31438
31438
  };
@@ -31454,15 +31454,15 @@ function S1(e, t) {
31454
31454
  r.hidden = t[r.id], n = n.concat(r), r.children && (n = n.concat(S1(r.children, t)));
31455
31455
  }), n;
31456
31456
  }
31457
- function Cf(e) {
31457
+ function Tf(e) {
31458
31458
  this._modeling = e;
31459
31459
  }
31460
- Cf.$inject = ["modeling"];
31461
- Cf.prototype.execute = function(e) {
31460
+ Tf.$inject = ["modeling"];
31461
+ Tf.prototype.execute = function(e) {
31462
31462
  var t = e.shape, n = e.newHost, r = t.host;
31463
31463
  return e.oldHost = r, e.attacherIdx = C1(r, t), T1(n, t), t.host = n, t;
31464
31464
  };
31465
- Cf.prototype.revert = function(e) {
31465
+ Tf.prototype.revert = function(e) {
31466
31466
  var t = e.shape, n = e.newHost, r = e.oldHost, o = e.attacherIdx;
31467
31467
  return t.host = r, C1(n, t), T1(r, t, o), t;
31468
31468
  };
@@ -31495,27 +31495,27 @@ function bt(e, t, n) {
31495
31495
  bt.$inject = ["eventBus", "elementFactory", "commandStack"];
31496
31496
  bt.prototype.getHandlers = function() {
31497
31497
  return {
31498
- "shape.append": bf,
31498
+ "shape.append": Ef,
31499
31499
  "shape.create": Do,
31500
31500
  "shape.delete": du,
31501
31501
  "shape.move": Da,
31502
31502
  "shape.resize": mu,
31503
31503
  "shape.replace": ji,
31504
- "shape.toggleCollapse": Sf,
31504
+ "shape.toggleCollapse": Cf,
31505
31505
  spaceTool: ko,
31506
31506
  "label.create": pu,
31507
- "connection.create": Ef,
31507
+ "connection.create": _f,
31508
31508
  "connection.delete": fu,
31509
31509
  "connection.move": Pm,
31510
- "connection.layout": xf,
31510
+ "connection.layout": wf,
31511
31511
  "connection.updateWaypoints": Dm,
31512
31512
  "connection.reconnect": vu,
31513
31513
  "elements.create": Tm,
31514
- "elements.move": wf,
31514
+ "elements.move": Sf,
31515
31515
  "elements.delete": Am,
31516
- "elements.distribute": _f,
31517
- "elements.align": yf,
31518
- "element.updateAttachment": Cf
31516
+ "elements.distribute": xf,
31517
+ "elements.align": bf,
31518
+ "element.updateAttachment": Tf
31519
31519
  };
31520
31520
  };
31521
31521
  bt.prototype.registerHandlers = function(e) {
@@ -31743,7 +31743,7 @@ gu.prototype.execute = function(e) {
31743
31743
  var t = e.element, n = e.moddleElement, r = e.properties;
31744
31744
  if (!n)
31745
31745
  throw new Error("<moddleElement> required");
31746
- var o = e.changed || this.getVisualReferences(n).concat(t), a = e.oldProperties || NI(n, ep(r));
31746
+ var o = e.changed || this.getVisualReferences(n).concat(t), a = e.oldProperties || NI(n, tp(r));
31747
31747
  return A1(n, r), e.oldProperties = a, e.changed = o, o;
31748
31748
  };
31749
31749
  gu.prototype.revert = function(e) {
@@ -31805,9 +31805,9 @@ function R1(e, t) {
31805
31805
  return Di in e && e[Di] !== t[Di];
31806
31806
  }
31807
31807
  function II(e, t) {
31808
- var n = ep(t), r = e.businessObject, o = vt(e);
31808
+ var n = tp(t), r = e.businessObject, o = vt(e);
31809
31809
  return or(n, function(a, l) {
31810
- return l !== P1 ? a[l] = r.get(l) : a[l] = BI(o, ep(t.di)), a;
31810
+ return l !== P1 ? a[l] = r.get(l) : a[l] = BI(o, tp(t.di)), a;
31811
31811
  }, {});
31812
31812
  }
31813
31813
  function BI(e, t) {
@@ -31833,18 +31833,18 @@ function HI(e) {
31833
31833
  n in e && (t[n] = Te(t[n]));
31834
31834
  }), t;
31835
31835
  }
31836
- function Tf(e, t) {
31836
+ function Af(e, t) {
31837
31837
  this._canvas = e, this._modeling = t;
31838
31838
  }
31839
- Tf.$inject = [
31839
+ Af.$inject = [
31840
31840
  "canvas",
31841
31841
  "modeling"
31842
31842
  ];
31843
- Tf.prototype.execute = function(e) {
31843
+ Af.prototype.execute = function(e) {
31844
31844
  var t = this._canvas, n = e.newRoot, r = n.businessObject, o = t.getRootElement(), a = o.businessObject, l = a.$parent, u = vt(o);
31845
31845
  t.setRootElement(n), t.removeRootElement(o), en(l.rootElements, r), r.$parent = l, Ut(l.rootElements, a), a.$parent = null, o.di = null, u.bpmnElement = r, n.di = u, e.oldRoot = o;
31846
31846
  };
31847
- Tf.prototype.revert = function(e) {
31847
+ Af.prototype.revert = function(e) {
31848
31848
  var t = this._canvas, n = e.newRoot, r = n.businessObject, o = e.oldRoot, a = o.businessObject, l = r.$parent, u = vt(n);
31849
31849
  t.setRootElement(o), t.removeRootElement(n), Ut(l.rootElements, r), r.$parent = null, en(l.rootElements, a), a.$parent = l, n.di = null, u.bpmnElement = a, o.di = u;
31850
31850
  };
@@ -31951,7 +31951,7 @@ Eu.prototype.computeUpdates = function(e, t) {
31951
31951
  }
31952
31952
  function c(v) {
31953
31953
  var m = Ir(v);
31954
- return o[m.id] || (o[m.id] = Jp(m)), o[m.id];
31954
+ return o[m.id] || (o[m.id] = ef(m)), o[m.id];
31955
31955
  }
31956
31956
  function d(v) {
31957
31957
  if (!v.parent)
@@ -32003,15 +32003,15 @@ Eu.prototype.revert = function(e) {
32003
32003
  });
32004
32004
  });
32005
32005
  };
32006
- function Af(e) {
32006
+ function Pf(e) {
32007
32007
  this._moddle = e;
32008
32008
  }
32009
- Af.$inject = ["moddle"];
32010
- Af.prototype.execute = function(e) {
32009
+ Pf.$inject = ["moddle"];
32010
+ Pf.prototype.execute = function(e) {
32011
32011
  var t = this._moddle.ids, n = e.id, r = e.element, o = e.claiming;
32012
32012
  o ? t.claim(n, r) : t.unclaim(n);
32013
32013
  };
32014
- Af.prototype.revert = function(e) {
32014
+ Pf.prototype.revert = function(e) {
32015
32015
  var t = this._moddle.ids, n = e.id, r = e.element, o = e.claiming;
32016
32016
  o ? t.unclaim(n) : t.claim(n, r);
32017
32017
  };
@@ -32089,8 +32089,8 @@ function k1(e, t, n) {
32089
32089
  }
32090
32090
  function a(d) {
32091
32091
  var v = d.element, m = v.businessObject, y = d.newLabel;
32092
- if (!hn(v) && ga(v) && !Op(v) && !hE(y)) {
32093
- var b = 7, _ = Ip(v);
32092
+ if (!hn(v) && ga(v) && !Ip(v) && !hE(y)) {
32093
+ var b = 7, _ = Bp(v);
32094
32094
  _ = {
32095
32095
  x: _.x,
32096
32096
  y: _.y + b
@@ -32140,7 +32140,7 @@ kn.$inject = [
32140
32140
  ];
32141
32141
  kn.prototype.getHandlers = function() {
32142
32142
  var e = bt.prototype.getHandlers.call(this);
32143
- return e["element.updateModdleProperties"] = gu, e["element.updateProperties"] = yu, e["canvas.updateRoot"] = Tf, e["lane.add"] = km, e["lane.resize"] = bu, e["lane.split"] = Mm, e["lane.updateRefs"] = Eu, e["id.updateClaim"] = Af, e["element.setColor"] = Lm, e["element.updateLabel"] = k1, e;
32143
+ return e["element.updateModdleProperties"] = gu, e["element.updateProperties"] = yu, e["canvas.updateRoot"] = Af, e["lane.add"] = km, e["lane.resize"] = bu, e["lane.split"] = Mm, e["lane.updateRefs"] = Eu, e["id.updateClaim"] = Pf, e["element.setColor"] = Lm, e["element.updateLabel"] = k1, e;
32144
32144
  };
32145
32145
  kn.prototype.updateLabel = function(e, t, n, r) {
32146
32146
  this._commandStack.execute("element.updateLabel", {
@@ -32237,7 +32237,7 @@ M1.prototype.layoutConnection = function(e, t) {
32237
32237
  t.connectionEnd || Ke(t.target || e.target)
32238
32238
  ];
32239
32239
  };
32240
- var Ic = 20, VI = 5, yp = Math.round, vE = 20, KI = {
32240
+ var Ic = 20, VI = 5, bp = Math.round, vE = 20, KI = {
32241
32241
  "h:h": 20,
32242
32242
  "v:v": 20,
32243
32243
  "h:v": -10,
@@ -32264,7 +32264,7 @@ function YI(e, t) {
32264
32264
  }[e].test(t);
32265
32265
  }
32266
32266
  function N1(e, t, n) {
32267
- var r = Rn(t, e, VI), o = n.split(":")[0], a = yp((t.x - e.x) / 2 + e.x), l = yp((t.y - e.y) / 2 + e.y), u, c, d = YI(o, r), v = /h|r|l/.test(o), m = !1, y = !1;
32267
+ var r = Rn(t, e, VI), o = n.split(":")[0], a = bp((t.x - e.x) / 2 + e.x), l = bp((t.y - e.y) / 2 + e.y), u, c, d = YI(o, r), v = /h|r|l/.test(o), m = !1, y = !1;
32268
32268
  return d ? (u = v ? { x: a, y: e.y } : { x: e.x, y: l }, c = v ? "h:h" : "v:v") : (m = qI(r, o), c = v ? "h:v" : "v:h", m ? v ? (y = l === e.y, u = {
32269
32269
  x: e.x + Ic * (/l/.test(o) ? -1 : 1),
32270
32270
  y: y ? l + Ic : l
@@ -32308,7 +32308,7 @@ function mE(e) {
32308
32308
  return e.split(":").reverse().join(":");
32309
32309
  }
32310
32310
  function JI(e, t, n) {
32311
- var r = yp((t.x - e.x) / 2 + e.x), o = yp((t.y - e.y) / 2 + e.y);
32311
+ var r = bp((t.x - e.x) / 2 + e.x), o = bp((t.y - e.y) / 2 + e.y);
32312
32312
  if (n === "h:v")
32313
32313
  return [{ x: t.x, y: e.y }];
32314
32314
  if (n === "v:h")
@@ -32598,12 +32598,12 @@ function w3(e, t, n, r, o) {
32598
32598
  }
32599
32599
  function _E(e, t, n, r) {
32600
32600
  var o = p3;
32601
- return !(qd(e, r, n, o) || qd(e, r, {
32601
+ return !(Yd(e, r, n, o) || Yd(e, r, {
32602
32602
  x: n.x + n.width,
32603
32603
  y: n.y + n.height
32604
- }, o) || qd(e, r, Ke(t), o));
32604
+ }, o) || Yd(e, r, Ke(t), o));
32605
32605
  }
32606
- function qd(e, t, n, r) {
32606
+ function Yd(e, t, n, r) {
32607
32607
  return Math.abs(t[e] - n[e]) < r;
32608
32608
  }
32609
32609
  function S3(e, t, n) {
@@ -32677,11 +32677,11 @@ const T3 = {
32677
32677
  layouter: ["type", Fm],
32678
32678
  connectionDocking: ["type", Mo]
32679
32679
  };
32680
- var A3 = 500, P3 = 1250, R3 = 1500, bp = Math.round;
32680
+ var A3 = 500, P3 = 1250, R3 = 1500, Ep = Math.round;
32681
32681
  function D3(e) {
32682
32682
  return {
32683
- x: e.x + bp(e.width / 2),
32684
- y: e.y + bp(e.height / 2)
32683
+ x: e.x + Ep(e.width / 2),
32684
+ y: e.y + Ep(e.height / 2)
32685
32685
  };
32686
32686
  }
32687
32687
  function I1(e, t, n, r, o) {
@@ -32715,7 +32715,7 @@ function I1(e, t, n, r, o) {
32715
32715
  var c = u.context, d = c.delta, v = c.canExecute, m = v === "attach", y = c.shapes;
32716
32716
  if (v === !1)
32717
32717
  return !1;
32718
- d.x = bp(d.x), d.y = bp(d.y), !(d.x === 0 && d.y === 0) && n.moveElements(y, d, c.target, {
32718
+ d.x = Ep(d.x), d.y = Ep(d.y), !(d.x === 0 && d.y === 0) && n.moveElements(y, d, c.target, {
32719
32719
  primaryShape: c.shape,
32720
32720
  attach: m
32721
32721
  });
@@ -32758,7 +32758,7 @@ function k3(e) {
32758
32758
  return !0;
32759
32759
  });
32760
32760
  }
32761
- var wE = 499, Yd = "djs-dragging", SE = "drop-ok", CE = "drop-not-ok", TE = "new-parent", AE = "attach-ok";
32761
+ var wE = 499, Xd = "djs-dragging", SE = "drop-ok", CE = "drop-not-ok", TE = "new-parent", AE = "attach-ok";
32762
32762
  function B1(e, t, n, r) {
32763
32763
  function o(c) {
32764
32764
  var d = a(c), v = M3(d);
@@ -32768,7 +32768,7 @@ function B1(e, t, n, r) {
32768
32768
  var d = jl(c, !0), v = dn(d, function(m) {
32769
32769
  return (m.incoming || []).concat(m.outgoing || []);
32770
32770
  });
32771
- return Qc(d.concat(v));
32771
+ return Jc(d.concat(v));
32772
32772
  }
32773
32773
  function l(c, d) {
32774
32774
  [AE, SE, CE, TE].forEach(function(v) {
@@ -32776,7 +32776,7 @@ function B1(e, t, n, r) {
32776
32776
  });
32777
32777
  }
32778
32778
  function u(c, d, v) {
32779
- r.addDragger(d, c.dragGroup), v && t.addMarker(d, Yd), c.allDraggedElements ? c.allDraggedElements.push(d) : c.allDraggedElements = [d];
32779
+ r.addDragger(d, c.dragGroup), v && t.addMarker(d, Xd), c.allDraggedElements ? c.allDraggedElements.push(d) : c.allDraggedElements = [d];
32780
32780
  }
32781
32781
  e.on("shape.move.start", wE, function(c) {
32782
32782
  var d = c.context, v = d.shapes, m = d.allDraggedElements, y = o(v);
@@ -32788,11 +32788,11 @@ function B1(e, t, n, r) {
32788
32788
  }
32789
32789
  y.forEach(function(w) {
32790
32790
  r.addDragger(w, d.dragGroup);
32791
- }), m ? m = Qc([
32791
+ }), m ? m = Jc([
32792
32792
  m,
32793
32793
  a(v)
32794
32794
  ]) : m = a(v), W(m, function(w) {
32795
- t.addMarker(w, Yd);
32795
+ t.addMarker(w, Xd);
32796
32796
  }), d.allDraggedElements = m, d.differentParents = N3(v);
32797
32797
  }), e.on("shape.move.move", wE, function(c) {
32798
32798
  var d = c.context, v = d.dragGroup, m = d.target, y = d.shape.parent, b = d.canExecute;
@@ -32803,7 +32803,7 @@ function B1(e, t, n, r) {
32803
32803
  }), e.on("shape.move.cleanup", function(c) {
32804
32804
  var d = c.context, v = d.allDraggedElements, m = d.dragGroup;
32805
32805
  W(v, function(y) {
32806
- t.removeMarker(y, Yd);
32806
+ t.removeMarker(y, Xd);
32807
32807
  }), m && jt(m);
32808
32808
  }), this.makeDraggable = u;
32809
32809
  }
@@ -32879,16 +32879,16 @@ function ka(e, t, n, r, o, a, l) {
32879
32879
  u.activateLasso(d.originalEvent, !0);
32880
32880
  });
32881
32881
  }), e.on("lasso.end", function(d) {
32882
- var v = Xd(d), m = r.filter(function(y) {
32882
+ var v = Zd(d), m = r.filter(function(y) {
32883
32883
  return y;
32884
32884
  });
32885
32885
  u.select(m, v);
32886
32886
  }), e.on("lasso.start", function(d) {
32887
32887
  var v = d.context;
32888
- v.bbox = Xd(d), c.create(v);
32888
+ v.bbox = Zd(d), c.create(v);
32889
32889
  }), e.on("lasso.move", function(d) {
32890
32890
  var v = d.context;
32891
- v.bbox = Xd(d), c.update(v);
32891
+ v.bbox = Zd(d), c.update(v);
32892
32892
  }), e.on("lasso.cleanup", function(d) {
32893
32893
  var v = d.context;
32894
32894
  c.remove(v);
@@ -32939,7 +32939,7 @@ ka.prototype.isActive = function() {
32939
32939
  var e = this._dragging.context();
32940
32940
  return e && /^lasso/.test(e.prefix);
32941
32941
  };
32942
- function Xd(e) {
32942
+ function Zd(e) {
32943
32943
  var t = {
32944
32944
  x: e.x - e.dx,
32945
32945
  y: e.y - e.dy
@@ -32976,28 +32976,28 @@ function Xd(e) {
32976
32976
  }
32977
32977
  const I3 = {
32978
32978
  __depends__: [
32979
- mf,
32979
+ gf,
32980
32980
  tu
32981
32981
  ],
32982
32982
  __init__: ["lassoTool"],
32983
32983
  lassoTool: ["type", ka]
32984
32984
  };
32985
- var Zd = 1500, $1 = "grab";
32985
+ var Qd = 1500, $1 = "grab";
32986
32986
  function Ps(e, t, n, r, o, a) {
32987
32987
  this._dragging = n, this._mouse = a;
32988
32988
  var l = this, u = r.get("keyboard", !1);
32989
32989
  o.registerTool("hand", {
32990
32990
  tool: "hand",
32991
32991
  dragging: "hand.move"
32992
- }), e.on("element.mousedown", Zd, function(c) {
32992
+ }), e.on("element.mousedown", Qd, function(c) {
32993
32993
  if (ya(c))
32994
32994
  return l.activateMove(c.originalEvent, !0), !1;
32995
- }), u && u.addListener(Zd, function(c) {
32995
+ }), u && u.addListener(Qd, function(c) {
32996
32996
  if (!(!PE(c.keyEvent) || l.isActive())) {
32997
32997
  var d = l._mouse.getLastMoveEvent();
32998
32998
  l.activateMove(d, !!d);
32999
32999
  }
33000
- }, "keyboard.keydown"), u && u.addListener(Zd, function(c) {
33000
+ }, "keyboard.keydown"), u && u.addListener(Qd, function(c) {
33001
33001
  !PE(c.keyEvent) || !l.isActive() || l.toggle();
33002
33002
  }, "keyboard.keyup"), e.on("hand.end", function(c) {
33003
33003
  var d = c.originalEvent.target;
@@ -33063,7 +33063,7 @@ function PE(e) {
33063
33063
  }
33064
33064
  const B3 = {
33065
33065
  __depends__: [
33066
- mf,
33066
+ gf,
33067
33067
  tu
33068
33068
  ],
33069
33069
  __init__: ["handTool"],
@@ -33130,7 +33130,7 @@ const F3 = {
33130
33130
  Ov,
33131
33131
  ui,
33132
33132
  $i,
33133
- mf,
33133
+ gf,
33134
33134
  tu
33135
33135
  ],
33136
33136
  globalConnect: ["type", Rs]
@@ -33307,12 +33307,12 @@ $m.prototype.getPaletteEntries = function(e) {
33307
33307
  const $3 = {
33308
33308
  __depends__: [
33309
33309
  Aw,
33310
- Xp,
33310
+ Zp,
33311
33311
  y1,
33312
33312
  I3,
33313
33313
  B3,
33314
33314
  F3,
33315
- Lp
33315
+ Op
33316
33316
  ],
33317
33317
  __init__: ["paletteProvider"],
33318
33318
  paletteProvider: ["type", $m]
@@ -33365,7 +33365,7 @@ const z3 = {
33365
33365
  __init__: ["bpmnReplacePreview"],
33366
33366
  bpmnReplacePreview: ["type", Hm]
33367
33367
  };
33368
- var j3 = 1250, Qd = 40, W3 = 20, U3 = 10, kE = 20, H1 = ["x", "y"], G3 = Math.abs;
33368
+ var j3 = 1250, Jd = 40, W3 = 20, U3 = 10, kE = 20, H1 = ["x", "y"], G3 = Math.abs;
33369
33369
  function z1(e) {
33370
33370
  e.on([
33371
33371
  "connect.hover",
@@ -33400,7 +33400,7 @@ function q3(e) {
33400
33400
  var o = _r(n), a = Rn(o, r, -10), l = [];
33401
33401
  /top|bottom/.test(a) && l.push("x"), /left|right/.test(a) && l.push("y"), l.forEach(function(u) {
33402
33402
  var c = e[u], d;
33403
- G3(c - o[u]) < Qd && (c > o[u] ? d = o[u] + Qd : d = o[u] - Qd, zt(e, u, d));
33403
+ G3(c - o[u]) < Jd && (c > o[u] ? d = o[u] + Jd : d = o[u] - Jd, zt(e, u, d));
33404
33404
  });
33405
33405
  }
33406
33406
  }
@@ -33449,20 +33449,20 @@ No.prototype.setSnapLocations = function(e) {
33449
33449
  };
33450
33450
  No.prototype.pointsForTarget = function(e) {
33451
33451
  var t = e.id || e, n = this._targets[t];
33452
- return n || (n = this._targets[t] = new Pf(), n.initDefaults(this._defaultSnaps)), n;
33452
+ return n || (n = this._targets[t] = new Rf(), n.initDefaults(this._defaultSnaps)), n;
33453
33453
  };
33454
- function Pf(e) {
33454
+ function Rf(e) {
33455
33455
  this._snapValues = {};
33456
33456
  }
33457
- Pf.prototype.add = function(e, t) {
33457
+ Rf.prototype.add = function(e, t) {
33458
33458
  var n = this._snapValues[e];
33459
33459
  n || (n = this._snapValues[e] = { x: [], y: [] }), n.x.indexOf(t.x) === -1 && n.x.push(t.x), n.y.indexOf(t.y) === -1 && n.y.push(t.y);
33460
33460
  };
33461
- Pf.prototype.snap = function(e, t, n, r) {
33461
+ Rf.prototype.snap = function(e, t, n, r) {
33462
33462
  var o = this._snapValues[t];
33463
33463
  return o && jk(e[n], o[n], r);
33464
33464
  };
33465
- Pf.prototype.initDefaults = function(e) {
33465
+ Rf.prototype.initDefaults = function(e) {
33466
33466
  var t = this;
33467
33467
  W(e || {}, function(n, r) {
33468
33468
  W(n, function(o) {
@@ -33867,7 +33867,7 @@ Ve.prototype._scrollToNode = function(e) {
33867
33867
  }
33868
33868
  };
33869
33869
  Ve.prototype._clearResults = function() {
33870
- _p(this._resultsContainer), this._results = [], this._resetOverlay(), this._eventBus.fire("searchPad.cleared");
33870
+ xp(this._resultsContainer), this._results = [], this._resetOverlay(), this._eventBus.fire("searchPad.cleared");
33871
33871
  };
33872
33872
  Ve.prototype._getCurrentResult = function() {
33873
33873
  return wt(Ve.RESULT_SELECTED_SELECTOR, this._resultsContainer);
@@ -33950,7 +33950,7 @@ Ve.RESULT_PRIMARY_HTML = '<div class="djs-search-result-primary"></div>';
33950
33950
  Ve.RESULT_SECONDARY_HTML = '<p class="djs-search-result-secondary"></p>';
33951
33951
  const bB = {
33952
33952
  __depends__: [
33953
- $p,
33953
+ Hp,
33954
33954
  si
33955
33955
  ],
33956
33956
  searchPad: ["type", Ve]
@@ -34038,7 +34038,7 @@ ni.prototype._modelingModules = [
34038
34038
  Zk,
34039
34039
  qM,
34040
34040
  yw,
34041
- Xp,
34041
+ Zp,
34042
34042
  EN,
34043
34043
  CN,
34044
34044
  PN,
@@ -39290,7 +39290,7 @@ const tF = oi({
39290
39290
  if (r.value) {
39291
39291
  M = M.replace(/<!\[CDATA\[(.+?)]]>/g, (L, j) => j.replace(/</g, "&lt;"));
39292
39292
  try {
39293
- await r.value.importXML(M), await Jd(), y(), P = M, t("xmlChanged", M);
39293
+ await r.value.importXML(M), await Qc(), y(), P = M, t("xmlChanged", M);
39294
39294
  } catch (L) {
39295
39295
  console.error("导入失败:", L.message, L.warnings);
39296
39296
  }
@@ -39402,7 +39402,7 @@ const tF = oi({
39402
39402
  }), M.on("linting.completed", (L) => {
39403
39403
  const { issues: j } = L;
39404
39404
  console.log("Lint completed:", j);
39405
- }), r.value = M, l(M), Pn.isBlank(e.xml) ? d() : m(e.xml), Jd(() => {
39405
+ }), r.value = M, l(M), Pn.isBlank(e.xml) ? d() : m(e.xml), Qc(() => {
39406
39406
  wr(
39407
39407
  () => [e.processId, e.processName],
39408
39408
  async (L) => {
@@ -39619,7 +39619,7 @@ function pF(e, t, n, r, o, a) {
39619
39619
  ], 2);
39620
39620
  }
39621
39621
  const fF = /* @__PURE__ */ pi(tF, [["render", pF], ["__scopeId", "data-v-8a8c856e"]]);
39622
- function Rf(e) {
39622
+ function Df(e) {
39623
39623
  var t = " ";
39624
39624
  if (isNaN(parseInt(e)))
39625
39625
  t = e;
@@ -39668,10 +39668,10 @@ function Rf(e) {
39668
39668
  return n;
39669
39669
  }
39670
39670
  function Wi() {
39671
- this.step = " ", this.shift = Rf(this.step);
39671
+ this.step = " ", this.shift = Df(this.step);
39672
39672
  }
39673
39673
  Wi.prototype.xml = function(e, t) {
39674
- var n = e.replace(/>\s{0,}</g, "><").replace(/</g, "~::~<").replace(/\s*xmlns\:/g, "~::~xmlns:").replace(/\s*xmlns\=/g, "~::~xmlns=").split("~::~"), r = n.length, o = !1, a = 0, l = "", u = 0, c = t ? Rf(t) : this.shift;
39674
+ var n = e.replace(/>\s{0,}</g, "><").replace(/</g, "~::~<").replace(/\s*xmlns\:/g, "~::~xmlns:").replace(/\s*xmlns\=/g, "~::~xmlns=").split("~::~"), r = n.length, o = !1, a = 0, l = "", u = 0, c = t ? Df(t) : this.shift;
39675
39675
  for (u = 0; u < r; u++)
39676
39676
  n[u].search(/<!/) > -1 ? (l += c[a] + n[u], o = !0, (n[u].search(/-->/) > -1 || n[u].search(/\]>/) > -1 || n[u].search(/!DOCTYPE/) > -1) && (o = !1)) : n[u].search(/-->/) > -1 || n[u].search(/\]>/) > -1 ? (l += n[u], o = !1) : /^<\w/.exec(n[u - 1]) && /^<\/\w/.exec(n[u]) && /^<[\w:\-\.\,]+/.exec(n[u - 1]) == /^<\/[\w:\-\.\,]+/.exec(n[u])[0].replace("/", "") ? (l += n[u], o || a--) : n[u].search(/<\w/) > -1 && n[u].search(/<\//) == -1 && n[u].search(/\/>/) == -1 ? l = o ? l += n[u] : l += c[a++] + n[u] : n[u].search(/<\w/) > -1 && n[u].search(/<\//) > -1 ? l = o ? l += n[u] : l += c[a] + n[u] : n[u].search(/<\//) > -1 ? l = o ? l += n[u] : l += c[--a] + n[u] : n[u].search(/\/>/) > -1 ? l = o ? l += n[u] : l += c[a] + n[u] : n[u].search(/<\?/) > -1 || n[u].search(/xmlns\:/) > -1 || n[u].search(/xmlns\=/) > -1 ? l += c[a] + n[u] : l += n[u];
39677
39677
  return l[0] == `
@@ -39682,7 +39682,7 @@ Wi.prototype.json = function(e, n) {
39682
39682
  return typeof JSON > "u" ? e : typeof e == "string" ? JSON.stringify(JSON.parse(e), null, n) : typeof e == "object" ? JSON.stringify(e, null, n) : e;
39683
39683
  };
39684
39684
  Wi.prototype.css = function(e, t) {
39685
- var n = e.replace(/\s{1,}/g, " ").replace(/\{/g, "{~::~").replace(/\}/g, "~::~}~::~").replace(/\;/g, ";~::~").replace(/\/\*/g, "~::~/*").replace(/\*\//g, "*/~::~").replace(/~::~\s{0,}~::~/g, "~::~").split("~::~"), r = n.length, o = 0, a = "", l = 0, u = t ? Rf(t) : this.shift;
39685
+ var n = e.replace(/\s{1,}/g, " ").replace(/\{/g, "{~::~").replace(/\}/g, "~::~}~::~").replace(/\;/g, ";~::~").replace(/\/\*/g, "~::~/*").replace(/\*\//g, "*/~::~").replace(/~::~\s{0,}~::~/g, "~::~").split("~::~"), r = n.length, o = 0, a = "", l = 0, u = t ? Df(t) : this.shift;
39686
39686
  for (l = 0; l < r; l++)
39687
39687
  /\{/.exec(n[l]) ? a += u[o++] + n[l] : /\}/.exec(n[l]) ? a += u[--o] + n[l] : (/\*\\/.exec(n[l]), a += u[o] + n[l]);
39688
39688
  return a.replace(/^\n{1,}/, "");
@@ -39694,7 +39694,7 @@ function hF(e, t) {
39694
39694
  return e.replace(/\s{1,}/g, " ").replace(/ AND /ig, "~::~" + t + t + "AND ").replace(/ BETWEEN /ig, "~::~" + t + "BETWEEN ").replace(/ CASE /ig, "~::~" + t + "CASE ").replace(/ ELSE /ig, "~::~" + t + "ELSE ").replace(/ END /ig, "~::~" + t + "END ").replace(/ FROM /ig, "~::~FROM ").replace(/ GROUP\s{1,}BY/ig, "~::~GROUP BY ").replace(/ HAVING /ig, "~::~HAVING ").replace(/ IN /ig, " IN ").replace(/ JOIN /ig, "~::~JOIN ").replace(/ CROSS~::~{1,}JOIN /ig, "~::~CROSS JOIN ").replace(/ INNER~::~{1,}JOIN /ig, "~::~INNER JOIN ").replace(/ LEFT~::~{1,}JOIN /ig, "~::~LEFT JOIN ").replace(/ RIGHT~::~{1,}JOIN /ig, "~::~RIGHT JOIN ").replace(/ ON /ig, "~::~" + t + "ON ").replace(/ OR /ig, "~::~" + t + t + "OR ").replace(/ ORDER\s{1,}BY/ig, "~::~ORDER BY ").replace(/ OVER /ig, "~::~" + t + "OVER ").replace(/\(\s{0,}SELECT /ig, "~::~(SELECT ").replace(/\)\s{0,}SELECT /ig, ")~::~SELECT ").replace(/ THEN /ig, " THEN~::~" + t).replace(/ UNION /ig, "~::~UNION~::~").replace(/ USING /ig, "~::~USING ").replace(/ WHEN /ig, "~::~" + t + "WHEN ").replace(/ WHERE /ig, "~::~WHERE ").replace(/ WITH /ig, "~::~WITH ").replace(/ ALL /ig, " ALL ").replace(/ AS /ig, " AS ").replace(/ ASC /ig, " ASC ").replace(/ DESC /ig, " DESC ").replace(/ DISTINCT /ig, " DISTINCT ").replace(/ EXISTS /ig, " EXISTS ").replace(/ NOT /ig, " NOT ").replace(/ NULL /ig, " NULL ").replace(/ LIKE /ig, " LIKE ").replace(/\s{0,}SELECT /ig, "SELECT ").replace(/\s{0,}UPDATE /ig, "UPDATE ").replace(/ SET /ig, " SET ").replace(/~::~{1,}/g, "~::~").split("~::~");
39695
39695
  }
39696
39696
  Wi.prototype.sql = function(e, t) {
39697
- var n = e.replace(/\s{1,}/g, " ").replace(/\'/ig, "~::~'").split("~::~"), r = n.length, o = [], a = 0, l = this.step, u = 0, c = "", d = 0, v = t ? Rf(t) : this.shift;
39697
+ var n = e.replace(/\s{1,}/g, " ").replace(/\'/ig, "~::~'").split("~::~"), r = n.length, o = [], a = 0, l = this.step, u = 0, c = "", d = 0, v = t ? Df(t) : this.shift;
39698
39698
  for (d = 0; d < r; d++)
39699
39699
  d % 2 ? o = o.concat(n[d]) : o = o.concat(hF(n[d], l));
39700
39700
  for (r = o.length, d = 0; d < r; d++)
@@ -39854,7 +39854,7 @@ const yF = /* @__PURE__ */ ms(gF), bF = oi({
39854
39854
  t("save", P);
39855
39855
  },
39856
39856
  onDrawerChange: (k) => {
39857
- k && Jd(() => {
39857
+ k && Qc(() => {
39858
39858
  w();
39859
39859
  });
39860
39860
  },
@@ -39960,7 +39960,7 @@ const TF = oi({
39960
39960
  const t = Ne(null), n = Ne(null), r = Ne(!0), o = async (c) => {
39961
39961
  var d;
39962
39962
  try {
39963
- r.value = !0, await n.value.importXML(c.xmlData), await a(), ((d = c.nodeData) == null ? void 0 : d.length) > 0 && await u(c.nodeData);
39963
+ r.value = !0, await n.value.importXML(c.xmlData), await Qc(), await a(), ((d = c.nodeData) == null ? void 0 : d.length) > 0 && await u(c.nodeData);
39964
39964
  } catch (v) {
39965
39965
  console.error("BPMN 加载失败:", v.message, v.warnings), fT.error("流程图加载失败");
39966
39966
  } finally {
@@ -40099,7 +40099,7 @@ function RF(e, t, n, r, o, a) {
40099
40099
  })
40100
40100
  ]);
40101
40101
  }
40102
- const LF = /* @__PURE__ */ pi(TF, [["render", RF], ["__scopeId", "data-v-8f565efc"]]);
40102
+ const LF = /* @__PURE__ */ pi(TF, [["render", RF], ["__scopeId", "data-v-1e1b27a7"]]);
40103
40103
  export {
40104
40104
  NF as MyProcess,
40105
40105
  LF as MyProcessViewer