@camunda/play 5.5.2-rc.7 → 5.5.2-rc.9
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/build/index.js +662 -655
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -74,14 +74,14 @@ function qRe() {
|
|
|
74
74
|
Ve.unshift("Warning: " + Te), Function.prototype.apply.call(console[$], console, Ve);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
var D = !1, N = !1, z = !1, T = !1,
|
|
78
|
-
|
|
77
|
+
var D = !1, N = !1, z = !1, T = !1, S = !1, L;
|
|
78
|
+
L = Symbol.for("react.module.reference");
|
|
79
79
|
function _($) {
|
|
80
|
-
return !!(typeof $ == "string" || typeof $ == "function" || $ === n || $ === r ||
|
|
80
|
+
return !!(typeof $ == "string" || typeof $ == "function" || $ === n || $ === r || S || $ === i || $ === p || $ === u || T || $ === g || D || N || z || typeof $ == "object" && $ !== null && ($.$$typeof === h || $.$$typeof === d || $.$$typeof === s || $.$$typeof === a || $.$$typeof === l || // This needs to include all possible module reference object
|
|
81
81
|
// types supported by any Flight configuration anywhere since
|
|
82
82
|
// we don't know which Flight build this will end up being used
|
|
83
83
|
// with.
|
|
84
|
-
$.$$typeof ===
|
|
84
|
+
$.$$typeof === L || $.getModuleId !== void 0));
|
|
85
85
|
}
|
|
86
86
|
function j($, Te, et) {
|
|
87
87
|
var kt = $.displayName;
|
|
@@ -4014,7 +4014,7 @@ const Qn = new tBe(), nBe = (o) => ({
|
|
|
4014
4014
|
version: e?.processDefinition?.processDefinitionVersion
|
|
4015
4015
|
}
|
|
4016
4016
|
}))
|
|
4017
|
-
});
|
|
4017
|
+
}), y7e = "pickerKey";
|
|
4018
4018
|
function iBe(o, e) {
|
|
4019
4019
|
const t = {
|
|
4020
4020
|
customProperties: {
|
|
@@ -4025,7 +4025,6 @@ function iBe(o, e) {
|
|
|
4025
4025
|
}, n = new FormData();
|
|
4026
4026
|
return n.append("files", e), n.append("metadata", JSON.stringify(t)), n;
|
|
4027
4027
|
}
|
|
4028
|
-
const y7e = "pickerKey";
|
|
4029
4028
|
class oBe {
|
|
4030
4029
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4031
4030
|
handlePostRequest = void 0;
|
|
@@ -5104,9 +5103,9 @@ function I7e() {
|
|
|
5104
5103
|
break;
|
|
5105
5104
|
}
|
|
5106
5105
|
if (C) {
|
|
5107
|
-
if (!e(a, function(T,
|
|
5108
|
-
if (!t(C,
|
|
5109
|
-
return C.push(
|
|
5106
|
+
if (!e(a, function(T, S) {
|
|
5107
|
+
if (!t(C, S) && (D === T || u(D, T, l, p, d)))
|
|
5108
|
+
return C.push(S);
|
|
5110
5109
|
})) {
|
|
5111
5110
|
v = !1;
|
|
5112
5111
|
break;
|
|
@@ -5156,8 +5155,8 @@ function ZBe() {
|
|
|
5156
5155
|
if (HR) return bD;
|
|
5157
5156
|
HR = 1;
|
|
5158
5157
|
var o = jL(), e = FBe(), t = w7e(), n = I7e(), i = YBe(), r = WBe(), s = 1, a = 2, l = "[object Boolean]", p = "[object Date]", u = "[object Error]", d = "[object Map]", h = "[object Number]", g = "[object RegExp]", m = "[object Set]", A = "[object String]", f = "[object Symbol]", w = "[object ArrayBuffer]", v = "[object DataView]", C = o ? o.prototype : void 0, D = C ? C.valueOf : void 0;
|
|
5159
|
-
function N(z, T,
|
|
5160
|
-
switch (
|
|
5158
|
+
function N(z, T, S, L, _, j, O) {
|
|
5159
|
+
switch (S) {
|
|
5161
5160
|
case v:
|
|
5162
5161
|
if (z.byteLength != T.byteLength || z.byteOffset != T.byteOffset)
|
|
5163
5162
|
return !1;
|
|
@@ -5176,14 +5175,14 @@ function ZBe() {
|
|
|
5176
5175
|
case d:
|
|
5177
5176
|
var R = i;
|
|
5178
5177
|
case m:
|
|
5179
|
-
var V =
|
|
5178
|
+
var V = L & s;
|
|
5180
5179
|
if (R || (R = r), z.size != T.size && !V)
|
|
5181
5180
|
return !1;
|
|
5182
5181
|
var q = O.get(z);
|
|
5183
5182
|
if (q)
|
|
5184
5183
|
return q == T;
|
|
5185
|
-
|
|
5186
|
-
var se = n(R(z), R(T),
|
|
5184
|
+
L |= a, O.set(z, T);
|
|
5185
|
+
var se = n(R(z), R(T), L, _, j, O);
|
|
5187
5186
|
return O.delete(z), se;
|
|
5188
5187
|
case f:
|
|
5189
5188
|
if (D)
|
|
@@ -5338,8 +5337,8 @@ var kD, eP;
|
|
|
5338
5337
|
function rVe() {
|
|
5339
5338
|
if (eP) return kD;
|
|
5340
5339
|
eP = 1;
|
|
5341
|
-
var o = g8(), e = z7e(), t = f8(), n = "[object Arguments]", i = "[object Array]", r = "[object Boolean]", s = "[object Date]", a = "[object Error]", l = "[object Function]", p = "[object Map]", u = "[object Number]", d = "[object Object]", h = "[object RegExp]", g = "[object Set]", m = "[object String]", A = "[object WeakMap]", f = "[object ArrayBuffer]", w = "[object DataView]", v = "[object Float32Array]", C = "[object Float64Array]", D = "[object Int8Array]", N = "[object Int16Array]", z = "[object Int32Array]", T = "[object Uint8Array]",
|
|
5342
|
-
j[v] = j[C] = j[D] = j[N] = j[z] = j[T] = j[
|
|
5340
|
+
var o = g8(), e = z7e(), t = f8(), n = "[object Arguments]", i = "[object Array]", r = "[object Boolean]", s = "[object Date]", a = "[object Error]", l = "[object Function]", p = "[object Map]", u = "[object Number]", d = "[object Object]", h = "[object RegExp]", g = "[object Set]", m = "[object String]", A = "[object WeakMap]", f = "[object ArrayBuffer]", w = "[object DataView]", v = "[object Float32Array]", C = "[object Float64Array]", D = "[object Int8Array]", N = "[object Int16Array]", z = "[object Int32Array]", T = "[object Uint8Array]", S = "[object Uint8ClampedArray]", L = "[object Uint16Array]", _ = "[object Uint32Array]", j = {};
|
|
5341
|
+
j[v] = j[C] = j[D] = j[N] = j[z] = j[T] = j[S] = j[L] = j[_] = !0, j[n] = j[i] = j[f] = j[r] = j[w] = j[s] = j[a] = j[l] = j[p] = j[u] = j[d] = j[h] = j[g] = j[m] = j[A] = !1;
|
|
5343
5342
|
function O(R) {
|
|
5344
5343
|
return t(R) && e(R.length) && !!j[o(R)];
|
|
5345
5344
|
}
|
|
@@ -5492,16 +5491,16 @@ function AVe() {
|
|
|
5492
5491
|
w = h[f];
|
|
5493
5492
|
var z = r[w], T = s[w];
|
|
5494
5493
|
if (l)
|
|
5495
|
-
var
|
|
5496
|
-
if (!(
|
|
5494
|
+
var S = d ? l(T, z, w, s, r, u) : l(z, T, w, r, s, u);
|
|
5495
|
+
if (!(S === void 0 ? z === T || p(z, T, a, l, u) : S)) {
|
|
5497
5496
|
D = !1;
|
|
5498
5497
|
break;
|
|
5499
5498
|
}
|
|
5500
5499
|
N || (N = w == "constructor");
|
|
5501
5500
|
}
|
|
5502
5501
|
if (D && !N) {
|
|
5503
|
-
var
|
|
5504
|
-
|
|
5502
|
+
var L = r.constructor, _ = s.constructor;
|
|
5503
|
+
L != _ && "constructor" in r && "constructor" in s && !(typeof L == "function" && L instanceof L && typeof _ == "function" && _ instanceof _) && (D = !1);
|
|
5505
5504
|
}
|
|
5506
5505
|
return u.delete(r), u.delete(s), D;
|
|
5507
5506
|
}
|
|
@@ -5564,18 +5563,18 @@ function vVe() {
|
|
|
5564
5563
|
yP = 1;
|
|
5565
5564
|
var o = HBe(), e = I7e(), t = ZBe(), n = AVe(), i = wVe(), r = RL(), s = T7e(), a = S7e(), l = 1, p = "[object Arguments]", u = "[object Array]", d = "[object Object]", h = Object.prototype, g = h.hasOwnProperty;
|
|
5566
5565
|
function m(A, f, w, v, C, D) {
|
|
5567
|
-
var N = r(A), z = r(f), T = N ? u : i(A),
|
|
5568
|
-
T = T == p ? d : T,
|
|
5569
|
-
var
|
|
5566
|
+
var N = r(A), z = r(f), T = N ? u : i(A), S = z ? u : i(f);
|
|
5567
|
+
T = T == p ? d : T, S = S == p ? d : S;
|
|
5568
|
+
var L = T == d, _ = S == d, j = T == S;
|
|
5570
5569
|
if (j && s(A)) {
|
|
5571
5570
|
if (!s(f))
|
|
5572
5571
|
return !1;
|
|
5573
|
-
N = !0,
|
|
5572
|
+
N = !0, L = !1;
|
|
5574
5573
|
}
|
|
5575
|
-
if (j && !
|
|
5574
|
+
if (j && !L)
|
|
5576
5575
|
return D || (D = new o()), N || a(A) ? e(A, f, w, v, C, D) : t(A, f, T, w, v, C, D);
|
|
5577
5576
|
if (!(w & l)) {
|
|
5578
|
-
var O =
|
|
5577
|
+
var O = L && g.call(A, "__wrapped__"), R = _ && g.call(f, "__wrapped__");
|
|
5579
5578
|
if (O || R) {
|
|
5580
5579
|
var V = O ? A.value() : A, q = R ? f.value() : f;
|
|
5581
5580
|
return D || (D = new o()), C(V, q, w, v, D);
|
|
@@ -11276,7 +11275,7 @@ function MFe() {
|
|
|
11276
11275
|
}
|
|
11277
11276
|
}
|
|
11278
11277
|
}
|
|
11279
|
-
var N = l, z = p, T = a,
|
|
11278
|
+
var N = l, z = p, T = a, S = s, L = e, _ = u, j = n, O = m, R = g, V = t, q = r, se = i, ue = d, me = !1;
|
|
11280
11279
|
function ce(ie) {
|
|
11281
11280
|
return me || (me = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), oe(ie) || D(ie) === l;
|
|
11282
11281
|
}
|
|
@@ -11316,7 +11315,7 @@ function MFe() {
|
|
|
11316
11315
|
function W(ie) {
|
|
11317
11316
|
return D(ie) === d;
|
|
11318
11317
|
}
|
|
11319
|
-
Gn.AsyncMode = N, Gn.ConcurrentMode = z, Gn.ContextConsumer = T, Gn.ContextProvider =
|
|
11318
|
+
Gn.AsyncMode = N, Gn.ConcurrentMode = z, Gn.ContextConsumer = T, Gn.ContextProvider = S, Gn.Element = L, Gn.ForwardRef = _, Gn.Fragment = j, Gn.Lazy = O, Gn.Memo = R, Gn.Portal = V, Gn.Profiler = q, Gn.StrictMode = se, Gn.Suspense = ue, Gn.isAsyncMode = ce, Gn.isConcurrentMode = oe, Gn.isContextConsumer = pe, Gn.isContextProvider = G, Gn.isElement = F, Gn.isForwardRef = be, Gn.isFragment = Se, Gn.isLazy = Re, Gn.isMemo = H, Gn.isPortal = x, Gn.isProfiler = k, Gn.isStrictMode = Y, Gn.isSuspense = W, Gn.isValidElementType = C, Gn.typeOf = D;
|
|
11320
11319
|
}()), Gn;
|
|
11321
11320
|
}
|
|
11322
11321
|
var uH;
|
|
@@ -11473,9 +11472,9 @@ function DFe() {
|
|
|
11473
11472
|
elementType: N(),
|
|
11474
11473
|
instanceOf: z,
|
|
11475
11474
|
node: _(),
|
|
11476
|
-
objectOf:
|
|
11475
|
+
objectOf: S,
|
|
11477
11476
|
oneOf: T,
|
|
11478
|
-
oneOfType:
|
|
11477
|
+
oneOfType: L,
|
|
11479
11478
|
shape: O,
|
|
11480
11479
|
exact: R
|
|
11481
11480
|
};
|
|
@@ -11593,7 +11592,7 @@ function DFe() {
|
|
|
11593
11592
|
}
|
|
11594
11593
|
return f(pe);
|
|
11595
11594
|
}
|
|
11596
|
-
function
|
|
11595
|
+
function S(oe) {
|
|
11597
11596
|
function pe(G, F, be, Se, Re) {
|
|
11598
11597
|
if (typeof oe != "function")
|
|
11599
11598
|
return new A("Property `" + Re + "` of component `" + be + "` has invalid PropType notation inside objectOf.");
|
|
@@ -11610,7 +11609,7 @@ function DFe() {
|
|
|
11610
11609
|
}
|
|
11611
11610
|
return f(pe);
|
|
11612
11611
|
}
|
|
11613
|
-
function
|
|
11612
|
+
function L(oe) {
|
|
11614
11613
|
if (!Array.isArray(oe))
|
|
11615
11614
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
11616
11615
|
for (var pe = 0; pe < oe.length; pe++) {
|
|
@@ -38536,8 +38535,8 @@ var Kt;
|
|
|
38536
38535
|
o.concat = A;
|
|
38537
38536
|
function f(D, N, z) {
|
|
38538
38537
|
let T = z;
|
|
38539
|
-
for (const
|
|
38540
|
-
T = N(T,
|
|
38538
|
+
for (const S of D)
|
|
38539
|
+
T = N(T, S);
|
|
38541
38540
|
return T;
|
|
38542
38541
|
}
|
|
38543
38542
|
o.reduce = f;
|
|
@@ -38551,11 +38550,11 @@ var Kt;
|
|
|
38551
38550
|
if (N === 0)
|
|
38552
38551
|
return [z, D];
|
|
38553
38552
|
const T = D[Symbol.iterator]();
|
|
38554
|
-
for (let
|
|
38555
|
-
const
|
|
38556
|
-
if (
|
|
38553
|
+
for (let S = 0; S < N; S++) {
|
|
38554
|
+
const L = T.next();
|
|
38555
|
+
if (L.done)
|
|
38557
38556
|
return [z, o.empty()];
|
|
38558
|
-
z.push(
|
|
38557
|
+
z.push(L.value);
|
|
38559
38558
|
}
|
|
38560
38559
|
return [z, { [Symbol.iterator]() {
|
|
38561
38560
|
return T;
|
|
@@ -39403,7 +39402,7 @@ class V0 extends Ab {
|
|
|
39403
39402
|
const g = e.minimap.maxColumn, m = e.minimap.size, A = e.minimap.side, f = e.verticalScrollbarWidth, w = e.viewLineCount, v = e.remainingWidth, C = e.isViewportWrapping, D = d ? 2 : 3;
|
|
39404
39403
|
let N = Math.floor(r * i);
|
|
39405
39404
|
const z = N / r;
|
|
39406
|
-
let T = !1,
|
|
39405
|
+
let T = !1, S = !1, L = D * h, _ = h / r, j = 1;
|
|
39407
39406
|
if (m === "fill" || m === "fit") {
|
|
39408
39407
|
const { typicalViewportLineCount: me, extraLinesBeforeFirstLine: ce, extraLinesBeyondLastLine: oe, desiredRatio: pe, minimapLineCount: G } = V0.computeContainedMinimapLineCount({
|
|
39409
39408
|
viewLineCount: w,
|
|
@@ -39415,17 +39414,17 @@ class V0 extends Ab {
|
|
|
39415
39414
|
pixelRatio: r
|
|
39416
39415
|
});
|
|
39417
39416
|
if (w / G > 1)
|
|
39418
|
-
T = !0,
|
|
39417
|
+
T = !0, S = !0, h = 1, L = 1, _ = h / r;
|
|
39419
39418
|
else {
|
|
39420
39419
|
let be = !1, Se = h + 1;
|
|
39421
39420
|
if (m === "fit") {
|
|
39422
|
-
const Re = Math.ceil((ce + w + oe) *
|
|
39421
|
+
const Re = Math.ceil((ce + w + oe) * L);
|
|
39423
39422
|
C && a && v <= t.stableFitRemainingWidth ? (be = !0, Se = t.stableFitMaxMinimapScale) : be = Re > N;
|
|
39424
39423
|
}
|
|
39425
39424
|
if (m === "fill" || be) {
|
|
39426
39425
|
T = !0;
|
|
39427
39426
|
const Re = h;
|
|
39428
|
-
|
|
39427
|
+
L = Math.min(l * r, Math.max(1, Math.floor(1 / pe))), C && a && v <= t.stableFitRemainingWidth && (Se = t.stableFitMaxMinimapScale), h = Math.min(Se, Math.max(1, Math.floor(L / D))), h > Re && (j = Math.min(2, h / Re)), _ = h / r / j, N = Math.ceil(Math.max(me, ce + w + oe) * L), C ? (t.stableMinimapLayoutInput = e, t.stableFitRemainingWidth = v, t.stableFitMaxMinimapScale = h) : (t.stableMinimapLayoutInput = null, t.stableFitRemainingWidth = 0);
|
|
39429
39428
|
}
|
|
39430
39429
|
}
|
|
39431
39430
|
}
|
|
@@ -39439,9 +39438,9 @@ class V0 extends Ab {
|
|
|
39439
39438
|
minimapLeft: ue,
|
|
39440
39439
|
minimapWidth: R,
|
|
39441
39440
|
minimapHeightIsEditorHeight: T,
|
|
39442
|
-
minimapIsSampling:
|
|
39441
|
+
minimapIsSampling: S,
|
|
39443
39442
|
minimapScale: h,
|
|
39444
|
-
minimapLineHeight:
|
|
39443
|
+
minimapLineHeight: L,
|
|
39445
39444
|
minimapCanvasInnerWidth: V,
|
|
39446
39445
|
minimapCanvasInnerHeight: N,
|
|
39447
39446
|
minimapCanvasOuterWidth: q,
|
|
@@ -39482,7 +39481,7 @@ class V0 extends Ab {
|
|
|
39482
39481
|
), z = e.get(
|
|
39483
39482
|
104
|
|
39484
39483
|
/* EditorOption.scrollbar */
|
|
39485
|
-
), T = z.verticalScrollbarSize,
|
|
39484
|
+
), T = z.verticalScrollbarSize, S = z.verticalHasArrows, L = z.arrowSize, _ = z.horizontalScrollbarSize, j = e.get(
|
|
39486
39485
|
43
|
|
39487
39486
|
/* EditorOption.folding */
|
|
39488
39487
|
), O = e.get(
|
|
@@ -39521,7 +39520,7 @@ class V0 extends Ab {
|
|
|
39521
39520
|
isViewportWrapping: G
|
|
39522
39521
|
}, t.memory || new eEe());
|
|
39523
39522
|
be.renderMinimap !== 0 && be.minimapLeft === 0 && (se += be.minimapWidth, ue += be.minimapWidth, me += be.minimapWidth, ce += be.minimapWidth);
|
|
39524
|
-
const Se = oe - be.minimapWidth, Re = Math.max(1, Math.floor((Se - T - 2) / a)), H =
|
|
39523
|
+
const Se = oe - be.minimapWidth, Re = Math.max(1, Math.floor((Se - T - 2) / a)), H = S ? L : 0;
|
|
39525
39524
|
return G && (F = Math.max(1, Re), g === "bounded" && (F = Math.min(F, m))), {
|
|
39526
39525
|
width: n,
|
|
39527
39526
|
height: i,
|
|
@@ -41851,11 +41850,11 @@ var we;
|
|
|
41851
41850
|
return O((V) => R.fire(V));
|
|
41852
41851
|
}
|
|
41853
41852
|
o.forward = T;
|
|
41854
|
-
function
|
|
41853
|
+
function S(O, R, V) {
|
|
41855
41854
|
return R(V), O((q) => R(q));
|
|
41856
41855
|
}
|
|
41857
|
-
o.runAndSubscribe =
|
|
41858
|
-
class
|
|
41856
|
+
o.runAndSubscribe = S;
|
|
41857
|
+
class L {
|
|
41859
41858
|
constructor(R, V) {
|
|
41860
41859
|
this._observable = R, this._counter = 0, this._hasChanged = !1;
|
|
41861
41860
|
const q = {
|
|
@@ -41881,7 +41880,7 @@ var we;
|
|
|
41881
41880
|
}
|
|
41882
41881
|
}
|
|
41883
41882
|
function _(O, R) {
|
|
41884
|
-
return new
|
|
41883
|
+
return new L(O, R).emitter.event;
|
|
41885
41884
|
}
|
|
41886
41885
|
o.fromObservable = _;
|
|
41887
41886
|
function j(O) {
|
|
@@ -46445,9 +46444,9 @@ function kEe() {
|
|
|
46445
46444
|
implementation: N,
|
|
46446
46445
|
createNodeIterator: z,
|
|
46447
46446
|
createDocumentFragment: T,
|
|
46448
|
-
getElementsByTagName:
|
|
46447
|
+
getElementsByTagName: S
|
|
46449
46448
|
} = i, {
|
|
46450
|
-
importNode:
|
|
46449
|
+
importNode: L
|
|
46451
46450
|
} = t;
|
|
46452
46451
|
let _ = {};
|
|
46453
46452
|
e.isSupported = typeof SEe == "function" && typeof v == "function" && N && N.createHTMLDocument !== void 0;
|
|
@@ -46594,7 +46593,7 @@ function kEe() {
|
|
|
46594
46593
|
}
|
|
46595
46594
|
}
|
|
46596
46595
|
const un = Me.body || Me.documentElement;
|
|
46597
|
-
return ee && Be && un.insertBefore(i.createTextNode(Be), un.childNodes[0] || null), at === ut ?
|
|
46596
|
+
return ee && Be && un.insertBefore(i.createTextNode(Be), un.childNodes[0] || null), at === ut ? S.call(Me, W ? "html" : "body")[0] : W ? Me.documentElement : un;
|
|
46598
46597
|
}, Qg = function(ee) {
|
|
46599
46598
|
return z.call(
|
|
46600
46599
|
ee.ownerDocument || ee,
|
|
@@ -46758,7 +46757,7 @@ function kEe() {
|
|
|
46758
46757
|
un.appendChild(Me.firstChild);
|
|
46759
46758
|
else
|
|
46760
46759
|
un = Me;
|
|
46761
|
-
return (pe.shadowroot || pe.shadowrootmode) && (un =
|
|
46760
|
+
return (pe.shadowroot || pe.shadowrootmode) && (un = L.call(t, un, !0)), un;
|
|
46762
46761
|
}
|
|
46763
46762
|
let Wn = W ? Me.outerHTML : Me.innerHTML;
|
|
46764
46763
|
return W && ce["!doctype"] && Me.ownerDocument && Me.ownerDocument.doctype && Me.ownerDocument.doctype.name && zs(xEe, Me.ownerDocument.doctype.name) && (Wn = "<!DOCTYPE " + Me.ownerDocument.doctype.name + `>
|
|
@@ -48137,17 +48136,17 @@ class M2t extends he {
|
|
|
48137
48136
|
this._createRequest(z.charAt(j), 0, n, i), this._createRequest(z.charAt(j), 1, n, i), this._createRequest(z.charAt(j), 2, n, i);
|
|
48138
48137
|
f2t(e, t, n);
|
|
48139
48138
|
const T = Math.max(l.width, p.width, u.width, d.width, h.width, g.width, m.width, A.width, f.width, w.width);
|
|
48140
|
-
let
|
|
48141
|
-
const
|
|
48142
|
-
for (let j = 1, O = i.length;
|
|
48143
|
-
const R =
|
|
48139
|
+
let S = t.fontFeatureSettings === fl.OFF;
|
|
48140
|
+
const L = i[0].width;
|
|
48141
|
+
for (let j = 1, O = i.length; S && j < O; j++) {
|
|
48142
|
+
const R = L - i[j].width;
|
|
48144
48143
|
if (R < -1e-3 || R > 1e-3) {
|
|
48145
|
-
|
|
48144
|
+
S = !1;
|
|
48146
48145
|
break;
|
|
48147
48146
|
}
|
|
48148
48147
|
}
|
|
48149
48148
|
let _ = !0;
|
|
48150
|
-
return
|
|
48149
|
+
return S && C.width !== L && (_ = !1), C.width > v.width && (_ = !1), new yI({
|
|
48151
48150
|
pixelRatio: _5.getInstance(e).value,
|
|
48152
48151
|
fontFamily: t.fontFamily,
|
|
48153
48152
|
fontWeight: t.fontWeight,
|
|
@@ -48156,7 +48155,7 @@ class M2t extends he {
|
|
|
48156
48155
|
fontVariationSettings: t.fontVariationSettings,
|
|
48157
48156
|
lineHeight: t.lineHeight,
|
|
48158
48157
|
letterSpacing: t.letterSpacing,
|
|
48159
|
-
isMonospace:
|
|
48158
|
+
isMonospace: S,
|
|
48160
48159
|
typicalHalfwidthCharacterWidth: r.width,
|
|
48161
48160
|
typicalFullwidthCharacterWidth: s.width,
|
|
48162
48161
|
canUseHalfwidthRightwardsArrow: _,
|
|
@@ -52692,10 +52691,10 @@ class Hp {
|
|
|
52692
52691
|
];
|
|
52693
52692
|
}
|
|
52694
52693
|
WALKTRACE(e, t, n, i, r, s, a, l, p, u, d, h, g, m, A, f, w, v) {
|
|
52695
|
-
let C = null, D = null, N = new fMe(), z = t, T = n,
|
|
52694
|
+
let C = null, D = null, N = new fMe(), z = t, T = n, S = g[0] - f[0] - i, L = -1073741824, _ = this.m_forwardHistory.length - 1;
|
|
52696
52695
|
do {
|
|
52697
|
-
const j =
|
|
52698
|
-
j === z || j < T && p[j - 1] < p[j + 1] ? (d = p[j + 1], m = d -
|
|
52696
|
+
const j = S + e;
|
|
52697
|
+
j === z || j < T && p[j - 1] < p[j + 1] ? (d = p[j + 1], m = d - S - i, d < L && N.MarkNextChange(), L = d, N.AddModifiedElement(d + 1, m), S = j + 1 - e) : (d = p[j - 1] + 1, m = d - S - i, d < L && N.MarkNextChange(), L = d - 1, N.AddOriginalElement(d, m + 1), S = j - 1 - e), _ >= 0 && (p = this.m_forwardHistory[_], e = p[0], z = 1, T = p.length - 1);
|
|
52699
52698
|
} while (--_ >= -1);
|
|
52700
52699
|
if (C = N.getReverseChanges(), v[0]) {
|
|
52701
52700
|
let j = g[0] + 1, O = f[0] + 1;
|
|
@@ -52707,10 +52706,10 @@ class Hp {
|
|
|
52707
52706
|
new Pu(j, h - j + 1, O, A - O + 1)
|
|
52708
52707
|
];
|
|
52709
52708
|
} else {
|
|
52710
|
-
N = new fMe(), z = s, T = a,
|
|
52709
|
+
N = new fMe(), z = s, T = a, S = g[0] - f[0] - l, L = 1073741824, _ = w ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;
|
|
52711
52710
|
do {
|
|
52712
|
-
const j =
|
|
52713
|
-
j === z || j < T && u[j - 1] >= u[j + 1] ? (d = u[j + 1] - 1, m = d -
|
|
52711
|
+
const j = S + r;
|
|
52712
|
+
j === z || j < T && u[j - 1] >= u[j + 1] ? (d = u[j + 1] - 1, m = d - S - l, d > L && N.MarkNextChange(), L = d + 1, N.AddOriginalElement(d + 1, m + 1), S = j + 1 - r) : (d = u[j - 1], m = d - S - l, d > L && N.MarkNextChange(), L = d, N.AddModifiedElement(d + 1, m + 1), S = j - 1 - r), _ >= 0 && (u = this.m_reverseHistory[_], r = u[0], z = 1, T = u.length - 1);
|
|
52714
52713
|
} while (--_ >= -1);
|
|
52715
52714
|
D = N.getChanges();
|
|
52716
52715
|
}
|
|
@@ -52737,32 +52736,32 @@ class Hp {
|
|
|
52737
52736
|
e--, n--, r[0] = 0, s[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = [];
|
|
52738
52737
|
const m = t - e + (i - n), A = m + 1, f = new Int32Array(A), w = new Int32Array(A), v = i - n, C = t - e, D = e - n, N = t - i, T = (C - v) % 2 === 0;
|
|
52739
52738
|
f[v] = e, w[C] = t, a[0] = !1;
|
|
52740
|
-
for (let
|
|
52741
|
-
let
|
|
52742
|
-
u = this.ClipDiagonalBound(v -
|
|
52739
|
+
for (let S = 1; S <= m / 2 + 1; S++) {
|
|
52740
|
+
let L = 0, _ = 0;
|
|
52741
|
+
u = this.ClipDiagonalBound(v - S, S, v, A), d = this.ClipDiagonalBound(v + S, S, v, A);
|
|
52743
52742
|
for (let O = u; O <= d; O += 2) {
|
|
52744
52743
|
O === u || O < d && f[O - 1] < f[O + 1] ? l = f[O + 1] : l = f[O - 1] + 1, p = l - (O - v) - D;
|
|
52745
52744
|
const R = l;
|
|
52746
52745
|
for (; l < t && p < i && this.ElementsAreEqual(l + 1, p + 1); )
|
|
52747
52746
|
l++, p++;
|
|
52748
|
-
if (f[O] = l, l + p >
|
|
52749
|
-
return r[0] = l, s[0] = p, R <= w[O] &&
|
|
52747
|
+
if (f[O] = l, l + p > L + _ && (L = l, _ = p), !T && Math.abs(O - C) <= S - 1 && l >= w[O])
|
|
52748
|
+
return r[0] = l, s[0] = p, R <= w[O] && S <= 1448 ? this.WALKTRACE(v, u, d, D, C, h, g, N, f, w, l, t, r, p, i, s, T, a) : null;
|
|
52750
52749
|
}
|
|
52751
|
-
const j = (
|
|
52752
|
-
if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(
|
|
52753
|
-
return a[0] = !0, r[0] =
|
|
52750
|
+
const j = (L - e + (_ - n) - S) / 2;
|
|
52751
|
+
if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(L, j))
|
|
52752
|
+
return a[0] = !0, r[0] = L, s[0] = _, j > 0 && S <= 1448 ? this.WALKTRACE(v, u, d, D, C, h, g, N, f, w, l, t, r, p, i, s, T, a) : (e++, n++, [
|
|
52754
52753
|
new Pu(e, t - e + 1, n, i - n + 1)
|
|
52755
52754
|
]);
|
|
52756
|
-
h = this.ClipDiagonalBound(C -
|
|
52755
|
+
h = this.ClipDiagonalBound(C - S, S, C, A), g = this.ClipDiagonalBound(C + S, S, C, A);
|
|
52757
52756
|
for (let O = h; O <= g; O += 2) {
|
|
52758
52757
|
O === h || O < g && w[O - 1] >= w[O + 1] ? l = w[O + 1] - 1 : l = w[O - 1], p = l - (O - C) - N;
|
|
52759
52758
|
const R = l;
|
|
52760
52759
|
for (; l > e && p > n && this.ElementsAreEqual(l, p); )
|
|
52761
52760
|
l--, p--;
|
|
52762
|
-
if (w[O] = l, T && Math.abs(O - v) <=
|
|
52763
|
-
return r[0] = l, s[0] = p, R >= f[O] &&
|
|
52761
|
+
if (w[O] = l, T && Math.abs(O - v) <= S && l <= f[O])
|
|
52762
|
+
return r[0] = l, s[0] = p, R >= f[O] && S <= 1448 ? this.WALKTRACE(v, u, d, D, C, h, g, N, f, w, l, t, r, p, i, s, T, a) : null;
|
|
52764
52763
|
}
|
|
52765
|
-
if (
|
|
52764
|
+
if (S <= 1447) {
|
|
52766
52765
|
let O = new Int32Array(d - u + 2);
|
|
52767
52766
|
O[0] = v - u + 1, Kg.Copy2(f, u, O, 1, d - u + 1), this.m_forwardHistory.push(O), O = new Int32Array(g - h + 2), O[0] = C - h + 1, Kg.Copy2(w, h, O, 1, g - h + 1), this.m_reverseHistory.push(O);
|
|
52768
52767
|
}
|
|
@@ -54258,19 +54257,19 @@ class lAt {
|
|
|
54258
54257
|
if (h = p.next(v), h) {
|
|
54259
54258
|
let D = h.index, N = h.index + h[0].length;
|
|
54260
54259
|
if (D > 0) {
|
|
54261
|
-
const
|
|
54262
|
-
Pi(
|
|
54260
|
+
const L = v.charCodeAt(D - 1);
|
|
54261
|
+
Pi(L) && D--;
|
|
54263
54262
|
}
|
|
54264
54263
|
if (N + 1 < C) {
|
|
54265
|
-
const
|
|
54266
|
-
Pi(
|
|
54264
|
+
const L = v.charCodeAt(N - 1);
|
|
54265
|
+
Pi(L) && N++;
|
|
54267
54266
|
}
|
|
54268
54267
|
const z = v.substring(D, N);
|
|
54269
54268
|
let T = Xf(D + 1, ox, v, 0);
|
|
54270
54269
|
T && T.endColumn <= D + 1 && (T = null);
|
|
54271
|
-
const
|
|
54272
|
-
if (
|
|
54273
|
-
if (
|
|
54270
|
+
const S = s.shouldHighlightNonBasicASCII(z, T ? T.word : null);
|
|
54271
|
+
if (S !== 0) {
|
|
54272
|
+
if (S === 3 ? g++ : S === 2 ? m++ : S === 1 ? A++ : Ox(), u.length >= 1e3) {
|
|
54274
54273
|
d = !0;
|
|
54275
54274
|
break e;
|
|
54276
54275
|
}
|
|
@@ -55927,11 +55926,11 @@ function BAt(o, e, t) {
|
|
|
55927
55926
|
const w = o.getText(A).trim();
|
|
55928
55927
|
if (w.length > 20 || w.split(/\r\n|\r|\n/).length > 1)
|
|
55929
55928
|
return !1;
|
|
55930
|
-
const v = o.countLinesIn(g.seq1Range), C = g.seq1Range.length, D = e.countLinesIn(g.seq2Range), N = g.seq2Range.length, z = o.countLinesIn(m.seq1Range), T = m.seq1Range.length,
|
|
55929
|
+
const v = o.countLinesIn(g.seq1Range), C = g.seq1Range.length, D = e.countLinesIn(g.seq2Range), N = g.seq2Range.length, z = o.countLinesIn(m.seq1Range), T = m.seq1Range.length, S = e.countLinesIn(m.seq2Range), L = m.seq2Range.length, _ = 2 * 40 + 50;
|
|
55931
55930
|
function j(O) {
|
|
55932
55931
|
return Math.min(O, _);
|
|
55933
55932
|
}
|
|
55934
|
-
return Math.pow(Math.pow(j(v * 40 + C), 1.5) + Math.pow(j(D * 40 + N), 1.5), 1.5) + Math.pow(Math.pow(j(z * 40 + T), 1.5) + Math.pow(j(
|
|
55933
|
+
return Math.pow(Math.pow(j(v * 40 + C), 1.5) + Math.pow(j(D * 40 + N), 1.5), 1.5) + Math.pow(Math.pow(j(z * 40 + T), 1.5) + Math.pow(j(S * 40 + L), 1.5), 1.5) > (_ ** 1.5) ** 1.5 * 1.3;
|
|
55935
55934
|
};
|
|
55936
55935
|
const p = n[l], u = a[a.length - 1];
|
|
55937
55936
|
d(u, p) ? (r = !0, a[a.length - 1] = a[a.length - 1].join(p)) : a.push(p);
|
|
@@ -56004,12 +56003,12 @@ class EIe {
|
|
|
56004
56003
|
const A = [], f = (N) => {
|
|
56005
56004
|
if (r)
|
|
56006
56005
|
for (let z = 0; z < N; z++) {
|
|
56007
|
-
const T = w + z,
|
|
56008
|
-
if (e[T] !== t[
|
|
56009
|
-
const
|
|
56010
|
-
for (const _ of
|
|
56006
|
+
const T = w + z, S = v + z;
|
|
56007
|
+
if (e[T] !== t[S]) {
|
|
56008
|
+
const L = this.refineDiff(e, t, new Ti(new mt(T, T + 1), new mt(S, S + 1)), i, r);
|
|
56009
|
+
for (const _ of L.mappings)
|
|
56011
56010
|
A.push(_);
|
|
56012
|
-
|
|
56011
|
+
L.hitTimeout && (m = !0);
|
|
56013
56012
|
}
|
|
56014
56013
|
}
|
|
56015
56014
|
};
|
|
@@ -56020,27 +56019,27 @@ class EIe {
|
|
|
56020
56019
|
f(z), w = N.seq1Range.endExclusive, v = N.seq2Range.endExclusive;
|
|
56021
56020
|
const T = this.refineDiff(e, t, N, i, r);
|
|
56022
56021
|
T.hitTimeout && (m = !0);
|
|
56023
|
-
for (const
|
|
56024
|
-
A.push(
|
|
56022
|
+
for (const S of T.mappings)
|
|
56023
|
+
A.push(S);
|
|
56025
56024
|
}
|
|
56026
56025
|
f(e.length - w);
|
|
56027
56026
|
const C = _Me(A, e, t);
|
|
56028
56027
|
let D = [];
|
|
56029
56028
|
return n.computeMoves && (D = this.computeMoves(C, e, t, l, p, i, r)), Y1(() => {
|
|
56030
|
-
function N(T,
|
|
56031
|
-
if (T.lineNumber < 1 || T.lineNumber >
|
|
56029
|
+
function N(T, S) {
|
|
56030
|
+
if (T.lineNumber < 1 || T.lineNumber > S.length)
|
|
56032
56031
|
return !1;
|
|
56033
|
-
const
|
|
56034
|
-
return !(T.column < 1 || T.column >
|
|
56032
|
+
const L = S[T.lineNumber - 1];
|
|
56033
|
+
return !(T.column < 1 || T.column > L.length + 1);
|
|
56035
56034
|
}
|
|
56036
|
-
function z(T,
|
|
56037
|
-
return !(T.startLineNumber < 1 || T.startLineNumber >
|
|
56035
|
+
function z(T, S) {
|
|
56036
|
+
return !(T.startLineNumber < 1 || T.startLineNumber > S.length + 1 || T.endLineNumberExclusive < 1 || T.endLineNumberExclusive > S.length + 1);
|
|
56038
56037
|
}
|
|
56039
56038
|
for (const T of C) {
|
|
56040
56039
|
if (!T.innerChanges)
|
|
56041
56040
|
return !1;
|
|
56042
|
-
for (const
|
|
56043
|
-
if (!(N(
|
|
56041
|
+
for (const S of T.innerChanges)
|
|
56042
|
+
if (!(N(S.modifiedRange.getStartPosition(), t) && N(S.modifiedRange.getEndPosition(), t) && N(S.originalRange.getStartPosition(), e) && N(S.originalRange.getEndPosition(), e)))
|
|
56044
56043
|
return !1;
|
|
56045
56044
|
if (!z(T.modified, t) || !z(T.original, e))
|
|
56046
56045
|
return !1;
|
|
@@ -57772,10 +57771,10 @@ function dft(o, e, t, n) {
|
|
|
57772
57771
|
const C = n.length;
|
|
57773
57772
|
let D = !1, N = qr(e), z;
|
|
57774
57773
|
N === -1 ? (D = !0, N = t, z = t) : z = yg(e);
|
|
57775
|
-
let T = !1,
|
|
57774
|
+
let T = !1, S = 0, L = p && p[S], _ = a % s;
|
|
57776
57775
|
for (let O = r; O < t; O++) {
|
|
57777
57776
|
const R = e.charCodeAt(O);
|
|
57778
|
-
|
|
57777
|
+
L && O >= L.endOffset && (S++, L = p && p[S]);
|
|
57779
57778
|
let V;
|
|
57780
57779
|
if (O < N || O > z)
|
|
57781
57780
|
V = !0;
|
|
@@ -57793,7 +57792,7 @@ function dft(o, e, t, n) {
|
|
|
57793
57792
|
V = !0;
|
|
57794
57793
|
else
|
|
57795
57794
|
V = !1;
|
|
57796
|
-
if (V && p && (V = !!
|
|
57795
|
+
if (V && p && (V = !!L && L.startOffset <= O && L.endOffset > O), V && d && (V = D || O > z), V && w && O >= N && O <= z && (V = !1), T) {
|
|
57797
57796
|
if (!V || !l && _ >= s) {
|
|
57798
57797
|
if (h) {
|
|
57799
57798
|
const q = m > 0 ? g[m - 1].endIndex : r;
|
|
@@ -57855,10 +57854,10 @@ function hft(o, e, t, n) {
|
|
|
57855
57854
|
}
|
|
57856
57855
|
function gft(o, e) {
|
|
57857
57856
|
const t = o.fontIsMonospace, n = o.canUseHalfwidthRightwardsArrow, i = o.containsForeignElements, r = o.lineContent, s = o.len, a = o.isOverflowing, l = o.overflowingCharCount, p = o.parts, u = o.fauxIndentLength, d = o.tabSize, h = o.startVisibleColumn, g = o.containsRTL, m = o.spaceWidth, A = o.renderSpaceCharCode, f = o.renderWhitespace, w = o.renderControlCharacters, v = new Nc(s + 1, p.length);
|
|
57858
|
-
let C = !1, D = 0, N = h, z = 0, T = 0,
|
|
57857
|
+
let C = !1, D = 0, N = h, z = 0, T = 0, S = 0;
|
|
57859
57858
|
g ? e.appendString('<span dir="ltr">') : e.appendString("<span>");
|
|
57860
|
-
for (let
|
|
57861
|
-
const j = p[
|
|
57859
|
+
for (let L = 0, _ = p.length; L < _; L++) {
|
|
57860
|
+
const j = p[L], O = j.endIndex, R = j.type, V = j.containsRTL, q = f !== 0 && j.isWhitespace(), se = q && !t && (R === "mtkw" || !i), ue = D === O && j.isPseudoAfter();
|
|
57862
57861
|
if (z = 0, e.appendString("<span "), V && e.appendString('style="unicode-bidi:isolate" '), e.appendString('class="'), e.appendString(se ? "mtkz" : R), e.appendASCIICharCode(
|
|
57863
57862
|
34
|
|
57864
57863
|
/* CharCode.DoubleQuote */
|
|
@@ -57875,7 +57874,7 @@ function gft(o, e) {
|
|
|
57875
57874
|
62
|
|
57876
57875
|
/* CharCode.GreaterThan */
|
|
57877
57876
|
); D < O; D++) {
|
|
57878
|
-
v.setColumnInfo(D + 1,
|
|
57877
|
+
v.setColumnInfo(D + 1, L - S, z, T), S = 0;
|
|
57879
57878
|
const ce = r.charCodeAt(D);
|
|
57880
57879
|
let oe, pe;
|
|
57881
57880
|
if (ce === 9) {
|
|
@@ -57891,7 +57890,7 @@ function gft(o, e) {
|
|
|
57891
57890
|
62
|
|
57892
57891
|
/* CharCode.GreaterThan */
|
|
57893
57892
|
); D < O; D++) {
|
|
57894
|
-
v.setColumnInfo(D + 1,
|
|
57893
|
+
v.setColumnInfo(D + 1, L - S, z, T), S = 0;
|
|
57895
57894
|
const me = r.charCodeAt(D);
|
|
57896
57895
|
let ce = 1, oe = 1;
|
|
57897
57896
|
switch (me) {
|
|
@@ -57926,7 +57925,7 @@ function gft(o, e) {
|
|
|
57926
57925
|
}
|
|
57927
57926
|
z += ce, T += oe, D >= u && (N += oe);
|
|
57928
57927
|
}
|
|
57929
|
-
ue ?
|
|
57928
|
+
ue ? S++ : S = 0, D >= s && !C && j.isPseudoAfter() && (C = !0, v.setColumnInfo(D + 1, L, z, T)), e.appendString("</span>");
|
|
57930
57929
|
}
|
|
57931
57930
|
return C || v.setColumnInfo(s + 1, p.length - 1, z, T), a && (e.appendString('<span class="mtkoverflow">'), e.appendString(b("showMore", "Show more ({0})", Aft(l))), e.appendString("</span>")), e.appendString("</span>"), new xI(v, g, i);
|
|
57932
57931
|
}
|
|
@@ -58347,17 +58346,17 @@ let uy = kI = class extends he {
|
|
|
58347
58346
|
let v = null, C = null, D = null, N = null, z = null;
|
|
58348
58347
|
if (h) {
|
|
58349
58348
|
v = h.matches;
|
|
58350
|
-
const
|
|
58351
|
-
C =
|
|
58349
|
+
const L = h.groups.shift();
|
|
58350
|
+
C = L.matched, D = L.action, N = h.rule, h.groups.length === 0 && (h = null);
|
|
58352
58351
|
} else {
|
|
58353
58352
|
if (!g && d >= l)
|
|
58354
58353
|
break;
|
|
58355
58354
|
g = !1;
|
|
58356
|
-
let
|
|
58357
|
-
if (!
|
|
58355
|
+
let L = this._lexer.tokenizer[w];
|
|
58356
|
+
if (!L && (L = x3(this._lexer, w), !L))
|
|
58358
58357
|
throw Sn(this._lexer, "tokenizer state is not defined: " + w);
|
|
58359
58358
|
const _ = a.substr(d);
|
|
58360
|
-
for (const j of
|
|
58359
|
+
for (const j of L)
|
|
58361
58360
|
if ((d === 0 || !j.matchOnlyAtLineStart) && (v = _.match(j.resolveRegex(w)), v)) {
|
|
58362
58361
|
C = v[0], D = j.action;
|
|
58363
58362
|
break;
|
|
@@ -58384,11 +58383,11 @@ let uy = kI = class extends he {
|
|
|
58384
58383
|
z = Ju(this._lexer, D.nextEmbedded, C, v, w);
|
|
58385
58384
|
}
|
|
58386
58385
|
if (D.goBack && (d = Math.max(0, d - D.goBack)), D.switchTo && typeof D.switchTo == "string") {
|
|
58387
|
-
let
|
|
58388
|
-
if (
|
|
58389
|
-
u = u.switchTo(
|
|
58386
|
+
let L = Ju(this._lexer, D.switchTo, C, v, w);
|
|
58387
|
+
if (L[0] === "@" && (L = L.substr(1)), x3(this._lexer, L))
|
|
58388
|
+
u = u.switchTo(L);
|
|
58390
58389
|
else
|
|
58391
|
-
throw Sn(this._lexer, "trying to switch to a state '" +
|
|
58390
|
+
throw Sn(this._lexer, "trying to switch to a state '" + L + "' that is undefined in rule: " + this._safeRuleName(N));
|
|
58392
58391
|
} else {
|
|
58393
58392
|
if (D.transform && typeof D.transform == "function")
|
|
58394
58393
|
throw Sn(this._lexer, "action.transform not supported");
|
|
@@ -58404,19 +58403,19 @@ let uy = kI = class extends he {
|
|
|
58404
58403
|
} else if (D.next === "@popall")
|
|
58405
58404
|
u = u.popall();
|
|
58406
58405
|
else {
|
|
58407
|
-
let
|
|
58408
|
-
if (
|
|
58409
|
-
u = u.push(
|
|
58406
|
+
let L = Ju(this._lexer, D.next, C, v, w);
|
|
58407
|
+
if (L[0] === "@" && (L = L.substr(1)), x3(this._lexer, L))
|
|
58408
|
+
u = u.push(L);
|
|
58410
58409
|
else
|
|
58411
|
-
throw Sn(this._lexer, "trying to set a next state '" +
|
|
58410
|
+
throw Sn(this._lexer, "trying to set a next state '" + L + "' that is undefined in rule: " + this._safeRuleName(N));
|
|
58412
58411
|
}
|
|
58413
58412
|
}
|
|
58414
58413
|
D.log && typeof D.log == "string" && wft(this._lexer, this._lexer.languageId + ": " + Ju(this._lexer, D.log, C, v, w));
|
|
58415
58414
|
}
|
|
58416
58415
|
if (T === null)
|
|
58417
58416
|
throw Sn(this._lexer, "lexer rule has no well-defined action in rule: " + this._safeRuleName(N));
|
|
58418
|
-
const
|
|
58419
|
-
const _ = this._languageService.getLanguageIdByLanguageName(
|
|
58417
|
+
const S = (L) => {
|
|
58418
|
+
const _ = this._languageService.getLanguageIdByLanguageName(L) || this._languageService.getLanguageIdByMimeType(L) || L, j = this._getNestedEmbeddedLanguageData(_);
|
|
58420
58419
|
if (d < l) {
|
|
58421
58420
|
const O = e.substr(d);
|
|
58422
58421
|
return this._nestedTokenize(O, t, Xu.create(u, j), i + d, r);
|
|
@@ -58428,10 +58427,10 @@ let uy = kI = class extends he {
|
|
|
58428
58427
|
throw Sn(this._lexer, "groups cannot be nested: " + this._safeRuleName(N));
|
|
58429
58428
|
if (v.length !== T.length + 1)
|
|
58430
58429
|
throw Sn(this._lexer, "matched number of groups does not match the number of actions in rule: " + this._safeRuleName(N));
|
|
58431
|
-
let
|
|
58430
|
+
let L = 0;
|
|
58432
58431
|
for (let _ = 1; _ < v.length; _++)
|
|
58433
|
-
|
|
58434
|
-
if (
|
|
58432
|
+
L += v[_].length;
|
|
58433
|
+
if (L !== C.length)
|
|
58435
58434
|
throw Sn(this._lexer, "with groups, all characters should be matched in consecutive groups in rule: " + this._safeRuleName(N));
|
|
58436
58435
|
h = {
|
|
58437
58436
|
rule: N,
|
|
@@ -58447,26 +58446,26 @@ let uy = kI = class extends he {
|
|
|
58447
58446
|
continue;
|
|
58448
58447
|
} else {
|
|
58449
58448
|
if (T === "@rematch" && (d -= C.length, C = "", v = null, T = "", z !== null))
|
|
58450
|
-
return
|
|
58449
|
+
return S(z);
|
|
58451
58450
|
if (C.length === 0) {
|
|
58452
58451
|
if (l === 0 || A !== u.depth || w !== u.state || (h ? h.groups.length : 0) !== f)
|
|
58453
58452
|
continue;
|
|
58454
58453
|
throw Sn(this._lexer, "no progress in tokenizer in rule: " + this._safeRuleName(N));
|
|
58455
58454
|
}
|
|
58456
|
-
let
|
|
58455
|
+
let L = null;
|
|
58457
58456
|
if (RIe(T) && T.indexOf("@brackets") === 0) {
|
|
58458
58457
|
const _ = T.substr(9), j = Ift(this._lexer, C);
|
|
58459
58458
|
if (!j)
|
|
58460
58459
|
throw Sn(this._lexer, "@brackets token returned but no bracket defined as: " + C);
|
|
58461
|
-
|
|
58460
|
+
L = WMe(j.token + _);
|
|
58462
58461
|
} else {
|
|
58463
58462
|
const _ = T === "" ? "" : T + this._lexer.tokenPostfix;
|
|
58464
|
-
|
|
58463
|
+
L = WMe(_);
|
|
58465
58464
|
}
|
|
58466
|
-
m < s && r.emit(m + i,
|
|
58465
|
+
m < s && r.emit(m + i, L);
|
|
58467
58466
|
}
|
|
58468
58467
|
if (z !== null)
|
|
58469
|
-
return
|
|
58468
|
+
return S(z);
|
|
58470
58469
|
}
|
|
58471
58470
|
return Xu.create(u, p);
|
|
58472
58471
|
}
|
|
@@ -59065,9 +59064,9 @@ var pd;
|
|
|
59065
59064
|
function w() {
|
|
59066
59065
|
s.keydown === 2 && s.input === 2 && s.render === 2 && (performance.mark("inputlatency/end"), performance.measure("keydown", "keydown/start", "keydown/end"), performance.measure("input", "input/start", "input/end"), performance.measure("render", "render/start", "render/end"), performance.measure("inputlatency", "inputlatency/start", "inputlatency/end"), v("keydown", e), v("input", t), v("render", n), v("inputlatency", i), r++, C());
|
|
59067
59066
|
}
|
|
59068
|
-
function v(T,
|
|
59069
|
-
const
|
|
59070
|
-
|
|
59067
|
+
function v(T, S) {
|
|
59068
|
+
const L = performance.getEntriesByName(T)[0].duration;
|
|
59069
|
+
S.total += L, S.min = Math.min(S.min, L), S.max = Math.max(S.max, L);
|
|
59071
59070
|
}
|
|
59072
59071
|
function C() {
|
|
59073
59072
|
performance.clearMarks("keydown/start"), performance.clearMarks("keydown/end"), performance.clearMarks("input/start"), performance.clearMarks("input/end"), performance.clearMarks("render/start"), performance.clearMarks("render/end"), performance.clearMarks("inputlatency/start"), performance.clearMarks("inputlatency/end"), performance.clearMeasures("keydown"), performance.clearMeasures("input"), performance.clearMeasures("render"), performance.clearMeasures("inputlatency"), s.keydown = 0, s.input = 0, s.render = 0;
|
|
@@ -63256,12 +63255,12 @@ let GI = class extends Gr {
|
|
|
63256
63255
|
})), this._register(this._textAreaInput.onCompositionStart((h) => {
|
|
63257
63256
|
const g = this.textArea.domNode, m = this._modelSelections[0], { distanceToModelLineStart: A, widthOfHiddenTextBefore: f } = (() => {
|
|
63258
63257
|
const v = g.value.substring(0, Math.min(g.selectionStart, g.selectionEnd)), C = v.lastIndexOf(`
|
|
63259
|
-
`), D = v.substring(C + 1), N = D.lastIndexOf(" "), z = D.length - N - 1, T = m.getStartPosition(),
|
|
63260
|
-
return { distanceToModelLineStart:
|
|
63258
|
+
`), D = v.substring(C + 1), N = D.lastIndexOf(" "), z = D.length - N - 1, T = m.getStartPosition(), S = Math.min(T.column - 1, z), L = T.column - 1 - S, _ = D.substring(0, D.length - S), { tabSize: j } = this._context.viewModel.model.getOptions(), O = i4t(this.textArea.domNode.ownerDocument, _, this._fontInfo, j);
|
|
63259
|
+
return { distanceToModelLineStart: L, widthOfHiddenTextBefore: O };
|
|
63261
63260
|
})(), { distanceToModelLineEnd: w } = (() => {
|
|
63262
63261
|
const v = g.value.substring(Math.max(g.selectionStart, g.selectionEnd)), C = v.indexOf(`
|
|
63263
|
-
`), D = C === -1 ? v : v.substring(0, C), N = D.indexOf(" "), z = N === -1 ? D.length : D.length - N - 1, T = m.getEndPosition(),
|
|
63264
|
-
return { distanceToModelLineEnd: this._context.viewModel.model.getLineMaxColumn(T.lineNumber) - T.column -
|
|
63262
|
+
`), D = C === -1 ? v : v.substring(0, C), N = D.indexOf(" "), z = N === -1 ? D.length : D.length - N - 1, T = m.getEndPosition(), S = Math.min(this._context.viewModel.model.getLineMaxColumn(T.lineNumber) - T.column, z);
|
|
63263
|
+
return { distanceToModelLineEnd: this._context.viewModel.model.getLineMaxColumn(T.lineNumber) - T.column - S };
|
|
63265
63264
|
})();
|
|
63266
63265
|
this._context.viewModel.revealRange(
|
|
63267
63266
|
"keyboard",
|
|
@@ -65426,7 +65425,7 @@ function f4t(o, e, t, n, i, r) {
|
|
|
65426
65425
|
if (p.shouldIndentNextLine(w) && p.shouldIncrease(A)) {
|
|
65427
65426
|
const C = s6(s, e, t.startLineNumber, !1, r)?.indentation;
|
|
65428
65427
|
if (C !== void 0) {
|
|
65429
|
-
const D = e.getLineContent(t.startLineNumber), N = Jo(D), T = i.shiftIndent(C) === N,
|
|
65428
|
+
const D = e.getLineContent(t.startLineNumber), N = Jo(D), T = i.shiftIndent(C) === N, S = /^\s*$/.test(m), L = o.autoClosingPairs.autoClosingPairsOpenByEnd.get(n), j = L && L.length > 0 && S;
|
|
65430
65429
|
if (T && j)
|
|
65431
65430
|
return C;
|
|
65432
65431
|
}
|
|
@@ -65567,15 +65566,15 @@ class KI {
|
|
|
65567
65566
|
for (const m of s) {
|
|
65568
65567
|
const { lineNumber: A, beforeColumn: f, afterColumn: w } = m, v = t.getLineContent(A), C = v.substring(0, f - 1), D = v.substring(w - 1);
|
|
65569
65568
|
if (D.startsWith(h) || (g = !1), D.length > 0) {
|
|
65570
|
-
const
|
|
65571
|
-
if (!this._isBeforeClosingBrace(e, D) && !p(
|
|
65569
|
+
const S = D.charAt(0);
|
|
65570
|
+
if (!this._isBeforeClosingBrace(e, D) && !p(S))
|
|
65572
65571
|
return null;
|
|
65573
65572
|
}
|
|
65574
65573
|
if (a.open.length === 1 && (i === "'" || i === '"') && l !== "always") {
|
|
65575
|
-
const
|
|
65574
|
+
const S = x2(e.wordSeparators, []);
|
|
65576
65575
|
if (C.length > 0) {
|
|
65577
|
-
const
|
|
65578
|
-
if (
|
|
65576
|
+
const L = C.charCodeAt(C.length - 1);
|
|
65577
|
+
if (S.get(L) === 0)
|
|
65579
65578
|
return null;
|
|
65580
65579
|
}
|
|
65581
65580
|
}
|
|
@@ -65587,8 +65586,8 @@ class KI {
|
|
|
65587
65586
|
return null;
|
|
65588
65587
|
const T = a.findNeutralCharacter();
|
|
65589
65588
|
if (T) {
|
|
65590
|
-
const
|
|
65591
|
-
if (!a.isOK(
|
|
65589
|
+
const S = t.tokenization.getTokenTypeIfInsertingCharacter(A, f, T);
|
|
65590
|
+
if (!a.isOK(S))
|
|
65592
65591
|
return null;
|
|
65593
65592
|
}
|
|
65594
65593
|
}
|
|
@@ -66398,8 +66397,8 @@ var Oi;
|
|
|
66398
66397
|
_getColumnSelectResult(w, v, C, D) {
|
|
66399
66398
|
if (typeof D.position > "u" || typeof D.viewPosition > "u" || typeof D.mouseColumn > "u")
|
|
66400
66399
|
return null;
|
|
66401
|
-
const N = w.model.validatePosition(D.position), z = w.coordinatesConverter.validateViewPosition(new ne(D.viewPosition.lineNumber, D.viewPosition.column), N), T = D.doColumnSelect ? C.fromViewLineNumber : z.lineNumber,
|
|
66402
|
-
return Wh.columnSelect(w.cursorConfig, w, T,
|
|
66400
|
+
const N = w.model.validatePosition(D.position), z = w.coordinatesConverter.validateViewPosition(new ne(D.viewPosition.lineNumber, D.viewPosition.column), N), T = D.doColumnSelect ? C.fromViewLineNumber : z.lineNumber, S = D.doColumnSelect ? C.fromViewVisualColumn : D.mouseColumn - 1;
|
|
66401
|
+
return Wh.columnSelect(w.cursorConfig, w, T, S, z.lineNumber, D.mouseColumn - 1);
|
|
66403
66402
|
}
|
|
66404
66403
|
}()), o.CursorColumnSelectLeft = Ke(new class extends t {
|
|
66405
66404
|
constructor() {
|
|
@@ -66780,9 +66779,9 @@ var Oi;
|
|
|
66780
66779
|
const D = w.getCursorStates();
|
|
66781
66780
|
if (D.length > 1) {
|
|
66782
66781
|
const N = C.modelState ? C.modelState.position : null, z = C.viewState ? C.viewState.position : null;
|
|
66783
|
-
for (let T = 0,
|
|
66784
|
-
const
|
|
66785
|
-
if (!(N && !
|
|
66782
|
+
for (let T = 0, S = D.length; T < S; T++) {
|
|
66783
|
+
const L = D[T];
|
|
66784
|
+
if (!(N && !L.modelState.selection.containsPosition(N)) && !(z && !L.viewState.selection.containsPosition(z))) {
|
|
66786
66785
|
D.splice(T, 1), w.model.pushStackElement(), w.setCursorStates(v.source, 3, D);
|
|
66787
66786
|
return;
|
|
66788
66787
|
}
|
|
@@ -66961,8 +66960,8 @@ var Oi;
|
|
|
66961
66960
|
_exec(v, C) {
|
|
66962
66961
|
const D = [];
|
|
66963
66962
|
for (let N = 0, z = C.length; N < z; N++) {
|
|
66964
|
-
const T = C[N],
|
|
66965
|
-
D[N] = Tt.fromModelState(T.modelState.move(this._inSelectionMode,
|
|
66963
|
+
const T = C[N], S = T.modelState.position.lineNumber, L = v.model.getLineMaxColumn(S);
|
|
66964
|
+
D[N] = Tt.fromModelState(T.modelState.move(this._inSelectionMode, S, L, 0));
|
|
66966
66965
|
}
|
|
66967
66966
|
return D;
|
|
66968
66967
|
}
|
|
@@ -67118,10 +67117,10 @@ var Oi;
|
|
|
67118
67117
|
}
|
|
67119
67118
|
_computeDesiredScrollTop(v, C) {
|
|
67120
67119
|
if (C.unit === 1) {
|
|
67121
|
-
const z = v.viewLayout.getFutureViewport(), T = v.getCompletelyVisibleViewRangeAtScrollTop(z.top),
|
|
67122
|
-
let
|
|
67123
|
-
C.direction === 1 ?
|
|
67124
|
-
const _ = v.coordinatesConverter.convertModelPositionToViewPosition(new ne(
|
|
67120
|
+
const z = v.viewLayout.getFutureViewport(), T = v.getCompletelyVisibleViewRangeAtScrollTop(z.top), S = v.coordinatesConverter.convertViewRangeToModelRange(T);
|
|
67121
|
+
let L;
|
|
67122
|
+
C.direction === 1 ? L = Math.max(1, S.startLineNumber - C.value) : L = Math.min(v.model.getLineCount(), S.startLineNumber + C.value);
|
|
67123
|
+
const _ = v.coordinatesConverter.convertModelPositionToViewPosition(new ne(L, 1));
|
|
67125
67124
|
return v.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber);
|
|
67126
67125
|
}
|
|
67127
67126
|
if (C.unit === 5) {
|
|
@@ -67470,25 +67469,25 @@ var Oi;
|
|
|
67470
67469
|
const z = w.model.getLineCount();
|
|
67471
67470
|
N > z && (N = z);
|
|
67472
67471
|
const T = new Q(N, 1, N, w.model.getLineMaxColumn(N));
|
|
67473
|
-
let
|
|
67472
|
+
let S = 0;
|
|
67474
67473
|
if (C.at)
|
|
67475
67474
|
switch (C.at) {
|
|
67476
67475
|
case I0.RawAtArgument.Top:
|
|
67477
|
-
|
|
67476
|
+
S = 3;
|
|
67478
67477
|
break;
|
|
67479
67478
|
case I0.RawAtArgument.Center:
|
|
67480
|
-
|
|
67479
|
+
S = 1;
|
|
67481
67480
|
break;
|
|
67482
67481
|
case I0.RawAtArgument.Bottom:
|
|
67483
|
-
|
|
67482
|
+
S = 4;
|
|
67484
67483
|
break;
|
|
67485
67484
|
}
|
|
67486
|
-
const
|
|
67485
|
+
const L = w.coordinatesConverter.convertModelRangeToViewRange(T);
|
|
67487
67486
|
w.revealRange(
|
|
67488
67487
|
v.source,
|
|
67489
67488
|
!1,
|
|
67490
|
-
S,
|
|
67491
67489
|
L,
|
|
67490
|
+
S,
|
|
67492
67491
|
0
|
|
67493
67492
|
/* ScrollType.Smooth */
|
|
67494
67493
|
);
|
|
@@ -69480,20 +69479,20 @@ class J4t extends OTe {
|
|
|
69480
69479
|
const d = (T) => {
|
|
69481
69480
|
if (a !== -1 && (a === -2 || a > T - 1)) {
|
|
69482
69481
|
a = -1, l = -1;
|
|
69483
|
-
for (let
|
|
69484
|
-
const
|
|
69485
|
-
if (
|
|
69486
|
-
a =
|
|
69482
|
+
for (let S = T - 2; S >= 0; S--) {
|
|
69483
|
+
const L = this._computeIndentLevel(S);
|
|
69484
|
+
if (L >= 0) {
|
|
69485
|
+
a = S, l = L;
|
|
69487
69486
|
break;
|
|
69488
69487
|
}
|
|
69489
69488
|
}
|
|
69490
69489
|
}
|
|
69491
69490
|
if (p === -2) {
|
|
69492
69491
|
p = -1, u = -1;
|
|
69493
|
-
for (let
|
|
69494
|
-
const
|
|
69495
|
-
if (
|
|
69496
|
-
p =
|
|
69492
|
+
for (let S = T; S < i; S++) {
|
|
69493
|
+
const L = this._computeIndentLevel(S);
|
|
69494
|
+
if (L >= 0) {
|
|
69495
|
+
p = S, u = L;
|
|
69497
69496
|
break;
|
|
69498
69497
|
}
|
|
69499
69498
|
}
|
|
@@ -69503,20 +69502,20 @@ class J4t extends OTe {
|
|
|
69503
69502
|
const f = (T) => {
|
|
69504
69503
|
if (h === -2) {
|
|
69505
69504
|
h = -1, g = -1;
|
|
69506
|
-
for (let
|
|
69507
|
-
const
|
|
69508
|
-
if (
|
|
69509
|
-
h =
|
|
69505
|
+
for (let S = T - 2; S >= 0; S--) {
|
|
69506
|
+
const L = this._computeIndentLevel(S);
|
|
69507
|
+
if (L >= 0) {
|
|
69508
|
+
h = S, g = L;
|
|
69510
69509
|
break;
|
|
69511
69510
|
}
|
|
69512
69511
|
}
|
|
69513
69512
|
}
|
|
69514
69513
|
if (m !== -1 && (m === -2 || m < T - 1)) {
|
|
69515
69514
|
m = -1, A = -1;
|
|
69516
|
-
for (let
|
|
69517
|
-
const
|
|
69518
|
-
if (
|
|
69519
|
-
m =
|
|
69515
|
+
for (let S = T; S < i; S++) {
|
|
69516
|
+
const L = this._computeIndentLevel(S);
|
|
69517
|
+
if (L >= 0) {
|
|
69518
|
+
m = S, A = L;
|
|
69520
69519
|
break;
|
|
69521
69520
|
}
|
|
69522
69521
|
}
|
|
@@ -69524,35 +69523,35 @@ class J4t extends OTe {
|
|
|
69524
69523
|
};
|
|
69525
69524
|
let w = 0, v = !0, C = 0, D = !0, N = 0, z = 0;
|
|
69526
69525
|
for (let T = 0; v || D; T++) {
|
|
69527
|
-
const
|
|
69528
|
-
T > 1 && (
|
|
69526
|
+
const S = e - T, L = e + T;
|
|
69527
|
+
T > 1 && (S < 1 || S < t) && (v = !1), T > 1 && (L > i || L > n) && (D = !1), T > 5e4 && (v = !1, D = !1);
|
|
69529
69528
|
let _ = -1;
|
|
69530
|
-
if (v &&
|
|
69531
|
-
const O = this._computeIndentLevel(
|
|
69532
|
-
O >= 0 ? (p =
|
|
69529
|
+
if (v && S >= 1) {
|
|
69530
|
+
const O = this._computeIndentLevel(S - 1);
|
|
69531
|
+
O >= 0 ? (p = S - 1, u = O, _ = Math.ceil(O / this.textModel.getOptions().indentSize)) : (d(S), _ = this._getIndentLevelForWhitespaceLine(s, l, u));
|
|
69533
69532
|
}
|
|
69534
69533
|
let j = -1;
|
|
69535
|
-
if (D &&
|
|
69536
|
-
const O = this._computeIndentLevel(
|
|
69537
|
-
O >= 0 ? (h =
|
|
69534
|
+
if (D && L <= i) {
|
|
69535
|
+
const O = this._computeIndentLevel(L - 1);
|
|
69536
|
+
O >= 0 ? (h = L - 1, g = O, j = Math.ceil(O / this.textModel.getOptions().indentSize)) : (f(L), j = this._getIndentLevelForWhitespaceLine(s, g, A));
|
|
69538
69537
|
}
|
|
69539
69538
|
if (T === 0) {
|
|
69540
69539
|
z = _;
|
|
69541
69540
|
continue;
|
|
69542
69541
|
}
|
|
69543
69542
|
if (T === 1) {
|
|
69544
|
-
if (
|
|
69545
|
-
v = !1, w =
|
|
69543
|
+
if (L <= i && j >= 0 && z + 1 === j) {
|
|
69544
|
+
v = !1, w = L, C = L, N = j;
|
|
69546
69545
|
continue;
|
|
69547
69546
|
}
|
|
69548
|
-
if (
|
|
69549
|
-
D = !1, w =
|
|
69547
|
+
if (S >= 1 && _ >= 0 && _ - 1 === z) {
|
|
69548
|
+
D = !1, w = S, C = S, N = _;
|
|
69550
69549
|
continue;
|
|
69551
69550
|
}
|
|
69552
69551
|
if (w = e, C = e, N = z, N === 0)
|
|
69553
69552
|
return { startLineNumber: w, endLineNumber: C, indent: N };
|
|
69554
69553
|
}
|
|
69555
|
-
v && (_ >= N ? w =
|
|
69554
|
+
v && (_ >= N ? w = S : v = !1), D && (j >= N ? C = L : D = !1);
|
|
69556
69555
|
}
|
|
69557
69556
|
return { startLineNumber: w, endLineNumber: C, indent: N };
|
|
69558
69557
|
}
|
|
@@ -69581,8 +69580,8 @@ class J4t extends OTe {
|
|
|
69581
69580
|
const w = this.getVisibleColumnFromPosition(A), v = this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()), C = Math.min(v, w, d.minVisibleColumnIndentation + 1);
|
|
69582
69581
|
let D = !1;
|
|
69583
69582
|
qr(this.textModel.getLineContent(d.closingBracketRange.startLineNumber)) < d.closingBracketRange.startColumn - 1 && (D = !0);
|
|
69584
|
-
const T = Math.max(m.lineNumber, e),
|
|
69585
|
-
for (let _ = T; _ <
|
|
69583
|
+
const T = Math.max(m.lineNumber, e), S = Math.min(A.lineNumber, t), L = D ? 1 : 0;
|
|
69584
|
+
for (let _ = T; _ < S + L; _++)
|
|
69586
69585
|
r[_ - e].push(new u1(C, -1, g, null, _ === m.lineNumber ? m.column : -1, _ === A.lineNumber ? A.column : -1));
|
|
69587
69586
|
f && (m.lineNumber >= e && v > C && r[m.lineNumber - e].push(new u1(C, -1, g, new sf(!1, m.column), -1, -1)), A.lineNumber <= t && w > C && r[A.lineNumber - e].push(new u1(C, -1, g, new sf(!D, A.column), -1, -1)));
|
|
69588
69587
|
}
|
|
@@ -70487,13 +70486,13 @@ class my {
|
|
|
70487
70486
|
console.warn("bad render request outside image data");
|
|
70488
70487
|
return;
|
|
70489
70488
|
}
|
|
70490
|
-
const A = u ? this.charDataLight : this.charDataNormal, f = rMt(i, p), w = e.width * 4, v = a.r, C = a.g, D = a.b, N = r.r - v, z = r.g - C, T = r.b - D,
|
|
70489
|
+
const A = u ? this.charDataLight : this.charDataNormal, f = rMt(i, p), w = e.width * 4, v = a.r, C = a.g, D = a.b, N = r.r - v, z = r.g - C, T = r.b - D, S = Math.max(s, l), L = e.data;
|
|
70491
70490
|
let _ = f * h * g, j = n * w + t * 4;
|
|
70492
70491
|
for (let O = 0; O < m; O++) {
|
|
70493
70492
|
let R = j;
|
|
70494
70493
|
for (let V = 0; V < h; V++) {
|
|
70495
70494
|
const q = A[_++] / 255 * (s / 255);
|
|
70496
|
-
|
|
70495
|
+
L[R++] = v + N * q, L[R++] = C + z * q, L[R++] = D + T * q, L[R++] = S;
|
|
70497
70496
|
}
|
|
70498
70497
|
j += w;
|
|
70499
70498
|
}
|
|
@@ -70504,13 +70503,13 @@ class my {
|
|
|
70504
70503
|
console.warn("bad render request outside image data");
|
|
70505
70504
|
return;
|
|
70506
70505
|
}
|
|
70507
|
-
const h = e.width * 4, g = 0.5 * (r / 255), m = s.r, A = s.g, f = s.b, w = i.r - m, v = i.g - A, C = i.b - f, D = m + w * g, N = A + v * g, z = f + C * g, T = Math.max(r, a),
|
|
70508
|
-
let
|
|
70506
|
+
const h = e.width * 4, g = 0.5 * (r / 255), m = s.r, A = s.g, f = s.b, w = i.r - m, v = i.g - A, C = i.b - f, D = m + w * g, N = A + v * g, z = f + C * g, T = Math.max(r, a), S = e.data;
|
|
70507
|
+
let L = n * h + t * 4;
|
|
70509
70508
|
for (let _ = 0; _ < d; _++) {
|
|
70510
|
-
let j =
|
|
70509
|
+
let j = L;
|
|
70511
70510
|
for (let O = 0; O < p; O++)
|
|
70512
|
-
|
|
70513
|
-
|
|
70511
|
+
S[j++] = D, S[j++] = N, S[j++] = z, S[j++] = T;
|
|
70512
|
+
L += h;
|
|
70514
70513
|
}
|
|
70515
70514
|
}
|
|
70516
70515
|
}
|
|
@@ -70587,8 +70586,8 @@ class af {
|
|
|
70587
70586
|
for (let C = d; C < h; C++) {
|
|
70588
70587
|
const D = t + Math.floor(C) * 3840, N = 1 - (C - Math.floor(C));
|
|
70589
70588
|
for (let z = m; z < A; z++) {
|
|
70590
|
-
const T = 1 - (z - Math.floor(z)),
|
|
70591
|
-
w +=
|
|
70589
|
+
const T = 1 - (z - Math.floor(z)), S = D + Math.floor(z) * 4, L = T * N;
|
|
70590
|
+
w += L, f += e[S] * e[S + 3] / 255 * L;
|
|
70592
70591
|
}
|
|
70593
70592
|
}
|
|
70594
70593
|
const v = f / w;
|
|
@@ -70693,8 +70692,8 @@ class lf {
|
|
|
70693
70692
|
if (e.minimapHeightIsEditorHeight) {
|
|
70694
70693
|
let z = l * e.lineHeight + e.paddingTop + e.paddingBottom;
|
|
70695
70694
|
e.scrollBeyondLastLine && (z += Math.max(0, r - e.lineHeight - e.paddingBottom));
|
|
70696
|
-
const T = Math.max(1, Math.floor(r * r / z)),
|
|
70697
|
-
return new lf(p, u, j,
|
|
70695
|
+
const T = Math.max(1, Math.floor(r * r / z)), S = Math.max(0, e.minimapHeight - T), L = S / (u - r), _ = p * L, j = S > 0, O = Math.floor(e.canvasInnerHeight / e.minimapLineHeight), R = Math.floor(e.paddingTop / e.lineHeight);
|
|
70696
|
+
return new lf(p, u, j, L, _, T, R, 1, Math.min(a, O));
|
|
70698
70697
|
}
|
|
70699
70698
|
let f;
|
|
70700
70699
|
if (s && n !== a) {
|
|
@@ -70724,11 +70723,11 @@ class lf {
|
|
|
70724
70723
|
} else {
|
|
70725
70724
|
let z;
|
|
70726
70725
|
t > 1 ? z = t + w : z = Math.max(1, p / A);
|
|
70727
|
-
let T,
|
|
70728
|
-
|
|
70729
|
-
const
|
|
70726
|
+
let T, S = Math.max(1, Math.floor(z - N * h / g));
|
|
70727
|
+
S < w ? (T = w - S + 1, S = 1) : (T = 0, S = Math.max(1, S - w)), d && d.scrollHeight === u && (d.scrollTop > p && (S = Math.min(S, d.startLineNumber), T = Math.max(T, d.topPaddingLineCount)), d.scrollTop < p && (S = Math.max(S, d.startLineNumber), T = Math.min(T, d.topPaddingLineCount)));
|
|
70728
|
+
const L = Math.min(a, S - T + m - 1), _ = (p - i) / A;
|
|
70730
70729
|
let j;
|
|
70731
|
-
return p >= e.paddingTop ? j = (t -
|
|
70730
|
+
return p >= e.paddingTop ? j = (t - S + T + _) * g / h : j = p / e.paddingTop * (T + _) * g / h, new lf(p, u, !0, D, j, f, T, S, L);
|
|
70732
70731
|
}
|
|
70733
70732
|
}
|
|
70734
70733
|
}
|
|
@@ -71377,25 +71376,25 @@ class T0 extends he {
|
|
|
71377
71376
|
const r = this._getBuffer();
|
|
71378
71377
|
if (!r)
|
|
71379
71378
|
return null;
|
|
71380
|
-
const [s, a, l] = T0._renderUntouchedLines(r, e.topPaddingLineCount, t, n, i, this._lastRenderData), p = this._model.getMinimapLinesRenderingData(t, n, l), u = this._model.getOptions().tabSize, d = this._model.options.defaultBackgroundColor, h = this._model.options.backgroundColor, g = this._model.options.foregroundAlpha, m = this._model.tokensColorTracker, A = m.backgroundIsLight(), f = this._model.options.renderMinimap, w = this._model.options.charRenderer(), v = this._model.options.fontScale, C = this._model.options.minimapCharWidth, N = (f === 1 ? 2 : 3) * v, z = i > N ? Math.floor((i - N) / 2) : 0, T = h.a / 255,
|
|
71381
|
-
let
|
|
71379
|
+
const [s, a, l] = T0._renderUntouchedLines(r, e.topPaddingLineCount, t, n, i, this._lastRenderData), p = this._model.getMinimapLinesRenderingData(t, n, l), u = this._model.getOptions().tabSize, d = this._model.options.defaultBackgroundColor, h = this._model.options.backgroundColor, g = this._model.options.foregroundAlpha, m = this._model.tokensColorTracker, A = m.backgroundIsLight(), f = this._model.options.renderMinimap, w = this._model.options.charRenderer(), v = this._model.options.fontScale, C = this._model.options.minimapCharWidth, N = (f === 1 ? 2 : 3) * v, z = i > N ? Math.floor((i - N) / 2) : 0, T = h.a / 255, S = new Us(Math.round((h.r - d.r) * T + d.r), Math.round((h.g - d.g) * T + d.g), Math.round((h.b - d.b) * T + d.b), 255);
|
|
71380
|
+
let L = e.topPaddingLineCount * i;
|
|
71382
71381
|
const _ = [];
|
|
71383
71382
|
for (let q = 0, se = n - t + 1; q < se; q++)
|
|
71384
|
-
l[q] && T0._renderLine(r,
|
|
71383
|
+
l[q] && T0._renderLine(r, S, h.a, A, f, C, m, g, w, L, z, u, p[q], v, i), _[q] = new uv(L), L += i;
|
|
71385
71384
|
const j = s === -1 ? 0 : s, R = (a === -1 ? r.height : a) - j;
|
|
71386
71385
|
return this._canvas.domNode.getContext("2d").putImageData(r, 0, 0, 0, j, r.width, R), new T5e(e, r, _);
|
|
71387
71386
|
}
|
|
71388
71387
|
static _renderUntouchedLines(e, t, n, i, r, s) {
|
|
71389
71388
|
const a = [];
|
|
71390
71389
|
if (!s) {
|
|
71391
|
-
for (let
|
|
71392
|
-
a[
|
|
71390
|
+
for (let L = 0, _ = i - n + 1; L < _; L++)
|
|
71391
|
+
a[L] = !0;
|
|
71393
71392
|
return [-1, -1, a];
|
|
71394
71393
|
}
|
|
71395
71394
|
const l = s._get(), p = l.imageData.data, u = l.rendLineNumberStart, d = l.lines, h = d.length, g = e.width, m = e.data, A = (i - n + 1) * r * g * 4;
|
|
71396
71395
|
let f = -1, w = -1, v = -1, C = -1, D = -1, N = -1, z = t * r;
|
|
71397
|
-
for (let
|
|
71398
|
-
const _ =
|
|
71396
|
+
for (let L = n; L <= i; L++) {
|
|
71397
|
+
const _ = L - n, j = L - u, O = j >= 0 && j < h ? d[j].dy : -1;
|
|
71399
71398
|
if (O === -1) {
|
|
71400
71399
|
a[_] = !0, z += r;
|
|
71401
71400
|
continue;
|
|
@@ -71404,15 +71403,15 @@ class T0 extends he {
|
|
|
71404
71403
|
C === R && N === q ? (C = V, N = se) : (v !== -1 && (m.set(p.subarray(v, C), D), f === -1 && v === 0 && v === D && (f = C), w === -1 && C === A && v === D && (w = v)), v = R, C = V, D = q, N = se), a[_] = !1, z += r;
|
|
71405
71404
|
}
|
|
71406
71405
|
v !== -1 && (m.set(p.subarray(v, C), D), f === -1 && v === 0 && v === D && (f = C), w === -1 && C === A && v === D && (w = v));
|
|
71407
|
-
const T = f === -1 ? -1 : f / (g * 4),
|
|
71408
|
-
return [T,
|
|
71406
|
+
const T = f === -1 ? -1 : f / (g * 4), S = w === -1 ? -1 : w / (g * 4);
|
|
71407
|
+
return [T, S, a];
|
|
71409
71408
|
}
|
|
71410
71409
|
static _renderLine(e, t, n, i, r, s, a, l, p, u, d, h, g, m, A) {
|
|
71411
71410
|
const f = g.content, w = g.tokens, v = e.width - s, C = A === 1;
|
|
71412
71411
|
let D = Ac, N = 0, z = 0;
|
|
71413
|
-
for (let T = 0,
|
|
71414
|
-
const
|
|
71415
|
-
for (; N <
|
|
71412
|
+
for (let T = 0, S = w.getCount(); T < S; T++) {
|
|
71413
|
+
const L = w.getEndOffset(T), _ = w.getForeground(T), j = a.getColor(_);
|
|
71414
|
+
for (; N < L; N++) {
|
|
71416
71415
|
if (D > v)
|
|
71417
71416
|
return;
|
|
71418
71417
|
const O = f.charCodeAt(N);
|
|
@@ -71789,13 +71788,13 @@ class dMt extends Gr {
|
|
|
71789
71788
|
d.fillStyle = A;
|
|
71790
71789
|
let w = 0, v = 0, C = 0;
|
|
71791
71790
|
for (let D = 0, N = f.length / 3; D < N; D++) {
|
|
71792
|
-
const z = f[3 * D], T = f[3 * D + 1],
|
|
71793
|
-
let
|
|
71794
|
-
if (_ -
|
|
71795
|
-
let O = (
|
|
71796
|
-
O < u ? O = u : O + u > i && (O = i - u),
|
|
71791
|
+
const z = f[3 * D], T = f[3 * D + 1], S = f[3 * D + 2];
|
|
71792
|
+
let L = s.getVerticalOffsetForLineNumber(T) * l | 0, _ = (s.getVerticalOffsetForLineNumber(S) + r) * l | 0;
|
|
71793
|
+
if (_ - L < p) {
|
|
71794
|
+
let O = (L + _) / 2 | 0;
|
|
71795
|
+
O < u ? O = u : O + u > i && (O = i - u), L = O - u, _ = O + u;
|
|
71797
71796
|
}
|
|
71798
|
-
|
|
71797
|
+
L > C + 1 || z !== w ? (D !== 0 && d.fillRect(h[w], v, g[w], C - v), w = z, v = L, C = _) : _ > C && (C = _);
|
|
71799
71798
|
}
|
|
71800
71799
|
d.fillRect(h[w], v, g[w], C - v);
|
|
71801
71800
|
}
|
|
@@ -71812,10 +71811,10 @@ class dMt extends Gr {
|
|
|
71812
71811
|
const T = this._cursorPositions[N].color;
|
|
71813
71812
|
if (!T)
|
|
71814
71813
|
continue;
|
|
71815
|
-
const
|
|
71816
|
-
let
|
|
71817
|
-
|
|
71818
|
-
const _ =
|
|
71814
|
+
const S = this._cursorPositions[N].position;
|
|
71815
|
+
let L = s.getVerticalOffsetForLineNumber(S.lineNumber) * l | 0;
|
|
71816
|
+
L < A ? L = A : L + A > i && (L = i - A);
|
|
71817
|
+
const _ = L - A, j = _ + m;
|
|
71819
71818
|
_ > C + 1 || T !== D ? (N !== 0 && D && d.fillRect(f, v, w, C - v), v = _, C = j) : j > C && (C = j), D = T, d.fillStyle = T;
|
|
71820
71819
|
}
|
|
71821
71820
|
D && d.fillRect(f, v, w, C - v);
|
|
@@ -72890,14 +72889,14 @@ class DMt extends zg {
|
|
|
72890
72889
|
if (this._options.renderWhitespace === "selection" && !n || this._options.renderWhitespace === "trailing" && i.continuesWithWrappedLine)
|
|
72891
72890
|
return "";
|
|
72892
72891
|
const r = this._context.theme.getColor(dk), s = this._options.renderWithSVG, a = i.content, l = this._options.stopRenderingLineAfter === -1 ? a.length : Math.min(this._options.stopRenderingLineAfter, a.length), p = i.continuesWithWrappedLine, u = i.minColumn - 1, d = this._options.renderWhitespace === "boundary", h = this._options.renderWhitespace === "trailing", g = this._options.lineHeight, m = this._options.middotWidth, A = this._options.wsmiddotWidth, f = this._options.spaceWidth, w = Math.abs(A - f), v = Math.abs(m - f), C = w < v ? 11825 : 183, D = this._options.canUseHalfwidthRightwardsArrow;
|
|
72893
|
-
let N = "", z = !1, T = qr(a),
|
|
72894
|
-
T === -1 ? (z = !0, T = l,
|
|
72895
|
-
let
|
|
72892
|
+
let N = "", z = !1, T = qr(a), S;
|
|
72893
|
+
T === -1 ? (z = !0, T = l, S = l) : S = yg(a);
|
|
72894
|
+
let L = 0, _ = n && n[L], j = 0;
|
|
72896
72895
|
for (let O = u; O < l; O++) {
|
|
72897
72896
|
const R = a.charCodeAt(O);
|
|
72898
|
-
if (_ && O >= _.endOffset && (
|
|
72897
|
+
if (_ && O >= _.endOffset && (L++, _ = n && n[L]), R !== 9 && R !== 32 || h && !z && O <= S)
|
|
72899
72898
|
continue;
|
|
72900
|
-
if (d && O >= T && O <=
|
|
72899
|
+
if (d && O >= T && O <= S && R === 32) {
|
|
72901
72900
|
const q = O - 1 >= 0 ? a.charCodeAt(O - 1) : 0, se = O + 1 < l ? a.charCodeAt(O + 1) : 0;
|
|
72902
72901
|
if (q !== 32 && se !== 32)
|
|
72903
72902
|
continue;
|
|
@@ -73594,25 +73593,25 @@ class vk {
|
|
|
73594
73593
|
}
|
|
73595
73594
|
}
|
|
73596
73595
|
function OMt(o, e, t, n, i, r, s, a) {
|
|
73597
|
-
function l(
|
|
73598
|
-
const _ = a[
|
|
73596
|
+
function l(L) {
|
|
73597
|
+
const _ = a[L];
|
|
73599
73598
|
if (_) {
|
|
73600
|
-
const j = Ul.applyInjectedText(e[
|
|
73599
|
+
const j = Ul.applyInjectedText(e[L], _), O = _.map((V) => V.options), R = _.map((V) => V.column - 1);
|
|
73601
73600
|
return new cf(R, O, [j.length], [], 0);
|
|
73602
73601
|
} else
|
|
73603
73602
|
return null;
|
|
73604
73603
|
}
|
|
73605
73604
|
if (i === -1) {
|
|
73606
|
-
const
|
|
73605
|
+
const L = [];
|
|
73607
73606
|
for (let _ = 0, j = e.length; _ < j; _++)
|
|
73608
|
-
|
|
73609
|
-
return
|
|
73607
|
+
L[_] = l(_);
|
|
73608
|
+
return L;
|
|
73610
73609
|
}
|
|
73611
73610
|
const p = Math.round(i * t.typicalHalfwidthCharacterWidth), d = Math.round(n * (r === 3 ? 2 : r === 2 ? 1 : 0)), h = Math.ceil(t.spaceWidth * d), g = document.createElement("div");
|
|
73612
73611
|
Eo(g, t);
|
|
73613
73612
|
const m = new q8(1e4), A = [], f = [], w = [], v = [], C = [];
|
|
73614
|
-
for (let
|
|
73615
|
-
const _ = Ul.applyInjectedText(e[
|
|
73613
|
+
for (let L = 0; L < e.length; L++) {
|
|
73614
|
+
const _ = Ul.applyInjectedText(e[L], a[L]);
|
|
73616
73615
|
let j = 0, O = 0, R = p;
|
|
73617
73616
|
if (r !== 0)
|
|
73618
73617
|
if (j = qr(_), j === -1)
|
|
@@ -73626,28 +73625,28 @@ function OMt(o, e, t, n, i, r, s, a) {
|
|
|
73626
73625
|
se + t.typicalFullwidthCharacterWidth > p ? (j = 0, O = 0) : R = p - se;
|
|
73627
73626
|
}
|
|
73628
73627
|
const V = _.substr(j), q = jMt(V, O, n, R, m, h);
|
|
73629
|
-
A[
|
|
73628
|
+
A[L] = j, f[L] = O, w[L] = V, v[L] = q[0], C[L] = q[1];
|
|
73630
73629
|
}
|
|
73631
73630
|
const D = m.build(), N = kMt?.createHTML(D) ?? D;
|
|
73632
73631
|
g.innerHTML = N, g.style.position = "absolute", g.style.top = "10000", s === "keepAll" ? (g.style.wordBreak = "keep-all", g.style.overflowWrap = "anywhere") : (g.style.wordBreak = "inherit", g.style.overflowWrap = "break-word"), o.document.body.appendChild(g);
|
|
73633
|
-
const z = document.createRange(), T = Array.prototype.slice.call(g.children, 0),
|
|
73634
|
-
for (let
|
|
73635
|
-
const _ = T[
|
|
73632
|
+
const z = document.createRange(), T = Array.prototype.slice.call(g.children, 0), S = [];
|
|
73633
|
+
for (let L = 0; L < e.length; L++) {
|
|
73634
|
+
const _ = T[L], j = _Mt(z, _, w[L], v[L]);
|
|
73636
73635
|
if (j === null) {
|
|
73637
|
-
L
|
|
73636
|
+
S[L] = l(L);
|
|
73638
73637
|
continue;
|
|
73639
73638
|
}
|
|
73640
|
-
const O = A[
|
|
73639
|
+
const O = A[L], R = f[L] + d, V = C[L], q = [];
|
|
73641
73640
|
for (let ce = 0, oe = j.length; ce < oe; ce++)
|
|
73642
73641
|
q[ce] = V[j[ce]];
|
|
73643
73642
|
if (O !== 0)
|
|
73644
73643
|
for (let ce = 0, oe = j.length; ce < oe; ce++)
|
|
73645
73644
|
j[ce] += O;
|
|
73646
73645
|
let se, ue;
|
|
73647
|
-
const me = a[
|
|
73648
|
-
me ? (se = me.map((ce) => ce.options), ue = me.map((ce) => ce.column - 1)) : (se = null, ue = null), L
|
|
73646
|
+
const me = a[L];
|
|
73647
|
+
me ? (se = me.map((ce) => ce.options), ue = me.map((ce) => ce.column - 1)) : (se = null, ue = null), S[L] = new cf(ue, se, j, q, R);
|
|
73649
73648
|
}
|
|
73650
|
-
return g.remove(),
|
|
73649
|
+
return g.remove(), S;
|
|
73651
73650
|
}
|
|
73652
73651
|
function jMt(o, e, t, n, i, r) {
|
|
73653
73652
|
if (r !== 0) {
|
|
@@ -76207,11 +76206,11 @@ function Y5e(o, e, t) {
|
|
|
76207
76206
|
for (let m = 1; m <= n; m++) {
|
|
76208
76207
|
const A = o.getLineLength(m), f = o.getLineContent(m), w = A <= 65536;
|
|
76209
76208
|
let v = !1, C = 0, D = 0, N = 0;
|
|
76210
|
-
for (let T = 0,
|
|
76211
|
-
const
|
|
76212
|
-
if (
|
|
76209
|
+
for (let T = 0, S = A; T < S; T++) {
|
|
76210
|
+
const L = w ? f.charCodeAt(T) : o.getLineCharCode(m, T);
|
|
76211
|
+
if (L === 9)
|
|
76213
76212
|
N++;
|
|
76214
|
-
else if (
|
|
76213
|
+
else if (L === 32)
|
|
76215
76214
|
D++;
|
|
76216
76215
|
else {
|
|
76217
76216
|
v = !0, C = T;
|
|
@@ -79675,22 +79674,22 @@ let lT = class extends he {
|
|
|
79675
79674
|
for (let p = 0, u = s.length; p < u; p++) {
|
|
79676
79675
|
const d = s[p], [h] = B2(d.text);
|
|
79677
79676
|
this._onDidChangeDecorations.fire();
|
|
79678
|
-
const g = d.range.startLineNumber, m = d.range.endLineNumber, A = m - g, f = h, w = Math.min(A, f), v = f - A, C = r - l - v + g, D = C, N = C + f, z = this._decorationsTree.getInjectedTextInInterval(this, this.getOffsetAt(new ne(D, 1)), this.getOffsetAt(new ne(N, this.getLineMaxColumn(N))), 0), T = Ul.fromDecorations(z),
|
|
79679
|
-
for (let
|
|
79680
|
-
const _ = g +
|
|
79681
|
-
|
|
79682
|
-
const O =
|
|
79677
|
+
const g = d.range.startLineNumber, m = d.range.endLineNumber, A = m - g, f = h, w = Math.min(A, f), v = f - A, C = r - l - v + g, D = C, N = C + f, z = this._decorationsTree.getInjectedTextInInterval(this, this.getOffsetAt(new ne(D, 1)), this.getOffsetAt(new ne(N, this.getLineMaxColumn(N))), 0), T = Ul.fromDecorations(z), S = new pu(T);
|
|
79678
|
+
for (let L = w; L >= 0; L--) {
|
|
79679
|
+
const _ = g + L, j = C + L;
|
|
79680
|
+
S.takeFromEndWhile((R) => R.lineNumber > j);
|
|
79681
|
+
const O = S.takeFromEndWhile((R) => R.lineNumber === j);
|
|
79683
79682
|
a.push(new _5e(_, this.getLineContent(j), O));
|
|
79684
79683
|
}
|
|
79685
79684
|
if (w < A) {
|
|
79686
|
-
const
|
|
79687
|
-
a.push(new SMt(
|
|
79685
|
+
const L = g + w;
|
|
79686
|
+
a.push(new SMt(L + 1, m));
|
|
79688
79687
|
}
|
|
79689
79688
|
if (w < f) {
|
|
79690
|
-
const
|
|
79689
|
+
const L = new pu(T), _ = g + w, j = f - w, O = r - l - j + _ + 1, R = [], V = [];
|
|
79691
79690
|
for (let q = 0; q < j; q++) {
|
|
79692
79691
|
const se = O + q;
|
|
79693
|
-
V[q] = this.getLineContent(se),
|
|
79692
|
+
V[q] = this.getLineContent(se), L.takeWhile((ue) => ue.lineNumber < se), R[q] = L.takeWhile((ue) => ue.lineNumber === se);
|
|
79694
79693
|
}
|
|
79695
79694
|
a.push(new LMt(_ + 1, g + f, V, R));
|
|
79696
79695
|
}
|
|
@@ -80267,14 +80266,14 @@ function d6t(o, e, t, n, i, r, s, a) {
|
|
|
80267
80266
|
for (; N < D; ) {
|
|
80268
80267
|
let z = N < 0 ? 0 : u[N], T = N < 0 ? 0 : d[N];
|
|
80269
80268
|
w > z && (z = w, T = v);
|
|
80270
|
-
let
|
|
80269
|
+
let S = 0, L = 0, _ = 0, j = 0;
|
|
80271
80270
|
if (T <= C) {
|
|
80272
80271
|
let R = T, V = z === 0 ? 0 : t.charCodeAt(z - 1), q = z === 0 ? 0 : o.get(V), se = !0;
|
|
80273
80272
|
for (let ue = z; ue < l; ue++) {
|
|
80274
80273
|
const me = ue, ce = t.charCodeAt(ue);
|
|
80275
80274
|
let oe, pe;
|
|
80276
|
-
if (Pi(ce) ? (ue++, oe = 0, pe = 2) : (oe = o.get(ce), pe = gf(ce, R, n, r)), me > w && uT(V, q, ce, oe, p) && (
|
|
80277
|
-
me > w ? (_ = me, j = R - pe) : (_ = ue + 1, j = R), R -
|
|
80275
|
+
if (Pi(ce) ? (ue++, oe = 0, pe = 2) : (oe = o.get(ce), pe = gf(ce, R, n, r)), me > w && uT(V, q, ce, oe, p) && (S = me, L = R), R += pe, R > C) {
|
|
80276
|
+
me > w ? (_ = me, j = R - pe) : (_ = ue + 1, j = R), R - L > g && (S = 0), se = !1;
|
|
80278
80277
|
break;
|
|
80279
80278
|
}
|
|
80280
80279
|
V = ce, q = oe;
|
|
@@ -80284,7 +80283,7 @@ function d6t(o, e, t, n, i, r, s, a) {
|
|
|
80284
80283
|
break;
|
|
80285
80284
|
}
|
|
80286
80285
|
}
|
|
80287
|
-
if (
|
|
80286
|
+
if (S === 0) {
|
|
80288
80287
|
let R = T, V = t.charCodeAt(z), q = o.get(V), se = !1;
|
|
80289
80288
|
for (let ue = z - 1; ue >= w; ue--) {
|
|
80290
80289
|
const me = ue + 1, ce = t.charCodeAt(ue);
|
|
@@ -80297,18 +80296,18 @@ function d6t(o, e, t, n, i, r, s, a) {
|
|
|
80297
80296
|
if (_ === 0 && (_ = me, j = R), R <= C - g)
|
|
80298
80297
|
break;
|
|
80299
80298
|
if (uT(ce, oe, V, q, p)) {
|
|
80300
|
-
|
|
80299
|
+
S = me, L = R;
|
|
80301
80300
|
break;
|
|
80302
80301
|
}
|
|
80303
80302
|
}
|
|
80304
80303
|
R -= pe, V = ce, q = oe;
|
|
80305
80304
|
}
|
|
80306
|
-
if (
|
|
80307
|
-
const ue = g - (j -
|
|
80305
|
+
if (S !== 0) {
|
|
80306
|
+
const ue = g - (j - L);
|
|
80308
80307
|
if (ue <= n) {
|
|
80309
80308
|
const me = t.charCodeAt(_);
|
|
80310
80309
|
let ce;
|
|
80311
|
-
Pi(me) ? ce = 2 : ce = gf(me, j, n, r), ue - ce < 0 && (
|
|
80310
|
+
Pi(me) ? ce = 2 : ce = gf(me, j, n, r), ue - ce < 0 && (S = 0);
|
|
80312
80311
|
}
|
|
80313
80312
|
}
|
|
80314
80313
|
if (se) {
|
|
@@ -80316,11 +80315,11 @@ function d6t(o, e, t, n, i, r, s, a) {
|
|
|
80316
80315
|
continue;
|
|
80317
80316
|
}
|
|
80318
80317
|
}
|
|
80319
|
-
if (
|
|
80318
|
+
if (S === 0 && (S = _, L = j), S <= w) {
|
|
80320
80319
|
const R = t.charCodeAt(w);
|
|
80321
|
-
Pi(R) ? (
|
|
80320
|
+
Pi(R) ? (S = w + 2, L = v + 2) : (S = w + 1, L = v + gf(R, v, n, r));
|
|
80322
80321
|
}
|
|
80323
|
-
for (w =
|
|
80322
|
+
for (w = S, m[f] = S, v = L, A[f] = L, f++, C = L + g; N < 0 || N < D && d[N] < L; )
|
|
80324
80323
|
N++;
|
|
80325
80324
|
let O = Math.abs(d[N] - C);
|
|
80326
80325
|
for (; N + 1 < D; ) {
|
|
@@ -80335,18 +80334,18 @@ function d6t(o, e, t, n, i, r, s, a) {
|
|
|
80335
80334
|
function h6t(o, e, t, n, i, r, s, a) {
|
|
80336
80335
|
const l = Ul.applyInjectedText(e, t);
|
|
80337
80336
|
let p, u;
|
|
80338
|
-
if (t && t.length > 0 ? (p = t.map((
|
|
80337
|
+
if (t && t.length > 0 ? (p = t.map((L) => L.options), u = t.map((L) => L.column - 1)) : (p = null, u = null), i === -1)
|
|
80339
80338
|
return p ? new cf(u, p, [l.length], [], 0) : null;
|
|
80340
80339
|
const d = l.length;
|
|
80341
80340
|
if (d <= 1)
|
|
80342
80341
|
return p ? new cf(u, p, [l.length], [], 0) : null;
|
|
80343
80342
|
const h = a === "keepAll", g = tze(l, n, i, r, s), m = i - g, A = [], f = [];
|
|
80344
|
-
let w = 0, v = 0, C = 0, D = i, N = l.charCodeAt(0), z = o.get(N), T = gf(N, 0, n, r),
|
|
80345
|
-
Pi(N) && (T += 1, N = l.charCodeAt(1), z = o.get(N),
|
|
80346
|
-
for (let
|
|
80347
|
-
const _ =
|
|
80343
|
+
let w = 0, v = 0, C = 0, D = i, N = l.charCodeAt(0), z = o.get(N), T = gf(N, 0, n, r), S = 1;
|
|
80344
|
+
Pi(N) && (T += 1, N = l.charCodeAt(1), z = o.get(N), S++);
|
|
80345
|
+
for (let L = S; L < d; L++) {
|
|
80346
|
+
const _ = L, j = l.charCodeAt(L);
|
|
80348
80347
|
let O, R;
|
|
80349
|
-
Pi(j) ? (
|
|
80348
|
+
Pi(j) ? (L++, O = 0, R = 2) : (O = o.get(j), R = gf(j, T, n, r)), uT(N, z, j, O, h) && (v = _, C = T), T += R, T > D && ((v === 0 || T - C > m) && (v = _, C = T - R), A[w] = v, f[w] = C, w++, D = C + m, v = 0), N = j, z = O;
|
|
80350
80349
|
}
|
|
80351
80350
|
return w === 0 && (!t || t.length === 0) ? null : (A[w] = d, f[w] = T, new cf(u, p, A, f, g));
|
|
80352
80351
|
}
|
|
@@ -82554,8 +82553,8 @@ class J6t {
|
|
|
82554
82553
|
if (w < N) {
|
|
82555
82554
|
const z = u[m];
|
|
82556
82555
|
if (z.inlineClassName) {
|
|
82557
|
-
const T = A > 0 ? l.wrappedTextIndentLength : 0,
|
|
82558
|
-
|
|
82556
|
+
const T = A > 0 ? l.wrappedTextIndentLength : 0, S = T + Math.max(D - w, 0), L = T + Math.min(N - w, v - w);
|
|
82557
|
+
S !== L && f.push(new yft(S, L, z.inlineClassName, z.inlineClassNameAffectsLetterSpacing));
|
|
82559
82558
|
}
|
|
82560
82559
|
}
|
|
82561
82560
|
if (N <= v)
|
|
@@ -87376,11 +87375,11 @@ function Ize(o, e, t, n, i, r, s = D8t.default) {
|
|
|
87376
87375
|
h <= C && (N = N8t(o, e, d, t, n, i, h, l, r, fp[p - 1][u - 1] === 0, g));
|
|
87377
87376
|
let T = 0;
|
|
87378
87377
|
N !== Number.MAX_SAFE_INTEGER && (z = !0, T = N + Ch[p - 1][u - 1]);
|
|
87379
|
-
const
|
|
87380
|
-
if (_ && (!
|
|
87378
|
+
const S = h > v, L = S ? Ch[p][u - 1] + (fp[p][u - 1] > 0 ? -5 : 0) : 0, _ = h > v + 1 && fp[p][u - 1] > 0, j = _ ? Ch[p][u - 2] + (fp[p][u - 2] > 0 ? -5 : 0) : 0;
|
|
87379
|
+
if (_ && (!S || j >= L) && (!z || j >= T))
|
|
87381
87380
|
Ch[p][u] = j, G3[p][u] = 3, fp[p][u] = 0;
|
|
87382
|
-
else if (
|
|
87383
|
-
Ch[p][u] =
|
|
87381
|
+
else if (S && (!z || L >= T))
|
|
87382
|
+
Ch[p][u] = L, G3[p][u] = 2, fp[p][u] = 0;
|
|
87384
87383
|
else if (z)
|
|
87385
87384
|
Ch[p][u] = T, G3[p][u] = 1, fp[p][u] = fp[p - 1][u - 1] + 1;
|
|
87386
87385
|
else
|
|
@@ -87671,11 +87670,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
87671
87670
|
}
|
|
87672
87671
|
return re;
|
|
87673
87672
|
}
|
|
87674
|
-
var T = {},
|
|
87673
|
+
var T = {}, S = /^[^:]+:\/*[^/]*$/, L = /^([^:]+:)[\s\S]*$/, _ = /^([^:]+:\/*[^/]*)[\s\S]*$/;
|
|
87675
87674
|
function j(fe, ae) {
|
|
87676
|
-
T[" " + fe] || (
|
|
87675
|
+
T[" " + fe] || (S.test(fe) ? T[" " + fe] = fe + "/" : T[" " + fe] = q(fe, "/", !0)), fe = T[" " + fe];
|
|
87677
87676
|
var re = fe.indexOf(":") === -1;
|
|
87678
|
-
return ae.substring(0, 2) === "//" ? re ? ae : fe.replace(
|
|
87677
|
+
return ae.substring(0, 2) === "//" ? re ? ae : fe.replace(L, "$1") + ae : ae.charAt(0) === "/" ? re ? ae : fe.replace(_, "$1") + ae : fe + ae;
|
|
87679
87678
|
}
|
|
87680
87679
|
var O = {
|
|
87681
87680
|
exec: function() {
|
|
@@ -92711,8 +92710,8 @@ class $a {
|
|
|
92711
92710
|
if (z.dragStartDisposable.dispose(), z.checkedDisposable.dispose(), z.row) {
|
|
92712
92711
|
let T = a.get(z.templateId);
|
|
92713
92712
|
T || (T = [], a.set(z.templateId, T));
|
|
92714
|
-
const
|
|
92715
|
-
|
|
92713
|
+
const S = this.renderers.get(z.templateId);
|
|
92714
|
+
S && S.disposeElement && S.disposeElement(z.element, N, z.row.templateData, z.size), T.unshift(z.row);
|
|
92716
92715
|
}
|
|
92717
92716
|
z.row = null, z.stale = !0;
|
|
92718
92717
|
}
|
|
@@ -92743,8 +92742,8 @@ class $a {
|
|
|
92743
92742
|
const v = u.map((N) => OT(N, g)), D = [{ start: e, end: e + n.length }, ...v].map((N) => wo.intersect(m, N)).reverse();
|
|
92744
92743
|
for (const N of D)
|
|
92745
92744
|
for (let z = N.end - 1; z >= N.start; z--) {
|
|
92746
|
-
const T = this.items[z],
|
|
92747
|
-
this.insertItemInDOM(z,
|
|
92745
|
+
const T = this.items[z], L = a.get(T.templateId)?.pop();
|
|
92746
|
+
this.insertItemInDOM(z, L);
|
|
92748
92747
|
}
|
|
92749
92748
|
for (const N of a.values())
|
|
92750
92749
|
for (const z of N)
|
|
@@ -99853,21 +99852,21 @@ class hCt extends he {
|
|
|
99853
99852
|
}
|
|
99854
99853
|
let h, g;
|
|
99855
99854
|
if (!l) {
|
|
99856
|
-
const m = Ar(i, -1), A = Ar(i + 1, this.viewItems.length), f = m.reduce((
|
|
99855
|
+
const m = Ar(i, -1), A = Ar(i + 1, this.viewItems.length), f = m.reduce((S, L) => S + (this.viewItems[L].minimumSize - p[L]), 0), w = m.reduce((S, L) => S + (this.viewItems[L].viewMaximumSize - p[L]), 0), v = A.length === 0 ? Number.POSITIVE_INFINITY : A.reduce((S, L) => S + (p[L] - this.viewItems[L].minimumSize), 0), C = A.length === 0 ? Number.NEGATIVE_INFINITY : A.reduce((S, L) => S + (p[L] - this.viewItems[L].viewMaximumSize), 0), D = Math.max(f, C), N = Math.min(v, w), z = this.findFirstSnapIndex(m), T = this.findFirstSnapIndex(A);
|
|
99857
99856
|
if (typeof z == "number") {
|
|
99858
|
-
const
|
|
99857
|
+
const S = this.viewItems[z], L = Math.floor(S.viewMinimumSize / 2);
|
|
99859
99858
|
h = {
|
|
99860
99859
|
index: z,
|
|
99861
|
-
limitDelta:
|
|
99862
|
-
size:
|
|
99860
|
+
limitDelta: S.visible ? D - L : D + L,
|
|
99861
|
+
size: S.size
|
|
99863
99862
|
};
|
|
99864
99863
|
}
|
|
99865
99864
|
if (typeof T == "number") {
|
|
99866
|
-
const
|
|
99865
|
+
const S = this.viewItems[T], L = Math.floor(S.viewMinimumSize / 2);
|
|
99867
99866
|
g = {
|
|
99868
99867
|
index: T,
|
|
99869
|
-
limitDelta:
|
|
99870
|
-
size:
|
|
99868
|
+
limitDelta: S.visible ? N + L : N - L,
|
|
99869
|
+
size: S.size
|
|
99871
99870
|
};
|
|
99872
99871
|
}
|
|
99873
99872
|
}
|
|
@@ -99957,17 +99956,17 @@ class hCt extends he {
|
|
|
99957
99956
|
typeof t == "number" ? p = t : (t.type === "auto" && (this.areViewsDistributed() ? t = { type: "distribute" } : t = { type: "split", index: t.index }), t.type === "split" ? p = this.getViewSize(t.index) / 2 : t.type === "invisible" ? p = { cachedVisibleSize: t.cachedVisibleSize } : p = e.minimumSize);
|
|
99958
99957
|
const u = this.orientation === 0 ? new uCt(r, e, p, l) : new dCt(r, e, p, l);
|
|
99959
99958
|
if (this.viewItems.splice(n, 0, u), this.viewItems.length > 1) {
|
|
99960
|
-
const h = { orthogonalStartSash: this.orthogonalStartSash, orthogonalEndSash: this.orthogonalEndSash }, g = this.orientation === 0 ? new ns(this.sashContainer, { getHorizontalSashTop: (
|
|
99959
|
+
const h = { orthogonalStartSash: this.orthogonalStartSash, orthogonalEndSash: this.orthogonalEndSash }, g = this.orientation === 0 ? new ns(this.sashContainer, { getHorizontalSashTop: (S) => this.getSashPosition(S), getHorizontalSashWidth: this.getSashOrthogonalSize }, {
|
|
99961
99960
|
...h,
|
|
99962
99961
|
orientation: 1
|
|
99963
99962
|
/* Orientation.HORIZONTAL */
|
|
99964
|
-
}) : new ns(this.sashContainer, { getVerticalSashLeft: (
|
|
99963
|
+
}) : new ns(this.sashContainer, { getVerticalSashLeft: (S) => this.getSashPosition(S), getVerticalSashHeight: this.getSashOrthogonalSize }, {
|
|
99965
99964
|
...h,
|
|
99966
99965
|
orientation: 0
|
|
99967
99966
|
/* Orientation.VERTICAL */
|
|
99968
|
-
}), m = this.orientation === 0 ? (
|
|
99969
|
-
const
|
|
99970
|
-
typeof j == "number" && !this.viewItems[j].visible || typeof O == "number" && !this.viewItems[O].visible || this._onDidSashReset.fire(
|
|
99967
|
+
}), m = this.orientation === 0 ? (S) => ({ sash: g, start: S.startY, current: S.currentY, alt: S.altKey }) : (S) => ({ sash: g, start: S.startX, current: S.currentX, alt: S.altKey }), f = we.map(g.onDidStart, m)(this.onSashStart, this), v = we.map(g.onDidChange, m)(this.onSashChange, this), D = we.map(g.onDidEnd, () => this.sashItems.findIndex((S) => S.sash === g))(this.onSashEnd, this), N = g.onDidReset(() => {
|
|
99968
|
+
const S = this.sashItems.findIndex((R) => R.sash === g), L = Ar(S, -1), _ = Ar(S + 1, this.viewItems.length), j = this.findFirstSnapIndex(L), O = this.findFirstSnapIndex(_);
|
|
99969
|
+
typeof j == "number" && !this.viewItems[j].visible || typeof O == "number" && !this.viewItems[O].visible || this._onDidSashReset.fire(S);
|
|
99971
99970
|
}), z = Rc(f, v, D, N, g), T = { sash: g, disposable: z };
|
|
99972
99971
|
this.sashItems.splice(n - 1, 0, T);
|
|
99973
99972
|
}
|
|
@@ -99992,26 +99991,26 @@ class hCt extends he {
|
|
|
99992
99991
|
if (i)
|
|
99993
99992
|
for (const T of i)
|
|
99994
99993
|
M3(u, T), M3(d, T);
|
|
99995
|
-
const h = u.map((T) => this.viewItems[T]), g = u.map((T) => n[T]), m = d.map((T) => this.viewItems[T]), A = d.map((T) => n[T]), f = u.reduce((T,
|
|
99994
|
+
const h = u.map((T) => this.viewItems[T]), g = u.map((T) => n[T]), m = d.map((T) => this.viewItems[T]), A = d.map((T) => n[T]), f = u.reduce((T, S) => T + (this.viewItems[S].minimumSize - n[S]), 0), w = u.reduce((T, S) => T + (this.viewItems[S].maximumSize - n[S]), 0), v = d.length === 0 ? Number.POSITIVE_INFINITY : d.reduce((T, S) => T + (n[S] - this.viewItems[S].minimumSize), 0), C = d.length === 0 ? Number.NEGATIVE_INFINITY : d.reduce((T, S) => T + (n[S] - this.viewItems[S].maximumSize), 0), D = Math.max(f, C, s), N = Math.min(v, w, a);
|
|
99996
99995
|
let z = !1;
|
|
99997
99996
|
if (l) {
|
|
99998
|
-
const T = this.viewItems[l.index],
|
|
99999
|
-
z =
|
|
99997
|
+
const T = this.viewItems[l.index], S = t >= l.limitDelta;
|
|
99998
|
+
z = S !== T.visible, T.setVisible(S, l.size);
|
|
100000
99999
|
}
|
|
100001
100000
|
if (!z && p) {
|
|
100002
|
-
const T = this.viewItems[p.index],
|
|
100003
|
-
z =
|
|
100001
|
+
const T = this.viewItems[p.index], S = t < p.limitDelta;
|
|
100002
|
+
z = S !== T.visible, T.setVisible(S, p.size);
|
|
100004
100003
|
}
|
|
100005
100004
|
if (z)
|
|
100006
100005
|
return this.resize(e, t, n, i, r, s, a);
|
|
100007
100006
|
t = fr(t, D, N);
|
|
100008
|
-
for (let T = 0,
|
|
100009
|
-
const
|
|
100010
|
-
|
|
100007
|
+
for (let T = 0, S = t; T < h.length; T++) {
|
|
100008
|
+
const L = h[T], _ = fr(g[T] + S, L.minimumSize, L.maximumSize), j = _ - g[T];
|
|
100009
|
+
S -= j, L.size = _;
|
|
100011
100010
|
}
|
|
100012
|
-
for (let T = 0,
|
|
100013
|
-
const
|
|
100014
|
-
|
|
100011
|
+
for (let T = 0, S = t; T < m.length; T++) {
|
|
100012
|
+
const L = m[T], _ = fr(A[T] - S, L.minimumSize, L.maximumSize), j = _ - A[T];
|
|
100013
|
+
S += j, L.size = _;
|
|
100015
100014
|
}
|
|
100016
100015
|
return t;
|
|
100017
100016
|
}
|
|
@@ -104809,10 +104808,10 @@ let cz = class extends he {
|
|
|
104809
104808
|
z.label = b("custom", "Custom"), this._register(z.onDidClick((V) => {
|
|
104810
104809
|
this.onDidCustomEmitter.fire();
|
|
104811
104810
|
}));
|
|
104812
|
-
const T = Oe(d, jr(`#${this.idPrefix}message.quick-input-message`)),
|
|
104813
|
-
|
|
104814
|
-
const
|
|
104815
|
-
|
|
104811
|
+
const T = Oe(d, jr(`#${this.idPrefix}message.quick-input-message`)), S = this._register(new sO(t, this.styles.progressBar));
|
|
104812
|
+
S.getContainer().classList.add("quick-input-progress");
|
|
104813
|
+
const L = Oe(t, jr(".quick-input-html-widget"));
|
|
104814
|
+
L.tabIndex = -1;
|
|
104816
104815
|
const _ = Oe(t, jr(".quick-input-description")), j = this.idPrefix + "list", O = this._register(this.instantiationService.createInstance(Ly, t, this.options.hoverDelegate, this.options.linkOpenerDelegate, j));
|
|
104817
104816
|
g.setAttribute("aria-controls", j), this._register(O.onDidChangeFocus(() => {
|
|
104818
104817
|
g.setAttribute("aria-activedescendant", O.getActiveDescendant() ?? "");
|
|
@@ -104843,7 +104842,7 @@ let cz = class extends he {
|
|
|
104843
104842
|
})), this._register(le(t, De.FOCUS, (V) => {
|
|
104844
104843
|
g.setFocus();
|
|
104845
104844
|
})), this._register(qi(t, De.KEY_DOWN, (V) => {
|
|
104846
|
-
if (!Vi(V.target,
|
|
104845
|
+
if (!Vi(V.target, L))
|
|
104847
104846
|
switch (V.keyCode) {
|
|
104848
104847
|
case 3:
|
|
104849
104848
|
zt.stop(V, !0), this.enabled && this.onDidAcceptEmitter.fire();
|
|
@@ -104879,7 +104878,7 @@ let cz = class extends he {
|
|
|
104879
104878
|
title: s,
|
|
104880
104879
|
description1: _,
|
|
104881
104880
|
description2: u,
|
|
104882
|
-
widget:
|
|
104881
|
+
widget: L,
|
|
104883
104882
|
rightActionBar: a,
|
|
104884
104883
|
inlineActionBar: v,
|
|
104885
104884
|
checkAll: p,
|
|
@@ -104896,7 +104895,7 @@ let cz = class extends he {
|
|
|
104896
104895
|
customButtonContainer: N,
|
|
104897
104896
|
customButton: z,
|
|
104898
104897
|
list: O,
|
|
104899
|
-
progressBar:
|
|
104898
|
+
progressBar: S,
|
|
104900
104899
|
onDidAccept: this.onDidAcceptEmitter.event,
|
|
104901
104900
|
onDidCustom: this.onDidCustomEmitter.event,
|
|
104902
104901
|
onDidTriggerButton: this.onDidTriggerButtonEmitter.event,
|
|
@@ -108985,33 +108984,33 @@ let zz = class extends he {
|
|
|
108985
108984
|
N.style.width = g + "px", N.style.minWidth = g + "px", N.style.paddingRight = "10px", N.className = "diff-review-line-number" + A, e.modifiedLineNumber !== void 0 ? N.appendChild(document.createTextNode(String(e.modifiedLineNumber))) : N.innerText = " ", C.appendChild(N);
|
|
108986
108985
|
const z = document.createElement("span");
|
|
108987
108986
|
if (z.className = f, w) {
|
|
108988
|
-
const
|
|
108989
|
-
|
|
108987
|
+
const L = document.createElement("span");
|
|
108988
|
+
L.className = St.asClassName(w), L.innerText = " ", z.appendChild(L);
|
|
108990
108989
|
} else
|
|
108991
108990
|
z.innerText = " ";
|
|
108992
108991
|
C.appendChild(z);
|
|
108993
108992
|
let T;
|
|
108994
108993
|
if (e.modifiedLineNumber !== void 0) {
|
|
108995
|
-
let
|
|
108996
|
-
g1._ttPolicy && (
|
|
108994
|
+
let L = this._getLineHtml(l, a, p.tabSize, e.modifiedLineNumber, this._languageService.languageIdCodec);
|
|
108995
|
+
g1._ttPolicy && (L = g1._ttPolicy.createHTML(L)), C.insertAdjacentHTML("beforeend", L), T = l.getLineContent(e.modifiedLineNumber);
|
|
108997
108996
|
} else {
|
|
108998
|
-
let
|
|
108999
|
-
g1._ttPolicy && (
|
|
108997
|
+
let L = this._getLineHtml(r, i, s.tabSize, e.originalLineNumber, this._languageService.languageIdCodec);
|
|
108998
|
+
g1._ttPolicy && (L = g1._ttPolicy.createHTML(L)), C.insertAdjacentHTML("beforeend", L), T = r.getLineContent(e.originalLineNumber);
|
|
109000
108999
|
}
|
|
109001
109000
|
T.length === 0 && (T = b("blankLine", "blank"));
|
|
109002
|
-
let
|
|
109001
|
+
let S = "";
|
|
109003
109002
|
switch (e.type) {
|
|
109004
109003
|
case Xo.Unchanged:
|
|
109005
|
-
e.originalLineNumber === e.modifiedLineNumber ?
|
|
109004
|
+
e.originalLineNumber === e.modifiedLineNumber ? S = b({ key: "unchangedLine", comment: ["The placeholders are contents of the line and should not be translated."] }, "{0} unchanged line {1}", T, e.originalLineNumber) : S = b("equalLine", "{0} original line {1} modified line {2}", T, e.originalLineNumber, e.modifiedLineNumber);
|
|
109006
109005
|
break;
|
|
109007
109006
|
case Xo.Added:
|
|
109008
|
-
|
|
109007
|
+
S = b("insertLine", "+ {0} modified line {1}", T, e.modifiedLineNumber);
|
|
109009
109008
|
break;
|
|
109010
109009
|
case Xo.Deleted:
|
|
109011
|
-
|
|
109010
|
+
S = b("deleteLine", "- {0} original line {1}", T, e.originalLineNumber);
|
|
109012
109011
|
break;
|
|
109013
109012
|
}
|
|
109014
|
-
return v.setAttribute("aria-label",
|
|
109013
|
+
return v.setAttribute("aria-label", S), v;
|
|
109015
109014
|
}
|
|
109016
109015
|
_getLineHtml(e, t, n, i, r) {
|
|
109017
109016
|
const s = e.getLineContent(i), a = t.get(
|
|
@@ -109781,19 +109780,19 @@ let jz = class extends he {
|
|
|
109781
109780
|
const w = this._register(new Pe());
|
|
109782
109781
|
this.viewZones = Nm(this, (C, D) => {
|
|
109783
109782
|
w.clear();
|
|
109784
|
-
const N = m.read(C) || [], z = [], T = [],
|
|
109785
|
-
|
|
109783
|
+
const N = m.read(C) || [], z = [], T = [], S = this._modifiedTopPadding.read(C);
|
|
109784
|
+
S > 0 && T.push({
|
|
109786
109785
|
afterLineNumber: 0,
|
|
109787
109786
|
domNode: document.createElement("div"),
|
|
109788
|
-
heightInPx:
|
|
109787
|
+
heightInPx: S,
|
|
109789
109788
|
showInHiddenAreas: !0,
|
|
109790
109789
|
suppressMouseDown: !0
|
|
109791
109790
|
});
|
|
109792
|
-
const
|
|
109793
|
-
|
|
109791
|
+
const L = this._originalTopPadding.read(C);
|
|
109792
|
+
L > 0 && z.push({
|
|
109794
109793
|
afterLineNumber: 0,
|
|
109795
109794
|
domNode: document.createElement("div"),
|
|
109796
|
-
heightInPx:
|
|
109795
|
+
heightInPx: L,
|
|
109797
109796
|
showInHiddenAreas: !0,
|
|
109798
109797
|
suppressMouseDown: !0
|
|
109799
109798
|
});
|
|
@@ -110003,15 +110002,15 @@ function o8e(o, e, t, n, i, r) {
|
|
|
110003
110002
|
f = !1;
|
|
110004
110003
|
else if (!z && (D === v || N === w))
|
|
110005
110004
|
return;
|
|
110006
|
-
const T = new st(v, D),
|
|
110007
|
-
if (T.isEmpty &&
|
|
110005
|
+
const T = new st(v, D), S = new st(w, N);
|
|
110006
|
+
if (T.isEmpty && S.isEmpty)
|
|
110008
110007
|
return;
|
|
110009
|
-
const
|
|
110008
|
+
const L = s.takeWhile((j) => j.lineNumber < D)?.reduce((j, O) => j + O.heightInPx, 0) ?? 0, _ = a.takeWhile((j) => j.lineNumber < N)?.reduce((j, O) => j + O.heightInPx, 0) ?? 0;
|
|
110010
110009
|
u.push({
|
|
110011
110010
|
originalRange: T,
|
|
110012
|
-
modifiedRange:
|
|
110013
|
-
originalHeightInPx: T.length * l +
|
|
110014
|
-
modifiedHeightInPx:
|
|
110011
|
+
modifiedRange: S,
|
|
110012
|
+
originalHeightInPx: T.length * l + L,
|
|
110013
|
+
modifiedHeightInPx: S.length * p + _,
|
|
110015
110014
|
diff: m.lineRangeMapping
|
|
110016
110015
|
}), v = D, w = N;
|
|
110017
110016
|
};
|
|
@@ -110075,21 +110074,21 @@ class x1 extends he {
|
|
|
110075
110074
|
}
|
|
110076
110075
|
this._modifiedViewZonesChangedSignal.read(u), this._originalViewZonesChangedSignal.read(u);
|
|
110077
110076
|
const f = g.map((T) => {
|
|
110078
|
-
function
|
|
110077
|
+
function S(ue, me) {
|
|
110079
110078
|
const ce = me.getTopForLineNumber(ue.startLineNumber, !0), oe = me.getTopForLineNumber(ue.endLineNumberExclusive, !0);
|
|
110080
110079
|
return (ce + oe) / 2;
|
|
110081
110080
|
}
|
|
110082
|
-
const
|
|
110083
|
-
return { range: new mt(q, se), from: R, to: V, fromWithoutScroll:
|
|
110081
|
+
const L = S(T.lineRangeMapping.original, this._editors.original), _ = this._originalScrollTop.read(u), j = S(T.lineRangeMapping.modified, this._editors.modified), O = this._modifiedScrollTop.read(u), R = L - _, V = j - O, q = Math.min(L, j), se = Math.max(L, j);
|
|
110082
|
+
return { range: new mt(q, se), from: R, to: V, fromWithoutScroll: L, toWithoutScroll: j, move: T };
|
|
110084
110083
|
});
|
|
110085
110084
|
f.sort(kht(Ba((T) => T.fromWithoutScroll > T.toWithoutScroll, Oht), Ba((T) => T.fromWithoutScroll > T.toWithoutScroll ? T.fromWithoutScroll : -T.toWithoutScroll, Dd)));
|
|
110086
110085
|
const w = PO.compute(f.map((T) => T.range)), v = 10, C = m.verticalScrollbarWidth, D = (w.getTrackCount() - 1) * 10 + v * 2, N = C + D + (A.contentLeft - x1.movedCodeBlockPadding);
|
|
110087
110086
|
let z = 0;
|
|
110088
110087
|
for (const T of f) {
|
|
110089
|
-
const
|
|
110088
|
+
const S = w.getTrack(z), L = C + v + S * 10, _ = 15, j = 15, O = N, R = A.glyphMarginWidth + A.lineNumbersWidth, V = 18, q = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
110090
110089
|
q.classList.add("arrow-rectangle"), q.setAttribute("x", `${O - R}`), q.setAttribute("y", `${T.to - V / 2}`), q.setAttribute("width", `${R}`), q.setAttribute("height", `${V}`), this._element.appendChild(q);
|
|
110091
110090
|
const se = document.createElementNS("http://www.w3.org/2000/svg", "g"), ue = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
110092
|
-
ue.setAttribute("d", `M 0 ${T.from} L ${
|
|
110091
|
+
ue.setAttribute("d", `M 0 ${T.from} L ${L} ${T.from} L ${L} ${T.to} L ${O - j} ${T.to}`), ue.setAttribute("fill", "none"), se.appendChild(ue);
|
|
110093
110092
|
const me = document.createElementNS("http://www.w3.org/2000/svg", "polygon");
|
|
110094
110093
|
me.classList.add("arrow"), d.add(en((ce) => {
|
|
110095
110094
|
ue.classList.toggle("currentMove", T.move === h.activeMovedText.read(ce)), me.classList.toggle("currentMove", T.move === h.activeMovedText.read(ce));
|
|
@@ -111099,8 +111098,8 @@ class u8e extends SO {
|
|
|
111099
111098
|
/* EditorOption.lineHeight */
|
|
111100
111099
|
)), z = Math.max(0, Math.min(m - N, this._unchangedRegion.getMaxVisibleLineCountBottom())), T = this._unchangedRegionRange.endLineNumberExclusive > u.getModel().getLineCount() ? u.getContentHeight() : u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);
|
|
111101
111100
|
this._unchangedRegion.visibleLineCountBottom.set(z, void 0);
|
|
111102
|
-
const
|
|
111103
|
-
u.setScrollTop(u.getScrollTop() + (
|
|
111101
|
+
const S = this._unchangedRegionRange.endLineNumberExclusive > u.getModel().getLineCount() ? u.getContentHeight() : u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);
|
|
111102
|
+
u.setScrollTop(u.getScrollTop() + (S - T));
|
|
111104
111103
|
}), w = le(A, "mouseup", (v) => {
|
|
111105
111104
|
if (this._unchangedRegion.isDragged.set(void 0, void 0), !g) {
|
|
111106
111105
|
const C = u.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);
|
|
@@ -111183,23 +111182,23 @@ let jy = class extends he {
|
|
|
111183
111182
|
g.add(en((N) => {
|
|
111184
111183
|
w.read(N), v.read(N), C.read(N), D.read(N);
|
|
111185
111184
|
const z = p.read(N), T = m?.diff.read(N)?.mappings;
|
|
111186
|
-
function
|
|
111185
|
+
function S(j, O, R) {
|
|
111187
111186
|
const V = R._getViewModel();
|
|
111188
111187
|
return V ? j.filter((q) => q.length > 0).map((q) => {
|
|
111189
111188
|
const se = V.coordinatesConverter.convertModelPositionToViewPosition(new ne(q.startLineNumber, 1)), ue = V.coordinatesConverter.convertModelPositionToViewPosition(new ne(q.endLineNumberExclusive, 1)), me = ue.lineNumber - se.lineNumber;
|
|
111190
111189
|
return new _Te(se.lineNumber, ue.lineNumber, me, O.toString());
|
|
111191
111190
|
}) : [];
|
|
111192
111191
|
}
|
|
111193
|
-
const
|
|
111194
|
-
A?.setZones(
|
|
111192
|
+
const L = S((T || []).map((j) => j.lineRangeMapping.original), z.removeColor, this._editors.original), _ = S((T || []).map((j) => j.lineRangeMapping.modified), z.insertColor, this._editors.modified);
|
|
111193
|
+
A?.setZones(L), f?.setZones(_);
|
|
111195
111194
|
})), g.add(en((N) => {
|
|
111196
|
-
const z = this._rootHeight.read(N), T = this._rootWidth.read(N),
|
|
111197
|
-
if (
|
|
111198
|
-
const
|
|
111195
|
+
const z = this._rootHeight.read(N), T = this._rootWidth.read(N), S = this._modifiedEditorLayoutInfo.read(N);
|
|
111196
|
+
if (S) {
|
|
111197
|
+
const L = pl.ENTIRE_DIFF_OVERVIEW_WIDTH - 2 * pl.ONE_OVERVIEW_WIDTH;
|
|
111199
111198
|
A.setLayout({
|
|
111200
111199
|
top: 0,
|
|
111201
111200
|
height: z,
|
|
111202
|
-
right:
|
|
111201
|
+
right: L + pl.ONE_OVERVIEW_WIDTH,
|
|
111203
111202
|
width: pl.ONE_OVERVIEW_WIDTH
|
|
111204
111203
|
}), f.setLayout({
|
|
111205
111204
|
top: 0,
|
|
@@ -111210,7 +111209,7 @@ let jy = class extends he {
|
|
|
111210
111209
|
const _ = this._editors.modifiedScrollTop.read(N), j = this._editors.modifiedScrollHeight.read(N), O = this._editors.modified.getOption(
|
|
111211
111210
|
104
|
|
111212
111211
|
/* EditorOption.scrollbar */
|
|
111213
|
-
), R = new H2(O.verticalHasArrows ? O.arrowSize : 0, O.verticalScrollbarSize, 0,
|
|
111212
|
+
), R = new H2(O.verticalHasArrows ? O.arrowSize : 0, O.verticalScrollbarSize, 0, S.height, j, _);
|
|
111214
111213
|
u.setTop(R.getSliderPosition()), u.setHeight(R.getSliderSize());
|
|
111215
111214
|
} else
|
|
111216
111215
|
u.setTop(0), u.setHeight(0);
|
|
@@ -111622,17 +111621,17 @@ let cw = class extends HO {
|
|
|
111622
111621
|
]), this._diffModelSrc = this._register(Qze(this, void 0)), this._diffModel = ct(this, (D) => this._diffModelSrc.read(D)?.object), this.onDidChangeModel = we.fromObservableLight(this._diffModel), this._contextKeyService = this._register(this._parentContextKeyService.createScoped(this._domElement)), this._instantiationService = this._register(this._parentInstantiationService.createChild(new kb([tn, this._contextKeyService]))), this._boundarySashes = qt(this, void 0), this._accessibleDiffViewerShouldBeVisible = qt(this, !1), this._accessibleDiffViewerVisible = ct(this, (D) => this._options.onlyShowAccessibleDiffViewer.read(D) ? !0 : this._accessibleDiffViewerShouldBeVisible.read(D)), this._movedBlocksLinesPart = qt(this, void 0), this._layoutInfo = ct(this, (D) => {
|
|
111623
111622
|
const N = this._rootSizeObserver.width.read(D), z = this._rootSizeObserver.height.read(D);
|
|
111624
111623
|
this._rootSizeObserver.automaticLayout ? this.elements.root.style.height = "100%" : this.elements.root.style.height = z + "px";
|
|
111625
|
-
const T = this._sash.read(D),
|
|
111624
|
+
const T = this._sash.read(D), S = this._gutter.read(D), L = S?.width.read(D) ?? 0, _ = this._overviewRulerPart.read(D)?.width ?? 0;
|
|
111626
111625
|
let j, O, R, V, q;
|
|
111627
111626
|
if (!!T) {
|
|
111628
111627
|
const ue = T.sashLeft.read(D), me = this._movedBlocksLinesPart.read(D)?.width.read(D) ?? 0;
|
|
111629
|
-
j = 0, O = ue -
|
|
111628
|
+
j = 0, O = ue - L - me, q = ue - L, R = ue, V = N - R - _;
|
|
111630
111629
|
} else {
|
|
111631
111630
|
q = 0;
|
|
111632
111631
|
const ue = this._options.inlineViewHideOriginalLineNumbers.read(D);
|
|
111633
|
-
j =
|
|
111632
|
+
j = L, ue ? O = 0 : O = Math.max(5, this._editors.originalObs.layoutInfoDecorationsLeft.read(D)), R = L + O, V = N - R - _;
|
|
111634
111633
|
}
|
|
111635
|
-
return this.elements.original.style.left = j + "px", this.elements.original.style.width = O + "px", this._editors.original.layout({ width: O, height: z }, !0),
|
|
111634
|
+
return this.elements.original.style.left = j + "px", this.elements.original.style.width = O + "px", this._editors.original.layout({ width: O, height: z }, !0), S?.layout(q), this.elements.modified.style.left = R + "px", this.elements.modified.style.width = V + "px", this._editors.modified.layout({ width: V, height: z }, !0), {
|
|
111636
111635
|
modifiedEditor: this._editors.modified.getLayoutInfo(),
|
|
111637
111636
|
originalEditor: this._editors.original.getLayoutInfo()
|
|
111638
111637
|
};
|
|
@@ -111696,7 +111695,7 @@ let cw = class extends HO {
|
|
|
111696
111695
|
const z = this._diffModel.read(D);
|
|
111697
111696
|
if (z)
|
|
111698
111697
|
for (const T of [z.model.original, z.model.modified])
|
|
111699
|
-
N.add(T.onWillDispose((
|
|
111698
|
+
N.add(T.onWillDispose((S) => {
|
|
111700
111699
|
gn(new rn("TextModel got disposed before DiffEditorWidget model got reset")), this.setModel(null);
|
|
111701
111700
|
}));
|
|
111702
111701
|
})), this._register(en((D) => {
|
|
@@ -116637,9 +116636,9 @@ const kzt = ge.div`
|
|
|
116637
116636
|
isDirty: D,
|
|
116638
116637
|
setEditedValue: N,
|
|
116639
116638
|
resetPrefill: z
|
|
116640
|
-
} = mLe(s, Fe.processId), { authType: T } = Fe,
|
|
116639
|
+
} = mLe(s, Fe.processId), { authType: T } = Fe, S = ws(null);
|
|
116641
116640
|
return Qt(() => {
|
|
116642
|
-
v &&
|
|
116641
|
+
v && S.current?.hideMarkers();
|
|
116643
116642
|
}, [v]), /* @__PURE__ */ E.jsx(
|
|
116644
116643
|
mg,
|
|
116645
116644
|
{
|
|
@@ -116657,7 +116656,7 @@ const kzt = ge.div`
|
|
|
116657
116656
|
onClose: n,
|
|
116658
116657
|
onSubmit: async () => {
|
|
116659
116658
|
n();
|
|
116660
|
-
const
|
|
116659
|
+
const L = await a.publishMessage?.({
|
|
116661
116660
|
messageName: p,
|
|
116662
116661
|
correlationKey: d,
|
|
116663
116662
|
variables: w,
|
|
@@ -116665,7 +116664,7 @@ const kzt = ge.div`
|
|
|
116665
116664
|
messageId: A,
|
|
116666
116665
|
isStartEvent: r
|
|
116667
116666
|
});
|
|
116668
|
-
if (
|
|
116667
|
+
if (L?.status === Rl) {
|
|
116669
116668
|
a.displayNotification?.error(
|
|
116670
116669
|
{
|
|
116671
116670
|
title: ep,
|
|
@@ -116675,7 +116674,7 @@ const kzt = ge.div`
|
|
|
116675
116674
|
);
|
|
116676
116675
|
return;
|
|
116677
116676
|
}
|
|
116678
|
-
|
|
116677
|
+
L?.success ? (L?.success && l !== void 0 && ms(ao(l.key), {
|
|
116679
116678
|
action: "publishMessage",
|
|
116680
116679
|
elementId: i,
|
|
116681
116680
|
messageName: p,
|
|
@@ -116722,11 +116721,11 @@ const kzt = ge.div`
|
|
|
116722
116721
|
value: w,
|
|
116723
116722
|
isVisible: o,
|
|
116724
116723
|
placeholder: kL,
|
|
116725
|
-
onChange: (
|
|
116726
|
-
N(
|
|
116724
|
+
onChange: (L) => {
|
|
116725
|
+
N(L ?? "");
|
|
116727
116726
|
},
|
|
116728
|
-
onMount: (
|
|
116729
|
-
|
|
116727
|
+
onMount: (L) => {
|
|
116728
|
+
S.current = L;
|
|
116730
116729
|
},
|
|
116731
116730
|
hasJSONObjectValidation: !0
|
|
116732
116731
|
}
|
|
@@ -116740,8 +116739,8 @@ const kzt = ge.div`
|
|
|
116740
116739
|
labelText: "Message name",
|
|
116741
116740
|
placeholder: "new order",
|
|
116742
116741
|
value: p,
|
|
116743
|
-
onChange: (
|
|
116744
|
-
u(
|
|
116742
|
+
onChange: (L) => {
|
|
116743
|
+
u(L.target.value);
|
|
116745
116744
|
}
|
|
116746
116745
|
}
|
|
116747
116746
|
),
|
|
@@ -116752,8 +116751,8 @@ const kzt = ge.div`
|
|
|
116752
116751
|
labelText: "Message correlation key",
|
|
116753
116752
|
placeholder: "order-key-123",
|
|
116754
116753
|
value: d,
|
|
116755
|
-
onChange: (
|
|
116756
|
-
h(
|
|
116754
|
+
onChange: (L) => {
|
|
116755
|
+
h(L.target.value);
|
|
116757
116756
|
}
|
|
116758
116757
|
}
|
|
116759
116758
|
)
|
|
@@ -116765,8 +116764,8 @@ const kzt = ge.div`
|
|
|
116765
116764
|
labelText: "Message ID",
|
|
116766
116765
|
placeholder: "tracking-id-123",
|
|
116767
116766
|
value: A,
|
|
116768
|
-
onChange: (
|
|
116769
|
-
f(
|
|
116767
|
+
onChange: (L) => {
|
|
116768
|
+
f(L.target.value);
|
|
116770
116769
|
}
|
|
116771
116770
|
}
|
|
116772
116771
|
),
|
|
@@ -116777,8 +116776,8 @@ const kzt = ge.div`
|
|
|
116777
116776
|
labelText: "Message time-to-live (TTL)",
|
|
116778
116777
|
placeholder: "PT5M",
|
|
116779
116778
|
value: g,
|
|
116780
|
-
onChange: (
|
|
116781
|
-
m(
|
|
116779
|
+
onChange: (L) => {
|
|
116780
|
+
m(L.target.value);
|
|
116782
116781
|
},
|
|
116783
116782
|
helperText: "Time duration defined as ISO 8601 durations format"
|
|
116784
116783
|
}
|
|
@@ -117086,11 +117085,11 @@ function Pzt({
|
|
|
117086
117085
|
formPrefillSettings: t = { sanitizePrefillData: !1 }
|
|
117087
117086
|
}) {
|
|
117088
117087
|
const [n, i] = it(!1), [r, s] = it("none"), [a, l] = it(""), [p, u] = it(!1), [d, h] = it(!1), g = ws(null), m = ws(), A = Ri(
|
|
117089
|
-
(T,
|
|
117090
|
-
const { cachedVariables:
|
|
117088
|
+
(T, S) => {
|
|
117089
|
+
const { cachedVariables: L, variablesFromExampleData: _ } = k8e({
|
|
117091
117090
|
element: o,
|
|
117092
117091
|
processId: Fe.processId
|
|
117093
|
-
}), j =
|
|
117092
|
+
}), j = S === "bpmn" && od(T, _), O = S === "cache" && od(T, L);
|
|
117094
117093
|
return j || O;
|
|
117095
117094
|
},
|
|
117096
117095
|
[o]
|
|
@@ -117104,8 +117103,8 @@ function Pzt({
|
|
|
117104
117103
|
);
|
|
117105
117104
|
}, [a, r, A]);
|
|
117106
117105
|
const f = Ri(
|
|
117107
|
-
({ data: T, errors:
|
|
117108
|
-
u(Object.keys(
|
|
117106
|
+
({ data: T, errors: S }) => {
|
|
117107
|
+
u(Object.keys(S).length === 0), l(JSON.stringify(T));
|
|
117109
117108
|
},
|
|
117110
117109
|
[]
|
|
117111
117110
|
), w = Ri(async () => {
|
|
@@ -117120,26 +117119,26 @@ function Pzt({
|
|
|
117120
117119
|
}
|
|
117121
117120
|
T = _.reduce((O, { name: R, value: V }) => (O[R] = JSON.parse(V), O), {});
|
|
117122
117121
|
}
|
|
117123
|
-
const { cachedVariables:
|
|
117122
|
+
const { cachedVariables: S, variablesFromExampleData: L } = k8e(
|
|
117124
117123
|
{
|
|
117125
117124
|
element: o,
|
|
117126
117125
|
processId: Fe.processId
|
|
117127
117126
|
}
|
|
117128
117127
|
);
|
|
117129
117128
|
return {
|
|
117130
|
-
variablesFromExampleData:
|
|
117131
|
-
cachedVariables:
|
|
117129
|
+
variablesFromExampleData: L,
|
|
117130
|
+
cachedVariables: S,
|
|
117132
117131
|
processVariables: T
|
|
117133
117132
|
};
|
|
117134
117133
|
}, [o, t]), v = Ri(async () => {
|
|
117135
117134
|
let T = {};
|
|
117136
|
-
const
|
|
117137
|
-
if (
|
|
117135
|
+
const S = await e();
|
|
117136
|
+
if (S === void 0) {
|
|
117138
117137
|
i(!0);
|
|
117139
117138
|
return;
|
|
117140
117139
|
}
|
|
117141
117140
|
try {
|
|
117142
|
-
T = JSON.parse(
|
|
117141
|
+
T = JSON.parse(S ?? "{}");
|
|
117143
117142
|
} catch {
|
|
117144
117143
|
i(!0);
|
|
117145
117144
|
return;
|
|
@@ -117148,19 +117147,19 @@ function Pzt({
|
|
|
117148
117147
|
}, [e]), C = Ri(
|
|
117149
117148
|
async ({
|
|
117150
117149
|
ignoreCachedVariables: T = !1,
|
|
117151
|
-
parsedForm:
|
|
117150
|
+
parsedForm: S
|
|
117152
117151
|
} = {
|
|
117153
117152
|
ignoreCachedVariables: !1,
|
|
117154
117153
|
parsedForm: void 0
|
|
117155
117154
|
}) => {
|
|
117156
|
-
const
|
|
117157
|
-
if (!
|
|
117155
|
+
const L = await w();
|
|
117156
|
+
if (!L)
|
|
117158
117157
|
return;
|
|
117159
|
-
const { variablesFromExampleData: _, cachedVariables: j, processVariables: O } =
|
|
117158
|
+
const { variablesFromExampleData: _, cachedVariables: j, processVariables: O } = L, R = {
|
|
117160
117159
|
..._,
|
|
117161
117160
|
...T ? {} : j,
|
|
117162
117161
|
...O
|
|
117163
|
-
}, V = t.sanitizePrefillData ? Rzt(VRe(
|
|
117162
|
+
}, V = t.sanitizePrefillData ? Rzt(VRe(S), R) : R;
|
|
117164
117163
|
let q = "none";
|
|
117165
117164
|
return od(V, _) ? q = "bpmn" : !T && od(V, j) && (q = "cache"), s(q), l(JSON.stringify(V)), V;
|
|
117166
117165
|
},
|
|
@@ -117169,15 +117168,15 @@ function Pzt({
|
|
|
117169
117168
|
async ({
|
|
117170
117169
|
ignoreCachedVariables: T = !1
|
|
117171
117170
|
} = { ignoreCachedVariables: !1 }) => {
|
|
117172
|
-
const
|
|
117173
|
-
if (
|
|
117171
|
+
const S = await v();
|
|
117172
|
+
if (S === void 0)
|
|
117174
117173
|
return;
|
|
117175
|
-
const
|
|
117176
|
-
parsedForm:
|
|
117174
|
+
const L = await C({
|
|
117175
|
+
parsedForm: S,
|
|
117177
117176
|
ignoreCachedVariables: T
|
|
117178
117177
|
}), { warnings: _ } = await m.current?.importSchema(
|
|
117179
|
-
|
|
117180
|
-
|
|
117178
|
+
S,
|
|
117179
|
+
L
|
|
117181
117180
|
) ?? { warnings: [] };
|
|
117182
117181
|
u(_.length === 0);
|
|
117183
117182
|
},
|
|
@@ -117248,58 +117247,65 @@ const MLe = ({
|
|
|
117248
117247
|
dataTestId: a,
|
|
117249
117248
|
formPrefillSettings: l
|
|
117250
117249
|
}) => {
|
|
117251
|
-
const {
|
|
117252
|
-
renderForm:
|
|
117253
|
-
resetForm:
|
|
117254
|
-
isDirty:
|
|
117255
|
-
isFormContentValid:
|
|
117256
|
-
originalPrefillSource:
|
|
117257
|
-
setOriginalPrefillSource:
|
|
117258
|
-
formVariables:
|
|
117259
|
-
hasFormLoadError:
|
|
117260
|
-
setHasFormLoadError:
|
|
117261
|
-
formContainerRef:
|
|
117262
|
-
taskForm:
|
|
117250
|
+
const [p, u] = it(!1), {
|
|
117251
|
+
renderForm: d,
|
|
117252
|
+
resetForm: h,
|
|
117253
|
+
isDirty: g,
|
|
117254
|
+
isFormContentValid: m,
|
|
117255
|
+
originalPrefillSource: A,
|
|
117256
|
+
setOriginalPrefillSource: f,
|
|
117257
|
+
formVariables: w,
|
|
117258
|
+
hasFormLoadError: v,
|
|
117259
|
+
setHasFormLoadError: C,
|
|
117260
|
+
formContainerRef: D,
|
|
117261
|
+
taskForm: N
|
|
117263
117262
|
} = Pzt({
|
|
117264
117263
|
element: e,
|
|
117265
117264
|
formPrefillSettings: l,
|
|
117266
117265
|
getFormBody: i
|
|
117267
117266
|
});
|
|
117268
117267
|
Qt(() => {
|
|
117269
|
-
if (!o &&
|
|
117270
|
-
|
|
117268
|
+
if (!o && N.current) {
|
|
117269
|
+
N.current.detach(), N.current = void 0;
|
|
117271
117270
|
return;
|
|
117272
117271
|
}
|
|
117273
|
-
!o || !
|
|
117274
|
-
}, [
|
|
117275
|
-
async function
|
|
117276
|
-
if (
|
|
117272
|
+
!o || !D.current || N.current || d();
|
|
117273
|
+
}, [d, o, D, N]);
|
|
117274
|
+
async function z(S) {
|
|
117275
|
+
if (S.size === 0)
|
|
117277
117276
|
return /* @__PURE__ */ new Map();
|
|
117278
|
-
const { response:
|
|
117279
|
-
files:
|
|
117277
|
+
const { response: L, success: _ } = await gt.uploadDocuments({
|
|
117278
|
+
files: S
|
|
117280
117279
|
});
|
|
117281
|
-
if (!
|
|
117280
|
+
if (!_)
|
|
117282
117281
|
return console.error("Failed to upload documents"), /* @__PURE__ */ new Map();
|
|
117283
|
-
const
|
|
117284
|
-
return
|
|
117285
|
-
const
|
|
117286
|
-
if (typeof
|
|
117282
|
+
const j = /* @__PURE__ */ new Map();
|
|
117283
|
+
return L.forEach((O) => {
|
|
117284
|
+
const R = O.metadata.customProperties?.[y7e];
|
|
117285
|
+
if (typeof R != "string" || R.length === 0)
|
|
117287
117286
|
return;
|
|
117288
|
-
const
|
|
117289
|
-
Array.isArray(
|
|
117290
|
-
}),
|
|
117291
|
-
}
|
|
117292
|
-
async function
|
|
117293
|
-
|
|
117294
|
-
|
|
117295
|
-
errors: {
|
|
117296
|
-
|
|
117297
|
-
|
|
117298
|
-
|
|
117299
|
-
|
|
117300
|
-
|
|
117301
|
-
|
|
117302
|
-
|
|
117287
|
+
const V = j.get(R);
|
|
117288
|
+
Array.isArray(V) ? j.set(R, [...V, O]) : j.set(R, [O]);
|
|
117289
|
+
}), j;
|
|
117290
|
+
}
|
|
117291
|
+
async function T() {
|
|
117292
|
+
u(!0);
|
|
117293
|
+
try {
|
|
117294
|
+
const { data: S, errors: L, files: _ } = N.current?.submit() ?? {
|
|
117295
|
+
data: {},
|
|
117296
|
+
errors: {},
|
|
117297
|
+
files: /* @__PURE__ */ new Map()
|
|
117298
|
+
}, j = _.size === 0 ? S : Bzt({
|
|
117299
|
+
data: S,
|
|
117300
|
+
fileMetadata: await z(_),
|
|
117301
|
+
pathsToInject: Hzt(S)
|
|
117302
|
+
});
|
|
117303
|
+
Object.keys(L).length === 0 && n(j);
|
|
117304
|
+
} catch (S) {
|
|
117305
|
+
console.error(S);
|
|
117306
|
+
} finally {
|
|
117307
|
+
u(!1);
|
|
117308
|
+
}
|
|
117303
117309
|
}
|
|
117304
117310
|
return /* @__PURE__ */ E.jsx(
|
|
117305
117311
|
mg,
|
|
@@ -117309,26 +117315,27 @@ const MLe = ({
|
|
|
117309
117315
|
isVisible: o,
|
|
117310
117316
|
dataTestId: a,
|
|
117311
117317
|
primaryButtonLabel: r,
|
|
117318
|
+
isPrimaryButtonDisabled: !m || p,
|
|
117312
117319
|
secondaryButton: {
|
|
117313
117320
|
label: "Close",
|
|
117314
117321
|
onClick: t
|
|
117315
117322
|
},
|
|
117316
117323
|
onClose: t,
|
|
117317
|
-
onSubmit:
|
|
117324
|
+
onSubmit: T,
|
|
117318
117325
|
ghostButton: {
|
|
117319
117326
|
label: "Reset",
|
|
117320
|
-
onClick:
|
|
117327
|
+
onClick: h
|
|
117321
117328
|
},
|
|
117322
117329
|
modalBody: /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
117323
117330
|
/* @__PURE__ */ E.jsxs(ii, { gap: 5, children: [
|
|
117324
117331
|
/* @__PURE__ */ E.jsx(
|
|
117325
117332
|
_v,
|
|
117326
117333
|
{
|
|
117327
|
-
isValid:
|
|
117328
|
-
editedValue:
|
|
117334
|
+
isValid: m,
|
|
117335
|
+
editedValue: w,
|
|
117329
117336
|
element: e,
|
|
117330
117337
|
onSuccess: () => {
|
|
117331
|
-
|
|
117338
|
+
f("bpmn");
|
|
117332
117339
|
},
|
|
117333
117340
|
tooltipTextForInvalid: "Please enter valid data to save"
|
|
117334
117341
|
}
|
|
@@ -117336,12 +117343,12 @@ const MLe = ({
|
|
|
117336
117343
|
/* @__PURE__ */ E.jsx(
|
|
117337
117344
|
Rv,
|
|
117338
117345
|
{
|
|
117339
|
-
originalSource:
|
|
117340
|
-
isDescriptionVisible: !
|
|
117346
|
+
originalSource: A,
|
|
117347
|
+
isDescriptionVisible: !g
|
|
117341
117348
|
}
|
|
117342
117349
|
)
|
|
117343
117350
|
] }),
|
|
117344
|
-
|
|
117351
|
+
v && /* @__PURE__ */ E.jsxs(_zt, { children: [
|
|
117345
117352
|
"We were unable to load the form",
|
|
117346
117353
|
/* @__PURE__ */ E.jsx(
|
|
117347
117354
|
so,
|
|
@@ -117350,13 +117357,13 @@ const MLe = ({
|
|
|
117350
117357
|
size: "sm",
|
|
117351
117358
|
renderIcon: oNe,
|
|
117352
117359
|
onClick: () => {
|
|
117353
|
-
|
|
117360
|
+
C(!1), d();
|
|
117354
117361
|
},
|
|
117355
117362
|
children: "Retry"
|
|
117356
117363
|
}
|
|
117357
117364
|
)
|
|
117358
117365
|
] }),
|
|
117359
|
-
/* @__PURE__ */ E.jsx("div", { ref:
|
|
117366
|
+
/* @__PURE__ */ E.jsx("div", { ref: D })
|
|
117360
117367
|
] })
|
|
117361
117368
|
}
|
|
117362
117369
|
);
|
|
@@ -120672,7 +120679,7 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
120672
120679
|
return z(H)(x, k, Y);
|
|
120673
120680
|
};
|
|
120674
120681
|
}
|
|
120675
|
-
var
|
|
120682
|
+
var S = {
|
|
120676
120683
|
"bpmn:MessageEventDefinition": function(H, x, k = {}, Y) {
|
|
120677
120684
|
var W = n.getScaledPath("EVENT_MESSAGE", {
|
|
120678
120685
|
xScaleFactor: 0.9,
|
|
@@ -120890,9 +120897,9 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
120890
120897
|
return Y;
|
|
120891
120898
|
}
|
|
120892
120899
|
};
|
|
120893
|
-
function
|
|
120900
|
+
function L(H, x, k = {}, Y) {
|
|
120894
120901
|
var W = wn(H), ie = hxt(W), je = Y || H;
|
|
120895
|
-
return W.get("eventDefinitions") && W.get("eventDefinitions").length > 1 ? W.get("parallelMultiple") ?
|
|
120902
|
+
return W.get("eventDefinitions") && W.get("eventDefinitions").length > 1 ? W.get("parallelMultiple") ? S["bpmn:ParallelMultipleEventDefinition"](x, je, k, ie) : S["bpmn:MultipleEventDefinition"](x, je, k, ie) : uc(W, "bpmn:MessageEventDefinition") ? S["bpmn:MessageEventDefinition"](x, je, k, ie) : uc(W, "bpmn:TimerEventDefinition") ? S["bpmn:TimerEventDefinition"](x, je, k, ie) : uc(W, "bpmn:ConditionalEventDefinition") ? S["bpmn:ConditionalEventDefinition"](x, je, k, ie) : uc(W, "bpmn:SignalEventDefinition") ? S["bpmn:SignalEventDefinition"](x, je, k, ie) : uc(W, "bpmn:EscalationEventDefinition") ? S["bpmn:EscalationEventDefinition"](x, je, k, ie) : uc(W, "bpmn:LinkEventDefinition") ? S["bpmn:LinkEventDefinition"](x, je, k, ie) : uc(W, "bpmn:ErrorEventDefinition") ? S["bpmn:ErrorEventDefinition"](x, je, k, ie) : uc(W, "bpmn:CancelEventDefinition") ? S["bpmn:CancelEventDefinition"](x, je, k, ie) : uc(W, "bpmn:CompensateEventDefinition") ? S["bpmn:CompensateEventDefinition"](x, je, k, ie) : uc(W, "bpmn:TerminateEventDefinition") ? S["bpmn:TerminateEventDefinition"](x, je, k, ie) : null;
|
|
120896
120903
|
}
|
|
120897
120904
|
var _ = {
|
|
120898
120905
|
ParticipantMultiplicityMarker: function(H, x, k = {}) {
|
|
@@ -121227,7 +121234,7 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
121227
121234
|
strokeWidth: Dt,
|
|
121228
121235
|
strokeDasharray: pt,
|
|
121229
121236
|
transform: Yo
|
|
121230
|
-
}),
|
|
121237
|
+
}), L(H, x, ie, Y);
|
|
121231
121238
|
}
|
|
121232
121239
|
function Se(H, x, k = {}) {
|
|
121233
121240
|
var Y = ue(H, x, k);
|
|
@@ -121268,7 +121275,7 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
121268
121275
|
return A(H, x.width, x.height, M4, {
|
|
121269
121276
|
...k,
|
|
121270
121277
|
fill: "none"
|
|
121271
|
-
}), Y &&
|
|
121278
|
+
}), Y && L(x, H, k), je;
|
|
121272
121279
|
},
|
|
121273
121280
|
"bpmn:BusinessRuleTask": function(H, x, k = {}) {
|
|
121274
121281
|
k = dn(k, [
|
|
@@ -121409,7 +121416,7 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
121409
121416
|
...k,
|
|
121410
121417
|
strokeWidth: 4
|
|
121411
121418
|
});
|
|
121412
|
-
return Y &&
|
|
121419
|
+
return Y && L(x, H, k), W;
|
|
121413
121420
|
},
|
|
121414
121421
|
"bpmn:EventBasedGateway": function(H, x, k = {}) {
|
|
121415
121422
|
k = dn(k, [
|
|
@@ -121532,7 +121539,7 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
121532
121539
|
fill: "none",
|
|
121533
121540
|
stroke: We(x, l, k.stroke),
|
|
121534
121541
|
strokeWidth: 1.5
|
|
121535
|
-
}), Y &&
|
|
121542
|
+
}), Y && L(x, H, k), W;
|
|
121536
121543
|
},
|
|
121537
121544
|
"bpmn:IntermediateCatchEvent": T("bpmn:IntermediateEvent"),
|
|
121538
121545
|
"bpmn:IntermediateThrowEvent": T("bpmn:IntermediateEvent"),
|
|
@@ -121804,7 +121811,7 @@ function _g(o, e, t, n, i, r, s) {
|
|
|
121804
121811
|
strokeDasharray: "6"
|
|
121805
121812
|
});
|
|
121806
121813
|
var ie = oe(H, x, k);
|
|
121807
|
-
return Y &&
|
|
121814
|
+
return Y && L(x, H, k), ie;
|
|
121808
121815
|
},
|
|
121809
121816
|
"bpmn:SubProcess": function(H, x, k = {}) {
|
|
121810
121817
|
return Sh(x) ? k = dn(k, [
|
|
@@ -123223,23 +123230,23 @@ function v4(o) {
|
|
|
123223
123230
|
var G8e = 500;
|
|
123224
123231
|
function dxe(o, e, t) {
|
|
123225
123232
|
var n = this;
|
|
123226
|
-
function i(
|
|
123227
|
-
if (!a(
|
|
123233
|
+
function i(S, L, _) {
|
|
123234
|
+
if (!a(S, L)) {
|
|
123228
123235
|
var j, O, R;
|
|
123229
|
-
_ ? O = e.getGraphics(_) : (j =
|
|
123236
|
+
_ ? O = e.getGraphics(_) : (j = L.delegateTarget || L.target, j && (O = j, _ = e.get(O))), !(!O || !_) && (R = o.fire(S, {
|
|
123230
123237
|
element: _,
|
|
123231
123238
|
gfx: O,
|
|
123232
|
-
originalEvent:
|
|
123233
|
-
}), R === !1 && (
|
|
123239
|
+
originalEvent: L
|
|
123240
|
+
}), R === !1 && (L.stopPropagation(), L.preventDefault()));
|
|
123234
123241
|
}
|
|
123235
123242
|
}
|
|
123236
123243
|
var r = {};
|
|
123237
|
-
function s(
|
|
123238
|
-
return r[
|
|
123244
|
+
function s(S) {
|
|
123245
|
+
return r[S];
|
|
123239
123246
|
}
|
|
123240
|
-
function a(
|
|
123241
|
-
var _ = p[
|
|
123242
|
-
return !_(
|
|
123247
|
+
function a(S, L) {
|
|
123248
|
+
var _ = p[S] || Vv;
|
|
123249
|
+
return !_(L);
|
|
123243
123250
|
}
|
|
123244
123251
|
var l = {
|
|
123245
123252
|
click: "element.click",
|
|
@@ -123257,52 +123264,52 @@ function dxe(o, e, t) {
|
|
|
123257
123264
|
"element.click": v4,
|
|
123258
123265
|
"element.dblclick": v4
|
|
123259
123266
|
};
|
|
123260
|
-
function u(
|
|
123261
|
-
var j = l[
|
|
123267
|
+
function u(S, L, _) {
|
|
123268
|
+
var j = l[S];
|
|
123262
123269
|
if (!j)
|
|
123263
|
-
throw new Error("unmapped DOM event name <" +
|
|
123264
|
-
return i(j,
|
|
123270
|
+
throw new Error("unmapped DOM event name <" + S + ">");
|
|
123271
|
+
return i(j, L, _);
|
|
123265
123272
|
}
|
|
123266
123273
|
var d = "svg, .djs-element";
|
|
123267
|
-
function h(
|
|
123274
|
+
function h(S, L, _, j) {
|
|
123268
123275
|
var O = r[_] = function(R) {
|
|
123269
123276
|
i(_, R);
|
|
123270
123277
|
};
|
|
123271
|
-
j && (p[_] = j), O.$delegate = oS.bind(
|
|
123278
|
+
j && (p[_] = j), O.$delegate = oS.bind(S, d, L, O);
|
|
123272
123279
|
}
|
|
123273
|
-
function g(
|
|
123280
|
+
function g(S, L, _) {
|
|
123274
123281
|
var j = s(_);
|
|
123275
|
-
j && oS.unbind(
|
|
123282
|
+
j && oS.unbind(S, L, j.$delegate);
|
|
123276
123283
|
}
|
|
123277
|
-
function m(
|
|
123278
|
-
ln(l, function(
|
|
123279
|
-
h(
|
|
123284
|
+
function m(S) {
|
|
123285
|
+
ln(l, function(L, _) {
|
|
123286
|
+
h(S, _, L);
|
|
123280
123287
|
});
|
|
123281
123288
|
}
|
|
123282
|
-
function A(
|
|
123283
|
-
ln(l, function(
|
|
123284
|
-
g(
|
|
123289
|
+
function A(S) {
|
|
123290
|
+
ln(l, function(L, _) {
|
|
123291
|
+
g(S, _, L);
|
|
123285
123292
|
});
|
|
123286
123293
|
}
|
|
123287
|
-
o.on("canvas.destroy", function(
|
|
123288
|
-
A(
|
|
123289
|
-
}), o.on("canvas.init", function(
|
|
123290
|
-
m(
|
|
123291
|
-
}), o.on(["shape.added", "connection.added"], function(
|
|
123292
|
-
var
|
|
123293
|
-
o.fire("interactionEvents.createHit", { element:
|
|
123294
|
+
o.on("canvas.destroy", function(S) {
|
|
123295
|
+
A(S.svg);
|
|
123296
|
+
}), o.on("canvas.init", function(S) {
|
|
123297
|
+
m(S.svg);
|
|
123298
|
+
}), o.on(["shape.added", "connection.added"], function(S) {
|
|
123299
|
+
var L = S.element, _ = S.gfx;
|
|
123300
|
+
o.fire("interactionEvents.createHit", { element: L, gfx: _ });
|
|
123294
123301
|
}), o.on([
|
|
123295
123302
|
"shape.changed",
|
|
123296
123303
|
"connection.changed"
|
|
123297
|
-
], G8e, function(
|
|
123298
|
-
var
|
|
123299
|
-
o.fire("interactionEvents.updateHit", { element:
|
|
123300
|
-
}), o.on("interactionEvents.createHit", G8e, function(
|
|
123301
|
-
var
|
|
123302
|
-
n.createDefaultHit(
|
|
123303
|
-
}), o.on("interactionEvents.updateHit", function(
|
|
123304
|
-
var
|
|
123305
|
-
n.updateDefaultHit(
|
|
123304
|
+
], G8e, function(S) {
|
|
123305
|
+
var L = S.element, _ = S.gfx;
|
|
123306
|
+
o.fire("interactionEvents.updateHit", { element: L, gfx: _ });
|
|
123307
|
+
}), o.on("interactionEvents.createHit", G8e, function(S) {
|
|
123308
|
+
var L = S.element, _ = S.gfx;
|
|
123309
|
+
n.createDefaultHit(L, _);
|
|
123310
|
+
}), o.on("interactionEvents.updateHit", function(S) {
|
|
123311
|
+
var L = S.element, _ = S.gfx;
|
|
123312
|
+
n.updateDefaultHit(L, _);
|
|
123306
123313
|
});
|
|
123307
123314
|
var f = N("djs-hit djs-hit-stroke"), w = N("djs-hit djs-hit-click-stroke"), v = N("djs-hit djs-hit-all"), C = N("djs-hit djs-hit-no-move"), D = {
|
|
123308
123315
|
all: v,
|
|
@@ -123310,46 +123317,46 @@ function dxe(o, e, t) {
|
|
|
123310
123317
|
stroke: f,
|
|
123311
123318
|
"no-move": C
|
|
123312
123319
|
};
|
|
123313
|
-
function N(
|
|
123314
|
-
return
|
|
123320
|
+
function N(S, L) {
|
|
123321
|
+
return L = vt({
|
|
123315
123322
|
stroke: "white",
|
|
123316
123323
|
strokeWidth: 15
|
|
123317
|
-
},
|
|
123324
|
+
}, L || {}), t.cls(S, ["no-fill", "no-border"], L);
|
|
123318
123325
|
}
|
|
123319
|
-
function z(
|
|
123320
|
-
var _ = D[
|
|
123326
|
+
function z(S, L) {
|
|
123327
|
+
var _ = D[L];
|
|
123321
123328
|
if (!_)
|
|
123322
|
-
throw new Error("invalid hit type <" +
|
|
123323
|
-
return fi(
|
|
123324
|
-
}
|
|
123325
|
-
function T(
|
|
123326
|
-
ta(
|
|
123327
|
-
}
|
|
123328
|
-
this.removeHits = function(
|
|
123329
|
-
var
|
|
123330
|
-
ln(
|
|
123331
|
-
}, this.createDefaultHit = function(
|
|
123332
|
-
var _ =
|
|
123333
|
-
return _ ? this.createWaypointsHit(
|
|
123334
|
-
width:
|
|
123335
|
-
height:
|
|
123329
|
+
throw new Error("invalid hit type <" + L + ">");
|
|
123330
|
+
return fi(S, _), S;
|
|
123331
|
+
}
|
|
123332
|
+
function T(S, L) {
|
|
123333
|
+
ta(S, L);
|
|
123334
|
+
}
|
|
123335
|
+
this.removeHits = function(S) {
|
|
123336
|
+
var L = WLe(".djs-hit", S);
|
|
123337
|
+
ln(L, qb);
|
|
123338
|
+
}, this.createDefaultHit = function(S, L) {
|
|
123339
|
+
var _ = S.waypoints, j = S.isFrame, O;
|
|
123340
|
+
return _ ? this.createWaypointsHit(L, _) : (O = j ? "stroke" : "all", this.createBoxHit(L, O, {
|
|
123341
|
+
width: S.width,
|
|
123342
|
+
height: S.height
|
|
123336
123343
|
}));
|
|
123337
|
-
}, this.createWaypointsHit = function(
|
|
123338
|
-
var _ = ej(
|
|
123339
|
-
return z(_, "stroke"), T(
|
|
123340
|
-
}, this.createBoxHit = function(
|
|
123344
|
+
}, this.createWaypointsHit = function(S, L) {
|
|
123345
|
+
var _ = ej(L);
|
|
123346
|
+
return z(_, "stroke"), T(S, _), _;
|
|
123347
|
+
}, this.createBoxHit = function(S, L, _) {
|
|
123341
123348
|
_ = vt({
|
|
123342
123349
|
x: 0,
|
|
123343
123350
|
y: 0
|
|
123344
123351
|
}, _);
|
|
123345
123352
|
var j = Nr("rect");
|
|
123346
|
-
return z(j,
|
|
123347
|
-
}, this.updateDefaultHit = function(
|
|
123348
|
-
var _ = Uo(".djs-hit",
|
|
123353
|
+
return z(j, L), fi(j, _), T(S, j), j;
|
|
123354
|
+
}, this.updateDefaultHit = function(S, L) {
|
|
123355
|
+
var _ = Uo(".djs-hit", L);
|
|
123349
123356
|
if (_)
|
|
123350
|
-
return
|
|
123351
|
-
width:
|
|
123352
|
-
height:
|
|
123357
|
+
return S.waypoints ? VLe(_, S.waypoints) : fi(_, {
|
|
123358
|
+
width: S.width,
|
|
123359
|
+
height: S.height
|
|
123353
123360
|
}), _;
|
|
123354
123361
|
}, this.fire = i, this.triggerMouseEvent = u, this.mouseHandler = s, this.registerEvent = h, this.unregisterEvent = g;
|
|
123355
123362
|
}
|
|
@@ -123567,10 +123574,10 @@ function Axe(o, e) {
|
|
|
123567
123574
|
}
|
|
123568
123575
|
function g(C, D) {
|
|
123569
123576
|
if (D && D.length) {
|
|
123570
|
-
const N = /* @__PURE__ */ Object.create(null), z = /* @__PURE__ */ Object.create(null), T = [],
|
|
123577
|
+
const N = /* @__PURE__ */ Object.create(null), z = /* @__PURE__ */ Object.create(null), T = [], S = [], L = [];
|
|
123571
123578
|
let _, j, O, R;
|
|
123572
123579
|
for (let V in i)
|
|
123573
|
-
_ = i[V], D.indexOf(V) !== -1 && (_[2] === "private" ? (j = T.indexOf(_[3]), j === -1 ? (O = _[3].createChild([], D), R = h(O), T.push(_[3]),
|
|
123580
|
+
_ = i[V], D.indexOf(V) !== -1 && (_[2] === "private" ? (j = T.indexOf(_[3]), j === -1 ? (O = _[3].createChild([], D), R = h(O), T.push(_[3]), S.push(O), L.push(R), N[V] = [R, V, "private", O]) : N[V] = [L[j], V, "private", S[j]]) : N[V] = [_[2], _[1]], z[V] = !0), (_[2] === "factory" || _[2] === "type") && _[1].$scope && D.forEach((q) => {
|
|
123574
123581
|
_[1].$scope.indexOf(q) !== -1 && (N[V] = [_[2], _[1]], z[q] = !0);
|
|
123575
123582
|
});
|
|
123576
123583
|
D.forEach((V) => {
|
|
@@ -123598,18 +123605,18 @@ function Axe(o, e) {
|
|
|
123598
123605
|
function f(C) {
|
|
123599
123606
|
const D = C.__exports__;
|
|
123600
123607
|
if (D) {
|
|
123601
|
-
const N = C.__modules__, z = Object.keys(C).reduce((j, O) => (O !== "__exports__" && O !== "__modules__" && O !== "__init__" && O !== "__depends__" && (j[O] = C[O]), j), /* @__PURE__ */ Object.create(null)), T = (N || []).concat(z),
|
|
123602
|
-
return
|
|
123608
|
+
const N = C.__modules__, z = Object.keys(C).reduce((j, O) => (O !== "__exports__" && O !== "__modules__" && O !== "__init__" && O !== "__depends__" && (j[O] = C[O]), j), /* @__PURE__ */ Object.create(null)), T = (N || []).concat(z), S = g(T), L = VM(function(j) {
|
|
123609
|
+
return S.get(j);
|
|
123603
123610
|
});
|
|
123604
123611
|
D.forEach(function(j) {
|
|
123605
|
-
i[j] = [
|
|
123612
|
+
i[j] = [L, j, "private", S];
|
|
123606
123613
|
});
|
|
123607
123614
|
const _ = (C.__init__ || []).slice();
|
|
123608
123615
|
return _.unshift(function() {
|
|
123609
|
-
|
|
123616
|
+
S.init();
|
|
123610
123617
|
}), C = Object.assign({}, C, {
|
|
123611
123618
|
__init__: _
|
|
123612
|
-
}), A(C,
|
|
123619
|
+
}), A(C, S);
|
|
123613
123620
|
}
|
|
123614
123621
|
return Object.keys(C).forEach(function(N) {
|
|
123615
123622
|
if (N === "__init__" || N === "__depends__")
|
|
@@ -123622,8 +123629,8 @@ function Axe(o, e) {
|
|
|
123622
123629
|
i[N] = z;
|
|
123623
123630
|
return;
|
|
123624
123631
|
}
|
|
123625
|
-
const T = z[0],
|
|
123626
|
-
i[N] = [m[T], lOt(T,
|
|
123632
|
+
const T = z[0], S = z[1];
|
|
123633
|
+
i[N] = [m[T], lOt(T, S), T];
|
|
123627
123634
|
}), A(C, s);
|
|
123628
123635
|
}
|
|
123629
123636
|
function w(C, D) {
|
|
@@ -124684,7 +124691,7 @@ function OOt(o) {
|
|
|
124684
124691
|
F = t.shift(), F();
|
|
124685
124692
|
};
|
|
124686
124693
|
function f(G, F) {
|
|
124687
|
-
ue(G, F),
|
|
124694
|
+
ue(G, F), L(G.ioSpecification, F), S(G.artifacts, F), r(G);
|
|
124688
124695
|
}
|
|
124689
124696
|
function w(G, F) {
|
|
124690
124697
|
var be = ZN(G, function(Se) {
|
|
@@ -124710,22 +124717,22 @@ function OOt(o) {
|
|
|
124710
124717
|
function T(G, F) {
|
|
124711
124718
|
p(G, F);
|
|
124712
124719
|
}
|
|
124713
|
-
function
|
|
124720
|
+
function S(G, F) {
|
|
124714
124721
|
ln(G, function(be) {
|
|
124715
124722
|
_r(be, "bpmn:Association") ? t.push(function() {
|
|
124716
124723
|
T(be, F);
|
|
124717
124724
|
}) : T(be, F);
|
|
124718
124725
|
});
|
|
124719
124726
|
}
|
|
124720
|
-
function
|
|
124727
|
+
function L(G, F) {
|
|
124721
124728
|
G && (ln(G.dataInputs, i(N, F)), ln(G.dataOutputs, i(z, F)));
|
|
124722
124729
|
}
|
|
124723
124730
|
var _ = this.handleSubProcess = function(F, be) {
|
|
124724
|
-
ue(F, be),
|
|
124731
|
+
ue(F, be), S(F.artifacts, be);
|
|
124725
124732
|
};
|
|
124726
124733
|
function j(G, F) {
|
|
124727
124734
|
var be = p(G, F);
|
|
124728
|
-
_r(G, "bpmn:SubProcess") && _(G, be || F), _r(G, "bpmn:Activity") &&
|
|
124735
|
+
_r(G, "bpmn:SubProcess") && _(G, be || F), _r(G, "bpmn:Activity") && L(G.ioSpecification, F), t.push(function() {
|
|
124729
124736
|
ln(G.dataInputAssociations, i(D, F)), ln(G.dataOutputAssociations, i(D, F));
|
|
124730
124737
|
});
|
|
124731
124738
|
}
|
|
@@ -124772,7 +124779,7 @@ function OOt(o) {
|
|
|
124772
124779
|
function oe(G, F) {
|
|
124773
124780
|
ln(G.participants, i(ce, F)), t.push(function() {
|
|
124774
124781
|
C(G.messageFlows, F);
|
|
124775
|
-
}),
|
|
124782
|
+
}), S(G.artifacts, F);
|
|
124776
124783
|
}
|
|
124777
124784
|
function pe(G) {
|
|
124778
124785
|
ln(G.flowNodeRef, function(F) {
|
|
@@ -126432,13 +126439,13 @@ function hve(o) {
|
|
|
126432
126439
|
return this.l[o.type + !0](ft.event ? ft.event(o) : o);
|
|
126433
126440
|
}
|
|
126434
126441
|
function dj(o, e, t, n, i, r, s, a, l, p) {
|
|
126435
|
-
var u, d, h, g, m, A, f, w, v, C, D, N, z, T,
|
|
126442
|
+
var u, d, h, g, m, A, f, w, v, C, D, N, z, T, S, L = e.type;
|
|
126436
126443
|
if (e.constructor !== void 0) return null;
|
|
126437
126444
|
128 & t.__u && (l = !!(32 & t.__u), r = [a = e.__e = t.__e]), (u = ft.__b) && u(e);
|
|
126438
|
-
e: if (typeof
|
|
126439
|
-
if (w = e.props, v = (u =
|
|
126445
|
+
e: if (typeof L == "function") try {
|
|
126446
|
+
if (w = e.props, v = (u = L.contextType) && n[u.__c], C = u ? v ? v.props.value : u.__ : n, t.__c ? f = (d = e.__c = t.__c).__ = d.__E : ("prototype" in L && L.prototype.render ? e.__c = d = new L(w, C) : (e.__c = d = new ru(w, C), d.constructor = L, d.render = C_t), v && v.sub(d), d.props = w, d.state || (d.state = {}), d.context = C, d.__n = n, h = d.__d = !0, d.__h = [], d._sb = []), d.__s == null && (d.__s = d.state), L.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = yd({}, d.__s)), yd(d.__s, L.getDerivedStateFromProps(w, d.__s))), g = d.props, m = d.state, d.__v = e, h) L.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
|
|
126440
126447
|
else {
|
|
126441
|
-
if (
|
|
126448
|
+
if (L.getDerivedStateFromProps == null && w !== g && d.componentWillReceiveProps != null && d.componentWillReceiveProps(w, C), !d.__e && (d.shouldComponentUpdate != null && d.shouldComponentUpdate(w, d.__s, C) === !1 || e.__v === t.__v)) {
|
|
126442
126449
|
for (e.__v !== t.__v && (d.props = w, d.state = d.__s, d.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(_) {
|
|
126443
126450
|
_ && (_.__ = e);
|
|
126444
126451
|
}), D = 0; D < d._sb.length; D++) d.__h.push(d._sb[D]);
|
|
@@ -126449,13 +126456,13 @@ function dj(o, e, t, n, i, r, s, a, l, p) {
|
|
|
126449
126456
|
d.componentDidUpdate(g, m, A);
|
|
126450
126457
|
});
|
|
126451
126458
|
}
|
|
126452
|
-
if (d.context = C, d.props = w, d.__P = o, d.__e = !1, N = ft.__r, z = 0, "prototype" in
|
|
126459
|
+
if (d.context = C, d.props = w, d.__P = o, d.__e = !1, N = ft.__r, z = 0, "prototype" in L && L.prototype.render) {
|
|
126453
126460
|
for (d.state = d.__s, d.__d = !1, N && N(e), u = d.render(d.props, d.state, d.context), T = 0; T < d._sb.length; T++) d.__h.push(d._sb[T]);
|
|
126454
126461
|
d._sb = [];
|
|
126455
126462
|
} else do
|
|
126456
126463
|
d.__d = !1, N && N(e), u = d.render(d.props, d.state, d.context), d.state = d.__s;
|
|
126457
126464
|
while (d.__d && ++z < 25);
|
|
126458
|
-
d.state = d.__s, d.getChildContext != null && (n = yd(yd({}, n), d.getChildContext())), h || d.getSnapshotBeforeUpdate == null || (A = d.getSnapshotBeforeUpdate(g, m)), $xe(o, qv(
|
|
126465
|
+
d.state = d.__s, d.getChildContext != null && (n = yd(yd({}, n), d.getChildContext())), h || d.getSnapshotBeforeUpdate == null || (A = d.getSnapshotBeforeUpdate(g, m)), $xe(o, qv(S = u != null && u.type === og && u.key == null ? u.props.children : u) ? S : [S], e, t, n, i, r, s, a, l, p), d.base = e.__e, e.__u &= -161, d.__h.length && s.push(d), f && (d.__E = d.__ = null);
|
|
126459
126466
|
} catch (_) {
|
|
126460
126467
|
e.__v = null, l || r != null ? (e.__e = a, e.__u |= l ? 160 : 32, r[r.indexOf(a)] = null) : (e.__e = t.__e, e.__k = t.__k), ft.__e(_, e, t);
|
|
126461
126468
|
}
|
|
@@ -128007,12 +128014,12 @@ function mj(o) {
|
|
|
128007
128014
|
function J_t(o) {
|
|
128008
128015
|
var e;
|
|
128009
128016
|
let { buffer: t, nodeSet: n, maxBufferLength: i = dke, reused: r = [], minRepeatType: s = n.types.length } = o, a = Array.isArray(t) ? new gj(t, t.length) : t, l = n.types, p = 0, u = 0;
|
|
128010
|
-
function d(N, z, T,
|
|
128017
|
+
function d(N, z, T, S, L, _) {
|
|
128011
128018
|
let { id: j, start: O, end: R, size: V } = a, q = u;
|
|
128012
128019
|
for (; V < 0; )
|
|
128013
128020
|
if (a.next(), V == -1) {
|
|
128014
128021
|
let oe = r[j];
|
|
128015
|
-
T.push(oe),
|
|
128022
|
+
T.push(oe), S.push(O - N);
|
|
128016
128023
|
return;
|
|
128017
128024
|
} else if (V == -3) {
|
|
128018
128025
|
p = j;
|
|
@@ -128023,7 +128030,7 @@ function J_t(o) {
|
|
|
128023
128030
|
} else
|
|
128024
128031
|
throw new RangeError(`Unrecognized record size: ${V}`);
|
|
128025
128032
|
let se = l[j], ue, me, ce = O - N;
|
|
128026
|
-
if (R - O <= i && (me = f(a.pos - z,
|
|
128033
|
+
if (R - O <= i && (me = f(a.pos - z, L))) {
|
|
128027
128034
|
let oe = new Uint16Array(me.size - me.skip), pe = a.pos - me.size, G = oe.length;
|
|
128028
128035
|
for (; a.pos > pe; )
|
|
128029
128036
|
G = w(me.start, oe, G);
|
|
@@ -128040,10 +128047,10 @@ function J_t(o) {
|
|
|
128040
128047
|
} else
|
|
128041
128048
|
ue = A(se, pe, G, R - O, q - R);
|
|
128042
128049
|
}
|
|
128043
|
-
T.push(ue),
|
|
128050
|
+
T.push(ue), S.push(ce);
|
|
128044
128051
|
}
|
|
128045
|
-
function h(N, z, T,
|
|
128046
|
-
let
|
|
128052
|
+
function h(N, z, T, S) {
|
|
128053
|
+
let L = [], _ = 0, j = -1;
|
|
128047
128054
|
for (; a.pos > z; ) {
|
|
128048
128055
|
let { id: O, start: R, end: V, size: q } = a;
|
|
128049
128056
|
if (q > 4)
|
|
@@ -128051,50 +128058,50 @@ function J_t(o) {
|
|
|
128051
128058
|
else {
|
|
128052
128059
|
if (j > -1 && R < j)
|
|
128053
128060
|
break;
|
|
128054
|
-
j < 0 && (j = V - i),
|
|
128061
|
+
j < 0 && (j = V - i), L.push(O, R, V), _++, a.next();
|
|
128055
128062
|
}
|
|
128056
128063
|
}
|
|
128057
128064
|
if (_) {
|
|
128058
|
-
let O = new Uint16Array(_ * 4), R =
|
|
128059
|
-
for (let V =
|
|
128060
|
-
O[q++] =
|
|
128061
|
-
T.push(new Jd(O,
|
|
128065
|
+
let O = new Uint16Array(_ * 4), R = L[L.length - 2];
|
|
128066
|
+
for (let V = L.length - 3, q = 0; V >= 0; V -= 3)
|
|
128067
|
+
O[q++] = L[V], O[q++] = L[V + 1] - R, O[q++] = L[V + 2] - R, O[q++] = q;
|
|
128068
|
+
T.push(new Jd(O, L[2] - R, n)), S.push(R - N);
|
|
128062
128069
|
}
|
|
128063
128070
|
}
|
|
128064
128071
|
function g(N) {
|
|
128065
|
-
return (z, T,
|
|
128066
|
-
let
|
|
128072
|
+
return (z, T, S) => {
|
|
128073
|
+
let L = 0, _ = z.length - 1, j, O;
|
|
128067
128074
|
if (_ >= 0 && (j = z[_]) instanceof ei) {
|
|
128068
|
-
if (!_ && j.type == N && j.length ==
|
|
128075
|
+
if (!_ && j.type == N && j.length == S)
|
|
128069
128076
|
return j;
|
|
128070
|
-
(O = j.prop(Gt.lookAhead)) && (
|
|
128077
|
+
(O = j.prop(Gt.lookAhead)) && (L = T[_] + j.length + O);
|
|
128071
128078
|
}
|
|
128072
|
-
return A(N, z, T,
|
|
128079
|
+
return A(N, z, T, S, L);
|
|
128073
128080
|
};
|
|
128074
128081
|
}
|
|
128075
|
-
function m(N, z, T,
|
|
128082
|
+
function m(N, z, T, S, L, _, j, O) {
|
|
128076
128083
|
let R = [], V = [];
|
|
128077
|
-
for (; N.length >
|
|
128078
|
-
R.push(N.pop()), V.push(z.pop() + T -
|
|
128079
|
-
N.push(A(n.types[j], R, V, _ -
|
|
128084
|
+
for (; N.length > S; )
|
|
128085
|
+
R.push(N.pop()), V.push(z.pop() + T - L);
|
|
128086
|
+
N.push(A(n.types[j], R, V, _ - L, O - _)), z.push(L - T);
|
|
128080
128087
|
}
|
|
128081
|
-
function A(N, z, T,
|
|
128088
|
+
function A(N, z, T, S, L = 0, _) {
|
|
128082
128089
|
if (p) {
|
|
128083
128090
|
let j = [Gt.contextHash, p];
|
|
128084
128091
|
_ = _ ? [j].concat(_) : [j];
|
|
128085
128092
|
}
|
|
128086
|
-
if (
|
|
128087
|
-
let j = [Gt.lookAhead,
|
|
128093
|
+
if (L > 25) {
|
|
128094
|
+
let j = [Gt.lookAhead, L];
|
|
128088
128095
|
_ = _ ? [j].concat(_) : [j];
|
|
128089
128096
|
}
|
|
128090
|
-
return new ei(N, z, T,
|
|
128097
|
+
return new ei(N, z, T, S, _);
|
|
128091
128098
|
}
|
|
128092
128099
|
function f(N, z) {
|
|
128093
|
-
let T = a.fork(),
|
|
128100
|
+
let T = a.fork(), S = 0, L = 0, _ = 0, j = T.end - i, O = { size: 0, start: 0, skip: 0 };
|
|
128094
128101
|
e: for (let R = T.pos - N; T.pos > R; ) {
|
|
128095
128102
|
let V = T.size;
|
|
128096
128103
|
if (T.id == z && V >= 0) {
|
|
128097
|
-
O.size =
|
|
128104
|
+
O.size = S, O.start = L, O.skip = _, _ += 4, S += 4, T.next();
|
|
128098
128105
|
continue;
|
|
128099
128106
|
}
|
|
128100
128107
|
let q = T.pos - V;
|
|
@@ -128110,21 +128117,21 @@ function J_t(o) {
|
|
|
128110
128117
|
else T.id >= s && (se += 4);
|
|
128111
128118
|
T.next();
|
|
128112
128119
|
}
|
|
128113
|
-
|
|
128120
|
+
L = ue, S += V, _ += se;
|
|
128114
128121
|
}
|
|
128115
|
-
return (z < 0 ||
|
|
128122
|
+
return (z < 0 || S == N) && (O.size = S, O.start = L, O.skip = _), O.size > 4 ? O : void 0;
|
|
128116
128123
|
}
|
|
128117
128124
|
function w(N, z, T) {
|
|
128118
|
-
let { id:
|
|
128119
|
-
if (a.next(), j >= 0 &&
|
|
128125
|
+
let { id: S, start: L, end: _, size: j } = a;
|
|
128126
|
+
if (a.next(), j >= 0 && S < s) {
|
|
128120
128127
|
let O = T;
|
|
128121
128128
|
if (j > 4) {
|
|
128122
128129
|
let R = a.pos - (j - 4);
|
|
128123
128130
|
for (; a.pos > R; )
|
|
128124
128131
|
T = w(N, z, T);
|
|
128125
128132
|
}
|
|
128126
|
-
z[--T] = O, z[--T] = _ - N, z[--T] =
|
|
128127
|
-
} else j == -3 ? p =
|
|
128133
|
+
z[--T] = O, z[--T] = _ - N, z[--T] = L - N, z[--T] = S;
|
|
128134
|
+
} else j == -3 ? p = S : j == -4 && (u = S);
|
|
128128
128135
|
return T;
|
|
128129
128136
|
}
|
|
128130
128137
|
let v = [], C = [];
|
|
@@ -139304,11 +139311,11 @@ const t5 = /* @__PURE__ */ bt.define({
|
|
|
139304
139311
|
} else u.style.height && (u.style.height = "");
|
|
139305
139312
|
let z = D ? d.top - f - m - w.y : d.bottom + m + w.y, T = C + A;
|
|
139306
139313
|
if (p.overlap !== !0)
|
|
139307
|
-
for (let
|
|
139308
|
-
|
|
139314
|
+
for (let S of s)
|
|
139315
|
+
S.left < T && S.right > C && S.top < z + f && S.bottom > z && (z = D ? S.top - f - 2 - m : S.bottom + m + 2);
|
|
139309
139316
|
if (this.position == "absolute" ? (u.style.top = (z - o.parent.top) / r + "px", u.style.left = (C - o.parent.left) / i + "px") : (u.style.top = z / r + "px", u.style.left = C / i + "px"), g) {
|
|
139310
|
-
let
|
|
139311
|
-
g.style.left =
|
|
139317
|
+
let S = d.left + (v ? w.x : -w.x) - (C + 14 - 7);
|
|
139318
|
+
g.style.left = S / i + "px";
|
|
139312
139319
|
}
|
|
139313
139320
|
p.overlap !== !0 && s.push({ left: C, top: z, right: T, bottom: z + f }), u.classList.toggle("cm-tooltip-above", D), u.classList.toggle("cm-tooltip-below", !D), p.positioned && p.positioned(o.space);
|
|
139314
139321
|
}
|
|
@@ -144819,10 +144826,10 @@ function o9({
|
|
|
144819
144826
|
const g = ot.updateListener.of((N) => {
|
|
144820
144827
|
N.docChanged && i(N.state.doc.toString());
|
|
144821
144828
|
}), m = ot.updateListener.of((N) => {
|
|
144822
|
-
const z = N.transactions.flatMap((
|
|
144829
|
+
const z = N.transactions.flatMap((S) => S.effects).filter((S) => S.is(o3));
|
|
144823
144830
|
if (!z.length)
|
|
144824
144831
|
return;
|
|
144825
|
-
const T = z.flatMap((
|
|
144832
|
+
const T = z.flatMap((S) => S.value);
|
|
144826
144833
|
s(T);
|
|
144827
144834
|
}), A = ot.contentAttributes.of(a), f = ot.domEventHandlers(
|
|
144828
144835
|
{
|
|
@@ -147736,9 +147743,9 @@ var ODe = {
|
|
|
147736
147743
|
});
|
|
147737
147744
|
});
|
|
147738
147745
|
O && g(d());
|
|
147739
|
-
},
|
|
147740
|
-
|
|
147741
|
-
|
|
147746
|
+
}, S = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(T) : void 0, L = function() {
|
|
147747
|
+
S && (S.disconnect(), s.active && !s.paused && s.containers.map(function(j) {
|
|
147748
|
+
S.observe(j, {
|
|
147742
147749
|
subtree: !0,
|
|
147743
147750
|
childList: !0
|
|
147744
147751
|
});
|
|
@@ -147757,7 +147764,7 @@ var ODe = {
|
|
|
147757
147764
|
var O = l(j, "onActivate"), R = l(j, "onPostActivate"), V = l(j, "checkCanFocusTrap");
|
|
147758
147765
|
V || h(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = n.activeElement, O?.();
|
|
147759
147766
|
var q = function() {
|
|
147760
|
-
V && h(), N(),
|
|
147767
|
+
V && h(), N(), L(), R?.();
|
|
147761
147768
|
};
|
|
147762
147769
|
return V ? (V(s.containers.concat()).then(q, q), this) : (q(), this);
|
|
147763
147770
|
},
|
|
@@ -147769,7 +147776,7 @@ var ODe = {
|
|
|
147769
147776
|
onPostDeactivate: r.onPostDeactivate,
|
|
147770
147777
|
checkCanReturnFocus: r.checkCanReturnFocus
|
|
147771
147778
|
}, j);
|
|
147772
|
-
clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, z(), s.active = !1, s.paused = !1,
|
|
147779
|
+
clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, z(), s.active = !1, s.paused = !1, L(), ODe.deactivateTrap(i, a);
|
|
147773
147780
|
var R = l(O, "onDeactivate"), V = l(O, "onPostDeactivate"), q = l(O, "checkCanReturnFocus"), se = l(O, "returnFocus", "returnFocusOnDeactivate");
|
|
147774
147781
|
R?.();
|
|
147775
147782
|
var ue = function() {
|
|
@@ -147783,19 +147790,19 @@ var ODe = {
|
|
|
147783
147790
|
if (s.paused || !s.active)
|
|
147784
147791
|
return this;
|
|
147785
147792
|
var O = l(j, "onPause"), R = l(j, "onPostPause");
|
|
147786
|
-
return s.paused = !0, O?.(), z(),
|
|
147793
|
+
return s.paused = !0, O?.(), z(), L(), R?.(), this;
|
|
147787
147794
|
},
|
|
147788
147795
|
unpause: function(j) {
|
|
147789
147796
|
if (!s.paused || !s.active)
|
|
147790
147797
|
return this;
|
|
147791
147798
|
var O = l(j, "onUnpause"), R = l(j, "onPostUnpause");
|
|
147792
|
-
return s.paused = !1, O?.(), h(), N(),
|
|
147799
|
+
return s.paused = !1, O?.(), h(), N(), L(), R?.(), this;
|
|
147793
147800
|
},
|
|
147794
147801
|
updateContainerElements: function(j) {
|
|
147795
147802
|
var O = [].concat(j).filter(Boolean);
|
|
147796
147803
|
return s.containers = O.map(function(R) {
|
|
147797
147804
|
return typeof R == "string" ? n.querySelector(R) : R;
|
|
147798
|
-
}), s.active && h(),
|
|
147805
|
+
}), s.active && h(), L(), this;
|
|
147799
147806
|
}
|
|
147800
147807
|
}, a.updateContainerElements(e), a;
|
|
147801
147808
|
}, v_e = function(e) {
|
|
@@ -147940,7 +147947,7 @@ function mFt(o) {
|
|
|
147940
147947
|
}, D = (N) => {
|
|
147941
147948
|
const {
|
|
147942
147949
|
relatedTarget: z
|
|
147943
|
-
} = N, T = (
|
|
147950
|
+
} = N, T = (S) => !!S.closest(".bio-properties-panel-tooltip");
|
|
147944
147951
|
s && !fFt(d.current) && z && !T(z) && m();
|
|
147945
147952
|
};
|
|
147946
147953
|
return document.addEventListener("wheel", C), document.addEventListener("focusout", D), document.addEventListener("mousemove", C), () => {
|
|
@@ -148111,8 +148118,8 @@ fh((o, e) => {
|
|
|
148111
148118
|
const N = (z) => {
|
|
148112
148119
|
if (z.key !== "Backspace" || !D)
|
|
148113
148120
|
return;
|
|
148114
|
-
const T = D.getSelection(),
|
|
148115
|
-
|
|
148121
|
+
const T = D.getSelection(), S = T.ranges[T.mainIndex];
|
|
148122
|
+
S.from === 0 && S.to === 0 && s();
|
|
148116
148123
|
};
|
|
148117
148124
|
return D = new r3({
|
|
148118
148125
|
container: g.current,
|
|
@@ -151323,22 +151330,22 @@ function aL(o, e, t) {
|
|
|
151323
151330
|
}
|
|
151324
151331
|
const V_e = Pt(({ element: o }) => {
|
|
151325
151332
|
const { displayNotification: e } = pr(Fo), [t, n] = it(!1), [i, r] = it(!1), [s, a] = it(""), [l, p] = it(!1), { instanceKey: u, processInstance: d } = Ie.state, h = HL(o), g = _s.state.statistics.some(
|
|
151326
|
-
({ activityId:
|
|
151333
|
+
({ activityId: L, active: _ }) => L === o.id && _ > 0
|
|
151327
151334
|
), m = g && M7e.includes(o.businessObject.$type) && h !== void 0, A = f5.state.userTasks?.find(
|
|
151328
|
-
(
|
|
151335
|
+
(L) => L.taskDefinitionId === o.id && L.taskState === "CREATED"
|
|
151329
151336
|
), f = m || A !== void 0;
|
|
151330
151337
|
Qt(() => {
|
|
151331
151338
|
p(!1);
|
|
151332
151339
|
}, [f]);
|
|
151333
151340
|
const w = Et.getAvailableErrorEvents(o), v = Ri(async () => {
|
|
151334
151341
|
r(!1), p(!0);
|
|
151335
|
-
const
|
|
151342
|
+
const L = await B0.throwError({
|
|
151336
151343
|
taskDefinitionType: h,
|
|
151337
151344
|
processInstanceKey: u,
|
|
151338
151345
|
errorCode: s,
|
|
151339
151346
|
elementId: o.id
|
|
151340
151347
|
});
|
|
151341
|
-
if (
|
|
151348
|
+
if (L && u !== void 0) {
|
|
151342
151349
|
ms(ao(u), {
|
|
151343
151350
|
action: "throwJob",
|
|
151344
151351
|
elementId: o.id,
|
|
@@ -151368,7 +151375,7 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151368
151375
|
}
|
|
151369
151376
|
);
|
|
151370
151377
|
}
|
|
151371
|
-
|
|
151378
|
+
L || (e?.error(
|
|
151372
151379
|
{
|
|
151373
151380
|
title: Qo.title,
|
|
151374
151381
|
subtitle: "Please try again or make sure you have the right permissions to throw an error"
|
|
@@ -151383,8 +151390,8 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151383
151390
|
s,
|
|
151384
151391
|
u
|
|
151385
151392
|
]), C = Ri(
|
|
151386
|
-
async (
|
|
151387
|
-
|
|
151393
|
+
async (L) => {
|
|
151394
|
+
L ? e?.error(
|
|
151388
151395
|
{
|
|
151389
151396
|
title: ep,
|
|
151390
151397
|
subtitle: `Please contact your ${Fe.authType === "sm" ? "admin" : "organization owner or admin"} to give you the necessary permissions to update the user task.`
|
|
@@ -151409,7 +151416,7 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151409
151416
|
element: o,
|
|
151410
151417
|
useCache: !0,
|
|
151411
151418
|
processId: Fe.processId
|
|
151412
|
-
}),
|
|
151419
|
+
}), S = [
|
|
151413
151420
|
{
|
|
151414
151421
|
label: eg({
|
|
151415
151422
|
prefix: "Complete job",
|
|
@@ -151419,28 +151426,28 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151419
151426
|
renderIcon: () => /* @__PURE__ */ E.jsx(WL, { color: "white" }),
|
|
151420
151427
|
onClick: async () => {
|
|
151421
151428
|
p(!0);
|
|
151422
|
-
let
|
|
151429
|
+
let L = !1, _ = !1;
|
|
151423
151430
|
if (o.type === "bpmn:UserTask") {
|
|
151424
151431
|
const { success: j, status: O } = await gt.completeUserTask({
|
|
151425
151432
|
taskId: A?.id,
|
|
151426
151433
|
variables: N,
|
|
151427
151434
|
isZeebeUserTask: A?.implementation === "ZEEBE_USER_TASK"
|
|
151428
151435
|
});
|
|
151429
|
-
|
|
151436
|
+
L = j, _ = O === Rl;
|
|
151430
151437
|
} else
|
|
151431
|
-
|
|
151438
|
+
L = await B0.completeJob({
|
|
151432
151439
|
taskDefinitionType: h,
|
|
151433
151440
|
processInstanceKey: d?.key,
|
|
151434
151441
|
variables: N,
|
|
151435
151442
|
elementId: o.id
|
|
151436
151443
|
});
|
|
151437
|
-
if (
|
|
151444
|
+
if (L && d !== void 0 && (ms(ao(d.key), {
|
|
151438
151445
|
action: "completeJob",
|
|
151439
151446
|
type: o.type === "bpmn:UserTask" ? "userTask" : "serviceTask",
|
|
151440
151447
|
elementId: o.id,
|
|
151441
151448
|
variables: N || void 0,
|
|
151442
151449
|
taskDefinitionType: h
|
|
151443
|
-
}), Qn.trackUserCompletesElement(o, N)), !
|
|
151450
|
+
}), Qn.trackUserCompletesElement(o, N)), !L)
|
|
151444
151451
|
C(_), p(!1);
|
|
151445
151452
|
else {
|
|
151446
151453
|
const j = eg({ prefillSource: z }) || void 0;
|
|
@@ -151456,7 +151463,7 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151456
151463
|
}
|
|
151457
151464
|
}
|
|
151458
151465
|
];
|
|
151459
|
-
return m && w.length > 0 &&
|
|
151466
|
+
return m && w.length > 0 && S.push(
|
|
151460
151467
|
{
|
|
151461
151468
|
//@ts-expect-error Object literal may only specify known properties, and 'type' does not exist in type '{ label: string; renderIcon: () => Element; onClick: () => Promise<void>; } | { label: string; onClick: () => void; renderIcon?: undefined; }'.ts(2353)
|
|
151462
151469
|
type: "divider",
|
|
@@ -151479,7 +151486,7 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151479
151486
|
xu,
|
|
151480
151487
|
{
|
|
151481
151488
|
disabled: l || D,
|
|
151482
|
-
actions:
|
|
151489
|
+
actions: S
|
|
151483
151490
|
}
|
|
151484
151491
|
)
|
|
151485
151492
|
}
|
|
@@ -151492,13 +151499,13 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151492
151499
|
primaryButtonLabel: "Complete job",
|
|
151493
151500
|
onClose: () => n(!1),
|
|
151494
151501
|
element: o,
|
|
151495
|
-
onSubmit: async (
|
|
151502
|
+
onSubmit: async (L) => {
|
|
151496
151503
|
n(!1), p(!0);
|
|
151497
151504
|
let _ = !1, j = !1;
|
|
151498
151505
|
if (o.type === "bpmn:UserTask") {
|
|
151499
151506
|
const { success: O, status: R } = await gt.completeUserTask({
|
|
151500
151507
|
taskId: A?.id,
|
|
151501
|
-
variables:
|
|
151508
|
+
variables: L ?? "{}",
|
|
151502
151509
|
isZeebeUserTask: A?.implementation === "ZEEBE_USER_TASK"
|
|
151503
151510
|
});
|
|
151504
151511
|
_ = O, j = R === Rl;
|
|
@@ -151506,22 +151513,22 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151506
151513
|
_ = await B0.completeJob({
|
|
151507
151514
|
taskDefinitionType: h,
|
|
151508
151515
|
processInstanceKey: d?.key,
|
|
151509
|
-
variables:
|
|
151516
|
+
variables: L,
|
|
151510
151517
|
elementId: o.id
|
|
151511
151518
|
});
|
|
151512
151519
|
_ && d !== void 0 && (ms(ao(d.key), {
|
|
151513
151520
|
action: "completeJob",
|
|
151514
151521
|
type: o.type === "bpmn:UserTask" ? "userTask" : "serviceTask",
|
|
151515
151522
|
elementId: o.id,
|
|
151516
|
-
variables:
|
|
151523
|
+
variables: L ?? void 0,
|
|
151517
151524
|
taskDefinitionType: h
|
|
151518
151525
|
}), Qn.trackUserCompletesElement(
|
|
151519
151526
|
o,
|
|
151520
|
-
|
|
151527
|
+
L
|
|
151521
151528
|
), hb({
|
|
151522
151529
|
processId: Fe.processId,
|
|
151523
151530
|
elementId: o.id,
|
|
151524
|
-
variables:
|
|
151531
|
+
variables: L ?? ""
|
|
151525
151532
|
})), _ ? aL(o, e) : (C(j), p(!1));
|
|
151526
151533
|
}
|
|
151527
151534
|
}
|
|
@@ -151547,17 +151554,17 @@ const V_e = Pt(({ element: o }) => {
|
|
|
151547
151554
|
id: "error",
|
|
151548
151555
|
"aria-label": "Select an Error",
|
|
151549
151556
|
items: w.map(
|
|
151550
|
-
({ errorCode:
|
|
151551
|
-
id:
|
|
151557
|
+
({ errorCode: L, errorName: _, errorElementId: j }) => ({
|
|
151558
|
+
id: L,
|
|
151552
151559
|
label: _ ?? j
|
|
151553
151560
|
})
|
|
151554
151561
|
),
|
|
151555
|
-
onChange: ({ selectedItem:
|
|
151556
|
-
if (
|
|
151562
|
+
onChange: ({ selectedItem: L }) => {
|
|
151563
|
+
if (L === null) {
|
|
151557
151564
|
a("");
|
|
151558
151565
|
return;
|
|
151559
151566
|
}
|
|
151560
|
-
a(
|
|
151567
|
+
a(L?.id);
|
|
151561
151568
|
}
|
|
151562
151569
|
}
|
|
151563
151570
|
)
|
|
@@ -152579,7 +152586,7 @@ const FWt = (o) => ({
|
|
|
152579
152586
|
}, g = u_(i), m = p_(g), A = await s.getDimensions(p), f = g === "y", w = f ? "top" : "left", v = f ? "bottom" : "right", C = f ? "clientHeight" : "clientWidth", D = r.reference[m] + r.reference[g] - h[g] - r.floating[m], N = h[g] - r.reference[g], z = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(p));
|
|
152580
152587
|
let T = z ? z[C] : 0;
|
|
152581
152588
|
(!T || !await (s.isElement == null ? void 0 : s.isElement(z))) && (T = a.floating[C] || r.floating[m]);
|
|
152582
|
-
const
|
|
152589
|
+
const S = D / 2 - N / 2, L = T / 2 - A[m] / 2 - 1, _ = rm(d[w], L), j = rm(d[v], L), O = _, R = T - A[m] - j, V = T / 2 - A[m] / 2 + S, q = kWt(O, V, R), se = !l.arrow && c3(i) != null && V !== q && r.reference[m] / 2 - (V < O ? _ : j) - A[m] / 2 < 0, ue = se ? V < O ? V - O : V - R : 0;
|
|
152583
152590
|
return {
|
|
152584
152591
|
[g]: h[g] + ue,
|
|
152585
152592
|
data: {
|
|
@@ -152618,16 +152625,16 @@ const FWt = (o) => ({
|
|
|
152618
152625
|
return {};
|
|
152619
152626
|
const w = sm(i), v = y1(a), C = sm(a) === a, D = await (l.isRTL == null ? void 0 : l.isRTL(p.floating)), N = h || (C || !A ? [Yw(a)] : RWt(a)), z = m !== "none";
|
|
152620
152627
|
!h && z && N.push(...VWt(a, A, m, D));
|
|
152621
|
-
const T = [a, ...N],
|
|
152628
|
+
const T = [a, ...N], S = await qWt(e, f), L = [];
|
|
152622
152629
|
let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
152623
|
-
if (u &&
|
|
152630
|
+
if (u && L.push(S[w]), d) {
|
|
152624
152631
|
const V = _Wt(i, s, D);
|
|
152625
|
-
|
|
152632
|
+
L.push(S[V[0]], S[V[1]]);
|
|
152626
152633
|
}
|
|
152627
152634
|
if (_ = [..._, {
|
|
152628
152635
|
placement: i,
|
|
152629
|
-
overflows:
|
|
152630
|
-
}], !
|
|
152636
|
+
overflows: L
|
|
152637
|
+
}], !L.every((V) => V <= 0)) {
|
|
152631
152638
|
var j, O;
|
|
152632
152639
|
const V = (((j = r.flip) == null ? void 0 : j.index) || 0) + 1, q = T[V];
|
|
152633
152640
|
if (q && (!(d === "alignment" ? v !== y1(q) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -153296,7 +153303,7 @@ function IZt(o) {
|
|
|
153296
153303
|
me !== z.current && (z.current = me, A(me));
|
|
153297
153304
|
}, []), C = nt.useCallback((me) => {
|
|
153298
153305
|
me !== T.current && (T.current = me, w(me));
|
|
153299
|
-
}, []), D = r || m, N = s || f, z = nt.useRef(null), T = nt.useRef(null),
|
|
153306
|
+
}, []), D = r || m, N = s || f, z = nt.useRef(null), T = nt.useRef(null), S = nt.useRef(u), L = l != null, _ = xN(l), j = xN(i), O = xN(p), R = nt.useCallback(() => {
|
|
153300
153307
|
if (!z.current || !T.current)
|
|
153301
153308
|
return;
|
|
153302
153309
|
const me = {
|
|
@@ -153313,13 +153320,13 @@ function IZt(o) {
|
|
|
153313
153320
|
// setting it to `true` when `open === false` (must be specified).
|
|
153314
153321
|
isPositioned: O.current !== !1
|
|
153315
153322
|
};
|
|
153316
|
-
V.current && !Zw(
|
|
153323
|
+
V.current && !Zw(S.current, oe) && (S.current = oe, MRe.flushSync(() => {
|
|
153317
153324
|
d(oe);
|
|
153318
153325
|
}));
|
|
153319
153326
|
});
|
|
153320
153327
|
}, [h, e, t, j, O]);
|
|
153321
153328
|
i5(() => {
|
|
153322
|
-
p === !1 &&
|
|
153329
|
+
p === !1 && S.current.isPositioned && (S.current.isPositioned = !1, d((me) => ({
|
|
153323
153330
|
...me,
|
|
153324
153331
|
isPositioned: !1
|
|
153325
153332
|
})));
|
|
@@ -153333,7 +153340,7 @@ function IZt(o) {
|
|
|
153333
153340
|
return _.current(D, N, R);
|
|
153334
153341
|
R();
|
|
153335
153342
|
}
|
|
153336
|
-
}, [D, N, R, _,
|
|
153343
|
+
}, [D, N, R, _, L]);
|
|
153337
153344
|
const q = nt.useMemo(() => ({
|
|
153338
153345
|
reference: z,
|
|
153339
153346
|
floating: T,
|
|
@@ -154133,8 +154140,8 @@ const xJt = ({
|
|
|
154133
154140
|
isUserOrgOwnerOrAdmin: N,
|
|
154134
154141
|
organizationManagementPageUrl: z,
|
|
154135
154142
|
currentDiagramRevision: T,
|
|
154136
|
-
updateFileById:
|
|
154137
|
-
originAppInstanceId:
|
|
154143
|
+
updateFileById: S,
|
|
154144
|
+
originAppInstanceId: L,
|
|
154138
154145
|
canUserSaveExampleData: _,
|
|
154139
154146
|
diagramId: j,
|
|
154140
154147
|
FeedbackButton: O
|
|
@@ -154200,8 +154207,8 @@ const xJt = ({
|
|
|
154200
154207
|
consoleDashboardPageUrl: D,
|
|
154201
154208
|
clusterId: ue,
|
|
154202
154209
|
currentDiagramRevision: T,
|
|
154203
|
-
updateFileById:
|
|
154204
|
-
originAppInstanceId:
|
|
154210
|
+
updateFileById: S,
|
|
154211
|
+
originAppInstanceId: L,
|
|
154205
154212
|
canUserSaveExampleData: _,
|
|
154206
154213
|
diagramId: j,
|
|
154207
154214
|
authType: q,
|
|
@@ -154221,8 +154228,8 @@ const xJt = ({
|
|
|
154221
154228
|
t,
|
|
154222
154229
|
D,
|
|
154223
154230
|
T,
|
|
154224
|
-
L,
|
|
154225
154231
|
S,
|
|
154232
|
+
L,
|
|
154226
154233
|
_,
|
|
154227
154234
|
j,
|
|
154228
154235
|
q,
|
|
@@ -154232,15 +154239,15 @@ const xJt = ({
|
|
|
154232
154239
|
fetchTestsByProcessId: w,
|
|
154233
154240
|
displayNotification: p,
|
|
154234
154241
|
createFile: v,
|
|
154235
|
-
updateFileById:
|
|
154236
|
-
originAppInstanceId:
|
|
154242
|
+
updateFileById: S,
|
|
154243
|
+
originAppInstanceId: L
|
|
154237
154244
|
});
|
|
154238
154245
|
}, [
|
|
154239
154246
|
w,
|
|
154240
154247
|
p,
|
|
154241
|
-
|
|
154248
|
+
L,
|
|
154242
154249
|
v,
|
|
154243
|
-
|
|
154250
|
+
S
|
|
154244
154251
|
]);
|
|
154245
154252
|
const be = Vqe(q, ue);
|
|
154246
154253
|
Qt(() => {
|