@linkurious/ogma-linkurious-parser 4.2.2 → 4.2.4
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 +820 -916
- package/dist/index.mjs.map +1 -1
- package/dist/ogma/features/nodeGrouping.d.ts +2 -29
- package/dist/ogma/features/reactive.d.ts +2 -2
- package/dist/ogma/features/selectors.d.ts +2 -2
- package/dist/ogma/features/styles.d.ts +5 -3
- package/dist/ogma/index.d.ts +5 -5
- package/dist/tools/ogmaTool.d.ts +1 -0
- package/package.json +6 -5
package/dist/index.mjs
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
import { CurrencyFormat as
|
|
2
|
-
import
|
|
3
|
-
import { BehaviorSubject as
|
|
1
|
+
import { CurrencyFormat as M, PropertyTypeName as br, AutoRangeScale as Ut, OgmaEdgeShape as yr, SelectorType as S, ForceLayoutMode as vr, EntityType as I, NodeGroupingType as q } from "@linkurious/rest-client";
|
|
2
|
+
import _r from "@linkurious/ogma";
|
|
3
|
+
import { BehaviorSubject as mr } from "rxjs";
|
|
4
4
|
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
-
function
|
|
5
|
+
function Pe(r) {
|
|
6
6
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function Cr() {
|
|
9
9
|
this.__data__ = [], this.size = 0;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
11
|
+
var Sr = Cr;
|
|
12
|
+
function Ar(r, e) {
|
|
13
13
|
return r === e || r !== r && e !== e;
|
|
14
14
|
}
|
|
15
|
-
var Re =
|
|
16
|
-
function
|
|
15
|
+
var Re = Ar, xr = Re;
|
|
16
|
+
function Er(r, e) {
|
|
17
17
|
for (var t = r.length; t--; )
|
|
18
|
-
if (
|
|
18
|
+
if (xr(r[t][0], e))
|
|
19
19
|
return t;
|
|
20
20
|
return -1;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
var e = this.__data__, t =
|
|
22
|
+
var de = Er, Fr = de, $r = Array.prototype, Tr = $r.splice;
|
|
23
|
+
function Nr(r) {
|
|
24
|
+
var e = this.__data__, t = Fr(e, r);
|
|
25
25
|
if (t < 0)
|
|
26
26
|
return !1;
|
|
27
27
|
var i = e.length - 1;
|
|
28
|
-
return t == i ? e.pop() :
|
|
28
|
+
return t == i ? e.pop() : Tr.call(e, t, 1), --this.size, !0;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
var e = this.__data__, t =
|
|
30
|
+
var Dr = Nr, wr = de;
|
|
31
|
+
function Or(r) {
|
|
32
|
+
var e = this.__data__, t = wr(e, r);
|
|
33
33
|
return t < 0 ? void 0 : e[t][1];
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
var Lr = Or, Ir = de;
|
|
36
|
+
function Pr(r) {
|
|
37
|
+
return Ir(this.__data__, r) > -1;
|
|
38
38
|
}
|
|
39
|
-
var Rr =
|
|
40
|
-
function
|
|
41
|
-
var t = this.__data__, i =
|
|
39
|
+
var Rr = Pr, Mr = de;
|
|
40
|
+
function Gr(r, e) {
|
|
41
|
+
var t = this.__data__, i = Mr(t, r);
|
|
42
42
|
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
function
|
|
44
|
+
var Br = Gr, zr = Sr, jr = Dr, Ur = Lr, Vr = Rr, kr = Br;
|
|
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
|
|
58
|
-
function
|
|
59
|
-
this.__data__ = new
|
|
52
|
+
U.prototype.clear = zr;
|
|
53
|
+
U.prototype.delete = jr;
|
|
54
|
+
U.prototype.get = Ur;
|
|
55
|
+
U.prototype.has = Vr;
|
|
56
|
+
U.prototype.set = kr;
|
|
57
|
+
var ce = U, Hr = ce;
|
|
58
|
+
function Kr() {
|
|
59
|
+
this.__data__ = new Hr(), this.size = 0;
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
61
|
+
var qr = Kr;
|
|
62
|
+
function Yr(r) {
|
|
63
63
|
var e = this.__data__, t = e.delete(r);
|
|
64
64
|
return this.size = e.size, t;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
function
|
|
66
|
+
var Wr = Yr;
|
|
67
|
+
function Jr(r) {
|
|
68
68
|
return this.__data__.get(r);
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
70
|
+
var Zr = Jr;
|
|
71
|
+
function Xr(r) {
|
|
72
72
|
return this.__data__.has(r);
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
var e =
|
|
74
|
+
var Qr = Xr, ei = typeof te == "object" && te && te.Object === Object && te, Vt = ei, ti = Vt, ri = typeof self == "object" && self && self.Object === Object && self, ii = ti || ri || Function("return this")(), D = ii, ni = D, si = ni.Symbol, Z = si, Je = Z, kt = Object.prototype, ai = kt.hasOwnProperty, oi = kt.toString, Y = Je ? Je.toStringTag : void 0;
|
|
75
|
+
function ui(r) {
|
|
76
|
+
var e = ai.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
|
-
var n =
|
|
83
|
-
return i && (e ? r[
|
|
82
|
+
var n = oi.call(r);
|
|
83
|
+
return i && (e ? r[Y] = t : delete r[Y]), n;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return
|
|
85
|
+
var li = ui, di = Object.prototype, ci = di.toString;
|
|
86
|
+
function gi(r) {
|
|
87
|
+
return ci.call(r);
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
return r == null ? r === void 0 ?
|
|
89
|
+
var hi = gi, Ze = Z, fi = li, pi = hi, bi = "[object Null]", yi = "[object Undefined]", Xe = Ze ? Ze.toStringTag : void 0;
|
|
90
|
+
function vi(r) {
|
|
91
|
+
return r == null ? r === void 0 ? yi : bi : Xe && Xe in Object(r) ? fi(r) : pi(r);
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
function
|
|
93
|
+
var X = vi;
|
|
94
|
+
function _i(r) {
|
|
95
95
|
var e = typeof r;
|
|
96
96
|
return r != null && (e == "object" || e == "function");
|
|
97
97
|
}
|
|
98
|
-
var ge =
|
|
99
|
-
function
|
|
100
|
-
if (!
|
|
98
|
+
var ge = _i, mi = X, Ci = ge, Si = "[object AsyncFunction]", Ai = "[object Function]", xi = "[object GeneratorFunction]", Ei = "[object Proxy]";
|
|
99
|
+
function Fi(r) {
|
|
100
|
+
if (!Ci(r))
|
|
101
101
|
return !1;
|
|
102
|
-
var e =
|
|
103
|
-
return e ==
|
|
102
|
+
var e = mi(r);
|
|
103
|
+
return e == Ai || e == xi || e == Si || e == Ei;
|
|
104
104
|
}
|
|
105
|
-
var
|
|
105
|
+
var Ht = Fi, $i = D, Ti = $i["__core-js_shared__"], Ni = Ti, _e = Ni, Qe = function() {
|
|
106
106
|
var r = /[^.]+$/.exec(_e && _e.keys && _e.keys.IE_PROTO || "");
|
|
107
107
|
return r ? "Symbol(src)_1." + r : "";
|
|
108
108
|
}();
|
|
109
|
-
function
|
|
110
|
-
return !!
|
|
109
|
+
function Di(r) {
|
|
110
|
+
return !!Qe && Qe in r;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
113
|
-
function
|
|
112
|
+
var wi = Di, Oi = Function.prototype, Li = Oi.toString;
|
|
113
|
+
function Ii(r) {
|
|
114
114
|
if (r != null) {
|
|
115
115
|
try {
|
|
116
|
-
return
|
|
116
|
+
return Li.call(r);
|
|
117
117
|
} catch {
|
|
118
118
|
}
|
|
119
119
|
try {
|
|
@@ -123,258 +123,258 @@ function Pi(r) {
|
|
|
123
123
|
}
|
|
124
124
|
return "";
|
|
125
125
|
}
|
|
126
|
-
var
|
|
127
|
-
"^" +
|
|
126
|
+
var Kt = Ii, Pi = Ht, Ri = wi, Mi = ge, Gi = Kt, Bi = /[\\^$.*+?()[\]{}|]/g, zi = /^\[object .+?Constructor\]$/, ji = Function.prototype, Ui = Object.prototype, Vi = ji.toString, ki = Ui.hasOwnProperty, Hi = RegExp(
|
|
127
|
+
"^" + Vi.call(ki).replace(Bi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
128
128
|
);
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function Ki(r) {
|
|
130
|
+
if (!Mi(r) || Ri(r))
|
|
131
131
|
return !1;
|
|
132
|
-
var e =
|
|
133
|
-
return e.test(
|
|
132
|
+
var e = Pi(r) ? Hi : zi;
|
|
133
|
+
return e.test(Gi(r));
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var qi = Ki;
|
|
136
|
+
function Yi(r, e) {
|
|
137
137
|
return r == null ? void 0 : r[e];
|
|
138
138
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
var t =
|
|
142
|
-
return
|
|
139
|
+
var Wi = Yi, Ji = qi, Zi = Wi;
|
|
140
|
+
function Xi(r, e) {
|
|
141
|
+
var t = Zi(r, e);
|
|
142
|
+
return Ji(t) ? t : void 0;
|
|
143
143
|
}
|
|
144
|
-
var R =
|
|
145
|
-
function
|
|
146
|
-
this.__data__ =
|
|
144
|
+
var R = Xi, Qi = R, en = D, tn = Qi(en, "Map"), Me = tn, rn = R, nn = rn(Object, "create"), he = nn, et = he;
|
|
145
|
+
function sn() {
|
|
146
|
+
this.__data__ = et ? et(null) : {}, this.size = 0;
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
148
|
+
var an = sn;
|
|
149
|
+
function on(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
|
|
154
|
-
function
|
|
153
|
+
var un = on, ln = he, dn = "__lodash_hash_undefined__", cn = Object.prototype, gn = cn.hasOwnProperty;
|
|
154
|
+
function hn(r) {
|
|
155
155
|
var e = this.__data__;
|
|
156
|
-
if (
|
|
156
|
+
if (ln) {
|
|
157
157
|
var t = e[r];
|
|
158
158
|
return t === dn ? void 0 : t;
|
|
159
159
|
}
|
|
160
|
-
return
|
|
160
|
+
return gn.call(e, r) ? e[r] : void 0;
|
|
161
161
|
}
|
|
162
|
-
var
|
|
163
|
-
function
|
|
162
|
+
var fn = hn, pn = he, bn = Object.prototype, yn = bn.hasOwnProperty;
|
|
163
|
+
function vn(r) {
|
|
164
164
|
var e = this.__data__;
|
|
165
|
-
return
|
|
165
|
+
return pn ? e[r] !== void 0 : yn.call(e, r);
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
167
|
+
var _n = vn, mn = he, Cn = "__lodash_hash_undefined__";
|
|
168
|
+
function Sn(r, e) {
|
|
169
169
|
var t = this.__data__;
|
|
170
|
-
return this.size += this.has(r) ? 0 : 1, t[r] =
|
|
170
|
+
return this.size += this.has(r) ? 0 : 1, t[r] = mn && e === void 0 ? Cn : e, this;
|
|
171
171
|
}
|
|
172
|
-
var xn =
|
|
173
|
-
function
|
|
172
|
+
var An = Sn, xn = an, En = un, Fn = fn, $n = _n, Tn = An;
|
|
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
|
|
186
|
-
function
|
|
180
|
+
V.prototype.clear = xn;
|
|
181
|
+
V.prototype.delete = En;
|
|
182
|
+
V.prototype.get = Fn;
|
|
183
|
+
V.prototype.has = $n;
|
|
184
|
+
V.prototype.set = Tn;
|
|
185
|
+
var Nn = V, tt = Nn, Dn = ce, wn = Me;
|
|
186
|
+
function On() {
|
|
187
187
|
this.size = 0, this.__data__ = {
|
|
188
|
-
hash: new
|
|
189
|
-
map: new (
|
|
190
|
-
string: new
|
|
188
|
+
hash: new tt(),
|
|
189
|
+
map: new (wn || Dn)(),
|
|
190
|
+
string: new tt()
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
193
|
+
var Ln = On;
|
|
194
|
+
function In(r) {
|
|
195
195
|
var e = typeof r;
|
|
196
196
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var Pn = In, Rn = Pn;
|
|
199
|
+
function Mn(r, e) {
|
|
200
200
|
var t = r.__data__;
|
|
201
201
|
return Rn(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
202
202
|
}
|
|
203
|
-
var fe =
|
|
204
|
-
function
|
|
205
|
-
var e =
|
|
203
|
+
var fe = Mn, Gn = fe;
|
|
204
|
+
function Bn(r) {
|
|
205
|
+
var e = Gn(this, r).delete(r);
|
|
206
206
|
return this.size -= e ? 1 : 0, e;
|
|
207
207
|
}
|
|
208
|
-
var
|
|
209
|
-
function
|
|
210
|
-
return
|
|
208
|
+
var zn = Bn, jn = fe;
|
|
209
|
+
function Un(r) {
|
|
210
|
+
return jn(this, r).get(r);
|
|
211
211
|
}
|
|
212
|
-
var
|
|
213
|
-
function
|
|
214
|
-
return
|
|
212
|
+
var Vn = Un, kn = fe;
|
|
213
|
+
function Hn(r) {
|
|
214
|
+
return kn(this, r).has(r);
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
function
|
|
218
|
-
var t =
|
|
216
|
+
var Kn = Hn, qn = fe;
|
|
217
|
+
function Yn(r, e) {
|
|
218
|
+
var t = qn(this, r), i = t.size;
|
|
219
219
|
return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
|
|
220
220
|
}
|
|
221
|
-
var Jn =
|
|
222
|
-
function
|
|
221
|
+
var Wn = Yn, Jn = Ln, Zn = zn, Xn = Vn, Qn = Kn, es = Wn;
|
|
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
|
|
235
|
-
function
|
|
229
|
+
k.prototype.clear = Jn;
|
|
230
|
+
k.prototype.delete = Zn;
|
|
231
|
+
k.prototype.get = Xn;
|
|
232
|
+
k.prototype.has = Qn;
|
|
233
|
+
k.prototype.set = es;
|
|
234
|
+
var Ge = k, ts = ce, rs = Me, is = Ge, ns = 200;
|
|
235
|
+
function ss(r, e) {
|
|
236
236
|
var t = this.__data__;
|
|
237
|
-
if (t instanceof
|
|
237
|
+
if (t instanceof ts) {
|
|
238
238
|
var i = t.__data__;
|
|
239
|
-
if (!
|
|
239
|
+
if (!rs || i.length < ns - 1)
|
|
240
240
|
return i.push([r, e]), this.size = ++t.size, this;
|
|
241
|
-
t = this.__data__ = new
|
|
241
|
+
t = this.__data__ = new is(i);
|
|
242
242
|
}
|
|
243
243
|
return t.set(r, e), this.size = t.size, this;
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
var e = this.__data__ = new
|
|
245
|
+
var as = ss, os = ce, us = qr, ls = Wr, ds = Zr, cs = Qr, gs = as;
|
|
246
|
+
function H(r) {
|
|
247
|
+
var e = this.__data__ = new os(r);
|
|
248
248
|
this.size = e.size;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
-
function
|
|
257
|
-
return this.__data__.set(r,
|
|
258
|
-
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
250
|
+
H.prototype.clear = us;
|
|
251
|
+
H.prototype.delete = ls;
|
|
252
|
+
H.prototype.get = ds;
|
|
253
|
+
H.prototype.has = cs;
|
|
254
|
+
H.prototype.set = gs;
|
|
255
|
+
var qt = H, hs = "__lodash_hash_undefined__";
|
|
256
|
+
function fs(r) {
|
|
257
|
+
return this.__data__.set(r, hs), this;
|
|
258
|
+
}
|
|
259
|
+
var ps = fs;
|
|
260
|
+
function bs(r) {
|
|
261
261
|
return this.__data__.has(r);
|
|
262
262
|
}
|
|
263
|
-
var
|
|
263
|
+
var ys = bs, vs = Ge, _s = ps, ms = ys;
|
|
264
264
|
function ne(r) {
|
|
265
265
|
var e = -1, t = r == null ? 0 : r.length;
|
|
266
|
-
for (this.__data__ = new
|
|
266
|
+
for (this.__data__ = new vs(); ++e < t; )
|
|
267
267
|
this.add(r[e]);
|
|
268
268
|
}
|
|
269
|
-
ne.prototype.add = ne.prototype.push =
|
|
270
|
-
ne.prototype.has =
|
|
271
|
-
var
|
|
272
|
-
function
|
|
269
|
+
ne.prototype.add = ne.prototype.push = _s;
|
|
270
|
+
ne.prototype.has = ms;
|
|
271
|
+
var Cs = ne;
|
|
272
|
+
function Ss(r, e) {
|
|
273
273
|
for (var t = -1, i = r == null ? 0 : r.length; ++t < i; )
|
|
274
274
|
if (e(r[t], t, r))
|
|
275
275
|
return !0;
|
|
276
276
|
return !1;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
278
|
+
var As = Ss;
|
|
279
|
+
function xs(r, e) {
|
|
280
280
|
return r.has(e);
|
|
281
281
|
}
|
|
282
|
-
var Fs =
|
|
283
|
-
function
|
|
284
|
-
var a = t &
|
|
282
|
+
var Es = xs, Fs = Cs, $s = As, Ts = Es, Ns = 1, Ds = 2;
|
|
283
|
+
function ws(r, e, t, i, n, s) {
|
|
284
|
+
var a = t & Ns, o = r.length, l = e.length;
|
|
285
285
|
if (o != l && !(a && l > o))
|
|
286
286
|
return !1;
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
289
|
-
return
|
|
290
|
-
var g = -1, h = !0, y = t &
|
|
287
|
+
var d = s.get(r), c = s.get(e);
|
|
288
|
+
if (d && c)
|
|
289
|
+
return d == e && c == r;
|
|
290
|
+
var g = -1, h = !0, y = t & Ds ? new Fs() : 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 (
|
|
303
|
-
if (!
|
|
304
|
-
return y.push(
|
|
302
|
+
if (!$s(e, function($, T) {
|
|
303
|
+
if (!Ts(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
|
}
|
|
313
313
|
}
|
|
314
314
|
return s.delete(r), s.delete(e), h;
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var Yt = ws, Os = D, Ls = Os.Uint8Array, Is = Ls;
|
|
317
|
+
function Ps(r) {
|
|
318
318
|
var e = -1, t = Array(r.size);
|
|
319
319
|
return r.forEach(function(i, n) {
|
|
320
320
|
t[++e] = [n, i];
|
|
321
321
|
}), t;
|
|
322
322
|
}
|
|
323
|
-
var Rs =
|
|
324
|
-
function
|
|
323
|
+
var Rs = Ps;
|
|
324
|
+
function Ms(r) {
|
|
325
325
|
var e = -1, t = Array(r.size);
|
|
326
326
|
return r.forEach(function(i) {
|
|
327
327
|
t[++e] = i;
|
|
328
328
|
}), t;
|
|
329
329
|
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
330
|
+
var Gs = Ms, rt = Z, it = Is, Bs = Re, zs = Yt, js = Rs, Us = Gs, Vs = 1, ks = 2, Hs = "[object Boolean]", Ks = "[object Date]", qs = "[object Error]", Ys = "[object Map]", Ws = "[object Number]", Js = "[object RegExp]", Zs = "[object Set]", Xs = "[object String]", Qs = "[object Symbol]", ea = "[object ArrayBuffer]", ta = "[object DataView]", nt = rt ? rt.prototype : void 0, me = nt ? nt.valueOf : void 0;
|
|
331
|
+
function ra(r, e, t, i, n, s, a) {
|
|
332
332
|
switch (t) {
|
|
333
|
-
case
|
|
333
|
+
case ta:
|
|
334
334
|
if (r.byteLength != e.byteLength || r.byteOffset != e.byteOffset)
|
|
335
335
|
return !1;
|
|
336
336
|
r = r.buffer, e = e.buffer;
|
|
337
|
-
case
|
|
338
|
-
return !(r.byteLength != e.byteLength || !s(new
|
|
337
|
+
case ea:
|
|
338
|
+
return !(r.byteLength != e.byteLength || !s(new it(r), new it(e)));
|
|
339
|
+
case Hs:
|
|
339
340
|
case Ks:
|
|
341
|
+
case Ws:
|
|
342
|
+
return Bs(+r, +e);
|
|
340
343
|
case qs:
|
|
344
|
+
return r.name == e.name && r.message == e.message;
|
|
341
345
|
case Js:
|
|
342
|
-
|
|
346
|
+
case Xs:
|
|
347
|
+
return r == e + "";
|
|
343
348
|
case Ys:
|
|
344
|
-
|
|
349
|
+
var o = js;
|
|
345
350
|
case Zs:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
case Ws:
|
|
349
|
-
var o = Us;
|
|
350
|
-
case Xs:
|
|
351
|
-
var l = i & ks;
|
|
352
|
-
if (o || (o = Vs), r.size != e.size && !l)
|
|
351
|
+
var l = i & Vs;
|
|
352
|
+
if (o || (o = Us), r.size != e.size && !l)
|
|
353
353
|
return !1;
|
|
354
|
-
var
|
|
355
|
-
if (
|
|
356
|
-
return
|
|
357
|
-
i |=
|
|
358
|
-
var
|
|
359
|
-
return a.delete(r),
|
|
360
|
-
case
|
|
354
|
+
var d = a.get(r);
|
|
355
|
+
if (d)
|
|
356
|
+
return d == e;
|
|
357
|
+
i |= ks, a.set(r, e);
|
|
358
|
+
var c = zs(o(r), o(e), i, n, s, a);
|
|
359
|
+
return a.delete(r), c;
|
|
360
|
+
case Qs:
|
|
361
361
|
if (me)
|
|
362
362
|
return me.call(r) == me.call(e);
|
|
363
363
|
}
|
|
364
364
|
return !1;
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
366
|
+
var ia = ra;
|
|
367
|
+
function na(r, e) {
|
|
368
368
|
for (var t = -1, i = e.length, n = r.length; ++t < i; )
|
|
369
369
|
r[n + t] = e[t];
|
|
370
370
|
return r;
|
|
371
371
|
}
|
|
372
|
-
var
|
|
373
|
-
function
|
|
372
|
+
var Wt = na, sa = Array.isArray, F = sa, aa = Wt, oa = F;
|
|
373
|
+
function ua(r, e, t) {
|
|
374
374
|
var i = e(r);
|
|
375
|
-
return
|
|
375
|
+
return oa(r) ? i : aa(i, t(r));
|
|
376
376
|
}
|
|
377
|
-
var
|
|
377
|
+
var la = ua;
|
|
378
378
|
function da(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];
|
|
@@ -382,67 +382,67 @@ function da(r, e) {
|
|
|
382
382
|
}
|
|
383
383
|
return s;
|
|
384
384
|
}
|
|
385
|
-
var
|
|
386
|
-
function
|
|
385
|
+
var ca = da;
|
|
386
|
+
function ga() {
|
|
387
387
|
return [];
|
|
388
388
|
}
|
|
389
|
-
var
|
|
390
|
-
return r == null ? [] : (r = Object(r),
|
|
391
|
-
return
|
|
389
|
+
var ha = ga, fa = ca, pa = ha, ba = Object.prototype, ya = ba.propertyIsEnumerable, st = Object.getOwnPropertySymbols, va = st ? function(r) {
|
|
390
|
+
return r == null ? [] : (r = Object(r), fa(st(r), function(e) {
|
|
391
|
+
return ya.call(r, e);
|
|
392
392
|
}));
|
|
393
|
-
} :
|
|
394
|
-
function
|
|
393
|
+
} : pa, _a = va;
|
|
394
|
+
function ma(r, e) {
|
|
395
395
|
for (var t = -1, i = Array(r); ++t < r; )
|
|
396
396
|
i[t] = e(t);
|
|
397
397
|
return i;
|
|
398
398
|
}
|
|
399
|
-
var
|
|
400
|
-
function
|
|
399
|
+
var Ca = ma;
|
|
400
|
+
function Sa(r) {
|
|
401
401
|
return r != null && typeof r == "object";
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
function
|
|
405
|
-
return
|
|
403
|
+
var Q = Sa, Aa = X, xa = Q, Ea = "[object Arguments]";
|
|
404
|
+
function Fa(r) {
|
|
405
|
+
return xa(r) && Aa(r) == Ea;
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var $a = Fa, at = $a, Ta = Q, Jt = Object.prototype, Na = Jt.hasOwnProperty, Da = Jt.propertyIsEnumerable, wa = at(/* @__PURE__ */ function() {
|
|
408
408
|
return arguments;
|
|
409
|
-
}()) ?
|
|
410
|
-
return
|
|
411
|
-
},
|
|
412
|
-
function
|
|
409
|
+
}()) ? at : function(r) {
|
|
410
|
+
return Ta(r) && Na.call(r, "callee") && !Da.call(r, "callee");
|
|
411
|
+
}, Be = wa, se = { exports: {} };
|
|
412
|
+
function Oa() {
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
|
-
var
|
|
415
|
+
var La = Oa;
|
|
416
416
|
se.exports;
|
|
417
417
|
(function(r, e) {
|
|
418
|
-
var t = D, i =
|
|
419
|
-
r.exports =
|
|
418
|
+
var t = D, i = La, 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
|
-
var
|
|
421
|
+
var Zt = se.exports, Ia = 9007199254740991, Pa = /^(?:0|[1-9]\d*)$/;
|
|
422
422
|
function Ra(r, e) {
|
|
423
423
|
var t = typeof r;
|
|
424
|
-
return e = e ??
|
|
424
|
+
return e = e ?? Ia, !!e && (t == "number" || t != "symbol" && Pa.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
425
425
|
}
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <=
|
|
426
|
+
var ze = Ra, Ma = 9007199254740991;
|
|
427
|
+
function Ga(r) {
|
|
428
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ma;
|
|
429
429
|
}
|
|
430
|
-
var
|
|
431
|
-
b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] =
|
|
432
|
-
b[Va] = b[
|
|
433
|
-
function
|
|
434
|
-
return
|
|
430
|
+
var je = Ga, Ba = X, za = je, ja = Q, Ua = "[object Arguments]", Va = "[object Array]", ka = "[object Boolean]", Ha = "[object Date]", Ka = "[object Error]", qa = "[object Function]", Ya = "[object Map]", Wa = "[object Number]", Ja = "[object Object]", Za = "[object RegExp]", Xa = "[object Set]", Qa = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", ro = "[object DataView]", io = "[object Float32Array]", no = "[object Float64Array]", so = "[object Int8Array]", ao = "[object Int16Array]", oo = "[object Int32Array]", uo = "[object Uint8Array]", lo = "[object Uint8ClampedArray]", co = "[object Uint16Array]", go = "[object Uint32Array]", b = {};
|
|
431
|
+
b[io] = b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = !0;
|
|
432
|
+
b[Ua] = b[Va] = b[to] = b[ka] = b[ro] = b[Ha] = b[Ka] = b[qa] = b[Ya] = b[Wa] = b[Ja] = b[Za] = b[Xa] = b[Qa] = b[eo] = !1;
|
|
433
|
+
function ho(r) {
|
|
434
|
+
return ja(r) && za(r.length) && !!b[Ba(r)];
|
|
435
435
|
}
|
|
436
|
-
var
|
|
437
|
-
function
|
|
436
|
+
var fo = ho;
|
|
437
|
+
function po(r) {
|
|
438
438
|
return function(e) {
|
|
439
439
|
return r(e);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
var
|
|
442
|
+
var Xt = po, ae = { exports: {} };
|
|
443
443
|
ae.exports;
|
|
444
444
|
(function(r, e) {
|
|
445
|
-
var t =
|
|
445
|
+
var t = Vt, i = e && !e.nodeType && e, n = i && !0 && r && !r.nodeType && r, s = n && n.exports === i, a = s && t.process, o = function() {
|
|
446
446
|
try {
|
|
447
447
|
var l = n && n.require && n.require("util").types;
|
|
448
448
|
return l || a && a.binding && a.binding("util");
|
|
@@ -451,164 +451,164 @@ ae.exports;
|
|
|
451
451
|
}();
|
|
452
452
|
r.exports = o;
|
|
453
453
|
})(ae, ae.exports);
|
|
454
|
-
var
|
|
455
|
-
function
|
|
456
|
-
var t =
|
|
457
|
-
for (var
|
|
458
|
-
(e ||
|
|
459
|
-
(
|
|
460
|
-
n && (
|
|
461
|
-
s && (
|
|
462
|
-
|
|
454
|
+
var bo = ae.exports, yo = fo, vo = Xt, ot = bo, ut = ot && ot.isTypedArray, _o = ut ? vo(ut) : yo, Qt = _o, mo = Ca, Co = Be, So = F, Ao = Zt, xo = ze, Eo = Qt, Fo = Object.prototype, $o = Fo.hasOwnProperty;
|
|
455
|
+
function To(r, e) {
|
|
456
|
+
var t = So(r), i = !t && Co(r), n = !t && !i && Ao(r), s = !t && !i && !n && Eo(r), a = t || i || n || s, o = a ? mo(r.length, String) : [], l = o.length;
|
|
457
|
+
for (var d in r)
|
|
458
|
+
(e || $o.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
|
+
xo(d, l))) && o.push(d);
|
|
463
463
|
return o;
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
var e = r && r.constructor, t = typeof e == "function" && e.prototype ||
|
|
465
|
+
var No = To, Do = Object.prototype;
|
|
466
|
+
function wo(r) {
|
|
467
|
+
var e = r && r.constructor, t = typeof e == "function" && e.prototype || Do;
|
|
468
468
|
return r === t;
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
function
|
|
470
|
+
var Oo = wo;
|
|
471
|
+
function Lo(r, e) {
|
|
472
472
|
return function(t) {
|
|
473
473
|
return r(e(t));
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
478
|
-
if (!
|
|
479
|
-
return
|
|
476
|
+
var Io = Lo, Po = Io, Ro = Po(Object.keys, Object), Mo = Ro, Go = Oo, Bo = Mo, zo = Object.prototype, jo = zo.hasOwnProperty;
|
|
477
|
+
function Uo(r) {
|
|
478
|
+
if (!Go(r))
|
|
479
|
+
return Bo(r);
|
|
480
480
|
var e = [];
|
|
481
481
|
for (var t in Object(r))
|
|
482
|
-
|
|
482
|
+
jo.call(r, t) && t != "constructor" && e.push(t);
|
|
483
483
|
return e;
|
|
484
484
|
}
|
|
485
|
-
var
|
|
486
|
-
function
|
|
487
|
-
return r != null &&
|
|
485
|
+
var Vo = Uo, ko = Ht, Ho = je;
|
|
486
|
+
function Ko(r) {
|
|
487
|
+
return r != null && Ho(r.length) && !ko(r);
|
|
488
488
|
}
|
|
489
|
-
var pe =
|
|
490
|
-
function
|
|
491
|
-
return
|
|
489
|
+
var pe = Ko, qo = No, Yo = Vo, Wo = pe;
|
|
490
|
+
function Jo(r) {
|
|
491
|
+
return Wo(r) ? qo(r) : Yo(r);
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
495
|
-
return
|
|
493
|
+
var Ue = Jo, Zo = la, Xo = _a, Qo = Ue;
|
|
494
|
+
function eu(r) {
|
|
495
|
+
return Zo(r, Qo, Xo);
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
499
|
-
var a = t &
|
|
500
|
-
if (l !=
|
|
497
|
+
var tu = eu, lt = tu, ru = 1, iu = Object.prototype, nu = iu.hasOwnProperty;
|
|
498
|
+
function su(r, e, t, i, n, s) {
|
|
499
|
+
var a = t & ru, o = lt(r), l = o.length, d = lt(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];
|
|
504
|
-
if (!(a ? h in e :
|
|
504
|
+
if (!(a ? h in e : nu.call(e, h)))
|
|
505
505
|
return !1;
|
|
506
506
|
}
|
|
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
|
|
530
|
-
(
|
|
531
|
-
var e =
|
|
529
|
+
var au = su, ou = R, uu = D, lu = ou(uu, "DataView"), du = lu, cu = R, gu = D, hu = cu(gu, "Promise"), fu = hu, pu = R, bu = D, yu = pu(bu, "Set"), vu = yu, _u = R, mu = D, Cu = _u(mu, "WeakMap"), Su = Cu, Ee = du, Fe = Me, $e = fu, Te = vu, Ne = Su, er = X, K = Kt, dt = "[object Map]", Au = "[object Object]", ct = "[object Promise]", gt = "[object Set]", ht = "[object WeakMap]", ft = "[object DataView]", xu = K(Ee), Eu = K(Fe), Fu = K($e), $u = K(Te), Tu = K(Ne), L = er;
|
|
530
|
+
(Ee && L(new Ee(new ArrayBuffer(1))) != ft || Fe && L(new Fe()) != dt || $e && L($e.resolve()) != ct || Te && L(new Te()) != gt || Ne && L(new Ne()) != ht) && (L = function(r) {
|
|
531
|
+
var e = er(r), t = e == Au ? r.constructor : void 0, i = t ? K(t) : "";
|
|
532
532
|
if (i)
|
|
533
533
|
switch (i) {
|
|
534
|
+
case xu:
|
|
535
|
+
return ft;
|
|
534
536
|
case Eu:
|
|
535
|
-
return pt;
|
|
536
|
-
case Fu:
|
|
537
537
|
return dt;
|
|
538
|
+
case Fu:
|
|
539
|
+
return ct;
|
|
538
540
|
case $u:
|
|
539
541
|
return gt;
|
|
540
542
|
case Tu:
|
|
541
543
|
return ht;
|
|
542
|
-
case Nu:
|
|
543
|
-
return ft;
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
546
546
|
});
|
|
547
|
-
var
|
|
547
|
+
var Nu = L, Ce = qt, Du = Yt, wu = ia, Ou = au, pt = Nu, bt = F, yt = Zt, Lu = Qt, Iu = 1, vt = "[object Arguments]", _t = "[object Array]", re = "[object Object]", Pu = Object.prototype, mt = Pu.hasOwnProperty;
|
|
548
548
|
function Ru(r, e, t, i, n, s) {
|
|
549
|
-
var a =
|
|
550
|
-
l = l ==
|
|
551
|
-
var
|
|
552
|
-
if (h &&
|
|
553
|
-
if (!
|
|
549
|
+
var a = bt(r), o = bt(e), l = a ? _t : pt(r), d = o ? _t : pt(e);
|
|
550
|
+
l = l == vt ? re : l, d = d == vt ? re : d;
|
|
551
|
+
var c = l == re, g = d == re, h = l == d;
|
|
552
|
+
if (h && yt(r)) {
|
|
553
|
+
if (!yt(e))
|
|
554
554
|
return !1;
|
|
555
|
-
a = !0,
|
|
555
|
+
a = !0, c = !1;
|
|
556
556
|
}
|
|
557
|
-
if (h && !
|
|
558
|
-
return s || (s = new Ce()), a ||
|
|
559
|
-
if (!(t &
|
|
560
|
-
var y =
|
|
557
|
+
if (h && !c)
|
|
558
|
+
return s || (s = new Ce()), a || Lu(r) ? Du(r, e, t, i, n, s) : wu(r, e, l, t, i, n, s);
|
|
559
|
+
if (!(t & Iu)) {
|
|
560
|
+
var y = c && mt.call(r, "__wrapped__"), m = g && mt.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
|
-
return h ? (s || (s = new Ce()),
|
|
566
|
+
return h ? (s || (s = new Ce()), Ou(r, e, t, i, n, s)) : !1;
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
570
|
-
return r === e ? !0 : r == null || e == null || !
|
|
568
|
+
var Mu = Ru, Gu = Mu, Ct = Q;
|
|
569
|
+
function tr(r, e, t, i, n) {
|
|
570
|
+
return r === e ? !0 : r == null || e == null || !Ct(r) && !Ct(e) ? r !== r && e !== e : Gu(r, e, t, i, tr, n);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
574
|
-
return
|
|
572
|
+
var Ve = tr, Bu = Ve;
|
|
573
|
+
function zu(r, e) {
|
|
574
|
+
return Bu(r, e);
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
const
|
|
578
|
-
var
|
|
579
|
-
function
|
|
580
|
-
return
|
|
576
|
+
var ju = zu;
|
|
577
|
+
const Uu = /* @__PURE__ */ Pe(ju);
|
|
578
|
+
var St = Z, Vu = Be, ku = F, At = St ? St.isConcatSpreadable : void 0;
|
|
579
|
+
function Hu(r) {
|
|
580
|
+
return ku(r) || Vu(r) || !!(At && r && r[At]);
|
|
581
581
|
}
|
|
582
|
-
var
|
|
583
|
-
function
|
|
582
|
+
var Ku = Hu, qu = Wt, Yu = Ku;
|
|
583
|
+
function rr(r, e, t, i, n) {
|
|
584
584
|
var s = -1, a = r.length;
|
|
585
|
-
for (t || (t =
|
|
585
|
+
for (t || (t = Yu), n || (n = []); ++s < a; ) {
|
|
586
586
|
var o = r[s];
|
|
587
|
-
e > 0 && t(o) ? e > 1 ?
|
|
587
|
+
e > 0 && t(o) ? e > 1 ? rr(o, e - 1, t, i, n) : qu(n, o) : i || (n[n.length] = o);
|
|
588
588
|
}
|
|
589
589
|
return n;
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
function
|
|
591
|
+
var Wu = rr;
|
|
592
|
+
function Ju(r, e) {
|
|
593
593
|
for (var t = -1, i = r == null ? 0 : r.length, n = Array(i); ++t < i; )
|
|
594
594
|
n[t] = e(r[t], t, r);
|
|
595
595
|
return n;
|
|
596
596
|
}
|
|
597
|
-
var
|
|
598
|
-
function
|
|
599
|
-
return typeof r == "symbol" ||
|
|
597
|
+
var ir = Ju, Zu = X, Xu = Q, Qu = "[object Symbol]";
|
|
598
|
+
function el(r) {
|
|
599
|
+
return typeof r == "symbol" || Xu(r) && Zu(r) == Qu;
|
|
600
600
|
}
|
|
601
|
-
var be =
|
|
602
|
-
function
|
|
603
|
-
if (
|
|
601
|
+
var be = el, tl = F, rl = be, il = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, nl = /^\w*$/;
|
|
602
|
+
function sl(r, e) {
|
|
603
|
+
if (tl(r))
|
|
604
604
|
return !1;
|
|
605
605
|
var t = typeof r;
|
|
606
|
-
return t == "number" || t == "symbol" || t == "boolean" || r == null ||
|
|
606
|
+
return t == "number" || t == "symbol" || t == "boolean" || r == null || rl(r) ? !0 : nl.test(r) || !il.test(r) || e != null && r in Object(e);
|
|
607
607
|
}
|
|
608
|
-
var
|
|
609
|
-
function
|
|
608
|
+
var ke = sl, nr = Ge, al = "Expected a function";
|
|
609
|
+
function He(r, e) {
|
|
610
610
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
611
|
-
throw new TypeError(
|
|
611
|
+
throw new TypeError(al);
|
|
612
612
|
var t = function() {
|
|
613
613
|
var i = arguments, n = e ? e.apply(this, i) : i[0], s = t.cache;
|
|
614
614
|
if (s.has(n))
|
|
@@ -616,56 +616,56 @@ function Ke(r, e) {
|
|
|
616
616
|
var a = r.apply(this, i);
|
|
617
617
|
return t.cache = s.set(n, a) || s, a;
|
|
618
618
|
};
|
|
619
|
-
return t.cache = new (
|
|
619
|
+
return t.cache = new (He.Cache || nr)(), t;
|
|
620
620
|
}
|
|
621
|
-
|
|
622
|
-
var
|
|
621
|
+
He.Cache = nr;
|
|
622
|
+
var ol = He, ul = ol, ll = 500;
|
|
623
623
|
function dl(r) {
|
|
624
|
-
var e =
|
|
625
|
-
return t.size ===
|
|
624
|
+
var e = ul(r, function(i) {
|
|
625
|
+
return t.size === ll && t.clear(), i;
|
|
626
626
|
}), t = e.cache;
|
|
627
627
|
return e;
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var cl = dl, gl = cl, hl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, fl = /\\(\\)?/g, pl = gl(function(r) {
|
|
630
630
|
var e = [];
|
|
631
|
-
return r.charCodeAt(0) === 46 && e.push(""), r.replace(
|
|
632
|
-
e.push(n ? s.replace(
|
|
631
|
+
return r.charCodeAt(0) === 46 && e.push(""), r.replace(hl, function(t, i, n, s) {
|
|
632
|
+
e.push(n ? s.replace(fl, "$1") : i || t);
|
|
633
633
|
}), e;
|
|
634
|
-
}),
|
|
635
|
-
function
|
|
634
|
+
}), bl = pl, xt = Z, yl = ir, vl = F, _l = be, Et = xt ? xt.prototype : void 0, Ft = Et ? Et.toString : void 0;
|
|
635
|
+
function sr(r) {
|
|
636
636
|
if (typeof r == "string")
|
|
637
637
|
return r;
|
|
638
|
+
if (vl(r))
|
|
639
|
+
return yl(r, sr) + "";
|
|
638
640
|
if (_l(r))
|
|
639
|
-
return
|
|
640
|
-
if (ml(r))
|
|
641
|
-
return $t ? $t.call(r) : "";
|
|
641
|
+
return Ft ? Ft.call(r) : "";
|
|
642
642
|
var e = r + "";
|
|
643
|
-
return e == "0" && 1 / r == -
|
|
643
|
+
return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
|
|
644
644
|
}
|
|
645
|
-
var
|
|
646
|
-
function
|
|
647
|
-
return r == null ? "" :
|
|
645
|
+
var ml = sr, Cl = ml;
|
|
646
|
+
function Sl(r) {
|
|
647
|
+
return r == null ? "" : Cl(r);
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
649
|
+
var Al = Sl, xl = F, El = ke, Fl = bl, $l = Al;
|
|
650
|
+
function Tl(r, e) {
|
|
651
|
+
return xl(r) ? r : El(r, e) ? [r] : Fl($l(r));
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
655
|
-
if (typeof r == "string" ||
|
|
653
|
+
var ar = Tl, Nl = be;
|
|
654
|
+
function Dl(r) {
|
|
655
|
+
if (typeof r == "string" || Nl(r))
|
|
656
656
|
return r;
|
|
657
657
|
var e = r + "";
|
|
658
|
-
return e == "0" && 1 / r == -
|
|
658
|
+
return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
|
|
659
659
|
}
|
|
660
|
-
var ye =
|
|
661
|
-
function
|
|
662
|
-
e =
|
|
660
|
+
var ye = Dl, wl = ar, Ol = ye;
|
|
661
|
+
function Ll(r, e) {
|
|
662
|
+
e = wl(e, r);
|
|
663
663
|
for (var t = 0, i = e.length; r != null && t < i; )
|
|
664
|
-
r = r[
|
|
664
|
+
r = r[Ol(e[t++])];
|
|
665
665
|
return t && t == i ? r : void 0;
|
|
666
666
|
}
|
|
667
|
-
var
|
|
668
|
-
function
|
|
667
|
+
var Ke = Ll, Il = qt, Pl = Ve, Rl = 1, Ml = 2;
|
|
668
|
+
function Gl(r, e, t, i) {
|
|
669
669
|
var n = t.length, s = n, a = !i;
|
|
670
670
|
if (r == null)
|
|
671
671
|
return !s;
|
|
@@ -676,102 +676,102 @@ 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
|
-
var g = new
|
|
684
|
+
var g = new Il();
|
|
685
685
|
if (i)
|
|
686
|
-
var h = i(
|
|
687
|
-
if (!(h === void 0 ?
|
|
686
|
+
var h = i(d, c, l, r, e, g);
|
|
687
|
+
if (!(h === void 0 ? Pl(c, d, Rl | Ml, i, g) : h))
|
|
688
688
|
return !1;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
return !0;
|
|
692
692
|
}
|
|
693
|
-
var
|
|
694
|
-
function
|
|
695
|
-
return r === r && !
|
|
693
|
+
var Bl = Gl, zl = ge;
|
|
694
|
+
function jl(r) {
|
|
695
|
+
return r === r && !zl(r);
|
|
696
696
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
for (var e =
|
|
697
|
+
var or = jl, Ul = or, Vl = Ue;
|
|
698
|
+
function kl(r) {
|
|
699
|
+
for (var e = Vl(r), t = e.length; t--; ) {
|
|
700
700
|
var i = e[t], n = r[i];
|
|
701
|
-
e[t] = [i, n,
|
|
701
|
+
e[t] = [i, n, Ul(n)];
|
|
702
702
|
}
|
|
703
703
|
return e;
|
|
704
704
|
}
|
|
705
|
-
var
|
|
706
|
-
function
|
|
705
|
+
var Hl = kl;
|
|
706
|
+
function Kl(r, e) {
|
|
707
707
|
return function(t) {
|
|
708
708
|
return t == null ? !1 : t[r] === e && (e !== void 0 || r in Object(t));
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
var
|
|
712
|
-
function
|
|
713
|
-
var e =
|
|
714
|
-
return e.length == 1 && e[0][2] ?
|
|
715
|
-
return t === r ||
|
|
711
|
+
var ur = Kl, ql = Bl, Yl = Hl, Wl = ur;
|
|
712
|
+
function Jl(r) {
|
|
713
|
+
var e = Yl(r);
|
|
714
|
+
return e.length == 1 && e[0][2] ? Wl(e[0][0], e[0][1]) : function(t) {
|
|
715
|
+
return t === r || ql(t, r, e);
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
var i = r == null ? void 0 :
|
|
718
|
+
var Zl = Jl, Xl = Ke;
|
|
719
|
+
function Ql(r, e, t) {
|
|
720
|
+
var i = r == null ? void 0 : Xl(r, e);
|
|
721
721
|
return i === void 0 ? t : i;
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
function
|
|
723
|
+
var ed = Ql;
|
|
724
|
+
function td(r, e) {
|
|
725
725
|
return r != null && e in Object(r);
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
e =
|
|
727
|
+
var rd = td, id = ar, nd = Be, sd = F, ad = ze, od = je, ud = ye;
|
|
728
|
+
function ld(r, e, t) {
|
|
729
|
+
e = id(e, r);
|
|
730
730
|
for (var i = -1, n = e.length, s = !1; ++i < n; ) {
|
|
731
|
-
var a =
|
|
731
|
+
var a = ud(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 && od(n) && ad(a, n) && (sd(r) || nd(r)));
|
|
737
737
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return r != null &&
|
|
738
|
+
var dd = ld, cd = rd, gd = dd;
|
|
739
|
+
function hd(r, e) {
|
|
740
|
+
return r != null && gd(r, e, cd);
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
744
|
-
return
|
|
745
|
-
var i =
|
|
746
|
-
return i === void 0 && i === e ?
|
|
742
|
+
var fd = hd, pd = Ve, bd = ed, yd = fd, vd = ke, _d = or, md = ur, Cd = ye, Sd = 1, Ad = 2;
|
|
743
|
+
function xd(r, e) {
|
|
744
|
+
return vd(r) && _d(e) ? md(Cd(r), e) : function(t) {
|
|
745
|
+
var i = bd(t, r);
|
|
746
|
+
return i === void 0 && i === e ? yd(t, r) : pd(e, i, Sd | Ad);
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
749
|
+
var Ed = xd;
|
|
750
|
+
function Fd(r) {
|
|
751
751
|
return r;
|
|
752
752
|
}
|
|
753
|
-
var ve =
|
|
754
|
-
function
|
|
753
|
+
var ve = Fd;
|
|
754
|
+
function $d(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 Td = $d, Nd = Ke;
|
|
760
|
+
function Dd(r) {
|
|
761
761
|
return function(e) {
|
|
762
|
-
return
|
|
762
|
+
return Nd(e, r);
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
var
|
|
766
|
-
function
|
|
767
|
-
return
|
|
765
|
+
var wd = Dd, Od = Td, Ld = wd, Id = ke, Pd = ye;
|
|
766
|
+
function Rd(r) {
|
|
767
|
+
return Id(r) ? Od(Pd(r)) : Ld(r);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
function
|
|
771
|
-
return typeof r == "function" ? r : r == null ?
|
|
769
|
+
var Md = Rd, Gd = Zl, Bd = Ed, zd = ve, jd = F, Ud = Md;
|
|
770
|
+
function Vd(r) {
|
|
771
|
+
return typeof r == "function" ? r : r == null ? zd : typeof r == "object" ? jd(r) ? Bd(r[0], r[1]) : Gd(r) : Ud(r);
|
|
772
772
|
}
|
|
773
|
-
var
|
|
774
|
-
function
|
|
773
|
+
var kd = Vd;
|
|
774
|
+
function Hd(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 Kd = Hd, qd = Kd, Yd = qd(), Wd = Yd, Jd = Wd, Zd = Ue;
|
|
785
|
+
function Xd(r, e) {
|
|
786
|
+
return r && Jd(r, e, Zd);
|
|
787
787
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
788
|
+
var Qd = Xd, ec = pe;
|
|
789
|
+
function tc(r, e) {
|
|
790
790
|
return function(t, i) {
|
|
791
791
|
if (t == null)
|
|
792
792
|
return t;
|
|
793
|
-
if (!
|
|
793
|
+
if (!ec(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 rc = tc, ic = Qd, nc = rc, sc = nc(ic), ac = sc, oc = ac, uc = pe;
|
|
801
|
+
function lc(r, e) {
|
|
802
|
+
var t = -1, i = uc(r) ? Array(r.length) : [];
|
|
803
|
+
return oc(r, function(n, s, a) {
|
|
804
804
|
i[++t] = e(n, s, a);
|
|
805
805
|
}), i;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
807
|
+
var dc = lc;
|
|
808
|
+
function cc(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 gc = cc, $t = be;
|
|
815
|
+
function hc(r, e) {
|
|
816
816
|
if (r !== e) {
|
|
817
|
-
var t = r !== void 0, i = r === null, n = r === r, s =
|
|
818
|
-
if (!o && !
|
|
817
|
+
var t = r !== void 0, i = r === null, n = r === r, s = $t(r), a = e !== void 0, o = e === null, l = e === e, d = $t(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 fc = hc, pc = fc;
|
|
826
|
+
function bc(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 = pc(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 yc = bc, Se = ir, vc = Ke, _c = kd, mc = dc, Cc = gc, Sc = Xt, Ac = yc, xc = ve, Ec = F;
|
|
839
|
+
function Fc(r, e, t) {
|
|
840
840
|
e.length ? e = Se(e, function(s) {
|
|
841
|
-
return
|
|
842
|
-
return
|
|
841
|
+
return Ec(s) ? function(a) {
|
|
842
|
+
return vc(a, s.length === 1 ? s[0] : s);
|
|
843
843
|
} : s;
|
|
844
|
-
}) : e = [
|
|
844
|
+
}) : e = [xc];
|
|
845
845
|
var i = -1;
|
|
846
|
-
e = Se(e,
|
|
847
|
-
var n =
|
|
848
|
-
var l = Se(e, function(
|
|
849
|
-
return
|
|
846
|
+
e = Se(e, Sc(_c));
|
|
847
|
+
var n = mc(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 Cc(n, function(s, a) {
|
|
854
|
+
return Ac(s, a, t);
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
var
|
|
858
|
-
function
|
|
857
|
+
var $c = Fc;
|
|
858
|
+
function Tc(r, e, t) {
|
|
859
859
|
switch (t.length) {
|
|
860
860
|
case 0:
|
|
861
861
|
return r.call(e);
|
|
@@ -868,67 +868,67 @@ function wd(r, e, t) {
|
|
|
868
868
|
}
|
|
869
869
|
return r.apply(e, t);
|
|
870
870
|
}
|
|
871
|
-
var
|
|
872
|
-
function
|
|
873
|
-
return e =
|
|
874
|
-
for (var i = arguments, n = -1, s =
|
|
871
|
+
var Nc = Tc, Dc = Nc, Tt = Math.max;
|
|
872
|
+
function wc(r, e, t) {
|
|
873
|
+
return e = Tt(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
874
|
+
for (var i = arguments, n = -1, s = Tt(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), Dc(r, this, o);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
882
|
+
var Oc = wc;
|
|
883
|
+
function Lc(r) {
|
|
884
884
|
return function() {
|
|
885
885
|
return r;
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
var
|
|
888
|
+
var Ic = Lc, Pc = R, Rc = function() {
|
|
889
889
|
try {
|
|
890
|
-
var r =
|
|
890
|
+
var r = Pc(Object, "defineProperty");
|
|
891
891
|
return r({}, "", {}), r;
|
|
892
892
|
} catch {
|
|
893
893
|
}
|
|
894
|
-
}(),
|
|
895
|
-
return
|
|
894
|
+
}(), Mc = Rc, Gc = Ic, Nt = Mc, Bc = ve, zc = Nt ? function(r, e) {
|
|
895
|
+
return Nt(r, "toString", {
|
|
896
896
|
configurable: !0,
|
|
897
897
|
enumerable: !1,
|
|
898
|
-
value:
|
|
898
|
+
value: Gc(e),
|
|
899
899
|
writable: !0
|
|
900
900
|
});
|
|
901
|
-
} :
|
|
902
|
-
function
|
|
901
|
+
} : Bc, jc = zc, Uc = 800, Vc = 16, kc = Date.now;
|
|
902
|
+
function Hc(r) {
|
|
903
903
|
var e = 0, t = 0;
|
|
904
904
|
return function() {
|
|
905
|
-
var i =
|
|
905
|
+
var i = kc(), n = Vc - (i - t);
|
|
906
906
|
if (t = i, n > 0) {
|
|
907
|
-
if (++e >=
|
|
907
|
+
if (++e >= Uc)
|
|
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
|
|
915
|
-
function
|
|
916
|
-
return
|
|
914
|
+
var Kc = Hc, qc = jc, Yc = Kc, Wc = Yc(qc), Jc = Wc, Zc = ve, Xc = Oc, Qc = Jc;
|
|
915
|
+
function eg(r, e) {
|
|
916
|
+
return Qc(Xc(r, e, Zc), r + "");
|
|
917
917
|
}
|
|
918
|
-
var
|
|
919
|
-
function
|
|
920
|
-
if (!
|
|
918
|
+
var tg = eg, rg = Re, ig = pe, ng = ze, sg = ge;
|
|
919
|
+
function ag(r, e, t) {
|
|
920
|
+
if (!sg(t))
|
|
921
921
|
return !1;
|
|
922
922
|
var i = typeof e;
|
|
923
|
-
return (i == "number" ?
|
|
923
|
+
return (i == "number" ? ig(t) && ng(e, t.length) : i == "string" && e in t) ? rg(t[e], r) : !1;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var og = ag, ug = Wu, lg = $c, dg = tg, Dt = og, cg = dg(function(r, e) {
|
|
926
926
|
if (r == null)
|
|
927
927
|
return [];
|
|
928
928
|
var t = e.length;
|
|
929
|
-
return t > 1 &&
|
|
930
|
-
}),
|
|
931
|
-
const
|
|
929
|
+
return t > 1 && Dt(r, e[0], e[1]) ? e = [] : t > 2 && Dt(e[0], e[1], e[2]) && (e = [e[0]]), lg(r, ug(e, 1), []);
|
|
930
|
+
}), gg = cg;
|
|
931
|
+
const G = /* @__PURE__ */ Pe(gg), hg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, fg = [
|
|
932
932
|
"label",
|
|
933
933
|
"Label",
|
|
934
934
|
"name",
|
|
@@ -939,7 +939,7 @@ const z = /* @__PURE__ */ Me(pg), bg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, yg
|
|
|
939
939
|
];
|
|
940
940
|
class u {
|
|
941
941
|
static isEqual(e, t) {
|
|
942
|
-
return
|
|
942
|
+
return Uu(e, t);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* Check that a value is defined : not null and not undefined
|
|
@@ -1131,7 +1131,7 @@ class u {
|
|
|
1131
1131
|
* @return {boolean}
|
|
1132
1132
|
*/
|
|
1133
1133
|
static isImage(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return hg.test(e);
|
|
1135
1135
|
}
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Return true if the given string is an url with an image extension
|
|
@@ -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 M.SYMBOL_COMMAS_DOT:
|
|
1193
1193
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",", ".")}`;
|
|
1194
|
-
case
|
|
1194
|
+
case M.SYMBOL_COMMAS:
|
|
1195
1195
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",")}`;
|
|
1196
|
-
case
|
|
1196
|
+
case M.DOTS_COMMA_SYMBOL:
|
|
1197
1197
|
return `${i}${u.formatNumberToCurrency(e, ".", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1198
|
-
case
|
|
1198
|
+
case M.DOTS_SYMBOL:
|
|
1199
1199
|
return `${i}${u.formatNumberToCurrency(e, ".")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1200
|
-
case
|
|
1200
|
+
case M.SPACES_COMMA_SYMBOL:
|
|
1201
1201
|
return `${i}${u.formatNumberToCurrency(e, " ", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1202
|
-
case
|
|
1202
|
+
case M.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}.`);
|
|
@@ -1223,7 +1223,7 @@ class N {
|
|
|
1223
1223
|
if (N.captionExist(n, t))
|
|
1224
1224
|
return "categories" in e ? N.generateNodeCaption(e, t, i) || null : N.generateEdgeCaption(e, t, i) || null;
|
|
1225
1225
|
if (e.properties !== void 0) {
|
|
1226
|
-
const s =
|
|
1226
|
+
const s = fg.find((a) => e.properties[a] !== void 0);
|
|
1227
1227
|
if (s !== void 0 && u.isDefined(e.properties[s]))
|
|
1228
1228
|
return `${u.getValueFromLkProperty(
|
|
1229
1229
|
e.properties[s]
|
|
@@ -1246,7 +1246,7 @@ class N {
|
|
|
1246
1246
|
new Date(e.value).getTime() + u.timezoneToMilliseconds(e.timezone)
|
|
1247
1247
|
).toISOString()
|
|
1248
1248
|
);
|
|
1249
|
-
} else if ((t == null ? void 0 : t.name) ===
|
|
1249
|
+
} else if ((t == null ? void 0 : t.name) === br.NUMBER && t.options !== void 0)
|
|
1250
1250
|
return u.formatCurrencyValue(e, t.options);
|
|
1251
1251
|
return `${e}`.trim();
|
|
1252
1252
|
}
|
|
@@ -1291,7 +1291,7 @@ class N {
|
|
|
1291
1291
|
}), s.join(" - ").trim()) : "";
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
var
|
|
1294
|
+
var lr = { exports: {} }, dr = { exports: {} };
|
|
1295
1295
|
(function() {
|
|
1296
1296
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
|
|
1297
1297
|
// Bit-wise rotation left
|
|
@@ -1357,16 +1357,16 @@ var cr = { exports: {} }, dr = { exports: {} };
|
|
|
1357
1357
|
};
|
|
1358
1358
|
dr.exports = e;
|
|
1359
1359
|
})();
|
|
1360
|
-
var
|
|
1360
|
+
var pg = dr.exports, De = {
|
|
1361
1361
|
// UTF-8 encoding
|
|
1362
1362
|
utf8: {
|
|
1363
1363
|
// Convert a string to a byte array
|
|
1364
1364
|
stringToBytes: function(r) {
|
|
1365
|
-
return
|
|
1365
|
+
return De.bin.stringToBytes(unescape(encodeURIComponent(r)));
|
|
1366
1366
|
},
|
|
1367
1367
|
// Convert a byte array to a string
|
|
1368
1368
|
bytesToString: function(r) {
|
|
1369
|
-
return decodeURIComponent(escape(
|
|
1369
|
+
return decodeURIComponent(escape(De.bin.bytesToString(r)));
|
|
1370
1370
|
}
|
|
1371
1371
|
},
|
|
1372
1372
|
// Binary encoding
|
|
@@ -1384,34 +1384,34 @@ var vg = dr.exports, we = {
|
|
|
1384
1384
|
return e.join("");
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
},
|
|
1387
|
+
}, wt = De;
|
|
1388
1388
|
(function() {
|
|
1389
|
-
var r =
|
|
1389
|
+
var r = pg, e = wt.utf8, t = wt.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
|
|
1402
|
-
y = h, h = g, g =
|
|
1401
|
+
var pr = (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 = pr;
|
|
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, lr.exports = n;
|
|
1412
1412
|
})();
|
|
1413
|
-
var
|
|
1414
|
-
const oe = /* @__PURE__ */
|
|
1413
|
+
var bg = lr.exports;
|
|
1414
|
+
const oe = /* @__PURE__ */ Pe(bg), E = "#7f7f7f", Ot = [
|
|
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) ?
|
|
1455
|
+
return u.isDefined(e) ? Ot[A.getRandomUniqueColorPaletteIndex(e, Ot.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
|
-
const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale ===
|
|
1558
|
-
return
|
|
1557
|
+
const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale === Ut.LOGARITHMIC;
|
|
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:
|
|
1596
|
-
shape:
|
|
1595
|
+
color: E,
|
|
1596
|
+
shape: yr.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,15 +1702,15 @@ 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) => {
|
|
1709
1709
|
const n = i.style.size;
|
|
1710
1710
|
if (this.isAutoRange(n)) {
|
|
1711
1711
|
if (n.input !== void 0 && n.max !== void 0 && n.min !== void 0) {
|
|
1712
|
-
const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale ===
|
|
1713
|
-
t =
|
|
1712
|
+
const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale === Ut.LOGARITHMIC;
|
|
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 {
|
|
@@ -1773,7 +1773,7 @@ class U extends F {
|
|
|
1773
1773
|
this._baseUrl = e;
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
var
|
|
1776
|
+
var yg = /* @__PURE__ */ ((r) => (r.AUTO_RANGE = "autoRange", r))(yg || {});
|
|
1777
1777
|
class C {
|
|
1778
1778
|
constructor(e) {
|
|
1779
1779
|
this.type = e.type, this.input = e.input, this.index = e.index, this.itemType = e.itemType, this.style = e.style, this.value = e.value;
|
|
@@ -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
|
|
@@ -2275,7 +2275,7 @@ const Ae = {
|
|
|
2275
2275
|
sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
|
|
2276
2276
|
brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
|
|
2277
2277
|
maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
|
|
2278
|
-
}, ue = "#3F3D5F",
|
|
2278
|
+
}, ue = "#3F3D5F", cr = "'roboto', sans-serif", le = "#FFF", Lt = 0.2, It = {
|
|
2279
2279
|
text: {
|
|
2280
2280
|
style: "bold",
|
|
2281
2281
|
backgroundColor: "#fff",
|
|
@@ -2283,27 +2283,27 @@ const Ae = {
|
|
|
2283
2283
|
},
|
|
2284
2284
|
outerStroke: { width: 2 },
|
|
2285
2285
|
outline: !1
|
|
2286
|
-
},
|
|
2286
|
+
}, Pt = {
|
|
2287
2287
|
text: {
|
|
2288
2288
|
style: "bold",
|
|
2289
2289
|
backgroundColor: "#fff",
|
|
2290
2290
|
minVisibleSize: 0
|
|
2291
2291
|
},
|
|
2292
2292
|
outline: !1
|
|
2293
|
-
},
|
|
2293
|
+
}, vg = {
|
|
2294
2294
|
color: "#FFF",
|
|
2295
2295
|
width: 7,
|
|
2296
2296
|
scalingMethod: "scaled",
|
|
2297
2297
|
strokeWidth: 0,
|
|
2298
2298
|
hideNonAdjacentEdges: !1
|
|
2299
|
-
},
|
|
2299
|
+
}, _g = {
|
|
2300
2300
|
color: "#FFF",
|
|
2301
2301
|
scalingMethod: "scaled",
|
|
2302
2302
|
width: 4
|
|
2303
2303
|
}, Rt = "#7f7f7f";
|
|
2304
|
-
class
|
|
2304
|
+
class mg {
|
|
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;
|
|
@@ -2316,7 +2316,7 @@ class Ag {
|
|
|
2316
2316
|
* Set nodes default styles based on the configuration
|
|
2317
2317
|
*/
|
|
2318
2318
|
setNodesDefaultStyles() {
|
|
2319
|
-
this._ogma.styles.setHoveredNodeAttributes(
|
|
2319
|
+
this._ogma.styles.setHoveredNodeAttributes(It), this._ogma.styles.setSelectedNodeAttributes(It), this._nodeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2320
2320
|
nodeAttributes: {
|
|
2321
2321
|
text: {
|
|
2322
2322
|
padding: 5,
|
|
@@ -2348,7 +2348,7 @@ class Ag {
|
|
|
2348
2348
|
*/
|
|
2349
2349
|
setEdgesDefaultStyles() {
|
|
2350
2350
|
var e;
|
|
2351
|
-
this._ogma.styles.setHoveredEdgeAttributes(
|
|
2351
|
+
this._ogma.styles.setHoveredEdgeAttributes(Pt), this._ogma.styles.setSelectedEdgeAttributes(Pt), this._edgeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2352
2352
|
edgeAttributes: {
|
|
2353
2353
|
text: {
|
|
2354
2354
|
minVisibleSize: this._defaultConfiguration.edge.text !== void 0 && this._defaultConfiguration.edge.text.minVisibleSize ? this._defaultConfiguration.edge.text.minVisibleSize : 3,
|
|
@@ -2372,7 +2372,7 @@ class Ag {
|
|
|
2372
2372
|
nodeSelector: (e) => e && !e.hasClass("filtered") && !e.isVirtual(),
|
|
2373
2373
|
nodeAttributes: {
|
|
2374
2374
|
halo: (e) => e !== void 0 && !e.hasClass("filtered") && (e.isSelected() || e.getAdjacentNodes({}).isSelected().includes(!0) || e.getAdjacentEdges().isSelected().includes(!0)) ? {
|
|
2375
|
-
...
|
|
2375
|
+
...vg,
|
|
2376
2376
|
scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
|
|
2377
2377
|
} : null
|
|
2378
2378
|
},
|
|
@@ -2399,7 +2399,7 @@ class Ag {
|
|
|
2399
2399
|
edgeSelector: (e) => e && e.getSource() && e.getTarget() && !e.hasClass("filtered"),
|
|
2400
2400
|
edgeAttributes: {
|
|
2401
2401
|
halo: (e) => e && !e.hasClass("filtered") && (e.isSelected() || e.getSource().isSelected() || e.getTarget().isSelected()) ? {
|
|
2402
|
-
...
|
|
2402
|
+
..._g,
|
|
2403
2403
|
scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
|
|
2404
2404
|
} : null
|
|
2405
2405
|
},
|
|
@@ -2444,7 +2444,7 @@ class Ag {
|
|
|
2444
2444
|
this._ogma.styles.createClass({
|
|
2445
2445
|
name: "filtered",
|
|
2446
2446
|
nodeAttributes: {
|
|
2447
|
-
opacity:
|
|
2447
|
+
opacity: Lt,
|
|
2448
2448
|
layer: (e) => e.getMetaNode() !== null ? 1 : -1,
|
|
2449
2449
|
detectable: !1,
|
|
2450
2450
|
badges: {
|
|
@@ -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",
|
|
@@ -2468,14 +2468,14 @@ class Ag {
|
|
|
2468
2468
|
radius: "50%"
|
|
2469
2469
|
},
|
|
2470
2470
|
edgeAttributes: {
|
|
2471
|
-
opacity:
|
|
2471
|
+
opacity: Lt,
|
|
2472
2472
|
layer: (e) => {
|
|
2473
2473
|
const t = e.getExtremities().getMetaNode().some((i) => i !== null);
|
|
2474
2474
|
return !e.isVirtual() && t ? 1 : -1;
|
|
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
|
}
|
|
@@ -2533,7 +2533,7 @@ class Ag {
|
|
|
2533
2533
|
color: "#FFFFFF"
|
|
2534
2534
|
},
|
|
2535
2535
|
text: {
|
|
2536
|
-
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font :
|
|
2536
|
+
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : cr,
|
|
2537
2537
|
scale: 0.4,
|
|
2538
2538
|
color: le,
|
|
2539
2539
|
content: s
|
|
@@ -2544,40 +2544,44 @@ class Ag {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
}), this._ogma.
|
|
2548
|
-
|
|
2547
|
+
}), this._ogma.events.on("addNodes", (e) => e.nodes.addClass("degreeIndicator"));
|
|
2548
|
+
}
|
|
2549
|
+
/**
|
|
2550
|
+
* Used in other repos to refresh the pin badge style rule
|
|
2551
|
+
* LKE-13639: we are using a style rule instead of an Ogma class to get the right size of the nodes when calling _findPinBadgeScale
|
|
2552
|
+
*/
|
|
2553
|
+
async refreshPinBadgeStyleRule() {
|
|
2554
|
+
u.isDefined(this._pinnedIndicatorRule) ? (await this._pinnedIndicatorRule.refresh(), this._pinnedIndicatorRule.update({
|
|
2555
|
+
// @ts-ignore Suggested by Ogma team to increase the priority of the rule
|
|
2556
|
+
priority: 100
|
|
2557
|
+
})) : (this._pinnedIndicatorRule = this._ogma.styles.addRule({
|
|
2558
|
+
nodeSelector: (e) => !e.getAttribute("layoutable"),
|
|
2549
2559
|
nodeAttributes: {
|
|
2550
2560
|
badges: {
|
|
2551
|
-
topRight: (e) => {
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
}
|
|
2567
|
-
};
|
|
2568
|
-
}
|
|
2561
|
+
topRight: (e) => ({
|
|
2562
|
+
color: ue,
|
|
2563
|
+
minVisibleSize: 20,
|
|
2564
|
+
scale: this._findPinBadgeScale(e),
|
|
2565
|
+
stroke: {
|
|
2566
|
+
width: 2,
|
|
2567
|
+
color: "#FFFFFF"
|
|
2568
|
+
},
|
|
2569
|
+
text: {
|
|
2570
|
+
font: "FontAwesome",
|
|
2571
|
+
scale: 0.4,
|
|
2572
|
+
color: le,
|
|
2573
|
+
content: ""
|
|
2574
|
+
}
|
|
2575
|
+
})
|
|
2569
2576
|
}
|
|
2570
2577
|
},
|
|
2571
2578
|
nodeDependencies: {
|
|
2572
2579
|
self: { attributes: ["layoutable"] }
|
|
2573
2580
|
}
|
|
2574
|
-
}), this.
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
*/
|
|
2579
|
-
deleteBadgeRule() {
|
|
2580
|
-
this._ogma.getNodes().removeClasses(["degreeIndicator", "pinnedIndicator"], 0);
|
|
2581
|
+
}), this._pinnedIndicatorRule.update({
|
|
2582
|
+
// @ts-ignore Suggested by Ogma team to increase the priority of the rule
|
|
2583
|
+
priority: 100
|
|
2584
|
+
}));
|
|
2581
2585
|
}
|
|
2582
2586
|
/**
|
|
2583
2587
|
* set text overlap to true or false
|
|
@@ -2613,7 +2617,7 @@ class Ag {
|
|
|
2613
2617
|
* Return an array of StyleRules with only the style that need to be applied
|
|
2614
2618
|
*/
|
|
2615
2619
|
getStyleRule(e, t) {
|
|
2616
|
-
return new
|
|
2620
|
+
return new f(e)[t];
|
|
2617
2621
|
}
|
|
2618
2622
|
initNodeColors(e) {
|
|
2619
2623
|
const t = this.getStyleRule(
|
|
@@ -2775,20 +2779,14 @@ class Ag {
|
|
|
2775
2779
|
}
|
|
2776
2780
|
/**
|
|
2777
2781
|
* Get node radius
|
|
2778
|
-
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.
|
|
2782
|
+
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.x
|
|
2779
2783
|
* The issue is still present in Ogma 5.2
|
|
2780
2784
|
*/
|
|
2781
2785
|
_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
|
-
}
|
|
2786
|
+
return !e.isVirtual() || j.isGroupCollapsed(e) ? e.getAttribute("radius") : this._ogma.transformations.getXYR(e.toList())[0].radius;
|
|
2789
2787
|
}
|
|
2790
2788
|
}
|
|
2791
|
-
class
|
|
2789
|
+
class Cg {
|
|
2792
2790
|
constructor(e, t, i) {
|
|
2793
2791
|
this._nodeMaxTextLength = t, this._edgeMaxTextLength = i, this._captionSchema = { node: {}, edge: {} }, this._graphSchema = { node: [], edge: [] }, this._ogma = e;
|
|
2794
2792
|
}
|
|
@@ -2862,15 +2860,15 @@ class xg {
|
|
|
2862
2860
|
return this.edgesCaptionsRule.refresh();
|
|
2863
2861
|
}
|
|
2864
2862
|
}
|
|
2865
|
-
function
|
|
2863
|
+
function P(r) {
|
|
2866
2864
|
return typeof r == "function";
|
|
2867
2865
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2866
|
+
function Sg(r) {
|
|
2867
|
+
return P(r == null ? void 0 : r.lift);
|
|
2870
2868
|
}
|
|
2871
|
-
function
|
|
2869
|
+
function gr(r) {
|
|
2872
2870
|
return function(e) {
|
|
2873
|
-
if (
|
|
2871
|
+
if (Sg(e))
|
|
2874
2872
|
return e.lift(function(t) {
|
|
2875
2873
|
try {
|
|
2876
2874
|
return r(t, this);
|
|
@@ -2881,23 +2879,23 @@ function hr(r) {
|
|
|
2881
2879
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
2882
2880
|
};
|
|
2883
2881
|
}
|
|
2884
|
-
var
|
|
2885
|
-
return
|
|
2882
|
+
var we = function(r, e) {
|
|
2883
|
+
return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
2886
2884
|
t.__proto__ = i;
|
|
2887
2885
|
} || function(t, i) {
|
|
2888
2886
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
2889
|
-
},
|
|
2887
|
+
}, we(r, e);
|
|
2890
2888
|
};
|
|
2891
|
-
function
|
|
2889
|
+
function qe(r, e) {
|
|
2892
2890
|
if (typeof e != "function" && e !== null)
|
|
2893
2891
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
2894
|
-
|
|
2892
|
+
we(r, e);
|
|
2895
2893
|
function t() {
|
|
2896
2894
|
this.constructor = r;
|
|
2897
2895
|
}
|
|
2898
2896
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
2899
2897
|
}
|
|
2900
|
-
function
|
|
2898
|
+
function Mt(r) {
|
|
2901
2899
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], i = 0;
|
|
2902
2900
|
if (t) return t.call(r);
|
|
2903
2901
|
if (r && typeof r.length == "number") return {
|
|
@@ -2907,7 +2905,7 @@ function Gt(r) {
|
|
|
2907
2905
|
};
|
|
2908
2906
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2909
2907
|
}
|
|
2910
|
-
function
|
|
2908
|
+
function Oe(r, e) {
|
|
2911
2909
|
var t = typeof Symbol == "function" && r[Symbol.iterator];
|
|
2912
2910
|
if (!t) return r;
|
|
2913
2911
|
var i = t.call(r), n, s = [], a;
|
|
@@ -2924,18 +2922,18 @@ function Le(r, e) {
|
|
|
2924
2922
|
}
|
|
2925
2923
|
return s;
|
|
2926
2924
|
}
|
|
2927
|
-
function
|
|
2925
|
+
function Le(r, e, t) {
|
|
2928
2926
|
if (t || arguments.length === 2) for (var i = 0, n = e.length, s; i < n; i++)
|
|
2929
2927
|
(s || !(i in e)) && (s || (s = Array.prototype.slice.call(e, 0, i)), s[i] = e[i]);
|
|
2930
2928
|
return r.concat(s || Array.prototype.slice.call(e));
|
|
2931
2929
|
}
|
|
2932
|
-
function
|
|
2930
|
+
function Ag(r) {
|
|
2933
2931
|
var e = function(i) {
|
|
2934
2932
|
Error.call(i), i.stack = new Error().stack;
|
|
2935
2933
|
}, t = r(e);
|
|
2936
2934
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
2937
2935
|
}
|
|
2938
|
-
var xe =
|
|
2936
|
+
var xe = Ag(function(r) {
|
|
2939
2937
|
return function(t) {
|
|
2940
2938
|
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
2941
2939
|
` + t.map(function(i, n) {
|
|
@@ -2944,13 +2942,13 @@ var xe = Fg(function(r) {
|
|
|
2944
2942
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
2945
2943
|
};
|
|
2946
2944
|
});
|
|
2947
|
-
function
|
|
2945
|
+
function Gt(r, e) {
|
|
2948
2946
|
if (r) {
|
|
2949
2947
|
var t = r.indexOf(e);
|
|
2950
2948
|
0 <= t && r.splice(t, 1);
|
|
2951
2949
|
}
|
|
2952
2950
|
}
|
|
2953
|
-
var
|
|
2951
|
+
var Ye = function() {
|
|
2954
2952
|
function r(e) {
|
|
2955
2953
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
2956
2954
|
}
|
|
@@ -2962,12 +2960,12 @@ var We = function() {
|
|
|
2962
2960
|
if (a)
|
|
2963
2961
|
if (this._parentage = null, Array.isArray(a))
|
|
2964
2962
|
try {
|
|
2965
|
-
for (var o =
|
|
2966
|
-
var
|
|
2967
|
-
|
|
2963
|
+
for (var o = Mt(a), l = o.next(); !l.done; l = o.next()) {
|
|
2964
|
+
var d = l.value;
|
|
2965
|
+
d.remove(this);
|
|
2968
2966
|
}
|
|
2969
|
-
} catch (
|
|
2970
|
-
e = { error:
|
|
2967
|
+
} catch (p) {
|
|
2968
|
+
e = { error: p };
|
|
2971
2969
|
} finally {
|
|
2972
2970
|
try {
|
|
2973
2971
|
l && !l.done && (t = o.return) && t.call(o);
|
|
@@ -2977,27 +2975,27 @@ var We = function() {
|
|
|
2977
2975
|
}
|
|
2978
2976
|
else
|
|
2979
2977
|
a.remove(this);
|
|
2980
|
-
var
|
|
2981
|
-
if (
|
|
2978
|
+
var c = this.initialTeardown;
|
|
2979
|
+
if (P(c))
|
|
2982
2980
|
try {
|
|
2983
|
-
|
|
2984
|
-
} catch (
|
|
2985
|
-
s =
|
|
2981
|
+
c();
|
|
2982
|
+
} catch (p) {
|
|
2983
|
+
s = p instanceof xe ? p.errors : [p];
|
|
2986
2984
|
}
|
|
2987
2985
|
var g = this._finalizers;
|
|
2988
2986
|
if (g) {
|
|
2989
2987
|
this._finalizers = null;
|
|
2990
2988
|
try {
|
|
2991
|
-
for (var h =
|
|
2989
|
+
for (var h = Mt(g), y = h.next(); !y.done; y = h.next()) {
|
|
2992
2990
|
var m = y.value;
|
|
2993
2991
|
try {
|
|
2994
|
-
|
|
2995
|
-
} catch (
|
|
2996
|
-
s = s ?? [],
|
|
2992
|
+
Bt(m);
|
|
2993
|
+
} catch (p) {
|
|
2994
|
+
s = s ?? [], p instanceof xe ? s = Le(Le([], Oe(s)), Oe(p.errors)) : s.push(p);
|
|
2997
2995
|
}
|
|
2998
2996
|
}
|
|
2999
|
-
} catch (
|
|
3000
|
-
i = { error:
|
|
2997
|
+
} catch (p) {
|
|
2998
|
+
i = { error: p };
|
|
3001
2999
|
} finally {
|
|
3002
3000
|
try {
|
|
3003
3001
|
y && !y.done && (n = h.return) && n.call(h);
|
|
@@ -3013,7 +3011,7 @@ var We = function() {
|
|
|
3013
3011
|
var t;
|
|
3014
3012
|
if (e && e !== this)
|
|
3015
3013
|
if (this.closed)
|
|
3016
|
-
|
|
3014
|
+
Bt(e);
|
|
3017
3015
|
else {
|
|
3018
3016
|
if (e instanceof r) {
|
|
3019
3017
|
if (e.closed || e._hasParent(this))
|
|
@@ -3030,50 +3028,48 @@ var We = function() {
|
|
|
3030
3028
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
3031
3029
|
}, r.prototype._removeParent = function(e) {
|
|
3032
3030
|
var t = this._parentage;
|
|
3033
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
|
3031
|
+
t === e ? this._parentage = null : Array.isArray(t) && Gt(t, e);
|
|
3034
3032
|
}, r.prototype.remove = function(e) {
|
|
3035
3033
|
var t = this._finalizers;
|
|
3036
|
-
t &&
|
|
3034
|
+
t && Gt(t, e), e instanceof r && e._removeParent(this);
|
|
3037
3035
|
}, r.EMPTY = function() {
|
|
3038
3036
|
var e = new r();
|
|
3039
3037
|
return e.closed = !0, e;
|
|
3040
3038
|
}(), r;
|
|
3041
3039
|
}();
|
|
3042
|
-
|
|
3043
|
-
function
|
|
3044
|
-
return r instanceof
|
|
3040
|
+
Ye.EMPTY;
|
|
3041
|
+
function xg(r) {
|
|
3042
|
+
return r instanceof Ye || r && "closed" in r && P(r.remove) && P(r.add) && P(r.unsubscribe);
|
|
3045
3043
|
}
|
|
3046
|
-
function
|
|
3047
|
-
|
|
3044
|
+
function Bt(r) {
|
|
3045
|
+
P(r) ? r() : r.unsubscribe();
|
|
3048
3046
|
}
|
|
3049
|
-
var
|
|
3050
|
-
useDeprecatedNextContext: !1
|
|
3051
|
-
}, Ng = {
|
|
3047
|
+
var Eg = {
|
|
3052
3048
|
setTimeout: function(r, e) {
|
|
3053
3049
|
for (var t = [], i = 2; i < arguments.length; i++)
|
|
3054
3050
|
t[i - 2] = arguments[i];
|
|
3055
|
-
return setTimeout.apply(void 0,
|
|
3051
|
+
return setTimeout.apply(void 0, Le([r, e], Oe(t)));
|
|
3056
3052
|
},
|
|
3057
3053
|
clearTimeout: function(r) {
|
|
3058
3054
|
return clearTimeout(r);
|
|
3059
3055
|
},
|
|
3060
3056
|
delegate: void 0
|
|
3061
3057
|
};
|
|
3062
|
-
function
|
|
3063
|
-
|
|
3058
|
+
function Fg(r) {
|
|
3059
|
+
Eg.setTimeout(function() {
|
|
3064
3060
|
throw r;
|
|
3065
3061
|
});
|
|
3066
3062
|
}
|
|
3067
|
-
function
|
|
3063
|
+
function zt() {
|
|
3068
3064
|
}
|
|
3069
|
-
var
|
|
3070
|
-
|
|
3065
|
+
var hr = function(r) {
|
|
3066
|
+
qe(e, r);
|
|
3071
3067
|
function e(t) {
|
|
3072
3068
|
var i = r.call(this) || this;
|
|
3073
|
-
return i.isStopped = !1, t ? (i.destination = t,
|
|
3069
|
+
return i.isStopped = !1, t ? (i.destination = t, xg(t) && t.add(i)) : i.destination = Dg, i;
|
|
3074
3070
|
}
|
|
3075
3071
|
return e.create = function(t, i, n) {
|
|
3076
|
-
return new
|
|
3072
|
+
return new Tg(t, i, n);
|
|
3077
3073
|
}, e.prototype.next = function(t) {
|
|
3078
3074
|
this.isStopped || this._next(t);
|
|
3079
3075
|
}, e.prototype.error = function(t) {
|
|
@@ -3097,11 +3093,7 @@ var fr = function(r) {
|
|
|
3097
3093
|
this.unsubscribe();
|
|
3098
3094
|
}
|
|
3099
3095
|
}, e;
|
|
3100
|
-
}(
|
|
3101
|
-
function Ee(r, e) {
|
|
3102
|
-
return wg.call(r, e);
|
|
3103
|
-
}
|
|
3104
|
-
var Og = function() {
|
|
3096
|
+
}(Ye), $g = function() {
|
|
3105
3097
|
function r(e) {
|
|
3106
3098
|
this.partialObserver = e;
|
|
3107
3099
|
}
|
|
@@ -3132,71 +3124,59 @@ var Og = function() {
|
|
|
3132
3124
|
ie(t);
|
|
3133
3125
|
}
|
|
3134
3126
|
}, r;
|
|
3135
|
-
}(),
|
|
3136
|
-
|
|
3127
|
+
}(), Tg = function(r) {
|
|
3128
|
+
qe(e, r);
|
|
3137
3129
|
function e(t, i, n) {
|
|
3138
3130
|
var s = r.call(this) || this, a;
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
};
|
|
3145
|
-
else {
|
|
3146
|
-
var o;
|
|
3147
|
-
s && Tg.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
|
|
3148
|
-
return s.unsubscribe();
|
|
3149
|
-
}, a = {
|
|
3150
|
-
next: t.next && Ee(t.next, o),
|
|
3151
|
-
error: t.error && Ee(t.error, o),
|
|
3152
|
-
complete: t.complete && Ee(t.complete, o)
|
|
3153
|
-
}) : a = t;
|
|
3154
|
-
}
|
|
3155
|
-
return s.destination = new Og(a), s;
|
|
3131
|
+
return P(t) || !t ? a = {
|
|
3132
|
+
next: t ?? void 0,
|
|
3133
|
+
error: i ?? void 0,
|
|
3134
|
+
complete: n ?? void 0
|
|
3135
|
+
} : a = t, s.destination = new $g(a), s;
|
|
3156
3136
|
}
|
|
3157
3137
|
return e;
|
|
3158
|
-
}(
|
|
3138
|
+
}(hr);
|
|
3159
3139
|
function ie(r) {
|
|
3160
|
-
|
|
3140
|
+
Fg(r);
|
|
3161
3141
|
}
|
|
3162
|
-
function
|
|
3142
|
+
function Ng(r) {
|
|
3163
3143
|
throw r;
|
|
3164
3144
|
}
|
|
3165
|
-
var
|
|
3145
|
+
var Dg = {
|
|
3166
3146
|
closed: !0,
|
|
3167
|
-
next:
|
|
3168
|
-
error:
|
|
3169
|
-
complete:
|
|
3147
|
+
next: zt,
|
|
3148
|
+
error: Ng,
|
|
3149
|
+
complete: zt
|
|
3170
3150
|
};
|
|
3171
|
-
function
|
|
3151
|
+
function wg(r) {
|
|
3172
3152
|
return r;
|
|
3173
3153
|
}
|
|
3174
|
-
function
|
|
3175
|
-
return new
|
|
3154
|
+
function fr(r, e, t, i, n) {
|
|
3155
|
+
return new Og(r, e, t, i, n);
|
|
3176
3156
|
}
|
|
3177
|
-
var
|
|
3178
|
-
|
|
3157
|
+
var Og = function(r) {
|
|
3158
|
+
qe(e, r);
|
|
3179
3159
|
function e(t, i, n, s, a, o) {
|
|
3180
3160
|
var l = r.call(this, t) || this;
|
|
3181
|
-
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(
|
|
3161
|
+
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(d) {
|
|
3182
3162
|
try {
|
|
3183
|
-
i(
|
|
3184
|
-
} catch (
|
|
3185
|
-
t.error(
|
|
3163
|
+
i(d);
|
|
3164
|
+
} catch (c) {
|
|
3165
|
+
t.error(c);
|
|
3186
3166
|
}
|
|
3187
|
-
} : r.prototype._next, l._error = s ? function(
|
|
3167
|
+
} : r.prototype._next, l._error = s ? function(d) {
|
|
3188
3168
|
try {
|
|
3189
|
-
s(
|
|
3190
|
-
} catch (
|
|
3191
|
-
t.error(
|
|
3169
|
+
s(d);
|
|
3170
|
+
} catch (c) {
|
|
3171
|
+
t.error(c);
|
|
3192
3172
|
} finally {
|
|
3193
3173
|
this.unsubscribe();
|
|
3194
3174
|
}
|
|
3195
3175
|
} : r.prototype._error, l._complete = n ? function() {
|
|
3196
3176
|
try {
|
|
3197
3177
|
n();
|
|
3198
|
-
} catch (
|
|
3199
|
-
t.error(
|
|
3178
|
+
} catch (d) {
|
|
3179
|
+
t.error(d);
|
|
3200
3180
|
} finally {
|
|
3201
3181
|
this.unsubscribe();
|
|
3202
3182
|
}
|
|
@@ -3209,28 +3189,28 @@ var Rg = function(r) {
|
|
|
3209
3189
|
r.prototype.unsubscribe.call(this), !i && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
3210
3190
|
}
|
|
3211
3191
|
}, e;
|
|
3212
|
-
}(
|
|
3213
|
-
function
|
|
3214
|
-
return
|
|
3192
|
+
}(hr);
|
|
3193
|
+
function Lg(r, e) {
|
|
3194
|
+
return gr(function(t, i) {
|
|
3215
3195
|
var n = 0;
|
|
3216
|
-
t.subscribe(
|
|
3196
|
+
t.subscribe(fr(i, function(s) {
|
|
3217
3197
|
i.next(r.call(e, s, n++));
|
|
3218
3198
|
}));
|
|
3219
3199
|
});
|
|
3220
3200
|
}
|
|
3221
|
-
function
|
|
3222
|
-
return e === void 0 && (e =
|
|
3201
|
+
function Ig(r, e) {
|
|
3202
|
+
return e === void 0 && (e = wg), r = r ?? Pg, gr(function(t, i) {
|
|
3223
3203
|
var n, s = !0;
|
|
3224
|
-
t.subscribe(
|
|
3204
|
+
t.subscribe(fr(i, function(a) {
|
|
3225
3205
|
var o = e(a);
|
|
3226
3206
|
(s || !r(n, o)) && (s = !1, n = o, i.next(a));
|
|
3227
3207
|
}));
|
|
3228
3208
|
});
|
|
3229
3209
|
}
|
|
3230
|
-
function
|
|
3210
|
+
function Pg(r, e) {
|
|
3231
3211
|
return r === e;
|
|
3232
3212
|
}
|
|
3233
|
-
class
|
|
3213
|
+
class Rg extends mr {
|
|
3234
3214
|
constructor(e) {
|
|
3235
3215
|
super(e);
|
|
3236
3216
|
}
|
|
@@ -3245,8 +3225,8 @@ class jg extends Cr {
|
|
|
3245
3225
|
*/
|
|
3246
3226
|
selectStore(e) {
|
|
3247
3227
|
return this.pipe(
|
|
3248
|
-
|
|
3249
|
-
|
|
3228
|
+
Lg(e),
|
|
3229
|
+
Ig((t, i) => u.isEqual(t, i))
|
|
3250
3230
|
);
|
|
3251
3231
|
}
|
|
3252
3232
|
/**
|
|
@@ -3261,9 +3241,9 @@ class jg extends Cr {
|
|
|
3261
3241
|
});
|
|
3262
3242
|
}
|
|
3263
3243
|
}
|
|
3264
|
-
class
|
|
3244
|
+
class Mg {
|
|
3265
3245
|
constructor(e) {
|
|
3266
|
-
this._store = new
|
|
3246
|
+
this._store = new Rg({
|
|
3267
3247
|
selection: void 0,
|
|
3268
3248
|
items: { node: [], edge: [] },
|
|
3269
3249
|
changes: void 0,
|
|
@@ -3369,8 +3349,8 @@ class Ug {
|
|
|
3369
3349
|
};
|
|
3370
3350
|
}
|
|
3371
3351
|
}
|
|
3372
|
-
const
|
|
3373
|
-
class
|
|
3352
|
+
const Gg = 750;
|
|
3353
|
+
class Kg extends _r {
|
|
3374
3354
|
constructor(e, t) {
|
|
3375
3355
|
super(e), this._configuration = e, Object.setPrototypeOf(this, new.target.prototype), this.initOgmaLinkuriousParser(!0, t);
|
|
3376
3356
|
}
|
|
@@ -3397,7 +3377,7 @@ class Zg extends mr {
|
|
|
3397
3377
|
enabled: !1
|
|
3398
3378
|
}
|
|
3399
3379
|
}
|
|
3400
|
-
}), this._reactive === void 0 ? (this._reactive = new
|
|
3380
|
+
}), this._reactive === void 0 ? (this._reactive = new Mg(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new jg(this), this.LkNodeGroupingTransformation = new J(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.setBadgeRule(), this.LKStyles.setFilterClass();
|
|
3401
3381
|
}
|
|
3402
3382
|
/**
|
|
3403
3383
|
* Initialize selection behavior
|
|
@@ -3414,16 +3394,16 @@ class Zg extends mr {
|
|
|
3414
3394
|
}
|
|
3415
3395
|
setStyles(e, t) {
|
|
3416
3396
|
var i, n, s, a;
|
|
3417
|
-
this.LKStyles = new
|
|
3397
|
+
this.LKStyles = new mg(this, {
|
|
3418
3398
|
node: ((n = (i = e == null ? void 0 : e.options) == null ? void 0 : i.styles) == null ? void 0 : n.node) || {},
|
|
3419
3399
|
edge: ((a = (s = e == null ? void 0 : e.options) == null ? void 0 : s.styles) == null ? void 0 : a.edge) || {},
|
|
3420
3400
|
baseUrl: t
|
|
3421
3401
|
}), this.LKStyles.setNodesDefaultStyles(), this.LKStyles.setEdgesDefaultStyles();
|
|
3422
3402
|
}
|
|
3423
3403
|
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 = (
|
|
3426
|
-
this.LKCaptions = new
|
|
3404
|
+
var n, s, a, o, l, d, c, g;
|
|
3405
|
+
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;
|
|
3406
|
+
this.LKCaptions = new Cg(this, t, i);
|
|
3427
3407
|
}
|
|
3428
3408
|
/**
|
|
3429
3409
|
* Returns Ogma Layout parameters according to visualization layout settings
|
|
@@ -3431,7 +3411,7 @@ class Zg extends mr {
|
|
|
3431
3411
|
getForceLayoutParams(e, t = 0) {
|
|
3432
3412
|
let i = 300 - 0.052 * this.getNodes().size;
|
|
3433
3413
|
return i < 40 && (i = 40), {
|
|
3434
|
-
steps: e ===
|
|
3414
|
+
steps: e === vr.FAST ? i : 300,
|
|
3435
3415
|
alignSiblings: this.getNodes().size > 3,
|
|
3436
3416
|
duration: t,
|
|
3437
3417
|
charge: 20,
|
|
@@ -3462,15 +3442,15 @@ class Zg extends mr {
|
|
|
3462
3442
|
async init(e) {
|
|
3463
3443
|
this.clearGraph();
|
|
3464
3444
|
let t, i = [];
|
|
3465
|
-
const n = e.nodes.map((a) => (a.attributes.selected && (t =
|
|
3445
|
+
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
3446
|
await this.addGraphAfterValidation({
|
|
3467
3447
|
nodes: n,
|
|
3468
3448
|
edges: s
|
|
3469
|
-
}), t ===
|
|
3449
|
+
}), t === I.NODE ? this.getNodes(i).setSelected(!0) : t === I.EDGE && this.getEdges(i).setSelected(!0);
|
|
3470
3450
|
}
|
|
3471
3451
|
async initVisualization(e) {
|
|
3472
3452
|
await this.init(e);
|
|
3473
|
-
const t =
|
|
3453
|
+
const t = f.sanitizeStylesIndex(e.design.styles);
|
|
3474
3454
|
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
3455
|
node: e.nodeFields.captions || {},
|
|
3476
3456
|
edge: e.edgeFields.captions || {}
|
|
@@ -3559,15 +3539,16 @@ class Zg extends mr {
|
|
|
3559
3539
|
this.getSelectedNodes().setSelected(!1), this.getSelectedEdges().setSelected(!1);
|
|
3560
3540
|
}
|
|
3561
3541
|
}
|
|
3562
|
-
const
|
|
3542
|
+
const Bg = {
|
|
3563
3543
|
steps: 250,
|
|
3564
3544
|
alignSiblings: !0,
|
|
3565
3545
|
charge: 20,
|
|
3566
3546
|
theta: 0.34,
|
|
3567
|
-
duration:
|
|
3568
|
-
gravity: 0.0475
|
|
3547
|
+
duration: Gg,
|
|
3548
|
+
gravity: 0.0475,
|
|
3549
|
+
gpu: !0
|
|
3569
3550
|
};
|
|
3570
|
-
class
|
|
3551
|
+
class j {
|
|
3571
3552
|
/**
|
|
3572
3553
|
* Get the amount of hidden neighbors from a list of nodes
|
|
3573
3554
|
*
|
|
@@ -3606,8 +3587,8 @@ class O {
|
|
|
3606
3587
|
let s;
|
|
3607
3588
|
if (t.test(e)) {
|
|
3608
3589
|
e.length < 5 && (e += e.slice(1)), e = e.replace("#", "");
|
|
3609
|
-
const
|
|
3610
|
-
s = `rgb(${
|
|
3590
|
+
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);
|
|
3591
|
+
s = `rgb(${d}, ${c}, ${g})`;
|
|
3611
3592
|
} else if (i.test(e) || n.test(e) || Ae[e.toLowerCase()] !== void 0)
|
|
3612
3593
|
s = u.isDefined(Ae[e.toLowerCase()]) ? Ae[e.toLowerCase()].rgb : e;
|
|
3613
3594
|
else
|
|
@@ -3634,8 +3615,8 @@ class O {
|
|
|
3634
3615
|
const l = [];
|
|
3635
3616
|
for (; o; ) {
|
|
3636
3617
|
l.push(o), n.add(o);
|
|
3637
|
-
const
|
|
3638
|
-
o =
|
|
3618
|
+
const d = o.getAdjacentNodes().filter((c) => !n.has(c)).get(0);
|
|
3619
|
+
o = d === void 0 ? null : d;
|
|
3639
3620
|
}
|
|
3640
3621
|
s.push(l);
|
|
3641
3622
|
}), s.sort((a, o) => o.length - a.length), { chain: s.flat().map((a) => a.getId()), numberOfChain: i.length / 2 };
|
|
@@ -3657,8 +3638,8 @@ class O {
|
|
|
3657
3638
|
e.setData("collapsed", t);
|
|
3658
3639
|
}
|
|
3659
3640
|
}
|
|
3660
|
-
const
|
|
3661
|
-
class
|
|
3641
|
+
const Ie = "LKE_NODE_GROUPING_EDGE";
|
|
3642
|
+
class J {
|
|
3662
3643
|
constructor(e) {
|
|
3663
3644
|
this._collapsedDefaultValue = !1, this._nodeGroupingAttributes = [], this._ogma = e;
|
|
3664
3645
|
}
|
|
@@ -3675,38 +3656,45 @@ class Z {
|
|
|
3675
3656
|
* Group the nodes based on a category type and a property value
|
|
3676
3657
|
*/
|
|
3677
3658
|
async initTransformation() {
|
|
3659
|
+
let e = !0;
|
|
3678
3660
|
this.transformation === void 0 ? this.transformation = this._ogma.transformations.addNodeGrouping({
|
|
3679
3661
|
// node with same value will be part of the same group
|
|
3680
|
-
groupIdFunction: (
|
|
3681
|
-
if (this._isRuleNotApplicableToNode(
|
|
3662
|
+
groupIdFunction: (t) => {
|
|
3663
|
+
if (this._isRuleNotApplicableToNode(t))
|
|
3682
3664
|
return;
|
|
3683
|
-
const
|
|
3684
|
-
return
|
|
3665
|
+
const i = this.groupRule;
|
|
3666
|
+
return i.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeGroupId(t, i) : this._getPropertyValueGroupId(t, i);
|
|
3685
3667
|
},
|
|
3686
|
-
nodeGenerator: (
|
|
3687
|
-
const
|
|
3668
|
+
nodeGenerator: (t) => {
|
|
3669
|
+
const i = new Set(t.getData("categories").flat()), n = this._findNodeGroupId(t);
|
|
3688
3670
|
return {
|
|
3689
3671
|
data: {
|
|
3690
3672
|
categories: [],
|
|
3691
|
-
subCategories: Array.from(
|
|
3692
|
-
collapsed: this._getDefaultCollapsedState(
|
|
3693
|
-
nodeGroupId:
|
|
3673
|
+
subCategories: Array.from(i),
|
|
3674
|
+
collapsed: this._getDefaultCollapsedState(n),
|
|
3675
|
+
nodeGroupId: n
|
|
3694
3676
|
},
|
|
3695
3677
|
attributes: {
|
|
3696
|
-
layoutable: this._getDefaultLayoutableValue(
|
|
3678
|
+
layoutable: this._getDefaultLayoutableValue(n)
|
|
3697
3679
|
}
|
|
3698
3680
|
};
|
|
3699
3681
|
},
|
|
3700
|
-
onGroupUpdate:
|
|
3682
|
+
onGroupUpdate: (t, i) => {
|
|
3683
|
+
if (!(i.size === 1 || e))
|
|
3684
|
+
return {
|
|
3685
|
+
layout: "force",
|
|
3686
|
+
params: { ...Bg }
|
|
3687
|
+
};
|
|
3688
|
+
},
|
|
3701
3689
|
edgeGenerator: () => ({
|
|
3702
3690
|
data: {
|
|
3703
|
-
type:
|
|
3691
|
+
type: Ie
|
|
3704
3692
|
}
|
|
3705
3693
|
}),
|
|
3706
|
-
showContents: (
|
|
3694
|
+
showContents: (t) => !j.isGroupCollapsed(t),
|
|
3707
3695
|
duration: 300,
|
|
3708
3696
|
padding: 10
|
|
3709
|
-
}) : await this.refreshTransformation();
|
|
3697
|
+
}) : await this.refreshTransformation(), await this._ogma.transformations.afterNextUpdate(), e = !1;
|
|
3710
3698
|
}
|
|
3711
3699
|
/**
|
|
3712
3700
|
* refresh the transformation
|
|
@@ -3733,7 +3721,7 @@ class Z {
|
|
|
3733
3721
|
width: 2
|
|
3734
3722
|
}
|
|
3735
3723
|
},
|
|
3736
|
-
nodeSelector: (e) => e.isVirtual() && !
|
|
3724
|
+
nodeSelector: (e) => e.isVirtual() && !j.isGroupCollapsed(e),
|
|
3737
3725
|
// the style will be updated when data object is updated
|
|
3738
3726
|
nodeDependencies: { self: { data: !0 } }
|
|
3739
3727
|
}), this._initIntermediateGroupStyle(), this._nodeGroupingCollapsedStyleRule = this._ogma.styles.addRule({
|
|
@@ -3759,7 +3747,7 @@ class Z {
|
|
|
3759
3747
|
color: "#FFFFFF"
|
|
3760
3748
|
},
|
|
3761
3749
|
text: {
|
|
3762
|
-
font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont :
|
|
3750
|
+
font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont : cr,
|
|
3763
3751
|
scale: 0.4,
|
|
3764
3752
|
color: le,
|
|
3765
3753
|
content: `x${t}`
|
|
@@ -3803,7 +3791,7 @@ class Z {
|
|
|
3803
3791
|
}).icon;
|
|
3804
3792
|
}
|
|
3805
3793
|
},
|
|
3806
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3794
|
+
nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e) && !e.hasClass("filtered"),
|
|
3807
3795
|
nodeDependencies: { self: { attributes: ["styleRefreshIndex"] } }
|
|
3808
3796
|
}), this._setSubSelectedClass();
|
|
3809
3797
|
}
|
|
@@ -3811,34 +3799,6 @@ class Z {
|
|
|
3811
3799
|
var e, t;
|
|
3812
3800
|
await ((e = this._nodeGroupingStyleRule) == null ? void 0 : e.refresh()), await ((t = this._nodeGroupingCollapsedStyleRule) == null ? void 0 : t.refresh());
|
|
3813
3801
|
}
|
|
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
3802
|
/**
|
|
3843
3803
|
* Get the virtual nodes of the transformation
|
|
3844
3804
|
* @private
|
|
@@ -3865,11 +3825,11 @@ class Z {
|
|
|
3865
3825
|
*/
|
|
3866
3826
|
_getNodeGroupingCaption(e) {
|
|
3867
3827
|
if (!(!u.isDefined(e) || !u.isDefined(this.groupRule)))
|
|
3868
|
-
return this.groupRule.groupingType ===
|
|
3828
|
+
return this.groupRule.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeNodeGroupingCaption(e, this.groupRule) : this._getPropertyValueNodeGroupingCaption(e, this.groupRule);
|
|
3869
3829
|
}
|
|
3870
3830
|
_getAdjacentEdgeNodeGroupingCaption(e, t) {
|
|
3871
3831
|
const i = e.getSubNodes();
|
|
3872
|
-
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 :
|
|
3832
|
+
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 : J._getGroupCentralNode(i.get(0), t).getData(["properties", "name"]);
|
|
3873
3833
|
}
|
|
3874
3834
|
_getPropertyValueNodeGroupingCaption(e, t) {
|
|
3875
3835
|
var i;
|
|
@@ -3878,46 +3838,14 @@ class Z {
|
|
|
3878
3838
|
return `${s} (${a})`;
|
|
3879
3839
|
}
|
|
3880
3840
|
}
|
|
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
3841
|
_isRuleNotApplicableToNode(e) {
|
|
3914
3842
|
const t = this.groupRule;
|
|
3915
|
-
return t === void 0 ? !0 : t.groupingType ===
|
|
3843
|
+
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
3844
|
}
|
|
3917
3845
|
_isRelationshipRuleNotApplicableToNode(e, t) {
|
|
3918
|
-
return !this.
|
|
3846
|
+
return !this._hasEdgeOfType(e, t.groupingOptions.edgeType);
|
|
3919
3847
|
}
|
|
3920
|
-
|
|
3848
|
+
_hasEdgeOfType(e, t) {
|
|
3921
3849
|
let i = !1;
|
|
3922
3850
|
return e.getAdjacentEdges().forEach((n) => {
|
|
3923
3851
|
n.getData("type") === t && (i = !0);
|
|
@@ -3964,8 +3892,8 @@ class Z {
|
|
|
3964
3892
|
_findNodeGroupId(e) {
|
|
3965
3893
|
var i;
|
|
3966
3894
|
const t = this.groupRule;
|
|
3967
|
-
if (t.groupingType ===
|
|
3968
|
-
const n =
|
|
3895
|
+
if (t.groupingType === q.BY_ADJACENT_EDGE_TYPE) {
|
|
3896
|
+
const n = J._getGroupCentralNode(e.get(0), t);
|
|
3969
3897
|
return oe(`${(i = this.groupRule) == null ? void 0 : i.name}-${n.getId()}`);
|
|
3970
3898
|
} else {
|
|
3971
3899
|
const n = this._findGroupingPropertyValue(e.get(0));
|
|
@@ -3979,37 +3907,12 @@ class Z {
|
|
|
3979
3907
|
const i = e.getAdjacentEdges({ filter: "raw" }).filter((s) => s.getData("type") === t.groupingOptions.edgeType).get(0);
|
|
3980
3908
|
return t.groupingOptions.centralNodeIs === "source" ? i.getSource() : i.getTarget();
|
|
3981
3909
|
}
|
|
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
3910
|
_getPropertyValueGroupId(e, t) {
|
|
4008
3911
|
const i = this._findGroupingPropertyValue(e);
|
|
4009
3912
|
return `${t.groupingOptions.itemTypes.join("-")}-${i}`.toLowerCase().trim();
|
|
4010
3913
|
}
|
|
4011
3914
|
_getAdjacentEdgeGroupId(e, t) {
|
|
4012
|
-
return
|
|
3915
|
+
return J._getGroupCentralNode(e, t).getId().toString();
|
|
4013
3916
|
}
|
|
4014
3917
|
/**
|
|
4015
3918
|
* Initialize the style for the intermediate group state, when transitioning from expanded to collapsed
|
|
@@ -4019,7 +3922,7 @@ class Z {
|
|
|
4019
3922
|
nodeAttributes: {
|
|
4020
3923
|
color: "rgba(240, 240, 240)"
|
|
4021
3924
|
},
|
|
4022
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3925
|
+
nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e),
|
|
4023
3926
|
// the style will be updated when data object is updated
|
|
4024
3927
|
nodeDependencies: { self: { data: !0 } }
|
|
4025
3928
|
});
|
|
@@ -4048,7 +3951,7 @@ class Z {
|
|
|
4048
3951
|
});
|
|
4049
3952
|
}
|
|
4050
3953
|
}
|
|
4051
|
-
const
|
|
3954
|
+
const zg = {
|
|
4052
3955
|
color: "#000000",
|
|
4053
3956
|
shape: {
|
|
4054
3957
|
style: "dashed",
|
|
@@ -4056,7 +3959,7 @@ const Hg = {
|
|
|
4056
3959
|
},
|
|
4057
3960
|
width: 1.5
|
|
4058
3961
|
};
|
|
4059
|
-
class
|
|
3962
|
+
class jg {
|
|
4060
3963
|
constructor(e) {
|
|
4061
3964
|
this._ogma = e, this.groupedEdges = {};
|
|
4062
3965
|
}
|
|
@@ -4083,11 +3986,11 @@ class Kg {
|
|
|
4083
3986
|
initEdgeGroupingStyle() {
|
|
4084
3987
|
this.edgeGroupingStyleRule = this._ogma.styles.addRule({
|
|
4085
3988
|
edgeAttributes: {
|
|
4086
|
-
...
|
|
3989
|
+
...zg,
|
|
4087
3990
|
...this.edgeGroupStyle,
|
|
4088
3991
|
text: {
|
|
4089
3992
|
content: (e) => {
|
|
4090
|
-
if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !==
|
|
3993
|
+
if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !== Ie) {
|
|
4091
3994
|
const t = e.getSubEdges().filter((i) => !i.hasClass("filtered")).size;
|
|
4092
3995
|
return `${e.getData(["properties", "originalType"])} (${t})`;
|
|
4093
3996
|
}
|
|
@@ -4095,7 +3998,7 @@ class Kg {
|
|
|
4095
3998
|
style: "bold"
|
|
4096
3999
|
}
|
|
4097
4000
|
},
|
|
4098
|
-
edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !==
|
|
4001
|
+
edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !== Ie,
|
|
4099
4002
|
edgeDependencies: { self: { data: !0 } }
|
|
4100
4003
|
});
|
|
4101
4004
|
}
|
|
@@ -4103,7 +4006,7 @@ class Kg {
|
|
|
4103
4006
|
this.edgeGroupingStyleRule !== void 0 && this.edgeGroupingStyleRule.refresh();
|
|
4104
4007
|
}
|
|
4105
4008
|
}
|
|
4106
|
-
const
|
|
4009
|
+
const v = class v {
|
|
4107
4010
|
/**
|
|
4108
4011
|
* Returns whether the node/edge should be *filtered* (a.k.a. *hidden*).
|
|
4109
4012
|
*
|
|
@@ -4116,16 +4019,16 @@ const _ = class _ {
|
|
|
4116
4019
|
* @param itemData
|
|
4117
4020
|
*/
|
|
4118
4021
|
static isFiltered(e, t) {
|
|
4119
|
-
return u.isDefined(t) ? "categories" in t ?
|
|
4022
|
+
return u.isDefined(t) ? "categories" in t ? v.getFilterFunction(e, !0)(t) : v.getFilterFunction(e, !1)(t) : !1;
|
|
4120
4023
|
}
|
|
4121
4024
|
static getFilterFunction(e, t) {
|
|
4122
|
-
const i = JSON.stringify(e, null, ""), n = t ?
|
|
4025
|
+
const i = JSON.stringify(e, null, ""), n = t ? v.nodeCache : v.edgeCache;
|
|
4123
4026
|
let s = n.get(i);
|
|
4124
|
-
return s || (s =
|
|
4027
|
+
return s || (s = v.createFilterFunction(e, t), n.size > v.FILTER_CACHE_SIZE && n.clear(), n.set(i, s)), s;
|
|
4125
4028
|
}
|
|
4126
4029
|
static createFilterFunction(e, t) {
|
|
4127
4030
|
const i = e.map(
|
|
4128
|
-
(n) =>
|
|
4031
|
+
(n) => v.filterToFilterFunction(n, t)
|
|
4129
4032
|
);
|
|
4130
4033
|
return (n) => {
|
|
4131
4034
|
for (const s of i)
|
|
@@ -4137,15 +4040,15 @@ const _ = class _ {
|
|
|
4137
4040
|
static filterToFilterFunction(e, t) {
|
|
4138
4041
|
switch (e.type) {
|
|
4139
4042
|
case S.ANY:
|
|
4140
|
-
return
|
|
4043
|
+
return v.createAnyFilterFunction(e, t);
|
|
4141
4044
|
case S.IS:
|
|
4142
|
-
return
|
|
4045
|
+
return v.createIsFilterFunction(e, t);
|
|
4143
4046
|
case S.NO_VALUE:
|
|
4144
|
-
return
|
|
4047
|
+
return v.createNoValueFilterFunction(e, t);
|
|
4145
4048
|
case S.RANGE:
|
|
4146
|
-
return
|
|
4049
|
+
return v.createRangeFilterFunction(e, t);
|
|
4147
4050
|
case S.NAN:
|
|
4148
|
-
return
|
|
4051
|
+
return v.createNaNFilterFunction(e, t);
|
|
4149
4052
|
}
|
|
4150
4053
|
}
|
|
4151
4054
|
static createAnyFilterFunction(e, t) {
|
|
@@ -4158,16 +4061,16 @@ const _ = class _ {
|
|
|
4158
4061
|
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
4062
|
}
|
|
4160
4063
|
static createNaNFilterFunction(e, t) {
|
|
4161
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4064
|
+
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
4065
|
}
|
|
4163
4066
|
static isNotANumber(e) {
|
|
4164
4067
|
return u.isDefined(e) && !u.isNumber(e);
|
|
4165
4068
|
}
|
|
4166
4069
|
static createRangeFilterFunction(e, t) {
|
|
4167
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4070
|
+
return t ? (i) => i.categories.includes(e.itemType) && v.valueShouldBeHidden(
|
|
4168
4071
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4169
4072
|
e.value
|
|
4170
|
-
) : (i) => i.type === e.itemType &&
|
|
4073
|
+
) : (i) => i.type === e.itemType && v.valueShouldBeHidden(
|
|
4171
4074
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4172
4075
|
e.value
|
|
4173
4076
|
);
|
|
@@ -4187,9 +4090,9 @@ const _ = class _ {
|
|
|
4187
4090
|
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
4091
|
}
|
|
4189
4092
|
};
|
|
4190
|
-
|
|
4191
|
-
let
|
|
4192
|
-
const
|
|
4093
|
+
v.nodeCache = /* @__PURE__ */ new Map(), v.edgeCache = /* @__PURE__ */ new Map(), v.FILTER_CACHE_SIZE = 5;
|
|
4094
|
+
let jt = v;
|
|
4095
|
+
const qg = (r) => r.selection.size, Yg = (r) => {
|
|
4193
4096
|
switch (r.selection.size) {
|
|
4194
4097
|
case 1:
|
|
4195
4098
|
return "selection";
|
|
@@ -4198,19 +4101,19 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
|
4198
4101
|
default:
|
|
4199
4102
|
return "multiSelection";
|
|
4200
4103
|
}
|
|
4201
|
-
},
|
|
4104
|
+
}, Wg = (r) => {
|
|
4202
4105
|
if (!(!u.isDefined(r.selection) || r.selection.size === 0))
|
|
4203
|
-
return r.selection.isNode ?
|
|
4204
|
-
},
|
|
4205
|
-
const e =
|
|
4106
|
+
return r.selection.isNode ? I.NODE : I.EDGE;
|
|
4107
|
+
}, We = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, Jg = (r) => {
|
|
4108
|
+
const e = We(r);
|
|
4206
4109
|
if (e !== void 0)
|
|
4207
4110
|
return e.isNode ? e.getData("categories") : [e.getData("type")];
|
|
4208
|
-
},
|
|
4209
|
-
const e =
|
|
4111
|
+
}, Zg = (r) => {
|
|
4112
|
+
const e = We(r);
|
|
4210
4113
|
if (e !== void 0)
|
|
4211
4114
|
return e.isNode ? "node" : "edge";
|
|
4212
|
-
},
|
|
4213
|
-
const e =
|
|
4115
|
+
}, Ug = (r) => {
|
|
4116
|
+
const e = We(r);
|
|
4214
4117
|
if (e !== void 0) {
|
|
4215
4118
|
const t = e.getData().properties;
|
|
4216
4119
|
return Object.keys(t).map((i) => ({
|
|
@@ -4219,37 +4122,38 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
|
4219
4122
|
}));
|
|
4220
4123
|
}
|
|
4221
4124
|
return [];
|
|
4222
|
-
},
|
|
4125
|
+
}, Xg = (r) => Ug(r).length > 0;
|
|
4223
4126
|
export {
|
|
4224
|
-
|
|
4225
|
-
|
|
4127
|
+
Gg as ANIMATION_DURATION,
|
|
4128
|
+
E as BASE_GREY,
|
|
4226
4129
|
N as Captions,
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4130
|
+
Cg as CaptionsViz,
|
|
4131
|
+
W as EdgeAttributes,
|
|
4132
|
+
Lt as FILTER_OPACITY,
|
|
4133
|
+
Bg as FORCE_LAYOUT_CONFIG,
|
|
4134
|
+
jt as Filters,
|
|
4231
4135
|
Ae as HTML_COLORS,
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4136
|
+
A as ItemAttributes,
|
|
4137
|
+
Ie as LKE_NODE_GROUPING_EDGE,
|
|
4138
|
+
Kg as LKOgma,
|
|
4139
|
+
z as NodeAttributes,
|
|
4140
|
+
Rg as OgmaStore,
|
|
4141
|
+
j as OgmaTools,
|
|
4142
|
+
Ot as PALETTE,
|
|
4239
4143
|
C as StyleRule,
|
|
4240
|
-
|
|
4241
|
-
|
|
4144
|
+
yg as StyleRuleType,
|
|
4145
|
+
f as StyleRules,
|
|
4242
4146
|
w as StyleType,
|
|
4243
|
-
|
|
4147
|
+
mg as StylesViz,
|
|
4244
4148
|
u as Tools,
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4149
|
+
jg as TransformationsViz,
|
|
4150
|
+
Wg as getSelectionEntity,
|
|
4151
|
+
Ug as getSelectionProperties,
|
|
4152
|
+
qg as getSelectionSize,
|
|
4153
|
+
Yg as getSelectionState,
|
|
4154
|
+
We as getUniqSelection,
|
|
4155
|
+
Zg as getUniqSelectionEntity,
|
|
4156
|
+
Jg as getUniqSelectionTypes,
|
|
4157
|
+
Xg as hasSelectionProperties
|
|
4254
4158
|
};
|
|
4255
4159
|
//# sourceMappingURL=index.mjs.map
|