@kestra-io/ui-libs 0.0.211 → 0.0.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/misc/Collapsible.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +12 -12
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +834 -826
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/misc/Collapsible.vue +15 -1
package/dist/kestra-index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import js, { Document as zs, YAMLMap as pr } from "yaml";
|
|
2
2
|
import { g as Up, e as Hp, d as Gp, r as Bp, a as Wp, f as mf, b as jp, c as zp, h as Kp, u as Yp, i as Xp, j as Zp, k as Jp, l as Qp, m as em, n as tm, s as nm, p as rm, o as im, q as am, t as gf, v as om, w as sm, x as Ks, y as Ys, z as lm, A as um, B as vn, C as vf, D as us, E as cm, F as Wn, G as dm, H as cs, I as ds, J as He, K as jn, L as zn, M as _n, N as Vt, O as fs, P as Kn, Q as hs, R as fm, S as _f, T as ps, U as hm, V as Ut, W as yf, X as pm, Y as Ef, Z as mm, _ as gm, $ as bf, a0 as ms, a1 as vm, a2 as _m, a3 as ym, a4 as Yn, a5 as Em, a6 as bm, a7 as Cm, a8 as wm, a9 as Sm, aa as km, ab as Cf, ac as Lm, ad as Tm, ae as Om } from "./FlowYamlUtils-B2iMnYvW.js";
|
|
3
|
-
import { createElementBlock as L, openBlock as E, mergeProps as ae, createElementVNode as O, createCommentVNode as M, toDisplayString as z, getCurrentInstance as tn, inject as Nm, ref as ve, shallowRef as An, computed as
|
|
3
|
+
import { createElementBlock as L, openBlock as E, mergeProps as ae, createElementVNode as O, createCommentVNode as M, toDisplayString as z, getCurrentInstance as tn, inject as Nm, ref as ve, shallowRef as An, computed as ce, watch as st, onMounted as yn, onUnmounted as wf, defineComponent as Re, h as nn, createVNode as K, Text as dn, Fragment as Me, nextTick as Xn, onBeforeUnmount as Sf, renderSlot as ye, createTextVNode as Et, normalizeClass as ge, createBlock as ue, withCtx as te, normalizeStyle as fn, unref as W, toRef as Xs, resolveComponent as Rn, effectScope as Im, reactive as kf, resolveDynamicComponent as Ht, renderList as _t, createSlots as Lf, normalizeProps as Am, guardReactiveProps as Rm, withModifiers as Tf, withAsyncContext as Zs, toRaw as Dm, defineAsyncComponent as Pm, Comment as Mm, Suspense as $m } from "vue";
|
|
4
4
|
import xm from "humanize-duration";
|
|
5
5
|
import cn from "moment";
|
|
6
6
|
import qm from "moment-timezone";
|
|
@@ -200,8 +200,8 @@ function zm() {
|
|
|
200
200
|
function e(t) {
|
|
201
201
|
return function(n, r, i) {
|
|
202
202
|
for (var a = -1, o = Object(n), s = i(n), l = s.length; l--; ) {
|
|
203
|
-
var
|
|
204
|
-
if (r(o[
|
|
203
|
+
var c = s[t ? l : ++a];
|
|
204
|
+
if (r(o[c], c, o) === !1)
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
207
|
return n;
|
|
@@ -283,7 +283,7 @@ function If() {
|
|
|
283
283
|
if (ll) return wr;
|
|
284
284
|
ll = 1;
|
|
285
285
|
var e = Of(), t = Xm(), n = Nf(), r = 1, i = 2;
|
|
286
|
-
function a(o, s, l,
|
|
286
|
+
function a(o, s, l, c, u, d) {
|
|
287
287
|
var f = l & r, h = o.length, w = s.length;
|
|
288
288
|
if (h != w && !(f && w > h))
|
|
289
289
|
return !1;
|
|
@@ -293,8 +293,8 @@ function If() {
|
|
|
293
293
|
var p = -1, g = !0, y = l & i ? new e() : void 0;
|
|
294
294
|
for (d.set(o, s), d.set(s, o); ++p < h; ) {
|
|
295
295
|
var m = o[p], C = s[p];
|
|
296
|
-
if (
|
|
297
|
-
var S = f ?
|
|
296
|
+
if (c)
|
|
297
|
+
var S = f ? c(C, m, p, s, o, d) : c(m, C, p, o, s, d);
|
|
298
298
|
if (S !== void 0) {
|
|
299
299
|
if (S)
|
|
300
300
|
continue;
|
|
@@ -303,13 +303,13 @@ function If() {
|
|
|
303
303
|
}
|
|
304
304
|
if (y) {
|
|
305
305
|
if (!t(s, function(b, N) {
|
|
306
|
-
if (!n(y, N) && (m === b ||
|
|
306
|
+
if (!n(y, N) && (m === b || u(m, b, l, c, d)))
|
|
307
307
|
return y.push(N);
|
|
308
308
|
})) {
|
|
309
309
|
g = !1;
|
|
310
310
|
break;
|
|
311
311
|
}
|
|
312
|
-
} else if (!(m === C ||
|
|
312
|
+
} else if (!(m === C || u(m, C, l, c, d))) {
|
|
313
313
|
g = !1;
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
@@ -346,7 +346,7 @@ var Lr, dl;
|
|
|
346
346
|
function Jm() {
|
|
347
347
|
if (dl) return Lr;
|
|
348
348
|
dl = 1;
|
|
349
|
-
var e = us(), t = cm(), n = Wn(), r = If(), i = Zm(), a = ys(), o = 1, s = 2, l = "[object Boolean]",
|
|
349
|
+
var e = us(), t = cm(), n = Wn(), r = If(), i = Zm(), a = ys(), o = 1, s = 2, l = "[object Boolean]", c = "[object Date]", u = "[object Error]", d = "[object Map]", f = "[object Number]", h = "[object RegExp]", w = "[object Set]", _ = "[object String]", v = "[object Symbol]", p = "[object ArrayBuffer]", g = "[object DataView]", y = e ? e.prototype : void 0, m = y ? y.valueOf : void 0;
|
|
350
350
|
function C(S, b, N, R, D, B, q) {
|
|
351
351
|
switch (N) {
|
|
352
352
|
case g:
|
|
@@ -356,10 +356,10 @@ function Jm() {
|
|
|
356
356
|
case p:
|
|
357
357
|
return !(S.byteLength != b.byteLength || !B(new t(S), new t(b)));
|
|
358
358
|
case l:
|
|
359
|
-
case
|
|
359
|
+
case c:
|
|
360
360
|
case f:
|
|
361
361
|
return n(+S, +b);
|
|
362
|
-
case
|
|
362
|
+
case u:
|
|
363
363
|
return S.name == b.name && S.message == b.message;
|
|
364
364
|
case h:
|
|
365
365
|
case _:
|
|
@@ -389,7 +389,7 @@ function Qm() {
|
|
|
389
389
|
if (fl) return Tr;
|
|
390
390
|
fl = 1;
|
|
391
391
|
var e = dm(), t = 1, n = Object.prototype, r = n.hasOwnProperty;
|
|
392
|
-
function i(a, o, s, l,
|
|
392
|
+
function i(a, o, s, l, c, u) {
|
|
393
393
|
var d = s & t, f = e(a), h = f.length, w = e(o), _ = w.length;
|
|
394
394
|
if (h != _ && !d)
|
|
395
395
|
return !1;
|
|
@@ -398,17 +398,17 @@ function Qm() {
|
|
|
398
398
|
if (!(d ? p in o : r.call(o, p)))
|
|
399
399
|
return !1;
|
|
400
400
|
}
|
|
401
|
-
var g =
|
|
401
|
+
var g = u.get(a), y = u.get(o);
|
|
402
402
|
if (g && y)
|
|
403
403
|
return g == o && y == a;
|
|
404
404
|
var m = !0;
|
|
405
|
-
|
|
405
|
+
u.set(a, o), u.set(o, a);
|
|
406
406
|
for (var C = d; ++v < h; ) {
|
|
407
407
|
p = f[v];
|
|
408
408
|
var S = a[p], b = o[p];
|
|
409
409
|
if (l)
|
|
410
|
-
var N = d ? l(b, S, p, o, a,
|
|
411
|
-
if (!(N === void 0 ? S === b ||
|
|
410
|
+
var N = d ? l(b, S, p, o, a, u) : l(S, b, p, a, o, u);
|
|
411
|
+
if (!(N === void 0 ? S === b || c(S, b, s, l, u) : N)) {
|
|
412
412
|
m = !1;
|
|
413
413
|
break;
|
|
414
414
|
}
|
|
@@ -418,7 +418,7 @@ function Qm() {
|
|
|
418
418
|
var R = a.constructor, D = o.constructor;
|
|
419
419
|
R != D && "constructor" in a && "constructor" in o && !(typeof R == "function" && R instanceof R && typeof D == "function" && D instanceof D) && (m = !1);
|
|
420
420
|
}
|
|
421
|
-
return
|
|
421
|
+
return u.delete(a), u.delete(o), m;
|
|
422
422
|
}
|
|
423
423
|
return Tr = i, Tr;
|
|
424
424
|
}
|
|
@@ -426,10 +426,10 @@ var Or, hl;
|
|
|
426
426
|
function eg() {
|
|
427
427
|
if (hl) return Or;
|
|
428
428
|
hl = 1;
|
|
429
|
-
var e = cs(), t = If(), n = Jm(), r = Qm(), i = ds(), a = He(), o = jn(), s = zn(), l = 1,
|
|
429
|
+
var e = cs(), t = If(), n = Jm(), r = Qm(), i = ds(), a = He(), o = jn(), s = zn(), l = 1, c = "[object Arguments]", u = "[object Array]", d = "[object Object]", f = Object.prototype, h = f.hasOwnProperty;
|
|
430
430
|
function w(_, v, p, g, y, m) {
|
|
431
|
-
var C = a(_), S = a(v), b = C ?
|
|
432
|
-
b = b ==
|
|
431
|
+
var C = a(_), S = a(v), b = C ? u : i(_), N = S ? u : i(v);
|
|
432
|
+
b = b == c ? d : b, N = N == c ? d : N;
|
|
433
433
|
var R = b == d, D = N == d, B = b == N;
|
|
434
434
|
if (B && o(_)) {
|
|
435
435
|
if (!o(v))
|
|
@@ -465,16 +465,16 @@ function tg() {
|
|
|
465
465
|
ml = 1;
|
|
466
466
|
var e = cs(), t = Af(), n = 1, r = 2;
|
|
467
467
|
function i(a, o, s, l) {
|
|
468
|
-
var
|
|
468
|
+
var c = s.length, u = c, d = !l;
|
|
469
469
|
if (a == null)
|
|
470
|
-
return !
|
|
471
|
-
for (a = Object(a);
|
|
472
|
-
var f = s[
|
|
470
|
+
return !u;
|
|
471
|
+
for (a = Object(a); c--; ) {
|
|
472
|
+
var f = s[c];
|
|
473
473
|
if (d && f[2] ? f[1] !== a[f[0]] : !(f[0] in a))
|
|
474
474
|
return !1;
|
|
475
475
|
}
|
|
476
|
-
for (; ++
|
|
477
|
-
f = s[
|
|
476
|
+
for (; ++c < u; ) {
|
|
477
|
+
f = s[c];
|
|
478
478
|
var h = f[0], w = a[h], _ = f[1];
|
|
479
479
|
if (d && f[2]) {
|
|
480
480
|
if (w === void 0 && !(h in a))
|
|
@@ -574,8 +574,8 @@ function ig() {
|
|
|
574
574
|
var o = arguments, s = i ? i.apply(this, o) : o[0], l = a.cache;
|
|
575
575
|
if (l.has(s))
|
|
576
576
|
return l.get(s);
|
|
577
|
-
var
|
|
578
|
-
return a.cache = l.set(s,
|
|
577
|
+
var c = r.apply(this, o);
|
|
578
|
+
return a.cache = l.set(s, c) || l, c;
|
|
579
579
|
};
|
|
580
580
|
return a.cache = new (n.Cache || e)(), a;
|
|
581
581
|
}
|
|
@@ -600,8 +600,8 @@ function og() {
|
|
|
600
600
|
Sl = 1;
|
|
601
601
|
var e = ag(), t = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, n = /\\(\\)?/g, r = e(function(i) {
|
|
602
602
|
var a = [];
|
|
603
|
-
return i.charCodeAt(0) === 46 && a.push(""), i.replace(t, function(o, s, l,
|
|
604
|
-
a.push(l ?
|
|
603
|
+
return i.charCodeAt(0) === 46 && a.push(""), i.replace(t, function(o, s, l, c) {
|
|
604
|
+
a.push(l ? c.replace(n, "$1") : s || o);
|
|
605
605
|
}), a;
|
|
606
606
|
});
|
|
607
607
|
return Fr = r, Fr;
|
|
@@ -705,15 +705,15 @@ function Mf() {
|
|
|
705
705
|
if (Dl) return Kr;
|
|
706
706
|
Dl = 1;
|
|
707
707
|
var e = Jn(), t = Kn(), n = He(), r = hs(), i = fm(), a = En();
|
|
708
|
-
function o(s, l,
|
|
708
|
+
function o(s, l, c) {
|
|
709
709
|
l = e(l, s);
|
|
710
|
-
for (var
|
|
711
|
-
var h = a(l[
|
|
712
|
-
if (!(f = s != null &&
|
|
710
|
+
for (var u = -1, d = l.length, f = !1; ++u < d; ) {
|
|
711
|
+
var h = a(l[u]);
|
|
712
|
+
if (!(f = s != null && c(s, h)))
|
|
713
713
|
break;
|
|
714
714
|
s = s[h];
|
|
715
715
|
}
|
|
716
|
-
return f || ++
|
|
716
|
+
return f || ++u != d ? f : (d = s == null ? 0 : s.length, !!d && i(d) && r(h, d) && (n(s) || t(s)));
|
|
717
717
|
}
|
|
718
718
|
return Kr = o, Kr;
|
|
719
719
|
}
|
|
@@ -732,13 +732,13 @@ function cg() {
|
|
|
732
732
|
if (Ml) return Xr;
|
|
733
733
|
Ml = 1;
|
|
734
734
|
var e = Af(), t = lg(), n = $f(), r = Es(), i = Rf(), a = Df(), o = En(), s = 1, l = 2;
|
|
735
|
-
function u
|
|
736
|
-
return r(
|
|
737
|
-
var h = t(f,
|
|
738
|
-
return h === void 0 && h === d ? n(f,
|
|
735
|
+
function c(u, d) {
|
|
736
|
+
return r(u) && i(d) ? a(o(u), d) : function(f) {
|
|
737
|
+
var h = t(f, u);
|
|
738
|
+
return h === void 0 && h === d ? n(f, u) : e(d, h, s | l);
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
-
return Xr =
|
|
741
|
+
return Xr = c, Xr;
|
|
742
742
|
}
|
|
743
743
|
var Zr, $l;
|
|
744
744
|
function Gt() {
|
|
@@ -799,8 +799,8 @@ function qf() {
|
|
|
799
799
|
var e = _f(), t = _s(), n = Ct();
|
|
800
800
|
function r(i, a) {
|
|
801
801
|
var o = {};
|
|
802
|
-
return a = n(a, 3), t(i, function(s, l,
|
|
803
|
-
e(o, l, a(s, l,
|
|
802
|
+
return a = n(a, 3), t(i, function(s, l, c) {
|
|
803
|
+
e(o, l, a(s, l, c));
|
|
804
804
|
}), o;
|
|
805
805
|
}
|
|
806
806
|
return ni = r, ni;
|
|
@@ -1229,7 +1229,7 @@ function Av(e, t, n, r, i, a) {
|
|
|
1229
1229
|
], 8, Ov))
|
|
1230
1230
|
], 16, Tv);
|
|
1231
1231
|
}
|
|
1232
|
-
const Bl = /* @__PURE__ */ Q(Lv, [["render", Av]]),
|
|
1232
|
+
const Bl = /* @__PURE__ */ Q(Lv, [["render", Av]]), de = Object.freeze({
|
|
1233
1233
|
CREATED: {
|
|
1234
1234
|
name: "CREATED",
|
|
1235
1235
|
color: "#1761FD",
|
|
@@ -1368,89 +1368,89 @@ const Bl = /* @__PURE__ */ Q(Lv, [["render", Av]]), ce = Object.freeze({
|
|
|
1368
1368
|
});
|
|
1369
1369
|
class qe {
|
|
1370
1370
|
static get CREATED() {
|
|
1371
|
-
return
|
|
1371
|
+
return de.CREATED.name;
|
|
1372
1372
|
}
|
|
1373
1373
|
static get RESTARTED() {
|
|
1374
|
-
return
|
|
1374
|
+
return de.RESTARTED.name;
|
|
1375
1375
|
}
|
|
1376
1376
|
static get SUCCESS() {
|
|
1377
|
-
return
|
|
1377
|
+
return de.SUCCESS.name;
|
|
1378
1378
|
}
|
|
1379
1379
|
static get RUNNING() {
|
|
1380
|
-
return
|
|
1380
|
+
return de.RUNNING.name;
|
|
1381
1381
|
}
|
|
1382
1382
|
static get KILLING() {
|
|
1383
|
-
return
|
|
1383
|
+
return de.KILLING.name;
|
|
1384
1384
|
}
|
|
1385
1385
|
static get KILLED() {
|
|
1386
|
-
return
|
|
1386
|
+
return de.KILLED.name;
|
|
1387
1387
|
}
|
|
1388
1388
|
static get FAILED() {
|
|
1389
|
-
return
|
|
1389
|
+
return de.FAILED.name;
|
|
1390
1390
|
}
|
|
1391
1391
|
static get WARNING() {
|
|
1392
|
-
return
|
|
1392
|
+
return de.WARNING.name;
|
|
1393
1393
|
}
|
|
1394
1394
|
static get PAUSED() {
|
|
1395
|
-
return
|
|
1395
|
+
return de.PAUSED.name;
|
|
1396
1396
|
}
|
|
1397
1397
|
static get CANCELLED() {
|
|
1398
|
-
return
|
|
1398
|
+
return de.CANCELLED.name;
|
|
1399
1399
|
}
|
|
1400
1400
|
static get QUEUED() {
|
|
1401
|
-
return
|
|
1401
|
+
return de.QUEUED.name;
|
|
1402
1402
|
}
|
|
1403
1403
|
static get RETRYING() {
|
|
1404
|
-
return
|
|
1404
|
+
return de.RETRYING.name;
|
|
1405
1405
|
}
|
|
1406
1406
|
static get RETRIED() {
|
|
1407
|
-
return
|
|
1407
|
+
return de.RETRIED.name;
|
|
1408
1408
|
}
|
|
1409
1409
|
static get BREAKPOINT() {
|
|
1410
|
-
return
|
|
1410
|
+
return de.BREAKPOINT.name;
|
|
1411
1411
|
}
|
|
1412
1412
|
static isRunning(t) {
|
|
1413
|
-
return
|
|
1413
|
+
return de[t] && de[t].isRunning;
|
|
1414
1414
|
}
|
|
1415
1415
|
static isKillable(t) {
|
|
1416
|
-
return
|
|
1416
|
+
return de[t] && de[t].isKillable;
|
|
1417
1417
|
}
|
|
1418
1418
|
static isPaused(t) {
|
|
1419
|
-
return
|
|
1419
|
+
return de[t] && de[t] === de.PAUSED;
|
|
1420
1420
|
}
|
|
1421
1421
|
static isFailed(t) {
|
|
1422
|
-
return
|
|
1422
|
+
return de[t] && de[t].isFailed;
|
|
1423
1423
|
}
|
|
1424
1424
|
static isQueued(t) {
|
|
1425
|
-
return
|
|
1425
|
+
return de[t] && de[t] === de.QUEUED;
|
|
1426
1426
|
}
|
|
1427
1427
|
static allStates() {
|
|
1428
|
-
return wn(
|
|
1428
|
+
return wn(de, (t) => ({
|
|
1429
1429
|
key: t.name,
|
|
1430
1430
|
icon: t.icon,
|
|
1431
1431
|
color: ""
|
|
1432
1432
|
}));
|
|
1433
1433
|
}
|
|
1434
1434
|
static arrayAllStates() {
|
|
1435
|
-
return Object.values(
|
|
1435
|
+
return Object.values(de);
|
|
1436
1436
|
}
|
|
1437
1437
|
static colorClass() {
|
|
1438
|
-
return wn(
|
|
1438
|
+
return wn(de, (t) => t.colorClass);
|
|
1439
1439
|
}
|
|
1440
1440
|
static color() {
|
|
1441
1441
|
return wn(
|
|
1442
|
-
|
|
1442
|
+
de,
|
|
1443
1443
|
(t) => at("--bs-" + t.colorClass)
|
|
1444
1444
|
);
|
|
1445
1445
|
}
|
|
1446
1446
|
static getStateColor(t) {
|
|
1447
|
-
return
|
|
1447
|
+
return de[t].color;
|
|
1448
1448
|
}
|
|
1449
1449
|
static icon() {
|
|
1450
|
-
return wn(
|
|
1450
|
+
return wn(de, (t) => t.icon);
|
|
1451
1451
|
}
|
|
1452
1452
|
static getTerminatedStates() {
|
|
1453
|
-
return Object.values(
|
|
1453
|
+
return Object.values(de).filter((t) => !t.isRunning).map((t) => t.name);
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
const Rv = {
|
|
@@ -1623,14 +1623,14 @@ var pi, nu;
|
|
|
1623
1623
|
function Fv() {
|
|
1624
1624
|
if (nu) return pi;
|
|
1625
1625
|
nu = 1;
|
|
1626
|
-
var e = Ef(), t = ds(), n = Kn(), r = He(), i = Ut(), a = jn(), o = mm(), s = zn(), l = "[object Map]",
|
|
1626
|
+
var e = Ef(), t = ds(), n = Kn(), r = He(), i = Ut(), a = jn(), o = mm(), s = zn(), l = "[object Map]", c = "[object Set]", u = Object.prototype, d = u.hasOwnProperty;
|
|
1627
1627
|
function f(h) {
|
|
1628
1628
|
if (h == null)
|
|
1629
1629
|
return !0;
|
|
1630
1630
|
if (i(h) && (r(h) || typeof h == "string" || typeof h.splice == "function" || a(h) || s(h) || n(h)))
|
|
1631
1631
|
return !h.length;
|
|
1632
1632
|
var w = t(h);
|
|
1633
|
-
if (w == l || w ==
|
|
1633
|
+
if (w == l || w == c)
|
|
1634
1634
|
return !h.size;
|
|
1635
1635
|
if (o(h))
|
|
1636
1636
|
return !e(h).length;
|
|
@@ -1657,8 +1657,8 @@ function Wf() {
|
|
|
1657
1657
|
var e = er(), t = Ut();
|
|
1658
1658
|
function n(r, i) {
|
|
1659
1659
|
var a = -1, o = t(r) ? Array(r.length) : [];
|
|
1660
|
-
return e(r, function(s, l,
|
|
1661
|
-
o[++a] = i(s, l,
|
|
1660
|
+
return e(r, function(s, l, c) {
|
|
1661
|
+
o[++a] = i(s, l, c);
|
|
1662
1662
|
}), o;
|
|
1663
1663
|
}
|
|
1664
1664
|
return gi = n, gi;
|
|
@@ -1703,8 +1703,8 @@ function zf() {
|
|
|
1703
1703
|
lu = 1;
|
|
1704
1704
|
var e = Vv(), t = er(), n = Ct(), r = Uv(), i = He();
|
|
1705
1705
|
function a(o, s, l) {
|
|
1706
|
-
var
|
|
1707
|
-
return
|
|
1706
|
+
var c = i(o) ? e : r, u = arguments.length < 3;
|
|
1707
|
+
return c(o, n(s, 4), l, u, t);
|
|
1708
1708
|
}
|
|
1709
1709
|
return Ei = a, Ei;
|
|
1710
1710
|
}
|
|
@@ -1730,8 +1730,8 @@ function Bv() {
|
|
|
1730
1730
|
if (du) return wi;
|
|
1731
1731
|
du = 1;
|
|
1732
1732
|
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", n = "\\ufe20-\\ufe2f", r = "\\u20d0-\\u20ff", i = t + n + r, a = "\\ufe0e\\ufe0f", o = "\\u200d", s = RegExp("[" + o + e + i + a + "]");
|
|
1733
|
-
function l(
|
|
1734
|
-
return s.test(
|
|
1733
|
+
function l(c) {
|
|
1734
|
+
return s.test(c);
|
|
1735
1735
|
}
|
|
1736
1736
|
return wi = l, wi;
|
|
1737
1737
|
}
|
|
@@ -1739,7 +1739,7 @@ var Si, fu;
|
|
|
1739
1739
|
function Wv() {
|
|
1740
1740
|
if (fu) return Si;
|
|
1741
1741
|
fu = 1;
|
|
1742
|
-
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", n = "\\ufe20-\\ufe2f", r = "\\u20d0-\\u20ff", i = t + n + r, a = "\\ufe0e\\ufe0f", o = "[" + e + "]", s = "[" + i + "]", l = "\\ud83c[\\udffb-\\udfff]",
|
|
1742
|
+
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", n = "\\ufe20-\\ufe2f", r = "\\u20d0-\\u20ff", i = t + n + r, a = "\\ufe0e\\ufe0f", o = "[" + e + "]", s = "[" + i + "]", l = "\\ud83c[\\udffb-\\udfff]", c = "(?:" + s + "|" + l + ")", u = "[^" + e + "]", d = "(?:\\ud83c[\\udde6-\\uddff]){2}", f = "[\\ud800-\\udbff][\\udc00-\\udfff]", h = "\\u200d", w = c + "?", _ = "[" + a + "]?", v = "(?:" + h + "(?:" + [u, d, f].join("|") + ")" + _ + w + ")*", p = _ + w + v, g = "(?:" + [u + s + "?", s, d, f, o].join("|") + ")", y = RegExp(l + "(?=" + l + ")|" + g + p, "g");
|
|
1743
1743
|
function m(C) {
|
|
1744
1744
|
for (var S = y.lastIndex = 0; y.test(C); )
|
|
1745
1745
|
++S;
|
|
@@ -1767,8 +1767,8 @@ function zv() {
|
|
|
1767
1767
|
return 0;
|
|
1768
1768
|
if (n(l))
|
|
1769
1769
|
return r(l) ? i(l) : l.length;
|
|
1770
|
-
var
|
|
1771
|
-
return
|
|
1770
|
+
var c = t(l);
|
|
1771
|
+
return c == a || c == o ? l.size : e(l).length;
|
|
1772
1772
|
}
|
|
1773
1773
|
return Li = s, Li;
|
|
1774
1774
|
}
|
|
@@ -1776,9 +1776,9 @@ var Ti, mu;
|
|
|
1776
1776
|
function Kv() {
|
|
1777
1777
|
if (mu) return Ti;
|
|
1778
1778
|
mu = 1;
|
|
1779
|
-
var e = yf(), t = gm(), n = _s(), r = Ct(), i = bf(), a = He(), o = jn(), s = ms(), l = Vt(),
|
|
1780
|
-
function
|
|
1781
|
-
var w = a(d), _ = w || o(d) ||
|
|
1779
|
+
var e = yf(), t = gm(), n = _s(), r = Ct(), i = bf(), a = He(), o = jn(), s = ms(), l = Vt(), c = zn();
|
|
1780
|
+
function u(d, f, h) {
|
|
1781
|
+
var w = a(d), _ = w || o(d) || c(d);
|
|
1782
1782
|
if (f = r(f, 4), h == null) {
|
|
1783
1783
|
var v = d && d.constructor;
|
|
1784
1784
|
_ ? h = w ? new v() : [] : l(d) ? h = s(v) ? t(i(d)) : {} : h = {};
|
|
@@ -1787,7 +1787,7 @@ function Kv() {
|
|
|
1787
1787
|
return f(h, p, g, y);
|
|
1788
1788
|
}), h;
|
|
1789
1789
|
}
|
|
1790
|
-
return Ti =
|
|
1790
|
+
return Ti = u, Ti;
|
|
1791
1791
|
}
|
|
1792
1792
|
var Oi, gu;
|
|
1793
1793
|
function Yv() {
|
|
@@ -1805,10 +1805,10 @@ function ws() {
|
|
|
1805
1805
|
vu = 1;
|
|
1806
1806
|
var e = vm(), t = Yv();
|
|
1807
1807
|
function n(r, i, a, o, s) {
|
|
1808
|
-
var l = -1,
|
|
1809
|
-
for (a || (a = t), s || (s = []); ++l <
|
|
1810
|
-
var
|
|
1811
|
-
i > 0 && a(
|
|
1808
|
+
var l = -1, c = r.length;
|
|
1809
|
+
for (a || (a = t), s || (s = []); ++l < c; ) {
|
|
1810
|
+
var u = r[l];
|
|
1811
|
+
i > 0 && a(u) ? i > 1 ? n(u, i - 1, a, o, s) : e(s, u) : o || (s[s.length] = u);
|
|
1812
1812
|
}
|
|
1813
1813
|
return s;
|
|
1814
1814
|
}
|
|
@@ -1840,12 +1840,12 @@ function Kf() {
|
|
|
1840
1840
|
var e = Xv(), t = Math.max;
|
|
1841
1841
|
function n(r, i, a) {
|
|
1842
1842
|
return i = t(i === void 0 ? r.length - 1 : i, 0), function() {
|
|
1843
|
-
for (var o = arguments, s = -1, l = t(o.length - i, 0),
|
|
1844
|
-
|
|
1843
|
+
for (var o = arguments, s = -1, l = t(o.length - i, 0), c = Array(l); ++s < l; )
|
|
1844
|
+
c[s] = o[i + s];
|
|
1845
1845
|
s = -1;
|
|
1846
|
-
for (var
|
|
1847
|
-
|
|
1848
|
-
return
|
|
1846
|
+
for (var u = Array(i + 1); ++s < i; )
|
|
1847
|
+
u[s] = o[s];
|
|
1848
|
+
return u[i] = a(c), e(r, this, u);
|
|
1849
1849
|
};
|
|
1850
1850
|
}
|
|
1851
1851
|
return Ai = n, Ai;
|
|
@@ -1988,26 +1988,26 @@ function o1() {
|
|
|
1988
1988
|
if (Ru) return Bi;
|
|
1989
1989
|
Ru = 1;
|
|
1990
1990
|
var e = Of(), t = n1(), n = r1(), r = Nf(), i = a1(), a = ys(), o = 200;
|
|
1991
|
-
function s(l,
|
|
1991
|
+
function s(l, c, u) {
|
|
1992
1992
|
var d = -1, f = t, h = l.length, w = !0, _ = [], v = _;
|
|
1993
|
-
if (
|
|
1993
|
+
if (u)
|
|
1994
1994
|
w = !1, f = n;
|
|
1995
1995
|
else if (h >= o) {
|
|
1996
|
-
var p =
|
|
1996
|
+
var p = c ? null : i(l);
|
|
1997
1997
|
if (p)
|
|
1998
1998
|
return a(p);
|
|
1999
1999
|
w = !1, f = r, v = new e();
|
|
2000
2000
|
} else
|
|
2001
|
-
v =
|
|
2001
|
+
v = c ? [] : _;
|
|
2002
2002
|
e:
|
|
2003
2003
|
for (; ++d < h; ) {
|
|
2004
|
-
var g = l[d], y =
|
|
2005
|
-
if (g =
|
|
2004
|
+
var g = l[d], y = c ? c(g) : g;
|
|
2005
|
+
if (g = u || g !== 0 ? g : 0, w && y === y) {
|
|
2006
2006
|
for (var m = v.length; m--; )
|
|
2007
2007
|
if (v[m] === y)
|
|
2008
2008
|
continue e;
|
|
2009
|
-
|
|
2010
|
-
} else f(v, y,
|
|
2009
|
+
c && v.push(y), _.push(g);
|
|
2010
|
+
} else f(v, y, u) || (v !== _ && v.push(y), _.push(g));
|
|
2011
2011
|
}
|
|
2012
2012
|
return _;
|
|
2013
2013
|
}
|
|
@@ -2055,7 +2055,7 @@ function Jf() {
|
|
|
2055
2055
|
return Ki = n, Ki;
|
|
2056
2056
|
}
|
|
2057
2057
|
var Yi, xu;
|
|
2058
|
-
function
|
|
2058
|
+
function lt() {
|
|
2059
2059
|
if (xu) return Yi;
|
|
2060
2060
|
xu = 1;
|
|
2061
2061
|
var e;
|
|
@@ -2087,11 +2087,11 @@ var Xi, qu;
|
|
|
2087
2087
|
function Ss() {
|
|
2088
2088
|
if (qu) return Xi;
|
|
2089
2089
|
qu = 1;
|
|
2090
|
-
var e =
|
|
2090
|
+
var e = lt();
|
|
2091
2091
|
Xi = i;
|
|
2092
2092
|
var t = "\0", n = "\0", r = "";
|
|
2093
|
-
function i(
|
|
2094
|
-
this._isDirected = e.has(
|
|
2093
|
+
function i(u) {
|
|
2094
|
+
this._isDirected = e.has(u, "directed") ? u.directed : !0, this._isMultigraph = e.has(u, "multigraph") ? u.multigraph : !1, this._isCompound = e.has(u, "compound") ? u.compound : !1, this._label = void 0, this._defaultNodeLabelFn = e.constant(void 0), this._defaultEdgeLabelFn = e.constant(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[n] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
|
|
2095
2095
|
}
|
|
2096
2096
|
i.prototype._nodeCount = 0, i.prototype._edgeCount = 0, i.prototype.isDirected = function() {
|
|
2097
2097
|
return this._isDirected;
|
|
@@ -2099,49 +2099,49 @@ function Ss() {
|
|
|
2099
2099
|
return this._isMultigraph;
|
|
2100
2100
|
}, i.prototype.isCompound = function() {
|
|
2101
2101
|
return this._isCompound;
|
|
2102
|
-
}, i.prototype.setGraph = function(
|
|
2103
|
-
return this._label =
|
|
2102
|
+
}, i.prototype.setGraph = function(u) {
|
|
2103
|
+
return this._label = u, this;
|
|
2104
2104
|
}, i.prototype.graph = function() {
|
|
2105
2105
|
return this._label;
|
|
2106
|
-
}, i.prototype.setDefaultNodeLabel = function(
|
|
2107
|
-
return e.isFunction(
|
|
2106
|
+
}, i.prototype.setDefaultNodeLabel = function(u) {
|
|
2107
|
+
return e.isFunction(u) || (u = e.constant(u)), this._defaultNodeLabelFn = u, this;
|
|
2108
2108
|
}, i.prototype.nodeCount = function() {
|
|
2109
2109
|
return this._nodeCount;
|
|
2110
2110
|
}, i.prototype.nodes = function() {
|
|
2111
2111
|
return e.keys(this._nodes);
|
|
2112
2112
|
}, i.prototype.sources = function() {
|
|
2113
|
-
var
|
|
2113
|
+
var u = this;
|
|
2114
2114
|
return e.filter(this.nodes(), function(d) {
|
|
2115
|
-
return e.isEmpty(
|
|
2115
|
+
return e.isEmpty(u._in[d]);
|
|
2116
2116
|
});
|
|
2117
2117
|
}, i.prototype.sinks = function() {
|
|
2118
|
-
var
|
|
2118
|
+
var u = this;
|
|
2119
2119
|
return e.filter(this.nodes(), function(d) {
|
|
2120
|
-
return e.isEmpty(
|
|
2120
|
+
return e.isEmpty(u._out[d]);
|
|
2121
2121
|
});
|
|
2122
|
-
}, i.prototype.setNodes = function(
|
|
2122
|
+
}, i.prototype.setNodes = function(u, d) {
|
|
2123
2123
|
var f = arguments, h = this;
|
|
2124
|
-
return e.each(
|
|
2124
|
+
return e.each(u, function(w) {
|
|
2125
2125
|
f.length > 1 ? h.setNode(w, d) : h.setNode(w);
|
|
2126
2126
|
}), this;
|
|
2127
|
-
}, i.prototype.setNode = function(
|
|
2128
|
-
return e.has(this._nodes,
|
|
2129
|
-
}, i.prototype.node = function(
|
|
2130
|
-
return this._nodes[
|
|
2131
|
-
}, i.prototype.hasNode = function(
|
|
2132
|
-
return e.has(this._nodes,
|
|
2133
|
-
}, i.prototype.removeNode = function(
|
|
2127
|
+
}, i.prototype.setNode = function(u, d) {
|
|
2128
|
+
return e.has(this._nodes, u) ? (arguments.length > 1 && (this._nodes[u] = d), this) : (this._nodes[u] = arguments.length > 1 ? d : this._defaultNodeLabelFn(u), this._isCompound && (this._parent[u] = n, this._children[u] = {}, this._children[n][u] = !0), this._in[u] = {}, this._preds[u] = {}, this._out[u] = {}, this._sucs[u] = {}, ++this._nodeCount, this);
|
|
2129
|
+
}, i.prototype.node = function(u) {
|
|
2130
|
+
return this._nodes[u];
|
|
2131
|
+
}, i.prototype.hasNode = function(u) {
|
|
2132
|
+
return e.has(this._nodes, u);
|
|
2133
|
+
}, i.prototype.removeNode = function(u) {
|
|
2134
2134
|
var d = this;
|
|
2135
|
-
if (e.has(this._nodes,
|
|
2135
|
+
if (e.has(this._nodes, u)) {
|
|
2136
2136
|
var f = function(h) {
|
|
2137
2137
|
d.removeEdge(d._edgeObjs[h]);
|
|
2138
2138
|
};
|
|
2139
|
-
delete this._nodes[
|
|
2139
|
+
delete this._nodes[u], this._isCompound && (this._removeFromParentsChildList(u), delete this._parent[u], e.each(this.children(u), function(h) {
|
|
2140
2140
|
d.setParent(h);
|
|
2141
|
-
}), delete this._children[
|
|
2141
|
+
}), delete this._children[u]), e.each(e.keys(this._in[u]), f), delete this._in[u], delete this._preds[u], e.each(e.keys(this._out[u]), f), delete this._out[u], delete this._sucs[u], --this._nodeCount;
|
|
2142
2142
|
}
|
|
2143
2143
|
return this;
|
|
2144
|
-
}, i.prototype.setParent = function(
|
|
2144
|
+
}, i.prototype.setParent = function(u, d) {
|
|
2145
2145
|
if (!this._isCompound)
|
|
2146
2146
|
throw new Error("Cannot set parent in a non-compound graph");
|
|
2147
2147
|
if (e.isUndefined(d))
|
|
@@ -2149,46 +2149,46 @@ function Ss() {
|
|
|
2149
2149
|
else {
|
|
2150
2150
|
d += "";
|
|
2151
2151
|
for (var f = d; !e.isUndefined(f); f = this.parent(f))
|
|
2152
|
-
if (f ===
|
|
2153
|
-
throw new Error("Setting " + d + " as parent of " +
|
|
2152
|
+
if (f === u)
|
|
2153
|
+
throw new Error("Setting " + d + " as parent of " + u + " would create a cycle");
|
|
2154
2154
|
this.setNode(d);
|
|
2155
2155
|
}
|
|
2156
|
-
return this.setNode(
|
|
2157
|
-
}, i.prototype._removeFromParentsChildList = function(
|
|
2158
|
-
delete this._children[this._parent[
|
|
2159
|
-
}, i.prototype.parent = function(
|
|
2156
|
+
return this.setNode(u), this._removeFromParentsChildList(u), this._parent[u] = d, this._children[d][u] = !0, this;
|
|
2157
|
+
}, i.prototype._removeFromParentsChildList = function(u) {
|
|
2158
|
+
delete this._children[this._parent[u]][u];
|
|
2159
|
+
}, i.prototype.parent = function(u) {
|
|
2160
2160
|
if (this._isCompound) {
|
|
2161
|
-
var d = this._parent[
|
|
2161
|
+
var d = this._parent[u];
|
|
2162
2162
|
if (d !== n)
|
|
2163
2163
|
return d;
|
|
2164
2164
|
}
|
|
2165
|
-
}, i.prototype.children = function(
|
|
2166
|
-
if (e.isUndefined(
|
|
2167
|
-
var d = this._children[
|
|
2165
|
+
}, i.prototype.children = function(u) {
|
|
2166
|
+
if (e.isUndefined(u) && (u = n), this._isCompound) {
|
|
2167
|
+
var d = this._children[u];
|
|
2168
2168
|
if (d)
|
|
2169
2169
|
return e.keys(d);
|
|
2170
2170
|
} else {
|
|
2171
|
-
if (
|
|
2171
|
+
if (u === n)
|
|
2172
2172
|
return this.nodes();
|
|
2173
|
-
if (this.hasNode(
|
|
2173
|
+
if (this.hasNode(u))
|
|
2174
2174
|
return [];
|
|
2175
2175
|
}
|
|
2176
|
-
}, i.prototype.predecessors = function(
|
|
2177
|
-
var d = this._preds[
|
|
2176
|
+
}, i.prototype.predecessors = function(u) {
|
|
2177
|
+
var d = this._preds[u];
|
|
2178
2178
|
if (d)
|
|
2179
2179
|
return e.keys(d);
|
|
2180
|
-
}, i.prototype.successors = function(
|
|
2181
|
-
var d = this._sucs[
|
|
2180
|
+
}, i.prototype.successors = function(u) {
|
|
2181
|
+
var d = this._sucs[u];
|
|
2182
2182
|
if (d)
|
|
2183
2183
|
return e.keys(d);
|
|
2184
|
-
}, i.prototype.neighbors = function(
|
|
2185
|
-
var d = this.predecessors(
|
|
2184
|
+
}, i.prototype.neighbors = function(u) {
|
|
2185
|
+
var d = this.predecessors(u);
|
|
2186
2186
|
if (d)
|
|
2187
|
-
return e.union(d, this.successors(
|
|
2188
|
-
}, i.prototype.isLeaf = function(
|
|
2187
|
+
return e.union(d, this.successors(u));
|
|
2188
|
+
}, i.prototype.isLeaf = function(u) {
|
|
2189
2189
|
var d;
|
|
2190
|
-
return this.isDirected() ? d = this.successors(
|
|
2191
|
-
}, i.prototype.filterNodes = function(
|
|
2190
|
+
return this.isDirected() ? d = this.successors(u) : d = this.neighbors(u), d.length === 0;
|
|
2191
|
+
}, i.prototype.filterNodes = function(u) {
|
|
2192
2192
|
var d = new this.constructor({
|
|
2193
2193
|
directed: this._isDirected,
|
|
2194
2194
|
multigraph: this._isMultigraph,
|
|
@@ -2197,7 +2197,7 @@ function Ss() {
|
|
|
2197
2197
|
d.setGraph(this.graph());
|
|
2198
2198
|
var f = this;
|
|
2199
2199
|
e.each(this._nodes, function(_, v) {
|
|
2200
|
-
|
|
2200
|
+
u(v) && d.setNode(v, _);
|
|
2201
2201
|
}), e.each(this._edgeObjs, function(_) {
|
|
2202
2202
|
d.hasNode(_.v) && d.hasNode(_.w) && d.setEdge(_, f.edge(_));
|
|
2203
2203
|
});
|
|
@@ -2209,83 +2209,83 @@ function Ss() {
|
|
|
2209
2209
|
return this._isCompound && e.each(d.nodes(), function(_) {
|
|
2210
2210
|
d.setParent(_, w(_));
|
|
2211
2211
|
}), d;
|
|
2212
|
-
}, i.prototype.setDefaultEdgeLabel = function(
|
|
2213
|
-
return e.isFunction(
|
|
2212
|
+
}, i.prototype.setDefaultEdgeLabel = function(u) {
|
|
2213
|
+
return e.isFunction(u) || (u = e.constant(u)), this._defaultEdgeLabelFn = u, this;
|
|
2214
2214
|
}, i.prototype.edgeCount = function() {
|
|
2215
2215
|
return this._edgeCount;
|
|
2216
2216
|
}, i.prototype.edges = function() {
|
|
2217
2217
|
return e.values(this._edgeObjs);
|
|
2218
|
-
}, i.prototype.setPath = function(
|
|
2218
|
+
}, i.prototype.setPath = function(u, d) {
|
|
2219
2219
|
var f = this, h = arguments;
|
|
2220
|
-
return e.reduce(
|
|
2220
|
+
return e.reduce(u, function(w, _) {
|
|
2221
2221
|
return h.length > 1 ? f.setEdge(w, _, d) : f.setEdge(w, _), _;
|
|
2222
2222
|
}), this;
|
|
2223
2223
|
}, i.prototype.setEdge = function() {
|
|
2224
|
-
var
|
|
2225
|
-
typeof _ == "object" && _ !== null && "v" in _ ? (
|
|
2226
|
-
var v = s(this._isDirected,
|
|
2224
|
+
var u, d, f, h, w = !1, _ = arguments[0];
|
|
2225
|
+
typeof _ == "object" && _ !== null && "v" in _ ? (u = _.v, d = _.w, f = _.name, arguments.length === 2 && (h = arguments[1], w = !0)) : (u = _, d = arguments[1], f = arguments[3], arguments.length > 2 && (h = arguments[2], w = !0)), u = "" + u, d = "" + d, e.isUndefined(f) || (f = "" + f);
|
|
2226
|
+
var v = s(this._isDirected, u, d, f);
|
|
2227
2227
|
if (e.has(this._edgeLabels, v))
|
|
2228
2228
|
return w && (this._edgeLabels[v] = h), this;
|
|
2229
2229
|
if (!e.isUndefined(f) && !this._isMultigraph)
|
|
2230
2230
|
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
2231
|
-
this.setNode(
|
|
2232
|
-
var p = l(this._isDirected,
|
|
2233
|
-
return
|
|
2234
|
-
}, i.prototype.edge = function(
|
|
2235
|
-
var h = arguments.length === 1 ?
|
|
2231
|
+
this.setNode(u), this.setNode(d), this._edgeLabels[v] = w ? h : this._defaultEdgeLabelFn(u, d, f);
|
|
2232
|
+
var p = l(this._isDirected, u, d, f);
|
|
2233
|
+
return u = p.v, d = p.w, Object.freeze(p), this._edgeObjs[v] = p, a(this._preds[d], u), a(this._sucs[u], d), this._in[d][v] = p, this._out[u][v] = p, this._edgeCount++, this;
|
|
2234
|
+
}, i.prototype.edge = function(u, d, f) {
|
|
2235
|
+
var h = arguments.length === 1 ? c(this._isDirected, arguments[0]) : s(this._isDirected, u, d, f);
|
|
2236
2236
|
return this._edgeLabels[h];
|
|
2237
|
-
}, i.prototype.hasEdge = function(
|
|
2238
|
-
var h = arguments.length === 1 ?
|
|
2237
|
+
}, i.prototype.hasEdge = function(u, d, f) {
|
|
2238
|
+
var h = arguments.length === 1 ? c(this._isDirected, arguments[0]) : s(this._isDirected, u, d, f);
|
|
2239
2239
|
return e.has(this._edgeLabels, h);
|
|
2240
|
-
}, i.prototype.removeEdge = function(
|
|
2241
|
-
var h = arguments.length === 1 ?
|
|
2242
|
-
return w && (
|
|
2243
|
-
}, i.prototype.inEdges = function(
|
|
2244
|
-
var f = this._in[
|
|
2240
|
+
}, i.prototype.removeEdge = function(u, d, f) {
|
|
2241
|
+
var h = arguments.length === 1 ? c(this._isDirected, arguments[0]) : s(this._isDirected, u, d, f), w = this._edgeObjs[h];
|
|
2242
|
+
return w && (u = w.v, d = w.w, delete this._edgeLabels[h], delete this._edgeObjs[h], o(this._preds[d], u), o(this._sucs[u], d), delete this._in[d][h], delete this._out[u][h], this._edgeCount--), this;
|
|
2243
|
+
}, i.prototype.inEdges = function(u, d) {
|
|
2244
|
+
var f = this._in[u];
|
|
2245
2245
|
if (f) {
|
|
2246
2246
|
var h = e.values(f);
|
|
2247
2247
|
return d ? e.filter(h, function(w) {
|
|
2248
2248
|
return w.v === d;
|
|
2249
2249
|
}) : h;
|
|
2250
2250
|
}
|
|
2251
|
-
}, i.prototype.outEdges = function(
|
|
2252
|
-
var f = this._out[
|
|
2251
|
+
}, i.prototype.outEdges = function(u, d) {
|
|
2252
|
+
var f = this._out[u];
|
|
2253
2253
|
if (f) {
|
|
2254
2254
|
var h = e.values(f);
|
|
2255
2255
|
return d ? e.filter(h, function(w) {
|
|
2256
2256
|
return w.w === d;
|
|
2257
2257
|
}) : h;
|
|
2258
2258
|
}
|
|
2259
|
-
}, i.prototype.nodeEdges = function(
|
|
2260
|
-
var f = this.inEdges(
|
|
2259
|
+
}, i.prototype.nodeEdges = function(u, d) {
|
|
2260
|
+
var f = this.inEdges(u, d);
|
|
2261
2261
|
if (f)
|
|
2262
|
-
return f.concat(this.outEdges(
|
|
2262
|
+
return f.concat(this.outEdges(u, d));
|
|
2263
2263
|
};
|
|
2264
|
-
function a(
|
|
2265
|
-
|
|
2264
|
+
function a(u, d) {
|
|
2265
|
+
u[d] ? u[d]++ : u[d] = 1;
|
|
2266
2266
|
}
|
|
2267
|
-
function o(
|
|
2268
|
-
--
|
|
2267
|
+
function o(u, d) {
|
|
2268
|
+
--u[d] || delete u[d];
|
|
2269
2269
|
}
|
|
2270
|
-
function s(
|
|
2270
|
+
function s(u, d, f, h) {
|
|
2271
2271
|
var w = "" + d, _ = "" + f;
|
|
2272
|
-
if (!
|
|
2272
|
+
if (!u && w > _) {
|
|
2273
2273
|
var v = w;
|
|
2274
2274
|
w = _, _ = v;
|
|
2275
2275
|
}
|
|
2276
2276
|
return w + r + _ + r + (e.isUndefined(h) ? t : h);
|
|
2277
2277
|
}
|
|
2278
|
-
function l(
|
|
2278
|
+
function l(u, d, f, h) {
|
|
2279
2279
|
var w = "" + d, _ = "" + f;
|
|
2280
|
-
if (!
|
|
2280
|
+
if (!u && w > _) {
|
|
2281
2281
|
var v = w;
|
|
2282
2282
|
w = _, _ = v;
|
|
2283
2283
|
}
|
|
2284
2284
|
var p = { v: w, w: _ };
|
|
2285
2285
|
return h && (p.name = h), p;
|
|
2286
2286
|
}
|
|
2287
|
-
function u
|
|
2288
|
-
return s(
|
|
2287
|
+
function c(u, d) {
|
|
2288
|
+
return s(u, d.v, d.w, d.name);
|
|
2289
2289
|
}
|
|
2290
2290
|
return Xi;
|
|
2291
2291
|
}
|
|
@@ -2304,7 +2304,7 @@ var Qi, Uu;
|
|
|
2304
2304
|
function d1() {
|
|
2305
2305
|
if (Uu) return Qi;
|
|
2306
2306
|
Uu = 1;
|
|
2307
|
-
var e =
|
|
2307
|
+
var e = lt(), t = Ss();
|
|
2308
2308
|
Qi = {
|
|
2309
2309
|
write: n,
|
|
2310
2310
|
read: a
|
|
@@ -2323,14 +2323,14 @@ function d1() {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
function r(o) {
|
|
2325
2325
|
return e.map(o.nodes(), function(s) {
|
|
2326
|
-
var l = o.node(s),
|
|
2327
|
-
return e.isUndefined(l) || (
|
|
2326
|
+
var l = o.node(s), c = o.parent(s), u = { v: s };
|
|
2327
|
+
return e.isUndefined(l) || (u.value = l), e.isUndefined(c) || (u.parent = c), u;
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
2330
|
function i(o) {
|
|
2331
2331
|
return e.map(o.edges(), function(s) {
|
|
2332
|
-
var l = o.edge(s),
|
|
2333
|
-
return e.isUndefined(s.name) || (
|
|
2332
|
+
var l = o.edge(s), c = { v: s.v, w: s.w };
|
|
2333
|
+
return e.isUndefined(s.name) || (c.name = s.name), e.isUndefined(l) || (c.value = l), c;
|
|
2334
2334
|
});
|
|
2335
2335
|
}
|
|
2336
2336
|
function a(o) {
|
|
@@ -2347,7 +2347,7 @@ var ea, Hu;
|
|
|
2347
2347
|
function f1() {
|
|
2348
2348
|
if (Hu) return ea;
|
|
2349
2349
|
Hu = 1;
|
|
2350
|
-
var e =
|
|
2350
|
+
var e = lt();
|
|
2351
2351
|
ea = t;
|
|
2352
2352
|
function t(n) {
|
|
2353
2353
|
var r = {}, i = [], a;
|
|
@@ -2364,7 +2364,7 @@ var ta, Gu;
|
|
|
2364
2364
|
function Qf() {
|
|
2365
2365
|
if (Gu) return ta;
|
|
2366
2366
|
Gu = 1;
|
|
2367
|
-
var e =
|
|
2367
|
+
var e = lt();
|
|
2368
2368
|
ta = t;
|
|
2369
2369
|
function t() {
|
|
2370
2370
|
this._arr = [], this._keyIndices = {};
|
|
@@ -2416,7 +2416,7 @@ var na, Bu;
|
|
|
2416
2416
|
function eh() {
|
|
2417
2417
|
if (Bu) return na;
|
|
2418
2418
|
Bu = 1;
|
|
2419
|
-
var e =
|
|
2419
|
+
var e = lt(), t = Qf();
|
|
2420
2420
|
na = r;
|
|
2421
2421
|
var n = e.constant(1);
|
|
2422
2422
|
function r(a, o, s, l) {
|
|
@@ -2424,24 +2424,24 @@ function eh() {
|
|
|
2424
2424
|
a,
|
|
2425
2425
|
String(o),
|
|
2426
2426
|
s || n,
|
|
2427
|
-
l || function(
|
|
2428
|
-
return a.outEdges(
|
|
2427
|
+
l || function(c) {
|
|
2428
|
+
return a.outEdges(c);
|
|
2429
2429
|
}
|
|
2430
2430
|
);
|
|
2431
2431
|
}
|
|
2432
2432
|
function i(a, o, s, l) {
|
|
2433
|
-
var
|
|
2434
|
-
var _ = w.v !== d ? w.v : w.w, v =
|
|
2433
|
+
var c = {}, u = new t(), d, f, h = function(w) {
|
|
2434
|
+
var _ = w.v !== d ? w.v : w.w, v = c[_], p = s(w), g = f.distance + p;
|
|
2435
2435
|
if (p < 0)
|
|
2436
2436
|
throw new Error("dijkstra does not allow negative edge weights. Bad edge: " + w + " Weight: " + p);
|
|
2437
|
-
g < v.distance && (v.distance = g, v.predecessor = d,
|
|
2437
|
+
g < v.distance && (v.distance = g, v.predecessor = d, u.decrease(_, g));
|
|
2438
2438
|
};
|
|
2439
2439
|
for (a.nodes().forEach(function(w) {
|
|
2440
2440
|
var _ = w === o ? 0 : Number.POSITIVE_INFINITY;
|
|
2441
|
-
|
|
2442
|
-
});
|
|
2441
|
+
c[w] = { distance: _ }, u.add(w, _);
|
|
2442
|
+
}); u.size() > 0 && (d = u.removeMin(), f = c[d], f.distance !== Number.POSITIVE_INFINITY); )
|
|
2443
2443
|
l(d).forEach(h);
|
|
2444
|
-
return
|
|
2444
|
+
return c;
|
|
2445
2445
|
}
|
|
2446
2446
|
return na;
|
|
2447
2447
|
}
|
|
@@ -2449,7 +2449,7 @@ var ra, Wu;
|
|
|
2449
2449
|
function h1() {
|
|
2450
2450
|
if (Wu) return ra;
|
|
2451
2451
|
Wu = 1;
|
|
2452
|
-
var e = eh(), t =
|
|
2452
|
+
var e = eh(), t = lt();
|
|
2453
2453
|
ra = n;
|
|
2454
2454
|
function n(r, i, a) {
|
|
2455
2455
|
return t.transform(r.nodes(), function(o, s) {
|
|
@@ -2462,24 +2462,24 @@ var ia, ju;
|
|
|
2462
2462
|
function th() {
|
|
2463
2463
|
if (ju) return ia;
|
|
2464
2464
|
ju = 1;
|
|
2465
|
-
var e =
|
|
2465
|
+
var e = lt();
|
|
2466
2466
|
ia = t;
|
|
2467
2467
|
function t(n) {
|
|
2468
2468
|
var r = 0, i = [], a = {}, o = [];
|
|
2469
2469
|
function s(l) {
|
|
2470
|
-
var
|
|
2470
|
+
var c = a[l] = {
|
|
2471
2471
|
onStack: !0,
|
|
2472
2472
|
lowlink: r,
|
|
2473
2473
|
index: r++
|
|
2474
2474
|
};
|
|
2475
2475
|
if (i.push(l), n.successors(l).forEach(function(f) {
|
|
2476
|
-
e.has(a, f) ? a[f].onStack && (
|
|
2477
|
-
}),
|
|
2478
|
-
var
|
|
2476
|
+
e.has(a, f) ? a[f].onStack && (c.lowlink = Math.min(c.lowlink, a[f].index)) : (s(f), c.lowlink = Math.min(c.lowlink, a[f].lowlink));
|
|
2477
|
+
}), c.lowlink === c.index) {
|
|
2478
|
+
var u = [], d;
|
|
2479
2479
|
do
|
|
2480
|
-
d = i.pop(), a[d].onStack = !1,
|
|
2480
|
+
d = i.pop(), a[d].onStack = !1, u.push(d);
|
|
2481
2481
|
while (l !== d);
|
|
2482
|
-
o.push(
|
|
2482
|
+
o.push(u);
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
2485
|
return n.nodes().forEach(function(l) {
|
|
@@ -2492,7 +2492,7 @@ var aa, zu;
|
|
|
2492
2492
|
function p1() {
|
|
2493
2493
|
if (zu) return aa;
|
|
2494
2494
|
zu = 1;
|
|
2495
|
-
var e =
|
|
2495
|
+
var e = lt(), t = th();
|
|
2496
2496
|
aa = n;
|
|
2497
2497
|
function n(r) {
|
|
2498
2498
|
return e.filter(t(r), function(i) {
|
|
@@ -2505,7 +2505,7 @@ var oa, Ku;
|
|
|
2505
2505
|
function m1() {
|
|
2506
2506
|
if (Ku) return oa;
|
|
2507
2507
|
Ku = 1;
|
|
2508
|
-
var e =
|
|
2508
|
+
var e = lt();
|
|
2509
2509
|
oa = n;
|
|
2510
2510
|
var t = e.constant(1);
|
|
2511
2511
|
function n(i, a, o) {
|
|
@@ -2519,19 +2519,19 @@ function m1() {
|
|
|
2519
2519
|
}
|
|
2520
2520
|
function r(i, a, o) {
|
|
2521
2521
|
var s = {}, l = i.nodes();
|
|
2522
|
-
return l.forEach(function(
|
|
2523
|
-
s[
|
|
2524
|
-
|
|
2525
|
-
}), o(
|
|
2526
|
-
var d =
|
|
2527
|
-
s[
|
|
2522
|
+
return l.forEach(function(c) {
|
|
2523
|
+
s[c] = {}, s[c][c] = { distance: 0 }, l.forEach(function(u) {
|
|
2524
|
+
c !== u && (s[c][u] = { distance: Number.POSITIVE_INFINITY });
|
|
2525
|
+
}), o(c).forEach(function(u) {
|
|
2526
|
+
var d = u.v === c ? u.w : u.v, f = a(u);
|
|
2527
|
+
s[c][d] = { distance: f, predecessor: c };
|
|
2528
2528
|
});
|
|
2529
|
-
}), l.forEach(function(
|
|
2530
|
-
var
|
|
2529
|
+
}), l.forEach(function(c) {
|
|
2530
|
+
var u = s[c];
|
|
2531
2531
|
l.forEach(function(d) {
|
|
2532
2532
|
var f = s[d];
|
|
2533
2533
|
l.forEach(function(h) {
|
|
2534
|
-
var w = f[
|
|
2534
|
+
var w = f[c], _ = u[h], v = f[h], p = w.distance + _.distance;
|
|
2535
2535
|
p < v.distance && (v.distance = p, v.predecessor = _.predecessor);
|
|
2536
2536
|
});
|
|
2537
2537
|
});
|
|
@@ -2543,7 +2543,7 @@ var sa, Yu;
|
|
|
2543
2543
|
function nh() {
|
|
2544
2544
|
if (Yu) return sa;
|
|
2545
2545
|
Yu = 1;
|
|
2546
|
-
var e =
|
|
2546
|
+
var e = lt();
|
|
2547
2547
|
sa = t, t.CycleException = n;
|
|
2548
2548
|
function t(r) {
|
|
2549
2549
|
var i = {}, a = {}, o = [];
|
|
@@ -2582,20 +2582,20 @@ var ua, Zu;
|
|
|
2582
2582
|
function rh() {
|
|
2583
2583
|
if (Zu) return ua;
|
|
2584
2584
|
Zu = 1;
|
|
2585
|
-
var e =
|
|
2585
|
+
var e = lt();
|
|
2586
2586
|
ua = t;
|
|
2587
2587
|
function t(r, i, a) {
|
|
2588
2588
|
e.isArray(i) || (i = [i]);
|
|
2589
2589
|
var o = (r.isDirected() ? r.successors : r.neighbors).bind(r), s = [], l = {};
|
|
2590
|
-
return e.each(i, function(
|
|
2591
|
-
if (!r.hasNode(
|
|
2592
|
-
throw new Error("Graph does not have node: " +
|
|
2593
|
-
n(r,
|
|
2590
|
+
return e.each(i, function(c) {
|
|
2591
|
+
if (!r.hasNode(c))
|
|
2592
|
+
throw new Error("Graph does not have node: " + c);
|
|
2593
|
+
n(r, c, a === "post", l, o, s);
|
|
2594
2594
|
}), s;
|
|
2595
2595
|
}
|
|
2596
2596
|
function n(r, i, a, o, s, l) {
|
|
2597
|
-
e.has(o, i) || (o[i] = !0, a || l.push(i), e.each(s(i), function(
|
|
2598
|
-
n(r,
|
|
2597
|
+
e.has(o, i) || (o[i] = !0, a || l.push(i), e.each(s(i), function(c) {
|
|
2598
|
+
n(r, c, a, o, s, l);
|
|
2599
2599
|
}), a && l.push(i));
|
|
2600
2600
|
}
|
|
2601
2601
|
return ua;
|
|
@@ -2626,15 +2626,15 @@ var fa, ec;
|
|
|
2626
2626
|
function y1() {
|
|
2627
2627
|
if (ec) return fa;
|
|
2628
2628
|
ec = 1;
|
|
2629
|
-
var e =
|
|
2629
|
+
var e = lt(), t = Ss(), n = Qf();
|
|
2630
2630
|
fa = r;
|
|
2631
2631
|
function r(i, a) {
|
|
2632
|
-
var o = new t(), s = {}, l = new n(),
|
|
2633
|
-
function
|
|
2634
|
-
var h = f.v ===
|
|
2632
|
+
var o = new t(), s = {}, l = new n(), c;
|
|
2633
|
+
function u(f) {
|
|
2634
|
+
var h = f.v === c ? f.w : f.v, w = l.priority(h);
|
|
2635
2635
|
if (w !== void 0) {
|
|
2636
2636
|
var _ = a(f);
|
|
2637
|
-
_ < w && (s[h] =
|
|
2637
|
+
_ < w && (s[h] = c, l.decrease(h, _));
|
|
2638
2638
|
}
|
|
2639
2639
|
}
|
|
2640
2640
|
if (i.nodeCount() === 0)
|
|
@@ -2643,14 +2643,14 @@ function y1() {
|
|
|
2643
2643
|
l.add(f, Number.POSITIVE_INFINITY), o.setNode(f);
|
|
2644
2644
|
}), l.decrease(i.nodes()[0], 0);
|
|
2645
2645
|
for (var d = !1; l.size() > 0; ) {
|
|
2646
|
-
if (
|
|
2647
|
-
o.setEdge(
|
|
2646
|
+
if (c = l.removeMin(), e.has(s, c))
|
|
2647
|
+
o.setEdge(c, s[c]);
|
|
2648
2648
|
else {
|
|
2649
2649
|
if (d)
|
|
2650
2650
|
throw new Error("Input graph is not connected: " + i);
|
|
2651
2651
|
d = !0;
|
|
2652
2652
|
}
|
|
2653
|
-
i.nodeEdges(
|
|
2653
|
+
i.nodeEdges(c).forEach(u);
|
|
2654
2654
|
}
|
|
2655
2655
|
return o;
|
|
2656
2656
|
}
|
|
@@ -2715,9 +2715,9 @@ function C1() {
|
|
|
2715
2715
|
ac = 1;
|
|
2716
2716
|
var e = tr(), t = Wn(), n = nr(), r = Yn(), i = Object.prototype, a = i.hasOwnProperty, o = e(function(s, l) {
|
|
2717
2717
|
s = Object(s);
|
|
2718
|
-
var
|
|
2719
|
-
for (d && n(l[0], l[1], d) && (
|
|
2720
|
-
for (var f = l[
|
|
2718
|
+
var c = -1, u = l.length, d = u > 2 ? l[2] : void 0;
|
|
2719
|
+
for (d && n(l[0], l[1], d) && (u = 1); ++c < u; )
|
|
2720
|
+
for (var f = l[c], h = r(f), w = -1, _ = h.length; ++w < _; ) {
|
|
2721
2721
|
var v = h[w], p = s[v];
|
|
2722
2722
|
(p === void 0 || t(p, i[v]) && !a.call(s, v)) && (s[v] = f[v]);
|
|
2723
2723
|
}
|
|
@@ -2734,13 +2734,13 @@ function w1() {
|
|
|
2734
2734
|
return function(a, o, s) {
|
|
2735
2735
|
var l = Object(a);
|
|
2736
2736
|
if (!t(a)) {
|
|
2737
|
-
var
|
|
2737
|
+
var c = e(o, 3);
|
|
2738
2738
|
a = n(a), o = function(d) {
|
|
2739
|
-
return
|
|
2739
|
+
return c(l[d], d, l);
|
|
2740
2740
|
};
|
|
2741
2741
|
}
|
|
2742
|
-
var
|
|
2743
|
-
return
|
|
2742
|
+
var u = i(a, o, s);
|
|
2743
|
+
return u > -1 ? l[c ? a[u] : u] : void 0;
|
|
2744
2744
|
};
|
|
2745
2745
|
}
|
|
2746
2746
|
return _a = r, _a;
|
|
@@ -2772,20 +2772,20 @@ function L1() {
|
|
|
2772
2772
|
if (uc) return ba;
|
|
2773
2773
|
uc = 1;
|
|
2774
2774
|
var e = k1(), t = Vt(), n = an(), r = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt;
|
|
2775
|
-
function l(
|
|
2776
|
-
if (typeof
|
|
2777
|
-
return
|
|
2778
|
-
if (n(
|
|
2775
|
+
function l(c) {
|
|
2776
|
+
if (typeof c == "number")
|
|
2777
|
+
return c;
|
|
2778
|
+
if (n(c))
|
|
2779
2779
|
return r;
|
|
2780
|
-
if (t(
|
|
2781
|
-
var
|
|
2782
|
-
|
|
2780
|
+
if (t(c)) {
|
|
2781
|
+
var u = typeof c.valueOf == "function" ? c.valueOf() : c;
|
|
2782
|
+
c = t(u) ? u + "" : u;
|
|
2783
2783
|
}
|
|
2784
|
-
if (typeof
|
|
2785
|
-
return
|
|
2786
|
-
|
|
2787
|
-
var d = a.test(
|
|
2788
|
-
return d || o.test(
|
|
2784
|
+
if (typeof c != "string")
|
|
2785
|
+
return c === 0 ? c : +c;
|
|
2786
|
+
c = e(c);
|
|
2787
|
+
var d = a.test(c);
|
|
2788
|
+
return d || o.test(c) ? s(c.slice(2), d ? 2 : 8) : i.test(c) ? r : +c;
|
|
2789
2789
|
}
|
|
2790
2790
|
return ba = l, ba;
|
|
2791
2791
|
}
|
|
@@ -2825,8 +2825,8 @@ function O1() {
|
|
|
2825
2825
|
var l = a == null ? 0 : a.length;
|
|
2826
2826
|
if (!l)
|
|
2827
2827
|
return -1;
|
|
2828
|
-
var
|
|
2829
|
-
return
|
|
2828
|
+
var c = s == null ? 0 : n(s);
|
|
2829
|
+
return c < 0 && (c = r(l + c, 0)), e(a, t(o, 3), c);
|
|
2830
2830
|
}
|
|
2831
2831
|
return Sa = i, Sa;
|
|
2832
2832
|
}
|
|
@@ -2876,10 +2876,10 @@ function ks() {
|
|
|
2876
2876
|
function t(n, r, i) {
|
|
2877
2877
|
for (var a = -1, o = n.length; ++a < o; ) {
|
|
2878
2878
|
var s = n[a], l = r(s);
|
|
2879
|
-
if (l != null && (
|
|
2880
|
-
var
|
|
2879
|
+
if (l != null && (c === void 0 ? l === l && !e(l) : i(l, c)))
|
|
2880
|
+
var c = l, u = s;
|
|
2881
2881
|
}
|
|
2882
|
-
return
|
|
2882
|
+
return u;
|
|
2883
2883
|
}
|
|
2884
2884
|
return Na = t, Na;
|
|
2885
2885
|
}
|
|
@@ -2917,16 +2917,16 @@ function P1() {
|
|
|
2917
2917
|
if (bc) return Da;
|
|
2918
2918
|
bc = 1;
|
|
2919
2919
|
var e = fs(), t = bf(), n = _n(), r = "[object Object]", i = Function.prototype, a = Object.prototype, o = i.toString, s = a.hasOwnProperty, l = o.call(Object);
|
|
2920
|
-
function u
|
|
2921
|
-
if (!n(
|
|
2920
|
+
function c(u) {
|
|
2921
|
+
if (!n(u) || e(u) != r)
|
|
2922
2922
|
return !1;
|
|
2923
|
-
var d = t(
|
|
2923
|
+
var d = t(u);
|
|
2924
2924
|
if (d === null)
|
|
2925
2925
|
return !0;
|
|
2926
2926
|
var f = s.call(d, "constructor") && d.constructor;
|
|
2927
2927
|
return typeof f == "function" && f instanceof f && o.call(f) == l;
|
|
2928
2928
|
}
|
|
2929
|
-
return Da =
|
|
2929
|
+
return Da = c, Da;
|
|
2930
2930
|
}
|
|
2931
2931
|
var Pa, Cc;
|
|
2932
2932
|
function sh() {
|
|
@@ -2952,7 +2952,7 @@ var $a, Sc;
|
|
|
2952
2952
|
function $1() {
|
|
2953
2953
|
if (Sc) return $a;
|
|
2954
2954
|
Sc = 1;
|
|
2955
|
-
var e = oh(), t = bm(), n = Cm(), r = wm(), i = Sm(), a = Kn(), o = He(), s = Zf(), l = jn(),
|
|
2955
|
+
var e = oh(), t = bm(), n = Cm(), r = wm(), i = Sm(), a = Kn(), o = He(), s = Zf(), l = jn(), c = ms(), u = Vt(), d = P1(), f = zn(), h = sh(), w = M1();
|
|
2956
2956
|
function _(v, p, g, y, m, C, S) {
|
|
2957
2957
|
var b = h(v, g), N = h(p, g), R = S.get(N);
|
|
2958
2958
|
if (R) {
|
|
@@ -2962,7 +2962,7 @@ function $1() {
|
|
|
2962
2962
|
var D = C ? C(b, N, g + "", v, p, S) : void 0, B = D === void 0;
|
|
2963
2963
|
if (B) {
|
|
2964
2964
|
var q = o(N), Z = !q && l(N), re = !q && !Z && f(N);
|
|
2965
|
-
D = N, q || Z || re ? o(b) ? D = b : s(b) ? D = r(b) : Z ? (B = !1, D = t(N, !0)) : re ? (B = !1, D = n(N, !0)) : D = [] : d(N) || a(N) ? (D = b, a(b) ? D = w(b) : (!
|
|
2965
|
+
D = N, q || Z || re ? o(b) ? D = b : s(b) ? D = r(b) : Z ? (B = !1, D = t(N, !0)) : re ? (B = !1, D = n(N, !0)) : D = [] : d(N) || a(N) ? (D = b, a(b) ? D = w(b) : (!u(b) || c(b)) && (D = i(N))) : B = !1;
|
|
2966
2966
|
}
|
|
2967
2967
|
B && (S.set(N, D), m(D, N, y, C, S), S.delete(N)), e(v, g, D);
|
|
2968
2968
|
}
|
|
@@ -2973,12 +2973,12 @@ function x1() {
|
|
|
2973
2973
|
if (kc) return xa;
|
|
2974
2974
|
kc = 1;
|
|
2975
2975
|
var e = cs(), t = oh(), n = vs(), r = $1(), i = Vt(), a = Yn(), o = sh();
|
|
2976
|
-
function s(l,
|
|
2977
|
-
l !==
|
|
2976
|
+
function s(l, c, u, d, f) {
|
|
2977
|
+
l !== c && n(c, function(h, w) {
|
|
2978
2978
|
if (f || (f = new e()), i(h))
|
|
2979
|
-
r(l,
|
|
2979
|
+
r(l, c, w, u, s, d, f);
|
|
2980
2980
|
else {
|
|
2981
|
-
var _ = d ? d(o(l, w), h, w + "", l,
|
|
2981
|
+
var _ = d ? d(o(l, w), h, w + "", l, c, f) : void 0;
|
|
2982
2982
|
_ === void 0 && (_ = h), t(l, w, _);
|
|
2983
2983
|
}
|
|
2984
2984
|
}, a);
|
|
@@ -2992,10 +2992,10 @@ function q1() {
|
|
|
2992
2992
|
var e = tr(), t = nr();
|
|
2993
2993
|
function n(r) {
|
|
2994
2994
|
return e(function(i, a) {
|
|
2995
|
-
var o = -1, s = a.length, l = s > 1 ? a[s - 1] : void 0,
|
|
2996
|
-
for (l = r.length > 3 && typeof l == "function" ? (s--, l) : void 0,
|
|
2997
|
-
var
|
|
2998
|
-
|
|
2995
|
+
var o = -1, s = a.length, l = s > 1 ? a[s - 1] : void 0, c = s > 2 ? a[2] : void 0;
|
|
2996
|
+
for (l = r.length > 3 && typeof l == "function" ? (s--, l) : void 0, c && t(a[0], a[1], c) && (l = s < 3 ? void 0 : l, s = 1), i = Object(i); ++o < s; ) {
|
|
2997
|
+
var u = a[o];
|
|
2998
|
+
u && r(i, u, o, l);
|
|
2999
2999
|
}
|
|
3000
3000
|
return i;
|
|
3001
3001
|
});
|
|
@@ -3054,17 +3054,17 @@ function G1() {
|
|
|
3054
3054
|
if (Rc) return Ba;
|
|
3055
3055
|
Rc = 1;
|
|
3056
3056
|
var e = Cf(), t = Jn(), n = hs(), r = Vt(), i = En();
|
|
3057
|
-
function a(o, s, l,
|
|
3057
|
+
function a(o, s, l, c) {
|
|
3058
3058
|
if (!r(o))
|
|
3059
3059
|
return o;
|
|
3060
3060
|
s = t(s, o);
|
|
3061
|
-
for (var
|
|
3062
|
-
var w = i(s[
|
|
3061
|
+
for (var u = -1, d = s.length, f = d - 1, h = o; h != null && ++u < d; ) {
|
|
3062
|
+
var w = i(s[u]), _ = l;
|
|
3063
3063
|
if (w === "__proto__" || w === "constructor" || w === "prototype")
|
|
3064
3064
|
return o;
|
|
3065
|
-
if (
|
|
3065
|
+
if (u != f) {
|
|
3066
3066
|
var v = h[w];
|
|
3067
|
-
_ =
|
|
3067
|
+
_ = c ? c(v, w, h) : void 0, _ === void 0 && (_ = r(v) ? v : n(s[u + 1]) ? [] : {});
|
|
3068
3068
|
}
|
|
3069
3069
|
e(h, w, _), h = h[w];
|
|
3070
3070
|
}
|
|
@@ -3078,11 +3078,11 @@ function B1() {
|
|
|
3078
3078
|
Dc = 1;
|
|
3079
3079
|
var e = Qn(), t = G1(), n = Jn();
|
|
3080
3080
|
function r(i, a, o) {
|
|
3081
|
-
for (var s = -1, l = a.length,
|
|
3082
|
-
var
|
|
3083
|
-
o(d,
|
|
3081
|
+
for (var s = -1, l = a.length, c = {}; ++s < l; ) {
|
|
3082
|
+
var u = a[s], d = e(i, u);
|
|
3083
|
+
o(d, u) && t(c, n(u, i), d);
|
|
3084
3084
|
}
|
|
3085
|
-
return
|
|
3085
|
+
return c;
|
|
3086
3086
|
}
|
|
3087
3087
|
return Wa = r, Wa;
|
|
3088
3088
|
}
|
|
@@ -3123,9 +3123,9 @@ function K1() {
|
|
|
3123
3123
|
xc = 1;
|
|
3124
3124
|
var e = Math.ceil, t = Math.max;
|
|
3125
3125
|
function n(r, i, a, o) {
|
|
3126
|
-
for (var s = -1, l = t(e((i - r) / (a || 1)), 0),
|
|
3127
|
-
|
|
3128
|
-
return
|
|
3126
|
+
for (var s = -1, l = t(e((i - r) / (a || 1)), 0), c = Array(l); l--; )
|
|
3127
|
+
c[o ? l : ++s] = r, r += a;
|
|
3128
|
+
return c;
|
|
3129
3129
|
}
|
|
3130
3130
|
return Ya = n, Ya;
|
|
3131
3131
|
}
|
|
@@ -3167,10 +3167,10 @@ function J1() {
|
|
|
3167
3167
|
var e = an();
|
|
3168
3168
|
function t(n, r) {
|
|
3169
3169
|
if (n !== r) {
|
|
3170
|
-
var i = n !== void 0, a = n === null, o = n === n, s = e(n), l = r !== void 0,
|
|
3171
|
-
if (!
|
|
3170
|
+
var i = n !== void 0, a = n === null, o = n === n, s = e(n), l = r !== void 0, c = r === null, u = r === r, d = e(r);
|
|
3171
|
+
if (!c && !d && !s && n > r || s && l && u && !c && !d || a && l && u || !i && u || !o)
|
|
3172
3172
|
return 1;
|
|
3173
|
-
if (!a && !s && !d && n < r || d && i && o && !a && !s ||
|
|
3173
|
+
if (!a && !s && !d && n < r || d && i && o && !a && !s || c && i && o || !l && o || !u)
|
|
3174
3174
|
return -1;
|
|
3175
3175
|
}
|
|
3176
3176
|
return 0;
|
|
@@ -3183,13 +3183,13 @@ function Q1() {
|
|
|
3183
3183
|
Hc = 1;
|
|
3184
3184
|
var e = J1();
|
|
3185
3185
|
function t(n, r, i) {
|
|
3186
|
-
for (var a = -1, o = n.criteria, s = r.criteria, l = o.length,
|
|
3187
|
-
var
|
|
3188
|
-
if (
|
|
3189
|
-
if (a >=
|
|
3190
|
-
return
|
|
3186
|
+
for (var a = -1, o = n.criteria, s = r.criteria, l = o.length, c = i.length; ++a < l; ) {
|
|
3187
|
+
var u = e(o[a], s[a]);
|
|
3188
|
+
if (u) {
|
|
3189
|
+
if (a >= c)
|
|
3190
|
+
return u;
|
|
3191
3191
|
var d = i[a];
|
|
3192
|
-
return
|
|
3192
|
+
return u * (d == "desc" ? -1 : 1);
|
|
3193
3193
|
}
|
|
3194
3194
|
}
|
|
3195
3195
|
return n.index - r.index;
|
|
@@ -3201,7 +3201,7 @@ function e_() {
|
|
|
3201
3201
|
if (Gc) return to;
|
|
3202
3202
|
Gc = 1;
|
|
3203
3203
|
var e = Zn(), t = Qn(), n = Ct(), r = Wf(), i = Z1(), a = Lm(), o = Q1(), s = Gt(), l = He();
|
|
3204
|
-
function u
|
|
3204
|
+
function c(u, d, f) {
|
|
3205
3205
|
d.length ? d = e(d, function(_) {
|
|
3206
3206
|
return l(_) ? function(v) {
|
|
3207
3207
|
return t(v, _.length === 1 ? _[0] : _);
|
|
@@ -3209,7 +3209,7 @@ function e_() {
|
|
|
3209
3209
|
}) : d = [s];
|
|
3210
3210
|
var h = -1;
|
|
3211
3211
|
d = e(d, a(n));
|
|
3212
|
-
var w = r(
|
|
3212
|
+
var w = r(u, function(_, v, p) {
|
|
3213
3213
|
var g = e(d, function(y) {
|
|
3214
3214
|
return y(_);
|
|
3215
3215
|
});
|
|
@@ -3219,7 +3219,7 @@ function e_() {
|
|
|
3219
3219
|
return o(_, v, f);
|
|
3220
3220
|
});
|
|
3221
3221
|
}
|
|
3222
|
-
return to =
|
|
3222
|
+
return to = c, to;
|
|
3223
3223
|
}
|
|
3224
3224
|
var no, Bc;
|
|
3225
3225
|
function t_() {
|
|
@@ -3342,46 +3342,46 @@ function o_() {
|
|
|
3342
3342
|
var e = Se(), t = dt().Graph, n = a_();
|
|
3343
3343
|
lo = i;
|
|
3344
3344
|
var r = e.constant(1);
|
|
3345
|
-
function i(
|
|
3346
|
-
if (
|
|
3345
|
+
function i(c, u) {
|
|
3346
|
+
if (c.nodeCount() <= 1)
|
|
3347
3347
|
return [];
|
|
3348
|
-
var d = s(
|
|
3348
|
+
var d = s(c, u || r), f = a(d.graph, d.buckets, d.zeroIdx);
|
|
3349
3349
|
return e.flatten(e.map(f, function(h) {
|
|
3350
|
-
return
|
|
3350
|
+
return c.outEdges(h.v, h.w);
|
|
3351
3351
|
}), !0);
|
|
3352
3352
|
}
|
|
3353
|
-
function a(
|
|
3354
|
-
for (var f = [], h =
|
|
3353
|
+
function a(c, u, d) {
|
|
3354
|
+
for (var f = [], h = u[u.length - 1], w = u[0], _; c.nodeCount(); ) {
|
|
3355
3355
|
for (; _ = w.dequeue(); )
|
|
3356
|
-
o(
|
|
3356
|
+
o(c, u, d, _);
|
|
3357
3357
|
for (; _ = h.dequeue(); )
|
|
3358
|
-
o(
|
|
3359
|
-
if (
|
|
3360
|
-
for (var v =
|
|
3361
|
-
if (_ =
|
|
3362
|
-
f = f.concat(o(
|
|
3358
|
+
o(c, u, d, _);
|
|
3359
|
+
if (c.nodeCount()) {
|
|
3360
|
+
for (var v = u.length - 2; v > 0; --v)
|
|
3361
|
+
if (_ = u[v].dequeue(), _) {
|
|
3362
|
+
f = f.concat(o(c, u, d, _, !0));
|
|
3363
3363
|
break;
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
3366
|
}
|
|
3367
3367
|
return f;
|
|
3368
3368
|
}
|
|
3369
|
-
function o(
|
|
3369
|
+
function o(c, u, d, f, h) {
|
|
3370
3370
|
var w = h ? [] : void 0;
|
|
3371
|
-
return e.forEach(
|
|
3372
|
-
var v =
|
|
3373
|
-
h && w.push({ v: _.v, w: _.w }), p.out -= v, l(
|
|
3374
|
-
}), e.forEach(
|
|
3375
|
-
var v =
|
|
3376
|
-
g.in -= v, l(
|
|
3377
|
-
}),
|
|
3378
|
-
}
|
|
3379
|
-
function s(
|
|
3371
|
+
return e.forEach(c.inEdges(f.v), function(_) {
|
|
3372
|
+
var v = c.edge(_), p = c.node(_.v);
|
|
3373
|
+
h && w.push({ v: _.v, w: _.w }), p.out -= v, l(u, d, p);
|
|
3374
|
+
}), e.forEach(c.outEdges(f.v), function(_) {
|
|
3375
|
+
var v = c.edge(_), p = _.w, g = c.node(p);
|
|
3376
|
+
g.in -= v, l(u, d, g);
|
|
3377
|
+
}), c.removeNode(f.v), w;
|
|
3378
|
+
}
|
|
3379
|
+
function s(c, u) {
|
|
3380
3380
|
var d = new t(), f = 0, h = 0;
|
|
3381
|
-
e.forEach(
|
|
3381
|
+
e.forEach(c.nodes(), function(v) {
|
|
3382
3382
|
d.setNode(v, { v, in: 0, out: 0 });
|
|
3383
|
-
}), e.forEach(
|
|
3384
|
-
var p = d.edge(v.v, v.w) || 0, g =
|
|
3383
|
+
}), e.forEach(c.edges(), function(v) {
|
|
3384
|
+
var p = d.edge(v.v, v.w) || 0, g = u(v), y = p + g;
|
|
3385
3385
|
d.setEdge(v.v, v.w, y), h = Math.max(h, d.node(v.v).out += g), f = Math.max(f, d.node(v.w).in += g);
|
|
3386
3386
|
});
|
|
3387
3387
|
var w = e.range(h + f + 3).map(function() {
|
|
@@ -3391,8 +3391,8 @@ function o_() {
|
|
|
3391
3391
|
l(w, _, d.node(v));
|
|
3392
3392
|
}), { graph: d, buckets: w, zeroIdx: _ };
|
|
3393
3393
|
}
|
|
3394
|
-
function l(
|
|
3395
|
-
d.out ? d.in ?
|
|
3394
|
+
function l(c, u, d) {
|
|
3395
|
+
d.out ? d.in ? c[d.out - d.in + u].enqueue(d) : c[c.length - 1].enqueue(d) : c[0].enqueue(d);
|
|
3396
3396
|
}
|
|
3397
3397
|
return lo;
|
|
3398
3398
|
}
|
|
@@ -3408,23 +3408,23 @@ function s_() {
|
|
|
3408
3408
|
function n(a) {
|
|
3409
3409
|
var o = a.graph().acyclicer === "greedy" ? t(a, s(a)) : r(a);
|
|
3410
3410
|
e.forEach(o, function(l) {
|
|
3411
|
-
var
|
|
3412
|
-
a.removeEdge(l),
|
|
3411
|
+
var c = a.edge(l);
|
|
3412
|
+
a.removeEdge(l), c.forwardName = l.name, c.reversed = !0, a.setEdge(l.w, l.v, c, e.uniqueId("rev"));
|
|
3413
3413
|
});
|
|
3414
3414
|
function s(l) {
|
|
3415
|
-
return function(
|
|
3416
|
-
return l.edge(
|
|
3415
|
+
return function(c) {
|
|
3416
|
+
return l.edge(c).weight;
|
|
3417
3417
|
};
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
3420
|
function r(a) {
|
|
3421
3421
|
var o = [], s = {}, l = {};
|
|
3422
|
-
function u
|
|
3423
|
-
e.has(l,
|
|
3424
|
-
e.has(s, d.w) ? o.push(d) :
|
|
3425
|
-
}), delete s[
|
|
3422
|
+
function c(u) {
|
|
3423
|
+
e.has(l, u) || (l[u] = !0, s[u] = !0, e.forEach(a.outEdges(u), function(d) {
|
|
3424
|
+
e.has(s, d.w) ? o.push(d) : c(d.w);
|
|
3425
|
+
}), delete s[u]);
|
|
3426
3426
|
}
|
|
3427
|
-
return e.forEach(a.nodes(),
|
|
3427
|
+
return e.forEach(a.nodes(), c), o;
|
|
3428
3428
|
}
|
|
3429
3429
|
function i(a) {
|
|
3430
3430
|
e.forEach(a.edges(), function(o) {
|
|
@@ -3451,8 +3451,8 @@ function Ye() {
|
|
|
3451
3451
|
predecessorWeights: o,
|
|
3452
3452
|
intersectRect: s,
|
|
3453
3453
|
buildLayerMatrix: l,
|
|
3454
|
-
normalizeRanks:
|
|
3455
|
-
removeEmptyRanks:
|
|
3454
|
+
normalizeRanks: c,
|
|
3455
|
+
removeEmptyRanks: u,
|
|
3456
3456
|
addBorderNode: d,
|
|
3457
3457
|
maxRank: f,
|
|
3458
3458
|
partition: h,
|
|
@@ -3520,7 +3520,7 @@ function Ye() {
|
|
|
3520
3520
|
e.isUndefined(m) || (p[m][y.order] = g);
|
|
3521
3521
|
}), p;
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3523
|
+
function c(v) {
|
|
3524
3524
|
var p = e.min(e.map(v.nodes(), function(g) {
|
|
3525
3525
|
return v.node(g).rank;
|
|
3526
3526
|
}));
|
|
@@ -3529,7 +3529,7 @@ function Ye() {
|
|
|
3529
3529
|
e.has(y, "rank") && (y.rank -= p);
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function u(v) {
|
|
3533
3533
|
var p = e.min(e.map(v.nodes(), function(C) {
|
|
3534
3534
|
return v.node(C).rank;
|
|
3535
3535
|
})), g = [];
|
|
@@ -3592,11 +3592,11 @@ function l_() {
|
|
|
3592
3592
|
});
|
|
3593
3593
|
}
|
|
3594
3594
|
function r(a, o) {
|
|
3595
|
-
var s = o.v, l = a.node(s).rank,
|
|
3596
|
-
if (
|
|
3595
|
+
var s = o.v, l = a.node(s).rank, c = o.w, u = a.node(c).rank, d = o.name, f = a.edge(o), h = f.labelRank;
|
|
3596
|
+
if (u !== l + 1) {
|
|
3597
3597
|
a.removeEdge(o);
|
|
3598
3598
|
var w, _, v;
|
|
3599
|
-
for (v = 0, ++l; l <
|
|
3599
|
+
for (v = 0, ++l; l < u; ++v, ++l)
|
|
3600
3600
|
f.points = [], _ = {
|
|
3601
3601
|
width: 0,
|
|
3602
3602
|
height: 0,
|
|
@@ -3604,14 +3604,14 @@ function l_() {
|
|
|
3604
3604
|
edgeObj: o,
|
|
3605
3605
|
rank: l
|
|
3606
3606
|
}, w = t.addDummyNode(a, "edge", _, "_d"), l === h && (_.width = f.width, _.height = f.height, _.dummy = "edge-label", _.labelpos = f.labelpos), a.setEdge(s, w, { weight: f.weight }, d), v === 0 && a.graph().dummyChains.push(w), s = w;
|
|
3607
|
-
a.setEdge(s,
|
|
3607
|
+
a.setEdge(s, c, { weight: f.weight }, d);
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
3610
3610
|
function i(a) {
|
|
3611
3611
|
e.forEach(a.graph().dummyChains, function(o) {
|
|
3612
|
-
var s = a.node(o), l = s.edgeLabel,
|
|
3612
|
+
var s = a.node(o), l = s.edgeLabel, c;
|
|
3613
3613
|
for (a.setEdge(s.edgeObj, l); s.dummy; )
|
|
3614
|
-
|
|
3614
|
+
c = a.successors(o)[0], a.removeNode(o), l.points.push({ x: s.x, y: s.y }), s.dummy === "edge-label" && (l.x = s.x, l.y = s.y, l.width = s.width, l.height = s.height), o = c, s = a.node(o);
|
|
3615
3615
|
});
|
|
3616
3616
|
}
|
|
3617
3617
|
return fo;
|
|
@@ -3632,8 +3632,8 @@ function Mn() {
|
|
|
3632
3632
|
if (e.has(i, o))
|
|
3633
3633
|
return s.rank;
|
|
3634
3634
|
i[o] = !0;
|
|
3635
|
-
var l = e.min(e.map(r.outEdges(o), function(
|
|
3636
|
-
return a(
|
|
3635
|
+
var l = e.min(e.map(r.outEdges(o), function(c) {
|
|
3636
|
+
return a(c.w) - r.edge(c).minlen;
|
|
3637
3637
|
}));
|
|
3638
3638
|
return (l === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
|
|
3639
3639
|
l === void 0 || // return value of _.map([]) for Lodash 4
|
|
@@ -3653,30 +3653,30 @@ function uh() {
|
|
|
3653
3653
|
var e = Se(), t = dt().Graph, n = Mn().slack;
|
|
3654
3654
|
po = r;
|
|
3655
3655
|
function r(s) {
|
|
3656
|
-
var l = new t({ directed: !1 }),
|
|
3657
|
-
l.setNode(
|
|
3658
|
-
for (var d, f; i(l, s) <
|
|
3656
|
+
var l = new t({ directed: !1 }), c = s.nodes()[0], u = s.nodeCount();
|
|
3657
|
+
l.setNode(c, {});
|
|
3658
|
+
for (var d, f; i(l, s) < u; )
|
|
3659
3659
|
d = a(l, s), f = l.hasNode(d.v) ? n(s, d) : -n(s, d), o(l, s, f);
|
|
3660
3660
|
return l;
|
|
3661
3661
|
}
|
|
3662
3662
|
function i(s, l) {
|
|
3663
|
-
function u
|
|
3664
|
-
e.forEach(l.nodeEdges(
|
|
3665
|
-
var f = d.v, h =
|
|
3666
|
-
!s.hasNode(h) && !n(l, d) && (s.setNode(h, {}), s.setEdge(
|
|
3663
|
+
function c(u) {
|
|
3664
|
+
e.forEach(l.nodeEdges(u), function(d) {
|
|
3665
|
+
var f = d.v, h = u === f ? d.w : f;
|
|
3666
|
+
!s.hasNode(h) && !n(l, d) && (s.setNode(h, {}), s.setEdge(u, h, {}), c(h));
|
|
3667
3667
|
});
|
|
3668
3668
|
}
|
|
3669
|
-
return e.forEach(s.nodes(),
|
|
3669
|
+
return e.forEach(s.nodes(), c), s.nodeCount();
|
|
3670
3670
|
}
|
|
3671
3671
|
function a(s, l) {
|
|
3672
|
-
return e.minBy(l.edges(), function(
|
|
3673
|
-
if (s.hasNode(
|
|
3674
|
-
return n(l,
|
|
3672
|
+
return e.minBy(l.edges(), function(c) {
|
|
3673
|
+
if (s.hasNode(c.v) !== s.hasNode(c.w))
|
|
3674
|
+
return n(l, c);
|
|
3675
3675
|
});
|
|
3676
3676
|
}
|
|
3677
|
-
function o(s, l,
|
|
3678
|
-
e.forEach(s.nodes(), function(
|
|
3679
|
-
l.node(
|
|
3677
|
+
function o(s, l, c) {
|
|
3678
|
+
e.forEach(s.nodes(), function(u) {
|
|
3679
|
+
l.node(u).rank += c;
|
|
3680
3680
|
});
|
|
3681
3681
|
}
|
|
3682
3682
|
return po;
|
|
@@ -3686,7 +3686,7 @@ function u_() {
|
|
|
3686
3686
|
if (nd) return mo;
|
|
3687
3687
|
nd = 1;
|
|
3688
3688
|
var e = Se(), t = uh(), n = Mn().slack, r = Mn().longestPath, i = dt().alg.preorder, a = dt().alg.postorder, o = Ye().simplify;
|
|
3689
|
-
mo = s, s.initLowLimValues = d, s.initCutValues = l, s.calcCutValue =
|
|
3689
|
+
mo = s, s.initLowLimValues = d, s.initCutValues = l, s.calcCutValue = u, s.leaveEdge = h, s.enterEdge = w, s.exchangeEdges = _;
|
|
3690
3690
|
function s(y) {
|
|
3691
3691
|
y = o(y), r(y);
|
|
3692
3692
|
var m = t(y);
|
|
@@ -3697,14 +3697,14 @@ function u_() {
|
|
|
3697
3697
|
function l(y, m) {
|
|
3698
3698
|
var C = a(y, y.nodes());
|
|
3699
3699
|
C = C.slice(0, C.length - 1), e.forEach(C, function(S) {
|
|
3700
|
-
|
|
3700
|
+
c(y, m, S);
|
|
3701
3701
|
});
|
|
3702
3702
|
}
|
|
3703
|
-
function
|
|
3703
|
+
function c(y, m, C) {
|
|
3704
3704
|
var S = y.node(C), b = S.parent;
|
|
3705
|
-
y.edge(C, b).cutvalue =
|
|
3705
|
+
y.edge(C, b).cutvalue = u(y, m, C);
|
|
3706
3706
|
}
|
|
3707
|
-
function
|
|
3707
|
+
function u(y, m, C) {
|
|
3708
3708
|
var S = y.node(C), b = S.parent, N = !0, R = m.edge(C, b), D = 0;
|
|
3709
3709
|
return R || (N = !1, R = m.edge(b, C)), D = R.weight, e.forEach(m.nodeEdges(C), function(B) {
|
|
3710
3710
|
var q = B.v === C, Z = q ? B.w : B.v;
|
|
@@ -3803,36 +3803,36 @@ function d_() {
|
|
|
3803
3803
|
function t(i) {
|
|
3804
3804
|
var a = r(i);
|
|
3805
3805
|
e.forEach(i.graph().dummyChains, function(o) {
|
|
3806
|
-
for (var s = i.node(o), l = s.edgeObj,
|
|
3806
|
+
for (var s = i.node(o), l = s.edgeObj, c = n(i, a, l.v, l.w), u = c.path, d = c.lca, f = 0, h = u[f], w = !0; o !== l.w; ) {
|
|
3807
3807
|
if (s = i.node(o), w) {
|
|
3808
|
-
for (; (h =
|
|
3808
|
+
for (; (h = u[f]) !== d && i.node(h).maxRank < s.rank; )
|
|
3809
3809
|
f++;
|
|
3810
3810
|
h === d && (w = !1);
|
|
3811
3811
|
}
|
|
3812
3812
|
if (!w) {
|
|
3813
|
-
for (; f <
|
|
3813
|
+
for (; f < u.length - 1 && i.node(h = u[f + 1]).minRank <= s.rank; )
|
|
3814
3814
|
f++;
|
|
3815
|
-
h =
|
|
3815
|
+
h = u[f];
|
|
3816
3816
|
}
|
|
3817
3817
|
i.setParent(o, h), o = i.successors(o)[0];
|
|
3818
3818
|
}
|
|
3819
3819
|
});
|
|
3820
3820
|
}
|
|
3821
3821
|
function n(i, a, o, s) {
|
|
3822
|
-
var l = [],
|
|
3822
|
+
var l = [], c = [], u = Math.min(a[o].low, a[s].low), d = Math.max(a[o].lim, a[s].lim), f, h;
|
|
3823
3823
|
f = o;
|
|
3824
3824
|
do
|
|
3825
3825
|
f = i.parent(f), l.push(f);
|
|
3826
|
-
while (f && (a[f].low >
|
|
3826
|
+
while (f && (a[f].low > u || d > a[f].lim));
|
|
3827
3827
|
for (h = f, f = s; (f = i.parent(f)) !== h; )
|
|
3828
|
-
|
|
3829
|
-
return { path: l.concat(
|
|
3828
|
+
c.push(f);
|
|
3829
|
+
return { path: l.concat(c.reverse()), lca: h };
|
|
3830
3830
|
}
|
|
3831
3831
|
function r(i) {
|
|
3832
3832
|
var a = {}, o = 0;
|
|
3833
3833
|
function s(l) {
|
|
3834
|
-
var
|
|
3835
|
-
e.forEach(i.children(l), s), a[l] = { low:
|
|
3834
|
+
var c = o;
|
|
3835
|
+
e.forEach(i.children(l), s), a[l] = { low: c, lim: o++ };
|
|
3836
3836
|
}
|
|
3837
3837
|
return e.forEach(i.children(), s), a;
|
|
3838
3838
|
}
|
|
@@ -3848,25 +3848,25 @@ function f_() {
|
|
|
3848
3848
|
cleanup: o
|
|
3849
3849
|
};
|
|
3850
3850
|
function n(s) {
|
|
3851
|
-
var l = t.addDummyNode(s, "root", {}, "_root"),
|
|
3851
|
+
var l = t.addDummyNode(s, "root", {}, "_root"), c = i(s), u = e.max(e.values(c)) - 1, d = 2 * u + 1;
|
|
3852
3852
|
s.graph().nestingRoot = l, e.forEach(s.edges(), function(h) {
|
|
3853
3853
|
s.edge(h).minlen *= d;
|
|
3854
3854
|
});
|
|
3855
3855
|
var f = a(s) + 1;
|
|
3856
3856
|
e.forEach(s.children(), function(h) {
|
|
3857
|
-
r(s, l, d, f,
|
|
3857
|
+
r(s, l, d, f, u, c, h);
|
|
3858
3858
|
}), s.graph().nodeRankFactor = d;
|
|
3859
3859
|
}
|
|
3860
|
-
function r(s, l,
|
|
3860
|
+
function r(s, l, c, u, d, f, h) {
|
|
3861
3861
|
var w = s.children(h);
|
|
3862
3862
|
if (!w.length) {
|
|
3863
|
-
h !== l && s.setEdge(l, h, { weight: 0, minlen:
|
|
3863
|
+
h !== l && s.setEdge(l, h, { weight: 0, minlen: c });
|
|
3864
3864
|
return;
|
|
3865
3865
|
}
|
|
3866
3866
|
var _ = t.addBorderNode(s, "_bt"), v = t.addBorderNode(s, "_bb"), p = s.node(h);
|
|
3867
3867
|
s.setParent(_, h), p.borderTop = _, s.setParent(v, h), p.borderBottom = v, e.forEach(w, function(g) {
|
|
3868
|
-
r(s, l,
|
|
3869
|
-
var y = s.node(g), m = y.borderTop ? y.borderTop : g, C = y.borderBottom ? y.borderBottom : g, S = y.borderTop ?
|
|
3868
|
+
r(s, l, c, u, d, f, g);
|
|
3869
|
+
var y = s.node(g), m = y.borderTop ? y.borderTop : g, C = y.borderBottom ? y.borderBottom : g, S = y.borderTop ? u : 2 * u, b = m !== C ? 1 : d - f[h] + 1;
|
|
3870
3870
|
s.setEdge(_, m, {
|
|
3871
3871
|
weight: S,
|
|
3872
3872
|
minlen: b,
|
|
@@ -3880,26 +3880,26 @@ function f_() {
|
|
|
3880
3880
|
}
|
|
3881
3881
|
function i(s) {
|
|
3882
3882
|
var l = {};
|
|
3883
|
-
function u
|
|
3884
|
-
var f = s.children(
|
|
3883
|
+
function c(u, d) {
|
|
3884
|
+
var f = s.children(u);
|
|
3885
3885
|
f && f.length && e.forEach(f, function(h) {
|
|
3886
|
-
|
|
3887
|
-
}), l[
|
|
3886
|
+
c(h, d + 1);
|
|
3887
|
+
}), l[u] = d;
|
|
3888
3888
|
}
|
|
3889
|
-
return e.forEach(s.children(), function(
|
|
3890
|
-
u
|
|
3889
|
+
return e.forEach(s.children(), function(u) {
|
|
3890
|
+
c(u, 1);
|
|
3891
3891
|
}), l;
|
|
3892
3892
|
}
|
|
3893
3893
|
function a(s) {
|
|
3894
|
-
return e.reduce(s.edges(), function(l,
|
|
3895
|
-
return l + s.edge(
|
|
3894
|
+
return e.reduce(s.edges(), function(l, c) {
|
|
3895
|
+
return l + s.edge(c).weight;
|
|
3896
3896
|
}, 0);
|
|
3897
3897
|
}
|
|
3898
3898
|
function o(s) {
|
|
3899
3899
|
var l = s.graph();
|
|
3900
|
-
s.removeNode(l.nestingRoot), delete l.nestingRoot, e.forEach(s.edges(), function(
|
|
3901
|
-
var
|
|
3902
|
-
|
|
3900
|
+
s.removeNode(l.nestingRoot), delete l.nestingRoot, e.forEach(s.edges(), function(c) {
|
|
3901
|
+
var u = s.edge(c);
|
|
3902
|
+
u.nestingEdge && s.removeEdge(c);
|
|
3903
3903
|
});
|
|
3904
3904
|
}
|
|
3905
3905
|
return _o;
|
|
@@ -3915,15 +3915,15 @@ function h_() {
|
|
|
3915
3915
|
var s = i.children(o), l = i.node(o);
|
|
3916
3916
|
if (s.length && e.forEach(s, a), e.has(l, "minRank")) {
|
|
3917
3917
|
l.borderLeft = [], l.borderRight = [];
|
|
3918
|
-
for (var
|
|
3919
|
-
r(i, "borderLeft", "_bl", o, l,
|
|
3918
|
+
for (var c = l.minRank, u = l.maxRank + 1; c < u; ++c)
|
|
3919
|
+
r(i, "borderLeft", "_bl", o, l, c), r(i, "borderRight", "_br", o, l, c);
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
3922
3922
|
e.forEach(i.children(), a);
|
|
3923
3923
|
}
|
|
3924
|
-
function r(i, a, o, s, l,
|
|
3925
|
-
var
|
|
3926
|
-
l[a][
|
|
3924
|
+
function r(i, a, o, s, l, c) {
|
|
3925
|
+
var u = { width: 0, height: 0, rank: c, borderType: a }, d = l[a][c - 1], f = t.addDummyNode(i, "border", u, o);
|
|
3926
|
+
l[a][c] = f, i.setParent(f, s), d && i.setEdge(d, f, { weight: 1 });
|
|
3927
3927
|
}
|
|
3928
3928
|
return yo;
|
|
3929
3929
|
}
|
|
@@ -3936,47 +3936,47 @@ function p_() {
|
|
|
3936
3936
|
adjust: t,
|
|
3937
3937
|
undo: n
|
|
3938
3938
|
};
|
|
3939
|
-
function t(
|
|
3940
|
-
var
|
|
3941
|
-
(
|
|
3942
|
-
}
|
|
3943
|
-
function n(
|
|
3944
|
-
var
|
|
3945
|
-
(
|
|
3946
|
-
}
|
|
3947
|
-
function r(
|
|
3948
|
-
e.forEach(
|
|
3949
|
-
i(
|
|
3950
|
-
}), e.forEach(
|
|
3951
|
-
i(
|
|
3939
|
+
function t(c) {
|
|
3940
|
+
var u = c.graph().rankdir.toLowerCase();
|
|
3941
|
+
(u === "lr" || u === "rl") && r(c);
|
|
3942
|
+
}
|
|
3943
|
+
function n(c) {
|
|
3944
|
+
var u = c.graph().rankdir.toLowerCase();
|
|
3945
|
+
(u === "bt" || u === "rl") && a(c), (u === "lr" || u === "rl") && (s(c), r(c));
|
|
3946
|
+
}
|
|
3947
|
+
function r(c) {
|
|
3948
|
+
e.forEach(c.nodes(), function(u) {
|
|
3949
|
+
i(c.node(u));
|
|
3950
|
+
}), e.forEach(c.edges(), function(u) {
|
|
3951
|
+
i(c.edge(u));
|
|
3952
3952
|
});
|
|
3953
3953
|
}
|
|
3954
|
-
function i(
|
|
3955
|
-
var
|
|
3956
|
-
|
|
3957
|
-
}
|
|
3958
|
-
function a(
|
|
3959
|
-
e.forEach(
|
|
3960
|
-
o(
|
|
3961
|
-
}), e.forEach(
|
|
3962
|
-
var d =
|
|
3954
|
+
function i(c) {
|
|
3955
|
+
var u = c.width;
|
|
3956
|
+
c.width = c.height, c.height = u;
|
|
3957
|
+
}
|
|
3958
|
+
function a(c) {
|
|
3959
|
+
e.forEach(c.nodes(), function(u) {
|
|
3960
|
+
o(c.node(u));
|
|
3961
|
+
}), e.forEach(c.edges(), function(u) {
|
|
3962
|
+
var d = c.edge(u);
|
|
3963
3963
|
e.forEach(d.points, o), e.has(d, "y") && o(d);
|
|
3964
3964
|
});
|
|
3965
3965
|
}
|
|
3966
|
-
function o(
|
|
3967
|
-
|
|
3966
|
+
function o(c) {
|
|
3967
|
+
c.y = -c.y;
|
|
3968
3968
|
}
|
|
3969
|
-
function s(
|
|
3970
|
-
e.forEach(
|
|
3971
|
-
l(
|
|
3972
|
-
}), e.forEach(
|
|
3973
|
-
var d =
|
|
3969
|
+
function s(c) {
|
|
3970
|
+
e.forEach(c.nodes(), function(u) {
|
|
3971
|
+
l(c.node(u));
|
|
3972
|
+
}), e.forEach(c.edges(), function(u) {
|
|
3973
|
+
var d = c.edge(u);
|
|
3974
3974
|
e.forEach(d.points, l), e.has(d, "x") && l(d);
|
|
3975
3975
|
});
|
|
3976
3976
|
}
|
|
3977
|
-
function l(
|
|
3978
|
-
var
|
|
3979
|
-
|
|
3977
|
+
function l(c) {
|
|
3978
|
+
var u = c.x;
|
|
3979
|
+
c.x = c.y, c.y = u;
|
|
3980
3980
|
}
|
|
3981
3981
|
return Eo;
|
|
3982
3982
|
}
|
|
@@ -3987,22 +3987,22 @@ function m_() {
|
|
|
3987
3987
|
var e = Se();
|
|
3988
3988
|
bo = t;
|
|
3989
3989
|
function t(n) {
|
|
3990
|
-
var r = {}, i = e.filter(n.nodes(), function(
|
|
3991
|
-
return !n.children(
|
|
3992
|
-
}), a = e.max(e.map(i, function(
|
|
3993
|
-
return n.node(
|
|
3990
|
+
var r = {}, i = e.filter(n.nodes(), function(c) {
|
|
3991
|
+
return !n.children(c).length;
|
|
3992
|
+
}), a = e.max(e.map(i, function(c) {
|
|
3993
|
+
return n.node(c).rank;
|
|
3994
3994
|
})), o = e.map(e.range(a + 1), function() {
|
|
3995
3995
|
return [];
|
|
3996
3996
|
});
|
|
3997
|
-
function s(
|
|
3998
|
-
if (!e.has(r,
|
|
3999
|
-
r[
|
|
4000
|
-
var
|
|
4001
|
-
o[
|
|
3997
|
+
function s(c) {
|
|
3998
|
+
if (!e.has(r, c)) {
|
|
3999
|
+
r[c] = !0;
|
|
4000
|
+
var u = n.node(c);
|
|
4001
|
+
o[u.rank].push(c), e.forEach(n.successors(c), s);
|
|
4002
4002
|
}
|
|
4003
4003
|
}
|
|
4004
|
-
var l = e.sortBy(i, function(
|
|
4005
|
-
return n.node(
|
|
4004
|
+
var l = e.sortBy(i, function(c) {
|
|
4005
|
+
return n.node(c).rank;
|
|
4006
4006
|
});
|
|
4007
4007
|
return e.forEach(l, s), o;
|
|
4008
4008
|
}
|
|
@@ -4030,16 +4030,16 @@ function g_() {
|
|
|
4030
4030
|
return { pos: o[h.w], weight: r.edge(h).weight };
|
|
4031
4031
|
}), "pos");
|
|
4032
4032
|
}), !0), l = 1; l < a.length; ) l <<= 1;
|
|
4033
|
-
var
|
|
4033
|
+
var c = 2 * l - 1;
|
|
4034
4034
|
l -= 1;
|
|
4035
|
-
var
|
|
4035
|
+
var u = e.map(new Array(c), function() {
|
|
4036
4036
|
return 0;
|
|
4037
4037
|
}), d = 0;
|
|
4038
4038
|
return e.forEach(s.forEach(function(f) {
|
|
4039
4039
|
var h = f.pos + l;
|
|
4040
|
-
|
|
4040
|
+
u[h] += f.weight;
|
|
4041
4041
|
for (var w = 0; h > 0; )
|
|
4042
|
-
h % 2 && (w +=
|
|
4042
|
+
h % 2 && (w += u[h + 1]), h = h - 1 >> 1, u[h] += f.weight;
|
|
4043
4043
|
d += f.weight * w;
|
|
4044
4044
|
})), d;
|
|
4045
4045
|
}
|
|
@@ -4056,10 +4056,10 @@ function v_() {
|
|
|
4056
4056
|
var a = n.inEdges(i);
|
|
4057
4057
|
if (a.length) {
|
|
4058
4058
|
var o = e.reduce(a, function(s, l) {
|
|
4059
|
-
var
|
|
4059
|
+
var c = n.edge(l), u = n.node(l.v);
|
|
4060
4060
|
return {
|
|
4061
|
-
sum: s.sum +
|
|
4062
|
-
weight: s.weight +
|
|
4061
|
+
sum: s.sum + c.weight * u.order,
|
|
4062
|
+
weight: s.weight + c.weight
|
|
4063
4063
|
};
|
|
4064
4064
|
}, { sum: 0, weight: 0 });
|
|
4065
4065
|
return {
|
|
@@ -4081,18 +4081,18 @@ function __() {
|
|
|
4081
4081
|
So = t;
|
|
4082
4082
|
function t(i, a) {
|
|
4083
4083
|
var o = {};
|
|
4084
|
-
e.forEach(i, function(l,
|
|
4085
|
-
var
|
|
4084
|
+
e.forEach(i, function(l, c) {
|
|
4085
|
+
var u = o[l.v] = {
|
|
4086
4086
|
indegree: 0,
|
|
4087
4087
|
in: [],
|
|
4088
4088
|
out: [],
|
|
4089
4089
|
vs: [l.v],
|
|
4090
|
-
i:
|
|
4090
|
+
i: c
|
|
4091
4091
|
};
|
|
4092
|
-
e.isUndefined(l.barycenter) || (
|
|
4092
|
+
e.isUndefined(l.barycenter) || (u.barycenter = l.barycenter, u.weight = l.weight);
|
|
4093
4093
|
}), e.forEach(a.edges(), function(l) {
|
|
4094
|
-
var
|
|
4095
|
-
!e.isUndefined(
|
|
4094
|
+
var c = o[l.v], u = o[l.w];
|
|
4095
|
+
!e.isUndefined(c) && !e.isUndefined(u) && (u.indegree++, c.out.push(o[l.w]));
|
|
4096
4096
|
});
|
|
4097
4097
|
var s = e.filter(o, function(l) {
|
|
4098
4098
|
return !l.indegree;
|
|
@@ -4101,14 +4101,14 @@ function __() {
|
|
|
4101
4101
|
}
|
|
4102
4102
|
function n(i) {
|
|
4103
4103
|
var a = [];
|
|
4104
|
-
function o(
|
|
4105
|
-
return function(
|
|
4106
|
-
|
|
4104
|
+
function o(c) {
|
|
4105
|
+
return function(u) {
|
|
4106
|
+
u.merged || (e.isUndefined(u.barycenter) || e.isUndefined(c.barycenter) || u.barycenter >= c.barycenter) && r(c, u);
|
|
4107
4107
|
};
|
|
4108
4108
|
}
|
|
4109
|
-
function s(
|
|
4110
|
-
return function(
|
|
4111
|
-
|
|
4109
|
+
function s(c) {
|
|
4110
|
+
return function(u) {
|
|
4111
|
+
u.in.push(c), --u.indegree === 0 && i.push(u);
|
|
4112
4112
|
};
|
|
4113
4113
|
}
|
|
4114
4114
|
for (; i.length; ) {
|
|
@@ -4116,11 +4116,11 @@ function __() {
|
|
|
4116
4116
|
a.push(l), e.forEach(l.in.reverse(), o(l)), e.forEach(l.out, s(l));
|
|
4117
4117
|
}
|
|
4118
4118
|
return e.map(
|
|
4119
|
-
e.filter(a, function(
|
|
4120
|
-
return !
|
|
4119
|
+
e.filter(a, function(c) {
|
|
4120
|
+
return !c.merged;
|
|
4121
4121
|
}),
|
|
4122
|
-
function(
|
|
4123
|
-
return e.pick(
|
|
4122
|
+
function(c) {
|
|
4123
|
+
return e.pick(c, ["vs", "i", "barycenter", "weight"]);
|
|
4124
4124
|
}
|
|
4125
4125
|
);
|
|
4126
4126
|
}
|
|
@@ -4139,13 +4139,13 @@ function y_() {
|
|
|
4139
4139
|
function n(a, o) {
|
|
4140
4140
|
var s = t.partition(a, function(_) {
|
|
4141
4141
|
return e.has(_, "barycenter");
|
|
4142
|
-
}), l = s.lhs,
|
|
4142
|
+
}), l = s.lhs, c = e.sortBy(s.rhs, function(_) {
|
|
4143
4143
|
return -_.i;
|
|
4144
|
-
}),
|
|
4145
|
-
l.sort(i(!!o)), h = r(
|
|
4146
|
-
h += _.vs.length,
|
|
4144
|
+
}), u = [], d = 0, f = 0, h = 0;
|
|
4145
|
+
l.sort(i(!!o)), h = r(u, c, h), e.forEach(l, function(_) {
|
|
4146
|
+
h += _.vs.length, u.push(_.vs), d += _.barycenter * _.weight, f += _.weight, h = r(u, c, h);
|
|
4147
4147
|
});
|
|
4148
|
-
var w = { vs: e.flatten(
|
|
4148
|
+
var w = { vs: e.flatten(u, !0) };
|
|
4149
4149
|
return f && (w.barycenter = d / f, w.weight = f), w;
|
|
4150
4150
|
}
|
|
4151
4151
|
function r(a, o, s) {
|
|
@@ -4166,7 +4166,7 @@ function E_() {
|
|
|
4166
4166
|
hd = 1;
|
|
4167
4167
|
var e = Se(), t = v_(), n = __(), r = y_();
|
|
4168
4168
|
Lo = i;
|
|
4169
|
-
function i(s, l,
|
|
4169
|
+
function i(s, l, c, u) {
|
|
4170
4170
|
var d = s.children(l), f = s.node(l), h = f ? f.borderLeft : void 0, w = f ? f.borderRight : void 0, _ = {};
|
|
4171
4171
|
h && (d = e.filter(d, function(C) {
|
|
4172
4172
|
return C !== h && C !== w;
|
|
@@ -4174,13 +4174,13 @@ function E_() {
|
|
|
4174
4174
|
var v = t(s, d);
|
|
4175
4175
|
e.forEach(v, function(C) {
|
|
4176
4176
|
if (s.children(C.v).length) {
|
|
4177
|
-
var S = i(s, C.v,
|
|
4177
|
+
var S = i(s, C.v, c, u);
|
|
4178
4178
|
_[C.v] = S, e.has(S, "barycenter") && o(C, S);
|
|
4179
4179
|
}
|
|
4180
4180
|
});
|
|
4181
|
-
var p = n(v,
|
|
4181
|
+
var p = n(v, c);
|
|
4182
4182
|
a(p, _);
|
|
4183
|
-
var g = r(p,
|
|
4183
|
+
var g = r(p, u);
|
|
4184
4184
|
if (h && (g.vs = e.flatten([h, g.vs, w], !0), s.predecessors(h).length)) {
|
|
4185
4185
|
var y = s.node(s.predecessors(h)[0]), m = s.node(s.predecessors(w)[0]);
|
|
4186
4186
|
e.has(g, "barycenter") || (g.barycenter = 0, g.weight = 0), g.barycenter = (g.barycenter * g.weight + y.order + m.order) / (g.weight + 2), g.weight += 2;
|
|
@@ -4188,9 +4188,9 @@ function E_() {
|
|
|
4188
4188
|
return g;
|
|
4189
4189
|
}
|
|
4190
4190
|
function a(s, l) {
|
|
4191
|
-
e.forEach(s, function(
|
|
4192
|
-
|
|
4193
|
-
return l[
|
|
4191
|
+
e.forEach(s, function(c) {
|
|
4192
|
+
c.vs = e.flatten(c.vs.map(function(u) {
|
|
4193
|
+
return l[u] ? l[u].vs : u;
|
|
4194
4194
|
}), !0);
|
|
4195
4195
|
});
|
|
4196
4196
|
}
|
|
@@ -4206,17 +4206,17 @@ function b_() {
|
|
|
4206
4206
|
var e = Se(), t = dt().Graph;
|
|
4207
4207
|
To = n;
|
|
4208
4208
|
function n(i, a, o) {
|
|
4209
|
-
var s = r(i), l = new t({ compound: !0 }).setGraph({ root: s }).setDefaultNodeLabel(function(
|
|
4210
|
-
return i.node(
|
|
4209
|
+
var s = r(i), l = new t({ compound: !0 }).setGraph({ root: s }).setDefaultNodeLabel(function(c) {
|
|
4210
|
+
return i.node(c);
|
|
4211
4211
|
});
|
|
4212
|
-
return e.forEach(i.nodes(), function(
|
|
4213
|
-
var
|
|
4214
|
-
(
|
|
4215
|
-
var h = f.v ===
|
|
4216
|
-
l.setEdge(h,
|
|
4217
|
-
}), e.has(
|
|
4218
|
-
borderLeft:
|
|
4219
|
-
borderRight:
|
|
4212
|
+
return e.forEach(i.nodes(), function(c) {
|
|
4213
|
+
var u = i.node(c), d = i.parent(c);
|
|
4214
|
+
(u.rank === a || u.minRank <= a && a <= u.maxRank) && (l.setNode(c), l.setParent(c, d || s), e.forEach(i[o](c), function(f) {
|
|
4215
|
+
var h = f.v === c ? f.w : f.v, w = l.edge(h, c), _ = e.isUndefined(w) ? 0 : w.weight;
|
|
4216
|
+
l.setEdge(h, c, { weight: i.edge(f).weight + _ });
|
|
4217
|
+
}), e.has(u, "minRank") && l.setNode(c, {
|
|
4218
|
+
borderLeft: u.borderLeft[a],
|
|
4219
|
+
borderRight: u.borderRight[a]
|
|
4220
4220
|
}));
|
|
4221
4221
|
}), l;
|
|
4222
4222
|
}
|
|
@@ -4235,12 +4235,12 @@ function C_() {
|
|
|
4235
4235
|
function t(n, r, i) {
|
|
4236
4236
|
var a = {}, o;
|
|
4237
4237
|
e.forEach(i, function(s) {
|
|
4238
|
-
for (var l = n.parent(s),
|
|
4239
|
-
if (
|
|
4240
|
-
r.setEdge(
|
|
4238
|
+
for (var l = n.parent(s), c, u; l; ) {
|
|
4239
|
+
if (c = n.parent(l), c ? (u = a[c], a[c] = l) : (u = o, o = l), u && u !== l) {
|
|
4240
|
+
r.setEdge(u, l);
|
|
4241
4241
|
return;
|
|
4242
4242
|
}
|
|
4243
|
-
l =
|
|
4243
|
+
l = c;
|
|
4244
4244
|
}
|
|
4245
4245
|
});
|
|
4246
4246
|
}
|
|
@@ -4253,21 +4253,21 @@ function w_() {
|
|
|
4253
4253
|
var e = Se(), t = m_(), n = g_(), r = E_(), i = b_(), a = C_(), o = dt().Graph, s = Ye();
|
|
4254
4254
|
No = l;
|
|
4255
4255
|
function l(f) {
|
|
4256
|
-
var h = s.maxRank(f), w =
|
|
4256
|
+
var h = s.maxRank(f), w = c(f, e.range(1, h + 1), "inEdges"), _ = c(f, e.range(h - 1, -1, -1), "outEdges"), v = t(f);
|
|
4257
4257
|
d(f, v);
|
|
4258
4258
|
for (var p = Number.POSITIVE_INFINITY, g, y = 0, m = 0; m < 4; ++y, ++m) {
|
|
4259
|
-
|
|
4259
|
+
u(y % 2 ? w : _, y % 4 >= 2), v = s.buildLayerMatrix(f);
|
|
4260
4260
|
var C = n(f, v);
|
|
4261
4261
|
C < p && (m = 0, g = e.cloneDeep(v), p = C);
|
|
4262
4262
|
}
|
|
4263
4263
|
d(f, g);
|
|
4264
4264
|
}
|
|
4265
|
-
function
|
|
4265
|
+
function c(f, h, w) {
|
|
4266
4266
|
return e.map(h, function(_) {
|
|
4267
4267
|
return i(f, _, w);
|
|
4268
4268
|
});
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function u(f, h) {
|
|
4271
4271
|
var w = new o();
|
|
4272
4272
|
e.forEach(f, function(_) {
|
|
4273
4273
|
var v = _.graph().root, p = r(_, v, w, h);
|
|
@@ -4297,7 +4297,7 @@ function S_() {
|
|
|
4297
4297
|
addConflict: o,
|
|
4298
4298
|
hasConflict: s,
|
|
4299
4299
|
verticalAlignment: l,
|
|
4300
|
-
horizontalCompaction:
|
|
4300
|
+
horizontalCompaction: c,
|
|
4301
4301
|
alignCoordinates: f,
|
|
4302
4302
|
findSmallestWidthAlignment: d,
|
|
4303
4303
|
balance: h
|
|
@@ -4384,8 +4384,8 @@ function S_() {
|
|
|
4384
4384
|
});
|
|
4385
4385
|
}), { root: C, align: S };
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4388
|
-
var S = {}, b =
|
|
4387
|
+
function c(p, g, y, m, C) {
|
|
4388
|
+
var S = {}, b = u(p, g, y, C), N = C ? "borderLeft" : "borderRight";
|
|
4389
4389
|
function R(q, Z) {
|
|
4390
4390
|
for (var re = b.nodes(), V = re.pop(), P = {}; V; )
|
|
4391
4391
|
P[V] ? q(V) : (P[V] = !0, re.push(V), re = re.concat(Z(V))), V = re.pop();
|
|
@@ -4405,7 +4405,7 @@ function S_() {
|
|
|
4405
4405
|
S[q] = S[y[q]];
|
|
4406
4406
|
}), S;
|
|
4407
4407
|
}
|
|
4408
|
-
function
|
|
4408
|
+
function u(p, g, y, m) {
|
|
4409
4409
|
var C = new t(), S = p.graph(), b = _(S.nodesep, S.edgesep, m);
|
|
4410
4410
|
return e.forEach(g, function(N) {
|
|
4411
4411
|
var R;
|
|
@@ -4460,7 +4460,7 @@ function S_() {
|
|
|
4460
4460
|
N === "r" && (C = e.map(C, function(q) {
|
|
4461
4461
|
return e.values(q).reverse();
|
|
4462
4462
|
}));
|
|
4463
|
-
var R = (b === "u" ? p.predecessors : p.successors).bind(p), D = l(p, C, y, R), B =
|
|
4463
|
+
var R = (b === "u" ? p.predecessors : p.successors).bind(p), D = l(p, C, y, R), B = c(
|
|
4464
4464
|
p,
|
|
4465
4465
|
C,
|
|
4466
4466
|
D.root,
|
|
@@ -4517,13 +4517,13 @@ function k_() {
|
|
|
4517
4517
|
}
|
|
4518
4518
|
function i(a) {
|
|
4519
4519
|
var o = t.buildLayerMatrix(a), s = a.graph().ranksep, l = 0;
|
|
4520
|
-
e.forEach(o, function(
|
|
4521
|
-
var
|
|
4520
|
+
e.forEach(o, function(c) {
|
|
4521
|
+
var u = e.max(e.map(c, function(d) {
|
|
4522
4522
|
return a.node(d).height;
|
|
4523
4523
|
}));
|
|
4524
|
-
e.forEach(
|
|
4525
|
-
a.node(d).y = l +
|
|
4526
|
-
}), l +=
|
|
4524
|
+
e.forEach(c, function(d) {
|
|
4525
|
+
a.node(d).y = l + u / 2;
|
|
4526
|
+
}), l += u + s;
|
|
4527
4527
|
});
|
|
4528
4528
|
}
|
|
4529
4529
|
return Ao;
|
|
@@ -4532,7 +4532,7 @@ var Ro, yd;
|
|
|
4532
4532
|
function L_() {
|
|
4533
4533
|
if (yd) return Ro;
|
|
4534
4534
|
yd = 1;
|
|
4535
|
-
var e = Se(), t = s_(), n = l_(), r = c_(), i = Ye().normalizeRanks, a = d_(), o = Ye().removeEmptyRanks, s = f_(), l = h_(),
|
|
4535
|
+
var e = Se(), t = s_(), n = l_(), r = c_(), i = Ye().normalizeRanks, a = d_(), o = Ye().removeEmptyRanks, s = f_(), l = h_(), c = p_(), u = w_(), d = k_(), f = Ye(), h = dt().Graph;
|
|
4536
4536
|
Ro = w;
|
|
4537
4537
|
function w(I, $) {
|
|
4538
4538
|
var H = $ && $.debugTiming ? f.time : f.notime;
|
|
@@ -4577,11 +4577,11 @@ function L_() {
|
|
|
4577
4577
|
}), $(" addBorderSegments", function() {
|
|
4578
4578
|
l(I);
|
|
4579
4579
|
}), $(" order", function() {
|
|
4580
|
-
|
|
4580
|
+
u(I);
|
|
4581
4581
|
}), $(" insertSelfEdges", function() {
|
|
4582
4582
|
le(I);
|
|
4583
4583
|
}), $(" adjustCoordinateSystem", function() {
|
|
4584
|
-
|
|
4584
|
+
c.adjust(I);
|
|
4585
4585
|
}), $(" position", function() {
|
|
4586
4586
|
d(I);
|
|
4587
4587
|
}), $(" positionSelfEdges", function() {
|
|
@@ -4593,7 +4593,7 @@ function L_() {
|
|
|
4593
4593
|
}), $(" fixupEdgeLabelCoords", function() {
|
|
4594
4594
|
P(I);
|
|
4595
4595
|
}), $(" undoCoordinateSystem", function() {
|
|
4596
|
-
|
|
4596
|
+
c.undo(I);
|
|
4597
4597
|
}), $(" translateGraph", function() {
|
|
4598
4598
|
re(I);
|
|
4599
4599
|
}), $(" assignNodeIntersects", function() {
|
|
@@ -4795,9 +4795,9 @@ function T_() {
|
|
|
4795
4795
|
}), e.forEach(i.edges(), function(s) {
|
|
4796
4796
|
o.setEdge(s.v, s.w, {}, s.name);
|
|
4797
4797
|
}), e.forEach(a, function(s, l) {
|
|
4798
|
-
var
|
|
4799
|
-
o.setNode(
|
|
4800
|
-
return o.setEdge(
|
|
4798
|
+
var c = "layer" + l;
|
|
4799
|
+
o.setNode(c, { rank: "same" }), e.reduce(s, function(u, d) {
|
|
4800
|
+
return o.setEdge(u, d, { style: "invis" }), d;
|
|
4801
4801
|
});
|
|
4802
4802
|
}), o;
|
|
4803
4803
|
}
|
|
@@ -4879,36 +4879,36 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
4879
4879
|
height: this.getNodeHeight(l)
|
|
4880
4880
|
});
|
|
4881
4881
|
for (const l of e.clusters || []) {
|
|
4882
|
-
const
|
|
4883
|
-
if (r.includes(l.cluster.uid) && a.has(
|
|
4884
|
-
const
|
|
4885
|
-
s.setNode(
|
|
4886
|
-
width: this.getNodeWidth(
|
|
4887
|
-
height: this.getNodeHeight(
|
|
4888
|
-
}), o.push(
|
|
4882
|
+
const c = l.cluster.uid.replace($t, "");
|
|
4883
|
+
if (r.includes(l.cluster.uid) && a.has(c)) {
|
|
4884
|
+
const u = { uid: c, type: "collapsedcluster" };
|
|
4885
|
+
s.setNode(c, {
|
|
4886
|
+
width: this.getNodeWidth(u),
|
|
4887
|
+
height: this.getNodeHeight(u)
|
|
4888
|
+
}), o.push(u);
|
|
4889
4889
|
continue;
|
|
4890
4890
|
}
|
|
4891
4891
|
if (!i[l.cluster.uid]) {
|
|
4892
4892
|
s.setNode(l.cluster.uid, { clusterLabelPos: "top" });
|
|
4893
|
-
for (const
|
|
4894
|
-
t.includes(
|
|
4893
|
+
for (const u of l.nodes || [])
|
|
4894
|
+
t.includes(u) || s.setParent(u, l.cluster.uid);
|
|
4895
4895
|
}
|
|
4896
4896
|
if (l.parents) {
|
|
4897
|
-
const
|
|
4898
|
-
t.includes(
|
|
4899
|
-
|
|
4897
|
+
const u = i[l.cluster.uid] ? i[l.cluster.uid] : l.cluster.uid;
|
|
4898
|
+
t.includes(u) || s.setParent(
|
|
4899
|
+
u,
|
|
4900
4900
|
l.parents[l.parents.length - 1]
|
|
4901
4901
|
);
|
|
4902
4902
|
}
|
|
4903
4903
|
}
|
|
4904
4904
|
for (const l of e.edges || []) {
|
|
4905
|
-
const
|
|
4905
|
+
const c = this.replaceIfCollapsed(
|
|
4906
4906
|
l.source,
|
|
4907
4907
|
l.target,
|
|
4908
4908
|
i,
|
|
4909
4909
|
t
|
|
4910
4910
|
);
|
|
4911
|
-
|
|
4911
|
+
c && s.setEdge(c.source, c.target);
|
|
4912
4912
|
}
|
|
4913
4913
|
return wd.layout(s), s;
|
|
4914
4914
|
},
|
|
@@ -4957,7 +4957,7 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
4957
4957
|
return e.uid === Lt || this.isTriggerNode(e) || this.isCollapsedCluster(e) ? "success" : e.type.endsWith("SubflowGraphTask") ? "primary" : e.branchType == "ERROR" ? "danger" : e.branchType == "FINALLY" ? "warning" : t.has(e.uid) ? "blue" : "default";
|
|
4958
4958
|
},
|
|
4959
4959
|
haveAdd(e, t, n, r) {
|
|
4960
|
-
var
|
|
4960
|
+
var c, u, d;
|
|
4961
4961
|
if (r.some(
|
|
4962
4962
|
(f) => e.source.startsWith(f) && e.target.startsWith(f)
|
|
4963
4963
|
) || n.includes(e.target) || e.source.startsWith(Lt) || e.target.startsWith(Lt))
|
|
@@ -4965,7 +4965,7 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
4965
4965
|
const i = e.target.split(".");
|
|
4966
4966
|
i.pop();
|
|
4967
4967
|
const a = i.join("."), o = Ae.afterLastDot(a), s = t[e.target];
|
|
4968
|
-
if (s.type.endsWith("GraphClusterEnd") && ((d = (
|
|
4968
|
+
if (s.type.endsWith("GraphClusterEnd") && ((d = (u = (c = t[a]) == null ? void 0 : c.task) == null ? void 0 : u.type) != null && d.endsWith("Parallel")))
|
|
4969
4969
|
return;
|
|
4970
4970
|
if (s.type.endsWith("GraphClusterRoot"))
|
|
4971
4971
|
return [o, "before"];
|
|
@@ -4980,13 +4980,13 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
4980
4980
|
},
|
|
4981
4981
|
getEdgeColor(e, t, n) {
|
|
4982
4982
|
const r = (o) => {
|
|
4983
|
-
var l,
|
|
4983
|
+
var l, c;
|
|
4984
4984
|
const s = o.split(".");
|
|
4985
|
-
for (let
|
|
4986
|
-
const d = s.slice(0,
|
|
4985
|
+
for (let u = 1; u <= s.length; u++) {
|
|
4986
|
+
const d = s.slice(0, u).join("."), f = (l = n[d]) == null ? void 0 : l.branchType;
|
|
4987
4987
|
if (f) return f;
|
|
4988
4988
|
}
|
|
4989
|
-
return ((
|
|
4989
|
+
return ((c = t[o]) == null ? void 0 : c.branchType) ?? null;
|
|
4990
4990
|
}, i = r(e.source), a = r(e.target);
|
|
4991
4991
|
return [i, a].includes(
|
|
4992
4992
|
"ERROR"
|
|
@@ -4996,7 +4996,7 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
4996
4996
|
/* FINALLY */
|
|
4997
4997
|
) ? "warning" : null;
|
|
4998
4998
|
},
|
|
4999
|
-
generateGraph(e, t, n, r, i, a, o, s, l,
|
|
4999
|
+
generateGraph(e, t, n, r, i, a, o, s, l, c, u, d, f) {
|
|
5000
5000
|
var b, N, R, D, B, q, Z, re, V, P, ie, J;
|
|
5001
5001
|
const h = [], w = [$t + Lt];
|
|
5002
5002
|
if (!r || i && !this.flowHaveTasks(i)) {
|
|
@@ -5049,9 +5049,9 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
5049
5049
|
w,
|
|
5050
5050
|
s,
|
|
5051
5051
|
l,
|
|
5052
|
-
|
|
5052
|
+
c
|
|
5053
5053
|
), v = {}, p = r.clusters || [], g = p.map((G) => G.cluster), y = g.filter((G) => G.type.endsWith("SubflowGraphCluster")).map((G) => G.taskNode.uid), m = Object.fromEntries(
|
|
5054
|
-
r.nodes.concat(
|
|
5054
|
+
r.nodes.concat(c).map((G) => [G.uid, G])
|
|
5055
5055
|
);
|
|
5056
5056
|
for (const G of p)
|
|
5057
5057
|
if (!s[G.cluster.uid] && !l.has(G.cluster.uid)) {
|
|
@@ -5080,12 +5080,12 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
5080
5080
|
class: `ks-topology-${Qe}-border rounded p-2`
|
|
5081
5081
|
});
|
|
5082
5082
|
}
|
|
5083
|
-
for (const G of r.nodes.concat(
|
|
5083
|
+
for (const G of r.nodes.concat(c))
|
|
5084
5084
|
if (!a.includes(G.uid)) {
|
|
5085
5085
|
const le = _.node(G.uid);
|
|
5086
5086
|
let ke = "task";
|
|
5087
5087
|
this.isClusterRootOrEnd(G) ? ke = "dot" : G.type.includes("GraphTrigger") ? ke = "trigger" : G.type === "collapsedcluster" && (ke = "collapsedcluster");
|
|
5088
|
-
const je = this.nodeColor(G, l), Qe =
|
|
5088
|
+
const je = this.nodeColor(G, l), Qe = u || ((D = (R = G.task) == null ? void 0 : R.type) == null ? void 0 : D.includes("$")) || y.some(
|
|
5089
5089
|
(I) => G.uid.startsWith(I + ".")
|
|
5090
5090
|
);
|
|
5091
5091
|
h.push({
|
|
@@ -5145,7 +5145,7 @@ const wd = /* @__PURE__ */ ps(I_), Lt = "root.Triggers", $o = {
|
|
|
5145
5145
|
color: ke ? `var(--ks-border-${ke})` : "var(--ks-topology-edge-color)"
|
|
5146
5146
|
},
|
|
5147
5147
|
data: {
|
|
5148
|
-
haveAdd: !
|
|
5148
|
+
haveAdd: !u && d && this.haveAdd(
|
|
5149
5149
|
G,
|
|
5150
5150
|
m,
|
|
5151
5151
|
C,
|
|
@@ -5194,11 +5194,11 @@ function R_() {
|
|
|
5194
5194
|
if (typeof a != "string")
|
|
5195
5195
|
throw new Error("slugify: string argument expected");
|
|
5196
5196
|
o = typeof o == "string" ? { replacement: o } : o || {};
|
|
5197
|
-
var s = r[o.locale] || {}, l = o.replacement === void 0 ? "-" : o.replacement,
|
|
5197
|
+
var s = r[o.locale] || {}, l = o.replacement === void 0 ? "-" : o.replacement, c = o.trim === void 0 ? !0 : o.trim, u = a.normalize().split("").reduce(function(d, f) {
|
|
5198
5198
|
var h = s[f];
|
|
5199
5199
|
return h === void 0 && (h = n[f]), h === void 0 && (h = f), h === l && (h = " "), d + h.replace(o.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
5200
5200
|
}, "");
|
|
5201
|
-
return o.strict && (
|
|
5201
|
+
return o.strict && (u = u.replace(/[^A-Za-z0-9\s]/g, "")), c && (u = u.trim()), u = u.replace(/\s+/g, l), o.lower && (u = u.toLowerCase()), u;
|
|
5202
5202
|
}
|
|
5203
5203
|
return i.extend = function(a) {
|
|
5204
5204
|
Object.assign(n, a);
|
|
@@ -5249,7 +5249,7 @@ function Ld(e) {
|
|
|
5249
5249
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
5250
5250
|
}
|
|
5251
5251
|
const V_ = Object.prototype.hasOwnProperty;
|
|
5252
|
-
function
|
|
5252
|
+
function ut(e, t) {
|
|
5253
5253
|
return V_.call(e, t);
|
|
5254
5254
|
}
|
|
5255
5255
|
const $e = Array.isArray, we = (e) => typeof e == "function", X = (e) => typeof e == "string", Ie = (e) => typeof e == "boolean", pe = (e) => e !== null && typeof e == "object", U_ = (e) => pe(e) && we(e.then) && we(e.catch), dh = Object.prototype.toString, Ls = (e) => dh.call(e), he = (e) => Ls(e) === "[object Object]", H_ = (e) => e == null ? "" : $e(e) || he(e) && e.toString === dh ? JSON.stringify(e, null, 2) : String(e);
|
|
@@ -5268,16 +5268,16 @@ function G_(e, t = 0, n = e.length) {
|
|
|
5268
5268
|
continue;
|
|
5269
5269
|
const l = s + 1;
|
|
5270
5270
|
a.push(`${l}${" ".repeat(3 - String(l).length)}| ${r[s]}`);
|
|
5271
|
-
const
|
|
5271
|
+
const c = r[s].length;
|
|
5272
5272
|
if (s === o) {
|
|
5273
|
-
const
|
|
5274
|
-
a.push(" | " + " ".repeat(
|
|
5273
|
+
const u = t - (i - c) + 1, d = Math.max(1, n > i ? c - u : n - t);
|
|
5274
|
+
a.push(" | " + " ".repeat(u) + "^".repeat(d));
|
|
5275
5275
|
} else if (s > o) {
|
|
5276
5276
|
if (n > i) {
|
|
5277
|
-
const
|
|
5278
|
-
a.push(" | " + "^".repeat(
|
|
5277
|
+
const u = Math.max(Math.min(n - i, c), 1);
|
|
5278
|
+
a.push(" | " + "^".repeat(u));
|
|
5279
5279
|
}
|
|
5280
|
-
i +=
|
|
5280
|
+
i += c + 1;
|
|
5281
5281
|
}
|
|
5282
5282
|
}
|
|
5283
5283
|
break;
|
|
@@ -5387,9 +5387,9 @@ const X_ = /<\/?[\w\s="/.':;#-\/]+>/, Z_ = (e) => X_.test(e), gt = " ", J_ = "\r
|
|
|
5387
5387
|
function ty(e) {
|
|
5388
5388
|
const t = e;
|
|
5389
5389
|
let n = 0, r = 1, i = 1, a = 0;
|
|
5390
|
-
const o = (b) => t[b] === J_ && t[b + 1] === We, s = (b) => t[b] === We, l = (b) => t[b] === ey,
|
|
5390
|
+
const o = (b) => t[b] === J_ && t[b + 1] === We, s = (b) => t[b] === We, l = (b) => t[b] === ey, c = (b) => t[b] === Q_, u = (b) => o(b) || s(b) || l(b) || c(b), d = () => n, f = () => r, h = () => i, w = () => a, _ = (b) => o(b) || l(b) || c(b) ? We : t[b], v = () => _(n), p = () => _(n + a);
|
|
5391
5391
|
function g() {
|
|
5392
|
-
return a = 0,
|
|
5392
|
+
return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
|
|
5393
5393
|
}
|
|
5394
5394
|
function y() {
|
|
5395
5395
|
return o(n + a) && a++, a++, t[n + a];
|
|
@@ -5435,15 +5435,15 @@ function iy(e, t = {}) {
|
|
|
5435
5435
|
braceNest: 0,
|
|
5436
5436
|
inLinked: !1,
|
|
5437
5437
|
text: ""
|
|
5438
|
-
},
|
|
5438
|
+
}, c = () => l, { onError: u } = t;
|
|
5439
5439
|
function d(k, T, x, ...ee) {
|
|
5440
|
-
const Te =
|
|
5441
|
-
if (T.column += x, T.offset += x,
|
|
5440
|
+
const Te = c();
|
|
5441
|
+
if (T.column += x, T.offset += x, u) {
|
|
5442
5442
|
const Oe = n ? Wo(Te.startLoc, T) : null, fe = on(k, Oe, {
|
|
5443
5443
|
domain: ry,
|
|
5444
5444
|
args: ee
|
|
5445
5445
|
});
|
|
5446
|
-
|
|
5446
|
+
u(fe);
|
|
5447
5447
|
}
|
|
5448
5448
|
}
|
|
5449
5449
|
function f(k, T, x) {
|
|
@@ -5814,7 +5814,7 @@ function iy(e, t = {}) {
|
|
|
5814
5814
|
nextToken: Kt,
|
|
5815
5815
|
currentOffset: i,
|
|
5816
5816
|
currentPosition: a,
|
|
5817
|
-
context:
|
|
5817
|
+
context: c
|
|
5818
5818
|
};
|
|
5819
5819
|
}
|
|
5820
5820
|
const ay = "parser", oy = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -5862,11 +5862,11 @@ function ly(e = {}) {
|
|
|
5862
5862
|
const y = p.context(), { lastOffset: m, lastStartLoc: C } = y, S = i(4, m, C);
|
|
5863
5863
|
return S.key = g, p.nextToken(), a(S, p.currentOffset(), p.currentPosition()), S;
|
|
5864
5864
|
}
|
|
5865
|
-
function
|
|
5865
|
+
function c(p, g) {
|
|
5866
5866
|
const y = p.context(), { lastOffset: m, lastStartLoc: C } = y, S = i(9, m, C);
|
|
5867
5867
|
return S.value = g.replace(oy, sy), p.nextToken(), a(S, p.currentOffset(), p.currentPosition()), S;
|
|
5868
5868
|
}
|
|
5869
|
-
function
|
|
5869
|
+
function u(p) {
|
|
5870
5870
|
const g = p.nextToken(), y = p.context(), { lastOffset: m, lastStartLoc: C } = y, S = i(8, m, C);
|
|
5871
5871
|
return g.type !== 11 ? (r(p, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), S.value = "", a(S, m, C), {
|
|
5872
5872
|
nextConsumeToken: g,
|
|
@@ -5883,7 +5883,7 @@ function ly(e = {}) {
|
|
|
5883
5883
|
const g = p.context(), y = i(6, g.offset, g.startLoc);
|
|
5884
5884
|
let m = p.nextToken();
|
|
5885
5885
|
if (m.type === 8) {
|
|
5886
|
-
const C =
|
|
5886
|
+
const C = u(p);
|
|
5887
5887
|
y.modifier = C.node, m = C.nextConsumeToken || p.nextToken();
|
|
5888
5888
|
}
|
|
5889
5889
|
switch (m.type !== 9 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(m)), m = p.nextToken(), m.type === 2 && (m = p.nextToken()), m.type) {
|
|
@@ -5897,7 +5897,7 @@ function ly(e = {}) {
|
|
|
5897
5897
|
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(m)), y.key = s(p, m.value || "");
|
|
5898
5898
|
break;
|
|
5899
5899
|
case 6:
|
|
5900
|
-
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(m)), y.key =
|
|
5900
|
+
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(m)), y.key = c(p, m.value || "");
|
|
5901
5901
|
break;
|
|
5902
5902
|
default: {
|
|
5903
5903
|
r(p, ne.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
|
@@ -5929,7 +5929,7 @@ function ly(e = {}) {
|
|
|
5929
5929
|
R.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(R)), C.items.push(l(p, R.value || ""));
|
|
5930
5930
|
break;
|
|
5931
5931
|
case 6:
|
|
5932
|
-
R.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(R)), C.items.push(
|
|
5932
|
+
R.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, pt(R)), C.items.push(c(p, R.value || ""));
|
|
5933
5933
|
break;
|
|
5934
5934
|
case 7: {
|
|
5935
5935
|
const D = f(p);
|
|
@@ -6126,25 +6126,25 @@ function py(e, t) {
|
|
|
6126
6126
|
function l(_, v) {
|
|
6127
6127
|
o.code += _;
|
|
6128
6128
|
}
|
|
6129
|
-
function
|
|
6129
|
+
function c(_, v = !0) {
|
|
6130
6130
|
const p = v ? r : "";
|
|
6131
6131
|
l(i ? p + " ".repeat(_) : p);
|
|
6132
6132
|
}
|
|
6133
|
-
function
|
|
6133
|
+
function u(_ = !0) {
|
|
6134
6134
|
const v = ++o.indentLevel;
|
|
6135
|
-
_ &&
|
|
6135
|
+
_ && c(v);
|
|
6136
6136
|
}
|
|
6137
6137
|
function d(_ = !0) {
|
|
6138
6138
|
const v = --o.indentLevel;
|
|
6139
|
-
_ &&
|
|
6139
|
+
_ && c(v);
|
|
6140
6140
|
}
|
|
6141
6141
|
function f() {
|
|
6142
|
-
|
|
6142
|
+
c(o.indentLevel);
|
|
6143
6143
|
}
|
|
6144
6144
|
return {
|
|
6145
6145
|
context: s,
|
|
6146
6146
|
push: l,
|
|
6147
|
-
indent:
|
|
6147
|
+
indent: u,
|
|
6148
6148
|
deindent: d,
|
|
6149
6149
|
newline: f,
|
|
6150
6150
|
helper: (_) => `_${_}`,
|
|
@@ -6247,12 +6247,12 @@ const yy = (e, t = {}) => {
|
|
|
6247
6247
|
breakLineCode: i,
|
|
6248
6248
|
needIndent: a
|
|
6249
6249
|
});
|
|
6250
|
-
s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), s.indent(a), o.length > 0 && (s.push(`const { ${Ts(o.map((
|
|
6251
|
-
const { code: l, map:
|
|
6250
|
+
s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), s.indent(a), o.length > 0 && (s.push(`const { ${Ts(o.map((u) => `${u}: _${u}`), ", ")} } = ctx`), s.newline()), s.push("return "), rn(s, e), s.deindent(a), s.push("}"), delete e.helpers;
|
|
6251
|
+
const { code: l, map: c } = s.context();
|
|
6252
6252
|
return {
|
|
6253
6253
|
ast: e,
|
|
6254
6254
|
code: l,
|
|
6255
|
-
map:
|
|
6255
|
+
map: c ? c.toJSON() : void 0
|
|
6256
6256
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
6257
6257
|
};
|
|
6258
6258
|
};
|
|
@@ -6268,8 +6268,8 @@ function Ey(e, t = {}) {
|
|
|
6268
6268
|
function by() {
|
|
6269
6269
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (xt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (xt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
6270
6270
|
}
|
|
6271
|
-
function
|
|
6272
|
-
return pe(e) && Ns(e) === 0 && (
|
|
6271
|
+
function ct(e) {
|
|
6272
|
+
return pe(e) && Ns(e) === 0 && (ut(e, "b") || ut(e, "body"));
|
|
6273
6273
|
}
|
|
6274
6274
|
const fh = ["b", "body"];
|
|
6275
6275
|
function Cy(e) {
|
|
@@ -6315,7 +6315,7 @@ function Ty(e) {
|
|
|
6315
6315
|
function At(e, t, n) {
|
|
6316
6316
|
for (let r = 0; r < t.length; r++) {
|
|
6317
6317
|
const i = t[r];
|
|
6318
|
-
if (
|
|
6318
|
+
if (ut(e, i) && e[i] != null)
|
|
6319
6319
|
return e[i];
|
|
6320
6320
|
}
|
|
6321
6321
|
return n;
|
|
@@ -6370,17 +6370,17 @@ function jo(e, t) {
|
|
|
6370
6370
|
return Ln(t, n);
|
|
6371
6371
|
case 4: {
|
|
6372
6372
|
const r = t;
|
|
6373
|
-
if (
|
|
6373
|
+
if (ut(r, "k") && r.k)
|
|
6374
6374
|
return e.interpolate(e.named(r.k));
|
|
6375
|
-
if (
|
|
6375
|
+
if (ut(r, "key") && r.key)
|
|
6376
6376
|
return e.interpolate(e.named(r.key));
|
|
6377
6377
|
throw hn(n);
|
|
6378
6378
|
}
|
|
6379
6379
|
case 5: {
|
|
6380
6380
|
const r = t;
|
|
6381
|
-
if (
|
|
6381
|
+
if (ut(r, "i") && Fe(r.i))
|
|
6382
6382
|
return e.interpolate(e.list(r.i));
|
|
6383
|
-
if (
|
|
6383
|
+
if (ut(r, "index") && Fe(r.index))
|
|
6384
6384
|
return e.interpolate(e.list(r.index));
|
|
6385
6385
|
throw hn(n);
|
|
6386
6386
|
}
|
|
@@ -6424,7 +6424,7 @@ function Dy(e, t) {
|
|
|
6424
6424
|
}), l = xo(o);
|
|
6425
6425
|
return s ? l : Tn[i] = l;
|
|
6426
6426
|
} else {
|
|
6427
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
6427
|
+
if (process.env.NODE_ENV !== "production" && !ct(e))
|
|
6428
6428
|
return It(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
6429
6429
|
const n = e.cacheKey;
|
|
6430
6430
|
if (n) {
|
|
@@ -6750,7 +6750,7 @@ function zy(e) {
|
|
|
6750
6750
|
}
|
|
6751
6751
|
function Ky(e) {
|
|
6752
6752
|
const t = [];
|
|
6753
|
-
let n = -1, r = 0, i = 0, a, o, s, l,
|
|
6753
|
+
let n = -1, r = 0, i = 0, a, o, s, l, c, u, d;
|
|
6754
6754
|
const f = [];
|
|
6755
6755
|
f[
|
|
6756
6756
|
0
|
|
@@ -6798,7 +6798,7 @@ function Ky(e) {
|
|
|
6798
6798
|
}
|
|
6799
6799
|
for (; r !== null; )
|
|
6800
6800
|
if (n++, a = e[n], !(a === "\\" && h())) {
|
|
6801
|
-
if (l = jy(a), d = Rt[r],
|
|
6801
|
+
if (l = jy(a), d = Rt[r], c = d[l] || d.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (u = f[c[1]], u && (s = a, u() === !1))))
|
|
6802
6802
|
return;
|
|
6803
6803
|
if (r === 7)
|
|
6804
6804
|
return t;
|
|
@@ -6818,7 +6818,7 @@ function Xy(e, t) {
|
|
|
6818
6818
|
let i = e, a = 0;
|
|
6819
6819
|
for (; a < r; ) {
|
|
6820
6820
|
const o = n[a];
|
|
6821
|
-
if (Eh.includes(o) &&
|
|
6821
|
+
if (Eh.includes(o) && ct(i))
|
|
6822
6822
|
return null;
|
|
6823
6823
|
const s = i[o];
|
|
6824
6824
|
if (s === void 0 || we(i))
|
|
@@ -6877,7 +6877,7 @@ const xd = (e) => {
|
|
|
6877
6877
|
}, oE = () => Lh;
|
|
6878
6878
|
let qd = 0;
|
|
6879
6879
|
function sE(e = {}) {
|
|
6880
|
-
const t = we(e.onWarn) ? e.onWarn : It, n = X(e.version) ? e.version : Qy, r = X(e.locale) || we(e.locale) ? e.locale : xn, i = we(r) ? xn : r, a = $e(e.fallbackLocale) || he(e.fallbackLocale) || X(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = he(e.messages) ? e.messages : Fo(i), s = he(e.datetimeFormats) ? e.datetimeFormats : Fo(i), l = he(e.numberFormats) ? e.numberFormats : Fo(i),
|
|
6880
|
+
const t = we(e.onWarn) ? e.onWarn : It, n = X(e.version) ? e.version : Qy, r = X(e.locale) || we(e.locale) ? e.locale : xn, i = we(r) ? xn : r, a = $e(e.fallbackLocale) || he(e.fallbackLocale) || X(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = he(e.messages) ? e.messages : Fo(i), s = he(e.datetimeFormats) ? e.datetimeFormats : Fo(i), l = he(e.numberFormats) ? e.numberFormats : Fo(i), c = Ve(Ee(), e.modifiers, eE()), u = e.pluralRules || Ee(), d = we(e.missing) ? e.missing : null, f = Ie(e.missingWarn) || $n(e.missingWarn) ? e.missingWarn : !0, h = Ie(e.fallbackWarn) || $n(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, _ = !!e.unresolving, v = we(e.postTranslation) ? e.postTranslation : null, p = he(e.processor) ? e.processor : null, g = Ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, m = we(e.messageCompiler) ? e.messageCompiler : Ch;
|
|
6881
6881
|
process.env.NODE_ENV !== "production" && we(e.messageCompiler) && B_(Ft(Ke.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
6882
6882
|
const C = we(e.messageResolver) ? e.messageResolver : wh || Yy, S = we(e.localeFallbacker) ? e.localeFallbacker : Sh || Vy, b = pe(e.fallbackContext) ? e.fallbackContext : void 0, N = e, R = pe(N.__datetimeFormatters) ? N.__datetimeFormatters : /* @__PURE__ */ new Map(), D = pe(N.__numberFormatters) ? N.__numberFormatters : /* @__PURE__ */ new Map(), B = pe(N.__meta) ? N.__meta : {};
|
|
6883
6883
|
qd++;
|
|
@@ -6887,8 +6887,8 @@ function sE(e = {}) {
|
|
|
6887
6887
|
locale: r,
|
|
6888
6888
|
fallbackLocale: a,
|
|
6889
6889
|
messages: o,
|
|
6890
|
-
modifiers:
|
|
6891
|
-
pluralRules:
|
|
6890
|
+
modifiers: c,
|
|
6891
|
+
pluralRules: u,
|
|
6892
6892
|
missing: d,
|
|
6893
6893
|
missingWarn: f,
|
|
6894
6894
|
fallbackWarn: h,
|
|
@@ -6955,14 +6955,14 @@ function Vd(e, ...t) {
|
|
|
6955
6955
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: s } = e;
|
|
6956
6956
|
if (process.env.NODE_ENV !== "production" && !Nh.dateTimeFormat)
|
|
6957
6957
|
return a(Ft(Ke.CANNOT_FORMAT_DATE)), qn;
|
|
6958
|
-
const [l,
|
|
6958
|
+
const [l, c, u, d] = zo(...t), f = Ie(u.missingWarn) ? u.missingWarn : e.missingWarn, h = Ie(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, w = !!u.part, _ = Is(e, u), v = o(
|
|
6959
6959
|
e,
|
|
6960
6960
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
6961
6961
|
i,
|
|
6962
6962
|
_
|
|
6963
6963
|
);
|
|
6964
6964
|
if (!X(l) || l === "")
|
|
6965
|
-
return new Intl.DateTimeFormat(_, d).format(
|
|
6965
|
+
return new Intl.DateTimeFormat(_, d).format(c);
|
|
6966
6966
|
let p = {}, g, y = null, m = _, C = null;
|
|
6967
6967
|
const S = "datetime format";
|
|
6968
6968
|
for (let R = 0; R < v.length; R++) {
|
|
@@ -6988,7 +6988,7 @@ function Vd(e, ...t) {
|
|
|
6988
6988
|
let b = `${g}__${l}`;
|
|
6989
6989
|
ir(d) || (b = `${b}__${JSON.stringify(d)}`);
|
|
6990
6990
|
let N = s.get(b);
|
|
6991
|
-
return N || (N = new Intl.DateTimeFormat(g, Ve({}, y, d)), s.set(b, N)), w ? N.formatToParts(
|
|
6991
|
+
return N || (N = new Intl.DateTimeFormat(g, Ve({}, y, d)), s.set(b, N)), w ? N.formatToParts(c) : N.format(c);
|
|
6992
6992
|
}
|
|
6993
6993
|
const Ih = [
|
|
6994
6994
|
"localeMatcher",
|
|
@@ -7019,8 +7019,8 @@ function zo(...e) {
|
|
|
7019
7019
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
7020
7020
|
if (!l)
|
|
7021
7021
|
throw vt(Be.INVALID_ISO_DATE_ARGUMENT);
|
|
7022
|
-
const
|
|
7023
|
-
s = new Date(
|
|
7022
|
+
const c = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
7023
|
+
s = new Date(c);
|
|
7024
7024
|
try {
|
|
7025
7025
|
s.toISOString();
|
|
7026
7026
|
} catch {
|
|
@@ -7049,14 +7049,14 @@ function Hd(e, ...t) {
|
|
|
7049
7049
|
const { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: s } = e;
|
|
7050
7050
|
if (process.env.NODE_ENV !== "production" && !Nh.numberFormat)
|
|
7051
7051
|
return a(Ft(Ke.CANNOT_FORMAT_NUMBER)), qn;
|
|
7052
|
-
const [l,
|
|
7052
|
+
const [l, c, u, d] = Ko(...t), f = Ie(u.missingWarn) ? u.missingWarn : e.missingWarn, h = Ie(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, w = !!u.part, _ = Is(e, u), v = o(
|
|
7053
7053
|
e,
|
|
7054
7054
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
7055
7055
|
i,
|
|
7056
7056
|
_
|
|
7057
7057
|
);
|
|
7058
7058
|
if (!X(l) || l === "")
|
|
7059
|
-
return new Intl.NumberFormat(_, d).format(
|
|
7059
|
+
return new Intl.NumberFormat(_, d).format(c);
|
|
7060
7060
|
let p = {}, g, y = null, m = _, C = null;
|
|
7061
7061
|
const S = "number format";
|
|
7062
7062
|
for (let R = 0; R < v.length; R++) {
|
|
@@ -7082,7 +7082,7 @@ function Hd(e, ...t) {
|
|
|
7082
7082
|
let b = `${g}__${l}`;
|
|
7083
7083
|
ir(d) || (b = `${b}__${JSON.stringify(d)}`);
|
|
7084
7084
|
let N = s.get(b);
|
|
7085
|
-
return N || (N = new Intl.NumberFormat(g, Ve({}, y, d)), s.set(b, N)), w ? N.formatToParts(
|
|
7085
|
+
return N || (N = new Intl.NumberFormat(g, Ve({}, y, d)), s.set(b, N)), w ? N.formatToParts(c) : N.format(c);
|
|
7086
7086
|
}
|
|
7087
7087
|
const Ah = [
|
|
7088
7088
|
"localeMatcher",
|
|
@@ -7137,26 +7137,26 @@ function mE(e, t) {
|
|
|
7137
7137
|
function gE(e = {}) {
|
|
7138
7138
|
const t = e.locale, n = pE(e), r = pe(e.pluralRules) && X(t) && we(e.pluralRules[t]) ? e.pluralRules[t] : Bd, i = pe(e.pluralRules) && X(t) && we(e.pluralRules[t]) ? Bd : void 0, a = (p) => p[r(n, p.length, i)], o = e.list || [], s = (p) => o[p], l = e.named || Ee();
|
|
7139
7139
|
Fe(e.pluralIndex) && mE(n, l);
|
|
7140
|
-
const
|
|
7141
|
-
function
|
|
7140
|
+
const c = (p) => l[p];
|
|
7141
|
+
function u(p, g) {
|
|
7142
7142
|
const y = we(e.messages) ? e.messages(p, !!g) : pe(e.messages) ? e.messages[p] : !1;
|
|
7143
7143
|
return y || (e.parent ? e.parent.message(p) : cE);
|
|
7144
7144
|
}
|
|
7145
7145
|
const d = (p) => e.modifiers ? e.modifiers[p] : uE, f = he(e.processor) && we(e.processor.normalize) ? e.processor.normalize : fE, h = he(e.processor) && we(e.processor.interpolate) ? e.processor.interpolate : hE, w = he(e.processor) && X(e.processor.type) ? e.processor.type : dE, v = {
|
|
7146
7146
|
list: s,
|
|
7147
|
-
named:
|
|
7147
|
+
named: c,
|
|
7148
7148
|
plural: a,
|
|
7149
7149
|
linked: (p, ...g) => {
|
|
7150
7150
|
const [y, m] = g;
|
|
7151
7151
|
let C = "text", S = "";
|
|
7152
7152
|
g.length === 1 ? pe(y) ? (S = y.modifier || S, C = y.type || C) : X(y) && (S = y || S) : g.length === 2 && (X(y) && (S = y || S), X(m) && (C = m || C));
|
|
7153
|
-
const b =
|
|
7153
|
+
const b = u(p, !0)(v), N = (
|
|
7154
7154
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
7155
7155
|
C === "vnode" && $e(b) && S ? b[0] : b
|
|
7156
7156
|
);
|
|
7157
7157
|
return S ? d(S)(N, C) : N;
|
|
7158
7158
|
},
|
|
7159
|
-
message:
|
|
7159
|
+
message: u,
|
|
7160
7160
|
type: w,
|
|
7161
7161
|
interpolate: h,
|
|
7162
7162
|
normalize: f,
|
|
@@ -7166,14 +7166,14 @@ function gE(e = {}) {
|
|
|
7166
7166
|
}
|
|
7167
7167
|
const Wd = () => "", ot = (e) => we(e);
|
|
7168
7168
|
function jd(e, ...t) {
|
|
7169
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: a, fallbackLocale: o, messages: s } = e, [l,
|
|
7170
|
-
f && vE(
|
|
7169
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: a, fallbackLocale: o, messages: s } = e, [l, c] = Yo(...t), u = Ie(c.missingWarn) ? c.missingWarn : e.missingWarn, d = Ie(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = Ie(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, h = !!c.resolvedMessage, w = X(c.default) || Ie(c.default) ? Ie(c.default) ? a ? l : () => l : c.default : n ? a ? l : () => l : null, _ = n || w != null && (X(w) || we(w)), v = Is(e, c);
|
|
7170
|
+
f && vE(c);
|
|
7171
7171
|
let [p, g, y] = h ? [
|
|
7172
7172
|
l,
|
|
7173
7173
|
v,
|
|
7174
7174
|
s[v] || Ee()
|
|
7175
|
-
] : Rh(e, l, v, o, d,
|
|
7176
|
-
if (!h && !(X(m) ||
|
|
7175
|
+
] : Rh(e, l, v, o, d, u), m = p, C = l;
|
|
7176
|
+
if (!h && !(X(m) || ct(m) || ot(m)) && _ && (m = w, C = m), !h && (!(X(m) || ct(m) || ot(m)) || !X(g)))
|
|
7177
7177
|
return i ? ar : l;
|
|
7178
7178
|
if (process.env.NODE_ENV !== "production" && X(m) && e.messageCompiler == null)
|
|
7179
7179
|
return It(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
|
@@ -7183,7 +7183,7 @@ function jd(e, ...t) {
|
|
|
7183
7183
|
}, N = ot(m) ? m : Dh(e, l, g, m, C, b);
|
|
7184
7184
|
if (S)
|
|
7185
7185
|
return m;
|
|
7186
|
-
const R = bE(e, g, y,
|
|
7186
|
+
const R = bE(e, g, y, c), D = gE(R), B = _E(e, N, D), q = r ? r(B, l) : B;
|
|
7187
7187
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
7188
7188
|
const Z = {
|
|
7189
7189
|
timestamp: Date.now(),
|
|
@@ -7202,11 +7202,11 @@ function vE(e) {
|
|
|
7202
7202
|
});
|
|
7203
7203
|
}
|
|
7204
7204
|
function Rh(e, t, n, r, i, a) {
|
|
7205
|
-
const { messages: o, onWarn: s, messageResolver: l, localeFallbacker:
|
|
7205
|
+
const { messages: o, onWarn: s, messageResolver: l, localeFallbacker: c } = e, u = c(e, r, n);
|
|
7206
7206
|
let d = Ee(), f, h = null, w = n, _ = null;
|
|
7207
7207
|
const v = "translate";
|
|
7208
|
-
for (let p = 0; p <
|
|
7209
|
-
if (f = _ =
|
|
7208
|
+
for (let p = 0; p < u.length; p++) {
|
|
7209
|
+
if (f = _ = u[p], process.env.NODE_ENV !== "production" && n !== f && !Oh(n, f) && or(i, t) && s(Ft(Ke.FALLBACK_TO_TRANSLATE, {
|
|
7210
7210
|
key: t,
|
|
7211
7211
|
target: f
|
|
7212
7212
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -7231,9 +7231,9 @@ function Rh(e, t, n, r, i, a) {
|
|
|
7231
7231
|
groupId: `${v}:${t}`
|
|
7232
7232
|
}), y && m && rt && qt && (rt(m), qt("intlify message resolve", y, m));
|
|
7233
7233
|
}
|
|
7234
|
-
if (X(h) ||
|
|
7234
|
+
if (X(h) || ct(h) || ot(h))
|
|
7235
7235
|
break;
|
|
7236
|
-
if (!lE(f,
|
|
7236
|
+
if (!lE(f, u)) {
|
|
7237
7237
|
const C = As(
|
|
7238
7238
|
e,
|
|
7239
7239
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -7258,8 +7258,8 @@ function Dh(e, t, n, r, i, a) {
|
|
|
7258
7258
|
const f = () => r;
|
|
7259
7259
|
return f.locale = n, f.key = t, f;
|
|
7260
7260
|
}
|
|
7261
|
-
let l = null,
|
|
7262
|
-
process.env.NODE_ENV !== "production" && bt && (l = window.performance.now(),
|
|
7261
|
+
let l = null, c, u;
|
|
7262
|
+
process.env.NODE_ENV !== "production" && bt && (l = window.performance.now(), c = "intlify-message-compilation-start", u = "intlify-message-compilation-end", rt && rt(c));
|
|
7263
7263
|
const d = o(r, yE(e, n, i, r, s, a));
|
|
7264
7264
|
if (process.env.NODE_ENV !== "production" && bt) {
|
|
7265
7265
|
const f = window.performance.now(), h = e.__v_emitter;
|
|
@@ -7268,7 +7268,7 @@ function Dh(e, t, n, r, i, a) {
|
|
|
7268
7268
|
message: r,
|
|
7269
7269
|
time: f - l,
|
|
7270
7270
|
groupId: `translate:${t}`
|
|
7271
|
-
}),
|
|
7271
|
+
}), c && u && rt && qt && (rt(u), qt("intlify message compilation", c, u));
|
|
7272
7272
|
}
|
|
7273
7273
|
return d.locale = n, d.key = t, d.source = r, d;
|
|
7274
7274
|
}
|
|
@@ -7289,7 +7289,7 @@ function _E(e, t, n) {
|
|
|
7289
7289
|
}
|
|
7290
7290
|
function Yo(...e) {
|
|
7291
7291
|
const [t, n, r] = e, i = Ee();
|
|
7292
|
-
if (!X(t) && !Fe(t) && !ot(t) && !
|
|
7292
|
+
if (!X(t) && !Fe(t) && !ot(t) && !ct(t))
|
|
7293
7293
|
throw vt(Be.INVALID_ARGUMENT);
|
|
7294
7294
|
const a = Fe(t) ? String(t) : (ot(t), t);
|
|
7295
7295
|
return Fe(n) ? i.plural = n : X(n) ? i.default = n : he(n) && !ir(n) ? i.named = n : $e(n) && (i.list = n), Fe(r) ? i.plural = r : X(r) ? i.default = r : he(r) && Ve(i, r), [a, i];
|
|
@@ -7301,15 +7301,15 @@ function yE(e, t, n, r, i, a) {
|
|
|
7301
7301
|
warnHtmlMessage: i,
|
|
7302
7302
|
onError: (o) => {
|
|
7303
7303
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
7304
|
-
const s = EE(r), l = `Message compilation error: ${o.message}`,
|
|
7305
|
-
|
|
7304
|
+
const s = EE(r), l = `Message compilation error: ${o.message}`, c = o.location && s && G_(s, o.location.start.offset, o.location.end.offset), u = e.__v_emitter;
|
|
7305
|
+
u && s && u.emit("compile-error", {
|
|
7306
7306
|
message: s,
|
|
7307
7307
|
error: o.message,
|
|
7308
7308
|
start: o.location && o.location.start.offset,
|
|
7309
7309
|
end: o.location && o.location.end.offset,
|
|
7310
7310
|
groupId: `translate:${n}`
|
|
7311
|
-
}), console.error(
|
|
7312
|
-
${
|
|
7311
|
+
}), console.error(c ? `${l}
|
|
7312
|
+
${c}` : l);
|
|
7313
7313
|
} else
|
|
7314
7314
|
throw o;
|
|
7315
7315
|
},
|
|
@@ -7323,25 +7323,25 @@ function EE(e) {
|
|
|
7323
7323
|
return e.loc.source;
|
|
7324
7324
|
}
|
|
7325
7325
|
function bE(e, t, n, r) {
|
|
7326
|
-
const { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: l, missingWarn:
|
|
7326
|
+
const { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: l, missingWarn: c, fallbackContext: u } = e, f = {
|
|
7327
7327
|
locale: t,
|
|
7328
7328
|
modifiers: i,
|
|
7329
7329
|
pluralRules: a,
|
|
7330
7330
|
messages: (h, w) => {
|
|
7331
7331
|
let _ = o(n, h);
|
|
7332
|
-
if (_ == null && (
|
|
7332
|
+
if (_ == null && (u || w)) {
|
|
7333
7333
|
const [, , v] = Rh(
|
|
7334
|
-
|
|
7334
|
+
u || e,
|
|
7335
7335
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
7336
7336
|
h,
|
|
7337
7337
|
t,
|
|
7338
7338
|
s,
|
|
7339
7339
|
l,
|
|
7340
|
-
|
|
7340
|
+
c
|
|
7341
7341
|
);
|
|
7342
7342
|
_ = o(v, h);
|
|
7343
7343
|
}
|
|
7344
|
-
if (X(_) ||
|
|
7344
|
+
if (X(_) || ct(_)) {
|
|
7345
7345
|
let v = !1;
|
|
7346
7346
|
const g = Dh(e, h, t, _, h, () => {
|
|
7347
7347
|
v = !0;
|
|
@@ -7413,11 +7413,11 @@ class OE {
|
|
|
7413
7413
|
args: l,
|
|
7414
7414
|
resolve: () => {
|
|
7415
7415
|
}
|
|
7416
|
-
}), this.fallbacks[s](...l)) : (...l) => new Promise((
|
|
7416
|
+
}), this.fallbacks[s](...l)) : (...l) => new Promise((c) => {
|
|
7417
7417
|
this.targetQueue.push({
|
|
7418
7418
|
method: s,
|
|
7419
7419
|
args: l,
|
|
7420
|
-
resolve:
|
|
7420
|
+
resolve: c
|
|
7421
7421
|
});
|
|
7422
7422
|
})
|
|
7423
7423
|
});
|
|
@@ -7520,10 +7520,10 @@ function Rs(e, ...t) {
|
|
|
7520
7520
|
return rr(PE[e], ...t);
|
|
7521
7521
|
}
|
|
7522
7522
|
function gn(e) {
|
|
7523
|
-
if (!pe(e) ||
|
|
7523
|
+
if (!pe(e) || ct(e))
|
|
7524
7524
|
return e;
|
|
7525
7525
|
for (const t in e)
|
|
7526
|
-
if (
|
|
7526
|
+
if (ut(e, t))
|
|
7527
7527
|
if (!t.includes("."))
|
|
7528
7528
|
pe(e[t]) && gn(e[t]);
|
|
7529
7529
|
else {
|
|
@@ -7540,7 +7540,7 @@ function gn(e) {
|
|
|
7540
7540
|
}
|
|
7541
7541
|
i = i[n[o]];
|
|
7542
7542
|
}
|
|
7543
|
-
if (a || (
|
|
7543
|
+
if (a || (ct(i) ? Eh.includes(n[r]) || delete e[t] : (i[n[r]] = e[t], delete e[t])), !ct(i)) {
|
|
7544
7544
|
const o = i[n[r]];
|
|
7545
7545
|
pe(o) && gn(o);
|
|
7546
7546
|
}
|
|
@@ -7551,13 +7551,13 @@ function $h(e, t) {
|
|
|
7551
7551
|
const { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = he(n) ? n : $e(r) ? Ee() : { [e]: Ee() };
|
|
7552
7552
|
if ($e(r) && r.forEach((s) => {
|
|
7553
7553
|
if ("locale" in s && "resource" in s) {
|
|
7554
|
-
const { locale: l, resource:
|
|
7555
|
-
l ? (o[l] = o[l] || Ee(), Pn(
|
|
7554
|
+
const { locale: l, resource: c } = s;
|
|
7555
|
+
l ? (o[l] = o[l] || Ee(), Pn(c, o[l])) : Pn(c, o);
|
|
7556
7556
|
} else
|
|
7557
7557
|
X(s) && Pn(JSON.parse(s), o);
|
|
7558
7558
|
}), i == null && a)
|
|
7559
7559
|
for (const s in o)
|
|
7560
|
-
|
|
7560
|
+
ut(o, s) && gn(o[s]);
|
|
7561
7561
|
return o;
|
|
7562
7562
|
}
|
|
7563
7563
|
function xh(e) {
|
|
@@ -7610,7 +7610,7 @@ function qE(e = {}) {
|
|
|
7610
7610
|
), l = a(
|
|
7611
7611
|
// prettier-ignore
|
|
7612
7612
|
t && o ? t.fallbackLocale.value : X(e.fallbackLocale) || $e(e.fallbackLocale) || he(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
|
|
7613
|
-
),
|
|
7613
|
+
), c = a($h(s.value, e)), u = a(he(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), d = a(he(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
|
|
7614
7614
|
let f = t ? t.missingWarn : Ie(e.missingWarn) || $n(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : Ie(e.fallbackWarn) || $n(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : Ie(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, v = we(e.missing) ? e.missing : null, p = we(e.missing) ? Zd(e.missing) : null, g = we(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : Ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
7615
7615
|
const C = t ? t.modifiers : he(e.modifiers) ? e.modifiers : {};
|
|
7616
7616
|
let S = e.pluralRules || t && t.pluralRules, b;
|
|
@@ -7620,7 +7620,7 @@ function qE(e = {}) {
|
|
|
7620
7620
|
version: IE,
|
|
7621
7621
|
locale: s.value,
|
|
7622
7622
|
fallbackLocale: l.value,
|
|
7623
|
-
messages:
|
|
7623
|
+
messages: c.value,
|
|
7624
7624
|
modifiers: C,
|
|
7625
7625
|
pluralRules: S,
|
|
7626
7626
|
missing: p === null ? void 0 : p,
|
|
@@ -7635,7 +7635,7 @@ function qE(e = {}) {
|
|
|
7635
7635
|
messageCompiler: e.messageCompiler,
|
|
7636
7636
|
__meta: { framework: "vue" }
|
|
7637
7637
|
};
|
|
7638
|
-
A.datetimeFormats =
|
|
7638
|
+
A.datetimeFormats = u.value, A.numberFormats = d.value, A.__datetimeFormatters = he(b) ? b.__datetimeFormatters : void 0, A.__numberFormatters = he(b) ? b.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (A.__v_emitter = he(b) ? b.__v_emitter : void 0);
|
|
7639
7639
|
const U = sE(A);
|
|
7640
7640
|
return r && xd(U), U;
|
|
7641
7641
|
})(), un(b, s.value, l.value);
|
|
@@ -7643,22 +7643,22 @@ function qE(e = {}) {
|
|
|
7643
7643
|
return [
|
|
7644
7644
|
s.value,
|
|
7645
7645
|
l.value,
|
|
7646
|
-
u.value,
|
|
7647
7646
|
c.value,
|
|
7647
|
+
u.value,
|
|
7648
7648
|
d.value
|
|
7649
7649
|
];
|
|
7650
7650
|
}
|
|
7651
|
-
const D =
|
|
7651
|
+
const D = ce({
|
|
7652
7652
|
get: () => s.value,
|
|
7653
7653
|
set: (A) => {
|
|
7654
7654
|
b.locale = A, s.value = A;
|
|
7655
7655
|
}
|
|
7656
|
-
}), B =
|
|
7656
|
+
}), B = ce({
|
|
7657
7657
|
get: () => l.value,
|
|
7658
7658
|
set: (A) => {
|
|
7659
7659
|
b.fallbackLocale = A, l.value = A, un(b, s.value, A);
|
|
7660
7660
|
}
|
|
7661
|
-
}), q =
|
|
7661
|
+
}), q = ce(() => c.value), Z = /* @__PURE__ */ ce(() => u.value), re = /* @__PURE__ */ ce(() => d.value);
|
|
7662
7662
|
function V() {
|
|
7663
7663
|
return we(g) ? g : null;
|
|
7664
7664
|
}
|
|
@@ -7753,14 +7753,14 @@ function qE(e = {}) {
|
|
|
7753
7753
|
if (!A)
|
|
7754
7754
|
return !1;
|
|
7755
7755
|
const me = X(U) ? U : s.value, Ne = et(me), Dt = b.messageResolver(Ne, A);
|
|
7756
|
-
return
|
|
7756
|
+
return ct(Dt) || ot(Dt) || X(Dt);
|
|
7757
7757
|
}, () => [A], "translate exists", (me) => Reflect.apply(me.te, me, [A, U]), $E, (me) => Ie(me));
|
|
7758
7758
|
}
|
|
7759
7759
|
function xe(A) {
|
|
7760
7760
|
let U = null;
|
|
7761
7761
|
const me = bh(b, l.value, s.value);
|
|
7762
7762
|
for (let Ne = 0; Ne < me.length; Ne++) {
|
|
7763
|
-
const Dt =
|
|
7763
|
+
const Dt = c.value[me[Ne]] || {}, Cn = b.messageResolver(Dt, A);
|
|
7764
7764
|
if (Cn != null) {
|
|
7765
7765
|
U = Cn;
|
|
7766
7766
|
break;
|
|
@@ -7773,33 +7773,33 @@ function qE(e = {}) {
|
|
|
7773
7773
|
return U ?? (t ? t.tm(A) || {} : {});
|
|
7774
7774
|
}
|
|
7775
7775
|
function et(A) {
|
|
7776
|
-
return
|
|
7776
|
+
return c.value[A] || {};
|
|
7777
7777
|
}
|
|
7778
7778
|
function St(A, U) {
|
|
7779
7779
|
if (i) {
|
|
7780
7780
|
const me = { [A]: U };
|
|
7781
7781
|
for (const Ne in me)
|
|
7782
|
-
|
|
7782
|
+
ut(me, Ne) && gn(me[Ne]);
|
|
7783
7783
|
U = me[A];
|
|
7784
7784
|
}
|
|
7785
|
-
|
|
7785
|
+
c.value[A] = U, b.messages = c.value;
|
|
7786
7786
|
}
|
|
7787
7787
|
function Kt(A, U) {
|
|
7788
|
-
|
|
7788
|
+
c.value[A] = c.value[A] || {};
|
|
7789
7789
|
const me = { [A]: U };
|
|
7790
7790
|
if (i)
|
|
7791
7791
|
for (const Ne in me)
|
|
7792
|
-
|
|
7793
|
-
U = me[A], Pn(U,
|
|
7792
|
+
ut(me, Ne) && gn(me[Ne]);
|
|
7793
|
+
U = me[A], Pn(U, c.value[A]), b.messages = c.value;
|
|
7794
7794
|
}
|
|
7795
7795
|
function k(A) {
|
|
7796
|
-
return
|
|
7796
|
+
return u.value[A] || {};
|
|
7797
7797
|
}
|
|
7798
7798
|
function T(A, U) {
|
|
7799
|
-
|
|
7799
|
+
u.value[A] = U, b.datetimeFormats = u.value, Ud(b, A, U);
|
|
7800
7800
|
}
|
|
7801
7801
|
function x(A, U) {
|
|
7802
|
-
|
|
7802
|
+
u.value[A] = Ve(u.value[A] || {}, U), b.datetimeFormats = u.value, Ud(b, A, U);
|
|
7803
7803
|
}
|
|
7804
7804
|
function ee(A) {
|
|
7805
7805
|
return d.value[A] || {};
|
|
@@ -7810,9 +7810,9 @@ function qE(e = {}) {
|
|
|
7810
7810
|
function Oe(A, U) {
|
|
7811
7811
|
d.value[A] = Ve(d.value[A] || {}, U), b.numberFormats = d.value, Gd(b, A, U);
|
|
7812
7812
|
}
|
|
7813
|
-
Xd++, t && bt && (
|
|
7813
|
+
Xd++, t && bt && (st(t.locale, (A) => {
|
|
7814
7814
|
o && (s.value = A, b.locale = A, un(b, s.value, l.value));
|
|
7815
|
-
}),
|
|
7815
|
+
}), st(t.fallbackLocale, (A) => {
|
|
7816
7816
|
o && (l.value = A, b.fallbackLocale = A, un(b, s.value, l.value));
|
|
7817
7817
|
}));
|
|
7818
7818
|
const fe = {
|
|
@@ -7826,7 +7826,7 @@ function qE(e = {}) {
|
|
|
7826
7826
|
o = A, A && t && (s.value = t.locale.value, l.value = t.fallbackLocale.value, un(b, s.value, l.value));
|
|
7827
7827
|
},
|
|
7828
7828
|
get availableLocales() {
|
|
7829
|
-
return Object.keys(
|
|
7829
|
+
return Object.keys(c.value).sort();
|
|
7830
7830
|
},
|
|
7831
7831
|
messages: q,
|
|
7832
7832
|
get modifiers() {
|
|
@@ -7943,13 +7943,13 @@ function Fh(e, t, n, r) {
|
|
|
7943
7943
|
let s = Ee();
|
|
7944
7944
|
e.locale && (o.locale = e.locale), X(e.format) ? o.key = e.format : pe(e.format) && (X(e.format.key) && (o.key = e.format.key), s = Object.keys(e.format).reduce((f, h) => n.includes(h) ? Ve(Ee(), f, { [h]: e.format[h] }) : f, Ee()));
|
|
7945
7945
|
const l = r(e.value, o, s);
|
|
7946
|
-
let
|
|
7947
|
-
$e(l) ?
|
|
7946
|
+
let c = [o.key];
|
|
7947
|
+
$e(l) ? c = l.map((f, h) => {
|
|
7948
7948
|
const w = i[f.type], _ = w ? w({ [f.type]: f.value, index: h, parts: l }) : [f.value];
|
|
7949
7949
|
return VE(_) && (_[0].key = `${f.type}-${h}`), _;
|
|
7950
|
-
}) : X(l) && (
|
|
7951
|
-
const
|
|
7952
|
-
return nn(d,
|
|
7950
|
+
}) : X(l) && (c = [l]);
|
|
7951
|
+
const u = Ve(Ee(), a), d = X(e.tag) || pe(e.tag) ? e.tag : qh();
|
|
7952
|
+
return nn(d, u, c);
|
|
7953
7953
|
};
|
|
7954
7954
|
}
|
|
7955
7955
|
Ve({
|
|
@@ -8103,21 +8103,21 @@ const _e = /* @__PURE__ */ Re({
|
|
|
8103
8103
|
variable: {}
|
|
8104
8104
|
},
|
|
8105
8105
|
setup(e) {
|
|
8106
|
-
const t = e, n =
|
|
8106
|
+
const t = e, n = ce(() => `data:image/svg+xml;base64,${a.value}`), r = ce(() => ({
|
|
8107
8107
|
flowable: o.value ? o.value.flowable : !1
|
|
8108
|
-
})), i =
|
|
8108
|
+
})), i = ce(() => ({
|
|
8109
8109
|
backgroundImage: `url(${n.value})`
|
|
8110
|
-
})), a =
|
|
8110
|
+
})), a = ce(() => {
|
|
8111
8111
|
let l = o.value && o.value.icon ? window.atob(o.value.icon) : void 0;
|
|
8112
8112
|
l || (l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');
|
|
8113
|
-
const
|
|
8114
|
-
let
|
|
8115
|
-
return t.theme && (
|
|
8116
|
-
}), o =
|
|
8113
|
+
const c = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0;
|
|
8114
|
+
let u = at(c ? "--bs-gray-900" : "--bs-black") ?? "#FFFFFF";
|
|
8115
|
+
return t.theme && (u = (t.theme === "dark" ? at("--bs-gray-900") : at("--bs-black")) ?? u), t.variable && (u = at(t.variable) ?? u), l = l.replace(/currentColor/g, u), window.btoa(l);
|
|
8116
|
+
}), o = ce(() => t.cls ? (t.icons || {})[s(t.cls)] : t.customIcon);
|
|
8117
8117
|
function s(l) {
|
|
8118
8118
|
return l.includes("$") ? l.substring(0, l.indexOf("$")) : l;
|
|
8119
8119
|
}
|
|
8120
|
-
return (l,
|
|
8120
|
+
return (l, c) => (E(), L("div", {
|
|
8121
8121
|
class: ge([r.value, "wrapper"])
|
|
8122
8122
|
}, [
|
|
8123
8123
|
l.onlyIcon ? (E(), L("div", {
|
|
@@ -8243,7 +8243,7 @@ const sb = /* @__PURE__ */ Q(tb, [["render", ob]]), lb = { class: "dependency-te
|
|
|
8243
8243
|
j.MOUSE_LEAVE
|
|
8244
8244
|
],
|
|
8245
8245
|
setup(e, { emit: t }) {
|
|
8246
|
-
const n = t, { t: r } = sr(), i =
|
|
8246
|
+
const n = t, { t: r } = sr(), i = ce(() => window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
8247
8247
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
|
|
8248
8248
|
</svg>`));
|
|
8249
8249
|
return (a, o) => (E(), L(Me, null, [
|
|
@@ -8366,12 +8366,12 @@ const hb = {
|
|
|
8366
8366
|
offset: { default: 2 }
|
|
8367
8367
|
},
|
|
8368
8368
|
setup(e) {
|
|
8369
|
-
const { id: t, viewport: n } = Mt(), r =
|
|
8370
|
-
const [o, s] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], l = [o * n.value.zoom || 1, s * n.value.zoom || 1],
|
|
8369
|
+
const { id: t, viewport: n } = Mt(), r = ce(() => {
|
|
8370
|
+
const [o, s] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], l = [o * n.value.zoom || 1, s * n.value.zoom || 1], c = e.size * n.value.zoom, u = e.variant === mt.Dots ? [c / e.offset, c / e.offset] : [l[0] / e.offset, l[1] / e.offset];
|
|
8371
8371
|
return {
|
|
8372
8372
|
scaledGap: l,
|
|
8373
|
-
offset:
|
|
8374
|
-
size:
|
|
8373
|
+
offset: u,
|
|
8374
|
+
size: c
|
|
8375
8375
|
};
|
|
8376
8376
|
}), i = Xs(() => `pattern-${t}${e.id ? `-${e.id}` : ""}`), a = Xs(() => e.color || e.patternColor || hb[e.variant || mt.Dots]);
|
|
8377
8377
|
return (o, s) => (E(), L("svg", {
|
|
@@ -8749,7 +8749,7 @@ const jb = /* @__PURE__ */ Q(Vb, [["render", Wb]]), zb = { class: "add-task-div
|
|
|
8749
8749
|
},
|
|
8750
8750
|
setup(e) {
|
|
8751
8751
|
return {
|
|
8752
|
-
path:
|
|
8752
|
+
path: ce(() => Um(e))
|
|
8753
8753
|
};
|
|
8754
8754
|
},
|
|
8755
8755
|
inheritAttrs: !1
|
|
@@ -8780,7 +8780,7 @@ function Jb(e, t, n, r, i, a) {
|
|
|
8780
8780
|
n.data.haveAdd ? (E(), ue(o, {
|
|
8781
8781
|
key: 0,
|
|
8782
8782
|
"add-task": !0,
|
|
8783
|
-
onClick: t[0] || (t[0] = (
|
|
8783
|
+
onClick: t[0] || (t[0] = (c) => e.$emit(a.EVENTS.ADD_TASK, n.data.haveAdd)),
|
|
8784
8784
|
class: ge({ "text-danger": n.data.color })
|
|
8785
8785
|
}, null, 8, ["class"])) : M("", !0)
|
|
8786
8786
|
]),
|
|
@@ -8911,12 +8911,12 @@ function Ms(e, t, n) {
|
|
|
8911
8911
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
8912
8912
|
var a = e._wrappedGetters, o = {}, s = {}, l = Im(!0);
|
|
8913
8913
|
l.run(function() {
|
|
8914
|
-
Bt(a, function(
|
|
8915
|
-
o[
|
|
8916
|
-
return o[
|
|
8917
|
-
}), Object.defineProperty(e.getters,
|
|
8914
|
+
Bt(a, function(c, u) {
|
|
8915
|
+
o[u] = p0(c, e), s[u] = ce(function() {
|
|
8916
|
+
return o[u]();
|
|
8917
|
+
}), Object.defineProperty(e.getters, u, {
|
|
8918
8918
|
get: function() {
|
|
8919
|
-
return s[
|
|
8919
|
+
return s[u].value;
|
|
8920
8920
|
},
|
|
8921
8921
|
enumerable: !0
|
|
8922
8922
|
// for local getters
|
|
@@ -8938,37 +8938,37 @@ function ur(e, t, n, r, i) {
|
|
|
8938
8938
|
), s[l] = r.state;
|
|
8939
8939
|
});
|
|
8940
8940
|
}
|
|
8941
|
-
var
|
|
8942
|
-
r.forEachMutation(function(
|
|
8941
|
+
var c = r.context = m0(e, o, n);
|
|
8942
|
+
r.forEachMutation(function(u, d) {
|
|
8943
8943
|
var f = o + d;
|
|
8944
|
-
g0(e, f,
|
|
8945
|
-
}), r.forEachAction(function(
|
|
8946
|
-
var f =
|
|
8947
|
-
v0(e, f, h,
|
|
8948
|
-
}), r.forEachGetter(function(
|
|
8944
|
+
g0(e, f, u, c);
|
|
8945
|
+
}), r.forEachAction(function(u, d) {
|
|
8946
|
+
var f = u.root ? d : o + d, h = u.handler || u;
|
|
8947
|
+
v0(e, f, h, c);
|
|
8948
|
+
}), r.forEachGetter(function(u, d) {
|
|
8949
8949
|
var f = o + d;
|
|
8950
|
-
_0(e, f,
|
|
8951
|
-
}), r.forEachChild(function(
|
|
8952
|
-
ur(e, t, n.concat(d),
|
|
8950
|
+
_0(e, f, u, c);
|
|
8951
|
+
}), r.forEachChild(function(u, d) {
|
|
8952
|
+
ur(e, t, n.concat(d), u, i);
|
|
8953
8953
|
});
|
|
8954
8954
|
}
|
|
8955
8955
|
function m0(e, t, n) {
|
|
8956
8956
|
var r = t === "", i = {
|
|
8957
8957
|
dispatch: r ? e.dispatch : function(a, o, s) {
|
|
8958
|
-
var l = Fn(a, o, s),
|
|
8959
|
-
if ((!
|
|
8958
|
+
var l = Fn(a, o, s), c = l.payload, u = l.options, d = l.type;
|
|
8959
|
+
if ((!u || !u.root) && (d = t + d, process.env.NODE_ENV !== "production" && !e._actions[d])) {
|
|
8960
8960
|
console.error("[vuex] unknown local action type: " + l.type + ", global type: " + d);
|
|
8961
8961
|
return;
|
|
8962
8962
|
}
|
|
8963
|
-
return e.dispatch(d,
|
|
8963
|
+
return e.dispatch(d, c);
|
|
8964
8964
|
},
|
|
8965
8965
|
commit: r ? e.commit : function(a, o, s) {
|
|
8966
|
-
var l = Fn(a, o, s),
|
|
8967
|
-
if ((!
|
|
8966
|
+
var l = Fn(a, o, s), c = l.payload, u = l.options, d = l.type;
|
|
8967
|
+
if ((!u || !u.root) && (d = t + d, process.env.NODE_ENV !== "production" && !e._mutations[d])) {
|
|
8968
8968
|
console.error("[vuex] unknown local mutation type: " + l.type + ", global type: " + d);
|
|
8969
8969
|
return;
|
|
8970
8970
|
}
|
|
8971
|
-
e.commit(d,
|
|
8971
|
+
e.commit(d, c, u);
|
|
8972
8972
|
}
|
|
8973
8973
|
};
|
|
8974
8974
|
return Object.defineProperties(i, {
|
|
@@ -9044,7 +9044,7 @@ function _0(e, t, n, r) {
|
|
|
9044
9044
|
};
|
|
9045
9045
|
}
|
|
9046
9046
|
function y0(e) {
|
|
9047
|
-
|
|
9047
|
+
st(function() {
|
|
9048
9048
|
return e._state.data;
|
|
9049
9049
|
}, function() {
|
|
9050
9050
|
process.env.NODE_ENV !== "production" && ft(e._committing, "do not mutate vuex store state outside mutation handlers.");
|
|
@@ -9400,14 +9400,14 @@ var it = function e(t) {
|
|
|
9400
9400
|
i === void 0 && (i = !1);
|
|
9401
9401
|
var a = t.devtools;
|
|
9402
9402
|
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new Wt(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
9403
|
-
var o = this, s = this, l = s.dispatch,
|
|
9403
|
+
var o = this, s = this, l = s.dispatch, c = s.commit;
|
|
9404
9404
|
this.dispatch = function(f, h) {
|
|
9405
9405
|
return l.call(o, f, h);
|
|
9406
9406
|
}, this.commit = function(f, h, w) {
|
|
9407
|
-
return
|
|
9407
|
+
return c.call(o, f, h, w);
|
|
9408
9408
|
}, this.strict = i;
|
|
9409
|
-
var
|
|
9410
|
-
ur(this,
|
|
9409
|
+
var u = this._modules.root.state;
|
|
9410
|
+
ur(this, u, [], this._modules.root), Ms(this, u), r.forEach(function(d) {
|
|
9411
9411
|
return d(n);
|
|
9412
9412
|
});
|
|
9413
9413
|
}, xs = { state: { configurable: !0 } };
|
|
@@ -9423,17 +9423,17 @@ xs.state.set = function(e) {
|
|
|
9423
9423
|
process.env.NODE_ENV !== "production" && ft(!1, "use store.replaceState() to explicit replace store state.");
|
|
9424
9424
|
};
|
|
9425
9425
|
it.prototype.commit = function(t, n, r) {
|
|
9426
|
-
var i = this, a = Fn(t, n, r), o = a.type, s = a.payload, l = a.options,
|
|
9427
|
-
if (!
|
|
9426
|
+
var i = this, a = Fn(t, n, r), o = a.type, s = a.payload, l = a.options, c = { type: o, payload: s }, u = this._mutations[o];
|
|
9427
|
+
if (!u) {
|
|
9428
9428
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + o);
|
|
9429
9429
|
return;
|
|
9430
9430
|
}
|
|
9431
9431
|
this._withCommit(function() {
|
|
9432
|
-
|
|
9432
|
+
u.forEach(function(f) {
|
|
9433
9433
|
f(s);
|
|
9434
9434
|
});
|
|
9435
9435
|
}), this._subscribers.slice().forEach(function(d) {
|
|
9436
|
-
return d(
|
|
9436
|
+
return d(c, i.state);
|
|
9437
9437
|
}), process.env.NODE_ENV !== "production" && l && l.silent && console.warn(
|
|
9438
9438
|
"[vuex] mutation type: " + o + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
9439
9439
|
);
|
|
@@ -9445,19 +9445,19 @@ it.prototype.dispatch = function(t, n) {
|
|
|
9445
9445
|
return;
|
|
9446
9446
|
}
|
|
9447
9447
|
try {
|
|
9448
|
-
this._actionSubscribers.slice().filter(function(
|
|
9449
|
-
return
|
|
9450
|
-
}).forEach(function(
|
|
9451
|
-
return
|
|
9448
|
+
this._actionSubscribers.slice().filter(function(u) {
|
|
9449
|
+
return u.before;
|
|
9450
|
+
}).forEach(function(u) {
|
|
9451
|
+
return u.before(s, r.state);
|
|
9452
9452
|
});
|
|
9453
|
-
} catch (
|
|
9454
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(
|
|
9453
|
+
} catch (u) {
|
|
9454
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(u));
|
|
9455
9455
|
}
|
|
9456
|
-
var
|
|
9457
|
-
return
|
|
9456
|
+
var c = l.length > 1 ? Promise.all(l.map(function(u) {
|
|
9457
|
+
return u(o);
|
|
9458
9458
|
})) : l[0](o);
|
|
9459
|
-
return new Promise(function(
|
|
9460
|
-
|
|
9459
|
+
return new Promise(function(u, d) {
|
|
9460
|
+
c.then(function(f) {
|
|
9461
9461
|
try {
|
|
9462
9462
|
r._actionSubscribers.filter(function(h) {
|
|
9463
9463
|
return h.after;
|
|
@@ -9467,7 +9467,7 @@ it.prototype.dispatch = function(t, n) {
|
|
|
9467
9467
|
} catch (h) {
|
|
9468
9468
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(h));
|
|
9469
9469
|
}
|
|
9470
|
-
|
|
9470
|
+
u(f);
|
|
9471
9471
|
}, function(f) {
|
|
9472
9472
|
try {
|
|
9473
9473
|
r._actionSubscribers.filter(function(h) {
|
|
@@ -9491,7 +9491,7 @@ it.prototype.subscribeAction = function(t, n) {
|
|
|
9491
9491
|
};
|
|
9492
9492
|
it.prototype.watch = function(t, n, r) {
|
|
9493
9493
|
var i = this;
|
|
9494
|
-
return process.env.NODE_ENV !== "production" && ft(typeof t == "function", "store.watch only accepts a function."),
|
|
9494
|
+
return process.env.NODE_ENV !== "production" && ft(typeof t == "function", "store.watch only accepts a function."), st(function() {
|
|
9495
9495
|
return t(i.state, i.getters);
|
|
9496
9496
|
}, n, Object.assign({}, r));
|
|
9497
9497
|
};
|
|
@@ -9529,10 +9529,10 @@ var qs = rp(function(e, t) {
|
|
|
9529
9529
|
n[i] = function() {
|
|
9530
9530
|
var s = this.$store.state, l = this.$store.getters;
|
|
9531
9531
|
if (e) {
|
|
9532
|
-
var
|
|
9533
|
-
if (!
|
|
9532
|
+
var c = ip(this.$store, "mapState", e);
|
|
9533
|
+
if (!c)
|
|
9534
9534
|
return;
|
|
9535
|
-
s =
|
|
9535
|
+
s = c.context.state, l = c.context.getters;
|
|
9536
9536
|
}
|
|
9537
9537
|
return typeof a == "function" ? a.call(this, s, l) : s[a];
|
|
9538
9538
|
}, n[i].vuex = !0;
|
|
@@ -9796,7 +9796,7 @@ const A0 = { class: "icon rounded" }, R0 = { class: "node-content" }, D0 = { cla
|
|
|
9796
9796
|
},
|
|
9797
9797
|
setup(e) {
|
|
9798
9798
|
const t = e;
|
|
9799
|
-
|
|
9799
|
+
st(
|
|
9800
9800
|
() => t.histories,
|
|
9801
9801
|
(h, w) => {
|
|
9802
9802
|
w[0].date !== h[0].date && s();
|
|
@@ -9806,10 +9806,10 @@ const A0 = { class: "icon rounded" }, R0 = { class: "node-content" }, D0 = { cla
|
|
|
9806
9806
|
yn(() => {
|
|
9807
9807
|
s();
|
|
9808
9808
|
});
|
|
9809
|
-
const i =
|
|
9809
|
+
const i = ce(() => {
|
|
9810
9810
|
var h;
|
|
9811
9811
|
return ((h = t.histories) == null ? void 0 : h.length) && new Date(t.histories[0].date.toString()).getTime();
|
|
9812
|
-
}), a =
|
|
9812
|
+
}), a = ce(() => t.histories[t.histories.length - 1]), o = ce(() => t.histories.filter((h) => h.date.isValid() && h.date && h.state));
|
|
9813
9813
|
function s() {
|
|
9814
9814
|
r.value || (r.value = setInterval(() => {
|
|
9815
9815
|
d(), t.histories && !qe.isRunning(a.value.state) && l();
|
|
@@ -9818,14 +9818,14 @@ const A0 = { class: "icon rounded" }, R0 = { class: "node-content" }, D0 = { cla
|
|
|
9818
9818
|
function l() {
|
|
9819
9819
|
r.value && (clearInterval(r.value), r.value = void 0);
|
|
9820
9820
|
}
|
|
9821
|
-
function u() {
|
|
9822
|
-
return c() - i.value;
|
|
9823
|
-
}
|
|
9824
9821
|
function c() {
|
|
9822
|
+
return u() - i.value;
|
|
9823
|
+
}
|
|
9824
|
+
function u() {
|
|
9825
9825
|
return !t.histories || qe.isRunning(a.value.state) ? +/* @__PURE__ */ new Date() : new Date(a.value.date.toString()).getTime();
|
|
9826
9826
|
}
|
|
9827
9827
|
function d() {
|
|
9828
|
-
n.value = o.value.length === 0 ? " " : Ae.humanDuration(
|
|
9828
|
+
n.value = o.value.length === 0 ? " " : Ae.humanDuration(c() / 1e3);
|
|
9829
9829
|
}
|
|
9830
9830
|
function f(h) {
|
|
9831
9831
|
return "ks-duration-tt-square-" + h.toLowerCase();
|
|
@@ -9867,17 +9867,17 @@ const A0 = { class: "icon rounded" }, R0 = { class: "node-content" }, D0 = { cla
|
|
|
9867
9867
|
task: {}
|
|
9868
9868
|
},
|
|
9869
9869
|
setup(e) {
|
|
9870
|
-
const t = e, n =
|
|
9870
|
+
const t = e, n = ce(() => {
|
|
9871
9871
|
var o;
|
|
9872
9872
|
return (o = t.execution) != null && o.taskRunList ? t.execution.taskRunList : [];
|
|
9873
|
-
}), r =
|
|
9873
|
+
}), r = ce(() => n.value.filter(
|
|
9874
9874
|
(o) => o.taskId === Ae.afterLastDot(t.uid ?? "")
|
|
9875
|
-
)), i =
|
|
9875
|
+
)), i = ce(() => {
|
|
9876
9876
|
if (!r.value)
|
|
9877
9877
|
return null;
|
|
9878
9878
|
if (r.value.length === 1)
|
|
9879
9879
|
return r.value[0].state.current;
|
|
9880
|
-
const o = r.value.map((
|
|
9880
|
+
const o = r.value.map((c) => c.state.current), s = [
|
|
9881
9881
|
qe.FAILED,
|
|
9882
9882
|
qe.KILLED,
|
|
9883
9883
|
qe.WARNING,
|
|
@@ -9887,11 +9887,11 @@ const A0 = { class: "icon rounded" }, R0 = { class: "node-content" }, D0 = { cla
|
|
|
9887
9887
|
qe.RESTARTED,
|
|
9888
9888
|
qe.CREATED
|
|
9889
9889
|
];
|
|
9890
|
-
return o.map((
|
|
9891
|
-
const
|
|
9892
|
-
return s[
|
|
9893
|
-
}).sort().map((
|
|
9894
|
-
}), a =
|
|
9890
|
+
return o.map((c) => {
|
|
9891
|
+
const u = s.indexOf(c[1]);
|
|
9892
|
+
return s[u] = void 0, [u, c];
|
|
9893
|
+
}).sort().map((c) => c[1])[0];
|
|
9894
|
+
}), a = ce(() => {
|
|
9895
9895
|
if (!r.value)
|
|
9896
9896
|
return;
|
|
9897
9897
|
const o = Math.max(
|
|
@@ -10960,8 +10960,8 @@ async function Tw(e, t) {
|
|
|
10960
10960
|
for (let a = 0; a < n.length; a++) {
|
|
10961
10961
|
const s = n[a].getAttribute("xlink:href");
|
|
10962
10962
|
if (s) {
|
|
10963
|
-
const l = e.querySelector(s),
|
|
10964
|
-
!l &&
|
|
10963
|
+
const l = e.querySelector(s), c = document.querySelector(s);
|
|
10964
|
+
!l && c && !r[s] && (r[s] = await fr(c, t, !0));
|
|
10965
10965
|
}
|
|
10966
10966
|
}
|
|
10967
10967
|
const i = Object.values(r);
|
|
@@ -11105,7 +11105,7 @@ async function qw(e, t) {
|
|
|
11105
11105
|
yt(i.cssRules || []).forEach((a, o) => {
|
|
11106
11106
|
if (a.type === CSSRule.IMPORT_RULE) {
|
|
11107
11107
|
let s = o + 1;
|
|
11108
|
-
const l = a.href,
|
|
11108
|
+
const l = a.href, c = lf(l).then((u) => uf(u, t)).then((u) => cf(u).forEach((d) => {
|
|
11109
11109
|
try {
|
|
11110
11110
|
i.insertRule(d, d.startsWith("@import") ? s += 1 : i.cssRules.length);
|
|
11111
11111
|
} catch (f) {
|
|
@@ -11114,10 +11114,10 @@ async function qw(e, t) {
|
|
|
11114
11114
|
error: f
|
|
11115
11115
|
});
|
|
11116
11116
|
}
|
|
11117
|
-
})).catch((
|
|
11118
|
-
console.error("Error loading remote css",
|
|
11117
|
+
})).catch((u) => {
|
|
11118
|
+
console.error("Error loading remote css", u.toString());
|
|
11119
11119
|
});
|
|
11120
|
-
r.push(
|
|
11120
|
+
r.push(c);
|
|
11121
11121
|
}
|
|
11122
11122
|
});
|
|
11123
11123
|
} catch (a) {
|
|
@@ -11168,8 +11168,8 @@ async function Gw(e, t = {}) {
|
|
|
11168
11168
|
return await Hw(i, t), await mp(i, t), xw(i, t), await sw(i, n, r);
|
|
11169
11169
|
}
|
|
11170
11170
|
async function gp(e, t = {}) {
|
|
11171
|
-
const { width: n, height: r } = cp(e, t), i = await Gw(e, t), a = await Un(i), o = document.createElement("canvas"), s = o.getContext("2d"), l = t.pixelRatio || iw(),
|
|
11172
|
-
return o.width =
|
|
11171
|
+
const { width: n, height: r } = cp(e, t), i = await Gw(e, t), a = await Un(i), o = document.createElement("canvas"), s = o.getContext("2d"), l = t.pixelRatio || iw(), c = t.canvasWidth || n, u = t.canvasHeight || r;
|
|
11172
|
+
return o.width = c * l, o.height = u * l, t.skipAutoScale || aw(o), o.style.width = `${c}`, o.style.height = `${u}`, t.backgroundColor && (s.fillStyle = t.backgroundColor, s.fillRect(0, 0, o.width, o.height)), s.drawImage(a, 0, 0, o.width, o.height), o;
|
|
11173
11173
|
}
|
|
11174
11174
|
async function Bw(e, t = {}) {
|
|
11175
11175
|
return (await gp(e, t)).toDataURL();
|
|
@@ -11180,29 +11180,29 @@ async function Ww(e, t = {}) {
|
|
|
11180
11180
|
function jw() {
|
|
11181
11181
|
const e = ve(""), t = ve("png"), n = ve();
|
|
11182
11182
|
async function r(s, l = {}) {
|
|
11183
|
-
let
|
|
11184
|
-
const
|
|
11183
|
+
let c;
|
|
11184
|
+
const u = l.fileName ?? `vue-flow-screenshot-${Date.now()}`;
|
|
11185
11185
|
switch (l.type) {
|
|
11186
11186
|
case "jpeg":
|
|
11187
|
-
|
|
11187
|
+
c = await i(s, l);
|
|
11188
11188
|
break;
|
|
11189
11189
|
case "png":
|
|
11190
|
-
|
|
11190
|
+
c = await a(s, l);
|
|
11191
11191
|
break;
|
|
11192
11192
|
default:
|
|
11193
|
-
|
|
11193
|
+
c = await a(s, l);
|
|
11194
11194
|
break;
|
|
11195
11195
|
}
|
|
11196
|
-
return l.shouldDownload &&
|
|
11196
|
+
return l.shouldDownload && u !== "" && o(u), c;
|
|
11197
11197
|
}
|
|
11198
11198
|
function i(s, l = { quality: 0.95 }) {
|
|
11199
|
-
return n.value = null, Ww(s, l).then((
|
|
11200
|
-
throw
|
|
11199
|
+
return n.value = null, Ww(s, l).then((c) => (e.value = c, t.value = "jpeg", c)).catch((c) => {
|
|
11200
|
+
throw c.value = c, new Error(c);
|
|
11201
11201
|
});
|
|
11202
11202
|
}
|
|
11203
11203
|
function a(s, l = { quality: 0.95 }) {
|
|
11204
|
-
return n.value = null, Bw(s, l).then((
|
|
11205
|
-
throw
|
|
11204
|
+
return n.value = null, Bw(s, l).then((c) => (e.value = c, t.value = "png", c)).catch((c) => {
|
|
11205
|
+
throw c.value = c, new Error(c);
|
|
11206
11206
|
});
|
|
11207
11207
|
}
|
|
11208
11208
|
function o(s) {
|
|
@@ -11294,12 +11294,12 @@ const zw = {
|
|
|
11294
11294
|
j.SHOW_CONDITION
|
|
11295
11295
|
],
|
|
11296
11296
|
setup(e, { emit: t }) {
|
|
11297
|
-
const n = e, r = ve(!1), i = ve(), { getNodes: a, onNodeDrag: o, onNodeDragStart: s, onNodeDragStop: l, fitView:
|
|
11297
|
+
const n = e, r = ve(!1), i = ve(), { getNodes: a, onNodeDrag: o, onNodeDragStart: s, onNodeDragStop: l, fitView: c, setElements: u, vueFlowRef: d } = Mt(n.id), f = ve({}), h = ve([]), w = ve(/* @__PURE__ */ new Set()), _ = ve([]), { capture: v } = jw(), p = t;
|
|
11298
11298
|
yn(() => {
|
|
11299
11299
|
g();
|
|
11300
|
-
}),
|
|
11300
|
+
}), st(() => n.flowGraph, () => {
|
|
11301
11301
|
g();
|
|
11302
|
-
}),
|
|
11302
|
+
}), st(() => n.isHorizontal, () => {
|
|
11303
11303
|
g();
|
|
11304
11304
|
});
|
|
11305
11305
|
const g = () => {
|
|
@@ -11322,7 +11322,7 @@ const zw = {
|
|
|
11322
11322
|
n.isAllowedEdit,
|
|
11323
11323
|
n.enableSubflowInteraction
|
|
11324
11324
|
);
|
|
11325
|
-
P && (
|
|
11325
|
+
P && (u(P), c(), p("loading", !1));
|
|
11326
11326
|
});
|
|
11327
11327
|
}, y = (V) => {
|
|
11328
11328
|
r.value || $o.linkedElements(n.id, V.uid).forEach((P) => {
|
|
@@ -11364,7 +11364,7 @@ const zw = {
|
|
|
11364
11364
|
V.node.position = i.value;
|
|
11365
11365
|
C(), V.node.style = { ...V.node.style, zIndex: 5 }, i.value = null;
|
|
11366
11366
|
});
|
|
11367
|
-
const S =
|
|
11367
|
+
const S = ce(() => {
|
|
11368
11368
|
var V;
|
|
11369
11369
|
return (V = n.flowGraph) != null && V.clusters ? n.flowGraph.clusters.filter((P) => P.cluster.type.endsWith("SubflowGraphCluster")).map((P) => P.cluster.taskNode.uid + ".") : [];
|
|
11370
11370
|
});
|
|
@@ -11617,25 +11617,25 @@ const l2 = /* @__PURE__ */ Q(n2, [["render", s2]]), u2 = {
|
|
|
11617
11617
|
const t = {
|
|
11618
11618
|
ContentCopy: An(l2),
|
|
11619
11619
|
Check: An(t2)
|
|
11620
|
-
}, n = e, r = ve(!1), i = ve(), a = An(t.ContentCopy.value), o = ve(), s = ve(), l =
|
|
11620
|
+
}, n = e, r = ve(!1), i = ve(), a = An(t.ContentCopy.value), o = ve(), s = ve(), l = ce(() => n.highlighter.codeToHtml(n.code, {
|
|
11621
11621
|
lang: n.language,
|
|
11622
11622
|
theme: n.theme
|
|
11623
11623
|
}));
|
|
11624
|
-
function
|
|
11624
|
+
function c() {
|
|
11625
11625
|
r.value = !0, i.value && Xn(() => {
|
|
11626
11626
|
o.value && s.value && Bm(o.value, s.value, {
|
|
11627
11627
|
placement: "left"
|
|
11628
11628
|
});
|
|
11629
11629
|
});
|
|
11630
11630
|
}
|
|
11631
|
-
function
|
|
11631
|
+
function u() {
|
|
11632
11632
|
clearTimeout(i.value), navigator.clipboard.writeText(n.code.trimEnd()), a.value = t.Check.value, i.value = setTimeout(() => {
|
|
11633
11633
|
a.value = t.ContentCopy.value, i.value = void 0;
|
|
11634
11634
|
}, 2e3);
|
|
11635
11635
|
}
|
|
11636
11636
|
return (d, f) => (E(), L("div", {
|
|
11637
11637
|
class: "code-block",
|
|
11638
|
-
onMouseover:
|
|
11638
|
+
onMouseover: c,
|
|
11639
11639
|
onMouseleave: f[0] || (f[0] = (h) => r.value = !1)
|
|
11640
11640
|
}, [
|
|
11641
11641
|
d.language && !r.value ? (E(), L("div", u2, z(d.language), 1)) : M("", !0),
|
|
@@ -11645,7 +11645,7 @@ const l2 = /* @__PURE__ */ Q(n2, [["render", s2]]), u2 = {
|
|
|
11645
11645
|
ref: o,
|
|
11646
11646
|
class: "copy"
|
|
11647
11647
|
}, [
|
|
11648
|
-
(E(), ue(Ht(a.value), { onClick:
|
|
11648
|
+
(E(), ue(Ht(a.value), { onClick: u }))
|
|
11649
11649
|
], 512),
|
|
11650
11650
|
i.value ? (E(), L("div", {
|
|
11651
11651
|
key: 0,
|
|
@@ -11753,21 +11753,29 @@ const k2 = /* @__PURE__ */ Q(y2, [["render", S2]]), L2 = ["id", "open"], T2 = {
|
|
|
11753
11753
|
},
|
|
11754
11754
|
emits: ["expand"],
|
|
11755
11755
|
setup(e, { emit: t }) {
|
|
11756
|
-
const n = e, r = ve(!0), i = gs(), a = Wm(), o =
|
|
11756
|
+
const n = e, r = ve(!0), i = gs(), a = Wm(), o = ce(() => `#${n.href}-body`), s = () => {
|
|
11757
11757
|
r.value = !r.value, a.replace({
|
|
11758
11758
|
hash: r.value ? "" : o.value
|
|
11759
11759
|
});
|
|
11760
11760
|
}, l = t;
|
|
11761
|
-
|
|
11761
|
+
st(
|
|
11762
11762
|
() => i.hash,
|
|
11763
11763
|
(u) => {
|
|
11764
11764
|
u === o.value && (r.value = !1, l("expand"));
|
|
11765
11765
|
},
|
|
11766
11766
|
{ immediate: !0 }
|
|
11767
|
-
)
|
|
11767
|
+
);
|
|
11768
|
+
const c = ce(() => n.initiallyExpanded || i.hash === o.value);
|
|
11769
|
+
return st(
|
|
11770
|
+
() => n.initiallyExpanded,
|
|
11771
|
+
(u) => {
|
|
11772
|
+
u !== void 0 && (r.value = !u);
|
|
11773
|
+
},
|
|
11774
|
+
{ immediate: !0 }
|
|
11775
|
+
), (u, d) => (E(), L("details", {
|
|
11768
11776
|
id: u.href,
|
|
11769
|
-
|
|
11770
|
-
open:
|
|
11777
|
+
onClick: s,
|
|
11778
|
+
open: c.value
|
|
11771
11779
|
}, [
|
|
11772
11780
|
O("summary", {
|
|
11773
11781
|
class: ge(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button", { collapsed: r.value }])
|
|
@@ -11792,9 +11800,9 @@ const k2 = /* @__PURE__ */ Q(y2, [["render", S2]]), L2 = ["id", "open"], T2 = {
|
|
|
11792
11800
|
ye(u.$slots, "content", {}, void 0, !0)
|
|
11793
11801
|
])
|
|
11794
11802
|
], 8, N2)) : M("", !0)
|
|
11795
|
-
],
|
|
11803
|
+
], 8, L2));
|
|
11796
11804
|
}
|
|
11797
|
-
}), Hn = /* @__PURE__ */ Q(I2, [["__scopeId", "data-v-
|
|
11805
|
+
}), Hn = /* @__PURE__ */ Q(I2, [["__scopeId", "data-v-2304f89e"]]);
|
|
11798
11806
|
function Nn(e) {
|
|
11799
11807
|
if (e.type)
|
|
11800
11808
|
return e.type;
|
|
@@ -11983,7 +11991,7 @@ const Ep = /* @__PURE__ */ Q(Q2, [["render", iS]]), aS = { class: "me-3" }, oS =
|
|
|
11983
11991
|
type: {}
|
|
11984
11992
|
},
|
|
11985
11993
|
setup(e) {
|
|
11986
|
-
const t = e, n =
|
|
11994
|
+
const t = e, n = ce(() => {
|
|
11987
11995
|
switch (t.type) {
|
|
11988
11996
|
case "success":
|
|
11989
11997
|
return J2;
|
|
@@ -12242,7 +12250,7 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12242
12250
|
emits: ["expand"],
|
|
12243
12251
|
setup(e, { emit: t }) {
|
|
12244
12252
|
const n = t, r = ve(!1);
|
|
12245
|
-
|
|
12253
|
+
st(
|
|
12246
12254
|
r,
|
|
12247
12255
|
(o) => {
|
|
12248
12256
|
o && n("expand");
|
|
@@ -12256,10 +12264,10 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12256
12264
|
const s = [], l = [];
|
|
12257
12265
|
for (const d in o)
|
|
12258
12266
|
typeof o[d] == "object" && (o[d] = R2(o[d]), o[d].$required ? s.push(d) : l.push(d));
|
|
12259
|
-
const
|
|
12260
|
-
return
|
|
12261
|
-
|
|
12262
|
-
}),
|
|
12267
|
+
const c = [...s.sort(), ...l.sort()], u = {};
|
|
12268
|
+
return c.forEach((d) => {
|
|
12269
|
+
u[d] = o[d];
|
|
12270
|
+
}), u;
|
|
12263
12271
|
}
|
|
12264
12272
|
return (o, s) => (E(), ue(Hn, {
|
|
12265
12273
|
class: "section-collapsible",
|
|
@@ -12272,13 +12280,13 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12272
12280
|
name: "content",
|
|
12273
12281
|
fn: te(() => [
|
|
12274
12282
|
O("div", hk, [
|
|
12275
|
-
(E(!0), L(Me, null, _t(a(o.properties), (l,
|
|
12283
|
+
(E(!0), L(Me, null, _t(a(o.properties), (l, c) => (E(), ue(Hn, {
|
|
12276
12284
|
class: "property",
|
|
12277
|
-
key:
|
|
12285
|
+
key: c,
|
|
12278
12286
|
arrow: !1,
|
|
12279
|
-
"clickable-text":
|
|
12280
|
-
href: o.href + "_" +
|
|
12281
|
-
onExpand: s[1] || (s[1] = (
|
|
12287
|
+
"clickable-text": c,
|
|
12288
|
+
href: o.href + "_" + c,
|
|
12289
|
+
onExpand: s[1] || (s[1] = (u) => r.value = !0)
|
|
12282
12290
|
}, {
|
|
12283
12291
|
additionalButtonText: te(() => [
|
|
12284
12292
|
l.$required ? (E(), ue(_e, {
|
|
@@ -12292,7 +12300,7 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12292
12300
|
_: 1
|
|
12293
12301
|
})) : M("", !0)
|
|
12294
12302
|
]),
|
|
12295
|
-
buttonRight: te(({ collapsed:
|
|
12303
|
+
buttonRight: te(({ collapsed: u }) => [
|
|
12296
12304
|
O("span", pk, [
|
|
12297
12305
|
O("span", mk, [
|
|
12298
12306
|
o.showDynamic && !i(l) ? (E(), ue(_e, {
|
|
@@ -12339,14 +12347,14 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12339
12347
|
K(yp)
|
|
12340
12348
|
], 8, vk)) : (E(), L("span", yk, z(d), 1))
|
|
12341
12349
|
], 64))), 128)),
|
|
12342
|
-
(E(), ue(Ht(
|
|
12350
|
+
(E(), ue(Ht(u ? F2 : JS), { class: "arrow" }))
|
|
12343
12351
|
])
|
|
12344
12352
|
])
|
|
12345
12353
|
]),
|
|
12346
12354
|
content: te(() => [
|
|
12347
12355
|
K(WS, { property: l }, {
|
|
12348
|
-
markdown: te(({ content:
|
|
12349
|
-
ye(o.$slots, "markdown", { content:
|
|
12356
|
+
markdown: te(({ content: u }) => [
|
|
12357
|
+
ye(o.$slots, "markdown", { content: u }, void 0, !0)
|
|
12350
12358
|
]),
|
|
12351
12359
|
_: 2
|
|
12352
12360
|
}, 1032, ["property"])
|
|
@@ -12401,7 +12409,7 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12401
12409
|
} else
|
|
12402
12410
|
a.value.clear();
|
|
12403
12411
|
};
|
|
12404
|
-
|
|
12412
|
+
st([() => r.schema, () => r.pluginType], ([m, C], [S, b]) => {
|
|
12405
12413
|
(m !== S || C !== b) && r.schema.definitions && s();
|
|
12406
12414
|
}, { immediate: !0 });
|
|
12407
12415
|
const l = (m) => {
|
|
@@ -12409,10 +12417,10 @@ const fk = /* @__PURE__ */ Q(ok, [["render", dk]]), hk = { class: "border overfl
|
|
|
12409
12417
|
return m != null && m.full ? m.code : `id: "${(C = r.pluginType.split(".").reverse()[0]) == null ? void 0 : C.toLowerCase()}"
|
|
12410
12418
|
type: "${r.pluginType}"
|
|
12411
12419
|
`.concat(m.code);
|
|
12412
|
-
},
|
|
12420
|
+
}, c = ve(null), u = ce(() => {
|
|
12413
12421
|
var m;
|
|
12414
12422
|
return (m = r.schema.properties) == null ? void 0 : m.$examples;
|
|
12415
|
-
}), d =
|
|
12423
|
+
}), d = ce(() => {
|
|
12416
12424
|
var m, C;
|
|
12417
12425
|
return Object.fromEntries(
|
|
12418
12426
|
(C = (m = r.schema.properties) == null ? void 0 : m.$metrics) == null ? void 0 : C.map((S) => [S.name, { ...S, name: void 0 }])
|
|
@@ -12426,7 +12434,7 @@ type: "${r.pluginType}"
|
|
|
12426
12434
|
createJavaScriptRegexEngine: p,
|
|
12427
12435
|
createHighlighterCore: g
|
|
12428
12436
|
} = ([t, n] = Zs(() => import("./shikiToolset-Bc2ttrSi.js")), t = await t, n(), t);
|
|
12429
|
-
|
|
12437
|
+
c.value = ([t, n] = Zs(() => g({
|
|
12430
12438
|
themes: [
|
|
12431
12439
|
r.darkMode ? h : f
|
|
12432
12440
|
],
|
|
@@ -12442,7 +12450,7 @@ type: "${r.pluginType}"
|
|
|
12442
12450
|
s(), window.addEventListener("hashchange", s);
|
|
12443
12451
|
}), wf(() => {
|
|
12444
12452
|
var m;
|
|
12445
|
-
window.removeEventListener("hashchange", s), (m =
|
|
12453
|
+
window.removeEventListener("hashchange", s), (m = c.value) == null || m.dispose();
|
|
12446
12454
|
}), (m, C) => {
|
|
12447
12455
|
var S, b, N, R, D, B;
|
|
12448
12456
|
return E(), L("div", bk, [
|
|
@@ -12461,7 +12469,7 @@ type: "${r.pluginType}"
|
|
|
12461
12469
|
}, void 0, !0)
|
|
12462
12470
|
])) : M("", !0),
|
|
12463
12471
|
(E(), ue(df, {
|
|
12464
|
-
highlighter:
|
|
12472
|
+
highlighter: c.value,
|
|
12465
12473
|
language: "yaml",
|
|
12466
12474
|
theme: y,
|
|
12467
12475
|
code: `type: "${m.pluginType}"`,
|
|
@@ -12472,7 +12480,7 @@ type: "${r.pluginType}"
|
|
|
12472
12480
|
class: "d-flex flex-column gap-3",
|
|
12473
12481
|
key: m.pluginType
|
|
12474
12482
|
}, [
|
|
12475
|
-
|
|
12483
|
+
u.value ? (E(), ue(Hn, {
|
|
12476
12484
|
key: 0,
|
|
12477
12485
|
class: "plugin-section",
|
|
12478
12486
|
"clickable-text": "Examples",
|
|
@@ -12480,7 +12488,7 @@ type: "${r.pluginType}"
|
|
|
12480
12488
|
}, {
|
|
12481
12489
|
content: te(() => [
|
|
12482
12490
|
O("div", kk, [
|
|
12483
|
-
(E(!0), L(Me, null, _t(
|
|
12491
|
+
(E(!0), L(Me, null, _t(u.value, (q, Z) => (E(), L(Me, {
|
|
12484
12492
|
key: m.pluginType + "-" + Z
|
|
12485
12493
|
}, [
|
|
12486
12494
|
O("div", Lk, [
|
|
@@ -12492,13 +12500,13 @@ type: "${r.pluginType}"
|
|
|
12492
12500
|
]),
|
|
12493
12501
|
q.code ? (E(), ue(df, {
|
|
12494
12502
|
key: 0,
|
|
12495
|
-
highlighter:
|
|
12503
|
+
highlighter: c.value,
|
|
12496
12504
|
language: q.lang ?? "yaml",
|
|
12497
12505
|
theme: y,
|
|
12498
12506
|
code: l(q)
|
|
12499
12507
|
}, null, 8, ["highlighter", "language", "code"])) : M("", !0)
|
|
12500
12508
|
]),
|
|
12501
|
-
Z <
|
|
12509
|
+
Z < u.value.length - 1 ? (E(), L("hr", Ok)) : M("", !0)
|
|
12502
12510
|
], 64))), 128))
|
|
12503
12511
|
])
|
|
12504
12512
|
]),
|
|
@@ -12631,7 +12639,7 @@ const Uk = /* @__PURE__ */ Q(Mk, [["render", Vk]]), Hk = ["href"], Gk = ["src",
|
|
|
12631
12639
|
href: {}
|
|
12632
12640
|
},
|
|
12633
12641
|
setup(e) {
|
|
12634
|
-
const t = e, { path: n } = gs(), r =
|
|
12642
|
+
const t = e, { path: n } = gs(), r = ce(() => t.href === void 0 ? `${n}/${Jt(t.text)}` : t.href);
|
|
12635
12643
|
return (i, a) => (E(), L("a", {
|
|
12636
12644
|
href: r.value,
|
|
12637
12645
|
class: "row-link d-flex flex-grow-1 align-items-center gap-7 rounded"
|
|
@@ -12657,19 +12665,19 @@ const Uk = /* @__PURE__ */ Q(Mk, [["render", Vk]]), Hk = ["href"], Gk = ["src",
|
|
|
12657
12665
|
},
|
|
12658
12666
|
emits: ["goTo"],
|
|
12659
12667
|
setup(e) {
|
|
12660
|
-
const t = e, n =
|
|
12668
|
+
const t = e, n = ce(() => t.plugins.find((d) => t.subGroup === void 0 ? !0 : Jt(ln(d)) === t.subGroup)), r = ce(() => {
|
|
12661
12669
|
var d, f;
|
|
12662
12670
|
return ((d = n.value) == null ? void 0 : d.longDescription) ?? ((f = n.value) == null ? void 0 : f.description);
|
|
12663
|
-
}), i =
|
|
12671
|
+
}), i = ce(() => t.plugins.filter((d) => d.name.toLowerCase() === t.pluginName.toLowerCase() && d.subGroup !== void 0)), a = (d) => {
|
|
12664
12672
|
let f = d.split(".");
|
|
12665
12673
|
return f == null ? void 0 : f[f.length - 1];
|
|
12666
12674
|
}, { path: o } = gs(), s = (d) => `${o}/${Jt(d)}`, l = (d) => `${o}/${d}`;
|
|
12667
|
-
function
|
|
12675
|
+
function c(d) {
|
|
12668
12676
|
return Object.fromEntries(
|
|
12669
12677
|
Object.entries(d).filter(([f, h]) => P_(f, h)).map(([f, h]) => [f.replaceAll(/[A-Z]/g, (w) => ` ${w}`), h])
|
|
12670
12678
|
);
|
|
12671
12679
|
}
|
|
12672
|
-
const
|
|
12680
|
+
const u = ce(() => c(n.value));
|
|
12673
12681
|
return (d, f) => (E(), L("div", Wk, [
|
|
12674
12682
|
r.value !== void 0 ? ye(d.$slots, "markdown", {
|
|
12675
12683
|
key: 0,
|
|
@@ -12685,7 +12693,7 @@ const Uk = /* @__PURE__ */ Q(Mk, [["render", Vk]]), Hk = ["href"], Gk = ["src",
|
|
|
12685
12693
|
class: "text-capitalize",
|
|
12686
12694
|
onClick: (w) => d.$emit("goTo", { subGroup: h })
|
|
12687
12695
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "onClick"]))), 128))
|
|
12688
|
-
])) : (E(!0), L(Me, { key: 2 }, _t(
|
|
12696
|
+
])) : (E(!0), L(Me, { key: 2 }, _t(u.value, (h, w) => (E(), L("div", {
|
|
12689
12697
|
class: "d-flex flex-column elements-section",
|
|
12690
12698
|
key: w
|
|
12691
12699
|
}, [
|
|
@@ -12775,19 +12783,19 @@ function bp(e, t) {
|
|
|
12775
12783
|
r.push(i), i = "", a = void 0;
|
|
12776
12784
|
continue;
|
|
12777
12785
|
}
|
|
12778
|
-
const
|
|
12786
|
+
const c = rL(s);
|
|
12779
12787
|
if (o === !1) {
|
|
12780
|
-
if (a === !1 &&
|
|
12781
|
-
r.push(i), i = s, a =
|
|
12788
|
+
if (a === !1 && c === !0) {
|
|
12789
|
+
r.push(i), i = s, a = c;
|
|
12782
12790
|
continue;
|
|
12783
12791
|
}
|
|
12784
|
-
if (a === !0 &&
|
|
12785
|
-
const
|
|
12786
|
-
r.push(i.slice(0, Math.max(0, i.length - 1))), i =
|
|
12792
|
+
if (a === !0 && c === !1 && i.length > 1) {
|
|
12793
|
+
const u = i.at(-1);
|
|
12794
|
+
r.push(i.slice(0, Math.max(0, i.length - 1))), i = u + s, a = c;
|
|
12787
12795
|
continue;
|
|
12788
12796
|
}
|
|
12789
12797
|
}
|
|
12790
|
-
i += s, a =
|
|
12798
|
+
i += s, a = c, o = l;
|
|
12791
12799
|
}
|
|
12792
12800
|
return r.push(i), r;
|
|
12793
12801
|
}
|
|
@@ -14161,20 +14169,20 @@ const ss = "default", Mp = /^@|^v-on:/, $p = /^:|^v-bind:/, _L = /^v-model/, yL
|
|
|
14161
14169
|
}
|
|
14162
14170
|
},
|
|
14163
14171
|
async setup(e) {
|
|
14164
|
-
var
|
|
14165
|
-
const t = (
|
|
14172
|
+
var c, u, d, f, h, w, _;
|
|
14173
|
+
const t = (u = (c = tn()) == null ? void 0 : c.appContext) == null ? void 0 : u.app, n = t == null ? void 0 : t.$nuxt, r = (n == null ? void 0 : n.$route) || (n == null ? void 0 : n._route), { mdc: i } = ((d = n == null ? void 0 : n.$config) == null ? void 0 : d.public) || {}, a = {
|
|
14166
14174
|
...(f = i == null ? void 0 : i.components) != null && f.prose && e.prose !== !1 ? bL : {},
|
|
14167
14175
|
...((h = i == null ? void 0 : i.components) == null ? void 0 : h.map) || {},
|
|
14168
14176
|
...Dm(((_ = (w = e.data) == null ? void 0 : w.mdc) == null ? void 0 : _.components) || {}),
|
|
14169
14177
|
...e.components
|
|
14170
|
-
}, o =
|
|
14178
|
+
}, o = ce(() => {
|
|
14171
14179
|
var p;
|
|
14172
14180
|
const v = (((p = e.body) == null ? void 0 : p.children) || []).map((g) => g.tag || g.type).filter((g) => !Gs.includes(g));
|
|
14173
14181
|
return Array.from(new Set(v)).sort().join(".");
|
|
14174
14182
|
}), s = kf({
|
|
14175
14183
|
...e.data
|
|
14176
14184
|
});
|
|
14177
|
-
|
|
14185
|
+
st(() => e.data, (v) => {
|
|
14178
14186
|
Object.assign(s, v);
|
|
14179
14187
|
}), await DL(e.body, { tags: a });
|
|
14180
14188
|
function l(v, p) {
|
|
@@ -14185,13 +14193,13 @@ const ss = "default", Mp = /^@|^v-on:/, $p = /^:|^v-bind:/, _L = /^v-model/, yL
|
|
|
14185
14193
|
},
|
|
14186
14194
|
render(e) {
|
|
14187
14195
|
var h, w;
|
|
14188
|
-
const { tags: t, tag: n, body: r, data: i, contentKey: a, route: o, unwrap: s, runtimeData: l, updateRuntimeData:
|
|
14196
|
+
const { tags: t, tag: n, body: r, data: i, contentKey: a, route: o, unwrap: s, runtimeData: l, updateRuntimeData: c } = e;
|
|
14189
14197
|
if (!r)
|
|
14190
14198
|
return null;
|
|
14191
|
-
const
|
|
14192
|
-
return d ? nn(d, { ...(w =
|
|
14199
|
+
const u = { ...i, tags: t, $route: o, runtimeData: l, updateRuntimeData: c }, d = n !== !1 ? ls(n || ((h = u.component) == null ? void 0 : h.name) || u.component || "div") : void 0;
|
|
14200
|
+
return d ? nn(d, { ...(w = u.component) == null ? void 0 : w.props, class: e.class, ...this.$attrs, key: a }, { default: f }) : f == null ? void 0 : f();
|
|
14193
14201
|
function f() {
|
|
14194
|
-
const _ = xp(r, nn, { documentMeta:
|
|
14202
|
+
const _ = xp(r, nn, { documentMeta: u, parentScope: u, resolveComponent: ls });
|
|
14195
14203
|
return _ != null && _.default ? s ? Pp(
|
|
14196
14204
|
_.default(),
|
|
14197
14205
|
typeof s == "string" ? s.split(" ") : ["*"]
|
|
@@ -14217,33 +14225,33 @@ function wL(e, t, n) {
|
|
|
14217
14225
|
` + Bn(e) + `
|
|
14218
14226
|
<\/script>`
|
|
14219
14227
|
);
|
|
14220
|
-
const
|
|
14221
|
-
typeof
|
|
14222
|
-
const
|
|
14228
|
+
const c = l(s);
|
|
14229
|
+
typeof c == "object" && (c.tag = o);
|
|
14230
|
+
const u = kL(e, r);
|
|
14223
14231
|
return t(
|
|
14224
|
-
u,
|
|
14225
14232
|
c,
|
|
14233
|
+
u,
|
|
14226
14234
|
xp(
|
|
14227
14235
|
e,
|
|
14228
14236
|
t,
|
|
14229
14237
|
{
|
|
14230
14238
|
documentMeta: r,
|
|
14231
|
-
parentScope: { ...i, ...
|
|
14239
|
+
parentScope: { ...i, ...u },
|
|
14232
14240
|
resolveComponent: l
|
|
14233
14241
|
}
|
|
14234
14242
|
)
|
|
14235
14243
|
);
|
|
14236
14244
|
}
|
|
14237
14245
|
function xp(e, t, n) {
|
|
14238
|
-
const { documentMeta: r, parentScope: i, resolveComponent: a } = n, s = (e.children || []).reduce((
|
|
14239
|
-
if (!AL(
|
|
14240
|
-
return
|
|
14241
|
-
const d = IL(
|
|
14242
|
-
return
|
|
14246
|
+
const { documentMeta: r, parentScope: i, resolveComponent: a } = n, s = (e.children || []).reduce((c, u) => {
|
|
14247
|
+
if (!AL(u))
|
|
14248
|
+
return c[ss].children.push(u), c;
|
|
14249
|
+
const d = IL(u);
|
|
14250
|
+
return c[d] = c[d] || { props: {}, children: [] }, u.type === "element" && (c[d].props = u.props, c[d].children.push(...u.children || [])), c;
|
|
14243
14251
|
}, {
|
|
14244
14252
|
[ss]: { props: {}, children: [] }
|
|
14245
14253
|
});
|
|
14246
|
-
return Object.entries(s).reduce((
|
|
14254
|
+
return Object.entries(s).reduce((c, [u, { props: d, children: f }]) => (f.length && (c[u] = (h = {}) => {
|
|
14247
14255
|
const w = gL(h, Object.keys(d || {}));
|
|
14248
14256
|
let _ = f.map((v) => wL(
|
|
14249
14257
|
v,
|
|
@@ -14255,19 +14263,19 @@ function xp(e, t, n) {
|
|
|
14255
14263
|
}
|
|
14256
14264
|
));
|
|
14257
14265
|
return d != null && d.unwrap && (_ = Pp(_, d.unwrap)), RL(_);
|
|
14258
|
-
}),
|
|
14266
|
+
}), c), {});
|
|
14259
14267
|
}
|
|
14260
14268
|
function SL(e, t, n, r = {}) {
|
|
14261
|
-
var
|
|
14269
|
+
var c, u;
|
|
14262
14270
|
const i = {
|
|
14263
14271
|
...n.runtimeData,
|
|
14264
14272
|
...r,
|
|
14265
14273
|
$document: n,
|
|
14266
14274
|
$doc: n
|
|
14267
|
-
}, a = /\.|\[(\d+)\]/, s = ((
|
|
14275
|
+
}, a = /\.|\[(\d+)\]/, s = ((c = e.props) == null ? void 0 : c.value.trim().split(a).filter(Boolean)).reduce((d, f) => {
|
|
14268
14276
|
if (d && f in d)
|
|
14269
14277
|
return typeof d[f] == "function" ? d[f]() : d[f];
|
|
14270
|
-
}, i), l = (
|
|
14278
|
+
}, i), l = (u = e.props) == null ? void 0 : u.defaultValue;
|
|
14271
14279
|
return t(dn, s ?? l ?? "");
|
|
14272
14280
|
}
|
|
14273
14281
|
function kL(e, t) {
|
|
@@ -14291,9 +14299,9 @@ function kL(e, t) {
|
|
|
14291
14299
|
function LL(e, t, n, r, { native: i }) {
|
|
14292
14300
|
var l;
|
|
14293
14301
|
const a = ((l = e.match(/^v-model:([^=]+)/)) == null ? void 0 : l[1]) || "modelValue", o = i ? "value" : a, s = i ? "onInput" : `onUpdate:${a}`;
|
|
14294
|
-
return n[o] = hr(t, r.runtimeData), n[s] = (
|
|
14295
|
-
var
|
|
14296
|
-
r.updateRuntimeData(t, i ? (
|
|
14302
|
+
return n[o] = hr(t, r.runtimeData), n[s] = (c) => {
|
|
14303
|
+
var u;
|
|
14304
|
+
r.updateRuntimeData(t, i ? (u = c.target) == null ? void 0 : u.value : c);
|
|
14297
14305
|
}, n;
|
|
14298
14306
|
}
|
|
14299
14307
|
function TL(e, t, n, r) {
|
|
@@ -14361,8 +14369,8 @@ async function DL(e, t) {
|
|
|
14361
14369
|
return [];
|
|
14362
14370
|
const l = [];
|
|
14363
14371
|
i.type !== "root" && !Gs.includes(s) && l.push(s);
|
|
14364
|
-
for (const
|
|
14365
|
-
l.push(...r(
|
|
14372
|
+
for (const c of i.children || [])
|
|
14373
|
+
l.push(...r(c, a));
|
|
14366
14374
|
return l;
|
|
14367
14375
|
}
|
|
14368
14376
|
}
|
|
@@ -14390,7 +14398,7 @@ export {
|
|
|
14390
14398
|
kt as NODE_SIZES,
|
|
14391
14399
|
tT as PluginIndex,
|
|
14392
14400
|
Nt as SECTIONS,
|
|
14393
|
-
|
|
14401
|
+
de as STATES,
|
|
14394
14402
|
eT as SchemaToHtml,
|
|
14395
14403
|
qe as State,
|
|
14396
14404
|
Vh as TaskIcon,
|