@digitalsee-ai/rcs 2.0.0-beta3 → 2.0.0-beta5
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.
|
@@ -3371,12 +3371,12 @@ function Of(t, e, n) {
|
|
|
3371
3371
|
if (c === 1 / 0)
|
|
3372
3372
|
return JSON.stringify(w);
|
|
3373
3373
|
const k = [];
|
|
3374
|
-
return JSON.stringify(w, function(x,
|
|
3375
|
-
if (!J.isObject(
|
|
3376
|
-
return
|
|
3374
|
+
return JSON.stringify(w, function(x, S) {
|
|
3375
|
+
if (!J.isObject(S))
|
|
3376
|
+
return S;
|
|
3377
3377
|
for (; k.length && k[k.length - 1] !== this; )
|
|
3378
3378
|
k.pop();
|
|
3379
|
-
return k.push(
|
|
3379
|
+
return k.push(S), h(b + k.length - 1), S;
|
|
3380
3380
|
});
|
|
3381
3381
|
}
|
|
3382
3382
|
function y(w, b, k) {
|
|
@@ -3387,11 +3387,11 @@ function Of(t, e, n) {
|
|
|
3387
3387
|
if (J.endsWith(b, "{}"))
|
|
3388
3388
|
b = o ? b : b.slice(0, -2), w = m(w, 1);
|
|
3389
3389
|
else if (J.isArray(w) && EP(w) || (J.isFileList(w) || J.endsWith(b, "[]")) && (C = J.toArray(w)))
|
|
3390
|
-
return b = oD(b), C.forEach(function(
|
|
3391
|
-
!(J.isUndefined(
|
|
3390
|
+
return b = oD(b), C.forEach(function(S, E) {
|
|
3391
|
+
!(J.isUndefined(S) || S === null) && e.append(
|
|
3392
3392
|
// eslint-disable-next-line no-nested-ternary
|
|
3393
|
-
a === !0 ? Sh([b],
|
|
3394
|
-
f(
|
|
3393
|
+
a === !0 ? Sh([b], E, s) : a === null ? b : b + "[]",
|
|
3394
|
+
f(S)
|
|
3395
3395
|
);
|
|
3396
3396
|
}), !1;
|
|
3397
3397
|
}
|
|
@@ -3406,8 +3406,8 @@ function Of(t, e, n) {
|
|
|
3406
3406
|
if (!J.isUndefined(w)) {
|
|
3407
3407
|
if (h(k), d.indexOf(w) !== -1)
|
|
3408
3408
|
throw new Error("Circular reference detected in " + b.join("."));
|
|
3409
|
-
d.push(w), J.forEach(w, function(x,
|
|
3410
|
-
(!(J.isUndefined(x) || x === null) && i.call(e, x, J.isString(
|
|
3409
|
+
d.push(w), J.forEach(w, function(x, S) {
|
|
3410
|
+
(!(J.isUndefined(x) || x === null) && i.call(e, x, J.isString(S) ? S.trim() : S, b, v)) === !0 && g(x, b ? b.concat(S) : [S], k + 1);
|
|
3411
3411
|
}), d.pop();
|
|
3412
3412
|
}
|
|
3413
3413
|
}
|
|
@@ -4067,16 +4067,16 @@ const ZP = typeof XMLHttpRequest < "u", e2 = ZP && function(t) {
|
|
|
4067
4067
|
}
|
|
4068
4068
|
try {
|
|
4069
4069
|
k ? y && y(k) : m && m();
|
|
4070
|
-
} catch (
|
|
4070
|
+
} catch (E) {
|
|
4071
4071
|
setTimeout(() => {
|
|
4072
|
-
throw
|
|
4072
|
+
throw E;
|
|
4073
4073
|
});
|
|
4074
4074
|
}
|
|
4075
4075
|
if (!g)
|
|
4076
4076
|
return;
|
|
4077
4077
|
const C = bn.from(
|
|
4078
4078
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
4079
|
-
),
|
|
4079
|
+
), S = {
|
|
4080
4080
|
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
4081
4081
|
status: g.status,
|
|
4082
4082
|
statusText: g.statusText,
|
|
@@ -4091,7 +4091,7 @@ const ZP = typeof XMLHttpRequest < "u", e2 = ZP && function(t) {
|
|
|
4091
4091
|
function(_) {
|
|
4092
4092
|
r(_), v();
|
|
4093
4093
|
},
|
|
4094
|
-
|
|
4094
|
+
S
|
|
4095
4095
|
), g = null;
|
|
4096
4096
|
}
|
|
4097
4097
|
"onloadend" in g ? g.onloadend = w : g.onreadystatechange = function() {
|
|
@@ -4099,8 +4099,8 @@ const ZP = typeof XMLHttpRequest < "u", e2 = ZP && function(t) {
|
|
|
4099
4099
|
}, g.onabort = function() {
|
|
4100
4100
|
g && (r(new Ne("Request aborted", Ne.ECONNABORTED, t, g)), v(), g = null);
|
|
4101
4101
|
}, g.onerror = function(C) {
|
|
4102
|
-
const x = C && C.message ? C.message : "Network Error",
|
|
4103
|
-
|
|
4102
|
+
const x = C && C.message ? C.message : "Network Error", S = new Ne(x, Ne.ERR_NETWORK, t, g);
|
|
4103
|
+
S.event = C || null, r(S), v(), g = null;
|
|
4104
4104
|
}, g.ontimeout = function() {
|
|
4105
4105
|
let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
4106
4106
|
const x = o.transitional || cy;
|
|
@@ -4384,8 +4384,8 @@ const dy = "1.20.0", A0 = 64 * 1024, f2 = {
|
|
|
4384
4384
|
data: k,
|
|
4385
4385
|
signal: C,
|
|
4386
4386
|
cancelToken: x,
|
|
4387
|
-
timeout:
|
|
4388
|
-
onDownloadProgress:
|
|
4387
|
+
timeout: S,
|
|
4388
|
+
onDownloadProgress: E,
|
|
4389
4389
|
onUploadProgress: _,
|
|
4390
4390
|
responseType: D,
|
|
4391
4391
|
headers: T,
|
|
@@ -4400,7 +4400,7 @@ const dy = "1.20.0", A0 = 64 * 1024, f2 = {
|
|
|
4400
4400
|
D = D ? (D + "").toLowerCase() : "text";
|
|
4401
4401
|
let Z = t2(
|
|
4402
4402
|
[C, x && x.toAbortSignal()],
|
|
4403
|
-
|
|
4403
|
+
S
|
|
4404
4404
|
), Q = null;
|
|
4405
4405
|
const M = Z && Z.unsubscribe && (() => {
|
|
4406
4406
|
Z.unsubscribe();
|
|
@@ -4515,14 +4515,14 @@ const dy = "1.20.0", A0 = 64 * 1024, f2 = {
|
|
|
4515
4515
|
);
|
|
4516
4516
|
}
|
|
4517
4517
|
const me = h && (D === "stream" || D === "response");
|
|
4518
|
-
if (h && ee.body && (
|
|
4518
|
+
if (h && ee.body && (E || F || me && M)) {
|
|
4519
4519
|
const ae = {};
|
|
4520
4520
|
["status", "statusText", "headers"].forEach((Ze) => {
|
|
4521
4521
|
ae[Ze] = ee[Ze];
|
|
4522
4522
|
});
|
|
4523
|
-
const he = J.toFiniteNumber(de.getContentLength()), [Ie, Le] =
|
|
4523
|
+
const he = J.toFiniteNumber(de.getContentLength()), [Ie, Le] = E && C0(
|
|
4524
4524
|
he,
|
|
4525
|
-
bd(k0(
|
|
4525
|
+
bd(k0(E), !0)
|
|
4526
4526
|
) || [];
|
|
4527
4527
|
let Fe = 0;
|
|
4528
4528
|
const dt = (Ze) => {
|
|
@@ -6156,9 +6156,9 @@ function G2(t) {
|
|
|
6156
6156
|
t === void 0 && (t = {});
|
|
6157
6157
|
var e = t, n = e.window, r = n === void 0 ? document.defaultView : n, o = r.history;
|
|
6158
6158
|
function i() {
|
|
6159
|
-
var
|
|
6159
|
+
var S = r.location, E = S.pathname, _ = S.search, D = S.hash, T = o.state || {};
|
|
6160
6160
|
return [T.idx, P0({
|
|
6161
|
-
pathname:
|
|
6161
|
+
pathname: E,
|
|
6162
6162
|
search: _,
|
|
6163
6163
|
hash: D,
|
|
6164
6164
|
state: T.usr || null,
|
|
@@ -6170,12 +6170,12 @@ function G2(t) {
|
|
|
6170
6170
|
if (s)
|
|
6171
6171
|
h.call(s), s = null;
|
|
6172
6172
|
else {
|
|
6173
|
-
var
|
|
6173
|
+
var S = ks.Pop, E = i(), _ = E[0], D = E[1];
|
|
6174
6174
|
if (h.length) {
|
|
6175
6175
|
if (_ != null) {
|
|
6176
6176
|
var T = u - _;
|
|
6177
6177
|
T && (s = {
|
|
6178
|
-
action:
|
|
6178
|
+
action: S,
|
|
6179
6179
|
location: D,
|
|
6180
6180
|
retry: function() {
|
|
6181
6181
|
C(T * -1);
|
|
@@ -6183,7 +6183,7 @@ function G2(t) {
|
|
|
6183
6183
|
}, C(T));
|
|
6184
6184
|
}
|
|
6185
6185
|
} else
|
|
6186
|
-
w(
|
|
6186
|
+
w(S);
|
|
6187
6187
|
}
|
|
6188
6188
|
}
|
|
6189
6189
|
r.addEventListener(q2, a);
|
|
@@ -6191,45 +6191,45 @@ function G2(t) {
|
|
|
6191
6191
|
u == null && (u = 0, o.replaceState(qi({}, o.state, {
|
|
6192
6192
|
idx: u
|
|
6193
6193
|
}), ""));
|
|
6194
|
-
function m(
|
|
6195
|
-
return typeof
|
|
6194
|
+
function m(S) {
|
|
6195
|
+
return typeof S == "string" ? S : Y2(S);
|
|
6196
6196
|
}
|
|
6197
|
-
function y(
|
|
6198
|
-
return
|
|
6197
|
+
function y(S, E) {
|
|
6198
|
+
return E === void 0 && (E = null), P0(qi({
|
|
6199
6199
|
pathname: d.pathname,
|
|
6200
6200
|
hash: "",
|
|
6201
6201
|
search: ""
|
|
6202
|
-
}, typeof
|
|
6203
|
-
state:
|
|
6202
|
+
}, typeof S == "string" ? X2(S) : S, {
|
|
6203
|
+
state: E,
|
|
6204
6204
|
key: K2()
|
|
6205
6205
|
}));
|
|
6206
6206
|
}
|
|
6207
|
-
function v(
|
|
6207
|
+
function v(S, E) {
|
|
6208
6208
|
return [{
|
|
6209
|
-
usr:
|
|
6210
|
-
key:
|
|
6211
|
-
idx:
|
|
6212
|
-
}, m(
|
|
6209
|
+
usr: S.state,
|
|
6210
|
+
key: S.key,
|
|
6211
|
+
idx: E
|
|
6212
|
+
}, m(S)];
|
|
6213
6213
|
}
|
|
6214
|
-
function g(
|
|
6214
|
+
function g(S, E, _) {
|
|
6215
6215
|
return !h.length || (h.call({
|
|
6216
|
-
action:
|
|
6217
|
-
location:
|
|
6216
|
+
action: S,
|
|
6217
|
+
location: E,
|
|
6218
6218
|
retry: _
|
|
6219
6219
|
}), !1);
|
|
6220
6220
|
}
|
|
6221
|
-
function w(
|
|
6222
|
-
l =
|
|
6223
|
-
var
|
|
6224
|
-
u =
|
|
6221
|
+
function w(S) {
|
|
6222
|
+
l = S;
|
|
6223
|
+
var E = i();
|
|
6224
|
+
u = E[0], d = E[1], f.call({
|
|
6225
6225
|
action: l,
|
|
6226
6226
|
location: d
|
|
6227
6227
|
});
|
|
6228
6228
|
}
|
|
6229
|
-
function b(
|
|
6230
|
-
var _ = ks.Push, D = y(
|
|
6229
|
+
function b(S, E) {
|
|
6230
|
+
var _ = ks.Push, D = y(S, E);
|
|
6231
6231
|
function T() {
|
|
6232
|
-
b(
|
|
6232
|
+
b(S, E);
|
|
6233
6233
|
}
|
|
6234
6234
|
if (g(_, D, T)) {
|
|
6235
6235
|
var O = v(D, u + 1), B = O[0], I = O[1];
|
|
@@ -6241,18 +6241,18 @@ function G2(t) {
|
|
|
6241
6241
|
w(_);
|
|
6242
6242
|
}
|
|
6243
6243
|
}
|
|
6244
|
-
function k(
|
|
6245
|
-
var _ = ks.Replace, D = y(
|
|
6244
|
+
function k(S, E) {
|
|
6245
|
+
var _ = ks.Replace, D = y(S, E);
|
|
6246
6246
|
function T() {
|
|
6247
|
-
k(
|
|
6247
|
+
k(S, E);
|
|
6248
6248
|
}
|
|
6249
6249
|
if (g(_, D, T)) {
|
|
6250
6250
|
var O = v(D, u), B = O[0], I = O[1];
|
|
6251
6251
|
o.replaceState(B, "", I), w(_);
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
|
-
function C(
|
|
6255
|
-
o.go(
|
|
6254
|
+
function C(S) {
|
|
6255
|
+
o.go(S);
|
|
6256
6256
|
}
|
|
6257
6257
|
var x = {
|
|
6258
6258
|
get action() {
|
|
@@ -6271,11 +6271,11 @@ function G2(t) {
|
|
|
6271
6271
|
forward: function() {
|
|
6272
6272
|
C(1);
|
|
6273
6273
|
},
|
|
6274
|
-
listen: function(
|
|
6275
|
-
return f.push(
|
|
6274
|
+
listen: function(E) {
|
|
6275
|
+
return f.push(E);
|
|
6276
6276
|
},
|
|
6277
|
-
block: function(
|
|
6278
|
-
var _ = h.push(
|
|
6277
|
+
block: function(E) {
|
|
6278
|
+
var _ = h.push(E);
|
|
6279
6279
|
return h.length === 1 && r.addEventListener(L0, $0), function() {
|
|
6280
6280
|
_(), h.length || r.removeEventListener(L0, $0);
|
|
6281
6281
|
};
|
|
@@ -7324,7 +7324,7 @@ const _r = /* @__PURE__ */ gr(XL), ob = ({
|
|
|
7324
7324
|
connectionLimit: h = 1 / 0,
|
|
7325
7325
|
index: m
|
|
7326
7326
|
}) => {
|
|
7327
|
-
const { getHandleConnections: y, handleStatus: v } = zL(), { getEdges: g, getNode: w } = Mr(), { getNodes: b } = cc(), k = zt(), C = fn(), { openNodeSelector: x, nodeSelectorVisible:
|
|
7327
|
+
const { getHandleConnections: y, handleStatus: v } = zL(), { getEdges: g, getNode: w } = Mr(), { getNodes: b } = cc(), k = zt(), C = fn(), { openNodeSelector: x, nodeSelectorVisible: S } = If(), E = (W) => W.inProgress, O = y(n, e, ((W) => W === "source" ? fg.OUTPUT : fg.INPUT)(t)).length >= h, B = c0(E), I = c0(
|
|
7328
7328
|
(W) => GL({ connection: W, nodeId: n, handleId: e })
|
|
7329
7329
|
), A = O && !I, N = UL({
|
|
7330
7330
|
type: t,
|
|
@@ -7390,7 +7390,7 @@ const _r = /* @__PURE__ */ gr(XL), ob = ({
|
|
|
7390
7390
|
position: me,
|
|
7391
7391
|
protocol: X ? void 0 : d,
|
|
7392
7392
|
anchorNode: de,
|
|
7393
|
-
refresh:
|
|
7393
|
+
refresh: S
|
|
7394
7394
|
})
|
|
7395
7395
|
);
|
|
7396
7396
|
}, M = hs.main, z = () => {
|
|
@@ -8293,32 +8293,32 @@ const w4 = (t) => t.mode ?? t.configMode ?? "edit", y4 = (t, e) => t !== "previe
|
|
|
8293
8293
|
}) => {
|
|
8294
8294
|
const { handleNodeDataUpdate: s } = pa(), { addNodes: a, getNodes: l } = cc(), c = fn(), u = Us(t), d = zt(), f = ac(), h = jf(u), m = le(() => {
|
|
8295
8295
|
var T;
|
|
8296
|
-
const
|
|
8296
|
+
const S = c.nodeTypes;
|
|
8297
8297
|
if (!u) return;
|
|
8298
|
-
const
|
|
8299
|
-
if (
|
|
8298
|
+
const E = S.types[u.type];
|
|
8299
|
+
if (E) return E;
|
|
8300
8300
|
const _ = (T = u.data) == null ? void 0 : T.category;
|
|
8301
|
-
return _ ? Object.values(
|
|
8302
|
-
}, [c.nodeTypes, u]), y = le(() => ((m == null ? void 0 : m.operations) || []).reduce((
|
|
8301
|
+
return _ ? Object.values(S.types).find((O) => O.category === _) : void 0;
|
|
8302
|
+
}, [c.nodeTypes, u]), y = le(() => ((m == null ? void 0 : m.operations) || []).reduce((E, _) => (E[_.id] = _.enabled, E), {}), [m]), v = le(() => {
|
|
8303
8303
|
var _, D;
|
|
8304
8304
|
if (!u) return !1;
|
|
8305
|
-
const
|
|
8306
|
-
return
|
|
8305
|
+
const S = ((_ = c.canvas.fixedNodes) == null ? void 0 : _.triggerIds) || [], E = ((D = c.nodeTypes.fixed) == null ? void 0 : D.triggers) || [];
|
|
8306
|
+
return S.includes(u.id) || E.includes(u.type);
|
|
8307
8307
|
}, [c.canvas.fixedNodes, c.nodeTypes.fixed, u]), g = le(() => {
|
|
8308
8308
|
if (h)
|
|
8309
8309
|
return !1;
|
|
8310
|
-
const
|
|
8311
|
-
return
|
|
8310
|
+
const S = !b4.includes(i), E = y.copy === void 0 ? !0 : y.copy;
|
|
8311
|
+
return S && E && d;
|
|
8312
8312
|
}, [i, y, d, h]), w = le(() => {
|
|
8313
8313
|
if (h)
|
|
8314
8314
|
return !1;
|
|
8315
|
-
const
|
|
8316
|
-
return
|
|
8315
|
+
const S = !C4.includes(i), E = y.disable === void 0 ? !0 : y.disable;
|
|
8316
|
+
return S && E && d;
|
|
8317
8317
|
}, [i, y, d, h]), b = () => {
|
|
8318
|
-
YD(t, e ? "on" : "off").then((
|
|
8318
|
+
YD(t, e ? "on" : "off").then((S) => {
|
|
8319
8319
|
s({
|
|
8320
8320
|
id: t,
|
|
8321
|
-
data: { closed:
|
|
8321
|
+
data: { closed: S.closed, status: S.status }
|
|
8322
8322
|
});
|
|
8323
8323
|
});
|
|
8324
8324
|
}, k = le(() => !Dy(f) && !d, [f, d]);
|
|
@@ -8326,16 +8326,16 @@ const w4 = (t) => t.mode ?? t.configMode ?? "edit", y4 = (t, e) => t !== "previe
|
|
|
8326
8326
|
const C = () => {
|
|
8327
8327
|
r && r(t);
|
|
8328
8328
|
}, x = async () => {
|
|
8329
|
-
var
|
|
8330
|
-
const
|
|
8329
|
+
var E;
|
|
8330
|
+
const S = l();
|
|
8331
8331
|
try {
|
|
8332
|
-
const _ =
|
|
8332
|
+
const _ = S.find((O) => O.id === t);
|
|
8333
8333
|
if (!_) {
|
|
8334
8334
|
Ce.error("获取当前节点信息失败");
|
|
8335
8335
|
return;
|
|
8336
8336
|
}
|
|
8337
|
-
const D = (
|
|
8338
|
-
if (typeof D == "number" &&
|
|
8337
|
+
const D = (E = c.canvas.limits) == null ? void 0 : E.maxNodes;
|
|
8338
|
+
if (typeof D == "number" && S.length >= D) {
|
|
8339
8339
|
Ce.warning("已达到画布允许的最大节点数");
|
|
8340
8340
|
return;
|
|
8341
8341
|
}
|
|
@@ -8511,7 +8511,7 @@ const w4 = (t) => t.mode ?? t.configMode ?? "edit", y4 = (t, e) => t !== "previe
|
|
|
8511
8511
|
B.insertVariable(I, T);
|
|
8512
8512
|
},
|
|
8513
8513
|
[b]
|
|
8514
|
-
),
|
|
8514
|
+
), S = G(() => f.current, []), E = le(
|
|
8515
8515
|
() => ({
|
|
8516
8516
|
registerField: y,
|
|
8517
8517
|
unregisterField: v,
|
|
@@ -8523,7 +8523,7 @@ const w4 = (t) => t.mode ?? t.configMode ?? "edit", y4 = (t, e) => t !== "previe
|
|
|
8523
8523
|
validateVariable: C,
|
|
8524
8524
|
formatVariable: b,
|
|
8525
8525
|
extractVariable: k,
|
|
8526
|
-
getActiveFieldId:
|
|
8526
|
+
getActiveFieldId: S
|
|
8527
8527
|
}),
|
|
8528
8528
|
[
|
|
8529
8529
|
y,
|
|
@@ -8534,7 +8534,7 @@ const w4 = (t) => t.mode ?? t.configMode ?? "edit", y4 = (t, e) => t !== "previe
|
|
|
8534
8534
|
C,
|
|
8535
8535
|
b,
|
|
8536
8536
|
k,
|
|
8537
|
-
|
|
8537
|
+
S
|
|
8538
8538
|
]
|
|
8539
8539
|
), _ = le(
|
|
8540
8540
|
() => ({
|
|
@@ -8544,7 +8544,7 @@ const w4 = (t) => t.mode ?? t.configMode ?? "edit", y4 = (t, e) => t !== "previe
|
|
|
8544
8544
|
}),
|
|
8545
8545
|
[i, a, c]
|
|
8546
8546
|
);
|
|
8547
|
-
return /* @__PURE__ */ p(dc.Provider, { value:
|
|
8547
|
+
return /* @__PURE__ */ p(dc.Provider, { value: E, children: /* @__PURE__ */ p(_y.Provider, { value: _, children: t }) });
|
|
8548
8548
|
}, Nae = () => {
|
|
8549
8549
|
const t = wt(_y), e = wt(dc);
|
|
8550
8550
|
if (!t || !e)
|
|
@@ -10376,13 +10376,13 @@ var ze = {
|
|
|
10376
10376
|
n = u;
|
|
10377
10377
|
}
|
|
10378
10378
|
if (n.length > 1) {
|
|
10379
|
-
var
|
|
10380
|
-
for (var [
|
|
10381
|
-
var D =
|
|
10379
|
+
var S = 0;
|
|
10380
|
+
for (var [E, _] of n.entries()) {
|
|
10381
|
+
var D = S, T = D + _.leaf.text.length, O = {
|
|
10382
10382
|
start: D,
|
|
10383
10383
|
end: T
|
|
10384
10384
|
};
|
|
10385
|
-
|
|
10385
|
+
E === 0 && (O.isFirst = !0), E === n.length - 1 && (O.isLast = !0), _.position = O, S = T;
|
|
10386
10386
|
}
|
|
10387
10387
|
}
|
|
10388
10388
|
return n;
|
|
@@ -10534,22 +10534,22 @@ var L3 = {
|
|
|
10534
10534
|
if (Ci(t, j.parent(w), (U) => Dg(U, b, 1)), t.selection) {
|
|
10535
10535
|
var k = Ft({}, t.selection);
|
|
10536
10536
|
for (var [C, x] of ie.points(k)) {
|
|
10537
|
-
var
|
|
10538
|
-
if (k != null &&
|
|
10539
|
-
k[x] =
|
|
10537
|
+
var S = ft.transform(C, e);
|
|
10538
|
+
if (k != null && S != null)
|
|
10539
|
+
k[x] = S;
|
|
10540
10540
|
else {
|
|
10541
|
-
var
|
|
10541
|
+
var E = void 0, _ = void 0;
|
|
10542
10542
|
for (var [D, T] of _e.texts(t))
|
|
10543
10543
|
if (j.compare(T, w) === -1)
|
|
10544
|
-
|
|
10544
|
+
E = [D, T];
|
|
10545
10545
|
else {
|
|
10546
10546
|
_ = [D, T];
|
|
10547
10547
|
break;
|
|
10548
10548
|
}
|
|
10549
10549
|
var O = !1;
|
|
10550
|
-
|
|
10551
|
-
path:
|
|
10552
|
-
offset:
|
|
10550
|
+
E && _ && (j.isSibling(E[1], w) ? O = !1 : j.equals(_[1], w) ? O = !0 : O = j.common(E[1], w).length < j.common(_[1], w).length), E && !O ? k[x] = {
|
|
10551
|
+
path: E[1],
|
|
10552
|
+
offset: E[0].text.length
|
|
10553
10553
|
} : _ ? k[x] = {
|
|
10554
10554
|
path: _[1],
|
|
10555
10555
|
offset: 0
|
|
@@ -10885,9 +10885,9 @@ var W3 = (t, e) => {
|
|
|
10885
10885
|
}
|
|
10886
10886
|
case "split_node": {
|
|
10887
10887
|
var {
|
|
10888
|
-
path:
|
|
10889
|
-
} = e,
|
|
10890
|
-
return [...
|
|
10888
|
+
path: S
|
|
10889
|
+
} = e, E = j.levels(S), _ = j.next(S);
|
|
10890
|
+
return [...E, _];
|
|
10891
10891
|
}
|
|
10892
10892
|
default:
|
|
10893
10893
|
return [];
|
|
@@ -11590,19 +11590,19 @@ function z8(t) {
|
|
|
11590
11590
|
if (!n)
|
|
11591
11591
|
return;
|
|
11592
11592
|
var s = R.range(t, n), [a, l] = ie.edges(s), c = o ? l : a, u = !1, d = "", f = 0, h = 0, m = 0, y = [], v = function* (x) {
|
|
11593
|
-
var
|
|
11594
|
-
function*
|
|
11595
|
-
|
|
11593
|
+
var S = y.some((B) => j.isAncestor(B, x));
|
|
11594
|
+
function* E(B) {
|
|
11595
|
+
S || (yield B);
|
|
11596
11596
|
}
|
|
11597
11597
|
if (He.isElement(w)) {
|
|
11598
11598
|
if (!t.isSelectable(w)) {
|
|
11599
11599
|
if (y.push(x), o)
|
|
11600
|
-
return j.hasPrevious(x) && (yield*
|
|
11600
|
+
return j.hasPrevious(x) && (yield* E(R.end(t, j.previous(x)))), 0;
|
|
11601
11601
|
var _ = j.next(x);
|
|
11602
|
-
return R.hasPath(t, _) && (yield*
|
|
11602
|
+
return R.hasPath(t, _) && (yield* E(R.start(t, _))), 0;
|
|
11603
11603
|
}
|
|
11604
11604
|
if (!i && (t.isVoid(w) || t.isElementReadOnly(w)))
|
|
11605
|
-
return yield*
|
|
11605
|
+
return yield* E(R.start(t, x)), 0;
|
|
11606
11606
|
if (t.isInline(w)) return 0;
|
|
11607
11607
|
if (R.hasInlines(t, w)) {
|
|
11608
11608
|
var D = j.isAncestor(x, l.path) ? l : R.end(t, x), T = j.isAncestor(x, a.path) ? a : R.start(t, x);
|
|
@@ -11616,7 +11616,7 @@ function z8(t) {
|
|
|
11616
11616
|
}
|
|
11617
11617
|
if (ze.isText(w)) {
|
|
11618
11618
|
var O = j.equals(x, c.path);
|
|
11619
|
-
for (O ? (h = o ? c.offset : w.text.length - c.offset, m = c.offset) : (h = w.text.length, m = o ? h : 0), (O || u || r === "offset") && (yield*
|
|
11619
|
+
for (O ? (h = o ? c.offset : w.text.length - c.offset, m = c.offset) : (h = w.text.length, m = o ? h : 0), (O || u || r === "offset") && (yield* E({
|
|
11620
11620
|
path: x,
|
|
11621
11621
|
offset: m
|
|
11622
11622
|
}), u = !1); ; ) {
|
|
@@ -11628,7 +11628,7 @@ function z8(t) {
|
|
|
11628
11628
|
f = -h;
|
|
11629
11629
|
break;
|
|
11630
11630
|
}
|
|
11631
|
-
f = 0, yield*
|
|
11631
|
+
f = 0, yield* E({
|
|
11632
11632
|
path: x,
|
|
11633
11633
|
offset: m
|
|
11634
11634
|
});
|
|
@@ -11641,8 +11641,8 @@ function z8(t) {
|
|
|
11641
11641
|
voids: i
|
|
11642
11642
|
}))
|
|
11643
11643
|
g = yield* v(b);
|
|
11644
|
-
function k(C, x,
|
|
11645
|
-
return x === "character" ? By(C,
|
|
11644
|
+
function k(C, x, S) {
|
|
11645
|
+
return x === "character" ? By(C, S) : x === "word" ? h3(C, S) : x === "line" || x === "block" ? C.length : 1;
|
|
11646
11646
|
}
|
|
11647
11647
|
})();
|
|
11648
11648
|
}
|
|
@@ -11874,7 +11874,7 @@ var q8 = (t, e) => {
|
|
|
11874
11874
|
match: (ee) => He.isElement(ee) && R.isBlock(e, ee),
|
|
11875
11875
|
at: b,
|
|
11876
11876
|
voids: l
|
|
11877
|
-
}), x = k && C && !j.equals(k[1], C[1]),
|
|
11877
|
+
}), x = k && C && !j.equals(k[1], C[1]), S = j.equals(w.path, b.path), E = l ? null : (r = R.void(e, {
|
|
11878
11878
|
at: w,
|
|
11879
11879
|
mode: "highest"
|
|
11880
11880
|
})) !== null && r !== void 0 ? r : R.elementReadOnly(e, {
|
|
@@ -11887,7 +11887,7 @@ var q8 = (t, e) => {
|
|
|
11887
11887
|
at: b,
|
|
11888
11888
|
mode: "highest"
|
|
11889
11889
|
});
|
|
11890
|
-
if (
|
|
11890
|
+
if (E) {
|
|
11891
11891
|
var D = R.before(e, w);
|
|
11892
11892
|
D && k && j.isAncestor(k[1], D.path) && (w = D);
|
|
11893
11893
|
}
|
|
@@ -11907,7 +11907,7 @@ var q8 = (t, e) => {
|
|
|
11907
11907
|
var [, de] = ee;
|
|
11908
11908
|
return R.pathRef(e, de);
|
|
11909
11909
|
}), L = R.pointRef(e, w), $ = R.pointRef(e, b), Y = "";
|
|
11910
|
-
if (!
|
|
11910
|
+
if (!S && !E) {
|
|
11911
11911
|
var Z = L.current, [Q] = R.leaf(e, Z), {
|
|
11912
11912
|
path: M
|
|
11913
11913
|
} = Z, {
|
|
@@ -11926,7 +11926,7 @@ var q8 = (t, e) => {
|
|
|
11926
11926
|
})), !_) {
|
|
11927
11927
|
var te = $.current, [se] = R.leaf(e, te), {
|
|
11928
11928
|
path: we
|
|
11929
|
-
} = te, V =
|
|
11929
|
+
} = te, V = S ? w.offset : 0, U = se.text.slice(V, b.offset);
|
|
11930
11930
|
U.length > 0 && (e.apply({
|
|
11931
11931
|
type: "remove_text",
|
|
11932
11932
|
path: we,
|
|
@@ -11934,7 +11934,7 @@ var q8 = (t, e) => {
|
|
|
11934
11934
|
text: U
|
|
11935
11935
|
}), Y = U);
|
|
11936
11936
|
}
|
|
11937
|
-
!
|
|
11937
|
+
!S && x && $.current && L.current && fe.mergeNodes(e, {
|
|
11938
11938
|
at: $.current,
|
|
11939
11939
|
hanging: !0,
|
|
11940
11940
|
voids: l
|
|
@@ -12002,14 +12002,14 @@ var q8 = (t, e) => {
|
|
|
12002
12002
|
}, []), C = (M) => {
|
|
12003
12003
|
var [z, q] = M, te = q.length === 0;
|
|
12004
12004
|
return te ? !1 : w ? !0 : !(!v && j.isAncestor(q, b) && He.isElement(z) && !e.isVoid(z) && !e.isInline(z) || !g && j.isAncestor(q, k) && He.isElement(z) && !e.isVoid(z) && !e.isInline(z));
|
|
12005
|
-
}, x = !0,
|
|
12005
|
+
}, x = !0, S = [], E = [], _ = [];
|
|
12006
12006
|
for (var D of _e.nodes({
|
|
12007
12007
|
children: n
|
|
12008
12008
|
}, {
|
|
12009
12009
|
pass: C
|
|
12010
12010
|
})) {
|
|
12011
12011
|
var [T, O] = D;
|
|
12012
|
-
x && He.isElement(T) && !e.isInline(T) && !j.isAncestor(O, b) && (x = !1), C(D) && (He.isElement(T) && !e.isInline(T) ? (x = !1,
|
|
12012
|
+
x && He.isElement(T) && !e.isInline(T) && !j.isAncestor(O, b) && (x = !1), C(D) && (He.isElement(T) && !e.isInline(T) ? (x = !1, E.push(T)) : x ? S.push(T) : _.push(T));
|
|
12013
12013
|
}
|
|
12014
12014
|
var [B] = R.nodes(e, {
|
|
12015
12015
|
at: s,
|
|
@@ -12021,20 +12021,20 @@ var q8 = (t, e) => {
|
|
|
12021
12021
|
at: s,
|
|
12022
12022
|
match: (M) => $ ? He.isElement(M) && R.isBlock(e, M) : ze.isText(M) || R.isInline(e, M),
|
|
12023
12023
|
mode: $ ? "lowest" : "highest",
|
|
12024
|
-
always: $ && (!v ||
|
|
12024
|
+
always: $ && (!v || S.length > 0) && (!g || _.length > 0),
|
|
12025
12025
|
voids: i
|
|
12026
12026
|
});
|
|
12027
12027
|
var Y = R.pathRef(e, !A || A && N ? j.next(I) : I);
|
|
12028
|
-
if (fe.insertNodes(e,
|
|
12028
|
+
if (fe.insertNodes(e, S, {
|
|
12029
12029
|
at: Y.current,
|
|
12030
12030
|
match: (M) => ze.isText(M) || R.isInline(e, M),
|
|
12031
12031
|
mode: "highest",
|
|
12032
12032
|
voids: i,
|
|
12033
12033
|
batchDirty: a
|
|
12034
|
-
}), w && !
|
|
12034
|
+
}), w && !S.length && E.length && !_.length && fe.delete(e, {
|
|
12035
12035
|
at: y,
|
|
12036
12036
|
voids: i
|
|
12037
|
-
}), fe.insertNodes(e,
|
|
12037
|
+
}), fe.insertNodes(e, E, {
|
|
12038
12038
|
at: F.current,
|
|
12039
12039
|
match: (M) => He.isElement(M) && R.isBlock(e, M),
|
|
12040
12040
|
mode: "lowest",
|
|
@@ -12048,7 +12048,7 @@ var q8 = (t, e) => {
|
|
|
12048
12048
|
batchDirty: a
|
|
12049
12049
|
}), !r.at) {
|
|
12050
12050
|
var Z;
|
|
12051
|
-
if (_.length > 0 && L.current ? Z = j.previous(L.current) :
|
|
12051
|
+
if (_.length > 0 && L.current ? Z = j.previous(L.current) : E.length > 0 && F.current ? Z = j.previous(F.current) : Y.current && (Z = j.previous(Y.current)), Z) {
|
|
12052
12052
|
var Q = R.end(e, Z);
|
|
12053
12053
|
fe.select(e, Q);
|
|
12054
12054
|
}
|
|
@@ -12259,12 +12259,12 @@ var i5 = function(e, n) {
|
|
|
12259
12259
|
});
|
|
12260
12260
|
});
|
|
12261
12261
|
} else
|
|
12262
|
-
for (var
|
|
12263
|
-
var
|
|
12262
|
+
for (var S of n) {
|
|
12263
|
+
var E = b.concat(k);
|
|
12264
12264
|
k++, e.apply({
|
|
12265
12265
|
type: "insert_node",
|
|
12266
|
-
path:
|
|
12267
|
-
node:
|
|
12266
|
+
path: E,
|
|
12267
|
+
node: S
|
|
12268
12268
|
}), l = j.next(l);
|
|
12269
12269
|
}
|
|
12270
12270
|
if (l = j.previous(l), u) {
|
|
@@ -12395,13 +12395,13 @@ var i5 = function(e, n) {
|
|
|
12395
12395
|
at: m,
|
|
12396
12396
|
mode: "highest",
|
|
12397
12397
|
match: (D) => k.includes(D) && M_(e, D)
|
|
12398
|
-
}), x = C && R.pathRef(e, C[1]),
|
|
12398
|
+
}), x = C && R.pathRef(e, C[1]), S, E;
|
|
12399
12399
|
if (ze.isText(h) && ze.isText(y)) {
|
|
12400
12400
|
var _ = _o(h, c5);
|
|
12401
|
-
|
|
12401
|
+
E = y.text.length, S = _;
|
|
12402
12402
|
} else if (He.isElement(h) && He.isElement(y)) {
|
|
12403
12403
|
var _ = _o(h, u5);
|
|
12404
|
-
|
|
12404
|
+
E = y.children.length, S = _;
|
|
12405
12405
|
} else
|
|
12406
12406
|
throw new Error("Cannot merge the node at path [".concat(m, "] with the previous sibling because it is not the same kind: ").concat(Yt.stringify(h), " ").concat(Yt.stringify(y)));
|
|
12407
12407
|
b || fe.moveNodes(e, {
|
|
@@ -12417,8 +12417,8 @@ var i5 = function(e, n) {
|
|
|
12417
12417
|
}) : e.apply({
|
|
12418
12418
|
type: "merge_node",
|
|
12419
12419
|
path: g,
|
|
12420
|
-
position:
|
|
12421
|
-
properties:
|
|
12420
|
+
position: E,
|
|
12421
|
+
properties: S
|
|
12422
12422
|
}), x && x.unref();
|
|
12423
12423
|
}
|
|
12424
12424
|
}
|
|
@@ -12508,7 +12508,7 @@ var i5 = function(e, n) {
|
|
|
12508
12508
|
voids: d = !1
|
|
12509
12509
|
} = r;
|
|
12510
12510
|
if (i) {
|
|
12511
|
-
if (o == null && (o = j.isPath(i) ? ma(e, i) : (
|
|
12511
|
+
if (o == null && (o = j.isPath(i) ? ma(e, i) : (E) => He.isElement(E) && R.isBlock(e, E)), !l && ie.isRange(i) && (i = R.unhangRange(e, i, {
|
|
12512
12512
|
voids: d
|
|
12513
12513
|
})), u && ie.isRange(i)) {
|
|
12514
12514
|
if (ie.isCollapsed(i) && R.leaf(e, i.anchor)[0].text.length > 0)
|
|
@@ -12532,7 +12532,7 @@ var i5 = function(e, n) {
|
|
|
12532
12532
|
always: !g
|
|
12533
12533
|
}), i = f.unref(), r.at == null && fe.select(e, i);
|
|
12534
12534
|
}
|
|
12535
|
-
s || (s = (
|
|
12535
|
+
s || (s = (E, _) => E !== _);
|
|
12536
12536
|
for (var [w, b] of R.nodes(e, {
|
|
12537
12537
|
at: i,
|
|
12538
12538
|
match: o,
|
|
@@ -12542,8 +12542,8 @@ var i5 = function(e, n) {
|
|
|
12542
12542
|
var k = {}, C = {};
|
|
12543
12543
|
if (b.length !== 0) {
|
|
12544
12544
|
var x = !1;
|
|
12545
|
-
for (var
|
|
12546
|
-
|
|
12545
|
+
for (var S in n)
|
|
12546
|
+
S === "children" || S === "text" || s(n[S], w[S]) && (x = !0, w.hasOwnProperty(S) && (k[S] = w[S]), a ? n[S] != null && (C[S] = a(w[S], n[S])) : n[S] != null && (C[S] = n[S]));
|
|
12547
12547
|
x && e.apply({
|
|
12548
12548
|
type: "set_node",
|
|
12549
12549
|
path: b,
|
|
@@ -12613,14 +12613,14 @@ var i5 = function(e, n) {
|
|
|
12613
12613
|
a = x + 1, l = !0;
|
|
12614
12614
|
}
|
|
12615
12615
|
h = R.pointRef(e, s);
|
|
12616
|
-
var
|
|
12616
|
+
var S = s.path.length - a, [, E] = m, _ = s.path.slice(0, S), D = a === 0 ? s.offset : s.path[S] + v;
|
|
12617
12617
|
for (var [T, O] of R.levels(e, {
|
|
12618
12618
|
at: _,
|
|
12619
12619
|
reverse: !0,
|
|
12620
12620
|
voids: o
|
|
12621
12621
|
})) {
|
|
12622
12622
|
var B = !1;
|
|
12623
|
-
if (O.length <
|
|
12623
|
+
if (O.length < E.length || O.length === 0 || !o && He.isElement(T) && R.isVoid(e, T))
|
|
12624
12624
|
break;
|
|
12625
12625
|
var I = f.current, A = R.isEnd(e, I, O);
|
|
12626
12626
|
if (l || !f || !R.isEdge(e, I, O)) {
|
|
@@ -12764,10 +12764,10 @@ var v5 = function(e, n) {
|
|
|
12764
12764
|
voids: s
|
|
12765
12765
|
}));
|
|
12766
12766
|
if (b.length > 0) {
|
|
12767
|
-
var [k] = b, C = b[b.length - 1], [, x] = k, [,
|
|
12768
|
-
if (x.length === 0 &&
|
|
12767
|
+
var [k] = b, C = b[b.length - 1], [, x] = k, [, S] = C;
|
|
12768
|
+
if (x.length === 0 && S.length === 0)
|
|
12769
12769
|
return 0;
|
|
12770
|
-
var
|
|
12770
|
+
var E = j.equals(x, S) ? j.parent(x) : j.common(x, S), _ = R.range(e, x, S), D = R.node(e, E), [T] = D, O = E.length + 1, B = j.next(S.slice(0, O)), I = Yb(Yb({}, n), {}, {
|
|
12771
12771
|
children: []
|
|
12772
12772
|
});
|
|
12773
12773
|
fe.insertNodes(e, I, {
|
|
@@ -13518,21 +13518,21 @@ function H_() {
|
|
|
13518
13518
|
return u = d = void 0, v = B, h = a.apply(A, I), h;
|
|
13519
13519
|
}
|
|
13520
13520
|
function C(B) {
|
|
13521
|
-
return v = B, m = setTimeout(
|
|
13521
|
+
return v = B, m = setTimeout(E, l), g ? k(B) : h;
|
|
13522
13522
|
}
|
|
13523
13523
|
function x(B) {
|
|
13524
13524
|
var I = B - y, A = B - v, N = l - I;
|
|
13525
13525
|
return w ? i(N, f - A) : N;
|
|
13526
13526
|
}
|
|
13527
|
-
function
|
|
13527
|
+
function S(B) {
|
|
13528
13528
|
var I = B - y, A = B - v;
|
|
13529
13529
|
return y === void 0 || I >= l || I < 0 || w && A >= f;
|
|
13530
13530
|
}
|
|
13531
|
-
function
|
|
13531
|
+
function E() {
|
|
13532
13532
|
var B = e();
|
|
13533
|
-
if (
|
|
13533
|
+
if (S(B))
|
|
13534
13534
|
return _(B);
|
|
13535
|
-
m = setTimeout(
|
|
13535
|
+
m = setTimeout(E, x(B));
|
|
13536
13536
|
}
|
|
13537
13537
|
function _(B) {
|
|
13538
13538
|
return m = void 0, b && u ? k(B) : (u = d = void 0, h);
|
|
@@ -13544,14 +13544,14 @@ function H_() {
|
|
|
13544
13544
|
return m === void 0 ? h : _(e());
|
|
13545
13545
|
}
|
|
13546
13546
|
function O() {
|
|
13547
|
-
var B = e(), I =
|
|
13547
|
+
var B = e(), I = S(B);
|
|
13548
13548
|
if (u = arguments, d = this, y = B, I) {
|
|
13549
13549
|
if (m === void 0)
|
|
13550
13550
|
return C(y);
|
|
13551
13551
|
if (w)
|
|
13552
|
-
return clearTimeout(m), m = setTimeout(
|
|
13552
|
+
return clearTimeout(m), m = setTimeout(E, l), k(y);
|
|
13553
13553
|
}
|
|
13554
|
-
return m === void 0 && (m = setTimeout(
|
|
13554
|
+
return m === void 0 && (m = setTimeout(E, l)), h;
|
|
13555
13555
|
}
|
|
13556
13556
|
return O.cancel = D, O.flush = T, O;
|
|
13557
13557
|
}
|
|
@@ -13610,15 +13610,15 @@ const H5 = /* @__PURE__ */ gr(z5), hC = (t) => typeof t == "object" && t != null
|
|
|
13610
13610
|
}
|
|
13611
13611
|
m != null && m === document.body && Hc(m) && !Hc(document.documentElement) || m != null && Hc(m, u) && h.push(m);
|
|
13612
13612
|
}
|
|
13613
|
-
const y = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (i = (o = window.visualViewport) == null ? void 0 : o.height) != null ? i : innerHeight, { scrollX: g, scrollY: w } = window, { height: b, width: k, top: C, right: x, bottom:
|
|
13613
|
+
const y = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (i = (o = window.visualViewport) == null ? void 0 : o.height) != null ? i : innerHeight, { scrollX: g, scrollY: w } = window, { height: b, width: k, top: C, right: x, bottom: S, left: E } = t.getBoundingClientRect(), { top: _, right: D, bottom: T, left: O } = ((N) => {
|
|
13614
13614
|
const F = window.getComputedStyle(N);
|
|
13615
13615
|
return { top: parseFloat(F.scrollMarginTop) || 0, right: parseFloat(F.scrollMarginRight) || 0, bottom: parseFloat(F.scrollMarginBottom) || 0, left: parseFloat(F.scrollMarginLeft) || 0 };
|
|
13616
13616
|
})(t);
|
|
13617
|
-
let B = a === "start" || a === "nearest" ? C - _ : a === "end" ?
|
|
13617
|
+
let B = a === "start" || a === "nearest" ? C - _ : a === "end" ? S + T : C + b / 2 - _ + T, I = l === "center" ? E + k / 2 - O + D : l === "end" ? x + D : E - O;
|
|
13618
13618
|
const A = [];
|
|
13619
13619
|
for (let N = 0; N < h.length; N++) {
|
|
13620
13620
|
const F = h[N], { height: L, width: $, top: Y, right: Z, bottom: Q, left: M } = F.getBoundingClientRect();
|
|
13621
|
-
if (s === "if-needed" && C >= 0 &&
|
|
13621
|
+
if (s === "if-needed" && C >= 0 && E >= 0 && S <= v && x <= y && (F === f && !Hc(F) || C >= Y && S <= Q && E >= M && x <= Z)) return A;
|
|
13622
13622
|
const z = getComputedStyle(F), q = parseInt(z.borderLeftWidth, 10), te = parseInt(z.borderTopWidth, 10), se = parseInt(z.borderRightWidth, 10), we = parseInt(z.borderBottomWidth, 10);
|
|
13623
13623
|
let V = 0, U = 0;
|
|
13624
13624
|
const W = "offsetWidth" in F ? F.offsetWidth - F.clientWidth - q - se : 0, X = "offsetHeight" in F ? F.offsetHeight - F.clientHeight - te - we : 0, ne = "offsetWidth" in F ? F.offsetWidth === 0 ? 0 : $ / F.offsetWidth : 0, ee = "offsetHeight" in F ? F.offsetHeight === 0 ? 0 : L / F.offsetHeight : 0;
|
|
@@ -13747,13 +13747,13 @@ function U5() {
|
|
|
13747
13747
|
y[e[w]] = !1;
|
|
13748
13748
|
var b = !0, k = !1, C = void 0;
|
|
13749
13749
|
try {
|
|
13750
|
-
for (var x = v[Symbol.iterator](),
|
|
13751
|
-
var
|
|
13752
|
-
_ && (
|
|
13753
|
-
var D = d(
|
|
13754
|
-
if (
|
|
13755
|
-
throw new TypeError('Unknown modifier: "' +
|
|
13756
|
-
(g === 1 || !T) && (m ? y.key = D : y.which = u(
|
|
13750
|
+
for (var x = v[Symbol.iterator](), S; !(b = (S = x.next()).done); b = !0) {
|
|
13751
|
+
var E = S.value, _ = E.endsWith("?") && E.length > 1;
|
|
13752
|
+
_ && (E = E.slice(0, -1));
|
|
13753
|
+
var D = d(E), T = e[D];
|
|
13754
|
+
if (E.length > 1 && !T && !n[E] && !r[D])
|
|
13755
|
+
throw new TypeError('Unknown modifier: "' + E + '"');
|
|
13756
|
+
(g === 1 || !T) && (m ? y.key = D : y.which = u(E)), T && (y[T] = _ ? null : !0);
|
|
13757
13757
|
}
|
|
13758
13758
|
} catch (O) {
|
|
13759
13759
|
k = !0, C = O;
|
|
@@ -14164,8 +14164,8 @@ var Rs = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), Ka =
|
|
|
14164
14164
|
if (c = w.closest('[data-slate-node="text"]'), c) {
|
|
14165
14165
|
var k = Je.getWindow(t), C = k.document.createRange();
|
|
14166
14166
|
C.setStart(c, 0), C.setEnd(s, a);
|
|
14167
|
-
var x = C.cloneContents(),
|
|
14168
|
-
|
|
14167
|
+
var x = C.cloneContents(), S = [...Array.prototype.slice.call(x.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(x.querySelectorAll("[contenteditable=false]"))];
|
|
14168
|
+
S.forEach((M) => {
|
|
14169
14169
|
if (vn && !r && M.hasAttribute("data-slate-zero-width") && M.textContent.length > 0 && M.textContext !== "\uFEFF") {
|
|
14170
14170
|
M.textContent.startsWith("\uFEFF") && (M.textContent = M.textContent.slice(1));
|
|
14171
14171
|
return;
|
|
@@ -14174,8 +14174,8 @@ var Rs = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), Ka =
|
|
|
14174
14174
|
}), u = x.textContent.length, b = c;
|
|
14175
14175
|
}
|
|
14176
14176
|
} else if (y) {
|
|
14177
|
-
for (var
|
|
14178
|
-
var D =
|
|
14177
|
+
for (var E = y.querySelectorAll("[data-slate-leaf]"), _ = 0; _ < E.length; _++) {
|
|
14178
|
+
var D = E[_];
|
|
14179
14179
|
if (Je.hasDOMNode(t, D)) {
|
|
14180
14180
|
w = D;
|
|
14181
14181
|
break;
|
|
@@ -14252,8 +14252,8 @@ var Rs = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), Ka =
|
|
|
14252
14252
|
c = e.focusNode;
|
|
14253
14253
|
var f = e.getRangeAt(0), h = e.getRangeAt(e.rangeCount - 1);
|
|
14254
14254
|
if (c instanceof HTMLTableRowElement && f.startContainer instanceof HTMLTableRowElement && h.startContainer instanceof HTMLTableRowElement) {
|
|
14255
|
-
let x = function(
|
|
14256
|
-
return
|
|
14255
|
+
let x = function(S) {
|
|
14256
|
+
return S.childElementCount > 0 ? x(S.children[0]) : S;
|
|
14257
14257
|
};
|
|
14258
14258
|
var m = f.startContainer, y = h.startContainer, v = x(m.children[f.startOffset]), g = x(y.children[h.startOffset]);
|
|
14259
14259
|
u = 0, g.childNodes.length > 0 ? a = g.childNodes[0] : a = g, v.childNodes.length > 0 ? c = v.childNodes[0] : c = v, g instanceof HTMLElement ? l = g.innerHTML.length : l = 0;
|
|
@@ -14664,8 +14664,8 @@ var y$ = function(e) {
|
|
|
14664
14664
|
u.push(...ps(r, b));
|
|
14665
14665
|
var k;
|
|
14666
14666
|
j.isBefore(c.path, c.newPath) ? (u.push(...ps(r, j.parent(c.path))), k = c.newPath) : (u.push(...ps(r, j.parent(c.newPath))), k = c.path);
|
|
14667
|
-
var C = _e.get(e, j.parent(k)), x = Je.findKey(r, C),
|
|
14668
|
-
d.push([
|
|
14667
|
+
var C = _e.get(e, j.parent(k)), x = Je.findKey(r, C), S = R.pathRef(r, j.parent(k));
|
|
14668
|
+
d.push([S, x]);
|
|
14669
14669
|
break;
|
|
14670
14670
|
}
|
|
14671
14671
|
}
|
|
@@ -14680,8 +14680,8 @@ var y$ = function(e) {
|
|
|
14680
14680
|
case "set_selection":
|
|
14681
14681
|
Rs.set(r, !0);
|
|
14682
14682
|
}
|
|
14683
|
-
for (var [
|
|
14684
|
-
var [D] = R.node(r,
|
|
14683
|
+
for (var [E, _] of u) {
|
|
14684
|
+
var [D] = R.node(r, E);
|
|
14685
14685
|
Fd.set(D, _);
|
|
14686
14686
|
}
|
|
14687
14687
|
for (var [T, O] of d) {
|
|
@@ -14717,8 +14717,8 @@ var y$ = function(e) {
|
|
|
14717
14717
|
var C = g.ownerDocument.createElement("span");
|
|
14718
14718
|
C.style.whiteSpace = "pre", C.appendChild(g), v.appendChild(C), g = C;
|
|
14719
14719
|
}
|
|
14720
|
-
var x = r.getFragment(),
|
|
14721
|
-
g.setAttribute("data-slate-fragment",
|
|
14720
|
+
var x = r.getFragment(), S = JSON.stringify(x), E = window.btoa(encodeURIComponent(S));
|
|
14721
|
+
g.setAttribute("data-slate-fragment", E), c.setData("application/".concat(n), E);
|
|
14722
14722
|
var _ = v.ownerDocument.createElement("div");
|
|
14723
14723
|
return _.appendChild(v), _.setAttribute("hidden", "true"), v.ownerDocument.body.appendChild(_), c.setData("text/html", _.innerHTML), c.setData("text/plain", U_(_)), v.ownerDocument.body.removeChild(_), c;
|
|
14724
14724
|
}
|
|
@@ -14983,11 +14983,11 @@ var Pi = function(t) {
|
|
|
14983
14983
|
return jc.get(t);
|
|
14984
14984
|
if (nA(t))
|
|
14985
14985
|
return jc.set(t, BC), BC;
|
|
14986
|
-
var n = getComputedStyle(t), r = Vy(t) && t.ownerSVGElement && t.getBBox(), o = !R$ && n.boxSizing === "border-box", i = I$.test(n.writingMode || ""), s = !r && NC.test(n.overflowY || ""), a = !r && NC.test(n.overflowX || ""), l = r ? 0 : Ur(n.paddingTop), c = r ? 0 : Ur(n.paddingRight), u = r ? 0 : Ur(n.paddingBottom), d = r ? 0 : Ur(n.paddingLeft), f = r ? 0 : Ur(n.borderTopWidth), h = r ? 0 : Ur(n.borderRightWidth), m = r ? 0 : Ur(n.borderBottomWidth), y = r ? 0 : Ur(n.borderLeftWidth), v = d + c, g = l + u, w = y + h, b = f + m, k = a ? t.offsetHeight - b - t.clientHeight : 0, C = s ? t.offsetWidth - w - t.clientWidth : 0, x = o ? v + w : 0,
|
|
14987
|
-
devicePixelContentBoxSize: Fs(Math.round(
|
|
14986
|
+
var n = getComputedStyle(t), r = Vy(t) && t.ownerSVGElement && t.getBBox(), o = !R$ && n.boxSizing === "border-box", i = I$.test(n.writingMode || ""), s = !r && NC.test(n.overflowY || ""), a = !r && NC.test(n.overflowX || ""), l = r ? 0 : Ur(n.paddingTop), c = r ? 0 : Ur(n.paddingRight), u = r ? 0 : Ur(n.paddingBottom), d = r ? 0 : Ur(n.paddingLeft), f = r ? 0 : Ur(n.borderTopWidth), h = r ? 0 : Ur(n.borderRightWidth), m = r ? 0 : Ur(n.borderBottomWidth), y = r ? 0 : Ur(n.borderLeftWidth), v = d + c, g = l + u, w = y + h, b = f + m, k = a ? t.offsetHeight - b - t.clientHeight : 0, C = s ? t.offsetWidth - w - t.clientWidth : 0, x = o ? v + w : 0, S = o ? g + b : 0, E = r ? r.width : Ur(n.width) - x - C, _ = r ? r.height : Ur(n.height) - S - k, D = E + v + C + w, T = _ + g + k + b, O = Pi({
|
|
14987
|
+
devicePixelContentBoxSize: Fs(Math.round(E * devicePixelRatio), Math.round(_ * devicePixelRatio), i),
|
|
14988
14988
|
borderBoxSize: Fs(D, T, i),
|
|
14989
|
-
contentBoxSize: Fs(
|
|
14990
|
-
contentRect: new tA(d, l,
|
|
14989
|
+
contentBoxSize: Fs(E, _, i),
|
|
14990
|
+
contentRect: new tA(d, l, E, _)
|
|
14991
14991
|
});
|
|
14992
14992
|
return jc.set(t, O), O;
|
|
14993
14993
|
}, oA = function(t, e, n) {
|
|
@@ -15406,7 +15406,7 @@ function n6(t) {
|
|
|
15406
15406
|
path: A.anchor.path,
|
|
15407
15407
|
offset: Q.offset
|
|
15408
15408
|
}, ne = R.range(e, X, X);
|
|
15409
|
-
return
|
|
15409
|
+
return S(ne), v(A.anchor.path, {
|
|
15410
15410
|
text: "",
|
|
15411
15411
|
end: M.offset,
|
|
15412
15412
|
start: Q.offset
|
|
@@ -15575,7 +15575,7 @@ function n6(t) {
|
|
|
15575
15575
|
}, b = () => !!Lo.get(e), k = () => {
|
|
15576
15576
|
var O;
|
|
15577
15577
|
return !!((O = Bn.get(e)) !== null && O !== void 0 && O.length);
|
|
15578
|
-
}, C = () => b() || k(), x = () => o,
|
|
15578
|
+
}, C = () => b() || k(), x = () => o, S = (O) => {
|
|
15579
15579
|
go.set(e, O), s && (clearTimeout(s), s = null);
|
|
15580
15580
|
var {
|
|
15581
15581
|
selection: B
|
|
@@ -15584,7 +15584,7 @@ function n6(t) {
|
|
|
15584
15584
|
var I = !B || !j.equals(B.anchor.path, O.anchor.path), A = !B || !j.equals(B.anchor.path.slice(0, -1), O.anchor.path.slice(0, -1));
|
|
15585
15585
|
(I && c || A) && (c = !1), (I || k()) && (s = setTimeout(f, Z$));
|
|
15586
15586
|
}
|
|
15587
|
-
},
|
|
15587
|
+
}, E = () => {
|
|
15588
15588
|
(b() || !k()) && f();
|
|
15589
15589
|
}, _ = (O) => {
|
|
15590
15590
|
k() || (y(!0), setTimeout(y));
|
|
@@ -15603,13 +15603,13 @@ function n6(t) {
|
|
|
15603
15603
|
hasPendingAction: b,
|
|
15604
15604
|
hasPendingChanges: C,
|
|
15605
15605
|
isFlushing: x,
|
|
15606
|
-
handleUserSelect:
|
|
15606
|
+
handleUserSelect: S,
|
|
15607
15607
|
handleCompositionEnd: h,
|
|
15608
15608
|
handleCompositionStart: m,
|
|
15609
15609
|
handleDOMBeforeInput: w,
|
|
15610
15610
|
handleKeyDown: _,
|
|
15611
15611
|
handleDomMutations: T,
|
|
15612
|
-
handleInput:
|
|
15612
|
+
handleInput: E
|
|
15613
15613
|
};
|
|
15614
15614
|
}
|
|
15615
15615
|
function r6() {
|
|
@@ -16402,12 +16402,12 @@ var O6 = (t, e) => {
|
|
|
16402
16402
|
var b = d.pointerIndex, k = d.read(g + 1), C = k.pop();
|
|
16403
16403
|
if (k.length) {
|
|
16404
16404
|
var x = d.toChunkLeaves(k, b);
|
|
16405
|
-
u.insertBefore(x), k.forEach((
|
|
16406
|
-
s == null || s(
|
|
16405
|
+
u.insertBefore(x), k.forEach((E, _) => {
|
|
16406
|
+
s == null || s(E, b + _);
|
|
16407
16407
|
});
|
|
16408
16408
|
}
|
|
16409
|
-
var
|
|
16410
|
-
f.node !== C && (f.node = C, u.invalidateChunk(), a == null || a(C,
|
|
16409
|
+
var S = d.pointerIndex - 1;
|
|
16410
|
+
f.node !== C && (f.node = C, u.invalidateChunk(), a == null || a(C, S)), f.index !== S && (f.index = S, l == null || l(C, S)), i.includes(S) && u.invalidateChunk();
|
|
16411
16411
|
}; f = u.readLeaf(); )
|
|
16412
16412
|
h();
|
|
16413
16413
|
if (!d.reachedEnd) {
|
|
@@ -16742,7 +16742,7 @@ var Y6 = (t) => /* @__PURE__ */ Pe.createElement(Pe.Fragment, null, gA(t)), vA =
|
|
|
16742
16742
|
style: m = {},
|
|
16743
16743
|
as: y = "div",
|
|
16744
16744
|
disableDefaultStyles: v = !1
|
|
16745
|
-
} = t, g = Md(t, G6), w = H6(), [b, k] = re(!1), C = ge(null), x = ge([]), [
|
|
16745
|
+
} = t, g = Md(t, G6), w = H6(), [b, k] = re(!1), C = ge(null), x = ge([]), [S, E] = re(), _ = ge(!1), {
|
|
16746
16746
|
onUserInput: D,
|
|
16747
16747
|
receivedUserInput: T
|
|
16748
16748
|
} = V6(), [, O] = tc((V) => V + 1, 0);
|
|
@@ -17038,9 +17038,9 @@ var Y6 = (t) => /* @__PURE__ */ Pe.createElement(Pe.Fragment, null, gA(t)), vA =
|
|
|
17038
17038
|
var $ = o([w, []]), Y = v6(o), Z = s && w.children.length === 1 && Array.from(_e.texts(w)).length === 1 && _e.string(w) === "" && !b, Q = G((V) => {
|
|
17039
17039
|
if (V && Z) {
|
|
17040
17040
|
var U;
|
|
17041
|
-
|
|
17041
|
+
E((U = V.getBoundingClientRect()) === null || U === void 0 ? void 0 : U.height);
|
|
17042
17042
|
} else
|
|
17043
|
-
|
|
17043
|
+
E(void 0);
|
|
17044
17044
|
}, [Z]);
|
|
17045
17045
|
if (Z) {
|
|
17046
17046
|
var M = R.start(w, []);
|
|
@@ -17129,8 +17129,8 @@ var Y6 = (t) => /* @__PURE__ */ Pe.createElement(Pe.Fragment, null, gA(t)), vA =
|
|
|
17129
17129
|
whiteSpace: "pre-wrap",
|
|
17130
17130
|
// Allow words to break if they are too long.
|
|
17131
17131
|
wordWrap: "break-word"
|
|
17132
|
-
},
|
|
17133
|
-
minHeight:
|
|
17132
|
+
}, S ? {
|
|
17133
|
+
minHeight: S
|
|
17134
17134
|
} : {})), m),
|
|
17135
17135
|
onBeforeInput: G((V) => {
|
|
17136
17136
|
if (!Fo && !a && !Dn(V, g.onBeforeInput) && xe.hasSelectableTarget(w, V.target) && (V.preventDefault(), !xe.isComposing(w))) {
|
|
@@ -17698,7 +17698,7 @@ const EA = xt.createContext(null), rz = () => {
|
|
|
17698
17698
|
onFocus: g,
|
|
17699
17699
|
onBlur: w
|
|
17700
17700
|
}) => {
|
|
17701
|
-
const b = typeof e == "string" ? e : "", k = BS(), C = ge(null), x = ge(!1),
|
|
17701
|
+
const b = typeof e == "string" ? e : "", k = BS(), C = ge(null), x = ge(!1), S = ge(!1), E = ge(b), _ = le(() => (C.current || (C.current = az(k5(xA(P_())))), C.current), []), D = le(() => Ph(b, d), []), T = G(
|
|
17702
17702
|
(z, q) => {
|
|
17703
17703
|
const se = {
|
|
17704
17704
|
type: "variable-tag",
|
|
@@ -17721,10 +17721,10 @@ const EA = xt.createContext(null), rz = () => {
|
|
|
17721
17721
|
}
|
|
17722
17722
|
}, [_]), B = D_(k, T, O), I = G(
|
|
17723
17723
|
(z) => {
|
|
17724
|
-
if (
|
|
17724
|
+
if (S.current)
|
|
17725
17725
|
return;
|
|
17726
17726
|
const q = Pc(z);
|
|
17727
|
-
q !==
|
|
17727
|
+
q !== E.current && (E.current = q, n == null || n(q));
|
|
17728
17728
|
},
|
|
17729
17729
|
[n]
|
|
17730
17730
|
), A = G(
|
|
@@ -17758,14 +17758,14 @@ const EA = xt.createContext(null), rz = () => {
|
|
|
17758
17758
|
return;
|
|
17759
17759
|
}
|
|
17760
17760
|
const z = Pc(_.children);
|
|
17761
|
-
if (!(b === z || b ===
|
|
17762
|
-
|
|
17761
|
+
if (!(b === z || b === E.current)) {
|
|
17762
|
+
E.current = b, S.current = !0;
|
|
17763
17763
|
try {
|
|
17764
17764
|
_.children = Ph(b, d), _.selection = null, _.onChange();
|
|
17765
17765
|
} catch {
|
|
17766
17766
|
_.children = Ph(b, d), _.onChange();
|
|
17767
17767
|
} finally {
|
|
17768
|
-
|
|
17768
|
+
S.current = !1, E.current = Pc(_.children);
|
|
17769
17769
|
}
|
|
17770
17770
|
}
|
|
17771
17771
|
}, [b, d, _]);
|
|
@@ -17914,11 +17914,11 @@ const Qs = ({
|
|
|
17914
17914
|
renderNormalMode: k,
|
|
17915
17915
|
renderExpressionMode: C,
|
|
17916
17916
|
children: x,
|
|
17917
|
-
hideModeSwitch:
|
|
17918
|
-
modeSwitchPosition:
|
|
17917
|
+
hideModeSwitch: S = !1,
|
|
17918
|
+
modeSwitchPosition: E = "top-left",
|
|
17919
17919
|
compact: _ = !1
|
|
17920
17920
|
}) => {
|
|
17921
|
-
const D = J4(), T = n ?? (D == null ? void 0 : D.policy), O =
|
|
17921
|
+
const D = J4(), T = n ?? (D == null ? void 0 : D.policy), O = S || !!(D != null && D.suppressNestedSwitch), B = i ?? (D != null && D.suppressNestedSwitch ? D.mode : void 0), I = s ?? (D != null && D.suppressNestedSwitch ? D.onModeChange : void 0), A = T ? Ty(T) : void 0, N = (A == null ? void 0 : A.availableModes) ?? r, F = (A == null ? void 0 : A.defaultMode) ?? o, L = N.length === 1 ? N[0] : void 0, $ = Uy(t), Y = ge($), Z = ge(void 0), Q = ge(e);
|
|
17922
17922
|
Q.current = e;
|
|
17923
17923
|
const M = () => XC(
|
|
17924
17924
|
$,
|
|
@@ -17987,7 +17987,7 @@ const Qs = ({
|
|
|
17987
17987
|
onModeChange: we,
|
|
17988
17988
|
disabled: a,
|
|
17989
17989
|
readOnly: l,
|
|
17990
|
-
modeSwitchPosition:
|
|
17990
|
+
modeSwitchPosition: E
|
|
17991
17991
|
}
|
|
17992
17992
|
), W = (ne) => d ? /* @__PURE__ */ p(
|
|
17993
17993
|
lz,
|
|
@@ -18722,8 +18722,8 @@ const xz = ss(IA, {
|
|
|
18722
18722
|
size: "small",
|
|
18723
18723
|
icon: /* @__PURE__ */ p(ca, {}),
|
|
18724
18724
|
onClick: () => {
|
|
18725
|
-
const
|
|
18726
|
-
g(
|
|
18725
|
+
const S = [...d, C.name], E = o.getFieldValue(S) ?? QC(l, S);
|
|
18726
|
+
g(E, x + 1);
|
|
18727
18727
|
},
|
|
18728
18728
|
disabled: e || t.maxItems !== void 0 && v.length >= t.maxItems
|
|
18729
18729
|
}
|
|
@@ -18785,22 +18785,22 @@ const xz = ss(IA, {
|
|
|
18785
18785
|
}
|
|
18786
18786
|
) })
|
|
18787
18787
|
] }),
|
|
18788
|
-
children: /* @__PURE__ */ p("div", { style: Nz(t), children: t.columns.map((
|
|
18789
|
-
const
|
|
18788
|
+
children: /* @__PURE__ */ p("div", { style: Nz(t), children: t.columns.map((S) => {
|
|
18789
|
+
const E = r.get(S.type), _ = E == null ? void 0 : E.component, D = [C.name, S.name], T = [...d, C.name, S.name];
|
|
18790
18790
|
return /* @__PURE__ */ p(Ee.Item, { noStyle: !0, shouldUpdate: !0, children: () => {
|
|
18791
18791
|
const O = o.getFieldValue([...d, C.name]) ?? QC(l, [...d, C.name]) ?? {};
|
|
18792
|
-
return $d(
|
|
18792
|
+
return $d(S, O) ? E != null && E.meta.isHidden ? /* @__PURE__ */ p(
|
|
18793
18793
|
Ee.Item,
|
|
18794
18794
|
{
|
|
18795
18795
|
name: D,
|
|
18796
18796
|
hidden: !0,
|
|
18797
|
-
rules: Zs(
|
|
18798
|
-
valuePropName:
|
|
18799
|
-
validateTrigger:
|
|
18797
|
+
rules: Zs(S.rules || [], O, S.type),
|
|
18798
|
+
valuePropName: E.meta.valuePropName,
|
|
18799
|
+
validateTrigger: S.validateTrigger,
|
|
18800
18800
|
children: _ && /* @__PURE__ */ p(
|
|
18801
18801
|
_,
|
|
18802
18802
|
{
|
|
18803
|
-
field:
|
|
18803
|
+
field: S,
|
|
18804
18804
|
disabled: e,
|
|
18805
18805
|
readOnly: !1,
|
|
18806
18806
|
context: {
|
|
@@ -18813,17 +18813,17 @@ const xz = ss(IA, {
|
|
|
18813
18813
|
}
|
|
18814
18814
|
)
|
|
18815
18815
|
}
|
|
18816
|
-
) :
|
|
18816
|
+
) : E != null && E.meta.isComplexField ? /* @__PURE__ */ p(
|
|
18817
18817
|
Ee.Item,
|
|
18818
18818
|
{
|
|
18819
|
-
label:
|
|
18820
|
-
tooltip:
|
|
18821
|
-
extra:
|
|
18819
|
+
label: S.label,
|
|
18820
|
+
tooltip: S.tooltip,
|
|
18821
|
+
extra: S.helpText || S.extra || S.description,
|
|
18822
18822
|
children: _ && /* @__PURE__ */ p(
|
|
18823
18823
|
_,
|
|
18824
18824
|
{
|
|
18825
18825
|
field: Ez(
|
|
18826
|
-
|
|
18826
|
+
S,
|
|
18827
18827
|
D,
|
|
18828
18828
|
T,
|
|
18829
18829
|
f + 1,
|
|
@@ -18845,14 +18845,14 @@ const xz = ss(IA, {
|
|
|
18845
18845
|
Ee.Item,
|
|
18846
18846
|
{
|
|
18847
18847
|
name: D,
|
|
18848
|
-
label:
|
|
18849
|
-
tooltip:
|
|
18850
|
-
extra:
|
|
18851
|
-
rules: Zs(
|
|
18848
|
+
label: S.label,
|
|
18849
|
+
tooltip: S.tooltip,
|
|
18850
|
+
extra: S.helpText || S.extra || S.description,
|
|
18851
|
+
rules: Zs(S.rules || [], O, S.type),
|
|
18852
18852
|
children: _ && /* @__PURE__ */ p(
|
|
18853
18853
|
_,
|
|
18854
18854
|
{
|
|
18855
|
-
field:
|
|
18855
|
+
field: S,
|
|
18856
18856
|
disabled: e,
|
|
18857
18857
|
readOnly: !1,
|
|
18858
18858
|
context: {
|
|
@@ -18866,7 +18866,7 @@ const xz = ss(IA, {
|
|
|
18866
18866
|
)
|
|
18867
18867
|
}
|
|
18868
18868
|
) : null;
|
|
18869
|
-
} },
|
|
18869
|
+
} }, S.name);
|
|
18870
18870
|
}) })
|
|
18871
18871
|
},
|
|
18872
18872
|
C.key
|
|
@@ -19474,8 +19474,8 @@ function fH() {
|
|
|
19474
19474
|
return I === void 0;
|
|
19475
19475
|
} }, C = "en", x = {};
|
|
19476
19476
|
x[C] = w;
|
|
19477
|
-
var
|
|
19478
|
-
return I instanceof O || !(!I || !I[
|
|
19477
|
+
var S = "$isDayjsObject", E = function(I) {
|
|
19478
|
+
return I instanceof O || !(!I || !I[S]);
|
|
19479
19479
|
}, _ = function I(A, N, F) {
|
|
19480
19480
|
var L;
|
|
19481
19481
|
if (!A) return C;
|
|
@@ -19490,16 +19490,16 @@ function fH() {
|
|
|
19490
19490
|
}
|
|
19491
19491
|
return !F && L && (C = L), L || !F && C;
|
|
19492
19492
|
}, D = function(I, A) {
|
|
19493
|
-
if (
|
|
19493
|
+
if (E(I)) return I.clone();
|
|
19494
19494
|
var N = typeof A == "object" ? A : {};
|
|
19495
19495
|
return N.date = I, N.args = arguments, new O(N);
|
|
19496
19496
|
}, T = k;
|
|
19497
|
-
T.l = _, T.i =
|
|
19497
|
+
T.l = _, T.i = E, T.w = function(I, A) {
|
|
19498
19498
|
return D(I, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
19499
19499
|
};
|
|
19500
19500
|
var O = (function() {
|
|
19501
19501
|
function I(N) {
|
|
19502
|
-
this.$L = _(N.locale, null, !0), this.parse(N), this.$x = this.$x || N.x || {}, this[
|
|
19502
|
+
this.$L = _(N.locale, null, !0), this.parse(N), this.$x = this.$x || N.x || {}, this[S] = !0;
|
|
19503
19503
|
}
|
|
19504
19504
|
var A = I.prototype;
|
|
19505
19505
|
return A.parse = function(N) {
|
|
@@ -19719,7 +19719,7 @@ function fH() {
|
|
|
19719
19719
|
};
|
|
19720
19720
|
})), D.extend = function(I, A) {
|
|
19721
19721
|
return I.$i || (I(A, O, D), I.$i = !0), D;
|
|
19722
|
-
}, D.locale = _, D.isDayjs =
|
|
19722
|
+
}, D.locale = _, D.isDayjs = E, D.unix = function(I) {
|
|
19723
19723
|
return D(1e3 * I);
|
|
19724
19724
|
}, D.en = x[C], D.Ls = x, D.p = {}, D;
|
|
19725
19725
|
}));
|
|
@@ -19846,8 +19846,8 @@ function vH() {
|
|
|
19846
19846
|
return A || N.slice(1);
|
|
19847
19847
|
}));
|
|
19848
19848
|
}))).match(r), k = b.length, C = 0; C < k; C += 1) {
|
|
19849
|
-
var x = b[C],
|
|
19850
|
-
b[C] = _ ? { regex:
|
|
19849
|
+
var x = b[C], S = m[x], E = S && S[0], _ = S && S[1];
|
|
19850
|
+
b[C] = _ ? { regex: E, parser: _ } : x.replace(/^\[|\]$/g, "");
|
|
19851
19851
|
}
|
|
19852
19852
|
return function(D) {
|
|
19853
19853
|
for (var T = {}, O = 0, B = 0; O < k; O += 1) {
|
|
@@ -19871,12 +19871,12 @@ function vH() {
|
|
|
19871
19871
|
w.p.customParseFormat = !0, v && v.parseTwoDigitYear && (c = v.parseTwoDigitYear);
|
|
19872
19872
|
var b = g.prototype, k = b.parse;
|
|
19873
19873
|
b.parse = function(C) {
|
|
19874
|
-
var x = C.date,
|
|
19875
|
-
this.$u =
|
|
19876
|
-
var _ =
|
|
19874
|
+
var x = C.date, S = C.utc, E = C.args;
|
|
19875
|
+
this.$u = S;
|
|
19876
|
+
var _ = E[1];
|
|
19877
19877
|
if (typeof _ == "string") {
|
|
19878
|
-
var D =
|
|
19879
|
-
T && (B =
|
|
19878
|
+
var D = E[2] === !0, T = E[3] === !0, O = D || T, B = E[2];
|
|
19879
|
+
T && (B = E[2]), l = this.$locale(), !D && B && (l = w.Ls[B]), this.$d = (function(F, L, $, Y) {
|
|
19880
19880
|
try {
|
|
19881
19881
|
if (["x", "X"].indexOf(L) > -1) return new Date((L === "X" ? 1e3 : 1) * F);
|
|
19882
19882
|
var Z = y(L)(F), Q = Z.year, M = Z.month, z = Z.day, q = Z.hours, te = Z.minutes, se = Z.seconds, we = Z.milliseconds, V = Z.zone, U = Z.week, W = /* @__PURE__ */ new Date(), X = z || (Q || M ? 1 : W.getDate()), ne = Q || W.getFullYear(), ee = 0;
|
|
@@ -19886,10 +19886,10 @@ function vH() {
|
|
|
19886
19886
|
} catch {
|
|
19887
19887
|
return /* @__PURE__ */ new Date("");
|
|
19888
19888
|
}
|
|
19889
|
-
})(x, _,
|
|
19889
|
+
})(x, _, S, w), this.init(), B && B !== !0 && (this.$L = this.locale(B).$L), O && x != this.format(_) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
19890
19890
|
} else if (_ instanceof Array) for (var I = _.length, A = 1; A <= I; A += 1) {
|
|
19891
|
-
|
|
19892
|
-
var N = w.apply(this,
|
|
19891
|
+
E[1] = _[A - 1];
|
|
19892
|
+
var N = w.apply(this, E);
|
|
19893
19893
|
if (N.isValid()) {
|
|
19894
19894
|
this.$d = N.$d, this.$L = N.$L, this.init();
|
|
19895
19895
|
break;
|
|
@@ -20364,7 +20364,7 @@ const n9 = St(nO, {
|
|
|
20364
20364
|
c(g.fallbackOptions || t.options || []);
|
|
20365
20365
|
return;
|
|
20366
20366
|
}
|
|
20367
|
-
const b = h(g).reduce((x,
|
|
20367
|
+
const b = h(g).reduce((x, S) => (x[S] = dr(s, S), x), {}), k = {
|
|
20368
20368
|
...g.params || {},
|
|
20369
20369
|
deps: b
|
|
20370
20370
|
};
|
|
@@ -20762,8 +20762,8 @@ function hO({
|
|
|
20762
20762
|
customTheme: k,
|
|
20763
20763
|
locale: C,
|
|
20764
20764
|
prefixCls: x,
|
|
20765
|
-
events:
|
|
20766
|
-
customHandlers:
|
|
20765
|
+
events: S,
|
|
20766
|
+
customHandlers: E,
|
|
20767
20767
|
maxExecutionDepth: _,
|
|
20768
20768
|
debugEvents: D
|
|
20769
20769
|
}) {
|
|
@@ -20774,13 +20774,13 @@ function hO({
|
|
|
20774
20774
|
W.defaultValue !== void 0 && (U[W.name] = W.defaultValue);
|
|
20775
20775
|
return { ...U, ...n || {} };
|
|
20776
20776
|
}, [t.fields, n]), I = xt.useMemo(() => {
|
|
20777
|
-
const U = t.enableAutoEvents !== !1, W = t.events || [], X =
|
|
20777
|
+
const U = t.enableAutoEvents !== !1, W = t.events || [], X = S || [];
|
|
20778
20778
|
return _9(t, [...W, ...X], U);
|
|
20779
|
-
}, [t,
|
|
20779
|
+
}, [t, S]), A = G4({
|
|
20780
20780
|
events: I,
|
|
20781
20781
|
form: O,
|
|
20782
20782
|
optionsLoader: f,
|
|
20783
|
-
customHandlers:
|
|
20783
|
+
customHandlers: E,
|
|
20784
20784
|
maxExecutionDepth: _,
|
|
20785
20785
|
debug: D
|
|
20786
20786
|
}), N = xt.useRef({}), F = xt.useMemo(() => {
|
|
@@ -22140,12 +22140,12 @@ function Yy(t) {
|
|
|
22140
22140
|
function z9(t) {
|
|
22141
22141
|
var e;
|
|
22142
22142
|
let { buffer: n, nodeSet: r, maxBufferLength: o = mO, reused: i = [], minRepeatType: s = r.types.length } = t, a = Array.isArray(n) ? new Ky(n, n.length) : n, l = r.types, c = 0, u = 0;
|
|
22143
|
-
function d(C, x,
|
|
22143
|
+
function d(C, x, S, E, _, D) {
|
|
22144
22144
|
let { id: T, start: O, end: B, size: I } = a, A = u, N = c;
|
|
22145
22145
|
if (I < 0)
|
|
22146
22146
|
if (a.next(), I == -1) {
|
|
22147
22147
|
let Z = i[T];
|
|
22148
|
-
|
|
22148
|
+
S.push(Z), E.push(O - C);
|
|
22149
22149
|
return;
|
|
22150
22150
|
} else if (I == -3) {
|
|
22151
22151
|
c = T;
|
|
@@ -22173,9 +22173,9 @@ function z9(t) {
|
|
|
22173
22173
|
} else
|
|
22174
22174
|
L = y(F, Q, M, B - O, A - B, N);
|
|
22175
22175
|
}
|
|
22176
|
-
|
|
22176
|
+
S.push(L), E.push(Y);
|
|
22177
22177
|
}
|
|
22178
|
-
function f(C, x,
|
|
22178
|
+
function f(C, x, S, E) {
|
|
22179
22179
|
let _ = [], D = 0, T = -1;
|
|
22180
22180
|
for (; a.pos > x; ) {
|
|
22181
22181
|
let { id: O, start: B, end: I, size: A } = a;
|
|
@@ -22191,27 +22191,27 @@ function z9(t) {
|
|
|
22191
22191
|
let O = new Uint16Array(D * 4), B = _[_.length - 2];
|
|
22192
22192
|
for (let I = _.length - 3, A = 0; I >= 0; I -= 3)
|
|
22193
22193
|
O[A++] = _[I], O[A++] = _[I + 1] - B, O[A++] = _[I + 2] - B, O[A++] = A;
|
|
22194
|
-
|
|
22194
|
+
S.push(new ri(O, _[2] - B, r)), E.push(B - C);
|
|
22195
22195
|
}
|
|
22196
22196
|
}
|
|
22197
22197
|
function h(C, x) {
|
|
22198
|
-
return (
|
|
22199
|
-
let D = 0, T =
|
|
22200
|
-
if (T >= 0 && (O =
|
|
22198
|
+
return (S, E, _) => {
|
|
22199
|
+
let D = 0, T = S.length - 1, O, B;
|
|
22200
|
+
if (T >= 0 && (O = S[T]) instanceof Pt) {
|
|
22201
22201
|
if (!T && O.type == C && O.length == _)
|
|
22202
22202
|
return O;
|
|
22203
|
-
(B = O.prop(ot.lookAhead)) && (D =
|
|
22203
|
+
(B = O.prop(ot.lookAhead)) && (D = E[T] + O.length + B);
|
|
22204
22204
|
}
|
|
22205
|
-
return y(C,
|
|
22205
|
+
return y(C, S, E, _, D, x);
|
|
22206
22206
|
};
|
|
22207
22207
|
}
|
|
22208
|
-
function m(C, x,
|
|
22208
|
+
function m(C, x, S, E, _, D, T, O, B) {
|
|
22209
22209
|
let I = [], A = [];
|
|
22210
|
-
for (; C.length >
|
|
22211
|
-
I.push(C.pop()), A.push(x.pop() +
|
|
22212
|
-
C.push(y(r.types[T], I, A, D - _, O - D, B)), x.push(_ -
|
|
22210
|
+
for (; C.length > E; )
|
|
22211
|
+
I.push(C.pop()), A.push(x.pop() + S - _);
|
|
22212
|
+
C.push(y(r.types[T], I, A, D - _, O - D, B)), x.push(_ - S);
|
|
22213
22213
|
}
|
|
22214
|
-
function y(C, x,
|
|
22214
|
+
function y(C, x, S, E, _, D, T) {
|
|
22215
22215
|
if (D) {
|
|
22216
22216
|
let O = [ot.contextHash, D];
|
|
22217
22217
|
T = T ? [O].concat(T) : [O];
|
|
@@ -22220,45 +22220,45 @@ function z9(t) {
|
|
|
22220
22220
|
let O = [ot.lookAhead, _];
|
|
22221
22221
|
T = T ? [O].concat(T) : [O];
|
|
22222
22222
|
}
|
|
22223
|
-
return new Pt(C, x,
|
|
22223
|
+
return new Pt(C, x, S, E, T);
|
|
22224
22224
|
}
|
|
22225
22225
|
function v(C, x) {
|
|
22226
|
-
let
|
|
22227
|
-
e: for (let B =
|
|
22228
|
-
let I =
|
|
22229
|
-
if (
|
|
22230
|
-
O.size =
|
|
22226
|
+
let S = a.fork(), E = 0, _ = 0, D = 0, T = S.end - o, O = { size: 0, start: 0, skip: 0 };
|
|
22227
|
+
e: for (let B = S.pos - C; S.pos > B; ) {
|
|
22228
|
+
let I = S.size;
|
|
22229
|
+
if (S.id == x && I >= 0) {
|
|
22230
|
+
O.size = E, O.start = _, O.skip = D, D += 4, E += 4, S.next();
|
|
22231
22231
|
continue;
|
|
22232
22232
|
}
|
|
22233
|
-
let A =
|
|
22234
|
-
if (I < 0 || A < B ||
|
|
22233
|
+
let A = S.pos - I;
|
|
22234
|
+
if (I < 0 || A < B || S.start < T)
|
|
22235
22235
|
break;
|
|
22236
|
-
let N =
|
|
22237
|
-
for (
|
|
22238
|
-
if (
|
|
22239
|
-
if (
|
|
22236
|
+
let N = S.id >= s ? 4 : 0, F = S.start;
|
|
22237
|
+
for (S.next(); S.pos > A; ) {
|
|
22238
|
+
if (S.size < 0)
|
|
22239
|
+
if (S.size == -3 || S.size == -4)
|
|
22240
22240
|
N += 4;
|
|
22241
22241
|
else
|
|
22242
22242
|
break e;
|
|
22243
|
-
else
|
|
22244
|
-
|
|
22243
|
+
else S.id >= s && (N += 4);
|
|
22244
|
+
S.next();
|
|
22245
22245
|
}
|
|
22246
|
-
_ = F,
|
|
22246
|
+
_ = F, E += I, D += N;
|
|
22247
22247
|
}
|
|
22248
|
-
return (x < 0 ||
|
|
22248
|
+
return (x < 0 || E == C) && (O.size = E, O.start = _, O.skip = D), O.size > 4 ? O : void 0;
|
|
22249
22249
|
}
|
|
22250
|
-
function g(C, x,
|
|
22251
|
-
let { id:
|
|
22252
|
-
if (a.next(), T >= 0 &&
|
|
22253
|
-
let O =
|
|
22250
|
+
function g(C, x, S) {
|
|
22251
|
+
let { id: E, start: _, end: D, size: T } = a;
|
|
22252
|
+
if (a.next(), T >= 0 && E < s) {
|
|
22253
|
+
let O = S;
|
|
22254
22254
|
if (T > 4) {
|
|
22255
22255
|
let B = a.pos - (T - 4);
|
|
22256
22256
|
for (; a.pos > B; )
|
|
22257
|
-
|
|
22257
|
+
S = g(C, x, S);
|
|
22258
22258
|
}
|
|
22259
|
-
x[--
|
|
22260
|
-
} else T == -3 ? c =
|
|
22261
|
-
return
|
|
22259
|
+
x[--S] = O, x[--S] = D - C, x[--S] = _ - C, x[--S] = E;
|
|
22260
|
+
} else T == -3 ? c = E : T == -4 && (u = E);
|
|
22261
|
+
return S;
|
|
22262
22262
|
}
|
|
22263
22263
|
let w = [], b = [];
|
|
22264
22264
|
for (; a.pos > 0; )
|
|
@@ -22296,21 +22296,21 @@ function Xy(t, e, n, r, o, i, s, a, l) {
|
|
|
22296
22296
|
for (let b = v; b < g; ) {
|
|
22297
22297
|
let k = b, C = y[b], x = Zu(t, m[b]);
|
|
22298
22298
|
for (b++; b < g; b++) {
|
|
22299
|
-
let
|
|
22300
|
-
if (x +
|
|
22299
|
+
let S = Zu(t, m[b]);
|
|
22300
|
+
if (x + S >= u)
|
|
22301
22301
|
break;
|
|
22302
|
-
x +=
|
|
22302
|
+
x += S;
|
|
22303
22303
|
}
|
|
22304
22304
|
if (b == k + 1) {
|
|
22305
22305
|
if (x > u) {
|
|
22306
|
-
let
|
|
22307
|
-
h(
|
|
22306
|
+
let S = m[k];
|
|
22307
|
+
h(S.children, S.positions, 0, S.children.length, y[k] + w);
|
|
22308
22308
|
continue;
|
|
22309
22309
|
}
|
|
22310
22310
|
d.push(m[k]);
|
|
22311
22311
|
} else {
|
|
22312
|
-
let
|
|
22313
|
-
d.push(Xy(t, m, y, k, b, C,
|
|
22312
|
+
let S = y[b - 1] + m[b - 1].length - C;
|
|
22313
|
+
d.push(Xy(t, m, y, k, b, C, S, null, l));
|
|
22314
22314
|
}
|
|
22315
22315
|
f.push(C + w - i);
|
|
22316
22316
|
}
|
|
@@ -31148,8 +31148,8 @@ class ek {
|
|
|
31148
31148
|
if ((this.contentDOMWidth != w || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = a.width, this.editorHeight = e.scrollDOM.clientHeight, c |= 16), l) {
|
|
31149
31149
|
let k = e.docView.measureVisibleLineHeights(this.viewport);
|
|
31150
31150
|
if (o.mustRefreshForHeights(k) && (s = !0), s || o.lineWrapping && Math.abs(w - this.contentDOMWidth) > o.charWidth) {
|
|
31151
|
-
let { lineHeight: C, charWidth: x, textHeight:
|
|
31152
|
-
s = C > 0 && o.refresh(i, C, x,
|
|
31151
|
+
let { lineHeight: C, charWidth: x, textHeight: S } = e.docView.measureTextSize();
|
|
31152
|
+
s = C > 0 && o.refresh(i, C, x, S, Math.max(5, w / x), k), s && (e.docView.minWidth = 0, c |= 16);
|
|
31153
31153
|
}
|
|
31154
31154
|
y > 0 && v > 0 ? u = Math.max(y, v) : y < 0 && v < 0 && (u = Math.min(y, v)), Q1();
|
|
31155
31155
|
for (let C of this.viewports) {
|
|
@@ -31259,8 +31259,8 @@ class ek {
|
|
|
31259
31259
|
x.from >= u.from && x.from < u.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + g < this.pixelViewport.left && (g = x.size - x.displaySize);
|
|
31260
31260
|
let w = this.pixelViewport.left + g, b = this.pixelViewport.right + g, k, C;
|
|
31261
31261
|
if (f != null) {
|
|
31262
|
-
let x = au(d, f),
|
|
31263
|
-
k = x -
|
|
31262
|
+
let x = au(d, f), S = ((b - w) / 2 + v) / y;
|
|
31263
|
+
k = x - S, C = x + S;
|
|
31264
31264
|
} else
|
|
31265
31265
|
k = (w - v) / y, C = (b + v) / y;
|
|
31266
31266
|
h = su(d, k), m = su(d, C);
|
|
@@ -33039,25 +33039,25 @@ function g7(t, e, n) {
|
|
|
33039
33039
|
if (y && (t.lineWrapping || h.widgetLineBreaks) && (y = lk(t, r, 1, y)), v && (t.lineWrapping || m.widgetLineBreaks) && (v = lk(t, o, -1, v)), y && v && y.from == v.from && y.to == v.to)
|
|
33040
33040
|
return w(b(n.from, n.to, y));
|
|
33041
33041
|
{
|
|
33042
|
-
let C = y ? b(n.from, null, y) : k(h, !1), x = v ? b(null, n.to, v) : k(m, !0),
|
|
33043
|
-
return (y || h).to < (v || m).from - (y && v ? 1 : 0) || h.widgetLineBreaks > 1 && C.bottom + t.defaultLineHeight / 2 < x.top ?
|
|
33042
|
+
let C = y ? b(n.from, null, y) : k(h, !1), x = v ? b(null, n.to, v) : k(m, !0), S = [];
|
|
33043
|
+
return (y || h).to < (v || m).from - (y && v ? 1 : 0) || h.widgetLineBreaks > 1 && C.bottom + t.defaultLineHeight / 2 < x.top ? S.push(g(d, C.bottom, f, x.top)) : C.bottom < x.top && t.elementAtHeight((C.bottom + x.top) / 2).type == dn.Text && (C.bottom = x.top = (C.bottom + x.top) / 2), w(C).concat(S).concat(w(x));
|
|
33044
33044
|
}
|
|
33045
|
-
function g(C, x,
|
|
33046
|
-
return new gc(e, C - l.left, x - l.top,
|
|
33045
|
+
function g(C, x, S, E) {
|
|
33046
|
+
return new gc(e, C - l.left, x - l.top, S - C, E - x);
|
|
33047
33047
|
}
|
|
33048
|
-
function w({ top: C, bottom: x, horizontal:
|
|
33049
|
-
let
|
|
33050
|
-
for (let _ = 0; _ <
|
|
33051
|
-
|
|
33052
|
-
return
|
|
33048
|
+
function w({ top: C, bottom: x, horizontal: S }) {
|
|
33049
|
+
let E = [];
|
|
33050
|
+
for (let _ = 0; _ < S.length; _ += 2)
|
|
33051
|
+
E.push(g(S[_], C, S[_ + 1], x));
|
|
33052
|
+
return E;
|
|
33053
33053
|
}
|
|
33054
|
-
function b(C, x,
|
|
33055
|
-
let
|
|
33054
|
+
function b(C, x, S) {
|
|
33055
|
+
let E = 1e9, _ = -1e9, D = [];
|
|
33056
33056
|
function T(I, A, N, F, L) {
|
|
33057
|
-
let $ = t.coordsAtPos(I, I ==
|
|
33058
|
-
!$ || !Y || (
|
|
33057
|
+
let $ = t.coordsAtPos(I, I == S.to ? -2 : 2), Y = t.coordsAtPos(N, N == S.from ? 2 : -2);
|
|
33058
|
+
!$ || !Y || (E = Math.min($.top, Y.top, E), _ = Math.max($.bottom, Y.bottom, _), L == kt.LTR ? D.push(i && A ? d : $.left, i && F ? f : Y.right) : D.push(!i && F ? d : Y.left, !i && A ? f : $.right));
|
|
33059
33059
|
}
|
|
33060
|
-
let O = C ??
|
|
33060
|
+
let O = C ?? S.from, B = x ?? S.to;
|
|
33061
33061
|
for (let I of t.visibleRanges)
|
|
33062
33062
|
if (I.to > O && I.from < B)
|
|
33063
33063
|
for (let A = Math.max(I.from, O), N = Math.min(I.to, B); ; ) {
|
|
@@ -33071,11 +33071,11 @@ function g7(t, e, n) {
|
|
|
33071
33071
|
if (A = F.to + 1, A >= N)
|
|
33072
33072
|
break;
|
|
33073
33073
|
}
|
|
33074
|
-
return D.length == 0 && T(O, C == null, B, x == null, t.textDirection), { top:
|
|
33074
|
+
return D.length == 0 && T(O, C == null, B, x == null, t.textDirection), { top: E, bottom: _, horizontal: D };
|
|
33075
33075
|
}
|
|
33076
33076
|
function k(C, x) {
|
|
33077
|
-
let
|
|
33078
|
-
return { top:
|
|
33077
|
+
let S = a.top + (x ? C.top : C.bottom);
|
|
33078
|
+
return { top: S, bottom: S, horizontal: [] };
|
|
33079
33079
|
}
|
|
33080
33080
|
}
|
|
33081
33081
|
function w7(t, e) {
|
|
@@ -33773,15 +33773,15 @@ const xp = /* @__PURE__ */ Be.define({
|
|
|
33773
33773
|
}
|
|
33774
33774
|
hk.set(c, v), u.style.height = (v = C) / i + "px";
|
|
33775
33775
|
} else u.style.height && (u.style.height = "");
|
|
33776
|
-
let x = k ? d.top - v - m - g.y : d.bottom + m + g.y,
|
|
33776
|
+
let x = k ? d.top - v - m - g.y : d.bottom + m + g.y, S = b + y;
|
|
33777
33777
|
if (c.overlap !== !0)
|
|
33778
|
-
for (let
|
|
33779
|
-
|
|
33778
|
+
for (let E of s)
|
|
33779
|
+
E.left < S && E.right > b && E.top < x + v && E.bottom > x && (x = k ? E.top - v - 2 - m : E.bottom + m + 2);
|
|
33780
33780
|
if (this.position == "absolute" ? (u.style.top = (x - t.parent.top) / i + "px", pk(u, (b - t.parent.left) / o)) : (u.style.top = x / i + "px", pk(u, b / o)), h) {
|
|
33781
|
-
let
|
|
33782
|
-
h.style.left =
|
|
33781
|
+
let E = d.left + (w ? g.x : -g.x) - (b + 14 - 7);
|
|
33782
|
+
h.style.left = E / o + "px";
|
|
33783
33783
|
}
|
|
33784
|
-
c.overlap !== !0 && s.push({ left: b, top: x, right:
|
|
33784
|
+
c.overlap !== !0 && s.push({ left: b, top: x, right: S, bottom: x + v }), u.classList.toggle("cm-tooltip-above", k), u.classList.toggle("cm-tooltip-below", !k), c.positioned && c.positioned(t.space);
|
|
33785
33785
|
}
|
|
33786
33786
|
}
|
|
33787
33787
|
maybeMeasure() {
|
|
@@ -37874,8 +37874,8 @@ class aG {
|
|
|
37874
37874
|
for (let w = 0, b = Math.min(e.length, 200), k = 0; w < b && d < l; ) {
|
|
37875
37875
|
let C = In(e, w);
|
|
37876
37876
|
a < 0 && (u < l && C == n[u] && (i[u++] = w), h < l && (C == n[h] || C == r[h] ? (h == 0 && (m = w), y = w + 1, h++) : h = 0));
|
|
37877
|
-
let x,
|
|
37878
|
-
(!w ||
|
|
37877
|
+
let x, S = C < 255 ? C >= 48 && C <= 57 || C >= 97 && C <= 122 ? 2 : C >= 65 && C <= 90 ? 1 : 0 : (x = Jy(C)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
|
|
37878
|
+
(!w || S == 1 && v || k == 0 && S != 0) && (n[d] == C || r[d] == C && (f = !0) ? s[d++] = w : s.length && (g = !1)), k = S, w += eo(C);
|
|
37879
37879
|
}
|
|
37880
37880
|
return d == l && s[0] == 0 && g ? this.result(-100 + (f ? -200 : 0), s, e) : h == l && m == 0 ? this.ret(-200 - e.length + (y == e.length ? 0 : -100), [0, y]) : a > -1 ? this.ret(-700 - e.length, [a, a + this.pattern.length]) : h == l ? this.ret(-900 - e.length, [m, y]) : d == l ? this.result(-100 + (f ? -200 : 0) + -700 + (g ? 0 : -1100), s, e) : n.length == 2 ? null : this.result((o[0] ? -700 : 0) + -200 + -1100, o, e);
|
|
37881
37881
|
}
|
|
@@ -39761,7 +39761,7 @@ function TK(t) {
|
|
|
39761
39761
|
basicSetup: k = !0,
|
|
39762
39762
|
root: C,
|
|
39763
39763
|
initialState: x
|
|
39764
|
-
} = t, [
|
|
39764
|
+
} = t, [S, E] = re(), [_, D] = re(), [T, O] = re(), B = re(() => ({
|
|
39765
39765
|
current: null
|
|
39766
39766
|
}))[0], I = re(() => ({
|
|
39767
39767
|
current: null
|
|
@@ -39801,7 +39801,7 @@ function TK(t) {
|
|
|
39801
39801
|
basicSetup: k
|
|
39802
39802
|
}), L = [N, A, ...F];
|
|
39803
39803
|
return s && typeof s == "function" && L.push(Oe.updateListener.of(s)), L = L.concat(a), oy(() => {
|
|
39804
|
-
if (
|
|
39804
|
+
if (S && !T) {
|
|
39805
39805
|
var $ = {
|
|
39806
39806
|
doc: e,
|
|
39807
39807
|
selection: n,
|
|
@@ -39810,7 +39810,7 @@ function TK(t) {
|
|
|
39810
39810
|
if (O(Y), !_) {
|
|
39811
39811
|
var Z = new Oe({
|
|
39812
39812
|
state: Y,
|
|
39813
|
-
parent:
|
|
39813
|
+
parent: S,
|
|
39814
39814
|
root: C
|
|
39815
39815
|
});
|
|
39816
39816
|
D(Z), i && i(Z, Y);
|
|
@@ -39819,8 +39819,8 @@ function TK(t) {
|
|
|
39819
39819
|
return () => {
|
|
39820
39820
|
_ && (O(void 0), D(void 0));
|
|
39821
39821
|
};
|
|
39822
|
-
}, [
|
|
39823
|
-
t.container &&
|
|
39822
|
+
}, [S, T]), pe(() => {
|
|
39823
|
+
t.container && E(t.container);
|
|
39824
39824
|
}, [t.container]), pe(() => () => {
|
|
39825
39825
|
_ && (_.destroy(), D(void 0)), B.current && (B.current.cancel(), B.current = null);
|
|
39826
39826
|
}, [_]), pe(() => {
|
|
@@ -39851,8 +39851,8 @@ function TK(t) {
|
|
|
39851
39851
|
setState: O,
|
|
39852
39852
|
view: _,
|
|
39853
39853
|
setView: D,
|
|
39854
|
-
container:
|
|
39855
|
-
setContainer:
|
|
39854
|
+
container: S,
|
|
39855
|
+
setContainer: E
|
|
39856
39856
|
};
|
|
39857
39857
|
}
|
|
39858
39858
|
var NK = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"], uh = /* @__PURE__ */ rn((t, e) => {
|
|
@@ -39878,15 +39878,15 @@ var NK = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
|
39878
39878
|
indentWithTab: k,
|
|
39879
39879
|
editable: C,
|
|
39880
39880
|
readOnly: x,
|
|
39881
|
-
root:
|
|
39882
|
-
initialState:
|
|
39881
|
+
root: S,
|
|
39882
|
+
initialState: E
|
|
39883
39883
|
} = t, _ = pU(t, NK), D = ge(null), {
|
|
39884
39884
|
state: T,
|
|
39885
39885
|
view: O,
|
|
39886
39886
|
container: B,
|
|
39887
39887
|
setContainer: I
|
|
39888
39888
|
} = TK({
|
|
39889
|
-
root:
|
|
39889
|
+
root: S,
|
|
39890
39890
|
value: r,
|
|
39891
39891
|
autoFocus: u,
|
|
39892
39892
|
theme: d,
|
|
@@ -39907,7 +39907,7 @@ var NK = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
|
39907
39907
|
onCreateEditor: l,
|
|
39908
39908
|
onUpdate: c,
|
|
39909
39909
|
extensions: i,
|
|
39910
|
-
initialState:
|
|
39910
|
+
initialState: E
|
|
39911
39911
|
});
|
|
39912
39912
|
jn(e, () => ({
|
|
39913
39913
|
editor: D.current,
|
|
@@ -40766,9 +40766,9 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
40766
40766
|
A.stopPropagation(), A.preventDefault(), g.isEditing = !0, m(!0), f(!0), g.editId = N, g.editValue = F, setTimeout(() => {
|
|
40767
40767
|
v.current && v.current.focus();
|
|
40768
40768
|
}, 0);
|
|
40769
|
-
}, E = (A) => {
|
|
40770
|
-
A.stopPropagation(), A.preventDefault(), m(!0);
|
|
40771
40769
|
}, S = (A) => {
|
|
40770
|
+
A.stopPropagation(), A.preventDefault(), m(!0);
|
|
40771
|
+
}, E = (A) => {
|
|
40772
40772
|
g.isEditing || e && e(A);
|
|
40773
40773
|
}, _ = () => {
|
|
40774
40774
|
if (!w) {
|
|
@@ -40941,7 +40941,7 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
40941
40941
|
{
|
|
40942
40942
|
ref: v,
|
|
40943
40943
|
value: t,
|
|
40944
|
-
onChange:
|
|
40944
|
+
onChange: E,
|
|
40945
40945
|
style: { width: "100%" },
|
|
40946
40946
|
placeholder: s,
|
|
40947
40947
|
disabled: i,
|
|
@@ -40987,13 +40987,13 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
40987
40987
|
onClick: (N) => x(N, A.id, A.name)
|
|
40988
40988
|
}
|
|
40989
40989
|
)
|
|
40990
|
-
] }) : /* @__PURE__ */ p("div", { className: vi.editInputWrapper, onClick:
|
|
40990
|
+
] }) : /* @__PURE__ */ p("div", { className: vi.editInputWrapper, onClick: S, children: /* @__PURE__ */ p(
|
|
40991
40991
|
tt,
|
|
40992
40992
|
{
|
|
40993
40993
|
ref: y,
|
|
40994
40994
|
defaultValue: A.name,
|
|
40995
40995
|
className: vi.nameEditInput,
|
|
40996
|
-
onClick:
|
|
40996
|
+
onClick: S,
|
|
40997
40997
|
onMouseDown: (N) => {
|
|
40998
40998
|
N.stopPropagation(), N.preventDefault();
|
|
40999
40999
|
},
|
|
@@ -41261,50 +41261,48 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
41261
41261
|
]);
|
|
41262
41262
|
return Array.from(e).some((n) => TY.includes(n));
|
|
41263
41263
|
}, BY = (t) => {
|
|
41264
|
-
const { value: e, onChange: n, disabled: r } = t, [o, i] = re([]), [s, a] = re(!1), [l, c] = re(!1), [u, d] = re(""), [f, h] = re(1), [m, y] = re(!1), v = ge(0), g = le(() => `${window.location.origin}/iam/token`, []), w = async (E = 1,
|
|
41265
|
-
const
|
|
41266
|
-
v.current =
|
|
41264
|
+
const { value: e, onChange: n, disabled: r } = t, [o, i] = re([]), [s, a] = re(!1), [l, c] = re(!1), [u, d] = re(""), [f, h] = re(1), [m, y] = re(!1), v = ge(0), g = le(() => `${window.location.origin}/iam/token`, []), w = async (E = 1, _ = !1, D = "") => {
|
|
41265
|
+
const T = v.current + 1;
|
|
41266
|
+
v.current = T, _ ? c(!0) : a(!0);
|
|
41267
41267
|
try {
|
|
41268
|
-
const
|
|
41268
|
+
const O = await e_(
|
|
41269
41269
|
{
|
|
41270
41270
|
current: E,
|
|
41271
41271
|
pageSize: dx
|
|
41272
41272
|
},
|
|
41273
41273
|
{
|
|
41274
|
-
filter:
|
|
41274
|
+
filter: D
|
|
41275
41275
|
}
|
|
41276
41276
|
);
|
|
41277
|
-
if (v.current !==
|
|
41277
|
+
if (v.current !== T)
|
|
41278
41278
|
return;
|
|
41279
|
-
const
|
|
41280
|
-
(
|
|
41279
|
+
const B = (O.items ?? []).filter(NY), A = (_ ? [...o, ...B] : B).filter(
|
|
41280
|
+
(N, F, L) => L.findIndex(($) => $.client_id === N.client_id) === F
|
|
41281
41281
|
);
|
|
41282
|
-
i(
|
|
41282
|
+
i(A), h(E), y((O.total ?? 0) > E * dx);
|
|
41283
41283
|
} catch {
|
|
41284
|
-
v.current ===
|
|
41284
|
+
v.current === T && Ce.error(K("components.selectOAuth2ClientField.fetchFailed"));
|
|
41285
41285
|
} finally {
|
|
41286
|
-
v.current ===
|
|
41286
|
+
v.current === T && (a(!1), c(!1));
|
|
41287
41287
|
}
|
|
41288
41288
|
};
|
|
41289
|
+
let b = null;
|
|
41289
41290
|
pe(() => {
|
|
41290
|
-
|
|
41291
|
+
b && (clearTimeout(b), b = null), b = window.setTimeout(() => {
|
|
41291
41292
|
w(1, !1, u.trim());
|
|
41292
41293
|
}, 300);
|
|
41293
|
-
return () => {
|
|
41294
|
-
window.clearTimeout(E);
|
|
41295
|
-
};
|
|
41296
41294
|
}, [u]);
|
|
41297
|
-
const
|
|
41295
|
+
const k = async () => {
|
|
41298
41296
|
!m || s || l || await w(f + 1, !0, u.trim());
|
|
41299
|
-
},
|
|
41297
|
+
}, C = async () => {
|
|
41300
41298
|
try {
|
|
41301
41299
|
await navigator.clipboard.writeText(g), Ce.success(K("components.selectOAuth2ClientField.copySuccess"));
|
|
41302
41300
|
} catch {
|
|
41303
41301
|
Ce.error(K("components.selectOAuth2ClientField.copyFailed"));
|
|
41304
41302
|
}
|
|
41305
|
-
}, C = () => {
|
|
41306
|
-
window.open("/uc/apps/manage", "_blank");
|
|
41307
41303
|
}, x = () => {
|
|
41304
|
+
window.open("/uc/apps/manage", "_blank");
|
|
41305
|
+
}, S = () => {
|
|
41308
41306
|
window.open("https://1in15q85qd.apifox.cn/8698545m0", "_blank");
|
|
41309
41307
|
};
|
|
41310
41308
|
return /* @__PURE__ */ P(nt, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
|
|
@@ -41339,7 +41337,7 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
41339
41337
|
type: "primary",
|
|
41340
41338
|
ghost: !0,
|
|
41341
41339
|
icon: /* @__PURE__ */ p(BR, {}),
|
|
41342
|
-
onClick:
|
|
41340
|
+
onClick: x,
|
|
41343
41341
|
children: K("components.selectOAuth2ClientField.goToAppManage")
|
|
41344
41342
|
}
|
|
41345
41343
|
)
|
|
@@ -41358,7 +41356,7 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
41358
41356
|
{
|
|
41359
41357
|
type: "link",
|
|
41360
41358
|
icon: /* @__PURE__ */ p(hl, {}),
|
|
41361
|
-
onClick:
|
|
41359
|
+
onClick: k,
|
|
41362
41360
|
loading: l,
|
|
41363
41361
|
disabled: !m,
|
|
41364
41362
|
children: K(m ? "components.selectOAuth2ClientField.loadMore" : "components.selectOAuth2ClientField.loadedAll")
|
|
@@ -41375,7 +41373,7 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
41375
41373
|
),
|
|
41376
41374
|
/* @__PURE__ */ P(Fn.Text, { type: "secondary", style: { display: "block", marginTop: 8, fontSize: 12 }, children: [
|
|
41377
41375
|
K("components.selectOAuth2ClientField.selectDescriptionPrefix"),
|
|
41378
|
-
/* @__PURE__ */ p(ce, { style: { padding: 0 }, type: "link", onClick:
|
|
41376
|
+
/* @__PURE__ */ p(ce, { style: { padding: 0 }, type: "link", onClick: x, children: K("components.selectOAuth2ClientField.goToAppManage") }),
|
|
41379
41377
|
K("components.selectOAuth2ClientField.selectDescriptionSuffix")
|
|
41380
41378
|
] })
|
|
41381
41379
|
] }),
|
|
@@ -41383,11 +41381,11 @@ const { Option: vY } = at, { Text: bY, Title: Lae } = Fn, Nn = "[workflow:accoun
|
|
|
41383
41381
|
/* @__PURE__ */ p(Fn.Text, { strong: !0, style: { display: "block", marginBottom: 8 }, children: K("components.selectOAuth2ClientField.tokenEndpoint") }),
|
|
41384
41382
|
/* @__PURE__ */ P(nt.Compact, { block: !0, className: "workflow-oauth-token-endpoint", children: [
|
|
41385
41383
|
/* @__PURE__ */ p(tt, { value: g, readOnly: !0 }),
|
|
41386
|
-
/* @__PURE__ */ p(ce, { icon: /* @__PURE__ */ p(ca, {}), onClick:
|
|
41384
|
+
/* @__PURE__ */ p(ce, { icon: /* @__PURE__ */ p(ca, {}), onClick: C, disabled: r, children: K("components.selectOAuth2ClientField.copy") })
|
|
41387
41385
|
] }),
|
|
41388
41386
|
/* @__PURE__ */ P(Fn.Text, { type: "secondary", style: { display: "block", marginTop: 8, fontSize: 12 }, children: [
|
|
41389
41387
|
K("components.selectOAuth2ClientField.tokenDescriptionPrefix"),
|
|
41390
|
-
/* @__PURE__ */ p(ce, { style: { padding: 0 }, type: "link", onClick:
|
|
41388
|
+
/* @__PURE__ */ p(ce, { style: { padding: 0 }, type: "link", onClick: S, children: K("components.selectOAuth2ClientField.documentation") })
|
|
41391
41389
|
] })
|
|
41392
41390
|
] })
|
|
41393
41391
|
] });
|
|
@@ -41645,7 +41643,7 @@ const $Y = (t) => {
|
|
|
41645
41643
|
)) : null,
|
|
41646
41644
|
c && /* @__PURE__ */ p(ce, { type: "default", onClick: d, block: !0, icon: /* @__PURE__ */ p(Nr, { size: 16 }), children: /* @__PURE__ */ p(je, { id: "app.common.word.add-field" }) })
|
|
41647
41645
|
] });
|
|
41648
|
-
}, jY = dF(() => import("./index-
|
|
41646
|
+
}, jY = dF(() => import("./index-BsVgIib3.mjs")), bB = (t) => {
|
|
41649
41647
|
const e = Lr({
|
|
41650
41648
|
editorVisible: !1
|
|
41651
41649
|
}), n = () => {
|
|
@@ -42111,7 +42109,7 @@ const mf = new JY(), bu = (t, e) => {
|
|
|
42111
42109
|
disabled: m,
|
|
42112
42110
|
id: y
|
|
42113
42111
|
}, v) => {
|
|
42114
|
-
const g = ge(null), w = G((
|
|
42112
|
+
const g = ge(null), w = G((S, E) => {
|
|
42115
42113
|
var O;
|
|
42116
42114
|
const { view: _ } = g.current;
|
|
42117
42115
|
if (!_) return;
|
|
@@ -42122,36 +42120,36 @@ const mf = new JY(), bu = (t, e) => {
|
|
|
42122
42120
|
changes: {
|
|
42123
42121
|
from: T.from,
|
|
42124
42122
|
to: T.to,
|
|
42125
|
-
insert:
|
|
42123
|
+
insert: S
|
|
42126
42124
|
},
|
|
42127
42125
|
selection: {
|
|
42128
|
-
anchor: T.from +
|
|
42126
|
+
anchor: T.from + S.length
|
|
42129
42127
|
}
|
|
42130
42128
|
});
|
|
42131
42129
|
}, []), b = G(() => {
|
|
42132
|
-
const { view:
|
|
42133
|
-
|
|
42130
|
+
const { view: S } = g.current;
|
|
42131
|
+
S.dispatch({
|
|
42134
42132
|
changes: {
|
|
42135
42133
|
from: 0,
|
|
42136
|
-
to:
|
|
42134
|
+
to: S.state.doc.length,
|
|
42137
42135
|
insert: ""
|
|
42138
42136
|
},
|
|
42139
42137
|
selection: {
|
|
42140
42138
|
anchor: 0
|
|
42141
42139
|
}
|
|
42142
|
-
}),
|
|
42143
|
-
}, []), k = G((
|
|
42144
|
-
const { view:
|
|
42145
|
-
|
|
42140
|
+
}), S.focus();
|
|
42141
|
+
}, []), k = G((S) => {
|
|
42142
|
+
const { view: E } = g.current;
|
|
42143
|
+
E.dispatch({
|
|
42146
42144
|
changes: {
|
|
42147
42145
|
from: 0,
|
|
42148
|
-
to:
|
|
42149
|
-
insert:
|
|
42146
|
+
to: E.state.doc.length,
|
|
42147
|
+
insert: S
|
|
42150
42148
|
},
|
|
42151
42149
|
selection: {
|
|
42152
|
-
anchor:
|
|
42150
|
+
anchor: S.length
|
|
42153
42151
|
}
|
|
42154
|
-
}),
|
|
42152
|
+
}), E.focus();
|
|
42155
42153
|
}, []);
|
|
42156
42154
|
jn(v, () => ({
|
|
42157
42155
|
insertText: w,
|
|
@@ -42185,8 +42183,8 @@ const mf = new JY(), bu = (t, e) => {
|
|
|
42185
42183
|
h
|
|
42186
42184
|
]
|
|
42187
42185
|
), x = G(
|
|
42188
|
-
(
|
|
42189
|
-
e && e(
|
|
42186
|
+
(S) => {
|
|
42187
|
+
e && e(S);
|
|
42190
42188
|
},
|
|
42191
42189
|
[e]
|
|
42192
42190
|
);
|
|
@@ -43453,19 +43451,19 @@ const UX = [
|
|
|
43453
43451
|
const y = n.action_key || n.nodeKey, v = n.action_ver ?? n.nodeVersion, g = Array.isArray(d == null ? void 0 : d.sub_params), w = ui(n), b = le(() => !w || !y ? null : `${y}@${v ?? "latest"}`, [w, y, v]), k = b ? `${o}:${b}` : o, C = n.account_id ?? i, x = le(
|
|
43454
43452
|
() => b ? Gi(y, v) : null,
|
|
43455
43453
|
[b, y, v]
|
|
43456
|
-
), [
|
|
43454
|
+
), [S, E] = re(
|
|
43457
43455
|
() => b && x ? {
|
|
43458
43456
|
identity: b,
|
|
43459
43457
|
schema: x,
|
|
43460
43458
|
loading: !1,
|
|
43461
43459
|
finished: !0
|
|
43462
43460
|
} : null
|
|
43463
|
-
), _ = (
|
|
43461
|
+
), _ = (S == null ? void 0 : S.identity) === b ? S : null, D = (_ == null ? void 0 : _.schema) ?? null, T = Mv(
|
|
43464
43462
|
(D == null ? void 0 : D.credentials) ?? []
|
|
43465
43463
|
), O = !!(w && y && !D && ((_ == null ? void 0 : _.loading) ?? !(_ != null && _.finished))), B = PX(D);
|
|
43466
43464
|
pe(() => {
|
|
43467
|
-
!
|
|
43468
|
-
}, [b,
|
|
43465
|
+
!S || S.identity;
|
|
43466
|
+
}, [b, S, o, y, v]), pe(() => {
|
|
43469
43467
|
f && (u.proxyId = f);
|
|
43470
43468
|
}, [f, u]);
|
|
43471
43469
|
const [I] = Ee.useForm(), [A, N] = re(
|
|
@@ -43487,12 +43485,12 @@ const UX = [
|
|
|
43487
43485
|
const L = ge(null), $ = ge(null);
|
|
43488
43486
|
pe(() => {
|
|
43489
43487
|
if (!b || !y) {
|
|
43490
|
-
|
|
43488
|
+
E(null);
|
|
43491
43489
|
return;
|
|
43492
43490
|
}
|
|
43493
43491
|
const de = Gi(y, v);
|
|
43494
43492
|
if (de) {
|
|
43495
|
-
|
|
43493
|
+
E({
|
|
43496
43494
|
identity: b,
|
|
43497
43495
|
schema: de,
|
|
43498
43496
|
loading: !1,
|
|
@@ -43501,20 +43499,20 @@ const UX = [
|
|
|
43501
43499
|
return;
|
|
43502
43500
|
}
|
|
43503
43501
|
let me = !1;
|
|
43504
|
-
return
|
|
43502
|
+
return E({
|
|
43505
43503
|
identity: b,
|
|
43506
43504
|
schema: null,
|
|
43507
43505
|
loading: !0,
|
|
43508
43506
|
finished: !1
|
|
43509
43507
|
}), Ff(y, v).then((oe) => {
|
|
43510
|
-
me ||
|
|
43508
|
+
me || E({
|
|
43511
43509
|
identity: b,
|
|
43512
43510
|
schema: oe,
|
|
43513
43511
|
loading: !1,
|
|
43514
43512
|
finished: !0
|
|
43515
43513
|
});
|
|
43516
43514
|
}).catch((oe) => {
|
|
43517
|
-
me || (
|
|
43515
|
+
me || (E({
|
|
43518
43516
|
identity: b,
|
|
43519
43517
|
schema: null,
|
|
43520
43518
|
loading: !1,
|
|
@@ -44088,9 +44086,9 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44088
44086
|
level: k,
|
|
44089
44087
|
children: []
|
|
44090
44088
|
};
|
|
44091
|
-
w.forEach((
|
|
44089
|
+
w.forEach((S, E) => {
|
|
44092
44090
|
var T;
|
|
44093
|
-
const _ = [...b,
|
|
44091
|
+
const _ = [...b, E.toString()], D = g(S, _, k + 1);
|
|
44094
44092
|
(T = x.children) == null || T.push(...D);
|
|
44095
44093
|
}), C.push(x);
|
|
44096
44094
|
} else if (typeof w == "object") {
|
|
@@ -44102,9 +44100,9 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44102
44100
|
level: k,
|
|
44103
44101
|
children: []
|
|
44104
44102
|
};
|
|
44105
|
-
Object.entries(w).forEach(([
|
|
44103
|
+
Object.entries(w).forEach(([S, E]) => {
|
|
44106
44104
|
var T;
|
|
44107
|
-
const _ = [...b,
|
|
44105
|
+
const _ = [...b, S], D = g(E, _, k + 1);
|
|
44108
44106
|
(T = x.children) == null || T.push(...D);
|
|
44109
44107
|
}), C.push(x);
|
|
44110
44108
|
} else {
|
|
@@ -44161,7 +44159,7 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44161
44159
|
] }),
|
|
44162
44160
|
b && /* @__PURE__ */ P(Dt, { children: [
|
|
44163
44161
|
(C = g.children) == null ? void 0 : C.map(
|
|
44164
|
-
(x,
|
|
44162
|
+
(x, S) => v(x, w + S + 1)
|
|
44165
44163
|
),
|
|
44166
44164
|
/* @__PURE__ */ p("div", { className: "json-line", style: { paddingLeft: `${g.level * 16}px` }, children: /* @__PURE__ */ p("span", { className: "json-bracket", children: g.type === "array" ? "]" : "}" }) })
|
|
44167
44165
|
] })
|
|
@@ -44216,7 +44214,7 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44216
44214
|
onClose: v,
|
|
44217
44215
|
onExpandPanel: g
|
|
44218
44216
|
}) => {
|
|
44219
|
-
const w = t === "running", b = t === "failure", k = t === "ignored", C = t === "success" || k, x = t === "disabled", [
|
|
44217
|
+
const w = t === "running", b = t === "failure", k = t === "ignored", C = t === "success" || k, x = t === "disabled", [S, E] = re(!1);
|
|
44220
44218
|
return /* @__PURE__ */ P(
|
|
44221
44219
|
"section",
|
|
44222
44220
|
{
|
|
@@ -44310,14 +44308,14 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44310
44308
|
ce,
|
|
44311
44309
|
{
|
|
44312
44310
|
size: "small",
|
|
44313
|
-
type:
|
|
44311
|
+
type: S ? "primary" : "default",
|
|
44314
44312
|
variant: "solid",
|
|
44315
44313
|
className: "edit-button",
|
|
44316
44314
|
onClick: () => {
|
|
44317
|
-
const _ = !
|
|
44318
|
-
g(_),
|
|
44315
|
+
const _ = !S;
|
|
44316
|
+
g(_), E(_);
|
|
44319
44317
|
},
|
|
44320
|
-
children:
|
|
44318
|
+
children: S ? /* @__PURE__ */ p(Yz, { size: 16 }) : /* @__PURE__ */ p(Gz, { size: 16 })
|
|
44321
44319
|
}
|
|
44322
44320
|
)
|
|
44323
44321
|
] })
|
|
@@ -44327,7 +44325,7 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44327
44325
|
children: a ? /* @__PURE__ */ p(
|
|
44328
44326
|
sJ,
|
|
44329
44327
|
{
|
|
44330
|
-
rows:
|
|
44328
|
+
rows: S ? 20 : 10,
|
|
44331
44329
|
value: l,
|
|
44332
44330
|
onChange: (_) => c == null ? void 0 : c(_.target.value),
|
|
44333
44331
|
className: "result-editor"
|
|
@@ -44336,7 +44334,7 @@ const Pv = (t) => t === lt.is_null || t === lt.is_not_null, ZX = (t, e = "") =>
|
|
|
44336
44334
|
iJ,
|
|
44337
44335
|
{
|
|
44338
44336
|
data: e,
|
|
44339
|
-
height:
|
|
44337
|
+
height: S ? 600 : 300,
|
|
44340
44338
|
enableCopy: !0,
|
|
44341
44339
|
theme: "dark"
|
|
44342
44340
|
},
|
|
@@ -44488,7 +44486,7 @@ const wJ = rn((t, e) => {
|
|
|
44488
44486
|
});
|
|
44489
44487
|
},
|
|
44490
44488
|
[C, (O = d == null ? void 0 : d.data) == null ? void 0 : O.protocol, d == null ? void 0 : d.type]
|
|
44491
|
-
),
|
|
44489
|
+
), S = x.disabled ? "disabled" : f.testing ? "running" : f.isError ? "failure" : f.successShown ? f.isIgnoreSuccess ? "ignored" : "success" : "waiting", E = () => {
|
|
44492
44490
|
if (f.editable) {
|
|
44493
44491
|
f.editable = !1;
|
|
44494
44492
|
try {
|
|
@@ -44507,7 +44505,7 @@ const wJ = rn((t, e) => {
|
|
|
44507
44505
|
return /* @__PURE__ */ p(
|
|
44508
44506
|
lJ,
|
|
44509
44507
|
{
|
|
44510
|
-
status:
|
|
44508
|
+
status: S,
|
|
44511
44509
|
result: c,
|
|
44512
44510
|
progress: f.testProgress || 60,
|
|
44513
44511
|
runningAction: f.ignoring ? "ignore" : "run",
|
|
@@ -44522,7 +44520,7 @@ const wJ = rn((t, e) => {
|
|
|
44522
44520
|
onRun: b,
|
|
44523
44521
|
onIgnore: v,
|
|
44524
44522
|
onReset: k,
|
|
44525
|
-
onToggleEdit:
|
|
44523
|
+
onToggleEdit: E,
|
|
44526
44524
|
onDismissAlert: () => {
|
|
44527
44525
|
f.showErrorAlert = !1, f.successShown = !1;
|
|
44528
44526
|
},
|
|
@@ -44586,14 +44584,14 @@ const bJ = (t) => ({
|
|
|
44586
44584
|
]);
|
|
44587
44585
|
if (g)
|
|
44588
44586
|
return;
|
|
44589
|
-
const
|
|
44587
|
+
const S = ((C == null ? void 0 : C.items) || []).map(
|
|
44590
44588
|
(T) => ({
|
|
44591
44589
|
...T,
|
|
44592
44590
|
mappedType: bJ(T.var_type)
|
|
44593
44591
|
})
|
|
44594
|
-
),
|
|
44592
|
+
), E = new Map(k.map((T) => [T.id, T])), D = (vJ(x) || []).map((T) => {
|
|
44595
44593
|
var A, N;
|
|
44596
|
-
const O = (A = T.node_id) != null && A.startsWith("N") ? T.node_id.slice(1) : T.node_id, B = O ?
|
|
44594
|
+
const O = (A = T.node_id) != null && A.startsWith("N") ? T.node_id.slice(1) : T.node_id, B = O ? E.get(O) : void 0, I = typeof ((N = B == null ? void 0 : B.data) == null ? void 0 : N.icon) == "string" ? B.data.icon : void 0;
|
|
44597
44595
|
return {
|
|
44598
44596
|
...T,
|
|
44599
44597
|
nodeIcon: I,
|
|
@@ -44601,7 +44599,7 @@ const bJ = (t) => ({
|
|
|
44601
44599
|
};
|
|
44602
44600
|
});
|
|
44603
44601
|
a(
|
|
44604
|
-
(T) => wd(T,
|
|
44602
|
+
(T) => wd(T, S) ? T : S
|
|
44605
44603
|
), c((T) => wd(T, D) ? T : D);
|
|
44606
44604
|
} catch (b) {
|
|
44607
44605
|
console.error("Failed to fetch variables:", b), g || h(b instanceof Error ? b : new Error("无法获取变量数据"));
|
|
@@ -44735,10 +44733,10 @@ const bJ = (t) => ({
|
|
|
44735
44733
|
}
|
|
44736
44734
|
}, h = (m, y, v, g, w, b = [], k = "0") => (m ?? []).map((C, x) => {
|
|
44737
44735
|
var D;
|
|
44738
|
-
const
|
|
44736
|
+
const S = [...b, C.name], E = `${k}-${x}`;
|
|
44739
44737
|
return (D = C.sub_params) != null && D.length ? {
|
|
44740
|
-
key:
|
|
44741
|
-
variablePath:
|
|
44738
|
+
key: E,
|
|
44739
|
+
variablePath: S,
|
|
44742
44740
|
title: /* @__PURE__ */ P(
|
|
44743
44741
|
"span",
|
|
44744
44742
|
{
|
|
@@ -44768,12 +44766,12 @@ const bJ = (t) => ({
|
|
|
44768
44766
|
v,
|
|
44769
44767
|
g,
|
|
44770
44768
|
w,
|
|
44771
|
-
|
|
44772
|
-
|
|
44769
|
+
S,
|
|
44770
|
+
E
|
|
44773
44771
|
)
|
|
44774
44772
|
} : {
|
|
44775
|
-
key:
|
|
44776
|
-
variablePath:
|
|
44773
|
+
key: E,
|
|
44774
|
+
variablePath: S,
|
|
44777
44775
|
title: /* @__PURE__ */ P(
|
|
44778
44776
|
"span",
|
|
44779
44777
|
{
|
|
@@ -45091,12 +45089,12 @@ const bJ = (t) => ({
|
|
|
45091
45089
|
}
|
|
45092
45090
|
]
|
|
45093
45091
|
} : {
|
|
45094
|
-
branches: x.branches.map((
|
|
45092
|
+
branches: x.branches.map((E, _) => {
|
|
45095
45093
|
var D;
|
|
45096
45094
|
return {
|
|
45097
|
-
id:
|
|
45098
|
-
name:
|
|
45099
|
-
or_list: ((D =
|
|
45095
|
+
id: E.id || ku(),
|
|
45096
|
+
name: E.name || K("link.flow.switch.condition_n", { n: _ + 1 }),
|
|
45097
|
+
or_list: ((D = E.or_list) == null ? void 0 : D.map((T) => {
|
|
45100
45098
|
var O;
|
|
45101
45099
|
return {
|
|
45102
45100
|
and_list: ((O = T.and_list) == null ? void 0 : O.map((B) => ({
|
|
@@ -45122,31 +45120,31 @@ const bJ = (t) => ({
|
|
|
45122
45120
|
}
|
|
45123
45121
|
}
|
|
45124
45122
|
});
|
|
45125
|
-
}, h = (x,
|
|
45126
|
-
a(x), c(
|
|
45123
|
+
}, h = (x, S) => {
|
|
45124
|
+
a(x), c(S);
|
|
45127
45125
|
}, m = () => {
|
|
45128
45126
|
a(null), c("");
|
|
45129
45127
|
}, y = (x) => {
|
|
45130
|
-
const
|
|
45131
|
-
if (!
|
|
45128
|
+
const S = Qo(o.getFieldValue("branches")) || [], E = l.trim();
|
|
45129
|
+
if (!E) {
|
|
45132
45130
|
Ce.error(K("link.flow.switch.branch_name_cannot_be_empty"));
|
|
45133
45131
|
return;
|
|
45134
45132
|
}
|
|
45135
|
-
if (
|
|
45136
|
-
(D, T) => T !== x && D.name ===
|
|
45133
|
+
if (S.some(
|
|
45134
|
+
(D, T) => T !== x && D.name === E
|
|
45137
45135
|
)) {
|
|
45138
45136
|
Ce.error(K("link.flow.switch.branch_name_duplicate"));
|
|
45139
45137
|
return;
|
|
45140
45138
|
}
|
|
45141
|
-
|
|
45142
|
-
}, v = (x,
|
|
45143
|
-
const
|
|
45144
|
-
if (
|
|
45139
|
+
S[x].name = E, o.setFieldValue("branches", S), a(null), c(""), f();
|
|
45140
|
+
}, v = (x, S) => {
|
|
45141
|
+
const E = o.getFieldValue("branches") || [];
|
|
45142
|
+
if (S < 0 || S >= E.length)
|
|
45145
45143
|
return;
|
|
45146
|
-
const _ = [...
|
|
45147
|
-
_.splice(
|
|
45148
|
-
}, [g, w] = re(!1), b = (x) => (w(!0), o.validateFields().then(async (
|
|
45149
|
-
if (!
|
|
45144
|
+
const _ = [...E], [D] = _.splice(x, 1);
|
|
45145
|
+
_.splice(S, 0, D), o.setFieldValue("branches", _), f();
|
|
45146
|
+
}, [g, w] = re(!1), b = (x) => (w(!0), o.validateFields().then(async (S) => {
|
|
45147
|
+
if (!S.branches.some(
|
|
45150
45148
|
(D) => D.or_list.some(
|
|
45151
45149
|
(T) => T.and_list.some((O) => O.query && O.operator)
|
|
45152
45150
|
)
|
|
@@ -45154,7 +45152,7 @@ const bJ = (t) => ({
|
|
|
45154
45152
|
Ce.error(K("link.flow.switch.at_least_one_valid_branch"));
|
|
45155
45153
|
return;
|
|
45156
45154
|
}
|
|
45157
|
-
const _ = Qo(
|
|
45155
|
+
const _ = Qo(S);
|
|
45158
45156
|
return _.branches.forEach((D) => {
|
|
45159
45157
|
D.or_list.forEach((T) => {
|
|
45160
45158
|
T.and_list.forEach((O) => {
|
|
@@ -45166,8 +45164,8 @@ const bJ = (t) => ({
|
|
|
45166
45164
|
jn(e, () => ({
|
|
45167
45165
|
saveConfig: (x) => b(x)
|
|
45168
45166
|
}));
|
|
45169
|
-
const k = zt(), C = (x,
|
|
45170
|
-
const T = (o.getFieldValue("branches") || [])[
|
|
45167
|
+
const k = zt(), C = (x, S, E, _) => {
|
|
45168
|
+
const T = (o.getFieldValue("branches") || [])[S];
|
|
45171
45169
|
return /* @__PURE__ */ P(
|
|
45172
45170
|
Sr,
|
|
45173
45171
|
{
|
|
@@ -45187,7 +45185,7 @@ const bJ = (t) => ({
|
|
|
45187
45185
|
marginBottom: 12
|
|
45188
45186
|
},
|
|
45189
45187
|
children: [
|
|
45190
|
-
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", flex: 1 }, children: s ===
|
|
45188
|
+
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", flex: 1 }, children: s === S ? /* @__PURE__ */ P(nt, { children: [
|
|
45191
45189
|
/* @__PURE__ */ p(
|
|
45192
45190
|
tt,
|
|
45193
45191
|
{
|
|
@@ -45195,7 +45193,7 @@ const bJ = (t) => ({
|
|
|
45195
45193
|
onChange: (B) => c(B.target.value),
|
|
45196
45194
|
style: { width: 200 },
|
|
45197
45195
|
placeholder: K("link.flow.switch.enter_branch_name"),
|
|
45198
|
-
onPressEnter: () => y(
|
|
45196
|
+
onPressEnter: () => y(S)
|
|
45199
45197
|
}
|
|
45200
45198
|
),
|
|
45201
45199
|
/* @__PURE__ */ p(
|
|
@@ -45204,7 +45202,7 @@ const bJ = (t) => ({
|
|
|
45204
45202
|
type: "text",
|
|
45205
45203
|
size: "small",
|
|
45206
45204
|
icon: /* @__PURE__ */ p(Va, { style: { color: "#52c41a" } }),
|
|
45207
|
-
onClick: () => y(
|
|
45205
|
+
onClick: () => y(S)
|
|
45208
45206
|
}
|
|
45209
45207
|
),
|
|
45210
45208
|
/* @__PURE__ */ p(
|
|
@@ -45217,14 +45215,14 @@ const bJ = (t) => ({
|
|
|
45217
45215
|
}
|
|
45218
45216
|
)
|
|
45219
45217
|
] }) : /* @__PURE__ */ P(nt, { children: [
|
|
45220
|
-
/* @__PURE__ */ p("span", { style: { fontSize: 13, fontWeight: 400 }, children: (T == null ? void 0 : T.name) || K("link.flow.switch.condition_n", { n:
|
|
45218
|
+
/* @__PURE__ */ p("span", { style: { fontSize: 13, fontWeight: 400 }, children: (T == null ? void 0 : T.name) || K("link.flow.switch.condition_n", { n: S + 1 }) }),
|
|
45221
45219
|
k && /* @__PURE__ */ p(
|
|
45222
45220
|
ce,
|
|
45223
45221
|
{
|
|
45224
45222
|
type: "text",
|
|
45225
45223
|
size: "small",
|
|
45226
45224
|
icon: /* @__PURE__ */ p(ns, {}),
|
|
45227
|
-
onClick: () => h(
|
|
45225
|
+
onClick: () => h(S, (T == null ? void 0 : T.name) || "")
|
|
45228
45226
|
}
|
|
45229
45227
|
)
|
|
45230
45228
|
] }) }),
|
|
@@ -45234,8 +45232,8 @@ const bJ = (t) => ({
|
|
|
45234
45232
|
{
|
|
45235
45233
|
type: "text",
|
|
45236
45234
|
size: "small",
|
|
45237
|
-
disabled:
|
|
45238
|
-
onClick: () => v(
|
|
45235
|
+
disabled: S === 0,
|
|
45236
|
+
onClick: () => v(S, 0),
|
|
45239
45237
|
children: "置顶"
|
|
45240
45238
|
}
|
|
45241
45239
|
) }),
|
|
@@ -45245,8 +45243,8 @@ const bJ = (t) => ({
|
|
|
45245
45243
|
type: "text",
|
|
45246
45244
|
size: "small",
|
|
45247
45245
|
icon: /* @__PURE__ */ p(CS, {}),
|
|
45248
|
-
disabled:
|
|
45249
|
-
onClick: () => v(
|
|
45246
|
+
disabled: S === 0,
|
|
45247
|
+
onClick: () => v(S, S - 1)
|
|
45250
45248
|
}
|
|
45251
45249
|
) }),
|
|
45252
45250
|
/* @__PURE__ */ p(ht, { title: K("link.flow.switch.move_down"), children: /* @__PURE__ */ p(
|
|
@@ -45255,8 +45253,8 @@ const bJ = (t) => ({
|
|
|
45255
45253
|
type: "text",
|
|
45256
45254
|
size: "small",
|
|
45257
45255
|
icon: /* @__PURE__ */ p(kS, {}),
|
|
45258
|
-
disabled:
|
|
45259
|
-
onClick: () => v(
|
|
45256
|
+
disabled: S === E - 1,
|
|
45257
|
+
onClick: () => v(S, S + 1)
|
|
45260
45258
|
}
|
|
45261
45259
|
) }),
|
|
45262
45260
|
/* @__PURE__ */ p(ht, { title: K("link.flow.switch.move_to_bottom"), children: /* @__PURE__ */ p(
|
|
@@ -45264,8 +45262,8 @@ const bJ = (t) => ({
|
|
|
45264
45262
|
{
|
|
45265
45263
|
type: "text",
|
|
45266
45264
|
size: "small",
|
|
45267
|
-
disabled:
|
|
45268
|
-
onClick: () => v(
|
|
45265
|
+
disabled: S === E - 1,
|
|
45266
|
+
onClick: () => v(S, E - 1),
|
|
45269
45267
|
children: "置底"
|
|
45270
45268
|
}
|
|
45271
45269
|
) }),
|
|
@@ -45274,9 +45272,9 @@ const bJ = (t) => ({
|
|
|
45274
45272
|
{
|
|
45275
45273
|
type: "text",
|
|
45276
45274
|
size: "small",
|
|
45277
|
-
disabled:
|
|
45275
|
+
disabled: E <= 1,
|
|
45278
45276
|
onClick: () => {
|
|
45279
|
-
if (
|
|
45277
|
+
if (E <= 1) {
|
|
45280
45278
|
Ce.warning(K("link.flow.switch.at_least_one_branch"));
|
|
45281
45279
|
return;
|
|
45282
45280
|
}
|
|
@@ -45476,9 +45474,9 @@ const bJ = (t) => ({
|
|
|
45476
45474
|
initialValues: d,
|
|
45477
45475
|
layout: "vertical",
|
|
45478
45476
|
autoComplete: "off",
|
|
45479
|
-
children: /* @__PURE__ */ p(Ee.List, { name: "branches", children: (x, { add:
|
|
45477
|
+
children: /* @__PURE__ */ p(Ee.List, { name: "branches", children: (x, { add: S, remove: E }) => /* @__PURE__ */ P(Dt, { children: [
|
|
45480
45478
|
x.map(
|
|
45481
|
-
(_, D) => C(_, D, x.length,
|
|
45479
|
+
(_, D) => C(_, D, x.length, E)
|
|
45482
45480
|
),
|
|
45483
45481
|
x.length < 10 && /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "flex-end", width: "100%" }, children: /* @__PURE__ */ p(
|
|
45484
45482
|
ce,
|
|
@@ -45488,7 +45486,7 @@ const bJ = (t) => ({
|
|
|
45488
45486
|
disabled: !k,
|
|
45489
45487
|
onClick: () => {
|
|
45490
45488
|
const _ = x.length + 1;
|
|
45491
|
-
|
|
45489
|
+
S({
|
|
45492
45490
|
id: ku(),
|
|
45493
45491
|
name: K("link.flow.switch.condition_n", {
|
|
45494
45492
|
n: _
|
|
@@ -45776,7 +45774,7 @@ const bJ = (t) => ({
|
|
|
45776
45774
|
var I;
|
|
45777
45775
|
t && ((I = l.current) == null || I.loadVariables());
|
|
45778
45776
|
}, [t]);
|
|
45779
|
-
const b = (n == null ? void 0 : n.action_id) ?? (n == null ? void 0 : n.id), k = b !== null && typeof b < "u" && b !== "" && Number.isFinite(Number(b)) ? b : null, C = ui(n), x = n == null ? void 0 : n.nodeKey,
|
|
45777
|
+
const b = (n == null ? void 0 : n.action_id) ?? (n == null ? void 0 : n.id), k = b !== null && typeof b < "u" && b !== "" && Number.isFinite(Number(b)) ? b : null, C = ui(n), x = n == null ? void 0 : n.nodeKey, S = (n == null ? void 0 : n.nodeVersion) ?? (n == null ? void 0 : n.action_ver), { handleNodeDataUpdate: E } = pa();
|
|
45780
45778
|
pe(() => {
|
|
45781
45779
|
var A, N;
|
|
45782
45780
|
if (!t) return;
|
|
@@ -45786,7 +45784,7 @@ const bJ = (t) => ({
|
|
|
45786
45784
|
nodeType: r,
|
|
45787
45785
|
actionId: k,
|
|
45788
45786
|
nodePackageKey: x,
|
|
45789
|
-
nodePackageVersion:
|
|
45787
|
+
nodePackageVersion: S,
|
|
45790
45788
|
reason: "keyed node with non-positive action_id and no classic sub_params was rejected by the nodePackage-compatible node check"
|
|
45791
45789
|
});
|
|
45792
45790
|
}, [
|
|
@@ -45800,7 +45798,7 @@ const bJ = (t) => ({
|
|
|
45800
45798
|
n == null ? void 0 : n.nodeVersion,
|
|
45801
45799
|
C,
|
|
45802
45800
|
x,
|
|
45803
|
-
|
|
45801
|
+
S,
|
|
45804
45802
|
o,
|
|
45805
45803
|
r,
|
|
45806
45804
|
t
|
|
@@ -45819,7 +45817,7 @@ const bJ = (t) => ({
|
|
|
45819
45817
|
proxy_id: I.proxy_id,
|
|
45820
45818
|
mcp_tool_description: I.mcp_tool_description,
|
|
45821
45819
|
action_key: x,
|
|
45822
|
-
action_ver:
|
|
45820
|
+
action_ver: S
|
|
45823
45821
|
} : {
|
|
45824
45822
|
flow_id: N,
|
|
45825
45823
|
...I,
|
|
@@ -45832,7 +45830,7 @@ const bJ = (t) => ({
|
|
|
45832
45830
|
actionId: k,
|
|
45833
45831
|
isNodepackageNode: C,
|
|
45834
45832
|
nodePackageKey: x,
|
|
45835
|
-
nodePackageVersion:
|
|
45833
|
+
nodePackageVersion: S,
|
|
45836
45834
|
valueKeys: Object.keys(I || {}),
|
|
45837
45835
|
paramsKeys: Object.keys((I == null ? void 0 : I.params) || {}),
|
|
45838
45836
|
propertiesKeys: Object.keys((I == null ? void 0 : I.properties) || {}),
|
|
@@ -45841,7 +45839,7 @@ const bJ = (t) => ({
|
|
|
45841
45839
|
const z = g.ignore ? await HD(o, "", "", "", Z, g.output) : await Nf(o, M);
|
|
45842
45840
|
if (z)
|
|
45843
45841
|
if (g.ignore)
|
|
45844
|
-
(F = h.current) == null || F.finishSampleTest(),
|
|
45842
|
+
(F = h.current) == null || F.finishSampleTest(), E({
|
|
45845
45843
|
id: o,
|
|
45846
45844
|
data: {
|
|
45847
45845
|
status: ve.SUCCESS,
|
|
@@ -45857,12 +45855,12 @@ const bJ = (t) => ({
|
|
|
45857
45855
|
account_id: Q,
|
|
45858
45856
|
mcp_tool_description: I.mcp_tool_description,
|
|
45859
45857
|
action_key: x,
|
|
45860
|
-
action_ver:
|
|
45858
|
+
action_ver: S,
|
|
45861
45859
|
nodeKey: x,
|
|
45862
|
-
nodeVersion:
|
|
45860
|
+
nodeVersion: S,
|
|
45863
45861
|
isNodePackage: C
|
|
45864
45862
|
};
|
|
45865
|
-
|
|
45863
|
+
E({
|
|
45866
45864
|
id: o,
|
|
45867
45865
|
data: {
|
|
45868
45866
|
config_schema: Z,
|
|
@@ -45875,7 +45873,7 @@ const bJ = (t) => ({
|
|
|
45875
45873
|
}
|
|
45876
45874
|
A && !g.ignore && ((L = h.current) == null || L.onTestNode()), g.ignore = !1, g.output = "";
|
|
45877
45875
|
} catch {
|
|
45878
|
-
g.ignore && (($ = h.current) == null || $.abortSampleTest(),
|
|
45876
|
+
g.ignore && (($ = h.current) == null || $.abortSampleTest(), E({
|
|
45879
45877
|
id: o,
|
|
45880
45878
|
data: {
|
|
45881
45879
|
status: ve.FAILED
|
|
@@ -45890,10 +45888,10 @@ const bJ = (t) => ({
|
|
|
45890
45888
|
n == null ? void 0 : n.action_ver,
|
|
45891
45889
|
n == null ? void 0 : n.nodeKey,
|
|
45892
45890
|
n == null ? void 0 : n.nodeVersion,
|
|
45893
|
-
|
|
45891
|
+
E,
|
|
45894
45892
|
C,
|
|
45895
45893
|
x,
|
|
45896
|
-
|
|
45894
|
+
S,
|
|
45897
45895
|
o,
|
|
45898
45896
|
r,
|
|
45899
45897
|
g,
|
|
@@ -45902,7 +45900,7 @@ const bJ = (t) => ({
|
|
|
45902
45900
|
);
|
|
45903
45901
|
G(
|
|
45904
45902
|
(I) => {
|
|
45905
|
-
!C || r !== ye.SWITCH ||
|
|
45903
|
+
!C || r !== ye.SWITCH || E({
|
|
45906
45904
|
id: o,
|
|
45907
45905
|
data: {
|
|
45908
45906
|
config_schema: I,
|
|
@@ -45910,7 +45908,7 @@ const bJ = (t) => ({
|
|
|
45910
45908
|
}
|
|
45911
45909
|
});
|
|
45912
45910
|
},
|
|
45913
|
-
[
|
|
45911
|
+
[E, C, o, r]
|
|
45914
45912
|
);
|
|
45915
45913
|
const D = (I) => {
|
|
45916
45914
|
var A, N, F, L, $;
|
|
@@ -46205,9 +46203,9 @@ const Po = {
|
|
|
46205
46203
|
showNodeDescription: y = !0,
|
|
46206
46204
|
onToggleNodeDisabled: v
|
|
46207
46205
|
}) => {
|
|
46208
|
-
const { currentNodeConfigVisibleId: g, setNodeConfigVisible: w } = ci(), { handleNodeDataUpdate: b } = pa(), { handleNodesDelete: k } = $v(), C = fn(), x = ac(),
|
|
46206
|
+
const { currentNodeConfigVisibleId: g, setNodeConfigVisible: w } = ci(), { handleNodeDataUpdate: b } = pa(), { handleNodesDelete: k } = $v(), C = fn(), x = ac(), S = (M) => {
|
|
46209
46207
|
b({ id: t, data: { note: M } });
|
|
46210
|
-
},
|
|
46208
|
+
}, E = G(() => {
|
|
46211
46209
|
w(null);
|
|
46212
46210
|
}, []), _ = (h == null ? void 0 : h.isHovered) || !1, D = le(() => e === ye.TRIGGER, [e]), T = () => {
|
|
46213
46211
|
w(t);
|
|
@@ -46335,7 +46333,7 @@ const Po = {
|
|
|
46335
46333
|
nodeId: t,
|
|
46336
46334
|
note: (h == null ? void 0 : h.note) || "",
|
|
46337
46335
|
statusIcon: Z(),
|
|
46338
|
-
onNoteChange:
|
|
46336
|
+
onNoteChange: S,
|
|
46339
46337
|
description: h.action_name,
|
|
46340
46338
|
className: "workflow-node-text"
|
|
46341
46339
|
}
|
|
@@ -46397,7 +46395,7 @@ const Po = {
|
|
|
46397
46395
|
rQ,
|
|
46398
46396
|
{
|
|
46399
46397
|
visible: !0,
|
|
46400
|
-
onClose:
|
|
46398
|
+
onClose: E,
|
|
46401
46399
|
nodeType: e,
|
|
46402
46400
|
data: h,
|
|
46403
46401
|
nodeId: t
|
|
@@ -49087,16 +49085,16 @@ function ite(t, e, n) {
|
|
|
49087
49085
|
return n(D);
|
|
49088
49086
|
}
|
|
49089
49087
|
function x(D) {
|
|
49090
|
-
return t.enter("tableRow"),
|
|
49091
|
-
}
|
|
49092
|
-
function E(D) {
|
|
49093
|
-
return D === 124 ? (t.enter("tableCellDivider"), t.consume(D), t.exit("tableCellDivider"), E) : D === null || Ts(D) ? (t.exit("tableRow"), e(D)) : vo(D) ? bo(t, E, "whitespace")(D) : (t.enter("data"), S(D));
|
|
49088
|
+
return t.enter("tableRow"), S(D);
|
|
49094
49089
|
}
|
|
49095
49090
|
function S(D) {
|
|
49096
|
-
return D ===
|
|
49091
|
+
return D === 124 ? (t.enter("tableCellDivider"), t.consume(D), t.exit("tableCellDivider"), S) : D === null || Ts(D) ? (t.exit("tableRow"), e(D)) : vo(D) ? bo(t, S, "whitespace")(D) : (t.enter("data"), E(D));
|
|
49092
|
+
}
|
|
49093
|
+
function E(D) {
|
|
49094
|
+
return D === null || D === 124 || Vn(D) ? (t.exit("data"), S(D)) : (t.consume(D), D === 92 ? _ : E);
|
|
49097
49095
|
}
|
|
49098
49096
|
function _(D) {
|
|
49099
|
-
return D === 92 || D === 124 ? (t.consume(D),
|
|
49097
|
+
return D === 92 || D === 124 ? (t.consume(D), E) : E(D);
|
|
49100
49098
|
}
|
|
49101
49099
|
}
|
|
49102
49100
|
function ste(t, e) {
|
|
@@ -49274,7 +49272,7 @@ const uI = `
|
|
|
49274
49272
|
width: r,
|
|
49275
49273
|
height: o,
|
|
49276
49274
|
...N
|
|
49277
|
-
}),
|
|
49275
|
+
}), S = () => {
|
|
49278
49276
|
if (s.current) {
|
|
49279
49277
|
const N = s.current.getBoundingClientRect();
|
|
49280
49278
|
return {
|
|
@@ -49283,7 +49281,7 @@ const uI = `
|
|
|
49283
49281
|
};
|
|
49284
49282
|
}
|
|
49285
49283
|
return { width: r, height: o };
|
|
49286
|
-
},
|
|
49284
|
+
}, E = (N) => {
|
|
49287
49285
|
var L;
|
|
49288
49286
|
const F = {
|
|
49289
49287
|
config_schema: {
|
|
@@ -49300,31 +49298,31 @@ const uI = `
|
|
|
49300
49298
|
}, D = G(() => {
|
|
49301
49299
|
const N = h || uI;
|
|
49302
49300
|
f(N);
|
|
49303
|
-
const F =
|
|
49301
|
+
const F = S(), L = x({
|
|
49304
49302
|
content: N,
|
|
49305
49303
|
color: y,
|
|
49306
49304
|
width: F.width,
|
|
49307
49305
|
height: F.height
|
|
49308
49306
|
});
|
|
49309
|
-
|
|
49307
|
+
E(L), u(!1);
|
|
49310
49308
|
}, [h, y, r, o]), T = () => {
|
|
49311
49309
|
u(!1);
|
|
49312
49310
|
}, O = G(() => {
|
|
49313
49311
|
setTimeout(() => {
|
|
49314
|
-
const N =
|
|
49312
|
+
const N = S(), F = x({
|
|
49315
49313
|
width: N.width,
|
|
49316
49314
|
height: N.height
|
|
49317
49315
|
});
|
|
49318
|
-
|
|
49316
|
+
E(F);
|
|
49319
49317
|
}, 50);
|
|
49320
49318
|
}, [d, y, r, o]), B = (N) => {
|
|
49321
49319
|
v(N);
|
|
49322
|
-
const F =
|
|
49320
|
+
const F = S(), L = x({
|
|
49323
49321
|
color: N,
|
|
49324
49322
|
width: F.width,
|
|
49325
49323
|
height: F.height
|
|
49326
49324
|
});
|
|
49327
|
-
|
|
49325
|
+
E(L);
|
|
49328
49326
|
};
|
|
49329
49327
|
return /* @__PURE__ */ P(rs, { children: [
|
|
49330
49328
|
/* @__PURE__ */ p(
|
|
@@ -49881,12 +49879,12 @@ function ci(t) {
|
|
|
49881
49879
|
o(Ote(O));
|
|
49882
49880
|
},
|
|
49883
49881
|
[o]
|
|
49884
|
-
),
|
|
49882
|
+
), S = G(
|
|
49885
49883
|
(O) => {
|
|
49886
49884
|
o(Tte(O));
|
|
49887
49885
|
},
|
|
49888
49886
|
[o]
|
|
49889
|
-
),
|
|
49887
|
+
), E = G(
|
|
49890
49888
|
(O, B) => {
|
|
49891
49889
|
o(Nte({ id: O, data: B }));
|
|
49892
49890
|
},
|
|
@@ -49919,8 +49917,8 @@ function ci(t) {
|
|
|
49919
49917
|
removeNodes: k,
|
|
49920
49918
|
removeEdges: C,
|
|
49921
49919
|
setNodes: x,
|
|
49922
|
-
setEdges:
|
|
49923
|
-
updateNode:
|
|
49920
|
+
setEdges: S,
|
|
49921
|
+
updateNode: E,
|
|
49924
49922
|
refreshFlow: _,
|
|
49925
49923
|
setFlowOpStatusAction: h,
|
|
49926
49924
|
workflowId: n,
|
|
@@ -50030,9 +50028,9 @@ const jte = ({
|
|
|
50030
50028
|
}) => {
|
|
50031
50029
|
const y = kc(), { removeEdges: v } = Vw(), { getNodes: g } = cc(), { openNodeSelector: w } = If();
|
|
50032
50030
|
No();
|
|
50033
|
-
const b = Us(l), k = b == null ? void 0 : b.data, C = (k == null ? void 0 : k.status) || ve.IDLE, x = zt(),
|
|
50034
|
-
|
|
50035
|
-
const
|
|
50031
|
+
const b = Us(l), k = b == null ? void 0 : b.data, C = (k == null ? void 0 : k.status) || ve.IDLE, x = zt(), S = Us(u);
|
|
50032
|
+
S == null || S.data;
|
|
50033
|
+
const E = $2(i), _ = fn(), D = _.edgeRules, T = le(() => s === De.Left ? r + Su : s === De.Right ? r - Su : r, [r, s]), O = le(() => s === De.Top ? o + Su : s === De.Bottom ? o - Su : o, [o, s]), B = Wx(b), I = Wx(S), A = B !== null && I !== null ? B.y2 < I.y1 : n < o, N = B !== null && I !== null ? B.x2 <= I.x1 : e <= T, F = l === u, L = zte.includes(S == null ? void 0 : S.type), Y = !Hte.includes(S == null ? void 0 : S.type) && (!D || D.allowAddNodeOnEdge !== !1), Z = (
|
|
50036
50034
|
// !isMcpServerToolEdge &&
|
|
50037
50035
|
!L && (!D || D.allowDeleteEdge !== !1)
|
|
50038
50036
|
), { edgePath: Q, labelX: M, labelY: z } = le(() => {
|
|
@@ -50087,7 +50085,7 @@ const jte = ({
|
|
|
50087
50085
|
N
|
|
50088
50086
|
]), q = {
|
|
50089
50087
|
...z2({
|
|
50090
|
-
isVerticalEdge:
|
|
50088
|
+
isVerticalEdge: E,
|
|
50091
50089
|
isLoopEdge: F,
|
|
50092
50090
|
isHovered: !!(a != null && a.isHovered)
|
|
50093
50091
|
}),
|
|
@@ -50118,7 +50116,7 @@ const jte = ({
|
|
|
50118
50116
|
targetHandleId: d,
|
|
50119
50117
|
data: a
|
|
50120
50118
|
},
|
|
50121
|
-
targetNode: Qo(
|
|
50119
|
+
targetNode: Qo(S),
|
|
50122
50120
|
sourceNode: Qo(b),
|
|
50123
50121
|
protocol: `${((me = b.data) == null ? void 0 : me.protocol) ?? ""}`
|
|
50124
50122
|
});
|
|
@@ -50664,7 +50662,7 @@ function dne(t) {
|
|
|
50664
50662
|
const C = await (g.current ? g.current(e).then(une) : n.loadFlow(e));
|
|
50665
50663
|
if (w) return;
|
|
50666
50664
|
a(al(C.name)), a(mI(C.executionControl ?? null)), a(Rte(C.metadata ?? {})), C.opStatus && l(C.opStatus);
|
|
50667
|
-
const { nodes: x, edges:
|
|
50665
|
+
const { nodes: x, edges: S } = C, E = x.map((O) => {
|
|
50668
50666
|
var B, I;
|
|
50669
50667
|
if ((B = O == null ? void 0 : O.data) != null && B.action_id && parseInt(`${(I = O == null ? void 0 : O.data) == null ? void 0 : I.action_id}`, 10) < 1) {
|
|
50670
50668
|
const A = lc(
|
|
@@ -50683,12 +50681,12 @@ function dne(t) {
|
|
|
50683
50681
|
minZoom: 0.3,
|
|
50684
50682
|
maxZoom: 1
|
|
50685
50683
|
});
|
|
50686
|
-
const D =
|
|
50684
|
+
const D = S.filter((O) => O.sourceHandle === "loop").map((O) => O.id), T = S.map((O) => D.includes(O.id) ? {
|
|
50687
50685
|
...O,
|
|
50688
50686
|
data: { ...O.data, renderType: "loop", connectionType: O.type }
|
|
50689
50687
|
} : O);
|
|
50690
|
-
if (await lne(
|
|
50691
|
-
r(
|
|
50688
|
+
if (await lne(E), await cne(E), w) return;
|
|
50689
|
+
r(E), o(T);
|
|
50692
50690
|
} catch (k) {
|
|
50693
50691
|
if (w) return;
|
|
50694
50692
|
if ((b = k == null ? void 0 : k.response) != null && b.data) {
|
|
@@ -50745,24 +50743,24 @@ function hne({
|
|
|
50745
50743
|
validateConnectionAgainstSnapshot: d,
|
|
50746
50744
|
saveFlow: f
|
|
50747
50745
|
}) {
|
|
50748
|
-
var k, C, x,
|
|
50749
|
-
const h = fn(), m = Jw(), y = ((C = (k = h.nodeSelector) == null ? void 0 : k.connectable) == null ? void 0 : C.enabled) === !0, v = ((
|
|
50750
|
-
(
|
|
50751
|
-
Ce.warning(m.formatMessage({ id:
|
|
50746
|
+
var k, C, x, S;
|
|
50747
|
+
const h = fn(), m = Jw(), y = ((C = (k = h.nodeSelector) == null ? void 0 : k.connectable) == null ? void 0 : C.enabled) === !0, v = ((S = (x = h.nodeSelector) == null ? void 0 : x.connectable) == null ? void 0 : S.debug) === !0, g = G(
|
|
50748
|
+
(E, _) => {
|
|
50749
|
+
Ce.warning(m.formatMessage({ id: E }));
|
|
50752
50750
|
},
|
|
50753
50751
|
[m]
|
|
50754
50752
|
), w = G(
|
|
50755
|
-
(
|
|
50756
|
-
!v || Number(
|
|
50753
|
+
(E) => {
|
|
50754
|
+
!v || Number(E.compatibleCount) <= 1;
|
|
50757
50755
|
},
|
|
50758
50756
|
[v]
|
|
50759
50757
|
), b = G(
|
|
50760
|
-
async (
|
|
50758
|
+
async (E, _) => {
|
|
50761
50759
|
var V, U, W, X, ne;
|
|
50762
50760
|
if (!t)
|
|
50763
50761
|
return;
|
|
50764
50762
|
let D = null;
|
|
50765
|
-
const { nodes: T } = n.getState(), O = e.convertNodeData ?? Ute, B = _.action_key || _.nodeKey, I = _.action_ver ?? _.nodeVersion, A = fne(_), N = ui(_), F = _.type === ye.STICKY, L = N && !F ? lc(_.action_key, _.action_ver) :
|
|
50763
|
+
const { nodes: T } = n.getState(), O = e.convertNodeData ?? Ute, B = _.action_key || _.nodeKey, I = _.action_ver ?? _.nodeVersion, A = fne(_), N = ui(_), F = _.type === ye.STICKY, L = N && !F ? lc(_.action_key, _.action_ver) : E.trigger ? ye.TRIGGER : _.action_type, $ = E.trigger ? ye.TRIGGER : _.action_type, Y = E.position ?? { x: 100, y: 250 }, { nodeId: Z, nodeData: Q } = await e.createNode({
|
|
50766
50764
|
workflowId: t,
|
|
50767
50765
|
nodeType: $,
|
|
50768
50766
|
actionId: A,
|
|
@@ -50788,7 +50786,7 @@ function hne({
|
|
|
50788
50786
|
...Q,
|
|
50789
50787
|
node_type: L,
|
|
50790
50788
|
saveType: $
|
|
50791
|
-
}), z = ka.createNode(L, Z, M,
|
|
50789
|
+
}), z = ka.createNode(L, Z, M, E.position);
|
|
50792
50790
|
r([z]), u(Z);
|
|
50793
50791
|
const { nodes: q } = n.getState(), te = q.some((ee) => ee.id === z.id) ? q : [...q, z];
|
|
50794
50792
|
if (F) {
|
|
@@ -50797,9 +50795,9 @@ function hne({
|
|
|
50797
50795
|
}
|
|
50798
50796
|
const se = WL(z);
|
|
50799
50797
|
se.length > 0 && o(se);
|
|
50800
|
-
const we = !!
|
|
50801
|
-
if (
|
|
50802
|
-
const ee =
|
|
50798
|
+
const we = !!E.sourceHandle;
|
|
50799
|
+
if (E.edge) {
|
|
50800
|
+
const ee = E.edge, de = ee.sourceHandle ?? ee.sourceHandleId ?? "", me = ee.targetHandle ?? ee.targetHandleId ?? "", oe = T.find((Le) => Le.id === ee.source) ?? E.sourceNode, ae = T.find((Le) => Le.id === ee.target) ?? E.targetNode, he = [], Ie = oe ? ja(oe, de) : null;
|
|
50803
50801
|
if (!Ie)
|
|
50804
50802
|
console.error("未找到连线的源节点或 handle,保留原线", ee);
|
|
50805
50803
|
else {
|
|
@@ -50864,27 +50862,27 @@ function hne({
|
|
|
50864
50862
|
he.length > 0 && o(he);
|
|
50865
50863
|
} else {
|
|
50866
50864
|
const ee = ja(
|
|
50867
|
-
|
|
50868
|
-
|
|
50865
|
+
E.targetNode ?? E.sourceNode,
|
|
50866
|
+
E.targetHandle ?? E.sourceHandle
|
|
50869
50867
|
);
|
|
50870
50868
|
if (ee !== null) {
|
|
50871
50869
|
const de = Nh(
|
|
50872
50870
|
z,
|
|
50873
50871
|
ee.protocol,
|
|
50874
50872
|
we,
|
|
50875
|
-
|
|
50873
|
+
E.targetHandle ?? E.sourceHandle ?? void 0
|
|
50876
50874
|
);
|
|
50877
50875
|
if (de) {
|
|
50878
50876
|
const me = de.name, [oe, ae, he, Ie] = we ? [
|
|
50879
|
-
((U =
|
|
50877
|
+
((U = E.targetNode) == null ? void 0 : U.id) || ((W = E.sourceNode) == null ? void 0 : W.id),
|
|
50880
50878
|
z.id,
|
|
50881
|
-
|
|
50879
|
+
E.targetHandle || E.sourceHandle,
|
|
50882
50880
|
me
|
|
50883
50881
|
] : [
|
|
50884
50882
|
z.id,
|
|
50885
|
-
((X =
|
|
50883
|
+
((X = E.targetNode) == null ? void 0 : X.id) || ((ne = E.sourceNode) == null ? void 0 : ne.id),
|
|
50886
50884
|
me,
|
|
50887
|
-
|
|
50885
|
+
E.targetHandle || E.sourceHandle
|
|
50888
50886
|
], Le = zu(te, {
|
|
50889
50887
|
source: oe,
|
|
50890
50888
|
target: ae,
|
|
@@ -50919,7 +50917,7 @@ function hne({
|
|
|
50919
50917
|
} else
|
|
50920
50918
|
console.log("新节点没有协议兼容的端口,不能连接", ee.protocol);
|
|
50921
50919
|
} else
|
|
50922
|
-
|
|
50920
|
+
E.trigger || console.error("未找到 handle", E);
|
|
50923
50921
|
}
|
|
50924
50922
|
u(D), c(D), setTimeout(f, 0);
|
|
50925
50923
|
},
|
|
@@ -51178,12 +51176,12 @@ function wne(t, e, n = 5) {
|
|
|
51178
51176
|
};
|
|
51179
51177
|
let s = n, a = n;
|
|
51180
51178
|
return e.filter((f) => f.id !== o.id).reduce((f, h) => {
|
|
51181
|
-
var
|
|
51179
|
+
var S, E, _, D;
|
|
51182
51180
|
const m = {
|
|
51183
51181
|
left: h.position.x,
|
|
51184
|
-
right: h.position.x + (((
|
|
51182
|
+
right: h.position.x + (((S = h.measured) == null ? void 0 : S.width) ?? 0),
|
|
51185
51183
|
top: h.position.y,
|
|
51186
|
-
bottom: h.position.y + (((
|
|
51184
|
+
bottom: h.position.y + (((E = h.measured) == null ? void 0 : E.height) ?? 0),
|
|
51187
51185
|
width: ((_ = h.measured) == null ? void 0 : _.width) ?? 0,
|
|
51188
51186
|
height: ((D = h.measured) == null ? void 0 : D.height) ?? 0
|
|
51189
51187
|
}, y = Math.abs(i.left - m.left);
|
|
@@ -52224,157 +52222,157 @@ function Wt() {
|
|
|
52224
52222
|
successorWeights: o,
|
|
52225
52223
|
time: v,
|
|
52226
52224
|
uniqueId: b,
|
|
52227
|
-
zipObject:
|
|
52225
|
+
zipObject: S
|
|
52228
52226
|
};
|
|
52229
|
-
function e(
|
|
52230
|
-
for (var O = T;
|
|
52227
|
+
function e(E, _, D, T) {
|
|
52228
|
+
for (var O = T; E.hasNode(O); )
|
|
52231
52229
|
O = b(T);
|
|
52232
|
-
return D.dummy = _,
|
|
52230
|
+
return D.dummy = _, E.setNode(O, D), O;
|
|
52233
52231
|
}
|
|
52234
|
-
function n(
|
|
52235
|
-
let _ = new t().setGraph(
|
|
52236
|
-
return
|
|
52237
|
-
let T = _.edge(D.v, D.w) || { weight: 0, minlen: 1 }, O =
|
|
52232
|
+
function n(E) {
|
|
52233
|
+
let _ = new t().setGraph(E.graph());
|
|
52234
|
+
return E.nodes().forEach((D) => _.setNode(D, E.node(D))), E.edges().forEach((D) => {
|
|
52235
|
+
let T = _.edge(D.v, D.w) || { weight: 0, minlen: 1 }, O = E.edge(D);
|
|
52238
52236
|
_.setEdge(D.v, D.w, {
|
|
52239
52237
|
weight: T.weight + O.weight,
|
|
52240
52238
|
minlen: Math.max(T.minlen, O.minlen)
|
|
52241
52239
|
});
|
|
52242
52240
|
}), _;
|
|
52243
52241
|
}
|
|
52244
|
-
function r(
|
|
52245
|
-
let _ = new t({ multigraph:
|
|
52246
|
-
return
|
|
52247
|
-
|
|
52248
|
-
}),
|
|
52249
|
-
_.setEdge(D,
|
|
52242
|
+
function r(E) {
|
|
52243
|
+
let _ = new t({ multigraph: E.isMultigraph() }).setGraph(E.graph());
|
|
52244
|
+
return E.nodes().forEach((D) => {
|
|
52245
|
+
E.children(D).length || _.setNode(D, E.node(D));
|
|
52246
|
+
}), E.edges().forEach((D) => {
|
|
52247
|
+
_.setEdge(D, E.edge(D));
|
|
52250
52248
|
}), _;
|
|
52251
52249
|
}
|
|
52252
|
-
function o(
|
|
52253
|
-
let _ =
|
|
52250
|
+
function o(E) {
|
|
52251
|
+
let _ = E.nodes().map((D) => {
|
|
52254
52252
|
let T = {};
|
|
52255
|
-
return
|
|
52256
|
-
T[O.w] = (T[O.w] || 0) +
|
|
52253
|
+
return E.outEdges(D).forEach((O) => {
|
|
52254
|
+
T[O.w] = (T[O.w] || 0) + E.edge(O).weight;
|
|
52257
52255
|
}), T;
|
|
52258
52256
|
});
|
|
52259
|
-
return E
|
|
52257
|
+
return S(E.nodes(), _);
|
|
52260
52258
|
}
|
|
52261
|
-
function i(
|
|
52262
|
-
let _ =
|
|
52259
|
+
function i(E) {
|
|
52260
|
+
let _ = E.nodes().map((D) => {
|
|
52263
52261
|
let T = {};
|
|
52264
|
-
return
|
|
52265
|
-
T[O.v] = (T[O.v] || 0) +
|
|
52262
|
+
return E.inEdges(D).forEach((O) => {
|
|
52263
|
+
T[O.v] = (T[O.v] || 0) + E.edge(O).weight;
|
|
52266
52264
|
}), T;
|
|
52267
52265
|
});
|
|
52268
|
-
return E
|
|
52266
|
+
return S(E.nodes(), _);
|
|
52269
52267
|
}
|
|
52270
|
-
function s(
|
|
52271
|
-
let D =
|
|
52268
|
+
function s(E, _) {
|
|
52269
|
+
let D = E.x, T = E.y, O = _.x - D, B = _.y - T, I = E.width / 2, A = E.height / 2;
|
|
52272
52270
|
if (!O && !B)
|
|
52273
52271
|
throw new Error("Not possible to find intersection inside of the rectangle");
|
|
52274
52272
|
let N, F;
|
|
52275
52273
|
return Math.abs(B) * I > Math.abs(O) * A ? (B < 0 && (A = -A), N = A * O / B, F = A) : (O < 0 && (I = -I), N = I, F = I * B / O), { x: D + N, y: T + F };
|
|
52276
52274
|
}
|
|
52277
|
-
function a(
|
|
52278
|
-
let _ = k(m(
|
|
52279
|
-
return
|
|
52280
|
-
let T =
|
|
52275
|
+
function a(E) {
|
|
52276
|
+
let _ = k(m(E) + 1).map(() => []);
|
|
52277
|
+
return E.nodes().forEach((D) => {
|
|
52278
|
+
let T = E.node(D), O = T.rank;
|
|
52281
52279
|
O !== void 0 && (_[O][T.order] = D);
|
|
52282
52280
|
}), _;
|
|
52283
52281
|
}
|
|
52284
|
-
function l(
|
|
52285
|
-
let _ =
|
|
52286
|
-
let O =
|
|
52282
|
+
function l(E) {
|
|
52283
|
+
let _ = E.nodes().map((T) => {
|
|
52284
|
+
let O = E.node(T).rank;
|
|
52287
52285
|
return O === void 0 ? Number.MAX_VALUE : O;
|
|
52288
52286
|
}), D = h(Math.min, _);
|
|
52289
|
-
|
|
52290
|
-
let O =
|
|
52287
|
+
E.nodes().forEach((T) => {
|
|
52288
|
+
let O = E.node(T);
|
|
52291
52289
|
Object.hasOwn(O, "rank") && (O.rank -= D);
|
|
52292
52290
|
});
|
|
52293
52291
|
}
|
|
52294
|
-
function c(
|
|
52295
|
-
let _ =
|
|
52296
|
-
|
|
52297
|
-
let A =
|
|
52292
|
+
function c(E) {
|
|
52293
|
+
let _ = E.nodes().map((I) => E.node(I).rank), D = h(Math.min, _), T = [];
|
|
52294
|
+
E.nodes().forEach((I) => {
|
|
52295
|
+
let A = E.node(I).rank - D;
|
|
52298
52296
|
T[A] || (T[A] = []), T[A].push(I);
|
|
52299
52297
|
});
|
|
52300
|
-
let O = 0, B =
|
|
52298
|
+
let O = 0, B = E.graph().nodeRankFactor;
|
|
52301
52299
|
Array.from(T).forEach((I, A) => {
|
|
52302
|
-
I === void 0 && A % B !== 0 ? --O : I !== void 0 && O && I.forEach((N) =>
|
|
52300
|
+
I === void 0 && A % B !== 0 ? --O : I !== void 0 && O && I.forEach((N) => E.node(N).rank += O);
|
|
52303
52301
|
});
|
|
52304
52302
|
}
|
|
52305
|
-
function u(
|
|
52303
|
+
function u(E, _, D, T) {
|
|
52306
52304
|
let O = {
|
|
52307
52305
|
width: 0,
|
|
52308
52306
|
height: 0
|
|
52309
52307
|
};
|
|
52310
|
-
return arguments.length >= 4 && (O.rank = D, O.order = T), e(
|
|
52308
|
+
return arguments.length >= 4 && (O.rank = D, O.order = T), e(E, "border", O, _);
|
|
52311
52309
|
}
|
|
52312
|
-
function d(
|
|
52310
|
+
function d(E, _ = f) {
|
|
52313
52311
|
const D = [];
|
|
52314
|
-
for (let T = 0; T <
|
|
52315
|
-
const O =
|
|
52312
|
+
for (let T = 0; T < E.length; T += _) {
|
|
52313
|
+
const O = E.slice(T, T + _);
|
|
52316
52314
|
D.push(O);
|
|
52317
52315
|
}
|
|
52318
52316
|
return D;
|
|
52319
52317
|
}
|
|
52320
52318
|
const f = 65535;
|
|
52321
|
-
function h(
|
|
52319
|
+
function h(E, _) {
|
|
52322
52320
|
if (_.length > f) {
|
|
52323
52321
|
const D = d(_);
|
|
52324
|
-
return
|
|
52322
|
+
return E.apply(null, D.map((T) => E.apply(null, T)));
|
|
52325
52323
|
} else
|
|
52326
|
-
return
|
|
52324
|
+
return E.apply(null, _);
|
|
52327
52325
|
}
|
|
52328
|
-
function m(
|
|
52329
|
-
const D =
|
|
52330
|
-
let O =
|
|
52326
|
+
function m(E) {
|
|
52327
|
+
const D = E.nodes().map((T) => {
|
|
52328
|
+
let O = E.node(T).rank;
|
|
52331
52329
|
return O === void 0 ? Number.MIN_VALUE : O;
|
|
52332
52330
|
});
|
|
52333
52331
|
return h(Math.max, D);
|
|
52334
52332
|
}
|
|
52335
|
-
function y(
|
|
52333
|
+
function y(E, _) {
|
|
52336
52334
|
let D = { lhs: [], rhs: [] };
|
|
52337
|
-
return
|
|
52335
|
+
return E.forEach((T) => {
|
|
52338
52336
|
_(T) ? D.lhs.push(T) : D.rhs.push(T);
|
|
52339
52337
|
}), D;
|
|
52340
52338
|
}
|
|
52341
|
-
function v(
|
|
52339
|
+
function v(E, _) {
|
|
52342
52340
|
let D = Date.now();
|
|
52343
52341
|
try {
|
|
52344
52342
|
return _();
|
|
52345
52343
|
} finally {
|
|
52346
|
-
console.log(
|
|
52344
|
+
console.log(E + " time: " + (Date.now() - D) + "ms");
|
|
52347
52345
|
}
|
|
52348
52346
|
}
|
|
52349
|
-
function g(
|
|
52347
|
+
function g(E, _) {
|
|
52350
52348
|
return _();
|
|
52351
52349
|
}
|
|
52352
52350
|
let w = 0;
|
|
52353
|
-
function b(
|
|
52351
|
+
function b(E) {
|
|
52354
52352
|
var _ = ++w;
|
|
52355
|
-
return
|
|
52353
|
+
return E + ("" + _);
|
|
52356
52354
|
}
|
|
52357
|
-
function k(
|
|
52358
|
-
_ == null && (_ =
|
|
52355
|
+
function k(E, _, D = 1) {
|
|
52356
|
+
_ == null && (_ = E, E = 0);
|
|
52359
52357
|
let T = (B) => B < _;
|
|
52360
52358
|
D < 0 && (T = (B) => _ < B);
|
|
52361
52359
|
const O = [];
|
|
52362
|
-
for (let B =
|
|
52360
|
+
for (let B = E; T(B); B += D)
|
|
52363
52361
|
O.push(B);
|
|
52364
52362
|
return O;
|
|
52365
52363
|
}
|
|
52366
|
-
function C(
|
|
52364
|
+
function C(E, _) {
|
|
52367
52365
|
const D = {};
|
|
52368
52366
|
for (const T of _)
|
|
52369
|
-
|
|
52367
|
+
E[T] !== void 0 && (D[T] = E[T]);
|
|
52370
52368
|
return D;
|
|
52371
52369
|
}
|
|
52372
|
-
function x(
|
|
52370
|
+
function x(E, _) {
|
|
52373
52371
|
let D = _;
|
|
52374
|
-
return typeof _ == "string" && (D = (T) => T[_]), Object.entries(
|
|
52372
|
+
return typeof _ == "string" && (D = (T) => T[_]), Object.entries(E).reduce((T, [O, B]) => (T[O] = D(B, O), T), {});
|
|
52375
52373
|
}
|
|
52376
|
-
function E
|
|
52377
|
-
return
|
|
52374
|
+
function S(E, _) {
|
|
52375
|
+
return E.reduce((D, T, O) => (D[T] = _[O], D), {});
|
|
52378
52376
|
}
|
|
52379
52377
|
return Cm;
|
|
52380
52378
|
}
|
|
@@ -52535,11 +52533,11 @@ function Fne() {
|
|
|
52535
52533
|
w.edge(k, x).cutvalue = c(w, b, k);
|
|
52536
52534
|
}
|
|
52537
52535
|
function c(w, b, k) {
|
|
52538
|
-
var C = w.node(k), x = C.parent,
|
|
52539
|
-
return
|
|
52536
|
+
var C = w.node(k), x = C.parent, S = !0, E = b.edge(k, x), _ = 0;
|
|
52537
|
+
return E || (S = !1, E = b.edge(x, k)), _ = E.weight, b.nodeEdges(k).forEach((D) => {
|
|
52540
52538
|
var T = D.v === k, O = T ? D.w : D.v;
|
|
52541
52539
|
if (O !== x) {
|
|
52542
|
-
var B = T ===
|
|
52540
|
+
var B = T === S, I = b.edge(D).weight;
|
|
52543
52541
|
if (_ += B ? I : -I, v(w, k, O)) {
|
|
52544
52542
|
var A = w.edge(k, O).cutvalue;
|
|
52545
52543
|
_ += B ? -A : A;
|
|
@@ -52551,10 +52549,10 @@ function Fne() {
|
|
|
52551
52549
|
arguments.length < 2 && (b = w.nodes()[0]), d(w, {}, 1, b);
|
|
52552
52550
|
}
|
|
52553
52551
|
function d(w, b, k, C, x) {
|
|
52554
|
-
var
|
|
52552
|
+
var S = k, E = w.node(C);
|
|
52555
52553
|
return b[C] = !0, w.neighbors(C).forEach((_) => {
|
|
52556
52554
|
Object.hasOwn(b, _) || (k = d(w, b, k, _, C));
|
|
52557
|
-
}),
|
|
52555
|
+
}), E.low = S, E.lim = k++, x ? E.parent = x : delete E.parent, k;
|
|
52558
52556
|
}
|
|
52559
52557
|
function f(w) {
|
|
52560
52558
|
return w.edges().find((b) => w.edge(b).cutvalue < 0);
|
|
@@ -52562,20 +52560,20 @@ function Fne() {
|
|
|
52562
52560
|
function h(w, b, k) {
|
|
52563
52561
|
var C = k.v, x = k.w;
|
|
52564
52562
|
b.hasEdge(C, x) || (C = k.w, x = k.v);
|
|
52565
|
-
var
|
|
52566
|
-
|
|
52563
|
+
var S = w.node(C), E = w.node(x), _ = S, D = !1;
|
|
52564
|
+
S.lim > E.lim && (_ = E, D = !0);
|
|
52567
52565
|
var T = b.edges().filter((O) => D === g(w, w.node(O.v), _) && D !== g(w, w.node(O.w), _));
|
|
52568
52566
|
return T.reduce((O, B) => e(b, B) < e(b, O) ? B : O);
|
|
52569
52567
|
}
|
|
52570
52568
|
function m(w, b, k, C) {
|
|
52571
|
-
var x = k.v,
|
|
52572
|
-
w.removeEdge(x,
|
|
52569
|
+
var x = k.v, S = k.w;
|
|
52570
|
+
w.removeEdge(x, S), w.setEdge(C.v, C.w, {}), u(w), a(w, b), y(w, b);
|
|
52573
52571
|
}
|
|
52574
52572
|
function y(w, b) {
|
|
52575
52573
|
var k = w.nodes().find((x) => !b.node(x).parent), C = r(w, k);
|
|
52576
52574
|
C = C.slice(1), C.forEach((x) => {
|
|
52577
|
-
var
|
|
52578
|
-
|
|
52575
|
+
var S = w.node(x).parent, E = b.edge(x, S), _ = !1;
|
|
52576
|
+
E || (E = b.edge(S, x), _ = !0), b.node(x).rank = b.node(S).rank + (_ ? E.minlen : -E.minlen);
|
|
52579
52577
|
});
|
|
52580
52578
|
}
|
|
52581
52579
|
function v(w, b, k) {
|
|
@@ -53080,38 +53078,38 @@ function Xne() {
|
|
|
53080
53078
|
function n(v, g) {
|
|
53081
53079
|
let w = {};
|
|
53082
53080
|
function b(k, C) {
|
|
53083
|
-
let x = 0,
|
|
53081
|
+
let x = 0, S = 0, E = k.length, _ = C[C.length - 1];
|
|
53084
53082
|
return C.forEach((D, T) => {
|
|
53085
|
-
let O = o(v, D), B = O ? v.node(O).order :
|
|
53086
|
-
(O || D === _) && (C.slice(
|
|
53083
|
+
let O = o(v, D), B = O ? v.node(O).order : E;
|
|
53084
|
+
(O || D === _) && (C.slice(S, T + 1).forEach((I) => {
|
|
53087
53085
|
v.predecessors(I).forEach((A) => {
|
|
53088
53086
|
let N = v.node(A), F = N.order;
|
|
53089
53087
|
(F < x || B < F) && !(N.dummy && v.node(I).dummy) && i(w, A, I);
|
|
53090
53088
|
});
|
|
53091
|
-
}),
|
|
53089
|
+
}), S = T + 1, x = B);
|
|
53092
53090
|
}), C;
|
|
53093
53091
|
}
|
|
53094
53092
|
return g.length && g.reduce(b), w;
|
|
53095
53093
|
}
|
|
53096
53094
|
function r(v, g) {
|
|
53097
53095
|
let w = {};
|
|
53098
|
-
function b(C, x,
|
|
53096
|
+
function b(C, x, S, E, _) {
|
|
53099
53097
|
let D;
|
|
53100
|
-
e.range(x,
|
|
53098
|
+
e.range(x, S).forEach((T) => {
|
|
53101
53099
|
D = C[T], v.node(D).dummy && v.predecessors(D).forEach((O) => {
|
|
53102
53100
|
let B = v.node(O);
|
|
53103
|
-
B.dummy && (B.order <
|
|
53101
|
+
B.dummy && (B.order < E || B.order > _) && i(w, O, D);
|
|
53104
53102
|
});
|
|
53105
53103
|
});
|
|
53106
53104
|
}
|
|
53107
53105
|
function k(C, x) {
|
|
53108
|
-
let
|
|
53106
|
+
let S = -1, E, _ = 0;
|
|
53109
53107
|
return x.forEach((D, T) => {
|
|
53110
53108
|
if (v.node(D).dummy === "border") {
|
|
53111
53109
|
let O = v.predecessors(D);
|
|
53112
|
-
O.length && (
|
|
53110
|
+
O.length && (E = v.node(O[0]).order, b(x, _, T, S, E), _ = T, S = E);
|
|
53113
53111
|
}
|
|
53114
|
-
b(x, _, x.length,
|
|
53112
|
+
b(x, _, x.length, E, C.length);
|
|
53115
53113
|
}), x;
|
|
53116
53114
|
}
|
|
53117
53115
|
return g.length && g.reduce(k), w;
|
|
@@ -53137,28 +53135,28 @@ function Xne() {
|
|
|
53137
53135
|
}
|
|
53138
53136
|
function a(v, g, w, b) {
|
|
53139
53137
|
let k = {}, C = {}, x = {};
|
|
53140
|
-
return g.forEach((
|
|
53141
|
-
|
|
53142
|
-
k[
|
|
53138
|
+
return g.forEach((S) => {
|
|
53139
|
+
S.forEach((E, _) => {
|
|
53140
|
+
k[E] = E, C[E] = E, x[E] = _;
|
|
53143
53141
|
});
|
|
53144
|
-
}), g.forEach((
|
|
53145
|
-
let
|
|
53146
|
-
|
|
53142
|
+
}), g.forEach((S) => {
|
|
53143
|
+
let E = -1;
|
|
53144
|
+
S.forEach((_) => {
|
|
53147
53145
|
let D = b(_);
|
|
53148
53146
|
if (D.length) {
|
|
53149
53147
|
D = D.sort((O, B) => x[O] - x[B]);
|
|
53150
53148
|
let T = (D.length - 1) / 2;
|
|
53151
53149
|
for (let O = Math.floor(T), B = Math.ceil(T); O <= B; ++O) {
|
|
53152
53150
|
let I = D[O];
|
|
53153
|
-
C[_] === _ &&
|
|
53151
|
+
C[_] === _ && E < x[I] && !s(w, _, I) && (C[I] = _, C[_] = k[_] = k[I], E = x[I]);
|
|
53154
53152
|
}
|
|
53155
53153
|
}
|
|
53156
53154
|
});
|
|
53157
53155
|
}), { root: k, align: C };
|
|
53158
53156
|
}
|
|
53159
53157
|
function l(v, g, w, b, k) {
|
|
53160
|
-
let C = {}, x = c(v, g, w, k),
|
|
53161
|
-
function
|
|
53158
|
+
let C = {}, x = c(v, g, w, k), S = k ? "borderLeft" : "borderRight";
|
|
53159
|
+
function E(T, O) {
|
|
53162
53160
|
let B = x.nodes(), I = B.pop(), A = {};
|
|
53163
53161
|
for (; I; )
|
|
53164
53162
|
A[I] ? T(I) : (A[I] = !0, B.push(I), B = B.concat(O(I))), I = B.pop();
|
|
@@ -53168,30 +53166,30 @@ function Xne() {
|
|
|
53168
53166
|
}
|
|
53169
53167
|
function D(T) {
|
|
53170
53168
|
let O = x.outEdges(T).reduce((I, A) => Math.min(I, C[A.w] - x.edge(A)), Number.POSITIVE_INFINITY), B = v.node(T);
|
|
53171
|
-
O !== Number.POSITIVE_INFINITY && B.borderType !==
|
|
53169
|
+
O !== Number.POSITIVE_INFINITY && B.borderType !== S && (C[T] = Math.max(C[T], O));
|
|
53172
53170
|
}
|
|
53173
|
-
return
|
|
53171
|
+
return E(_, x.predecessors.bind(x)), E(D, x.successors.bind(x)), Object.keys(b).forEach((T) => C[T] = C[w[T]]), C;
|
|
53174
53172
|
}
|
|
53175
53173
|
function c(v, g, w, b) {
|
|
53176
53174
|
let k = new t(), C = v.graph(), x = m(C.nodesep, C.edgesep, b);
|
|
53177
|
-
return g.forEach((
|
|
53178
|
-
let
|
|
53179
|
-
|
|
53175
|
+
return g.forEach((S) => {
|
|
53176
|
+
let E;
|
|
53177
|
+
S.forEach((_) => {
|
|
53180
53178
|
let D = w[_];
|
|
53181
|
-
if (k.setNode(D),
|
|
53182
|
-
var T = w[
|
|
53183
|
-
k.setEdge(T, D, Math.max(x(v, _,
|
|
53179
|
+
if (k.setNode(D), E) {
|
|
53180
|
+
var T = w[E], O = k.edge(T, D);
|
|
53181
|
+
k.setEdge(T, D, Math.max(x(v, _, E), O || 0));
|
|
53184
53182
|
}
|
|
53185
|
-
|
|
53183
|
+
E = _;
|
|
53186
53184
|
});
|
|
53187
53185
|
}), k;
|
|
53188
53186
|
}
|
|
53189
53187
|
function u(v, g) {
|
|
53190
53188
|
return Object.values(g).reduce((w, b) => {
|
|
53191
53189
|
let k = Number.NEGATIVE_INFINITY, C = Number.POSITIVE_INFINITY;
|
|
53192
|
-
Object.entries(b).forEach(([
|
|
53193
|
-
let _ = y(v,
|
|
53194
|
-
k = Math.max(
|
|
53190
|
+
Object.entries(b).forEach(([S, E]) => {
|
|
53191
|
+
let _ = y(v, S) / 2;
|
|
53192
|
+
k = Math.max(E + _, k), C = Math.min(E - _, C);
|
|
53195
53193
|
});
|
|
53196
53194
|
const x = k - C;
|
|
53197
53195
|
return x < w[0] && (w = [x, b]), w;
|
|
@@ -53201,10 +53199,10 @@ function Xne() {
|
|
|
53201
53199
|
let w = Object.values(g), b = e.applyWithChunking(Math.min, w), k = e.applyWithChunking(Math.max, w);
|
|
53202
53200
|
["u", "d"].forEach((C) => {
|
|
53203
53201
|
["l", "r"].forEach((x) => {
|
|
53204
|
-
let
|
|
53205
|
-
if (
|
|
53206
|
-
let _ = Object.values(
|
|
53207
|
-
x !== "l" && (D = k - e.applyWithChunking(Math.max, _)), D && (v[
|
|
53202
|
+
let S = C + x, E = v[S];
|
|
53203
|
+
if (E === g) return;
|
|
53204
|
+
let _ = Object.values(E), D = b - e.applyWithChunking(Math.min, _);
|
|
53205
|
+
x !== "l" && (D = k - e.applyWithChunking(Math.max, _)), D && (v[S] = e.mapValues(E, (T) => T + D));
|
|
53208
53206
|
});
|
|
53209
53207
|
});
|
|
53210
53208
|
}
|
|
@@ -53224,16 +53222,16 @@ function Xne() {
|
|
|
53224
53222
|
r(v, g)
|
|
53225
53223
|
), b = {}, k;
|
|
53226
53224
|
["u", "d"].forEach((x) => {
|
|
53227
|
-
k = x === "u" ? g : Object.values(g).reverse(), ["l", "r"].forEach((
|
|
53228
|
-
|
|
53229
|
-
let
|
|
53225
|
+
k = x === "u" ? g : Object.values(g).reverse(), ["l", "r"].forEach((S) => {
|
|
53226
|
+
S === "r" && (k = k.map((T) => Object.values(T).reverse()));
|
|
53227
|
+
let E = (x === "u" ? v.predecessors : v.successors).bind(v), _ = a(v, k, w, E), D = l(
|
|
53230
53228
|
v,
|
|
53231
53229
|
k,
|
|
53232
53230
|
_.root,
|
|
53233
53231
|
_.align,
|
|
53234
|
-
|
|
53232
|
+
S === "r"
|
|
53235
53233
|
);
|
|
53236
|
-
|
|
53234
|
+
S === "r" && (D = e.mapValues(D, (T) => -T)), b[x + S] = D;
|
|
53237
53235
|
});
|
|
53238
53236
|
});
|
|
53239
53237
|
let C = u(v, b);
|
|
@@ -53241,8 +53239,8 @@ function Xne() {
|
|
|
53241
53239
|
}
|
|
53242
53240
|
function m(v, g, w) {
|
|
53243
53241
|
return (b, k, C) => {
|
|
53244
|
-
let x = b.node(k),
|
|
53245
|
-
if (
|
|
53242
|
+
let x = b.node(k), S = b.node(C), E = 0, _;
|
|
53243
|
+
if (E += x.width / 2, Object.hasOwn(x, "labelpos"))
|
|
53246
53244
|
switch (x.labelpos.toLowerCase()) {
|
|
53247
53245
|
case "l":
|
|
53248
53246
|
_ = -x.width / 2;
|
|
@@ -53251,16 +53249,16 @@ function Xne() {
|
|
|
53251
53249
|
_ = x.width / 2;
|
|
53252
53250
|
break;
|
|
53253
53251
|
}
|
|
53254
|
-
if (_ && (
|
|
53255
|
-
switch (
|
|
53252
|
+
if (_ && (E += w ? _ : -_), _ = 0, E += (x.dummy ? g : v) / 2, E += (S.dummy ? g : v) / 2, E += S.width / 2, Object.hasOwn(S, "labelpos"))
|
|
53253
|
+
switch (S.labelpos.toLowerCase()) {
|
|
53256
53254
|
case "l":
|
|
53257
|
-
_ =
|
|
53255
|
+
_ = S.width / 2;
|
|
53258
53256
|
break;
|
|
53259
53257
|
case "r":
|
|
53260
|
-
_ = -
|
|
53258
|
+
_ = -S.width / 2;
|
|
53261
53259
|
break;
|
|
53262
53260
|
}
|
|
53263
|
-
return _ && (
|
|
53261
|
+
return _ && (E += w ? _ : -_), _ = 0, E;
|
|
53264
53262
|
};
|
|
53265
53263
|
}
|
|
53266
53264
|
function y(v, g) {
|
|
@@ -53298,7 +53296,7 @@ function Qne() {
|
|
|
53298
53296
|
function h(M, z) {
|
|
53299
53297
|
let q = z && z.debugTiming ? d.time : d.notime;
|
|
53300
53298
|
q("layout", () => {
|
|
53301
|
-
let te = q(" buildLayoutGraph", () =>
|
|
53299
|
+
let te = q(" buildLayoutGraph", () => E(M));
|
|
53302
53300
|
q(" runLayout", () => m(te, q, z)), q(" updateInputGraph", () => y(M, te));
|
|
53303
53301
|
});
|
|
53304
53302
|
}
|
|
@@ -53321,8 +53319,8 @@ function Qne() {
|
|
|
53321
53319
|
height: 0,
|
|
53322
53320
|
labeloffset: 10,
|
|
53323
53321
|
labelpos: "r"
|
|
53324
|
-
},
|
|
53325
|
-
function
|
|
53322
|
+
}, S = ["labelpos"];
|
|
53323
|
+
function E(M) {
|
|
53326
53324
|
let z = new f({ multigraph: !0, compound: !0 }), q = Q(M.graph());
|
|
53327
53325
|
return z.setGraph(Object.assign(
|
|
53328
53326
|
{},
|
|
@@ -53341,7 +53339,7 @@ function Qne() {
|
|
|
53341
53339
|
{},
|
|
53342
53340
|
x,
|
|
53343
53341
|
Z(se, C),
|
|
53344
|
-
d.pick(se,
|
|
53342
|
+
d.pick(se, S)
|
|
53345
53343
|
));
|
|
53346
53344
|
}), z;
|
|
53347
53345
|
}
|
|
@@ -53590,8 +53588,8 @@ function are(t, e, n) {
|
|
|
53590
53588
|
l
|
|
53591
53589
|
);
|
|
53592
53590
|
if (x.length > 0) {
|
|
53593
|
-
const
|
|
53594
|
-
s.push(
|
|
53591
|
+
const S = ire(C, x);
|
|
53592
|
+
s.push(S), l.add(C.id), x.forEach((E) => l.add(E.id));
|
|
53595
53593
|
}
|
|
53596
53594
|
}
|
|
53597
53595
|
if (ore(C) && !l.has(C.id)) {
|
|
@@ -53603,8 +53601,8 @@ function are(t, e, n) {
|
|
|
53603
53601
|
l
|
|
53604
53602
|
);
|
|
53605
53603
|
if (x.length > 0) {
|
|
53606
|
-
const
|
|
53607
|
-
a.push(
|
|
53604
|
+
const S = sre(C, x);
|
|
53605
|
+
a.push(S), l.add(C.id), x.forEach((E) => l.add(E.id));
|
|
53608
53606
|
}
|
|
53609
53607
|
}
|
|
53610
53608
|
});
|
|
@@ -53615,10 +53613,10 @@ function are(t, e, n) {
|
|
|
53615
53613
|
nodesep: i ? Ho : fd,
|
|
53616
53614
|
ranksep: i ? fd : Ho
|
|
53617
53615
|
}), u.setDefaultEdgeLabel(() => ({})), c.forEach((C) => {
|
|
53618
|
-
const x = C.width || it,
|
|
53616
|
+
const x = C.width || it, S = C.height || it;
|
|
53619
53617
|
u.setNode(C.id, {
|
|
53620
53618
|
width: x,
|
|
53621
|
-
height:
|
|
53619
|
+
height: S,
|
|
53622
53620
|
x: C.position.x,
|
|
53623
53621
|
y: C.position.y
|
|
53624
53622
|
});
|
|
@@ -53632,18 +53630,18 @@ function are(t, e, n) {
|
|
|
53632
53630
|
const x = Math.max(
|
|
53633
53631
|
it,
|
|
53634
53632
|
C.childIds.length * it + (C.childIds.length - 1) * Ho
|
|
53635
|
-
),
|
|
53633
|
+
), S = it + Ns + it;
|
|
53636
53634
|
u.setNode(C.parentId, {
|
|
53637
53635
|
width: x,
|
|
53638
|
-
height:
|
|
53636
|
+
height: S
|
|
53639
53637
|
});
|
|
53640
53638
|
}), e.forEach((C) => {
|
|
53641
|
-
const x = [...s, ...a],
|
|
53639
|
+
const x = [...s, ...a], S = x.some(
|
|
53642
53640
|
(B) => B.parentId === C.source || B.childIds.includes(C.source)
|
|
53643
|
-
),
|
|
53641
|
+
), E = x.some(
|
|
53644
53642
|
(B) => B.parentId === C.target || B.childIds.includes(C.target)
|
|
53645
53643
|
);
|
|
53646
|
-
if (
|
|
53644
|
+
if (S && E) {
|
|
53647
53645
|
const B = x.find(
|
|
53648
53646
|
(A) => A.parentId === C.source || A.childIds.includes(C.source)
|
|
53649
53647
|
), I = x.find(
|
|
@@ -53666,18 +53664,18 @@ function are(t, e, n) {
|
|
|
53666
53664
|
console.warn(`Invalid layout data for regular node ${C.id}:`, x);
|
|
53667
53665
|
return;
|
|
53668
53666
|
}
|
|
53669
|
-
const
|
|
53667
|
+
const S = {
|
|
53670
53668
|
x: x.x - (x.width || it) / 2,
|
|
53671
53669
|
y: x.y - (x.height || it) / 2,
|
|
53672
53670
|
width: x.width || it,
|
|
53673
53671
|
height: x.height || it
|
|
53674
53672
|
};
|
|
53675
|
-
f.push({ id: C.id, boundingBox:
|
|
53673
|
+
f.push({ id: C.id, boundingBox: S }), h.push(S.y), m.push(S.x), d.push({
|
|
53676
53674
|
id: C.id,
|
|
53677
|
-
x:
|
|
53678
|
-
y:
|
|
53679
|
-
width:
|
|
53680
|
-
height:
|
|
53675
|
+
x: S.x,
|
|
53676
|
+
y: S.y,
|
|
53677
|
+
width: S.width,
|
|
53678
|
+
height: S.height
|
|
53681
53679
|
});
|
|
53682
53680
|
}
|
|
53683
53681
|
}), s.forEach((C) => {
|
|
@@ -53687,9 +53685,9 @@ function are(t, e, n) {
|
|
|
53687
53685
|
console.warn(`Invalid layout data for vertical group ${C.parentId}:`, x);
|
|
53688
53686
|
return;
|
|
53689
53687
|
}
|
|
53690
|
-
const
|
|
53688
|
+
const S = x.x, E = x.y, _ = x.width || it, D = x.height || it, T = t.find((N) => N.id === C.parentId), O = t.filter((N) => C.childIds.includes(N.id));
|
|
53691
53689
|
if (!T) return;
|
|
53692
|
-
const B =
|
|
53690
|
+
const B = S - _ / 2, I = E - D / 2, A = {
|
|
53693
53691
|
x: B,
|
|
53694
53692
|
y: I,
|
|
53695
53693
|
width: it,
|
|
@@ -53727,9 +53725,9 @@ function are(t, e, n) {
|
|
|
53727
53725
|
console.warn(`Invalid layout data for horizontal group ${C.parentId}:`, x);
|
|
53728
53726
|
return;
|
|
53729
53727
|
}
|
|
53730
|
-
const
|
|
53728
|
+
const S = x.x, E = x.y, _ = x.width || it, D = x.height || it, T = t.find(($) => $.id === C.parentId), O = t.filter(($) => C.childIds.includes($.id));
|
|
53731
53729
|
if (!T) return;
|
|
53732
|
-
const B =
|
|
53730
|
+
const B = S - _ / 2, I = E - D / 2, A = {
|
|
53733
53731
|
x: B + (_ - it) / 2,
|
|
53734
53732
|
y: I,
|
|
53735
53733
|
width: it,
|
|
@@ -53773,9 +53771,9 @@ function are(t, e, n) {
|
|
|
53773
53771
|
...new Set(m.map((C) => v(C, y)))
|
|
53774
53772
|
].sort((C, x) => C - x);
|
|
53775
53773
|
const g = d.map((C) => {
|
|
53776
|
-
const x = s.some((
|
|
53774
|
+
const x = s.some((E) => E.childIds.includes(C.id)), S = a.some((E) => E.childIds.includes(C.id));
|
|
53777
53775
|
if (x) {
|
|
53778
|
-
const
|
|
53776
|
+
const E = s.find((D) => D.childIds.includes(C.id)), _ = d.find((D) => D.id === (E == null ? void 0 : E.parentId));
|
|
53779
53777
|
if (_)
|
|
53780
53778
|
return {
|
|
53781
53779
|
...C,
|
|
@@ -53783,7 +53781,7 @@ function are(t, e, n) {
|
|
|
53783
53781
|
y: v(C.y, y)
|
|
53784
53782
|
};
|
|
53785
53783
|
}
|
|
53786
|
-
return
|
|
53784
|
+
return S ? {
|
|
53787
53785
|
...C,
|
|
53788
53786
|
x: v(C.x, y),
|
|
53789
53787
|
y: v(C.y, y)
|
|
@@ -54012,11 +54010,11 @@ function hre(t, e) {
|
|
|
54012
54010
|
const { workflowId: n, onInit: r } = t, o = ls(), { setLocked: i, op_status: s } = ci(), a = zt(), [l, c] = re(!1), [u, d] = re(!1), f = fn(), h = Mr(), { autoLayout: m } = cre(), [y, v] = re(!0), g = Dy(ac()), w = s === Qn.ONLINE || s === Qn.ON_WARN, b = le(() => !g && f.canvas.miniMap, [g, f.canvas.miniMap]), k = le(() => !g && f.canvas.controls, [g, f.canvas.controls]), C = le(() => !g && f.canvas.header, [f.canvas.header, g]), x = le(() => {
|
|
54013
54011
|
var Se;
|
|
54014
54012
|
return (Se = f.canvas.grid) == null ? void 0 : Se.enabled;
|
|
54015
|
-
}, [(Sn = f.canvas.grid) == null ? void 0 : Sn.enabled]),
|
|
54013
|
+
}, [(Sn = f.canvas.grid) == null ? void 0 : Sn.enabled]), S = le(() => a && !g && f.canvas.fastOperationButtons, [a, g, f.canvas.fastOperationButtons]);
|
|
54016
54014
|
yne({
|
|
54017
54015
|
enabled: !g && l
|
|
54018
54016
|
});
|
|
54019
|
-
const
|
|
54017
|
+
const E = g || y || !a, _ = G(
|
|
54020
54018
|
(Se) => {
|
|
54021
54019
|
requestAnimationFrame(() => {
|
|
54022
54020
|
const We = h.getNode(Se);
|
|
@@ -54219,13 +54217,13 @@ function hre(t, e) {
|
|
|
54219
54217
|
helperLineHorizontal: X,
|
|
54220
54218
|
helperLineVertical: ee,
|
|
54221
54219
|
isPreviewMode: g,
|
|
54222
|
-
isInteractionDisabled:
|
|
54220
|
+
isInteractionDisabled: E,
|
|
54223
54221
|
isOnline: w,
|
|
54224
54222
|
showMiniMap: b,
|
|
54225
54223
|
showControls: k,
|
|
54226
54224
|
showCanvasHeader: C,
|
|
54227
54225
|
showBackground: x,
|
|
54228
|
-
showFastOperationButtons:
|
|
54226
|
+
showFastOperationButtons: S,
|
|
54229
54227
|
onNodesChange: he,
|
|
54230
54228
|
handleEdgesChange: ae,
|
|
54231
54229
|
handleConnect: _c,
|
|
@@ -54558,10 +54556,10 @@ ${n}` : ""}`;
|
|
|
54558
54556
|
};
|
|
54559
54557
|
}),
|
|
54560
54558
|
[C, n, b]
|
|
54561
|
-
),
|
|
54559
|
+
), S = le(
|
|
54562
54560
|
() => yre(e, n, b, C),
|
|
54563
54561
|
[C, n, b, e]
|
|
54564
|
-
),
|
|
54562
|
+
), E = le(() => bre(e, n), [n, e]), _ = le(() => new Map(E.nodes.map((A) => [A.id, A])), [E.nodes]), D = Math.max(E.width, 400), T = Math.max(E.height, 180), O = le(() => {
|
|
54565
54563
|
const { levels: A, unvisited: N } = AI(e, n), F = A.map((L) => {
|
|
54566
54564
|
const $ = L.nodes.map((Y) => `${Y.id}(${_i(Y)})`).join(" | ");
|
|
54567
54565
|
return `L${L.level}: ${$}`;
|
|
@@ -54576,10 +54574,10 @@ ${n}` : ""}`;
|
|
|
54576
54574
|
edges: n.map(Km),
|
|
54577
54575
|
edgeRelations: jE(n, b),
|
|
54578
54576
|
duplicateEdges: k,
|
|
54579
|
-
mermaidSource:
|
|
54577
|
+
mermaidSource: S
|
|
54580
54578
|
};
|
|
54581
54579
|
return JSON.stringify(A, null, 2);
|
|
54582
|
-
}, [k, n,
|
|
54580
|
+
}, [k, n, S, b, e]);
|
|
54583
54581
|
return t ? /* @__PURE__ */ P(ry, { position: "bottom-right", className: "workflow-debug-panel", children: [
|
|
54584
54582
|
/* @__PURE__ */ P("div", { className: "workflow-debug-panel__header", children: [
|
|
54585
54583
|
/* @__PURE__ */ p("span", { children: "画布调试" }),
|
|
@@ -54760,7 +54758,7 @@ ${n}` : ""}`;
|
|
|
54760
54758
|
}
|
|
54761
54759
|
)
|
|
54762
54760
|
] }),
|
|
54763
|
-
|
|
54761
|
+
E.edges.map((A) => {
|
|
54764
54762
|
const N = _.get(A.source), F = _.get(A.target);
|
|
54765
54763
|
if (!N || !F)
|
|
54766
54764
|
return null;
|
|
@@ -54779,7 +54777,7 @@ ${n}` : ""}`;
|
|
|
54779
54777
|
A.id
|
|
54780
54778
|
);
|
|
54781
54779
|
}),
|
|
54782
|
-
|
|
54780
|
+
E.nodes.map((A) => /* @__PURE__ */ P("g", { transform: `translate(${A.x}, ${A.y})`, children: [
|
|
54783
54781
|
/* @__PURE__ */ p(
|
|
54784
54782
|
"rect",
|
|
54785
54783
|
{
|
|
@@ -54814,12 +54812,12 @@ ${n}` : ""}`;
|
|
|
54814
54812
|
{
|
|
54815
54813
|
size: "small",
|
|
54816
54814
|
onClick: async () => {
|
|
54817
|
-
await Du(
|
|
54815
|
+
await Du(S) ? Ce.success("Mermaid 已复制") : Ce.error("复制失败");
|
|
54818
54816
|
},
|
|
54819
54817
|
children: "复制 Mermaid"
|
|
54820
54818
|
}
|
|
54821
54819
|
) }),
|
|
54822
|
-
/* @__PURE__ */ p("pre", { children:
|
|
54820
|
+
/* @__PURE__ */ p("pre", { children: S })
|
|
54823
54821
|
] }),
|
|
54824
54822
|
/* @__PURE__ */ P("div", { className: "workflow-debug-panel__detail", children: [
|
|
54825
54823
|
/* @__PURE__ */ p("div", { className: "workflow-debug-panel__detail-title", children: "结构布局" }),
|
|
@@ -55139,7 +55137,7 @@ const vf = {
|
|
|
55139
55137
|
validateConnectionAgainstSnapshot: l.validateConnectionAgainstSnapshot,
|
|
55140
55138
|
saveFlow: b
|
|
55141
55139
|
});
|
|
55142
|
-
const x = n.HeaderComponent,
|
|
55140
|
+
const x = n.HeaderComponent, S = n.PanelComponent, E = n.ConfigModalComponent, _ = h && !m && !y && !v, D = le(
|
|
55143
55141
|
() => ({ hasTriggerNode: m, isMcpServerCanvas: y }),
|
|
55144
55142
|
[m, y]
|
|
55145
55143
|
);
|
|
@@ -55228,7 +55226,7 @@ const vf = {
|
|
|
55228
55226
|
}
|
|
55229
55227
|
),
|
|
55230
55228
|
!l.loading && l.showMiniMap && /* @__PURE__ */ p(mre, {}),
|
|
55231
|
-
/* @__PURE__ */ p(
|
|
55229
|
+
/* @__PURE__ */ p(S, {}),
|
|
55232
55230
|
/* @__PURE__ */ p(
|
|
55233
55231
|
sne,
|
|
55234
55232
|
{
|
|
@@ -55252,7 +55250,7 @@ const vf = {
|
|
|
55252
55250
|
]
|
|
55253
55251
|
}
|
|
55254
55252
|
),
|
|
55255
|
-
|
|
55253
|
+
E && /* @__PURE__ */ p(E, {})
|
|
55256
55254
|
] }) });
|
|
55257
55255
|
};
|
|
55258
55256
|
var Br = /* @__PURE__ */ ((t) => (t.SECOND = "second", t.MINUTE = "minute", t.HOUR = "hour", t))(Br || {});
|
|
@@ -55454,11 +55452,11 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55454
55452
|
onAddRelation: c,
|
|
55455
55453
|
onRemoveRelation: u
|
|
55456
55454
|
}) => {
|
|
55457
|
-
const [d, f] = re(!1), [h, m] = re(null), [y, v] = re(""), [g, w] = re(!1), [b, k] = re(""), [C, x] = re(!1),
|
|
55455
|
+
const [d, f] = re(!1), [h, m] = re(null), [y, v] = re(""), [g, w] = re(!1), [b, k] = re(""), [C, x] = re(!1), S = Rre(i), E = (F) => {
|
|
55458
55456
|
var L;
|
|
55459
55457
|
return (L = o.find(($) => $.name === F)) == null ? void 0 : L.id;
|
|
55460
55458
|
}, _ = async (F) => {
|
|
55461
|
-
const L =
|
|
55459
|
+
const L = E(F);
|
|
55462
55460
|
if (!L) return;
|
|
55463
55461
|
const $ = t.includes(F);
|
|
55464
55462
|
try {
|
|
@@ -55468,7 +55466,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55468
55466
|
}
|
|
55469
55467
|
}, D = (F, L) => {
|
|
55470
55468
|
L.stopPropagation();
|
|
55471
|
-
const $ =
|
|
55469
|
+
const $ = E(F);
|
|
55472
55470
|
$ && u(r, $).then(() => {
|
|
55473
55471
|
e == null || e(t.filter((Y) => Y !== F));
|
|
55474
55472
|
}).catch(() => {
|
|
@@ -55483,7 +55481,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55483
55481
|
Ce.error("名称长度不能超过8个字符");
|
|
55484
55482
|
return;
|
|
55485
55483
|
}
|
|
55486
|
-
const L =
|
|
55484
|
+
const L = E(h);
|
|
55487
55485
|
if (L)
|
|
55488
55486
|
try {
|
|
55489
55487
|
x(!0), await a(L, F), e == null || e(t.map(($) => $ === h ? F : $)), Ce.success("修改成功");
|
|
@@ -55495,7 +55493,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55495
55493
|
}, B = () => {
|
|
55496
55494
|
m(null), v("");
|
|
55497
55495
|
}, I = async (F) => {
|
|
55498
|
-
const L =
|
|
55496
|
+
const L = E(F);
|
|
55499
55497
|
if (L)
|
|
55500
55498
|
try {
|
|
55501
55499
|
x(!0), await l(L), e == null || e(t.filter(($) => $ !== F)), Ce.success("删除成功");
|
|
@@ -55531,7 +55529,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55531
55529
|
tabIndex: 0,
|
|
55532
55530
|
"aria-expanded": d,
|
|
55533
55531
|
"aria-haspopup": "listbox",
|
|
55534
|
-
"aria-label": `选择或管理${
|
|
55532
|
+
"aria-label": `选择或管理${S}`,
|
|
55535
55533
|
onClick: () => f(!d),
|
|
55536
55534
|
onKeyDown: (F) => {
|
|
55537
55535
|
(F.key === "Enter" || F.key === " ") && (F.preventDefault(), f((L) => !L)), F.key === "Escape" && f(!1);
|
|
@@ -55562,7 +55560,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55562
55560
|
"button",
|
|
55563
55561
|
{
|
|
55564
55562
|
type: "button",
|
|
55565
|
-
"aria-label": `关闭${
|
|
55563
|
+
"aria-label": `关闭${S}选择器`,
|
|
55566
55564
|
className: "template-editable-select-dropdown-overlay",
|
|
55567
55565
|
onClick: () => f(!1)
|
|
55568
55566
|
}
|
|
@@ -55572,7 +55570,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55572
55570
|
{
|
|
55573
55571
|
className: "template-editable-select-dropdown-container",
|
|
55574
55572
|
role: "listbox",
|
|
55575
|
-
"aria-label": `${
|
|
55573
|
+
"aria-label": `${S}选项`,
|
|
55576
55574
|
onClick: (F) => F.stopPropagation(),
|
|
55577
55575
|
children: /* @__PURE__ */ P("div", { className: "template-editable-select-dropdown", children: [
|
|
55578
55576
|
o.map((F) => /* @__PURE__ */ p("div", { className: "template-editable-select-dropdown-item", children: h === F.name ? /* @__PURE__ */ p("div", { className: "template-editable-select-edit-container", children: /* @__PURE__ */ p(
|
|
@@ -55584,7 +55582,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55584
55582
|
maxLength: 8,
|
|
55585
55583
|
onChange: (L) => v(L.target.value),
|
|
55586
55584
|
onPressEnter: O,
|
|
55587
|
-
placeholder: `输入新${
|
|
55585
|
+
placeholder: `输入新${S}名称(8个字符以内)`,
|
|
55588
55586
|
size: "small",
|
|
55589
55587
|
suffix: /* @__PURE__ */ P("div", { className: "template-editable-select-edit-actions", children: [
|
|
55590
55588
|
/* @__PURE__ */ p(
|
|
@@ -55645,7 +55643,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55645
55643
|
cancelText: "取消",
|
|
55646
55644
|
okText: "确定",
|
|
55647
55645
|
onConfirm: () => I(F.name),
|
|
55648
|
-
title: `确定删除${
|
|
55646
|
+
title: `确定删除${S}"${F.name}"吗?`,
|
|
55649
55647
|
children: /* @__PURE__ */ p(
|
|
55650
55648
|
ce,
|
|
55651
55649
|
{
|
|
@@ -55671,7 +55669,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55671
55669
|
maxLength: 8,
|
|
55672
55670
|
onChange: (F) => k(F.target.value),
|
|
55673
55671
|
onPressEnter: A,
|
|
55674
|
-
placeholder: `输入新${
|
|
55672
|
+
placeholder: `输入新${S}名称(8个字符以内)`,
|
|
55675
55673
|
size: "small",
|
|
55676
55674
|
suffix: /* @__PURE__ */ P("div", { className: "template-editable-select-edit-actions", children: [
|
|
55677
55675
|
/* @__PURE__ */ p(
|
|
@@ -55768,10 +55766,10 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55768
55766
|
const x = async (N) => {
|
|
55769
55767
|
const F = await AD({ name: N });
|
|
55770
55768
|
return await b(), F;
|
|
55771
|
-
},
|
|
55769
|
+
}, S = async (N, F) => {
|
|
55772
55770
|
const L = await OD(N, { name: F });
|
|
55773
55771
|
return await b(), L;
|
|
55774
|
-
},
|
|
55772
|
+
}, E = async (N) => {
|
|
55775
55773
|
const F = await TD(N);
|
|
55776
55774
|
return await b(), F;
|
|
55777
55775
|
}, _ = async (N) => {
|
|
@@ -55886,9 +55884,9 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55886
55884
|
onAddRelation: ND,
|
|
55887
55885
|
onChange: I,
|
|
55888
55886
|
onCreate: x,
|
|
55889
|
-
onDelete:
|
|
55887
|
+
onDelete: E,
|
|
55890
55888
|
onRemoveRelation: BD,
|
|
55891
|
-
onUpdate:
|
|
55889
|
+
onUpdate: S,
|
|
55892
55890
|
optionItems: d,
|
|
55893
55891
|
placeholder: "请选择模板分类",
|
|
55894
55892
|
templateId: e,
|
|
@@ -55986,14 +55984,14 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
55986
55984
|
var ae;
|
|
55987
55985
|
return (ae = oe.workflow.flowMetadata) == null ? void 0 : ae.version_group_id;
|
|
55988
55986
|
}
|
|
55989
|
-
), [m, y] = re(!1), [v, g] = re(d), [w, b] = re(!1), [k, C] = re(!1), x = ge(null), { getNodes:
|
|
55987
|
+
), [m, y] = re(!1), [v, g] = re(d), [w, b] = re(!1), [k, C] = re(!1), x = ge(null), { getNodes: S } = Mr(), _ = fn().toolbar, D = _ == null ? void 0 : _.versionManagement, T = !!h, O = T && !!(D != null && D.onShowHistory), B = T && !!(D != null && D.onConfirmPublish), I = _ == null ? void 0 : _.templateSettings, { isMcpServerCanvas: A } = BI(), N = f === Qn.ONLINE || f === Qn.ON_WARN, F = ge(null), L = Lte(), $ = L.id;
|
|
55990
55988
|
pe(() => {
|
|
55991
55989
|
g(d);
|
|
55992
55990
|
}, [d]), pe(() => {
|
|
55993
55991
|
m && x.current && x.current.focus();
|
|
55994
55992
|
}, [m]);
|
|
55995
55993
|
const Y = G(() => {
|
|
55996
|
-
const ae =
|
|
55994
|
+
const ae = S().filter(
|
|
55997
55995
|
(he) => he.data.status !== ve.SUCCESS && he.data.status !== ve.RUNNABLE
|
|
55998
55996
|
);
|
|
55999
55997
|
return ae.length && console.warn(`${YE} node status check failed`, {
|
|
@@ -56004,8 +56002,8 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
56004
56002
|
status: he.data.status
|
|
56005
56003
|
}))
|
|
56006
56004
|
}), ae.length === 0;
|
|
56007
|
-
}, [
|
|
56008
|
-
const oe =
|
|
56005
|
+
}, [S]), Z = G(() => {
|
|
56006
|
+
const oe = S(), ae = (he, Ie, Le) => (console.warn(`${YE} required config check failed`, {
|
|
56009
56007
|
node: {
|
|
56010
56008
|
id: he.id,
|
|
56011
56009
|
name: he.data.name,
|
|
@@ -56064,7 +56062,7 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
56064
56062
|
}
|
|
56065
56063
|
}
|
|
56066
56064
|
return !0;
|
|
56067
|
-
}, [
|
|
56065
|
+
}, [S]), Q = async () => {
|
|
56068
56066
|
if (!T && (f === Qn.ONLINE || f === Qn.ON_WARN) && (!Z() || !Y())) {
|
|
56069
56067
|
Ce.warning(K("app.workflow.canvas.header.save_blocked_warning"));
|
|
56070
56068
|
return;
|
|
@@ -56508,13 +56506,13 @@ const { Text: Ym } = Fn, Ire = rn((t, e) => {
|
|
|
56508
56506
|
g ? v = "trigger" : w === Ve.MCP_SERVER || w === Ve.BUILTIN_MCP ? v = bx : w === Ve.AI_TOOL ? v = "mcp" : w === Ve.AI_LANGUAGE_MODEL ? v = "model" : w === Ve.AI_MEMORY && (v = "memory");
|
|
56509
56507
|
const k = await t(v);
|
|
56510
56508
|
if (y !== h.current) return;
|
|
56511
|
-
const x = e ? k.filter((
|
|
56509
|
+
const x = e ? k.filter((E) => E.id === e) : v === bx && !s ? k.filter((E) => E.id === Lv) : g ? k : k.filter((E) => E.id !== "TRIGGER"), S = e || b ? null : {
|
|
56512
56510
|
id: "ALL",
|
|
56513
56511
|
name: "全部",
|
|
56514
56512
|
description: "全部分类",
|
|
56515
56513
|
icon: void 0
|
|
56516
56514
|
};
|
|
56517
|
-
l(
|
|
56515
|
+
l(S ? [S, ...x] : x), f(i);
|
|
56518
56516
|
} catch (v) {
|
|
56519
56517
|
if (y !== h.current) return;
|
|
56520
56518
|
console.error("Failed to fetch categories:", v), l(o), f(i);
|
|
@@ -57104,14 +57102,14 @@ function Coe({
|
|
|
57104
57102
|
[d, e == null ? void 0 : e.trigger, u, n]
|
|
57105
57103
|
), m = G(
|
|
57106
57104
|
(k) => {
|
|
57107
|
-
var
|
|
57105
|
+
var E;
|
|
57108
57106
|
if ((d == null ? void 0 : d.mode) !== "edge-insert") return k;
|
|
57109
57107
|
const C = yoe({
|
|
57110
57108
|
edgeContext: d,
|
|
57111
57109
|
nodes: a(),
|
|
57112
57110
|
edges: l(),
|
|
57113
|
-
replacedEdgeId: (
|
|
57114
|
-
}), x = voe(k, C.context),
|
|
57111
|
+
replacedEdgeId: (E = e == null ? void 0 : e.edge) == null ? void 0 : E.id
|
|
57112
|
+
}), x = voe(k, C.context), S = {
|
|
57115
57113
|
scene: u,
|
|
57116
57114
|
page: k.page,
|
|
57117
57115
|
size: k.size,
|
|
@@ -57124,8 +57122,8 @@ function Coe({
|
|
|
57124
57122
|
};
|
|
57125
57123
|
return C.code !== "READY" || x.stats.missingActionSchemaCount > 0 ? console.warn(
|
|
57126
57124
|
`${ZE} edge-insert action intersection incomplete`,
|
|
57127
|
-
|
|
57128
|
-
) : console.info(`${ZE} edge-insert action intersection`,
|
|
57125
|
+
S
|
|
57126
|
+
) : console.info(`${ZE} edge-insert action intersection`, S), x.page;
|
|
57129
57127
|
},
|
|
57130
57128
|
[d, (b = e == null ? void 0 : e.edge) == null ? void 0 : b.id, l, a, u]
|
|
57131
57129
|
), y = G(async () => {
|
|
@@ -57179,14 +57177,14 @@ const koe = ({
|
|
|
57179
57177
|
if (A === Ve.AI_TOOL) return "tool";
|
|
57180
57178
|
if (A === Ve.AI_LANGUAGE_MODEL) return "model";
|
|
57181
57179
|
if (A === Ve.AI_MEMORY) return "memory";
|
|
57182
|
-
}, [o == null ? void 0 : o.protocol]),
|
|
57180
|
+
}, [o == null ? void 0 : o.protocol]), E = ((o == null ? void 0 : o.protocol) === Ve.MCP_SERVER || (o == null ? void 0 : o.protocol) === Ve.BUILTIN_MCP) && !l, _ = le(() => c === "ALL" ? null : t.find((A) => A.id === c) || null, [c, t]), D = G(
|
|
57183
57181
|
(A, N = 1) => {
|
|
57184
57182
|
var F;
|
|
57185
57183
|
return {
|
|
57186
|
-
app_domain_category: l ? void 0 :
|
|
57184
|
+
app_domain_category: l ? void 0 : E ? Lv : A && A !== "ALL" ? A : void 0,
|
|
57187
57185
|
categoryName: (F = t.find((L) => L.id === A)) == null ? void 0 : F.categoryName,
|
|
57188
57186
|
page: N,
|
|
57189
|
-
size:
|
|
57187
|
+
size: E ? NB : s,
|
|
57190
57188
|
trigger: !!w,
|
|
57191
57189
|
type: x,
|
|
57192
57190
|
protocol: C,
|
|
@@ -57196,7 +57194,7 @@ const koe = ({
|
|
|
57196
57194
|
[
|
|
57197
57195
|
s,
|
|
57198
57196
|
t,
|
|
57199
|
-
|
|
57197
|
+
E,
|
|
57200
57198
|
w,
|
|
57201
57199
|
x,
|
|
57202
57200
|
C,
|
|
@@ -57332,7 +57330,7 @@ const koe = ({
|
|
|
57332
57330
|
onSearch: n,
|
|
57333
57331
|
onFetchCategories: r,
|
|
57334
57332
|
onFetchNodesByCategory: o
|
|
57335
|
-
}), { categories:
|
|
57333
|
+
}), { categories: S, categoriesReady: E, isLoadingCategories: _ } = Kre({
|
|
57336
57334
|
onFetchCategories: k,
|
|
57337
57335
|
restrictToCategory: i,
|
|
57338
57336
|
nodeSelectorVisible: f,
|
|
@@ -57353,8 +57351,8 @@ const koe = ({
|
|
|
57353
57351
|
activeCategoryId: z,
|
|
57354
57352
|
currentCategory: q
|
|
57355
57353
|
} = koe({
|
|
57356
|
-
categories:
|
|
57357
|
-
categoriesReady:
|
|
57354
|
+
categories: S,
|
|
57355
|
+
categoriesReady: E,
|
|
57358
57356
|
initialCategory: e,
|
|
57359
57357
|
nodeSelectorVisible: f,
|
|
57360
57358
|
nodeAddInfo: g,
|
|
@@ -57516,7 +57514,7 @@ const koe = ({
|
|
|
57516
57514
|
h();
|
|
57517
57515
|
}
|
|
57518
57516
|
}, s);
|
|
57519
|
-
const Ze = !
|
|
57517
|
+
const Ze = !E || _ || !D && L, pt = () => O || ne.length === 0 && Ze || L ? /* @__PURE__ */ p("div", { className: "node-card-list", "aria-busy": "true", "aria-live": "polite", children: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((ke) => /* @__PURE__ */ P(
|
|
57520
57518
|
"div",
|
|
57521
57519
|
{
|
|
57522
57520
|
className: "node-card-skeleton",
|
|
@@ -57584,7 +57582,7 @@ const koe = ({
|
|
|
57584
57582
|
/* @__PURE__ */ p(
|
|
57585
57583
|
zre,
|
|
57586
57584
|
{
|
|
57587
|
-
categories:
|
|
57585
|
+
categories: S,
|
|
57588
57586
|
activeId: z || "ALL",
|
|
57589
57587
|
loading: _,
|
|
57590
57588
|
onChange: Le
|
|
@@ -57756,18 +57754,18 @@ const koe = ({
|
|
|
57756
57754
|
message: `参数 "${I}" 不能为空`
|
|
57757
57755
|
});
|
|
57758
57756
|
}), u(B), B.length === 0;
|
|
57759
|
-
}, [i, g, t == null ? void 0 : t.input]),
|
|
57757
|
+
}, [i, g, t == null ? void 0 : t.input]), S = G(() => {
|
|
57760
57758
|
u([]);
|
|
57761
57759
|
}, []);
|
|
57762
57760
|
jn(
|
|
57763
57761
|
o,
|
|
57764
57762
|
() => ({
|
|
57765
57763
|
validate: x,
|
|
57766
|
-
clearErrors:
|
|
57764
|
+
clearErrors: S
|
|
57767
57765
|
}),
|
|
57768
|
-
[x,
|
|
57766
|
+
[x, S]
|
|
57769
57767
|
);
|
|
57770
|
-
const
|
|
57768
|
+
const E = () => {
|
|
57771
57769
|
var B;
|
|
57772
57770
|
return (B = c.find((I) => I.type === "flow")) == null ? void 0 : B.message;
|
|
57773
57771
|
}, _ = (B) => {
|
|
@@ -57821,7 +57819,7 @@ const koe = ({
|
|
|
57821
57819
|
] }) : /* @__PURE__ */ P("div", { className: `${It["configSubflow-hintMessage"]} ${It.warning}`, children: [
|
|
57822
57820
|
/* @__PURE__ */ p(l0, {}),
|
|
57823
57821
|
/* @__PURE__ */ p("span", { children: "请先选择子流程" })
|
|
57824
|
-
] }), O =
|
|
57822
|
+
] }), O = E();
|
|
57825
57823
|
return /* @__PURE__ */ P("div", { className: It["configSubflow-container"], children: [
|
|
57826
57824
|
/* @__PURE__ */ P("div", { className: It["configSubflow-selectSection"], children: [
|
|
57827
57825
|
/* @__PURE__ */ p("div", { className: It["configSubflow-selectWrapper"], children: /* @__PURE__ */ p(
|
|
@@ -58844,11 +58842,11 @@ class t0 {
|
|
|
58844
58842
|
isBottom: k,
|
|
58845
58843
|
maxScroll: C,
|
|
58846
58844
|
minScroll: x
|
|
58847
|
-
} = ZI(y),
|
|
58848
|
-
x: Math.min(v === ct.Right ?
|
|
58849
|
-
y: Math.min(v === ct.Down ?
|
|
58845
|
+
} = ZI(y), S = lie(y), E = {
|
|
58846
|
+
x: Math.min(v === ct.Right ? S.right - S.width / 2 : S.right, Math.max(v === ct.Right ? S.left : S.left + S.width / 2, d.x)),
|
|
58847
|
+
y: Math.min(v === ct.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(v === ct.Down ? S.top : S.top + S.height / 2, d.y))
|
|
58850
58848
|
}, _ = v === ct.Right && !w || v === ct.Left && !b, D = v === ct.Down && !k || v === ct.Up && !g;
|
|
58851
|
-
if (_ &&
|
|
58849
|
+
if (_ && E.x !== d.x) {
|
|
58852
58850
|
const T = y.scrollLeft + f.x, O = v === ct.Right && T <= C.x || v === ct.Left && T >= x.x;
|
|
58853
58851
|
if (O && !f.y) {
|
|
58854
58852
|
y.scrollTo({
|
|
@@ -58862,7 +58860,7 @@ class t0 {
|
|
|
58862
58860
|
behavior: a
|
|
58863
58861
|
});
|
|
58864
58862
|
break;
|
|
58865
|
-
} else if (D &&
|
|
58863
|
+
} else if (D && E.y !== d.y) {
|
|
58866
58864
|
const T = y.scrollTop + f.y, O = v === ct.Down && T <= C.y || v === ct.Up && T >= x.y;
|
|
58867
58865
|
if (O && !f.x) {
|
|
58868
58866
|
y.scrollTo({
|
|
@@ -59195,8 +59193,8 @@ function bie(t) {
|
|
|
59195
59193
|
const x = b.current;
|
|
59196
59194
|
if (!x)
|
|
59197
59195
|
return;
|
|
59198
|
-
const
|
|
59199
|
-
x.scrollBy(
|
|
59196
|
+
const S = v.current.x * g.current.x, E = v.current.y * g.current.y;
|
|
59197
|
+
x.scrollBy(S, E);
|
|
59200
59198
|
}, []), C = le(() => a === kf.TreeOrder ? [...c].reverse() : c, [a, c]);
|
|
59201
59199
|
pe(
|
|
59202
59200
|
() => {
|
|
@@ -59207,13 +59205,13 @@ function bie(t) {
|
|
|
59207
59205
|
for (const x of C) {
|
|
59208
59206
|
if ((r == null ? void 0 : r(x)) === !1)
|
|
59209
59207
|
continue;
|
|
59210
|
-
const
|
|
59211
|
-
if (!
|
|
59208
|
+
const S = c.indexOf(x), E = u[S];
|
|
59209
|
+
if (!E)
|
|
59212
59210
|
continue;
|
|
59213
59211
|
const {
|
|
59214
59212
|
direction: _,
|
|
59215
59213
|
speed: D
|
|
59216
|
-
} = aie(x,
|
|
59214
|
+
} = aie(x, E, w, e, f);
|
|
59217
59215
|
for (const T of ["x", "y"])
|
|
59218
59216
|
h[T][_[T]] || (D[T] = 0, _[T] = 0);
|
|
59219
59217
|
if (D.x > 0 || D.y > 0) {
|
|
@@ -59924,25 +59922,25 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
59924
59922
|
} = e;
|
|
59925
59923
|
const y = tc(Vie, void 0, Hie), [v, g] = y, [w, b] = Hoe(), [k, C] = re(Vo.Uninitialized), x = k === Vo.Initialized, {
|
|
59926
59924
|
draggable: {
|
|
59927
|
-
active:
|
|
59928
|
-
nodes:
|
|
59925
|
+
active: S,
|
|
59926
|
+
nodes: E,
|
|
59929
59927
|
translate: _
|
|
59930
59928
|
},
|
|
59931
59929
|
droppable: {
|
|
59932
59930
|
containers: D
|
|
59933
59931
|
}
|
|
59934
|
-
} = v, T =
|
|
59932
|
+
} = v, T = S != null ? E.get(S) : null, O = ge({
|
|
59935
59933
|
initial: null,
|
|
59936
59934
|
translated: null
|
|
59937
59935
|
}), B = le(() => {
|
|
59938
59936
|
var Qt;
|
|
59939
|
-
return
|
|
59940
|
-
id:
|
|
59937
|
+
return S != null ? {
|
|
59938
|
+
id: S,
|
|
59941
59939
|
// It's possible for the active node to unmount while dragging
|
|
59942
59940
|
data: (Qt = T == null ? void 0 : T.data) != null ? Qt : Lie,
|
|
59943
59941
|
rect: O
|
|
59944
59942
|
} : null;
|
|
59945
|
-
}, [
|
|
59943
|
+
}, [S, T]), I = ge(null), [A, N] = re(null), [F, L] = re(null), $ = Jl(m, Object.values(m)), Y = Dc("DndDescribedBy", s), Z = le(() => D.getEnabled(), [D]), Q = Uie(f), {
|
|
59946
59944
|
droppableRects: M,
|
|
59947
59945
|
measureDroppableContainers: z,
|
|
59948
59946
|
measuringScheduled: q
|
|
@@ -59950,9 +59948,9 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
59950
59948
|
dragging: x,
|
|
59951
59949
|
dependencies: [_.x, _.y],
|
|
59952
59950
|
config: Q.droppable
|
|
59953
|
-
}), te = xie(
|
|
59951
|
+
}), te = xie(E, S), se = le(() => F ? qw(F) : null, [F]), we = Ch(), V = Die(te, Q.draggable.measure);
|
|
59954
59952
|
qie({
|
|
59955
|
-
activeNode:
|
|
59953
|
+
activeNode: S != null ? E.get(S) : null,
|
|
59956
59954
|
config: we.layoutShiftCompensation,
|
|
59957
59955
|
initialRect: V,
|
|
59958
59956
|
measure: Q.draggable.measure
|
|
@@ -59964,7 +59962,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
59964
59962
|
collisionRect: null,
|
|
59965
59963
|
collisions: null,
|
|
59966
59964
|
droppableRects: M,
|
|
59967
|
-
draggableNodes:
|
|
59965
|
+
draggableNodes: E,
|
|
59968
59966
|
draggingNode: null,
|
|
59969
59967
|
draggingNodeRect: null,
|
|
59970
59968
|
droppableContainers: D,
|
|
@@ -60004,7 +60002,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60004
60002
|
} = sn;
|
|
60005
60003
|
if (I.current == null)
|
|
60006
60004
|
return;
|
|
60007
|
-
const Sn =
|
|
60005
|
+
const Sn = E.get(I.current);
|
|
60008
60006
|
if (!Sn)
|
|
60009
60007
|
return;
|
|
60010
60008
|
const pn = Qt.nativeEvent, qn = new En({
|
|
@@ -60016,7 +60014,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60016
60014
|
// otherwise they are frozen in time with the stale arguments
|
|
60017
60015
|
context: X,
|
|
60018
60016
|
onAbort(Se) {
|
|
60019
|
-
if (!
|
|
60017
|
+
if (!E.get(Se))
|
|
60020
60018
|
return;
|
|
60021
60019
|
const {
|
|
60022
60020
|
onDragAbort: Ye
|
|
@@ -60029,7 +60027,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60029
60027
|
});
|
|
60030
60028
|
},
|
|
60031
60029
|
onPending(Se, We, Ye, et) {
|
|
60032
|
-
if (!
|
|
60030
|
+
if (!E.get(Se))
|
|
60033
60031
|
return;
|
|
60034
60032
|
const {
|
|
60035
60033
|
onDragPending: Gn
|
|
@@ -60048,7 +60046,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60048
60046
|
const We = I.current;
|
|
60049
60047
|
if (We == null)
|
|
60050
60048
|
return;
|
|
60051
|
-
const Ye =
|
|
60049
|
+
const Ye = E.get(We);
|
|
60052
60050
|
if (!Ye)
|
|
60053
60051
|
return;
|
|
60054
60052
|
const {
|
|
@@ -60120,9 +60118,9 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60120
60118
|
}
|
|
60121
60119
|
},
|
|
60122
60120
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60123
|
-
[
|
|
60121
|
+
[E]
|
|
60124
60122
|
), cs = G((Qt, sn) => (En, jr) => {
|
|
60125
|
-
const Sn = En.nativeEvent, pn =
|
|
60123
|
+
const Sn = En.nativeEvent, pn = E.get(jr);
|
|
60126
60124
|
if (
|
|
60127
60125
|
// Another sensor is already instantiating
|
|
60128
60126
|
I.current !== null || // No active draggable
|
|
@@ -60136,7 +60134,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60136
60134
|
Qt(En, sn.options, qn) === !0 && (Sn.dndKit = {
|
|
60137
60135
|
capturedBy: sn.sensor
|
|
60138
60136
|
}, I.current = jr, Vr(En, sn));
|
|
60139
|
-
}, [
|
|
60137
|
+
}, [E, Vr]), _c = Eie(u, cs);
|
|
60140
60138
|
Bie(u), so(() => {
|
|
60141
60139
|
U && k === Vo.Initializing && C(Vo.Initialized);
|
|
60142
60140
|
}, [U, k]), pe(
|
|
@@ -60215,7 +60213,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60215
60213
|
collisionRect: qe,
|
|
60216
60214
|
collisions: rt,
|
|
60217
60215
|
droppableRects: M,
|
|
60218
|
-
draggableNodes:
|
|
60216
|
+
draggableNodes: E,
|
|
60219
60217
|
draggingNode: de,
|
|
60220
60218
|
draggingNodeRect: me,
|
|
60221
60219
|
droppableContainers: D,
|
|
@@ -60226,7 +60224,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60226
60224
|
initial: me,
|
|
60227
60225
|
translated: qe
|
|
60228
60226
|
};
|
|
60229
|
-
}, [B, te, rt, qe,
|
|
60227
|
+
}, [B, te, rt, qe, E, de, me, M, D, Un, Ie, Me]), bie({
|
|
60230
60228
|
...we,
|
|
60231
60229
|
delta: _,
|
|
60232
60230
|
draggingRect: qe,
|
|
@@ -60242,7 +60240,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60242
60240
|
collisions: rt,
|
|
60243
60241
|
containerNodeRect: W,
|
|
60244
60242
|
dragOverlay: ee,
|
|
60245
|
-
draggableNodes:
|
|
60243
|
+
draggableNodes: E,
|
|
60246
60244
|
droppableContainers: D,
|
|
60247
60245
|
droppableRects: M,
|
|
60248
60246
|
over: Un,
|
|
@@ -60252,7 +60250,7 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60252
60250
|
measuringConfiguration: Q,
|
|
60253
60251
|
measuringScheduled: q,
|
|
60254
60252
|
windowRect: he
|
|
60255
|
-
}), [B, te, U, F, rt, W, ee,
|
|
60253
|
+
}), [B, te, U, F, rt, W, ee, E, D, M, Un, z, Ie, Le, Q, q, he]), bh = le(() => ({
|
|
60256
60254
|
activatorEvent: F,
|
|
60257
60255
|
activators: _c,
|
|
60258
60256
|
active: B,
|
|
@@ -60261,10 +60259,10 @@ const Gie = /* @__PURE__ */ Pr(function(e) {
|
|
|
60261
60259
|
draggable: Y
|
|
60262
60260
|
},
|
|
60263
60261
|
dispatch: g,
|
|
60264
|
-
draggableNodes:
|
|
60262
|
+
draggableNodes: E,
|
|
60265
60263
|
over: Un,
|
|
60266
60264
|
measureDroppableContainers: z
|
|
60267
|
-
}), [F, _c, B, U, g, Y,
|
|
60265
|
+
}), [F, _c, B, U, g, Y, E, Un, z]);
|
|
60268
60266
|
return Pe.createElement(WI.Provider, {
|
|
60269
60267
|
value: b
|
|
60270
60268
|
}, Pe.createElement(yh.Provider, {
|
|
@@ -60308,14 +60306,14 @@ function Xie(t) {
|
|
|
60308
60306
|
role: h = pS,
|
|
60309
60307
|
roleDescription: m = "draggable",
|
|
60310
60308
|
tabIndex: y = 0
|
|
60311
|
-
} = o ?? {}, v = (l == null ? void 0 : l.id) === e, g = wt(v ? iR : Kie), [w, b] = bf(), [k, C] = bf(), x = Iie(s, e),
|
|
60309
|
+
} = o ?? {}, v = (l == null ? void 0 : l.id) === e, g = wt(v ? iR : Kie), [w, b] = bf(), [k, C] = bf(), x = Iie(s, e), S = Jl(n);
|
|
60312
60310
|
so(
|
|
60313
60311
|
() => (d.set(e, {
|
|
60314
60312
|
id: e,
|
|
60315
60313
|
key: i,
|
|
60316
60314
|
node: w,
|
|
60317
60315
|
activatorNode: k,
|
|
60318
|
-
data:
|
|
60316
|
+
data: S
|
|
60319
60317
|
}), () => {
|
|
60320
60318
|
const _ = d.get(e);
|
|
60321
60319
|
_ && _.key === i && d.delete(e);
|
|
@@ -60323,7 +60321,7 @@ function Xie(t) {
|
|
|
60323
60321
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60324
60322
|
[d, e]
|
|
60325
60323
|
);
|
|
60326
|
-
const
|
|
60324
|
+
const E = le(() => ({
|
|
60327
60325
|
role: h,
|
|
60328
60326
|
tabIndex: y,
|
|
60329
60327
|
"aria-disabled": r,
|
|
@@ -60335,7 +60333,7 @@ function Xie(t) {
|
|
|
60335
60333
|
active: l,
|
|
60336
60334
|
activatorEvent: a,
|
|
60337
60335
|
activeNodeRect: c,
|
|
60338
|
-
attributes:
|
|
60336
|
+
attributes: E,
|
|
60339
60337
|
isDragging: v,
|
|
60340
60338
|
listeners: r ? void 0 : x,
|
|
60341
60339
|
node: w,
|
|
@@ -60387,9 +60385,9 @@ function ese(t) {
|
|
|
60387
60385
|
), b = wh({
|
|
60388
60386
|
callback: w,
|
|
60389
60387
|
disabled: m || !s
|
|
60390
|
-
}), k = G((
|
|
60391
|
-
b && (_ && (b.unobserve(_), d.current = !1),
|
|
60392
|
-
}, [b]), [C, x] = bf(k),
|
|
60388
|
+
}), k = G((E, _) => {
|
|
60389
|
+
b && (_ && (b.unobserve(_), d.current = !1), E && b.observe(E));
|
|
60390
|
+
}, [b]), [C, x] = bf(k), S = Jl(e);
|
|
60393
60391
|
return pe(() => {
|
|
60394
60392
|
!b || !C.current || (b.disconnect(), d.current = !1, b.observe(C.current));
|
|
60395
60393
|
}, [C, b]), pe(
|
|
@@ -60401,7 +60399,7 @@ function ese(t) {
|
|
|
60401
60399
|
disabled: n,
|
|
60402
60400
|
node: C,
|
|
60403
60401
|
rect: f,
|
|
60404
|
-
data:
|
|
60402
|
+
data: S
|
|
60405
60403
|
}
|
|
60406
60404
|
}), () => a({
|
|
60407
60405
|
type: Gt.UnregisterDroppable,
|
|
@@ -60662,8 +60660,8 @@ function pse(t) {
|
|
|
60662
60660
|
},
|
|
60663
60661
|
...o
|
|
60664
60662
|
}), [d, o, k, u]), x = le(() => u.slice(u.indexOf(s)), [u, s]), {
|
|
60665
|
-
rect:
|
|
60666
|
-
node:
|
|
60663
|
+
rect: S,
|
|
60664
|
+
node: E,
|
|
60667
60665
|
isOver: _,
|
|
60668
60666
|
setNodeRef: D
|
|
60669
60667
|
} = ese({
|
|
@@ -60725,8 +60723,8 @@ function pse(t) {
|
|
|
60725
60723
|
}), ne = hse({
|
|
60726
60724
|
disabled: !X,
|
|
60727
60725
|
index: k,
|
|
60728
|
-
node:
|
|
60729
|
-
rect:
|
|
60726
|
+
node: E,
|
|
60727
|
+
rect: S
|
|
60730
60728
|
});
|
|
60731
60729
|
return pe(() => {
|
|
60732
60730
|
Q && U.current.newIndex !== we && (U.current.newIndex = we), d !== U.current.containerId && (U.current.containerId = d), u !== U.current.items && (U.current.items = u);
|
|
@@ -60746,7 +60744,7 @@ function pse(t) {
|
|
|
60746
60744
|
activeIndex: f,
|
|
60747
60745
|
attributes: I,
|
|
60748
60746
|
data: C,
|
|
60749
|
-
rect:
|
|
60747
|
+
rect: S,
|
|
60750
60748
|
index: k,
|
|
60751
60749
|
newIndex: we,
|
|
60752
60750
|
items: u,
|
|
@@ -60754,7 +60752,7 @@ function pse(t) {
|
|
|
60754
60752
|
isSorting: Q,
|
|
60755
60753
|
isDragging: F,
|
|
60756
60754
|
listeners: N,
|
|
60757
|
-
node:
|
|
60755
|
+
node: E,
|
|
60758
60756
|
overIndex: v,
|
|
60759
60757
|
over: L,
|
|
60760
60758
|
setNodeRef: Z,
|
|
@@ -60839,7 +60837,7 @@ const gse = [ct.Down, ct.Right, ct.Up, ct.Left], wse = (t, e) => {
|
|
|
60839
60837
|
if (u === (s == null ? void 0 : s.id) && c.length > 1 && (u = c[1].id), u != null) {
|
|
60840
60838
|
const d = i.get(n.id), f = i.get(u), h = f ? o.get(f.id) : null, m = f == null ? void 0 : f.node.current;
|
|
60841
60839
|
if (m && h && d && f) {
|
|
60842
|
-
const v = gh(m).some((x,
|
|
60840
|
+
const v = gh(m).some((x, S) => a[S] !== x), g = uR(d, f), w = yse(d, f), b = v || !g ? {
|
|
60843
60841
|
x: 0,
|
|
60844
60842
|
y: 0
|
|
60845
60843
|
} : {
|
|
@@ -61004,14 +61002,14 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61004
61002
|
} = pse({ id: t.id, disabled: n }), m = {
|
|
61005
61003
|
transform: Zl.Transform.toString(d && { ...d, scaleY: 1 }),
|
|
61006
61004
|
transition: f
|
|
61007
|
-
}, y = ms(o, t.id, "field_path"), v = ms(o, t.id, "rule_type"), g = ms(o, t.id, "severity"), w = ms(o, t.id, "expected_type"), b = ms(o, t.id, "enum_values"), k = ms(o, t.id, "min"), C = o.some((
|
|
61008
|
-
const _ =
|
|
61005
|
+
}, y = ms(o, t.id, "field_path"), v = ms(o, t.id, "rule_type"), g = ms(o, t.id, "severity"), w = ms(o, t.id, "expected_type"), b = ms(o, t.id, "enum_values"), k = ms(o, t.id, "min"), C = o.some((E) => E.ruleId === t.id), x = (E) => {
|
|
61006
|
+
const _ = E.map((D) => {
|
|
61009
61007
|
const T = Number(D);
|
|
61010
61008
|
return !isNaN(T) && D.trim() !== "" ? T : D;
|
|
61011
61009
|
});
|
|
61012
61010
|
i(t.id, { enum_values: _ });
|
|
61013
|
-
},
|
|
61014
|
-
var
|
|
61011
|
+
}, S = () => {
|
|
61012
|
+
var E;
|
|
61015
61013
|
switch (t.rule_type) {
|
|
61016
61014
|
case Ut.TYPE:
|
|
61017
61015
|
return /* @__PURE__ */ P("div", { className: Ge["multiRowGuard-formItem"], children: [
|
|
@@ -61037,7 +61035,7 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61037
61035
|
at,
|
|
61038
61036
|
{
|
|
61039
61037
|
mode: "tags",
|
|
61040
|
-
value: ((
|
|
61038
|
+
value: ((E = t.enum_values) == null ? void 0 : E.map(String)) ?? [],
|
|
61041
61039
|
onChange: x,
|
|
61042
61040
|
placeholder: "输入枚举值后按回车添加",
|
|
61043
61041
|
style: { width: "100%" },
|
|
@@ -61126,7 +61124,7 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61126
61124
|
hr,
|
|
61127
61125
|
{
|
|
61128
61126
|
value: t.field_path,
|
|
61129
|
-
onChange: (
|
|
61127
|
+
onChange: (E) => i(t.id, { field_path: E }),
|
|
61130
61128
|
placeholder: "如:data.order_id",
|
|
61131
61129
|
disabled: n,
|
|
61132
61130
|
nodeId: r,
|
|
@@ -61142,9 +61140,9 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61142
61140
|
at,
|
|
61143
61141
|
{
|
|
61144
61142
|
value: t.rule_type,
|
|
61145
|
-
onChange: (
|
|
61146
|
-
const _ = { rule_type:
|
|
61147
|
-
|
|
61143
|
+
onChange: (E) => {
|
|
61144
|
+
const _ = { rule_type: E };
|
|
61145
|
+
E !== Ut.TYPE && (_.expected_type = void 0), E !== Ut.ENUM && (_.enum_values = void 0), E !== Ut.RANGE && (_.min = void 0, _.max = void 0), i(t.id, _);
|
|
61148
61146
|
},
|
|
61149
61147
|
options: kse,
|
|
61150
61148
|
style: { width: "100%" },
|
|
@@ -61155,7 +61153,7 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61155
61153
|
v && /* @__PURE__ */ p("div", { className: Ge["multiRowGuard-errorText"], children: v })
|
|
61156
61154
|
] })
|
|
61157
61155
|
] }),
|
|
61158
|
-
t.rule_type !== Ut.REQUIRED && /* @__PURE__ */ p("div", { className: Ge["multiRowGuard-extraFields"], children:
|
|
61156
|
+
t.rule_type !== Ut.REQUIRED && /* @__PURE__ */ p("div", { className: Ge["multiRowGuard-extraFields"], children: S() }),
|
|
61159
61157
|
/* @__PURE__ */ P("div", { className: Ge["multiRowGuard-formRow"], children: [
|
|
61160
61158
|
/* @__PURE__ */ P("div", { className: Ge["multiRowGuard-formItem"], children: [
|
|
61161
61159
|
/* @__PURE__ */ p("span", { className: `${Ge["multiRowGuard-formLabel"]} ${Ge.required}`, children: "失败处理方式" }),
|
|
@@ -61163,7 +61161,7 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61163
61161
|
at,
|
|
61164
61162
|
{
|
|
61165
61163
|
value: t.severity,
|
|
61166
|
-
onChange: (
|
|
61164
|
+
onChange: (E) => i(t.id, { severity: E }),
|
|
61167
61165
|
options: xse,
|
|
61168
61166
|
style: { width: "100%" },
|
|
61169
61167
|
disabled: n,
|
|
@@ -61178,7 +61176,7 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61178
61176
|
hr,
|
|
61179
61177
|
{
|
|
61180
61178
|
value: t.message,
|
|
61181
|
-
onChange: (
|
|
61179
|
+
onChange: (E) => i(t.id, { message: E }),
|
|
61182
61180
|
placeholder: "自定义错误提示信息(可选)",
|
|
61183
61181
|
disabled: n,
|
|
61184
61182
|
nodeId: r,
|
|
@@ -61251,7 +61249,7 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61251
61249
|
s(k), h(k);
|
|
61252
61250
|
const C = Object.keys(b);
|
|
61253
61251
|
l(
|
|
61254
|
-
(x) => x.filter((
|
|
61252
|
+
(x) => x.filter((S) => !(S.ruleId === w && C.includes(S.field)))
|
|
61255
61253
|
);
|
|
61256
61254
|
},
|
|
61257
61255
|
[i, h]
|
|
@@ -61259,8 +61257,8 @@ const vse = "_isDragging_efwb8_17", bse = "_hasError_efwb8_23", Cse = "_required
|
|
|
61259
61257
|
(w) => {
|
|
61260
61258
|
const { active: b, over: k } = w;
|
|
61261
61259
|
if (k && b.id !== k.id) {
|
|
61262
|
-
const C = i.findIndex((
|
|
61263
|
-
s(
|
|
61260
|
+
const C = i.findIndex((E) => E.id === b.id), x = i.findIndex((E) => E.id === k.id), S = o0(i, C, x);
|
|
61261
|
+
s(S), h(S);
|
|
61264
61262
|
}
|
|
61265
61263
|
},
|
|
61266
61264
|
[i, h]
|
|
@@ -62033,23 +62031,23 @@ function ele(t) {
|
|
|
62033
62031
|
context: s = {},
|
|
62034
62032
|
transform: a
|
|
62035
62033
|
} = t, [l, c] = re(o), [u, d] = re(!1), [f, h] = re(), m = ge(/* @__PURE__ */ new Map()), y = (x) => !x || x.kind === "static" ? [] : x.deps || [], v = le(() => e ? JSON.stringify(e) : "null", [e]), g = le(() => {
|
|
62036
|
-
const
|
|
62037
|
-
return JSON.stringify(
|
|
62034
|
+
const S = y(e).map((E) => dr(r, E));
|
|
62035
|
+
return JSON.stringify(S);
|
|
62038
62036
|
}, [e, r]), w = (x) => x.cacheKey ? x.cacheKey : `${x.action}:${g}`, b = (x) => {
|
|
62039
62037
|
if (!x.cache) return;
|
|
62040
|
-
const
|
|
62041
|
-
if (
|
|
62042
|
-
if (x.cacheTTL && Date.now() -
|
|
62043
|
-
m.current.delete(
|
|
62038
|
+
const S = w(x), E = m.current.get(S);
|
|
62039
|
+
if (E) {
|
|
62040
|
+
if (x.cacheTTL && Date.now() - E.timestamp > x.cacheTTL) {
|
|
62041
|
+
m.current.delete(S);
|
|
62044
62042
|
return;
|
|
62045
62043
|
}
|
|
62046
|
-
return
|
|
62044
|
+
return E.data;
|
|
62047
62045
|
}
|
|
62048
|
-
}, k = (x,
|
|
62046
|
+
}, k = (x, S) => {
|
|
62049
62047
|
if (!x.cache) return;
|
|
62050
|
-
const
|
|
62051
|
-
m.current.set(
|
|
62052
|
-
data:
|
|
62048
|
+
const E = w(x);
|
|
62049
|
+
m.current.set(E, {
|
|
62050
|
+
data: S,
|
|
62053
62051
|
timestamp: Date.now()
|
|
62054
62052
|
});
|
|
62055
62053
|
}, C = () => {
|
|
@@ -62062,9 +62060,9 @@ function ele(t) {
|
|
|
62062
62060
|
c(B);
|
|
62063
62061
|
return;
|
|
62064
62062
|
}
|
|
62065
|
-
const x = e,
|
|
62066
|
-
if (
|
|
62067
|
-
c(
|
|
62063
|
+
const x = e, S = b(x);
|
|
62064
|
+
if (S !== void 0) {
|
|
62065
|
+
c(S);
|
|
62068
62066
|
return;
|
|
62069
62067
|
}
|
|
62070
62068
|
if (!n) {
|
|
@@ -62184,4 +62182,4 @@ export {
|
|
|
62184
62182
|
E4 as y,
|
|
62185
62183
|
lz as z
|
|
62186
62184
|
};
|
|
62187
|
-
//# sourceMappingURL=index-
|
|
62185
|
+
//# sourceMappingURL=index-BmQBE_IZ.mjs.map
|