@abi-software/map-utilities 1.1.3-beta.3 → 1.1.3-beta.5
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/map-utilities.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var u0 = Object.defineProperty;
|
|
2
2
|
var c0 = (t, e, r) => e in t ? u0(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var Kr = (t, e, r) => c0(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { unref as O, getCurrentScope as d0, onScopeDispose as f0, getCurrentInstance as gt, onMounted as Et, nextTick as ot, watch as Oe, ref as ue, defineComponent as de, openBlock as $, createElementBlock as Z, createElementVNode as J, warn as v0, computed as V, inject as Ke, isRef as Za, shallowRef as Xr, onBeforeUnmount as Vr, onBeforeMount as h0, provide as Ct, mergeProps as $r, renderSlot as Le, toRef as Nr, onUnmounted as p0, useAttrs as g0, useSlots as vo, createCommentVNode as pe, Fragment as Je, normalizeClass as ae, createBlock as be, withCtx as ee, resolveDynamicComponent as Jt, withModifiers as ht, createVNode as ce, toDisplayString as Re, normalizeStyle as lt, Transition as ui, withDirectives as je, vShow as xt, reactive as jr, onActivated as m0, onUpdated as vv, cloneVNode as y0, Text as hv, Comment as b0, Teleport as w0, readonly as x0, onDeactivated as C0, createTextVNode as We, toRaw as hs, vModelCheckbox as ps, toRefs as ho, toHandlers as E0, watchEffect as pv, renderList as sr, withKeys as aa, resolveComponent as Qt, resolveDirective as k0, toHandlerKey as S0, vModelText as T0, h as ia, createApp as
|
|
4
|
+
import { unref as O, getCurrentScope as d0, onScopeDispose as f0, getCurrentInstance as gt, onMounted as Et, nextTick as ot, watch as Oe, ref as ue, defineComponent as de, openBlock as $, createElementBlock as Z, createElementVNode as J, warn as v0, computed as V, inject as Ke, isRef as Za, shallowRef as Xr, onBeforeUnmount as Vr, onBeforeMount as h0, provide as Ct, mergeProps as $r, renderSlot as Le, toRef as Nr, onUnmounted as p0, useAttrs as g0, useSlots as vo, createCommentVNode as pe, Fragment as Je, normalizeClass as ae, createBlock as be, withCtx as ee, resolveDynamicComponent as Jt, withModifiers as ht, createVNode as ce, toDisplayString as Re, normalizeStyle as lt, Transition as ui, withDirectives as je, vShow as xt, reactive as jr, onActivated as m0, onUpdated as vv, cloneVNode as y0, Text as hv, Comment as b0, Teleport as w0, readonly as x0, onDeactivated as C0, createTextVNode as We, toRaw as hs, vModelCheckbox as ps, toRefs as ho, toHandlers as E0, watchEffect as pv, renderList as sr, withKeys as aa, resolveComponent as Qt, resolveDirective as k0, toHandlerKey as S0, vModelText as T0, h as ia, createApp as D0, pushScopeId as Ms, popScopeId as Bs, createStaticVNode as P0 } from "vue";
|
|
5
5
|
const un = (t, e, { checkForDefaultPrevented: r = !0 } = {}) => (a) => {
|
|
6
6
|
const i = t == null ? void 0 : t(a);
|
|
7
7
|
if (r === !1 || !i)
|
|
8
8
|
return e == null ? void 0 : e(a);
|
|
9
9
|
};
|
|
10
10
|
var Lc;
|
|
11
|
-
const
|
|
12
|
-
}, ql =
|
|
11
|
+
const Dt = typeof window < "u", O0 = (t) => typeof t == "string", gv = () => {
|
|
12
|
+
}, ql = Dt && ((Lc = window == null ? void 0 : window.navigator) == null ? void 0 : Lc.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
13
13
|
function mv(t) {
|
|
14
14
|
return typeof t == "function" ? t() : O(t);
|
|
15
15
|
}
|
|
@@ -27,7 +27,7 @@ function fn(t) {
|
|
|
27
27
|
const r = mv(t);
|
|
28
28
|
return (e = r == null ? void 0 : r.$el) != null ? e : r;
|
|
29
29
|
}
|
|
30
|
-
const $s =
|
|
30
|
+
const $s = Dt ? window : void 0;
|
|
31
31
|
function kr(...t) {
|
|
32
32
|
let e, r, n, a;
|
|
33
33
|
if (O0(t[0]) || Array.isArray(t[0]) ? ([r, n, a] = t, e = $s) : [e, r, n, a] = t, !e)
|
|
@@ -174,7 +174,7 @@ const K0 = {
|
|
|
174
174
|
q0({
|
|
175
175
|
linear: _0
|
|
176
176
|
}, K0);
|
|
177
|
-
const U0 = () =>
|
|
177
|
+
const U0 = () => Dt && /firefox/i.test(window.navigator.userAgent), Cu = (t) => {
|
|
178
178
|
let e, r;
|
|
179
179
|
return t.type === "touchend" ? (r = t.changedTouches[0].clientY, e = t.changedTouches[0].clientX) : t.type.startsWith("touch") ? (r = t.touches[0].clientY, e = t.touches[0].clientX) : (r = t.clientY, e = t.clientX), {
|
|
180
180
|
clientX: e,
|
|
@@ -298,13 +298,13 @@ function ka(t) {
|
|
|
298
298
|
}
|
|
299
299
|
return "";
|
|
300
300
|
}
|
|
301
|
-
var Tm = /[\\^$.*+?()[\]{}|]/g,
|
|
301
|
+
var Tm = /[\\^$.*+?()[\]{}|]/g, Dm = /^\[object .+?Constructor\]$/, Pm = Function.prototype, Om = Object.prototype, _m = Pm.toString, Lm = Om.hasOwnProperty, Fm = RegExp(
|
|
302
302
|
"^" + _m.call(Lm).replace(Tm, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
303
303
|
);
|
|
304
304
|
function Im(t) {
|
|
305
305
|
if (!Vn(t) || Em(t))
|
|
306
306
|
return !1;
|
|
307
|
-
var e = kv(t) ? Fm :
|
|
307
|
+
var e = kv(t) ? Fm : Dm;
|
|
308
308
|
return e.test(ka(t));
|
|
309
309
|
}
|
|
310
310
|
function Am(t, e) {
|
|
@@ -428,8 +428,8 @@ var Sv = Object.prototype, ny = Sv.hasOwnProperty, ay = Sv.propertyIsEnumerable,
|
|
|
428
428
|
function iy() {
|
|
429
429
|
return !1;
|
|
430
430
|
}
|
|
431
|
-
var Tv = typeof exports == "object" && exports && !exports.nodeType && exports, Yc = Tv && typeof module == "object" && module && !module.nodeType && module, oy = Yc && Yc.exports === Tv, Xc = oy ? tn.Buffer : void 0, sy = Xc ? Xc.isBuffer : void 0, Ul = sy || iy, ly = "[object Arguments]", uy = "[object Array]", cy = "[object Boolean]", dy = "[object Date]", fy = "[object Error]", vy = "[object Function]", hy = "[object Map]", py = "[object Number]", gy = "[object Object]", my = "[object RegExp]", yy = "[object Set]", by = "[object String]", wy = "[object WeakMap]", xy = "[object ArrayBuffer]", Cy = "[object DataView]", Ey = "[object Float32Array]", ky = "[object Float64Array]", Sy = "[object Int8Array]", Ty = "[object Int16Array]",
|
|
432
|
-
ft[Ey] = ft[ky] = ft[Sy] = ft[Ty] = ft[
|
|
431
|
+
var Tv = typeof exports == "object" && exports && !exports.nodeType && exports, Yc = Tv && typeof module == "object" && module && !module.nodeType && module, oy = Yc && Yc.exports === Tv, Xc = oy ? tn.Buffer : void 0, sy = Xc ? Xc.isBuffer : void 0, Ul = sy || iy, ly = "[object Arguments]", uy = "[object Array]", cy = "[object Boolean]", dy = "[object Date]", fy = "[object Error]", vy = "[object Function]", hy = "[object Map]", py = "[object Number]", gy = "[object Object]", my = "[object RegExp]", yy = "[object Set]", by = "[object String]", wy = "[object WeakMap]", xy = "[object ArrayBuffer]", Cy = "[object DataView]", Ey = "[object Float32Array]", ky = "[object Float64Array]", Sy = "[object Int8Array]", Ty = "[object Int16Array]", Dy = "[object Int32Array]", Py = "[object Uint8Array]", Oy = "[object Uint8ClampedArray]", _y = "[object Uint16Array]", Ly = "[object Uint32Array]", ft = {};
|
|
432
|
+
ft[Ey] = ft[ky] = ft[Sy] = ft[Ty] = ft[Dy] = ft[Py] = ft[Oy] = ft[_y] = ft[Ly] = !0;
|
|
433
433
|
ft[ly] = ft[uy] = ft[xy] = ft[cy] = ft[Cy] = ft[dy] = ft[fy] = ft[vy] = ft[hy] = ft[py] = ft[gy] = ft[my] = ft[yy] = ft[by] = ft[wy] = !1;
|
|
434
434
|
function Fy(t) {
|
|
435
435
|
return ja(t) && Su(t.length) && !!ft[ci(t)];
|
|
@@ -439,15 +439,15 @@ function Iy(t) {
|
|
|
439
439
|
return t(e);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
var
|
|
442
|
+
var Dv = typeof exports == "object" && exports && !exports.nodeType && exports, zi = Dv && typeof module == "object" && module && !module.nodeType && module, Ay = zi && zi.exports === Dv, yl = Ay && wv.process, Zc = function() {
|
|
443
443
|
try {
|
|
444
444
|
var t = zi && zi.require && zi.require("util").types;
|
|
445
445
|
return t || yl && yl.binding && yl.binding("util");
|
|
446
446
|
} catch {
|
|
447
447
|
}
|
|
448
|
-
}(), jc = Zc && Zc.isTypedArray,
|
|
448
|
+
}(), jc = Zc && Zc.isTypedArray, Pv = jc ? Iy(jc) : Fy, My = Object.prototype, By = My.hasOwnProperty;
|
|
449
449
|
function Ny(t, e) {
|
|
450
|
-
var r = zr(t), n = !r && Tu(t), a = !r && !n && Ul(t), i = !r && !n && !a &&
|
|
450
|
+
var r = zr(t), n = !r && Tu(t), a = !r && !n && Ul(t), i = !r && !n && !a && Pv(t), o = r || n || a || i, s = o ? ty(t.length, String) : [], u = s.length;
|
|
451
451
|
for (var l in t)
|
|
452
452
|
By.call(t, l) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
453
453
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -474,7 +474,7 @@ function Ov(t) {
|
|
|
474
474
|
return Qm(t) ? Ny(t) : Hy(t);
|
|
475
475
|
}
|
|
476
476
|
var qy = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ky = /^\w*$/;
|
|
477
|
-
function
|
|
477
|
+
function Du(t, e) {
|
|
478
478
|
if (zr(t))
|
|
479
479
|
return !1;
|
|
480
480
|
var r = typeof t;
|
|
@@ -602,7 +602,7 @@ wn.prototype.get = f1;
|
|
|
602
602
|
wn.prototype.has = v1;
|
|
603
603
|
wn.prototype.set = h1;
|
|
604
604
|
var p1 = "Expected a function";
|
|
605
|
-
function
|
|
605
|
+
function Pu(t, e) {
|
|
606
606
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
607
607
|
throw new TypeError(p1);
|
|
608
608
|
var r = function() {
|
|
@@ -612,12 +612,12 @@ function Du(t, e) {
|
|
|
612
612
|
var o = t.apply(this, n);
|
|
613
613
|
return r.cache = i.set(a, o) || i, o;
|
|
614
614
|
};
|
|
615
|
-
return r.cache = new (
|
|
615
|
+
return r.cache = new (Pu.Cache || wn)(), r;
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
Pu.Cache = wn;
|
|
618
618
|
var g1 = 500;
|
|
619
619
|
function m1(t) {
|
|
620
|
-
var e =
|
|
620
|
+
var e = Pu(t, function(n) {
|
|
621
621
|
return r.size === g1 && r.clear(), n;
|
|
622
622
|
}), r = e.cache;
|
|
623
623
|
return e;
|
|
@@ -632,7 +632,7 @@ function x1(t) {
|
|
|
632
632
|
return t == null ? "" : Cv(t);
|
|
633
633
|
}
|
|
634
634
|
function Hs(t, e) {
|
|
635
|
-
return zr(t) ? t :
|
|
635
|
+
return zr(t) ? t : Du(t, e) ? [t] : w1(x1(t));
|
|
636
636
|
}
|
|
637
637
|
var C1 = 1 / 0;
|
|
638
638
|
function po(t) {
|
|
@@ -681,10 +681,10 @@ function In() {
|
|
|
681
681
|
var t = arguments[0];
|
|
682
682
|
return zr(t) ? t : [t];
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function D1() {
|
|
685
685
|
this.__data__ = new bn(), this.size = 0;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function P1(t) {
|
|
688
688
|
var e = this.__data__, r = e.delete(t);
|
|
689
689
|
return this.size = e.size, r;
|
|
690
690
|
}
|
|
@@ -709,8 +709,8 @@ function vn(t) {
|
|
|
709
709
|
var e = this.__data__ = new bn(t);
|
|
710
710
|
this.size = e.size;
|
|
711
711
|
}
|
|
712
|
-
vn.prototype.clear =
|
|
713
|
-
vn.prototype.delete =
|
|
712
|
+
vn.prototype.clear = D1;
|
|
713
|
+
vn.prototype.delete = P1;
|
|
714
714
|
vn.prototype.get = O1;
|
|
715
715
|
vn.prototype.has = _1;
|
|
716
716
|
vn.prototype.set = F1;
|
|
@@ -902,7 +902,7 @@ function wb(t, e, r, n, a, i) {
|
|
|
902
902
|
o = !0, c = !1;
|
|
903
903
|
}
|
|
904
904
|
if (v && !c)
|
|
905
|
-
return i || (i = new vn()), o ||
|
|
905
|
+
return i || (i = new vn()), o || Pv(t) ? Lv(t, e, r, n, a, i) : vb(t, e, u, r, n, a, i);
|
|
906
906
|
if (!(r & yb)) {
|
|
907
907
|
var h = c && cd.call(t, "__wrapped__"), f = d && cd.call(e, "__wrapped__");
|
|
908
908
|
if (h || f) {
|
|
@@ -963,7 +963,7 @@ function Sb(t) {
|
|
|
963
963
|
function Tb(t, e) {
|
|
964
964
|
return t != null && e in Object(t);
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Db(t, e, r) {
|
|
967
967
|
e = Hs(e, t);
|
|
968
968
|
for (var n = -1, a = e.length, i = !1; ++n < a; ) {
|
|
969
969
|
var o = po(e[n]);
|
|
@@ -974,13 +974,13 @@ function Pb(t, e, r) {
|
|
|
974
974
|
return i || ++n != a ? i : (a = t == null ? 0 : t.length, !!a && Su(a) && Eu(o, a) && (zr(t) || Tu(t)));
|
|
975
975
|
}
|
|
976
976
|
function Av(t, e) {
|
|
977
|
-
return t != null &&
|
|
977
|
+
return t != null && Db(t, e, Tb);
|
|
978
978
|
}
|
|
979
|
-
var
|
|
979
|
+
var Pb = 1, Ob = 2;
|
|
980
980
|
function _b(t, e) {
|
|
981
|
-
return
|
|
981
|
+
return Du(t) && Fv(e) ? Iv(po(t), e) : function(r) {
|
|
982
982
|
var n = dn(r, t);
|
|
983
|
-
return n === void 0 && n === e ? Av(r, t) : qs(e, n,
|
|
983
|
+
return n === void 0 && n === e ? Av(r, t) : qs(e, n, Pb | Ob);
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
986
|
function Lb(t) {
|
|
@@ -994,7 +994,7 @@ function Fb(t) {
|
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
996
|
function Ib(t) {
|
|
997
|
-
return
|
|
997
|
+
return Du(t) ? Lb(po(t)) : Fb(t);
|
|
998
998
|
}
|
|
999
999
|
function Ab(t) {
|
|
1000
1000
|
return typeof t == "function" ? t : t == null ? Ev : typeof t == "object" ? zr(t) ? _b(t[0], t[1]) : Sb(t) : Ib(t);
|
|
@@ -1112,7 +1112,7 @@ class Nv extends Error {
|
|
|
1112
1112
|
function Ub(t, e) {
|
|
1113
1113
|
throw new Nv(`[${t}] ${e}`);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Pt(t, e) {
|
|
1116
1116
|
if (process.env.NODE_ENV !== "production") {
|
|
1117
1117
|
const r = er(t) ? new Nv(`[${t}] ${e}`) : t;
|
|
1118
1118
|
console.warn(r);
|
|
@@ -1124,7 +1124,7 @@ const Gb = "utils/dom/style", $v = (t = "") => t.split(" ").filter((e) => !!e.tr
|
|
|
1124
1124
|
!t || !e.trim() || t.classList.remove(...$v(e));
|
|
1125
1125
|
}, Ti = (t, e) => {
|
|
1126
1126
|
var r;
|
|
1127
|
-
if (!
|
|
1127
|
+
if (!Dt || !t || !e)
|
|
1128
1128
|
return "";
|
|
1129
1129
|
let n = Z0(e);
|
|
1130
1130
|
n === "float" && (n = "cssFloat");
|
|
@@ -1145,10 +1145,10 @@ function Ja(t, e = "px") {
|
|
|
1145
1145
|
return `${t}${e}`;
|
|
1146
1146
|
if (er(t))
|
|
1147
1147
|
return t;
|
|
1148
|
-
|
|
1148
|
+
Pt(Gb, "binding value must be a string or number");
|
|
1149
1149
|
}
|
|
1150
1150
|
function Wb(t, e) {
|
|
1151
|
-
if (!
|
|
1151
|
+
if (!Dt)
|
|
1152
1152
|
return;
|
|
1153
1153
|
if (!e) {
|
|
1154
1154
|
t.scrollTop = 0;
|
|
@@ -1505,15 +1505,15 @@ const zv = "__epPropKey", Ne = (t) => t, S2 = (t) => Ht(t) && !!t[zv], Us = (t,
|
|
|
1505
1505
|
pageDown: "PageDown",
|
|
1506
1506
|
home: "Home",
|
|
1507
1507
|
end: "End"
|
|
1508
|
-
}, zt = "update:modelValue", Fu = "change", Hv = ["", "default", "small", "large"],
|
|
1509
|
-
const { excludeListeners: e = !1, excludeKeys: r } = t, n = V(() => ((r == null ? void 0 : r.value) || []).concat(
|
|
1508
|
+
}, zt = "update:modelValue", Fu = "change", Hv = ["", "default", "small", "large"], D2 = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Ra = (t) => t, P2 = ["class", "style"], O2 = /^on[A-Z]/, _2 = (t = {}) => {
|
|
1509
|
+
const { excludeListeners: e = !1, excludeKeys: r } = t, n = V(() => ((r == null ? void 0 : r.value) || []).concat(P2)), a = gt();
|
|
1510
1510
|
return a ? V(() => {
|
|
1511
1511
|
var i;
|
|
1512
1512
|
return ys(Object.entries((i = a.proxy) == null ? void 0 : i.$attrs).filter(([o]) => !n.value.includes(o) && !(e && O2.test(o))));
|
|
1513
|
-
}) : (
|
|
1513
|
+
}) : (Pt("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), V(() => ({})));
|
|
1514
1514
|
}, es = ({ from: t, replacement: e, scope: r, version: n, ref: a, type: i = "API" }, o) => {
|
|
1515
1515
|
Oe(() => O(o), (s) => {
|
|
1516
|
-
s &&
|
|
1516
|
+
s && Pt(r, `[${i}] ${t} is about to be deprecated in version ${n}, please use ${e} instead.
|
|
1517
1517
|
For more detail, please visit: ${a}
|
|
1518
1518
|
`);
|
|
1519
1519
|
}, {
|
|
@@ -1774,12 +1774,12 @@ const F2 = (t) => (e, r) => I2(e, r, O(t)), I2 = (t, e, r) => dn(r, t, t).replac
|
|
|
1774
1774
|
}, b = (x) => {
|
|
1775
1775
|
if (f.disabled === !0 || lr(l) && !l())
|
|
1776
1776
|
return;
|
|
1777
|
-
const T = p.value &&
|
|
1777
|
+
const T = p.value && Dt;
|
|
1778
1778
|
T && h(e, !0), (m.value || !T) && g(x);
|
|
1779
1779
|
}, w = (x) => {
|
|
1780
|
-
if (f.disabled === !0 || !
|
|
1780
|
+
if (f.disabled === !0 || !Dt)
|
|
1781
1781
|
return;
|
|
1782
|
-
const T = p.value &&
|
|
1782
|
+
const T = p.value && Dt;
|
|
1783
1783
|
T && h(e, !1), (m.value || !T) && y(x);
|
|
1784
1784
|
}, C = (x) => {
|
|
1785
1785
|
Qa(x) && (f.disabled && x ? p.value && h(e, !1) : o.value !== x && (x ? g() : y()));
|
|
@@ -1809,7 +1809,7 @@ const F2 = (t) => (e, r) => I2(e, r, O(t)), I2 = (t, e, r) => dn(r, t, t).replac
|
|
|
1809
1809
|
return (n = (r = e == null ? void 0 : e.proxy) == null ? void 0 : r.$props) == null ? void 0 : n[t];
|
|
1810
1810
|
});
|
|
1811
1811
|
};
|
|
1812
|
-
var vr = "top",
|
|
1812
|
+
var vr = "top", Dr = "bottom", Pr = "right", hr = "left", Au = "auto", mo = [vr, Dr, Pr, hr], ei = "start", Zi = "end", R2 = "clippingParents", Gv = "viewport", Di = "popper", z2 = "reference", fd = mo.reduce(function(t, e) {
|
|
1813
1813
|
return t.concat([e + "-" + ei, e + "-" + Zi]);
|
|
1814
1814
|
}, []), Gs = [].concat(mo, [Au]).reduce(function(t, e) {
|
|
1815
1815
|
return t.concat([e, e + "-" + ei, e + "-" + Zi]);
|
|
@@ -1949,9 +1949,9 @@ var rw = function(t, e) {
|
|
|
1949
1949
|
return t = typeof t == "function" ? t(Object.assign({}, e.rects, { placement: e.placement })) : t, Zv(typeof t != "number" ? t : jv(t, mo));
|
|
1950
1950
|
};
|
|
1951
1951
|
function nw(t) {
|
|
1952
|
-
var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, o = r.modifiersData.popperOffsets, s = Zr(r.placement), u = Nu(s), l = [hr,
|
|
1952
|
+
var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, o = r.modifiersData.popperOffsets, s = Zr(r.placement), u = Nu(s), l = [hr, Pr].indexOf(s) >= 0, c = l ? "height" : "width";
|
|
1953
1953
|
if (!(!i || !o)) {
|
|
1954
|
-
var d = rw(a.padding, r), v = Bu(i), h = u === "y" ? vr : hr, f = u === "y" ?
|
|
1954
|
+
var d = rw(a.padding, r), v = Bu(i), h = u === "y" ? vr : hr, f = u === "y" ? Dr : Pr, p = r.rects.reference[c] + r.rects.reference[u] - o[u] - r.rects.popper[c], m = o[u] - r.rects.reference[u], g = yo(i), y = g ? u === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, b = p / 2 - m / 2, w = d[h], C = y - v[c] - d[f], E = y / 2 - v[c] / 2 + b, x = Vi(w, E, C), T = u;
|
|
1955
1955
|
r.modifiersData[n] = (e = {}, e[T] = x, e.centerOffset = x - E, e);
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
@@ -1974,23 +1974,23 @@ function hd(t) {
|
|
|
1974
1974
|
var g = o.hasOwnProperty("x"), y = o.hasOwnProperty("y"), b = hr, w = vr, C = window;
|
|
1975
1975
|
if (l) {
|
|
1976
1976
|
var E = yo(r), x = "clientHeight", T = "clientWidth";
|
|
1977
|
-
if (E === Hr(r) && (E = Yn(r), hn(E).position !== "static" && s === "absolute" && (x = "scrollHeight", T = "scrollWidth")), E = E, a === vr || (a === hr || a ===
|
|
1978
|
-
w =
|
|
1977
|
+
if (E === Hr(r) && (E = Yn(r), hn(E).position !== "static" && s === "absolute" && (x = "scrollHeight", T = "scrollWidth")), E = E, a === vr || (a === hr || a === Pr) && i === Zi) {
|
|
1978
|
+
w = Dr;
|
|
1979
1979
|
var k = d && E === C && C.visualViewport ? C.visualViewport.height : E[x];
|
|
1980
1980
|
p -= k - n.height, p *= u ? 1 : -1;
|
|
1981
1981
|
}
|
|
1982
|
-
if (a === hr || (a === vr || a ===
|
|
1983
|
-
b =
|
|
1984
|
-
var
|
|
1985
|
-
h -=
|
|
1982
|
+
if (a === hr || (a === vr || a === Dr) && i === Zi) {
|
|
1983
|
+
b = Pr;
|
|
1984
|
+
var D = d && E === C && C.visualViewport ? C.visualViewport.width : E[T];
|
|
1985
|
+
h -= D - n.width, h *= u ? 1 : -1;
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1988
|
+
var P = Object.assign({ position: s }, l && ow), _ = c === !0 ? sw({ x: h, y: p }) : { x: h, y: p };
|
|
1989
1989
|
if (h = _.x, p = _.y, u) {
|
|
1990
1990
|
var I;
|
|
1991
|
-
return Object.assign({},
|
|
1991
|
+
return Object.assign({}, P, (I = {}, I[w] = y ? "0" : "", I[b] = g ? "0" : "", I.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", I));
|
|
1992
1992
|
}
|
|
1993
|
-
return Object.assign({},
|
|
1993
|
+
return Object.assign({}, P, (e = {}, e[w] = y ? p + "px" : "", e[b] = g ? h + "px" : "", e.transform = "", e));
|
|
1994
1994
|
}
|
|
1995
1995
|
function lw(t) {
|
|
1996
1996
|
var e = t.state, r = t.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, o = i === void 0 ? !0 : i, s = r.roundOffsets, u = s === void 0 ? !0 : s, l = { placement: Zr(e.placement), variation: ai(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: a, isFixed: e.options.strategy === "fixed" };
|
|
@@ -2077,10 +2077,10 @@ function th(t) {
|
|
|
2077
2077
|
case vr:
|
|
2078
2078
|
u = { x: o, y: e.y - r.height };
|
|
2079
2079
|
break;
|
|
2080
|
-
case
|
|
2080
|
+
case Dr:
|
|
2081
2081
|
u = { x: o, y: e.y + e.height };
|
|
2082
2082
|
break;
|
|
2083
|
-
case
|
|
2083
|
+
case Pr:
|
|
2084
2084
|
u = { x: e.x + e.width, y: s };
|
|
2085
2085
|
break;
|
|
2086
2086
|
case hr:
|
|
@@ -2105,12 +2105,12 @@ function th(t) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
function ji(t, e) {
|
|
2107
2107
|
e === void 0 && (e = {});
|
|
2108
|
-
var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.boundary, o = i === void 0 ? R2 : i, s = r.rootBoundary, u = s === void 0 ? Gv : s, l = r.elementContext, c = l === void 0 ?
|
|
2109
|
-
if (c ===
|
|
2110
|
-
var
|
|
2111
|
-
Object.keys(T).forEach(function(
|
|
2112
|
-
var _ = [
|
|
2113
|
-
T[
|
|
2108
|
+
var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.boundary, o = i === void 0 ? R2 : i, s = r.rootBoundary, u = s === void 0 ? Gv : s, l = r.elementContext, c = l === void 0 ? Di : l, d = r.altBoundary, v = d === void 0 ? !1 : d, h = r.padding, f = h === void 0 ? 0 : h, p = Zv(typeof f != "number" ? f : jv(f, mo)), m = c === Di ? z2 : Di, g = t.rects.popper, y = t.elements[v ? m : c], b = gw(ti(y) ? y : y.contextElement || Yn(t.elements.popper), o, u), w = ni(t.elements.reference), C = th({ reference: w, element: g, strategy: "absolute", placement: a }), E = Zl(Object.assign({}, g, C)), x = c === Di ? E : w, T = { top: b.top - x.top + p.top, bottom: x.bottom - b.bottom + p.bottom, left: b.left - x.left + p.left, right: x.right - b.right + p.right }, k = t.modifiersData.offset;
|
|
2109
|
+
if (c === Di && k) {
|
|
2110
|
+
var D = k[a];
|
|
2111
|
+
Object.keys(T).forEach(function(P) {
|
|
2112
|
+
var _ = [Pr, Dr].indexOf(P) >= 0 ? 1 : -1, I = [vr, Dr].indexOf(P) >= 0 ? "y" : "x";
|
|
2113
|
+
T[P] += D[I] * _;
|
|
2114
2114
|
});
|
|
2115
2115
|
}
|
|
2116
2116
|
return T;
|
|
@@ -2140,17 +2140,17 @@ function bw(t) {
|
|
|
2140
2140
|
if (!e.modifiersData[n]._skip) {
|
|
2141
2141
|
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, o = r.altAxis, s = o === void 0 ? !0 : o, u = r.fallbackPlacements, l = r.padding, c = r.boundary, d = r.rootBoundary, v = r.altBoundary, h = r.flipVariations, f = h === void 0 ? !0 : h, p = r.allowedAutoPlacements, m = e.options.placement, g = Zr(m), y = g === m, b = u || (y || !f ? [rs(m)] : yw(m)), w = [m].concat(b).reduce(function(oe, ie) {
|
|
2142
2142
|
return oe.concat(Zr(ie) === Au ? mw(e, { placement: ie, boundary: c, rootBoundary: d, padding: l, flipVariations: f, allowedAutoPlacements: p }) : ie);
|
|
2143
|
-
}, []), C = e.rects.reference, E = e.rects.popper, x = /* @__PURE__ */ new Map(), T = !0, k = w[0],
|
|
2144
|
-
var
|
|
2143
|
+
}, []), C = e.rects.reference, E = e.rects.popper, x = /* @__PURE__ */ new Map(), T = !0, k = w[0], D = 0; D < w.length; D++) {
|
|
2144
|
+
var P = w[D], _ = Zr(P), I = ai(P) === ei, L = [vr, Dr].indexOf(_) >= 0, B = L ? "width" : "height", F = ji(e, { placement: P, boundary: c, rootBoundary: d, altBoundary: v, padding: l }), M = L ? I ? Pr : hr : I ? Dr : vr;
|
|
2145
2145
|
C[B] > E[B] && (M = rs(M));
|
|
2146
2146
|
var A = rs(M), R = [];
|
|
2147
2147
|
if (i && R.push(F[_] <= 0), s && R.push(F[M] <= 0, F[A] <= 0), R.every(function(oe) {
|
|
2148
2148
|
return oe;
|
|
2149
2149
|
})) {
|
|
2150
|
-
k =
|
|
2150
|
+
k = P, T = !1;
|
|
2151
2151
|
break;
|
|
2152
2152
|
}
|
|
2153
|
-
x.set(
|
|
2153
|
+
x.set(P, R);
|
|
2154
2154
|
}
|
|
2155
2155
|
if (T) for (var K = f ? 3 : 1, H = function(oe) {
|
|
2156
2156
|
var ie = w.find(function(re) {
|
|
@@ -2172,7 +2172,7 @@ function md(t, e, r) {
|
|
|
2172
2172
|
return r === void 0 && (r = { x: 0, y: 0 }), { top: t.top - e.height - r.y, right: t.right - e.width + r.x, bottom: t.bottom - e.height + r.y, left: t.left - e.width - r.x };
|
|
2173
2173
|
}
|
|
2174
2174
|
function yd(t) {
|
|
2175
|
-
return [vr,
|
|
2175
|
+
return [vr, Pr, Dr, hr].some(function(e) {
|
|
2176
2176
|
return t[e] >= 0;
|
|
2177
2177
|
});
|
|
2178
2178
|
}
|
|
@@ -2183,7 +2183,7 @@ function xw(t) {
|
|
|
2183
2183
|
var Cw = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: xw };
|
|
2184
2184
|
function Ew(t, e, r) {
|
|
2185
2185
|
var n = Zr(t), a = [hr, vr].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, { placement: t })) : r, o = i[0], s = i[1];
|
|
2186
|
-
return o = o || 0, s = (s || 0) * a, [hr,
|
|
2186
|
+
return o = o || 0, s = (s || 0) * a, [hr, Pr].indexOf(n) >= 0 ? { x: s, y: o } : { x: o, y: s };
|
|
2187
2187
|
}
|
|
2188
2188
|
function kw(t) {
|
|
2189
2189
|
var e = t.state, r = t.options, n = t.name, a = r.offset, i = a === void 0 ? [0, 0] : a, o = Gs.reduce(function(c, d) {
|
|
@@ -2197,24 +2197,24 @@ function Tw(t) {
|
|
|
2197
2197
|
e.modifiersData[r] = th({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement });
|
|
2198
2198
|
}
|
|
2199
2199
|
var rh = { name: "popperOffsets", enabled: !0, phase: "read", fn: Tw, data: {} };
|
|
2200
|
-
function
|
|
2200
|
+
function Dw(t) {
|
|
2201
2201
|
return t === "x" ? "y" : "x";
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2204
|
-
var e = t.state, r = t.options, n = t.name, a = r.mainAxis, i = a === void 0 ? !0 : a, o = r.altAxis, s = o === void 0 ? !1 : o, u = r.boundary, l = r.rootBoundary, c = r.altBoundary, d = r.padding, v = r.tether, h = v === void 0 ? !0 : v, f = r.tetherOffset, p = f === void 0 ? 0 : f, m = ji(e, { boundary: u, rootBoundary: l, padding: d, altBoundary: c }), g = Zr(e.placement), y = ai(e.placement), b = !y, w = Nu(g), C =
|
|
2203
|
+
function Pw(t) {
|
|
2204
|
+
var e = t.state, r = t.options, n = t.name, a = r.mainAxis, i = a === void 0 ? !0 : a, o = r.altAxis, s = o === void 0 ? !1 : o, u = r.boundary, l = r.rootBoundary, c = r.altBoundary, d = r.padding, v = r.tether, h = v === void 0 ? !0 : v, f = r.tetherOffset, p = f === void 0 ? 0 : f, m = ji(e, { boundary: u, rootBoundary: l, padding: d, altBoundary: c }), g = Zr(e.placement), y = ai(e.placement), b = !y, w = Nu(g), C = Dw(w), E = e.modifiersData.popperOffsets, x = e.rects.reference, T = e.rects.popper, k = typeof p == "function" ? p(Object.assign({}, e.rects, { placement: e.placement })) : p, D = typeof k == "number" ? { mainAxis: k, altAxis: k } : Object.assign({ mainAxis: 0, altAxis: 0 }, k), P = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, _ = { x: 0, y: 0 };
|
|
2205
2205
|
if (E) {
|
|
2206
2206
|
if (i) {
|
|
2207
|
-
var I, L = w === "y" ? vr : hr, B = w === "y" ?
|
|
2207
|
+
var I, L = w === "y" ? vr : hr, B = w === "y" ? Dr : Pr, F = w === "y" ? "height" : "width", M = E[w], A = M + m[L], R = M - m[B], K = h ? -T[F] / 2 : 0, H = y === ei ? x[F] : T[F], q = y === ei ? -T[F] : -x[F], j = e.elements.arrow, oe = h && j ? Bu(j) : { width: 0, height: 0 }, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Xv(), re = ie[L], le = ie[B], Q = Vi(0, x[F], oe[F]), N = b ? x[F] / 2 - K - Q - re - D.mainAxis : H - Q - re - D.mainAxis, U = b ? -x[F] / 2 + K + Q + le + D.mainAxis : q + Q + le + D.mainAxis, X = e.elements.arrow && yo(e.elements.arrow), ge = X ? w === "y" ? X.clientTop || 0 : X.clientLeft || 0 : 0, Ee = (I = P == null ? void 0 : P[w]) != null ? I : 0, fe = M + N - Ee - ge, me = M + U - Ee, xe = Vi(h ? Cs(A, fe) : A, M, h ? da(R, me) : R);
|
|
2208
2208
|
E[w] = xe, _[w] = xe - M;
|
|
2209
2209
|
}
|
|
2210
2210
|
if (s) {
|
|
2211
|
-
var ke, Ce = w === "x" ? vr : hr,
|
|
2211
|
+
var ke, Ce = w === "x" ? vr : hr, Pe = w === "x" ? Dr : Pr, He = E[C], qe = C === "y" ? "height" : "width", Me = He + m[Ce], Ue = He - m[Pe], se = [vr, hr].indexOf(g) !== -1, S = (ke = P == null ? void 0 : P[C]) != null ? ke : 0, z = se ? Me : He - x[qe] - T[qe] - S + D.altAxis, ne = se ? He + x[qe] + T[qe] - S - D.altAxis : Ue, Y = h && se ? tw(z, He, ne) : Vi(h ? z : Me, He, h ? ne : Ue);
|
|
2212
2212
|
E[C] = Y, _[C] = Y - He;
|
|
2213
2213
|
}
|
|
2214
2214
|
e.modifiersData[n] = _;
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
|
-
var Ow = { name: "preventOverflow", enabled: !0, phase: "main", fn:
|
|
2217
|
+
var Ow = { name: "preventOverflow", enabled: !0, phase: "main", fn: Pw, requiresIfExists: ["offset"] };
|
|
2218
2218
|
function _w(t) {
|
|
2219
2219
|
return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop };
|
|
2220
2220
|
}
|
|
@@ -2431,7 +2431,7 @@ const jl = {
|
|
|
2431
2431
|
current: 0
|
|
2432
2432
|
}, qw = Symbol("elIdInjection"), nh = () => gt() ? Ke(qw, jl) : jl, Ys = (t) => {
|
|
2433
2433
|
const e = nh();
|
|
2434
|
-
!
|
|
2434
|
+
!Dt && e === jl && Pt("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2435
2435
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
2436
2436
|
prefix: number,
|
|
2437
2437
|
current: number,
|
|
@@ -2445,9 +2445,9 @@ const Cd = (t) => {
|
|
|
2445
2445
|
e.key === Lt.esc && za.forEach((r) => r(e));
|
|
2446
2446
|
}, Kw = (t) => {
|
|
2447
2447
|
Et(() => {
|
|
2448
|
-
za.length === 0 && document.addEventListener("keydown", Cd),
|
|
2448
|
+
za.length === 0 && document.addEventListener("keydown", Cd), Dt && za.push(t);
|
|
2449
2449
|
}), Vr(() => {
|
|
2450
|
-
za = za.filter((e) => e !== t), za.length === 0 &&
|
|
2450
|
+
za = za.filter((e) => e !== t), za.length === 0 && Dt && document.removeEventListener("keydown", Cd);
|
|
2451
2451
|
});
|
|
2452
2452
|
};
|
|
2453
2453
|
let Ed;
|
|
@@ -2463,7 +2463,7 @@ const ah = () => {
|
|
|
2463
2463
|
}, Gw = () => {
|
|
2464
2464
|
const { id: t, selector: e } = ah();
|
|
2465
2465
|
return h0(() => {
|
|
2466
|
-
|
|
2466
|
+
Dt && (process.env.NODE_ENV === "test" || !Ed || !document.body.querySelector(e.value)) && (Ed = Uw(t.value));
|
|
2467
2467
|
}), {
|
|
2468
2468
|
id: t,
|
|
2469
2469
|
selector: e
|
|
@@ -2531,7 +2531,7 @@ const ah = () => {
|
|
|
2531
2531
|
const o = O(r);
|
|
2532
2532
|
return qt(o) ? o : oh;
|
|
2533
2533
|
}), a = V(() => n.value + Sd.value), i = () => (e.current++, Sd.value = e.current, a.value);
|
|
2534
|
-
return !
|
|
2534
|
+
return !Dt && !Ke(Td) && Pt("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
2535
2535
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
2536
2536
|
initialZIndex: n,
|
|
2537
2537
|
currentZIndex: a,
|
|
@@ -2619,7 +2619,7 @@ function ch({
|
|
|
2619
2619
|
var u;
|
|
2620
2620
|
e == null || e("compositionupdate", s);
|
|
2621
2621
|
const l = (u = s.target) == null ? void 0 : u.value, c = l[l.length - 1] || "";
|
|
2622
|
-
r.value = !
|
|
2622
|
+
r.value = !D2(c);
|
|
2623
2623
|
}, i = (s) => {
|
|
2624
2624
|
e == null || e("compositionend", s), r.value && (r.value = !1, ot(() => t(s)));
|
|
2625
2625
|
};
|
|
@@ -2642,7 +2642,7 @@ const dh = Symbol("emptyValuesContextKey"), Jw = "use-empty-values", ex = ["", v
|
|
|
2642
2642
|
}
|
|
2643
2643
|
}), nx = (t, e) => {
|
|
2644
2644
|
const r = gt() ? Ke(dh, ue({})) : ue({}), n = V(() => t.emptyValues || r.value.emptyValues || ex), a = V(() => lr(t.valueOnClear) ? t.valueOnClear() : t.valueOnClear !== void 0 ? t.valueOnClear : lr(r.value.valueOnClear) ? r.value.valueOnClear() : r.value.valueOnClear !== void 0 ? r.value.valueOnClear : tx), i = (o) => n.value.includes(o);
|
|
2645
|
-
return n.value.includes(a.value) ||
|
|
2645
|
+
return n.value.includes(a.value) || Pt(Jw, "value-on-clear should be a value of empty-values"), {
|
|
2646
2646
|
emptyValues: n,
|
|
2647
2647
|
valueOnClear: a,
|
|
2648
2648
|
isEmptyValue: i
|
|
@@ -2687,7 +2687,7 @@ const ox = (t, e, r = !1) => {
|
|
|
2687
2687
|
var n;
|
|
2688
2688
|
const a = !!gt(), i = a ? qu() : void 0, o = (n = void 0) != null ? n : a ? Ct : void 0;
|
|
2689
2689
|
if (!o) {
|
|
2690
|
-
|
|
2690
|
+
Pt("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
2691
2691
|
return;
|
|
2692
2692
|
}
|
|
2693
2693
|
const s = V(() => {
|
|
@@ -2808,7 +2808,7 @@ function hx(t) {
|
|
|
2808
2808
|
const e = window.getComputedStyle(t), r = e.getPropertyValue("box-sizing"), n = Number.parseFloat(e.getPropertyValue("padding-bottom")) + Number.parseFloat(e.getPropertyValue("padding-top")), a = Number.parseFloat(e.getPropertyValue("border-bottom-width")) + Number.parseFloat(e.getPropertyValue("border-top-width"));
|
|
2809
2809
|
return { contextStyle: vx.map((o) => `${o}:${e.getPropertyValue(o)}`).join(";"), paddingSize: n, borderSize: a, boxSizing: r };
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2811
|
+
function Dd(t, e = 1, r) {
|
|
2812
2812
|
var n;
|
|
2813
2813
|
Fr || (Fr = document.createElement("textarea"), document.body.appendChild(Fr));
|
|
2814
2814
|
const { paddingSize: a, borderSize: i, boxSizing: o, contextStyle: s } = hx(t);
|
|
@@ -2952,13 +2952,13 @@ const px = rt({
|
|
|
2952
2952
|
excludeKeys: V(() => Object.keys(o.value))
|
|
2953
2953
|
}), { form: c, formItem: d } = Ta(), { inputId: v } = wo(n, {
|
|
2954
2954
|
formItemContext: d
|
|
2955
|
-
}), h = pa(), f = bo(), p = Ve("input"), m = Ve("textarea"), g = Xr(), y = Xr(), b = ue(!1), w = ue(!1), C = ue(), E = Xr(n.inputStyle), x = V(() => g.value || y.value), { wrapperRef: T, isFocused: k, handleFocus:
|
|
2955
|
+
}), h = pa(), f = bo(), p = Ve("input"), m = Ve("textarea"), g = Xr(), y = Xr(), b = ue(!1), w = ue(!1), C = ue(), E = Xr(n.inputStyle), x = V(() => g.value || y.value), { wrapperRef: T, isFocused: k, handleFocus: D, handleBlur: P } = Hu(x, {
|
|
2956
2956
|
beforeFocus() {
|
|
2957
2957
|
return f.value;
|
|
2958
2958
|
},
|
|
2959
2959
|
afterBlur() {
|
|
2960
2960
|
var S;
|
|
2961
|
-
n.validateEvent && ((S = d == null ? void 0 : d.validate) == null || S.call(d, "blur").catch((z) =>
|
|
2961
|
+
n.validateEvent && ((S = d == null ? void 0 : d.validate) == null || S.call(d, "blur").catch((z) => Pt(z)));
|
|
2962
2962
|
}
|
|
2963
2963
|
}), _ = V(() => {
|
|
2964
2964
|
var S;
|
|
@@ -2980,9 +2980,9 @@ const px = rt({
|
|
|
2980
2980
|
});
|
|
2981
2981
|
const le = () => {
|
|
2982
2982
|
const { type: S, autosize: z } = n;
|
|
2983
|
-
if (!(!
|
|
2983
|
+
if (!(!Dt || S !== "textarea" || !y.value))
|
|
2984
2984
|
if (z) {
|
|
2985
|
-
const ne = Ht(z) ? z.minRows : void 0, Y = Ht(z) ? z.maxRows : void 0, W =
|
|
2985
|
+
const ne = Ht(z) ? z.minRows : void 0, Y = Ht(z) ? z.maxRows : void 0, W = Dd(y.value, ne, Y);
|
|
2986
2986
|
E.value = {
|
|
2987
2987
|
overflowY: "hidden",
|
|
2988
2988
|
...W
|
|
@@ -2991,7 +2991,7 @@ const px = rt({
|
|
|
2991
2991
|
});
|
|
2992
2992
|
} else
|
|
2993
2993
|
E.value = {
|
|
2994
|
-
minHeight:
|
|
2994
|
+
minHeight: Dd(y.value).minHeight
|
|
2995
2995
|
};
|
|
2996
2996
|
}, N = ((S) => {
|
|
2997
2997
|
let z = !1;
|
|
@@ -3026,7 +3026,7 @@ const px = rt({
|
|
|
3026
3026
|
}, Ce = async () => {
|
|
3027
3027
|
var S;
|
|
3028
3028
|
await ot(), (S = x.value) == null || S.focus();
|
|
3029
|
-
},
|
|
3029
|
+
}, Pe = () => {
|
|
3030
3030
|
var S;
|
|
3031
3031
|
return (S = x.value) == null ? void 0 : S.blur();
|
|
3032
3032
|
}, He = (S) => {
|
|
@@ -3043,11 +3043,11 @@ const px = rt({
|
|
|
3043
3043
|
};
|
|
3044
3044
|
return Oe(() => n.modelValue, () => {
|
|
3045
3045
|
var S;
|
|
3046
|
-
ot(() => le()), n.validateEvent && ((S = d == null ? void 0 : d.validate) == null || S.call(d, "change").catch((z) =>
|
|
3046
|
+
ot(() => le()), n.validateEvent && ((S = d == null ? void 0 : d.validate) == null || S.call(d, "change").catch((z) => Pt(z)));
|
|
3047
3047
|
}), Oe(A, () => U()), Oe(() => n.type, async () => {
|
|
3048
3048
|
await ot(), U(), le();
|
|
3049
3049
|
}), Et(() => {
|
|
3050
|
-
!n.formatter && n.parser &&
|
|
3050
|
+
!n.formatter && n.parser && Pt("ElInput", "If you set the parser, you also need to set the formatter."), U(), ot(le);
|
|
3051
3051
|
}), e({
|
|
3052
3052
|
input: g,
|
|
3053
3053
|
textarea: y,
|
|
@@ -3056,7 +3056,7 @@ const px = rt({
|
|
|
3056
3056
|
autosize: Nr(n, "autosize"),
|
|
3057
3057
|
isComposing: Ee,
|
|
3058
3058
|
focus: Ce,
|
|
3059
|
-
blur:
|
|
3059
|
+
blur: Pe,
|
|
3060
3060
|
select: Ue,
|
|
3061
3061
|
clear: se,
|
|
3062
3062
|
resizeTextarea: le
|
|
@@ -3228,8 +3228,8 @@ const px = rt({
|
|
|
3228
3228
|
onCompositionupdate: O(me),
|
|
3229
3229
|
onCompositionend: O(xe),
|
|
3230
3230
|
onInput: X,
|
|
3231
|
-
onFocus: O(
|
|
3232
|
-
onBlur: O(
|
|
3231
|
+
onFocus: O(D),
|
|
3232
|
+
onBlur: O(P),
|
|
3233
3233
|
onChange: ge,
|
|
3234
3234
|
onKeydown: Me
|
|
3235
3235
|
}), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
|
|
@@ -3287,7 +3287,7 @@ const vh = $t(bx), La = 4, wx = {
|
|
|
3287
3287
|
const e = t, r = Ke(Uu), n = Ve("scrollbar");
|
|
3288
3288
|
r || Ub(Ex, "can not inject scrollbar context");
|
|
3289
3289
|
const a = ue(), i = ue(), o = ue({}), s = ue(!1);
|
|
3290
|
-
let u = !1, l = !1, c =
|
|
3290
|
+
let u = !1, l = !1, c = Dt ? document.onselectstart : null;
|
|
3291
3291
|
const d = V(() => wx[e.vertical ? "vertical" : "horizontal"]), v = V(() => xx({
|
|
3292
3292
|
size: e.size,
|
|
3293
3293
|
move: e.move,
|
|
@@ -3312,8 +3312,8 @@ const vh = $t(bx), La = 4, wx = {
|
|
|
3312
3312
|
const x = o.value[d.value.axis];
|
|
3313
3313
|
if (!x)
|
|
3314
3314
|
return;
|
|
3315
|
-
const T = (a.value.getBoundingClientRect()[d.value.direction] - E[d.value.client]) * -1, k = i.value[d.value.offset] - x,
|
|
3316
|
-
r.wrapElement[d.value.scroll] =
|
|
3315
|
+
const T = (a.value.getBoundingClientRect()[d.value.direction] - E[d.value.client]) * -1, k = i.value[d.value.offset] - x, D = (T - k) * 100 * h.value / a.value[d.value.offset];
|
|
3316
|
+
r.wrapElement[d.value.scroll] = D * r.wrapElement[d.value.scrollSize] / 100;
|
|
3317
3317
|
}, y = () => {
|
|
3318
3318
|
u = !1, o.value[d.value.axis] = 0, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", y), C(), l && (s.value = !1);
|
|
3319
3319
|
}, b = () => {
|
|
@@ -3353,7 +3353,7 @@ const vh = $t(bx), La = 4, wx = {
|
|
|
3353
3353
|
}, 8, ["name"]));
|
|
3354
3354
|
}
|
|
3355
3355
|
});
|
|
3356
|
-
var
|
|
3356
|
+
var Pd = /* @__PURE__ */ ze(kx, [["__file", "thumb.vue"]]);
|
|
3357
3357
|
const Sx = rt({
|
|
3358
3358
|
always: {
|
|
3359
3359
|
type: Boolean,
|
|
@@ -3383,13 +3383,13 @@ const Sx = rt({
|
|
|
3383
3383
|
u.value = p / (h - p) / (g / (h - g)), l.value = m / (f - m) / (y / (f - y)), s.value = g + La < h ? `${g}px` : "", o.value = y + La < f ? `${y}px` : "";
|
|
3384
3384
|
}
|
|
3385
3385
|
}), (v, h) => ($(), Z(Je, null, [
|
|
3386
|
-
ce(
|
|
3386
|
+
ce(Pd, {
|
|
3387
3387
|
move: a.value,
|
|
3388
3388
|
ratio: l.value,
|
|
3389
3389
|
size: o.value,
|
|
3390
3390
|
always: v.always
|
|
3391
3391
|
}, null, 8, ["move", "ratio", "size", "always"]),
|
|
3392
|
-
ce(
|
|
3392
|
+
ce(Pd, {
|
|
3393
3393
|
move: i.value,
|
|
3394
3394
|
ratio: u.value,
|
|
3395
3395
|
size: s.value,
|
|
@@ -3399,8 +3399,8 @@ const Sx = rt({
|
|
|
3399
3399
|
], 64));
|
|
3400
3400
|
}
|
|
3401
3401
|
});
|
|
3402
|
-
var
|
|
3403
|
-
const
|
|
3402
|
+
var Dx = /* @__PURE__ */ ze(Tx, [["__file", "bar.vue"]]);
|
|
3403
|
+
const Px = rt({
|
|
3404
3404
|
height: {
|
|
3405
3405
|
type: [String, Number],
|
|
3406
3406
|
default: ""
|
|
@@ -3455,7 +3455,7 @@ const Dx = rt({
|
|
|
3455
3455
|
name: Ql
|
|
3456
3456
|
}), Lx = /* @__PURE__ */ de({
|
|
3457
3457
|
..._x,
|
|
3458
|
-
props:
|
|
3458
|
+
props: Px,
|
|
3459
3459
|
emits: Ox,
|
|
3460
3460
|
setup(t, { expose: e, emit: r }) {
|
|
3461
3461
|
const n = t, a = Ve("scrollbar");
|
|
@@ -3479,13 +3479,13 @@ const Dx = rt({
|
|
|
3479
3479
|
}
|
|
3480
3480
|
const y = (C) => {
|
|
3481
3481
|
if (!qt(C)) {
|
|
3482
|
-
|
|
3482
|
+
Pt(Ql, "value must be a number");
|
|
3483
3483
|
return;
|
|
3484
3484
|
}
|
|
3485
3485
|
c.value.scrollTop = C;
|
|
3486
3486
|
}, b = (C) => {
|
|
3487
3487
|
if (!qt(C)) {
|
|
3488
|
-
|
|
3488
|
+
Pt(Ql, "value must be a number");
|
|
3489
3489
|
return;
|
|
3490
3490
|
}
|
|
3491
3491
|
c.value.scrollLeft = C;
|
|
@@ -3545,7 +3545,7 @@ const Dx = rt({
|
|
|
3545
3545
|
_: 3
|
|
3546
3546
|
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
|
3547
3547
|
], 46, ["tabindex"]),
|
|
3548
|
-
C.native ? pe("v-if", !0) : ($(), be(
|
|
3548
|
+
C.native ? pe("v-if", !0) : ($(), be(Dx, {
|
|
3549
3549
|
key: 0,
|
|
3550
3550
|
ref_key: "barRef",
|
|
3551
3551
|
ref: v,
|
|
@@ -3632,9 +3632,9 @@ const xl = "ElOnlyChild", Vx = de({
|
|
|
3632
3632
|
if (!s)
|
|
3633
3633
|
return null;
|
|
3634
3634
|
if (s.length > 1)
|
|
3635
|
-
return
|
|
3635
|
+
return Pt(xl, "requires exact only one valid child."), null;
|
|
3636
3636
|
const u = mh(s);
|
|
3637
|
-
return u ? je(y0(u, r), [[i]]) : (
|
|
3637
|
+
return u ? je(y0(u, r), [[i]]) : (Pt(xl, "no valid child node found"), null);
|
|
3638
3638
|
};
|
|
3639
3639
|
}
|
|
3640
3640
|
});
|
|
@@ -3891,9 +3891,9 @@ const jx = () => {
|
|
|
3891
3891
|
return;
|
|
3892
3892
|
const { key: p, altKey: m, ctrlKey: g, metaKey: y, currentTarget: b, shiftKey: w } = f, { loop: C } = t, E = p === Lt.tab && !m && !g && !y, x = document.activeElement;
|
|
3893
3893
|
if (E && x) {
|
|
3894
|
-
const T = b, [k,
|
|
3895
|
-
if (k &&
|
|
3896
|
-
if (!w && x ===
|
|
3894
|
+
const T = b, [k, D] = Xx(T);
|
|
3895
|
+
if (k && D) {
|
|
3896
|
+
if (!w && x === D) {
|
|
3897
3897
|
const _ = No({
|
|
3898
3898
|
focusReason: i.value
|
|
3899
3899
|
});
|
|
@@ -3902,7 +3902,7 @@ const jx = () => {
|
|
|
3902
3902
|
const _ = No({
|
|
3903
3903
|
focusReason: i.value
|
|
3904
3904
|
});
|
|
3905
|
-
e("focusout-prevented", _), _.defaultPrevented || (f.preventDefault(), C && _n(
|
|
3905
|
+
e("focusout-prevented", _), _.defaultPrevented || (f.preventDefault(), C && _n(D, !0));
|
|
3906
3906
|
}
|
|
3907
3907
|
} else if (x === T) {
|
|
3908
3908
|
const _ = No({
|
|
@@ -4081,7 +4081,7 @@ const aC = ["fixed", "absolute"], iC = rt({
|
|
|
4081
4081
|
};
|
|
4082
4082
|
return cC(i, a == null ? void 0 : a.modifiers), i;
|
|
4083
4083
|
}, lC = (t) => {
|
|
4084
|
-
if (
|
|
4084
|
+
if (Dt)
|
|
4085
4085
|
return fn(t);
|
|
4086
4086
|
};
|
|
4087
4087
|
function uC(t) {
|
|
@@ -4248,17 +4248,17 @@ const dC = 0, fC = (t) => {
|
|
|
4248
4248
|
addInputId: Wi,
|
|
4249
4249
|
removeInputId: Wi
|
|
4250
4250
|
});
|
|
4251
|
-
let
|
|
4252
|
-
const
|
|
4251
|
+
let D;
|
|
4252
|
+
const P = (I = !0) => {
|
|
4253
4253
|
g(), I && x();
|
|
4254
4254
|
}, _ = () => {
|
|
4255
|
-
|
|
4255
|
+
P(!1), n.visible && n.focusOnShow ? i.value = !0 : n.visible === !1 && (i.value = !1);
|
|
4256
4256
|
};
|
|
4257
4257
|
return Et(() => {
|
|
4258
4258
|
Oe(() => n.triggerTargetEl, (I, L) => {
|
|
4259
|
-
|
|
4259
|
+
D == null || D(), D = void 0;
|
|
4260
4260
|
const B = O(I || h.value), F = O(L || h.value);
|
|
4261
|
-
ua(B) && (
|
|
4261
|
+
ua(B) && (D = Oe([m, () => n.ariaLabel, y, () => n.id], (M) => {
|
|
4262
4262
|
["role", "aria-label", "aria-modal", "id"].forEach((A, R) => {
|
|
4263
4263
|
$n(M[R]) ? B.removeAttribute(A) : B.setAttribute(A, M[R]);
|
|
4264
4264
|
});
|
|
@@ -4267,11 +4267,11 @@ const dC = 0, fC = (t) => {
|
|
|
4267
4267
|
});
|
|
4268
4268
|
}, { immediate: !0 }), Oe(() => n.visible, _, { immediate: !0 });
|
|
4269
4269
|
}), Vr(() => {
|
|
4270
|
-
|
|
4270
|
+
D == null || D(), D = void 0;
|
|
4271
4271
|
}), e({
|
|
4272
4272
|
popperContentRef: h,
|
|
4273
4273
|
popperInstanceRef: p,
|
|
4274
|
-
updatePopper:
|
|
4274
|
+
updatePopper: P,
|
|
4275
4275
|
contentStyle: E
|
|
4276
4276
|
}), (I, L) => ($(), Z("div", $r({
|
|
4277
4277
|
ref_key: "contentRef",
|
|
@@ -4401,8 +4401,8 @@ const yC = $t(Nx), Xu = Symbol("elTooltip"), cr = rt({
|
|
|
4401
4401
|
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
|
|
4402
4402
|
}
|
|
4403
4403
|
});
|
|
4404
|
-
var
|
|
4405
|
-
const
|
|
4404
|
+
var DC = /* @__PURE__ */ ze(TC, [["__file", "trigger.vue"]]);
|
|
4405
|
+
const PC = rt({
|
|
4406
4406
|
to: {
|
|
4407
4407
|
type: Ne([String, Object]),
|
|
4408
4408
|
required: !0
|
|
@@ -4410,7 +4410,7 @@ const DC = rt({
|
|
|
4410
4410
|
disabled: Boolean
|
|
4411
4411
|
}), OC = /* @__PURE__ */ de({
|
|
4412
4412
|
__name: "teleport",
|
|
4413
|
-
props:
|
|
4413
|
+
props: PC,
|
|
4414
4414
|
setup(t) {
|
|
4415
4415
|
return (e, r) => e.disabled ? Le(e.$slots, "default", { key: 0 }) : ($(), be(w0, {
|
|
4416
4416
|
key: 1,
|
|
@@ -4453,9 +4453,9 @@ const LC = $t(_C), FC = de({
|
|
|
4453
4453
|
}, k = () => {
|
|
4454
4454
|
if (O(s))
|
|
4455
4455
|
return !0;
|
|
4456
|
-
},
|
|
4456
|
+
}, D = un(k, () => {
|
|
4457
4457
|
r.enterable && O(c) === "hover" && v();
|
|
4458
|
-
}),
|
|
4458
|
+
}), P = un(k, () => {
|
|
4459
4459
|
O(c) === "hover" && d();
|
|
4460
4460
|
}), _ = () => {
|
|
4461
4461
|
var F, M;
|
|
@@ -4520,8 +4520,8 @@ const LC = $t(_C), FC = de({
|
|
|
4520
4520
|
"trigger-target-el": F.triggerTargetEl,
|
|
4521
4521
|
visible: O(w),
|
|
4522
4522
|
"z-index": F.zIndex,
|
|
4523
|
-
onMouseenter: O(
|
|
4524
|
-
onMouseleave: O(
|
|
4523
|
+
onMouseenter: O(D),
|
|
4524
|
+
onMouseleave: O(P),
|
|
4525
4525
|
onBlur: B,
|
|
4526
4526
|
onClose: O(d)
|
|
4527
4527
|
}), {
|
|
@@ -4613,7 +4613,7 @@ const MC = de({
|
|
|
4613
4613
|
role: g.role
|
|
4614
4614
|
}, {
|
|
4615
4615
|
default: ee(() => [
|
|
4616
|
-
ce(
|
|
4616
|
+
ce(DC, {
|
|
4617
4617
|
disabled: g.disabled,
|
|
4618
4618
|
trigger: g.trigger,
|
|
4619
4619
|
"trigger-keys": g.triggerKeys,
|
|
@@ -5278,7 +5278,7 @@ var eE = (
|
|
|
5278
5278
|
}, t;
|
|
5279
5279
|
}()
|
|
5280
5280
|
);
|
|
5281
|
-
function
|
|
5281
|
+
function Dn(t, e = 20) {
|
|
5282
5282
|
return t.mix("#141414", e).toString();
|
|
5283
5283
|
}
|
|
5284
5284
|
function tE(t) {
|
|
@@ -5288,21 +5288,21 @@ function tE(t) {
|
|
|
5288
5288
|
if (a) {
|
|
5289
5289
|
const i = a.match(/var\((.*?)\)/);
|
|
5290
5290
|
i && (a = window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));
|
|
5291
|
-
const o = new eE(a), s = t.dark ? o.tint(20).toString() :
|
|
5291
|
+
const o = new eE(a), s = t.dark ? o.tint(20).toString() : Dn(o, 20);
|
|
5292
5292
|
if (t.plain)
|
|
5293
5293
|
n = r.cssVarBlock({
|
|
5294
|
-
"bg-color": t.dark ?
|
|
5294
|
+
"bg-color": t.dark ? Dn(o, 90) : o.tint(90).toString(),
|
|
5295
5295
|
"text-color": a,
|
|
5296
|
-
"border-color": t.dark ?
|
|
5296
|
+
"border-color": t.dark ? Dn(o, 50) : o.tint(50).toString(),
|
|
5297
5297
|
"hover-text-color": `var(${r.cssVarName("color-white")})`,
|
|
5298
5298
|
"hover-bg-color": a,
|
|
5299
5299
|
"hover-border-color": a,
|
|
5300
5300
|
"active-bg-color": s,
|
|
5301
5301
|
"active-text-color": `var(${r.cssVarName("color-white")})`,
|
|
5302
5302
|
"active-border-color": s
|
|
5303
|
-
}), e.value && (n[r.cssVarBlockName("disabled-bg-color")] = t.dark ?
|
|
5303
|
+
}), e.value && (n[r.cssVarBlockName("disabled-bg-color")] = t.dark ? Dn(o, 90) : o.tint(90).toString(), n[r.cssVarBlockName("disabled-text-color")] = t.dark ? Dn(o, 50) : o.tint(50).toString(), n[r.cssVarBlockName("disabled-border-color")] = t.dark ? Dn(o, 80) : o.tint(80).toString());
|
|
5304
5304
|
else {
|
|
5305
|
-
const u = t.dark ?
|
|
5305
|
+
const u = t.dark ? Dn(o, 30) : o.tint(30).toString(), l = o.isDark() ? `var(${r.cssVarName("color-white")})` : `var(${r.cssVarName("color-black")})`;
|
|
5306
5306
|
if (n = r.cssVarBlock({
|
|
5307
5307
|
"bg-color": a,
|
|
5308
5308
|
"text-color": l,
|
|
@@ -5313,7 +5313,7 @@ function tE(t) {
|
|
|
5313
5313
|
"active-bg-color": s,
|
|
5314
5314
|
"active-border-color": s
|
|
5315
5315
|
}), e.value) {
|
|
5316
|
-
const c = t.dark ?
|
|
5316
|
+
const c = t.dark ? Dn(o, 50) : o.tint(50).toString();
|
|
5317
5317
|
n[r.cssVarBlockName("disabled-bg-color")] = c, n[r.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${r.cssVarName("color-white")})`, n[r.cssVarBlockName("disabled-border-color")] = c;
|
|
5318
5318
|
}
|
|
5319
5319
|
}
|
|
@@ -5410,7 +5410,7 @@ var Eh = /* @__PURE__ */ ze(sE, [["__file", "button-group.vue"]]);
|
|
|
5410
5410
|
const pn = $t(aE, {
|
|
5411
5411
|
ButtonGroup: Eh
|
|
5412
5412
|
}), lE = xn(Eh), Ln = /* @__PURE__ */ new Map();
|
|
5413
|
-
if (
|
|
5413
|
+
if (Dt) {
|
|
5414
5414
|
let t;
|
|
5415
5415
|
document.addEventListener("mousedown", (e) => t = e), document.addEventListener("mouseup", (e) => {
|
|
5416
5416
|
if (t) {
|
|
@@ -5591,7 +5591,7 @@ const vE = $t(fE), Sh = {
|
|
|
5591
5591
|
}
|
|
5592
5592
|
const h = V(() => (o == null ? void 0 : o.validateEvent) || t.validateEvent);
|
|
5593
5593
|
return Oe(() => t.modelValue, () => {
|
|
5594
|
-
h.value && (s == null || s.validate("change").catch((f) =>
|
|
5594
|
+
h.value && (s == null || s.validate("change").catch((f) => Pt(f)));
|
|
5595
5595
|
}), {
|
|
5596
5596
|
handleChange: d,
|
|
5597
5597
|
onClickRoot: v
|
|
@@ -5633,7 +5633,7 @@ const vE = $t(fE), Sh = {
|
|
|
5633
5633
|
hasOwnLabel: l,
|
|
5634
5634
|
actualValue: i
|
|
5635
5635
|
};
|
|
5636
|
-
},
|
|
5636
|
+
}, Dh = (t, e) => {
|
|
5637
5637
|
const { formItem: r } = Ta(), { model: n, isGroup: a, isLimitExceeded: i } = gE(t), {
|
|
5638
5638
|
isFocused: o,
|
|
5639
5639
|
isChecked: s,
|
|
@@ -5709,7 +5709,7 @@ const vE = $t(fE), Sh = {
|
|
|
5709
5709
|
actualValue: d,
|
|
5710
5710
|
handleChange: v,
|
|
5711
5711
|
onClickRoot: h
|
|
5712
|
-
} =
|
|
5712
|
+
} = Dh(e, r), f = Ve("checkbox"), p = V(() => [
|
|
5713
5713
|
f.b(),
|
|
5714
5714
|
f.m(u.value),
|
|
5715
5715
|
f.is("disabled", o.value),
|
|
@@ -5806,7 +5806,7 @@ const xE = de({
|
|
|
5806
5806
|
model: s,
|
|
5807
5807
|
actualValue: u,
|
|
5808
5808
|
handleChange: l
|
|
5809
|
-
} =
|
|
5809
|
+
} = Dh(e, r), c = Ke(fi, void 0), d = Ve("checkbox"), v = V(() => {
|
|
5810
5810
|
var f, p, m, g;
|
|
5811
5811
|
const y = (p = (f = c == null ? void 0 : c.fill) == null ? void 0 : f.value) != null ? p : "";
|
|
5812
5812
|
return {
|
|
@@ -5874,7 +5874,7 @@ const xE = de({
|
|
|
5874
5874
|
};
|
|
5875
5875
|
}
|
|
5876
5876
|
});
|
|
5877
|
-
var
|
|
5877
|
+
var Ph = /* @__PURE__ */ ze(CE, [["__file", "checkbox-button.vue"]]);
|
|
5878
5878
|
const EE = rt({
|
|
5879
5879
|
modelValue: {
|
|
5880
5880
|
type: Ne(Array),
|
|
@@ -5930,7 +5930,7 @@ const EE = rt({
|
|
|
5930
5930
|
modelValue: u,
|
|
5931
5931
|
changeEvent: s
|
|
5932
5932
|
}), Oe(() => r.modelValue, () => {
|
|
5933
|
-
r.validateEvent && (a == null || a.validate("change").catch((l) =>
|
|
5933
|
+
r.validateEvent && (a == null || a.validate("change").catch((l) => Pt(l)));
|
|
5934
5934
|
}), (l, c) => {
|
|
5935
5935
|
var d;
|
|
5936
5936
|
return $(), be(Jt(l.tag), {
|
|
@@ -5949,11 +5949,11 @@ const EE = rt({
|
|
|
5949
5949
|
}
|
|
5950
5950
|
});
|
|
5951
5951
|
var Oh = /* @__PURE__ */ ze(TE, [["__file", "checkbox-group.vue"]]);
|
|
5952
|
-
const
|
|
5953
|
-
CheckboxButton:
|
|
5952
|
+
const DE = $t(wE, {
|
|
5953
|
+
CheckboxButton: Ph,
|
|
5954
5954
|
CheckboxGroup: Oh
|
|
5955
5955
|
});
|
|
5956
|
-
xn(
|
|
5956
|
+
xn(Ph);
|
|
5957
5957
|
xn(Oh);
|
|
5958
5958
|
const tu = rt({
|
|
5959
5959
|
type: {
|
|
@@ -5975,7 +5975,7 @@ const tu = rt({
|
|
|
5975
5975
|
default: "light"
|
|
5976
5976
|
},
|
|
5977
5977
|
round: Boolean
|
|
5978
|
-
}),
|
|
5978
|
+
}), PE = {
|
|
5979
5979
|
close: (t) => t instanceof MouseEvent,
|
|
5980
5980
|
click: (t) => t instanceof MouseEvent
|
|
5981
5981
|
}, OE = de({
|
|
@@ -5983,7 +5983,7 @@ const tu = rt({
|
|
|
5983
5983
|
}), _E = /* @__PURE__ */ de({
|
|
5984
5984
|
...OE,
|
|
5985
5985
|
props: tu,
|
|
5986
|
-
emits:
|
|
5986
|
+
emits: PE,
|
|
5987
5987
|
setup(t, { emit: e }) {
|
|
5988
5988
|
const r = t, n = pa(), a = Ve("tag"), i = V(() => {
|
|
5989
5989
|
const { type: l, hit: c, effect: d, closable: v, round: h } = r;
|
|
@@ -6242,19 +6242,19 @@ const GE = $t(UE), WE = rt({
|
|
|
6242
6242
|
default: !1
|
|
6243
6243
|
}
|
|
6244
6244
|
});
|
|
6245
|
-
let
|
|
6245
|
+
let Dl = !1;
|
|
6246
6246
|
function eo(t, e) {
|
|
6247
|
-
if (!
|
|
6247
|
+
if (!Dt)
|
|
6248
6248
|
return;
|
|
6249
6249
|
const r = function(i) {
|
|
6250
6250
|
var o;
|
|
6251
6251
|
(o = e.drag) == null || o.call(e, i);
|
|
6252
6252
|
}, n = function(i) {
|
|
6253
6253
|
var o;
|
|
6254
|
-
document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), document.removeEventListener("touchmove", r), document.removeEventListener("touchend", n), document.onselectstart = null, document.ondragstart = null,
|
|
6254
|
+
document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), document.removeEventListener("touchmove", r), document.removeEventListener("touchend", n), document.onselectstart = null, document.ondragstart = null, Dl = !1, (o = e.end) == null || o.call(e, i);
|
|
6255
6255
|
}, a = function(i) {
|
|
6256
6256
|
var o;
|
|
6257
|
-
|
|
6257
|
+
Dl || (i.preventDefault(), document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", r), document.addEventListener("mouseup", n), document.addEventListener("touchmove", r), document.addEventListener("touchend", n), Dl = !0, (o = e.start) == null || o.call(e, i));
|
|
6258
6258
|
};
|
|
6259
6259
|
t.addEventListener("mousedown", a), t.addEventListener("touchstart", a, { passive: !1 });
|
|
6260
6260
|
}
|
|
@@ -6555,7 +6555,7 @@ const nk = rt({
|
|
|
6555
6555
|
return `${qd[e] || e}${qd[r] || r}`;
|
|
6556
6556
|
}, Kd = function({ r: t, g: e, b: r }) {
|
|
6557
6557
|
return Number.isNaN(+t) || Number.isNaN(+e) || Number.isNaN(+r) ? "" : `#${ns(t)}${ns(e)}${ns(r)}`;
|
|
6558
|
-
},
|
|
6558
|
+
}, Pl = {
|
|
6559
6559
|
A: 10,
|
|
6560
6560
|
B: 11,
|
|
6561
6561
|
C: 12,
|
|
@@ -6563,7 +6563,7 @@ const nk = rt({
|
|
|
6563
6563
|
E: 14,
|
|
6564
6564
|
F: 15
|
|
6565
6565
|
}, Jn = function(t) {
|
|
6566
|
-
return t.length === 2 ? (
|
|
6566
|
+
return t.length === 2 ? (Pl[t[0].toUpperCase()] || +t[0]) * 16 + (Pl[t[1].toUpperCase()] || +t[1]) : Pl[t[1].toUpperCase()] || +t[1];
|
|
6567
6567
|
}, sk = function(t, e, r) {
|
|
6568
6568
|
e = e / 100, r = r / 100;
|
|
6569
6569
|
let n = e;
|
|
@@ -6600,7 +6600,7 @@ const nk = rt({
|
|
|
6600
6600
|
i /= 6;
|
|
6601
6601
|
}
|
|
6602
6602
|
return { h: i * 360, s: u * 100, v: o * 100 };
|
|
6603
|
-
},
|
|
6603
|
+
}, Pi = function(t, e, r) {
|
|
6604
6604
|
t = Ka(t, 360) * 6, e = Ka(e, 100), r = Ka(r, 100);
|
|
6605
6605
|
const n = Math.floor(t), a = t - n, i = r * (1 - e), o = r * (1 - a * e), s = r * (1 - (1 - a) * e), u = n % 6, l = [r, o, i, i, s, r][u], c = [s, r, r, o, i, i][u], d = [i, i, s, r, r, o][u];
|
|
6606
6606
|
return {
|
|
@@ -6628,7 +6628,7 @@ class qi {
|
|
|
6628
6628
|
return e === "alpha" ? Math.floor(this[`_${e}`]) : this[`_${e}`];
|
|
6629
6629
|
}
|
|
6630
6630
|
toRgb() {
|
|
6631
|
-
return
|
|
6631
|
+
return Pi(this._hue, this._saturation, this._value);
|
|
6632
6632
|
}
|
|
6633
6633
|
fromString(e) {
|
|
6634
6634
|
if (!e) {
|
|
@@ -6680,11 +6680,11 @@ class qi {
|
|
|
6680
6680
|
break;
|
|
6681
6681
|
}
|
|
6682
6682
|
case "hex": {
|
|
6683
|
-
this.value = `${Kd(
|
|
6683
|
+
this.value = `${Kd(Pi(e, r, n))}${ns(a * 255 / 100)}`;
|
|
6684
6684
|
break;
|
|
6685
6685
|
}
|
|
6686
6686
|
default: {
|
|
6687
|
-
const { r: o, g: s, b: u } =
|
|
6687
|
+
const { r: o, g: s, b: u } = Pi(e, r, n);
|
|
6688
6688
|
this.value = `rgba(${o}, ${s}, ${u}, ${this.get("alpha") / 100})`;
|
|
6689
6689
|
}
|
|
6690
6690
|
}
|
|
@@ -6700,12 +6700,12 @@ class qi {
|
|
|
6700
6700
|
break;
|
|
6701
6701
|
}
|
|
6702
6702
|
case "rgb": {
|
|
6703
|
-
const { r: o, g: s, b: u } =
|
|
6703
|
+
const { r: o, g: s, b: u } = Pi(e, r, n);
|
|
6704
6704
|
this.value = `rgb(${o}, ${s}, ${u})`;
|
|
6705
6705
|
break;
|
|
6706
6706
|
}
|
|
6707
6707
|
default:
|
|
6708
|
-
this.value = Kd(
|
|
6708
|
+
this.value = Kd(Pi(e, r, n));
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
6711
|
}
|
|
@@ -6872,7 +6872,7 @@ const hk = de({
|
|
|
6872
6872
|
enableAlpha: n.showAlpha,
|
|
6873
6873
|
format: n.colorFormat || "",
|
|
6874
6874
|
value: n.modelValue
|
|
6875
|
-
})), E = ue(!1), x = ue(!1), T = ue(""), k = V(() => !n.modelValue && !x.value ? "transparent" : L(C, n.showAlpha)),
|
|
6875
|
+
})), E = ue(!1), x = ue(!1), T = ue(""), k = V(() => !n.modelValue && !x.value ? "transparent" : L(C, n.showAlpha)), D = V(() => !n.modelValue && !x.value ? "" : C.value), P = V(() => c.value ? void 0 : n.ariaLabel || a("el.colorpicker.defaultLabel")), _ = V(() => c.value ? o == null ? void 0 : o.labelId : void 0), I = V(() => [
|
|
6876
6876
|
i.b("picker"),
|
|
6877
6877
|
i.is("disabled", u.value),
|
|
6878
6878
|
i.bm("picker", s.value),
|
|
@@ -6909,7 +6909,7 @@ const hk = de({
|
|
|
6909
6909
|
}
|
|
6910
6910
|
function q() {
|
|
6911
6911
|
const N = C.value;
|
|
6912
|
-
r(zt, N), r("change", N), n.validateEvent && (o == null || o.validate("change").catch((U) =>
|
|
6912
|
+
r(zt, N), r("change", N), n.validateEvent && (o == null || o.validate("change").catch((U) => Pt(U))), F(!1), ot(() => {
|
|
6913
6913
|
const U = new qi({
|
|
6914
6914
|
enableAlpha: n.showAlpha,
|
|
6915
6915
|
format: n.colorFormat || "",
|
|
@@ -6919,7 +6919,7 @@ const hk = de({
|
|
|
6919
6919
|
});
|
|
6920
6920
|
}
|
|
6921
6921
|
function j() {
|
|
6922
|
-
F(!1), r(zt, null), r("change", null), n.modelValue !== null && n.validateEvent && (o == null || o.validate("change").catch((N) =>
|
|
6922
|
+
F(!1), r(zt, null), r("change", null), n.modelValue !== null && n.validateEvent && (o == null || o.validate("change").catch((N) => Pt(N))), R();
|
|
6923
6923
|
}
|
|
6924
6924
|
function oe() {
|
|
6925
6925
|
E.value && (A(), g.value && le());
|
|
@@ -6945,12 +6945,12 @@ const hk = de({
|
|
|
6945
6945
|
p.value.blur();
|
|
6946
6946
|
}
|
|
6947
6947
|
return Et(() => {
|
|
6948
|
-
n.modelValue && (T.value =
|
|
6948
|
+
n.modelValue && (T.value = D.value);
|
|
6949
6949
|
}), Oe(() => n.modelValue, (N) => {
|
|
6950
6950
|
N ? N && N !== C.value && (w = !1, C.fromString(N)) : x.value = !1;
|
|
6951
6951
|
}), Oe(() => [n.colorFormat, n.showAlpha], () => {
|
|
6952
6952
|
C.enableAlpha = n.showAlpha, C.format = n.colorFormat || C.format, C.doOnChange(), r(zt, C.value);
|
|
6953
|
-
}), Oe(() =>
|
|
6953
|
+
}), Oe(() => D.value, (N) => {
|
|
6954
6954
|
T.value = N, w && r("activeChange", N), w = !0;
|
|
6955
6955
|
}), Oe(() => C.value, () => {
|
|
6956
6956
|
!n.modelValue && !x.value && (x.value = !0);
|
|
@@ -6960,7 +6960,7 @@ const hk = de({
|
|
|
6960
6960
|
(N = d.value) == null || N.update(), (U = v.value) == null || U.update(), (X = h.value) == null || X.update();
|
|
6961
6961
|
});
|
|
6962
6962
|
}), Ct(Lh, {
|
|
6963
|
-
currentColor:
|
|
6963
|
+
currentColor: D
|
|
6964
6964
|
}), e({
|
|
6965
6965
|
color: C,
|
|
6966
6966
|
show: M,
|
|
@@ -7069,7 +7069,7 @@ const hk = de({
|
|
|
7069
7069
|
}, N.$attrs, {
|
|
7070
7070
|
class: O(I),
|
|
7071
7071
|
role: "button",
|
|
7072
|
-
"aria-label": O(
|
|
7072
|
+
"aria-label": O(P),
|
|
7073
7073
|
"aria-labelledby": O(_),
|
|
7074
7074
|
"aria-description": O(a)("el.colorpicker.description", { color: N.modelValue || "" }),
|
|
7075
7075
|
"aria-disabled": O(u),
|
|
@@ -7212,10 +7212,10 @@ const Sk = de({
|
|
|
7212
7212
|
}
|
|
7213
7213
|
});
|
|
7214
7214
|
var Ah = /* @__PURE__ */ ze(Tk, [["__file", "header.vue"]]);
|
|
7215
|
-
const
|
|
7215
|
+
const Dk = de({
|
|
7216
7216
|
name: "ElMain"
|
|
7217
|
-
}),
|
|
7218
|
-
...
|
|
7217
|
+
}), Pk = /* @__PURE__ */ de({
|
|
7218
|
+
...Dk,
|
|
7219
7219
|
setup(t) {
|
|
7220
7220
|
const e = Ve("main");
|
|
7221
7221
|
return (r, n) => ($(), Z("main", {
|
|
@@ -7225,7 +7225,7 @@ const Pk = de({
|
|
|
7225
7225
|
], 2));
|
|
7226
7226
|
}
|
|
7227
7227
|
});
|
|
7228
|
-
var Mh = /* @__PURE__ */ ze(
|
|
7228
|
+
var Mh = /* @__PURE__ */ ze(Pk, [["__file", "main.vue"]]);
|
|
7229
7229
|
$t(wk, {
|
|
7230
7230
|
Aside: Fh,
|
|
7231
7231
|
Footer: Ih,
|
|
@@ -7566,9 +7566,9 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7566
7566
|
afterBlur() {
|
|
7567
7567
|
k.value = !1, o.menuVisibleOnFocus = !1;
|
|
7568
7568
|
}
|
|
7569
|
-
}), k = ue(!1),
|
|
7569
|
+
}), k = ue(!1), D = ue(), { form: P, formItem: _ } = Ta(), { inputId: I } = wo(t, {
|
|
7570
7570
|
formItemContext: _
|
|
7571
|
-
}), { valueOnClear: L, isEmptyValue: B } = nx(t), F = V(() => t.disabled || (
|
|
7571
|
+
}), { valueOnClear: L, isEmptyValue: B } = nx(t), F = V(() => t.disabled || (P == null ? void 0 : P.disabled)), M = V(() => fr(t.modelValue) ? t.modelValue.length > 0 : !B(t.modelValue)), A = V(() => t.clearable && !F.value && o.inputHovering && M.value), R = V(() => t.remote && t.filterable && !t.remoteShowSuffix ? "" : t.suffixIcon), K = V(() => a.is("reverse", R.value && k.value)), H = V(() => (_ == null ? void 0 : _.validateState) || ""), q = V(() => Vv[H.value]), j = V(() => t.remote ? 300 : 0), oe = V(() => t.loading ? t.loadingText || r("el.select.loading") : t.remote && !o.inputValue && o.options.size === 0 ? !1 : t.filterable && o.inputValue && o.options.size > 0 && ie.value === 0 ? t.noMatchText || r("el.select.noMatch") : o.options.size === 0 ? t.noDataText || r("el.select.noData") : null), ie = V(() => re.value.filter((G) => G.visible).length), re = V(() => {
|
|
7572
7572
|
const G = Array.from(o.options.values()), we = [];
|
|
7573
7573
|
return o.optionValues.forEach((Ge) => {
|
|
7574
7574
|
const at = G.findIndex((qr) => qr.value === Ge);
|
|
@@ -7600,7 +7600,7 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7600
7600
|
return t.multiple || !M.value ? we : o.selectedLabel;
|
|
7601
7601
|
}), me = V(() => ql ? null : "mouseenter");
|
|
7602
7602
|
Oe(() => t.modelValue, (G, we) => {
|
|
7603
|
-
t.multiple && t.filterable && !t.reserveKeyword && (o.inputValue = "", xe("")), Ce(), !bs(G, we) && t.validateEvent && (_ == null || _.validate("change").catch((Ge) =>
|
|
7603
|
+
t.multiple && t.filterable && !t.reserveKeyword && (o.inputValue = "", xe("")), Ce(), !bs(G, we) && t.validateEvent && (_ == null || _.validate("change").catch((Ge) => Pt(Ge)));
|
|
7604
7604
|
}, {
|
|
7605
7605
|
flush: "post",
|
|
7606
7606
|
deep: !0
|
|
@@ -7608,15 +7608,15 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7608
7608
|
G ? xe(o.inputValue) : (o.inputValue = "", o.previousQuery = null, o.isBeforeHide = !0), e("visible-change", G);
|
|
7609
7609
|
}), Oe(() => o.options.entries(), () => {
|
|
7610
7610
|
var G;
|
|
7611
|
-
if (!
|
|
7611
|
+
if (!Dt)
|
|
7612
7612
|
return;
|
|
7613
7613
|
const we = ((G = s.value) == null ? void 0 : G.querySelectorAll("input")) || [];
|
|
7614
7614
|
(!t.filterable && !t.defaultFirstOption && !Mn(t.modelValue) || !Array.from(we).includes(document.activeElement)) && Ce(), t.defaultFirstOption && (t.filterable || t.remote) && ie.value && ke();
|
|
7615
7615
|
}, {
|
|
7616
7616
|
flush: "post"
|
|
7617
7617
|
}), Oe(() => o.hoveringIndex, (G) => {
|
|
7618
|
-
qt(G) && G > -1 ?
|
|
7619
|
-
we.hover =
|
|
7618
|
+
qt(G) && G > -1 ? D.value = re.value[G] || {} : D.value = {}, re.value.forEach((we) => {
|
|
7619
|
+
we.hover = D.value === we;
|
|
7620
7620
|
});
|
|
7621
7621
|
}), pv(() => {
|
|
7622
7622
|
o.isBeforeHide || N();
|
|
@@ -7625,20 +7625,20 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7625
7625
|
o.previousQuery === G || b.value || (o.previousQuery = G, t.filterable && lr(t.filterMethod) ? t.filterMethod(G) : t.filterable && t.remote && lr(t.remoteMethod) && t.remoteMethod(G), t.defaultFirstOption && (t.filterable || t.remote) && ie.value ? ot(ke) : ot(He));
|
|
7626
7626
|
}, ke = () => {
|
|
7627
7627
|
const G = re.value.filter((at) => at.visible && !at.disabled && !at.states.groupDisabled), we = G.find((at) => at.created), Ge = G[0];
|
|
7628
|
-
o.hoveringIndex =
|
|
7628
|
+
o.hoveringIndex = De(re.value, we || Ge);
|
|
7629
7629
|
}, Ce = () => {
|
|
7630
7630
|
if (t.multiple)
|
|
7631
7631
|
o.selectedLabel = "";
|
|
7632
7632
|
else {
|
|
7633
|
-
const we = fr(t.modelValue) ? t.modelValue[0] : t.modelValue, Ge =
|
|
7633
|
+
const we = fr(t.modelValue) ? t.modelValue[0] : t.modelValue, Ge = Pe(we);
|
|
7634
7634
|
o.selectedLabel = Ge.currentLabel, o.selected = [Ge];
|
|
7635
7635
|
return;
|
|
7636
7636
|
}
|
|
7637
7637
|
const G = [];
|
|
7638
7638
|
Mn(t.modelValue) || In(t.modelValue).forEach((we) => {
|
|
7639
|
-
G.push(
|
|
7639
|
+
G.push(Pe(we));
|
|
7640
7640
|
}), o.selected = G;
|
|
7641
|
-
},
|
|
7641
|
+
}, Pe = (G) => {
|
|
7642
7642
|
let we;
|
|
7643
7643
|
const Ge = gl(G).toLowerCase() === "object", at = gl(G).toLowerCase() === "null", qr = gl(G).toLowerCase() === "undefined";
|
|
7644
7644
|
for (let on = o.cachedOptions.size - 1; on >= 0; on--) {
|
|
@@ -7711,14 +7711,14 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7711
7711
|
}, Ae = (G) => {
|
|
7712
7712
|
var we;
|
|
7713
7713
|
if (t.multiple) {
|
|
7714
|
-
const Ge = In((we = t.modelValue) != null ? we : []).slice(), at =
|
|
7714
|
+
const Ge = In((we = t.modelValue) != null ? we : []).slice(), at = De(Ge, G.value);
|
|
7715
7715
|
at > -1 ? Ge.splice(at, 1) : (t.multipleLimit <= 0 || Ge.length < t.multipleLimit) && Ge.push(G.value), e(zt, Ge), W(Ge), G.created && xe(""), t.filterable && !t.reserveKeyword && (o.inputValue = "");
|
|
7716
7716
|
} else
|
|
7717
7717
|
e(zt, G.value), W(G.value), k.value = !1;
|
|
7718
7718
|
kt(), !k.value && ot(() => {
|
|
7719
7719
|
Be(G);
|
|
7720
7720
|
});
|
|
7721
|
-
},
|
|
7721
|
+
}, De = (G = [], we) => {
|
|
7722
7722
|
if (!Ht(we))
|
|
7723
7723
|
return G.indexOf(we);
|
|
7724
7724
|
const Ge = t.valueKey;
|
|
@@ -7770,7 +7770,7 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7770
7770
|
if (!(o.options.size === 0 || o.filteredOptionsCount === 0 || b.value) && !jt.value) {
|
|
7771
7771
|
G === "next" ? (o.hoveringIndex++, o.hoveringIndex === o.options.size && (o.hoveringIndex = 0)) : G === "prev" && (o.hoveringIndex--, o.hoveringIndex < 0 && (o.hoveringIndex = o.options.size - 1));
|
|
7772
7772
|
const we = re.value[o.hoveringIndex];
|
|
7773
|
-
(we.disabled === !0 || we.states.groupDisabled === !0 || !we.visible) && ur(G), ot(() => Be(
|
|
7773
|
+
(we.disabled === !0 || we.states.groupDisabled === !0 || !we.visible) && ur(G), ot(() => Be(D.value));
|
|
7774
7774
|
}
|
|
7775
7775
|
}, wt = () => {
|
|
7776
7776
|
if (!u.value)
|
|
@@ -7794,7 +7794,7 @@ const Kk = 11, Uk = (t, e) => {
|
|
|
7794
7794
|
isFocused: T,
|
|
7795
7795
|
expanded: k,
|
|
7796
7796
|
optionsArray: re,
|
|
7797
|
-
hoverOption:
|
|
7797
|
+
hoverOption: D,
|
|
7798
7798
|
selectSize: U,
|
|
7799
7799
|
filteredOptionsCount: ie,
|
|
7800
7800
|
resetCalculatorWidth: Me,
|
|
@@ -9081,8 +9081,8 @@ function hS({ props: t, ctx: e, el$: r, dropIndicator$: n, store: a }) {
|
|
|
9081
9081
|
let T = -9999;
|
|
9082
9082
|
const k = c.clientY - b.top;
|
|
9083
9083
|
k < b.height * E ? C = "before" : k > b.height * x ? C = "after" : m ? C = "inner" : C = "none";
|
|
9084
|
-
const
|
|
9085
|
-
C === "before" ? T =
|
|
9084
|
+
const D = v.$el.querySelector(`.${i.be("node", "expand-icon")}`).getBoundingClientRect(), P = n.value;
|
|
9085
|
+
C === "before" ? T = D.top - w.top : C === "after" && (T = D.bottom - w.top), P.style.top = `${T}px`, P.style.left = `${D.right - w.left}px`, C === "inner" ? Xl(v.$el, i.is("drop-inner")) : ca(v.$el, i.is("drop-inner")), o.value.showDropIndicator = C === "before" || C === "after", o.value.allowDrop = o.value.showDropIndicator || y, o.value.dropType = C, e.emit("node-drag-over", f.node, v.node, c);
|
|
9086
9086
|
},
|
|
9087
9087
|
treeNodeDragEnd: (c) => {
|
|
9088
9088
|
const { draggingNode: d, dropType: v, dropNode: h } = o.value;
|
|
@@ -9103,7 +9103,7 @@ const pS = de({
|
|
|
9103
9103
|
name: "ElTreeNode",
|
|
9104
9104
|
components: {
|
|
9105
9105
|
ElCollapseTransition: GE,
|
|
9106
|
-
ElCheckbox:
|
|
9106
|
+
ElCheckbox: DE,
|
|
9107
9107
|
NodeContent: vS,
|
|
9108
9108
|
ElIcon: Vt,
|
|
9109
9109
|
Loading: Lu
|
|
@@ -9128,7 +9128,7 @@ const pS = de({
|
|
|
9128
9128
|
emits: ["node-expand"],
|
|
9129
9129
|
setup(t, e) {
|
|
9130
9130
|
const r = Ve("tree"), { broadcastExpanded: n } = $h(t), a = Ke("RootTree"), i = ue(!1), o = ue(!1), s = ue(null), u = ue(null), l = ue(null), c = Ke(Rh), d = gt();
|
|
9131
|
-
Ct("NodeInstance", d), a ||
|
|
9131
|
+
Ct("NodeInstance", d), a || Pt("Tree", "Can not find node's tree."), t.node.expanded && (i.value = !0, o.value = !0);
|
|
9132
9132
|
const v = a.props.props.children || "children";
|
|
9133
9133
|
Oe(() => {
|
|
9134
9134
|
const k = t.node.data[v];
|
|
@@ -9143,18 +9143,18 @@ const pS = de({
|
|
|
9143
9143
|
ot(() => i.value = k), k && (o.value = !0);
|
|
9144
9144
|
});
|
|
9145
9145
|
const h = (k) => ec(a.props.nodeKey, k.data), f = (k) => {
|
|
9146
|
-
const
|
|
9147
|
-
if (!
|
|
9146
|
+
const D = t.props.class;
|
|
9147
|
+
if (!D)
|
|
9148
9148
|
return {};
|
|
9149
|
-
let
|
|
9150
|
-
if (lr(
|
|
9149
|
+
let P;
|
|
9150
|
+
if (lr(D)) {
|
|
9151
9151
|
const { data: _ } = k;
|
|
9152
|
-
|
|
9152
|
+
P = D(_, k);
|
|
9153
9153
|
} else
|
|
9154
|
-
|
|
9155
|
-
return er(
|
|
9156
|
-
}, p = (k,
|
|
9157
|
-
(s.value !== k || u.value !==
|
|
9154
|
+
P = D;
|
|
9155
|
+
return er(P) ? { [P]: !0 } : P;
|
|
9156
|
+
}, p = (k, D) => {
|
|
9157
|
+
(s.value !== k || u.value !== D) && a.ctx.emit("check-change", t.node.data, k, D), s.value = k, u.value = D;
|
|
9158
9158
|
}, m = (k) => {
|
|
9159
9159
|
ru(a.store, a.ctx.emit, () => a.store.value.setCurrentNode(t.node)), a.currentNode.value = t.node, a.props.expandOnClickNode && y(), a.props.checkOnClickNode && !t.node.disabled && b(null, {
|
|
9160
9160
|
target: { checked: !t.node.checked }
|
|
@@ -9165,14 +9165,14 @@ const pS = de({
|
|
|
9165
9165
|
t.node.isLeaf || (i.value ? (a.ctx.emit("node-collapse", t.node.data, t.node, d), t.node.collapse()) : t.node.expand(() => {
|
|
9166
9166
|
e.emit("node-expand", t.node.data, t.node, d);
|
|
9167
9167
|
}));
|
|
9168
|
-
}, b = (k,
|
|
9169
|
-
t.node.setChecked(
|
|
9170
|
-
const
|
|
9168
|
+
}, b = (k, D) => {
|
|
9169
|
+
t.node.setChecked(D.target.checked, !a.props.checkStrictly), ot(() => {
|
|
9170
|
+
const P = a.store.value;
|
|
9171
9171
|
a.ctx.emit("check", t.node.data, {
|
|
9172
|
-
checkedNodes:
|
|
9173
|
-
checkedKeys:
|
|
9174
|
-
halfCheckedNodes:
|
|
9175
|
-
halfCheckedKeys:
|
|
9172
|
+
checkedNodes: P.getCheckedNodes(),
|
|
9173
|
+
checkedKeys: P.getCheckedKeys(),
|
|
9174
|
+
halfCheckedNodes: P.getHalfCheckedNodes(),
|
|
9175
|
+
halfCheckedKeys: P.getHalfCheckedKeys()
|
|
9176
9176
|
});
|
|
9177
9177
|
});
|
|
9178
9178
|
};
|
|
@@ -9191,8 +9191,8 @@ const pS = de({
|
|
|
9191
9191
|
handleContextMenu: g,
|
|
9192
9192
|
handleExpandIconClick: y,
|
|
9193
9193
|
handleCheckChange: b,
|
|
9194
|
-
handleChildNodeExpand: (k,
|
|
9195
|
-
n(
|
|
9194
|
+
handleChildNodeExpand: (k, D, P) => {
|
|
9195
|
+
n(D), a.ctx.emit("node-expand", k, D, P);
|
|
9196
9196
|
},
|
|
9197
9197
|
handleDragStart: (k) => {
|
|
9198
9198
|
a.props.draggable && c.treeNodeDragStart({ event: k, treeNode: t });
|
|
@@ -9532,13 +9532,13 @@ const bS = de({
|
|
|
9532
9532
|
ru(i, e.emit, () => {
|
|
9533
9533
|
c(A), i.value.setUserCurrentNode(A, R);
|
|
9534
9534
|
});
|
|
9535
|
-
},
|
|
9535
|
+
}, D = (A, R = !0) => {
|
|
9536
9536
|
if (!t.nodeKey)
|
|
9537
9537
|
throw new Error("[Tree] nodeKey is required in setCurrentKey");
|
|
9538
9538
|
ru(i, e.emit, () => {
|
|
9539
9539
|
c(), i.value.setCurrentNodeKey(A, R);
|
|
9540
9540
|
});
|
|
9541
|
-
},
|
|
9541
|
+
}, P = (A) => i.value.getNode(A), _ = (A) => {
|
|
9542
9542
|
i.value.remove(A);
|
|
9543
9543
|
}, I = (A, R) => {
|
|
9544
9544
|
i.value.append(A, R);
|
|
@@ -9582,9 +9582,9 @@ const bS = de({
|
|
|
9582
9582
|
getHalfCheckedNodes: x,
|
|
9583
9583
|
getHalfCheckedKeys: T,
|
|
9584
9584
|
setCurrentNode: k,
|
|
9585
|
-
setCurrentKey:
|
|
9585
|
+
setCurrentKey: D,
|
|
9586
9586
|
t: r,
|
|
9587
|
-
getNode:
|
|
9587
|
+
getNode: P,
|
|
9588
9588
|
remove: _,
|
|
9589
9589
|
append: I,
|
|
9590
9590
|
insertBefore: L,
|
|
@@ -9717,7 +9717,7 @@ function ES(t) {
|
|
|
9717
9717
|
});
|
|
9718
9718
|
};
|
|
9719
9719
|
}
|
|
9720
|
-
}), c =
|
|
9720
|
+
}), c = D0(l), d = c.mount(document.createElement("div"));
|
|
9721
9721
|
return {
|
|
9722
9722
|
...ho(n),
|
|
9723
9723
|
setText: a,
|
|
@@ -9732,7 +9732,7 @@ function ES(t) {
|
|
|
9732
9732
|
}
|
|
9733
9733
|
let Vo;
|
|
9734
9734
|
const kS = function(t = {}) {
|
|
9735
|
-
if (!
|
|
9735
|
+
if (!Dt)
|
|
9736
9736
|
return;
|
|
9737
9737
|
const e = SS(t);
|
|
9738
9738
|
if (e.fullscreen && Vo)
|
|
@@ -9805,7 +9805,7 @@ const kS = function(t = {}) {
|
|
|
9805
9805
|
options: d,
|
|
9806
9806
|
instance: kS(d)
|
|
9807
9807
|
};
|
|
9808
|
-
},
|
|
9808
|
+
}, DS = (t, e) => {
|
|
9809
9809
|
for (const r of Object.keys(e))
|
|
9810
9810
|
Za(e[r]) && (e[r].value = t[r]);
|
|
9811
9811
|
}, tc = {
|
|
@@ -9814,7 +9814,7 @@ const kS = function(t = {}) {
|
|
|
9814
9814
|
},
|
|
9815
9815
|
updated(t, e) {
|
|
9816
9816
|
const r = t[as];
|
|
9817
|
-
e.oldValue !== e.value && (e.value && !e.oldValue ? Zd(t, e) : e.value && e.oldValue ? Ht(e.value) &&
|
|
9817
|
+
e.oldValue !== e.value && (e.value && !e.oldValue ? Zd(t, e) : e.value && e.oldValue ? Ht(e.value) && DS(e.value, r.options) : r == null || r.instance.close());
|
|
9818
9818
|
},
|
|
9819
9819
|
unmounted(t) {
|
|
9820
9820
|
var e;
|
|
@@ -9825,7 +9825,7 @@ const kS = function(t = {}) {
|
|
|
9825
9825
|
for (const [n, a] of e)
|
|
9826
9826
|
r[n] = a;
|
|
9827
9827
|
return r;
|
|
9828
|
-
},
|
|
9828
|
+
}, PS = function(t) {
|
|
9829
9829
|
return t ? t.charAt(0).toUpperCase() + t.slice(1) : "";
|
|
9830
9830
|
}, OS = {
|
|
9831
9831
|
name: "ConnectionDialog",
|
|
@@ -9853,7 +9853,7 @@ const kS = function(t = {}) {
|
|
|
9853
9853
|
return this.tooltipId === t ? "always" : "hover";
|
|
9854
9854
|
},
|
|
9855
9855
|
capitalise: function(t) {
|
|
9856
|
-
return
|
|
9856
|
+
return PS(t);
|
|
9857
9857
|
},
|
|
9858
9858
|
handleTooltip: function(t) {
|
|
9859
9859
|
this.tooltipId = this.tooltipId === t ? void 0 : t, this.$emit("featureTooltip", this.tooltipId);
|
|
@@ -10931,7 +10931,7 @@ function QS(t, e, r, n, a, i) {
|
|
|
10931
10931
|
]) : pe("", !0)
|
|
10932
10932
|
]);
|
|
10933
10933
|
}
|
|
10934
|
-
const
|
|
10934
|
+
const gF = /* @__PURE__ */ rn(XS, [["render", QS], ["__scopeId", "data-v-6ac1a744"]]), JS = {
|
|
10935
10935
|
name: "HelpModeDialog",
|
|
10936
10936
|
props: {
|
|
10937
10937
|
/**
|
|
@@ -11114,7 +11114,7 @@ function nT(t, e, r, n, a, i) {
|
|
|
11114
11114
|
], 64))
|
|
11115
11115
|
], 2);
|
|
11116
11116
|
}
|
|
11117
|
-
const
|
|
11117
|
+
const mF = /* @__PURE__ */ rn(JS, [["render", nT], ["__scopeId", "data-v-3efb89fb"]]);
|
|
11118
11118
|
function aT(t) {
|
|
11119
11119
|
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, r) {
|
|
11120
11120
|
var n = t.get(e);
|
|
@@ -11280,7 +11280,7 @@ const lT = /* @__PURE__ */ rn(iT, [["render", sT], ["__scopeId", "data-v-4f8d8b0
|
|
|
11280
11280
|
}, bT = /* @__PURE__ */ vi(() => /* @__PURE__ */ J("span", { class: "attribute-title" }, "Alert", -1)), wT = { style: { "word-break": "keep-all" } }, xT = { class: "content-container scrollbar" }, CT = {
|
|
11281
11281
|
key: 0,
|
|
11282
11282
|
class: "block"
|
|
11283
|
-
}, ET = { class: "attribute-title-container" }, kT = /* @__PURE__ */ vi(() => /* @__PURE__ */ J("span", { class: "attribute-title" }, "Origin", -1)), ST = { style: { "word-break": "keep-all" } }, TT = /* @__PURE__ */ vi(() => /* @__PURE__ */ J("i", null, "Origin", -1)),
|
|
11283
|
+
}, ET = { class: "attribute-title-container" }, kT = /* @__PURE__ */ vi(() => /* @__PURE__ */ J("span", { class: "attribute-title" }, "Origin", -1)), ST = { style: { "word-break": "keep-all" } }, TT = /* @__PURE__ */ vi(() => /* @__PURE__ */ J("i", null, "Origin", -1)), DT = ["origin-item-label"], PT = {
|
|
11284
11284
|
key: 0,
|
|
11285
11285
|
class: "separator"
|
|
11286
11286
|
}, OT = {
|
|
@@ -11398,8 +11398,8 @@ function RT(t, e, r, n, a, i) {
|
|
|
11398
11398
|
key: f
|
|
11399
11399
|
}, [
|
|
11400
11400
|
We(Re(i.capitalise(f)) + " ", 1),
|
|
11401
|
-
p != r.tooltipEntry.origins.length - 1 ? ($(), Z("div",
|
|
11402
|
-
], 8,
|
|
11401
|
+
p != r.tooltipEntry.origins.length - 1 ? ($(), Z("div", PT)) : pe("", !0)
|
|
11402
|
+
], 8, DT))), 128)),
|
|
11403
11403
|
je(ce(d, {
|
|
11404
11404
|
class: "button",
|
|
11405
11405
|
id: "open-dendrites-button",
|
|
@@ -11627,7 +11627,7 @@ const zT = /* @__PURE__ */ rn(dT, [["render", RT], ["__scopeId", "data-v-ef9a0f6
|
|
|
11627
11627
|
e.name && e.email && e.canUpdate ? (this.creator = e, e.orcid || (this.creator.orcid = "0000-0000-0000-0000"), this.authenticated = !0, this.updatePrevSubmissions()) : this.errorMessage = "";
|
|
11628
11628
|
});
|
|
11629
11629
|
}
|
|
11630
|
-
},
|
|
11630
|
+
}, Da = (t) => (Ms("data-v-09c78af1"), t = t(), Bs(), t), HT = { class: "block" }, qT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("div", { class: "title" }, "Feature Annotations", -1)), KT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("strong", { class: "sub-title" }, "Previous submissions:", -1)), UT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("strong", null, "Evidence: ", -1)), GT = ["href"], WT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("strong", null, "Comment: ", -1)), YT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("strong", { class: "sub-title" }, "Suggest changes:", -1)), XT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("strong", null, "Evidence:", -1)), ZT = /* @__PURE__ */ Da(() => /* @__PURE__ */ J("strong", null, "Comment:", -1)), jT = { class: "sub-title" };
|
|
11631
11631
|
function QT(t, e, r, n, a, i) {
|
|
11632
11632
|
const o = Zu, s = Rv, u = Vt, l = Ks, c = u2, d = s2, v = d2, h = ju, f = xs, p = eS, m = Jk, g = vh, y = pn, b = Ok;
|
|
11633
11633
|
return $(), be(b, { class: "main" }, {
|
|
@@ -11935,7 +11935,7 @@ function r5(t, e, r, n, a, i) {
|
|
|
11935
11935
|
}, null, 8, ["tooltipEntry"]))
|
|
11936
11936
|
]);
|
|
11937
11937
|
}
|
|
11938
|
-
const
|
|
11938
|
+
const yF = /* @__PURE__ */ rn(e5, [["render", r5], ["__scopeId", "data-v-229b3988"]]), n5 = {
|
|
11939
11939
|
name: "TreeControls",
|
|
11940
11940
|
props: {
|
|
11941
11941
|
/**
|
|
@@ -12164,7 +12164,7 @@ function f5(t, e, r, n, a, i) {
|
|
|
12164
12164
|
], 512)
|
|
12165
12165
|
]);
|
|
12166
12166
|
}
|
|
12167
|
-
const
|
|
12167
|
+
const bF = /* @__PURE__ */ rn(n5, [["render", f5], ["__scopeId", "data-v-aa649eae"]]), jd = "Copy to clipboard", v5 = "Copied!", h5 = "#8300bf", p5 = {
|
|
12168
12168
|
name: "CopyToClipboard",
|
|
12169
12169
|
props: {
|
|
12170
12170
|
content: {
|
|
@@ -12244,7 +12244,7 @@ function m5(t, e, r, n, a, i) {
|
|
|
12244
12244
|
_: 1
|
|
12245
12245
|
}, 8, ["content", "hide-after", "onHide"]);
|
|
12246
12246
|
}
|
|
12247
|
-
const
|
|
12247
|
+
const wF = /* @__PURE__ */ rn(p5, [["render", m5], ["__scopeId", "data-v-de3b5311"]]);
|
|
12248
12248
|
function It(t) {
|
|
12249
12249
|
"@babel/helpers - typeof";
|
|
12250
12250
|
return It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -12395,13 +12395,13 @@ var C5 = It(""), Sp = It({}), E5 = It(function() {
|
|
|
12395
12395
|
return Eo(e) === "collection" && !e._private.single;
|
|
12396
12396
|
}, oc = function(e) {
|
|
12397
12397
|
return Eo(e) === "core";
|
|
12398
|
-
},
|
|
12398
|
+
}, Dp = function(e) {
|
|
12399
12399
|
return Eo(e) === "stylesheet";
|
|
12400
|
-
},
|
|
12400
|
+
}, D5 = function(e) {
|
|
12401
12401
|
return Eo(e) === "event";
|
|
12402
12402
|
}, qn = function(e) {
|
|
12403
12403
|
return e == null ? !0 : !!(e === "" || e.match(/^\s+$/));
|
|
12404
|
-
},
|
|
12404
|
+
}, P5 = function(e) {
|
|
12405
12405
|
return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement;
|
|
12406
12406
|
}, O5 = function(e) {
|
|
12407
12407
|
return Xe(e) && ye(e.x1) && ye(e.x2) && ye(e.y1) && ye(e.y2);
|
|
@@ -12432,7 +12432,7 @@ var C5 = It(""), Sp = It({}), E5 = It(function() {
|
|
|
12432
12432
|
return t.replace(/(-\w)/g, function(e) {
|
|
12433
12433
|
return e[1].toUpperCase();
|
|
12434
12434
|
});
|
|
12435
|
-
}),
|
|
12435
|
+
}), Pp = to(function(t, e) {
|
|
12436
12436
|
return t + e[0].toUpperCase() + e.substring(1);
|
|
12437
12437
|
}, function(t, e) {
|
|
12438
12438
|
return t + "$" + e;
|
|
@@ -12732,8 +12732,8 @@ function k4(t) {
|
|
|
12732
12732
|
var r = x4.test(t);
|
|
12733
12733
|
return r || C4.test(t) ? E4(t.slice(2), r ? 2 : 8) : w4.test(t) ? rf : +t;
|
|
12734
12734
|
}
|
|
12735
|
-
var nf = k4, S4 = "Expected a function", T4 = Math.max,
|
|
12736
|
-
function
|
|
12735
|
+
var nf = k4, S4 = "Expected a function", T4 = Math.max, D4 = Math.min;
|
|
12736
|
+
function P4(t, e, r) {
|
|
12737
12737
|
var n, a, i, o, s, u, l = 0, c = !1, d = !1, v = !0;
|
|
12738
12738
|
if (typeof t != "function")
|
|
12739
12739
|
throw new TypeError(S4);
|
|
@@ -12747,7 +12747,7 @@ function D4(t, e, r) {
|
|
|
12747
12747
|
}
|
|
12748
12748
|
function p(E) {
|
|
12749
12749
|
var x = E - u, T = E - l, k = e - x;
|
|
12750
|
-
return d ?
|
|
12750
|
+
return d ? D4(k, i - T) : k;
|
|
12751
12751
|
}
|
|
12752
12752
|
function m(E) {
|
|
12753
12753
|
var x = E - u, T = E - l;
|
|
@@ -12780,7 +12780,7 @@ function D4(t, e, r) {
|
|
|
12780
12780
|
}
|
|
12781
12781
|
return C.cancel = b, C.flush = w, C;
|
|
12782
12782
|
}
|
|
12783
|
-
var Qs =
|
|
12783
|
+
var Qs = P4, Ll = _t ? _t.performance : null, Ap = Ll && Ll.now ? function() {
|
|
12784
12784
|
return Ll.now();
|
|
12785
12785
|
} : function() {
|
|
12786
12786
|
return Date.now();
|
|
@@ -12822,7 +12822,7 @@ var Qs = D4, Ll = _t ? _t.performance : null, Ap = Ll && Ll.now ? function() {
|
|
|
12822
12822
|
return (r << 5) + r + e | 0;
|
|
12823
12823
|
}, _4 = function(e, r) {
|
|
12824
12824
|
return e * 2097152 + r;
|
|
12825
|
-
},
|
|
12825
|
+
}, Pn = function(e) {
|
|
12826
12826
|
return e[0] * 2097152 + e[1];
|
|
12827
12827
|
}, Ho = function(e, r) {
|
|
12828
12828
|
return [ro(e[0], r[0]), no(e[1], r[1])];
|
|
@@ -12915,9 +12915,9 @@ var Qs = D4, Ll = _t ? _t.performance : null, Ap = Ll && Ll.now ? function() {
|
|
|
12915
12915
|
e.push(a);
|
|
12916
12916
|
}
|
|
12917
12917
|
}, Br = function(e, r, n) {
|
|
12918
|
-
return n && (r =
|
|
12918
|
+
return n && (r = Pp(n, r)), e[r];
|
|
12919
12919
|
}, An = function(e, r, n, a) {
|
|
12920
|
-
n && (r =
|
|
12920
|
+
n && (r = Pp(n, r)), e[r] = a;
|
|
12921
12921
|
}, R4 = /* @__PURE__ */ function() {
|
|
12922
12922
|
function t() {
|
|
12923
12923
|
ac(this, t), this._obj = {};
|
|
@@ -13156,8 +13156,8 @@ var Qs = D4, Ll = _t ? _t.performance : null, Ap = Ll && Ll.now ? function() {
|
|
|
13156
13156
|
break;
|
|
13157
13157
|
}
|
|
13158
13158
|
for (var T = s.collection(), k = 0; k < c.length; k++) {
|
|
13159
|
-
var
|
|
13160
|
-
|
|
13159
|
+
var D = c[k], P = d[D.id()];
|
|
13160
|
+
P != null && T.push(P), T.push(D);
|
|
13161
13161
|
}
|
|
13162
13162
|
return {
|
|
13163
13163
|
path: s.collection(T),
|
|
@@ -13201,7 +13201,7 @@ var H4 = G5(function(t, e) {
|
|
|
13201
13201
|
var b, w, C, E, x, T;
|
|
13202
13202
|
for (y == null && (y = n), E = (function() {
|
|
13203
13203
|
T = [];
|
|
13204
|
-
for (var k = 0,
|
|
13204
|
+
for (var k = 0, D = a(g.length / 2); 0 <= D ? k < D : k > D; 0 <= D ? k++ : k--)
|
|
13205
13205
|
T.push(k);
|
|
13206
13206
|
return T;
|
|
13207
13207
|
}).apply(this).reverse(), x = [], w = 0, C = E.length; w < C; w++)
|
|
@@ -13219,15 +13219,15 @@ var H4 = G5(function(t, e) {
|
|
|
13219
13219
|
w = T[E], u(C, w, b);
|
|
13220
13220
|
return C.sort(b).reverse();
|
|
13221
13221
|
}, h = function(g, y, b) {
|
|
13222
|
-
var w, C, E, x, T, k,
|
|
13222
|
+
var w, C, E, x, T, k, D, P, _;
|
|
13223
13223
|
if (b == null && (b = n), y * 10 <= g.length) {
|
|
13224
13224
|
if (E = g.slice(0, y).sort(b), !E.length)
|
|
13225
13225
|
return E;
|
|
13226
|
-
for (C = E[E.length - 1],
|
|
13227
|
-
w =
|
|
13226
|
+
for (C = E[E.length - 1], D = g.slice(y), x = 0, k = D.length; x < k; x++)
|
|
13227
|
+
w = D[x], b(w, C) < 0 && (c(E, w, 0, null, b), E.pop(), C = E[E.length - 1]);
|
|
13228
13228
|
return E;
|
|
13229
13229
|
}
|
|
13230
|
-
for (i(g, b), _ = [], T = 0,
|
|
13230
|
+
for (i(g, b), _ = [], T = 0, P = d(y, g.length); 0 <= P ? T < P : T > P; 0 <= P ? ++T : --T)
|
|
13231
13231
|
_.push(o(g, b));
|
|
13232
13232
|
return _;
|
|
13233
13233
|
}, p = function(g, y, b, w) {
|
|
@@ -13326,9 +13326,9 @@ var H4 = G5(function(t, e) {
|
|
|
13326
13326
|
}; y.size() > 0; ) {
|
|
13327
13327
|
var E = y.pop(), x = m(E), T = E.id();
|
|
13328
13328
|
if (v[T] = x, x !== 1 / 0)
|
|
13329
|
-
for (var k = E.neighborhood().intersect(f),
|
|
13330
|
-
var
|
|
13331
|
-
L < m(
|
|
13329
|
+
for (var k = E.neighborhood().intersect(f), D = 0; D < k.length; D++) {
|
|
13330
|
+
var P = k[D], _ = P.id(), I = C(E, P), L = x + I.dist;
|
|
13331
|
+
L < m(P) && (g(P, L), d[_] = {
|
|
13332
13332
|
node: E,
|
|
13333
13333
|
edge: I.edge
|
|
13334
13334
|
});
|
|
@@ -13400,8 +13400,8 @@ var H4 = G5(function(t, e) {
|
|
|
13400
13400
|
y(a, l), d[l] = 0, v[l] = o(a);
|
|
13401
13401
|
for (var x = 0; f.size() > 0; ) {
|
|
13402
13402
|
if (C(), x++, w === c) {
|
|
13403
|
-
for (var T = [], k = i,
|
|
13404
|
-
|
|
13403
|
+
for (var T = [], k = i, D = c, P = g[D]; T.unshift(k), P != null && T.unshift(P), k = m[D], k != null; )
|
|
13404
|
+
D = k.id(), P = g[D];
|
|
13405
13405
|
return {
|
|
13406
13406
|
found: !0,
|
|
13407
13407
|
distance: d[w],
|
|
@@ -13451,10 +13451,10 @@ var H4 = G5(function(t, e) {
|
|
|
13451
13451
|
for (var y = new Array(d), b = new Array(d), w = 0; w < l.length; w++) {
|
|
13452
13452
|
var C = l[w], E = C.source()[0], x = C.target()[0];
|
|
13453
13453
|
if (E !== x) {
|
|
13454
|
-
var T = v(E), k = v(x),
|
|
13455
|
-
if (f[
|
|
13454
|
+
var T = v(E), k = v(x), D = T * c + k, P = o(C);
|
|
13455
|
+
if (f[D] > P && (f[D] = P, y[D] = k, b[D] = C), !i) {
|
|
13456
13456
|
var _ = k * c + T;
|
|
13457
|
-
!i && f[_] >
|
|
13457
|
+
!i && f[_] > P && (f[_] = P, y[_] = T, b[_] = C);
|
|
13458
13458
|
}
|
|
13459
13459
|
}
|
|
13460
13460
|
}
|
|
@@ -13502,18 +13502,18 @@ var H4 = G5(function(t, e) {
|
|
|
13502
13502
|
return ke.isLoop();
|
|
13503
13503
|
});
|
|
13504
13504
|
for (var g = d.length, y = function(Ce) {
|
|
13505
|
-
var
|
|
13506
|
-
return
|
|
13505
|
+
var Pe = f.get(Ce.id());
|
|
13506
|
+
return Pe || (Pe = {}, f.set(Ce.id(), Pe)), Pe;
|
|
13507
13507
|
}, b = function(Ce) {
|
|
13508
13508
|
return (Fe(Ce) ? l.$(Ce) : Ce)[0];
|
|
13509
13509
|
}, w = function(Ce) {
|
|
13510
13510
|
return y(b(Ce)).dist;
|
|
13511
13511
|
}, C = function(Ce) {
|
|
13512
|
-
for (var
|
|
13512
|
+
for (var Pe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o, He = b(Ce), qe = [], Me = He; ; ) {
|
|
13513
13513
|
if (Me == null)
|
|
13514
13514
|
return r.spawn();
|
|
13515
13515
|
var Ue = y(Me), se = Ue.edge, S = Ue.pred;
|
|
13516
|
-
if (qe.unshift(Me[0]), Me.same(
|
|
13516
|
+
if (qe.unshift(Me[0]), Me.same(Pe) && qe.length > 0)
|
|
13517
13517
|
break;
|
|
13518
13518
|
se != null && qe.unshift(se), Me = S;
|
|
13519
13519
|
}
|
|
@@ -13522,14 +13522,14 @@ var H4 = G5(function(t, e) {
|
|
|
13522
13522
|
var x = v[E], T = y(x);
|
|
13523
13523
|
x.same(o) ? T.dist = 0 : T.dist = 1 / 0, T.pred = null, T.edge = null;
|
|
13524
13524
|
}
|
|
13525
|
-
for (var k = !1,
|
|
13525
|
+
for (var k = !1, D = function(Ce, Pe, He, qe, Me, Ue) {
|
|
13526
13526
|
var se = qe.dist + Ue;
|
|
13527
13527
|
se < Me.dist && !He.same(qe.edge) && (Me.dist = se, Me.pred = Ce, Me.edge = He, k = !0);
|
|
13528
|
-
},
|
|
13528
|
+
}, P = 1; P < h; P++) {
|
|
13529
13529
|
k = !1;
|
|
13530
13530
|
for (var _ = 0; _ < g; _++) {
|
|
13531
13531
|
var I = d[_], L = I.source(), B = I.target(), F = s(I), M = y(L), A = y(B);
|
|
13532
|
-
|
|
13532
|
+
D(L, B, I, M, A, F), i || D(B, L, I, A, M, F);
|
|
13533
13533
|
}
|
|
13534
13534
|
if (!k)
|
|
13535
13535
|
break;
|
|
@@ -13615,9 +13615,9 @@ var H4 = G5(function(t, e) {
|
|
|
13615
13615
|
}
|
|
13616
13616
|
for (var T = this.spawn(h.map(function(A) {
|
|
13617
13617
|
return a[A[0]];
|
|
13618
|
-
})), k = this.spawn(),
|
|
13618
|
+
})), k = this.spawn(), D = this.spawn(), P = f[0], _ = 0; _ < f.length; _++) {
|
|
13619
13619
|
var I = f[_], L = n[_];
|
|
13620
|
-
I ===
|
|
13620
|
+
I === P ? k.merge(L) : D.merge(L);
|
|
13621
13621
|
}
|
|
13622
13622
|
var B = function(R) {
|
|
13623
13623
|
var K = e.spawn();
|
|
@@ -13626,13 +13626,13 @@ var H4 = G5(function(t, e) {
|
|
|
13626
13626
|
e.contains(q) && !T.contains(q) && K.merge(q);
|
|
13627
13627
|
});
|
|
13628
13628
|
}), K;
|
|
13629
|
-
}, F = [B(k), B(
|
|
13629
|
+
}, F = [B(k), B(D)], M = {
|
|
13630
13630
|
cut: T,
|
|
13631
13631
|
components: F,
|
|
13632
13632
|
// n.b. partitions are included to be compatible with the old api spec
|
|
13633
13633
|
// (could be removed in a future major version)
|
|
13634
13634
|
partition1: k,
|
|
13635
|
-
partition2:
|
|
13635
|
+
partition2: D
|
|
13636
13636
|
};
|
|
13637
13637
|
return M;
|
|
13638
13638
|
}
|
|
@@ -13819,13 +13819,13 @@ var H4 = G5(function(t, e) {
|
|
|
13819
13819
|
return f;
|
|
13820
13820
|
}
|
|
13821
13821
|
if (v) {
|
|
13822
|
-
var x = n - c + l - s, T = a + d + s, k = n + c - l + s,
|
|
13823
|
-
if (f = Nn(e, r, n, a, x, T, k,
|
|
13822
|
+
var x = n - c + l - s, T = a + d + s, k = n + c - l + s, D = T;
|
|
13823
|
+
if (f = Nn(e, r, n, a, x, T, k, D, !1), f.length > 0)
|
|
13824
13824
|
return f;
|
|
13825
13825
|
}
|
|
13826
13826
|
if (h) {
|
|
13827
|
-
var
|
|
13828
|
-
if (f = Nn(e, r, n, a,
|
|
13827
|
+
var P = n - c - s, _ = a - d + l - s, I = P, L = a + d - l + s;
|
|
13828
|
+
if (f = Nn(e, r, n, a, P, _, I, L, !1), f.length > 0)
|
|
13829
13829
|
return f;
|
|
13830
13830
|
}
|
|
13831
13831
|
var B;
|
|
@@ -13907,8 +13907,8 @@ var H4 = G5(function(t, e) {
|
|
|
13907
13907
|
c[f * 2] = o / 2 * (n[f * 2] * v - n[f * 2 + 1] * h), c[f * 2 + 1] = s / 2 * (n[f * 2 + 1] * v + n[f * 2] * h), c[f * 2] += a, c[f * 2 + 1] += i;
|
|
13908
13908
|
var p;
|
|
13909
13909
|
if (l > 0) {
|
|
13910
|
-
var m =
|
|
13911
|
-
p =
|
|
13910
|
+
var m = Ps(c, -l);
|
|
13911
|
+
p = Ds(m);
|
|
13912
13912
|
} else
|
|
13913
13913
|
p = c;
|
|
13914
13914
|
return dr(e, r, p);
|
|
@@ -13921,14 +13921,14 @@ var H4 = G5(function(t, e) {
|
|
|
13921
13921
|
return !0;
|
|
13922
13922
|
}
|
|
13923
13923
|
return dr(e, r, l);
|
|
13924
|
-
},
|
|
13924
|
+
}, Ds = function(e) {
|
|
13925
13925
|
for (var r = new Array(e.length / 2), n, a, i, o, s, u, l, c, d = 0; d < e.length / 4; d++) {
|
|
13926
13926
|
n = e[d * 4], a = e[d * 4 + 1], i = e[d * 4 + 2], o = e[d * 4 + 3], d < e.length / 4 - 1 ? (s = e[(d + 1) * 4], u = e[(d + 1) * 4 + 1], l = e[(d + 1) * 4 + 2], c = e[(d + 1) * 4 + 3]) : (s = e[0], u = e[1], l = e[2], c = e[3]);
|
|
13927
13927
|
var v = Nn(n, a, i, o, s, u, l, c, !0);
|
|
13928
13928
|
r[d * 2] = v[0], r[d * 2 + 1] = v[1];
|
|
13929
13929
|
}
|
|
13930
13930
|
return r;
|
|
13931
|
-
},
|
|
13931
|
+
}, Ps = function(e, r) {
|
|
13932
13932
|
for (var n = new Array(e.length * 2), a, i, o, s, u = 0; u < e.length / 2; u++) {
|
|
13933
13933
|
a = e[u * 2], i = e[u * 2 + 1], u < e.length / 2 - 1 ? (o = e[(u + 1) * 2], s = e[(u + 1) * 2 + 1]) : (o = e[0], s = e[1]);
|
|
13934
13934
|
var l = s - i, c = -(o - a), d = Math.sqrt(l * l + c * c), v = l / d, h = c / d;
|
|
@@ -13977,8 +13977,8 @@ var H4 = G5(function(t, e) {
|
|
|
13977
13977
|
for (var f = 0; f < d.length / 2; f++)
|
|
13978
13978
|
d[f * 2] = n[f * 2] * o + a, d[f * 2 + 1] = n[f * 2 + 1] * s + i;
|
|
13979
13979
|
if (u > 0) {
|
|
13980
|
-
var p =
|
|
13981
|
-
h =
|
|
13980
|
+
var p = Ps(d, -u);
|
|
13981
|
+
h = Ds(p);
|
|
13982
13982
|
} else
|
|
13983
13983
|
h = d;
|
|
13984
13984
|
} else
|
|
@@ -14055,8 +14055,8 @@ var H4 = G5(function(t, e) {
|
|
|
14055
14055
|
for (var w = 0; w < h; w++) {
|
|
14056
14056
|
var C = c[w], E = C.data("source"), x = C.data("target");
|
|
14057
14057
|
if (E !== x) {
|
|
14058
|
-
var T = l.indexOfId(E), k = l.indexOfId(x),
|
|
14059
|
-
f[
|
|
14058
|
+
var T = l.indexOfId(E), k = l.indexOfId(x), D = o(C), P = k * d + T;
|
|
14059
|
+
f[P] += D, p[T] += D;
|
|
14060
14060
|
}
|
|
14061
14061
|
}
|
|
14062
14062
|
for (var _ = 1 / d + m, I = 0; I < d; I++)
|
|
@@ -14235,9 +14235,9 @@ var T3 = Wt({
|
|
|
14235
14235
|
for (var p = function(b) {
|
|
14236
14236
|
for (var w = s[b].id(), C = [], E = {}, x = {}, T = {}, k = new To(function(ie, re) {
|
|
14237
14237
|
return T[ie] - T[re];
|
|
14238
|
-
}),
|
|
14239
|
-
var
|
|
14240
|
-
E[
|
|
14238
|
+
}), D = 0; D < s.length; D++) {
|
|
14239
|
+
var P = s[D].id();
|
|
14240
|
+
E[P] = [], x[P] = 0, T[P] = 1 / 0;
|
|
14241
14241
|
}
|
|
14242
14242
|
for (x[w] = 1, T[w] = 0, k.push(w); !k.empty(); ) {
|
|
14243
14243
|
var _ = k.pop();
|
|
@@ -14282,7 +14282,7 @@ var T3 = Wt({
|
|
|
14282
14282
|
// betweennessCentrality
|
|
14283
14283
|
};
|
|
14284
14284
|
lu.bc = lu.betweennessCentrality;
|
|
14285
|
-
var
|
|
14285
|
+
var D3 = Wt({
|
|
14286
14286
|
expandFactor: 2,
|
|
14287
14287
|
// affects time of computation and cluster granularity to some extent: M * M
|
|
14288
14288
|
inflateFactor: 2,
|
|
@@ -14297,8 +14297,8 @@ var P3 = Wt({
|
|
|
14297
14297
|
return 1;
|
|
14298
14298
|
}
|
|
14299
14299
|
]
|
|
14300
|
-
}),
|
|
14301
|
-
return
|
|
14300
|
+
}), P3 = function(e) {
|
|
14301
|
+
return D3(e);
|
|
14302
14302
|
}, O3 = function(e, r) {
|
|
14303
14303
|
for (var n = 0, a = 0; a < r.length; a++)
|
|
14304
14304
|
n += r[a](e);
|
|
@@ -14356,7 +14356,7 @@ var P3 = Wt({
|
|
|
14356
14356
|
r != n && B3(e[r], e[n]) && e.splice(n, 1);
|
|
14357
14357
|
return e;
|
|
14358
14358
|
}, df = function(e) {
|
|
14359
|
-
for (var r = this.nodes(), n = this.edges(), a = this.cy(), i =
|
|
14359
|
+
for (var r = this.nodes(), n = this.edges(), a = this.cy(), i = P3(e), o = {}, s = 0; s < r.length; s++)
|
|
14360
14360
|
o[r[s].id()] = s;
|
|
14361
14361
|
for (var u = r.length, l = u * u, c = new Array(l), d, v = 0; v < l; v++)
|
|
14362
14362
|
c[v] = 0;
|
|
@@ -14602,16 +14602,16 @@ var H3 = Wt({
|
|
|
14602
14602
|
}), J3 = {
|
|
14603
14603
|
single: "min",
|
|
14604
14604
|
complete: "max"
|
|
14605
|
-
},
|
|
14605
|
+
}, eD = function(e) {
|
|
14606
14606
|
var r = Q3(e), n = J3[r.linkage];
|
|
14607
14607
|
return n != null && (r.linkage = n), r;
|
|
14608
14608
|
}, mf = function(e, r, n, a, i) {
|
|
14609
|
-
for (var o = 0, s = 1 / 0, u, l = i.attributes, c = function(k,
|
|
14610
|
-
return tl(i.distance, l.length, function(
|
|
14611
|
-
return l[
|
|
14612
|
-
}, function(
|
|
14613
|
-
return l[
|
|
14614
|
-
}, k,
|
|
14609
|
+
for (var o = 0, s = 1 / 0, u, l = i.attributes, c = function(k, D) {
|
|
14610
|
+
return tl(i.distance, l.length, function(P) {
|
|
14611
|
+
return l[P](k);
|
|
14612
|
+
}, function(P) {
|
|
14613
|
+
return l[P](D);
|
|
14614
|
+
}, k, D);
|
|
14615
14615
|
}, d = 0; d < e.length; d++) {
|
|
14616
14616
|
var v = e[d].key, h = n[v][a[v]];
|
|
14617
14617
|
h < s && (o = v, s = h);
|
|
@@ -14645,7 +14645,7 @@ var H3 = Wt({
|
|
|
14645
14645
|
return f.key = p.key = f.index = p.index = null, !0;
|
|
14646
14646
|
}, Uo = function t(e, r, n) {
|
|
14647
14647
|
e && (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r)));
|
|
14648
|
-
},
|
|
14648
|
+
}, tD = function t(e, r) {
|
|
14649
14649
|
if (!e) return "";
|
|
14650
14650
|
if (e.left && e.right) {
|
|
14651
14651
|
var n = t(e.left, r), a = t(e.right, r), i = r.add({
|
|
@@ -14669,12 +14669,12 @@ var H3 = Wt({
|
|
|
14669
14669
|
}), i.id();
|
|
14670
14670
|
} else if (e.value)
|
|
14671
14671
|
return e.value.id();
|
|
14672
|
-
},
|
|
14672
|
+
}, rD = function t(e, r, n) {
|
|
14673
14673
|
if (!e) return [];
|
|
14674
14674
|
var a = [], i = [], o = [];
|
|
14675
14675
|
return r === 0 ? (e.left && Uo(e.left, a), e.right && Uo(e.right, i), o = a.concat(i), [n.collection(o)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && Uo(e.left, a), e.right && Uo(e.right, i), [n.collection(a), n.collection(i)]) : e.value ? [n.collection(e.value)] : (e.left && (a = t(e.left, r - 1, n)), e.right && (i = t(e.right, r - 1, n)), a.concat(i));
|
|
14676
14676
|
}, yf = function(e) {
|
|
14677
|
-
for (var r = this.cy(), n = this.nodes(), a =
|
|
14677
|
+
for (var r = this.cy(), n = this.nodes(), a = eD(e), i = a.attributes, o = function(b, w) {
|
|
14678
14678
|
return tl(a.distance, i.length, function(C) {
|
|
14679
14679
|
return i[C](b);
|
|
14680
14680
|
}, function(C) {
|
|
@@ -14696,13 +14696,13 @@ var H3 = Wt({
|
|
|
14696
14696
|
for (var m = mf(s, c, u, l, a); m; )
|
|
14697
14697
|
m = mf(s, c, u, l, a);
|
|
14698
14698
|
var g;
|
|
14699
|
-
return a.mode === "dendrogram" ? (g =
|
|
14699
|
+
return a.mode === "dendrogram" ? (g = rD(s[0], a.dendrogramDepth, r), a.addDendrogram && tD(s[0], r)) : (g = new Array(s.length), s.forEach(function(y, b) {
|
|
14700
14700
|
y.key = y.index = null, g[b] = r.collection(y.value);
|
|
14701
14701
|
})), g;
|
|
14702
|
-
},
|
|
14702
|
+
}, nD = {
|
|
14703
14703
|
hierarchicalClustering: yf,
|
|
14704
14704
|
hca: yf
|
|
14705
|
-
},
|
|
14705
|
+
}, aD = Wt({
|
|
14706
14706
|
distance: "euclidean",
|
|
14707
14707
|
// distance metric to compare attributes between two nodes
|
|
14708
14708
|
preference: "median",
|
|
@@ -14717,7 +14717,7 @@ var H3 = Wt({
|
|
|
14717
14717
|
// functions to quantify the similarity between any two points
|
|
14718
14718
|
// e.g. node => node.data('weight')
|
|
14719
14719
|
]
|
|
14720
|
-
}),
|
|
14720
|
+
}), iD = function(e) {
|
|
14721
14721
|
var r = e.damping, n = e.preference;
|
|
14722
14722
|
0.5 <= r && r < 1 || mt("Damping must range on [0.5, 1). Got: ".concat(r));
|
|
14723
14723
|
var a = ["median", "mean", "min", "max"];
|
|
@@ -14725,8 +14725,8 @@ var H3 = Wt({
|
|
|
14725
14725
|
return i === n;
|
|
14726
14726
|
}) || ye(n) || mt("Preference must be one of [".concat(a.map(function(i) {
|
|
14727
14727
|
return "'".concat(i, "'");
|
|
14728
|
-
}).join(", "), "] or a number. Got: ").concat(n)),
|
|
14729
|
-
},
|
|
14728
|
+
}).join(", "), "] or a number. Got: ").concat(n)), aD(e);
|
|
14729
|
+
}, oD = function(e, r, n, a) {
|
|
14730
14730
|
var i = function(s, u) {
|
|
14731
14731
|
return a[u](s);
|
|
14732
14732
|
};
|
|
@@ -14735,10 +14735,10 @@ var H3 = Wt({
|
|
|
14735
14735
|
}, function(o) {
|
|
14736
14736
|
return i(n, o);
|
|
14737
14737
|
}, r, n);
|
|
14738
|
-
},
|
|
14738
|
+
}, sD = function(e, r) {
|
|
14739
14739
|
var n = null;
|
|
14740
14740
|
return r === "median" ? n = i3(e) : r === "mean" ? n = a3(e) : r === "min" ? n = r3(e) : r === "max" ? n = n3(e) : n = r, n;
|
|
14741
|
-
},
|
|
14741
|
+
}, lD = function(e, r, n) {
|
|
14742
14742
|
for (var a = [], i = 0; i < e; i++)
|
|
14743
14743
|
r[i * e + i] + n[i * e + i] > 0 && a.push(i);
|
|
14744
14744
|
return a;
|
|
@@ -14753,7 +14753,7 @@ var H3 = Wt({
|
|
|
14753
14753
|
for (var c = 0; c < n.length; c++)
|
|
14754
14754
|
a[n[c]] = n[c];
|
|
14755
14755
|
return a;
|
|
14756
|
-
},
|
|
14756
|
+
}, uD = function(e, r, n) {
|
|
14757
14757
|
for (var a = bf(e, r, n), i = 0; i < n.length; i++) {
|
|
14758
14758
|
for (var o = [], s = 0; s < a.length; s++)
|
|
14759
14759
|
a[s] === n[i] && o.push(s);
|
|
@@ -14766,7 +14766,7 @@ var H3 = Wt({
|
|
|
14766
14766
|
}
|
|
14767
14767
|
return a = bf(e, r, n), a;
|
|
14768
14768
|
}, wf = function(e) {
|
|
14769
|
-
for (var r = this.cy(), n = this.nodes(), a =
|
|
14769
|
+
for (var r = this.cy(), n = this.nodes(), a = iD(e), i = {}, o = 0; o < n.length; o++)
|
|
14770
14770
|
i[n[o].id()] = o;
|
|
14771
14771
|
var s, u, l, c, d, v;
|
|
14772
14772
|
s = n.length, u = s * s, l = new Array(u);
|
|
@@ -14774,8 +14774,8 @@ var H3 = Wt({
|
|
|
14774
14774
|
l[h] = -1 / 0;
|
|
14775
14775
|
for (var f = 0; f < s; f++)
|
|
14776
14776
|
for (var p = 0; p < s; p++)
|
|
14777
|
-
f !== p && (l[f * s + p] =
|
|
14778
|
-
c =
|
|
14777
|
+
f !== p && (l[f * s + p] = oD(a.distance, n[f], n[p], a.attributes));
|
|
14778
|
+
c = sD(l, a.preference);
|
|
14779
14779
|
for (var m = 0; m < s; m++)
|
|
14780
14780
|
l[m * s + m] = c;
|
|
14781
14781
|
d = new Array(u);
|
|
@@ -14790,12 +14790,12 @@ var H3 = Wt({
|
|
|
14790
14790
|
x[T] = 0;
|
|
14791
14791
|
var k;
|
|
14792
14792
|
for (k = 0; k < a.maxIterations; k++) {
|
|
14793
|
-
for (var
|
|
14794
|
-
for (var
|
|
14795
|
-
b[B] = d[
|
|
14793
|
+
for (var D = 0; D < s; D++) {
|
|
14794
|
+
for (var P = -1 / 0, _ = -1 / 0, I = -1, L = 0, B = 0; B < s; B++)
|
|
14795
|
+
b[B] = d[D * s + B], L = v[D * s + B] + l[D * s + B], L >= P ? (_ = P, P = L, I = B) : L > _ && (_ = L);
|
|
14796
14796
|
for (var F = 0; F < s; F++)
|
|
14797
|
-
d[
|
|
14798
|
-
d[
|
|
14797
|
+
d[D * s + F] = (1 - a.damping) * (l[D * s + F] - P) + a.damping * b[F];
|
|
14798
|
+
d[D * s + I] = (1 - a.damping) * (l[D * s + I] - _) + a.damping * b[I];
|
|
14799
14799
|
}
|
|
14800
14800
|
for (var M = 0; M < s; M++) {
|
|
14801
14801
|
for (var A = 0, R = 0; R < s; R++)
|
|
@@ -14820,7 +14820,7 @@ var H3 = Wt({
|
|
|
14820
14820
|
break;
|
|
14821
14821
|
}
|
|
14822
14822
|
}
|
|
14823
|
-
for (var le =
|
|
14823
|
+
for (var le = lD(s, d, v), Q = uD(s, l, le), N = {}, U = 0; U < le.length; U++)
|
|
14824
14824
|
N[le[U]] = [];
|
|
14825
14825
|
for (var X = 0; X < n.length; X++) {
|
|
14826
14826
|
var ge = i[n[X].id()], Ee = Q[ge];
|
|
@@ -14829,13 +14829,13 @@ var H3 = Wt({
|
|
|
14829
14829
|
for (var fe = new Array(le.length), me = 0; me < le.length; me++)
|
|
14830
14830
|
fe[me] = r.collection(N[le[me]]);
|
|
14831
14831
|
return fe;
|
|
14832
|
-
},
|
|
14832
|
+
}, cD = {
|
|
14833
14833
|
affinityPropagation: wf,
|
|
14834
14834
|
ap: wf
|
|
14835
|
-
},
|
|
14835
|
+
}, dD = Wt({
|
|
14836
14836
|
root: void 0,
|
|
14837
14837
|
directed: !1
|
|
14838
|
-
}),
|
|
14838
|
+
}), fD = {
|
|
14839
14839
|
hierholzer: function(e) {
|
|
14840
14840
|
if (!Xe(e)) {
|
|
14841
14841
|
var r = arguments;
|
|
@@ -14844,7 +14844,7 @@ var H3 = Wt({
|
|
|
14844
14844
|
directed: r[1]
|
|
14845
14845
|
};
|
|
14846
14846
|
}
|
|
14847
|
-
var n =
|
|
14847
|
+
var n = dD(e), a = n.root, i = n.directed, o = this, s = !1, u, l, c;
|
|
14848
14848
|
a && (c = Fe(a) ? this.filter(a)[0].id() : a[0].id());
|
|
14849
14849
|
var d = {}, v = {};
|
|
14850
14850
|
i ? o.forEach(function(y) {
|
|
@@ -14948,7 +14948,7 @@ var H3 = Wt({
|
|
|
14948
14948
|
cut: e.spawn(c),
|
|
14949
14949
|
components: i
|
|
14950
14950
|
};
|
|
14951
|
-
},
|
|
14951
|
+
}, vD = {
|
|
14952
14952
|
hopcroftTarjanBiconnected: Go,
|
|
14953
14953
|
htbc: Go,
|
|
14954
14954
|
htb: Go,
|
|
@@ -14983,13 +14983,13 @@ var H3 = Wt({
|
|
|
14983
14983
|
cut: o,
|
|
14984
14984
|
components: a
|
|
14985
14985
|
};
|
|
14986
|
-
},
|
|
14986
|
+
}, hD = {
|
|
14987
14987
|
tarjanStronglyConnected: Wo,
|
|
14988
14988
|
tsc: Wo,
|
|
14989
14989
|
tscc: Wo,
|
|
14990
14990
|
tarjanStronglyConnectedComponents: Wo
|
|
14991
14991
|
}, Jp = {};
|
|
14992
|
-
[ao, K4, U4, W4, X4, j4, e3, S3, Wa, Ya, lu, $3, j3,
|
|
14992
|
+
[ao, K4, U4, W4, X4, j4, e3, S3, Wa, Ya, lu, $3, j3, nD, cD, fD, vD, hD].forEach(function(t) {
|
|
14993
14993
|
$e(Jp, t);
|
|
14994
14994
|
});
|
|
14995
14995
|
/*!
|
|
@@ -15043,10 +15043,10 @@ var xf = function(e, r, n, a) {
|
|
|
15043
15043
|
r.reject(o);
|
|
15044
15044
|
return;
|
|
15045
15045
|
}
|
|
15046
|
-
|
|
15046
|
+
pD(r, i);
|
|
15047
15047
|
}
|
|
15048
15048
|
};
|
|
15049
|
-
},
|
|
15049
|
+
}, pD = function t(e, r) {
|
|
15050
15050
|
if (e === r || e.proxy === r) {
|
|
15051
15051
|
e.reject(new TypeError("cannot resolve promise with itself"));
|
|
15052
15052
|
return;
|
|
@@ -15218,7 +15218,7 @@ $e(wa, {
|
|
|
15218
15218
|
wa.complete = wa.completed;
|
|
15219
15219
|
wa.run = wa.play;
|
|
15220
15220
|
wa.running = wa.playing;
|
|
15221
|
-
var
|
|
15221
|
+
var gD = {
|
|
15222
15222
|
animated: function() {
|
|
15223
15223
|
return function() {
|
|
15224
15224
|
var r = this, n = r.length !== void 0, a = n ? r : [r], i = this._private.cy || this;
|
|
@@ -15343,32 +15343,32 @@ var gP = {
|
|
|
15343
15343
|
};
|
|
15344
15344
|
}
|
|
15345
15345
|
// stop
|
|
15346
|
-
},
|
|
15347
|
-
function
|
|
15346
|
+
}, mD = Array.isArray, rl = mD, yD = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, bD = /^\w*$/;
|
|
15347
|
+
function wD(t, e) {
|
|
15348
15348
|
if (rl(t))
|
|
15349
15349
|
return !1;
|
|
15350
15350
|
var r = typeof t;
|
|
15351
|
-
return r == "number" || r == "symbol" || r == "boolean" || t == null || So(t) ? !0 :
|
|
15351
|
+
return r == "number" || r == "symbol" || r == "boolean" || t == null || So(t) ? !0 : bD.test(t) || !yD.test(t) || e != null && t in Object(e);
|
|
15352
15352
|
}
|
|
15353
|
-
var
|
|
15354
|
-
function
|
|
15353
|
+
var xD = wD, CD = "[object AsyncFunction]", ED = "[object Function]", kD = "[object GeneratorFunction]", SD = "[object Proxy]";
|
|
15354
|
+
function TD(t) {
|
|
15355
15355
|
if (!ga(t))
|
|
15356
15356
|
return !1;
|
|
15357
15357
|
var e = Ip(t);
|
|
15358
|
-
return e ==
|
|
15358
|
+
return e == ED || e == kD || e == CD || e == SD;
|
|
15359
15359
|
}
|
|
15360
|
-
var
|
|
15360
|
+
var DD = TD, PD = js["__core-js_shared__"], Ml = PD, kf = function() {
|
|
15361
15361
|
var t = /[^.]+$/.exec(Ml && Ml.keys && Ml.keys.IE_PROTO || "");
|
|
15362
15362
|
return t ? "Symbol(src)_1." + t : "";
|
|
15363
15363
|
}();
|
|
15364
|
-
function
|
|
15364
|
+
function OD(t) {
|
|
15365
15365
|
return !!kf && kf in t;
|
|
15366
15366
|
}
|
|
15367
|
-
var
|
|
15368
|
-
function
|
|
15367
|
+
var _D = OD, LD = Function.prototype, FD = LD.toString;
|
|
15368
|
+
function ID(t) {
|
|
15369
15369
|
if (t != null) {
|
|
15370
15370
|
try {
|
|
15371
|
-
return
|
|
15371
|
+
return FD.call(t);
|
|
15372
15372
|
} catch {
|
|
15373
15373
|
}
|
|
15374
15374
|
try {
|
|
@@ -15378,53 +15378,53 @@ function IP(t) {
|
|
|
15378
15378
|
}
|
|
15379
15379
|
return "";
|
|
15380
15380
|
}
|
|
15381
|
-
var
|
|
15382
|
-
"^" +
|
|
15381
|
+
var AD = ID, MD = /[\\^$.*+?()[\]{}|]/g, BD = /^\[object .+?Constructor\]$/, ND = Function.prototype, $D = Object.prototype, RD = ND.toString, zD = $D.hasOwnProperty, VD = RegExp(
|
|
15382
|
+
"^" + RD.call(zD).replace(MD, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
15383
15383
|
);
|
|
15384
|
-
function
|
|
15385
|
-
if (!ga(t) ||
|
|
15384
|
+
function HD(t) {
|
|
15385
|
+
if (!ga(t) || _D(t))
|
|
15386
15386
|
return !1;
|
|
15387
|
-
var e =
|
|
15388
|
-
return e.test(
|
|
15387
|
+
var e = DD(t) ? VD : BD;
|
|
15388
|
+
return e.test(AD(t));
|
|
15389
15389
|
}
|
|
15390
|
-
var
|
|
15391
|
-
function
|
|
15390
|
+
var qD = HD;
|
|
15391
|
+
function KD(t, e) {
|
|
15392
15392
|
return t == null ? void 0 : t[e];
|
|
15393
15393
|
}
|
|
15394
|
-
var
|
|
15395
|
-
function
|
|
15396
|
-
var r =
|
|
15397
|
-
return
|
|
15394
|
+
var UD = KD;
|
|
15395
|
+
function GD(t, e) {
|
|
15396
|
+
var r = UD(t, e);
|
|
15397
|
+
return qD(r) ? r : void 0;
|
|
15398
15398
|
}
|
|
15399
|
-
var pc =
|
|
15400
|
-
function
|
|
15399
|
+
var pc = GD, WD = pc(Object, "create"), so = WD;
|
|
15400
|
+
function YD() {
|
|
15401
15401
|
this.__data__ = so ? so(null) : {}, this.size = 0;
|
|
15402
15402
|
}
|
|
15403
|
-
var
|
|
15404
|
-
function
|
|
15403
|
+
var XD = YD;
|
|
15404
|
+
function ZD(t) {
|
|
15405
15405
|
var e = this.has(t) && delete this.__data__[t];
|
|
15406
15406
|
return this.size -= e ? 1 : 0, e;
|
|
15407
15407
|
}
|
|
15408
|
-
var
|
|
15409
|
-
function
|
|
15408
|
+
var jD = ZD, QD = "__lodash_hash_undefined__", JD = Object.prototype, eP = JD.hasOwnProperty;
|
|
15409
|
+
function tP(t) {
|
|
15410
15410
|
var e = this.__data__;
|
|
15411
15411
|
if (so) {
|
|
15412
15412
|
var r = e[t];
|
|
15413
|
-
return r ===
|
|
15413
|
+
return r === QD ? void 0 : r;
|
|
15414
15414
|
}
|
|
15415
|
-
return
|
|
15415
|
+
return eP.call(e, t) ? e[t] : void 0;
|
|
15416
15416
|
}
|
|
15417
|
-
var
|
|
15418
|
-
function
|
|
15417
|
+
var rP = tP, nP = Object.prototype, aP = nP.hasOwnProperty;
|
|
15418
|
+
function iP(t) {
|
|
15419
15419
|
var e = this.__data__;
|
|
15420
|
-
return so ? e[t] !== void 0 :
|
|
15420
|
+
return so ? e[t] !== void 0 : aP.call(e, t);
|
|
15421
15421
|
}
|
|
15422
|
-
var
|
|
15423
|
-
function
|
|
15422
|
+
var oP = iP, sP = "__lodash_hash_undefined__";
|
|
15423
|
+
function lP(t, e) {
|
|
15424
15424
|
var r = this.__data__;
|
|
15425
|
-
return this.size += this.has(t) ? 0 : 1, r[t] = so && e === void 0 ?
|
|
15425
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = so && e === void 0 ? sP : e, this;
|
|
15426
15426
|
}
|
|
15427
|
-
var
|
|
15427
|
+
var uP = lP;
|
|
15428
15428
|
function gi(t) {
|
|
15429
15429
|
var e = -1, r = t == null ? 0 : t.length;
|
|
15430
15430
|
for (this.clear(); ++e < r; ) {
|
|
@@ -15432,49 +15432,49 @@ function gi(t) {
|
|
|
15432
15432
|
this.set(n[0], n[1]);
|
|
15433
15433
|
}
|
|
15434
15434
|
}
|
|
15435
|
-
gi.prototype.clear =
|
|
15436
|
-
gi.prototype.delete =
|
|
15437
|
-
gi.prototype.get =
|
|
15438
|
-
gi.prototype.has =
|
|
15439
|
-
gi.prototype.set =
|
|
15435
|
+
gi.prototype.clear = XD;
|
|
15436
|
+
gi.prototype.delete = jD;
|
|
15437
|
+
gi.prototype.get = rP;
|
|
15438
|
+
gi.prototype.has = oP;
|
|
15439
|
+
gi.prototype.set = uP;
|
|
15440
15440
|
var Sf = gi;
|
|
15441
|
-
function
|
|
15441
|
+
function cP() {
|
|
15442
15442
|
this.__data__ = [], this.size = 0;
|
|
15443
15443
|
}
|
|
15444
|
-
var
|
|
15445
|
-
function
|
|
15444
|
+
var dP = cP;
|
|
15445
|
+
function fP(t, e) {
|
|
15446
15446
|
return t === e || t !== t && e !== e;
|
|
15447
15447
|
}
|
|
15448
|
-
var ag =
|
|
15449
|
-
function
|
|
15448
|
+
var ag = fP;
|
|
15449
|
+
function vP(t, e) {
|
|
15450
15450
|
for (var r = t.length; r--; )
|
|
15451
15451
|
if (ag(t[r][0], e))
|
|
15452
15452
|
return r;
|
|
15453
15453
|
return -1;
|
|
15454
15454
|
}
|
|
15455
|
-
var nl =
|
|
15456
|
-
function
|
|
15455
|
+
var nl = vP, hP = Array.prototype, pP = hP.splice;
|
|
15456
|
+
function gP(t) {
|
|
15457
15457
|
var e = this.__data__, r = nl(e, t);
|
|
15458
15458
|
if (r < 0)
|
|
15459
15459
|
return !1;
|
|
15460
15460
|
var n = e.length - 1;
|
|
15461
|
-
return r == n ? e.pop() :
|
|
15461
|
+
return r == n ? e.pop() : pP.call(e, r, 1), --this.size, !0;
|
|
15462
15462
|
}
|
|
15463
|
-
var
|
|
15464
|
-
function
|
|
15463
|
+
var mP = gP;
|
|
15464
|
+
function yP(t) {
|
|
15465
15465
|
var e = this.__data__, r = nl(e, t);
|
|
15466
15466
|
return r < 0 ? void 0 : e[r][1];
|
|
15467
15467
|
}
|
|
15468
|
-
var
|
|
15469
|
-
function
|
|
15468
|
+
var bP = yP;
|
|
15469
|
+
function wP(t) {
|
|
15470
15470
|
return nl(this.__data__, t) > -1;
|
|
15471
15471
|
}
|
|
15472
|
-
var
|
|
15473
|
-
function
|
|
15472
|
+
var xP = wP;
|
|
15473
|
+
function CP(t, e) {
|
|
15474
15474
|
var r = this.__data__, n = nl(r, t);
|
|
15475
15475
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
15476
15476
|
}
|
|
15477
|
-
var
|
|
15477
|
+
var EP = CP;
|
|
15478
15478
|
function mi(t) {
|
|
15479
15479
|
var e = -1, r = t == null ? 0 : t.length;
|
|
15480
15480
|
for (this.clear(); ++e < r; ) {
|
|
@@ -15482,48 +15482,48 @@ function mi(t) {
|
|
|
15482
15482
|
this.set(n[0], n[1]);
|
|
15483
15483
|
}
|
|
15484
15484
|
}
|
|
15485
|
-
mi.prototype.clear =
|
|
15486
|
-
mi.prototype.delete =
|
|
15487
|
-
mi.prototype.get =
|
|
15488
|
-
mi.prototype.has =
|
|
15489
|
-
mi.prototype.set =
|
|
15490
|
-
var
|
|
15491
|
-
function
|
|
15485
|
+
mi.prototype.clear = dP;
|
|
15486
|
+
mi.prototype.delete = mP;
|
|
15487
|
+
mi.prototype.get = bP;
|
|
15488
|
+
mi.prototype.has = xP;
|
|
15489
|
+
mi.prototype.set = EP;
|
|
15490
|
+
var kP = mi, SP = pc(js, "Map"), TP = SP;
|
|
15491
|
+
function DP() {
|
|
15492
15492
|
this.size = 0, this.__data__ = {
|
|
15493
15493
|
hash: new Sf(),
|
|
15494
|
-
map: new (
|
|
15494
|
+
map: new (TP || kP)(),
|
|
15495
15495
|
string: new Sf()
|
|
15496
15496
|
};
|
|
15497
15497
|
}
|
|
15498
|
-
var
|
|
15499
|
-
function
|
|
15498
|
+
var PP = DP;
|
|
15499
|
+
function OP(t) {
|
|
15500
15500
|
var e = typeof t;
|
|
15501
15501
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
15502
15502
|
}
|
|
15503
|
-
var
|
|
15504
|
-
function
|
|
15503
|
+
var _P = OP;
|
|
15504
|
+
function LP(t, e) {
|
|
15505
15505
|
var r = t.__data__;
|
|
15506
|
-
return
|
|
15506
|
+
return _P(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
15507
15507
|
}
|
|
15508
|
-
var al =
|
|
15509
|
-
function
|
|
15508
|
+
var al = LP;
|
|
15509
|
+
function FP(t) {
|
|
15510
15510
|
var e = al(this, t).delete(t);
|
|
15511
15511
|
return this.size -= e ? 1 : 0, e;
|
|
15512
15512
|
}
|
|
15513
|
-
var
|
|
15514
|
-
function
|
|
15513
|
+
var IP = FP;
|
|
15514
|
+
function AP(t) {
|
|
15515
15515
|
return al(this, t).get(t);
|
|
15516
15516
|
}
|
|
15517
|
-
var
|
|
15518
|
-
function
|
|
15517
|
+
var MP = AP;
|
|
15518
|
+
function BP(t) {
|
|
15519
15519
|
return al(this, t).has(t);
|
|
15520
15520
|
}
|
|
15521
|
-
var
|
|
15522
|
-
function $
|
|
15521
|
+
var NP = BP;
|
|
15522
|
+
function $P(t, e) {
|
|
15523
15523
|
var r = al(this, t), n = r.size;
|
|
15524
15524
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
15525
15525
|
}
|
|
15526
|
-
var
|
|
15526
|
+
var RP = $P;
|
|
15527
15527
|
function yi(t) {
|
|
15528
15528
|
var e = -1, r = t == null ? 0 : t.length;
|
|
15529
15529
|
for (this.clear(); ++e < r; ) {
|
|
@@ -15531,15 +15531,15 @@ function yi(t) {
|
|
|
15531
15531
|
this.set(n[0], n[1]);
|
|
15532
15532
|
}
|
|
15533
15533
|
}
|
|
15534
|
-
yi.prototype.clear =
|
|
15535
|
-
yi.prototype.delete =
|
|
15536
|
-
yi.prototype.get =
|
|
15537
|
-
yi.prototype.has =
|
|
15538
|
-
yi.prototype.set =
|
|
15539
|
-
var ig = yi,
|
|
15534
|
+
yi.prototype.clear = PP;
|
|
15535
|
+
yi.prototype.delete = IP;
|
|
15536
|
+
yi.prototype.get = MP;
|
|
15537
|
+
yi.prototype.has = NP;
|
|
15538
|
+
yi.prototype.set = RP;
|
|
15539
|
+
var ig = yi, zP = "Expected a function";
|
|
15540
15540
|
function gc(t, e) {
|
|
15541
15541
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
15542
|
-
throw new TypeError(
|
|
15542
|
+
throw new TypeError(zP);
|
|
15543
15543
|
var r = function() {
|
|
15544
15544
|
var n = arguments, a = e ? e.apply(this, n) : n[0], i = r.cache;
|
|
15545
15545
|
if (i.has(a))
|
|
@@ -15550,49 +15550,49 @@ function gc(t, e) {
|
|
|
15550
15550
|
return r.cache = new (gc.Cache || ig)(), r;
|
|
15551
15551
|
}
|
|
15552
15552
|
gc.Cache = ig;
|
|
15553
|
-
var
|
|
15554
|
-
function
|
|
15555
|
-
var e =
|
|
15556
|
-
return r.size ===
|
|
15553
|
+
var VP = gc, HP = 500;
|
|
15554
|
+
function qP(t) {
|
|
15555
|
+
var e = VP(t, function(n) {
|
|
15556
|
+
return r.size === HP && r.clear(), n;
|
|
15557
15557
|
}), r = e.cache;
|
|
15558
15558
|
return e;
|
|
15559
15559
|
}
|
|
15560
|
-
var
|
|
15560
|
+
var KP = qP, UP = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, GP = /\\(\\)?/g, WP = KP(function(t) {
|
|
15561
15561
|
var e = [];
|
|
15562
|
-
return t.charCodeAt(0) === 46 && e.push(""), t.replace(
|
|
15563
|
-
e.push(a ? i.replace(
|
|
15562
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(UP, function(r, n, a, i) {
|
|
15563
|
+
e.push(a ? i.replace(GP, "$1") : n || r);
|
|
15564
15564
|
}), e;
|
|
15565
|
-
}), og =
|
|
15566
|
-
function
|
|
15565
|
+
}), og = WP;
|
|
15566
|
+
function YP(t, e) {
|
|
15567
15567
|
for (var r = -1, n = t == null ? 0 : t.length, a = Array(n); ++r < n; )
|
|
15568
15568
|
a[r] = e(t[r], r, t);
|
|
15569
15569
|
return a;
|
|
15570
15570
|
}
|
|
15571
|
-
var sg =
|
|
15571
|
+
var sg = YP, XP = 1 / 0, Tf = ii ? ii.prototype : void 0, Df = Tf ? Tf.toString : void 0;
|
|
15572
15572
|
function lg(t) {
|
|
15573
15573
|
if (typeof t == "string")
|
|
15574
15574
|
return t;
|
|
15575
15575
|
if (rl(t))
|
|
15576
15576
|
return sg(t, lg) + "";
|
|
15577
15577
|
if (So(t))
|
|
15578
|
-
return
|
|
15578
|
+
return Df ? Df.call(t) : "";
|
|
15579
15579
|
var e = t + "";
|
|
15580
|
-
return e == "0" && 1 / t == -
|
|
15580
|
+
return e == "0" && 1 / t == -XP ? "-0" : e;
|
|
15581
15581
|
}
|
|
15582
|
-
var
|
|
15583
|
-
function
|
|
15584
|
-
return t == null ? "" :
|
|
15582
|
+
var ZP = lg;
|
|
15583
|
+
function jP(t) {
|
|
15584
|
+
return t == null ? "" : ZP(t);
|
|
15585
15585
|
}
|
|
15586
|
-
var ug =
|
|
15587
|
-
function
|
|
15588
|
-
return rl(t) ? t :
|
|
15586
|
+
var ug = jP;
|
|
15587
|
+
function QP(t, e) {
|
|
15588
|
+
return rl(t) ? t : xD(t, e) ? [t] : og(ug(t));
|
|
15589
15589
|
}
|
|
15590
|
-
var cg =
|
|
15590
|
+
var cg = QP, JP = 1 / 0;
|
|
15591
15591
|
function eO(t) {
|
|
15592
15592
|
if (typeof t == "string" || So(t))
|
|
15593
15593
|
return t;
|
|
15594
15594
|
var e = t + "";
|
|
15595
|
-
return e == "0" && 1 / t == -
|
|
15595
|
+
return e == "0" && 1 / t == -JP ? "-0" : e;
|
|
15596
15596
|
}
|
|
15597
15597
|
var mc = eO;
|
|
15598
15598
|
function tO(t, e) {
|
|
@@ -15612,9 +15612,9 @@ var aO = nO, iO = function() {
|
|
|
15612
15612
|
return t({}, "", {}), t;
|
|
15613
15613
|
} catch {
|
|
15614
15614
|
}
|
|
15615
|
-
}(),
|
|
15615
|
+
}(), Pf = iO;
|
|
15616
15616
|
function oO(t, e, r) {
|
|
15617
|
-
e == "__proto__" &&
|
|
15617
|
+
e == "__proto__" && Pf ? Pf(t, e, {
|
|
15618
15618
|
configurable: !0,
|
|
15619
15619
|
enumerable: !0,
|
|
15620
15620
|
value: r,
|
|
@@ -15715,14 +15715,14 @@ var EO = CO, kO = {
|
|
|
15715
15715
|
var T = !o.immutableKeys[w];
|
|
15716
15716
|
if (T)
|
|
15717
15717
|
for (var k = 0; k < l.length; k++) {
|
|
15718
|
-
var
|
|
15719
|
-
o.canSet(
|
|
15718
|
+
var D = l[k];
|
|
15719
|
+
o.canSet(D) && (D._private[o.field][w] = C);
|
|
15720
15720
|
}
|
|
15721
15721
|
}
|
|
15722
15722
|
o.updateStyle && s.updateStyle(), o.onSet(s), o.settingTriggersEvent && s[o.triggerFnName](o.settingEvent);
|
|
15723
15723
|
} else if (o.allowBinding && pt(a)) {
|
|
15724
|
-
var
|
|
15725
|
-
s.on(o.bindingEvent,
|
|
15724
|
+
var P = a;
|
|
15725
|
+
s.on(o.bindingEvent, P);
|
|
15726
15726
|
} else if (o.allowGetting && a === void 0) {
|
|
15727
15727
|
var _;
|
|
15728
15728
|
return c && (o.beforeGet(c), _ = c._private[o.field]), _;
|
|
@@ -15780,7 +15780,7 @@ var EO = CO, kO = {
|
|
|
15780
15780
|
};
|
|
15781
15781
|
}
|
|
15782
15782
|
}, et = {};
|
|
15783
|
-
[
|
|
15783
|
+
[gD, kO, SO].forEach(function(t) {
|
|
15784
15784
|
$e(et, t);
|
|
15785
15785
|
});
|
|
15786
15786
|
var TO = {
|
|
@@ -16070,12 +16070,12 @@ var it = function() {
|
|
|
16070
16070
|
}
|
|
16071
16071
|
}].sort(function(t, e) {
|
|
16072
16072
|
return $5(t.selector, e.selector);
|
|
16073
|
-
}),
|
|
16073
|
+
}), DO = function() {
|
|
16074
16074
|
for (var t = {}, e, r = 0; r < cu.length; r++)
|
|
16075
16075
|
e = cu[r], t[e.selector] = e.matches;
|
|
16076
16076
|
return t;
|
|
16077
|
-
}(),
|
|
16078
|
-
return
|
|
16077
|
+
}(), PO = function(e, r) {
|
|
16078
|
+
return DO[e](r);
|
|
16079
16079
|
}, OO = "(" + cu.map(function(t) {
|
|
16080
16080
|
return t.selector;
|
|
16081
16081
|
}).join("|") + ")", Ia = function(e) {
|
|
@@ -16489,7 +16489,7 @@ yt[Se.GROUP] = function(t, e) {
|
|
|
16489
16489
|
};
|
|
16490
16490
|
yt[Se.STATE] = function(t, e) {
|
|
16491
16491
|
var r = t.value;
|
|
16492
|
-
return
|
|
16492
|
+
return PO(r, e);
|
|
16493
16493
|
};
|
|
16494
16494
|
yt[Se.ID] = function(t, e) {
|
|
16495
16495
|
var r = t.value;
|
|
@@ -17150,30 +17150,30 @@ Zn.updateCompoundBounds = function() {
|
|
|
17150
17150
|
w: o.pstyle("width").pfValue,
|
|
17151
17151
|
h: o.pstyle("height").pfValue
|
|
17152
17152
|
}, d.x1 = v.x - d.w / 2, d.x2 = v.x + d.w / 2, d.y1 = v.y - d.h / 2, d.y2 = v.y + d.h / 2);
|
|
17153
|
-
function h(k,
|
|
17154
|
-
var _ = 0, I = 0, L =
|
|
17155
|
-
return k > 0 && L > 0 && (_ =
|
|
17153
|
+
function h(k, D, P) {
|
|
17154
|
+
var _ = 0, I = 0, L = D + P;
|
|
17155
|
+
return k > 0 && L > 0 && (_ = D / L * k, I = P / L * k), {
|
|
17156
17156
|
biasDiff: _,
|
|
17157
17157
|
biasComplementDiff: I
|
|
17158
17158
|
};
|
|
17159
17159
|
}
|
|
17160
|
-
function f(k,
|
|
17161
|
-
if (
|
|
17160
|
+
function f(k, D, P, _) {
|
|
17161
|
+
if (P.units === "%")
|
|
17162
17162
|
switch (_) {
|
|
17163
17163
|
case "width":
|
|
17164
|
-
return k > 0 ?
|
|
17164
|
+
return k > 0 ? P.pfValue * k : 0;
|
|
17165
17165
|
case "height":
|
|
17166
|
-
return
|
|
17166
|
+
return D > 0 ? P.pfValue * D : 0;
|
|
17167
17167
|
case "average":
|
|
17168
|
-
return k > 0 &&
|
|
17168
|
+
return k > 0 && D > 0 ? P.pfValue * (k + D) / 2 : 0;
|
|
17169
17169
|
case "min":
|
|
17170
|
-
return k > 0 &&
|
|
17170
|
+
return k > 0 && D > 0 ? k > D ? P.pfValue * D : P.pfValue * k : 0;
|
|
17171
17171
|
case "max":
|
|
17172
|
-
return k > 0 &&
|
|
17172
|
+
return k > 0 && D > 0 ? k > D ? P.pfValue * k : P.pfValue * D : 0;
|
|
17173
17173
|
default:
|
|
17174
17174
|
return 0;
|
|
17175
17175
|
}
|
|
17176
|
-
else return
|
|
17176
|
+
else return P.units === "px" ? P.pfValue : 0;
|
|
17177
17177
|
}
|
|
17178
17178
|
var p = c.width.left.value;
|
|
17179
17179
|
c.width.left.units === "px" && c.width.val > 0 && (p = p * 100 / c.width.val);
|
|
@@ -17215,19 +17215,19 @@ var Er = function(e) {
|
|
|
17215
17215
|
n ? a = n + "-" : a = "";
|
|
17216
17216
|
var i = r._private, o = i.rstyle, s = r.pstyle(a + "label").strValue;
|
|
17217
17217
|
if (s) {
|
|
17218
|
-
var u = r.pstyle("text-halign"), l = r.pstyle("text-valign"), c = Li(o, "labelWidth", n), d = Li(o, "labelHeight", n), v = Li(o, "labelX", n), h = Li(o, "labelY", n), f = r.pstyle(a + "text-margin-x").pfValue, p = r.pstyle(a + "text-margin-y").pfValue, m = r.isEdge(), g = r.pstyle(a + "text-rotation"), y = r.pstyle("text-outline-width").pfValue, b = r.pstyle("text-border-width").pfValue, w = b / 2, C = r.pstyle("text-background-padding").pfValue, E = 2, x = d, T = c, k = T / 2,
|
|
17218
|
+
var u = r.pstyle("text-halign"), l = r.pstyle("text-valign"), c = Li(o, "labelWidth", n), d = Li(o, "labelHeight", n), v = Li(o, "labelX", n), h = Li(o, "labelY", n), f = r.pstyle(a + "text-margin-x").pfValue, p = r.pstyle(a + "text-margin-y").pfValue, m = r.isEdge(), g = r.pstyle(a + "text-rotation"), y = r.pstyle("text-outline-width").pfValue, b = r.pstyle("text-border-width").pfValue, w = b / 2, C = r.pstyle("text-background-padding").pfValue, E = 2, x = d, T = c, k = T / 2, D = x / 2, P, _, I, L;
|
|
17219
17219
|
if (m)
|
|
17220
|
-
|
|
17220
|
+
P = v - k, _ = v + k, I = h - D, L = h + D;
|
|
17221
17221
|
else {
|
|
17222
17222
|
switch (u.value) {
|
|
17223
17223
|
case "left":
|
|
17224
|
-
|
|
17224
|
+
P = v - T, _ = v;
|
|
17225
17225
|
break;
|
|
17226
17226
|
case "center":
|
|
17227
|
-
|
|
17227
|
+
P = v - k, _ = v + k;
|
|
17228
17228
|
break;
|
|
17229
17229
|
case "right":
|
|
17230
|
-
|
|
17230
|
+
P = v, _ = v + T;
|
|
17231
17231
|
break;
|
|
17232
17232
|
}
|
|
17233
17233
|
switch (l.value) {
|
|
@@ -17235,26 +17235,26 @@ var Er = function(e) {
|
|
|
17235
17235
|
I = h - x, L = h;
|
|
17236
17236
|
break;
|
|
17237
17237
|
case "center":
|
|
17238
|
-
I = h -
|
|
17238
|
+
I = h - D, L = h + D;
|
|
17239
17239
|
break;
|
|
17240
17240
|
case "bottom":
|
|
17241
17241
|
I = h, L = h + x;
|
|
17242
17242
|
break;
|
|
17243
17243
|
}
|
|
17244
17244
|
}
|
|
17245
|
-
|
|
17245
|
+
P += f - Math.max(y, w) - C - E, _ += f + Math.max(y, w) + C + E, I += p - Math.max(y, w) - C - E, L += p + Math.max(y, w) + C + E;
|
|
17246
17246
|
var B = n || "main", F = i.labelBounds, M = F[B] = F[B] || {};
|
|
17247
|
-
M.x1 =
|
|
17247
|
+
M.x1 = P, M.y1 = I, M.x2 = _, M.y2 = L, M.w = _ - P, M.h = L - I;
|
|
17248
17248
|
var A = m && g.strValue === "autorotate", R = g.pfValue != null && g.pfValue !== 0;
|
|
17249
17249
|
if (A || R) {
|
|
17250
|
-
var K = A ? Li(i.rstyle, "labelAngle", n) : g.pfValue, H = Math.cos(K), q = Math.sin(K), j = (
|
|
17250
|
+
var K = A ? Li(i.rstyle, "labelAngle", n) : g.pfValue, H = Math.cos(K), q = Math.sin(K), j = (P + _) / 2, oe = (I + L) / 2;
|
|
17251
17251
|
if (!m) {
|
|
17252
17252
|
switch (u.value) {
|
|
17253
17253
|
case "left":
|
|
17254
17254
|
j = _;
|
|
17255
17255
|
break;
|
|
17256
17256
|
case "right":
|
|
17257
|
-
j =
|
|
17257
|
+
j = P;
|
|
17258
17258
|
break;
|
|
17259
17259
|
}
|
|
17260
17260
|
switch (l.value) {
|
|
@@ -17271,11 +17271,11 @@ var Er = function(e) {
|
|
|
17271
17271
|
x: Ee * H - fe * q + j,
|
|
17272
17272
|
y: Ee * q + fe * H + oe
|
|
17273
17273
|
};
|
|
17274
|
-
}, re = ie(
|
|
17275
|
-
|
|
17274
|
+
}, re = ie(P, I), le = ie(P, L), Q = ie(_, I), N = ie(_, L);
|
|
17275
|
+
P = Math.min(re.x, le.x, Q.x, N.x), _ = Math.max(re.x, le.x, Q.x, N.x), I = Math.min(re.y, le.y, Q.y, N.y), L = Math.max(re.y, le.y, Q.y, N.y);
|
|
17276
17276
|
}
|
|
17277
17277
|
var U = B + "Rot", X = F[U] = F[U] || {};
|
|
17278
|
-
X.x1 =
|
|
17278
|
+
X.x1 = P, X.y1 = I, X.x2 = _, X.y2 = L, X.w = _ - P, X.h = L - I, Mr(e, P, I, _, L), Mr(i.labelBounds.all, P, I, _, L);
|
|
17279
17279
|
}
|
|
17280
17280
|
return e;
|
|
17281
17281
|
}
|
|
@@ -17301,16 +17301,16 @@ var Er = function(e) {
|
|
|
17301
17301
|
a && r.includeOverlays && (w = e.pstyle("overlay-opacity").value, w !== 0 && (C = e.pstyle("overlay-padding").value));
|
|
17302
17302
|
var E = 0, x = 0;
|
|
17303
17303
|
a && r.includeUnderlays && (E = e.pstyle("underlay-opacity").value, E !== 0 && (x = e.pstyle("underlay-padding").value));
|
|
17304
|
-
var T = Math.max(C, x), k = 0,
|
|
17305
|
-
if (a && (k = e.pstyle("width").pfValue,
|
|
17306
|
-
var
|
|
17307
|
-
f =
|
|
17304
|
+
var T = Math.max(C, x), k = 0, D = 0;
|
|
17305
|
+
if (a && (k = e.pstyle("width").pfValue, D = k / 2), u && r.includeNodes) {
|
|
17306
|
+
var P = e.position();
|
|
17307
|
+
f = P.x, p = P.y;
|
|
17308
17308
|
var _ = e.outerWidth(), I = _ / 2, L = e.outerHeight(), B = L / 2;
|
|
17309
17309
|
c = f - I, d = f + I, v = p - B, h = p + B, Mr(o, c, v, d, h), a && r.includeOutlines && KO(o, e);
|
|
17310
17310
|
} else if (l && r.includeEdges)
|
|
17311
17311
|
if (a && !i) {
|
|
17312
17312
|
var F = e.pstyle("curve-style").strValue;
|
|
17313
|
-
if (c = Math.min(m.srcX, m.midX, m.tgtX), d = Math.max(m.srcX, m.midX, m.tgtX), v = Math.min(m.srcY, m.midY, m.tgtY), h = Math.max(m.srcY, m.midY, m.tgtY), c -=
|
|
17313
|
+
if (c = Math.min(m.srcX, m.midX, m.tgtX), d = Math.max(m.srcX, m.midX, m.tgtX), v = Math.min(m.srcY, m.midY, m.tgtY), h = Math.max(m.srcY, m.midY, m.tgtY), c -= D, d += D, v -= D, h += D, Mr(o, c, v, d, h), F === "haystack") {
|
|
17314
17314
|
var M = m.haystackPts;
|
|
17315
17315
|
if (M && M.length === 2) {
|
|
17316
17316
|
if (c = M[0].x, v = M[0].y, d = M[1].x, h = M[1].y, c > d) {
|
|
@@ -17321,7 +17321,7 @@ var Er = function(e) {
|
|
|
17321
17321
|
var R = v;
|
|
17322
17322
|
v = h, h = R;
|
|
17323
17323
|
}
|
|
17324
|
-
Mr(o, c -
|
|
17324
|
+
Mr(o, c - D, v - D, d + D, h + D);
|
|
17325
17325
|
}
|
|
17326
17326
|
} else if (F === "bezier" || F === "unbundled-bezier" || F.endsWith("segments") || F.endsWith("taxi")) {
|
|
17327
17327
|
var K;
|
|
@@ -17340,7 +17340,7 @@ var Er = function(e) {
|
|
|
17340
17340
|
if (K != null)
|
|
17341
17341
|
for (var H = 0; H < K.length; H++) {
|
|
17342
17342
|
var q = K[H];
|
|
17343
|
-
c = q.x -
|
|
17343
|
+
c = q.x - D, d = q.x + D, v = q.y - D, h = q.y + D, Mr(o, c, v, d, h);
|
|
17344
17344
|
}
|
|
17345
17345
|
}
|
|
17346
17346
|
} else {
|
|
@@ -17353,7 +17353,7 @@ var Er = function(e) {
|
|
|
17353
17353
|
var Q = v;
|
|
17354
17354
|
v = h, h = Q;
|
|
17355
17355
|
}
|
|
17356
|
-
c -=
|
|
17356
|
+
c -= D, d += D, v -= D, h += D, Mr(o, c, v, d, h);
|
|
17357
17357
|
}
|
|
17358
17358
|
if (a && r.includeEdges && l && (Yo(o, e, "mid-source"), Yo(o, e, "mid-target"), Yo(o, e, "source"), Yo(o, e, "target")), a) {
|
|
17359
17359
|
var N = e.pstyle("ghost").value === "yes";
|
|
@@ -17454,8 +17454,8 @@ Zn.boundingBoxAt = function(t) {
|
|
|
17454
17454
|
};
|
|
17455
17455
|
Xa.boundingbox = Xa.bb = Xa.boundingBox;
|
|
17456
17456
|
Xa.renderedBoundingbox = Xa.renderedBoundingBox;
|
|
17457
|
-
var GO = Zn, $i,
|
|
17458
|
-
$i =
|
|
17457
|
+
var GO = Zn, $i, Do;
|
|
17458
|
+
$i = Do = {};
|
|
17459
17459
|
var bg = function(e) {
|
|
17460
17460
|
e.uppercaseName = ef(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = ef(e.outerName), $i[e.name] = function() {
|
|
17461
17461
|
var n = this[0], a = n._private, i = a.cy, o = i._private.styleEnabled;
|
|
@@ -17500,19 +17500,19 @@ bg({
|
|
|
17500
17500
|
bg({
|
|
17501
17501
|
name: "height"
|
|
17502
17502
|
});
|
|
17503
|
-
|
|
17503
|
+
Do.padding = function() {
|
|
17504
17504
|
var t = this[0], e = t._private;
|
|
17505
17505
|
return t.isParent() ? (t.updateCompoundBounds(), e.autoPadding !== void 0 ? e.autoPadding : t.pstyle("padding").pfValue) : t.pstyle("padding").pfValue;
|
|
17506
17506
|
};
|
|
17507
|
-
|
|
17507
|
+
Do.paddedHeight = function() {
|
|
17508
17508
|
var t = this[0];
|
|
17509
17509
|
return t.height() + 2 * t.padding();
|
|
17510
17510
|
};
|
|
17511
|
-
|
|
17511
|
+
Do.paddedWidth = function() {
|
|
17512
17512
|
var t = this[0];
|
|
17513
17513
|
return t.width() + 2 * t.padding();
|
|
17514
17514
|
};
|
|
17515
|
-
var WO =
|
|
17515
|
+
var WO = Do, YO = function(e, r) {
|
|
17516
17516
|
if (e.isEdge())
|
|
17517
17517
|
return r(e);
|
|
17518
17518
|
}, XO = function(e, r) {
|
|
@@ -17661,7 +17661,7 @@ var Wn = ol.prototype, Eg = function(e, r, n, a, i, o, s) {
|
|
|
17661
17661
|
}, Mf = function(e, r) {
|
|
17662
17662
|
return e.addEventFields(e.context, r), new wg(r.type, r);
|
|
17663
17663
|
}, s_ = function(e, r, n) {
|
|
17664
|
-
if (
|
|
17664
|
+
if (D5(n)) {
|
|
17665
17665
|
r(e, n);
|
|
17666
17666
|
return;
|
|
17667
17667
|
} else if (Xe(n)) {
|
|
@@ -18193,14 +18193,14 @@ var d_ = Wt({
|
|
|
18193
18193
|
var k = {
|
|
18194
18194
|
x: x.x1 + x.w / 2,
|
|
18195
18195
|
y: x.y1 + x.h / 2
|
|
18196
|
-
},
|
|
18196
|
+
}, D = {
|
|
18197
18197
|
// scale from center of bounding box (not necessarily 0,0)
|
|
18198
18198
|
x: (T.x - k.x) * E,
|
|
18199
18199
|
y: (T.y - k.y) * E
|
|
18200
18200
|
};
|
|
18201
18201
|
return {
|
|
18202
|
-
x: k.x +
|
|
18203
|
-
y: k.y +
|
|
18202
|
+
x: k.x + D.x,
|
|
18203
|
+
y: k.y + D.y
|
|
18204
18204
|
};
|
|
18205
18205
|
}, c = r.spacingFactor && r.spacingFactor !== 1, d = function() {
|
|
18206
18206
|
if (!c)
|
|
@@ -18281,13 +18281,13 @@ var d_ = Wt({
|
|
|
18281
18281
|
}
|
|
18282
18282
|
};
|
|
18283
18283
|
ls.createLayout = ls.makeLayout = ls.layout;
|
|
18284
|
-
function
|
|
18284
|
+
function Dg(t, e, r) {
|
|
18285
18285
|
var n = r._private, a = n.styleCache = n.styleCache || [], i;
|
|
18286
18286
|
return (i = a[t]) != null || (i = a[t] = e(r)), i;
|
|
18287
18287
|
}
|
|
18288
18288
|
function sl(t, e) {
|
|
18289
18289
|
return t = ma(t), function(n) {
|
|
18290
|
-
return
|
|
18290
|
+
return Dg(t, e, n);
|
|
18291
18291
|
};
|
|
18292
18292
|
}
|
|
18293
18293
|
function ll(t, e) {
|
|
@@ -18298,7 +18298,7 @@ function ll(t, e) {
|
|
|
18298
18298
|
return function() {
|
|
18299
18299
|
var a = this[0];
|
|
18300
18300
|
if (a)
|
|
18301
|
-
return
|
|
18301
|
+
return Dg(t, r, a);
|
|
18302
18302
|
};
|
|
18303
18303
|
}
|
|
18304
18304
|
var Ut = {
|
|
@@ -19040,16 +19040,16 @@ dt.restore = function() {
|
|
|
19040
19040
|
v();
|
|
19041
19041
|
continue;
|
|
19042
19042
|
}
|
|
19043
|
-
var k = n.getElementById(p.source),
|
|
19044
|
-
k.same(
|
|
19043
|
+
var k = n.getElementById(p.source), D = n.getElementById(p.target);
|
|
19044
|
+
k.same(D) ? k._private.edges.push(y) : (k._private.edges.push(y), D._private.edges.push(y)), y._private.source = k, y._private.target = D;
|
|
19045
19045
|
}
|
|
19046
19046
|
f.map = new Yr(), f.map.set(m, {
|
|
19047
19047
|
ele: h,
|
|
19048
19048
|
index: 0
|
|
19049
19049
|
}), f.removed = !1, e && n.addToPool(h);
|
|
19050
19050
|
}
|
|
19051
|
-
for (var
|
|
19052
|
-
var _ = i[
|
|
19051
|
+
for (var P = 0; P < i.length; P++) {
|
|
19052
|
+
var _ = i[P], I = _._private.data;
|
|
19053
19053
|
ye(I.parent) && (I.parent = "" + I.parent);
|
|
19054
19054
|
var L = I.parent, B = L != null;
|
|
19055
19055
|
if (B || _._private.parent) {
|
|
@@ -19139,19 +19139,19 @@ dt.remove = function() {
|
|
|
19139
19139
|
var T = i._private.elements;
|
|
19140
19140
|
i._private.hasCompoundNodes = !1;
|
|
19141
19141
|
for (var k = 0; k < T.length; k++) {
|
|
19142
|
-
var
|
|
19143
|
-
if (
|
|
19142
|
+
var D = T[k];
|
|
19143
|
+
if (D.isParent()) {
|
|
19144
19144
|
i._private.hasCompoundNodes = !0;
|
|
19145
19145
|
break;
|
|
19146
19146
|
}
|
|
19147
19147
|
}
|
|
19148
|
-
var
|
|
19149
|
-
|
|
19148
|
+
var P = new Gt(this.cy(), n);
|
|
19149
|
+
P.size() > 0 && (t ? P.emitAndNotify("remove") : e && P.emit("remove"));
|
|
19150
19150
|
for (var _ = 0; _ < f.length; _++) {
|
|
19151
19151
|
var I = f[_];
|
|
19152
19152
|
(!e || !I.removed()) && I.updateStyle();
|
|
19153
19153
|
}
|
|
19154
|
-
return
|
|
19154
|
+
return P;
|
|
19155
19155
|
};
|
|
19156
19156
|
dt.move = function(t) {
|
|
19157
19157
|
var e = this._private.cy, r = this, n = !1, a = !1, i = function(f) {
|
|
@@ -19242,55 +19242,55 @@ function m_(t, e, r, n) {
|
|
|
19242
19242
|
return !1;
|
|
19243
19243
|
t = Math.min(t, 1), r = Math.min(r, 1), t = Math.max(t, 0), r = Math.max(r, 0);
|
|
19244
19244
|
var v = c ? new Float32Array(u) : new Array(u);
|
|
19245
|
-
function h(
|
|
19246
|
-
return 1 - 3 *
|
|
19245
|
+
function h(D, P) {
|
|
19246
|
+
return 1 - 3 * P + 3 * D;
|
|
19247
19247
|
}
|
|
19248
|
-
function f(
|
|
19249
|
-
return 3 *
|
|
19248
|
+
function f(D, P) {
|
|
19249
|
+
return 3 * P - 6 * D;
|
|
19250
19250
|
}
|
|
19251
|
-
function p(
|
|
19252
|
-
return 3 *
|
|
19251
|
+
function p(D) {
|
|
19252
|
+
return 3 * D;
|
|
19253
19253
|
}
|
|
19254
|
-
function m(
|
|
19255
|
-
return ((h(
|
|
19254
|
+
function m(D, P, _) {
|
|
19255
|
+
return ((h(P, _) * D + f(P, _)) * D + p(P)) * D;
|
|
19256
19256
|
}
|
|
19257
|
-
function g(
|
|
19258
|
-
return 3 * h(
|
|
19257
|
+
function g(D, P, _) {
|
|
19258
|
+
return 3 * h(P, _) * D * D + 2 * f(P, _) * D + p(P);
|
|
19259
19259
|
}
|
|
19260
|
-
function y(
|
|
19260
|
+
function y(D, P) {
|
|
19261
19261
|
for (var _ = 0; _ < a; ++_) {
|
|
19262
|
-
var I = g(
|
|
19262
|
+
var I = g(P, t, r);
|
|
19263
19263
|
if (I === 0)
|
|
19264
|
-
return
|
|
19265
|
-
var L = m(
|
|
19266
|
-
|
|
19264
|
+
return P;
|
|
19265
|
+
var L = m(P, t, r) - D;
|
|
19266
|
+
P -= L / I;
|
|
19267
19267
|
}
|
|
19268
|
-
return
|
|
19268
|
+
return P;
|
|
19269
19269
|
}
|
|
19270
19270
|
function b() {
|
|
19271
|
-
for (var
|
|
19272
|
-
v[
|
|
19271
|
+
for (var D = 0; D < u; ++D)
|
|
19272
|
+
v[D] = m(D * l, t, r);
|
|
19273
19273
|
}
|
|
19274
|
-
function w(
|
|
19274
|
+
function w(D, P, _) {
|
|
19275
19275
|
var I, L, B = 0;
|
|
19276
19276
|
do
|
|
19277
|
-
L =
|
|
19277
|
+
L = P + (_ - P) / 2, I = m(L, t, r) - D, I > 0 ? _ = L : P = L;
|
|
19278
19278
|
while (Math.abs(I) > o && ++B < s);
|
|
19279
19279
|
return L;
|
|
19280
19280
|
}
|
|
19281
|
-
function C(
|
|
19282
|
-
for (var
|
|
19283
|
-
|
|
19281
|
+
function C(D) {
|
|
19282
|
+
for (var P = 0, _ = 1, I = u - 1; _ !== I && v[_] <= D; ++_)
|
|
19283
|
+
P += l;
|
|
19284
19284
|
--_;
|
|
19285
|
-
var L = (
|
|
19286
|
-
return F >= i ? y(
|
|
19285
|
+
var L = (D - v[_]) / (v[_ + 1] - v[_]), B = P + L * l, F = g(B, t, r);
|
|
19286
|
+
return F >= i ? y(D, B) : F === 0 ? B : w(D, P, P + l);
|
|
19287
19287
|
}
|
|
19288
19288
|
var E = !1;
|
|
19289
19289
|
function x() {
|
|
19290
19290
|
E = !0, (t !== e || r !== n) && b();
|
|
19291
19291
|
}
|
|
19292
|
-
var T = function(
|
|
19293
|
-
return E || x(), t === e && r === n ?
|
|
19292
|
+
var T = function(P) {
|
|
19293
|
+
return E || x(), t === e && r === n ? P : P === 0 ? 0 : P === 1 ? 1 : m(C(P), e, n);
|
|
19294
19294
|
};
|
|
19295
19295
|
T.getControlPoints = function() {
|
|
19296
19296
|
return [{
|
|
@@ -19449,12 +19449,12 @@ function b_(t, e, r, n) {
|
|
|
19449
19449
|
}
|
|
19450
19450
|
var w = o.startPan, C = o.pan, E = i.pan, x = C != null && n;
|
|
19451
19451
|
x && (Ii(w.x, C.x) && (E.x = Ma(w.x, C.x, m, p)), Ii(w.y, C.y) && (E.y = Ma(w.y, C.y, m, p)), t.emit("pan"));
|
|
19452
|
-
var T = o.startZoom, k = o.zoom,
|
|
19453
|
-
|
|
19454
|
-
var
|
|
19455
|
-
if (
|
|
19456
|
-
for (var _ = 0; _ <
|
|
19457
|
-
var I =
|
|
19452
|
+
var T = o.startZoom, k = o.zoom, D = k != null && n;
|
|
19453
|
+
D && (Ii(T, k) && (i.zoom = io(i.minZoom, Ma(T, k, m, p), i.maxZoom)), t.emit("zoom")), (x || D) && t.emit("viewport");
|
|
19454
|
+
var P = o.style;
|
|
19455
|
+
if (P && P.length > 0 && a) {
|
|
19456
|
+
for (var _ = 0; _ < P.length; _++) {
|
|
19457
|
+
var I = P[_], L = I.name, B = I, F = o.startStyle[L], M = c.properties[F.name], A = Ma(F, B, m, p, M);
|
|
19458
19458
|
c.overrideBypass(t, L, A);
|
|
19459
19459
|
}
|
|
19460
19460
|
t.emit("style");
|
|
@@ -19546,7 +19546,7 @@ var x_ = {
|
|
|
19546
19546
|
}
|
|
19547
19547
|
}, jo = function(e) {
|
|
19548
19548
|
return Fe(e) ? new Un(e) : e;
|
|
19549
|
-
},
|
|
19549
|
+
}, Pg = {
|
|
19550
19550
|
createEmitter: function() {
|
|
19551
19551
|
var e = this._private;
|
|
19552
19552
|
return e.emitter || (e.emitter = new ol(C_, this)), this;
|
|
@@ -19576,7 +19576,7 @@ var x_ = {
|
|
|
19576
19576
|
return this.emit(e), this.notify(e, r), this;
|
|
19577
19577
|
}
|
|
19578
19578
|
};
|
|
19579
|
-
et.eventAliasesOn(
|
|
19579
|
+
et.eventAliasesOn(Pg);
|
|
19580
19580
|
var fu = {
|
|
19581
19581
|
png: function(e) {
|
|
19582
19582
|
var r = this._private.renderer;
|
|
@@ -19876,8 +19876,8 @@ ar.updateStyleHints = function(t) {
|
|
|
19876
19876
|
if (b != null) {
|
|
19877
19877
|
var w = this.properties[y], C = w.type, E = w.groupKey, x = void 0;
|
|
19878
19878
|
w.hashOverride != null ? x = w.hashOverride(t, b) : b.pfValue != null && (x = b.pfValue);
|
|
19879
|
-
var T = w.enums == null ? b.value : null, k = x != null,
|
|
19880
|
-
if (C.number &&
|
|
19879
|
+
var T = w.enums == null ? b.value : null, k = x != null, D = T != null, P = k || D, _ = b.units;
|
|
19880
|
+
if (C.number && P && !C.multiple) {
|
|
19881
19881
|
var I = k ? x : T;
|
|
19882
19882
|
h(m(I), E), !k && _ != null && f(_, E);
|
|
19883
19883
|
} else
|
|
@@ -19890,19 +19890,19 @@ ar.updateStyleHints = function(t) {
|
|
|
19890
19890
|
}
|
|
19891
19891
|
e.styleKey = _4(L[0], L[1]);
|
|
19892
19892
|
var A = e.styleKeys;
|
|
19893
|
-
e.labelDimsKey =
|
|
19893
|
+
e.labelDimsKey = Pn(A.labelDimensions);
|
|
19894
19894
|
var R = i(t, ["label"], A.labelDimensions);
|
|
19895
|
-
if (e.labelKey =
|
|
19895
|
+
if (e.labelKey = Pn(R), e.labelStyleKey = Pn(Ho(A.commonLabel, R)), !s) {
|
|
19896
19896
|
var K = i(t, ["source-label"], A.labelDimensions);
|
|
19897
|
-
e.sourceLabelKey =
|
|
19897
|
+
e.sourceLabelKey = Pn(K), e.sourceLabelStyleKey = Pn(Ho(A.commonLabel, K));
|
|
19898
19898
|
var H = i(t, ["target-label"], A.labelDimensions);
|
|
19899
|
-
e.targetLabelKey =
|
|
19899
|
+
e.targetLabelKey = Pn(H), e.targetLabelStyleKey = Pn(Ho(A.commonLabel, H));
|
|
19900
19900
|
}
|
|
19901
19901
|
if (s) {
|
|
19902
19902
|
var q = e.styleKeys, j = q.nodeBody, oe = q.nodeBorder, ie = q.nodeOutline, re = q.backgroundImage, le = q.compound, Q = q.pie, N = [j, oe, ie, re, le, Q].filter(function(U) {
|
|
19903
19903
|
return U != null;
|
|
19904
19904
|
}).reduce(Ho, [Va, Bi]);
|
|
19905
|
-
e.nodeKey =
|
|
19905
|
+
e.nodeKey = Pn(N), e.hasPie = Q != null && Q[0] !== Va && Q[1] !== Bi;
|
|
19906
19906
|
}
|
|
19907
19907
|
return o !== e.styleKey;
|
|
19908
19908
|
};
|
|
@@ -19943,7 +19943,7 @@ ar.applyParsedProperty = function(t, e) {
|
|
|
19943
19943
|
} else
|
|
19944
19944
|
return tt("Do not use continuous mappers without specifying numeric data (i.e. `" + n.field + ": " + g + "` for `" + t.id() + "` is non-numeric)"), !1;
|
|
19945
19945
|
if (w < 0 ? w = 0 : w > 1 && (w = 1), s.color) {
|
|
19946
|
-
var E = n.valueMin[0], x = n.valueMax[0], T = n.valueMin[1], k = n.valueMax[1],
|
|
19946
|
+
var E = n.valueMin[0], x = n.valueMax[0], T = n.valueMin[1], k = n.valueMax[1], D = n.valueMin[2], P = n.valueMax[2], _ = n.valueMin[3] == null ? 1 : n.valueMin[3], I = n.valueMax[3] == null ? 1 : n.valueMax[3], L = [Math.round(E + (x - E) * w), Math.round(T + (k - T) * w), Math.round(D + (P - D) * w), Math.round(_ + (I - _) * w)];
|
|
19947
19947
|
i = {
|
|
19948
19948
|
// colours are simple, so just create the flat property instead of expensive string parsing
|
|
19949
19949
|
bypass: n.bypass,
|
|
@@ -20057,8 +20057,8 @@ ar.checkBoundsTrigger = function(t, e, r, n) {
|
|
|
20057
20057
|
ar.checkTriggers = function(t, e, r, n) {
|
|
20058
20058
|
t.dirtyStyleCache(), this.checkZOrderTrigger(t, e, r, n), this.checkBoundsTrigger(t, e, r, n);
|
|
20059
20059
|
};
|
|
20060
|
-
var
|
|
20061
|
-
|
|
20060
|
+
var Po = {};
|
|
20061
|
+
Po.applyBypass = function(t, e, r, n) {
|
|
20062
20062
|
var a = this, i = [], o = !0;
|
|
20063
20063
|
if (e === "*" || e === "**") {
|
|
20064
20064
|
if (r !== void 0)
|
|
@@ -20098,17 +20098,17 @@ Do.applyBypass = function(t, e, r, n) {
|
|
|
20098
20098
|
}
|
|
20099
20099
|
return y;
|
|
20100
20100
|
};
|
|
20101
|
-
|
|
20101
|
+
Po.overrideBypass = function(t, e, r) {
|
|
20102
20102
|
e = sc(e);
|
|
20103
20103
|
for (var n = 0; n < t.length; n++) {
|
|
20104
20104
|
var a = t[n], i = a._private.style[e], o = this.properties[e].type, s = o.color, u = o.mutiple, l = i ? i.pfValue != null ? i.pfValue : i.value : null;
|
|
20105
20105
|
!i || !i.bypass ? this.applyBypass(a, e, r) : (i.value = r, i.pfValue != null && (i.pfValue = r), s ? i.strValue = "rgb(" + r.join(",") + ")" : u ? i.strValue = r.join(" ") : i.strValue = "" + r, this.updateStyleHints(a)), this.checkTriggers(a, e, l, r);
|
|
20106
20106
|
}
|
|
20107
20107
|
};
|
|
20108
|
-
|
|
20108
|
+
Po.removeAllBypasses = function(t, e) {
|
|
20109
20109
|
return this.removeBypasses(t, this.propertyNames, e);
|
|
20110
20110
|
};
|
|
20111
|
-
|
|
20111
|
+
Po.removeBypasses = function(t, e, r) {
|
|
20112
20112
|
for (var n = !0, a = 0; a < t.length; a++) {
|
|
20113
20113
|
for (var i = t[a], o = {}, s = 0; s < e.length; s++) {
|
|
20114
20114
|
var u = e[s], l = this.properties[u], c = i.pstyle(l.name);
|
|
@@ -21105,7 +21105,7 @@ var Rt = {};
|
|
|
21105
21105
|
name: "min-height-bias-bottom",
|
|
21106
21106
|
type: l.sizeMaybePercent,
|
|
21107
21107
|
triggersBounds: u.any
|
|
21108
|
-
}],
|
|
21108
|
+
}], D = [{
|
|
21109
21109
|
name: "line-style",
|
|
21110
21110
|
type: l.lineStyle
|
|
21111
21111
|
}, {
|
|
@@ -21223,7 +21223,7 @@ var Rt = {};
|
|
|
21223
21223
|
name: "target-distance-from-node",
|
|
21224
21224
|
type: l.size,
|
|
21225
21225
|
triggersBounds: u.any
|
|
21226
|
-
}],
|
|
21226
|
+
}], P = [{
|
|
21227
21227
|
name: "ghost",
|
|
21228
21228
|
type: l.bool,
|
|
21229
21229
|
triggersBounds: u.any
|
|
@@ -21305,14 +21305,14 @@ var Rt = {};
|
|
|
21305
21305
|
});
|
|
21306
21306
|
});
|
|
21307
21307
|
}, {});
|
|
21308
|
-
var M = Rt.properties = [].concat(p, b, m, g, y,
|
|
21308
|
+
var M = Rt.properties = [].concat(p, b, m, g, y, P, f, h, c, d, v, C, E, x, T, I, k, D, B, _), A = Rt.propertyGroups = {
|
|
21309
21309
|
// common to all eles
|
|
21310
21310
|
behavior: p,
|
|
21311
21311
|
transition: b,
|
|
21312
21312
|
visibility: m,
|
|
21313
21313
|
overlay: g,
|
|
21314
21314
|
underlay: y,
|
|
21315
|
-
ghost:
|
|
21315
|
+
ghost: P,
|
|
21316
21316
|
// labels
|
|
21317
21317
|
commonLabel: f,
|
|
21318
21318
|
labelDimensions: h,
|
|
@@ -21327,7 +21327,7 @@ var Rt = {};
|
|
|
21327
21327
|
pie: I,
|
|
21328
21328
|
compound: k,
|
|
21329
21329
|
// edge props
|
|
21330
|
-
edgeLine:
|
|
21330
|
+
edgeLine: D,
|
|
21331
21331
|
edgeArrow: B,
|
|
21332
21332
|
core: _
|
|
21333
21333
|
}, R = Rt.propertyGroupNames = {}, K = Rt.propertyGroupKeys = Object.keys(A);
|
|
@@ -21732,8 +21732,8 @@ cl.parseImpl = function(t, e, r, n) {
|
|
|
21732
21732
|
if (u ? b = e.split(/\s+/) : st(e) ? b = e : b = [e], l.evenMultiple && b.length % 2 !== 0)
|
|
21733
21733
|
return null;
|
|
21734
21734
|
for (var w = [], C = [], E = [], x = "", T = !1, k = 0; k < b.length; k++) {
|
|
21735
|
-
var
|
|
21736
|
-
T = T || Fe(
|
|
21735
|
+
var D = a.parse(t, b[k], r, "multiple");
|
|
21736
|
+
T = T || Fe(D.value), w.push(D.value), E.push(D.pfValue != null ? D.pfValue : D.value), C.push(D.units), x += (k > 0 ? " " : "") + D.strValue;
|
|
21737
21737
|
}
|
|
21738
21738
|
return l.validate && !l.validate(w, C) ? null : l.singleEnum && T ? w.length === 1 && Fe(w[0]) ? {
|
|
21739
21739
|
name: t,
|
|
@@ -21749,7 +21749,7 @@ cl.parseImpl = function(t, e, r, n) {
|
|
|
21749
21749
|
units: C
|
|
21750
21750
|
};
|
|
21751
21751
|
}
|
|
21752
|
-
var
|
|
21752
|
+
var P = function() {
|
|
21753
21753
|
for (var N = 0; N < l.enums.length; N++) {
|
|
21754
21754
|
var U = l.enums[N];
|
|
21755
21755
|
if (U === e)
|
|
@@ -21774,7 +21774,7 @@ cl.parseImpl = function(t, e, r, n) {
|
|
|
21774
21774
|
if (e = parseFloat(e), isNaN(e) && l.enums === void 0)
|
|
21775
21775
|
return null;
|
|
21776
21776
|
if (isNaN(e) && l.enums !== void 0)
|
|
21777
|
-
return e = o,
|
|
21777
|
+
return e = o, P();
|
|
21778
21778
|
if (l.integer && !T5(e) || l.min !== void 0 && (e < l.min || l.strictMin && e === l.min) || l.max !== void 0 && (e > l.max || l.strictMax && e === l.max))
|
|
21779
21779
|
return null;
|
|
21780
21780
|
var F = {
|
|
@@ -21813,7 +21813,7 @@ cl.parseImpl = function(t, e, r, n) {
|
|
|
21813
21813
|
} : null;
|
|
21814
21814
|
} else if (l.regex || l.regexes) {
|
|
21815
21815
|
if (l.enums) {
|
|
21816
|
-
var j =
|
|
21816
|
+
var j = P();
|
|
21817
21817
|
if (j)
|
|
21818
21818
|
return j;
|
|
21819
21819
|
}
|
|
@@ -21833,7 +21833,7 @@ cl.parseImpl = function(t, e, r, n) {
|
|
|
21833
21833
|
value: "" + e,
|
|
21834
21834
|
strValue: "" + e,
|
|
21835
21835
|
bypass: r
|
|
21836
|
-
} : l.enums ?
|
|
21836
|
+
} : l.enums ? P() : null;
|
|
21837
21837
|
};
|
|
21838
21838
|
var tr = function t(e) {
|
|
21839
21839
|
if (!(this instanceof t))
|
|
@@ -21895,7 +21895,7 @@ nr.cssRule = function(t, e) {
|
|
|
21895
21895
|
return this;
|
|
21896
21896
|
};
|
|
21897
21897
|
nr.append = function(t) {
|
|
21898
|
-
return
|
|
21898
|
+
return Dp(t) ? t.appendToStyle(this) : st(t) ? this.appendFromJson(t) : Fe(t) && this.appendFromString(t), this;
|
|
21899
21899
|
};
|
|
21900
21900
|
tr.fromJson = function(t, e) {
|
|
21901
21901
|
var r = new tr(t);
|
|
@@ -21904,7 +21904,7 @@ tr.fromJson = function(t, e) {
|
|
|
21904
21904
|
tr.fromString = function(t, e) {
|
|
21905
21905
|
return new tr(t).fromString(e);
|
|
21906
21906
|
};
|
|
21907
|
-
[ar,
|
|
21907
|
+
[ar, Po, xc, en, ul, Cc, Rt, cl].forEach(function(t) {
|
|
21908
21908
|
$e(nr, t);
|
|
21909
21909
|
});
|
|
21910
21910
|
tr.types = nr.types;
|
|
@@ -21922,13 +21922,13 @@ var T_ = {
|
|
|
21922
21922
|
},
|
|
21923
21923
|
setStyle: function(e) {
|
|
21924
21924
|
var r = this._private;
|
|
21925
|
-
return
|
|
21925
|
+
return Dp(e) ? r.style = e.generateStyle(this) : st(e) ? r.style = tr.fromJson(this, e) : Fe(e) ? r.style = tr.fromString(this, e) : r.style = tr(this), r.style;
|
|
21926
21926
|
},
|
|
21927
21927
|
// e.g. cy.data() changed => recalc ele mappers
|
|
21928
21928
|
updateStyle: function() {
|
|
21929
21929
|
this.mutableElements().updateStyle();
|
|
21930
21930
|
}
|
|
21931
|
-
},
|
|
21931
|
+
}, D_ = "single", xa = {
|
|
21932
21932
|
autolock: function(e) {
|
|
21933
21933
|
if (e !== void 0)
|
|
21934
21934
|
this._private.autolock = !!e;
|
|
@@ -21952,7 +21952,7 @@ var T_ = {
|
|
|
21952
21952
|
},
|
|
21953
21953
|
selectionType: function(e) {
|
|
21954
21954
|
var r = this._private;
|
|
21955
|
-
if (r.selectionType == null && (r.selectionType =
|
|
21955
|
+
if (r.selectionType == null && (r.selectionType = D_), e !== void 0)
|
|
21956
21956
|
(e === "additive" || e === "single") && (r.selectionType = e);
|
|
21957
21957
|
else
|
|
21958
21958
|
return r.selectionType;
|
|
@@ -22437,9 +22437,9 @@ $e(Ls, {
|
|
|
22437
22437
|
tt("cy.json() cannot handle elements without an ID attribute");
|
|
22438
22438
|
continue;
|
|
22439
22439
|
}
|
|
22440
|
-
var
|
|
22441
|
-
o[
|
|
22442
|
-
ele:
|
|
22440
|
+
var D = "" + k.data.id, P = r.getElementById(D);
|
|
22441
|
+
o[D] = !0, P.length !== 0 ? x.push({
|
|
22442
|
+
ele: P,
|
|
22443
22443
|
json: k
|
|
22444
22444
|
}) : (C && (k.group = C), E.push(k));
|
|
22445
22445
|
}
|
|
@@ -22489,10 +22489,10 @@ $e(Ls, {
|
|
|
22489
22489
|
}
|
|
22490
22490
|
});
|
|
22491
22491
|
Ls.$id = Ls.getElementById;
|
|
22492
|
-
[g_, x_,
|
|
22492
|
+
[g_, x_, Pg, fu, cs, E_, vu, ds, T_, xa, co].forEach(function(t) {
|
|
22493
22493
|
$e(Ls, t);
|
|
22494
22494
|
});
|
|
22495
|
-
var
|
|
22495
|
+
var P_ = {
|
|
22496
22496
|
fit: !0,
|
|
22497
22497
|
// whether to fit the viewport to the graph
|
|
22498
22498
|
directed: !1,
|
|
@@ -22544,7 +22544,7 @@ var D_ = {
|
|
|
22544
22544
|
return e.scratch("breadthfirst", r);
|
|
22545
22545
|
};
|
|
22546
22546
|
function Og(t) {
|
|
22547
|
-
this.options = $e({},
|
|
22547
|
+
this.options = $e({}, P_, O_, t);
|
|
22548
22548
|
}
|
|
22549
22549
|
Og.prototype.run = function() {
|
|
22550
22550
|
var t = this.options, e = t, r = t.cy, n = e.eles, a = n.nodes().filter(function(fe) {
|
|
@@ -22571,8 +22571,8 @@ Og.prototype.run = function() {
|
|
|
22571
22571
|
var f = n.components();
|
|
22572
22572
|
l = r.collection();
|
|
22573
22573
|
for (var p = function(me) {
|
|
22574
|
-
var xe = f[me], ke = xe.maxDegree(!1), Ce = xe.filter(function(
|
|
22575
|
-
return
|
|
22574
|
+
var xe = f[me], ke = xe.maxDegree(!1), Ce = xe.filter(function(Pe) {
|
|
22575
|
+
return Pe.degree(!1) === ke;
|
|
22576
22576
|
});
|
|
22577
22577
|
l = l.add(Ce);
|
|
22578
22578
|
}, m = 0; m < f.length; m++)
|
|
@@ -22586,15 +22586,15 @@ Og.prototype.run = function() {
|
|
|
22586
22586
|
depth: xe
|
|
22587
22587
|
});
|
|
22588
22588
|
}, w = function(me, xe) {
|
|
22589
|
-
var ke = Ba(me), Ce = ke.depth,
|
|
22590
|
-
g[Ce][
|
|
22589
|
+
var ke = Ba(me), Ce = ke.depth, Pe = ke.index;
|
|
22590
|
+
g[Ce][Pe] = null, b(me, xe);
|
|
22591
22591
|
};
|
|
22592
22592
|
i.bfs({
|
|
22593
22593
|
roots: l,
|
|
22594
22594
|
directed: e.directed,
|
|
22595
|
-
visit: function(me, xe, ke, Ce,
|
|
22595
|
+
visit: function(me, xe, ke, Ce, Pe) {
|
|
22596
22596
|
var He = me[0], qe = He.id();
|
|
22597
|
-
b(He,
|
|
22597
|
+
b(He, Pe), y[qe] = !0;
|
|
22598
22598
|
}
|
|
22599
22599
|
});
|
|
22600
22600
|
for (var C = [], E = 0; E < a.length; E++) {
|
|
@@ -22616,31 +22616,31 @@ Og.prototype.run = function() {
|
|
|
22616
22616
|
}, k = function() {
|
|
22617
22617
|
for (var me = 0; me < g.length; me++)
|
|
22618
22618
|
T(me);
|
|
22619
|
-
},
|
|
22619
|
+
}, D = function(me, xe) {
|
|
22620
22620
|
for (var ke = Ba(me), Ce = me.incomers().filter(function(S) {
|
|
22621
22621
|
return S.isNode() && n.has(S);
|
|
22622
|
-
}),
|
|
22622
|
+
}), Pe = -1, He = me.id(), qe = 0; qe < Ce.length; qe++) {
|
|
22623
22623
|
var Me = Ce[qe], Ue = Ba(Me);
|
|
22624
|
-
|
|
22624
|
+
Pe = Math.max(Pe, Ue.depth);
|
|
22625
22625
|
}
|
|
22626
|
-
if (ke.depth <=
|
|
22626
|
+
if (ke.depth <= Pe) {
|
|
22627
22627
|
if (!e.acyclic && xe[He])
|
|
22628
22628
|
return null;
|
|
22629
|
-
var se =
|
|
22629
|
+
var se = Pe + 1;
|
|
22630
22630
|
return w(me, se), xe[He] = se, !0;
|
|
22631
22631
|
}
|
|
22632
22632
|
return !1;
|
|
22633
22633
|
};
|
|
22634
22634
|
if (o && s) {
|
|
22635
|
-
var
|
|
22636
|
-
return
|
|
22635
|
+
var P = [], _ = {}, I = function(me) {
|
|
22636
|
+
return P.push(me);
|
|
22637
22637
|
}, L = function() {
|
|
22638
|
-
return
|
|
22638
|
+
return P.shift();
|
|
22639
22639
|
};
|
|
22640
22640
|
for (a.forEach(function(fe) {
|
|
22641
|
-
return
|
|
22642
|
-
});
|
|
22643
|
-
var B = L(), F =
|
|
22641
|
+
return P.push(fe);
|
|
22642
|
+
}); P.length > 0; ) {
|
|
22643
|
+
var B = L(), F = D(B, _);
|
|
22644
22644
|
if (F)
|
|
22645
22645
|
B.outgoers().filter(function(fe) {
|
|
22646
22646
|
return fe.isNode() && n.has(fe);
|
|
@@ -22661,7 +22661,7 @@ Og.prototype.run = function() {
|
|
|
22661
22661
|
var j = {}, oe = function(me) {
|
|
22662
22662
|
if (j[me.id()])
|
|
22663
22663
|
return j[me.id()];
|
|
22664
|
-
for (var xe = Ba(me).depth, ke = me.neighborhood(), Ce = 0,
|
|
22664
|
+
for (var xe = Ba(me).depth, ke = me.neighborhood(), Ce = 0, Pe = 0, He = 0; He < ke.length; He++) {
|
|
22665
22665
|
var qe = ke[He];
|
|
22666
22666
|
if (!(qe.isEdge() || qe.isParent() || !a.has(qe))) {
|
|
22667
22667
|
var Me = Ba(qe);
|
|
@@ -22669,15 +22669,15 @@ Og.prototype.run = function() {
|
|
|
22669
22669
|
var Ue = Me.index, se = Me.depth;
|
|
22670
22670
|
if (!(Ue == null || se == null)) {
|
|
22671
22671
|
var S = g[se].length;
|
|
22672
|
-
se < xe && (Ce += Ue / S,
|
|
22672
|
+
se < xe && (Ce += Ue / S, Pe++);
|
|
22673
22673
|
}
|
|
22674
22674
|
}
|
|
22675
22675
|
}
|
|
22676
22676
|
}
|
|
22677
|
-
return
|
|
22677
|
+
return Pe = Math.max(1, Pe), Ce = Ce / Pe, Pe === 0 && (Ce = 0), j[me.id()] = Ce, Ce;
|
|
22678
22678
|
}, ie = function(me, xe) {
|
|
22679
|
-
var ke = oe(me), Ce = oe(xe),
|
|
22680
|
-
return
|
|
22679
|
+
var ke = oe(me), Ce = oe(xe), Pe = ke - Ce;
|
|
22680
|
+
return Pe === 0 ? Op(me.id(), xe.id()) : Pe;
|
|
22681
22681
|
};
|
|
22682
22682
|
e.depthSort !== void 0 && (ie = e.depthSort);
|
|
22683
22683
|
for (var re = 0; re < g.length; re++)
|
|
@@ -22693,7 +22693,7 @@ Og.prototype.run = function() {
|
|
|
22693
22693
|
}, ge = g.reduce(function(fe, me) {
|
|
22694
22694
|
return Math.max(fe, me.length);
|
|
22695
22695
|
}, 0), Ee = function(me) {
|
|
22696
|
-
var xe = Ba(me), ke = xe.depth, Ce = xe.index,
|
|
22696
|
+
var xe = Ba(me), ke = xe.depth, Ce = xe.index, Pe = g[ke].length, He = Math.max(u.w / ((e.grid ? ge : Pe) + 1), M), qe = Math.max(u.h / (g.length + 1), M), Me = Math.min(u.w / 2 / g.length, u.h / 2 / g.length);
|
|
22697
22697
|
if (Me = Math.max(Me, M), e.circle) {
|
|
22698
22698
|
var se = Me * ke + Me - (g.length > 0 && g[0].length <= 3 ? Me / 2 : 0), S = 2 * Math.PI / g[ke].length * Ce;
|
|
22699
22699
|
return ke === 0 && g[0].length === 1 && (se = 1), {
|
|
@@ -22702,7 +22702,7 @@ Og.prototype.run = function() {
|
|
|
22702
22702
|
};
|
|
22703
22703
|
} else {
|
|
22704
22704
|
var Ue = {
|
|
22705
|
-
x: X.x + (Ce + 1 - (
|
|
22705
|
+
x: X.x + (Ce + 1 - (Pe + 1) / 2) * He,
|
|
22706
22706
|
y: (ke + 1) * qe
|
|
22707
22707
|
};
|
|
22708
22708
|
return Ue;
|
|
@@ -22776,11 +22776,11 @@ _g.prototype.run = function() {
|
|
|
22776
22776
|
c = Math.max(b, c);
|
|
22777
22777
|
}
|
|
22778
22778
|
var w = function(E, x) {
|
|
22779
|
-
var T = e.startAngle + x * l * (a ? 1 : -1), k = c * Math.cos(T),
|
|
22779
|
+
var T = e.startAngle + x * l * (a ? 1 : -1), k = c * Math.cos(T), D = c * Math.sin(T), P = {
|
|
22780
22780
|
x: s.x + k,
|
|
22781
|
-
y: s.y +
|
|
22781
|
+
y: s.y + D
|
|
22782
22782
|
};
|
|
22783
|
-
return
|
|
22783
|
+
return P;
|
|
22784
22784
|
};
|
|
22785
22785
|
return n.nodes().layoutPositions(this, e, w), this;
|
|
22786
22786
|
};
|
|
@@ -22876,13 +22876,13 @@ Lg.prototype.run = function() {
|
|
|
22876
22876
|
var x = g.length > 0 && g[0].length > 1, T = Math.min(o.w, o.h) / 2 - E, k = T / (g.length + x ? 1 : 0);
|
|
22877
22877
|
E = Math.min(E, k);
|
|
22878
22878
|
}
|
|
22879
|
-
for (var
|
|
22880
|
-
var _ = g[
|
|
22879
|
+
for (var D = 0, P = 0; P < g.length; P++) {
|
|
22880
|
+
var _ = g[P], I = e.sweep === void 0 ? 2 * Math.PI - 2 * Math.PI / _.length : e.sweep, L = _.dTheta = I / Math.max(1, _.length - 1);
|
|
22881
22881
|
if (_.length > 1 && e.avoidOverlap) {
|
|
22882
22882
|
var B = Math.cos(L) - Math.cos(0), F = Math.sin(L) - Math.sin(0), M = Math.sqrt(E * E / (B * B + F * F));
|
|
22883
|
-
|
|
22883
|
+
D = Math.max(M, D);
|
|
22884
22884
|
}
|
|
22885
|
-
_.r =
|
|
22885
|
+
_.r = D, D += E;
|
|
22886
22886
|
}
|
|
22887
22887
|
if (e.equidistant) {
|
|
22888
22888
|
for (var A = 0, R = 0, K = 0; K < g.length; K++) {
|
|
@@ -23076,13 +23076,13 @@ var I_ = function(e, r, n) {
|
|
|
23076
23076
|
}
|
|
23077
23077
|
for (var c = 0; c < s.graphSet.length; c++)
|
|
23078
23078
|
for (var k = s.graphSet[c], v = 0; v < k.length; v++) {
|
|
23079
|
-
var
|
|
23080
|
-
s.indexToGraph[
|
|
23079
|
+
var D = s.idToIndex[k[v]];
|
|
23080
|
+
s.indexToGraph[D] = c;
|
|
23081
23081
|
}
|
|
23082
23082
|
for (var c = 0; c < s.edgeSize; c++) {
|
|
23083
|
-
var
|
|
23084
|
-
_.id =
|
|
23085
|
-
var I = pt(n.idealEdgeLength) ? n.idealEdgeLength(
|
|
23083
|
+
var P = a[c], _ = {};
|
|
23084
|
+
_.id = P.data("id"), _.sourceId = P.data("source"), _.targetId = P.data("target");
|
|
23085
|
+
var I = pt(n.idealEdgeLength) ? n.idealEdgeLength(P) : n.idealEdgeLength, L = pt(n.edgeElasticity) ? n.edgeElasticity(P) : n.edgeElasticity, B = s.idToIndex[_.sourceId], F = s.idToIndex[_.targetId], M = s.indexToGraph[B], A = s.indexToGraph[F];
|
|
23086
23086
|
if (M != A) {
|
|
23087
23087
|
for (var R = A_(_.sourceId, _.targetId, s), K = s.graphSet[R], H = 0, m = s.layoutNodes[B]; K.indexOf(m.id) === -1; )
|
|
23088
23088
|
m = s.layoutNodes[s.idToIndex[m.parentId]], H++;
|
|
@@ -23393,13 +23393,13 @@ Ig.prototype.run = function() {
|
|
|
23393
23393
|
for (var w = 0; w < a.length; w++) {
|
|
23394
23394
|
var C = a[w], E = C._private.position;
|
|
23395
23395
|
(E.x == null || E.y == null) && (E.x = 0, E.y = 0);
|
|
23396
|
-
var x = C.layoutDimensions(e), T = e.avoidOverlapPadding, k = x.w + T,
|
|
23397
|
-
y = Math.max(y, k), b = Math.max(b,
|
|
23396
|
+
var x = C.layoutDimensions(e), T = e.avoidOverlapPadding, k = x.w + T, D = x.h + T;
|
|
23397
|
+
y = Math.max(y, k), b = Math.max(b, D);
|
|
23398
23398
|
}
|
|
23399
|
-
for (var
|
|
23400
|
-
return !!
|
|
23399
|
+
for (var P = {}, _ = function(oe, ie) {
|
|
23400
|
+
return !!P["c-" + oe + "-" + ie];
|
|
23401
23401
|
}, I = function(oe, ie) {
|
|
23402
|
-
|
|
23402
|
+
P["c-" + oe + "-" + ie] = !0;
|
|
23403
23403
|
}, L = 0, B = 0, F = function() {
|
|
23404
23404
|
B++, B >= l && (B = 0, L++);
|
|
23405
23405
|
}, M = {}, A = 0; A < a.length; A++) {
|
|
@@ -23753,12 +23753,12 @@ kc.registerArrowShapes = function() {
|
|
|
23753
23753
|
}
|
|
23754
23754
|
});
|
|
23755
23755
|
};
|
|
23756
|
-
var
|
|
23757
|
-
|
|
23756
|
+
var Pa = {};
|
|
23757
|
+
Pa.projectIntoViewport = function(t, e) {
|
|
23758
23758
|
var r = this.cy, n = this.findContainerClientCoords(), a = n[0], i = n[1], o = n[4], s = r.pan(), u = r.zoom(), l = ((t - a) / o - s.x) / u, c = ((e - i) / o - s.y) / u;
|
|
23759
23759
|
return [l, c];
|
|
23760
23760
|
};
|
|
23761
|
-
|
|
23761
|
+
Pa.findContainerClientCoords = function() {
|
|
23762
23762
|
if (this.containerBB)
|
|
23763
23763
|
return this.containerBB;
|
|
23764
23764
|
var t = this.container, e = t.getBoundingClientRect(), r = this.cy.window().getComputedStyle(t), n = function(g) {
|
|
@@ -23776,13 +23776,13 @@ Da.findContainerClientCoords = function() {
|
|
|
23776
23776
|
}, o = t.clientWidth, s = t.clientHeight, u = a.left + a.right, l = a.top + a.bottom, c = i.left + i.right, d = e.width / (o + c), v = o - u, h = s - l, f = e.left + a.left + i.left, p = e.top + a.top + i.top;
|
|
23777
23777
|
return this.containerBB = [f, p, v, h, d];
|
|
23778
23778
|
};
|
|
23779
|
-
|
|
23779
|
+
Pa.invalidateContainerClientCoordsCache = function() {
|
|
23780
23780
|
this.containerBB = null;
|
|
23781
23781
|
};
|
|
23782
|
-
|
|
23782
|
+
Pa.findNearestElement = function(t, e, r, n) {
|
|
23783
23783
|
return this.findNearestElements(t, e, r, n)[0];
|
|
23784
23784
|
};
|
|
23785
|
-
|
|
23785
|
+
Pa.findNearestElements = function(t, e, r, n) {
|
|
23786
23786
|
var a = this, i = this, o = i.getCachedZSortedEles(), s = [], u = i.cy.zoom(), l = i.cy.hasCompoundNodes(), c = (n ? 24 : 8) / u, d = (n ? 8 : 2) / u, v = (n ? 8 : 2) / u, h = 1 / 0, f, p;
|
|
23787
23787
|
r && (o = o.interactive);
|
|
23788
23788
|
function m(x, T) {
|
|
@@ -23804,15 +23804,15 @@ Da.findNearestElements = function(t, e, r, n) {
|
|
|
23804
23804
|
s.push(x), f = x, h = T ?? h;
|
|
23805
23805
|
}
|
|
23806
23806
|
function g(x) {
|
|
23807
|
-
var T = x.outerWidth() + 2 * d, k = x.outerHeight() + 2 * d,
|
|
23808
|
-
if (_.x -
|
|
23807
|
+
var T = x.outerWidth() + 2 * d, k = x.outerHeight() + 2 * d, D = T / 2, P = k / 2, _ = x.position(), I = x.pstyle("corner-radius").value === "auto" ? "auto" : x.pstyle("corner-radius").pfValue, L = x._private.rscratch;
|
|
23808
|
+
if (_.x - D <= t && t <= _.x + D && _.y - P <= e && e <= _.y + P) {
|
|
23809
23809
|
var B = i.nodeShapes[a.getNodeShape(x)];
|
|
23810
23810
|
if (B.checkPoint(t, e, 0, T, k, _.x, _.y, I, L))
|
|
23811
23811
|
return m(x, 0), !0;
|
|
23812
23812
|
}
|
|
23813
23813
|
}
|
|
23814
23814
|
function y(x) {
|
|
23815
|
-
var T = x._private, k = T.rscratch,
|
|
23815
|
+
var T = x._private, k = T.rscratch, D = x.pstyle("width").pfValue, P = x.pstyle("arrow-scale").value, _ = D / 2 + c, I = _ * _, L = _ * 2, A = T.source, R = T.target, B;
|
|
23816
23816
|
if (k.edgeType === "segments" || k.edgeType === "straight" || k.edgeType === "haystack") {
|
|
23817
23817
|
for (var F = k.allpts, M = 0; M + 3 < F.length; M += 2)
|
|
23818
23818
|
if (h3(t, e, F[M], F[M + 1], F[M + 2], F[M + 3], L) && I > (B = b3(t, e, F[M], F[M + 1], F[M + 2], F[M + 3])))
|
|
@@ -23822,7 +23822,7 @@ Da.findNearestElements = function(t, e, r, n) {
|
|
|
23822
23822
|
if (p3(t, e, F[M], F[M + 1], F[M + 2], F[M + 3], F[M + 4], F[M + 5], L) && I > (B = y3(t, e, F[M], F[M + 1], F[M + 2], F[M + 3], F[M + 4], F[M + 5])))
|
|
23823
23823
|
return m(x, B), !0;
|
|
23824
23824
|
}
|
|
23825
|
-
for (var A = A || T.source, R = R || T.target, K = a.getArrowWidth(
|
|
23825
|
+
for (var A = A || T.source, R = R || T.target, K = a.getArrowWidth(D, P), H = [{
|
|
23826
23826
|
name: "source",
|
|
23827
23827
|
x: k.arrowStartX,
|
|
23828
23828
|
y: k.arrowStartY,
|
|
@@ -23859,11 +23859,11 @@ Da.findNearestElements = function(t, e, r, n) {
|
|
|
23859
23859
|
return Br(x, T, k);
|
|
23860
23860
|
}
|
|
23861
23861
|
function w(x, T) {
|
|
23862
|
-
var k = x._private,
|
|
23863
|
-
T ?
|
|
23864
|
-
var _ = k.labelBounds[T || "main"], I = x.pstyle(
|
|
23862
|
+
var k = x._private, D = v, P;
|
|
23863
|
+
T ? P = T + "-" : P = "", x.boundingBox();
|
|
23864
|
+
var _ = k.labelBounds[T || "main"], I = x.pstyle(P + "label").value, L = x.pstyle("text-events").strValue === "yes";
|
|
23865
23865
|
if (!(!L || !I)) {
|
|
23866
|
-
var B = b(k.rscratch, "labelX", T), F = b(k.rscratch, "labelY", T), M = b(k.rscratch, "labelAngle", T), A = x.pstyle(
|
|
23866
|
+
var B = b(k.rscratch, "labelX", T), F = b(k.rscratch, "labelY", T), M = b(k.rscratch, "labelAngle", T), A = x.pstyle(P + "text-margin-x").pfValue, R = x.pstyle(P + "text-margin-y").pfValue, K = _.x1 - D - A, H = _.x2 + D - A, q = _.y1 - D - R, j = _.y2 + D - R;
|
|
23867
23867
|
if (M) {
|
|
23868
23868
|
var oe = Math.cos(M), ie = Math.sin(M), re = function(Ee, fe) {
|
|
23869
23869
|
return Ee = Ee - B, fe = fe - F, {
|
|
@@ -23893,7 +23893,7 @@ Da.findNearestElements = function(t, e, r, n) {
|
|
|
23893
23893
|
}
|
|
23894
23894
|
return s;
|
|
23895
23895
|
};
|
|
23896
|
-
|
|
23896
|
+
Pa.getAllInBox = function(t, e, r, n) {
|
|
23897
23897
|
var a = this.getCachedZSortedEles().interactive, i = [], o = Math.min(t, r), s = Math.max(t, r), u = Math.min(e, n), l = Math.max(e, n);
|
|
23898
23898
|
t = o, r = s, e = u, n = l;
|
|
23899
23899
|
for (var c = pr({
|
|
@@ -23952,11 +23952,11 @@ Is.calculateArrowAngles = function(t) {
|
|
|
23952
23952
|
} else if (a || o || s) {
|
|
23953
23953
|
var f = e.allpts, C = e.ctrlpts, E, x, T, k;
|
|
23954
23954
|
if (C.length / 2 % 2 === 0) {
|
|
23955
|
-
var
|
|
23956
|
-
E = Nt(f[
|
|
23955
|
+
var D = f.length / 2 - 1, P = D + 2, _ = P + 2;
|
|
23956
|
+
E = Nt(f[D], f[P], f[_], 0), x = Nt(f[D + 1], f[P + 1], f[_ + 1], 0), T = Nt(f[D], f[P], f[_], 1e-4), k = Nt(f[D + 1], f[P + 1], f[_ + 1], 1e-4);
|
|
23957
23957
|
} else {
|
|
23958
|
-
var
|
|
23959
|
-
E = Nt(f[
|
|
23958
|
+
var P = f.length / 2 - 1, D = P - 2, _ = P + 2;
|
|
23959
|
+
E = Nt(f[D], f[P], f[_], 0.4999), x = Nt(f[D + 1], f[P + 1], f[_ + 1], 0.4999), T = Nt(f[D], f[P], f[_], 0.5), k = Nt(f[D + 1], f[P + 1], f[_ + 1], 0.5);
|
|
23960
23960
|
}
|
|
23961
23961
|
u = T - E, l = k - x;
|
|
23962
23962
|
}
|
|
@@ -24025,10 +24025,10 @@ function Sc(t, e, r, n) {
|
|
|
24025
24025
|
var ir = {};
|
|
24026
24026
|
ir.findMidptPtsEtc = function(t, e) {
|
|
24027
24027
|
var r = e.posPts, n = e.intersectionPts, a = e.vectorNormInverse, i, o = t.pstyle("source-endpoint"), s = t.pstyle("target-endpoint"), u = o.units != null && s.units != null, l = function(C, E, x, T) {
|
|
24028
|
-
var k = T - E,
|
|
24028
|
+
var k = T - E, D = x - C, P = Math.sqrt(D * D + k * k);
|
|
24029
24029
|
return {
|
|
24030
|
-
x: -k /
|
|
24031
|
-
y:
|
|
24030
|
+
x: -k / P,
|
|
24031
|
+
y: D / P
|
|
24032
24032
|
};
|
|
24033
24033
|
}, c = t.pstyle("edge-distances").value;
|
|
24034
24034
|
switch (c) {
|
|
@@ -24129,11 +24129,11 @@ ir.findBezierPoints = function(t, e, r, n, a) {
|
|
|
24129
24129
|
ir.findTaxiPoints = function(t, e) {
|
|
24130
24130
|
var r = t._private.rscratch;
|
|
24131
24131
|
r.edgeType = "segments";
|
|
24132
|
-
var n = "vertical", a = "horizontal", i = "leftward", o = "rightward", s = "downward", u = "upward", l = "auto", c = e.posPts, d = e.srcW, v = e.srcH, h = e.tgtW, f = e.tgtH, p = t.pstyle("edge-distances").value, m = p !== "node-position", g = t.pstyle("taxi-direction").value, y = g, b = t.pstyle("taxi-turn"), w = b.units === "%", C = b.pfValue, E = C < 0, x = t.pstyle("taxi-turn-min-distance").pfValue, T = m ? (d + h) / 2 : 0, k = m ? (v + f) / 2 : 0,
|
|
24132
|
+
var n = "vertical", a = "horizontal", i = "leftward", o = "rightward", s = "downward", u = "upward", l = "auto", c = e.posPts, d = e.srcW, v = e.srcH, h = e.tgtW, f = e.tgtH, p = t.pstyle("edge-distances").value, m = p !== "node-position", g = t.pstyle("taxi-direction").value, y = g, b = t.pstyle("taxi-turn"), w = b.units === "%", C = b.pfValue, E = C < 0, x = t.pstyle("taxi-turn-min-distance").pfValue, T = m ? (d + h) / 2 : 0, k = m ? (v + f) / 2 : 0, D = c.x2 - c.x1, P = c.y2 - c.y1, _ = function(Ie, Ae) {
|
|
24133
24133
|
return Ie > 0 ? Math.max(Ie - Ae, 0) : Math.min(Ie + Ae, 0);
|
|
24134
|
-
}, I = _(
|
|
24134
|
+
}, I = _(D, T), L = _(P, k), B = !1;
|
|
24135
24135
|
y === l ? g = Math.abs(I) > Math.abs(L) ? a : n : y === u || y === s ? (g = n, B = !0) : (y === i || y === o) && (g = a, B = !0);
|
|
24136
|
-
var F = g === n, M = F ? L : I, A = F ?
|
|
24136
|
+
var F = g === n, M = F ? L : I, A = F ? P : D, R = qp(A), K = !1;
|
|
24137
24137
|
!(B && (w || E)) && (y === s && A < 0 || y === u && A > 0 || y === i && A > 0 || y === o && A < 0) && (R *= -1, M = R * Math.abs(M), K = !0);
|
|
24138
24138
|
var H;
|
|
24139
24139
|
if (w) {
|
|
@@ -24148,7 +24148,7 @@ ir.findTaxiPoints = function(t, e) {
|
|
|
24148
24148
|
}, ie = oe(H), re = oe(Math.abs(M) - Math.abs(H)), le = ie || re;
|
|
24149
24149
|
if (le && !K)
|
|
24150
24150
|
if (F) {
|
|
24151
|
-
var Q = Math.abs(A) <= v / 2, N = Math.abs(
|
|
24151
|
+
var Q = Math.abs(A) <= v / 2, N = Math.abs(D) <= h / 2;
|
|
24152
24152
|
if (Q) {
|
|
24153
24153
|
var U = (c.x1 + c.x2) / 2, X = c.y1, ge = c.y2;
|
|
24154
24154
|
r.segpts = [U, X, U, ge];
|
|
@@ -24158,10 +24158,10 @@ ir.findTaxiPoints = function(t, e) {
|
|
|
24158
24158
|
} else
|
|
24159
24159
|
r.segpts = [c.x1, c.y2];
|
|
24160
24160
|
} else {
|
|
24161
|
-
var xe = Math.abs(A) <= d / 2, ke = Math.abs(
|
|
24161
|
+
var xe = Math.abs(A) <= d / 2, ke = Math.abs(P) <= f / 2;
|
|
24162
24162
|
if (xe) {
|
|
24163
|
-
var Ce = (c.y1 + c.y2) / 2,
|
|
24164
|
-
r.segpts = [
|
|
24163
|
+
var Ce = (c.y1 + c.y2) / 2, Pe = c.x1, He = c.x2;
|
|
24164
|
+
r.segpts = [Pe, Ce, He, Ce];
|
|
24165
24165
|
} else if (ke) {
|
|
24166
24166
|
var qe = (c.x1 + c.x2) / 2, Me = c.y1, Ue = c.y2;
|
|
24167
24167
|
r.segpts = [qe, Me, qe, Ue];
|
|
@@ -24195,17 +24195,17 @@ ir.tryToCorrectInvalidPoints = function(t, e) {
|
|
|
24195
24195
|
}, {
|
|
24196
24196
|
x: r.endX,
|
|
24197
24197
|
y: r.endY
|
|
24198
|
-
}), k = T < C,
|
|
24198
|
+
}), k = T < C, D = !1;
|
|
24199
24199
|
if (p || m || x) {
|
|
24200
|
-
|
|
24201
|
-
var
|
|
24200
|
+
D = !0;
|
|
24201
|
+
var P = {
|
|
24202
24202
|
// delta
|
|
24203
24203
|
x: r.ctrlpts[0] - n.x,
|
|
24204
24204
|
y: r.ctrlpts[1] - n.y
|
|
24205
|
-
}, _ = Math.sqrt(
|
|
24205
|
+
}, _ = Math.sqrt(P.x * P.x + P.y * P.y), I = {
|
|
24206
24206
|
// normalised delta
|
|
24207
|
-
x:
|
|
24208
|
-
y:
|
|
24207
|
+
x: P.x / _,
|
|
24208
|
+
y: P.y / _
|
|
24209
24209
|
}, L = Math.max(i, o), B = {
|
|
24210
24210
|
// *2 radius guarantees outside shape
|
|
24211
24211
|
x: r.ctrlpts[0] + I.x * 2 * L,
|
|
@@ -24214,7 +24214,7 @@ ir.tryToCorrectInvalidPoints = function(t, e) {
|
|
|
24214
24214
|
x ? (r.ctrlpts[0] = r.ctrlpts[0] + I.x * (C - E), r.ctrlpts[1] = r.ctrlpts[1] + I.y * (C - E)) : (r.ctrlpts[0] = F[0] + I.x * C, r.ctrlpts[1] = F[1] + I.y * C);
|
|
24215
24215
|
}
|
|
24216
24216
|
if (g || y || k) {
|
|
24217
|
-
|
|
24217
|
+
D = !0;
|
|
24218
24218
|
var M = {
|
|
24219
24219
|
// delta
|
|
24220
24220
|
x: r.ctrlpts[0] - a.x,
|
|
@@ -24230,7 +24230,7 @@ ir.tryToCorrectInvalidPoints = function(t, e) {
|
|
|
24230
24230
|
}, q = c.intersectLine(a.x, a.y, s, u, H.x, H.y, 0, v, f);
|
|
24231
24231
|
k ? (r.ctrlpts[0] = r.ctrlpts[0] + R.x * (C - T), r.ctrlpts[1] = r.ctrlpts[1] + R.y * (C - T)) : (r.ctrlpts[0] = q[0] + R.x * C, r.ctrlpts[1] = q[1] + R.y * C);
|
|
24232
24232
|
}
|
|
24233
|
-
|
|
24233
|
+
D && this.findEndpoints(t);
|
|
24234
24234
|
}
|
|
24235
24235
|
};
|
|
24236
24236
|
ir.storeAllpts = function(t) {
|
|
@@ -24312,12 +24312,12 @@ ir.findEdgeControlPoints = function(t) {
|
|
|
24312
24312
|
}
|
|
24313
24313
|
}
|
|
24314
24314
|
for (var w = function(x) {
|
|
24315
|
-
var T = o[x], k = i.get(T),
|
|
24315
|
+
var T = o[x], k = i.get(T), D = void 0;
|
|
24316
24316
|
if (!k.hasUnbundled) {
|
|
24317
|
-
var
|
|
24317
|
+
var P = k.eles[0].parallelEdges().filter(function(ne) {
|
|
24318
24318
|
return ne.isBundledBezier();
|
|
24319
24319
|
});
|
|
24320
|
-
cc(k.eles),
|
|
24320
|
+
cc(k.eles), P.forEach(function(ne) {
|
|
24321
24321
|
return k.eles.push(ne);
|
|
24322
24322
|
}), k.eles.sort(function(ne, Y) {
|
|
24323
24323
|
return ne.poolIndex() - Y.poolIndex();
|
|
@@ -24348,7 +24348,7 @@ ir.findEdgeControlPoints = function(t) {
|
|
|
24348
24348
|
x2: xe[0],
|
|
24349
24349
|
y1: fe[1],
|
|
24350
24350
|
y2: xe[1]
|
|
24351
|
-
},
|
|
24351
|
+
}, Pe = k.posPts = {
|
|
24352
24352
|
x1: F.x,
|
|
24353
24353
|
x2: M.x,
|
|
24354
24354
|
y1: F.y,
|
|
@@ -24363,7 +24363,7 @@ ir.findEdgeControlPoints = function(t) {
|
|
|
24363
24363
|
x: -se.y,
|
|
24364
24364
|
y: se.x
|
|
24365
24365
|
};
|
|
24366
|
-
k.nodesOverlap = !ye(Me) || j.checkPoint(fe[0], fe[1], 0, K, H, M.x, M.y, ie, re) || q.checkPoint(xe[0], xe[1], 0, A, R, F.x, F.y, oe, le), k.vectorNormInverse = S,
|
|
24366
|
+
k.nodesOverlap = !ye(Me) || j.checkPoint(fe[0], fe[1], 0, K, H, M.x, M.y, ie, re) || q.checkPoint(xe[0], xe[1], 0, A, R, F.x, F.y, oe, le), k.vectorNormInverse = S, D = {
|
|
24367
24367
|
nodesOverlap: k.nodesOverlap,
|
|
24368
24368
|
dirCounts: k.dirCounts,
|
|
24369
24369
|
calculatedIntersection: !0,
|
|
@@ -24381,10 +24381,10 @@ ir.findEdgeControlPoints = function(t) {
|
|
|
24381
24381
|
srcShape: j,
|
|
24382
24382
|
tgtShape: q,
|
|
24383
24383
|
posPts: {
|
|
24384
|
-
x1:
|
|
24385
|
-
y1:
|
|
24386
|
-
x2:
|
|
24387
|
-
y2:
|
|
24384
|
+
x1: Pe.x2,
|
|
24385
|
+
y1: Pe.y2,
|
|
24386
|
+
x2: Pe.x1,
|
|
24387
|
+
y2: Pe.y1
|
|
24388
24388
|
},
|
|
24389
24389
|
intersectionPts: {
|
|
24390
24390
|
x1: Ce.x2,
|
|
@@ -24406,7 +24406,7 @@ ir.findEdgeControlPoints = function(t) {
|
|
|
24406
24406
|
}
|
|
24407
24407
|
};
|
|
24408
24408
|
}
|
|
24409
|
-
var z = Ee ?
|
|
24409
|
+
var z = Ee ? D : k;
|
|
24410
24410
|
U.nodesOverlap = z.nodesOverlap, U.srcIntn = z.srcIntn, U.tgtIntn = z.tgtIntn, U.isRound = X.startsWith("round"), a && (I.isParent() || I.isChild() || L.isParent() || L.isChild()) && (I.parents().anySame(L) || L.parents().anySame(I) || I.same(L) && I.isParent()) ? e.findCompoundLoopPoints(N, z, Q, ge) : I === L ? e.findLoopPoints(N, z, Q, ge) : X.endsWith("segments") ? e.findSegmentsPoints(N, z) : X.endsWith("taxi") ? e.findTaxiPoints(N, z) : X === "straight" || !ge && k.eles.length % 2 === 1 && Q === Math.floor(k.eles.length / 2) ? e.findStraightEdgePoints(N) : e.findBezierPoints(N, z, Q, ge, Ee), e.findEndpoints(N), e.tryToCorrectInvalidPoints(N, z), e.checkForInvalidEdgeWarning(N), e.storeAllpts(N), e.storeEdgeProjections(N), e.calculateArrowAngles(N), e.recalculateEdgeLabelProjections(N), e.calculateLabelAngles(N);
|
|
24411
24411
|
}
|
|
24412
24412
|
}, C = 0; C < o.length; C++)
|
|
@@ -24458,8 +24458,8 @@ Oo.manualEndptToPx = function(t, e) {
|
|
|
24458
24458
|
}
|
|
24459
24459
|
};
|
|
24460
24460
|
Oo.findEndpoints = function(t) {
|
|
24461
|
-
var e = this, r, n = t.source()[0], a = t.target()[0], i = n.position(), o = a.position(), s = t.pstyle("target-arrow-shape").value, u = t.pstyle("source-arrow-shape").value, l = t.pstyle("target-distance-from-node").pfValue, c = t.pstyle("source-distance-from-node").pfValue, d = n._private.rscratch, v = a._private.rscratch, h = t.pstyle("curve-style").value, f = t._private.rscratch, p = f.edgeType, m = h === "taxi", g = p === "self" || p === "compound", y = p === "bezier" || p === "multibezier" || g, b = p !== "bezier", w = p === "straight" || p === "segments", C = p === "segments", E = y || b || w, x = g || m, T = t.pstyle("source-endpoint"), k = x ? "outside-to-node" : T.value,
|
|
24462
|
-
f.srcManEndpt = T, f.tgtManEndpt =
|
|
24461
|
+
var e = this, r, n = t.source()[0], a = t.target()[0], i = n.position(), o = a.position(), s = t.pstyle("target-arrow-shape").value, u = t.pstyle("source-arrow-shape").value, l = t.pstyle("target-distance-from-node").pfValue, c = t.pstyle("source-distance-from-node").pfValue, d = n._private.rscratch, v = a._private.rscratch, h = t.pstyle("curve-style").value, f = t._private.rscratch, p = f.edgeType, m = h === "taxi", g = p === "self" || p === "compound", y = p === "bezier" || p === "multibezier" || g, b = p !== "bezier", w = p === "straight" || p === "segments", C = p === "segments", E = y || b || w, x = g || m, T = t.pstyle("source-endpoint"), k = x ? "outside-to-node" : T.value, D = n.pstyle("corner-radius").value === "auto" ? "auto" : n.pstyle("corner-radius").pfValue, P = t.pstyle("target-endpoint"), _ = x ? "outside-to-node" : P.value, I = a.pstyle("corner-radius").value === "auto" ? "auto" : a.pstyle("corner-radius").pfValue;
|
|
24462
|
+
f.srcManEndpt = T, f.tgtManEndpt = P;
|
|
24463
24463
|
var L, B, F, M;
|
|
24464
24464
|
if (y) {
|
|
24465
24465
|
var A = [f.ctrlpts[0], f.ctrlpts[1]], R = b ? [f.ctrlpts[f.ctrlpts.length - 2], f.ctrlpts[f.ctrlpts.length - 1]] : A;
|
|
@@ -24470,8 +24470,8 @@ Oo.findEndpoints = function(t) {
|
|
|
24470
24470
|
}
|
|
24471
24471
|
if (_ === "inside-to-node")
|
|
24472
24472
|
r = [o.x, o.y];
|
|
24473
|
-
else if (
|
|
24474
|
-
r = this.manualEndptToPx(a,
|
|
24473
|
+
else if (P.units)
|
|
24474
|
+
r = this.manualEndptToPx(a, P);
|
|
24475
24475
|
else if (_ === "outside-to-line")
|
|
24476
24476
|
r = f.tgtIntn;
|
|
24477
24477
|
else if (_ === "outside-to-node" || _ === "outside-to-node-or-label" ? F = L : (_ === "outside-to-line" || _ === "outside-to-line-or-label") && (F = [i.x, i.y]), r = e.nodeShapes[this.getNodeShape(a)].intersectLine(o.x, o.y, a.outerWidth(), a.outerHeight(), F[0], F[1], 0, I, v), _ === "outside-to-node-or-label" || _ === "outside-to-line-or-label") {
|
|
@@ -24498,8 +24498,8 @@ Oo.findEndpoints = function(t) {
|
|
|
24498
24498
|
r = this.manualEndptToPx(n, T);
|
|
24499
24499
|
else if (k === "outside-to-line")
|
|
24500
24500
|
r = f.srcIntn;
|
|
24501
|
-
else if (k === "outside-to-node" || k === "outside-to-node-or-label" ? M = B : (k === "outside-to-line" || k === "outside-to-line-or-label") && (M = [o.x, o.y]), r = e.nodeShapes[this.getNodeShape(n)].intersectLine(i.x, i.y, n.outerWidth(), n.outerHeight(), M[0], M[1], 0,
|
|
24502
|
-
var
|
|
24501
|
+
else if (k === "outside-to-node" || k === "outside-to-node-or-label" ? M = B : (k === "outside-to-line" || k === "outside-to-line-or-label") && (M = [o.x, o.y]), r = e.nodeShapes[this.getNodeShape(n)].intersectLine(i.x, i.y, n.outerWidth(), n.outerHeight(), M[0], M[1], 0, D, d), k === "outside-to-node-or-label" || k === "outside-to-line-or-label") {
|
|
24502
|
+
var Pe = n._private.rscratch, He = Pe.labelWidth, qe = Pe.labelHeight, Me = Pe.labelX, Ue = Pe.labelY, se = He / 2, S = qe / 2, z = n.pstyle("text-valign").value;
|
|
24503
24503
|
z === "top" ? Ue -= S : z === "bottom" && (Ue += S);
|
|
24504
24504
|
var ne = n.pstyle("text-halign").value;
|
|
24505
24505
|
ne === "left" ? Me -= se : ne === "right" && (Me += se);
|
|
@@ -24515,8 +24515,8 @@ Oo.findEndpoints = function(t) {
|
|
|
24515
24515
|
}
|
|
24516
24516
|
}
|
|
24517
24517
|
}
|
|
24518
|
-
var Ae = Ko(r, B, e.arrowShapes[u].spacing(t) + c),
|
|
24519
|
-
f.startX =
|
|
24518
|
+
var Ae = Ko(r, B, e.arrowShapes[u].spacing(t) + c), De = Ko(r, B, e.arrowShapes[u].gap(t) + c);
|
|
24519
|
+
f.startX = De[0], f.startY = De[1], f.arrowStartX = Ae[0], f.arrowStartY = Ae[1], E && (!ye(f.startX) || !ye(f.startY) || !ye(f.endX) || !ye(f.endY) ? f.badLine = !0 : f.badLine = !1);
|
|
24520
24520
|
};
|
|
24521
24521
|
Oo.getSourceEndpoint = function(t) {
|
|
24522
24522
|
var e = t[0]._private.rscratch;
|
|
@@ -24666,12 +24666,12 @@ nn.recalculateEdgeLabelProjections = function(t) {
|
|
|
24666
24666
|
});
|
|
24667
24667
|
}
|
|
24668
24668
|
var m = r.rstyle.bezierPts, g = a.bezierProjPcts.length;
|
|
24669
|
-
function y(x, T, k,
|
|
24669
|
+
function y(x, T, k, D, P) {
|
|
24670
24670
|
var _ = ya(T, k), I = x.segments[x.segments.length - 1], L = {
|
|
24671
24671
|
p0: T,
|
|
24672
24672
|
p1: k,
|
|
24673
|
-
t0:
|
|
24674
|
-
t1:
|
|
24673
|
+
t0: D,
|
|
24674
|
+
t1: P,
|
|
24675
24675
|
startDist: I ? I.startDist + I.length : 0,
|
|
24676
24676
|
length: _
|
|
24677
24677
|
};
|
|
@@ -24708,7 +24708,7 @@ nn.recalculateEdgeLabelProjections = function(t) {
|
|
|
24708
24708
|
if (m)
|
|
24709
24709
|
break;
|
|
24710
24710
|
}
|
|
24711
|
-
var T = m.cp, k = m.segment,
|
|
24711
|
+
var T = m.cp, k = m.segment, D = (f - g) / k.length, P = k.t1 - k.t0, _ = h ? k.t0 + P * D : k.t1 - P * D;
|
|
24712
24712
|
_ = io(0, _, 1), e = Ga(T.p0, T.p1, T.p2, _), v = nL(T.p0, T.p1, T.p2, _);
|
|
24713
24713
|
break;
|
|
24714
24714
|
}
|
|
@@ -24770,10 +24770,10 @@ nn.getLabelText = function(t, e) {
|
|
|
24770
24770
|
var C = g.matchAll(p), E = "", x = 0, T = kp(C), k;
|
|
24771
24771
|
try {
|
|
24772
24772
|
for (T.s(); !(k = T.n()).done; ) {
|
|
24773
|
-
var
|
|
24774
|
-
x =
|
|
24775
|
-
var I = E.length === 0 ? _ : E + _ +
|
|
24776
|
-
B <= d ? E += _ +
|
|
24773
|
+
var D = k.value, P = D[0], _ = g.substring(x, D.index);
|
|
24774
|
+
x = D.index + P.length;
|
|
24775
|
+
var I = E.length === 0 ? _ : E + _ + P, L = this.calculateLabelDimensions(t, I), B = L.width;
|
|
24776
|
+
B <= d ? E += _ + P : (E && f.push(E), E = _ + P);
|
|
24777
24777
|
}
|
|
24778
24778
|
} catch (q) {
|
|
24779
24779
|
T.e(q);
|
|
@@ -24950,7 +24950,7 @@ vl.getCachedZSortedEles = function(t) {
|
|
|
24950
24950
|
return e;
|
|
24951
24951
|
};
|
|
24952
24952
|
var Kg = {};
|
|
24953
|
-
[
|
|
24953
|
+
[Pa, Is, ir, Oo, Tc, nn, qg, fl, vl].forEach(function(t) {
|
|
24954
24954
|
$e(Kg, t);
|
|
24955
24955
|
});
|
|
24956
24956
|
var Ug = {};
|
|
@@ -24972,7 +24972,7 @@ xi.registerBinding = function(t, e, r, n) {
|
|
|
24972
24972
|
return i.on.apply(i, a);
|
|
24973
24973
|
};
|
|
24974
24974
|
xi.binder = function(t) {
|
|
24975
|
-
var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body ||
|
|
24975
|
+
var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || P5(t);
|
|
24976
24976
|
if (e.supportsPassiveEvents == null) {
|
|
24977
24977
|
var a = !1;
|
|
24978
24978
|
try {
|
|
@@ -25131,8 +25131,8 @@ xi.load = function() {
|
|
|
25131
25131
|
}
|
|
25132
25132
|
if (!ve)
|
|
25133
25133
|
return !1;
|
|
25134
|
-
for (var
|
|
25135
|
-
if (Te ===
|
|
25134
|
+
for (var De = t.container, Be = S.target, Te = Be.parentNode, _e = !1; Te; ) {
|
|
25135
|
+
if (Te === De) {
|
|
25136
25136
|
_e = !0;
|
|
25137
25137
|
break;
|
|
25138
25138
|
}
|
|
@@ -25182,7 +25182,7 @@ xi.load = function() {
|
|
|
25182
25182
|
te && te.activate();
|
|
25183
25183
|
{
|
|
25184
25184
|
if (te != null && t.nodeIsGrabbable(te)) {
|
|
25185
|
-
var
|
|
25185
|
+
var De = function(ut) {
|
|
25186
25186
|
return {
|
|
25187
25187
|
originalEvent: S,
|
|
25188
25188
|
type: ut,
|
|
@@ -25192,12 +25192,12 @@ xi.load = function() {
|
|
|
25192
25192
|
}
|
|
25193
25193
|
};
|
|
25194
25194
|
}, Be = function(ut) {
|
|
25195
|
-
ut.emit(
|
|
25195
|
+
ut.emit(De("grab"));
|
|
25196
25196
|
};
|
|
25197
25197
|
if (c(te), !te.selected())
|
|
25198
25198
|
ve = t.dragData.possibleDragElements = z.collection(), p(te, {
|
|
25199
25199
|
addToList: ve
|
|
25200
|
-
}), te.emit(
|
|
25200
|
+
}), te.emit(De("grabon")).emit(De("grab"));
|
|
25201
25201
|
else {
|
|
25202
25202
|
ve = t.dragData.possibleDragElements = z.collection();
|
|
25203
25203
|
var Te = z.$(function(_e) {
|
|
@@ -25205,7 +25205,7 @@ xi.load = function() {
|
|
|
25205
25205
|
});
|
|
25206
25206
|
f(Te, {
|
|
25207
25207
|
addToList: ve
|
|
25208
|
-
}), te.emit(
|
|
25208
|
+
}), te.emit(De("grabon")), Te.forEach(Be);
|
|
25209
25209
|
}
|
|
25210
25210
|
t.redrawHint("eles", !0), t.redrawHint("drag", !0);
|
|
25211
25211
|
}
|
|
@@ -25224,8 +25224,8 @@ xi.load = function() {
|
|
|
25224
25224
|
}, !1), t.registerBinding(e, "mousemove", function(S) {
|
|
25225
25225
|
var z = t.hoverData.capture;
|
|
25226
25226
|
if (!(!z && !k(S))) {
|
|
25227
|
-
var ne = !1, Y = t.cy, W = Y.zoom(), he = [S.clientX, S.clientY], te = t.projectIntoViewport(he[0], he[1]), ve = t.hoverData.mdownPos, Ie = t.hoverData.mdownGPos, Ae = t.selection,
|
|
25228
|
-
!t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (
|
|
25227
|
+
var ne = !1, Y = t.cy, W = Y.zoom(), he = [S.clientX, S.clientY], te = t.projectIntoViewport(he[0], he[1]), ve = t.hoverData.mdownPos, Ie = t.hoverData.mdownGPos, Ae = t.selection, De = null;
|
|
25228
|
+
!t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (De = t.findNearestElement(te[0], te[1], !0, !1));
|
|
25229
25229
|
var Be = t.hoverData.last, Te = t.hoverData.down, _e = [te[0] - Ae[2], te[1] - Ae[3]], ut = t.dragData.possibleDragElements, nt;
|
|
25230
25230
|
if (Ie) {
|
|
25231
25231
|
var kt = he[0] - Ie[0], St = kt * kt, bt = he[1] - Ie[1], Xt = bt * bt, Ot = St + Xt;
|
|
@@ -25237,7 +25237,7 @@ xi.load = function() {
|
|
|
25237
25237
|
var G = t.hoverData.dragDelta = t.hoverData.dragDelta || [];
|
|
25238
25238
|
G.length === 0 ? (G.push(_e[0]), G.push(_e[1])) : (G[0] += _e[0], G[1] += _e[1]);
|
|
25239
25239
|
};
|
|
25240
|
-
ne = !0, n(
|
|
25240
|
+
ne = !0, n(De, ["mousemove", "vmousemove", "tapdrag"], S, {
|
|
25241
25241
|
x: te[0],
|
|
25242
25242
|
y: te[1]
|
|
25243
25243
|
});
|
|
@@ -25261,14 +25261,14 @@ xi.load = function() {
|
|
|
25261
25261
|
y: te[1]
|
|
25262
25262
|
}
|
|
25263
25263
|
};
|
|
25264
|
-
Te ? Te.emit(jt) : Y.emit(jt), t.hoverData.cxtDragged = !0, (!t.hoverData.cxtOver ||
|
|
25264
|
+
Te ? Te.emit(jt) : Y.emit(jt), t.hoverData.cxtDragged = !0, (!t.hoverData.cxtOver || De !== t.hoverData.cxtOver) && (t.hoverData.cxtOver && t.hoverData.cxtOver.emit({
|
|
25265
25265
|
originalEvent: S,
|
|
25266
25266
|
type: "cxtdragout",
|
|
25267
25267
|
position: {
|
|
25268
25268
|
x: te[0],
|
|
25269
25269
|
y: te[1]
|
|
25270
25270
|
}
|
|
25271
|
-
}), t.hoverData.cxtOver =
|
|
25271
|
+
}), t.hoverData.cxtOver = De, De && De.emit({
|
|
25272
25272
|
originalEvent: S,
|
|
25273
25273
|
type: "cxtdragover",
|
|
25274
25274
|
position: {
|
|
@@ -25305,13 +25305,13 @@ xi.load = function() {
|
|
|
25305
25305
|
Te && Te.pannable() && Te.active() && Te.unactivate();
|
|
25306
25306
|
}
|
|
25307
25307
|
} else {
|
|
25308
|
-
if (Te && Te.pannable() && Te.active() && Te.unactivate(), (!Te || !Te.grabbed()) &&
|
|
25308
|
+
if (Te && Te.pannable() && Te.active() && Te.unactivate(), (!Te || !Te.grabbed()) && De != Be && (Be && n(Be, ["mouseout", "tapdragout"], S, {
|
|
25309
25309
|
x: te[0],
|
|
25310
25310
|
y: te[1]
|
|
25311
|
-
}),
|
|
25311
|
+
}), De && n(De, ["mouseover", "tapdragover"], S, {
|
|
25312
25312
|
x: te[0],
|
|
25313
25313
|
y: te[1]
|
|
25314
|
-
}), t.hoverData.last =
|
|
25314
|
+
}), t.hoverData.last = De), Te)
|
|
25315
25315
|
if (nt) {
|
|
25316
25316
|
if (Y.boxSelectionEnabled() && Mt)
|
|
25317
25317
|
Te && Te.grabbed() && (m(ut), Te.emit("freeon"), ut.emit("free"), t.dragData.didDrag && (Te.emit("dragfreeon"), ut.emit("dragfree"))), Zt();
|
|
@@ -25338,7 +25338,7 @@ xi.load = function() {
|
|
|
25338
25338
|
return S.stopPropagation && S.stopPropagation(), S.preventDefault && S.preventDefault(), !1;
|
|
25339
25339
|
}
|
|
25340
25340
|
}, !1);
|
|
25341
|
-
var
|
|
25341
|
+
var D, P, _;
|
|
25342
25342
|
t.registerBinding(e, "mouseup", function(S) {
|
|
25343
25343
|
if (!(t.hoverData.which === 1 && S.which !== 1 && t.hoverData.capture)) {
|
|
25344
25344
|
var z = t.hoverData.capture;
|
|
@@ -25355,7 +25355,7 @@ xi.load = function() {
|
|
|
25355
25355
|
}
|
|
25356
25356
|
};
|
|
25357
25357
|
if (ve ? ve.emit(Ae) : ne.emit(Ae), !t.hoverData.cxtDragged) {
|
|
25358
|
-
var
|
|
25358
|
+
var De = {
|
|
25359
25359
|
originalEvent: S,
|
|
25360
25360
|
type: "cxttap",
|
|
25361
25361
|
position: {
|
|
@@ -25363,7 +25363,7 @@ xi.load = function() {
|
|
|
25363
25363
|
y: Y[1]
|
|
25364
25364
|
}
|
|
25365
25365
|
};
|
|
25366
|
-
ve ? ve.emit(
|
|
25366
|
+
ve ? ve.emit(De) : ne.emit(De);
|
|
25367
25367
|
}
|
|
25368
25368
|
t.hoverData.cxtDragged = !1, t.hoverData.which = null;
|
|
25369
25369
|
} else if (t.hoverData.which === 1) {
|
|
@@ -25376,11 +25376,11 @@ xi.load = function() {
|
|
|
25376
25376
|
!t.hoverData.isOverThresholdDrag && (n(ve, ["click", "tap", "vclick"], S, {
|
|
25377
25377
|
x: Y[0],
|
|
25378
25378
|
y: Y[1]
|
|
25379
|
-
}),
|
|
25379
|
+
}), P = !1, S.timeStamp - _ <= ne.multiClickDebounceTime() ? (D && clearTimeout(D), P = !0, _ = null, n(ve, ["dblclick", "dbltap", "vdblclick"], S, {
|
|
25380
25380
|
x: Y[0],
|
|
25381
25381
|
y: Y[1]
|
|
25382
|
-
})) : (
|
|
25383
|
-
|
|
25382
|
+
})) : (D = setTimeout(function() {
|
|
25383
|
+
P || n(ve, ["oneclick", "onetap", "voneclick"], S, {
|
|
25384
25384
|
x: Y[0],
|
|
25385
25385
|
y: Y[1]
|
|
25386
25386
|
});
|
|
@@ -25493,15 +25493,15 @@ xi.load = function() {
|
|
|
25493
25493
|
A = le(L, B, F, M), R = Q(L, B, F, M), K = [(L + F) / 2, (B + M) / 2], H = [(K[0] - te.x) / ve, (K[1] - te.y) / ve];
|
|
25494
25494
|
var Ie = 200, Ae = Ie * Ie;
|
|
25495
25495
|
if (R < Ae && !S.touches[2]) {
|
|
25496
|
-
var
|
|
25497
|
-
|
|
25496
|
+
var De = t.findNearestElement(ne[0], ne[1], !0, !0), Be = t.findNearestElement(ne[2], ne[3], !0, !0);
|
|
25497
|
+
De && De.isNode() ? (De.activate().emit({
|
|
25498
25498
|
originalEvent: S,
|
|
25499
25499
|
type: "cxttapstart",
|
|
25500
25500
|
position: {
|
|
25501
25501
|
x: ne[0],
|
|
25502
25502
|
y: ne[1]
|
|
25503
25503
|
}
|
|
25504
|
-
}), t.touchData.start =
|
|
25504
|
+
}), t.touchData.start = De) : Be && Be.isNode() ? (Be.activate().emit({
|
|
25505
25505
|
originalEvent: S,
|
|
25506
25506
|
type: "cxttapstart",
|
|
25507
25507
|
position: {
|
|
@@ -25588,8 +25588,8 @@ xi.load = function() {
|
|
|
25588
25588
|
}
|
|
25589
25589
|
var Ie = t.touchData.startGPosition, Ae;
|
|
25590
25590
|
if (z && S.touches[0] && Ie) {
|
|
25591
|
-
for (var
|
|
25592
|
-
|
|
25591
|
+
for (var De = [], Be = 0; Be < W.length; Be++)
|
|
25592
|
+
De[Be] = W[Be] - he[Be];
|
|
25593
25593
|
var Te = S.touches[0].clientX - Ie[0], _e = Te * Te, ut = S.touches[0].clientY - Ie[1], nt = ut * ut, kt = _e + nt;
|
|
25594
25594
|
Ae = kt >= t.touchTapThreshold2;
|
|
25595
25595
|
}
|
|
@@ -25656,8 +25656,8 @@ xi.load = function() {
|
|
|
25656
25656
|
}
|
|
25657
25657
|
var G = t.touchData.start, St = S.touches[0].clientX - q, bt = S.touches[0].clientY - j, Xt = S.touches[1].clientX - q, Ot = S.touches[1].clientY - j, we = le(St, bt, Xt, Ot), Ge = we / A;
|
|
25658
25658
|
if (re) {
|
|
25659
|
-
var at = St - L, qr = bt - B, Sn = Xt - F, _a = Ot - M, on = (at + Sn) / 2, xr = (qr + _a) / 2, Tn = Y.zoom(), hl = Tn * Ge, Fo = Y.pan(),
|
|
25660
|
-
x: -hl / Tn * (
|
|
25659
|
+
var at = St - L, qr = bt - B, Sn = Xt - F, _a = Ot - M, on = (at + Sn) / 2, xr = (qr + _a) / 2, Tn = Y.zoom(), hl = Tn * Ge, Fo = Y.pan(), Pc = H[0] * Tn + Fo.x, Oc = H[1] * Tn + Fo.y, s0 = {
|
|
25660
|
+
x: -hl / Tn * (Pc - Fo.x - on) + Pc,
|
|
25661
25661
|
y: -hl / Tn * (Oc - Fo.y - xr) + Oc
|
|
25662
25662
|
};
|
|
25663
25663
|
if (G && G.active()) {
|
|
@@ -25694,7 +25694,7 @@ xi.load = function() {
|
|
|
25694
25694
|
x: 0,
|
|
25695
25695
|
y: 0
|
|
25696
25696
|
};
|
|
25697
|
-
if (ye(
|
|
25697
|
+
if (ye(De[0]) && ye(De[1]) && (ki.x += De[0], ki.y += De[1], _c)) {
|
|
25698
25698
|
t.redrawHint("eles", !0);
|
|
25699
25699
|
var Lr = t.touchData.dragDelta;
|
|
25700
25700
|
Lr && ye(Lr[0]) && ye(Lr[1]) && (ki.x += Lr[0], ki.y += Lr[1]);
|
|
@@ -25702,7 +25702,7 @@ xi.load = function() {
|
|
|
25702
25702
|
t.hoverData.draggingEles = !0, Tt.silentShift(ki).emit("position drag"), t.redrawHint("drag", !0), t.touchData.startPosition[0] == he[0] && t.touchData.startPosition[1] == he[1] && t.redrawHint("eles", !0), t.redraw();
|
|
25703
25703
|
} else {
|
|
25704
25704
|
var Lr = t.touchData.dragDelta = t.touchData.dragDelta || [];
|
|
25705
|
-
Lr.length === 0 ? (Lr.push(
|
|
25705
|
+
Lr.length === 0 ? (Lr.push(De[0]), Lr.push(De[1])) : (Lr[0] += De[0], Lr[1] += De[1]);
|
|
25706
25706
|
}
|
|
25707
25707
|
if (n(_r || wt, ["touchmove", "tapdrag", "vmousemove"], S, {
|
|
25708
25708
|
x: W[0],
|
|
@@ -25727,8 +25727,8 @@ xi.load = function() {
|
|
|
25727
25727
|
if (z && (_r == null || _r.pannable()) && Y.panningEnabled() && Y.userPanningEnabled()) {
|
|
25728
25728
|
var l0 = i(_r, t.touchData.starts);
|
|
25729
25729
|
l0 && (S.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = Ha(t.touchData.startPosition)), t.swipePanning ? (Y.panBy({
|
|
25730
|
-
x:
|
|
25731
|
-
y:
|
|
25730
|
+
x: De[0] * te,
|
|
25731
|
+
y: De[1] * te
|
|
25732
25732
|
}), Y.emit("dragpan")) : Ae && (t.swipePanning = !0, Y.panBy({
|
|
25733
25733
|
x: Te * te,
|
|
25734
25734
|
y: ut * te
|
|
@@ -25780,7 +25780,7 @@ xi.load = function() {
|
|
|
25780
25780
|
y: te[1]
|
|
25781
25781
|
}
|
|
25782
25782
|
}, z ? z.emit(Ae) : W.emit(Ae), !t.touchData.cxtDragged) {
|
|
25783
|
-
var
|
|
25783
|
+
var De = {
|
|
25784
25784
|
originalEvent: S,
|
|
25785
25785
|
type: "cxttap",
|
|
25786
25786
|
position: {
|
|
@@ -25788,7 +25788,7 @@ xi.load = function() {
|
|
|
25788
25788
|
y: te[1]
|
|
25789
25789
|
}
|
|
25790
25790
|
};
|
|
25791
|
-
z ? z.emit(
|
|
25791
|
+
z ? z.emit(De) : W.emit(De);
|
|
25792
25792
|
}
|
|
25793
25793
|
t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !1, t.touchData.start = null, t.redraw();
|
|
25794
25794
|
return;
|
|
@@ -25868,7 +25868,7 @@ xi.load = function() {
|
|
|
25868
25868
|
event: S,
|
|
25869
25869
|
touch: ke(S)
|
|
25870
25870
|
};
|
|
25871
|
-
},
|
|
25871
|
+
}, Pe = function(S) {
|
|
25872
25872
|
xe.push(Ce(S));
|
|
25873
25873
|
}, He = function(S) {
|
|
25874
25874
|
for (var z = 0; z < xe.length; z++) {
|
|
@@ -25891,7 +25891,7 @@ xi.load = function() {
|
|
|
25891
25891
|
return S.pointerType === "mouse" || S.pointerType === 4;
|
|
25892
25892
|
};
|
|
25893
25893
|
t.registerBinding(t.container, "pointerdown", function(se) {
|
|
25894
|
-
Ue(se) || (se.preventDefault(),
|
|
25894
|
+
Ue(se) || (se.preventDefault(), Pe(se), Me(se), N(se));
|
|
25895
25895
|
}), t.registerBinding(t.container, "pointerup", function(se) {
|
|
25896
25896
|
Ue(se) || (He(se), Me(se), ge(se));
|
|
25897
25897
|
}), t.registerBinding(t.container, "pointercancel", function(se) {
|
|
@@ -26070,10 +26070,10 @@ Cn.generateBarrel = function() {
|
|
|
26070
26070
|
var l = su(a, i), c = l.heightOffset, d = l.widthOffset;
|
|
26071
26071
|
if (mn(e, r, this.points, o, s, a, i - 2 * c, [0, -1], n) || mn(e, r, this.points, o, s, a - 2 * d, i, [0, -1], n))
|
|
26072
26072
|
return !0;
|
|
26073
|
-
for (var v = this.generateBarrelBezierPts(a, i, o, s), h = function(T, k,
|
|
26074
|
-
var
|
|
26073
|
+
for (var v = this.generateBarrelBezierPts(a, i, o, s), h = function(T, k, D) {
|
|
26074
|
+
var P = D[4], _ = D[2], I = D[0], L = D[5], B = D[1], F = Math.min(P, I), M = Math.max(P, I), A = Math.min(L, B), R = Math.max(L, B);
|
|
26075
26075
|
if (F <= T && T <= M && A <= k && k <= R) {
|
|
26076
|
-
var K = E3(
|
|
26076
|
+
var K = E3(P, _, I), H = g3(K[0], K[1], K[2], T), q = H.filter(function(j) {
|
|
26077
26077
|
return 0 <= j && j <= 1;
|
|
26078
26078
|
});
|
|
26079
26079
|
if (q.length > 0)
|
|
@@ -26493,16 +26493,16 @@ At.getElement = function(t, e, r, n, a) {
|
|
|
26493
26493
|
break;
|
|
26494
26494
|
}
|
|
26495
26495
|
}
|
|
26496
|
-
var k = E && E.level === n + 1 ? E : null,
|
|
26496
|
+
var k = E && E.level === n + 1 ? E : null, D = function() {
|
|
26497
26497
|
m.context.drawImage(k.texture.canvas, k.x, 0, k.width, k.height, m.usedWidth, 0, d, c);
|
|
26498
26498
|
};
|
|
26499
26499
|
if (m.context.setTransform(1, 0, 0, 1, 0, 0), m.context.clearRect(m.usedWidth, 0, d, f), y(k))
|
|
26500
|
-
|
|
26500
|
+
D();
|
|
26501
26501
|
else if (y(E))
|
|
26502
26502
|
if (w) {
|
|
26503
|
-
for (var
|
|
26504
|
-
k = i.getElement(t, e, r,
|
|
26505
|
-
|
|
26503
|
+
for (var P = E.level; P > n; P--)
|
|
26504
|
+
k = i.getElement(t, e, r, P, qa.downscale);
|
|
26505
|
+
D();
|
|
26506
26506
|
} else
|
|
26507
26507
|
return i.queueElement(t, E.level - 1), E;
|
|
26508
26508
|
else {
|
|
@@ -26641,7 +26641,7 @@ At.setupDequeueing = Wg.setupDequeueing({
|
|
|
26641
26641
|
return e.renderer.beforeRenderPriorities.eleTxrDeq;
|
|
26642
26642
|
}
|
|
26643
26643
|
});
|
|
26644
|
-
var xL = 1, Gi = -4, As = 2, CL = 3.99, EL = 50, kL = 50, SL = 0.15, TL = 0.1,
|
|
26644
|
+
var xL = 1, Gi = -4, As = 2, CL = 3.99, EL = 50, kL = 50, SL = 0.15, TL = 0.1, DL = 0.9, PL = 0.9, OL = 1, iv = 250, _L = 4e3 * 4e3, LL = !0, Yg = function(e) {
|
|
26645
26645
|
var r = this, n = r.renderer = e, a = n.cy;
|
|
26646
26646
|
r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = gn() - 2 * iv, r.skipping = !1, r.eleTxrDeqs = a.collection(), r.scheduleElementRefinement = Qs(function() {
|
|
26647
26647
|
r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs);
|
|
@@ -26678,15 +26678,15 @@ Yt.getLayers = function(t, e, r) {
|
|
|
26678
26678
|
}
|
|
26679
26679
|
n.validateLayersElesOrdering(r, t);
|
|
26680
26680
|
var u = n.layersByLevel, l = Math.pow(2, r), c = u[r] = u[r] || [], d, v = n.levelIsComplete(r, t), h, f = function() {
|
|
26681
|
-
var
|
|
26681
|
+
var D = function(B) {
|
|
26682
26682
|
if (n.validateLayersElesOrdering(B, t), n.levelIsComplete(B, t))
|
|
26683
26683
|
return h = u[B], !0;
|
|
26684
|
-
},
|
|
26684
|
+
}, P = function(B) {
|
|
26685
26685
|
if (!h)
|
|
26686
|
-
for (var F = r + B; Gi <= F && F <= As && !
|
|
26686
|
+
for (var F = r + B; Gi <= F && F <= As && !D(F); F += B)
|
|
26687
26687
|
;
|
|
26688
26688
|
};
|
|
26689
|
-
|
|
26689
|
+
P(1), P(-1);
|
|
26690
26690
|
for (var _ = c.length - 1; _ >= 0; _--) {
|
|
26691
26691
|
var I = c[_];
|
|
26692
26692
|
I.invalid && Kn(c, I);
|
|
@@ -26699,22 +26699,22 @@ Yt.getLayers = function(t, e, r) {
|
|
|
26699
26699
|
var p = function() {
|
|
26700
26700
|
if (!d) {
|
|
26701
26701
|
d = pr();
|
|
26702
|
-
for (var
|
|
26703
|
-
Kp(d, t[
|
|
26702
|
+
for (var D = 0; D < t.length; D++)
|
|
26703
|
+
Kp(d, t[D].boundingBox());
|
|
26704
26704
|
}
|
|
26705
26705
|
return d;
|
|
26706
|
-
}, m = function(
|
|
26707
|
-
|
|
26708
|
-
var
|
|
26706
|
+
}, m = function(D) {
|
|
26707
|
+
D = D || {};
|
|
26708
|
+
var P = D.after;
|
|
26709
26709
|
p();
|
|
26710
26710
|
var _ = d.w * l * (d.h * l);
|
|
26711
26711
|
if (_ > _L)
|
|
26712
26712
|
return null;
|
|
26713
26713
|
var I = n.makeLayer(d, r);
|
|
26714
|
-
if (
|
|
26715
|
-
var L = c.indexOf(
|
|
26714
|
+
if (P != null) {
|
|
26715
|
+
var L = c.indexOf(P) + 1;
|
|
26716
26716
|
c.splice(L, 0, I);
|
|
26717
|
-
} else (
|
|
26717
|
+
} else (D.insert === void 0 || D.insert) && c.unshift(I);
|
|
26718
26718
|
return I;
|
|
26719
26719
|
};
|
|
26720
26720
|
if (n.skipping && !s)
|
|
@@ -26868,8 +26868,8 @@ Yt.setupDequeueing = Wg.setupDequeueing({
|
|
|
26868
26868
|
deqRedrawThreshold: EL,
|
|
26869
26869
|
deqCost: SL,
|
|
26870
26870
|
deqAvgCost: TL,
|
|
26871
|
-
deqNoDrawCost:
|
|
26872
|
-
deqFastCost:
|
|
26871
|
+
deqNoDrawCost: DL,
|
|
26872
|
+
deqFastCost: PL,
|
|
26873
26873
|
deq: function(e, r) {
|
|
26874
26874
|
return e.dequeue(r);
|
|
26875
26875
|
},
|
|
@@ -27044,8 +27044,8 @@ En.drawEdge = function(t, e, r) {
|
|
|
27044
27044
|
t.lineJoin = "round";
|
|
27045
27045
|
var k = e.pstyle("ghost").value === "yes";
|
|
27046
27046
|
if (k) {
|
|
27047
|
-
var
|
|
27048
|
-
t.translate(
|
|
27047
|
+
var D = e.pstyle("ghost-offset-x").pfValue, P = e.pstyle("ghost-offset-y").pfValue, _ = e.pstyle("ghost-opacity").value, I = g * _;
|
|
27048
|
+
t.translate(D, P), b(I), x(I), t.translate(-D, -P);
|
|
27049
27049
|
} else
|
|
27050
27050
|
w();
|
|
27051
27051
|
E(), b(), x(), C(), T(), r && t.translate(u.x1, u.y1);
|
|
@@ -27159,8 +27159,8 @@ En.drawArrowShape = function(t, e, r, n, a, i, o, s, u) {
|
|
|
27159
27159
|
y: 0
|
|
27160
27160
|
}, 1) : g.draw(e, m, u, f, n), e.closePath && e.closePath()), e = h, c && (e.translate(o, s), e.rotate(u), e.scale(m, m)), (r === "filled" || r === "both") && (c ? e.fill(v) : e.fill()), (r === "hollow" || r === "both") && (e.lineWidth = i / (c ? m : 1), e.lineJoin = "miter", c ? e.stroke(v) : e.stroke()), c && (e.scale(1 / m, 1 / m), e.rotate(-u), e.translate(-o, -s));
|
|
27161
27161
|
};
|
|
27162
|
-
var
|
|
27163
|
-
|
|
27162
|
+
var Dc = {};
|
|
27163
|
+
Dc.safeDrawImage = function(t, e, r, n, a, i, o, s, u, l) {
|
|
27164
27164
|
if (!(a <= 0 || i <= 0 || u <= 0 || l <= 0))
|
|
27165
27165
|
try {
|
|
27166
27166
|
t.drawImage(e, r, n, a, i, o, s, u, l);
|
|
@@ -27168,33 +27168,33 @@ Pc.safeDrawImage = function(t, e, r, n, a, i, o, s, u, l) {
|
|
|
27168
27168
|
tt(c);
|
|
27169
27169
|
}
|
|
27170
27170
|
};
|
|
27171
|
-
|
|
27171
|
+
Dc.drawInscribedImage = function(t, e, r, n, a) {
|
|
27172
27172
|
var i = this, o = r.position(), s = o.x, u = o.y, l = r.cy().style(), c = l.getIndexedStyle.bind(l), d = c(r, "background-fit", "value", n), v = c(r, "background-repeat", "value", n), h = r.width(), f = r.height(), p = r.padding() * 2, m = h + (c(r, "background-width-relative-to", "value", n) === "inner" ? 0 : p), g = f + (c(r, "background-height-relative-to", "value", n) === "inner" ? 0 : p), y = r._private.rscratch, b = c(r, "background-clip", "value", n), w = b === "node", C = c(r, "background-image-opacity", "value", n) * a, E = c(r, "background-image-smoothing", "value", n), x = r.pstyle("corner-radius").value;
|
|
27173
27173
|
x !== "auto" && (x = r.pstyle("corner-radius").pfValue);
|
|
27174
27174
|
var T = e.width || e.cachedW, k = e.height || e.cachedH;
|
|
27175
27175
|
(T == null || k == null) && (document.body.appendChild(e), T = e.cachedW = e.width || e.offsetWidth, k = e.cachedH = e.height || e.offsetHeight, document.body.removeChild(e));
|
|
27176
|
-
var
|
|
27177
|
-
if (c(r, "background-width", "value", n) !== "auto" && (c(r, "background-width", "units", n) === "%" ?
|
|
27176
|
+
var D = T, P = k;
|
|
27177
|
+
if (c(r, "background-width", "value", n) !== "auto" && (c(r, "background-width", "units", n) === "%" ? D = c(r, "background-width", "pfValue", n) * m : D = c(r, "background-width", "pfValue", n)), c(r, "background-height", "value", n) !== "auto" && (c(r, "background-height", "units", n) === "%" ? P = c(r, "background-height", "pfValue", n) * g : P = c(r, "background-height", "pfValue", n)), !(D === 0 || P === 0)) {
|
|
27178
27178
|
if (d === "contain") {
|
|
27179
|
-
var _ = Math.min(m /
|
|
27180
|
-
|
|
27179
|
+
var _ = Math.min(m / D, g / P);
|
|
27180
|
+
D *= _, P *= _;
|
|
27181
27181
|
} else if (d === "cover") {
|
|
27182
|
-
var _ = Math.max(m /
|
|
27183
|
-
|
|
27182
|
+
var _ = Math.max(m / D, g / P);
|
|
27183
|
+
D *= _, P *= _;
|
|
27184
27184
|
}
|
|
27185
27185
|
var I = s - m / 2, L = c(r, "background-position-x", "units", n), B = c(r, "background-position-x", "pfValue", n);
|
|
27186
|
-
L === "%" ? I += (m -
|
|
27186
|
+
L === "%" ? I += (m - D) * B : I += B;
|
|
27187
27187
|
var F = c(r, "background-offset-x", "units", n), M = c(r, "background-offset-x", "pfValue", n);
|
|
27188
|
-
F === "%" ? I += (m -
|
|
27188
|
+
F === "%" ? I += (m - D) * M : I += M;
|
|
27189
27189
|
var A = u - g / 2, R = c(r, "background-position-y", "units", n), K = c(r, "background-position-y", "pfValue", n);
|
|
27190
|
-
R === "%" ? A += (g -
|
|
27190
|
+
R === "%" ? A += (g - P) * K : A += K;
|
|
27191
27191
|
var H = c(r, "background-offset-y", "units", n), q = c(r, "background-offset-y", "pfValue", n);
|
|
27192
|
-
H === "%" ? A += (g -
|
|
27192
|
+
H === "%" ? A += (g - P) * q : A += q, y.pathCache && (I -= s, A -= u, s = 0, u = 0);
|
|
27193
27193
|
var j = t.globalAlpha;
|
|
27194
27194
|
t.globalAlpha = C;
|
|
27195
27195
|
var oe = i.getImgSmoothing(t), ie = !1;
|
|
27196
27196
|
if (E === "no" && oe ? (i.setImgSmoothing(t, !1), ie = !0) : E === "yes" && !oe && (i.setImgSmoothing(t, !0), ie = !0), v === "no-repeat")
|
|
27197
|
-
w && (t.save(), y.pathCache ? t.clip(y.pathCache) : (i.nodeShapes[i.getNodeShape(r)].draw(t, s, u, m, g, x, y), t.clip())), i.safeDrawImage(t, e, 0, 0, T, k, I, A,
|
|
27197
|
+
w && (t.save(), y.pathCache ? t.clip(y.pathCache) : (i.nodeShapes[i.getNodeShape(r)].draw(t, s, u, m, g, x, y), t.clip())), i.safeDrawImage(t, e, 0, 0, T, k, I, A, D, P), w && t.restore();
|
|
27198
27198
|
else {
|
|
27199
27199
|
var re = t.createPattern(e, v);
|
|
27200
27200
|
t.fillStyle = re, i.nodeShapes[i.getNodeShape(r)].draw(t, s, u, m, g, x, y), t.translate(I, A), t.fill(), t.translate(-I, -A);
|
|
@@ -27275,7 +27275,7 @@ Oa.drawText = function(t, e, r) {
|
|
|
27275
27275
|
l += p;
|
|
27276
27276
|
break;
|
|
27277
27277
|
}
|
|
27278
|
-
var E = e.pstyle("text-background-opacity").value, x = e.pstyle("text-border-opacity").value, T = e.pstyle("text-border-width").pfValue, k = e.pstyle("text-background-padding").pfValue,
|
|
27278
|
+
var E = e.pstyle("text-background-opacity").value, x = e.pstyle("text-border-opacity").value, T = e.pstyle("text-border-width").pfValue, k = e.pstyle("text-background-padding").pfValue, D = e.pstyle("text-background-shape").strValue, P = D.indexOf("round") === 0, _ = 2;
|
|
27279
27279
|
if (E > 0 || T > 0 && x > 0) {
|
|
27280
27280
|
var I = u - k;
|
|
27281
27281
|
switch (b) {
|
|
@@ -27289,7 +27289,7 @@ Oa.drawText = function(t, e, r) {
|
|
|
27289
27289
|
var L = l - p - k, B = f + 2 * k, F = p + 2 * k;
|
|
27290
27290
|
if (E > 0) {
|
|
27291
27291
|
var M = t.fillStyle, A = e.pstyle("text-background-color").value;
|
|
27292
|
-
t.fillStyle = "rgba(" + A[0] + "," + A[1] + "," + A[2] + "," + E * s + ")",
|
|
27292
|
+
t.fillStyle = "rgba(" + A[0] + "," + A[1] + "," + A[2] + "," + E * s + ")", P ? Hl(t, I, L, B, F, _) : t.fillRect(I, L, B, F), t.fillStyle = M;
|
|
27293
27293
|
}
|
|
27294
27294
|
if (T > 0 && x > 0) {
|
|
27295
27295
|
var R = t.strokeStyle, K = t.lineWidth, H = e.pstyle("text-border-color").value, q = e.pstyle("text-border-style").value;
|
|
@@ -27308,9 +27308,9 @@ Oa.drawText = function(t, e, r) {
|
|
|
27308
27308
|
t.setLineDash([]);
|
|
27309
27309
|
break;
|
|
27310
27310
|
}
|
|
27311
|
-
if (
|
|
27311
|
+
if (P ? Hl(t, I, L, B, F, _, "stroke") : t.strokeRect(I, L, B, F), q === "double") {
|
|
27312
27312
|
var j = T / 2;
|
|
27313
|
-
|
|
27313
|
+
P ? Hl(t, I + j, L + j, B - j * 2, F - j * 2, _, "stroke") : t.strokeRect(I + j, L + j, B - j * 2, F - j * 2);
|
|
27314
27314
|
}
|
|
27315
27315
|
t.setLineDash && t.setLineDash([]), t.lineWidth = K, t.strokeStyle = R;
|
|
27316
27316
|
}
|
|
@@ -27346,13 +27346,13 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27346
27346
|
for (var y = e.pstyle("background-image"), b = y.value, w = new Array(b.length), C = new Array(b.length), E = 0, x = 0; x < b.length; x++) {
|
|
27347
27347
|
var T = b[x], k = w[x] = T != null && T !== "none";
|
|
27348
27348
|
if (k) {
|
|
27349
|
-
var
|
|
27350
|
-
E++, C[x] = o.getCachedImage(T,
|
|
27349
|
+
var D = e.cy().style().getIndexedStyle(e, "background-image-crossorigin", "value", x);
|
|
27350
|
+
E++, C[x] = o.getCachedImage(T, D, function() {
|
|
27351
27351
|
l.backgroundTimestamp = Date.now(), e.emitAndNotify("background");
|
|
27352
27352
|
});
|
|
27353
27353
|
}
|
|
27354
27354
|
}
|
|
27355
|
-
var
|
|
27355
|
+
var P = e.pstyle("background-blacken").value, _ = e.pstyle("border-width").pfValue, I = e.pstyle("background-opacity").value * v, L = e.pstyle("border-color").value, B = e.pstyle("border-style").value, F = e.pstyle("border-join").value, M = e.pstyle("border-cap").value, A = e.pstyle("border-position").value, R = e.pstyle("border-dash-pattern").pfValue, K = e.pstyle("border-dash-offset").pfValue, H = e.pstyle("border-opacity").value * v, q = e.pstyle("outline-width").pfValue, j = e.pstyle("outline-color").value, oe = e.pstyle("outline-style").value, ie = e.pstyle("outline-opacity").value * v, re = e.pstyle("outline-offset").value, le = e.pstyle("corner-radius").value;
|
|
27356
27356
|
le !== "auto" && (le = e.pstyle("corner-radius").pfValue);
|
|
27357
27357
|
var Q = function() {
|
|
27358
27358
|
var he = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : I;
|
|
@@ -27364,8 +27364,8 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27364
27364
|
var he = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ie;
|
|
27365
27365
|
o.colorStrokeStyle(t, j[0], j[1], j[2], he);
|
|
27366
27366
|
}, X = function(he, te, ve, Ie) {
|
|
27367
|
-
var Ae = o.nodePathCache = o.nodePathCache || [],
|
|
27368
|
-
return Be != null ? (Te = Be, _e = !0, c.pathCache = Te) : (Te = new Path2D(), Ae[
|
|
27367
|
+
var Ae = o.nodePathCache = o.nodePathCache || [], De = Np(ve === "polygon" ? ve + "," + Ie.join(",") : ve, "" + te, "" + he, "" + le), Be = Ae[De], Te, _e = !1;
|
|
27368
|
+
return Be != null ? (Te = Be, _e = !0, c.pathCache = Te) : (Te = new Path2D(), Ae[De] = c.pathCache = Te), {
|
|
27369
27369
|
path: Te,
|
|
27370
27370
|
cacheHit: _e
|
|
27371
27371
|
};
|
|
@@ -27386,8 +27386,8 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27386
27386
|
h ? t.fill(f) : t.fill();
|
|
27387
27387
|
}, xe = function() {
|
|
27388
27388
|
for (var he = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, te = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ve = l.backgrounding, Ie = 0, Ae = 0; Ae < C.length; Ae++) {
|
|
27389
|
-
var
|
|
27390
|
-
if (te &&
|
|
27389
|
+
var De = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", Ae);
|
|
27390
|
+
if (te && De === "over" || !te && De === "inside") {
|
|
27391
27391
|
Ie++;
|
|
27392
27392
|
continue;
|
|
27393
27393
|
}
|
|
@@ -27398,9 +27398,9 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27398
27398
|
var he = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, te = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v;
|
|
27399
27399
|
o.hasPie(e) && (o.drawPie(t, e, te), he && (h || o.nodeShapes[o.getNodeShape(e)].draw(t, d.x, d.y, s, u, le, c)));
|
|
27400
27400
|
}, Ce = function() {
|
|
27401
|
-
var he = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, te = (
|
|
27402
|
-
|
|
27403
|
-
},
|
|
27401
|
+
var he = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, te = (P > 0 ? P : -P) * he, ve = P > 0 ? 0 : 255;
|
|
27402
|
+
P !== 0 && (o.colorFillStyle(t, ve, ve, ve, te), h ? t.fill(f) : t.fill());
|
|
27403
|
+
}, Pe = function() {
|
|
27404
27404
|
if (_ > 0) {
|
|
27405
27405
|
if (t.lineWidth = _, t.lineCap = M, t.lineJoin = F, t.setLineDash)
|
|
27406
27406
|
switch (B) {
|
|
@@ -27454,17 +27454,17 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27454
27454
|
});
|
|
27455
27455
|
var te = o.getNodeShape(e), ve = _;
|
|
27456
27456
|
A === "inside" && (ve = 0), A === "outside" && (ve *= 2);
|
|
27457
|
-
var Ie = (s + ve + (q + re)) / s, Ae = (u + ve + (q + re)) / u,
|
|
27457
|
+
var Ie = (s + ve + (q + re)) / s, Ae = (u + ve + (q + re)) / u, De = s * Ie, Be = u * Ae, Te = o.nodeShapes[te].points, _e;
|
|
27458
27458
|
if (h) {
|
|
27459
|
-
var ut = X(
|
|
27459
|
+
var ut = X(De, Be, te, Te);
|
|
27460
27460
|
_e = ut.path;
|
|
27461
27461
|
}
|
|
27462
27462
|
if (te === "ellipse")
|
|
27463
|
-
o.drawEllipsePath(_e || t, he.x, he.y,
|
|
27463
|
+
o.drawEllipsePath(_e || t, he.x, he.y, De, Be);
|
|
27464
27464
|
else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(te)) {
|
|
27465
27465
|
var nt = 0, kt = 0, St = 0;
|
|
27466
|
-
te === "round-diamond" ? nt = (ve + re + q) * 1.4 : te === "round-heptagon" ? (nt = (ve + re + q) * 1.075, St = -(ve / 2 + re + q) / 35) : te === "round-hexagon" ? nt = (ve + re + q) * 1.12 : te === "round-pentagon" ? (nt = (ve + re + q) * 1.13, St = -(ve / 2 + re + q) / 15) : te === "round-tag" ? (nt = (ve + re + q) * 1.12, kt = (ve / 2 + q + re) * 0.07) : te === "round-triangle" && (nt = (ve + re + q) * (Math.PI / 2), St = -(ve + re / 2 + q) / Math.PI), nt !== 0 && (Ie = (s + nt) / s,
|
|
27467
|
-
for (var bt =
|
|
27466
|
+
te === "round-diamond" ? nt = (ve + re + q) * 1.4 : te === "round-heptagon" ? (nt = (ve + re + q) * 1.075, St = -(ve / 2 + re + q) / 35) : te === "round-hexagon" ? nt = (ve + re + q) * 1.12 : te === "round-pentagon" ? (nt = (ve + re + q) * 1.13, St = -(ve / 2 + re + q) / 15) : te === "round-tag" ? (nt = (ve + re + q) * 1.12, kt = (ve / 2 + q + re) * 0.07) : te === "round-triangle" && (nt = (ve + re + q) * (Math.PI / 2), St = -(ve + re / 2 + q) / Math.PI), nt !== 0 && (Ie = (s + nt) / s, De = s * Ie, ["round-hexagon", "round-tag"].includes(te) || (Ae = (u + nt) / u, Be = u * Ae)), le = le === "auto" ? Yp(De, Be) : le;
|
|
27467
|
+
for (var bt = De / 2, Xt = Be / 2, Ot = le + (ve + q + re) / 2, Mt = new Array(Te.length / 2), gr = new Array(Te.length / 2), Zt = 0; Zt < Te.length / 2; Zt++)
|
|
27468
27468
|
Mt[Zt] = {
|
|
27469
27469
|
x: he.x + kt + bt * Te[Zt * 2],
|
|
27470
27470
|
y: he.y + St + Xt * Te[Zt * 2 + 1]
|
|
@@ -27474,19 +27474,19 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27474
27474
|
Or = Mt[jt % wt], ur = Mt[(jt + 1) % wt], gr[jt] = Sc(wr, Or, ur, Ot), wr = Or, Or = ur;
|
|
27475
27475
|
o.drawRoundPolygonPath(_e || t, he.x + kt, he.y + St, s * Ie, u * Ae, Te, gr);
|
|
27476
27476
|
} else if (["roundrectangle", "round-rectangle"].includes(te))
|
|
27477
|
-
le = le === "auto" ? ba(
|
|
27477
|
+
le = le === "auto" ? ba(De, Be) : le, o.drawRoundRectanglePath(_e || t, he.x, he.y, De, Be, le + (ve + q + re) / 2);
|
|
27478
27478
|
else if (["cutrectangle", "cut-rectangle"].includes(te))
|
|
27479
|
-
le = le === "auto" ? vc() : le, o.drawCutRectanglePath(_e || t, he.x, he.y,
|
|
27479
|
+
le = le === "auto" ? vc() : le, o.drawCutRectanglePath(_e || t, he.x, he.y, De, Be, null, le + (ve + q + re) / 4);
|
|
27480
27480
|
else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(te))
|
|
27481
|
-
le = le === "auto" ? ba(
|
|
27481
|
+
le = le === "auto" ? ba(De, Be) : le, o.drawBottomRoundRectanglePath(_e || t, he.x, he.y, De, Be, le + (ve + q + re) / 2);
|
|
27482
27482
|
else if (te === "barrel")
|
|
27483
|
-
o.drawBarrelPath(_e || t, he.x, he.y,
|
|
27483
|
+
o.drawBarrelPath(_e || t, he.x, he.y, De, Be);
|
|
27484
27484
|
else if (te.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(te)) {
|
|
27485
27485
|
var Tt = (ve + q + re) / s;
|
|
27486
|
-
Te = Ps(
|
|
27486
|
+
Te = Ds(Ps(Te, Tt)), o.drawPolygonPath(_e || t, he.x, he.y, s, u, Te);
|
|
27487
27487
|
} else {
|
|
27488
27488
|
var Bt = (ve + q + re) / s;
|
|
27489
|
-
Te = Ps(
|
|
27489
|
+
Te = Ds(Ps(Te, -Bt)), o.drawPolygonPath(_e || t, he.x, he.y, s, u, Te);
|
|
27490
27490
|
}
|
|
27491
27491
|
if (h ? t.stroke(_e) : t.stroke(), oe === "double") {
|
|
27492
27492
|
t.lineWidth = ve / 3;
|
|
@@ -27504,9 +27504,9 @@ Ei.drawNode = function(t, e, r) {
|
|
|
27504
27504
|
}, se = e.pstyle("ghost").value === "yes";
|
|
27505
27505
|
if (se) {
|
|
27506
27506
|
var S = e.pstyle("ghost-offset-x").pfValue, z = e.pstyle("ghost-offset-y").pfValue, ne = e.pstyle("ghost-opacity").value, Y = ne * v;
|
|
27507
|
-
t.translate(S, z), U(), He(), Q(ne * I), me(), xe(Y, !0), N(ne * H),
|
|
27507
|
+
t.translate(S, z), U(), He(), Q(ne * I), me(), xe(Y, !0), N(ne * H), Pe(), ke(P !== 0 || _ !== 0), xe(Y, !1), Ce(Y), t.translate(-S, -z);
|
|
27508
27508
|
}
|
|
27509
|
-
h && t.translate(-d.x, -d.y), Me(), h && t.translate(d.x, d.y), U(), He(), Q(), me(), xe(v, !0), N(),
|
|
27509
|
+
h && t.translate(-d.x, -d.y), Me(), h && t.translate(d.x, d.y), U(), He(), Q(), me(), xe(v, !0), N(), Pe(), ke(P !== 0 || _ !== 0), xe(v, !1), Ce(), h && t.translate(-d.x, -d.y), Ue(), qe(), r && t.translate(g.x1, g.y1);
|
|
27510
27510
|
}
|
|
27511
27511
|
};
|
|
27512
27512
|
var jg = function(e) {
|
|
@@ -27613,8 +27613,8 @@ br.createGradientStyleFor = function(t, e, r, n, a) {
|
|
|
27613
27613
|
}
|
|
27614
27614
|
}
|
|
27615
27615
|
if (!i) return null;
|
|
27616
|
-
for (var k = u.length === s.length,
|
|
27617
|
-
i.addColorStop(k ? u[
|
|
27616
|
+
for (var k = u.length === s.length, D = s.length, P = 0; P < D; P++)
|
|
27617
|
+
i.addColorStop(k ? u[P] : P / (D - 1), "rgba(" + s[P][0] + "," + s[P][1] + "," + s[P][2] + "," + a + ")");
|
|
27618
27618
|
return i;
|
|
27619
27619
|
};
|
|
27620
27620
|
br.gradientFillStyle = function(t, e, r, n) {
|
|
@@ -27692,17 +27692,17 @@ br.render = function(t) {
|
|
|
27692
27692
|
}
|
|
27693
27693
|
}, T = o.prevViewport, k = T === void 0 || x.zoom !== T.zoom || x.pan.x !== T.pan.x || x.pan.y !== T.pan.y;
|
|
27694
27694
|
!k && !(p && !f) && (o.motionBlurPxRatio = 1), i && (E = i), w *= s, E.x *= s, E.y *= s;
|
|
27695
|
-
var
|
|
27696
|
-
function
|
|
27697
|
-
var
|
|
27698
|
-
fe.globalCompositeOperation = "destination-out", o.colorFillStyle(fe, 255, 255, 255, o.motionBlurTransparency), fe.fillRect(me, xe, ke, Ce), fe.globalCompositeOperation =
|
|
27695
|
+
var D = o.getCachedZSortedEles();
|
|
27696
|
+
function P(fe, me, xe, ke, Ce) {
|
|
27697
|
+
var Pe = fe.globalCompositeOperation;
|
|
27698
|
+
fe.globalCompositeOperation = "destination-out", o.colorFillStyle(fe, 255, 255, 255, o.motionBlurTransparency), fe.fillRect(me, xe, ke, Ce), fe.globalCompositeOperation = Pe;
|
|
27699
27699
|
}
|
|
27700
27700
|
function _(fe, me) {
|
|
27701
|
-
var xe, ke, Ce,
|
|
27701
|
+
var xe, ke, Ce, Pe;
|
|
27702
27702
|
!o.clearingMotionBlur && (fe === l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE] || fe === l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]) ? (xe = {
|
|
27703
27703
|
x: C.x * h,
|
|
27704
27704
|
y: C.y * h
|
|
27705
|
-
}, ke = b * h, Ce = o.canvasWidth * h,
|
|
27705
|
+
}, ke = b * h, Ce = o.canvasWidth * h, Pe = o.canvasHeight * h) : (xe = E, ke = w, Ce = o.canvasWidth, Pe = o.canvasHeight), fe.setTransform(1, 0, 0, 1, 0, 0), me === "motionBlur" ? P(fe, 0, 0, Ce, Pe) : !e && (me === void 0 || me) && fe.clearRect(0, 0, Ce, Pe), r || (fe.translate(xe.x, xe.y), fe.scale(ke, ke)), i && fe.translate(i.x, i.y), a && fe.scale(a, a);
|
|
27706
27706
|
}
|
|
27707
27707
|
if (d || (o.textureDrawLastFrame = !1), d) {
|
|
27708
27708
|
if (o.textureDrawLastFrame = !0, !o.textureCache) {
|
|
@@ -27726,7 +27726,7 @@ br.render = function(t) {
|
|
|
27726
27726
|
}
|
|
27727
27727
|
c[o.DRAG] = !1, c[o.NODE] = !1;
|
|
27728
27728
|
var L = l.contexts[o.NODE], B = o.textureCache.texture, x = o.textureCache.viewport;
|
|
27729
|
-
L.setTransform(1, 0, 0, 1, 0, 0), v ?
|
|
27729
|
+
L.setTransform(1, 0, 0, 1, 0, 0), v ? P(L, 0, 0, x.width, x.height) : L.clearRect(0, 0, x.width, x.height);
|
|
27730
27730
|
var F = y.core("outside-texture-bg-color").value, M = y.core("outside-texture-bg-opacity").value;
|
|
27731
27731
|
o.colorFillStyle(L, F[0], F[1], F[2], M), L.fillRect(0, 0, x.width, x.height);
|
|
27732
27732
|
var b = u.zoom();
|
|
@@ -27735,11 +27735,11 @@ br.render = function(t) {
|
|
|
27735
27735
|
var A = u.extent(), R = o.pinching || o.hoverData.dragging || o.swipePanning || o.data.wheelZooming || o.hoverData.draggingEles || o.cy.animated(), K = o.hideEdgesOnViewport && R, H = [];
|
|
27736
27736
|
if (H[o.NODE] = !c[o.NODE] && v && !o.clearedForMotionBlur[o.NODE] || o.clearingMotionBlur, H[o.NODE] && (o.clearedForMotionBlur[o.NODE] = !0), H[o.DRAG] = !c[o.DRAG] && v && !o.clearedForMotionBlur[o.DRAG] || o.clearingMotionBlur, H[o.DRAG] && (o.clearedForMotionBlur[o.DRAG] = !0), c[o.NODE] || r || n || H[o.NODE]) {
|
|
27737
27737
|
var q = v && !H[o.NODE] && h !== 1, L = e || (q ? o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE] : l.contexts[o.NODE]), j = v && !q ? "motionBlur" : void 0;
|
|
27738
|
-
_(L, j), K ? o.drawCachedNodes(L,
|
|
27738
|
+
_(L, j), K ? o.drawCachedNodes(L, D.nondrag, s, A) : o.drawLayeredElements(L, D.nondrag, s, A), o.debug && o.drawDebugPoints(L, D.nondrag), !r && !v && (c[o.NODE] = !1);
|
|
27739
27739
|
}
|
|
27740
27740
|
if (!n && (c[o.DRAG] || r || H[o.DRAG])) {
|
|
27741
27741
|
var q = v && !H[o.DRAG] && h !== 1, L = e || (q ? o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG] : l.contexts[o.DRAG]);
|
|
27742
|
-
_(L, v && !q ? "motionBlur" : void 0), K ? o.drawCachedNodes(L,
|
|
27742
|
+
_(L, v && !q ? "motionBlur" : void 0), K ? o.drawCachedNodes(L, D.drag, s, A) : o.drawCachedElements(L, D.drag, s, A), o.debug && o.drawDebugPoints(L, D.drag), !r && !v && (c[o.DRAG] = !1);
|
|
27743
27743
|
}
|
|
27744
27744
|
if (o.showFps || !n && c[o.SELECT_BOX] && !r) {
|
|
27745
27745
|
var L = e || l.contexts[o.SELECT_BOX];
|
|
@@ -27763,7 +27763,7 @@ br.render = function(t) {
|
|
|
27763
27763
|
}
|
|
27764
27764
|
if (v && h !== 1) {
|
|
27765
27765
|
var N = l.contexts[o.NODE], U = o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE], X = l.contexts[o.DRAG], ge = o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG], Ee = function(me, xe, ke) {
|
|
27766
|
-
me.setTransform(1, 0, 0, 1, 0, 0), ke || !g ? me.clearRect(0, 0, o.canvasWidth, o.canvasHeight) :
|
|
27766
|
+
me.setTransform(1, 0, 0, 1, 0, 0), ke || !g ? me.clearRect(0, 0, o.canvasWidth, o.canvasHeight) : P(me, 0, 0, o.canvasWidth, o.canvasHeight);
|
|
27767
27767
|
var Ce = h;
|
|
27768
27768
|
me.drawImage(
|
|
27769
27769
|
xe,
|
|
@@ -28001,9 +28001,9 @@ function t0(t) {
|
|
|
28001
28001
|
return N.boundingBox(), N[0]._private.labelBounds.main || d;
|
|
28002
28002
|
}, k = function(N) {
|
|
28003
28003
|
return N.boundingBox(), N[0]._private.labelBounds.source || d;
|
|
28004
|
-
},
|
|
28004
|
+
}, D = function(N) {
|
|
28005
28005
|
return N.boundingBox(), N[0]._private.labelBounds.target || d;
|
|
28006
|
-
},
|
|
28006
|
+
}, P = function(N, U) {
|
|
28007
28007
|
return U;
|
|
28008
28008
|
}, _ = function(N) {
|
|
28009
28009
|
return v(x(N));
|
|
@@ -28030,7 +28030,7 @@ function t0(t) {
|
|
|
28030
28030
|
}, R = function(N) {
|
|
28031
28031
|
return h(k(N));
|
|
28032
28032
|
}, K = function(N) {
|
|
28033
|
-
return h(
|
|
28033
|
+
return h(D(N));
|
|
28034
28034
|
}, H = function(N) {
|
|
28035
28035
|
var U = T(N), X = h(T(N));
|
|
28036
28036
|
if (N.isNode()) {
|
|
@@ -28067,21 +28067,21 @@ function t0(t) {
|
|
|
28067
28067
|
getBoundingBox: T,
|
|
28068
28068
|
getRotationPoint: B,
|
|
28069
28069
|
getRotationOffset: H,
|
|
28070
|
-
isVisible:
|
|
28070
|
+
isVisible: P
|
|
28071
28071
|
}), oe = e.data.slbTxrCache = new Ri(e, {
|
|
28072
28072
|
getKey: g,
|
|
28073
28073
|
drawElement: C,
|
|
28074
28074
|
getBoundingBox: k,
|
|
28075
28075
|
getRotationPoint: F,
|
|
28076
28076
|
getRotationOffset: R,
|
|
28077
|
-
isVisible:
|
|
28077
|
+
isVisible: P
|
|
28078
28078
|
}), ie = e.data.tlbTxrCache = new Ri(e, {
|
|
28079
28079
|
getKey: y,
|
|
28080
28080
|
drawElement: E,
|
|
28081
|
-
getBoundingBox:
|
|
28081
|
+
getBoundingBox: D,
|
|
28082
28082
|
getRotationPoint: M,
|
|
28083
28083
|
getRotationOffset: K,
|
|
28084
|
-
isVisible:
|
|
28084
|
+
isVisible: P
|
|
28085
28085
|
}), re = e.data.lyrTxrCache = new Yg(e);
|
|
28086
28086
|
e.onUpdateEleCalcs(function(N, U) {
|
|
28087
28087
|
q.invalidateElements(U), j.invalidateElements(U), oe.invalidateElements(U), ie.invalidateElements(U), re.invalidateElements(U);
|
|
@@ -28135,7 +28135,7 @@ Ze.makeOffscreenCanvas = function(t, e) {
|
|
|
28135
28135
|
}
|
|
28136
28136
|
return r;
|
|
28137
28137
|
};
|
|
28138
|
-
[Xg, an, En,
|
|
28138
|
+
[Xg, an, En, Dc, Oa, Ei, br, jn, Lo, e0].forEach(function(t) {
|
|
28139
28139
|
$e(Ze, t);
|
|
28140
28140
|
});
|
|
28141
28141
|
var GL = [{
|
|
@@ -28364,8 +28364,9 @@ Ea.warnings = function(t) {
|
|
|
28364
28364
|
};
|
|
28365
28365
|
Ea.version = ZL;
|
|
28366
28366
|
Ea.stylesheet = Ea.Stylesheet = o0;
|
|
28367
|
-
let jL = class {
|
|
28368
|
-
constructor(
|
|
28367
|
+
let jL = class extends EventTarget {
|
|
28368
|
+
constructor(r, n) {
|
|
28369
|
+
super();
|
|
28369
28370
|
Kr(this, "cyg", null);
|
|
28370
28371
|
Kr(this, "nodes", []);
|
|
28371
28372
|
Kr(this, "edges", []);
|
|
@@ -28373,16 +28374,16 @@ let jL = class {
|
|
|
28373
28374
|
Kr(this, "dendrites", []);
|
|
28374
28375
|
Kr(this, "labelCache", /* @__PURE__ */ new Map());
|
|
28375
28376
|
Kr(this, "graphCanvas", null);
|
|
28376
|
-
this.labelCache =
|
|
28377
|
-
}
|
|
28378
|
-
async addConnectivity(
|
|
28379
|
-
if (this.axons =
|
|
28380
|
-
for (const
|
|
28381
|
-
const
|
|
28382
|
-
this.nodes.push(
|
|
28383
|
-
id: `${
|
|
28384
|
-
source:
|
|
28385
|
-
target:
|
|
28377
|
+
this.labelCache = r, this.graphCanvas = n;
|
|
28378
|
+
}
|
|
28379
|
+
async addConnectivity(r) {
|
|
28380
|
+
if (this.axons = r.axons.map((n) => JSON.stringify(n)), this.dendrites = r.dendrites.map((n) => JSON.stringify(n)), r.connectivity.length)
|
|
28381
|
+
for (const n of r.connectivity) {
|
|
28382
|
+
const a = await this.graphNode(n[0]), i = await this.graphNode(n[1]);
|
|
28383
|
+
this.nodes.push(a), this.nodes.push(i), this.edges.push({
|
|
28384
|
+
id: `${a.id}_${i.id}`,
|
|
28385
|
+
source: a.id,
|
|
28386
|
+
target: i.id
|
|
28386
28387
|
});
|
|
28387
28388
|
}
|
|
28388
28389
|
else
|
|
@@ -28391,43 +28392,51 @@ let jL = class {
|
|
|
28391
28392
|
label: "NO PATHS"
|
|
28392
28393
|
});
|
|
28393
28394
|
}
|
|
28394
|
-
showConnectivity(
|
|
28395
|
-
this.cyg = new JL(this,
|
|
28395
|
+
showConnectivity(r) {
|
|
28396
|
+
this.cyg = new JL(this, r), this.cyg.on("tap-node", (n) => {
|
|
28397
|
+
const a = new CustomEvent("tap-node", {
|
|
28398
|
+
detail: n.detail
|
|
28399
|
+
});
|
|
28400
|
+
this.dispatchEvent(a);
|
|
28401
|
+
});
|
|
28396
28402
|
}
|
|
28397
28403
|
clearConnectivity() {
|
|
28398
|
-
var
|
|
28399
|
-
(
|
|
28404
|
+
var r;
|
|
28405
|
+
(r = this.cyg) != null && r.cy && (this.cyg.cy.remove(), this.cyg.cy = null);
|
|
28400
28406
|
}
|
|
28401
28407
|
reset() {
|
|
28402
|
-
var e;
|
|
28403
|
-
(e = this.cyg) != null && e.cy && this.cyg.cy.reset();
|
|
28404
|
-
}
|
|
28405
|
-
enableZoom(e) {
|
|
28406
28408
|
var r;
|
|
28407
|
-
(r = this.cyg) != null && r.cy && this.cyg.cy.
|
|
28409
|
+
(r = this.cyg) != null && r.cy && this.cyg.cy.reset();
|
|
28410
|
+
}
|
|
28411
|
+
enableZoom(r) {
|
|
28412
|
+
var n;
|
|
28413
|
+
(n = this.cyg) != null && n.cy && this.cyg.cy.userZoomingEnabled(r);
|
|
28408
28414
|
}
|
|
28409
28415
|
get elements() {
|
|
28410
28416
|
return [
|
|
28411
|
-
...this.nodes.map((
|
|
28412
|
-
...this.edges.map((
|
|
28417
|
+
...this.nodes.map((r) => ({ data: r })),
|
|
28418
|
+
...this.edges.map((r) => ({ data: r }))
|
|
28413
28419
|
];
|
|
28414
28420
|
}
|
|
28415
28421
|
get roots() {
|
|
28416
28422
|
return this.dendrites;
|
|
28417
28423
|
}
|
|
28418
|
-
async graphNode(
|
|
28419
|
-
const
|
|
28420
|
-
for (const
|
|
28421
|
-
const
|
|
28422
|
-
|
|
28424
|
+
async graphNode(r) {
|
|
28425
|
+
const n = JSON.stringify(r), a = [r[0], ...r[1]], i = [];
|
|
28426
|
+
for (const s of a) {
|
|
28427
|
+
const u = this.labelCache.has(s) ? this.labelCache.get(s) : "";
|
|
28428
|
+
i.push(u);
|
|
28423
28429
|
}
|
|
28424
|
-
|
|
28425
|
-
const
|
|
28426
|
-
id:
|
|
28427
|
-
label:
|
|
28430
|
+
a.push(...i);
|
|
28431
|
+
const o = {
|
|
28432
|
+
id: n,
|
|
28433
|
+
label: a.join(`
|
|
28428
28434
|
`)
|
|
28429
28435
|
};
|
|
28430
|
-
return this.axons.includes(
|
|
28436
|
+
return this.axons.includes(n) ? this.dendrites.includes(n) ? o["both-a-d"] = !0 : o.axon = !0 : this.dendrites.includes(n) && (o.dendrite = !0), o;
|
|
28437
|
+
}
|
|
28438
|
+
on(r, n) {
|
|
28439
|
+
this.addEventListener(r, n);
|
|
28431
28440
|
}
|
|
28432
28441
|
};
|
|
28433
28442
|
const QL = [
|
|
@@ -28471,46 +28480,56 @@ const QL = [
|
|
|
28471
28480
|
}
|
|
28472
28481
|
}
|
|
28473
28482
|
];
|
|
28474
|
-
class JL {
|
|
28475
|
-
constructor(
|
|
28483
|
+
class JL extends EventTarget {
|
|
28484
|
+
constructor(r, n) {
|
|
28485
|
+
var a;
|
|
28486
|
+
super();
|
|
28476
28487
|
Kr(this, "cy");
|
|
28477
28488
|
Kr(this, "tooltip");
|
|
28478
|
-
var n, a;
|
|
28479
28489
|
this.cy = Ea({
|
|
28480
|
-
container:
|
|
28481
|
-
elements:
|
|
28490
|
+
container: n,
|
|
28491
|
+
elements: r.elements,
|
|
28482
28492
|
layout: {
|
|
28483
28493
|
name: "breadthfirst",
|
|
28484
28494
|
circle: !1,
|
|
28485
|
-
roots:
|
|
28495
|
+
roots: r.roots
|
|
28486
28496
|
},
|
|
28487
28497
|
directed: !0,
|
|
28488
28498
|
style: QL,
|
|
28489
28499
|
minZoom: 0.5,
|
|
28490
28500
|
maxZoom: 10,
|
|
28491
28501
|
wheelSensitivity: 0.4
|
|
28492
|
-
}).on("mouseover", "node", this.overNode.bind(this)).on("mouseout", "node", this.exitNode.bind(this)).on("position", "node", this.moveNode.bind(this)), this.tooltip = document.createElement("div"), this.tooltip.
|
|
28502
|
+
}).on("mouseover", "node", this.overNode.bind(this)).on("mouseout", "node", this.exitNode.bind(this)).on("position", "node", this.moveNode.bind(this)).on("tap", "node", this.tapNode.bind(this)), this.tooltip = document.createElement("div"), this.tooltip.className = "cy-graph-tooltip", this.tooltip.hidden = !0, (a = n == null ? void 0 : n.lastChild) == null || a.appendChild(this.tooltip);
|
|
28493
28503
|
}
|
|
28494
28504
|
remove() {
|
|
28495
28505
|
this.cy && this.cy.destroy();
|
|
28496
28506
|
}
|
|
28497
|
-
checkRightBoundary(
|
|
28498
|
-
var
|
|
28499
|
-
|
|
28507
|
+
checkRightBoundary(r) {
|
|
28508
|
+
var n;
|
|
28509
|
+
r + this.tooltip.offsetWidth >= ((n = this.tooltip.parentElement) == null ? void 0 : n.offsetWidth) && (this.tooltip.style.left = `${r - this.tooltip.offsetWidth}px`);
|
|
28500
28510
|
}
|
|
28501
|
-
overNode(
|
|
28502
|
-
const
|
|
28503
|
-
this.tooltip.innerText =
|
|
28511
|
+
overNode(r) {
|
|
28512
|
+
const n = r.target;
|
|
28513
|
+
this.tooltip.innerText = n.data().label, this.tooltip.style.left = `${r.renderedPosition.x}px`, this.tooltip.style.top = `${r.renderedPosition.y}px`, this.tooltip.hidden = !1, this.checkRightBoundary(r.renderedPosition.x);
|
|
28504
28514
|
}
|
|
28505
|
-
moveNode(
|
|
28506
|
-
const
|
|
28507
|
-
this.tooltip.style.left = `${
|
|
28515
|
+
moveNode(r) {
|
|
28516
|
+
const n = r.target;
|
|
28517
|
+
this.tooltip.style.left = `${n.renderedPosition().x}px`, this.tooltip.style.top = `${n.renderedPosition().y}px`, this.checkRightBoundary(n.renderedPosition().x);
|
|
28508
28518
|
}
|
|
28509
|
-
exitNode(
|
|
28519
|
+
exitNode(r) {
|
|
28510
28520
|
this.tooltip.hidden = !0;
|
|
28511
28521
|
}
|
|
28522
|
+
tapNode(r) {
|
|
28523
|
+
const a = r.target.data(), i = new CustomEvent("tap-node", {
|
|
28524
|
+
detail: a
|
|
28525
|
+
});
|
|
28526
|
+
this.dispatchEvent(i);
|
|
28527
|
+
}
|
|
28528
|
+
on(r, n) {
|
|
28529
|
+
this.addEventListener(r, n);
|
|
28530
|
+
}
|
|
28512
28531
|
}
|
|
28513
|
-
const eF = 1.3, tF = "Reset position", fv = "Lock zoom (to scroll)",
|
|
28532
|
+
const eF = 1.3, tF = 24 * 60 * 60 * 1e3, rF = "Reset position", fv = "Lock zoom (to scroll)", nF = "Unlock zoom", aF = "#8300bf", iF = {
|
|
28514
28533
|
name: "ConnectivityGraph",
|
|
28515
28534
|
props: {
|
|
28516
28535
|
/**
|
|
@@ -28535,14 +28554,14 @@ const eF = 1.3, tF = "Reset position", fv = "Lock zoom (to scroll)", rF = "Unloc
|
|
|
28535
28554
|
knowledgeByPath: /* @__PURE__ */ new Map(),
|
|
28536
28555
|
labelledTerms: /* @__PURE__ */ new Set(),
|
|
28537
28556
|
labelCache: /* @__PURE__ */ new Map(),
|
|
28538
|
-
resetLabel:
|
|
28557
|
+
resetLabel: rF,
|
|
28539
28558
|
zoomLockLabel: fv,
|
|
28540
|
-
iconColor:
|
|
28559
|
+
iconColor: aF,
|
|
28541
28560
|
zoomEnabled: !1
|
|
28542
28561
|
};
|
|
28543
28562
|
},
|
|
28544
28563
|
mounted() {
|
|
28545
|
-
this.loadCacheData(), this.run().then((t) => {
|
|
28564
|
+
this.refreshCache(), this.loadCacheData(), this.run().then((t) => {
|
|
28546
28565
|
this.showGraph(this.entry);
|
|
28547
28566
|
});
|
|
28548
28567
|
},
|
|
@@ -28555,16 +28574,39 @@ const eF = 1.3, tF = "Reset position", fv = "Lock zoom (to scroll)", rF = "Unloc
|
|
|
28555
28574
|
}
|
|
28556
28575
|
n && (this.schemaVersion = n);
|
|
28557
28576
|
},
|
|
28577
|
+
removeAllCacheData: function() {
|
|
28578
|
+
[
|
|
28579
|
+
"connectivity-graph-expiry",
|
|
28580
|
+
"connectivity-graph-source",
|
|
28581
|
+
"connectivity-graph-labels",
|
|
28582
|
+
"connectivity-graph-pathlist",
|
|
28583
|
+
"connectivity-graph-schema-version"
|
|
28584
|
+
].forEach((e) => {
|
|
28585
|
+
sessionStorage.removeItem(e);
|
|
28586
|
+
});
|
|
28587
|
+
},
|
|
28588
|
+
refreshCache: function() {
|
|
28589
|
+
const t = sessionStorage.getItem("connectivity-graph-expiry");
|
|
28590
|
+
(/* @__PURE__ */ new Date()).getTime() > t && this.removeAllCacheData();
|
|
28591
|
+
},
|
|
28592
|
+
updateCacheExpiry: function() {
|
|
28593
|
+
const e = (/* @__PURE__ */ new Date()).getTime() + tF;
|
|
28594
|
+
sessionStorage.setItem("connectivity-graph-expiry", e);
|
|
28595
|
+
},
|
|
28558
28596
|
run: async function() {
|
|
28559
|
-
if (this.schemaVersion || (this.schemaVersion = await this.getSchemaVersion(), sessionStorage.setItem("connectivity-graph-schema-version", this.schemaVersion)), this.schemaVersion < eF) {
|
|
28597
|
+
if (this.schemaVersion || (this.schemaVersion = await this.getSchemaVersion(), sessionStorage.setItem("connectivity-graph-schema-version", this.schemaVersion), this.updateCacheExpiry()), this.schemaVersion < eF) {
|
|
28560
28598
|
console.warn("No Server!");
|
|
28561
28599
|
return;
|
|
28562
28600
|
}
|
|
28563
|
-
this.showSpinner(), this.selectedSource || (this.selectedSource = await this.setSourceList(), sessionStorage.setItem("connectivity-graph-source", this.selectedSource)), await this.setPathList(this.selectedSource), this.hideSpinner();
|
|
28601
|
+
this.showSpinner(), this.selectedSource || (this.selectedSource = await this.setSourceList(), sessionStorage.setItem("connectivity-graph-source", this.selectedSource), this.updateCacheExpiry()), await this.setPathList(this.selectedSource), this.hideSpinner();
|
|
28564
28602
|
},
|
|
28565
28603
|
showGraph: async function(t) {
|
|
28566
28604
|
const e = this.$refs.graphCanvas;
|
|
28567
|
-
this.showSpinner(), this.connectivityGraph = new jL(this.labelCache, e), await this.connectivityGraph.addConnectivity(this.knowledgeByPath.get(t)), this.hideSpinner(), this.connectivityGraph.showConnectivity(e), this.
|
|
28605
|
+
this.showSpinner(), this.connectivityGraph = new jL(this.labelCache, e), await this.connectivityGraph.addConnectivity(this.knowledgeByPath.get(t)), this.hideSpinner(), this.connectivityGraph.showConnectivity(e), this.connectivityGraph.on("tap-node", (r) => {
|
|
28606
|
+
const { label: n } = r.detail, a = n.split(`
|
|
28607
|
+
`);
|
|
28608
|
+
this.$emit("tap-node", a);
|
|
28609
|
+
});
|
|
28568
28610
|
},
|
|
28569
28611
|
query: async function(t, e) {
|
|
28570
28612
|
const r = `${this.mapServer}knowledge/query/`, n = { sql: t, params: e };
|
|
@@ -28604,7 +28646,7 @@ const eF = 1.3, tF = "Reset position", fv = "Lock zoom (to scroll)", rF = "Unloc
|
|
|
28604
28646
|
return e ? e.values : [];
|
|
28605
28647
|
},
|
|
28606
28648
|
setPathList: async function(t) {
|
|
28607
|
-
this.pathList.length || (this.pathList = await this.loadPathData(t), sessionStorage.setItem("connectivity-graph-pathlist", JSON.stringify(this.pathList))), this.knowledgeByPath.clear(), this.labelledTerms = /* @__PURE__ */ new Set();
|
|
28649
|
+
this.pathList.length || (this.pathList = await this.loadPathData(t), sessionStorage.setItem("connectivity-graph-pathlist", JSON.stringify(this.pathList)), this.updateCacheExpiry()), this.knowledgeByPath.clear(), this.labelledTerms = /* @__PURE__ */ new Set();
|
|
28608
28650
|
for (const [e, r] of this.pathList) {
|
|
28609
28651
|
const n = JSON.parse(r);
|
|
28610
28652
|
"connectivity" in n && (this.knowledgeByPath.set(e, n), this.cacheLabels(n));
|
|
@@ -28641,7 +28683,7 @@ const eF = 1.3, tF = "Reset position", fv = "Lock zoom (to scroll)", rF = "Unloc
|
|
|
28641
28683
|
for (const r of t.values)
|
|
28642
28684
|
this.labelCache.set(r[0], r[1]);
|
|
28643
28685
|
const e = Object.fromEntries(this.labelCache);
|
|
28644
|
-
sessionStorage.setItem("connectivity-graph-labels", JSON.stringify(e));
|
|
28686
|
+
sessionStorage.setItem("connectivity-graph-labels", JSON.stringify(e)), this.updateCacheExpiry();
|
|
28645
28687
|
}
|
|
28646
28688
|
},
|
|
28647
28689
|
cacheNodeLabels: function(t) {
|
|
@@ -28665,20 +28707,20 @@ const eF = 1.3, tF = "Reset position", fv = "Lock zoom (to scroll)", rF = "Unloc
|
|
|
28665
28707
|
* Enable/disable user zoom for scrolling
|
|
28666
28708
|
*/
|
|
28667
28709
|
toggleZoom: function() {
|
|
28668
|
-
this.zoomEnabled = !this.zoomEnabled, this.zoomLockLabel = this.zoomEnabled ?
|
|
28710
|
+
this.zoomEnabled = !this.zoomEnabled, this.zoomLockLabel = this.zoomEnabled ? nF : fv, this.connectivityGraph.enableZoom(!this.zoomEnabled);
|
|
28669
28711
|
}
|
|
28670
28712
|
}
|
|
28671
|
-
},
|
|
28713
|
+
}, oF = { class: "connectivity-graph" }, sF = {
|
|
28672
28714
|
ref: "graphCanvas",
|
|
28673
28715
|
class: "graph-canvas"
|
|
28674
|
-
},
|
|
28675
|
-
function
|
|
28716
|
+
}, lF = { class: "control-panel" }, uF = /* @__PURE__ */ P0('<div class="node-key" data-v-d620c023><div class="key-head" data-v-d620c023>Node type:</div><div data-v-d620c023><div data-v-d620c023><span data-v-d620c023>Node:</span><span class="key-box" style="background:#80F0F0;" data-v-d620c023></span></div><div data-v-d620c023><span data-v-d620c023>Axon:</span><span class="key-box" style="background:green;" data-v-d620c023></span></div><div data-v-d620c023><span data-v-d620c023>Dendrite:</span><span class="key-box" style="background:red;" data-v-d620c023></span></div><div data-v-d620c023><span data-v-d620c023>Both:</span><span class="key-box" style="background:gray;" data-v-d620c023></span></div></div></div>', 1), cF = { class: "tools" }, dF = { class: "visually-hidden" }, fF = { class: "visually-hidden" };
|
|
28717
|
+
function vF(t, e, r, n, a, i) {
|
|
28676
28718
|
const o = Xb, s = Vt, u = pn, l = xo, c = g2, d = w2, v = tc;
|
|
28677
|
-
return je(($(), Z("div",
|
|
28678
|
-
J("div",
|
|
28679
|
-
J("div",
|
|
28680
|
-
|
|
28681
|
-
J("div",
|
|
28719
|
+
return je(($(), Z("div", oF, [
|
|
28720
|
+
J("div", sF, null, 512),
|
|
28721
|
+
J("div", lF, [
|
|
28722
|
+
uF,
|
|
28723
|
+
J("div", cF, [
|
|
28682
28724
|
ce(l, {
|
|
28683
28725
|
content: t.resetLabel,
|
|
28684
28726
|
placement: "bottom",
|
|
@@ -28697,7 +28739,7 @@ function fF(t, e, r, n, a, i) {
|
|
|
28697
28739
|
]),
|
|
28698
28740
|
_: 1
|
|
28699
28741
|
}),
|
|
28700
|
-
J("span",
|
|
28742
|
+
J("span", dF, Re(t.resetLabel), 1)
|
|
28701
28743
|
]),
|
|
28702
28744
|
_: 1
|
|
28703
28745
|
}, 8, ["class", "onClick"])
|
|
@@ -28722,7 +28764,7 @@ function fF(t, e, r, n, a, i) {
|
|
|
28722
28764
|
]),
|
|
28723
28765
|
_: 1
|
|
28724
28766
|
}),
|
|
28725
|
-
J("span",
|
|
28767
|
+
J("span", fF, Re(t.zoomLockLabel), 1)
|
|
28726
28768
|
]),
|
|
28727
28769
|
_: 1
|
|
28728
28770
|
}, 8, ["class", "onClick"])
|
|
@@ -28735,12 +28777,12 @@ function fF(t, e, r, n, a, i) {
|
|
|
28735
28777
|
[v, t.loading]
|
|
28736
28778
|
]);
|
|
28737
28779
|
}
|
|
28738
|
-
const
|
|
28780
|
+
const CF = /* @__PURE__ */ rn(iF, [["render", vF], ["__scopeId", "data-v-d620c023"]]);
|
|
28739
28781
|
export {
|
|
28740
|
-
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28744
|
-
|
|
28745
|
-
|
|
28782
|
+
CF as ConnectivityGraph,
|
|
28783
|
+
wF as CopyToClipboard,
|
|
28784
|
+
gF as DrawToolbar,
|
|
28785
|
+
mF as HelpModeDialog,
|
|
28786
|
+
yF as Tooltip,
|
|
28787
|
+
bF as TreeControls
|
|
28746
28788
|
};
|