@linkurious/ogma-linkurious-parser 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +394 -476
- package/dist/index.mjs.map +1 -1
- package/dist/ogma/features/nodeGrouping.d.ts +2 -29
- package/dist/ogma/features/styles.d.ts +1 -1
- package/dist/tools/ogmaTool.d.ts +1 -0
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyFormat as
|
|
1
|
+
import { CurrencyFormat as R, PropertyTypeName as yr, AutoRangeScale as Vt, OgmaEdgeShape as vr, SelectorType as S, ForceLayoutMode as _r, EntityType as I, NodeGroupingType as q } from "@linkurious/rest-client";
|
|
2
2
|
import mr from "@linkurious/ogma";
|
|
3
3
|
import { BehaviorSubject as Cr } from "rxjs";
|
|
4
4
|
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -19,7 +19,7 @@ function Fr(r, e) {
|
|
|
19
19
|
return t;
|
|
20
20
|
return -1;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var de = Fr, $r = de, Tr = Array.prototype, Nr = Tr.splice;
|
|
23
23
|
function Dr(r) {
|
|
24
24
|
var e = this.__data__, t = $r(e, r);
|
|
25
25
|
if (t < 0)
|
|
@@ -27,34 +27,34 @@ function Dr(r) {
|
|
|
27
27
|
var i = e.length - 1;
|
|
28
28
|
return t == i ? e.pop() : Nr.call(e, t, 1), --this.size, !0;
|
|
29
29
|
}
|
|
30
|
-
var wr = Dr, Or =
|
|
30
|
+
var wr = Dr, Or = de;
|
|
31
31
|
function Lr(r) {
|
|
32
32
|
var e = this.__data__, t = Or(e, r);
|
|
33
33
|
return t < 0 ? void 0 : e[t][1];
|
|
34
34
|
}
|
|
35
|
-
var Ir = Lr, Pr =
|
|
35
|
+
var Ir = Lr, Pr = de;
|
|
36
36
|
function Mr(r) {
|
|
37
37
|
return Pr(this.__data__, r) > -1;
|
|
38
38
|
}
|
|
39
|
-
var Rr = Mr, Gr =
|
|
39
|
+
var Rr = Mr, Gr = de;
|
|
40
40
|
function Br(r, e) {
|
|
41
41
|
var t = this.__data__, i = Gr(t, r);
|
|
42
42
|
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
43
43
|
}
|
|
44
44
|
var zr = Br, jr = Ar, Ur = wr, Vr = Ir, kr = Rr, Hr = zr;
|
|
45
|
-
function
|
|
45
|
+
function U(r) {
|
|
46
46
|
var e = -1, t = r == null ? 0 : r.length;
|
|
47
47
|
for (this.clear(); ++e < t; ) {
|
|
48
48
|
var i = r[e];
|
|
49
49
|
this.set(i[0], i[1]);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var
|
|
52
|
+
U.prototype.clear = jr;
|
|
53
|
+
U.prototype.delete = Ur;
|
|
54
|
+
U.prototype.get = Vr;
|
|
55
|
+
U.prototype.has = kr;
|
|
56
|
+
U.prototype.set = Hr;
|
|
57
|
+
var ce = U, Kr = ce;
|
|
58
58
|
function qr() {
|
|
59
59
|
this.__data__ = new Kr(), this.size = 0;
|
|
60
60
|
}
|
|
@@ -71,31 +71,31 @@ var Xr = Zr;
|
|
|
71
71
|
function Qr(r) {
|
|
72
72
|
return this.__data__.has(r);
|
|
73
73
|
}
|
|
74
|
-
var ei = Qr, ti = typeof te == "object" && te && te.Object === Object && te, kt = ti, ri = kt, ii = typeof self == "object" && self && self.Object === Object && self, ni = ri || ii || Function("return this")(), D = ni, si = D, ai = si.Symbol,
|
|
74
|
+
var ei = Qr, ti = typeof te == "object" && te && te.Object === Object && te, kt = ti, ri = kt, ii = typeof self == "object" && self && self.Object === Object && self, ni = ri || ii || Function("return this")(), D = ni, si = D, ai = si.Symbol, Z = ai, Ze = Z, Ht = Object.prototype, oi = Ht.hasOwnProperty, ui = Ht.toString, Y = Ze ? Ze.toStringTag : void 0;
|
|
75
75
|
function li(r) {
|
|
76
|
-
var e = oi.call(r,
|
|
76
|
+
var e = oi.call(r, Y), t = r[Y];
|
|
77
77
|
try {
|
|
78
|
-
r[
|
|
78
|
+
r[Y] = void 0;
|
|
79
79
|
var i = !0;
|
|
80
80
|
} catch {
|
|
81
81
|
}
|
|
82
82
|
var n = ui.call(r);
|
|
83
|
-
return i && (e ? r[
|
|
83
|
+
return i && (e ? r[Y] = t : delete r[Y]), n;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var di = li, ci = Object.prototype, gi = ci.toString;
|
|
86
86
|
function hi(r) {
|
|
87
87
|
return gi.call(r);
|
|
88
88
|
}
|
|
89
|
-
var fi = hi, Xe =
|
|
89
|
+
var fi = hi, Xe = Z, pi = di, bi = fi, yi = "[object Null]", vi = "[object Undefined]", Qe = Xe ? Xe.toStringTag : void 0;
|
|
90
90
|
function _i(r) {
|
|
91
91
|
return r == null ? r === void 0 ? vi : yi : Qe && Qe in Object(r) ? pi(r) : bi(r);
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var X = _i;
|
|
94
94
|
function mi(r) {
|
|
95
95
|
var e = typeof r;
|
|
96
96
|
return r != null && (e == "object" || e == "function");
|
|
97
97
|
}
|
|
98
|
-
var ge = mi, Ci =
|
|
98
|
+
var ge = mi, Ci = X, Si = ge, Ai = "[object AsyncFunction]", xi = "[object Function]", Ei = "[object GeneratorFunction]", Fi = "[object Proxy]";
|
|
99
99
|
function $i(r) {
|
|
100
100
|
if (!Si(r))
|
|
101
101
|
return !1;
|
|
@@ -141,7 +141,7 @@ function Qi(r, e) {
|
|
|
141
141
|
var t = Xi(r, e);
|
|
142
142
|
return Zi(t) ? t : void 0;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
144
|
+
var M = Qi, en = M, tn = D, rn = en(tn, "Map"), Ge = rn, nn = M, sn = nn(Object, "create"), he = sn, tt = he;
|
|
145
145
|
function an() {
|
|
146
146
|
this.__data__ = tt ? tt(null) : {}, this.size = 0;
|
|
147
147
|
}
|
|
@@ -150,12 +150,12 @@ function un(r) {
|
|
|
150
150
|
var e = this.has(r) && delete this.__data__[r];
|
|
151
151
|
return this.size -= e ? 1 : 0, e;
|
|
152
152
|
}
|
|
153
|
-
var ln = un,
|
|
153
|
+
var ln = un, dn = he, cn = "__lodash_hash_undefined__", gn = Object.prototype, hn = gn.hasOwnProperty;
|
|
154
154
|
function fn(r) {
|
|
155
155
|
var e = this.__data__;
|
|
156
|
-
if (
|
|
156
|
+
if (dn) {
|
|
157
157
|
var t = e[r];
|
|
158
|
-
return t ===
|
|
158
|
+
return t === cn ? void 0 : t;
|
|
159
159
|
}
|
|
160
160
|
return hn.call(e, r) ? e[r] : void 0;
|
|
161
161
|
}
|
|
@@ -170,19 +170,19 @@ function An(r, e) {
|
|
|
170
170
|
return this.size += this.has(r) ? 0 : 1, t[r] = Cn && e === void 0 ? Sn : e, this;
|
|
171
171
|
}
|
|
172
172
|
var xn = An, En = on, Fn = ln, $n = pn, Tn = mn, Nn = xn;
|
|
173
|
-
function
|
|
173
|
+
function V(r) {
|
|
174
174
|
var e = -1, t = r == null ? 0 : r.length;
|
|
175
175
|
for (this.clear(); ++e < t; ) {
|
|
176
176
|
var i = r[e];
|
|
177
177
|
this.set(i[0], i[1]);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
var Dn =
|
|
180
|
+
V.prototype.clear = En;
|
|
181
|
+
V.prototype.delete = Fn;
|
|
182
|
+
V.prototype.get = $n;
|
|
183
|
+
V.prototype.has = Tn;
|
|
184
|
+
V.prototype.set = Nn;
|
|
185
|
+
var Dn = V, rt = Dn, wn = ce, On = Ge;
|
|
186
186
|
function Ln() {
|
|
187
187
|
this.size = 0, this.__data__ = {
|
|
188
188
|
hash: new rt(),
|
|
@@ -219,19 +219,19 @@ function Wn(r, e) {
|
|
|
219
219
|
return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
|
|
220
220
|
}
|
|
221
221
|
var Jn = Wn, Zn = In, Xn = jn, Qn = kn, es = qn, ts = Jn;
|
|
222
|
-
function
|
|
222
|
+
function k(r) {
|
|
223
223
|
var e = -1, t = r == null ? 0 : r.length;
|
|
224
224
|
for (this.clear(); ++e < t; ) {
|
|
225
225
|
var i = r[e];
|
|
226
226
|
this.set(i[0], i[1]);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
var Be =
|
|
229
|
+
k.prototype.clear = Zn;
|
|
230
|
+
k.prototype.delete = Xn;
|
|
231
|
+
k.prototype.get = Qn;
|
|
232
|
+
k.prototype.has = es;
|
|
233
|
+
k.prototype.set = ts;
|
|
234
|
+
var Be = k, rs = ce, is = Ge, ns = Be, ss = 200;
|
|
235
235
|
function as(r, e) {
|
|
236
236
|
var t = this.__data__;
|
|
237
237
|
if (t instanceof rs) {
|
|
@@ -242,17 +242,17 @@ function as(r, e) {
|
|
|
242
242
|
}
|
|
243
243
|
return t.set(r, e), this.size = t.size, this;
|
|
244
244
|
}
|
|
245
|
-
var os = as, us =
|
|
246
|
-
function
|
|
245
|
+
var os = as, us = ce, ls = Yr, ds = Jr, cs = Xr, gs = ei, hs = os;
|
|
246
|
+
function H(r) {
|
|
247
247
|
var e = this.__data__ = new us(r);
|
|
248
248
|
this.size = e.size;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var Yt =
|
|
250
|
+
H.prototype.clear = ls;
|
|
251
|
+
H.prototype.delete = ds;
|
|
252
|
+
H.prototype.get = cs;
|
|
253
|
+
H.prototype.has = gs;
|
|
254
|
+
H.prototype.set = hs;
|
|
255
|
+
var Yt = H, fs = "__lodash_hash_undefined__";
|
|
256
256
|
function ps(r) {
|
|
257
257
|
return this.__data__.set(r, fs), this;
|
|
258
258
|
}
|
|
@@ -284,29 +284,29 @@ function Os(r, e, t, i, n, s) {
|
|
|
284
284
|
var a = t & Ds, o = r.length, l = e.length;
|
|
285
285
|
if (o != l && !(a && l > o))
|
|
286
286
|
return !1;
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
289
|
-
return
|
|
287
|
+
var d = s.get(r), c = s.get(e);
|
|
288
|
+
if (d && c)
|
|
289
|
+
return d == e && c == r;
|
|
290
290
|
var g = -1, h = !0, y = t & ws ? new $s() : void 0;
|
|
291
291
|
for (s.set(r, e), s.set(e, r); ++g < o; ) {
|
|
292
|
-
var m = r[g],
|
|
292
|
+
var m = r[g], p = e[g];
|
|
293
293
|
if (i)
|
|
294
|
-
var
|
|
295
|
-
if (
|
|
296
|
-
if (
|
|
294
|
+
var x = a ? i(p, m, g, e, r, s) : i(m, p, g, r, e, s);
|
|
295
|
+
if (x !== void 0) {
|
|
296
|
+
if (x)
|
|
297
297
|
continue;
|
|
298
298
|
h = !1;
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
301
|
if (y) {
|
|
302
|
-
if (!Ts(e, function(
|
|
303
|
-
if (!Ns(y,
|
|
304
|
-
return y.push(
|
|
302
|
+
if (!Ts(e, function($, T) {
|
|
303
|
+
if (!Ns(y, T) && (m === $ || n(m, $, t, i, s)))
|
|
304
|
+
return y.push(T);
|
|
305
305
|
})) {
|
|
306
306
|
h = !1;
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
|
-
} else if (!(m ===
|
|
309
|
+
} else if (!(m === p || n(m, p, t, i, s))) {
|
|
310
310
|
h = !1;
|
|
311
311
|
break;
|
|
312
312
|
}
|
|
@@ -327,7 +327,7 @@ function Gs(r) {
|
|
|
327
327
|
t[++e] = i;
|
|
328
328
|
}), t;
|
|
329
329
|
}
|
|
330
|
-
var Bs = Gs, it =
|
|
330
|
+
var Bs = Gs, it = Z, nt = Ps, zs = Re, js = Wt, Us = Rs, Vs = Bs, ks = 1, Hs = 2, Ks = "[object Boolean]", qs = "[object Date]", Ys = "[object Error]", Ws = "[object Map]", Js = "[object Number]", Zs = "[object RegExp]", Xs = "[object Set]", Qs = "[object String]", ea = "[object Symbol]", ta = "[object ArrayBuffer]", ra = "[object DataView]", st = it ? it.prototype : void 0, me = st ? st.valueOf : void 0;
|
|
331
331
|
function ia(r, e, t, i, n, s, a) {
|
|
332
332
|
switch (t) {
|
|
333
333
|
case ra:
|
|
@@ -351,12 +351,12 @@ function ia(r, e, t, i, n, s, a) {
|
|
|
351
351
|
var l = i & ks;
|
|
352
352
|
if (o || (o = Vs), r.size != e.size && !l)
|
|
353
353
|
return !1;
|
|
354
|
-
var
|
|
355
|
-
if (
|
|
356
|
-
return
|
|
354
|
+
var d = a.get(r);
|
|
355
|
+
if (d)
|
|
356
|
+
return d == e;
|
|
357
357
|
i |= Hs, a.set(r, e);
|
|
358
|
-
var
|
|
359
|
-
return a.delete(r),
|
|
358
|
+
var c = js(o(r), o(e), i, n, s, a);
|
|
359
|
+
return a.delete(r), c;
|
|
360
360
|
case ea:
|
|
361
361
|
if (me)
|
|
362
362
|
return me.call(r) == me.call(e);
|
|
@@ -369,20 +369,20 @@ function sa(r, e) {
|
|
|
369
369
|
r[n + t] = e[t];
|
|
370
370
|
return r;
|
|
371
371
|
}
|
|
372
|
-
var Jt = sa, aa = Array.isArray,
|
|
372
|
+
var Jt = sa, aa = Array.isArray, F = aa, oa = Jt, ua = F;
|
|
373
373
|
function la(r, e, t) {
|
|
374
374
|
var i = e(r);
|
|
375
375
|
return ua(r) ? i : oa(i, t(r));
|
|
376
376
|
}
|
|
377
|
-
var
|
|
378
|
-
function
|
|
377
|
+
var da = la;
|
|
378
|
+
function ca(r, e) {
|
|
379
379
|
for (var t = -1, i = r == null ? 0 : r.length, n = 0, s = []; ++t < i; ) {
|
|
380
380
|
var a = r[t];
|
|
381
381
|
e(a, t, r) && (s[n++] = a);
|
|
382
382
|
}
|
|
383
383
|
return s;
|
|
384
384
|
}
|
|
385
|
-
var ga =
|
|
385
|
+
var ga = ca;
|
|
386
386
|
function ha() {
|
|
387
387
|
return [];
|
|
388
388
|
}
|
|
@@ -400,11 +400,11 @@ var Sa = Ca;
|
|
|
400
400
|
function Aa(r) {
|
|
401
401
|
return r != null && typeof r == "object";
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var Q = Aa, xa = X, Ea = Q, Fa = "[object Arguments]";
|
|
404
404
|
function $a(r) {
|
|
405
405
|
return Ea(r) && xa(r) == Fa;
|
|
406
406
|
}
|
|
407
|
-
var Ta = $a, ot = Ta, Na =
|
|
407
|
+
var Ta = $a, ot = Ta, Na = Q, Zt = Object.prototype, Da = Zt.hasOwnProperty, wa = Zt.propertyIsEnumerable, Oa = ot(/* @__PURE__ */ function() {
|
|
408
408
|
return arguments;
|
|
409
409
|
}()) ? ot : function(r) {
|
|
410
410
|
return Na(r) && Da.call(r, "callee") && !wa.call(r, "callee");
|
|
@@ -415,8 +415,8 @@ function La() {
|
|
|
415
415
|
var Ia = La;
|
|
416
416
|
se.exports;
|
|
417
417
|
(function(r, e) {
|
|
418
|
-
var t = D, i = Ia, n = e && !e.nodeType && e, s = n && !0 && r && !r.nodeType && r, a = s && s.exports === n, o = a ? t.Buffer : void 0, l = o ? o.isBuffer : void 0,
|
|
419
|
-
r.exports =
|
|
418
|
+
var t = D, i = Ia, n = e && !e.nodeType && e, s = n && !0 && r && !r.nodeType && r, a = s && s.exports === n, o = a ? t.Buffer : void 0, l = o ? o.isBuffer : void 0, d = l || i;
|
|
419
|
+
r.exports = d;
|
|
420
420
|
})(se, se.exports);
|
|
421
421
|
var Xt = se.exports, Pa = 9007199254740991, Ma = /^(?:0|[1-9]\d*)$/;
|
|
422
422
|
function Ra(r, e) {
|
|
@@ -427,7 +427,7 @@ var je = Ra, Ga = 9007199254740991;
|
|
|
427
427
|
function Ba(r) {
|
|
428
428
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ga;
|
|
429
429
|
}
|
|
430
|
-
var Ue = Ba, za =
|
|
430
|
+
var Ue = Ba, za = X, ja = Ue, Ua = Q, Va = "[object Arguments]", ka = "[object Array]", Ha = "[object Boolean]", Ka = "[object Date]", qa = "[object Error]", Ya = "[object Function]", Wa = "[object Map]", Ja = "[object Number]", Za = "[object Object]", Xa = "[object RegExp]", Qa = "[object Set]", eo = "[object String]", to = "[object WeakMap]", ro = "[object ArrayBuffer]", io = "[object DataView]", no = "[object Float32Array]", so = "[object Float64Array]", ao = "[object Int8Array]", oo = "[object Int16Array]", uo = "[object Int32Array]", lo = "[object Uint8Array]", co = "[object Uint8ClampedArray]", go = "[object Uint16Array]", ho = "[object Uint32Array]", b = {};
|
|
431
431
|
b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = b[ho] = !0;
|
|
432
432
|
b[Va] = b[ka] = b[ro] = b[Ha] = b[io] = b[Ka] = b[qa] = b[Ya] = b[Wa] = b[Ja] = b[Za] = b[Xa] = b[Qa] = b[eo] = b[to] = !1;
|
|
433
433
|
function fo(r) {
|
|
@@ -451,15 +451,15 @@ ae.exports;
|
|
|
451
451
|
}();
|
|
452
452
|
r.exports = o;
|
|
453
453
|
})(ae, ae.exports);
|
|
454
|
-
var yo = ae.exports, vo = po, _o = Qt, ut = yo, lt = ut && ut.isTypedArray, mo = lt ? _o(lt) : vo, er = mo, Co = Sa, So = ze, Ao =
|
|
454
|
+
var yo = ae.exports, vo = po, _o = Qt, ut = yo, lt = ut && ut.isTypedArray, mo = lt ? _o(lt) : vo, er = mo, Co = Sa, So = ze, Ao = F, xo = Xt, Eo = je, Fo = er, $o = Object.prototype, To = $o.hasOwnProperty;
|
|
455
455
|
function No(r, e) {
|
|
456
456
|
var t = Ao(r), i = !t && So(r), n = !t && !i && xo(r), s = !t && !i && !n && Fo(r), a = t || i || n || s, o = a ? Co(r.length, String) : [], l = o.length;
|
|
457
|
-
for (var
|
|
458
|
-
(e || To.call(r,
|
|
459
|
-
(
|
|
460
|
-
n && (
|
|
461
|
-
s && (
|
|
462
|
-
Eo(
|
|
457
|
+
for (var d in r)
|
|
458
|
+
(e || To.call(r, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
459
|
+
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
460
|
+
n && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
461
|
+
s && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
462
|
+
Eo(d, l))) && o.push(d);
|
|
463
463
|
return o;
|
|
464
464
|
}
|
|
465
465
|
var Do = No, wo = Object.prototype;
|
|
@@ -490,14 +490,14 @@ var pe = qo, Yo = Do, Wo = ko, Jo = pe;
|
|
|
490
490
|
function Zo(r) {
|
|
491
491
|
return Jo(r) ? Yo(r) : Wo(r);
|
|
492
492
|
}
|
|
493
|
-
var Ve = Zo, Xo =
|
|
493
|
+
var Ve = Zo, Xo = da, Qo = ma, eu = Ve;
|
|
494
494
|
function tu(r) {
|
|
495
495
|
return Xo(r, eu, Qo);
|
|
496
496
|
}
|
|
497
|
-
var ru = tu,
|
|
497
|
+
var ru = tu, dt = ru, iu = 1, nu = Object.prototype, su = nu.hasOwnProperty;
|
|
498
498
|
function au(r, e, t, i, n, s) {
|
|
499
|
-
var a = t & iu, o =
|
|
500
|
-
if (l !=
|
|
499
|
+
var a = t & iu, o = dt(r), l = o.length, d = dt(e), c = d.length;
|
|
500
|
+
if (l != c && !a)
|
|
501
501
|
return !1;
|
|
502
502
|
for (var g = l; g--; ) {
|
|
503
503
|
var h = o[g];
|
|
@@ -507,34 +507,34 @@ function au(r, e, t, i, n, s) {
|
|
|
507
507
|
var y = s.get(r), m = s.get(e);
|
|
508
508
|
if (y && m)
|
|
509
509
|
return y == e && m == r;
|
|
510
|
-
var
|
|
510
|
+
var p = !0;
|
|
511
511
|
s.set(r, e), s.set(e, r);
|
|
512
|
-
for (var
|
|
512
|
+
for (var x = a; ++g < l; ) {
|
|
513
513
|
h = o[g];
|
|
514
|
-
var
|
|
514
|
+
var $ = r[h], T = e[h];
|
|
515
515
|
if (i)
|
|
516
|
-
var
|
|
517
|
-
if (!(
|
|
518
|
-
|
|
516
|
+
var ee = a ? i(T, $, h, e, r, s) : i($, T, h, r, e, s);
|
|
517
|
+
if (!(ee === void 0 ? $ === T || n($, T, t, i, s) : ee)) {
|
|
518
|
+
p = !1;
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
x || (x = h == "constructor");
|
|
522
522
|
}
|
|
523
|
-
if (
|
|
524
|
-
var
|
|
525
|
-
|
|
523
|
+
if (p && !x) {
|
|
524
|
+
var _ = r.constructor, O = e.constructor;
|
|
525
|
+
_ != O && "constructor" in r && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof O == "function" && O instanceof O) && (p = !1);
|
|
526
526
|
}
|
|
527
|
-
return s.delete(r), s.delete(e),
|
|
527
|
+
return s.delete(r), s.delete(e), p;
|
|
528
528
|
}
|
|
529
|
-
var ou = au, uu =
|
|
530
|
-
(Fe &&
|
|
531
|
-
var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ?
|
|
529
|
+
var ou = au, uu = M, lu = D, du = uu(lu, "DataView"), cu = du, gu = M, hu = D, fu = gu(hu, "Promise"), pu = fu, bu = M, yu = D, vu = bu(yu, "Set"), _u = vu, mu = M, Cu = D, Su = mu(Cu, "WeakMap"), Au = Su, Fe = cu, $e = Ge, Te = pu, Ne = _u, De = Au, tr = X, K = qt, ct = "[object Map]", xu = "[object Object]", gt = "[object Promise]", ht = "[object Set]", ft = "[object WeakMap]", pt = "[object DataView]", Eu = K(Fe), Fu = K($e), $u = K(Te), Tu = K(Ne), Nu = K(De), L = tr;
|
|
530
|
+
(Fe && L(new Fe(new ArrayBuffer(1))) != pt || $e && L(new $e()) != ct || Te && L(Te.resolve()) != gt || Ne && L(new Ne()) != ht || De && L(new De()) != ft) && (L = function(r) {
|
|
531
|
+
var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ? K(t) : "";
|
|
532
532
|
if (i)
|
|
533
533
|
switch (i) {
|
|
534
534
|
case Eu:
|
|
535
535
|
return pt;
|
|
536
536
|
case Fu:
|
|
537
|
-
return
|
|
537
|
+
return ct;
|
|
538
538
|
case $u:
|
|
539
539
|
return gt;
|
|
540
540
|
case Tu:
|
|
@@ -544,28 +544,28 @@ var ou = au, uu = R, lu = D, cu = uu(lu, "DataView"), du = cu, gu = R, hu = D, f
|
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
546
546
|
});
|
|
547
|
-
var Du =
|
|
547
|
+
var Du = L, Ce = Yt, wu = Wt, Ou = na, Lu = ou, bt = Du, yt = F, vt = Xt, Iu = er, Pu = 1, _t = "[object Arguments]", mt = "[object Array]", re = "[object Object]", Mu = Object.prototype, Ct = Mu.hasOwnProperty;
|
|
548
548
|
function Ru(r, e, t, i, n, s) {
|
|
549
|
-
var a = yt(r), o = yt(e), l = a ? mt : bt(r),
|
|
550
|
-
l = l == _t ? re : l,
|
|
551
|
-
var
|
|
549
|
+
var a = yt(r), o = yt(e), l = a ? mt : bt(r), d = o ? mt : bt(e);
|
|
550
|
+
l = l == _t ? re : l, d = d == _t ? re : d;
|
|
551
|
+
var c = l == re, g = d == re, h = l == d;
|
|
552
552
|
if (h && vt(r)) {
|
|
553
553
|
if (!vt(e))
|
|
554
554
|
return !1;
|
|
555
|
-
a = !0,
|
|
555
|
+
a = !0, c = !1;
|
|
556
556
|
}
|
|
557
|
-
if (h && !
|
|
557
|
+
if (h && !c)
|
|
558
558
|
return s || (s = new Ce()), a || Iu(r) ? wu(r, e, t, i, n, s) : Ou(r, e, l, t, i, n, s);
|
|
559
559
|
if (!(t & Pu)) {
|
|
560
|
-
var y =
|
|
560
|
+
var y = c && Ct.call(r, "__wrapped__"), m = g && Ct.call(e, "__wrapped__");
|
|
561
561
|
if (y || m) {
|
|
562
|
-
var
|
|
563
|
-
return s || (s = new Ce()), n(
|
|
562
|
+
var p = y ? r.value() : r, x = m ? e.value() : e;
|
|
563
|
+
return s || (s = new Ce()), n(p, x, t, i, s);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return h ? (s || (s = new Ce()), Lu(r, e, t, i, n, s)) : !1;
|
|
567
567
|
}
|
|
568
|
-
var Gu = Ru, Bu = Gu, St =
|
|
568
|
+
var Gu = Ru, Bu = Gu, St = Q;
|
|
569
569
|
function rr(r, e, t, i, n) {
|
|
570
570
|
return r === e ? !0 : r == null || e == null || !St(r) && !St(e) ? r !== r && e !== e : Bu(r, e, t, i, rr, n);
|
|
571
571
|
}
|
|
@@ -575,7 +575,7 @@ function ju(r, e) {
|
|
|
575
575
|
}
|
|
576
576
|
var Uu = ju;
|
|
577
577
|
const Vu = /* @__PURE__ */ Me(Uu);
|
|
578
|
-
var At =
|
|
578
|
+
var At = Z, ku = ze, Hu = F, xt = At ? At.isConcatSpreadable : void 0;
|
|
579
579
|
function Ku(r) {
|
|
580
580
|
return Hu(r) || ku(r) || !!(xt && r && r[xt]);
|
|
581
581
|
}
|
|
@@ -594,11 +594,11 @@ function Zu(r, e) {
|
|
|
594
594
|
n[t] = e(r[t], t, r);
|
|
595
595
|
return n;
|
|
596
596
|
}
|
|
597
|
-
var nr = Zu, Xu =
|
|
597
|
+
var nr = Zu, Xu = X, Qu = Q, el = "[object Symbol]";
|
|
598
598
|
function tl(r) {
|
|
599
599
|
return typeof r == "symbol" || Qu(r) && Xu(r) == el;
|
|
600
600
|
}
|
|
601
|
-
var be = tl, rl =
|
|
601
|
+
var be = tl, rl = F, il = be, nl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, sl = /^\w*$/;
|
|
602
602
|
function al(r, e) {
|
|
603
603
|
if (rl(r))
|
|
604
604
|
return !1;
|
|
@@ -619,19 +619,19 @@ function Ke(r, e) {
|
|
|
619
619
|
return t.cache = new (Ke.Cache || sr)(), t;
|
|
620
620
|
}
|
|
621
621
|
Ke.Cache = sr;
|
|
622
|
-
var ul = Ke, ll = ul,
|
|
623
|
-
function
|
|
622
|
+
var ul = Ke, ll = ul, dl = 500;
|
|
623
|
+
function cl(r) {
|
|
624
624
|
var e = ll(r, function(i) {
|
|
625
|
-
return t.size ===
|
|
625
|
+
return t.size === dl && t.clear(), i;
|
|
626
626
|
}), t = e.cache;
|
|
627
627
|
return e;
|
|
628
628
|
}
|
|
629
|
-
var gl =
|
|
629
|
+
var gl = cl, hl = gl, fl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pl = /\\(\\)?/g, bl = hl(function(r) {
|
|
630
630
|
var e = [];
|
|
631
631
|
return r.charCodeAt(0) === 46 && e.push(""), r.replace(fl, function(t, i, n, s) {
|
|
632
632
|
e.push(n ? s.replace(pl, "$1") : i || t);
|
|
633
633
|
}), e;
|
|
634
|
-
}), yl = bl, Et =
|
|
634
|
+
}), yl = bl, Et = Z, vl = nr, _l = F, ml = be, Cl = 1 / 0, Ft = Et ? Et.prototype : void 0, $t = Ft ? Ft.toString : void 0;
|
|
635
635
|
function ar(r) {
|
|
636
636
|
if (typeof r == "string")
|
|
637
637
|
return r;
|
|
@@ -646,7 +646,7 @@ var Sl = ar, Al = Sl;
|
|
|
646
646
|
function xl(r) {
|
|
647
647
|
return r == null ? "" : Al(r);
|
|
648
648
|
}
|
|
649
|
-
var El = xl, Fl =
|
|
649
|
+
var El = xl, Fl = F, $l = He, Tl = yl, Nl = El;
|
|
650
650
|
function Dl(r, e) {
|
|
651
651
|
return Fl(r) ? r : $l(r, e) ? [r] : Tl(Nl(r));
|
|
652
652
|
}
|
|
@@ -676,15 +676,15 @@ function jl(r, e, t, i) {
|
|
|
676
676
|
}
|
|
677
677
|
for (; ++n < s; ) {
|
|
678
678
|
o = t[n];
|
|
679
|
-
var l = o[0],
|
|
679
|
+
var l = o[0], d = r[l], c = o[1];
|
|
680
680
|
if (a && o[2]) {
|
|
681
|
-
if (
|
|
681
|
+
if (d === void 0 && !(l in r))
|
|
682
682
|
return !1;
|
|
683
683
|
} else {
|
|
684
684
|
var g = new Rl();
|
|
685
685
|
if (i)
|
|
686
|
-
var h = i(
|
|
687
|
-
if (!(h === void 0 ? Gl(
|
|
686
|
+
var h = i(d, c, l, r, e, g);
|
|
687
|
+
if (!(h === void 0 ? Gl(c, d, Bl | zl, i, g) : h))
|
|
688
688
|
return !1;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
@@ -715,63 +715,63 @@ function Ql(r) {
|
|
|
715
715
|
return t === r || Jl(t, r, e);
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
var i = r == null ? void 0 :
|
|
718
|
+
var ed = Ql, td = qe;
|
|
719
|
+
function rd(r, e, t) {
|
|
720
|
+
var i = r == null ? void 0 : td(r, e);
|
|
721
721
|
return i === void 0 ? t : i;
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
function
|
|
723
|
+
var id = rd;
|
|
724
|
+
function nd(r, e) {
|
|
725
725
|
return r != null && e in Object(r);
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
e =
|
|
727
|
+
var sd = nd, ad = or, od = ze, ud = F, ld = je, dd = Ue, cd = ye;
|
|
728
|
+
function gd(r, e, t) {
|
|
729
|
+
e = ad(e, r);
|
|
730
730
|
for (var i = -1, n = e.length, s = !1; ++i < n; ) {
|
|
731
|
-
var a =
|
|
731
|
+
var a = cd(e[i]);
|
|
732
732
|
if (!(s = r != null && t(r, a)))
|
|
733
733
|
break;
|
|
734
734
|
r = r[a];
|
|
735
735
|
}
|
|
736
|
-
return s || ++i != n ? s : (n = r == null ? 0 : r.length, !!n &&
|
|
736
|
+
return s || ++i != n ? s : (n = r == null ? 0 : r.length, !!n && dd(n) && ld(a, n) && (ud(r) || od(r)));
|
|
737
737
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return r != null &&
|
|
738
|
+
var hd = gd, fd = sd, pd = hd;
|
|
739
|
+
function bd(r, e) {
|
|
740
|
+
return r != null && pd(r, e, fd);
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
function $
|
|
744
|
-
return
|
|
745
|
-
var i =
|
|
746
|
-
return i === void 0 && i === e ?
|
|
742
|
+
var yd = bd, vd = ke, _d = id, md = yd, Cd = He, Sd = ur, Ad = lr, xd = ye, Ed = 1, Fd = 2;
|
|
743
|
+
function $d(r, e) {
|
|
744
|
+
return Cd(r) && Sd(e) ? Ad(xd(r), e) : function(t) {
|
|
745
|
+
var i = _d(t, r);
|
|
746
|
+
return i === void 0 && i === e ? md(t, r) : vd(e, i, Ed | Fd);
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
749
|
+
var Td = $d;
|
|
750
|
+
function Nd(r) {
|
|
751
751
|
return r;
|
|
752
752
|
}
|
|
753
|
-
var ve =
|
|
754
|
-
function
|
|
753
|
+
var ve = Nd;
|
|
754
|
+
function Dd(r) {
|
|
755
755
|
return function(e) {
|
|
756
756
|
return e == null ? void 0 : e[r];
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
var
|
|
760
|
-
function
|
|
759
|
+
var wd = Dd, Od = qe;
|
|
760
|
+
function Ld(r) {
|
|
761
761
|
return function(e) {
|
|
762
|
-
return
|
|
762
|
+
return Od(e, r);
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
var
|
|
766
|
-
function
|
|
767
|
-
return
|
|
765
|
+
var Id = Ld, Pd = wd, Md = Id, Rd = He, Gd = ye;
|
|
766
|
+
function Bd(r) {
|
|
767
|
+
return Rd(r) ? Pd(Gd(r)) : Md(r);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
function
|
|
771
|
-
return typeof r == "function" ? r : r == null ?
|
|
769
|
+
var zd = Bd, jd = ed, Ud = Td, Vd = ve, kd = F, Hd = zd;
|
|
770
|
+
function Kd(r) {
|
|
771
|
+
return typeof r == "function" ? r : r == null ? Vd : typeof r == "object" ? kd(r) ? Ud(r[0], r[1]) : jd(r) : Hd(r);
|
|
772
772
|
}
|
|
773
|
-
var
|
|
774
|
-
function
|
|
773
|
+
var qd = Kd;
|
|
774
|
+
function Yd(r) {
|
|
775
775
|
return function(e, t, i) {
|
|
776
776
|
for (var n = -1, s = Object(e), a = i(e), o = a.length; o--; ) {
|
|
777
777
|
var l = a[r ? o : ++n];
|
|
@@ -781,81 +781,81 @@ function Yc(r) {
|
|
|
781
781
|
return e;
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
var
|
|
785
|
-
function
|
|
786
|
-
return r &&
|
|
784
|
+
var Wd = Yd, Jd = Wd, Zd = Jd(), Xd = Zd, Qd = Xd, ec = Ve;
|
|
785
|
+
function tc(r, e) {
|
|
786
|
+
return r && Qd(r, e, ec);
|
|
787
787
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
788
|
+
var rc = tc, ic = pe;
|
|
789
|
+
function nc(r, e) {
|
|
790
790
|
return function(t, i) {
|
|
791
791
|
if (t == null)
|
|
792
792
|
return t;
|
|
793
|
-
if (!
|
|
793
|
+
if (!ic(t))
|
|
794
794
|
return r(t, i);
|
|
795
795
|
for (var n = t.length, s = e ? n : -1, a = Object(t); (e ? s-- : ++s < n) && i(a[s], s, a) !== !1; )
|
|
796
796
|
;
|
|
797
797
|
return t;
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
802
|
-
var t = -1, i =
|
|
803
|
-
return
|
|
800
|
+
var sc = nc, ac = rc, oc = sc, uc = oc(ac), lc = uc, dc = lc, cc = pe;
|
|
801
|
+
function gc(r, e) {
|
|
802
|
+
var t = -1, i = cc(r) ? Array(r.length) : [];
|
|
803
|
+
return dc(r, function(n, s, a) {
|
|
804
804
|
i[++t] = e(n, s, a);
|
|
805
805
|
}), i;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
807
|
+
var hc = gc;
|
|
808
|
+
function fc(r, e) {
|
|
809
809
|
var t = r.length;
|
|
810
810
|
for (r.sort(e); t--; )
|
|
811
811
|
r[t] = r[t].value;
|
|
812
812
|
return r;
|
|
813
813
|
}
|
|
814
|
-
var
|
|
815
|
-
function
|
|
814
|
+
var pc = fc, Tt = be;
|
|
815
|
+
function bc(r, e) {
|
|
816
816
|
if (r !== e) {
|
|
817
|
-
var t = r !== void 0, i = r === null, n = r === r, s = Tt(r), a = e !== void 0, o = e === null, l = e === e,
|
|
818
|
-
if (!o && !
|
|
817
|
+
var t = r !== void 0, i = r === null, n = r === r, s = Tt(r), a = e !== void 0, o = e === null, l = e === e, d = Tt(e);
|
|
818
|
+
if (!o && !d && !s && r > e || s && a && l && !o && !d || i && a && l || !t && l || !n)
|
|
819
819
|
return 1;
|
|
820
|
-
if (!i && !s && !
|
|
820
|
+
if (!i && !s && !d && r < e || d && t && n && !i && !s || o && t && n || !a && n || !l)
|
|
821
821
|
return -1;
|
|
822
822
|
}
|
|
823
823
|
return 0;
|
|
824
824
|
}
|
|
825
|
-
var
|
|
826
|
-
function
|
|
825
|
+
var yc = bc, vc = yc;
|
|
826
|
+
function _c(r, e, t) {
|
|
827
827
|
for (var i = -1, n = r.criteria, s = e.criteria, a = n.length, o = t.length; ++i < a; ) {
|
|
828
|
-
var l =
|
|
828
|
+
var l = vc(n[i], s[i]);
|
|
829
829
|
if (l) {
|
|
830
830
|
if (i >= o)
|
|
831
831
|
return l;
|
|
832
|
-
var
|
|
833
|
-
return l * (
|
|
832
|
+
var d = t[i];
|
|
833
|
+
return l * (d == "desc" ? -1 : 1);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
return r.index - e.index;
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
function
|
|
838
|
+
var mc = _c, Se = nr, Cc = qe, Sc = qd, Ac = hc, xc = pc, Ec = Qt, Fc = mc, $c = ve, Tc = F;
|
|
839
|
+
function Nc(r, e, t) {
|
|
840
840
|
e.length ? e = Se(e, function(s) {
|
|
841
|
-
return
|
|
842
|
-
return
|
|
841
|
+
return Tc(s) ? function(a) {
|
|
842
|
+
return Cc(a, s.length === 1 ? s[0] : s);
|
|
843
843
|
} : s;
|
|
844
|
-
}) : e = [$
|
|
844
|
+
}) : e = [$c];
|
|
845
845
|
var i = -1;
|
|
846
|
-
e = Se(e,
|
|
847
|
-
var n =
|
|
848
|
-
var l = Se(e, function(
|
|
849
|
-
return
|
|
846
|
+
e = Se(e, Ec(Sc));
|
|
847
|
+
var n = Ac(r, function(s, a, o) {
|
|
848
|
+
var l = Se(e, function(d) {
|
|
849
|
+
return d(s);
|
|
850
850
|
});
|
|
851
851
|
return { criteria: l, index: ++i, value: s };
|
|
852
852
|
});
|
|
853
|
-
return
|
|
854
|
-
return
|
|
853
|
+
return xc(n, function(s, a) {
|
|
854
|
+
return Fc(s, a, t);
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
var
|
|
858
|
-
function
|
|
857
|
+
var Dc = Nc;
|
|
858
|
+
function wc(r, e, t) {
|
|
859
859
|
switch (t.length) {
|
|
860
860
|
case 0:
|
|
861
861
|
return r.call(e);
|
|
@@ -868,50 +868,50 @@ function wd(r, e, t) {
|
|
|
868
868
|
}
|
|
869
869
|
return r.apply(e, t);
|
|
870
870
|
}
|
|
871
|
-
var
|
|
872
|
-
function
|
|
871
|
+
var Oc = wc, Lc = Oc, Nt = Math.max;
|
|
872
|
+
function Ic(r, e, t) {
|
|
873
873
|
return e = Nt(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
874
874
|
for (var i = arguments, n = -1, s = Nt(i.length - e, 0), a = Array(s); ++n < s; )
|
|
875
875
|
a[n] = i[e + n];
|
|
876
876
|
n = -1;
|
|
877
877
|
for (var o = Array(e + 1); ++n < e; )
|
|
878
878
|
o[n] = i[n];
|
|
879
|
-
return o[e] = t(a),
|
|
879
|
+
return o[e] = t(a), Lc(r, this, o);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
882
|
+
var Pc = Ic;
|
|
883
|
+
function Mc(r) {
|
|
884
884
|
return function() {
|
|
885
885
|
return r;
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
var
|
|
888
|
+
var Rc = Mc, Gc = M, Bc = function() {
|
|
889
889
|
try {
|
|
890
|
-
var r =
|
|
890
|
+
var r = Gc(Object, "defineProperty");
|
|
891
891
|
return r({}, "", {}), r;
|
|
892
892
|
} catch {
|
|
893
893
|
}
|
|
894
|
-
}(),
|
|
894
|
+
}(), zc = Bc, jc = Rc, Dt = zc, Uc = ve, Vc = Dt ? function(r, e) {
|
|
895
895
|
return Dt(r, "toString", {
|
|
896
896
|
configurable: !0,
|
|
897
897
|
enumerable: !1,
|
|
898
|
-
value:
|
|
898
|
+
value: jc(e),
|
|
899
899
|
writable: !0
|
|
900
900
|
});
|
|
901
|
-
} :
|
|
902
|
-
function
|
|
901
|
+
} : Uc, kc = Vc, Hc = 800, Kc = 16, qc = Date.now;
|
|
902
|
+
function Yc(r) {
|
|
903
903
|
var e = 0, t = 0;
|
|
904
904
|
return function() {
|
|
905
|
-
var i =
|
|
905
|
+
var i = qc(), n = Kc - (i - t);
|
|
906
906
|
if (t = i, n > 0) {
|
|
907
|
-
if (++e >=
|
|
907
|
+
if (++e >= Hc)
|
|
908
908
|
return arguments[0];
|
|
909
909
|
} else
|
|
910
910
|
e = 0;
|
|
911
911
|
return r.apply(void 0, arguments);
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
|
-
var
|
|
914
|
+
var Wc = Yc, Jc = kc, Zc = Wc, Xc = Zc(Jc), Qc = Xc, eg = ve, tg = Pc, rg = Qc;
|
|
915
915
|
function ig(r, e) {
|
|
916
916
|
return rg(tg(r, e, eg), r + "");
|
|
917
917
|
}
|
|
@@ -922,13 +922,13 @@ function lg(r, e, t) {
|
|
|
922
922
|
var i = typeof e;
|
|
923
923
|
return (i == "number" ? ag(t) && og(e, t.length) : i == "string" && e in t) ? sg(t[e], r) : !1;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var dg = lg, cg = Ju, gg = Dc, hg = ng, wt = dg, fg = hg(function(r, e) {
|
|
926
926
|
if (r == null)
|
|
927
927
|
return [];
|
|
928
928
|
var t = e.length;
|
|
929
|
-
return t > 1 && wt(r, e[0], e[1]) ? e = [] : t > 2 && wt(e[0], e[1], e[2]) && (e = [e[0]]), gg(r,
|
|
929
|
+
return t > 1 && wt(r, e[0], e[1]) ? e = [] : t > 2 && wt(e[0], e[1], e[2]) && (e = [e[0]]), gg(r, cg(e, 1), []);
|
|
930
930
|
}), pg = fg;
|
|
931
|
-
const
|
|
931
|
+
const G = /* @__PURE__ */ Me(pg), bg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, yg = [
|
|
932
932
|
"label",
|
|
933
933
|
"Label",
|
|
934
934
|
"name",
|
|
@@ -1189,17 +1189,17 @@ class u {
|
|
|
1189
1189
|
static formatCurrencyValue(e, t) {
|
|
1190
1190
|
const i = e < 0 ? "- " : "";
|
|
1191
1191
|
switch (t.format) {
|
|
1192
|
-
case
|
|
1192
|
+
case R.SYMBOL_COMMAS_DOT:
|
|
1193
1193
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",", ".")}`;
|
|
1194
|
-
case
|
|
1194
|
+
case R.SYMBOL_COMMAS:
|
|
1195
1195
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",")}`;
|
|
1196
|
-
case
|
|
1196
|
+
case R.DOTS_COMMA_SYMBOL:
|
|
1197
1197
|
return `${i}${u.formatNumberToCurrency(e, ".", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1198
|
-
case
|
|
1198
|
+
case R.DOTS_SYMBOL:
|
|
1199
1199
|
return `${i}${u.formatNumberToCurrency(e, ".")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1200
|
-
case
|
|
1200
|
+
case R.SPACES_COMMA_SYMBOL:
|
|
1201
1201
|
return `${i}${u.formatNumberToCurrency(e, " ", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1202
|
-
case
|
|
1202
|
+
case R.SPACES_SYMBOL:
|
|
1203
1203
|
return `${i}${u.formatNumberToCurrency(e, " ")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1204
1204
|
default:
|
|
1205
1205
|
throw Error(`Cannot format property value ${e}, unknown format ${t.format}.`);
|
|
@@ -1291,7 +1291,7 @@ class N {
|
|
|
1291
1291
|
}), s.join(" - ").trim()) : "";
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
var
|
|
1294
|
+
var dr = { exports: {} }, cr = { exports: {} };
|
|
1295
1295
|
(function() {
|
|
1296
1296
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
|
|
1297
1297
|
// Bit-wise rotation left
|
|
@@ -1355,9 +1355,9 @@ var cr = { exports: {} }, dr = { exports: {} };
|
|
|
1355
1355
|
return i;
|
|
1356
1356
|
}
|
|
1357
1357
|
};
|
|
1358
|
-
|
|
1358
|
+
cr.exports = e;
|
|
1359
1359
|
})();
|
|
1360
|
-
var vg =
|
|
1360
|
+
var vg = cr.exports, we = {
|
|
1361
1361
|
// UTF-8 encoding
|
|
1362
1362
|
utf8: {
|
|
1363
1363
|
// Convert a string to a byte array
|
|
@@ -1388,30 +1388,30 @@ var vg = dr.exports, we = {
|
|
|
1388
1388
|
(function() {
|
|
1389
1389
|
var r = vg, e = Ot.utf8, t = Ot.bin, i = function(s) {
|
|
1390
1390
|
s.constructor == String ? s = e.stringToBytes(s) : typeof Buffer < "u" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(s) ? s = Array.prototype.slice.call(s, 0) : Array.isArray(s) || (s = s.toString());
|
|
1391
|
-
var a = r.bytesToWords(s), o = s.length * 8, l = [],
|
|
1391
|
+
var a = r.bytesToWords(s), o = s.length * 8, l = [], d = 1732584193, c = -271733879, g = -1732584194, h = 271733878, y = -1009589776;
|
|
1392
1392
|
a[o >> 5] |= 128 << 24 - o % 32, a[(o + 64 >>> 9 << 4) + 15] = o;
|
|
1393
1393
|
for (var m = 0; m < a.length; m += 16) {
|
|
1394
|
-
for (var
|
|
1395
|
-
if (
|
|
1396
|
-
l[
|
|
1394
|
+
for (var p = d, x = c, $ = g, T = h, ee = y, _ = 0; _ < 80; _++) {
|
|
1395
|
+
if (_ < 16)
|
|
1396
|
+
l[_] = a[m + _];
|
|
1397
1397
|
else {
|
|
1398
|
-
var
|
|
1399
|
-
l[
|
|
1398
|
+
var O = l[_ - 3] ^ l[_ - 8] ^ l[_ - 14] ^ l[_ - 16];
|
|
1399
|
+
l[_] = O << 1 | O >>> 31;
|
|
1400
1400
|
}
|
|
1401
|
-
var br = (
|
|
1402
|
-
y = h, h = g, g =
|
|
1401
|
+
var br = (d << 5 | d >>> 27) + y + (l[_] >>> 0) + (_ < 20 ? (c & g | ~c & h) + 1518500249 : _ < 40 ? (c ^ g ^ h) + 1859775393 : _ < 60 ? (c & g | c & h | g & h) - 1894007588 : (c ^ g ^ h) - 899497514);
|
|
1402
|
+
y = h, h = g, g = c << 30 | c >>> 2, c = d, d = br;
|
|
1403
1403
|
}
|
|
1404
|
-
|
|
1404
|
+
d += p, c += x, g += $, h += T, y += ee;
|
|
1405
1405
|
}
|
|
1406
|
-
return [
|
|
1406
|
+
return [d, c, g, h, y];
|
|
1407
1407
|
}, n = function(s, a) {
|
|
1408
1408
|
var o = r.wordsToBytes(i(s));
|
|
1409
1409
|
return a && a.asBytes ? o : a && a.asString ? t.bytesToString(o) : r.bytesToHex(o);
|
|
1410
1410
|
};
|
|
1411
|
-
n._blocksize = 16, n._digestsize = 20,
|
|
1411
|
+
n._blocksize = 16, n._digestsize = 20, dr.exports = n;
|
|
1412
1412
|
})();
|
|
1413
|
-
var _g =
|
|
1414
|
-
const oe = /* @__PURE__ */ Me(_g),
|
|
1413
|
+
var _g = dr.exports;
|
|
1414
|
+
const oe = /* @__PURE__ */ Me(_g), E = "#7f7f7f", Lt = [
|
|
1415
1415
|
"#9467bd",
|
|
1416
1416
|
"#e377c2",
|
|
1417
1417
|
"#1f77b4",
|
|
@@ -1431,7 +1431,7 @@ const oe = /* @__PURE__ */ Me(_g), $ = "#7f7f7f", Lt = [
|
|
|
1431
1431
|
"#ffbb78",
|
|
1432
1432
|
"#c49c94"
|
|
1433
1433
|
];
|
|
1434
|
-
class
|
|
1434
|
+
class A {
|
|
1435
1435
|
constructor(e) {
|
|
1436
1436
|
this.colorsCache = /* @__PURE__ */ new Map(), this._rulesMap = {}, this.refresh(e);
|
|
1437
1437
|
}
|
|
@@ -1452,7 +1452,7 @@ class F {
|
|
|
1452
1452
|
* Return the color for a node when style color is auto
|
|
1453
1453
|
*/
|
|
1454
1454
|
static autoColor(e, t) {
|
|
1455
|
-
return u.isDefined(e) ? Lt[
|
|
1455
|
+
return u.isDefined(e) ? Lt[A.getRandomUniqueColorPaletteIndex(e, Lt.length, t)] : E;
|
|
1456
1456
|
}
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Return a number from 0 to number of occurrence in a palette based on a property
|
|
@@ -1464,7 +1464,7 @@ class F {
|
|
|
1464
1464
|
* Get color of a type
|
|
1465
1465
|
*/
|
|
1466
1466
|
static getTypeColor(e, t) {
|
|
1467
|
-
return typeof e.style.color == "object" && e.style.color.input[0] !== "properties" ?
|
|
1467
|
+
return typeof e.style.color == "object" && e.style.color.input[0] !== "properties" ? A.autoColor(t, e.style.color.ignoreCase) : !u.isDefined(e.input) && typeof e.style.color != "object" ? e.style.color : null;
|
|
1468
1468
|
}
|
|
1469
1469
|
/**
|
|
1470
1470
|
* return the corresponding size to the value with a linear function
|
|
@@ -1501,7 +1501,7 @@ class F {
|
|
|
1501
1501
|
return typeof e == "object" && (e == null ? void 0 : e.type) === "autoRange";
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
class
|
|
1504
|
+
class W extends A {
|
|
1505
1505
|
constructor(e) {
|
|
1506
1506
|
super(e);
|
|
1507
1507
|
}
|
|
@@ -1520,7 +1520,7 @@ class J extends F {
|
|
|
1520
1520
|
*/
|
|
1521
1521
|
color(e) {
|
|
1522
1522
|
if (!u.isDefined(e))
|
|
1523
|
-
return
|
|
1523
|
+
return E;
|
|
1524
1524
|
let t;
|
|
1525
1525
|
for (let i = 0; i < this._rulesMap.color.length; ++i) {
|
|
1526
1526
|
const n = this._rulesMap.color[i];
|
|
@@ -1529,12 +1529,12 @@ class J extends F {
|
|
|
1529
1529
|
t = n.style.color;
|
|
1530
1530
|
else if (typeof n.style.color == "object") {
|
|
1531
1531
|
const s = u.getIn(e, n.style.color.input);
|
|
1532
|
-
t =
|
|
1532
|
+
t = A.autoColor(`${s}`, n.style.color.ignoreCase);
|
|
1533
1533
|
}
|
|
1534
1534
|
break;
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
|
-
return u.isDefined(t) ? t :
|
|
1537
|
+
return u.isDefined(t) ? t : E;
|
|
1538
1538
|
}
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Generate shape for a given node
|
|
@@ -1542,20 +1542,20 @@ class J extends F {
|
|
|
1542
1542
|
shape(e) {
|
|
1543
1543
|
var t;
|
|
1544
1544
|
if (this._rulesMap.shape !== void 0)
|
|
1545
|
-
return (t =
|
|
1545
|
+
return (t = W.matchStyle(this._rulesMap.shape, e)) == null ? void 0 : t.style.shape;
|
|
1546
1546
|
}
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Generate size for a given node
|
|
1549
1549
|
*/
|
|
1550
1550
|
width(e) {
|
|
1551
1551
|
if (this._rulesMap.width !== void 0) {
|
|
1552
|
-
const t =
|
|
1552
|
+
const t = W.matchStyle(this._rulesMap.width, e);
|
|
1553
1553
|
if (t !== void 0) {
|
|
1554
1554
|
const i = t == null ? void 0 : t.style.width;
|
|
1555
1555
|
if (i !== void 0 && this.isAutoRange(i)) {
|
|
1556
1556
|
if (i.input !== void 0 && i.max !== void 0 && i.min !== void 0) {
|
|
1557
1557
|
const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale === Vt.LOGARITHMIC;
|
|
1558
|
-
return
|
|
1558
|
+
return W.getAutomaticRangeWidth(s, t, a);
|
|
1559
1559
|
}
|
|
1560
1560
|
} else
|
|
1561
1561
|
return i;
|
|
@@ -1592,13 +1592,13 @@ class J extends F {
|
|
|
1592
1592
|
shape: this.shape(e),
|
|
1593
1593
|
width: this.width(e)
|
|
1594
1594
|
} : {
|
|
1595
|
-
color:
|
|
1595
|
+
color: E,
|
|
1596
1596
|
shape: vr.ARROW,
|
|
1597
1597
|
width: "100%"
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
class
|
|
1601
|
+
class z extends A {
|
|
1602
1602
|
constructor(e) {
|
|
1603
1603
|
super(e);
|
|
1604
1604
|
}
|
|
@@ -1619,7 +1619,7 @@ class U extends F {
|
|
|
1619
1619
|
*/
|
|
1620
1620
|
color(e) {
|
|
1621
1621
|
if (!u.isDefined(e))
|
|
1622
|
-
return [
|
|
1622
|
+
return [E];
|
|
1623
1623
|
const t = oe(JSON.stringify(e)), i = this.colorsCache.get(t);
|
|
1624
1624
|
if (i !== void 0)
|
|
1625
1625
|
return i;
|
|
@@ -1627,19 +1627,19 @@ class U extends F {
|
|
|
1627
1627
|
for (let a = 0; a < e.categories.length; ++a) {
|
|
1628
1628
|
let o = null;
|
|
1629
1629
|
for (let l = 0; l < this._rulesMap.color.length; ++l) {
|
|
1630
|
-
const
|
|
1631
|
-
if (!(
|
|
1632
|
-
if (typeof
|
|
1633
|
-
const
|
|
1634
|
-
Array.isArray(
|
|
1630
|
+
const d = this._rulesMap.color[l];
|
|
1631
|
+
if (!(d.itemType !== void 0 && d.itemType !== null && d.itemType !== e.categories[a]) && d.canApplyTo(e)) {
|
|
1632
|
+
if (typeof d.style.color == "object") {
|
|
1633
|
+
const c = u.getIn(e, d.style.color.input);
|
|
1634
|
+
Array.isArray(c) ? o = A.autoColor(e.categories[a], d.style.color.ignoreCase) : o = A.autoColor(`${c}`, d.style.color.ignoreCase);
|
|
1635
1635
|
} else
|
|
1636
|
-
o =
|
|
1636
|
+
o = d.style.color;
|
|
1637
1637
|
break;
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
n.push(o);
|
|
1641
1641
|
}
|
|
1642
|
-
n = n.filter((a) => u.isDefined(a)), n.length === 0 && (n = [
|
|
1642
|
+
n = n.filter((a) => u.isDefined(a)), n.length === 0 && (n = [E]);
|
|
1643
1643
|
const s = n.length === 1 ? n[0] : n;
|
|
1644
1644
|
return this.colorsCache.set(t, s), s;
|
|
1645
1645
|
}
|
|
@@ -1658,28 +1658,28 @@ class U extends F {
|
|
|
1658
1658
|
};
|
|
1659
1659
|
for (let l = 0; l < s.length; ++l)
|
|
1660
1660
|
if (s[l].canApplyTo(e)) {
|
|
1661
|
-
const
|
|
1662
|
-
if ("icon" in
|
|
1661
|
+
const d = s[l].style;
|
|
1662
|
+
if ("icon" in d && typeof d.icon == "object")
|
|
1663
1663
|
n = {
|
|
1664
1664
|
icon: {
|
|
1665
|
-
content: (a =
|
|
1666
|
-
font: (o =
|
|
1665
|
+
content: (a = d.icon) == null ? void 0 : a.content,
|
|
1666
|
+
font: (o = d.icon) == null ? void 0 : o.font,
|
|
1667
1667
|
scale: 0.5,
|
|
1668
|
-
color:
|
|
1668
|
+
color: j.isBright(i) ? "#000000" : "#FFFFFF"
|
|
1669
1669
|
}
|
|
1670
1670
|
};
|
|
1671
|
-
else if ("image" in
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1671
|
+
else if ("image" in d && typeof d.image == "object") {
|
|
1672
|
+
const c = z.getImageUrlFromStyleRule(
|
|
1673
|
+
d.image.url,
|
|
1674
1674
|
e,
|
|
1675
1675
|
this._baseUrl
|
|
1676
1676
|
);
|
|
1677
|
-
|
|
1677
|
+
c !== void 0 && (n = {
|
|
1678
1678
|
image: {
|
|
1679
|
-
url:
|
|
1680
|
-
scale:
|
|
1681
|
-
fit:
|
|
1682
|
-
tile:
|
|
1679
|
+
url: c,
|
|
1680
|
+
scale: d.image.scale,
|
|
1681
|
+
fit: d.image.fit,
|
|
1682
|
+
tile: d.image.tile,
|
|
1683
1683
|
minVisibleSize: 0
|
|
1684
1684
|
}
|
|
1685
1685
|
});
|
|
@@ -1693,7 +1693,7 @@ class U extends F {
|
|
|
1693
1693
|
*/
|
|
1694
1694
|
shape(e) {
|
|
1695
1695
|
let t;
|
|
1696
|
-
return this._rulesMap.shape !== void 0 &&
|
|
1696
|
+
return this._rulesMap.shape !== void 0 && z.matchStyle(this._rulesMap.shape, e, (i) => {
|
|
1697
1697
|
t = i.style.shape;
|
|
1698
1698
|
}), t;
|
|
1699
1699
|
}
|
|
@@ -1702,7 +1702,7 @@ class U extends F {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
size(e) {
|
|
1704
1704
|
let t;
|
|
1705
|
-
return this._rulesMap.size !== void 0 &&
|
|
1705
|
+
return this._rulesMap.size !== void 0 && z.matchStyle(
|
|
1706
1706
|
this._rulesMap.size,
|
|
1707
1707
|
e,
|
|
1708
1708
|
(i) => {
|
|
@@ -1710,7 +1710,7 @@ class U extends F {
|
|
|
1710
1710
|
if (this.isAutoRange(n)) {
|
|
1711
1711
|
if (n.input !== void 0 && n.max !== void 0 && n.min !== void 0) {
|
|
1712
1712
|
const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale === Vt.LOGARITHMIC;
|
|
1713
|
-
t =
|
|
1713
|
+
t = z.getAutomaticRangeSize(a, i, o);
|
|
1714
1714
|
}
|
|
1715
1715
|
} else
|
|
1716
1716
|
t = n;
|
|
@@ -1744,7 +1744,7 @@ class U extends F {
|
|
|
1744
1744
|
all(e) {
|
|
1745
1745
|
if (!u.isDefined(e))
|
|
1746
1746
|
return {
|
|
1747
|
-
color:
|
|
1747
|
+
color: E
|
|
1748
1748
|
};
|
|
1749
1749
|
const t = this.icon(e);
|
|
1750
1750
|
return {
|
|
@@ -1902,12 +1902,12 @@ class C {
|
|
|
1902
1902
|
*/
|
|
1903
1903
|
getTypeColor(e) {
|
|
1904
1904
|
let t;
|
|
1905
|
-
return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t =
|
|
1905
|
+
return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t = A.getTypeColor(this, e)), t;
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
var w = /* @__PURE__ */ ((r) => (r.COLOR = "color", r.ICON = "icon", r.SIZE = "size", r.IMAGE = "image", r.SHAPE = "shape", r.WIDTH = "width", r))(w || {});
|
|
1909
|
-
const
|
|
1910
|
-
class
|
|
1909
|
+
const B = ["specificity", "itemType", "index"];
|
|
1910
|
+
class f {
|
|
1911
1911
|
constructor(e) {
|
|
1912
1912
|
this._rules = e;
|
|
1913
1913
|
}
|
|
@@ -1917,7 +1917,7 @@ class p {
|
|
|
1917
1917
|
* @return {Array<StyleRule>}
|
|
1918
1918
|
*/
|
|
1919
1919
|
get color() {
|
|
1920
|
-
return
|
|
1920
|
+
return G(f.getBy("color", this._rules), B);
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Return an array of StyleRule with only 'icon' rules and sorted by specificity, itemType and index
|
|
@@ -1925,12 +1925,12 @@ class p {
|
|
|
1925
1925
|
* @return {Array<StyleRule>}
|
|
1926
1926
|
*/
|
|
1927
1927
|
get icon() {
|
|
1928
|
-
return
|
|
1928
|
+
return G(
|
|
1929
1929
|
[
|
|
1930
|
-
...
|
|
1931
|
-
...
|
|
1930
|
+
...f.getBy("icon", this._rules) || [],
|
|
1931
|
+
...f.getBy("image", this._rules) || []
|
|
1932
1932
|
],
|
|
1933
|
-
|
|
1933
|
+
B
|
|
1934
1934
|
);
|
|
1935
1935
|
}
|
|
1936
1936
|
/**
|
|
@@ -1939,7 +1939,7 @@ class p {
|
|
|
1939
1939
|
* @return {Array<StyleRule>}
|
|
1940
1940
|
*/
|
|
1941
1941
|
get image() {
|
|
1942
|
-
return
|
|
1942
|
+
return G(f.getBy("image", this._rules), B);
|
|
1943
1943
|
}
|
|
1944
1944
|
/**
|
|
1945
1945
|
* Return an array of StyleRule with only 'shape' rules and sorted by specificity, itemType and index
|
|
@@ -1947,7 +1947,7 @@ class p {
|
|
|
1947
1947
|
* @return {Array<StyleRule>}
|
|
1948
1948
|
*/
|
|
1949
1949
|
get shape() {
|
|
1950
|
-
return
|
|
1950
|
+
return G(f.getBy("shape", this._rules), B);
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Return an array of StyleRule with only 'size' rules and sorted by specificity, itemType and index
|
|
@@ -1955,7 +1955,7 @@ class p {
|
|
|
1955
1955
|
* @return {Array<StyleRule>}
|
|
1956
1956
|
*/
|
|
1957
1957
|
get size() {
|
|
1958
|
-
return
|
|
1958
|
+
return G(f.getBy("size", this._rules), B);
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Return an array of StyleRule with only 'width' rules and sorted by specificity, itemType and index
|
|
@@ -1963,7 +1963,7 @@ class p {
|
|
|
1963
1963
|
* @return {Array<StyleRule>}
|
|
1964
1964
|
*/
|
|
1965
1965
|
get width() {
|
|
1966
|
-
return
|
|
1966
|
+
return G(f.getBy("width", this._rules), B);
|
|
1967
1967
|
}
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Return an object containing for each node style a sorted array of StyleRule
|
|
@@ -1997,13 +1997,13 @@ class p {
|
|
|
1997
1997
|
generateLegend(e) {
|
|
1998
1998
|
const t = {};
|
|
1999
1999
|
return e.length === 0 || ("categories" in e[0] ? Object.keys(this.nodeRules).forEach((i) => {
|
|
2000
|
-
t[i] =
|
|
2000
|
+
t[i] = f.getLegendForStyle(
|
|
2001
2001
|
i,
|
|
2002
2002
|
this.nodeRules[i],
|
|
2003
2003
|
e
|
|
2004
2004
|
);
|
|
2005
2005
|
}) : Object.keys(this.edgeRules).forEach((i) => {
|
|
2006
|
-
t[i] =
|
|
2006
|
+
t[i] = f.getLegendForStyle(
|
|
2007
2007
|
i,
|
|
2008
2008
|
this.edgeRules[i],
|
|
2009
2009
|
e
|
|
@@ -2017,18 +2017,18 @@ class p {
|
|
|
2017
2017
|
const n = [], s = i.filter((a) => a);
|
|
2018
2018
|
for (let a = 0; a < t.length; a++) {
|
|
2019
2019
|
const o = new C(t[a]);
|
|
2020
|
-
if (s.some((
|
|
2020
|
+
if (s.some((d) => o.canApplyTo(d)))
|
|
2021
2021
|
if (e === "color" && typeof o.style.color == "object")
|
|
2022
|
-
|
|
2022
|
+
f.addLegendAutoColors(s, o, n);
|
|
2023
2023
|
else if (e === "icon" && "image" in o.style) {
|
|
2024
|
-
const
|
|
2025
|
-
if (!(
|
|
2024
|
+
const d = u.isDefined(o.input) ? `${f.getTypeLabel(o.itemType)}.${o.input[1]} ${f.sanitizeValue(o.type, o.value)}` : `${f.getTypeLabel(o.itemType)}`, c = o.style.image;
|
|
2025
|
+
if (!(c.url && typeof c.url == "object" && c.url.type === "data")) {
|
|
2026
2026
|
const g = o.style.image;
|
|
2027
|
-
|
|
2027
|
+
f.updateLegend(n, { label: d, value: g });
|
|
2028
2028
|
}
|
|
2029
2029
|
} else {
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2030
|
+
const d = u.isDefined(o.input) ? `${f.getTypeLabel(o.itemType)}.${o.input[1]} ${f.sanitizeValue(o.type, o.value)}` : `${f.getTypeLabel(o.itemType)}`, c = o.style[e];
|
|
2031
|
+
f.updateLegend(n, { label: d, value: c });
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
return n;
|
|
@@ -2059,12 +2059,12 @@ class p {
|
|
|
2059
2059
|
const o = u.getIn(a, n.input);
|
|
2060
2060
|
if (Array.isArray(o))
|
|
2061
2061
|
o.forEach((l) => {
|
|
2062
|
-
const
|
|
2063
|
-
|
|
2062
|
+
const d = n.input.includes("properties") ? `${f.getTypeLabel(t.itemType)}.${s} = ${l}` : `${f.getTypeLabel(l)}`, c = A.autoColor(l, n.ignoreCase);
|
|
2063
|
+
f.updateLegend(i, { label: d, value: c });
|
|
2064
2064
|
});
|
|
2065
2065
|
else {
|
|
2066
|
-
const l = n.input.includes("properties") ? `${
|
|
2067
|
-
|
|
2066
|
+
const l = n.input.includes("properties") ? `${f.getTypeLabel(t.itemType)}.${s} = ${o}` : `${f.getTypeLabel(o)}`, d = A.autoColor(o, n.ignoreCase);
|
|
2067
|
+
f.updateLegend(i, { label: l, value: d });
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
@@ -2079,7 +2079,7 @@ class p {
|
|
|
2079
2079
|
*/
|
|
2080
2080
|
getColorForType(e) {
|
|
2081
2081
|
const t = this.color.map((i) => i.getTypeColor(e)).filter((i) => u.isDefined(i));
|
|
2082
|
-
return t.length > 0 ? t[t.length - 1] :
|
|
2082
|
+
return t.length > 0 ? t[t.length - 1] : E;
|
|
2083
2083
|
}
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Return the icon of item type from the list of styles
|
|
@@ -2117,7 +2117,7 @@ class p {
|
|
|
2117
2117
|
case "width":
|
|
2118
2118
|
return "width" in i.style && i.style.width !== void 0;
|
|
2119
2119
|
}
|
|
2120
|
-
}).map((i) =>
|
|
2120
|
+
}).map((i) => f.getRule(i, e));
|
|
2121
2121
|
}
|
|
2122
2122
|
/**
|
|
2123
2123
|
* From a RawStyle, generate a StyleRule of a specific style
|
|
@@ -2303,7 +2303,7 @@ const Ae = {
|
|
|
2303
2303
|
}, Rt = "#7f7f7f";
|
|
2304
2304
|
class Ag {
|
|
2305
2305
|
constructor(e, t) {
|
|
2306
|
-
this._nodeAttributes = new
|
|
2306
|
+
this._nodeAttributes = new z({}), this._edgeAttributes = new W({}), this._ogma = e, this._defaultConfiguration = t, this._nodeAttributes.setBaseUrl(t.baseUrl);
|
|
2307
2307
|
}
|
|
2308
2308
|
get nodeAttributes() {
|
|
2309
2309
|
return this._nodeAttributes;
|
|
@@ -2459,7 +2459,7 @@ class Ag {
|
|
|
2459
2459
|
color: "rgb(240, 240, 240)",
|
|
2460
2460
|
innerStroke: {
|
|
2461
2461
|
width: 1,
|
|
2462
|
-
color:
|
|
2462
|
+
color: E,
|
|
2463
2463
|
minVisibleSize: 1
|
|
2464
2464
|
},
|
|
2465
2465
|
shape: "circle",
|
|
@@ -2475,7 +2475,7 @@ class Ag {
|
|
|
2475
2475
|
},
|
|
2476
2476
|
detectable: !1,
|
|
2477
2477
|
text: null,
|
|
2478
|
-
color:
|
|
2478
|
+
color: E,
|
|
2479
2479
|
shape: "line",
|
|
2480
2480
|
width: 0.2
|
|
2481
2481
|
}
|
|
@@ -2613,7 +2613,7 @@ class Ag {
|
|
|
2613
2613
|
* Return an array of StyleRules with only the style that need to be applied
|
|
2614
2614
|
*/
|
|
2615
2615
|
getStyleRule(e, t) {
|
|
2616
|
-
return new
|
|
2616
|
+
return new f(e)[t];
|
|
2617
2617
|
}
|
|
2618
2618
|
initNodeColors(e) {
|
|
2619
2619
|
const t = this.getStyleRule(
|
|
@@ -2775,17 +2775,11 @@ class Ag {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
/**
|
|
2777
2777
|
* Get node radius
|
|
2778
|
-
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.
|
|
2778
|
+
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.x
|
|
2779
2779
|
* The issue is still present in Ogma 5.2
|
|
2780
2780
|
*/
|
|
2781
2781
|
_getNodeRadius(e) {
|
|
2782
|
-
|
|
2783
|
-
if (!e.isVirtual() && O.isGroupCollapsed(e))
|
|
2784
|
-
return e.getAttribute("radius");
|
|
2785
|
-
{
|
|
2786
|
-
const { width: i, height: n } = (t = e.getSubNodes()) == null ? void 0 : t.getBoundingBox();
|
|
2787
|
-
return Math.max(i, n);
|
|
2788
|
-
}
|
|
2782
|
+
return !e.isVirtual() || j.isGroupCollapsed(e) ? e.getAttribute("radius") : this._ogma.transformations.getXYR(e.toList())[0].radius;
|
|
2789
2783
|
}
|
|
2790
2784
|
}
|
|
2791
2785
|
class xg {
|
|
@@ -2862,11 +2856,11 @@ class xg {
|
|
|
2862
2856
|
return this.edgesCaptionsRule.refresh();
|
|
2863
2857
|
}
|
|
2864
2858
|
}
|
|
2865
|
-
function
|
|
2859
|
+
function P(r) {
|
|
2866
2860
|
return typeof r == "function";
|
|
2867
2861
|
}
|
|
2868
2862
|
function Eg(r) {
|
|
2869
|
-
return
|
|
2863
|
+
return P(r == null ? void 0 : r.lift);
|
|
2870
2864
|
}
|
|
2871
2865
|
function hr(r) {
|
|
2872
2866
|
return function(e) {
|
|
@@ -2963,11 +2957,11 @@ var We = function() {
|
|
|
2963
2957
|
if (this._parentage = null, Array.isArray(a))
|
|
2964
2958
|
try {
|
|
2965
2959
|
for (var o = Gt(a), l = o.next(); !l.done; l = o.next()) {
|
|
2966
|
-
var
|
|
2967
|
-
|
|
2960
|
+
var d = l.value;
|
|
2961
|
+
d.remove(this);
|
|
2968
2962
|
}
|
|
2969
|
-
} catch (
|
|
2970
|
-
e = { error:
|
|
2963
|
+
} catch (p) {
|
|
2964
|
+
e = { error: p };
|
|
2971
2965
|
} finally {
|
|
2972
2966
|
try {
|
|
2973
2967
|
l && !l.done && (t = o.return) && t.call(o);
|
|
@@ -2977,12 +2971,12 @@ var We = function() {
|
|
|
2977
2971
|
}
|
|
2978
2972
|
else
|
|
2979
2973
|
a.remove(this);
|
|
2980
|
-
var
|
|
2981
|
-
if (
|
|
2974
|
+
var c = this.initialTeardown;
|
|
2975
|
+
if (P(c))
|
|
2982
2976
|
try {
|
|
2983
|
-
|
|
2984
|
-
} catch (
|
|
2985
|
-
s =
|
|
2977
|
+
c();
|
|
2978
|
+
} catch (p) {
|
|
2979
|
+
s = p instanceof xe ? p.errors : [p];
|
|
2986
2980
|
}
|
|
2987
2981
|
var g = this._finalizers;
|
|
2988
2982
|
if (g) {
|
|
@@ -2992,12 +2986,12 @@ var We = function() {
|
|
|
2992
2986
|
var m = y.value;
|
|
2993
2987
|
try {
|
|
2994
2988
|
zt(m);
|
|
2995
|
-
} catch (
|
|
2996
|
-
s = s ?? [],
|
|
2989
|
+
} catch (p) {
|
|
2990
|
+
s = s ?? [], p instanceof xe ? s = Ie(Ie([], Le(s)), Le(p.errors)) : s.push(p);
|
|
2997
2991
|
}
|
|
2998
2992
|
}
|
|
2999
|
-
} catch (
|
|
3000
|
-
i = { error:
|
|
2993
|
+
} catch (p) {
|
|
2994
|
+
i = { error: p };
|
|
3001
2995
|
} finally {
|
|
3002
2996
|
try {
|
|
3003
2997
|
y && !y.done && (n = h.return) && n.call(h);
|
|
@@ -3041,10 +3035,10 @@ var We = function() {
|
|
|
3041
3035
|
}();
|
|
3042
3036
|
We.EMPTY;
|
|
3043
3037
|
function $g(r) {
|
|
3044
|
-
return r instanceof We || r && "closed" in r &&
|
|
3038
|
+
return r instanceof We || r && "closed" in r && P(r.remove) && P(r.add) && P(r.unsubscribe);
|
|
3045
3039
|
}
|
|
3046
3040
|
function zt(r) {
|
|
3047
|
-
|
|
3041
|
+
P(r) ? r() : r.unsubscribe();
|
|
3048
3042
|
}
|
|
3049
3043
|
var Tg = {
|
|
3050
3044
|
useDeprecatedNextContext: !1
|
|
@@ -3136,7 +3130,7 @@ var Og = function() {
|
|
|
3136
3130
|
Ye(e, r);
|
|
3137
3131
|
function e(t, i, n) {
|
|
3138
3132
|
var s = r.call(this) || this, a;
|
|
3139
|
-
if (
|
|
3133
|
+
if (P(t) || !t)
|
|
3140
3134
|
a = {
|
|
3141
3135
|
next: t ?? void 0,
|
|
3142
3136
|
error: i ?? void 0,
|
|
@@ -3178,25 +3172,25 @@ var Rg = function(r) {
|
|
|
3178
3172
|
Ye(e, r);
|
|
3179
3173
|
function e(t, i, n, s, a, o) {
|
|
3180
3174
|
var l = r.call(this, t) || this;
|
|
3181
|
-
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(
|
|
3175
|
+
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(d) {
|
|
3182
3176
|
try {
|
|
3183
|
-
i(
|
|
3184
|
-
} catch (
|
|
3185
|
-
t.error(
|
|
3177
|
+
i(d);
|
|
3178
|
+
} catch (c) {
|
|
3179
|
+
t.error(c);
|
|
3186
3180
|
}
|
|
3187
|
-
} : r.prototype._next, l._error = s ? function(
|
|
3181
|
+
} : r.prototype._next, l._error = s ? function(d) {
|
|
3188
3182
|
try {
|
|
3189
|
-
s(
|
|
3190
|
-
} catch (
|
|
3191
|
-
t.error(
|
|
3183
|
+
s(d);
|
|
3184
|
+
} catch (c) {
|
|
3185
|
+
t.error(c);
|
|
3192
3186
|
} finally {
|
|
3193
3187
|
this.unsubscribe();
|
|
3194
3188
|
}
|
|
3195
3189
|
} : r.prototype._error, l._complete = n ? function() {
|
|
3196
3190
|
try {
|
|
3197
3191
|
n();
|
|
3198
|
-
} catch (
|
|
3199
|
-
t.error(
|
|
3192
|
+
} catch (d) {
|
|
3193
|
+
t.error(d);
|
|
3200
3194
|
} finally {
|
|
3201
3195
|
this.unsubscribe();
|
|
3202
3196
|
}
|
|
@@ -3397,7 +3391,7 @@ class Zg extends mr {
|
|
|
3397
3391
|
enabled: !1
|
|
3398
3392
|
}
|
|
3399
3393
|
}
|
|
3400
|
-
}), this._reactive === void 0 ? (this._reactive = new Ug(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new Kg(this), this.LkNodeGroupingTransformation = new
|
|
3394
|
+
}), this._reactive === void 0 ? (this._reactive = new Ug(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new Kg(this), this.LkNodeGroupingTransformation = new J(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.setBadgeRule(), this.LKStyles.setFilterClass();
|
|
3401
3395
|
}
|
|
3402
3396
|
/**
|
|
3403
3397
|
* Initialize selection behavior
|
|
@@ -3421,8 +3415,8 @@ class Zg extends mr {
|
|
|
3421
3415
|
}), this.LKStyles.setNodesDefaultStyles(), this.LKStyles.setEdgesDefaultStyles();
|
|
3422
3416
|
}
|
|
3423
3417
|
setCaptions(e) {
|
|
3424
|
-
var n, s, a, o, l,
|
|
3425
|
-
const t = (o = (a = (s = (n = e == null ? void 0 : e.options) == null ? void 0 : n.styles) == null ? void 0 : s.node) == null ? void 0 : a.text) == null ? void 0 : o.maxTextLength, i = (g = (
|
|
3418
|
+
var n, s, a, o, l, d, c, g;
|
|
3419
|
+
const t = (o = (a = (s = (n = e == null ? void 0 : e.options) == null ? void 0 : n.styles) == null ? void 0 : s.node) == null ? void 0 : a.text) == null ? void 0 : o.maxTextLength, i = (g = (c = (d = (l = e == null ? void 0 : e.options) == null ? void 0 : l.styles) == null ? void 0 : d.edge) == null ? void 0 : c.text) == null ? void 0 : g.maxTextLength;
|
|
3426
3420
|
this.LKCaptions = new xg(this, t, i);
|
|
3427
3421
|
}
|
|
3428
3422
|
/**
|
|
@@ -3462,15 +3456,15 @@ class Zg extends mr {
|
|
|
3462
3456
|
async init(e) {
|
|
3463
3457
|
this.clearGraph();
|
|
3464
3458
|
let t, i = [];
|
|
3465
|
-
const n = e.nodes.map((a) => (a.attributes.selected && (t =
|
|
3459
|
+
const n = e.nodes.map((a) => (a.attributes.selected && (t = I.NODE, i.push(a.id)), delete a.attributes.selected, a)), s = e.edges.map((a) => (a.attributes !== void 0 && (a.attributes.selected && ((t === void 0 || t === I.NODE) && (t = I.EDGE, i = []), i.push(a.id)), delete a.attributes.selected), a));
|
|
3466
3460
|
await this.addGraphAfterValidation({
|
|
3467
3461
|
nodes: n,
|
|
3468
3462
|
edges: s
|
|
3469
|
-
}), t ===
|
|
3463
|
+
}), t === I.NODE ? this.getNodes(i).setSelected(!0) : t === I.EDGE && this.getEdges(i).setSelected(!0);
|
|
3470
3464
|
}
|
|
3471
3465
|
async initVisualization(e) {
|
|
3472
3466
|
await this.init(e);
|
|
3473
|
-
const t =
|
|
3467
|
+
const t = f.sanitizeStylesIndex(e.design.styles);
|
|
3474
3468
|
this.LKStyles.initNodeColors(t.node), this.LKStyles.initNodesIcons(t.node), this.LKStyles.initNodesSizes(t.node), this.LKStyles.initNodesShapes(t.node), this.LKStyles.initEdgesWidth(t.edge), this.LKStyles.initEdgesShape(t.edge), this.LKStyles.initEdgesColor(t.edge), await this.LKCaptions.initVizCaptions({
|
|
3475
3469
|
node: e.nodeFields.captions || {},
|
|
3476
3470
|
edge: e.edgeFields.captions || {}
|
|
@@ -3565,9 +3559,10 @@ const kg = {
|
|
|
3565
3559
|
charge: 20,
|
|
3566
3560
|
theta: 0.34,
|
|
3567
3561
|
duration: Vg,
|
|
3568
|
-
gravity: 0.0475
|
|
3562
|
+
gravity: 0.0475,
|
|
3563
|
+
gpu: !0
|
|
3569
3564
|
};
|
|
3570
|
-
class
|
|
3565
|
+
class j {
|
|
3571
3566
|
/**
|
|
3572
3567
|
* Get the amount of hidden neighbors from a list of nodes
|
|
3573
3568
|
*
|
|
@@ -3606,8 +3601,8 @@ class O {
|
|
|
3606
3601
|
let s;
|
|
3607
3602
|
if (t.test(e)) {
|
|
3608
3603
|
e.length < 5 && (e += e.slice(1)), e = e.replace("#", "");
|
|
3609
|
-
const
|
|
3610
|
-
s = `rgb(${
|
|
3604
|
+
const d = parseInt(e[0].toString() + e[1].toString(), 16), c = parseInt(e[2].toString() + e[3].toString(), 16), g = parseInt(e[4].toString() + e[5].toString(), 16);
|
|
3605
|
+
s = `rgb(${d}, ${c}, ${g})`;
|
|
3611
3606
|
} else if (i.test(e) || n.test(e) || Ae[e.toLowerCase()] !== void 0)
|
|
3612
3607
|
s = u.isDefined(Ae[e.toLowerCase()]) ? Ae[e.toLowerCase()].rgb : e;
|
|
3613
3608
|
else
|
|
@@ -3634,8 +3629,8 @@ class O {
|
|
|
3634
3629
|
const l = [];
|
|
3635
3630
|
for (; o; ) {
|
|
3636
3631
|
l.push(o), n.add(o);
|
|
3637
|
-
const
|
|
3638
|
-
o =
|
|
3632
|
+
const d = o.getAdjacentNodes().filter((c) => !n.has(c)).get(0);
|
|
3633
|
+
o = d === void 0 ? null : d;
|
|
3639
3634
|
}
|
|
3640
3635
|
s.push(l);
|
|
3641
3636
|
}), s.sort((a, o) => o.length - a.length), { chain: s.flat().map((a) => a.getId()), numberOfChain: i.length / 2 };
|
|
@@ -3658,7 +3653,7 @@ class O {
|
|
|
3658
3653
|
}
|
|
3659
3654
|
}
|
|
3660
3655
|
const Pe = "LKE_NODE_GROUPING_EDGE";
|
|
3661
|
-
class
|
|
3656
|
+
class J {
|
|
3662
3657
|
constructor(e) {
|
|
3663
3658
|
this._collapsedDefaultValue = !1, this._nodeGroupingAttributes = [], this._ogma = e;
|
|
3664
3659
|
}
|
|
@@ -3675,38 +3670,45 @@ class Z {
|
|
|
3675
3670
|
* Group the nodes based on a category type and a property value
|
|
3676
3671
|
*/
|
|
3677
3672
|
async initTransformation() {
|
|
3673
|
+
let e = !0;
|
|
3678
3674
|
this.transformation === void 0 ? this.transformation = this._ogma.transformations.addNodeGrouping({
|
|
3679
3675
|
// node with same value will be part of the same group
|
|
3680
|
-
groupIdFunction: (
|
|
3681
|
-
if (this._isRuleNotApplicableToNode(
|
|
3676
|
+
groupIdFunction: (t) => {
|
|
3677
|
+
if (this._isRuleNotApplicableToNode(t))
|
|
3682
3678
|
return;
|
|
3683
|
-
const
|
|
3684
|
-
return
|
|
3679
|
+
const i = this.groupRule;
|
|
3680
|
+
return i.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeGroupId(t, i) : this._getPropertyValueGroupId(t, i);
|
|
3685
3681
|
},
|
|
3686
|
-
nodeGenerator: (
|
|
3687
|
-
const
|
|
3682
|
+
nodeGenerator: (t) => {
|
|
3683
|
+
const i = new Set(t.getData("categories").flat()), n = this._findNodeGroupId(t);
|
|
3688
3684
|
return {
|
|
3689
3685
|
data: {
|
|
3690
3686
|
categories: [],
|
|
3691
|
-
subCategories: Array.from(
|
|
3692
|
-
collapsed: this._getDefaultCollapsedState(
|
|
3693
|
-
nodeGroupId:
|
|
3687
|
+
subCategories: Array.from(i),
|
|
3688
|
+
collapsed: this._getDefaultCollapsedState(n),
|
|
3689
|
+
nodeGroupId: n
|
|
3694
3690
|
},
|
|
3695
3691
|
attributes: {
|
|
3696
|
-
layoutable: this._getDefaultLayoutableValue(
|
|
3692
|
+
layoutable: this._getDefaultLayoutableValue(n)
|
|
3697
3693
|
}
|
|
3698
3694
|
};
|
|
3699
3695
|
},
|
|
3700
|
-
onGroupUpdate:
|
|
3696
|
+
onGroupUpdate: (t, i) => {
|
|
3697
|
+
if (!(i.size === 1 || e))
|
|
3698
|
+
return {
|
|
3699
|
+
layout: "force",
|
|
3700
|
+
params: { ...kg }
|
|
3701
|
+
};
|
|
3702
|
+
},
|
|
3701
3703
|
edgeGenerator: () => ({
|
|
3702
3704
|
data: {
|
|
3703
3705
|
type: Pe
|
|
3704
3706
|
}
|
|
3705
3707
|
}),
|
|
3706
|
-
showContents: (
|
|
3708
|
+
showContents: (t) => !j.isGroupCollapsed(t),
|
|
3707
3709
|
duration: 300,
|
|
3708
3710
|
padding: 10
|
|
3709
|
-
}) : await this.refreshTransformation();
|
|
3711
|
+
}) : await this.refreshTransformation(), await this._ogma.transformations.afterNextUpdate(), e = !1;
|
|
3710
3712
|
}
|
|
3711
3713
|
/**
|
|
3712
3714
|
* refresh the transformation
|
|
@@ -3733,7 +3735,7 @@ class Z {
|
|
|
3733
3735
|
width: 2
|
|
3734
3736
|
}
|
|
3735
3737
|
},
|
|
3736
|
-
nodeSelector: (e) => e.isVirtual() && !
|
|
3738
|
+
nodeSelector: (e) => e.isVirtual() && !j.isGroupCollapsed(e),
|
|
3737
3739
|
// the style will be updated when data object is updated
|
|
3738
3740
|
nodeDependencies: { self: { data: !0 } }
|
|
3739
3741
|
}), this._initIntermediateGroupStyle(), this._nodeGroupingCollapsedStyleRule = this._ogma.styles.addRule({
|
|
@@ -3803,7 +3805,7 @@ class Z {
|
|
|
3803
3805
|
}).icon;
|
|
3804
3806
|
}
|
|
3805
3807
|
},
|
|
3806
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3808
|
+
nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e) && !e.hasClass("filtered"),
|
|
3807
3809
|
nodeDependencies: { self: { attributes: ["styleRefreshIndex"] } }
|
|
3808
3810
|
}), this._setSubSelectedClass();
|
|
3809
3811
|
}
|
|
@@ -3811,34 +3813,6 @@ class Z {
|
|
|
3811
3813
|
var e, t;
|
|
3812
3814
|
await ((e = this._nodeGroupingStyleRule) == null ? void 0 : e.refresh()), await ((t = this._nodeGroupingCollapsedStyleRule) == null ? void 0 : t.refresh());
|
|
3813
3815
|
}
|
|
3814
|
-
/**
|
|
3815
|
-
* Run the layout on the subnodes of the virtual node
|
|
3816
|
-
* @param subNodes nodes part of a virtual node
|
|
3817
|
-
*/
|
|
3818
|
-
async runSubNodesLayout(e) {
|
|
3819
|
-
if (e.size === 0 || e.size === 1)
|
|
3820
|
-
return;
|
|
3821
|
-
if (e.size === 2)
|
|
3822
|
-
return this._runTwoNodesLayout(e);
|
|
3823
|
-
if (e.getAdjacentEdges({ bothExtremities: !0 }).size === 0) return this._runCirclePack(e);
|
|
3824
|
-
const i = O.isStar(e);
|
|
3825
|
-
if (i) {
|
|
3826
|
-
const o = e.filter((c) => c !== i), l = this._runCircularLayout({
|
|
3827
|
-
radii: o.getAttribute("radius"),
|
|
3828
|
-
cx: i.getAttribute("x"),
|
|
3829
|
-
cy: i.getAttribute("y"),
|
|
3830
|
-
clockwise: !1,
|
|
3831
|
-
distanceRatio: 5
|
|
3832
|
-
});
|
|
3833
|
-
return [i.getPosition(), ...l];
|
|
3834
|
-
}
|
|
3835
|
-
const n = e.getDegree(), s = n.every((o) => o === 1 || o === 2), a = n.some((o) => o === 1);
|
|
3836
|
-
if (s && a) {
|
|
3837
|
-
await this._runChainLayout(e);
|
|
3838
|
-
return;
|
|
3839
|
-
}
|
|
3840
|
-
return await this._runForceLayout(e);
|
|
3841
|
-
}
|
|
3842
3816
|
/**
|
|
3843
3817
|
* Get the virtual nodes of the transformation
|
|
3844
3818
|
* @private
|
|
@@ -3865,11 +3839,11 @@ class Z {
|
|
|
3865
3839
|
*/
|
|
3866
3840
|
_getNodeGroupingCaption(e) {
|
|
3867
3841
|
if (!(!u.isDefined(e) || !u.isDefined(this.groupRule)))
|
|
3868
|
-
return this.groupRule.groupingType ===
|
|
3842
|
+
return this.groupRule.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeNodeGroupingCaption(e, this.groupRule) : this._getPropertyValueNodeGroupingCaption(e, this.groupRule);
|
|
3869
3843
|
}
|
|
3870
3844
|
_getAdjacentEdgeNodeGroupingCaption(e, t) {
|
|
3871
3845
|
const i = e.getSubNodes();
|
|
3872
|
-
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 :
|
|
3846
|
+
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 : J._getGroupCentralNode(i.get(0), t).getData(["properties", "name"]);
|
|
3873
3847
|
}
|
|
3874
3848
|
_getPropertyValueNodeGroupingCaption(e, t) {
|
|
3875
3849
|
var i;
|
|
@@ -3878,46 +3852,14 @@ class Z {
|
|
|
3878
3852
|
return `${s} (${a})`;
|
|
3879
3853
|
}
|
|
3880
3854
|
}
|
|
3881
|
-
/**
|
|
3882
|
-
* Run the circle pack layout on the subnodes
|
|
3883
|
-
* @param subNodes
|
|
3884
|
-
*/
|
|
3885
|
-
_runCirclePack(e) {
|
|
3886
|
-
return Promise.resolve(
|
|
3887
|
-
this._ogma.algorithms.circlePack({
|
|
3888
|
-
nodes: e,
|
|
3889
|
-
margin: 10,
|
|
3890
|
-
sort: "asc",
|
|
3891
|
-
dryRun: !0
|
|
3892
|
-
})
|
|
3893
|
-
);
|
|
3894
|
-
}
|
|
3895
|
-
/**
|
|
3896
|
-
* return a grid layout when nodes are represented by multiple chains (a)-(b)-(c)-(d)
|
|
3897
|
-
*/
|
|
3898
|
-
async _runChainLayout(e) {
|
|
3899
|
-
const t = O.topologicalSort(e), i = this._ogma.getNodes(t.chain);
|
|
3900
|
-
await this._ogma.layouts.grid({
|
|
3901
|
-
nodes: i,
|
|
3902
|
-
// TODO: test that visually
|
|
3903
|
-
colDistance: Math.max(...e.getAttribute("radius").map(Number)) * 4,
|
|
3904
|
-
rows: t.numberOfChain ?? 1
|
|
3905
|
-
});
|
|
3906
|
-
}
|
|
3907
|
-
async _runForceLayout(e) {
|
|
3908
|
-
await this._ogma.layouts.force({
|
|
3909
|
-
nodes: e,
|
|
3910
|
-
...kg
|
|
3911
|
-
});
|
|
3912
|
-
}
|
|
3913
3855
|
_isRuleNotApplicableToNode(e) {
|
|
3914
3856
|
const t = this.groupRule;
|
|
3915
|
-
return t === void 0 ? !0 : t.groupingType ===
|
|
3857
|
+
return t === void 0 ? !0 : t.groupingType === q.BY_PROPERTY_VALUE ? this._isPropertyRuleNotApplicableToNode(e, t) : t.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._isRelationshipRuleNotApplicableToNode(e, t) : !0;
|
|
3916
3858
|
}
|
|
3917
3859
|
_isRelationshipRuleNotApplicableToNode(e, t) {
|
|
3918
|
-
return !this.
|
|
3860
|
+
return !this._hasEdgeOfType(e, t.groupingOptions.edgeType);
|
|
3919
3861
|
}
|
|
3920
|
-
|
|
3862
|
+
_hasEdgeOfType(e, t) {
|
|
3921
3863
|
let i = !1;
|
|
3922
3864
|
return e.getAdjacentEdges().forEach((n) => {
|
|
3923
3865
|
n.getData("type") === t && (i = !0);
|
|
@@ -3964,8 +3906,8 @@ class Z {
|
|
|
3964
3906
|
_findNodeGroupId(e) {
|
|
3965
3907
|
var i;
|
|
3966
3908
|
const t = this.groupRule;
|
|
3967
|
-
if (t.groupingType ===
|
|
3968
|
-
const n =
|
|
3909
|
+
if (t.groupingType === q.BY_ADJACENT_EDGE_TYPE) {
|
|
3910
|
+
const n = J._getGroupCentralNode(e.get(0), t);
|
|
3969
3911
|
return oe(`${(i = this.groupRule) == null ? void 0 : i.name}-${n.getId()}`);
|
|
3970
3912
|
} else {
|
|
3971
3913
|
const n = this._findGroupingPropertyValue(e.get(0));
|
|
@@ -3979,37 +3921,12 @@ class Z {
|
|
|
3979
3921
|
const i = e.getAdjacentEdges({ filter: "raw" }).filter((s) => s.getData("type") === t.groupingOptions.edgeType).get(0);
|
|
3980
3922
|
return t.groupingOptions.centralNodeIs === "source" ? i.getSource() : i.getTarget();
|
|
3981
3923
|
}
|
|
3982
|
-
_runCircularLayout({
|
|
3983
|
-
radii: e,
|
|
3984
|
-
clockwise: t = !0,
|
|
3985
|
-
cx: i = 0,
|
|
3986
|
-
cy: n = 0,
|
|
3987
|
-
startAngle: s = 3 / 2 * Math.PI,
|
|
3988
|
-
getRadius: a = (l) => Number(l),
|
|
3989
|
-
distanceRatio: o = 0
|
|
3990
|
-
}) {
|
|
3991
|
-
const l = e.length;
|
|
3992
|
-
if (l === 0) return [];
|
|
3993
|
-
if (l === 1) return [{ x: i, y: n }];
|
|
3994
|
-
const c = e.map(a).reduce((A, x) => Math.max(A, x), 0) * (2 + o), g = (2 * Math.PI - 2 * Math.PI / l) / Math.max(1, l - 1), h = Math.cos(g) - Math.cos(0), y = Math.sin(g) - Math.sin(0), m = Math.sqrt(c * c / (h * h + y * y)), f = Math.max(m, 0);
|
|
3995
|
-
return e.map((A, x) => {
|
|
3996
|
-
const E = s + x * g * (t ? 1 : -1), G = f * Math.cos(E), v = f * Math.sin(E);
|
|
3997
|
-
return {
|
|
3998
|
-
x: i + G,
|
|
3999
|
-
y: n + v
|
|
4000
|
-
};
|
|
4001
|
-
});
|
|
4002
|
-
}
|
|
4003
|
-
async _runTwoNodesLayout(e) {
|
|
4004
|
-
const t = e.getAttribute("radius").map(Number), i = e.getPosition(), n = Math.min(...t);
|
|
4005
|
-
return [i[0], { x: i[0].x + n + t[0] + t[1], y: i[0].y }];
|
|
4006
|
-
}
|
|
4007
3924
|
_getPropertyValueGroupId(e, t) {
|
|
4008
3925
|
const i = this._findGroupingPropertyValue(e);
|
|
4009
3926
|
return `${t.groupingOptions.itemTypes.join("-")}-${i}`.toLowerCase().trim();
|
|
4010
3927
|
}
|
|
4011
3928
|
_getAdjacentEdgeGroupId(e, t) {
|
|
4012
|
-
return
|
|
3929
|
+
return J._getGroupCentralNode(e, t).getId().toString();
|
|
4013
3930
|
}
|
|
4014
3931
|
/**
|
|
4015
3932
|
* Initialize the style for the intermediate group state, when transitioning from expanded to collapsed
|
|
@@ -4019,7 +3936,7 @@ class Z {
|
|
|
4019
3936
|
nodeAttributes: {
|
|
4020
3937
|
color: "rgba(240, 240, 240)"
|
|
4021
3938
|
},
|
|
4022
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3939
|
+
nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e),
|
|
4023
3940
|
// the style will be updated when data object is updated
|
|
4024
3941
|
nodeDependencies: { self: { data: !0 } }
|
|
4025
3942
|
});
|
|
@@ -4103,7 +4020,7 @@ class Kg {
|
|
|
4103
4020
|
this.edgeGroupingStyleRule !== void 0 && this.edgeGroupingStyleRule.refresh();
|
|
4104
4021
|
}
|
|
4105
4022
|
}
|
|
4106
|
-
const
|
|
4023
|
+
const v = class v {
|
|
4107
4024
|
/**
|
|
4108
4025
|
* Returns whether the node/edge should be *filtered* (a.k.a. *hidden*).
|
|
4109
4026
|
*
|
|
@@ -4116,16 +4033,16 @@ const _ = class _ {
|
|
|
4116
4033
|
* @param itemData
|
|
4117
4034
|
*/
|
|
4118
4035
|
static isFiltered(e, t) {
|
|
4119
|
-
return u.isDefined(t) ? "categories" in t ?
|
|
4036
|
+
return u.isDefined(t) ? "categories" in t ? v.getFilterFunction(e, !0)(t) : v.getFilterFunction(e, !1)(t) : !1;
|
|
4120
4037
|
}
|
|
4121
4038
|
static getFilterFunction(e, t) {
|
|
4122
|
-
const i = JSON.stringify(e, null, ""), n = t ?
|
|
4039
|
+
const i = JSON.stringify(e, null, ""), n = t ? v.nodeCache : v.edgeCache;
|
|
4123
4040
|
let s = n.get(i);
|
|
4124
|
-
return s || (s =
|
|
4041
|
+
return s || (s = v.createFilterFunction(e, t), n.size > v.FILTER_CACHE_SIZE && n.clear(), n.set(i, s)), s;
|
|
4125
4042
|
}
|
|
4126
4043
|
static createFilterFunction(e, t) {
|
|
4127
4044
|
const i = e.map(
|
|
4128
|
-
(n) =>
|
|
4045
|
+
(n) => v.filterToFilterFunction(n, t)
|
|
4129
4046
|
);
|
|
4130
4047
|
return (n) => {
|
|
4131
4048
|
for (const s of i)
|
|
@@ -4137,15 +4054,15 @@ const _ = class _ {
|
|
|
4137
4054
|
static filterToFilterFunction(e, t) {
|
|
4138
4055
|
switch (e.type) {
|
|
4139
4056
|
case S.ANY:
|
|
4140
|
-
return
|
|
4057
|
+
return v.createAnyFilterFunction(e, t);
|
|
4141
4058
|
case S.IS:
|
|
4142
|
-
return
|
|
4059
|
+
return v.createIsFilterFunction(e, t);
|
|
4143
4060
|
case S.NO_VALUE:
|
|
4144
|
-
return
|
|
4061
|
+
return v.createNoValueFilterFunction(e, t);
|
|
4145
4062
|
case S.RANGE:
|
|
4146
|
-
return
|
|
4063
|
+
return v.createRangeFilterFunction(e, t);
|
|
4147
4064
|
case S.NAN:
|
|
4148
|
-
return
|
|
4065
|
+
return v.createNaNFilterFunction(e, t);
|
|
4149
4066
|
}
|
|
4150
4067
|
}
|
|
4151
4068
|
static createAnyFilterFunction(e, t) {
|
|
@@ -4158,16 +4075,16 @@ const _ = class _ {
|
|
|
4158
4075
|
return t ? (i) => i.categories.includes(e.itemType) && !u.isDefined(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && !u.isDefined(u.getPropertyValue(u.getIn(i, e.input), !0));
|
|
4159
4076
|
}
|
|
4160
4077
|
static createNaNFilterFunction(e, t) {
|
|
4161
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4078
|
+
return t ? (i) => i.categories.includes(e.itemType) && v.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && v.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0));
|
|
4162
4079
|
}
|
|
4163
4080
|
static isNotANumber(e) {
|
|
4164
4081
|
return u.isDefined(e) && !u.isNumber(e);
|
|
4165
4082
|
}
|
|
4166
4083
|
static createRangeFilterFunction(e, t) {
|
|
4167
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4084
|
+
return t ? (i) => i.categories.includes(e.itemType) && v.valueShouldBeHidden(
|
|
4168
4085
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4169
4086
|
e.value
|
|
4170
|
-
) : (i) => i.type === e.itemType &&
|
|
4087
|
+
) : (i) => i.type === e.itemType && v.valueShouldBeHidden(
|
|
4171
4088
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4172
4089
|
e.value
|
|
4173
4090
|
);
|
|
@@ -4187,8 +4104,8 @@ const _ = class _ {
|
|
|
4187
4104
|
return Number.isNaN(i) ? !1 : t["<"] !== void 0 && i < t["<"] || t["<="] !== void 0 && i <= t["<="] || t[">"] !== void 0 && i > t[">"] || t[">="] !== void 0 && i >= t[">="];
|
|
4188
4105
|
}
|
|
4189
4106
|
};
|
|
4190
|
-
|
|
4191
|
-
let Ut =
|
|
4107
|
+
v.nodeCache = /* @__PURE__ */ new Map(), v.edgeCache = /* @__PURE__ */ new Map(), v.FILTER_CACHE_SIZE = 5;
|
|
4108
|
+
let Ut = v;
|
|
4192
4109
|
const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
4193
4110
|
switch (r.selection.size) {
|
|
4194
4111
|
case 1:
|
|
@@ -4200,7 +4117,7 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
|
4200
4117
|
}
|
|
4201
4118
|
}, eh = (r) => {
|
|
4202
4119
|
if (!(!u.isDefined(r.selection) || r.selection.size === 0))
|
|
4203
|
-
return r.selection.isNode ?
|
|
4120
|
+
return r.selection.isNode ? I.NODE : I.EDGE;
|
|
4204
4121
|
}, Je = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, th = (r) => {
|
|
4205
4122
|
const e = Je(r);
|
|
4206
4123
|
if (e !== void 0)
|
|
@@ -4222,23 +4139,24 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
|
4222
4139
|
}, ih = (r) => qg(r).length > 0;
|
|
4223
4140
|
export {
|
|
4224
4141
|
Vg as ANIMATION_DURATION,
|
|
4225
|
-
|
|
4142
|
+
E as BASE_GREY,
|
|
4226
4143
|
N as Captions,
|
|
4227
4144
|
xg as CaptionsViz,
|
|
4228
|
-
|
|
4145
|
+
W as EdgeAttributes,
|
|
4229
4146
|
It as FILTER_OPACITY,
|
|
4147
|
+
kg as FORCE_LAYOUT_CONFIG,
|
|
4230
4148
|
Ut as Filters,
|
|
4231
4149
|
Ae as HTML_COLORS,
|
|
4232
|
-
|
|
4150
|
+
A as ItemAttributes,
|
|
4233
4151
|
Pe as LKE_NODE_GROUPING_EDGE,
|
|
4234
4152
|
Zg as LKOgma,
|
|
4235
|
-
|
|
4153
|
+
z as NodeAttributes,
|
|
4236
4154
|
jg as OgmaStore,
|
|
4237
|
-
|
|
4155
|
+
j as OgmaTools,
|
|
4238
4156
|
Lt as PALETTE,
|
|
4239
4157
|
C as StyleRule,
|
|
4240
4158
|
mg as StyleRuleType,
|
|
4241
|
-
|
|
4159
|
+
f as StyleRules,
|
|
4242
4160
|
w as StyleType,
|
|
4243
4161
|
Ag as StylesViz,
|
|
4244
4162
|
u as Tools,
|